@agentshouse/app-bridge 0.1.0-ca12d3a8d9ae5 → 0.1.0-ca2cc2cd99f13
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 +6 -6
- package/dist/index.d.ts +827 -16
- package/dist/mdmodel/condition.d.ts +20 -4
- package/dist/mdmodel/document.d.ts +2 -1
- package/dist/mdmodel/index.d.ts +15 -5
- package/dist/mdmodel/kinds.d.ts +17 -0
- package/dist/mdmodel/query/language.d.ts +217 -0
- package/dist/mdmodel/query/match.d.ts +11 -0
- package/dist/mdmodel/query/rows.d.ts +31 -0
- package/dist/mdmodel/query/sql.d.ts +38 -0
- package/dist/mdmodel/reserved.d.ts +4 -0
- package/dist/mdmodel/types.d.ts +12 -0
- package/dist/mdmodel/validate.d.ts +3 -2
- package/dist/mdruntime/adapter.d.ts +72 -51
- package/dist/mdruntime/chain.d.ts +2 -1
- package/dist/mdruntime/client.d.ts +6 -5
- package/dist/mdruntime/collection.d.ts +2 -4
- package/dist/mdruntime/compile.d.ts +1 -6
- package/dist/mdruntime/connection.d.ts +5 -7
- package/dist/mdruntime/conversation.d.ts +15 -14
- package/dist/mdruntime/durability.d.ts +0 -1
- package/dist/mdruntime/media.d.ts +1 -1
- package/dist/mdruntime/messages.d.ts +2 -2
- package/dist/mdruntime/model.d.ts +1 -3
- package/dist/mdruntime/observation.d.ts +2 -2
- package/dist/mdruntime/outcome.d.ts +0 -3
- package/dist/mdruntime/query.d.ts +5 -209
- package/dist/mdruntime/reach.d.ts +7 -7
- package/dist/mdruntime/readiness.d.ts +3 -17
- package/dist/mdruntime/recovery.d.ts +1 -0
- package/dist/mdruntime/replica.d.ts +3 -3
- package/dist/mdruntime/room-draft.d.ts +2 -1
- package/dist/mdruntime/search.d.ts +12 -63
- package/dist/mdruntime/status.d.ts +0 -4
- package/dist/mdruntime/store.d.ts +18 -33
- package/dist/mdruntime/stored.d.ts +34 -26
- package/dist/mdruntime/tables.d.ts +35 -44
- package/dist/mdruntime/wire.d.ts +1 -4
- package/dist/test-host.d.ts +1 -4
- package/dist/test-host.js +2 -27
- package/docs/families.md +38 -44
- package/package.json +1 -1
- package/dist/calls.d.ts +0 -704
- package/dist/calls.js +0 -1
- package/dist/mdruntime/fulltext.d.ts +0 -26
- package/dist/mdruntime/shared.d.ts +0 -15
- package/dist/mdruntime/transfer.d.ts +0 -9
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,823 @@
|
|
|
1
1
|
import type { MdRuntimeClient, Open } from './mdruntime/client.js';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
export interface HouseMethods {
|
|
3
|
+
readonly "agent-functions/requests": {
|
|
4
|
+
readonly params: {
|
|
5
|
+
readonly room_ref: string;
|
|
6
|
+
};
|
|
7
|
+
readonly result: {
|
|
8
|
+
readonly current: readonly {
|
|
9
|
+
readonly document: string;
|
|
10
|
+
readonly name: string;
|
|
11
|
+
}[];
|
|
12
|
+
readonly history: readonly {
|
|
13
|
+
readonly document: string;
|
|
14
|
+
readonly name: string;
|
|
15
|
+
}[];
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
readonly "apps/features/read": {
|
|
19
|
+
readonly params: {};
|
|
20
|
+
readonly result: {
|
|
21
|
+
readonly features: readonly {
|
|
22
|
+
readonly allowed: boolean;
|
|
23
|
+
readonly feature: string;
|
|
24
|
+
}[];
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
readonly "apps/holders": {
|
|
28
|
+
readonly params: {};
|
|
29
|
+
readonly result: {
|
|
30
|
+
readonly holders: readonly {
|
|
31
|
+
readonly email: string;
|
|
32
|
+
readonly name: string;
|
|
33
|
+
readonly user: string;
|
|
34
|
+
}[];
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
readonly "apps/messages/send": {
|
|
38
|
+
readonly params: {
|
|
39
|
+
readonly body: unknown;
|
|
40
|
+
readonly to: string;
|
|
41
|
+
};
|
|
42
|
+
readonly result: {
|
|
43
|
+
readonly [key: string]: never;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
readonly "apps/relay": {
|
|
47
|
+
readonly params: {
|
|
48
|
+
readonly [key: string]: never;
|
|
49
|
+
};
|
|
50
|
+
readonly result: {
|
|
51
|
+
readonly expires_at: string;
|
|
52
|
+
readonly ice_servers: readonly {
|
|
53
|
+
readonly credential: string;
|
|
54
|
+
readonly urls: readonly string[];
|
|
55
|
+
readonly username: string;
|
|
56
|
+
}[];
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
readonly "apps/ring": {
|
|
60
|
+
readonly params: {
|
|
61
|
+
readonly to: string;
|
|
62
|
+
};
|
|
63
|
+
readonly result: {
|
|
64
|
+
readonly authority: string;
|
|
65
|
+
readonly log_epoch: string;
|
|
66
|
+
readonly position: string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
readonly "chats/assign": {
|
|
70
|
+
readonly params: {
|
|
71
|
+
readonly assignee: null | {
|
|
72
|
+
readonly agent: string;
|
|
73
|
+
} | {
|
|
74
|
+
readonly user: string;
|
|
75
|
+
};
|
|
76
|
+
readonly path: string;
|
|
77
|
+
readonly room_ref: string;
|
|
78
|
+
};
|
|
79
|
+
readonly result: {
|
|
80
|
+
readonly assignee: null | {
|
|
81
|
+
readonly agent: string;
|
|
82
|
+
readonly name: string;
|
|
83
|
+
} | {
|
|
84
|
+
readonly name: string;
|
|
85
|
+
readonly user: string;
|
|
86
|
+
};
|
|
87
|
+
readonly authority: string;
|
|
88
|
+
readonly log_epoch: string;
|
|
89
|
+
readonly path: string;
|
|
90
|
+
readonly position: string;
|
|
91
|
+
readonly return_to: null | {
|
|
92
|
+
readonly agent: string;
|
|
93
|
+
readonly name: string;
|
|
94
|
+
};
|
|
95
|
+
readonly room_ref: string;
|
|
96
|
+
readonly url: string;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
readonly "chats/return": {
|
|
100
|
+
readonly params: {
|
|
101
|
+
readonly path: string;
|
|
102
|
+
readonly room_ref: string;
|
|
103
|
+
};
|
|
104
|
+
readonly result: {
|
|
105
|
+
readonly assignee: null | {
|
|
106
|
+
readonly agent: string;
|
|
107
|
+
readonly name: string;
|
|
108
|
+
} | {
|
|
109
|
+
readonly name: string;
|
|
110
|
+
readonly user: string;
|
|
111
|
+
};
|
|
112
|
+
readonly authority: string;
|
|
113
|
+
readonly log_epoch: string;
|
|
114
|
+
readonly path: string;
|
|
115
|
+
readonly position: string;
|
|
116
|
+
readonly return_to: null | {
|
|
117
|
+
readonly agent: string;
|
|
118
|
+
readonly name: string;
|
|
119
|
+
};
|
|
120
|
+
readonly room_ref: string;
|
|
121
|
+
readonly url: string;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
readonly "chats/take-control": {
|
|
125
|
+
readonly params: {
|
|
126
|
+
readonly path: string;
|
|
127
|
+
readonly room_ref: string;
|
|
128
|
+
};
|
|
129
|
+
readonly result: {
|
|
130
|
+
readonly assignee: null | {
|
|
131
|
+
readonly agent: string;
|
|
132
|
+
readonly name: string;
|
|
133
|
+
} | {
|
|
134
|
+
readonly name: string;
|
|
135
|
+
readonly user: string;
|
|
136
|
+
};
|
|
137
|
+
readonly authority: string;
|
|
138
|
+
readonly log_epoch: string;
|
|
139
|
+
readonly path: string;
|
|
140
|
+
readonly position: string;
|
|
141
|
+
readonly return_to: null | {
|
|
142
|
+
readonly agent: string;
|
|
143
|
+
readonly name: string;
|
|
144
|
+
};
|
|
145
|
+
readonly room_ref: string;
|
|
146
|
+
readonly url: string;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
readonly "conversations/create": {
|
|
150
|
+
readonly params: {
|
|
151
|
+
readonly agent_id: string;
|
|
152
|
+
readonly operation_id: string;
|
|
153
|
+
};
|
|
154
|
+
readonly result: {
|
|
155
|
+
readonly agent_id: string;
|
|
156
|
+
readonly authority: string;
|
|
157
|
+
readonly conversation_id: string;
|
|
158
|
+
readonly log_epoch: string;
|
|
159
|
+
readonly position: string;
|
|
160
|
+
readonly url: string;
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
readonly "conversations/delete": {
|
|
164
|
+
readonly params: {
|
|
165
|
+
readonly conversation_id: string;
|
|
166
|
+
readonly operation_id: string;
|
|
167
|
+
};
|
|
168
|
+
readonly result: {
|
|
169
|
+
readonly authority: string;
|
|
170
|
+
readonly conversation_id: string;
|
|
171
|
+
readonly log_epoch: string;
|
|
172
|
+
readonly outcome: "deleted";
|
|
173
|
+
readonly position: string;
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
readonly "conversations/end": {
|
|
177
|
+
readonly params: {
|
|
178
|
+
readonly conversation_id: string;
|
|
179
|
+
readonly operation_id: string;
|
|
180
|
+
};
|
|
181
|
+
readonly result: {
|
|
182
|
+
readonly agent_id: string;
|
|
183
|
+
readonly authority: string;
|
|
184
|
+
readonly conversation_id: string;
|
|
185
|
+
readonly jobs: readonly {
|
|
186
|
+
readonly name: string;
|
|
187
|
+
readonly running_since: string;
|
|
188
|
+
}[];
|
|
189
|
+
readonly log_epoch: string;
|
|
190
|
+
readonly position: string;
|
|
191
|
+
readonly url: string;
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
readonly "conversations/history": {
|
|
195
|
+
readonly params: {
|
|
196
|
+
readonly conversations: readonly {
|
|
197
|
+
readonly after?: {
|
|
198
|
+
readonly accepted_at: string;
|
|
199
|
+
readonly message_id: string;
|
|
200
|
+
};
|
|
201
|
+
readonly conversation_id: string;
|
|
202
|
+
}[];
|
|
203
|
+
readonly limit?: number;
|
|
204
|
+
};
|
|
205
|
+
readonly result: {
|
|
206
|
+
readonly histories: readonly {
|
|
207
|
+
readonly agent_id: string;
|
|
208
|
+
readonly conversation_id: string;
|
|
209
|
+
readonly messages: readonly {
|
|
210
|
+
readonly accepted_at: string;
|
|
211
|
+
readonly context: null | {
|
|
212
|
+
readonly used: number;
|
|
213
|
+
readonly window: number;
|
|
214
|
+
};
|
|
215
|
+
readonly conversation_id: string;
|
|
216
|
+
readonly failure: null | string;
|
|
217
|
+
readonly message_id: string;
|
|
218
|
+
readonly parts: readonly ({
|
|
219
|
+
readonly command: string;
|
|
220
|
+
readonly target: null | string;
|
|
221
|
+
readonly type: "message";
|
|
222
|
+
} | {
|
|
223
|
+
readonly count: number;
|
|
224
|
+
readonly type: "commands";
|
|
225
|
+
} | {
|
|
226
|
+
readonly description: string;
|
|
227
|
+
readonly result: null | string;
|
|
228
|
+
readonly status: "done" | "running";
|
|
229
|
+
readonly type: "subagent";
|
|
230
|
+
} | {
|
|
231
|
+
readonly entries: readonly {
|
|
232
|
+
readonly content: string;
|
|
233
|
+
readonly status: string;
|
|
234
|
+
}[];
|
|
235
|
+
readonly type: "plan";
|
|
236
|
+
} | {
|
|
237
|
+
readonly file: string;
|
|
238
|
+
readonly media_type: string;
|
|
239
|
+
readonly name: string;
|
|
240
|
+
readonly type: "image";
|
|
241
|
+
} | {
|
|
242
|
+
readonly marker: "compaction" | "job" | "mode" | "model" | "retry";
|
|
243
|
+
readonly text: string;
|
|
244
|
+
readonly type: "marker";
|
|
245
|
+
} | {
|
|
246
|
+
readonly text: string;
|
|
247
|
+
readonly type: "reasoning";
|
|
248
|
+
} | {
|
|
249
|
+
readonly text: string;
|
|
250
|
+
readonly type: "text";
|
|
251
|
+
})[];
|
|
252
|
+
readonly role: "assistant" | "house" | "user";
|
|
253
|
+
readonly sender?: "conversation" | "customer" | "owner" | "replier" | "report" | "requester" | "trigger";
|
|
254
|
+
readonly source?: {
|
|
255
|
+
readonly agent: {
|
|
256
|
+
readonly id: string;
|
|
257
|
+
readonly name: string;
|
|
258
|
+
readonly url: string;
|
|
259
|
+
};
|
|
260
|
+
readonly approved_at?: string;
|
|
261
|
+
readonly declined_at?: string;
|
|
262
|
+
readonly kind: "mail";
|
|
263
|
+
readonly owner: {
|
|
264
|
+
readonly name: string;
|
|
265
|
+
readonly user: string;
|
|
266
|
+
};
|
|
267
|
+
readonly request: string;
|
|
268
|
+
readonly room: string;
|
|
269
|
+
} | {
|
|
270
|
+
readonly agent: {
|
|
271
|
+
readonly id: string;
|
|
272
|
+
readonly name: string;
|
|
273
|
+
readonly url: string;
|
|
274
|
+
};
|
|
275
|
+
readonly conversation: {
|
|
276
|
+
readonly id: string;
|
|
277
|
+
readonly name: string;
|
|
278
|
+
readonly url: string;
|
|
279
|
+
};
|
|
280
|
+
readonly kind: "conversation";
|
|
281
|
+
} | {
|
|
282
|
+
readonly agent: {
|
|
283
|
+
readonly id: string;
|
|
284
|
+
readonly name: string;
|
|
285
|
+
readonly url: string;
|
|
286
|
+
};
|
|
287
|
+
readonly kind: "declined";
|
|
288
|
+
readonly owner: {
|
|
289
|
+
readonly name: string;
|
|
290
|
+
readonly user: string;
|
|
291
|
+
};
|
|
292
|
+
readonly request: string;
|
|
293
|
+
} | {
|
|
294
|
+
readonly agent_function: null | {
|
|
295
|
+
readonly id: string;
|
|
296
|
+
readonly name: string;
|
|
297
|
+
readonly version: number;
|
|
298
|
+
};
|
|
299
|
+
readonly approved_at: null | string;
|
|
300
|
+
readonly kind: "request";
|
|
301
|
+
readonly request: string;
|
|
302
|
+
readonly requester: {
|
|
303
|
+
readonly name: string;
|
|
304
|
+
readonly room: string;
|
|
305
|
+
readonly url: string;
|
|
306
|
+
} | {
|
|
307
|
+
readonly name: string;
|
|
308
|
+
readonly user: string;
|
|
309
|
+
};
|
|
310
|
+
readonly room: {
|
|
311
|
+
readonly handle: string;
|
|
312
|
+
readonly name: string;
|
|
313
|
+
readonly ref: string;
|
|
314
|
+
readonly url: string;
|
|
315
|
+
};
|
|
316
|
+
} | {
|
|
317
|
+
readonly kind: "reply";
|
|
318
|
+
readonly name: string;
|
|
319
|
+
} | {
|
|
320
|
+
readonly kind: "trigger";
|
|
321
|
+
readonly path: null | string;
|
|
322
|
+
readonly room: {
|
|
323
|
+
readonly handle: string;
|
|
324
|
+
readonly name: string;
|
|
325
|
+
readonly ref: string;
|
|
326
|
+
readonly url: string;
|
|
327
|
+
};
|
|
328
|
+
readonly trigger: {
|
|
329
|
+
readonly description: string;
|
|
330
|
+
readonly id: string;
|
|
331
|
+
};
|
|
332
|
+
};
|
|
333
|
+
readonly telegram_undelivered?: true;
|
|
334
|
+
readonly text: string;
|
|
335
|
+
readonly transcripts?: readonly {
|
|
336
|
+
readonly path: string;
|
|
337
|
+
readonly text: string;
|
|
338
|
+
}[];
|
|
339
|
+
readonly turn_id: null | string;
|
|
340
|
+
readonly url?: string;
|
|
341
|
+
readonly waiting?: true;
|
|
342
|
+
}[];
|
|
343
|
+
readonly next: null | {
|
|
344
|
+
readonly accepted_at: string;
|
|
345
|
+
readonly message_id: string;
|
|
346
|
+
};
|
|
347
|
+
readonly url: string;
|
|
348
|
+
}[];
|
|
349
|
+
};
|
|
350
|
+
};
|
|
351
|
+
readonly "conversations/interaction/answer": {
|
|
352
|
+
readonly params: {
|
|
353
|
+
readonly conversation_id: string;
|
|
354
|
+
readonly interaction_id: string;
|
|
355
|
+
readonly operation_id: string;
|
|
356
|
+
readonly response: readonly unknown[] | boolean | null | number | {
|
|
357
|
+
readonly [key: string]: unknown;
|
|
358
|
+
} | string;
|
|
359
|
+
};
|
|
360
|
+
readonly result: {
|
|
361
|
+
readonly agent_id: string;
|
|
362
|
+
readonly authority: string;
|
|
363
|
+
readonly conversation_id: string;
|
|
364
|
+
readonly interaction_id: string;
|
|
365
|
+
readonly log_epoch: string;
|
|
366
|
+
readonly position: string;
|
|
367
|
+
readonly url: string;
|
|
368
|
+
};
|
|
369
|
+
};
|
|
370
|
+
readonly "conversations/interrupt": {
|
|
371
|
+
readonly params: {
|
|
372
|
+
readonly conversation_id: string;
|
|
373
|
+
readonly operation_id: string;
|
|
374
|
+
};
|
|
375
|
+
readonly result: {
|
|
376
|
+
readonly agent_id: string;
|
|
377
|
+
readonly authority: string;
|
|
378
|
+
readonly conversation_id: string;
|
|
379
|
+
readonly log_epoch: string;
|
|
380
|
+
readonly position: string;
|
|
381
|
+
readonly url: string;
|
|
382
|
+
};
|
|
383
|
+
};
|
|
384
|
+
readonly "conversations/kill": {
|
|
385
|
+
readonly params: {
|
|
386
|
+
readonly conversation_id: string;
|
|
387
|
+
readonly operation_id: string;
|
|
388
|
+
};
|
|
389
|
+
readonly result: {
|
|
390
|
+
readonly agent_id: string;
|
|
391
|
+
readonly authority: string;
|
|
392
|
+
readonly conversation_id: string;
|
|
393
|
+
readonly log_epoch: string;
|
|
394
|
+
readonly position: string;
|
|
395
|
+
readonly url: string;
|
|
396
|
+
};
|
|
397
|
+
};
|
|
398
|
+
readonly "conversations/option": {
|
|
399
|
+
readonly params: {
|
|
400
|
+
readonly conversation_id: string;
|
|
401
|
+
readonly operation_id: string;
|
|
402
|
+
readonly option: string;
|
|
403
|
+
readonly value: boolean | 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
|
+
};
|
|
413
|
+
};
|
|
414
|
+
readonly "conversations/rename": {
|
|
415
|
+
readonly params: {
|
|
416
|
+
readonly conversation_id: string;
|
|
417
|
+
readonly name: string;
|
|
418
|
+
readonly operation_id: string;
|
|
419
|
+
};
|
|
420
|
+
readonly result: {
|
|
421
|
+
readonly agent_id: string;
|
|
422
|
+
readonly authority: string;
|
|
423
|
+
readonly conversation_id: string;
|
|
424
|
+
readonly log_epoch: string;
|
|
425
|
+
readonly name: string;
|
|
426
|
+
readonly position: string;
|
|
427
|
+
readonly url: string;
|
|
428
|
+
};
|
|
429
|
+
};
|
|
430
|
+
readonly "conversations/retry": {
|
|
431
|
+
readonly params: {
|
|
432
|
+
readonly conversation_id: string;
|
|
433
|
+
readonly message_id: string;
|
|
434
|
+
readonly operation_id: string;
|
|
435
|
+
};
|
|
436
|
+
readonly result: {
|
|
437
|
+
readonly agent_id: string;
|
|
438
|
+
readonly authority: string;
|
|
439
|
+
readonly conversation_id: string;
|
|
440
|
+
readonly log_epoch: string;
|
|
441
|
+
readonly message_id: string;
|
|
442
|
+
readonly position: string;
|
|
443
|
+
readonly url: string;
|
|
444
|
+
};
|
|
445
|
+
};
|
|
446
|
+
readonly "conversations/send": {
|
|
447
|
+
readonly params: {
|
|
448
|
+
readonly conversation_id: string;
|
|
449
|
+
readonly operation_id: string;
|
|
450
|
+
readonly text: string;
|
|
451
|
+
};
|
|
452
|
+
readonly result: {
|
|
453
|
+
readonly agent_id: string;
|
|
454
|
+
readonly authority: string;
|
|
455
|
+
readonly conversation_id: string;
|
|
456
|
+
readonly log_epoch: string;
|
|
457
|
+
readonly message_id: string;
|
|
458
|
+
readonly position: string;
|
|
459
|
+
readonly url: string;
|
|
460
|
+
};
|
|
461
|
+
};
|
|
462
|
+
readonly "records/read": {
|
|
463
|
+
readonly params: {
|
|
464
|
+
readonly order?: "asc" | "desc";
|
|
465
|
+
readonly room_ref: string;
|
|
466
|
+
};
|
|
467
|
+
readonly result: {
|
|
468
|
+
readonly records: readonly {
|
|
469
|
+
readonly body: null | string;
|
|
470
|
+
readonly claimed: unknown;
|
|
471
|
+
readonly created_at: string;
|
|
472
|
+
readonly record: string;
|
|
473
|
+
readonly ref: string;
|
|
474
|
+
}[];
|
|
475
|
+
};
|
|
476
|
+
};
|
|
477
|
+
readonly "rooms/access/read": {
|
|
478
|
+
readonly params: {
|
|
479
|
+
readonly room_ref: string;
|
|
480
|
+
readonly statistics?: boolean;
|
|
481
|
+
};
|
|
482
|
+
readonly result: {
|
|
483
|
+
readonly authority: "administrator" | "member" | "owner";
|
|
484
|
+
readonly members: readonly {
|
|
485
|
+
readonly admitted_at: null | string;
|
|
486
|
+
readonly direct: readonly {
|
|
487
|
+
readonly level: null | "keep" | "open" | "search";
|
|
488
|
+
readonly namespace: string;
|
|
489
|
+
readonly operations: readonly ("delete" | "export" | "manageAccess" | "write")[];
|
|
490
|
+
}[];
|
|
491
|
+
readonly downloads_per_day?: number;
|
|
492
|
+
readonly entries: readonly {
|
|
493
|
+
readonly level: null | "keep" | "open" | "search";
|
|
494
|
+
readonly namespace: string;
|
|
495
|
+
readonly operations: readonly ("delete" | "export" | "manageAccess" | "write")[];
|
|
496
|
+
readonly sources: readonly {
|
|
497
|
+
readonly kind: "direct" | "inherited";
|
|
498
|
+
readonly level: null | "keep" | "open" | "search";
|
|
499
|
+
readonly namespace: string;
|
|
500
|
+
readonly operations: readonly ("delete" | "export" | "manageAccess" | "write")[];
|
|
501
|
+
}[];
|
|
502
|
+
}[];
|
|
503
|
+
readonly key: null | string;
|
|
504
|
+
readonly requests_per_day?: number;
|
|
505
|
+
readonly schema_roles: readonly string[];
|
|
506
|
+
readonly user: string;
|
|
507
|
+
readonly user_name: string;
|
|
508
|
+
}[];
|
|
509
|
+
readonly namespaces: readonly string[];
|
|
510
|
+
readonly owner: string;
|
|
511
|
+
readonly room_ref: string;
|
|
512
|
+
readonly statistics?: readonly {
|
|
513
|
+
readonly day: string;
|
|
514
|
+
readonly downloads: number;
|
|
515
|
+
readonly requests: number;
|
|
516
|
+
readonly text_bytes: number;
|
|
517
|
+
readonly user: string;
|
|
518
|
+
}[];
|
|
519
|
+
readonly url: string;
|
|
520
|
+
readonly viewer: string;
|
|
521
|
+
};
|
|
522
|
+
};
|
|
523
|
+
readonly "rooms/members": {
|
|
524
|
+
readonly params: {
|
|
525
|
+
readonly history?: boolean;
|
|
526
|
+
readonly room_ref: string;
|
|
527
|
+
};
|
|
528
|
+
readonly result: {
|
|
529
|
+
readonly history?: readonly {
|
|
530
|
+
readonly at: string;
|
|
531
|
+
readonly kind: "granted" | "revoked";
|
|
532
|
+
readonly user: string;
|
|
533
|
+
}[];
|
|
534
|
+
readonly members: readonly {
|
|
535
|
+
readonly access?: "edit" | "keep" | "manage" | "open" | "owner" | "search";
|
|
536
|
+
readonly display_name: string;
|
|
537
|
+
readonly email?: string;
|
|
538
|
+
readonly member_document: null | string;
|
|
539
|
+
readonly only_while_online?: true;
|
|
540
|
+
readonly owner: boolean;
|
|
541
|
+
readonly schema_roles?: readonly string[];
|
|
542
|
+
readonly since: null | string;
|
|
543
|
+
readonly user: string;
|
|
544
|
+
}[];
|
|
545
|
+
};
|
|
546
|
+
};
|
|
547
|
+
readonly "rooms/settings/processing/read": {
|
|
548
|
+
readonly params: {
|
|
549
|
+
readonly path: string;
|
|
550
|
+
readonly room_ref: string;
|
|
551
|
+
};
|
|
552
|
+
readonly result: {
|
|
553
|
+
readonly embedding: {
|
|
554
|
+
readonly condition: null | {
|
|
555
|
+
readonly kind: "demand_failed" | "embed_again_failed";
|
|
556
|
+
readonly path: string;
|
|
557
|
+
};
|
|
558
|
+
readonly embedding_estimate: null | {
|
|
559
|
+
readonly documents: number;
|
|
560
|
+
readonly measured_tokens: number;
|
|
561
|
+
readonly unmeasured_documents: number;
|
|
562
|
+
};
|
|
563
|
+
readonly finished: boolean;
|
|
564
|
+
readonly indexed_chunks: number;
|
|
565
|
+
};
|
|
566
|
+
readonly explicit: readonly {
|
|
567
|
+
readonly path: string;
|
|
568
|
+
readonly policy: "Off" | "On";
|
|
569
|
+
}[];
|
|
570
|
+
readonly path: string;
|
|
571
|
+
readonly policy: {
|
|
572
|
+
readonly from: null | string;
|
|
573
|
+
readonly origin: "default" | "explicit" | "inherited";
|
|
574
|
+
readonly reason: null | "room_too_large" | "unfunded";
|
|
575
|
+
readonly value: "Off" | "On";
|
|
576
|
+
};
|
|
577
|
+
readonly writable: boolean;
|
|
578
|
+
};
|
|
579
|
+
};
|
|
580
|
+
readonly "site/submission": {
|
|
581
|
+
readonly params: {
|
|
582
|
+
readonly content: string;
|
|
583
|
+
};
|
|
584
|
+
readonly result: {
|
|
585
|
+
readonly submitted: true;
|
|
586
|
+
};
|
|
587
|
+
};
|
|
588
|
+
readonly "storage/inventory": {
|
|
589
|
+
readonly params: {
|
|
590
|
+
readonly room_ref?: string;
|
|
591
|
+
};
|
|
592
|
+
readonly result: {
|
|
593
|
+
readonly blob: {
|
|
594
|
+
readonly bytes: string;
|
|
595
|
+
readonly gigabytes: string;
|
|
596
|
+
};
|
|
597
|
+
readonly freshness: {
|
|
598
|
+
readonly state: "settled";
|
|
599
|
+
};
|
|
600
|
+
readonly indexed_text: {
|
|
601
|
+
readonly approximate_pages: null | string;
|
|
602
|
+
readonly bytes: string;
|
|
603
|
+
readonly gigabytes: string;
|
|
604
|
+
};
|
|
605
|
+
readonly measurement: {
|
|
606
|
+
readonly page_reference: null | {
|
|
607
|
+
readonly bytes_per_page: string;
|
|
608
|
+
readonly encoding: string;
|
|
609
|
+
readonly font: string;
|
|
610
|
+
readonly font_size_pt: string;
|
|
611
|
+
readonly layout: string;
|
|
612
|
+
};
|
|
613
|
+
};
|
|
614
|
+
readonly room_ref: string;
|
|
615
|
+
readonly total: {
|
|
616
|
+
readonly bytes: string;
|
|
617
|
+
readonly gigabytes: string;
|
|
618
|
+
};
|
|
619
|
+
readonly url: string;
|
|
620
|
+
} | {
|
|
621
|
+
readonly blob: {
|
|
622
|
+
readonly bytes: string;
|
|
623
|
+
readonly gigabytes: string;
|
|
624
|
+
};
|
|
625
|
+
readonly freshness: {
|
|
626
|
+
readonly state: "settled";
|
|
627
|
+
};
|
|
628
|
+
readonly indexed_text: {
|
|
629
|
+
readonly approximate_pages: null | string;
|
|
630
|
+
readonly bytes: string;
|
|
631
|
+
readonly gigabytes: string;
|
|
632
|
+
};
|
|
633
|
+
readonly measurement: {
|
|
634
|
+
readonly page_reference: null | {
|
|
635
|
+
readonly bytes_per_page: string;
|
|
636
|
+
readonly encoding: string;
|
|
637
|
+
readonly font: string;
|
|
638
|
+
readonly font_size_pt: string;
|
|
639
|
+
readonly layout: string;
|
|
640
|
+
};
|
|
641
|
+
};
|
|
642
|
+
readonly site_images: {
|
|
643
|
+
readonly bound: string;
|
|
644
|
+
readonly bytes: string;
|
|
645
|
+
readonly payloads: string;
|
|
646
|
+
};
|
|
647
|
+
readonly total: {
|
|
648
|
+
readonly bytes: string;
|
|
649
|
+
readonly gigabytes: string;
|
|
650
|
+
};
|
|
651
|
+
} | {
|
|
652
|
+
readonly blob: {
|
|
653
|
+
readonly bytes: string;
|
|
654
|
+
readonly gigabytes: string;
|
|
655
|
+
};
|
|
656
|
+
readonly freshness: {
|
|
657
|
+
readonly state: "settled";
|
|
658
|
+
};
|
|
659
|
+
readonly indexed_text: {
|
|
660
|
+
readonly approximate_pages: null | string;
|
|
661
|
+
readonly bytes: string;
|
|
662
|
+
readonly gigabytes: string;
|
|
663
|
+
};
|
|
664
|
+
readonly measurement: {
|
|
665
|
+
readonly page_reference: null | {
|
|
666
|
+
readonly bytes_per_page: string;
|
|
667
|
+
readonly encoding: string;
|
|
668
|
+
readonly font: string;
|
|
669
|
+
readonly font_size_pt: string;
|
|
670
|
+
readonly layout: string;
|
|
671
|
+
};
|
|
672
|
+
};
|
|
673
|
+
readonly total: {
|
|
674
|
+
readonly bytes: string;
|
|
675
|
+
readonly gigabytes: string;
|
|
676
|
+
};
|
|
677
|
+
};
|
|
678
|
+
};
|
|
679
|
+
readonly "triggers/fired": {
|
|
680
|
+
readonly params: {
|
|
681
|
+
readonly room_ref: string;
|
|
682
|
+
};
|
|
683
|
+
readonly result: {
|
|
684
|
+
readonly events: readonly {
|
|
685
|
+
readonly actions: readonly ({
|
|
686
|
+
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" | "shared_schemas" | "site_rooms" | "slot_rooms" | "spaces" | "waiting_web_wizards" | "writes";
|
|
687
|
+
readonly code: "cap_reached";
|
|
688
|
+
readonly outcome: "refused";
|
|
689
|
+
readonly position: number;
|
|
690
|
+
readonly retry_at: string;
|
|
691
|
+
} | {
|
|
692
|
+
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" | "shared_schemas" | "site_rooms" | "slot_rooms" | "spaces" | "waiting_web_wizards" | "writes";
|
|
693
|
+
readonly code: "cap_reached";
|
|
694
|
+
readonly outcome: "refused";
|
|
695
|
+
readonly position: number;
|
|
696
|
+
} | {
|
|
697
|
+
readonly code: "agent_unavailable";
|
|
698
|
+
readonly outcome: "withdrawn";
|
|
699
|
+
readonly position: number;
|
|
700
|
+
} | {
|
|
701
|
+
readonly code: "function_failed";
|
|
702
|
+
readonly cut?: boolean;
|
|
703
|
+
readonly error: string;
|
|
704
|
+
readonly exit_code?: number;
|
|
705
|
+
readonly final: true;
|
|
706
|
+
readonly outcome: "failed";
|
|
707
|
+
readonly output?: string;
|
|
708
|
+
readonly position: number;
|
|
709
|
+
readonly run: string;
|
|
710
|
+
} | {
|
|
711
|
+
readonly code: "function_failed";
|
|
712
|
+
readonly error: string;
|
|
713
|
+
readonly final: true;
|
|
714
|
+
readonly outcome: "failed";
|
|
715
|
+
readonly position: number;
|
|
716
|
+
readonly release: string;
|
|
717
|
+
} | {
|
|
718
|
+
readonly code: "function_not_started";
|
|
719
|
+
readonly final?: true;
|
|
720
|
+
readonly outcome: "failed";
|
|
721
|
+
readonly position: number;
|
|
722
|
+
readonly tries: number;
|
|
723
|
+
} | {
|
|
724
|
+
readonly code: "limit_reached";
|
|
725
|
+
readonly limit: "reads";
|
|
726
|
+
readonly outcome: "refused";
|
|
727
|
+
readonly period: "day" | "minute";
|
|
728
|
+
readonly position: number;
|
|
729
|
+
readonly retry_at: string;
|
|
730
|
+
readonly value: string;
|
|
731
|
+
} | {
|
|
732
|
+
readonly code: "limit_reached";
|
|
733
|
+
readonly limit: "writes";
|
|
734
|
+
readonly outcome: "refused";
|
|
735
|
+
readonly period: "day" | "minute";
|
|
736
|
+
readonly position: number;
|
|
737
|
+
readonly retry_at: string;
|
|
738
|
+
} | {
|
|
739
|
+
readonly code: "limit_reached";
|
|
740
|
+
readonly limit: "blob" | "indexed_text";
|
|
741
|
+
readonly outcome: "refused";
|
|
742
|
+
readonly position: number;
|
|
743
|
+
readonly used: string;
|
|
744
|
+
readonly value: string;
|
|
745
|
+
} | {
|
|
746
|
+
readonly code: "limit_reached";
|
|
747
|
+
readonly limit: "custom_domains" | "external_calls" | "mcp_downloads" | "mcp_reads" | "publish_data" | "site_submissions" | "sites";
|
|
748
|
+
readonly outcome: "refused";
|
|
749
|
+
readonly position: number;
|
|
750
|
+
readonly retry_at: string;
|
|
751
|
+
} | {
|
|
752
|
+
readonly code: "limit_reached";
|
|
753
|
+
readonly limit: "custom_domains" | "external_calls" | "mcp_downloads" | "mcp_reads" | "publish_data" | "site_submissions" | "sites";
|
|
754
|
+
readonly outcome: "refused";
|
|
755
|
+
readonly position: number;
|
|
756
|
+
} | {
|
|
757
|
+
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";
|
|
758
|
+
readonly outcome: "no_target";
|
|
759
|
+
readonly position: number;
|
|
760
|
+
} | {
|
|
761
|
+
readonly code: "agent_function_request_not_started" | "internal_error";
|
|
762
|
+
readonly outcome: "failed";
|
|
763
|
+
readonly position: number;
|
|
764
|
+
} | {
|
|
765
|
+
readonly code: string;
|
|
766
|
+
readonly outcome: "refused";
|
|
767
|
+
readonly position: number;
|
|
768
|
+
} | {
|
|
769
|
+
readonly conversations: number;
|
|
770
|
+
readonly outcome: "marked";
|
|
771
|
+
readonly position: number;
|
|
772
|
+
} | {
|
|
773
|
+
readonly cut?: boolean;
|
|
774
|
+
readonly exit_code?: number;
|
|
775
|
+
readonly outcome: "ran";
|
|
776
|
+
readonly output?: string;
|
|
777
|
+
readonly position: number;
|
|
778
|
+
readonly run: string;
|
|
779
|
+
} | {
|
|
780
|
+
readonly outcome: "continued";
|
|
781
|
+
readonly position: number;
|
|
782
|
+
readonly request: string;
|
|
783
|
+
} | {
|
|
784
|
+
readonly outcome: "notified";
|
|
785
|
+
readonly position: number;
|
|
786
|
+
readonly reached: number;
|
|
787
|
+
} | {
|
|
788
|
+
readonly outcome: "paused";
|
|
789
|
+
readonly position: number;
|
|
790
|
+
} | {
|
|
791
|
+
readonly outcome: "ran";
|
|
792
|
+
readonly position: number;
|
|
793
|
+
readonly release: string;
|
|
794
|
+
} | {
|
|
795
|
+
readonly outcome: "requested";
|
|
796
|
+
readonly position: number;
|
|
797
|
+
readonly request: string;
|
|
798
|
+
} | {
|
|
799
|
+
readonly outcome: "running";
|
|
800
|
+
readonly position: number;
|
|
801
|
+
readonly release: string;
|
|
802
|
+
} | {
|
|
803
|
+
readonly outcome: "running";
|
|
804
|
+
readonly position: number;
|
|
805
|
+
readonly run: string;
|
|
806
|
+
} | {
|
|
807
|
+
readonly outcome: "waiting";
|
|
808
|
+
readonly position: number;
|
|
809
|
+
})[];
|
|
810
|
+
readonly code?: "cap_reached";
|
|
811
|
+
readonly created_at: string;
|
|
812
|
+
readonly missed?: "failed" | "skipped";
|
|
813
|
+
readonly moment?: string;
|
|
814
|
+
readonly path?: string;
|
|
815
|
+
readonly trigger: string;
|
|
816
|
+
readonly url?: string;
|
|
817
|
+
}[];
|
|
818
|
+
};
|
|
819
|
+
};
|
|
820
|
+
}
|
|
4
821
|
export type HouseParams<Name extends string> = Name extends keyof HouseMethods ? HouseMethods[Name]['params'] : unknown;
|
|
5
822
|
type CallResult = Awaited<ReturnType<MdRuntimeClient['call']>>;
|
|
6
823
|
export type HouseResult<Name extends string> = Exclude<CallResult, {
|
|
@@ -80,7 +897,6 @@ export interface HouseExternalRequest {
|
|
|
80
897
|
readonly headers?: Readonly<Record<string, string>>;
|
|
81
898
|
readonly body?: string;
|
|
82
899
|
readonly body_base64?: string;
|
|
83
|
-
readonly account?: string;
|
|
84
900
|
readonly room_ref?: string;
|
|
85
901
|
}
|
|
86
902
|
export type HouseExternalAnswer = {
|
|
@@ -103,6 +919,11 @@ export interface HouseAppMessage {
|
|
|
103
919
|
}
|
|
104
920
|
export type HouseInstallation = Open<'accepted' | 'dismissed' | 'manual'>;
|
|
105
921
|
export type HouseNotifications = Open<'on' | 'off' | 'blocked' | 'unavailable'>;
|
|
922
|
+
export interface HouseTelegram {
|
|
923
|
+
readonly state: Open<'available' | 'linked' | 'unavailable'>;
|
|
924
|
+
readonly name: string | null;
|
|
925
|
+
readonly username: string | null;
|
|
926
|
+
}
|
|
106
927
|
export interface HouseCeremonyRefused extends Error {
|
|
107
928
|
readonly name: 'HouseCeremonyRefused';
|
|
108
929
|
readonly code: Open<'house_ceremony_refused'>;
|
|
@@ -119,20 +940,8 @@ export interface HouseBrowserRefused extends Error {
|
|
|
119
940
|
readonly code: string;
|
|
120
941
|
readonly retryable: boolean;
|
|
121
942
|
}
|
|
122
|
-
export interface HouseTrialWithheld {
|
|
123
|
-
readonly code: Open<'house_trial_withheld'>;
|
|
124
|
-
readonly retryable: true;
|
|
125
|
-
}
|
|
126
|
-
export type HouseTask = unknown;
|
|
127
|
-
export type HouseActivation = Open<'committed' | 'abandoned'>;
|
|
128
943
|
export interface HouseCooperation {
|
|
129
|
-
|
|
130
|
-
persist(): Promise<void> | void;
|
|
131
|
-
capture(): Promise<HouseTask> | HouseTask;
|
|
132
|
-
restore(task: HouseTask | null): Promise<void> | void;
|
|
133
|
-
ready(): Promise<boolean> | boolean;
|
|
134
|
-
placed?(): Promise<void> | void;
|
|
135
|
-
settle(activation: HouseActivation): void;
|
|
944
|
+
placed(): Promise<void> | void;
|
|
136
945
|
}
|
|
137
946
|
export type HouseChatWidth = 'full' | '3/4' | '1/2' | '1/3';
|
|
138
947
|
export interface HouseChatOpened {
|
|
@@ -164,6 +973,7 @@ export interface HouseBridge {
|
|
|
164
973
|
ceremony(path: string): Promise<never>;
|
|
165
974
|
install(): Promise<HouseInstallation>;
|
|
166
975
|
notifications(on?: boolean): Promise<HouseNotifications>;
|
|
976
|
+
telegram(link?: true): Promise<HouseTelegram>;
|
|
167
977
|
setBadge(unread: readonly string[]): Promise<void>;
|
|
168
978
|
setTab(tab: HouseTab): void;
|
|
169
979
|
sourceTop(app: string, release?: string): Promise<HouseSourceTop | HouseRefusal | null>;
|
|
@@ -181,3 +991,4 @@ export interface HouseHeld {
|
|
|
181
991
|
readonly houseBridge: HouseBridge;
|
|
182
992
|
}
|
|
183
993
|
export declare const houseBridge: () => HouseBridge;
|
|
994
|
+
export {};
|