123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"productId": {
"type": "string",
"pattern": "^product_[0-7][0123456789abcdefghjkmnpqrstvwxyz]{25}$"
},
"request": {
"oneOf": [
{
"type": "object",
"properties": {
"view": {
"type": "string",
"const": "list"
},
"status": {
"type": "string",
"enum": [
"new",
"open",
"pending",
"resolved"
]
},
"priority": {
"type": "string",
"enum": [
"low",
"normal",
"high",
"urgent"
]
},
"category": {
"type": "string",
"enum": [
"customer",
"backoffice",
"tracker"
]
},
"search": {
"type": "string",
"maxLength": 160
},
"limit": {
"$ref": "#/$defs/__schema0"
},
"cursor": {
"$ref": "#/$defs/__schema1"
}
},
"required": [
"view"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"view": {
"type": "string",
"const": "ticket"
},
"ticketId": {
"$ref": "#/$defs/__schema2"
}
},
"required": [
"view",
"ticketId"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"view": {
"type": "string",
"enum": [
"updates",
"conversations",
"tracked",
"trackers"
]
},
"ticketId": {
"$ref": "#/$defs/__schema2"
},
"limit": {
"$ref": "#/$defs/__schema0"
},
"cursor": {
"$ref": "#/$defs/__schema1"
}
},
"required": [
"view",
"ticketId"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"view": {
"type": "string",
"const": "requesters"
},
"search": {
"type": "string",
"maxLength": 120
}
},
"required": [
"view",
"search"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"view": {
"type": "string",
"const": "candidates"
},
"conversationId": {
"$ref": "#/$defs/__schema3"
},
"search": {
"type": "string",
"maxLength": 160
}
},
"required": [
"view",
"conversationId",
"search"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"view": {
"type": "string",
"const": "catalog"
}
},
"required": [
"view"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"view": {
"type": "string",
"const": "defaults"
}
},
"required": [
"view"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"view": {
"type": "string",
"const": "forms"
},
"conversationId": {
"$ref": "#/$defs/__schema3"
},
"ticketId": {
"$ref": "#/$defs/__schema2"
},
"purpose": {
"default": "form",
"type": "string",
"enum": [
"options",
"form"
]
}
},
"required": [
"view",
"conversationId"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"view": {
"type": "string",
"const": "conversation_state"
},
"conversationId": {
"$ref": "#/$defs/__schema3"
}
},
"required": [
"view",
"conversationId"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"view": {
"type": "string",
"const": "conversation_tickets"
},
"conversationId": {
"$ref": "#/$defs/__schema3"
},
"limit": {
"$ref": "#/$defs/__schema0"
},
"cursor": {
"$ref": "#/$defs/__schema1"
}
},
"required": [
"view",
"conversationId"
],
"additionalProperties": false
}
]
},
"contentCursor": {
"type": "string",
"minLength": 1,
"maxLength": 4096
}
},
"required": [
"productId",
"request"
],
"additionalProperties": false,
"$defs": {
"__schema0": {
"default": 20,
"type": "integer",
"minimum": 1,
"maximum": 50
},
"__schema1": {
"type": "string",
"minLength": 1,
"maxLength": 4096
},
"__schema2": {
"type": "string",
"pattern": "^ticket_[0-7][0123456789abcdefghjkmnpqrstvwxyz]{25}$"
},
"__schema3": {
"type": "string",
"pattern": "^support_conversation_[0-7][0123456789abcdefghjkmnpqrstvwxyz]{25}$"
}
}
}