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

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 (46) 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 +8 -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 +1211 -6
  9. package/dist/catalog-package-data.js.map +1 -1
  10. package/dist/configuration-bundle.d.ts +4 -1
  11. package/dist/configuration-bundle.d.ts.map +1 -1
  12. package/dist/configuration-bundle.js +11 -4
  13. package/dist/configuration-bundle.js.map +1 -1
  14. package/dist/entities.d.ts +25 -3
  15. package/dist/entities.d.ts.map +1 -1
  16. package/dist/host-qualification.d.ts +22 -5
  17. package/dist/host-qualification.d.ts.map +1 -1
  18. package/dist/host-qualification.js +24 -1
  19. package/dist/host-qualification.js.map +1 -1
  20. package/dist/index.d.ts +1 -0
  21. package/dist/index.d.ts.map +1 -1
  22. package/dist/index.js +1 -0
  23. package/dist/index.js.map +1 -1
  24. package/dist/model-maintenance.d.ts +1 -1
  25. package/dist/model-maintenance.d.ts.map +1 -1
  26. package/dist/model-maintenance.js +40 -2
  27. package/dist/model-maintenance.js.map +1 -1
  28. package/dist/model-package-data.d.ts.map +1 -1
  29. package/dist/model-package-data.js +4547 -460
  30. package/dist/model-package-data.js.map +1 -1
  31. package/dist/provider-listings.d.ts +9 -0
  32. package/dist/provider-listings.d.ts.map +1 -0
  33. package/dist/provider-listings.js +48 -0
  34. package/dist/provider-listings.js.map +1 -0
  35. package/dist/schemas/bundle.d.ts +1 -1
  36. package/dist/schemas/bundle.js +1 -1
  37. package/dist/schemas/bundle.js.map +1 -1
  38. package/dist/schemas/catalog-release.schema.json +266 -1
  39. package/dist/schemas/configuration-bundle-manifest.schema.json +2 -1
  40. package/dist/schemas/core.d.ts +966 -31
  41. package/dist/schemas/core.d.ts.map +1 -1
  42. package/dist/schemas/core.js +29 -3
  43. package/dist/schemas/core.js.map +1 -1
  44. package/dist/schemas/host-adapter-qualification.schema.json +370 -133
  45. package/dist/schemas/model-definition.schema.json +199 -0
  46. package/package.json +33 -33
@@ -424,6 +424,205 @@
424
424
  }
425
425
  },
426
426
  "$id": "https://techis.dev/ai/contracts/v2/model-definition.schema.json"
