@agentshouse/app-bridge 0.1.0-c7cd0546b3c09 → 0.1.0-c7cde22995b9e
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 +599 -24
- package/dist/mdmodel/body.d.ts +84 -0
- package/dist/mdmodel/definition.d.ts +20 -10
- package/dist/mdmodel/document.d.ts +14 -7
- 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/index.d.ts +27 -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/types.d.ts +21 -7
- package/dist/mdmodel/validate.d.ts +10 -6
- package/dist/mdruntime/actions.d.ts +24 -0
- package/dist/mdruntime/adapter.d.ts +109 -107
- package/dist/mdruntime/attached-model.d.ts +7 -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 +25 -15
- package/dist/mdruntime/collection.d.ts +23 -7
- package/dist/mdruntime/compile.d.ts +8 -6
- package/dist/mdruntime/conversation-live.d.ts +137 -0
- package/dist/mdruntime/conversation-row.d.ts +32 -0
- package/dist/mdruntime/conversation.d.ts +59 -50
- package/dist/mdruntime/declaration.d.ts +9 -0
- package/dist/mdruntime/durability.d.ts +18 -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/identity.d.ts +0 -1
- package/dist/mdruntime/listing.d.ts +47 -0
- package/dist/mdruntime/live.d.ts +22 -0
- package/dist/mdruntime/log.d.ts +5 -0
- package/dist/mdruntime/media.d.ts +2 -2
- package/dist/mdruntime/messages.d.ts +24 -3
- package/dist/mdruntime/model.d.ts +2 -11
- package/dist/mdruntime/observation.d.ts +2 -2
- package/dist/mdruntime/opened.d.ts +1 -1
- package/dist/mdruntime/outcome.d.ts +7 -4
- 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 +14 -210
- package/dist/mdruntime/reach.d.ts +15 -13
- package/dist/mdruntime/readiness.d.ts +3 -18
- package/dist/mdruntime/reads.d.ts +38 -0
- package/dist/mdruntime/recovery.d.ts +3 -0
- package/dist/mdruntime/refresh.d.ts +26 -0
- package/dist/mdruntime/replica.d.ts +12 -18
- package/dist/mdruntime/retried.d.ts +29 -0
- package/dist/mdruntime/room-draft.d.ts +24 -10
- package/dist/mdruntime/room-drafts.d.ts +23 -0
- package/dist/mdruntime/runtime.d.ts +35 -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 +20 -0
- package/dist/mdruntime/socket/session.d.ts +37 -0
- package/dist/mdruntime/socket.d.ts +67 -0
- package/dist/mdruntime/source.d.ts +53 -0
- package/dist/mdruntime/status.d.ts +0 -6
- 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 +211 -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 +120 -175
- package/dist/mdruntime/stored.d.ts +59 -57
- package/dist/mdruntime/surface.d.ts +87 -0
- package/dist/mdruntime/tables.d.ts +116 -66
- package/dist/mdruntime/tallies.d.ts +17 -0
- package/dist/mdruntime/transfer.d.ts +0 -5
- package/dist/mdruntime/wire.d.ts +55 -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 +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 +1 -4
- package/dist/test-host.js +2 -28
- package/docs/families.md +53 -67
- package/package.json +2 -2
- package/dist/calls.d.ts +0 -707
- 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 -154
- package/dist/mdruntime/fulltext.d.ts +0 -26
- package/dist/mdruntime/shared.d.ts +0 -15
package/README.md
CHANGED
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
The types of the agents.house App bridge, an accessor and an in-page test host.
|
|
4
4
|
House builds the bridge object in every App it serves and hands it to the page
|
|
5
5
|
before the App's own scripts run; `houseBridge()` returns that object, so an App
|
|
6
|
-
carries no bridge code of its own. It carries
|
|
7
|
-
ceremonies, installation, notifications,
|
|
8
|
-
code, external calls, App messages, App and Site screenshot reads and the
|
|
9
|
-
[docs/families.md](docs/families.md) describes each and the test host.
|
|
6
|
+
carries no bridge code of its own. It carries these families: navigation,
|
|
7
|
+
ceremonies, installation, notifications, Telegram, status, App
|
|
8
|
+
release code, external calls, App messages, App and Site screenshot reads and the
|
|
9
|
+
Chat. [docs/families.md](docs/families.md) describes each and the test host.
|
|
10
10
|
|
|
11
11
|
The bridge carries no credential handling and no Runtime family. House builds
|
|
12
12
|
the MD Runtime client into the page beside the bridge and serves it the Chat, so
|
|
13
13
|
the App imports, constructs and bundles neither: `bridge.runtime` resolves to the client.
|
|
14
14
|
|
|
15
|
-
House's guide to building an App is its Guide's `apps/` pages, which `
|
|
15
|
+
House's guide to building an App is its Guide's `apps/` pages, which `guide/open` opens.
|
|
16
16
|
|
|
17
17
|
## Use
|
|
18
18
|
|
|
@@ -42,8 +42,8 @@ async function manageSecurity(securityPath) {
|
|
|
42
42
|
|
|
43
43
|
`bridge.runtime` resolves to the `MdRuntimeClient` of `@agentshouse/mdruntime/client`,
|
|
44
44
|
whose README describes its members. Its `call(method, params)` is a remote procedure call
|
|
45
|
-
to a House act, such as `call('
|
|
46
|
-
with
|
|
45
|
+
to a House act by its name, such as `call('rooms/members/list', { room_ref })`: `HouseMethods`
|
|
46
|
+
names each with House's own input, `HouseParams<Name>`, and answer, `HouseResult<Name>`.
|
|
47
47
|
|
|
48
48
|
## Test without a House
|
|
49
49
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,593 @@
|
|
|
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 "records/list": {
|
|
230
|
+
readonly params: {
|
|
231
|
+
readonly operation_id?: string;
|
|
232
|
+
readonly order?: "asc" | "desc";
|
|
233
|
+
readonly room_ref: string;
|
|
234
|
+
};
|
|
235
|
+
readonly result: {
|
|
236
|
+
readonly records: readonly {
|
|
237
|
+
readonly body: null | string;
|
|
238
|
+
readonly claimed: unknown;
|
|
239
|
+
readonly created_at: string;
|
|
240
|
+
readonly record: string;
|
|
241
|
+
readonly ref: string;
|
|
242
|
+
}[];
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
readonly "rooms/access/list": {
|
|
246
|
+
readonly params: {
|
|
247
|
+
readonly operation_id?: string;
|
|
248
|
+
readonly room_ref: string;
|
|
249
|
+
};
|
|
250
|
+
readonly result: {
|
|
251
|
+
readonly authority: "administrator" | "member" | "owner";
|
|
252
|
+
readonly members: readonly {
|
|
253
|
+
readonly admitted_at: null | string;
|
|
254
|
+
readonly direct: readonly {
|
|
255
|
+
readonly level: null | "keep" | "open" | "search";
|
|
256
|
+
readonly namespace: string;
|
|
257
|
+
readonly operations: readonly ("erase" | "export" | "manageAccess" | "write")[];
|
|
258
|
+
}[];
|
|
259
|
+
readonly entries: readonly {
|
|
260
|
+
readonly level: null | "keep" | "open" | "search";
|
|
261
|
+
readonly namespace: string;
|
|
262
|
+
readonly operations: readonly ("erase" | "export" | "manageAccess" | "write")[];
|
|
263
|
+
readonly sources: readonly {
|
|
264
|
+
readonly kind: "direct" | "inherited";
|
|
265
|
+
readonly level: null | "keep" | "open" | "search";
|
|
266
|
+
readonly namespace: string;
|
|
267
|
+
readonly operations: readonly ("erase" | "export" | "manageAccess" | "write")[];
|
|
268
|
+
}[];
|
|
269
|
+
}[];
|
|
270
|
+
readonly key: null | string;
|
|
271
|
+
readonly schema_roles: readonly string[];
|
|
272
|
+
readonly through_space?: true;
|
|
273
|
+
readonly user: string;
|
|
274
|
+
readonly user_name: string;
|
|
275
|
+
}[];
|
|
276
|
+
readonly namespaces: readonly string[];
|
|
277
|
+
readonly owner: string;
|
|
278
|
+
readonly room_ref: string;
|
|
279
|
+
readonly url: string;
|
|
280
|
+
readonly viewer: string;
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
readonly "rooms/members/list": {
|
|
284
|
+
readonly params: {
|
|
285
|
+
readonly history?: boolean;
|
|
286
|
+
readonly operation_id?: string;
|
|
287
|
+
readonly room_ref: string;
|
|
288
|
+
};
|
|
289
|
+
readonly result: {
|
|
290
|
+
readonly history?: readonly {
|
|
291
|
+
readonly at: string;
|
|
292
|
+
readonly kind: "granted" | "revoked";
|
|
293
|
+
readonly user: string;
|
|
294
|
+
}[];
|
|
295
|
+
readonly members: readonly {
|
|
296
|
+
readonly access?: "manage" | "owner" | "read" | "write";
|
|
297
|
+
readonly copies?: "online_only" | "search_only";
|
|
298
|
+
readonly display_name: string;
|
|
299
|
+
readonly email?: string;
|
|
300
|
+
readonly member_document: null | string;
|
|
301
|
+
readonly owner: boolean;
|
|
302
|
+
readonly schema_roles?: readonly string[];
|
|
303
|
+
readonly since: null | string;
|
|
304
|
+
readonly through_space?: true;
|
|
305
|
+
readonly user: string;
|
|
306
|
+
}[];
|
|
307
|
+
};
|
|
308
|
+
};
|
|
309
|
+
readonly "rooms/settings/processing/read": {
|
|
310
|
+
readonly params: {
|
|
311
|
+
readonly operation_id?: string;
|
|
312
|
+
readonly path: string;
|
|
313
|
+
readonly room_ref: string;
|
|
314
|
+
};
|
|
315
|
+
readonly result: {
|
|
316
|
+
readonly embedding: {
|
|
317
|
+
readonly condition: null | {
|
|
318
|
+
readonly kind: "demand_failed" | "embed_again_failed";
|
|
319
|
+
readonly path: string;
|
|
320
|
+
};
|
|
321
|
+
readonly embedding_estimate: null | {
|
|
322
|
+
readonly documents: number;
|
|
323
|
+
readonly measured_tokens: number;
|
|
324
|
+
readonly unmeasured_documents: number;
|
|
325
|
+
};
|
|
326
|
+
readonly finished: boolean;
|
|
327
|
+
readonly indexed_chunks: number;
|
|
328
|
+
};
|
|
329
|
+
readonly explicit: readonly {
|
|
330
|
+
readonly path: string;
|
|
331
|
+
readonly policy: "Off" | "On";
|
|
332
|
+
}[];
|
|
333
|
+
readonly path: string;
|
|
334
|
+
readonly policy: {
|
|
335
|
+
readonly from: null | string;
|
|
336
|
+
readonly origin: "default" | "explicit" | "inherited";
|
|
337
|
+
readonly reason: null | "room_too_large" | "unfunded";
|
|
338
|
+
readonly value: "Off" | "On";
|
|
339
|
+
};
|
|
340
|
+
readonly writable: boolean;
|
|
341
|
+
};
|
|
342
|
+
};
|
|
343
|
+
readonly "sites/submissions/create": {
|
|
344
|
+
readonly params: {
|
|
345
|
+
readonly content: string;
|
|
346
|
+
};
|
|
347
|
+
readonly result: {
|
|
348
|
+
readonly submitted: true;
|
|
349
|
+
};
|
|
350
|
+
};
|
|
351
|
+
readonly "storage/inventory/read": {
|
|
352
|
+
readonly params: {
|
|
353
|
+
readonly operation_id?: string;
|
|
354
|
+
readonly room_ref?: string;
|
|
355
|
+
readonly rooms?: "owned";
|
|
356
|
+
};
|
|
357
|
+
readonly result: {
|
|
358
|
+
readonly blob: {
|
|
359
|
+
readonly bytes: string;
|
|
360
|
+
readonly gigabytes: string;
|
|
361
|
+
};
|
|
362
|
+
readonly freshness: {
|
|
363
|
+
readonly state: "settled";
|
|
364
|
+
};
|
|
365
|
+
readonly indexed_text: {
|
|
366
|
+
readonly approximate_pages: null | string;
|
|
367
|
+
readonly bytes: string;
|
|
368
|
+
readonly gigabytes: string;
|
|
369
|
+
};
|
|
370
|
+
readonly measurement: {
|
|
371
|
+
readonly page_reference: null | {
|
|
372
|
+
readonly bytes_per_page: string;
|
|
373
|
+
readonly encoding: string;
|
|
374
|
+
readonly font: string;
|
|
375
|
+
readonly font_size_pt: string;
|
|
376
|
+
readonly layout: string;
|
|
377
|
+
};
|
|
378
|
+
};
|
|
379
|
+
readonly room_ref: string;
|
|
380
|
+
readonly total: {
|
|
381
|
+
readonly bytes: string;
|
|
382
|
+
readonly gigabytes: string;
|
|
383
|
+
};
|
|
384
|
+
readonly url: string;
|
|
385
|
+
} | {
|
|
386
|
+
readonly blob: {
|
|
387
|
+
readonly bytes: string;
|
|
388
|
+
readonly gigabytes: string;
|
|
389
|
+
};
|
|
390
|
+
readonly freshness: {
|
|
391
|
+
readonly state: "settled";
|
|
392
|
+
};
|
|
393
|
+
readonly indexed_text: {
|
|
394
|
+
readonly approximate_pages: null | string;
|
|
395
|
+
readonly bytes: string;
|
|
396
|
+
readonly gigabytes: string;
|
|
397
|
+
};
|
|
398
|
+
readonly measurement: {
|
|
399
|
+
readonly page_reference: null | {
|
|
400
|
+
readonly bytes_per_page: string;
|
|
401
|
+
readonly encoding: string;
|
|
402
|
+
readonly font: string;
|
|
403
|
+
readonly font_size_pt: string;
|
|
404
|
+
readonly layout: string;
|
|
405
|
+
};
|
|
406
|
+
};
|
|
407
|
+
readonly rooms?: readonly {
|
|
408
|
+
readonly blob: {
|
|
409
|
+
readonly bytes: string;
|
|
410
|
+
readonly gigabytes: string;
|
|
411
|
+
};
|
|
412
|
+
readonly freshness: {
|
|
413
|
+
readonly state: "settled";
|
|
414
|
+
};
|
|
415
|
+
readonly indexed_text: {
|
|
416
|
+
readonly approximate_pages: null | string;
|
|
417
|
+
readonly bytes: string;
|
|
418
|
+
readonly gigabytes: string;
|
|
419
|
+
};
|
|
420
|
+
readonly measurement: {
|
|
421
|
+
readonly page_reference: null | {
|
|
422
|
+
readonly bytes_per_page: string;
|
|
423
|
+
readonly encoding: string;
|
|
424
|
+
readonly font: string;
|
|
425
|
+
readonly font_size_pt: string;
|
|
426
|
+
readonly layout: string;
|
|
427
|
+
};
|
|
428
|
+
};
|
|
429
|
+
readonly room_ref: string;
|
|
430
|
+
readonly total: {
|
|
431
|
+
readonly bytes: string;
|
|
432
|
+
readonly gigabytes: string;
|
|
433
|
+
};
|
|
434
|
+
readonly url: string;
|
|
435
|
+
}[];
|
|
436
|
+
readonly site_images: {
|
|
437
|
+
readonly bound: string;
|
|
438
|
+
readonly bytes: string;
|
|
439
|
+
readonly payloads: string;
|
|
440
|
+
};
|
|
441
|
+
readonly total: {
|
|
442
|
+
readonly bytes: string;
|
|
443
|
+
readonly gigabytes: string;
|
|
444
|
+
};
|
|
445
|
+
};
|
|
446
|
+
};
|
|
447
|
+
readonly "triggers/fired/list": {
|
|
448
|
+
readonly params: {
|
|
449
|
+
readonly operation_id?: string;
|
|
450
|
+
readonly room_ref?: string;
|
|
451
|
+
};
|
|
452
|
+
readonly result: {
|
|
453
|
+
readonly events: readonly {
|
|
454
|
+
readonly actions: readonly ({
|
|
455
|
+
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";
|
|
456
|
+
readonly code: "cap_reached";
|
|
457
|
+
readonly outcome: "refused";
|
|
458
|
+
readonly position: number;
|
|
459
|
+
readonly retry_at: string;
|
|
460
|
+
} | {
|
|
461
|
+
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";
|
|
462
|
+
readonly code: "cap_reached";
|
|
463
|
+
readonly outcome: "refused";
|
|
464
|
+
readonly position: number;
|
|
465
|
+
} | {
|
|
466
|
+
readonly code: "agent_unavailable";
|
|
467
|
+
readonly outcome: "withdrawn";
|
|
468
|
+
readonly position: number;
|
|
469
|
+
} | {
|
|
470
|
+
readonly code: "function_failed";
|
|
471
|
+
readonly cut?: boolean;
|
|
472
|
+
readonly error: string;
|
|
473
|
+
readonly exit_code?: number;
|
|
474
|
+
readonly final: true;
|
|
475
|
+
readonly outcome: "failed";
|
|
476
|
+
readonly output?: string;
|
|
477
|
+
readonly position: number;
|
|
478
|
+
readonly run: string;
|
|
479
|
+
} | {
|
|
480
|
+
readonly code: "function_failed";
|
|
481
|
+
readonly error: string;
|
|
482
|
+
readonly final: true;
|
|
483
|
+
readonly outcome: "failed";
|
|
484
|
+
readonly position: number;
|
|
485
|
+
readonly release: string;
|
|
486
|
+
} | {
|
|
487
|
+
readonly code: "function_not_started";
|
|
488
|
+
readonly final?: true;
|
|
489
|
+
readonly outcome: "failed";
|
|
490
|
+
readonly position: number;
|
|
491
|
+
readonly tries: number;
|
|
492
|
+
} | {
|
|
493
|
+
readonly code: "limit_reached";
|
|
494
|
+
readonly limit: "reads";
|
|
495
|
+
readonly outcome: "refused";
|
|
496
|
+
readonly period: "day" | "minute";
|
|
497
|
+
readonly position: number;
|
|
498
|
+
readonly retry_at: string;
|
|
499
|
+
readonly value: string;
|
|
500
|
+
} | {
|
|
501
|
+
readonly code: "limit_reached";
|
|
502
|
+
readonly limit: "writes";
|
|
503
|
+
readonly outcome: "refused";
|
|
504
|
+
readonly period: "day" | "minute";
|
|
505
|
+
readonly position: number;
|
|
506
|
+
readonly retry_at: string;
|
|
507
|
+
} | {
|
|
508
|
+
readonly code: "limit_reached";
|
|
509
|
+
readonly limit: "blob" | "indexed_text";
|
|
510
|
+
readonly outcome: "refused";
|
|
511
|
+
readonly position: number;
|
|
512
|
+
readonly used: string;
|
|
513
|
+
readonly value: string;
|
|
514
|
+
} | {
|
|
515
|
+
readonly code: "limit_reached";
|
|
516
|
+
readonly limit: "custom_domains" | "external_calls" | "publish_data" | "sites";
|
|
517
|
+
readonly outcome: "refused";
|
|
518
|
+
readonly position: number;
|
|
519
|
+
readonly retry_at: string;
|
|
520
|
+
} | {
|
|
521
|
+
readonly code: "limit_reached";
|
|
522
|
+
readonly limit: "custom_domains" | "external_calls" | "publish_data" | "sites";
|
|
523
|
+
readonly outcome: "refused";
|
|
524
|
+
readonly position: number;
|
|
525
|
+
} | {
|
|
526
|
+
readonly code: "agent_function_request_not_started" | "internal_error";
|
|
527
|
+
readonly outcome: "failed";
|
|
528
|
+
readonly position: number;
|
|
529
|
+
} | {
|
|
530
|
+
readonly code: "agent_function_retired" | "environment_offline" | "no_recipient" | "not_found" | "target_agent_unavailable";
|
|
531
|
+
readonly outcome: "no_target";
|
|
532
|
+
readonly position: number;
|
|
533
|
+
} | {
|
|
534
|
+
readonly code: string;
|
|
535
|
+
readonly outcome: "refused";
|
|
536
|
+
readonly position: number;
|
|
537
|
+
} | {
|
|
538
|
+
readonly conversations: number;
|
|
539
|
+
readonly outcome: "marked";
|
|
540
|
+
readonly position: number;
|
|
541
|
+
} | {
|
|
542
|
+
readonly cut?: boolean;
|
|
543
|
+
readonly exit_code?: number;
|
|
544
|
+
readonly outcome: "ran";
|
|
545
|
+
readonly output?: string;
|
|
546
|
+
readonly position: number;
|
|
547
|
+
readonly run: string;
|
|
548
|
+
} | {
|
|
549
|
+
readonly outcome: "continued";
|
|
550
|
+
readonly position: number;
|
|
551
|
+
readonly request: string;
|
|
552
|
+
} | {
|
|
553
|
+
readonly outcome: "notified";
|
|
554
|
+
readonly position: number;
|
|
555
|
+
readonly reached: number;
|
|
556
|
+
} | {
|
|
557
|
+
readonly outcome: "paused";
|
|
558
|
+
readonly position: number;
|
|
559
|
+
} | {
|
|
560
|
+
readonly outcome: "ran";
|
|
561
|
+
readonly position: number;
|
|
562
|
+
readonly release: string;
|
|
563
|
+
} | {
|
|
564
|
+
readonly outcome: "requested";
|
|
565
|
+
readonly position: number;
|
|
566
|
+
readonly request: string;
|
|
567
|
+
} | {
|
|
568
|
+
readonly outcome: "running";
|
|
569
|
+
readonly position: number;
|
|
570
|
+
readonly release: string;
|
|
571
|
+
} | {
|
|
572
|
+
readonly outcome: "running";
|
|
573
|
+
readonly position: number;
|
|
574
|
+
readonly run: string;
|
|
575
|
+
} | {
|
|
576
|
+
readonly outcome: "waiting";
|
|
577
|
+
readonly position: number;
|
|
578
|
+
})[];
|
|
579
|
+
readonly code?: "cap_reached";
|
|
580
|
+
readonly created_at: string;
|
|
581
|
+
readonly missed?: "failed" | "skipped";
|
|
582
|
+
readonly moment?: string;
|
|
583
|
+
readonly path?: string;
|
|
584
|
+
readonly room_ref?: string;
|
|
585
|
+
readonly trigger: string;
|
|
586
|
+
readonly url?: string;
|
|
587
|
+
}[];
|
|
588
|
+
};
|
|
589
|
+
};
|
|
590
|
+
}
|
|
4
591
|
export type HouseParams<Name extends string> = Name extends keyof HouseMethods ? HouseMethods[Name]['params'] : unknown;
|
|
5
592
|
type CallResult = Awaited<ReturnType<MdRuntimeClient['call']>>;
|
|
6
593
|
export type HouseResult<Name extends string> = Exclude<CallResult, {
|
|
@@ -21,7 +608,7 @@ export interface HouseCredentialState {
|
|
|
21
608
|
readonly state: Open<'none' | 'held' | 'rejected'>;
|
|
22
609
|
readonly expiresAt: number | null;
|
|
23
610
|
}
|
|
24
|
-
export type HouseDatabaseFailure = '
|
|
611
|
+
export type HouseDatabaseFailure = 'damaged';
|
|
25
612
|
export type HouseAnalyticsChoice = 'accept' | 'decline';
|
|
26
613
|
export interface HouseAnalytics {
|
|
27
614
|
readonly measures: boolean;
|
|
@@ -38,7 +625,6 @@ export interface HouseStatus {
|
|
|
38
625
|
readonly sync: HouseSyncState | null;
|
|
39
626
|
readonly refusal: {
|
|
40
627
|
readonly code: string;
|
|
41
|
-
readonly retryable: boolean;
|
|
42
628
|
} | null;
|
|
43
629
|
readonly loss: string | null;
|
|
44
630
|
readonly database: Open<HouseDatabaseFailure> | null;
|
|
@@ -80,8 +666,6 @@ export interface HouseExternalRequest {
|
|
|
80
666
|
readonly headers?: Readonly<Record<string, string>>;
|
|
81
667
|
readonly body?: string;
|
|
82
668
|
readonly body_base64?: string;
|
|
83
|
-
readonly account?: string;
|
|
84
|
-
readonly slot?: string;
|
|
85
669
|
readonly room_ref?: string;
|
|
86
670
|
}
|
|
87
671
|
export type HouseExternalAnswer = {
|
|
@@ -104,6 +688,11 @@ export interface HouseAppMessage {
|
|
|
104
688
|
}
|
|
105
689
|
export type HouseInstallation = Open<'accepted' | 'dismissed' | 'manual'>;
|
|
106
690
|
export type HouseNotifications = Open<'on' | 'off' | 'blocked' | 'unavailable'>;
|
|
691
|
+
export interface HouseTelegram {
|
|
692
|
+
readonly state: Open<'available' | 'linked' | 'unavailable'>;
|
|
693
|
+
readonly name: string | null;
|
|
694
|
+
readonly username: string | null;
|
|
695
|
+
}
|
|
107
696
|
export interface HouseCeremonyRefused extends Error {
|
|
108
697
|
readonly name: 'HouseCeremonyRefused';
|
|
109
698
|
readonly code: Open<'house_ceremony_refused'>;
|
|
@@ -120,22 +709,9 @@ export interface HouseBrowserRefused extends Error {
|
|
|
120
709
|
readonly code: string;
|
|
121
710
|
readonly retryable: boolean;
|
|
122
711
|
}
|
|
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
712
|
export interface HouseCooperation {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
capture(): Promise<HouseTask> | HouseTask;
|
|
133
|
-
restore(task: HouseTask | null): Promise<void> | void;
|
|
134
|
-
ready(): Promise<boolean> | boolean;
|
|
135
|
-
placed?(): Promise<void> | void;
|
|
136
|
-
settle(activation: HouseActivation): void;
|
|
137
|
-
}
|
|
138
|
-
export type HouseChatWidth = 'full' | '3/4' | '1/2' | '1/3';
|
|
713
|
+
placed(): Promise<void> | void;
|
|
714
|
+
}
|
|
139
715
|
export interface HouseChatOpened {
|
|
140
716
|
readonly conversation: string | null;
|
|
141
717
|
readonly agent: string | null;
|
|
@@ -143,8 +719,6 @@ export interface HouseChatOpened {
|
|
|
143
719
|
export interface HouseChatOptions {
|
|
144
720
|
readonly conversation?: string | null;
|
|
145
721
|
readonly agent?: string | null;
|
|
146
|
-
readonly showChats?: boolean;
|
|
147
|
-
readonly width?: HouseChatWidth;
|
|
148
722
|
readonly onOpen?: (opened: HouseChatOpened) => void;
|
|
149
723
|
readonly onLink?: (href: string) => void;
|
|
150
724
|
}
|
|
@@ -165,7 +739,7 @@ export interface HouseBridge {
|
|
|
165
739
|
ceremony(path: string): Promise<never>;
|
|
166
740
|
install(): Promise<HouseInstallation>;
|
|
167
741
|
notifications(on?: boolean): Promise<HouseNotifications>;
|
|
168
|
-
|
|
742
|
+
telegram(link?: true): Promise<HouseTelegram>;
|
|
169
743
|
setTab(tab: HouseTab): void;
|
|
170
744
|
sourceTop(app: string, release?: string): Promise<HouseSourceTop | HouseRefusal | null>;
|
|
171
745
|
sourceDownload(app: string, release?: string): Promise<HouseSourceDownload | HouseRefusal | null>;
|
|
@@ -182,3 +756,4 @@ export interface HouseHeld {
|
|
|
182
756
|
readonly houseBridge: HouseBridge;
|
|
183
757
|
}
|
|
184
758
|
export declare const houseBridge: () => HouseBridge;
|
|
759
|
+
export {};
|