@openplanr/protocol 0.8.0 → 0.10.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.
Files changed (70) hide show
  1. package/README.md +9 -0
  2. package/package.json +17 -1
  3. package/registries/commands.json +22 -22
  4. package/registries/skills.json +136 -58
  5. package/registry/v1.17.0/commands.json +88 -0
  6. package/schemas/v1.16.0/artifact-envelope.schema.json +408 -0
  7. package/schemas/v1.16.0/design-review-bundle.schema.json +590 -0
  8. package/schemas/v1.17.0/artifact-paste-v2.schema.json +52 -0
  9. package/schemas/v1.17.0/artifact-room-append-v3.schema.json +159 -0
  10. package/schemas/v1.17.0/artifact-room-create-v3.schema.json +111 -0
  11. package/schemas/v1.17.0/artifact-room-descriptor-v3.schema.json +92 -0
  12. package/schemas/v1.17.0/artifact-room-event-v3.schema.json +130 -0
  13. package/schemas/v1.17.0/artifact-room-management-v3.schema.json +47 -0
  14. package/schemas/v1.17.0/artifact-room-read-page-v3.schema.json +308 -0
  15. package/schemas/v1.17.0/company-resource-manifest.schema.json +128 -0
  16. package/schemas/v1.17.0/company-resource-upload-prepare.schema.json +164 -0
  17. package/schemas/v1.17.0/company-resource-upload-receipt.schema.json +63 -0
  18. package/schemas/v1.17.0/company-resource-upload-status.schema.json +123 -0
  19. package/schemas/v1.17.0/diagram-authoring-bundle.schema.json +1117 -0
  20. package/schemas/v1.17.0/diagram-edit-transaction.schema.json +3295 -0
  21. package/schemas/v1.17.0/diagram-presentation.schema.json +37 -0
  22. package/schemas/v1.17.0/diagram-review-bundle.schema.json +2439 -0
  23. package/schemas/v1.17.0/encrypted-resource-manifest.schema.json +131 -0
  24. package/schemas/v1.17.0/encrypted-upload-commit.schema.json +38 -0
  25. package/schemas/v1.17.0/encrypted-upload-prepare.schema.json +234 -0
  26. package/schemas/v1.17.0/encrypted-upload-receipt.schema.json +54 -0
  27. package/schemas/v1.17.0/encrypted-upload-status.schema.json +129 -0
  28. package/schemas/v1.17.0/encrypted-workspace-event-v2.schema.json +79 -0
  29. package/schemas/v1.17.0/encrypted-workspace-v2.schema.json +91 -0
  30. package/schemas/v1.17.0/enterprise-agent-handoff.schema.json +985 -0
  31. package/schemas/v1.17.0/enterprise-artifact-revision.schema.json +115 -0
  32. package/schemas/v1.17.0/enterprise-change-proposal.schema.json +379 -0
  33. package/schemas/v1.17.0/enterprise-evidence-reference.schema.json +159 -0
  34. package/schemas/v1.17.0/enterprise-review-thread.schema.json +298 -0
  35. package/schemas/v1.17.0/enterprise-sync-state.schema.json +189 -0
  36. package/schemas/v1.17.0/preview-bridge-message.schema.json +197 -0
  37. package/schemas/v1.17.0/resource-catalog.schema.json +145 -0
  38. package/schemas/v1.17.0/sharing-crypto-aad.schema.json +36 -0
  39. package/schemas/v1.17.0/workspace-management-v2.schema.json +45 -0
  40. package/schemas/v1.17.0/workspace-rotation-v2.schema.json +61 -0
  41. package/schemas/v1.18.0/runtime-lock.schema.json +122 -0
  42. package/src/bounded-json-data.d.mts +2 -0
  43. package/src/bounded-json-data.mjs +56 -0
  44. package/src/browser-contracts.d.mts +14 -1
  45. package/src/browser-contracts.mjs +16 -0
  46. package/src/canonical-json.mjs +17 -16
  47. package/src/contracts.d.mts +1 -1
  48. package/src/contracts.mjs +97 -3
  49. package/src/diagram-authoring-contracts.d.mts +12 -0
  50. package/src/diagram-authoring-contracts.mjs +174 -1
  51. package/src/enterprise-contract-validation.d.mts +44 -0
  52. package/src/enterprise-contract-validation.mjs +279 -0
  53. package/src/enterprise-contracts.mjs +25 -231
  54. package/src/enterprise-resource-contracts.d.mts +72 -0
  55. package/src/enterprise-resource-contracts.mjs +202 -0
  56. package/src/generated/artifact-envelope-metadata.mjs +769 -0
  57. package/src/generated/canonical-registries.mjs +158 -80
  58. package/src/index.d.mts +21 -0
  59. package/src/index.mjs +23 -0
  60. package/src/large-object-contracts.d.mts +107 -0
  61. package/src/large-object-contracts.mjs +473 -0
  62. package/src/large-object-limits.d.mts +16 -0
  63. package/src/large-object-limits.mjs +17 -0
  64. package/src/registries.mjs +1 -0
  65. package/src/review-experience-contracts.d.mts +1 -0
  66. package/src/review-experience-contracts.mjs +25 -4
  67. package/src/sharing-security-contracts.d.mts +63 -0
  68. package/src/sharing-security-contracts.mjs +403 -0
  69. package/src/studio-presentation-contracts.d.mts +92 -0
  70. package/src/studio-presentation-contracts.mjs +287 -0
