@agentshouse/mdruntime-adapter 0.1.0-c8bfc1969f4fe → 0.1.0-c8d322eea4abd

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.
Files changed (74) hide show
  1. package/README.md +2 -2
  2. package/dist/actions.d.ts +3 -2
  3. package/dist/actions.d.ts.map +1 -1
  4. package/dist/actions.js +22 -6
  5. package/dist/adapter.d.ts +0 -1
  6. package/dist/adapter.d.ts.map +1 -1
  7. package/dist/adapter.js +78 -81
  8. package/dist/app-reference.d.ts +0 -1
  9. package/dist/authored-path.d.ts +10 -0
  10. package/dist/authored-path.d.ts.map +1 -0
  11. package/dist/authored-path.js +35 -0
  12. package/dist/chunks.d.ts +37 -0
  13. package/dist/chunks.d.ts.map +1 -0
  14. package/dist/chunks.js +247 -0
  15. package/dist/crockford.d.ts +0 -1
  16. package/dist/digest.d.ts +0 -1
  17. package/dist/discovery.d.ts +11 -6
  18. package/dist/discovery.d.ts.map +1 -1
  19. package/dist/discovery.js +39 -13
  20. package/dist/history.d.ts +0 -1
  21. package/dist/history.d.ts.map +1 -1
  22. package/dist/history.js +3 -2
  23. package/dist/house-model.d.ts +120 -366
  24. package/dist/house-model.d.ts.map +1 -1
  25. package/dist/house-model.js +104 -214
  26. package/dist/index.d.ts +5 -4
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +4 -2
  29. package/dist/map.d.ts +0 -1
  30. package/dist/model.d.ts +5 -8
  31. package/dist/model.d.ts.map +1 -1
  32. package/dist/model.js +30 -18
  33. package/dist/read.d.ts +19 -10
  34. package/dist/read.d.ts.map +1 -1
  35. package/dist/read.js +46 -143
  36. package/dist/refusal.d.ts +1 -1
  37. package/dist/refusal.d.ts.map +1 -1
  38. package/dist/refusal.js +5 -1
  39. package/dist/room-types.d.ts +0 -3
  40. package/dist/room-types.d.ts.map +1 -1
  41. package/dist/room-types.js +6 -11
  42. package/dist/search.d.ts +4 -0
  43. package/dist/search.d.ts.map +1 -0
  44. package/dist/search.js +47 -0
  45. package/dist/session-content/bounds.d.ts +7 -0
  46. package/dist/session-content/check.d.ts +18 -0
  47. package/dist/session-content/index.d.ts +7 -0
  48. package/dist/session-content/parts.d.ts +102 -0
  49. package/dist/session-content/state.d.ts +61 -0
  50. package/dist/session-content/turn.d.ts +328 -0
  51. package/dist/site.d.ts +0 -1
  52. package/dist/site.d.ts.map +1 -1
  53. package/dist/site.js +38 -42
  54. package/dist/space-schema.d.ts +6 -0
  55. package/dist/space-schema.d.ts.map +1 -0
  56. package/dist/space-schema.js +18 -0
  57. package/dist/stream.d.ts +6 -5
  58. package/dist/stream.d.ts.map +1 -1
  59. package/dist/stream.js +101 -29
  60. package/dist/transport.d.ts +23 -18
  61. package/dist/transport.d.ts.map +1 -1
  62. package/dist/transport.js +13 -12
  63. package/dist/upload.d.ts +0 -1
  64. package/dist/version.d.ts +0 -1
  65. package/dist/write.d.ts +2 -3
  66. package/dist/write.d.ts.map +1 -1
  67. package/dist/write.js +11 -28
  68. package/package.json +2 -2
  69. package/dist/part.d.ts +0 -14
  70. package/dist/part.d.ts.map +0 -1
  71. package/dist/part.js +0 -90
  72. package/dist/room-stream.d.ts +0 -19
  73. package/dist/room-stream.d.ts.map +0 -1
  74. package/dist/room-stream.js +0 -57
