@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,157 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://openplanr.dev/schemas/v1.15.0/diagram-review-feedback.schema.json",
|
|
4
|
+
"x-openplanr-contract": {
|
|
5
|
+
"id": "diagram-review-feedback",
|
|
6
|
+
"version": "1.15.0"
|
|
7
|
+
},
|
|
8
|
+
"oneOf": [
|
|
9
|
+
{
|
|
10
|
+
"type": "object",
|
|
11
|
+
"properties": {
|
|
12
|
+
"kind": {
|
|
13
|
+
"const": "comment"
|
|
14
|
+
},
|
|
15
|
+
"author": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"minLength": 1,
|
|
18
|
+
"maxLength": 160
|
|
19
|
+
},
|
|
20
|
+
"reviewOf": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
23
|
+
},
|
|
24
|
+
"createdAt": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"format": "date-time"
|
|
27
|
+
},
|
|
28
|
+
"commentId": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"minLength": 1,
|
|
31
|
+
"maxLength": 160
|
|
32
|
+
},
|
|
33
|
+
"body": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"maxLength": 8192,
|
|
36
|
+
"minLength": 1
|
|
37
|
+
},
|
|
38
|
+
"target": {
|
|
39
|
+
"type": "object",
|
|
40
|
+
"properties": {
|
|
41
|
+
"elementId": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"minLength": 1,
|
|
44
|
+
"maxLength": 160
|
|
45
|
+
},
|
|
46
|
+
"x": {
|
|
47
|
+
"type": "number",
|
|
48
|
+
"minimum": 0,
|
|
49
|
+
"maximum": 1
|
|
50
|
+
},
|
|
51
|
+
"y": {
|
|
52
|
+
"type": "number",
|
|
53
|
+
"minimum": 0,
|
|
54
|
+
"maximum": 1
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"required": [],
|
|
58
|
+
"additionalProperties": false
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"required": [
|
|
62
|
+
"kind",
|
|
63
|
+
"author",
|
|
64
|
+
"reviewOf",
|
|
65
|
+
"createdAt",
|
|
66
|
+
"commentId",
|
|
67
|
+
"body",
|
|
68
|
+
"target"
|
|
69
|
+
],
|
|
70
|
+
"additionalProperties": false
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"type": "object",
|
|
74
|
+
"properties": {
|
|
75
|
+
"kind": {
|
|
76
|
+
"const": "reply"
|
|
77
|
+
},
|
|
78
|
+
"author": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"minLength": 1,
|
|
81
|
+
"maxLength": 160
|
|
82
|
+
},
|
|
83
|
+
"reviewOf": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
86
|
+
},
|
|
87
|
+
"createdAt": {
|
|
88
|
+
"type": "string",
|
|
89
|
+
"format": "date-time"
|
|
90
|
+
},
|
|
91
|
+
"commentId": {
|
|
92
|
+
"type": "string",
|
|
93
|
+
"minLength": 1,
|
|
94
|
+
"maxLength": 160
|
|
95
|
+
},
|
|
96
|
+
"body": {
|
|
97
|
+
"type": "string",
|
|
98
|
+
"maxLength": 8192,
|
|
99
|
+
"minLength": 1
|
|
100
|
+
},
|
|
101
|
+
"parentId": {
|
|
102
|
+
"type": "string",
|
|
103
|
+
"minLength": 1,
|
|
104
|
+
"maxLength": 160
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"required": [
|
|
108
|
+
"kind",
|
|
109
|
+
"author",
|
|
110
|
+
"reviewOf",
|
|
111
|
+
"createdAt",
|
|
112
|
+
"commentId",
|
|
113
|
+
"body",
|
|
114
|
+
"parentId"
|
|
115
|
+
],
|
|
116
|
+
"additionalProperties": false
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"type": "object",
|
|
120
|
+
"properties": {
|
|
121
|
+
"kind": {
|
|
122
|
+
"const": "resolve"
|
|
123
|
+
},
|
|
124
|
+
"author": {
|
|
125
|
+
"type": "string",
|
|
126
|
+
"minLength": 1,
|
|
127
|
+
"maxLength": 160
|
|
128
|
+
},
|
|
129
|
+
"reviewOf": {
|
|
130
|
+
"type": "string",
|
|
131
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
132
|
+
},
|
|
133
|
+
"createdAt": {
|
|
134
|
+
"type": "string",
|
|
135
|
+
"format": "date-time"
|
|
136
|
+
},
|
|
137
|
+
"commentId": {
|
|
138
|
+
"type": "string",
|
|
139
|
+
"minLength": 1,
|
|
140
|
+
"maxLength": 160
|
|
141
|
+
},
|
|
142
|
+
"resolved": {
|
|
143
|
+
"type": "boolean"
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"required": [
|
|
147
|
+
"kind",
|
|
148
|
+
"author",
|
|
149
|
+
"reviewOf",
|
|
150
|
+
"createdAt",
|
|
151
|
+
"commentId",
|
|
152
|
+
"resolved"
|
|
153
|
+
],
|
|
154
|
+
"additionalProperties": false
|
|
155
|
+
}
|
|
156
|
+
]
|
|
157
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://openplanr.dev/schemas/v1.15.0/diagram-review-workspace.schema.json",
|
|
4
|
+
"x-openplanr-contract": {
|
|
5
|
+
"id": "diagram-review-workspace",
|
|
6
|
+
"version": "1.15.0"
|
|
7
|
+
},
|
|
8
|
+
"type": "object",
|
|
9
|
+
"additionalProperties": false,
|
|
10
|
+
"properties": {
|
|
11
|
+
"schemaVersion": {
|
|
12
|
+
"const": "1.0.0"
|
|
13
|
+
},
|
|
14
|
+
"id": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"pattern": "^[A-Za-z0-9_-]{22,64}$"
|
|
17
|
+
},
|
|
18
|
+
"version": {
|
|
19
|
+
"type": "integer",
|
|
20
|
+
"minimum": 1,
|
|
21
|
+
"maximum": 2147483647
|
|
22
|
+
},
|
|
23
|
+
"epoch": {
|
|
24
|
+
"type": "integer",
|
|
25
|
+
"minimum": 1,
|
|
26
|
+
"maximum": 2147483647
|
|
27
|
+
},
|
|
28
|
+
"currentRevision": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"pattern": "^[A-Za-z0-9_-]{22,64}$"
|
|
31
|
+
},
|
|
32
|
+
"commentsPaused": {
|
|
33
|
+
"type": "boolean"
|
|
34
|
+
},
|
|
35
|
+
"ownerPublicKey": {
|
|
36
|
+
"type": "object",
|
|
37
|
+
"additionalProperties": false,
|
|
38
|
+
"required": [
|
|
39
|
+
"kty",
|
|
40
|
+
"crv",
|
|
41
|
+
"x",
|
|
42
|
+
"y"
|
|
43
|
+
],
|
|
44
|
+
"properties": {
|
|
45
|
+
"kty": {
|
|
46
|
+
"const": "EC"
|
|
47
|
+
},
|
|
48
|
+
"crv": {
|
|
49
|
+
"const": "P-256"
|
|
50
|
+
},
|
|
51
|
+
"x": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"pattern": "^[A-Za-z0-9_-]+$",
|
|
54
|
+
"minLength": 43,
|
|
55
|
+
"maxLength": 43
|
|
56
|
+
},
|
|
57
|
+
"y": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"pattern": "^[A-Za-z0-9_-]+$",
|
|
60
|
+
"minLength": 43,
|
|
61
|
+
"maxLength": 43
|
|
62
|
+
},
|
|
63
|
+
"ext": {
|
|
64
|
+
"type": "boolean"
|
|
65
|
+
},
|
|
66
|
+
"key_ops": {
|
|
67
|
+
"type": "array",
|
|
68
|
+
"items": {
|
|
69
|
+
"const": "verify"
|
|
70
|
+
},
|
|
71
|
+
"maxItems": 1
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"keyring": {
|
|
76
|
+
"type": "object",
|
|
77
|
+
"additionalProperties": false,
|
|
78
|
+
"required": [
|
|
79
|
+
"iv",
|
|
80
|
+
"ciphertext"
|
|
81
|
+
],
|
|
82
|
+
"properties": {
|
|
83
|
+
"iv": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"pattern": "^[A-Za-z0-9_-]+$",
|
|
86
|
+
"minLength": 16,
|
|
87
|
+
"maxLength": 16
|
|
88
|
+
},
|
|
89
|
+
"ciphertext": {
|
|
90
|
+
"type": "string",
|
|
91
|
+
"pattern": "^[A-Za-z0-9_-]+$",
|
|
92
|
+
"minLength": 22,
|
|
93
|
+
"maxLength": 6990507
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"required": [
|
|
99
|
+
"schemaVersion",
|
|
100
|
+
"id",
|
|
101
|
+
"version",
|
|
102
|
+
"epoch",
|
|
103
|
+
"currentRevision",
|
|
104
|
+
"commentsPaused",
|
|
105
|
+
"ownerPublicKey",
|
|
106
|
+
"keyring"
|
|
107
|
+
]
|
|
108
|
+
}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://openplanr.dev/schemas/v1.15.0/diagram-workspace-create.schema.json",
|
|
4
|
+
"x-openplanr-contract": {
|
|
5
|
+
"id": "diagram-workspace-create",
|
|
6
|
+
"version": "1.15.0"
|
|
7
|
+
},
|
|
8
|
+
"type": "object",
|
|
9
|
+
"additionalProperties": false,
|
|
10
|
+
"properties": {
|
|
11
|
+
"schemaVersion": {
|
|
12
|
+
"const": "1.0.0"
|
|
13
|
+
},
|
|
14
|
+
"id": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"pattern": "^[A-Za-z0-9_-]{22,64}$"
|
|
17
|
+
},
|
|
18
|
+
"ownerPublicKey": {
|
|
19
|
+
"type": "object",
|
|
20
|
+
"additionalProperties": false,
|
|
21
|
+
"required": [
|
|
22
|
+
"kty",
|
|
23
|
+
"crv",
|
|
24
|
+
"x",
|
|
25
|
+
"y"
|
|
26
|
+
],
|
|
27
|
+
"properties": {
|
|
28
|
+
"kty": {
|
|
29
|
+
"const": "EC"
|
|
30
|
+
},
|
|
31
|
+
"crv": {
|
|
32
|
+
"const": "P-256"
|
|
33
|
+
},
|
|
34
|
+
"x": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"pattern": "^[A-Za-z0-9_-]+$",
|
|
37
|
+
"minLength": 43,
|
|
38
|
+
"maxLength": 43
|
|
39
|
+
},
|
|
40
|
+
"y": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"pattern": "^[A-Za-z0-9_-]+$",
|
|
43
|
+
"minLength": 43,
|
|
44
|
+
"maxLength": 43
|
|
45
|
+
},
|
|
46
|
+
"ext": {
|
|
47
|
+
"type": "boolean"
|
|
48
|
+
},
|
|
49
|
+
"key_ops": {
|
|
50
|
+
"type": "array",
|
|
51
|
+
"items": {
|
|
52
|
+
"const": "verify"
|
|
53
|
+
},
|
|
54
|
+
"maxItems": 1
|
|
55
|
+
}
|
|
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
|
+
"epoch": {
|
|
67
|
+
"const": 1
|
|
68
|
+
},
|
|
69
|
+
"keyring": {
|
|
70
|
+
"type": "object",
|
|
71
|
+
"additionalProperties": false,
|
|
72
|
+
"required": [
|
|
73
|
+
"iv",
|
|
74
|
+
"ciphertext"
|
|
75
|
+
],
|
|
76
|
+
"properties": {
|
|
77
|
+
"iv": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"pattern": "^[A-Za-z0-9_-]+$",
|
|
80
|
+
"minLength": 16,
|
|
81
|
+
"maxLength": 16
|
|
82
|
+
},
|
|
83
|
+
"ciphertext": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"pattern": "^[A-Za-z0-9_-]+$",
|
|
86
|
+
"minLength": 22,
|
|
87
|
+
"maxLength": 6990507
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"revision": {
|
|
92
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
93
|
+
"$id": "https://openplanr.dev/schemas/v1.9.0/design-workspace-revision.schema.json",
|
|
94
|
+
"x-openplanr-contract": {
|
|
95
|
+
"id": "design-workspace-revision",
|
|
96
|
+
"version": "1.9.0"
|
|
97
|
+
},
|
|
98
|
+
"type": "object",
|
|
99
|
+
"additionalProperties": false,
|
|
100
|
+
"properties": {
|
|
101
|
+
"id": {
|
|
102
|
+
"type": "string",
|
|
103
|
+
"pattern": "^[A-Za-z0-9_-]{22,64}$"
|
|
104
|
+
},
|
|
105
|
+
"epoch": {
|
|
106
|
+
"type": "integer",
|
|
107
|
+
"minimum": 1,
|
|
108
|
+
"maximum": 2147483647
|
|
109
|
+
},
|
|
110
|
+
"reviewOf": {
|
|
111
|
+
"type": "string",
|
|
112
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
113
|
+
},
|
|
114
|
+
"createdAt": {
|
|
115
|
+
"type": "string",
|
|
116
|
+
"format": "date-time"
|
|
117
|
+
},
|
|
118
|
+
"iv": {
|
|
119
|
+
"type": "string",
|
|
120
|
+
"pattern": "^[A-Za-z0-9_-]+$",
|
|
121
|
+
"minLength": 16,
|
|
122
|
+
"maxLength": 16
|
|
123
|
+
},
|
|
124
|
+
"ciphertext": {
|
|
125
|
+
"type": "string",
|
|
126
|
+
"pattern": "^[A-Za-z0-9_-]+$",
|
|
127
|
+
"minLength": 22,
|
|
128
|
+
"maxLength": 6990507
|
|
129
|
+
},
|
|
130
|
+
"signature": {
|
|
131
|
+
"type": "string",
|
|
132
|
+
"pattern": "^[A-Za-z0-9_-]+$",
|
|
133
|
+
"minLength": 86,
|
|
134
|
+
"maxLength": 86
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"required": [
|
|
138
|
+
"id",
|
|
139
|
+
"epoch",
|
|
140
|
+
"reviewOf",
|
|
141
|
+
"createdAt",
|
|
142
|
+
"iv",
|
|
143
|
+
"ciphertext",
|
|
144
|
+
"signature"
|
|
145
|
+
]
|
|
146
|
+
},
|
|
147
|
+
"operationId": {
|
|
148
|
+
"type": "string",
|
|
149
|
+
"pattern": "^[A-Za-z0-9_-]{22,64}$"
|
|
150
|
+
},
|
|
151
|
+
"signature": {
|
|
152
|
+
"type": "string",
|
|
153
|
+
"pattern": "^[A-Za-z0-9_-]+$",
|
|
154
|
+
"minLength": 86,
|
|
155
|
+
"maxLength": 86
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
"required": [
|
|
159
|
+
"schemaVersion",
|
|
160
|
+
"id",
|
|
161
|
+
"ownerPublicKey",
|
|
162
|
+
"ownerAuthHash",
|
|
163
|
+
"reviewerAuthHash",
|
|
164
|
+
"epoch",
|
|
165
|
+
"keyring",
|
|
166
|
+
"revision",
|
|
167
|
+
"operationId",
|
|
168
|
+
"signature"
|
|
169
|
+
]
|
|
170
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://openplanr.dev/schemas/v1.15.0/diagram-workspace-event.schema.json",
|
|
4
|
+
"x-openplanr-contract": {
|
|
5
|
+
"id": "diagram-workspace-event",
|
|
6
|
+
"version": "1.15.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
|
+
"revisionId": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"pattern": "^[A-Za-z0-9_-]{22,64}$"
|
|
18
|
+
},
|
|
19
|
+
"reviewOf": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
22
|
+
},
|
|
23
|
+
"epoch": {
|
|
24
|
+
"type": "integer",
|
|
25
|
+
"minimum": 1,
|
|
26
|
+
"maximum": 2147483647
|
|
27
|
+
},
|
|
28
|
+
"iv": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"pattern": "^[A-Za-z0-9_-]+$",
|
|
31
|
+
"minLength": 16,
|
|
32
|
+
"maxLength": 16
|
|
33
|
+
},
|
|
34
|
+
"ciphertext": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"pattern": "^[A-Za-z0-9_-]+$",
|
|
37
|
+
"minLength": 22,
|
|
38
|
+
"maxLength": 6990507
|
|
39
|
+
},
|
|
40
|
+
"publicKey": {
|
|
41
|
+
"type": "object",
|
|
42
|
+
"additionalProperties": false,
|
|
43
|
+
"required": [
|
|
44
|
+
"kty",
|
|
45
|
+
"crv",
|
|
46
|
+
"x",
|
|
47
|
+
"y"
|
|
48
|
+
],
|
|
49
|
+
"properties": {
|
|
50
|
+
"kty": {
|
|
51
|
+
"const": "EC"
|
|
52
|
+
},
|
|
53
|
+
"crv": {
|
|
54
|
+
"const": "P-256"
|
|
55
|
+
},
|
|
56
|
+
"x": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"pattern": "^[A-Za-z0-9_-]+$",
|
|
59
|
+
"minLength": 43,
|
|
60
|
+
"maxLength": 43
|
|
61
|
+
},
|
|
62
|
+
"y": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"pattern": "^[A-Za-z0-9_-]+$",
|
|
65
|
+
"minLength": 43,
|
|
66
|
+
"maxLength": 43
|
|
67
|
+
},
|
|
68
|
+
"ext": {
|
|
69
|
+
"type": "boolean"
|
|
70
|
+
},
|
|
71
|
+
"key_ops": {
|
|
72
|
+
"type": "array",
|
|
73
|
+
"items": {
|
|
74
|
+
"const": "verify"
|
|
75
|
+
},
|
|
76
|
+
"maxItems": 1
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"signature": {
|
|
81
|
+
"type": "string",
|
|
82
|
+
"pattern": "^[A-Za-z0-9_-]+$",
|
|
83
|
+
"minLength": 86,
|
|
84
|
+
"maxLength": 86
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"required": [
|
|
88
|
+
"id",
|
|
89
|
+
"revisionId",
|
|
90
|
+
"reviewOf",
|
|
91
|
+
"epoch",
|
|
92
|
+
"iv",
|
|
93
|
+
"ciphertext",
|
|
94
|
+
"publicKey",
|
|
95
|
+
"signature"
|
|
96
|
+
]
|
|
97
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://openplanr.dev/schemas/v1.15.0/diagram-workspace-revision.schema.json",
|
|
4
|
+
"x-openplanr-contract": {
|
|
5
|
+
"id": "diagram-workspace-revision",
|
|
6
|
+
"version": "1.15.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": 2147483647
|
|
19
|
+
},
|
|
20
|
+
"reviewOf": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
23
|
+
},
|
|
24
|
+
"createdAt": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"format": "date-time"
|
|
27
|
+
},
|
|
28
|
+
"iv": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"pattern": "^[A-Za-z0-9_-]+$",
|
|
31
|
+
"minLength": 16,
|
|
32
|
+
"maxLength": 16
|
|
33
|
+
},
|
|
34
|
+
"ciphertext": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"pattern": "^[A-Za-z0-9_-]+$",
|
|
37
|
+
"minLength": 22,
|
|
38
|
+
"maxLength": 6990507
|
|
39
|
+
},
|
|
40
|
+
"signature": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"pattern": "^[A-Za-z0-9_-]+$",
|
|
43
|
+
"minLength": 86,
|
|
44
|
+
"maxLength": 86
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"required": [
|
|
48
|
+
"id",
|
|
49
|
+
"epoch",
|
|
50
|
+
"reviewOf",
|
|
51
|
+
"createdAt",
|
|
52
|
+
"iv",
|
|
53
|
+
"ciphertext",
|
|
54
|
+
"signature"
|
|
55
|
+
]
|
|
56
|
+
}
|