@agentshouse/app-bridge 0.1.0-c895bda3a3f6a → 0.1.0-c8a196c36dc76

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 (119) hide show
  1. package/README.md +6 -6
  2. package/dist/index.d.ts +247 -407
  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 +24 -11
  6. package/dist/mdmodel/document.d.ts +14 -9
  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 +44 -15
  14. package/dist/mdmodel/indexed.d.ts +8 -0
  15. package/dist/mdmodel/kinds.d.ts +20 -0
  16. package/dist/mdmodel/markdown.d.ts +74 -0
  17. package/dist/mdmodel/media-type.d.ts +71 -0
  18. package/dist/mdmodel/moment.d.ts +6 -0
  19. package/dist/mdmodel/not-ready.d.ts +1 -0
  20. package/dist/mdmodel/paths.d.ts +15 -1
  21. package/dist/mdmodel/pattern.d.ts +9 -0
  22. package/dist/mdmodel/query/language.d.ts +254 -0
  23. package/dist/mdmodel/query/match.d.ts +13 -0
  24. package/dist/mdmodel/query/rows.d.ts +31 -0
  25. package/dist/mdmodel/query/sql.d.ts +42 -0
  26. package/dist/mdmodel/query/walk.d.ts +62 -0
  27. package/dist/mdmodel/references.d.ts +2 -2
  28. package/dist/mdmodel/reserved.d.ts +5 -0
  29. package/dist/mdmodel/room-types.d.ts +6 -0
  30. package/dist/mdmodel/types.d.ts +22 -22
  31. package/dist/mdmodel/validate.d.ts +12 -6
  32. package/dist/mdmodel/yaml.d.ts +4 -4
  33. package/dist/mdruntime/actions.d.ts +25 -0
  34. package/dist/mdruntime/adapter.d.ts +161 -81
  35. package/dist/mdruntime/attached-model.d.ts +6 -0
  36. package/dist/mdruntime/authored.d.ts +87 -0
  37. package/dist/mdruntime/bootstrap.d.ts +43 -0
  38. package/dist/mdruntime/cell.d.ts +5 -0
  39. package/dist/mdruntime/chain.d.ts +2 -1
  40. package/dist/mdruntime/change-set.d.ts +4 -0
  41. package/dist/mdruntime/change.d.ts +5 -0
  42. package/dist/mdruntime/client.d.ts +36 -23
  43. package/dist/mdruntime/collection.d.ts +27 -4
  44. package/dist/mdruntime/compile.d.ts +9 -7
  45. package/dist/mdruntime/conversation-live.d.ts +151 -0
  46. package/dist/mdruntime/conversation-row.d.ts +39 -0
  47. package/dist/mdruntime/conversation.d.ts +67 -46
  48. package/dist/mdruntime/declaration.d.ts +9 -0
  49. package/dist/mdruntime/durability.d.ts +20 -0
  50. package/dist/mdruntime/failure.d.ts +3 -0
  51. package/dist/mdruntime/figures.d.ts +48 -0
  52. package/dist/mdruntime/holdings.d.ts +28 -0
  53. package/dist/mdruntime/house-query.d.ts +14 -0
  54. package/dist/mdruntime/identity.d.ts +0 -1
  55. package/dist/mdruntime/install.d.ts +59 -0
  56. package/dist/mdruntime/listing.d.ts +59 -0
  57. package/dist/mdruntime/live.d.ts +24 -0
  58. package/dist/mdruntime/media.d.ts +19 -2
  59. package/dist/mdruntime/messages.d.ts +35 -5
  60. package/dist/mdruntime/modal.d.ts +1 -0
  61. package/dist/mdruntime/model.d.ts +6 -12
  62. package/dist/mdruntime/observation.d.ts +30 -13
  63. package/dist/mdruntime/opened.d.ts +1 -1
  64. package/dist/mdruntime/outcome.d.ts +17 -2
  65. package/dist/mdruntime/overlay.d.ts +7 -2
  66. package/dist/mdruntime/preparation.d.ts +45 -0
  67. package/dist/mdruntime/presence.d.ts +57 -0
  68. package/dist/mdruntime/query.d.ts +13 -211
  69. package/dist/mdruntime/reach.d.ts +25 -14
  70. package/dist/mdruntime/readiness.d.ts +20 -7
  71. package/dist/mdruntime/reads.d.ts +38 -0
  72. package/dist/mdruntime/recovery.d.ts +4 -1
  73. package/dist/mdruntime/refresh.d.ts +26 -0
  74. package/dist/mdruntime/replica.d.ts +11 -16
  75. package/dist/mdruntime/retried.d.ts +29 -0
  76. package/dist/mdruntime/room-draft.d.ts +33 -9
  77. package/dist/mdruntime/room-drafts.d.ts +23 -0
  78. package/dist/mdruntime/runtime.d.ts +34 -0
  79. package/dist/mdruntime/save.d.ts +42 -86
  80. package/dist/mdruntime/saves.d.ts +33 -0
  81. package/dist/mdruntime/search.d.ts +12 -63
  82. package/dist/mdruntime/seed.d.ts +11 -2
  83. package/dist/mdruntime/socket/admission.d.ts +6 -0
  84. package/dist/mdruntime/socket/answers.d.ts +5 -0
  85. package/dist/mdruntime/socket/lanes.d.ts +27 -0
  86. package/dist/mdruntime/socket/session.d.ts +40 -0
  87. package/dist/mdruntime/socket.d.ts +67 -0
  88. package/dist/mdruntime/source.d.ts +58 -0
  89. package/dist/mdruntime/status.d.ts +0 -2
  90. package/dist/mdruntime/store/installs.d.ts +29 -0
  91. package/dist/mdruntime/store/readiness.d.ts +10 -0
  92. package/dist/mdruntime/store/records.d.ts +226 -0
  93. package/dist/mdruntime/store/room-held.d.ts +7 -0
  94. package/dist/mdruntime/store/rooms-shown.d.ts +7 -0
  95. package/dist/mdruntime/store/space.d.ts +10 -0
  96. package/dist/mdruntime/store/watchers.d.ts +16 -0
  97. package/dist/mdruntime/store/writes.d.ts +23 -0
  98. package/dist/mdruntime/store.d.ts +116 -154
  99. package/dist/mdruntime/stored.d.ts +80 -69
  100. package/dist/mdruntime/surface.d.ts +93 -0
  101. package/dist/mdruntime/tables.d.ts +118 -93
  102. package/dist/mdruntime/tallies.d.ts +17 -0
  103. package/dist/mdruntime/transfer.d.ts +4 -0
  104. package/dist/mdruntime/wire.d.ts +81 -7
  105. package/dist/session-content/check.d.ts +17 -0
  106. package/dist/session-content/index.d.ts +6 -0
  107. package/dist/session-content/parts.d.ts +30 -0
  108. package/dist/session-content/state.d.ts +59 -0
  109. package/dist/session-content/turn.d.ts +137 -0
  110. package/dist/test-host.d.ts +8 -1
  111. package/dist/test-host.js +45 -2
  112. package/docs/families.md +78 -39
  113. package/package.json +2 -2
  114. package/dist/mdmodel/blocks.d.ts +0 -10
  115. package/dist/mdmodel/condition.d.ts +0 -180
  116. package/dist/mdmodel/links.d.ts +0 -28
  117. package/dist/mdmodel/profile.d.ts +0 -5
  118. package/dist/mdruntime/connection.d.ts +0 -153
  119. 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,332 +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
