@apexops/contracts 0.10.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 (101) hide show
  1. package/dist/.tsbuildinfo +1 -0
  2. package/dist/artifacts.d.ts +60 -0
  3. package/dist/artifacts.d.ts.map +1 -0
  4. package/dist/artifacts.js +46 -0
  5. package/dist/artifacts.js.map +1 -0
  6. package/dist/common.d.ts +22 -0
  7. package/dist/common.d.ts.map +1 -0
  8. package/dist/common.js +23 -0
  9. package/dist/common.js.map +1 -0
  10. package/dist/deployment.d.ts +100 -0
  11. package/dist/deployment.d.ts.map +1 -0
  12. package/dist/deployment.js +108 -0
  13. package/dist/deployment.js.map +1 -0
  14. package/dist/evidence.d.ts +256 -0
  15. package/dist/evidence.d.ts.map +1 -0
  16. package/dist/evidence.js +382 -0
  17. package/dist/evidence.js.map +1 -0
  18. package/dist/export-schemas.d.ts +2 -0
  19. package/dist/export-schemas.d.ts.map +1 -0
  20. package/dist/export-schemas.js +53 -0
  21. package/dist/export-schemas.js.map +1 -0
  22. package/dist/improvement.d.ts +92 -0
  23. package/dist/improvement.d.ts.map +1 -0
  24. package/dist/improvement.js +119 -0
  25. package/dist/improvement.js.map +1 -0
  26. package/dist/index.d.ts +983 -0
  27. package/dist/index.d.ts.map +1 -0
  28. package/dist/index.js +128 -0
  29. package/dist/index.js.map +1 -0
  30. package/dist/onboarding.d.ts +15 -0
  31. package/dist/onboarding.d.ts.map +1 -0
  32. package/dist/onboarding.js +17 -0
  33. package/dist/onboarding.js.map +1 -0
  34. package/dist/pricing.d.ts +130 -0
  35. package/dist/pricing.d.ts.map +1 -0
  36. package/dist/pricing.js +355 -0
  37. package/dist/pricing.js.map +1 -0
  38. package/dist/runtime.d.ts +284 -0
  39. package/dist/runtime.d.ts.map +1 -0
  40. package/dist/runtime.js +196 -0
  41. package/dist/runtime.js.map +1 -0
  42. package/dist/schema-export.d.ts +15 -0
  43. package/dist/schema-export.d.ts.map +1 -0
  44. package/dist/schema-export.js +49 -0
  45. package/dist/schema-export.js.map +1 -0
  46. package/dist/targets.d.ts +359 -0
  47. package/dist/targets.d.ts.map +1 -0
  48. package/dist/targets.js +394 -0
  49. package/dist/targets.js.map +1 -0
  50. package/dist/test/contracts.test.d.ts +2 -0
  51. package/dist/test/contracts.test.d.ts.map +1 -0
  52. package/dist/test/contracts.test.js +867 -0
  53. package/dist/test/contracts.test.js.map +1 -0
  54. package/package.json +45 -0
  55. package/schemas/approval-evidence-v1.schema.json +172 -0
  56. package/schemas/architecture-availability-v1.schema.json +155 -0
  57. package/schemas/architecture-v1.schema.json +107 -0
  58. package/schemas/capability-pack-manifest-v1.schema.json +59 -0
  59. package/schemas/client-outcome-comparison-v1.schema.json +195 -0
  60. package/schemas/client-outcome-qualification-v1.schema.json +190 -0
  61. package/schemas/client-outcome-v1.schema.json +513 -0
  62. package/schemas/contract-metadata.json +232 -0
  63. package/schemas/cost-estimate-v1.schema.json +165 -0
  64. package/schemas/customization-lock-v1.schema.json +63 -0
  65. package/schemas/deployment-preview-v1.schema.json +180 -0
  66. package/schemas/diagnosis-v1.schema.json +111 -0
  67. package/schemas/environment-inputs-v1.schema.json +106 -0
  68. package/schemas/event-v1.schema.json +74 -0
  69. package/schemas/evidence-manifest-v1.schema.json +111 -0
  70. package/schemas/execution-plan-attestation-v1.schema.json +145 -0
  71. package/schemas/governance-constraints-v1.schema.json +103 -0
  72. package/schemas/iac-binding-v1.schema.json +74 -0
  73. package/schemas/iac-handoff-v1.schema.json +83 -0
  74. package/schemas/implementation-intent-v1.schema.json +89 -0
  75. package/schemas/improvement-decision-v1.schema.json +62 -0
  76. package/schemas/improvement-observation-v1.schema.json +166 -0
  77. package/schemas/improvement-policy-v1.schema.json +204 -0
  78. package/schemas/improvement-proposal-v1.schema.json +144 -0
  79. package/schemas/improvement-recurrence-v1.schema.json +130 -0
  80. package/schemas/input-request-v1.schema.json +242 -0
  81. package/schemas/input-submission-v1.schema.json +205 -0
  82. package/schemas/live-qualification-v1.schema.json +295 -0
  83. package/schemas/logical-resource-manifest-v1.schema.json +123 -0
  84. package/schemas/onboarding-config-v1.schema.json +59 -0
  85. package/schemas/operation-record-v1.schema.json +112 -0
  86. package/schemas/policy-property-map-v1.schema.json +108 -0
  87. package/schemas/pricing-evidence-v1.schema.json +628 -0
  88. package/schemas/pricing-request-v1.schema.json +424 -0
  89. package/schemas/project-config-v1.schema.json +43 -0
  90. package/schemas/quality-measurements-v1.schema.json +54 -0
  91. package/schemas/quality-report-v1.schema.json +114 -0
  92. package/schemas/quality-scorecard-v1.schema.json +109 -0
  93. package/schemas/requirements-v1.schema.json +108 -0
  94. package/schemas/resource-inventory-v1.schema.json +74 -0
  95. package/schemas/review-findings-v1.schema.json +126 -0
  96. package/schemas/run-config-v1.schema.json +133 -0
  97. package/schemas/runtime-bundle-lock-v1.schema.json +59 -0
  98. package/schemas/scenario-v1.schema.json +55 -0
  99. package/schemas/task-envelope-v1.schema.json +122 -0
  100. package/schemas/telemetry-v1.schema.json +117 -0
  101. package/schemas/workload-decision-manifest-v1.schema.json +320 -0
