@agentshouse/app-bridge 0.1.0-cfb5ca35059bb → 0.1.0-cfb893a1d2cd3
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 +237 -401
- 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 +42 -15
- package/dist/mdmodel/indexed.d.ts +8 -0
- package/dist/mdmodel/kinds.d.ts +19 -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 +154 -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 +37 -23
- package/dist/mdruntime/collection.d.ts +27 -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 +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 +20 -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 +40 -0
- package/dist/mdruntime/presence.d.ts +57 -0
- package/dist/mdruntime/query.d.ts +13 -209
- package/dist/mdruntime/reach.d.ts +24 -14
- package/dist/mdruntime/readiness.d.ts +9 -6
- 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 +34 -10
- 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 +38 -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 +225 -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 +72 -35
- 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 +82 -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 +32 -2
- package/docs/families.md +73 -37
- package/package.json +2 -2
- package/dist/mdmodel/blocks.d.ts +0 -10
- package/dist/mdmodel/condition.d.ts +0 -179
- 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,324 +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
|
-
};
|
|
190
|
+
readonly params: never;
|
|
191
|
+
readonly result: never;
|
|
161
192
|
};
|
|
162
|
-
readonly "conversations/
|
|
163
|
-
readonly params:
|
|
164
|
-
|
|
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
|
-
};
|
|
177
|
-
};
|
|
178
|
-
readonly "conversations/history": {
|
|
179
|
-
readonly params: {
|
|
180
|
-
readonly conversations: readonly {
|
|
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 role: "assistant" | "house" | "user";
|
|
237
|
-
readonly sender?: "conversation" | "customer" | "owner" | "report" | "requester" | "trigger";
|
|
238
|
-
readonly source?: {
|
|
239
|
-
readonly agent: {
|
|
240
|
-
readonly id: string;
|
|
241
|
-
readonly name: string;
|
|
242
|
-
readonly url: string;
|
|
243
|
-
};
|
|
244
|
-
readonly approved_at?: string;
|
|
245
|
-
readonly declined_at?: string;
|
|
246
|
-
readonly kind: "mail";
|
|
247
|
-
readonly owner: {
|
|
248
|
-
readonly name: string;
|
|
249
|
-
readonly user: string;
|
|
250
|
-
};
|
|
251
|
-
readonly request: string;
|
|
252
|
-
readonly room: string;
|
|
253
|
-
} | {
|
|
254
|
-
readonly agent: {
|
|
255
|
-
readonly id: string;
|
|
256
|
-
readonly name: string;
|
|
257
|
-
readonly url: string;
|
|
258
|
-
};
|
|
259
|
-
readonly kind: "declined";
|
|
260
|
-
readonly owner: {
|
|
261
|
-
readonly name: string;
|
|
262
|
-
readonly user: string;
|
|
263
|
-
};
|
|
264
|
-
readonly request: string;
|
|
265
|
-
} | {
|
|
266
|
-
readonly approved_at: null | string;
|
|
267
|
-
readonly kind: "request";
|
|
268
|
-
readonly request: string;
|
|
269
|
-
readonly requester: {
|
|
270
|
-
readonly name: string;
|
|
271
|
-
readonly room: string;
|
|
272
|
-
readonly url: string;
|
|
273
|
-
} | {
|
|
274
|
-
readonly name: string;
|
|
275
|
-
readonly user: string;
|
|
276
|
-
};
|
|
277
|
-
readonly room: {
|
|
278
|
-
readonly handle: string;
|
|
279
|
-
readonly name: string;
|
|
280
|
-
readonly ref: string;
|
|
281
|
-
readonly url: string;
|
|
282
|
-
};
|
|
283
|
-
readonly routine: null | {
|
|
284
|
-
readonly id: string;
|
|
285
|
-
readonly name: string;
|
|
286
|
-
readonly version: number;
|
|
287
|
-
};
|
|
288
|
-
} | {
|
|
289
|
-
readonly kind: "trigger";
|
|
290
|
-
readonly path: null | string;
|
|
291
|
-
readonly room: {
|
|
292
|
-
readonly handle: string;
|
|
293
|
-
readonly name: string;
|
|
294
|
-
readonly ref: string;
|
|
295
|
-
readonly url: string;
|
|
296
|
-
};
|
|
297
|
-
readonly trigger: {
|
|
298
|
-
readonly description: string;
|
|
299
|
-
readonly id: string;
|
|
300
|
-
};
|
|
301
|
-
};
|
|
302
|
-
readonly telegram_undelivered?: true;
|
|
303
|
-
readonly text: string;
|
|
304
|
-
readonly transcripts?: readonly {
|
|
305
|
-
readonly path: string;
|
|
306
|
-
readonly text: string;
|
|
307
|
-
}[];
|
|
308
|
-
readonly turn_id: null | string;
|
|
309
|
-
readonly url?: string;
|
|
310
|
-
readonly waiting?: true;
|
|
311
|
-
}[];
|
|
312
|
-
readonly next: null | {
|
|
313
|
-
readonly accepted_at: string;
|
|
314
|
-
readonly message_id: string;
|
|
315
|
-
};
|
|
316
|
-
readonly url: string;
|
|
317
|
-
}[];
|
|
318
|
-
};
|
|
193
|
+
readonly "conversations/history/list": {
|
|
194
|
+
readonly params: never;
|
|
195
|
+
readonly result: never;
|
|
319
196
|
};
|
|
320
197
|
readonly "conversations/interaction/answer": {
|
|
321
|
-
readonly params:
|
|
322
|
-
|
|
323
|
-
readonly interaction_id: string;
|
|
324
|
-
readonly operation_id: string;
|
|
325
|
-
readonly response: readonly unknown[] | boolean | null | number | {
|
|
326
|
-
readonly [key: string]: unknown;
|
|
327
|
-
} | string;
|
|
328
|
-
};
|
|
329
|
-
readonly result: {
|
|
330
|
-
readonly agent_id: string;
|
|
331
|
-
readonly authority: string;
|
|
332
|
-
readonly conversation_id: string;
|
|
333
|
-
readonly interaction_id: string;
|
|
334
|
-
readonly log_epoch: string;
|
|
335
|
-
readonly position: string;
|
|
336
|
-
readonly url: string;
|
|
337
|
-
};
|
|
198
|
+
readonly params: never;
|
|
199
|
+
readonly result: never;
|
|
338
200
|
};
|
|
339
201
|
readonly "conversations/interrupt": {
|
|
340
|
-
readonly params:
|
|
341
|
-
|
|
342
|
-
readonly operation_id: string;
|
|
343
|
-
};
|
|
344
|
-
readonly result: {
|
|
345
|
-
readonly agent_id: string;
|
|
346
|
-
readonly authority: string;
|
|
347
|
-
readonly conversation_id: string;
|
|
348
|
-
readonly log_epoch: string;
|
|
349
|
-
readonly position: string;
|
|
350
|
-
readonly url: string;
|
|
351
|
-
};
|
|
202
|
+
readonly params: never;
|
|
203
|
+
readonly result: never;
|
|
352
204
|
};
|
|
353
205
|
readonly "conversations/kill": {
|
|
354
|
-
readonly params:
|
|
355
|
-
|
|
356
|
-
readonly operation_id: string;
|
|
357
|
-
};
|
|
358
|
-
readonly result: {
|
|
359
|
-
readonly agent_id: string;
|
|
360
|
-
readonly authority: string;
|
|
361
|
-
readonly conversation_id: string;
|
|
362
|
-
readonly log_epoch: string;
|
|
363
|
-
readonly position: string;
|
|
364
|
-
readonly url: string;
|
|
365
|
-
};
|
|
206
|
+
readonly params: never;
|
|
207
|
+
readonly result: never;
|
|
366
208
|
};
|
|
367
|
-
readonly "conversations/option": {
|
|
368
|
-
readonly params:
|
|
369
|
-
|
|
370
|
-
readonly operation_id: string;
|
|
371
|
-
readonly option: string;
|
|
372
|
-
readonly value: boolean | string;
|
|
373
|
-
};
|
|
374
|
-
readonly result: {
|
|
375
|
-
readonly agent_id: string;
|
|
376
|
-
readonly authority: string;
|
|
377
|
-
readonly conversation_id: string;
|
|
378
|
-
readonly log_epoch: string;
|
|
379
|
-
readonly position: string;
|
|
380
|
-
readonly url: string;
|
|
381
|
-
};
|
|
209
|
+
readonly "conversations/option/set": {
|
|
210
|
+
readonly params: never;
|
|
211
|
+
readonly result: never;
|
|
382
212
|
};
|
|
383
213
|
readonly "conversations/rename": {
|
|
384
|
-
readonly params:
|
|
385
|
-
|
|
386
|
-
readonly name: string;
|
|
387
|
-
readonly operation_id: string;
|
|
388
|
-
};
|
|
389
|
-
readonly result: {
|
|
390
|
-
readonly agent_id: string;
|
|
391
|
-
readonly authority: string;
|
|
392
|
-
readonly conversation_id: string;
|
|
393
|
-
readonly log_epoch: string;
|
|
394
|
-
readonly name: string;
|
|
395
|
-
readonly position: string;
|
|
396
|
-
readonly url: string;
|
|
397
|
-
};
|
|
214
|
+
readonly params: never;
|
|
215
|
+
readonly result: never;
|
|
398
216
|
};
|
|
399
217
|
readonly "conversations/retry": {
|
|
400
|
-
readonly params:
|
|
401
|
-
|
|
402
|
-
readonly message_id: string;
|
|
403
|
-
readonly operation_id: string;
|
|
404
|
-
};
|
|
405
|
-
readonly result: {
|
|
406
|
-
readonly agent_id: string;
|
|
407
|
-
readonly authority: string;
|
|
408
|
-
readonly conversation_id: string;
|
|
409
|
-
readonly log_epoch: string;
|
|
410
|
-
readonly message_id: string;
|
|
411
|
-
readonly position: string;
|
|
412
|
-
readonly url: string;
|
|
413
|
-
};
|
|
218
|
+
readonly params: never;
|
|
219
|
+
readonly result: never;
|
|
414
220
|
};
|
|
415
221
|
readonly "conversations/send": {
|
|
416
|
-
readonly params:
|
|
417
|
-
|
|
418
|
-
readonly operation_id: string;
|
|
419
|
-
readonly text: string;
|
|
420
|
-
};
|
|
421
|
-
readonly result: {
|
|
422
|
-
readonly agent_id: string;
|
|
423
|
-
readonly authority: string;
|
|
424
|
-
readonly conversation_id: string;
|
|
425
|
-
readonly log_epoch: string;
|
|
426
|
-
readonly message_id: string;
|
|
427
|
-
readonly position: string;
|
|
428
|
-
readonly url: string;
|
|
429
|
-
};
|
|
222
|
+
readonly params: never;
|
|
223
|
+
readonly result: never;
|
|
430
224
|
};
|
|
431
|
-
readonly "
|
|
432
|
-
readonly params:
|
|
433
|
-
|
|
434
|
-
readonly limit?: number;
|
|
435
|
-
readonly order?: "asc" | "desc";
|
|
436
|
-
readonly room_ref: string;
|
|
437
|
-
};
|
|
438
|
-
readonly result: {
|
|
439
|
-
readonly next_cursor?: string;
|
|
440
|
-
readonly records: readonly {
|
|
441
|
-
readonly body: null | string;
|
|
442
|
-
readonly claimed: unknown;
|
|
443
|
-
readonly created_at: string;
|
|
444
|
-
readonly record: string;
|
|
445
|
-
readonly ref: string;
|
|
446
|
-
}[];
|
|
447
|
-
};
|
|
225
|
+
readonly "conversations/take-out": {
|
|
226
|
+
readonly params: never;
|
|
227
|
+
readonly result: never;
|
|
448
228
|
};
|
|
449
|
-
readonly "rooms/access/
|
|
229
|
+
readonly "rooms/access/list": {
|
|
450
230
|
readonly params: {
|
|
231
|
+
readonly operation_id?: string;
|
|
451
232
|
readonly room_ref: string;
|
|
452
|
-
readonly statistics?: boolean;
|
|
453
233
|
};
|
|
454
234
|
readonly result: {
|
|
455
235
|
readonly authority: "administrator" | "member" | "owner";
|
|
@@ -458,69 +238,74 @@ export interface HouseMethods {
|
|
|
458
238
|
readonly direct: readonly {
|
|
459
239
|
readonly level: null | "keep" | "open" | "search";
|
|
460
240
|
readonly namespace: string;
|
|
461
|
-
readonly operations: readonly ("
|
|
241
|
+
readonly operations: readonly ("erase" | "export" | "manageAccess" | "write")[];
|
|
462
242
|
}[];
|
|
463
|
-
readonly downloads_per_day?: number;
|
|
464
243
|
readonly entries: readonly {
|
|
465
244
|
readonly level: null | "keep" | "open" | "search";
|
|
466
245
|
readonly namespace: string;
|
|
467
|
-
readonly operations: readonly ("
|
|
246
|
+
readonly operations: readonly ("erase" | "export" | "manageAccess" | "write")[];
|
|
468
247
|
readonly sources: readonly {
|
|
469
248
|
readonly kind: "direct" | "inherited";
|
|
470
249
|
readonly level: null | "keep" | "open" | "search";
|
|
471
250
|
readonly namespace: string;
|
|
472
|
-
readonly operations: readonly ("
|
|
251
|
+
readonly operations: readonly ("erase" | "export" | "manageAccess" | "write")[];
|
|
473
252
|
}[];
|
|
474
253
|
}[];
|
|
475
254
|
readonly key: null | string;
|
|
476
|
-
readonly requests_per_day?: number;
|
|
477
255
|
readonly schema_roles: readonly string[];
|
|
256
|
+
readonly through_space?: true;
|
|
478
257
|
readonly user: string;
|
|
479
258
|
readonly user_name: string;
|
|
480
259
|
}[];
|
|
481
260
|
readonly namespaces: readonly string[];
|
|
482
261
|
readonly owner: string;
|
|
483
262
|
readonly room_ref: string;
|
|
484
|
-
readonly statistics?: readonly {
|
|
485
|
-
readonly day: string;
|
|
486
|
-
readonly downloads: number;
|
|
487
|
-
readonly requests: number;
|
|
488
|
-
readonly text_bytes: number;
|
|
489
|
-
readonly user: string;
|
|
490
|
-
}[];
|
|
491
263
|
readonly url: string;
|
|
492
264
|
readonly viewer: string;
|
|
493
265
|
};
|
|
494
266
|
};
|
|
495
|
-
readonly "rooms/members": {
|
|
267
|
+
readonly "rooms/members/list": {
|
|
496
268
|
readonly params: {
|
|
497
|
-
readonly cursor?: string;
|
|
498
269
|
readonly history?: boolean;
|
|
499
|
-
readonly
|
|
270
|
+
readonly operation_id?: string;
|
|
500
271
|
readonly room_ref: string;
|
|
501
272
|
};
|
|
502
273
|
readonly result: {
|
|
503
|
-
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
|
+
} | {
|
|
504
282
|
readonly at: string;
|
|
505
283
|
readonly kind: "granted" | "revoked";
|
|
506
284
|
readonly user: string;
|
|
507
|
-
}[];
|
|
285
|
+
})[];
|
|
508
286
|
readonly members: readonly {
|
|
509
|
-
readonly access?: "
|
|
287
|
+
readonly access?: "manage" | "owner" | "read" | "write";
|
|
288
|
+
readonly copies?: "online_only" | "search_only";
|
|
510
289
|
readonly display_name: string;
|
|
511
290
|
readonly email?: string;
|
|
512
291
|
readonly member_document: null | string;
|
|
513
|
-
readonly only_while_online?: true;
|
|
514
292
|
readonly owner: boolean;
|
|
515
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
|
+
}[];
|
|
516
300
|
readonly since: null | string;
|
|
301
|
+
readonly through_space?: true;
|
|
517
302
|
readonly user: string;
|
|
518
303
|
}[];
|
|
519
|
-
readonly next_cursor?: string;
|
|
520
304
|
};
|
|
521
305
|
};
|
|
522
306
|
readonly "rooms/settings/processing/read": {
|
|
523
307
|
readonly params: {
|
|
308
|
+
readonly operation_id?: string;
|
|
524
309
|
readonly path: string;
|
|
525
310
|
readonly room_ref: string;
|
|
526
311
|
};
|
|
@@ -546,28 +331,42 @@ export interface HouseMethods {
|
|
|
546
331
|
readonly policy: {
|
|
547
332
|
readonly from: null | string;
|
|
548
333
|
readonly origin: "default" | "explicit" | "inherited";
|
|
549
|
-
readonly reason: null | "
|
|
334
|
+
readonly reason: null | "full_house_required" | "room_too_large";
|
|
550
335
|
readonly value: "Off" | "On";
|
|
551
336
|
};
|
|
552
337
|
readonly writable: boolean;
|
|
553
338
|
};
|
|
554
339
|
};
|
|
555
|
-
readonly "
|
|
340
|
+
readonly "service-keys/signatures/check": {
|
|
556
341
|
readonly params: {
|
|
342
|
+
readonly operation_id?: string;
|
|
343
|
+
readonly origin: string;
|
|
557
344
|
readonly room_ref: string;
|
|
345
|
+
readonly signature: string;
|
|
346
|
+
readonly text: string;
|
|
558
347
|
};
|
|
559
348
|
readonly result: {
|
|
560
|
-
readonly
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
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;
|
|
568
367
|
};
|
|
569
368
|
};
|
|
570
|
-
readonly "
|
|
369
|
+
readonly "sites/submissions/create": {
|
|
571
370
|
readonly params: {
|
|
572
371
|
readonly content: string;
|
|
573
372
|
};
|
|
@@ -575,9 +374,11 @@ export interface HouseMethods {
|
|
|
575
374
|
readonly submitted: true;
|
|
576
375
|
};
|
|
577
376
|
};
|
|
578
|
-
readonly "storage/inventory": {
|
|
377
|
+
readonly "storage/inventory/read": {
|
|
579
378
|
readonly params: {
|
|
379
|
+
readonly operation_id?: string;
|
|
580
380
|
readonly room_ref?: string;
|
|
381
|
+
readonly rooms?: "owned";
|
|
581
382
|
};
|
|
582
383
|
readonly result: {
|
|
583
384
|
readonly blob: {
|
|
@@ -588,19 +389,9 @@ export interface HouseMethods {
|
|
|
588
389
|
readonly state: "settled";
|
|
589
390
|
};
|
|
590
391
|
readonly indexed_text: {
|
|
591
|
-
readonly approximate_pages: null | string;
|
|
592
392
|
readonly bytes: string;
|
|
593
393
|
readonly gigabytes: string;
|
|
594
394
|
};
|
|
595
|
-
readonly measurement: {
|
|
596
|
-
readonly page_reference: null | {
|
|
597
|
-
readonly bytes_per_page: string;
|
|
598
|
-
readonly encoding: string;
|
|
599
|
-
readonly font: string;
|
|
600
|
-
readonly font_size_pt: string;
|
|
601
|
-
readonly layout: string;
|
|
602
|
-
};
|
|
603
|
-
};
|
|
604
395
|
readonly room_ref: string;
|
|
605
396
|
readonly total: {
|
|
606
397
|
readonly bytes: string;
|
|
@@ -616,19 +407,28 @@ export interface HouseMethods {
|
|
|
616
407
|
readonly state: "settled";
|
|
617
408
|
};
|
|
618
409
|
readonly indexed_text: {
|
|
619
|
-
readonly approximate_pages: null | string;
|
|
620
410
|
readonly bytes: string;
|
|
621
411
|
readonly gigabytes: string;
|
|
622
412
|
};
|
|
623
|
-
readonly
|
|
624
|
-
readonly
|
|
625
|
-
readonly
|
|
626
|
-
readonly
|
|
627
|
-
readonly font: string;
|
|
628
|
-
readonly font_size_pt: string;
|
|
629
|
-
readonly layout: string;
|
|
413
|
+
readonly rooms?: readonly {
|
|
414
|
+
readonly blob: {
|
|
415
|
+
readonly bytes: string;
|
|
416
|
+
readonly gigabytes: string;
|
|
630
417
|
};
|
|
631
|
-
|
|
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
|
+
}[];
|
|
632
432
|
readonly site_images: {
|
|
633
433
|
readonly bound: string;
|
|
634
434
|
readonly bytes: string;
|
|
@@ -638,51 +438,37 @@ export interface HouseMethods {
|
|
|
638
438
|
readonly bytes: string;
|
|
639
439
|
readonly gigabytes: string;
|
|
640
440
|
};
|
|
641
|
-
} | {
|
|
642
|
-
readonly blob: {
|
|
643
|
-
readonly bytes: string;
|
|
644
|
-
readonly gigabytes: string;
|
|
645
|
-
};
|
|
646
|
-
readonly freshness: {
|
|
647
|
-
readonly state: "settled";
|
|
648
|
-
};
|
|
649
|
-
readonly indexed_text: {
|
|
650
|
-
readonly approximate_pages: null | string;
|
|
651
|
-
readonly bytes: string;
|
|
652
|
-
readonly gigabytes: string;
|
|
653
|
-
};
|
|
654
|
-
readonly measurement: {
|
|
655
|
-
readonly page_reference: null | {
|
|
656
|
-
readonly bytes_per_page: string;
|
|
657
|
-
readonly encoding: string;
|
|
658
|
-
readonly font: string;
|
|
659
|
-
readonly font_size_pt: string;
|
|
660
|
-
readonly layout: string;
|
|
661
|
-
};
|
|
662
|
-
};
|
|
663
|
-
readonly total: {
|
|
664
|
-
readonly bytes: string;
|
|
665
|
-
readonly gigabytes: string;
|
|
666
|
-
};
|
|
667
441
|
};
|
|
668
442
|
};
|
|
669
|
-
readonly "triggers/fired": {
|
|
443
|
+
readonly "triggers/fired/list": {
|
|
670
444
|
readonly params: {
|
|
671
|
-
readonly
|
|
445
|
+
readonly operation_id?: string;
|
|
446
|
+
readonly room_ref?: string;
|
|
672
447
|
};
|
|
673
448
|
readonly result: {
|
|
674
449
|
readonly events: readonly {
|
|
675
450
|
readonly actions: readonly ({
|
|
676
|
-
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";
|
|
677
452
|
readonly code: "cap_reached";
|
|
678
453
|
readonly outcome: "refused";
|
|
679
454
|
readonly position: number;
|
|
680
455
|
readonly retry_at: string;
|
|
681
456
|
} | {
|
|
682
|
-
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";
|
|
683
458
|
readonly code: "cap_reached";
|
|
684
459
|
readonly outcome: "refused";
|
|
685
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;
|
|
686
472
|
} | {
|
|
687
473
|
readonly code: "agent_unavailable";
|
|
688
474
|
readonly outcome: "withdrawn";
|
|
@@ -710,6 +496,11 @@ export interface HouseMethods {
|
|
|
710
496
|
readonly outcome: "failed";
|
|
711
497
|
readonly position: number;
|
|
712
498
|
readonly tries: number;
|
|
499
|
+
} | {
|
|
500
|
+
readonly code: "internal_error";
|
|
501
|
+
readonly final: true;
|
|
502
|
+
readonly outcome: "failed";
|
|
503
|
+
readonly position: number;
|
|
713
504
|
} | {
|
|
714
505
|
readonly code: "limit_reached";
|
|
715
506
|
readonly limit: "reads";
|
|
@@ -734,27 +525,32 @@ export interface HouseMethods {
|
|
|
734
525
|
readonly value: string;
|
|
735
526
|
} | {
|
|
736
527
|
readonly code: "limit_reached";
|
|
737
|
-
readonly limit: "custom_domains" | "external_calls" | "
|
|
528
|
+
readonly limit: "custom_domains" | "external_calls" | "publish_data" | "site_function_calls" | "sites";
|
|
738
529
|
readonly outcome: "refused";
|
|
739
530
|
readonly position: number;
|
|
740
531
|
readonly retry_at: string;
|
|
741
532
|
} | {
|
|
742
533
|
readonly code: "limit_reached";
|
|
743
|
-
readonly limit: "custom_domains" | "external_calls" | "
|
|
534
|
+
readonly limit: "custom_domains" | "external_calls" | "publish_data" | "site_function_calls" | "sites";
|
|
744
535
|
readonly outcome: "refused";
|
|
745
536
|
readonly position: number;
|
|
746
537
|
} | {
|
|
747
|
-
readonly code: "
|
|
748
|
-
readonly
|
|
538
|
+
readonly code: "post_not_confirmed";
|
|
539
|
+
readonly final: true;
|
|
540
|
+
readonly outcome: "failed";
|
|
749
541
|
readonly position: number;
|
|
750
542
|
} | {
|
|
751
|
-
readonly code: "
|
|
752
|
-
readonly outcome: "
|
|
543
|
+
readonly code: "agent_function_retired" | "environment_offline" | "no_group" | "no_recipient" | "not_found" | "target_agent_unavailable";
|
|
544
|
+
readonly outcome: "no_target";
|
|
753
545
|
readonly position: number;
|
|
754
546
|
} | {
|
|
755
547
|
readonly code: string;
|
|
756
548
|
readonly outcome: "refused";
|
|
757
549
|
readonly position: number;
|
|
550
|
+
} | {
|
|
551
|
+
readonly conversations: number;
|
|
552
|
+
readonly outcome: "marked";
|
|
553
|
+
readonly position: number;
|
|
758
554
|
} | {
|
|
759
555
|
readonly cut?: boolean;
|
|
760
556
|
readonly exit_code?: number;
|
|
@@ -762,6 +558,10 @@ export interface HouseMethods {
|
|
|
762
558
|
readonly output?: string;
|
|
763
559
|
readonly position: number;
|
|
764
560
|
readonly run: string;
|
|
561
|
+
} | {
|
|
562
|
+
readonly mentioned: number;
|
|
563
|
+
readonly outcome: "posted";
|
|
564
|
+
readonly position: number;
|
|
765
565
|
} | {
|
|
766
566
|
readonly outcome: "continued";
|
|
767
567
|
readonly position: number;
|
|
@@ -798,6 +598,7 @@ export interface HouseMethods {
|
|
|
798
598
|
readonly missed?: "failed" | "skipped";
|
|
799
599
|
readonly moment?: string;
|
|
800
600
|
readonly path?: string;
|
|
601
|
+
readonly room_ref?: string;
|
|
801
602
|
readonly trigger: string;
|
|
802
603
|
readonly url?: string;
|
|
803
604
|
}[];
|
|
@@ -824,7 +625,7 @@ export interface HouseCredentialState {
|
|
|
824
625
|
readonly state: Open<'none' | 'held' | 'rejected'>;
|
|
825
626
|
readonly expiresAt: number | null;
|
|
826
627
|
}
|
|
827
|
-
export type HouseDatabaseFailure = '
|
|
628
|
+
export type HouseDatabaseFailure = 'damaged';
|
|
828
629
|
export type HouseAnalyticsChoice = 'accept' | 'decline';
|
|
829
630
|
export interface HouseAnalytics {
|
|
830
631
|
readonly measures: boolean;
|
|
@@ -841,7 +642,6 @@ export interface HouseStatus {
|
|
|
841
642
|
readonly sync: HouseSyncState | null;
|
|
842
643
|
readonly refusal: {
|
|
843
644
|
readonly code: string;
|
|
844
|
-
readonly retryable: boolean;
|
|
845
645
|
} | null;
|
|
846
646
|
readonly loss: string | null;
|
|
847
647
|
readonly database: Open<HouseDatabaseFailure> | null;
|
|
@@ -853,6 +653,7 @@ export type HouseNavigationMode = 'push' | 'replace';
|
|
|
853
653
|
export interface HouseTab {
|
|
854
654
|
readonly title?: string;
|
|
855
655
|
readonly icon?: string;
|
|
656
|
+
readonly scheme?: 'light' | 'dark' | null;
|
|
856
657
|
}
|
|
857
658
|
interface HouseRelease {
|
|
858
659
|
readonly app_ref: string;
|
|
@@ -903,8 +704,26 @@ export interface HouseAppMessage {
|
|
|
903
704
|
readonly from: string;
|
|
904
705
|
readonly body: unknown;
|
|
905
706
|
}
|
|
906
|
-
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
|
+
}
|
|
907
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
|
+
}
|
|
908
727
|
export interface HouseCeremonyRefused extends Error {
|
|
909
728
|
readonly name: 'HouseCeremonyRefused';
|
|
910
729
|
readonly code: Open<'house_ceremony_refused'>;
|
|
@@ -924,7 +743,6 @@ export interface HouseBrowserRefused extends Error {
|
|
|
924
743
|
export interface HouseCooperation {
|
|
925
744
|
placed(): Promise<void> | void;
|
|
926
745
|
}
|
|
927
|
-
export type HouseChatWidth = 'full' | '3/4' | '1/2' | '1/3';
|
|
928
746
|
export interface HouseChatOpened {
|
|
929
747
|
readonly conversation: string | null;
|
|
930
748
|
readonly agent: string | null;
|
|
@@ -932,8 +750,6 @@ export interface HouseChatOpened {
|
|
|
932
750
|
export interface HouseChatOptions {
|
|
933
751
|
readonly conversation?: string | null;
|
|
934
752
|
readonly agent?: string | null;
|
|
935
|
-
readonly showChats?: boolean;
|
|
936
|
-
readonly width?: HouseChatWidth;
|
|
937
753
|
readonly onOpen?: (opened: HouseChatOpened) => void;
|
|
938
754
|
readonly onLink?: (href: string) => void;
|
|
939
755
|
}
|
|
@@ -941,8 +757,27 @@ export interface HouseMountedChat {
|
|
|
941
757
|
update(options: HouseChatOptions): void;
|
|
942
758
|
unmount(): void;
|
|
943
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
|
+
}
|
|
944
778
|
export interface HouseChat {
|
|
945
779
|
mount(element: object, options?: HouseChatOptions): Promise<HouseMountedChat>;
|
|
780
|
+
mountButton(options?: HouseChatButtonMount): Promise<HouseChatButton>;
|
|
946
781
|
}
|
|
947
782
|
export interface HouseBridge {
|
|
948
783
|
readonly runtime: Promise<HouseRuntime>;
|
|
@@ -951,10 +786,11 @@ export interface HouseBridge {
|
|
|
951
786
|
onAddress(listener: (address: string) => void): () => void;
|
|
952
787
|
push(address: string): Promise<string>;
|
|
953
788
|
replace(address: string): Promise<string>;
|
|
954
|
-
ceremony(path: string): Promise<
|
|
955
|
-
|
|
789
|
+
ceremony(path: string): Promise<HouseCeremonyEnded>;
|
|
790
|
+
onTitleBar(listener: (area: HouseBox | null) => void): () => void;
|
|
791
|
+
setTitleBar(row: HouseTitleRow | null): void;
|
|
956
792
|
notifications(on?: boolean): Promise<HouseNotifications>;
|
|
957
|
-
|
|
793
|
+
telegram(link?: true): Promise<HouseTelegram>;
|
|
958
794
|
setTab(tab: HouseTab): void;
|
|
959
795
|
sourceTop(app: string, release?: string): Promise<HouseSourceTop | HouseRefusal | null>;
|
|
960
796
|
sourceDownload(app: string, release?: string): Promise<HouseSourceDownload | HouseRefusal | null>;
|