@agentshouse/app-bridge 0.1.0-c8d97d63f2350 → 0.1.0-c8eb04e6114fb

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 (87) hide show
  1. package/README.md +6 -6
  2. package/dist/index.d.ts +194 -129
  3. package/dist/mdmodel/definition.d.ts +1 -1
  4. package/dist/mdmodel/document.d.ts +2 -1
  5. package/dist/mdmodel/event.d.ts +77 -0
  6. package/dist/mdmodel/facts.d.ts +14 -0
  7. package/dist/mdmodel/index.d.ts +19 -6
  8. package/dist/mdmodel/kinds.d.ts +18 -0
  9. package/dist/mdmodel/pattern.d.ts +9 -0
  10. package/dist/mdmodel/query/language.d.ts +253 -0
  11. package/dist/mdmodel/query/match.d.ts +13 -0
  12. package/dist/mdmodel/query/rows.d.ts +31 -0
  13. package/dist/mdmodel/query/sql.d.ts +38 -0
  14. package/dist/mdmodel/reserved.d.ts +4 -0
  15. package/dist/mdmodel/types.d.ts +11 -0
  16. package/dist/mdmodel/validate.d.ts +7 -5
  17. package/dist/mdruntime/actions.d.ts +19 -0
  18. package/dist/mdruntime/adapter.d.ts +45 -25
  19. package/dist/mdruntime/attached-model.d.ts +7 -0
  20. package/dist/mdruntime/bootstrap.d.ts +43 -0
  21. package/dist/mdruntime/cell.d.ts +5 -0
  22. package/dist/mdruntime/chain.d.ts +2 -1
  23. package/dist/mdruntime/change.d.ts +1 -0
  24. package/dist/mdruntime/client.d.ts +20 -4
  25. package/dist/mdruntime/collection.d.ts +2 -1
  26. package/dist/mdruntime/compile.d.ts +6 -6
  27. package/dist/mdruntime/conversation-live.d.ts +135 -0
  28. package/dist/mdruntime/conversation-row.d.ts +32 -0
  29. package/dist/mdruntime/conversation.d.ts +34 -38
  30. package/dist/mdruntime/durability.d.ts +15 -0
  31. package/dist/mdruntime/figures.d.ts +48 -0
  32. package/dist/mdruntime/holdings.d.ts +28 -0
  33. package/dist/mdruntime/identity.d.ts +0 -1
  34. package/dist/mdruntime/install.d.ts +55 -0
  35. package/dist/mdruntime/job.d.ts +32 -0
  36. package/dist/mdruntime/listing.d.ts +52 -0
  37. package/dist/mdruntime/live.d.ts +22 -0
  38. package/dist/mdruntime/log.d.ts +5 -0
  39. package/dist/mdruntime/messages.d.ts +27 -3
  40. package/dist/mdruntime/model.d.ts +2 -9
  41. package/dist/mdruntime/observation.d.ts +2 -2
  42. package/dist/mdruntime/outcome.d.ts +4 -1
  43. package/dist/mdruntime/overlay.d.ts +1 -0
  44. package/dist/mdruntime/preparation.d.ts +19 -0
  45. package/dist/mdruntime/query.d.ts +13 -208
  46. package/dist/mdruntime/reach.d.ts +14 -12
  47. package/dist/mdruntime/readiness.d.ts +0 -3
  48. package/dist/mdruntime/reads.d.ts +36 -0
  49. package/dist/mdruntime/refresh.d.ts +26 -0
  50. package/dist/mdruntime/replica.d.ts +9 -8
  51. package/dist/mdruntime/room-draft.d.ts +4 -3
  52. package/dist/mdruntime/room-drafts.d.ts +23 -0
  53. package/dist/mdruntime/runtime.d.ts +42 -0
  54. package/dist/mdruntime/save.d.ts +5 -1
  55. package/dist/mdruntime/saves.d.ts +69 -0
  56. package/dist/mdruntime/search.d.ts +12 -63
  57. package/dist/mdruntime/seed.d.ts +11 -2
  58. package/dist/mdruntime/socket/admission.d.ts +6 -0
  59. package/dist/mdruntime/socket/answers.d.ts +5 -0
  60. package/dist/mdruntime/socket/lanes.d.ts +19 -0
  61. package/dist/mdruntime/socket/rooms.d.ts +43 -0
  62. package/dist/mdruntime/socket/session.d.ts +38 -0
  63. package/dist/mdruntime/socket.d.ts +69 -0
  64. package/dist/mdruntime/source.d.ts +60 -0
  65. package/dist/mdruntime/status.d.ts +0 -2
  66. package/dist/mdruntime/store/fences.d.ts +15 -0
  67. package/dist/mdruntime/store/installs.d.ts +29 -0
  68. package/dist/mdruntime/store/readiness.d.ts +9 -0
  69. package/dist/mdruntime/store/records.d.ts +211 -0
  70. package/dist/mdruntime/store/room-held.d.ts +7 -0
  71. package/dist/mdruntime/store/space.d.ts +10 -0
  72. package/dist/mdruntime/store/watchers.d.ts +16 -0
  73. package/dist/mdruntime/store/writes.d.ts +23 -0
  74. package/dist/mdruntime/store.d.ts +107 -145
  75. package/dist/mdruntime/stored.d.ts +59 -33
  76. package/dist/mdruntime/surface.d.ts +87 -0
  77. package/dist/mdruntime/tables.d.ts +120 -29
  78. package/dist/mdruntime/tallies.d.ts +17 -0
  79. package/dist/mdruntime/transfer.d.ts +4 -0
  80. package/dist/mdruntime/turn.d.ts +8 -0
  81. package/dist/mdruntime/wire.d.ts +17 -1
  82. package/dist/test-host.js +1 -1
  83. package/docs/families.md +19 -7
  84. package/package.json +1 -1
  85. package/dist/mdmodel/condition.d.ts +0 -167
  86. package/dist/mdruntime/connection.d.ts +0 -152
  87. package/dist/mdruntime/fulltext.d.ts +0 -26
