{ "$id": "https://c-git.crosscode.co.za/joshua/crosscode-platform/raw/branch/main/packages/contracts/schemas/messaging-get-reply.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "schema": { "type": "string", "const": "crosscode.identity-request/1" }, "email": { "anyOf": [ { "type": "object", "properties": { "host": { "type": "string", "minLength": 1, "maxLength": 253 }, "port": { "type": "integer", "minimum": 1, "maximum": 65535 }, "secure": { "type": "boolean" }, "user": { "type": "string", "maxLength": 254 }, "pass": { "anyOf": [ { "type": "string", "maxLength": 4096, "pattern": "^sealed1\\.[A-Za-z0-9_-]{40,}$" }, { "type": "null" } ] }, "from": { "type": "string", "minLength": 3, "maxLength": 320 } }, "required": [ "host", "port", "secure", "user", "pass", "from" ] }, { "type": "null" } ] }, "whatsapp": { "anyOf": [ { "type": "object", "properties": { "accessToken": { "type": "string", "maxLength": 4096, "pattern": "^sealed1\\.[A-Za-z0-9_-]{40,}$" }, "instanceId": { "type": "string", "minLength": 1, "maxLength": 200 } }, "required": [ "accessToken", "instanceId" ] }, { "type": "null" } ] }, "updatedAt": { "anyOf": [ { "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))$" }, { "type": "null" } ] } }, "required": [ "schema", "email", "whatsapp", "updatedAt" ] }