@agentshouse/mdruntime-adapter 0.1.0-c82b9ec2b727a → 0.1.0-c83554fdd7451

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,34 +1,111 @@
1
- export const HOUSE_MODEL_TYPES = `house-account:
2
- description: "The User's own identifier as \`user\`, their registration, email verification and chosen language, every notification group with the channels it now reaches as \`notifications\`, \`telegram: available\` while the Building runs a Telegram bot and no Telegram account is linked to it, \`linked\` while one is, \`meta\`, the Building's Meta app id and signup configuration id, and \`business_app\` after them where its signup offers to keep the WhatsApp Business app on the number's phone, while it offers Connect Meta, \`tiktok: available\` while it offers Connect TikTok, and \`building: administrator\` while the User is one of the Building's administrators."
1
+ export const HOUSE_MODEL_TYPES = `$defs:
2
+ room:
3
+ description: A Room, by its Room reference, under the key \`room\`.
4
+ type: string
5
+ pattern: '^r_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$'
6
+ app:
7
+ description: An App, by its App reference, under the key \`app\`.
8
+ type: string
9
+ pattern: '^a_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$'
10
+ document:
11
+ description: A document of a Room, by its file reference, under the key \`document\`.
12
+ type: string
13
+ pattern: '^af_([123456789abcdefghjkmnpqrstvwxyz][0123456789abcdefghjkmnpqrstvwxyz]*)\\.([0123456789abcdefghjkmnpqrstvwxyz])$'
14
+ id:
15
+ description: Any other entity, by its identifier, under the key of its kind. An entity a type says more about is an object holding it under that key beside its facts.
16
+ type: string
17
+ format: uuid
18
+ namespace:
19
+ description: The Namespace a grant entry covers, an App or a Room by its reference with the area of it.
20
+ type: string
21
+ maxLength: 512
22
+ pattern: '^(?:a_[A-Za-z0-9._-]+(?:\\/source)?|r_[A-Za-z0-9._-]+(?:\\/(?:settings|settings\\/schema|settings\\/model|settings\\/indexing|content))?)$'
23
+ request:
24
+ description: One Routine Request of a Room.
25
+ type: object
26
+ additionalProperties: false
27
+ properties:
28
+ routine_request: { $ref: '#/$defs/id' }
29
+ conversation: { $ref: '#/$defs/id' }
30
+ origin: { enum: [ user, trigger ] }
31
+ state: { enum: [ awaiting_approval, started, finished, not_started, withdrawn_by_author, withdrawn_admission, declined ] }
32
+ target: { type: object, additionalProperties: false, properties: { user: { $ref: '#/$defs/id' } }, required: [ user ] }
33
+ record: { $ref: '#/$defs/id' }
34
+ routine_access: { $ref: '#/$defs/id' }
35
+ agent: { $ref: '#/$defs/id' }
36
+ routine: { type: object, additionalProperties: false, properties: { name: { type: string }, version: { type: integer, exclusiveMinimum: 0 } }, minProperties: 1 }
37
+ approved: { type: string, format: date-time }
38
+ approved_by: { type: object, additionalProperties: false, properties: { user: { $ref: '#/$defs/id' } }, required: [ user ] }
39
+ settled_by: { type: object, additionalProperties: false, properties: { user: { $ref: '#/$defs/id' } }, required: [ user ] }
40
+ failure_category: { enum: [ routine_access_not_found, routine_retired, target_agent_unavailable, agent_unavailable, admission_lapsed ] }
41
+ created: { type: string, format: date-time }
42
+ activated: { type: string, format: date-time }
43
+ settled: { type: string, format: date-time }
44
+ environment_starting: { const: true }
45
+ undelivered: { const: true }
46
+ result: { type: string }
47
+ url: { type: string, format: uri }
48
+ required: [ routine_request, origin, state, target, created ]
49
+ caller:
50
+ description: One caller of a Routine Access, a User under \`user\` with their account \`email\` and display \`name\`, or under \`user\` alone once they left the Room, or the Access's \`room\`, whose Triggers then call.
51
+ type: object
52
+ additionalProperties: false
53
+ properties:
54
+ user: { $ref: '#/$defs/id' }
55
+ email: { type: string }
56
+ name: { type: string }
57
+ room: { $ref: '#/$defs/room' }
58
+ minProperties: 1
59
+ trigger_test:
60
+ description: One test of a Trigger condition as the Trigger reference page writes one, a value compared at a \`path\` or \`all\`, \`any\` or \`not\` of tests.
61
+ type: object
62
+ additionalProperties: true
63
+ trigger_values:
64
+ type: array
65
+ items: { anyOf: [ { type: string }, { type: number }, { type: boolean } ] }
66
+ trigger_scope:
67
+ description: The documents a Trigger condition watches, by \`type\`, by \`folder\` or one document at its \`path\`, which \`create_trigger\` takes as \`document\`.
68
+ type: object
69
+ additionalProperties: false
70
+ properties:
71
+ type: { type: string }
72
+ folder: { type: string }
73
+ path: { type: string }
74
+ minProperties: 1
75
+ maxProperties: 1
76
+ house-account:
77
+ description: "The User's own identifier as \`user\`, their registration as \`created\`, their email verification and chosen language, every notification group with the channels it now reaches as \`notifications\`, \`telegram: available\` while the Building runs its Telegram bots and no Telegram account is linked to it, \`linked\` while one is, \`started\` once that account has also pressed Start in the Inbox bot, \`meta\`, the Building's Meta app as \`application\` and its signup configuration as \`configuration\`, with \`business_app\` where its signup offers to keep the WhatsApp Business app on the number's phone, while it offers Connect Meta, \`tiktok: available\` while it offers Connect TikTok, \`building: administrator\` while the User is one of the Building's administrators, \`full_house: true\` while the User holds Full House, and the Building's caps of an App function's run as \`function_limits\`, its time in milliseconds as \`time_ms\`, its memory in bytes as \`memory_bytes\` and its external calls as \`external_calls\`."
3
78
  properties:
4
79
  reflected: { type: string, format: date-time }
5
- user: { type: string, format: uuid }
80
+ user: { $ref: '#/$defs/id' }
6
81
  email_verified: { type: string, format: date-time }
7
82
  language: { enum: [ en ] }
8
- notifications: { type: string, contentMediaType: application/json, contentSchema: { type: array, items: { type: object, properties: { group: { type: string }, channels: { type: array, items: { type: string } } }, required: [ group, channels ], additionalProperties: false } } }
83
+ notifications: { type: array, items: { type: object, additionalProperties: false, properties: { group: { type: string }, channels: { type: array, items: { type: string } } }, required: [ group, channels ] } }
9
84
  created: { type: string, format: date-time }
10
- telegram: { enum: [ available, linked ] }
11
- meta: { type: string, pattern: '^(?<app>\\d{1,32})\\t(?<signup>\\d{1,32})(?:\\tbusiness_app)?$' }
85
+ telegram: { enum: [ available, linked, started ] }
86
+ meta: { type: object, additionalProperties: false, properties: { application: { type: string, pattern: '^\\d{1,32}$' }, configuration: { type: string, pattern: '^\\d{1,32}$' }, business_app: { const: true } }, required: [ application, configuration ] }
12
87
  tiktok: { enum: [ available ] }
13
88
  building: { enum: [ administrator ] }
14
- required: [ reflected, user, email_verified, notifications, created ]
89
+ full_house: { const: true }
90
+ function_limits: { type: object, additionalProperties: false, properties: { time_ms: { type: integer, exclusiveMinimum: 0 }, memory_bytes: { type: integer, exclusiveMinimum: 0 }, external_calls: { type: integer, exclusiveMinimum: 0 } }, required: [ time_ms, memory_bytes, external_calls ] }
91
+ required: [ reflected, user, email_verified, notifications, created, function_limits ]
15
92
  house-agent:
16
- description: One registered Agent this User owns.
93
+ description: One registered Agent this User owns, with the \`profile\` and \`environment\` it binds, when it was \`created\` and, once it is, \`retired\`.
17
94
  properties:
18
95
  reflected: { type: string, format: date-time }
19
- agent: { type: string, format: uuid }
96
+ agent: { $ref: '#/$defs/id' }
20
97
  name: { type: string }
21
- profile: { type: string, format: uuid }
22
- environment: { type: string, format: uuid }
98
+ profile: { $ref: '#/$defs/id' }
99
+ environment: { $ref: '#/$defs/id' }
23
100
  launch_directory: { type: string }
24
- declared: { type: string, format: date-time }
101
+ created: { type: string, format: date-time }
25
102
  retired: { type: string, format: date-time }
26
- required: [ reflected, agent, name, profile, environment, launch_directory, declared ]
103
+ required: [ reflected, agent, name, profile, environment, launch_directory, created ]
27
104
  house-agent-profile:
28
105
  description: One reusable Agent Profile this User owns, with the execution route it binds and the \`arguments\` that route passes its CLI. Its body is its instructions, whole, in Markdown.
29
106
  properties:
30
107
  reflected: { type: string, format: date-time }
31
- profile: { type: string, format: uuid }
108
+ profile: { $ref: '#/$defs/id' }
32
109
  name: { type: string }
33
110
  revision: { type: integer, minimum: 0 }
34
111
  adapter_kind: { type: string }
@@ -38,207 +115,172 @@ house-agent-profile:
38
115
  arguments: { type: array, items: { type: string } }
39
116
  required: [ reflected, profile, name, revision ]
40
117
  house-app:
41
- description: One App this User owns, holds or installed, \`ownership\` naming whether it is its own or one it holds, with the path of its window on the control origin as \`address\`, its tab icon for a light and for a dark appearance as image data addresses with, while the icon is generated, its one to four colours, blend and angle, its running release with the external origins it declares as \`external_origins\`, whether its code reaches this User's conversations as \`conversations\` and the Room slots it declares in order as \`room_slots\`, each installation this User holds, and every User who holds the App as \`holders\`, this User and its owner included, by name. Each installation entry names the installation, the App's running release and when it was installed. Each features entry names a browser feature of an App this User does not own and whether this User allowed or denied it the first time the App asked; a feature never asked is absent. \`features_version\` is the version of this User's latest consent change for the App, which apps/features/set answers as \`features_version\`.
118
+ description: "One App this User owns, holds or installed, \`ownership\` naming whether it is its own or one it holds, its \`owner\` by \`name\` when another User owns it, and \`my_app\` \`true\` on this User's My App alone, with the path of its window on the control origin as \`address\`, its tab icon for a light and for a dark appearance as image data addresses with, while the icon is generated, its one to four colours, blend and angle, its running release as \`latest_release\` by \`release\` and \`sequence\`, with the external origins it declares as \`external_origins\`, whether its code reaches this User's conversations as \`conversations\`, the Room slots it declares in order as \`room_slots\`, each \`slot\` with its \`access\` and \`types\`, and the names of the App functions it declares in order as \`functions\`, each installation this User holds, and every User who holds the App as \`holders\`, this User and its owner included, by \`user\`, \`name\` and \`email\`. Each installation entry names the \`installation\`, the App's running \`release\` and when it was installed as \`created\`. Each features entry names, for an App this User does not own, a \`feature\`, a browser feature, a House model type or a House act its release declares, and its \`consent\`, \`allowed\` or \`denied\` the first time the App asked; a feature never asked is absent. \`features_version\` is the version of this User's latest consent change for the App, which apps/features/set answers as \`features_version\`."
42
119
  properties:
43
120
  reflected: { type: string, format: date-time }
44
- app: { type: string, format: uuid }
45
- app_ref: { type: string, pattern: '^a_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$' }
121
+ app: { $ref: '#/$defs/app' }
46
122
  address: { type: string, pattern: '^\\/app\\/a_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$' }
47
- display_name: { type: string }
123
+ name: { type: string }
48
124
  ownership: { enum: [ own, held ] }
49
- owner_name: { type: string }
125
+ owner: { type: object, additionalProperties: false, properties: { name: { type: string } }, required: [ name ] }
126
+ my_app: { const: true }
50
127
  created: { type: string, format: date-time }
51
- forked_from: { type: string, format: uuid }
52
128
  tab_icon_light: { type: string, pattern: ^data:image\\/ }
53
129
  tab_icon_dark: { type: string, pattern: ^data:image\\/ }
54
130
  tab_icon_colours: { type: array, items: { type: string, pattern: '^#[0-9a-f]{6}$' } }
55
131
  tab_icon_blend: { enum: [ linear, radial ] }
56
132
  tab_icon_angle: { type: integer, minimum: 0, maximum: 359 }
57
- latest_release: { type: string, pattern: '^(?<release>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})\\t(?<sequence>\\d+)$' }
133
+ latest_release: { type: object, additionalProperties: false, properties: { release: { $ref: '#/$defs/id' }, sequence: { type: integer, exclusiveMinimum: 0 } }, required: [ release, sequence ] }
58
134
  external_origins: { type: array, items: { type: string, format: uri } }
59
135
  conversations: { enum: [ yes, no ] }
60
- room_slots: { type: string, contentMediaType: application/json, contentSchema: { type: array, items: { type: object, properties: { slot: { type: string }, access: { type: string, enum: [ read, write ] }, types: { type: array, items: { type: string } } }, required: [ slot, access, types ], additionalProperties: false } } }
61
- installations: { type: array, items: { type: string, pattern: '^(?<installation>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})\\t(?<release>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})\\t(?<installed>\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z)$' } }
62
- holders: { type: string, contentMediaType: application/json, contentSchema: { type: array, items: { type: object, properties: { user: { type: string, format: uuid }, name: { type: string }, email: { type: string } }, required: [ user, name, email ], additionalProperties: false } } }
63
- features: { type: array, items: { type: string, pattern: ^(?<feature>microphone|camera|geolocation|clipboard-read|notifications)\\t(?<consent>allowed|denied)$ } }
136
+ room_slots: { type: array, items: { type: object, additionalProperties: false, properties: { slot: { type: string }, access: { enum: [ read, write ] }, types: { type: array, items: { type: string } } }, required: [ slot, access, types ] } }
137
+ functions: { type: array, items: { type: string } }
138
+ installations: { type: array, items: { type: object, additionalProperties: false, properties: { installation: { $ref: '#/$defs/id' }, release: { $ref: '#/$defs/id' }, created: { type: string, format: date-time } }, required: [ installation, release, created ] } }
139
+ holders: { type: array, items: { type: object, additionalProperties: false, properties: { user: { $ref: '#/$defs/id' }, name: { type: string }, email: { type: string } }, required: [ user, name, email ] } }
140
+ features: { type: array, items: { type: object, additionalProperties: false, properties: { feature: { type: string }, consent: { enum: [ allowed, denied ] } }, required: [ feature, consent ] } }
64
141
  features_version: { type: integer, exclusiveMinimum: 0 }
65
- required: [ reflected, app, app_ref, address, display_name, ownership, created ]
142
+ required: [ reflected, app, address, name, ownership, created ]
66
143
  house-app-preferences:
67
144
  description: An App's preferences. Its own vocabulary is in the body.
68
145
  properties:
69
- app: { type: string, pattern: '^a_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$' }
146
+ app: { $ref: '#/$defs/app' }
70
147
  required: [ app ]
71
148
  house-app-room-binding:
72
- description: "One durable App-Room binding this User holds: an ordered Room list, one Shared schema, or \`rooms\`, \`all\` for every Room this User has or \`all_but_private\` for every one but their Private Room, for a named Room slot of one App, shared by every device and browser installation they sign in from. Only this User's own bindings appear here. A Shared-schema binding names the Shared schema, its own structural compatibility and findings, the Rooms that currently use it and this User reads, and how many Rooms the instance bound leaves out. A \`rooms\` binding holds this User's Rooms that fit the slot, and \`left_out\` counts the others and those past the instance bound. Each entry names a Room and the last structural comparison of the slot with its selected model, \`unchecked\`, \`compatible\` or \`incompatible\`. An explicit entry whose Room this User cannot read is absent until access returns; an empty explicit list has no document. An incompatible entry or Shared schema blocks nothing: the App still opens and the model still changes."
149
+ description: "One durable App-Room binding this User holds: an ordered Room list, one Shared schema, or \`rooms\`, \`all\` for every Room this User has or \`all_but_private\` for every one but their Private Room, for a named Room slot of one \`app\`, shared by every device and browser installation they sign in from. Only this User's own bindings appear here. A Shared-schema binding names the \`shared_schema\` with its own structural \`compatibility\` and \`findings\`, the Rooms that currently use it and this User reads, and how many Rooms the instance bound leaves out. A \`rooms\` binding holds this User's Rooms that fit the slot, and \`left_out\` counts the others and those past the instance bound. Each entry names a \`room\` and the last structural comparison of the slot with its selected model as \`compatibility\`, \`unchecked\`, \`compatible\` or \`incompatible\`, and each finding a \`room\` and one exact structural \`finding\` of it against the slot. An explicit entry whose Room this User cannot read is absent until access returns; an empty explicit list has no document. An incompatible entry or Shared schema blocks nothing: the App still opens and the model still changes."
73
150
  properties:
74
151
  reflected: { type: string, format: date-time }
75
- app: { type: string, format: uuid }
76
- app_ref: { type: string, pattern: '^a_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$' }
152
+ app: { $ref: '#/$defs/app' }
77
153
  slot: { type: string, pattern: '^[a-z0-9]([a-z0-9-]*[a-z0-9])?$' }
78
154
  types: { type: array, items: { type: string } }
79
155
  slot_access: { enum: [ read, write ] }
80
- shared_schema: { type: string, format: uuid }
81
- shared_schema_compatibility: { enum: [ unchecked, compatible, incompatible ] }
82
- shared_schema_findings: { type: array, items: { type: string } }
156
+ shared_schema: { type: object, additionalProperties: false, properties: { shared_schema: { $ref: '#/$defs/id' }, compatibility: { enum: [ unchecked, compatible, incompatible ] }, findings: { type: array, items: { type: string } } }, required: [ shared_schema, compatibility, findings ] }
83
157
  rooms: { enum: [ all, all_but_private ] }
84
158
  left_out: { type: integer, minimum: 0 }
85
- entries: { type: array, items: { type: string, pattern: '^(?<room>r_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz]))\\t(?<compatibility>unchecked|compatible|incompatible)$' } }
86
- findings: { type: array, items: { type: string, pattern: '^(?<room>r_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz]))\\t(?<finding>[\\s\\S]+)$' } }
87
- required: [ reflected, app, app_ref, slot ]
159
+ entries: { type: array, items: { type: object, additionalProperties: false, properties: { room: { $ref: '#/$defs/room' }, compatibility: { enum: [ unchecked, compatible, incompatible ] } }, required: [ room, compatibility ] } }
160
+ findings: { type: array, items: { type: object, additionalProperties: false, properties: { room: { $ref: '#/$defs/room' }, finding: { type: string } }, required: [ room, finding ] } }
161
+ required: [ reflected, app, slot ]
88
162
  house-client:
89
163
  description: One MCP client this User authorized, named as it was created. Its last use and whether its credentials expired are read on request.
90
164
  properties:
91
165
  reflected: { type: string, format: date-time }
92
- client: { type: string, format: uuid }
166
+ client: { $ref: '#/$defs/id' }
93
167
  name: { type: string }
94
168
  kind: { enum: [ browser, headless ] }
95
- connected: { type: string, format: date-time }
169
+ created: { type: string, format: date-time }
96
170
  ended: { type: string, format: date-time }
97
171
  end: { enum: [ revoked ] }
98
- required: [ reflected, client, name, kind, connected ]
172
+ required: [ reflected, client, name, kind, created ]
99
173
  house-environment:
100
- description: "One Environment this User holds, with its configuration, its \`label\`, the name its User entered, the Rooms it reaches, \`all\`, \`all_but_private\` or the \`selected\` ones \`rooms\` names by reference, \`login_code\`, \`yes\` while it holds a reusable login code, the agent CLI kinds House admits in \`offered\`, the kinds House last set in \`wanted\`, and the latest readiness its Kit reported in \`agents\`. \`hosting\` is the kind of Environment House runs, \`sandbox\`, a small Environment with limited capacity, especially disk, or \`vps\`, an always-on Environment with better specs, or \`own\` for its owner's own computer. \`lifecycle\` is the state of that Sandbox or VPS: \`provisioning\` while House creates it, \`starting\` while it starts or House wakes it, \`available\` once its Kit connected, \`stopped\` or \`failed\`. For a Sandbox, \`budget\` is its runtime budget in hours a month and \`budget_spent\` is \`yes\` once its runtime this UTC month reached it. Each offered entry names one adapter kind the owner may select for this Environment. Each wanted entry names one adapter kind the Kit should hold. Each agent entry is JSON naming the adapter kind, its installed \`release\` or null when the Kit could not install it, for a CLI below its adapter's minimum that \`minimum\`, \`failure\`, that install's cause, \`installing\`, true only while the Kit installs it, whether the CLI is \`signed_in\`, its \`models\`, each \`model\` with its \`efforts\` as the CLI's session options name them, its \`modes\`, each \`mode\` with the \`name\` the CLI gives it, and \`full_access\`, the mode that bypasses every permission, or null for a CLI that offers no mode and always runs so. A wanted kind no entry names is not yet reported. \`transcribe\` is whether the Kit transcribes a message's audio files, as House last set it, and \`transcription\` is JSON naming whether the Kit has the engine \`installed\` and the \`failure\` of its last download or null, as the Kit last reported it. \`os\` is the operating system and version of the Environment, \`kit_release\` the installed Kit release, \`kit_wire\` the number of the Kit wire it speaks, and \`form\` the computer's form, \`laptop\`, \`desktop\` or \`server\`, as the Kit last reported them; \`house_wire\` is the number of the Kit wire House speaks now. Placement failure is projected on its transitions; \`failed\` names the failure's category and never its cause. For a VPS, \`ssh\` is its owner's root login on port 22 and \`ssh_host_key\` the SSH host-key fingerprint its Kit reported."
174
+ description: "One Environment this User holds, with its configuration, its \`name\`, the one its User entered, when it was \`created\`, the Rooms it reaches, \`all\`, \`all_but_private\` or the \`selected\` ones \`rooms\` names, each by its \`room\`, \`login_code\`, \`yes\` while it holds a reusable login code, the agent CLI kinds House admits in \`offered\`, the kinds House last set in \`wanted\`, and the latest readiness its Kit reported in \`agents\`. \`kind\` is the kind of Environment, \`sandbox\`, a small Environment House runs with limited capacity, especially disk, \`vps\`, an always-on Environment House runs with better specs, or \`own\` for its owner's own computer. \`lifecycle\` is the state of that Sandbox or VPS: \`provisioning\` while House creates it, \`starting\` while it starts or House wakes it, \`available\` once its Kit connected, \`stopped\` or \`failed\`. For a Sandbox, \`budget\` is its runtime budget in hours a month and \`budget_spent\` is \`yes\` once its runtime this UTC month reached it. Each offered entry names one adapter kind the owner may select for this Environment. Each wanted entry names one adapter kind the Kit should hold. Each agent entry names the adapter \`kind\`, its installed \`version\` or null when the Kit could not install it, for a CLI below its adapter's minimum that \`minimum\`, \`failure\`, that install's cause, \`installing\`, true only while the Kit installs it, whether the CLI is \`signed_in\`, its \`models\`, each \`model\` with its \`efforts\` as the CLI's session options name them, its \`modes\`, each \`mode\` with the \`name\` the CLI gives it, and \`full_access\`, the mode that bypasses every permission, or null for a CLI that offers no mode and always runs so. A wanted kind no entry names is not yet reported. \`transcribe\` is whether the Kit transcribes a message's audio files, as House last set it, and \`transcription\` names whether the Kit has the engine \`installed\` and the \`failure\` of its last download or null, as the Kit last reported it. \`os\` is the operating system and version of the Environment, \`kit_release\` the installed Kit release and \`form\` the computer's form, \`laptop\`, \`desktop\` or \`server\`, as the Kit last reported them. Placement failure is projected on its transitions; \`failed\` names the failure's category and never its cause. For a VPS, \`ssh\` is its owner's root login on port 22."
101
175
  properties:
102
176
  reflected: { type: string, format: date-time }
103
- environment: { type: string, format: uuid }
104
- label: { type: string }
105
- issued: { type: string, format: date-time }
177
+ environment: { $ref: '#/$defs/id' }
178
+ name: { type: string }
179
+ created: { type: string, format: date-time }
106
180
  revoked: { type: string, format: date-time }
107
181
  reach: { enum: [ all, all_but_private, selected ] }
108
- rooms: { type: array, items: { type: string, pattern: ^(?<room>\\S+)$ } }
182
+ rooms: { type: array, items: { type: object, additionalProperties: false, properties: { room: { $ref: '#/$defs/room' } }, required: [ room ] } }
109
183
  login_code: { enum: [ yes, no ] }
110
- hosting: { enum: [ sandbox, vps, own ] }
184
+ kind: { enum: [ sandbox, vps, own ] }
111
185
  lifecycle: { enum: [ provisioning, starting, available, stopped, failed ] }
112
- offered: { type: array, items: { type: string, pattern: ^(?<kind>\\S+)$ } }
113
- wanted: { type: array, items: { type: string, pattern: ^(?<kind>\\S+)$ } }
114
- agents: { type: array, items: { type: string, contentMediaType: application/json, contentSchema: { type: object, properties: { kind: { type: string, minLength: 1, maxLength: 64 }, release: { anyOf: [ { type: string, minLength: 1, maxLength: 64 }, { type: 'null' } ] }, minimum: { description: "Present only for a CLI below its adapter's minimum release: that minimum.", type: string, minLength: 1, maxLength: 64 }, failure: { anyOf: [ { type: string, minLength: 1, maxLength: 4096 }, { type: 'null' } ] }, installing: { description: 'Present only while the Kit installs the CLI, whose release and failure are then null.', type: boolean, const: true }, signed_in: { type: boolean }, models: { maxItems: 256, type: array, items: { type: object, properties: { model: { type: string, minLength: 1 }, efforts: { maxItems: 32, type: array, items: { type: string, minLength: 1 } } }, required: [ model, efforts ], additionalProperties: false } }, modes: { maxItems: 32, type: array, items: { type: object, properties: { mode: { type: string, minLength: 1 }, name: { type: string, minLength: 1, maxLength: 128 } }, required: [ mode, name ], additionalProperties: false } }, full_access: { anyOf: [ { type: string, minLength: 1 }, { type: 'null' } ] } }, required: [ kind, release, failure, signed_in, models, modes, full_access ], additionalProperties: false } } }
186
+ offered: { type: array, items: { type: string } }
187
+ wanted: { type: array, items: { type: string } }
188
+ agents: { type: array, items: { type: object, additionalProperties: false, properties: { kind: { type: string, minLength: 1, maxLength: 64 }, version: { anyOf: [ { type: string, minLength: 1, maxLength: 64 }, { type: 'null' } ] }, minimum: { description: "Present only for a CLI below its adapter's minimum version: that minimum.", type: string, minLength: 1, maxLength: 64 }, failure: { anyOf: [ { type: string, minLength: 1, maxLength: 4096 }, { type: 'null' } ] }, installing: { description: 'Present only while the Kit installs the CLI, whose version and failure are then null.', type: boolean, const: true }, signed_in: { type: boolean }, models: { maxItems: 256, type: array, items: { type: object, additionalProperties: false, properties: { model: { type: string, minLength: 1 }, efforts: { maxItems: 32, type: array, items: { type: string, minLength: 1 } } }, required: [ model, efforts ] } }, modes: { maxItems: 32, type: array, items: { type: object, additionalProperties: false, properties: { mode: { type: string, minLength: 1 }, name: { type: string, minLength: 1, maxLength: 128 } }, required: [ mode, name ] } }, full_access: { anyOf: [ { type: string, minLength: 1 }, { type: 'null' } ] } }, required: [ kind, version, failure, signed_in, models, modes, full_access ] } }
115
189
  transcribe: { enum: [ on, off ] }
116
- transcription: { type: string, contentMediaType: application/json, contentSchema: { type: object, properties: { installed: { type: boolean }, failure: { anyOf: [ { type: string, minLength: 1, maxLength: 4096 }, { type: 'null' } ] } }, required: [ installed, failure ], additionalProperties: false } }
190
+ transcription: { type: object, additionalProperties: false, properties: { installed: { type: boolean }, failure: { anyOf: [ { type: string, minLength: 1, maxLength: 4096 }, { type: 'null' } ] } }, required: [ installed, failure ] }
117
191
  os: { type: string }
118
192
  kit_release: { type: string }
119
- kit_wire: { type: integer, exclusiveMinimum: 0 }
120
- house_wire: { type: integer, exclusiveMinimum: 0 }
121
193
  form: { enum: [ laptop, desktop, server ] }
122
194
  failed: { enum: [ provisioning_failed, bootstrap_timeout, provider_capacity, provider_unavailable, provider_removed, placement_conflict, placement_intervention, environment_authority_unavailable ] }
123
- budget: { type: string, pattern: ^(?<budget>\\d+(?:\\.\\d+)?)$ }
195
+ budget: { type: string, pattern: ^\\d+(?:\\.\\d+)?$ }
124
196
  budget_spent: { enum: [ yes, no ] }
125
- ssh: { type: string, pattern: ^root@(?<address>\\S+)$ }
126
- ssh_host_key: { type: string }
127
- required: [ reflected, environment, label, issued, reach, hosting, offered, transcribe ]
197
+ ssh: { type: string, pattern: ^root@\\S+$ }
198
+ required: [ reflected, environment, name, created, reach, kind, offered, transcribe ]
128
199
  house-exports:
129
- description: This User's Exports; a ready one names its download page as \`page\`.
200
+ description: This User's Exports, each with its \`status\`, when it was \`created\` and, once it has one, when it \`expires\`; a ready one names its download page as \`page\`.
130
201
  properties:
131
202
  reflected: { type: string, format: date-time }
132
- exports: { type: array, items: { type: string, pattern: '^(?<export>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})\\t(?<status>queued|running|ready|failed)\\t(?<created>\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z)(?:\\texpires=(?<expires>\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z))?(?:\\tpage=(?<page>\\/exports\\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}))?$' } }
203
+ exports: { type: array, items: { type: object, additionalProperties: false, properties: { export: { $ref: '#/$defs/id' }, status: { enum: [ queued, running, ready, failed ] }, created: { type: string, format: date-time }, expires: { type: string, format: date-time }, page: { type: string, pattern: '^\\/exports\\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$' } }, required: [ export, status, created ] } }
133
204
  required: [ reflected ]
134
- house-external-account:
135
- description: "One outside account this User owns, or may use through a Room it is added to, \`ownership\` naming which, never its key: the origin it is sent to, the \`form\` it is sent in, with the header or query parameter name as \`form_name\` or the path prefix as \`form_prefix\`, the address of its origin's icon once House kept one, and as \`connections\` each App slot connected to it in a Room this User belongs to, with that Room. To its owner, \`rooms\` is JSON naming each Room the account is added to, the Schema Roles that may use it there and whether its use there is \`suspended\` until its owner adds it again."
136
- properties:
137
- reflected: { type: string, format: date-time }
138
- account: { type: string, format: uuid }
139
- name: { type: string }
140
- origin: { type: string, format: uri }
141
- form: { enum: [ bearer, header, query, basic, path ] }
142
- form_name: { type: string }
143
- form_prefix: { type: string }
144
- ownership: { enum: [ own, used ] }
145
- icon: { type: string, pattern: '^\\/external-accounts\\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\\/icon$' }
146
- rooms: { type: string, contentMediaType: application/json, contentSchema: { type: array, items: { type: object, properties: { room: { type: string, pattern: '^r_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$' }, schema_roles: { type: array, items: { type: string } }, suspended: { type: boolean } }, required: [ room, schema_roles, suspended ], additionalProperties: false } } }
147
- connections: { type: array, items: { type: string, pattern: '^(?<app>a_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz]))\\t(?<slot>[a-z0-9]([a-z0-9-]*[a-z0-9])?)\\t(?<room>r_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz]))$' } }
148
- required: [ reflected, account, name, origin, form, ownership ]
149
205
  house-member:
150
206
  description: One User who shares a Room with this User, with their current display name and accepted about-me Markdown. Their email, the Rooms they share and each one's access are in the \`roster\` of each \`house-room\` document.
151
207
  properties:
152
208
  reflected: { type: string, format: date-time }
153
- user: { type: string, format: uuid }
209
+ user: { $ref: '#/$defs/id' }
154
210
  name: { type: string }
155
211
  about_me: { type: string }
156
212
  required: [ reflected, user, name ]
157
213
  house-notification:
158
- description: "One kept Human Notification for this User: its kind, when it was sent, its way in, its email's subject and each field of its value that is not sealed, named in snake_case, where a field or list entry holding an object is JSON with snake_case keys and a field holding null is absent. Its body is its email's words in Markdown. Both were worded once, in the User's language when it was delivered; an App may show them or word it itself from its kind and value. Read state belongs to each browser."
214
+ description: "One kept Human Notification for this User: its kind, when it was sent as \`created\`, its way in, its email's subject and each fact of its value that is not sealed, named in snake_case. An entity a fact names is an object holding its identifier under the key of its kind, when the notification carries it, and its \`name\`, \`email\` and other facts beside it; a fact holding null is absent. \`way_in\` is either the House \`path\` it opens or the entity it is about, by its identifier under the key of its kind, a Trigger with its \`room\`. Its body is its email's words in Markdown. Both were worded once, in the User's language when it was delivered; an App may show them or word it itself from its kind and value. Read state belongs to each browser."
159
215
  properties:
160
- notification: { type: string, format: uuid }
161
- kind: { type: string, enum: [ share-offer, join-request, join-request-approved, app-room-binding-incompatible, app-deleted, app-call, room-ownership-offer, managed-environment-retention-opened, managed-environment-placement-intervention, storage-full, sandbox-budget-spent, break-glass-owner-disclosure, routine-start-approval-request, routine-request-declined, routine-request-started, routine-request-finished, routine-request-not-started, export-ready, export-failed, site-disabled, site-binding-incompatible, site-room-left, site-images-full, custom, trigger-did-nothing ] }
162
- sent: { type: string, format: date-time }
163
- way_in: { type: string, pattern: ^(?:(?<path>\\/.*)|(?<subject>room|agent|environment|app|request|routine|trigger|site):(?<reference>.+))$ }
216
+ notification: { $ref: '#/$defs/id' }
217
+ kind: { type: string, enum: [ share-offer, join-request, join-request-approved, app-room-binding-incompatible, app-deleted, app-call, room-ownership-offer, managed-environment-retention-opened, managed-environment-placement-intervention, storage-full, sandbox-budget-spent, break-glass-owner-disclosure, routine-start-approval-request, routine-request-declined, routine-request-started, routine-request-finished, routine-request-not-started, export-ready, export-failed, site-disabled, site-binding-incompatible, site-room-left, site-images-full, custom, trigger-did-nothing, function-failed ] }
218
+ created: { type: string, format: date-time }
219
+ way_in: { type: object, additionalProperties: false, properties: { path: { type: string, pattern: ^\\/ }, room: { $ref: '#/$defs/room' }, app: { $ref: '#/$defs/app' }, agent: { $ref: '#/$defs/id' }, environment: { $ref: '#/$defs/id' }, routine: { $ref: '#/$defs/id' }, routine_request: { $ref: '#/$defs/id' }, trigger: { $ref: '#/$defs/id' }, site: { $ref: '#/$defs/id' } }, minProperties: 1 }
164
220
  subject: { type: string }
165
- share_id: { type: string, format: uuid }
166
- issuer: { type: string }
167
- issuer_email: { type: string, format: email }
168
- rooms: { type: array, items: { type: string } }
169
- apps: { maxItems: 20, type: array, items: { type: string, contentMediaType: application/json, contentSchema: { type: object, properties: { name: { type: string, minLength: 1, maxLength: 200 }, reaches: { type: array, items: { type: string, minLength: 1, maxLength: 512 } } }, required: [ name, reaches ], additionalProperties: false } } }
221
+ share: { $ref: '#/$defs/id' }
222
+ issuer: { type: object, additionalProperties: false, properties: { name: { type: string }, email: { type: string, format: email } }, required: [ name, email ] }
223
+ rooms: { type: array, items: { type: object, additionalProperties: false, properties: { name: { type: string } }, required: [ name ] } }
224
+ apps: { maxItems: 20, type: array, items: { type: object, additionalProperties: false, properties: { name: { type: string, minLength: 1, maxLength: 200 }, reaches: { type: array, items: { type: string, minLength: 1, maxLength: 512 } } }, required: [ name, reaches ] } }
170
225
  expires_at: { type: string, format: date-time }
171
- join_request_id: { type: string, format: uuid }
172
- user: { type: string }
173
- user_email: { type: string, format: email }
174
- room_ref: { type: string }
175
- app_ref: { type: string }
176
- binding_id: { type: string, format: uuid }
177
- app: { type: string }
226
+ join_request: { $ref: '#/$defs/id' }
227
+ user: { type: object, additionalProperties: false, properties: { name: { type: string }, email: { type: string, format: email } }, required: [ name, email ] }
228
+ room: { type: object, additionalProperties: false, properties: { room: { $ref: '#/$defs/room' }, name: { type: string } }, minProperties: 1 }
229
+ app: { type: object, additionalProperties: false, properties: { app: { $ref: '#/$defs/app' }, name: { type: string } }, minProperties: 1 }
230
+ binding: { $ref: '#/$defs/id' }
178
231
  slot: { type: string }
179
- room: { type: string }
180
232
  findings: { type: array, items: { type: string } }
181
- owner: { type: string }
182
- caller_id: { type: string, format: uuid }
183
- caller: { type: string }
184
- offer_id: { type: string, format: uuid }
185
- offerer: { type: string }
186
- offerer_email: { type: string, format: email }
187
- managed_environment_id: { type: string, format: uuid }
188
- environment_id: { type: string, format: uuid }
189
- environment: { type: string }
190
- environment_kind: { type: string, enum: [ vps, sandbox ] }
233
+ owner: { type: object, additionalProperties: false, properties: { name: { type: string } }, required: [ name ] }
234
+ caller: { type: object, additionalProperties: false, properties: { user: { $ref: '#/$defs/id' }, name: { type: string } }, required: [ user, name ] }
235
+ ownership_offer: { $ref: '#/$defs/id' }
236
+ offerer: { type: object, additionalProperties: false, properties: { name: { type: string }, email: { type: string, format: email } }, required: [ name, email ] }
237
+ environment: { type: object, additionalProperties: false, properties: { environment: { $ref: '#/$defs/id' }, name: { type: string }, kind: { enum: [ vps, sandbox ] } }, required: [ environment, name ] }
191
238
  reason: { type: string }
192
239
  deadline: { type: string, format: date-time }
193
- operation_id: { type: string, format: uuid }
194
240
  operation_kind: { type: string }
195
- free: { type: string, contentMediaType: application/json, contentSchema: { type: object, properties: { held: { type: string, pattern: ^\\d+$ }, limit: { type: string, pattern: '^[1-9]\\d*$' }, measure: { type: string, enum: [ content, retained ] } }, required: [ held, limit, measure ], additionalProperties: false } }
241
+ free: { type: object, additionalProperties: false, properties: { held: { type: string, pattern: ^\\d+$ }, limit: { type: string, pattern: '^[1-9]\\d*$' }, measure: { type: string, enum: [ content, retained ] } }, required: [ held, limit, measure ] }
196
242
  budget: { type: string, pattern: ^\\d+(?:\\.\\d+)?$ }
197
243
  resets_at: { type: string, format: date-time }
198
- grant_id: { type: string, format: uuid }
244
+ grant: { $ref: '#/$defs/id' }
199
245
  category: { type: string }
200
246
  access_started_at: { type: string, format: date-time }
201
247
  access_ended_at: { type: string, format: date-time }
202
248
  systems: { type: array, items: { type: string } }
203
249
  case_reference: { type: string }
204
- routine_request_id: { type: string, format: uuid }
205
- requester: { type: string }
206
- agent: { type: string }
207
- agent_id: { type: string, format: uuid }
208
- conversation_id: { type: string, format: uuid }
209
- routine: { type: string }
210
- version: { type: integer, minimum: 1 }
211
- routine_id: { type: string, format: uuid }
212
- decliner: { type: string }
250
+ routine_request: { $ref: '#/$defs/id' }
251
+ requester: { type: object, additionalProperties: false, properties: { name: { type: string } }, required: [ name ] }
252
+ agent: { type: object, additionalProperties: false, properties: { agent: { $ref: '#/$defs/id' }, name: { type: string } }, required: [ name ] }
253
+ conversation: { $ref: '#/$defs/id' }
254
+ routine: { type: object, additionalProperties: false, properties: { routine: { $ref: '#/$defs/id' }, name: { type: string }, version: { type: integer, minimum: 1 } }, required: [ name ] }
255
+ decliner: { type: object, additionalProperties: false, properties: { name: { type: string } }, required: [ name ] }
213
256
  input: { type: string }
214
- export_id: { type: string, format: uuid }
257
+ export: { $ref: '#/$defs/id' }
215
258
  size_bytes: { type: integer, minimum: 0 }
216
- site_id: { type: string, format: uuid }
217
- site: { type: string }
259
+ site: { type: object, additionalProperties: false, properties: { site: { $ref: '#/$defs/id' }, name: { type: string } }, required: [ site, name ] }
218
260
  address: { type: string, maxLength: 300, format: uri }
219
- to: { type: string }
261
+ to: { type: object, additionalProperties: false, properties: { name: { type: string } }, required: [ name ] }
220
262
  copies: { type: integer, minimum: 0 }
221
263
  bound: { type: integer, minimum: 0 }
222
264
  title: { type: string }
223
265
  body: { type: string }
224
- authorship: { type: string, contentMediaType: application/json, contentSchema: { type: object, properties: { kind: { type: string, const: trigger-action }, trigger_id: { type: string, format: uuid }, position: { type: integer, minimum: 0 } }, required: [ kind, trigger_id, position ], additionalProperties: false } }
266
+ authorship: { type: object, additionalProperties: false, properties: { kind: { type: string, const: trigger-action }, trigger: { $ref: '#/$defs/id' }, position: { type: integer, minimum: 0 } }, required: [ kind, trigger, position ] }
225
267
  path: { type: string, maxLength: 4096, pattern: ^\\/.* }
226
- trigger_id: { type: string, format: uuid }
227
- trigger: { type: string }
268
+ trigger: { type: object, additionalProperties: false, properties: { trigger: { $ref: '#/$defs/id' }, name: { type: string } }, required: [ trigger, name ] }
228
269
  cause: { type: string }
229
- required: [ notification, kind, sent, way_in, subject ]
270
+ function: { type: string }
271
+ error: { type: string }
272
+ required: [ notification, kind, created, way_in, subject ]
230
273
  house-ownership-offer:
231
- description: One open Room ownership offer addressed to this User. Its names are captured when the offer is made. The page is the House approval path where this User accepts or declines.
274
+ description: One open Room ownership offer addressed to this User. The Room's name and the name of the owner it is \`from\` are captured when the offer is made. The page is the House approval path where this User accepts or declines.
232
275
  properties:
233
276
  reflected: { type: string, format: date-time }
234
- offer: { type: string, format: uuid }
235
- room: { type: string, pattern: '^r_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$' }
236
- room_name: { type: string }
237
- from_name: { type: string }
277
+ ownership_offer: { $ref: '#/$defs/id' }
278
+ room: { type: object, additionalProperties: false, properties: { room: { $ref: '#/$defs/room' }, name: { type: string } }, required: [ room, name ] }
279
+ from: { type: object, additionalProperties: false, properties: { name: { type: string } }, required: [ name ] }
238
280
  page: { type: string, pattern: '^\\/approve\\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$' }
239
281
  created: { type: string, format: date-time }
240
282
  expires: { type: string, format: date-time }
241
- required: [ reflected, offer, room, room_name, from_name, page, created, expires ]
283
+ required: [ reflected, ownership_offer, room, from, page, created, expires ]
242
284
  house-panel-preferences:
243
285
  description: The panel's preferences at /rooms/private/settings/panel.md. Its own vocabulary is in the body.
244
286
  properties: {}
@@ -254,7 +296,7 @@ house-public-room:
254
296
  description: One Public Room this User added and reads without being its member. Its members are read with \`list_members\`, and \`leave_room\` removes it.
255
297
  properties:
256
298
  reflected: { type: string, format: date-time }
257
- room: { type: string, pattern: '^r_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$' }
299
+ room: { $ref: '#/$defs/room' }
258
300
  handle: { type: string, minLength: 6, maxLength: 63, pattern: '^[a-z0-9]+(?:-[a-z0-9]+)*$' }
259
301
  name: { type: string }
260
302
  archived: { type: string, format: date-time }
@@ -263,33 +305,35 @@ house-push-address:
263
305
  description: "One push address this User minted, never its secret: the Room it captures into, the Source it names, and where an outside service's post carries its event's identifier, the header \`event_header\` or the JSON pointer \`event_json\`."
264
306
  properties:
265
307
  reflected: { type: string, format: date-time }
266
- push_address: { type: string, format: uuid }
267
- room: { type: string, pattern: '^r_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$' }
308
+ push_address: { $ref: '#/$defs/id' }
309
+ room: { $ref: '#/$defs/room' }
268
310
  source: { type: string }
269
311
  event_header: { type: string }
270
312
  event_json: { type: string }
271
313
  required: [ reflected, push_address, room, source ]
272
314
  house-requests:
273
- description: 'The Routine Requests of one Room this User reads by Local Read, as \`requests\`: each one waiting or started under \`current\` and the 50 that changed last under \`history\`, as \`list_routine_requests\` answers them. Only the Agent’s owner sees a request’s conversation. A Room with no request has no such document.'
315
+ description: "The Routine Requests of one Room this User holds at the Keep level: each one waiting or started under \`current\` and the 50 that changed last under \`history\`. Each names its \`routine\` by \`name\` and \`version\`, the \`target\` User whose Agent it asks, the \`agent\` that took it, the \`routine_access\` and \`record\` it went through, the Users it was \`approved_by\` and \`settled_by\`, and when it was \`created\`, \`approved\`, \`activated\` and \`settled\`; a started one is \`undelivered\` while its Agent's computer has not taken it, which House hands it once that computer connects; a fact it does not hold is absent. Only the Agent’s owner sees a request’s conversation. A Room with no request has no such document."
274
316
  properties:
275
317
  reflected: { type: string, format: date-time }
276
- room: { type: string, pattern: '^r_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$' }
277
- requests: { type: string, contentMediaType: application/json, contentSchema: { type: object, properties: { current: { type: array, items: { type: object, properties: { name: { type: string, format: uuid }, document: { type: string, contentMediaType: application/yaml, contentSchema: { type: object, properties: { request: { type: string, format: uuid }, conversation: { type: string, format: uuid }, origin: { type: string, enum: [ user, trigger ] }, state: { type: string, enum: [ awaiting_approval, started, finished, not_started, withdrawn_by_author, withdrawn_admission, declined ] }, target: { type: string, format: uuid }, record: { anyOf: [ { type: string, format: uuid }, { type: 'null' } ] }, access: { anyOf: [ { type: string, format: uuid }, { type: 'null' } ] }, worker: { anyOf: [ { type: string, format: uuid }, { type: 'null' } ] }, name: { type: [ string, 'null' ] }, version: { anyOf: [ { type: integer, exclusiveMinimum: 0 }, { type: 'null' } ] }, approved_at: { anyOf: [ { type: string, format: date-time }, { type: 'null' } ] }, approved_by: { anyOf: [ { type: string, format: uuid }, { type: 'null' } ] }, settled_by: { anyOf: [ { type: string, format: uuid }, { type: 'null' } ] }, failure_category: { anyOf: [ { type: string, enum: [ routine_access_not_found, routine_retired, target_agent_unavailable, agent_unavailable, admission_lapsed ] }, { type: 'null' } ] }, created_at: { type: string, format: date-time }, activated_at: { anyOf: [ { type: string, format: date-time }, { type: 'null' } ] }, settled_at: { anyOf: [ { type: string, format: date-time }, { type: 'null' } ] }, environment_starting: { type: boolean, const: true }, result: { type: string }, url: { type: string, format: uri } }, required: [ request, origin, state, target, record, access, worker, name, version, approved_at, approved_by, settled_by, failure_category, created_at, activated_at, settled_at ], additionalProperties: false } } }, required: [ name, document ], additionalProperties: false } }, history: { type: array, items: { type: object, properties: { name: { type: string, format: uuid }, document: { type: string, contentMediaType: application/yaml, contentSchema: { type: object, properties: { request: { type: string, format: uuid }, conversation: { type: string, format: uuid }, origin: { type: string, enum: [ user, trigger ] }, state: { type: string, enum: [ awaiting_approval, started, finished, not_started, withdrawn_by_author, withdrawn_admission, declined ] }, target: { type: string, format: uuid }, record: { anyOf: [ { type: string, format: uuid }, { type: 'null' } ] }, access: { anyOf: [ { type: string, format: uuid }, { type: 'null' } ] }, worker: { anyOf: [ { type: string, format: uuid }, { type: 'null' } ] }, name: { type: [ string, 'null' ] }, version: { anyOf: [ { type: integer, exclusiveMinimum: 0 }, { type: 'null' } ] }, approved_at: { anyOf: [ { type: string, format: date-time }, { type: 'null' } ] }, approved_by: { anyOf: [ { type: string, format: uuid }, { type: 'null' } ] }, settled_by: { anyOf: [ { type: string, format: uuid }, { type: 'null' } ] }, failure_category: { anyOf: [ { type: string, enum: [ routine_access_not_found, routine_retired, target_agent_unavailable, agent_unavailable, admission_lapsed ] }, { type: 'null' } ] }, created_at: { type: string, format: date-time }, activated_at: { anyOf: [ { type: string, format: date-time }, { type: 'null' } ] }, settled_at: { anyOf: [ { type: string, format: date-time }, { type: 'null' } ] }, environment_starting: { type: boolean, const: true }, result: { type: string }, url: { type: string, format: uri } }, required: [ request, origin, state, target, record, access, worker, name, version, approved_at, approved_by, settled_by, failure_category, created_at, activated_at, settled_at ], additionalProperties: false } } }, required: [ name, document ], additionalProperties: false } } }, required: [ current, history ], additionalProperties: false } }
278
- required: [ reflected, room, requests ]
318
+ room: { $ref: '#/$defs/room' }
319
+ current: { type: array, items: { $ref: '#/$defs/request' } }
320
+ history: { type: array, items: { $ref: '#/$defs/request' } }
321
+ required: [ reflected, room, current, history ]
279
322
  house-room:
280
- description: "One Room this User reads, with the processing configuration that indexes it. \`admission\` is \`pending\` while House is still settling this User into the Room, which finishes on its own and needs no act. \`read\` is how this User reads the Room, \`mcp\`, \`online\` or \`local\`, and \`operations\` are their own on its content. \`my_room\` is \`true\` on this User's own My Room alone, whatever its name. \`policy\` is whether House indexes the Room's documents, \`Off\` while it withholds indexing. Each indexing entry names a folder path and the policy set on it. \`shared_schema\` names the Shared schema whose copy is the Room's schema while the Room uses one, and \`shared_schema_name\` its name. The owner alone sees \`ownership_offer\` as three entries prefixed \`user\`, \`name\`, and \`expires\` while an offer is open, and \`public\`, the time they made the Room public, while every House User may read it. \`roster\` lists the Room's members, each with the read level and operations a Room Share could offer them without giving them anything new as \`held\`; it and \`rights\` carry the access this User may see, every member's to one who manages the Room and their own otherwise; \`routines\` lists the Routines this User or the Room's Triggers may call in it, as \`list_invokable_routines\` answers them: \`startsWithoutApproval\` on one this User may call and \`room: true\` on one the Triggers may call."
323
+ description: "One Room this User reads, with the processing configuration that indexes it. \`my_room\` is \`true\` on this User's My Room alone, whatever its name and handle become. \`admission\` is \`pending\` while House is still settling this User into the Room, which finishes on its own and needs no act. \`access\` is this User's access word in the Room, \`owner\`, \`manage\`, \`edit\`, \`keep\`, \`open\` or \`search\`, with \`only_while_online\` on a \`manage\` or \`edit\` held at the Open level; \`level\` is the access level they hold on its content, \`search\`, \`open\` or \`keep\`, and \`operations\` are their own on its content. \`policy\` is whether House indexes the Room's documents, \`Off\` while it withholds indexing. Each indexing entry names a folder \`path\` and the \`policy\` set on it. \`shared_schema\` names the Shared schema whose copy is the Room's schema while the Room uses one, with its \`name\`. The owner alone sees \`ownership_offer\`, the \`nominee\` it is offered to and when it \`expires\`, while an offer is open, and \`public\`, the time they made the Room public, while every House User may read it; a member who does not own it sees its \`owner\` by name. \`roster\` lists the Room's members, each with when they were \`admitted\`, their member \`document\` and the access level and operations a Room Share could offer them without giving them anything new as \`held\`; it and \`rights\` carry the access this User may see, every member's to one who manages the Room and their own otherwise; \`routines\` lists the Routine Accesses this User or the Room's Triggers may call in it, each with its \`routine\`, by \`name\`, \`description\`, \`input\` and \`version\`, its \`agent\` and that Agent's \`owner\` by name: \`starts_without_approval\` on one this User may call and \`triggers: true\` on one the Triggers may call."
281
324
  properties:
282
325
  reflected: { type: string, format: date-time }
283
- room: { type: string, pattern: '^r_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$' }
326
+ room: { $ref: '#/$defs/room' }
284
327
  handle: { type: string, minLength: 6, maxLength: 63, pattern: '^[a-z0-9]+(?:-[a-z0-9]+)*$' }
285
328
  name: { type: string }
286
- membership: { enum: [ owner, member ] }
287
329
  my_room: { const: true }
288
- ownership_offer: { type: array, items: { type: string, pattern: '^(?:user\\t(?<user>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})|name\\t(?<name>[\\s\\S]+)|expires\\t(?<expires>\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z))$' } }
289
- access: { enum: [ owner, manage, edit, read ] }
290
- read: { enum: [ mcp, online, local ] }
330
+ membership: { enum: [ owner, member ] }
331
+ ownership_offer: { type: object, additionalProperties: false, properties: { nominee: { type: object, additionalProperties: false, properties: { user: { $ref: '#/$defs/id' }, name: { type: string } }, required: [ user, name ] }, expires: { type: string, format: date-time } }, required: [ nominee, expires ] }
332
+ access: { enum: [ owner, manage, edit, keep, open, search ] }
333
+ level: { enum: [ search, open, keep ] }
334
+ only_while_online: { const: true }
291
335
  operations: { type: array, items: { type: string, enum: [ write, delete, export, manageAccess ] } }
292
- owner_name: { type: string }
336
+ owner: { type: object, additionalProperties: false, properties: { name: { type: string } }, required: [ name ] }
293
337
  members: { type: integer, minimum: 0 }
294
338
  triggers: { type: integer, minimum: 0 }
295
339
  published: { enum: [ yes, no ] }
@@ -299,88 +343,93 @@ house-room:
299
343
  created: { type: string, format: date-time }
300
344
  archived: { type: string, format: date-time }
301
345
  public: { type: string, format: date-time }
302
- embedding_profile: { type: string, format: uuid }
303
- embedding_processor: { type: string }
304
346
  policy: { enum: [ On, Off ] }
305
- indexing: { type: array, items: { type: string, pattern: '^(?<path>[^\\t]+)\\t(?<policy>On|Off)$' } }
306
- shared_schema: { type: string, format: uuid }
307
- shared_schema_name: { type: string }
308
- roster: { type: string, contentMediaType: application/json, contentSchema: { type: array, items: { type: object, properties: { user: { type: string, format: uuid }, display_name: { type: string }, owner: { type: boolean }, email: { type: string }, since: { anyOf: [ { type: string, format: date-time }, { type: 'null' } ] }, access: { type: string, enum: [ owner, manage, edit, read ] }, member_document: { anyOf: [ { type: string, pattern: '^af_([123456789abcdefghjkmnpqrstvwxyz][0123456789abcdefghjkmnpqrstvwxyz]*)\\.([0123456789abcdefghjkmnpqrstvwxyz])$' }, { type: 'null' } ] }, schema_roles: { type: array, items: { type: string } }, held: { type: object, properties: { read: { anyOf: [ { type: string, enum: [ mcp, online, local ] }, { type: 'null' } ] }, operations: { type: array, items: { type: string, enum: [ write, delete, export, manageAccess ] } } }, required: [ read, operations ], additionalProperties: false } }, required: [ user, display_name, owner, email, since, member_document ], additionalProperties: false } } }
309
- rights: { type: string, contentMediaType: application/json, contentSchema: { type: array, items: { type: object, properties: { key: { anyOf: [ { type: string, format: uuid }, { type: 'null' } ] }, user: { type: string, format: uuid }, user_name: { type: string }, entries: { type: array, items: { type: object, properties: { namespace: { type: string, maxLength: 512, pattern: '^(?:a_[A-Za-z0-9._-]+(?:\\/source)?|r_[A-Za-z0-9._-]+(?:\\/(?:settings|settings\\/schema|settings\\/model|settings\\/indexing|content))?)$' }, read: { anyOf: [ { type: string, enum: [ mcp, online, local ] }, { type: 'null' } ] }, operations: { type: array, items: { type: string, enum: [ write, delete, export, manageAccess ] } }, sources: { type: array, items: { type: object, properties: { kind: { type: string, enum: [ direct, inherited ] }, namespace: { type: string, maxLength: 512, pattern: '^(?:a_[A-Za-z0-9._-]+(?:\\/source)?|r_[A-Za-z0-9._-]+(?:\\/(?:settings|settings\\/schema|settings\\/model|settings\\/indexing|content))?)$' }, read: { anyOf: [ { type: string, enum: [ mcp, online, local ] }, { type: 'null' } ] }, operations: { type: array, items: { type: string, enum: [ write, delete, export, manageAccess ] } } }, required: [ kind, namespace, read, operations ], additionalProperties: false } } }, required: [ namespace, read, operations, sources ], additionalProperties: false } }, direct: { type: array, items: { type: object, properties: { namespace: { type: string, maxLength: 512, pattern: '^(?:a_[A-Za-z0-9._-]+(?:\\/source)?|r_[A-Za-z0-9._-]+(?:\\/(?:settings|settings\\/schema|settings\\/model|settings\\/indexing|content))?)$' }, read: { anyOf: [ { type: string, enum: [ mcp, online, local ] }, { type: 'null' } ] }, operations: { type: array, items: { type: string, enum: [ write, delete, export, manageAccess ] } } }, required: [ namespace, read, operations ], additionalProperties: false } }, admitted_at: { anyOf: [ { type: string, format: date-time }, { type: 'null' } ] }, schema_roles: { type: array, items: { type: string } } }, required: [ key, user, user_name, entries, direct, admitted_at, schema_roles ], additionalProperties: false } } }
310
- routines: { type: string, contentMediaType: application/json, contentSchema: { type: array, items: { type: object, properties: { accessId: { type: string, format: uuid }, agentId: { type: string, format: uuid }, ownerDisplayName: { type: string }, name: { type: string }, description: { type: string }, input: { type: string }, version: { type: integer, exclusiveMinimum: 0 }, startsWithoutApproval: { type: boolean }, room: { type: boolean, const: true } }, required: [ accessId, agentId, ownerDisplayName, name, description, input, version ], additionalProperties: false } } }
347
+ indexing: { type: array, items: { type: object, additionalProperties: false, properties: { path: { type: string, minLength: 1 }, policy: { enum: [ On, Off ] } }, required: [ path, policy ] } }
348
+ shared_schema: { type: object, additionalProperties: false, properties: { shared_schema: { $ref: '#/$defs/id' }, name: { type: string } }, required: [ shared_schema, name ] }
349
+ roster: { type: array, items: { type: object, additionalProperties: false, properties: { user: { $ref: '#/$defs/id' }, name: { type: string }, owner: { type: boolean }, email: { type: string }, admitted: { type: string, format: date-time }, access: { type: string, enum: [ owner, manage, edit, keep, open, search ] }, only_while_online: { const: true }, document: { $ref: '#/$defs/document' }, schema_roles: { type: array, items: { type: string } }, held: { type: object, additionalProperties: false, properties: { level: { anyOf: [ { type: string, enum: [ search, open, keep ] }, { type: 'null' } ] }, operations: { type: array, items: { type: string, enum: [ write, delete, export, manageAccess ] } } }, required: [ level, operations ] } }, required: [ user, name, owner, email ] } }
350
+ rights: { type: array, items: { type: object, additionalProperties: false, properties: { user: { $ref: '#/$defs/id' }, name: { type: string }, entries: { type: array, items: { type: object, additionalProperties: false, properties: { namespace: { $ref: '#/$defs/namespace' }, level: { anyOf: [ { type: string, enum: [ search, open, keep ] }, { type: 'null' } ] }, operations: { type: array, items: { type: string, enum: [ write, delete, export, manageAccess ] } }, sources: { type: array, items: { type: object, additionalProperties: false, properties: { kind: { type: string, enum: [ direct, inherited ] }, namespace: { $ref: '#/$defs/namespace' }, level: { anyOf: [ { type: string, enum: [ search, open, keep ] }, { type: 'null' } ] }, operations: { type: array, items: { type: string, enum: [ write, delete, export, manageAccess ] } } }, required: [ kind, namespace, level, operations ] } } }, required: [ namespace, level, operations, sources ] } }, direct: { type: array, items: { type: object, additionalProperties: false, properties: { namespace: { $ref: '#/$defs/namespace' }, level: { anyOf: [ { type: string, enum: [ search, open, keep ] }, { type: 'null' } ] }, operations: { type: array, items: { type: string, enum: [ write, delete, export, manageAccess ] } } }, required: [ namespace, level, operations ] } }, admitted: { type: string, format: date-time }, schema_roles: { type: array, items: { type: string } } }, required: [ user, name, entries, direct, schema_roles ] } }
351
+ routines: { type: array, items: { type: object, additionalProperties: false, properties: { routine_access: { $ref: '#/$defs/id' }, agent: { $ref: '#/$defs/id' }, owner: { type: object, additionalProperties: false, properties: { name: { type: string } }, required: [ name ] }, routine: { type: object, additionalProperties: false, properties: { name: { type: string }, description: { type: string }, input: { type: string }, version: { type: integer, exclusiveMinimum: 0 } }, required: [ name, description, input, version ] }, starts_without_approval: { type: boolean }, triggers: { type: boolean, const: true } }, required: [ routine_access, agent, owner, routine ] } }
311
352
  required: [ reflected, room, name, membership, access, admission, created, policy ]
312
353
  house-routine-access:
313
- description: "One Routine Access this User granted, with the name of its Routine in \`routine_name\`. While a scope is \`selected_users\`, each invokers or starters entry names one User by identifier, account email and display name as of the last write of this document, or by identifier alone once that User has left the Room. An entry naming the Access's Room by its reference admits the Room's Triggers as a caller, or lets them start without approval, whatever the scope. \`allowance\` is the daily request allowance every caller is under, absent when open, \`0\` excluding them. Each allowances entry names a caller under a value of their own instead: the User or the Room and their allowance, or the caller alone when they have none. While \`follow_up_scope\` is \`selected_users\`, each follow_ups entry names one User who may send follow-up mail to the conversations their requests started, as invokers entries name them; \`all_admitted\` lets every User caller send it, and the Agent's owner always may. \`mail_allowance\` is the daily follow-up mail allowance every User caller is under, and each mail_allowances entry names a User under an allowance of their own. \`last_failure\` is the latest withdrawn request, whatever starts after it: its origin, \`user\` or \`trigger\`, its time and its reason."
354
+ description: "One Routine Access this User granted, its \`routine\` by identifier and \`name\`, the \`agent\` it calls, its \`room\` and when it was \`created\`. While a scope is \`selected_users\`, each invokers or starters entry names one \`user\` by identifier with their account \`email\` and display \`name\` as of the last write of this document, or by identifier alone once that User has left the Room. An entry naming the Access's \`room\` admits the Room's Triggers as a caller, or lets them start without approval, whatever the scope. \`allowance\` is the daily request allowance every caller is under, absent when open, \`0\` excluding them. Each allowances entry names a caller under a value of their own instead: the \`user\` or the \`room\` and their \`allowance\`, or the caller alone when they have none. While \`follow_up_scope\` is \`selected_users\`, each follow_ups entry names one User who may send follow-up mail to the conversations their requests started, as invokers entries name them; \`all_admitted\` lets every User caller send it, and the Agent's owner always may. \`mail_allowance\` is the daily follow-up mail allowance every User caller is under, and each mail_allowances entry names a \`user\` under an \`allowance\` of their own. \`last_failure\` is the latest withdrawn request, whatever starts after it: its \`origin\`, \`user\` or \`trigger\`, its time \`at\` and its \`reason\`."
314
355
  properties:
315
356
  reflected: { type: string, format: date-time }
316
- access: { type: string, format: uuid }
317
- routine: { type: string, format: uuid }
318
- routine_name: { type: string }
319
- agent: { type: string, format: uuid }
320
- room: { type: string, pattern: '^r_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$' }
357
+ routine_access: { $ref: '#/$defs/id' }
358
+ routine: { type: object, additionalProperties: false, properties: { routine: { $ref: '#/$defs/id' }, name: { type: string } }, required: [ routine, name ] }
359
+ agent: { $ref: '#/$defs/id' }
360
+ room: { $ref: '#/$defs/room' }
321
361
  invoker_scope: { type: string, enum: [ all_members, selected_users ] }
322
362
  start_scope: { type: string, enum: [ none, all_admitted, selected_users ] }
323
363
  follow_up_scope: { type: string, enum: [ none, all_admitted, selected_users ] }
324
- granted: { type: string, format: date-time }
364
+ created: { type: string, format: date-time }
325
365
  revoked: { type: string, format: date-time }
326
- invokers: { type: array, items: { type: string, pattern: '^(?:(?<user>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})(?:\\t(?<email>\\S+)\\t(?<name>[\\s\\S]+))?|(?<room>r_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])))$' } }
327
- starters: { type: array, items: { type: string, pattern: '^(?:(?<user>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})(?:\\t(?<email>\\S+)\\t(?<name>[\\s\\S]+))?|(?<room>r_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])))$' } }
328
- follow_ups: { type: array, items: { type: string, pattern: '^(?<user>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})(?:\\t(?<email>\\S+)\\t(?<name>[\\s\\S]+))?$' } }
366
+ invokers: { type: array, items: { $ref: '#/$defs/caller' } }
367
+ starters: { type: array, items: { $ref: '#/$defs/caller' } }
368
+ follow_ups: { type: array, items: { type: object, additionalProperties: false, properties: { user: { $ref: '#/$defs/id' }, email: { type: string }, name: { type: string } }, required: [ user ] } }
329
369
  allowance: { type: integer, minimum: 0 }
330
- allowances: { type: array, items: { type: string, pattern: '^(?:(?<user>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})|(?<room>r_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])))(?:\\t(?<daily_requests>\\d+))?$' } }
370
+ allowances: { type: array, items: { type: object, additionalProperties: false, properties: { user: { $ref: '#/$defs/id' }, room: { $ref: '#/$defs/room' }, allowance: { type: integer, minimum: 0 } }, minProperties: 1 } }
331
371
  mail_allowance: { type: integer, minimum: 0 }
332
- mail_allowances: { type: array, items: { type: string, pattern: '^(?<user>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})\\t(?<daily_mail>\\d+)$' } }
333
- last_failure: { type: string, pattern: '^(?<origin>user|trigger)\\t(?<at>\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z)\\t(?<reason>[\\s\\S]+)$' }
334
- required: [ reflected, access, routine, routine_name, agent, room, invoker_scope, start_scope, follow_up_scope, granted ]
372
+ mail_allowances: { type: array, items: { type: object, additionalProperties: false, properties: { user: { $ref: '#/$defs/id' }, allowance: { type: integer, minimum: 0 } }, required: [ user, allowance ] } }
373
+ last_failure: { type: object, additionalProperties: false, properties: { origin: { enum: [ user, trigger ] }, at: { type: string, format: date-time }, reason: { type: string } }, required: [ origin, at, reason ] }
374
+ required: [ reflected, routine_access, routine, agent, room, invoker_scope, start_scope, follow_up_scope, created ]
375
+ house-service-key:
376
+ description: "One Service key a Room this User owns or manages holds, never the key itself: its \`room\`, its \`name\`, the one \`origin\` House sends it to, the \`form\` it is sent in, its \`kind\` with the header or query parameter \`name\` or the path \`prefix\`, and the address of its origin's icon once House kept one."
377
+ properties:
378
+ reflected: { type: string, format: date-time }
379
+ service_key: { $ref: '#/$defs/id' }
380
+ room: { $ref: '#/$defs/room' }
381
+ name: { type: string }
382
+ origin: { type: string, format: uri }
383
+ form: { type: object, additionalProperties: false, properties: { kind: { enum: [ bearer, header, query, basic, path ] }, name: { type: string }, prefix: { type: string } }, required: [ kind ] }
384
+ icon: { type: string, pattern: '^\\/service-keys\\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\\/icon$' }
385
+ required: [ reflected, service_key, room, name, origin, form ]
335
386
  house-share:
336
- description: One Share this User issued, kept until it expires or is cancelled. An email delivery carries \`share_to\`, the address this User entered; a link delivery never carries the link. Each item entry names its kind, \`room\` or \`app\`, its state, \`offerable\`, \`held\`, \`accepted\`, \`declined\` or \`superseded\`, for a Room item \`read\` and the read level it grants, the operations it grants as this User chose them or \`-\` for none, \`roles\` and the Schema Roles its member gets as a JSON array when it names any, for an App item \`origins\` and the external origins its latest release declared when this document was written, comma-separated, when it declared any, its reference and its name. An App item is never shown \`held\`. Each pack entry names an App item by reference, one of its slots, and the reference and name of the Room item that fills it. Each \`join_requests\` entry of a link delivery names one Join request, its state, \`waiting\`, \`approved\` or \`declined\`, and the account email and display name of the User who sent it as House held them when this document was written, oldest first; the House approval path of a Join request is \`/approve/\` followed by its identifier.
387
+ description: "One Share this User issued, kept until it expires or is cancelled. An email delivery carries \`share_to\`, the address this User entered; a link delivery never carries the link. Each item names its \`kind\`, \`room\` or \`app\`, the Room or App under that key with its \`name\`, its \`state\`, \`offerable\`, \`held\`, \`accepted\`, \`declined\`, \`superseded\` or \`ended\`, an item the accepted Share could not give being \`ended\` with its \`cause\`, \`offer_changed\` when the recipient's access changed before it was given or \`manage_access_lost\` when this User no longer managed it, for a Room item the \`level\` it grants, the \`operations\` it grants as this User chose them and the Schema Roles its member gets as \`roles\` when it names any, and for an App item the external \`origins\` its latest release declared when this document was written, when it declared any. An App item is never shown \`held\`. Each pack entry names an App item's \`app\`, one of its \`slot\`s, and the \`room\` of the Room item that fills it, with that Room's \`name\`. Each \`join_requests\` entry of a link delivery names one Join request, its \`state\`, \`waiting\`, \`approved\` or \`declined\`, and the User it is \`from\` by account \`email\` and display \`name\` as House held them when this document was written, oldest first; the House approval path of a Join request is \`/approve/\` followed by its identifier."
337
388
  properties:
338
389
  reflected: { type: string, format: date-time }
339
- share: { type: string, format: uuid }
390
+ share: { $ref: '#/$defs/id' }
340
391
  share_link: { enum: [ yes, no ] }
341
392
  share_to: { type: string, format: email }
342
- items: { type: array, items: { type: string, pattern: '^(?<kind>room|app)\\t(?<state>offerable|held|accepted|declined|superseded)(?:\\tread\\t(?<read>mcp|online|local))?\\t(?<operations>-|(?:write|delete|export|manageAccess)(?:,(?:write|delete|export|manageAccess))*)(?:\\troles\\t(?<roles>\\["(?:[^"\\\\\\t]|\\\\.)*"(?:,"(?:[^"\\\\\\t]|\\\\.)*")*\\]))?(?:\\torigins\\t(?<origins>[^\\s,]+(?:,[^\\s,]+)*))?\\t(?<ref>r_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])|a_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz]))\\t(?<name>[\\s\\S]+)$' } }
343
- pack: { type: array, items: { type: string, pattern: '^(?<app>a_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz]))\\t(?<slot>[a-z0-9]([a-z0-9-]*[a-z0-9])?)\\t(?<filled>r_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz]))\\t(?<filled_name>[\\s\\S]+)$' } }
344
- join_requests: { type: array, items: { type: string, pattern: '^(?<join_request>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})\\t(?<state>waiting|approved|declined)\\t(?<email>\\S+)\\t(?<name>[\\s\\S]+)$' } }
393
+ items: { type: array, items: { type: object, additionalProperties: false, properties: { kind: { enum: [ room, app ] }, name: { type: string }, state: { enum: [ offerable, held, accepted, declined, superseded, ended ] }, cause: { enum: [ offer_changed, manage_access_lost ] }, level: { enum: [ search, open, keep ] }, operations: { type: array, items: { type: string, enum: [ write, delete, export, manageAccess ] } }, roles: { type: array, items: { type: string } }, origins: { type: array, items: { type: string, format: uri } }, room: { $ref: '#/$defs/room' }, app: { $ref: '#/$defs/app' } }, required: [ kind, name, state, operations ] } }
394
+ pack: { type: array, items: { type: object, additionalProperties: false, properties: { app: { $ref: '#/$defs/app' }, slot: { type: string, pattern: '^[a-z0-9]([a-z0-9-]*[a-z0-9])?$' }, room: { type: object, additionalProperties: false, properties: { room: { $ref: '#/$defs/room' }, name: { type: string } }, required: [ room, name ] } }, required: [ app, slot, room ] } }
395
+ join_requests: { type: array, items: { type: object, additionalProperties: false, properties: { join_request: { $ref: '#/$defs/id' }, state: { enum: [ waiting, approved, declined ] }, from: { type: object, additionalProperties: false, properties: { email: { type: string }, name: { type: string } }, required: [ email, name ] } }, required: [ join_request, state, from ] } }
345
396
  created: { type: string, format: date-time }
346
397
  expires: { type: string, format: date-time }
347
398
  required: [ reflected, share, share_link, created, expires ]
348
399
  house-share-offer:
349
- description: One live Share offered to this User by email while an item of it is still offered. Each item entry names its kind, \`room\` or \`app\`, its state for this User, \`offerable\`, \`held\`, \`accepted\`, \`declined\` or \`superseded\`, for a Room item \`read\` and the read level it grants, the operations it grants or \`-\` for none, and its name; it carries no reference. A Room item's read level and operations are the ones its issuer chose for the Room's content; its holder reads the Room's settings at that level, and holds \`manageAccess\` over its document model when it names \`manageAccess\`. A Room item naming Schema Roles names \`roles\` and those Schema Roles as a JSON array, which accepting the Share adds to this User's own in that Room. An App item grants use of the App and never its source, is never shown \`held\`, and names \`origins\` and the external origins its latest release declared when this document was written, comma-separated, when it declared any, which accepting the Share lets its code reach. Each pack entry names an App slot and the offered Room that fills it. Names are as House held them when this document was written. The page is the House approval path where this User accepts or declines the whole Share.
400
+ description: "One live Share offered to this User by email while an item of it is still offered, \`from\` its issuer by display \`name\` and account \`email\`. Each item names its \`kind\`, \`room\` or \`app\`, its \`name\`, its \`state\` for this User, \`offerable\`, \`held\`, \`accepted\`, \`declined\`, \`superseded\` or \`ended\`, an item the accepted Share could not give being \`ended\` with its \`cause\`, \`offer_changed\` when this User's access changed before it was given or \`manage_access_lost\` when its issuer no longer managed it, for a Room item the \`level\` it grants and the \`operations\` it grants; it carries no reference. A Room item's access level and operations are the ones its issuer chose for the Room's content; its holder reads the Room's settings at that level, and holds \`manageAccess\` over its document model when it names \`manageAccess\`. A Room item naming Schema Roles names them as \`roles\`, which accepting the Share adds to this User's own in that Room. An App item grants use of the App and never its source, is never shown \`held\`, and names as \`origins\` the external origins its latest release declared when this document was written, when it declared any, which accepting the Share lets its code reach. Each pack entry names an offered \`app\`, one of its \`slot\`s, and the offered \`room\` that fills it, each by \`name\`. Names are as House held them when this document was written. The page is the House approval path where this User accepts or declines the whole Share."
350
401
  properties:
351
402
  reflected: { type: string, format: date-time }
352
- share: { type: string, format: uuid }
353
- share_from: { type: string }
354
- issuer_email: { type: string, format: email }
403
+ share: { $ref: '#/$defs/id' }
404
+ from: { type: object, additionalProperties: false, properties: { name: { type: string }, email: { type: string, format: email } }, required: [ name, email ] }
355
405
  page: { type: string, pattern: '^\\/approve\\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$' }
356
- items: { type: array, items: { type: string, pattern: '^(?<kind>room|app)\\t(?<state>offerable|held|accepted|declined|superseded)(?:\\tread\\t(?<read>mcp|online|local))?\\t(?<operations>-|(?:write|delete|export|manageAccess)(?:,(?:write|delete|export|manageAccess))*)(?:\\troles\\t(?<roles>\\["(?:[^"\\\\\\t]|\\\\.)*"(?:,"(?:[^"\\\\\\t]|\\\\.)*")*\\]))?(?:\\torigins\\t(?<origins>[^\\s,]+(?:,[^\\s,]+)*))?\\t(?<name>[\\s\\S]+)$' } }
357
- pack: { type: array, items: { type: string, pattern: '^(?<app>[^\\t]+)\\t(?<slot>[a-z0-9]([a-z0-9-]*[a-z0-9])?)\\t(?<filled>[\\s\\S]+)$' } }
406
+ items: { type: array, items: { type: object, additionalProperties: false, properties: { kind: { enum: [ room, app ] }, name: { type: string }, state: { enum: [ offerable, held, accepted, declined, superseded, ended ] }, cause: { enum: [ offer_changed, manage_access_lost ] }, level: { enum: [ search, open, keep ] }, operations: { type: array, items: { type: string, enum: [ write, delete, export, manageAccess ] } }, roles: { type: array, items: { type: string } }, origins: { type: array, items: { type: string, format: uri } } }, required: [ kind, name, state, operations ] } }
407
+ pack: { type: array, items: { type: object, additionalProperties: false, properties: { app: { type: object, additionalProperties: false, properties: { name: { type: string } }, required: [ name ] }, slot: { type: string, pattern: '^[a-z0-9]([a-z0-9-]*[a-z0-9])?$' }, room: { type: object, additionalProperties: false, properties: { name: { type: string } }, required: [ name ] } }, required: [ app, slot, room ] } }
358
408
  created: { type: string, format: date-time }
359
409
  expires: { type: string, format: date-time }
360
- required: [ reflected, share, share_from, issuer_email, page, created, expires ]
410
+ required: [ reflected, share, from, page, created, expires ]
361
411
  house-site:
362
- description: "One Site this User owns: its name, its address under this environment's Site suffix, its own App with that App's tab icon as a Site shows it, the running release of that App, which the Site serves, its title and Intake Room, whether an operator disabled it, its mode, and every Room slot of that release in its order. Each slot entry names the slot, one Room its list holds, that entry's address segment and the last compatibility outcome of that entry, in list order, or the slot and \`empty\` for a slot that lists no Room; each finding names its slot, its Room and one exact structural finding of that Room against the slot. An incompatible entry stays listed and blocks nothing. \`release\` is absent until that App's first release. \`disabled\` is \`yes\` while an operator holds the Site disabled, and \`disabled_reason\` carries the reason the operator stated; visitors then find the Site unavailable, this User may still change or delete it, and only an operator enables it again. \`mode\` is \`snapshot\` while visitors see the Published Snapshot \`publication\` names, or \`live\` while they see what its Rooms hold as it changes, which needs Full House; only this User changes it. \`unpublished\` is \`yes\` while this User holds the Site unpublished: visitors then find it unavailable at every address and nothing else changes, and only this User's republication serves it again; an operator's enable never does. \`suspended\` is \`yes\` while visitors find the Site unavailable at every address for the reason \`suspended_reason\` names: \`full_house_required\` while the Site is \`live\` and this User lacks Full House, or \`public_delivery_limit\` while what House's server sent for this User's Sites this UTC month has reached this User's Public delivery limit, unless \`public_overage\` is \`on\` while this User holds Full House. A suspension keeps the publication, the addresses, the Custom domains and every act of this User's, and ends by itself at the next UTC month, when this User gains Full House or when \`public_overage\` turns \`on\` while this User holds Full House; it lifts no Unpublish and no operator's disable. \`public_overage\` is \`on\` while this User keeps the Site serving past the Public delivery limit, which it does only while this User holds Full House; what it sends past the limit is charged as overage. It stays \`on\` when Full House ends and acts again when Full House returns. \`publication\` is the Published Snapshot the Site serves, or serves once republished, absent while it holds none. \`acts\` names the publication acts this User may take now: \`unpublish\` while the Site is published, \`republish\` while it is unpublished and holds a publication to serve; Publish data also serves an unpublished Site again, with what its Rooms hold. A cleared title is absent. \`description\` carries presentation. \`screenshot\` is the address of the image House captured of the Site at its primary address after a release, which a shared link to the Site shows, absent before the first capture. \`google_analytics_id\` is the owner's measurement ID the Site loads its analytics tag with, absent while unset. \`indexing\` is the search-engines-and-agents switch: while it is \`yes\`, the Site serves its documents as Markdown and lists them in its indexes. \`entry_fallback\` names the last time this release's Entry Data Contract could not serve an Entry Page as HTML: why (\`over_bound\`, \`query_refused\` or \`unavailable\`), the route and when; that page then started the App as usual. \`external_origins\` names the declared external origins of that release. \`notify_me\` is \`on\` while the Site's notification Trigger is present and enabled in its Intake Room. \`addresses\` lists every address the Site answers at: its address under the Site suffix and each active Custom domain; every address other than \`primary_address\` redirects to it. Each \`domains\` entry names one Custom domain, its state \`pending\`, \`active\` or \`failed\`, the DNS alias target its hostname must point at, which is this environment's and the same for every domain, and the edge's reason when it gives one."
412
+ description: "One Site this User owns: its \`name\`, its address under this environment's Site suffix, its own \`app\` with that App's tab icon as a Site shows it, the running \`release\` of that App, which the Site serves, by \`release\` and \`sequence\`, its title and \`intake_room\`, the Intake Room by its \`room\`, whether an operator disabled it, its mode, and every Room slot of that release in its order. Each slot names its \`slot\` and as \`entries\` each Room its list holds, in list order, by its \`room\`, with that entry's address \`segment\` and the last \`compatibility\` outcome of that entry; a slot that lists no Room has no entry. Each finding names its \`slot\`, its \`room\` and one exact structural \`finding\` of that Room against the slot. An incompatible entry stays listed and blocks nothing. \`release\` is absent until that App's first release. \`disabled\` is \`yes\` while an operator holds the Site disabled, and \`disabled_reason\` carries the reason the operator stated; visitors then find the Site unavailable, this User may still change or delete it, and only an operator enables it again. \`mode\` is \`snapshot\` while visitors see the Published Snapshot \`publication\` names, or \`live\` while they see what its Rooms hold as it changes, which needs Full House; only this User changes it. \`unpublished\` is \`yes\` while this User holds the Site unpublished: visitors then find it unavailable at every address and nothing else changes, and only this User's republication serves it again; an operator's enable never does. \`suspended\` is \`yes\` while visitors find the Site unavailable at every address for the reason \`suspended_reason\` names: \`full_house_required\` while the Site is \`live\` and this User lacks Full House, or \`public_delivery_limit\` while what House's server sent for this User's Sites this UTC month has reached this User's Public delivery limit, unless \`public_overage\` is \`on\` while this User holds Full House. A suspension keeps the publication, the addresses, the Custom domains and every act of this User's, and ends by itself at the next UTC month, when this User gains Full House or when \`public_overage\` turns \`on\` while this User holds Full House; it lifts no Unpublish and no operator's disable. \`public_overage\` is \`on\` while this User keeps the Site serving past the Public delivery limit, which it does only while this User holds Full House; what it sends past the limit is charged as overage. It stays \`on\` when Full House ends and acts again when Full House returns. \`publication\` is the Published Snapshot the Site serves, or serves once republished, absent while it holds none. \`acts\` names the publication acts this User may take now: \`unpublish\` while the Site is published, \`republish\` while it is unpublished and holds a publication to serve; Publish data also serves an unpublished Site again, with what its Rooms hold. A cleared title is absent. \`description\` carries presentation. \`screenshot\` is the address of the image House captured of the Site at its primary address after a release, which a shared link to the Site shows, absent before the first capture. \`analytics\` is the owner's measurement ID the Site loads its analytics tag with, absent while unset. \`indexing\` is the search-engines-and-agents switch: while it is \`yes\`, the Site serves its documents as Markdown and lists them in its indexes. \`entry_fallback\` names the last time this release's Entry Data Contract could not serve an Entry Page as HTML: its \`cause\` (\`over_bound\`, \`query_refused\` or \`unavailable\`), the \`route\` and when it was \`recorded\`; that page then started the App as usual. \`external_origins\` names the declared external origins of that release. \`notify_me\` is \`on\` while the Site's notification Trigger is present and enabled in its Intake Room. \`addresses\` lists every address the Site answers at: its address under the Site suffix and each active Custom domain; every address other than \`primary_address\` redirects to it. Each \`domains\` entry names one Custom domain's \`host\`, its \`state\`, \`pending\`, \`active\` or \`failed\`, the DNS alias target its hostname must point at as \`dns_target\`, which is this environment's and the same for every domain, and the edge's \`reason\` when it gives one."
363
413
  properties:
364
414
  reflected: { type: string, format: date-time }
365
- site: { type: string, format: uuid }
415
+ site: { $ref: '#/$defs/id' }
366
416
  name: { type: string }
367
417
  address: { type: string, format: uri }
368
418
  addresses: { type: array, items: { type: string, format: uri } }
369
419
  primary_address: { type: string, format: uri }
370
- domains: { type: array, items: { type: string, pattern: '^(?<host>\\S+)\\t(?<state>pending|active|failed)\\t(?<dns_target>\\S+)(?:\\t(?<reason>[\\s\\S]+))?$' } }
371
- app: { type: string, format: uuid }
372
- app_ref: { type: string, pattern: '^a_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$' }
420
+ domains: { type: array, items: { type: object, additionalProperties: false, properties: { host: { type: string }, state: { enum: [ pending, active, failed ] }, dns_target: { type: string }, reason: { type: string } }, required: [ host, state, dns_target ] } }
421
+ app: { $ref: '#/$defs/app' }
373
422
  tab_icon_light: { type: string, pattern: ^data:image\\/ }
374
423
  tab_icon_dark: { type: string, pattern: ^data:image\\/ }
375
424
  tab_icon_colours: { type: array, items: { type: string, pattern: '^#[0-9a-f]{6}$' } }
376
425
  tab_icon_blend: { enum: [ linear, radial ] }
377
426
  tab_icon_angle: { type: integer, minimum: 0, maximum: 359 }
378
- release: { type: string, pattern: '^(?<release>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})\\t(?<sequence>\\d+)$' }
427
+ release: { type: object, additionalProperties: false, properties: { release: { $ref: '#/$defs/id' }, sequence: { type: integer, exclusiveMinimum: 0 } }, required: [ release, sequence ] }
379
428
  title: { type: string }
380
429
  description: { type: string }
381
430
  screenshot: { type: string, format: uri }
382
- google_analytics_id: { type: string, pattern: '^G-[A-Z0-9]{1,32}$' }
383
- intake_room: { type: string, pattern: '^r_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$' }
431
+ analytics: { type: string, pattern: '^G-[A-Z0-9]{1,32}$' }
432
+ intake_room: { type: object, additionalProperties: false, properties: { room: { $ref: '#/$defs/room' } }, required: [ room ] }
384
433
  external_origins: { type: array, items: { type: string, format: uri } }
385
434
  disabled: { enum: [ yes, no ] }
386
435
  disabled_reason: { type: string }
@@ -389,10 +438,10 @@ house-site:
389
438
  suspended: { enum: [ yes, no ] }
390
439
  suspended_reason: { type: string, enum: [ full_house_required, public_delivery_limit ] }
391
440
  public_overage: { enum: [ on, off ] }
392
- publication: { type: string, format: uuid }
441
+ publication: { $ref: '#/$defs/id' }
393
442
  acts: { type: array, items: { type: string, enum: [ unpublish, republish ] } }
394
443
  indexing: { enum: [ yes, no ] }
395
- entry_fallback: { type: string, pattern: ^(?<cause>over_bound|query_refused|unavailable)\\t(?<route>\\S+)\\t(?<recorded>\\S+)$ }
444
+ entry_fallback: { type: object, additionalProperties: false, properties: { cause: { enum: [ over_bound, query_refused, unavailable ] }, route: { type: string }, recorded: { type: string, format: date-time } }, required: [ cause, route, recorded ] }
396
445
  created: { type: string, format: date-time }
397
446
  new_browsers: { type: integer, minimum: 0 }
398
447
  submissions: { type: integer, minimum: 0 }
@@ -400,16 +449,41 @@ house-site:
400
449
  image_copies: { type: integer, minimum: 0 }
401
450
  image_copy_bound: { type: integer, minimum: 0 }
402
451
  image_copy_limit_reached: { enum: [ yes, no ] }
403
- slots: { type: array, items: { type: string, pattern: '^(?<slot>[a-z0-9]([a-z0-9-]*[a-z0-9])?)\\t(?:(?<empty>empty)|(?<room>r_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz]))\\t(?<segment>\\S+)\\t(?<compatibility>unchecked|compatible|incompatible))$' } }
404
- findings: { type: array, items: { type: string, pattern: '^(?<slot>[a-z0-9]([a-z0-9-]*[a-z0-9])?)\\t(?<room>r_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz]))\\t(?<finding>[\\s\\S]+)$' } }
405
- required: [ reflected, site, name, address, primary_address, app, app_ref, disabled, mode, unpublished, suspended, public_overage, indexing, created, new_browsers, submissions, notify_me, image_copies, image_copy_bound, image_copy_limit_reached ]
452
+ slots: { type: array, items: { type: object, additionalProperties: false, properties: { slot: { type: string, pattern: '^[a-z0-9]([a-z0-9-]*[a-z0-9])?$' }, entries: { type: array, items: { type: object, additionalProperties: false, properties: { room: { $ref: '#/$defs/room' }, segment: { type: string }, compatibility: { enum: [ unchecked, compatible, incompatible ] } }, required: [ room, segment, compatibility ] } } }, required: [ slot, entries ] } }
453
+ findings: { type: array, items: { type: object, additionalProperties: false, properties: { slot: { type: string, pattern: '^[a-z0-9]([a-z0-9-]*[a-z0-9])?$' }, room: { $ref: '#/$defs/room' }, finding: { type: string } }, required: [ slot, room, finding ] } }
454
+ required: [ reflected, site, name, address, primary_address, app, disabled, mode, unpublished, suspended, public_overage, indexing, created, new_browsers, submissions, notify_me, image_copies, image_copy_bound, image_copy_limit_reached ]
455
+ house-trigger:
456
+ description: "One Trigger of this Room as its acts wrote it, which House alone writes: its \`description\`, the \`condition\` it fires on, its \`actions\` in order, whether each action and the Trigger are \`enabled\`, \`paused_by\` \`types\` while a change of the Room's types paused it, its \`creator\` by \`user\` and the \`name\` they had then, and when it was \`created\`. A \`notify\` action reaches the \`users\` its \`to\` names, the members its \`fields\` name in the matched document and the holders of its \`roles\`; a \`routine\` action sends its \`payload\` through its \`routine_access\`; a \`function\` action runs the \`function\` its \`app\`'s latest release declares, on House's servers. Whether an action's target holds is not written: it follows from the Room's members, the Routine Access and the App's latest release."
457
+ properties:
458
+ reflected: { type: string, format: date-time }
459
+ trigger: { $ref: '#/$defs/id' }
460
+ description: { type: string }
461
+ condition:
462
+ anyOf:
463
+ - { type: object, additionalProperties: false, properties: { on: { const: documents }, scope: { $ref: '#/$defs/trigger_scope' }, mode: { const: starts_matching }, new_documents: { type: boolean }, match: { $ref: '#/$defs/trigger_test' }, by: { $ref: '#/$defs/trigger_test' }, moved_between_rooms: { type: boolean } }, required: [ on, scope, mode, new_documents, match ] }
464
+ - { type: object, additionalProperties: false, properties: { on: { const: documents }, scope: { $ref: '#/$defs/trigger_scope' }, mode: { const: field_changes }, field: { type: string }, from: { anyOf: [ { $ref: '#/$defs/trigger_values' }, { const: new } ] }, to: { anyOf: [ { $ref: '#/$defs/trigger_values' }, { const: deleted } ] }, match: { $ref: '#/$defs/trigger_test' }, by: { $ref: '#/$defs/trigger_test' }, moved_between_rooms: { type: boolean } }, required: [ on, scope, mode, field ] }
465
+ - { type: object, additionalProperties: false, properties: { on: { const: items }, source: { type: string }, address: { type: string }, match: { $ref: '#/$defs/trigger_test' } }, required: [ on ] }
466
+ - { type: object, additionalProperties: false, properties: { on: { const: clock }, cron: { type: string }, time_zone: { type: string } }, required: [ on, cron, time_zone ] }
467
+ - { type: object, additionalProperties: false, properties: { on: { const: clock }, scope: { type: object, additionalProperties: false, properties: { type: { type: string } }, required: [ type ] }, date: { type: string }, days: { type: integer }, at: { type: string }, time_zone: { type: string }, match: { $ref: '#/$defs/trigger_test' } }, required: [ on, scope, date, days, at, time_zone ] }
468
+ actions:
469
+ type: array
470
+ items:
471
+ anyOf:
472
+ - { type: object, additionalProperties: false, properties: { kind: { const: notify }, enabled: { type: boolean }, title: { type: string }, text: { type: string }, to: { type: object, additionalProperties: false, properties: { users: { type: array, items: { type: object, additionalProperties: false, properties: { user: { $ref: '#/$defs/id' } }, required: [ user ] } }, fields: { type: array, items: { type: string } }, roles: { type: array, items: { type: string } } }, required: [ users, fields, roles ] } }, required: [ kind, enabled, title, text, to ] }
473
+ - { type: object, additionalProperties: false, properties: { kind: { const: routine }, enabled: { type: boolean }, routine_access: { $ref: '#/$defs/id' }, payload: { type: string } }, required: [ kind, enabled, payload ] }
474
+ - { type: object, additionalProperties: false, properties: { kind: { const: function }, enabled: { type: boolean }, app: { $ref: '#/$defs/app' }, function: { type: string } }, required: [ kind, enabled, app, function ] }
475
+ enabled: { type: boolean }
476
+ paused_by: { enum: [ types ] }
477
+ creator: { type: object, additionalProperties: false, properties: { user: { $ref: '#/$defs/id' }, name: { type: string } }, required: [ user, name ] }
478
+ created: { type: string, format: date-time }
479
+ required: [ reflected, trigger, description, condition, actions, enabled, creator, created ]
406
480
  house-web-wizard:
407
- description: "One Web Wizard an agent made for this User: the \`environment\` it runs on, by that Environment's name, and its \`state\`, \`waiting\` until its owner presses Run, \`running\`, \`finished\` with the script's \`exit_code\`, \`failed\`, \`cancelled\` when its page closed before the script ended, or \`lapsed\` when nobody ran it in its time. Its body is the script, whole, in one fenced code block. The terminal's output is never kept."
481
+ description: "One Web Wizard an agent made for this User: the \`environment\` it runs on, with that Environment's \`name\`, and its \`state\`, \`waiting\` until its owner presses Run, \`running\`, \`finished\` with the script's \`exit_code\`, \`failed\`, \`cancelled\` when its page closed before the script ended, or \`lapsed\` when nobody ran it in its time. Its body is the script, whole, in one fenced code block. The terminal's output is never kept."
408
482
  properties:
409
483
  reflected: { type: string, format: date-time }
410
- wizard: { type: string, format: uuid }
411
- environment: { type: string }
484
+ web_wizard: { $ref: '#/$defs/id' }
485
+ environment: { type: object, additionalProperties: false, properties: { environment: { $ref: '#/$defs/id' }, name: { type: string } }, required: [ environment, name ] }
412
486
  state: { enum: [ waiting, running, finished, failed, cancelled, lapsed ] }
413
487
  exit_code: { type: integer }
414
- required: [ reflected, wizard, environment, state ]
488
+ required: [ reflected, web_wizard, environment, state ]
415
489
  `;