@techis/ai-contracts 0.3.0-rc.15 → 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 (60) hide show
  1. package/dist/catalog-composition.d.ts.map +1 -1
  2. package/dist/catalog-composition.js +9 -1
  3. package/dist/catalog-composition.js.map +1 -1
  4. package/dist/catalog-delivery.d.ts.map +1 -1
  5. package/dist/catalog-delivery.js +10 -4
  6. package/dist/catalog-delivery.js.map +1 -1
  7. package/dist/catalog-package-data.d.ts.map +1 -1
  8. package/dist/catalog-package-data.js +6683 -6
  9. package/dist/catalog-package-data.js.map +1 -1
  10. package/dist/catalog-source-completeness.d.ts +27 -0
  11. package/dist/catalog-source-completeness.d.ts.map +1 -0
  12. package/dist/catalog-source-completeness.js +75 -0
  13. package/dist/catalog-source-completeness.js.map +1 -0
  14. package/dist/configuration-bundle.d.ts +4 -1
  15. package/dist/configuration-bundle.d.ts.map +1 -1
  16. package/dist/configuration-bundle.js +11 -4
  17. package/dist/configuration-bundle.js.map +1 -1
  18. package/dist/entities.d.ts +25 -3
  19. package/dist/entities.d.ts.map +1 -1
  20. package/dist/host-qualification.d.ts +22 -5
  21. package/dist/host-qualification.d.ts.map +1 -1
  22. package/dist/host-qualification.js +24 -1
  23. package/dist/host-qualification.js.map +1 -1
  24. package/dist/incremental-catalog-review.d.ts +152 -0
  25. package/dist/incremental-catalog-review.d.ts.map +1 -0
  26. package/dist/incremental-catalog-review.js +283 -0
  27. package/dist/incremental-catalog-review.js.map +1 -0
  28. package/dist/index.d.ts +3 -0
  29. package/dist/index.d.ts.map +1 -1
  30. package/dist/index.js +3 -0
  31. package/dist/index.js.map +1 -1
  32. package/dist/model-maintenance.d.ts +14 -2
  33. package/dist/model-maintenance.d.ts.map +1 -1
  34. package/dist/model-maintenance.js +74 -18
  35. package/dist/model-maintenance.js.map +1 -1
  36. package/dist/model-package-data.d.ts.map +1 -1
  37. package/dist/model-package-data.js +36831 -621
  38. package/dist/model-package-data.js.map +1 -1
  39. package/dist/provider-listings.d.ts +9 -0
  40. package/dist/provider-listings.d.ts.map +1 -0
  41. package/dist/provider-listings.js +48 -0
  42. package/dist/provider-listings.js.map +1 -0
  43. package/dist/schemas/bundle.d.ts +1 -1
  44. package/dist/schemas/bundle.js +1 -1
  45. package/dist/schemas/bundle.js.map +1 -1
  46. package/dist/schemas/catalog-delta-output.schema.json +146 -0
  47. package/dist/schemas/catalog-delta-record.schema.json +242 -0
  48. package/dist/schemas/catalog-release.schema.json +266 -1
  49. package/dist/schemas/configuration-bundle-manifest.schema.json +2 -1
  50. package/dist/schemas/core.d.ts +966 -31
  51. package/dist/schemas/core.d.ts.map +1 -1
  52. package/dist/schemas/core.js +29 -3
  53. package/dist/schemas/core.js.map +1 -1
  54. package/dist/schemas/host-adapter-qualification.schema.json +370 -133
  55. package/dist/schemas/incremental-catalog-review.schema.json +645 -0
  56. package/dist/schemas/model-definition.schema.json +199 -0
  57. package/dist/schemas/model-package-release.schema.json +645 -0
  58. package/dist/scripts/emit-schemas.js +3 -0
  59. package/dist/scripts/emit-schemas.js.map +1 -1
  60. package/package.json +33 -33
@@ -91,7 +91,21 @@
91
91
  "models": {
92
92
  "type": "array",
93
93
  "items": {
94
- "$ref": "https://techis.dev/ai/contracts/model-definition.schema.json"
94
+ "allOf": [
95
+ {
96
+ "$ref": "https://techis.dev/ai/contracts/model-definition.schema.json"
97
+ },
98
+ {
99
+ "properties": {
100
+ "schemaVersion": {
101
+ "enum": [
102
+ 1,
103
+ 2
104
+ ]
105
+ }
106
+ }
107
+ }
108
+ ]
95
109
  }
96
110
  },
97
111
  "prices": {
@@ -105,6 +119,257 @@
105
119
  }
106
120
  },
107
121
  "$id": "https://techis.dev/ai/contracts/v2/catalog-release.schema.json"
