@techis/ai-contracts 0.3.0-rc.16 → 0.3.0-rc.17

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 (32) hide show
  1. package/dist/catalog-delivery.d.ts.map +1 -1
  2. package/dist/catalog-delivery.js +2 -0
  3. package/dist/catalog-delivery.js.map +1 -1
  4. package/dist/catalog-package-data.d.ts.map +1 -1
  5. package/dist/catalog-package-data.js +5477 -5
  6. package/dist/catalog-package-data.js.map +1 -1
  7. package/dist/catalog-source-completeness.d.ts +27 -0
  8. package/dist/catalog-source-completeness.d.ts.map +1 -0
  9. package/dist/catalog-source-completeness.js +75 -0
  10. package/dist/catalog-source-completeness.js.map +1 -0
  11. package/dist/incremental-catalog-review.d.ts +152 -0
  12. package/dist/incremental-catalog-review.d.ts.map +1 -0
  13. package/dist/incremental-catalog-review.js +283 -0
  14. package/dist/incremental-catalog-review.js.map +1 -0
  15. package/dist/index.d.ts +2 -0
  16. package/dist/index.d.ts.map +1 -1
  17. package/dist/index.js +2 -0
  18. package/dist/index.js.map +1 -1
  19. package/dist/model-maintenance.d.ts +13 -1
  20. package/dist/model-maintenance.d.ts.map +1 -1
  21. package/dist/model-maintenance.js +34 -16
  22. package/dist/model-maintenance.js.map +1 -1
  23. package/dist/model-package-data.d.ts.map +1 -1
  24. package/dist/model-package-data.js +34884 -2761
  25. package/dist/model-package-data.js.map +1 -1
  26. package/dist/schemas/catalog-delta-output.schema.json +146 -0
  27. package/dist/schemas/catalog-delta-record.schema.json +242 -0
  28. package/dist/schemas/incremental-catalog-review.schema.json +645 -0
  29. package/dist/schemas/model-package-release.schema.json +645 -0
  30. package/dist/scripts/emit-schemas.js +3 -0
  31. package/dist/scripts/emit-schemas.js.map +1 -1
  32. package/package.json +1 -1
