@agentshouse/app-bridge 0.1.0-cf2e2ca943fbc → 0.1.0-cf394d5f43f7c
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 +20 -15
- package/dist/index.d.ts +983 -0
- package/dist/index.js +1 -0
- package/dist/mdmodel/blocks.d.ts +10 -0
- package/dist/mdmodel/condition.d.ts +180 -0
- package/dist/mdmodel/definition.d.ts +81 -0
- package/dist/mdmodel/divide.d.ts +2 -0
- package/dist/mdmodel/document.d.ts +15 -0
- package/dist/mdmodel/fields.d.ts +5 -0
- package/dist/mdmodel/index.d.ts +20 -0
- package/dist/mdmodel/links.d.ts +28 -0
- package/dist/mdmodel/paths.d.ts +25 -0
- package/dist/mdmodel/profile.d.ts +5 -0
- package/dist/mdmodel/project.d.ts +21 -0
- package/dist/mdmodel/references.d.ts +3 -0
- package/dist/mdmodel/types.d.ts +167 -0
- package/dist/mdmodel/validate.d.ts +31 -0
- package/dist/mdmodel/version.d.ts +1 -0
- package/dist/mdmodel/yaml.d.ts +55 -0
- package/dist/mdruntime/adapter.d.ts +530 -0
- package/dist/mdruntime/binary.d.ts +17 -0
- package/dist/mdruntime/chain.d.ts +10 -0
- package/dist/mdruntime/change-set.d.ts +27 -0
- package/dist/mdruntime/change.d.ts +118 -0
- package/dist/mdruntime/client.d.ts +90 -0
- package/dist/mdruntime/collection.d.ts +27 -0
- package/dist/mdruntime/compile.d.ts +15 -0
- package/dist/mdruntime/connection.d.ts +153 -0
- package/dist/mdruntime/conversation.d.ts +118 -0
- package/dist/mdruntime/durability.d.ts +11 -0
- package/dist/mdruntime/failure.d.ts +12 -0
- package/dist/mdruntime/fulltext.d.ts +26 -0
- package/dist/mdruntime/identity.d.ts +6 -0
- package/dist/mdruntime/media.d.ts +7 -0
- package/dist/mdruntime/messages.d.ts +27 -0
- package/dist/mdruntime/model.d.ts +62 -0
- package/dist/mdruntime/observation.d.ts +44 -0
- package/dist/mdruntime/open.d.ts +1 -0
- package/dist/mdruntime/opened.d.ts +21 -0
- package/dist/mdruntime/outcome.d.ts +84 -0
- package/dist/mdruntime/overlay.d.ts +24 -0
- package/dist/mdruntime/query.d.ts +283 -0
- package/dist/mdruntime/reach.d.ts +53 -0
- package/dist/mdruntime/readiness.d.ts +51 -0
- package/dist/mdruntime/recovery.d.ts +25 -0
- package/dist/mdruntime/replica.d.ts +67 -0
- package/dist/mdruntime/room-draft.d.ts +173 -0
- package/dist/mdruntime/save.d.ts +102 -0
- package/dist/mdruntime/search.d.ts +72 -0
- package/dist/mdruntime/seed.d.ts +15 -0
- package/dist/mdruntime/status.d.ts +27 -0
- package/dist/mdruntime/store.d.ts +154 -0
- package/dist/mdruntime/stored.d.ts +129 -0
- package/dist/mdruntime/tables.d.ts +324 -0
- package/dist/mdruntime/wire.d.ts +235 -0
- package/dist/{client/src/test-host.d.ts → test-host.d.ts} +10 -8
- package/dist/test-host.js +190 -0
- package/docs/families.md +87 -42
- package/package.json +12 -10
- package/dist/client/src/bridge.d.ts +0 -38
- package/dist/client/src/bridge.js +0 -320
- package/dist/client/src/index.d.ts +0 -3
- package/dist/client/src/index.js +0 -2
- package/dist/client/src/test-host.js +0 -185
- package/dist/client/src/wire.d.ts +0 -215
- package/dist/client/src/wire.js +0 -1
- package/dist/src/apps/remainder.d.ts +0 -2
- package/dist/src/apps/remainder.js +0 -16
- package/dist/src/apps/tab.d.ts +0 -6
- package/dist/src/apps/tab.js +0 -27
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,983 @@
|
|
|
1
|
+
import type { MdRuntimeClient, Open } from './mdruntime/client.js';
|
|
2
|
+
export interface HouseMethods {
|
|
3
|
+
readonly "apps/features/read": {
|
|
4
|
+
readonly params: {};
|
|
5
|
+
readonly result: {
|
|
6
|
+
readonly features: readonly {
|
|
7
|
+
readonly allowed: boolean;
|
|
8
|
+
readonly feature: string;
|
|
9
|
+
}[];
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
readonly "apps/holders": {
|
|
13
|
+
readonly params: {};
|
|
14
|
+
readonly result: {
|
|
15
|
+
readonly holders: readonly {
|
|
16
|
+
readonly email: string;
|
|
17
|
+
readonly name: string;
|
|
18
|
+
readonly user: string;
|
|
19
|
+
}[];
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
readonly "apps/messages/send": {
|
|
23
|
+
readonly params: {
|
|
24
|
+
readonly body: unknown;
|
|
25
|
+
readonly to: string;
|
|
26
|
+
};
|
|
27
|
+
readonly result: {
|
|
28
|
+
readonly [key: string]: never;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
readonly "apps/relay": {
|
|
32
|
+
readonly params: {
|
|
33
|
+
readonly [key: string]: never;
|
|
34
|
+
};
|
|
35
|
+
readonly result: {
|
|
36
|
+
readonly expires_at: string;
|
|
37
|
+
readonly ice_servers: readonly {
|
|
38
|
+
readonly credential: string;
|
|
39
|
+
readonly urls: readonly string[];
|
|
40
|
+
readonly username: string;
|
|
41
|
+
}[];
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
readonly "apps/ring": {
|
|
45
|
+
readonly params: {
|
|
46
|
+
readonly to: string;
|
|
47
|
+
};
|
|
48
|
+
readonly result: {
|
|
49
|
+
readonly authority: string;
|
|
50
|
+
readonly log_epoch: string;
|
|
51
|
+
readonly position: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
readonly "chats/assign": {
|
|
55
|
+
readonly params: {
|
|
56
|
+
readonly assignee: null | {
|
|
57
|
+
readonly agent: string;
|
|
58
|
+
} | {
|
|
59
|
+
readonly user: string;
|
|
60
|
+
};
|
|
61
|
+
readonly path: string;
|
|
62
|
+
readonly room_ref: string;
|
|
63
|
+
};
|
|
64
|
+
readonly result: {
|
|
65
|
+
readonly assignee: null | {
|
|
66
|
+
readonly agent: string;
|
|
67
|
+
readonly name: string;
|
|
68
|
+
} | {
|
|
69
|
+
readonly name: string;
|
|
70
|
+
readonly user: string;
|
|
71
|
+
};
|
|
72
|
+
readonly authority: string;
|
|
73
|
+
readonly log_epoch: string;
|
|
74
|
+
readonly path: string;
|
|
75
|
+
readonly position: string;
|
|
76
|
+
readonly return_to: null | {
|
|
77
|
+
readonly agent: string;
|
|
78
|
+
readonly name: string;
|
|
79
|
+
};
|
|
80
|
+
readonly room_ref: string;
|
|
81
|
+
readonly url: string;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
readonly "chats/return": {
|
|
85
|
+
readonly params: {
|
|
86
|
+
readonly path: string;
|
|
87
|
+
readonly room_ref: string;
|
|
88
|
+
};
|
|
89
|
+
readonly result: {
|
|
90
|
+
readonly assignee: null | {
|
|
91
|
+
readonly agent: string;
|
|
92
|
+
readonly name: string;
|
|
93
|
+
} | {
|
|
94
|
+
readonly name: string;
|
|
95
|
+
readonly user: string;
|
|
96
|
+
};
|
|
97
|
+
readonly authority: string;
|
|
98
|
+
readonly log_epoch: string;
|
|
99
|
+
readonly path: string;
|
|
100
|
+
readonly position: string;
|
|
101
|
+
readonly return_to: null | {
|
|
102
|
+
readonly agent: string;
|
|
103
|
+
readonly name: string;
|
|
104
|
+
};
|
|
105
|
+
readonly room_ref: string;
|
|
106
|
+
readonly url: string;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
readonly "chats/take-control": {
|
|
110
|
+
readonly params: {
|
|
111
|
+
readonly path: string;
|
|
112
|
+
readonly room_ref: string;
|
|
113
|
+
};
|
|
114
|
+
readonly result: {
|
|
115
|
+
readonly assignee: null | {
|
|
116
|
+
readonly agent: string;
|
|
117
|
+
readonly name: string;
|
|
118
|
+
} | {
|
|
119
|
+
readonly name: string;
|
|
120
|
+
readonly user: string;
|
|
121
|
+
};
|
|
122
|
+
readonly authority: string;
|
|
123
|
+
readonly log_epoch: string;
|
|
124
|
+
readonly path: string;
|
|
125
|
+
readonly position: string;
|
|
126
|
+
readonly return_to: null | {
|
|
127
|
+
readonly agent: string;
|
|
128
|
+
readonly name: string;
|
|
129
|
+
};
|
|
130
|
+
readonly room_ref: string;
|
|
131
|
+
readonly url: string;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
readonly "conversations/create": {
|
|
135
|
+
readonly params: {
|
|
136
|
+
readonly agent_id: string;
|
|
137
|
+
readonly operation_id: string;
|
|
138
|
+
readonly replaces?: string;
|
|
139
|
+
};
|
|
140
|
+
readonly result: {
|
|
141
|
+
readonly agent_id: string;
|
|
142
|
+
readonly authority: string;
|
|
143
|
+
readonly conversation_id: string;
|
|
144
|
+
readonly log_epoch: string;
|
|
145
|
+
readonly position: string;
|
|
146
|
+
readonly url: string;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
readonly "conversations/delete": {
|
|
150
|
+
readonly params: {
|
|
151
|
+
readonly conversation_id: string;
|
|
152
|
+
readonly operation_id: string;
|
|
153
|
+
};
|
|
154
|
+
readonly result: {
|
|
155
|
+
readonly authority: string;
|
|
156
|
+
readonly conversation_id: string;
|
|
157
|
+
readonly log_epoch: string;
|
|
158
|
+
readonly outcome: "deleted";
|
|
159
|
+
readonly position: string;
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
readonly "conversations/done": {
|
|
163
|
+
readonly params: {
|
|
164
|
+
readonly conversation_id?: string;
|
|
165
|
+
readonly operation_id: string;
|
|
166
|
+
};
|
|
167
|
+
readonly result: {
|
|
168
|
+
readonly agent_id: string;
|
|
169
|
+
readonly authority: string;
|
|
170
|
+
readonly conversation_id: string;
|
|
171
|
+
readonly done: null | string;
|
|
172
|
+
readonly log_epoch: string;
|
|
173
|
+
readonly position: string;
|
|
174
|
+
readonly url: string;
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
readonly "conversations/history": {
|
|
178
|
+
readonly params: {
|
|
179
|
+
readonly conversations: readonly {
|
|
180
|
+
readonly after?: {
|
|
181
|
+
readonly accepted_at: string;
|
|
182
|
+
readonly message_id: string;
|
|
183
|
+
};
|
|
184
|
+
readonly conversation_id: string;
|
|
185
|
+
}[];
|
|
186
|
+
readonly limit?: number;
|
|
187
|
+
};
|
|
188
|
+
readonly result: {
|
|
189
|
+
readonly histories: readonly {
|
|
190
|
+
readonly agent_id: string;
|
|
191
|
+
readonly conversation_id: string;
|
|
192
|
+
readonly messages: readonly {
|
|
193
|
+
readonly accepted_at: string;
|
|
194
|
+
readonly context: null | {
|
|
195
|
+
readonly used: number;
|
|
196
|
+
readonly window: number;
|
|
197
|
+
};
|
|
198
|
+
readonly conversation_id: string;
|
|
199
|
+
readonly failure: null | string;
|
|
200
|
+
readonly message_id: string;
|
|
201
|
+
readonly parts: readonly ({
|
|
202
|
+
readonly command: string;
|
|
203
|
+
readonly target: null | string;
|
|
204
|
+
readonly type: "message";
|
|
205
|
+
} | {
|
|
206
|
+
readonly count: number;
|
|
207
|
+
readonly type: "commands";
|
|
208
|
+
} | {
|
|
209
|
+
readonly description: string;
|
|
210
|
+
readonly result: null | string;
|
|
211
|
+
readonly status: "done" | "running";
|
|
212
|
+
readonly type: "subagent";
|
|
213
|
+
} | {
|
|
214
|
+
readonly entries: readonly {
|
|
215
|
+
readonly content: string;
|
|
216
|
+
readonly status: string;
|
|
217
|
+
}[];
|
|
218
|
+
readonly type: "plan";
|
|
219
|
+
} | {
|
|
220
|
+
readonly file: string;
|
|
221
|
+
readonly media_type: string;
|
|
222
|
+
readonly name: string;
|
|
223
|
+
readonly type: "image";
|
|
224
|
+
} | {
|
|
225
|
+
readonly marker: "compaction" | "job" | "mode" | "model" | "retry";
|
|
226
|
+
readonly text: string;
|
|
227
|
+
readonly type: "marker";
|
|
228
|
+
} | {
|
|
229
|
+
readonly text: string;
|
|
230
|
+
readonly type: "reasoning";
|
|
231
|
+
} | {
|
|
232
|
+
readonly text: string;
|
|
233
|
+
readonly type: "text";
|
|
234
|
+
})[];
|
|
235
|
+
readonly role: "assistant" | "house" | "user";
|
|
236
|
+
readonly sender?: "conversation" | "customer" | "owner" | "report" | "requester" | "trigger";
|
|
237
|
+
readonly source?: {
|
|
238
|
+
readonly agent: {
|
|
239
|
+
readonly id: string;
|
|
240
|
+
readonly name: string;
|
|
241
|
+
readonly url: string;
|
|
242
|
+
};
|
|
243
|
+
readonly approved_at?: string;
|
|
244
|
+
readonly declined_at?: string;
|
|
245
|
+
readonly kind: "mail";
|
|
246
|
+
readonly owner: {
|
|
247
|
+
readonly name: string;
|
|
248
|
+
readonly user: string;
|
|
249
|
+
};
|
|
250
|
+
readonly request: string;
|
|
251
|
+
readonly room: string;
|
|
252
|
+
} | {
|
|
253
|
+
readonly agent: {
|
|
254
|
+
readonly id: string;
|
|
255
|
+
readonly name: string;
|
|
256
|
+
readonly url: string;
|
|
257
|
+
};
|
|
258
|
+
readonly conversation: {
|
|
259
|
+
readonly id: string;
|
|
260
|
+
readonly name: string;
|
|
261
|
+
readonly url: string;
|
|
262
|
+
};
|
|
263
|
+
readonly kind: "conversation";
|
|
264
|
+
} | {
|
|
265
|
+
readonly agent: {
|
|
266
|
+
readonly id: string;
|
|
267
|
+
readonly name: string;
|
|
268
|
+
readonly url: string;
|
|
269
|
+
};
|
|
270
|
+
readonly kind: "declined";
|
|
271
|
+
readonly owner: {
|
|
272
|
+
readonly name: string;
|
|
273
|
+
readonly user: string;
|
|
274
|
+
};
|
|
275
|
+
readonly request: string;
|
|
276
|
+
} | {
|
|
277
|
+
readonly approved_at: null | string;
|
|
278
|
+
readonly kind: "request";
|
|
279
|
+
readonly request: string;
|
|
280
|
+
readonly requester: {
|
|
281
|
+
readonly name: string;
|
|
282
|
+
readonly room: string;
|
|
283
|
+
readonly url: string;
|
|
284
|
+
} | {
|
|
285
|
+
readonly name: string;
|
|
286
|
+
readonly user: string;
|
|
287
|
+
};
|
|
288
|
+
readonly room: {
|
|
289
|
+
readonly handle: string;
|
|
290
|
+
readonly name: string;
|
|
291
|
+
readonly ref: string;
|
|
292
|
+
readonly url: string;
|
|
293
|
+
};
|
|
294
|
+
readonly routine: null | {
|
|
295
|
+
readonly id: string;
|
|
296
|
+
readonly name: string;
|
|
297
|
+
readonly version: number;
|
|
298
|
+
};
|
|
299
|
+
} | {
|
|
300
|
+
readonly kind: "trigger";
|
|
301
|
+
readonly path: null | string;
|
|
302
|
+
readonly room: {
|
|
303
|
+
readonly handle: string;
|
|
304
|
+
readonly name: string;
|
|
305
|
+
readonly ref: string;
|
|
306
|
+
readonly url: string;
|
|
307
|
+
};
|
|
308
|
+
readonly trigger: {
|
|
309
|
+
readonly description: string;
|
|
310
|
+
readonly id: string;
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
readonly telegram_undelivered?: true;
|
|
314
|
+
readonly text: string;
|
|
315
|
+
readonly transcripts?: readonly {
|
|
316
|
+
readonly path: string;
|
|
317
|
+
readonly text: string;
|
|
318
|
+
}[];
|
|
319
|
+
readonly turn_id: null | string;
|
|
320
|
+
readonly url?: string;
|
|
321
|
+
readonly waiting?: true;
|
|
322
|
+
}[];
|
|
323
|
+
readonly next: null | {
|
|
324
|
+
readonly accepted_at: string;
|
|
325
|
+
readonly message_id: string;
|
|
326
|
+
};
|
|
327
|
+
readonly url: string;
|
|
328
|
+
}[];
|
|
329
|
+
};
|
|
330
|
+
};
|
|
331
|
+
readonly "conversations/interaction/answer": {
|
|
332
|
+
readonly params: {
|
|
333
|
+
readonly conversation_id: string;
|
|
334
|
+
readonly interaction_id: string;
|
|
335
|
+
readonly operation_id: string;
|
|
336
|
+
readonly response: readonly unknown[] | boolean | null | number | {
|
|
337
|
+
readonly [key: string]: unknown;
|
|
338
|
+
} | string;
|
|
339
|
+
};
|
|
340
|
+
readonly result: {
|
|
341
|
+
readonly agent_id: string;
|
|
342
|
+
readonly authority: string;
|
|
343
|
+
readonly conversation_id: string;
|
|
344
|
+
readonly interaction_id: string;
|
|
345
|
+
readonly log_epoch: string;
|
|
346
|
+
readonly position: string;
|
|
347
|
+
readonly url: string;
|
|
348
|
+
};
|
|
349
|
+
};
|
|
350
|
+
readonly "conversations/interrupt": {
|
|
351
|
+
readonly params: {
|
|
352
|
+
readonly conversation_id: string;
|
|
353
|
+
readonly operation_id: string;
|
|
354
|
+
};
|
|
355
|
+
readonly result: {
|
|
356
|
+
readonly agent_id: string;
|
|
357
|
+
readonly authority: string;
|
|
358
|
+
readonly conversation_id: string;
|
|
359
|
+
readonly log_epoch: string;
|
|
360
|
+
readonly position: string;
|
|
361
|
+
readonly url: string;
|
|
362
|
+
};
|
|
363
|
+
};
|
|
364
|
+
readonly "conversations/kill": {
|
|
365
|
+
readonly params: {
|
|
366
|
+
readonly conversation_id: string;
|
|
367
|
+
readonly operation_id: string;
|
|
368
|
+
};
|
|
369
|
+
readonly result: {
|
|
370
|
+
readonly agent_id: string;
|
|
371
|
+
readonly authority: string;
|
|
372
|
+
readonly conversation_id: string;
|
|
373
|
+
readonly log_epoch: string;
|
|
374
|
+
readonly position: string;
|
|
375
|
+
readonly url: string;
|
|
376
|
+
};
|
|
377
|
+
};
|
|
378
|
+
readonly "conversations/option": {
|
|
379
|
+
readonly params: {
|
|
380
|
+
readonly conversation_id: string;
|
|
381
|
+
readonly operation_id: string;
|
|
382
|
+
readonly option: string;
|
|
383
|
+
readonly value: boolean | string;
|
|
384
|
+
};
|
|
385
|
+
readonly result: {
|
|
386
|
+
readonly agent_id: string;
|
|
387
|
+
readonly authority: string;
|
|
388
|
+
readonly conversation_id: string;
|
|
389
|
+
readonly log_epoch: string;
|
|
390
|
+
readonly position: string;
|
|
391
|
+
readonly url: string;
|
|
392
|
+
};
|
|
393
|
+
};
|
|
394
|
+
readonly "conversations/rename": {
|
|
395
|
+
readonly params: {
|
|
396
|
+
readonly conversation_id: string;
|
|
397
|
+
readonly name: string;
|
|
398
|
+
readonly operation_id: string;
|
|
399
|
+
};
|
|
400
|
+
readonly result: {
|
|
401
|
+
readonly agent_id: string;
|
|
402
|
+
readonly authority: string;
|
|
403
|
+
readonly conversation_id: string;
|
|
404
|
+
readonly log_epoch: string;
|
|
405
|
+
readonly name: string;
|
|
406
|
+
readonly position: string;
|
|
407
|
+
readonly url: string;
|
|
408
|
+
};
|
|
409
|
+
};
|
|
410
|
+
readonly "conversations/retry": {
|
|
411
|
+
readonly params: {
|
|
412
|
+
readonly conversation_id: string;
|
|
413
|
+
readonly message_id: string;
|
|
414
|
+
readonly operation_id: string;
|
|
415
|
+
};
|
|
416
|
+
readonly result: {
|
|
417
|
+
readonly agent_id: string;
|
|
418
|
+
readonly authority: string;
|
|
419
|
+
readonly conversation_id: string;
|
|
420
|
+
readonly log_epoch: string;
|
|
421
|
+
readonly message_id: string;
|
|
422
|
+
readonly position: string;
|
|
423
|
+
readonly url: string;
|
|
424
|
+
};
|
|
425
|
+
};
|
|
426
|
+
readonly "conversations/send": {
|
|
427
|
+
readonly params: {
|
|
428
|
+
readonly conversation_id: string;
|
|
429
|
+
readonly operation_id: string;
|
|
430
|
+
readonly text: string;
|
|
431
|
+
};
|
|
432
|
+
readonly result: {
|
|
433
|
+
readonly agent_id: string;
|
|
434
|
+
readonly authority: string;
|
|
435
|
+
readonly conversation_id: string;
|
|
436
|
+
readonly log_epoch: string;
|
|
437
|
+
readonly message_id: string;
|
|
438
|
+
readonly position: string;
|
|
439
|
+
readonly url: string;
|
|
440
|
+
};
|
|
441
|
+
};
|
|
442
|
+
readonly "records/read": {
|
|
443
|
+
readonly params: {
|
|
444
|
+
readonly order?: "asc" | "desc";
|
|
445
|
+
readonly room_ref: string;
|
|
446
|
+
};
|
|
447
|
+
readonly result: {
|
|
448
|
+
readonly records: readonly {
|
|
449
|
+
readonly body: null | string;
|
|
450
|
+
readonly claimed: unknown;
|
|
451
|
+
readonly created_at: string;
|
|
452
|
+
readonly record: string;
|
|
453
|
+
readonly ref: string;
|
|
454
|
+
}[];
|
|
455
|
+
};
|
|
456
|
+
};
|
|
457
|
+
readonly "rooms/access/read": {
|
|
458
|
+
readonly params: {
|
|
459
|
+
readonly room_ref: string;
|
|
460
|
+
readonly statistics?: boolean;
|
|
461
|
+
};
|
|
462
|
+
readonly result: {
|
|
463
|
+
readonly authority: "administrator" | "member" | "owner";
|
|
464
|
+
readonly members: readonly {
|
|
465
|
+
readonly admitted_at: null | string;
|
|
466
|
+
readonly direct: readonly {
|
|
467
|
+
readonly level: null | "keep" | "open" | "search";
|
|
468
|
+
readonly namespace: string;
|
|
469
|
+
readonly operations: readonly ("delete" | "export" | "manageAccess" | "write")[];
|
|
470
|
+
}[];
|
|
471
|
+
readonly downloads_per_day?: number;
|
|
472
|
+
readonly entries: readonly {
|
|
473
|
+
readonly level: null | "keep" | "open" | "search";
|
|
474
|
+
readonly namespace: string;
|
|
475
|
+
readonly operations: readonly ("delete" | "export" | "manageAccess" | "write")[];
|
|
476
|
+
readonly sources: readonly {
|
|
477
|
+
readonly kind: "direct" | "inherited";
|
|
478
|
+
readonly level: null | "keep" | "open" | "search";
|
|
479
|
+
readonly namespace: string;
|
|
480
|
+
readonly operations: readonly ("delete" | "export" | "manageAccess" | "write")[];
|
|
481
|
+
}[];
|
|
482
|
+
}[];
|
|
483
|
+
readonly key: null | string;
|
|
484
|
+
readonly requests_per_day?: number;
|
|
485
|
+
readonly schema_roles: readonly string[];
|
|
486
|
+
readonly user: string;
|
|
487
|
+
readonly user_name: string;
|
|
488
|
+
}[];
|
|
489
|
+
readonly namespaces: readonly string[];
|
|
490
|
+
readonly owner: string;
|
|
491
|
+
readonly room_ref: string;
|
|
492
|
+
readonly statistics?: readonly {
|
|
493
|
+
readonly day: string;
|
|
494
|
+
readonly downloads: number;
|
|
495
|
+
readonly requests: number;
|
|
496
|
+
readonly text_bytes: number;
|
|
497
|
+
readonly user: string;
|
|
498
|
+
}[];
|
|
499
|
+
readonly url: string;
|
|
500
|
+
readonly viewer: string;
|
|
501
|
+
};
|
|
502
|
+
};
|
|
503
|
+
readonly "rooms/members": {
|
|
504
|
+
readonly params: {
|
|
505
|
+
readonly history?: boolean;
|
|
506
|
+
readonly room_ref: string;
|
|
507
|
+
};
|
|
508
|
+
readonly result: {
|
|
509
|
+
readonly history?: readonly {
|
|
510
|
+
readonly at: string;
|
|
511
|
+
readonly kind: "granted" | "revoked";
|
|
512
|
+
readonly user: string;
|
|
513
|
+
}[];
|
|
514
|
+
readonly members: readonly {
|
|
515
|
+
readonly access?: "edit" | "keep" | "manage" | "open" | "owner" | "search";
|
|
516
|
+
readonly display_name: string;
|
|
517
|
+
readonly email?: string;
|
|
518
|
+
readonly member_document: null | string;
|
|
519
|
+
readonly only_while_online?: true;
|
|
520
|
+
readonly owner: boolean;
|
|
521
|
+
readonly schema_roles?: readonly string[];
|
|
522
|
+
readonly since: null | string;
|
|
523
|
+
readonly user: string;
|
|
524
|
+
}[];
|
|
525
|
+
};
|
|
526
|
+
};
|
|
527
|
+
readonly "rooms/settings/processing/read": {
|
|
528
|
+
readonly params: {
|
|
529
|
+
readonly path: string;
|
|
530
|
+
readonly room_ref: string;
|
|
531
|
+
};
|
|
532
|
+
readonly result: {
|
|
533
|
+
readonly embedding: {
|
|
534
|
+
readonly condition: null | {
|
|
535
|
+
readonly kind: "demand_failed" | "embed_again_failed";
|
|
536
|
+
readonly path: string;
|
|
537
|
+
};
|
|
538
|
+
readonly embedding_estimate: null | {
|
|
539
|
+
readonly documents: number;
|
|
540
|
+
readonly measured_tokens: number;
|
|
541
|
+
readonly unmeasured_documents: number;
|
|
542
|
+
};
|
|
543
|
+
readonly finished: boolean;
|
|
544
|
+
readonly indexed_chunks: number;
|
|
545
|
+
};
|
|
546
|
+
readonly explicit: readonly {
|
|
547
|
+
readonly path: string;
|
|
548
|
+
readonly policy: "Off" | "On";
|
|
549
|
+
}[];
|
|
550
|
+
readonly path: string;
|
|
551
|
+
readonly policy: {
|
|
552
|
+
readonly from: null | string;
|
|
553
|
+
readonly origin: "default" | "explicit" | "inherited";
|
|
554
|
+
readonly reason: null | "room_too_large" | "unfunded";
|
|
555
|
+
readonly value: "Off" | "On";
|
|
556
|
+
};
|
|
557
|
+
readonly writable: boolean;
|
|
558
|
+
};
|
|
559
|
+
};
|
|
560
|
+
readonly "routines/requests": {
|
|
561
|
+
readonly params: {
|
|
562
|
+
readonly room_ref: string;
|
|
563
|
+
};
|
|
564
|
+
readonly result: {
|
|
565
|
+
readonly current: readonly {
|
|
566
|
+
readonly document: string;
|
|
567
|
+
readonly name: string;
|
|
568
|
+
}[];
|
|
569
|
+
readonly history: readonly {
|
|
570
|
+
readonly document: string;
|
|
571
|
+
readonly name: string;
|
|
572
|
+
}[];
|
|
573
|
+
};
|
|
574
|
+
};
|
|
575
|
+
readonly "site/submission": {
|
|
576
|
+
readonly params: {
|
|
577
|
+
readonly content: string;
|
|
578
|
+
};
|
|
579
|
+
readonly result: {
|
|
580
|
+
readonly submitted: true;
|
|
581
|
+
};
|
|
582
|
+
};
|
|
583
|
+
readonly "storage/inventory": {
|
|
584
|
+
readonly params: {
|
|
585
|
+
readonly room_ref?: string;
|
|
586
|
+
};
|
|
587
|
+
readonly result: {
|
|
588
|
+
readonly blob: {
|
|
589
|
+
readonly bytes: string;
|
|
590
|
+
readonly gigabytes: string;
|
|
591
|
+
};
|
|
592
|
+
readonly freshness: {
|
|
593
|
+
readonly state: "settled";
|
|
594
|
+
};
|
|
595
|
+
readonly indexed_text: {
|
|
596
|
+
readonly approximate_pages: null | string;
|
|
597
|
+
readonly bytes: string;
|
|
598
|
+
readonly gigabytes: string;
|
|
599
|
+
};
|
|
600
|
+
readonly measurement: {
|
|
601
|
+
readonly page_reference: null | {
|
|
602
|
+
readonly bytes_per_page: string;
|
|
603
|
+
readonly encoding: string;
|
|
604
|
+
readonly font: string;
|
|
605
|
+
readonly font_size_pt: string;
|
|
606
|
+
readonly layout: string;
|
|
607
|
+
};
|
|
608
|
+
};
|
|
609
|
+
readonly room_ref: string;
|
|
610
|
+
readonly total: {
|
|
611
|
+
readonly bytes: string;
|
|
612
|
+
readonly gigabytes: string;
|
|
613
|
+
};
|
|
614
|
+
readonly url: string;
|
|
615
|
+
} | {
|
|
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 site_images: {
|
|
638
|
+
readonly bound: string;
|
|
639
|
+
readonly bytes: string;
|
|
640
|
+
readonly payloads: string;
|
|
641
|
+
};
|
|
642
|
+
readonly total: {
|
|
643
|
+
readonly bytes: string;
|
|
644
|
+
readonly gigabytes: string;
|
|
645
|
+
};
|
|
646
|
+
} | {
|
|
647
|
+
readonly blob: {
|
|
648
|
+
readonly bytes: string;
|
|
649
|
+
readonly gigabytes: string;
|
|
650
|
+
};
|
|
651
|
+
readonly freshness: {
|
|
652
|
+
readonly state: "settled";
|
|
653
|
+
};
|
|
654
|
+
readonly indexed_text: {
|
|
655
|
+
readonly approximate_pages: null | string;
|
|
656
|
+
readonly bytes: string;
|
|
657
|
+
readonly gigabytes: string;
|
|
658
|
+
};
|
|
659
|
+
readonly measurement: {
|
|
660
|
+
readonly page_reference: null | {
|
|
661
|
+
readonly bytes_per_page: string;
|
|
662
|
+
readonly encoding: string;
|
|
663
|
+
readonly font: string;
|
|
664
|
+
readonly font_size_pt: string;
|
|
665
|
+
readonly layout: string;
|
|
666
|
+
};
|
|
667
|
+
};
|
|
668
|
+
readonly total: {
|
|
669
|
+
readonly bytes: string;
|
|
670
|
+
readonly gigabytes: string;
|
|
671
|
+
};
|
|
672
|
+
};
|
|
673
|
+
};
|
|
674
|
+
readonly "triggers/fired": {
|
|
675
|
+
readonly params: {
|
|
676
|
+
readonly room_ref: string;
|
|
677
|
+
};
|
|
678
|
+
readonly result: {
|
|
679
|
+
readonly events: readonly {
|
|
680
|
+
readonly actions: readonly ({
|
|
681
|
+
readonly cap: "address_submissions" | "app_sockets" | "environment_functions" | "export_starts" | "folder_subscriptions" | "kit_connections" | "live_shares" | "open_uploads" | "ownership_offers" | "push_addresses" | "push_deliveries" | "room_triggers" | "service_keys" | "share_creations" | "share_room_creations" | "shared_schemas" | "site_rooms" | "slot_rooms" | "spaces" | "waiting_web_wizards" | "writes";
|
|
682
|
+
readonly code: "cap_reached";
|
|
683
|
+
readonly outcome: "refused";
|
|
684
|
+
readonly position: number;
|
|
685
|
+
readonly retry_at: string;
|
|
686
|
+
} | {
|
|
687
|
+
readonly cap: "address_submissions" | "app_sockets" | "environment_functions" | "export_starts" | "folder_subscriptions" | "kit_connections" | "live_shares" | "open_uploads" | "ownership_offers" | "push_addresses" | "push_deliveries" | "room_triggers" | "service_keys" | "share_creations" | "share_room_creations" | "shared_schemas" | "site_rooms" | "slot_rooms" | "spaces" | "waiting_web_wizards" | "writes";
|
|
688
|
+
readonly code: "cap_reached";
|
|
689
|
+
readonly outcome: "refused";
|
|
690
|
+
readonly position: number;
|
|
691
|
+
} | {
|
|
692
|
+
readonly code: "agent_unavailable";
|
|
693
|
+
readonly outcome: "withdrawn";
|
|
694
|
+
readonly position: number;
|
|
695
|
+
} | {
|
|
696
|
+
readonly code: "function_failed";
|
|
697
|
+
readonly cut?: boolean;
|
|
698
|
+
readonly error: string;
|
|
699
|
+
readonly exit_code?: number;
|
|
700
|
+
readonly final: true;
|
|
701
|
+
readonly outcome: "failed";
|
|
702
|
+
readonly output?: string;
|
|
703
|
+
readonly position: number;
|
|
704
|
+
readonly run: string;
|
|
705
|
+
} | {
|
|
706
|
+
readonly code: "function_failed";
|
|
707
|
+
readonly error: string;
|
|
708
|
+
readonly final: true;
|
|
709
|
+
readonly outcome: "failed";
|
|
710
|
+
readonly position: number;
|
|
711
|
+
readonly release: string;
|
|
712
|
+
} | {
|
|
713
|
+
readonly code: "function_not_started";
|
|
714
|
+
readonly final?: true;
|
|
715
|
+
readonly outcome: "failed";
|
|
716
|
+
readonly position: number;
|
|
717
|
+
readonly tries: number;
|
|
718
|
+
} | {
|
|
719
|
+
readonly code: "limit_reached";
|
|
720
|
+
readonly limit: "reads";
|
|
721
|
+
readonly outcome: "refused";
|
|
722
|
+
readonly period: "day" | "minute";
|
|
723
|
+
readonly position: number;
|
|
724
|
+
readonly retry_at: string;
|
|
725
|
+
readonly value: string;
|
|
726
|
+
} | {
|
|
727
|
+
readonly code: "limit_reached";
|
|
728
|
+
readonly limit: "writes";
|
|
729
|
+
readonly outcome: "refused";
|
|
730
|
+
readonly period: "day" | "minute";
|
|
731
|
+
readonly position: number;
|
|
732
|
+
readonly retry_at: string;
|
|
733
|
+
} | {
|
|
734
|
+
readonly code: "limit_reached";
|
|
735
|
+
readonly limit: "blob" | "indexed_text";
|
|
736
|
+
readonly outcome: "refused";
|
|
737
|
+
readonly position: number;
|
|
738
|
+
readonly used: string;
|
|
739
|
+
readonly value: string;
|
|
740
|
+
} | {
|
|
741
|
+
readonly code: "limit_reached";
|
|
742
|
+
readonly limit: "custom_domains" | "external_calls" | "mcp_downloads" | "mcp_reads" | "publish_data" | "site_submissions" | "sites";
|
|
743
|
+
readonly outcome: "refused";
|
|
744
|
+
readonly position: number;
|
|
745
|
+
readonly retry_at: string;
|
|
746
|
+
} | {
|
|
747
|
+
readonly code: "limit_reached";
|
|
748
|
+
readonly limit: "custom_domains" | "external_calls" | "mcp_downloads" | "mcp_reads" | "publish_data" | "site_submissions" | "sites";
|
|
749
|
+
readonly outcome: "refused";
|
|
750
|
+
readonly position: number;
|
|
751
|
+
} | {
|
|
752
|
+
readonly code: "app_function_not_found" | "app_not_found" | "environment_function_not_found" | "environment_offline" | "no_recipient" | "routine_not_found" | "routine_retired" | "target_agent_unavailable";
|
|
753
|
+
readonly outcome: "no_target";
|
|
754
|
+
readonly position: number;
|
|
755
|
+
} | {
|
|
756
|
+
readonly code: "internal_error" | "routine_request_not_started";
|
|
757
|
+
readonly outcome: "failed";
|
|
758
|
+
readonly position: number;
|
|
759
|
+
} | {
|
|
760
|
+
readonly code: string;
|
|
761
|
+
readonly outcome: "refused";
|
|
762
|
+
readonly position: number;
|
|
763
|
+
} | {
|
|
764
|
+
readonly conversations: number;
|
|
765
|
+
readonly outcome: "marked";
|
|
766
|
+
readonly position: number;
|
|
767
|
+
} | {
|
|
768
|
+
readonly cut?: boolean;
|
|
769
|
+
readonly exit_code?: number;
|
|
770
|
+
readonly outcome: "ran";
|
|
771
|
+
readonly output?: string;
|
|
772
|
+
readonly position: number;
|
|
773
|
+
readonly run: string;
|
|
774
|
+
} | {
|
|
775
|
+
readonly outcome: "continued";
|
|
776
|
+
readonly position: number;
|
|
777
|
+
readonly request: string;
|
|
778
|
+
} | {
|
|
779
|
+
readonly outcome: "notified";
|
|
780
|
+
readonly position: number;
|
|
781
|
+
readonly reached: number;
|
|
782
|
+
} | {
|
|
783
|
+
readonly outcome: "paused";
|
|
784
|
+
readonly position: number;
|
|
785
|
+
} | {
|
|
786
|
+
readonly outcome: "ran";
|
|
787
|
+
readonly position: number;
|
|
788
|
+
readonly release: string;
|
|
789
|
+
} | {
|
|
790
|
+
readonly outcome: "requested";
|
|
791
|
+
readonly position: number;
|
|
792
|
+
readonly request: string;
|
|
793
|
+
} | {
|
|
794
|
+
readonly outcome: "running";
|
|
795
|
+
readonly position: number;
|
|
796
|
+
readonly release: string;
|
|
797
|
+
} | {
|
|
798
|
+
readonly outcome: "running";
|
|
799
|
+
readonly position: number;
|
|
800
|
+
readonly run: string;
|
|
801
|
+
} | {
|
|
802
|
+
readonly outcome: "waiting";
|
|
803
|
+
readonly position: number;
|
|
804
|
+
})[];
|
|
805
|
+
readonly code?: "cap_reached";
|
|
806
|
+
readonly created_at: string;
|
|
807
|
+
readonly missed?: "failed" | "skipped";
|
|
808
|
+
readonly moment?: string;
|
|
809
|
+
readonly path?: string;
|
|
810
|
+
readonly trigger: string;
|
|
811
|
+
readonly url?: string;
|
|
812
|
+
}[];
|
|
813
|
+
};
|
|
814
|
+
};
|
|
815
|
+
}
|
|
816
|
+
export type HouseParams<Name extends string> = Name extends keyof HouseMethods ? HouseMethods[Name]['params'] : unknown;
|
|
817
|
+
type CallResult = Awaited<ReturnType<MdRuntimeClient['call']>>;
|
|
818
|
+
export type HouseResult<Name extends string> = Exclude<CallResult, {
|
|
819
|
+
readonly kind: 'action';
|
|
820
|
+
}> | (Extract<CallResult, {
|
|
821
|
+
readonly kind: 'action';
|
|
822
|
+
}> & {
|
|
823
|
+
readonly result: Name extends keyof HouseMethods ? HouseMethods[Name]['result'] : unknown;
|
|
824
|
+
});
|
|
825
|
+
export interface HouseRuntime extends Omit<MdRuntimeClient, 'call'> {
|
|
826
|
+
call<Name extends Open<keyof HouseMethods>>(method: Name, params: HouseParams<Name>): Promise<HouseResult<Name>>;
|
|
827
|
+
}
|
|
828
|
+
export interface HouseSyncState {
|
|
829
|
+
readonly state: string;
|
|
830
|
+
readonly providerUnreachable: boolean;
|
|
831
|
+
}
|
|
832
|
+
export interface HouseCredentialState {
|
|
833
|
+
readonly state: Open<'none' | 'held' | 'rejected'>;
|
|
834
|
+
readonly expiresAt: number | null;
|
|
835
|
+
}
|
|
836
|
+
export type HouseDatabaseFailure = 'unsupported' | 'damaged';
|
|
837
|
+
export type HouseAnalyticsChoice = 'accept' | 'decline';
|
|
838
|
+
export interface HouseAnalytics {
|
|
839
|
+
readonly measures: boolean;
|
|
840
|
+
readonly choice: Open<HouseAnalyticsChoice> | null;
|
|
841
|
+
}
|
|
842
|
+
export interface HouseStatus {
|
|
843
|
+
readonly app: string | null;
|
|
844
|
+
readonly preferences: {
|
|
845
|
+
readonly roomRef: string;
|
|
846
|
+
readonly path: string;
|
|
847
|
+
} | null;
|
|
848
|
+
readonly runtime: string;
|
|
849
|
+
readonly credential: HouseCredentialState;
|
|
850
|
+
readonly sync: HouseSyncState | null;
|
|
851
|
+
readonly refusal: {
|
|
852
|
+
readonly code: string;
|
|
853
|
+
readonly retryable: boolean;
|
|
854
|
+
} | null;
|
|
855
|
+
readonly loss: string | null;
|
|
856
|
+
readonly database: Open<HouseDatabaseFailure> | null;
|
|
857
|
+
readonly analytics: HouseAnalytics;
|
|
858
|
+
readonly serviceMode: Open<'open' | 'write-halted'> | null;
|
|
859
|
+
readonly offline: boolean;
|
|
860
|
+
}
|
|
861
|
+
export type HouseNavigationMode = 'push' | 'replace';
|
|
862
|
+
export interface HouseTab {
|
|
863
|
+
readonly title?: string;
|
|
864
|
+
readonly icon?: string;
|
|
865
|
+
}
|
|
866
|
+
interface HouseRelease {
|
|
867
|
+
readonly app_ref: string;
|
|
868
|
+
readonly release: string;
|
|
869
|
+
}
|
|
870
|
+
export interface HouseSourceTop extends HouseRelease {
|
|
871
|
+
readonly folders: readonly string[];
|
|
872
|
+
readonly files: readonly {
|
|
873
|
+
readonly name: string;
|
|
874
|
+
readonly size: number;
|
|
875
|
+
}[];
|
|
876
|
+
readonly readme: string | null;
|
|
877
|
+
}
|
|
878
|
+
export type HouseSourceFile = {
|
|
879
|
+
readonly path: string;
|
|
880
|
+
readonly size: number;
|
|
881
|
+
} & ({
|
|
882
|
+
readonly text: string;
|
|
883
|
+
} | {
|
|
884
|
+
readonly base64: string;
|
|
885
|
+
});
|
|
886
|
+
export interface HouseSourceDownload extends HouseRelease {
|
|
887
|
+
readonly files: readonly HouseSourceFile[];
|
|
888
|
+
}
|
|
889
|
+
export interface HouseExternalRequest {
|
|
890
|
+
readonly url: string;
|
|
891
|
+
readonly method?: string;
|
|
892
|
+
readonly headers?: Readonly<Record<string, string>>;
|
|
893
|
+
readonly body?: string;
|
|
894
|
+
readonly body_base64?: string;
|
|
895
|
+
readonly room_ref?: string;
|
|
896
|
+
}
|
|
897
|
+
export type HouseExternalAnswer = {
|
|
898
|
+
readonly status: number;
|
|
899
|
+
readonly headers: Readonly<Record<string, string | readonly string[]>>;
|
|
900
|
+
} & ({
|
|
901
|
+
readonly body: string;
|
|
902
|
+
} | {
|
|
903
|
+
readonly body_base64: string;
|
|
904
|
+
});
|
|
905
|
+
export interface HouseRefusal {
|
|
906
|
+
readonly error: {
|
|
907
|
+
readonly code: string;
|
|
908
|
+
readonly retryable: boolean;
|
|
909
|
+
};
|
|
910
|
+
}
|
|
911
|
+
export interface HouseAppMessage {
|
|
912
|
+
readonly from: string;
|
|
913
|
+
readonly body: unknown;
|
|
914
|
+
}
|
|
915
|
+
export type HouseInstallation = Open<'accepted' | 'dismissed' | 'manual'>;
|
|
916
|
+
export type HouseNotifications = Open<'on' | 'off' | 'blocked' | 'unavailable'>;
|
|
917
|
+
export interface HouseCeremonyRefused extends Error {
|
|
918
|
+
readonly name: 'HouseCeremonyRefused';
|
|
919
|
+
readonly code: Open<'house_ceremony_refused'>;
|
|
920
|
+
readonly retryable: boolean;
|
|
921
|
+
readonly path: string | null;
|
|
922
|
+
}
|
|
923
|
+
export interface HouseNavigationRefused extends Error {
|
|
924
|
+
readonly name: 'HouseNavigationRefused';
|
|
925
|
+
readonly code: Open<'house_navigation_refused'>;
|
|
926
|
+
readonly retryable: boolean;
|
|
927
|
+
readonly address: string | null;
|
|
928
|
+
}
|
|
929
|
+
export interface HouseBrowserRefused extends Error {
|
|
930
|
+
readonly code: string;
|
|
931
|
+
readonly retryable: boolean;
|
|
932
|
+
}
|
|
933
|
+
export interface HouseCooperation {
|
|
934
|
+
placed(): Promise<void> | void;
|
|
935
|
+
}
|
|
936
|
+
export type HouseChatWidth = 'full' | '3/4' | '1/2' | '1/3';
|
|
937
|
+
export interface HouseChatOpened {
|
|
938
|
+
readonly conversation: string | null;
|
|
939
|
+
readonly agent: string | null;
|
|
940
|
+
}
|
|
941
|
+
export interface HouseChatOptions {
|
|
942
|
+
readonly conversation?: string | null;
|
|
943
|
+
readonly agent?: string | null;
|
|
944
|
+
readonly showChats?: boolean;
|
|
945
|
+
readonly width?: HouseChatWidth;
|
|
946
|
+
readonly onOpen?: (opened: HouseChatOpened) => void;
|
|
947
|
+
readonly onLink?: (href: string) => void;
|
|
948
|
+
}
|
|
949
|
+
export interface HouseMountedChat {
|
|
950
|
+
update(options: HouseChatOptions): void;
|
|
951
|
+
unmount(): void;
|
|
952
|
+
}
|
|
953
|
+
export interface HouseChat {
|
|
954
|
+
mount(element: object, options?: HouseChatOptions): Promise<HouseMountedChat>;
|
|
955
|
+
}
|
|
956
|
+
export interface HouseBridge {
|
|
957
|
+
readonly runtime: Promise<HouseRuntime>;
|
|
958
|
+
readonly chat: HouseChat;
|
|
959
|
+
address(): string | null;
|
|
960
|
+
onAddress(listener: (address: string) => void): () => void;
|
|
961
|
+
push(address: string): Promise<string>;
|
|
962
|
+
replace(address: string): Promise<string>;
|
|
963
|
+
ceremony(path: string): Promise<never>;
|
|
964
|
+
install(): Promise<HouseInstallation>;
|
|
965
|
+
notifications(on?: boolean): Promise<HouseNotifications>;
|
|
966
|
+
setBadge(unread: readonly string[]): Promise<void>;
|
|
967
|
+
setTab(tab: HouseTab): void;
|
|
968
|
+
sourceTop(app: string, release?: string): Promise<HouseSourceTop | HouseRefusal | null>;
|
|
969
|
+
sourceDownload(app: string, release?: string): Promise<HouseSourceDownload | HouseRefusal | null>;
|
|
970
|
+
callExternal(request: HouseExternalRequest): Promise<HouseExternalAnswer | HouseRefusal | null>;
|
|
971
|
+
readScreenshot(app: string): Promise<Blob | null>;
|
|
972
|
+
readSiteScreenshot(site: string): Promise<Blob | null>;
|
|
973
|
+
status(): HouseStatus | null;
|
|
974
|
+
onStatus(listener: (status: HouseStatus) => void): () => void;
|
|
975
|
+
messages(listener: (message: HouseAppMessage) => void): () => void;
|
|
976
|
+
analyticsConsent(choice: HouseAnalyticsChoice): void;
|
|
977
|
+
cooperate(cooperation: HouseCooperation): () => void;
|
|
978
|
+
}
|
|
979
|
+
export interface HouseHeld {
|
|
980
|
+
readonly houseBridge: HouseBridge;
|
|
981
|
+
}
|
|
982
|
+
export declare const houseBridge: () => HouseBridge;
|
|
983
|
+
export {};
|