@agentshouse/app-bridge 0.1.0-ca1d02c040fff → 0.1.0-ca1d8de05973d

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 (110) hide show
  1. package/README.md +4 -4
  2. package/dist/index.d.ts +195 -390
  3. package/dist/mdmodel/body.d.ts +84 -0
  4. package/dist/mdmodel/built-in.d.ts +3 -0
  5. package/dist/mdmodel/definition.d.ts +20 -10
  6. package/dist/mdmodel/document.d.ts +14 -8
  7. package/dist/mdmodel/event.d.ts +3 -4
  8. package/dist/mdmodel/fields.d.ts +1 -1
  9. package/dist/mdmodel/house-model.d.ts +869 -0
  10. package/dist/mdmodel/house-references/crockford.d.ts +3 -0
  11. package/dist/mdmodel/house-references/patterns.d.ts +8 -0
  12. package/dist/mdmodel/index.d.ts +29 -17
  13. package/dist/mdmodel/kinds.d.ts +1 -2
  14. package/dist/mdmodel/markdown.d.ts +74 -0
  15. package/dist/mdmodel/media-type.d.ts +71 -0
  16. package/dist/mdmodel/moment.d.ts +6 -0
  17. package/dist/mdmodel/not-ready.d.ts +1 -0
  18. package/dist/mdmodel/paths.d.ts +15 -1
  19. package/dist/mdmodel/query/language.d.ts +35 -4
  20. package/dist/mdmodel/query/match.d.ts +1 -1
  21. package/dist/mdmodel/query/rows.d.ts +1 -1
  22. package/dist/mdmodel/references.d.ts +2 -2
  23. package/dist/mdmodel/reserved.d.ts +1 -0
  24. package/dist/mdmodel/room-types.d.ts +6 -0
  25. package/dist/mdmodel/types.d.ts +15 -17
  26. package/dist/mdmodel/validate.d.ts +6 -2
  27. package/dist/mdmodel/yaml.d.ts +4 -4
  28. package/dist/mdruntime/actions.d.ts +25 -0
  29. package/dist/mdruntime/adapter.d.ts +123 -72
  30. package/dist/mdruntime/attached-model.d.ts +6 -0
  31. package/dist/mdruntime/authored.d.ts +87 -0
  32. package/dist/mdruntime/bootstrap.d.ts +43 -0
  33. package/dist/mdruntime/cell.d.ts +5 -0
  34. package/dist/mdruntime/change-set.d.ts +4 -0
  35. package/dist/mdruntime/change.d.ts +5 -0
  36. package/dist/mdruntime/client.d.ts +30 -21
  37. package/dist/mdruntime/collection.d.ts +26 -4
  38. package/dist/mdruntime/compile.d.ts +7 -0
  39. package/dist/mdruntime/conversation-live.d.ts +149 -0
  40. package/dist/mdruntime/conversation-row.d.ts +39 -0
  41. package/dist/mdruntime/conversation.d.ts +62 -42
  42. package/dist/mdruntime/declaration.d.ts +9 -0
  43. package/dist/mdruntime/durability.d.ts +14 -0
  44. package/dist/mdruntime/failure.d.ts +3 -0
  45. package/dist/mdruntime/figures.d.ts +48 -0
  46. package/dist/mdruntime/holdings.d.ts +28 -0
  47. package/dist/mdruntime/house-query.d.ts +20 -0
  48. package/dist/mdruntime/install.d.ts +59 -0
  49. package/dist/mdruntime/listing.d.ts +59 -0
  50. package/dist/mdruntime/live.d.ts +24 -0
  51. package/dist/mdruntime/media.d.ts +19 -2
  52. package/dist/mdruntime/messages.d.ts +33 -3
  53. package/dist/mdruntime/modal.d.ts +1 -0
  54. package/dist/mdruntime/model.d.ts +4 -5
  55. package/dist/mdruntime/observation.d.ts +29 -12
  56. package/dist/mdruntime/opened.d.ts +1 -1
  57. package/dist/mdruntime/outcome.d.ts +17 -2
  58. package/dist/mdruntime/overlay.d.ts +7 -2
  59. package/dist/mdruntime/preparation.d.ts +40 -0
  60. package/dist/mdruntime/presence.d.ts +57 -0
  61. package/dist/mdruntime/query.d.ts +10 -1
  62. package/dist/mdruntime/reach.d.ts +19 -8
  63. package/dist/mdruntime/readiness.d.ts +9 -4
  64. package/dist/mdruntime/reads.d.ts +38 -0
  65. package/dist/mdruntime/recovery.d.ts +4 -1
  66. package/dist/mdruntime/refresh.d.ts +26 -0
  67. package/dist/mdruntime/replica.d.ts +5 -13
  68. package/dist/mdruntime/retried.d.ts +29 -0
  69. package/dist/mdruntime/room-draft.d.ts +31 -8
  70. package/dist/mdruntime/room-drafts.d.ts +23 -0
  71. package/dist/mdruntime/runtime.d.ts +34 -0
  72. package/dist/mdruntime/save.d.ts +42 -86
  73. package/dist/mdruntime/saves.d.ts +33 -0
  74. package/dist/mdruntime/seed.d.ts +11 -2
  75. package/dist/mdruntime/socket/admission.d.ts +6 -0
  76. package/dist/mdruntime/socket/answers.d.ts +5 -0
  77. package/dist/mdruntime/socket/lanes.d.ts +27 -0
  78. package/dist/mdruntime/socket/session.d.ts +37 -0
  79. package/dist/mdruntime/socket.d.ts +67 -0
  80. package/dist/mdruntime/source.d.ts +58 -0
  81. package/dist/mdruntime/status.d.ts +0 -2
  82. package/dist/mdruntime/store/installs.d.ts +29 -0
  83. package/dist/mdruntime/store/readiness.d.ts +10 -0
  84. package/dist/mdruntime/store/records.d.ts +223 -0
  85. package/dist/mdruntime/store/room-held.d.ts +7 -0
  86. package/dist/mdruntime/store/rooms-shown.d.ts +7 -0
  87. package/dist/mdruntime/store/space.d.ts +10 -0
  88. package/dist/mdruntime/store/watchers.d.ts +16 -0
  89. package/dist/mdruntime/store/writes.d.ts +23 -0
  90. package/dist/mdruntime/store.d.ts +115 -141
  91. package/dist/mdruntime/stored.d.ts +69 -31
  92. package/dist/mdruntime/surface.d.ts +93 -0
  93. package/dist/mdruntime/tables.d.ts +110 -61
  94. package/dist/mdruntime/tallies.d.ts +17 -0
  95. package/dist/mdruntime/transfer.d.ts +4 -0
  96. package/dist/mdruntime/wire.d.ts +70 -8
  97. package/dist/session-content/bounds.d.ts +7 -0
  98. package/dist/session-content/check.d.ts +18 -0
  99. package/dist/session-content/index.d.ts +7 -0
  100. package/dist/session-content/parts.d.ts +103 -0
  101. package/dist/session-content/state.d.ts +61 -0
  102. package/dist/session-content/turn.d.ts +328 -0
  103. package/dist/test-host.d.ts +8 -1
  104. package/dist/test-host.js +32 -1
  105. package/docs/families.md +69 -30
  106. package/package.json +2 -2
  107. package/dist/mdmodel/blocks.d.ts +0 -10
  108. package/dist/mdmodel/links.d.ts +0 -28
  109. package/dist/mdmodel/profile.d.ts +0 -5
  110. package/dist/mdruntime/connection.d.ts +0 -154
