@openplanr/protocol 0.10.3 → 0.12.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openplanr/protocol",
3
- "version": "0.10.3",
3
+ "version": "0.12.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": [
@@ -132,7 +136,7 @@
132
136
  "test": "node --test ../../tests/protocol/*.test.mjs"
133
137
  },
134
138
  "engines": {
135
- "node": ">=20"
139
+ "node": ">=22.13.0"
136
140
  },
137
141
  "repository": {
138
142
  "type": "git",
@@ -314,7 +314,7 @@
314
314
  "ownerPackage": "openplanr",
315
315
  "source": {
316
316
  "path": "packages/cli/src/cli/commands/doctor.ts",
317
- "digest": "sha256:c03316bca1826b22f59c74cc8f0587fee15e46a284bc5b8c9542e64a0f90c85f"
317
+ "digest": "sha256:11a1b5732b15ab42862719f0924c57cd6c07b925b10bbe49a3b1c6356c7a3f8d"
318
318
  },
319
319
  "authorityClass": "workflow",
320
320
  "machineJson": false,
@@ -356,7 +356,7 @@
356
356
  "ownerPackage": "openplanr",
357
357
  "source": {
358
358
  "path": "skills/planr-plan/SKILL.md",
359
- "digest": "sha256:ab8db47be4d4334dec7c55ddebf7fdc777c12f9efdc4116c3d25b6439d113587"
359
+ "digest": "sha256:1f4d7295484abacb0dbe8e0b59398248d9a7d272d9706a235d51bb3990ec9643"
360
360
  },
361
361
  "authorityClass": "workflow",
362
362
  "machineJson": false,
@@ -587,7 +587,7 @@
587
587
  "ownerPackage": "openplanr",
588
588
  "source": {
589
589
  "path": "skills/planr-plan/SKILL.md",
590
- "digest": "sha256:ab8db47be4d4334dec7c55ddebf7fdc777c12f9efdc4116c3d25b6439d113587"
590
+ "digest": "sha256:1f4d7295484abacb0dbe8e0b59398248d9a7d272d9706a235d51bb3990ec9643"
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:805478c75b56729e25ee80b2dc28ee86c391ec62f30b9eee5b9154f7144b9b15"
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:ab8db47be4d4334dec7c55ddebf7fdc777c12f9efdc4116c3d25b6439d113587"
1094
+ "digest": "sha256:1f4d7295484abacb0dbe8e0b59398248d9a7d272d9706a235d51bb3990ec9643"
1095
1095
  },
1096
1096
  "authorityClass": "compatibility-router",
1097
1097
  "machineJson": false,
@@ -1948,5 +1948,5 @@
1948
1948
  ]
1949
1949
  }
1950
1950
  ],
1951
- "documentDigest": "sha256:494c4cf70fe5322ad69bb454105b4e3aa49b260e177f2bdc2cd134ecd2591c4e"
1951
+ "documentDigest": "sha256:735f3c5f9f5e3b1a14ea614361083192768652bd993ea0e47cda9384f1c85da1"
1952
1952
  }
@@ -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
+ }