@agentshouse/mdruntime-adapter 0.1.0-cb0bbc4ccacd0 → 0.1.0-cb325de4d9394

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 (77) hide show
  1. package/README.md +2 -2
  2. package/dist/actions.d.ts +2 -1
  3. package/dist/actions.d.ts.map +1 -1
  4. package/dist/actions.js +20 -7
  5. package/dist/adapter.d.ts +0 -1
  6. package/dist/adapter.d.ts.map +1 -1
  7. package/dist/adapter.js +111 -108
  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 +254 -0
  15. package/dist/crockford.d.ts +0 -1
  16. package/dist/digest.d.ts +0 -1
  17. package/dist/discovery.d.ts +1 -4
  18. package/dist/discovery.d.ts.map +1 -1
  19. package/dist/discovery.js +7 -8
  20. package/dist/history.d.ts +1 -7
  21. package/dist/history.d.ts.map +1 -1
  22. package/dist/history.js +22 -29
  23. package/dist/house-model.d.ts +204 -19
  24. package/dist/house-model.d.ts.map +1 -1
  25. package/dist/house-model.js +206 -103
  26. package/dist/index.d.ts +4 -3
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +3 -1
  29. package/dist/map.d.ts +0 -1
  30. package/dist/model.d.ts +3 -8
  31. package/dist/model.d.ts.map +1 -1
  32. package/dist/model.js +3 -13
  33. package/dist/read.d.ts +9 -10
  34. package/dist/read.d.ts.map +1 -1
  35. package/dist/read.js +24 -143
  36. package/dist/refusal.d.ts +3 -2
  37. package/dist/refusal.d.ts.map +1 -1
  38. package/dist/refusal.js +17 -7
  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 +64 -51
  42. package/dist/search.d.ts +0 -1
  43. package/dist/search.d.ts.map +1 -1
  44. package/dist/search.js +5 -5
  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 +41 -47
  54. package/dist/space-schema.d.ts +0 -1
  55. package/dist/stream.d.ts +4 -4
  56. package/dist/stream.d.ts.map +1 -1
  57. package/dist/stream.js +121 -34
  58. package/dist/transport.d.ts +20 -22
  59. package/dist/transport.d.ts.map +1 -1
  60. package/dist/transport.js +13 -13
  61. package/dist/uncertain.d.ts +5 -0
  62. package/dist/uncertain.d.ts.map +1 -0
  63. package/dist/uncertain.js +11 -0
  64. package/dist/upload.d.ts +3 -2
  65. package/dist/upload.d.ts.map +1 -1
  66. package/dist/upload.js +8 -6
  67. package/dist/version.d.ts +0 -1
  68. package/dist/write.d.ts +0 -2
  69. package/dist/write.d.ts.map +1 -1
  70. package/dist/write.js +19 -19
  71. package/package.json +2 -2
  72. package/dist/part.d.ts +0 -14
  73. package/dist/part.d.ts.map +0 -1
  74. package/dist/part.js +0 -90
  75. package/dist/room-stream.d.ts +0 -20
  76. package/dist/room-stream.d.ts.map +0 -1
  77. package/dist/room-stream.js +0 -57
@@ -11,27 +11,22 @@ export declare const HOUSE_MODEL_DECLARATION: {
11
11
  readonly type: 'string';
12
12
  readonly pattern: '^a_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$';
13
13
  };
