@agentshouse/mdruntime-adapter 0.1.0-cf059d0c8e9c0 → 0.1.0-cf1ebfb67feeb

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,3 +1,4 @@
1
+ import type { TypedPath } from '@agentshouse/mdruntime';
1
2
  export declare const HOUSE_MODEL_DECLARATION: {
2
3
  readonly $defs: {
3
4
  readonly room: {
@@ -26,1316 +27,286 @@ export declare const HOUSE_MODEL_DECLARATION: {
26
27
  readonly maxLength: 512;
27
28
  readonly pattern: '^(?:a_[A-Za-z0-9._-]+(?:\\/source)?|r_[A-Za-z0-9._-]+(?:\\/(?:settings|settings\\/schema|settings\\/model|settings\\/indexing|content))?)$';
28
29
  };
29
- readonly trigger_test: {
30
- readonly 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.';
31
- readonly type: 'object';
32
- readonly additionalProperties: true;
33
- };
34
- readonly trigger_values: {
35
- readonly type: 'array';
36
- readonly items: {
37
- readonly anyOf: readonly [{
38
- readonly type: 'string';
39
- }, {
40
- readonly type: 'number';
41
- }, {
42
- readonly type: 'boolean';
43
- }];
44
- };
45
- };
46
- readonly trigger_scope: {
47
- readonly description: 'The documents a Trigger condition watches, by `type`, by `folder` or one document at its `path`, which `create_trigger` takes as `document`.';
48
- readonly type: 'object';
49
- readonly additionalProperties: false;
50
- readonly properties: {
51
- readonly type: {
52
- readonly type: 'string';
53
- };
54
- readonly folder: {
55
- readonly type: 'string';
56
- };
57
- readonly path: {
58
- readonly type: 'string';
59
- };
30
+ };
31
+ readonly 'house-app-preferences': {
32
+ readonly description: "An App's preferences. Its own vocabulary is in the body.";
33
+ readonly properties: {
34
+ readonly app: {
35
+ readonly $ref: '#/$defs/app';
60
36
  };
61
- readonly minProperties: 1;
62
- readonly maxProperties: 1;
63
37
  };
38
+ readonly required: readonly ['app'];
64
39
  };
65
- readonly 'house-account': {
66
- readonly 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`.";
40
+ readonly 'house-notification': {
41
+ readonly 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.";
67
42
  readonly properties: {
68
- readonly reflected: {
43
+ readonly notification: {
44
+ readonly $ref: '#/$defs/id';
45
+ };
46
+ readonly kind: {
47
+ readonly type: 'string';
48
+ readonly enum: readonly ['share-offer', 'join-request', 'join-request-approved', 'app-room-binding-incompatible', 'app-call', 'room-ownership-offer', 'managed-environment-retention-opened', 'managed-environment-placement-intervention', 'storage-full', 'sandbox-budget-spent', 'break-glass-owner-disclosure', 'agent-function-start-approval-request', 'export-ready', 'export-failed', 'site-disabled', 'site-binding-incompatible', 'site-images-full', 'custom'];
49
+ };
50
+ readonly created: {
69
51
  readonly type: 'string';
70
52
  readonly format: 'date-time';
71
53
  };
72
- readonly user: {
73
- readonly $ref: '#/$defs/id';
54
+ readonly way_in: {
55
+ readonly type: 'object';
56
+ readonly additionalProperties: false;
57
+ readonly properties: {
58
+ readonly path: {
59
+ readonly type: 'string';
60
+ readonly pattern: '^\\/';
61
+ };
62
+ readonly room: {
63
+ readonly $ref: '#/$defs/room';
64
+ };
65
+ readonly app: {
66
+ readonly $ref: '#/$defs/app';
67
+ };
68
+ readonly environment: {
69
+ readonly $ref: '#/$defs/id';
70
+ };
71
+ readonly trigger: {
72
+ readonly $ref: '#/$defs/id';
73
+ };
74
+ readonly site: {
75
+ readonly $ref: '#/$defs/id';
76
+ };
77
+ };
78
+ readonly minProperties: 1;
74
79
  };
75
- readonly email_verified: {
80
+ readonly subject: {
76
81
  readonly type: 'string';
77
- readonly format: 'date-time';
78
82
  };
79
- readonly language: {
80
- readonly enum: readonly ['en'];
83
+ readonly share: {
84
+ readonly $ref: '#/$defs/id';
85
+ };
86
+ readonly issuer: {
87
+ readonly type: 'object';
88
+ readonly additionalProperties: false;
89
+ readonly properties: {
90
+ readonly name: {
91
+ readonly type: 'string';
92
+ };
93
+ readonly email: {
94
+ readonly type: 'string';
95
+ readonly format: 'email';
96
+ };
97
+ };
98
+ readonly required: readonly ['name', 'email'];
99
+ };
100
+ readonly rooms: {
101
+ readonly type: 'array';
102
+ readonly items: {
103
+ readonly type: 'object';
104
+ readonly additionalProperties: false;
105
+ readonly properties: {
106
+ readonly name: {
107
+ readonly type: 'string';
108
+ };
109
+ };
110
+ readonly required: readonly ['name'];
111
+ };
81
112
  };
82
- readonly notifications: {
113
+ readonly apps: {
114
+ readonly maxItems: 20;
83
115
  readonly type: 'array';
84
116
  readonly items: {
85
117
  readonly type: 'object';
86
118
  readonly additionalProperties: false;
87
119
  readonly properties: {
88
- readonly group: {
120
+ readonly name: {
89
121
  readonly type: 'string';
122
+ readonly minLength: 1;
123
+ readonly maxLength: 200;
90
124
  };
91
- readonly channels: {
125
+ readonly reaches: {
92
126
  readonly type: 'array';
93
127
  readonly items: {
94
128
  readonly type: 'string';
129
+ readonly minLength: 1;
130
+ readonly maxLength: 512;
95
131
  };
96
132
  };
97
133
  };
98
- readonly required: readonly ['group', 'channels'];
134
+ readonly required: readonly ['name', 'reaches'];
99
135
  };
100
136
  };
101
- readonly created: {
137
+ readonly expires_at: {
102
138
  readonly type: 'string';
103
139
  readonly format: 'date-time';
104
140
  };
105
- readonly telegram: {
106
- readonly enum: readonly ['available', 'linked', 'started'];
141
+ readonly join_request: {
142
+ readonly $ref: '#/$defs/id';
107
143
  };
108
- readonly meta: {
109
- readonly anyOf: readonly [{
110
- readonly const: 'keys';
111
- }, {
112
- readonly type: 'object';
113
- readonly additionalProperties: false;
114
- readonly properties: {
115
- readonly application: {
116
- readonly type: 'string';
117
- readonly pattern: '^\\d{1,32}$';
118
- };
119
- readonly configuration: {
120
- readonly type: 'string';
121
- readonly pattern: '^\\d{1,32}$';
122
- };
144
+ readonly user: {
145
+ readonly type: 'object';
146
+ readonly additionalProperties: false;
147
+ readonly properties: {
148
+ readonly name: {
149
+ readonly type: 'string';
123
150
  };
124
- readonly required: readonly ['application', 'configuration'];
125
- }];
126
- };
127
- readonly tiktok: {
128
- readonly enum: readonly ['available'];
129
- };
130
- readonly building: {
131
- readonly enum: readonly ['administrator'];
132
- };
133
- readonly full_house: {
134
- readonly const: true;
151
+ readonly email: {
152
+ readonly type: 'string';
153
+ readonly format: 'email';
154
+ };
155
+ };
156
+ readonly required: readonly ['name', 'email'];
135
157
  };
136
- readonly function_limits: {
158
+ readonly room: {
137
159
  readonly type: 'object';
138
160
  readonly additionalProperties: false;
139
161
  readonly properties: {
140
- readonly time_ms: {
141
- readonly type: 'integer';
142
- readonly exclusiveMinimum: 0;
162
+ readonly room: {
163
+ readonly $ref: '#/$defs/room';
143
164
  };
144
- readonly memory_bytes: {
145
- readonly type: 'integer';
146
- readonly exclusiveMinimum: 0;
165
+ readonly name: {
166
+ readonly type: 'string';
147
167
  };
148
- readonly external_calls: {
149
- readonly type: 'integer';
150
- readonly exclusiveMinimum: 0;
168
+ };
169
+ readonly minProperties: 1;
170
+ };
171
+ readonly app: {
172
+ readonly type: 'object';
173
+ readonly additionalProperties: false;
174
+ readonly properties: {
175
+ readonly app: {
176
+ readonly $ref: '#/$defs/app';
177
+ };
178
+ readonly name: {
179
+ readonly type: 'string';
151
180
  };
152
181
  };
153
- readonly required: readonly ['time_ms', 'memory_bytes', 'external_calls'];
182
+ readonly minProperties: 1;
154
183
  };
155
- };
156
- readonly required: readonly ['reflected', 'user', 'email_verified', 'notifications', 'created', 'function_limits'];
157
- };
158
- readonly 'house-agent': {
159
- readonly description: 'One registered Agent this User owns, with the `profile` and `environment` it binds, when it was `created` and, once it is, `retired`.';
160
- readonly properties: {
161
- readonly reflected: {
162
- readonly type: 'string';
163
- readonly format: 'date-time';
184
+ readonly release: {
185
+ readonly type: 'integer';
186
+ readonly minimum: 1;
164
187
  };
165
- readonly agent: {
188
+ readonly binding: {
166
189
  readonly $ref: '#/$defs/id';
167
190
  };
168
- readonly name: {
191
+ readonly slot: {
169
192
  readonly type: 'string';
170
193
  };
171
- readonly profile: {
172
- readonly $ref: '#/$defs/id';
194
+ readonly findings: {
195
+ readonly type: 'array';
196
+ readonly items: {
197
+ readonly type: 'string';
198
+ };
173
199
  };
174
- readonly environment: {
200
+ readonly caller: {
201
+ readonly type: 'object';
202
+ readonly additionalProperties: false;
203
+ readonly properties: {
204
+ readonly user: {
205
+ readonly $ref: '#/$defs/id';
206
+ };
207
+ readonly name: {
208
+ readonly type: 'string';
209
+ };
210
+ };
211
+ readonly required: readonly ['user', 'name'];
212
+ };
213
+ readonly ownership_offer: {
175
214
  readonly $ref: '#/$defs/id';
176
215
  };
177
- readonly launch_directory: {
178
- readonly type: 'string';
216
+ readonly offerer: {
217
+ readonly type: 'object';
218
+ readonly additionalProperties: false;
219
+ readonly properties: {
220
+ readonly name: {
221
+ readonly type: 'string';
222
+ };
223
+ readonly email: {
224
+ readonly type: 'string';
225
+ readonly format: 'email';
226
+ };
227
+ };
228
+ readonly required: readonly ['name', 'email'];
179
229
  };
180
- readonly created: {
230
+ readonly environment: {
231
+ readonly type: 'object';
232
+ readonly additionalProperties: false;
233
+ readonly properties: {
234
+ readonly environment: {
235
+ readonly $ref: '#/$defs/id';
236
+ };
237
+ readonly name: {
238
+ readonly type: 'string';
239
+ };
240
+ readonly kind: {
241
+ readonly enum: readonly ['vps', 'sandbox'];
242
+ };
243
+ };
244
+ readonly required: readonly ['environment', 'name'];
245
+ };
246
+ readonly reason: {
181
247
  readonly type: 'string';
182
- readonly format: 'date-time';
183
248
  };
184
- readonly retired: {
249
+ readonly deadline: {
185
250
  readonly type: 'string';
186
251
  readonly format: 'date-time';
187
252
  };
188
- };
189
- readonly required: readonly ['reflected', 'agent', 'name', 'profile', 'environment', 'launch_directory', 'created'];
190
- };
191
- readonly 'house-agent-profile': {
192
- readonly 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.';
193
- readonly properties: {
194
- readonly reflected: {
253
+ readonly operation_kind: {
195
254
  readonly type: 'string';
196
- readonly format: 'date-time';
197
255
  };
198
- readonly profile: {
199
- readonly $ref: '#/$defs/id';
256
+ readonly free: {
257
+ readonly type: 'object';
258
+ readonly additionalProperties: false;
259
+ readonly properties: {
260
+ readonly held: {
261
+ readonly type: 'string';
262
+ readonly pattern: '^\\d+$';
263
+ };
264
+ readonly limit: {
265
+ readonly type: 'string';
266
+ readonly pattern: '^[1-9]\\d*$';
267
+ };
268
+ readonly measure: {
269
+ readonly type: 'string';
270
+ readonly enum: readonly ['content', 'retained'];
271
+ };
272
+ };
273
+ readonly required: readonly ['held', 'limit', 'measure'];
200
274
  };
201
- readonly name: {
275
+ readonly budget: {
202
276
  readonly type: 'string';
277
+ readonly pattern: '^\\d+(?:\\.\\d+)?$';
203
278
  };
204
- readonly revision: {
205
- readonly type: 'integer';
206
- readonly minimum: 0;
207
- };
208
- readonly adapter_kind: {
279
+ readonly resets_at: {
209
280
  readonly type: 'string';
281
+ readonly format: 'date-time';
282
+ };
283
+ readonly grant: {
284
+ readonly $ref: '#/$defs/id';
210
285
  };
211
- readonly model: {
286
+ readonly category: {
212
287
  readonly type: 'string';
213
288
  };
214
- readonly effort: {
289
+ readonly access_started_at: {
215
290
  readonly type: 'string';
291
+ readonly format: 'date-time';
216
292
  };
217
- readonly mode: {
293
+ readonly access_ended_at: {
218
294
  readonly type: 'string';
295
+ readonly format: 'date-time';
219
296
  };
220
- readonly arguments: {
297
+ readonly systems: {
221
298
  readonly type: 'array';
222
299
  readonly items: {
223
300
  readonly type: 'string';
224
301
  };
225
302
  };
226
- };
227
- readonly required: readonly ['reflected', 'profile', 'name', 'revision'];
228
- };
229
- readonly 'house-app': {
230
- readonly 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.";
231
- readonly properties: {
232
- readonly reflected: {
303
+ readonly case_reference: {
233
304
  readonly type: 'string';
234
- readonly format: 'date-time';
235
305
  };
236
- readonly app: {
237
- readonly $ref: '#/$defs/app';
238
- };
239
- readonly address: {
240
- readonly type: 'string';
241
- readonly pattern: '^\\/app\\/a_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$';
242
- };
243
- readonly name: {
244
- readonly type: 'string';
245
- };
246
- readonly ownership: {
247
- readonly enum: readonly ['own', 'held'];
248
- };
249
- readonly owner: {
250
- readonly type: 'object';
251
- readonly additionalProperties: false;
252
- readonly properties: {
253
- readonly name: {
254
- readonly type: 'string';
255
- };
256
- };
257
- readonly required: readonly ['name'];
258
- };
259
- readonly my_app: {
260
- readonly const: true;
261
- };
262
- readonly created: {
263
- readonly type: 'string';
264
- readonly format: 'date-time';
265
- };
266
- readonly tab_icon_light: {
267
- readonly type: 'string';
268
- readonly pattern: '^data:image\\/';
269
- };
270
- readonly tab_icon_dark: {
271
- readonly type: 'string';
272
- readonly pattern: '^data:image\\/';
273
- };
274
- readonly tab_icon_colours: {
275
- readonly type: 'array';
276
- readonly items: {
277
- readonly type: 'string';
278
- readonly pattern: '^#[0-9a-f]{6}$';
279
- };
280
- };
281
- readonly tab_icon_blend: {
282
- readonly enum: readonly ['linear', 'radial'];
283
- };
284
- readonly tab_icon_angle: {
285
- readonly type: 'integer';
286
- readonly minimum: 0;
287
- readonly maximum: 359;
288
- };
289
- readonly latest_release: {
290
- readonly type: 'object';
291
- readonly additionalProperties: false;
292
- readonly properties: {
293
- readonly release: {
294
- readonly $ref: '#/$defs/id';
295
- };
296
- readonly sequence: {
297
- readonly type: 'integer';
298
- readonly exclusiveMinimum: 0;
299
- };
300
- };
301
- readonly required: readonly ['release', 'sequence'];
302
- };
303
- readonly external_origins: {
304
- readonly type: 'array';
305
- readonly items: {
306
- readonly type: 'string';
307
- readonly format: 'uri';
308
- };
309
- };
310
- readonly conversations: {
311
- readonly enum: readonly ['yes', 'no'];
312
- };
313
- readonly room_slots: {
314
- readonly type: 'array';
315
- readonly items: {
316
- readonly type: 'object';
317
- readonly additionalProperties: false;
318
- readonly properties: {
319
- readonly slot: {
320
- readonly type: 'string';
321
- };
322
- readonly access: {
323
- readonly enum: readonly ['read', 'write'];
324
- };
325
- readonly types: {
326
- readonly type: 'array';
327
- readonly items: {
328
- readonly type: 'string';
329
- };
330
- };
331
- };
332
- readonly required: readonly ['slot', 'access', 'types'];
333
- };
334
- };
335
- readonly functions: {
336
- readonly type: 'array';
337
- readonly items: {
338
- readonly type: 'string';
339
- };
340
- };
341
- readonly installations: {
342
- readonly type: 'array';
343
- readonly items: {
344
- readonly type: 'object';
345
- readonly additionalProperties: false;
346
- readonly properties: {
347
- readonly installation: {
348
- readonly $ref: '#/$defs/id';
349
- };
350
- readonly release: {
351
- readonly $ref: '#/$defs/id';
352
- };
353
- readonly created: {
354
- readonly type: 'string';
355
- readonly format: 'date-time';
356
- };
357
- };
358
- readonly required: readonly ['installation', 'release', 'created'];
359
- };
360
- };
361
- readonly holders: {
362
- readonly type: 'array';
363
- readonly items: {
364
- readonly type: 'object';
365
- readonly additionalProperties: false;
366
- readonly properties: {
367
- readonly user: {
368
- readonly $ref: '#/$defs/id';
369
- };
370
- readonly name: {
371
- readonly type: 'string';
372
- };
373
- readonly email: {
374
- readonly type: 'string';
375
- };
376
- };
377
- readonly required: readonly ['user', 'name', 'email'];
378
- };
379
- };
380
- readonly features: {
381
- readonly type: 'array';
382
- readonly items: {
383
- readonly type: 'object';
384
- readonly additionalProperties: false;
385
- readonly properties: {
386
- readonly feature: {
387
- readonly type: 'string';
388
- };
389
- readonly consent: {
390
- readonly enum: readonly ['allowed', 'denied'];
391
- };
392
- };
393
- readonly required: readonly ['feature', 'consent'];
394
- };
395
- };
396
- readonly features_version: {
397
- readonly type: 'integer';
398
- readonly exclusiveMinimum: 0;
399
- };
400
- };
401
- readonly required: readonly ['reflected', 'app', 'address', 'name', 'ownership', 'created'];
402
- };
403
- readonly 'house-app-preferences': {
404
- readonly description: "An App's preferences. Its own vocabulary is in the body.";
405
- readonly properties: {
406
- readonly app: {
407
- readonly $ref: '#/$defs/app';
408
- };
409
- };
410
- readonly required: readonly ['app'];
411
- };
412
- readonly 'house-app-room-binding': {
413
- readonly 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.";
414
- readonly properties: {
415
- readonly reflected: {
416
- readonly type: 'string';
417
- readonly format: 'date-time';
418
- };
419
- readonly app: {
420
- readonly $ref: '#/$defs/app';
421
- };
422
- readonly slot: {
423
- readonly type: 'string';
424
- readonly pattern: '^[a-z0-9]([a-z0-9-]*[a-z0-9])?$';
425
- };
426
- readonly types: {
427
- readonly type: 'array';
428
- readonly items: {
429
- readonly type: 'string';
430
- };
431
- };
432
- readonly slot_access: {
433
- readonly enum: readonly ['read', 'write'];
434
- };
435
- readonly shared_schema: {
436
- readonly type: 'object';
437
- readonly additionalProperties: false;
438
- readonly properties: {
439
- readonly shared_schema: {
440
- readonly $ref: '#/$defs/id';
441
- };
442
- readonly compatibility: {
443
- readonly enum: readonly ['unchecked', 'compatible', 'incompatible'];
444
- };
445
- readonly findings: {
446
- readonly type: 'array';
447
- readonly items: {
448
- readonly type: 'string';
449
- };
450
- };
451
- };
452
- readonly required: readonly ['shared_schema', 'compatibility', 'findings'];
453
- };
454
- readonly rooms: {
455
- readonly enum: readonly ['all', 'all_but_private'];
456
- };
457
- readonly left_out: {
458
- readonly type: 'integer';
459
- readonly minimum: 0;
460
- };
461
- readonly entries: {
462
- readonly type: 'array';
463
- readonly items: {
464
- readonly type: 'object';
465
- readonly additionalProperties: false;
466
- readonly properties: {
467
- readonly room: {
468
- readonly $ref: '#/$defs/room';
469
- };
470
- readonly compatibility: {
471
- readonly enum: readonly ['unchecked', 'compatible', 'incompatible'];
472
- };
473
- };
474
- readonly required: readonly ['room', 'compatibility'];
475
- };
476
- };
477
- readonly findings: {
478
- readonly type: 'array';
479
- readonly items: {
480
- readonly type: 'object';
481
- readonly additionalProperties: false;
482
- readonly properties: {
483
- readonly room: {
484
- readonly $ref: '#/$defs/room';
485
- };
486
- readonly finding: {
487
- readonly type: 'string';
488
- };
489
- };
490
- readonly required: readonly ['room', 'finding'];
491
- };
492
- };
493
- };
494
- readonly required: readonly ['reflected', 'app', 'slot'];
495
- };
496
- readonly 'house-client': {
497
- readonly description: 'One MCP client this User authorized, named as it was created. Its last use and whether its credentials expired are read on request.';
498
- readonly properties: {
499
- readonly reflected: {
500
- readonly type: 'string';
501
- readonly format: 'date-time';
502
- };
503
- readonly client: {
504
- readonly $ref: '#/$defs/id';
505
- };
506
- readonly name: {
507
- readonly type: 'string';
508
- };
509
- readonly kind: {
510
- readonly enum: readonly ['browser', 'headless'];
511
- };
512
- readonly created: {
513
- readonly type: 'string';
514
- readonly format: 'date-time';
515
- };
516
- readonly ended: {
517
- readonly type: 'string';
518
- readonly format: 'date-time';
519
- };
520
- readonly end: {
521
- readonly enum: readonly ['revoked'];
522
- };
523
- };
524
- readonly required: readonly ['reflected', 'client', 'name', 'kind', 'created'];
525
- };
526
- readonly 'house-environment': {
527
- readonly 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.";
528
- readonly properties: {
529
- readonly reflected: {
530
- readonly type: 'string';
531
- readonly format: 'date-time';
532
- };
533
- readonly environment: {
534
- readonly $ref: '#/$defs/id';
535
- };
536
- readonly name: {
537
- readonly type: 'string';
538
- };
539
- readonly created: {
540
- readonly type: 'string';
541
- readonly format: 'date-time';
542
- };
543
- readonly revoked: {
544
- readonly type: 'string';
545
- readonly format: 'date-time';
546
- };
547
- readonly reach: {
548
- readonly enum: readonly ['all', 'all_but_private', 'selected'];
549
- };
550
- readonly rooms: {
551
- readonly type: 'array';
552
- readonly items: {
553
- readonly type: 'object';
554
- readonly additionalProperties: false;
555
- readonly properties: {
556
- readonly room: {
557
- readonly $ref: '#/$defs/room';
558
- };
559
- };
560
- readonly required: readonly ['room'];
561
- };
562
- };
563
- readonly login_code: {
564
- readonly enum: readonly ['yes', 'no'];
565
- };
566
- readonly kind: {
567
- readonly enum: readonly ['sandbox', 'vps', 'own'];
568
- };
569
- readonly lifecycle: {
570
- readonly enum: readonly ['provisioning', 'starting', 'available', 'stopped', 'failed'];
571
- };
572
- readonly offered: {
573
- readonly type: 'array';
574
- readonly items: {
575
- readonly type: 'string';
576
- };
577
- };
578
- readonly wanted: {
579
- readonly type: 'array';
580
- readonly items: {
581
- readonly type: 'string';
582
- };
583
- };
584
- readonly agents: {
585
- readonly type: 'array';
586
- readonly items: {
587
- readonly type: 'object';
588
- readonly additionalProperties: false;
589
- readonly properties: {
590
- readonly kind: {
591
- readonly type: 'string';
592
- readonly minLength: 1;
593
- readonly maxLength: 64;
594
- };
595
- readonly version: {
596
- readonly anyOf: readonly [{
597
- readonly type: 'string';
598
- readonly minLength: 1;
599
- readonly maxLength: 64;
600
- }, {
601
- readonly type: 'null';
602
- }];
603
- };
604
- readonly minimum: {
605
- readonly description: "Present only for a CLI below its adapter's minimum version: that minimum.";
606
- readonly type: 'string';
607
- readonly minLength: 1;
608
- readonly maxLength: 64;
609
- };
610
- readonly failure: {
611
- readonly anyOf: readonly [{
612
- readonly type: 'string';
613
- readonly minLength: 1;
614
- readonly maxLength: 4096;
615
- }, {
616
- readonly type: 'null';
617
- }];
618
- };
619
- readonly installing: {
620
- readonly description: 'Present only while the Kit installs the CLI, whose version and failure are then null.';
621
- readonly type: 'boolean';
622
- readonly const: true;
623
- };
624
- readonly signed_in: {
625
- readonly type: 'boolean';
626
- };
627
- readonly models: {
628
- readonly maxItems: 256;
629
- readonly type: 'array';
630
- readonly items: {
631
- readonly type: 'object';
632
- readonly additionalProperties: false;
633
- readonly properties: {
634
- readonly model: {
635
- readonly type: 'string';
636
- readonly minLength: 1;
637
- };
638
- readonly efforts: {
639
- readonly maxItems: 32;
640
- readonly type: 'array';
641
- readonly items: {
642
- readonly type: 'string';
643
- readonly minLength: 1;
644
- };
645
- };
646
- };
647
- readonly required: readonly ['model', 'efforts'];
648
- };
649
- };
650
- readonly modes: {
651
- readonly maxItems: 32;
652
- readonly type: 'array';
653
- readonly items: {
654
- readonly type: 'object';
655
- readonly additionalProperties: false;
656
- readonly properties: {
657
- readonly mode: {
658
- readonly type: 'string';
659
- readonly minLength: 1;
660
- };
661
- readonly name: {
662
- readonly type: 'string';
663
- readonly minLength: 1;
664
- readonly maxLength: 128;
665
- };
666
- };
667
- readonly required: readonly ['mode', 'name'];
668
- };
669
- };
670
- readonly full_access: {
671
- readonly anyOf: readonly [{
672
- readonly type: 'string';
673
- readonly minLength: 1;
674
- }, {
675
- readonly type: 'null';
676
- }];
677
- };
678
- };
679
- readonly required: readonly ['kind', 'version', 'failure', 'signed_in', 'models', 'modes', 'full_access'];
680
- };
681
- };
682
- readonly transcribe: {
683
- readonly enum: readonly ['on', 'off'];
684
- };
685
- readonly transcription: {
686
- readonly type: 'object';
687
- readonly additionalProperties: false;
688
- readonly properties: {
689
- readonly installed: {
690
- readonly type: 'boolean';
691
- };
692
- readonly failure: {
693
- readonly anyOf: readonly [{
694
- readonly type: 'string';
695
- readonly minLength: 1;
696
- readonly maxLength: 4096;
697
- }, {
698
- readonly type: 'null';
699
- }];
700
- };
701
- };
702
- readonly required: readonly ['installed', 'failure'];
703
- };
704
- readonly os: {
705
- readonly type: 'string';
706
- };
707
- readonly kit_release: {
708
- readonly type: 'string';
709
- };
710
- readonly form: {
711
- readonly enum: readonly ['laptop', 'desktop', 'server'];
712
- };
713
- readonly failed: {
714
- readonly enum: readonly ['provisioning_failed', 'bootstrap_timeout', 'provider_capacity', 'provider_unavailable', 'provider_removed', 'placement_conflict', 'placement_intervention', 'environment_authority_unavailable'];
715
- };
716
- readonly budget: {
717
- readonly type: 'string';
718
- readonly pattern: '^\\d+(?:\\.\\d+)?$';
719
- };
720
- readonly budget_spent: {
721
- readonly enum: readonly ['yes', 'no'];
722
- };
723
- readonly ssh: {
724
- readonly type: 'string';
725
- readonly pattern: '^root@\\S+$';
726
- };
727
- };
728
- readonly required: readonly ['reflected', 'environment', 'name', 'created', 'reach', 'kind', 'offered', 'transcribe'];
729
- };
730
- readonly 'house-exports': {
731
- readonly 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`.";
732
- readonly properties: {
733
- readonly reflected: {
734
- readonly type: 'string';
735
- readonly format: 'date-time';
736
- };
737
- readonly exports: {
738
- readonly type: 'array';
739
- readonly items: {
740
- readonly type: 'object';
741
- readonly additionalProperties: false;
742
- readonly properties: {
743
- readonly export: {
744
- readonly $ref: '#/$defs/id';
745
- };
746
- readonly status: {
747
- readonly enum: readonly ['queued', 'running', 'ready', 'failed'];
748
- };
749
- readonly created: {
750
- readonly type: 'string';
751
- readonly format: 'date-time';
752
- };
753
- readonly expires: {
754
- readonly type: 'string';
755
- readonly format: 'date-time';
756
- };
757
- readonly page: {
758
- readonly type: 'string';
759
- readonly pattern: '^\\/exports\\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$';
760
- };
761
- };
762
- readonly required: readonly ['export', 'status', 'created'];
763
- };
764
- };
765
- };
766
- readonly required: readonly ['reflected'];
767
- };
768
- readonly 'house-member': {
769
- readonly 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.";
770
- readonly properties: {
771
- readonly reflected: {
772
- readonly type: 'string';
773
- readonly format: 'date-time';
774
- };
775
- readonly user: {
776
- readonly $ref: '#/$defs/id';
777
- };
778
- readonly name: {
779
- readonly type: 'string';
780
- };
781
- readonly about_me: {
782
- readonly type: 'string';
783
- };
784
- };
785
- readonly required: readonly ['reflected', 'user', 'name'];
786
- };
787
- readonly 'house-notification': {
788
- readonly 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.";
789
- readonly properties: {
790
- readonly notification: {
791
- readonly $ref: '#/$defs/id';
792
- };
793
- readonly kind: {
794
- readonly type: 'string';
795
- readonly enum: readonly ['share-offer', 'join-request', 'join-request-approved', 'app-room-binding-incompatible', 'app-deleted', 'app-call', 'room-ownership-offer', 'managed-environment-retention-opened', 'managed-environment-placement-intervention', 'storage-full', 'sandbox-budget-spent', 'break-glass-owner-disclosure', 'routine-start-approval-request', 'routine-request-declined', 'routine-request-started', 'routine-request-finished', 'routine-request-not-started', 'export-ready', 'export-failed', 'site-disabled', 'site-binding-incompatible', 'site-room-left', 'site-images-full', 'custom', 'trigger-did-nothing', 'function-failed'];
796
- };
797
- readonly created: {
798
- readonly type: 'string';
799
- readonly format: 'date-time';
800
- };
801
- readonly way_in: {
802
- readonly type: 'object';
803
- readonly additionalProperties: false;
804
- readonly properties: {
805
- readonly path: {
806
- readonly type: 'string';
807
- readonly pattern: '^\\/';
808
- };
809
- readonly room: {
810
- readonly $ref: '#/$defs/room';
811
- };
812
- readonly app: {
813
- readonly $ref: '#/$defs/app';
814
- };
815
- readonly agent: {
816
- readonly $ref: '#/$defs/id';
817
- };
818
- readonly environment: {
819
- readonly $ref: '#/$defs/id';
820
- };
821
- readonly routine: {
822
- readonly $ref: '#/$defs/id';
823
- };
824
- readonly routine_request: {
825
- readonly $ref: '#/$defs/id';
826
- };
827
- readonly trigger: {
828
- readonly $ref: '#/$defs/id';
829
- };
830
- readonly site: {
831
- readonly $ref: '#/$defs/id';
832
- };
833
- };
834
- readonly minProperties: 1;
835
- };
836
- readonly subject: {
837
- readonly type: 'string';
838
- };
839
- readonly share: {
840
- readonly $ref: '#/$defs/id';
841
- };
842
- readonly issuer: {
843
- readonly type: 'object';
844
- readonly additionalProperties: false;
845
- readonly properties: {
846
- readonly name: {
847
- readonly type: 'string';
848
- };
849
- readonly email: {
850
- readonly type: 'string';
851
- readonly format: 'email';
852
- };
853
- };
854
- readonly required: readonly ['name', 'email'];
855
- };
856
- readonly rooms: {
857
- readonly type: 'array';
858
- readonly items: {
859
- readonly type: 'object';
860
- readonly additionalProperties: false;
861
- readonly properties: {
862
- readonly name: {
863
- readonly type: 'string';
864
- };
865
- };
866
- readonly required: readonly ['name'];
867
- };
868
- };
869
- readonly apps: {
870
- readonly maxItems: 20;
871
- readonly type: 'array';
872
- readonly items: {
873
- readonly type: 'object';
874
- readonly additionalProperties: false;
875
- readonly properties: {
876
- readonly name: {
877
- readonly type: 'string';
878
- readonly minLength: 1;
879
- readonly maxLength: 200;
880
- };
881
- readonly reaches: {
882
- readonly type: 'array';
883
- readonly items: {
884
- readonly type: 'string';
885
- readonly minLength: 1;
886
- readonly maxLength: 512;
887
- };
888
- };
889
- };
890
- readonly required: readonly ['name', 'reaches'];
891
- };
892
- };
893
- readonly expires_at: {
894
- readonly type: 'string';
895
- readonly format: 'date-time';
896
- };
897
- readonly join_request: {
898
- readonly $ref: '#/$defs/id';
899
- };
900
- readonly user: {
901
- readonly type: 'object';
902
- readonly additionalProperties: false;
903
- readonly properties: {
904
- readonly name: {
905
- readonly type: 'string';
906
- };
907
- readonly email: {
908
- readonly type: 'string';
909
- readonly format: 'email';
910
- };
911
- };
912
- readonly required: readonly ['name', 'email'];
913
- };
914
- readonly room: {
915
- readonly type: 'object';
916
- readonly additionalProperties: false;
917
- readonly properties: {
918
- readonly room: {
919
- readonly $ref: '#/$defs/room';
920
- };
921
- readonly name: {
922
- readonly type: 'string';
923
- };
924
- };
925
- readonly minProperties: 1;
926
- };
927
- readonly app: {
928
- readonly type: 'object';
929
- readonly additionalProperties: false;
930
- readonly properties: {
931
- readonly app: {
932
- readonly $ref: '#/$defs/app';
933
- };
934
- readonly name: {
935
- readonly type: 'string';
936
- };
937
- };
938
- readonly minProperties: 1;
939
- };
940
- readonly binding: {
941
- readonly $ref: '#/$defs/id';
942
- };
943
- readonly slot: {
944
- readonly type: 'string';
945
- };
946
- readonly findings: {
947
- readonly type: 'array';
948
- readonly items: {
949
- readonly type: 'string';
950
- };
951
- };
952
- readonly owner: {
953
- readonly type: 'object';
954
- readonly additionalProperties: false;
955
- readonly properties: {
956
- readonly name: {
957
- readonly type: 'string';
958
- };
959
- };
960
- readonly required: readonly ['name'];
961
- };
962
- readonly caller: {
963
- readonly type: 'object';
964
- readonly additionalProperties: false;
965
- readonly properties: {
966
- readonly user: {
967
- readonly $ref: '#/$defs/id';
968
- };
969
- readonly name: {
970
- readonly type: 'string';
971
- };
972
- };
973
- readonly required: readonly ['user', 'name'];
974
- };
975
- readonly ownership_offer: {
976
- readonly $ref: '#/$defs/id';
977
- };
978
- readonly offerer: {
979
- readonly type: 'object';
980
- readonly additionalProperties: false;
981
- readonly properties: {
982
- readonly name: {
983
- readonly type: 'string';
984
- };
985
- readonly email: {
986
- readonly type: 'string';
987
- readonly format: 'email';
988
- };
989
- };
990
- readonly required: readonly ['name', 'email'];
991
- };
992
- readonly environment: {
993
- readonly type: 'object';
994
- readonly additionalProperties: false;
995
- readonly properties: {
996
- readonly environment: {
997
- readonly $ref: '#/$defs/id';
998
- };
999
- readonly name: {
1000
- readonly type: 'string';
1001
- };
1002
- readonly kind: {
1003
- readonly enum: readonly ['vps', 'sandbox'];
1004
- };
1005
- };
1006
- readonly required: readonly ['environment', 'name'];
1007
- };
1008
- readonly reason: {
1009
- readonly type: 'string';
1010
- };
1011
- readonly deadline: {
1012
- readonly type: 'string';
1013
- readonly format: 'date-time';
1014
- };
1015
- readonly operation_kind: {
1016
- readonly type: 'string';
1017
- };
1018
- readonly free: {
1019
- readonly type: 'object';
1020
- readonly additionalProperties: false;
1021
- readonly properties: {
1022
- readonly held: {
1023
- readonly type: 'string';
1024
- readonly pattern: '^\\d+$';
1025
- };
1026
- readonly limit: {
1027
- readonly type: 'string';
1028
- readonly pattern: '^[1-9]\\d*$';
1029
- };
1030
- readonly measure: {
1031
- readonly type: 'string';
1032
- readonly enum: readonly ['content', 'retained'];
1033
- };
1034
- };
1035
- readonly required: readonly ['held', 'limit', 'measure'];
1036
- };
1037
- readonly budget: {
1038
- readonly type: 'string';
1039
- readonly pattern: '^\\d+(?:\\.\\d+)?$';
1040
- };
1041
- readonly resets_at: {
1042
- readonly type: 'string';
1043
- readonly format: 'date-time';
1044
- };
1045
- readonly grant: {
1046
- readonly $ref: '#/$defs/id';
1047
- };
1048
- readonly category: {
1049
- readonly type: 'string';
1050
- };
1051
- readonly access_started_at: {
1052
- readonly type: 'string';
1053
- readonly format: 'date-time';
1054
- };
1055
- readonly access_ended_at: {
1056
- readonly type: 'string';
1057
- readonly format: 'date-time';
1058
- };
1059
- readonly systems: {
1060
- readonly type: 'array';
1061
- readonly items: {
1062
- readonly type: 'string';
1063
- };
1064
- };
1065
- readonly case_reference: {
1066
- readonly type: 'string';
1067
- };
1068
- readonly routine_request: {
1069
- readonly $ref: '#/$defs/id';
1070
- };
1071
- readonly requester: {
1072
- readonly type: 'object';
1073
- readonly additionalProperties: false;
1074
- readonly properties: {
1075
- readonly name: {
1076
- readonly type: 'string';
1077
- };
1078
- };
1079
- readonly required: readonly ['name'];
1080
- };
1081
- readonly agent: {
1082
- readonly type: 'object';
1083
- readonly additionalProperties: false;
1084
- readonly properties: {
1085
- readonly agent: {
1086
- readonly $ref: '#/$defs/id';
1087
- };
1088
- readonly name: {
1089
- readonly type: 'string';
1090
- };
1091
- };
1092
- readonly required: readonly ['name'];
1093
- };
1094
- readonly conversation: {
1095
- readonly $ref: '#/$defs/id';
1096
- };
1097
- readonly routine: {
1098
- readonly type: 'object';
1099
- readonly additionalProperties: false;
1100
- readonly properties: {
1101
- readonly routine: {
1102
- readonly $ref: '#/$defs/id';
1103
- };
1104
- readonly name: {
1105
- readonly type: 'string';
1106
- };
1107
- readonly version: {
1108
- readonly type: 'integer';
1109
- readonly minimum: 1;
1110
- };
1111
- };
1112
- readonly required: readonly ['name'];
1113
- };
1114
- readonly decliner: {
1115
- readonly type: 'object';
1116
- readonly additionalProperties: false;
1117
- readonly properties: {
1118
- readonly name: {
1119
- readonly type: 'string';
1120
- };
1121
- };
1122
- readonly required: readonly ['name'];
1123
- };
1124
- readonly input: {
1125
- readonly type: 'string';
1126
- };
1127
- readonly export: {
1128
- readonly $ref: '#/$defs/id';
1129
- };
1130
- readonly size_bytes: {
1131
- readonly type: 'integer';
1132
- readonly minimum: 0;
1133
- };
1134
- readonly site: {
1135
- readonly type: 'object';
1136
- readonly additionalProperties: false;
1137
- readonly properties: {
1138
- readonly site: {
1139
- readonly $ref: '#/$defs/id';
1140
- };
1141
- readonly name: {
1142
- readonly type: 'string';
1143
- };
1144
- };
1145
- readonly required: readonly ['site', 'name'];
1146
- };
1147
- readonly address: {
1148
- readonly type: 'string';
1149
- readonly maxLength: 300;
1150
- readonly format: 'uri';
1151
- };
1152
- readonly to: {
1153
- readonly type: 'object';
1154
- readonly additionalProperties: false;
1155
- readonly properties: {
1156
- readonly name: {
1157
- readonly type: 'string';
1158
- };
1159
- };
1160
- readonly required: readonly ['name'];
1161
- };
1162
- readonly copies: {
1163
- readonly type: 'integer';
1164
- readonly minimum: 0;
1165
- };
1166
- readonly bound: {
1167
- readonly type: 'integer';
1168
- readonly minimum: 0;
1169
- };
1170
- readonly title: {
1171
- readonly type: 'string';
1172
- };
1173
- readonly body: {
1174
- readonly type: 'string';
1175
- };
1176
- readonly authorship: {
1177
- readonly type: 'object';
1178
- readonly additionalProperties: false;
1179
- readonly properties: {
1180
- readonly kind: {
1181
- readonly type: 'string';
1182
- readonly const: 'trigger-action';
1183
- };
1184
- readonly trigger: {
1185
- readonly $ref: '#/$defs/id';
1186
- };
1187
- readonly position: {
1188
- readonly type: 'integer';
1189
- readonly minimum: 0;
1190
- };
1191
- };
1192
- readonly required: readonly ['kind', 'trigger', 'position'];
1193
- };
1194
- readonly path: {
1195
- readonly type: 'string';
1196
- readonly maxLength: 4096;
1197
- readonly pattern: '^\\/.*';
1198
- };
1199
- readonly trigger: {
1200
- readonly type: 'object';
1201
- readonly additionalProperties: false;
1202
- readonly properties: {
1203
- readonly trigger: {
1204
- readonly $ref: '#/$defs/id';
1205
- };
1206
- readonly name: {
1207
- readonly type: 'string';
1208
- };
1209
- };
1210
- readonly required: readonly ['trigger', 'name'];
1211
- };
1212
- readonly cause: {
1213
- readonly type: 'string';
1214
- };
1215
- readonly function: {
1216
- readonly type: 'string';
1217
- };
1218
- readonly error: {
1219
- readonly type: 'string';
1220
- };
1221
- };
1222
- readonly required: readonly ['notification', 'kind', 'created', 'way_in', 'subject'];
1223
- };
1224
- readonly 'house-panel-preferences': {
1225
- readonly description: "The panel's preferences at /rooms/private/settings/panel.md. Its own vocabulary is in the body.";
1226
- readonly properties: {};
1227
- };
1228
- readonly 'house-profile': {
1229
- readonly description: "The User's display name, the email they sign in with and accepted about-me Markdown.";
1230
- readonly properties: {
1231
- readonly reflected: {
1232
- readonly type: 'string';
1233
- readonly format: 'date-time';
1234
- };
1235
- readonly name: {
1236
- readonly type: 'string';
1237
- };
1238
- readonly email: {
1239
- readonly type: 'string';
1240
- };
1241
- readonly about_me: {
1242
- readonly type: 'string';
1243
- };
1244
- };
1245
- readonly required: readonly ['reflected', 'name', 'email'];
1246
- };
1247
- readonly 'house-public-room': {
1248
- readonly 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.';
1249
- readonly properties: {
1250
- readonly reflected: {
1251
- readonly type: 'string';
1252
- readonly format: 'date-time';
1253
- };
1254
- readonly room: {
1255
- readonly $ref: '#/$defs/room';
1256
- };
1257
- readonly handle: {
1258
- readonly type: 'string';
1259
- readonly minLength: 6;
1260
- readonly maxLength: 63;
1261
- readonly pattern: '^[a-z0-9]+(?:-[a-z0-9]+)*$';
1262
- };
1263
- readonly name: {
1264
- readonly type: 'string';
1265
- };
1266
- readonly archived: {
1267
- readonly type: 'string';
1268
- readonly format: 'date-time';
1269
- };
1270
- };
1271
- readonly required: readonly ['reflected', 'room', 'handle', 'name'];
1272
- };
1273
- readonly 'house-room': {
1274
- readonly 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.";
1275
- readonly properties: {
1276
- readonly reflected: {
1277
- readonly type: 'string';
1278
- readonly format: 'date-time';
1279
- };
1280
- readonly room: {
1281
- readonly $ref: '#/$defs/room';
1282
- };
1283
- readonly handle: {
1284
- readonly type: 'string';
1285
- readonly minLength: 6;
1286
- readonly maxLength: 63;
1287
- readonly pattern: '^[a-z0-9]+(?:-[a-z0-9]+)*$';
1288
- };
1289
- readonly name: {
1290
- readonly type: 'string';
1291
- };
1292
- readonly my_room: {
1293
- readonly const: true;
1294
- };
1295
- readonly membership: {
1296
- readonly enum: readonly ['owner', 'member'];
1297
- };
1298
- readonly ownership_offer: {
1299
- readonly type: 'object';
1300
- readonly additionalProperties: false;
1301
- readonly properties: {
1302
- readonly nominee: {
1303
- readonly type: 'object';
1304
- readonly additionalProperties: false;
1305
- readonly properties: {
1306
- readonly user: {
1307
- readonly $ref: '#/$defs/id';
1308
- };
1309
- readonly name: {
1310
- readonly type: 'string';
1311
- };
1312
- };
1313
- readonly required: readonly ['user', 'name'];
1314
- };
1315
- readonly expires: {
1316
- readonly type: 'string';
1317
- readonly format: 'date-time';
1318
- };
1319
- };
1320
- readonly required: readonly ['nominee', 'expires'];
1321
- };
1322
- readonly access: {
1323
- readonly enum: readonly ['owner', 'manage', 'edit', 'keep', 'open', 'search'];
1324
- };
1325
- readonly level: {
1326
- readonly enum: readonly ['search', 'open', 'keep'];
1327
- };
1328
- readonly only_while_online: {
1329
- readonly const: true;
1330
- };
1331
- readonly operations: {
1332
- readonly type: 'array';
1333
- readonly items: {
1334
- readonly type: 'string';
1335
- readonly enum: readonly ['write', 'delete', 'export', 'manageAccess'];
1336
- };
306
+ readonly agent_function_request: {
307
+ readonly $ref: '#/$defs/id';
1337
308
  };
1338
- readonly owner: {
309
+ readonly requester: {
1339
310
  readonly type: 'object';
1340
311
  readonly additionalProperties: false;
1341
312
  readonly properties: {
@@ -1345,268 +316,6 @@ export declare const HOUSE_MODEL_DECLARATION: {
1345
316
  };
1346
317
  readonly required: readonly ['name'];
1347
318
  };
1348
- readonly members: {
1349
- readonly type: 'integer';
1350
- readonly minimum: 0;
1351
- };
1352
- readonly triggers: {
1353
- readonly type: 'integer';
1354
- readonly minimum: 0;
1355
- };
1356
- readonly published: {
1357
- readonly enum: readonly ['yes', 'no'];
1358
- };
1359
- readonly intake: {
1360
- readonly enum: readonly ['yes', 'no'];
1361
- };
1362
- readonly size: {
1363
- readonly type: 'number';
1364
- };
1365
- readonly admission: {
1366
- readonly enum: readonly ['admitted', 'pending'];
1367
- };
1368
- readonly created: {
1369
- readonly type: 'string';
1370
- readonly format: 'date-time';
1371
- };
1372
- readonly archived: {
1373
- readonly type: 'string';
1374
- readonly format: 'date-time';
1375
- };
1376
- readonly public: {
1377
- readonly type: 'string';
1378
- readonly format: 'date-time';
1379
- };
1380
- readonly policy: {
1381
- readonly enum: readonly ['On', 'Off'];
1382
- };
1383
- readonly indexing: {
1384
- readonly type: 'array';
1385
- readonly items: {
1386
- readonly type: 'object';
1387
- readonly additionalProperties: false;
1388
- readonly properties: {
1389
- readonly path: {
1390
- readonly type: 'string';
1391
- readonly minLength: 1;
1392
- };
1393
- readonly policy: {
1394
- readonly enum: readonly ['On', 'Off'];
1395
- };
1396
- };
1397
- readonly required: readonly ['path', 'policy'];
1398
- };
1399
- };
1400
- readonly shared_schema: {
1401
- readonly type: 'object';
1402
- readonly additionalProperties: false;
1403
- readonly properties: {
1404
- readonly shared_schema: {
1405
- readonly $ref: '#/$defs/id';
1406
- };
1407
- readonly name: {
1408
- readonly type: 'string';
1409
- };
1410
- };
1411
- readonly required: readonly ['shared_schema', 'name'];
1412
- };
1413
- readonly roster: {
1414
- readonly type: 'array';
1415
- readonly items: {
1416
- readonly type: 'object';
1417
- readonly additionalProperties: false;
1418
- readonly properties: {
1419
- readonly user: {
1420
- readonly $ref: '#/$defs/id';
1421
- };
1422
- readonly name: {
1423
- readonly type: 'string';
1424
- };
1425
- readonly owner: {
1426
- readonly type: 'boolean';
1427
- };
1428
- readonly email: {
1429
- readonly type: 'string';
1430
- };
1431
- readonly admitted: {
1432
- readonly type: 'string';
1433
- readonly format: 'date-time';
1434
- };
1435
- readonly access: {
1436
- readonly type: 'string';
1437
- readonly enum: readonly ['owner', 'manage', 'edit', 'keep', 'open', 'search'];
1438
- };
1439
- readonly only_while_online: {
1440
- readonly const: true;
1441
- };
1442
- readonly document: {
1443
- readonly $ref: '#/$defs/document';
1444
- };
1445
- readonly schema_roles: {
1446
- readonly type: 'array';
1447
- readonly items: {
1448
- readonly type: 'string';
1449
- };
1450
- };
1451
- readonly held: {
1452
- readonly type: 'object';
1453
- readonly additionalProperties: false;
1454
- readonly properties: {
1455
- readonly level: {
1456
- readonly anyOf: readonly [{
1457
- readonly type: 'string';
1458
- readonly enum: readonly ['search', 'open', 'keep'];
1459
- }, {
1460
- readonly type: 'null';
1461
- }];
1462
- };
1463
- readonly operations: {
1464
- readonly type: 'array';
1465
- readonly items: {
1466
- readonly type: 'string';
1467
- readonly enum: readonly ['write', 'delete', 'export', 'manageAccess'];
1468
- };
1469
- };
1470
- };
1471
- readonly required: readonly ['level', 'operations'];
1472
- };
1473
- };
1474
- readonly required: readonly ['user', 'name', 'owner', 'email'];
1475
- };
1476
- };
1477
- readonly rights: {
1478
- readonly type: 'array';
1479
- readonly items: {
1480
- readonly type: 'object';
1481
- readonly additionalProperties: false;
1482
- readonly properties: {
1483
- readonly user: {
1484
- readonly $ref: '#/$defs/id';
1485
- };
1486
- readonly name: {
1487
- readonly type: 'string';
1488
- };
1489
- readonly entries: {
1490
- readonly type: 'array';
1491
- readonly items: {
1492
- readonly type: 'object';
1493
- readonly additionalProperties: false;
1494
- readonly properties: {
1495
- readonly namespace: {
1496
- readonly $ref: '#/$defs/namespace';
1497
- };
1498
- readonly level: {
1499
- readonly anyOf: readonly [{
1500
- readonly type: 'string';
1501
- readonly enum: readonly ['search', 'open', 'keep'];
1502
- }, {
1503
- readonly type: 'null';
1504
- }];
1505
- };
1506
- readonly operations: {
1507
- readonly type: 'array';
1508
- readonly items: {
1509
- readonly type: 'string';
1510
- readonly enum: readonly ['write', 'delete', 'export', 'manageAccess'];
1511
- };
1512
- };
1513
- readonly sources: {
1514
- readonly type: 'array';
1515
- readonly items: {
1516
- readonly type: 'object';
1517
- readonly additionalProperties: false;
1518
- readonly properties: {
1519
- readonly kind: {
1520
- readonly type: 'string';
1521
- readonly enum: readonly ['direct', 'inherited'];
1522
- };
1523
- readonly namespace: {
1524
- readonly $ref: '#/$defs/namespace';
1525
- };
1526
- readonly level: {
1527
- readonly anyOf: readonly [{
1528
- readonly type: 'string';
1529
- readonly enum: readonly ['search', 'open', 'keep'];
1530
- }, {
1531
- readonly type: 'null';
1532
- }];
1533
- };
1534
- readonly operations: {
1535
- readonly type: 'array';
1536
- readonly items: {
1537
- readonly type: 'string';
1538
- readonly enum: readonly ['write', 'delete', 'export', 'manageAccess'];
1539
- };
1540
- };
1541
- };
1542
- readonly required: readonly ['kind', 'namespace', 'level', 'operations'];
1543
- };
1544
- };
1545
- };
1546
- readonly required: readonly ['namespace', 'level', 'operations', 'sources'];
1547
- };
1548
- };
1549
- readonly direct: {
1550
- readonly type: 'array';
1551
- readonly items: {
1552
- readonly type: 'object';
1553
- readonly additionalProperties: false;
1554
- readonly properties: {
1555
- readonly namespace: {
1556
- readonly $ref: '#/$defs/namespace';
1557
- };
1558
- readonly level: {
1559
- readonly anyOf: readonly [{
1560
- readonly type: 'string';
1561
- readonly enum: readonly ['search', 'open', 'keep'];
1562
- }, {
1563
- readonly type: 'null';
1564
- }];
1565
- };
1566
- readonly operations: {
1567
- readonly type: 'array';
1568
- readonly items: {
1569
- readonly type: 'string';
1570
- readonly enum: readonly ['write', 'delete', 'export', 'manageAccess'];
1571
- };
1572
- };
1573
- };
1574
- readonly required: readonly ['namespace', 'level', 'operations'];
1575
- };
1576
- };
1577
- readonly admitted: {
1578
- readonly type: 'string';
1579
- readonly format: 'date-time';
1580
- };
1581
- readonly schema_roles: {
1582
- readonly type: 'array';
1583
- readonly items: {
1584
- readonly type: 'string';
1585
- };
1586
- };
1587
- };
1588
- readonly required: readonly ['user', 'name', 'entries', 'direct', 'schema_roles'];
1589
- };
1590
- };
1591
- };
1592
- readonly required: readonly ['reflected', 'room', 'name', 'membership', 'access', 'admission', 'created', 'policy'];
1593
- };
1594
- readonly 'house-routine': {
1595
- readonly 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.";
1596
- readonly properties: {
1597
- readonly reflected: {
1598
- readonly type: 'string';
1599
- readonly format: 'date-time';
1600
- };
1601
- readonly routine: {
1602
- readonly $ref: '#/$defs/id';
1603
- };
1604
- readonly description: {
1605
- readonly type: 'string';
1606
- };
1607
- readonly input: {
1608
- readonly type: 'string';
1609
- };
1610
319
  readonly agent: {
1611
320
  readonly type: 'object';
1612
321
  readonly additionalProperties: false;
@@ -1614,275 +323,149 @@ export declare const HOUSE_MODEL_DECLARATION: {
1614
323
  readonly agent: {
1615
324
  readonly $ref: '#/$defs/id';
1616
325
  };
1617
- readonly name: {
1618
- readonly type: 'string';
1619
- };
1620
- };
1621
- readonly required: readonly ['agent', 'name'];
1622
- };
1623
- };
1624
- readonly required: readonly ['reflected', 'routine', 'description', 'input', 'agent'];
1625
- };
1626
- readonly 'house-site': {
1627
- readonly description: "One Site this User owns: its `name`, its address under this environment's Site suffix, its own `app`, the tab icon it shows, the one this User set for the Site while `tab_icon_from` is `site` and that App's while it is `app`, 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, and is absent on a Building that offers no Public overage. `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.";
1628
- readonly properties: {
1629
- readonly reflected: {
1630
- readonly type: 'string';
1631
- readonly format: 'date-time';
1632
- };
1633
- readonly site: {
1634
- readonly $ref: '#/$defs/id';
1635
- };
1636
- readonly name: {
1637
- readonly type: 'string';
1638
- };
1639
- readonly address: {
1640
- readonly type: 'string';
1641
- readonly format: 'uri';
1642
- };
1643
- readonly addresses: {
1644
- readonly type: 'array';
1645
- readonly items: {
1646
- readonly type: 'string';
1647
- readonly format: 'uri';
1648
- };
1649
- };
1650
- readonly primary_address: {
1651
- readonly type: 'string';
1652
- readonly format: 'uri';
1653
- };
1654
- readonly domains: {
1655
- readonly type: 'array';
1656
- readonly items: {
1657
- readonly type: 'object';
1658
- readonly additionalProperties: false;
1659
- readonly properties: {
1660
- readonly host: {
1661
- readonly type: 'string';
1662
- };
1663
- readonly state: {
1664
- readonly enum: readonly ['pending', 'active', 'failed'];
1665
- };
1666
- readonly dns_target: {
1667
- readonly type: 'string';
1668
- };
1669
- readonly reason: {
1670
- readonly type: 'string';
1671
- };
1672
- };
1673
- readonly required: readonly ['host', 'state', 'dns_target'];
326
+ readonly name: {
327
+ readonly type: 'string';
328
+ };
1674
329
  };
330
+ readonly required: readonly ['name'];
1675
331
  };
1676
- readonly app: {
1677
- readonly $ref: '#/$defs/app';
1678
- };
1679
- readonly tab_icon_light: {
1680
- readonly type: 'string';
1681
- readonly pattern: '^data:image\\/';
1682
- };
1683
- readonly tab_icon_dark: {
1684
- readonly type: 'string';
1685
- readonly pattern: '^data:image\\/';
332
+ readonly conversation: {
333
+ readonly $ref: '#/$defs/id';
1686
334
  };
1687
- readonly tab_icon_colours: {
1688
- readonly type: 'array';
1689
- readonly items: {
1690
- readonly type: 'string';
1691
- readonly pattern: '^#[0-9a-f]{6}$';
335
+ readonly agent_function: {
336
+ readonly type: 'object';
337
+ readonly additionalProperties: false;
338
+ readonly properties: {
339
+ readonly name: {
340
+ readonly type: 'string';
341
+ };
342
+ readonly version: {
343
+ readonly type: 'integer';
344
+ readonly minimum: 1;
345
+ };
1692
346
  };
347
+ readonly required: readonly ['name'];
1693
348
  };
1694
- readonly tab_icon_blend: {
1695
- readonly enum: readonly ['linear', 'radial'];
349
+ readonly export: {
350
+ readonly $ref: '#/$defs/id';
1696
351
  };
1697
- readonly tab_icon_angle: {
352
+ readonly size_bytes: {
1698
353
  readonly type: 'integer';
1699
354
  readonly minimum: 0;
1700
- readonly maximum: 359;
1701
- };
1702
- readonly tab_icon_from: {
1703
- readonly enum: readonly ['site', 'app'];
1704
355
  };
1705
- readonly release: {
356
+ readonly site: {
1706
357
  readonly type: 'object';
1707
358
  readonly additionalProperties: false;
1708
359
  readonly properties: {
1709
- readonly release: {
360
+ readonly site: {
1710
361
  readonly $ref: '#/$defs/id';
1711
362
  };
1712
- readonly sequence: {
1713
- readonly type: 'integer';
1714
- readonly exclusiveMinimum: 0;
363
+ readonly name: {
364
+ readonly type: 'string';
1715
365
  };
1716
366
  };
1717
- readonly required: readonly ['release', 'sequence'];
367
+ readonly required: readonly ['site', 'name'];
1718
368
  };
1719
- readonly title: {
369
+ readonly address: {
1720
370
  readonly type: 'string';
371
+ readonly maxLength: 300;
372
+ readonly format: 'uri';
1721
373
  };
1722
- readonly description: {
1723
- readonly type: 'string';
374
+ readonly copies: {
375
+ readonly type: 'integer';
376
+ readonly minimum: 0;
377
+ };
378
+ readonly bound: {
379
+ readonly type: 'integer';
380
+ readonly minimum: 0;
1724
381
  };
1725
- readonly screenshot: {
382
+ readonly title: {
1726
383
  readonly type: 'string';
1727
- readonly format: 'uri';
1728
384
  };
1729
- readonly analytics: {
385
+ readonly body: {
1730
386
  readonly type: 'string';
1731
- readonly pattern: '^G-[A-Z0-9]{1,32}$';
1732
387
  };
1733
- readonly intake_room: {
388
+ readonly authorship: {
1734
389
  readonly type: 'object';
1735
390
  readonly additionalProperties: false;
1736
391
  readonly properties: {
1737
- readonly room: {
1738
- readonly $ref: '#/$defs/room';
392
+ readonly kind: {
393
+ readonly type: 'string';
394
+ readonly const: 'trigger-action';
395
+ };
396
+ readonly trigger: {
397
+ readonly $ref: '#/$defs/id';
398
+ };
399
+ readonly position: {
400
+ readonly type: 'integer';
401
+ readonly minimum: 0;
1739
402
  };
1740
403
  };
1741
- readonly required: readonly ['room'];
1742
- };
1743
- readonly external_origins: {
1744
- readonly type: 'array';
1745
- readonly items: {
1746
- readonly type: 'string';
1747
- readonly format: 'uri';
1748
- };
1749
- };
1750
- readonly disabled: {
1751
- readonly enum: readonly ['yes', 'no'];
404
+ readonly required: readonly ['kind', 'trigger', 'position'];
1752
405
  };
1753
- readonly disabled_reason: {
406
+ readonly path: {
1754
407
  readonly type: 'string';
408
+ readonly maxLength: 4096;
409
+ readonly pattern: '^\\/.*';
1755
410
  };
1756
- readonly mode: {
1757
- readonly enum: readonly ['snapshot', 'live'];
1758
- };
1759
- readonly unpublished: {
1760
- readonly enum: readonly ['yes', 'no'];
1761
- };
1762
- readonly suspended: {
1763
- readonly enum: readonly ['yes', 'no'];
1764
- };
1765
- readonly suspended_reason: {
411
+ };
412
+ readonly required: readonly ['notification', 'kind', 'created', 'way_in', 'subject'];
413
+ };
414
+ readonly 'house-panel-preferences': {
415
+ readonly description: "The panel's preferences at /rooms/private/settings/panel.md. Its own vocabulary is in the body.";
416
+ readonly properties: {};
417
+ };
418
+ readonly 'house-agent-function': {
419
+ readonly 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.";
420
+ readonly properties: {
421
+ readonly reflected: {
1766
422
  readonly type: 'string';
1767
- readonly enum: readonly ['full_house_required', 'public_delivery_limit'];
1768
- };
1769
- readonly public_overage: {
1770
- readonly enum: readonly ['on', 'off'];
423
+ readonly format: 'date-time';
1771
424
  };
1772
- readonly publication: {
425
+ readonly agent_function: {
1773
426
  readonly $ref: '#/$defs/id';
1774
427
  };
1775
- readonly acts: {
1776
- readonly type: 'array';
1777
- readonly items: {
1778
- readonly type: 'string';
1779
- readonly enum: readonly ['unpublish', 'republish'];
1780
- };
428
+ readonly description: {
429
+ readonly type: 'string';
1781
430
  };
1782
- readonly indexing: {
1783
- readonly enum: readonly ['yes', 'no'];
431
+ readonly input: {
432
+ readonly type: 'string';
1784
433
  };
1785
- readonly entry_fallback: {
434
+ readonly agent: {
1786
435
  readonly type: 'object';
1787
436
  readonly additionalProperties: false;
1788
437
  readonly properties: {
1789
- readonly cause: {
1790
- readonly enum: readonly ['over_bound', 'query_refused', 'unavailable'];
1791
- };
1792
- readonly route: {
1793
- readonly type: 'string';
438
+ readonly agent: {
439
+ readonly $ref: '#/$defs/id';
1794
440
  };
1795
- readonly recorded: {
441
+ readonly name: {
1796
442
  readonly type: 'string';
1797
- readonly format: 'date-time';
1798
443
  };
1799
444
  };
1800
- readonly required: readonly ['cause', 'route', 'recorded'];
445
+ readonly required: readonly ['agent', 'name'];
1801
446
  };
1802
- readonly created: {
447
+ };
448
+ readonly required: readonly ['reflected', 'agent_function', 'description', 'input', 'agent'];
449
+ };
450
+ readonly 'house-agent-function-document': {
451
+ readonly 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, and the `agent` it starts, by identifier. Its body is the instruction that Agent follows.';
452
+ readonly properties: {
453
+ readonly description: {
1803
454
  readonly type: 'string';
1804
- readonly format: 'date-time';
1805
- };
1806
- readonly new_browsers: {
1807
- readonly type: 'integer';
1808
- readonly minimum: 0;
1809
- };
1810
- readonly submissions: {
1811
- readonly type: 'integer';
1812
- readonly minimum: 0;
1813
- };
1814
- readonly notify_me: {
1815
- readonly enum: readonly ['on', 'off'];
1816
- };
1817
- readonly image_copies: {
1818
- readonly type: 'integer';
1819
- readonly minimum: 0;
1820
- };
1821
- readonly image_copy_bound: {
1822
- readonly type: 'integer';
1823
- readonly minimum: 0;
455
+ readonly maxLength: 2000;
456
+ readonly pattern: '\\S';
1824
457
  };
1825
- readonly image_copy_limit_reached: {
1826
- readonly enum: readonly ['yes', 'no'];
1827
- };
1828
- readonly slots: {
1829
- readonly type: 'array';
1830
- readonly items: {
1831
- readonly type: 'object';
1832
- readonly additionalProperties: false;
1833
- readonly properties: {
1834
- readonly slot: {
1835
- readonly type: 'string';
1836
- readonly pattern: '^[a-z0-9]([a-z0-9-]*[a-z0-9])?$';
1837
- };
1838
- readonly entries: {
1839
- readonly type: 'array';
1840
- readonly items: {
1841
- readonly type: 'object';
1842
- readonly additionalProperties: false;
1843
- readonly properties: {
1844
- readonly room: {
1845
- readonly $ref: '#/$defs/room';
1846
- };
1847
- readonly segment: {
1848
- readonly type: 'string';
1849
- };
1850
- readonly compatibility: {
1851
- readonly enum: readonly ['unchecked', 'compatible', 'incompatible'];
1852
- };
1853
- };
1854
- readonly required: readonly ['room', 'segment', 'compatibility'];
1855
- };
1856
- };
1857
- };
1858
- readonly required: readonly ['slot', 'entries'];
1859
- };
458
+ readonly input: {
459
+ readonly type: 'string';
1860
460
  };
1861
- readonly findings: {
1862
- readonly type: 'array';
1863
- readonly items: {
1864
- readonly type: 'object';
1865
- readonly additionalProperties: false;
1866
- readonly properties: {
1867
- readonly slot: {
1868
- readonly type: 'string';
1869
- readonly pattern: '^[a-z0-9]([a-z0-9-]*[a-z0-9])?$';
1870
- };
1871
- readonly room: {
1872
- readonly $ref: '#/$defs/room';
1873
- };
1874
- readonly finding: {
1875
- readonly type: 'string';
1876
- };
1877
- };
1878
- readonly required: readonly ['slot', 'room', 'finding'];
1879
- };
461
+ readonly agent: {
462
+ readonly $ref: '#/$defs/id';
1880
463
  };
1881
464
  };
1882
- readonly required: readonly ['reflected', 'site', 'name', 'address', 'primary_address', 'app', 'tab_icon_from', 'disabled', 'mode', 'unpublished', 'suspended', 'indexing', 'created', 'new_browsers', 'submissions', 'notify_me', 'image_copies', 'image_copy_bound', 'image_copy_limit_reached'];
465
+ readonly required: readonly ['description', 'input', 'agent'];
1883
466
  };
1884
467
  readonly 'house-trigger': {
1885
- readonly 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` to the Routine whose card under this Room's `house/routines/` its `card` names, absent while this Room holds no card of that Routine; 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 Routine's card, the App's latest release and the owner's functions.";
468
+ readonly 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.";
1886
469
  readonly properties: {
1887
470
  readonly reflected: {
1888
471
  readonly type: 'string';
@@ -1895,154 +478,9 @@ export declare const HOUSE_MODEL_DECLARATION: {
1895
478
  readonly type: 'string';
1896
479
  };
1897
480
  readonly condition: {
1898
- readonly anyOf: readonly [{
1899
- readonly type: 'object';
1900
- readonly additionalProperties: false;
1901
- readonly properties: {
1902
- readonly on: {
1903
- readonly const: 'documents';
1904
- };
1905
- readonly scope: {
1906
- readonly $ref: '#/$defs/trigger_scope';
1907
- };
1908
- readonly mode: {
1909
- readonly const: 'starts_matching';
1910
- };
1911
- readonly new_documents: {
1912
- readonly type: 'boolean';
1913
- };
1914
- readonly match: {
1915
- readonly $ref: '#/$defs/trigger_test';
1916
- };
1917
- readonly by: {
1918
- readonly $ref: '#/$defs/trigger_test';
1919
- };
1920
- readonly moved_between_rooms: {
1921
- readonly type: 'boolean';
1922
- };
1923
- };
1924
- readonly required: readonly ['on', 'scope', 'mode', 'new_documents', 'match'];
1925
- }, {
1926
- readonly type: 'object';
1927
- readonly additionalProperties: false;
1928
- readonly properties: {
1929
- readonly on: {
1930
- readonly const: 'documents';
1931
- };
1932
- readonly scope: {
1933
- readonly $ref: '#/$defs/trigger_scope';
1934
- };
1935
- readonly mode: {
1936
- readonly const: 'field_changes';
1937
- };
1938
- readonly field: {
1939
- readonly type: 'string';
1940
- };
1941
- readonly from: {
1942
- readonly anyOf: readonly [{
1943
- readonly $ref: '#/$defs/trigger_values';
1944
- }, {
1945
- readonly const: 'new';
1946
- }];
1947
- };
1948
- readonly to: {
1949
- readonly anyOf: readonly [{
1950
- readonly $ref: '#/$defs/trigger_values';
1951
- }, {
1952
- readonly const: 'deleted';
1953
- }];
1954
- };
1955
- readonly match: {
1956
- readonly $ref: '#/$defs/trigger_test';
1957
- };
1958
- readonly by: {
1959
- readonly $ref: '#/$defs/trigger_test';
1960
- };
1961
- readonly moved_between_rooms: {
1962
- readonly type: 'boolean';
1963
- };
1964
- };
1965
- readonly required: readonly ['on', 'scope', 'mode', 'field'];
1966
- }, {
1967
- readonly type: 'object';
1968
- readonly additionalProperties: false;
1969
- readonly properties: {
1970
- readonly on: {
1971
- readonly const: 'items';
1972
- };
1973
- readonly source: {
1974
- readonly type: 'string';
1975
- };
1976
- readonly address: {
1977
- readonly type: 'string';
1978
- };
1979
- readonly match: {
1980
- readonly $ref: '#/$defs/trigger_test';
1981
- };
1982
- };
1983
- readonly required: readonly ['on'];
1984
- }, {
1985
- readonly type: 'object';
1986
- readonly additionalProperties: false;
1987
- readonly properties: {
1988
- readonly on: {
1989
- readonly const: 'notifications';
1990
- };
1991
- readonly match: {
1992
- readonly $ref: '#/$defs/trigger_test';
1993
- };
1994
- };
1995
- readonly required: readonly ['on'];
1996
- }, {
1997
- readonly type: 'object';
1998
- readonly additionalProperties: false;
1999
- readonly properties: {
2000
- readonly on: {
2001
- readonly const: 'clock';
2002
- };
2003
- readonly cron: {
2004
- readonly type: 'string';
2005
- };
2006
- readonly time_zone: {
2007
- readonly type: 'string';
2008
- };
2009
- };
2010
- readonly required: readonly ['on', 'cron', 'time_zone'];
2011
- }, {
2012
- readonly type: 'object';
2013
- readonly additionalProperties: false;
2014
- readonly properties: {
2015
- readonly on: {
2016
- readonly const: 'clock';
2017
- };
2018
- readonly scope: {
2019
- readonly type: 'object';
2020
- readonly additionalProperties: false;
2021
- readonly properties: {
2022
- readonly type: {
2023
- readonly type: 'string';
2024
- };
2025
- };
2026
- readonly required: readonly ['type'];
2027
- };
2028
- readonly date: {
2029
- readonly type: 'string';
2030
- };
2031
- readonly days: {
2032
- readonly type: 'integer';
2033
- };
2034
- readonly at: {
2035
- readonly type: 'string';
2036
- };
2037
- readonly time_zone: {
2038
- readonly type: 'string';
2039
- };
2040
- readonly match: {
2041
- readonly $ref: '#/$defs/trigger_test';
2042
- };
2043
- };
2044
- readonly required: readonly ['on', 'scope', 'date', 'days', 'at', 'time_zone'];
2045
- }];
481
+ readonly description: 'When it fires, as the Trigger reference page writes it, a document it names at its current path.';
482
+ readonly type: 'object';
483
+ readonly additionalProperties: true;
2046
484
  };
2047
485
  readonly actions: {
2048
486
  readonly type: 'array';
@@ -2102,7 +540,7 @@ export declare const HOUSE_MODEL_DECLARATION: {
2102
540
  readonly additionalProperties: false;
2103
541
  readonly properties: {
2104
542
  readonly kind: {
2105
- readonly const: 'routine';
543
+ readonly const: 'agent_function';
2106
544
  };
2107
545
  readonly enabled: {
2108
546
  readonly type: 'boolean';
@@ -2116,6 +554,37 @@ export declare const HOUSE_MODEL_DECLARATION: {
2116
554
  };
2117
555
  };
2118
556
  readonly required: readonly ['kind', 'enabled', 'payload'];
557
+ }, {
558
+ readonly type: 'object';
559
+ readonly additionalProperties: false;
560
+ readonly properties: {
561
+ readonly kind: {
562
+ readonly const: 'message';
563
+ };
564
+ readonly enabled: {
565
+ readonly type: 'boolean';
566
+ };
567
+ readonly card: {
568
+ readonly type: 'string';
569
+ readonly minLength: 1;
570
+ };
571
+ readonly text: {
572
+ readonly type: 'string';
573
+ };
574
+ };
575
+ readonly required: readonly ['kind', 'enabled', 'text'];
576
+ }, {
577
+ readonly type: 'object';
578
+ readonly additionalProperties: false;
579
+ readonly properties: {
580
+ readonly kind: {
581
+ readonly const: 'done';
582
+ };
583
+ readonly enabled: {
584
+ readonly type: 'boolean';
585
+ };
586
+ };
587
+ readonly required: readonly ['kind', 'enabled'];
2119
588
  }, {
2120
589
  readonly type: 'object';
2121
590
  readonly additionalProperties: false;
@@ -2200,6 +669,7 @@ export declare const HOUSE_MODEL_DECLARATION: {
2200
669
  };
2201
670
  };
2202
671
  export declare const HOUSE_MODEL_TYPES: string;
672
+ export declare const HOUSE_TYPED_PATHS: readonly TypedPath[];
2203
673
  type Model = typeof HOUSE_MODEL_DECLARATION;
2204
674
  type Definitions = Model['$defs'];
2205
675
  export type HouseModelType = Exclude<keyof Model, '$defs'>;