@agentshouse/mdruntime-adapter 0.1.0-c8ae0c885a042 → 0.1.0-c8bea6080a48d
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 +8 -13
- package/dist/actions.d.ts.map +1 -1
- package/dist/actions.js +5 -69
- package/dist/adapter.d.ts.map +1 -1
- package/dist/adapter.js +78 -124
- package/dist/discovery.d.ts +3 -3
- package/dist/discovery.d.ts.map +1 -1
- package/dist/discovery.js +8 -9
- package/dist/gather.d.ts +0 -1
- package/dist/gather.d.ts.map +1 -1
- package/dist/gather.js +1 -1
- package/dist/house-model.d.ts +1 -1
- package/dist/house-model.d.ts.map +1 -1
- package/dist/house-model.js +145 -98
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/model.d.ts +2 -2
- package/dist/model.d.ts.map +1 -1
- package/dist/part.d.ts +11 -12
- package/dist/part.d.ts.map +1 -1
- package/dist/part.js +63 -55
- package/dist/read.d.ts +10 -15
- package/dist/read.d.ts.map +1 -1
- package/dist/read.js +35 -47
- package/dist/room-stream.d.ts +19 -0
- package/dist/room-stream.d.ts.map +1 -0
- package/dist/room-stream.js +57 -0
- package/dist/room-types.d.ts +1 -1
- package/dist/room-types.d.ts.map +1 -1
- package/dist/room-types.js +1 -0
- package/dist/site.d.ts.map +1 -1
- package/dist/site.js +33 -72
- package/dist/stream.d.ts.map +1 -1
- package/dist/stream.js +2 -1
- package/dist/transport.d.ts +12 -2
- package/dist/transport.d.ts.map +1 -1
- package/dist/transport.js +1 -0
- package/dist/write.d.ts +4 -0
- package/dist/write.d.ts.map +1 -1
- package/dist/write.js +10 -2
- package/package.json +2 -2
package/dist/house-model.js
CHANGED
|
@@ -42,11 +42,39 @@ export const HOUSE_MODEL_TYPES = `$defs:
|
|
|
42
42
|
activated: { type: string, format: date-time }
|
|
43
43
|
settled: { type: string, format: date-time }
|
|
44
44
|
environment_starting: { const: true }
|
|
45
|
+
undelivered: { const: true }
|
|
45
46
|
result: { type: string }
|
|
46
47
|
url: { type: string, format: uri }
|
|
47
48
|
required: [ routine_request, origin, state, target, created ]
|
|
49
|
+
caller:
|
|
50
|
+
description: One caller of a Routine Access, a User under \`user\` with their account \`email\` and display \`name\`, or under \`user\` alone once they left the Room, or the Access's \`room\`, whose Triggers then call.
|
|
51
|
+
type: object
|
|
52
|
+
additionalProperties: false
|
|
53
|
+
properties:
|
|
54
|
+
user: { $ref: '#/$defs/id' }
|
|
55
|
+
email: { type: string }
|
|
56
|
+
name: { type: string }
|
|
57
|
+
room: { $ref: '#/$defs/room' }
|
|
58
|
+
minProperties: 1
|
|
59
|
+
trigger_test:
|
|
60
|
+
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.
|
|
61
|
+
type: object
|
|
62
|
+
additionalProperties: true
|
|
63
|
+
trigger_values:
|
|
64
|
+
type: array
|
|
65
|
+
items: { anyOf: [ { type: string }, { type: number }, { type: boolean } ] }
|
|
66
|
+
trigger_scope:
|
|
67
|
+
description: The documents a Trigger condition watches, by \`type\`, by \`folder\` or one document at its \`path\`, which \`create_trigger\` takes as \`document\`.
|
|
68
|
+
type: object
|
|
69
|
+
additionalProperties: false
|
|
70
|
+
properties:
|
|
71
|
+
type: { type: string }
|
|
72
|
+
folder: { type: string }
|
|
73
|
+
path: { type: string }
|
|
74
|
+
minProperties: 1
|
|
75
|
+
maxProperties: 1
|
|
48
76
|
house-account:
|
|
49
|
-
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
|
|
77
|
+
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\`, with \`business_app\` where its signup offers to keep the WhatsApp Business app on the number's phone, while it offers Connect Meta, \`tiktok: available\` while it offers Connect TikTok, \`building: administrator\` while the User is one of the Building's administrators, and \`full_house: true\` while the User holds Full House."
|
|
50
78
|
properties:
|
|
51
79
|
reflected: { type: string, format: date-time }
|
|
52
80
|
user: { $ref: '#/$defs/id' }
|
|
@@ -54,28 +82,29 @@ house-account:
|
|
|
54
82
|
language: { enum: [ en ] }
|
|
55
83
|
notifications: { type: array, items: { type: object, additionalProperties: false, properties: { group: { type: string }, channels: { type: array, items: { type: string } } }, required: [ group, channels ] } }
|
|
56
84
|
created: { type: string, format: date-time }
|
|
57
|
-
telegram: { enum: [ available, linked ] }
|
|
85
|
+
telegram: { enum: [ available, linked, started ] }
|
|
58
86
|
meta: { type: object, additionalProperties: false, properties: { application: { type: string, pattern: '^\\d{1,32}$' }, configuration: { type: string, pattern: '^\\d{1,32}$' }, business_app: { const: true } }, required: [ application, configuration ] }
|
|
59
87
|
tiktok: { enum: [ available ] }
|
|
60
88
|
building: { enum: [ administrator ] }
|
|
89
|
+
full_house: { const: true }
|
|
61
90
|
required: [ reflected, user, email_verified, notifications, created ]
|
|
62
91
|
house-agent:
|
|
63
|
-
description: One registered Agent this User owns
|
|
92
|
+
description: One registered Agent this User owns, with the \`profile\` and \`environment\` it binds, when it was \`created\` and, once it is, \`retired\`.
|
|
64
93
|
properties:
|
|
65
94
|
reflected: { type: string, format: date-time }
|
|
66
|
-
agent: {
|
|
95
|
+
agent: { $ref: '#/$defs/id' }
|
|
67
96
|
name: { type: string }
|
|
68
|
-
profile: {
|
|
69
|
-
environment: {
|
|
97
|
+
profile: { $ref: '#/$defs/id' }
|
|
98
|
+
environment: { $ref: '#/$defs/id' }
|
|
70
99
|
launch_directory: { type: string }
|
|
71
|
-
|
|
100
|
+
created: { type: string, format: date-time }
|
|
72
101
|
retired: { type: string, format: date-time }
|
|
73
|
-
required: [ reflected, agent, name, profile, environment, launch_directory,
|
|
102
|
+
required: [ reflected, agent, name, profile, environment, launch_directory, created ]
|
|
74
103
|
house-agent-profile:
|
|
75
104
|
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.
|
|
76
105
|
properties:
|
|
77
106
|
reflected: { type: string, format: date-time }
|
|
78
|
-
profile: {
|
|
107
|
+
profile: { $ref: '#/$defs/id' }
|
|
79
108
|
name: { type: string }
|
|
80
109
|
revision: { type: integer, minimum: 0 }
|
|
81
110
|
adapter_kind: { type: string }
|
|
@@ -85,53 +114,50 @@ house-agent-profile:
|
|
|
85
114
|
arguments: { type: array, items: { type: string } }
|
|
86
115
|
required: [ reflected, profile, name, revision ]
|
|
87
116
|
house-app:
|
|
88
|
-
description: One App this User owns, holds or installed, \`ownership\` naming whether it is its own or one it holds, 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 with the external origins it declares as \`external_origins\`, whether its code reaches this User's conversations as \`conversations
|
|
117
|
+
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, which apps/features/set answers as \`features_version\`."
|
|
89
118
|
properties:
|
|
90
119
|
reflected: { type: string, format: date-time }
|
|
91
|
-
app: {
|
|
92
|
-
app_ref: { type: string, pattern: '^a_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$' }
|
|
120
|
+
app: { $ref: '#/$defs/app' }
|
|
93
121
|
address: { type: string, pattern: '^\\/app\\/a_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$' }
|
|
94
|
-
|
|
122
|
+
name: { type: string }
|
|
95
123
|
ownership: { enum: [ own, held ] }
|
|
96
|
-
|
|
124
|
+
owner: { type: object, additionalProperties: false, properties: { name: { type: string } }, required: [ name ] }
|
|
125
|
+
my_app: { const: true }
|
|
97
126
|
created: { type: string, format: date-time }
|
|
98
|
-
forked_from: { type: string, format: uuid }
|
|
99
127
|
tab_icon_light: { type: string, pattern: ^data:image\\/ }
|
|
100
128
|
tab_icon_dark: { type: string, pattern: ^data:image\\/ }
|
|
101
129
|
tab_icon_colours: { type: array, items: { type: string, pattern: '^#[0-9a-f]{6}$' } }
|
|
102
130
|
tab_icon_blend: { enum: [ linear, radial ] }
|
|
103
131
|
tab_icon_angle: { type: integer, minimum: 0, maximum: 359 }
|
|
104
|
-
latest_release: { type:
|
|
132
|
+
latest_release: { type: object, additionalProperties: false, properties: { release: { $ref: '#/$defs/id' }, sequence: { type: integer, exclusiveMinimum: 0 } }, required: [ release, sequence ] }
|
|
105
133
|
external_origins: { type: array, items: { type: string, format: uri } }
|
|
106
134
|
conversations: { enum: [ yes, no ] }
|
|
107
|
-
room_slots: { type:
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
135
|
+
room_slots: { type: array, items: { type: object, additionalProperties: false, properties: { slot: { type: string }, access: { enum: [ read, write ] }, types: { type: array, items: { type: string } } }, required: [ slot, access, types ] } }
|
|
136
|
+
functions: { type: array, items: { type: string } }
|
|
137
|
+
installations: { type: array, items: { type: object, additionalProperties: false, properties: { installation: { $ref: '#/$defs/id' }, release: { $ref: '#/$defs/id' }, created: { type: string, format: date-time } }, required: [ installation, release, created ] } }
|
|
138
|
+
holders: { type: array, items: { type: object, additionalProperties: false, properties: { user: { $ref: '#/$defs/id' }, name: { type: string }, email: { type: string } }, required: [ user, name, email ] } }
|
|
139
|
+
features: { type: array, items: { type: object, additionalProperties: false, properties: { feature: { type: string }, consent: { enum: [ allowed, denied ] } }, required: [ feature, consent ] } }
|
|
111
140
|
features_version: { type: integer, exclusiveMinimum: 0 }
|
|
112
|
-
required: [ reflected, app,
|
|
141
|
+
required: [ reflected, app, address, name, ownership, created ]
|
|
113
142
|
house-app-preferences:
|
|
114
143
|
description: An App's preferences. Its own vocabulary is in the body.
|
|
115
144
|
properties:
|
|
116
|
-
app: {
|
|
145
|
+
app: { $ref: '#/$defs/app' }
|
|
117
146
|
required: [ app ]
|
|
118
147
|
house-app-room-binding:
|
|
119
|
-
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
|
|
148
|
+
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."
|
|
120
149
|
properties:
|
|
121
150
|
reflected: { type: string, format: date-time }
|
|
122
|
-
app: {
|
|
123
|
-
app_ref: { type: string, pattern: '^a_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$' }
|
|
151
|
+
app: { $ref: '#/$defs/app' }
|
|
124
152
|
slot: { type: string, pattern: '^[a-z0-9]([a-z0-9-]*[a-z0-9])?$' }
|
|
125
153
|
types: { type: array, items: { type: string } }
|
|
126
154
|
slot_access: { enum: [ read, write ] }
|
|
127
|
-
shared_schema: { type: string,
|
|
128
|
-
shared_schema_compatibility: { enum: [ unchecked, compatible, incompatible ] }
|
|
129
|
-
shared_schema_findings: { type: array, items: { type: string } }
|
|
155
|
+
shared_schema: { type: object, additionalProperties: false, properties: { shared_schema: { $ref: '#/$defs/id' }, compatibility: { enum: [ unchecked, compatible, incompatible ] }, findings: { type: array, items: { type: string } } }, required: [ shared_schema, compatibility, findings ] }
|
|
130
156
|
rooms: { enum: [ all, all_but_private ] }
|
|
131
157
|
left_out: { type: integer, minimum: 0 }
|
|
132
|
-
entries: { type: array, items: { type:
|
|
133
|
-
findings: { type: array, items: { type:
|
|
134
|
-
required: [ reflected, app,
|
|
158
|
+
entries: { type: array, items: { type: object, additionalProperties: false, properties: { room: { $ref: '#/$defs/room' }, compatibility: { enum: [ unchecked, compatible, incompatible ] } }, required: [ room, compatibility ] } }
|
|
159
|
+
findings: { type: array, items: { type: object, additionalProperties: false, properties: { room: { $ref: '#/$defs/room' }, finding: { type: string } }, required: [ room, finding ] } }
|
|
160
|
+
required: [ reflected, app, slot ]
|
|
135
161
|
house-client:
|
|
136
162
|
description: One MCP client this User authorized, named as it was created. Its last use and whether its credentials expired are read on request.
|
|
137
163
|
properties:
|
|
@@ -144,53 +170,37 @@ house-client:
|
|
|
144
170
|
end: { enum: [ revoked ] }
|
|
145
171
|
required: [ reflected, client, name, kind, created ]
|
|
146
172
|
house-environment:
|
|
147
|
-
description: "One Environment this User holds, with its configuration, its \`
|
|
173
|
+
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."
|
|
148
174
|
properties:
|
|
149
175
|
reflected: { type: string, format: date-time }
|
|
150
|
-
environment: {
|
|
151
|
-
|
|
152
|
-
|
|
176
|
+
environment: { $ref: '#/$defs/id' }
|
|
177
|
+
name: { type: string }
|
|
178
|
+
created: { type: string, format: date-time }
|
|
153
179
|
revoked: { type: string, format: date-time }
|
|
154
180
|
reach: { enum: [ all, all_but_private, selected ] }
|
|
155
|
-
rooms: { type: array, items: { type:
|
|
181
|
+
rooms: { type: array, items: { type: object, additionalProperties: false, properties: { room: { $ref: '#/$defs/room' } }, required: [ room ] } }
|
|
156
182
|
login_code: { enum: [ yes, no ] }
|
|
157
|
-
|
|
183
|
+
kind: { enum: [ sandbox, vps, own ] }
|
|
158
184
|
lifecycle: { enum: [ provisioning, starting, available, stopped, failed ] }
|
|
159
|
-
offered: { type: array, items: { type: string
|
|
160
|
-
wanted: { type: array, items: { type: string
|
|
161
|
-
agents: { type: array, items: { type:
|
|
185
|
+
offered: { type: array, items: { type: string } }
|
|
186
|
+
wanted: { type: array, items: { type: string } }
|
|
187
|
+
agents: { type: array, items: { type: object, additionalProperties: false, properties: { kind: { type: string, minLength: 1, maxLength: 64 }, version: { anyOf: [ { type: string, minLength: 1, maxLength: 64 }, { type: 'null' } ] }, minimum: { description: "Present only for a CLI below its adapter's minimum version: that minimum.", type: string, minLength: 1, maxLength: 64 }, failure: { anyOf: [ { type: string, minLength: 1, maxLength: 4096 }, { type: 'null' } ] }, installing: { description: 'Present only while the Kit installs the CLI, whose version and failure are then null.', type: boolean, const: true }, signed_in: { type: boolean }, models: { maxItems: 256, type: array, items: { type: object, additionalProperties: false, properties: { model: { type: string, minLength: 1 }, efforts: { maxItems: 32, type: array, items: { type: string, minLength: 1 } } }, required: [ model, efforts ] } }, modes: { maxItems: 32, type: array, items: { type: object, additionalProperties: false, properties: { mode: { type: string, minLength: 1 }, name: { type: string, minLength: 1, maxLength: 128 } }, required: [ mode, name ] } }, full_access: { anyOf: [ { type: string, minLength: 1 }, { type: 'null' } ] } }, required: [ kind, version, failure, signed_in, models, modes, full_access ] } }
|
|
162
188
|
transcribe: { enum: [ on, off ] }
|
|
163
|
-
transcription: { type:
|
|
189
|
+
transcription: { type: object, additionalProperties: false, properties: { installed: { type: boolean }, failure: { anyOf: [ { type: string, minLength: 1, maxLength: 4096 }, { type: 'null' } ] } }, required: [ installed, failure ] }
|
|
164
190
|
os: { type: string }
|
|
165
191
|
kit_release: { type: string }
|
|
166
|
-
kit_wire: { type: integer, exclusiveMinimum: 0 }
|
|
167
|
-
house_wire: { type: integer, exclusiveMinimum: 0 }
|
|
168
192
|
form: { enum: [ laptop, desktop, server ] }
|
|
169
193
|
failed: { enum: [ provisioning_failed, bootstrap_timeout, provider_capacity, provider_unavailable, provider_removed, placement_conflict, placement_intervention, environment_authority_unavailable ] }
|
|
170
|
-
budget: { type: string, pattern:
|
|
194
|
+
budget: { type: string, pattern: ^\\d+(?:\\.\\d+)?$ }
|
|
171
195
|
budget_spent: { enum: [ yes, no ] }
|
|
172
|
-
ssh: { type: string, pattern: ^root
|
|
173
|
-
|
|
174
|
-
required: [ reflected, environment, label, issued, reach, hosting, offered, transcribe ]
|
|
196
|
+
ssh: { type: string, pattern: ^root@\\S+$ }
|
|
197
|
+
required: [ reflected, environment, name, created, reach, kind, offered, transcribe ]
|
|
175
198
|
house-exports:
|
|
176
199
|
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\`.
|
|
177
200
|
properties:
|
|
178
201
|
reflected: { type: string, format: date-time }
|
|
179
202
|
exports: { type: array, items: { type: object, additionalProperties: false, properties: { export: { $ref: '#/$defs/id' }, status: { enum: [ queued, running, ready, failed ] }, created: { type: string, format: date-time }, expires: { type: string, format: date-time }, page: { type: string, pattern: '^\\/exports\\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$' } }, required: [ export, status, created ] } }
|
|
180
203
|
required: [ reflected ]
|
|
181
|
-
house-external-account:
|
|
182
|
-
description: "One outside account this User owns, or may use through a Room it is added to, \`ownership\` naming which, never its key: the origin it is sent to, the \`form\` it is sent in, its \`kind\` with the header or query parameter \`name\` or the path \`prefix\`, the address of its origin's icon once House kept one, and as \`connections\` each App slot connected to it in a Room this User belongs to, with that Room. To its owner, \`rooms\` names each Room the account is added to, the Schema Roles that may use it there and whether its use there is \`suspended\` until its owner adds it again."
|
|
183
|
-
properties:
|
|
184
|
-
reflected: { type: string, format: date-time }
|
|
185
|
-
external_account: { $ref: '#/$defs/id' }
|
|
186
|
-
name: { type: string }
|
|
187
|
-
origin: { type: string, format: uri }
|
|
188
|
-
form: { type: object, additionalProperties: false, properties: { kind: { enum: [ bearer, header, query, basic, path ] }, name: { type: string }, prefix: { type: string } }, required: [ kind ] }
|
|
189
|
-
ownership: { enum: [ own, used ] }
|
|
190
|
-
icon: { type: string, pattern: '^\\/external-accounts\\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\\/icon$' }
|
|
191
|
-
rooms: { type: array, items: { type: object, additionalProperties: false, properties: { room: { $ref: '#/$defs/room' }, schema_roles: { type: array, items: { type: string } }, suspended: { type: boolean } }, required: [ room, schema_roles, suspended ] } }
|
|
192
|
-
connections: { type: array, items: { type: object, additionalProperties: false, properties: { app: { $ref: '#/$defs/app' }, slot: { type: string, pattern: '^[a-z0-9]([a-z0-9-]*[a-z0-9])?$' }, room: { $ref: '#/$defs/room' } }, required: [ app, slot, room ] } }
|
|
193
|
-
required: [ reflected, external_account, name, origin, form, ownership ]
|
|
194
204
|
house-member:
|
|
195
205
|
description: One User who shares a Room with this User, with their current display name and accepted about-me Markdown. Their email, the Rooms they share and each one's access are in the \`roster\` of each \`house-room\` document.
|
|
196
206
|
properties:
|
|
@@ -203,7 +213,7 @@ house-notification:
|
|
|
203
213
|
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."
|
|
204
214
|
properties:
|
|
205
215
|
notification: { $ref: '#/$defs/id' }
|
|
206
|
-
kind: { type: string, enum: [ share-offer, join-request, join-request-approved, app-room-binding-incompatible, app-deleted, app-call, room-ownership-offer, managed-environment-retention-opened, managed-environment-placement-intervention, storage-full, sandbox-budget-spent, break-glass-owner-disclosure, routine-start-approval-request, routine-request-declined, routine-request-started, routine-request-finished, routine-request-not-started, export-ready, export-failed, site-disabled, site-binding-incompatible, site-room-left, site-images-full, custom, trigger-did-nothing ] }
|
|
216
|
+
kind: { type: string, enum: [ share-offer, join-request, join-request-approved, app-room-binding-incompatible, app-deleted, app-call, room-ownership-offer, managed-environment-retention-opened, managed-environment-placement-intervention, storage-full, sandbox-budget-spent, break-glass-owner-disclosure, routine-start-approval-request, routine-request-declined, routine-request-started, routine-request-finished, routine-request-not-started, export-ready, export-failed, site-disabled, site-binding-incompatible, site-room-left, site-images-full, custom, trigger-did-nothing, function-failed ] }
|
|
207
217
|
created: { type: string, format: date-time }
|
|
208
218
|
way_in: { type: object, additionalProperties: false, properties: { path: { type: string, pattern: ^\\/ }, room: { $ref: '#/$defs/room' }, app: { $ref: '#/$defs/app' }, agent: { $ref: '#/$defs/id' }, environment: { $ref: '#/$defs/id' }, routine: { $ref: '#/$defs/id' }, routine_request: { $ref: '#/$defs/id' }, trigger: { $ref: '#/$defs/id' }, site: { $ref: '#/$defs/id' } }, minProperties: 1 }
|
|
209
219
|
subject: { type: string }
|
|
@@ -256,6 +266,8 @@ house-notification:
|
|
|
256
266
|
path: { type: string, maxLength: 4096, pattern: ^\\/.* }
|
|
257
267
|
trigger: { type: object, additionalProperties: false, properties: { trigger: { $ref: '#/$defs/id' }, name: { type: string } }, required: [ trigger, name ] }
|
|
258
268
|
cause: { type: string }
|
|
269
|
+
function: { type: string }
|
|
270
|
+
error: { type: string }
|
|
259
271
|
required: [ notification, kind, created, way_in, subject ]
|
|
260
272
|
house-ownership-offer:
|
|
261
273
|
description: One open Room ownership offer addressed to this User. The Room's name and the name of the owner it is \`from\` are captured when the offer is made. The page is the House approval path where this User accepts or declines.
|
|
@@ -299,7 +311,7 @@ house-push-address:
|
|
|
299
311
|
event_json: { type: string }
|
|
300
312
|
required: [ reflected, push_address, room, source ]
|
|
301
313
|
house-requests:
|
|
302
|
-
description: "The Routine Requests of one Room this User
|
|
314
|
+
description: "The Routine Requests of one Room this User holds at the Keep level: each one waiting or started under \`current\` and the 50 that changed last under \`history\`. Each names its \`routine\` by \`name\` and \`version\`, the \`target\` User whose Agent it asks, the \`agent\` that took it, the \`routine_access\` and \`record\` it went through, the Users it was \`approved_by\` and \`settled_by\`, and when it was \`created\`, \`approved\`, \`activated\` and \`settled\`; a started one is \`undelivered\` while its Agent's computer has not taken it, which House hands it once that computer connects; a fact it does not hold is absent. Only the Agent’s owner sees a request’s conversation. A Room with no request has no such document."
|
|
303
315
|
properties:
|
|
304
316
|
reflected: { type: string, format: date-time }
|
|
305
317
|
room: { $ref: '#/$defs/room' }
|
|
@@ -307,7 +319,7 @@ house-requests:
|
|
|
307
319
|
history: { type: array, items: { $ref: '#/$defs/request' } }
|
|
308
320
|
required: [ reflected, room, current, history ]
|
|
309
321
|
house-room:
|
|
310
|
-
description: "One Room this User reads, with the processing configuration that indexes it. \`my_room\` is \`true\` on this User's My Room alone, whatever its name and handle become. \`admission\` is \`pending\` while House is still settling this User into the Room, which finishes on its own and needs no act. \`
|
|
322
|
+
description: "One Room this User reads, with the processing configuration that indexes it. \`my_room\` is \`true\` on this User's My Room alone, whatever its name and handle become. \`admission\` is \`pending\` while House is still settling this User into the Room, which finishes on its own and needs no act. \`access\` is this User's access word in the Room, \`owner\`, \`manage\`, \`edit\`, \`keep\`, \`open\` or \`search\`, with \`only_while_online\` on a \`manage\` or \`edit\` held at the Open level; \`level\` is the access level they hold on its content, \`search\`, \`open\` or \`keep\`, and \`operations\` are their own on its content. \`policy\` is whether House indexes the Room's documents, \`Off\` while it withholds indexing. Each indexing entry names a folder \`path\` and the \`policy\` set on it. \`shared_schema\` names the Shared schema whose copy is the Room's schema while the Room uses one, with its \`name\`. The owner alone sees \`ownership_offer\`, the \`nominee\` it is offered to and when it \`expires\`, while an offer is open, and \`public\`, the time they made the Room public, while every House User may read it; a member who does not own it sees its \`owner\` by name. \`roster\` lists the Room's members, each with when they were \`admitted\`, their member \`document\` and the access level and operations a Room Share could offer them without giving them anything new as \`held\`; it and \`rights\` carry the access this User may see, every member's to one who manages the Room and their own otherwise; \`routines\` lists the Routine Accesses this User or the Room's Triggers may call in it, each with its \`routine\`, by \`name\`, \`description\`, \`input\` and \`version\`, its \`agent\` and that Agent's \`owner\` by name: \`starts_without_approval\` on one this User may call and \`triggers: true\` on one the Triggers may call."
|
|
311
323
|
properties:
|
|
312
324
|
reflected: { type: string, format: date-time }
|
|
313
325
|
room: { $ref: '#/$defs/room' }
|
|
@@ -316,8 +328,9 @@ house-room:
|
|
|
316
328
|
my_room: { const: true }
|
|
317
329
|
membership: { enum: [ owner, member ] }
|
|
318
330
|
ownership_offer: { type: object, additionalProperties: false, properties: { nominee: { type: object, additionalProperties: false, properties: { user: { $ref: '#/$defs/id' }, name: { type: string } }, required: [ user, name ] }, expires: { type: string, format: date-time } }, required: [ nominee, expires ] }
|
|
319
|
-
access: { enum: [ owner, manage, edit,
|
|
320
|
-
|
|
331
|
+
access: { enum: [ owner, manage, edit, keep, open, search ] }
|
|
332
|
+
level: { enum: [ search, open, keep ] }
|
|
333
|
+
only_while_online: { const: true }
|
|
321
334
|
operations: { type: array, items: { type: string, enum: [ write, delete, export, manageAccess ] } }
|
|
322
335
|
owner: { type: object, additionalProperties: false, properties: { name: { type: string } }, required: [ name ] }
|
|
323
336
|
members: { type: integer, minimum: 0 }
|
|
@@ -332,81 +345,90 @@ house-room:
|
|
|
332
345
|
policy: { enum: [ On, Off ] }
|
|
333
346
|
indexing: { type: array, items: { type: object, additionalProperties: false, properties: { path: { type: string, minLength: 1 }, policy: { enum: [ On, Off ] } }, required: [ path, policy ] } }
|
|
334
347
|
shared_schema: { type: object, additionalProperties: false, properties: { shared_schema: { $ref: '#/$defs/id' }, name: { type: string } }, required: [ shared_schema, name ] }
|
|
335
|
-
roster: { type: array, items: { type: object, additionalProperties: false, properties: { user: { $ref: '#/$defs/id' }, name: { type: string }, owner: { type: boolean }, email: { type: string }, admitted: { type: string, format: date-time }, access: { type: string, enum: [ owner, manage, edit,
|
|
336
|
-
rights: { type: array, items: { type: object, additionalProperties: false, properties: { user: { $ref: '#/$defs/id' }, name: { type: string }, entries: { type: array, items: { type: object, additionalProperties: false, properties: { namespace: { $ref: '#/$defs/namespace' },
|
|
348
|
+
roster: { type: array, items: { type: object, additionalProperties: false, properties: { user: { $ref: '#/$defs/id' }, name: { type: string }, owner: { type: boolean }, email: { type: string }, admitted: { type: string, format: date-time }, access: { type: string, enum: [ owner, manage, edit, keep, open, search ] }, only_while_online: { const: true }, document: { $ref: '#/$defs/document' }, schema_roles: { type: array, items: { type: string } }, held: { type: object, additionalProperties: false, properties: { level: { anyOf: [ { type: string, enum: [ search, open, keep ] }, { type: 'null' } ] }, operations: { type: array, items: { type: string, enum: [ write, delete, export, manageAccess ] } } }, required: [ level, operations ] } }, required: [ user, name, owner, email ] } }
|
|
349
|
+
rights: { type: array, items: { type: object, additionalProperties: false, properties: { user: { $ref: '#/$defs/id' }, name: { type: string }, entries: { type: array, items: { type: object, additionalProperties: false, properties: { namespace: { $ref: '#/$defs/namespace' }, level: { anyOf: [ { type: string, enum: [ search, open, keep ] }, { type: 'null' } ] }, operations: { type: array, items: { type: string, enum: [ write, delete, export, manageAccess ] } }, sources: { type: array, items: { type: object, additionalProperties: false, properties: { kind: { type: string, enum: [ direct, inherited ] }, namespace: { $ref: '#/$defs/namespace' }, level: { anyOf: [ { type: string, enum: [ search, open, keep ] }, { type: 'null' } ] }, operations: { type: array, items: { type: string, enum: [ write, delete, export, manageAccess ] } } }, required: [ kind, namespace, level, operations ] } } }, required: [ namespace, level, operations, sources ] } }, direct: { type: array, items: { type: object, additionalProperties: false, properties: { namespace: { $ref: '#/$defs/namespace' }, level: { anyOf: [ { type: string, enum: [ search, open, keep ] }, { type: 'null' } ] }, operations: { type: array, items: { type: string, enum: [ write, delete, export, manageAccess ] } } }, required: [ namespace, level, operations ] } }, admitted: { type: string, format: date-time }, schema_roles: { type: array, items: { type: string } } }, required: [ user, name, entries, direct, schema_roles ] } }
|
|
337
350
|
routines: { type: array, items: { type: object, additionalProperties: false, properties: { routine_access: { $ref: '#/$defs/id' }, agent: { $ref: '#/$defs/id' }, owner: { type: object, additionalProperties: false, properties: { name: { type: string } }, required: [ name ] }, routine: { type: object, additionalProperties: false, properties: { name: { type: string }, description: { type: string }, input: { type: string }, version: { type: integer, exclusiveMinimum: 0 } }, required: [ name, description, input, version ] }, starts_without_approval: { type: boolean }, triggers: { type: boolean, const: true } }, required: [ routine_access, agent, owner, routine ] } }
|
|
338
351
|
required: [ reflected, room, name, membership, access, admission, created, policy ]
|
|
339
352
|
house-routine-access:
|
|
340
|
-
description: "One Routine Access this User granted,
|
|
353
|
+
description: "One Routine Access this User granted, its \`routine\` by identifier and \`name\`, the \`agent\` it calls, its \`room\` and when it was \`created\`. While a scope is \`selected_users\`, each invokers or starters entry names one \`user\` by identifier with their account \`email\` and display \`name\` as of the last write of this document, or by identifier alone once that User has left the Room. An entry naming the Access's \`room\` admits the Room's Triggers as a caller, or lets them start without approval, whatever the scope. \`allowance\` is the daily request allowance every caller is under, absent when open, \`0\` excluding them. Each allowances entry names a caller under a value of their own instead: the \`user\` or the \`room\` and their \`allowance\`, or the caller alone when they have none. While \`follow_up_scope\` is \`selected_users\`, each follow_ups entry names one User who may send follow-up mail to the conversations their requests started, as invokers entries name them; \`all_admitted\` lets every User caller send it, and the Agent's owner always may. \`mail_allowance\` is the daily follow-up mail allowance every User caller is under, and each mail_allowances entry names a \`user\` under an \`allowance\` of their own. \`last_failure\` is the latest withdrawn request, whatever starts after it: its \`origin\`, \`user\` or \`trigger\`, its time \`at\` and its \`reason\`."
|
|
341
354
|
properties:
|
|
342
355
|
reflected: { type: string, format: date-time }
|
|
343
|
-
|
|
344
|
-
routine: { type: string,
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
room: { type: string, pattern: '^r_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$' }
|
|
356
|
+
routine_access: { $ref: '#/$defs/id' }
|
|
357
|
+
routine: { type: object, additionalProperties: false, properties: { routine: { $ref: '#/$defs/id' }, name: { type: string } }, required: [ routine, name ] }
|
|
358
|
+
agent: { $ref: '#/$defs/id' }
|
|
359
|
+
room: { $ref: '#/$defs/room' }
|
|
348
360
|
invoker_scope: { type: string, enum: [ all_members, selected_users ] }
|
|
349
361
|
start_scope: { type: string, enum: [ none, all_admitted, selected_users ] }
|
|
350
362
|
follow_up_scope: { type: string, enum: [ none, all_admitted, selected_users ] }
|
|
351
|
-
|
|
363
|
+
created: { type: string, format: date-time }
|
|
352
364
|
revoked: { type: string, format: date-time }
|
|
353
|
-
invokers: { type: array, items: {
|
|
354
|
-
starters: { type: array, items: {
|
|
355
|
-
follow_ups: { type: array, items: { type:
|
|
365
|
+
invokers: { type: array, items: { $ref: '#/$defs/caller' } }
|
|
366
|
+
starters: { type: array, items: { $ref: '#/$defs/caller' } }
|
|
367
|
+
follow_ups: { type: array, items: { type: object, additionalProperties: false, properties: { user: { $ref: '#/$defs/id' }, email: { type: string }, name: { type: string } }, required: [ user ] } }
|
|
356
368
|
allowance: { type: integer, minimum: 0 }
|
|
357
|
-
allowances: { type: array, items: { type:
|
|
369
|
+
allowances: { type: array, items: { type: object, additionalProperties: false, properties: { user: { $ref: '#/$defs/id' }, room: { $ref: '#/$defs/room' }, allowance: { type: integer, minimum: 0 } }, minProperties: 1 } }
|
|
358
370
|
mail_allowance: { type: integer, minimum: 0 }
|
|
359
|
-
mail_allowances: { type: array, items: { type:
|
|
360
|
-
last_failure: { type:
|
|
361
|
-
required: [ reflected,
|
|
371
|
+
mail_allowances: { type: array, items: { type: object, additionalProperties: false, properties: { user: { $ref: '#/$defs/id' }, allowance: { type: integer, minimum: 0 } }, required: [ user, allowance ] } }
|
|
372
|
+
last_failure: { type: object, additionalProperties: false, properties: { origin: { enum: [ user, trigger ] }, at: { type: string, format: date-time }, reason: { type: string } }, required: [ origin, at, reason ] }
|
|
373
|
+
required: [ reflected, routine_access, routine, agent, room, invoker_scope, start_scope, follow_up_scope, created ]
|
|
374
|
+
house-service-key:
|
|
375
|
+
description: "One Service key a Room this User owns or manages holds, never the key itself: its \`room\`, its \`name\`, the one \`origin\` House sends it to, the \`form\` it is sent in, its \`kind\` with the header or query parameter \`name\` or the path \`prefix\`, and the address of its origin's icon once House kept one."
|
|
376
|
+
properties:
|
|
377
|
+
reflected: { type: string, format: date-time }
|
|
378
|
+
service_key: { $ref: '#/$defs/id' }
|
|
379
|
+
room: { $ref: '#/$defs/room' }
|
|
380
|
+
name: { type: string }
|
|
381
|
+
origin: { type: string, format: uri }
|
|
382
|
+
form: { type: object, additionalProperties: false, properties: { kind: { enum: [ bearer, header, query, basic, path ] }, name: { type: string }, prefix: { type: string } }, required: [ kind ] }
|
|
383
|
+
icon: { type: string, pattern: '^\\/service-keys\\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\\/icon$' }
|
|
384
|
+
required: [ reflected, service_key, room, name, origin, form ]
|
|
362
385
|
house-share:
|
|
363
|
-
description: "One Share this User issued, kept until it expires or is cancelled. An email delivery carries \`share_to\`, the address this User entered; a link delivery never carries the link. Each item names its \`kind\`, \`room\` or \`app\`, the Room or App under that key with its \`name\`, its \`state\`, \`offerable\`, \`held\`, \`accepted\`, \`declined\` or \`
|
|
386
|
+
description: "One Share this User issued, kept until it expires or is cancelled. An email delivery carries \`share_to\`, the address this User entered; a link delivery never carries the link. Each item names its \`kind\`, \`room\` or \`app\`, the Room or App under that key with its \`name\`, its \`state\`, \`offerable\`, \`held\`, \`accepted\`, \`declined\`, \`superseded\` or \`ended\`, an item the accepted Share could not give being \`ended\` with its \`cause\`, \`offer_changed\` when the recipient's access changed before it was given or \`manage_access_lost\` when this User no longer managed it, for a Room item the \`level\` it grants, the \`operations\` it grants as this User chose them and the Schema Roles its member gets as \`roles\` when it names any, and for an App item the external \`origins\` its latest release declared when this document was written, when it declared any. An App item is never shown \`held\`. Each pack entry names an App item's \`app\`, one of its \`slot\`s, and the \`room\` of the Room item that fills it, with that Room's \`name\`. Each \`join_requests\` entry of a link delivery names one Join request, its \`state\`, \`waiting\`, \`approved\` or \`declined\`, and the User it is \`from\` by account \`email\` and display \`name\` as House held them when this document was written, oldest first; the House approval path of a Join request is \`/approve/\` followed by its identifier."
|
|
364
387
|
properties:
|
|
365
388
|
reflected: { type: string, format: date-time }
|
|
366
389
|
share: { $ref: '#/$defs/id' }
|
|
367
390
|
share_link: { enum: [ yes, no ] }
|
|
368
391
|
share_to: { type: string, format: email }
|
|
369
|
-
items: { type: array, items: { type: object, additionalProperties: false, properties: { kind: { enum: [ room, app ] }, name: { type: string }, state: { enum: [ offerable, held, accepted, declined, superseded ] },
|
|
392
|
+
items: { type: array, items: { type: object, additionalProperties: false, properties: { kind: { enum: [ room, app ] }, name: { type: string }, state: { enum: [ offerable, held, accepted, declined, superseded, ended ] }, cause: { enum: [ offer_changed, manage_access_lost ] }, level: { enum: [ search, open, keep ] }, operations: { type: array, items: { type: string, enum: [ write, delete, export, manageAccess ] } }, roles: { type: array, items: { type: string } }, origins: { type: array, items: { type: string, format: uri } }, room: { $ref: '#/$defs/room' }, app: { $ref: '#/$defs/app' } }, required: [ kind, name, state, operations ] } }
|
|
370
393
|
pack: { type: array, items: { type: object, additionalProperties: false, properties: { app: { $ref: '#/$defs/app' }, slot: { type: string, pattern: '^[a-z0-9]([a-z0-9-]*[a-z0-9])?$' }, room: { type: object, additionalProperties: false, properties: { room: { $ref: '#/$defs/room' }, name: { type: string } }, required: [ room, name ] } }, required: [ app, slot, room ] } }
|
|
371
394
|
join_requests: { type: array, items: { type: object, additionalProperties: false, properties: { join_request: { $ref: '#/$defs/id' }, state: { enum: [ waiting, approved, declined ] }, from: { type: object, additionalProperties: false, properties: { email: { type: string }, name: { type: string } }, required: [ email, name ] } }, required: [ join_request, state, from ] } }
|
|
372
395
|
created: { type: string, format: date-time }
|
|
373
396
|
expires: { type: string, format: date-time }
|
|
374
397
|
required: [ reflected, share, share_link, created, expires ]
|
|
375
398
|
house-share-offer:
|
|
376
|
-
description: "One live Share offered to this User by email while an item of it is still offered, \`from\` its issuer by display \`name\` and account \`email\`. Each item names its \`kind\`, \`room\` or \`app\`, its \`name\`, its \`state\` for this User, \`offerable\`, \`held\`, \`accepted\`, \`declined\` or \`
|
|
399
|
+
description: "One live Share offered to this User by email while an item of it is still offered, \`from\` its issuer by display \`name\` and account \`email\`. Each item names its \`kind\`, \`room\` or \`app\`, its \`name\`, its \`state\` for this User, \`offerable\`, \`held\`, \`accepted\`, \`declined\`, \`superseded\` or \`ended\`, an item the accepted Share could not give being \`ended\` with its \`cause\`, \`offer_changed\` when this User's access changed before it was given or \`manage_access_lost\` when its issuer no longer managed it, for a Room item the \`level\` it grants and the \`operations\` it grants; it carries no reference. A Room item's access level and operations are the ones its issuer chose for the Room's content; its holder reads the Room's settings at that level, and holds \`manageAccess\` over its document model when it names \`manageAccess\`. A Room item naming Schema Roles names them as \`roles\`, which accepting the Share adds to this User's own in that Room. An App item grants use of the App and never its source, is never shown \`held\`, and names as \`origins\` the external origins its latest release declared when this document was written, when it declared any, which accepting the Share lets its code reach. Each pack entry names an offered \`app\`, one of its \`slot\`s, and the offered \`room\` that fills it, each by \`name\`. Names are as House held them when this document was written. The page is the House approval path where this User accepts or declines the whole Share."
|
|
377
400
|
properties:
|
|
378
401
|
reflected: { type: string, format: date-time }
|
|
379
402
|
share: { $ref: '#/$defs/id' }
|
|
380
403
|
from: { type: object, additionalProperties: false, properties: { name: { type: string }, email: { type: string, format: email } }, required: [ name, email ] }
|
|
381
404
|
page: { type: string, pattern: '^\\/approve\\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$' }
|
|
382
|
-
items: { type: array, items: { type: object, additionalProperties: false, properties: { kind: { enum: [ room, app ] }, name: { type: string }, state: { enum: [ offerable, held, accepted, declined, superseded ] },
|
|
405
|
+
items: { type: array, items: { type: object, additionalProperties: false, properties: { kind: { enum: [ room, app ] }, name: { type: string }, state: { enum: [ offerable, held, accepted, declined, superseded, ended ] }, cause: { enum: [ offer_changed, manage_access_lost ] }, level: { enum: [ search, open, keep ] }, operations: { type: array, items: { type: string, enum: [ write, delete, export, manageAccess ] } }, roles: { type: array, items: { type: string } }, origins: { type: array, items: { type: string, format: uri } } }, required: [ kind, name, state, operations ] } }
|
|
383
406
|
pack: { type: array, items: { type: object, additionalProperties: false, properties: { app: { type: object, additionalProperties: false, properties: { name: { type: string } }, required: [ name ] }, slot: { type: string, pattern: '^[a-z0-9]([a-z0-9-]*[a-z0-9])?$' }, room: { type: object, additionalProperties: false, properties: { name: { type: string } }, required: [ name ] } }, required: [ app, slot, room ] } }
|
|
384
407
|
created: { type: string, format: date-time }
|
|
385
408
|
expires: { type: string, format: date-time }
|
|
386
409
|
required: [ reflected, share, from, page, created, expires ]
|
|
387
410
|
house-site:
|
|
388
|
-
description: "One Site this User owns: its name
|
|
411
|
+
description: "One Site this User owns: its \`name\`, its address under this environment's Site suffix, its own \`app\` with that App's tab icon as a Site shows it, 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. \`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."
|
|
389
412
|
properties:
|
|
390
413
|
reflected: { type: string, format: date-time }
|
|
391
|
-
site: {
|
|
414
|
+
site: { $ref: '#/$defs/id' }
|
|
392
415
|
name: { type: string }
|
|
393
416
|
address: { type: string, format: uri }
|
|
394
417
|
addresses: { type: array, items: { type: string, format: uri } }
|
|
395
418
|
primary_address: { type: string, format: uri }
|
|
396
|
-
domains: { type: array, items: { type:
|
|
397
|
-
app: {
|
|
398
|
-
app_ref: { type: string, pattern: '^a_([0123456789abcdefghjkmnpqrstvwxyz]+)\\.([0123456789abcdefghjkmnpqrstvwxyz])$' }
|
|
419
|
+
domains: { type: array, items: { type: object, additionalProperties: false, properties: { host: { type: string }, state: { enum: [ pending, active, failed ] }, dns_target: { type: string }, reason: { type: string } }, required: [ host, state, dns_target ] } }
|
|
420
|
+
app: { $ref: '#/$defs/app' }
|
|
399
421
|
tab_icon_light: { type: string, pattern: ^data:image\\/ }
|
|
400
422
|
tab_icon_dark: { type: string, pattern: ^data:image\\/ }
|
|
401
423
|
tab_icon_colours: { type: array, items: { type: string, pattern: '^#[0-9a-f]{6}$' } }
|
|
402
424
|
tab_icon_blend: { enum: [ linear, radial ] }
|
|
403
425
|
tab_icon_angle: { type: integer, minimum: 0, maximum: 359 }
|
|
404
|
-
release: { type:
|
|
426
|
+
release: { type: object, additionalProperties: false, properties: { release: { $ref: '#/$defs/id' }, sequence: { type: integer, exclusiveMinimum: 0 } }, required: [ release, sequence ] }
|
|
405
427
|
title: { type: string }
|
|
406
428
|
description: { type: string }
|
|
407
429
|
screenshot: { type: string, format: uri }
|
|
408
|
-
|
|
409
|
-
intake_room: { type:
|
|
430
|
+
analytics: { type: string, pattern: '^G-[A-Z0-9]{1,32}$' }
|
|
431
|
+
intake_room: { type: object, additionalProperties: false, properties: { room: { $ref: '#/$defs/room' } }, required: [ room ] }
|
|
410
432
|
external_origins: { type: array, items: { type: string, format: uri } }
|
|
411
433
|
disabled: { enum: [ yes, no ] }
|
|
412
434
|
disabled_reason: { type: string }
|
|
@@ -415,10 +437,10 @@ house-site:
|
|
|
415
437
|
suspended: { enum: [ yes, no ] }
|
|
416
438
|
suspended_reason: { type: string, enum: [ full_house_required, public_delivery_limit ] }
|
|
417
439
|
public_overage: { enum: [ on, off ] }
|
|
418
|
-
publication: {
|
|
440
|
+
publication: { $ref: '#/$defs/id' }
|
|
419
441
|
acts: { type: array, items: { type: string, enum: [ unpublish, republish ] } }
|
|
420
442
|
indexing: { enum: [ yes, no ] }
|
|
421
|
-
entry_fallback: { type:
|
|
443
|
+
entry_fallback: { type: object, additionalProperties: false, properties: { cause: { enum: [ over_bound, query_refused, unavailable ] }, route: { type: string }, recorded: { type: string, format: date-time } }, required: [ cause, route, recorded ] }
|
|
422
444
|
created: { type: string, format: date-time }
|
|
423
445
|
new_browsers: { type: integer, minimum: 0 }
|
|
424
446
|
submissions: { type: integer, minimum: 0 }
|
|
@@ -426,9 +448,34 @@ house-site:
|
|
|
426
448
|
image_copies: { type: integer, minimum: 0 }
|
|
427
449
|
image_copy_bound: { type: integer, minimum: 0 }
|
|
428
450
|
image_copy_limit_reached: { enum: [ yes, no ] }
|
|
429
|
-
slots: { type: array, items: { type: string, pattern: '^
|
|
430
|
-
findings: { type: array, items: { type: string, pattern: '^
|
|
431
|
-
required: [ reflected, site, name, address, primary_address, app,
|
|
451
|
+
slots: { type: array, items: { type: object, additionalProperties: false, properties: { slot: { type: string, pattern: '^[a-z0-9]([a-z0-9-]*[a-z0-9])?$' }, entries: { type: array, items: { type: object, additionalProperties: false, properties: { room: { $ref: '#/$defs/room' }, segment: { type: string }, compatibility: { enum: [ unchecked, compatible, incompatible ] } }, required: [ room, segment, compatibility ] } } }, required: [ slot, entries ] } }
|
|
452
|
+
findings: { type: array, items: { type: object, additionalProperties: false, properties: { slot: { type: string, pattern: '^[a-z0-9]([a-z0-9-]*[a-z0-9])?$' }, room: { $ref: '#/$defs/room' }, finding: { type: string } }, required: [ slot, room, finding ] } }
|
|
453
|
+
required: [ reflected, site, name, address, primary_address, app, disabled, mode, unpublished, suspended, public_overage, indexing, created, new_browsers, submissions, notify_me, image_copies, image_copy_bound, image_copy_limit_reached ]
|
|
454
|
+
house-trigger:
|
|
455
|
+
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\` through its \`routine_access\`; a \`function\` action runs the \`function\` its \`app\`'s latest release declares, on House's servers. Whether an action's target holds is not written: it follows from the Room's members, the Routine Access and the App's latest release."
|
|
456
|
+
properties:
|
|
457
|
+
reflected: { type: string, format: date-time }
|
|
458
|
+
trigger: { $ref: '#/$defs/id' }
|
|
459
|
+
description: { type: string }
|
|
460
|
+
condition:
|
|
461
|
+
anyOf:
|
|
462
|
+
- { type: object, additionalProperties: false, properties: { on: { const: documents }, scope: { $ref: '#/$defs/trigger_scope' }, mode: { const: starts_matching }, new_documents: { type: boolean }, match: { $ref: '#/$defs/trigger_test' }, by: { $ref: '#/$defs/trigger_test' }, moved_between_rooms: { type: boolean } }, required: [ on, scope, mode, new_documents, match ] }
|
|
463
|
+
- { type: object, additionalProperties: false, properties: { on: { const: documents }, scope: { $ref: '#/$defs/trigger_scope' }, mode: { const: field_changes }, field: { type: string }, from: { anyOf: [ { $ref: '#/$defs/trigger_values' }, { const: new } ] }, to: { anyOf: [ { $ref: '#/$defs/trigger_values' }, { const: deleted } ] }, match: { $ref: '#/$defs/trigger_test' }, by: { $ref: '#/$defs/trigger_test' }, moved_between_rooms: { type: boolean } }, required: [ on, scope, mode, field ] }
|
|
464
|
+
- { type: object, additionalProperties: false, properties: { on: { const: items }, source: { type: string }, address: { type: string }, match: { $ref: '#/$defs/trigger_test' } }, required: [ on ] }
|
|
465
|
+
- { type: object, additionalProperties: false, properties: { on: { const: clock }, cron: { type: string }, time_zone: { type: string } }, required: [ on, cron, time_zone ] }
|
|
466
|
+
- { type: object, additionalProperties: false, properties: { on: { const: clock }, scope: { type: object, additionalProperties: false, properties: { type: { type: string } }, required: [ type ] }, date: { type: string }, days: { type: integer }, at: { type: string }, time_zone: { type: string }, match: { $ref: '#/$defs/trigger_test' } }, required: [ on, scope, date, days, at, time_zone ] }
|
|
467
|
+
actions:
|
|
468
|
+
type: array
|
|
469
|
+
items:
|
|
470
|
+
anyOf:
|
|
471
|
+
- { type: object, additionalProperties: false, properties: { kind: { const: notify }, enabled: { type: boolean }, title: { type: string }, text: { type: string }, to: { type: object, additionalProperties: false, properties: { users: { type: array, items: { type: object, additionalProperties: false, properties: { user: { $ref: '#/$defs/id' } }, required: [ user ] } }, fields: { type: array, items: { type: string } }, roles: { type: array, items: { type: string } } }, required: [ users, fields, roles ] } }, required: [ kind, enabled, title, text, to ] }
|
|
472
|
+
- { type: object, additionalProperties: false, properties: { kind: { const: routine }, enabled: { type: boolean }, routine_access: { $ref: '#/$defs/id' }, payload: { type: string } }, required: [ kind, enabled, payload ] }
|
|
473
|
+
- { type: object, additionalProperties: false, properties: { kind: { const: function }, enabled: { type: boolean }, app: { $ref: '#/$defs/app' }, function: { type: string } }, required: [ kind, enabled, app, function ] }
|
|
474
|
+
enabled: { type: boolean }
|
|
475
|
+
paused_by: { enum: [ types ] }
|
|
476
|
+
creator: { type: object, additionalProperties: false, properties: { user: { $ref: '#/$defs/id' }, name: { type: string } }, required: [ user, name ] }
|
|
477
|
+
created: { type: string, format: date-time }
|
|
478
|
+
required: [ reflected, trigger, description, condition, actions, enabled, creator, created ]
|
|
432
479
|
house-web-wizard:
|
|
433
480
|
description: "One Web Wizard an agent made for this User: the \`environment\` it runs on, with that Environment's \`name\`, and its \`state\`, \`waiting\` until its owner presses Run, \`running\`, \`finished\` with the script's \`exit_code\`, \`failed\`, \`cancelled\` when its page closed before the script ended, or \`lapsed\` when nobody ran it in its time. Its body is the script, whole, in one fenced code block. The terminal's output is never kept."
|
|
434
481
|
properties:
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
export { createAgentsHouseAdapter, type AgentsHouseAdapterOptions } from './adapter.js';
|
|
2
2
|
export { finishedUpload, houseUpload, type HouseUpload } from './upload.js';
|
|
3
|
-
export { HISTORY_PAGE, HOUSE_APP_ACTS, HOUSE_APP_BATCHES, HOUSE_SITE_ACTS,
|
|
3
|
+
export { HISTORY_PAGE, HOUSE_APP_ACTS, HOUSE_APP_BATCHES, HOUSE_SITE_ACTS, houseAction, type HouseActDoor, } from './actions.js';
|
|
4
|
+
export { houseParts, type ChangeMapping } from './write.js';
|
|
4
5
|
export { APP_REFERENCE_PATTERN } from './app-reference.js';
|
|
5
6
|
export { HOUSE_MODEL_TYPES } from './house-model.js';
|
|
6
7
|
export { CROCKFORD_ALPHABET, CROCKFORD_CHARACTER, CROCKFORD_LEADING_CHARACTER, } from './crockford.js';
|
|
7
8
|
export { HOUSE_NAMEABLE_ROOM_TYPES, HOUSE_ROOM_TYPES, INBOX_CHANNEL_KINDS, INBOX_CHAT_TYPE, INBOX_MESSAGE_TYPE, type InboxChannelKind, } from './room-types.js';
|
|
8
|
-
export type { HouseByteAct, HouseByteTransfer, HouseBytesAnswer, HouseClosing, HouseDoorAnswer, HouseHeldRoom, HouseOpening, HouseStream, HouseStreamEntry, HouseStreamFrame, HouseSiteTransport, HouseTransport, } from './transport.js';
|
|
9
|
+
export type { HouseByteAct, HouseByteTransfer, HouseBytesAnswer, HouseClosing, HouseDoorAnswer, HouseHeldRoom, HouseOpening, HouseStream, HouseStreamed, HouseStreamEntry, HouseStreamFrame, HouseSiteTransport, HouseTransport, } from './transport.js';
|
|
9
10
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,KAAK,yBAAyB,EAAE,MAAM,cAAc,CAAC;AACxF,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AAC5E,OAAO,EACL,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,KAAK,yBAAyB,EAAE,MAAM,cAAc,CAAC;AACxF,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AAC5E,OAAO,EACL,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,WAAW,EACX,KAAK,YAAY,GAClB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,UAAU,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,2BAA2B,GAC5B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,yBAAyB,EACzB,gBAAgB,EAChB,mBAAmB,EACnB,eAAe,EACf,kBAAkB,EAClB,KAAK,gBAAgB,GACtB,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,YAAY,EACZ,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,aAAa,EACb,YAAY,EACZ,WAAW,EACX,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,GACf,MAAM,gBAAgB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { createAgentsHouseAdapter } from './adapter.js';
|
|
2
2
|
export { finishedUpload, houseUpload } from './upload.js';
|
|
3
|
-
export { HISTORY_PAGE, HOUSE_APP_ACTS, HOUSE_APP_BATCHES, HOUSE_SITE_ACTS,
|
|
3
|
+
export { HISTORY_PAGE, HOUSE_APP_ACTS, HOUSE_APP_BATCHES, HOUSE_SITE_ACTS, houseAction, } from './actions.js';
|
|
4
|
+
export { houseParts } from './write.js';
|
|
4
5
|
export { APP_REFERENCE_PATTERN } from './app-reference.js';
|
|
5
6
|
export { HOUSE_MODEL_TYPES } from './house-model.js';
|
|
6
7
|
export { CROCKFORD_ALPHABET, CROCKFORD_CHARACTER, CROCKFORD_LEADING_CHARACTER, } from './crockford.js';
|
package/dist/model.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { RoomModels } from '@agentshouse/mdruntime';
|
|
2
2
|
import type { TrackedAuthority } from './discovery.js';
|
|
3
|
-
import { type
|
|
3
|
+
import { type HouseRoomHead, type HouseScope, type HouseView } from './read.js';
|
|
4
4
|
import type { HouseMode, HouseStreamEntry } from './transport.js';
|
|
5
5
|
export declare function partModels(scope: HouseScope, tracked: TrackedAuthority, seen: ReadonlySet<string>, final: boolean): Promise<RoomModels | undefined>;
|
|
6
|
-
export declare function manifestedModels(room:
|
|
6
|
+
export declare function manifestedModels(room: HouseRoomHead, tracked: TrackedAuthority): Promise<{
|
|
7
7
|
readonly models: RoomModels | undefined;
|
|
8
8
|
readonly seen: string[];
|
|
9
9
|
}>;
|