@apexops/contracts 0.10.0-next.4 → 0.11.0-next.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 (77) hide show
  1. package/README.md +28 -0
  2. package/dist/.tsbuildinfo +1 -1
  3. package/dist/archetype-source.d.ts +70 -0
  4. package/dist/archetype-source.d.ts.map +1 -0
  5. package/dist/archetype-source.js +58 -0
  6. package/dist/archetype-source.js.map +1 -0
  7. package/dist/artifacts.d.ts +64 -0
  8. package/dist/artifacts.d.ts.map +1 -1
  9. package/dist/artifacts.js +69 -0
  10. package/dist/artifacts.js.map +1 -1
  11. package/dist/common.d.ts +2 -0
  12. package/dist/common.d.ts.map +1 -1
  13. package/dist/common.js +1 -0
  14. package/dist/common.js.map +1 -1
  15. package/dist/evidence.d.ts.map +1 -1
  16. package/dist/evidence.js +2 -0
  17. package/dist/evidence.js.map +1 -1
  18. package/dist/governance-observation.d.ts +15 -0
  19. package/dist/governance-observation.d.ts.map +1 -0
  20. package/dist/governance-observation.js +15 -0
  21. package/dist/governance-observation.js.map +1 -0
  22. package/dist/index.d.ts +627 -4
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/index.js +47 -4
  25. package/dist/index.js.map +1 -1
  26. package/dist/native-validation.d.ts +136 -0
  27. package/dist/native-validation.d.ts.map +1 -0
  28. package/dist/native-validation.js +276 -0
  29. package/dist/native-validation.js.map +1 -0
  30. package/dist/onboarding.d.ts +184 -3
  31. package/dist/onboarding.d.ts.map +1 -1
  32. package/dist/onboarding.js +122 -6
  33. package/dist/onboarding.js.map +1 -1
  34. package/dist/policy-validation.d.ts +45 -0
  35. package/dist/policy-validation.d.ts.map +1 -0
  36. package/dist/policy-validation.js +194 -0
  37. package/dist/policy-validation.js.map +1 -0
  38. package/dist/runtime.d.ts +94 -2
  39. package/dist/runtime.d.ts.map +1 -1
  40. package/dist/runtime.js +53 -4
  41. package/dist/runtime.js.map +1 -1
  42. package/dist/targets.d.ts +158 -1
  43. package/dist/targets.d.ts.map +1 -1
  44. package/dist/targets.js +168 -2
  45. package/dist/targets.js.map +1 -1
  46. package/dist/test/contracts.test.js +769 -4
  47. package/dist/test/contracts.test.js.map +1 -1
  48. package/package.json +2 -2
  49. package/schemas/archetype-batch-config-v1.schema.json +51 -0
  50. package/schemas/archetype-batch-plan-v1.schema.json +227 -0
  51. package/schemas/archetype-source-proposal-v1.schema.json +113 -0
  52. package/schemas/architecture-v1.schema.json +278 -0
  53. package/schemas/bootstrap-plan-v1.schema.json +206 -0
  54. package/schemas/contract-metadata.json +85 -0
  55. package/schemas/cost-estimate-v1.schema.json +54 -1
  56. package/schemas/diagnosis-v1.schema.json +323 -0
  57. package/schemas/governance-constraints-v1.schema.json +13 -0
  58. package/schemas/governance-observation-receipt-v1.schema.json +60 -0
  59. package/schemas/governance-provision-plan-v1.schema.json +307 -0
  60. package/schemas/governance-setup-config-v1.schema.json +80 -0
  61. package/schemas/governance-setup-plan-v1.schema.json +217 -0
  62. package/schemas/iac-binding-v1.schema.json +60 -0
  63. package/schemas/input-request-v1.schema.json +296 -2
  64. package/schemas/logical-resource-manifest-v1.schema.json +4 -0
  65. package/schemas/native-validation-receipt-v1.schema.json +862 -0
  66. package/schemas/onboarding-config-v1.schema.json +15 -12
  67. package/schemas/policy-property-map-v1.schema.json +17 -0
  68. package/schemas/policy-validation-v1.schema.json +278 -0
  69. package/schemas/project-config-v1.schema.json +14 -1
  70. package/schemas/repeat-guard-records-v1.schema.json +76 -0
  71. package/schemas/repository-publish-config-v1.schema.json +52 -0
  72. package/schemas/repository-publish-plan-v1.schema.json +265 -0
  73. package/schemas/requirements-amendment-v1.schema.json +213 -0
  74. package/schemas/requirements-change-proposal-v1.schema.json +196 -0
  75. package/schemas/review-capture-v1.schema.json +67 -0
  76. package/schemas/review-findings-v1.schema.json +103 -0
  77. package/schemas/review-request-v1.schema.json +111 -0
