@agentshouse/mdruntime-adapter 0.1.0-c2aee37343279 → 0.1.0-c2c54ea2d0d14

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,109 @@
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
+ result: { type: string }
46
+ url: { type: string, format: uri }
47
+ required: [ routine_request, origin, state, target, created ]
48
+ caller:
49
+ 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.
50
+ type: object
51
+ additionalProperties: false
52
+ properties:
53
+ user: { $ref: '#/$defs/id' }
54
+ email: { type: string }
55
+ name: { type: string }
56
+ room: { $ref: '#/$defs/room' }
57
+ minProperties: 1
58
+ trigger_test:
59
+ 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.
60
+ type: object
61
+ additionalProperties: true
62
+ trigger_values:
63
+ type: array
64
+ items: { anyOf: [ { type: string }, { type: number }, { type: boolean } ] }
65
+ trigger_scope:
66
+ description: The documents a Trigger condition watches, by \`type\`, by \`folder\` or one document at its \`path\`, which \`create_trigger\` takes as \`document\`.
67
+ type: object
68
+ additionalProperties: false
69
+ properties:
70
+ type: { type: string }
71
+ folder: { type: string }
72
+ path: { type: string }
73
+ minProperties: 1
74
+ maxProperties: 1
75
+ house-account:
76
+ 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 a Telegram bot and no Telegram account is linked to it, \`linked\` while one is, \`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, and \`full_house: true\` while the User holds Full House."
3
77
  properties:
4
78
  reflected: { type: string, format: date-time }
5
- user: { type: string, format: uuid }
79
+ user: { $ref: '#/$defs/id' }
6
80
  email_verified: { type: string, format: date-time }
7
81
  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 } } }
82
+ notifications: { type: array, items: { type: object, additionalProperties: false, properties: { group: { type: string }, channels: { type: array, items: { type: string } } }, required: [ group, channels ] } }
9
83
  created: { type: string, format: date-time }
10
84
  telegram: { enum: [ available, linked ] }
11
- meta: { type: string, pattern: '^(?<app>\\d{1,32})\\t(?<signup>\\d{1,32})(?:\\tbusiness_app)?$' }
85
+ 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
86
  tiktok: { enum: [ available ] }
13
87
  building: { enum: [ administrator ] }
88
+ full_house: { const: true }
14
89
  required: [ reflected, user, email_verified, notifications, created ]
15
90
  house-agent:
16
- description: One registered Agent this User owns.
91
+ description: One registered Agent this User owns, with the \`profile\` and \`environment\` it binds, when it was \`created\` and, once it is, \`retired\`.
17
92
  properties:
18
93
  reflected: { type: string, format: date-time }
19
- agent: { type: string, format: uuid }
94
+ agent: { $ref: '#/$defs/id' }
20
95
  name: { type: string }
21
- profile: { type: string, format: uuid }
22
- environment: { type: string, format: uuid }
96
+ profile: { $ref: '#/$defs/id' }
97
+ environment: { $ref: '#/$defs/id' }
23
98
  launch_directory: { type: string }
24
- declared: { type: string, format: date-time }
99
+ created: { type: string, format: date-time }
25
100
  retired: { type: string, format: date-time }
26
- required: [ reflected, agent, name, profile, environment, launch_directory, declared ]
101
+ required: [ reflected, agent, name, profile, environment, launch_directory, created ]
27
102
  house-agent-profile:
28
103
  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
104
  properties:
30
105
  reflected: { type: string, format: date-time }
31
- profile: { type: string, format: uuid }
106
+ profile: { $ref: '#/$defs/id' }
32
107
  name: { type: string }
33
108
  revision: { type: integer, minimum: 0 }
34
109
  adapter_kind: { type: string }
@@ -38,207 +113,182 @@ house-agent-profile:
38
113
  arguments: { type: array, items: { type: string } }
39
114
  required: [ reflected, profile, name, revision ]
40
115
  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\`.
116
+ 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\` and the Room slots it declares in order as \`room_slots\`, each \`slot\` with its \`access\` and \`types\`, 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
117
  properties:
43
118
  reflected: { type: string, format: date-time }
44
- app: { type: string, format: uuid }
45
- app_ref: { type: string, pattern: '^a_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$' }
119
+ app: { $ref: '#/$defs/app' }
46
120
  address: { type: string, pattern: '^\\/app\\/a_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$' }
47
- display_name: { type: string }
121
+ name: { type: string }
48
122
  ownership: { enum: [ own, held ] }
49
- owner_name: { type: string }
123
+ owner: { type: object, additionalProperties: false, properties: { name: { type: string } }, required: [ name ] }
124
+ my_app: { const: true }
50
125
  created: { type: string, format: date-time }
51
- forked_from: { type: string, format: uuid }
52
126
  tab_icon_light: { type: string, pattern: ^data:image\\/ }
53
127
  tab_icon_dark: { type: string, pattern: ^data:image\\/ }
54
128
  tab_icon_colours: { type: array, items: { type: string, pattern: '^#[0-9a-f]{6}$' } }
55
129
  tab_icon_blend: { enum: [ linear, radial ] }
56
130
  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+)$' }
131
+ latest_release: { type: object, additionalProperties: false, properties: { release: { $ref: '#/$defs/id' }, sequence: { type: integer, exclusiveMinimum: 0 } }, required: [ release, sequence ] }
58
132
  external_origins: { type: array, items: { type: string, format: uri } }
59
133
  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)$ } }
134
+ 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 ] } }
135
+ 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 ] } }
136
+ holders: { type: array, items: { type: object, additionalProperties: false, properties: { user: { $ref: '#/$defs/id' }, name: { type: string }, email: { type: string } }, required: [ user, name, email ] } }
137
+ features: { type: array, items: { type: object, additionalProperties: false, properties: { feature: { type: string }, consent: { enum: [ allowed, denied ] } }, required: [ feature, consent ] } }
64
138
  features_version: { type: integer, exclusiveMinimum: 0 }
65
- required: [ reflected, app, app_ref, address, display_name, ownership, created ]
139
+ required: [ reflected, app, address, name, ownership, created ]
66
140
  house-app-preferences:
67
141
  description: An App's preferences. Its own vocabulary is in the body.
68
142
  properties:
69
- app: { type: string, pattern: '^a_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$' }
143
+ app: { $ref: '#/$defs/app' }
70
144
  required: [ app ]
71
145
  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."
146
+ 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
147
  properties:
74
148
  reflected: { type: string, format: date-time }
75
- app: { type: string, format: uuid }
76
- app_ref: { type: string, pattern: '^a_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$' }
149
+ app: { $ref: '#/$defs/app' }
77
150
  slot: { type: string, pattern: '^[a-z0-9]([a-z0-9-]*[a-z0-9])?$' }
78
151
  types: { type: array, items: { type: string } }
79
152
  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 } }
153
+ 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
154
  rooms: { enum: [ all, all_but_private ] }
84
155
  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 ]
156
+ entries: { type: array, items: { type: object, additionalProperties: false, properties: { room: { $ref: '#/$defs/room' }, compatibility: { enum: [ unchecked, compatible, incompatible ] } }, required: [ room, compatibility ] } }
157
+ findings: { type: array, items: { type: object, additionalProperties: false, properties: { room: { $ref: '#/$defs/room' }, finding: { type: string } }, required: [ room, finding ] } }
158
+ required: [ reflected, app, slot ]
88
159
  house-client:
89
160
  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
161
  properties:
91
162
  reflected: { type: string, format: date-time }
92
- client: { type: string, format: uuid }
163
+ client: { $ref: '#/$defs/id' }
93
164
  name: { type: string }
94
165
  kind: { enum: [ browser, headless ] }
95
- connected: { type: string, format: date-time }
166
+ created: { type: string, format: date-time }
96
167
  ended: { type: string, format: date-time }
97
168
  end: { enum: [ revoked ] }
98
- required: [ reflected, client, name, kind, connected ]
169
+ required: [ reflected, client, name, kind, created ]
99
170
  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."
171
+ 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
172
  properties:
102
173
  reflected: { type: string, format: date-time }
103
- environment: { type: string, format: uuid }
104
- label: { type: string }
105
- issued: { type: string, format: date-time }
174
+ environment: { $ref: '#/$defs/id' }
175
+ name: { type: string }
176
+ created: { type: string, format: date-time }
106
177
  revoked: { type: string, format: date-time }
107
178
  reach: { enum: [ all, all_but_private, selected ] }
108
- rooms: { type: array, items: { type: string, pattern: ^(?<room>\\S+)$ } }
179
+ rooms: { type: array, items: { type: object, additionalProperties: false, properties: { room: { $ref: '#/$defs/room' } }, required: [ room ] } }
109
180
  login_code: { enum: [ yes, no ] }
110
- hosting: { enum: [ sandbox, vps, own ] }
181
+ kind: { enum: [ sandbox, vps, own ] }
111
182
  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 } } }
183
+ offered: { type: array, items: { type: string } }
184
+ wanted: { type: array, items: { type: string } }
185
+ 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
186
  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 } }
187
+ transcription: { type: object, additionalProperties: false, properties: { installed: { type: boolean }, failure: { anyOf: [ { type: string, minLength: 1, maxLength: 4096 }, { type: 'null' } ] } }, required: [ installed, failure ] }
117
188
  os: { type: string }
118
189
  kit_release: { type: string }
119
- kit_wire: { type: integer, exclusiveMinimum: 0 }
120
- house_wire: { type: integer, exclusiveMinimum: 0 }
121
190
  form: { enum: [ laptop, desktop, server ] }
122
191
  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+)?)$ }
192
+ budget: { type: string, pattern: ^\\d+(?:\\.\\d+)?$ }
124
193
  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 ]
194
+ ssh: { type: string, pattern: ^root@\\S+$ }
195
+ required: [ reflected, environment, name, created, reach, kind, offered, transcribe ]
128
196
  house-exports:
129
- description: This User's Exports; a ready one names its download page as \`page\`.
197
+ 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
198
  properties:
131
199
  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}))?$' } }
200
+ 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
201
  required: [ reflected ]
134
202
  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."
203
+ 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, its \`kind\` with the header or query parameter \`name\` or the path \`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\` names 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
204
  properties:
137
205
  reflected: { type: string, format: date-time }
138
- account: { type: string, format: uuid }
206
+ external_account: { $ref: '#/$defs/id' }
139
207
  name: { type: string }
140
208
  origin: { type: string, format: uri }
141
- form: { enum: [ bearer, header, query, basic, path ] }
142
- form_name: { type: string }
143
- form_prefix: { type: string }
209
+ form: { type: object, additionalProperties: false, properties: { kind: { enum: [ bearer, header, query, basic, path ] }, name: { type: string }, prefix: { type: string } }, required: [ kind ] }
144
210
  ownership: { enum: [ own, used ] }
145
211
  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 ]
212
+ rooms: { type: array, items: { type: object, additionalProperties: false, properties: { room: { $ref: '#/$defs/room' }, schema_roles: { type: array, items: { type: string } }, suspended: { type: boolean } }, required: [ room, schema_roles, suspended ] } }
213
+ connections: { 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: { $ref: '#/$defs/room' } }, required: [ app, slot, room ] } }
214
+ required: [ reflected, external_account, name, origin, form, ownership ]
149
215
  house-member:
150
216
  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
217
  properties:
152
218
  reflected: { type: string, format: date-time }
153
- user: { type: string, format: uuid }
219
+ user: { $ref: '#/$defs/id' }
154
220
  name: { type: string }
155
221
  about_me: { type: string }
156
222
  required: [ reflected, user, name ]
157
223
  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."
224
+ 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
225
  properties:
160
- notification: { type: string, format: uuid }
226
+ notification: { $ref: '#/$defs/id' }
161
227
  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>.+))$ }
228
+ created: { type: string, format: date-time }
229
+ 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
230
  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 } } }
231
+ share: { $ref: '#/$defs/id' }
232
+ issuer: { type: object, additionalProperties: false, properties: { name: { type: string }, email: { type: string, format: email } }, required: [ name, email ] }
233
+ rooms: { type: array, items: { type: object, additionalProperties: false, properties: { name: { type: string } }, required: [ name ] } }
234
+ 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
235
  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 }
236
+ join_request: { $ref: '#/$defs/id' }
237
+ user: { type: object, additionalProperties: false, properties: { name: { type: string }, email: { type: string, format: email } }, required: [ name, email ] }
238
+ room: { type: object, additionalProperties: false, properties: { room: { $ref: '#/$defs/room' }, name: { type: string } }, minProperties: 1 }
239
+ app: { type: object, additionalProperties: false, properties: { app: { $ref: '#/$defs/app' }, name: { type: string } }, minProperties: 1 }
240
+ binding: { $ref: '#/$defs/id' }
178
241
  slot: { type: string }
179
- room: { type: string }
180
242
  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 ] }
243
+ owner: { type: object, additionalProperties: false, properties: { name: { type: string } }, required: [ name ] }
244
+ caller: { type: object, additionalProperties: false, properties: { user: { $ref: '#/$defs/id' }, name: { type: string } }, required: [ user, name ] }
245
+ ownership_offer: { $ref: '#/$defs/id' }
246
+ offerer: { type: object, additionalProperties: false, properties: { name: { type: string }, email: { type: string, format: email } }, required: [ name, email ] }
247
+ environment: { type: object, additionalProperties: false, properties: { environment: { $ref: '#/$defs/id' }, name: { type: string }, kind: { enum: [ vps, sandbox ] } }, required: [ environment, name ] }
191
248
  reason: { type: string }
192
249
  deadline: { type: string, format: date-time }
193
- operation_id: { type: string, format: uuid }
194
250
  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 } }
251
+ 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
252
  budget: { type: string, pattern: ^\\d+(?:\\.\\d+)?$ }
197
253
  resets_at: { type: string, format: date-time }
198
- grant_id: { type: string, format: uuid }
254
+ grant: { $ref: '#/$defs/id' }
199
255
  category: { type: string }
200
256
  access_started_at: { type: string, format: date-time }
201
257
  access_ended_at: { type: string, format: date-time }
202
258
  systems: { type: array, items: { type: string } }
203
259
  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 }
260
+ routine_request: { $ref: '#/$defs/id' }
261
+ requester: { type: object, additionalProperties: false, properties: { name: { type: string } }, required: [ name ] }
262
+ agent: { type: object, additionalProperties: false, properties: { agent: { $ref: '#/$defs/id' }, name: { type: string } }, required: [ name ] }
263
+ conversation: { $ref: '#/$defs/id' }
264
+ routine: { type: object, additionalProperties: false, properties: { routine: { $ref: '#/$defs/id' }, name: { type: string }, version: { type: integer, minimum: 1 } }, required: [ name ] }
265
+ decliner: { type: object, additionalProperties: false, properties: { name: { type: string } }, required: [ name ] }
213
266
  input: { type: string }
214
- export_id: { type: string, format: uuid }
267
+ export: { $ref: '#/$defs/id' }
215
268
  size_bytes: { type: integer, minimum: 0 }
216
- site_id: { type: string, format: uuid }
217
- site: { type: string }
269
+ site: { type: object, additionalProperties: false, properties: { site: { $ref: '#/$defs/id' }, name: { type: string } }, required: [ site, name ] }
218
270
  address: { type: string, maxLength: 300, format: uri }
219
- to: { type: string }
271
+ to: { type: object, additionalProperties: false, properties: { name: { type: string } }, required: [ name ] }
220
272
  copies: { type: integer, minimum: 0 }
221
273
  bound: { type: integer, minimum: 0 }
222
274
  title: { type: string }
223
275
  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 } }
276
+ 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
277
  path: { type: string, maxLength: 4096, pattern: ^\\/.* }
226
- trigger_id: { type: string, format: uuid }
227
- trigger: { type: string }
278
+ trigger: { type: object, additionalProperties: false, properties: { trigger: { $ref: '#/$defs/id' }, name: { type: string } }, required: [ trigger, name ] }
228
279
  cause: { type: string }
229
- required: [ notification, kind, sent, way_in, subject ]
280
+ required: [ notification, kind, created, way_in, subject ]
230
281
  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.
282
+ 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
283
  properties:
233
284
  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 }
285
+ ownership_offer: { $ref: '#/$defs/id' }
286
+ room: { type: object, additionalProperties: false, properties: { room: { $ref: '#/$defs/room' }, name: { type: string } }, required: [ room, name ] }
287
+ from: { type: object, additionalProperties: false, properties: { name: { type: string } }, required: [ name ] }
238
288
  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
289
  created: { type: string, format: date-time }
240
290
  expires: { type: string, format: date-time }
241
- required: [ reflected, offer, room, room_name, from_name, page, created, expires ]
291
+ required: [ reflected, ownership_offer, room, from, page, created, expires ]
242
292
  house-panel-preferences:
243
293
  description: The panel's preferences at /rooms/private/settings/panel.md. Its own vocabulary is in the body.
244
294
  properties: {}
@@ -254,7 +304,7 @@ house-public-room:
254
304
  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
305
  properties:
256
306
  reflected: { type: string, format: date-time }
257
- room: { type: string, pattern: '^r_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$' }
307
+ room: { $ref: '#/$defs/room' }
258
308
  handle: { type: string, minLength: 6, maxLength: 63, pattern: '^[a-z0-9]+(?:-[a-z0-9]+)*$' }
259
309
  name: { type: string }
260
310
  archived: { type: string, format: date-time }
@@ -263,32 +313,34 @@ house-push-address:
263
313
  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
314
  properties:
265
315
  reflected: { type: string, format: date-time }
266
- push_address: { type: string, format: uuid }
267
- room: { type: string, pattern: '^r_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$' }
316
+ push_address: { $ref: '#/$defs/id' }
317
+ room: { $ref: '#/$defs/room' }
268
318
  source: { type: string }
269
319
  event_header: { type: string }
270
320
  event_json: { type: string }
271
321
  required: [ reflected, push_address, room, source ]
272
322
  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.'
323
+ description: "The Routine Requests of one Room this User reads by Local Read: 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 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
324
  properties:
275
325
  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 ]
326
+ room: { $ref: '#/$defs/room' }
327
+ current: { type: array, items: { $ref: '#/$defs/request' } }
328
+ history: { type: array, items: { $ref: '#/$defs/request' } }
329
+ required: [ reflected, room, current, history ]
279
330
  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. \`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."
331
+ 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. \`read\` is how this User reads the Room, \`mcp\`, \`online\` or \`local\`, 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 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 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
332
  properties:
282
333
  reflected: { type: string, format: date-time }
283
- room: { type: string, pattern: '^r_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$' }
334
+ room: { $ref: '#/$defs/room' }
284
335
  handle: { type: string, minLength: 6, maxLength: 63, pattern: '^[a-z0-9]+(?:-[a-z0-9]+)*$' }
285
336
  name: { type: string }
337
+ my_room: { const: true }
286
338
  membership: { enum: [ owner, member ] }
287
- 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))$' } }
339
+ 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 ] }
288
340
  access: { enum: [ owner, manage, edit, read ] }
289
341
  read: { enum: [ mcp, online, local ] }
290
342
  operations: { type: array, items: { type: string, enum: [ write, delete, export, manageAccess ] } }
291
- owner_name: { type: string }
343
+ owner: { type: object, additionalProperties: false, properties: { name: { type: string } }, required: [ name ] }
292
344
  members: { type: integer, minimum: 0 }
293
345
  triggers: { type: integer, minimum: 0 }
294
346
  published: { enum: [ yes, no ] }
@@ -298,88 +350,82 @@ house-room:
298
350
  created: { type: string, format: date-time }
299
351
  archived: { type: string, format: date-time }
300
352
  public: { type: string, format: date-time }
301
- embedding_profile: { type: string, format: uuid }
302
- embedding_processor: { type: string }
303
353
  policy: { enum: [ On, Off ] }
304
- indexing: { type: array, items: { type: string, pattern: '^(?<path>[^\\t]+)\\t(?<policy>On|Off)$' } }
305
- shared_schema: { type: string, format: uuid }
306
- shared_schema_name: { type: string }
307
- 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 } } }
308
- 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 } } }
309
- 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 } } }
354
+ indexing: { type: array, items: { type: object, additionalProperties: false, properties: { path: { type: string, minLength: 1 }, policy: { enum: [ On, Off ] } }, required: [ path, policy ] } }
355
+ shared_schema: { type: object, additionalProperties: false, properties: { shared_schema: { $ref: '#/$defs/id' }, name: { type: string } }, required: [ shared_schema, name ] }
356
+ 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, read ] }, document: { $ref: '#/$defs/document' }, schema_roles: { type: array, items: { type: string } }, held: { type: object, additionalProperties: false, 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 ] } }, required: [ user, name, owner, email ] } }
357
+ 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' }, 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, additionalProperties: false, properties: { kind: { type: string, enum: [ direct, inherited ] }, namespace: { $ref: '#/$defs/namespace' }, 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 ] } } }, required: [ namespace, read, operations, sources ] } }, direct: { type: array, items: { type: object, additionalProperties: false, properties: { namespace: { $ref: '#/$defs/namespace' }, 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 ] } }, admitted: { type: string, format: date-time }, schema_roles: { type: array, items: { type: string } } }, required: [ user, name, entries, direct, schema_roles ] } }
358
+ 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 ] } }
310
359
  required: [ reflected, room, name, membership, access, admission, created, policy ]
311
360
  house-routine-access:
312
- 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."
361
+ 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\`."
313
362
  properties:
314
363
  reflected: { type: string, format: date-time }
315
- access: { type: string, format: uuid }
316
- routine: { type: string, format: uuid }
317
- routine_name: { type: string }
318
- agent: { type: string, format: uuid }
319
- room: { type: string, pattern: '^r_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$' }
364
+ routine_access: { $ref: '#/$defs/id' }
365
+ routine: { type: object, additionalProperties: false, properties: { routine: { $ref: '#/$defs/id' }, name: { type: string } }, required: [ routine, name ] }
366
+ agent: { $ref: '#/$defs/id' }
367
+ room: { $ref: '#/$defs/room' }
320
368
  invoker_scope: { type: string, enum: [ all_members, selected_users ] }
321
369
  start_scope: { type: string, enum: [ none, all_admitted, selected_users ] }
322
370
  follow_up_scope: { type: string, enum: [ none, all_admitted, selected_users ] }
323
- granted: { type: string, format: date-time }
371
+ created: { type: string, format: date-time }
324
372
  revoked: { type: string, format: date-time }
325
- 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])))$' } }
326
- 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])))$' } }
327
- 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]+))?$' } }
373
+ invokers: { type: array, items: { $ref: '#/$defs/caller' } }
374
+ starters: { type: array, items: { $ref: '#/$defs/caller' } }
375
+ follow_ups: { type: array, items: { type: object, additionalProperties: false, properties: { user: { $ref: '#/$defs/id' }, email: { type: string }, name: { type: string } }, required: [ user ] } }
328
376
  allowance: { type: integer, minimum: 0 }
329
- 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+))?$' } }
377
+ allowances: { type: array, items: { type: object, additionalProperties: false, properties: { user: { $ref: '#/$defs/id' }, room: { $ref: '#/$defs/room' }, allowance: { type: integer, minimum: 0 } }, minProperties: 1 } }
330
378
  mail_allowance: { type: integer, minimum: 0 }
331
- 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+)$' } }
332
- 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]+)$' }
333
- required: [ reflected, access, routine, routine_name, agent, room, invoker_scope, start_scope, follow_up_scope, granted ]
379
+ mail_allowances: { type: array, items: { type: object, additionalProperties: false, properties: { user: { $ref: '#/$defs/id' }, allowance: { type: integer, minimum: 0 } }, required: [ user, allowance ] } }
380
+ last_failure: { type: object, additionalProperties: false, properties: { origin: { enum: [ user, trigger ] }, at: { type: string, format: date-time }, reason: { type: string } }, required: [ origin, at, reason ] }
381
+ required: [ reflected, routine_access, routine, agent, room, invoker_scope, start_scope, follow_up_scope, created ]
334
382
  house-share:
335
- 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.
383
+ 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\` or \`superseded\`, for a Room item the \`read\` 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."
336
384
  properties:
337
385
  reflected: { type: string, format: date-time }
338
- share: { type: string, format: uuid }
386
+ share: { $ref: '#/$defs/id' }
339
387
  share_link: { enum: [ yes, no ] }
340
388
  share_to: { type: string, format: email }
341
- 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]+)$' } }
342
- 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]+)$' } }
343
- 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]+)$' } }
389
+ items: { type: array, items: { type: object, additionalProperties: false, properties: { kind: { enum: [ room, app ] }, name: { type: string }, state: { enum: [ offerable, held, accepted, declined, superseded ] }, read: { enum: [ mcp, online, local ] }, 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 ] } }
390
+ 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 ] } }
391
+ 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 ] } }
344
392
  created: { type: string, format: date-time }
345
393
  expires: { type: string, format: date-time }
346
394
  required: [ reflected, share, share_link, created, expires ]
347
395
  house-share-offer:
348
- 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.
396
+ 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\` or \`superseded\`, for a Room item the \`read\` level it grants and the \`operations\` it grants; 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 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."
349
397
  properties:
350
398
  reflected: { type: string, format: date-time }
351
- share: { type: string, format: uuid }
352
- share_from: { type: string }
353
- issuer_email: { type: string, format: email }
399
+ share: { $ref: '#/$defs/id' }
400
+ from: { type: object, additionalProperties: false, properties: { name: { type: string }, email: { type: string, format: email } }, required: [ name, email ] }
354
401
  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}$' }
355
- 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]+)$' } }
356
- pack: { type: array, items: { type: string, pattern: '^(?<app>[^\\t]+)\\t(?<slot>[a-z0-9]([a-z0-9-]*[a-z0-9])?)\\t(?<filled>[\\s\\S]+)$' } }
402
+ items: { type: array, items: { type: object, additionalProperties: false, properties: { kind: { enum: [ room, app ] }, name: { type: string }, state: { enum: [ offerable, held, accepted, declined, superseded ] }, read: { enum: [ mcp, online, local ] }, 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 ] } }
403
+ 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 ] } }
357
404
  created: { type: string, format: date-time }
358
405
  expires: { type: string, format: date-time }
359
- required: [ reflected, share, share_from, issuer_email, page, created, expires ]
406
+ required: [ reflected, share, from, page, created, expires ]
360
407
  house-site:
361
- 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."
408
+ 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."
362
409
  properties:
363
410
  reflected: { type: string, format: date-time }
364
- site: { type: string, format: uuid }
411
+ site: { $ref: '#/$defs/id' }
365
412
  name: { type: string }
366
413
  address: { type: string, format: uri }
367
414
  addresses: { type: array, items: { type: string, format: uri } }
368
415
  primary_address: { type: string, format: uri }
369
- domains: { type: array, items: { type: string, pattern: '^(?<host>\\S+)\\t(?<state>pending|active|failed)\\t(?<dns_target>\\S+)(?:\\t(?<reason>[\\s\\S]+))?$' } }
370
- app: { type: string, format: uuid }
371
- app_ref: { type: string, pattern: '^a_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$' }
416
+ 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 ] } }
417
+ app: { $ref: '#/$defs/app' }
372
418
  tab_icon_light: { type: string, pattern: ^data:image\\/ }
373
419
  tab_icon_dark: { type: string, pattern: ^data:image\\/ }
374
420
  tab_icon_colours: { type: array, items: { type: string, pattern: '^#[0-9a-f]{6}$' } }
375
421
  tab_icon_blend: { enum: [ linear, radial ] }
376
422
  tab_icon_angle: { type: integer, minimum: 0, maximum: 359 }
377
- 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+)$' }
423
+ release: { type: object, additionalProperties: false, properties: { release: { $ref: '#/$defs/id' }, sequence: { type: integer, exclusiveMinimum: 0 } }, required: [ release, sequence ] }
378
424
  title: { type: string }
379
425
  description: { type: string }
380
426
  screenshot: { type: string, format: uri }
381
- google_analytics_id: { type: string, pattern: '^G-[A-Z0-9]{1,32}$' }
382
- intake_room: { type: string, pattern: '^r_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$' }
427
+ analytics: { type: string, pattern: '^G-[A-Z0-9]{1,32}$' }
428
+ intake_room: { type: object, additionalProperties: false, properties: { room: { $ref: '#/$defs/room' } }, required: [ room ] }
383
429
  external_origins: { type: array, items: { type: string, format: uri } }
384
430
  disabled: { enum: [ yes, no ] }
385
431
  disabled_reason: { type: string }
@@ -388,10 +434,10 @@ house-site:
388
434
  suspended: { enum: [ yes, no ] }
389
435
  suspended_reason: { type: string, enum: [ full_house_required, public_delivery_limit ] }
390
436
  public_overage: { enum: [ on, off ] }
391
- publication: { type: string, format: uuid }
437
+ publication: { $ref: '#/$defs/id' }
392
438
  acts: { type: array, items: { type: string, enum: [ unpublish, republish ] } }
393
439
  indexing: { enum: [ yes, no ] }
394
- entry_fallback: { type: string, pattern: ^(?<cause>over_bound|query_refused|unavailable)\\t(?<route>\\S+)\\t(?<recorded>\\S+)$ }
440
+ 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 ] }
395
441
  created: { type: string, format: date-time }
396
442
  new_browsers: { type: integer, minimum: 0 }
397
443
  submissions: { type: integer, minimum: 0 }
@@ -399,16 +445,40 @@ house-site:
399
445
  image_copies: { type: integer, minimum: 0 }
400
446
  image_copy_bound: { type: integer, minimum: 0 }
401
447
  image_copy_limit_reached: { enum: [ yes, no ] }
402
- 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))$' } }
403
- 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]+)$' } }
404
- 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 ]
448
+ 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 ] } }
449
+ 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 ] } }
450
+ 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 ]
451
+ house-trigger:
452
+ 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\`. Whether an action's target holds is not written: it follows from the Room's members and the Routine Access."
453
+ properties:
454
+ reflected: { type: string, format: date-time }
455
+ trigger: { $ref: '#/$defs/id' }
456
+ description: { type: string }
457
+ condition:
458
+ anyOf:
459
+ - { 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 ] }
460
+ - { 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 ] }
461
+ - { type: object, additionalProperties: false, properties: { on: { const: items }, source: { type: string }, address: { type: string }, match: { $ref: '#/$defs/trigger_test' } }, required: [ on ] }
462
+ - { type: object, additionalProperties: false, properties: { on: { const: clock }, cron: { type: string }, time_zone: { type: string } }, required: [ on, cron, time_zone ] }
463
+ - { 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 ] }
464
+ actions:
465
+ type: array
466
+ items:
467
+ anyOf:
468
+ - { 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 ] }
469
+ - { type: object, additionalProperties: false, properties: { kind: { const: routine }, enabled: { type: boolean }, routine_access: { $ref: '#/$defs/id' }, payload: { type: string } }, required: [ kind, enabled, payload ] }
470
+ enabled: { type: boolean }
471
+ paused_by: { enum: [ types ] }
472
+ creator: { type: object, additionalProperties: false, properties: { user: { $ref: '#/$defs/id' }, name: { type: string } }, required: [ user, name ] }
473
+ created: { type: string, format: date-time }
474
+ required: [ reflected, trigger, description, condition, actions, enabled, creator, created ]
405
475
  house-web-wizard:
406
- 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."
476
+ 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."
407
477
  properties:
408
478
  reflected: { type: string, format: date-time }
409
- wizard: { type: string, format: uuid }
410
- environment: { type: string }
479
+ web_wizard: { $ref: '#/$defs/id' }
480
+ environment: { type: object, additionalProperties: false, properties: { environment: { $ref: '#/$defs/id' }, name: { type: string } }, required: [ environment, name ] }
411
481
  state: { enum: [ waiting, running, finished, failed, cancelled, lapsed ] }
412
482
  exit_code: { type: integer }
413
- required: [ reflected, wizard, environment, state ]
483
+ required: [ reflected, web_wizard, environment, state ]
414
484
  `;