@kaana.ai/contracts 8.14.0 → 8.16.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": "8.14.0",
5
+ "version": "8.16.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": [
@@ -4440,6 +4440,32 @@
4440
4440
  "failed"
4441
4441
  ]
4442
4442
  },
4443
+ "InferenceRerankParameters": {
4444
+ "type": "object",
4445
+ "properties": {
4446
+ "documents": {
4447
+ "minItems": 1,
4448
+ "maxItems": 1000,
4449
+ "type": "array",
4450
+ "items": {
4451
+ "type": "string",
4452
+ "minLength": 1
4453
+ }
4454
+ },
4455
+ "topN": {
4456
+ "type": "integer",
4457
+ "minimum": 1,
4458
+ "maximum": 9007199254740991
4459
+ },
4460
+ "returnDocuments": {
4461
+ "type": "boolean"
4462
+ }
4463
+ },
4464
+ "required": [
4465
+ "documents"
4466
+ ],
4467
+ "additionalProperties": false
4468
+ },
4443
4469
  "InferenceSpeechParameters": {
4444
4470
  "type": "object",
4445
4471
  "properties": {
@@ -5177,6 +5203,13 @@
5177
5203
  "$ref": "#/components/schemas/RealtimeSessionKind"
5178
5204
  }
5179
5205
  },
5206
+ "defaultKinds": {
5207
+ "minItems": 1,
5208
+ "type": "array",
5209
+ "items": {
5210
+ "$ref": "#/components/schemas/RealtimeSessionKind"
5211
+ }
5212
+ },
5180
5213
  "inputAudioTranscription": {
5181
5214
  "type": "boolean"
5182
5215
  },
@@ -5708,6 +5741,15 @@
5708
5741
  },
5709
5742
  {
5710
5743
  "$ref": "#/components/schemas/RealtimeSessionCloseCommand"
5744
+ },
5745
+ {
5746
+ "$ref": "#/components/schemas/RealtimeDelegationReplyCommand"
5747
+ },
5748
+ {
5749
+ "$ref": "#/components/schemas/RealtimeDelegationContextCommand"
5750
+ },
5751
+ {
5752
+ "$ref": "#/components/schemas/RealtimeDelegationCancelCommand"
5711
5753
  }
5712
5754
  ]
5713
5755
  },
@@ -5933,6 +5975,214 @@
5933
5975
  }
5934
5976
  ]
5935
5977
  },