package/README.md CHANGED
@@ -3,16 +3,16 @@
3
3
  The types of the agents.house App bridge, an accessor and an in-page test host.
4
4
  House builds the bridge object in every App it serves and hands it to the page
5
5
  before the App's own scripts run; `houseBridge()` returns that object, so an App
6
- carries no bridge code of its own. It carries twelve families: navigation,
7
- ceremonies, installation, notifications, status, Site image reads, App release
8
- code, external calls, App messages, App and Site screenshot reads and the Chat.
9
- [docs/families.md](docs/families.md) describes each and the test host.
6
+ carries no bridge code of its own. It carries thirteen families: navigation,
7
+ ceremonies, installation, notifications, Telegram, status, Site image reads, App
8
+ release code, external calls, App messages, App and Site screenshot reads and the
9
+ Chat. [docs/families.md](docs/families.md) describes each and the test host.
10
10
 
11
11
  The bridge carries no credential handling and no Runtime family. House builds
12
12
  the MD Runtime client into the page beside the bridge and serves it the Chat, so
13
13
  the App imports, constructs and bundles neither: `bridge.runtime` resolves to the client.
14
14
 
15
- House's guide to building an App is its Guide's `apps/` pages, which `open_guide` opens.
15
+ House's guide to building an App is its Guide's `apps/` pages, which `guide/open` opens.
16
16
 
17
17
  ## Use
18
18
 
