{ "Create${APP}Message": { "type": "object", "required": [ "plug_installation", "message", "inbox" ], "properties": { "plug_installation": { "type": "object", "required": [ "id", "settings" ], "properties": { "id": { "type": "string", "pattern": "^(?:pli)_[A-Z0-9]{26}$" }, "settings": { "type": "object", "required": [], "properties": {} } } }, "inbox": { "type": "object", "required": [ "id", "organization" ], "properties": { "id": { "type": "string", "pattern": "^(?:ibx)_[A-Z0-9]{26}$" }, "organization": { "type": "object", "required": [ "id", "status" ], "properties": { "id": { "type": "string", "pattern": "^(?:org)_[A-Z0-9]{26}$" }, "status": { "type": "string" } } } } }, "message": { "type": "object", "required": [ "id", "conversation", "text_content", "metadata" ], "properties": { "id": { "type": "string", "pattern": "^(?:msg)_[A-Z0-9]{26}$" }, "text_content": { "type": "string" }, "metadata": { "type": "object" }, "conversation": { "type": "object", "required": [ "id", "title", "metadata" ], "properties": { "id": { "type": "string", "pattern": "^(?:cnv)_[A-Z0-9]{26}$" }, "title": { "type": "string" }, "metadata": { "type": "object" } } } } } }, "additionalProperties": false }, "Create${APP}": { "type": "object", "required": [ "plug_installation", "organization", "plug", "inbox" ], "properties": { "plug_installation": { "type": "object", "required": [ "id", "settings" ], "properties": { "id": { "type": "string", "pattern": "^(?:pli)_[A-Z0-9]{26}$" }, "settings": { "type": "object", "required": [], "properties": {} } } }, "organization": { "type": "object", "required": [ "id" ], "properties": { "id": { "type": "string", "pattern": "^(?:org)_[A-Z0-9]{26}$" } } }, "plug": { "type": "object", "required": [ "id" ], "properties": { "id": { "type": "string", "pattern": "^(?:plg)_[A-Z0-9]{26}$" } } }, "inbox": { "type": "object", "required": [ "id" ], "properties": { "id": { "type": "string", "pattern": "^(?:ibx)_[A-Z0-9]{26}$" } } } }, "additionalProperties": false } }