@agentshouse/mdruntime-adapter 0.1.0-c392f202fd8ec → 0.1.0-c39809d14a99f
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.
- package/dist/actions.d.ts +2 -163
- package/dist/actions.d.ts.map +1 -1
- package/dist/actions.js +7 -222
- package/dist/adapter.d.ts.map +1 -1
- package/dist/adapter.js +65 -70
- package/dist/chunks.d.ts +38 -0
- package/dist/chunks.d.ts.map +1 -0
- package/dist/chunks.js +247 -0
- package/dist/discovery.d.ts +10 -3
- package/dist/discovery.d.ts.map +1 -1
- package/dist/discovery.js +35 -8
- package/dist/history.d.ts +12 -0
- package/dist/history.d.ts.map +1 -0
- package/dist/history.js +92 -0
- package/dist/house-model.d.ts +282 -2593
- package/dist/house-model.d.ts.map +1 -1
- package/dist/house-model.js +153 -1419
- package/dist/index.d.ts +6 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -3
- package/dist/model.d.ts +5 -7
- package/dist/model.d.ts.map +1 -1
- package/dist/model.js +30 -18
- package/dist/read.d.ts +19 -9
- package/dist/read.d.ts.map +1 -1
- package/dist/read.js +46 -143
- package/dist/room-types.d.ts +2 -2
- package/dist/room-types.d.ts.map +1 -1
- package/dist/room-types.js +6 -9
- package/dist/search.d.ts +5 -0
- package/dist/search.d.ts.map +1 -0
- package/dist/search.js +47 -0
- package/dist/site.d.ts.map +1 -1
- package/dist/site.js +34 -42
- package/dist/space-schema.d.ts +7 -0
- package/dist/space-schema.d.ts.map +1 -0
- package/dist/space-schema.js +18 -0
- package/dist/stream.d.ts +6 -4
- package/dist/stream.d.ts.map +1 -1
- package/dist/stream.js +119 -20
- package/dist/transport.d.ts +20 -11
- package/dist/transport.d.ts.map +1 -1
- package/dist/transport.js +5 -1
- package/dist/write.d.ts +2 -1
- package/dist/write.d.ts.map +1 -1
- package/dist/write.js +8 -23
- package/package.json +2 -2
- package/dist/part.d.ts +0 -14
- package/dist/part.d.ts.map +0 -1
- package/dist/part.js +0 -90
- package/dist/room-stream.d.ts +0 -19
- package/dist/room-stream.d.ts.map +0 -1
- package/dist/room-stream.js +0 -57
package/dist/house-model.js
CHANGED
|
@@ -26,509 +26,14 @@ export const HOUSE_MODEL_DECLARATION = {
|
|
|
26
26
|
maxLength: 512,
|
|
27
27
|
pattern: '^(?:a_[A-Za-z0-9._-]+(?:\\/source)?|r_[A-Za-z0-9._-]+(?:\\/(?:settings|settings\\/schema|settings\\/model|settings\\/indexing|content))?)$',
|
|
28
28
|
},
|
|
29
|
-
request: {
|
|
30
|
-
description: 'One Routine Request of a Room.',
|
|
31
|
-
type: 'object',
|
|
32
|
-
additionalProperties: false,
|
|
33
|
-
properties: {
|
|
34
|
-
routine_request: { $ref: '#/$defs/id' },
|
|
35
|
-
conversation: { $ref: '#/$defs/id' },
|
|
36
|
-
origin: { enum: ['user', 'trigger'] },
|
|
37
|
-
state: {
|
|
38
|
-
enum: [
|
|
39
|
-
'awaiting_approval',
|
|
40
|
-
'started',
|
|
41
|
-
'finished',
|
|
42
|
-
'not_started',
|
|
43
|
-
'withdrawn_by_author',
|
|
44
|
-
'withdrawn_admission',
|
|
45
|
-
'declined',
|
|
46
|
-
],
|
|
47
|
-
},
|
|
48
|
-
target: {
|
|
49
|
-
type: 'object',
|
|
50
|
-
additionalProperties: false,
|
|
51
|
-
properties: { user: { $ref: '#/$defs/id' } },
|
|
52
|
-
required: ['user'],
|
|
53
|
-
},
|
|
54
|
-
record: { $ref: '#/$defs/id' },
|
|
55
|
-
routine_access: { $ref: '#/$defs/id' },
|
|
56
|
-
agent: { $ref: '#/$defs/id' },
|
|
57
|
-
routine: {
|
|
58
|
-
type: 'object',
|
|
59
|
-
additionalProperties: false,
|
|
60
|
-
properties: {
|
|
61
|
-
name: { type: 'string' },
|
|
62
|
-
version: { type: 'integer', exclusiveMinimum: 0 },
|
|
63
|
-
},
|
|
64
|
-
minProperties: 1,
|
|
65
|
-
},
|
|
66
|
-
approved: { type: 'string', format: 'date-time' },
|
|
67
|
-
approved_by: {
|
|
68
|
-
type: 'object',
|
|
69
|
-
additionalProperties: false,
|
|
70
|
-
properties: { user: { $ref: '#/$defs/id' } },
|
|
71
|
-
required: ['user'],
|
|
72
|
-
},
|
|
73
|
-
settled_by: {
|
|
74
|
-
type: 'object',
|
|
75
|
-
additionalProperties: false,
|
|
76
|
-
properties: { user: { $ref: '#/$defs/id' } },
|
|
77
|
-
required: ['user'],
|
|
78
|
-
},
|
|
79
|
-
failure_category: {
|
|
80
|
-
enum: [
|
|
81
|
-
'routine_access_not_found',
|
|
82
|
-
'routine_retired',
|
|
83
|
-
'target_agent_unavailable',
|
|
84
|
-
'agent_unavailable',
|
|
85
|
-
'admission_lapsed',
|
|
86
|
-
],
|
|
87
|
-
},
|
|
88
|
-
created: { type: 'string', format: 'date-time' },
|
|
89
|
-
activated: { type: 'string', format: 'date-time' },
|
|
90
|
-
settled: { type: 'string', format: 'date-time' },
|
|
91
|
-
environment_starting: { const: true },
|
|
92
|
-
undelivered: { const: true },
|
|
93
|
-
result: { type: 'string' },
|
|
94
|
-
url: { type: 'string', format: 'uri' },
|
|
95
|
-
},
|
|
96
|
-
required: ['routine_request', 'origin', 'state', 'target', 'created'],
|
|
97
|
-
},
|
|
98
|
-
caller: {
|
|
99
|
-
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.",
|
|
100
|
-
type: 'object',
|
|
101
|
-
additionalProperties: false,
|
|
102
|
-
properties: {
|
|
103
|
-
user: { $ref: '#/$defs/id' },
|
|
104
|
-
email: { type: 'string' },
|
|
105
|
-
name: { type: 'string' },
|
|
106
|
-
room: { $ref: '#/$defs/room' },
|
|
107
|
-
},
|
|
108
|
-
minProperties: 1,
|
|
109
|
-
},
|
|
110
|
-
trigger_test: {
|
|
111
|
-
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.',
|
|
112
|
-
type: 'object',
|
|
113
|
-
additionalProperties: true,
|
|
114
|
-
},
|
|
115
|
-
trigger_values: {
|
|
116
|
-
type: 'array',
|
|
117
|
-
items: { anyOf: [{ type: 'string' }, { type: 'number' }, { type: 'boolean' }] },
|
|
118
|
-
},
|
|
119
|
-
trigger_scope: {
|
|
120
|
-
description: 'The documents a Trigger condition watches, by `type`, by `folder` or one document at its `path`, which `create_trigger` takes as `document`.',
|
|
121
|
-
type: 'object',
|
|
122
|
-
additionalProperties: false,
|
|
123
|
-
properties: {
|
|
124
|
-
type: { type: 'string' },
|
|
125
|
-
folder: { type: 'string' },
|
|
126
|
-
path: { type: 'string' },
|
|
127
|
-
},
|
|
128
|
-
minProperties: 1,
|
|
129
|
-
maxProperties: 1,
|
|
130
|
-
},
|
|
131
|
-
},
|
|
132
|
-
'house-account': {
|
|
133
|
-
description: "The User's own identifier as `user`, their registration as `created`, their email verification and chosen language, every notification group with the channels it now reaches as `notifications`, `telegram: available` while the Building runs its Telegram bots and no Telegram account is linked to it, `linked` while one is, `started` once that account has also pressed Start in the Inbox bot, `meta`, the Building's Meta app as `application` and its signup configuration as `configuration` while it offers Connect Meta's signup, or `keys` while a business connects its own Meta app by its keys, `tiktok: available` while it offers Connect TikTok, `building: administrator` while the User is one of the Building's administrators, `full_house: true` while the User holds Full House, and the Building's caps of an App function's run as `function_limits`, its time in milliseconds as `time_ms`, its memory in bytes as `memory_bytes` and its external calls as `external_calls`.",
|
|
134
|
-
properties: {
|
|
135
|
-
reflected: { type: 'string', format: 'date-time' },
|
|
136
|
-
user: { $ref: '#/$defs/id' },
|
|
137
|
-
email_verified: { type: 'string', format: 'date-time' },
|
|
138
|
-
language: { enum: ['en'] },
|
|
139
|
-
notifications: {
|
|
140
|
-
type: 'array',
|
|
141
|
-
items: {
|
|
142
|
-
type: 'object',
|
|
143
|
-
additionalProperties: false,
|
|
144
|
-
properties: {
|
|
145
|
-
group: { type: 'string' },
|
|
146
|
-
channels: { type: 'array', items: { type: 'string' } },
|
|
147
|
-
},
|
|
148
|
-
required: ['group', 'channels'],
|
|
149
|
-
},
|
|
150
|
-
},
|
|
151
|
-
created: { type: 'string', format: 'date-time' },
|
|
152
|
-
telegram: { enum: ['available', 'linked', 'started'] },
|
|
153
|
-
meta: {
|
|
154
|
-
anyOf: [
|
|
155
|
-
{ const: 'keys' },
|
|
156
|
-
{
|
|
157
|
-
type: 'object',
|
|
158
|
-
additionalProperties: false,
|
|
159
|
-
properties: {
|
|
160
|
-
application: { type: 'string', pattern: '^\\d{1,32}$' },
|
|
161
|
-
configuration: { type: 'string', pattern: '^\\d{1,32}$' },
|
|
162
|
-
},
|
|
163
|
-
required: ['application', 'configuration'],
|
|
164
|
-
},
|
|
165
|
-
],
|
|
166
|
-
},
|
|
167
|
-
tiktok: { enum: ['available'] },
|
|
168
|
-
building: { enum: ['administrator'] },
|
|
169
|
-
full_house: { const: true },
|
|
170
|
-
function_limits: {
|
|
171
|
-
type: 'object',
|
|
172
|
-
additionalProperties: false,
|
|
173
|
-
properties: {
|
|
174
|
-
// A Function run's time cap is the Building's, so the model only asks it be positive.
|
|
175
|
-
time_ms: { type: 'integer', exclusiveMinimum: 0 },
|
|
176
|
-
memory_bytes: { type: 'integer', exclusiveMinimum: 0 },
|
|
177
|
-
external_calls: { type: 'integer', exclusiveMinimum: 0 },
|
|
178
|
-
},
|
|
179
|
-
required: ['time_ms', 'memory_bytes', 'external_calls'],
|
|
180
|
-
},
|
|
181
|
-
},
|
|
182
|
-
required: [
|
|
183
|
-
'reflected',
|
|
184
|
-
'user',
|
|
185
|
-
'email_verified',
|
|
186
|
-
'notifications',
|
|
187
|
-
'created',
|
|
188
|
-
'function_limits',
|
|
189
|
-
],
|
|
190
|
-
},
|
|
191
|
-
'house-agent': {
|
|
192
|
-
description: 'One registered Agent this User owns, with the `profile` and `environment` it binds, when it was `created` and, once it is, `retired`.',
|
|
193
|
-
properties: {
|
|
194
|
-
reflected: { type: 'string', format: 'date-time' },
|
|
195
|
-
agent: { $ref: '#/$defs/id' },
|
|
196
|
-
name: { type: 'string' },
|
|
197
|
-
profile: { $ref: '#/$defs/id' },
|
|
198
|
-
environment: { $ref: '#/$defs/id' },
|
|
199
|
-
launch_directory: { type: 'string' },
|
|
200
|
-
created: { type: 'string', format: 'date-time' },
|
|
201
|
-
retired: { type: 'string', format: 'date-time' },
|
|
202
|
-
},
|
|
203
|
-
required: [
|
|
204
|
-
'reflected',
|
|
205
|
-
'agent',
|
|
206
|
-
'name',
|
|
207
|
-
'profile',
|
|
208
|
-
'environment',
|
|
209
|
-
'launch_directory',
|
|
210
|
-
'created',
|
|
211
|
-
],
|
|
212
|
-
},
|
|
213
|
-
'house-agent-profile': {
|
|
214
|
-
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.',
|
|
215
|
-
properties: {
|
|
216
|
-
reflected: { type: 'string', format: 'date-time' },
|
|
217
|
-
profile: { $ref: '#/$defs/id' },
|
|
218
|
-
name: { type: 'string' },
|
|
219
|
-
revision: { type: 'integer', minimum: 0 },
|
|
220
|
-
adapter_kind: { type: 'string' },
|
|
221
|
-
model: { type: 'string' },
|
|
222
|
-
effort: { type: 'string' },
|
|
223
|
-
mode: { type: 'string' },
|
|
224
|
-
arguments: { type: 'array', items: { type: 'string' } },
|
|
225
|
-
},
|
|
226
|
-
required: ['reflected', 'profile', 'name', 'revision'],
|
|
227
|
-
},
|
|
228
|
-
'house-app': {
|
|
229
|
-
description: "One App this User owns, holds or installed, `ownership` naming whether it is its own or one it holds, its `owner` by `name` when another User owns it, and `my_app` `true` on this User's My App alone, with the path of its window on the control origin as `address`, its tab icon for a light and for a dark appearance as image data addresses with, while the icon is generated, its one to four colours, blend and angle, its running release as `latest_release` by `release` and `sequence`, with the external origins it declares as `external_origins`, whether its code reaches this User's conversations as `conversations`, the Room slots it declares in order as `room_slots`, each `slot` with its `access` and `types`, and the names of the App functions it declares in order as `functions`, each installation this User holds, and every User who holds the App as `holders`, this User and its owner included, by `user`, `name` and `email`. Each installation entry names the `installation`, the App's running `release` and when it was installed as `created`. Each features entry names, for an App this User does not own, a `feature`, a browser feature, a House model type or a House act its release declares, and its `consent`, `allowed` or `denied` the first time the App asked; a feature never asked is absent. `features_version` is the version of this User's latest consent change for the App.",
|
|
230
|
-
properties: {
|
|
231
|
-
reflected: { type: 'string', format: 'date-time' },
|
|
232
|
-
app: { $ref: '#/$defs/app' },
|
|
233
|
-
address: {
|
|
234
|
-
type: 'string',
|
|
235
|
-
pattern: '^\\/app\\/a_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$',
|
|
236
|
-
},
|
|
237
|
-
name: { type: 'string' },
|
|
238
|
-
ownership: { enum: ['own', 'held'] },
|
|
239
|
-
owner: {
|
|
240
|
-
type: 'object',
|
|
241
|
-
additionalProperties: false,
|
|
242
|
-
properties: { name: { type: 'string' } },
|
|
243
|
-
required: ['name'],
|
|
244
|
-
},
|
|
245
|
-
my_app: { const: true },
|
|
246
|
-
created: { type: 'string', format: 'date-time' },
|
|
247
|
-
tab_icon_light: { type: 'string', pattern: '^data:image\\/' },
|
|
248
|
-
tab_icon_dark: { type: 'string', pattern: '^data:image\\/' },
|
|
249
|
-
tab_icon_colours: { type: 'array', items: { type: 'string', pattern: '^#[0-9a-f]{6}$' } },
|
|
250
|
-
tab_icon_blend: { enum: ['linear', 'radial'] },
|
|
251
|
-
tab_icon_angle: { type: 'integer', minimum: 0, maximum: 359 },
|
|
252
|
-
latest_release: {
|
|
253
|
-
type: 'object',
|
|
254
|
-
additionalProperties: false,
|
|
255
|
-
properties: {
|
|
256
|
-
release: { $ref: '#/$defs/id' },
|
|
257
|
-
sequence: { type: 'integer', exclusiveMinimum: 0 },
|
|
258
|
-
},
|
|
259
|
-
required: ['release', 'sequence'],
|
|
260
|
-
},
|
|
261
|
-
external_origins: { type: 'array', items: { type: 'string', format: 'uri' } },
|
|
262
|
-
conversations: { enum: ['yes', 'no'] },
|
|
263
|
-
room_slots: {
|
|
264
|
-
type: 'array',
|
|
265
|
-
items: {
|
|
266
|
-
type: 'object',
|
|
267
|
-
additionalProperties: false,
|
|
268
|
-
properties: {
|
|
269
|
-
slot: { type: 'string' },
|
|
270
|
-
access: { enum: ['read', 'write'] },
|
|
271
|
-
types: { type: 'array', items: { type: 'string' } },
|
|
272
|
-
},
|
|
273
|
-
required: ['slot', 'access', 'types'],
|
|
274
|
-
},
|
|
275
|
-
},
|
|
276
|
-
functions: { type: 'array', items: { type: 'string' } },
|
|
277
|
-
installations: {
|
|
278
|
-
type: 'array',
|
|
279
|
-
items: {
|
|
280
|
-
type: 'object',
|
|
281
|
-
additionalProperties: false,
|
|
282
|
-
properties: {
|
|
283
|
-
installation: { $ref: '#/$defs/id' },
|
|
284
|
-
release: { $ref: '#/$defs/id' },
|
|
285
|
-
created: { type: 'string', format: 'date-time' },
|
|
286
|
-
},
|
|
287
|
-
required: ['installation', 'release', 'created'],
|
|
288
|
-
},
|
|
289
|
-
},
|
|
290
|
-
holders: {
|
|
291
|
-
type: 'array',
|
|
292
|
-
items: {
|
|
293
|
-
type: 'object',
|
|
294
|
-
additionalProperties: false,
|
|
295
|
-
properties: {
|
|
296
|
-
user: { $ref: '#/$defs/id' },
|
|
297
|
-
name: { type: 'string' },
|
|
298
|
-
email: { type: 'string' },
|
|
299
|
-
},
|
|
300
|
-
required: ['user', 'name', 'email'],
|
|
301
|
-
},
|
|
302
|
-
},
|
|
303
|
-
features: {
|
|
304
|
-
type: 'array',
|
|
305
|
-
items: {
|
|
306
|
-
type: 'object',
|
|
307
|
-
additionalProperties: false,
|
|
308
|
-
properties: { feature: { type: 'string' }, consent: { enum: ['allowed', 'denied'] } },
|
|
309
|
-
required: ['feature', 'consent'],
|
|
310
|
-
},
|
|
311
|
-
},
|
|
312
|
-
features_version: { type: 'integer', exclusiveMinimum: 0 },
|
|
313
|
-
},
|
|
314
|
-
required: ['reflected', 'app', 'address', 'name', 'ownership', 'created'],
|
|
315
29
|
},
|
|
316
30
|
'house-app-preferences': {
|
|
317
31
|
description: "An App's preferences. Its own vocabulary is in the body.",
|
|
318
32
|
properties: { app: { $ref: '#/$defs/app' } },
|
|
319
33
|
required: ['app'],
|
|
320
34
|
},
|
|
321
|
-
'house-app-room-binding': {
|
|
322
|
-
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.",
|
|
323
|
-
properties: {
|
|
324
|
-
reflected: { type: 'string', format: 'date-time' },
|
|
325
|
-
app: { $ref: '#/$defs/app' },
|
|
326
|
-
slot: { type: 'string', pattern: '^[a-z0-9]([a-z0-9-]*[a-z0-9])?$' },
|
|
327
|
-
types: { type: 'array', items: { type: 'string' } },
|
|
328
|
-
slot_access: { enum: ['read', 'write'] },
|
|
329
|
-
shared_schema: {
|
|
330
|
-
type: 'object',
|
|
331
|
-
additionalProperties: false,
|
|
332
|
-
properties: {
|
|
333
|
-
shared_schema: { $ref: '#/$defs/id' },
|
|
334
|
-
compatibility: { enum: ['unchecked', 'compatible', 'incompatible'] },
|
|
335
|
-
findings: { type: 'array', items: { type: 'string' } },
|
|
336
|
-
},
|
|
337
|
-
required: ['shared_schema', 'compatibility', 'findings'],
|
|
338
|
-
},
|
|
339
|
-
rooms: { enum: ['all', 'all_but_private'] },
|
|
340
|
-
left_out: { type: 'integer', minimum: 0 },
|
|
341
|
-
entries: {
|
|
342
|
-
type: 'array',
|
|
343
|
-
items: {
|
|
344
|
-
type: 'object',
|
|
345
|
-
additionalProperties: false,
|
|
346
|
-
properties: {
|
|
347
|
-
room: { $ref: '#/$defs/room' },
|
|
348
|
-
compatibility: { enum: ['unchecked', 'compatible', 'incompatible'] },
|
|
349
|
-
},
|
|
350
|
-
required: ['room', 'compatibility'],
|
|
351
|
-
},
|
|
352
|
-
},
|
|
353
|
-
findings: {
|
|
354
|
-
type: 'array',
|
|
355
|
-
items: {
|
|
356
|
-
type: 'object',
|
|
357
|
-
additionalProperties: false,
|
|
358
|
-
properties: { room: { $ref: '#/$defs/room' }, finding: { type: 'string' } },
|
|
359
|
-
required: ['room', 'finding'],
|
|
360
|
-
},
|
|
361
|
-
},
|
|
362
|
-
},
|
|
363
|
-
required: ['reflected', 'app', 'slot'],
|
|
364
|
-
},
|
|
365
|
-
'house-client': {
|
|
366
|
-
description: 'One MCP client this User authorized, named as it was created. Its last use and whether its credentials expired are read on request.',
|
|
367
|
-
properties: {
|
|
368
|
-
reflected: { type: 'string', format: 'date-time' },
|
|
369
|
-
client: { $ref: '#/$defs/id' },
|
|
370
|
-
name: { type: 'string' },
|
|
371
|
-
kind: { enum: ['browser', 'headless'] },
|
|
372
|
-
created: { type: 'string', format: 'date-time' },
|
|
373
|
-
ended: { type: 'string', format: 'date-time' },
|
|
374
|
-
end: { enum: ['revoked'] },
|
|
375
|
-
},
|
|
376
|
-
required: ['reflected', 'client', 'name', 'kind', 'created'],
|
|
377
|
-
},
|
|
378
|
-
'house-environment': {
|
|
379
|
-
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.",
|
|
380
|
-
properties: {
|
|
381
|
-
reflected: { type: 'string', format: 'date-time' },
|
|
382
|
-
environment: { $ref: '#/$defs/id' },
|
|
383
|
-
name: { type: 'string' },
|
|
384
|
-
created: { type: 'string', format: 'date-time' },
|
|
385
|
-
revoked: { type: 'string', format: 'date-time' },
|
|
386
|
-
reach: { enum: ['all', 'all_but_private', 'selected'] },
|
|
387
|
-
rooms: {
|
|
388
|
-
type: 'array',
|
|
389
|
-
items: {
|
|
390
|
-
type: 'object',
|
|
391
|
-
additionalProperties: false,
|
|
392
|
-
properties: { room: { $ref: '#/$defs/room' } },
|
|
393
|
-
required: ['room'],
|
|
394
|
-
},
|
|
395
|
-
},
|
|
396
|
-
login_code: { enum: ['yes', 'no'] },
|
|
397
|
-
kind: { enum: ['sandbox', 'vps', 'own'] },
|
|
398
|
-
lifecycle: { enum: ['provisioning', 'starting', 'available', 'stopped', 'failed'] },
|
|
399
|
-
offered: { type: 'array', items: { type: 'string' } },
|
|
400
|
-
wanted: { type: 'array', items: { type: 'string' } },
|
|
401
|
-
agents: {
|
|
402
|
-
type: 'array',
|
|
403
|
-
items: {
|
|
404
|
-
type: 'object',
|
|
405
|
-
additionalProperties: false,
|
|
406
|
-
properties: {
|
|
407
|
-
kind: { type: 'string', minLength: 1, maxLength: 64 },
|
|
408
|
-
version: { anyOf: [{ type: 'string', minLength: 1, maxLength: 64 }, { type: 'null' }] },
|
|
409
|
-
minimum: {
|
|
410
|
-
description: "Present only for a CLI below its adapter's minimum version: that minimum.",
|
|
411
|
-
type: 'string',
|
|
412
|
-
minLength: 1,
|
|
413
|
-
maxLength: 64,
|
|
414
|
-
},
|
|
415
|
-
failure: {
|
|
416
|
-
anyOf: [{ type: 'string', minLength: 1, maxLength: 4096 }, { type: 'null' }],
|
|
417
|
-
},
|
|
418
|
-
installing: {
|
|
419
|
-
description: 'Present only while the Kit installs the CLI, whose version and failure are then null.',
|
|
420
|
-
type: 'boolean',
|
|
421
|
-
const: true,
|
|
422
|
-
},
|
|
423
|
-
signed_in: { type: 'boolean' },
|
|
424
|
-
models: {
|
|
425
|
-
maxItems: 256,
|
|
426
|
-
type: 'array',
|
|
427
|
-
items: {
|
|
428
|
-
type: 'object',
|
|
429
|
-
additionalProperties: false,
|
|
430
|
-
properties: {
|
|
431
|
-
model: { type: 'string', minLength: 1 },
|
|
432
|
-
efforts: { maxItems: 32, type: 'array', items: { type: 'string', minLength: 1 } },
|
|
433
|
-
},
|
|
434
|
-
required: ['model', 'efforts'],
|
|
435
|
-
},
|
|
436
|
-
},
|
|
437
|
-
modes: {
|
|
438
|
-
maxItems: 32,
|
|
439
|
-
type: 'array',
|
|
440
|
-
items: {
|
|
441
|
-
type: 'object',
|
|
442
|
-
additionalProperties: false,
|
|
443
|
-
properties: {
|
|
444
|
-
mode: { type: 'string', minLength: 1 },
|
|
445
|
-
name: { type: 'string', minLength: 1, maxLength: 128 },
|
|
446
|
-
},
|
|
447
|
-
required: ['mode', 'name'],
|
|
448
|
-
},
|
|
449
|
-
},
|
|
450
|
-
full_access: { anyOf: [{ type: 'string', minLength: 1 }, { type: 'null' }] },
|
|
451
|
-
},
|
|
452
|
-
required: ['kind', 'version', 'failure', 'signed_in', 'models', 'modes', 'full_access'],
|
|
453
|
-
},
|
|
454
|
-
},
|
|
455
|
-
transcribe: { enum: ['on', 'off'] },
|
|
456
|
-
transcription: {
|
|
457
|
-
type: 'object',
|
|
458
|
-
additionalProperties: false,
|
|
459
|
-
properties: {
|
|
460
|
-
installed: { type: 'boolean' },
|
|
461
|
-
failure: { anyOf: [{ type: 'string', minLength: 1, maxLength: 4096 }, { type: 'null' }] },
|
|
462
|
-
},
|
|
463
|
-
required: ['installed', 'failure'],
|
|
464
|
-
},
|
|
465
|
-
os: { type: 'string' },
|
|
466
|
-
kit_release: { type: 'string' },
|
|
467
|
-
form: { enum: ['laptop', 'desktop', 'server'] },
|
|
468
|
-
failed: {
|
|
469
|
-
enum: [
|
|
470
|
-
'provisioning_failed',
|
|
471
|
-
'bootstrap_timeout',
|
|
472
|
-
'provider_capacity',
|
|
473
|
-
'provider_unavailable',
|
|
474
|
-
'provider_removed',
|
|
475
|
-
'placement_conflict',
|
|
476
|
-
'placement_intervention',
|
|
477
|
-
'environment_authority_unavailable',
|
|
478
|
-
],
|
|
479
|
-
},
|
|
480
|
-
budget: { type: 'string', pattern: '^\\d+(?:\\.\\d+)?$' },
|
|
481
|
-
budget_spent: { enum: ['yes', 'no'] },
|
|
482
|
-
ssh: { type: 'string', pattern: '^root@\\S+$' },
|
|
483
|
-
},
|
|
484
|
-
required: [
|
|
485
|
-
'reflected',
|
|
486
|
-
'environment',
|
|
487
|
-
'name',
|
|
488
|
-
'created',
|
|
489
|
-
'reach',
|
|
490
|
-
'kind',
|
|
491
|
-
'offered',
|
|
492
|
-
'transcribe',
|
|
493
|
-
],
|
|
494
|
-
},
|
|
495
|
-
'house-exports': {
|
|
496
|
-
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`.",
|
|
497
|
-
properties: {
|
|
498
|
-
reflected: { type: 'string', format: 'date-time' },
|
|
499
|
-
exports: {
|
|
500
|
-
type: 'array',
|
|
501
|
-
items: {
|
|
502
|
-
type: 'object',
|
|
503
|
-
additionalProperties: false,
|
|
504
|
-
properties: {
|
|
505
|
-
export: { $ref: '#/$defs/id' },
|
|
506
|
-
status: { enum: ['queued', 'running', 'ready', 'failed'] },
|
|
507
|
-
created: { type: 'string', format: 'date-time' },
|
|
508
|
-
expires: { type: 'string', format: 'date-time' },
|
|
509
|
-
page: {
|
|
510
|
-
type: 'string',
|
|
511
|
-
pattern: '^\\/exports\\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$',
|
|
512
|
-
},
|
|
513
|
-
},
|
|
514
|
-
required: ['export', 'status', 'created'],
|
|
515
|
-
},
|
|
516
|
-
},
|
|
517
|
-
},
|
|
518
|
-
required: ['reflected'],
|
|
519
|
-
},
|
|
520
|
-
'house-member': {
|
|
521
|
-
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.",
|
|
522
|
-
properties: {
|
|
523
|
-
reflected: { type: 'string', format: 'date-time' },
|
|
524
|
-
user: { $ref: '#/$defs/id' },
|
|
525
|
-
name: { type: 'string' },
|
|
526
|
-
about_me: { type: 'string' },
|
|
527
|
-
},
|
|
528
|
-
required: ['reflected', 'user', 'name'],
|
|
529
|
-
},
|
|
530
35
|
'house-notification': {
|
|
531
|
-
description: "One kept
|
|
36
|
+
description: "One kept 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` is when the User opened it or marked it read, on any device: the one field House adds after delivery.",
|
|
532
37
|
properties: {
|
|
533
38
|
notification: { $ref: '#/$defs/id' },
|
|
534
39
|
kind: {
|
|
@@ -537,1006 +42,208 @@ export const HOUSE_MODEL_DECLARATION = {
|
|
|
537
42
|
'share-offer',
|
|
538
43
|
'join-request',
|
|
539
44
|
'join-request-approved',
|
|
540
|
-
'app-room-binding-incompatible',
|
|
541
|
-
'app-deleted',
|
|
542
|
-
'app-call',
|
|
543
45
|
'room-ownership-offer',
|
|
544
46
|
'managed-environment-retention-opened',
|
|
545
|
-
'managed-environment-placement-intervention',
|
|
546
47
|
'storage-full',
|
|
547
48
|
'sandbox-budget-spent',
|
|
49
|
+
'trigger-failed',
|
|
548
50
|
'break-glass-owner-disclosure',
|
|
549
|
-
'routine-start-approval-request',
|
|
550
|
-
'routine-request-declined',
|
|
551
|
-
'routine-request-started',
|
|
552
|
-
'routine-request-finished',
|
|
553
|
-
'routine-request-not-started',
|
|
554
51
|
'export-ready',
|
|
555
52
|
'export-failed',
|
|
556
|
-
'site-disabled',
|
|
557
|
-
'site-binding-incompatible',
|
|
558
|
-
'site-room-left',
|
|
559
|
-
'site-images-full',
|
|
560
53
|
'custom',
|
|
561
|
-
'
|
|
562
|
-
'function-failed',
|
|
54
|
+
'agent-function-request-finished',
|
|
563
55
|
],
|
|
564
56
|
},
|
|
565
57
|
created: { type: 'string', format: 'date-time' },
|
|
58
|
+
read: { type: 'string', format: 'date-time' },
|
|
566
59
|
way_in: {
|
|
567
60
|
type: 'object',
|
|
568
61
|
additionalProperties: false,
|
|
569
62
|
properties: {
|
|
570
63
|
path: { type: 'string', pattern: '^\\/' },
|
|
571
64
|
room: { $ref: '#/$defs/room' },
|
|
572
|
-
app: { $ref: '#/$defs/app' },
|
|
573
|
-
agent: { $ref: '#/$defs/id' },
|
|
574
65
|
environment: { $ref: '#/$defs/id' },
|
|
575
|
-
routine: { $ref: '#/$defs/id' },
|
|
576
|
-
routine_request: { $ref: '#/$defs/id' },
|
|
577
66
|
trigger: { $ref: '#/$defs/id' },
|
|
578
|
-
site: { $ref: '#/$defs/id' },
|
|
579
67
|
},
|
|
580
68
|
minProperties: 1,
|
|
581
69
|
},
|
|
582
|
-
subject: { type: 'string' },
|
|
583
|
-
share: { $ref: '#/$defs/id' },
|
|
584
|
-
issuer: {
|
|
585
|
-
type: 'object',
|
|
586
|
-
additionalProperties: false,
|
|
587
|
-
properties: { name: { type: 'string' }, email: { type: 'string', format: 'email' } },
|
|
588
|
-
required: ['name', 'email'],
|
|
589
|
-
},
|
|
590
|
-
rooms: {
|
|
591
|
-
type: 'array',
|
|
592
|
-
items: {
|
|
593
|
-
type: 'object',
|
|
594
|
-
additionalProperties: false,
|
|
595
|
-
properties: { name: { type: 'string' } },
|
|
596
|
-
required: ['name'],
|
|
597
|
-
},
|
|
598
|
-
},
|
|
599
|
-
apps: {
|
|
600
|
-
maxItems: 20,
|
|
601
|
-
type: 'array',
|
|
602
|
-
items: {
|
|
603
|
-
type: 'object',
|
|
604
|
-
additionalProperties: false,
|
|
605
|
-
properties: {
|
|
606
|
-
name: { type: 'string', minLength: 1, maxLength: 200 },
|
|
607
|
-
reaches: { type: 'array', items: { type: 'string', minLength: 1, maxLength: 512 } },
|
|
608
|
-
},
|
|
609
|
-
required: ['name', 'reaches'],
|
|
610
|
-
},
|
|
611
|
-
},
|
|
612
|
-
expires_at: { type: 'string', format: 'date-time' },
|
|
613
|
-
join_request: { $ref: '#/$defs/id' },
|
|
614
|
-
user: {
|
|
615
|
-
type: 'object',
|
|
616
|
-
additionalProperties: false,
|
|
617
|
-
properties: { name: { type: 'string' }, email: { type: 'string', format: 'email' } },
|
|
618
|
-
required: ['name', 'email'],
|
|
619
|
-
},
|
|
620
|
-
room: {
|
|
621
|
-
type: 'object',
|
|
622
|
-
additionalProperties: false,
|
|
623
|
-
properties: { room: { $ref: '#/$defs/room' }, name: { type: 'string' } },
|
|
624
|
-
minProperties: 1,
|
|
625
|
-
},
|
|
626
|
-
app: {
|
|
627
|
-
type: 'object',
|
|
628
|
-
additionalProperties: false,
|
|
629
|
-
properties: { app: { $ref: '#/$defs/app' }, name: { type: 'string' } },
|
|
630
|
-
minProperties: 1,
|
|
631
|
-
},
|
|
632
|
-
binding: { $ref: '#/$defs/id' },
|
|
633
|
-
slot: { type: 'string' },
|
|
634
|
-
findings: { type: 'array', items: { type: 'string' } },
|
|
635
|
-
owner: {
|
|
636
|
-
type: 'object',
|
|
637
|
-
additionalProperties: false,
|
|
638
|
-
properties: { name: { type: 'string' } },
|
|
639
|
-
required: ['name'],
|
|
640
|
-
},
|
|
641
|
-
caller: {
|
|
642
|
-
type: 'object',
|
|
643
|
-
additionalProperties: false,
|
|
644
|
-
properties: { user: { $ref: '#/$defs/id' }, name: { type: 'string' } },
|
|
645
|
-
required: ['user', 'name'],
|
|
646
|
-
},
|
|
647
|
-
ownership_offer: { $ref: '#/$defs/id' },
|
|
648
|
-
offerer: {
|
|
649
|
-
type: 'object',
|
|
650
|
-
additionalProperties: false,
|
|
651
|
-
properties: { name: { type: 'string' }, email: { type: 'string', format: 'email' } },
|
|
652
|
-
required: ['name', 'email'],
|
|
653
|
-
},
|
|
654
|
-
environment: {
|
|
655
|
-
type: 'object',
|
|
656
|
-
additionalProperties: false,
|
|
657
|
-
properties: {
|
|
658
|
-
environment: { $ref: '#/$defs/id' },
|
|
659
|
-
name: { type: 'string' },
|
|
660
|
-
kind: { enum: ['vps', 'sandbox'] },
|
|
661
|
-
},
|
|
662
|
-
required: ['environment', 'name'],
|
|
663
|
-
},
|
|
664
|
-
reason: { type: 'string' },
|
|
665
|
-
deadline: { type: 'string', format: 'date-time' },
|
|
666
|
-
operation_kind: { type: 'string' },
|
|
667
|
-
free: {
|
|
668
|
-
type: 'object',
|
|
669
|
-
additionalProperties: false,
|
|
670
|
-
properties: {
|
|
671
|
-
held: { type: 'string', pattern: '^\\d+$' },
|
|
672
|
-
limit: { type: 'string', pattern: '^[1-9]\\d*$' },
|
|
673
|
-
measure: { type: 'string', enum: ['content', 'retained'] },
|
|
674
|
-
},
|
|
675
|
-
required: ['held', 'limit', 'measure'],
|
|
676
|
-
},
|
|
677
|
-
budget: { type: 'string', pattern: '^\\d+(?:\\.\\d+)?$' },
|
|
678
|
-
resets_at: { type: 'string', format: 'date-time' },
|
|
679
|
-
grant: { $ref: '#/$defs/id' },
|
|
680
|
-
category: { type: 'string' },
|
|
681
|
-
access_started_at: { type: 'string', format: 'date-time' },
|
|
682
|
-
access_ended_at: { type: 'string', format: 'date-time' },
|
|
683
|
-
systems: { type: 'array', items: { type: 'string' } },
|
|
684
|
-
case_reference: { type: 'string' },
|
|
685
|
-
routine_request: { $ref: '#/$defs/id' },
|
|
686
|
-
requester: {
|
|
687
|
-
type: 'object',
|
|
688
|
-
additionalProperties: false,
|
|
689
|
-
properties: { name: { type: 'string' } },
|
|
690
|
-
required: ['name'],
|
|
691
|
-
},
|
|
692
|
-
agent: {
|
|
693
|
-
type: 'object',
|
|
694
|
-
additionalProperties: false,
|
|
695
|
-
properties: { agent: { $ref: '#/$defs/id' }, name: { type: 'string' } },
|
|
696
|
-
required: ['name'],
|
|
697
|
-
},
|
|
698
|
-
conversation: { $ref: '#/$defs/id' },
|
|
699
|
-
routine: {
|
|
700
|
-
type: 'object',
|
|
701
|
-
additionalProperties: false,
|
|
702
|
-
properties: {
|
|
703
|
-
routine: { $ref: '#/$defs/id' },
|
|
704
|
-
name: { type: 'string' },
|
|
705
|
-
version: { type: 'integer', minimum: 1 },
|
|
706
|
-
},
|
|
707
|
-
required: ['name'],
|
|
708
|
-
},
|
|
709
|
-
decliner: {
|
|
710
|
-
type: 'object',
|
|
711
|
-
additionalProperties: false,
|
|
712
|
-
properties: { name: { type: 'string' } },
|
|
713
|
-
required: ['name'],
|
|
714
|
-
},
|
|
715
|
-
input: { type: 'string' },
|
|
716
|
-
export: { $ref: '#/$defs/id' },
|
|
717
|
-
size_bytes: { type: 'integer', minimum: 0 },
|
|
718
|
-
site: {
|
|
719
|
-
type: 'object',
|
|
720
|
-
additionalProperties: false,
|
|
721
|
-
properties: { site: { $ref: '#/$defs/id' }, name: { type: 'string' } },
|
|
722
|
-
required: ['site', 'name'],
|
|
723
|
-
},
|
|
724
|
-
address: { type: 'string', maxLength: 300, format: 'uri' },
|
|
725
|
-
to: {
|
|
726
|
-
type: 'object',
|
|
727
|
-
additionalProperties: false,
|
|
728
|
-
properties: { name: { type: 'string' } },
|
|
729
|
-
required: ['name'],
|
|
730
|
-
},
|
|
731
|
-
copies: { type: 'integer', minimum: 0 },
|
|
732
|
-
bound: { type: 'integer', minimum: 0 },
|
|
733
|
-
title: { type: 'string' },
|
|
734
|
-
body: { type: 'string' },
|
|
735
|
-
authorship: {
|
|
736
|
-
type: 'object',
|
|
737
|
-
additionalProperties: false,
|
|
738
|
-
properties: {
|
|
739
|
-
kind: { type: 'string', const: 'trigger-action' },
|
|
740
|
-
trigger: { $ref: '#/$defs/id' },
|
|
741
|
-
position: { type: 'integer', minimum: 0 },
|
|
742
|
-
},
|
|
743
|
-
required: ['kind', 'trigger', 'position'],
|
|
744
|
-
},
|
|
745
|
-
path: { type: 'string', maxLength: 4096, pattern: '^\\/.*' },
|
|
746
|
-
trigger: {
|
|
747
|
-
type: 'object',
|
|
748
|
-
additionalProperties: false,
|
|
749
|
-
properties: { trigger: { $ref: '#/$defs/id' }, name: { type: 'string' } },
|
|
750
|
-
required: ['trigger', 'name'],
|
|
751
|
-
},
|
|
752
|
-
cause: { type: 'string' },
|
|
753
|
-
function: { type: 'string' },
|
|
754
|
-
error: { type: 'string' },
|
|
755
|
-
},
|
|
756
|
-
required: ['notification', 'kind', 'created', 'way_in', 'subject'],
|
|
757
|
-
},
|
|
758
|
-
'house-ownership-offer': {
|
|
759
|
-
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.",
|
|
760
|
-
properties: {
|
|
761
|
-
reflected: { type: 'string', format: 'date-time' },
|
|
762
|
-
ownership_offer: { $ref: '#/$defs/id' },
|
|
763
|
-
room: {
|
|
764
|
-
type: 'object',
|
|
765
|
-
additionalProperties: false,
|
|
766
|
-
properties: { room: { $ref: '#/$defs/room' }, name: { type: 'string' } },
|
|
767
|
-
required: ['room', 'name'],
|
|
768
|
-
},
|
|
769
|
-
from: {
|
|
770
|
-
type: 'object',
|
|
771
|
-
additionalProperties: false,
|
|
772
|
-
properties: { name: { type: 'string' } },
|
|
773
|
-
required: ['name'],
|
|
774
|
-
},
|
|
775
|
-
page: {
|
|
776
|
-
type: 'string',
|
|
777
|
-
pattern: '^\\/approve\\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$',
|
|
778
|
-
},
|
|
779
|
-
created: { type: 'string', format: 'date-time' },
|
|
780
|
-
expires: { type: 'string', format: 'date-time' },
|
|
781
|
-
},
|
|
782
|
-
required: ['reflected', 'ownership_offer', 'room', 'from', 'page', 'created', 'expires'],
|
|
783
|
-
},
|
|
784
|
-
'house-panel-preferences': {
|
|
785
|
-
description: "The panel's preferences at /rooms/private/settings/panel.md. Its own vocabulary is in the body.",
|
|
786
|
-
properties: {},
|
|
787
|
-
},
|
|
788
|
-
'house-profile': {
|
|
789
|
-
description: "The User's display name, the email they sign in with and accepted about-me Markdown.",
|
|
790
|
-
properties: {
|
|
791
|
-
reflected: { type: 'string', format: 'date-time' },
|
|
792
|
-
name: { type: 'string' },
|
|
793
|
-
email: { type: 'string' },
|
|
794
|
-
about_me: { type: 'string' },
|
|
795
|
-
},
|
|
796
|
-
required: ['reflected', 'name', 'email'],
|
|
797
|
-
},
|
|
798
|
-
'house-public-room': {
|
|
799
|
-
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.',
|
|
800
|
-
properties: {
|
|
801
|
-
reflected: { type: 'string', format: 'date-time' },
|
|
802
|
-
room: { $ref: '#/$defs/room' },
|
|
803
|
-
handle: {
|
|
804
|
-
type: 'string',
|
|
805
|
-
minLength: 6,
|
|
806
|
-
maxLength: 63,
|
|
807
|
-
pattern: '^[a-z0-9]+(?:-[a-z0-9]+)*$',
|
|
808
|
-
},
|
|
809
|
-
name: { type: 'string' },
|
|
810
|
-
archived: { type: 'string', format: 'date-time' },
|
|
811
|
-
},
|
|
812
|
-
required: ['reflected', 'room', 'handle', 'name'],
|
|
813
|
-
},
|
|
814
|
-
'house-push-address': {
|
|
815
|
-
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`.",
|
|
816
|
-
properties: {
|
|
817
|
-
reflected: { type: 'string', format: 'date-time' },
|
|
818
|
-
push_address: { $ref: '#/$defs/id' },
|
|
819
|
-
room: { $ref: '#/$defs/room' },
|
|
820
|
-
source: { type: 'string' },
|
|
821
|
-
event_header: { type: 'string' },
|
|
822
|
-
event_json: { type: 'string' },
|
|
823
|
-
},
|
|
824
|
-
required: ['reflected', 'push_address', 'room', 'source'],
|
|
825
|
-
},
|
|
826
|
-
'house-requests': {
|
|
827
|
-
description: "The Routine Requests of one Room this User holds at the Keep level: each one waiting or started under `current` and the 50 that changed last under `history`. Each names its `routine` by `name` and `version`, the `target` User whose Agent it asks, the `agent` that took it, the `routine_access` and `record` it went through, the Users it was `approved_by` and `settled_by`, and when it was `created`, `approved`, `activated` and `settled`; a started one is `undelivered` while its Agent's computer has not taken it, which House hands it once that computer connects; a fact it does not hold is absent. Only the Agent’s owner sees a request’s conversation. A Room with no request has no such document.",
|
|
828
|
-
properties: {
|
|
829
|
-
reflected: { type: 'string', format: 'date-time' },
|
|
830
|
-
room: { $ref: '#/$defs/room' },
|
|
831
|
-
current: { type: 'array', items: { $ref: '#/$defs/request' } },
|
|
832
|
-
history: { type: 'array', items: { $ref: '#/$defs/request' } },
|
|
833
|
-
},
|
|
834
|
-
required: ['reflected', 'room', 'current', 'history'],
|
|
835
|
-
},
|
|
836
|
-
'house-room': {
|
|
837
|
-
description: "One Room this User reads, with the processing configuration that indexes it. `my_room` is `true` on this User's My Room alone, whatever its name and handle become. `admission` is `pending` while House is still settling this User into the Room, which finishes on its own and needs no act. `access` is this User's access word in the Room, `owner`, `manage`, `edit`, `keep`, `open` or `search`, with `only_while_online` on a `manage` or `edit` held at the Open level; `level` is the access level they hold on its content, `search`, `open` or `keep`, and `operations` are their own on its content. `policy` is whether House indexes the Room's documents, `Off` while it withholds indexing. Each indexing entry names a folder `path` and the `policy` set on it. `shared_schema` names the Shared schema whose copy is the Room's schema while the Room uses one, with its `name`. The owner alone sees `ownership_offer`, the `nominee` it is offered to and when it `expires`, while an offer is open, and `public`, the time they made the Room public, while every House User may read it; a member who does not own it sees its `owner` by name. `roster` lists the Room's members, each with when they were `admitted`, their member `document` and the access level and operations a Room Share could offer them without giving them anything new as `held`; it and `rights` carry the access this User may see, every member's to one who manages the Room and their own otherwise; `routines` lists the Routine Accesses this User or the Room's Triggers may call in it, each with its `routine`, by `name`, `description`, `input` and `version`, its `agent` and that Agent's `owner` by name: `starts_without_approval` on one this User may call and `triggers: true` on one the Triggers may call.",
|
|
838
|
-
properties: {
|
|
839
|
-
reflected: { type: 'string', format: 'date-time' },
|
|
840
|
-
room: { $ref: '#/$defs/room' },
|
|
841
|
-
handle: {
|
|
842
|
-
type: 'string',
|
|
843
|
-
minLength: 6,
|
|
844
|
-
maxLength: 63,
|
|
845
|
-
pattern: '^[a-z0-9]+(?:-[a-z0-9]+)*$',
|
|
846
|
-
},
|
|
847
|
-
name: { type: 'string' },
|
|
848
|
-
my_room: { const: true },
|
|
849
|
-
membership: { enum: ['owner', 'member'] },
|
|
850
|
-
ownership_offer: {
|
|
851
|
-
type: 'object',
|
|
852
|
-
additionalProperties: false,
|
|
853
|
-
properties: {
|
|
854
|
-
nominee: {
|
|
855
|
-
type: 'object',
|
|
856
|
-
additionalProperties: false,
|
|
857
|
-
properties: { user: { $ref: '#/$defs/id' }, name: { type: 'string' } },
|
|
858
|
-
required: ['user', 'name'],
|
|
859
|
-
},
|
|
860
|
-
expires: { type: 'string', format: 'date-time' },
|
|
861
|
-
},
|
|
862
|
-
required: ['nominee', 'expires'],
|
|
863
|
-
},
|
|
864
|
-
access: { enum: ['owner', 'manage', 'edit', 'keep', 'open', 'search'] },
|
|
865
|
-
level: { enum: ['search', 'open', 'keep'] },
|
|
866
|
-
only_while_online: { const: true },
|
|
867
|
-
operations: {
|
|
868
|
-
type: 'array',
|
|
869
|
-
items: { type: 'string', enum: ['write', 'delete', 'export', 'manageAccess'] },
|
|
870
|
-
},
|
|
871
|
-
owner: {
|
|
872
|
-
type: 'object',
|
|
873
|
-
additionalProperties: false,
|
|
874
|
-
properties: { name: { type: 'string' } },
|
|
875
|
-
required: ['name'],
|
|
876
|
-
},
|
|
877
|
-
members: { type: 'integer', minimum: 0 },
|
|
878
|
-
triggers: { type: 'integer', minimum: 0 },
|
|
879
|
-
published: { enum: ['yes', 'no'] },
|
|
880
|
-
intake: { enum: ['yes', 'no'] },
|
|
881
|
-
size: { type: 'number' },
|
|
882
|
-
admission: { enum: ['admitted', 'pending'] },
|
|
883
|
-
created: { type: 'string', format: 'date-time' },
|
|
884
|
-
archived: { type: 'string', format: 'date-time' },
|
|
885
|
-
public: { type: 'string', format: 'date-time' },
|
|
886
|
-
policy: { enum: ['On', 'Off'] },
|
|
887
|
-
indexing: {
|
|
888
|
-
type: 'array',
|
|
889
|
-
items: {
|
|
890
|
-
type: 'object',
|
|
891
|
-
additionalProperties: false,
|
|
892
|
-
properties: { path: { type: 'string', minLength: 1 }, policy: { enum: ['On', 'Off'] } },
|
|
893
|
-
required: ['path', 'policy'],
|
|
894
|
-
},
|
|
895
|
-
},
|
|
896
|
-
shared_schema: {
|
|
897
|
-
type: 'object',
|
|
898
|
-
additionalProperties: false,
|
|
899
|
-
properties: { shared_schema: { $ref: '#/$defs/id' }, name: { type: 'string' } },
|
|
900
|
-
required: ['shared_schema', 'name'],
|
|
901
|
-
},
|
|
902
|
-
roster: {
|
|
903
|
-
type: 'array',
|
|
904
|
-
items: {
|
|
905
|
-
type: 'object',
|
|
906
|
-
additionalProperties: false,
|
|
907
|
-
properties: {
|
|
908
|
-
user: { $ref: '#/$defs/id' },
|
|
909
|
-
name: { type: 'string' },
|
|
910
|
-
owner: { type: 'boolean' },
|
|
911
|
-
email: { type: 'string' },
|
|
912
|
-
admitted: { type: 'string', format: 'date-time' },
|
|
913
|
-
access: { type: 'string', enum: ['owner', 'manage', 'edit', 'keep', 'open', 'search'] },
|
|
914
|
-
only_while_online: { const: true },
|
|
915
|
-
document: { $ref: '#/$defs/document' },
|
|
916
|
-
schema_roles: { type: 'array', items: { type: 'string' } },
|
|
917
|
-
held: {
|
|
918
|
-
type: 'object',
|
|
919
|
-
additionalProperties: false,
|
|
920
|
-
properties: {
|
|
921
|
-
level: {
|
|
922
|
-
anyOf: [{ type: 'string', enum: ['search', 'open', 'keep'] }, { type: 'null' }],
|
|
923
|
-
},
|
|
924
|
-
operations: {
|
|
925
|
-
type: 'array',
|
|
926
|
-
items: { type: 'string', enum: ['write', 'delete', 'export', 'manageAccess'] },
|
|
927
|
-
},
|
|
928
|
-
},
|
|
929
|
-
required: ['level', 'operations'],
|
|
930
|
-
},
|
|
931
|
-
},
|
|
932
|
-
required: ['user', 'name', 'owner', 'email'],
|
|
933
|
-
},
|
|
934
|
-
},
|
|
935
|
-
rights: {
|
|
936
|
-
type: 'array',
|
|
937
|
-
items: {
|
|
938
|
-
type: 'object',
|
|
939
|
-
additionalProperties: false,
|
|
940
|
-
properties: {
|
|
941
|
-
user: { $ref: '#/$defs/id' },
|
|
942
|
-
name: { type: 'string' },
|
|
943
|
-
entries: {
|
|
944
|
-
type: 'array',
|
|
945
|
-
items: {
|
|
946
|
-
type: 'object',
|
|
947
|
-
additionalProperties: false,
|
|
948
|
-
properties: {
|
|
949
|
-
namespace: { $ref: '#/$defs/namespace' },
|
|
950
|
-
level: {
|
|
951
|
-
anyOf: [{ type: 'string', enum: ['search', 'open', 'keep'] }, { type: 'null' }],
|
|
952
|
-
},
|
|
953
|
-
operations: {
|
|
954
|
-
type: 'array',
|
|
955
|
-
items: { type: 'string', enum: ['write', 'delete', 'export', 'manageAccess'] },
|
|
956
|
-
},
|
|
957
|
-
sources: {
|
|
958
|
-
type: 'array',
|
|
959
|
-
items: {
|
|
960
|
-
type: 'object',
|
|
961
|
-
additionalProperties: false,
|
|
962
|
-
properties: {
|
|
963
|
-
kind: { type: 'string', enum: ['direct', 'inherited'] },
|
|
964
|
-
namespace: { $ref: '#/$defs/namespace' },
|
|
965
|
-
level: {
|
|
966
|
-
anyOf: [
|
|
967
|
-
{ type: 'string', enum: ['search', 'open', 'keep'] },
|
|
968
|
-
{ type: 'null' },
|
|
969
|
-
],
|
|
970
|
-
},
|
|
971
|
-
operations: {
|
|
972
|
-
type: 'array',
|
|
973
|
-
items: {
|
|
974
|
-
type: 'string',
|
|
975
|
-
enum: ['write', 'delete', 'export', 'manageAccess'],
|
|
976
|
-
},
|
|
977
|
-
},
|
|
978
|
-
},
|
|
979
|
-
required: ['kind', 'namespace', 'level', 'operations'],
|
|
980
|
-
},
|
|
981
|
-
},
|
|
982
|
-
},
|
|
983
|
-
required: ['namespace', 'level', 'operations', 'sources'],
|
|
984
|
-
},
|
|
985
|
-
},
|
|
986
|
-
direct: {
|
|
987
|
-
type: 'array',
|
|
988
|
-
items: {
|
|
989
|
-
type: 'object',
|
|
990
|
-
additionalProperties: false,
|
|
991
|
-
properties: {
|
|
992
|
-
namespace: { $ref: '#/$defs/namespace' },
|
|
993
|
-
level: {
|
|
994
|
-
anyOf: [{ type: 'string', enum: ['search', 'open', 'keep'] }, { type: 'null' }],
|
|
995
|
-
},
|
|
996
|
-
operations: {
|
|
997
|
-
type: 'array',
|
|
998
|
-
items: { type: 'string', enum: ['write', 'delete', 'export', 'manageAccess'] },
|
|
999
|
-
},
|
|
1000
|
-
},
|
|
1001
|
-
required: ['namespace', 'level', 'operations'],
|
|
1002
|
-
},
|
|
1003
|
-
},
|
|
1004
|
-
admitted: { type: 'string', format: 'date-time' },
|
|
1005
|
-
schema_roles: { type: 'array', items: { type: 'string' } },
|
|
1006
|
-
},
|
|
1007
|
-
required: ['user', 'name', 'entries', 'direct', 'schema_roles'],
|
|
1008
|
-
},
|
|
1009
|
-
},
|
|
1010
|
-
routines: {
|
|
1011
|
-
type: 'array',
|
|
1012
|
-
items: {
|
|
1013
|
-
type: 'object',
|
|
1014
|
-
additionalProperties: false,
|
|
1015
|
-
properties: {
|
|
1016
|
-
routine_access: { $ref: '#/$defs/id' },
|
|
1017
|
-
agent: { $ref: '#/$defs/id' },
|
|
1018
|
-
owner: {
|
|
1019
|
-
type: 'object',
|
|
1020
|
-
additionalProperties: false,
|
|
1021
|
-
properties: { name: { type: 'string' } },
|
|
1022
|
-
required: ['name'],
|
|
1023
|
-
},
|
|
1024
|
-
routine: {
|
|
1025
|
-
type: 'object',
|
|
1026
|
-
additionalProperties: false,
|
|
1027
|
-
properties: {
|
|
1028
|
-
name: { type: 'string' },
|
|
1029
|
-
description: { type: 'string' },
|
|
1030
|
-
input: { type: 'string' },
|
|
1031
|
-
version: { type: 'integer', exclusiveMinimum: 0 },
|
|
1032
|
-
},
|
|
1033
|
-
required: ['name', 'description', 'input', 'version'],
|
|
1034
|
-
},
|
|
1035
|
-
starts_without_approval: { type: 'boolean' },
|
|
1036
|
-
triggers: { type: 'boolean', const: true },
|
|
1037
|
-
},
|
|
1038
|
-
required: ['routine_access', 'agent', 'owner', 'routine'],
|
|
1039
|
-
},
|
|
1040
|
-
},
|
|
1041
|
-
},
|
|
1042
|
-
required: [
|
|
1043
|
-
'reflected',
|
|
1044
|
-
'room',
|
|
1045
|
-
'name',
|
|
1046
|
-
'membership',
|
|
1047
|
-
'access',
|
|
1048
|
-
'admission',
|
|
1049
|
-
'created',
|
|
1050
|
-
'policy',
|
|
1051
|
-
],
|
|
1052
|
-
},
|
|
1053
|
-
'house-routine-access': {
|
|
1054
|
-
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`.",
|
|
1055
|
-
properties: {
|
|
1056
|
-
reflected: { type: 'string', format: 'date-time' },
|
|
1057
|
-
routine_access: { $ref: '#/$defs/id' },
|
|
1058
|
-
routine: {
|
|
70
|
+
subject: { type: 'string' },
|
|
71
|
+
share: { $ref: '#/$defs/id' },
|
|
72
|
+
issuer: {
|
|
1059
73
|
type: 'object',
|
|
1060
74
|
additionalProperties: false,
|
|
1061
|
-
properties: {
|
|
1062
|
-
required: ['
|
|
75
|
+
properties: { name: { type: 'string' }, email: { type: 'string', format: 'email' } },
|
|
76
|
+
required: ['name', 'email'],
|
|
1063
77
|
},
|
|
1064
|
-
|
|
1065
|
-
room: { $ref: '#/$defs/room' },
|
|
1066
|
-
invoker_scope: { type: 'string', enum: ['all_members', 'selected_users'] },
|
|
1067
|
-
start_scope: { type: 'string', enum: ['none', 'all_admitted', 'selected_users'] },
|
|
1068
|
-
follow_up_scope: { type: 'string', enum: ['none', 'all_admitted', 'selected_users'] },
|
|
1069
|
-
created: { type: 'string', format: 'date-time' },
|
|
1070
|
-
revoked: { type: 'string', format: 'date-time' },
|
|
1071
|
-
invokers: { type: 'array', items: { $ref: '#/$defs/caller' } },
|
|
1072
|
-
starters: { type: 'array', items: { $ref: '#/$defs/caller' } },
|
|
1073
|
-
follow_ups: {
|
|
78
|
+
rooms: {
|
|
1074
79
|
type: 'array',
|
|
1075
80
|
items: {
|
|
1076
81
|
type: 'object',
|
|
1077
82
|
additionalProperties: false,
|
|
1078
|
-
properties: {
|
|
1079
|
-
|
|
1080
|
-
email: { type: 'string' },
|
|
1081
|
-
name: { type: 'string' },
|
|
1082
|
-
},
|
|
1083
|
-
required: ['user'],
|
|
83
|
+
properties: { name: { type: 'string' } },
|
|
84
|
+
required: ['name'],
|
|
1084
85
|
},
|
|
1085
86
|
},
|
|
1086
|
-
|
|
1087
|
-
|
|
87
|
+
apps: {
|
|
88
|
+
maxItems: 20,
|
|
1088
89
|
type: 'array',
|
|
1089
90
|
items: {
|
|
1090
91
|
type: 'object',
|
|
1091
92
|
additionalProperties: false,
|
|
1092
93
|
properties: {
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
allowance: { type: 'integer', minimum: 0 },
|
|
94
|
+
name: { type: 'string', minLength: 1, maxLength: 200 },
|
|
95
|
+
reaches: { type: 'array', items: { type: 'string', minLength: 1, maxLength: 512 } },
|
|
1096
96
|
},
|
|
1097
|
-
|
|
97
|
+
required: ['name', 'reaches'],
|
|
1098
98
|
},
|
|
1099
99
|
},
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
required: ['user', 'allowance'],
|
|
1108
|
-
},
|
|
100
|
+
expires_at: { type: 'string', format: 'date-time' },
|
|
101
|
+
join_request: { $ref: '#/$defs/id' },
|
|
102
|
+
user: {
|
|
103
|
+
type: 'object',
|
|
104
|
+
additionalProperties: false,
|
|
105
|
+
properties: { name: { type: 'string' }, email: { type: 'string', format: 'email' } },
|
|
106
|
+
required: ['name', 'email'],
|
|
1109
107
|
},
|
|
1110
|
-
|
|
108
|
+
room: {
|
|
1111
109
|
type: 'object',
|
|
1112
110
|
additionalProperties: false,
|
|
1113
|
-
properties: {
|
|
1114
|
-
|
|
1115
|
-
at: { type: 'string', format: 'date-time' },
|
|
1116
|
-
reason: { type: 'string' },
|
|
1117
|
-
},
|
|
1118
|
-
required: ['origin', 'at', 'reason'],
|
|
111
|
+
properties: { room: { $ref: '#/$defs/room' }, name: { type: 'string' } },
|
|
112
|
+
minProperties: 1,
|
|
1119
113
|
},
|
|
1120
|
-
|
|
1121
|
-
required: [
|
|
1122
|
-
'reflected',
|
|
1123
|
-
'routine_access',
|
|
1124
|
-
'routine',
|
|
1125
|
-
'agent',
|
|
1126
|
-
'room',
|
|
1127
|
-
'invoker_scope',
|
|
1128
|
-
'start_scope',
|
|
1129
|
-
'follow_up_scope',
|
|
1130
|
-
'created',
|
|
1131
|
-
],
|
|
1132
|
-
},
|
|
1133
|
-
'house-routine': {
|
|
1134
|
-
description: "One Routine that serves this Room, which House alone writes from its owner's document in their Private Room: the `routine` by identifier, its `description`, the `input` a caller sends, empty when it takes nothing, and the `agent` it starts, by `agent` and the `name` that Agent had when this card was last written. The Routine's instruction is never written here.",
|
|
1135
|
-
properties: {
|
|
1136
|
-
reflected: { type: 'string', format: 'date-time' },
|
|
1137
|
-
routine: { $ref: '#/$defs/id' },
|
|
1138
|
-
description: { type: 'string' },
|
|
1139
|
-
input: { type: 'string' },
|
|
1140
|
-
agent: {
|
|
114
|
+
app: {
|
|
1141
115
|
type: 'object',
|
|
1142
116
|
additionalProperties: false,
|
|
1143
|
-
properties: {
|
|
1144
|
-
required: ['
|
|
117
|
+
properties: { app: { $ref: '#/$defs/app' } },
|
|
118
|
+
required: ['app'],
|
|
1145
119
|
},
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
room: { $ref: '#/$defs/room' },
|
|
1155
|
-
name: { type: 'string' },
|
|
1156
|
-
origin: { type: 'string', format: 'uri' },
|
|
1157
|
-
form: {
|
|
120
|
+
ownership_offer: { $ref: '#/$defs/id' },
|
|
121
|
+
offerer: {
|
|
122
|
+
type: 'object',
|
|
123
|
+
additionalProperties: false,
|
|
124
|
+
properties: { name: { type: 'string' }, email: { type: 'string', format: 'email' } },
|
|
125
|
+
required: ['name', 'email'],
|
|
126
|
+
},
|
|
127
|
+
environment: {
|
|
1158
128
|
type: 'object',
|
|
1159
129
|
additionalProperties: false,
|
|
1160
130
|
properties: {
|
|
1161
|
-
|
|
131
|
+
environment: { $ref: '#/$defs/id' },
|
|
1162
132
|
name: { type: 'string' },
|
|
1163
|
-
|
|
1164
|
-
},
|
|
1165
|
-
required: ['kind'],
|
|
1166
|
-
},
|
|
1167
|
-
icon: {
|
|
1168
|
-
type: 'string',
|
|
1169
|
-
pattern: '^\\/service-keys\\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\\/icon$',
|
|
1170
|
-
},
|
|
1171
|
-
},
|
|
1172
|
-
required: ['reflected', 'service_key', 'room', 'name', 'origin', 'form'],
|
|
1173
|
-
},
|
|
1174
|
-
'house-share': {
|
|
1175
|
-
description: "One Share this User issued, kept until it expires or is cancelled. An email delivery carries `share_to`, the address this User entered, and `invited` `true` while that address has no account, so House sent it an invitation email; a link delivery never carries the link. Each item names its `kind`, `room` or `app`, the Room or App under that key with its `name`, its `state`, `offerable`, `held`, `accepted`, `declined`, `superseded` or `ended`, an item the accepted Share could not give being `ended` with its `cause`, `offer_changed` when the recipient's access changed before it was given or `manage_access_lost` when this User no longer managed it, for a Room item the `level` it grants, the `operations` it grants as this User chose them, the access word they earn as `access`, `manage`, `edit`, `keep`, `open` or `search`, with `only_while_online` on a `manage` or `edit` at the Open level, 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.",
|
|
1176
|
-
properties: {
|
|
1177
|
-
reflected: { type: 'string', format: 'date-time' },
|
|
1178
|
-
share: { $ref: '#/$defs/id' },
|
|
1179
|
-
share_link: { enum: ['yes', 'no'] },
|
|
1180
|
-
share_to: { type: 'string', format: 'email' },
|
|
1181
|
-
invited: { const: true },
|
|
1182
|
-
items: {
|
|
1183
|
-
type: 'array',
|
|
1184
|
-
items: {
|
|
1185
|
-
type: 'object',
|
|
1186
|
-
additionalProperties: false,
|
|
1187
|
-
properties: {
|
|
1188
|
-
kind: { enum: ['room', 'app'] },
|
|
1189
|
-
name: { type: 'string' },
|
|
1190
|
-
state: { enum: ['offerable', 'held', 'accepted', 'declined', 'superseded', 'ended'] },
|
|
1191
|
-
cause: { enum: ['offer_changed', 'manage_access_lost'] },
|
|
1192
|
-
level: { enum: ['search', 'open', 'keep'] },
|
|
1193
|
-
operations: {
|
|
1194
|
-
type: 'array',
|
|
1195
|
-
items: { type: 'string', enum: ['write', 'delete', 'export', 'manageAccess'] },
|
|
1196
|
-
},
|
|
1197
|
-
access: { enum: ['manage', 'edit', 'keep', 'open', 'search'] },
|
|
1198
|
-
only_while_online: { const: true },
|
|
1199
|
-
roles: { type: 'array', items: { type: 'string' } },
|
|
1200
|
-
origins: { type: 'array', items: { type: 'string', format: 'uri' } },
|
|
1201
|
-
room: { $ref: '#/$defs/room' },
|
|
1202
|
-
app: { $ref: '#/$defs/app' },
|
|
1203
|
-
},
|
|
1204
|
-
required: ['kind', 'name', 'state', 'operations'],
|
|
133
|
+
kind: { enum: ['vps', 'sandbox'] },
|
|
1205
134
|
},
|
|
135
|
+
required: ['environment', 'name'],
|
|
1206
136
|
},
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
type: 'object',
|
|
1217
|
-
additionalProperties: false,
|
|
1218
|
-
properties: { room: { $ref: '#/$defs/room' }, name: { type: 'string' } },
|
|
1219
|
-
required: ['room', 'name'],
|
|
1220
|
-
},
|
|
1221
|
-
},
|
|
1222
|
-
required: ['app', 'slot', 'room'],
|
|
137
|
+
reason: { type: 'string' },
|
|
138
|
+
deadline: { type: 'string', format: 'date-time' },
|
|
139
|
+
free: {
|
|
140
|
+
type: 'object',
|
|
141
|
+
additionalProperties: false,
|
|
142
|
+
properties: {
|
|
143
|
+
held: { type: 'string', pattern: '^\\d+$' },
|
|
144
|
+
limit: { type: 'string', pattern: '^[1-9]\\d*$' },
|
|
145
|
+
measure: { type: 'string', enum: ['content', 'retained'] },
|
|
1223
146
|
},
|
|
147
|
+
required: ['held', 'limit', 'measure'],
|
|
1224
148
|
},
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
149
|
+
budget: { type: 'string', pattern: '^\\d+(?:\\.\\d+)?$' },
|
|
150
|
+
resets_at: { type: 'string', format: 'date-time' },
|
|
151
|
+
grant: { $ref: '#/$defs/id' },
|
|
152
|
+
category: { type: 'string' },
|
|
153
|
+
access_started_at: { type: 'string', format: 'date-time' },
|
|
154
|
+
access_ended_at: { type: 'string', format: 'date-time' },
|
|
155
|
+
systems: { type: 'array', items: { type: 'string' } },
|
|
156
|
+
case_reference: { type: 'string' },
|
|
157
|
+
export: { $ref: '#/$defs/id' },
|
|
158
|
+
size_bytes: { type: 'integer', minimum: 0 },
|
|
159
|
+
title: { type: 'string' },
|
|
160
|
+
body: { type: 'string' },
|
|
161
|
+
authorship: {
|
|
162
|
+
type: 'object',
|
|
163
|
+
additionalProperties: false,
|
|
164
|
+
properties: {
|
|
165
|
+
kind: { type: 'string', const: 'trigger-action' },
|
|
166
|
+
trigger: { $ref: '#/$defs/id' },
|
|
167
|
+
position: { type: 'integer', minimum: 0 },
|
|
1241
168
|
},
|
|
169
|
+
required: ['kind', 'trigger', 'position'],
|
|
1242
170
|
},
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
},
|
|
1246
|
-
required: ['reflected', 'share', 'share_link', 'created', 'expires'],
|
|
1247
|
-
},
|
|
1248
|
-
'house-share-offer': {
|
|
1249
|
-
description: "One live Share offered to this User by email while an item of it is still offered, `from` its issuer by display `name` and account `email`. Each item names its `kind`, `room` or `app`, its `name`, its `state` for this User, `offerable`, `held`, `accepted`, `declined`, `superseded` or `ended`, an item the accepted Share could not give being `ended` with its `cause`, `offer_changed` when this User's access changed before it was given or `manage_access_lost` when its issuer no longer managed it, for a Room item the `level` it grants, the `operations` it grants and the access word they earn as `access`, `manage`, `edit`, `keep`, `open` or `search`, with `only_while_online` on a `manage` or `edit` at the Open level; it carries no reference. A Room item's access level and operations are the ones its issuer chose for the Room's content; its holder reads the Room's settings at that level, and holds `manageAccess` over its document model when it names `manageAccess`. A Room item naming Schema Roles names them as `roles`, which accepting the Share adds to this User's own in that Room. An App item grants use of the App and never its source, is never shown `held`, and names as `origins` the external origins its latest release declared when this document was written, when it declared any, which accepting the Share lets its code reach. Each pack entry names an offered `app`, one of its `slot`s, and the offered `room` that fills it, each by `name`. Names are as House held them when this document was written. The page is the House approval path where this User accepts or declines the whole Share.",
|
|
1250
|
-
properties: {
|
|
1251
|
-
reflected: { type: 'string', format: 'date-time' },
|
|
1252
|
-
share: { $ref: '#/$defs/id' },
|
|
1253
|
-
from: {
|
|
171
|
+
path: { type: 'string', maxLength: 4096, pattern: '^\\/.*' },
|
|
172
|
+
trigger: {
|
|
1254
173
|
type: 'object',
|
|
1255
174
|
additionalProperties: false,
|
|
1256
|
-
properties: {
|
|
1257
|
-
required: ['
|
|
175
|
+
properties: { trigger: { $ref: '#/$defs/id' }, description: { type: 'string' } },
|
|
176
|
+
required: ['trigger', 'description'],
|
|
1258
177
|
},
|
|
1259
|
-
|
|
178
|
+
code: {
|
|
1260
179
|
type: 'string',
|
|
1261
|
-
|
|
180
|
+
enum: [
|
|
181
|
+
'failed',
|
|
182
|
+
'function_failed',
|
|
183
|
+
'function_not_started',
|
|
184
|
+
'agent_function_request_not_started',
|
|
185
|
+
],
|
|
1262
186
|
},
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
state: { enum: ['offerable', 'held', 'accepted', 'declined', 'superseded', 'ended'] },
|
|
1272
|
-
cause: { enum: ['offer_changed', 'manage_access_lost'] },
|
|
1273
|
-
level: { enum: ['search', 'open', 'keep'] },
|
|
1274
|
-
operations: {
|
|
1275
|
-
type: 'array',
|
|
1276
|
-
items: { type: 'string', enum: ['write', 'delete', 'export', 'manageAccess'] },
|
|
1277
|
-
},
|
|
1278
|
-
access: { enum: ['manage', 'edit', 'keep', 'open', 'search'] },
|
|
1279
|
-
only_while_online: { const: true },
|
|
1280
|
-
roles: { type: 'array', items: { type: 'string' } },
|
|
1281
|
-
origins: { type: 'array', items: { type: 'string', format: 'uri' } },
|
|
1282
|
-
},
|
|
1283
|
-
required: ['kind', 'name', 'state', 'operations'],
|
|
1284
|
-
},
|
|
187
|
+
action: { type: 'integer', minimum: 0 },
|
|
188
|
+
moment: { type: 'string', format: 'date-time' },
|
|
189
|
+
error: { type: 'string' },
|
|
190
|
+
agent_function: {
|
|
191
|
+
type: 'object',
|
|
192
|
+
additionalProperties: false,
|
|
193
|
+
properties: { name: { type: 'string' } },
|
|
194
|
+
required: ['name'],
|
|
1285
195
|
},
|
|
1286
|
-
|
|
1287
|
-
type: '
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
properties: {
|
|
1292
|
-
app: {
|
|
1293
|
-
type: 'object',
|
|
1294
|
-
additionalProperties: false,
|
|
1295
|
-
properties: { name: { type: 'string' } },
|
|
1296
|
-
required: ['name'],
|
|
1297
|
-
},
|
|
1298
|
-
slot: { type: 'string', pattern: '^[a-z0-9]([a-z0-9-]*[a-z0-9])?$' },
|
|
1299
|
-
room: {
|
|
1300
|
-
type: 'object',
|
|
1301
|
-
additionalProperties: false,
|
|
1302
|
-
properties: { name: { type: 'string' } },
|
|
1303
|
-
required: ['name'],
|
|
1304
|
-
},
|
|
1305
|
-
},
|
|
1306
|
-
required: ['app', 'slot', 'room'],
|
|
1307
|
-
},
|
|
196
|
+
agent: {
|
|
197
|
+
type: 'object',
|
|
198
|
+
additionalProperties: false,
|
|
199
|
+
properties: { name: { type: 'string' } },
|
|
200
|
+
required: ['name'],
|
|
1308
201
|
},
|
|
1309
|
-
|
|
1310
|
-
|
|
202
|
+
ended: { type: 'string', enum: ['finished', 'failed'] },
|
|
203
|
+
duration: { type: 'integer', minimum: 1 },
|
|
1311
204
|
},
|
|
1312
|
-
required: ['
|
|
205
|
+
required: ['notification', 'kind', 'created', 'way_in', 'subject'],
|
|
206
|
+
},
|
|
207
|
+
'house-panel-preferences': {
|
|
208
|
+
description: "The panel's preferences at /rooms/private/settings/panel.md. Its own vocabulary is in the body.",
|
|
209
|
+
properties: {},
|
|
1313
210
|
},
|
|
1314
|
-
'house-
|
|
1315
|
-
description: "One
|
|
211
|
+
'house-agent-function': {
|
|
212
|
+
description: "One Agent function that serves this Room, which House alone writes from its owner's document in their Private Room: the `agent_function` by identifier, its `description`, the `input` a caller sends, empty when it takes nothing, and the `agent` it starts, by `agent` and the `name` that Agent had when this card was last written. The Agent function's instruction is never written here.",
|
|
1316
213
|
properties: {
|
|
1317
214
|
reflected: { type: 'string', format: 'date-time' },
|
|
1318
|
-
|
|
1319
|
-
name: { type: 'string' },
|
|
1320
|
-
address: { type: 'string', format: 'uri' },
|
|
1321
|
-
addresses: { type: 'array', items: { type: 'string', format: 'uri' } },
|
|
1322
|
-
primary_address: { type: 'string', format: 'uri' },
|
|
1323
|
-
domains: {
|
|
1324
|
-
type: 'array',
|
|
1325
|
-
items: {
|
|
1326
|
-
type: 'object',
|
|
1327
|
-
additionalProperties: false,
|
|
1328
|
-
properties: {
|
|
1329
|
-
host: { type: 'string' },
|
|
1330
|
-
state: { enum: ['pending', 'active', 'failed'] },
|
|
1331
|
-
dns_target: { type: 'string' },
|
|
1332
|
-
reason: { type: 'string' },
|
|
1333
|
-
},
|
|
1334
|
-
required: ['host', 'state', 'dns_target'],
|
|
1335
|
-
},
|
|
1336
|
-
},
|
|
1337
|
-
app: { $ref: '#/$defs/app' },
|
|
1338
|
-
tab_icon_light: { type: 'string', pattern: '^data:image\\/' },
|
|
1339
|
-
tab_icon_dark: { type: 'string', pattern: '^data:image\\/' },
|
|
1340
|
-
tab_icon_colours: { type: 'array', items: { type: 'string', pattern: '^#[0-9a-f]{6}$' } },
|
|
1341
|
-
tab_icon_blend: { enum: ['linear', 'radial'] },
|
|
1342
|
-
tab_icon_angle: { type: 'integer', minimum: 0, maximum: 359 },
|
|
1343
|
-
tab_icon_from: { enum: ['site', 'app'] },
|
|
1344
|
-
release: {
|
|
1345
|
-
type: 'object',
|
|
1346
|
-
additionalProperties: false,
|
|
1347
|
-
properties: {
|
|
1348
|
-
release: { $ref: '#/$defs/id' },
|
|
1349
|
-
sequence: { type: 'integer', exclusiveMinimum: 0 },
|
|
1350
|
-
},
|
|
1351
|
-
required: ['release', 'sequence'],
|
|
1352
|
-
},
|
|
1353
|
-
title: { type: 'string' },
|
|
215
|
+
agent_function: { $ref: '#/$defs/id' },
|
|
1354
216
|
description: { type: 'string' },
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
intake_room: {
|
|
1358
|
-
type: 'object',
|
|
1359
|
-
additionalProperties: false,
|
|
1360
|
-
properties: { room: { $ref: '#/$defs/room' } },
|
|
1361
|
-
required: ['room'],
|
|
1362
|
-
},
|
|
1363
|
-
external_origins: { type: 'array', items: { type: 'string', format: 'uri' } },
|
|
1364
|
-
disabled: { enum: ['yes', 'no'] },
|
|
1365
|
-
disabled_reason: { type: 'string' },
|
|
1366
|
-
mode: { enum: ['snapshot', 'live'] },
|
|
1367
|
-
unpublished: { enum: ['yes', 'no'] },
|
|
1368
|
-
suspended: { enum: ['yes', 'no'] },
|
|
1369
|
-
suspended_reason: { type: 'string', enum: ['full_house_required', 'public_delivery_limit'] },
|
|
1370
|
-
public_overage: { enum: ['on', 'off'] },
|
|
1371
|
-
publication: { $ref: '#/$defs/id' },
|
|
1372
|
-
acts: { type: 'array', items: { type: 'string', enum: ['unpublish', 'republish'] } },
|
|
1373
|
-
indexing: { enum: ['yes', 'no'] },
|
|
1374
|
-
entry_fallback: {
|
|
217
|
+
input: { type: 'string' },
|
|
218
|
+
agent: {
|
|
1375
219
|
type: 'object',
|
|
1376
220
|
additionalProperties: false,
|
|
1377
|
-
properties: {
|
|
1378
|
-
|
|
1379
|
-
route: { type: 'string' },
|
|
1380
|
-
recorded: { type: 'string', format: 'date-time' },
|
|
1381
|
-
},
|
|
1382
|
-
required: ['cause', 'route', 'recorded'],
|
|
1383
|
-
},
|
|
1384
|
-
created: { type: 'string', format: 'date-time' },
|
|
1385
|
-
new_browsers: { type: 'integer', minimum: 0 },
|
|
1386
|
-
submissions: { type: 'integer', minimum: 0 },
|
|
1387
|
-
notify_me: { enum: ['on', 'off'] },
|
|
1388
|
-
image_copies: { type: 'integer', minimum: 0 },
|
|
1389
|
-
image_copy_bound: { type: 'integer', minimum: 0 },
|
|
1390
|
-
image_copy_limit_reached: { enum: ['yes', 'no'] },
|
|
1391
|
-
slots: {
|
|
1392
|
-
type: 'array',
|
|
1393
|
-
items: {
|
|
1394
|
-
type: 'object',
|
|
1395
|
-
additionalProperties: false,
|
|
1396
|
-
properties: {
|
|
1397
|
-
slot: { type: 'string', pattern: '^[a-z0-9]([a-z0-9-]*[a-z0-9])?$' },
|
|
1398
|
-
entries: {
|
|
1399
|
-
type: 'array',
|
|
1400
|
-
items: {
|
|
1401
|
-
type: 'object',
|
|
1402
|
-
additionalProperties: false,
|
|
1403
|
-
properties: {
|
|
1404
|
-
room: { $ref: '#/$defs/room' },
|
|
1405
|
-
segment: { type: 'string' },
|
|
1406
|
-
compatibility: { enum: ['unchecked', 'compatible', 'incompatible'] },
|
|
1407
|
-
},
|
|
1408
|
-
required: ['room', 'segment', 'compatibility'],
|
|
1409
|
-
},
|
|
1410
|
-
},
|
|
1411
|
-
},
|
|
1412
|
-
required: ['slot', 'entries'],
|
|
1413
|
-
},
|
|
1414
|
-
},
|
|
1415
|
-
findings: {
|
|
1416
|
-
type: 'array',
|
|
1417
|
-
items: {
|
|
1418
|
-
type: 'object',
|
|
1419
|
-
additionalProperties: false,
|
|
1420
|
-
properties: {
|
|
1421
|
-
slot: { type: 'string', pattern: '^[a-z0-9]([a-z0-9-]*[a-z0-9])?$' },
|
|
1422
|
-
room: { $ref: '#/$defs/room' },
|
|
1423
|
-
finding: { type: 'string' },
|
|
1424
|
-
},
|
|
1425
|
-
required: ['slot', 'room', 'finding'],
|
|
1426
|
-
},
|
|
221
|
+
properties: { agent: { $ref: '#/$defs/id' }, name: { type: 'string' } },
|
|
222
|
+
required: ['agent', 'name'],
|
|
1427
223
|
},
|
|
1428
224
|
},
|
|
1429
|
-
required: [
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
'
|
|
1435
|
-
'
|
|
1436
|
-
'
|
|
1437
|
-
'
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
'suspended',
|
|
1441
|
-
'public_overage',
|
|
1442
|
-
'indexing',
|
|
1443
|
-
'created',
|
|
1444
|
-
'new_browsers',
|
|
1445
|
-
'submissions',
|
|
1446
|
-
'notify_me',
|
|
1447
|
-
'image_copies',
|
|
1448
|
-
'image_copy_bound',
|
|
1449
|
-
'image_copy_limit_reached',
|
|
1450
|
-
],
|
|
225
|
+
required: ['reflected', 'agent_function', 'description', 'input', 'agent'],
|
|
226
|
+
},
|
|
227
|
+
'house-agent-function-document': {
|
|
228
|
+
description: 'One Agent function as its owner writes it in their Private Room at rooms/<room-handle>/agent-functions/<name>.md, a path that binds this type and a document that names no type: what it does as `description`, what a caller sends as `input`, empty when it takes nothing, the `agent` it starts, by identifier, and `afk`, true for a run nobody watches, off when absent. Its body is the instruction that Agent follows.',
|
|
229
|
+
properties: {
|
|
230
|
+
description: { type: 'string', maxLength: 2000, pattern: '\\S' },
|
|
231
|
+
input: { type: 'string' },
|
|
232
|
+
agent: { $ref: '#/$defs/id' },
|
|
233
|
+
afk: { type: 'boolean' },
|
|
234
|
+
},
|
|
235
|
+
required: ['description', 'input', 'agent'],
|
|
1451
236
|
},
|
|
1452
237
|
'house-trigger': {
|
|
1453
|
-
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`;
|
|
238
|
+
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`; an `agent_function` action sends its `payload` to the Agent function whose card under this Room's `house/agent-functions/` its `card` names, absent while this Room holds no card of that Agent function; a `message` action puts its `text` into the active conversation that Agent function started for what the Event is about, or starts that Agent function when none is active; a `done` action marks Done every active conversation an Agent function request of this Room started for the Event's document; a `function` action runs the `function` its `app`'s latest release declares, on House's servers, or, naming no `app`, the Room owner's Environment function of that name on its Environment, which only a Trigger of their Private Room holds. Whether an action's target holds is not written: it follows from the Room's members, the Agent function's card, the App's latest release and the owner's functions.",
|
|
1454
239
|
properties: {
|
|
1455
240
|
reflected: { type: 'string', format: 'date-time' },
|
|
1456
241
|
trigger: { $ref: '#/$defs/id' },
|
|
1457
242
|
description: { type: 'string' },
|
|
1458
243
|
condition: {
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
additionalProperties: false,
|
|
1463
|
-
properties: {
|
|
1464
|
-
on: { const: 'documents' },
|
|
1465
|
-
scope: { $ref: '#/$defs/trigger_scope' },
|
|
1466
|
-
mode: { const: 'starts_matching' },
|
|
1467
|
-
new_documents: { type: 'boolean' },
|
|
1468
|
-
match: { $ref: '#/$defs/trigger_test' },
|
|
1469
|
-
by: { $ref: '#/$defs/trigger_test' },
|
|
1470
|
-
moved_between_rooms: { type: 'boolean' },
|
|
1471
|
-
},
|
|
1472
|
-
required: ['on', 'scope', 'mode', 'new_documents', 'match'],
|
|
1473
|
-
},
|
|
1474
|
-
{
|
|
1475
|
-
type: 'object',
|
|
1476
|
-
additionalProperties: false,
|
|
1477
|
-
properties: {
|
|
1478
|
-
on: { const: 'documents' },
|
|
1479
|
-
scope: { $ref: '#/$defs/trigger_scope' },
|
|
1480
|
-
mode: { const: 'field_changes' },
|
|
1481
|
-
field: { type: 'string' },
|
|
1482
|
-
from: { anyOf: [{ $ref: '#/$defs/trigger_values' }, { const: 'new' }] },
|
|
1483
|
-
to: { anyOf: [{ $ref: '#/$defs/trigger_values' }, { const: 'deleted' }] },
|
|
1484
|
-
match: { $ref: '#/$defs/trigger_test' },
|
|
1485
|
-
by: { $ref: '#/$defs/trigger_test' },
|
|
1486
|
-
moved_between_rooms: { type: 'boolean' },
|
|
1487
|
-
},
|
|
1488
|
-
required: ['on', 'scope', 'mode', 'field'],
|
|
1489
|
-
},
|
|
1490
|
-
{
|
|
1491
|
-
type: 'object',
|
|
1492
|
-
additionalProperties: false,
|
|
1493
|
-
properties: {
|
|
1494
|
-
on: { const: 'items' },
|
|
1495
|
-
source: { type: 'string' },
|
|
1496
|
-
address: { type: 'string' },
|
|
1497
|
-
match: { $ref: '#/$defs/trigger_test' },
|
|
1498
|
-
},
|
|
1499
|
-
required: ['on'],
|
|
1500
|
-
},
|
|
1501
|
-
{
|
|
1502
|
-
type: 'object',
|
|
1503
|
-
additionalProperties: false,
|
|
1504
|
-
properties: {
|
|
1505
|
-
on: { const: 'notifications' },
|
|
1506
|
-
match: { $ref: '#/$defs/trigger_test' },
|
|
1507
|
-
},
|
|
1508
|
-
required: ['on'],
|
|
1509
|
-
},
|
|
1510
|
-
{
|
|
1511
|
-
type: 'object',
|
|
1512
|
-
additionalProperties: false,
|
|
1513
|
-
properties: {
|
|
1514
|
-
on: { const: 'clock' },
|
|
1515
|
-
cron: { type: 'string' },
|
|
1516
|
-
time_zone: { type: 'string' },
|
|
1517
|
-
},
|
|
1518
|
-
required: ['on', 'cron', 'time_zone'],
|
|
1519
|
-
},
|
|
1520
|
-
{
|
|
1521
|
-
type: 'object',
|
|
1522
|
-
additionalProperties: false,
|
|
1523
|
-
properties: {
|
|
1524
|
-
on: { const: 'clock' },
|
|
1525
|
-
scope: {
|
|
1526
|
-
type: 'object',
|
|
1527
|
-
additionalProperties: false,
|
|
1528
|
-
properties: { type: { type: 'string' } },
|
|
1529
|
-
required: ['type'],
|
|
1530
|
-
},
|
|
1531
|
-
date: { type: 'string' },
|
|
1532
|
-
days: { type: 'integer' },
|
|
1533
|
-
at: { type: 'string' },
|
|
1534
|
-
time_zone: { type: 'string' },
|
|
1535
|
-
match: { $ref: '#/$defs/trigger_test' },
|
|
1536
|
-
},
|
|
1537
|
-
required: ['on', 'scope', 'date', 'days', 'at', 'time_zone'],
|
|
1538
|
-
},
|
|
1539
|
-
],
|
|
244
|
+
description: 'When it fires, as the Trigger reference page writes it, a document it names at its current path.',
|
|
245
|
+
type: 'object',
|
|
246
|
+
additionalProperties: true,
|
|
1540
247
|
},
|
|
1541
248
|
actions: {
|
|
1542
249
|
type: 'array',
|
|
@@ -1575,13 +282,30 @@ export const HOUSE_MODEL_DECLARATION = {
|
|
|
1575
282
|
type: 'object',
|
|
1576
283
|
additionalProperties: false,
|
|
1577
284
|
properties: {
|
|
1578
|
-
kind: { const: '
|
|
285
|
+
kind: { const: 'agent_function' },
|
|
1579
286
|
enabled: { type: 'boolean' },
|
|
1580
|
-
|
|
287
|
+
card: { type: 'string', minLength: 1 },
|
|
1581
288
|
payload: { type: 'string' },
|
|
1582
289
|
},
|
|
1583
290
|
required: ['kind', 'enabled', 'payload'],
|
|
1584
291
|
},
|
|
292
|
+
{
|
|
293
|
+
type: 'object',
|
|
294
|
+
additionalProperties: false,
|
|
295
|
+
properties: {
|
|
296
|
+
kind: { const: 'message' },
|
|
297
|
+
enabled: { type: 'boolean' },
|
|
298
|
+
card: { type: 'string', minLength: 1 },
|
|
299
|
+
text: { type: 'string' },
|
|
300
|
+
},
|
|
301
|
+
required: ['kind', 'enabled', 'text'],
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
type: 'object',
|
|
305
|
+
additionalProperties: false,
|
|
306
|
+
properties: { kind: { const: 'done' }, enabled: { type: 'boolean' } },
|
|
307
|
+
required: ['kind', 'enabled'],
|
|
308
|
+
},
|
|
1585
309
|
{
|
|
1586
310
|
type: 'object',
|
|
1587
311
|
additionalProperties: false,
|
|
@@ -1641,3 +365,13 @@ function modelText(model) {
|
|
|
1641
365
|
.join('\n')}\n`;
|
|
1642
366
|
}
|
|
1643
367
|
export const HOUSE_MODEL_TYPES = modelText(HOUSE_MODEL_DECLARATION);
|
|
368
|
+
export const HOUSE_TYPED_PATHS = [
|
|
369
|
+
{ path: 'settings/panel.md', type: 'house-panel-preferences', named: true, body: false },
|
|
370
|
+
{ path: 'settings/apps/*.md', type: 'house-app-preferences', named: true, body: false },
|
|
371
|
+
{
|
|
372
|
+
path: 'rooms/*/agent-functions/*.md',
|
|
373
|
+
type: 'house-agent-function-document',
|
|
374
|
+
named: false,
|
|
375
|
+
body: true,
|
|
376
|
+
},
|
|
377
|
+
];
|