{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://cpobjects.mycpl.net/schema/message_thread.json", "title": "Message thread", "description": "Message thread", "type": "object", "properties": { "token": { "description": "Unique ID of the message thread", "type": "string" }, "channel": { "description": "Channel", "type": "object", "$ref": "./channel.json" }, "prompt": { "description": "Prompt of the message thread", "type": "string", "$ref": "./prompt.json" }, "status": { "description": "Status of the message thread", "type": "string", "enum": ["open", "closed", "deleted"] }, "messages": { "description": "Array of messages", "type": "array", "items": { "type": "object", "$dynamicRef": "./message.json#message" } }, "summary": { "description": "Summary of the message thread", "type": "string" }, "highlighted": { "description": "Whether the message thread is highlighted or not", "type": "boolean", "default": false }, "created_at": { "description": "Date-Time of create", "$ref": "./definitions/date_time.json" }, "updated_at": { "description": "Date-Time of update", "$ref": "./definitions/date_time.json" } } }