{ "$id": "https://c-git.crosscode.co.za/joshua/crosscode-platform/raw/branch/main/packages/contracts/schemas/messaging-test-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": { "ok": { "type": "boolean" }, "error": { "anyOf": [ { "type": "string", "maxLength": 500 }, { "type": "null" } ] }, "saved": { "type": "boolean" } }, "required": [ "ok", "error", "saved" ] }, { "type": "null" } ] }, "whatsapp": { "anyOf": [ { "type": "object", "properties": { "ok": { "type": "boolean" }, "error": { "anyOf": [ { "type": "string", "maxLength": 500 }, { "type": "null" } ] }, "saved": { "type": "boolean" } }, "required": [ "ok", "error", "saved" ] }, { "type": "null" } ] }, "status": { "type": "object", "properties": { "email": { "type": "object", "properties": { "ready": { "type": "boolean" }, "host": { "type": [ "string", "null" ] }, "from": { "type": [ "string", "null" ] } }, "required": [ "ready", "host", "from" ] }, "whatsapp": { "type": "object", "properties": { "ready": { "type": "boolean" }, "instanceId": { "type": [ "string", "null" ] } }, "required": [ "ready", "instanceId" ] } }, "required": [ "email", "whatsapp" ] } }, "required": [ "schema", "email", "whatsapp", "status" ] }