@agentshouse/app-bridge 0.1.0-cd3bc6240e9ba → 0.1.0-cd44fa24fb809

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 (116) hide show
  1. package/README.md +6 -6
  2. package/dist/index.d.ts +186 -376
  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 -11
  6. package/dist/mdmodel/document.d.ts +14 -8
  7. package/dist/mdmodel/event.d.ts +76 -0
  8. package/dist/mdmodel/facts.d.ts +14 -0
  9. package/dist/mdmodel/fields.d.ts +1 -1
  10. package/dist/mdmodel/house-model.d.ts +869 -0
  11. package/dist/mdmodel/house-references/crockford.d.ts +3 -0
  12. package/dist/mdmodel/house-references/patterns.d.ts +8 -0
  13. package/dist/mdmodel/index.d.ts +40 -15
  14. package/dist/mdmodel/kinds.d.ts +17 -0
  15. package/dist/mdmodel/markdown.d.ts +74 -0
  16. package/dist/mdmodel/media-type.d.ts +71 -0
  17. package/dist/mdmodel/moment.d.ts +6 -0
  18. package/dist/mdmodel/not-ready.d.ts +1 -0
  19. package/dist/mdmodel/paths.d.ts +15 -1
  20. package/dist/mdmodel/pattern.d.ts +9 -0
  21. package/dist/mdmodel/query/language.d.ts +253 -0
  22. package/dist/mdmodel/query/match.d.ts +13 -0
  23. package/dist/mdmodel/query/rows.d.ts +31 -0
  24. package/dist/mdmodel/query/sql.d.ts +38 -0
  25. package/dist/mdmodel/references.d.ts +2 -2
  26. package/dist/mdmodel/reserved.d.ts +5 -0
  27. package/dist/mdmodel/room-types.d.ts +6 -0
  28. package/dist/mdmodel/types.d.ts +22 -17
  29. package/dist/mdmodel/validate.d.ts +12 -6
  30. package/dist/mdmodel/yaml.d.ts +4 -4
  31. package/dist/mdruntime/actions.d.ts +25 -0
  32. package/dist/mdruntime/adapter.d.ts +135 -81
  33. package/dist/mdruntime/attached-model.d.ts +6 -0
  34. package/dist/mdruntime/authored.d.ts +87 -0
  35. package/dist/mdruntime/bootstrap.d.ts +43 -0
  36. package/dist/mdruntime/cell.d.ts +5 -0
  37. package/dist/mdruntime/chain.d.ts +2 -1
  38. package/dist/mdruntime/change-set.d.ts +4 -0
  39. package/dist/mdruntime/change.d.ts +5 -0
  40. package/dist/mdruntime/client.d.ts +33 -22
  41. package/dist/mdruntime/collection.d.ts +26 -4
  42. package/dist/mdruntime/compile.d.ts +8 -6
  43. package/dist/mdruntime/conversation-live.d.ts +149 -0
  44. package/dist/mdruntime/conversation-row.d.ts +39 -0
  45. package/dist/mdruntime/conversation.d.ts +67 -46
  46. package/dist/mdruntime/declaration.d.ts +9 -0
  47. package/dist/mdruntime/durability.d.ts +20 -0
  48. package/dist/mdruntime/failure.d.ts +3 -0
  49. package/dist/mdruntime/figures.d.ts +48 -0
  50. package/dist/mdruntime/holdings.d.ts +28 -0
  51. package/dist/mdruntime/identity.d.ts +0 -1
  52. package/dist/mdruntime/install.d.ts +59 -0
  53. package/dist/mdruntime/listing.d.ts +51 -0
  54. package/dist/mdruntime/live.d.ts +24 -0
  55. package/dist/mdruntime/media.d.ts +19 -2
  56. package/dist/mdruntime/messages.d.ts +35 -5
  57. package/dist/mdruntime/model.d.ts +2 -10
  58. package/dist/mdruntime/observation.d.ts +28 -13
  59. package/dist/mdruntime/opened.d.ts +1 -1
  60. package/dist/mdruntime/outcome.d.ts +17 -2
  61. package/dist/mdruntime/overlay.d.ts +7 -2
  62. package/dist/mdruntime/preparation.d.ts +40 -0
  63. package/dist/mdruntime/presence.d.ts +57 -0
  64. package/dist/mdruntime/query.d.ts +13 -209
  65. package/dist/mdruntime/reach.d.ts +15 -14
  66. package/dist/mdruntime/readiness.d.ts +9 -6
  67. package/dist/mdruntime/reads.d.ts +38 -0
  68. package/dist/mdruntime/recovery.d.ts +3 -1
  69. package/dist/mdruntime/refresh.d.ts +26 -0
  70. package/dist/mdruntime/replica.d.ts +11 -16
  71. package/dist/mdruntime/retried.d.ts +29 -0
  72. package/dist/mdruntime/room-draft.d.ts +34 -10
  73. package/dist/mdruntime/room-drafts.d.ts +23 -0
  74. package/dist/mdruntime/runtime.d.ts +33 -0
  75. package/dist/mdruntime/save.d.ts +42 -86
  76. package/dist/mdruntime/saves.d.ts +33 -0
  77. package/dist/mdruntime/search.d.ts +12 -63
  78. package/dist/mdruntime/seed.d.ts +11 -2
  79. package/dist/mdruntime/socket/admission.d.ts +6 -0
  80. package/dist/mdruntime/socket/answers.d.ts +5 -0
  81. package/dist/mdruntime/socket/lanes.d.ts +27 -0
  82. package/dist/mdruntime/socket/session.d.ts +37 -0
  83. package/dist/mdruntime/socket.d.ts +66 -0
  84. package/dist/mdruntime/source.d.ts +58 -0
  85. package/dist/mdruntime/status.d.ts +0 -2
  86. package/dist/mdruntime/store/installs.d.ts +29 -0
  87. package/dist/mdruntime/store/readiness.d.ts +10 -0
  88. package/dist/mdruntime/store/records.d.ts +223 -0
  89. package/dist/mdruntime/store/room-held.d.ts +7 -0
  90. package/dist/mdruntime/store/rooms-shown.d.ts +7 -0
  91. package/dist/mdruntime/store/space.d.ts +10 -0
  92. package/dist/mdruntime/store/watchers.d.ts +16 -0
  93. package/dist/mdruntime/store/writes.d.ts +23 -0
  94. package/dist/mdruntime/store.d.ts +115 -144
  95. package/dist/mdruntime/stored.d.ts +72 -35
  96. package/dist/mdruntime/surface.d.ts +91 -0
  97. package/dist/mdruntime/tables.d.ts +118 -67
  98. package/dist/mdruntime/tallies.d.ts +17 -0
  99. package/dist/mdruntime/transfer.d.ts +4 -0
  100. package/dist/mdruntime/wire.d.ts +74 -7
  101. package/dist/session-content/bounds.d.ts +7 -0
  102. package/dist/session-content/check.d.ts +18 -0
  103. package/dist/session-content/index.d.ts +7 -0
  104. package/dist/session-content/parts.d.ts +103 -0
  105. package/dist/session-content/state.d.ts +61 -0
  106. package/dist/session-content/turn.d.ts +328 -0
  107. package/dist/test-host.d.ts +8 -1
  108. package/dist/test-host.js +27 -1
  109. package/docs/families.md +52 -22
  110. package/package.json +2 -2
  111. package/dist/mdmodel/blocks.d.ts +0 -10
  112. package/dist/mdmodel/condition.d.ts +0 -179
  113. package/dist/mdmodel/links.d.ts +0 -28
  114. package/dist/mdmodel/profile.d.ts +0 -5
  115. package/dist/mdruntime/connection.d.ts +0 -152
  116. package/dist/mdruntime/fulltext.d.ts +0 -26
