@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
@@ -814,6 +814,213 @@
814
814
  "type": "string"
815
815
  }
816
816
  }
817
+ },
818
+ {
819
+ "type": "object",
820
+ "additionalProperties": false,
821
+ "required": [
822
+ "schemaVersion",
823
+ "catalogId",
824
+ "providerModelId",
825
+ "provider",
826
+ "adapterId",
827
+ "displayName",
828
+ "capabilities",
829
+ "nativeReasoning",
830
+ "lifecycle",
831
+ "verifiedAt"
832
+ ],
833
+ "properties": {
834
+ "schemaVersion": {
835
+ "const": 5
836
+ },
837
+ "catalogId": {
838
+ "type": "string",
839
+ "minLength": 1
840
+ },
841
+ "providerModelId": {
842
+ "type": "string",
843
+ "minLength": 1
844
+ },
845
+ "provider": {
846
+ "type": "string",
847
+ "minLength": 1
848
+ },
849
+ "adapterId": {
850
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/adapterId"
851
+ },
852
+ "displayName": {
853
+ "type": "string",
854
+ "minLength": 1
855
+ },
856
+ "aliases": {
857
+ "type": "array",
858
+ "items": {
859
+ "type": "string",
860
+ "minLength": 1
861
+ }
862
+ },
863
+ "capabilities": {
864
+ "type": "object",
865
+ "additionalProperties": false,
866
+ "required": [
867
+ "inputModalities",
868
+ "outputModalities"
869
+ ],
870
+ "properties": {
871
+ "inputModalities": {
872
+ "type": "array",
873
+ "minItems": 1,
874
+ "items": {
875
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/modality"
876
+ }
877
+ },
878
+ "outputModalities": {
879
+ "type": "array",
880
+ "minItems": 1,
881
+ "items": {
882
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/modality"
883
+ }
884
+ },
885
+ "structuredOutput": {
886
+ "type": "boolean"
887
+ },
888
+ "providerTools": {
889
+ "type": "array",
890
+ "items": {
891
+ "type": "string",
892
+ "minLength": 1
893
+ }
894
+ },
895
+ "contextWindowTokens": {
896
+ "type": "integer",
897
+ "minimum": 1
898
+ },
899
+ "maxInputTokens": {
900
+ "type": "integer",
901
+ "minimum": 1
902
+ },
903
+ "maxOutputTokens": {
904
+ "type": "integer",
905
+ "minimum": 1
906
+ }
907
+ }
908
+ },
909
+ "nativeReasoning": {
910
+ "type": "object",
911
+ "additionalProperties": false,
912
+ "required": [],
913
+ "properties": {
914
+ "supportedControls": {
915
+ "type": "array",
916
+ "items": {
917
+ "enum": [
918
+ "effort",
919
+ "thinking",
920
+ "token-budget"
921
+ ]
922
+ },
923
+ "uniqueItems": true
924
+ },
925
+ "disableSupported": {
926
+ "type": "boolean"
927
+ },
928
+ "supportedEffortLevels": {
929
+ "type": "array",
930
+ "minItems": 1,
931
+ "items": {
932
+ "type": "string",
933
+ "minLength": 1
934
+ }
935
+ },
936
+ "defaultEffort": {
937
+ "type": "string",
938
+ "minLength": 1
939
+ },
940
+ "defaultThinkingEnabled": {
941
+ "type": "boolean"
942
+ },
943
+ "defaultBudgetTokens": {
944
+ "type": "integer",
945
+ "minimum": 0
946
+ },
947
+ "budgetTokensRange": {
948
+ "type": "object",
949
+ "additionalProperties": false,
950
+ "required": [
951
+ "min",
952
+ "max"
953
+ ],
954
+ "properties": {
955
+ "min": {
956
+ "type": "integer",
957
+ "minimum": 0
958
+ },
959
+ "max": {
960
+ "type": "integer",
961
+ "minimum": 0
962
+ }
963
+ }
964
+ },
965
+ "notes": {
966
+ "type": "string"
967
+ }
968
+ }
969
+ },
970
+ "lifecycle": {
971
+ "type": "object",
972
+ "additionalProperties": false,
973
+ "required": [
974
+ "status"
975
+ ],
976
+ "properties": {
977
+ "status": {
978
+ "enum": [
979
+ "preview",
980
+ "ga",
981
+ "deprecated",
982
+ "retired",
983
+ "unknown"
984
+ ]
985
+ },
986
+ "deprecatedAt": {
987
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/isoDateTime"
988
+ },
989
+ "sunsetAt": {
990
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/isoDateTime"
991
+ },
992
+ "replacementCatalogId": {
993
+ "type": "string",
994
+ "minLength": 1
995
+ }
996
+ }
997
+ },
998
+ "activePriceRevisionId": {
999
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/priceRevisionId"
1000
+ },
1001
+ "notes": {
1002
+ "type": "string"
1003
+ },
1004
+ "verifiedAt": {
1005
+ "type": [
1006
+ "string",
1007
+ "null"
1008
+ ],
1009
+ "format": "date-time"
1010
+ },
1011
+ "availability": {
1012
+ "type": "object",
1013
+ "additionalProperties": false,
1014
+ "required": [
1015
+ "status"
1016
+ ],
1017
+ "properties": {
1018
+ "status": {
1019
+ "const": "available"
1020
+ }
1021
+ }
1022
+ }
1023
+ }
817
1024
  }
818
1025
  ]
819
1026
  }