@@ -0,0 +1,146 @@
1
+ {
2
+ "type": "object",
3
+ "additionalProperties": false,
4
+ "required": [
5
+ "schemaVersion",
6
+ "planHash",
7
+ "outcome",
8
+ "findings",
9
+ "metadataFindings",
10
+ "closures",
11
+ "issues"
12
+ ],
13
+ "properties": {
14
+ "schemaVersion": {
15
+ "const": 1
16
+ },
17
+ "planHash": {
18
+ "type": "string",
19
+ "pattern": "^[a-f0-9]{64}$"
20
+ },
21
+ "outcome": {
22
+ "enum": [
23
+ "accepted",
24
+ "needs-evidence",
25
+ "rejected"
26
+ ]
27
+ },
28
+ "findings": {
29
+ "type": "array",
30
+ "items": {
31
+ "type": "object",
32
+ "additionalProperties": false,
33
+ "required": [
34
+ "factKey",
35
+ "status",
36
+ "evidenceIds",
37
+ "reason"
38
+ ],
39
+ "properties": {
40
+ "factKey": {
41
+ "type": "string",
42
+ "minLength": 1
43
+ },
44
+ "status": {
45
+ "enum": [
46
+ "supported",
47
+ "insufficient",
48
+ "contradicted"
49
+ ]
50
+ },
51
+ "evidenceIds": {
52
+ "type": "array",
53
+ "items": {
54
+ "type": "string",
55
+ "minLength": 1
56
+ }
57
+ },
58
+ "reason": {
59
+ "type": "string",
60
+ "minLength": 1
61
+ }
62
+ }
63
+ }
64
+ },
65
+ "metadataFindings": {
66
+ "type": "array",
67
+ "items": {
68
+ "type": "object",
69
+ "additionalProperties": false,
70
+ "required": [
71
+ "changeId",
72
+ "status",
73
+ "evidenceIds",
74
+ "reason"
75
+ ],
76
+ "properties": {
77
+ "changeId": {
78
+ "type": "string",
79
+ "pattern": "^[a-f0-9]{64}$"
80
+ },
81
+ "status": {
82
+ "enum": [
83
+ "supported",
84
+ "insufficient",
85
+ "contradicted"
86
+ ]
87
+ },
88
+ "evidenceIds": {
89
+ "type": "array",
90
+ "items": {
91
+ "type": "string",
92
+ "minLength": 1
93
+ }
94
+ },
95
+ "reason": {
96
+ "type": "string",
97
+ "minLength": 1
98
+ }
99
+ }
100
+ }
101
+ },
102
+ "closures": {
103
+ "type": "array",
104
+ "items": {
105
+ "type": "object",
106
+ "additionalProperties": false,
107
+ "required": [
108
+ "gapId",
109
+ "status",
110
+ "evidenceIds",
111
+ "reason"
112
+ ],
113
+ "properties": {
114
+ "gapId": {
115
+ "type": "string",
116
+ "pattern": "^[a-f0-9]{64}$"
117
+ },
118
+ "status": {
119
+ "enum": [
120
+ "closed",
121
+ "open"
122
+ ]
123
+ },
124
+ "evidenceIds": {
125
+ "type": "array",
126
+ "items": {
127
+ "type": "string",
128
+ "minLength": 1
129
+ }
130
+ },
131
+ "reason": {
132
+ "type": "string",
133
+ "minLength": 1
134
+ }
135
+ }
136
+ }
137
+ },
138
+ "issues": {
139
+ "type": "array",
140
+ "items": {
141
+ "type": "string",
142
+ "minLength": 1
143
+ }
144
+ }
145
+ }
146
+ }
@@ -0,0 +1,242 @@
1
+ {
2
+ "type": "object",
3
+ "additionalProperties": false,
4
+ "required": [
5
+ "schemaVersion",
6
+ "kind",
7
+ "recordId",
8
+ "planHash",
9
+ "instructionsHash",
10
+ "reviewer",
11
+ "receipt",
12
+ "modelOutput",
13
+ "reviewedAt"
14
+ ],
15
+ "properties": {
16
+ "schemaVersion": {
17
+ "const": 1
18
+ },
19
+ "kind": {
20
+ "const": "catalog-delta-review"
21
+ },
22
+ "recordId": {
23
+ "type": "string",
24
+ "pattern": "^[a-f0-9]{64}$"
25
+ },
26
+ "planHash": {
27
+ "type": "string",
28
+ "pattern": "^[a-f0-9]{64}$"
29
+ },
30
+ "instructionsHash": {
31
+ "type": "string",
32
+ "pattern": "^[a-f0-9]{64}$"
33
+ },
34
+ "reviewer": {
35
+ "type": "object",
36
+ "additionalProperties": false,
37
+ "required": [
38
+ "provider",
39
+ "providerModelId",
40
+ "profileId",
41
+ "profileRevision",
42
+ "spendingCap"
43
+ ],
44
+ "properties": {
45
+ "provider": {
46
+ "type": "string",
47
+ "minLength": 1
48
+ },
49
+ "providerModelId": {
50
+ "type": "string",
51
+ "minLength": 1
52
+ },
53
+ "profileId": {
54
+ "type": "string",
55
+ "minLength": 1
56
+ },
57
+ "profileRevision": {
58
+ "type": "string",
59
+ "minLength": 1
60
+ },
61
+ "spendingCap": {
62
+ "anyOf": [
63
+ {
64
+ "type": "object",
65
+ "additionalProperties": false,
66
+ "required": [
67
+ "currency",
68
+ "amount"
69
+ ],
70
+ "properties": {
71
+ "currency": {
72
+ "type": "string",
73
+ "minLength": 1
74
+ },
75
+ "amount": {
76
+ "type": "number",
77
+ "minimum": 0
78
+ }
79
+ }
80
+ },
81
+ {
82
+ "type": "null"
83
+ }
84
+ ]
85
+ }
86
+ }
87
+ },
88
+ "receipt": {
89
+ "type": "object"
90
+ },
91
+ "modelOutput": {
92
+ "type": "object",
93
+ "additionalProperties": false,
94
+ "required": [
95
+ "schemaVersion",
96
+ "planHash",
97
+ "outcome",
98
+ "findings",
99
+ "metadataFindings",
100
+ "closures",
101
+ "issues"
102
+ ],
103
+ "properties": {
104
+ "schemaVersion": {
105
+ "const": 1
106
+ },
107
+ "planHash": {
108
+ "type": "string",
109
+ "pattern": "^[a-f0-9]{64}$"
110
+ },
111
+ "outcome": {
112
+ "enum": [
113
+ "accepted",
114
+ "needs-evidence",
115
+ "rejected"
116
+ ]
117
+ },
118
+ "findings": {
119
+ "type": "array",
120
+ "items": {
121
+ "type": "object",
122
+ "additionalProperties": false,
123
+ "required": [
124
+ "factKey",
125
+ "status",
126
+ "evidenceIds",
127
+ "reason"
128
+ ],
129
+ "properties": {
130
+ "factKey": {
131
+ "type": "string",
132
+ "minLength": 1
133
+ },
134
+ "status": {
135
+ "enum": [
136
+ "supported",
137
+ "insufficient",
138
+ "contradicted"
139
+ ]
140
+ },
141
+ "evidenceIds": {
142
+ "type": "array",
143
+ "items": {
144
+ "type": "string",
145
+ "minLength": 1
146
+ }
147
+ },
148
+ "reason": {
149
+ "type": "string",
150
+ "minLength": 1
151
+ }
152
+ }
153
+ }
154
+ },
155
+ "metadataFindings": {
156
+ "type": "array",
157
+ "items": {
158
+ "type": "object",
159
+ "additionalProperties": false,
160
+ "required": [
161
+ "changeId",
162
+ "status",
163
+ "evidenceIds",
164
+ "reason"
165
+ ],
166
+ "properties": {
167
+ "changeId": {
168
+ "type": "string",
169
+ "pattern": "^[a-f0-9]{64}$"
170
+ },
171
+ "status": {
172
+ "enum": [
173
+ "supported",
174
+ "insufficient",
175
+ "contradicted"
176
+ ]
177
+ },
178
+ "evidenceIds": {
179
+ "type": "array",
180
+ "items": {
181
+ "type": "string",
182
+ "minLength": 1
183
+ }
184
+ },
185
+ "reason": {
186
+ "type": "string",
187
+ "minLength": 1
188
+ }
189
+ }
190
+ }
191
+ },
192
+ "closures": {
193
+ "type": "array",
194
+ "items": {
195
+ "type": "object",
196
+ "additionalProperties": false,
197
+ "required": [
198
+ "gapId",
199
+ "status",
200
+ "evidenceIds",
201
+ "reason"
202
+ ],
203
+ "properties": {
204
+ "gapId": {
205
+ "type": "string",
206
+ "pattern": "^[a-f0-9]{64}$"
207
+ },
208
+ "status": {
209
+ "enum": [
210
+ "closed",
211
+ "open"
212
+ ]
213
+ },
214
+ "evidenceIds": {
215
+ "type": "array",
216
+ "items": {
217
+ "type": "string",
218
+ "minLength": 1
219
+ }
220
+ },
221
+ "reason": {
222
+ "type": "string",
223
+ "minLength": 1
224
+ }
225
+ }
226
+ }
227
+ },
228
+ "issues": {
229
+ "type": "array",
230
+ "items": {
231
+ "type": "string",
232
+ "minLength": 1
233
+ }
234
+ }
235
+ }
236
+ },
237
+ "reviewedAt": {
238
+ "type": "string",
239
+ "minLength": 1
240
+ }
241
+ }
242
+ }