@openplanr/protocol 0.8.0 → 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.
Files changed (69) hide show
  1. package/README.md +9 -0
  2. package/package.json +17 -1
  3. package/registries/commands.json +11 -11
  4. package/registries/skills.json +86 -8
  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/src/bounded-json-data.d.mts +2 -0
  42. package/src/bounded-json-data.mjs +56 -0
  43. package/src/browser-contracts.d.mts +14 -1
  44. package/src/browser-contracts.mjs +16 -0
  45. package/src/canonical-json.mjs +17 -16
  46. package/src/contracts.d.mts +1 -1
  47. package/src/contracts.mjs +90 -2
  48. package/src/diagram-authoring-contracts.d.mts +12 -0
  49. package/src/diagram-authoring-contracts.mjs +174 -1
  50. package/src/enterprise-contract-validation.d.mts +44 -0
  51. package/src/enterprise-contract-validation.mjs +279 -0
  52. package/src/enterprise-contracts.mjs +25 -231
  53. package/src/enterprise-resource-contracts.d.mts +72 -0
  54. package/src/enterprise-resource-contracts.mjs +202 -0
  55. package/src/generated/artifact-envelope-metadata.mjs +769 -0
  56. package/src/generated/canonical-registries.mjs +97 -19
  57. package/src/index.d.mts +21 -0
  58. package/src/index.mjs +23 -0
  59. package/src/large-object-contracts.d.mts +107 -0
  60. package/src/large-object-contracts.mjs +473 -0
  61. package/src/large-object-limits.d.mts +16 -0
  62. package/src/large-object-limits.mjs +17 -0
  63. package/src/registries.mjs +1 -0
  64. package/src/review-experience-contracts.d.mts +1 -0
  65. package/src/review-experience-contracts.mjs +25 -4
  66. package/src/sharing-security-contracts.d.mts +63 -0
  67. package/src/sharing-security-contracts.mjs +403 -0
  68. package/src/studio-presentation-contracts.d.mts +92 -0
  69. package/src/studio-presentation-contracts.mjs +287 -0
