changedOutput schema / properties / event / oneOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "asked_at": {
- "type": "string"
- },
- "follows": {
- "type": "string"
- },
- "request": {
- "type": "string"
- },
- "request_id": {
- "type": "string"
- },
- "transcript": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "phase": {
- "enum": [
- "primary",
- "consult",
- "post_bridge"
- ],
- "type": "string"
- },
- "role": {
- "enum": [
- "user",
- "assistant",
- "agent",
- "waiting_party",
- "consult_agent",
- "consulted_person",
- "tool",
- "system"
- ],
- "type": "string"
- },
- "text": {
- "type": "string"
- },
- "timestamp": {
- "type": "string"
- }
- },
- "required": [
- "role",
- "text",
- "timestamp"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "type": {
- "const": "request",
- "type": "string"
- }
- },
- "required": [
- "type",
- "request_id",
- "request",
- "transcript",
- "asked_at"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "lifecycle": {
- "enum": [
- "dialing",
- "answered"
- ],
- "type": "string"
- },
- "type": {
- "const": "status",
- "type": "string"
- }
- },
- "required": [
- "type",
- "lifecycle"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "type": {
- "const": "waiting",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "type": {
- "const": "superseded",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "outcome": {
- "enum": [
- "answered",
- "no_answer",
- "busy",
- "rejected",
- "invalid_number",
- "unreachable",
- "network_error",
- "cancelled",
- "system_error",
- "failed"
- ],
- "type": "string"
- },
- "talk_seconds": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
- },
- "type": {
- "const": "ended",
- "type": "string"
- },
- "unanswered": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "request": {
- "type": "string"
- },
- "request_id": {
- "type": "string"
- }
- },
- "required": [
- "request_id",
- "request"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "unspoken_replies": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "final": {
- "type": "boolean"
- },
- "request_id": {
- "type": "string"
- },
- "text": {
- "type": "string"
- }
- },
- "required": [
- "request_id",
- "text",
- "final"
- ],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": [
- "type",
- "outcome",
- "talk_seconds",
- "unanswered",
- "unspoken_replies"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "asked_at": {
+ "type": "string"
+ },
+ "follows": {
+ "type": "string"
+ },
+ "request": {
+ "type": "string"
+ },
+ "request_id": {
+ "type": "string"
+ },
+ "transcript": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "phase": {
+ "enum": [
+ "primary",
+ "consult",
+ "post_bridge"
+ ],
+ "type": "string"
+ },
+ "role": {
+ "enum": [
+ "user",
+ "assistant",
+ "agent",
+ "waiting_party",
+ "consult_agent",
+ "consulted_person",
+ "tool",
+ "system"
+ ],
+ "type": "string"
+ },
+ "text": {
+ "type": "string"
+ },
+ "timestamp": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "role",
+ "text",
+ "timestamp"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "type": {
+ "const": "request",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "request_id",
+ "request",
+ "transcript",
+ "asked_at"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "lifecycle": {
+ "enum": [
+ "dialing",
+ "answered"
+ ],
+ "type": "string"
+ },
+ "type": {
+ "const": "status",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "lifecycle"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "type": {
+ "const": "waiting",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "type": {
+ "const": "superseded",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "type": {
+ "const": "taken_over",
+ "type": "string"
+ },
+ "via": {
+ "enum": [
+ "phone",
+ "browser"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "via"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "outcome": {
+ "enum": [
+ "answered",
+ "no_answer",
+ "busy",
+ "rejected",
+ "invalid_number",
+ "unreachable",
+ "network_error",
+ "cancelled",
+ "system_error",
+ "failed"
+ ],
+ "type": "string"
+ },
+ "talk_seconds": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "type": {
+ "const": "ended",
+ "type": "string"
+ },
+ "unanswered": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "request": {
+ "type": "string"
+ },
+ "request_id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "request_id",
+ "request"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "unspoken_replies": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "final": {
+ "type": "boolean"
+ },
+ "request_id": {
+ "type": "string"
+ },
+ "text": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "request_id",
+ "text",
+ "final"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "type",
+ "outcome",
+ "talk_seconds",
+ "unanswered",
+ "unspoken_replies"
+ ],
+ "type": "object"
+ }
+]