@kaana.ai/contracts 5.0.0 → 6.0.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.
package/openapi.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "openapi": "3.1.0",
3
3
  "info": {
4
4
  "title": "Kaana API",
5
- "version": "5.0.0",
5
+ "version": "6.0.0",
6
6
  "description": "Kaana inference API. Generated from @kaana.ai/contracts; the Zod source is the authority. Accounts, applications, oxy_sk_ keys, limits and billing are managed in Oxy Console: https://console.oxy.so"
7
7
  },
8
8
  "servers": [
@@ -3371,12 +3371,6 @@
3371
3371
  "$ref": "#/components/schemas/LanguageTag"
3372
3372
  }
3373
3373
  },
3374
- "detectsLanguage": {
3375
- "type": "boolean"
3376
- },
3377
- "transcriptionPrompt": {
3378
- "type": "boolean"
3379
- },
3380
3374
  "audioFormats": {
3381
3375
  "type": "object",
3382
3376
  "properties": {
@@ -3703,9 +3697,6 @@
3703
3697
  "output"
3704
3698
  ],
3705
3699
  "additionalProperties": false
3706
- },
3707
- "parameters": {
3708
- "$ref": "#/components/schemas/RealtimeParameters"
3709
3700
  }
3710
3701
  },
3711
3702
  "required": [
@@ -3829,6 +3820,9 @@
3829
3820
  "pricing": {
3830
3821
  "$ref": "#/components/schemas/PriceSnapshot"
3831
3822
  },
3823
+ "pricePerMinute": {
3824
+ "$ref": "#/components/schemas/Money"
3825
+ },
3832
3826
  "deprecation": {
3833
3827
  "$ref": "#/components/schemas/ModelDeprecation"
3834
3828
  },
@@ -3894,22 +3888,6 @@
3894
3888
  ],
3895
3889
  "additionalProperties": false
3896
3890
  },
3897
- "NumberRange": {
3898
- "type": "object",
3899
- "properties": {
3900
- "min": {
3901
- "type": "number"
3902
- },
3903
- "max": {
3904
- "type": "number"
3905
- }
3906
- },
3907
- "required": [
3908
- "min",
3909
- "max"
3910
- ],
3911
- "additionalProperties": false
3912
- },
3913
3891
  "OxyApplicationId": {
3914
3892
  "type": "string",
3915
3893
  "minLength": 1,
@@ -4908,52 +4886,6 @@
4908
4886
  "audio"
4909
4887
  ]
4910
4888
  },
4911
- "RealtimeParameters": {
4912
- "type": "object",
4913
- "properties": {
4914
- "turnDetection": {
4915
- "minItems": 1,
4916
- "type": "array",
4917
- "items": {
4918
- "$ref": "#/components/schemas/RealtimeTurnDetectionParameters"
4919
- }
4920
- },
4921
- "outputModalities": {
4922
- "minItems": 1,
4923
- "type": "array",
4924
- "items": {
4925
- "minItems": 1,
4926
- "maxItems": 2,
4927
- "type": "array",
4928
- "items": {
4929
- "$ref": "#/components/schemas/RealtimeOutputModality"
4930
- }
4931
- }
4932
- },
4933
- "toolChoice": {
4934
- "minItems": 1,
4935
- "type": "array",
4936
- "items": {
4937
- "$ref": "#/components/schemas/RealtimeToolChoiceKind"
4938
- }
4939
- },
4940
- "maxOutputTokens": {
4941
- "type": "integer",
4942
- "exclusiveMinimum": 0,
4943
- "maximum": 9007199254740991
4944
- },
4945
- "inputTranscriptionPrompt": {
4946
- "type": "boolean"
4947
- }
4948
- },
4949
- "required": [
4950
- "turnDetection",
4951
- "outputModalities",
4952
- "toolChoice",
4953
- "inputTranscriptionPrompt"
4954
- ],
4955
- "additionalProperties": false
4956
- },
4957
4889
  "RealtimePublicErrorEvent": {
4958
4890
  "type": "object",
4959
4891
  "properties": {
@@ -5889,15 +5821,6 @@
5889
5821
  "complete"
5890
5822
  ]
5891
5823
  },
5892
- "RealtimeToolChoiceKind": {
5893
- "type": "string",
5894
- "enum": [
5895
- "auto",
5896
- "none",
5897
- "required",
5898
- "function"
5899
- ]
5900
- },
5901
5824
  "RealtimeToolDefinition": {
5902
5825
  "type": "object",
5903
5826
  "properties": {
@@ -6052,33 +5975,6 @@
6052
5975
  ],
6053
5976
  "additionalProperties": false
6054
5977
  },
6055
- "RealtimeTurnDetectionParameters": {
6056
- "type": "object",
6057
- "properties": {
6058
- "type": {
6059
- "$ref": "#/components/schemas/RealtimeTurnDetectionType"
6060
- },
6061
- "fixedResponses": {
6062
- "type": "boolean"
6063
- },
6064
- "threshold": {
6065
- "$ref": "#/components/schemas/NumberRange"
6066
- },
6067
- "meteredUnits": {
6068
- "minItems": 1,
6069
- "type": "array",
6070
- "items": {
6071
- "$ref": "#/components/schemas/UsageUnit"
6072
- }
6073
- }
6074
- },
6075
- "required": [
6076
- "type",
6077
- "fixedResponses",
6078
- "meteredUnits"
6079
- ],
6080
- "additionalProperties": false
6081
- },
6082
5978
  "RealtimeTurnDetection": {
6083
5979
  "oneOf": [
6084
5980
  {
@@ -6163,14 +6059,6 @@
6163
6059
  }
6164
6060
  ]
6165
6061
  },
6166
- "RealtimeTurnDetectionType": {
6167
- "type": "string",
6168
- "enum": [
6169
- "none",
6170
- "server_vad",
6171
- "semantic_vad"
6172
- ]
6173
- },
6174
6062
  "ReasoningEffort": {
6175
6063
  "type": "string",
6176
6064
  "enum": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaana.ai/contracts",
3
- "version": "5.0.0",
3
+ "version": "6.0.0",
4
4
  "description": "Kaana inference contract: the Zod schemas of the public API at https://kaana.ai/v1 and, under /internal, of the Oxy-Kaana grant, settlement and signed lane.",
5
5
  "type": "module",
6
6
  "sideEffects": false,