@agentshouse/mdruntime-adapter 0.1.0-c192ba5f83f13 → 0.1.0-c19cd0fd6cd22
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/dist/actions.d.ts +1 -1
- package/dist/actions.d.ts.map +1 -1
- package/dist/actions.js +7 -3
- package/dist/adapter.d.ts.map +1 -1
- package/dist/adapter.js +15 -2
- package/dist/history.d.ts.map +1 -1
- package/dist/history.js +2 -1
- package/dist/house-model.d.ts +40 -1043
- package/dist/house-model.d.ts.map +1 -1
- package/dist/house-model.js +19 -571
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/read.d.ts +5 -1
- package/dist/read.d.ts.map +1 -1
- package/dist/read.js +28 -2
- package/dist/room-stream.d.ts +1 -0
- package/dist/room-stream.d.ts.map +1 -1
- package/dist/room-stream.js +23 -2
- package/dist/room-types.d.ts +2 -2
- package/dist/room-types.d.ts.map +1 -1
- package/dist/room-types.js +5 -6
- 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 +9 -1
- package/dist/stream.d.ts.map +1 -1
- package/dist/stream.js +13 -7
- package/dist/transport.d.ts +5 -2
- package/dist/transport.d.ts.map +1 -1
- package/dist/transport.js +2 -0
- package/dist/write.d.ts +2 -1
- package/dist/write.d.ts.map +1 -1
- package/dist/write.js +7 -17
- package/package.json +2 -2
package/dist/house-model.js
CHANGED
|
@@ -48,394 +48,11 @@ export const HOUSE_MODEL_DECLARATION = {
|
|
|
48
48
|
maxProperties: 1,
|
|
49
49
|
},
|
|
50
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
|
-
},
|
|
235
51
|
'house-app-preferences': {
|
|
236
52
|
description: "An App's preferences. Its own vocabulary is in the body.",
|
|
237
53
|
properties: { app: { $ref: '#/$defs/app' } },
|
|
238
54
|
required: ['app'],
|
|
239
55
|
},
|
|
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
56
|
'house-notification': {
|
|
440
57
|
description: "One kept Human 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 state belongs to each browser.",
|
|
441
58
|
properties: {
|
|
@@ -447,7 +64,6 @@ export const HOUSE_MODEL_DECLARATION = {
|
|
|
447
64
|
'join-request',
|
|
448
65
|
'join-request-approved',
|
|
449
66
|
'app-room-binding-incompatible',
|
|
450
|
-
'app-deleted',
|
|
451
67
|
'app-call',
|
|
452
68
|
'room-ownership-offer',
|
|
453
69
|
'managed-environment-retention-opened',
|
|
@@ -456,19 +72,12 @@ export const HOUSE_MODEL_DECLARATION = {
|
|
|
456
72
|
'sandbox-budget-spent',
|
|
457
73
|
'break-glass-owner-disclosure',
|
|
458
74
|
'routine-start-approval-request',
|
|
459
|
-
'routine-request-declined',
|
|
460
|
-
'routine-request-started',
|
|
461
|
-
'routine-request-finished',
|
|
462
|
-
'routine-request-not-started',
|
|
463
75
|
'export-ready',
|
|
464
76
|
'export-failed',
|
|
465
77
|
'site-disabled',
|
|
466
78
|
'site-binding-incompatible',
|
|
467
|
-
'site-room-left',
|
|
468
79
|
'site-images-full',
|
|
469
80
|
'custom',
|
|
470
|
-
'trigger-did-nothing',
|
|
471
|
-
'function-failed',
|
|
472
81
|
],
|
|
473
82
|
},
|
|
474
83
|
created: { type: 'string', format: 'date-time' },
|
|
@@ -479,10 +88,7 @@ export const HOUSE_MODEL_DECLARATION = {
|
|
|
479
88
|
path: { type: 'string', pattern: '^\\/' },
|
|
480
89
|
room: { $ref: '#/$defs/room' },
|
|
481
90
|
app: { $ref: '#/$defs/app' },
|
|
482
|
-
agent: { $ref: '#/$defs/id' },
|
|
483
91
|
environment: { $ref: '#/$defs/id' },
|
|
484
|
-
routine: { $ref: '#/$defs/id' },
|
|
485
|
-
routine_request: { $ref: '#/$defs/id' },
|
|
486
92
|
trigger: { $ref: '#/$defs/id' },
|
|
487
93
|
site: { $ref: '#/$defs/id' },
|
|
488
94
|
},
|
|
@@ -538,15 +144,10 @@ export const HOUSE_MODEL_DECLARATION = {
|
|
|
538
144
|
properties: { app: { $ref: '#/$defs/app' }, name: { type: 'string' } },
|
|
539
145
|
minProperties: 1,
|
|
540
146
|
},
|
|
147
|
+
release: { type: 'integer', minimum: 1 },
|
|
541
148
|
binding: { $ref: '#/$defs/id' },
|
|
542
149
|
slot: { type: 'string' },
|
|
543
150
|
findings: { type: 'array', items: { type: 'string' } },
|
|
544
|
-
owner: {
|
|
545
|
-
type: 'object',
|
|
546
|
-
additionalProperties: false,
|
|
547
|
-
properties: { name: { type: 'string' } },
|
|
548
|
-
required: ['name'],
|
|
549
|
-
},
|
|
550
151
|
caller: {
|
|
551
152
|
type: 'object',
|
|
552
153
|
additionalProperties: false,
|
|
@@ -609,19 +210,11 @@ export const HOUSE_MODEL_DECLARATION = {
|
|
|
609
210
|
type: 'object',
|
|
610
211
|
additionalProperties: false,
|
|
611
212
|
properties: {
|
|
612
|
-
routine: { $ref: '#/$defs/id' },
|
|
613
213
|
name: { type: 'string' },
|
|
614
214
|
version: { type: 'integer', minimum: 1 },
|
|
615
215
|
},
|
|
616
216
|
required: ['name'],
|
|
617
217
|
},
|
|
618
|
-
decliner: {
|
|
619
|
-
type: 'object',
|
|
620
|
-
additionalProperties: false,
|
|
621
|
-
properties: { name: { type: 'string' } },
|
|
622
|
-
required: ['name'],
|
|
623
|
-
},
|
|
624
|
-
input: { type: 'string' },
|
|
625
218
|
export: { $ref: '#/$defs/id' },
|
|
626
219
|
size_bytes: { type: 'integer', minimum: 0 },
|
|
627
220
|
site: {
|
|
@@ -631,12 +224,6 @@ export const HOUSE_MODEL_DECLARATION = {
|
|
|
631
224
|
required: ['site', 'name'],
|
|
632
225
|
},
|
|
633
226
|
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
227
|
copies: { type: 'integer', minimum: 0 },
|
|
641
228
|
bound: { type: 'integer', minimum: 0 },
|
|
642
229
|
title: { type: 'string' },
|
|
@@ -652,15 +239,6 @@ export const HOUSE_MODEL_DECLARATION = {
|
|
|
652
239
|
required: ['kind', 'trigger', 'position'],
|
|
653
240
|
},
|
|
654
241
|
path: { type: 'string', maxLength: 4096, pattern: '^\\/.*' },
|
|
655
|
-
trigger: {
|
|
656
|
-
type: 'object',
|
|
657
|
-
additionalProperties: false,
|
|
658
|
-
properties: { trigger: { $ref: '#/$defs/id' }, name: { type: 'string' } },
|
|
659
|
-
required: ['trigger', 'name'],
|
|
660
|
-
},
|
|
661
|
-
cause: { type: 'string' },
|
|
662
|
-
function: { type: 'string' },
|
|
663
|
-
error: { type: 'string' },
|
|
664
242
|
},
|
|
665
243
|
required: ['notification', 'kind', 'created', 'way_in', 'subject'],
|
|
666
244
|
},
|
|
@@ -668,16 +246,6 @@ export const HOUSE_MODEL_DECLARATION = {
|
|
|
668
246
|
description: "The panel's preferences at /rooms/private/settings/panel.md. Its own vocabulary is in the body.",
|
|
669
247
|
properties: {},
|
|
670
248
|
},
|
|
671
|
-
'house-profile': {
|
|
672
|
-
description: "The User's display name, the email they sign in with and accepted about-me Markdown.",
|
|
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
249
|
'house-routine': {
|
|
682
250
|
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.",
|
|
683
251
|
properties: {
|
|
@@ -694,145 +262,8 @@ export const HOUSE_MODEL_DECLARATION = {
|
|
|
694
262
|
},
|
|
695
263
|
required: ['reflected', 'routine', 'description', 'input', 'agent'],
|
|
696
264
|
},
|
|
697
|
-
'house-site': {
|
|
698
|
-
description: "One Site this User owns: its `name`, its address under this environment's Site suffix, its own `app`, the tab icon it shows, the one this User set for the Site while `tab_icon_from` is `site` and that App's while it is `app`, the running `release` of that App, which the Site serves, by `release` and `sequence`, its title and `intake_room`, the Intake Room by its `room`, whether an operator disabled it, its mode, and every Room slot of that release in its order. Each slot names its `slot` and as `entries` each Room its list holds, in list order, by its `room`, with that entry's address `segment` and the last `compatibility` outcome of that entry; a slot that lists no Room has no entry. Each finding names its `slot`, its `room` and one exact structural `finding` of that Room against the slot. An incompatible entry stays listed and blocks nothing. `release` is absent until that App's first release. `disabled` is `yes` while an operator holds the Site disabled, and `disabled_reason` carries the reason the operator stated; visitors then find the Site unavailable, this User may still change or delete it, and only an operator enables it again. `mode` is `snapshot` while visitors see the Published Snapshot `publication` names, or `live` while they see what its Rooms hold as it changes, which needs Full House; only this User changes it. `unpublished` is `yes` while this User holds the Site unpublished: visitors then find it unavailable at every address and nothing else changes, and only this User's republication serves it again; an operator's enable never does. `suspended` is `yes` while visitors find the Site unavailable at every address for the reason `suspended_reason` names: `full_house_required` while the Site is `live` and this User lacks Full House, or `public_delivery_limit` while what House's server sent for this User's Sites this UTC month has reached this User's Public delivery limit, unless `public_overage` is `on` while this User holds Full House. A suspension keeps the publication, the addresses, the Custom domains and every act of this User's, and ends by itself at the next UTC month, when this User gains Full House or when `public_overage` turns `on` while this User holds Full House; it lifts no Unpublish and no operator's disable. `public_overage` is `on` while this User keeps the Site serving past the Public delivery limit, which it does only while this User holds Full House; what it sends past the limit is charged as overage. It stays `on` when Full House ends and acts again when Full House returns, and is absent on a Building that offers no Public overage. `publication` is the Published Snapshot the Site serves, or serves once republished, absent while it holds none. `acts` names the publication acts this User may take now: `unpublish` while the Site is published, `republish` while it is unpublished and holds a publication to serve; Publish data also serves an unpublished Site again, with what its Rooms hold. A cleared title is absent. `description` carries presentation. `screenshot` is the address of the image House captured of the Site at its primary address after a release, which a shared link to the Site shows, absent before the first capture. `analytics` is the owner's measurement ID the Site loads its analytics tag with, absent while unset. `indexing` is the search-engines-and-agents switch: while it is `yes`, the Site serves its documents as Markdown and lists them in its indexes. `entry_fallback` names the last time this release's Entry Data Contract could not serve an Entry Page as HTML: its `cause` (`over_bound`, `query_refused` or `unavailable`), the `route` and when it was `recorded`; that page then started the App as usual. `external_origins` names the declared external origins of that release. `notify_me` is `on` while the Site's notification Trigger is present and enabled in its Intake Room. `addresses` lists every address the Site answers at: its address under the Site suffix and each active Custom domain; every address other than `primary_address` redirects to it. Each `domains` entry names one Custom domain's `host`, its `state`, `pending`, `active` or `failed`, the DNS alias target its hostname must point at as `dns_target`, which is this environment's and the same for every domain, and the edge's `reason` when it gives one.",
|
|
699
|
-
properties: {
|
|
700
|
-
reflected: { type: 'string', format: 'date-time' },
|
|
701
|
-
site: { $ref: '#/$defs/id' },
|
|
702
|
-
name: { type: 'string' },
|
|
703
|
-
address: { type: 'string', format: 'uri' },
|
|
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
|
-
},
|
|
811
|
-
},
|
|
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
|
-
],
|
|
833
|
-
},
|
|
834
265
|
'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`; a `routine` action sends its `payload` to the Routine whose card under this Room's `house/routines/` its `card` names, absent while this Room holds no card of that Routine; 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 Routine's card, the App's latest release and the owner's functions.",
|
|
266
|
+
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`; a `routine` action sends its `payload` to the Routine whose card under this Room's `house/routines/` its `card` names, absent while this Room holds no card of that Routine; a `message` action puts its `text` into the active conversation that Routine started for what the Event is about, or starts that Routine when none is active; a `done` action marks Done every active conversation a Routine 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 Routine's card, the App's latest release and the owner's functions.",
|
|
836
267
|
properties: {
|
|
837
268
|
reflected: { type: 'string', format: 'date-time' },
|
|
838
269
|
trigger: { $ref: '#/$defs/id' },
|
|
@@ -973,6 +404,23 @@ export const HOUSE_MODEL_DECLARATION = {
|
|
|
973
404
|
},
|
|
974
405
|
required: ['kind', 'enabled', 'payload'],
|
|
975
406
|
},
|
|
407
|
+
{
|
|
408
|
+
type: 'object',
|
|
409
|
+
additionalProperties: false,
|
|
410
|
+
properties: {
|
|
411
|
+
kind: { const: 'message' },
|
|
412
|
+
enabled: { type: 'boolean' },
|
|
413
|
+
card: { type: 'string', minLength: 1 },
|
|
414
|
+
text: { type: 'string' },
|
|
415
|
+
},
|
|
416
|
+
required: ['kind', 'enabled', 'text'],
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
type: 'object',
|
|
420
|
+
additionalProperties: false,
|
|
421
|
+
properties: { kind: { const: 'done' }, enabled: { type: 'boolean' } },
|
|
422
|
+
required: ['kind', 'enabled'],
|
|
423
|
+
},
|
|
976
424
|
{
|
|
977
425
|
type: 'object',
|
|
978
426
|
additionalProperties: false,
|