@agentshouse/app-bridge 0.1.0-c43d9cbcf6c8d → 0.1.0-c44cf2cfcc09a

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 (103) hide show
  1. package/README.md +6 -6
  2. package/dist/index.d.ts +143 -399
  3. package/dist/mdmodel/body.d.ts +84 -0
  4. package/dist/mdmodel/definition.d.ts +20 -10
  5. package/dist/mdmodel/document.d.ts +14 -7
  6. package/dist/mdmodel/event.d.ts +76 -0
  7. package/dist/mdmodel/facts.d.ts +14 -0
  8. package/dist/mdmodel/fields.d.ts +1 -1
  9. package/dist/mdmodel/index.d.ts +27 -13
  10. package/dist/mdmodel/kinds.d.ts +17 -0
  11. package/dist/mdmodel/markdown.d.ts +74 -0
  12. package/dist/mdmodel/paths.d.ts +10 -1
  13. package/dist/mdmodel/pattern.d.ts +9 -0
  14. package/dist/mdmodel/query/language.d.ts +253 -0
  15. package/dist/mdmodel/query/match.d.ts +13 -0
  16. package/dist/mdmodel/query/rows.d.ts +31 -0
  17. package/dist/mdmodel/query/sql.d.ts +38 -0
  18. package/dist/mdmodel/reserved.d.ts +5 -0
  19. package/dist/mdmodel/types.d.ts +21 -7
  20. package/dist/mdmodel/validate.d.ts +10 -6
  21. package/dist/mdruntime/actions.d.ts +25 -0
  22. package/dist/mdruntime/adapter.d.ts +71 -69
  23. package/dist/mdruntime/attached-model.d.ts +7 -0
  24. package/dist/mdruntime/bootstrap.d.ts +43 -0
  25. package/dist/mdruntime/cell.d.ts +5 -0
  26. package/dist/mdruntime/chain.d.ts +2 -1
  27. package/dist/mdruntime/change-set.d.ts +4 -0
  28. package/dist/mdruntime/change.d.ts +1 -0
  29. package/dist/mdruntime/client.d.ts +27 -19
  30. package/dist/mdruntime/collection.d.ts +23 -4
  31. package/dist/mdruntime/compile.d.ts +8 -6
  32. package/dist/mdruntime/conversation-live.d.ts +139 -0
  33. package/dist/mdruntime/conversation-row.d.ts +32 -0
  34. package/dist/mdruntime/conversation.d.ts +59 -45
  35. package/dist/mdruntime/declaration.d.ts +9 -0
  36. package/dist/mdruntime/durability.d.ts +18 -0
  37. package/dist/mdruntime/failure.d.ts +3 -0
  38. package/dist/mdruntime/figures.d.ts +48 -0
  39. package/dist/mdruntime/holdings.d.ts +28 -0
  40. package/dist/mdruntime/identity.d.ts +0 -1
  41. package/dist/mdruntime/listing.d.ts +47 -0
  42. package/dist/mdruntime/live.d.ts +22 -0
  43. package/dist/mdruntime/log.d.ts +5 -0
  44. package/dist/mdruntime/media.d.ts +1 -1
  45. package/dist/mdruntime/messages.d.ts +24 -3
  46. package/dist/mdruntime/model.d.ts +2 -10
  47. package/dist/mdruntime/observation.d.ts +2 -2
  48. package/dist/mdruntime/opened.d.ts +1 -1
  49. package/dist/mdruntime/outcome.d.ts +7 -1
  50. package/dist/mdruntime/overlay.d.ts +6 -1
  51. package/dist/mdruntime/preparation.d.ts +19 -0
  52. package/dist/mdruntime/presence.d.ts +51 -0
  53. package/dist/mdruntime/query.d.ts +13 -209
  54. package/dist/mdruntime/reach.d.ts +14 -12
  55. package/dist/mdruntime/readiness.d.ts +0 -3
  56. package/dist/mdruntime/reads.d.ts +38 -0
  57. package/dist/mdruntime/recovery.d.ts +3 -1
  58. package/dist/mdruntime/refresh.d.ts +26 -0
  59. package/dist/mdruntime/replica.d.ts +11 -16
  60. package/dist/mdruntime/retried.d.ts +29 -0
  61. package/dist/mdruntime/room-draft.d.ts +7 -8
  62. package/dist/mdruntime/room-drafts.d.ts +23 -0
  63. package/dist/mdruntime/runtime.d.ts +35 -0
  64. package/dist/mdruntime/save.d.ts +42 -86
  65. package/dist/mdruntime/saves.d.ts +31 -0
  66. package/dist/mdruntime/search.d.ts +12 -63
  67. package/dist/mdruntime/seed.d.ts +11 -2
  68. package/dist/mdruntime/socket/admission.d.ts +6 -0
  69. package/dist/mdruntime/socket/answers.d.ts +5 -0
  70. package/dist/mdruntime/socket/lanes.d.ts +27 -0
  71. package/dist/mdruntime/socket/session.d.ts +37 -0
  72. package/dist/mdruntime/socket.d.ts +67 -0
  73. package/dist/mdruntime/source.d.ts +53 -0
  74. package/dist/mdruntime/status.d.ts +0 -2
  75. package/dist/mdruntime/store/installs.d.ts +29 -0
  76. package/dist/mdruntime/store/readiness.d.ts +9 -0
  77. package/dist/mdruntime/store/records.d.ts +212 -0
  78. package/dist/mdruntime/store/room-held.d.ts +7 -0
  79. package/dist/mdruntime/store/space.d.ts +10 -0
  80. package/dist/mdruntime/store/watchers.d.ts +16 -0
  81. package/dist/mdruntime/store/writes.d.ts +23 -0
  82. package/dist/mdruntime/store.d.ts +112 -145
  83. package/dist/mdruntime/stored.d.ts +59 -33
  84. package/dist/mdruntime/surface.d.ts +88 -0
  85. package/dist/mdruntime/tables.d.ts +116 -29
  86. package/dist/mdruntime/tallies.d.ts +17 -0
  87. package/dist/mdruntime/transfer.d.ts +4 -0
  88. package/dist/mdruntime/wire.d.ts +69 -5
  89. package/dist/session-content/bounds.d.ts +7 -0
  90. package/dist/session-content/check.d.ts +18 -0
  91. package/dist/session-content/index.d.ts +7 -0
  92. package/dist/session-content/parts.d.ts +102 -0
  93. package/dist/session-content/state.d.ts +61 -0
  94. package/dist/session-content/turn.d.ts +328 -0
  95. package/dist/test-host.js +1 -1
  96. package/docs/families.md +24 -17
  97. package/package.json +2 -2
  98. package/dist/mdmodel/blocks.d.ts +0 -10
  99. package/dist/mdmodel/condition.d.ts +0 -179
  100. package/dist/mdmodel/links.d.ts +0 -28
  101. package/dist/mdmodel/profile.d.ts +0 -5
  102. package/dist/mdruntime/connection.d.ts +0 -152
  103. 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,322 +183,56 @@ 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