122
+ },
123
+ {
124
+ "type": "object",
125
+ "additionalProperties": false,
126
+ "required": [
127
+ "schemaVersion",
128
+ "catalogRevision",
129
+ "publishedAt",
130
+ "models",
131
+ "prices",
132
+ "listings",
133
+ "runtimeMappings"
134
+ ],
135
+ "properties": {
136
+ "schemaVersion": {
137
+ "const": 3
138
+ },
139
+ "catalogRevision": {
140
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/revision"
141
+ },
142
+ "releaseSequence": {
143
+ "type": "integer",
144
+ "minimum": 1
145
+ },
146
+ "publishedAt": {
147
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/isoDateTime"
148
+ },
149
+ "models": {
150
+ "type": "array",
151
+ "items": {
152
+ "$ref": "https://techis.dev/ai/contracts/model-definition.schema.json"
153
+ }
154
+ },
155
+ "prices": {
156
+ "type": "array",
157
+ "items": {
158
+ "$ref": "https://techis.dev/ai/contracts/price-revision.schema.json"
159
+ }
160
+ },
161
+ "notes": {
162
+ "type": "string"
163
+ },
164
+ "listings": {
165
+ "type": "array",
166
+ "items": {
167
+ "type": "object",
168
+ "additionalProperties": false,
169
+ "required": [
170
+ "schemaVersion",
171
+ "catalogId",
172
+ "provider",
173
+ "displayName",
174
+ "source"
175
+ ],
176
+ "properties": {
177
+ "schemaVersion": {
178
+ "const": 1
179
+ },
180
+ "catalogId": {
181
+ "type": "string",
182
+ "minLength": 1
183
+ },
184
+ "provider": {
185
+ "type": "string",
186
+ "minLength": 1
187
+ },
188
+ "displayName": {
189
+ "type": "string",
190
+ "minLength": 1
191
+ },
192
+ "providerModelId": {
193
+ "type": "string",
194
+ "minLength": 1
195
+ },
196
+ "aliases": {
197
+ "type": "array",
198
+ "items": {
199
+ "type": "string",
200
+ "minLength": 1
201
+ }
202
+ },
203
+ "capabilities": {
204
+ "type": "object",
205
+ "additionalProperties": false,
206
+ "required": [],
207
+ "properties": {
208
+ "inputModalities": {
209
+ "type": "array",
210
+ "minItems": 1,
211
+ "items": {
212
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/modality"
213
+ }
214
+ },
215
+ "outputModalities": {
216
+ "type": "array",
217
+ "minItems": 1,
218
+ "items": {
219
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/modality"
220
+ }
221
+ },
222
+ "structuredOutput": {
223
+ "type": "boolean"
224
+ },
225
+ "providerTools": {
226
+ "type": "array",
227
+ "items": {
228
+ "type": "string",
229
+ "minLength": 1
230
+ }
231
+ },
232
+ "contextWindowTokens": {
233
+ "type": "integer",
234
+ "minimum": 1
235
+ },
236
+ "maxInputTokens": {
237
+ "type": "integer",
238
+ "minimum": 1
239
+ },
240
+ "maxOutputTokens": {
241
+ "type": "integer",
242
+ "minimum": 1
243
+ }
244
+ }
245
+ },
246
+ "nativeReasoning": {
247
+ "type": "object",
248
+ "additionalProperties": false,
249
+ "required": [],
250
+ "properties": {
251
+ "supportedControls": {
252
+ "type": "array",
253
+ "items": {
254
+ "enum": [
255
+ "effort",
256
+ "thinking",
257
+ "token-budget"
258
+ ]
259
+ },
260
+ "uniqueItems": true
261
+ },
262
+ "disableSupported": {
263
+ "type": "boolean"
264
+ },
265
+ "supportedEffortLevels": {
266
+ "type": "array",
267
+ "minItems": 1,
268
+ "items": {
269
+ "type": "string",
270
+ "minLength": 1
271
+ }
272
+ },
273
+ "defaultEffort": {
274
+ "type": "string",
275
+ "minLength": 1
276
+ },
277
+ "defaultThinkingEnabled": {
278
+ "type": "boolean"
279
+ },
280
+ "defaultBudgetTokens": {
281
+ "type": "integer",
282
+ "minimum": 0
283
+ },
284
+ "budgetTokensRange": {
285
+ "type": "object",
286
+ "additionalProperties": false,
287
+ "required": [
288
+ "min",
289
+ "max"
290
+ ],
291
+ "properties": {
292
+ "min": {
293
+ "type": "integer",
294
+ "minimum": 0
295
+ },
296
+ "max": {
297
+ "type": "integer",
298
+ "minimum": 0
299
+ }
300
+ }
301
+ },
302
+ "notes": {
303
+ "type": "string"
304
+ }
305
+ }
306
+ },
307
+ "lifecycle": {
308
+ "type": "object",
309
+ "additionalProperties": false,
310
+ "required": [
311
+ "status"
312
+ ],
313
+ "properties": {
314
+ "status": {
315
+ "enum": [
316
+ "preview",
317
+ "ga",
318
+ "deprecated",
319
+ "retired",
320
+ "unknown"
321
+ ]
322
+ },
323
+ "deprecatedAt": {
324
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/isoDateTime"
325
+ },
326
+ "sunsetAt": {
327
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/isoDateTime"
328
+ },
329
+ "replacementCatalogId": {
330
+ "type": "string",
331
+ "minLength": 1
332
+ }
333
+ }
334
+ },
335
+ "availability": {
336
+ "type": "object",
337
+ "additionalProperties": false,
338
+ "required": [
339
+ "status"
340
+ ],
341
+ "properties": {
342
+ "status": {
343
+ "enum": [
344
+ "available",
345
+ "unavailable",
346
+ "restricted",
347
+ "announced",
348
+ "unknown"
349
+ ]
350
+ }
351
+ }
352
+ },
353
+ "activePriceRevisionId": {
354
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/priceRevisionId"
355
+ },
356
+ "source": {
357
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/source"
358
+ },
359
+ "notes": {
360
+ "type": "string"
361
+ }
362
+ }
363
+ }
364
+ },
365
+ "runtimeMappings": {
366
+ "type": "object",
367
+ "additionalProperties": {
368
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/adapterId"
369
+ }
370
+ }
371
+ },
372
+ "$id": "https://techis.dev/ai/contracts/v3/catalog-release.schema.json"
108
373
  }
109
374
  ]
110
375
  }
@@ -43,7 +43,8 @@
43
43
  "catalog": {
44
44
  "enum": [
45
45
  1,
46
- 2
46
+ 2,
47
+ 3
47
48
  ]
48
49
  },
49
50
  "personaSources": {