@agentshouse/mdruntime-adapter 0.1.0-c637ad982fd79 → 0.1.0-c648eb955ddfd
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 +11 -3
- package/dist/adapter.d.ts.map +1 -1
- package/dist/adapter.js +74 -76
- package/dist/chunks.d.ts +38 -0
- package/dist/chunks.d.ts.map +1 -0
- package/dist/chunks.js +247 -0
- package/dist/discovery.d.ts +10 -3
- package/dist/discovery.d.ts.map +1 -1
- package/dist/discovery.js +34 -8
- package/dist/history.d.ts.map +1 -1
- package/dist/history.js +3 -2
- package/dist/house-model.d.ts +138 -1370
- package/dist/house-model.d.ts.map +1 -1
- package/dist/house-model.js +82 -733
- package/dist/index.d.ts +4 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/model.d.ts +5 -7
- package/dist/model.d.ts.map +1 -1
- package/dist/model.js +30 -18
- package/dist/read.d.ts +19 -9
- package/dist/read.d.ts.map +1 -1
- package/dist/read.js +46 -143
- package/dist/room-types.d.ts +0 -2
- package/dist/room-types.d.ts.map +1 -1
- package/dist/room-types.js +6 -11
- package/dist/search.d.ts +5 -0
- package/dist/search.d.ts.map +1 -0
- package/dist/search.js +47 -0
- package/dist/site.d.ts.map +1 -1
- package/dist/site.js +33 -41
- package/dist/space-schema.d.ts +7 -0
- package/dist/space-schema.d.ts.map +1 -0
- package/dist/space-schema.js +18 -0
- package/dist/stream.d.ts +6 -4
- package/dist/stream.d.ts.map +1 -1
- package/dist/stream.js +91 -18
- package/dist/transport.d.ts +11 -10
- package/dist/transport.d.ts.map +1 -1
- package/dist/transport.js +12 -11
- package/dist/write.d.ts +2 -1
- package/dist/write.d.ts.map +1 -1
- package/dist/write.js +8 -23
- 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 -19
- package/dist/room-stream.d.ts.map +0 -1
- package/dist/room-stream.js +0 -57
package/dist/house-model.js
CHANGED
|
@@ -26,418 +26,14 @@ export const HOUSE_MODEL_DECLARATION = {
|
|
|
26
26
|
maxLength: 512,
|
|
27
27
|
pattern: '^(?:a_[A-Za-z0-9._-]+(?:\\/source)?|r_[A-Za-z0-9._-]+(?:\\/(?:settings|settings\\/schema|settings\\/model|settings\\/indexing|content))?)$',
|
|
28
28
|
},
|
|
29
|
-
trigger_test: {
|
|
30
|
-
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
|
-
type: 'object',
|
|
32
|
-
additionalProperties: true,
|
|
33
|
-
},
|
|
34
|
-
trigger_values: {
|
|
35
|
-
type: 'array',
|
|
36
|
-
items: { anyOf: [{ type: 'string' }, { type: 'number' }, { type: 'boolean' }] },
|
|
37
|
-
},
|
|
38
|
-
trigger_scope: {
|
|
39
|
-
description: 'The documents a Trigger condition watches, by `type`, by `folder` or one document at its `path`, which `create_trigger` takes as `document`.',
|
|
40
|
-
type: 'object',
|
|
41
|
-
additionalProperties: false,
|
|
42
|
-
properties: {
|
|
43
|
-
type: { type: 'string' },
|
|
44
|
-
folder: { type: 'string' },
|
|
45
|
-
path: { type: 'string' },
|
|
46
|
-
},
|
|
47
|
-
minProperties: 1,
|
|
48
|
-
maxProperties: 1,
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
'house-account': {
|
|
52
|
-
description: "The User's own identifier as `user`, their registration as `created`, their email verification and chosen language, every notification group with the channels it now reaches as `notifications`, `telegram: available` while the Building runs its Telegram bots and no Telegram account is linked to it, `linked` while one is, `started` once that account has also pressed Start in the Inbox bot, `meta`, the Building's Meta app as `application` and its signup configuration as `configuration` while it offers Connect Meta's signup, or `keys` while a business connects its own Meta app by its keys, `tiktok: available` while it offers Connect TikTok, `building: administrator` while the User is one of the Building's administrators, `full_house: true` while the User holds Full House, and the Building's caps of an App function's run as `function_limits`, its time in milliseconds as `time_ms`, its memory in bytes as `memory_bytes` and its external calls as `external_calls`.",
|
|
53
|
-
properties: {
|
|
54
|
-
reflected: { type: 'string', format: 'date-time' },
|
|
55
|
-
user: { $ref: '#/$defs/id' },
|
|
56
|
-
email_verified: { type: 'string', format: 'date-time' },
|
|
57
|
-
language: { enum: ['en'] },
|
|
58
|
-
notifications: {
|
|
59
|
-
type: 'array',
|
|
60
|
-
items: {
|
|
61
|
-
type: 'object',
|
|
62
|
-
additionalProperties: false,
|
|
63
|
-
properties: {
|
|
64
|
-
group: { type: 'string' },
|
|
65
|
-
channels: { type: 'array', items: { type: 'string' } },
|
|
66
|
-
},
|
|
67
|
-
required: ['group', 'channels'],
|
|
68
|
-
},
|
|
69
|
-
},
|
|
70
|
-
created: { type: 'string', format: 'date-time' },
|
|
71
|
-
telegram: { enum: ['available', 'linked', 'started'] },
|
|
72
|
-
meta: {
|
|
73
|
-
anyOf: [
|
|
74
|
-
{ const: 'keys' },
|
|
75
|
-
{
|
|
76
|
-
type: 'object',
|
|
77
|
-
additionalProperties: false,
|
|
78
|
-
properties: {
|
|
79
|
-
application: { type: 'string', pattern: '^\\d{1,32}$' },
|
|
80
|
-
configuration: { type: 'string', pattern: '^\\d{1,32}$' },
|
|
81
|
-
},
|
|
82
|
-
required: ['application', 'configuration'],
|
|
83
|
-
},
|
|
84
|
-
],
|
|
85
|
-
},
|
|
86
|
-
tiktok: { enum: ['available'] },
|
|
87
|
-
building: { enum: ['administrator'] },
|
|
88
|
-
full_house: { const: true },
|
|
89
|
-
function_limits: {
|
|
90
|
-
type: 'object',
|
|
91
|
-
additionalProperties: false,
|
|
92
|
-
properties: {
|
|
93
|
-
// A Function run's time cap is the Building's, so the model only asks it be positive.
|
|
94
|
-
time_ms: { type: 'integer', exclusiveMinimum: 0 },
|
|
95
|
-
memory_bytes: { type: 'integer', exclusiveMinimum: 0 },
|
|
96
|
-
external_calls: { type: 'integer', exclusiveMinimum: 0 },
|
|
97
|
-
},
|
|
98
|
-
required: ['time_ms', 'memory_bytes', 'external_calls'],
|
|
99
|
-
},
|
|
100
|
-
},
|
|
101
|
-
required: [
|
|
102
|
-
'reflected',
|
|
103
|
-
'user',
|
|
104
|
-
'email_verified',
|
|
105
|
-
'notifications',
|
|
106
|
-
'created',
|
|
107
|
-
'function_limits',
|
|
108
|
-
],
|
|
109
|
-
},
|
|
110
|
-
'house-agent': {
|
|
111
|
-
description: 'One registered Agent this User owns, with the `profile` and `environment` it binds, when it was `created` and, once it is, `retired`.',
|
|
112
|
-
properties: {
|
|
113
|
-
reflected: { type: 'string', format: 'date-time' },
|
|
114
|
-
agent: { $ref: '#/$defs/id' },
|
|
115
|
-
name: { type: 'string' },
|
|
116
|
-
profile: { $ref: '#/$defs/id' },
|
|
117
|
-
environment: { $ref: '#/$defs/id' },
|
|
118
|
-
launch_directory: { type: 'string' },
|
|
119
|
-
created: { type: 'string', format: 'date-time' },
|
|
120
|
-
retired: { type: 'string', format: 'date-time' },
|
|
121
|
-
},
|
|
122
|
-
required: [
|
|
123
|
-
'reflected',
|
|
124
|
-
'agent',
|
|
125
|
-
'name',
|
|
126
|
-
'profile',
|
|
127
|
-
'environment',
|
|
128
|
-
'launch_directory',
|
|
129
|
-
'created',
|
|
130
|
-
],
|
|
131
|
-
},
|
|
132
|
-
'house-agent-profile': {
|
|
133
|
-
description: 'One reusable Agent Profile this User owns, with the execution route it binds and the `arguments` that route passes its CLI. Its body is its instructions, whole, in Markdown.',
|
|
134
|
-
properties: {
|
|
135
|
-
reflected: { type: 'string', format: 'date-time' },
|
|
136
|
-
profile: { $ref: '#/$defs/id' },
|
|
137
|
-
name: { type: 'string' },
|
|
138
|
-
revision: { type: 'integer', minimum: 0 },
|
|
139
|
-
adapter_kind: { type: 'string' },
|
|
140
|
-
model: { type: 'string' },
|
|
141
|
-
effort: { type: 'string' },
|
|
142
|
-
mode: { type: 'string' },
|
|
143
|
-
arguments: { type: 'array', items: { type: 'string' } },
|
|
144
|
-
},
|
|
145
|
-
required: ['reflected', 'profile', 'name', 'revision'],
|
|
146
|
-
},
|
|
147
|
-
'house-app': {
|
|
148
|
-
description: "One App this User owns, holds or installed, `ownership` naming whether it is its own or one it holds, its `owner` by `name` when another User owns it, and `my_app` `true` on this User's My App alone, with the path of its window on the control origin as `address`, its tab icon for a light and for a dark appearance as image data addresses with, while the icon is generated, its one to four colours, blend and angle, its running release as `latest_release` by `release` and `sequence`, with the external origins it declares as `external_origins`, whether its code reaches this User's conversations as `conversations`, the Room slots it declares in order as `room_slots`, each `slot` with its `access` and `types`, and the names of the App functions it declares in order as `functions`, each installation this User holds, and every User who holds the App as `holders`, this User and its owner included, by `user`, `name` and `email`. Each installation entry names the `installation`, the App's running `release` and when it was installed as `created`. Each features entry names, for an App this User does not own, a `feature`, a browser feature, a House model type or a House act its release declares, and its `consent`, `allowed` or `denied` the first time the App asked; a feature never asked is absent. `features_version` is the version of this User's latest consent change for the App.",
|
|
149
|
-
properties: {
|
|
150
|
-
reflected: { type: 'string', format: 'date-time' },
|
|
151
|
-
app: { $ref: '#/$defs/app' },
|
|
152
|
-
address: {
|
|
153
|
-
type: 'string',
|
|
154
|
-
pattern: '^\\/app\\/a_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$',
|
|
155
|
-
},
|
|
156
|
-
name: { type: 'string' },
|
|
157
|
-
ownership: { enum: ['own', 'held'] },
|
|
158
|
-
owner: {
|
|
159
|
-
type: 'object',
|
|
160
|
-
additionalProperties: false,
|
|
161
|
-
properties: { name: { type: 'string' } },
|
|
162
|
-
required: ['name'],
|
|
163
|
-
},
|
|
164
|
-
my_app: { const: true },
|
|
165
|
-
created: { type: 'string', format: 'date-time' },
|
|
166
|
-
tab_icon_light: { type: 'string', pattern: '^data:image\\/' },
|
|
167
|
-
tab_icon_dark: { type: 'string', pattern: '^data:image\\/' },
|
|
168
|
-
tab_icon_colours: { type: 'array', items: { type: 'string', pattern: '^#[0-9a-f]{6}$' } },
|
|
169
|
-
tab_icon_blend: { enum: ['linear', 'radial'] },
|
|
170
|
-
tab_icon_angle: { type: 'integer', minimum: 0, maximum: 359 },
|
|
171
|
-
latest_release: {
|
|
172
|
-
type: 'object',
|
|
173
|
-
additionalProperties: false,
|
|
174
|
-
properties: {
|
|
175
|
-
release: { $ref: '#/$defs/id' },
|
|
176
|
-
sequence: { type: 'integer', exclusiveMinimum: 0 },
|
|
177
|
-
},
|
|
178
|
-
required: ['release', 'sequence'],
|
|
179
|
-
},
|
|
180
|
-
external_origins: { type: 'array', items: { type: 'string', format: 'uri' } },
|
|
181
|
-
conversations: { enum: ['yes', 'no'] },
|
|
182
|
-
room_slots: {
|
|
183
|
-
type: 'array',
|
|
184
|
-
items: {
|
|
185
|
-
type: 'object',
|
|
186
|
-
additionalProperties: false,
|
|
187
|
-
properties: {
|
|
188
|
-
slot: { type: 'string' },
|
|
189
|
-
access: { enum: ['read', 'write'] },
|
|
190
|
-
types: { type: 'array', items: { type: 'string' } },
|
|
191
|
-
},
|
|
192
|
-
required: ['slot', 'access', 'types'],
|
|
193
|
-
},
|
|
194
|
-
},
|
|
195
|
-
functions: { type: 'array', items: { type: 'string' } },
|
|
196
|
-
installations: {
|
|
197
|
-
type: 'array',
|
|
198
|
-
items: {
|
|
199
|
-
type: 'object',
|
|
200
|
-
additionalProperties: false,
|
|
201
|
-
properties: {
|
|
202
|
-
installation: { $ref: '#/$defs/id' },
|
|
203
|
-
release: { $ref: '#/$defs/id' },
|
|
204
|
-
created: { type: 'string', format: 'date-time' },
|
|
205
|
-
},
|
|
206
|
-
required: ['installation', 'release', 'created'],
|
|
207
|
-
},
|
|
208
|
-
},
|
|
209
|
-
holders: {
|
|
210
|
-
type: 'array',
|
|
211
|
-
items: {
|
|
212
|
-
type: 'object',
|
|
213
|
-
additionalProperties: false,
|
|
214
|
-
properties: {
|
|
215
|
-
user: { $ref: '#/$defs/id' },
|
|
216
|
-
name: { type: 'string' },
|
|
217
|
-
email: { type: 'string' },
|
|
218
|
-
},
|
|
219
|
-
required: ['user', 'name', 'email'],
|
|
220
|
-
},
|
|
221
|
-
},
|
|
222
|
-
features: {
|
|
223
|
-
type: 'array',
|
|
224
|
-
items: {
|
|
225
|
-
type: 'object',
|
|
226
|
-
additionalProperties: false,
|
|
227
|
-
properties: { feature: { type: 'string' }, consent: { enum: ['allowed', 'denied'] } },
|
|
228
|
-
required: ['feature', 'consent'],
|
|
229
|
-
},
|
|
230
|
-
},
|
|
231
|
-
features_version: { type: 'integer', exclusiveMinimum: 0 },
|
|
232
|
-
},
|
|
233
|
-
required: ['reflected', 'app', 'address', 'name', 'ownership', 'created'],
|
|
234
29
|
},
|
|
235
30
|
'house-app-preferences': {
|
|
236
31
|
description: "An App's preferences. Its own vocabulary is in the body.",
|
|
237
32
|
properties: { app: { $ref: '#/$defs/app' } },
|
|
238
33
|
required: ['app'],
|
|
239
34
|
},
|
|
240
|
-
'house-app-room-binding': {
|
|
241
|
-
description: "One durable App-Room binding this User holds: an ordered Room list, one Shared schema, or `rooms`, `all` for every Room this User has or `all_but_private` for every one but their Private Room, for a named Room slot of one `app`, shared by every device and browser installation they sign in from. Only this User's own bindings appear here. A Shared-schema binding names the `shared_schema` with its own structural `compatibility` and `findings`, the Rooms that currently use it and this User reads, and how many Rooms the instance bound leaves out. A `rooms` binding holds this User's Rooms that fit the slot, and `left_out` counts the others and those past the instance bound. Each entry names a `room` and the last structural comparison of the slot with its selected model as `compatibility`, `unchecked`, `compatible` or `incompatible`, and each finding a `room` and one exact structural `finding` of it against the slot. An explicit entry whose Room this User cannot read is absent until access returns; an empty explicit list has no document. An incompatible entry or Shared schema blocks nothing: the App still opens and the model still changes.",
|
|
242
|
-
properties: {
|
|
243
|
-
reflected: { type: 'string', format: 'date-time' },
|
|
244
|
-
app: { $ref: '#/$defs/app' },
|
|
245
|
-
slot: { type: 'string', pattern: '^[a-z0-9]([a-z0-9-]*[a-z0-9])?$' },
|
|
246
|
-
types: { type: 'array', items: { type: 'string' } },
|
|
247
|
-
slot_access: { enum: ['read', 'write'] },
|
|
248
|
-
shared_schema: {
|
|
249
|
-
type: 'object',
|
|
250
|
-
additionalProperties: false,
|
|
251
|
-
properties: {
|
|
252
|
-
shared_schema: { $ref: '#/$defs/id' },
|
|
253
|
-
compatibility: { enum: ['unchecked', 'compatible', 'incompatible'] },
|
|
254
|
-
findings: { type: 'array', items: { type: 'string' } },
|
|
255
|
-
},
|
|
256
|
-
required: ['shared_schema', 'compatibility', 'findings'],
|
|
257
|
-
},
|
|
258
|
-
rooms: { enum: ['all', 'all_but_private'] },
|
|
259
|
-
left_out: { type: 'integer', minimum: 0 },
|
|
260
|
-
entries: {
|
|
261
|
-
type: 'array',
|
|
262
|
-
items: {
|
|
263
|
-
type: 'object',
|
|
264
|
-
additionalProperties: false,
|
|
265
|
-
properties: {
|
|
266
|
-
room: { $ref: '#/$defs/room' },
|
|
267
|
-
compatibility: { enum: ['unchecked', 'compatible', 'incompatible'] },
|
|
268
|
-
},
|
|
269
|
-
required: ['room', 'compatibility'],
|
|
270
|
-
},
|
|
271
|
-
},
|
|
272
|
-
findings: {
|
|
273
|
-
type: 'array',
|
|
274
|
-
items: {
|
|
275
|
-
type: 'object',
|
|
276
|
-
additionalProperties: false,
|
|
277
|
-
properties: { room: { $ref: '#/$defs/room' }, finding: { type: 'string' } },
|
|
278
|
-
required: ['room', 'finding'],
|
|
279
|
-
},
|
|
280
|
-
},
|
|
281
|
-
},
|
|
282
|
-
required: ['reflected', 'app', 'slot'],
|
|
283
|
-
},
|
|
284
|
-
'house-client': {
|
|
285
|
-
description: 'One MCP client this User authorized, named as it was created. Its last use and whether its credentials expired are read on request.',
|
|
286
|
-
properties: {
|
|
287
|
-
reflected: { type: 'string', format: 'date-time' },
|
|
288
|
-
client: { $ref: '#/$defs/id' },
|
|
289
|
-
name: { type: 'string' },
|
|
290
|
-
kind: { enum: ['browser', 'headless'] },
|
|
291
|
-
created: { type: 'string', format: 'date-time' },
|
|
292
|
-
ended: { type: 'string', format: 'date-time' },
|
|
293
|
-
end: { enum: ['revoked'] },
|
|
294
|
-
},
|
|
295
|
-
required: ['reflected', 'client', 'name', 'kind', 'created'],
|
|
296
|
-
},
|
|
297
|
-
'house-environment': {
|
|
298
|
-
description: "One Environment this User holds, with its configuration, its `name`, the one its User entered, when it was `created`, the Rooms it reaches, `all`, `all_but_private` or the `selected` ones `rooms` names, each by its `room`, `login_code`, `yes` while it holds a reusable login code, the agent CLI kinds House admits in `offered`, the kinds House last set in `wanted`, and the latest readiness its Kit reported in `agents`. `kind` is the kind of Environment, `sandbox`, a small Environment House runs with limited capacity, especially disk, `vps`, an always-on Environment House runs with better specs, or `own` for its owner's own computer. `lifecycle` is the state of that Sandbox or VPS: `provisioning` while House creates it, `starting` while it starts or House wakes it, `available` once its Kit connected, `stopped` or `failed`. For a Sandbox, `budget` is its runtime budget in hours a month and `budget_spent` is `yes` once its runtime this UTC month reached it. Each offered entry names one adapter kind the owner may select for this Environment. Each wanted entry names one adapter kind the Kit should hold. Each agent entry names the adapter `kind`, its installed `version` or null when the Kit could not install it, for a CLI below its adapter's minimum that `minimum`, `failure`, that install's cause, `installing`, true only while the Kit installs it, whether the CLI is `signed_in`, its `models`, each `model` with its `efforts` as the CLI's session options name them, its `modes`, each `mode` with the `name` the CLI gives it, and `full_access`, the mode that bypasses every permission, or null for a CLI that offers no mode and always runs so. A wanted kind no entry names is not yet reported. `transcribe` is whether the Kit transcribes a message's audio files, as House last set it, and `transcription` names whether the Kit has the engine `installed` and the `failure` of its last download or null, as the Kit last reported it. `os` is the operating system and version of the Environment, `kit_release` the installed Kit release and `form` the computer's form, `laptop`, `desktop` or `server`, as the Kit last reported them. Placement failure is projected on its transitions; `failed` names the failure's category and never its cause. For a VPS, `ssh` is its owner's root login on port 22.",
|
|
299
|
-
properties: {
|
|
300
|
-
reflected: { type: 'string', format: 'date-time' },
|
|
301
|
-
environment: { $ref: '#/$defs/id' },
|
|
302
|
-
name: { type: 'string' },
|
|
303
|
-
created: { type: 'string', format: 'date-time' },
|
|
304
|
-
revoked: { type: 'string', format: 'date-time' },
|
|
305
|
-
reach: { enum: ['all', 'all_but_private', 'selected'] },
|
|
306
|
-
rooms: {
|
|
307
|
-
type: 'array',
|
|
308
|
-
items: {
|
|
309
|
-
type: 'object',
|
|
310
|
-
additionalProperties: false,
|
|
311
|
-
properties: { room: { $ref: '#/$defs/room' } },
|
|
312
|
-
required: ['room'],
|
|
313
|
-
},
|
|
314
|
-
},
|
|
315
|
-
login_code: { enum: ['yes', 'no'] },
|
|
316
|
-
kind: { enum: ['sandbox', 'vps', 'own'] },
|
|
317
|
-
lifecycle: { enum: ['provisioning', 'starting', 'available', 'stopped', 'failed'] },
|
|
318
|
-
offered: { type: 'array', items: { type: 'string' } },
|
|
319
|
-
wanted: { type: 'array', items: { type: 'string' } },
|
|
320
|
-
agents: {
|
|
321
|
-
type: 'array',
|
|
322
|
-
items: {
|
|
323
|
-
type: 'object',
|
|
324
|
-
additionalProperties: false,
|
|
325
|
-
properties: {
|
|
326
|
-
kind: { type: 'string', minLength: 1, maxLength: 64 },
|
|
327
|
-
version: { anyOf: [{ type: 'string', minLength: 1, maxLength: 64 }, { type: 'null' }] },
|
|
328
|
-
minimum: {
|
|
329
|
-
description: "Present only for a CLI below its adapter's minimum version: that minimum.",
|
|
330
|
-
type: 'string',
|
|
331
|
-
minLength: 1,
|
|
332
|
-
maxLength: 64,
|
|
333
|
-
},
|
|
334
|
-
failure: {
|
|
335
|
-
anyOf: [{ type: 'string', minLength: 1, maxLength: 4096 }, { type: 'null' }],
|
|
336
|
-
},
|
|
337
|
-
installing: {
|
|
338
|
-
description: 'Present only while the Kit installs the CLI, whose version and failure are then null.',
|
|
339
|
-
type: 'boolean',
|
|
340
|
-
const: true,
|
|
341
|
-
},
|
|
342
|
-
signed_in: { type: 'boolean' },
|
|
343
|
-
models: {
|
|
344
|
-
maxItems: 256,
|
|
345
|
-
type: 'array',
|
|
346
|
-
items: {
|
|
347
|
-
type: 'object',
|
|
348
|
-
additionalProperties: false,
|
|
349
|
-
properties: {
|
|
350
|
-
model: { type: 'string', minLength: 1 },
|
|
351
|
-
efforts: { maxItems: 32, type: 'array', items: { type: 'string', minLength: 1 } },
|
|
352
|
-
},
|
|
353
|
-
required: ['model', 'efforts'],
|
|
354
|
-
},
|
|
355
|
-
},
|
|
356
|
-
modes: {
|
|
357
|
-
maxItems: 32,
|
|
358
|
-
type: 'array',
|
|
359
|
-
items: {
|
|
360
|
-
type: 'object',
|
|
361
|
-
additionalProperties: false,
|
|
362
|
-
properties: {
|
|
363
|
-
mode: { type: 'string', minLength: 1 },
|
|
364
|
-
name: { type: 'string', minLength: 1, maxLength: 128 },
|
|
365
|
-
},
|
|
366
|
-
required: ['mode', 'name'],
|
|
367
|
-
},
|
|
368
|
-
},
|
|
369
|
-
full_access: { anyOf: [{ type: 'string', minLength: 1 }, { type: 'null' }] },
|
|
370
|
-
},
|
|
371
|
-
required: ['kind', 'version', 'failure', 'signed_in', 'models', 'modes', 'full_access'],
|
|
372
|
-
},
|
|
373
|
-
},
|
|
374
|
-
transcribe: { enum: ['on', 'off'] },
|
|
375
|
-
transcription: {
|
|
376
|
-
type: 'object',
|
|
377
|
-
additionalProperties: false,
|
|
378
|
-
properties: {
|
|
379
|
-
installed: { type: 'boolean' },
|
|
380
|
-
failure: { anyOf: [{ type: 'string', minLength: 1, maxLength: 4096 }, { type: 'null' }] },
|
|
381
|
-
},
|
|
382
|
-
required: ['installed', 'failure'],
|
|
383
|
-
},
|
|
384
|
-
os: { type: 'string' },
|
|
385
|
-
kit_release: { type: 'string' },
|
|
386
|
-
form: { enum: ['laptop', 'desktop', 'server'] },
|
|
387
|
-
failed: {
|
|
388
|
-
enum: [
|
|
389
|
-
'provisioning_failed',
|
|
390
|
-
'bootstrap_timeout',
|
|
391
|
-
'provider_capacity',
|
|
392
|
-
'provider_unavailable',
|
|
393
|
-
'provider_removed',
|
|
394
|
-
'placement_conflict',
|
|
395
|
-
'placement_intervention',
|
|
396
|
-
'environment_authority_unavailable',
|
|
397
|
-
],
|
|
398
|
-
},
|
|
399
|
-
budget: { type: 'string', pattern: '^\\d+(?:\\.\\d+)?$' },
|
|
400
|
-
budget_spent: { enum: ['yes', 'no'] },
|
|
401
|
-
ssh: { type: 'string', pattern: '^root@\\S+$' },
|
|
402
|
-
},
|
|
403
|
-
required: [
|
|
404
|
-
'reflected',
|
|
405
|
-
'environment',
|
|
406
|
-
'name',
|
|
407
|
-
'created',
|
|
408
|
-
'reach',
|
|
409
|
-
'kind',
|
|
410
|
-
'offered',
|
|
411
|
-
'transcribe',
|
|
412
|
-
],
|
|
413
|
-
},
|
|
414
|
-
'house-exports': {
|
|
415
|
-
description: "This User's Exports, each with its `status`, when it was `created` and, once it has one, when it `expires`; a ready one names its download page as `page`.",
|
|
416
|
-
properties: {
|
|
417
|
-
reflected: { type: 'string', format: 'date-time' },
|
|
418
|
-
exports: {
|
|
419
|
-
type: 'array',
|
|
420
|
-
items: {
|
|
421
|
-
type: 'object',
|
|
422
|
-
additionalProperties: false,
|
|
423
|
-
properties: {
|
|
424
|
-
export: { $ref: '#/$defs/id' },
|
|
425
|
-
status: { enum: ['queued', 'running', 'ready', 'failed'] },
|
|
426
|
-
created: { type: 'string', format: 'date-time' },
|
|
427
|
-
expires: { type: 'string', format: 'date-time' },
|
|
428
|
-
page: {
|
|
429
|
-
type: 'string',
|
|
430
|
-
pattern: '^\\/exports\\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$',
|
|
431
|
-
},
|
|
432
|
-
},
|
|
433
|
-
required: ['export', 'status', 'created'],
|
|
434
|
-
},
|
|
435
|
-
},
|
|
436
|
-
},
|
|
437
|
-
required: ['reflected'],
|
|
438
|
-
},
|
|
439
35
|
'house-notification': {
|
|
440
|
-
description: "One kept
|
|
36
|
+
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.",
|
|
441
37
|
properties: {
|
|
442
38
|
notification: { $ref: '#/$defs/id' },
|
|
443
39
|
kind: {
|
|
@@ -446,45 +42,29 @@ export const HOUSE_MODEL_DECLARATION = {
|
|
|
446
42
|
'share-offer',
|
|
447
43
|
'join-request',
|
|
448
44
|
'join-request-approved',
|
|
449
|
-
'app-room-binding-incompatible',
|
|
450
|
-
'app-deleted',
|
|
451
|
-
'app-call',
|
|
452
45
|
'room-ownership-offer',
|
|
453
46
|
'managed-environment-retention-opened',
|
|
454
|
-
'managed-environment-placement-intervention',
|
|
455
47
|
'storage-full',
|
|
456
48
|
'sandbox-budget-spent',
|
|
49
|
+
'trigger-failed',
|
|
50
|
+
'room-telegram-chat-paused',
|
|
457
51
|
'break-glass-owner-disclosure',
|
|
458
|
-
'routine-start-approval-request',
|
|
459
|
-
'routine-request-declined',
|
|
460
|
-
'routine-request-started',
|
|
461
|
-
'routine-request-finished',
|
|
462
|
-
'routine-request-not-started',
|
|
463
52
|
'export-ready',
|
|
464
53
|
'export-failed',
|
|
465
|
-
'site-disabled',
|
|
466
|
-
'site-binding-incompatible',
|
|
467
|
-
'site-room-left',
|
|
468
|
-
'site-images-full',
|
|
469
54
|
'custom',
|
|
470
|
-
'
|
|
471
|
-
'function-failed',
|
|
55
|
+
'agent-function-request-finished',
|
|
472
56
|
],
|
|
473
57
|
},
|
|
474
58
|
created: { type: 'string', format: 'date-time' },
|
|
59
|
+
read: { type: 'string', format: 'date-time' },
|
|
475
60
|
way_in: {
|
|
476
61
|
type: 'object',
|
|
477
62
|
additionalProperties: false,
|
|
478
63
|
properties: {
|
|
479
64
|
path: { type: 'string', pattern: '^\\/' },
|
|
480
65
|
room: { $ref: '#/$defs/room' },
|
|
481
|
-
app: { $ref: '#/$defs/app' },
|
|
482
|
-
agent: { $ref: '#/$defs/id' },
|
|
483
66
|
environment: { $ref: '#/$defs/id' },
|
|
484
|
-
routine: { $ref: '#/$defs/id' },
|
|
485
|
-
routine_request: { $ref: '#/$defs/id' },
|
|
486
67
|
trigger: { $ref: '#/$defs/id' },
|
|
487
|
-
site: { $ref: '#/$defs/id' },
|
|
488
68
|
},
|
|
489
69
|
minProperties: 1,
|
|
490
70
|
},
|
|
@@ -535,23 +115,8 @@ export const HOUSE_MODEL_DECLARATION = {
|
|
|
535
115
|
app: {
|
|
536
116
|
type: 'object',
|
|
537
117
|
additionalProperties: false,
|
|
538
|
-
properties: { app: { $ref: '#/$defs/app' }
|
|
539
|
-
|
|
540
|
-
},
|
|
541
|
-
binding: { $ref: '#/$defs/id' },
|
|
542
|
-
slot: { type: 'string' },
|
|
543
|
-
findings: { type: 'array', items: { type: 'string' } },
|
|
544
|
-
owner: {
|
|
545
|
-
type: 'object',
|
|
546
|
-
additionalProperties: false,
|
|
547
|
-
properties: { name: { type: 'string' } },
|
|
548
|
-
required: ['name'],
|
|
549
|
-
},
|
|
550
|
-
caller: {
|
|
551
|
-
type: 'object',
|
|
552
|
-
additionalProperties: false,
|
|
553
|
-
properties: { user: { $ref: '#/$defs/id' }, name: { type: 'string' } },
|
|
554
|
-
required: ['user', 'name'],
|
|
118
|
+
properties: { app: { $ref: '#/$defs/app' } },
|
|
119
|
+
required: ['app'],
|
|
555
120
|
},
|
|
556
121
|
ownership_offer: { $ref: '#/$defs/id' },
|
|
557
122
|
offerer: {
|
|
@@ -572,7 +137,6 @@ export const HOUSE_MODEL_DECLARATION = {
|
|
|
572
137
|
},
|
|
573
138
|
reason: { type: 'string' },
|
|
574
139
|
deadline: { type: 'string', format: 'date-time' },
|
|
575
|
-
operation_kind: { type: 'string' },
|
|
576
140
|
free: {
|
|
577
141
|
type: 'object',
|
|
578
142
|
additionalProperties: false,
|
|
@@ -583,6 +147,22 @@ export const HOUSE_MODEL_DECLARATION = {
|
|
|
583
147
|
},
|
|
584
148
|
required: ['held', 'limit', 'measure'],
|
|
585
149
|
},
|
|
150
|
+
chat: { type: 'string' },
|
|
151
|
+
missing: {
|
|
152
|
+
type: 'array',
|
|
153
|
+
items: {
|
|
154
|
+
type: 'string',
|
|
155
|
+
enum: [
|
|
156
|
+
'private',
|
|
157
|
+
'topics',
|
|
158
|
+
'ban_users',
|
|
159
|
+
'invite_users',
|
|
160
|
+
'manage_topics',
|
|
161
|
+
'post_messages',
|
|
162
|
+
'edit_messages',
|
|
163
|
+
],
|
|
164
|
+
},
|
|
165
|
+
},
|
|
586
166
|
budget: { type: 'string', pattern: '^\\d+(?:\\.\\d+)?$' },
|
|
587
167
|
resets_at: { type: 'string', format: 'date-time' },
|
|
588
168
|
grant: { $ref: '#/$defs/id' },
|
|
@@ -591,54 +171,8 @@ export const HOUSE_MODEL_DECLARATION = {
|
|
|
591
171
|
access_ended_at: { type: 'string', format: 'date-time' },
|
|
592
172
|
systems: { type: 'array', items: { type: 'string' } },
|
|
593
173
|
case_reference: { type: 'string' },
|
|
594
|
-
routine_request: { $ref: '#/$defs/id' },
|
|
595
|
-
requester: {
|
|
596
|
-
type: 'object',
|
|
597
|
-
additionalProperties: false,
|
|
598
|
-
properties: { name: { type: 'string' } },
|
|
599
|
-
required: ['name'],
|
|
600
|
-
},
|
|
601
|
-
agent: {
|
|
602
|
-
type: 'object',
|
|
603
|
-
additionalProperties: false,
|
|
604
|
-
properties: { agent: { $ref: '#/$defs/id' }, name: { type: 'string' } },
|
|
605
|
-
required: ['name'],
|
|
606
|
-
},
|
|
607
|
-
conversation: { $ref: '#/$defs/id' },
|
|
608
|
-
routine: {
|
|
609
|
-
type: 'object',
|
|
610
|
-
additionalProperties: false,
|
|
611
|
-
properties: {
|
|
612
|
-
routine: { $ref: '#/$defs/id' },
|
|
613
|
-
name: { type: 'string' },
|
|
614
|
-
version: { type: 'integer', minimum: 1 },
|
|
615
|
-
},
|
|
616
|
-
required: ['name'],
|
|
617
|
-
},
|
|
618
|
-
decliner: {
|
|
619
|
-
type: 'object',
|
|
620
|
-
additionalProperties: false,
|
|
621
|
-
properties: { name: { type: 'string' } },
|
|
622
|
-
required: ['name'],
|
|
623
|
-
},
|
|
624
|
-
input: { type: 'string' },
|
|
625
174
|
export: { $ref: '#/$defs/id' },
|
|
626
175
|
size_bytes: { type: 'integer', minimum: 0 },
|
|
627
|
-
site: {
|
|
628
|
-
type: 'object',
|
|
629
|
-
additionalProperties: false,
|
|
630
|
-
properties: { site: { $ref: '#/$defs/id' }, name: { type: 'string' } },
|
|
631
|
-
required: ['site', 'name'],
|
|
632
|
-
},
|
|
633
|
-
address: { type: 'string', maxLength: 300, format: 'uri' },
|
|
634
|
-
to: {
|
|
635
|
-
type: 'object',
|
|
636
|
-
additionalProperties: false,
|
|
637
|
-
properties: { name: { type: 'string' } },
|
|
638
|
-
required: ['name'],
|
|
639
|
-
},
|
|
640
|
-
copies: { type: 'integer', minimum: 0 },
|
|
641
|
-
bound: { type: 'integer', minimum: 0 },
|
|
642
176
|
title: { type: 'string' },
|
|
643
177
|
body: { type: 'string' },
|
|
644
178
|
authorship: {
|
|
@@ -655,12 +189,35 @@ export const HOUSE_MODEL_DECLARATION = {
|
|
|
655
189
|
trigger: {
|
|
656
190
|
type: 'object',
|
|
657
191
|
additionalProperties: false,
|
|
658
|
-
properties: { trigger: { $ref: '#/$defs/id' },
|
|
659
|
-
required: ['trigger', '
|
|
192
|
+
properties: { trigger: { $ref: '#/$defs/id' }, description: { type: 'string' } },
|
|
193
|
+
required: ['trigger', 'description'],
|
|
660
194
|
},
|
|
661
|
-
|
|
662
|
-
|
|
195
|
+
code: {
|
|
196
|
+
type: 'string',
|
|
197
|
+
enum: [
|
|
198
|
+
'failed',
|
|
199
|
+
'function_failed',
|
|
200
|
+
'function_not_started',
|
|
201
|
+
'agent_function_request_not_started',
|
|
202
|
+
],
|
|
203
|
+
},
|
|
204
|
+
action: { type: 'integer', minimum: 0 },
|
|
205
|
+
moment: { type: 'string', format: 'date-time' },
|
|
663
206
|
error: { type: 'string' },
|
|
207
|
+
agent_function: {
|
|
208
|
+
type: 'object',
|
|
209
|
+
additionalProperties: false,
|
|
210
|
+
properties: { name: { type: 'string' } },
|
|
211
|
+
required: ['name'],
|
|
212
|
+
},
|
|
213
|
+
agent: {
|
|
214
|
+
type: 'object',
|
|
215
|
+
additionalProperties: false,
|
|
216
|
+
properties: { name: { type: 'string' } },
|
|
217
|
+
required: ['name'],
|
|
218
|
+
},
|
|
219
|
+
ended: { type: 'string', enum: ['finished', 'failed'] },
|
|
220
|
+
duration: { type: 'integer', minimum: 1 },
|
|
664
221
|
},
|
|
665
222
|
required: ['notification', 'kind', 'created', 'way_in', 'subject'],
|
|
666
223
|
},
|
|
@@ -668,21 +225,11 @@ export const HOUSE_MODEL_DECLARATION = {
|
|
|
668
225
|
description: "The panel's preferences at /rooms/private/settings/panel.md. Its own vocabulary is in the body.",
|
|
669
226
|
properties: {},
|
|
670
227
|
},
|
|
671
|
-
'house-
|
|
672
|
-
description: "
|
|
673
|
-
properties: {
|
|
674
|
-
reflected: { type: 'string', format: 'date-time' },
|
|
675
|
-
name: { type: 'string' },
|
|
676
|
-
email: { type: 'string' },
|
|
677
|
-
about_me: { type: 'string' },
|
|
678
|
-
},
|
|
679
|
-
required: ['reflected', 'name', 'email'],
|
|
680
|
-
},
|
|
681
|
-
'house-routine': {
|
|
682
|
-
description: "One Routine that serves this Room, which House alone writes from its owner's document in their Private Room: the `routine` 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 Routine's instruction is never written here.",
|
|
228
|
+
'house-agent-function': {
|
|
229
|
+
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.",
|
|
683
230
|
properties: {
|
|
684
231
|
reflected: { type: 'string', format: 'date-time' },
|
|
685
|
-
|
|
232
|
+
agent_function: { $ref: '#/$defs/id' },
|
|
686
233
|
description: { type: 'string' },
|
|
687
234
|
input: { type: 'string' },
|
|
688
235
|
agent: {
|
|
@@ -692,242 +239,28 @@ export const HOUSE_MODEL_DECLARATION = {
|
|
|
692
239
|
required: ['agent', 'name'],
|
|
693
240
|
},
|
|
694
241
|
},
|
|
695
|
-
required: ['reflected', '
|
|
242
|
+
required: ['reflected', 'agent_function', 'description', 'input', 'agent'],
|
|
696
243
|
},
|
|
697
|
-
'house-
|
|
698
|
-
description:
|
|
244
|
+
'house-agent-function-document': {
|
|
245
|
+
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.',
|
|
699
246
|
properties: {
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
addresses: { type: 'array', items: { type: 'string', format: 'uri' } },
|
|
705
|
-
primary_address: { type: 'string', format: 'uri' },
|
|
706
|
-
domains: {
|
|
707
|
-
type: 'array',
|
|
708
|
-
items: {
|
|
709
|
-
type: 'object',
|
|
710
|
-
additionalProperties: false,
|
|
711
|
-
properties: {
|
|
712
|
-
host: { type: 'string' },
|
|
713
|
-
state: { enum: ['pending', 'active', 'failed'] },
|
|
714
|
-
dns_target: { type: 'string' },
|
|
715
|
-
reason: { type: 'string' },
|
|
716
|
-
},
|
|
717
|
-
required: ['host', 'state', 'dns_target'],
|
|
718
|
-
},
|
|
719
|
-
},
|
|
720
|
-
app: { $ref: '#/$defs/app' },
|
|
721
|
-
tab_icon_light: { type: 'string', pattern: '^data:image\\/' },
|
|
722
|
-
tab_icon_dark: { type: 'string', pattern: '^data:image\\/' },
|
|
723
|
-
tab_icon_colours: { type: 'array', items: { type: 'string', pattern: '^#[0-9a-f]{6}$' } },
|
|
724
|
-
tab_icon_blend: { enum: ['linear', 'radial'] },
|
|
725
|
-
tab_icon_angle: { type: 'integer', minimum: 0, maximum: 359 },
|
|
726
|
-
tab_icon_from: { enum: ['site', 'app'] },
|
|
727
|
-
release: {
|
|
728
|
-
type: 'object',
|
|
729
|
-
additionalProperties: false,
|
|
730
|
-
properties: {
|
|
731
|
-
release: { $ref: '#/$defs/id' },
|
|
732
|
-
sequence: { type: 'integer', exclusiveMinimum: 0 },
|
|
733
|
-
},
|
|
734
|
-
required: ['release', 'sequence'],
|
|
735
|
-
},
|
|
736
|
-
title: { type: 'string' },
|
|
737
|
-
description: { type: 'string' },
|
|
738
|
-
screenshot: { type: 'string', format: 'uri' },
|
|
739
|
-
analytics: { type: 'string', pattern: '^G-[A-Z0-9]{1,32}$' },
|
|
740
|
-
intake_room: {
|
|
741
|
-
type: 'object',
|
|
742
|
-
additionalProperties: false,
|
|
743
|
-
properties: { room: { $ref: '#/$defs/room' } },
|
|
744
|
-
required: ['room'],
|
|
745
|
-
},
|
|
746
|
-
external_origins: { type: 'array', items: { type: 'string', format: 'uri' } },
|
|
747
|
-
disabled: { enum: ['yes', 'no'] },
|
|
748
|
-
disabled_reason: { type: 'string' },
|
|
749
|
-
mode: { enum: ['snapshot', 'live'] },
|
|
750
|
-
unpublished: { enum: ['yes', 'no'] },
|
|
751
|
-
suspended: { enum: ['yes', 'no'] },
|
|
752
|
-
suspended_reason: { type: 'string', enum: ['full_house_required', 'public_delivery_limit'] },
|
|
753
|
-
public_overage: { enum: ['on', 'off'] },
|
|
754
|
-
publication: { $ref: '#/$defs/id' },
|
|
755
|
-
acts: { type: 'array', items: { type: 'string', enum: ['unpublish', 'republish'] } },
|
|
756
|
-
indexing: { enum: ['yes', 'no'] },
|
|
757
|
-
entry_fallback: {
|
|
758
|
-
type: 'object',
|
|
759
|
-
additionalProperties: false,
|
|
760
|
-
properties: {
|
|
761
|
-
cause: { enum: ['over_bound', 'query_refused', 'unavailable'] },
|
|
762
|
-
route: { type: 'string' },
|
|
763
|
-
recorded: { type: 'string', format: 'date-time' },
|
|
764
|
-
},
|
|
765
|
-
required: ['cause', 'route', 'recorded'],
|
|
766
|
-
},
|
|
767
|
-
created: { type: 'string', format: 'date-time' },
|
|
768
|
-
new_browsers: { type: 'integer', minimum: 0 },
|
|
769
|
-
submissions: { type: 'integer', minimum: 0 },
|
|
770
|
-
notify_me: { enum: ['on', 'off'] },
|
|
771
|
-
image_copies: { type: 'integer', minimum: 0 },
|
|
772
|
-
image_copy_bound: { type: 'integer', minimum: 0 },
|
|
773
|
-
image_copy_limit_reached: { enum: ['yes', 'no'] },
|
|
774
|
-
slots: {
|
|
775
|
-
type: 'array',
|
|
776
|
-
items: {
|
|
777
|
-
type: 'object',
|
|
778
|
-
additionalProperties: false,
|
|
779
|
-
properties: {
|
|
780
|
-
slot: { type: 'string', pattern: '^[a-z0-9]([a-z0-9-]*[a-z0-9])?$' },
|
|
781
|
-
entries: {
|
|
782
|
-
type: 'array',
|
|
783
|
-
items: {
|
|
784
|
-
type: 'object',
|
|
785
|
-
additionalProperties: false,
|
|
786
|
-
properties: {
|
|
787
|
-
room: { $ref: '#/$defs/room' },
|
|
788
|
-
segment: { type: 'string' },
|
|
789
|
-
compatibility: { enum: ['unchecked', 'compatible', 'incompatible'] },
|
|
790
|
-
},
|
|
791
|
-
required: ['room', 'segment', 'compatibility'],
|
|
792
|
-
},
|
|
793
|
-
},
|
|
794
|
-
},
|
|
795
|
-
required: ['slot', 'entries'],
|
|
796
|
-
},
|
|
797
|
-
},
|
|
798
|
-
findings: {
|
|
799
|
-
type: 'array',
|
|
800
|
-
items: {
|
|
801
|
-
type: 'object',
|
|
802
|
-
additionalProperties: false,
|
|
803
|
-
properties: {
|
|
804
|
-
slot: { type: 'string', pattern: '^[a-z0-9]([a-z0-9-]*[a-z0-9])?$' },
|
|
805
|
-
room: { $ref: '#/$defs/room' },
|
|
806
|
-
finding: { type: 'string' },
|
|
807
|
-
},
|
|
808
|
-
required: ['slot', 'room', 'finding'],
|
|
809
|
-
},
|
|
810
|
-
},
|
|
247
|
+
description: { type: 'string', maxLength: 2000, pattern: '\\S' },
|
|
248
|
+
input: { type: 'string' },
|
|
249
|
+
agent: { $ref: '#/$defs/id' },
|
|
250
|
+
afk: { type: 'boolean' },
|
|
811
251
|
},
|
|
812
|
-
required: [
|
|
813
|
-
'reflected',
|
|
814
|
-
'site',
|
|
815
|
-
'name',
|
|
816
|
-
'address',
|
|
817
|
-
'primary_address',
|
|
818
|
-
'app',
|
|
819
|
-
'tab_icon_from',
|
|
820
|
-
'disabled',
|
|
821
|
-
'mode',
|
|
822
|
-
'unpublished',
|
|
823
|
-
'suspended',
|
|
824
|
-
'indexing',
|
|
825
|
-
'created',
|
|
826
|
-
'new_browsers',
|
|
827
|
-
'submissions',
|
|
828
|
-
'notify_me',
|
|
829
|
-
'image_copies',
|
|
830
|
-
'image_copy_bound',
|
|
831
|
-
'image_copy_limit_reached',
|
|
832
|
-
],
|
|
252
|
+
required: ['description', 'input', 'agent'],
|
|
833
253
|
},
|
|
834
254
|
'house-trigger': {
|
|
835
|
-
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`;
|
|
255
|
+
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.",
|
|
836
256
|
properties: {
|
|
837
257
|
reflected: { type: 'string', format: 'date-time' },
|
|
838
258
|
trigger: { $ref: '#/$defs/id' },
|
|
839
259
|
description: { type: 'string' },
|
|
840
260
|
condition: {
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
additionalProperties: false,
|
|
845
|
-
properties: {
|
|
846
|
-
on: { const: 'documents' },
|
|
847
|
-
scope: { $ref: '#/$defs/trigger_scope' },
|
|
848
|
-
mode: { const: 'starts_matching' },
|
|
849
|
-
new_documents: { type: 'boolean' },
|
|
850
|
-
match: { $ref: '#/$defs/trigger_test' },
|
|
851
|
-
by: { $ref: '#/$defs/trigger_test' },
|
|
852
|
-
moved_between_rooms: { type: 'boolean' },
|
|
853
|
-
},
|
|
854
|
-
required: ['on', 'scope', 'mode', 'new_documents', 'match'],
|
|
855
|
-
},
|
|
856
|
-
{
|
|
857
|
-
type: 'object',
|
|
858
|
-
additionalProperties: false,
|
|
859
|
-
properties: {
|
|
860
|
-
on: { const: 'documents' },
|
|
861
|
-
scope: { $ref: '#/$defs/trigger_scope' },
|
|
862
|
-
mode: { const: 'field_changes' },
|
|
863
|
-
field: { type: 'string' },
|
|
864
|
-
from: { anyOf: [{ $ref: '#/$defs/trigger_values' }, { const: 'new' }] },
|
|
865
|
-
to: { anyOf: [{ $ref: '#/$defs/trigger_values' }, { const: 'deleted' }] },
|
|
866
|
-
match: { $ref: '#/$defs/trigger_test' },
|
|
867
|
-
by: { $ref: '#/$defs/trigger_test' },
|
|
868
|
-
moved_between_rooms: { type: 'boolean' },
|
|
869
|
-
},
|
|
870
|
-
required: ['on', 'scope', 'mode', 'field'],
|
|
871
|
-
},
|
|
872
|
-
{
|
|
873
|
-
type: 'object',
|
|
874
|
-
additionalProperties: false,
|
|
875
|
-
properties: {
|
|
876
|
-
on: { const: 'items' },
|
|
877
|
-
source: { type: 'string' },
|
|
878
|
-
address: { type: 'string' },
|
|
879
|
-
match: { $ref: '#/$defs/trigger_test' },
|
|
880
|
-
},
|
|
881
|
-
required: ['on'],
|
|
882
|
-
},
|
|
883
|
-
{
|
|
884
|
-
type: 'object',
|
|
885
|
-
additionalProperties: false,
|
|
886
|
-
properties: {
|
|
887
|
-
on: { const: 'notifications' },
|
|
888
|
-
match: { $ref: '#/$defs/trigger_test' },
|
|
889
|
-
},
|
|
890
|
-
required: ['on'],
|
|
891
|
-
},
|
|
892
|
-
{
|
|
893
|
-
type: 'object',
|
|
894
|
-
additionalProperties: false,
|
|
895
|
-
properties: {
|
|
896
|
-
on: { const: 'messages' },
|
|
897
|
-
match: { $ref: '#/$defs/trigger_test' },
|
|
898
|
-
},
|
|
899
|
-
required: ['on'],
|
|
900
|
-
},
|
|
901
|
-
{
|
|
902
|
-
type: 'object',
|
|
903
|
-
additionalProperties: false,
|
|
904
|
-
properties: {
|
|
905
|
-
on: { const: 'clock' },
|
|
906
|
-
cron: { type: 'string' },
|
|
907
|
-
time_zone: { type: 'string' },
|
|
908
|
-
},
|
|
909
|
-
required: ['on', 'cron', 'time_zone'],
|
|
910
|
-
},
|
|
911
|
-
{
|
|
912
|
-
type: 'object',
|
|
913
|
-
additionalProperties: false,
|
|
914
|
-
properties: {
|
|
915
|
-
on: { const: 'clock' },
|
|
916
|
-
scope: {
|
|
917
|
-
type: 'object',
|
|
918
|
-
additionalProperties: false,
|
|
919
|
-
properties: { type: { type: 'string' } },
|
|
920
|
-
required: ['type'],
|
|
921
|
-
},
|
|
922
|
-
date: { type: 'string' },
|
|
923
|
-
days: { type: 'integer' },
|
|
924
|
-
at: { type: 'string' },
|
|
925
|
-
time_zone: { type: 'string' },
|
|
926
|
-
match: { $ref: '#/$defs/trigger_test' },
|
|
927
|
-
},
|
|
928
|
-
required: ['on', 'scope', 'date', 'days', 'at', 'time_zone'],
|
|
929
|
-
},
|
|
930
|
-
],
|
|
261
|
+
description: 'When it fires, as the Trigger reference page writes it, a document it names at its current path.',
|
|
262
|
+
type: 'object',
|
|
263
|
+
additionalProperties: true,
|
|
931
264
|
},
|
|
932
265
|
actions: {
|
|
933
266
|
type: 'array',
|
|
@@ -966,7 +299,7 @@ export const HOUSE_MODEL_DECLARATION = {
|
|
|
966
299
|
type: 'object',
|
|
967
300
|
additionalProperties: false,
|
|
968
301
|
properties: {
|
|
969
|
-
kind: { const: '
|
|
302
|
+
kind: { const: 'agent_function' },
|
|
970
303
|
enabled: { type: 'boolean' },
|
|
971
304
|
card: { type: 'string', minLength: 1 },
|
|
972
305
|
payload: { type: 'string' },
|
|
@@ -984,6 +317,12 @@ export const HOUSE_MODEL_DECLARATION = {
|
|
|
984
317
|
},
|
|
985
318
|
required: ['kind', 'enabled', 'text'],
|
|
986
319
|
},
|
|
320
|
+
{
|
|
321
|
+
type: 'object',
|
|
322
|
+
additionalProperties: false,
|
|
323
|
+
properties: { kind: { const: 'done' }, enabled: { type: 'boolean' } },
|
|
324
|
+
required: ['kind', 'enabled'],
|
|
325
|
+
},
|
|
987
326
|
{
|
|
988
327
|
type: 'object',
|
|
989
328
|
additionalProperties: false,
|
|
@@ -1043,3 +382,13 @@ function modelText(model) {
|
|
|
1043
382
|
.join('\n')}\n`;
|
|
1044
383
|
}
|
|
1045
384
|
export const HOUSE_MODEL_TYPES = modelText(HOUSE_MODEL_DECLARATION);
|
|
385
|
+
export const HOUSE_TYPED_PATHS = [
|
|
386
|
+
{ path: 'settings/panel.md', type: 'house-panel-preferences', named: true, body: false },
|
|
387
|
+
{ path: 'settings/apps/*.md', type: 'house-app-preferences', named: true, body: false },
|
|
388
|
+
{
|
|
389
|
+
path: 'rooms/*/agent-functions/*.md',
|
|
390
|
+
type: 'house-agent-function-document',
|
|
391
|
+
named: false,
|
|
392
|
+
body: true,
|
|
393
|
+
},
|
|
394
|
+
];
|