@@ -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: {
@@ -10,57 +11,16 @@ export declare const HOUSE_MODEL_DECLARATION: {
10
11
  readonly type: 'string';
11
12
  readonly pattern: '^a_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$';
12
13
  };
13
- readonly document: {
14
- readonly description: 'A document of a Room, by its file reference, under the key `document`.';
14
+ readonly space: {
15
+ readonly description: 'A Space, by its Space reference, under the key `space`.';
15
16
  readonly type: 'string';
16
- readonly pattern: '^af_([123456789abcdefghjkmnpqrstvwxyz][0123456789abcdefghjkmnpqrstvwxyz]*)\\.([0123456789abcdefghjkmnpqrstvwxyz])$';
17
+ readonly pattern: '^sp_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$';
17
18
  };
18
19
  readonly id: {
19
20
  readonly description: 'Any other entity, by its identifier, under the key of its kind. An entity a type says more about is an object holding it under that key beside its facts.';
20
21
  readonly type: 'string';
21
22
  readonly format: 'uuid';
22
23
  };
23
- readonly namespace: {
24
- readonly description: 'The Namespace a grant entry covers, an App or a Room by its reference with the area of it.';
25
- readonly type: 'string';
26
- readonly maxLength: 512;
27
- readonly pattern: '^(?:a_[A-Za-z0-9._-]+(?:\\/source)?|r_[A-Za-z0-9._-]+(?:\\/(?:settings|settings\\/schema|settings\\/model|settings\\/indexing|content))?)$';
28
- };
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
- };
60
- };
61
- readonly minProperties: 1;
62
- readonly maxProperties: 1;
63
- };
64
24
  };
