@openplanr/protocol 0.7.3 → 0.9.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/README.md +22 -0
- package/package.json +21 -1
- package/registries/commands.json +11 -11
- package/registries/skills.json +89 -11
- package/registry/v1.17.0/commands.json +88 -0
- package/schemas/v1.15.0/diagram-review-bundle.schema.json +1280 -0
- package/schemas/v1.15.0/diagram-review-feedback.schema.json +157 -0
- package/schemas/v1.15.0/diagram-review-workspace.schema.json +108 -0
- package/schemas/v1.15.0/diagram-workspace-create.schema.json +170 -0
- package/schemas/v1.15.0/diagram-workspace-event.schema.json +97 -0
- package/schemas/v1.15.0/diagram-workspace-revision.schema.json +56 -0
- package/schemas/v1.16.0/artifact-envelope.schema.json +408 -0
- package/schemas/v1.16.0/design-review-bundle.schema.json +590 -0
- package/schemas/v1.17.0/artifact-paste-v2.schema.json +52 -0
- package/schemas/v1.17.0/artifact-room-append-v3.schema.json +159 -0
- package/schemas/v1.17.0/artifact-room-create-v3.schema.json +111 -0
- package/schemas/v1.17.0/artifact-room-descriptor-v3.schema.json +92 -0
- package/schemas/v1.17.0/artifact-room-event-v3.schema.json +130 -0
- package/schemas/v1.17.0/artifact-room-management-v3.schema.json +47 -0
- package/schemas/v1.17.0/artifact-room-read-page-v3.schema.json +308 -0
- package/schemas/v1.17.0/company-resource-manifest.schema.json +128 -0
- package/schemas/v1.17.0/company-resource-upload-prepare.schema.json +164 -0
- package/schemas/v1.17.0/company-resource-upload-receipt.schema.json +63 -0
- package/schemas/v1.17.0/company-resource-upload-status.schema.json +123 -0
- package/schemas/v1.17.0/diagram-authoring-bundle.schema.json +1117 -0
- package/schemas/v1.17.0/diagram-edit-transaction.schema.json +3295 -0
- package/schemas/v1.17.0/diagram-presentation.schema.json +37 -0
- package/schemas/v1.17.0/diagram-review-bundle.schema.json +2439 -0
- package/schemas/v1.17.0/encrypted-resource-manifest.schema.json +131 -0
- package/schemas/v1.17.0/encrypted-upload-commit.schema.json +38 -0
- package/schemas/v1.17.0/encrypted-upload-prepare.schema.json +234 -0
- package/schemas/v1.17.0/encrypted-upload-receipt.schema.json +54 -0
- package/schemas/v1.17.0/encrypted-upload-status.schema.json +129 -0
- package/schemas/v1.17.0/encrypted-workspace-event-v2.schema.json +79 -0
- package/schemas/v1.17.0/encrypted-workspace-v2.schema.json +91 -0
- package/schemas/v1.17.0/enterprise-agent-handoff.schema.json +985 -0
- package/schemas/v1.17.0/enterprise-artifact-revision.schema.json +115 -0
- package/schemas/v1.17.0/enterprise-change-proposal.schema.json +379 -0
- package/schemas/v1.17.0/enterprise-evidence-reference.schema.json +159 -0
- package/schemas/v1.17.0/enterprise-review-thread.schema.json +298 -0
- package/schemas/v1.17.0/enterprise-sync-state.schema.json +189 -0
- package/schemas/v1.17.0/preview-bridge-message.schema.json +197 -0
- package/schemas/v1.17.0/resource-catalog.schema.json +145 -0
- package/schemas/v1.17.0/sharing-crypto-aad.schema.json +36 -0
- package/schemas/v1.17.0/workspace-management-v2.schema.json +45 -0
- package/schemas/v1.17.0/workspace-rotation-v2.schema.json +61 -0
- package/src/bounded-json-data.d.mts +2 -0
- package/src/bounded-json-data.mjs +56 -0
- package/src/browser-contracts.d.mts +23 -1
- package/src/browser-contracts.mjs +52 -0
- package/src/canonical-json.mjs +17 -16
- package/src/contracts.d.mts +1 -0
- package/src/contracts.mjs +106 -5
- package/src/diagram-authoring-contracts.d.mts +12 -0
- package/src/diagram-authoring-contracts.mjs +174 -1
- package/src/diagram-review-contracts.d.mts +73 -0
- package/src/diagram-review-contracts.mjs +250 -0
- package/src/enterprise-contract-validation.d.mts +44 -0
- package/src/enterprise-contract-validation.mjs +279 -0
- package/src/enterprise-contracts.mjs +25 -231
- package/src/enterprise-resource-contracts.d.mts +72 -0
- package/src/enterprise-resource-contracts.mjs +202 -0
- package/src/generated/artifact-envelope-metadata.mjs +769 -0
- package/src/generated/canonical-registries.mjs +100 -22
- package/src/index.d.mts +22 -0
- package/src/index.mjs +26 -0
- package/src/large-object-contracts.d.mts +107 -0
- package/src/large-object-contracts.mjs +473 -0
- package/src/large-object-limits.d.mts +16 -0
- package/src/large-object-limits.mjs +17 -0
- package/src/registries.mjs +1 -0
- package/src/review-experience-contracts.d.mts +1 -0
- package/src/review-experience-contracts.mjs +25 -4
- package/src/sharing-security-contracts.d.mts +63 -0
- package/src/sharing-security-contracts.mjs +403 -0
- package/src/studio-presentation-contracts.d.mts +92 -0
- package/src/studio-presentation-contracts.mjs +287 -0
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://openplanr.dev/schemas/v1.17.0/artifact-room-append-v3.schema.json",
|
|
4
|
+
"x-openplanr-contract": {
|
|
5
|
+
"id": "artifact-room-append-v3",
|
|
6
|
+
"version": "1.17.0"
|
|
7
|
+
},
|
|
8
|
+
"type": "object",
|
|
9
|
+
"additionalProperties": false,
|
|
10
|
+
"properties": {
|
|
11
|
+
"schemaVersion": {
|
|
12
|
+
"const": "3.0.0"
|
|
13
|
+
},
|
|
14
|
+
"operation": {
|
|
15
|
+
"const": "append"
|
|
16
|
+
},
|
|
17
|
+
"expectedGeneration": {
|
|
18
|
+
"type": "integer",
|
|
19
|
+
"minimum": 0,
|
|
20
|
+
"maximum": 9007199254740991
|
|
21
|
+
},
|
|
22
|
+
"record": {
|
|
23
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
24
|
+
"$id": "https://openplanr.dev/schemas/v1.17.0/artifact-room-event-v3.schema.json",
|
|
25
|
+
"x-openplanr-contract": {
|
|
26
|
+
"id": "artifact-room-event-v3",
|
|
27
|
+
"version": "1.17.0"
|
|
28
|
+
},
|
|
29
|
+
"type": "object",
|
|
30
|
+
"additionalProperties": false,
|
|
31
|
+
"properties": {
|
|
32
|
+
"schemaVersion": {
|
|
33
|
+
"const": "3.0.0"
|
|
34
|
+
},
|
|
35
|
+
"protocolVersion": {
|
|
36
|
+
"const": "3.0.0"
|
|
37
|
+
},
|
|
38
|
+
"roomId": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"pattern": "^[A-Za-z0-9_-]{16,128}$"
|
|
41
|
+
},
|
|
42
|
+
"eventId": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"pattern": "^[A-Za-z0-9._:-]{1,128}$"
|
|
45
|
+
},
|
|
46
|
+
"sequence": {
|
|
47
|
+
"type": "integer",
|
|
48
|
+
"minimum": 1,
|
|
49
|
+
"maximum": 9007199254740991
|
|
50
|
+
},
|
|
51
|
+
"predecessor": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"pattern": "^sha256:[a-f0-9]{64}$"
|
|
54
|
+
},
|
|
55
|
+
"kind": {
|
|
56
|
+
"enum": [
|
|
57
|
+
"pin",
|
|
58
|
+
"reply",
|
|
59
|
+
"pin_status",
|
|
60
|
+
"recommendation",
|
|
61
|
+
"owner_decision",
|
|
62
|
+
"review_snapshot"
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
"reviewCommitment": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
68
|
+
},
|
|
69
|
+
"authorRole": {
|
|
70
|
+
"enum": [
|
|
71
|
+
"owner",
|
|
72
|
+
"reviewer"
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
"authorKey": {
|
|
76
|
+
"type": "object",
|
|
77
|
+
"additionalProperties": false,
|
|
78
|
+
"properties": {
|
|
79
|
+
"algorithm": {
|
|
80
|
+
"const": "ECDSA-P256-SHA256"
|
|
81
|
+
},
|
|
82
|
+
"encoding": {
|
|
83
|
+
"const": "spki-base64url"
|
|
84
|
+
},
|
|
85
|
+
"keyId": {
|
|
86
|
+
"type": "string",
|
|
87
|
+
"pattern": "^sha256:[a-f0-9]{64}$"
|
|
88
|
+
},
|
|
89
|
+
"value": {
|
|
90
|
+
"type": "string",
|
|
91
|
+
"pattern": "^[A-Za-z0-9_-]+$",
|
|
92
|
+
"minLength": 86,
|
|
93
|
+
"maxLength": 342
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"required": [
|
|
97
|
+
"algorithm",
|
|
98
|
+
"encoding",
|
|
99
|
+
"keyId",
|
|
100
|
+
"value"
|
|
101
|
+
]
|
|
102
|
+
},
|
|
103
|
+
"capability": {
|
|
104
|
+
"enum": [
|
|
105
|
+
"reviewer-write",
|
|
106
|
+
"owner-verdict"
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
"createdAt": {
|
|
110
|
+
"type": "string",
|
|
111
|
+
"format": "date-time",
|
|
112
|
+
"maxLength": 40
|
|
113
|
+
},
|
|
114
|
+
"iv": {
|
|
115
|
+
"type": "string",
|
|
116
|
+
"pattern": "^[A-Za-z0-9_-]{16}$"
|
|
117
|
+
},
|
|
118
|
+
"ciphertext": {
|
|
119
|
+
"type": "string",
|
|
120
|
+
"pattern": "^[A-Za-z0-9_-]+$",
|
|
121
|
+
"minLength": 22,
|
|
122
|
+
"maxLength": 349526
|
|
123
|
+
},
|
|
124
|
+
"ciphertextDigest": {
|
|
125
|
+
"type": "string",
|
|
126
|
+
"pattern": "^sha256:[a-f0-9]{64}$"
|
|
127
|
+
},
|
|
128
|
+
"signature": {
|
|
129
|
+
"type": "string",
|
|
130
|
+
"pattern": "^[A-Za-z0-9_-]{86}$"
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"required": [
|
|
134
|
+
"schemaVersion",
|
|
135
|
+
"protocolVersion",
|
|
136
|
+
"roomId",
|
|
137
|
+
"eventId",
|
|
138
|
+
"sequence",
|
|
139
|
+
"predecessor",
|
|
140
|
+
"kind",
|
|
141
|
+
"reviewCommitment",
|
|
142
|
+
"authorRole",
|
|
143
|
+
"authorKey",
|
|
144
|
+
"capability",
|
|
145
|
+
"createdAt",
|
|
146
|
+
"iv",
|
|
147
|
+
"ciphertext",
|
|
148
|
+
"ciphertextDigest",
|
|
149
|
+
"signature"
|
|
150
|
+
]
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
"required": [
|
|
154
|
+
"schemaVersion",
|
|
155
|
+
"operation",
|
|
156
|
+
"expectedGeneration",
|
|
157
|
+
"record"
|
|
158
|
+
]
|
|
159
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://openplanr.dev/schemas/v1.17.0/artifact-room-create-v3.schema.json",
|
|
4
|
+
"x-openplanr-contract": {
|
|
5
|
+
"id": "artifact-room-create-v3",
|
|
6
|
+
"version": "1.17.0"
|
|
7
|
+
},
|
|
8
|
+
"type": "object",
|
|
9
|
+
"additionalProperties": false,
|
|
10
|
+
"properties": {
|
|
11
|
+
"schemaVersion": {
|
|
12
|
+
"const": "3.0.0"
|
|
13
|
+
},
|
|
14
|
+
"operation": {
|
|
15
|
+
"const": "create"
|
|
16
|
+
},
|
|
17
|
+
"roomId": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"pattern": "^[A-Za-z0-9_-]{16,128}$"
|
|
20
|
+
},
|
|
21
|
+
"creationId": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"pattern": "^[A-Za-z0-9_-]{43}$"
|
|
24
|
+
},
|
|
25
|
+
"ttl": {
|
|
26
|
+
"enum": [
|
|
27
|
+
"1d",
|
|
28
|
+
"7d",
|
|
29
|
+
"30d"
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
"reviewCommitment": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
35
|
+
},
|
|
36
|
+
"iv": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"pattern": "^[A-Za-z0-9_-]{16}$"
|
|
39
|
+
},
|
|
40
|
+
"ciphertext": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"pattern": "^[A-Za-z0-9_-]+$",
|
|
43
|
+
"minLength": 22,
|
|
44
|
+
"maxLength": 6990507
|
|
45
|
+
},
|
|
46
|
+
"ownerKey": {
|
|
47
|
+
"type": "object",
|
|
48
|
+
"additionalProperties": false,
|
|
49
|
+
"properties": {
|
|
50
|
+
"algorithm": {
|
|
51
|
+
"const": "ECDSA-P256-SHA256"
|
|
52
|
+
},
|
|
53
|
+
"encoding": {
|
|
54
|
+
"const": "spki-base64url"
|
|
55
|
+
},
|
|
56
|
+
"keyId": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"pattern": "^sha256:[a-f0-9]{64}$"
|
|
59
|
+
},
|
|
60
|
+
"value": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"pattern": "^[A-Za-z0-9_-]+$",
|
|
63
|
+
"minLength": 86,
|
|
64
|
+
"maxLength": 342
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"required": [
|
|
68
|
+
"algorithm",
|
|
69
|
+
"encoding",
|
|
70
|
+
"keyId",
|
|
71
|
+
"value"
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
"readCapability": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"pattern": "^[A-Za-z0-9_-]{43}$"
|
|
77
|
+
},
|
|
78
|
+
"reviewerCapability": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"pattern": "^[A-Za-z0-9_-]{43}$"
|
|
81
|
+
},
|
|
82
|
+
"ownerCapability": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"pattern": "^[A-Za-z0-9_-]{43}$"
|
|
85
|
+
},
|
|
86
|
+
"manageCapability": {
|
|
87
|
+
"type": "string",
|
|
88
|
+
"pattern": "^[A-Za-z0-9_-]{43}$"
|
|
89
|
+
},
|
|
90
|
+
"signature": {
|
|
91
|
+
"type": "string",
|
|
92
|
+
"pattern": "^[A-Za-z0-9_-]{86}$"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"required": [
|
|
96
|
+
"schemaVersion",
|
|
97
|
+
"operation",
|
|
98
|
+
"roomId",
|
|
99
|
+
"creationId",
|
|
100
|
+
"ttl",
|
|
101
|
+
"reviewCommitment",
|
|
102
|
+
"iv",
|
|
103
|
+
"ciphertext",
|
|
104
|
+
"ownerKey",
|
|
105
|
+
"readCapability",
|
|
106
|
+
"reviewerCapability",
|
|
107
|
+
"ownerCapability",
|
|
108
|
+
"manageCapability",
|
|
109
|
+
"signature"
|
|
110
|
+
]
|
|
111
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://openplanr.dev/schemas/v1.17.0/artifact-room-descriptor-v3.schema.json",
|
|
4
|
+
"x-openplanr-contract": {
|
|
5
|
+
"id": "artifact-room-descriptor-v3",
|
|
6
|
+
"version": "1.17.0"
|
|
7
|
+
},
|
|
8
|
+
"type": "object",
|
|
9
|
+
"additionalProperties": false,
|
|
10
|
+
"properties": {
|
|
11
|
+
"schemaVersion": {
|
|
12
|
+
"const": "3.0.0"
|
|
13
|
+
},
|
|
14
|
+
"protocolVersion": {
|
|
15
|
+
"const": "3.0.0"
|
|
16
|
+
},
|
|
17
|
+
"roomId": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"pattern": "^[A-Za-z0-9_-]{16,128}$"
|
|
20
|
+
},
|
|
21
|
+
"reviewCommitment": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
24
|
+
},
|
|
25
|
+
"ownerKey": {
|
|
26
|
+
"type": "object",
|
|
27
|
+
"additionalProperties": false,
|
|
28
|
+
"properties": {
|
|
29
|
+
"algorithm": {
|
|
30
|
+
"const": "ECDSA-P256-SHA256"
|
|
31
|
+
},
|
|
32
|
+
"encoding": {
|
|
33
|
+
"const": "spki-base64url"
|
|
34
|
+
},
|
|
35
|
+
"keyId": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"pattern": "^sha256:[a-f0-9]{64}$"
|
|
38
|
+
},
|
|
39
|
+
"value": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"pattern": "^[A-Za-z0-9_-]+$",
|
|
42
|
+
"minLength": 86,
|
|
43
|
+
"maxLength": 342
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"required": [
|
|
47
|
+
"algorithm",
|
|
48
|
+
"encoding",
|
|
49
|
+
"keyId",
|
|
50
|
+
"value"
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
"capabilities": {
|
|
54
|
+
"type": "object",
|
|
55
|
+
"additionalProperties": false,
|
|
56
|
+
"properties": {
|
|
57
|
+
"read": {
|
|
58
|
+
"const": "room-read"
|
|
59
|
+
},
|
|
60
|
+
"reviewer": {
|
|
61
|
+
"const": "reviewer-write"
|
|
62
|
+
},
|
|
63
|
+
"owner": {
|
|
64
|
+
"const": "owner-verdict"
|
|
65
|
+
},
|
|
66
|
+
"management": {
|
|
67
|
+
"const": "room-management"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"required": [
|
|
71
|
+
"read",
|
|
72
|
+
"reviewer",
|
|
73
|
+
"owner",
|
|
74
|
+
"management"
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
"createdAt": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"format": "date-time",
|
|
80
|
+
"maxLength": 40
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"required": [
|
|
84
|
+
"schemaVersion",
|
|
85
|
+
"protocolVersion",
|
|
86
|
+
"roomId",
|
|
87
|
+
"reviewCommitment",
|
|
88
|
+
"ownerKey",
|
|
89
|
+
"capabilities",
|
|
90
|
+
"createdAt"
|
|
91
|
+
]
|
|
92
|
+
}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://openplanr.dev/schemas/v1.17.0/artifact-room-event-v3.schema.json",
|
|
4
|
+
"x-openplanr-contract": {
|
|
5
|
+
"id": "artifact-room-event-v3",
|
|
6
|
+
"version": "1.17.0"
|
|
7
|
+
},
|
|
8
|
+
"type": "object",
|
|
9
|
+
"additionalProperties": false,
|
|
10
|
+
"properties": {
|
|
11
|
+
"schemaVersion": {
|
|
12
|
+
"const": "3.0.0"
|
|
13
|
+
},
|
|
14
|
+
"protocolVersion": {
|
|
15
|
+
"const": "3.0.0"
|
|
16
|
+
},
|
|
17
|
+
"roomId": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"pattern": "^[A-Za-z0-9_-]{16,128}$"
|
|
20
|
+
},
|
|
21
|
+
"eventId": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"pattern": "^[A-Za-z0-9._:-]{1,128}$"
|
|
24
|
+
},
|
|
25
|
+
"sequence": {
|
|
26
|
+
"type": "integer",
|
|
27
|
+
"minimum": 1,
|
|
28
|
+
"maximum": 9007199254740991
|
|
29
|
+
},
|
|
30
|
+
"predecessor": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"pattern": "^sha256:[a-f0-9]{64}$"
|
|
33
|
+
},
|
|
34
|
+
"kind": {
|
|
35
|
+
"enum": [
|
|
36
|
+
"pin",
|
|
37
|
+
"reply",
|
|
38
|
+
"pin_status",
|
|
39
|
+
"recommendation",
|
|
40
|
+
"owner_decision",
|
|
41
|
+
"review_snapshot"
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
"reviewCommitment": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
47
|
+
},
|
|
48
|
+
"authorRole": {
|
|
49
|
+
"enum": [
|
|
50
|
+
"owner",
|
|
51
|
+
"reviewer"
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
"authorKey": {
|
|
55
|
+
"type": "object",
|
|
56
|
+
"additionalProperties": false,
|
|
57
|
+
"properties": {
|
|
58
|
+
"algorithm": {
|
|
59
|
+
"const": "ECDSA-P256-SHA256"
|
|
60
|
+
},
|
|
61
|
+
"encoding": {
|
|
62
|
+
"const": "spki-base64url"
|
|
63
|
+
},
|
|
64
|
+
"keyId": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"pattern": "^sha256:[a-f0-9]{64}$"
|
|
67
|
+
},
|
|
68
|
+
"value": {
|
|
69
|
+
"type": "string",
|
|
70
|
+
"pattern": "^[A-Za-z0-9_-]+$",
|
|
71
|
+
"minLength": 86,
|
|
72
|
+
"maxLength": 342
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"required": [
|
|
76
|
+
"algorithm",
|
|
77
|
+
"encoding",
|
|
78
|
+
"keyId",
|
|
79
|
+
"value"
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
"capability": {
|
|
83
|
+
"enum": [
|
|
84
|
+
"reviewer-write",
|
|
85
|
+
"owner-verdict"
|
|
86
|
+
]
|
|
87
|
+
},
|
|
88
|
+
"createdAt": {
|
|
89
|
+
"type": "string",
|
|
90
|
+
"format": "date-time",
|
|
91
|
+
"maxLength": 40
|
|
92
|
+
},
|
|
93
|
+
"iv": {
|
|
94
|
+
"type": "string",
|
|
95
|
+
"pattern": "^[A-Za-z0-9_-]{16}$"
|
|
96
|
+
},
|
|
97
|
+
"ciphertext": {
|
|
98
|
+
"type": "string",
|
|
99
|
+
"pattern": "^[A-Za-z0-9_-]+$",
|
|
100
|
+
"minLength": 22,
|
|
101
|
+
"maxLength": 349526
|
|
102
|
+
},
|
|
103
|
+
"ciphertextDigest": {
|
|
104
|
+
"type": "string",
|
|
105
|
+
"pattern": "^sha256:[a-f0-9]{64}$"
|
|
106
|
+
},
|
|
107
|
+
"signature": {
|
|
108
|
+
"type": "string",
|
|
109
|
+
"pattern": "^[A-Za-z0-9_-]{86}$"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"required": [
|
|
113
|
+
"schemaVersion",
|
|
114
|
+
"protocolVersion",
|
|
115
|
+
"roomId",
|
|
116
|
+
"eventId",
|
|
117
|
+
"sequence",
|
|
118
|
+
"predecessor",
|
|
119
|
+
"kind",
|
|
120
|
+
"reviewCommitment",
|
|
121
|
+
"authorRole",
|
|
122
|
+
"authorKey",
|
|
123
|
+
"capability",
|
|
124
|
+
"createdAt",
|
|
125
|
+
"iv",
|
|
126
|
+
"ciphertext",
|
|
127
|
+
"ciphertextDigest",
|
|
128
|
+
"signature"
|
|
129
|
+
]
|
|
130
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://openplanr.dev/schemas/v1.17.0/artifact-room-management-v3.schema.json",
|
|
4
|
+
"x-openplanr-contract": {
|
|
5
|
+
"id": "artifact-room-management-v3",
|
|
6
|
+
"version": "1.17.0"
|
|
7
|
+
},
|
|
8
|
+
"type": "object",
|
|
9
|
+
"additionalProperties": false,
|
|
10
|
+
"properties": {
|
|
11
|
+
"schemaVersion": {
|
|
12
|
+
"const": "3.0.0"
|
|
13
|
+
},
|
|
14
|
+
"roomId": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"pattern": "^[A-Za-z0-9_-]{16,128}$"
|
|
17
|
+
},
|
|
18
|
+
"operation": {
|
|
19
|
+
"enum": [
|
|
20
|
+
"pause",
|
|
21
|
+
"resume",
|
|
22
|
+
"delete"
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
"operationId": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"pattern": "^[A-Za-z0-9_-]{16,128}$"
|
|
28
|
+
},
|
|
29
|
+
"expectedGeneration": {
|
|
30
|
+
"type": "integer",
|
|
31
|
+
"minimum": 0,
|
|
32
|
+
"maximum": 9007199254740991
|
|
33
|
+
},
|
|
34
|
+
"signature": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"pattern": "^[A-Za-z0-9_-]{86}$"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"required": [
|
|
40
|
+
"schemaVersion",
|
|
41
|
+
"roomId",
|
|
42
|
+
"operation",
|
|
43
|
+
"operationId",
|
|
44
|
+
"expectedGeneration",
|
|
45
|
+
"signature"
|
|
46
|
+
]
|
|
47
|
+
}
|