@agentshouse/app-bridge 0.1.0-c3ebb08f5de71 → 0.1.0-c3ee7fcd01608
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 +7 -7
- package/dist/index.d.ts +669 -26
- 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 +15 -8
- package/dist/mdmodel/event.d.ts +76 -0
- package/dist/mdmodel/facts.d.ts +14 -0
- package/dist/mdmodel/fields.d.ts +1 -1
- package/dist/mdmodel/house-model.d.ts +869 -0
- package/dist/mdmodel/house-references/crockford.d.ts +3 -0
- package/dist/mdmodel/house-references/patterns.d.ts +8 -0
- package/dist/mdmodel/index.d.ts +44 -15
- package/dist/mdmodel/indexed.d.ts +8 -0
- package/dist/mdmodel/kinds.d.ts +20 -0
- package/dist/mdmodel/markdown.d.ts +74 -0
- package/dist/mdmodel/media-type.d.ts +71 -0
- package/dist/mdmodel/moment.d.ts +6 -0
- package/dist/mdmodel/not-ready.d.ts +1 -0
- package/dist/mdmodel/paths.d.ts +15 -1
- package/dist/mdmodel/pattern.d.ts +9 -0
- package/dist/mdmodel/query/language.d.ts +254 -0
- package/dist/mdmodel/query/match.d.ts +13 -0
- package/dist/mdmodel/query/rows.d.ts +31 -0
- package/dist/mdmodel/query/sql.d.ts +42 -0
- package/dist/mdmodel/query/walk.d.ts +62 -0
- package/dist/mdmodel/references.d.ts +2 -2
- package/dist/mdmodel/reserved.d.ts +5 -0
- package/dist/mdmodel/room-types.d.ts +6 -0
- package/dist/mdmodel/types.d.ts +22 -17
- package/dist/mdmodel/validate.d.ts +12 -6
- package/dist/mdmodel/yaml.d.ts +4 -4
- package/dist/mdruntime/actions.d.ts +25 -0
- package/dist/mdruntime/adapter.d.ts +211 -112
- 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 +39 -26
- package/dist/mdruntime/collection.d.ts +32 -7
- package/dist/mdruntime/compile.d.ts +8 -6
- package/dist/mdruntime/conversation-live.d.ts +151 -0
- package/dist/mdruntime/conversation-row.d.ts +39 -0
- package/dist/mdruntime/conversation.d.ts +72 -51
- package/dist/mdruntime/declaration.d.ts +9 -0
- package/dist/mdruntime/durability.d.ts +20 -1
- package/dist/mdruntime/failure.d.ts +3 -0
- package/dist/mdruntime/figures.d.ts +48 -0
- package/dist/mdruntime/holdings.d.ts +28 -0
- package/dist/mdruntime/house-query.d.ts +14 -0
- package/dist/mdruntime/identity.d.ts +0 -1
- package/dist/mdruntime/install.d.ts +59 -0
- package/dist/mdruntime/listing.d.ts +59 -0
- package/dist/mdruntime/live.d.ts +24 -0
- package/dist/mdruntime/media.d.ts +24 -0
- package/dist/mdruntime/messages.d.ts +35 -5
- package/dist/mdruntime/modal.d.ts +1 -0
- package/dist/mdruntime/model.d.ts +12 -13
- package/dist/mdruntime/observation.d.ts +31 -13
- package/dist/mdruntime/opened.d.ts +1 -1
- package/dist/mdruntime/outcome.d.ts +30 -7
- package/dist/mdruntime/overlay.d.ts +7 -2
- package/dist/mdruntime/preparation.d.ts +45 -0
- package/dist/mdruntime/presence.d.ts +57 -0
- package/dist/mdruntime/query.d.ts +14 -210
- package/dist/mdruntime/reach.d.ts +26 -14
- package/dist/mdruntime/readiness.d.ts +23 -22
- package/dist/mdruntime/reads.d.ts +38 -0
- package/dist/mdruntime/recovery.d.ts +4 -0
- package/dist/mdruntime/refresh.d.ts +26 -0
- package/dist/mdruntime/replica.d.ts +13 -19
- package/dist/mdruntime/retried.d.ts +29 -0
- package/dist/mdruntime/room-draft.d.ts +51 -12
- package/dist/mdruntime/room-drafts.d.ts +23 -0
- package/dist/mdruntime/runtime.d.ts +34 -0
- package/dist/mdruntime/save.d.ts +42 -84
- package/dist/mdruntime/saves.d.ts +33 -0
- package/dist/mdruntime/search.d.ts +12 -63
- package/dist/mdruntime/seed.d.ts +11 -2
- package/dist/mdruntime/socket/admission.d.ts +6 -0
- package/dist/mdruntime/socket/answers.d.ts +5 -0
- package/dist/mdruntime/socket/lanes.d.ts +27 -0
- package/dist/mdruntime/socket/session.d.ts +40 -0
- package/dist/mdruntime/socket.d.ts +67 -0
- package/dist/mdruntime/source.d.ts +58 -0
- package/dist/mdruntime/status.d.ts +4 -5
- package/dist/mdruntime/store/installs.d.ts +29 -0
- package/dist/mdruntime/store/readiness.d.ts +10 -0
- package/dist/mdruntime/store/records.d.ts +226 -0
- package/dist/mdruntime/store/room-held.d.ts +7 -0
- package/dist/mdruntime/store/rooms-shown.d.ts +7 -0
- package/dist/mdruntime/store/space.d.ts +10 -0
- package/dist/mdruntime/store/watchers.d.ts +16 -0
- package/dist/mdruntime/store/writes.d.ts +23 -0
- package/dist/mdruntime/store.d.ts +114 -156
- package/dist/mdruntime/stored.d.ts +87 -58
- package/dist/mdruntime/surface.d.ts +93 -0
- package/dist/mdruntime/tables.d.ts +129 -107
- package/dist/mdruntime/tallies.d.ts +17 -0
- package/dist/mdruntime/transfer.d.ts +0 -5
- package/dist/mdruntime/wire.d.ts +88 -13
- 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 -4
- package/dist/test-host.js +46 -29
- package/docs/families.md +108 -84
- package/package.json +2 -2
- package/dist/calls.d.ts +0 -1007
- package/dist/calls.js +0 -1
- package/dist/mdmodel/blocks.d.ts +0 -10
- package/dist/mdmodel/condition.d.ts +0 -160
- package/dist/mdmodel/links.d.ts +0 -28
- package/dist/mdmodel/profile.d.ts +0 -5
- package/dist/mdruntime/connection.d.ts +0 -151
- package/dist/mdruntime/file.d.ts +0 -11
- package/dist/mdruntime/fulltext.d.ts +0 -26
- package/dist/mdruntime/shared.d.ts +0 -15
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,625 @@
|
|
|
1
1
|
import type { MdRuntimeClient, Open } from './mdruntime/client.js';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
export interface HouseMethods {
|
|
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
|
+
};
|
|
27
|
+
readonly result: {
|
|
28
|
+
readonly features: readonly {
|
|
29
|
+
readonly allowed: boolean;
|
|
30
|
+
readonly feature: string;
|
|
31
|
+
}[];
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
readonly "apps/holders/list": {
|
|
35
|
+
readonly params: {
|
|
36
|
+
readonly operation_id?: string;
|
|
37
|
+
};
|
|
38
|
+
readonly result: {
|
|
39
|
+
readonly holders: readonly {
|
|
40
|
+
readonly name: string;
|
|
41
|
+
readonly user: string;
|
|
42
|
+
}[];
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
readonly "apps/messages/send": {
|
|
46
|
+
readonly params: {
|
|
47
|
+
readonly body: unknown;
|
|
48
|
+
readonly operation_id?: string;
|
|
49
|
+
readonly to: string;
|
|
50
|
+
};
|
|
51
|
+
readonly result: {
|
|
52
|
+
readonly [key: string]: never;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
readonly "apps/relay/read": {
|
|
56
|
+
readonly params: {
|
|
57
|
+
readonly operation_id?: string;
|
|
58
|
+
};
|
|
59
|
+
readonly result: {
|
|
60
|
+
readonly expires_at: string;
|
|
61
|
+
readonly ice_servers: readonly {
|
|
62
|
+
readonly credential: string;
|
|
63
|
+
readonly urls: readonly string[];
|
|
64
|
+
readonly username: string;
|
|
65
|
+
}[];
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
readonly "apps/ring": {
|
|
69
|
+
readonly params: {
|
|
70
|
+
readonly operation_id?: string;
|
|
71
|
+
readonly to: string;
|
|
72
|
+
};
|
|
73
|
+
readonly result: {
|
|
74
|
+
readonly authority: string;
|
|
75
|
+
readonly log_epoch: string;
|
|
76
|
+
readonly position: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
readonly "chats/assign": {
|
|
80
|
+
readonly params: {
|
|
81
|
+
readonly assignee: null | {
|
|
82
|
+
readonly agent: string;
|
|
83
|
+
} | {
|
|
84
|
+
readonly user: string;
|
|
85
|
+
};
|
|
86
|
+
readonly operation_id?: string;
|
|
87
|
+
readonly path: string;
|
|
88
|
+
readonly room_ref: string;
|
|
89
|
+
};
|
|
90
|
+
readonly result: {
|
|
91
|
+
readonly assignee: null | {
|
|
92
|
+
readonly agent: string;
|
|
93
|
+
readonly name: string;
|
|
94
|
+
} | {
|
|
95
|
+
readonly name: string;
|
|
96
|
+
readonly user: string;
|
|
97
|
+
};
|
|
98
|
+
readonly authority: string;
|
|
99
|
+
readonly log_epoch: string;
|
|
100
|
+
readonly path: string;
|
|
101
|
+
readonly position: string;
|
|
102
|
+
readonly return_to: null | {
|
|
103
|
+
readonly agent: string;
|
|
104
|
+
readonly name: string;
|
|
105
|
+
};
|
|
106
|
+
readonly room_ref: string;
|
|
107
|
+
readonly url: string;
|
|
108
|
+
};
|
|
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
|
+
};
|
|
133
|
+
readonly "chats/return": {
|
|
134
|
+
readonly params: {
|
|
135
|
+
readonly operation_id?: string;
|
|
136
|
+
readonly path: string;
|
|
137
|
+
readonly room_ref: string;
|
|
138
|
+
};
|
|
139
|
+
readonly result: {
|
|
140
|
+
readonly assignee: null | {
|
|
141
|
+
readonly agent: string;
|
|
142
|
+
readonly name: string;
|
|
143
|
+
} | {
|
|
144
|
+
readonly name: string;
|
|
145
|
+
readonly user: string;
|
|
146
|
+
};
|
|
147
|
+
readonly authority: string;
|
|
148
|
+
readonly log_epoch: string;
|
|
149
|
+
readonly path: string;
|
|
150
|
+
readonly position: string;
|
|
151
|
+
readonly return_to: null | {
|
|
152
|
+
readonly agent: string;
|
|
153
|
+
readonly name: string;
|
|
154
|
+
};
|
|
155
|
+
readonly room_ref: string;
|
|
156
|
+
readonly url: string;
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
readonly "chats/take-control": {
|
|
160
|
+
readonly params: {
|
|
161
|
+
readonly operation_id?: string;
|
|
162
|
+
readonly path: string;
|
|
163
|
+
readonly room_ref: string;
|
|
164
|
+
};
|
|
165
|
+
readonly result: {
|
|
166
|
+
readonly assignee: null | {
|
|
167
|
+
readonly agent: string;
|
|
168
|
+
readonly name: string;
|
|
169
|
+
} | {
|
|
170
|
+
readonly name: string;
|
|
171
|
+
readonly user: string;
|
|
172
|
+
};
|
|
173
|
+
readonly authority: string;
|
|
174
|
+
readonly log_epoch: string;
|
|
175
|
+
readonly path: string;
|
|
176
|
+
readonly position: string;
|
|
177
|
+
readonly return_to: null | {
|
|
178
|
+
readonly agent: string;
|
|
179
|
+
readonly name: string;
|
|
180
|
+
};
|
|
181
|
+
readonly room_ref: string;
|
|
182
|
+
readonly url: string;
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
readonly "conversations/create": {
|
|
186
|
+
readonly params: never;
|
|
187
|
+
readonly result: never;
|
|
188
|
+
};
|
|
189
|
+
readonly "conversations/delete": {
|
|
190
|
+
readonly params: never;
|
|
191
|
+
readonly result: never;
|
|
192
|
+
};
|
|
193
|
+
readonly "conversations/history/list": {
|
|
194
|
+
readonly params: never;
|
|
195
|
+
readonly result: never;
|
|
196
|
+
};
|
|
197
|
+
readonly "conversations/interaction/answer": {
|
|
198
|
+
readonly params: never;
|
|
199
|
+
readonly result: never;
|
|
200
|
+
};
|
|
201
|
+
readonly "conversations/interrupt": {
|
|
202
|
+
readonly params: never;
|
|
203
|
+
readonly result: never;
|
|
204
|
+
};
|
|
205
|
+
readonly "conversations/kill": {
|
|
206
|
+
readonly params: never;
|
|
207
|
+
readonly result: never;
|
|
208
|
+
};
|
|
209
|
+
readonly "conversations/option/set": {
|
|
210
|
+
readonly params: never;
|
|
211
|
+
readonly result: never;
|
|
212
|
+
};
|
|
213
|
+
readonly "conversations/rename": {
|
|
214
|
+
readonly params: never;
|
|
215
|
+
readonly result: never;
|
|
216
|
+
};
|
|
217
|
+
readonly "conversations/retry": {
|
|
218
|
+
readonly params: never;
|
|
219
|
+
readonly result: never;
|
|
220
|
+
};
|
|
221
|
+
readonly "conversations/send": {
|
|
222
|
+
readonly params: never;
|
|
223
|
+
readonly result: never;
|
|
224
|
+
};
|
|
225
|
+
readonly "conversations/take-out": {
|
|
226
|
+
readonly params: never;
|
|
227
|
+
readonly result: never;
|
|
228
|
+
};
|
|
229
|
+
readonly "rooms/access/list": {
|
|
230
|
+
readonly params: {
|
|
231
|
+
readonly operation_id?: string;
|
|
232
|
+
readonly room_ref: string;
|
|
233
|
+
};
|
|
234
|
+
readonly result: {
|
|
235
|
+
readonly authority: "administrator" | "member" | "owner";
|
|
236
|
+
readonly members: readonly {
|
|
237
|
+
readonly admitted_at: null | string;
|
|
238
|
+
readonly direct: readonly {
|
|
239
|
+
readonly level: null | "keep" | "open" | "search";
|
|
240
|
+
readonly namespace: string;
|
|
241
|
+
readonly operations: readonly ("erase" | "export" | "manageAccess" | "write")[];
|
|
242
|
+
}[];
|
|
243
|
+
readonly entries: readonly {
|
|
244
|
+
readonly level: null | "keep" | "open" | "search";
|
|
245
|
+
readonly namespace: string;
|
|
246
|
+
readonly operations: readonly ("erase" | "export" | "manageAccess" | "write")[];
|
|
247
|
+
readonly sources: readonly {
|
|
248
|
+
readonly kind: "direct" | "inherited";
|
|
249
|
+
readonly level: null | "keep" | "open" | "search";
|
|
250
|
+
readonly namespace: string;
|
|
251
|
+
readonly operations: readonly ("erase" | "export" | "manageAccess" | "write")[];
|
|
252
|
+
}[];
|
|
253
|
+
}[];
|
|
254
|
+
readonly key: null | string;
|
|
255
|
+
readonly schema_roles: readonly string[];
|
|
256
|
+
readonly through_space?: true;
|
|
257
|
+
readonly user: string;
|
|
258
|
+
readonly user_name: string;
|
|
259
|
+
}[];
|
|
260
|
+
readonly namespaces: readonly string[];
|
|
261
|
+
readonly owner: string;
|
|
262
|
+
readonly room_ref: string;
|
|
263
|
+
readonly url: string;
|
|
264
|
+
readonly viewer: string;
|
|
265
|
+
};
|
|
266
|
+
};
|
|
267
|
+
readonly "rooms/members/list": {
|
|
268
|
+
readonly params: {
|
|
269
|
+
readonly history?: boolean;
|
|
270
|
+
readonly operation_id?: string;
|
|
271
|
+
readonly room_ref: string;
|
|
272
|
+
};
|
|
273
|
+
readonly result: {
|
|
274
|
+
readonly history?: readonly ({
|
|
275
|
+
readonly access?: "manage" | "owner" | "read" | "write";
|
|
276
|
+
readonly agent_name?: string;
|
|
277
|
+
readonly approved_by?: string;
|
|
278
|
+
readonly at: string;
|
|
279
|
+
readonly by?: string;
|
|
280
|
+
readonly copies?: "online_only" | "search_only";
|
|
281
|
+
readonly kind: "granted";
|
|
282
|
+
readonly share?: string;
|
|
283
|
+
readonly through_space?: true;
|
|
284
|
+
readonly user: string;
|
|
285
|
+
} | {
|
|
286
|
+
readonly agent_name?: string;
|
|
287
|
+
readonly at: string;
|
|
288
|
+
readonly by?: string;
|
|
289
|
+
readonly kind: "revoked";
|
|
290
|
+
readonly through_space?: true;
|
|
291
|
+
readonly user: string;
|
|
292
|
+
} | {
|
|
293
|
+
readonly agent_name?: string;
|
|
294
|
+
readonly at: string;
|
|
295
|
+
readonly by?: string;
|
|
296
|
+
readonly kind: "role_given" | "role_taken";
|
|
297
|
+
readonly role: string;
|
|
298
|
+
readonly through_space?: true;
|
|
299
|
+
readonly user: string;
|
|
300
|
+
})[];
|
|
301
|
+
readonly members: readonly {
|
|
302
|
+
readonly access?: "manage" | "owner" | "read" | "write";
|
|
303
|
+
readonly copies?: "online_only" | "search_only";
|
|
304
|
+
readonly display_name: string;
|
|
305
|
+
readonly email?: string;
|
|
306
|
+
readonly member_document: null | string;
|
|
307
|
+
readonly owner: boolean;
|
|
308
|
+
readonly schema_roles?: readonly string[];
|
|
309
|
+
readonly schema_roles_given?: readonly {
|
|
310
|
+
readonly agent_name?: string;
|
|
311
|
+
readonly at: string;
|
|
312
|
+
readonly by?: string;
|
|
313
|
+
readonly role: string;
|
|
314
|
+
}[];
|
|
315
|
+
readonly since: null | string;
|
|
316
|
+
readonly through_space?: true;
|
|
317
|
+
readonly user: string;
|
|
318
|
+
}[];
|
|
319
|
+
};
|
|
320
|
+
};
|
|
321
|
+
readonly "rooms/settings/processing/read": {
|
|
322
|
+
readonly params: {
|
|
323
|
+
readonly operation_id?: string;
|
|
324
|
+
readonly path: string;
|
|
325
|
+
readonly room_ref: string;
|
|
326
|
+
};
|
|
327
|
+
readonly result: {
|
|
328
|
+
readonly embedding: {
|
|
329
|
+
readonly condition: null | {
|
|
330
|
+
readonly kind: "demand_failed" | "embed_again_failed";
|
|
331
|
+
readonly path: string;
|
|
332
|
+
};
|
|
333
|
+
readonly embedding_estimate: null | {
|
|
334
|
+
readonly documents: number;
|
|
335
|
+
readonly measured_tokens: number;
|
|
336
|
+
readonly unmeasured_documents: number;
|
|
337
|
+
};
|
|
338
|
+
readonly finished: boolean;
|
|
339
|
+
readonly indexed_chunks: number;
|
|
340
|
+
};
|
|
341
|
+
readonly explicit: readonly {
|
|
342
|
+
readonly path: string;
|
|
343
|
+
readonly policy: "Off" | "On";
|
|
344
|
+
}[];
|
|
345
|
+
readonly path: string;
|
|
346
|
+
readonly policy: {
|
|
347
|
+
readonly from: null | string;
|
|
348
|
+
readonly origin: "default" | "explicit" | "inherited";
|
|
349
|
+
readonly reason: null | "full_house_required" | "room_too_large";
|
|
350
|
+
readonly value: "Off" | "On";
|
|
351
|
+
};
|
|
352
|
+
readonly writable: boolean;
|
|
353
|
+
};
|
|
354
|
+
};
|
|
355
|
+
readonly "service-keys/signatures/check": {
|
|
356
|
+
readonly params: {
|
|
357
|
+
readonly operation_id?: string;
|
|
358
|
+
readonly origin: string;
|
|
359
|
+
readonly room_ref: string;
|
|
360
|
+
readonly signature: string;
|
|
361
|
+
readonly text: string;
|
|
362
|
+
};
|
|
363
|
+
readonly result: {
|
|
364
|
+
readonly matched: boolean;
|
|
365
|
+
};
|
|
366
|
+
};
|
|
367
|
+
readonly "sites/functions/call": {
|
|
368
|
+
readonly params: {
|
|
369
|
+
readonly function: string;
|
|
370
|
+
readonly input?: readonly (readonly unknown[] | boolean | null | number | {
|
|
371
|
+
readonly [key: string]: unknown;
|
|
372
|
+
} | string)[] | boolean | null | number | {
|
|
373
|
+
readonly [key: string]: readonly unknown[] | boolean | null | number | {
|
|
374
|
+
readonly [key: string]: unknown;
|
|
375
|
+
} | string;
|
|
376
|
+
} | string;
|
|
377
|
+
};
|
|
378
|
+
readonly result: {
|
|
379
|
+
readonly answer: readonly unknown[] | boolean | null | number | {
|
|
380
|
+
readonly [key: string]: unknown;
|
|
381
|
+
} | string;
|
|
382
|
+
};
|
|
383
|
+
};
|
|
384
|
+
readonly "sites/submissions/create": {
|
|
385
|
+
readonly params: {
|
|
386
|
+
readonly content: string;
|
|
387
|
+
};
|
|
388
|
+
readonly result: {
|
|
389
|
+
readonly submitted: true;
|
|
390
|
+
};
|
|
391
|
+
};
|
|
392
|
+
readonly "storage/inventory/read": {
|
|
393
|
+
readonly params: {
|
|
394
|
+
readonly operation_id?: string;
|
|
395
|
+
readonly room_ref?: string;
|
|
396
|
+
readonly rooms?: "owned";
|
|
397
|
+
};
|
|
398
|
+
readonly result: {
|
|
399
|
+
readonly blob: {
|
|
400
|
+
readonly bytes: string;
|
|
401
|
+
readonly gigabytes: string;
|
|
402
|
+
};
|
|
403
|
+
readonly freshness: {
|
|
404
|
+
readonly state: "settled";
|
|
405
|
+
};
|
|
406
|
+
readonly indexed_text: {
|
|
407
|
+
readonly bytes: string;
|
|
408
|
+
readonly gigabytes: string;
|
|
409
|
+
};
|
|
410
|
+
readonly room_ref: string;
|
|
411
|
+
readonly total: {
|
|
412
|
+
readonly bytes: string;
|
|
413
|
+
readonly gigabytes: string;
|
|
414
|
+
};
|
|
415
|
+
readonly url: string;
|
|
416
|
+
} | {
|
|
417
|
+
readonly blob: {
|
|
418
|
+
readonly bytes: string;
|
|
419
|
+
readonly gigabytes: string;
|
|
420
|
+
};
|
|
421
|
+
readonly freshness: {
|
|
422
|
+
readonly state: "settled";
|
|
423
|
+
};
|
|
424
|
+
readonly indexed_text: {
|
|
425
|
+
readonly bytes: string;
|
|
426
|
+
readonly gigabytes: string;
|
|
427
|
+
};
|
|
428
|
+
readonly rooms?: readonly {
|
|
429
|
+
readonly blob: {
|
|
430
|
+
readonly bytes: string;
|
|
431
|
+
readonly gigabytes: string;
|
|
432
|
+
};
|
|
433
|
+
readonly freshness: {
|
|
434
|
+
readonly state: "settled";
|
|
435
|
+
};
|
|
436
|
+
readonly indexed_text: {
|
|
437
|
+
readonly bytes: string;
|
|
438
|
+
readonly gigabytes: string;
|
|
439
|
+
};
|
|
440
|
+
readonly room_ref: string;
|
|
441
|
+
readonly total: {
|
|
442
|
+
readonly bytes: string;
|
|
443
|
+
readonly gigabytes: string;
|
|
444
|
+
};
|
|
445
|
+
readonly url: string;
|
|
446
|
+
}[];
|
|
447
|
+
readonly site_images: {
|
|
448
|
+
readonly bound: string;
|
|
449
|
+
readonly bytes: string;
|
|
450
|
+
readonly payloads: string;
|
|
451
|
+
};
|
|
452
|
+
readonly total: {
|
|
453
|
+
readonly bytes: string;
|
|
454
|
+
readonly gigabytes: string;
|
|
455
|
+
};
|
|
456
|
+
};
|
|
457
|
+
};
|
|
458
|
+
readonly "triggers/fired/list": {
|
|
459
|
+
readonly params: {
|
|
460
|
+
readonly operation_id?: string;
|
|
461
|
+
readonly room_ref?: string;
|
|
462
|
+
};
|
|
463
|
+
readonly result: {
|
|
464
|
+
readonly events: readonly {
|
|
465
|
+
readonly actions: readonly ({
|
|
466
|
+
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";
|
|
467
|
+
readonly code: "cap_reached";
|
|
468
|
+
readonly outcome: "refused";
|
|
469
|
+
readonly position: number;
|
|
470
|
+
readonly retry_at: string;
|
|
471
|
+
} | {
|
|
472
|
+
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";
|
|
473
|
+
readonly code: "cap_reached";
|
|
474
|
+
readonly outcome: "refused";
|
|
475
|
+
readonly position: number;
|
|
476
|
+
} | {
|
|
477
|
+
readonly code: "agent_function_request_not_started";
|
|
478
|
+
readonly final?: true;
|
|
479
|
+
readonly outcome: "failed";
|
|
480
|
+
readonly position: number;
|
|
481
|
+
} | {
|
|
482
|
+
readonly code: "agent_function_unreadable";
|
|
483
|
+
readonly document_path: string;
|
|
484
|
+
readonly final: true;
|
|
485
|
+
readonly outcome: "failed";
|
|
486
|
+
readonly position: number;
|
|
487
|
+
} | {
|
|
488
|
+
readonly code: "agent_unavailable";
|
|
489
|
+
readonly outcome: "withdrawn";
|
|
490
|
+
readonly position: number;
|
|
491
|
+
} | {
|
|
492
|
+
readonly code: "function_failed";
|
|
493
|
+
readonly cut?: boolean;
|
|
494
|
+
readonly error: string;
|
|
495
|
+
readonly exit_code?: number;
|
|
496
|
+
readonly final: true;
|
|
497
|
+
readonly outcome: "failed";
|
|
498
|
+
readonly output?: string;
|
|
499
|
+
readonly position: number;
|
|
500
|
+
readonly run: string;
|
|
501
|
+
} | {
|
|
502
|
+
readonly code: "function_failed";
|
|
503
|
+
readonly error: string;
|
|
504
|
+
readonly final: true;
|
|
505
|
+
readonly outcome: "failed";
|
|
506
|
+
readonly position: number;
|
|
507
|
+
readonly release: string;
|
|
508
|
+
} | {
|
|
509
|
+
readonly code: "function_not_started";
|
|
510
|
+
readonly final?: true;
|
|
511
|
+
readonly outcome: "failed";
|
|
512
|
+
readonly position: number;
|
|
513
|
+
readonly tries: number;
|
|
514
|
+
} | {
|
|
515
|
+
readonly code: "internal_error";
|
|
516
|
+
readonly final: true;
|
|
517
|
+
readonly outcome: "failed";
|
|
518
|
+
readonly position: number;
|
|
519
|
+
} | {
|
|
520
|
+
readonly code: "limit_reached";
|
|
521
|
+
readonly limit: "reads";
|
|
522
|
+
readonly outcome: "refused";
|
|
523
|
+
readonly period: "day" | "minute";
|
|
524
|
+
readonly position: number;
|
|
525
|
+
readonly retry_at: string;
|
|
526
|
+
readonly value: string;
|
|
527
|
+
} | {
|
|
528
|
+
readonly code: "limit_reached";
|
|
529
|
+
readonly limit: "writes";
|
|
530
|
+
readonly outcome: "refused";
|
|
531
|
+
readonly period: "day" | "minute";
|
|
532
|
+
readonly position: number;
|
|
533
|
+
readonly retry_at: string;
|
|
534
|
+
} | {
|
|
535
|
+
readonly code: "limit_reached";
|
|
536
|
+
readonly limit: "blob" | "indexed_text";
|
|
537
|
+
readonly outcome: "refused";
|
|
538
|
+
readonly position: number;
|
|
539
|
+
readonly used: string;
|
|
540
|
+
readonly value: string;
|
|
541
|
+
} | {
|
|
542
|
+
readonly code: "limit_reached";
|
|
543
|
+
readonly limit: "custom_domains" | "external_calls" | "publish_data" | "site_function_calls" | "sites";
|
|
544
|
+
readonly outcome: "refused";
|
|
545
|
+
readonly position: number;
|
|
546
|
+
readonly retry_at: string;
|
|
547
|
+
} | {
|
|
548
|
+
readonly code: "limit_reached";
|
|
549
|
+
readonly limit: "custom_domains" | "external_calls" | "publish_data" | "site_function_calls" | "sites";
|
|
550
|
+
readonly outcome: "refused";
|
|
551
|
+
readonly position: number;
|
|
552
|
+
} | {
|
|
553
|
+
readonly code: "post_not_confirmed";
|
|
554
|
+
readonly final: true;
|
|
555
|
+
readonly outcome: "failed";
|
|
556
|
+
readonly position: number;
|
|
557
|
+
} | {
|
|
558
|
+
readonly code: "agent_function_retired" | "environment_offline" | "no_group" | "no_recipient" | "not_found" | "target_agent_unavailable";
|
|
559
|
+
readonly outcome: "no_target";
|
|
560
|
+
readonly position: number;
|
|
561
|
+
} | {
|
|
562
|
+
readonly code: string;
|
|
563
|
+
readonly outcome: "refused";
|
|
564
|
+
readonly position: number;
|
|
565
|
+
} | {
|
|
566
|
+
readonly conversations: number;
|
|
567
|
+
readonly outcome: "marked";
|
|
568
|
+
readonly position: number;
|
|
569
|
+
} | {
|
|
570
|
+
readonly cut?: boolean;
|
|
571
|
+
readonly exit_code?: number;
|
|
572
|
+
readonly outcome: "ran";
|
|
573
|
+
readonly output?: string;
|
|
574
|
+
readonly position: number;
|
|
575
|
+
readonly run: string;
|
|
576
|
+
} | {
|
|
577
|
+
readonly mentioned: number;
|
|
578
|
+
readonly outcome: "posted";
|
|
579
|
+
readonly position: number;
|
|
580
|
+
} | {
|
|
581
|
+
readonly outcome: "continued";
|
|
582
|
+
readonly position: number;
|
|
583
|
+
readonly request: string;
|
|
584
|
+
} | {
|
|
585
|
+
readonly outcome: "notified";
|
|
586
|
+
readonly position: number;
|
|
587
|
+
readonly reached: number;
|
|
588
|
+
} | {
|
|
589
|
+
readonly outcome: "paused";
|
|
590
|
+
readonly position: number;
|
|
591
|
+
} | {
|
|
592
|
+
readonly outcome: "ran";
|
|
593
|
+
readonly position: number;
|
|
594
|
+
readonly release: string;
|
|
595
|
+
} | {
|
|
596
|
+
readonly outcome: "requested";
|
|
597
|
+
readonly position: number;
|
|
598
|
+
readonly request: string;
|
|
599
|
+
} | {
|
|
600
|
+
readonly outcome: "running";
|
|
601
|
+
readonly position: number;
|
|
602
|
+
readonly release: string;
|
|
603
|
+
} | {
|
|
604
|
+
readonly outcome: "running";
|
|
605
|
+
readonly position: number;
|
|
606
|
+
readonly run: string;
|
|
607
|
+
} | {
|
|
608
|
+
readonly outcome: "waiting";
|
|
609
|
+
readonly position: number;
|
|
610
|
+
})[];
|
|
611
|
+
readonly code?: "cap_reached";
|
|
612
|
+
readonly created_at: string;
|
|
613
|
+
readonly missed?: "failed" | "skipped";
|
|
614
|
+
readonly moment?: string;
|
|
615
|
+
readonly path?: string;
|
|
616
|
+
readonly room_ref?: string;
|
|
617
|
+
readonly trigger: string;
|
|
618
|
+
readonly url?: string;
|
|
619
|
+
}[];
|
|
620
|
+
};
|
|
621
|
+
};
|
|
622
|
+
}
|
|
4
623
|
export type HouseParams<Name extends string> = Name extends keyof HouseMethods ? HouseMethods[Name]['params'] : unknown;
|
|
5
624
|
type CallResult = Awaited<ReturnType<MdRuntimeClient['call']>>;
|
|
6
625
|
export type HouseResult<Name extends string> = Exclude<CallResult, {
|
|
@@ -21,7 +640,7 @@ export interface HouseCredentialState {
|
|
|
21
640
|
readonly state: Open<'none' | 'held' | 'rejected'>;
|
|
22
641
|
readonly expiresAt: number | null;
|
|
23
642
|
}
|
|
24
|
-
export type HouseDatabaseFailure = '
|
|
643
|
+
export type HouseDatabaseFailure = 'damaged';
|
|
25
644
|
export type HouseAnalyticsChoice = 'accept' | 'decline';
|
|
26
645
|
export interface HouseAnalytics {
|
|
27
646
|
readonly measures: boolean;
|
|
@@ -38,7 +657,6 @@ export interface HouseStatus {
|
|
|
38
657
|
readonly sync: HouseSyncState | null;
|
|
39
658
|
readonly refusal: {
|
|
40
659
|
readonly code: string;
|
|
41
|
-
readonly retryable: boolean;
|
|
42
660
|
} | null;
|
|
43
661
|
readonly loss: string | null;
|
|
44
662
|
readonly database: Open<HouseDatabaseFailure> | null;
|
|
@@ -50,6 +668,7 @@ export type HouseNavigationMode = 'push' | 'replace';
|
|
|
50
668
|
export interface HouseTab {
|
|
51
669
|
readonly title?: string;
|
|
52
670
|
readonly icon?: string;
|
|
671
|
+
readonly scheme?: 'light' | 'dark' | null;
|
|
53
672
|
}
|
|
54
673
|
interface HouseRelease {
|
|
55
674
|
readonly app_ref: string;
|
|
@@ -80,8 +699,6 @@ export interface HouseExternalRequest {
|
|
|
80
699
|
readonly headers?: Readonly<Record<string, string>>;
|
|
81
700
|
readonly body?: string;
|
|
82
701
|
readonly body_base64?: string;
|
|
83
|
-
readonly account?: string;
|
|
84
|
-
readonly slot?: string;
|
|
85
702
|
readonly room_ref?: string;
|
|
86
703
|
}
|
|
87
704
|
export type HouseExternalAnswer = {
|
|
@@ -102,8 +719,26 @@ export interface HouseAppMessage {
|
|
|
102
719
|
readonly from: string;
|
|
103
720
|
readonly body: unknown;
|
|
104
721
|
}
|
|
105
|
-
export
|
|
722
|
+
export interface HouseBox {
|
|
723
|
+
readonly x: number;
|
|
724
|
+
readonly y: number;
|
|
725
|
+
readonly width: number;
|
|
726
|
+
readonly height: number;
|
|
727
|
+
}
|
|
728
|
+
export interface HouseTitleRow {
|
|
729
|
+
readonly height: number;
|
|
730
|
+
readonly controls: readonly HouseBox[];
|
|
731
|
+
}
|
|
106
732
|
export type HouseNotifications = Open<'on' | 'off' | 'blocked' | 'unavailable'>;
|
|
733
|
+
export interface HouseTelegram {
|
|
734
|
+
readonly state: Open<'available' | 'linked' | 'unavailable'>;
|
|
735
|
+
readonly name: string | null;
|
|
736
|
+
readonly username: string | null;
|
|
737
|
+
}
|
|
738
|
+
export interface HouseCeremonyEnded {
|
|
739
|
+
readonly said: string | null;
|
|
740
|
+
readonly done: boolean;
|
|
741
|
+
}
|
|
107
742
|
export interface HouseCeremonyRefused extends Error {
|
|
108
743
|
readonly name: 'HouseCeremonyRefused';
|
|
109
744
|
readonly code: Open<'house_ceremony_refused'>;
|
|
@@ -120,21 +755,9 @@ export interface HouseBrowserRefused extends Error {
|
|
|
120
755
|
readonly code: string;
|
|
121
756
|
readonly retryable: boolean;
|
|
122
757
|
}
|
|
123
|
-
export interface HouseTrialWithheld {
|
|
124
|
-
readonly code: Open<'house_trial_withheld'>;
|
|
125
|
-
readonly retryable: true;
|
|
126
|
-
}
|
|
127
|
-
export type HouseTask = unknown;
|
|
128
|
-
export type HouseActivation = Open<'committed' | 'abandoned'>;
|
|
129
758
|
export interface HouseCooperation {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
capture(): Promise<HouseTask> | HouseTask;
|
|
133
|
-
restore(task: HouseTask | null): Promise<void> | void;
|
|
134
|
-
ready(): Promise<boolean> | boolean;
|
|
135
|
-
settle(activation: HouseActivation): void;
|
|
136
|
-
}
|
|
137
|
-
export type HouseChatWidth = 'full' | '3/4' | '1/2' | '1/3';
|
|
759
|
+
placed(): Promise<void> | void;
|
|
760
|
+
}
|
|
138
761
|
export interface HouseChatOpened {
|
|
139
762
|
readonly conversation: string | null;
|
|
140
763
|
readonly agent: string | null;
|
|
@@ -142,8 +765,6 @@ export interface HouseChatOpened {
|
|
|
142
765
|
export interface HouseChatOptions {
|
|
143
766
|
readonly conversation?: string | null;
|
|
144
767
|
readonly agent?: string | null;
|
|
145
|
-
readonly showChats?: boolean;
|
|
146
|
-
readonly width?: HouseChatWidth;
|
|
147
768
|
readonly onOpen?: (opened: HouseChatOpened) => void;
|
|
148
769
|
readonly onLink?: (href: string) => void;
|
|
149
770
|
}
|
|
@@ -151,20 +772,41 @@ export interface HouseMountedChat {
|
|
|
151
772
|
update(options: HouseChatOptions): void;
|
|
152
773
|
unmount(): void;
|
|
153
774
|
}
|
|
775
|
+
export interface HouseChatButtonOptions {
|
|
776
|
+
readonly onOpen?: (opened: HouseChatOpened) => void;
|
|
777
|
+
readonly onLink?: (href: string) => void;
|
|
778
|
+
}
|
|
779
|
+
export interface HouseChatButtonMount extends HouseChatButtonOptions {
|
|
780
|
+
readonly agent?: string | null;
|
|
781
|
+
}
|
|
782
|
+
export interface HouseChatTarget {
|
|
783
|
+
readonly conversation?: string | null;
|
|
784
|
+
readonly agent?: string | null;
|
|
785
|
+
readonly docked?: boolean;
|
|
786
|
+
}
|
|
787
|
+
export interface HouseChatButton {
|
|
788
|
+
open(target?: HouseChatTarget): void;
|
|
789
|
+
hide(): void;
|
|
790
|
+
update(options: HouseChatButtonOptions): void;
|
|
791
|
+
unmount(): void;
|
|
792
|
+
}
|
|
154
793
|
export interface HouseChat {
|
|
155
794
|
mount(element: object, options?: HouseChatOptions): Promise<HouseMountedChat>;
|
|
795
|
+
mountButton(options?: HouseChatButtonMount): Promise<HouseChatButton>;
|
|
156
796
|
}
|
|
157
797
|
export interface HouseBridge {
|
|
158
798
|
readonly runtime: Promise<HouseRuntime>;
|
|
159
799
|
readonly chat: HouseChat;
|
|
160
800
|
address(): string | null;
|
|
161
801
|
onAddress(listener: (address: string) => void): () => void;
|
|
802
|
+
cameFrom(): string | null;
|
|
162
803
|
push(address: string): Promise<string>;
|
|
163
804
|
replace(address: string): Promise<string>;
|
|
164
|
-
ceremony(path: string): Promise<
|
|
165
|
-
|
|
805
|
+
ceremony(path: string): Promise<HouseCeremonyEnded>;
|
|
806
|
+
onTitleBar(listener: (area: HouseBox | null) => void): () => void;
|
|
807
|
+
setTitleBar(row: HouseTitleRow | null): void;
|
|
166
808
|
notifications(on?: boolean): Promise<HouseNotifications>;
|
|
167
|
-
|
|
809
|
+
telegram(link?: true): Promise<HouseTelegram>;
|
|
168
810
|
setTab(tab: HouseTab): void;
|
|
169
811
|
sourceTop(app: string, release?: string): Promise<HouseSourceTop | HouseRefusal | null>;
|
|
170
812
|
sourceDownload(app: string, release?: string): Promise<HouseSourceDownload | HouseRefusal | null>;
|
|
@@ -181,3 +823,4 @@ export interface HouseHeld {
|
|
|
181
823
|
readonly houseBridge: HouseBridge;
|
|
182
824
|
}
|
|
183
825
|
export declare const houseBridge: () => HouseBridge;
|
|
826
|
+
export {};
|