@agentshouse/mdruntime-adapter 0.1.0-cb0e03e5f0ff6 → 0.1.0-cb325de4d9394
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 +1 -1
- package/dist/actions.d.ts +2 -1
- package/dist/actions.d.ts.map +1 -1
- package/dist/actions.js +20 -7
- package/dist/adapter.d.ts +0 -1
- package/dist/adapter.d.ts.map +1 -1
- package/dist/adapter.js +57 -42
- package/dist/app-reference.d.ts +0 -1
- package/dist/authored-path.d.ts +10 -0
- package/dist/authored-path.d.ts.map +1 -0
- package/dist/authored-path.js +35 -0
- package/dist/chunks.d.ts +0 -1
- package/dist/chunks.d.ts.map +1 -1
- package/dist/chunks.js +14 -7
- package/dist/crockford.d.ts +0 -1
- package/dist/digest.d.ts +0 -1
- package/dist/discovery.d.ts +1 -3
- package/dist/discovery.d.ts.map +1 -1
- package/dist/discovery.js +5 -5
- package/dist/history.d.ts +1 -7
- package/dist/history.d.ts.map +1 -1
- package/dist/history.js +21 -28
- package/dist/house-model.d.ts +172 -18
- package/dist/house-model.d.ts.map +1 -1
- package/dist/house-model.js +194 -107
- package/dist/index.d.ts +4 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/map.d.ts +0 -1
- package/dist/model.d.ts +0 -1
- package/dist/model.d.ts.map +1 -1
- package/dist/model.js +1 -1
- package/dist/read.d.ts +0 -1
- package/dist/refusal.d.ts +3 -2
- package/dist/refusal.d.ts.map +1 -1
- package/dist/refusal.js +17 -7
- package/dist/room-types.d.ts +0 -3
- package/dist/room-types.d.ts.map +1 -1
- package/dist/room-types.js +64 -51
- package/dist/search.d.ts +0 -1
- package/dist/search.d.ts.map +1 -1
- package/dist/search.js +4 -4
- 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/site.d.ts +0 -1
- package/dist/site.d.ts.map +1 -1
- package/dist/site.js +17 -11
- package/dist/space-schema.d.ts +0 -1
- package/dist/stream.d.ts +0 -1
- package/dist/stream.d.ts.map +1 -1
- package/dist/stream.js +42 -20
- package/dist/transport.d.ts +16 -14
- package/dist/transport.d.ts.map +1 -1
- package/dist/transport.js +1 -1
- package/dist/uncertain.d.ts +5 -0
- package/dist/uncertain.d.ts.map +1 -0
- package/dist/uncertain.js +11 -0
- package/dist/upload.d.ts +3 -2
- package/dist/upload.d.ts.map +1 -1
- package/dist/upload.js +8 -6
- package/dist/version.d.ts +0 -1
- package/dist/write.d.ts +0 -2
- package/dist/write.d.ts.map +1 -1
- package/dist/write.js +19 -19
- package/package.json +2 -2
package/dist/house-model.d.ts
CHANGED
|
@@ -11,27 +11,22 @@ export declare const HOUSE_MODEL_DECLARATION: {
|
|
|
11
11
|
readonly type: 'string';
|
|
12
12
|
readonly pattern: '^a_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$';
|
|
13
13
|
};
|
|
14
|
-
readonly
|
|
15
|
-
readonly description: 'A
|
|
14
|
+
readonly space: {
|
|
15
|
+
readonly description: 'A Space, by its Space reference, under the key `space`.';
|
|
16
16
|
readonly type: 'string';
|
|
17
|
-
readonly pattern: '^
|
|
17
|
+
readonly pattern: '^sp_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$';
|
|
18
18
|
};
|
|
19
19
|
readonly id: {
|
|
20
20
|
readonly description: 'Any other entity, by its identifier, under the key of its kind. An entity a type says more about is an object holding it under that key beside its facts.';
|
|
21
21
|
readonly type: 'string';
|
|
22
22
|
readonly format: 'uuid';
|
|
23
23
|
};
|
|
24
|
-
readonly namespace: {
|
|
25
|
-
readonly description: 'The Namespace a grant entry covers, an App or a Room by its reference with the area of it.';
|
|
26
|
-
readonly type: 'string';
|
|
27
|
-
readonly maxLength: 512;
|
|
28
|
-
readonly pattern: '^(?:a_[A-Za-z0-9._-]+(?:\\/source)?|r_[A-Za-z0-9._-]+(?:\\/(?:settings|settings\\/schema|settings\\/model|settings\\/indexing|content))?)$';
|
|
29
|
-
};
|
|
30
24
|
};
|
|
31
25
|
readonly 'house-app-preferences': {
|
|
32
26
|
readonly description: "An App's preferences. Its own vocabulary is in the body.";
|
|
33
27
|
readonly properties: {
|
|
34
28
|
readonly app: {
|
|
29
|
+
readonly title: 'App';
|
|
35
30
|
readonly $ref: '#/$defs/app';
|
|
36
31
|
};
|
|
37
32
|
};
|
|
@@ -41,54 +36,68 @@ export declare const HOUSE_MODEL_DECLARATION: {
|
|
|
41
36
|
readonly description: "One kept Notification for this User: its kind, when it was sent as `created`, its way in, its email's subject and each fact of its value that is not sealed, named in snake_case. An entity a fact names is an object holding its identifier under the key of its kind, when the notification carries it, and its `name`, `email` and other facts beside it; a fact holding null is absent. `way_in` is either the House `path` it opens or the entity it is about, by its identifier under the key of its kind, a Trigger with its `room`. Its body is its email's words in Markdown. Both were worded once, in the User's language when it was delivered; an App may show them or word it itself from its kind and value. `read` is when the User opened it or marked it read, on any device: the one field House adds after delivery.";
|
|
42
37
|
readonly properties: {
|
|
43
38
|
readonly notification: {
|
|
39
|
+
readonly title: 'Notification';
|
|
44
40
|
readonly $ref: '#/$defs/id';
|
|
45
41
|
};
|
|
46
42
|
readonly kind: {
|
|
43
|
+
readonly title: 'Kind';
|
|
47
44
|
readonly type: 'string';
|
|
48
|
-
readonly enum: readonly ['share-offer', 'join-request', 'join-request-approved', 'room-ownership-offer', 'managed-environment-retention-opened', 'storage-full', 'sandbox-budget-spent', 'trigger-failed', 'break-glass-owner-disclosure', 'export-ready', 'export-failed', 'custom', 'agent-function-request-finished'];
|
|
45
|
+
readonly enum: readonly ['share-offer', 'join-request', 'join-request-approved', 'room-ownership-offer', 'managed-environment-retention-opened', 'storage-full', 'sandbox-budget-spent', 'trigger-failed', 'room-telegram-chat-paused', 'break-glass-owner-disclosure', 'export-ready', 'export-failed', 'custom', 'agent-function-request-finished'];
|
|
49
46
|
};
|
|
50
47
|
readonly created: {
|
|
48
|
+
readonly title: 'Created';
|
|
51
49
|
readonly type: 'string';
|
|
52
50
|
readonly format: 'date-time';
|
|
53
51
|
};
|
|
54
52
|
readonly read: {
|
|
53
|
+
readonly title: 'Read';
|
|
55
54
|
readonly type: 'string';
|
|
56
55
|
readonly format: 'date-time';
|
|
57
56
|
};
|
|
58
57
|
readonly way_in: {
|
|
58
|
+
readonly title: 'Way in';
|
|
59
59
|
readonly type: 'object';
|
|
60
60
|
readonly additionalProperties: false;
|
|
61
61
|
readonly properties: {
|
|
62
62
|
readonly path: {
|
|
63
|
+
readonly title: 'Path';
|
|
63
64
|
readonly type: 'string';
|
|
64
65
|
readonly pattern: '^\\/';
|
|
65
66
|
};
|
|
66
67
|
readonly room: {
|
|
68
|
+
readonly title: 'Room';
|
|
67
69
|
readonly $ref: '#/$defs/room';
|
|
68
70
|
};
|
|
69
71
|
readonly environment: {
|
|
72
|
+
readonly title: 'Environment';
|
|
70
73
|
readonly $ref: '#/$defs/id';
|
|
71
74
|
};
|
|
72
75
|
readonly trigger: {
|
|
76
|
+
readonly title: 'Trigger';
|
|
73
77
|
readonly $ref: '#/$defs/id';
|
|
74
78
|
};
|
|
75
79
|
};
|
|
76
80
|
readonly minProperties: 1;
|
|
77
81
|
};
|
|
78
82
|
readonly subject: {
|
|
83
|
+
readonly title: 'Subject';
|
|
79
84
|
readonly type: 'string';
|
|
80
85
|
};
|
|
81
86
|
readonly share: {
|
|
87
|
+
readonly title: 'Share';
|
|
82
88
|
readonly $ref: '#/$defs/id';
|
|
83
89
|
};
|
|
84
90
|
readonly issuer: {
|
|
91
|
+
readonly title: 'Issuer';
|
|
85
92
|
readonly type: 'object';
|
|
86
93
|
readonly additionalProperties: false;
|
|
87
94
|
readonly properties: {
|
|
88
95
|
readonly name: {
|
|
96
|
+
readonly title: 'Name';
|
|
89
97
|
readonly type: 'string';
|
|
90
98
|
};
|
|
91
99
|
readonly email: {
|
|
100
|
+
readonly title: 'Email';
|
|
92
101
|
readonly type: 'string';
|
|
93
102
|
readonly format: 'email';
|
|
94
103
|
};
|
|
@@ -96,12 +105,14 @@ export declare const HOUSE_MODEL_DECLARATION: {
|
|
|
96
105
|
readonly required: readonly ['name', 'email'];
|
|
97
106
|
};
|
|
98
107
|
readonly rooms: {
|
|
108
|
+
readonly title: 'Rooms';
|
|
99
109
|
readonly type: 'array';
|
|
100
110
|
readonly items: {
|
|
101
111
|
readonly type: 'object';
|
|
102
112
|
readonly additionalProperties: false;
|
|
103
113
|
readonly properties: {
|
|
104
114
|
readonly name: {
|
|
115
|
+
readonly title: 'Name';
|
|
105
116
|
readonly type: 'string';
|
|
106
117
|
};
|
|
107
118
|
};
|
|
@@ -109,18 +120,20 @@ export declare const HOUSE_MODEL_DECLARATION: {
|
|
|
109
120
|
};
|
|
110
121
|
};
|
|
111
122
|
readonly apps: {
|
|
112
|
-
readonly
|
|
123
|
+
readonly title: 'Apps';
|
|
113
124
|
readonly type: 'array';
|
|
114
125
|
readonly items: {
|
|
115
126
|
readonly type: 'object';
|
|
116
127
|
readonly additionalProperties: false;
|
|
117
128
|
readonly properties: {
|
|
118
129
|
readonly name: {
|
|
130
|
+
readonly title: 'Name';
|
|
119
131
|
readonly type: 'string';
|
|
120
132
|
readonly minLength: 1;
|
|
121
133
|
readonly maxLength: 200;
|
|
122
134
|
};
|
|
123
135
|
readonly reaches: {
|
|
136
|
+
readonly title: 'Reaches';
|
|
124
137
|
readonly type: 'array';
|
|
125
138
|
readonly items: {
|
|
126
139
|
readonly type: 'string';
|
|
@@ -132,61 +145,102 @@ export declare const HOUSE_MODEL_DECLARATION: {
|
|
|
132
145
|
readonly required: readonly ['name', 'reaches'];
|
|
133
146
|
};
|
|
134
147
|
};
|
|
148
|
+
readonly spaces: {
|
|
149
|
+
readonly title: 'Spaces';
|
|
150
|
+
readonly type: 'array';
|
|
151
|
+
readonly items: {
|
|
152
|
+
readonly type: 'object';
|
|
153
|
+
readonly additionalProperties: false;
|
|
154
|
+
readonly properties: {
|
|
155
|
+
readonly name: {
|
|
156
|
+
readonly title: 'Name';
|
|
157
|
+
readonly type: 'string';
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
readonly required: readonly ['name'];
|
|
161
|
+
};
|
|
162
|
+
};
|
|
135
163
|
readonly expires_at: {
|
|
164
|
+
readonly title: 'Expires at';
|
|
136
165
|
readonly type: 'string';
|
|
137
166
|
readonly format: 'date-time';
|
|
138
167
|
};
|
|
139
168
|
readonly join_request: {
|
|
169
|
+
readonly title: 'Join request';
|
|
140
170
|
readonly $ref: '#/$defs/id';
|
|
141
171
|
};
|
|
142
172
|
readonly user: {
|
|
173
|
+
readonly title: 'User';
|
|
143
174
|
readonly type: 'object';
|
|
144
175
|
readonly additionalProperties: false;
|
|
145
176
|
readonly properties: {
|
|
146
177
|
readonly name: {
|
|
178
|
+
readonly title: 'Name';
|
|
147
179
|
readonly type: 'string';
|
|
148
180
|
};
|
|
149
181
|
readonly email: {
|
|
182
|
+
readonly title: 'Email';
|
|
150
183
|
readonly type: 'string';
|
|
151
184
|
readonly format: 'email';
|
|
152
185
|
};
|
|
153
186
|
};
|
|
154
|
-
readonly required: readonly ['name'
|
|
187
|
+
readonly required: readonly ['name'];
|
|
155
188
|
};
|
|
156
189
|
readonly room: {
|
|
190
|
+
readonly title: 'Room';
|
|
157
191
|
readonly type: 'object';
|
|
158
192
|
readonly additionalProperties: false;
|
|
159
193
|
readonly properties: {
|
|
160
194
|
readonly room: {
|
|
195
|
+
readonly title: 'Room';
|
|
161
196
|
readonly $ref: '#/$defs/room';
|
|
162
197
|
};
|
|
163
198
|
readonly name: {
|
|
199
|
+
readonly title: 'Name';
|
|
164
200
|
readonly type: 'string';
|
|
165
201
|
};
|
|
166
202
|
};
|
|
167
203
|
readonly minProperties: 1;
|
|
168
204
|
};
|
|
169
205
|
readonly app: {
|
|
206
|
+
readonly title: 'App';
|
|
170
207
|
readonly type: 'object';
|
|
171
208
|
readonly additionalProperties: false;
|
|
172
209
|
readonly properties: {
|
|
173
210
|
readonly app: {
|
|
211
|
+
readonly title: 'App';
|
|
174
212
|
readonly $ref: '#/$defs/app';
|
|
175
213
|
};
|
|
176
214
|
};
|
|
177
215
|
readonly required: readonly ['app'];
|
|
178
216
|
};
|
|
217
|
+
readonly space: {
|
|
218
|
+
readonly title: 'Space';
|
|
219
|
+
readonly type: 'object';
|
|
220
|
+
readonly additionalProperties: false;
|
|
221
|
+
readonly properties: {
|
|
222
|
+
readonly space: {
|
|
223
|
+
readonly title: 'Space';
|
|
224
|
+
readonly $ref: '#/$defs/space';
|
|
225
|
+
};
|
|
226
|
+
};
|
|
227
|
+
readonly required: readonly ['space'];
|
|
228
|
+
};
|
|
179
229
|
readonly ownership_offer: {
|
|
230
|
+
readonly title: 'Ownership offer';
|
|
180
231
|
readonly $ref: '#/$defs/id';
|
|
181
232
|
};
|
|
182
233
|
readonly offerer: {
|
|
234
|
+
readonly title: 'Offerer';
|
|
183
235
|
readonly type: 'object';
|
|
184
236
|
readonly additionalProperties: false;
|
|
185
237
|
readonly properties: {
|
|
186
238
|
readonly name: {
|
|
239
|
+
readonly title: 'Name';
|
|
187
240
|
readonly type: 'string';
|
|
188
241
|
};
|
|
189
242
|
readonly email: {
|
|
243
|
+
readonly title: 'Email';
|
|
190
244
|
readonly type: 'string';
|
|
191
245
|
readonly format: 'email';
|
|
192
246
|
};
|
|
@@ -194,103 +248,137 @@ export declare const HOUSE_MODEL_DECLARATION: {
|
|
|
194
248
|
readonly required: readonly ['name', 'email'];
|
|
195
249
|
};
|
|
196
250
|
readonly environment: {
|
|
251
|
+
readonly title: 'Environment';
|
|
197
252
|
readonly type: 'object';
|
|
198
253
|
readonly additionalProperties: false;
|
|
199
254
|
readonly properties: {
|
|
200
255
|
readonly environment: {
|
|
256
|
+
readonly title: 'Environment';
|
|
201
257
|
readonly $ref: '#/$defs/id';
|
|
202
258
|
};
|
|
203
259
|
readonly name: {
|
|
260
|
+
readonly title: 'Name';
|
|
204
261
|
readonly type: 'string';
|
|
205
262
|
};
|
|
206
263
|
readonly kind: {
|
|
264
|
+
readonly title: 'Kind';
|
|
207
265
|
readonly enum: readonly ['vps', 'sandbox'];
|
|
208
266
|
};
|
|
209
267
|
};
|
|
210
268
|
readonly required: readonly ['environment', 'name'];
|
|
211
269
|
};
|
|
212
270
|
readonly reason: {
|
|
271
|
+
readonly title: 'Reason';
|
|
213
272
|
readonly type: 'string';
|
|
214
273
|
};
|
|
215
274
|
readonly deadline: {
|
|
275
|
+
readonly title: 'Deadline';
|
|
216
276
|
readonly type: 'string';
|
|
217
277
|
readonly format: 'date-time';
|
|
218
278
|
};
|
|
219
279
|
readonly free: {
|
|
280
|
+
readonly title: 'Free';
|
|
220
281
|
readonly type: 'object';
|
|
221
282
|
readonly additionalProperties: false;
|
|
222
283
|
readonly properties: {
|
|
223
284
|
readonly held: {
|
|
285
|
+
readonly title: 'Held';
|
|
224
286
|
readonly type: 'string';
|
|
225
287
|
readonly pattern: '^\\d+$';
|
|
226
288
|
};
|
|
227
289
|
readonly limit: {
|
|
290
|
+
readonly title: 'Limit';
|
|
228
291
|
readonly type: 'string';
|
|
229
292
|
readonly pattern: '^[1-9]\\d*$';
|
|
230
293
|
};
|
|
231
294
|
readonly measure: {
|
|
295
|
+
readonly title: 'Measure';
|
|
232
296
|
readonly type: 'string';
|
|
233
297
|
readonly enum: readonly ['content', 'retained'];
|
|
234
298
|
};
|
|
235
299
|
};
|
|
236
300
|
readonly required: readonly ['held', 'limit', 'measure'];
|
|
237
301
|
};
|
|
302
|
+
readonly chat: {
|
|
303
|
+
readonly title: 'Chat';
|
|
304
|
+
readonly type: 'string';
|
|
305
|
+
};
|
|
306
|
+
readonly missing: {
|
|
307
|
+
readonly title: 'Missing';
|
|
308
|
+
readonly type: 'array';
|
|
309
|
+
readonly items: {
|
|
310
|
+
readonly type: 'string';
|
|
311
|
+
readonly enum: readonly ['private', 'topics', 'ban_users', 'invite_users', 'manage_topics', 'post_messages', 'edit_messages', 'inbox_manage_topics', 'inbox_delete_messages'];
|
|
312
|
+
};
|
|
313
|
+
};
|
|
238
314
|
readonly budget: {
|
|
315
|
+
readonly title: 'Budget';
|
|
239
316
|
readonly type: 'string';
|
|
240
317
|
readonly pattern: '^\\d+(?:\\.\\d+)?$';
|
|
241
318
|
};
|
|
242
319
|
readonly resets_at: {
|
|
320
|
+
readonly title: 'Resets at';
|
|
243
321
|
readonly type: 'string';
|
|
244
322
|
readonly format: 'date-time';
|
|
245
323
|
};
|
|
246
324
|
readonly grant: {
|
|
325
|
+
readonly title: 'Grant';
|
|
247
326
|
readonly $ref: '#/$defs/id';
|
|
248
327
|
};
|
|
249
328
|
readonly category: {
|
|
329
|
+
readonly title: 'Category';
|
|
250
330
|
readonly type: 'string';
|
|
251
331
|
};
|
|
252
332
|
readonly access_started_at: {
|
|
333
|
+
readonly title: 'Access started at';
|
|
253
334
|
readonly type: 'string';
|
|
254
335
|
readonly format: 'date-time';
|
|
255
336
|
};
|
|
256
337
|
readonly access_ended_at: {
|
|
338
|
+
readonly title: 'Access ended at';
|
|
257
339
|
readonly type: 'string';
|
|
258
340
|
readonly format: 'date-time';
|
|
259
341
|
};
|
|
260
342
|
readonly systems: {
|
|
343
|
+
readonly title: 'Systems';
|
|
261
344
|
readonly type: 'array';
|
|
262
345
|
readonly items: {
|
|
263
346
|
readonly type: 'string';
|
|
264
347
|
};
|
|
265
348
|
};
|
|
266
349
|
readonly case_reference: {
|
|
350
|
+
readonly title: 'Case reference';
|
|
267
351
|
readonly type: 'string';
|
|
268
352
|
};
|
|
269
353
|
readonly export: {
|
|
354
|
+
readonly title: 'Export';
|
|
270
355
|
readonly $ref: '#/$defs/id';
|
|
271
356
|
};
|
|
272
357
|
readonly size_bytes: {
|
|
358
|
+
readonly title: 'Size in bytes';
|
|
273
359
|
readonly type: 'integer';
|
|
274
360
|
readonly minimum: 0;
|
|
275
361
|
};
|
|
276
|
-
readonly
|
|
277
|
-
readonly
|
|
278
|
-
};
|
|
279
|
-
readonly body: {
|
|
362
|
+
readonly name: {
|
|
363
|
+
readonly title: 'Name';
|
|
280
364
|
readonly type: 'string';
|
|
281
365
|
};
|
|
282
366
|
readonly authorship: {
|
|
367
|
+
readonly title: 'Authorship';
|
|
283
368
|
readonly type: 'object';
|
|
284
369
|
readonly additionalProperties: false;
|
|
285
370
|
readonly properties: {
|
|
286
371
|
readonly kind: {
|
|
372
|
+
readonly title: 'Kind';
|
|
287
373
|
readonly type: 'string';
|
|
288
374
|
readonly const: 'trigger-action';
|
|
289
375
|
};
|
|
290
376
|
readonly trigger: {
|
|
377
|
+
readonly title: 'Trigger';
|
|
291
378
|
readonly $ref: '#/$defs/id';
|
|
292
379
|
};
|
|
293
380
|
readonly position: {
|
|
381
|
+
readonly title: 'Position';
|
|
294
382
|
readonly type: 'integer';
|
|
295
383
|
readonly minimum: 0;
|
|
296
384
|
};
|
|
@@ -298,63 +386,77 @@ export declare const HOUSE_MODEL_DECLARATION: {
|
|
|
298
386
|
readonly required: readonly ['kind', 'trigger', 'position'];
|
|
299
387
|
};
|
|
300
388
|
readonly path: {
|
|
389
|
+
readonly title: 'Path';
|
|
301
390
|
readonly type: 'string';
|
|
302
391
|
readonly maxLength: 4096;
|
|
303
392
|
readonly pattern: '^\\/.*';
|
|
304
393
|
};
|
|
305
394
|
readonly trigger: {
|
|
395
|
+
readonly title: 'Trigger';
|
|
306
396
|
readonly type: 'object';
|
|
307
397
|
readonly additionalProperties: false;
|
|
308
398
|
readonly properties: {
|
|
309
399
|
readonly trigger: {
|
|
400
|
+
readonly title: 'Trigger';
|
|
310
401
|
readonly $ref: '#/$defs/id';
|
|
311
402
|
};
|
|
312
403
|
readonly description: {
|
|
404
|
+
readonly title: 'Description';
|
|
313
405
|
readonly type: 'string';
|
|
314
406
|
};
|
|
315
407
|
};
|
|
316
408
|
readonly required: readonly ['trigger', 'description'];
|
|
317
409
|
};
|
|
318
410
|
readonly code: {
|
|
411
|
+
readonly title: 'Code';
|
|
319
412
|
readonly type: 'string';
|
|
320
413
|
readonly enum: readonly ['failed', 'function_failed', 'function_not_started', 'agent_function_request_not_started'];
|
|
321
414
|
};
|
|
322
415
|
readonly action: {
|
|
416
|
+
readonly title: 'Action';
|
|
323
417
|
readonly type: 'integer';
|
|
324
418
|
readonly minimum: 0;
|
|
325
419
|
};
|
|
326
420
|
readonly moment: {
|
|
421
|
+
readonly title: 'Moment';
|
|
327
422
|
readonly type: 'string';
|
|
328
423
|
readonly format: 'date-time';
|
|
329
424
|
};
|
|
330
425
|
readonly error: {
|
|
426
|
+
readonly title: 'Error';
|
|
331
427
|
readonly type: 'string';
|
|
332
428
|
};
|
|
333
429
|
readonly agent_function: {
|
|
430
|
+
readonly title: 'Agent function';
|
|
334
431
|
readonly type: 'object';
|
|
335
432
|
readonly additionalProperties: false;
|
|
336
433
|
readonly properties: {
|
|
337
434
|
readonly name: {
|
|
435
|
+
readonly title: 'Name';
|
|
338
436
|
readonly type: 'string';
|
|
339
437
|
};
|
|
340
438
|
};
|
|
341
439
|
readonly required: readonly ['name'];
|
|
342
440
|
};
|
|
343
441
|
readonly agent: {
|
|
442
|
+
readonly title: 'Agent';
|
|
344
443
|
readonly type: 'object';
|
|
345
444
|
readonly additionalProperties: false;
|
|
346
445
|
readonly properties: {
|
|
347
446
|
readonly name: {
|
|
447
|
+
readonly title: 'Name';
|
|
348
448
|
readonly type: 'string';
|
|
349
449
|
};
|
|
350
450
|
};
|
|
351
451
|
readonly required: readonly ['name'];
|
|
352
452
|
};
|
|
353
453
|
readonly ended: {
|
|
454
|
+
readonly title: 'Ended';
|
|
354
455
|
readonly type: 'string';
|
|
355
456
|
readonly enum: readonly ['finished', 'failed'];
|
|
356
457
|
};
|
|
357
458
|
readonly duration: {
|
|
459
|
+
readonly title: 'Duration';
|
|
358
460
|
readonly type: 'integer';
|
|
359
461
|
readonly minimum: 1;
|
|
360
462
|
};
|
|
@@ -369,26 +471,33 @@ export declare const HOUSE_MODEL_DECLARATION: {
|
|
|
369
471
|
readonly description: "One Agent function that serves this Room, which House alone writes from its owner's document in their Private Room: the `agent_function` by identifier, its `description`, the `input` a caller sends, empty when it takes nothing, and the `agent` it starts, by `agent` and the `name` that Agent had when this card was last written. The Agent function's instruction is never written here.";
|
|
370
472
|
readonly properties: {
|
|
371
473
|
readonly reflected: {
|
|
474
|
+
readonly title: 'Reflected';
|
|
372
475
|
readonly type: 'string';
|
|
373
476
|
readonly format: 'date-time';
|
|
374
477
|
};
|
|
375
478
|
readonly agent_function: {
|
|
479
|
+
readonly title: 'Agent function';
|
|
376
480
|
readonly $ref: '#/$defs/id';
|
|
377
481
|
};
|
|
378
482
|
readonly description: {
|
|
483
|
+
readonly title: 'Description';
|
|
379
484
|
readonly type: 'string';
|
|
380
485
|
};
|
|
381
486
|
readonly input: {
|
|
487
|
+
readonly title: 'Input';
|
|
382
488
|
readonly type: 'string';
|
|
383
489
|
};
|
|
384
490
|
readonly agent: {
|
|
491
|
+
readonly title: 'Agent';
|
|
385
492
|
readonly type: 'object';
|
|
386
493
|
readonly additionalProperties: false;
|
|
387
494
|
readonly properties: {
|
|
388
495
|
readonly agent: {
|
|
496
|
+
readonly title: 'Agent';
|
|
389
497
|
readonly $ref: '#/$defs/id';
|
|
390
498
|
};
|
|
391
499
|
readonly name: {
|
|
500
|
+
readonly title: 'Name';
|
|
392
501
|
readonly type: 'string';
|
|
393
502
|
};
|
|
394
503
|
};
|
|
@@ -401,17 +510,21 @@ export declare const HOUSE_MODEL_DECLARATION: {
|
|
|
401
510
|
readonly description: 'One Agent function as its owner writes it in their Private Room at rooms/<room-handle>/agent-functions/<name>.md, a path that binds this type and a document that names no type: what it does as `description`, what a caller sends as `input`, empty when it takes nothing, the `agent` it starts, by identifier, and `afk`, true for a run nobody watches, off when absent. Its body is the instruction that Agent follows.';
|
|
402
511
|
readonly properties: {
|
|
403
512
|
readonly description: {
|
|
513
|
+
readonly title: 'Description';
|
|
404
514
|
readonly type: 'string';
|
|
405
515
|
readonly maxLength: 2000;
|
|
406
516
|
readonly pattern: '\\S';
|
|
407
517
|
};
|
|
408
518
|
readonly input: {
|
|
519
|
+
readonly title: 'Input';
|
|
409
520
|
readonly type: 'string';
|
|
410
521
|
};
|
|
411
522
|
readonly agent: {
|
|
523
|
+
readonly title: 'Agent';
|
|
412
524
|
readonly $ref: '#/$defs/id';
|
|
413
525
|
};
|
|
414
526
|
readonly afk: {
|
|
527
|
+
readonly title: 'AFK';
|
|
415
528
|
readonly type: 'boolean';
|
|
416
529
|
};
|
|
417
530
|
};
|
|
@@ -421,21 +534,26 @@ export declare const HOUSE_MODEL_DECLARATION: {
|
|
|
421
534
|
readonly description: "One Trigger of this Room as its acts wrote it, which House alone writes: its `description`, the `condition` it fires on, its `actions` in order, whether each action and the Trigger are `enabled`, `paused_by` `types` while a change of the Room's types paused it, its `creator` by `user` and the `name` they had then, and when it was `created`. A `notify` action reaches the `users` its `to` names, the members its `fields` name in the matched document and the holders of its `roles`; an `agent_function` action sends its `payload` to the Agent function whose card under this Room's `house/agent-functions/` its `card` names, absent while this Room holds no card of that Agent function; a `message` action puts its `text` into the active conversation that Agent function started for what the Event is about, or starts that Agent function when none is active; a `done` action marks Done every active conversation an Agent function request of this Room started for the Event's document; a `function` action runs the `function` its `app`'s latest release declares, on House's servers, or, naming no `app`, the Room owner's Environment function of that name on its Environment, which only a Trigger of their Private Room holds. Whether an action's target holds is not written: it follows from the Room's members, the Agent function's card, the App's latest release and the owner's functions.";
|
|
422
535
|
readonly properties: {
|
|
423
536
|
readonly reflected: {
|
|
537
|
+
readonly title: 'Reflected';
|
|
424
538
|
readonly type: 'string';
|
|
425
539
|
readonly format: 'date-time';
|
|
426
540
|
};
|
|
427
541
|
readonly trigger: {
|
|
542
|
+
readonly title: 'Trigger';
|
|
428
543
|
readonly $ref: '#/$defs/id';
|
|
429
544
|
};
|
|
430
545
|
readonly description: {
|
|
546
|
+
readonly title: 'Description';
|
|
431
547
|
readonly type: 'string';
|
|
432
548
|
};
|
|
433
549
|
readonly condition: {
|
|
550
|
+
readonly title: 'Condition';
|
|
434
551
|
readonly description: 'When it fires, as the Trigger reference page writes it, a document it names at its current path.';
|
|
435
552
|
readonly type: 'object';
|
|
436
553
|
readonly additionalProperties: true;
|
|
437
554
|
};
|
|
438
555
|
readonly actions: {
|
|
556
|
+
readonly title: 'Actions';
|
|
439
557
|
readonly type: 'array';
|
|
440
558
|
readonly items: {
|
|
441
559
|
readonly anyOf: readonly [{
|
|
@@ -443,28 +561,35 @@ export declare const HOUSE_MODEL_DECLARATION: {
|
|
|
443
561
|
readonly additionalProperties: false;
|
|
444
562
|
readonly properties: {
|
|
445
563
|
readonly kind: {
|
|
564
|
+
readonly title: 'Kind';
|
|
446
565
|
readonly const: 'notify';
|
|
447
566
|
};
|
|
448
567
|
readonly enabled: {
|
|
568
|
+
readonly title: 'Enabled';
|
|
449
569
|
readonly type: 'boolean';
|
|
450
570
|
};
|
|
451
571
|
readonly title: {
|
|
572
|
+
readonly title: 'Title';
|
|
452
573
|
readonly type: 'string';
|
|
453
574
|
};
|
|
454
575
|
readonly text: {
|
|
576
|
+
readonly title: 'Text';
|
|
455
577
|
readonly type: 'string';
|
|
456
578
|
};
|
|
457
579
|
readonly to: {
|
|
580
|
+
readonly title: 'To';
|
|
458
581
|
readonly type: 'object';
|
|
459
582
|
readonly additionalProperties: false;
|
|
460
583
|
readonly properties: {
|
|
461
584
|
readonly users: {
|
|
585
|
+
readonly title: 'Users';
|
|
462
586
|
readonly type: 'array';
|
|
463
587
|
readonly items: {
|
|
464
588
|
readonly type: 'object';
|
|
465
589
|
readonly additionalProperties: false;
|
|
466
590
|
readonly properties: {
|
|
467
591
|
readonly user: {
|
|
592
|
+
readonly title: 'User';
|
|
468
593
|
readonly $ref: '#/$defs/id';
|
|
469
594
|
};
|
|
470
595
|
};
|
|
@@ -472,12 +597,14 @@ export declare const HOUSE_MODEL_DECLARATION: {
|
|
|
472
597
|
};
|
|
473
598
|
};
|
|
474
599
|
readonly fields: {
|
|
600
|
+
readonly title: 'Fields';
|
|
475
601
|
readonly type: 'array';
|
|
476
602
|
readonly items: {
|
|
477
603
|
readonly type: 'string';
|
|
478
604
|
};
|
|
479
605
|
};
|
|
480
606
|
readonly roles: {
|
|
607
|
+
readonly title: 'Roles';
|
|
481
608
|
readonly type: 'array';
|
|
482
609
|
readonly items: {
|
|
483
610
|
readonly type: 'string';
|
|
@@ -493,16 +620,20 @@ export declare const HOUSE_MODEL_DECLARATION: {
|
|
|
493
620
|
readonly additionalProperties: false;
|
|
494
621
|
readonly properties: {
|
|
495
622
|
readonly kind: {
|
|
623
|
+
readonly title: 'Kind';
|
|
496
624
|
readonly const: 'agent_function';
|
|
497
625
|
};
|
|
498
626
|
readonly enabled: {
|
|
627
|
+
readonly title: 'Enabled';
|
|
499
628
|
readonly type: 'boolean';
|
|
500
629
|
};
|
|
501
630
|
readonly card: {
|
|
631
|
+
readonly title: 'Card';
|
|
502
632
|
readonly type: 'string';
|
|
503
633
|
readonly minLength: 1;
|
|
504
634
|
};
|
|
505
635
|
readonly payload: {
|
|
636
|
+
readonly title: 'Payload';
|
|
506
637
|
readonly type: 'string';
|
|
507
638
|
};
|
|
508
639
|
};
|
|
@@ -512,16 +643,20 @@ export declare const HOUSE_MODEL_DECLARATION: {
|
|
|
512
643
|
readonly additionalProperties: false;
|
|
513
644
|
readonly properties: {
|
|
514
645
|
readonly kind: {
|
|
646
|
+
readonly title: 'Kind';
|
|
515
647
|
readonly const: 'message';
|
|
516
648
|
};
|
|
517
649
|
readonly enabled: {
|
|
650
|
+
readonly title: 'Enabled';
|
|
518
651
|
readonly type: 'boolean';
|
|
519
652
|
};
|
|
520
653
|
readonly card: {
|
|
654
|
+
readonly title: 'Card';
|
|
521
655
|
readonly type: 'string';
|
|
522
656
|
readonly minLength: 1;
|
|
523
657
|
};
|
|
524
658
|
readonly text: {
|
|
659
|
+
readonly title: 'Text';
|
|
525
660
|
readonly type: 'string';
|
|
526
661
|
};
|
|
527
662
|
};
|
|
@@ -531,9 +666,11 @@ export declare const HOUSE_MODEL_DECLARATION: {
|
|
|
531
666
|
readonly additionalProperties: false;
|
|
532
667
|
readonly properties: {
|
|
533
668
|
readonly kind: {
|
|
669
|
+
readonly title: 'Kind';
|
|
534
670
|
readonly const: 'done';
|
|
535
671
|
};
|
|
536
672
|
readonly enabled: {
|
|
673
|
+
readonly title: 'Enabled';
|
|
537
674
|
readonly type: 'boolean';
|
|
538
675
|
};
|
|
539
676
|
};
|
|
@@ -543,15 +680,19 @@ export declare const HOUSE_MODEL_DECLARATION: {
|
|
|
543
680
|
readonly additionalProperties: false;
|
|
544
681
|
readonly properties: {
|
|
545
682
|
readonly kind: {
|
|
683
|
+
readonly title: 'Kind';
|
|
546
684
|
readonly const: 'function';
|
|
547
685
|
};
|
|
548
686
|
readonly enabled: {
|
|
687
|
+
readonly title: 'Enabled';
|
|
549
688
|
readonly type: 'boolean';
|
|
550
689
|
};
|
|
551
690
|
readonly app: {
|
|
691
|
+
readonly title: 'App';
|
|
552
692
|
readonly $ref: '#/$defs/app';
|
|
553
693
|
};
|
|
554
694
|
readonly function: {
|
|
695
|
+
readonly title: 'Function';
|
|
555
696
|
readonly type: 'string';
|
|
556
697
|
};
|
|
557
698
|
};
|
|
@@ -560,25 +701,31 @@ export declare const HOUSE_MODEL_DECLARATION: {
|
|
|
560
701
|
};
|
|
561
702
|
};
|
|
562
703
|
readonly enabled: {
|
|
704
|
+
readonly title: 'Enabled';
|
|
563
705
|
readonly type: 'boolean';
|
|
564
706
|
};
|
|
565
707
|
readonly paused_by: {
|
|
708
|
+
readonly title: 'Paused by';
|
|
566
709
|
readonly enum: readonly ['types'];
|
|
567
710
|
};
|
|
568
711
|
readonly creator: {
|
|
712
|
+
readonly title: 'Creator';
|
|
569
713
|
readonly type: 'object';
|
|
570
714
|
readonly additionalProperties: false;
|
|
571
715
|
readonly properties: {
|
|
572
716
|
readonly user: {
|
|
717
|
+
readonly title: 'User';
|
|
573
718
|
readonly $ref: '#/$defs/id';
|
|
574
719
|
};
|
|
575
720
|
readonly name: {
|
|
721
|
+
readonly title: 'Name';
|
|
576
722
|
readonly type: 'string';
|
|
577
723
|
};
|
|
578
724
|
};
|
|
579
725
|
readonly required: readonly ['user', 'name'];
|
|
580
726
|
};
|
|
581
727
|
readonly created: {
|
|
728
|
+
readonly title: 'Created';
|
|
582
729
|
readonly type: 'string';
|
|
583
730
|
readonly format: 'date-time';
|
|
584
731
|
};
|
|
@@ -589,32 +736,40 @@ export declare const HOUSE_MODEL_DECLARATION: {
|
|
|
589
736
|
readonly description: "One Web Wizard an agent made for this User: the `environment` it runs on, with the `name` that Environment had when the Web Wizard was made, and its `state`, `waiting` until its owner presses Run or Keep, `running`, `finished` with the script's `exit_code`, `failed`, `cancelled` when its page closed before the script ended, `lapsed` when nobody ran it in its time, or `kept` when its owner kept the script, without running it, as their Environment function named `function`. Its body is the script, whole, in one fenced code block. The terminal's output is never kept.";
|
|
590
737
|
readonly properties: {
|
|
591
738
|
readonly reflected: {
|
|
739
|
+
readonly title: 'Reflected';
|
|
592
740
|
readonly type: 'string';
|
|
593
741
|
readonly format: 'date-time';
|
|
594
742
|
};
|
|
595
743
|
readonly web_wizard: {
|
|
744
|
+
readonly title: 'Web Wizard';
|
|
596
745
|
readonly $ref: '#/$defs/id';
|
|
597
746
|
};
|
|
598
747
|
readonly environment: {
|
|
748
|
+
readonly title: 'Environment';
|
|
599
749
|
readonly type: 'object';
|
|
600
750
|
readonly additionalProperties: false;
|
|
601
751
|
readonly properties: {
|
|
602
752
|
readonly environment: {
|
|
753
|
+
readonly title: 'Environment';
|
|
603
754
|
readonly $ref: '#/$defs/id';
|
|
604
755
|
};
|
|
605
756
|
readonly name: {
|
|
757
|
+
readonly title: 'Name';
|
|
606
758
|
readonly type: 'string';
|
|
607
759
|
};
|
|
608
760
|
};
|
|
609
761
|
readonly required: readonly ['environment', 'name'];
|
|
610
762
|
};
|
|
611
763
|
readonly state: {
|
|
764
|
+
readonly title: 'State';
|
|
612
765
|
readonly enum: readonly ['waiting', 'running', 'finished', 'failed', 'cancelled', 'lapsed', 'kept'];
|
|
613
766
|
};
|
|
614
767
|
readonly exit_code: {
|
|
768
|
+
readonly title: 'Exit code';
|
|
615
769
|
readonly type: 'integer';
|
|
616
770
|
};
|
|
617
771
|
readonly function: {
|
|
772
|
+
readonly title: 'Function';
|
|
618
773
|
readonly type: 'string';
|
|
619
774
|
};
|
|
620
775
|
};
|
|
@@ -641,7 +796,7 @@ type Properties<S> = S extends {
|
|
|
641
796
|
}> : S extends {
|
|
642
797
|
readonly additionalProperties: false;
|
|
643
798
|
} ? Readonly<Record<string, never>> : Readonly<Record<string, unknown>>;
|
|
644
|
-
type Typed<T, S> = T extends 'string' ? string : T extends 'integer'
|
|
799
|
+
type Typed<T, S> = T extends 'string' ? string : T extends 'integer' ? number : T extends 'boolean' ? boolean : T extends 'array' ? readonly (S extends {
|
|
645
800
|
readonly items: infer I;
|
|
646
801
|
} ? Value<I> : unknown)[] : T extends 'object' ? Properties<S> : never;
|
|
647
802
|
type Value<S> = S extends {
|
|
@@ -669,4 +824,3 @@ export type HouseDocumentFields<Type extends HouseModelType> = Properties<{
|
|
|
669
824
|
readonly required: readonly ('type' | Needed<Model[Type]>)[];
|
|
670
825
|
}>;
|
|
671
826
|
export {};
|
|
672
|
-
//# sourceMappingURL=house-model.d.ts.map
|