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