427
+ },
428
+ {
429
+ "type": "object",
430
+ "additionalProperties": false,
431
+ "required": [
432
+ "schemaVersion",
433
+ "catalogId",
434
+ "providerModelId",
435
+ "provider",
436
+ "adapterId",
437
+ "displayName",
438
+ "capabilities",
439
+ "nativeReasoning",
440
+ "lifecycle",
441
+ "source"
442
+ ],
443
+ "properties": {
444
+ "schemaVersion": {
445
+ "const": 3
446
+ },
447
+ "catalogId": {
448
+ "type": "string",
449
+ "minLength": 1
450
+ },
451
+ "providerModelId": {
452
+ "type": "string",
453
+ "minLength": 1
454
+ },
455
+ "provider": {
456
+ "type": "string",
457
+ "minLength": 1
458
+ },
459
+ "adapterId": {
460
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/adapterId"
461
+ },
462
+ "displayName": {
463
+ "type": "string",
464
+ "minLength": 1
465
+ },
466
+ "aliases": {
467
+ "type": "array",
468
+ "items": {
469
+ "type": "string",
470
+ "minLength": 1
471
+ }
472
+ },
473
+ "capabilities": {
474
+ "type": "object",
475
+ "additionalProperties": false,
476
+ "required": [
477
+ "inputModalities",
478
+ "outputModalities",
479
+ "structuredOutput",
480
+ "providerTools",
481
+ "contextWindowTokens",
482
+ "maxInputTokens",
483
+ "maxOutputTokens"
484
+ ],
485
+ "properties": {
486
+ "inputModalities": {
487
+ "type": "array",
488
+ "minItems": 1,
489
+ "items": {
490
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/modality"
491
+ }
492
+ },
493
+ "outputModalities": {
494
+ "type": "array",
495
+ "minItems": 1,
496
+ "items": {
497
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/modality"
498
+ }
499
+ },
500
+ "structuredOutput": {
501
+ "type": "boolean"
502
+ },
503
+ "providerTools": {
504
+ "type": "array",
505
+ "items": {
506
+ "type": "string",
507
+ "minLength": 1
508
+ }
509
+ },
510
+ "contextWindowTokens": {
511
+ "type": "integer",
512
+ "minimum": 1
513
+ },
514
+ "maxInputTokens": {
515
+ "type": "integer",
516
+ "minimum": 1
517
+ },
518
+ "maxOutputTokens": {
519
+ "type": "integer",
520
+ "minimum": 1
521
+ }
522
+ }
523
+ },
524
+ "nativeReasoning": {
525
+ "type": "object",
526
+ "additionalProperties": false,
527
+ "required": [
528
+ "supportedControls",
529
+ "disableSupported"
530
+ ],
531
+ "properties": {
532
+ "supportedControls": {
533
+ "type": "array",
534
+ "items": {
535
+ "enum": [
536
+ "effort",
537
+ "thinking",
538
+ "token-budget"
539
+ ]
540
+ },
541
+ "uniqueItems": true
542
+ },
543
+ "disableSupported": {
544
+ "type": "boolean"
545
+ },
546
+ "supportedEffortLevels": {
547
+ "type": "array",
548
+ "minItems": 1,
549
+ "items": {
550
+ "type": "string",
551
+ "minLength": 1
552
+ }
553
+ },
554
+ "defaultEffort": {
555
+ "type": "string",
556
+ "minLength": 1
557
+ },
558
+ "defaultThinkingEnabled": {
559
+ "type": "boolean"
560
+ },
561
+ "defaultBudgetTokens": {
562
+ "type": "integer",
563
+ "minimum": 0
564
+ },
565
+ "budgetTokensRange": {
566
+ "type": "object",
567
+ "additionalProperties": false,
568
+ "required": [
569
+ "min",
570
+ "max"
571
+ ],
572
+ "properties": {
573
+ "min": {
574
+ "type": "integer",
575
+ "minimum": 0
576
+ },
577
+ "max": {
578
+ "type": "integer",
579
+ "minimum": 0
580
+ }
581
+ }
582
+ },
583
+ "notes": {
584
+ "type": "string"
585
+ }
586
+ }
587
+ },
588
+ "lifecycle": {
589
+ "type": "object",
590
+ "additionalProperties": false,
591
+ "required": [
592
+ "status"
593
+ ],
594
+ "properties": {
595
+ "status": {
596
+ "enum": [
597
+ "preview",
598
+ "ga",
599
+ "deprecated",
600
+ "retired",
601
+ "unknown"
602
+ ]
603
+ },
604
+ "deprecatedAt": {
605
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/isoDateTime"
606
+ },
607
+ "sunsetAt": {
608
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/isoDateTime"
609
+ },
610
+ "replacementCatalogId": {
611
+ "type": "string",
612
+ "minLength": 1
613
+ }
614
+ }
615
+ },
616
+ "activePriceRevisionId": {
617
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/priceRevisionId"
618
+ },
619
+ "source": {
620
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/source"
621
+ },
622
+ "notes": {
623
+ "type": "string"
624
+ }
625
+ }
427
626
  }
428
627
  ]
429
628
  }
package/package.json CHANGED
@@ -1,33 +1,33 @@
1
- {
2
- "name": "@techis/ai-contracts",
3
- "version": "0.3.0-rc.15",
4
- "type": "module",
5
- "description": "Language-neutral, versioned domain contracts (JSON schemas + aligned TypeScript types) for the AI enablement subsystem.",
6
- "main": "./dist/index.js",
7
- "types": "./dist/index.d.ts",
8
- "bin": {
9
- "verify-bundle": "./dist/scripts/verify-bundle.js"
10
- },
11
- "exports": {
12
- ".": {
13
- "types": "./dist/index.d.ts",
14
- "default": "./dist/index.js"
15
- }
16
- },
17
- "files": [
18
- "dist",
19
- "LICENSE",
20
- "README.md",
21
- "THIRD_PARTY_NOTICES",
22
- "third-party-licenses",
23
- "third-party-licenses.json"
24
- ],
25
- "scripts": {
26
- "emit-schemas": "tsx src/scripts/emit-schemas.ts"
27
- },
28
- "dependencies": {
29
- "ajv": "^8.13.0",
30
- "ajv-formats": "^3.0.1"
31
- },
32
- "license": "SEE LICENSE IN LICENSE"
33
- }
1
+ {
2
+ "name": "@techis/ai-contracts",
3
+ "version": "0.3.0-rc.16",
4
+ "type": "module",
5
+ "description": "Language-neutral, versioned domain contracts (JSON schemas + aligned TypeScript types) for the AI enablement subsystem.",
6
+ "main": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "bin": {
9
+ "verify-bundle": "./dist/scripts/verify-bundle.js"
10
+ },
11
+ "exports": {
12
+ ".": {
13
+ "types": "./dist/index.d.ts",
14
+ "default": "./dist/index.js"
15
+ }
16
+ },
17
+ "files": [
18
+ "dist",
19
+ "LICENSE",
20
+ "README.md",
21
+ "THIRD_PARTY_NOTICES",
22
+ "third-party-licenses",
23
+ "third-party-licenses.json"
24
+ ],
25
+ "scripts": {
26
+ "emit-schemas": "tsx src/scripts/emit-schemas.ts"
27
+ },
28
+ "dependencies": {
29
+ "ajv": "^8.13.0",
30
+ "ajv-formats": "^3.0.1"
31
+ },
32
+ "license": "SEE LICENSE IN LICENSE"
33
+ }