@techis/ai-contracts 0.4.0-rc.4 → 0.4.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 (63) hide show
  1. package/README.md +27 -18
  2. package/dist/catalog-change.d.ts +75 -0
  3. package/dist/catalog-change.d.ts.map +1 -0
  4. package/dist/catalog-change.js +110 -0
  5. package/dist/catalog-change.js.map +1 -0
  6. package/dist/catalog-composition.js +1 -1
  7. package/dist/catalog-composition.js.map +1 -1
  8. package/dist/catalog-delivery.d.ts +5 -0
  9. package/dist/catalog-delivery.d.ts.map +1 -1
  10. package/dist/catalog-delivery.js +9 -1
  11. package/dist/catalog-delivery.js.map +1 -1
  12. package/dist/catalog-facts.d.ts +25 -0
  13. package/dist/catalog-facts.d.ts.map +1 -0
  14. package/dist/catalog-facts.js +107 -0
  15. package/dist/catalog-facts.js.map +1 -0
  16. package/dist/catalog-model-coverage.d.ts +28 -0
  17. package/dist/catalog-model-coverage.d.ts.map +1 -0
  18. package/dist/catalog-model-coverage.js +64 -0
  19. package/dist/catalog-model-coverage.js.map +1 -0
  20. package/dist/catalog-package-data.d.ts +6 -0
  21. package/dist/catalog-package-data.d.ts.map +1 -1
  22. package/dist/catalog-package-data.js +1 -0
  23. package/dist/catalog-package-data.js.map +1 -1
  24. package/dist/catalog-publication.d.ts +13 -5
  25. package/dist/catalog-publication.d.ts.map +1 -1
  26. package/dist/catalog-publication.js +24 -6
  27. package/dist/catalog-publication.js.map +1 -1
  28. package/dist/configuration-bundle.d.ts +1 -0
  29. package/dist/configuration-bundle.d.ts.map +1 -1
  30. package/dist/configuration-bundle.js +11 -0
  31. package/dist/configuration-bundle.js.map +1 -1
  32. package/dist/entities.d.ts +16 -8
  33. package/dist/entities.d.ts.map +1 -1
  34. package/dist/index.d.ts +5 -0
  35. package/dist/index.d.ts.map +1 -1
  36. package/dist/index.js +5 -0
  37. package/dist/index.js.map +1 -1
  38. package/dist/model-maintenance.d.ts +26 -0
  39. package/dist/model-maintenance.d.ts.map +1 -1
  40. package/dist/model-maintenance.js +124 -18
  41. package/dist/model-maintenance.js.map +1 -1
  42. package/dist/provider-listings.d.ts +13 -3
  43. package/dist/provider-listings.d.ts.map +1 -1
  44. package/dist/provider-listings.js +75 -9
  45. package/dist/provider-listings.js.map +1 -1
  46. package/dist/route-set-export.d.ts.map +1 -1
  47. package/dist/route-set-export.js +9 -2
  48. package/dist/route-set-export.js.map +1 -1
  49. package/dist/schemas/catalog-delta-output.schema.json +146 -0
  50. package/dist/schemas/catalog-delta-record.schema.json +242 -0
  51. package/dist/schemas/catalog-release.schema.json +449 -160
  52. package/dist/schemas/core.d.ts +1155 -348
  53. package/dist/schemas/core.d.ts.map +1 -1
  54. package/dist/schemas/core.js +24 -4
  55. package/dist/schemas/core.js.map +1 -1
  56. package/dist/schemas/incremental-catalog-review.schema.json +645 -0
  57. package/dist/schemas/model-definition.schema.json +207 -0
  58. package/dist/schemas/model-package-release.schema.json +487 -0
  59. package/dist/schemas/price-revision.schema.json +151 -0
  60. package/dist/schemas/routes.d.ts +2 -2
  61. package/dist/scripts/emit-schemas.js +3 -0
  62. package/dist/scripts/emit-schemas.js.map +1 -1
  63. package/package.json +2 -2