65
25
  readonly 'house-app-preferences': {
66
26
  readonly description: "An App's preferences. Its own vocabulary is in the body.";
@@ -72,19 +32,23 @@ export declare const HOUSE_MODEL_DECLARATION: {
72
32
  readonly required: readonly ['app'];
73
33
  };
74
34
  readonly 'house-notification': {
75
- 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.";
35
+ readonly 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.";
76
36
  readonly properties: {
77
37
  readonly notification: {
78
38
  readonly $ref: '#/$defs/id';
79
39
  };
80
40
  readonly kind: {
81
41
  readonly type: 'string';
82
- 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'];
42
+ readonly enum: readonly ['share-offer', 'join-request', 'join-request-approved', 'room-ownership-offer', 'managed-environment-retention-opened', 'storage-full', 'sandbox-budget-spent', 'trigger-failed', 'room-telegram-chat-paused', 'break-glass-owner-disclosure', 'export-ready', 'export-failed', 'custom', 'agent-function-request-finished'];
83
43
  };
84
44
  readonly created: {
85
45
  readonly type: 'string';
86
46
  readonly format: 'date-time';
87
47
  };
48
+ readonly read: {
49
+ readonly type: 'string';
50
+ readonly format: 'date-time';
51
+ };
88
52
  readonly way_in: {
89
53
  readonly type: 'object';
90
54
  readonly additionalProperties: false;
@@ -96,27 +60,12 @@ export declare const HOUSE_MODEL_DECLARATION: {
96
60
  readonly room: {
97
61
  readonly $ref: '#/$defs/room';
98
62
  };
99
- readonly app: {
100
- readonly $ref: '#/$defs/app';
101
- };
102
- readonly agent: {
103
- readonly $ref: '#/$defs/id';
104
- };
105
63
  readonly environment: {
106
64
  readonly $ref: '#/$defs/id';
107
65
  };
108
- readonly routine: {
109
- readonly $ref: '#/$defs/id';
110
- };
111
- readonly routine_request: {
112
- readonly $ref: '#/$defs/id';
113
- };
114
66
  readonly trigger: {
115
67
  readonly $ref: '#/$defs/id';
116
68
  };
117
- readonly site: {
118
- readonly $ref: '#/$defs/id';
119
- };
120
69
  };
121
70
  readonly minProperties: 1;
122
71
  };
@@ -154,7 +103,6 @@ export declare const HOUSE_MODEL_DECLARATION: {
154
103
  };
155
104
  };
156
105
  readonly apps: {
157
- readonly maxItems: 20;
158
106
  readonly type: 'array';
159
107
  readonly items: {
160
108
  readonly type: 'object';
@@ -177,6 +125,19 @@ export declare const HOUSE_MODEL_DECLARATION: {
177
125
  readonly required: readonly ['name', 'reaches'];
178
126
  };
179
127
  };
128
+ readonly spaces: {
129
+ readonly type: 'array';
130
+ readonly items: {
131
+ readonly type: 'object';
132
+ readonly additionalProperties: false;
133
+ readonly properties: {
134
+ readonly name: {
135
+ readonly type: 'string';
136
+ };
137
+ };
138
+ readonly required: readonly ['name'];
139
+ };
140
+ };
180
141
  readonly expires_at: {
181
142
  readonly type: 'string';
182
143
  readonly format: 'date-time';
@@ -196,7 +157,7 @@ export declare const HOUSE_MODEL_DECLARATION: {
196
157
  readonly format: 'email';
197
158
  };
198
159
  };
199
- readonly required: readonly ['name', 'email'];
160
+ readonly required: readonly ['name'];
200
161
  };
201
162
  readonly room: {
202
163
  readonly type: 'object';
@@ -218,46 +179,18 @@ export declare const HOUSE_MODEL_DECLARATION: {
218
179
  readonly app: {
219
180
  readonly $ref: '#/$defs/app';
220
181
  };
221
- readonly name: {
222
- readonly type: 'string';
223
- };
224
182
  };
225
- readonly minProperties: 1;
183
+ readonly required: readonly ['app'];
226
184
  };
227
- readonly binding: {
228
- readonly $ref: '#/$defs/id';
229
- };
230
- readonly slot: {
231
- readonly type: 'string';
232
- };
233
- readonly findings: {
234
- readonly type: 'array';
235
- readonly items: {
236
- readonly type: 'string';
237
- };
238
- };
239
- readonly owner: {
185
+ readonly space: {
240
186
  readonly type: 'object';
241
187
  readonly additionalProperties: false;
242
188
  readonly properties: {
243
- readonly name: {
244
- readonly type: 'string';
189
+ readonly space: {
190
+ readonly $ref: '#/$defs/space';
245
191
  };
246
192
  };
247
- readonly required: readonly ['name'];
248
- };
249
- readonly caller: {
250
- readonly type: 'object';
251
- readonly additionalProperties: false;
252
- readonly properties: {
253
- readonly user: {
254
- readonly $ref: '#/$defs/id';
255
- };
256
- readonly name: {
257
- readonly type: 'string';
258
- };
259
- };
260
- readonly required: readonly ['user', 'name'];
193
+ readonly required: readonly ['space'];
261
194
  };
262
195
  readonly ownership_offer: {
263
196
  readonly $ref: '#/$defs/id';
@@ -299,9 +232,6 @@ export declare const HOUSE_MODEL_DECLARATION: {
299
232
  readonly type: 'string';
300
233
  readonly format: 'date-time';
301
234
  };
302
- readonly operation_kind: {
303
- readonly type: 'string';
304
- };
305
235
  readonly free: {
306
236
  readonly type: 'object';
307
237
  readonly additionalProperties: false;
@@ -321,6 +251,16 @@ export declare const HOUSE_MODEL_DECLARATION: {
321
251
  };
322
252
  readonly required: readonly ['held', 'limit', 'measure'];
323
253
  };
254
+ readonly chat: {
255
+ readonly type: 'string';
256
+ };
257
+ readonly missing: {
258
+ readonly type: 'array';
259
+ readonly items: {
260
+ readonly type: 'string';
261
+ readonly enum: readonly ['private', 'topics', 'ban_users', 'invite_users', 'manage_topics', 'post_messages', 'edit_messages', 'inbox_manage_topics', 'inbox_delete_messages'];
262
+ };
263
+ };
324
264
  readonly budget: {
325
265
  readonly type: 'string';
326
266
  readonly pattern: '^\\d+(?:\\.\\d+)?$';
@@ -352,65 +292,6 @@ export declare const HOUSE_MODEL_DECLARATION: {
352
292
  readonly case_reference: {
353
293
  readonly type: 'string';
354
294
  };
355
- readonly routine_request: {
356
- readonly $ref: '#/$defs/id';
357
- };
358
- readonly requester: {
359
- readonly type: 'object';
360
- readonly additionalProperties: false;
361
- readonly properties: {
362
- readonly name: {
363
- readonly type: 'string';
364
- };
365
- };
366
- readonly required: readonly ['name'];
367
- };
368
- readonly agent: {
369
- readonly type: 'object';
370
- readonly additionalProperties: false;
371
- readonly properties: {
372
- readonly agent: {
373
- readonly $ref: '#/$defs/id';
374
- };
375
- readonly name: {
376
- readonly type: 'string';
377
- };
378
- };
379
- readonly required: readonly ['name'];
380
- };
381
- readonly conversation: {
382
- readonly $ref: '#/$defs/id';
383
- };
384
- readonly routine: {
385
- readonly type: 'object';
386
- readonly additionalProperties: false;
387
- readonly properties: {
388
- readonly routine: {
389
- readonly $ref: '#/$defs/id';
390
- };
391
- readonly name: {
392
- readonly type: 'string';
393
- };
394
- readonly version: {
395
- readonly type: 'integer';
396
- readonly minimum: 1;
397
- };
398
- };
399
- readonly required: readonly ['name'];
400
- };
401
- readonly decliner: {
402
- readonly type: 'object';
403
- readonly additionalProperties: false;
404
- readonly properties: {
405
- readonly name: {
406
- readonly type: 'string';
407
- };
408
- };
409
- readonly required: readonly ['name'];
410
- };
411
- readonly input: {
412
- readonly type: 'string';
413
- };
414
295
  readonly export: {
415
296
  readonly $ref: '#/$defs/id';
416
297
  };
@@ -418,42 +299,6 @@ export declare const HOUSE_MODEL_DECLARATION: {
418
299
  readonly type: 'integer';
419
300
  readonly minimum: 0;
420
301
  };
421
- readonly site: {
422
- readonly type: 'object';
423
- readonly additionalProperties: false;
424
- readonly properties: {
425
- readonly site: {
426
- readonly $ref: '#/$defs/id';
427
- };
428
- readonly name: {
429
- readonly type: 'string';
430
- };
431
- };
432
- readonly required: readonly ['site', 'name'];
433
- };
434
- readonly address: {
435
- readonly type: 'string';
436
- readonly maxLength: 300;
437
- readonly format: 'uri';
438
- };
439
- readonly to: {
440
- readonly type: 'object';
441
- readonly additionalProperties: false;
442
- readonly properties: {
443
- readonly name: {
444
- readonly type: 'string';
445
- };
446
- };
447
- readonly required: readonly ['name'];
448
- };
449
- readonly copies: {
450
- readonly type: 'integer';
451
- readonly minimum: 0;
452
- };
453
- readonly bound: {
454
- readonly type: 'integer';
455
- readonly minimum: 0;
456
- };
457
302
  readonly title: {
458
303
  readonly type: 'string';
459
304
  };
@@ -490,21 +335,55 @@ export declare const HOUSE_MODEL_DECLARATION: {
490
335
  readonly trigger: {
491
336
  readonly $ref: '#/$defs/id';
492
337
  };
493
- readonly name: {
338
+ readonly description: {
494
339
  readonly type: 'string';
495
340
  };
496
341
  };
497
- readonly required: readonly ['trigger', 'name'];
342
+ readonly required: readonly ['trigger', 'description'];
498
343
  };
499
- readonly cause: {
344
+ readonly code: {
500
345
  readonly type: 'string';
346
+ readonly enum: readonly ['failed', 'function_failed', 'function_not_started', 'agent_function_request_not_started'];
501
347
  };
502
- readonly function: {
348
+ readonly action: {
349
+ readonly type: 'integer';
350
+ readonly minimum: 0;
351
+ };
352
+ readonly moment: {
503
353
  readonly type: 'string';
354
+ readonly format: 'date-time';
504
355
  };
505
356
  readonly error: {
506
357
  readonly type: 'string';
507
358
  };
359
+ readonly agent_function: {
360
+ readonly type: 'object';
361
+ readonly additionalProperties: false;
362
+ readonly properties: {
363
+ readonly name: {
364
+ readonly type: 'string';
365
+ };
366
+ };
367
+ readonly required: readonly ['name'];
368
+ };
369
+ readonly agent: {
370
+ readonly type: 'object';
371
+ readonly additionalProperties: false;
372
+ readonly properties: {
373
+ readonly name: {
374
+ readonly type: 'string';
375
+ };
376
+ };
377
+ readonly required: readonly ['name'];
378
+ };
379
+ readonly ended: {
380
+ readonly type: 'string';
381
+ readonly enum: readonly ['finished', 'failed'];
382
+ };
383
+ readonly duration: {
384
+ readonly type: 'integer';
385
+ readonly minimum: 1;
386
+ };
508
387
  };
509
388
  readonly required: readonly ['notification', 'kind', 'created', 'way_in', 'subject'];
510
389
  };
@@ -512,14 +391,14 @@ export declare const HOUSE_MODEL_DECLARATION: {
512
391
  readonly description: "The panel's preferences at /rooms/private/settings/panel.md. Its own vocabulary is in the body.";
513
392
  readonly properties: {};
514
393
  };
515
- readonly 'house-routine': {
516
- 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.";
394
+ readonly 'house-agent-function': {
395
+ 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.";
517
396
  readonly properties: {
518
397
  readonly reflected: {
519
398
  readonly type: 'string';
520
399
  readonly format: 'date-time';
521
400
  };
522
- readonly routine: {
401
+ readonly agent_function: {
523
402
  readonly $ref: '#/$defs/id';
524
403
  };
525
404
  readonly description: {
@@ -542,10 +421,30 @@ export declare const HOUSE_MODEL_DECLARATION: {
542
421
  readonly required: readonly ['agent', 'name'];
543
422
  };
544
423
  };
545
- readonly required: readonly ['reflected', 'routine', 'description', 'input', 'agent'];
424
+ readonly required: readonly ['reflected', 'agent_function', 'description', 'input', 'agent'];
425
+ };
426
+ readonly 'house-agent-function-document': {
427
+ 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, 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.';
428
+ readonly properties: {
429
+ readonly description: {
430
+ readonly type: 'string';
431
+ readonly maxLength: 2000;
432
+ readonly pattern: '\\S';
433
+ };
434
+ readonly input: {
435
+ readonly type: 'string';
436
+ };
437
+ readonly agent: {
438
+ readonly $ref: '#/$defs/id';
439
+ };
440
+ readonly afk: {
441
+ readonly type: 'boolean';
442
+ };
443
+ };
444
+ readonly required: readonly ['description', 'input', 'agent'];
546
445
  };
547
446
  readonly 'house-trigger': {
548
- 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 `message` action puts its `text` into the active conversation that Routine started for what the Event is about, or starts that Routine when none is active; 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.";
447
+ 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.";
549
448
  readonly properties: {
550
449
  readonly reflected: {
551
450
  readonly type: 'string';
@@ -558,166 +457,9 @@ export declare const HOUSE_MODEL_DECLARATION: {
558
457
  readonly type: 'string';
559
458
  };
560
459
  readonly condition: {
561
- readonly anyOf: readonly [{
562
- readonly type: 'object';
563
- readonly additionalProperties: false;
564
- readonly properties: {
565
- readonly on: {
566
- readonly const: 'documents';
567
- };
568
- readonly scope: {
569
- readonly $ref: '#/$defs/trigger_scope';
570
- };
571
- readonly mode: {
572
- readonly const: 'starts_matching';
573
- };
574
- readonly new_documents: {
575
- readonly type: 'boolean';
576
- };
577
- readonly match: {
578
- readonly $ref: '#/$defs/trigger_test';
579
- };
580
- readonly by: {
581
- readonly $ref: '#/$defs/trigger_test';
582
- };
583
- readonly moved_between_rooms: {
584
- readonly type: 'boolean';
585
- };
586
- };
587
- readonly required: readonly ['on', 'scope', 'mode', 'new_documents', 'match'];
588
- }, {
589
- readonly type: 'object';
590
- readonly additionalProperties: false;
591
- readonly properties: {
592
- readonly on: {
593
- readonly const: 'documents';
594
- };
595
- readonly scope: {
596
- readonly $ref: '#/$defs/trigger_scope';
597
- };
598
- readonly mode: {
599
- readonly const: 'field_changes';
600
- };
601
- readonly field: {
602
- readonly type: 'string';
603
- };
604
- readonly from: {
605
- readonly anyOf: readonly [{
606
- readonly $ref: '#/$defs/trigger_values';
607
- }, {
608
- readonly const: 'new';
609
- }];
610
- };
611
- readonly to: {
612
- readonly anyOf: readonly [{
613
- readonly $ref: '#/$defs/trigger_values';
614
- }, {
615
- readonly const: 'deleted';
616
- }];
617
- };
618
- readonly match: {
619
- readonly $ref: '#/$defs/trigger_test';
620
- };
621
- readonly by: {
622
- readonly $ref: '#/$defs/trigger_test';
623
- };
624
- readonly moved_between_rooms: {
625
- readonly type: 'boolean';
626
- };
627
- };
628
- readonly required: readonly ['on', 'scope', 'mode', 'field'];
629
- }, {
630
- readonly type: 'object';
631
- readonly additionalProperties: false;
632
- readonly properties: {
633
- readonly on: {
634
- readonly const: 'items';
635
- };
636
- readonly source: {
637
- readonly type: 'string';
638
- };
639
- readonly address: {
640
- readonly type: 'string';
641
- };
642
- readonly match: {
643
- readonly $ref: '#/$defs/trigger_test';
644
- };
645
- };
646
- readonly required: readonly ['on'];
647
- }, {
648
- readonly type: 'object';
649
- readonly additionalProperties: false;
650
- readonly properties: {
651
- readonly on: {
652
- readonly const: 'notifications';
653
- };
654
- readonly match: {
655
- readonly $ref: '#/$defs/trigger_test';
656
- };
657
- };
658
- readonly required: readonly ['on'];
659
- }, {
660
- readonly type: 'object';
661
- readonly additionalProperties: false;
662
- readonly properties: {
663
- readonly on: {
664
- readonly const: 'messages';
665
- };
666
- readonly match: {
667
- readonly $ref: '#/$defs/trigger_test';
668
- };
669
- };
670
- readonly required: readonly ['on'];
671
- }, {
672
- readonly type: 'object';
673
- readonly additionalProperties: false;
674
- readonly properties: {
675
- readonly on: {
676
- readonly const: 'clock';
677
- };
678
- readonly cron: {
679
- readonly type: 'string';
680
- };
681
- readonly time_zone: {
682
- readonly type: 'string';
683
- };
684
- };
685
- readonly required: readonly ['on', 'cron', 'time_zone'];
686
- }, {
687
- readonly type: 'object';
688
- readonly additionalProperties: false;
689
- readonly properties: {
690
- readonly on: {
691
- readonly const: 'clock';
692
- };
693
- readonly scope: {
694
- readonly type: 'object';
695
- readonly additionalProperties: false;
696
- readonly properties: {
697
- readonly type: {
698
- readonly type: 'string';
699
- };
700
- };
701
- readonly required: readonly ['type'];
702
- };
703
- readonly date: {
704
- readonly type: 'string';
705
- };
706
- readonly days: {
707
- readonly type: 'integer';
708
- };
709
- readonly at: {
710
- readonly type: 'string';
711
- };
712
- readonly time_zone: {
713
- readonly type: 'string';
714
- };
715
- readonly match: {
716
- readonly $ref: '#/$defs/trigger_test';
717
- };
718
- };
719
- readonly required: readonly ['on', 'scope', 'date', 'days', 'at', 'time_zone'];
720
- }];
460
+ readonly description: 'When it fires, as the Trigger reference page writes it, a document it names at its current path.';
461
+ readonly type: 'object';
462
+ readonly additionalProperties: true;
721
463
  };
722
464
  readonly actions: {
723
465
  readonly type: 'array';
@@ -777,7 +519,7 @@ export declare const HOUSE_MODEL_DECLARATION: {
777
519
  readonly additionalProperties: false;
778
520
  readonly properties: {
779
521
  readonly kind: {
780
- readonly const: 'routine';
522
+ readonly const: 'agent_function';
781
523
  };
782
524
  readonly enabled: {
783
525
  readonly type: 'boolean';
@@ -810,6 +552,18 @@ export declare const HOUSE_MODEL_DECLARATION: {
810
552
  };
811
553
  };
812
554
  readonly required: readonly ['kind', 'enabled', 'text'];
555
+ }, {
556
+ readonly type: 'object';
557
+ readonly additionalProperties: false;
558
+ readonly properties: {
559
+ readonly kind: {
560
+ readonly const: 'done';
561
+ };
562
+ readonly enabled: {
563
+ readonly type: 'boolean';
564
+ };
565
+ };
566
+ readonly required: readonly ['kind', 'enabled'];
813
567
  }, {
814
568
  readonly type: 'object';
815
569
  readonly additionalProperties: false;
@@ -894,6 +648,7 @@ export declare const HOUSE_MODEL_DECLARATION: {
894
648
  };
895
649
  };
896
650
  export declare const HOUSE_MODEL_TYPES: string;
651
+ export declare const HOUSE_TYPED_PATHS: readonly TypedPath[];
897
652
  type Model = typeof HOUSE_MODEL_DECLARATION;
898
653
  type Definitions = Model['$defs'];
899
654
  export type HouseModelType = Exclude<keyof Model, '$defs'>;
@@ -912,7 +667,7 @@ type Properties<S> = S extends {
912
667
  }> : S extends {
913
668
  readonly additionalProperties: false;
914
669
  } ? Readonly<Record<string, never>> : Readonly<Record<string, unknown>>;
915
- type Typed<T, S> = T extends 'string' ? string : T extends 'integer' | 'number' ? number : T extends 'boolean' ? boolean : T extends 'null' ? null : T extends 'array' ? readonly (S extends {
670
+ type Typed<T, S> = T extends 'string' ? string : T extends 'integer' ? number : T extends 'boolean' ? boolean : T extends 'array' ? readonly (S extends {
916
671
  readonly items: infer I;
917
672
  } ? Value<I> : unknown)[] : T extends 'object' ? Properties<S> : never;
918
673
  type Value<S> = S extends {
@@ -940,4 +695,3 @@ export type HouseDocumentFields<Type extends HouseModelType> = Properties<{
940
695
  readonly required: readonly ('type' | Needed<Model[Type]>)[];
941
696
  }>;
942
697
  export {};
943
- //# sourceMappingURL=house-model.d.ts.map