@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,429 @@
1
+ {
2
+ "$id": "https://techis.dev/ai/contracts/model-definition.schema.json",
3
+ "anyOf": [
4
+ {
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "schemaVersion",
9
+ "catalogId",
10
+ "providerModelId",
11
+ "provider",
12
+ "adapterId",
13
+ "displayName",
14
+ "capabilities",
15
+ "nativeReasoning",
16
+ "lifecycle",
17
+ "source"
18
+ ],
19
+ "properties": {
20
+ "schemaVersion": {
21
+ "const": 1
22
+ },
23
+ "catalogId": {
24
+ "type": "string",
25
+ "minLength": 1
26
+ },
27
+ "providerModelId": {
28
+ "type": "string",
29
+ "minLength": 1
30
+ },
31
+ "provider": {
32
+ "type": "string",
33
+ "minLength": 1
34
+ },
35
+ "adapterId": {
36
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/adapterId"
37
+ },
38
+ "displayName": {
39
+ "type": "string",
40
+ "minLength": 1
41
+ },
42
+ "aliases": {
43
+ "type": "array",
44
+ "items": {
45
+ "type": "string",
46
+ "minLength": 1
47
+ }
48
+ },
49
+ "capabilities": {
50
+ "type": "object",
51
+ "additionalProperties": false,
52
+ "required": [
53
+ "inputModalities",
54
+ "outputModalities",
55
+ "structuredOutput",
56
+ "providerTools",
57
+ "contextWindowTokens",
58
+ "maxInputTokens",
59
+ "maxOutputTokens"
60
+ ],
61
+ "properties": {
62
+ "inputModalities": {
63
+ "type": "array",
64
+ "minItems": 1,
65
+ "items": {
66
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/modality"
67
+ }
68
+ },
69
+ "outputModalities": {
70
+ "type": "array",
71
+ "minItems": 1,
72
+ "items": {
73
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/modality"
74
+ }
75
+ },
76
+ "structuredOutput": {
77
+ "type": "boolean"
78
+ },
79
+ "providerTools": {
80
+ "type": "array",
81
+ "items": {
82
+ "type": "string",
83
+ "minLength": 1
84
+ }
85
+ },
86
+ "contextWindowTokens": {
87
+ "type": "integer",
88
+ "minimum": 1
89
+ },
90
+ "maxInputTokens": {
91
+ "type": "integer",
92
+ "minimum": 1
93
+ },
94
+ "maxOutputTokens": {
95
+ "type": "integer",
96
+ "minimum": 1
97
+ }
98
+ }
99
+ },
100
+ "nativeReasoning": {
101
+ "type": "object",
102
+ "additionalProperties": false,
103
+ "required": [
104
+ "supportedControls",
105
+ "disableSupported"
106
+ ],
107
+ "properties": {
108
+ "supportedControls": {
109
+ "type": "array",
110
+ "items": {
111
+ "enum": [
112
+ "effort",
113
+ "thinking",
114
+ "token-budget"
115
+ ]
116
+ },
117
+ "uniqueItems": true
118
+ },
119
+ "disableSupported": {
120
+ "type": "boolean"
121
+ },
122
+ "supportedEffortLevels": {
123
+ "type": "array",
124
+ "minItems": 1,
125
+ "items": {
126
+ "type": "string",
127
+ "minLength": 1
128
+ }
129
+ },
130
+ "defaultEffort": {
131
+ "type": "string",
132
+ "minLength": 1
133
+ },
134
+ "defaultThinkingEnabled": {
135
+ "type": "boolean"
136
+ },
137
+ "defaultBudgetTokens": {
138
+ "type": "integer",
139
+ "minimum": 0
140
+ },
141
+ "budgetTokensRange": {
142
+ "type": "object",
143
+ "additionalProperties": false,
144
+ "required": [
145
+ "min",
146
+ "max"
147
+ ],
148
+ "properties": {
149
+ "min": {
150
+ "type": "integer",
151
+ "minimum": 0
152
+ },
153
+ "max": {
154
+ "type": "integer",
155
+ "minimum": 0
156
+ }
157
+ }
158
+ },
159
+ "notes": {
160
+ "type": "string"
161
+ }
162
+ }
163
+ },
164
+ "lifecycle": {
165
+ "type": "object",
166
+ "additionalProperties": false,
167
+ "required": [
168
+ "status"
169
+ ],
170
+ "properties": {
171
+ "status": {
172
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/modelLifecycleStatus"
173
+ },
174
+ "deprecatedAt": {
175
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/isoDateTime"
176
+ },
177
+ "sunsetAt": {
178
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/isoDateTime"
179
+ },
180
+ "replacementCatalogId": {
181
+ "type": "string",
182
+ "minLength": 1
183
+ }
184
+ }
185
+ },
186
+ "activePriceRevisionId": {
187
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/priceRevisionId"
188
+ },
189
+ "source": {
190
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/source"
191
+ },
192
+ "notes": {
193
+ "type": "string"
194
+ }
195
+ }
196
+ },
197
+ {
198
+ "type": "object",
199
+ "additionalProperties": false,
200
+ "required": [
201
+ "schemaVersion",
202
+ "catalogId",
203
+ "providerModelId",
204
+ "provider",
205
+ "adapterId",
206
+ "displayName",
207
+ "capabilities",
208
+ "nativeReasoning",
209
+ "lifecycle",
210
+ "source",
211
+ "availability"
212
+ ],
213
+ "properties": {
214
+ "schemaVersion": {
215
+ "const": 2
216
+ },
217
+ "catalogId": {
218
+ "type": "string",
219
+ "minLength": 1
220
+ },
221
+ "providerModelId": {
222
+ "type": "string",
223
+ "minLength": 1
224
+ },
225
+ "provider": {
226
+ "type": "string",
227
+ "minLength": 1
228
+ },
229
+ "adapterId": {
230
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/adapterId"
231
+ },
232
+ "displayName": {
233
+ "type": "string",
234
+ "minLength": 1
235
+ },
236
+ "aliases": {
237
+ "type": "array",
238
+ "items": {
239
+ "type": "string",
240
+ "minLength": 1
241
+ }
242
+ },
243
+ "capabilities": {
244
+ "type": "object",
245
+ "additionalProperties": false,
246
+ "required": [
247
+ "inputModalities",
248
+ "outputModalities",
249
+ "structuredOutput",
250
+ "providerTools",
251
+ "contextWindowTokens",
252
+ "maxInputTokens",
253
+ "maxOutputTokens"
254
+ ],
255
+ "properties": {
256
+ "inputModalities": {
257
+ "type": "array",
258
+ "minItems": 1,
259
+ "items": {
260
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/modality"
261
+ }
262
+ },
263
+ "outputModalities": {
264
+ "type": "array",
265
+ "minItems": 1,
266
+ "items": {
267
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/modality"
268
+ }
269
+ },
270
+ "structuredOutput": {
271
+ "type": "boolean"
272
+ },
273
+ "providerTools": {
274
+ "type": "array",
275
+ "items": {
276
+ "type": "string",
277
+ "minLength": 1
278
+ }
279
+ },
280
+ "contextWindowTokens": {
281
+ "type": "integer",
282
+ "minimum": 1
283
+ },
284
+ "maxInputTokens": {
285
+ "type": "integer",
286
+ "minimum": 1
287
+ },
288
+ "maxOutputTokens": {
289
+ "type": "integer",
290
+ "minimum": 1
291
+ }
292
+ }
293
+ },
294
+ "nativeReasoning": {
295
+ "type": "object",
296
+ "additionalProperties": false,
297
+ "required": [
298
+ "supportedControls",
299
+ "disableSupported"
300
+ ],
301
+ "properties": {
302
+ "supportedControls": {
303
+ "type": "array",
304
+ "items": {
305
+ "enum": [
306
+ "effort",
307
+ "thinking",
308
+ "token-budget"
309
+ ]
310
+ },
311
+ "uniqueItems": true
312
+ },
313
+ "disableSupported": {
314
+ "type": "boolean"
315
+ },
316
+ "supportedEffortLevels": {
317
+ "type": "array",
318
+ "minItems": 1,
319
+ "items": {
320
+ "type": "string",
321
+ "minLength": 1
322
+ }
323
+ },
324
+ "defaultEffort": {
325
+ "type": "string",
326
+ "minLength": 1
327
+ },
328
+ "defaultThinkingEnabled": {
329
+ "type": "boolean"
330
+ },
331
+ "defaultBudgetTokens": {
332
+ "type": "integer",
333
+ "minimum": 0
334
+ },
335
+ "budgetTokensRange": {
336
+ "type": "object",
337
+ "additionalProperties": false,
338
+ "required": [
339
+ "min",
340
+ "max"
341
+ ],
342
+ "properties": {
343
+ "min": {
344
+ "type": "integer",
345
+ "minimum": 0
346
+ },
347
+ "max": {
348
+ "type": "integer",
349
+ "minimum": 0
350
+ }
351
+ }
352
+ },
353
+ "notes": {
354
+ "type": "string"
355
+ }
356
+ }
357
+ },
358
+ "lifecycle": {
359
+ "type": "object",
360
+ "additionalProperties": false,
361
+ "required": [
362
+ "status"
363
+ ],
364
+ "properties": {
365
+ "status": {
366
+ "enum": [
367
+ "preview",
368
+ "ga",
369
+ "deprecated",
370
+ "retired",
371
+ "unknown"
372
+ ]
373
+ },
374
+ "deprecatedAt": {
375
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/isoDateTime"
376
+ },
377
+ "sunsetAt": {
378
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/isoDateTime"
379
+ },
380
+ "replacementCatalogId": {
381
+ "type": "string",
382
+ "minLength": 1
383
+ }
384
+ }
385
+ },
386
+ "activePriceRevisionId": {
387
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/priceRevisionId"
388
+ },
389
+ "source": {
390
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/source"
391
+ },
392
+ "notes": {
393
+ "type": "string"
394
+ },
395
+ "availability": {
396
+ "type": "object",
397
+ "additionalProperties": false,
398
+ "required": [
399
+ "status",
400
+ "source"
401
+ ],
402
+ "properties": {
403
+ "status": {
404
+ "const": "available"
405
+ },
406
+ "source": {
407
+ "type": "object",
408
+ "additionalProperties": false,
409
+ "required": [
410
+ "uri",
411
+ "verifiedAt"
412
+ ],
413
+ "properties": {
414
+ "uri": {
415
+ "type": "string",
416
+ "minLength": 1
417
+ },
418
+ "verifiedAt": {
419
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/isoDateTime"
420
+ }
421
+ }
422
+ }
423
+ }
424
+ }
425
+ },
426
+ "$id": "https://techis.dev/ai/contracts/v2/model-definition.schema.json"
427
+ }
428
+ ]
429
+ }