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

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.
package/dist/index.d.ts CHANGED
@@ -1,6 +1,845 @@
1
1
  import type { MdRuntimeClient, Open } from './mdruntime/client.js';
2
- import type { HouseMethods } from './calls.js';
3
- export type { HouseMethods } from './calls.js';
2
+ export interface HouseMethods {
3
+ readonly "apps/features/read": {
4
+ readonly params: {};
5
+ readonly result: {
6
+ readonly features: readonly {
7
+ readonly allowed: boolean;
8
+ readonly feature: string;
9
+ }[];
10
+ };
11
+ };
12
+ readonly "apps/holders": {
13
+ readonly params: {};
14
+ readonly result: {
15
+ readonly holders: readonly {
16
+ readonly email: string;
17
+ readonly name: string;
18
+ readonly user: string;
19
+ }[];
20
+ };
21
+ };
22
+ readonly "apps/messages/send": {
23
+ readonly params: {
24
+ readonly body: unknown;
25
+ readonly to: string;
26
+ };
27
+ readonly result: {
28
+ readonly [key: string]: never;
29
+ };
30
+ };
31
+ readonly "apps/relay": {
32
+ readonly params: {
33
+ readonly [key: string]: never;
34
+ };
35
+ readonly result: {
36
+ readonly expires_at: string;
37
+ readonly ice_servers: readonly {
38
+ readonly credential: string;
39
+ readonly urls: readonly string[];
40
+ readonly username: string;
41
+ }[];
42
+ };
43
+ };
44
+ readonly "apps/ring": {
45
+ readonly params: {
46
+ readonly to: string;
47
+ };
48
+ readonly result: {
49
+ readonly authority: string;
50
+ readonly log_epoch: string;
51
+ readonly position: string;
52
+ };
53
+ };
54
+ readonly "chats/assign": {
55
+ readonly params: {
56
+ readonly assignee: null | {
57
+ readonly agent: string;
58
+ } | {
59
+ readonly user: string;
60
+ };
61
+ readonly path: string;
62
+ readonly room_ref: string;
63
+ };
64
+ readonly result: {
65
+ readonly assignee: null | {
66
+ readonly agent: string;
67
+ readonly name: string;
68
+ } | {
69
+ readonly name: string;
70
+ readonly user: string;
71
+ };
72
+ readonly authority: string;
73
+ readonly log_epoch: string;
74
+ readonly path: string;
75
+ readonly position: string;
76
+ readonly return_to: null | {
77
+ readonly agent: string;
78
+ readonly name: string;
79
+ };
80
+ readonly room_ref: string;
81
+ readonly url: string;
82
+ };
83
+ };
84
+ readonly "chats/return": {
85
+ readonly params: {
86
+ readonly path: string;
87
+ readonly room_ref: string;
88
+ };
89
+ readonly result: {
90
+ readonly assignee: null | {
91
+ readonly agent: string;
92
+ readonly name: string;
93
+ } | {
94
+ readonly name: string;
95
+ readonly user: string;
96
+ };
97
+ readonly authority: string;
98
+ readonly log_epoch: string;
99
+ readonly path: string;
100
+ readonly position: string;
101
+ readonly return_to: null | {
102
+ readonly agent: string;
103
+ readonly name: string;
104
+ };
105
+ readonly room_ref: string;
106
+ readonly url: string;
107
+ };
108
+ };
109
+ readonly "chats/take-control": {
110
+ readonly params: {
111
+ readonly path: string;
112
+ readonly room_ref: string;
113
+ };
114
+ readonly result: {
115
+ readonly assignee: null | {
116
+ readonly agent: string;
117
+ readonly name: string;
118
+ } | {
119
+ readonly name: string;
120
+ readonly user: string;
121
+ };
122
+ readonly authority: string;
123
+ readonly log_epoch: string;
124
+ readonly path: string;
125
+ readonly position: string;
126
+ readonly return_to: null | {
127
+ readonly agent: string;
128
+ readonly name: string;
129
+ };
130
+ readonly room_ref: string;
131
+ readonly url: string;
132
+ };
133
+ };
134
+ readonly "conversations/create": {
135
+ readonly params: {
136
+ readonly agent_id: string;
137
+ readonly operation_id: string;
138
+ readonly replaces?: string;
139
+ };
140
+ readonly result: {
141
+ readonly agent_id: string;
142
+ readonly authority: string;
143
+ readonly conversation_id: string;
144
+ readonly log_epoch: string;
145
+ readonly position: string;
146
+ readonly url: string;
147
+ };
148
+ };
149
+ readonly "conversations/delete": {
150
+ readonly params: {
151
+ readonly conversation_id: string;
152
+ readonly operation_id: string;
153
+ };
154
+ readonly result: {
155
+ readonly authority: string;
156
+ readonly conversation_id: string;
157
+ readonly log_epoch: string;
158
+ readonly outcome: "deleted";
159
+ readonly position: string;
160
+ };
161
+ };
162
+ readonly "conversations/done": {
163
+ readonly params: {
164
+ readonly conversation_id?: string;
165
+ readonly operation_id: string;
166
+ readonly result?: string;
167
+ };
168
+ readonly result: {
169
+ readonly agent_id: string;
170
+ readonly authority: string;
171
+ readonly conversation_id: string;
172
+ readonly done: null | string;
173
+ readonly log_epoch: string;
174
+ readonly position: string;
175
+ readonly url: string;
176
+ };
177
+ };
178
+ readonly "conversations/history": {
179
+ readonly params: {
180
+ readonly conversations: readonly {
181
+ readonly after?: {
182
+ readonly accepted_at: string;
183
+ readonly message_id: string;
184
+ };
185
+ readonly conversation_id: string;
186
+ }[];
187
+ readonly limit?: number;
188
+ };
189
+ readonly result: {
190
+ readonly histories: readonly {
191
+ readonly agent_id: string;
192
+ readonly conversation_id: string;
193
+ readonly messages: readonly {
194
+ readonly accepted_at: string;
195
+ readonly context: null | {
196
+ readonly used: number;
197
+ readonly window: number;
198
+ };
199
+ readonly conversation_id: string;
200
+ readonly failure: null | string;
201
+ readonly message_id: string;
202
+ readonly parts: readonly ({
203
+ readonly command: string;
204
+ readonly target: null | string;
205
+ readonly type: "message";
206
+ } | {
207
+ readonly count: number;
208
+ readonly type: "commands";
209
+ } | {
210
+ readonly description: string;
211
+ readonly result: null | string;
212
+ readonly status: "done" | "running";
213
+ readonly type: "subagent";
214
+ } | {
215
+ readonly entries: readonly {
216
+ readonly content: string;
217
+ readonly status: string;
218
+ }[];
219
+ readonly type: "plan";
220
+ } | {
221
+ readonly file: string;
222
+ readonly media_type: string;
223
+ readonly name: string;
224
+ readonly type: "image";
225
+ } | {
226
+ readonly marker: "compaction" | "job" | "mode" | "model" | "retry";
227
+ readonly text: string;
228
+ readonly type: "marker";
229
+ } | {
230
+ readonly text: string;
231
+ readonly type: "reasoning";
232
+ } | {
233
+ readonly text: string;
234
+ readonly type: "text";
235
+ })[];
236
+ readonly resume_refused?: true;
237
+ readonly role: "assistant" | "house" | "user";
238
+ readonly source?: {
239
+ readonly agent: {
240
+ readonly id: string;
241
+ readonly name: string;
242
+ readonly url: string;
243
+ };
244
+ readonly kind: "mail";
245
+ readonly owner: {
246
+ readonly name: string;
247
+ readonly user: string;
248
+ };
249
+ readonly request: string;
250
+ } | {
251
+ readonly approved_at: null | string;
252
+ readonly kind: "request";
253
+ readonly request: string;
254
+ readonly requester: {
255
+ readonly name: string;
256
+ readonly room: string;
257
+ readonly url: string;
258
+ } | {
259
+ readonly name: string;
260
+ readonly user: string;
261
+ };
262
+ readonly room: {
263
+ readonly handle: string;
264
+ readonly name: string;
265
+ readonly ref: string;
266
+ readonly url: string;
267
+ };
268
+ readonly routine: {
269
+ readonly id: string;
270
+ readonly name: string;
271
+ readonly version: number;
272
+ };
273
+ };
274
+ readonly telegram_undelivered?: true;
275
+ readonly text: string;
276
+ readonly transcripts?: readonly {
277
+ readonly path: string;
278
+ readonly text: string;
279
+ }[];
280
+ readonly turn_id: null | string;
281
+ readonly url?: string;
282
+ readonly waiting?: true;
283
+ }[];
284
+ readonly next: null | {
285
+ readonly accepted_at: string;
286
+ readonly message_id: string;
287
+ };
288
+ readonly url: string;
289
+ }[];
290
+ };
291
+ };
292
+ readonly "conversations/interaction/answer": {
293
+ readonly params: {
294
+ readonly conversation_id: string;
295
+ readonly interaction_id: string;
296
+ readonly operation_id: string;
297
+ readonly response: readonly unknown[] | boolean | null | number | {
298
+ readonly [key: string]: unknown;
299
+ } | string;
300
+ };
301
+ readonly result: {
302
+ readonly agent_id: string;
303
+ readonly authority: string;
304
+ readonly conversation_id: string;
305
+ readonly interaction_id: string;
306
+ readonly log_epoch: string;
307
+ readonly position: string;
308
+ readonly url: string;
309
+ };
310
+ };
311
+ readonly "conversations/interrupt": {
312
+ readonly params: {
313
+ readonly conversation_id: string;
314
+ readonly operation_id: string;
315
+ };
316
+ readonly result: {
317
+ readonly agent_id: string;
318
+ readonly authority: string;
319
+ readonly conversation_id: string;
320
+ readonly log_epoch: string;
321
+ readonly position: string;
322
+ readonly url: string;
323
+ };
324
+ };
325
+ readonly "conversations/kill": {
326
+ readonly params: {
327
+ readonly conversation_id: string;
328
+ readonly operation_id: string;
329
+ };
330
+ readonly result: {
331
+ readonly agent_id: string;
332
+ readonly authority: string;
333
+ readonly conversation_id: string;
334
+ readonly log_epoch: string;
335
+ readonly position: string;
336
+ readonly url: string;
337
+ };
338
+ };
339
+ readonly "conversations/option": {
340
+ readonly params: {
341
+ readonly conversation_id: string;
342
+ readonly operation_id: string;
343
+ readonly option: string;
344
+ readonly value: boolean | string;
345
+ };
346
+ readonly result: {
347
+ readonly agent_id: string;
348
+ readonly authority: string;
349
+ readonly conversation_id: string;
350
+ readonly log_epoch: string;
351
+ readonly position: string;
352
+ readonly url: string;
353
+ };
354
+ };
355
+ readonly "conversations/rename": {
356
+ readonly params: {
357
+ readonly conversation_id: string;
358
+ readonly name: string;
359
+ readonly operation_id: string;
360
+ };
361
+ readonly result: {
362
+ readonly agent_id: string;
363
+ readonly authority: string;
364
+ readonly conversation_id: string;
365
+ readonly log_epoch: string;
366
+ readonly name: string;
367
+ readonly position: string;
368
+ readonly url: string;
369
+ };
370
+ };
371
+ readonly "conversations/retry": {
372
+ readonly params: {
373
+ readonly conversation_id: string;
374
+ readonly message_id: string;
375
+ readonly operation_id: string;
376
+ };
377
+ readonly result: {
378
+ readonly agent_id: string;
379
+ readonly authority: string;
380
+ readonly conversation_id: string;
381
+ readonly log_epoch: string;
382
+ readonly message_id: string;
383
+ readonly position: string;
384
+ readonly url: string;
385
+ };
386
+ };
387
+ readonly "conversations/send": {
388
+ readonly params: {
389
+ readonly conversation_id: string;
390
+ readonly operation_id: string;
391
+ readonly text: string;
392
+ };
393
+ readonly result: {
394
+ readonly agent_id: string;
395
+ readonly authority: string;
396
+ readonly conversation_id: string;
397
+ readonly log_epoch: string;
398
+ readonly message_id: string;
399
+ readonly position: string;
400
+ readonly url: string;
401
+ };
402
+ };
403
+ readonly "records/read": {
404
+ readonly params: {
405
+ readonly cursor?: string;
406
+ readonly limit?: number;
407
+ readonly order?: "asc" | "desc";
408
+ readonly room_ref: string;
409
+ };
410
+ readonly result: {
411
+ readonly next_cursor?: string;
412
+ readonly records: readonly {
413
+ readonly body: null | string;
414
+ readonly claimed: unknown;
415
+ readonly created_at: string;
416
+ readonly record: string;
417
+ readonly ref: string;
418
+ }[];
419
+ };
420
+ };
421
+ readonly "rooms/access/read": {
422
+ readonly params: {
423
+ readonly room_ref: string;
424
+ readonly statistics?: boolean;
425
+ };
426
+ readonly result: {
427
+ readonly authority: "administrator" | "member" | "owner";
428
+ readonly members: readonly {
429
+ readonly admitted_at: null | string;
430
+ readonly direct: readonly {
431
+ readonly level: null | "keep" | "open" | "search";
432
+ readonly namespace: string;
433
+ readonly operations: readonly ("delete" | "export" | "manageAccess" | "write")[];
434
+ }[];
435
+ readonly downloads_per_day?: number;
436
+ readonly entries: readonly {
437
+ readonly level: null | "keep" | "open" | "search";
438
+ readonly namespace: string;
439
+ readonly operations: readonly ("delete" | "export" | "manageAccess" | "write")[];
440
+ readonly sources: readonly {
441
+ readonly kind: "direct" | "inherited";
442
+ readonly level: null | "keep" | "open" | "search";
443
+ readonly namespace: string;
444
+ readonly operations: readonly ("delete" | "export" | "manageAccess" | "write")[];
445
+ }[];
446
+ }[];
447
+ readonly key: null | string;
448
+ readonly requests_per_day?: number;
449
+ readonly schema_roles: readonly string[];
450
+ readonly user: string;
451
+ readonly user_name: string;
452
+ }[];
453
+ readonly namespaces: readonly string[];
454
+ readonly owner: string;
455
+ 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
+ readonly url: string;
464
+ readonly viewer: string;
465
+ };
466
+ };
467
+ readonly "rooms/members": {
468
+ readonly params: {
469
+ readonly cursor?: string;
470
+ readonly history?: boolean;
471
+ readonly limit?: number;
472
+ readonly room_ref: string;
473
+ };
474
+ readonly result: {
475
+ readonly history?: readonly {
476
+ readonly at: string;
477
+ readonly kind: "granted" | "revoked";
478
+ readonly user: string;
479
+ }[];
480
+ readonly members: readonly {
481
+ readonly access?: "edit" | "keep" | "manage" | "open" | "owner" | "search";
482
+ readonly display_name: string;
483
+ readonly email?: string;
484
+ readonly member_document: null | string;
485
+ readonly only_while_online?: true;
486
+ readonly owner: boolean;
487
+ readonly schema_roles?: readonly string[];
488
+ readonly since: null | string;
489
+ readonly user: string;
490
+ }[];
491
+ readonly next_cursor?: string;
492
+ };
493
+ };
494
+ readonly "rooms/settings/processing/read": {
495
+ readonly params: {
496
+ readonly path: string;
497
+ readonly room_ref: string;
498
+ };
499
+ readonly result: {
500
+ readonly embedding: {
501
+ readonly condition: null | {
502
+ readonly kind: "demand_failed" | "embed_again_failed";
503
+ readonly path: string;
504
+ };
505
+ readonly embedding_estimate: null | {
506
+ readonly documents: number;
507
+ readonly measured_tokens: number;
508
+ readonly unmeasured_documents: number;
509
+ };
510
+ readonly finished: boolean;
511
+ readonly indexed_chunks: number;
512
+ };
513
+ readonly explicit: readonly {
514
+ readonly path: string;
515
+ readonly policy: "Off" | "On";
516
+ }[];
517
+ readonly path: string;
518
+ readonly policy: {
519
+ readonly from: null | string;
520
+ readonly origin: "default" | "explicit" | "inherited";
521
+ readonly reason: null | "room_too_large" | "unfunded";
522
+ readonly value: "Off" | "On";
523
+ };
524
+ readonly writable: boolean;
525
+ };
526
+ };
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": {
607
+ readonly params: {
608
+ readonly content: string;
609
+ };
610
+ readonly result: {
611
+ readonly submitted: true;
612
+ };
613
+ };
614
+ readonly "storage/inventory": {
615
+ readonly params: {
616
+ readonly room_ref?: string;
617
+ };
618
+ readonly result: {
619
+ readonly blob: {
620
+ readonly bytes: string;
621
+ readonly gigabytes: string;
622
+ };
623
+ readonly freshness: {
624
+ readonly state: "settled";
625
+ };
626
+ readonly indexed_text: {
627
+ readonly approximate_pages: null | string;
628
+ readonly bytes: string;
629
+ readonly gigabytes: string;
630
+ };
631
+ readonly measurement: {
632
+ readonly page_reference: null | {
633
+ readonly bytes_per_page: string;
634
+ readonly encoding: string;
635
+ readonly font: string;
636
+ readonly font_size_pt: string;
637
+ readonly layout: string;
638
+ };
639
+ };
640
+ readonly room_ref: string;
641
+ readonly total: {
642
+ readonly bytes: string;
643
+ readonly gigabytes: string;
644
+ };
645
+ readonly url: string;
646
+ } | {
647
+ readonly blob: {
648
+ readonly bytes: string;
649
+ readonly gigabytes: string;
650
+ };
651
+ readonly freshness: {
652
+ readonly state: "settled";
653
+ };
654
+ readonly indexed_text: {
655
+ readonly approximate_pages: null | string;
656
+ readonly bytes: string;
657
+ readonly gigabytes: string;
658
+ };
659
+ readonly measurement: {
660
+ readonly page_reference: null | {
661
+ readonly bytes_per_page: string;
662
+ readonly encoding: string;
663
+ readonly font: string;
664
+ readonly font_size_pt: string;
665
+ readonly layout: string;
666
+ };
667
+ };
668
+ readonly site_images: {
669
+ readonly bound: string;
670
+ readonly bytes: string;
671
+ readonly payloads: string;
672
+ };
673
+ readonly total: {
674
+ readonly bytes: string;
675
+ readonly gigabytes: string;
676
+ };
677
+ } | {
678
+ readonly blob: {
679
+ readonly bytes: string;
680
+ readonly gigabytes: string;
681
+ };
682
+ readonly freshness: {
683
+ readonly state: "settled";
684
+ };
685
+ readonly indexed_text: {
686
+ readonly approximate_pages: null | string;
687
+ readonly bytes: string;
688
+ readonly gigabytes: string;
689
+ };
690
+ readonly measurement: {
691
+ readonly page_reference: null | {
692
+ readonly bytes_per_page: string;
693
+ readonly encoding: string;
694
+ readonly font: string;
695
+ readonly font_size_pt: string;
696
+ readonly layout: string;
697
+ };
698
+ };
699
+ readonly total: {
700
+ readonly bytes: string;
701
+ readonly gigabytes: string;
702
+ };
703
+ };
704
+ };
705
+ readonly "triggers/fired": {
706
+ readonly params: {
707
+ readonly room_ref: string;
708
+ };
709
+ readonly result: {
710
+ readonly events: readonly {
711
+ 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";
713
+ readonly code: "cap_reached";
714
+ readonly outcome: "refused";
715
+ readonly position: number;
716
+ readonly retry_at: string;
717
+ } | {
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";
719
+ readonly code: "cap_reached";
720
+ readonly outcome: "refused";
721
+ readonly position: number;
722
+ } | {
723
+ readonly code: "agent_unavailable";
724
+ readonly outcome: "withdrawn";
725
+ readonly position: number;
726
+ } | {
727
+ readonly code: "function_failed";
728
+ readonly cut?: boolean;
729
+ readonly error: string;
730
+ readonly exit_code?: number;
731
+ readonly final: true;
732
+ readonly outcome: "failed";
733
+ readonly output?: string;
734
+ readonly position: number;
735
+ readonly run: string;
736
+ } | {
737
+ readonly code: "function_failed";
738
+ readonly error: string;
739
+ readonly final: true;
740
+ readonly outcome: "failed";
741
+ readonly position: number;
742
+ readonly release: string;
743
+ } | {
744
+ readonly code: "function_not_started";
745
+ readonly final?: true;
746
+ readonly outcome: "failed";
747
+ readonly position: number;
748
+ readonly tries: number;
749
+ } | {
750
+ readonly code: "limit_reached";
751
+ readonly limit: "reads";
752
+ readonly outcome: "refused";
753
+ readonly period: "day" | "minute";
754
+ readonly position: number;
755
+ readonly retry_at: string;
756
+ readonly value: string;
757
+ } | {
758
+ readonly code: "limit_reached";
759
+ readonly limit: "writes";
760
+ readonly outcome: "refused";
761
+ readonly period: "day" | "minute";
762
+ readonly position: number;
763
+ readonly retry_at: string;
764
+ } | {
765
+ readonly code: "limit_reached";
766
+ readonly limit: "blob" | "indexed_text";
767
+ readonly outcome: "refused";
768
+ readonly position: number;
769
+ readonly used: string;
770
+ readonly value: string;
771
+ } | {
772
+ readonly code: "limit_reached";
773
+ readonly limit: "custom_domains" | "external_calls" | "mcp_downloads" | "mcp_reads" | "publish_data" | "site_submissions" | "sites";
774
+ readonly outcome: "refused";
775
+ readonly position: number;
776
+ readonly retry_at: string;
777
+ } | {
778
+ readonly code: "limit_reached";
779
+ readonly limit: "custom_domains" | "external_calls" | "mcp_downloads" | "mcp_reads" | "publish_data" | "site_submissions" | "sites";
780
+ readonly outcome: "refused";
781
+ readonly position: number;
782
+ } | {
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";
784
+ readonly outcome: "no_target";
785
+ readonly position: number;
786
+ } | {
787
+ readonly code: "internal_error" | "routine_request_not_started";
788
+ readonly outcome: "failed";
789
+ readonly position: number;
790
+ } | {
791
+ readonly code: string;
792
+ readonly outcome: "refused";
793
+ readonly position: number;
794
+ } | {
795
+ readonly cut?: boolean;
796
+ readonly exit_code?: number;
797
+ readonly outcome: "ran";
798
+ readonly output?: string;
799
+ readonly position: number;
800
+ readonly run: string;
801
+ } | {
802
+ readonly outcome: "continued";
803
+ readonly position: number;
804
+ readonly request: string;
805
+ } | {
806
+ readonly outcome: "notified";
807
+ readonly position: number;
808
+ readonly reached: number;
809
+ } | {
810
+ readonly outcome: "paused";
811
+ readonly position: number;
812
+ } | {
813
+ readonly outcome: "ran";
814
+ readonly position: number;
815
+ readonly release: string;
816
+ } | {
817
+ readonly outcome: "requested";
818
+ readonly position: number;
819
+ readonly request: string;
820
+ } | {
821
+ readonly outcome: "running";
822
+ readonly position: number;
823
+ readonly release: string;
824
+ } | {
825
+ readonly outcome: "running";
826
+ readonly position: number;
827
+ readonly run: string;
828
+ } | {
829
+ readonly outcome: "waiting";
830
+ readonly position: number;
831
+ })[];
832
+ readonly code?: "cap_reached";
833
+ readonly created_at: string;
834
+ readonly missed?: "failed" | "skipped";
835
+ readonly moment?: string;
836
+ readonly path?: string;
837
+ readonly trigger: string;
838
+ readonly url?: string;
839
+ }[];
840
+ };
841
+ };
842
+ }
4
843
  export type HouseParams<Name extends string> = Name extends keyof HouseMethods ? HouseMethods[Name]['params'] : unknown;
