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

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 (78) hide show
  1. package/README.md +2 -2
  2. package/dist/actions.d.ts +4 -65
  3. package/dist/actions.d.ts.map +1 -1
  4. package/dist/actions.js +8 -347
  5. package/dist/adapter.d.ts +1 -0
  6. package/dist/adapter.d.ts.map +1 -1
  7. package/dist/adapter.js +257 -277
  8. package/dist/app-reference.d.ts +2 -0
  9. package/dist/app-reference.d.ts.map +1 -0
  10. package/dist/app-reference.js +2 -0
  11. package/dist/crockford.d.ts +4 -0
  12. package/dist/crockford.d.ts.map +1 -0
  13. package/dist/crockford.js +3 -0
  14. package/dist/discovery.d.ts +24 -14
  15. package/dist/discovery.d.ts.map +1 -1
  16. package/dist/discovery.js +93 -54
  17. package/dist/history.d.ts +12 -0
  18. package/dist/history.d.ts.map +1 -0
  19. package/dist/history.js +92 -0
  20. package/dist/house-model.d.ts +641 -0
  21. package/dist/house-model.d.ts.map +1 -0
  22. package/dist/house-model.js +361 -0
  23. package/dist/index.d.ts +11 -2
  24. package/dist/index.d.ts.map +1 -1
  25. package/dist/index.js +10 -1
  26. package/dist/model.d.ts +8 -4
  27. package/dist/model.d.ts.map +1 -1
  28. package/dist/model.js +36 -36
  29. package/dist/part.d.ts +14 -0
  30. package/dist/part.d.ts.map +1 -0
  31. package/dist/part.js +90 -0
  32. package/dist/read.d.ts +58 -43
  33. package/dist/read.d.ts.map +1 -1
  34. package/dist/read.js +245 -204
  35. package/dist/refusal.d.ts +0 -3
  36. package/dist/refusal.d.ts.map +1 -1
  37. package/dist/refusal.js +2 -6
  38. package/dist/room-stream.d.ts +20 -0
  39. package/dist/room-stream.d.ts.map +1 -0
  40. package/dist/room-stream.js +57 -0
  41. package/dist/room-types.d.ts +7 -0
  42. package/dist/room-types.d.ts.map +1 -0
  43. package/dist/room-types.js +123 -0
  44. package/dist/search.d.ts +5 -0
  45. package/dist/search.d.ts.map +1 -0
  46. package/dist/search.js +47 -0
  47. package/dist/site.d.ts +1 -1
  48. package/dist/site.d.ts.map +1 -1
  49. package/dist/site.js +120 -131
  50. package/dist/space-schema.d.ts +7 -0
  51. package/dist/space-schema.d.ts.map +1 -0
  52. package/dist/space-schema.js +18 -0
  53. package/dist/stream.d.ts +13 -12
  54. package/dist/stream.d.ts.map +1 -1
  55. package/dist/stream.js +209 -158
  56. package/dist/transport.d.ts +85 -25
  57. package/dist/transport.d.ts.map +1 -1
  58. package/dist/transport.js +54 -11
  59. package/dist/upload.d.ts +12 -0
  60. package/dist/upload.d.ts.map +1 -0
  61. package/dist/upload.js +63 -0
  62. package/dist/version.d.ts +1 -0
  63. package/dist/version.d.ts.map +1 -1
  64. package/dist/version.js +1 -1
  65. package/dist/write.d.ts +18 -2
  66. package/dist/write.d.ts.map +1 -1
  67. package/dist/write.js +105 -71
  68. package/package.json +8 -4
  69. package/AGENTS.md +0 -302
  70. package/dist/gather.d.ts +0 -4
  71. package/dist/gather.d.ts.map +0 -1
  72. package/dist/gather.js +0 -45
  73. package/dist/handed.d.ts +0 -15
  74. package/dist/handed.d.ts.map +0 -1
  75. package/dist/handed.js +0 -38
  76. package/dist/referrer.d.ts +0 -7
  77. package/dist/referrer.d.ts.map +0 -1
  78. package/dist/referrer.js +0 -35
