changedOutput schema / anyOf
Previous value: -[
- {
- "additionalProperties": {},
- "properties": {
- "amd_result": {
- "anyOf": [
- {
- "description": "Answering-machine detection result.",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "call_id": {
- "description": "Call identifier used with get_call, end_call and set_call_visibility.",
- "type": "string"
- },
- "callee_name": {
- "anyOf": [
- {
- "description": "Recipient display name.",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "costs": {
- "additionalProperties": {},
- "properties": {
- "currency": {
- "const": "USD",
- "type": "string"
- },
- "rate_version": {
- "anyOf": [
- {
- "description": "Rate deck version.",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "reserved_usage_units": {
- "anyOf": [
- {
- "description": "Reserved usage units; absent on legacy calls.",
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "currency",
- "rate_version"
- ],
- "type": "object"
- },
- "created_at": {
- "description": "ISO 8601 creation time.",
- "type": "string"
- },
- "duration_seconds": {
- "description": "Connected duration in seconds.",
- "type": "number"
- },
- "end_reason": {
- "description": "Reason the call ended.",
- "type": "string"
- },
- "ended_at": {
- "anyOf": [
- {
- "description": "ISO 8601 end time; null while active.",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "ended_by": {
- "description": "Party or system that ended the call.",
- "type": "string"
- },
- "error": {
- "anyOf": [
- {
- "additionalProperties": {},
- "properties": {
- "code": {
- "description": "Call failure code.",
- "type": "string"
- },
- "message": {
- "description": "Call failure explanation.",
- "type": "string"
- }
- },
- "required": [
- "code",
- "message"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "is_public": {
- "description": "Whether the call has a public link.",
- "type": "boolean"
- },
- "language": {
- "description": "Resolved call language.",
- "type": "string"
- },
- "listen_url": {
- "description": "URL for the user to listen, read the transcript and stop an active call.",
- "type": "string"
- },
- "locale": {
- "description": "Resolved BCP 47 language/locale for this call.",
- "type": "string"
- },
- "recording_status": {
- "description": "Recording availability.",
- "enum": [
- "none",
- "processing",
- "available",
- "failed"
- ],
- "type": "string"
- },
- "recording_url": {
- "anyOf": [
- {
- "description": "Audio URL when ready; private URLs expire.",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "resolution": {
- "anyOf": [
- {
- "additionalProperties": {},
- "properties": {
- "callee_requested_no_further_calls": {
- "description": "Whether the recipient asked not to be called again.",
- "type": "boolean"
- },
- "commitments": {
- "description": "What the callee agreed to.",
- "items": {
- "description": "Confirmed commitment.",
- "type": "string"
- },
- "type": "array"
- },
- "follow_ups": {
- "description": "Actions the user still needs to take.",
- "items": {
- "description": "Next action.",
- "type": "string"
- },
- "type": "array"
- },
- "key_facts": {
- "description": "Useful information from the conversation.",
- "items": {
- "description": "Fact learned.",
- "type": "string"
- },
- "type": "array"
- },
- "outcome": {
- "description": "Whether the call objective was met; unknown when review is unavailable or evidence is insufficient.",
- "enum": [
- "achieved",
- "partially_achieved",
- "not_achieved",
- "no_conversation",
- "unknown"
- ],
- "type": "string"
- },
- "summary": {
- "description": "User-facing summary of what happened.",
- "type": "string"
- }
- },
- "required": [
- "outcome",
- "summary",
- "commitments",
- "follow_ups",
- "key_facts",
- "callee_requested_no_further_calls"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "status": {
- "description": "Current call lifecycle state.",
- "enum": [
- "queued",
- "ringing",
- "in_progress",
- "completed",
- "answered_silently",
- "no_answer",
- "busy",
- "voicemail",
- "failed",
- "rejected",
- "canceled",
- "declined_recording",
- "opted_out"
- ],
- "type": "string"
- },
- "to": {
- "description": "Destination in E.164 format.",
- "type": "string"
- },
- "transcript": {
- "description": "Conversation entries; empty before speech is available.",
- "items": {
- "additionalProperties": {},
- "properties": {
- "at_ms": {
- "description": "Milliseconds from the transcript timeline origin.",
- "type": "number"
- },
- "id": {
- "type": "string"
- },
- "role": {
- "description": "Speaker or confirmed keypad action.",
- "enum": [
- "callee",
- "agent",
- "keypad"
- ],
- "type": "string"
- },
- "sequence": {
- "type": "number"
- },
- "text": {
- "description": "Transcript text.",
- "type": "string"
- }
- },
- "required": [
- "role",
- "text",
- "at_ms"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "transcript_truncated": {
- "description": "Whether earlier transcript content was omitted.",
- "type": "boolean"
- },
- "voice": {
- "anyOf": [
- {
- "description": "Resolved voice identifier.",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "call_id",
- "status",
- "to",
- "callee_name",
- "language",
- "locale",
- "voice",
- "amd_result",
- "duration_seconds",
- "is_public",
- "listen_url",
- "resolution",
- "transcript",
- "recording_url",
- "recording_status",
- "costs",
- "error",
- "created_at",
- "ended_at"
- ],
- "type": "object"
- },
- {
- "additionalProperties": {},
- "properties": {
- "error": {
- "description": "Machine-readable failure code.",
- "type": "string"
- },
- "message": {
- "description": "Explanation or recovery guidance.",
- "type": "string"
- }
- },
- "required": [
- "error"
- ],
- "type": "object"
- },
- {
- "additionalProperties": {},
- "properties": {
- "next_action": {
- "type": "string"
- },
- "operation_id": {
- "type": "string"
- },
- "status": {
- "type": "string"
- }
- },
- "required": [
- "operation_id",
- "status"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": {},
+ "properties": {
+ "amd_result": {
+ "anyOf": [
+ {
+ "description": "Answering-machine detection result.",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "call_id": {
+ "description": "Call identifier used with get_call, end_call and set_call_visibility.",
+ "type": "string"
+ },
+ "callee_name": {
+ "anyOf": [
+ {
+ "description": "Recipient display name.",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "costs": {
+ "additionalProperties": {},
+ "properties": {
+ "currency": {
+ "const": "USD",
+ "type": "string"
+ },
+ "reserved_usage_units": {
+ "anyOf": [
+ {
+ "description": "Reserved usage units; absent on legacy calls.",
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "currency"
+ ],
+ "type": "object"
+ },
+ "created_at": {
+ "description": "ISO 8601 creation time.",
+ "type": "string"
+ },
+ "duration_seconds": {
+ "description": "Connected duration in seconds.",
+ "type": "number"
+ },
+ "end_reason": {
+ "description": "Reason the call ended.",
+ "type": "string"
+ },
+ "ended_at": {
+ "anyOf": [
+ {
+ "description": "ISO 8601 end time; null while active.",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "ended_by": {
+ "description": "Party or system that ended the call.",
+ "type": "string"
+ },
+ "error": {
+ "anyOf": [
+ {
+ "additionalProperties": {},
+ "properties": {
+ "code": {
+ "description": "Call failure code.",
+ "type": "string"
+ },
+ "message": {
+ "description": "Call failure explanation.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "is_public": {
+ "description": "Whether the call has a public link.",
+ "type": "boolean"
+ },
+ "language": {
+ "description": "Resolved call language.",
+ "type": "string"
+ },
+ "listen_url": {
+ "description": "URL for the user to listen, read the transcript and stop an active call.",
+ "type": "string"
+ },
+ "locale": {
+ "description": "Resolved BCP 47 language/locale for this call.",
+ "type": "string"
+ },
+ "recording_status": {
+ "description": "Recording availability.",
+ "enum": [
+ "none",
+ "processing",
+ "available",
+ "failed"
+ ],
+ "type": "string"
+ },
+ "recording_url": {
+ "anyOf": [
+ {
+ "description": "Audio URL when ready; private URLs expire.",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "resolution": {
+ "anyOf": [
+ {
+ "additionalProperties": {},
+ "properties": {
+ "callee_requested_no_further_calls": {
+ "description": "Whether the recipient asked not to be called again.",
+ "type": "boolean"
+ },
+ "commitments": {
+ "description": "What the callee agreed to.",
+ "items": {
+ "description": "Confirmed commitment.",
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "follow_ups": {
+ "description": "Actions the user still needs to take.",
+ "items": {
+ "description": "Next action.",
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "key_facts": {
+ "description": "Useful information from the conversation.",
+ "items": {
+ "description": "Fact learned.",
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "outcome": {
+ "description": "Whether the call objective was met; unknown when review is unavailable or evidence is insufficient.",
+ "enum": [
+ "achieved",
+ "partially_achieved",
+ "not_achieved",
+ "no_conversation",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "summary": {
+ "description": "User-facing summary of what happened.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "outcome",
+ "summary",
+ "commitments",
+ "follow_ups",
+ "key_facts",
+ "callee_requested_no_further_calls"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "status": {
+ "description": "Current call lifecycle state.",
+ "enum": [
+ "queued",
+ "ringing",
+ "in_progress",
+ "completed",
+ "answered_silently",
+ "no_answer",
+ "busy",
+ "voicemail",
+ "failed",
+ "rejected",
+ "canceled",
+ "declined_recording",
+ "opted_out"
+ ],
+ "type": "string"
+ },
+ "to": {
+ "description": "Destination in E.164 format.",
+ "type": "string"
+ },
+ "transcript": {
+ "description": "Conversation entries; empty before speech is available.",
+ "items": {
+ "additionalProperties": {},
+ "properties": {
+ "at_ms": {
+ "description": "Milliseconds from the transcript timeline origin.",
+ "type": "number"
+ },
+ "id": {
+ "type": "string"
+ },
+ "role": {
+ "description": "Speaker or confirmed keypad action.",
+ "enum": [
+ "callee",
+ "agent",
+ "keypad"
+ ],
+ "type": "string"
+ },
+ "sequence": {
+ "type": "number"
+ },
+ "text": {
+ "description": "Transcript text.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "role",
+ "text",
+ "at_ms"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "transcript_truncated": {
+ "description": "Whether earlier transcript content was omitted.",
+ "type": "boolean"
+ },
+ "voice": {
+ "anyOf": [
+ {
+ "description": "Resolved voice identifier.",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "call_id",
+ "status",
+ "to",
+ "callee_name",
+ "language",
+ "locale",
+ "voice",
+ "amd_result",
+ "duration_seconds",
+ "is_public",
+ "listen_url",
+ "resolution",
+ "transcript",
+ "recording_url",
+ "recording_status",
+ "costs",
+ "error",
+ "created_at",
+ "ended_at"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": {},
+ "properties": {
+ "error": {
+ "description": "Machine-readable failure code.",
+ "type": "string"
+ },
+ "message": {
+ "description": "Explanation or recovery guidance.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "error"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": {},
+ "properties": {
+ "next_action": {
+ "type": "string"
+ },
+ "operation_id": {
+ "type": "string"
+ },
+ "status": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "operation_id",
+ "status"
+ ],
+ "type": "object"
+ }
+]