Generated from services/crossfire/packages/contracts/src/schema/plan.ts at
41af2124Definitions#
All code blocks below are TypeScript declarations copied from the server. They document validation, not JSON to send or code to paste into a chat. Clients can use any HTTP library without importing these declarations. check.object rejects unknown fields. Custom functions and refinements specify additional checks.
Imported definitions#
services/crossfire/packages/contracts/src/schema/validation.tsservices/crossfire/packages/contracts/src/schema/response.tsservices/crossfire/packages/contracts/src/schema/request.ts
preview#
preview = check.object({ digest: check.text(64, 64), snapshots: check.list(check.object({ agentId: check.identifier, revision: check.integer(),
grants: check.list(check.object({ roomId: check.roomId, generation: check.identifier, revision: check.integer() }), 100) }), 100),
changes: check.list(check.object({ agentId: check.identifier, roomId: check.roomId, before: check.nullable(grant),
agentName: check.text(255), instanceKey: check.name, roomName: check.text(255), roomAlias: check.nullable(check.text(255)),
after: check.nullable(grantIntent), changed: check.boolean, authorizerId: check.identifier,
authority: check.nullable(roomAuthority) }), 10000) })Related definitions:
changed#
changed = check.object({ accepted: check.boolean, agents: check.list(check.identifier, 100) })Related definitions: