@agentshouse/app-bridge 0.1.0-cf304386b60e3 → 0.1.0-cf41e8755eebb
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.
- package/README.md +2 -2
- package/dist/index.d.ts +157 -421
- package/dist/mdmodel/body.d.ts +84 -0
- package/dist/mdmodel/built-in.d.ts +3 -0
- package/dist/mdmodel/definition.d.ts +23 -10
- package/dist/mdmodel/document.d.ts +13 -8
- package/dist/mdmodel/event.d.ts +3 -4
- package/dist/mdmodel/fields.d.ts +1 -1
- package/dist/mdmodel/house-model.d.ts +869 -0
- package/dist/mdmodel/house-references/crockford.d.ts +3 -0
- package/dist/mdmodel/house-references/patterns.d.ts +8 -0
- package/dist/mdmodel/index.d.ts +32 -16
- package/dist/mdmodel/indexed.d.ts +8 -0
- package/dist/mdmodel/kinds.d.ts +4 -2
- package/dist/mdmodel/markdown.d.ts +74 -0
- package/dist/mdmodel/media-type.d.ts +71 -0
- package/dist/mdmodel/moment.d.ts +6 -0
- package/dist/mdmodel/not-ready.d.ts +1 -0
- package/dist/mdmodel/paths.d.ts +15 -1
- package/dist/mdmodel/query/language.d.ts +2 -1
- package/dist/mdmodel/query/match.d.ts +1 -1
- package/dist/mdmodel/query/rows.d.ts +1 -1
- package/dist/mdmodel/query/sql.d.ts +5 -1
- package/dist/mdmodel/query/walk.d.ts +62 -0
- package/dist/mdmodel/references.d.ts +2 -2
- package/dist/mdmodel/reserved.d.ts +1 -0
- package/dist/mdmodel/room-types.d.ts +6 -0
- package/dist/mdmodel/types.d.ts +11 -17
- package/dist/mdmodel/validate.d.ts +6 -2
- package/dist/mdmodel/yaml.d.ts +4 -4
- package/dist/mdruntime/actions.d.ts +25 -0
- package/dist/mdruntime/adapter.d.ts +123 -57
- package/dist/mdruntime/attached-model.d.ts +0 -1
- package/dist/mdruntime/authored.d.ts +87 -0
- package/dist/mdruntime/bootstrap.d.ts +1 -1
- package/dist/mdruntime/cell.d.ts +5 -0
- package/dist/mdruntime/change-set.d.ts +4 -0
- package/dist/mdruntime/change.d.ts +4 -0
- package/dist/mdruntime/client.d.ts +25 -22
- package/dist/mdruntime/collection.d.ts +26 -4
- package/dist/mdruntime/compile.d.ts +2 -0
- package/dist/mdruntime/conversation-live.d.ts +151 -0
- package/dist/mdruntime/conversation-row.d.ts +8 -1
- package/dist/mdruntime/conversation.d.ts +57 -45
- package/dist/mdruntime/declaration.d.ts +9 -0
- package/dist/mdruntime/durability.d.ts +14 -0
- package/dist/mdruntime/failure.d.ts +3 -0
- package/dist/mdruntime/figures.d.ts +1 -0
- package/dist/mdruntime/holdings.d.ts +28 -0
- package/dist/mdruntime/house-query.d.ts +14 -0
- package/dist/mdruntime/install.d.ts +59 -0
- package/dist/mdruntime/listing.d.ts +59 -0
- package/dist/mdruntime/live.d.ts +5 -3
- package/dist/mdruntime/media.d.ts +19 -2
- package/dist/mdruntime/messages.d.ts +12 -6
- package/dist/mdruntime/modal.d.ts +1 -0
- package/dist/mdruntime/model.d.ts +4 -3
- package/dist/mdruntime/observation.d.ts +29 -12
- package/dist/mdruntime/opened.d.ts +1 -1
- package/dist/mdruntime/outcome.d.ts +16 -2
- package/dist/mdruntime/overlay.d.ts +6 -2
- package/dist/mdruntime/preparation.d.ts +45 -0
- package/dist/mdruntime/presence.d.ts +57 -0
- package/dist/mdruntime/query.d.ts +0 -1
- package/dist/mdruntime/reach.d.ts +16 -5
- package/dist/mdruntime/readiness.d.ts +20 -5
- package/dist/mdruntime/reads.d.ts +5 -2
- package/dist/mdruntime/recovery.d.ts +4 -1
- package/dist/mdruntime/replica.d.ts +5 -10
- package/dist/mdruntime/retried.d.ts +29 -0
- package/dist/mdruntime/room-draft.d.ts +31 -8
- package/dist/mdruntime/room-drafts.d.ts +7 -12
- package/dist/mdruntime/runtime.d.ts +34 -0
- package/dist/mdruntime/save.d.ts +42 -86
- package/dist/mdruntime/saves.d.ts +8 -70
- package/dist/mdruntime/seed.d.ts +3 -8
- package/dist/mdruntime/socket/lanes.d.ts +27 -0
- package/dist/mdruntime/socket/session.d.ts +40 -0
- package/dist/mdruntime/socket.d.ts +30 -5
- package/dist/mdruntime/source.d.ts +5 -7
- package/dist/mdruntime/store/installs.d.ts +2 -2
- package/dist/mdruntime/store/readiness.d.ts +10 -0
- package/dist/mdruntime/store/records.d.ts +23 -8
- package/dist/mdruntime/store/rooms-shown.d.ts +7 -0
- package/dist/mdruntime/store/space.d.ts +10 -0
- package/dist/mdruntime/store/watchers.d.ts +2 -0
- package/dist/mdruntime/store.d.ts +49 -9
- package/dist/mdruntime/stored.d.ts +33 -15
- package/dist/mdruntime/{connection.d.ts → surface.d.ts} +31 -67
- package/dist/mdruntime/tables.d.ts +28 -59
- package/dist/mdruntime/wire.d.ts +68 -8
- package/dist/session-content/check.d.ts +17 -0
- package/dist/session-content/index.d.ts +6 -0
- package/dist/session-content/parts.d.ts +30 -0
- package/dist/session-content/state.d.ts +59 -0
- package/dist/session-content/turn.d.ts +137 -0
- package/dist/test-host.d.ts +8 -1
- package/dist/test-host.js +44 -1
- package/docs/families.md +61 -33
- package/package.json +2 -2
- package/dist/mdmodel/blocks.d.ts +0 -10
- package/dist/mdmodel/links.d.ts +0 -28
- package/dist/mdmodel/profile.d.ts +0 -5
- package/dist/mdruntime/job.d.ts +0 -32
- package/dist/mdruntime/log.d.ts +0 -5
- package/dist/mdruntime/store/fences.d.ts +0 -15
- 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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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 "
|
|
493
|
-
readonly params:
|
|
494
|
-
|
|
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,22 @@ 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 agent_name?: string;
|
|
276
|
+
readonly at: string;
|
|
277
|
+
readonly by?: string;
|
|
278
|
+
readonly kind: "role_given" | "role_taken";
|
|
279
|
+
readonly role: string;
|
|
280
|
+
readonly user: string;
|
|
281
|
+
} | {
|
|
551
282
|
readonly at: string;
|
|
552
283
|
readonly kind: "granted" | "revoked";
|
|
553
284
|
readonly user: string;
|
|
554
|
-
}[];
|
|
285
|
+
})[];
|
|
555
286
|
readonly members: readonly {
|
|
556
287
|
readonly access?: "manage" | "owner" | "read" | "write";
|
|
557
288
|
readonly copies?: "online_only" | "search_only";
|
|
@@ -560,6 +291,12 @@ export interface HouseMethods {
|
|
|
560
291
|
readonly member_document: null | string;
|
|
561
292
|
readonly owner: boolean;
|
|
562
293
|
readonly schema_roles?: readonly string[];
|
|
294
|
+
readonly schema_roles_given?: readonly {
|
|
295
|
+
readonly agent_name?: string;
|
|
296
|
+
readonly at: string;
|
|
297
|
+
readonly by?: string;
|
|
298
|
+
readonly role: string;
|
|
299
|
+
}[];
|
|
563
300
|
readonly since: null | string;
|
|
564
301
|
readonly through_space?: true;
|
|
565
302
|
readonly user: string;
|
|
@@ -568,6 +305,7 @@ export interface HouseMethods {
|
|
|
568
305
|
};
|
|
569
306
|
readonly "rooms/settings/processing/read": {
|
|
570
307
|
readonly params: {
|
|
308
|
+
readonly operation_id?: string;
|
|
571
309
|
readonly path: string;
|
|
572
310
|
readonly room_ref: string;
|
|
573
311
|
};
|
|
@@ -593,12 +331,41 @@ export interface HouseMethods {
|
|
|
593
331
|
readonly policy: {
|
|
594
332
|
readonly from: null | string;
|
|
595
333
|
readonly origin: "default" | "explicit" | "inherited";
|
|
596
|
-
readonly reason: null | "
|
|
334
|
+
readonly reason: null | "full_house_required" | "room_too_large";
|
|
597
335
|
readonly value: "Off" | "On";
|
|
598
336
|
};
|
|
599
337
|
readonly writable: boolean;
|
|
600
338
|
};
|
|
601
339
|
};
|
|
340
|
+
readonly "service-keys/signatures/check": {
|
|
341
|
+
readonly params: {
|
|
342
|
+
readonly operation_id?: string;
|
|
343
|
+
readonly origin: string;
|
|
344
|
+
readonly room_ref: string;
|
|
345
|
+
readonly signature: string;
|
|
346
|
+
readonly text: string;
|
|
347
|
+
};
|
|
348
|
+
readonly result: {
|
|
349
|
+
readonly matched: boolean;
|
|
350
|
+
};
|
|
351
|
+
};
|
|
352
|
+
readonly "sites/functions/call": {
|
|
353
|
+
readonly params: {
|
|
354
|
+
readonly function: string;
|
|
355
|
+
readonly input?: readonly (readonly unknown[] | boolean | null | number | {
|
|
356
|
+
readonly [key: string]: unknown;
|
|
357
|
+
} | string)[] | boolean | null | number | {
|
|
358
|
+
readonly [key: string]: readonly unknown[] | boolean | null | number | {
|
|
359
|
+
readonly [key: string]: unknown;
|
|
360
|
+
} | string;
|
|
361
|
+
} | string;
|
|
362
|
+
};
|
|
363
|
+
readonly result: {
|
|
364
|
+
readonly answer: readonly unknown[] | boolean | null | number | {
|
|
365
|
+
readonly [key: string]: unknown;
|
|
366
|
+
} | string;
|
|
367
|
+
};
|
|
368
|
+
};
|
|
602
369
|
readonly "sites/submissions/create": {
|
|
603
370
|
readonly params: {
|
|
604
371
|
readonly content: string;
|
|
@@ -609,6 +376,7 @@ export interface HouseMethods {
|
|
|
609
376
|
};
|
|
610
377
|
readonly "storage/inventory/read": {
|
|
611
378
|
readonly params: {
|
|
379
|
+
readonly operation_id?: string;
|
|
612
380
|
readonly room_ref?: string;
|
|
613
381
|
readonly rooms?: "owned";
|
|
614
382
|
};
|
|
@@ -621,19 +389,9 @@ export interface HouseMethods {
|
|
|
621
389
|
readonly state: "settled";
|
|
622
390
|
};
|
|
623
391
|
readonly indexed_text: {
|
|
624
|
-
readonly approximate_pages: null | string;
|
|
625
392
|
readonly bytes: string;
|
|
626
393
|
readonly gigabytes: string;
|
|
627
394
|
};
|
|
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
395
|
readonly room_ref: string;
|
|
638
396
|
readonly total: {
|
|
639
397
|
readonly bytes: string;
|
|
@@ -649,19 +407,9 @@ export interface HouseMethods {
|
|
|
649
407
|
readonly state: "settled";
|
|
650
408
|
};
|
|
651
409
|
readonly indexed_text: {
|
|
652
|
-
readonly approximate_pages: null | string;
|
|
653
410
|
readonly bytes: string;
|
|
654
411
|
readonly gigabytes: string;
|
|
655
412
|
};
|
|
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
413
|
readonly rooms?: readonly {
|
|
666
414
|
readonly blob: {
|
|
667
415
|
readonly bytes: string;
|
|
@@ -671,19 +419,9 @@ export interface HouseMethods {
|
|
|
671
419
|
readonly state: "settled";
|
|
672
420
|
};
|
|
673
421
|
readonly indexed_text: {
|
|
674
|
-
readonly approximate_pages: null | string;
|
|
675
422
|
readonly bytes: string;
|
|
676
423
|
readonly gigabytes: string;
|
|
677
424
|
};
|
|
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
425
|
readonly room_ref: string;
|
|
688
426
|
readonly total: {
|
|
689
427
|
readonly bytes: string;
|
|
@@ -700,65 +438,11 @@ export interface HouseMethods {
|
|
|
700
438
|
readonly bytes: string;
|
|
701
439
|
readonly gigabytes: string;
|
|
702
440
|
};
|
|
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
441
|
};
|
|
759
442
|
};
|
|
760
443
|
readonly "triggers/fired/list": {
|
|
761
444
|
readonly params: {
|
|
445
|
+
readonly operation_id?: string;
|
|
762
446
|
readonly room_ref?: string;
|
|
763
447
|
};
|
|
764
448
|
readonly result: {
|
|
@@ -774,6 +458,17 @@ export interface HouseMethods {
|
|
|
774
458
|
readonly code: "cap_reached";
|
|
775
459
|
readonly outcome: "refused";
|
|
776
460
|
readonly position: number;
|
|
461
|
+
} | {
|
|
462
|
+
readonly code: "agent_function_request_not_started";
|
|
463
|
+
readonly final?: true;
|
|
464
|
+
readonly outcome: "failed";
|
|
465
|
+
readonly position: number;
|
|
466
|
+
} | {
|
|
467
|
+
readonly code: "agent_function_unreadable";
|
|
468
|
+
readonly document_path: string;
|
|
469
|
+
readonly final: true;
|
|
470
|
+
readonly outcome: "failed";
|
|
471
|
+
readonly position: number;
|
|
777
472
|
} | {
|
|
778
473
|
readonly code: "agent_unavailable";
|
|
779
474
|
readonly outcome: "withdrawn";
|
|
@@ -801,6 +496,11 @@ export interface HouseMethods {
|
|
|
801
496
|
readonly outcome: "failed";
|
|
802
497
|
readonly position: number;
|
|
803
498
|
readonly tries: number;
|
|
499
|
+
} | {
|
|
500
|
+
readonly code: "internal_error";
|
|
501
|
+
readonly final: true;
|
|
502
|
+
readonly outcome: "failed";
|
|
503
|
+
readonly position: number;
|
|
804
504
|
} | {
|
|
805
505
|
readonly code: "limit_reached";
|
|
806
506
|
readonly limit: "reads";
|
|
@@ -825,22 +525,23 @@ export interface HouseMethods {
|
|
|
825
525
|
readonly value: string;
|
|
826
526
|
} | {
|
|
827
527
|
readonly code: "limit_reached";
|
|
828
|
-
readonly limit: "custom_domains" | "external_calls" | "publish_data" | "sites";
|
|
528
|
+
readonly limit: "custom_domains" | "external_calls" | "publish_data" | "site_function_calls" | "sites";
|
|
829
529
|
readonly outcome: "refused";
|
|
830
530
|
readonly position: number;
|
|
831
531
|
readonly retry_at: string;
|
|
832
532
|
} | {
|
|
833
533
|
readonly code: "limit_reached";
|
|
834
|
-
readonly limit: "custom_domains" | "external_calls" | "publish_data" | "sites";
|
|
534
|
+
readonly limit: "custom_domains" | "external_calls" | "publish_data" | "site_function_calls" | "sites";
|
|
835
535
|
readonly outcome: "refused";
|
|
836
536
|
readonly position: number;
|
|
837
537
|
} | {
|
|
838
|
-
readonly code: "
|
|
839
|
-
readonly
|
|
538
|
+
readonly code: "post_not_confirmed";
|
|
539
|
+
readonly final: true;
|
|
540
|
+
readonly outcome: "failed";
|
|
840
541
|
readonly position: number;
|
|
841
542
|
} | {
|
|
842
|
-
readonly code: "
|
|
843
|
-
readonly outcome: "
|
|
543
|
+
readonly code: "agent_function_retired" | "environment_offline" | "no_group" | "no_recipient" | "not_found" | "target_agent_unavailable";
|
|
544
|
+
readonly outcome: "no_target";
|
|
844
545
|
readonly position: number;
|
|
845
546
|
} | {
|
|
846
547
|
readonly code: string;
|
|
@@ -857,6 +558,10 @@ export interface HouseMethods {
|
|
|
857
558
|
readonly output?: string;
|
|
858
559
|
readonly position: number;
|
|
859
560
|
readonly run: string;
|
|
561
|
+
} | {
|
|
562
|
+
readonly mentioned: number;
|
|
563
|
+
readonly outcome: "posted";
|
|
564
|
+
readonly position: number;
|
|
860
565
|
} | {
|
|
861
566
|
readonly outcome: "continued";
|
|
862
567
|
readonly position: number;
|
|
@@ -920,7 +625,7 @@ export interface HouseCredentialState {
|
|
|
920
625
|
readonly state: Open<'none' | 'held' | 'rejected'>;
|
|
921
626
|
readonly expiresAt: number | null;
|
|
922
627
|
}
|
|
923
|
-
export type HouseDatabaseFailure = '
|
|
628
|
+
export type HouseDatabaseFailure = 'damaged';
|
|
924
629
|
export type HouseAnalyticsChoice = 'accept' | 'decline';
|
|
925
630
|
export interface HouseAnalytics {
|
|
926
631
|
readonly measures: boolean;
|
|
@@ -937,7 +642,6 @@ export interface HouseStatus {
|
|
|
937
642
|
readonly sync: HouseSyncState | null;
|
|
938
643
|
readonly refusal: {
|
|
939
644
|
readonly code: string;
|
|
940
|
-
readonly retryable: boolean;
|
|
941
645
|
} | null;
|
|
942
646
|
readonly loss: string | null;
|
|
943
647
|
readonly database: Open<HouseDatabaseFailure> | null;
|
|
@@ -949,6 +653,7 @@ export type HouseNavigationMode = 'push' | 'replace';
|
|
|
949
653
|
export interface HouseTab {
|
|
950
654
|
readonly title?: string;
|
|
951
655
|
readonly icon?: string;
|
|
656
|
+
readonly scheme?: 'light' | 'dark' | null;
|
|
952
657
|
}
|
|
953
658
|
interface HouseRelease {
|
|
954
659
|
readonly app_ref: string;
|
|
@@ -999,13 +704,26 @@ export interface HouseAppMessage {
|
|
|
999
704
|
readonly from: string;
|
|
1000
705
|
readonly body: unknown;
|
|
1001
706
|
}
|
|
1002
|
-
export
|
|
707
|
+
export interface HouseBox {
|
|
708
|
+
readonly x: number;
|
|
709
|
+
readonly y: number;
|
|
710
|
+
readonly width: number;
|
|
711
|
+
readonly height: number;
|
|
712
|
+
}
|
|
713
|
+
export interface HouseTitleRow {
|
|
714
|
+
readonly height: number;
|
|
715
|
+
readonly controls: readonly HouseBox[];
|
|
716
|
+
}
|
|
1003
717
|
export type HouseNotifications = Open<'on' | 'off' | 'blocked' | 'unavailable'>;
|
|
1004
718
|
export interface HouseTelegram {
|
|
1005
719
|
readonly state: Open<'available' | 'linked' | 'unavailable'>;
|
|
1006
720
|
readonly name: string | null;
|
|
1007
721
|
readonly username: string | null;
|
|
1008
722
|
}
|
|
723
|
+
export interface HouseCeremonyEnded {
|
|
724
|
+
readonly said: string | null;
|
|
725
|
+
readonly done: boolean;
|
|
726
|
+
}
|
|
1009
727
|
export interface HouseCeremonyRefused extends Error {
|
|
1010
728
|
readonly name: 'HouseCeremonyRefused';
|
|
1011
729
|
readonly code: Open<'house_ceremony_refused'>;
|
|
@@ -1025,7 +743,6 @@ export interface HouseBrowserRefused extends Error {
|
|
|
1025
743
|
export interface HouseCooperation {
|
|
1026
744
|
placed(): Promise<void> | void;
|
|
1027
745
|
}
|
|
1028
|
-
export type HouseChatWidth = 'full' | '3/4' | '1/2' | '1/3';
|
|
1029
746
|
export interface HouseChatOpened {
|
|
1030
747
|
readonly conversation: string | null;
|
|
1031
748
|
readonly agent: string | null;
|
|
@@ -1033,8 +750,6 @@ export interface HouseChatOpened {
|
|
|
1033
750
|
export interface HouseChatOptions {
|
|
1034
751
|
readonly conversation?: string | null;
|
|
1035
752
|
readonly agent?: string | null;
|
|
1036
|
-
readonly showChats?: boolean;
|
|
1037
|
-
readonly width?: HouseChatWidth;
|
|
1038
753
|
readonly onOpen?: (opened: HouseChatOpened) => void;
|
|
1039
754
|
readonly onLink?: (href: string) => void;
|
|
1040
755
|
}
|
|
@@ -1042,18 +757,39 @@ export interface HouseMountedChat {
|
|
|
1042
757
|
update(options: HouseChatOptions): void;
|
|
1043
758
|
unmount(): void;
|
|
1044
759
|
}
|
|
760
|
+
export interface HouseChatButtonOptions {
|
|
761
|
+
readonly onOpen?: (opened: HouseChatOpened) => void;
|
|
762
|
+
readonly onLink?: (href: string) => void;
|
|
763
|
+
}
|
|
764
|
+
export interface HouseChatButtonMount extends HouseChatButtonOptions {
|
|
765
|
+
readonly agent?: string | null;
|
|
766
|
+
}
|
|
767
|
+
export interface HouseChatTarget {
|
|
768
|
+
readonly conversation?: string | null;
|
|
769
|
+
readonly agent?: string | null;
|
|
770
|
+
readonly docked?: boolean;
|
|
771
|
+
}
|
|
772
|
+
export interface HouseChatButton {
|
|
773
|
+
open(target?: HouseChatTarget): void;
|
|
774
|
+
hide(): void;
|
|
775
|
+
update(options: HouseChatButtonOptions): void;
|
|
776
|
+
unmount(): void;
|
|
777
|
+
}
|
|
1045
778
|
export interface HouseChat {
|
|
1046
779
|
mount(element: object, options?: HouseChatOptions): Promise<HouseMountedChat>;
|
|
780
|
+
mountButton(options?: HouseChatButtonMount): Promise<HouseChatButton>;
|
|
1047
781
|
}
|
|
1048
782
|
export interface HouseBridge {
|
|
1049
783
|
readonly runtime: Promise<HouseRuntime>;
|
|
1050
784
|
readonly chat: HouseChat;
|
|
1051
785
|
address(): string | null;
|
|
1052
786
|
onAddress(listener: (address: string) => void): () => void;
|
|
787
|
+
cameFrom(): string | null;
|
|
1053
788
|
push(address: string): Promise<string>;
|
|
1054
789
|
replace(address: string): Promise<string>;
|
|
1055
|
-
ceremony(path: string): Promise<
|
|
1056
|
-
|
|
790
|
+
ceremony(path: string): Promise<HouseCeremonyEnded>;
|
|
791
|
+
onTitleBar(listener: (area: HouseBox | null) => void): () => void;
|
|
792
|
+
setTitleBar(row: HouseTitleRow | null): void;
|
|
1057
793
|
notifications(on?: boolean): Promise<HouseNotifications>;
|
|
1058
794
|
telegram(link?: true): Promise<HouseTelegram>;
|
|
1059
795
|
setTab(tab: HouseTab): void;
|