@@ -164,225 +164,514 @@
164
164
  "listings": {
165
165
  "type": "array",
166
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
- "creator": {
167
+ "anyOf": [
168
+ {
193
169
  "type": "object",
194
170
  "additionalProperties": false,
195
171
  "required": [
196
- "displayName"
172
+ "schemaVersion",
173
+ "catalogId",
174
+ "provider",
175
+ "displayName",
176
+ "source"
197
177
  ],
198
178
  "properties": {
199
- "displayName": {
179
+ "schemaVersion": {
180
+ "const": 1
181
+ },
182
+ "catalogId": {
200
183
  "type": "string",
201
184
  "minLength": 1
202
185
  },
203
- "providerId": {
186
+ "provider": {
204
187
  "type": "string",
205
188
  "minLength": 1
206
- }
207
- }
208
- },
209
- "providerModelId": {
210
- "type": "string",
211
- "minLength": 1
212
- },
213
- "aliases": {
214
- "type": "array",
215
- "items": {
216
- "type": "string",
217
- "minLength": 1
218
- }
219
- },
220
- "capabilities": {
221
- "type": "object",
222
- "additionalProperties": false,
223
- "required": [],
224
- "properties": {
225
- "inputModalities": {
226
- "type": "array",
227
- "minItems": 1,
228
- "items": {
229
- "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/modality"
230
- }
231
189
  },
232
- "outputModalities": {
233
- "type": "array",
234
- "minItems": 1,
235
- "items": {
236
- "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/modality"
190
+ "displayName": {
191
+ "type": "string",
192
+ "minLength": 1
193
+ },
194
+ "creator": {
195
+ "type": "object",
196
+ "additionalProperties": false,
197
+ "required": [
198
+ "displayName"
199
+ ],
200
+ "properties": {
201
+ "displayName": {
202
+ "type": "string",
203
+ "minLength": 1
204
+ },
205
+ "providerId": {
206
+ "type": "string",
207
+ "minLength": 1
208
+ }
237
209
  }
238
210
  },
239
- "structuredOutput": {
240
- "type": "boolean"
211
+ "providerModelId": {
212
+ "type": "string",
213
+ "minLength": 1
241
214
  },
242
- "providerTools": {
215
+ "aliases": {
243
216
  "type": "array",
244
217
  "items": {
245
218
  "type": "string",
246
219
  "minLength": 1
247
220
  }
248
221
  },
249
- "contextWindowTokens": {
250
- "type": "integer",
251
- "minimum": 1
222
+ "endpointSupport": {
223
+ "type": "object",
224
+ "additionalProperties": false,
225
+ "properties": {
226
+ "responses": {
227
+ "type": "boolean"
228
+ },
229
+ "messages": {
230
+ "type": "boolean"
231
+ },
232
+ "generateContent": {
233
+ "type": "boolean"
234
+ },
235
+ "interactionsV1": {
236
+ "type": "boolean"
237
+ },
238
+ "chatCompletions": {
239
+ "type": "boolean"
240
+ }
241
+ }
242
+ },
243
+ "capabilities": {
244
+ "type": "object",
245
+ "additionalProperties": false,
246
+ "required": [],
247
+ "properties": {
248
+ "inputModalities": {
249
+ "type": "array",
250
+ "minItems": 1,
251
+ "items": {
252
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/modality"
253
+ }
254
+ },
255
+ "outputModalities": {
256
+ "type": "array",
257
+ "minItems": 1,
258
+ "items": {
259
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/modality"
260
+ }
261
+ },
262
+ "structuredOutput": {
263
+ "type": "boolean"
264
+ },
265
+ "providerTools": {
266
+ "type": "array",
267
+ "items": {
268
+ "type": "string",
269
+ "minLength": 1
270
+ }
271
+ },
272
+ "contextWindowTokens": {
273
+ "type": "integer",
274
+ "minimum": 1
275
+ },
276
+ "maxInputTokens": {
277
+ "type": "integer",
278
+ "minimum": 1
279
+ },
280
+ "maxOutputTokens": {
281
+ "type": "integer",
282
+ "minimum": 1
283
+ }
284
+ }
285
+ },
286
+ "nativeReasoning": {
287
+ "type": "object",
288
+ "additionalProperties": false,
289
+ "required": [],
290
+ "properties": {
291
+ "supportedControls": {
292
+ "type": "array",
293
+ "items": {
294
+ "enum": [
295
+ "effort",
296
+ "thinking",
297
+ "token-budget"
298
+ ]
299
+ },
300
+ "uniqueItems": true
301
+ },
302
+ "disableSupported": {
303
+ "type": "boolean"
304
+ },
305
+ "supportedEffortLevels": {
306
+ "type": "array",
307
+ "minItems": 1,
308
+ "items": {
309
+ "type": "string",
310
+ "minLength": 1
311
+ }
312
+ },
313
+ "defaultEffort": {
314
+ "type": "string",
315
+ "minLength": 1
316
+ },
317
+ "defaultThinkingEnabled": {
318
+ "type": "boolean"
319
+ },
320
+ "defaultBudgetTokens": {
321
+ "type": "integer",
322
+ "minimum": 0
323
+ },
324
+ "budgetTokensRange": {
325
+ "type": "object",
326
+ "additionalProperties": false,
327
+ "required": [
328
+ "min",
329
+ "max"
330
+ ],
331
+ "properties": {
332
+ "min": {
333
+ "type": "integer",
334
+ "minimum": 0
335
+ },
336
+ "max": {
337
+ "type": "integer",
338
+ "minimum": 0
339
+ }
340
+ }
341
+ },
342
+ "notes": {
343
+ "type": "string"
344
+ }
345
+ }
252
346
  },
253
- "maxInputTokens": {
254
- "type": "integer",
255
- "minimum": 1
347
+ "lifecycle": {
348
+ "type": "object",
349
+ "additionalProperties": false,
350
+ "required": [
351
+ "status"
352
+ ],
353
+ "properties": {
354
+ "status": {
355
+ "enum": [
356
+ "preview",
357
+ "ga",
358
+ "deprecated",
359
+ "retired",
360
+ "unknown"
361
+ ]
362
+ },
363
+ "deprecatedAt": {
364
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/isoDateTime"
365
+ },
366
+ "sunsetAt": {
367
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/isoDateTime"
368
+ },
369
+ "replacementCatalogId": {
370
+ "type": "string",
371
+ "minLength": 1
372
+ }
373
+ }
374
+ },
375
+ "availability": {
376
+ "type": "object",
377
+ "additionalProperties": false,
378
+ "required": [
379
+ "status"
380
+ ],
381
+ "properties": {
382
+ "status": {
383
+ "enum": [
384
+ "available",
385
+ "unavailable",
386
+ "restricted",
387
+ "announced",
388
+ "unknown"
389
+ ]
390
+ }
391
+ }
392
+ },
393
+ "activePriceRevisionId": {
394
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/priceRevisionId"
395
+ },
396
+ "source": {
397
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/source"
256
398
  },
257
- "maxOutputTokens": {
258
- "type": "integer",
259
- "minimum": 1
399
+ "notes": {
400
+ "type": "string"
260
401
  }
261
402
  }
262
403
  },
263
- "nativeReasoning": {
404
+ {
264
405
  "type": "object",
265
406
  "additionalProperties": false,
266
- "required": [],
407
+ "required": [
408
+ "schemaVersion",
409
+ "catalogId",
410
+ "provider",
411
+ "displayName",
412
+ "verifiedAt"
413
+ ],
267
414
  "properties": {
268
- "supportedControls": {
269
- "type": "array",
270
- "items": {
271
- "enum": [
272
- "effort",
273
- "thinking",
274
- "token-budget"
275
- ]
276
- },
277
- "uniqueItems": true
415
+ "schemaVersion": {
416
+ "const": 2
417
+ },
418
+ "catalogId": {
419
+ "type": "string",
420
+ "minLength": 1
278
421
  },
279
- "disableSupported": {
280
- "type": "boolean"
422
+ "provider": {
423
+ "type": "string",
424
+ "minLength": 1
281
425
  },
282
- "supportedEffortLevels": {
426
+ "displayName": {
427
+ "type": "string",
428
+ "minLength": 1
429
+ },
430
+ "creator": {
431
+ "type": "object",
432
+ "additionalProperties": false,
433
+ "required": [
434
+ "displayName"
435
+ ],
436
+ "properties": {
437
+ "displayName": {
438
+ "type": "string",
439
+ "minLength": 1
440
+ },
441
+ "providerId": {
442
+ "type": "string",
443
+ "minLength": 1
444
+ }
445
+ }
446
+ },
447
+ "providerModelId": {
448
+ "type": "string",
449
+ "minLength": 1
450
+ },
451
+ "aliases": {
283
452
  "type": "array",
284
- "minItems": 1,
285
453
  "items": {
286
454
  "type": "string",
287
455
  "minLength": 1
288
456
  }
289
457
  },
290
- "defaultEffort": {
291
- "type": "string",
292
- "minLength": 1
458
+ "endpointSupport": {
459
+ "type": "object",
460
+ "additionalProperties": false,
461
+ "properties": {
462
+ "responses": {
463
+ "type": "boolean"
464
+ },
465
+ "messages": {
466
+ "type": "boolean"
467
+ },
468
+ "generateContent": {
469
+ "type": "boolean"
470
+ },
471
+ "interactionsV1": {
472
+ "type": "boolean"
473
+ },
474
+ "chatCompletions": {
475
+ "type": "boolean"
476
+ }
477
+ }
293
478
  },
294
- "defaultThinkingEnabled": {
295
- "type": "boolean"
479
+ "capabilities": {
480
+ "type": "object",
481
+ "additionalProperties": false,
482
+ "required": [],
483
+ "properties": {
484
+ "inputModalities": {
485
+ "type": "array",
486
+ "minItems": 1,
487
+ "items": {
488
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/modality"
489
+ }
490
+ },
491
+ "outputModalities": {
492
+ "type": "array",
493
+ "minItems": 1,
494
+ "items": {
495
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/modality"
496
+ }
497
+ },
498
+ "structuredOutput": {
499
+ "type": "boolean"
500
+ },
501
+ "providerTools": {
502
+ "type": "array",
503
+ "items": {
504
+ "type": "string",
505
+ "minLength": 1
506
+ }
507
+ },
508
+ "contextWindowTokens": {
509
+ "type": "integer",
510
+ "minimum": 1
511
+ },
512
+ "maxInputTokens": {
513
+ "type": "integer",
514
+ "minimum": 1
515
+ },
516
+ "maxOutputTokens": {
517
+ "type": "integer",
518
+ "minimum": 1
519
+ }
520
+ }
296
521
  },
297
- "defaultBudgetTokens": {
298
- "type": "integer",
299
- "minimum": 0
522
+ "nativeReasoning": {
523
+ "type": "object",
524
+ "additionalProperties": false,
525
+ "required": [],
526
+ "properties": {
527
+ "supportedControls": {
528
+ "type": "array",
529
+ "items": {
530
+ "enum": [
531
+ "effort",
532
+ "thinking",
533
+ "token-budget"
534
+ ]
535
+ },
536
+ "uniqueItems": true
537
+ },
538
+ "disableSupported": {
539
+ "type": "boolean"
540
+ },
541
+ "supportedEffortLevels": {
542
+ "type": "array",
543
+ "minItems": 1,
544
+ "items": {
545
+ "type": "string",
546
+ "minLength": 1
547
+ }
548
+ },
549
+ "defaultEffort": {
550
+ "type": "string",
551
+ "minLength": 1
552
+ },
553
+ "defaultThinkingEnabled": {
554
+ "type": "boolean"
555
+ },
556
+ "defaultBudgetTokens": {
557
+ "type": "integer",
558
+ "minimum": 0
559
+ },
560
+ "budgetTokensRange": {
561
+ "type": "object",
562
+ "additionalProperties": false,
563
+ "required": [
564
+ "min",
565
+ "max"
566
+ ],
567
+ "properties": {
568
+ "min": {
569
+ "type": "integer",
570
+ "minimum": 0
571
+ },
572
+ "max": {
573
+ "type": "integer",
574
+ "minimum": 0
575
+ }
576
+ }
577
+ },
578
+ "notes": {
579
+ "type": "string"
580
+ }
581
+ }
300
582
  },
301
- "budgetTokensRange": {
583
+ "lifecycle": {
302
584
  "type": "object",
303
585
  "additionalProperties": false,
304
586
  "required": [
305
- "min",
306
- "max"
587
+ "status"
307
588
  ],
308
589
  "properties": {
309
- "min": {
310
- "type": "integer",
311
- "minimum": 0
590
+ "status": {
591
+ "enum": [
592
+ "preview",
593
+ "ga",
594
+ "deprecated",
595
+ "retired",
596
+ "unknown"
597
+ ]
312
598
  },
313
- "max": {
314
- "type": "integer",
315
- "minimum": 0
599
+ "deprecatedAt": {
600
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/isoDateTime"
601
+ },
602
+ "sunsetAt": {
603
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/isoDateTime"
604
+ },
605
+ "replacementCatalogId": {
606
+ "type": "string",
607
+ "minLength": 1
316
608
  }
317
609
  }
318
610
  },
319
- "notes": {
320
- "type": "string"
321
- }
322
- }
323
- },
324
- "lifecycle": {
325
- "type": "object",
326
- "additionalProperties": false,
327
- "required": [
328
- "status"
329
- ],
330
- "properties": {
331
- "status": {
332
- "enum": [
333
- "preview",
334
- "ga",
335
- "deprecated",
336
- "retired",
337
- "unknown"
338
- ]
611
+ "availability": {
612
+ "type": "object",
613
+ "additionalProperties": false,
614
+ "required": [
615
+ "status"
616
+ ],
617
+ "properties": {
618
+ "status": {
619
+ "enum": [
620
+ "available",
621
+ "unavailable",
622
+ "restricted",
623
+ "announced",
624
+ "unknown"
625
+ ]
626
+ }
627
+ }
339
628
  },
340
- "deprecatedAt": {
341
- "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/isoDateTime"
629
+ "activePriceRevisionId": {
630
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/priceRevisionId"
342
631
  },
343
- "sunsetAt": {
344
- "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/isoDateTime"
632
+ "notes": {
633
+ "type": "string"
345
634
  },
346
- "replacementCatalogId": {
347
- "type": "string",
348
- "minLength": 1
349
- }
350
- }
351
- },
352
- "availability": {
353
- "type": "object",
354
- "additionalProperties": false,
355
- "required": [
356
- "status"
357
- ],
358
- "properties": {
359
- "status": {
360
- "enum": [
361
- "available",
362
- "unavailable",
363
- "restricted",
364
- "announced",
365
- "unknown"
366
- ]
635
+ "verifiedAt": {
636
+ "type": [
637
+ "string",
638
+ "null"
639
+ ],
640
+ "format": "date-time"
367
641
  }
368
642
  }
369
- },
370
- "activePriceRevisionId": {
371
- "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/priceRevisionId"
372
- },
373
- "source": {
374
- "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/source"
375
- },
376
- "notes": {
377
- "type": "string"
378
643
  }
379
- }
644
+ ]
380
645
  }
381
646
  },
647
+ "executionProjection": {
648
+ "enum": [
649
+ "endpoint-evidence-v1",
650
+ "endpoint-evidence-v2"
651
+ ]
652
+ },
653
+ "listingFactReview": {
654
+ "enum": [
655
+ "field-updates-v1",
656
+ "field-evidence-v2"
657
+ ]
658
+ },
382
659
  "runtimeMappings": {
383
660
  "type": "object",
384
661
  "additionalProperties": {
385
- "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/adapterId"
662
+ "anyOf": [
663
+ {
664
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/adapterId"
665
+ },
666
+ {
667
+ "type": "array",
668
+ "minItems": 1,
669
+ "uniqueItems": true,
670
+ "items": {
671
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/adapterId"
672
+ }
673
+ }
674
+ ]
386
675
  }
387
676
  }
388
677
  },