@freedome/protocol 1.1.0 → 1.2.0

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/validate.js CHANGED
@@ -4644,6 +4644,90 @@ var schemaBundle = {
4644
4644
  }
4645
4645
  }
4646
4646
  },
4647
+ "https://freedome.nativemind.us/schemas/api/1.1/assistant.schema.json": {
4648
+ $schema: "https://json-schema.org/draft/2020-12/schema",
4649
+ $id: "https://freedome.nativemind.us/schemas/api/1.1/assistant.schema.json",
4650
+ $comment: "NativeMindNONC \u2014 freedome_contract (see LICENSE). The person's side of the assistant: physical confirmations and the outbound link (flows/sdd-freedome-mcp 3.2, 3.3).",
4651
+ title: "Assistant",
4652
+ $ref: "#/$defs/link",
4653
+ $defs: {
4654
+ confirmation: {
4655
+ description: "A physical action waiting for a person. The code hash stays on the venue and is never part of this shape.",
4656
+ type: "object",
4657
+ required: ["id", "tool", "risk", "text", "argumentsHash", "via", "createdAt", "expiresAt", "status"],
4658
+ additionalProperties: false,
4659
+ properties: {
4660
+ id: { type: "string", maxLength: 64 },
4661
+ tool: { type: "string" },
4662
+ risk: { const: "physical" },
4663
+ text: {
4664
+ type: "string",
4665
+ maxLength: 600,
4666
+ description: "What will happen, in plain words, made on the venue from the tool and its arguments."
4667
+ },
4668
+ argumentsHash: { type: "string", pattern: "^[0-9a-f]{64}$" },
4669
+ via: { enum: ["local", "link"] },
4670
+ sessionId: {
4671
+ type: "string",
4672
+ maxLength: 64,
4673
+ description: "The approval it came through, when `via` is `link`."
4674
+ },
4675
+ createdAt: { type: "string", format: "date-time" },
4676
+ expiresAt: { type: "string", format: "date-time" },
4677
+ status: { enum: ["pending", "confirmed", "expired", "refused"] },
4678
+ code: { type: "string", pattern: "^[0-9]{4}$", description: "Only for a person, and only while `pending`." }
4679
+ }
4680
+ },
4681
+ confirmationPage: {
4682
+ type: "object",
4683
+ required: ["items", "nextCursor"],
4684
+ additionalProperties: false,
4685
+ properties: {
4686
+ items: { type: "array", items: { $ref: "#/$defs/confirmation" } },
4687
+ nextCursor: { type: ["string", "null"] }
4688
+ }
4689
+ },
4690
+ linkSession: {
4691
+ description: "One approval: who gave it, what it may do, until when.",
4692
+ type: "object",
4693
+ required: ["id", "approver", "role", "scopes", "createdAt", "expiresAt", "status", "calls"],
4694
+ additionalProperties: false,
4695
+ properties: {
4696
+ id: { type: "string", maxLength: 64 },
4697
+ approver: { type: "string" },
4698
+ role: { enum: ["operator", "admin", "superadmin"] },
4699
+ scopes: { type: "array", items: { type: "string" } },
4700
+ createdAt: { type: "string", format: "date-time" },
4701
+ expiresAt: { type: "string", format: "date-time" },
4702
+ status: { enum: ["active", "ended", "expired"] },
4703
+ calls: { type: "integer", minimum: 0 }
4704
+ }
4705
+ },
4706
+ link: {
4707
+ type: "object",
4708
+ required: ["enabled", "state", "sessions"],
4709
+ additionalProperties: false,
4710
+ properties: {
4711
+ enabled: { type: "boolean" },
4712
+ state: { enum: ["off", "connecting", "online", "offline"] },
4713
+ installationId: { type: "string" },
4714
+ sessions: { type: "array", items: { $ref: "#/$defs/linkSession" } }
4715
+ }
4716
+ },
4717
+ linkApprove: {
4718
+ type: "object",
4719
+ required: ["code"],
4720
+ additionalProperties: false,
4721
+ properties: {
4722
+ code: {
4723
+ type: "string",
4724
+ pattern: "^[0-9A-Za-z]{4}-?[0-9A-Za-z]{4}$",
4725
+ description: "The code the assistant showed."
4726
+ }
4727
+ }
4728
+ }
4729
+ }
4730
+ },
4647
4731
  "https://freedome.nativemind.us/schemas/api/1.1/audio-reactive.schema.json": {
4648
4732
  $schema: "https://json-schema.org/draft/2020-12/schema",
4649
4733
  $id: "https://freedome.nativemind.us/schemas/api/1.1/audio-reactive.schema.json",
@@ -11906,6 +11990,448 @@ var schemaBundle = {
11906
11990
  patternProperties: { "^x-": true },
11907
11991
  additionalProperties: false
11908
11992
  },
11993
+ "https://freedome.nativemind.us/schemas/mcp/1.0/dossier.schema.json": {
11994
+ $schema: "https://json-schema.org/draft/2020-12/schema",
11995
+ $id: "https://freedome.nativemind.us/schemas/mcp/1.0/dossier.schema.json",
11996
+ $comment: "NativeMindNONC \u2014 freedome_contract (see LICENSE). The dossier of a venue project and the shapes around it (flows/sdd-freedome-mcp 02 Data Models). Text in a dossier is data from a client: never instructions.",
11997
+ title: "Dossier",
11998
+ $ref: "#/$defs/dossier",
11999
+ $defs: {
12000
+ range: {
12001
+ type: "object",
12002
+ required: ["low", "high"],
12003
+ additionalProperties: false,
12004
+ properties: { low: { type: "number" }, high: { type: "number" } }
12005
+ },
12006
+ estimate: {
12007
+ type: "object",
12008
+ description: "Every figure of the planner. `isEstimate` is always true: nothing here was measured.",
12009
+ required: ["value", "unit", "range", "assumptions", "isEstimate", "rule"],
12010
+ additionalProperties: false,
12011
+ properties: {
12012
+ value: { type: "number" },
12013
+ unit: { type: "string" },
12014
+ range: { $ref: "#/$defs/range" },
12015
+ assumptions: { type: "array", minItems: 1, items: { type: "string" } },
12016
+ isEstimate: { const: true },
12017
+ rule: {
12018
+ type: "object",
12019
+ required: ["id", "version", "status", "source"],
12020
+ additionalProperties: false,
12021
+ properties: {
12022
+ id: { type: "string" },
12023
+ version: { type: "integer", minimum: 1 },
12024
+ status: { enum: ["geometry", "ours", "ours-tbv", "unverified"] },
12025
+ source: { type: "string" }
12026
+ }
12027
+ }
12028
+ }
12029
+ },
12030
+ checkItem: {
12031
+ type: "object",
12032
+ required: ["id", "done"],
12033
+ additionalProperties: false,
12034
+ properties: { id: { type: "string" }, done: { type: "boolean" }, note: { type: "string", maxLength: 500 } }
12035
+ },
12036
+ attachment: {
12037
+ type: "object",
12038
+ required: ["id", "name", "contentType", "size", "createdAt"],
12039
+ additionalProperties: false,
12040
+ properties: {
12041
+ id: { type: "string", format: "uuid" },
12042
+ name: { type: "string", maxLength: 200 },
12043
+ contentType: { enum: ["image/jpeg", "image/png", "image/webp", "application/pdf"] },
12044
+ size: { type: "integer", minimum: 1 },
12045
+ createdAt: { type: "string", format: "date-time" }
12046
+ }
12047
+ },
12048
+ consent: {
12049
+ type: "object",
12050
+ required: ["at", "version"],
12051
+ additionalProperties: false,
12052
+ properties: { at: { type: "string", format: "date-time" }, version: { type: "string", minLength: 1 } }
12053
+ },
12054
+ dossier: {
12055
+ type: "object",
12056
+ required: [
12057
+ "id",
12058
+ "version",
12059
+ "lang",
12060
+ "stage",
12061
+ "answers",
12062
+ "checklist",
12063
+ "openItems",
12064
+ "attachments",
12065
+ "createdAt",
12066
+ "updatedAt"
12067
+ ],
12068
+ additionalProperties: false,
12069
+ properties: {
12070
+ id: { type: "string", format: "uuid" },
12071
+ version: { type: "integer", minimum: 1 },
12072
+ lang: { enum: ["en", "ru"] },
12073
+ stage: { enum: ["intake", "survey", "choices", "prepared", "installed"] },
12074
+ claimed: { type: "boolean" },
12075
+ room: { type: "object" },
12076
+ goals: { type: "string", maxLength: 2e3 },
12077
+ answers: { type: "object" },
12078
+ choices: { type: "object" },
12079
+ estimates: { type: "object", additionalProperties: { type: "object" } },
12080
+ domeDraft: { $ref: "../../dome/1.1/dome.schema.json" },
12081
+ checklist: { type: "array", items: { $ref: "#/$defs/checkItem" } },
12082
+ openItems: { type: "array", items: { type: "string" } },
12083
+ attachments: { type: "array", items: { $ref: "#/$defs/attachment" } },
12084
+ consent: { $ref: "#/$defs/consent" },
12085
+ linkedInstallationId: { type: "string", format: "uuid" },
12086
+ expiresAt: { type: "string", format: "date-time" },
12087
+ createdAt: { type: "string", format: "date-time" },
12088
+ updatedAt: { type: "string", format: "date-time" }
12089
+ }
12090
+ },
12091
+ consentRequest: {
12092
+ type: "object",
12093
+ required: ["version"],
12094
+ additionalProperties: false,
12095
+ properties: { version: { type: "string", minLength: 1, maxLength: 32 } }
12096
+ },
12097
+ expertRequest: {
12098
+ type: "object",
12099
+ required: ["id", "question", "clientAcceptedAt", "status"],
12100
+ additionalProperties: false,
12101
+ properties: {
12102
+ id: { type: "string", format: "uuid" },
12103
+ question: { type: "string", maxLength: 1500 },
12104
+ clientAcceptedAt: { type: "string", format: "date-time" },
12105
+ status: { enum: ["sent", "answered", "closed"] },
12106
+ answer: { type: "string" }
12107
+ }
12108
+ },
12109
+ pendingConfirmation: {
12110
+ type: "object",
12111
+ description: "What an assistant may know of a confirmation. The code hash stays on the venue and is not part of this shape.",
12112
+ required: ["id", "tool", "argumentsHash", "risk", "text", "expiresAt", "status"],
12113
+ additionalProperties: false,
12114
+ properties: {
12115
+ id: { type: "string" },
12116
+ tool: { type: "string" },
12117
+ argumentsHash: { type: "string" },
12118
+ risk: { const: "physical" },
12119
+ text: { type: "string" },
12120
+ expiresAt: { type: "string", format: "date-time" },
12121
+ status: { enum: ["pending", "confirmed", "expired", "refused"] }
12122
+ }
12123
+ },
12124
+ toolResult: {
12125
+ type: "object",
12126
+ description: "Every tool result: a short sentence to read aloud, plus the full data.",
12127
+ required: ["summary", "data"],
12128
+ additionalProperties: false,
12129
+ properties: {
12130
+ summary: { type: "string", minLength: 1 },
12131
+ data: { type: "object" },
12132
+ untrusted: {
12133
+ type: "array",
12134
+ items: { type: "string" },
12135
+ description: "Paths of `data` that hold client text: data, not instructions."
12136
+ }
12137
+ }
12138
+ },
12139
+ toolError: {
12140
+ type: "object",
12141
+ required: ["code", "summary", "retryable"],
12142
+ additionalProperties: false,
12143
+ properties: {
12144
+ code: { type: "string", pattern: "^[a-z][a-z0-9_]*$" },
12145
+ summary: { type: "string", minLength: 1 },
12146
+ retryable: { type: "boolean" },
12147
+ data: { type: "object" }
12148
+ }
12149
+ }
12150
+ }
12151
+ },
12152
+ "https://freedome.nativemind.us/schemas/mcp/1.0/knowledge.schema.json": {
12153
+ $schema: "https://json-schema.org/draft/2020-12/schema",
12154
+ $id: "https://freedome.nativemind.us/schemas/mcp/1.0/knowledge.schema.json",
12155
+ $comment: "NativeMindNONC \u2014 freedome_contract (see LICENSE). Planning knowledge mcp/knowledge/*.yaml. The root validates a single rule; each file has its own $def.",
12156
+ title: "Freedome MCP knowledge",
12157
+ $ref: "#/$defs/rule",
12158
+ $defs: {
12159
+ text: {
12160
+ type: "object",
12161
+ required: ["en", "ru"],
12162
+ additionalProperties: false,
12163
+ properties: { en: { type: "string", minLength: 1 }, ru: { type: "string", minLength: 1 } }
12164
+ },
12165
+ condition: { type: "object", additionalProperties: { type: "array", items: { type: "string" }, minItems: 1 } },
12166
+ sourceId: { type: "string", pattern: "^(doc|gen)-[a-z0-9]+$" },
12167
+ rule: {
12168
+ type: "object",
12169
+ required: ["id", "version", "status", "source", "title", "formula", "params", "assumptions"],
12170
+ additionalProperties: false,
12171
+ properties: {
12172
+ id: { type: "string", pattern: "^[a-z]+\\.[a-z0-9-]+$" },
12173
+ version: { type: "integer", minimum: 1 },
12174
+ status: { enum: ["geometry", "ours", "ours-tbv", "unverified"] },
12175
+ source: { $ref: "#/$defs/sourceId" },
12176
+ title: { $ref: "#/$defs/text" },
12177
+ formula: { type: "string", minLength: 1 },
12178
+ params: { type: "object" },
12179
+ assumptions: { type: "array", minItems: 1, items: { $ref: "#/$defs/text" } }
12180
+ }
12181
+ },
12182
+ rules: {
12183
+ type: "object",
12184
+ required: ["version", "rules"],
12185
+ additionalProperties: false,
12186
+ properties: { version: { const: 1 }, rules: { type: "array", items: { $ref: "#/$defs/rule" } } }
12187
+ },
12188
+ source: {
12189
+ type: "object",
12190
+ required: ["id", "kind", "title", "where"],
12191
+ additionalProperties: false,
12192
+ properties: {
12193
+ id: { $ref: "#/$defs/sourceId" },
12194
+ kind: { enum: ["ours", "general"] },
12195
+ title: { type: "string" },
12196
+ where: { type: "string" }
12197
+ }
12198
+ },
12199
+ sources: {
12200
+ type: "object",
12201
+ required: ["version", "sources"],
12202
+ additionalProperties: false,
12203
+ properties: { version: { const: 1 }, sources: { type: "array", items: { $ref: "#/$defs/source" } } }
12204
+ },
12205
+ question: {
12206
+ type: "object",
12207
+ required: ["id", "type", "en", "ru"],
12208
+ additionalProperties: false,
12209
+ properties: {
12210
+ id: { type: "string", pattern: "^[a-z][a-z0-9_]*$" },
12211
+ type: { enum: ["enum", "number", "text"] },
12212
+ unit: { type: "string" },
12213
+ min: { type: "number" },
12214
+ max: { type: "number" },
12215
+ integer: { type: "boolean" },
12216
+ maxLength: { type: "integer", minimum: 1 },
12217
+ skippable: { type: "boolean" },
12218
+ when: { $ref: "#/$defs/condition" },
12219
+ options: {
12220
+ type: "array",
12221
+ minItems: 2,
12222
+ items: {
12223
+ type: "object",
12224
+ required: ["value", "en", "ru"],
12225
+ additionalProperties: false,
12226
+ properties: { value: { type: "string" }, en: { type: "string" }, ru: { type: "string" } }
12227
+ }
12228
+ },
12229
+ en: { type: "string", minLength: 1 },
12230
+ ru: { type: "string", minLength: 1 }
12231
+ }
12232
+ },
12233
+ survey: {
12234
+ type: "object",
12235
+ required: ["version", "questions"],
12236
+ additionalProperties: false,
12237
+ properties: {
12238
+ version: { const: 1 },
12239
+ questions: { type: "array", minItems: 1, items: { $ref: "#/$defs/question" } }
12240
+ }
12241
+ },
12242
+ item: {
12243
+ type: "object",
12244
+ required: ["id", "who", "source", "en", "ru"],
12245
+ additionalProperties: false,
12246
+ properties: {
12247
+ id: { type: "string", pattern: "^[a-z][a-z0-9-]*$" },
12248
+ who: { enum: ["client", "electrician", "structural", "fire", "acoustic", "installer"] },
12249
+ expert: { type: "boolean" },
12250
+ source: { $ref: "#/$defs/sourceId" },
12251
+ when: { $ref: "#/$defs/condition" },
12252
+ en: { type: "string", minLength: 1 },
12253
+ ru: { type: "string", minLength: 1 }
12254
+ }
12255
+ },
12256
+ checklist: {
12257
+ type: "object",
12258
+ required: ["version", "items"],
12259
+ additionalProperties: false,
12260
+ properties: { version: { const: 1 }, items: { type: "array", minItems: 1, items: { $ref: "#/$defs/item" } } }
12261
+ },
12262
+ policy: {
12263
+ type: "object",
12264
+ required: ["version", "lines", "routes"],
12265
+ additionalProperties: false,
12266
+ properties: {
12267
+ version: { const: 1 },
12268
+ lines: { type: "object", additionalProperties: { $ref: "#/$defs/text" } },
12269
+ routes: { type: "object", additionalProperties: { type: "array", items: { type: "string" } } }
12270
+ }
12271
+ }
12272
+ }
12273
+ },
12274
+ "https://freedome.nativemind.us/schemas/mcp/1.0/link.schema.json": {
12275
+ $schema: "https://json-schema.org/draft/2020-12/schema",
12276
+ $id: "https://freedome.nativemind.us/schemas/mcp/1.0/link.schema.json",
12277
+ $comment: "NativeMindNONC \u2014 freedome_contract (see LICENSE). Frames of wss://\u2026/api/v1/installations/link (flows/sdd-freedome-mcp 3.3). Text frames, one JSON object each, at most 1 MiB. This list is closed: anything else closes the link.",
12278
+ title: "Link frame",
12279
+ oneOf: [
12280
+ { $ref: "#/$defs/challenge" },
12281
+ { $ref: "#/$defs/proof" },
12282
+ { $ref: "#/$defs/ready" },
12283
+ { $ref: "#/$defs/approve" },
12284
+ { $ref: "#/$defs/approveResult" },
12285
+ { $ref: "#/$defs/mcp" },
12286
+ { $ref: "#/$defs/mcpResult" },
12287
+ { $ref: "#/$defs/end" },
12288
+ { $ref: "#/$defs/ended" },
12289
+ { $ref: "#/$defs/sessions" }
12290
+ ],
12291
+ $defs: {
12292
+ id: { type: "string", minLength: 1, maxLength: 64 },
12293
+ challenge: {
12294
+ description: "Hub to venue, first frame after a valid `fdi_` key in `Authorization`.",
12295
+ type: "object",
12296
+ additionalProperties: false,
12297
+ required: ["t", "nonce"],
12298
+ properties: { t: { const: "challenge" }, nonce: { type: "string", pattern: "^[A-Za-z0-9_-]{43}$" } }
12299
+ },
12300
+ proof: {
12301
+ description: "Venue to hub: unpadded base64url ed25519 signature of the UTF-8 text `freedome-link-v1\\n<installationId>\\n<nonce>`, by the key of enrolment.",
12302
+ type: "object",
12303
+ additionalProperties: false,
12304
+ required: ["t", "signature", "active"],
12305
+ properties: {
12306
+ t: { const: "proof" },
12307
+ signature: { type: "string", pattern: "^[A-Za-z0-9_-]{86}$" },
12308
+ active: {
12309
+ type: "array",
12310
+ items: { $ref: "#/$defs/id" },
12311
+ description: "Approvals still valid on the venue. The hub ends every other one."
12312
+ }
12313
+ }
12314
+ },
12315
+ ready: {
12316
+ description: "Hub to venue: the link is up. A newer link of the same installation replaces an older one.",
12317
+ type: "object",
12318
+ additionalProperties: false,
12319
+ required: ["t"],
12320
+ properties: { t: { const: "ready" } }
12321
+ },
12322
+ approve: {
12323
+ description: "Venue to hub: a person approved a link code. The venue keeps the scopes; they are sent for the audit.",
12324
+ type: "object",
12325
+ additionalProperties: false,
12326
+ required: ["t", "id", "code", "sid", "approver", "role", "scopes", "expiresAt"],
12327
+ properties: {
12328
+ t: { const: "approve" },
12329
+ id: { $ref: "#/$defs/id" },
12330
+ code: { type: "string", maxLength: 16 },
12331
+ sid: { $ref: "#/$defs/id" },
12332
+ approver: { type: "string", maxLength: 128 },
12333
+ role: { type: "string" },
12334
+ scopes: { type: "array", items: { type: "string" } },
12335
+ expiresAt: { type: "string", format: "date-time" }
12336
+ }
12337
+ },
12338
+ approveResult: {
12339
+ type: "object",
12340
+ additionalProperties: false,
12341
+ required: ["t", "id", "ok"],
12342
+ properties: {
12343
+ t: { const: "approve_result" },
12344
+ id: { $ref: "#/$defs/id" },
12345
+ ok: { type: "boolean" },
12346
+ error: { enum: ["wrong_code", "expired", "busy"] }
12347
+ }
12348
+ },
12349
+ mcp: {
12350
+ description: "Hub to venue: one MCP request, under an approval the venue knows. Only `initialize`, `tools/list` and `tools/call`.",
12351
+ type: "object",
12352
+ additionalProperties: false,
12353
+ required: ["t", "id", "sid", "dossierId", "msg"],
12354
+ properties: {
12355
+ t: { const: "mcp" },
12356
+ id: { $ref: "#/$defs/id" },
12357
+ sid: { $ref: "#/$defs/id" },
12358
+ dossierId: { $ref: "#/$defs/id" },
12359
+ msg: { type: "object", description: "JSON-RPC 2.0 request." }
12360
+ }
12361
+ },
12362
+ mcpResult: {
12363
+ type: "object",
12364
+ additionalProperties: false,
12365
+ required: ["t", "id", "msg"],
12366
+ properties: {
12367
+ t: { const: "mcp_result" },
12368
+ id: { $ref: "#/$defs/id" },
12369
+ msg: { type: "object", description: "JSON-RPC 2.0 response." }
12370
+ }
12371
+ },
12372
+ end: {
12373
+ description: "Hub to venue: the assistant ended the link.",
12374
+ type: "object",
12375
+ additionalProperties: false,
12376
+ required: ["t", "sid"],
12377
+ properties: { t: { const: "end" }, sid: { $ref: "#/$defs/id" } }
12378
+ },
12379
+ ended: {
12380
+ description: "Venue to hub: ended in Manager, or expired.",
12381
+ type: "object",
12382
+ additionalProperties: false,
12383
+ required: ["t", "sid", "reason"],
12384
+ properties: { t: { const: "ended" }, sid: { $ref: "#/$defs/id" }, reason: { enum: ["manager", "expired"] } }
12385
+ },
12386
+ sessions: {
12387
+ description: "Reserved for a later resync.",
12388
+ type: "object",
12389
+ additionalProperties: false,
12390
+ required: ["t", "active"],
12391
+ properties: { t: { const: "sessions" }, active: { type: "array", items: { $ref: "#/$defs/id" } } }
12392
+ }
12393
+ }
12394
+ },
12395
+ "https://freedome.nativemind.us/schemas/mcp/1.0/tools.schema.json": {
12396
+ $schema: "https://json-schema.org/draft/2020-12/schema",
12397
+ $id: "https://freedome.nativemind.us/schemas/mcp/1.0/tools.schema.json",
12398
+ $comment: "NativeMindNONC \u2014 freedome_contract (see LICENSE). The MCP catalogue mcp/tools.yaml (flows/sdd-freedome-mcp 02).",
12399
+ title: "Freedome MCP catalogue",
12400
+ type: "object",
12401
+ required: ["version", "tools"],
12402
+ additionalProperties: false,
12403
+ properties: {
12404
+ version: { const: 1 },
12405
+ $defs: { type: "object" },
12406
+ tools: { type: "array", minItems: 1, items: { $ref: "#/$defs/tool" } }
12407
+ },
12408
+ $defs: {
12409
+ text: {
12410
+ type: "object",
12411
+ required: ["en", "ru"],
12412
+ additionalProperties: false,
12413
+ properties: { en: { type: "string", minLength: 1 }, ru: { type: "string", minLength: 1 } }
12414
+ },
12415
+ tool: {
12416
+ type: "object",
12417
+ required: ["name", "group", "modes", "scope", "risk", "summary"],
12418
+ additionalProperties: false,
12419
+ oneOf: [{ required: ["planner"] }, { required: ["operationId"] }],
12420
+ properties: {
12421
+ name: { type: "string", pattern: "^[a-z][a-z0-9_]{1,47}$" },
12422
+ group: { type: "string", pattern: "^[a-z][a-z-]*$" },
12423
+ modes: { type: "array", minItems: 1, uniqueItems: true, items: { enum: ["planning", "simulation", "live"] } },
12424
+ planner: { type: "string", pattern: "^[a-z][a-z0-9_]*$" },
12425
+ operationId: { type: "string", pattern: "^[a-z][a-zA-Z0-9]*$" },
12426
+ scope: { type: "string", pattern: "^(none|anon|any|[a-z]+:[a-z]+)$" },
12427
+ risk: { enum: ["read", "control", "physical"] },
12428
+ status: { enum: ["planned"] },
12429
+ summary: { $ref: "#/$defs/text" },
12430
+ input: { type: "object" }
12431
+ }
12432
+ }
12433
+ }
12434
+ },
11909
12435
  "https://freedome.nativemind.us/schemas/zelim/1.0/zelim-project.schema.json": {
11910
12436
  $schema: "https://json-schema.org/draft/2020-12/schema",
11911
12437
  $id: "https://freedome.nativemind.us/schemas/zelim/1.0/zelim-project.schema.json",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@freedome/protocol",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "Freedome protocol types and tables generated from freedome_contract (OpenAPI, GraphQL, JSON Schemas, topics, scopes, problem codes) + JSON Schema validation (/validate).",
5
5
  "license": "NativeMindNONC",
6
6
  "homepage": "https://freedome.nativemind.us",