@techis/ai-contracts 0.0.0-stage → 0.3.0-rc.15

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 (171) hide show
  1. package/LICENSE +122 -0
  2. package/README.md +28 -3
  3. package/THIRD_PARTY_NOTICES +34 -0
  4. package/dist/availability.d.ts +21 -0
  5. package/dist/availability.d.ts.map +1 -0
  6. package/dist/availability.js +2 -0
  7. package/dist/availability.js.map +1 -0
  8. package/dist/catalog-adoption.d.ts +20 -0
  9. package/dist/catalog-adoption.d.ts.map +1 -0
  10. package/dist/catalog-adoption.js +76 -0
  11. package/dist/catalog-adoption.js.map +1 -0
  12. package/dist/catalog-composition.d.ts +10 -0
  13. package/dist/catalog-composition.d.ts.map +1 -0
  14. package/dist/catalog-composition.js +58 -0
  15. package/dist/catalog-composition.js.map +1 -0
  16. package/dist/catalog-delivery.d.ts +47 -0
  17. package/dist/catalog-delivery.d.ts.map +1 -0
  18. package/dist/catalog-delivery.js +83 -0
  19. package/dist/catalog-delivery.js.map +1 -0
  20. package/dist/catalog-package-data.d.ts +8 -0
  21. package/dist/catalog-package-data.d.ts.map +1 -0
  22. package/dist/catalog-package-data.js +2640 -0
  23. package/dist/catalog-package-data.js.map +1 -0
  24. package/dist/compatibility.d.ts +68 -0
  25. package/dist/compatibility.d.ts.map +1 -0
  26. package/dist/compatibility.js +207 -0
  27. package/dist/compatibility.js.map +1 -0
  28. package/dist/configuration-bundle.d.ts +201 -0
  29. package/dist/configuration-bundle.d.ts.map +1 -0
  30. package/dist/configuration-bundle.js +619 -0
  31. package/dist/configuration-bundle.js.map +1 -0
  32. package/dist/entities.d.ts +619 -0
  33. package/dist/entities.d.ts.map +1 -0
  34. package/dist/entities.js +2 -0
  35. package/dist/entities.js.map +1 -0
  36. package/dist/fixtures.d.ts +25 -0
  37. package/dist/fixtures.d.ts.map +1 -0
  38. package/dist/fixtures.js +546 -0
  39. package/dist/fixtures.js.map +1 -0
  40. package/dist/hash.d.ts +8 -0
  41. package/dist/hash.d.ts.map +1 -0
  42. package/dist/hash.js +13 -0
  43. package/dist/hash.js.map +1 -0
  44. package/dist/host-qualification.d.ts +90 -0
  45. package/dist/host-qualification.d.ts.map +1 -0
  46. package/dist/host-qualification.js +65 -0
  47. package/dist/host-qualification.js.map +1 -0
  48. package/dist/icc-catalog.d.ts +31 -0
  49. package/dist/icc-catalog.d.ts.map +1 -0
  50. package/dist/icc-catalog.js +321 -0
  51. package/dist/icc-catalog.js.map +1 -0
  52. package/dist/icc-csf-profiles.d.ts +28 -0
  53. package/dist/icc-csf-profiles.d.ts.map +1 -0
  54. package/dist/icc-csf-profiles.js +394 -0
  55. package/dist/icc-csf-profiles.js.map +1 -0
  56. package/dist/index.d.ts +24 -0
  57. package/dist/index.d.ts.map +1 -0
  58. package/dist/index.js +24 -0
  59. package/dist/index.js.map +1 -0
  60. package/dist/model-maintenance.d.ts +216 -0
  61. package/dist/model-maintenance.d.ts.map +1 -0
  62. package/dist/model-maintenance.js +387 -0
  63. package/dist/model-maintenance.js.map +1 -0
  64. package/dist/model-package-data.d.ts +3 -0
  65. package/dist/model-package-data.d.ts.map +1 -0
  66. package/dist/model-package-data.js +867 -0
  67. package/dist/model-package-data.js.map +1 -0
  68. package/dist/persona-inventory.d.ts +143 -0
  69. package/dist/persona-inventory.d.ts.map +1 -0
  70. package/dist/persona-inventory.js +56 -0
  71. package/dist/persona-inventory.js.map +1 -0
  72. package/dist/profile-identity.d.ts +27 -0
  73. package/dist/profile-identity.d.ts.map +1 -0
  74. package/dist/profile-identity.js +30 -0
  75. package/dist/profile-identity.js.map +1 -0
  76. package/dist/reasoning-validation.d.ts +9 -0
  77. package/dist/reasoning-validation.d.ts.map +1 -0
  78. package/dist/reasoning-validation.js +79 -0
  79. package/dist/reasoning-validation.js.map +1 -0
  80. package/dist/reasoning.d.ts +55 -0
  81. package/dist/reasoning.d.ts.map +1 -0
  82. package/dist/reasoning.js +13 -0
  83. package/dist/reasoning.js.map +1 -0
  84. package/dist/receipt.d.ts +16 -0
  85. package/dist/receipt.d.ts.map +1 -0
  86. package/dist/receipt.js +18 -0
  87. package/dist/receipt.js.map +1 -0
  88. package/dist/schemas/adoption-change-set.schema.json +91 -0
  89. package/dist/schemas/bundle.d.ts +124 -0
  90. package/dist/schemas/bundle.d.ts.map +1 -0
  91. package/dist/schemas/bundle.js +84 -0
  92. package/dist/schemas/bundle.js.map +1 -0
  93. package/dist/schemas/catalog-release.schema.json +110 -0
  94. package/dist/schemas/catalog-review-input.schema.json +179 -0
  95. package/dist/schemas/catalog-review-output.schema.json +259 -0
  96. package/dist/schemas/catalog-review-output.v2.schema.json +251 -0
  97. package/dist/schemas/catalog-review-record.schema.json +391 -0
  98. package/dist/schemas/client-persona-inventory.schema.json +107 -0
  99. package/dist/schemas/common.schema.json +324 -0
  100. package/dist/schemas/config.d.ts +1106 -0
  101. package/dist/schemas/config.d.ts.map +1 -0
  102. package/dist/schemas/config.js +496 -0
  103. package/dist/schemas/config.js.map +1 -0
  104. package/dist/schemas/configuration-bundle-manifest.schema.json +143 -0
  105. package/dist/schemas/configuration-manifest.schema.json +109 -0
  106. package/dist/schemas/connection.schema.json +49 -0
  107. package/dist/schemas/core.d.ts +1333 -0
  108. package/dist/schemas/core.d.ts.map +1 -0
  109. package/dist/schemas/core.js +341 -0
  110. package/dist/schemas/core.js.map +1 -0
  111. package/dist/schemas/desktop-configuration-revision.schema.json +146 -0
  112. package/dist/schemas/execution-profile-revision.schema.json +235 -0
  113. package/dist/schemas/execution-receipt.schema.json +431 -0
  114. package/dist/schemas/host-adapter-qualification.schema.json +161 -0
  115. package/dist/schemas/host-qualification-policy.schema.json +50 -0
  116. package/dist/schemas/index.d.ts +11 -0
  117. package/dist/schemas/index.d.ts.map +1 -0
  118. package/dist/schemas/index.js +34 -0
  119. package/dist/schemas/index.js.map +1 -0
  120. package/dist/schemas/inventory.d.ts +170 -0
  121. package/dist/schemas/inventory.d.ts.map +1 -0
  122. package/dist/schemas/inventory.js +87 -0
  123. package/dist/schemas/inventory.js.map +1 -0
  124. package/dist/schemas/model-definition.schema.json +429 -0
  125. package/dist/schemas/model-package-release.schema.json +594 -0
  126. package/dist/schemas/model-upgrade-advisory.schema.json +191 -0
  127. package/dist/schemas/operation-contract-document.schema.json +153 -0
  128. package/dist/schemas/persona-assignments.schema.json +125 -0
  129. package/dist/schemas/persona-registry-overlay.schema.json +93 -0
  130. package/dist/schemas/persona-source-document.schema.json +86 -0
  131. package/dist/schemas/persona-specification.schema.json +122 -0
  132. package/dist/schemas/price-revision.schema.json +299 -0
  133. package/dist/schemas/profile-assessment.schema.json +288 -0
  134. package/dist/schemas/scoped.d.ts +424 -0
  135. package/dist/schemas/scoped.d.ts.map +1 -0
  136. package/dist/schemas/scoped.js +203 -0
  137. package/dist/schemas/scoped.js.map +1 -0
  138. package/dist/schemas/usage-aggregate-query.schema.json +86 -0
  139. package/dist/schemas/usage-page.schema.json +22 -0
  140. package/dist/schemas/usage-query.schema.json +77 -0
  141. package/dist/schemas/usage-summary.schema.json +468 -0
  142. package/dist/schemas/usage.d.ts +527 -0
  143. package/dist/schemas/usage.d.ts.map +1 -0
  144. package/dist/schemas/usage.js +142 -0
  145. package/dist/schemas/usage.js.map +1 -0
  146. package/dist/scoped-configuration.d.ts +208 -0
  147. package/dist/scoped-configuration.d.ts.map +1 -0
  148. package/dist/scoped-configuration.js +425 -0
  149. package/dist/scoped-configuration.js.map +1 -0
  150. package/dist/scripts/emit-schemas.d.ts +2 -0
  151. package/dist/scripts/emit-schemas.d.ts.map +1 -0
  152. package/dist/scripts/emit-schemas.js +24 -0
  153. package/dist/scripts/emit-schemas.js.map +1 -0
  154. package/dist/scripts/verify-bundle.d.ts +3 -0
  155. package/dist/scripts/verify-bundle.d.ts.map +1 -0
  156. package/dist/scripts/verify-bundle.js +59 -0
  157. package/dist/scripts/verify-bundle.js.map +1 -0
  158. package/dist/validation.d.ts +11 -0
  159. package/dist/validation.d.ts.map +1 -0
  160. package/dist/validation.js +41 -0
  161. package/dist/validation.js.map +1 -0
  162. package/package.json +33 -6
  163. package/third-party-licenses/ajv-formats@3.0.1/LICENSE +21 -0
  164. package/third-party-licenses/ajv@8.20.0/LICENSE +22 -0
  165. package/third-party-licenses/fast-deep-equal@3.1.3/LICENSE +21 -0
  166. package/third-party-licenses/fast-uri@3.1.7/LICENSE +30 -0
  167. package/third-party-licenses/json-schema-traverse@1.0.0/LICENSE +21 -0
  168. package/third-party-licenses/require-from-string@2.0.2/license +21 -0
  169. package/third-party-licenses/typescript@5.9.3/LICENSE.txt +55 -0
  170. package/third-party-licenses/typescript@5.9.3/ThirdPartyNoticeText.txt +193 -0
  171. package/third-party-licenses.json +102 -0
