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