@agentshouse/app-bridge 0.1.0-c3aff7d33e077 → 0.1.0-c3ee7fcd01608

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 +2 -2
  2. package/dist/index.d.ts +173 -422
  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 +23 -10
  6. package/dist/mdmodel/document.d.ts +14 -8
  7. package/dist/mdmodel/event.d.ts +1 -2
  8. package/dist/mdmodel/fields.d.ts +1 -1
  9. package/dist/mdmodel/house-model.d.ts +869 -0
  10. package/dist/mdmodel/house-references/crockford.d.ts +3 -0
  11. package/dist/mdmodel/house-references/patterns.d.ts +8 -0
  12. package/dist/mdmodel/index.d.ts +31 -15
  13. package/dist/mdmodel/indexed.d.ts +8 -0
  14. package/dist/mdmodel/kinds.d.ts +4 -2
  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/query/language.d.ts +2 -1
  21. package/dist/mdmodel/query/match.d.ts +1 -1
  22. package/dist/mdmodel/query/rows.d.ts +1 -1
  23. package/dist/mdmodel/query/sql.d.ts +5 -1
  24. package/dist/mdmodel/query/walk.d.ts +62 -0
  25. package/dist/mdmodel/references.d.ts +2 -2
  26. package/dist/mdmodel/reserved.d.ts +1 -0
  27. package/dist/mdmodel/room-types.d.ts +6 -0
  28. package/dist/mdmodel/types.d.ts +11 -17
  29. package/dist/mdmodel/validate.d.ts +6 -2
  30. package/dist/mdmodel/yaml.d.ts +4 -4
  31. package/dist/mdruntime/actions.d.ts +8 -2
  32. package/dist/mdruntime/adapter.d.ts +120 -57
  33. package/dist/mdruntime/attached-model.d.ts +0 -1
  34. package/dist/mdruntime/authored.d.ts +87 -0
  35. package/dist/mdruntime/bootstrap.d.ts +1 -1
  36. package/dist/mdruntime/change-set.d.ts +4 -0
  37. package/dist/mdruntime/change.d.ts +4 -0
  38. package/dist/mdruntime/client.d.ts +19 -21
  39. package/dist/mdruntime/collection.d.ts +26 -4
  40. package/dist/mdruntime/compile.d.ts +2 -0
  41. package/dist/mdruntime/conversation-live.d.ts +28 -12
  42. package/dist/mdruntime/conversation-row.d.ts +8 -1
  43. package/dist/mdruntime/conversation.d.ts +37 -12
  44. package/dist/mdruntime/declaration.d.ts +9 -0
  45. package/dist/mdruntime/durability.d.ts +5 -0
  46. package/dist/mdruntime/failure.d.ts +3 -0
  47. package/dist/mdruntime/figures.d.ts +1 -0
  48. package/dist/mdruntime/house-query.d.ts +14 -0
  49. package/dist/mdruntime/install.d.ts +10 -6
  50. package/dist/mdruntime/listing.d.ts +29 -22
  51. package/dist/mdruntime/live.d.ts +5 -3
  52. package/dist/mdruntime/media.d.ts +19 -2
  53. package/dist/mdruntime/messages.d.ts +12 -6
  54. package/dist/mdruntime/modal.d.ts +1 -0
  55. package/dist/mdruntime/model.d.ts +4 -3
  56. package/dist/mdruntime/observation.d.ts +29 -12
  57. package/dist/mdruntime/opened.d.ts +1 -1
  58. package/dist/mdruntime/outcome.d.ts +13 -1
  59. package/dist/mdruntime/overlay.d.ts +6 -2
  60. package/dist/mdruntime/preparation.d.ts +33 -7
  61. package/dist/mdruntime/presence.d.ts +57 -0
  62. package/dist/mdruntime/query.d.ts +0 -1
  63. package/dist/mdruntime/reach.d.ts +15 -6
  64. package/dist/mdruntime/readiness.d.ts +20 -5
  65. package/dist/mdruntime/reads.d.ts +4 -2
  66. package/dist/mdruntime/recovery.d.ts +4 -1
  67. package/dist/mdruntime/replica.d.ts +5 -10
  68. package/dist/mdruntime/retried.d.ts +29 -0
  69. package/dist/mdruntime/room-draft.d.ts +31 -8
  70. package/dist/mdruntime/runtime.d.ts +11 -19
  71. package/dist/mdruntime/save.d.ts +42 -88
  72. package/dist/mdruntime/saves.d.ts +4 -40
  73. package/dist/mdruntime/socket/lanes.d.ts +12 -4
  74. package/dist/mdruntime/socket/session.d.ts +4 -2
  75. package/dist/mdruntime/socket.d.ts +4 -6
  76. package/dist/mdruntime/source.d.ts +5 -7
  77. package/dist/mdruntime/store/installs.d.ts +2 -2
  78. package/dist/mdruntime/store/readiness.d.ts +5 -4
  79. package/dist/mdruntime/store/records.d.ts +23 -8
  80. package/dist/mdruntime/store/rooms-shown.d.ts +7 -0
  81. package/dist/mdruntime/store/space.d.ts +1 -1
  82. package/dist/mdruntime/store.d.ts +26 -16
  83. package/dist/mdruntime/stored.d.ts +33 -15
  84. package/dist/mdruntime/surface.d.ts +12 -6
  85. package/dist/mdruntime/tables.d.ts +19 -58
  86. package/dist/mdruntime/wire.d.ts +66 -7
  87. package/dist/session-content/check.d.ts +17 -0
  88. package/dist/session-content/index.d.ts +6 -0
  89. package/dist/session-content/parts.d.ts +30 -0
  90. package/dist/session-content/state.d.ts +59 -0
  91. package/dist/session-content/turn.d.ts +137 -0
  92. package/dist/test-host.d.ts +8 -1
  93. package/dist/test-host.js +44 -1
  94. package/docs/families.md +61 -33
  95. package/package.json +2 -2
  96. package/dist/mdmodel/blocks.d.ts +0 -10
  97. package/dist/mdmodel/links.d.ts +0 -28
  98. package/dist/mdmodel/profile.d.ts +0 -5
  99. package/dist/mdruntime/job.d.ts +0 -32
  100. package/dist/mdruntime/log.d.ts +0 -5
  101. package/dist/mdruntime/socket/rooms.d.ts +0 -42
  102. package/dist/mdruntime/store/fences.d.ts +0 -15
  103. package/dist/mdruntime/turn.d.ts +0 -8