@@ -0,0 +1,391 @@
1
+ {
2
+ "type": "object",
3
+ "additionalProperties": false,
4
+ "required": [
5
+ "schemaVersion",
6
+ "kind",
7
+ "recordId",
8
+ "baseCatalogHash",
9
+ "candidateCatalogHash",
10
+ "evidenceHash",
11
+ "policyHash",
12
+ "instructionsHash",
13
+ "reviewer",
14
+ "outcome",
15
+ "modelOutput",
16
+ "gateErrors",
17
+ "receipt",
18
+ "reviewedAt"
19
+ ],
20
+ "properties": {
21
+ "schemaVersion": {
22
+ "const": 1
23
+ },
24
+ "kind": {
25
+ "const": "catalog-model-review"
26
+ },
27
+ "recordId": {
28
+ "type": "string",
29
+ "pattern": "^[a-f0-9]{64}$"
30
+ },
31
+ "baseCatalogHash": {
32
+ "type": "string",
33
+ "pattern": "^[a-f0-9]{64}$"
34
+ },
35
+ "candidateCatalogHash": {
36
+ "type": "string",
37
+ "pattern": "^[a-f0-9]{64}$"
38
+ },
39
+ "evidenceHash": {
40
+ "type": "string",
41
+ "pattern": "^[a-f0-9]{64}$"
42
+ },
43
+ "policyHash": {
44
+ "type": "string",
45
+ "pattern": "^[a-f0-9]{64}$"
46
+ },
47
+ "instructionsHash": {
48
+ "type": "string",
49
+ "pattern": "^[a-f0-9]{64}$"
50
+ },
51
+ "reviewer": {
52
+ "type": "object",
53
+ "additionalProperties": false,
54
+ "required": [
55
+ "provider",
56
+ "providerModelId",
57
+ "profileId",
58
+ "profileRevision",
59
+ "spendingCap"
60
+ ],
61
+ "properties": {
62
+ "provider": {
63
+ "type": "string",
64
+ "minLength": 1
65
+ },
66
+ "providerModelId": {
67
+ "type": "string",
68
+ "minLength": 1
69
+ },
70
+ "profileId": {
71
+ "type": "string",
72
+ "minLength": 1
73
+ },
74
+ "profileRevision": {
75
+ "type": "string",
76
+ "minLength": 1
77
+ },
78
+ "spendingCap": {
79
+ "anyOf": [
80
+ {
81
+ "type": "object",
82
+ "additionalProperties": false,
83
+ "required": [
84
+ "currency",
85
+ "amount"
86
+ ],
87
+ "properties": {
88
+ "currency": {
89
+ "type": "string",
90
+ "minLength": 1
91
+ },
92
+ "amount": {
93
+ "type": "number",
94
+ "minimum": 0
95
+ }
96
+ }
97
+ },
98
+ {
99
+ "type": "null"
100
+ }
101
+ ]
102
+ }
103
+ }
104
+ },
105
+ "outcome": {
106
+ "enum": [
107
+ "accepted",
108
+ "needs-evidence",
109
+ "rejected"
110
+ ]
111
+ },
112
+ "modelOutput": {
113
+ "anyOf": [
114
+ {
115
+ "type": "object",
116
+ "additionalProperties": false,
117
+ "required": [
118
+ "outcome",
119
+ "findings",
120
+ "advisories",
121
+ "issues"
122
+ ],
123
+ "properties": {
124
+ "outcome": {
125
+ "type": "string",
126
+ "enum": [
127
+ "accepted",
128
+ "needs-evidence",
129
+ "rejected"
130
+ ]
131
+ },
132
+ "findings": {
133
+ "type": "array",
134
+ "items": {
135
+ "type": "object",
136
+ "additionalProperties": false,
137
+ "required": [
138
+ "factKey",
139
+ "status",
140
+ "evidenceIds",
141
+ "reason"
142
+ ],
143
+ "properties": {
144
+ "factKey": {
145
+ "type": "string",
146
+ "minLength": 1
147
+ },
148
+ "status": {
149
+ "type": "string",
150
+ "enum": [
151
+ "supported",
152
+ "insufficient",
153
+ "contradicted"
154
+ ]
155
+ },
156
+ "evidenceIds": {
157
+ "type": "array",
158
+ "items": {
159
+ "type": "string",
160
+ "minLength": 1
161
+ }
162
+ },
163
+ "reason": {
164
+ "type": "string",
165
+ "minLength": 1
166
+ }
167
+ }
168
+ }
169
+ },
170
+ "advisories": {
171
+ "type": "array",
172
+ "items": {
173
+ "type": "object",
174
+ "additionalProperties": false,
175
+ "required": [
176
+ "fromModel",
177
+ "toModel",
178
+ "relationship",
179
+ "migrationClass",
180
+ "better",
181
+ "cheaper",
182
+ "highlights",
183
+ "caveats",
184
+ "migrationSteps",
185
+ "evidenceIds"
186
+ ],
187
+ "properties": {
188
+ "fromModel": {
189
+ "type": "string",
190
+ "minLength": 1
191
+ },
192
+ "toModel": {
193
+ "type": "string",
194
+ "minLength": 1
195
+ },
196
+ "relationship": {
197
+ "type": "string",
198
+ "enum": [
199
+ "successor",
200
+ "alternative",
201
+ "unknown"
202
+ ]
203
+ },
204
+ "migrationClass": {
205
+ "type": "string",
206
+ "enum": [
207
+ "compatible-upgrade",
208
+ "adaptation-required",
209
+ "incompatible",
210
+ "unverified"
211
+ ]
212
+ },
213
+ "better": {
214
+ "type": "object",
215
+ "additionalProperties": false,
216
+ "required": [
217
+ "verdict",
218
+ "scope",
219
+ "basis",
220
+ "reason",
221
+ "evidenceIds"
222
+ ],
223
+ "properties": {
224
+ "verdict": {
225
+ "type": "string",
226
+ "enum": [
227
+ "yes",
228
+ "no",
229
+ "mixed",
230
+ "unknown"
231
+ ]
232
+ },
233
+ "scope": {
234
+ "type": "string",
235
+ "enum": [
236
+ "model-quality",
237
+ "comparable-tasks",
238
+ "cost-per-successful-task"
239
+ ]
240
+ },
241
+ "basis": {
242
+ "type": "string",
243
+ "enum": [
244
+ "provider-reported",
245
+ "independently-measured",
246
+ "insufficient-evidence"
247
+ ]
248
+ },
249
+ "reason": {
250
+ "type": "string",
251
+ "minLength": 1
252
+ },
253
+ "evidenceIds": {
254
+ "type": "array",
255
+ "items": {
256
+ "type": "string",
257
+ "minLength": 1
258
+ }
259
+ }
260
+ }
261
+ },
262
+ "cheaper": {
263
+ "type": "object",
264
+ "additionalProperties": false,
265
+ "required": [
266
+ "verdict",
267
+ "scope",
268
+ "basis",
269
+ "reason",
270
+ "evidenceIds"
271
+ ],
272
+ "properties": {
273
+ "verdict": {
274
+ "type": "string",
275
+ "enum": [
276
+ "yes",
277
+ "no",
278
+ "mixed",
279
+ "unknown"
280
+ ]
281
+ },
282
+ "scope": {
283
+ "type": "string",
284
+ "enum": [
285
+ "model-quality",
286
+ "comparable-tasks",
287
+ "cost-per-successful-task"
288
+ ]
289
+ },
290
+ "basis": {
291
+ "type": "string",
292
+ "enum": [
293
+ "provider-reported",
294
+ "independently-measured",
295
+ "insufficient-evidence"
296
+ ]
297
+ },
298
+ "reason": {
299
+ "type": "string",
300
+ "minLength": 1
301
+ },
302
+ "evidenceIds": {
303
+ "type": "array",
304
+ "items": {
305
+ "type": "string",
306
+ "minLength": 1
307
+ }
308
+ }
309
+ }
310
+ },
311
+ "highlights": {
312
+ "type": "array",
313
+ "items": {
314
+ "type": "object",
315
+ "additionalProperties": false,
316
+ "required": [
317
+ "text",
318
+ "claimKey",
319
+ "evidenceIds"
320
+ ],
321
+ "properties": {
322
+ "text": {
323
+ "type": "string",
324
+ "minLength": 1
325
+ },
326
+ "claimKey": {
327
+ "type": "string",
328
+ "minLength": 1
329
+ },
330
+ "evidenceIds": {
331
+ "type": "array",
332
+ "items": {
333
+ "type": "string",
334
+ "minLength": 1
335
+ }
336
+ }
337
+ }
338
+ }
339
+ },
340
+ "caveats": {
341
+ "type": "array",
342
+ "items": {
343
+ "type": "string",
344
+ "minLength": 1
345
+ }
346
+ },
347
+ "migrationSteps": {
348
+ "type": "array",
349
+ "items": {
350
+ "type": "string",
351
+ "minLength": 1
352
+ }
353
+ },
354
+ "evidenceIds": {
355
+ "type": "array",
356
+ "items": {
357
+ "type": "string",
358
+ "minLength": 1
359
+ }
360
+ }
361
+ }
362
+ }
363
+ },
364
+ "issues": {
365
+ "type": "array",
366
+ "items": {
367
+ "type": "string",
368
+ "minLength": 1
369
+ }
370
+ }
371
+ }
372
+ },
373
+ {
374
+ "type": "null"
375
+ }
376
+ ]
377
+ },
378
+ "gateErrors": {
379
+ "type": "array",
380
+ "items": {
381
+ "type": "string",
382
+ "minLength": 1
383
+ }
384
+ },
385
+ "receipt": {},
386
+ "reviewedAt": {
387
+ "type": "string",
388
+ "minLength": 1
389
+ }
390
+ }
391
+ }
@@ -0,0 +1,107 @@
1
+ {
2
+ "$id": "https://techis.dev/ai/contracts/client-persona-inventory.schema.json",
3
+ "type": "object",
4
+ "additionalProperties": false,
5
+ "required": [
6
+ "schemaVersion",
7
+ "kind",
8
+ "applicationId",
9
+ "published",
10
+ "personas"
11
+ ],
12
+ "properties": {
13
+ "schemaVersion": {
14
+ "const": 1
15
+ },
16
+ "kind": {
17
+ "const": "client-persona-inventory"
18
+ },
19
+ "applicationId": {
20
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/applicationId"
21
+ },
22
+ "published": {
23
+ "type": "object",
24
+ "additionalProperties": false,
25
+ "required": [
26
+ "by",
27
+ "at"
28
+ ],
29
+ "properties": {
30
+ "by": {
31
+ "type": "string",
32
+ "minLength": 1,
33
+ "maxLength": 200
34
+ },
35
+ "at": {
36
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/isoDateTime"
37
+ }
38
+ }
39
+ },
40
+ "personas": {
41
+ "type": "array",
42
+ "maxItems": 2000,
43
+ "items": {
44
+ "type": "object",
45
+ "additionalProperties": false,
46
+ "required": [
47
+ "personaId"
48
+ ],
49
+ "properties": {
50
+ "personaId": {
51
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/personaId"
52
+ },
53
+ "name": {
54
+ "type": "string",
55
+ "minLength": 1,
56
+ "maxLength": 200
57
+ },
58
+ "summary": {
59
+ "type": "string",
60
+ "maxLength": 1000
61
+ },
62
+ "domains": {
63
+ "type": "array",
64
+ "maxItems": 50,
65
+ "items": {
66
+ "type": "string",
67
+ "minLength": 1,
68
+ "maxLength": 100
69
+ }
70
+ },
71
+ "instructionHash": {
72
+ "type": "string",
73
+ "pattern": "^[a-f0-9]{64}$"
74
+ },
75
+ "sourceVersion": {
76
+ "type": "string",
77
+ "minLength": 1,
78
+ "maxLength": 200
79
+ },
80
+ "inheritsPersonaId": {
81
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/personaId"
82
+ },
83
+ "locallyBoundProfiles": {
84
+ "type": "array",
85
+ "maxItems": 100,
86
+ "items": {
87
+ "type": "object",
88
+ "additionalProperties": false,
89
+ "required": [
90
+ "profileId",
91
+ "revision"
92
+ ],
93
+ "properties": {
94
+ "profileId": {
95
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/profileId"
96
+ },
97
+ "revision": {
98
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/revision"
99
+ }
100
+ }
101
+ }
102
+ }
103
+ }
104
+ }
105
+ }
106
+ }
107
+ }