14
- readonly document: {
15
- 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`.';
16
16
  readonly type: 'string';
17
- readonly pattern: '^af_([123456789abcdefghjkmnpqrstvwxyz][0123456789abcdefghjkmnpqrstvwxyz]*)\\.([0123456789abcdefghjkmnpqrstvwxyz])$';
17
+ readonly pattern: '^sp_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$';
18
18
  };
19
19
  readonly id: {
20
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.';
21
21
  readonly type: 'string';
22
22
  readonly format: 'uuid';
23
23
  };
24
- readonly namespace: {
25
- readonly description: 'The Namespace a grant entry covers, an App or a Room by its reference with the area of it.';
26
- readonly type: 'string';
27
- readonly maxLength: 512;
28
- readonly pattern: '^(?:a_[A-Za-z0-9._-]+(?:\\/source)?|r_[A-Za-z0-9._-]+(?:\\/(?:settings|settings\\/schema|settings\\/model|settings\\/indexing|content))?)$';
29
- };
30
24
  };
31
25
  readonly 'house-app-preferences': {
32
26
  readonly description: "An App's preferences. Its own vocabulary is in the body.";
33
27
  readonly properties: {
34
28
  readonly app: {
29
+ readonly title: 'App';
35
30
  readonly $ref: '#/$defs/app';
36
31
  };
37
32
  };
@@ -41,54 +36,68 @@ export declare const HOUSE_MODEL_DECLARATION: {
41
36
  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.";
42
37
  readonly properties: {
43
38
  readonly notification: {
39
+ readonly title: 'Notification';
44
40
  readonly $ref: '#/$defs/id';
45
41
  };
46
42
  readonly kind: {
43
+ readonly title: 'Kind';
47
44
  readonly type: 'string';
48
- readonly enum: readonly ['share-offer', 'join-request', 'join-request-approved', 'room-ownership-offer', 'managed-environment-retention-opened', 'storage-full', 'sandbox-budget-spent', 'trigger-failed', 'break-glass-owner-disclosure', 'export-ready', 'export-failed', 'custom'];
45
+ 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'];
49
46
  };
50
47
  readonly created: {
48
+ readonly title: 'Created';
51
49
  readonly type: 'string';
52
50
  readonly format: 'date-time';
53
51
  };
54
52
  readonly read: {
53
+ readonly title: 'Read';
55
54
  readonly type: 'string';
56
55
  readonly format: 'date-time';
57
56
  };
58
57
  readonly way_in: {
58
+ readonly title: 'Way in';
59
59
  readonly type: 'object';
60
60
  readonly additionalProperties: false;
61
61
  readonly properties: {
62
62
  readonly path: {
63
+ readonly title: 'Path';
63
64
  readonly type: 'string';
64
65
  readonly pattern: '^\\/';
65
66
  };
66
67
  readonly room: {
68
+ readonly title: 'Room';
67
69
  readonly $ref: '#/$defs/room';
68
70
  };
69
71
  readonly environment: {
72
+ readonly title: 'Environment';
70
73
  readonly $ref: '#/$defs/id';
71
74
  };
72
75
  readonly trigger: {
76
+ readonly title: 'Trigger';
73
77
  readonly $ref: '#/$defs/id';
74
78
  };
75
79
  };
76
80
  readonly minProperties: 1;
77
81
  };
78
82
  readonly subject: {
83
+ readonly title: 'Subject';
79
84
  readonly type: 'string';
80
85
  };
81
86
  readonly share: {
87
+ readonly title: 'Share';
82
88
  readonly $ref: '#/$defs/id';
83
89
  };
84
90
  readonly issuer: {
91
+ readonly title: 'Issuer';
85
92
  readonly type: 'object';
86
93
  readonly additionalProperties: false;
87
94
  readonly properties: {
88
95
  readonly name: {
96
+ readonly title: 'Name';
89
97
  readonly type: 'string';
90
98
  };
91
99
  readonly email: {
100
+ readonly title: 'Email';
92
101
  readonly type: 'string';
93
102
  readonly format: 'email';
94
103
  };
@@ -96,12 +105,14 @@ export declare const HOUSE_MODEL_DECLARATION: {
96
105
  readonly required: readonly ['name', 'email'];
97
106
  };
98
107
  readonly rooms: {
108
+ readonly title: 'Rooms';
99
109
  readonly type: 'array';
100
110
  readonly items: {
101
111
  readonly type: 'object';
102
112
  readonly additionalProperties: false;
103
113
  readonly properties: {
104
114
  readonly name: {
115
+ readonly title: 'Name';
105
116
  readonly type: 'string';
106
117
  };
107
118
  };
@@ -109,18 +120,20 @@ export declare const HOUSE_MODEL_DECLARATION: {
109
120
  };
110
121
  };
111
122
  readonly apps: {
112
- readonly maxItems: 20;
123
+ readonly title: 'Apps';
113
124
  readonly type: 'array';
114
125
  readonly items: {
115
126
  readonly type: 'object';
116
127
  readonly additionalProperties: false;
117
128
  readonly properties: {
118
129
  readonly name: {
130
+ readonly title: 'Name';
119
131
  readonly type: 'string';
120
132
  readonly minLength: 1;
121
133
  readonly maxLength: 200;
122
134
  };
123
135
  readonly reaches: {
136
+ readonly title: 'Reaches';
124
137
  readonly type: 'array';
125
138
  readonly items: {
126
139
  readonly type: 'string';
@@ -132,61 +145,102 @@ export declare const HOUSE_MODEL_DECLARATION: {
132
145
  readonly required: readonly ['name', 'reaches'];
133
146
  };
134
147
  };
148
+ readonly spaces: {
149
+ readonly title: 'Spaces';
150
+ readonly type: 'array';
151
+ readonly items: {
152
+ readonly type: 'object';
153
+ readonly additionalProperties: false;
154
+ readonly properties: {
155
+ readonly name: {
156
+ readonly title: 'Name';
157
+ readonly type: 'string';
158
+ };
159
+ };
160
+ readonly required: readonly ['name'];
161
+ };
162
+ };
135
163
  readonly expires_at: {
164
+ readonly title: 'Expires at';
136
165
  readonly type: 'string';
137
166
  readonly format: 'date-time';
138
167
  };
139
168
  readonly join_request: {
169
+ readonly title: 'Join request';
140
170
  readonly $ref: '#/$defs/id';
141
171
  };
142
172
  readonly user: {
173
+ readonly title: 'User';
143
174
  readonly type: 'object';
144
175
  readonly additionalProperties: false;
145
176
  readonly properties: {
146
177
  readonly name: {
178
+ readonly title: 'Name';
147
179
  readonly type: 'string';
148
180
  };
149
181
  readonly email: {
182
+ readonly title: 'Email';
150
183
  readonly type: 'string';
151
184
  readonly format: 'email';
152
185
  };
153
186
  };
154
- readonly required: readonly ['name', 'email'];
187
+ readonly required: readonly ['name'];
155
188
  };
156
189
  readonly room: {
190
+ readonly title: 'Room';
157
191
  readonly type: 'object';
158
192
  readonly additionalProperties: false;
159
193
  readonly properties: {
160
194
  readonly room: {
195
+ readonly title: 'Room';
161
196
  readonly $ref: '#/$defs/room';
162
197
  };
163
198
  readonly name: {
199
+ readonly title: 'Name';
164
200
  readonly type: 'string';
165
201
  };
166
202
  };
167
203
  readonly minProperties: 1;
168
204
  };
169
205
  readonly app: {
206
+ readonly title: 'App';
170
207
  readonly type: 'object';
171
208
  readonly additionalProperties: false;
172
209
  readonly properties: {
173
210
  readonly app: {
211
+ readonly title: 'App';
174
212
  readonly $ref: '#/$defs/app';
175
213
  };
176
214
  };
177
215
  readonly required: readonly ['app'];
178
216
  };
217
+ readonly space: {
218
+ readonly title: 'Space';
219
+ readonly type: 'object';
220
+ readonly additionalProperties: false;
221
+ readonly properties: {
222
+ readonly space: {
223
+ readonly title: 'Space';
224
+ readonly $ref: '#/$defs/space';
225
+ };
226
+ };
227
+ readonly required: readonly ['space'];
228
+ };
179
229
  readonly ownership_offer: {
230
+ readonly title: 'Ownership offer';
180
231
  readonly $ref: '#/$defs/id';
181
232
  };
182
233
  readonly offerer: {
234
+ readonly title: 'Offerer';
183
235
  readonly type: 'object';
184
236
  readonly additionalProperties: false;
185
237
  readonly properties: {
186
238
  readonly name: {
239
+ readonly title: 'Name';
187
240
  readonly type: 'string';
188
241
  };
189
242
  readonly email: {
243
+ readonly title: 'Email';
190
244
  readonly type: 'string';
191
245
  readonly format: 'email';
192
246
  };
@@ -194,103 +248,137 @@ export declare const HOUSE_MODEL_DECLARATION: {
194
248
  readonly required: readonly ['name', 'email'];
195
249
  };
196
250
  readonly environment: {
251
+ readonly title: 'Environment';
197
252
  readonly type: 'object';
198
253
  readonly additionalProperties: false;
199
254
  readonly properties: {
200
255
  readonly environment: {
256
+ readonly title: 'Environment';
201
257
  readonly $ref: '#/$defs/id';
202
258
  };
203
259
  readonly name: {
260
+ readonly title: 'Name';
204
261
  readonly type: 'string';
205
262
  };
206
263
  readonly kind: {
264
+ readonly title: 'Kind';
207
265
  readonly enum: readonly ['vps', 'sandbox'];
208
266
  };
209
267
  };
210
268
  readonly required: readonly ['environment', 'name'];
211
269
  };
212
270
  readonly reason: {
271
+ readonly title: 'Reason';
213
272
  readonly type: 'string';
214
273
  };
215
274
  readonly deadline: {
275
+ readonly title: 'Deadline';
216
276
  readonly type: 'string';
217
277
  readonly format: 'date-time';
218
278
  };
219
279
  readonly free: {
280
+ readonly title: 'Free';
220
281
  readonly type: 'object';
221
282
  readonly additionalProperties: false;
222
283
  readonly properties: {
223
284
  readonly held: {
285
+ readonly title: 'Held';
224
286
  readonly type: 'string';
225
287
  readonly pattern: '^\\d+$';
226
288
  };
227
289
  readonly limit: {
290
+ readonly title: 'Limit';
228
291
  readonly type: 'string';
229
292
  readonly pattern: '^[1-9]\\d*$';
230
293
  };
231
294
  readonly measure: {
295
+ readonly title: 'Measure';
232
296
  readonly type: 'string';
233
297
  readonly enum: readonly ['content', 'retained'];
234
298
  };
235
299
  };
236
300
  readonly required: readonly ['held', 'limit', 'measure'];
237
301
  };
302
+ readonly chat: {
303
+ readonly title: 'Chat';
304
+ readonly type: 'string';
305
+ };
306
+ readonly missing: {
307
+ readonly title: 'Missing';
308
+ readonly type: 'array';
309
+ readonly items: {
310
+ readonly type: 'string';
311
+ readonly enum: readonly ['private', 'topics', 'ban_users', 'invite_users', 'manage_topics', 'post_messages', 'edit_messages', 'inbox_manage_topics', 'inbox_delete_messages'];
312
+ };
313
+ };
238
314
  readonly budget: {
315
+ readonly title: 'Budget';
239
316
  readonly type: 'string';
240
317
  readonly pattern: '^\\d+(?:\\.\\d+)?$';
241
318
  };
242
319
  readonly resets_at: {
320
+ readonly title: 'Resets at';
243
321
  readonly type: 'string';
244
322
  readonly format: 'date-time';
245
323
  };
246
324
  readonly grant: {
325
+ readonly title: 'Grant';
247
326
  readonly $ref: '#/$defs/id';
248
327
  };
249
328
  readonly category: {
329
+ readonly title: 'Category';
250
330
  readonly type: 'string';
251
331
  };
252
332
  readonly access_started_at: {
333
+ readonly title: 'Access started at';
253
334
  readonly type: 'string';
254
335
  readonly format: 'date-time';
255
336
  };
256
337
  readonly access_ended_at: {
338
+ readonly title: 'Access ended at';
257
339
  readonly type: 'string';
258
340
  readonly format: 'date-time';
259
341
  };
260
342
  readonly systems: {
343
+ readonly title: 'Systems';
261
344
  readonly type: 'array';
262
345
  readonly items: {
263
346
  readonly type: 'string';
264
347
  };
265
348
  };
266
349
  readonly case_reference: {
350
+ readonly title: 'Case reference';
267
351
  readonly type: 'string';
268
352
  };
269
353
  readonly export: {
354
+ readonly title: 'Export';
270
355
  readonly $ref: '#/$defs/id';
271
356
  };
272
357
  readonly size_bytes: {
358
+ readonly title: 'Size in bytes';
273
359
  readonly type: 'integer';
274
360
  readonly minimum: 0;
275
361
  };
276
- readonly title: {
277
- readonly type: 'string';
278
- };
279
- readonly body: {
362
+ readonly name: {
363
+ readonly title: 'Name';
280
364
  readonly type: 'string';
281
365
  };
282
366
  readonly authorship: {
367
+ readonly title: 'Authorship';
283
368
  readonly type: 'object';
284
369
  readonly additionalProperties: false;
285
370
  readonly properties: {
286
371
  readonly kind: {
372
+ readonly title: 'Kind';
287
373
  readonly type: 'string';
288
374
  readonly const: 'trigger-action';
289
375
  };
290
376
  readonly trigger: {
377
+ readonly title: 'Trigger';
291
378
  readonly $ref: '#/$defs/id';
292
379
  };
293
380
  readonly position: {
381
+ readonly title: 'Position';
294
382
  readonly type: 'integer';
295
383
  readonly minimum: 0;
296
384
  };
@@ -298,38 +386,80 @@ export declare const HOUSE_MODEL_DECLARATION: {
298
386
  readonly required: readonly ['kind', 'trigger', 'position'];
299
387
  };
300
388
  readonly path: {
389
+ readonly title: 'Path';
301
390
  readonly type: 'string';
302
391
  readonly maxLength: 4096;
303
392
  readonly pattern: '^\\/.*';
304
393
  };
305
394
  readonly trigger: {
395
+ readonly title: 'Trigger';
306
396
  readonly type: 'object';
307
397
  readonly additionalProperties: false;
308
398
  readonly properties: {
309
399
  readonly trigger: {
400
+ readonly title: 'Trigger';
310
401
  readonly $ref: '#/$defs/id';
311
402
  };
312
403
  readonly description: {
404
+ readonly title: 'Description';
313
405
  readonly type: 'string';
314
406
  };
315
407
  };
316
408
  readonly required: readonly ['trigger', 'description'];
317
409
  };
318
410
  readonly code: {
411
+ readonly title: 'Code';
319
412
  readonly type: 'string';
320
413
  readonly enum: readonly ['failed', 'function_failed', 'function_not_started', 'agent_function_request_not_started'];
321
414
  };
322
415
  readonly action: {
416
+ readonly title: 'Action';
323
417
  readonly type: 'integer';
324
418
  readonly minimum: 0;
325
419
  };
326
420
  readonly moment: {
421
+ readonly title: 'Moment';
327
422
  readonly type: 'string';
328
423
  readonly format: 'date-time';
329
424
  };
330
425
  readonly error: {
426
+ readonly title: 'Error';
331
427
  readonly type: 'string';
332
428
  };
429
+ readonly agent_function: {
430
+ readonly title: 'Agent function';
431
+ readonly type: 'object';
432
+ readonly additionalProperties: false;
433
+ readonly properties: {
434
+ readonly name: {
435
+ readonly title: 'Name';
436
+ readonly type: 'string';
437
+ };
438
+ };
439
+ readonly required: readonly ['name'];
440
+ };
441
+ readonly agent: {
442
+ readonly title: 'Agent';
443
+ readonly type: 'object';
444
+ readonly additionalProperties: false;
445
+ readonly properties: {
446
+ readonly name: {
447
+ readonly title: 'Name';
448
+ readonly type: 'string';
449
+ };
450
+ };
451
+ readonly required: readonly ['name'];
452
+ };
453
+ readonly ended: {
454
+ readonly title: 'Ended';
455
+ readonly type: 'string';
456
+ readonly enum: readonly ['finished', 'failed'];
457
+ };
458
+ readonly duration: {
459
+ readonly title: 'Duration';
460
+ readonly type: 'integer';
461
+ readonly minimum: 1;
462
+ };
333
463
  };
334
464
  readonly required: readonly ['notification', 'kind', 'created', 'way_in', 'subject'];
335
465
  };
@@ -341,26 +471,33 @@ export declare const HOUSE_MODEL_DECLARATION: {
341
471
  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.";
342
472
  readonly properties: {
343
473
  readonly reflected: {
474
+ readonly title: 'Reflected';
344
475
  readonly type: 'string';
345
476
  readonly format: 'date-time';
346
477
  };
347
478
  readonly agent_function: {
479
+ readonly title: 'Agent function';
348
480
  readonly $ref: '#/$defs/id';
349
481
  };
350
482
  readonly description: {
483
+ readonly title: 'Description';
351
484
  readonly type: 'string';
352
485
  };
353
486
  readonly input: {
487
+ readonly title: 'Input';
354
488
  readonly type: 'string';
355
489
  };
356
490
  readonly agent: {
491
+ readonly title: 'Agent';
357
492
  readonly type: 'object';
358
493
  readonly additionalProperties: false;
359
494
  readonly properties: {
360
495
  readonly agent: {
496
+ readonly title: 'Agent';
361
497
  readonly $ref: '#/$defs/id';
362
498
  };
363
499
  readonly name: {
500
+ readonly title: 'Name';
364
501
  readonly type: 'string';
365
502
  };
366
503
  };
@@ -370,19 +507,26 @@ export declare const HOUSE_MODEL_DECLARATION: {
370
507
  readonly required: readonly ['reflected', 'agent_function', 'description', 'input', 'agent'];
371
508
  };
372
509
  readonly 'house-agent-function-document': {
373
- 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.';
510
+ 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.';
374
511
  readonly properties: {
375
512
  readonly description: {
513
+ readonly title: 'Description';
376
514
  readonly type: 'string';
377
515
  readonly maxLength: 2000;
378
516
  readonly pattern: '\\S';
379
517
  };
380
518
  readonly input: {
519
+ readonly title: 'Input';
381
520
  readonly type: 'string';
382
521
  };
383
522
  readonly agent: {
523
+ readonly title: 'Agent';
384
524
  readonly $ref: '#/$defs/id';
385
525
  };
526
+ readonly afk: {
527
+ readonly title: 'AFK';
528
+ readonly type: 'boolean';
529
+ };
386
530
  };
387
531
  readonly required: readonly ['description', 'input', 'agent'];
388
532
  };
@@ -390,21 +534,26 @@ export declare const HOUSE_MODEL_DECLARATION: {
390
534
  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.";
391
535
  readonly properties: {
392
536
  readonly reflected: {
537
+ readonly title: 'Reflected';
393
538
  readonly type: 'string';
394
539
  readonly format: 'date-time';
395
540
  };
396
541
  readonly trigger: {
542
+ readonly title: 'Trigger';
397
543
  readonly $ref: '#/$defs/id';
398
544
  };
399
545
  readonly description: {
546
+ readonly title: 'Description';
400
547
  readonly type: 'string';
401
548
  };
402
549
  readonly condition: {
550
+ readonly title: 'Condition';
403
551
  readonly description: 'When it fires, as the Trigger reference page writes it, a document it names at its current path.';
404
552
  readonly type: 'object';
405
553
  readonly additionalProperties: true;
406
554
  };
407
555
  readonly actions: {
556
+ readonly title: 'Actions';
408
557
  readonly type: 'array';
409
558
  readonly items: {
410
559
  readonly anyOf: readonly [{
@@ -412,28 +561,35 @@ export declare const HOUSE_MODEL_DECLARATION: {
412
561
  readonly additionalProperties: false;
413
562
  readonly properties: {
414
563
  readonly kind: {
564
+ readonly title: 'Kind';
415
565
  readonly const: 'notify';
416
566
  };
417
567
  readonly enabled: {
568
+ readonly title: 'Enabled';
418
569
  readonly type: 'boolean';
419
570
  };
420
571
  readonly title: {
572
+ readonly title: 'Title';
421
573
  readonly type: 'string';
422
574
  };
423
575
  readonly text: {
576
+ readonly title: 'Text';
424
577
  readonly type: 'string';
425
578
  };
426
579
  readonly to: {
580
+ readonly title: 'To';
427
581
  readonly type: 'object';
428
582
  readonly additionalProperties: false;
429
583
  readonly properties: {
430
584
  readonly users: {
585
+ readonly title: 'Users';
431
586
  readonly type: 'array';
432
587
  readonly items: {
433
588
  readonly type: 'object';
434
589
  readonly additionalProperties: false;
435
590
  readonly properties: {
436
591
  readonly user: {
592
+ readonly title: 'User';
437
593
  readonly $ref: '#/$defs/id';
438
594
  };
439
595
  };
@@ -441,12 +597,14 @@ export declare const HOUSE_MODEL_DECLARATION: {
441
597
  };
442
598
  };
443
599
  readonly fields: {
600
+ readonly title: 'Fields';
444
601
  readonly type: 'array';
445
602
  readonly items: {
446
603
  readonly type: 'string';
447
604
  };
448
605
  };
449
606
  readonly roles: {
607
+ readonly title: 'Roles';
450
608
  readonly type: 'array';
451
609
  readonly items: {
452
610
  readonly type: 'string';
@@ -462,16 +620,20 @@ export declare const HOUSE_MODEL_DECLARATION: {
462
620
  readonly additionalProperties: false;
463
621
  readonly properties: {
464
622
  readonly kind: {
623
+ readonly title: 'Kind';
465
624
  readonly const: 'agent_function';
466
625
  };
467
626
  readonly enabled: {
627
+ readonly title: 'Enabled';
468
628
  readonly type: 'boolean';
469
629
  };
470
630
  readonly card: {
631
+ readonly title: 'Card';
471
632
  readonly type: 'string';
472
633
  readonly minLength: 1;
473
634
  };
474
635
  readonly payload: {
636
+ readonly title: 'Payload';
475
637
  readonly type: 'string';
476
638
  };
477
639
  };
@@ -481,16 +643,20 @@ export declare const HOUSE_MODEL_DECLARATION: {
481
643
  readonly additionalProperties: false;
482
644
  readonly properties: {
483
645
  readonly kind: {
646
+ readonly title: 'Kind';
484
647
  readonly const: 'message';
485
648
  };
486
649
  readonly enabled: {
650
+ readonly title: 'Enabled';
487
651
  readonly type: 'boolean';
488
652
  };
489
653
  readonly card: {
654
+ readonly title: 'Card';
490
655
  readonly type: 'string';
491
656
  readonly minLength: 1;
492
657
  };
493
658
  readonly text: {
659
+ readonly title: 'Text';
494
660
  readonly type: 'string';
495
661
  };
496
662
  };
@@ -500,9 +666,11 @@ export declare const HOUSE_MODEL_DECLARATION: {
500
666
  readonly additionalProperties: false;
501
667
  readonly properties: {
502
668
  readonly kind: {
669
+ readonly title: 'Kind';
503
670
  readonly const: 'done';
504
671
  };
505
672
  readonly enabled: {
673
+ readonly title: 'Enabled';
506
674
  readonly type: 'boolean';
507
675
  };
508
676
  };
@@ -512,15 +680,19 @@ export declare const HOUSE_MODEL_DECLARATION: {
512
680
  readonly additionalProperties: false;
513
681
  readonly properties: {
514
682
  readonly kind: {
683
+ readonly title: 'Kind';
515
684
  readonly const: 'function';
516
685
  };
517
686
  readonly enabled: {
687
+ readonly title: 'Enabled';
518
688
  readonly type: 'boolean';
519
689
  };
520
690
  readonly app: {
691
+ readonly title: 'App';
521
692
  readonly $ref: '#/$defs/app';
522
693
  };
523
694
  readonly function: {
695
+ readonly title: 'Function';
524
696
  readonly type: 'string';
525
697
  };
526
698
  };
@@ -529,25 +701,31 @@ export declare const HOUSE_MODEL_DECLARATION: {
529
701
  };
530
702
  };
531
703
  readonly enabled: {
704
+ readonly title: 'Enabled';
532
705
  readonly type: 'boolean';
533
706
  };
534
707
  readonly paused_by: {
708
+ readonly title: 'Paused by';
535
709
  readonly enum: readonly ['types'];
536
710
  };
537
711
  readonly creator: {
712
+ readonly title: 'Creator';
538
713
  readonly type: 'object';
539
714
  readonly additionalProperties: false;
540
715
  readonly properties: {
541
716
  readonly user: {
717
+ readonly title: 'User';
542
718
  readonly $ref: '#/$defs/id';
543
719
  };
544
720
  readonly name: {
721
+ readonly title: 'Name';
545
722
  readonly type: 'string';
546
723
  };
547
724
  };
548
725
  readonly required: readonly ['user', 'name'];
549
726
  };
550
727
  readonly created: {
728
+ readonly title: 'Created';
551
729
  readonly type: 'string';
552
730
  readonly format: 'date-time';
553
731
  };
@@ -558,32 +736,40 @@ export declare const HOUSE_MODEL_DECLARATION: {
558
736
  readonly description: "One Web Wizard an agent made for this User: the `environment` it runs on, with the `name` that Environment had when the Web Wizard was made, and its `state`, `waiting` until its owner presses Run or Keep, `running`, `finished` with the script's `exit_code`, `failed`, `cancelled` when its page closed before the script ended, `lapsed` when nobody ran it in its time, or `kept` when its owner kept the script, without running it, as their Environment function named `function`. Its body is the script, whole, in one fenced code block. The terminal's output is never kept.";
559
737
  readonly properties: {
560
738
  readonly reflected: {
739
+ readonly title: 'Reflected';
561
740
  readonly type: 'string';
562
741
  readonly format: 'date-time';
563
742
  };
564
743
  readonly web_wizard: {
744
+ readonly title: 'Web Wizard';
565
745
  readonly $ref: '#/$defs/id';
566
746
  };
567
747
  readonly environment: {
748
+ readonly title: 'Environment';
568
749
  readonly type: 'object';
569
750
  readonly additionalProperties: false;
570
751
  readonly properties: {
571
752
  readonly environment: {
753
+ readonly title: 'Environment';
572
754
  readonly $ref: '#/$defs/id';
573
755
  };
574
756
  readonly name: {
757
+ readonly title: 'Name';
575
758
  readonly type: 'string';
576
759
  };
577
760
  };
578
761
  readonly required: readonly ['environment', 'name'];
579
762
  };
580
763
  readonly state: {
764
+ readonly title: 'State';
581
765
  readonly enum: readonly ['waiting', 'running', 'finished', 'failed', 'cancelled', 'lapsed', 'kept'];
582
766
  };
583
767
  readonly exit_code: {
768
+ readonly title: 'Exit code';
584
769
  readonly type: 'integer';
585
770
  };
586
771
  readonly function: {
772
+ readonly title: 'Function';
587
773
  readonly type: 'string';
588
774
  };
589
775
  };
@@ -610,7 +796,7 @@ type Properties<S> = S extends {
610
796
  }> : S extends {
611
797
  readonly additionalProperties: false;
612
798
  } ? Readonly<Record<string, never>> : Readonly<Record<string, unknown>>;
613
- 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 {
799
+ type Typed<T, S> = T extends 'string' ? string : T extends 'integer' ? number : T extends 'boolean' ? boolean : T extends 'array' ? readonly (S extends {
614
800
  readonly items: infer I;
615
801
  } ? Value<I> : unknown)[] : T extends 'object' ? Properties<S> : never;
616
802
  type Value<S> = S extends {
@@ -638,4 +824,3 @@ export type HouseDocumentFields<Type extends HouseModelType> = Properties<{
638
824
  readonly required: readonly ('type' | Needed<Model[Type]>)[];
639
825
  }>;
640
826
  export {};
641
- //# sourceMappingURL=house-model.d.ts.map