@@ -0,0 +1,641 @@
1
+ import type { TypedPath } from '@agentshouse/mdruntime';
2
+ export declare const HOUSE_MODEL_DECLARATION: {
3
+ readonly $defs: {
4
+ readonly room: {
5
+ readonly description: 'A Room, by its Room reference, under the key `room`.';
6
+ readonly type: 'string';
7
+ readonly pattern: '^r_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$';
8
+ };
9
+ readonly app: {
10
+ readonly description: 'An App, by its App reference, under the key `app`.';
11
+ readonly type: 'string';
12
+ readonly pattern: '^a_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$';
13
+ };
14
+ readonly document: {
15
+ readonly description: 'A document of a Room, by its file reference, under the key `document`.';
16
+ readonly type: 'string';
17
+ readonly pattern: '^af_([123456789abcdefghjkmnpqrstvwxyz][0123456789abcdefghjkmnpqrstvwxyz]*)\\.([0123456789abcdefghjkmnpqrstvwxyz])$';
18
+ };
19
+ readonly id: {
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
+ readonly type: 'string';
22
+ readonly format: 'uuid';
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
+ };
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';
36
+ };
37
+ };
38
+ readonly required: readonly ['app'];
39
+ };
40
+ readonly 'house-notification': {
41
+ 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
+ readonly properties: {
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', 'room-ownership-offer', 'managed-environment-retention-opened', 'storage-full', 'sandbox-budget-spent', 'trigger-failed', 'break-glass-owner-disclosure', 'export-ready', 'export-failed', 'custom'];
49
+ };
50
+ readonly created: {
51
+ readonly type: 'string';
52
+ readonly format: 'date-time';
53
+ };
54
+ readonly read: {
55
+ readonly type: 'string';
56
+ readonly format: 'date-time';
57
+ };
58
+ readonly way_in: {
59
+ readonly type: 'object';
60
+ readonly additionalProperties: false;
61
+ readonly properties: {
62
+ readonly path: {
63
+ readonly type: 'string';
64
+ readonly pattern: '^\\/';
65
+ };
66
+ readonly room: {
67
+ readonly $ref: '#/$defs/room';
68
+ };
69
+ readonly environment: {
70
+ readonly $ref: '#/$defs/id';
71
+ };
72
+ readonly trigger: {
73
+ readonly $ref: '#/$defs/id';
74
+ };
75
+ };
76
+ readonly minProperties: 1;
77
+ };
78
+ readonly subject: {
79
+ readonly type: 'string';
80
+ };
81
+ readonly share: {
82
+ readonly $ref: '#/$defs/id';
83
+ };
84
+ readonly issuer: {
85
+ readonly type: 'object';
86
+ readonly additionalProperties: false;
87
+ readonly properties: {
88
+ readonly name: {
89
+ readonly type: 'string';
90
+ };
91
+ readonly email: {
92
+ readonly type: 'string';
93
+ readonly format: 'email';
94
+ };
95
+ };
96
+ readonly required: readonly ['name', 'email'];
97
+ };
98
+ readonly rooms: {
99
+ readonly type: 'array';
100
+ readonly items: {
101
+ readonly type: 'object';
102
+ readonly additionalProperties: false;
103
+ readonly properties: {
104
+ readonly name: {
105
+ readonly type: 'string';
106
+ };
107
+ };
108
+ readonly required: readonly ['name'];
109
+ };
110
+ };
111
+ readonly apps: {
112
+ readonly maxItems: 20;
113
+ readonly type: 'array';
114
+ readonly items: {
115
+ readonly type: 'object';
116
+ readonly additionalProperties: false;
117
+ readonly properties: {
118
+ readonly name: {
119
+ readonly type: 'string';
120
+ readonly minLength: 1;
121
+ readonly maxLength: 200;
122
+ };
123
+ readonly reaches: {
124
+ readonly type: 'array';
125
+ readonly items: {
126
+ readonly type: 'string';
127
+ readonly minLength: 1;
128
+ readonly maxLength: 512;
129
+ };
130
+ };
131
+ };
132
+ readonly required: readonly ['name', 'reaches'];
133
+ };
134
+ };
135
+ readonly expires_at: {
136
+ readonly type: 'string';
137
+ readonly format: 'date-time';
138
+ };
139
+ readonly join_request: {
140
+ readonly $ref: '#/$defs/id';
141
+ };
142
+ readonly user: {
143
+ readonly type: 'object';
144
+ readonly additionalProperties: false;
145
+ readonly properties: {
146
+ readonly name: {
147
+ readonly type: 'string';
148
+ };
149
+ readonly email: {
150
+ readonly type: 'string';
151
+ readonly format: 'email';
152
+ };
153
+ };
154
+ readonly required: readonly ['name', 'email'];
155
+ };
156
+ readonly room: {
157
+ readonly type: 'object';
158
+ readonly additionalProperties: false;
159
+ readonly properties: {
160
+ readonly room: {
161
+ readonly $ref: '#/$defs/room';
162
+ };
163
+ readonly name: {
164
+ readonly type: 'string';
165
+ };
166
+ };
167
+ readonly minProperties: 1;
168
+ };
169
+ readonly app: {
170
+ readonly type: 'object';
171
+ readonly additionalProperties: false;
172
+ readonly properties: {
173
+ readonly app: {
174
+ readonly $ref: '#/$defs/app';
175
+ };
176
+ };
177
+ readonly required: readonly ['app'];
178
+ };
179
+ readonly ownership_offer: {
180
+ readonly $ref: '#/$defs/id';
181
+ };
182
+ readonly offerer: {
183
+ readonly type: 'object';
184
+ readonly additionalProperties: false;
185
+ readonly properties: {
186
+ readonly name: {
187
+ readonly type: 'string';
188
+ };
189
+ readonly email: {
190
+ readonly type: 'string';
191
+ readonly format: 'email';
192
+ };
193
+ };
194
+ readonly required: readonly ['name', 'email'];
195
+ };
196
+ readonly environment: {
197
+ readonly type: 'object';
198
+ readonly additionalProperties: false;
199
+ readonly properties: {
200
+ readonly environment: {
201
+ readonly $ref: '#/$defs/id';
202
+ };
203
+ readonly name: {
204
+ readonly type: 'string';
205
+ };
206
+ readonly kind: {
207
+ readonly enum: readonly ['vps', 'sandbox'];
208
+ };
209
+ };
210
+ readonly required: readonly ['environment', 'name'];
211
+ };
212
+ readonly reason: {
213
+ readonly type: 'string';
214
+ };
215
+ readonly deadline: {
216
+ readonly type: 'string';
217
+ readonly format: 'date-time';
218
+ };
219
+ readonly free: {
220
+ readonly type: 'object';
221
+ readonly additionalProperties: false;
222
+ readonly properties: {
223
+ readonly held: {
224
+ readonly type: 'string';
225
+ readonly pattern: '^\\d+$';
226
+ };
227
+ readonly limit: {
228
+ readonly type: 'string';
229
+ readonly pattern: '^[1-9]\\d*$';
230
+ };
231
+ readonly measure: {
232
+ readonly type: 'string';
233
+ readonly enum: readonly ['content', 'retained'];
234
+ };
235
+ };
236
+ readonly required: readonly ['held', 'limit', 'measure'];
237
+ };
238
+ readonly budget: {
239
+ readonly type: 'string';
240
+ readonly pattern: '^\\d+(?:\\.\\d+)?$';
241
+ };
242
+ readonly resets_at: {
243
+ readonly type: 'string';
244
+ readonly format: 'date-time';
245
+ };
246
+ readonly grant: {
247
+ readonly $ref: '#/$defs/id';
248
+ };
249
+ readonly category: {
250
+ readonly type: 'string';
251
+ };
252
+ readonly access_started_at: {
253
+ readonly type: 'string';
254
+ readonly format: 'date-time';
255
+ };
256
+ readonly access_ended_at: {
257
+ readonly type: 'string';
258
+ readonly format: 'date-time';
259
+ };
260
+ readonly systems: {
261
+ readonly type: 'array';
262
+ readonly items: {
263
+ readonly type: 'string';
264
+ };
265
+ };
266
+ readonly case_reference: {
267
+ readonly type: 'string';
268
+ };
269
+ readonly export: {
270
+ readonly $ref: '#/$defs/id';
271
+ };
272
+ readonly size_bytes: {
273
+ readonly type: 'integer';
274
+ readonly minimum: 0;
275
+ };
276
+ readonly title: {
277
+ readonly type: 'string';
278
+ };
279
+ readonly body: {
280
+ readonly type: 'string';
281
+ };
282
+ readonly authorship: {
283
+ readonly type: 'object';
284
+ readonly additionalProperties: false;
285
+ readonly properties: {
286
+ readonly kind: {
287
+ readonly type: 'string';
288
+ readonly const: 'trigger-action';
289
+ };
290
+ readonly trigger: {
291
+ readonly $ref: '#/$defs/id';
292
+ };
293
+ readonly position: {
294
+ readonly type: 'integer';
295
+ readonly minimum: 0;
296
+ };
297
+ };
298
+ readonly required: readonly ['kind', 'trigger', 'position'];
299
+ };
300
+ readonly path: {
301
+ readonly type: 'string';
302
+ readonly maxLength: 4096;
303
+ readonly pattern: '^\\/.*';
304
+ };
305
+ readonly trigger: {
306
+ readonly type: 'object';
307
+ readonly additionalProperties: false;
308
+ readonly properties: {
309
+ readonly trigger: {
310
+ readonly $ref: '#/$defs/id';
311
+ };
312
+ readonly description: {
313
+ readonly type: 'string';
314
+ };
315
+ };
316
+ readonly required: readonly ['trigger', 'description'];
317
+ };
318
+ readonly code: {
319
+ readonly type: 'string';
320
+ readonly enum: readonly ['failed', 'function_failed', 'function_not_started', 'agent_function_request_not_started'];
321
+ };
322
+ readonly action: {
323
+ readonly type: 'integer';
324
+ readonly minimum: 0;
325
+ };
326
+ readonly moment: {
327
+ readonly type: 'string';
328
+ readonly format: 'date-time';
329
+ };
330
+ readonly error: {
331
+ readonly type: 'string';
332
+ };
333
+ };
334
+ readonly required: readonly ['notification', 'kind', 'created', 'way_in', 'subject'];
335
+ };
336
+ readonly 'house-panel-preferences': {
337
+ readonly description: "The panel's preferences at /rooms/private/settings/panel.md. Its own vocabulary is in the body.";
338
+ readonly properties: {};
339
+ };
340
+ readonly 'house-agent-function': {
341
+ 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
+ readonly properties: {
343
+ readonly reflected: {
344
+ readonly type: 'string';
345
+ readonly format: 'date-time';
346
+ };
347
+ readonly agent_function: {
348
+ readonly $ref: '#/$defs/id';
349
+ };
350
+ readonly description: {
351
+ readonly type: 'string';
352
+ };
353
+ readonly input: {
354
+ readonly type: 'string';
355
+ };
356
+ readonly agent: {
357
+ readonly type: 'object';
358
+ readonly additionalProperties: false;
359
+ readonly properties: {
360
+ readonly agent: {
361
+ readonly $ref: '#/$defs/id';
362
+ };
363
+ readonly name: {
364
+ readonly type: 'string';
365
+ };
366
+ };
367
+ readonly required: readonly ['agent', 'name'];
368
+ };
369
+ };
370
+ readonly required: readonly ['reflected', 'agent_function', 'description', 'input', 'agent'];
371
+ };
372
+ 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.';
374
+ readonly properties: {
375
+ readonly description: {
376
+ readonly type: 'string';
377
+ readonly maxLength: 2000;
378
+ readonly pattern: '\\S';
379
+ };
380
+ readonly input: {
381
+ readonly type: 'string';
382
+ };
383
+ readonly agent: {
384
+ readonly $ref: '#/$defs/id';
385
+ };
386
+ };
387
+ readonly required: readonly ['description', 'input', 'agent'];
388
+ };
389
+ readonly 'house-trigger': {
390
+ 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
+ readonly properties: {
392
+ readonly reflected: {
393
+ readonly type: 'string';
394
+ readonly format: 'date-time';
395
+ };
396
+ readonly trigger: {
397
+ readonly $ref: '#/$defs/id';
398
+ };
399
+ readonly description: {
400
+ readonly type: 'string';
401
+ };
402
+ readonly condition: {
403
+ readonly description: 'When it fires, as the Trigger reference page writes it, a document it names at its current path.';
404
+ readonly type: 'object';
405
+ readonly additionalProperties: true;
406
+ };
407
+ readonly actions: {
408
+ readonly type: 'array';
409
+ readonly items: {
410
+ readonly anyOf: readonly [{
411
+ readonly type: 'object';
412
+ readonly additionalProperties: false;
413
+ readonly properties: {
414
+ readonly kind: {
415
+ readonly const: 'notify';
416
+ };
417
+ readonly enabled: {
418
+ readonly type: 'boolean';
419
+ };
420
+ readonly title: {
421
+ readonly type: 'string';
422
+ };
423
+ readonly text: {
424
+ readonly type: 'string';
425
+ };
426
+ readonly to: {
427
+ readonly type: 'object';
428
+ readonly additionalProperties: false;
429
+ readonly properties: {
430
+ readonly users: {
431
+ readonly type: 'array';
432
+ readonly items: {
433
+ readonly type: 'object';
434
+ readonly additionalProperties: false;
435
+ readonly properties: {
436
+ readonly user: {
437
+ readonly $ref: '#/$defs/id';
438
+ };
439
+ };
440
+ readonly required: readonly ['user'];
441
+ };
442
+ };
443
+ readonly fields: {
444
+ readonly type: 'array';
445
+ readonly items: {
446
+ readonly type: 'string';
447
+ };
448
+ };
449
+ readonly roles: {
450
+ readonly type: 'array';
451
+ readonly items: {
452
+ readonly type: 'string';
453
+ };
454
+ };
455
+ };
456
+ readonly required: readonly ['users', 'fields', 'roles'];
457
+ };
458
+ };
459
+ readonly required: readonly ['kind', 'enabled', 'title', 'text', 'to'];
460
+ }, {
461
+ readonly type: 'object';
462
+ readonly additionalProperties: false;
463
+ readonly properties: {
464
+ readonly kind: {
465
+ readonly const: 'agent_function';
466
+ };
467
+ readonly enabled: {
468
+ readonly type: 'boolean';
469
+ };
470
+ readonly card: {
471
+ readonly type: 'string';
472
+ readonly minLength: 1;
473
+ };
474
+ readonly payload: {
475
+ readonly type: 'string';
476
+ };
477
+ };
478
+ readonly required: readonly ['kind', 'enabled', 'payload'];
479
+ }, {
480
+ readonly type: 'object';
481
+ readonly additionalProperties: false;
482
+ readonly properties: {
483
+ readonly kind: {
484
+ readonly const: 'message';
485
+ };
486
+ readonly enabled: {
487
+ readonly type: 'boolean';
488
+ };
489
+ readonly card: {
490
+ readonly type: 'string';
491
+ readonly minLength: 1;
492
+ };
493
+ readonly text: {
494
+ readonly type: 'string';
495
+ };
496
+ };
497
+ readonly required: readonly ['kind', 'enabled', 'text'];
498
+ }, {
499
+ readonly type: 'object';
500
+ readonly additionalProperties: false;
501
+ readonly properties: {
502
+ readonly kind: {
503
+ readonly const: 'done';
504
+ };
505
+ readonly enabled: {
506
+ readonly type: 'boolean';
507
+ };
508
+ };
509
+ readonly required: readonly ['kind', 'enabled'];
510
+ }, {
511
+ readonly type: 'object';
512
+ readonly additionalProperties: false;
513
+ readonly properties: {
514
+ readonly kind: {
515
+ readonly const: 'function';
516
+ };
517
+ readonly enabled: {
518
+ readonly type: 'boolean';
519
+ };
520
+ readonly app: {
521
+ readonly $ref: '#/$defs/app';
522
+ };
523
+ readonly function: {
524
+ readonly type: 'string';
525
+ };
526
+ };
527
+ readonly required: readonly ['kind', 'enabled', 'function'];
528
+ }];
529
+ };
530
+ };
531
+ readonly enabled: {
532
+ readonly type: 'boolean';
533
+ };
534
+ readonly paused_by: {
535
+ readonly enum: readonly ['types'];
536
+ };
537
+ readonly creator: {
538
+ readonly type: 'object';
539
+ readonly additionalProperties: false;
540
+ readonly properties: {
541
+ readonly user: {
542
+ readonly $ref: '#/$defs/id';
543
+ };
544
+ readonly name: {
545
+ readonly type: 'string';
546
+ };
547
+ };
548
+ readonly required: readonly ['user', 'name'];
549
+ };
550
+ readonly created: {
551
+ readonly type: 'string';
552
+ readonly format: 'date-time';
553
+ };
554
+ };
555
+ readonly required: readonly ['reflected', 'trigger', 'description', 'condition', 'actions', 'enabled', 'creator', 'created'];
556
+ };
557
+ readonly 'house-web-wizard': {
558
+ 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
+ readonly properties: {
560
+ readonly reflected: {
561
+ readonly type: 'string';
562
+ readonly format: 'date-time';
563
+ };
564
+ readonly web_wizard: {
565
+ readonly $ref: '#/$defs/id';
566
+ };
567
+ readonly environment: {
568
+ readonly type: 'object';
569
+ readonly additionalProperties: false;
570
+ readonly properties: {
571
+ readonly environment: {
572
+ readonly $ref: '#/$defs/id';
573
+ };
574
+ readonly name: {
575
+ readonly type: 'string';
576
+ };
577
+ };
578
+ readonly required: readonly ['environment', 'name'];
579
+ };
580
+ readonly state: {
581
+ readonly enum: readonly ['waiting', 'running', 'finished', 'failed', 'cancelled', 'lapsed', 'kept'];
582
+ };
583
+ readonly exit_code: {
584
+ readonly type: 'integer';
585
+ };
586
+ readonly function: {
587
+ readonly type: 'string';
588
+ };
589
+ };
590
+ readonly required: readonly ['reflected', 'web_wizard', 'environment', 'state'];
591
+ };
592
+ };
593
+ export declare const HOUSE_MODEL_TYPES: string;
594
+ export declare const HOUSE_TYPED_PATHS: readonly TypedPath[];
595
+ type Model = typeof HOUSE_MODEL_DECLARATION;
596
+ type Definitions = Model['$defs'];
597
+ export type HouseModelType = Exclude<keyof Model, '$defs'>;
598
+ type Needed<S> = S extends {
599
+ readonly required: readonly (infer Name)[];
600
+ } ? Name : never;
601
+ type Shape<T> = {
602
+ [K in keyof T]: T[K];
603
+ } & {};
604
+ type Properties<S> = S extends {
605
+ readonly properties: infer P;
606
+ } ? Shape<{
607
+ readonly [K in keyof P as K extends Needed<S> ? K : never]: Value<P[K]>;
608
+ } & {
609
+ readonly [K in keyof P as K extends Needed<S> ? never : K]?: Value<P[K]>;
610
+ }> : S extends {
611
+ readonly additionalProperties: false;
612
+ } ? 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 {
614
+ readonly items: infer I;
615
+ } ? Value<I> : unknown)[] : T extends 'object' ? Properties<S> : never;
616
+ type Value<S> = S extends {
617
+ readonly const: infer C;
618
+ } ? C : S extends {
619
+ readonly enum: readonly (infer E)[];
620
+ } ? E : S extends {
621
+ readonly anyOf: readonly (infer A)[];
622
+ } ? Value<A> : S extends {
623
+ readonly $ref: `#/$defs/${infer D}`;
624
+ } ? D extends keyof Definitions ? Value<Definitions[D]> : never : S extends {
625
+ readonly type: infer T;
626
+ } ? Typed<T, S> : S extends {
627
+ readonly properties: object;
628
+ } ? Properties<S> : unknown;
629
+ type Declared<Type extends HouseModelType> = Model[Type] extends {
630
+ readonly properties: infer P;
631
+ } ? P : {};
632
+ export type HouseDocumentFields<Type extends HouseModelType> = Properties<{
633
+ readonly properties: {
634
+ readonly type: {
635
+ readonly const: Type;
636
+ };
637
+ } & Declared<Type>;
638
+ readonly required: readonly ('type' | Needed<Model[Type]>)[];
639
+ }>;
640
+ export {};
641
+ //# sourceMappingURL=house-model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"house-model.d.ts","sourceRoot":"","sources":["../src/house-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAExD,eAAO,MAAM,uBAAuB;aAClC,KAAK;iBACH,IAAI;qBACF,WAAW,EAAE,sDAAsD;qBACnE,IAAI,EAAE,QAAQ;qBACd,OAAO,EAAE,kFAAkF;;iBAE7F,GAAG;qBACD,WAAW,EAAE,oDAAoD;qBACjE,IAAI,EAAE,QAAQ;qBACd,OAAO,EAAE,kFAAkF;;iBAE7F,QAAQ;qBACN,WAAW,EAAE,wEAAwE;qBACrF,IAAI,EAAE,QAAQ;qBACd,OAAO,EACL,oHAAoH;;iBAExH,EAAE;q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