@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,111 @@
1
+ {
2
+ "$id": "https://schemas.apexops.dev/diagnosis-v1.json",
3
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4
+ "additionalProperties": false,
5
+ "properties": {
6
+ "causes": {
7
+ "items": {
8
+ "additionalProperties": false,
9
+ "properties": {
10
+ "confidence": {
11
+ "anyOf": [
12
+ {
13
+ "const": "low",
14
+ "type": "string"
15
+ },
16
+ {
17
+ "const": "medium",
18
+ "type": "string"
19
+ },
20
+ {
21
+ "const": "high",
22
+ "type": "string"
23
+ }
24
+ ]
25
+ },
26
+ "evidenceRefs": {
27
+ "items": {
28
+ "pattern": "^[0-9a-f]{64}$",
29
+ "type": "string"
30
+ },
31
+ "type": "array",
32
+ "uniqueItems": true
33
+ },
34
+ "id": {
35
+ "minLength": 1,
36
+ "type": "string"
37
+ },
38
+ "remediation": {
39
+ "minLength": 1,
40
+ "type": "string"
41
+ },
42
+ "summary": {
43
+ "minLength": 1,
44
+ "type": "string"
45
+ }
46
+ },
47
+ "required": [
48
+ "id",
49
+ "summary",
50
+ "confidence",
51
+ "evidenceRefs"
52
+ ],
53
+ "type": "object"
54
+ },
55
+ "type": "array"
56
+ },
57
+ "diagnosedAt": {
58
+ "format": "date-time",
59
+ "type": "string"
60
+ },
61
+ "observations": {
62
+ "items": {
63
+ "minLength": 1,
64
+ "type": "string"
65
+ },
66
+ "type": "array"
67
+ },
68
+ "projectId": {
69
+ "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
70
+ "type": "string"
71
+ },
72
+ "runId": {
73
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]{0,127}$",
74
+ "type": "string"
75
+ },
76
+ "schemaVersion": {
77
+ "const": "1.0.0",
78
+ "type": "string"
79
+ },
80
+ "status": {
81
+ "anyOf": [
82
+ {
83
+ "const": "healthy",
84
+ "type": "string"
85
+ },
86
+ {
87
+ "const": "degraded",
88
+ "type": "string"
89
+ },
90
+ {
91
+ "const": "failed",
92
+ "type": "string"
93
+ },
94
+ {
95
+ "const": "unknown",
96
+ "type": "string"
97
+ }
98
+ ]
99
+ }
100
+ },
101
+ "required": [
102
+ "schemaVersion",
103
+ "projectId",
104
+ "runId",
105
+ "diagnosedAt",
106
+ "status",
107
+ "observations",
108
+ "causes"
109
+ ],
110
+ "type": "object"
111
+ }
@@ -0,0 +1,106 @@
1
+ {
2
+ "$id": "https://schemas.apexops.dev/environment-inputs-v1.json",
3
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4
+ "additionalProperties": false,
5
+ "properties": {
6
+ "environment": {
7
+ "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
8
+ "type": "string"
9
+ },
10
+ "inputs": {
11
+ "patternProperties": {
12
+ "^(.*)$": {
13
+ "anyOf": [
14
+ {
15
+ "additionalProperties": false,
16
+ "properties": {
17
+ "kind": {
18
+ "const": "value",
19
+ "type": "string"
20
+ },
21
+ "value": {
22
+ "anyOf": [
23
+ {
24
+ "type": "string"
25
+ },
26
+ {
27
+ "type": "number"
28
+ },
29
+ {
30
+ "type": "boolean"
31
+ }
32
+ ]
33
+ }
34
+ },
35
+ "required": [
36
+ "kind",
37
+ "value"
38
+ ],
39
+ "type": "object"
40
+ },
41
+ {
42
+ "additionalProperties": false,
43
+ "properties": {
44
+ "kind": {
45
+ "const": "secret-reference",
46
+ "type": "string"
47
+ },
48
+ "provider": {
49
+ "anyOf": [
50
+ {
51
+ "const": "environment",
52
+ "type": "string"
53
+ },
54
+ {
55
+ "const": "azure-key-vault",
56
+ "type": "string"
57
+ },
58
+ {
59
+ "const": "github-actions",
60
+ "type": "string"
61
+ }
62
+ ]
63
+ },
64
+ "reference": {
65
+ "minLength": 1,
66
+ "type": "string"
67
+ },
68
+ "version": {
69
+ "minLength": 1,
70
+ "type": "string"
71
+ }
72
+ },
73
+ "required": [
74
+ "kind",
75
+ "provider",
76
+ "reference"
77
+ ],
78
+ "type": "object"
79
+ }
80
+ ]
81
+ }
82
+ },
83
+ "type": "object"
84
+ },
85
+ "projectId": {
86
+ "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
87
+ "type": "string"
88
+ },
89
+ "runId": {
90
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]{0,127}$",
91
+ "type": "string"
92
+ },
93
+ "schemaVersion": {
94
+ "const": "1.0.0",
95
+ "type": "string"
96
+ }
97
+ },
98
+ "required": [
99
+ "schemaVersion",
100
+ "projectId",
101
+ "runId",
102
+ "environment",
103
+ "inputs"
104
+ ],
105
+ "type": "object"
106
+ }
@@ -0,0 +1,74 @@
1
+ {
2
+ "$id": "https://schemas.apexops.dev/event-v1.json",
3
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4
+ "additionalProperties": false,
5
+ "properties": {
6
+ "eventId": {
7
+ "minLength": 1,
8
+ "type": "string"
9
+ },
10
+ "hash": {
11
+ "pattern": "^[0-9a-f]{64}$",
12
+ "type": "string"
13
+ },
14
+ "ownerEpoch": {
15
+ "minimum": 1,
16
+ "type": "integer"
17
+ },
18
+ "payload": {},
19
+ "payloadHash": {
20
+ "pattern": "^[0-9a-f]{64}$",
21
+ "type": "string"
22
+ },
23
+ "previousHash": {
24
+ "anyOf": [
25
+ {
26
+ "pattern": "^[0-9a-f]{64}$",
27
+ "type": "string"
28
+ },
29
+ {
30
+ "type": "null"
31
+ }
32
+ ]
33
+ },
34
+ "projectId": {
35
+ "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
36
+ "type": "string"
37
+ },
38
+ "runId": {
39
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]{0,127}$",
40
+ "type": "string"
41
+ },
42
+ "schemaVersion": {
43
+ "const": "1.0.0",
44
+ "type": "string"
45
+ },
46
+ "sequence": {
47
+ "minimum": 1,
48
+ "type": "integer"
49
+ },
50
+ "timestamp": {
51
+ "format": "date-time",
52
+ "type": "string"
53
+ },
54
+ "type": {
55
+ "minLength": 1,
56
+ "type": "string"
57
+ }
58
+ },
59
+ "required": [
60
+ "schemaVersion",
61
+ "eventId",
62
+ "projectId",
63
+ "runId",
64
+ "sequence",
65
+ "type",
66
+ "timestamp",
67
+ "ownerEpoch",
68
+ "previousHash",
69
+ "payloadHash",
70
+ "payload",
71
+ "hash"
72
+ ],
73
+ "type": "object"
74
+ }
@@ -0,0 +1,111 @@
1
+ {
2
+ "$id": "https://schemas.apexops.dev/evidence-manifest-v1.json",
3
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4
+ "additionalProperties": false,
5
+ "properties": {
6
+ "clientQualification": {
7
+ "additionalProperties": false,
8
+ "properties": {
9
+ "bytes": {
10
+ "minimum": 1,
11
+ "type": "integer"
12
+ },
13
+ "hash": {
14
+ "pattern": "^[0-9a-f]{64}$",
15
+ "type": "string"
16
+ },
17
+ "kind": {
18
+ "const": "client-qualification",
19
+ "type": "string"
20
+ },
21
+ "required": {
22
+ "const": true,
23
+ "type": "boolean"
24
+ },
25
+ "retention": {
26
+ "const": "immutable",
27
+ "type": "string"
28
+ }
29
+ },
30
+ "required": [
31
+ "kind",
32
+ "hash",
33
+ "bytes",
34
+ "required",
35
+ "retention"
36
+ ],
37
+ "type": "object"
38
+ },
39
+ "createdAt": {
40
+ "format": "date-time",
41
+ "type": "string"
42
+ },
43
+ "entries": {
44
+ "items": {
45
+ "additionalProperties": false,
46
+ "properties": {
47
+ "bytes": {
48
+ "minimum": 0,
49
+ "type": "integer"
50
+ },
51
+ "hash": {
52
+ "pattern": "^[0-9a-f]{64}$",
53
+ "type": "string"
54
+ },
55
+ "kind": {
56
+ "minLength": 1,
57
+ "type": "string"
58
+ },
59
+ "required": {
60
+ "type": "boolean"
61
+ },
62
+ "retention": {
63
+ "anyOf": [
64
+ {
65
+ "const": "immutable",
66
+ "type": "string"
67
+ },
68
+ {
69
+ "const": "project",
70
+ "type": "string"
71
+ },
72
+ {
73
+ "const": "optional",
74
+ "type": "string"
75
+ }
76
+ ]
77
+ }
78
+ },
79
+ "required": [
80
+ "kind",
81
+ "hash",
82
+ "bytes",
83
+ "required",
84
+ "retention"
85
+ ],
86
+ "type": "object"
87
+ },
88
+ "type": "array"
89
+ },
90
+ "projectId": {
91
+ "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
92
+ "type": "string"
93
+ },
94
+ "runId": {
95
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]{0,127}$",
96
+ "type": "string"
97
+ },
98
+ "schemaVersion": {
99
+ "const": "1.0.0",
100
+ "type": "string"
101
+ }
102
+ },
103
+ "required": [
104
+ "schemaVersion",
105
+ "projectId",
106
+ "runId",
107
+ "createdAt",
108
+ "entries"
109
+ ],
110
+ "type": "object"
111
+ }
@@ -0,0 +1,145 @@
1
+ {
2
+ "$id": "https://schemas.apexops.dev/execution-plan-attestation-v1.json",
3
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4
+ "additionalProperties": false,
5
+ "properties": {
6
+ "artifactRef": {
7
+ "minLength": 1,
8
+ "type": "string"
9
+ },
10
+ "configHash": {
11
+ "pattern": "^[0-9a-f]{64}$",
12
+ "type": "string"
13
+ },
14
+ "createdAt": {
15
+ "format": "date-time",
16
+ "type": "string"
17
+ },
18
+ "expiresAt": {
19
+ "format": "date-time",
20
+ "type": "string"
21
+ },
22
+ "iacHash": {
23
+ "pattern": "^[0-9a-f]{64}$",
24
+ "type": "string"
25
+ },
26
+ "inputHash": {
27
+ "pattern": "^[0-9a-f]{64}$",
28
+ "type": "string"
29
+ },
30
+ "lockfileHash": {
31
+ "pattern": "^[0-9a-f]{64}$",
32
+ "type": "string"
33
+ },
34
+ "planDigest": {
35
+ "pattern": "^[0-9a-f]{64}$",
36
+ "type": "string"
37
+ },
38
+ "policyHash": {
39
+ "pattern": "^[0-9a-f]{64}$",
40
+ "type": "string"
41
+ },
42
+ "previewHash": {
43
+ "pattern": "^[0-9a-f]{64}$",
44
+ "type": "string"
45
+ },
46
+ "projectId": {
47
+ "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
48
+ "type": "string"
49
+ },
50
+ "recipient": {
51
+ "minLength": 1,
52
+ "type": "string"
53
+ },
54
+ "runId": {
55
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]{0,127}$",
56
+ "type": "string"
57
+ },
58
+ "schemaVersion": {
59
+ "const": "1.0.0",
60
+ "type": "string"
61
+ },
62
+ "stateLineage": {
63
+ "minLength": 1,
64
+ "type": "string"
65
+ },
66
+ "stateSerial": {
67
+ "minimum": 0,
68
+ "type": "integer"
69
+ },
70
+ "track": {
71
+ "anyOf": [
72
+ {
73
+ "const": "bicep",
74
+ "type": "string"
75
+ },
76
+ {
77
+ "const": "terraform",
78
+ "type": "string"
79
+ }
80
+ ]
81
+ },
82
+ "transport": {
83
+ "additionalProperties": false,
84
+ "properties": {
85
+ "algorithm": {
86
+ "const": "aes-256-gcm",
87
+ "type": "string"
88
+ },
89
+ "authTag": {
90
+ "minLength": 1,
91
+ "type": "string"
92
+ },
93
+ "encrypted": {
94
+ "const": true,
95
+ "type": "boolean"
96
+ },
97
+ "implementation": {
98
+ "const": "local-reference",
99
+ "type": "string"
100
+ },
101
+ "iv": {
102
+ "minLength": 1,
103
+ "type": "string"
104
+ },
105
+ "mediaType": {
106
+ "minLength": 1,
107
+ "type": "string"
108
+ },
109
+ "recipient": {
110
+ "minLength": 1,
111
+ "type": "string"
112
+ }
113
+ },
114
+ "required": [
115
+ "encrypted",
116
+ "implementation",
117
+ "algorithm",
118
+ "recipient",
119
+ "mediaType",
120
+ "iv",
121
+ "authTag"
122
+ ],
123
+ "type": "object"
124
+ }
125
+ },
126
+ "required": [
127
+ "schemaVersion",
128
+ "projectId",
129
+ "runId",
130
+ "track",
131
+ "previewHash",
132
+ "inputHash",
133
+ "iacHash",
134
+ "policyHash",
135
+ "configHash",
136
+ "lockfileHash",
137
+ "recipient",
138
+ "planDigest",
139
+ "artifactRef",
140
+ "transport",
141
+ "createdAt",
142
+ "expiresAt"
143
+ ],
144
+ "type": "object"
145
+ }
@@ -0,0 +1,103 @@
1
+ {
2
+ "$id": "https://schemas.apexops.dev/governance-constraints-v1.json",
3
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4
+ "additionalProperties": false,
5
+ "properties": {
6
+ "constraintsRef": {
7
+ "additionalProperties": false,
8
+ "properties": {
9
+ "bytes": {
10
+ "minimum": 0,
11
+ "type": "integer"
12
+ },
13
+ "digest": {
14
+ "pattern": "^[0-9a-f]{64}$",
15
+ "type": "string"
16
+ },
17
+ "mediaType": {
18
+ "const": "application/json",
19
+ "type": "string"
20
+ },
21
+ "uri": {
22
+ "minLength": 1,
23
+ "type": "string"
24
+ }
25
+ },
26
+ "required": [
27
+ "mediaType",
28
+ "uri",
29
+ "digest",
30
+ "bytes"
31
+ ],
32
+ "type": "object"
33
+ },
34
+ "discoveredAt": {
35
+ "format": "date-time",
36
+ "type": "string"
37
+ },
38
+ "expiresAt": {
39
+ "format": "date-time",
40
+ "type": "string"
41
+ },
42
+ "projectId": {
43
+ "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
44
+ "type": "string"
45
+ },
46
+ "runId": {
47
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]{0,127}$",
48
+ "type": "string"
49
+ },
50
+ "schemaVersion": {
51
+ "const": "1.0.0",
52
+ "type": "string"
53
+ },
54
+ "summary": {
55
+ "additionalProperties": false,
56
+ "properties": {
57
+ "assignmentCount": {
58
+ "minimum": 0,
59
+ "type": "integer"
60
+ },
61
+ "auditCount": {
62
+ "minimum": 0,
63
+ "type": "integer"
64
+ },
65
+ "denyCount": {
66
+ "minimum": 0,
67
+ "type": "integer"
68
+ },
69
+ "exemptionCount": {
70
+ "minimum": 0,
71
+ "type": "integer"
72
+ },
73
+ "modifyCount": {
74
+ "minimum": 0,
75
+ "type": "integer"
76
+ }
77
+ },
78
+ "required": [
79
+ "assignmentCount",
80
+ "denyCount",
81
+ "modifyCount",
82
+ "auditCount",
83
+ "exemptionCount"
84
+ ],
85
+ "type": "object"
86
+ },
87
+ "targetScope": {
88
+ "minLength": 1,
89
+ "type": "string"
90
+ }
91
+ },
92
+ "required": [
93
+ "schemaVersion",
94
+ "projectId",
95
+ "runId",
96
+ "targetScope",
97
+ "discoveredAt",
98
+ "expiresAt",
99
+ "summary",
100
+ "constraintsRef"
101
+ ],
102
+ "type": "object"
103
+ }