@agentshouse/app-bridge 0.1.0-cf394d5f43f7c → 0.1.0-cf41e8755eebb
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/dist/index.d.ts +234 -406
- package/dist/mdmodel/body.d.ts +84 -0
- package/dist/mdmodel/built-in.d.ts +3 -0
- package/dist/mdmodel/definition.d.ts +24 -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 +44 -15
- package/dist/mdmodel/indexed.d.ts +8 -0
- package/dist/mdmodel/kinds.d.ts +20 -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 +254 -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 +42 -0
- package/dist/mdmodel/query/walk.d.ts +62 -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 +163 -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 +36 -23
- package/dist/mdruntime/collection.d.ts +27 -4
- package/dist/mdruntime/compile.d.ts +8 -6
- package/dist/mdruntime/conversation-live.d.ts +151 -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 +20 -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/house-query.d.ts +14 -0
- package/dist/mdruntime/identity.d.ts +0 -1
- package/dist/mdruntime/install.d.ts +59 -0
- package/dist/mdruntime/listing.d.ts +59 -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/modal.d.ts +1 -0
- package/dist/mdruntime/model.d.ts +6 -12
- package/dist/mdruntime/observation.d.ts +30 -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 +45 -0
- package/dist/mdruntime/presence.d.ts +57 -0
- package/dist/mdruntime/query.d.ts +13 -209
- package/dist/mdruntime/reach.d.ts +25 -14
- package/dist/mdruntime/readiness.d.ts +20 -7
- package/dist/mdruntime/reads.d.ts +38 -0
- package/dist/mdruntime/recovery.d.ts +4 -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 +33 -9
- package/dist/mdruntime/room-drafts.d.ts +23 -0
- package/dist/mdruntime/runtime.d.ts +34 -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 +40 -0
- package/dist/mdruntime/socket.d.ts +67 -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 +226 -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 +116 -144
- package/dist/mdruntime/stored.d.ts +80 -36
- package/dist/mdruntime/surface.d.ts +93 -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 +81 -7
- package/dist/session-content/check.d.ts +17 -0
- package/dist/session-content/index.d.ts +6 -0
- package/dist/session-content/parts.d.ts +30 -0
- package/dist/session-content/state.d.ts +59 -0
- package/dist/session-content/turn.d.ts +137 -0
- package/dist/test-host.d.ts +8 -1
- package/dist/test-host.js +45 -2
- package/docs/families.md +78 -39
- package/package.json +2 -2
- package/dist/mdmodel/blocks.d.ts +0 -10
- package/dist/mdmodel/condition.d.ts +0 -180
- package/dist/mdmodel/links.d.ts +0 -28
- package/dist/mdmodel/profile.d.ts +0 -5
- package/dist/mdruntime/connection.d.ts +0 -153
- 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,332 +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
|
-
};
|
|
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
|
-
};
|
|
190
|
+
readonly params: never;
|
|
191
|
+
readonly result: never;
|
|
176
192
|
};
|
|
177
|
-
readonly "conversations/history": {
|
|
178
|
-
readonly params:
|
|
179
|
-
|
|
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
|
-
};
|
|
193
|
+
readonly "conversations/history/list": {
|
|
194
|
+
readonly params: never;
|
|
195
|
+
readonly result: never;
|
|
330
196
|
};
|
|
331
197
|
readonly "conversations/interaction/answer": {
|
|
332
|
-
readonly params:
|
|
333
|
-
|
|
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
|
-
};
|
|
198
|
+
readonly params: never;
|
|
199
|
+
readonly result: never;
|
|
349
200
|
};
|
|
350
201
|
readonly "conversations/interrupt": {
|
|
351
|
-
readonly params:
|
|
352
|
-
|
|
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
|
-
};
|
|
202
|
+
readonly params: never;
|
|
203
|
+
readonly result: never;
|
|
363
204
|
};
|
|
364
205
|
readonly "conversations/kill": {
|
|
365
|
-
readonly params:
|
|
366
|
-
|
|
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
|
-
};
|
|
206
|
+
readonly params: never;
|
|
207
|
+
readonly result: never;
|
|
377
208
|
};
|
|
378
|
-
readonly "conversations/option": {
|
|
379
|
-
readonly params:
|
|
380
|
-
|
|
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
|
-
};
|
|
209
|
+
readonly "conversations/option/set": {
|
|
210
|
+
readonly params: never;
|
|
211
|
+
readonly result: never;
|
|
393
212
|
};
|
|
394
213
|
readonly "conversations/rename": {
|
|
395
|
-
readonly params:
|
|
396
|
-
|
|
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
|
-
};
|
|
214
|
+
readonly params: never;
|
|
215
|
+
readonly result: never;
|
|
409
216
|
};
|
|
410
217
|
readonly "conversations/retry": {
|
|
411
|
-
readonly params:
|
|
412
|
-
|
|
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
|
-
};
|
|
218
|
+
readonly params: never;
|
|
219
|
+
readonly result: never;
|
|
425
220
|
};
|
|
426
221
|
readonly "conversations/send": {
|
|
427
|
-
readonly params:
|
|
428
|
-
|
|
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
|
-
};
|
|
222
|
+
readonly params: never;
|
|
223
|
+
readonly result: never;
|
|
441
224
|
};
|
|
442
|
-
readonly "
|
|
443
|
-
readonly params:
|
|
444
|
-
|
|
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
|
-
};
|
|
225
|
+
readonly "conversations/take-out": {
|
|
226
|
+
readonly params: never;
|
|
227
|
+
readonly result: never;
|
|
456
228
|
};
|
|
457
|
-
readonly "rooms/access/
|
|
229
|
+
readonly "rooms/access/list": {
|
|
458
230
|
readonly params: {
|
|
231
|
+
readonly operation_id?: string;
|
|
459
232
|
readonly room_ref: string;
|
|
460
|
-
readonly statistics?: boolean;
|
|
461
233
|
};
|
|
462
234
|
readonly result: {
|
|
463
235
|
readonly authority: "administrator" | "member" | "owner";
|
|
@@ -466,66 +238,74 @@ export interface HouseMethods {
|
|
|
466
238
|
readonly direct: readonly {
|
|
467
239
|
readonly level: null | "keep" | "open" | "search";
|
|
468
240
|
readonly namespace: string;
|
|
469
|
-
readonly operations: readonly ("
|
|
241
|
+
readonly operations: readonly ("erase" | "export" | "manageAccess" | "write")[];
|
|
470
242
|
}[];
|
|
471
|
-
readonly downloads_per_day?: number;
|
|
472
243
|
readonly entries: readonly {
|
|
473
244
|
readonly level: null | "keep" | "open" | "search";
|
|
474
245
|
readonly namespace: string;
|
|
475
|
-
readonly operations: readonly ("
|
|
246
|
+
readonly operations: readonly ("erase" | "export" | "manageAccess" | "write")[];
|
|
476
247
|
readonly sources: readonly {
|
|
477
248
|
readonly kind: "direct" | "inherited";
|
|
478
249
|
readonly level: null | "keep" | "open" | "search";
|
|
479
250
|
readonly namespace: string;
|
|
480
|
-
readonly operations: readonly ("
|
|
251
|
+
readonly operations: readonly ("erase" | "export" | "manageAccess" | "write")[];
|
|
481
252
|
}[];
|
|
482
253
|
}[];
|
|
483
254
|
readonly key: null | string;
|
|
484
|
-
readonly requests_per_day?: number;
|
|
485
255
|
readonly schema_roles: readonly string[];
|
|
256
|
+
readonly through_space?: true;
|
|
486
257
|
readonly user: string;
|
|
487
258
|
readonly user_name: string;
|
|
488
259
|
}[];
|
|
489
260
|
readonly namespaces: readonly string[];
|
|
490
261
|
readonly owner: string;
|
|
491
262
|
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
263
|
readonly url: string;
|
|
500
264
|
readonly viewer: string;
|
|
501
265
|
};
|
|
502
266
|
};
|
|
503
|
-
readonly "rooms/members": {
|
|
267
|
+
readonly "rooms/members/list": {
|
|
504
268
|
readonly params: {
|
|
505
269
|
readonly history?: boolean;
|
|
270
|
+
readonly operation_id?: string;
|
|
506
271
|
readonly room_ref: string;
|
|
507
272
|
};
|
|
508
273
|
readonly result: {
|
|
509
|
-
readonly history?: readonly {
|
|
274
|
+
readonly history?: readonly ({
|
|
275
|
+
readonly agent_name?: string;
|
|
276
|
+
readonly at: string;
|
|
277
|
+
readonly by?: string;
|
|
278
|
+
readonly kind: "role_given" | "role_taken";
|
|
279
|
+
readonly role: string;
|
|
280
|
+
readonly user: string;
|
|
281
|
+
} | {
|
|
510
282
|
readonly at: string;
|
|
511
283
|
readonly kind: "granted" | "revoked";
|
|
512
284
|
readonly user: string;
|
|
513
|
-
}[];
|
|
285
|
+
})[];
|
|
514
286
|
readonly members: readonly {
|
|
515
|
-
readonly access?: "
|
|
287
|
+
readonly access?: "manage" | "owner" | "read" | "write";
|
|
288
|
+
readonly copies?: "online_only" | "search_only";
|
|
516
289
|
readonly display_name: string;
|
|
517
290
|
readonly email?: string;
|
|
518
291
|
readonly member_document: null | string;
|
|
519
|
-
readonly only_while_online?: true;
|
|
520
292
|
readonly owner: boolean;
|
|
521
293
|
readonly schema_roles?: readonly string[];
|
|
294
|
+
readonly schema_roles_given?: readonly {
|
|
295
|
+
readonly agent_name?: string;
|
|
296
|
+
readonly at: string;
|
|
297
|
+
readonly by?: string;
|
|
298
|
+
readonly role: string;
|
|
299
|
+
}[];
|
|
522
300
|
readonly since: null | string;
|
|
301
|
+
readonly through_space?: true;
|
|
523
302
|
readonly user: string;
|
|
524
303
|
}[];
|
|
525
304
|
};
|
|
526
305
|
};
|
|
527
306
|
readonly "rooms/settings/processing/read": {
|
|
528
307
|
readonly params: {
|
|
308
|
+
readonly operation_id?: string;
|
|
529
309
|
readonly path: string;
|
|
530
310
|
readonly room_ref: string;
|
|
531
311
|
};
|
|
@@ -551,28 +331,42 @@ export interface HouseMethods {
|
|
|
551
331
|
readonly policy: {
|
|
552
332
|
readonly from: null | string;
|
|
553
333
|
readonly origin: "default" | "explicit" | "inherited";
|
|
554
|
-
readonly reason: null | "
|
|
334
|
+
readonly reason: null | "full_house_required" | "room_too_large";
|
|
555
335
|
readonly value: "Off" | "On";
|
|
556
336
|
};
|
|
557
337
|
readonly writable: boolean;
|
|
558
338
|
};
|
|
559
339
|
};
|
|
560
|
-
readonly "
|
|
340
|
+
readonly "service-keys/signatures/check": {
|
|
561
341
|
readonly params: {
|
|
342
|
+
readonly operation_id?: string;
|
|
343
|
+
readonly origin: string;
|
|
562
344
|
readonly room_ref: string;
|
|
345
|
+
readonly signature: string;
|
|
346
|
+
readonly text: string;
|
|
563
347
|
};
|
|
564
348
|
readonly result: {
|
|
565
|
-
readonly
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
349
|
+
readonly matched: boolean;
|
|
350
|
+
};
|
|
351
|
+
};
|
|
352
|
+
readonly "sites/functions/call": {
|
|
353
|
+
readonly params: {
|
|
354
|
+
readonly function: string;
|
|
355
|
+
readonly input?: readonly (readonly unknown[] | boolean | null | number | {
|
|
356
|
+
readonly [key: string]: unknown;
|
|
357
|
+
} | string)[] | boolean | null | number | {
|
|
358
|
+
readonly [key: string]: readonly unknown[] | boolean | null | number | {
|
|
359
|
+
readonly [key: string]: unknown;
|
|
360
|
+
} | string;
|
|
361
|
+
} | string;
|
|
362
|
+
};
|
|
363
|
+
readonly result: {
|
|
364
|
+
readonly answer: readonly unknown[] | boolean | null | number | {
|
|
365
|
+
readonly [key: string]: unknown;
|
|
366
|
+
} | string;
|
|
573
367
|
};
|
|
574
368
|
};
|
|
575
|
-
readonly "
|
|
369
|
+
readonly "sites/submissions/create": {
|
|
576
370
|
readonly params: {
|
|
577
371
|
readonly content: string;
|
|
578
372
|
};
|
|
@@ -580,9 +374,11 @@ export interface HouseMethods {
|
|
|
580
374
|
readonly submitted: true;
|
|
581
375
|
};
|
|
582
376
|
};
|
|
583
|
-
readonly "storage/inventory": {
|
|
377
|
+
readonly "storage/inventory/read": {
|
|
584
378
|
readonly params: {
|
|
379
|
+
readonly operation_id?: string;
|
|
585
380
|
readonly room_ref?: string;
|
|
381
|
+
readonly rooms?: "owned";
|
|
586
382
|
};
|
|
587
383
|
readonly result: {
|
|
588
384
|
readonly blob: {
|
|
@@ -593,19 +389,9 @@ export interface HouseMethods {
|
|
|
593
389
|
readonly state: "settled";
|
|
594
390
|
};
|
|
595
391
|
readonly indexed_text: {
|
|
596
|
-
readonly approximate_pages: null | string;
|
|
597
392
|
readonly bytes: string;
|
|
598
393
|
readonly gigabytes: string;
|
|
599
394
|
};
|
|
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
395
|
readonly room_ref: string;
|
|
610
396
|
readonly total: {
|
|
611
397
|
readonly bytes: string;
|
|
@@ -621,19 +407,28 @@ export interface HouseMethods {
|
|
|
621
407
|
readonly state: "settled";
|
|
622
408
|
};
|
|
623
409
|
readonly indexed_text: {
|
|
624
|
-
readonly approximate_pages: null | string;
|
|
625
410
|
readonly bytes: string;
|
|
626
411
|
readonly gigabytes: string;
|
|
627
412
|
};
|
|
628
|
-
readonly
|
|
629
|
-
readonly
|
|
630
|
-
readonly
|
|
631
|
-
readonly
|
|
632
|
-
readonly font: string;
|
|
633
|
-
readonly font_size_pt: string;
|
|
634
|
-
readonly layout: string;
|
|
413
|
+
readonly rooms?: readonly {
|
|
414
|
+
readonly blob: {
|
|
415
|
+
readonly bytes: string;
|
|
416
|
+
readonly gigabytes: string;
|
|
635
417
|
};
|
|
636
|
-
|
|
418
|
+
readonly freshness: {
|
|
419
|
+
readonly state: "settled";
|
|
420
|
+
};
|
|
421
|
+
readonly indexed_text: {
|
|
422
|
+
readonly bytes: string;
|
|
423
|
+
readonly gigabytes: string;
|
|
424
|
+
};
|
|
425
|
+
readonly room_ref: string;
|
|
426
|
+
readonly total: {
|
|
427
|
+
readonly bytes: string;
|
|
428
|
+
readonly gigabytes: string;
|
|
429
|
+
};
|
|
430
|
+
readonly url: string;
|
|
431
|
+
}[];
|
|
637
432
|
readonly site_images: {
|
|
638
433
|
readonly bound: string;
|
|
639
434
|
readonly bytes: string;
|
|
@@ -643,51 +438,37 @@ export interface HouseMethods {
|
|
|
643
438
|
readonly bytes: string;
|
|
644
439
|
readonly gigabytes: string;
|
|
645
440
|
};
|
|
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
441
|
};
|
|
673
442
|
};
|
|
674
|
-
readonly "triggers/fired": {
|
|
443
|
+
readonly "triggers/fired/list": {
|
|
675
444
|
readonly params: {
|
|
676
|
-
readonly
|
|
445
|
+
readonly operation_id?: string;
|
|
446
|
+
readonly room_ref?: string;
|
|
677
447
|
};
|
|
678
448
|
readonly result: {
|
|
679
449
|
readonly events: readonly {
|
|
680
450
|
readonly actions: readonly ({
|
|
681
|
-
readonly cap: "address_submissions" | "app_sockets" | "environment_functions" | "export_starts" | "
|
|
451
|
+
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";
|
|
682
452
|
readonly code: "cap_reached";
|
|
683
453
|
readonly outcome: "refused";
|
|
684
454
|
readonly position: number;
|
|
685
455
|
readonly retry_at: string;
|
|
686
456
|
} | {
|
|
687
|
-
readonly cap: "address_submissions" | "app_sockets" | "environment_functions" | "export_starts" | "
|
|
457
|
+
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";
|
|
688
458
|
readonly code: "cap_reached";
|
|
689
459
|
readonly outcome: "refused";
|
|
690
460
|
readonly position: number;
|
|
461
|
+
} | {
|
|
462
|
+
readonly code: "agent_function_request_not_started";
|
|
463
|
+
readonly final?: true;
|
|
464
|
+
readonly outcome: "failed";
|
|
465
|
+
readonly position: number;
|
|
466
|
+
} | {
|
|
467
|
+
readonly code: "agent_function_unreadable";
|
|
468
|
+
readonly document_path: string;
|
|
469
|
+
readonly final: true;
|
|
470
|
+
readonly outcome: "failed";
|
|
471
|
+
readonly position: number;
|
|
691
472
|
} | {
|
|
692
473
|
readonly code: "agent_unavailable";
|
|
693
474
|
readonly outcome: "withdrawn";
|
|
@@ -715,6 +496,11 @@ export interface HouseMethods {
|
|
|
715
496
|
readonly outcome: "failed";
|
|
716
497
|
readonly position: number;
|
|
717
498
|
readonly tries: number;
|
|
499
|
+
} | {
|
|
500
|
+
readonly code: "internal_error";
|
|
501
|
+
readonly final: true;
|
|
502
|
+
readonly outcome: "failed";
|
|
503
|
+
readonly position: number;
|
|
718
504
|
} | {
|
|
719
505
|
readonly code: "limit_reached";
|
|
720
506
|
readonly limit: "reads";
|
|
@@ -739,22 +525,23 @@ export interface HouseMethods {
|
|
|
739
525
|
readonly value: string;
|
|
740
526
|
} | {
|
|
741
527
|
readonly code: "limit_reached";
|
|
742
|
-
readonly limit: "custom_domains" | "external_calls" | "
|
|
528
|
+
readonly limit: "custom_domains" | "external_calls" | "publish_data" | "site_function_calls" | "sites";
|
|
743
529
|
readonly outcome: "refused";
|
|
744
530
|
readonly position: number;
|
|
745
531
|
readonly retry_at: string;
|
|
746
532
|
} | {
|
|
747
533
|
readonly code: "limit_reached";
|
|
748
|
-
readonly limit: "custom_domains" | "external_calls" | "
|
|
534
|
+
readonly limit: "custom_domains" | "external_calls" | "publish_data" | "site_function_calls" | "sites";
|
|
749
535
|
readonly outcome: "refused";
|
|
750
536
|
readonly position: number;
|
|
751
537
|
} | {
|
|
752
|
-
readonly code: "
|
|
753
|
-
readonly
|
|
538
|
+
readonly code: "post_not_confirmed";
|
|
539
|
+
readonly final: true;
|
|
540
|
+
readonly outcome: "failed";
|
|
754
541
|
readonly position: number;
|
|
755
542
|
} | {
|
|
756
|
-
readonly code: "
|
|
757
|
-
readonly outcome: "
|
|
543
|
+
readonly code: "agent_function_retired" | "environment_offline" | "no_group" | "no_recipient" | "not_found" | "target_agent_unavailable";
|
|
544
|
+
readonly outcome: "no_target";
|
|
758
545
|
readonly position: number;
|
|
759
546
|
} | {
|
|
760
547
|
readonly code: string;
|
|
@@ -771,6 +558,10 @@ export interface HouseMethods {
|
|
|
771
558
|
readonly output?: string;
|
|
772
559
|
readonly position: number;
|
|
773
560
|
readonly run: string;
|
|
561
|
+
} | {
|
|
562
|
+
readonly mentioned: number;
|
|
563
|
+
readonly outcome: "posted";
|
|
564
|
+
readonly position: number;
|
|
774
565
|
} | {
|
|
775
566
|
readonly outcome: "continued";
|
|
776
567
|
readonly position: number;
|
|
@@ -807,6 +598,7 @@ export interface HouseMethods {
|
|
|
807
598
|
readonly missed?: "failed" | "skipped";
|
|
808
599
|
readonly moment?: string;
|
|
809
600
|
readonly path?: string;
|
|
601
|
+
readonly room_ref?: string;
|
|
810
602
|
readonly trigger: string;
|
|
811
603
|
readonly url?: string;
|
|
812
604
|
}[];
|
|
@@ -833,7 +625,7 @@ export interface HouseCredentialState {
|
|
|
833
625
|
readonly state: Open<'none' | 'held' | 'rejected'>;
|
|
834
626
|
readonly expiresAt: number | null;
|
|
835
627
|
}
|
|
836
|
-
export type HouseDatabaseFailure = '
|
|
628
|
+
export type HouseDatabaseFailure = 'damaged';
|
|
837
629
|
export type HouseAnalyticsChoice = 'accept' | 'decline';
|
|
838
630
|
export interface HouseAnalytics {
|
|
839
631
|
readonly measures: boolean;
|
|
@@ -850,7 +642,6 @@ export interface HouseStatus {
|
|
|
850
642
|
readonly sync: HouseSyncState | null;
|
|
851
643
|
readonly refusal: {
|
|
852
644
|
readonly code: string;
|
|
853
|
-
readonly retryable: boolean;
|
|
854
645
|
} | null;
|
|
855
646
|
readonly loss: string | null;
|
|
856
647
|
readonly database: Open<HouseDatabaseFailure> | null;
|
|
@@ -862,6 +653,7 @@ export type HouseNavigationMode = 'push' | 'replace';
|
|
|
862
653
|
export interface HouseTab {
|
|
863
654
|
readonly title?: string;
|
|
864
655
|
readonly icon?: string;
|
|
656
|
+
readonly scheme?: 'light' | 'dark' | null;
|
|
865
657
|
}
|
|
866
658
|
interface HouseRelease {
|
|
867
659
|
readonly app_ref: string;
|
|
@@ -912,8 +704,26 @@ export interface HouseAppMessage {
|
|
|
912
704
|
readonly from: string;
|
|
913
705
|
readonly body: unknown;
|
|
914
706
|
}
|
|
915
|
-
export
|
|
707
|
+
export interface HouseBox {
|
|
708
|
+
readonly x: number;
|
|
709
|
+
readonly y: number;
|
|
710
|
+
readonly width: number;
|
|
711
|
+
readonly height: number;
|
|
712
|
+
}
|
|
713
|
+
export interface HouseTitleRow {
|
|
714
|
+
readonly height: number;
|
|
715
|
+
readonly controls: readonly HouseBox[];
|
|
716
|
+
}
|
|
916
717
|
export type HouseNotifications = Open<'on' | 'off' | 'blocked' | 'unavailable'>;
|
|
718
|
+
export interface HouseTelegram {
|
|
719
|
+
readonly state: Open<'available' | 'linked' | 'unavailable'>;
|
|
720
|
+
readonly name: string | null;
|
|
721
|
+
readonly username: string | null;
|
|
722
|
+
}
|
|
723
|
+
export interface HouseCeremonyEnded {
|
|
724
|
+
readonly said: string | null;
|
|
725
|
+
readonly done: boolean;
|
|
726
|
+
}
|
|
917
727
|
export interface HouseCeremonyRefused extends Error {
|
|
918
728
|
readonly name: 'HouseCeremonyRefused';
|
|
919
729
|
readonly code: Open<'house_ceremony_refused'>;
|
|
@@ -933,7 +743,6 @@ export interface HouseBrowserRefused extends Error {
|
|
|
933
743
|
export interface HouseCooperation {
|
|
934
744
|
placed(): Promise<void> | void;
|
|
935
745
|
}
|
|
936
|
-
export type HouseChatWidth = 'full' | '3/4' | '1/2' | '1/3';
|
|
937
746
|
export interface HouseChatOpened {
|
|
938
747
|
readonly conversation: string | null;
|
|
939
748
|
readonly agent: string | null;
|
|
@@ -941,8 +750,6 @@ export interface HouseChatOpened {
|
|
|
941
750
|
export interface HouseChatOptions {
|
|
942
751
|
readonly conversation?: string | null;
|
|
943
752
|
readonly agent?: string | null;
|
|
944
|
-
readonly showChats?: boolean;
|
|
945
|
-
readonly width?: HouseChatWidth;
|
|
946
753
|
readonly onOpen?: (opened: HouseChatOpened) => void;
|
|
947
754
|
readonly onLink?: (href: string) => void;
|
|
948
755
|
}
|
|
@@ -950,20 +757,41 @@ export interface HouseMountedChat {
|
|
|
950
757
|
update(options: HouseChatOptions): void;
|
|
951
758
|
unmount(): void;
|
|
952
759
|
}
|
|
760
|
+
export interface HouseChatButtonOptions {
|
|
761
|
+
readonly onOpen?: (opened: HouseChatOpened) => void;
|
|
762
|
+
readonly onLink?: (href: string) => void;
|
|
763
|
+
}
|
|
764
|
+
export interface HouseChatButtonMount extends HouseChatButtonOptions {
|
|
765
|
+
readonly agent?: string | null;
|
|
766
|
+
}
|
|
767
|
+
export interface HouseChatTarget {
|
|
768
|
+
readonly conversation?: string | null;
|
|
769
|
+
readonly agent?: string | null;
|
|
770
|
+
readonly docked?: boolean;
|
|
771
|
+
}
|
|
772
|
+
export interface HouseChatButton {
|
|
773
|
+
open(target?: HouseChatTarget): void;
|
|
774
|
+
hide(): void;
|
|
775
|
+
update(options: HouseChatButtonOptions): void;
|
|
776
|
+
unmount(): void;
|
|
777
|
+
}
|
|
953
778
|
export interface HouseChat {
|
|
954
779
|
mount(element: object, options?: HouseChatOptions): Promise<HouseMountedChat>;
|
|
780
|
+
mountButton(options?: HouseChatButtonMount): Promise<HouseChatButton>;
|
|
955
781
|
}
|
|
956
782
|
export interface HouseBridge {
|
|
957
783
|
readonly runtime: Promise<HouseRuntime>;
|
|
958
784
|
readonly chat: HouseChat;
|
|
959
785
|
address(): string | null;
|
|
960
786
|
onAddress(listener: (address: string) => void): () => void;
|
|
787
|
+
cameFrom(): string | null;
|
|
961
788
|
push(address: string): Promise<string>;
|
|
962
789
|
replace(address: string): Promise<string>;
|
|
963
|
-
ceremony(path: string): Promise<
|
|
964
|
-
|
|
790
|
+
ceremony(path: string): Promise<HouseCeremonyEnded>;
|
|
791
|
+
onTitleBar(listener: (area: HouseBox | null) => void): () => void;
|
|
792
|
+
setTitleBar(row: HouseTitleRow | null): void;
|
|
965
793
|
notifications(on?: boolean): Promise<HouseNotifications>;
|
|
966
|
-
|
|
794
|
+
telegram(link?: true): Promise<HouseTelegram>;
|
|
967
795
|
setTab(tab: HouseTab): void;
|
|
968
796
|
sourceTop(app: string, release?: string): Promise<HouseSourceTop | HouseRefusal | null>;
|
|
969
797
|
sourceDownload(app: string, release?: string): Promise<HouseSourceDownload | HouseRefusal | null>;
|