@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,144 @@
1
+ {
2
+ "$id": "https://schemas.apexops.dev/improvement-proposal-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
+ "evidenceRefs": {
23
+ "items": {
24
+ "pattern": "^[0-9a-f]{64}$",
25
+ "type": "string"
26
+ },
27
+ "minItems": 1,
28
+ "type": "array",
29
+ "uniqueItems": true
30
+ },
31
+ "generatedAt": {
32
+ "format": "date-time",
33
+ "type": "string"
34
+ },
35
+ "inert": {
36
+ "const": true,
37
+ "type": "boolean"
38
+ },
39
+ "occurrenceCount": {
40
+ "minimum": 2,
41
+ "type": "integer"
42
+ },
43
+ "patternKey": {
44
+ "pattern": "^[0-9a-f]{64}$",
45
+ "type": "string"
46
+ },
47
+ "projectId": {
48
+ "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
49
+ "type": "string"
50
+ },
51
+ "proposalId": {
52
+ "pattern": "^[0-9a-f]{64}$",
53
+ "type": "string"
54
+ },
55
+ "runIds": {
56
+ "items": {
57
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]{0,127}$",
58
+ "type": "string"
59
+ },
60
+ "minItems": 2,
61
+ "type": "array",
62
+ "uniqueItems": true
63
+ },
64
+ "schemaVersion": {
65
+ "const": "1.0.0",
66
+ "type": "string"
67
+ },
68
+ "status": {
69
+ "anyOf": [
70
+ {
71
+ "const": "pending",
72
+ "type": "string"
73
+ },
74
+ {
75
+ "const": "accepted",
76
+ "type": "string"
77
+ },
78
+ {
79
+ "const": "rejected",
80
+ "type": "string"
81
+ },
82
+ {
83
+ "const": "deferred",
84
+ "type": "string"
85
+ }
86
+ ]
87
+ },
88
+ "summary": {
89
+ "maxLength": 2048,
90
+ "minLength": 1,
91
+ "type": "string"
92
+ },
93
+ "target": {
94
+ "anyOf": [
95
+ {
96
+ "const": "documentation",
97
+ "type": "string"
98
+ },
99
+ {
100
+ "const": "validator",
101
+ "type": "string"
102
+ },
103
+ {
104
+ "const": "instruction",
105
+ "type": "string"
106
+ },
107
+ {
108
+ "const": "skill",
109
+ "type": "string"
110
+ },
111
+ {
112
+ "const": "architecture",
113
+ "type": "string"
114
+ },
115
+ {
116
+ "const": "backlog",
117
+ "type": "string"
118
+ }
119
+ ]
120
+ },
121
+ "title": {
122
+ "maxLength": 160,
123
+ "minLength": 1,
124
+ "type": "string"
125
+ }
126
+ },
127
+ "required": [
128
+ "schemaVersion",
129
+ "projectId",
130
+ "proposalId",
131
+ "patternKey",
132
+ "generatedAt",
133
+ "target",
134
+ "title",
135
+ "summary",
136
+ "occurrenceCount",
137
+ "runIds",
138
+ "evidenceRefs",
139
+ "confidence",
140
+ "status",
141
+ "inert"
142
+ ],
143
+ "type": "object"
144
+ }
@@ -0,0 +1,130 @@
1
+ {
2
+ "$id": "https://schemas.apexops.dev/improvement-recurrence-v1.json",
3
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4
+ "additionalProperties": false,
5
+ "properties": {
6
+ "category": {
7
+ "anyOf": [
8
+ {
9
+ "const": "correctness",
10
+ "type": "string"
11
+ },
12
+ {
13
+ "const": "security",
14
+ "type": "string"
15
+ },
16
+ {
17
+ "const": "reliability",
18
+ "type": "string"
19
+ },
20
+ {
21
+ "const": "performance",
22
+ "type": "string"
23
+ },
24
+ {
25
+ "const": "usability",
26
+ "type": "string"
27
+ },
28
+ {
29
+ "const": "documentation",
30
+ "type": "string"
31
+ },
32
+ {
33
+ "const": "capability-gap",
34
+ "type": "string"
35
+ }
36
+ ]
37
+ },
38
+ "confidence": {
39
+ "anyOf": [
40
+ {
41
+ "const": "low",
42
+ "type": "string"
43
+ },
44
+ {
45
+ "const": "medium",
46
+ "type": "string"
47
+ },
48
+ {
49
+ "const": "high",
50
+ "type": "string"
51
+ }
52
+ ]
53
+ },
54
+ "detectedAt": {
55
+ "format": "date-time",
56
+ "type": "string"
57
+ },
58
+ "distinctRunCount": {
59
+ "minimum": 2,
60
+ "type": "integer"
61
+ },
62
+ "evidenceRefs": {
63
+ "items": {
64
+ "pattern": "^[0-9a-f]{64}$",
65
+ "type": "string"
66
+ },
67
+ "minItems": 1,
68
+ "type": "array",
69
+ "uniqueItems": true
70
+ },
71
+ "firstSeenAt": {
72
+ "format": "date-time",
73
+ "type": "string"
74
+ },
75
+ "lastSeenAt": {
76
+ "format": "date-time",
77
+ "type": "string"
78
+ },
79
+ "observationIds": {
80
+ "items": {
81
+ "pattern": "^[0-9a-f]{64}$",
82
+ "type": "string"
83
+ },
84
+ "minItems": 2,
85
+ "type": "array",
86
+ "uniqueItems": true
87
+ },
88
+ "occurrenceCount": {
89
+ "minimum": 2,
90
+ "type": "integer"
91
+ },
92
+ "patternKey": {
93
+ "pattern": "^[0-9a-f]{64}$",
94
+ "type": "string"
95
+ },
96
+ "projectId": {
97
+ "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
98
+ "type": "string"
99
+ },
100
+ "runIds": {
101
+ "items": {
102
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]{0,127}$",
103
+ "type": "string"
104
+ },
105
+ "minItems": 2,
106
+ "type": "array",
107
+ "uniqueItems": true
108
+ },
109
+ "schemaVersion": {
110
+ "const": "1.0.0",
111
+ "type": "string"
112
+ }
113
+ },
114
+ "required": [
115
+ "schemaVersion",
116
+ "projectId",
117
+ "patternKey",
118
+ "category",
119
+ "detectedAt",
120
+ "firstSeenAt",
121
+ "lastSeenAt",
122
+ "occurrenceCount",
123
+ "distinctRunCount",
124
+ "runIds",
125
+ "observationIds",
126
+ "evidenceRefs",
127
+ "confidence"
128
+ ],
129
+ "type": "object"
130
+ }
@@ -0,0 +1,242 @@
1
+ {
2
+ "$id": "https://schemas.apexops.dev/input-request-v1.json",
3
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4
+ "anyOf": [
5
+ {
6
+ "additionalProperties": false,
7
+ "properties": {
8
+ "expectedHead": {
9
+ "pattern": "^[0-9a-f]{64}$",
10
+ "type": "string"
11
+ },
12
+ "intake": {
13
+ "additionalProperties": false,
14
+ "properties": {
15
+ "ordinal": {
16
+ "maximum": 4,
17
+ "minimum": 1,
18
+ "type": "integer"
19
+ },
20
+ "round": {
21
+ "anyOf": [
22
+ {
23
+ "const": "business-discovery",
24
+ "type": "string"
25
+ },
26
+ {
27
+ "const": "workload-pattern",
28
+ "type": "string"
29
+ },
30
+ {
31
+ "const": "service-preferences",
32
+ "type": "string"
33
+ },
34
+ {
35
+ "const": "security-compliance",
36
+ "type": "string"
37
+ }
38
+ ]
39
+ },
40
+ "total": {
41
+ "const": 4,
42
+ "type": "number"
43
+ }
44
+ },
45
+ "required": [
46
+ "round",
47
+ "ordinal",
48
+ "total"
49
+ ],
50
+ "type": "object"
51
+ },
52
+ "ownerEpoch": {
53
+ "minimum": 1,
54
+ "type": "integer"
55
+ },
56
+ "questions": {
57
+ "items": {
58
+ "additionalProperties": false,
59
+ "properties": {
60
+ "id": {
61
+ "minLength": 1,
62
+ "type": "string"
63
+ },
64
+ "multiSelect": {
65
+ "type": "boolean"
66
+ },
67
+ "options": {
68
+ "items": {
69
+ "minLength": 1,
70
+ "type": "string"
71
+ },
72
+ "minItems": 1,
73
+ "type": "array",
74
+ "uniqueItems": true
75
+ },
76
+ "prompt": {
77
+ "minLength": 1,
78
+ "type": "string"
79
+ },
80
+ "valueType": {
81
+ "anyOf": [
82
+ {
83
+ "const": "budget",
84
+ "type": "string"
85
+ },
86
+ {
87
+ "const": "recovery",
88
+ "type": "string"
89
+ },
90
+ {
91
+ "const": "environment-set",
92
+ "type": "string"
93
+ },
94
+ {
95
+ "const": "data-classification",
96
+ "type": "string"
97
+ },
98
+ {
99
+ "const": "compliance",
100
+ "type": "string"
101
+ }
102
+ ]
103
+ }
104
+ },
105
+ "required": [
106
+ "id",
107
+ "prompt"
108
+ ],
109
+ "type": "object"
110
+ },
111
+ "minItems": 1,
112
+ "type": "array",
113
+ "uniqueItems": true
114
+ },
115
+ "requestId": {
116
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]{0,127}$",
117
+ "type": "string"
118
+ },
119
+ "schemaVersion": {
120
+ "const": "1.0.0",
121
+ "type": "string"
122
+ }
123
+ },
124
+ "required": [
125
+ "schemaVersion",
126
+ "requestId",
127
+ "expectedHead",
128
+ "ownerEpoch",
129
+ "questions",
130
+ "intake"
131
+ ],
132
+ "type": "object"
133
+ },
134
+ {
135
+ "additionalProperties": false,
136
+ "properties": {
137
+ "decision": {
138
+ "additionalProperties": false,
139
+ "properties": {
140
+ "id": {
141
+ "minLength": 1,
142
+ "type": "string"
143
+ },
144
+ "taskId": {
145
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]{0,127}$",
146
+ "type": "string"
147
+ }
148
+ },
149
+ "required": [
150
+ "taskId",
151
+ "id"
152
+ ],
153
+ "type": "object"
154
+ },
155
+ "expectedHead": {
156
+ "pattern": "^[0-9a-f]{64}$",
157
+ "type": "string"
158
+ },
159
+ "ownerEpoch": {
160
+ "minimum": 1,
161
+ "type": "integer"
162
+ },
163
+ "questions": {
164
+ "items": {
165
+ "additionalProperties": false,
166
+ "properties": {
167
+ "id": {
168
+ "minLength": 1,
169
+ "type": "string"
170
+ },
171
+ "multiSelect": {
172
+ "type": "boolean"
173
+ },
174
+ "options": {
175
+ "items": {
176
+ "minLength": 1,
177
+ "type": "string"
178
+ },
179
+ "minItems": 1,
180
+ "type": "array",
181
+ "uniqueItems": true
182
+ },
183
+ "prompt": {
184
+ "minLength": 1,
185
+ "type": "string"
186
+ },
187
+ "valueType": {
188
+ "anyOf": [
189
+ {
190
+ "const": "budget",
191
+ "type": "string"
192
+ },
193
+ {
194
+ "const": "recovery",
195
+ "type": "string"
196
+ },
197
+ {
198
+ "const": "environment-set",
199
+ "type": "string"
200
+ },
201
+ {
202
+ "const": "data-classification",
203
+ "type": "string"
204
+ },
205
+ {
206
+ "const": "compliance",
207
+ "type": "string"
208
+ }
209
+ ]
210
+ }
211
+ },
212
+ "required": [
213
+ "id",
214
+ "prompt"
215
+ ],
216
+ "type": "object"
217
+ },
218
+ "minItems": 1,
219
+ "type": "array",
220
+ "uniqueItems": true
221
+ },
222
+ "requestId": {
223
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]{0,127}$",
224
+ "type": "string"
225
+ },
226
+ "schemaVersion": {
227
+ "const": "1.0.0",
228
+ "type": "string"
229
+ }
230
+ },
231
+ "required": [
232
+ "schemaVersion",
233
+ "requestId",
234
+ "expectedHead",
235
+ "ownerEpoch",
236
+ "questions",
237
+ "decision"
238
+ ],
239
+ "type": "object"
240
+ }
241
+ ]
242
+ }