package/dist/index.d.ts CHANGED
@@ -1,7 +1,29 @@
1
1
  import type { MdRuntimeClient, Open } from './mdruntime/client.js';
2
2
  export interface HouseMethods {
3
- readonly "apps/features/read": {
4
- readonly params: {};
3
+ readonly "agent-functions/decide": {
4
+ readonly params: never;
5
+ readonly result: never;
6
+ };
7
+ readonly "agent-functions/requests/list": {
8
+ readonly params: {
9
+ readonly operation_id?: string;
10
+ readonly room_ref: string;
11
+ };
12
+ readonly result: {
13
+ readonly current: readonly {
14
+ readonly document: string;
15
+ readonly name: string;
16
+ }[];
17
+ readonly history: readonly {
18
+ readonly document: string;
19
+ readonly name: string;
20
+ }[];
21
+ };
22
+ };
23
+ readonly "apps/features/list": {
24
+ readonly params: {
25
+ readonly operation_id?: string;
26
+ };
5
27
  readonly result: {
6
28
  readonly features: readonly {
7
29
  readonly allowed: boolean;
@@ -9,11 +31,12 @@ export interface HouseMethods {
9
31
  }[];
10
32
  };
11
33
  };
12
- readonly "apps/holders": {
13
- readonly params: {};
34
+ readonly "apps/holders/list": {
35
+ readonly params: {
36
+ readonly operation_id?: string;
37
+ };
14
38
  readonly result: {
15
39
  readonly holders: readonly {
16
- readonly email: string;
17
40
  readonly name: string;
18
41
  readonly user: string;
19
42
  }[];
@@ -22,15 +45,16 @@ export interface HouseMethods {
22
45
  readonly "apps/messages/send": {
23
46
  readonly params: {
24
47
  readonly body: unknown;
48
+ readonly operation_id?: string;
25
49
  readonly to: string;
26
50
  };
27
51
  readonly result: {
28
52
  readonly [key: string]: never;
29
53
  };
30
54
  };
31
- readonly "apps/relay": {
55
+ readonly "apps/relay/read": {
32
56
  readonly params: {
33
- readonly [key: string]: never;
57
+ readonly operation_id?: string;
34
58
  };
35
59
  readonly result: {
36
60
  readonly expires_at: string;
@@ -43,6 +67,7 @@ export interface HouseMethods {
43
67
  };
44
68
  readonly "apps/ring": {
45
69
  readonly params: {
70
+ readonly operation_id?: string;
46
71
  readonly to: string;
47
72
  };
48
73
  readonly result: {
@@ -58,6 +83,7 @@ export interface HouseMethods {
58
83
  } | {
59
84
  readonly user: string;
60
85
  };
86
+ readonly operation_id?: string;
61
87
  readonly path: string;
62
88
  readonly room_ref: string;
63
89
  };
@@ -81,8 +107,32 @@ export interface HouseMethods {
81
107
  readonly url: string;
82
108
  };
83
109
  };
110
+ readonly "chats/reply": {
111
+ readonly params: {
112
+ readonly operation_id?: string;
113
+ readonly path: string;
114
+ readonly room_ref: string;
115
+ readonly template?: {
116
+ readonly language: string;
117
+ readonly name: string;
118
+ };
119
+ readonly text?: string;
120
+ readonly values?: {
121
+ readonly [key: string]: string;
122
+ };
123
+ };
124
+ readonly result: {
125
+ readonly authority: string;
126
+ readonly log_epoch: string;
127
+ readonly path: string;
128
+ readonly position: string;
129
+ readonly room_ref: string;
130
+ readonly url: string;
131
+ };
132
+ };
84
133
  readonly "chats/return": {
85
134
  readonly params: {
135
+ readonly operation_id?: string;
86
136
  readonly path: string;
87
137
  readonly room_ref: string;
88
138
  };
@@ -108,6 +158,7 @@ export interface HouseMethods {
108
158
  };
109
159
  readonly "chats/take-control": {
110
160
  readonly params: {
161
+ readonly operation_id?: string;
111
162
  readonly path: string;
112
163
  readonly room_ref: string;
113
164
  };
@@ -132,297 +183,53 @@ export interface HouseMethods {
132
183
  };
133
184
  };
134
185
  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
- };
186
+ readonly params: never;
187
+ readonly result: never;
148
188
  };
149
189
  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
- };
190
+ readonly params: never;
191
+ readonly result: never;
177
192
  };
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 sender?: "conversation" | "customer" | "owner" | "report" | "requester" | "trigger";
239
- readonly source?: {
240
- readonly agent: {
241
- readonly id: string;
242
- readonly name: string;
243
- readonly url: string;
244
- };
245
- readonly kind: "mail";
246
- readonly owner: {
247
- readonly name: string;
248
- readonly user: string;
249
- };
250
- readonly request: string;
251
- } | {
252
- readonly approved_at: null | string;
253
- readonly kind: "request";
254
- readonly request: string;
255
- readonly requester: {
256
- readonly name: string;
257
- readonly room: string;
258
- readonly url: string;
259
- } | {
260
- readonly name: string;
261
- readonly user: string;
262
- };
263
- readonly room: {
264
- readonly handle: string;
265
- readonly name: string;
266
- readonly ref: string;
267
- readonly url: string;
268
- };
269
- readonly routine: null | {
270
- readonly id: string;
271
- readonly name: string;
272
- readonly version: number;
273
- };
274
- };
275
- readonly telegram_undelivered?: true;
276
- readonly text: string;
277
- readonly transcripts?: readonly {
278
- readonly path: string;
279
- readonly text: string;
280
- }[];
281
- readonly turn_id: null | string;
282
- readonly url?: string;
283
- readonly waiting?: true;
284
- }[];
285
- readonly next: null | {
286
- readonly accepted_at: string;
287
- readonly message_id: string;
288
- };
289
- readonly url: string;
290
- }[];
291
- };
193
+ readonly "conversations/history/list": {
194
+ readonly params: never;
195
+ readonly result: never;
292
196
  };
293
197
  readonly "conversations/interaction/answer": {
294
- readonly params: {
295
- readonly conversation_id: string;
296
- readonly interaction_id: string;
297
- readonly operation_id: string;
298
- readonly response: readonly unknown[] | boolean | null | number | {
299
- readonly [key: string]: unknown;
300
- } | string;
301
- };
302
- readonly result: {
303
- readonly agent_id: string;
304
- readonly authority: string;
305
- readonly conversation_id: string;
306
- readonly interaction_id: string;
307
- readonly log_epoch: string;
308
- readonly position: string;
309
- readonly url: string;
310
- };
198
+ readonly params: never;
199
+ readonly result: never;
311
200
  };
312
201
  readonly "conversations/interrupt": {
313
- readonly params: {
314
- readonly conversation_id: string;
315
- readonly operation_id: string;
316
- };
317
- readonly result: {
318
- readonly agent_id: string;
319
- readonly authority: string;
320
- readonly conversation_id: string;
321
- readonly log_epoch: string;
322
- readonly position: string;
323
- readonly url: string;
324
- };
202
+ readonly params: never;
203
+ readonly result: never;
325
204
  };
326
205
  readonly "conversations/kill": {
327
- readonly params: {
328
- readonly conversation_id: string;
329
- readonly operation_id: string;
330
- };
331
- readonly result: {
332
- readonly agent_id: string;
333
- readonly authority: string;
334
- readonly conversation_id: string;
335
- readonly log_epoch: string;
336
- readonly position: string;
337
- readonly url: string;
338
- };
206
+ readonly params: never;
207
+ readonly result: never;
339
208
  };
340
- readonly "conversations/option": {
341
- readonly params: {
342
- readonly conversation_id: string;
343
- readonly operation_id: string;
344
- readonly option: string;
345
- readonly value: boolean | string;
346
- };
347
- readonly result: {
348
- readonly agent_id: string;
349
- readonly authority: string;
350
- readonly conversation_id: string;
351
- readonly log_epoch: string;
352
- readonly position: string;
353
- readonly url: string;
354
- };
209
+ readonly "conversations/option/set": {
210
+ readonly params: never;
211
+ readonly result: never;
355
212
  };
356
213
  readonly "conversations/rename": {
357
- readonly params: {
358
- readonly conversation_id: string;
359
- readonly name: string;
360
- readonly operation_id: string;
361
- };
362
- readonly result: {
363
- readonly agent_id: string;
364
- readonly authority: string;
365
- readonly conversation_id: string;
366
- readonly log_epoch: string;
367
- readonly name: string;
368
- readonly position: string;
369
- readonly url: string;
370
- };
214
+ readonly params: never;
215
+ readonly result: never;
371
216
  };
372
217
  readonly "conversations/retry": {
373
- readonly params: {
374
- readonly conversation_id: string;
375
- readonly message_id: string;
376
- readonly operation_id: string;
377
- };
378
- readonly result: {
379
- readonly agent_id: string;
380
- readonly authority: string;
381
- readonly conversation_id: string;
382
- readonly log_epoch: string;
383
- readonly message_id: string;
384
- readonly position: string;
385
- readonly url: string;
386
- };
218
+ readonly params: never;
219
+ readonly result: never;
387
220
  };
388
221
  readonly "conversations/send": {
389
- readonly params: {
390
- readonly conversation_id: string;
391
- readonly operation_id: string;
392
- readonly text: string;
393
- };
394
- readonly result: {
395
- readonly agent_id: string;
396
- readonly authority: string;
397
- readonly conversation_id: string;
398
- readonly log_epoch: string;
399
- readonly message_id: string;
400
- readonly position: string;
401
- readonly url: string;
402
- };
222
+ readonly params: never;
223
+ readonly result: never;
403
224
  };
404
- readonly "records/read": {
405
- readonly params: {
406
- readonly cursor?: string;
407
- readonly limit?: number;
408
- readonly order?: "asc" | "desc";
409
- readonly room_ref: string;
410
- };
411
- readonly result: {
412
- readonly next_cursor?: string;
413
- readonly records: readonly {
414
- readonly body: null | string;
415
- readonly claimed: unknown;
416
- readonly created_at: string;
417
- readonly record: string;
418
- readonly ref: string;
419
- }[];
420
- };
225
+ readonly "conversations/take-out": {
226
+ readonly params: never;
227
+ readonly result: never;
421
228
  };
422
- readonly "rooms/access/read": {
229
+ readonly "rooms/access/list": {
423
230
  readonly params: {
231
+ readonly operation_id?: string;
424
232
  readonly room_ref: string;
425
- readonly statistics?: boolean;
426
233
  };
427
234
  readonly result: {
428
235
  readonly authority: "administrator" | "member" | "owner";
@@ -431,45 +238,36 @@ export interface HouseMethods {
431
238
  readonly direct: readonly {
432
239
  readonly level: null | "keep" | "open" | "search";
433
240
  readonly namespace: string;
434
- readonly operations: readonly ("delete" | "export" | "manageAccess" | "write")[];
241
+ readonly operations: readonly ("erase" | "export" | "manageAccess" | "write")[];
435
242
  }[];
436
- readonly downloads_per_day?: number;
437
243
  readonly entries: readonly {
438
244
  readonly level: null | "keep" | "open" | "search";
439
245
  readonly namespace: string;
440
- readonly operations: readonly ("delete" | "export" | "manageAccess" | "write")[];
246
+ readonly operations: readonly ("erase" | "export" | "manageAccess" | "write")[];
441
247
  readonly sources: readonly {
442
248
  readonly kind: "direct" | "inherited";
443
249
  readonly level: null | "keep" | "open" | "search";
444
250
  readonly namespace: string;
445
- readonly operations: readonly ("delete" | "export" | "manageAccess" | "write")[];
251
+ readonly operations: readonly ("erase" | "export" | "manageAccess" | "write")[];
446
252
  }[];
447
253
  }[];
448
254
  readonly key: null | string;
449
- readonly requests_per_day?: number;
450
255
  readonly schema_roles: readonly string[];
256
+ readonly through_space?: true;
451
257
  readonly user: string;
452
258
  readonly user_name: string;
453
259
  }[];
454
260
  readonly namespaces: readonly string[];
455
261
  readonly owner: string;
456
262
  readonly room_ref: string;
457
- readonly statistics?: readonly {
458
- readonly day: string;
459
- readonly downloads: number;
460
- readonly requests: number;
461
- readonly text_bytes: number;
462
- readonly user: string;
463
- }[];
464
263
  readonly url: string;
465
264
  readonly viewer: string;
466
265
  };
467
266
  };
468
- readonly "rooms/members": {
267
+ readonly "rooms/members/list": {
469
268
  readonly params: {
470
- readonly cursor?: string;
471
269
  readonly history?: boolean;
472
- readonly limit?: number;
270
+ readonly operation_id?: string;
473
271
  readonly room_ref: string;
474
272
  };
475
273
  readonly result: {
@@ -479,21 +277,22 @@ export interface HouseMethods {
479
277
  readonly user: string;
480
278
  }[];
481
279
  readonly members: readonly {
482
- readonly access?: "edit" | "keep" | "manage" | "open" | "owner" | "search";
280
+ readonly access?: "manage" | "owner" | "read" | "write";
281
+ readonly copies?: "online_only" | "search_only";
483
282
  readonly display_name: string;
484
283
  readonly email?: string;
485
284
  readonly member_document: null | string;
486
- readonly only_while_online?: true;
487
285
  readonly owner: boolean;
488
286
  readonly schema_roles?: readonly string[];
489
287
  readonly since: null | string;
288
+ readonly through_space?: true;
490
289
  readonly user: string;
491
290
  }[];
492
- readonly next_cursor?: string;
493
291
  };
494
292
  };
495
293
  readonly "rooms/settings/processing/read": {
496
294
  readonly params: {
295
+ readonly operation_id?: string;
497
296
  readonly path: string;
498
297
  readonly room_ref: string;
499
298
  };
@@ -519,28 +318,13 @@ export interface HouseMethods {
519
318
  readonly policy: {
520
319
  readonly from: null | string;
521
320
  readonly origin: "default" | "explicit" | "inherited";
522
- readonly reason: null | "room_too_large" | "unfunded";
321
+ readonly reason: null | "full_house_required" | "room_too_large";
523
322
  readonly value: "Off" | "On";
524
323
  };
525
324
  readonly writable: boolean;
526
325
  };
527
326
  };
528
- readonly "routines/requests": {
529
- readonly params: {
530
- readonly room_ref: string;
531
- };
532
- readonly result: {
533
- readonly current: readonly {
534
- readonly document: string;
535
- readonly name: string;
536
- }[];
537
- readonly history: readonly {
538
- readonly document: string;
539
- readonly name: string;
540
- }[];
541
- };
542
- };
543
- readonly "site/submission": {
327
+ readonly "sites/submissions/create": {
544
328
  readonly params: {
545
329
  readonly content: string;
546
330
  };
@@ -548,9 +332,11 @@ export interface HouseMethods {
548
332
  readonly submitted: true;
549
333
  };
550
334
  };
551
- readonly "storage/inventory": {
335
+ readonly "storage/inventory/read": {
552
336
  readonly params: {
337
+ readonly operation_id?: string;
553
338
  readonly room_ref?: string;
339
+ readonly rooms?: "owned";
554
340
  };
555
341
  readonly result: {
556
342
  readonly blob: {
@@ -561,19 +347,9 @@ export interface HouseMethods {
561
347
  readonly state: "settled";
562
348
  };
563
349
  readonly indexed_text: {
564
- readonly approximate_pages: null | string;
565
350
  readonly bytes: string;
566
351
  readonly gigabytes: string;
567
352
  };
568
- readonly measurement: {
569
- readonly page_reference: null | {
570
- readonly bytes_per_page: string;
571
- readonly encoding: string;
572
- readonly font: string;
573
- readonly font_size_pt: string;
574
- readonly layout: string;
575
- };
576
- };
577
353
  readonly room_ref: string;
578
354
  readonly total: {
579
355
  readonly bytes: string;
@@ -589,19 +365,28 @@ export interface HouseMethods {
589
365
  readonly state: "settled";
590
366
  };
591
367
  readonly indexed_text: {
592
- readonly approximate_pages: null | string;
593
368
  readonly bytes: string;
594
369
  readonly gigabytes: string;
595
370
  };
596
- readonly measurement: {
597
- readonly page_reference: null | {
598
- readonly bytes_per_page: string;
599
- readonly encoding: string;
600
- readonly font: string;
601
- readonly font_size_pt: string;
602
- readonly layout: string;
371
+ readonly rooms?: readonly {
372
+ readonly blob: {
373
+ readonly bytes: string;
374
+ readonly gigabytes: string;
603
375
  };
604
- };
376
+ readonly freshness: {
377
+ readonly state: "settled";
378
+ };
379
+ readonly indexed_text: {
380
+ readonly bytes: string;
381
+ readonly gigabytes: string;
382
+ };
383
+ readonly room_ref: string;
384
+ readonly total: {
385
+ readonly bytes: string;
386
+ readonly gigabytes: string;
387
+ };
388
+ readonly url: string;
389
+ }[];
605
390
  readonly site_images: {
606
391
  readonly bound: string;
607
392
  readonly bytes: string;
@@ -611,51 +396,37 @@ export interface HouseMethods {
611
396
  readonly bytes: string;
612
397
  readonly gigabytes: string;
613
398
  };
614
- } | {
615
- readonly blob: {
616
- readonly bytes: string;
617
- readonly gigabytes: string;
618
- };
619
- readonly freshness: {
620
- readonly state: "settled";
621
- };
622
- readonly indexed_text: {
623
- readonly approximate_pages: null | string;
624
- readonly bytes: string;
625
- readonly gigabytes: string;
626
- };
627
- readonly measurement: {
628
- readonly page_reference: null | {
629
- readonly bytes_per_page: string;
630
- readonly encoding: string;
631
- readonly font: string;
632
- readonly font_size_pt: string;
633
- readonly layout: string;
634
- };
635
- };
636
- readonly total: {
637
- readonly bytes: string;
638
- readonly gigabytes: string;
639
- };
640
399
  };
641
400
  };
642
- readonly "triggers/fired": {
401
+ readonly "triggers/fired/list": {
643
402
  readonly params: {
644
- readonly room_ref: string;
403
+ readonly operation_id?: string;
404
+ readonly room_ref?: string;
645
405
  };
646
406
  readonly result: {
647
407
  readonly events: readonly {
648
408
  readonly actions: readonly ({
649
- 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";
409
+ 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";
650
410
  readonly code: "cap_reached";
651
411
  readonly outcome: "refused";
652
412
  readonly position: number;
653
413
  readonly retry_at: string;
654
414
  } | {
655
- 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";
415
+ 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";
656
416
  readonly code: "cap_reached";
657
417
  readonly outcome: "refused";
658
418
  readonly position: number;
419
+ } | {
420
+ readonly code: "agent_function_request_not_started";
421
+ readonly final?: true;
422
+ readonly outcome: "failed";
423
+ readonly position: number;
424
+ } | {
425
+ readonly code: "agent_function_unreadable";
426
+ readonly document_path: string;
427
+ readonly final: true;
428
+ readonly outcome: "failed";
429
+ readonly position: number;
659
430
  } | {
660
431
  readonly code: "agent_unavailable";
661
432
  readonly outcome: "withdrawn";
@@ -683,6 +454,11 @@ export interface HouseMethods {
683
454
  readonly outcome: "failed";
684
455
  readonly position: number;
685
456
  readonly tries: number;
457
+ } | {
458
+ readonly code: "internal_error";
459
+ readonly final: true;
460
+ readonly outcome: "failed";
461
+ readonly position: number;
686
462
  } | {
687
463
  readonly code: "limit_reached";
688
464
  readonly limit: "reads";
@@ -707,27 +483,32 @@ export interface HouseMethods {
707
483
  readonly value: string;
708
484
  } | {
709
485
  readonly code: "limit_reached";
710
- readonly limit: "custom_domains" | "external_calls" | "mcp_downloads" | "mcp_reads" | "publish_data" | "site_submissions" | "sites";
486
+ readonly limit: "custom_domains" | "external_calls" | "publish_data" | "sites";
711
487
  readonly outcome: "refused";
712
488
  readonly position: number;
713
489
  readonly retry_at: string;
714
490
  } | {
715
491
  readonly code: "limit_reached";
716
- readonly limit: "custom_domains" | "external_calls" | "mcp_downloads" | "mcp_reads" | "publish_data" | "site_submissions" | "sites";
492
+ readonly limit: "custom_domains" | "external_calls" | "publish_data" | "sites";
717
493
  readonly outcome: "refused";
718
494
  readonly position: number;
719
495
  } | {
720
- readonly code: "app_function_not_found" | "app_not_found" | "environment_function_not_found" | "environment_offline" | "no_recipient" | "routine_not_found" | "routine_retired" | "target_agent_unavailable";
721
- readonly outcome: "no_target";
496
+ readonly code: "post_not_confirmed";
497
+ readonly final: true;
498
+ readonly outcome: "failed";
722
499
  readonly position: number;
723
500
  } | {
724
- readonly code: "internal_error" | "routine_request_not_started";
725
- readonly outcome: "failed";
501
+ readonly code: "agent_function_retired" | "environment_offline" | "no_group" | "no_recipient" | "not_found" | "target_agent_unavailable";
502
+ readonly outcome: "no_target";
726
503
  readonly position: number;
727
504
  } | {
728
505
  readonly code: string;
729
506
  readonly outcome: "refused";
730
507
  readonly position: number;
508
+ } | {
509
+ readonly conversations: number;
510
+ readonly outcome: "marked";
511
+ readonly position: number;
731
512
  } | {
732
513
  readonly cut?: boolean;
733
514
  readonly exit_code?: number;
@@ -735,6 +516,10 @@ export interface HouseMethods {
735
516
  readonly output?: string;
736
517
  readonly position: number;
737
518
  readonly run: string;
519
+ } | {
520
+ readonly mentioned: number;
521
+ readonly outcome: "posted";
522
+ readonly position: number;
738
523
  } | {
739
524
  readonly outcome: "continued";
740
525
  readonly position: number;
@@ -771,6 +556,7 @@ export interface HouseMethods {
771
556
  readonly missed?: "failed" | "skipped";
772
557
  readonly moment?: string;
773
558
  readonly path?: string;
559
+ readonly room_ref?: string;
774
560
  readonly trigger: string;
775
561
  readonly url?: string;
776
562
  }[];
@@ -797,7 +583,7 @@ export interface HouseCredentialState {
797
583
  readonly state: Open<'none' | 'held' | 'rejected'>;
798
584
  readonly expiresAt: number | null;
799
585
  }
800
- export type HouseDatabaseFailure = 'unsupported' | 'damaged';
586
+ export type HouseDatabaseFailure = 'damaged';
801
587
  export type HouseAnalyticsChoice = 'accept' | 'decline';
802
588
  export interface HouseAnalytics {
803
589
  readonly measures: boolean;
@@ -814,7 +600,6 @@ export interface HouseStatus {
814
600
  readonly sync: HouseSyncState | null;
815
601
  readonly refusal: {
816
602
  readonly code: string;
817
- readonly retryable: boolean;
818
603
  } | null;
819
604
  readonly loss: string | null;
820
605
  readonly database: Open<HouseDatabaseFailure> | null;
@@ -878,6 +663,15 @@ export interface HouseAppMessage {
878
663
  }
879
664
  export type HouseInstallation = Open<'accepted' | 'dismissed' | 'manual'>;
880
665
  export type HouseNotifications = Open<'on' | 'off' | 'blocked' | 'unavailable'>;
666
+ export interface HouseTelegram {
667
+ readonly state: Open<'available' | 'linked' | 'unavailable'>;
668
+ readonly name: string | null;
669
+ readonly username: string | null;
670
+ }
671
+ export interface HouseCeremonyEnded {
672
+ readonly said: string | null;
673
+ readonly done: boolean;
674
+ }
881
675
  export interface HouseCeremonyRefused extends Error {
882
676
  readonly name: 'HouseCeremonyRefused';
883
677
  readonly code: Open<'house_ceremony_refused'>;
@@ -897,7 +691,6 @@ export interface HouseBrowserRefused extends Error {
897
691
  export interface HouseCooperation {
898
692
  placed(): Promise<void> | void;
899
693
  }
900
- export type HouseChatWidth = 'full' | '3/4' | '1/2' | '1/3';
901
694
  export interface HouseChatOpened {
902
695
  readonly conversation: string | null;
903
696
  readonly agent: string | null;
@@ -905,8 +698,6 @@ export interface HouseChatOpened {
905
698
  export interface HouseChatOptions {
906
699
  readonly conversation?: string | null;
907
700
  readonly agent?: string | null;
908
- readonly showChats?: boolean;
909
- readonly width?: HouseChatWidth;
910
701
  readonly onOpen?: (opened: HouseChatOpened) => void;
911
702
  readonly onLink?: (href: string) => void;
912
703
  }
@@ -914,8 +705,27 @@ export interface HouseMountedChat {
914
705
  update(options: HouseChatOptions): void;
915
706
  unmount(): void;
916
707
  }
708
+ export interface HouseChatButtonOptions {
709
+ readonly onOpen?: (opened: HouseChatOpened) => void;
710
+ readonly onLink?: (href: string) => void;
711
+ }
712
+ export interface HouseChatButtonMount extends HouseChatButtonOptions {
713
+ readonly agent?: string | null;
714
+ }
715
+ export interface HouseChatTarget {
716
+ readonly conversation?: string | null;
717
+ readonly agent?: string | null;
718
+ readonly docked?: boolean;
719
+ }
720
+ export interface HouseChatButton {
721
+ open(target?: HouseChatTarget): void;
722
+ hide(): void;
723
+ update(options: HouseChatButtonOptions): void;
724
+ unmount(): void;
725
+ }
917
726
  export interface HouseChat {
918
727
  mount(element: object, options?: HouseChatOptions): Promise<HouseMountedChat>;
728
+ mountButton(options?: HouseChatButtonMount): Promise<HouseChatButton>;
919
729
  }
920
730
  export interface HouseBridge {
921
731
  readonly runtime: Promise<HouseRuntime>;
@@ -924,10 +734,10 @@ export interface HouseBridge {
924
734
  onAddress(listener: (address: string) => void): () => void;
925
735
  push(address: string): Promise<string>;
926
736
  replace(address: string): Promise<string>;
927
- ceremony(path: string): Promise<never>;
737
+ ceremony(path: string): Promise<HouseCeremonyEnded>;
928
738
  install(): Promise<HouseInstallation>;
929
739
  notifications(on?: boolean): Promise<HouseNotifications>;
930
- setBadge(unread: readonly string[]): Promise<void>;
740
+ telegram(link?: true): Promise<HouseTelegram>;
931
741
  setTab(tab: HouseTab): void;
932
742
  sourceTop(app: string, release?: string): Promise<HouseSourceTop | HouseRefusal | null>;
933
743
  sourceDownload(app: string, release?: string): Promise<HouseSourceDownload | HouseRefusal | null>;