@agentshouse/app-bridge 0.1.0-caabde65fcc7f → 0.1.0-cac2ee656ded8
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 +136 -406
- package/dist/mdmodel/body.d.ts +84 -0
- package/dist/mdmodel/built-in.d.ts +3 -0
- package/dist/mdmodel/crockford.d.ts +3 -0
- package/dist/mdmodel/definition.d.ts +20 -10
- 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 +826 -0
- package/dist/mdmodel/house-references.d.ts +3 -0
- package/dist/mdmodel/index.d.ts +34 -13
- package/dist/mdmodel/kinds.d.ts +17 -0
- package/dist/mdmodel/markdown.d.ts +74 -0
- package/dist/mdmodel/paths.d.ts +10 -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/reserved.d.ts +5 -0
- package/dist/mdmodel/room-types.d.ts +6 -0
- package/dist/mdmodel/types.d.ts +21 -12
- package/dist/mdmodel/validate.d.ts +10 -6
- package/dist/mdruntime/actions.d.ts +25 -0
- package/dist/mdruntime/adapter.d.ts +88 -79
- package/dist/mdruntime/attached-model.d.ts +6 -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 +1 -0
- package/dist/mdruntime/client.d.ts +28 -21
- package/dist/mdruntime/collection.d.ts +23 -4
- package/dist/mdruntime/compile.d.ts +9 -7
- package/dist/mdruntime/conversation-live.d.ts +146 -0
- package/dist/mdruntime/conversation-row.d.ts +32 -0
- package/dist/mdruntime/conversation.d.ts +62 -45
- 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/listing.d.ts +47 -0
- package/dist/mdruntime/live.d.ts +22 -0
- package/dist/mdruntime/media.d.ts +1 -1
- package/dist/mdruntime/messages.d.ts +33 -5
- package/dist/mdruntime/model.d.ts +2 -10
- package/dist/mdruntime/observation.d.ts +4 -3
- package/dist/mdruntime/opened.d.ts +1 -1
- package/dist/mdruntime/outcome.d.ts +7 -1
- package/dist/mdruntime/overlay.d.ts +6 -1
- package/dist/mdruntime/preparation.d.ts +19 -0
- package/dist/mdruntime/presence.d.ts +51 -0
- package/dist/mdruntime/query.d.ts +13 -211
- package/dist/mdruntime/reach.d.ts +14 -12
- package/dist/mdruntime/readiness.d.ts +1 -4
- 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 +6 -7
- 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 +31 -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 +53 -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 +9 -0
- package/dist/mdruntime/store/records.d.ts +214 -0
- package/dist/mdruntime/store/room-held.d.ts +7 -0
- package/dist/mdruntime/store/space.d.ts +10 -0
- package/dist/mdruntime/store/watchers.d.ts +16 -0
- package/dist/mdruntime/store/writes.d.ts +23 -0
- package/dist/mdruntime/store.d.ts +112 -155
- package/dist/mdruntime/stored.d.ts +60 -66
- package/dist/mdruntime/surface.d.ts +88 -0
- package/dist/mdruntime/tables.d.ts +120 -56
- package/dist/mdruntime/tallies.d.ts +17 -0
- package/dist/mdruntime/transfer.d.ts +4 -0
- package/dist/mdruntime/wire.d.ts +67 -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.js +1 -1
- package/docs/families.md +22 -16
- 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
|
-
};
|
|
190
|
+
readonly params: never;
|
|
191
|
+
readonly result: never;
|
|
161
192
|
};
|
|
162
|
-
readonly "conversations/
|
|
163
|
-
readonly params:
|
|
164
|
-
|
|
165
|
-
readonly operation_id: string;
|
|
166
|
-
};
|
|
167
|
-
readonly result: {
|
|
168
|
-
readonly agent_id: string;
|
|
169
|
-
readonly authority: string;
|
|
170
|
-
readonly conversation_id: string;
|
|
171
|
-
readonly done: null | string;
|
|
172
|
-
readonly log_epoch: string;
|
|
173
|
-
readonly position: string;
|
|
174
|
-
readonly url: string;
|
|
175
|
-
};
|
|
176
|
-
};
|
|
177
|
-
readonly "conversations/history": {
|
|
178
|
-
readonly params: {
|
|
179
|
-
readonly conversations: readonly {
|
|
180
|
-
readonly after?: {
|
|
181
|
-
readonly accepted_at: string;
|
|
182
|
-
readonly message_id: string;
|
|
183
|
-
};
|
|
184
|
-
readonly conversation_id: string;
|
|
185
|
-
}[];
|
|
186
|
-
readonly limit?: number;
|
|
187
|
-
};
|
|
188
|
-
readonly result: {
|
|
189
|
-
readonly histories: readonly {
|
|
190
|
-
readonly agent_id: string;
|
|
191
|
-
readonly conversation_id: string;
|
|
192
|
-
readonly messages: readonly {
|
|
193
|
-
readonly accepted_at: string;
|
|
194
|
-
readonly context: null | {
|
|
195
|
-
readonly used: number;
|
|
196
|
-
readonly window: number;
|
|
197
|
-
};
|
|
198
|
-
readonly conversation_id: string;
|
|
199
|
-
readonly failure: null | string;
|
|
200
|
-
readonly message_id: string;
|
|
201
|
-
readonly parts: readonly ({
|
|
202
|
-
readonly command: string;
|
|
203
|
-
readonly target: null | string;
|
|
204
|
-
readonly type: "message";
|
|
205
|
-
} | {
|
|
206
|
-
readonly count: number;
|
|
207
|
-
readonly type: "commands";
|
|
208
|
-
} | {
|
|
209
|
-
readonly description: string;
|
|
210
|
-
readonly result: null | string;
|
|
211
|
-
readonly status: "done" | "running";
|
|
212
|
-
readonly type: "subagent";
|
|
213
|
-
} | {
|
|
214
|
-
readonly entries: readonly {
|
|
215
|
-
readonly content: string;
|
|
216
|
-
readonly status: string;
|
|
217
|
-
}[];
|
|
218
|
-
readonly type: "plan";
|
|
219
|
-
} | {
|
|
220
|
-
readonly file: string;
|
|
221
|
-
readonly media_type: string;
|
|
222
|
-
readonly name: string;
|
|
223
|
-
readonly type: "image";
|
|
224
|
-
} | {
|
|
225
|
-
readonly marker: "compaction" | "job" | "mode" | "model" | "retry";
|
|
226
|
-
readonly text: string;
|
|
227
|
-
readonly type: "marker";
|
|
228
|
-
} | {
|
|
229
|
-
readonly text: string;
|
|
230
|
-
readonly type: "reasoning";
|
|
231
|
-
} | {
|
|
232
|
-
readonly text: string;
|
|
233
|
-
readonly type: "text";
|
|
234
|
-
})[];
|
|
235
|
-
readonly role: "assistant" | "house" | "user";
|
|
236
|
-
readonly sender?: "conversation" | "customer" | "owner" | "report" | "requester" | "trigger";
|
|
237
|
-
readonly source?: {
|
|
238
|
-
readonly agent: {
|
|
239
|
-
readonly id: string;
|
|
240
|
-
readonly name: string;
|
|
241
|
-
readonly url: string;
|
|
242
|
-
};
|
|
243
|
-
readonly approved_at?: string;
|
|
244
|
-
readonly declined_at?: string;
|
|
245
|
-
readonly kind: "mail";
|
|
246
|
-
readonly owner: {
|
|
247
|
-
readonly name: string;
|
|
248
|
-
readonly user: string;
|
|
249
|
-
};
|
|
250
|
-
readonly request: string;
|
|
251
|
-
readonly room: string;
|
|
252
|
-
} | {
|
|
253
|
-
readonly agent: {
|
|
254
|
-
readonly id: string;
|
|
255
|
-
readonly name: string;
|
|
256
|
-
readonly url: string;
|
|
257
|
-
};
|
|
258
|
-
readonly conversation: {
|
|
259
|
-
readonly id: string;
|
|
260
|
-
readonly name: string;
|
|
261
|
-
readonly url: string;
|
|
262
|
-
};
|
|
263
|
-
readonly kind: "conversation";
|
|
264
|
-
} | {
|
|
265
|
-
readonly agent: {
|
|
266
|
-
readonly id: string;
|
|
267
|
-
readonly name: string;
|
|
268
|
-
readonly url: string;
|
|
269
|
-
};
|
|
270
|
-
readonly kind: "declined";
|
|
271
|
-
readonly owner: {
|
|
272
|
-
readonly name: string;
|
|
273
|
-
readonly user: string;
|
|
274
|
-
};
|
|
275
|
-
readonly request: string;
|
|
276
|
-
} | {
|
|
277
|
-
readonly approved_at: null | string;
|
|
278
|
-
readonly kind: "request";
|
|
279
|
-
readonly request: string;
|
|
280
|
-
readonly requester: {
|
|
281
|
-
readonly name: string;
|
|
282
|
-
readonly room: string;
|
|
283
|
-
readonly url: string;
|
|
284
|
-
} | {
|
|
285
|
-
readonly name: string;
|
|
286
|
-
readonly user: string;
|
|
287
|
-
};
|
|
288
|
-
readonly room: {
|
|
289
|
-
readonly handle: string;
|
|
290
|
-
readonly name: string;
|
|
291
|
-
readonly ref: string;
|
|
292
|
-
readonly url: string;
|
|
293
|
-
};
|
|
294
|
-
readonly routine: null | {
|
|
295
|
-
readonly id: string;
|
|
296
|
-
readonly name: string;
|
|
297
|
-
readonly version: number;
|
|
298
|
-
};
|
|
299
|
-
} | {
|
|
300
|
-
readonly kind: "trigger";
|
|
301
|
-
readonly path: null | string;
|
|
302
|
-
readonly room: {
|
|
303
|
-
readonly handle: string;
|
|
304
|
-
readonly name: string;
|
|
305
|
-
readonly ref: string;
|
|
306
|
-
readonly url: string;
|
|
307
|
-
};
|
|
308
|
-
readonly trigger: {
|
|
309
|
-
readonly description: string;
|
|
310
|
-
readonly id: string;
|
|
311
|
-
};
|
|
312
|
-
};
|
|
313
|
-
readonly telegram_undelivered?: true;
|
|
314
|
-
readonly text: string;
|
|
315
|
-
readonly transcripts?: readonly {
|
|
316
|
-
readonly path: string;
|
|
317
|
-
readonly text: string;
|
|
318
|
-
}[];
|
|
319
|
-
readonly turn_id: null | string;
|
|
320
|
-
readonly url?: string;
|
|
321
|
-
readonly waiting?: true;
|
|
322
|
-
}[];
|
|
323
|
-
readonly next: null | {
|
|
324
|
-
readonly accepted_at: string;
|
|
325
|
-
readonly message_id: string;
|
|
326
|
-
};
|
|
327
|
-
readonly url: string;
|
|
328
|
-
}[];
|
|
329
|
-
};
|
|
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,43 +238,36 @@ 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: {
|
|
@@ -512,20 +277,22 @@ export interface HouseMethods {
|
|
|
512
277
|
readonly user: string;
|
|
513
278
|
}[];
|
|
514
279
|
readonly members: readonly {
|
|
515
|
-
readonly access?: "
|
|
280
|
+
readonly access?: "manage" | "owner" | "read" | "write";
|
|
281
|
+
readonly copies?: "online_only" | "search_only";
|
|
516
282
|
readonly display_name: string;
|
|
517
283
|
readonly email?: string;
|
|
518
284
|
readonly member_document: null | string;
|
|
519
|
-
readonly only_while_online?: true;
|
|
520
285
|
readonly owner: boolean;
|
|
521
286
|
readonly schema_roles?: readonly string[];
|
|
522
287
|
readonly since: null | string;
|
|
288
|
+
readonly through_space?: true;
|
|
523
289
|
readonly user: string;
|
|
524
290
|
}[];
|
|
525
291
|
};
|
|
526
292
|
};
|
|
527
293
|
readonly "rooms/settings/processing/read": {
|
|
528
294
|
readonly params: {
|
|
295
|
+
readonly operation_id?: string;
|
|
529
296
|
readonly path: string;
|
|
530
297
|
readonly room_ref: string;
|
|
531
298
|
};
|
|
@@ -557,22 +324,7 @@ export interface HouseMethods {
|
|
|
557
324
|
readonly writable: boolean;
|
|
558
325
|
};
|
|
559
326
|
};
|
|
560
|
-
readonly "
|
|
561
|
-
readonly params: {
|
|
562
|
-
readonly room_ref: string;
|
|
563
|
-
};
|
|
564
|
-
readonly result: {
|
|
565
|
-
readonly current: readonly {
|
|
566
|
-
readonly document: string;
|
|
567
|
-
readonly name: string;
|
|
568
|
-
}[];
|
|
569
|
-
readonly history: readonly {
|
|
570
|
-
readonly document: string;
|
|
571
|
-
readonly name: string;
|
|
572
|
-
}[];
|
|
573
|
-
};
|
|
574
|
-
};
|
|
575
|
-
readonly "site/submission": {
|
|
327
|
+
readonly "sites/submissions/create": {
|
|
576
328
|
readonly params: {
|
|
577
329
|
readonly content: string;
|
|
578
330
|
};
|
|
@@ -580,9 +332,11 @@ export interface HouseMethods {
|
|
|
580
332
|
readonly submitted: true;
|
|
581
333
|
};
|
|
582
334
|
};
|
|
583
|
-
readonly "storage/inventory": {
|
|
335
|
+
readonly "storage/inventory/read": {
|
|
584
336
|
readonly params: {
|
|
337
|
+
readonly operation_id?: string;
|
|
585
338
|
readonly room_ref?: string;
|
|
339
|
+
readonly rooms?: "owned";
|
|
586
340
|
};
|
|
587
341
|
readonly result: {
|
|
588
342
|
readonly blob: {
|
|
@@ -593,19 +347,9 @@ export interface HouseMethods {
|
|
|
593
347
|
readonly state: "settled";
|
|
594
348
|
};
|
|
595
349
|
readonly indexed_text: {
|
|
596
|
-
readonly approximate_pages: null | string;
|
|
597
350
|
readonly bytes: string;
|
|
598
351
|
readonly gigabytes: string;
|
|
599
352
|
};
|
|
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
353
|
readonly room_ref: string;
|
|
610
354
|
readonly total: {
|
|
611
355
|
readonly bytes: string;
|
|
@@ -621,19 +365,28 @@ export interface HouseMethods {
|
|
|
621
365
|
readonly state: "settled";
|
|
622
366
|
};
|
|
623
367
|
readonly indexed_text: {
|
|
624
|
-
readonly approximate_pages: null | string;
|
|
625
368
|
readonly bytes: string;
|
|
626
369
|
readonly gigabytes: string;
|
|
627
370
|
};
|
|
628
|
-
readonly
|
|
629
|
-
readonly
|
|
630
|
-
readonly
|
|
631
|
-
readonly
|
|
632
|
-
readonly font: string;
|
|
633
|
-
readonly font_size_pt: string;
|
|
634
|
-
readonly layout: string;
|
|
371
|
+
readonly rooms?: readonly {
|
|
372
|
+
readonly blob: {
|
|
373
|
+
readonly bytes: string;
|
|
374
|
+
readonly gigabytes: string;
|
|
635
375
|
};
|
|
636
|
-
|
|
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
|
+
}[];
|
|
637
390
|
readonly site_images: {
|
|
638
391
|
readonly bound: string;
|
|
639
392
|
readonly bytes: string;
|
|
@@ -643,48 +396,23 @@ export interface HouseMethods {
|
|
|
643
396
|
readonly bytes: string;
|
|
644
397
|
readonly gigabytes: string;
|
|
645
398
|
};
|
|
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
399
|
};
|
|
673
400
|
};
|
|
674
|
-
readonly "triggers/fired": {
|
|
401
|
+
readonly "triggers/fired/list": {
|
|
675
402
|
readonly params: {
|
|
676
|
-
readonly
|
|
403
|
+
readonly operation_id?: string;
|
|
404
|
+
readonly room_ref?: string;
|
|
677
405
|
};
|
|
678
406
|
readonly result: {
|
|
679
407
|
readonly events: readonly {
|
|
680
408
|
readonly actions: readonly ({
|
|
681
|
-
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";
|
|
682
410
|
readonly code: "cap_reached";
|
|
683
411
|
readonly outcome: "refused";
|
|
684
412
|
readonly position: number;
|
|
685
413
|
readonly retry_at: string;
|
|
686
414
|
} | {
|
|
687
|
-
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";
|
|
688
416
|
readonly code: "cap_reached";
|
|
689
417
|
readonly outcome: "refused";
|
|
690
418
|
readonly position: number;
|
|
@@ -739,22 +467,22 @@ export interface HouseMethods {
|
|
|
739
467
|
readonly value: string;
|
|
740
468
|
} | {
|
|
741
469
|
readonly code: "limit_reached";
|
|
742
|
-
readonly limit: "custom_domains" | "external_calls" | "
|
|
470
|
+
readonly limit: "custom_domains" | "external_calls" | "publish_data" | "sites";
|
|
743
471
|
readonly outcome: "refused";
|
|
744
472
|
readonly position: number;
|
|
745
473
|
readonly retry_at: string;
|
|
746
474
|
} | {
|
|
747
475
|
readonly code: "limit_reached";
|
|
748
|
-
readonly limit: "custom_domains" | "external_calls" | "
|
|
476
|
+
readonly limit: "custom_domains" | "external_calls" | "publish_data" | "sites";
|
|
749
477
|
readonly outcome: "refused";
|
|
750
478
|
readonly position: number;
|
|
751
479
|
} | {
|
|
752
|
-
readonly code: "
|
|
753
|
-
readonly outcome: "
|
|
480
|
+
readonly code: "agent_function_request_not_started" | "internal_error";
|
|
481
|
+
readonly outcome: "failed";
|
|
754
482
|
readonly position: number;
|
|
755
483
|
} | {
|
|
756
|
-
readonly code: "
|
|
757
|
-
readonly outcome: "
|
|
484
|
+
readonly code: "agent_function_retired" | "environment_offline" | "no_recipient" | "not_found" | "target_agent_unavailable";
|
|
485
|
+
readonly outcome: "no_target";
|
|
758
486
|
readonly position: number;
|
|
759
487
|
} | {
|
|
760
488
|
readonly code: string;
|
|
@@ -807,6 +535,7 @@ export interface HouseMethods {
|
|
|
807
535
|
readonly missed?: "failed" | "skipped";
|
|
808
536
|
readonly moment?: string;
|
|
809
537
|
readonly path?: string;
|
|
538
|
+
readonly room_ref?: string;
|
|
810
539
|
readonly trigger: string;
|
|
811
540
|
readonly url?: string;
|
|
812
541
|
}[];
|
|
@@ -833,7 +562,7 @@ export interface HouseCredentialState {
|
|
|
833
562
|
readonly state: Open<'none' | 'held' | 'rejected'>;
|
|
834
563
|
readonly expiresAt: number | null;
|
|
835
564
|
}
|
|
836
|
-
export type HouseDatabaseFailure = '
|
|
565
|
+
export type HouseDatabaseFailure = 'damaged';
|
|
837
566
|
export type HouseAnalyticsChoice = 'accept' | 'decline';
|
|
838
567
|
export interface HouseAnalytics {
|
|
839
568
|
readonly measures: boolean;
|
|
@@ -850,7 +579,6 @@ export interface HouseStatus {
|
|
|
850
579
|
readonly sync: HouseSyncState | null;
|
|
851
580
|
readonly refusal: {
|
|
852
581
|
readonly code: string;
|
|
853
|
-
readonly retryable: boolean;
|
|
854
582
|
} | null;
|
|
855
583
|
readonly loss: string | null;
|
|
856
584
|
readonly database: Open<HouseDatabaseFailure> | null;
|
|
@@ -914,6 +642,11 @@ export interface HouseAppMessage {
|
|
|
914
642
|
}
|
|
915
643
|
export type HouseInstallation = Open<'accepted' | 'dismissed' | 'manual'>;
|
|
916
644
|
export type HouseNotifications = Open<'on' | 'off' | 'blocked' | 'unavailable'>;
|
|
645
|
+
export interface HouseTelegram {
|
|
646
|
+
readonly state: Open<'available' | 'linked' | 'unavailable'>;
|
|
647
|
+
readonly name: string | null;
|
|
648
|
+
readonly username: string | null;
|
|
649
|
+
}
|
|
917
650
|
export interface HouseCeremonyRefused extends Error {
|
|
918
651
|
readonly name: 'HouseCeremonyRefused';
|
|
919
652
|
readonly code: Open<'house_ceremony_refused'>;
|
|
@@ -933,7 +666,6 @@ export interface HouseBrowserRefused extends Error {
|
|
|
933
666
|
export interface HouseCooperation {
|
|
934
667
|
placed(): Promise<void> | void;
|
|
935
668
|
}
|
|
936
|
-
export type HouseChatWidth = 'full' | '3/4' | '1/2' | '1/3';
|
|
937
669
|
export interface HouseChatOpened {
|
|
938
670
|
readonly conversation: string | null;
|
|
939
671
|
readonly agent: string | null;
|
|
@@ -941,8 +673,6 @@ export interface HouseChatOpened {
|
|
|
941
673
|
export interface HouseChatOptions {
|
|
942
674
|
readonly conversation?: string | null;
|
|
943
675
|
readonly agent?: string | null;
|
|
944
|
-
readonly showChats?: boolean;
|
|
945
|
-
readonly width?: HouseChatWidth;
|
|
946
676
|
readonly onOpen?: (opened: HouseChatOpened) => void;
|
|
947
677
|
readonly onLink?: (href: string) => void;
|
|
948
678
|
}
|
|
@@ -963,7 +693,7 @@ export interface HouseBridge {
|
|
|
963
693
|
ceremony(path: string): Promise<never>;
|
|
964
694
|
install(): Promise<HouseInstallation>;
|
|
965
695
|
notifications(on?: boolean): Promise<HouseNotifications>;
|
|
966
|
-
|
|
696
|
+
telegram(link?: true): Promise<HouseTelegram>;
|
|
967
697
|
setTab(tab: HouseTab): void;
|
|
968
698
|
sourceTop(app: string, release?: string): Promise<HouseSourceTop | HouseRefusal | null>;
|
|
969
699
|
sourceDownload(app: string, release?: string): Promise<HouseSourceDownload | HouseRefusal | null>;
|