package/dist/index.d.ts CHANGED
@@ -1,7 +1,12 @@
1
1
  import type { MdRuntimeClient, Open } from './mdruntime/client.js';
2
2
  export interface HouseMethods {
3
+ readonly "agent-functions/decide": {
4
+ readonly params: never;
5
+ readonly result: never;
6
+ };
3
7
  readonly "agent-functions/requests/list": {
4
8
  readonly params: {
9
+ readonly operation_id?: string;
5
10
  readonly room_ref: string;
6
11
  };
7
12
  readonly result: {
@@ -16,7 +21,9 @@ export interface HouseMethods {
16
21
  };
17
22
  };
18
23
  readonly "apps/features/list": {
19
- readonly params: {};
24
+ readonly params: {
25
+ readonly operation_id?: string;
26
+ };
20
27
  readonly result: {
21
28
  readonly features: readonly {
22
29
  readonly allowed: boolean;
@@ -25,7 +32,9 @@ export interface HouseMethods {
25
32
  };
26
33
  };
27
34
  readonly "apps/holders/list": {
28
- readonly params: {};
35
+ readonly params: {
36
+ readonly operation_id?: string;
37
+ };
29
38
  readonly result: {
30
39
  readonly holders: readonly {
31
40
  readonly name: string;
@@ -36,6 +45,7 @@ export interface HouseMethods {
36
45
  readonly "apps/messages/send": {
37
46
  readonly params: {
38
47
  readonly body: unknown;
48
+ readonly operation_id?: string;
39
49
  readonly to: string;
40
50
  };
41
51
  readonly result: {
@@ -44,7 +54,7 @@ export interface HouseMethods {
44
54
  };
45
55
  readonly "apps/relay/read": {
46
56
  readonly params: {
47
- readonly [key: string]: never;
57
+ readonly operation_id?: string;
48
58
  };
49
59
  readonly result: {
50
60
  readonly expires_at: string;
@@ -57,6 +67,7 @@ export interface HouseMethods {
57
67
  };
58
68
  readonly "apps/ring": {
59
69
  readonly params: {
70
+ readonly operation_id?: string;
60
71
  readonly to: string;
61
72
  };
62
73
  readonly result: {
@@ -72,7 +83,7 @@ export interface HouseMethods {
72
83
  } | {
73
84
  readonly user: string;
74
85
  };
75
- readonly operation_id: string;
86
+ readonly operation_id?: string;
76
87
  readonly path: string;
77
88
  readonly room_ref: string;
78
89
  };
@@ -98,7 +109,7 @@ export interface HouseMethods {
98
109
  };
99
110
  readonly "chats/reply": {
100
111
  readonly params: {
101
- readonly operation_id: string;
112
+ readonly operation_id?: string;
102
113
  readonly path: string;
103
114
  readonly room_ref: string;
104
115
  readonly template?: {
@@ -121,6 +132,7 @@ export interface HouseMethods {
121
132
  };
122
133
  readonly "chats/return": {
123
134
  readonly params: {
135
+ readonly operation_id?: string;
124
136
  readonly path: string;
125
137
  readonly room_ref: string;
126
138
  };
@@ -146,7 +158,7 @@ export interface HouseMethods {
146
158
  };
147
159
  readonly "chats/take-control": {
148
160
  readonly params: {
149
- readonly operation_id: string;
161
+ readonly operation_id?: string;
150
162
  readonly path: string;
151
163
  readonly room_ref: string;
152
164
  };
@@ -171,341 +183,52 @@ export interface HouseMethods {
171
183
  };
172
184
  };
173
185
  readonly "conversations/create": {
174
- readonly params: {
175
- readonly agent_id: string;
176
- readonly operation_id: string;
177
- };
178
- readonly result: {
179
- readonly agent_id: string;
180
- readonly authority: string;
181
- readonly conversation_id: string;
182
- readonly log_epoch: string;
183
- readonly position: string;
184
- readonly url: string;
185
- };
186
+ readonly params: never;
187
+ readonly result: never;
186
188
  };
187
189
  readonly "conversations/delete": {
188
- readonly params: {
189
- readonly conversation_id: string;
190
- readonly operation_id: string;
191
- };
192
- readonly result: {
193
- readonly authority: string;
194
- readonly conversation_id: string;
195
- readonly log_epoch: string;
196
- readonly outcome: "deleted";
197
- readonly position: string;
198
- };
199
- };
200
- readonly "conversations/end": {
201
- readonly params: {
202
- readonly conversation_id: string;
203
- readonly operation_id: string;
204
- };
205
- readonly result: {
206
- readonly agent_id: string;
207
- readonly authority: string;
208
- readonly conversation_id: string;
209
- readonly jobs: readonly {
210
- readonly name: string;
211
- readonly running_since: string;
212
- }[];
213
- readonly log_epoch: string;
214
- readonly position: string;
215
- readonly url: string;
216
- };
190
+ readonly params: never;
191
+ readonly result: never;
217
192
  };
218
193
  readonly "conversations/history/list": {
219
- readonly params: {
220
- readonly conversations: readonly {
221
- readonly after?: {
222
- readonly accepted_at: string;
223
- readonly message_id: string;
224
- };
225
- readonly conversation_id: string;
226
- }[];
227
- readonly limit?: number;
228
- };
229
- readonly result: {
230
- readonly histories: readonly {
231
- readonly agent_id: string;
232
- readonly conversation_id: string;
233
- readonly messages: readonly {
234
- readonly accepted_at: string;
235
- readonly context: null | {
236
- readonly used: number;
237
- readonly window: number;
238
- };
239
- readonly conversation_id: string;
240
- readonly failure: null | string;
241
- readonly message_id: string;
242
- readonly parts: readonly ({
243
- readonly command: string;
244
- readonly target: null | string;
245
- readonly type: "message";
246
- } | {
247
- readonly count: number;
248
- readonly type: "commands";
249
- } | {
250
- readonly description: string;
251
- readonly result: null | string;
252
- readonly status: "done" | "running";
253
- readonly type: "subagent";
254
- } | {
255
- readonly entries: readonly {
256
- readonly content: string;
257
- readonly status: string;
258
- }[];
259
- readonly type: "plan";
260
- } | {
261
- readonly file: string;
262
- readonly media_type: string;
263
- readonly name: string;
264
- readonly type: "image";
265
- } | {
266
- readonly marker: "compaction" | "job" | "mode" | "model" | "retry";
267
- readonly text: string;
268
- readonly type: "marker";
269
- } | {
270
- readonly text: string;
271
- readonly type: "reasoning";
272
- } | {
273
- readonly text: string;
274
- readonly type: "text";
275
- })[];
276
- readonly role: "assistant" | "house" | "user";
277
- readonly sender?: "conversation" | "customer" | "owner" | "replier" | "report" | "requester" | "trigger";
278
- readonly source?: {
279
- readonly agent: {
280
- readonly id: string;
281
- readonly name: string;
282
- readonly url: string;
283
- };
284
- readonly approved_at?: string;
285
- readonly declined_at?: string;
286
- readonly kind: "mail";
287
- readonly owner: {
288
- readonly name: string;
289
- readonly user: string;
290
- };
291
- readonly request: string;
292
- readonly room: string;
293
- } | {
294
- readonly agent: {
295
- readonly id: string;
296
- readonly name: string;
297
- readonly url: string;
298
- };
299
- readonly conversation: {
300
- readonly id: string;
301
- readonly name: string;
302
- readonly url: string;
303
- };
304
- readonly kind: "conversation";
305
- } | {
306
- readonly agent: {
307
- readonly id: string;
308
- readonly name: string;
309
- readonly url: string;
310
- };
311
- readonly kind: "declined";
312
- readonly owner: {
313
- readonly name: string;
314
- readonly user: string;
315
- };
316
- readonly request: string;
317
- } | {
318
- readonly agent_function: null | {
319
- readonly id: string;
320
- readonly name: string;
321
- readonly version: number;
322
- };
323
- readonly approved_at: null | string;
324
- readonly kind: "request";
325
- readonly request: string;
326
- readonly requester: {
327
- readonly name: string;
328
- readonly room: string;
329
- readonly url: string;
330
- } | {
331
- readonly name: string;
332
- readonly user: string;
333
- };
334
- readonly room: {
335
- readonly handle: string;
336
- readonly name: string;
337
- readonly ref: string;
338
- readonly url: string;
339
- };
340
- } | {
341
- readonly kind: "reply";
342
- readonly name: string;
343
- } | {
344
- readonly kind: "trigger";
345
- readonly path: null | string;
346
- readonly room: {
347
- readonly handle: string;
348
- readonly name: string;
349
- readonly ref: string;
350
- readonly url: string;
351
- };
352
- readonly trigger: {
353
- readonly description: string;
354
- readonly id: string;
355
- };
356
- };
357
- readonly telegram_undelivered?: true;
358
- readonly text: string;
359
- readonly tokens?: {
360
- readonly cache_read: number;
361
- readonly cache_write: number;
362
- readonly input: number;
363
- readonly output: number;
364
- };
365
- readonly transcripts?: readonly {
366
- readonly path: string;
367
- readonly text: string;
368
- }[];
369
- readonly turn_id: null | string;
370
- readonly url?: string;
371
- readonly waiting?: true;
372
- }[];
373
- readonly next: null | {
374
- readonly accepted_at: string;
375
- readonly message_id: string;
376
- };
377
- readonly url: string;
378
- }[];
379
- };
194
+ readonly params: never;
195
+ readonly result: never;
380
196
  };
381
197
  readonly "conversations/interaction/answer": {
382
- readonly params: {
383
- readonly conversation_id: string;
384
- readonly interaction_id: string;
385
- readonly operation_id: string;
386
- readonly response: readonly unknown[] | boolean | null | number | {
387
- readonly [key: string]: unknown;
388
- } | string;
389
- };
390
- readonly result: {
391
- readonly agent_id: string;
392
- readonly authority: string;
393
- readonly conversation_id: string;
394
- readonly interaction_id: string;
395
- readonly log_epoch: string;
396
- readonly position: string;
397
- readonly url: string;
398
- };
198
+ readonly params: never;
199
+ readonly result: never;
399
200
  };
400
201
  readonly "conversations/interrupt": {
401
- readonly params: {
402
- readonly conversation_id: string;
403
- readonly operation_id: string;
404
- };
405
- readonly result: {
406
- readonly agent_id: string;
407
- readonly authority: string;
408
- readonly conversation_id: string;
409
- readonly log_epoch: string;
410
- readonly position: string;
411
- readonly url: string;
412
- };
202
+ readonly params: never;
203
+ readonly result: never;
413
204
  };
414
205
  readonly "conversations/kill": {
415
- readonly params: {
416
- readonly conversation_id: string;
417
- readonly operation_id: string;
418
- };
419
- readonly result: {
420
- readonly agent_id: string;
421
- readonly authority: string;
422
- readonly conversation_id: string;
423
- readonly log_epoch: string;
424
- readonly position: string;
425
- readonly url: string;
426
- };
206
+ readonly params: never;
207
+ readonly result: never;
427
208
  };
428
209
  readonly "conversations/option/set": {
429
- readonly params: {
430
- readonly conversation_id: string;
431
- readonly operation_id: string;
432
- readonly option: string;
433
- readonly value: boolean | string;
434
- };
435
- readonly result: {
436
- readonly agent_id: string;
437
- readonly authority: string;
438
- readonly conversation_id: string;
439
- readonly log_epoch: string;
440
- readonly position: string;
441
- readonly url: string;
442
- };
210
+ readonly params: never;
211
+ readonly result: never;
443
212
  };
444
213
  readonly "conversations/rename": {
445
- readonly params: {
446
- readonly conversation_id: string;
447
- readonly name: string;
448
- readonly operation_id: string;
449
- };
450
- readonly result: {
451
- readonly agent_id: string;
452
- readonly authority: string;
453
- readonly conversation_id: string;
454
- readonly log_epoch: string;
455
- readonly name: string;
456
- readonly position: string;
457
- readonly url: string;
458
- };
214
+ readonly params: never;
215
+ readonly result: never;
459
216
  };
460
217
  readonly "conversations/retry": {
461
- readonly params: {
462
- readonly conversation_id: string;
463
- readonly message_id: string;
464
- readonly operation_id: string;
465
- };
466
- readonly result: {
467
- readonly agent_id: string;
468
- readonly authority: string;
469
- readonly conversation_id: string;
470
- readonly log_epoch: string;
471
- readonly message_id: string;
472
- readonly position: string;
473
- readonly url: string;
474
- };
218
+ readonly params: never;
219
+ readonly result: never;
475
220
  };
476
221
  readonly "conversations/send": {
477
- readonly params: {
478
- readonly conversation_id: string;
479
- readonly operation_id: string;
480
- readonly text: string;
481
- };
482
- readonly result: {
483
- readonly agent_id: string;
484
- readonly authority: string;
485
- readonly conversation_id: string;
486
- readonly log_epoch: string;
487
- readonly message_id: string;
488
- readonly position: string;
489
- readonly url: string;
490
- };
222
+ readonly params: never;
223
+ readonly result: never;
491
224
  };
492
- readonly "records/list": {
493
- readonly params: {
494
- readonly order?: "asc" | "desc";
495
- readonly room_ref: string;
496
- };
497
- readonly result: {
498
- readonly records: readonly {
499
- readonly body: null | string;
500
- readonly claimed: unknown;
501
- readonly created_at: string;
502
- readonly record: string;
503
- readonly ref: string;
504
- }[];
505
- };
225
+ readonly "conversations/take-out": {
226
+ readonly params: never;
227
+ readonly result: never;
506
228
  };
507
229
  readonly "rooms/access/list": {
508
230
  readonly params: {
231
+ readonly operation_id?: string;
509
232
  readonly room_ref: string;
510
233
  };
511
234
  readonly result: {
@@ -544,14 +267,37 @@ export interface HouseMethods {
544
267
  readonly "rooms/members/list": {
545
268
  readonly params: {
546
269
  readonly history?: boolean;
270
+ readonly operation_id?: string;
547
271
  readonly room_ref: string;
548
272
  };
549
273
  readonly result: {
550
- readonly history?: readonly {
274
+ readonly history?: readonly ({
275
+ readonly access?: "manage" | "owner" | "read" | "write";
276
+ readonly agent_name?: string;
277
+ readonly approved_by?: string;
551
278
  readonly at: string;
552
- readonly kind: "granted" | "revoked";
279
+ readonly by?: string;
280
+ readonly copies?: "online_only" | "search_only";
281
+ readonly kind: "granted";
282
+ readonly share?: string;
283
+ readonly through_space?: true;
553
284
  readonly user: string;
554
- }[];
285
+ } | {
286
+ readonly agent_name?: string;
287
+ readonly at: string;
288
+ readonly by?: string;
289
+ readonly kind: "revoked";
290
+ readonly through_space?: true;
291
+ readonly user: string;
292
+ } | {
293
+ readonly agent_name?: string;
294
+ readonly at: string;
295
+ readonly by?: string;
296
+ readonly kind: "role_given" | "role_taken";
297
+ readonly role: string;
298
+ readonly through_space?: true;
299
+ readonly user: string;
300
+ })[];
555
301
  readonly members: readonly {
556
302
  readonly access?: "manage" | "owner" | "read" | "write";
557
303
  readonly copies?: "online_only" | "search_only";
@@ -560,6 +306,12 @@ export interface HouseMethods {
560
306
  readonly member_document: null | string;
561
307
  readonly owner: boolean;
562
308
  readonly schema_roles?: readonly string[];
309
+ readonly schema_roles_given?: readonly {
310
+ readonly agent_name?: string;
311
+ readonly at: string;
312
+ readonly by?: string;
313
+ readonly role: string;
314
+ }[];
563
315
  readonly since: null | string;
564
316
  readonly through_space?: true;
565
317
  readonly user: string;
@@ -568,6 +320,7 @@ export interface HouseMethods {
568
320
  };
569
321
  readonly "rooms/settings/processing/read": {
570
322
  readonly params: {
323
+ readonly operation_id?: string;
571
324
  readonly path: string;
572
325
  readonly room_ref: string;
573
326
  };
@@ -593,12 +346,41 @@ export interface HouseMethods {
593
346
  readonly policy: {
594
347
  readonly from: null | string;
595
348
  readonly origin: "default" | "explicit" | "inherited";
596
- readonly reason: null | "room_too_large" | "unfunded";
349
+ readonly reason: null | "full_house_required" | "room_too_large";
597
350
  readonly value: "Off" | "On";
598
351
  };
599
352
  readonly writable: boolean;
600
353
  };
601
354
  };
355
+ readonly "service-keys/signatures/check": {
356
+ readonly params: {
357
+ readonly operation_id?: string;
358
+ readonly origin: string;
359
+ readonly room_ref: string;
360
+ readonly signature: string;
361
+ readonly text: string;
362
+ };
363
+ readonly result: {
364
+ readonly matched: boolean;
365
+ };
366
+ };
367
+ readonly "sites/functions/call": {
368
+ readonly params: {
369
+ readonly function: string;
370
+ readonly input?: readonly (readonly unknown[] | boolean | null | number | {
371
+ readonly [key: string]: unknown;
372
+ } | string)[] | boolean | null | number | {
373
+ readonly [key: string]: readonly unknown[] | boolean | null | number | {
374
+ readonly [key: string]: unknown;
375
+ } | string;
376
+ } | string;
377
+ };
378
+ readonly result: {
379
+ readonly answer: readonly unknown[] | boolean | null | number | {
380
+ readonly [key: string]: unknown;
381
+ } | string;
382
+ };
383
+ };
602
384
  readonly "sites/submissions/create": {
603
385
  readonly params: {
604
386
  readonly content: string;
@@ -609,6 +391,7 @@ export interface HouseMethods {
609
391
  };
610
392
  readonly "storage/inventory/read": {
611
393
  readonly params: {
394
+ readonly operation_id?: string;
612
395
  readonly room_ref?: string;
613
396
  readonly rooms?: "owned";
614
397
  };
@@ -621,19 +404,9 @@ export interface HouseMethods {
621
404
  readonly state: "settled";
622
405
  };
623
406
  readonly indexed_text: {
624
- readonly approximate_pages: null | string;
625
407
  readonly bytes: string;
626
408
  readonly gigabytes: string;
627
409
  };
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;
635
- };
636
- };
637
410
  readonly room_ref: string;
638
411
  readonly total: {
639
412
  readonly bytes: string;
@@ -649,19 +422,9 @@ export interface HouseMethods {
649
422
  readonly state: "settled";
650
423
  };
651
424
  readonly indexed_text: {
652
- readonly approximate_pages: null | string;
653
425
  readonly bytes: string;
654
426
  readonly gigabytes: string;
655
427
  };
656
- readonly measurement: {
657
- readonly page_reference: null | {
658
- readonly bytes_per_page: string;
659
- readonly encoding: string;
660
- readonly font: string;
661
- readonly font_size_pt: string;
662
- readonly layout: string;
663
- };
664
- };
665
428
  readonly rooms?: readonly {
666
429
  readonly blob: {
667
430
  readonly bytes: string;
@@ -671,19 +434,9 @@ export interface HouseMethods {
671
434
  readonly state: "settled";
672
435
  };
673
436
  readonly indexed_text: {
674
- readonly approximate_pages: null | string;
675
437
  readonly bytes: string;
676
438
  readonly gigabytes: string;
677
439
  };
678
- readonly measurement: {
679
- readonly page_reference: null | {
680
- readonly bytes_per_page: string;
681
- readonly encoding: string;
682
- readonly font: string;
683
- readonly font_size_pt: string;
684
- readonly layout: string;
685
- };
686
- };
687
440
  readonly room_ref: string;
688
441
  readonly total: {
689
442
  readonly bytes: string;
@@ -700,65 +453,11 @@ export interface HouseMethods {
700
453
  readonly bytes: string;
701
454
  readonly gigabytes: string;
702
455
  };
703
- } | {
704
- readonly blob: {
705
- readonly bytes: string;
706
- readonly gigabytes: string;
707
- };
708
- readonly freshness: {
709
- readonly state: "settled";
710
- };
711
- readonly indexed_text: {
712
- readonly approximate_pages: null | string;
713
- readonly bytes: string;
714
- readonly gigabytes: string;
715
- };
716
- readonly measurement: {
717
- readonly page_reference: null | {
718
- readonly bytes_per_page: string;
719
- readonly encoding: string;
720
- readonly font: string;
721
- readonly font_size_pt: string;
722
- readonly layout: string;
723
- };
724
- };
725
- readonly rooms?: readonly {
726
- readonly blob: {
727
- readonly bytes: string;
728
- readonly gigabytes: string;
729
- };
730
- readonly freshness: {
731
- readonly state: "settled";
732
- };
733
- readonly indexed_text: {
734
- readonly approximate_pages: null | string;
735
- readonly bytes: string;
736
- readonly gigabytes: string;
737
- };
738
- readonly measurement: {
739
- readonly page_reference: null | {
740
- readonly bytes_per_page: string;
741
- readonly encoding: string;
742
- readonly font: string;
743
- readonly font_size_pt: string;
744
- readonly layout: string;
745
- };
746
- };
747
- readonly room_ref: string;
748
- readonly total: {
749
- readonly bytes: string;
750
- readonly gigabytes: string;
751
- };
752
- readonly url: string;
753
- }[];
754
- readonly total: {
755
- readonly bytes: string;
756
- readonly gigabytes: string;
757
- };
758
456
  };
759
457
  };
760
458
  readonly "triggers/fired/list": {
761
459
  readonly params: {
460
+ readonly operation_id?: string;
762
461
  readonly room_ref?: string;
763
462
  };
764
463
  readonly result: {
@@ -774,6 +473,17 @@ export interface HouseMethods {
774
473
  readonly code: "cap_reached";
775
474
  readonly outcome: "refused";
776
475
  readonly position: number;
476
+ } | {
477
+ readonly code: "agent_function_request_not_started";
478
+ readonly final?: true;
479
+ readonly outcome: "failed";
480
+ readonly position: number;
481
+ } | {
482
+ readonly code: "agent_function_unreadable";
483
+ readonly document_path: string;
484
+ readonly final: true;
485
+ readonly outcome: "failed";
486
+ readonly position: number;
777
487
  } | {
778
488
  readonly code: "agent_unavailable";
779
489
  readonly outcome: "withdrawn";
@@ -801,6 +511,11 @@ export interface HouseMethods {
801
511
  readonly outcome: "failed";
802
512
  readonly position: number;
803
513
  readonly tries: number;
514
+ } | {
515
+ readonly code: "internal_error";
516
+ readonly final: true;
517
+ readonly outcome: "failed";
518
+ readonly position: number;
804
519
  } | {
805
520
  readonly code: "limit_reached";
806
521
  readonly limit: "reads";
@@ -825,22 +540,23 @@ export interface HouseMethods {
825
540
  readonly value: string;
826
541
  } | {
827
542
  readonly code: "limit_reached";
828
- readonly limit: "custom_domains" | "external_calls" | "publish_data" | "sites";
543
+ readonly limit: "custom_domains" | "external_calls" | "publish_data" | "site_function_calls" | "sites";
829
544
  readonly outcome: "refused";
830
545
  readonly position: number;
831
546
  readonly retry_at: string;
832
547
  } | {
833
548
  readonly code: "limit_reached";
834
- readonly limit: "custom_domains" | "external_calls" | "publish_data" | "sites";
549
+ readonly limit: "custom_domains" | "external_calls" | "publish_data" | "site_function_calls" | "sites";
835
550
  readonly outcome: "refused";
836
551
  readonly position: number;
837
552
  } | {
838
- readonly code: "agent_function_not_found" | "agent_function_retired" | "app_function_not_found" | "app_not_found" | "environment_function_not_found" | "environment_offline" | "no_recipient" | "target_agent_unavailable";
839
- readonly outcome: "no_target";
553
+ readonly code: "post_not_confirmed";
554
+ readonly final: true;
555
+ readonly outcome: "failed";
840
556
  readonly position: number;
841
557
  } | {
842
- readonly code: "agent_function_request_not_started" | "internal_error";
843
- readonly outcome: "failed";
558
+ readonly code: "agent_function_retired" | "environment_offline" | "no_group" | "no_recipient" | "not_found" | "target_agent_unavailable";
559
+ readonly outcome: "no_target";
844
560
  readonly position: number;
845
561
  } | {
846
562
  readonly code: string;
@@ -857,6 +573,10 @@ export interface HouseMethods {
857
573
  readonly output?: string;
858
574
  readonly position: number;
859
575
  readonly run: string;
576
+ } | {
577
+ readonly mentioned: number;
578
+ readonly outcome: "posted";
579
+ readonly position: number;
860
580
  } | {
861
581
  readonly outcome: "continued";
862
582
  readonly position: number;
@@ -920,7 +640,7 @@ export interface HouseCredentialState {
920
640
  readonly state: Open<'none' | 'held' | 'rejected'>;
921
641
  readonly expiresAt: number | null;
922
642
  }
923
- export type HouseDatabaseFailure = 'unsupported' | 'damaged';
643
+ export type HouseDatabaseFailure = 'damaged';
924
644
  export type HouseAnalyticsChoice = 'accept' | 'decline';
925
645
  export interface HouseAnalytics {
926
646
  readonly measures: boolean;
@@ -937,7 +657,6 @@ export interface HouseStatus {
937
657
  readonly sync: HouseSyncState | null;
938
658
  readonly refusal: {
939
659
  readonly code: string;
940
- readonly retryable: boolean;
941
660
  } | null;
942
661
  readonly loss: string | null;
943
662
  readonly database: Open<HouseDatabaseFailure> | null;
@@ -949,6 +668,7 @@ export type HouseNavigationMode = 'push' | 'replace';
949
668
  export interface HouseTab {
950
669
  readonly title?: string;
951
670
  readonly icon?: string;
671
+ readonly scheme?: 'light' | 'dark' | null;
952
672
  }
953
673
  interface HouseRelease {
954
674
  readonly app_ref: string;
@@ -999,13 +719,26 @@ export interface HouseAppMessage {
999
719
  readonly from: string;
1000
720
  readonly body: unknown;
1001
721
  }
1002
- export type HouseInstallation = Open<'accepted' | 'dismissed' | 'manual'>;
722
+ export interface HouseBox {
723
+ readonly x: number;
724
+ readonly y: number;
725
+ readonly width: number;
726
+ readonly height: number;
727
+ }
728
+ export interface HouseTitleRow {
729
+ readonly height: number;
730
+ readonly controls: readonly HouseBox[];
731
+ }
1003
732
  export type HouseNotifications = Open<'on' | 'off' | 'blocked' | 'unavailable'>;
1004
733
  export interface HouseTelegram {
1005
734
  readonly state: Open<'available' | 'linked' | 'unavailable'>;
1006
735
  readonly name: string | null;
1007
736
  readonly username: string | null;
1008
737
  }
738
+ export interface HouseCeremonyEnded {
739
+ readonly said: string | null;
740
+ readonly done: boolean;
741
+ }
1009
742
  export interface HouseCeremonyRefused extends Error {
1010
743
  readonly name: 'HouseCeremonyRefused';
1011
744
  readonly code: Open<'house_ceremony_refused'>;
@@ -1025,7 +758,6 @@ export interface HouseBrowserRefused extends Error {
1025
758
  export interface HouseCooperation {
1026
759
  placed(): Promise<void> | void;
1027
760
  }
1028
- export type HouseChatWidth = 'full' | '3/4' | '1/2' | '1/3';
1029
761
  export interface HouseChatOpened {
1030
762
  readonly conversation: string | null;
1031
763
  readonly agent: string | null;
@@ -1033,8 +765,6 @@ export interface HouseChatOpened {
1033
765
  export interface HouseChatOptions {
1034
766
  readonly conversation?: string | null;
1035
767
  readonly agent?: string | null;
1036
- readonly showChats?: boolean;
1037
- readonly width?: HouseChatWidth;
1038
768
  readonly onOpen?: (opened: HouseChatOpened) => void;
1039
769
  readonly onLink?: (href: string) => void;
1040
770
  }
@@ -1042,18 +772,39 @@ export interface HouseMountedChat {
1042
772
  update(options: HouseChatOptions): void;
1043
773
  unmount(): void;
1044
774
  }
775
+ export interface HouseChatButtonOptions {
776
+ readonly onOpen?: (opened: HouseChatOpened) => void;
777
+ readonly onLink?: (href: string) => void;
778
+ }
779
+ export interface HouseChatButtonMount extends HouseChatButtonOptions {
780
+ readonly agent?: string | null;
781
+ }
782
+ export interface HouseChatTarget {
783
+ readonly conversation?: string | null;
784
+ readonly agent?: string | null;
785
+ readonly docked?: boolean;
786
+ }
787
+ export interface HouseChatButton {
788
+ open(target?: HouseChatTarget): void;
789
+ hide(): void;
790
+ update(options: HouseChatButtonOptions): void;
791
+ unmount(): void;
792
+ }
1045
793
  export interface HouseChat {
1046
794
  mount(element: object, options?: HouseChatOptions): Promise<HouseMountedChat>;
795
+ mountButton(options?: HouseChatButtonMount): Promise<HouseChatButton>;
1047
796
  }
1048
797
  export interface HouseBridge {
1049
798
  readonly runtime: Promise<HouseRuntime>;
1050
799
  readonly chat: HouseChat;
1051
800
  address(): string | null;
1052
801
  onAddress(listener: (address: string) => void): () => void;
802
+ cameFrom(): string | null;
1053
803
  push(address: string): Promise<string>;
1054
804
  replace(address: string): Promise<string>;
1055
- ceremony(path: string): Promise<never>;
1056
- install(): Promise<HouseInstallation>;
805
+ ceremony(path: string): Promise<HouseCeremonyEnded>;
806
+ onTitleBar(listener: (area: HouseBox | null) => void): () => void;
807
+ setTitleBar(row: HouseTitleRow | null): void;
1057
808
  notifications(on?: boolean): Promise<HouseNotifications>;
1058
809
  telegram(link?: true): Promise<HouseTelegram>;
1059
810
  setTab(tab: HouseTab): void;