@agentshouse/app-bridge 0.1.0-c8d8dc6285bbd → 0.1.0-c8dd3de04bf64
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 +7 -7
- package/dist/index.d.ts +910 -19
- package/dist/mdmodel/definition.d.ts +1 -1
- package/dist/mdmodel/document.d.ts +2 -1
- package/dist/mdmodel/event.d.ts +77 -0
- package/dist/mdmodel/facts.d.ts +14 -0
- package/dist/mdmodel/index.d.ts +19 -7
- package/dist/mdmodel/kinds.d.ts +17 -0
- package/dist/mdmodel/pattern.d.ts +9 -0
- package/dist/mdmodel/query/language.d.ts +253 -0
- package/dist/mdmodel/query/match.d.ts +13 -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 +5 -0
- package/dist/mdmodel/types.d.ts +11 -0
- package/dist/mdmodel/validate.d.ts +7 -5
- package/dist/mdruntime/actions.d.ts +19 -0
- package/dist/mdruntime/adapter.d.ts +107 -71
- package/dist/mdruntime/attached-model.d.ts +7 -0
- package/dist/mdruntime/bootstrap.d.ts +43 -0
- package/dist/mdruntime/cell.d.ts +5 -0
- package/dist/mdruntime/chain.d.ts +2 -1
- package/dist/mdruntime/change.d.ts +1 -0
- package/dist/mdruntime/client.d.ts +28 -11
- package/dist/mdruntime/collection.d.ts +7 -4
- package/dist/mdruntime/compile.d.ts +6 -6
- package/dist/mdruntime/conversation-live.d.ts +135 -0
- package/dist/mdruntime/conversation-row.d.ts +32 -0
- package/dist/mdruntime/conversation.d.ts +41 -45
- package/dist/mdruntime/durability.d.ts +15 -1
- package/dist/mdruntime/figures.d.ts +48 -0
- package/dist/mdruntime/holdings.d.ts +28 -0
- package/dist/mdruntime/identity.d.ts +0 -1
- package/dist/mdruntime/install.d.ts +55 -0
- package/dist/mdruntime/job.d.ts +32 -0
- package/dist/mdruntime/listing.d.ts +52 -0
- package/dist/mdruntime/live.d.ts +22 -0
- package/dist/mdruntime/log.d.ts +5 -0
- package/dist/mdruntime/media.d.ts +7 -0
- package/dist/mdruntime/messages.d.ts +27 -3
- package/dist/mdruntime/model.d.ts +8 -10
- package/dist/mdruntime/observation.d.ts +3 -2
- package/dist/mdruntime/outcome.d.ts +17 -6
- package/dist/mdruntime/overlay.d.ts +1 -0
- package/dist/mdruntime/preparation.d.ts +19 -0
- package/dist/mdruntime/query.d.ts +18 -208
- package/dist/mdruntime/reach.d.ts +20 -11
- package/dist/mdruntime/readiness.d.ts +3 -18
- package/dist/mdruntime/reads.d.ts +36 -0
- package/dist/mdruntime/recovery.d.ts +1 -0
- package/dist/mdruntime/refresh.d.ts +26 -0
- package/dist/mdruntime/replica.d.ts +11 -12
- package/dist/mdruntime/room-draft.d.ts +21 -7
- package/dist/mdruntime/room-drafts.d.ts +23 -0
- package/dist/mdruntime/runtime.d.ts +42 -0
- package/dist/mdruntime/save.d.ts +7 -1
- package/dist/mdruntime/saves.d.ts +69 -0
- package/dist/mdruntime/search.d.ts +12 -63
- package/dist/mdruntime/seed.d.ts +11 -2
- package/dist/mdruntime/socket/admission.d.ts +6 -0
- package/dist/mdruntime/socket/answers.d.ts +5 -0
- package/dist/mdruntime/socket/lanes.d.ts +19 -0
- package/dist/mdruntime/socket/rooms.d.ts +43 -0
- package/dist/mdruntime/socket/session.d.ts +37 -0
- package/dist/mdruntime/socket.d.ts +69 -0
- package/dist/mdruntime/source.d.ts +60 -0
- package/dist/mdruntime/status.d.ts +4 -5
- package/dist/mdruntime/store/fences.d.ts +15 -0
- package/dist/mdruntime/store/installs.d.ts +29 -0
- package/dist/mdruntime/store/readiness.d.ts +9 -0
- package/dist/mdruntime/store/records.d.ts +211 -0
- package/dist/mdruntime/store/room-held.d.ts +7 -0
- package/dist/mdruntime/store/space.d.ts +10 -0
- package/dist/mdruntime/store/watchers.d.ts +16 -0
- package/dist/mdruntime/store/writes.d.ts +23 -0
- package/dist/mdruntime/store.d.ts +105 -158
- package/dist/mdruntime/stored.d.ts +66 -55
- package/dist/mdruntime/surface.d.ts +87 -0
- package/dist/mdruntime/tables.d.ts +131 -69
- package/dist/mdruntime/tallies.d.ts +17 -0
- package/dist/mdruntime/transfer.d.ts +0 -5
- package/dist/mdruntime/turn.d.ts +8 -0
- package/dist/mdruntime/wire.d.ts +25 -9
- package/dist/test-host.d.ts +1 -4
- package/dist/test-host.js +2 -28
- package/docs/families.md +49 -53
- package/package.json +1 -1
- package/dist/calls.d.ts +0 -1007
- package/dist/calls.js +0 -1
- package/dist/mdmodel/condition.d.ts +0 -160
- package/dist/mdmodel/profile.d.ts +0 -5
- package/dist/mdruntime/connection.d.ts +0 -151
- package/dist/mdruntime/file.d.ts +0 -11
- package/dist/mdruntime/fulltext.d.ts +0 -26
- package/dist/mdruntime/shared.d.ts +0 -15
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,905 @@
|
|
|
1
1
|
import type { MdRuntimeClient, Open } from './mdruntime/client.js';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
export interface HouseMethods {
|
|
3
|
+
readonly "agent-functions/requests/list": {
|
|
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/list": {
|
|
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/list": {
|
|
28
|
+
readonly params: {};
|
|
29
|
+
readonly result: {
|
|
30
|
+
readonly holders: readonly {
|
|
31
|
+
readonly name: string;
|
|
32
|
+
readonly user: string;
|
|
33
|
+
}[];
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
readonly "apps/messages/send": {
|
|
37
|
+
readonly params: {
|
|
38
|
+
readonly body: unknown;
|
|
39
|
+
readonly to: string;
|
|
40
|
+
};
|
|
41
|
+
readonly result: {
|
|
42
|
+
readonly [key: string]: never;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
readonly "apps/relay/read": {
|
|
46
|
+
readonly params: {
|
|
47
|
+
readonly [key: string]: never;
|
|
48
|
+
};
|
|
49
|
+
readonly result: {
|
|
50
|
+
readonly expires_at: string;
|
|
51
|
+
readonly ice_servers: readonly {
|
|
52
|
+
readonly credential: string;
|
|
53
|
+
readonly urls: readonly string[];
|
|
54
|
+
readonly username: string;
|
|
55
|
+
}[];
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
readonly "apps/ring": {
|
|
59
|
+
readonly params: {
|
|
60
|
+
readonly to: string;
|
|
61
|
+
};
|
|
62
|
+
readonly result: {
|
|
63
|
+
readonly authority: string;
|
|
64
|
+
readonly log_epoch: string;
|
|
65
|
+
readonly position: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
readonly "chats/assign": {
|
|
69
|
+
readonly params: {
|
|
70
|
+
readonly assignee: null | {
|
|
71
|
+
readonly agent: string;
|
|
72
|
+
} | {
|
|
73
|
+
readonly user: string;
|
|
74
|
+
};
|
|
75
|
+
readonly operation_id: string;
|
|
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/reply": {
|
|
100
|
+
readonly params: {
|
|
101
|
+
readonly operation_id: string;
|
|
102
|
+
readonly path: string;
|
|
103
|
+
readonly room_ref: string;
|
|
104
|
+
readonly template?: {
|
|
105
|
+
readonly language: string;
|
|
106
|
+
readonly name: string;
|
|
107
|
+
};
|
|
108
|
+
readonly text?: string;
|
|
109
|
+
readonly values?: {
|
|
110
|
+
readonly [key: string]: string;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
readonly result: {
|
|
114
|
+
readonly authority: string;
|
|
115
|
+
readonly log_epoch: string;
|
|
116
|
+
readonly path: string;
|
|
117
|
+
readonly position: string;
|
|
118
|
+
readonly room_ref: string;
|
|
119
|
+
readonly url: string;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
readonly "chats/return": {
|
|
123
|
+
readonly params: {
|
|
124
|
+
readonly path: string;
|
|
125
|
+
readonly room_ref: string;
|
|
126
|
+
};
|
|
127
|
+
readonly result: {
|
|
128
|
+
readonly assignee: null | {
|
|
129
|
+
readonly agent: string;
|
|
130
|
+
readonly name: string;
|
|
131
|
+
} | {
|
|
132
|
+
readonly name: string;
|
|
133
|
+
readonly user: string;
|
|
134
|
+
};
|
|
135
|
+
readonly authority: string;
|
|
136
|
+
readonly log_epoch: string;
|
|
137
|
+
readonly path: string;
|
|
138
|
+
readonly position: string;
|
|
139
|
+
readonly return_to: null | {
|
|
140
|
+
readonly agent: string;
|
|
141
|
+
readonly name: string;
|
|
142
|
+
};
|
|
143
|
+
readonly room_ref: string;
|
|
144
|
+
readonly url: string;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
readonly "chats/take-control": {
|
|
148
|
+
readonly params: {
|
|
149
|
+
readonly operation_id: string;
|
|
150
|
+
readonly path: string;
|
|
151
|
+
readonly room_ref: string;
|
|
152
|
+
};
|
|
153
|
+
readonly result: {
|
|
154
|
+
readonly assignee: null | {
|
|
155
|
+
readonly agent: string;
|
|
156
|
+
readonly name: string;
|
|
157
|
+
} | {
|
|
158
|
+
readonly name: string;
|
|
159
|
+
readonly user: string;
|
|
160
|
+
};
|
|
161
|
+
readonly authority: string;
|
|
162
|
+
readonly log_epoch: string;
|
|
163
|
+
readonly path: string;
|
|
164
|
+
readonly position: string;
|
|
165
|
+
readonly return_to: null | {
|
|
166
|
+
readonly agent: string;
|
|
167
|
+
readonly name: string;
|
|
168
|
+
};
|
|
169
|
+
readonly room_ref: string;
|
|
170
|
+
readonly url: string;
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
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
|
+
};
|
|
187
|
+
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
|
+
};
|
|
217
|
+
};
|
|
218
|
+
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
|
+
};
|
|
380
|
+
};
|
|
381
|
+
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
|
+
};
|
|
399
|
+
};
|
|
400
|
+
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
|
+
};
|
|
413
|
+
};
|
|
414
|
+
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
|
+
};
|
|
427
|
+
};
|
|
428
|
+
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
|
+
};
|
|
443
|
+
};
|
|
444
|
+
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
|
+
};
|
|
459
|
+
};
|
|
460
|
+
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
|
+
};
|
|
475
|
+
};
|
|
476
|
+
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
|
+
};
|
|
491
|
+
};
|
|
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
|
+
};
|
|
506
|
+
};
|
|
507
|
+
readonly "rooms/access/list": {
|
|
508
|
+
readonly params: {
|
|
509
|
+
readonly room_ref: string;
|
|
510
|
+
};
|
|
511
|
+
readonly result: {
|
|
512
|
+
readonly authority: "administrator" | "member" | "owner";
|
|
513
|
+
readonly members: readonly {
|
|
514
|
+
readonly admitted_at: null | string;
|
|
515
|
+
readonly direct: readonly {
|
|
516
|
+
readonly level: null | "keep" | "open" | "search";
|
|
517
|
+
readonly namespace: string;
|
|
518
|
+
readonly operations: readonly ("erase" | "export" | "manageAccess" | "write")[];
|
|
519
|
+
}[];
|
|
520
|
+
readonly entries: readonly {
|
|
521
|
+
readonly level: null | "keep" | "open" | "search";
|
|
522
|
+
readonly namespace: string;
|
|
523
|
+
readonly operations: readonly ("erase" | "export" | "manageAccess" | "write")[];
|
|
524
|
+
readonly sources: readonly {
|
|
525
|
+
readonly kind: "direct" | "inherited";
|
|
526
|
+
readonly level: null | "keep" | "open" | "search";
|
|
527
|
+
readonly namespace: string;
|
|
528
|
+
readonly operations: readonly ("erase" | "export" | "manageAccess" | "write")[];
|
|
529
|
+
}[];
|
|
530
|
+
}[];
|
|
531
|
+
readonly key: null | string;
|
|
532
|
+
readonly schema_roles: readonly string[];
|
|
533
|
+
readonly through_space?: true;
|
|
534
|
+
readonly user: string;
|
|
535
|
+
readonly user_name: string;
|
|
536
|
+
}[];
|
|
537
|
+
readonly namespaces: readonly string[];
|
|
538
|
+
readonly owner: string;
|
|
539
|
+
readonly room_ref: string;
|
|
540
|
+
readonly url: string;
|
|
541
|
+
readonly viewer: string;
|
|
542
|
+
};
|
|
543
|
+
};
|
|
544
|
+
readonly "rooms/members/list": {
|
|
545
|
+
readonly params: {
|
|
546
|
+
readonly history?: boolean;
|
|
547
|
+
readonly room_ref: string;
|
|
548
|
+
};
|
|
549
|
+
readonly result: {
|
|
550
|
+
readonly history?: readonly {
|
|
551
|
+
readonly at: string;
|
|
552
|
+
readonly kind: "granted" | "revoked";
|
|
553
|
+
readonly user: string;
|
|
554
|
+
}[];
|
|
555
|
+
readonly members: readonly {
|
|
556
|
+
readonly access?: "manage" | "owner" | "read" | "write";
|
|
557
|
+
readonly copies?: "online_only" | "search_only";
|
|
558
|
+
readonly display_name: string;
|
|
559
|
+
readonly email?: string;
|
|
560
|
+
readonly member_document: null | string;
|
|
561
|
+
readonly owner: boolean;
|
|
562
|
+
readonly schema_roles?: readonly string[];
|
|
563
|
+
readonly since: null | string;
|
|
564
|
+
readonly through_space?: true;
|
|
565
|
+
readonly user: string;
|
|
566
|
+
}[];
|
|
567
|
+
};
|
|
568
|
+
};
|
|
569
|
+
readonly "rooms/settings/processing/read": {
|
|
570
|
+
readonly params: {
|
|
571
|
+
readonly path: string;
|
|
572
|
+
readonly room_ref: string;
|
|
573
|
+
};
|
|
574
|
+
readonly result: {
|
|
575
|
+
readonly embedding: {
|
|
576
|
+
readonly condition: null | {
|
|
577
|
+
readonly kind: "demand_failed" | "embed_again_failed";
|
|
578
|
+
readonly path: string;
|
|
579
|
+
};
|
|
580
|
+
readonly embedding_estimate: null | {
|
|
581
|
+
readonly documents: number;
|
|
582
|
+
readonly measured_tokens: number;
|
|
583
|
+
readonly unmeasured_documents: number;
|
|
584
|
+
};
|
|
585
|
+
readonly finished: boolean;
|
|
586
|
+
readonly indexed_chunks: number;
|
|
587
|
+
};
|
|
588
|
+
readonly explicit: readonly {
|
|
589
|
+
readonly path: string;
|
|
590
|
+
readonly policy: "Off" | "On";
|
|
591
|
+
}[];
|
|
592
|
+
readonly path: string;
|
|
593
|
+
readonly policy: {
|
|
594
|
+
readonly from: null | string;
|
|
595
|
+
readonly origin: "default" | "explicit" | "inherited";
|
|
596
|
+
readonly reason: null | "room_too_large" | "unfunded";
|
|
597
|
+
readonly value: "Off" | "On";
|
|
598
|
+
};
|
|
599
|
+
readonly writable: boolean;
|
|
600
|
+
};
|
|
601
|
+
};
|
|
602
|
+
readonly "sites/submissions/create": {
|
|
603
|
+
readonly params: {
|
|
604
|
+
readonly content: string;
|
|
605
|
+
};
|
|
606
|
+
readonly result: {
|
|
607
|
+
readonly submitted: true;
|
|
608
|
+
};
|
|
609
|
+
};
|
|
610
|
+
readonly "storage/inventory/read": {
|
|
611
|
+
readonly params: {
|
|
612
|
+
readonly room_ref?: string;
|
|
613
|
+
readonly rooms?: "owned";
|
|
614
|
+
};
|
|
615
|
+
readonly result: {
|
|
616
|
+
readonly blob: {
|
|
617
|
+
readonly bytes: string;
|
|
618
|
+
readonly gigabytes: string;
|
|
619
|
+
};
|
|
620
|
+
readonly freshness: {
|
|
621
|
+
readonly state: "settled";
|
|
622
|
+
};
|
|
623
|
+
readonly indexed_text: {
|
|
624
|
+
readonly approximate_pages: null | string;
|
|
625
|
+
readonly bytes: string;
|
|
626
|
+
readonly gigabytes: string;
|
|
627
|
+
};
|
|
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
|
+
readonly room_ref: string;
|
|
638
|
+
readonly total: {
|
|
639
|
+
readonly bytes: string;
|
|
640
|
+
readonly gigabytes: string;
|
|
641
|
+
};
|
|
642
|
+
readonly url: string;
|
|
643
|
+
} | {
|
|
644
|
+
readonly blob: {
|
|
645
|
+
readonly bytes: string;
|
|
646
|
+
readonly gigabytes: string;
|
|
647
|
+
};
|
|
648
|
+
readonly freshness: {
|
|
649
|
+
readonly state: "settled";
|
|
650
|
+
};
|
|
651
|
+
readonly indexed_text: {
|
|
652
|
+
readonly approximate_pages: null | string;
|
|
653
|
+
readonly bytes: string;
|
|
654
|
+
readonly gigabytes: string;
|
|
655
|
+
};
|
|
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
|
+
readonly rooms?: readonly {
|
|
666
|
+
readonly blob: {
|
|
667
|
+
readonly bytes: string;
|
|
668
|
+
readonly gigabytes: string;
|
|
669
|
+
};
|
|
670
|
+
readonly freshness: {
|
|
671
|
+
readonly state: "settled";
|
|
672
|
+
};
|
|
673
|
+
readonly indexed_text: {
|
|
674
|
+
readonly approximate_pages: null | string;
|
|
675
|
+
readonly bytes: string;
|
|
676
|
+
readonly gigabytes: string;
|
|
677
|
+
};
|
|
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
|
+
readonly room_ref: string;
|
|
688
|
+
readonly total: {
|
|
689
|
+
readonly bytes: string;
|
|
690
|
+
readonly gigabytes: string;
|
|
691
|
+
};
|
|
692
|
+
readonly url: string;
|
|
693
|
+
}[];
|
|
694
|
+
readonly site_images: {
|
|
695
|
+
readonly bound: string;
|
|
696
|
+
readonly bytes: string;
|
|
697
|
+
readonly payloads: string;
|
|
698
|
+
};
|
|
699
|
+
readonly total: {
|
|
700
|
+
readonly bytes: string;
|
|
701
|
+
readonly gigabytes: string;
|
|
702
|
+
};
|
|
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
|
+
};
|
|
759
|
+
};
|
|
760
|
+
readonly "triggers/fired/list": {
|
|
761
|
+
readonly params: {
|
|
762
|
+
readonly room_ref?: string;
|
|
763
|
+
};
|
|
764
|
+
readonly result: {
|
|
765
|
+
readonly events: readonly {
|
|
766
|
+
readonly actions: readonly ({
|
|
767
|
+
readonly cap: "address_submissions" | "app_sockets" | "environment_functions" | "export_starts" | "kit_connections" | "live_shares" | "open_uploads" | "ownership_offers" | "push_addresses" | "push_deliveries" | "room_triggers" | "service_keys" | "share_creations" | "share_room_creations" | "site_published_bytes" | "site_rooms" | "slot_rooms" | "spaces" | "waiting_web_wizards" | "writes";
|
|
768
|
+
readonly code: "cap_reached";
|
|
769
|
+
readonly outcome: "refused";
|
|
770
|
+
readonly position: number;
|
|
771
|
+
readonly retry_at: string;
|
|
772
|
+
} | {
|
|
773
|
+
readonly cap: "address_submissions" | "app_sockets" | "environment_functions" | "export_starts" | "kit_connections" | "live_shares" | "open_uploads" | "ownership_offers" | "push_addresses" | "push_deliveries" | "room_triggers" | "service_keys" | "share_creations" | "share_room_creations" | "site_published_bytes" | "site_rooms" | "slot_rooms" | "spaces" | "waiting_web_wizards" | "writes";
|
|
774
|
+
readonly code: "cap_reached";
|
|
775
|
+
readonly outcome: "refused";
|
|
776
|
+
readonly position: number;
|
|
777
|
+
} | {
|
|
778
|
+
readonly code: "agent_unavailable";
|
|
779
|
+
readonly outcome: "withdrawn";
|
|
780
|
+
readonly position: number;
|
|
781
|
+
} | {
|
|
782
|
+
readonly code: "function_failed";
|
|
783
|
+
readonly cut?: boolean;
|
|
784
|
+
readonly error: string;
|
|
785
|
+
readonly exit_code?: number;
|
|
786
|
+
readonly final: true;
|
|
787
|
+
readonly outcome: "failed";
|
|
788
|
+
readonly output?: string;
|
|
789
|
+
readonly position: number;
|
|
790
|
+
readonly run: string;
|
|
791
|
+
} | {
|
|
792
|
+
readonly code: "function_failed";
|
|
793
|
+
readonly error: string;
|
|
794
|
+
readonly final: true;
|
|
795
|
+
readonly outcome: "failed";
|
|
796
|
+
readonly position: number;
|
|
797
|
+
readonly release: string;
|
|
798
|
+
} | {
|
|
799
|
+
readonly code: "function_not_started";
|
|
800
|
+
readonly final?: true;
|
|
801
|
+
readonly outcome: "failed";
|
|
802
|
+
readonly position: number;
|
|
803
|
+
readonly tries: number;
|
|
804
|
+
} | {
|
|
805
|
+
readonly code: "limit_reached";
|
|
806
|
+
readonly limit: "reads";
|
|
807
|
+
readonly outcome: "refused";
|
|
808
|
+
readonly period: "day" | "minute";
|
|
809
|
+
readonly position: number;
|
|
810
|
+
readonly retry_at: string;
|
|
811
|
+
readonly value: string;
|
|
812
|
+
} | {
|
|
813
|
+
readonly code: "limit_reached";
|
|
814
|
+
readonly limit: "writes";
|
|
815
|
+
readonly outcome: "refused";
|
|
816
|
+
readonly period: "day" | "minute";
|
|
817
|
+
readonly position: number;
|
|
818
|
+
readonly retry_at: string;
|
|
819
|
+
} | {
|
|
820
|
+
readonly code: "limit_reached";
|
|
821
|
+
readonly limit: "blob" | "indexed_text";
|
|
822
|
+
readonly outcome: "refused";
|
|
823
|
+
readonly position: number;
|
|
824
|
+
readonly used: string;
|
|
825
|
+
readonly value: string;
|
|
826
|
+
} | {
|
|
827
|
+
readonly code: "limit_reached";
|
|
828
|
+
readonly limit: "custom_domains" | "external_calls" | "publish_data" | "sites";
|
|
829
|
+
readonly outcome: "refused";
|
|
830
|
+
readonly position: number;
|
|
831
|
+
readonly retry_at: string;
|
|
832
|
+
} | {
|
|
833
|
+
readonly code: "limit_reached";
|
|
834
|
+
readonly limit: "custom_domains" | "external_calls" | "publish_data" | "sites";
|
|
835
|
+
readonly outcome: "refused";
|
|
836
|
+
readonly position: number;
|
|
837
|
+
} | {
|
|
838
|
+
readonly code: "agent_function_request_not_started" | "internal_error";
|
|
839
|
+
readonly outcome: "failed";
|
|
840
|
+
readonly position: number;
|
|
841
|
+
} | {
|
|
842
|
+
readonly code: "agent_function_retired" | "environment_offline" | "no_recipient" | "not_found" | "target_agent_unavailable";
|
|
843
|
+
readonly outcome: "no_target";
|
|
844
|
+
readonly position: number;
|
|
845
|
+
} | {
|
|
846
|
+
readonly code: string;
|
|
847
|
+
readonly outcome: "refused";
|
|
848
|
+
readonly position: number;
|
|
849
|
+
} | {
|
|
850
|
+
readonly conversations: number;
|
|
851
|
+
readonly outcome: "marked";
|
|
852
|
+
readonly position: number;
|
|
853
|
+
} | {
|
|
854
|
+
readonly cut?: boolean;
|
|
855
|
+
readonly exit_code?: number;
|
|
856
|
+
readonly outcome: "ran";
|
|
857
|
+
readonly output?: string;
|
|
858
|
+
readonly position: number;
|
|
859
|
+
readonly run: string;
|
|
860
|
+
} | {
|
|
861
|
+
readonly outcome: "continued";
|
|
862
|
+
readonly position: number;
|
|
863
|
+
readonly request: string;
|
|
864
|
+
} | {
|
|
865
|
+
readonly outcome: "notified";
|
|
866
|
+
readonly position: number;
|
|
867
|
+
readonly reached: number;
|
|
868
|
+
} | {
|
|
869
|
+
readonly outcome: "paused";
|
|
870
|
+
readonly position: number;
|
|
871
|
+
} | {
|
|
872
|
+
readonly outcome: "ran";
|
|
873
|
+
readonly position: number;
|
|
874
|
+
readonly release: string;
|
|
875
|
+
} | {
|
|
876
|
+
readonly outcome: "requested";
|
|
877
|
+
readonly position: number;
|
|
878
|
+
readonly request: string;
|
|
879
|
+
} | {
|
|
880
|
+
readonly outcome: "running";
|
|
881
|
+
readonly position: number;
|
|
882
|
+
readonly release: string;
|
|
883
|
+
} | {
|
|
884
|
+
readonly outcome: "running";
|
|
885
|
+
readonly position: number;
|
|
886
|
+
readonly run: string;
|
|
887
|
+
} | {
|
|
888
|
+
readonly outcome: "waiting";
|
|
889
|
+
readonly position: number;
|
|
890
|
+
})[];
|
|
891
|
+
readonly code?: "cap_reached";
|
|
892
|
+
readonly created_at: string;
|
|
893
|
+
readonly missed?: "failed" | "skipped";
|
|
894
|
+
readonly moment?: string;
|
|
895
|
+
readonly path?: string;
|
|
896
|
+
readonly room_ref?: string;
|
|
897
|
+
readonly trigger: string;
|
|
898
|
+
readonly url?: string;
|
|
899
|
+
}[];
|
|
900
|
+
};
|
|
901
|
+
};
|
|
902
|
+
}
|
|
4
903
|
export type HouseParams<Name extends string> = Name extends keyof HouseMethods ? HouseMethods[Name]['params'] : unknown;
|
|
5
904
|
type CallResult = Awaited<ReturnType<MdRuntimeClient['call']>>;
|
|
6
905
|
export type HouseResult<Name extends string> = Exclude<CallResult, {
|
|
@@ -21,7 +920,7 @@ export interface HouseCredentialState {
|
|
|
21
920
|
readonly state: Open<'none' | 'held' | 'rejected'>;
|
|
22
921
|
readonly expiresAt: number | null;
|
|
23
922
|
}
|
|
24
|
-
export type HouseDatabaseFailure = 'unsupported' | 'damaged'
|
|
923
|
+
export type HouseDatabaseFailure = 'unsupported' | 'damaged';
|
|
25
924
|
export type HouseAnalyticsChoice = 'accept' | 'decline';
|
|
26
925
|
export interface HouseAnalytics {
|
|
27
926
|
readonly measures: boolean;
|
|
@@ -38,7 +937,6 @@ export interface HouseStatus {
|
|
|
38
937
|
readonly sync: HouseSyncState | null;
|
|
39
938
|
readonly refusal: {
|
|
40
939
|
readonly code: string;
|
|
41
|
-
readonly retryable: boolean;
|
|
42
940
|
} | null;
|
|
43
941
|
readonly loss: string | null;
|
|
44
942
|
readonly database: Open<HouseDatabaseFailure> | null;
|
|
@@ -80,8 +978,6 @@ export interface HouseExternalRequest {
|
|
|
80
978
|
readonly headers?: Readonly<Record<string, string>>;
|
|
81
979
|
readonly body?: string;
|
|
82
980
|
readonly body_base64?: string;
|
|
83
|
-
readonly account?: string;
|
|
84
|
-
readonly slot?: string;
|
|
85
981
|
readonly room_ref?: string;
|
|
86
982
|
}
|
|
87
983
|
export type HouseExternalAnswer = {
|
|
@@ -104,6 +1000,11 @@ export interface HouseAppMessage {
|
|
|
104
1000
|
}
|
|
105
1001
|
export type HouseInstallation = Open<'accepted' | 'dismissed' | 'manual'>;
|
|
106
1002
|
export type HouseNotifications = Open<'on' | 'off' | 'blocked' | 'unavailable'>;
|
|
1003
|
+
export interface HouseTelegram {
|
|
1004
|
+
readonly state: Open<'available' | 'linked' | 'unavailable'>;
|
|
1005
|
+
readonly name: string | null;
|
|
1006
|
+
readonly username: string | null;
|
|
1007
|
+
}
|
|
107
1008
|
export interface HouseCeremonyRefused extends Error {
|
|
108
1009
|
readonly name: 'HouseCeremonyRefused';
|
|
109
1010
|
readonly code: Open<'house_ceremony_refused'>;
|
|
@@ -120,19 +1021,8 @@ export interface HouseBrowserRefused extends Error {
|
|
|
120
1021
|
readonly code: string;
|
|
121
1022
|
readonly retryable: boolean;
|
|
122
1023
|
}
|
|
123
|
-
export interface HouseTrialWithheld {
|
|
124
|
-
readonly code: Open<'house_trial_withheld'>;
|
|
125
|
-
readonly retryable: true;
|
|
126
|
-
}
|
|
127
|
-
export type HouseTask = unknown;
|
|
128
|
-
export type HouseActivation = Open<'committed' | 'abandoned'>;
|
|
129
1024
|
export interface HouseCooperation {
|
|
130
|
-
|
|
131
|
-
persist(): Promise<void> | void;
|
|
132
|
-
capture(): Promise<HouseTask> | HouseTask;
|
|
133
|
-
restore(task: HouseTask | null): Promise<void> | void;
|
|
134
|
-
ready(): Promise<boolean> | boolean;
|
|
135
|
-
settle(activation: HouseActivation): void;
|
|
1025
|
+
placed(): Promise<void> | void;
|
|
136
1026
|
}
|
|
137
1027
|
export type HouseChatWidth = 'full' | '3/4' | '1/2' | '1/3';
|
|
138
1028
|
export interface HouseChatOpened {
|
|
@@ -164,7 +1054,7 @@ export interface HouseBridge {
|
|
|
164
1054
|
ceremony(path: string): Promise<never>;
|
|
165
1055
|
install(): Promise<HouseInstallation>;
|
|
166
1056
|
notifications(on?: boolean): Promise<HouseNotifications>;
|
|
167
|
-
|
|
1057
|
+
telegram(link?: true): Promise<HouseTelegram>;
|
|
168
1058
|
setTab(tab: HouseTab): void;
|
|
169
1059
|
sourceTop(app: string, release?: string): Promise<HouseSourceTop | HouseRefusal | null>;
|
|
170
1060
|
sourceDownload(app: string, release?: string): Promise<HouseSourceDownload | HouseRefusal | null>;
|
|
@@ -181,3 +1071,4 @@ export interface HouseHeld {
|
|
|
181
1071
|
readonly houseBridge: HouseBridge;
|
|
182
1072
|
}
|
|
183
1073
|
export declare const houseBridge: () => HouseBridge;
|
|
1074
|
+
export {};
|