- };
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
- };
190
+ readonly params: never;
191
+ readonly result: never;
176
192
  };
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": {
443
- readonly params: {
444
- readonly order?: "asc" | "desc";
445
- readonly room_ref: string;
446
- };
447
- readonly result: {
448
- readonly records: readonly {
449
- readonly body: null | string;
450
- readonly claimed: unknown;
451
- readonly created_at: string;
452
- readonly record: string;
453
- readonly ref: string;
454
- }[];
455
- };
225
+ readonly "conversations/take-out": {
226
+ readonly params: never;
227
+ readonly result: never;
456
228
  };
457
- readonly "rooms/access/read": {
229
+ readonly "rooms/access/list": {
458
230
  readonly params: {
231
+ readonly operation_id?: string;
459
232
  readonly room_ref: string;
460
- readonly statistics?: boolean;
461
233
  };
462
234
  readonly result: {
463
235
  readonly authority: "administrator" | "member" | "owner";
@@ -466,66 +238,86 @@ export interface HouseMethods {
466
238
  readonly direct: readonly {
467
239
  readonly level: null | "keep" | "open" | "search";
468
240
  readonly namespace: string;
469
- readonly operations: readonly ("delete" | "export" | "manageAccess" | "write")[];
241
+ readonly operations: readonly ("erase" | "export" | "manageAccess" | "write")[];
470
242
  }[];
471
- readonly downloads_per_day?: number;
472
243
  readonly entries: readonly {
473
244
  readonly level: null | "keep" | "open" | "search";
474
245
  readonly namespace: string;
475
- readonly operations: readonly ("delete" | "export" | "manageAccess" | "write")[];
246
+ readonly operations: readonly ("erase" | "export" | "manageAccess" | "write")[];
476
247
  readonly sources: readonly {
477
248
  readonly kind: "direct" | "inherited";
478
249
  readonly level: null | "keep" | "open" | "search";
479
250
  readonly namespace: string;
480
- readonly operations: readonly ("delete" | "export" | "manageAccess" | "write")[];
251
+ readonly operations: readonly ("erase" | "export" | "manageAccess" | "write")[];
481
252
  }[];
482
253
  }[];
483
254
  readonly key: null | string;
484
- readonly requests_per_day?: number;
485
255
  readonly schema_roles: readonly string[];
256
+ readonly through_space?: true;
486
257
  readonly user: string;
487
258
  readonly user_name: string;
488
259
  }[];
489
260
  readonly namespaces: readonly string[];
490
261
  readonly owner: string;
491
262
  readonly room_ref: string;
492
- readonly statistics?: readonly {
493
- readonly day: string;
494
- readonly downloads: number;
495
- readonly requests: number;
496
- readonly text_bytes: number;
497
- readonly user: string;
498
- }[];
499
263
  readonly url: string;
500
264
  readonly viewer: string;
501
265
  };
502
266
  };
503
- readonly "rooms/members": {
267
+ readonly "rooms/members/list": {
504
268
  readonly params: {
505
269
  readonly history?: boolean;
270
+ readonly operation_id?: string;
506
271
  readonly room_ref: string;
507
272
  };
508
273
  readonly result: {
509
- readonly history?: readonly {
274
+ readonly history?: readonly ({
275
+ readonly access?: "manage" | "owner" | "read" | "write";
276
+ readonly agent_name?: string;
277
+ readonly approved_by?: string;
510
278
  readonly at: string;
511
- readonly kind: "granted" | "revoked";
279
+ readonly by?: string;
280
+ readonly copies?: "online_only" | "search_only";
281
+ readonly kind: "granted";
282
+ readonly share?: string;
512
283
  readonly user: string;
513
- }[];
284
+ } | {
285
+ readonly agent_name?: string;
286
+ readonly at: string;
287
+ readonly by?: string;
288
+ readonly kind: "revoked";
289
+ readonly user: string;
290
+ } | {
291
+ readonly agent_name?: string;
292
+ readonly at: string;
293
+ readonly by?: string;
294
+ readonly kind: "role_given" | "role_taken";
295
+ readonly role: string;
296
+ readonly user: string;
297
+ })[];
514
298
  readonly members: readonly {
515
- readonly access?: "edit" | "keep" | "manage" | "open" | "owner" | "search";
299
+ readonly access?: "manage" | "owner" | "read" | "write";
300
+ readonly copies?: "online_only" | "search_only";
516
301
  readonly display_name: string;
517
302
  readonly email?: string;
518
303
  readonly member_document: null | string;
519
- readonly only_while_online?: true;
520
304
  readonly owner: boolean;
521
305
  readonly schema_roles?: readonly string[];
306
+ readonly schema_roles_given?: readonly {
307
+ readonly agent_name?: string;
308
+ readonly at: string;
309
+ readonly by?: string;
310
+ readonly role: string;
311
+ }[];
522
312
  readonly since: null | string;
313
+ readonly through_space?: true;
523
314
  readonly user: string;
524
315
  }[];
525
316
  };
526
317
  };
527
318
  readonly "rooms/settings/processing/read": {
528
319
  readonly params: {
320
+ readonly operation_id?: string;
529
321
  readonly path: string;
530
322
  readonly room_ref: string;
531
323
  };
@@ -551,28 +343,42 @@ export interface HouseMethods {
551
343
  readonly policy: {
552
344
  readonly from: null | string;
553
345
  readonly origin: "default" | "explicit" | "inherited";
554
- readonly reason: null | "room_too_large" | "unfunded";
346
+ readonly reason: null | "full_house_required" | "room_too_large";
555
347
  readonly value: "Off" | "On";
556
348
  };
557
349
  readonly writable: boolean;
558
350
  };
559
351
  };
560
- readonly "routines/requests": {
352
+ readonly "service-keys/signatures/check": {
561
353
  readonly params: {
354
+ readonly operation_id?: string;
355
+ readonly origin: string;
562
356
  readonly room_ref: string;
357
+ readonly signature: string;
358
+ readonly text: string;
563
359
  };
564
360
  readonly result: {
565
- readonly current: readonly {
566
- readonly document: string;
567
- readonly name: string;
568
- }[];
569
- readonly history: readonly {
570
- readonly document: string;
571
- readonly name: string;
572
- }[];
361
+ readonly matched: boolean;
362
+ };
363
+ };
364
+ readonly "sites/functions/call": {
365
+ readonly params: {
366
+ readonly function: string;
367
+ readonly input?: readonly (readonly unknown[] | boolean | null | number | {
368
+ readonly [key: string]: unknown;
369
+ } | string)[] | boolean | null | number | {
370
+ readonly [key: string]: readonly unknown[] | boolean | null | number | {
371
+ readonly [key: string]: unknown;
372
+ } | string;
373
+ } | string;
374
+ };
375
+ readonly result: {
376
+ readonly answer: readonly unknown[] | boolean | null | number | {
377
+ readonly [key: string]: unknown;
378
+ } | string;
573
379
  };
574
380
  };
575
- readonly "site/submission": {
381
+ readonly "sites/submissions/create": {
576
382
  readonly params: {
577
383
  readonly content: string;
578
384
  };
@@ -580,9 +386,11 @@ export interface HouseMethods {
580
386
  readonly submitted: true;
581
387
  };
582
388
  };
583
- readonly "storage/inventory": {
389
+ readonly "storage/inventory/read": {
584
390
  readonly params: {
391
+ readonly operation_id?: string;
585
392
  readonly room_ref?: string;
393
+ readonly rooms?: "owned";
586
394
  };
587
395
  readonly result: {
588
396
  readonly blob: {
@@ -593,19 +401,9 @@ export interface HouseMethods {
593
401
  readonly state: "settled";
594
402
  };
595
403
  readonly indexed_text: {
596
- readonly approximate_pages: null | string;
597
404
  readonly bytes: string;
598
405
  readonly gigabytes: string;
599
406
  };
600
- readonly measurement: {
601
- readonly page_reference: null | {
602
- readonly bytes_per_page: string;
603
- readonly encoding: string;
604
- readonly font: string;
605
- readonly font_size_pt: string;
606
- readonly layout: string;
607
- };
608
- };
609
407
  readonly room_ref: string;
610
408
  readonly total: {
611
409
  readonly bytes: string;
@@ -621,19 +419,28 @@ export interface HouseMethods {
621
419
  readonly state: "settled";
622
420
  };
623
421
  readonly indexed_text: {
624
- readonly approximate_pages: null | string;
625
422
  readonly bytes: string;
626
423
  readonly gigabytes: string;
627
424
  };
628
- readonly measurement: {
629
- readonly page_reference: null | {
630
- readonly bytes_per_page: string;
631
- readonly encoding: string;
632
- readonly font: string;
633
- readonly font_size_pt: string;
634
- readonly layout: string;
425
+ readonly rooms?: readonly {
426
+ readonly blob: {
427
+ readonly bytes: string;
428
+ readonly gigabytes: string;
635
429
  };
636
- };
430
+ readonly freshness: {
431
+ readonly state: "settled";
432
+ };
433
+ readonly indexed_text: {
434
+ readonly bytes: string;
435
+ readonly gigabytes: string;
436
+ };
437
+ readonly room_ref: string;
438
+ readonly total: {
439
+ readonly bytes: string;
440
+ readonly gigabytes: string;
441
+ };
442
+ readonly url: string;
443
+ }[];
637
444
  readonly site_images: {
638
445
  readonly bound: string;
639
446
  readonly bytes: string;
@@ -643,51 +450,37 @@ export interface HouseMethods {
643
450
  readonly bytes: string;
644
451
  readonly gigabytes: string;
645
452
  };
646
- } | {
647
- readonly blob: {
648
- readonly bytes: string;
649
- readonly gigabytes: string;
650
- };
651
- readonly freshness: {
652
- readonly state: "settled";
653
- };
654
- readonly indexed_text: {
655
- readonly approximate_pages: null | string;
656
- readonly bytes: string;
657
- readonly gigabytes: string;
658
- };
659
- readonly measurement: {
660
- readonly page_reference: null | {
661
- readonly bytes_per_page: string;
662
- readonly encoding: string;
663
- readonly font: string;
664
- readonly font_size_pt: string;
665
- readonly layout: string;
666
- };
667
- };
668
- readonly total: {
669
- readonly bytes: string;
670
- readonly gigabytes: string;
671
- };
672
453
  };
673
454
  };
674
- readonly "triggers/fired": {
455
+ readonly "triggers/fired/list": {
675
456
  readonly params: {
676
- readonly room_ref: string;
457
+ readonly operation_id?: string;
458
+ readonly room_ref?: string;
677
459
  };
678
460
  readonly result: {
679
461
  readonly events: readonly {
680
462
  readonly actions: readonly ({
681
- 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" | "spaces" | "waiting_web_wizards" | "writes";
463
+ 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";
682
464
  readonly code: "cap_reached";
683
465
  readonly outcome: "refused";
684
466
  readonly position: number;
685
467
  readonly retry_at: string;
686
468
  } | {
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" | "spaces" | "waiting_web_wizards" | "writes";
469
+ 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
470
  readonly code: "cap_reached";
689
471
  readonly outcome: "refused";
690
472
  readonly position: number;
473
+ } | {
474
+ readonly code: "agent_function_request_not_started";
475
+ readonly final?: true;
476
+ readonly outcome: "failed";
477
+ readonly position: number;
478
+ } | {
479
+ readonly code: "agent_function_unreadable";
480
+ readonly document_path: string;
481
+ readonly final: true;
482
+ readonly outcome: "failed";
483
+ readonly position: number;
691
484
  } | {
692
485
  readonly code: "agent_unavailable";
693
486
  readonly outcome: "withdrawn";
@@ -715,6 +508,11 @@ export interface HouseMethods {
715
508
  readonly outcome: "failed";
716
509
  readonly position: number;
717
510
  readonly tries: number;
511
+ } | {
512
+ readonly code: "internal_error";
513
+ readonly final: true;
514
+ readonly outcome: "failed";
515
+ readonly position: number;
718
516
  } | {
719
517
  readonly code: "limit_reached";
720
518
  readonly limit: "reads";
@@ -739,22 +537,23 @@ export interface HouseMethods {
739
537
  readonly value: string;
740
538
  } | {
741
539
  readonly code: "limit_reached";
742
- readonly limit: "custom_domains" | "external_calls" | "mcp_downloads" | "mcp_reads" | "publish_data" | "site_submissions" | "sites";
540
+ readonly limit: "custom_domains" | "external_calls" | "publish_data" | "site_function_calls" | "sites";
743
541
  readonly outcome: "refused";
744
542
  readonly position: number;
745
543
  readonly retry_at: string;
746
544
  } | {
747
545
  readonly code: "limit_reached";
748
- readonly limit: "custom_domains" | "external_calls" | "mcp_downloads" | "mcp_reads" | "publish_data" | "site_submissions" | "sites";
546
+ readonly limit: "custom_domains" | "external_calls" | "publish_data" | "site_function_calls" | "sites";
749
547
  readonly outcome: "refused";
750
548
  readonly position: number;
751
549
  } | {
752
- 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";
753
- readonly outcome: "no_target";
550
+ readonly code: "post_not_confirmed";
551
+ readonly final: true;
552
+ readonly outcome: "failed";
754
553
  readonly position: number;
755
554
  } | {
756
- readonly code: "internal_error" | "routine_request_not_started";
757
- readonly outcome: "failed";
555
+ readonly code: "agent_function_retired" | "environment_offline" | "no_group" | "no_recipient" | "not_found" | "target_agent_unavailable";
556
+ readonly outcome: "no_target";
758
557
  readonly position: number;
759
558
  } | {
760
559
  readonly code: string;
@@ -771,6 +570,10 @@ export interface HouseMethods {
771
570
  readonly output?: string;
772
571
  readonly position: number;
773
572
  readonly run: string;
573
+ } | {
574
+ readonly mentioned: number;
575
+ readonly outcome: "posted";
576
+ readonly position: number;
774
577
  } | {
775
578
  readonly outcome: "continued";
776
579
  readonly position: number;
@@ -807,6 +610,7 @@ export interface HouseMethods {
807
610
  readonly missed?: "failed" | "skipped";
808
611
  readonly moment?: string;
809
612
  readonly path?: string;
613
+ readonly room_ref?: string;
810
614
  readonly trigger: string;
811
615
  readonly url?: string;
812
616
  }[];
@@ -833,7 +637,7 @@ export interface HouseCredentialState {
833
637
  readonly state: Open<'none' | 'held' | 'rejected'>;
834
638
  readonly expiresAt: number | null;
835
639
  }
836
- export type HouseDatabaseFailure = 'unsupported' | 'damaged';
640
+ export type HouseDatabaseFailure = 'damaged';
837
641
  export type HouseAnalyticsChoice = 'accept' | 'decline';
838
642
  export interface HouseAnalytics {
839
643
  readonly measures: boolean;
@@ -850,7 +654,6 @@ export interface HouseStatus {
850
654
  readonly sync: HouseSyncState | null;
851
655
  readonly refusal: {
852
656
  readonly code: string;
853
- readonly retryable: boolean;
854
657
  } | null;
855
658
  readonly loss: string | null;
856
659
  readonly database: Open<HouseDatabaseFailure> | null;
@@ -862,6 +665,7 @@ export type HouseNavigationMode = 'push' | 'replace';
862
665
  export interface HouseTab {
863
666
  readonly title?: string;
864
667
  readonly icon?: string;
668
+ readonly scheme?: 'light' | 'dark' | null;
865
669
  }
866
670
  interface HouseRelease {
867
671
  readonly app_ref: string;
@@ -912,8 +716,26 @@ export interface HouseAppMessage {
912
716
  readonly from: string;
913
717
  readonly body: unknown;
914
718
  }
915
- export type HouseInstallation = Open<'accepted' | 'dismissed' | 'manual'>;
719
+ export interface HouseBox {
720
+ readonly x: number;
721
+ readonly y: number;
722
+ readonly width: number;
723
+ readonly height: number;
724
+ }
725
+ export interface HouseTitleRow {
726
+ readonly height: number;
727
+ readonly controls: readonly HouseBox[];
728
+ }
916
729
  export type HouseNotifications = Open<'on' | 'off' | 'blocked' | 'unavailable'>;
730
+ export interface HouseTelegram {
731
+ readonly state: Open<'available' | 'linked' | 'unavailable'>;
732
+ readonly name: string | null;
733
+ readonly username: string | null;
734
+ }
735
+ export interface HouseCeremonyEnded {
736
+ readonly said: string | null;
737
+ readonly done: boolean;
738
+ }
917
739
  export interface HouseCeremonyRefused extends Error {
918
740
  readonly name: 'HouseCeremonyRefused';
919
741
  readonly code: Open<'house_ceremony_refused'>;
@@ -933,7 +755,6 @@ export interface HouseBrowserRefused extends Error {
933
755
  export interface HouseCooperation {
934
756
  placed(): Promise<void> | void;
935
757
  }
936
- export type HouseChatWidth = 'full' | '3/4' | '1/2' | '1/3';
937
758
  export interface HouseChatOpened {
938
759
  readonly conversation: string | null;
939
760
  readonly agent: string | null;
@@ -941,8 +762,6 @@ export interface HouseChatOpened {
941
762
  export interface HouseChatOptions {
942
763
  readonly conversation?: string | null;
943
764
  readonly agent?: string | null;
944
- readonly showChats?: boolean;
945
- readonly width?: HouseChatWidth;
946
765
  readonly onOpen?: (opened: HouseChatOpened) => void;
947
766
  readonly onLink?: (href: string) => void;
948
767
  }
@@ -950,20 +769,41 @@ export interface HouseMountedChat {
950
769
  update(options: HouseChatOptions): void;
951
770
  unmount(): void;
952
771
  }
772
+ export interface HouseChatButtonOptions {
773
+ readonly onOpen?: (opened: HouseChatOpened) => void;
774
+ readonly onLink?: (href: string) => void;
775
+ }
776
+ export interface HouseChatButtonMount extends HouseChatButtonOptions {
777
+ readonly agent?: string | null;
778
+ }
779
+ export interface HouseChatTarget {
780
+ readonly conversation?: string | null;
781
+ readonly agent?: string | null;
782
+ readonly docked?: boolean;
783
+ }
784
+ export interface HouseChatButton {
785
+ open(target?: HouseChatTarget): void;
786
+ hide(): void;
787
+ update(options: HouseChatButtonOptions): void;
788
+ unmount(): void;
789
+ }
953
790
  export interface HouseChat {
954
791
  mount(element: object, options?: HouseChatOptions): Promise<HouseMountedChat>;
792
+ mountButton(options?: HouseChatButtonMount): Promise<HouseChatButton>;
955
793
  }
956
794
  export interface HouseBridge {
957
795
  readonly runtime: Promise<HouseRuntime>;
958
796
  readonly chat: HouseChat;
959
797
  address(): string | null;
960
798
  onAddress(listener: (address: string) => void): () => void;
799
+ cameFrom(): string | null;
961
800
  push(address: string): Promise<string>;
962
801
  replace(address: string): Promise<string>;
963
- ceremony(path: string): Promise<never>;
964
- install(): Promise<HouseInstallation>;
802
+ ceremony(path: string): Promise<HouseCeremonyEnded>;
803
+ onTitleBar(listener: (area: HouseBox | null) => void): () => void;
804
+ setTitleBar(row: HouseTitleRow | null): void;
965
805
  notifications(on?: boolean): Promise<HouseNotifications>;
966
- setBadge(unread: readonly string[]): Promise<void>;
806
+ telegram(link?: true): Promise<HouseTelegram>;
967
807
  setTab(tab: HouseTab): void;
968
808
  sourceTop(app: string, release?: string): Promise<HouseSourceTop | HouseRefusal | null>;
969
809
  sourceDownload(app: string, release?: string): Promise<HouseSourceDownload | HouseRefusal | null>;