@@ -0,0 +1,985 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://openplanr.dev/schemas/v1.17.0/enterprise-agent-handoff.schema.json",
4
+ "x-openplanr-contract": {
5
+ "id": "enterprise-agent-handoff",
6
+ "version": "1.17.0"
7
+ },
8
+ "type": "object",
9
+ "additionalProperties": false,
10
+ "properties": {
11
+ "kind": {
12
+ "const": "openplanr-enterprise-agent-handoff"
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
+ "artifactId": {
26
+ "type": "string",
27
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
28
+ },
29
+ "revisionId": {
30
+ "anyOf": [
31
+ {
32
+ "type": "string",
33
+ "pattern": "^[A-Za-z0-9_-]{22,64}$"
34
+ },
35
+ {
36
+ "type": "string",
37
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
38
+ }
39
+ ]
40
+ },
41
+ "generatedAt": {
42
+ "type": "string",
43
+ "format": "date-time",
44
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
45
+ },
46
+ "authority": {
47
+ "const": "feedback-only"
48
+ },
49
+ "contentTrust": {
50
+ "const": "untrusted"
51
+ },
52
+ "threads": {
53
+ "type": "array",
54
+ "items": {
55
+ "oneOf": [
56
+ {
57
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
58
+ "$id": "https://openplanr.dev/schemas/v1.12.0/enterprise-review-thread.schema.json",
59
+ "x-openplanr-contract": {
60
+ "id": "enterprise-review-thread",
61
+ "version": "1.12.0"
62
+ },
63
+ "type": "object",
64
+ "additionalProperties": false,
65
+ "properties": {
66
+ "kind": {
67
+ "const": "openplanr-enterprise-review-thread"
68
+ },
69
+ "schemaVersion": {
70
+ "const": "1.0.0"
71
+ },
72
+ "id": {
73
+ "type": "string",
74
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
75
+ },
76
+ "organizationId": {
77
+ "type": "string",
78
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
79
+ },
80
+ "projectId": {
81
+ "type": "string",
82
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
83
+ },
84
+ "artifactId": {
85
+ "type": "string",
86
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
87
+ },
88
+ "anchor": {
89
+ "type": "object",
90
+ "additionalProperties": false,
91
+ "properties": {
92
+ "revisionId": {
93
+ "type": "string",
94
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
95
+ },
96
+ "elementId": {
97
+ "type": "string",
98
+ "minLength": 1,
99
+ "maxLength": 512,
100
+ "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
101
+ },
102
+ "screenId": {
103
+ "type": "string",
104
+ "minLength": 1,
105
+ "maxLength": 512,
106
+ "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
107
+ },
108
+ "frameId": {
109
+ "type": "string",
110
+ "minLength": 1,
111
+ "maxLength": 512,
112
+ "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
113
+ },
114
+ "x": {
115
+ "type": "number",
116
+ "minimum": 0,
117
+ "maximum": 1
118
+ },
119
+ "y": {
120
+ "type": "number",
121
+ "minimum": 0,
122
+ "maximum": 1
123
+ }
124
+ },
125
+ "required": [
126
+ "revisionId"
127
+ ],
128
+ "anyOf": [
129
+ {
130
+ "required": [
131
+ "elementId"
132
+ ]
133
+ },
134
+ {
135
+ "required": [
136
+ "screenId",
137
+ "frameId"
138
+ ]
139
+ },
140
+ {
141
+ "required": [
142
+ "x",
143
+ "y"
144
+ ]
145
+ }
146
+ ],
147
+ "allOf": [
148
+ {
149
+ "if": {
150
+ "required": [
151
+ "x"
152
+ ]
153
+ },
154
+ "then": {
155
+ "required": [
156
+ "y"
157
+ ]
158
+ }
159
+ },
160
+ {
161
+ "if": {
162
+ "required": [
163
+ "y"
164
+ ]
165
+ },
166
+ "then": {
167
+ "required": [
168
+ "x"
169
+ ]
170
+ }
171
+ },
172
+ {
173
+ "if": {
174
+ "required": [
175
+ "frameId"
176
+ ]
177
+ },
178
+ "then": {
179
+ "required": [
180
+ "screenId"
181
+ ]
182
+ }
183
+ }
184
+ ]
185
+ },
186
+ "category": {
187
+ "enum": [
188
+ "question",
189
+ "suggestion",
190
+ "change-request",
191
+ "blocker"
192
+ ]
193
+ },
194
+ "status": {
195
+ "enum": [
196
+ "open",
197
+ "addressed",
198
+ "resolved"
199
+ ]
200
+ },
201
+ "authorId": {
202
+ "type": "string",
203
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
204
+ },
205
+ "body": {
206
+ "type": "string",
207
+ "minLength": 1,
208
+ "maxLength": 16384
209
+ },
210
+ "createdAt": {
211
+ "type": "string",
212
+ "format": "date-time",
213
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
214
+ },
215
+ "updatedAt": {
216
+ "type": "string",
217
+ "format": "date-time",
218
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
219
+ },
220
+ "replies": {
221
+ "type": "array",
222
+ "items": {
223
+ "type": "object",
224
+ "additionalProperties": false,
225
+ "properties": {
226
+ "id": {
227
+ "type": "string",
228
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
229
+ },
230
+ "authorId": {
231
+ "type": "string",
232
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
233
+ },
234
+ "body": {
235
+ "type": "string",
236
+ "minLength": 1,
237
+ "maxLength": 16384
238
+ },
239
+ "createdAt": {
240
+ "type": "string",
241
+ "format": "date-time",
242
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
243
+ }
244
+ },
245
+ "required": [
246
+ "id",
247
+ "authorId",
248
+ "body",
249
+ "createdAt"
250
+ ]
251
+ },
252
+ "maxItems": 10000
253
+ },
254
+ "assigneeId": {
255
+ "anyOf": [
256
+ {
257
+ "type": "string",
258
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
259
+ },
260
+ {
261
+ "type": "null"
262
+ }
263
+ ]
264
+ },
265
+ "addressedRevisionId": {
266
+ "type": "string",
267
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
268
+ },
269
+ "resolvedAt": {
270
+ "type": "string",
271
+ "format": "date-time",
272
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
273
+ }
274
+ },
275
+ "required": [
276
+ "kind",
277
+ "schemaVersion",
278
+ "id",
279
+ "organizationId",
280
+ "projectId",
281
+ "artifactId",
282
+ "anchor",
283
+ "category",
284
+ "status",
285
+ "authorId",
286
+ "body",
287
+ "createdAt",
288
+ "updatedAt",
289
+ "replies"
290
+ ],
291
+ "allOf": [
292
+ {
293
+ "if": {
294
+ "properties": {
295
+ "status": {
296
+ "const": "addressed"
297
+ }
298
+ }
299
+ },
300
+ "then": {
301
+ "required": [
302
+ "addressedRevisionId"
303
+ ],
304
+ "not": {
305
+ "required": [
306
+ "resolvedAt"
307
+ ]
308
+ }
309
+ }
310
+ },
311
+ {
312
+ "if": {
313
+ "properties": {
314
+ "status": {
315
+ "const": "resolved"
316
+ }
317
+ }
318
+ },
319
+ "then": {
320
+ "required": [
321
+ "resolvedAt"
322
+ ]
323
+ },
324
+ "else": {
325
+ "not": {
326
+ "required": [
327
+ "resolvedAt"
328
+ ]
329
+ }
330
+ }
331
+ }
332
+ ]
333
+ },
334
+ {
335
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
336
+ "$id": "https://openplanr.dev/schemas/v1.17.0/enterprise-review-thread.schema.json",
337
+ "x-openplanr-contract": {
338
+ "id": "enterprise-review-thread",
339
+ "version": "1.17.0"
340
+ },
341
+ "type": "object",
342
+ "additionalProperties": false,
343
+ "properties": {
344
+ "kind": {
345
+ "const": "openplanr-enterprise-review-thread"
346
+ },
347
+ "schemaVersion": {
348
+ "const": "1.1.0"
349
+ },
350
+ "id": {
351
+ "type": "string",
352
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
353
+ },
354
+ "organizationId": {
355
+ "type": "string",
356
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
357
+ },
358
+ "projectId": {
359
+ "type": "string",
360
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
361
+ },
362
+ "artifactId": {
363
+ "type": "string",
364
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
365
+ },
366
+ "anchor": {
367
+ "type": "object",
368
+ "additionalProperties": false,
369
+ "properties": {
370
+ "revisionId": {
371
+ "anyOf": [
372
+ {
373
+ "type": "string",
374
+ "pattern": "^[A-Za-z0-9_-]{22,64}$"
375
+ },
376
+ {
377
+ "type": "string",
378
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
379
+ }
380
+ ]
381
+ },
382
+ "elementId": {
383
+ "type": "string",
384
+ "minLength": 1,
385
+ "maxLength": 512,
386
+ "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
387
+ },
388
+ "screenId": {
389
+ "type": "string",
390
+ "minLength": 1,
391
+ "maxLength": 512,
392
+ "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
393
+ },
394
+ "frameId": {
395
+ "type": "string",
396
+ "minLength": 1,
397
+ "maxLength": 512,
398
+ "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
399
+ },
400
+ "x": {
401
+ "type": "number",
402
+ "minimum": 0,
403
+ "maximum": 1
404
+ },
405
+ "y": {
406
+ "type": "number",
407
+ "minimum": 0,
408
+ "maximum": 1
409
+ }
410
+ },
411
+ "required": [
412
+ "revisionId"
413
+ ],
414
+ "anyOf": [
415
+ {
416
+ "required": [
417
+ "elementId"
418
+ ]
419
+ },
420
+ {
421
+ "required": [
422
+ "screenId",
423
+ "frameId"
424
+ ]
425
+ },
426
+ {
427
+ "required": [
428
+ "x",
429
+ "y"
430
+ ]
431
+ }
432
+ ],
433
+ "allOf": [
434
+ {
435
+ "if": {
436
+ "required": [
437
+ "x"
438
+ ]
439
+ },
440
+ "then": {
441
+ "required": [
442
+ "y"
443
+ ]
444
+ }
445
+ },
446
+ {
447
+ "if": {
448
+ "required": [
449
+ "y"
450
+ ]
451
+ },
452
+ "then": {
453
+ "required": [
454
+ "x"
455
+ ]
456
+ }
457
+ },
458
+ {
459
+ "if": {
460
+ "required": [
461
+ "frameId"
462
+ ]
463
+ },
464
+ "then": {
465
+ "required": [
466
+ "screenId"
467
+ ]
468
+ }
469
+ }
470
+ ]
471
+ },
472
+ "category": {
473
+ "enum": [
474
+ "question",
475
+ "suggestion",
476
+ "change-request",
477
+ "blocker"
478
+ ]
479
+ },
480
+ "status": {
481
+ "enum": [
482
+ "open",
483
+ "addressed",
484
+ "resolved"
485
+ ]
486
+ },
487
+ "authorId": {
488
+ "type": "string",
489
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
490
+ },
491
+ "body": {
492
+ "type": "string",
493
+ "minLength": 1,
494
+ "maxLength": 16384
495
+ },
496
+ "createdAt": {
497
+ "type": "string",
498
+ "format": "date-time",
499
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
500
+ },
501
+ "updatedAt": {
502
+ "type": "string",
503
+ "format": "date-time",
504
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
505
+ },
506
+ "replies": {
507
+ "type": "array",
508
+ "items": {
509
+ "type": "object",
510
+ "additionalProperties": false,
511
+ "properties": {
512
+ "id": {
513
+ "type": "string",
514
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
515
+ },
516
+ "authorId": {
517
+ "type": "string",
518
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
519
+ },
520
+ "body": {
521
+ "type": "string",
522
+ "minLength": 1,
523
+ "maxLength": 16384
524
+ },
525
+ "createdAt": {
526
+ "type": "string",
527
+ "format": "date-time",
528
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
529
+ }
530
+ },
531
+ "required": [
532
+ "id",
533
+ "authorId",
534
+ "body",
535
+ "createdAt"
536
+ ]
537
+ },
538
+ "maxItems": 10000
539
+ },
540
+ "assigneeId": {
541
+ "anyOf": [
542
+ {
543
+ "type": "string",
544
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
545
+ },
546
+ {
547
+ "type": "null"
548
+ }
549
+ ]
550
+ },
551
+ "addressedRevisionId": {
552
+ "anyOf": [
553
+ {
554
+ "type": "string",
555
+ "pattern": "^[A-Za-z0-9_-]{22,64}$"
556
+ },
557
+ {
558
+ "type": "string",
559
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
560
+ }
561
+ ]
562
+ },
563
+ "resolvedAt": {
564
+ "type": "string",
565
+ "format": "date-time",
566
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
567
+ },
568
+ "protocolVersion": {
569
+ "const": "1.17.0"
570
+ }
571
+ },
572
+ "required": [
573
+ "kind",
574
+ "schemaVersion",
575
+ "id",
576
+ "organizationId",
577
+ "projectId",
578
+ "artifactId",
579
+ "anchor",
580
+ "category",
581
+ "status",
582
+ "authorId",
583
+ "body",
584
+ "createdAt",
585
+ "updatedAt",
586
+ "replies",
587
+ "protocolVersion"
588
+ ],
589
+ "allOf": [
590
+ {
591
+ "if": {
592
+ "properties": {
593
+ "status": {
594
+ "const": "addressed"
595
+ }
596
+ }
597
+ },
598
+ "then": {
599
+ "required": [
600
+ "addressedRevisionId"
601
+ ],
602
+ "not": {
603
+ "required": [
604
+ "resolvedAt"
605
+ ]
606
+ }
607
+ }
608
+ },
609
+ {
610
+ "if": {
611
+ "properties": {
612
+ "status": {
613
+ "const": "resolved"
614
+ }
615
+ }
616
+ },
617
+ "then": {
618
+ "required": [
619
+ "resolvedAt"
620
+ ]
621
+ },
622
+ "else": {
623
+ "not": {
624
+ "required": [
625
+ "resolvedAt"
626
+ ]
627
+ }
628
+ }
629
+ }
630
+ ]
631
+ }
632
+ ]
633
+ },
634
+ "maxItems": 10000
635
+ },
636
+ "evidence": {
637
+ "type": "array",
638
+ "items": {
639
+ "oneOf": [
640
+ {
641
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
642
+ "$id": "https://openplanr.dev/schemas/v1.12.0/enterprise-evidence-reference.schema.json",
643
+ "x-openplanr-contract": {
644
+ "id": "enterprise-evidence-reference",
645
+ "version": "1.12.0"
646
+ },
647
+ "type": "object",
648
+ "additionalProperties": false,
649
+ "properties": {
650
+ "kind": {
651
+ "const": "openplanr-enterprise-evidence-reference"
652
+ },
653
+ "schemaVersion": {
654
+ "const": "1.0.0"
655
+ },
656
+ "id": {
657
+ "type": "string",
658
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
659
+ },
660
+ "organizationId": {
661
+ "type": "string",
662
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
663
+ },
664
+ "projectId": {
665
+ "type": "string",
666
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
667
+ },
668
+ "source": {
669
+ "oneOf": [
670
+ {
671
+ "type": "object",
672
+ "additionalProperties": false,
673
+ "properties": {
674
+ "kind": {
675
+ "const": "repository"
676
+ },
677
+ "repositoryId": {
678
+ "type": "string",
679
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
680
+ },
681
+ "path": {
682
+ "type": "string",
683
+ "minLength": 1,
684
+ "maxLength": 16384
685
+ },
686
+ "commit": {
687
+ "type": "string",
688
+ "pattern": "^(?:[a-f0-9]{40}|[a-f0-9]{64})$"
689
+ },
690
+ "line": {
691
+ "type": "integer",
692
+ "minimum": 1,
693
+ "maximum": 1000000000
694
+ }
695
+ },
696
+ "required": [
697
+ "kind",
698
+ "repositoryId",
699
+ "path",
700
+ "commit"
701
+ ]
702
+ },
703
+ {
704
+ "type": "object",
705
+ "additionalProperties": false,
706
+ "properties": {
707
+ "kind": {
708
+ "const": "artifact"
709
+ },
710
+ "artifactId": {
711
+ "type": "string",
712
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
713
+ },
714
+ "revisionId": {
715
+ "type": "string",
716
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
717
+ },
718
+ "elementId": {
719
+ "type": "string",
720
+ "minLength": 1,
721
+ "maxLength": 512,
722
+ "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
723
+ }
724
+ },
725
+ "required": [
726
+ "kind",
727
+ "artifactId",
728
+ "revisionId"
729
+ ]
730
+ },
731
+ {
732
+ "type": "object",
733
+ "additionalProperties": false,
734
+ "properties": {
735
+ "kind": {
736
+ "const": "url"
737
+ },
738
+ "url": {
739
+ "type": "string",
740
+ "minLength": 1,
741
+ "maxLength": 2048
742
+ }
743
+ },
744
+ "required": [
745
+ "kind",
746
+ "url"
747
+ ]
748
+ }
749
+ ]
750
+ },
751
+ "capturedAt": {
752
+ "type": "string",
753
+ "format": "date-time",
754
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
755
+ },
756
+ "freshness": {
757
+ "enum": [
758
+ "current",
759
+ "stale",
760
+ "unknown"
761
+ ]
762
+ },
763
+ "label": {
764
+ "type": "string",
765
+ "minLength": 1,
766
+ "maxLength": 240
767
+ },
768
+ "contentDigest": {
769
+ "type": "string",
770
+ "minLength": 64,
771
+ "maxLength": 64,
772
+ "pattern": "^[a-f0-9]{64}$"
773
+ }
774
+ },
775
+ "required": [
776
+ "kind",
777
+ "schemaVersion",
778
+ "id",
779
+ "organizationId",
780
+ "projectId",
781
+ "source",
782
+ "capturedAt",
783
+ "freshness",
784
+ "label"
785
+ ]
786
+ },
787
+ {
788
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
789
+ "$id": "https://openplanr.dev/schemas/v1.17.0/enterprise-evidence-reference.schema.json",
790
+ "x-openplanr-contract": {
791
+ "id": "enterprise-evidence-reference",
792
+ "version": "1.17.0"
793
+ },
794
+ "type": "object",
795
+ "additionalProperties": false,
796
+ "properties": {
797
+ "kind": {
798
+ "const": "openplanr-enterprise-evidence-reference"
799
+ },
800
+ "schemaVersion": {
801
+ "const": "1.1.0"
802
+ },
803
+ "id": {
804
+ "type": "string",
805
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
806
+ },
807
+ "organizationId": {
808
+ "type": "string",
809
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
810
+ },
811
+ "projectId": {
812
+ "type": "string",
813
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
814
+ },
815
+ "source": {
816
+ "oneOf": [
817
+ {
818
+ "type": "object",
819
+ "additionalProperties": false,
820
+ "properties": {
821
+ "kind": {
822
+ "const": "repository"
823
+ },
824
+ "repositoryId": {
825
+ "type": "string",
826
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
827
+ },
828
+ "path": {
829
+ "type": "string",
830
+ "minLength": 1,
831
+ "maxLength": 16384
832
+ },
833
+ "commit": {
834
+ "type": "string",
835
+ "pattern": "^(?:[a-f0-9]{40}|[a-f0-9]{64})$"
836
+ },
837
+ "line": {
838
+ "type": "integer",
839
+ "minimum": 1,
840
+ "maximum": 1000000000
841
+ }
842
+ },
843
+ "required": [
844
+ "kind",
845
+ "repositoryId",
846
+ "path",
847
+ "commit"
848
+ ]
849
+ },
850
+ {
851
+ "type": "object",
852
+ "additionalProperties": false,
853
+ "properties": {
854
+ "kind": {
855
+ "const": "artifact"
856
+ },
857
+ "artifactId": {
858
+ "type": "string",
859
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
860
+ },
861
+ "revisionId": {
862
+ "anyOf": [
863
+ {
864
+ "type": "string",
865
+ "pattern": "^[A-Za-z0-9_-]{22,64}$"
866
+ },
867
+ {
868
+ "type": "string",
869
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?![\\s\\S])"
870
+ }
871
+ ]
872
+ },
873
+ "elementId": {
874
+ "type": "string",
875
+ "minLength": 1,
876
+ "maxLength": 512,
877
+ "pattern": "^[^\\s\\u0000-\\u001f\\u007f]+$"
878
+ }
879
+ },
880
+ "required": [
881
+ "kind",
882
+ "artifactId",
883
+ "revisionId"
884
+ ]
885
+ },
886
+ {
887
+ "type": "object",
888
+ "additionalProperties": false,
889
+ "properties": {
890
+ "kind": {
891
+ "const": "url"
892
+ },
893
+ "url": {
894
+ "type": "string",
895
+ "minLength": 1,
896
+ "maxLength": 2048
897
+ }
898
+ },
899
+ "required": [
900
+ "kind",
901
+ "url"
902
+ ]
903
+ }
904
+ ]
905
+ },
906
+ "capturedAt": {
907
+ "type": "string",
908
+ "format": "date-time",
909
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?Z$"
910
+ },
911
+ "freshness": {
912
+ "enum": [
913
+ "current",
914
+ "stale",
915
+ "unknown"
916
+ ]
917
+ },
918
+ "label": {
919
+ "type": "string",
920
+ "minLength": 1,
921
+ "maxLength": 240
922
+ },
923
+ "contentDigest": {
924
+ "type": "string",
925
+ "minLength": 64,
926
+ "maxLength": 64,
927
+ "pattern": "^[a-f0-9]{64}$"
928
+ },
929
+ "protocolVersion": {
930
+ "const": "1.17.0"
931
+ }
932
+ },
933
+ "required": [
934
+ "kind",
935
+ "schemaVersion",
936
+ "id",
937
+ "organizationId",
938
+ "projectId",
939
+ "source",
940
+ "capturedAt",
941
+ "freshness",
942
+ "label",
943
+ "protocolVersion"
944
+ ]
945
+ }
946
+ ]
947
+ },
948
+ "maxItems": 10000
949
+ },
950
+ "unresolvedUncertainties": {
951
+ "type": "array",
952
+ "items": {
953
+ "type": "string",
954
+ "minLength": 1,
955
+ "maxLength": 16384
956
+ },
957
+ "maxItems": 1000
958
+ },
959
+ "contentDigest": {
960
+ "type": "string",
961
+ "minLength": 64,
962
+ "maxLength": 64,
963
+ "pattern": "^[a-f0-9]{64}$"
964
+ },
965
+ "protocolVersion": {
966
+ "const": "1.17.0"
967
+ }
968
+ },
969
+ "required": [
970
+ "kind",
971
+ "schemaVersion",
972
+ "organizationId",
973
+ "projectId",
974
+ "artifactId",
975
+ "revisionId",
976
+ "generatedAt",
977
+ "authority",
978
+ "contentTrust",
979
+ "threads",
980
+ "evidence",
981
+ "unresolvedUncertainties",
982
+ "contentDigest",
983
+ "protocolVersion"
984
+ ]
985
+ }