@@ -42,7 +42,7 @@ async function manageSecurity(securityPath) {
42
42
 
43
43
  `bridge.runtime` resolves to the `MdRuntimeClient` of `@agentshouse/mdruntime/client`,
44
44
  whose README describes its members. Its `call(method, params)` is a remote procedure call
45
- to a House act by its name, such as `call('rooms/members', { room_ref })`: `HouseMethods`
45
+ to a House act by its name, such as `call('rooms/members/list', { room_ref })`: `HouseMethods`
46
46
  names each with House's own input, `HouseParams<Name>`, and answer, `HouseResult<Name>`.
47
47
 
48
48
  ## Test without a House
package/dist/index.d.ts CHANGED
@@ -1,6 +1,21 @@
1
1
  import type { MdRuntimeClient, Open } from './mdruntime/client.js';
2
2
  export interface HouseMethods {
3
- readonly "apps/features/read": {
3
+ readonly "agent-functions/requests/list": {
4
+ readonly params: {
5
+ readonly room_ref: string;
6
+ };
7
+ readonly result: {
8
+ readonly current: readonly {
9
+ readonly document: string;
10
+ readonly name: string;
11
+ }[];
12
+ readonly history: readonly {
13
+ readonly document: string;
14
+ readonly name: string;
15
+ }[];
16
+ };
17
+ };
18
+ readonly "apps/features/list": {
4
19
  readonly params: {};
5
20
  readonly result: {
6
21
  readonly features: readonly {
@@ -9,11 +24,10 @@ export interface HouseMethods {
9
24
  }[];
10
25
  };
11
26
  };
12
- readonly "apps/holders": {
27
+ readonly "apps/holders/list": {
13
28
  readonly params: {};
14
29
  readonly result: {
15
30
  readonly holders: readonly {
16
- readonly email: string;
17
31
  readonly name: string;
18
32
  readonly user: string;
19
33
  }[];
@@ -28,7 +42,7 @@ export interface HouseMethods {
28
42
  readonly [key: string]: never;
29
43
  };
30
44
  };
31
- readonly "apps/relay": {
45
+ readonly "apps/relay/read": {
32
46
  readonly params: {
33
47
  readonly [key: string]: never;
34
48
  };
@@ -58,6 +72,7 @@ export interface HouseMethods {
58
72
  } | {
59
73
  readonly user: string;
60
74
  };
75
+ readonly operation_id: string;
61
76
  readonly path: string;
62
77
  readonly room_ref: string;
63
78
  };
@@ -81,6 +96,29 @@ export interface HouseMethods {
81
96
  readonly url: string;
82
97
  };
83
98
  };
99
+ readonly "chats/reply": {
100
+ readonly params: {
101
+ readonly operation_id: string;
102
+ readonly path: string;
103
+ readonly room_ref: string;
104
+ readonly template?: {
105
+ readonly language: string;
106
+ readonly name: string;
107
+ };
108
+ readonly text?: string;
109
+ readonly values?: {
110
+ readonly [key: string]: string;
111
+ };
112
+ };
113
+ readonly result: {
114
+ readonly authority: string;
115
+ readonly log_epoch: string;
116
+ readonly path: string;
117
+ readonly position: string;
118
+ readonly room_ref: string;
119
+ readonly url: string;
120
+ };
121
+ };
84
122
  readonly "chats/return": {
85
123
  readonly params: {
86
124
  readonly path: string;
@@ -108,6 +146,7 @@ export interface HouseMethods {
108
146
  };
109
147
  readonly "chats/take-control": {
110
148
  readonly params: {
149
+ readonly operation_id: string;
111
150
  readonly path: string;
112
151
  readonly room_ref: string;
113
152
  };
@@ -135,7 +174,6 @@ export interface HouseMethods {
135
174
  readonly params: {
136
175
  readonly agent_id: string;
137
176
  readonly operation_id: string;
138
- readonly replaces?: string;
139
177
  };
140
178
  readonly result: {
141
179
  readonly agent_id: string;
@@ -159,23 +197,25 @@ export interface HouseMethods {
159
197
  readonly position: string;
160
198
  };
161
199
  };
162
- readonly "conversations/done": {
200
+ readonly "conversations/end": {
163
201
  readonly params: {
164
- readonly conversation_id?: string;
202
+ readonly conversation_id: string;
165
203
  readonly operation_id: string;
166
- readonly result?: string;
167
204
  };
168
205
  readonly result: {
169
206
  readonly agent_id: string;
170
207
  readonly authority: string;
171
208
  readonly conversation_id: string;
172
- readonly done: null | string;
209
+ readonly jobs: readonly {
210
+ readonly name: string;
211
+ readonly running_since: string;
212
+ }[];
173
213
  readonly log_epoch: string;
174
214
  readonly position: string;
175
215
  readonly url: string;
176
216
  };
177
217
  };
178
- readonly "conversations/history": {
218
+ readonly "conversations/history/list": {
179
219
  readonly params: {
180
220
  readonly conversations: readonly {
181
221
  readonly after?: {
@@ -233,21 +273,53 @@ export interface HouseMethods {
233
273
  readonly text: string;
234
274
  readonly type: "text";
235
275
  })[];
236
- readonly resume_refused?: true;
237
276
  readonly role: "assistant" | "house" | "user";
277
+ readonly sender?: "conversation" | "customer" | "owner" | "replier" | "report" | "requester" | "trigger";
238
278
  readonly source?: {
239
279
  readonly agent: {
240
280
  readonly id: string;
241
281
  readonly name: string;
242
282
  readonly url: string;
243
283
  };
284
+ readonly approved_at?: string;
285
+ readonly declined_at?: string;
244
286
  readonly kind: "mail";
245
287
  readonly owner: {
246
288
  readonly name: string;
247
289
  readonly user: string;
248
290
  };
249
291
  readonly request: string;
292
+ readonly room: string;
293
+ } | {
294
+ readonly agent: {
295
+ readonly id: string;
296
+ readonly name: string;
297
+ readonly url: string;
298
+ };
299
+ readonly conversation: {
300
+ readonly id: string;
301
+ readonly name: string;
302
+ readonly url: string;
303
+ };
304
+ readonly kind: "conversation";
250
305
  } | {
306
+ readonly agent: {
307
+ readonly id: string;
308
+ readonly name: string;
309
+ readonly url: string;
310
+ };
311
+ readonly kind: "declined";
312
+ readonly owner: {
313
+ readonly name: string;
314
+ readonly user: string;
315
+ };
316
+ readonly request: string;
317
+ } | {
318
+ readonly agent_function: null | {
319
+ readonly id: string;
320
+ readonly name: string;
321
+ readonly version: number;
322
+ };
251
323
  readonly approved_at: null | string;
252
324
  readonly kind: "request";
253
325
  readonly request: string;
@@ -265,14 +337,31 @@ export interface HouseMethods {
265
337
  readonly ref: string;
266
338
  readonly url: string;
267
339
  };
268
- readonly routine: {
269
- readonly id: string;
340
+ } | {
341
+ readonly kind: "reply";
342
+ readonly name: string;
343
+ } | {
344
+ readonly kind: "trigger";
345
+ readonly path: null | string;
346
+ readonly room: {
347
+ readonly handle: string;
270
348
  readonly name: string;
271
- readonly version: number;
349
+ readonly ref: string;
350
+ readonly url: string;
351
+ };
352
+ readonly trigger: {
353
+ readonly description: string;
354
+ readonly id: string;
272
355
  };
273
356
  };
274
357
  readonly telegram_undelivered?: true;
275
358
  readonly text: string;
359
+ readonly tokens?: {
360
+ readonly cache_read: number;
361
+ readonly cache_write: number;
362
+ readonly input: number;
363
+ readonly output: number;
364
+ };
276
365
  readonly transcripts?: readonly {
277
366
  readonly path: string;
278
367
  readonly text: string;
@@ -336,7 +425,7 @@ export interface HouseMethods {
336
425
  readonly url: string;
337
426
  };
338
427
  };
339
- readonly "conversations/option": {
428
+ readonly "conversations/option/set": {
340
429
  readonly params: {
341
430
  readonly conversation_id: string;
342
431
  readonly operation_id: string;
@@ -400,15 +489,12 @@ export interface HouseMethods {
400
489
  readonly url: string;
401
490
  };
402
491
  };
403
- readonly "records/read": {
492
+ readonly "records/list": {
404
493
  readonly params: {
405
- readonly cursor?: string;
406
- readonly limit?: number;
407
494
  readonly order?: "asc" | "desc";
408
495
  readonly room_ref: string;
409
496
  };
410
497
  readonly result: {
411
- readonly next_cursor?: string;
412
498
  readonly records: readonly {
413
499
  readonly body: null | string;
414
500
  readonly claimed: unknown;
@@ -418,10 +504,9 @@ export interface HouseMethods {
418
504
  }[];
419
505
  };
420
506
  };
421
- readonly "rooms/access/read": {
507
+ readonly "rooms/access/list": {
422
508
  readonly params: {
423
509
  readonly room_ref: string;
424
- readonly statistics?: boolean;
425
510
  };
426
511
  readonly result: {
427
512
  readonly authority: "administrator" | "member" | "owner";
@@ -430,45 +515,35 @@ export interface HouseMethods {
430
515
  readonly direct: readonly {
431
516
  readonly level: null | "keep" | "open" | "search";
432
517
  readonly namespace: string;
433
- readonly operations: readonly ("delete" | "export" | "manageAccess" | "write")[];
518
+ readonly operations: readonly ("erase" | "export" | "manageAccess" | "write")[];
434
519
  }[];
435
- readonly downloads_per_day?: number;
436
520
  readonly entries: readonly {
437
521
  readonly level: null | "keep" | "open" | "search";
438
522
  readonly namespace: string;
439
- readonly operations: readonly ("delete" | "export" | "manageAccess" | "write")[];
523
+ readonly operations: readonly ("erase" | "export" | "manageAccess" | "write")[];
440
524
  readonly sources: readonly {
441
525
  readonly kind: "direct" | "inherited";
442
526
  readonly level: null | "keep" | "open" | "search";
443
527
  readonly namespace: string;
444
- readonly operations: readonly ("delete" | "export" | "manageAccess" | "write")[];
528
+ readonly operations: readonly ("erase" | "export" | "manageAccess" | "write")[];
445
529
  }[];
446
530
  }[];
447
531
  readonly key: null | string;
448
- readonly requests_per_day?: number;
449
532
  readonly schema_roles: readonly string[];
533
+ readonly through_space?: true;
450
534
  readonly user: string;
451
535
  readonly user_name: string;
452
536
  }[];
453
537
  readonly namespaces: readonly string[];
454
538
  readonly owner: string;
455
539
  readonly room_ref: string;
456
- readonly statistics?: readonly {
457
- readonly day: string;
458
- readonly downloads: number;
459
- readonly requests: number;
460
- readonly text_bytes: number;
461
- readonly user: string;
462
- }[];
463
540
  readonly url: string;
464
541
  readonly viewer: string;
465
542
  };
466
543
  };
467
- readonly "rooms/members": {
544
+ readonly "rooms/members/list": {
468
545
  readonly params: {
469
- readonly cursor?: string;
470
546
  readonly history?: boolean;
471
- readonly limit?: number;
472
547
  readonly room_ref: string;
473
548
  };
474
549
  readonly result: {
@@ -478,17 +553,17 @@ export interface HouseMethods {
478
553
  readonly user: string;
479
554
  }[];
480
555
  readonly members: readonly {
481
- readonly access?: "edit" | "keep" | "manage" | "open" | "owner" | "search";
556
+ readonly access?: "manage" | "owner" | "read" | "write";
557
+ readonly copies?: "online_only" | "search_only";
482
558
  readonly display_name: string;
483
559
  readonly email?: string;
484
560
  readonly member_document: null | string;
485
- readonly only_while_online?: true;
486
561
  readonly owner: boolean;
487
562
  readonly schema_roles?: readonly string[];
488
563
  readonly since: null | string;
564
+ readonly through_space?: true;
489
565
  readonly user: string;
490
566
  }[];
491
- readonly next_cursor?: string;
492
567
  };
493
568
  };
494
569
  readonly "rooms/settings/processing/read": {
@@ -524,86 +599,7 @@ export interface HouseMethods {
524
599
  readonly writable: boolean;
525
600
  };
526
601
  };
527
- readonly "routines/access": {
528
- readonly params: {
529
- readonly room_ref: string;
530
- };
531
- readonly result: readonly {
532
- readonly accessId: string;
533
- readonly agentId: string;
534
- readonly description: string;
535
- readonly input: string;
536
- readonly name: string;
537
- readonly ownerDisplayName: string;
538
- readonly room?: true;
539
- readonly startsWithoutApproval?: boolean;
540
- readonly url: string;
541
- readonly version: number;
542
- }[];
543
- };
544
- readonly "routines/granted": {
545
- readonly params: {
546
- readonly room_ref: string;
547
- };
548
- readonly result: {
549
- readonly access: readonly {
550
- readonly access: string;
551
- readonly agent: string;
552
- readonly current_version: number;
553
- readonly granted_at: string;
554
- readonly invokers: {
555
- readonly scope: "all_members" | "selected_users";
556
- readonly users: readonly ({
557
- readonly display_name: null | string;
558
- readonly user: string;
559
- } | {
560
- readonly room: string;
561
- readonly url: string;
562
- })[];
563
- };
564
- readonly key_origins?: readonly string[];
565
- readonly name: string;
566
- readonly revoked_at: null | string;
567
- readonly rooms?: {
568
- readonly reach: "all";
569
- } | {
570
- readonly reach: "all_but_private";
571
- } | {
572
- readonly reach: "selected";
573
- readonly refs: readonly string[];
574
- };
575
- readonly routine: string;
576
- readonly starts_without_approval: {
577
- readonly scope: "all_admitted" | "none" | "selected_users";
578
- readonly users: readonly ({
579
- readonly display_name: null | string;
580
- readonly user: string;
581
- } | {
582
- readonly room: string;
583
- readonly url: string;
584
- })[];
585
- };
586
- readonly state: "agent_retired" | "live" | "revoked" | "routine_retired" | "target_owner_key_inactive";
587
- readonly url: string;
588
- }[];
589
- };
590
- };
591
- readonly "routines/requests": {
592
- readonly params: {
593
- readonly room_ref: string;
594
- };
595
- readonly result: {
596
- readonly current: readonly {
597
- readonly document: string;
598
- readonly name: string;
599
- }[];
600
- readonly history: readonly {
601
- readonly document: string;
602
- readonly name: string;
603
- }[];
604
- };
605
- };
606
- readonly "site/submission": {
602
+ readonly "sites/submissions/create": {
607
603
  readonly params: {
608
604
  readonly content: string;
609
605
  };
@@ -611,9 +607,10 @@ export interface HouseMethods {
611
607
  readonly submitted: true;
612
608
  };
613
609
  };
614
- readonly "storage/inventory": {
610
+ readonly "storage/inventory/read": {
615
611
  readonly params: {
616
612
  readonly room_ref?: string;
613
+ readonly rooms?: "owned";
617
614
  };
618
615
  readonly result: {
619
616
  readonly blob: {
@@ -665,6 +662,35 @@ export interface HouseMethods {
665
662
  readonly layout: string;
666
663
  };
667
664
  };
665
+ readonly rooms?: readonly {
666
+ readonly blob: {
667
+ readonly bytes: string;
668
+ readonly gigabytes: string;
669
+ };
670
+ readonly freshness: {
671
+ readonly state: "settled";
672
+ };
673
+ readonly indexed_text: {
674
+ readonly approximate_pages: null | string;
675
+ readonly bytes: string;
676
+ readonly gigabytes: string;
677
+ };
678
+ readonly measurement: {
679
+ readonly page_reference: null | {
680
+ readonly bytes_per_page: string;
681
+ readonly encoding: string;
682
+ readonly font: string;
683
+ readonly font_size_pt: string;
684
+ readonly layout: string;
685
+ };
686
+ };
687
+ readonly room_ref: string;
688
+ readonly total: {
689
+ readonly bytes: string;
690
+ readonly gigabytes: string;
691
+ };
692
+ readonly url: string;
693
+ }[];
668
694
  readonly site_images: {
669
695
  readonly bound: string;
670
696
  readonly bytes: string;
@@ -696,26 +722,55 @@ export interface HouseMethods {
696
722
  readonly layout: string;
697
723
  };
698
724
  };
725
+ readonly rooms?: readonly {
726
+ readonly blob: {
727
+ readonly bytes: string;
728
+ readonly gigabytes: string;
729
+ };
730
+ readonly freshness: {
731
+ readonly state: "settled";
732
+ };
733
+ readonly indexed_text: {
734
+ readonly approximate_pages: null | string;
735
+ readonly bytes: string;
736
+ readonly gigabytes: string;
737
+ };
738
+ readonly measurement: {
739
+ readonly page_reference: null | {
740
+ readonly bytes_per_page: string;
741
+ readonly encoding: string;
742
+ readonly font: string;
743
+ readonly font_size_pt: string;
744
+ readonly layout: string;
745
+ };
746
+ };
747
+ readonly room_ref: string;
748
+ readonly total: {
749
+ readonly bytes: string;
750
+ readonly gigabytes: string;
751
+ };
752
+ readonly url: string;
753
+ }[];
699
754
  readonly total: {
700
755
  readonly bytes: string;
701
756
  readonly gigabytes: string;
702
757
  };
703
758
  };
704
759
  };
705
- readonly "triggers/fired": {
760
+ readonly "triggers/fired/list": {
706
761
  readonly params: {
707
- readonly room_ref: string;
762
+ readonly room_ref?: string;
708
763
  };
709
764
  readonly result: {
710
765
  readonly events: readonly {
711
766
  readonly actions: readonly ({
712
- readonly cap: "address_submissions" | "app_sockets" | "environment_functions" | "export_starts" | "folder_subscriptions" | "kit_connections" | "live_shares" | "open_uploads" | "ownership_offers" | "push_addresses" | "push_deliveries" | "room_triggers" | "service_keys" | "share_creations" | "share_room_creations" | "shared_schemas" | "site_rooms" | "slot_rooms" | "waiting_web_wizards" | "writes";
767
+ readonly cap: "address_submissions" | "app_sockets" | "environment_functions" | "export_starts" | "kit_connections" | "live_shares" | "open_uploads" | "ownership_offers" | "push_addresses" | "push_deliveries" | "room_triggers" | "service_keys" | "share_creations" | "share_room_creations" | "site_published_bytes" | "site_rooms" | "slot_rooms" | "spaces" | "waiting_web_wizards" | "writes";
713
768
  readonly code: "cap_reached";
714
769
  readonly outcome: "refused";
715
770
  readonly position: number;
716
771
  readonly retry_at: string;
717
772
  } | {
718
- readonly cap: "address_submissions" | "app_sockets" | "environment_functions" | "export_starts" | "folder_subscriptions" | "kit_connections" | "live_shares" | "open_uploads" | "ownership_offers" | "push_addresses" | "push_deliveries" | "room_triggers" | "service_keys" | "share_creations" | "share_room_creations" | "shared_schemas" | "site_rooms" | "slot_rooms" | "waiting_web_wizards" | "writes";
773
+ readonly cap: "address_submissions" | "app_sockets" | "environment_functions" | "export_starts" | "kit_connections" | "live_shares" | "open_uploads" | "ownership_offers" | "push_addresses" | "push_deliveries" | "room_triggers" | "service_keys" | "share_creations" | "share_room_creations" | "site_published_bytes" | "site_rooms" | "slot_rooms" | "spaces" | "waiting_web_wizards" | "writes";
719
774
  readonly code: "cap_reached";
720
775
  readonly outcome: "refused";
721
776
  readonly position: number;
@@ -770,27 +825,31 @@ export interface HouseMethods {
770
825
  readonly value: string;
771
826
  } | {
772
827
  readonly code: "limit_reached";
773
- readonly limit: "custom_domains" | "external_calls" | "mcp_downloads" | "mcp_reads" | "publish_data" | "site_submissions" | "sites";
828
+ readonly limit: "custom_domains" | "external_calls" | "publish_data" | "sites";
774
829
  readonly outcome: "refused";
775
830
  readonly position: number;
776
831
  readonly retry_at: string;
777
832
  } | {
778
833
  readonly code: "limit_reached";
779
- readonly limit: "custom_domains" | "external_calls" | "mcp_downloads" | "mcp_reads" | "publish_data" | "site_submissions" | "sites";
834
+ readonly limit: "custom_domains" | "external_calls" | "publish_data" | "sites";
780
835
  readonly outcome: "refused";
781
836
  readonly position: number;
782
837
  } | {
783
- readonly code: "app_function_not_found" | "app_not_found" | "environment_function_not_found" | "environment_offline" | "no_recipient" | "routine_access_not_found" | "routine_retired" | "target_agent_unavailable";
838
+ readonly code: "agent_function_not_found" | "agent_function_retired" | "app_function_not_found" | "app_not_found" | "environment_function_not_found" | "environment_offline" | "no_recipient" | "target_agent_unavailable";
784
839
  readonly outcome: "no_target";
785
840
  readonly position: number;
786
841
  } | {
787
- readonly code: "internal_error" | "routine_request_not_started";
842
+ readonly code: "agent_function_request_not_started" | "internal_error";
788
843
  readonly outcome: "failed";
789
844
  readonly position: number;
790
845
  } | {
791
846
  readonly code: string;
792
847
  readonly outcome: "refused";
793
848
  readonly position: number;
849
+ } | {
850
+ readonly conversations: number;
851
+ readonly outcome: "marked";
852
+ readonly position: number;
794
853
  } | {
795
854
  readonly cut?: boolean;
796
855
  readonly exit_code?: number;
@@ -834,6 +893,7 @@ export interface HouseMethods {
834
893
  readonly missed?: "failed" | "skipped";
835
894
  readonly moment?: string;
836
895
  readonly path?: string;
896
+ readonly room_ref?: string;
837
897
  readonly trigger: string;
838
898
  readonly url?: string;
839
899
  }[];
@@ -941,6 +1001,11 @@ export interface HouseAppMessage {
941
1001
  }
942
1002
  export type HouseInstallation = Open<'accepted' | 'dismissed' | 'manual'>;
943
1003
  export type HouseNotifications = Open<'on' | 'off' | 'blocked' | 'unavailable'>;
1004
+ export interface HouseTelegram {
1005
+ readonly state: Open<'available' | 'linked' | 'unavailable'>;
1006
+ readonly name: string | null;
1007
+ readonly username: string | null;
1008
+ }
944
1009
  export interface HouseCeremonyRefused extends Error {
945
1010
  readonly name: 'HouseCeremonyRefused';
946
1011
  readonly code: Open<'house_ceremony_refused'>;
@@ -990,7 +1055,7 @@ export interface HouseBridge {
990
1055
  ceremony(path: string): Promise<never>;
991
1056
  install(): Promise<HouseInstallation>;
992
1057
  notifications(on?: boolean): Promise<HouseNotifications>;
993
- setBadge(unread: readonly string[]): Promise<void>;
1058
+ telegram(link?: true): Promise<HouseTelegram>;
994
1059
  setTab(tab: HouseTab): void;
995
1060
  sourceTop(app: string, release?: string): Promise<HouseSourceTop | HouseRefusal | null>;
996
1061
  sourceDownload(app: string, release?: string): Promise<HouseSourceDownload | HouseRefusal | null>;
@@ -78,4 +78,4 @@ export type PointerFacts = {
78
78
  export declare function crossedFacts(facts: ValueFacts): ValueFacts[];
79
79
  export declare function fieldFacts(definition: Definition, key: string): ValueFacts | undefined;
80
80
  export declare function pointerFacts(definition: Definition, pointer: string): PointerFacts | undefined;
81
- export declare function readSchema(text: string, provided?: VerifiedModel): VerifiedModel | Failure;
81
+ export declare function readSchema(text: string, provided?: VerifiedModel, checked?: boolean): VerifiedModel | Failure;
@@ -1,6 +1,6 @@
1
1
  import { type Definition } from './definition.js';
2
2
  import { type LinkInventory } from './links.js';
3
- import type { ApplyResult, BodyResult, FrontmatterResult, Change, Document, Link, ParseResult } from './types.js';
3
+ import type { ApplyResult, BodyResult, FrontmatterResult, Change, Document, Link, ParseResult, UnlinkedBody } from './types.js';
4
4
  import { type YamlMap } from './yaml.js';
5
5
  export declare function inventoryOf(document: Document): LinkInventory;
6
6
  export declare function parseFrontmatter(content: string, file?: string): FrontmatterResult;
@@ -8,6 +8,7 @@ export declare function parse(content: string, file?: string): ParseResult;
8
8
  export declare function relativize(document: Document, file: string, handle: string, definition?: Definition, kept?: ReadonlySet<string>): ApplyResult;
9
9
  export declare function relativizeBody(body: string, file: string, handle: string): BodyResult;
10
10
  export declare function relinkBody(body: string, file: string, moves: ReadonlyMap<string, string>): BodyResult;
11
+ export declare function unlinkBody(body: string, hrefs: ReadonlySet<string>): UnlinkedBody;
11
12
  export declare function links(document: Document, file: string): readonly Link[];
12
13
  export declare function bodyLinks(body: string, file: string): readonly Link[];
13
14
  export declare function apply(document: Document, changes: readonly Change[]): ApplyResult;