@agentshouse/app-bridge 0.1.0-c8d97d63f2350 → 0.1.0-c8dc2a697434d
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 +183 -439
- package/dist/mdmodel/body.d.ts +84 -0
- package/dist/mdmodel/built-in.d.ts +3 -0
- package/dist/mdmodel/definition.d.ts +20 -11
- package/dist/mdmodel/document.d.ts +14 -8
- package/dist/mdmodel/event.d.ts +76 -0
- package/dist/mdmodel/facts.d.ts +14 -0
- package/dist/mdmodel/fields.d.ts +1 -1
- package/dist/mdmodel/house-model.d.ts +869 -0
- package/dist/mdmodel/house-references/crockford.d.ts +3 -0
- package/dist/mdmodel/house-references/patterns.d.ts +8 -0
- package/dist/mdmodel/index.d.ts +40 -15
- package/dist/mdmodel/kinds.d.ts +17 -0
- package/dist/mdmodel/markdown.d.ts +74 -0
- package/dist/mdmodel/media-type.d.ts +71 -0
- package/dist/mdmodel/moment.d.ts +6 -0
- package/dist/mdmodel/not-ready.d.ts +1 -0
- package/dist/mdmodel/paths.d.ts +15 -1
- package/dist/mdmodel/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/references.d.ts +2 -2
- package/dist/mdmodel/reserved.d.ts +5 -0
- package/dist/mdmodel/room-types.d.ts +6 -0
- package/dist/mdmodel/types.d.ts +22 -17
- package/dist/mdmodel/validate.d.ts +12 -6
- package/dist/mdmodel/yaml.d.ts +4 -4
- package/dist/mdruntime/actions.d.ts +25 -0
- package/dist/mdruntime/adapter.d.ts +133 -81
- package/dist/mdruntime/attached-model.d.ts +6 -0
- package/dist/mdruntime/authored.d.ts +87 -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-set.d.ts +4 -0
- package/dist/mdruntime/change.d.ts +5 -0
- package/dist/mdruntime/client.d.ts +31 -22
- package/dist/mdruntime/collection.d.ts +26 -4
- package/dist/mdruntime/compile.d.ts +8 -6
- package/dist/mdruntime/conversation-live.d.ts +149 -0
- package/dist/mdruntime/conversation-row.d.ts +39 -0
- package/dist/mdruntime/conversation.d.ts +67 -46
- package/dist/mdruntime/declaration.d.ts +9 -0
- package/dist/mdruntime/durability.d.ts +19 -0
- package/dist/mdruntime/failure.d.ts +3 -0
- 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 +59 -0
- package/dist/mdruntime/listing.d.ts +51 -0
- package/dist/mdruntime/live.d.ts +24 -0
- package/dist/mdruntime/media.d.ts +19 -2
- package/dist/mdruntime/messages.d.ts +35 -5
- package/dist/mdruntime/model.d.ts +2 -10
- package/dist/mdruntime/observation.d.ts +28 -13
- package/dist/mdruntime/opened.d.ts +1 -1
- package/dist/mdruntime/outcome.d.ts +17 -2
- package/dist/mdruntime/overlay.d.ts +7 -2
- package/dist/mdruntime/preparation.d.ts +40 -0
- package/dist/mdruntime/presence.d.ts +57 -0
- package/dist/mdruntime/query.d.ts +13 -209
- package/dist/mdruntime/reach.d.ts +15 -14
- package/dist/mdruntime/readiness.d.ts +9 -6
- package/dist/mdruntime/reads.d.ts +38 -0
- package/dist/mdruntime/recovery.d.ts +3 -1
- package/dist/mdruntime/refresh.d.ts +26 -0
- package/dist/mdruntime/replica.d.ts +11 -16
- package/dist/mdruntime/retried.d.ts +29 -0
- package/dist/mdruntime/room-draft.d.ts +34 -10
- package/dist/mdruntime/room-drafts.d.ts +23 -0
- package/dist/mdruntime/runtime.d.ts +33 -0
- package/dist/mdruntime/save.d.ts +42 -86
- package/dist/mdruntime/saves.d.ts +33 -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 +27 -0
- package/dist/mdruntime/socket/session.d.ts +37 -0
- package/dist/mdruntime/socket.d.ts +66 -0
- package/dist/mdruntime/source.d.ts +58 -0
- package/dist/mdruntime/status.d.ts +0 -2
- package/dist/mdruntime/store/installs.d.ts +29 -0
- package/dist/mdruntime/store/readiness.d.ts +10 -0
- package/dist/mdruntime/store/records.d.ts +222 -0
- package/dist/mdruntime/store/room-held.d.ts +7 -0
- package/dist/mdruntime/store/rooms-shown.d.ts +7 -0
- package/dist/mdruntime/store/space.d.ts +10 -0
- package/dist/mdruntime/store/watchers.d.ts +16 -0
- package/dist/mdruntime/store/writes.d.ts +23 -0
- package/dist/mdruntime/store.d.ts +115 -144
- package/dist/mdruntime/stored.d.ts +72 -35
- package/dist/mdruntime/surface.d.ts +89 -0
- package/dist/mdruntime/tables.d.ts +118 -67
- package/dist/mdruntime/tallies.d.ts +17 -0
- package/dist/mdruntime/transfer.d.ts +4 -0
- package/dist/mdruntime/wire.d.ts +69 -7
- package/dist/session-content/bounds.d.ts +7 -0
- package/dist/session-content/check.d.ts +18 -0
- package/dist/session-content/index.d.ts +7 -0
- package/dist/session-content/parts.d.ts +103 -0
- package/dist/session-content/state.d.ts +61 -0
- package/dist/session-content/turn.d.ts +328 -0
- package/dist/test-host.d.ts +8 -1
- package/dist/test-host.js +27 -1
- package/docs/families.md +50 -22
- package/package.json +2 -2
- package/dist/mdmodel/blocks.d.ts +0 -10
- package/dist/mdmodel/condition.d.ts +0 -167
- package/dist/mdmodel/links.d.ts +0 -28
- package/dist/mdmodel/profile.d.ts +0 -5
- package/dist/mdruntime/connection.d.ts +0 -152
- package/dist/mdruntime/fulltext.d.ts +0 -26
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,29 @@
|
|
|
1
1
|
import type { MdRuntimeClient, Open } from './mdruntime/client.js';
|
|
2
2
|
export interface HouseMethods {
|
|
3
|
-
readonly "
|
|
4
|
-
readonly params:
|
|
3
|
+
readonly "agent-functions/decide": {
|
|
4
|
+
readonly params: never;
|
|
5
|
+
readonly result: never;
|
|
6
|
+
};
|
|
7
|
+
readonly "agent-functions/requests/list": {
|
|
8
|
+
readonly params: {
|
|
9
|
+
readonly operation_id?: string;
|
|
10
|
+
readonly room_ref: string;
|
|
11
|
+
};
|
|
12
|
+
readonly result: {
|
|
13
|
+
readonly current: readonly {
|
|
14
|
+
readonly document: string;
|
|
15
|
+
readonly name: string;
|
|
16
|
+
}[];
|
|
17
|
+
readonly history: readonly {
|
|
18
|
+
readonly document: string;
|
|
19
|
+
readonly name: string;
|
|
20
|
+
}[];
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
readonly "apps/features/list": {
|
|
24
|
+
readonly params: {
|
|
25
|
+
readonly operation_id?: string;
|
|
26
|
+
};
|
|
5
27
|
readonly result: {
|
|
6
28
|
readonly features: readonly {
|
|
7
29
|
readonly allowed: boolean;
|
|
@@ -9,11 +31,12 @@ export interface HouseMethods {
|
|
|
9
31
|
}[];
|
|
10
32
|
};
|
|
11
33
|
};
|
|
12
|
-
readonly "apps/holders": {
|
|
13
|
-
readonly params: {
|
|
34
|
+
readonly "apps/holders/list": {
|
|
35
|
+
readonly params: {
|
|
36
|
+
readonly operation_id?: string;
|
|
37
|
+
};
|
|
14
38
|
readonly result: {
|
|
15
39
|
readonly holders: readonly {
|
|
16
|
-
readonly email: string;
|
|
17
40
|
readonly name: string;
|
|
18
41
|
readonly user: string;
|
|
19
42
|
}[];
|
|
@@ -22,15 +45,16 @@ export interface HouseMethods {
|
|
|
22
45
|
readonly "apps/messages/send": {
|
|
23
46
|
readonly params: {
|
|
24
47
|
readonly body: unknown;
|
|
48
|
+
readonly operation_id?: string;
|
|
25
49
|
readonly to: string;
|
|
26
50
|
};
|
|
27
51
|
readonly result: {
|
|
28
52
|
readonly [key: string]: never;
|
|
29
53
|
};
|
|
30
54
|
};
|
|
31
|
-
readonly "apps/relay": {
|
|
55
|
+
readonly "apps/relay/read": {
|
|
32
56
|
readonly params: {
|
|
33
|
-
readonly
|
|
57
|
+
readonly operation_id?: string;
|
|
34
58
|
};
|
|
35
59
|
readonly result: {
|
|
36
60
|
readonly expires_at: string;
|
|
@@ -43,6 +67,7 @@ export interface HouseMethods {
|
|
|
43
67
|
};
|
|
44
68
|
readonly "apps/ring": {
|
|
45
69
|
readonly params: {
|
|
70
|
+
readonly operation_id?: string;
|
|
46
71
|
readonly to: string;
|
|
47
72
|
};
|
|
48
73
|
readonly result: {
|
|
@@ -58,6 +83,7 @@ export interface HouseMethods {
|
|
|
58
83
|
} | {
|
|
59
84
|
readonly user: string;
|
|
60
85
|
};
|
|
86
|
+
readonly operation_id?: string;
|
|
61
87
|
readonly path: string;
|
|
62
88
|
readonly room_ref: string;
|
|
63
89
|
};
|
|
@@ -81,8 +107,32 @@ export interface HouseMethods {
|
|
|
81
107
|
readonly url: string;
|
|
82
108
|
};
|
|
83
109
|
};
|
|
110
|
+
readonly "chats/reply": {
|
|
111
|
+
readonly params: {
|
|
112
|
+
readonly operation_id?: string;
|
|
113
|
+
readonly path: string;
|
|
114
|
+
readonly room_ref: string;
|
|
115
|
+
readonly template?: {
|
|
116
|
+
readonly language: string;
|
|
117
|
+
readonly name: string;
|
|
118
|
+
};
|
|
119
|
+
readonly text?: string;
|
|
120
|
+
readonly values?: {
|
|
121
|
+
readonly [key: string]: string;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
readonly result: {
|
|
125
|
+
readonly authority: string;
|
|
126
|
+
readonly log_epoch: string;
|
|
127
|
+
readonly path: string;
|
|
128
|
+
readonly position: string;
|
|
129
|
+
readonly room_ref: string;
|
|
130
|
+
readonly url: string;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
84
133
|
readonly "chats/return": {
|
|
85
134
|
readonly params: {
|
|
135
|
+
readonly operation_id?: string;
|
|
86
136
|
readonly path: string;
|
|
87
137
|
readonly room_ref: string;
|
|
88
138
|
};
|
|
@@ -108,6 +158,7 @@ export interface HouseMethods {
|
|
|
108
158
|
};
|
|
109
159
|
readonly "chats/take-control": {
|
|
110
160
|
readonly params: {
|
|
161
|
+
readonly operation_id?: string;
|
|
111
162
|
readonly path: string;
|
|
112
163
|
readonly room_ref: string;
|
|
113
164
|
};
|
|
@@ -132,296 +183,53 @@ export interface HouseMethods {
|
|
|
132
183
|
};
|
|
133
184
|
};
|
|
134
185
|
readonly "conversations/create": {
|
|
135
|
-
readonly params:
|
|
136
|
-
|
|
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
|
-
};
|
|
186
|
+
readonly params: never;
|
|
187
|
+
readonly result: never;
|
|
148
188
|
};
|
|
149
189
|
readonly "conversations/delete": {
|
|
150
|
-
readonly params:
|
|
151
|
-
|
|
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
|
-
readonly result?: string;
|
|
167
|
-
};
|
|
168
|
-
readonly result: {
|
|
169
|
-
readonly agent_id: string;
|
|
170
|
-
readonly authority: string;
|
|
171
|
-
readonly conversation_id: string;
|
|
172
|
-
readonly done: null | string;
|
|
173
|
-
readonly log_epoch: string;
|
|
174
|
-
readonly position: string;
|
|
175
|
-
readonly url: string;
|
|
176
|
-
};
|
|
190
|
+
readonly params: never;
|
|
191
|
+
readonly result: never;
|
|
177
192
|
};
|
|
178
|
-
readonly "conversations/history": {
|
|
179
|
-
readonly params:
|
|
180
|
-
|
|
181
|
-
readonly after?: {
|
|
182
|
-
readonly accepted_at: string;
|
|
183
|
-
readonly message_id: string;
|
|
184
|
-
};
|
|
185
|
-
readonly conversation_id: string;
|
|
186
|
-
}[];
|
|
187
|
-
readonly limit?: number;
|
|
188
|
-
};
|
|
189
|
-
readonly result: {
|
|
190
|
-
readonly histories: readonly {
|
|
191
|
-
readonly agent_id: string;
|
|
192
|
-
readonly conversation_id: string;
|
|
193
|
-
readonly messages: readonly {
|
|
194
|
-
readonly accepted_at: string;
|
|
195
|
-
readonly context: null | {
|
|
196
|
-
readonly used: number;
|
|
197
|
-
readonly window: number;
|
|
198
|
-
};
|
|
199
|
-
readonly conversation_id: string;
|
|
200
|
-
readonly failure: null | string;
|
|
201
|
-
readonly message_id: string;
|
|
202
|
-
readonly parts: readonly ({
|
|
203
|
-
readonly command: string;
|
|
204
|
-
readonly target: null | string;
|
|
205
|
-
readonly type: "message";
|
|
206
|
-
} | {
|
|
207
|
-
readonly count: number;
|
|
208
|
-
readonly type: "commands";
|
|
209
|
-
} | {
|
|
210
|
-
readonly description: string;
|
|
211
|
-
readonly result: null | string;
|
|
212
|
-
readonly status: "done" | "running";
|
|
213
|
-
readonly type: "subagent";
|
|
214
|
-
} | {
|
|
215
|
-
readonly entries: readonly {
|
|
216
|
-
readonly content: string;
|
|
217
|
-
readonly status: string;
|
|
218
|
-
}[];
|
|
219
|
-
readonly type: "plan";
|
|
220
|
-
} | {
|
|
221
|
-
readonly file: string;
|
|
222
|
-
readonly media_type: string;
|
|
223
|
-
readonly name: string;
|
|
224
|
-
readonly type: "image";
|
|
225
|
-
} | {
|
|
226
|
-
readonly marker: "compaction" | "job" | "mode" | "model" | "retry";
|
|
227
|
-
readonly text: string;
|
|
228
|
-
readonly type: "marker";
|
|
229
|
-
} | {
|
|
230
|
-
readonly text: string;
|
|
231
|
-
readonly type: "reasoning";
|
|
232
|
-
} | {
|
|
233
|
-
readonly text: string;
|
|
234
|
-
readonly type: "text";
|
|
235
|
-
})[];
|
|
236
|
-
readonly resume_refused?: true;
|
|
237
|
-
readonly role: "assistant" | "house" | "user";
|
|
238
|
-
readonly source?: {
|
|
239
|
-
readonly agent: {
|
|
240
|
-
readonly id: string;
|
|
241
|
-
readonly name: string;
|
|
242
|
-
readonly url: string;
|
|
243
|
-
};
|
|
244
|
-
readonly kind: "mail";
|
|
245
|
-
readonly owner: {
|
|
246
|
-
readonly name: string;
|
|
247
|
-
readonly user: string;
|
|
248
|
-
};
|
|
249
|
-
readonly request: string;
|
|
250
|
-
} | {
|
|
251
|
-
readonly approved_at: null | string;
|
|
252
|
-
readonly kind: "request";
|
|
253
|
-
readonly request: string;
|
|
254
|
-
readonly requester: {
|
|
255
|
-
readonly name: string;
|
|
256
|
-
readonly room: string;
|
|
257
|
-
readonly url: string;
|
|
258
|
-
} | {
|
|
259
|
-
readonly name: string;
|
|
260
|
-
readonly user: string;
|
|
261
|
-
};
|
|
262
|
-
readonly room: {
|
|
263
|
-
readonly handle: string;
|
|
264
|
-
readonly name: string;
|
|
265
|
-
readonly ref: string;
|
|
266
|
-
readonly url: string;
|
|
267
|
-
};
|
|
268
|
-
readonly routine: {
|
|
269
|
-
readonly id: string;
|
|
270
|
-
readonly name: string;
|
|
271
|
-
readonly version: number;
|
|
272
|
-
};
|
|
273
|
-
};
|
|
274
|
-
readonly telegram_undelivered?: true;
|
|
275
|
-
readonly text: string;
|
|
276
|
-
readonly transcripts?: readonly {
|
|
277
|
-
readonly path: string;
|
|
278
|
-
readonly text: string;
|
|
279
|
-
}[];
|
|
280
|
-
readonly turn_id: null | string;
|
|
281
|
-
readonly url?: string;
|
|
282
|
-
readonly waiting?: true;
|
|
283
|
-
}[];
|
|
284
|
-
readonly next: null | {
|
|
285
|
-
readonly accepted_at: string;
|
|
286
|
-
readonly message_id: string;
|
|
287
|
-
};
|
|
288
|
-
readonly url: string;
|
|
289
|
-
}[];
|
|
290
|
-
};
|
|
193
|
+
readonly "conversations/history/list": {
|
|
194
|
+
readonly params: never;
|
|
195
|
+
readonly result: never;
|
|
291
196
|
};
|
|
292
197
|
readonly "conversations/interaction/answer": {
|
|
293
|
-
readonly params:
|
|
294
|
-
|
|
295
|
-
readonly interaction_id: string;
|
|
296
|
-
readonly operation_id: string;
|
|
297
|
-
readonly response: readonly unknown[] | boolean | null | number | {
|
|
298
|
-
readonly [key: string]: unknown;
|
|
299
|
-
} | string;
|
|
300
|
-
};
|
|
301
|
-
readonly result: {
|
|
302
|
-
readonly agent_id: string;
|
|
303
|
-
readonly authority: string;
|
|
304
|
-
readonly conversation_id: string;
|
|
305
|
-
readonly interaction_id: string;
|
|
306
|
-
readonly log_epoch: string;
|
|
307
|
-
readonly position: string;
|
|
308
|
-
readonly url: string;
|
|
309
|
-
};
|
|
198
|
+
readonly params: never;
|
|
199
|
+
readonly result: never;
|
|
310
200
|
};
|
|
311
201
|
readonly "conversations/interrupt": {
|
|
312
|
-
readonly params:
|
|
313
|
-
|
|
314
|
-
readonly operation_id: string;
|
|
315
|
-
};
|
|
316
|
-
readonly result: {
|
|
317
|
-
readonly agent_id: string;
|
|
318
|
-
readonly authority: string;
|
|
319
|
-
readonly conversation_id: string;
|
|
320
|
-
readonly log_epoch: string;
|
|
321
|
-
readonly position: string;
|
|
322
|
-
readonly url: string;
|
|
323
|
-
};
|
|
202
|
+
readonly params: never;
|
|
203
|
+
readonly result: never;
|
|
324
204
|
};
|
|
325
205
|
readonly "conversations/kill": {
|
|
326
|
-
readonly params:
|
|
327
|
-
|
|
328
|
-
readonly operation_id: string;
|
|
329
|
-
};
|
|
330
|
-
readonly result: {
|
|
331
|
-
readonly agent_id: string;
|
|
332
|
-
readonly authority: string;
|
|
333
|
-
readonly conversation_id: string;
|
|
334
|
-
readonly log_epoch: string;
|
|
335
|
-
readonly position: string;
|
|
336
|
-
readonly url: string;
|
|
337
|
-
};
|
|
206
|
+
readonly params: never;
|
|
207
|
+
readonly result: never;
|
|
338
208
|
};
|
|
339
|
-
readonly "conversations/option": {
|
|
340
|
-
readonly params:
|
|
341
|
-
|
|
342
|
-
readonly operation_id: string;
|
|
343
|
-
readonly option: string;
|
|
344
|
-
readonly value: boolean | string;
|
|
345
|
-
};
|
|
346
|
-
readonly result: {
|
|
347
|
-
readonly agent_id: string;
|
|
348
|
-
readonly authority: string;
|
|
349
|
-
readonly conversation_id: string;
|
|
350
|
-
readonly log_epoch: string;
|
|
351
|
-
readonly position: string;
|
|
352
|
-
readonly url: string;
|
|
353
|
-
};
|
|
209
|
+
readonly "conversations/option/set": {
|
|
210
|
+
readonly params: never;
|
|
211
|
+
readonly result: never;
|
|
354
212
|
};
|
|
355
213
|
readonly "conversations/rename": {
|
|
356
|
-
readonly params:
|
|
357
|
-
|
|
358
|
-
readonly name: string;
|
|
359
|
-
readonly operation_id: string;
|
|
360
|
-
};
|
|
361
|
-
readonly result: {
|
|
362
|
-
readonly agent_id: string;
|
|
363
|
-
readonly authority: string;
|
|
364
|
-
readonly conversation_id: string;
|
|
365
|
-
readonly log_epoch: string;
|
|
366
|
-
readonly name: string;
|
|
367
|
-
readonly position: string;
|
|
368
|
-
readonly url: string;
|
|
369
|
-
};
|
|
214
|
+
readonly params: never;
|
|
215
|
+
readonly result: never;
|
|
370
216
|
};
|
|
371
217
|
readonly "conversations/retry": {
|
|
372
|
-
readonly params:
|
|
373
|
-
|
|
374
|
-
readonly message_id: string;
|
|
375
|
-
readonly operation_id: string;
|
|
376
|
-
};
|
|
377
|
-
readonly result: {
|
|
378
|
-
readonly agent_id: string;
|
|
379
|
-
readonly authority: string;
|
|
380
|
-
readonly conversation_id: string;
|
|
381
|
-
readonly log_epoch: string;
|
|
382
|
-
readonly message_id: string;
|
|
383
|
-
readonly position: string;
|
|
384
|
-
readonly url: string;
|
|
385
|
-
};
|
|
218
|
+
readonly params: never;
|
|
219
|
+
readonly result: never;
|
|
386
220
|
};
|
|
387
221
|
readonly "conversations/send": {
|
|
388
|
-
readonly params:
|
|
389
|
-
|
|
390
|
-
readonly operation_id: string;
|
|
391
|
-
readonly text: string;
|
|
392
|
-
};
|
|
393
|
-
readonly result: {
|
|
394
|
-
readonly agent_id: string;
|
|
395
|
-
readonly authority: string;
|
|
396
|
-
readonly conversation_id: string;
|
|
397
|
-
readonly log_epoch: string;
|
|
398
|
-
readonly message_id: string;
|
|
399
|
-
readonly position: string;
|
|
400
|
-
readonly url: string;
|
|
401
|
-
};
|
|
222
|
+
readonly params: never;
|
|
223
|
+
readonly result: never;
|
|
402
224
|
};
|
|
403
|
-
readonly "
|
|
404
|
-
readonly params:
|
|
405
|
-
|
|
406
|
-
readonly limit?: number;
|
|
407
|
-
readonly order?: "asc" | "desc";
|
|
408
|
-
readonly room_ref: string;
|
|
409
|
-
};
|
|
410
|
-
readonly result: {
|
|
411
|
-
readonly next_cursor?: string;
|
|
412
|
-
readonly records: readonly {
|
|
413
|
-
readonly body: null | string;
|
|
414
|
-
readonly claimed: unknown;
|
|
415
|
-
readonly created_at: string;
|
|
416
|
-
readonly record: string;
|
|
417
|
-
readonly ref: string;
|
|
418
|
-
}[];
|
|
419
|
-
};
|
|
225
|
+
readonly "conversations/take-out": {
|
|
226
|
+
readonly params: never;
|
|
227
|
+
readonly result: never;
|
|
420
228
|
};
|
|
421
|
-
readonly "rooms/access/
|
|
229
|
+
readonly "rooms/access/list": {
|
|
422
230
|
readonly params: {
|
|
231
|
+
readonly operation_id?: string;
|
|
423
232
|
readonly room_ref: string;
|
|
424
|
-
readonly statistics?: boolean;
|
|
425
233
|
};
|
|
426
234
|
readonly result: {
|
|
427
235
|
readonly authority: "administrator" | "member" | "owner";
|
|
@@ -430,45 +238,36 @@ export interface HouseMethods {
|
|
|
430
238
|
readonly direct: readonly {
|
|
431
239
|
readonly level: null | "keep" | "open" | "search";
|
|
432
240
|
readonly namespace: string;
|
|
433
|
-
readonly operations: readonly ("
|
|
241
|
+
readonly operations: readonly ("erase" | "export" | "manageAccess" | "write")[];
|
|
434
242
|
}[];
|
|
435
|
-
readonly downloads_per_day?: number;
|
|
436
243
|
readonly entries: readonly {
|
|
437
244
|
readonly level: null | "keep" | "open" | "search";
|
|
438
245
|
readonly namespace: string;
|
|
439
|
-
readonly operations: readonly ("
|
|
246
|
+
readonly operations: readonly ("erase" | "export" | "manageAccess" | "write")[];
|
|
440
247
|
readonly sources: readonly {
|
|
441
248
|
readonly kind: "direct" | "inherited";
|
|
442
249
|
readonly level: null | "keep" | "open" | "search";
|
|
443
250
|
readonly namespace: string;
|
|
444
|
-
readonly operations: readonly ("
|
|
251
|
+
readonly operations: readonly ("erase" | "export" | "manageAccess" | "write")[];
|
|
445
252
|
}[];
|
|
446
253
|
}[];
|
|
447
254
|
readonly key: null | string;
|
|
448
|
-
readonly requests_per_day?: number;
|
|
449
255
|
readonly schema_roles: readonly string[];
|
|
256
|
+
readonly through_space?: true;
|
|
450
257
|
readonly user: string;
|
|
451
258
|
readonly user_name: string;
|
|
452
259
|
}[];
|
|
453
260
|
readonly namespaces: readonly string[];
|
|
454
261
|
readonly owner: string;
|
|
455
262
|
readonly room_ref: string;
|
|
456
|
-
readonly statistics?: readonly {
|
|
457
|
-
readonly day: string;
|
|
458
|
-
readonly downloads: number;
|
|
459
|
-
readonly requests: number;
|
|
460
|
-
readonly text_bytes: number;
|
|
461
|
-
readonly user: string;
|
|
462
|
-
}[];
|
|
463
263
|
readonly url: string;
|
|
464
264
|
readonly viewer: string;
|
|
465
265
|
};
|
|
466
266
|
};
|
|
467
|
-
readonly "rooms/members": {
|
|
267
|
+
readonly "rooms/members/list": {
|
|
468
268
|
readonly params: {
|
|
469
|
-
readonly cursor?: string;
|
|
470
269
|
readonly history?: boolean;
|
|
471
|
-
readonly
|
|
270
|
+
readonly operation_id?: string;
|
|
472
271
|
readonly room_ref: string;
|
|
473
272
|
};
|
|
474
273
|
readonly result: {
|
|
@@ -478,21 +277,22 @@ export interface HouseMethods {
|
|
|
478
277
|
readonly user: string;
|
|
479
278
|
}[];
|
|
480
279
|
readonly members: readonly {
|
|
481
|
-
readonly access?: "
|
|
280
|
+
readonly access?: "manage" | "owner" | "read" | "write";
|
|
281
|
+
readonly copies?: "online_only" | "search_only";
|
|
482
282
|
readonly display_name: string;
|
|
483
283
|
readonly email?: string;
|
|
484
284
|
readonly member_document: null | string;
|
|
485
|
-
readonly only_while_online?: true;
|
|
486
285
|
readonly owner: boolean;
|
|
487
286
|
readonly schema_roles?: readonly string[];
|
|
488
287
|
readonly since: null | string;
|
|
288
|
+
readonly through_space?: true;
|
|
489
289
|
readonly user: string;
|
|
490
290
|
}[];
|
|
491
|
-
readonly next_cursor?: string;
|
|
492
291
|
};
|
|
493
292
|
};
|
|
494
293
|
readonly "rooms/settings/processing/read": {
|
|
495
294
|
readonly params: {
|
|
295
|
+
readonly operation_id?: string;
|
|
496
296
|
readonly path: string;
|
|
497
297
|
readonly room_ref: string;
|
|
498
298
|
};
|
|
@@ -518,92 +318,13 @@ export interface HouseMethods {
|
|
|
518
318
|
readonly policy: {
|
|
519
319
|
readonly from: null | string;
|
|
520
320
|
readonly origin: "default" | "explicit" | "inherited";
|
|
521
|
-
readonly reason: null | "
|
|
321
|
+
readonly reason: null | "full_house_required" | "room_too_large";
|
|
522
322
|
readonly value: "Off" | "On";
|
|
523
323
|
};
|
|
524
324
|
readonly writable: boolean;
|
|
525
325
|
};
|
|
526
326
|
};
|
|
527
|
-
readonly "
|
|
528
|
-
readonly params: {
|
|
529
|
-
readonly room_ref: string;
|
|
530
|
-
};
|
|
531
|
-
readonly result: readonly {
|
|
532
|
-
readonly accessId: string;
|
|
533
|
-
readonly agentId: string;
|
|
534
|
-
readonly description: string;
|
|
535
|
-
readonly input: string;
|
|
536
|
-
readonly name: string;
|
|
537
|
-
readonly ownerDisplayName: string;
|
|
538
|
-
readonly room?: true;
|
|
539
|
-
readonly startsWithoutApproval?: boolean;
|
|
540
|
-
readonly url: string;
|
|
541
|
-
readonly version: number;
|
|
542
|
-
}[];
|
|
543
|
-
};
|
|
544
|
-
readonly "routines/granted": {
|
|
545
|
-
readonly params: {
|
|
546
|
-
readonly room_ref: string;
|
|
547
|
-
};
|
|
548
|
-
readonly result: {
|
|
549
|
-
readonly access: readonly {
|
|
550
|
-
readonly access: string;
|
|
551
|
-
readonly agent: string;
|
|
552
|
-
readonly current_version: number;
|
|
553
|
-
readonly granted_at: string;
|
|
554
|
-
readonly invokers: {
|
|
555
|
-
readonly scope: "all_members" | "selected_users";
|
|
556
|
-
readonly users: readonly ({
|
|
557
|
-
readonly display_name: null | string;
|
|
558
|
-
readonly user: string;
|
|
559
|
-
} | {
|
|
560
|
-
readonly room: string;
|
|
561
|
-
readonly url: string;
|
|
562
|
-
})[];
|
|
563
|
-
};
|
|
564
|
-
readonly key_origins?: readonly string[];
|
|
565
|
-
readonly name: string;
|
|
566
|
-
readonly revoked_at: null | string;
|
|
567
|
-
readonly rooms?: {
|
|
568
|
-
readonly reach: "all";
|
|
569
|
-
} | {
|
|
570
|
-
readonly reach: "all_but_private";
|
|
571
|
-
} | {
|
|
572
|
-
readonly reach: "selected";
|
|
573
|
-
readonly refs: readonly string[];
|
|
574
|
-
};
|
|
575
|
-
readonly routine: string;
|
|
576
|
-
readonly starts_without_approval: {
|
|
577
|
-
readonly scope: "all_admitted" | "none" | "selected_users";
|
|
578
|
-
readonly users: readonly ({
|
|
579
|
-
readonly display_name: null | string;
|
|
580
|
-
readonly user: string;
|
|
581
|
-
} | {
|
|
582
|
-
readonly room: string;
|
|
583
|
-
readonly url: string;
|
|
584
|
-
})[];
|
|
585
|
-
};
|
|
586
|
-
readonly state: "agent_retired" | "live" | "revoked" | "routine_retired" | "target_owner_key_inactive";
|
|
587
|
-
readonly url: string;
|
|
588
|
-
}[];
|
|
589
|
-
};
|
|
590
|
-
};
|
|
591
|
-
readonly "routines/requests": {
|
|
592
|
-
readonly params: {
|
|
593
|
-
readonly room_ref: string;
|
|
594
|
-
};
|
|
595
|
-
readonly result: {
|
|
596
|
-
readonly current: readonly {
|
|
597
|
-
readonly document: string;
|
|
598
|
-
readonly name: string;
|
|
599
|
-
}[];
|
|
600
|
-
readonly history: readonly {
|
|
601
|
-
readonly document: string;
|
|
602
|
-
readonly name: string;
|
|
603
|
-
}[];
|
|
604
|
-
};
|
|
605
|
-
};
|
|
606
|
-
readonly "site/submission": {
|
|
327
|
+
readonly "sites/submissions/create": {
|
|
607
328
|
readonly params: {
|
|
608
329
|
readonly content: string;
|
|
609
330
|
};
|
|
@@ -611,9 +332,11 @@ export interface HouseMethods {
|
|
|
611
332
|
readonly submitted: true;
|
|
612
333
|
};
|
|
613
334
|
};
|
|
614
|
-
readonly "storage/inventory": {
|
|
335
|
+
readonly "storage/inventory/read": {
|
|
615
336
|
readonly params: {
|
|
337
|
+
readonly operation_id?: string;
|
|
616
338
|
readonly room_ref?: string;
|
|
339
|
+
readonly rooms?: "owned";
|
|
617
340
|
};
|
|
618
341
|
readonly result: {
|
|
619
342
|
readonly blob: {
|
|
@@ -624,19 +347,9 @@ export interface HouseMethods {
|
|
|
624
347
|
readonly state: "settled";
|
|
625
348
|
};
|
|
626
349
|
readonly indexed_text: {
|
|
627
|
-
readonly approximate_pages: null | string;
|
|
628
350
|
readonly bytes: string;
|
|
629
351
|
readonly gigabytes: string;
|
|
630
352
|
};
|
|
631
|
-
readonly measurement: {
|
|
632
|
-
readonly page_reference: null | {
|
|
633
|
-
readonly bytes_per_page: string;
|
|
634
|
-
readonly encoding: string;
|
|
635
|
-
readonly font: string;
|
|
636
|
-
readonly font_size_pt: string;
|
|
637
|
-
readonly layout: string;
|
|
638
|
-
};
|
|
639
|
-
};
|
|
640
353
|
readonly room_ref: string;
|
|
641
354
|
readonly total: {
|
|
642
355
|
readonly bytes: string;
|
|
@@ -652,19 +365,28 @@ export interface HouseMethods {
|
|
|
652
365
|
readonly state: "settled";
|
|
653
366
|
};
|
|
654
367
|
readonly indexed_text: {
|
|
655
|
-
readonly approximate_pages: null | string;
|
|
656
368
|
readonly bytes: string;
|
|
657
369
|
readonly gigabytes: string;
|
|
658
370
|
};
|
|
659
|
-
readonly
|
|
660
|
-
readonly
|
|
661
|
-
readonly
|
|
662
|
-
readonly
|
|
663
|
-
readonly font: string;
|
|
664
|
-
readonly font_size_pt: string;
|
|
665
|
-
readonly layout: string;
|
|
371
|
+
readonly rooms?: readonly {
|
|
372
|
+
readonly blob: {
|
|
373
|
+
readonly bytes: string;
|
|
374
|
+
readonly gigabytes: string;
|
|
666
375
|
};
|
|
667
|
-
|
|
376
|
+
readonly freshness: {
|
|
377
|
+
readonly state: "settled";
|
|
378
|
+
};
|
|
379
|
+
readonly indexed_text: {
|
|
380
|
+
readonly bytes: string;
|
|
381
|
+
readonly gigabytes: string;
|
|
382
|
+
};
|
|
383
|
+
readonly room_ref: string;
|
|
384
|
+
readonly total: {
|
|
385
|
+
readonly bytes: string;
|
|
386
|
+
readonly gigabytes: string;
|
|
387
|
+
};
|
|
388
|
+
readonly url: string;
|
|
389
|
+
}[];
|
|
668
390
|
readonly site_images: {
|
|
669
391
|
readonly bound: string;
|
|
670
392
|
readonly bytes: string;
|
|
@@ -674,51 +396,37 @@ export interface HouseMethods {
|
|
|
674
396
|
readonly bytes: string;
|
|
675
397
|
readonly gigabytes: string;
|
|
676
398
|
};
|
|
677
|
-
} | {
|
|
678
|
-
readonly blob: {
|
|
679
|
-
readonly bytes: string;
|
|
680
|
-
readonly gigabytes: string;
|
|
681
|
-
};
|
|
682
|
-
readonly freshness: {
|
|
683
|
-
readonly state: "settled";
|
|
684
|
-
};
|
|
685
|
-
readonly indexed_text: {
|
|
686
|
-
readonly approximate_pages: null | string;
|
|
687
|
-
readonly bytes: string;
|
|
688
|
-
readonly gigabytes: string;
|
|
689
|
-
};
|
|
690
|
-
readonly measurement: {
|
|
691
|
-
readonly page_reference: null | {
|
|
692
|
-
readonly bytes_per_page: string;
|
|
693
|
-
readonly encoding: string;
|
|
694
|
-
readonly font: string;
|
|
695
|
-
readonly font_size_pt: string;
|
|
696
|
-
readonly layout: string;
|
|
697
|
-
};
|
|
698
|
-
};
|
|
699
|
-
readonly total: {
|
|
700
|
-
readonly bytes: string;
|
|
701
|
-
readonly gigabytes: string;
|
|
702
|
-
};
|
|
703
399
|
};
|
|
704
400
|
};
|
|
705
|
-
readonly "triggers/fired": {
|
|
401
|
+
readonly "triggers/fired/list": {
|
|
706
402
|
readonly params: {
|
|
707
|
-
readonly
|
|
403
|
+
readonly operation_id?: string;
|
|
404
|
+
readonly room_ref?: string;
|
|
708
405
|
};
|
|
709
406
|
readonly result: {
|
|
710
407
|
readonly events: readonly {
|
|
711
408
|
readonly actions: readonly ({
|
|
712
|
-
readonly cap: "address_submissions" | "app_sockets" | "environment_functions" | "export_starts" | "
|
|
409
|
+
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";
|
|
713
410
|
readonly code: "cap_reached";
|
|
714
411
|
readonly outcome: "refused";
|
|
715
412
|
readonly position: number;
|
|
716
413
|
readonly retry_at: string;
|
|
717
414
|
} | {
|
|
718
|
-
readonly cap: "address_submissions" | "app_sockets" | "environment_functions" | "export_starts" | "
|
|
415
|
+
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";
|
|
719
416
|
readonly code: "cap_reached";
|
|
720
417
|
readonly outcome: "refused";
|
|
721
418
|
readonly position: number;
|
|
419
|
+
} | {
|
|
420
|
+
readonly code: "agent_function_request_not_started";
|
|
421
|
+
readonly final?: true;
|
|
422
|
+
readonly outcome: "failed";
|
|
423
|
+
readonly position: number;
|
|
424
|
+
} | {
|
|
425
|
+
readonly code: "agent_function_unreadable";
|
|
426
|
+
readonly document_path: string;
|
|
427
|
+
readonly final: true;
|
|
428
|
+
readonly outcome: "failed";
|
|
429
|
+
readonly position: number;
|
|
722
430
|
} | {
|
|
723
431
|
readonly code: "agent_unavailable";
|
|
724
432
|
readonly outcome: "withdrawn";
|
|
@@ -746,6 +454,11 @@ export interface HouseMethods {
|
|
|
746
454
|
readonly outcome: "failed";
|
|
747
455
|
readonly position: number;
|
|
748
456
|
readonly tries: number;
|
|
457
|
+
} | {
|
|
458
|
+
readonly code: "internal_error";
|
|
459
|
+
readonly final: true;
|
|
460
|
+
readonly outcome: "failed";
|
|
461
|
+
readonly position: number;
|
|
749
462
|
} | {
|
|
750
463
|
readonly code: "limit_reached";
|
|
751
464
|
readonly limit: "reads";
|
|
@@ -770,27 +483,32 @@ export interface HouseMethods {
|
|
|
770
483
|
readonly value: string;
|
|
771
484
|
} | {
|
|
772
485
|
readonly code: "limit_reached";
|
|
773
|
-
readonly limit: "custom_domains" | "external_calls" | "
|
|
486
|
+
readonly limit: "custom_domains" | "external_calls" | "publish_data" | "sites";
|
|
774
487
|
readonly outcome: "refused";
|
|
775
488
|
readonly position: number;
|
|
776
489
|
readonly retry_at: string;
|
|
777
490
|
} | {
|
|
778
491
|
readonly code: "limit_reached";
|
|
779
|
-
readonly limit: "custom_domains" | "external_calls" | "
|
|
492
|
+
readonly limit: "custom_domains" | "external_calls" | "publish_data" | "sites";
|
|
780
493
|
readonly outcome: "refused";
|
|
781
494
|
readonly position: number;
|
|
782
495
|
} | {
|
|
783
|
-
readonly code: "
|
|
784
|
-
readonly
|
|
496
|
+
readonly code: "post_not_confirmed";
|
|
497
|
+
readonly final: true;
|
|
498
|
+
readonly outcome: "failed";
|
|
785
499
|
readonly position: number;
|
|
786
500
|
} | {
|
|
787
|
-
readonly code: "
|
|
788
|
-
readonly outcome: "
|
|
501
|
+
readonly code: "agent_function_retired" | "environment_offline" | "no_group" | "no_recipient" | "not_found" | "target_agent_unavailable";
|
|
502
|
+
readonly outcome: "no_target";
|
|
789
503
|
readonly position: number;
|
|
790
504
|
} | {
|
|
791
505
|
readonly code: string;
|
|
792
506
|
readonly outcome: "refused";
|
|
793
507
|
readonly position: number;
|
|
508
|
+
} | {
|
|
509
|
+
readonly conversations: number;
|
|
510
|
+
readonly outcome: "marked";
|
|
511
|
+
readonly position: number;
|
|
794
512
|
} | {
|
|
795
513
|
readonly cut?: boolean;
|
|
796
514
|
readonly exit_code?: number;
|
|
@@ -798,6 +516,10 @@ export interface HouseMethods {
|
|
|
798
516
|
readonly output?: string;
|
|
799
517
|
readonly position: number;
|
|
800
518
|
readonly run: string;
|
|
519
|
+
} | {
|
|
520
|
+
readonly mentioned: number;
|
|
521
|
+
readonly outcome: "posted";
|
|
522
|
+
readonly position: number;
|
|
801
523
|
} | {
|
|
802
524
|
readonly outcome: "continued";
|
|
803
525
|
readonly position: number;
|
|
@@ -834,6 +556,7 @@ export interface HouseMethods {
|
|
|
834
556
|
readonly missed?: "failed" | "skipped";
|
|
835
557
|
readonly moment?: string;
|
|
836
558
|
readonly path?: string;
|
|
559
|
+
readonly room_ref?: string;
|
|
837
560
|
readonly trigger: string;
|
|
838
561
|
readonly url?: string;
|
|
839
562
|
}[];
|
|
@@ -860,7 +583,7 @@ export interface HouseCredentialState {
|
|
|
860
583
|
readonly state: Open<'none' | 'held' | 'rejected'>;
|
|
861
584
|
readonly expiresAt: number | null;
|
|
862
585
|
}
|
|
863
|
-
export type HouseDatabaseFailure = '
|
|
586
|
+
export type HouseDatabaseFailure = 'damaged';
|
|
864
587
|
export type HouseAnalyticsChoice = 'accept' | 'decline';
|
|
865
588
|
export interface HouseAnalytics {
|
|
866
589
|
readonly measures: boolean;
|
|
@@ -877,7 +600,6 @@ export interface HouseStatus {
|
|
|
877
600
|
readonly sync: HouseSyncState | null;
|
|
878
601
|
readonly refusal: {
|
|
879
602
|
readonly code: string;
|
|
880
|
-
readonly retryable: boolean;
|
|
881
603
|
} | null;
|
|
882
604
|
readonly loss: string | null;
|
|
883
605
|
readonly database: Open<HouseDatabaseFailure> | null;
|
|
@@ -941,6 +663,15 @@ export interface HouseAppMessage {
|
|
|
941
663
|
}
|
|
942
664
|
export type HouseInstallation = Open<'accepted' | 'dismissed' | 'manual'>;
|
|
943
665
|
export type HouseNotifications = Open<'on' | 'off' | 'blocked' | 'unavailable'>;
|
|
666
|
+
export interface HouseTelegram {
|
|
667
|
+
readonly state: Open<'available' | 'linked' | 'unavailable'>;
|
|
668
|
+
readonly name: string | null;
|
|
669
|
+
readonly username: string | null;
|
|
670
|
+
}
|
|
671
|
+
export interface HouseCeremonyEnded {
|
|
672
|
+
readonly said: string | null;
|
|
673
|
+
readonly done: boolean;
|
|
674
|
+
}
|
|
944
675
|
export interface HouseCeremonyRefused extends Error {
|
|
945
676
|
readonly name: 'HouseCeremonyRefused';
|
|
946
677
|
readonly code: Open<'house_ceremony_refused'>;
|
|
@@ -960,7 +691,6 @@ export interface HouseBrowserRefused extends Error {
|
|
|
960
691
|
export interface HouseCooperation {
|
|
961
692
|
placed(): Promise<void> | void;
|
|
962
693
|
}
|
|
963
|
-
export type HouseChatWidth = 'full' | '3/4' | '1/2' | '1/3';
|
|
964
694
|
export interface HouseChatOpened {
|
|
965
695
|
readonly conversation: string | null;
|
|
966
696
|
readonly agent: string | null;
|
|
@@ -968,8 +698,6 @@ export interface HouseChatOpened {
|
|
|
968
698
|
export interface HouseChatOptions {
|
|
969
699
|
readonly conversation?: string | null;
|
|
970
700
|
readonly agent?: string | null;
|
|
971
|
-
readonly showChats?: boolean;
|
|
972
|
-
readonly width?: HouseChatWidth;
|
|
973
701
|
readonly onOpen?: (opened: HouseChatOpened) => void;
|
|
974
702
|
readonly onLink?: (href: string) => void;
|
|
975
703
|
}
|
|
@@ -977,8 +705,24 @@ export interface HouseMountedChat {
|
|
|
977
705
|
update(options: HouseChatOptions): void;
|
|
978
706
|
unmount(): void;
|
|
979
707
|
}
|
|
708
|
+
export interface HouseChatButtonOptions {
|
|
709
|
+
readonly onOpen?: (opened: HouseChatOpened) => void;
|
|
710
|
+
readonly onLink?: (href: string) => void;
|
|
711
|
+
}
|
|
712
|
+
export interface HouseChatTarget {
|
|
713
|
+
readonly conversation?: string | null;
|
|
714
|
+
readonly agent?: string | null;
|
|
715
|
+
readonly docked?: boolean;
|
|
716
|
+
}
|
|
717
|
+
export interface HouseChatButton {
|
|
718
|
+
open(target?: HouseChatTarget): void;
|
|
719
|
+
hide(): void;
|
|
720
|
+
update(options: HouseChatButtonOptions): void;
|
|
721
|
+
unmount(): void;
|
|
722
|
+
}
|
|
980
723
|
export interface HouseChat {
|
|
981
724
|
mount(element: object, options?: HouseChatOptions): Promise<HouseMountedChat>;
|
|
725
|
+
mountButton(options?: HouseChatButtonOptions): Promise<HouseChatButton>;
|
|
982
726
|
}
|
|
983
727
|
export interface HouseBridge {
|
|
984
728
|
readonly runtime: Promise<HouseRuntime>;
|
|
@@ -987,10 +731,10 @@ export interface HouseBridge {
|
|
|
987
731
|
onAddress(listener: (address: string) => void): () => void;
|
|
988
732
|
push(address: string): Promise<string>;
|
|
989
733
|
replace(address: string): Promise<string>;
|
|
990
|
-
ceremony(path: string): Promise<
|
|
734
|
+
ceremony(path: string): Promise<HouseCeremonyEnded>;
|
|
991
735
|
install(): Promise<HouseInstallation>;
|
|
992
736
|
notifications(on?: boolean): Promise<HouseNotifications>;
|
|
993
|
-
|
|
737
|
+
telegram(link?: true): Promise<HouseTelegram>;
|
|
994
738
|
setTab(tab: HouseTab): void;
|
|
995
739
|
sourceTop(app: string, release?: string): Promise<HouseSourceTop | HouseRefusal | null>;
|
|
996
740
|
sourceDownload(app: string, release?: string): Promise<HouseSourceDownload | HouseRefusal | null>;
|