@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,298 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://openplanr.dev/schemas/v1.17.0/enterprise-review-thread.schema.json",
4
+ "x-openplanr-contract": {
5
+ "id": "enterprise-review-thread",
6
+ "version": "1.17.0"
7
+ },
8
+ "type": "object",
9
+ "additionalProperties": false,
10
+ "properties": {
11
+ "kind": {
12
+ "const": "openplanr-enterprise-review-thread"
13
+ },
14
+ "schemaVersion": {
15
+ "const": "1.1.0"
16
+ },
17
+ "id": {
18
+ "type": "string",
19
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
20
+ },
21
+ "organizationId": {
22
+ "type": "string",
23
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
24
+ },
25
+ "projectId": {
26
+ "type": "string",
27
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
28
+ },
29
+ "artifactId": {
30
+ "type": "string",
31
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
32
+ },
33
+ "anchor": {
34
+ "type": "object",
35
+ "additionalProperties": false,
36
+ "properties": {
37
+ "revisionId": {
38
+ "anyOf": [
39
+ {
40
+ "type": "string",
41
+ "pattern": "^[A-Za-z0-9_-]{22,64}$"
42
+ },
43
+ {
44
+ "type": "string",
45
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
46
+ }
47
+ ]
48
+ },
49
+ "elementId": {
50
+ "type": "string",
51
+ "minLength": 1,
52
+ "maxLength": 512,
53
+ "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
54
+ },
55
+ "screenId": {
56
+ "type": "string",
57
+ "minLength": 1,
58
+ "maxLength": 512,
59
+ "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
60
+ },
61
+ "frameId": {
62
+ "type": "string",
63
+ "minLength": 1,
64
+ "maxLength": 512,
65
+ "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
66
+ },
67
+ "x": {
68
+ "type": "number",
69
+ "minimum": 0,
70
+ "maximum": 1
71
+ },
72
+ "y": {
73
+ "type": "number",
74
+ "minimum": 0,
75
+ "maximum": 1
76
+ }
77
+ },
78
+ "required": [
79
+ "revisionId"
80
+ ],
81
+ "anyOf": [
82
+ {
83
+ "required": [
84
+ "elementId"
85
+ ]
86
+ },
87
+ {
88
+ "required": [
89
+ "screenId",
90
+ "frameId"
91
+ ]
92
+ },
93
+ {
94
+ "required": [
95
+ "x",
96
+ "y"
97
+ ]
98
+ }
99
+ ],
100
+ "allOf": [
101
+ {
102
+ "if": {
103
+ "required": [
104
+ "x"
105
+ ]
106
+ },
107
+ "then": {
108
+ "required": [
109
+ "y"
110
+ ]
111
+ }
112
+ },
113
+ {
114
+ "if": {
115
+ "required": [
116
+ "y"
117
+ ]
118
+ },
119
+ "then": {
120
+ "required": [
121
+ "x"
122
+ ]
123
+ }
124
+ },
125
+ {
126
+ "if": {
127
+ "required": [
128
+ "frameId"
129
+ ]
130
+ },
131
+ "then": {
132
+ "required": [
133
+ "screenId"
134
+ ]
135
+ }
136
+ }
137
+ ]
138
+ },
139
+ "category": {
140
+ "enum": [
141
+ "question",
142
+ "suggestion",
143
+ "change-request",
144
+ "blocker"
145
+ ]
146
+ },
147
+ "status": {
148
+ "enum": [
149
+ "open",
150
+ "addressed",
151
+ "resolved"
152
+ ]
153
+ },
154
+ "authorId": {
155
+ "type": "string",
156
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
157
+ },
158
+ "body": {
159
+ "type": "string",
160
+ "minLength": 1,
161
+ "maxLength": 16384
162
+ },
163
+ "createdAt": {
164
+ "type": "string",
165
+ "format": "date-time",
166
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
167
+ },
168
+ "updatedAt": {
169
+ "type": "string",
170
+ "format": "date-time",
171
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
172
+ },
173
+ "replies": {
174
+ "type": "array",
175
+ "items": {
176
+ "type": "object",
177
+ "additionalProperties": false,
178
+ "properties": {
179
+ "id": {
180
+ "type": "string",
181
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
182
+ },
183
+ "authorId": {
184
+ "type": "string",
185
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
186
+ },
187
+ "body": {
188
+ "type": "string",
189
+ "minLength": 1,
190
+ "maxLength": 16384
191
+ },
192
+ "createdAt": {
193
+ "type": "string",
194
+ "format": "date-time",
195
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
196
+ }
197
+ },
198
+ "required": [
199
+ "id",
200
+ "authorId",
201
+ "body",
202
+ "createdAt"
203
+ ]
204
+ },
205
+ "maxItems": 10000
206
+ },
207
+ "assigneeId": {
208
+ "anyOf": [
209
+ {
210
+ "type": "string",
211
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
212
+ },
213
+ {
214
+ "type": "null"
215
+ }
216
+ ]
217
+ },
218
+ "addressedRevisionId": {
219
+ "anyOf": [
220
+ {
221
+ "type": "string",
222
+ "pattern": "^[A-Za-z0-9_-]{22,64}$"
223
+ },
224
+ {
225
+ "type": "string",
226
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
227
+ }
228
+ ]
229
+ },
230
+ "resolvedAt": {
231
+ "type": "string",
232
+ "format": "date-time",
233
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
234
+ },
235
+ "protocolVersion": {
236
+ "const": "1.17.0"
237
+ }
238
+ },
239
+ "required": [
240
+ "kind",
241
+ "schemaVersion",
242
+ "id",
243
+ "organizationId",
244
+ "projectId",
245
+ "artifactId",
246
+ "anchor",
247
+ "category",
248
+ "status",
249
+ "authorId",
250
+ "body",
251
+ "createdAt",
252
+ "updatedAt",
253
+ "replies",
254
+ "protocolVersion"
255
+ ],
256
+ "allOf": [
257
+ {
258
+ "if": {
259
+ "properties": {
260
+ "status": {
261
+ "const": "addressed"
262
+ }
263
+ }
264
+ },
265
+ "then": {
266
+ "required": [
267
+ "addressedRevisionId"
268
+ ],
269
+ "not": {
270
+ "required": [
271
+ "resolvedAt"
272
+ ]
273
+ }
274
+ }
275
+ },
276
+ {
277
+ "if": {
278
+ "properties": {
279
+ "status": {
280
+ "const": "resolved"
281
+ }
282
+ }
283
+ },
284
+ "then": {
285
+ "required": [
286
+ "resolvedAt"
287
+ ]
288
+ },
289
+ "else": {
290
+ "not": {
291
+ "required": [
292
+ "resolvedAt"
293
+ ]
294
+ }
295
+ }
296
+ }
297
+ ]
298
+ }
@@ -0,0 +1,189 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://openplanr.dev/schemas/v1.17.0/enterprise-sync-state.schema.json",
4
+ "x-openplanr-contract": {
5
+ "id": "enterprise-sync-state",
6
+ "version": "1.17.0"
7
+ },
8
+ "type": "object",
9
+ "additionalProperties": false,
10
+ "properties": {
11
+ "kind": {
12
+ "const": "openplanr-enterprise-sync-state"
13
+ },
14
+ "schemaVersion": {
15
+ "const": "1.1.0"
16
+ },
17
+ "organizationId": {
18
+ "type": "string",
19
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
20
+ },
21
+ "projectId": {
22
+ "type": "string",
23
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
24
+ },
25
+ "repositoryId": {
26
+ "type": "string",
27
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
28
+ },
29
+ "direction": {
30
+ "enum": [
31
+ "push",
32
+ "pull"
33
+ ]
34
+ },
35
+ "status": {
36
+ "enum": [
37
+ "preview",
38
+ "pending",
39
+ "synchronized",
40
+ "failed",
41
+ "conflicted"
42
+ ]
43
+ },
44
+ "scope": {
45
+ "type": "array",
46
+ "items": {
47
+ "type": "string",
48
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
49
+ },
50
+ "maxItems": 10000,
51
+ "uniqueItems": true
52
+ },
53
+ "cursor": {
54
+ "type": [
55
+ "string",
56
+ "null"
57
+ ],
58
+ "maxLength": 2048
59
+ },
60
+ "operationId": {
61
+ "type": "string",
62
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
63
+ },
64
+ "updatedAt": {
65
+ "type": "string",
66
+ "format": "date-time",
67
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
68
+ },
69
+ "items": {
70
+ "type": "array",
71
+ "items": {
72
+ "type": "object",
73
+ "additionalProperties": false,
74
+ "properties": {
75
+ "artifactId": {
76
+ "type": "string",
77
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
78
+ },
79
+ "baseRevisionId": {
80
+ "anyOf": [
81
+ {
82
+ "anyOf": [
83
+ {
84
+ "type": "string",
85
+ "pattern": "^[A-Za-z0-9_-]{22,64}$"
86
+ },
87
+ {
88
+ "type": "string",
89
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
90
+ }
91
+ ]
92
+ },
93
+ {
94
+ "type": "null"
95
+ }
96
+ ]
97
+ },
98
+ "revisionId": {
99
+ "anyOf": [
100
+ {
101
+ "anyOf": [
102
+ {
103
+ "type": "string",
104
+ "pattern": "^[A-Za-z0-9_-]{22,64}$"
105
+ },
106
+ {
107
+ "type": "string",
108
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
109
+ }
110
+ ]
111
+ },
112
+ {
113
+ "type": "null"
114
+ }
115
+ ]
116
+ },
117
+ "contentDigest": {
118
+ "type": "string",
119
+ "minLength": 64,
120
+ "maxLength": 64,
121
+ "pattern": "^[a-f0-9]{64}$"
122
+ },
123
+ "action": {
124
+ "enum": [
125
+ "create",
126
+ "update",
127
+ "unchanged",
128
+ "conflict"
129
+ ]
130
+ }
131
+ },
132
+ "required": [
133
+ "artifactId",
134
+ "baseRevisionId",
135
+ "revisionId",
136
+ "contentDigest",
137
+ "action"
138
+ ]
139
+ },
140
+ "maxItems": 10000
141
+ },
142
+ "issues": {
143
+ "type": "array",
144
+ "items": {
145
+ "type": "object",
146
+ "additionalProperties": false,
147
+ "properties": {
148
+ "code": {
149
+ "type": "string",
150
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
151
+ },
152
+ "artifactId": {
153
+ "type": "string",
154
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
155
+ },
156
+ "message": {
157
+ "type": "string",
158
+ "minLength": 1,
159
+ "maxLength": 16384
160
+ }
161
+ },
162
+ "required": [
163
+ "code",
164
+ "message"
165
+ ]
166
+ },
167
+ "maxItems": 1000
168
+ },
169
+ "protocolVersion": {
170
+ "const": "1.17.0"
171
+ }
172
+ },
173
+ "required": [
174
+ "kind",
175
+ "schemaVersion",
176
+ "organizationId",
177
+ "projectId",
178
+ "repositoryId",
179
+ "direction",
180
+ "status",
181
+ "scope",
182
+ "cursor",
183
+ "operationId",
184
+ "updatedAt",
185
+ "items",
186
+ "issues",
187
+ "protocolVersion"
188
+ ]
189
+ }
@@ -0,0 +1,197 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://openplanr.dev/schemas/v1.17.0/preview-bridge-message.schema.json",
4
+ "x-openplanr-contract": {
5
+ "id": "preview-bridge-message",
6
+ "version": "1.17.0"
7
+ },
8
+ "oneOf": [
9
+ {
10
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
11
+ "$id": "https://openplanr.dev/schemas/v1.17.0/preview-bridge-ready.schema.json",
12
+ "x-openplanr-contract": {
13
+ "id": "preview-bridge-ready",
14
+ "version": "1.17.0"
15
+ },
16
+ "type": "object",
17
+ "additionalProperties": false,
18
+ "properties": {
19
+ "schemaVersion": {
20
+ "const": "1.0.0"
21
+ },
22
+ "channel": {
23
+ "type": "string",
24
+ "pattern": "^[A-Za-z0-9_-]{43}$"
25
+ },
26
+ "type": {
27
+ "const": "ready"
28
+ },
29
+ "viewId": {
30
+ "type": "string",
31
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"
32
+ }
33
+ },
34
+ "required": [
35
+ "schemaVersion",
36
+ "channel",
37
+ "type",
38
+ "viewId"
39
+ ]
40
+ },
41
+ {
42
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
43
+ "$id": "https://openplanr.dev/schemas/v1.17.0/preview-bridge-navigate.schema.json",
44
+ "x-openplanr-contract": {
45
+ "id": "preview-bridge-navigate",
46
+ "version": "1.17.0"
47
+ },
48
+ "type": "object",
49
+ "additionalProperties": false,
50
+ "properties": {
51
+ "schemaVersion": {
52
+ "const": "1.0.0"
53
+ },
54
+ "channel": {
55
+ "type": "string",
56
+ "pattern": "^[A-Za-z0-9_-]{43}$"
57
+ },
58
+ "type": {
59
+ "const": "navigate"
60
+ },
61
+ "viewId": {
62
+ "type": "string",
63
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"
64
+ },
65
+ "screenId": {
66
+ "type": "string",
67
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"
68
+ }
69
+ },
70
+ "required": [
71
+ "schemaVersion",
72
+ "channel",
73
+ "type",
74
+ "viewId",
75
+ "screenId"
76
+ ]
77
+ },
78
+ {
79
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
80
+ "$id": "https://openplanr.dev/schemas/v1.17.0/preview-bridge-select.schema.json",
81
+ "x-openplanr-contract": {
82
+ "id": "preview-bridge-select",
83
+ "version": "1.17.0"
84
+ },
85
+ "type": "object",
86
+ "additionalProperties": false,
87
+ "properties": {
88
+ "schemaVersion": {
89
+ "const": "1.0.0"
90
+ },
91
+ "channel": {
92
+ "type": "string",
93
+ "pattern": "^[A-Za-z0-9_-]{43}$"
94
+ },
95
+ "type": {
96
+ "const": "select"
97
+ },
98
+ "viewId": {
99
+ "type": "string",
100
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"
101
+ },
102
+ "elementId": {
103
+ "type": "string",
104
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"
105
+ }
106
+ },
107
+ "required": [
108
+ "schemaVersion",
109
+ "channel",
110
+ "type",
111
+ "viewId",
112
+ "elementId"
113
+ ]
114
+ },
115
+ {
116
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
117
+ "$id": "https://openplanr.dev/schemas/v1.17.0/preview-bridge-state.schema.json",
118
+ "x-openplanr-contract": {
119
+ "id": "preview-bridge-state",
120
+ "version": "1.17.0"
121
+ },
122
+ "type": "object",
123
+ "additionalProperties": false,
124
+ "properties": {
125
+ "schemaVersion": {
126
+ "const": "1.0.0"
127
+ },
128
+ "channel": {
129
+ "type": "string",
130
+ "pattern": "^[A-Za-z0-9_-]{43}$"
131
+ },
132
+ "type": {
133
+ "const": "state"
134
+ },
135
+ "viewId": {
136
+ "type": "string",
137
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"
138
+ },
139
+ "state": {
140
+ "type": "object",
141
+ "additionalProperties": false,
142
+ "properties": {
143
+ "session": {
144
+ "type": "object"
145
+ },
146
+ "forms": {
147
+ "type": "object"
148
+ }
149
+ },
150
+ "required": [
151
+ "session",
152
+ "forms"
153
+ ]
154
+ }
155
+ },
156
+ "required": [
157
+ "schemaVersion",
158
+ "channel",
159
+ "type",
160
+ "viewId",
161
+ "state"
162
+ ]
163
+ },
164
+ {
165
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
166
+ "$id": "https://openplanr.dev/schemas/v1.17.0/preview-bridge-failed.schema.json",
167
+ "x-openplanr-contract": {
168
+ "id": "preview-bridge-failed",
169
+ "version": "1.17.0"
170
+ },
171
+ "type": "object",
172
+ "additionalProperties": false,
173
+ "properties": {
174
+ "schemaVersion": {
175
+ "const": "1.0.0"
176
+ },
177
+ "channel": {
178
+ "type": "string",
179
+ "pattern": "^[A-Za-z0-9_-]{43}$"
180
+ },
181
+ "type": {
182
+ "const": "failed"
183
+ },
184
+ "viewId": {
185
+ "type": "string",
186
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"
187
+ }
188
+ },
189
+ "required": [
190
+ "schemaVersion",
191
+ "channel",
192
+ "type",
193
+ "viewId"
194
+ ]
195
+ }
196
+ ]
197
+ }