@openplanr/protocol 0.11.0 → 0.13.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/package.json +8 -4
- package/registries/commands.json +9 -9
- package/registries/skills.json +129 -7
- package/schemas/v1.19.0/company-resource-upload-prepare.schema.json +187 -0
- package/schemas/v1.19.0/company-resource-upload-receipt.schema.json +184 -0
- package/schemas/v1.19.0/company-resource-upload-status.schema.json +303 -0
- package/schemas/v1.19.0/enterprise-artifact-page.schema.json +267 -0
- package/schemas/v1.19.0/enterprise-guest-authorization.schema.json +179 -0
- package/schemas/v1.19.0/enterprise-guest-invitation.schema.json +128 -0
- package/schemas/v1.19.0/enterprise-journey-capabilities.schema.json +83 -0
- package/schemas/v1.19.0/enterprise-project-lifecycle.schema.json +169 -0
- package/schemas/v1.19.0/enterprise-project-page.schema.json +164 -0
- package/schemas/v1.19.0/enterprise-project-transition.schema.json +65 -0
- package/schemas/v1.19.0/enterprise-review-mention.schema.json +178 -0
- package/schemas/v1.19.0/enterprise-review-projection.schema.json +278 -0
- package/src/browser-contracts.d.mts +6 -0
- package/src/browser-contracts.mjs +26 -0
- package/src/contracts.mjs +38 -0
- package/src/enterprise-journey-contracts.d.mts +331 -0
- package/src/enterprise-journey-contracts.mjs +671 -0
- package/src/generated/canonical-registries.mjs +138 -16
- package/src/index.d.mts +1 -1
- package/src/index.mjs +1 -1
- package/src/json-schema.mjs +313 -36
- package/src/registries.mjs +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openplanr/protocol",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Canonical OpenPlanr schemas, registries, typed errors, and portable contract validation",
|
|
6
6
|
"license": "MIT",
|
|
@@ -115,6 +115,10 @@
|
|
|
115
115
|
"./sharing-security-contracts": {
|
|
116
116
|
"types": "./src/sharing-security-contracts.d.mts",
|
|
117
117
|
"import": "./src/sharing-security-contracts.mjs"
|
|
118
|
+
},
|
|
119
|
+
"./enterprise-journey-contracts": {
|
|
120
|
+
"types": "./src/enterprise-journey-contracts.d.mts",
|
|
121
|
+
"import": "./src/enterprise-journey-contracts.mjs"
|
|
118
122
|
}
|
|
119
123
|
},
|
|
120
124
|
"files": [
|
|
@@ -143,9 +147,9 @@
|
|
|
143
147
|
"access": "public"
|
|
144
148
|
},
|
|
145
149
|
"devDependencies": {
|
|
146
|
-
"esbuild": "0.28.
|
|
147
|
-
"miniflare": "4.
|
|
148
|
-
"playwright": "1.
|
|
150
|
+
"esbuild": "0.28.2",
|
|
151
|
+
"miniflare": "4.20260730.0",
|
|
152
|
+
"playwright": "1.64.0",
|
|
149
153
|
"typescript": "6.0.2"
|
|
150
154
|
}
|
|
151
155
|
}
|
package/registries/commands.json
CHANGED
|
@@ -356,7 +356,7 @@
|
|
|
356
356
|
"ownerPackage": "openplanr",
|
|
357
357
|
"source": {
|
|
358
358
|
"path": "skills/planr-plan/SKILL.md",
|
|
359
|
-
"digest": "sha256:
|
|
359
|
+
"digest": "sha256:71ab2272efa19f817af597de0bf5aee163bcb1cd17418998107f21a412e91996"
|
|
360
360
|
},
|
|
361
361
|
"authorityClass": "workflow",
|
|
362
362
|
"machineJson": false,
|
|
@@ -482,7 +482,7 @@
|
|
|
482
482
|
"ownerPackage": "openplanr",
|
|
483
483
|
"source": {
|
|
484
484
|
"path": "packages/cli/src/cli/commands/init-deterministic.ts",
|
|
485
|
-
"digest": "sha256:
|
|
485
|
+
"digest": "sha256:cef1f26019ce66c7caf2cfec5c995c96e259e40e1c893e8bcfd7ad54c56c3f39"
|
|
486
486
|
},
|
|
487
487
|
"authorityClass": "workflow",
|
|
488
488
|
"machineJson": false,
|
|
@@ -587,7 +587,7 @@
|
|
|
587
587
|
"ownerPackage": "openplanr",
|
|
588
588
|
"source": {
|
|
589
589
|
"path": "skills/planr-plan/SKILL.md",
|
|
590
|
-
"digest": "sha256:
|
|
590
|
+
"digest": "sha256:71ab2272efa19f817af597de0bf5aee163bcb1cd17418998107f21a412e91996"
|
|
591
591
|
},
|
|
592
592
|
"authorityClass": "workflow",
|
|
593
593
|
"machineJson": false,
|
|
@@ -965,7 +965,7 @@
|
|
|
965
965
|
"ownerPackage": "openplanr",
|
|
966
966
|
"source": {
|
|
967
967
|
"path": "packages/cli/src/cli/commands/upgrade.ts",
|
|
968
|
-
"digest": "sha256:
|
|
968
|
+
"digest": "sha256:9ea7a2085f100e9221a1e266633369340904a669497801a63adc943a338c7868"
|
|
969
969
|
},
|
|
970
970
|
"authorityClass": "workflow",
|
|
971
971
|
"machineJson": false,
|
|
@@ -1091,7 +1091,7 @@
|
|
|
1091
1091
|
"ownerPackage": "planr-pipeline",
|
|
1092
1092
|
"source": {
|
|
1093
1093
|
"path": "skills/planr-plan/SKILL.md",
|
|
1094
|
-
"digest": "sha256:
|
|
1094
|
+
"digest": "sha256:71ab2272efa19f817af597de0bf5aee163bcb1cd17418998107f21a412e91996"
|
|
1095
1095
|
},
|
|
1096
1096
|
"authorityClass": "compatibility-router",
|
|
1097
1097
|
"machineJson": false,
|
|
@@ -1112,7 +1112,7 @@
|
|
|
1112
1112
|
"ownerPackage": "planr-pipeline",
|
|
1113
1113
|
"source": {
|
|
1114
1114
|
"path": "skills/planr-ship/SKILL.md",
|
|
1115
|
-
"digest": "sha256:
|
|
1115
|
+
"digest": "sha256:828f3b7a6bd1b6c42d257315bc3fcfc29a5db5ac478c797bb26d2a7553d010b1"
|
|
1116
1116
|
},
|
|
1117
1117
|
"authorityClass": "compatibility-router",
|
|
1118
1118
|
"machineJson": false,
|
|
@@ -1133,7 +1133,7 @@
|
|
|
1133
1133
|
"ownerPackage": "planr-pipeline",
|
|
1134
1134
|
"source": {
|
|
1135
1135
|
"path": "skills/planr-status/SKILL.md",
|
|
1136
|
-
"digest": "sha256:
|
|
1136
|
+
"digest": "sha256:09683973f4415f5356e9ab57b61df93106c4a2bc886e8b64e409fcfb539ad885"
|
|
1137
1137
|
},
|
|
1138
1138
|
"authorityClass": "compatibility-router",
|
|
1139
1139
|
"machineJson": false,
|
|
@@ -1154,7 +1154,7 @@
|
|
|
1154
1154
|
"ownerPackage": "planr-pipeline",
|
|
1155
1155
|
"source": {
|
|
1156
1156
|
"path": "skills/planr-sync/SKILL.md",
|
|
1157
|
-
"digest": "sha256:
|
|
1157
|
+
"digest": "sha256:4fb542bc7a0685904b6d6f58ec9fae3c539531793e1933474fbc3c3d34702e24"
|
|
1158
1158
|
},
|
|
1159
1159
|
"authorityClass": "compatibility-router",
|
|
1160
1160
|
"machineJson": false,
|
|
@@ -1948,5 +1948,5 @@
|
|
|
1948
1948
|
]
|
|
1949
1949
|
}
|
|
1950
1950
|
],
|
|
1951
|
-
"documentDigest": "sha256:
|
|
1951
|
+
"documentDigest": "sha256:0845b4b4bcc6cd45122ba6531c0c8793f05334012f18cfb58fb704940d3d9488"
|
|
1952
1952
|
}
|
package/registries/skills.json
CHANGED
|
@@ -373,6 +373,67 @@
|
|
|
373
373
|
"evaluation/skills/migrations/planr-cmo-review.json"
|
|
374
374
|
]
|
|
375
375
|
},
|
|
376
|
+
{
|
|
377
|
+
"skillId": "planr-connect",
|
|
378
|
+
"skillVersion": "1.0.0",
|
|
379
|
+
"description": "Report which chat, project tracker and source control connections the host has, and guide connecting the missing ones through the host. Use when the user wants to connect a service for OpenPlanr or asks what is connected.",
|
|
380
|
+
"lifecycle": "active",
|
|
381
|
+
"authorityClass": "diagnostic",
|
|
382
|
+
"source": "skills/planr-connect/openplanr.skill.json",
|
|
383
|
+
"sourceDigest": "sha256:e231e5a446e409f860079f4df07c7abb5d160f35b578c4252516094e100d3994",
|
|
384
|
+
"triggerPolicy": {
|
|
385
|
+
"include": [
|
|
386
|
+
"Connect chat, a project tracker or source control for OpenPlanr",
|
|
387
|
+
"Check which services OpenPlanr can reach through the host's connections"
|
|
388
|
+
],
|
|
389
|
+
"exclude": [
|
|
390
|
+
"Diagnose OpenPlanr installation or runtime health",
|
|
391
|
+
"Synchronize planning artifacts with a tracker"
|
|
392
|
+
],
|
|
393
|
+
"deferTo": []
|
|
394
|
+
},
|
|
395
|
+
"contracts": {
|
|
396
|
+
"inputs": [],
|
|
397
|
+
"outputs": [
|
|
398
|
+
{
|
|
399
|
+
"id": "connect-result",
|
|
400
|
+
"version": "1.0.0"
|
|
401
|
+
}
|
|
402
|
+
]
|
|
403
|
+
},
|
|
404
|
+
"cliRequirements": [],
|
|
405
|
+
"ruleIds": [
|
|
406
|
+
"R1",
|
|
407
|
+
"R5",
|
|
408
|
+
"R7"
|
|
409
|
+
],
|
|
410
|
+
"contributionManifestRefs": [
|
|
411
|
+
"packages/skill-runtime/contributions/workflows.json"
|
|
412
|
+
],
|
|
413
|
+
"hosts": [
|
|
414
|
+
{
|
|
415
|
+
"host": "claude-code",
|
|
416
|
+
"entrypoint": "/planr:connect",
|
|
417
|
+
"path": "dist/plugins/claude/openplanr/skills/connect/SKILL.md"
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
"host": "codex",
|
|
421
|
+
"entrypoint": "$planr:connect",
|
|
422
|
+
"path": "dist/plugins/openai/openplanr/skills/connect/SKILL.md"
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
"host": "cursor",
|
|
426
|
+
"entrypoint": "planr-connect",
|
|
427
|
+
"path": "dist/plugins/cursor/openplanr/rules/planr-connect.mdc"
|
|
428
|
+
}
|
|
429
|
+
],
|
|
430
|
+
"testRefs": [
|
|
431
|
+
"tests/protocol/skill-catalog.test.mjs"
|
|
432
|
+
],
|
|
433
|
+
"certificationRefs": [
|
|
434
|
+
"evaluation/skills/migrations/planr-connect.json"
|
|
435
|
+
]
|
|
436
|
+
},
|
|
376
437
|
{
|
|
377
438
|
"skillId": "planr-coo-review",
|
|
378
439
|
"skillVersion": "2.0.1",
|
|
@@ -694,7 +755,7 @@
|
|
|
694
755
|
"lifecycle": "active",
|
|
695
756
|
"authorityClass": "planning-write",
|
|
696
757
|
"source": "skills/planr-design/openplanr.skill.json",
|
|
697
|
-
"sourceDigest": "sha256:
|
|
758
|
+
"sourceDigest": "sha256:9572439c52794f550ec50012ca7b1ab695b39bd3cf7c1ec43a6606751133df43",
|
|
698
759
|
"triggerPolicy": {
|
|
699
760
|
"include": [
|
|
700
761
|
"Create an initial product design direction",
|
|
@@ -755,7 +816,7 @@
|
|
|
755
816
|
"lifecycle": "active",
|
|
756
817
|
"authorityClass": "planning-write",
|
|
757
818
|
"source": "skills/planr-design-loop/openplanr.skill.json",
|
|
758
|
-
"sourceDigest": "sha256:
|
|
819
|
+
"sourceDigest": "sha256:c86d4ca6988fd5c1471d7dc99188929ea7d2d695d15df43adb2340198895fc27",
|
|
759
820
|
"triggerPolicy": {
|
|
760
821
|
"include": [
|
|
761
822
|
"Explore multiple design directions or variants",
|
|
@@ -816,7 +877,7 @@
|
|
|
816
877
|
"lifecycle": "active",
|
|
817
878
|
"authorityClass": "review-evidence",
|
|
818
879
|
"source": "skills/planr-design-review/openplanr.skill.json",
|
|
819
|
-
"sourceDigest": "sha256:
|
|
880
|
+
"sourceDigest": "sha256:4a12e9dd2ae9a7246a6abb094623aa112591f58422e2632060a71564939ad592",
|
|
820
881
|
"triggerPolicy": {
|
|
821
882
|
"include": [
|
|
822
883
|
"Review or critique an existing OpenPlanr design",
|
|
@@ -1424,6 +1485,67 @@
|
|
|
1424
1485
|
"evaluation/skills/migrations/planr-release.json"
|
|
1425
1486
|
]
|
|
1426
1487
|
},
|
|
1488
|
+
{
|
|
1489
|
+
"skillId": "planr-share",
|
|
1490
|
+
"skillVersion": "1.0.0",
|
|
1491
|
+
"description": "Share a status report, sprint note or release notes with the team as a chat message draft that the user approves and sends. Use when the user asks to post a planning update to chat.",
|
|
1492
|
+
"lifecycle": "active",
|
|
1493
|
+
"authorityClass": "external-write",
|
|
1494
|
+
"source": "skills/planr-share/openplanr.skill.json",
|
|
1495
|
+
"sourceDigest": "sha256:832195e643d77f5457d468a530c76512935b4df0d6acf7ab5f3d88b06338c4b2",
|
|
1496
|
+
"triggerPolicy": {
|
|
1497
|
+
"include": [
|
|
1498
|
+
"Share the delivery status, sprint note or release notes with the team in chat",
|
|
1499
|
+
"Post a planning update to a chat channel as a draft"
|
|
1500
|
+
],
|
|
1501
|
+
"exclude": [
|
|
1502
|
+
"Report delivery status without sharing it",
|
|
1503
|
+
"Write or publish release notes"
|
|
1504
|
+
],
|
|
1505
|
+
"deferTo": []
|
|
1506
|
+
},
|
|
1507
|
+
"contracts": {
|
|
1508
|
+
"inputs": [],
|
|
1509
|
+
"outputs": [
|
|
1510
|
+
{
|
|
1511
|
+
"id": "share-result",
|
|
1512
|
+
"version": "1.0.0"
|
|
1513
|
+
}
|
|
1514
|
+
]
|
|
1515
|
+
},
|
|
1516
|
+
"cliRequirements": [],
|
|
1517
|
+
"ruleIds": [
|
|
1518
|
+
"R1",
|
|
1519
|
+
"R5",
|
|
1520
|
+
"R7"
|
|
1521
|
+
],
|
|
1522
|
+
"contributionManifestRefs": [
|
|
1523
|
+
"packages/skill-runtime/contributions/workflows.json"
|
|
1524
|
+
],
|
|
1525
|
+
"hosts": [
|
|
1526
|
+
{
|
|
1527
|
+
"host": "claude-code",
|
|
1528
|
+
"entrypoint": "/planr:share",
|
|
1529
|
+
"path": "dist/plugins/claude/openplanr/skills/share/SKILL.md"
|
|
1530
|
+
},
|
|
1531
|
+
{
|
|
1532
|
+
"host": "codex",
|
|
1533
|
+
"entrypoint": "$planr:share",
|
|
1534
|
+
"path": "dist/plugins/openai/openplanr/skills/share/SKILL.md"
|
|
1535
|
+
},
|
|
1536
|
+
{
|
|
1537
|
+
"host": "cursor",
|
|
1538
|
+
"entrypoint": "planr-share",
|
|
1539
|
+
"path": "dist/plugins/cursor/openplanr/rules/planr-share.mdc"
|
|
1540
|
+
}
|
|
1541
|
+
],
|
|
1542
|
+
"testRefs": [
|
|
1543
|
+
"tests/protocol/skill-catalog.test.mjs"
|
|
1544
|
+
],
|
|
1545
|
+
"certificationRefs": [
|
|
1546
|
+
"evaluation/skills/migrations/planr-share.json"
|
|
1547
|
+
]
|
|
1548
|
+
},
|
|
1427
1549
|
{
|
|
1428
1550
|
"skillId": "planr-ship",
|
|
1429
1551
|
"skillVersion": "1.2.1",
|
|
@@ -1563,7 +1685,7 @@
|
|
|
1563
1685
|
"lifecycle": "active",
|
|
1564
1686
|
"authorityClass": "planning-write",
|
|
1565
1687
|
"source": "skills/planr-sprint/openplanr.skill.json",
|
|
1566
|
-
"sourceDigest": "sha256:
|
|
1688
|
+
"sourceDigest": "sha256:95efe995ab6cd8ed38b09b6d503223d34ea4111de92117346c7984603502b895",
|
|
1567
1689
|
"triggerPolicy": {
|
|
1568
1690
|
"include": [
|
|
1569
1691
|
"Refine the open backlog and select what fits the next sprint or release cut",
|
|
@@ -1625,7 +1747,7 @@
|
|
|
1625
1747
|
"lifecycle": "active",
|
|
1626
1748
|
"authorityClass": "read-only-view",
|
|
1627
1749
|
"source": "skills/planr-status/openplanr.skill.json",
|
|
1628
|
-
"sourceDigest": "sha256:
|
|
1750
|
+
"sourceDigest": "sha256:e6c422eacd009a5db91e038fded747cfe25badae06e5cbde13775982dd258e01",
|
|
1629
1751
|
"triggerPolicy": {
|
|
1630
1752
|
"include": [
|
|
1631
1753
|
"Report current OpenPlanr delivery status or outstanding work",
|
|
@@ -1686,7 +1808,7 @@
|
|
|
1686
1808
|
"lifecycle": "active",
|
|
1687
1809
|
"authorityClass": "planning-write",
|
|
1688
1810
|
"source": "skills/planr-sync/openplanr.skill.json",
|
|
1689
|
-
"sourceDigest": "sha256:
|
|
1811
|
+
"sourceDigest": "sha256:c8061714181e6f4e330c65ba033a3586bf4118352e778865e3e3e0e802ad2cf6",
|
|
1690
1812
|
"triggerPolicy": {
|
|
1691
1813
|
"include": [
|
|
1692
1814
|
"Audit planning artifacts for graph, schema, or protocol drift",
|
|
@@ -1742,5 +1864,5 @@
|
|
|
1742
1864
|
}
|
|
1743
1865
|
],
|
|
1744
1866
|
"compatibilityAliases": [],
|
|
1745
|
-
"documentDigest": "sha256:
|
|
1867
|
+
"documentDigest": "sha256:5db46f86c838f03bdf20e17067463b4281465a286a0c8ad276e05e3f0fefda93"
|
|
1746
1868
|
}
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://openplanr.dev/schemas/v1.19.0/company-resource-upload-prepare.schema.json",
|
|
4
|
+
"x-openplanr-contract": {
|
|
5
|
+
"id": "company-resource-upload-prepare",
|
|
6
|
+
"version": "1.19.0"
|
|
7
|
+
},
|
|
8
|
+
"type": "object",
|
|
9
|
+
"additionalProperties": false,
|
|
10
|
+
"properties": {
|
|
11
|
+
"schemaVersion": {
|
|
12
|
+
"const": "2.1.0"
|
|
13
|
+
},
|
|
14
|
+
"operationId": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"pattern": "^[A-Za-z0-9_-]{22,64}$"
|
|
17
|
+
},
|
|
18
|
+
"baseRevisionId": {
|
|
19
|
+
"oneOf": [
|
|
20
|
+
{
|
|
21
|
+
"type": "string",
|
|
22
|
+
"pattern": "^[A-Za-z0-9_-]{22,64}$"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"type": "null"
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
"manifest": {
|
|
30
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
31
|
+
"$id": "https://openplanr.dev/schemas/v1.17.0/company-resource-manifest.schema.json",
|
|
32
|
+
"x-openplanr-contract": {
|
|
33
|
+
"id": "company-resource-manifest",
|
|
34
|
+
"version": "1.17.0"
|
|
35
|
+
},
|
|
36
|
+
"type": "object",
|
|
37
|
+
"additionalProperties": false,
|
|
38
|
+
"properties": {
|
|
39
|
+
"schemaVersion": {
|
|
40
|
+
"const": "2.0.0"
|
|
41
|
+
},
|
|
42
|
+
"kind": {
|
|
43
|
+
"const": "openplanr-company-resource-manifest"
|
|
44
|
+
},
|
|
45
|
+
"organizationId": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"
|
|
48
|
+
},
|
|
49
|
+
"projectId": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"
|
|
52
|
+
},
|
|
53
|
+
"artifactId": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"
|
|
56
|
+
},
|
|
57
|
+
"revisionId": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"pattern": "^[A-Za-z0-9_-]{22,64}$"
|
|
60
|
+
},
|
|
61
|
+
"contentDigest": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"pattern": "^sha256:[a-f0-9]{64}$"
|
|
64
|
+
},
|
|
65
|
+
"contentType": {
|
|
66
|
+
"const": "application/json"
|
|
67
|
+
},
|
|
68
|
+
"byteLength": {
|
|
69
|
+
"type": "integer",
|
|
70
|
+
"minimum": 1,
|
|
71
|
+
"maximum": 134217728
|
|
72
|
+
},
|
|
73
|
+
"decodedBytes": {
|
|
74
|
+
"type": "integer",
|
|
75
|
+
"minimum": 1,
|
|
76
|
+
"maximum": 134217728
|
|
77
|
+
},
|
|
78
|
+
"catalog": {
|
|
79
|
+
"type": "object",
|
|
80
|
+
"additionalProperties": false,
|
|
81
|
+
"properties": {
|
|
82
|
+
"offset": {
|
|
83
|
+
"type": "integer",
|
|
84
|
+
"minimum": 0,
|
|
85
|
+
"maximum": 134217728
|
|
86
|
+
},
|
|
87
|
+
"encodedBytes": {
|
|
88
|
+
"type": "integer",
|
|
89
|
+
"minimum": 1,
|
|
90
|
+
"maximum": 8388608
|
|
91
|
+
},
|
|
92
|
+
"decodedBytes": {
|
|
93
|
+
"type": "integer",
|
|
94
|
+
"minimum": 1,
|
|
95
|
+
"maximum": 8388608
|
|
96
|
+
},
|
|
97
|
+
"codec": {
|
|
98
|
+
"enum": [
|
|
99
|
+
"identity",
|
|
100
|
+
"deflate-raw"
|
|
101
|
+
]
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"required": [
|
|
105
|
+
"offset",
|
|
106
|
+
"encodedBytes",
|
|
107
|
+
"decodedBytes",
|
|
108
|
+
"codec"
|
|
109
|
+
]
|
|
110
|
+
},
|
|
111
|
+
"chunks": {
|
|
112
|
+
"type": "array",
|
|
113
|
+
"minItems": 1,
|
|
114
|
+
"maxItems": 128,
|
|
115
|
+
"items": {
|
|
116
|
+
"type": "object",
|
|
117
|
+
"additionalProperties": false,
|
|
118
|
+
"properties": {
|
|
119
|
+
"index": {
|
|
120
|
+
"type": "integer",
|
|
121
|
+
"minimum": 0,
|
|
122
|
+
"maximum": 127
|
|
123
|
+
},
|
|
124
|
+
"byteLength": {
|
|
125
|
+
"type": "integer",
|
|
126
|
+
"minimum": 1,
|
|
127
|
+
"maximum": 1048576
|
|
128
|
+
},
|
|
129
|
+
"sha256": {
|
|
130
|
+
"type": "string",
|
|
131
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"required": [
|
|
135
|
+
"index",
|
|
136
|
+
"byteLength",
|
|
137
|
+
"sha256"
|
|
138
|
+
]
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
"required": [
|
|
143
|
+
"schemaVersion",
|
|
144
|
+
"kind",
|
|
145
|
+
"organizationId",
|
|
146
|
+
"projectId",
|
|
147
|
+
"artifactId",
|
|
148
|
+
"revisionId",
|
|
149
|
+
"contentDigest",
|
|
150
|
+
"contentType",
|
|
151
|
+
"byteLength",
|
|
152
|
+
"decodedBytes",
|
|
153
|
+
"catalog",
|
|
154
|
+
"chunks"
|
|
155
|
+
]
|
|
156
|
+
},
|
|
157
|
+
"protocolVersion": {
|
|
158
|
+
"const": "1.19.0"
|
|
159
|
+
},
|
|
160
|
+
"intent": {
|
|
161
|
+
"enum": [
|
|
162
|
+
"draft",
|
|
163
|
+
"publish"
|
|
164
|
+
]
|
|
165
|
+
},
|
|
166
|
+
"expectedVersion": {
|
|
167
|
+
"type": "integer",
|
|
168
|
+
"minimum": 0,
|
|
169
|
+
"maximum": 9007199254740991
|
|
170
|
+
},
|
|
171
|
+
"lifecycleEpoch": {
|
|
172
|
+
"type": "integer",
|
|
173
|
+
"minimum": 1,
|
|
174
|
+
"maximum": 9007199254740991
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
"required": [
|
|
178
|
+
"schemaVersion",
|
|
179
|
+
"operationId",
|
|
180
|
+
"baseRevisionId",
|
|
181
|
+
"manifest",
|
|
182
|
+
"protocolVersion",
|
|
183
|
+
"intent",
|
|
184
|
+
"expectedVersion",
|
|
185
|
+
"lifecycleEpoch"
|
|
186
|
+
]
|
|
187
|
+
}
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://openplanr.dev/schemas/v1.19.0/company-resource-upload-receipt.schema.json",
|
|
4
|
+
"x-openplanr-contract": {
|
|
5
|
+
"id": "company-resource-upload-receipt",
|
|
6
|
+
"version": "1.19.0"
|
|
7
|
+
},
|
|
8
|
+
"type": "object",
|
|
9
|
+
"additionalProperties": false,
|
|
10
|
+
"properties": {
|
|
11
|
+
"schemaVersion": {
|
|
12
|
+
"const": "2.1.0"
|
|
13
|
+
},
|
|
14
|
+
"organizationId": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"
|
|
17
|
+
},
|
|
18
|
+
"projectId": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"
|
|
21
|
+
},
|
|
22
|
+
"artifactId": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"
|
|
25
|
+
},
|
|
26
|
+
"operationId": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"pattern": "^[A-Za-z0-9_-]{22,64}$"
|
|
29
|
+
},
|
|
30
|
+
"revisionId": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"pattern": "^[A-Za-z0-9_-]{22,64}$"
|
|
33
|
+
},
|
|
34
|
+
"manifestSha256": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
37
|
+
},
|
|
38
|
+
"contentDigest": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"pattern": "^sha256:[a-f0-9]{64}$"
|
|
41
|
+
},
|
|
42
|
+
"status": {
|
|
43
|
+
"const": "committed"
|
|
44
|
+
},
|
|
45
|
+
"committedAt": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"format": "date-time",
|
|
48
|
+
"maxLength": 40
|
|
49
|
+
},
|
|
50
|
+
"protocolVersion": {
|
|
51
|
+
"const": "1.19.0"
|
|
52
|
+
},
|
|
53
|
+
"intent": {
|
|
54
|
+
"enum": [
|
|
55
|
+
"draft",
|
|
56
|
+
"publish"
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
"baseRevisionId": {
|
|
60
|
+
"oneOf": [
|
|
61
|
+
{
|
|
62
|
+
"type": "string",
|
|
63
|
+
"pattern": "^[A-Za-z0-9_-]{22,64}$"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"type": "null"
|
|
67
|
+
}
|
|
68
|
+
]
|
|
69
|
+
},
|
|
70
|
+
"version": {
|
|
71
|
+
"type": "integer",
|
|
72
|
+
"minimum": 1,
|
|
73
|
+
"maximum": 9007199254740991
|
|
74
|
+
},
|
|
75
|
+
"lifecycleEpoch": {
|
|
76
|
+
"type": "integer",
|
|
77
|
+
"minimum": 1,
|
|
78
|
+
"maximum": 9007199254740991
|
|
79
|
+
},
|
|
80
|
+
"effect": {
|
|
81
|
+
"oneOf": [
|
|
82
|
+
{
|
|
83
|
+
"type": "object",
|
|
84
|
+
"additionalProperties": false,
|
|
85
|
+
"properties": {
|
|
86
|
+
"kind": {
|
|
87
|
+
"const": "draft"
|
|
88
|
+
},
|
|
89
|
+
"authorHeadRevisionId": {
|
|
90
|
+
"type": "string",
|
|
91
|
+
"pattern": "^[A-Za-z0-9_-]{1,128}(?![\\s\\S])"
|
|
92
|
+
},
|
|
93
|
+
"publicationHeadUnchanged": {
|
|
94
|
+
"const": true
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"required": [
|
|
98
|
+
"kind",
|
|
99
|
+
"authorHeadRevisionId",
|
|
100
|
+
"publicationHeadUnchanged"
|
|
101
|
+
]
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"type": "object",
|
|
105
|
+
"additionalProperties": false,
|
|
106
|
+
"properties": {
|
|
107
|
+
"kind": {
|
|
108
|
+
"const": "publication"
|
|
109
|
+
},
|
|
110
|
+
"authorHeadRevisionId": {
|
|
111
|
+
"type": "string",
|
|
112
|
+
"pattern": "^[A-Za-z0-9_-]{1,128}(?![\\s\\S])"
|
|
113
|
+
},
|
|
114
|
+
"publicationId": {
|
|
115
|
+
"type": "string",
|
|
116
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}(?![\\s\\S])"
|
|
117
|
+
},
|
|
118
|
+
"publicationRevisionId": {
|
|
119
|
+
"type": "string",
|
|
120
|
+
"pattern": "^[A-Za-z0-9_-]{1,128}(?![\\s\\S])"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"required": [
|
|
124
|
+
"kind",
|
|
125
|
+
"authorHeadRevisionId",
|
|
126
|
+
"publicationId",
|
|
127
|
+
"publicationRevisionId"
|
|
128
|
+
]
|
|
129
|
+
}
|
|
130
|
+
]
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"required": [
|
|
134
|
+
"schemaVersion",
|
|
135
|
+
"organizationId",
|
|
136
|
+
"projectId",
|
|
137
|
+
"artifactId",
|
|
138
|
+
"operationId",
|
|
139
|
+
"revisionId",
|
|
140
|
+
"manifestSha256",
|
|
141
|
+
"contentDigest",
|
|
142
|
+
"status",
|
|
143
|
+
"committedAt",
|
|
144
|
+
"protocolVersion",
|
|
145
|
+
"intent",
|
|
146
|
+
"baseRevisionId",
|
|
147
|
+
"version",
|
|
148
|
+
"lifecycleEpoch",
|
|
149
|
+
"effect"
|
|
150
|
+
],
|
|
151
|
+
"allOf": [
|
|
152
|
+
{
|
|
153
|
+
"if": {
|
|
154
|
+
"properties": {
|
|
155
|
+
"intent": {
|
|
156
|
+
"const": "draft"
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"then": {
|
|
161
|
+
"properties": {
|
|
162
|
+
"effect": {
|
|
163
|
+
"properties": {
|
|
164
|
+
"kind": {
|
|
165
|
+
"const": "draft"
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
"else": {
|
|
172
|
+
"properties": {
|
|
173
|
+
"effect": {
|
|
174
|
+
"properties": {
|
|
175
|
+
"kind": {
|
|
176
|
+
"const": "publication"
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
]
|
|
184
|
+
}
|