- };
190
+ readonly params: never;
191
+ readonly result: never;
161
192
  };
162
- readonly "conversations/done": {
163
- readonly params: {
164
- readonly conversation_id?: string;
165
- readonly operation_id: string;
166
- };
167
- readonly result: {
168
- readonly agent_id: string;
169
- readonly authority: string;
170
- readonly conversation_id: string;
171
- readonly done: null | string;
172
- readonly log_epoch: string;
173
- readonly position: string;
174
- readonly url: string;
175
- };
176
- };
177
- readonly "conversations/history": {
178
- readonly params: {
179
- readonly conversations: readonly {
180
- readonly after?: {
181
- readonly accepted_at: string;
182
- readonly message_id: string;
183
- };
184
- readonly conversation_id: string;
185
- }[];
186
- readonly limit?: number;
187
- };
188
- readonly result: {
189
- readonly histories: readonly {
190
- readonly agent_id: string;
191
- readonly conversation_id: string;
192
- readonly messages: readonly {
193
- readonly accepted_at: string;
194
- readonly context: null | {
195
- readonly used: number;
196
- readonly window: number;
197
- };
198
- readonly conversation_id: string;
199
- readonly failure: null | string;
200
- readonly message_id: string;
201
- readonly parts: readonly ({
202
- readonly command: string;
203
- readonly target: null | string;
204
- readonly type: "message";
205
- } | {
206
- readonly count: number;
207
- readonly type: "commands";
208
- } | {
209
- readonly description: string;
210
- readonly result: null | string;
211
- readonly status: "done" | "running";
212
- readonly type: "subagent";
213
- } | {
214
- readonly entries: readonly {
215
- readonly content: string;
216
- readonly status: string;
217
- }[];
218
- readonly type: "plan";
219
- } | {
220
- readonly file: string;
221
- readonly media_type: string;
222
- readonly name: string;
223
- readonly type: "image";
224
- } | {
225
- readonly marker: "compaction" | "job" | "mode" | "model" | "retry";
226
- readonly text: string;
227
- readonly type: "marker";
228
- } | {
229
- readonly text: string;
230
- readonly type: "reasoning";
231
- } | {
232
- readonly text: string;
233
- readonly type: "text";
234
- })[];
235
- readonly role: "assistant" | "house" | "user";
236
- readonly sender?: "conversation" | "customer" | "owner" | "report" | "requester" | "trigger";
237
- readonly source?: {
238
- readonly agent: {
239
- readonly id: string;
240
- readonly name: string;
241
- readonly url: string;
242
- };
243
- readonly approved_at?: string;
244
- readonly declined_at?: string;
245
- readonly kind: "mail";
246
- readonly owner: {
247
- readonly name: string;
248
- readonly user: string;
249
- };
250
- readonly request: string;
251
- readonly room: string;
252
- } | {
253
- readonly agent: {
254
- readonly id: string;
255
- readonly name: string;
256
- readonly url: string;
257
- };
258
- readonly conversation: {
259
- readonly id: string;
260
- readonly name: string;
261
- readonly url: string;
262
- };
263
- readonly kind: "conversation";
264
- } | {
265
- readonly agent: {
266
- readonly id: string;
267
- readonly name: string;
268
- readonly url: string;
269
- };
270
- readonly kind: "declined";
271
- readonly owner: {
272
- readonly name: string;
273
- readonly user: string;
274
- };
275
- readonly request: string;
276
- } | {
277
- readonly approved_at: null | string;
278
- readonly kind: "request";
279
- readonly request: string;
280
- readonly requester: {
281
- readonly name: string;
282
- readonly room: string;
283
- readonly url: string;
284
- } | {
285
- readonly name: string;
286
- readonly user: string;
287
- };
288
- readonly room: {
289
- readonly handle: string;
290
- readonly name: string;
291
- readonly ref: string;
292
- readonly url: string;
293
- };
294
- readonly routine: null | {
295
- readonly id: string;
296
- readonly name: string;
297
- readonly version: number;
298
- };
299
- } | {
300
- readonly kind: "trigger";
301
- readonly path: null | string;
302
- readonly room: {
303
- readonly handle: string;
304
- readonly name: string;
305
- readonly ref: string;
306
- readonly url: string;
307
- };
308
- readonly trigger: {
309
- readonly description: string;
310
- readonly id: string;
311
- };
312
- };
313
- readonly telegram_undelivered?: true;
314
- readonly text: string;
315
- readonly transcripts?: readonly {
316
- readonly path: string;
317
- readonly text: string;
318
- }[];
319
- readonly turn_id: null | string;
320
- readonly url?: string;
321
- readonly waiting?: true;
322
- }[];
323
- readonly next: null | {
324
- readonly accepted_at: string;
325
- readonly message_id: string;
326
- };
327
- readonly url: string;
328
- }[];
329
- };
193
+ readonly "conversations/history/list": {
194
+ readonly params: never;
195
+ readonly result: never;
330
196
  };
331
197
  readonly "conversations/interaction/answer": {
332
- readonly params: {
333
- readonly conversation_id: string;
334
- readonly interaction_id: string;
335
- readonly operation_id: string;
336
- readonly response: readonly unknown[] | boolean | null | number | {
337
- readonly [key: string]: unknown;
338
- } | string;
339
- };
340
- readonly result: {
341
- readonly agent_id: string;
342
- readonly authority: string;
343
- readonly conversation_id: string;
344
- readonly interaction_id: string;
345
- readonly log_epoch: string;
346
- readonly position: string;
347
- readonly url: string;
348
- };
198
+ readonly params: never;
199
+ readonly result: never;
349
200
  };
350
201
  readonly "conversations/interrupt": {
351
- readonly params: {
352
- readonly conversation_id: string;
353
- readonly operation_id: string;
354
- };
355
- readonly result: {
356
- readonly agent_id: string;
357
- readonly authority: string;
358
- readonly conversation_id: string;
359
- readonly log_epoch: string;
360
- readonly position: string;
361
- readonly url: string;
362
- };
202
+ readonly params: never;
203
+ readonly result: never;
363
204
  };
364
205
  readonly "conversations/kill": {
365
- readonly params: {
366
- readonly conversation_id: string;
367
- readonly operation_id: string;
368
- };
369
- readonly result: {
370
- readonly agent_id: string;
371
- readonly authority: string;
372
- readonly conversation_id: string;
373
- readonly log_epoch: string;
374
- readonly position: string;
375
- readonly url: string;
376
- };
206
+ readonly params: never;
207
+ readonly result: never;
377
208
  };
378
- readonly "conversations/option": {
379
- readonly params: {
380
- readonly conversation_id: string;
381
- readonly operation_id: string;
382
- readonly option: string;
383
- readonly value: boolean | string;
384
- };
385
- readonly result: {
386
- readonly agent_id: string;
387
- readonly authority: string;
388
- readonly conversation_id: string;
389
- readonly log_epoch: string;
390
- readonly position: string;
391
- readonly url: string;
392
- };
209
+ readonly "conversations/option/set": {
210
+ readonly params: never;
211
+ readonly result: never;
393
212
  };
394
213
  readonly "conversations/rename": {
395
- readonly params: {
396
- readonly conversation_id: string;
397
- readonly name: string;
398
- readonly operation_id: string;
399
- };
400
- readonly result: {
401
- readonly agent_id: string;
402
- readonly authority: string;
403
- readonly conversation_id: string;
404
- readonly log_epoch: string;
405
- readonly name: string;
406
- readonly position: string;
407
- readonly url: string;
408
- };
214
+ readonly params: never;
215
+ readonly result: never;
409
216
  };
410
217
  readonly "conversations/retry": {
411
- readonly params: {
412
- readonly conversation_id: string;
413
- readonly message_id: string;
414
- readonly operation_id: string;
415
- };
416
- readonly result: {
417
- readonly agent_id: string;
418
- readonly authority: string;
419
- readonly conversation_id: string;
420
- readonly log_epoch: string;
421
- readonly message_id: string;
422
- readonly position: string;
423
- readonly url: string;
424
- };
218
+ readonly params: never;
219
+ readonly result: never;
425
220
  };
426
221
  readonly "conversations/send": {
427
- readonly params: {
428
- readonly conversation_id: string;
429
- readonly operation_id: string;
430
- readonly text: string;
431
- };
432
- readonly result: {
433
- readonly agent_id: string;
434
- readonly authority: string;
435
- readonly conversation_id: string;
436
- readonly log_epoch: string;
437
- readonly message_id: string;
438
- readonly position: string;
439
- readonly url: string;
440
- };
222
+ readonly params: never;
223
+ readonly result: never;
441
224
  };
442
- readonly "records/read": {
225
+ readonly "conversations/take-out": {
226
+ readonly params: never;
227
+ readonly result: never;
228
+ };
229
+ readonly "records/list": {
443
230
  readonly params: {
444
- readonly cursor?: string;
445
- readonly limit?: number;
231
+ readonly operation_id?: string;
446
232
  readonly order?: "asc" | "desc";
447
233
  readonly room_ref: string;
448
234
  };
449
235
  readonly result: {
450
- readonly next_cursor?: string;
451
236
  readonly records: readonly {
452
237
  readonly body: null | string;
453
238
  readonly claimed: unknown;
@@ -457,10 +242,10 @@ export interface HouseMethods {
457
242
  }[];
458
243
  };
459
244
  };
460
- readonly "rooms/access/read": {
245
+ readonly "rooms/access/list": {
461
246
  readonly params: {
247
+ readonly operation_id?: string;
462
248
  readonly room_ref: string;
463
- readonly statistics?: boolean;
464
249
  };
465
250
  readonly result: {
466
251
  readonly authority: "administrator" | "member" | "owner";
@@ -469,45 +254,36 @@ export interface HouseMethods {
469
254
  readonly direct: readonly {
470
255
  readonly level: null | "keep" | "open" | "search";
471
256
  readonly namespace: string;
472
- readonly operations: readonly ("delete" | "export" | "manageAccess" | "write")[];
257
+ readonly operations: readonly ("erase" | "export" | "manageAccess" | "write")[];
473
258
  }[];
474
- readonly downloads_per_day?: number;
475
259
  readonly entries: readonly {
476
260
  readonly level: null | "keep" | "open" | "search";
477
261
  readonly namespace: string;
478
- readonly operations: readonly ("delete" | "export" | "manageAccess" | "write")[];
262
+ readonly operations: readonly ("erase" | "export" | "manageAccess" | "write")[];
479
263
  readonly sources: readonly {
480
264
  readonly kind: "direct" | "inherited";
481
265
  readonly level: null | "keep" | "open" | "search";
482
266
  readonly namespace: string;
483
- readonly operations: readonly ("delete" | "export" | "manageAccess" | "write")[];
267
+ readonly operations: readonly ("erase" | "export" | "manageAccess" | "write")[];
484
268
  }[];
485
269
  }[];
486
270
  readonly key: null | string;
487
- readonly requests_per_day?: number;
488
271
  readonly schema_roles: readonly string[];
272
+ readonly through_space?: true;
489
273
  readonly user: string;
490
274
  readonly user_name: string;
491
275
  }[];
492
276
  readonly namespaces: readonly string[];
493
277
  readonly owner: string;
494
278
  readonly room_ref: string;
495
- readonly statistics?: readonly {
496
- readonly day: string;
497
- readonly downloads: number;
498
- readonly requests: number;
499
- readonly text_bytes: number;
500
- readonly user: string;
501
- }[];
502
279
  readonly url: string;
503
280
  readonly viewer: string;
504
281
  };
505
282
  };
506
- readonly "rooms/members": {
283
+ readonly "rooms/members/list": {
507
284
  readonly params: {
508
- readonly cursor?: string;
509
285
  readonly history?: boolean;
510
- readonly limit?: number;
286
+ readonly operation_id?: string;
511
287
  readonly room_ref: string;
512
288
  };
513
289
  readonly result: {
@@ -517,21 +293,22 @@ export interface HouseMethods {
517
293
  readonly user: string;
518
294
  }[];
519
295
  readonly members: readonly {
520
- readonly access?: "edit" | "keep" | "manage" | "open" | "owner" | "search";
296
+ readonly access?: "manage" | "owner" | "read" | "write";
297
+ readonly copies?: "online_only" | "search_only";
521
298
  readonly display_name: string;
522
299
  readonly email?: string;
523
300
  readonly member_document: null | string;
524
- readonly only_while_online?: true;
525
301
  readonly owner: boolean;
526
302
  readonly schema_roles?: readonly string[];
527
303
  readonly since: null | string;
304
+ readonly through_space?: true;
528
305
  readonly user: string;
529
306
  }[];
530
- readonly next_cursor?: string;
531
307
  };
532
308
  };
533
309
  readonly "rooms/settings/processing/read": {
534
310
  readonly params: {
311
+ readonly operation_id?: string;
535
312
  readonly path: string;
536
313
  readonly room_ref: string;
537
314
  };
@@ -563,22 +340,7 @@ export interface HouseMethods {
563
340
  readonly writable: boolean;
564
341
  };
565
342
  };
566
- readonly "routines/requests": {
567
- readonly params: {
568
- readonly room_ref: string;
569
- };
570
- readonly result: {
571
- readonly current: readonly {
572
- readonly document: string;
573
- readonly name: string;
574
- }[];
575
- readonly history: readonly {
576
- readonly document: string;
577
- readonly name: string;
578
- }[];
579
- };
580
- };
581
- readonly "site/submission": {
343
+ readonly "sites/submissions/create": {
582
344
  readonly params: {
583
345
  readonly content: string;
584
346
  };
@@ -586,9 +348,11 @@ export interface HouseMethods {
586
348
  readonly submitted: true;
587
349
  };
588
350
  };
589
- readonly "storage/inventory": {
351
+ readonly "storage/inventory/read": {
590
352
  readonly params: {
353
+ readonly operation_id?: string;
591
354
  readonly room_ref?: string;
355
+ readonly rooms?: "owned";
592
356
  };
593
357
  readonly result: {
594
358
  readonly blob: {
@@ -599,19 +363,9 @@ export interface HouseMethods {
599
363
  readonly state: "settled";
600
364
  };
601
365
  readonly indexed_text: {
602
- readonly approximate_pages: null | string;
603
366
  readonly bytes: string;
604
367
  readonly gigabytes: string;
605
368
  };
606
- readonly measurement: {
607
- readonly page_reference: null | {
608
- readonly bytes_per_page: string;
609
- readonly encoding: string;
610
- readonly font: string;
611
- readonly font_size_pt: string;
612
- readonly layout: string;
613
- };
614
- };
615
369
  readonly room_ref: string;
616
370
  readonly total: {
617
371
  readonly bytes: string;
@@ -627,19 +381,28 @@ export interface HouseMethods {
627
381
  readonly state: "settled";
628
382
  };
629
383
  readonly indexed_text: {
630
- readonly approximate_pages: null | string;
631
384
  readonly bytes: string;
632
385
  readonly gigabytes: string;
633
386
  };
634
- readonly measurement: {
635
- readonly page_reference: null | {
636
- readonly bytes_per_page: string;
637
- readonly encoding: string;
638
- readonly font: string;
639
- readonly font_size_pt: string;
640
- readonly layout: string;
387
+ readonly rooms?: readonly {
388
+ readonly blob: {
389
+ readonly bytes: string;
390
+ readonly gigabytes: string;
641
391
  };
642
- };
392
+ readonly freshness: {
393
+ readonly state: "settled";
394
+ };
395
+ readonly indexed_text: {
396
+ readonly bytes: string;
397
+ readonly gigabytes: string;
398
+ };
399
+ readonly room_ref: string;
400
+ readonly total: {
401
+ readonly bytes: string;
402
+ readonly gigabytes: string;
403
+ };
404
+ readonly url: string;
405
+ }[];
643
406
  readonly site_images: {
644
407
  readonly bound: string;
645
408
  readonly bytes: string;
@@ -649,48 +412,23 @@ export interface HouseMethods {
649
412
  readonly bytes: string;
650
413
  readonly gigabytes: string;
651
414
  };
652
- } | {
653
- readonly blob: {
654
- readonly bytes: string;
655
- readonly gigabytes: string;
656
- };
657
- readonly freshness: {
658
- readonly state: "settled";
659
- };
660
- readonly indexed_text: {
661
- readonly approximate_pages: null | string;
662
- readonly bytes: string;
663
- readonly gigabytes: string;
664
- };
665
- readonly measurement: {
666
- readonly page_reference: null | {
667
- readonly bytes_per_page: string;
668
- readonly encoding: string;
669
- readonly font: string;
670
- readonly font_size_pt: string;
671
- readonly layout: string;
672
- };
673
- };
674
- readonly total: {
675
- readonly bytes: string;
676
- readonly gigabytes: string;
677
- };
678
415
  };
679
416
  };
680
- readonly "triggers/fired": {
417
+ readonly "triggers/fired/list": {
681
418
  readonly params: {
682
- readonly room_ref: string;
419
+ readonly operation_id?: string;
420
+ readonly room_ref?: string;
683
421
  };
684
422
  readonly result: {
685
423
  readonly events: readonly {
686
424
  readonly actions: readonly ({
687
- 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";
425
+ 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";
688
426
  readonly code: "cap_reached";
689
427
  readonly outcome: "refused";
690
428
  readonly position: number;
691
429
  readonly retry_at: string;
692
430
  } | {
693
- 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";
431
+ 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";
694
432
  readonly code: "cap_reached";
695
433
  readonly outcome: "refused";
696
434
  readonly position: number;
@@ -745,27 +483,31 @@ export interface HouseMethods {
745
483
  readonly value: string;
746
484
  } | {
747
485
  readonly code: "limit_reached";
748
- 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";
749
487
  readonly outcome: "refused";
750
488
  readonly position: number;
751
489
  readonly retry_at: string;
752
490
  } | {
753
491
  readonly code: "limit_reached";
754
- 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";
755
493
  readonly outcome: "refused";
756
494
  readonly position: number;
757
495
  } | {
758
- 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";
759
- readonly outcome: "no_target";
496
+ readonly code: "agent_function_request_not_started" | "internal_error";
497
+ readonly outcome: "failed";
760
498
  readonly position: number;
761
499
  } | {
762
- readonly code: "internal_error" | "routine_request_not_started";
763
- readonly outcome: "failed";
500
+ readonly code: "agent_function_retired" | "environment_offline" | "no_recipient" | "not_found" | "target_agent_unavailable";
501
+ readonly outcome: "no_target";
764
502
  readonly position: number;
765
503
  } | {
766
504
  readonly code: string;
767
505
  readonly outcome: "refused";
768
506
  readonly position: number;
507
+ } | {
508
+ readonly conversations: number;
509
+ readonly outcome: "marked";
510
+ readonly position: number;
769
511
  } | {
770
512
  readonly cut?: boolean;
771
513
  readonly exit_code?: number;
@@ -809,6 +551,7 @@ export interface HouseMethods {
809
551
  readonly missed?: "failed" | "skipped";
810
552
  readonly moment?: string;
811
553
  readonly path?: string;
554
+ readonly room_ref?: string;
812
555
  readonly trigger: string;
813
556
  readonly url?: string;
814
557
  }[];
@@ -835,7 +578,7 @@ export interface HouseCredentialState {
835
578
  readonly state: Open<'none' | 'held' | 'rejected'>;
836
579
  readonly expiresAt: number | null;
837
580
  }
838
- export type HouseDatabaseFailure = 'unsupported' | 'damaged';
581
+ export type HouseDatabaseFailure = 'damaged';
839
582
  export type HouseAnalyticsChoice = 'accept' | 'decline';
840
583
  export interface HouseAnalytics {
841
584
  readonly measures: boolean;
@@ -852,7 +595,6 @@ export interface HouseStatus {
852
595
  readonly sync: HouseSyncState | null;
853
596
  readonly refusal: {
854
597
  readonly code: string;
855
- readonly retryable: boolean;
856
598
  } | null;
857
599
  readonly loss: string | null;
858
600
  readonly database: Open<HouseDatabaseFailure> | null;
@@ -916,6 +658,11 @@ export interface HouseAppMessage {
916
658
  }
917
659
  export type HouseInstallation = Open<'accepted' | 'dismissed' | 'manual'>;
918
660
  export type HouseNotifications = Open<'on' | 'off' | 'blocked' | 'unavailable'>;
661
+ export interface HouseTelegram {
662
+ readonly state: Open<'available' | 'linked' | 'unavailable'>;
663
+ readonly name: string | null;
664
+ readonly username: string | null;
665
+ }
919
666
  export interface HouseCeremonyRefused extends Error {
920
667
  readonly name: 'HouseCeremonyRefused';
921
668
  readonly code: Open<'house_ceremony_refused'>;
@@ -935,7 +682,6 @@ export interface HouseBrowserRefused extends Error {
935
682
  export interface HouseCooperation {
936
683
  placed(): Promise<void> | void;
937
684
  }
938
- export type HouseChatWidth = 'full' | '3/4' | '1/2' | '1/3';
939
685
  export interface HouseChatOpened {
940
686
  readonly conversation: string | null;
941
687
  readonly agent: string | null;
@@ -943,8 +689,6 @@ export interface HouseChatOpened {
943
689
  export interface HouseChatOptions {
944
690
  readonly conversation?: string | null;
945
691
  readonly agent?: string | null;
946
- readonly showChats?: boolean;
947
- readonly width?: HouseChatWidth;
948
692
  readonly onOpen?: (opened: HouseChatOpened) => void;
949
693
  readonly onLink?: (href: string) => void;
950
694
  }
@@ -965,7 +709,7 @@ export interface HouseBridge {
965
709
  ceremony(path: string): Promise<never>;
966
710
  install(): Promise<HouseInstallation>;
967
711
  notifications(on?: boolean): Promise<HouseNotifications>;
968
- setBadge(unread: readonly string[]): Promise<void>;
712
+ telegram(link?: true): Promise<HouseTelegram>;
969
713
  setTab(tab: HouseTab): void;
970
714
  sourceTop(app: string, release?: string): Promise<HouseSourceTop | HouseRefusal | null>;
971
715
  sourceDownload(app: string, release?: string): Promise<HouseSourceDownload | HouseRefusal | null>;