@agentshouse/mdruntime-adapter 0.1.0-cc449e4611fbd → 0.1.0-cc65657e82614
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 +2 -2
- 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 +72 -88
- 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 +37 -0
- package/dist/chunks.d.ts.map +1 -0
- package/dist/chunks.js +247 -0
- package/dist/crockford.d.ts +0 -1
- package/dist/digest.d.ts +0 -1
- package/dist/discovery.d.ts +11 -6
- package/dist/discovery.d.ts.map +1 -1
- package/dist/discovery.js +39 -13
- package/dist/history.d.ts +1 -7
- package/dist/history.d.ts.map +1 -1
- package/dist/history.js +19 -27
- package/dist/house-model.d.ts +252 -314
- package/dist/house-model.d.ts.map +1 -1
- package/dist/house-model.js +234 -251
- package/dist/index.d.ts +5 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -2
- package/dist/map.d.ts +0 -1
- package/dist/model.d.ts +5 -8
- package/dist/model.d.ts.map +1 -1
- package/dist/model.js +30 -18
- package/dist/read.d.ts +19 -14
- package/dist/read.d.ts.map +1 -1
- package/dist/read.js +46 -169
- 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 +50 -40
- package/dist/search.d.ts +0 -1
- package/dist/search.js +1 -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 +38 -50
- package/dist/space-schema.d.ts +6 -0
- package/dist/space-schema.d.ts.map +1 -0
- package/dist/space-schema.js +18 -0
- package/dist/stream.d.ts +6 -5
- package/dist/stream.d.ts.map +1 -1
- package/dist/stream.js +131 -42
- package/dist/transport.d.ts +24 -23
- package/dist/transport.d.ts.map +1 -1
- package/dist/transport.js +13 -14
- 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 +4 -11
- package/package.json +2 -2
- package/dist/part.d.ts +0 -14
- package/dist/part.d.ts.map +0 -1
- package/dist/part.js +0 -90
- package/dist/room-stream.d.ts +0 -20
- package/dist/room-stream.d.ts.map +0 -1
- package/dist/room-stream.js +0 -78
package/dist/house-model.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TypedPath } from '@agentshouse/mdruntime';
|
|
1
2
|
export declare const HOUSE_MODEL_DECLARATION: {
|
|
2
3
|
readonly $defs: {
|
|
3
4
|
readonly room: {
|
|
@@ -10,121 +11,93 @@ export declare const HOUSE_MODEL_DECLARATION: {
|
|
|
10
11
|
readonly type: 'string';
|
|
11
12
|
readonly pattern: '^a_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$';
|
|
12
13
|
};
|
|
13
|
-
readonly
|
|
14
|
-
readonly description: 'A
|
|
14
|
+
readonly space: {
|
|
15
|
+
readonly description: 'A Space, by its Space reference, under the key `space`.';
|
|
15
16
|
readonly type: 'string';
|
|
16
|
-
readonly pattern: '^
|
|
17
|
+
readonly pattern: '^sp_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$';
|
|
17
18
|
};
|
|
18
19
|
readonly id: {
|
|
19
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.';
|
|
20
21
|
readonly type: 'string';
|
|
21
22
|
readonly format: 'uuid';
|
|
22
23
|
};
|
|
23
|
-
readonly namespace: {
|
|
24
|
-
readonly description: 'The Namespace a grant entry covers, an App or a Room by its reference with the area of it.';
|
|
25
|
-
readonly type: 'string';
|
|
26
|
-
readonly maxLength: 512;
|
|
27
|
-
readonly pattern: '^(?:a_[A-Za-z0-9._-]+(?:\\/source)?|r_[A-Za-z0-9._-]+(?:\\/(?:settings|settings\\/schema|settings\\/model|settings\\/indexing|content))?)$';
|
|
28
|
-
};
|
|
29
|
-
readonly trigger_test: {
|
|
30
|
-
readonly description: 'One test of a Trigger condition as the Trigger reference page writes one, a value compared at a `path` or `all`, `any` or `not` of tests.';
|
|
31
|
-
readonly type: 'object';
|
|
32
|
-
readonly additionalProperties: true;
|
|
33
|
-
};
|
|
34
|
-
readonly trigger_values: {
|
|
35
|
-
readonly type: 'array';
|
|
36
|
-
readonly items: {
|
|
37
|
-
readonly anyOf: readonly [{
|
|
38
|
-
readonly type: 'string';
|
|
39
|
-
}, {
|
|
40
|
-
readonly type: 'number';
|
|
41
|
-
}, {
|
|
42
|
-
readonly type: 'boolean';
|
|
43
|
-
}];
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
readonly trigger_scope: {
|
|
47
|
-
readonly description: 'The documents a Trigger condition watches, by `type`, by `folder` or one document at its `path`, which `create_trigger` takes as `document`.';
|
|
48
|
-
readonly type: 'object';
|
|
49
|
-
readonly additionalProperties: false;
|
|
50
|
-
readonly properties: {
|
|
51
|
-
readonly type: {
|
|
52
|
-
readonly type: 'string';
|
|
53
|
-
};
|
|
54
|
-
readonly folder: {
|
|
55
|
-
readonly type: 'string';
|
|
56
|
-
};
|
|
57
|
-
readonly path: {
|
|
58
|
-
readonly type: 'string';
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
readonly minProperties: 1;
|
|
62
|
-
readonly maxProperties: 1;
|
|
63
|
-
};
|
|
64
24
|
};
|
|
65
25
|
readonly 'house-app-preferences': {
|
|
66
26
|
readonly description: "An App's preferences. Its own vocabulary is in the body.";
|
|
67
27
|
readonly properties: {
|
|
68
28
|
readonly app: {
|
|
29
|
+
readonly title: 'App';
|
|
69
30
|
readonly $ref: '#/$defs/app';
|
|
70
31
|
};
|
|
71
32
|
};
|
|
72
33
|
readonly required: readonly ['app'];
|
|
73
34
|
};
|
|
74
35
|
readonly 'house-notification': {
|
|
75
|
-
readonly description: "One kept
|
|
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.";
|
|
76
37
|
readonly properties: {
|
|
77
38
|
readonly notification: {
|
|
39
|
+
readonly title: 'Notification';
|
|
78
40
|
readonly $ref: '#/$defs/id';
|
|
79
41
|
};
|
|
80
42
|
readonly kind: {
|
|
43
|
+
readonly title: 'Kind';
|
|
81
44
|
readonly type: 'string';
|
|
82
|
-
readonly enum: readonly ['share-offer', 'join-request', 'join-request-approved', '
|
|
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'];
|
|
83
46
|
};
|
|
84
47
|
readonly created: {
|
|
48
|
+
readonly title: 'Created';
|
|
49
|
+
readonly type: 'string';
|
|
50
|
+
readonly format: 'date-time';
|
|
51
|
+
};
|
|
52
|
+
readonly read: {
|
|
53
|
+
readonly title: 'Read';
|
|
85
54
|
readonly type: 'string';
|
|
86
55
|
readonly format: 'date-time';
|
|
87
56
|
};
|
|
88
57
|
readonly way_in: {
|
|
58
|
+
readonly title: 'Way in';
|
|
89
59
|
readonly type: 'object';
|
|
90
60
|
readonly additionalProperties: false;
|
|
91
61
|
readonly properties: {
|
|
92
62
|
readonly path: {
|
|
63
|
+
readonly title: 'Path';
|
|
93
64
|
readonly type: 'string';
|
|
94
65
|
readonly pattern: '^\\/';
|
|
95
66
|
};
|
|
96
67
|
readonly room: {
|
|
68
|
+
readonly title: 'Room';
|
|
97
69
|
readonly $ref: '#/$defs/room';
|
|
98
70
|
};
|
|
99
|
-
readonly app: {
|
|
100
|
-
readonly $ref: '#/$defs/app';
|
|
101
|
-
};
|
|
102
71
|
readonly environment: {
|
|
72
|
+
readonly title: 'Environment';
|
|
103
73
|
readonly $ref: '#/$defs/id';
|
|
104
74
|
};
|
|
105
75
|
readonly trigger: {
|
|
106
|
-
readonly
|
|
107
|
-
};
|
|
108
|
-
readonly site: {
|
|
76
|
+
readonly title: 'Trigger';
|
|
109
77
|
readonly $ref: '#/$defs/id';
|
|
110
78
|
};
|
|
111
79
|
};
|
|
112
80
|
readonly minProperties: 1;
|
|
113
81
|
};
|
|
114
82
|
readonly subject: {
|
|
83
|
+
readonly title: 'Subject';
|
|
115
84
|
readonly type: 'string';
|
|
116
85
|
};
|
|
117
86
|
readonly share: {
|
|
87
|
+
readonly title: 'Share';
|
|
118
88
|
readonly $ref: '#/$defs/id';
|
|
119
89
|
};
|
|
120
90
|
readonly issuer: {
|
|
91
|
+
readonly title: 'Issuer';
|
|
121
92
|
readonly type: 'object';
|
|
122
93
|
readonly additionalProperties: false;
|
|
123
94
|
readonly properties: {
|
|
124
95
|
readonly name: {
|
|
96
|
+
readonly title: 'Name';
|
|
125
97
|
readonly type: 'string';
|
|
126
98
|
};
|
|
127
99
|
readonly email: {
|
|
100
|
+
readonly title: 'Email';
|
|
128
101
|
readonly type: 'string';
|
|
129
102
|
readonly format: 'email';
|
|
130
103
|
};
|
|
@@ -132,12 +105,14 @@ export declare const HOUSE_MODEL_DECLARATION: {
|
|
|
132
105
|
readonly required: readonly ['name', 'email'];
|
|
133
106
|
};
|
|
134
107
|
readonly rooms: {
|
|
108
|
+
readonly title: 'Rooms';
|
|
135
109
|
readonly type: 'array';
|
|
136
110
|
readonly items: {
|
|
137
111
|
readonly type: 'object';
|
|
138
112
|
readonly additionalProperties: false;
|
|
139
113
|
readonly properties: {
|
|
140
114
|
readonly name: {
|
|
115
|
+
readonly title: 'Name';
|
|
141
116
|
readonly type: 'string';
|
|
142
117
|
};
|
|
143
118
|
};
|
|
@@ -145,18 +120,20 @@ export declare const HOUSE_MODEL_DECLARATION: {
|
|
|
145
120
|
};
|
|
146
121
|
};
|
|
147
122
|
readonly apps: {
|
|
148
|
-
readonly
|
|
123
|
+
readonly title: 'Apps';
|
|
149
124
|
readonly type: 'array';
|
|
150
125
|
readonly items: {
|
|
151
126
|
readonly type: 'object';
|
|
152
127
|
readonly additionalProperties: false;
|
|
153
128
|
readonly properties: {
|
|
154
129
|
readonly name: {
|
|
130
|
+
readonly title: 'Name';
|
|
155
131
|
readonly type: 'string';
|
|
156
132
|
readonly minLength: 1;
|
|
157
133
|
readonly maxLength: 200;
|
|
158
134
|
};
|
|
159
135
|
readonly reaches: {
|
|
136
|
+
readonly title: 'Reaches';
|
|
160
137
|
readonly type: 'array';
|
|
161
138
|
readonly items: {
|
|
162
139
|
readonly type: 'string';
|
|
@@ -168,93 +145,102 @@ export declare const HOUSE_MODEL_DECLARATION: {
|
|
|
168
145
|
readonly required: readonly ['name', 'reaches'];
|
|
169
146
|
};
|
|
170
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
|
+
};
|
|
171
163
|
readonly expires_at: {
|
|
164
|
+
readonly title: 'Expires at';
|
|
172
165
|
readonly type: 'string';
|
|
173
166
|
readonly format: 'date-time';
|
|
174
167
|
};
|
|
175
168
|
readonly join_request: {
|
|
169
|
+
readonly title: 'Join request';
|
|
176
170
|
readonly $ref: '#/$defs/id';
|
|
177
171
|
};
|
|
178
172
|
readonly user: {
|
|
173
|
+
readonly title: 'User';
|
|
179
174
|
readonly type: 'object';
|
|
180
175
|
readonly additionalProperties: false;
|
|
181
176
|
readonly properties: {
|
|
182
177
|
readonly name: {
|
|
178
|
+
readonly title: 'Name';
|
|
183
179
|
readonly type: 'string';
|
|
184
180
|
};
|
|
185
181
|
readonly email: {
|
|
182
|
+
readonly title: 'Email';
|
|
186
183
|
readonly type: 'string';
|
|
187
184
|
readonly format: 'email';
|
|
188
185
|
};
|
|
189
186
|
};
|
|
190
|
-
readonly required: readonly ['name'
|
|
187
|
+
readonly required: readonly ['name'];
|
|
191
188
|
};
|
|
192
189
|
readonly room: {
|
|
190
|
+
readonly title: 'Room';
|
|
193
191
|
readonly type: 'object';
|
|
194
192
|
readonly additionalProperties: false;
|
|
195
193
|
readonly properties: {
|
|
196
194
|
readonly room: {
|
|
195
|
+
readonly title: 'Room';
|
|
197
196
|
readonly $ref: '#/$defs/room';
|
|
198
197
|
};
|
|
199
198
|
readonly name: {
|
|
199
|
+
readonly title: 'Name';
|
|
200
200
|
readonly type: 'string';
|
|
201
201
|
};
|
|
202
202
|
};
|
|
203
203
|
readonly minProperties: 1;
|
|
204
204
|
};
|
|
205
205
|
readonly app: {
|
|
206
|
+
readonly title: 'App';
|
|
206
207
|
readonly type: 'object';
|
|
207
208
|
readonly additionalProperties: false;
|
|
208
209
|
readonly properties: {
|
|
209
210
|
readonly app: {
|
|
211
|
+
readonly title: 'App';
|
|
210
212
|
readonly $ref: '#/$defs/app';
|
|
211
213
|
};
|
|
212
|
-
readonly name: {
|
|
213
|
-
readonly type: 'string';
|
|
214
|
-
};
|
|
215
|
-
};
|
|
216
|
-
readonly minProperties: 1;
|
|
217
|
-
};
|
|
218
|
-
readonly release: {
|
|
219
|
-
readonly type: 'integer';
|
|
220
|
-
readonly minimum: 1;
|
|
221
|
-
};
|
|
222
|
-
readonly binding: {
|
|
223
|
-
readonly $ref: '#/$defs/id';
|
|
224
|
-
};
|
|
225
|
-
readonly slot: {
|
|
226
|
-
readonly type: 'string';
|
|
227
|
-
};
|
|
228
|
-
readonly findings: {
|
|
229
|
-
readonly type: 'array';
|
|
230
|
-
readonly items: {
|
|
231
|
-
readonly type: 'string';
|
|
232
214
|
};
|
|
215
|
+
readonly required: readonly ['app'];
|
|
233
216
|
};
|
|
234
|
-
readonly
|
|
217
|
+
readonly space: {
|
|
218
|
+
readonly title: 'Space';
|
|
235
219
|
readonly type: 'object';
|
|
236
220
|
readonly additionalProperties: false;
|
|
237
221
|
readonly properties: {
|
|
238
|
-
readonly
|
|
239
|
-
readonly
|
|
240
|
-
|
|
241
|
-
readonly name: {
|
|
242
|
-
readonly type: 'string';
|
|
222
|
+
readonly space: {
|
|
223
|
+
readonly title: 'Space';
|
|
224
|
+
readonly $ref: '#/$defs/space';
|
|
243
225
|
};
|
|
244
226
|
};
|
|
245
|
-
readonly required: readonly ['
|
|
227
|
+
readonly required: readonly ['space'];
|
|
246
228
|
};
|
|
247
229
|
readonly ownership_offer: {
|
|
230
|
+
readonly title: 'Ownership offer';
|
|
248
231
|
readonly $ref: '#/$defs/id';
|
|
249
232
|
};
|
|
250
233
|
readonly offerer: {
|
|
234
|
+
readonly title: 'Offerer';
|
|
251
235
|
readonly type: 'object';
|
|
252
236
|
readonly additionalProperties: false;
|
|
253
237
|
readonly properties: {
|
|
254
238
|
readonly name: {
|
|
239
|
+
readonly title: 'Name';
|
|
255
240
|
readonly type: 'string';
|
|
256
241
|
};
|
|
257
242
|
readonly email: {
|
|
243
|
+
readonly title: 'Email';
|
|
258
244
|
readonly type: 'string';
|
|
259
245
|
readonly format: 'email';
|
|
260
246
|
};
|
|
@@ -262,185 +248,221 @@ export declare const HOUSE_MODEL_DECLARATION: {
|
|
|
262
248
|
readonly required: readonly ['name', 'email'];
|
|
263
249
|
};
|
|
264
250
|
readonly environment: {
|
|
251
|
+
readonly title: 'Environment';
|
|
265
252
|
readonly type: 'object';
|
|
266
253
|
readonly additionalProperties: false;
|
|
267
254
|
readonly properties: {
|
|
268
255
|
readonly environment: {
|
|
256
|
+
readonly title: 'Environment';
|
|
269
257
|
readonly $ref: '#/$defs/id';
|
|
270
258
|
};
|
|
271
259
|
readonly name: {
|
|
260
|
+
readonly title: 'Name';
|
|
272
261
|
readonly type: 'string';
|
|
273
262
|
};
|
|
274
263
|
readonly kind: {
|
|
264
|
+
readonly title: 'Kind';
|
|
275
265
|
readonly enum: readonly ['vps', 'sandbox'];
|
|
276
266
|
};
|
|
277
267
|
};
|
|
278
268
|
readonly required: readonly ['environment', 'name'];
|
|
279
269
|
};
|
|
280
270
|
readonly reason: {
|
|
271
|
+
readonly title: 'Reason';
|
|
281
272
|
readonly type: 'string';
|
|
282
273
|
};
|
|
283
274
|
readonly deadline: {
|
|
275
|
+
readonly title: 'Deadline';
|
|
284
276
|
readonly type: 'string';
|
|
285
277
|
readonly format: 'date-time';
|
|
286
278
|
};
|
|
287
|
-
readonly operation_kind: {
|
|
288
|
-
readonly type: 'string';
|
|
289
|
-
};
|
|
290
279
|
readonly free: {
|
|
280
|
+
readonly title: 'Free';
|
|
291
281
|
readonly type: 'object';
|
|
292
282
|
readonly additionalProperties: false;
|
|
293
283
|
readonly properties: {
|
|
294
284
|
readonly held: {
|
|
285
|
+
readonly title: 'Held';
|
|
295
286
|
readonly type: 'string';
|
|
296
287
|
readonly pattern: '^\\d+$';
|
|
297
288
|
};
|
|
298
289
|
readonly limit: {
|
|
290
|
+
readonly title: 'Limit';
|
|
299
291
|
readonly type: 'string';
|
|
300
292
|
readonly pattern: '^[1-9]\\d*$';
|
|
301
293
|
};
|
|
302
294
|
readonly measure: {
|
|
295
|
+
readonly title: 'Measure';
|
|
303
296
|
readonly type: 'string';
|
|
304
297
|
readonly enum: readonly ['content', 'retained'];
|
|
305
298
|
};
|
|
306
299
|
};
|
|
307
300
|
readonly required: readonly ['held', 'limit', 'measure'];
|
|
308
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
|
+
};
|
|
309
314
|
readonly budget: {
|
|
315
|
+
readonly title: 'Budget';
|
|
310
316
|
readonly type: 'string';
|
|
311
317
|
readonly pattern: '^\\d+(?:\\.\\d+)?$';
|
|
312
318
|
};
|
|
313
319
|
readonly resets_at: {
|
|
320
|
+
readonly title: 'Resets at';
|
|
314
321
|
readonly type: 'string';
|
|
315
322
|
readonly format: 'date-time';
|
|
316
323
|
};
|
|
317
324
|
readonly grant: {
|
|
325
|
+
readonly title: 'Grant';
|
|
318
326
|
readonly $ref: '#/$defs/id';
|
|
319
327
|
};
|
|
320
328
|
readonly category: {
|
|
329
|
+
readonly title: 'Category';
|
|
321
330
|
readonly type: 'string';
|
|
322
331
|
};
|
|
323
332
|
readonly access_started_at: {
|
|
333
|
+
readonly title: 'Access started at';
|
|
324
334
|
readonly type: 'string';
|
|
325
335
|
readonly format: 'date-time';
|
|
326
336
|
};
|
|
327
337
|
readonly access_ended_at: {
|
|
338
|
+
readonly title: 'Access ended at';
|
|
328
339
|
readonly type: 'string';
|
|
329
340
|
readonly format: 'date-time';
|
|
330
341
|
};
|
|
331
342
|
readonly systems: {
|
|
343
|
+
readonly title: 'Systems';
|
|
332
344
|
readonly type: 'array';
|
|
333
345
|
readonly items: {
|
|
334
346
|
readonly type: 'string';
|
|
335
347
|
};
|
|
336
348
|
};
|
|
337
349
|
readonly case_reference: {
|
|
350
|
+
readonly title: 'Case reference';
|
|
338
351
|
readonly type: 'string';
|
|
339
352
|
};
|
|
340
|
-
readonly
|
|
353
|
+
readonly export: {
|
|
354
|
+
readonly title: 'Export';
|
|
341
355
|
readonly $ref: '#/$defs/id';
|
|
342
356
|
};
|
|
343
|
-
readonly
|
|
344
|
-
readonly
|
|
345
|
-
readonly
|
|
346
|
-
readonly
|
|
347
|
-
readonly name: {
|
|
348
|
-
readonly type: 'string';
|
|
349
|
-
};
|
|
350
|
-
};
|
|
351
|
-
readonly required: readonly ['name'];
|
|
357
|
+
readonly size_bytes: {
|
|
358
|
+
readonly title: 'Size in bytes';
|
|
359
|
+
readonly type: 'integer';
|
|
360
|
+
readonly minimum: 0;
|
|
352
361
|
};
|
|
353
|
-
readonly
|
|
354
|
-
readonly
|
|
355
|
-
readonly
|
|
356
|
-
readonly properties: {
|
|
357
|
-
readonly agent: {
|
|
358
|
-
readonly $ref: '#/$defs/id';
|
|
359
|
-
};
|
|
360
|
-
readonly name: {
|
|
361
|
-
readonly type: 'string';
|
|
362
|
-
};
|
|
363
|
-
};
|
|
364
|
-
readonly required: readonly ['name'];
|
|
362
|
+
readonly title: {
|
|
363
|
+
readonly title: 'Title';
|
|
364
|
+
readonly type: 'string';
|
|
365
365
|
};
|
|
366
|
-
readonly
|
|
367
|
-
readonly
|
|
366
|
+
readonly body: {
|
|
367
|
+
readonly title: 'Body';
|
|
368
|
+
readonly type: 'string';
|
|
368
369
|
};
|
|
369
|
-
readonly
|
|
370
|
+
readonly authorship: {
|
|
371
|
+
readonly title: 'Authorship';
|
|
370
372
|
readonly type: 'object';
|
|
371
373
|
readonly additionalProperties: false;
|
|
372
374
|
readonly properties: {
|
|
373
|
-
readonly
|
|
375
|
+
readonly kind: {
|
|
376
|
+
readonly title: 'Kind';
|
|
374
377
|
readonly type: 'string';
|
|
378
|
+
readonly const: 'trigger-action';
|
|
375
379
|
};
|
|
376
|
-
readonly
|
|
380
|
+
readonly trigger: {
|
|
381
|
+
readonly title: 'Trigger';
|
|
382
|
+
readonly $ref: '#/$defs/id';
|
|
383
|
+
};
|
|
384
|
+
readonly position: {
|
|
385
|
+
readonly title: 'Position';
|
|
377
386
|
readonly type: 'integer';
|
|
378
|
-
readonly minimum:
|
|
387
|
+
readonly minimum: 0;
|
|
379
388
|
};
|
|
380
389
|
};
|
|
381
|
-
readonly required: readonly ['
|
|
382
|
-
};
|
|
383
|
-
readonly export: {
|
|
384
|
-
readonly $ref: '#/$defs/id';
|
|
390
|
+
readonly required: readonly ['kind', 'trigger', 'position'];
|
|
385
391
|
};
|
|
386
|
-
readonly
|
|
387
|
-
readonly
|
|
388
|
-
readonly
|
|
392
|
+
readonly path: {
|
|
393
|
+
readonly title: 'Path';
|
|
394
|
+
readonly type: 'string';
|
|
395
|
+
readonly maxLength: 4096;
|
|
396
|
+
readonly pattern: '^\\/.*';
|
|
389
397
|
};
|
|
390
|
-
readonly
|
|
398
|
+
readonly trigger: {
|
|
399
|
+
readonly title: 'Trigger';
|
|
391
400
|
readonly type: 'object';
|
|
392
401
|
readonly additionalProperties: false;
|
|
393
402
|
readonly properties: {
|
|
394
|
-
readonly
|
|
403
|
+
readonly trigger: {
|
|
404
|
+
readonly title: 'Trigger';
|
|
395
405
|
readonly $ref: '#/$defs/id';
|
|
396
406
|
};
|
|
397
|
-
readonly
|
|
407
|
+
readonly description: {
|
|
408
|
+
readonly title: 'Description';
|
|
398
409
|
readonly type: 'string';
|
|
399
410
|
};
|
|
400
411
|
};
|
|
401
|
-
readonly required: readonly ['
|
|
412
|
+
readonly required: readonly ['trigger', 'description'];
|
|
402
413
|
};
|
|
403
|
-
readonly
|
|
414
|
+
readonly code: {
|
|
415
|
+
readonly title: 'Code';
|
|
404
416
|
readonly type: 'string';
|
|
405
|
-
readonly
|
|
406
|
-
readonly format: 'uri';
|
|
417
|
+
readonly enum: readonly ['failed', 'function_failed', 'function_not_started', 'agent_function_request_not_started'];
|
|
407
418
|
};
|
|
408
|
-
readonly
|
|
419
|
+
readonly action: {
|
|
420
|
+
readonly title: 'Action';
|
|
409
421
|
readonly type: 'integer';
|
|
410
422
|
readonly minimum: 0;
|
|
411
423
|
};
|
|
412
|
-
readonly
|
|
413
|
-
readonly
|
|
414
|
-
readonly minimum: 0;
|
|
415
|
-
};
|
|
416
|
-
readonly title: {
|
|
424
|
+
readonly moment: {
|
|
425
|
+
readonly title: 'Moment';
|
|
417
426
|
readonly type: 'string';
|
|
427
|
+
readonly format: 'date-time';
|
|
418
428
|
};
|
|
419
|
-
readonly
|
|
429
|
+
readonly error: {
|
|
430
|
+
readonly title: 'Error';
|
|
420
431
|
readonly type: 'string';
|
|
421
432
|
};
|
|
422
|
-
readonly
|
|
433
|
+
readonly agent_function: {
|
|
434
|
+
readonly title: 'Agent function';
|
|
423
435
|
readonly type: 'object';
|
|
424
436
|
readonly additionalProperties: false;
|
|
425
437
|
readonly properties: {
|
|
426
|
-
readonly
|
|
438
|
+
readonly name: {
|
|
439
|
+
readonly title: 'Name';
|
|
427
440
|
readonly type: 'string';
|
|
428
|
-
readonly const: 'trigger-action';
|
|
429
441
|
};
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
442
|
+
};
|
|
443
|
+
readonly required: readonly ['name'];
|
|
444
|
+
};
|
|
445
|
+
readonly agent: {
|
|
446
|
+
readonly title: 'Agent';
|
|
447
|
+
readonly type: 'object';
|
|
448
|
+
readonly additionalProperties: false;
|
|
449
|
+
readonly properties: {
|
|
450
|
+
readonly name: {
|
|
451
|
+
readonly title: 'Name';
|
|
452
|
+
readonly type: 'string';
|
|
436
453
|
};
|
|
437
454
|
};
|
|
438
|
-
readonly required: readonly ['
|
|
455
|
+
readonly required: readonly ['name'];
|
|
439
456
|
};
|
|
440
|
-
readonly
|
|
457
|
+
readonly ended: {
|
|
458
|
+
readonly title: 'Ended';
|
|
441
459
|
readonly type: 'string';
|
|
442
|
-
readonly
|
|
443
|
-
|
|
460
|
+
readonly enum: readonly ['finished', 'failed'];
|
|
461
|
+
};
|
|
462
|
+
readonly duration: {
|
|
463
|
+
readonly title: 'Duration';
|
|
464
|
+
readonly type: 'integer';
|
|
465
|
+
readonly minimum: 1;
|
|
444
466
|
};
|
|
445
467
|
};
|
|
446
468
|
readonly required: readonly ['notification', 'kind', 'created', 'way_in', 'subject'];
|
|
@@ -449,214 +471,93 @@ export declare const HOUSE_MODEL_DECLARATION: {
|
|
|
449
471
|
readonly description: "The panel's preferences at /rooms/private/settings/panel.md. Its own vocabulary is in the body.";
|
|
450
472
|
readonly properties: {};
|
|
451
473
|
};
|
|
452
|
-
readonly 'house-
|
|
453
|
-
readonly description: "One
|
|
474
|
+
readonly 'house-agent-function': {
|
|
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.";
|
|
454
476
|
readonly properties: {
|
|
455
477
|
readonly reflected: {
|
|
478
|
+
readonly title: 'Reflected';
|
|
456
479
|
readonly type: 'string';
|
|
457
480
|
readonly format: 'date-time';
|
|
458
481
|
};
|
|
459
|
-
readonly
|
|
482
|
+
readonly agent_function: {
|
|
483
|
+
readonly title: 'Agent function';
|
|
460
484
|
readonly $ref: '#/$defs/id';
|
|
461
485
|
};
|
|
462
486
|
readonly description: {
|
|
487
|
+
readonly title: 'Description';
|
|
463
488
|
readonly type: 'string';
|
|
464
489
|
};
|
|
465
490
|
readonly input: {
|
|
491
|
+
readonly title: 'Input';
|
|
466
492
|
readonly type: 'string';
|
|
467
493
|
};
|
|
468
494
|
readonly agent: {
|
|
495
|
+
readonly title: 'Agent';
|
|
469
496
|
readonly type: 'object';
|
|
470
497
|
readonly additionalProperties: false;
|
|
471
498
|
readonly properties: {
|
|
472
499
|
readonly agent: {
|
|
500
|
+
readonly title: 'Agent';
|
|
473
501
|
readonly $ref: '#/$defs/id';
|
|
474
502
|
};
|
|
475
503
|
readonly name: {
|
|
504
|
+
readonly title: 'Name';
|
|
476
505
|
readonly type: 'string';
|
|
477
506
|
};
|
|
478
507
|
};
|
|
479
508
|
readonly required: readonly ['agent', 'name'];
|
|
480
509
|
};
|
|
481
510
|
};
|
|
482
|
-
readonly required: readonly ['reflected', '
|
|
511
|
+
readonly required: readonly ['reflected', 'agent_function', 'description', 'input', 'agent'];
|
|
512
|
+
};
|
|
513
|
+
readonly 'house-agent-function-document': {
|
|
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.';
|
|
515
|
+
readonly properties: {
|
|
516
|
+
readonly description: {
|
|
517
|
+
readonly title: 'Description';
|
|
518
|
+
readonly type: 'string';
|
|
519
|
+
readonly maxLength: 2000;
|
|
520
|
+
readonly pattern: '\\S';
|
|
521
|
+
};
|
|
522
|
+
readonly input: {
|
|
523
|
+
readonly title: 'Input';
|
|
524
|
+
readonly type: 'string';
|
|
525
|
+
};
|
|
526
|
+
readonly agent: {
|
|
527
|
+
readonly title: 'Agent';
|
|
528
|
+
readonly $ref: '#/$defs/id';
|
|
529
|
+
};
|
|
530
|
+
readonly afk: {
|
|
531
|
+
readonly title: 'AFK';
|
|
532
|
+
readonly type: 'boolean';
|
|
533
|
+
};
|
|
534
|
+
};
|
|
535
|
+
readonly required: readonly ['description', 'input', 'agent'];
|
|
483
536
|
};
|
|
484
537
|
readonly 'house-trigger': {
|
|
485
|
-
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`;
|
|
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.";
|
|
486
539
|
readonly properties: {
|
|
487
540
|
readonly reflected: {
|
|
541
|
+
readonly title: 'Reflected';
|
|
488
542
|
readonly type: 'string';
|
|
489
543
|
readonly format: 'date-time';
|
|
490
544
|
};
|
|
491
545
|
readonly trigger: {
|
|
546
|
+
readonly title: 'Trigger';
|
|
492
547
|
readonly $ref: '#/$defs/id';
|
|
493
548
|
};
|
|
494
549
|
readonly description: {
|
|
550
|
+
readonly title: 'Description';
|
|
495
551
|
readonly type: 'string';
|
|
496
552
|
};
|
|
497
553
|
readonly condition: {
|
|
498
|
-
readonly
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
readonly on: {
|
|
503
|
-
readonly const: 'documents';
|
|
504
|
-
};
|
|
505
|
-
readonly scope: {
|
|
506
|
-
readonly $ref: '#/$defs/trigger_scope';
|
|
507
|
-
};
|
|
508
|
-
readonly mode: {
|
|
509
|
-
readonly const: 'starts_matching';
|
|
510
|
-
};
|
|
511
|
-
readonly new_documents: {
|
|
512
|
-
readonly type: 'boolean';
|
|
513
|
-
};
|
|
514
|
-
readonly match: {
|
|
515
|
-
readonly $ref: '#/$defs/trigger_test';
|
|
516
|
-
};
|
|
517
|
-
readonly by: {
|
|
518
|
-
readonly $ref: '#/$defs/trigger_test';
|
|
519
|
-
};
|
|
520
|
-
readonly moved_between_rooms: {
|
|
521
|
-
readonly type: 'boolean';
|
|
522
|
-
};
|
|
523
|
-
};
|
|
524
|
-
readonly required: readonly ['on', 'scope', 'mode', 'new_documents', 'match'];
|
|
525
|
-
}, {
|
|
526
|
-
readonly type: 'object';
|
|
527
|
-
readonly additionalProperties: false;
|
|
528
|
-
readonly properties: {
|
|
529
|
-
readonly on: {
|
|
530
|
-
readonly const: 'documents';
|
|
531
|
-
};
|
|
532
|
-
readonly scope: {
|
|
533
|
-
readonly $ref: '#/$defs/trigger_scope';
|
|
534
|
-
};
|
|
535
|
-
readonly mode: {
|
|
536
|
-
readonly const: 'field_changes';
|
|
537
|
-
};
|
|
538
|
-
readonly field: {
|
|
539
|
-
readonly type: 'string';
|
|
540
|
-
};
|
|
541
|
-
readonly from: {
|
|
542
|
-
readonly anyOf: readonly [{
|
|
543
|
-
readonly $ref: '#/$defs/trigger_values';
|
|
544
|
-
}, {
|
|
545
|
-
readonly const: 'new';
|
|
546
|
-
}];
|
|
547
|
-
};
|
|
548
|
-
readonly to: {
|
|
549
|
-
readonly anyOf: readonly [{
|
|
550
|
-
readonly $ref: '#/$defs/trigger_values';
|
|
551
|
-
}, {
|
|
552
|
-
readonly const: 'deleted';
|
|
553
|
-
}];
|
|
554
|
-
};
|
|
555
|
-
readonly match: {
|
|
556
|
-
readonly $ref: '#/$defs/trigger_test';
|
|
557
|
-
};
|
|
558
|
-
readonly by: {
|
|
559
|
-
readonly $ref: '#/$defs/trigger_test';
|
|
560
|
-
};
|
|
561
|
-
readonly moved_between_rooms: {
|
|
562
|
-
readonly type: 'boolean';
|
|
563
|
-
};
|
|
564
|
-
};
|
|
565
|
-
readonly required: readonly ['on', 'scope', 'mode', 'field'];
|
|
566
|
-
}, {
|
|
567
|
-
readonly type: 'object';
|
|
568
|
-
readonly additionalProperties: false;
|
|
569
|
-
readonly properties: {
|
|
570
|
-
readonly on: {
|
|
571
|
-
readonly const: 'items';
|
|
572
|
-
};
|
|
573
|
-
readonly source: {
|
|
574
|
-
readonly type: 'string';
|
|
575
|
-
};
|
|
576
|
-
readonly address: {
|
|
577
|
-
readonly type: 'string';
|
|
578
|
-
};
|
|
579
|
-
readonly match: {
|
|
580
|
-
readonly $ref: '#/$defs/trigger_test';
|
|
581
|
-
};
|
|
582
|
-
};
|
|
583
|
-
readonly required: readonly ['on'];
|
|
584
|
-
}, {
|
|
585
|
-
readonly type: 'object';
|
|
586
|
-
readonly additionalProperties: false;
|
|
587
|
-
readonly properties: {
|
|
588
|
-
readonly on: {
|
|
589
|
-
readonly const: 'notifications';
|
|
590
|
-
};
|
|
591
|
-
readonly match: {
|
|
592
|
-
readonly $ref: '#/$defs/trigger_test';
|
|
593
|
-
};
|
|
594
|
-
};
|
|
595
|
-
readonly required: readonly ['on'];
|
|
596
|
-
}, {
|
|
597
|
-
readonly type: 'object';
|
|
598
|
-
readonly additionalProperties: false;
|
|
599
|
-
readonly properties: {
|
|
600
|
-
readonly on: {
|
|
601
|
-
readonly const: 'messages';
|
|
602
|
-
};
|
|
603
|
-
readonly match: {
|
|
604
|
-
readonly $ref: '#/$defs/trigger_test';
|
|
605
|
-
};
|
|
606
|
-
};
|
|
607
|
-
readonly required: readonly ['on'];
|
|
608
|
-
}, {
|
|
609
|
-
readonly type: 'object';
|
|
610
|
-
readonly additionalProperties: false;
|
|
611
|
-
readonly properties: {
|
|
612
|
-
readonly on: {
|
|
613
|
-
readonly const: 'clock';
|
|
614
|
-
};
|
|
615
|
-
readonly cron: {
|
|
616
|
-
readonly type: 'string';
|
|
617
|
-
};
|
|
618
|
-
readonly time_zone: {
|
|
619
|
-
readonly type: 'string';
|
|
620
|
-
};
|
|
621
|
-
};
|
|
622
|
-
readonly required: readonly ['on', 'cron', 'time_zone'];
|
|
623
|
-
}, {
|
|
624
|
-
readonly type: 'object';
|
|
625
|
-
readonly additionalProperties: false;
|
|
626
|
-
readonly properties: {
|
|
627
|
-
readonly on: {
|
|
628
|
-
readonly const: 'clock';
|
|
629
|
-
};
|
|
630
|
-
readonly scope: {
|
|
631
|
-
readonly type: 'object';
|
|
632
|
-
readonly additionalProperties: false;
|
|
633
|
-
readonly properties: {
|
|
634
|
-
readonly type: {
|
|
635
|
-
readonly type: 'string';
|
|
636
|
-
};
|
|
637
|
-
};
|
|
638
|
-
readonly required: readonly ['type'];
|
|
639
|
-
};
|
|
640
|
-
readonly date: {
|
|
641
|
-
readonly type: 'string';
|
|
642
|
-
};
|
|
643
|
-
readonly days: {
|
|
644
|
-
readonly type: 'integer';
|
|
645
|
-
};
|
|
646
|
-
readonly at: {
|
|
647
|
-
readonly type: 'string';
|
|
648
|
-
};
|
|
649
|
-
readonly time_zone: {
|
|
650
|
-
readonly type: 'string';
|
|
651
|
-
};
|
|
652
|
-
readonly match: {
|
|
653
|
-
readonly $ref: '#/$defs/trigger_test';
|
|
654
|
-
};
|
|
655
|
-
};
|
|
656
|
-
readonly required: readonly ['on', 'scope', 'date', 'days', 'at', 'time_zone'];
|
|
657
|
-
}];
|
|
554
|
+
readonly title: 'Condition';
|
|
555
|
+
readonly description: 'When it fires, as the Trigger reference page writes it, a document it names at its current path.';
|
|
556
|
+
readonly type: 'object';
|
|
557
|
+
readonly additionalProperties: true;
|
|
658
558
|
};
|
|
659
559
|
readonly actions: {
|
|
560
|
+
readonly title: 'Actions';
|
|
660
561
|
readonly type: 'array';
|
|
661
562
|
readonly items: {
|
|
662
563
|
readonly anyOf: readonly [{
|
|
@@ -664,28 +565,35 @@ export declare const HOUSE_MODEL_DECLARATION: {
|
|
|
664
565
|
readonly additionalProperties: false;
|
|
665
566
|
readonly properties: {
|
|
666
567
|
readonly kind: {
|
|
568
|
+
readonly title: 'Kind';
|
|
667
569
|
readonly const: 'notify';
|
|
668
570
|
};
|
|
669
571
|
readonly enabled: {
|
|
572
|
+
readonly title: 'Enabled';
|
|
670
573
|
readonly type: 'boolean';
|
|
671
574
|
};
|
|
672
575
|
readonly title: {
|
|
576
|
+
readonly title: 'Title';
|
|
673
577
|
readonly type: 'string';
|
|
674
578
|
};
|
|
675
579
|
readonly text: {
|
|
580
|
+
readonly title: 'Text';
|
|
676
581
|
readonly type: 'string';
|
|
677
582
|
};
|
|
678
583
|
readonly to: {
|
|
584
|
+
readonly title: 'To';
|
|
679
585
|
readonly type: 'object';
|
|
680
586
|
readonly additionalProperties: false;
|
|
681
587
|
readonly properties: {
|
|
682
588
|
readonly users: {
|
|
589
|
+
readonly title: 'Users';
|
|
683
590
|
readonly type: 'array';
|
|
684
591
|
readonly items: {
|
|
685
592
|
readonly type: 'object';
|
|
686
593
|
readonly additionalProperties: false;
|
|
687
594
|
readonly properties: {
|
|
688
595
|
readonly user: {
|
|
596
|
+
readonly title: 'User';
|
|
689
597
|
readonly $ref: '#/$defs/id';
|
|
690
598
|
};
|
|
691
599
|
};
|
|
@@ -693,12 +601,14 @@ export declare const HOUSE_MODEL_DECLARATION: {
|
|
|
693
601
|
};
|
|
694
602
|
};
|
|
695
603
|
readonly fields: {
|
|
604
|
+
readonly title: 'Fields';
|
|
696
605
|
readonly type: 'array';
|
|
697
606
|
readonly items: {
|
|
698
607
|
readonly type: 'string';
|
|
699
608
|
};
|
|
700
609
|
};
|
|
701
610
|
readonly roles: {
|
|
611
|
+
readonly title: 'Roles';
|
|
702
612
|
readonly type: 'array';
|
|
703
613
|
readonly items: {
|
|
704
614
|
readonly type: 'string';
|
|
@@ -714,16 +624,20 @@ export declare const HOUSE_MODEL_DECLARATION: {
|
|
|
714
624
|
readonly additionalProperties: false;
|
|
715
625
|
readonly properties: {
|
|
716
626
|
readonly kind: {
|
|
717
|
-
readonly
|
|
627
|
+
readonly title: 'Kind';
|
|
628
|
+
readonly const: 'agent_function';
|
|
718
629
|
};
|
|
719
630
|
readonly enabled: {
|
|
631
|
+
readonly title: 'Enabled';
|
|
720
632
|
readonly type: 'boolean';
|
|
721
633
|
};
|
|
722
634
|
readonly card: {
|
|
635
|
+
readonly title: 'Card';
|
|
723
636
|
readonly type: 'string';
|
|
724
637
|
readonly minLength: 1;
|
|
725
638
|
};
|
|
726
639
|
readonly payload: {
|
|
640
|
+
readonly title: 'Payload';
|
|
727
641
|
readonly type: 'string';
|
|
728
642
|
};
|
|
729
643
|
};
|
|
@@ -733,16 +647,20 @@ export declare const HOUSE_MODEL_DECLARATION: {
|
|
|
733
647
|
readonly additionalProperties: false;
|
|
734
648
|
readonly properties: {
|
|
735
649
|
readonly kind: {
|
|
650
|
+
readonly title: 'Kind';
|
|
736
651
|
readonly const: 'message';
|
|
737
652
|
};
|
|
738
653
|
readonly enabled: {
|
|
654
|
+
readonly title: 'Enabled';
|
|
739
655
|
readonly type: 'boolean';
|
|
740
656
|
};
|
|
741
657
|
readonly card: {
|
|
658
|
+
readonly title: 'Card';
|
|
742
659
|
readonly type: 'string';
|
|
743
660
|
readonly minLength: 1;
|
|
744
661
|
};
|
|
745
662
|
readonly text: {
|
|
663
|
+
readonly title: 'Text';
|
|
746
664
|
readonly type: 'string';
|
|
747
665
|
};
|
|
748
666
|
};
|
|
@@ -752,9 +670,11 @@ export declare const HOUSE_MODEL_DECLARATION: {
|
|
|
752
670
|
readonly additionalProperties: false;
|
|
753
671
|
readonly properties: {
|
|
754
672
|
readonly kind: {
|
|
673
|
+
readonly title: 'Kind';
|
|
755
674
|
readonly const: 'done';
|
|
756
675
|
};
|
|
757
676
|
readonly enabled: {
|
|
677
|
+
readonly title: 'Enabled';
|
|
758
678
|
readonly type: 'boolean';
|
|
759
679
|
};
|
|
760
680
|
};
|
|
@@ -764,15 +684,19 @@ export declare const HOUSE_MODEL_DECLARATION: {
|
|
|
764
684
|
readonly additionalProperties: false;
|
|
765
685
|
readonly properties: {
|
|
766
686
|
readonly kind: {
|
|
687
|
+
readonly title: 'Kind';
|
|
767
688
|
readonly const: 'function';
|
|
768
689
|
};
|
|
769
690
|
readonly enabled: {
|
|
691
|
+
readonly title: 'Enabled';
|
|
770
692
|
readonly type: 'boolean';
|
|
771
693
|
};
|
|
772
694
|
readonly app: {
|
|
695
|
+
readonly title: 'App';
|
|
773
696
|
readonly $ref: '#/$defs/app';
|
|
774
697
|
};
|
|
775
698
|
readonly function: {
|
|
699
|
+
readonly title: 'Function';
|
|
776
700
|
readonly type: 'string';
|
|
777
701
|
};
|
|
778
702
|
};
|
|
@@ -781,25 +705,31 @@ export declare const HOUSE_MODEL_DECLARATION: {
|
|
|
781
705
|
};
|
|
782
706
|
};
|
|
783
707
|
readonly enabled: {
|
|
708
|
+
readonly title: 'Enabled';
|
|
784
709
|
readonly type: 'boolean';
|
|
785
710
|
};
|
|
786
711
|
readonly paused_by: {
|
|
712
|
+
readonly title: 'Paused by';
|
|
787
713
|
readonly enum: readonly ['types'];
|
|
788
714
|
};
|
|
789
715
|
readonly creator: {
|
|
716
|
+
readonly title: 'Creator';
|
|
790
717
|
readonly type: 'object';
|
|
791
718
|
readonly additionalProperties: false;
|
|
792
719
|
readonly properties: {
|
|
793
720
|
readonly user: {
|
|
721
|
+
readonly title: 'User';
|
|
794
722
|
readonly $ref: '#/$defs/id';
|
|
795
723
|
};
|
|
796
724
|
readonly name: {
|
|
725
|
+
readonly title: 'Name';
|
|
797
726
|
readonly type: 'string';
|
|
798
727
|
};
|
|
799
728
|
};
|
|
800
729
|
readonly required: readonly ['user', 'name'];
|
|
801
730
|
};
|
|
802
731
|
readonly created: {
|
|
732
|
+
readonly title: 'Created';
|
|
803
733
|
readonly type: 'string';
|
|
804
734
|
readonly format: 'date-time';
|
|
805
735
|
};
|
|
@@ -810,32 +740,40 @@ export declare const HOUSE_MODEL_DECLARATION: {
|
|
|
810
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.";
|
|
811
741
|
readonly properties: {
|
|
812
742
|
readonly reflected: {
|
|
743
|
+
readonly title: 'Reflected';
|
|
813
744
|
readonly type: 'string';
|
|
814
745
|
readonly format: 'date-time';
|
|
815
746
|
};
|
|
816
747
|
readonly web_wizard: {
|
|
748
|
+
readonly title: 'Web Wizard';
|
|
817
749
|
readonly $ref: '#/$defs/id';
|
|
818
750
|
};
|
|
819
751
|
readonly environment: {
|
|
752
|
+
readonly title: 'Environment';
|
|
820
753
|
readonly type: 'object';
|
|
821
754
|
readonly additionalProperties: false;
|
|
822
755
|
readonly properties: {
|
|
823
756
|
readonly environment: {
|
|
757
|
+
readonly title: 'Environment';
|
|
824
758
|
readonly $ref: '#/$defs/id';
|
|
825
759
|
};
|
|
826
760
|
readonly name: {
|
|
761
|
+
readonly title: 'Name';
|
|
827
762
|
readonly type: 'string';
|
|
828
763
|
};
|
|
829
764
|
};
|
|
830
765
|
readonly required: readonly ['environment', 'name'];
|
|
831
766
|
};
|
|
832
767
|
readonly state: {
|
|
768
|
+
readonly title: 'State';
|
|
833
769
|
readonly enum: readonly ['waiting', 'running', 'finished', 'failed', 'cancelled', 'lapsed', 'kept'];
|
|
834
770
|
};
|
|
835
771
|
readonly exit_code: {
|
|
772
|
+
readonly title: 'Exit code';
|
|
836
773
|
readonly type: 'integer';
|
|
837
774
|
};
|
|
838
775
|
readonly function: {
|
|
776
|
+
readonly title: 'Function';
|
|
839
777
|
readonly type: 'string';
|
|
840
778
|
};
|
|
841
779
|
};
|
|
@@ -843,6 +781,7 @@ export declare const HOUSE_MODEL_DECLARATION: {
|
|
|
843
781
|
};
|
|
844
782
|
};
|
|
845
783
|
export declare const HOUSE_MODEL_TYPES: string;
|
|
784
|
+
export declare const HOUSE_TYPED_PATHS: readonly TypedPath[];
|
|
846
785
|
type Model = typeof HOUSE_MODEL_DECLARATION;
|
|
847
786
|
type Definitions = Model['$defs'];
|
|
848
787
|
export type HouseModelType = Exclude<keyof Model, '$defs'>;
|
|
@@ -861,7 +800,7 @@ type Properties<S> = S extends {
|
|
|
861
800
|
}> : S extends {
|
|
862
801
|
readonly additionalProperties: false;
|
|
863
802
|
} ? Readonly<Record<string, never>> : Readonly<Record<string, unknown>>;
|
|
864
|
-
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 {
|
|
865
804
|
readonly items: infer I;
|
|
866
805
|
} ? Value<I> : unknown)[] : T extends 'object' ? Properties<S> : never;
|
|
867
806
|
type Value<S> = S extends {
|
|
@@ -889,4 +828,3 @@ export type HouseDocumentFields<Type extends HouseModelType> = Properties<{
|
|
|
889
828
|
readonly required: readonly ('type' | Needed<Model[Type]>)[];
|
|
890
829
|
}>;
|
|
891
830
|
export {};
|
|
892
|
-
//# sourceMappingURL=house-model.d.ts.map
|