changedOutput schema / anyOf
Previous value: -[
- {
- "additionalProperties": {},
- "propertyNames": {
- "type": "string"
- },
- "type": "object"
- },
- {
- "additionalProperties": {},
- "properties": {
- "error": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "error"
- ],
- "type": "object"
- },
- {
- "additionalProperties": {},
- "properties": {
- "message": {
- "type": "string"
- },
- "next_action": {
- "type": "string"
- },
- "operation_id": {
- "type": "string"
- },
- "status": {
- "type": "string"
- }
- },
- "required": [
- "operation_id",
- "status"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": {},
+ "properties": {
+ "activities": {
+ "items": {
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "call_id": {
+ "maxLength": 200,
+ "minLength": 1,
+ "type": "string"
+ },
+ "callee_name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "created_at": {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
+ "type": "string"
+ },
+ "direction": {
+ "enum": [
+ "inbound",
+ "outbound"
+ ],
+ "type": "string"
+ },
+ "duration_seconds": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "from": {
+ "type": "string"
+ },
+ "is_public": {
+ "type": "boolean"
+ },
+ "kind": {
+ "const": "call",
+ "type": "string"
+ },
+ "listen_url": {
+ "type": "string"
+ },
+ "number_id": {
+ "anyOf": [
+ {
+ "maxLength": 200,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "objective": {
+ "type": "string"
+ },
+ "outcome": {
+ "anyOf": [
+ {
+ "enum": [
+ "achieved",
+ "partially_achieved",
+ "not_achieved",
+ "no_conversation",
+ "unknown",
+ "pending"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "status": {
+ "type": "string"
+ },
+ "summary": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "to": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "created_at",
+ "number_id",
+ "direction",
+ "status",
+ "duration_seconds",
+ "summary",
+ "kind",
+ "call_id",
+ "from",
+ "to",
+ "callee_name",
+ "objective",
+ "is_public",
+ "listen_url",
+ "outcome"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "created_at": {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
+ "type": "string"
+ },
+ "direction": {
+ "enum": [
+ "inbound",
+ "outbound"
+ ],
+ "type": "string"
+ },
+ "duration_seconds": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "kind": {
+ "const": "test",
+ "type": "string"
+ },
+ "number_id": {
+ "anyOf": [
+ {
+ "maxLength": 200,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "scenario": {
+ "type": "string"
+ },
+ "status": {
+ "type": "string"
+ },
+ "summary": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "test_id": {
+ "maxLength": 200,
+ "minLength": 1,
+ "type": "string"
+ },
+ "title": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "created_at",
+ "number_id",
+ "direction",
+ "status",
+ "duration_seconds",
+ "summary",
+ "kind",
+ "test_id",
+ "scenario",
+ "title"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "kind": {
+ "enum": [
+ "call",
+ "test",
+ "all"
+ ],
+ "type": "string"
+ },
+ "next_cursor": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "operation_id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "activities",
+ "next_cursor"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": {},
+ "properties": {
+ "error": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "error"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": {},
+ "properties": {
+ "message": {
+ "type": "string"
+ },
+ "next_action": {
+ "type": "string"
+ },
+ "operation_id": {
+ "type": "string"
+ },
+ "status": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "operation_id",
+ "status"
+ ],
+ "type": "object"
+ }
+]