@agentshouse/mdruntime-adapter 0.1.0-c3206e9766a7e → 0.1.0-c32f37ad2c514
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 +15 -3
- package/dist/adapter.d.ts +0 -1
- package/dist/adapter.d.ts.map +1 -1
- package/dist/adapter.js +6 -6
- 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/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 +18 -26
- package/dist/house-model.d.ts +172 -14
- package/dist/house-model.d.ts.map +1 -1
- package/dist/house-model.js +195 -107
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -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 +1 -1
- package/dist/refusal.d.ts.map +1 -1
- package/dist/refusal.js +5 -1
- package/dist/room-types.d.ts +0 -3
- package/dist/room-types.d.ts.map +1 -1
- package/dist/room-types.js +48 -34
- package/dist/search.d.ts +0 -1
- 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 +5 -1
- 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 +38 -17
- package/dist/transport.d.ts +15 -13
- package/dist/transport.d.ts.map +1 -1
- package/dist/transport.js +1 -1
- package/dist/upload.d.ts +0 -1
- 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 +3 -5
- 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,141 @@ 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
362
|
readonly title: {
|
|
363
|
+
readonly title: 'Title';
|
|
277
364
|
readonly type: 'string';
|
|
278
365
|
};
|
|
279
366
|
readonly body: {
|
|
367
|
+
readonly title: 'Body';
|
|
280
368
|
readonly type: 'string';
|
|
281
369
|
};
|
|
282
370
|
readonly authorship: {
|
|
371
|
+
readonly title: 'Authorship';
|
|
283
372
|
readonly type: 'object';
|
|
284
373
|
readonly additionalProperties: false;
|
|
285
374
|
readonly properties: {
|
|
286
375
|
readonly kind: {
|
|
376
|
+
readonly title: 'Kind';
|
|
287
377
|
readonly type: 'string';
|
|
288
378
|
readonly const: 'trigger-action';
|
|
289
379
|
};
|
|
290
380
|
readonly trigger: {
|
|
381
|
+
readonly title: 'Trigger';
|
|
291
382
|
readonly $ref: '#/$defs/id';
|
|
292
383
|
};
|
|
293
384
|
readonly position: {
|
|
385
|
+
readonly title: 'Position';
|
|
294
386
|
readonly type: 'integer';
|
|
295
387
|
readonly minimum: 0;
|
|
296
388
|
};
|
|
@@ -298,63 +390,77 @@ export declare const HOUSE_MODEL_DECLARATION: {
|
|
|
298
390
|
readonly required: readonly ['kind', 'trigger', 'position'];
|
|
299
391
|
};
|
|
300
392
|
readonly path: {
|
|
393
|
+
readonly title: 'Path';
|
|
301
394
|
readonly type: 'string';
|
|
302
395
|
readonly maxLength: 4096;
|
|
303
396
|
readonly pattern: '^\\/.*';
|
|
304
397
|
};
|
|
305
398
|
readonly trigger: {
|
|
399
|
+
readonly title: 'Trigger';
|
|
306
400
|
readonly type: 'object';
|
|
307
401
|
readonly additionalProperties: false;
|
|
308
402
|
readonly properties: {
|
|
309
403
|
readonly trigger: {
|
|
404
|
+
readonly title: 'Trigger';
|
|
310
405
|
readonly $ref: '#/$defs/id';
|
|
311
406
|
};
|
|
312
407
|
readonly description: {
|
|
408
|
+
readonly title: 'Description';
|
|
313
409
|
readonly type: 'string';
|
|
314
410
|
};
|
|
315
411
|
};
|
|
316
412
|
readonly required: readonly ['trigger', 'description'];
|
|
317
413
|
};
|
|
318
414
|
readonly code: {
|
|
415
|
+
readonly title: 'Code';
|
|
319
416
|
readonly type: 'string';
|
|
320
417
|
readonly enum: readonly ['failed', 'function_failed', 'function_not_started', 'agent_function_request_not_started'];
|
|
321
418
|
};
|
|
322
419
|
readonly action: {
|
|
420
|
+
readonly title: 'Action';
|
|
323
421
|
readonly type: 'integer';
|
|
324
422
|
readonly minimum: 0;
|
|
325
423
|
};
|
|
326
424
|
readonly moment: {
|
|
425
|
+
readonly title: 'Moment';
|
|
327
426
|
readonly type: 'string';
|
|
328
427
|
readonly format: 'date-time';
|
|
329
428
|
};
|
|
330
429
|
readonly error: {
|
|
430
|
+
readonly title: 'Error';
|
|
331
431
|
readonly type: 'string';
|
|
332
432
|
};
|
|
333
433
|
readonly agent_function: {
|
|
434
|
+
readonly title: 'Agent function';
|
|
334
435
|
readonly type: 'object';
|
|
335
436
|
readonly additionalProperties: false;
|
|
336
437
|
readonly properties: {
|
|
337
438
|
readonly name: {
|
|
439
|
+
readonly title: 'Name';
|
|
338
440
|
readonly type: 'string';
|
|
339
441
|
};
|
|
340
442
|
};
|
|
341
443
|
readonly required: readonly ['name'];
|
|
342
444
|
};
|
|
343
445
|
readonly agent: {
|
|
446
|
+
readonly title: 'Agent';
|
|
344
447
|
readonly type: 'object';
|
|
345
448
|
readonly additionalProperties: false;
|
|
346
449
|
readonly properties: {
|
|
347
450
|
readonly name: {
|
|
451
|
+
readonly title: 'Name';
|
|
348
452
|
readonly type: 'string';
|
|
349
453
|
};
|
|
350
454
|
};
|
|
351
455
|
readonly required: readonly ['name'];
|
|
352
456
|
};
|
|
353
457
|
readonly ended: {
|
|
458
|
+
readonly title: 'Ended';
|
|
354
459
|
readonly type: 'string';
|
|
355
460
|
readonly enum: readonly ['finished', 'failed'];
|
|
356
461
|
};
|
|
357
462
|
readonly duration: {
|
|
463
|
+
readonly title: 'Duration';
|
|
358
464
|
readonly type: 'integer';
|
|
359
465
|
readonly minimum: 1;
|
|
360
466
|
};
|
|
@@ -369,26 +475,33 @@ export declare const HOUSE_MODEL_DECLARATION: {
|
|
|
369
475
|
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
476
|
readonly properties: {
|
|
371
477
|
readonly reflected: {
|
|
478
|
+
readonly title: 'Reflected';
|
|
372
479
|
readonly type: 'string';
|
|
373
480
|
readonly format: 'date-time';
|
|
374
481
|
};
|
|
375
482
|
readonly agent_function: {
|
|
483
|
+
readonly title: 'Agent function';
|
|
376
484
|
readonly $ref: '#/$defs/id';
|
|
377
485
|
};
|
|
378
486
|
readonly description: {
|
|
487
|
+
readonly title: 'Description';
|
|
379
488
|
readonly type: 'string';
|
|
380
489
|
};
|
|
381
490
|
readonly input: {
|
|
491
|
+
readonly title: 'Input';
|
|
382
492
|
readonly type: 'string';
|
|
383
493
|
};
|
|
384
494
|
readonly agent: {
|
|
495
|
+
readonly title: 'Agent';
|
|
385
496
|
readonly type: 'object';
|
|
386
497
|
readonly additionalProperties: false;
|
|
387
498
|
readonly properties: {
|
|
388
499
|
readonly agent: {
|
|
500
|
+
readonly title: 'Agent';
|
|
389
501
|
readonly $ref: '#/$defs/id';
|
|
390
502
|
};
|
|
391
503
|
readonly name: {
|
|
504
|
+
readonly title: 'Name';
|
|
392
505
|
readonly type: 'string';
|
|
393
506
|
};
|
|
394
507
|
};
|
|
@@ -401,17 +514,21 @@ export declare const HOUSE_MODEL_DECLARATION: {
|
|
|
401
514
|
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
515
|
readonly properties: {
|
|
403
516
|
readonly description: {
|
|
517
|
+
readonly title: 'Description';
|
|
404
518
|
readonly type: 'string';
|
|
405
519
|
readonly maxLength: 2000;
|
|
406
520
|
readonly pattern: '\\S';
|
|
407
521
|
};
|
|
408
522
|
readonly input: {
|
|
523
|
+
readonly title: 'Input';
|
|
409
524
|
readonly type: 'string';
|
|
410
525
|
};
|
|
411
526
|
readonly agent: {
|
|
527
|
+
readonly title: 'Agent';
|
|
412
528
|
readonly $ref: '#/$defs/id';
|
|
413
529
|
};
|
|
414
530
|
readonly afk: {
|
|
531
|
+
readonly title: 'AFK';
|
|
415
532
|
readonly type: 'boolean';
|
|
416
533
|
};
|
|
417
534
|
};
|
|
@@ -421,21 +538,26 @@ export declare const HOUSE_MODEL_DECLARATION: {
|
|
|
421
538
|
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
539
|
readonly properties: {
|
|
423
540
|
readonly reflected: {
|
|
541
|
+
readonly title: 'Reflected';
|
|
424
542
|
readonly type: 'string';
|
|
425
543
|
readonly format: 'date-time';
|
|
426
544
|
};
|
|
427
545
|
readonly trigger: {
|
|
546
|
+
readonly title: 'Trigger';
|
|
428
547
|
readonly $ref: '#/$defs/id';
|
|
429
548
|
};
|
|
430
549
|
readonly description: {
|
|
550
|
+
readonly title: 'Description';
|
|
431
551
|
readonly type: 'string';
|
|
432
552
|
};
|
|
433
553
|
readonly condition: {
|
|
554
|
+
readonly title: 'Condition';
|
|
434
555
|
readonly description: 'When it fires, as the Trigger reference page writes it, a document it names at its current path.';
|
|
435
556
|
readonly type: 'object';
|
|
436
557
|
readonly additionalProperties: true;
|
|
437
558
|
};
|
|
438
559
|
readonly actions: {
|
|
560
|
+
readonly title: 'Actions';
|
|
439
561
|
readonly type: 'array';
|
|
440
562
|
readonly items: {
|
|
441
563
|
readonly anyOf: readonly [{
|
|
@@ -443,28 +565,35 @@ export declare const HOUSE_MODEL_DECLARATION: {
|
|
|
443
565
|
readonly additionalProperties: false;
|
|
444
566
|
readonly properties: {
|
|
445
567
|
readonly kind: {
|
|
568
|
+
readonly title: 'Kind';
|
|
446
569
|
readonly const: 'notify';
|
|
447
570
|
};
|
|
448
571
|
readonly enabled: {
|
|
572
|
+
readonly title: 'Enabled';
|
|
449
573
|
readonly type: 'boolean';
|
|
450
574
|
};
|
|
451
575
|
readonly title: {
|
|
576
|
+
readonly title: 'Title';
|
|
452
577
|
readonly type: 'string';
|
|
453
578
|
};
|
|
454
579
|
readonly text: {
|
|
580
|
+
readonly title: 'Text';
|
|
455
581
|
readonly type: 'string';
|
|
456
582
|
};
|
|
457
583
|
readonly to: {
|
|
584
|
+
readonly title: 'To';
|
|
458
585
|
readonly type: 'object';
|
|
459
586
|
readonly additionalProperties: false;
|
|
460
587
|
readonly properties: {
|
|
461
588
|
readonly users: {
|
|
589
|
+
readonly title: 'Users';
|
|
462
590
|
readonly type: 'array';
|
|
463
591
|
readonly items: {
|
|
464
592
|
readonly type: 'object';
|
|
465
593
|
readonly additionalProperties: false;
|
|
466
594
|
readonly properties: {
|
|
467
595
|
readonly user: {
|
|
596
|
+
readonly title: 'User';
|
|
468
597
|
readonly $ref: '#/$defs/id';
|
|
469
598
|
};
|
|
470
599
|
};
|
|
@@ -472,12 +601,14 @@ export declare const HOUSE_MODEL_DECLARATION: {
|
|
|
472
601
|
};
|
|
473
602
|
};
|
|
474
603
|
readonly fields: {
|
|
604
|
+
readonly title: 'Fields';
|
|
475
605
|
readonly type: 'array';
|
|
476
606
|
readonly items: {
|
|
477
607
|
readonly type: 'string';
|
|
478
608
|
};
|
|
479
609
|
};
|
|
480
610
|
readonly roles: {
|
|
611
|
+
readonly title: 'Roles';
|
|
481
612
|
readonly type: 'array';
|
|
482
613
|
readonly items: {
|
|
483
614
|
readonly type: 'string';
|
|
@@ -493,16 +624,20 @@ export declare const HOUSE_MODEL_DECLARATION: {
|
|
|
493
624
|
readonly additionalProperties: false;
|
|
494
625
|
readonly properties: {
|
|
495
626
|
readonly kind: {
|
|
627
|
+
readonly title: 'Kind';
|
|
496
628
|
readonly const: 'agent_function';
|
|
497
629
|
};
|
|
498
630
|
readonly enabled: {
|
|
631
|
+
readonly title: 'Enabled';
|
|
499
632
|
readonly type: 'boolean';
|
|
500
633
|
};
|
|
501
634
|
readonly card: {
|
|
635
|
+
readonly title: 'Card';
|
|
502
636
|
readonly type: 'string';
|
|
503
637
|
readonly minLength: 1;
|
|
504
638
|
};
|
|
505
639
|
readonly payload: {
|
|
640
|
+
readonly title: 'Payload';
|
|
506
641
|
readonly type: 'string';
|
|
507
642
|
};
|
|
508
643
|
};
|
|
@@ -512,16 +647,20 @@ export declare const HOUSE_MODEL_DECLARATION: {
|
|
|
512
647
|
readonly additionalProperties: false;
|
|
513
648
|
readonly properties: {
|
|
514
649
|
readonly kind: {
|
|
650
|
+
readonly title: 'Kind';
|
|
515
651
|
readonly const: 'message';
|
|
516
652
|
};
|
|
517
653
|
readonly enabled: {
|
|
654
|
+
readonly title: 'Enabled';
|
|
518
655
|
readonly type: 'boolean';
|
|
519
656
|
};
|
|
520
657
|
readonly card: {
|
|
658
|
+
readonly title: 'Card';
|
|
521
659
|
readonly type: 'string';
|
|
522
660
|
readonly minLength: 1;
|
|
523
661
|
};
|
|
524
662
|
readonly text: {
|
|
663
|
+
readonly title: 'Text';
|
|
525
664
|
readonly type: 'string';
|
|
526
665
|
};
|
|
527
666
|
};
|
|
@@ -531,9 +670,11 @@ export declare const HOUSE_MODEL_DECLARATION: {
|
|
|
531
670
|
readonly additionalProperties: false;
|
|
532
671
|
readonly properties: {
|
|
533
672
|
readonly kind: {
|
|
673
|
+
readonly title: 'Kind';
|
|
534
674
|
readonly const: 'done';
|
|
535
675
|
};
|
|
536
676
|
readonly enabled: {
|
|
677
|
+
readonly title: 'Enabled';
|
|
537
678
|
readonly type: 'boolean';
|
|
538
679
|
};
|
|
539
680
|
};
|
|
@@ -543,15 +684,19 @@ export declare const HOUSE_MODEL_DECLARATION: {
|
|
|
543
684
|
readonly additionalProperties: false;
|
|
544
685
|
readonly properties: {
|
|
545
686
|
readonly kind: {
|
|
687
|
+
readonly title: 'Kind';
|
|
546
688
|
readonly const: 'function';
|
|
547
689
|
};
|
|
548
690
|
readonly enabled: {
|
|
691
|
+
readonly title: 'Enabled';
|
|
549
692
|
readonly type: 'boolean';
|
|
550
693
|
};
|
|
551
694
|
readonly app: {
|
|
695
|
+
readonly title: 'App';
|
|
552
696
|
readonly $ref: '#/$defs/app';
|
|
553
697
|
};
|
|
554
698
|
readonly function: {
|
|
699
|
+
readonly title: 'Function';
|
|
555
700
|
readonly type: 'string';
|
|
556
701
|
};
|
|
557
702
|
};
|
|
@@ -560,25 +705,31 @@ export declare const HOUSE_MODEL_DECLARATION: {
|
|
|
560
705
|
};
|
|
561
706
|
};
|
|
562
707
|
readonly enabled: {
|
|
708
|
+
readonly title: 'Enabled';
|
|
563
709
|
readonly type: 'boolean';
|
|
564
710
|
};
|
|
565
711
|
readonly paused_by: {
|
|
712
|
+
readonly title: 'Paused by';
|
|
566
713
|
readonly enum: readonly ['types'];
|
|
567
714
|
};
|
|
568
715
|
readonly creator: {
|
|
716
|
+
readonly title: 'Creator';
|
|
569
717
|
readonly type: 'object';
|
|
570
718
|
readonly additionalProperties: false;
|
|
571
719
|
readonly properties: {
|
|
572
720
|
readonly user: {
|
|
721
|
+
readonly title: 'User';
|
|
573
722
|
readonly $ref: '#/$defs/id';
|
|
574
723
|
};
|
|
575
724
|
readonly name: {
|
|
725
|
+
readonly title: 'Name';
|
|
576
726
|
readonly type: 'string';
|
|
577
727
|
};
|
|
578
728
|
};
|
|
579
729
|
readonly required: readonly ['user', 'name'];
|
|
580
730
|
};
|
|
581
731
|
readonly created: {
|
|
732
|
+
readonly title: 'Created';
|
|
582
733
|
readonly type: 'string';
|
|
583
734
|
readonly format: 'date-time';
|
|
584
735
|
};
|
|
@@ -589,32 +740,40 @@ export declare const HOUSE_MODEL_DECLARATION: {
|
|
|
589
740
|
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
741
|
readonly properties: {
|
|
591
742
|
readonly reflected: {
|
|
743
|
+
readonly title: 'Reflected';
|
|
592
744
|
readonly type: 'string';
|
|
593
745
|
readonly format: 'date-time';
|
|
594
746
|
};
|
|
595
747
|
readonly web_wizard: {
|
|
748
|
+
readonly title: 'Web Wizard';
|
|
596
749
|
readonly $ref: '#/$defs/id';
|
|
597
750
|
};
|
|
598
751
|
readonly environment: {
|
|
752
|
+
readonly title: 'Environment';
|
|
599
753
|
readonly type: 'object';
|
|
600
754
|
readonly additionalProperties: false;
|
|
601
755
|
readonly properties: {
|
|
602
756
|
readonly environment: {
|
|
757
|
+
readonly title: 'Environment';
|
|
603
758
|
readonly $ref: '#/$defs/id';
|
|
604
759
|
};
|
|
605
760
|
readonly name: {
|
|
761
|
+
readonly title: 'Name';
|
|
606
762
|
readonly type: 'string';
|
|
607
763
|
};
|
|
608
764
|
};
|
|
609
765
|
readonly required: readonly ['environment', 'name'];
|
|
610
766
|
};
|
|
611
767
|
readonly state: {
|
|
768
|
+
readonly title: 'State';
|
|
612
769
|
readonly enum: readonly ['waiting', 'running', 'finished', 'failed', 'cancelled', 'lapsed', 'kept'];
|
|
613
770
|
};
|
|
614
771
|
readonly exit_code: {
|
|
772
|
+
readonly title: 'Exit code';
|
|
615
773
|
readonly type: 'integer';
|
|
616
774
|
};
|
|
617
775
|
readonly function: {
|
|
776
|
+
readonly title: 'Function';
|
|
618
777
|
readonly type: 'string';
|
|
619
778
|
};
|
|
620
779
|
};
|
|
@@ -641,7 +800,7 @@ type Properties<S> = S extends {
|
|
|
641
800
|
}> : S extends {
|
|
642
801
|
readonly additionalProperties: false;
|
|
643
802
|
} ? Readonly<Record<string, never>> : Readonly<Record<string, unknown>>;
|
|
644
|
-
type Typed<T, S> = T extends 'string' ? string : T extends 'integer'
|
|
803
|
+
type Typed<T, S> = T extends 'string' ? string : T extends 'integer' ? number : T extends 'boolean' ? boolean : T extends 'array' ? readonly (S extends {
|
|
645
804
|
readonly items: infer I;
|
|
646
805
|
} ? Value<I> : unknown)[] : T extends 'object' ? Properties<S> : never;
|
|
647
806
|
type Value<S> = S extends {
|
|
@@ -669,4 +828,3 @@ export type HouseDocumentFields<Type extends HouseModelType> = Properties<{
|
|
|
669
828
|
readonly required: readonly ('type' | Needed<Model[Type]>)[];
|
|
670
829
|
}>;
|
|
671
830
|
export {};
|
|
672
|
-
//# sourceMappingURL=house-model.d.ts.map
|