> Minded’s MCP server is https://mcp.minded.com: connect an agent to it with a Minded API key to hand work to Minded.

# chats.read

`GET https://app.minded.com/v1/chats/{chatId}/frames`

```json
{
  "operationId": "chats.read",
  "parameters": [
    {
      "name": "chatId",
      "in": "path",
      "required": true,
      "schema": {
        "type": "string",
        "minLength": 1
      }
    },
    {
      "name": "afterSeq",
      "in": "query",
      "schema": {
        "default": 0,
        "type": "integer",
        "minimum": 0,
        "maximum": 9007199254740991
      },
      "allowEmptyValue": true,
      "allowReserved": true
    },
    {
      "name": "waitSeconds",
      "in": "query",
      "schema": {
        "default": 0,
        "type": "integer",
        "minimum": 0,
        "maximum": 50
      },
      "allowEmptyValue": true,
      "allowReserved": true
    }
  ],
  "responses": {
    "200": {
      "description": "OK",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "frames": {
                "type": "array",
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "chatId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "seq": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "createdAt": {
                          "type": "string",
                          "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                        },
                        "type": {
                          "type": "string",
                          "const": "item"
                        },
                        "role": {
                          "type": "string",
                          "enum": [
                            "user",
                            "assistant"
                          ]
                        },
                        "text": {
                          "type": "string"
                        },
                        "recordings": {
                          "minItems": 1,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "minLength": 1
                              },
                              "durationMs": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "stepCount": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "name": {
                                "type": "string",
                                "minLength": 1
                              },
                              "steps": {
                                "type": "array",
                                "items": {
                                  "oneOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "navigate"
                                        },
                                        "at": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        "url": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 2048
                                        },
                                        "title": {
                                          "type": "string",
                                          "maxLength": 2000
                                        },
                                        "shot": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 200000
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "at",
                                        "url",
                                        "title"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "click"
                                        },
                                        "at": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        "url": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 2048
                                        },
                                        "selector": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 500
                                        },
                                        "text": {
                                          "type": "string",
                                          "maxLength": 2000
                                        },
                                        "shot": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 200000
                                        },
                                        "x": {
                                          "type": "number",
                                          "minimum": 0,
                                          "maximum": 1
                                        },
                                        "y": {
                                          "type": "number",
                                          "minimum": 0,
                                          "maximum": 1
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "at",
                                        "url",
                                        "selector",
                                        "text"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "type"
                                        },
                                        "at": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        "url": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 2048
                                        },
                                        "selector": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 500
                                        },
                                        "label": {
                                          "type": "string",
                                          "maxLength": 2000
                                        },
                                        "text": {
                                          "type": "string",
                                          "maxLength": 2000
                                        },
                                        "secret": {
                                          "type": "boolean"
                                        },
                                        "shot": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 200000
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "at",
                                        "url",
                                        "selector",
                                        "label",
                                        "text",
                                        "secret"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "say"
                                        },
                                        "at": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        "text": {
                                          "type": "string",
                                          "maxLength": 2000
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "at",
                                        "text"
                                      ],
                                      "additionalProperties": false
                                    }
                                  ]
                                }
                              }
                            },
                            "required": [
                              "id",
                              "durationMs",
                              "stepCount"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "attachments": {
                          "minItems": 1,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "minLength": 1
                              },
                              "name": {
                                "type": "string",
                                "minLength": 1
                              },
                              "size": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "contentType": {
                                "type": "string",
                                "minLength": 1
                              }
                            },
                            "required": [
                              "id",
                              "name",
                              "size",
                              "contentType"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "model": {
                          "type": "string",
                          "enum": [
                            "claude-fable-5-2",
                            "claude-opus-5-5",
                            "claude-sonnet-5-5",
                            "claude-haiku-5-5",
                            "moonshotai/kimi-k3.1-pro",
                            "zai/glm-5.3-fast",
                            "deepseek/deepseek-v4.1-flash",
                            "google/gemini-4-neon",
                            "google/gemini-4-carbon",
                            "google/gemini-4-hydrogen",
                            "google/gemini-4-argon",
                            "google/gemini-3.8-flash",
                            "google/gemini-3.1-pro-preview",
                            "openai/gpt-6-astra",
                            "openai/gpt-6-sol",
                            "openai/gpt-6-luna",
                            "openai/gpt-6.1-sol",
                            "openai/gpt-6.1-terra",
                            "openai/gpt-6.2-astra",
                            "openai/gpt-6.2-sol",
                            "openai/gpt-5.6-terra",
                            "claude-fable-5-1"
                          ]
                        },
                        "effort": {
                          "type": "string",
                          "enum": [
                            "low",
                            "medium",
                            "high",
                            "xhigh",
                            "max",
                            "genius"
                          ]
                        },
                        "apiKey": {
                          "type": "boolean",
                          "const": true
                        },
                        "source": {
                          "oneOf": [
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "api_key"
                                },
                                "keyId": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "name": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "caller": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "claude",
                                        "chatgpt",
                                        "codex",
                                        "copilot",
                                        "gemini"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "by": {
                                  "type": "string",
                                  "minLength": 1
                                }
                              },
                              "required": [
                                "kind",
                                "keyId",
                                "name",
                                "caller",
                                "by"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "chat"
                                },
                                "chatId": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "title": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "question": {
                                  "type": "object",
                                  "properties": {
                                    "question": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 500
                                    },
                                    "options": {
                                      "maxItems": 4,
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 120
                                      }
                                    }
                                  },
                                  "required": [
                                    "question",
                                    "options"
                                  ],
                                  "additionalProperties": false
                                },
                                "live": {
                                  "type": "boolean",
                                  "const": true
                                }
                              },
                              "required": [
                                "kind",
                                "chatId",
                                "title"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "wake_up"
                                },
                                "wakeUpId": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "remind": {
                                  "type": "boolean",
                                  "const": true
                                }
                              },
                              "required": [
                                "kind",
                                "wakeUpId"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "vault_replaced"
                                },
                                "name": {
                                  "type": "string",
                                  "minLength": 1
                                }
                              },
                              "required": [
                                "kind",
                                "name"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "document_read_again"
                                },
                                "fileId": {
                                  "type": "string",
                                  "minLength": 1
                                }
                              },
                              "required": [
                                "kind",
                                "fileId"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "agent_made"
                                },
                                "agentId": {
                                  "type": "string",
                                  "minLength": 1
                                }
                              },
                              "required": [
                                "kind",
                                "agentId"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "publish_failed"
                                },
                                "websiteId": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "why": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "held": {
                                  "type": "boolean",
                                  "const": true
                                }
                              },
                              "required": [
                                "kind",
                                "websiteId",
                                "why"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "shorten"
                                }
                              },
                              "required": [
                                "kind"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "text"
                                },
                                "name": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "phone": {
                                  "type": "string",
                                  "minLength": 1
                                }
                              },
                              "required": [
                                "kind",
                                "name",
                                "phone"
                              ],
                              "additionalProperties": false
                            }
                          ]
                        },
                        "clientId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "page": {
                          "oneOf": [
                            {
                              "type": "object",
                              "properties": {
                                "from": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "to": {
                                  "type": "string",
                                  "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                                },
                                "zone": {
                                  "type": "string",
                                  "maxLength": 64
                                },
                                "agents": {
                                  "maxItems": 500,
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "people": {
                                  "maxItems": 500,
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "asOf": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "pattern": "^\\d+:\\d+:(\\d+(,\\d+)*)?$"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "kind": {
                                  "type": "string",
                                  "const": "spend"
                                }
                              },
                              "required": [
                                "from",
                                "to",
                                "zone",
                                "agents",
                                "people",
                                "asOf",
                                "kind"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "panel"
                                }
                              },
                              "required": [
                                "kind"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "domain"
                                }
                              },
                              "required": [
                                "kind"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "teams-app"
                                },
                                "agentId": {
                                  "type": "string",
                                  "minLength": 1
                                }
                              },
                              "required": [
                                "kind",
                                "agentId"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "slack-app"
                                },
                                "agentId": {
                                  "type": "string",
                                  "minLength": 1
                                }
                              },
                              "required": [
                                "kind",
                                "agentId"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "settings"
                                },
                                "page": {
                                  "type": "string",
                                  "enum": [
                                    "Profile",
                                    "Members",
                                    "Usage limits"
                                  ]
                                }
                              },
                              "required": [
                                "kind",
                                "page"
                              ],
                              "additionalProperties": false
                            }
                          ]
                        },
                        "edited": {
                          "type": "string"
                        },
                        "voice": {
                          "type": "object",
                          "properties": {
                            "seconds": {
                              "type": "number",
                              "minimum": 0
                            },
                            "recording": {
                              "type": "string",
                              "minLength": 1
                            }
                          },
                          "required": [
                            "seconds"
                          ],
                          "additionalProperties": false
                        },
                        "liveFailed": {
                          "type": "boolean",
                          "const": true
                        },
                        "fromLive": {
                          "type": "string",
                          "minLength": 1
                        },
                        "addAgent": {
                          "type": "boolean",
                          "const": true
                        },
                        "typed": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1
                          }
                        },
                        "quoted": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "held": {
                          "type": "boolean",
                          "const": true
                        },
                        "author": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string",
                              "minLength": 1
                            },
                            "picture": {
                              "type": "string",
                              "minLength": 1
                            },
                            "channel": {
                              "type": "string",
                              "minLength": 1
                            }
                          },
                          "required": [
                            "name"
                          ],
                          "additionalProperties": false
                        },
                        "channel": {
                          "type": "string",
                          "minLength": 1
                        },
                        "live": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "at": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "ms": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "spoken": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "typed": {
                              "type": "boolean",
                              "const": true
                            },
                            "heard": {
                              "type": "object",
                              "properties": {
                                "session": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "ms": {
                                  "type": "number",
                                  "minimum": 0
                                }
                              },
                              "required": [
                                "session",
                                "ms"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "id",
                            "at"
                          ],
                          "additionalProperties": false
                        },
                        "task": {
                          "type": "string",
                          "minLength": 1
                        },
                        "steered": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "queued": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "restores": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "stayed": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "stayedLate": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "stayedKeys": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "batch": {
                          "type": "string",
                          "minLength": 1
                        },
                        "message": {
                          "type": "string",
                          "minLength": 1
                        },
                        "slackRead": {
                          "type": "boolean",
                          "const": true
                        }
                      },
                      "required": [
                        "chatId",
                        "seq",
                        "type",
                        "role",
                        "text"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "chatId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "seq": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "createdAt": {
                          "type": "string",
                          "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                        },
                        "type": {
                          "type": "string",
                          "const": "tool_call"
                        },
                        "callId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1
                        },
                        "input": {},
                        "live": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "at": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "ms": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "spoken": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "typed": {
                              "type": "boolean",
                              "const": true
                            },
                            "heard": {
                              "type": "object",
                              "properties": {
                                "session": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "ms": {
                                  "type": "number",
                                  "minimum": 0
                                }
                              },
                              "required": [
                                "session",
                                "ms"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "id",
                            "at"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "chatId",
                        "seq",
                        "type",
                        "callId",
                        "name",
                        "input"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "chatId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "seq": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "createdAt": {
                          "type": "string",
                          "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                        },
                        "type": {
                          "type": "string",
                          "const": "tool_result"
                        },
                        "callId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "output": {},
                        "isError": {
                          "type": "boolean"
                        },
                        "live": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "at": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "ms": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "spoken": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "typed": {
                              "type": "boolean",
                              "const": true
                            },
                            "heard": {
                              "type": "object",
                              "properties": {
                                "session": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "ms": {
                                  "type": "number",
                                  "minimum": 0
                                }
                              },
                              "required": [
                                "session",
                                "ms"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "id",
                            "at"
                          ],
                          "additionalProperties": false
                        },
                        "clipped": {
                          "type": "boolean",
                          "const": true
                        },
                        "refusedAs": {
                          "type": "string",
                          "enum": [
                            "suggested",
                            "already-suggested",
                            "answer-first",
                            "asked-first"
                          ]
                        }
                      },
                      "required": [
                        "chatId",
                        "seq",
                        "type",
                        "callId",
                        "output",
                        "isError"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "chatId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "seq": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "createdAt": {
                          "type": "string",
                          "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                        },
                        "type": {
                          "type": "string",
                          "const": "subagent"
                        },
                        "callId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "queued",
                            "started",
                            "working",
                            "reported"
                          ]
                        },
                        "step": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "name": {
                              "type": "string",
                              "minLength": 1
                            },
                            "input": {},
                            "output": {},
                            "isError": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "id"
                          ],
                          "additionalProperties": false
                        },
                        "agentId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "report": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "chatId",
                        "seq",
                        "type",
                        "callId",
                        "status"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "chatId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "seq": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "createdAt": {
                          "type": "string",
                          "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                        },
                        "type": {
                          "type": "string",
                          "const": "steps_writing"
                        },
                        "callId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1
                        }
                      },
                      "required": [
                        "chatId",
                        "seq",
                        "type",
                        "callId"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "chatId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "seq": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "createdAt": {
                          "type": "string",
                          "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                        },
                        "type": {
                          "type": "string",
                          "const": "hook"
                        },
                        "event": {
                          "type": "string",
                          "minLength": 1
                        },
                        "hook": {
                          "type": "string",
                          "minLength": 1
                        },
                        "answer": {
                          "type": "string",
                          "enum": [
                            "none",
                            "allow",
                            "deny",
                            "ask",
                            "skip",
                            "keep_going",
                            "fixed"
                          ]
                        },
                        "reason": {
                          "type": "string"
                        },
                        "failed": {
                          "type": "boolean",
                          "const": true
                        },
                        "running": {
                          "type": "boolean",
                          "const": true
                        },
                        "builtIn": {
                          "type": "boolean",
                          "const": true
                        },
                        "callId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "agentId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "input": {},
                        "tool": {
                          "type": "string"
                        },
                        "output": {},
                        "context": {
                          "type": "string"
                        },
                        "matcher": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "chatId",
                        "seq",
                        "type",
                        "event",
                        "hook",
                        "answer"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "chatId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "seq": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "createdAt": {
                          "type": "string",
                          "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                        },
                        "type": {
                          "type": "string",
                          "const": "turn_start"
                        },
                        "turnId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "promptSeq": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "reads": {
                          "type": "array",
                          "items": {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          }
                        }
                      },
                      "required": [
                        "chatId",
                        "seq",
                        "type",
                        "turnId"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "chatId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "seq": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "createdAt": {
                          "type": "string",
                          "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                        },
                        "type": {
                          "type": "string",
                          "const": "turn_end"
                        },
                        "turnId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "reason": {
                          "type": "string",
                          "enum": [
                            "done",
                            "stopped_out_of_usage",
                            "stopped_conversation_limit",
                            "error",
                            "interrupted",
                            "prompt_declined",
                            "stopped_suspicious"
                          ]
                        },
                        "sandbox": {
                          "type": "string",
                          "enum": [
                            "warm",
                            "pool",
                            "cold"
                          ]
                        },
                        "error": {
                          "type": "string"
                        },
                        "subscription": {
                          "type": "string",
                          "enum": [
                            "missing",
                            "refused",
                            "out_of_usage"
                          ]
                        },
                        "account": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "chatId",
                        "seq",
                        "type",
                        "turnId",
                        "reason"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "chatId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "seq": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "createdAt": {
                          "type": "string",
                          "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                        },
                        "type": {
                          "type": "string",
                          "const": "wait_opened"
                        },
                        "waitId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "ask": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "question": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "choices": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "minLength": 1
                                  }
                                },
                                "kind": {
                                  "type": "string",
                                  "const": "take_control"
                                }
                              },
                              "required": [
                                "question",
                                "choices",
                                "kind"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "question": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "choices": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "minLength": 1
                                  }
                                },
                                "kind": {
                                  "type": "string",
                                  "const": "connect"
                                },
                                "app": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "stopped": {
                                  "default": false,
                                  "type": "boolean"
                                },
                                "link": {
                                  "type": "boolean"
                                },
                                "scope": {
                                  "type": "string",
                                  "enum": [
                                    "personal",
                                    "org",
                                    "space"
                                  ]
                                },
                                "agent": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "audience": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "addedBy": {
                                  "type": "string"
                                },
                                "first": {
                                  "type": "boolean"
                                },
                                "mcp": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "name": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "access": {
                                  "type": "string",
                                  "const": "write"
                                },
                                "writable": {
                                  "type": "boolean"
                                },
                                "logo": {
                                  "type": "string",
                                  "format": "uri"
                                },
                                "skipped": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "upgrade": {
                                  "type": "boolean"
                                },
                                "unwatched": {
                                  "type": "boolean"
                                },
                                "account": {
                                  "type": "string"
                                },
                                "switch": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "question",
                                "choices",
                                "kind",
                                "app",
                                "stopped"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "question": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "choices": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "minLength": 1
                                  }
                                },
                                "kind": {
                                  "type": "string",
                                  "const": "keys"
                                },
                                "names": {
                                  "minItems": 1,
                                  "maxItems": 4,
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "pattern": "^[A-Z][A-Z0-9_]{0,63}$"
                                  }
                                },
                                "site": {
                                  "type": "string"
                                },
                                "header": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "question",
                                "choices",
                                "kind",
                                "names"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "question": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "choices": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "minLength": 1
                                  }
                                },
                                "kind": {
                                  "type": "string",
                                  "const": "extension"
                                },
                                "askedBy": {
                                  "type": "object",
                                  "properties": {
                                    "userId": {
                                      "type": "string",
                                      "minLength": 1
                                    },
                                    "name": {
                                      "type": "string",
                                      "minLength": 1
                                    }
                                  },
                                  "required": [
                                    "userId"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "required": [
                                "question",
                                "choices",
                                "kind"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "question": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "choices": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "minLength": 1
                                  }
                                },
                                "kind": {
                                  "type": "string",
                                  "const": "code"
                                },
                                "site": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "username": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "loginId": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "wrong": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "question",
                                "choices",
                                "kind",
                                "site",
                                "username",
                                "loginId"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "questions": {
                                  "minItems": 1,
                                  "maxItems": 4,
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "question": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "header": {
                                        "default": "",
                                        "type": "string"
                                      },
                                      "options": {
                                        "maxItems": 4,
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "label": {
                                              "type": "string",
                                              "minLength": 1
                                            },
                                            "description": {
                                              "default": "",
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "label",
                                            "description"
                                          ],
                                          "additionalProperties": false
                                        }
                                      },
                                      "multiSelect": {
                                        "default": false,
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "question",
                                      "header",
                                      "options",
                                      "multiSelect"
                                    ],
                                    "additionalProperties": false
                                  }
                                }
                              },
                              "required": [
                                "questions"
                              ],
                              "additionalProperties": false
                            },
                            {}
                          ]
                        },
                        "approval": {
                          "type": "object",
                          "properties": {
                            "tool": {
                              "type": "string",
                              "minLength": 1
                            },
                            "input": {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {}
                            },
                            "kind": {
                              "type": "string",
                              "enum": [
                                "browser",
                                "app"
                              ]
                            },
                            "hook": {
                              "type": "boolean",
                              "const": true
                            },
                            "once": {
                              "type": "boolean",
                              "const": true
                            },
                            "firstSite": {
                              "type": "boolean",
                              "const": true
                            },
                            "sensitive": {
                              "type": "boolean"
                            },
                            "connection": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "account": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "page": {
                              "type": "object",
                              "properties": {
                                "title": {
                                  "type": "string"
                                },
                                "url": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "title",
                                "url"
                              ],
                              "additionalProperties": false
                            },
                            "read": {
                              "type": "integer",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991
                            },
                            "doc": {
                              "type": "string"
                            },
                            "control": {
                              "type": "string"
                            },
                            "agent": {
                              "type": "string"
                            },
                            "agentId": {
                              "type": "string"
                            },
                            "targetId": {
                              "type": "string"
                            },
                            "deletes": {
                              "type": "object",
                              "properties": {
                                "stops": {
                                  "type": "string"
                                },
                                "going": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "on": {
                                  "type": "boolean"
                                },
                                "ran": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "stops",
                                "going",
                                "on",
                                "ran"
                              ],
                              "additionalProperties": false
                            },
                            "shown": {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {
                                "type": "string"
                              }
                            },
                            "script": {
                              "type": "object",
                              "properties": {
                                "title": {
                                  "type": "string"
                                },
                                "code": {
                                  "type": "string"
                                },
                                "writes": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "tool": {
                                        "type": "string"
                                      },
                                      "shown": {
                                        "type": "string"
                                      },
                                      "connection": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "account": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "tool",
                                      "shown",
                                      "connection",
                                      "account"
                                    ],
                                    "additionalProperties": false
                                  }
                                }
                              },
                              "required": [
                                "title",
                                "code",
                                "writes"
                              ],
                              "additionalProperties": false
                            },
                            "subagents": {
                              "type": "object",
                              "properties": {
                                "names": {
                                  "minItems": 1,
                                  "maxItems": 200,
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "maxLength": 400
                                  }
                                },
                                "usd": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                }
                              },
                              "required": [
                                "names",
                                "usd"
                              ],
                              "additionalProperties": false
                            },
                            "says": {
                              "type": "string"
                            },
                            "label": {
                              "type": "string"
                            },
                            "ring": {
                              "type": "object",
                              "properties": {
                                "x": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 100
                                },
                                "y": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 100
                                },
                                "w": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 100
                                },
                                "h": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 100
                                }
                              },
                              "required": [
                                "x",
                                "y",
                                "w",
                                "h"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "tool",
                            "input",
                            "kind",
                            "sensitive"
                          ],
                          "additionalProperties": false
                        },
                        "askedBy": {
                          "type": "object",
                          "properties": {
                            "userId": {
                              "type": "string",
                              "minLength": 1
                            },
                            "name": {
                              "type": "string",
                              "minLength": 1
                            }
                          },
                          "required": [
                            "userId"
                          ],
                          "additionalProperties": false
                        },
                        "blocking": {
                          "type": "boolean",
                          "const": false
                        }
                      },
                      "required": [
                        "chatId",
                        "seq",
                        "type",
                        "waitId",
                        "ask"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "chatId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "seq": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "createdAt": {
                          "type": "string",
                          "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                        },
                        "type": {
                          "type": "string",
                          "const": "wait_answered"
                        },
                        "waitId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "answer": {
                          "type": "string",
                          "minLength": 1
                        },
                        "scope": {
                          "type": "string",
                          "enum": [
                            "personal",
                            "org",
                            "space"
                          ]
                        },
                        "answers": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {
                            "type": "string",
                            "minLength": 1
                          }
                        },
                        "account": {
                          "type": "string",
                          "minLength": 1
                        },
                        "access": {
                          "type": "string",
                          "const": "write"
                        },
                        "choice": {
                          "type": "string",
                          "const": "turn-off"
                        },
                        "told": {
                          "type": "string",
                          "minLength": 1
                        },
                        "attachments": {
                          "minItems": 1,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "minLength": 1
                              },
                              "name": {
                                "type": "string",
                                "minLength": 1
                              },
                              "size": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "contentType": {
                                "type": "string",
                                "minLength": 1
                              }
                            },
                            "required": [
                              "id",
                              "name",
                              "size",
                              "contentType"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "agentId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "again": {
                          "type": "boolean",
                          "const": true
                        },
                        "instead": {
                          "type": "boolean",
                          "const": true
                        },
                        "typed": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1
                          }
                        },
                        "held": {
                          "type": "boolean",
                          "const": true
                        },
                        "author": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string",
                              "minLength": 1
                            },
                            "picture": {
                              "type": "string",
                              "minLength": 1
                            },
                            "channel": {
                              "type": "string",
                              "minLength": 1
                            }
                          },
                          "required": [
                            "name"
                          ],
                          "additionalProperties": false
                        },
                        "channel": {
                          "type": "string",
                          "minLength": 1
                        }
                      },
                      "required": [
                        "chatId",
                        "seq",
                        "type",
                        "waitId",
                        "answer"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "chatId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "seq": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "createdAt": {
                          "type": "string",
                          "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                        },
                        "type": {
                          "type": "string",
                          "const": "wait_skipped"
                        },
                        "waitId": {
                          "type": "string",
                          "minLength": 1
                        }
                      },
                      "required": [
                        "chatId",
                        "seq",
                        "type",
                        "waitId"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "chatId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "seq": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "createdAt": {
                          "type": "string",
                          "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                        },
                        "type": {
                          "type": "string",
                          "const": "wait_closed"
                        },
                        "waitId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "reason": {
                          "type": "string",
                          "enum": [
                            "stopped",
                            "superseded"
                          ]
                        }
                      },
                      "required": [
                        "chatId",
                        "seq",
                        "type",
                        "waitId",
                        "reason"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "chatId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "seq": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "createdAt": {
                          "type": "string",
                          "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                        },
                        "type": {
                          "type": "string",
                          "const": "offer_told"
                        },
                        "offer": {
                          "type": "string",
                          "minLength": 1
                        },
                        "told": {
                          "type": "string",
                          "minLength": 1
                        },
                        "agentId": {
                          "type": "string",
                          "minLength": 1
                        }
                      },
                      "required": [
                        "chatId",
                        "seq",
                        "type",
                        "offer",
                        "told"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "chatId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "seq": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "createdAt": {
                          "type": "string",
                          "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                        },
                        "type": {
                          "type": "string",
                          "const": "prompt_queued"
                        },
                        "text": {
                          "type": "string"
                        },
                        "recordings": {
                          "minItems": 1,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "minLength": 1
                              },
                              "durationMs": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "stepCount": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "name": {
                                "type": "string",
                                "minLength": 1
                              },
                              "steps": {
                                "type": "array",
                                "items": {
                                  "oneOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "navigate"
                                        },
                                        "at": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        "url": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 2048
                                        },
                                        "title": {
                                          "type": "string",
                                          "maxLength": 2000
                                        },
                                        "shot": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 200000
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "at",
                                        "url",
                                        "title"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "click"
                                        },
                                        "at": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        "url": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 2048
                                        },
                                        "selector": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 500
                                        },
                                        "text": {
                                          "type": "string",
                                          "maxLength": 2000
                                        },
                                        "shot": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 200000
                                        },
                                        "x": {
                                          "type": "number",
                                          "minimum": 0,
                                          "maximum": 1
                                        },
                                        "y": {
                                          "type": "number",
                                          "minimum": 0,
                                          "maximum": 1
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "at",
                                        "url",
                                        "selector",
                                        "text"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "type"
                                        },
                                        "at": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        "url": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 2048
                                        },
                                        "selector": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 500
                                        },
                                        "label": {
                                          "type": "string",
                                          "maxLength": 2000
                                        },
                                        "text": {
                                          "type": "string",
                                          "maxLength": 2000
                                        },
                                        "secret": {
                                          "type": "boolean"
                                        },
                                        "shot": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 200000
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "at",
                                        "url",
                                        "selector",
                                        "label",
                                        "text",
                                        "secret"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "say"
                                        },
                                        "at": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        "text": {
                                          "type": "string",
                                          "maxLength": 2000
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "at",
                                        "text"
                                      ],
                                      "additionalProperties": false
                                    }
                                  ]
                                }
                              }
                            },
                            "required": [
                              "id",
                              "durationMs",
                              "stepCount"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "attachments": {
                          "minItems": 1,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "minLength": 1
                              },
                              "name": {
                                "type": "string",
                                "minLength": 1
                              },
                              "size": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "contentType": {
                                "type": "string",
                                "minLength": 1
                              }
                            },
                            "required": [
                              "id",
                              "name",
                              "size",
                              "contentType"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "model": {
                          "type": "string",
                          "enum": [
                            "claude-fable-5-2",
                            "claude-opus-5-5",
                            "claude-sonnet-5-5",
                            "claude-haiku-5-5",
                            "moonshotai/kimi-k3.1-pro",
                            "zai/glm-5.3-fast",
                            "deepseek/deepseek-v4.1-flash",
                            "google/gemini-4-neon",
                            "google/gemini-4-carbon",
                            "google/gemini-4-hydrogen",
                            "google/gemini-4-argon",
                            "google/gemini-3.8-flash",
                            "google/gemini-3.1-pro-preview",
                            "openai/gpt-6-astra",
                            "openai/gpt-6-sol",
                            "openai/gpt-6-luna",
                            "openai/gpt-6.1-sol",
                            "openai/gpt-6.1-terra",
                            "openai/gpt-6.2-astra",
                            "openai/gpt-6.2-sol",
                            "openai/gpt-5.6-terra",
                            "claude-fable-5-1"
                          ]
                        },
                        "effort": {
                          "type": "string",
                          "enum": [
                            "low",
                            "medium",
                            "high",
                            "xhigh",
                            "max",
                            "genius"
                          ]
                        },
                        "apiKey": {
                          "type": "boolean",
                          "const": true
                        },
                        "source": {
                          "oneOf": [
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "api_key"
                                },
                                "keyId": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "name": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "caller": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "claude",
                                        "chatgpt",
                                        "codex",
                                        "copilot",
                                        "gemini"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "by": {
                                  "type": "string",
                                  "minLength": 1
                                }
                              },
                              "required": [
                                "kind",
                                "keyId",
                                "name",
                                "caller",
                                "by"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "chat"
                                },
                                "chatId": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "title": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "question": {
                                  "type": "object",
                                  "properties": {
                                    "question": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 500
                                    },
                                    "options": {
                                      "maxItems": 4,
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 120
                                      }
                                    }
                                  },
                                  "required": [
                                    "question",
                                    "options"
                                  ],
                                  "additionalProperties": false
                                },
                                "live": {
                                  "type": "boolean",
                                  "const": true
                                }
                              },
                              "required": [
                                "kind",
                                "chatId",
                                "title"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "wake_up"
                                },
                                "wakeUpId": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "remind": {
                                  "type": "boolean",
                                  "const": true
                                }
                              },
                              "required": [
                                "kind",
                                "wakeUpId"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "vault_replaced"
                                },
                                "name": {
                                  "type": "string",
                                  "minLength": 1
                                }
                              },
                              "required": [
                                "kind",
                                "name"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "document_read_again"
                                },
                                "fileId": {
                                  "type": "string",
                                  "minLength": 1
                                }
                              },
                              "required": [
                                "kind",
                                "fileId"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "agent_made"
                                },
                                "agentId": {
                                  "type": "string",
                                  "minLength": 1
                                }
                              },
                              "required": [
                                "kind",
                                "agentId"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "publish_failed"
                                },
                                "websiteId": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "why": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "held": {
                                  "type": "boolean",
                                  "const": true
                                }
                              },
                              "required": [
                                "kind",
                                "websiteId",
                                "why"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "shorten"
                                }
                              },
                              "required": [
                                "kind"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "text"
                                },
                                "name": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "phone": {
                                  "type": "string",
                                  "minLength": 1
                                }
                              },
                              "required": [
                                "kind",
                                "name",
                                "phone"
                              ],
                              "additionalProperties": false
                            }
                          ]
                        },
                        "clientId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "page": {
                          "oneOf": [
                            {
                              "type": "object",
                              "properties": {
                                "from": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "to": {
                                  "type": "string",
                                  "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                                },
                                "zone": {
                                  "type": "string",
                                  "maxLength": 64
                                },
                                "agents": {
                                  "maxItems": 500,
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "people": {
                                  "maxItems": 500,
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "asOf": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "pattern": "^\\d+:\\d+:(\\d+(,\\d+)*)?$"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "kind": {
                                  "type": "string",
                                  "const": "spend"
                                }
                              },
                              "required": [
                                "from",
                                "to",
                                "zone",
                                "agents",
                                "people",
                                "asOf",
                                "kind"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "panel"
                                }
                              },
                              "required": [
                                "kind"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "domain"
                                }
                              },
                              "required": [
                                "kind"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "teams-app"
                                },
                                "agentId": {
                                  "type": "string",
                                  "minLength": 1
                                }
                              },
                              "required": [
                                "kind",
                                "agentId"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "slack-app"
                                },
                                "agentId": {
                                  "type": "string",
                                  "minLength": 1
                                }
                              },
                              "required": [
                                "kind",
                                "agentId"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "settings"
                                },
                                "page": {
                                  "type": "string",
                                  "enum": [
                                    "Profile",
                                    "Members",
                                    "Usage limits"
                                  ]
                                }
                              },
                              "required": [
                                "kind",
                                "page"
                              ],
                              "additionalProperties": false
                            }
                          ]
                        },
                        "edited": {
                          "type": "string"
                        },
                        "voice": {
                          "type": "object",
                          "properties": {
                            "seconds": {
                              "type": "number",
                              "minimum": 0
                            },
                            "recording": {
                              "type": "string",
                              "minLength": 1
                            }
                          },
                          "required": [
                            "seconds"
                          ],
                          "additionalProperties": false
                        },
                        "liveFailed": {
                          "type": "boolean",
                          "const": true
                        },
                        "fromLive": {
                          "type": "string",
                          "minLength": 1
                        },
                        "addAgent": {
                          "type": "boolean",
                          "const": true
                        },
                        "typed": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1
                          }
                        },
                        "quoted": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "author": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string",
                              "minLength": 1
                            },
                            "picture": {
                              "type": "string",
                              "minLength": 1
                            },
                            "channel": {
                              "type": "string",
                              "minLength": 1
                            }
                          },
                          "required": [
                            "name"
                          ],
                          "additionalProperties": false
                        },
                        "channel": {
                          "type": "string",
                          "minLength": 1
                        },
                        "steer": {
                          "type": "boolean",
                          "const": true
                        },
                        "by": {
                          "type": "string",
                          "minLength": 1
                        }
                      },
                      "required": [
                        "chatId",
                        "seq",
                        "type",
                        "text"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "chatId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "seq": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "createdAt": {
                          "type": "string",
                          "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                        },
                        "type": {
                          "type": "string",
                          "const": "prompt_withdrawn"
                        },
                        "promptSeq": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "op": {
                          "type": "string",
                          "minLength": 1
                        }
                      },
                      "required": [
                        "chatId",
                        "seq",
                        "type",
                        "promptSeq"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "chatId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "seq": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "createdAt": {
                          "type": "string",
                          "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                        },
                        "type": {
                          "type": "string",
                          "const": "turn_resumed"
                        },
                        "raisedToMicroUsd": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "restore": {
                          "type": "boolean",
                          "const": true
                        }
                      },
                      "required": [
                        "chatId",
                        "seq",
                        "type"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "chatId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "seq": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "createdAt": {
                          "type": "string",
                          "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                        },
                        "type": {
                          "type": "string",
                          "const": "live_ended"
                        },
                        "liveId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "seconds": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "endedBy": {
                          "type": "string",
                          "enum": [
                            "user",
                            "minded",
                            "time_limit",
                            "silence",
                            "line_dropped",
                            "shutdown",
                            "no_answer"
                          ]
                        },
                        "recorded": {
                          "type": "boolean",
                          "const": true
                        },
                        "saving": {
                          "type": "boolean",
                          "const": true
                        },
                        "lost": {
                          "type": "boolean",
                          "const": true
                        },
                        "liveChatId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "after": {
                          "type": "boolean",
                          "const": true
                        },
                        "turnIn": {
                          "type": "string",
                          "minLength": 1
                        },
                        "call": {
                          "type": "object",
                          "properties": {
                            "who": {
                              "type": "string"
                            },
                            "outcome": {
                              "type": "string",
                              "enum": [
                                "answered",
                                "no-answer",
                                "voicemail",
                                "could-not-connect",
                                "stopped",
                                "out-of-usage",
                                "joined",
                                "not-joined"
                              ]
                            },
                            "held": {
                              "type": "boolean",
                              "const": true
                            },
                            "busy": {
                              "type": "boolean",
                              "const": true
                            },
                            "declined": {
                              "type": "boolean",
                              "const": true
                            },
                            "back": {
                              "type": "boolean",
                              "const": true
                            },
                            "screened": {
                              "type": "boolean",
                              "const": true
                            }
                          },
                          "required": [
                            "who",
                            "outcome"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "chatId",
                        "seq",
                        "type",
                        "liveId",
                        "seconds"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "chatId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "seq": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "createdAt": {
                          "type": "string",
                          "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                        },
                        "type": {
                          "type": "string",
                          "const": "live_recorded"
                        },
                        "liveId": {
                          "type": "string",
                          "minLength": 1
                        }
                      },
                      "required": [
                        "chatId",
                        "seq",
                        "type",
                        "liveId"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "chatId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "seq": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "createdAt": {
                          "type": "string",
                          "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                        },
                        "type": {
                          "type": "string",
                          "const": "live_started"
                        },
                        "liveId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "phone": {
                          "type": "boolean",
                          "const": true
                        },
                        "call": {
                          "type": "object",
                          "properties": {
                            "who": {
                              "type": "string"
                            },
                            "back": {
                              "type": "boolean",
                              "const": true
                            },
                            "join": {
                              "type": "boolean",
                              "const": true
                            }
                          },
                          "required": [
                            "who"
                          ],
                          "additionalProperties": false
                        },
                        "author": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string",
                              "minLength": 1
                            },
                            "picture": {
                              "type": "string",
                              "minLength": 1
                            },
                            "channel": {
                              "type": "string",
                              "minLength": 1
                            }
                          },
                          "required": [
                            "name"
                          ],
                          "additionalProperties": false
                        },
                        "channel": {
                          "type": "string",
                          "minLength": 1
                        }
                      },
                      "required": [
                        "chatId",
                        "seq",
                        "type",
                        "liveId"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "chatId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "seq": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "createdAt": {
                          "type": "string",
                          "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                        },
                        "type": {
                          "type": "string",
                          "const": "live_closed"
                        },
                        "liveId": {
                          "type": "string",
                          "minLength": 1
                        }
                      },
                      "required": [
                        "chatId",
                        "seq",
                        "type",
                        "liveId"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "chatId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "seq": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "createdAt": {
                          "type": "string",
                          "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                        },
                        "type": {
                          "type": "string",
                          "const": "live_restored"
                        },
                        "liveId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "fromSeq": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        }
                      },
                      "required": [
                        "chatId",
                        "seq",
                        "type",
                        "liveId",
                        "fromSeq"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "chatId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "seq": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "createdAt": {
                          "type": "string",
                          "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                        },
                        "type": {
                          "type": "string",
                          "const": "turn_retried"
                        },
                        "turnId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "promptSeq": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "text": {
                          "type": "string"
                        },
                        "apiKey": {
                          "type": "boolean",
                          "const": true
                        },
                        "recordings": {
                          "minItems": 1,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "minLength": 1
                              },
                              "durationMs": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "stepCount": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "name": {
                                "type": "string",
                                "minLength": 1
                              },
                              "steps": {
                                "type": "array",
                                "items": {
                                  "oneOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "navigate"
                                        },
                                        "at": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        "url": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 2048
                                        },
                                        "title": {
                                          "type": "string",
                                          "maxLength": 2000
                                        },
                                        "shot": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 200000
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "at",
                                        "url",
                                        "title"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "click"
                                        },
                                        "at": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        "url": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 2048
                                        },
                                        "selector": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 500
                                        },
                                        "text": {
                                          "type": "string",
                                          "maxLength": 2000
                                        },
                                        "shot": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 200000
                                        },
                                        "x": {
                                          "type": "number",
                                          "minimum": 0,
                                          "maximum": 1
                                        },
                                        "y": {
                                          "type": "number",
                                          "minimum": 0,
                                          "maximum": 1
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "at",
                                        "url",
                                        "selector",
                                        "text"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "type"
                                        },
                                        "at": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        "url": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 2048
                                        },
                                        "selector": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 500
                                        },
                                        "label": {
                                          "type": "string",
                                          "maxLength": 2000
                                        },
                                        "text": {
                                          "type": "string",
                                          "maxLength": 2000
                                        },
                                        "secret": {
                                          "type": "boolean"
                                        },
                                        "shot": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 200000
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "at",
                                        "url",
                                        "selector",
                                        "label",
                                        "text",
                                        "secret"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "say"
                                        },
                                        "at": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        "text": {
                                          "type": "string",
                                          "maxLength": 2000
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "at",
                                        "text"
                                      ],
                                      "additionalProperties": false
                                    }
                                  ]
                                }
                              }
                            },
                            "required": [
                              "id",
                              "durationMs",
                              "stepCount"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "attachments": {
                          "minItems": 1,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "minLength": 1
                              },
                              "name": {
                                "type": "string",
                                "minLength": 1
                              },
                              "size": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "contentType": {
                                "type": "string",
                                "minLength": 1
                              }
                            },
                            "required": [
                              "id",
                              "name",
                              "size",
                              "contentType"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "chatId",
                        "seq",
                        "type",
                        "turnId",
                        "promptSeq"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "chatId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "seq": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "createdAt": {
                          "type": "string",
                          "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                        },
                        "type": {
                          "type": "string",
                          "const": "browser_fallback"
                        },
                        "turnId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "back": {
                          "type": "boolean",
                          "const": true
                        }
                      },
                      "required": [
                        "chatId",
                        "seq",
                        "type",
                        "turnId"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "chatId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "seq": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "createdAt": {
                          "type": "string",
                          "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                        },
                        "type": {
                          "type": "string",
                          "const": "tab_closed"
                        },
                        "turnId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "left": {
                          "type": "boolean",
                          "const": true
                        }
                      },
                      "required": [
                        "chatId",
                        "seq",
                        "type",
                        "turnId"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "chatId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "seq": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "createdAt": {
                          "type": "string",
                          "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                        },
                        "type": {
                          "type": "string",
                          "const": "step_snapshot"
                        },
                        "turnId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "callId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "site": {
                          "type": "string",
                          "maxLength": 300
                        }
                      },
                      "required": [
                        "chatId",
                        "seq",
                        "type",
                        "turnId",
                        "callId"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "chatId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "seq": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "createdAt": {
                          "type": "string",
                          "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                        },
                        "type": {
                          "type": "string",
                          "const": "chat_delegated"
                        },
                        "delegatedChatId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "title": {
                          "type": "string",
                          "minLength": 1
                        },
                        "live": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "at": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "ms": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "spoken": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "typed": {
                              "type": "boolean",
                              "const": true
                            },
                            "heard": {
                              "type": "object",
                              "properties": {
                                "session": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "ms": {
                                  "type": "number",
                                  "minimum": 0
                                }
                              },
                              "required": [
                                "session",
                                "ms"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "id",
                            "at"
                          ],
                          "additionalProperties": false
                        },
                        "host": {
                          "type": "boolean",
                          "const": true
                        },
                        "suggestion": {
                          "type": "object",
                          "properties": {
                            "callId": {
                              "type": "string",
                              "minLength": 1
                            },
                            "index": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "callId",
                            "index"
                          ],
                          "additionalProperties": false
                        },
                        "startedTask": {
                          "type": "boolean",
                          "const": true
                        }
                      },
                      "required": [
                        "chatId",
                        "seq",
                        "type",
                        "delegatedChatId",
                        "title"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "chatId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "seq": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "createdAt": {
                          "type": "string",
                          "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                        },
                        "type": {
                          "type": "string",
                          "const": "live_focus"
                        },
                        "focusChatId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "title": {
                          "type": "string"
                        },
                        "live": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "at": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "ms": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "spoken": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "typed": {
                              "type": "boolean",
                              "const": true
                            },
                            "heard": {
                              "type": "object",
                              "properties": {
                                "session": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "ms": {
                                  "type": "number",
                                  "minimum": 0
                                }
                              },
                              "required": [
                                "session",
                                "ms"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "id",
                            "at"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "chatId",
                        "seq",
                        "type",
                        "focusChatId",
                        "title",
                        "live"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "chatId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "seq": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "createdAt": {
                          "type": "string",
                          "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                        },
                        "type": {
                          "type": "string",
                          "const": "live_host"
                        },
                        "hostChatId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "live": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "at": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "ms": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "spoken": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "typed": {
                              "type": "boolean",
                              "const": true
                            },
                            "heard": {
                              "type": "object",
                              "properties": {
                                "session": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "ms": {
                                  "type": "number",
                                  "minimum": 0
                                }
                              },
                              "required": [
                                "session",
                                "ms"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "id",
                            "at"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "chatId",
                        "seq",
                        "type",
                        "hostChatId"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "chatId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "seq": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "createdAt": {
                          "type": "string",
                          "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                        },
                        "type": {
                          "type": "string",
                          "const": "channel_delivery"
                        },
                        "turnId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "channel": {
                          "type": "string",
                          "enum": [
                            "email",
                            "slack",
                            "whatsapp",
                            "texts"
                          ]
                        },
                        "delivered": {
                          "type": "boolean"
                        },
                        "why": {
                          "type": "string",
                          "minLength": 1
                        },
                        "where": {
                          "type": "string",
                          "minLength": 1
                        },
                        "forGood": {
                          "type": "boolean",
                          "const": true
                        }
                      },
                      "required": [
                        "chatId",
                        "seq",
                        "type",
                        "turnId",
                        "channel",
                        "delivered"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "chatId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "seq": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "createdAt": {
                          "type": "string",
                          "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                        },
                        "type": {
                          "type": "string",
                          "const": "turn_purpose"
                        },
                        "turnId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "purpose": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 60
                        }
                      },
                      "required": [
                        "chatId",
                        "seq",
                        "type",
                        "turnId",
                        "purpose"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "chatId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "seq": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "createdAt": {
                          "type": "string",
                          "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                        },
                        "type": {
                          "type": "string",
                          "const": "turn_waiting"
                        },
                        "turnId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "placed": {
                          "type": "boolean",
                          "const": true
                        }
                      },
                      "required": [
                        "chatId",
                        "seq",
                        "type",
                        "turnId"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "chatId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "seq": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "createdAt": {
                          "type": "string",
                          "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                        },
                        "type": {
                          "type": "string",
                          "const": "work_suggested"
                        },
                        "suggestionId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1
                        },
                        "brief": {
                          "type": "string",
                          "minLength": 1
                        },
                        "task": {
                          "type": "string",
                          "minLength": 1
                        },
                        "key": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string",
                              "minLength": 1
                            },
                            "site": {
                              "type": "string"
                            },
                            "start": {
                              "type": "string",
                              "maxLength": 24
                            },
                            "print": {
                              "type": "string",
                              "maxLength": 64
                            },
                            "seenBy": {
                              "type": "string",
                              "minLength": 1
                            }
                          },
                          "required": [
                            "name",
                            "site"
                          ],
                          "additionalProperties": false
                        },
                        "live": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "at": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "ms": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "spoken": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "typed": {
                              "type": "boolean",
                              "const": true
                            },
                            "heard": {
                              "type": "object",
                              "properties": {
                                "session": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "ms": {
                                  "type": "number",
                                  "minimum": 0
                                }
                              },
                              "required": [
                                "session",
                                "ms"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "id",
                            "at"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "chatId",
                        "seq",
                        "type",
                        "suggestionId",
                        "name",
                        "brief",
                        "task"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "chatId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "seq": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "createdAt": {
                          "type": "string",
                          "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                        },
                        "type": {
                          "type": "string",
                          "const": "work_suggestion_answered"
                        },
                        "suggestionId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "answer": {
                          "type": "string",
                          "enum": [
                            "started",
                            "dismissed",
                            "saved",
                            "refused"
                          ]
                        },
                        "savedAs": {
                          "type": "string"
                        },
                        "live": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "at": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "ms": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "spoken": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "typed": {
                              "type": "boolean",
                              "const": true
                            },
                            "heard": {
                              "type": "object",
                              "properties": {
                                "session": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "ms": {
                                  "type": "number",
                                  "minimum": 0
                                }
                              },
                              "required": [
                                "session",
                                "ms"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "id",
                            "at"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "chatId",
                        "seq",
                        "type",
                        "suggestionId",
                        "answer"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "chatId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "seq": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "createdAt": {
                          "type": "string",
                          "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                        },
                        "type": {
                          "type": "string",
                          "const": "suggestion_dismissed"
                        },
                        "callId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "index": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "chatId",
                        "seq",
                        "type",
                        "callId",
                        "index"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "chatId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "seq": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "createdAt": {
                          "type": "string",
                          "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                        },
                        "type": {
                          "type": "string",
                          "const": "ask_answered"
                        },
                        "asked": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "question": {
                          "type": "string"
                        },
                        "answer": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "chatId",
                        "seq",
                        "type",
                        "asked",
                        "question",
                        "answer"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "chatId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "seq": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "createdAt": {
                          "type": "string",
                          "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                        },
                        "type": {
                          "type": "string",
                          "const": "live_look"
                        },
                        "step": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "callId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "site": {
                          "type": "string",
                          "minLength": 1
                        },
                        "note": {
                          "type": "string",
                          "minLength": 1
                        },
                        "label": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 120
                        },
                        "unseen": {
                          "type": "boolean",
                          "const": true
                        },
                        "stopped": {
                          "type": "boolean",
                          "const": true
                        },
                        "picture": {
                          "type": "boolean",
                          "const": true
                        },
                        "pictureFailed": {
                          "type": "boolean",
                          "const": true
                        },
                        "live": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "at": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "ms": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "spoken": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "typed": {
                              "type": "boolean",
                              "const": true
                            },
                            "heard": {
                              "type": "object",
                              "properties": {
                                "session": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "ms": {
                                  "type": "number",
                                  "minimum": 0
                                }
                              },
                              "required": [
                                "session",
                                "ms"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "id",
                            "at"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "chatId",
                        "seq",
                        "type",
                        "step"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "chatId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "seq": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "createdAt": {
                          "type": "string",
                          "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                        },
                        "type": {
                          "type": "string",
                          "const": "search_back"
                        },
                        "callId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "index": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "found": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "chatId",
                        "seq",
                        "type",
                        "callId",
                        "index",
                        "found"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "lastSeq": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "status": {
                "type": "string",
                "enum": [
                  "working",
                  "waiting_for_answer",
                  "idle"
                ]
              }
            },
            "required": [
              "frames",
              "lastSeq",
              "status"
            ],
            "additionalProperties": false
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://app.minded.com/v1"
    }
  ],
  "security": [
    {
      "apiKey": []
    },
    {
      "runToken": [],
      "runChat": []
    }
  ],
  "securitySchemes": {
    "apiKey": {
      "type": "http",
      "scheme": "bearer",
      "description": "A member’s Minded API key"
    },
    "runToken": {
      "type": "http",
      "scheme": "bearer",
      "description": "A run’s own token, which its sandbox holds as MINDED_RUN_TOKEN. It works only while the turn it was given for runs"
    },
    "runChat": {
      "type": "apiKey",
      "in": "header",
      "name": "x-minded-chat-id",
      "description": "The chat the run’s token was given for, which its sandbox holds as MINDED_CHAT_ID"
    }
  }
}
```