@@ -38,8 +38,16 @@
38
38
  ]
39
39
  },
40
40
  "total": {
41
- "const": 4,
42
- "type": "number"
41
+ "anyOf": [
42
+ {
43
+ "const": 3,
44
+ "type": "number"
45
+ },
46
+ {
47
+ "const": 4,
48
+ "type": "number"
49
+ }
50
+ ]
43
51
  }
44
52
  },
45
53
  "required": [
@@ -64,6 +72,9 @@
64
72
  "multiSelect": {
65
73
  "type": "boolean"
66
74
  },
75
+ "optional": {
76
+ "type": "boolean"
77
+ },
67
78
  "options": {
68
79
  "items": {
69
80
  "minLength": 1,
@@ -77,6 +88,54 @@
77
88
  "minLength": 1,
78
89
  "type": "string"
79
90
  },
91
+ "recommendation": {
92
+ "additionalProperties": false,
93
+ "properties": {
94
+ "rationale": {
95
+ "minLength": 1,
96
+ "type": "string"
97
+ },
98
+ "source": {
99
+ "anyOf": [
100
+ {
101
+ "const": "default",
102
+ "type": "string"
103
+ },
104
+ {
105
+ "const": "derived",
106
+ "type": "string"
107
+ },
108
+ {
109
+ "const": "prior-answer",
110
+ "type": "string"
111
+ }
112
+ ]
113
+ },
114
+ "value": {
115
+ "anyOf": [
116
+ {
117
+ "minLength": 1,
118
+ "type": "string"
119
+ },
120
+ {
121
+ "items": {
122
+ "minLength": 1,
123
+ "type": "string"
124
+ },
125
+ "minItems": 1,
126
+ "type": "array",
127
+ "uniqueItems": true
128
+ }
129
+ ]
130
+ }
131
+ },
132
+ "required": [
133
+ "value",
134
+ "source",
135
+ "rationale"
136
+ ],
137
+ "type": "object"
138
+ },
80
139
  "valueType": {
81
140
  "anyOf": [
82
141
  {
@@ -171,6 +230,9 @@
171
230
  "multiSelect": {
172
231
  "type": "boolean"
173
232
  },
233
+ "optional": {
234
+ "type": "boolean"
235
+ },
174
236
  "options": {
175
237
  "items": {
176
238
  "minLength": 1,
@@ -184,6 +246,54 @@
184
246
  "minLength": 1,
185
247
  "type": "string"
186
248
  },
249
+ "recommendation": {
250
+ "additionalProperties": false,
251
+ "properties": {
252
+ "rationale": {
253
+ "minLength": 1,
254
+ "type": "string"
255
+ },
256
+ "source": {
257
+ "anyOf": [
258
+ {
259
+ "const": "default",
260
+ "type": "string"
261
+ },
262
+ {
263
+ "const": "derived",
264
+ "type": "string"
265
+ },
266
+ {
267
+ "const": "prior-answer",
268
+ "type": "string"
269
+ }
270
+ ]
271
+ },
272
+ "value": {
273
+ "anyOf": [
274
+ {
275
+ "minLength": 1,
276
+ "type": "string"
277
+ },
278
+ {
279
+ "items": {
280
+ "minLength": 1,
281
+ "type": "string"
282
+ },
283
+ "minItems": 1,
284
+ "type": "array",
285
+ "uniqueItems": true
286
+ }
287
+ ]
288
+ }
289
+ },
290
+ "required": [
291
+ "value",
292
+ "source",
293
+ "rationale"
294
+ ],
295
+ "type": "object"
296
+ },
187
297
  "valueType": {
188
298
  "anyOf": [
189
299
  {
@@ -237,6 +347,190 @@
237
347
  "decision"
238
348
  ],
239
349
  "type": "object"
350
+ },
351
+ {
352
+ "additionalProperties": false,
353
+ "properties": {
354
+ "expectedHead": {
355
+ "pattern": "^[0-9a-f]{64}$",
356
+ "type": "string"
357
+ },
358
+ "governance": {
359
+ "additionalProperties": false,
360
+ "properties": {
361
+ "candidateHash": {
362
+ "pattern": "^[0-9a-f]{64}$",
363
+ "type": "string"
364
+ },
365
+ "candidatePath": {
366
+ "maxLength": 4096,
367
+ "minLength": 1,
368
+ "pattern": "^(?!/)(?![A-Za-z]:)(?!.*(?:^|/)\\.\\.?(?:/|$))[^\\\\\\x00-\\x1f]+$",
369
+ "type": "string"
370
+ },
371
+ "expiresAt": {
372
+ "format": "date-time",
373
+ "type": "string"
374
+ },
375
+ "observedAt": {
376
+ "format": "date-time",
377
+ "type": "string"
378
+ },
379
+ "refreshRequired": {
380
+ "type": "boolean"
381
+ },
382
+ "requestedAt": {
383
+ "format": "date-time",
384
+ "type": "string"
385
+ },
386
+ "targetScope": {
387
+ "minLength": 1,
388
+ "type": "string"
389
+ }
390
+ },
391
+ "required": [
392
+ "candidatePath",
393
+ "candidateHash",
394
+ "observedAt",
395
+ "requestedAt",
396
+ "expiresAt",
397
+ "targetScope",
398
+ "refreshRequired"
399
+ ],
400
+ "type": "object"
401
+ },
402
+ "ownerEpoch": {
403
+ "minimum": 1,
404
+ "type": "integer"
405
+ },
406
+ "questions": {
407
+ "items": {
408
+ "additionalProperties": false,
409
+ "properties": {
410
+ "id": {
411
+ "minLength": 1,
412
+ "type": "string"
413
+ },
414
+ "multiSelect": {
415
+ "type": "boolean"
416
+ },
417
+ "optional": {
418
+ "type": "boolean"
419
+ },
420
+ "options": {
421
+ "items": {
422
+ "minLength": 1,
423
+ "type": "string"
424
+ },
425
+ "minItems": 1,
426
+ "type": "array",
427
+ "uniqueItems": true
428
+ },
429
+ "prompt": {
430
+ "minLength": 1,
431
+ "type": "string"
432
+ },
433
+ "recommendation": {
434
+ "additionalProperties": false,
435
+ "properties": {
436
+ "rationale": {
437
+ "minLength": 1,
438
+ "type": "string"
439
+ },
440
+ "source": {
441
+ "anyOf": [
442
+ {
443
+ "const": "default",
444
+ "type": "string"
445
+ },
446
+ {
447
+ "const": "derived",
448
+ "type": "string"
449
+ },
450
+ {
451
+ "const": "prior-answer",
452
+ "type": "string"
453
+ }
454
+ ]
455
+ },
456
+ "value": {
457
+ "anyOf": [
458
+ {
459
+ "minLength": 1,
460
+ "type": "string"
461
+ },
462
+ {
463
+ "items": {
464
+ "minLength": 1,
465
+ "type": "string"
466
+ },
467
+ "minItems": 1,
468
+ "type": "array",
469
+ "uniqueItems": true
470
+ }
471
+ ]
472
+ }
473
+ },
474
+ "required": [
475
+ "value",
476
+ "source",
477
+ "rationale"
478
+ ],
479
+ "type": "object"
480
+ },
481
+ "valueType": {
482
+ "anyOf": [
483
+ {
484
+ "const": "budget",
485
+ "type": "string"
486
+ },
487
+ {
488
+ "const": "recovery",
489
+ "type": "string"
490
+ },
491
+ {
492
+ "const": "environment-set",
493
+ "type": "string"
494
+ },
495
+ {
496
+ "const": "data-classification",
497
+ "type": "string"
498
+ },
499
+ {
500
+ "const": "compliance",
501
+ "type": "string"
502
+ }
503
+ ]
504
+ }
505
+ },
506
+ "required": [
507
+ "id",
508
+ "prompt"
509
+ ],
510
+ "type": "object"
511
+ },
512
+ "minItems": 1,
513
+ "type": "array",
514
+ "uniqueItems": true
515
+ },
516
+ "requestId": {
517
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]{0,127}$",
518
+ "type": "string"
519
+ },
520
+ "schemaVersion": {
521
+ "const": "1.0.0",
522
+ "type": "string"
523
+ }
524
+ },
525
+ "required": [
526
+ "schemaVersion",
527
+ "requestId",
528
+ "expectedHead",
529
+ "ownerEpoch",
530
+ "questions",
531
+ "governance"
532
+ ],
533
+ "type": "object"
240
534
  }
241
535
  ]
242
536
  }
@@ -19,6 +19,10 @@
19
19
  "type": "array",
20
20
  "uniqueItems": true
21
21
  },
22
+ "executionAddress": {
23
+ "minLength": 1,
24
+ "type": "string"
25
+ },
22
26
  "generatedDependencies": {
23
27
  "items": {
24
28
  "minLength": 1,