package/dist/index.d.ts CHANGED
@@ -1,7 +1,12 @@
1
1
  import type { MdRuntimeClient, Open } from './mdruntime/client.js';
2
2
  export interface HouseMethods {
3
- readonly "agent-functions/requests": {
3
+ readonly "agent-functions/decide": {
4
+ readonly params: never;
5
+ readonly result: never;
6
+ };
7
+ readonly "agent-functions/requests/list": {
4
8
  readonly params: {
9
+ readonly operation_id?: string;
5
10
  readonly room_ref: string;
6
11
  };
7
12
  readonly result: {
@@ -15,8 +20,10 @@ export interface HouseMethods {
15
20
  }[];
16
21
  };
17
22
  };
18
- readonly "apps/features/read": {
19
- readonly params: {};
23
+ readonly "apps/features/list": {
24
+ readonly params: {
25
+ readonly operation_id?: string;
26
+ };
20
27
  readonly result: {
21
28
  readonly features: readonly {
22
29
  readonly allowed: boolean;
@@ -24,11 +31,12 @@ export interface HouseMethods {
24
31
  }[];
25
32
  };
26
33
  };
27
- readonly "apps/holders": {
28
- readonly params: {};
34
+ readonly "apps/holders/list": {
35
+ readonly params: {
36
+ readonly operation_id?: string;
37
+ };
29
38
  readonly result: {
30
39
  readonly holders: readonly {
31
- readonly email: string;
32
40
  readonly name: string;
33
41
  readonly user: string;
34
42
  }[];
@@ -37,15 +45,16 @@ export interface HouseMethods {
37
45
  readonly "apps/messages/send": {
38
46
  readonly params: {
39
47
  readonly body: unknown;
48
+ readonly operation_id?: string;
40
49
  readonly to: string;
41
50
  };
42
51
  readonly result: {
43
52
  readonly [key: string]: never;
44
53
  };
45
54
  };
46
- readonly "apps/relay": {
55
+ readonly "apps/relay/read": {
47
56
  readonly params: {
48
- readonly [key: string]: never;
57
+ readonly operation_id?: string;
49
58
  };
50
59
  readonly result: {
51
60
  readonly expires_at: string;
@@ -58,6 +67,7 @@ export interface HouseMethods {
58
67
  };
59
68
  readonly "apps/ring": {
60
69
  readonly params: {
70
+ readonly operation_id?: string;
61
71
  readonly to: string;
62
72
  };
63
73
  readonly result: {
@@ -73,6 +83,7 @@ export interface HouseMethods {
73
83
  } | {
74
84
  readonly user: string;
75
85
  };
86
+ readonly operation_id?: string;
76
87
  readonly path: string;
77
88
  readonly room_ref: string;
78
89
  };
@@ -98,7 +109,7 @@ export interface HouseMethods {
98
109
  };
99
110
  readonly "chats/reply": {
100
111
  readonly params: {
101
- readonly operation_id: string;
112
+ readonly operation_id?: string;
102
113
  readonly path: string;
103
114
  readonly room_ref: string;
104
115
  readonly template?: {
@@ -121,6 +132,7 @@ export interface HouseMethods {
121
132
  };
122
133
  readonly "chats/return": {
123
134
  readonly params: {
135
+ readonly operation_id?: string;
124
136
  readonly path: string;
125
137
  readonly room_ref: string;
126
138
  };
@@ -146,6 +158,7 @@ export interface HouseMethods {
146
158
  };
147
159
  readonly "chats/take-control": {
148
160
  readonly params: {
161
+ readonly operation_id?: string;
149
162
  readonly path: string;
150
163
  readonly room_ref: string;
151
164
  };
@@ -170,335 +183,52 @@ export interface HouseMethods {
170
183
  };
171
184
  };
172
185
  readonly "conversations/create": {
173
- readonly params: {
174
- readonly agent_id: string;
175
- readonly operation_id: string;
176
- };
177
- readonly result: {
178
- readonly agent_id: string;
179
- readonly authority: string;
180
- readonly conversation_id: string;
181
- readonly log_epoch: string;
182
- readonly position: string;
183
- readonly url: string;
184
- };
186
+ readonly params: never;
187
+ readonly result: never;
185
188
  };
186
189
  readonly "conversations/delete": {
187
- readonly params: {
188
- readonly conversation_id: string;
189
- readonly operation_id: string;
190
- };
191
- readonly result: {
192
- readonly authority: string;
193
- readonly conversation_id: string;
194
- readonly log_epoch: string;
195
- readonly outcome: "deleted";
196
- readonly position: string;
197
- };
198
- };
199
- readonly "conversations/end": {
200
- readonly params: {
201
- readonly conversation_id: string;
202
- readonly operation_id: string;
203
- };
204
- readonly result: {
205
- readonly agent_id: string;
206
- readonly authority: string;
207
- readonly conversation_id: string;
208
- readonly jobs: readonly {
209
- readonly name: string;
210
- readonly running_since: string;
211
- }[];
212
- readonly log_epoch: string;
213
- readonly position: string;
214
- readonly url: string;
215
- };
190
+ readonly params: never;
191
+ readonly result: never;
216
192
  };
217
- readonly "conversations/history": {
218
- readonly params: {
219
- readonly conversations: readonly {
220
- readonly after?: {
221
- readonly accepted_at: string;
222
- readonly message_id: string;
223
- };
224
- readonly conversation_id: string;
225
- }[];
226
- readonly limit?: number;
227
- };
228
- readonly result: {
229
- readonly histories: readonly {
230
- readonly agent_id: string;
231
- readonly conversation_id: string;
232
- readonly messages: readonly {
233
- readonly accepted_at: string;
234
- readonly context: null | {
235
- readonly used: number;
236
- readonly window: number;
237
- };
238
- readonly conversation_id: string;
239
- readonly failure: null | string;
240
- readonly message_id: string;
241
- readonly parts: readonly ({
242
- readonly command: string;
243
- readonly target: null | string;
244
- readonly type: "message";
245
- } | {
246
- readonly count: number;
247
- readonly type: "commands";
248
- } | {
249
- readonly description: string;
250
- readonly result: null | string;
251
- readonly status: "done" | "running";
252
- readonly type: "subagent";
253
- } | {
254
- readonly entries: readonly {
255
- readonly content: string;
256
- readonly status: string;
257
- }[];
258
- readonly type: "plan";
259
- } | {
260
- readonly file: string;
261
- readonly media_type: string;
262
- readonly name: string;
263
- readonly type: "image";
264
- } | {
265
- readonly marker: "compaction" | "job" | "mode" | "model" | "retry";
266
- readonly text: string;
267
- readonly type: "marker";
268
- } | {
269
- readonly text: string;
270
- readonly type: "reasoning";
271
- } | {
272
- readonly text: string;
273
- readonly type: "text";
274
- })[];
275
- readonly role: "assistant" | "house" | "user";
276
- readonly sender?: "conversation" | "customer" | "owner" | "replier" | "report" | "requester" | "trigger";
277
- readonly source?: {
278
- readonly agent: {
279
- readonly id: string;
280
- readonly name: string;
281
- readonly url: string;
282
- };
283
- readonly approved_at?: string;
284
- readonly declined_at?: string;
285
- readonly kind: "mail";
286
- readonly owner: {
287
- readonly name: string;
288
- readonly user: string;
289
- };
290
- readonly request: string;
291
- readonly room: string;
292
- } | {
293
- readonly agent: {
294
- readonly id: string;
295
- readonly name: string;
296
- readonly url: string;
297
- };
298
- readonly conversation: {
299
- readonly id: string;
300
- readonly name: string;
301
- readonly url: string;
302
- };
303
- readonly kind: "conversation";
304
- } | {
305
- readonly agent: {
306
- readonly id: string;
307
- readonly name: string;
308
- readonly url: string;
309
- };
310
- readonly kind: "declined";
311
- readonly owner: {
312
- readonly name: string;
313
- readonly user: string;
314
- };
315
- readonly request: string;
316
- } | {
317
- readonly agent_function: null | {
318
- readonly id: string;
319
- readonly name: string;
320
- readonly version: number;
321
- };
322
- readonly approved_at: null | string;
323
- readonly kind: "request";
324
- readonly request: string;
325
- readonly requester: {
326
- readonly name: string;
327
- readonly room: string;
328
- readonly url: string;
329
- } | {
330
- readonly name: string;
331
- readonly user: string;
332
- };
333
- readonly room: {
334
- readonly handle: string;
335
- readonly name: string;
336
- readonly ref: string;
337
- readonly url: string;
338
- };
339
- } | {
340
- readonly kind: "reply";
341
- readonly name: string;
342
- } | {
343
- readonly kind: "trigger";
344
- readonly path: null | string;
345
- readonly room: {
346
- readonly handle: string;
347
- readonly name: string;
348
- readonly ref: string;
349
- readonly url: string;
350
- };
351
- readonly trigger: {
352
- readonly description: string;
353
- readonly id: string;
354
- };
355
- };
356
- readonly telegram_undelivered?: true;
357
- readonly text: string;
358
- readonly transcripts?: readonly {
359
- readonly path: string;
360
- readonly text: string;
361
- }[];
362
- readonly turn_id: null | string;
363
- readonly url?: string;
364
- readonly waiting?: true;
365
- }[];
366
- readonly next: null | {
367
- readonly accepted_at: string;
368
- readonly message_id: string;
369
- };
370
- readonly url: string;
371
- }[];
372
- };
193
+ readonly "conversations/history/list": {
194
+ readonly params: never;
195
+ readonly result: never;
373
196
  };
374
197
  readonly "conversations/interaction/answer": {
375
- readonly params: {
376
- readonly conversation_id: string;
377
- readonly interaction_id: string;
378
- readonly operation_id: string;
379
- readonly response: readonly unknown[] | boolean | null | number | {
380
- readonly [key: string]: unknown;
381
- } | string;
382
- };
383
- readonly result: {
384
- readonly agent_id: string;
385
- readonly authority: string;
386
- readonly conversation_id: string;
387
- readonly interaction_id: string;
388
- readonly log_epoch: string;
389
- readonly position: string;
390
- readonly url: string;
391
- };
198
+ readonly params: never;
199
+ readonly result: never;
392
200
  };
393
201
  readonly "conversations/interrupt": {
394
- readonly params: {
395
- readonly conversation_id: string;
396
- readonly operation_id: string;
397
- };
398
- readonly result: {
399
- readonly agent_id: string;
400
- readonly authority: string;
401
- readonly conversation_id: string;
402
- readonly log_epoch: string;
403
- readonly position: string;
404
- readonly url: string;
405
- };
202
+ readonly params: never;
203
+ readonly result: never;
406
204
  };
407
205
  readonly "conversations/kill": {
408
- readonly params: {
409
- readonly conversation_id: string;
410
- readonly operation_id: string;
411
- };
412
- readonly result: {
413
- readonly agent_id: string;
414
- readonly authority: string;
415
- readonly conversation_id: string;
416
- readonly log_epoch: string;
417
- readonly position: string;
418
- readonly url: string;
419
- };
206
+ readonly params: never;
207
+ readonly result: never;
420
208
  };
421
- readonly "conversations/option": {
422
- readonly params: {
423
- readonly conversation_id: string;
424
- readonly operation_id: string;
425
- readonly option: string;
426
- readonly value: boolean | string;
427
- };
428
- readonly result: {
429
- readonly agent_id: string;
430
- readonly authority: string;
431
- readonly conversation_id: string;
432
- readonly log_epoch: string;
433
- readonly position: string;
434
- readonly url: string;
435
- };
209
+ readonly "conversations/option/set": {
210
+ readonly params: never;
211
+ readonly result: never;
436
212
  };
437
213
  readonly "conversations/rename": {
438
- readonly params: {
439
- readonly conversation_id: string;
440
- readonly name: string;
441
- readonly operation_id: string;
442
- };
443
- readonly result: {
444
- readonly agent_id: string;
445
- readonly authority: string;
446
- readonly conversation_id: string;
447
- readonly log_epoch: string;
448
- readonly name: string;
449
- readonly position: string;
450
- readonly url: string;
451
- };
214
+ readonly params: never;
215
+ readonly result: never;
452
216
  };
453
217
  readonly "conversations/retry": {
454
- readonly params: {
455
- readonly conversation_id: string;
456
- readonly message_id: string;
457
- readonly operation_id: string;
458
- };
459
- readonly result: {
460
- readonly agent_id: string;
461
- readonly authority: string;
462
- readonly conversation_id: string;
463
- readonly log_epoch: string;
464
- readonly message_id: string;
465
- readonly position: string;
466
- readonly url: string;
467
- };
218
+ readonly params: never;
219
+ readonly result: never;
468
220
  };
469
221
  readonly "conversations/send": {
470
- readonly params: {
471
- readonly conversation_id: string;
472
- readonly operation_id: string;
473
- readonly text: string;
474
- };
475
- readonly result: {
476
- readonly agent_id: string;
477
- readonly authority: string;
478
- readonly conversation_id: string;
479
- readonly log_epoch: string;
480
- readonly message_id: string;
481
- readonly position: string;
482
- readonly url: string;
483
- };
222
+ readonly params: never;
223
+ readonly result: never;
484
224
  };
485
- readonly "records/read": {
486
- readonly params: {
487
- readonly order?: "asc" | "desc";
488
- readonly room_ref: string;
489
- };
490
- readonly result: {
491
- readonly records: readonly {
492
- readonly body: null | string;
493
- readonly claimed: unknown;
494
- readonly created_at: string;
495
- readonly record: string;
496
- readonly ref: string;
497
- }[];
498
- };
225
+ readonly "conversations/take-out": {
226
+ readonly params: never;
227
+ readonly result: never;
499
228
  };
500
- readonly "rooms/access/read": {
229
+ readonly "rooms/access/list": {
501
230
  readonly params: {
231
+ readonly operation_id?: string;
502
232
  readonly room_ref: string;
503
233
  };
504
234
  readonly result: {
@@ -523,6 +253,7 @@ export interface HouseMethods {
523
253
  }[];
524
254
  readonly key: null | string;
525
255
  readonly schema_roles: readonly string[];
256
+ readonly through_space?: true;
526
257
  readonly user: string;
527
258
  readonly user_name: string;
528
259
  }[];
@@ -533,32 +264,48 @@ export interface HouseMethods {
533
264
  readonly viewer: string;
534
265
  };
535
266
  };
536
- readonly "rooms/members": {
267
+ readonly "rooms/members/list": {
537
268
  readonly params: {
538
269
  readonly history?: boolean;
270
+ readonly operation_id?: string;
539
271
  readonly room_ref: string;
540
272
  };
541
273
  readonly result: {
542
- readonly history?: readonly {
274
+ readonly history?: readonly ({
275
+ readonly agent_name?: string;
276
+ readonly at: string;
277
+ readonly by?: string;
278
+ readonly kind: "role_given" | "role_taken";
279
+ readonly role: string;
280
+ readonly user: string;
281
+ } | {
543
282
  readonly at: string;
544
283
  readonly kind: "granted" | "revoked";
545
284
  readonly user: string;
546
- }[];
285
+ })[];
547
286
  readonly members: readonly {
548
- readonly access?: "edit" | "keep" | "manage" | "open" | "owner" | "search";
287
+ readonly access?: "manage" | "owner" | "read" | "write";
288
+ readonly copies?: "online_only" | "search_only";
549
289
  readonly display_name: string;
550
290
  readonly email?: string;
551
291
  readonly member_document: null | string;
552
- readonly only_while_online?: true;
553
292
  readonly owner: boolean;
554
293
  readonly schema_roles?: readonly string[];
294
+ readonly schema_roles_given?: readonly {
295
+ readonly agent_name?: string;
296
+ readonly at: string;
297
+ readonly by?: string;
298
+ readonly role: string;
299
+ }[];
555
300
  readonly since: null | string;
301
+ readonly through_space?: true;
556
302
  readonly user: string;
557
303
  }[];
558
304
  };
559
305
  };
560
306
  readonly "rooms/settings/processing/read": {
561
307
  readonly params: {
308
+ readonly operation_id?: string;
562
309
  readonly path: string;
563
310
  readonly room_ref: string;
564
311
  };
@@ -584,13 +331,42 @@ export interface HouseMethods {
584
331
  readonly policy: {
585
332
  readonly from: null | string;
586
333
  readonly origin: "default" | "explicit" | "inherited";
587
- readonly reason: null | "room_too_large" | "unfunded";
334
+ readonly reason: null | "full_house_required" | "room_too_large";
588
335
  readonly value: "Off" | "On";
589
336
  };
590
337
  readonly writable: boolean;
591
338
  };
592
339
  };
593
- readonly "site/submission": {
340
+ readonly "service-keys/signatures/check": {
341
+ readonly params: {
342
+ readonly operation_id?: string;
343
+ readonly origin: string;
344
+ readonly room_ref: string;
345
+ readonly signature: string;
346
+ readonly text: string;
347
+ };
348
+ readonly result: {
349
+ readonly matched: boolean;
350
+ };
351
+ };
352
+ readonly "sites/functions/call": {
353
+ readonly params: {
354
+ readonly function: string;
355
+ readonly input?: readonly (readonly unknown[] | boolean | null | number | {
356
+ readonly [key: string]: unknown;
357
+ } | string)[] | boolean | null | number | {
358
+ readonly [key: string]: readonly unknown[] | boolean | null | number | {
359
+ readonly [key: string]: unknown;
360
+ } | string;
361
+ } | string;
362
+ };
363
+ readonly result: {
364
+ readonly answer: readonly unknown[] | boolean | null | number | {
365
+ readonly [key: string]: unknown;
366
+ } | string;
367
+ };
368
+ };
369
+ readonly "sites/submissions/create": {
594
370
  readonly params: {
595
371
  readonly content: string;
596
372
  };
@@ -598,9 +374,11 @@ export interface HouseMethods {
598
374
  readonly submitted: true;
599
375
  };
600
376
  };
601
- readonly "storage/inventory": {
377
+ readonly "storage/inventory/read": {
602
378
  readonly params: {
379
+ readonly operation_id?: string;
603
380
  readonly room_ref?: string;
381
+ readonly rooms?: "owned";
604
382
  };
605
383
  readonly result: {
606
384
  readonly blob: {
@@ -611,19 +389,9 @@ export interface HouseMethods {
611
389
  readonly state: "settled";
612
390
  };
613
391
  readonly indexed_text: {
614
- readonly approximate_pages: null | string;
615
392
  readonly bytes: string;
616
393
  readonly gigabytes: string;
617
394
  };
618
- readonly measurement: {
619
- readonly page_reference: null | {
620
- readonly bytes_per_page: string;
621
- readonly encoding: string;
622
- readonly font: string;
623
- readonly font_size_pt: string;
624
- readonly layout: string;
625
- };
626
- };
627
395
  readonly room_ref: string;
628
396
  readonly total: {
629
397
  readonly bytes: string;
@@ -639,19 +407,28 @@ export interface HouseMethods {
639
407
  readonly state: "settled";
640
408
  };
641
409
  readonly indexed_text: {
642
- readonly approximate_pages: null | string;
643
410
  readonly bytes: string;
644
411
  readonly gigabytes: string;
645
412
  };
646
- readonly measurement: {
647
- readonly page_reference: null | {
648
- readonly bytes_per_page: string;
649
- readonly encoding: string;
650
- readonly font: string;
651
- readonly font_size_pt: string;
652
- readonly layout: string;
413
+ readonly rooms?: readonly {
414
+ readonly blob: {
415
+ readonly bytes: string;
416
+ readonly gigabytes: string;
653
417
  };
654
- };
418
+ readonly freshness: {
419
+ readonly state: "settled";
420
+ };
421
+ readonly indexed_text: {
422
+ readonly bytes: string;
423
+ readonly gigabytes: string;
424
+ };
425
+ readonly room_ref: string;
426
+ readonly total: {
427
+ readonly bytes: string;
428
+ readonly gigabytes: string;
429
+ };
430
+ readonly url: string;
431
+ }[];
655
432
  readonly site_images: {
656
433
  readonly bound: string;
657
434
  readonly bytes: string;
@@ -661,51 +438,37 @@ export interface HouseMethods {
661
438
  readonly bytes: string;
662
439
  readonly gigabytes: string;
663
440
  };
664
- } | {
665
- readonly blob: {
666
- readonly bytes: string;
667
- readonly gigabytes: string;
668
- };
669
- readonly freshness: {
670
- readonly state: "settled";
671
- };
672
- readonly indexed_text: {
673
- readonly approximate_pages: null | string;
674
- readonly bytes: string;
675
- readonly gigabytes: string;
676
- };
677
- readonly measurement: {
678
- readonly page_reference: null | {
679
- readonly bytes_per_page: string;
680
- readonly encoding: string;
681
- readonly font: string;
682
- readonly font_size_pt: string;
683
- readonly layout: string;
684
- };
685
- };
686
- readonly total: {
687
- readonly bytes: string;
688
- readonly gigabytes: string;
689
- };
690
441
  };
691
442
  };
692
- readonly "triggers/fired": {
443
+ readonly "triggers/fired/list": {
693
444
  readonly params: {
694
- readonly room_ref: string;
445
+ readonly operation_id?: string;
446
+ readonly room_ref?: string;
695
447
  };
696
448
  readonly result: {
697
449
  readonly events: readonly {
698
450
  readonly actions: readonly ({
699
- 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_rooms" | "slot_rooms" | "spaces" | "waiting_web_wizards" | "writes";
451
+ 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";
700
452
  readonly code: "cap_reached";
701
453
  readonly outcome: "refused";
702
454
  readonly position: number;
703
455
  readonly retry_at: string;
704
456
  } | {
705
- 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_rooms" | "slot_rooms" | "spaces" | "waiting_web_wizards" | "writes";
457
+ 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";
706
458
  readonly code: "cap_reached";
707
459
  readonly outcome: "refused";
708
460
  readonly position: number;
461
+ } | {
462
+ readonly code: "agent_function_request_not_started";
463
+ readonly final?: true;
464
+ readonly outcome: "failed";
465
+ readonly position: number;
466
+ } | {
467
+ readonly code: "agent_function_unreadable";
468
+ readonly document_path: string;
469
+ readonly final: true;
470
+ readonly outcome: "failed";
471
+ readonly position: number;
709
472
  } | {
710
473
  readonly code: "agent_unavailable";
711
474
  readonly outcome: "withdrawn";
@@ -733,6 +496,11 @@ export interface HouseMethods {
733
496
  readonly outcome: "failed";
734
497
  readonly position: number;
735
498
  readonly tries: number;
499
+ } | {
500
+ readonly code: "internal_error";
501
+ readonly final: true;
502
+ readonly outcome: "failed";
503
+ readonly position: number;
736
504
  } | {
737
505
  readonly code: "limit_reached";
738
506
  readonly limit: "reads";
@@ -757,22 +525,23 @@ export interface HouseMethods {
757
525
  readonly value: string;
758
526
  } | {
759
527
  readonly code: "limit_reached";
760
- readonly limit: "custom_domains" | "external_calls" | "publish_data" | "sites";
528
+ readonly limit: "custom_domains" | "external_calls" | "publish_data" | "site_function_calls" | "sites";
761
529
  readonly outcome: "refused";
762
530
  readonly position: number;
763
531
  readonly retry_at: string;
764
532
  } | {
765
533
  readonly code: "limit_reached";
766
- readonly limit: "custom_domains" | "external_calls" | "publish_data" | "sites";
534
+ readonly limit: "custom_domains" | "external_calls" | "publish_data" | "site_function_calls" | "sites";
767
535
  readonly outcome: "refused";
768
536
  readonly position: number;
769
537
  } | {
770
- 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";
771
- readonly outcome: "no_target";
538
+ readonly code: "post_not_confirmed";
539
+ readonly final: true;
540
+ readonly outcome: "failed";
772
541
  readonly position: number;
773
542
  } | {
774
- readonly code: "agent_function_request_not_started" | "internal_error";
775
- readonly outcome: "failed";
543
+ readonly code: "agent_function_retired" | "environment_offline" | "no_group" | "no_recipient" | "not_found" | "target_agent_unavailable";
544
+ readonly outcome: "no_target";
776
545
  readonly position: number;
777
546
  } | {
778
547
  readonly code: string;
@@ -789,6 +558,10 @@ export interface HouseMethods {
789
558
  readonly output?: string;
790
559
  readonly position: number;
791
560
  readonly run: string;
561
+ } | {
562
+ readonly mentioned: number;
563
+ readonly outcome: "posted";
564
+ readonly position: number;
792
565
  } | {
793
566
  readonly outcome: "continued";
794
567
  readonly position: number;
@@ -825,6 +598,7 @@ export interface HouseMethods {
825
598
  readonly missed?: "failed" | "skipped";
826
599
  readonly moment?: string;
827
600
  readonly path?: string;
601
+ readonly room_ref?: string;
828
602
  readonly trigger: string;
829
603
  readonly url?: string;
830
604
  }[];
@@ -851,7 +625,7 @@ export interface HouseCredentialState {
851
625
  readonly state: Open<'none' | 'held' | 'rejected'>;
852
626
  readonly expiresAt: number | null;
853
627
  }
854
- export type HouseDatabaseFailure = 'unsupported' | 'damaged';
628
+ export type HouseDatabaseFailure = 'damaged';
855
629
  export type HouseAnalyticsChoice = 'accept' | 'decline';
856
630
  export interface HouseAnalytics {
857
631
  readonly measures: boolean;
@@ -868,7 +642,6 @@ export interface HouseStatus {
868
642
  readonly sync: HouseSyncState | null;
869
643
  readonly refusal: {
870
644
  readonly code: string;
871
- readonly retryable: boolean;
872
645
  } | null;
873
646
  readonly loss: string | null;
874
647
  readonly database: Open<HouseDatabaseFailure> | null;
@@ -931,12 +704,26 @@ export interface HouseAppMessage {
931
704
  readonly body: unknown;
932
705
  }
933
706
  export type HouseInstallation = Open<'accepted' | 'dismissed' | 'manual'>;
707
+ export interface HouseBox {
708
+ readonly x: number;
709
+ readonly y: number;
710
+ readonly width: number;
711
+ readonly height: number;
712
+ }
713
+ export interface HouseTitleRow {
714
+ readonly height: number;
715
+ readonly controls: readonly HouseBox[];
716
+ }
934
717
  export type HouseNotifications = Open<'on' | 'off' | 'blocked' | 'unavailable'>;
935
718
  export interface HouseTelegram {
936
719
  readonly state: Open<'available' | 'linked' | 'unavailable'>;
937
720
  readonly name: string | null;
938
721
  readonly username: string | null;
939
722
  }
723
+ export interface HouseCeremonyEnded {
724
+ readonly said: string | null;
725
+ readonly done: boolean;
726
+ }
940
727
  export interface HouseCeremonyRefused extends Error {
941
728
  readonly name: 'HouseCeremonyRefused';
942
729
  readonly code: Open<'house_ceremony_refused'>;
@@ -956,7 +743,6 @@ export interface HouseBrowserRefused extends Error {
956
743
  export interface HouseCooperation {
957
744
  placed(): Promise<void> | void;
958
745
  }
959
- export type HouseChatWidth = 'full' | '3/4' | '1/2' | '1/3';
960
746
  export interface HouseChatOpened {
961
747
  readonly conversation: string | null;
962
748
  readonly agent: string | null;
@@ -964,8 +750,6 @@ export interface HouseChatOpened {
964
750
  export interface HouseChatOptions {
965
751
  readonly conversation?: string | null;
966
752
  readonly agent?: string | null;
967
- readonly showChats?: boolean;
968
- readonly width?: HouseChatWidth;
969
753
  readonly onOpen?: (opened: HouseChatOpened) => void;
970
754
  readonly onLink?: (href: string) => void;
971
755
  }
@@ -973,8 +757,27 @@ export interface HouseMountedChat {
973
757
  update(options: HouseChatOptions): void;
974
758
  unmount(): void;
975
759
  }
760
+ export interface HouseChatButtonOptions {
761
+ readonly onOpen?: (opened: HouseChatOpened) => void;
762
+ readonly onLink?: (href: string) => void;
763
+ }
764
+ export interface HouseChatButtonMount extends HouseChatButtonOptions {
765
+ readonly agent?: string | null;
766
+ }
767
+ export interface HouseChatTarget {
768
+ readonly conversation?: string | null;
769
+ readonly agent?: string | null;
770
+ readonly docked?: boolean;
771
+ }
772
+ export interface HouseChatButton {
773
+ open(target?: HouseChatTarget): void;
774
+ hide(): void;
775
+ update(options: HouseChatButtonOptions): void;
776
+ unmount(): void;
777
+ }
976
778
  export interface HouseChat {
977
779
  mount(element: object, options?: HouseChatOptions): Promise<HouseMountedChat>;
780
+ mountButton(options?: HouseChatButtonMount): Promise<HouseChatButton>;
978
781
  }
979
782
  export interface HouseBridge {
980
783
  readonly runtime: Promise<HouseRuntime>;
@@ -983,11 +786,13 @@ export interface HouseBridge {
983
786
  onAddress(listener: (address: string) => void): () => void;
984
787
  push(address: string): Promise<string>;
985
788
  replace(address: string): Promise<string>;
986
- ceremony(path: string): Promise<never>;
987
- install(): Promise<HouseInstallation>;
789
+ ceremony(path: string): Promise<HouseCeremonyEnded>;
790
+ install(app?: string): Promise<HouseInstallation>;
791
+ installed(): Promise<boolean>;
792
+ onTitleBar(listener: (area: HouseBox | null) => void): () => void;
793
+ setTitleBar(row: HouseTitleRow | null): void;
988
794
  notifications(on?: boolean): Promise<HouseNotifications>;
989
795
  telegram(link?: true): Promise<HouseTelegram>;
990
- setBadge(unread: readonly string[]): Promise<void>;
991
796
  setTab(tab: HouseTab): void;
992
797
  sourceTop(app: string, release?: string): Promise<HouseSourceTop | HouseRefusal | null>;
993
798
  sourceDownload(app: string, release?: string): Promise<HouseSourceDownload | HouseRefusal | null>;