@@ -0,0 +1,122 @@
1
+ {
2
+ "$id": "https://schemas.apexops.dev/task-envelope-v1.json",
3
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4
+ "additionalProperties": false,
5
+ "properties": {
6
+ "allowedOutputKinds": {
7
+ "items": {
8
+ "minLength": 1,
9
+ "type": "string"
10
+ },
11
+ "type": "array",
12
+ "uniqueItems": true
13
+ },
14
+ "capabilityGrants": {
15
+ "items": {
16
+ "additionalProperties": false,
17
+ "properties": {
18
+ "capability": {
19
+ "minLength": 1,
20
+ "type": "string"
21
+ },
22
+ "expiresAt": {
23
+ "format": "date-time",
24
+ "type": "string"
25
+ },
26
+ "sideEffect": {
27
+ "anyOf": [
28
+ {
29
+ "const": "none",
30
+ "type": "string"
31
+ },
32
+ {
33
+ "const": "local",
34
+ "type": "string"
35
+ },
36
+ {
37
+ "const": "remote",
38
+ "type": "string"
39
+ }
40
+ ]
41
+ }
42
+ },
43
+ "required": [
44
+ "capability",
45
+ "sideEffect",
46
+ "expiresAt"
47
+ ],
48
+ "type": "object"
49
+ },
50
+ "type": "array"
51
+ },
52
+ "createdAt": {
53
+ "format": "date-time",
54
+ "type": "string"
55
+ },
56
+ "expectedHead": {
57
+ "pattern": "^[0-9a-f]{64}$",
58
+ "type": "string"
59
+ },
60
+ "expiresAt": {
61
+ "format": "date-time",
62
+ "type": "string"
63
+ },
64
+ "inputRefs": {
65
+ "items": {
66
+ "pattern": "^[0-9a-f]{64}$",
67
+ "type": "string"
68
+ },
69
+ "type": "array",
70
+ "uniqueItems": true
71
+ },
72
+ "maxOutputBytes": {
73
+ "minimum": 1,
74
+ "type": "integer"
75
+ },
76
+ "ownerEpoch": {
77
+ "minimum": 1,
78
+ "type": "integer"
79
+ },
80
+ "projectId": {
81
+ "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
82
+ "type": "string"
83
+ },
84
+ "role": {
85
+ "minLength": 1,
86
+ "type": "string"
87
+ },
88
+ "runId": {
89
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]{0,127}$",
90
+ "type": "string"
91
+ },
92
+ "schemaVersion": {
93
+ "const": "1.0.0",
94
+ "type": "string"
95
+ },
96
+ "taskId": {
97
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]{0,127}$",
98
+ "type": "string"
99
+ },
100
+ "taskType": {
101
+ "minLength": 1,
102
+ "type": "string"
103
+ }
104
+ },
105
+ "required": [
106
+ "schemaVersion",
107
+ "projectId",
108
+ "runId",
109
+ "taskId",
110
+ "role",
111
+ "taskType",
112
+ "expectedHead",
113
+ "ownerEpoch",
114
+ "createdAt",
115
+ "expiresAt",
116
+ "inputRefs",
117
+ "allowedOutputKinds",
118
+ "capabilityGrants",
119
+ "maxOutputBytes"
120
+ ],
121
+ "type": "object"
122
+ }
@@ -0,0 +1,117 @@
1
+ {
2
+ "$id": "https://schemas.apexops.dev/telemetry-v1.json",
3
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4
+ "additionalProperties": false,
5
+ "properties": {
6
+ "confidence": {
7
+ "anyOf": [
8
+ {
9
+ "const": "low",
10
+ "type": "string"
11
+ },
12
+ {
13
+ "const": "medium",
14
+ "type": "string"
15
+ },
16
+ {
17
+ "const": "high",
18
+ "type": "string"
19
+ }
20
+ ]
21
+ },
22
+ "consent": {
23
+ "additionalProperties": false,
24
+ "properties": {
25
+ "scope": {
26
+ "minLength": 1,
27
+ "type": "string"
28
+ },
29
+ "status": {
30
+ "anyOf": [
31
+ {
32
+ "const": "granted",
33
+ "type": "string"
34
+ },
35
+ {
36
+ "const": "denied",
37
+ "type": "string"
38
+ },
39
+ {
40
+ "const": "not-required",
41
+ "type": "string"
42
+ }
43
+ ]
44
+ }
45
+ },
46
+ "required": [
47
+ "status",
48
+ "scope"
49
+ ],
50
+ "type": "object"
51
+ },
52
+ "dimensions": {
53
+ "patternProperties": {
54
+ "^(.*)$": {
55
+ "type": "string"
56
+ }
57
+ },
58
+ "type": "object"
59
+ },
60
+ "eventId": {
61
+ "minLength": 1,
62
+ "type": "string"
63
+ },
64
+ "metric": {
65
+ "minLength": 1,
66
+ "type": "string"
67
+ },
68
+ "schemaVersion": {
69
+ "const": "1.0.0",
70
+ "type": "string"
71
+ },
72
+ "source": {
73
+ "anyOf": [
74
+ {
75
+ "const": "kernel",
76
+ "type": "string"
77
+ },
78
+ {
79
+ "const": "cli",
80
+ "type": "string"
81
+ },
82
+ {
83
+ "const": "vscode",
84
+ "type": "string"
85
+ },
86
+ {
87
+ "const": "estimated",
88
+ "type": "string"
89
+ }
90
+ ]
91
+ },
92
+ "timestamp": {
93
+ "format": "date-time",
94
+ "type": "string"
95
+ },
96
+ "unit": {
97
+ "minLength": 1,
98
+ "type": "string"
99
+ },
100
+ "value": {
101
+ "type": "number"
102
+ }
103
+ },
104
+ "required": [
105
+ "schemaVersion",
106
+ "eventId",
107
+ "timestamp",
108
+ "metric",
109
+ "value",
110
+ "unit",
111
+ "consent",
112
+ "source",
113
+ "confidence",
114
+ "dimensions"
115
+ ],
116
+ "type": "object"
117
+ }
@@ -0,0 +1,320 @@
1
+ {
2
+ "$id": "https://schemas.apexops.dev/workload-decision-manifest-v1.json",
3
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4
+ "additionalProperties": false,
5
+ "properties": {
6
+ "architectureHash": {
7
+ "pattern": "^[0-9a-f]{64}$",
8
+ "type": "string"
9
+ },
10
+ "costEstimateHash": {
11
+ "pattern": "^[0-9a-f]{64}$",
12
+ "type": "string"
13
+ },
14
+ "environment": {
15
+ "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
16
+ "type": "string"
17
+ },
18
+ "environments": {
19
+ "items": {
20
+ "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
21
+ "type": "string"
22
+ },
23
+ "minItems": 1,
24
+ "type": "array",
25
+ "uniqueItems": true
26
+ },
27
+ "projectId": {
28
+ "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
29
+ "type": "string"
30
+ },
31
+ "requirementTraceability": {
32
+ "items": {
33
+ "additionalProperties": false,
34
+ "properties": {
35
+ "requirementId": {
36
+ "minLength": 1,
37
+ "type": "string"
38
+ },
39
+ "skuDecisionIds": {
40
+ "items": {
41
+ "minLength": 1,
42
+ "type": "string"
43
+ },
44
+ "minItems": 1,
45
+ "type": "array",
46
+ "uniqueItems": true
47
+ },
48
+ "sloDecisionIds": {
49
+ "items": {
50
+ "minLength": 1,
51
+ "type": "string"
52
+ },
53
+ "minItems": 1,
54
+ "type": "array",
55
+ "uniqueItems": true
56
+ }
57
+ },
58
+ "required": [
59
+ "requirementId",
60
+ "skuDecisionIds",
61
+ "sloDecisionIds"
62
+ ],
63
+ "type": "object"
64
+ },
65
+ "minItems": 1,
66
+ "type": "array"
67
+ },
68
+ "revisions": {
69
+ "items": {
70
+ "additionalProperties": false,
71
+ "properties": {
72
+ "createdAt": {
73
+ "format": "date-time",
74
+ "type": "string"
75
+ },
76
+ "number": {
77
+ "minimum": 1,
78
+ "type": "integer"
79
+ },
80
+ "reason": {
81
+ "minLength": 1,
82
+ "type": "string"
83
+ },
84
+ "sourceHash": {
85
+ "pattern": "^[0-9a-f]{64}$",
86
+ "type": "string"
87
+ }
88
+ },
89
+ "required": [
90
+ "number",
91
+ "createdAt",
92
+ "sourceHash",
93
+ "reason"
94
+ ],
95
+ "type": "object"
96
+ },
97
+ "minItems": 1,
98
+ "type": "array"
99
+ },
100
+ "runId": {
101
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]{0,127}$",
102
+ "type": "string"
103
+ },
104
+ "schemaVersion": {
105
+ "const": "1.0.0",
106
+ "type": "string"
107
+ },
108
+ "skuDecisions": {
109
+ "items": {
110
+ "additionalProperties": false,
111
+ "properties": {
112
+ "environmentOverrides": {
113
+ "items": {
114
+ "additionalProperties": false,
115
+ "minProperties": 2,
116
+ "properties": {
117
+ "environment": {
118
+ "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
119
+ "type": "string"
120
+ },
121
+ "quantity": {
122
+ "exclusiveMinimum": 0,
123
+ "type": "number"
124
+ },
125
+ "sku": {
126
+ "minLength": 1,
127
+ "type": "string"
128
+ }
129
+ },
130
+ "required": [
131
+ "environment"
132
+ ],
133
+ "type": "object"
134
+ },
135
+ "type": "array"
136
+ },
137
+ "id": {
138
+ "minLength": 1,
139
+ "type": "string"
140
+ },
141
+ "logicalId": {
142
+ "minLength": 1,
143
+ "type": "string"
144
+ },
145
+ "quantity": {
146
+ "exclusiveMinimum": 0,
147
+ "type": "number"
148
+ },
149
+ "rationale": {
150
+ "minLength": 1,
151
+ "type": "string"
152
+ },
153
+ "requirementIds": {
154
+ "items": {
155
+ "minLength": 1,
156
+ "type": "string"
157
+ },
158
+ "minItems": 1,
159
+ "type": "array",
160
+ "uniqueItems": true
161
+ },
162
+ "service": {
163
+ "minLength": 1,
164
+ "type": "string"
165
+ },
166
+ "sku": {
167
+ "minLength": 1,
168
+ "type": "string"
169
+ }
170
+ },
171
+ "required": [
172
+ "id",
173
+ "logicalId",
174
+ "service",
175
+ "sku",
176
+ "quantity",
177
+ "rationale",
178
+ "requirementIds",
179
+ "environmentOverrides"
180
+ ],
181
+ "type": "object"
182
+ },
183
+ "minItems": 1,
184
+ "type": "array"
185
+ },
186
+ "sloDecisions": {
187
+ "items": {
188
+ "additionalProperties": false,
189
+ "properties": {
190
+ "availabilityPercent": {
191
+ "maximum": 100,
192
+ "minimum": 0,
193
+ "type": "number"
194
+ },
195
+ "complianceScopes": {
196
+ "items": {
197
+ "minLength": 1,
198
+ "type": "string"
199
+ },
200
+ "minItems": 1,
201
+ "type": "array",
202
+ "uniqueItems": true
203
+ },
204
+ "environmentOverrides": {
205
+ "items": {
206
+ "additionalProperties": false,
207
+ "properties": {
208
+ "environment": {
209
+ "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
210
+ "type": "string"
211
+ },
212
+ "patch": {
213
+ "additionalProperties": false,
214
+ "minProperties": 1,
215
+ "properties": {
216
+ "availabilityPercent": {
217
+ "maximum": 100,
218
+ "minimum": 0,
219
+ "type": "number"
220
+ },
221
+ "complianceScopes": {
222
+ "items": {
223
+ "minLength": 1,
224
+ "type": "string"
225
+ },
226
+ "minItems": 1,
227
+ "type": "array",
228
+ "uniqueItems": true
229
+ },
230
+ "rpoMinutes": {
231
+ "minimum": 0,
232
+ "type": "integer"
233
+ },
234
+ "rtoMinutes": {
235
+ "minimum": 0,
236
+ "type": "integer"
237
+ },
238
+ "supportWindow": {
239
+ "minLength": 1,
240
+ "type": "string"
241
+ }
242
+ },
243
+ "type": "object"
244
+ }
245
+ },
246
+ "required": [
247
+ "environment",
248
+ "patch"
249
+ ],
250
+ "type": "object"
251
+ },
252
+ "type": "array"
253
+ },
254
+ "id": {
255
+ "minLength": 1,
256
+ "type": "string"
257
+ },
258
+ "logicalId": {
259
+ "minLength": 1,
260
+ "type": "string"
261
+ },
262
+ "requirementIds": {
263
+ "items": {
264
+ "minLength": 1,
265
+ "type": "string"
266
+ },
267
+ "minItems": 1,
268
+ "type": "array",
269
+ "uniqueItems": true
270
+ },
271
+ "rpoMinutes": {
272
+ "minimum": 0,
273
+ "type": "integer"
274
+ },
275
+ "rtoMinutes": {
276
+ "minimum": 0,
277
+ "type": "integer"
278
+ },
279
+ "supportWindow": {
280
+ "minLength": 1,
281
+ "type": "string"
282
+ }
283
+ },
284
+ "required": [
285
+ "id",
286
+ "logicalId",
287
+ "availabilityPercent",
288
+ "rtoMinutes",
289
+ "rpoMinutes",
290
+ "supportWindow",
291
+ "complianceScopes",
292
+ "requirementIds",
293
+ "environmentOverrides"
294
+ ],
295
+ "type": "object"
296
+ },
297
+ "minItems": 1,
298
+ "type": "array"
299
+ },
300
+ "sourceRequirementsHash": {
301
+ "pattern": "^[0-9a-f]{64}$",
302
+ "type": "string"
303
+ }
304
+ },
305
+ "required": [
306
+ "schemaVersion",
307
+ "projectId",
308
+ "runId",
309
+ "environment",
310
+ "sourceRequirementsHash",
311
+ "architectureHash",
312
+ "costEstimateHash",
313
+ "environments",
314
+ "requirementTraceability",
315
+ "skuDecisions",
316
+ "sloDecisions",
317
+ "revisions"
318
+ ],
319
+ "type": "object"
320
+ }