@@ -0,0 +1,131 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://openplanr.dev/schemas/v1.17.0/encrypted-resource-manifest.schema.json",
4
+ "x-openplanr-contract": {
5
+ "id": "encrypted-resource-manifest",
6
+ "version": "1.17.0"
7
+ },
8
+ "type": "object",
9
+ "additionalProperties": false,
10
+ "properties": {
11
+ "schemaVersion": {
12
+ "const": "2.0.0"
13
+ },
14
+ "kind": {
15
+ "const": "openplanr-encrypted-resource-manifest"
16
+ },
17
+ "workspaceId": {
18
+ "type": "string",
19
+ "pattern": "^[A-Za-z0-9_-]{22,64}$"
20
+ },
21
+ "revisionId": {
22
+ "type": "string",
23
+ "pattern": "^[A-Za-z0-9_-]{22,64}$"
24
+ },
25
+ "epoch": {
26
+ "type": "integer",
27
+ "minimum": 1,
28
+ "maximum": 9007199254740991
29
+ },
30
+ "createdAt": {
31
+ "type": "string",
32
+ "format": "date-time",
33
+ "maxLength": 40
34
+ },
35
+ "plaintextBytes": {
36
+ "type": "integer",
37
+ "minimum": 1,
38
+ "maximum": 134217728
39
+ },
40
+ "ciphertextBytes": {
41
+ "type": "integer",
42
+ "minimum": 17,
43
+ "maximum": 134219792
44
+ },
45
+ "catalog": {
46
+ "type": "object",
47
+ "additionalProperties": false,
48
+ "properties": {
49
+ "offset": {
50
+ "type": "integer",
51
+ "minimum": 0,
52
+ "maximum": 134217728
53
+ },
54
+ "encodedBytes": {
55
+ "type": "integer",
56
+ "minimum": 1,
57
+ "maximum": 8388608
58
+ },
59
+ "decodedBytes": {
60
+ "type": "integer",
61
+ "minimum": 1,
62
+ "maximum": 8388608
63
+ },
64
+ "codec": {
65
+ "enum": [
66
+ "identity",
67
+ "deflate-raw"
68
+ ]
69
+ }
70
+ },
71
+ "required": [
72
+ "offset",
73
+ "encodedBytes",
74
+ "decodedBytes",
75
+ "codec"
76
+ ]
77
+ },
78
+ "chunks": {
79
+ "type": "array",
80
+ "minItems": 1,
81
+ "maxItems": 129,
82
+ "items": {
83
+ "type": "object",
84
+ "additionalProperties": false,
85
+ "properties": {
86
+ "index": {
87
+ "type": "integer",
88
+ "minimum": 0,
89
+ "maximum": 128
90
+ },
91
+ "byteLength": {
92
+ "type": "integer",
93
+ "minimum": 17,
94
+ "maximum": 1048576
95
+ },
96
+ "iv": {
97
+ "type": "string",
98
+ "pattern": "^[A-Za-z0-9_-]{16}$"
99
+ },
100
+ "sha256": {
101
+ "type": "string",
102
+ "pattern": "^[a-f0-9]{64}$"
103
+ }
104
+ },
105
+ "required": [
106
+ "index",
107
+ "byteLength",
108
+ "iv",
109
+ "sha256"
110
+ ]
111
+ }
112
+ },
113
+ "signature": {
114
+ "type": "string",
115
+ "pattern": "^[A-Za-z0-9_-]{86}$"
116
+ }
117
+ },
118
+ "required": [
119
+ "schemaVersion",
120
+ "kind",
121
+ "workspaceId",
122
+ "revisionId",
123
+ "epoch",
124
+ "createdAt",
125
+ "plaintextBytes",
126
+ "ciphertextBytes",
127
+ "catalog",
128
+ "chunks",
129
+ "signature"
130
+ ]
131
+ }
@@ -0,0 +1,38 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://openplanr.dev/schemas/v1.17.0/encrypted-upload-commit.schema.json",
4
+ "x-openplanr-contract": {
5
+ "id": "encrypted-upload-commit",
6
+ "version": "1.17.0"
7
+ },
8
+ "type": "object",
9
+ "additionalProperties": false,
10
+ "properties": {
11
+ "schemaVersion": {
12
+ "const": "2.0.0"
13
+ },
14
+ "workspaceId": {
15
+ "type": "string",
16
+ "pattern": "^[A-Za-z0-9_-]{22,64}$"
17
+ },
18
+ "operationId": {
19
+ "type": "string",
20
+ "pattern": "^[A-Za-z0-9_-]{22,64}$"
21
+ },
22
+ "manifestSha256": {
23
+ "type": "string",
24
+ "pattern": "^[a-f0-9]{64}$"
25
+ },
26
+ "signature": {
27
+ "type": "string",
28
+ "pattern": "^[A-Za-z0-9_-]{86}$"
29
+ }
30
+ },
31
+ "required": [
32
+ "schemaVersion",
33
+ "workspaceId",
34
+ "operationId",
35
+ "manifestSha256",
36
+ "signature"
37
+ ]
38
+ }
@@ -0,0 +1,234 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://openplanr.dev/schemas/v1.17.0/encrypted-upload-prepare.schema.json",
4
+ "x-openplanr-contract": {
5
+ "id": "encrypted-upload-prepare",
6
+ "version": "1.17.0"
7
+ },
8
+ "type": "object",
9
+ "additionalProperties": false,
10
+ "properties": {
11
+ "schemaVersion": {
12
+ "const": "2.0.0"
13
+ },
14
+ "workspaceId": {
15
+ "type": "string",
16
+ "pattern": "^[A-Za-z0-9_-]{22,64}$"
17
+ },
18
+ "operationId": {
19
+ "type": "string",
20
+ "pattern": "^[A-Za-z0-9_-]{22,64}$"
21
+ },
22
+ "expectedVersion": {
23
+ "type": "integer",
24
+ "minimum": 0,
25
+ "maximum": 9007199254740991
26
+ },
27
+ "epoch": {
28
+ "type": "integer",
29
+ "minimum": 1,
30
+ "maximum": 9007199254740991
31
+ },
32
+ "ownerPublicKey": {
33
+ "type": "object",
34
+ "additionalProperties": false,
35
+ "properties": {
36
+ "kty": {
37
+ "const": "EC"
38
+ },
39
+ "crv": {
40
+ "const": "P-256"
41
+ },
42
+ "x": {
43
+ "type": "string",
44
+ "pattern": "^[A-Za-z0-9_-]{43}$"
45
+ },
46
+ "y": {
47
+ "type": "string",
48
+ "pattern": "^[A-Za-z0-9_-]{43}$"
49
+ }
50
+ },
51
+ "required": [
52
+ "kty",
53
+ "crv",
54
+ "x",
55
+ "y"
56
+ ]
57
+ },
58
+ "ownerAuthHash": {
59
+ "type": "string",
60
+ "pattern": "^[a-f0-9]{64}$"
61
+ },
62
+ "reviewerAuthHash": {
63
+ "type": "string",
64
+ "pattern": "^[a-f0-9]{64}$"
65
+ },
66
+ "keyring": {
67
+ "type": "object",
68
+ "additionalProperties": false,
69
+ "properties": {
70
+ "iv": {
71
+ "type": "string",
72
+ "pattern": "^[A-Za-z0-9_-]{16}$"
73
+ },
74
+ "ciphertext": {
75
+ "type": "string",
76
+ "pattern": "^[A-Za-z0-9_-]+$",
77
+ "maxLength": 65536
78
+ }
79
+ },
80
+ "required": [
81
+ "iv",
82
+ "ciphertext"
83
+ ]
84
+ },
85
+ "manifest": {
86
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
87
+ "$id": "https://openplanr.dev/schemas/v1.17.0/encrypted-resource-manifest.schema.json",
88
+ "x-openplanr-contract": {
89
+ "id": "encrypted-resource-manifest",
90
+ "version": "1.17.0"
91
+ },
92
+ "type": "object",
93
+ "additionalProperties": false,
94
+ "properties": {
95
+ "schemaVersion": {
96
+ "const": "2.0.0"
97
+ },
98
+ "kind": {
99
+ "const": "openplanr-encrypted-resource-manifest"
100
+ },
101
+ "workspaceId": {
102
+ "type": "string",
103
+ "pattern": "^[A-Za-z0-9_-]{22,64}$"
104
+ },
105
+ "revisionId": {
106
+ "type": "string",
107
+ "pattern": "^[A-Za-z0-9_-]{22,64}$"
108
+ },
109
+ "epoch": {
110
+ "type": "integer",
111
+ "minimum": 1,
112
+ "maximum": 9007199254740991
113
+ },
114
+ "createdAt": {
115
+ "type": "string",
116
+ "format": "date-time",
117
+ "maxLength": 40
118
+ },
119
+ "plaintextBytes": {
120
+ "type": "integer",
121
+ "minimum": 1,
122
+ "maximum": 134217728
123
+ },
124
+ "ciphertextBytes": {
125
+ "type": "integer",
126
+ "minimum": 17,
127
+ "maximum": 134219792
128
+ },
129
+ "catalog": {
130
+ "type": "object",
131
+ "additionalProperties": false,
132
+ "properties": {
133
+ "offset": {
134
+ "type": "integer",
135
+ "minimum": 0,
136
+ "maximum": 134217728
137
+ },
138
+ "encodedBytes": {
139
+ "type": "integer",
140
+ "minimum": 1,
141
+ "maximum": 8388608
142
+ },
143
+ "decodedBytes": {
144
+ "type": "integer",
145
+ "minimum": 1,
146
+ "maximum": 8388608
147
+ },
148
+ "codec": {
149
+ "enum": [
150
+ "identity",
151
+ "deflate-raw"
152
+ ]
153
+ }
154
+ },
155
+ "required": [
156
+ "offset",
157
+ "encodedBytes",
158
+ "decodedBytes",
159
+ "codec"
160
+ ]
161
+ },
162
+ "chunks": {
163
+ "type": "array",
164
+ "minItems": 1,
165
+ "maxItems": 129,
166
+ "items": {
167
+ "type": "object",
168
+ "additionalProperties": false,
169
+ "properties": {
170
+ "index": {
171
+ "type": "integer",
172
+ "minimum": 0,
173
+ "maximum": 128
174
+ },
175
+ "byteLength": {
176
+ "type": "integer",
177
+ "minimum": 17,
178
+ "maximum": 1048576
179
+ },
180
+ "iv": {
181
+ "type": "string",
182
+ "pattern": "^[A-Za-z0-9_-]{16}$"
183
+ },
184
+ "sha256": {
185
+ "type": "string",
186
+ "pattern": "^[a-f0-9]{64}$"
187
+ }
188
+ },
189
+ "required": [
190
+ "index",
191
+ "byteLength",
192
+ "iv",
193
+ "sha256"
194
+ ]
195
+ }
196
+ },
197
+ "signature": {
198
+ "type": "string",
199
+ "pattern": "^[A-Za-z0-9_-]{86}$"
200
+ }
201
+ },
202
+ "required": [
203
+ "schemaVersion",
204
+ "kind",
205
+ "workspaceId",
206
+ "revisionId",
207
+ "epoch",
208
+ "createdAt",
209
+ "plaintextBytes",
210
+ "ciphertextBytes",
211
+ "catalog",
212
+ "chunks",
213
+ "signature"
214
+ ]
215
+ },
216
+ "signature": {
217
+ "type": "string",
218
+ "pattern": "^[A-Za-z0-9_-]{86}$"
219
+ }
220
+ },
221
+ "required": [
222
+ "schemaVersion",
223
+ "workspaceId",
224
+ "operationId",
225
+ "expectedVersion",
226
+ "epoch",
227
+ "ownerPublicKey",
228
+ "ownerAuthHash",
229
+ "reviewerAuthHash",
230
+ "keyring",
231
+ "manifest",
232
+ "signature"
233
+ ]
234
+ }
@@ -0,0 +1,54 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://openplanr.dev/schemas/v1.17.0/encrypted-upload-receipt.schema.json",
4
+ "x-openplanr-contract": {
5
+ "id": "encrypted-upload-receipt",
6
+ "version": "1.17.0"
7
+ },
8
+ "type": "object",
9
+ "additionalProperties": false,
10
+ "properties": {
11
+ "schemaVersion": {
12
+ "const": "2.0.0"
13
+ },
14
+ "workspaceId": {
15
+ "type": "string",
16
+ "pattern": "^[A-Za-z0-9_-]{22,64}$"
17
+ },
18
+ "operationId": {
19
+ "type": "string",
20
+ "pattern": "^[A-Za-z0-9_-]{22,64}$"
21
+ },
22
+ "revisionId": {
23
+ "type": "string",
24
+ "pattern": "^[A-Za-z0-9_-]{22,64}$"
25
+ },
26
+ "manifestSha256": {
27
+ "type": "string",
28
+ "pattern": "^[a-f0-9]{64}$"
29
+ },
30
+ "status": {
31
+ "const": "committed"
32
+ },
33
+ "version": {
34
+ "type": "integer",
35
+ "minimum": 1,
36
+ "maximum": 9007199254740991
37
+ },
38
+ "committedAt": {
39
+ "type": "string",
40
+ "format": "date-time",
41
+ "maxLength": 40
42
+ }
43
+ },
44
+ "required": [
45
+ "schemaVersion",
46
+ "workspaceId",
47
+ "operationId",
48
+ "revisionId",
49
+ "manifestSha256",
50
+ "status",
51
+ "version",
52
+ "committedAt"
53
+ ]
54
+ }
@@ -0,0 +1,129 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://openplanr.dev/schemas/v1.17.0/encrypted-upload-status.schema.json",
4
+ "x-openplanr-contract": {
5
+ "id": "encrypted-upload-status",
6
+ "version": "1.17.0"
7
+ },
8
+ "type": "object",
9
+ "additionalProperties": false,
10
+ "properties": {
11
+ "schemaVersion": {
12
+ "const": "2.0.0"
13
+ },
14
+ "workspaceId": {
15
+ "type": "string",
16
+ "pattern": "^[A-Za-z0-9_-]{22,64}$"
17
+ },
18
+ "operationId": {
19
+ "type": "string",
20
+ "pattern": "^[A-Za-z0-9_-]{22,64}$"
21
+ },
22
+ "revisionId": {
23
+ "type": "string",
24
+ "pattern": "^[A-Za-z0-9_-]{22,64}$"
25
+ },
26
+ "manifestSha256": {
27
+ "type": "string",
28
+ "pattern": "^[a-f0-9]{64}$"
29
+ },
30
+ "status": {
31
+ "enum": [
32
+ "prepared",
33
+ "committed"
34
+ ]
35
+ },
36
+ "receivedChunks": {
37
+ "type": "array",
38
+ "maxItems": 129,
39
+ "items": {
40
+ "type": "object",
41
+ "additionalProperties": false,
42
+ "properties": {
43
+ "index": {
44
+ "type": "integer",
45
+ "minimum": 0,
46
+ "maximum": 128
47
+ },
48
+ "sha256": {
49
+ "type": "string",
50
+ "pattern": "^[a-f0-9]{64}$"
51
+ },
52
+ "byteLength": {
53
+ "type": "integer",
54
+ "minimum": 17,
55
+ "maximum": 1048576
56
+ }
57
+ },
58
+ "required": [
59
+ "index",
60
+ "sha256",
61
+ "byteLength"
62
+ ]
63
+ }
64
+ },
65
+ "receipt": {
66
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
67
+ "$id": "https://openplanr.dev/schemas/v1.17.0/encrypted-upload-receipt.schema.json",
68
+ "x-openplanr-contract": {
69
+ "id": "encrypted-upload-receipt",
70
+ "version": "1.17.0"
71
+ },
72
+ "type": "object",
73
+ "additionalProperties": false,
74
+ "properties": {
75
+ "schemaVersion": {
76
+ "const": "2.0.0"
77
+ },
78
+ "workspaceId": {
79
+ "type": "string",
80
+ "pattern": "^[A-Za-z0-9_-]{22,64}$"
81
+ },
82
+ "operationId": {
83
+ "type": "string",
84
+ "pattern": "^[A-Za-z0-9_-]{22,64}$"
85
+ },
86
+ "revisionId": {
87
+ "type": "string",
88
+ "pattern": "^[A-Za-z0-9_-]{22,64}$"
89
+ },
90
+ "manifestSha256": {
91
+ "type": "string",
92
+ "pattern": "^[a-f0-9]{64}$"
93
+ },
94
+ "status": {
95
+ "const": "committed"
96
+ },
97
+ "version": {
98
+ "type": "integer",
99
+ "minimum": 1,
100
+ "maximum": 9007199254740991
101
+ },
102
+ "committedAt": {
103
+ "type": "string",
104
+ "format": "date-time",
105
+ "maxLength": 40
106
+ }
107
+ },
108
+ "required": [
109
+ "schemaVersion",
110
+ "workspaceId",
111
+ "operationId",
112
+ "revisionId",
113
+ "manifestSha256",
114
+ "status",
115
+ "version",
116
+ "committedAt"
117
+ ]
118
+ }
119
+ },
120
+ "required": [
121
+ "schemaVersion",
122
+ "workspaceId",
123
+ "operationId",
124
+ "revisionId",
125
+ "manifestSha256",
126
+ "status",
127
+ "receivedChunks"
128
+ ]
129
+ }
@@ -0,0 +1,79 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://openplanr.dev/schemas/v1.17.0/encrypted-workspace-event-v2.schema.json",
4
+ "x-openplanr-contract": {
5
+ "id": "encrypted-workspace-event-v2",
6
+ "version": "1.17.0"
7
+ },
8
+ "type": "object",
9
+ "additionalProperties": false,
10
+ "properties": {
11
+ "id": {
12
+ "type": "string",
13
+ "pattern": "^[A-Za-z0-9_-]{22,64}$"
14
+ },
15
+ "epoch": {
16
+ "type": "integer",
17
+ "minimum": 1,
18
+ "maximum": 9007199254740991
19
+ },
20
+ "revisionId": {
21
+ "type": "string",
22
+ "pattern": "^[A-Za-z0-9_-]{22,64}$"
23
+ },
24
+ "createdAt": {
25
+ "type": "string",
26
+ "format": "date-time",
27
+ "maxLength": 40
28
+ },
29
+ "iv": {
30
+ "type": "string",
31
+ "pattern": "^[A-Za-z0-9_-]{16}$"
32
+ },
33
+ "ciphertext": {
34
+ "type": "string",
35
+ "pattern": "^[A-Za-z0-9_-]+$",
36
+ "maxLength": 349526
37
+ },
38
+ "authorPublicKey": {
39
+ "type": "object",
40
+ "additionalProperties": false,
41
+ "properties": {
42
+ "kty": {
43
+ "const": "EC"
44
+ },
45
+ "crv": {
46
+ "const": "P-256"
47
+ },
48
+ "x": {
49
+ "type": "string",
50
+ "pattern": "^[A-Za-z0-9_-]{43}$"
51
+ },
52
+ "y": {
53
+ "type": "string",
54
+ "pattern": "^[A-Za-z0-9_-]{43}$"
55
+ }
56
+ },
57
+ "required": [
58
+ "kty",
59
+ "crv",
60
+ "x",
61
+ "y"
62
+ ]
63
+ },
64
+ "signature": {
65
+ "type": "string",
66
+ "pattern": "^[A-Za-z0-9_-]{86}$"
67
+ }
68
+ },
69
+ "required": [
70
+ "id",
71
+ "epoch",
72
+ "revisionId",
73
+ "createdAt",
74
+ "iv",
75
+ "ciphertext",
76
+ "authorPublicKey",
77
+ "signature"
78
+ ]
79
+ }