5
844
  type CallResult = Awaited<ReturnType<MdRuntimeClient['call']>>;
6
845
  export type HouseResult<Name extends string> = Exclude<CallResult, {
@@ -21,7 +860,7 @@ export interface HouseCredentialState {
21
860
  readonly state: Open<'none' | 'held' | 'rejected'>;
22
861
  readonly expiresAt: number | null;
23
862
  }
24
- export type HouseDatabaseFailure = 'unsupported' | 'damaged' | 'update-required';
863
+ export type HouseDatabaseFailure = 'unsupported' | 'damaged';
25
864
  export type HouseAnalyticsChoice = 'accept' | 'decline';
26
865
  export interface HouseAnalytics {
27
866
  readonly measures: boolean;
@@ -80,8 +919,6 @@ export interface HouseExternalRequest {
80
919
  readonly headers?: Readonly<Record<string, string>>;
81
920
  readonly body?: string;
82
921
  readonly body_base64?: string;
83
- readonly account?: string;
84
- readonly slot?: string;
85
922
  readonly room_ref?: string;
86
923
  }
87
924
  export type HouseExternalAnswer = {
@@ -120,19 +957,8 @@ export interface HouseBrowserRefused extends Error {
120
957
  readonly code: string;
121
958
  readonly retryable: boolean;
122
959
  }
123
- export interface HouseTrialWithheld {
124
- readonly code: Open<'house_trial_withheld'>;
125
- readonly retryable: true;
126
- }
127
- export type HouseTask = unknown;
128
- export type HouseActivation = Open<'committed' | 'abandoned'>;
129
960
  export interface HouseCooperation {
130
- checkpoint(): Promise<void> | void;
131
- persist(): Promise<void> | void;
132
- capture(): Promise<HouseTask> | HouseTask;
133
- restore(task: HouseTask | null): Promise<void> | void;
134
- ready(): Promise<boolean> | boolean;
135
- settle(activation: HouseActivation): void;
961
+ placed(): Promise<void> | void;
136
962
  }
137
963
  export type HouseChatWidth = 'full' | '3/4' | '1/2' | '1/3';
138
964
  export interface HouseChatOpened {
@@ -181,3 +1007,4 @@ export interface HouseHeld {
181
1007
  readonly houseBridge: HouseBridge;
182
1008
  }
183
1009
  export declare const houseBridge: () => HouseBridge;
1010
+ export {};