5978
+ "RealtimeDelegationAcknowledgement": {
5979
+ "type": "string",
5980
+ "enum": [
5981
+ "auto",
5982
+ "none"
5983
+ ]
5984
+ },
5985
+ "RealtimeDelegationCancelCommand": {
5986
+ "type": "object",
5987
+ "properties": {
5988
+ "schemaVersion": {
5989
+ "type": "number",
5990
+ "const": 1
5991
+ },
5992
+ "requestId": {
5993
+ "$ref": "#/components/schemas/RequestId"
5994
+ },
5995
+ "commandId": {
5996
+ "$ref": "#/components/schemas/RealtimeCommandId"
5997
+ },
5998
+ "type": {
5999
+ "type": "string",
6000
+ "const": "delegation.cancel"
6001
+ },
6002
+ "delegationId": {
6003
+ "$ref": "#/components/schemas/RealtimeDelegationId"
6004
+ }
6005
+ },
6006
+ "required": [
6007
+ "schemaVersion",
6008
+ "requestId",
6009
+ "commandId",
6010
+ "type",
6011
+ "delegationId"
6012
+ ]
6013
+ },
6014
+ "RealtimeDelegationConfig": {
6015
+ "type": "object",
6016
+ "properties": {
6017
+ "acknowledgement": {
6018
+ "$ref": "#/components/schemas/RealtimeDelegationAcknowledgement"
6019
+ }
6020
+ },
6021
+ "required": [
6022
+ "acknowledgement"
6023
+ ],
6024
+ "additionalProperties": false
6025
+ },
6026
+ "RealtimeDelegationContextCommand": {
6027
+ "type": "object",
6028
+ "properties": {
6029
+ "schemaVersion": {
6030
+ "type": "number",
6031
+ "const": 1
6032
+ },
6033
+ "requestId": {
6034
+ "$ref": "#/components/schemas/RequestId"
6035
+ },
6036
+ "commandId": {
6037
+ "$ref": "#/components/schemas/RealtimeCommandId"
6038
+ },
6039
+ "type": {
6040
+ "type": "string",
6041
+ "const": "delegation.context"
6042
+ },
6043
+ "delegationId": {
6044
+ "$ref": "#/components/schemas/RealtimeDelegationId"
6045
+ },
6046
+ "text": {
6047
+ "type": "string",
6048
+ "minLength": 1,
6049
+ "maxLength": 8192
6050
+ }
6051
+ },
6052
+ "required": [
6053
+ "schemaVersion",
6054
+ "requestId",
6055
+ "commandId",
6056
+ "type",
6057
+ "delegationId",
6058
+ "text"
6059
+ ]
6060
+ },
6061
+ "RealtimeDelegationId": {
6062
+ "type": "string",
6063
+ "minLength": 1,
6064
+ "maxLength": 128
6065
+ },
6066
+ "RealtimeDelegationReplyCommand": {
6067
+ "type": "object",
6068
+ "properties": {
6069
+ "schemaVersion": {
6070
+ "type": "number",
6071
+ "const": 1
6072
+ },
6073
+ "requestId": {
6074
+ "$ref": "#/components/schemas/RequestId"
6075
+ },
6076
+ "commandId": {
6077
+ "$ref": "#/components/schemas/RealtimeCommandId"
6078
+ },
6079
+ "type": {
6080
+ "type": "string",
6081
+ "const": "delegation.reply"
6082
+ },
6083
+ "delegationId": {
6084
+ "$ref": "#/components/schemas/RealtimeDelegationId"
6085
+ },
6086
+ "text": {
6087
+ "type": "string",
6088
+ "minLength": 1,
6089
+ "maxLength": 8192
6090
+ },
6091
+ "verbatim": {
6092
+ "maxItems": 32,
6093
+ "type": "array",
6094
+ "items": {
6095
+ "type": "string",
6096
+ "minLength": 1,
6097
+ "maxLength": 256
6098
+ }
6099
+ },
6100
+ "final": {
6101
+ "type": "boolean"
6102
+ }
6103
+ },
6104
+ "required": [
6105
+ "schemaVersion",
6106
+ "requestId",
6107
+ "commandId",
6108
+ "type",
6109
+ "delegationId",
6110
+ "text",
6111
+ "final"
6112
+ ]
6113
+ },
6114
+ "RealtimeDelegationRequestedEvent": {
6115
+ "type": "object",
6116
+ "properties": {
6117
+ "schemaVersion": {
6118
+ "type": "number",
6119
+ "const": 1
6120
+ },
6121
+ "requestId": {
6122
+ "$ref": "#/components/schemas/RequestId"
6123
+ },
6124
+ "sequence": {
6125
+ "type": "integer",
6126
+ "minimum": 0,
6127
+ "maximum": 9007199254740991
6128
+ },
6129
+ "commandId": {
6130
+ "$ref": "#/components/schemas/RealtimeCommandId"
6131
+ },
6132
+ "type": {
6133
+ "type": "string",
6134
+ "const": "delegation.requested"
6135
+ },
6136
+ "delegationId": {
6137
+ "$ref": "#/components/schemas/RealtimeDelegationId"
6138
+ },
6139
+ "text": {
6140
+ "type": "string"
6141
+ }
6142
+ },
6143
+ "required": [
6144
+ "schemaVersion",
6145
+ "requestId",
6146
+ "sequence",
6147
+ "type",
6148
+ "delegationId",
6149
+ "text"
6150
+ ]
6151
+ },
6152
+ "RealtimeDelegationSupersededEvent": {
6153
+ "type": "object",
6154
+ "properties": {
6155
+ "schemaVersion": {
6156
+ "type": "number",
6157
+ "const": 1
6158
+ },
6159
+ "requestId": {
6160
+ "$ref": "#/components/schemas/RequestId"
6161
+ },
6162
+ "sequence": {
6163
+ "type": "integer",
6164
+ "minimum": 0,
6165
+ "maximum": 9007199254740991
6166
+ },
6167
+ "commandId": {
6168
+ "$ref": "#/components/schemas/RealtimeCommandId"
6169
+ },
6170
+ "type": {
6171
+ "type": "string",
6172
+ "const": "delegation.superseded"
6173
+ },
6174
+ "delegationId": {
6175
+ "$ref": "#/components/schemas/RealtimeDelegationId"
6176
+ }
6177
+ },
6178
+ "required": [
6179
+ "schemaVersion",
6180
+ "requestId",
6181
+ "sequence",
6182
+ "type",
6183
+ "delegationId"
6184
+ ]
6185
+ },
5936
6186
  "RealtimeInputAudioAppendCommand": {
5937
6187
  "type": "object",
5938
6188
  "properties": {
@@ -6655,6 +6905,12 @@
6655
6905
  {
6656
6906
  "$ref": "#/components/schemas/RealtimeToolCallEvent"
6657
6907
  },
6908
+ {
6909
+ "$ref": "#/components/schemas/RealtimeDelegationRequestedEvent"
6910
+ },
6911
+ {
6912
+ "$ref": "#/components/schemas/RealtimeDelegationSupersededEvent"
6913
+ },
6658
6914
  {
6659
6915
  "$ref": "#/components/schemas/RealtimePublicResponseDoneEvent"
6660
6916
  },
@@ -6993,6 +7249,9 @@
6993
7249
  "type": "integer",
6994
7250
  "exclusiveMinimum": 0,
6995
7251
  "maximum": 9007199254740991
7252
+ },
7253
+ "delegation": {
7254
+ "$ref": "#/components/schemas/RealtimeDelegationConfig"
6996
7255
  }
6997
7256
  },
6998
7257
  "required": [
@@ -7045,7 +7304,8 @@
7045
7304
  "enum": [
7046
7305
  "conversation",
7047
7306
  "transcription",
7048
- "translation"
7307
+ "translation",
7308
+ "live"
7049
7309
  ]
7050
7310
  },
7051
7311
  "RealtimeSessionLimits": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaana.ai/contracts",
3
- "version": "8.14.0",
3
+ "version": "8.16.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,