{ "$id": "https://c-git.crosscode.co.za/joshua/crosscode-platform/raw/branch/main/packages/contracts/schemas/agent-join-request.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "agentApiVersion": { "type": "number", "const": 1 }, "token": { "type": "string", "pattern": "^[A-Za-z0-9_-]{32,128}$" }, "mode": { "type": "string", "enum": [ "church", "central" ] }, "hostname": { "type": "string", "maxLength": 253 }, "agentVersion": { "type": "string", "maxLength": 40 }, "publicKeys": { "type": "object", "properties": { "ed25519": { "type": "string", "pattern": "^[A-Za-z0-9_-]{43}$" }, "x25519": { "type": "string", "pattern": "^[A-Za-z0-9_-]{43}$" } }, "required": [ "ed25519", "x25519" ] } }, "required": [ "agentApiVersion", "token", "mode", "hostname", "agentVersion", "publicKeys" ] }