@kaana.ai/contracts 8.4.0 → 8.6.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/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/internal/catalogue.d.ts +2 -2
- package/dist/internal/request.d.ts +12 -2
- package/dist/internal/streamEvents.d.ts +1 -0
- package/dist/public/anthropicMessages.d.ts +50 -8
- package/dist/public/anthropicMessages.js +69 -12
- package/dist/public/chatCompletions.d.ts +40 -3
- package/dist/public/chatCompletions.js +9 -3
- package/dist/public/messages.d.ts +57 -26
- package/dist/public/messages.js +74 -29
- package/dist/public/providerPreferences.d.ts +71 -0
- package/dist/public/providerPreferences.js +75 -0
- package/dist/public/responses.d.ts +40 -2
- package/dist/public/responses.js +5 -0
- package/dist/public/streamEvents.d.ts +2 -0
- package/dist/public/streamEvents.js +8 -0
- package/dist/public/version.d.ts +16 -1
- package/dist/public/version.js +16 -1
- package/openapi.json +322 -14
- package/package.json +1 -1
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.
|
|
5
|
+
"version": "8.6.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": [
|
|
@@ -1282,6 +1282,27 @@
|
|
|
1282
1282
|
"type": "array",
|
|
1283
1283
|
"items": {
|
|
1284
1284
|
"oneOf": [
|
|
1285
|
+
{
|
|
1286
|
+
"type": "object",
|
|
1287
|
+
"properties": {
|
|
1288
|
+
"type": {
|
|
1289
|
+
"type": "string",
|
|
1290
|
+
"const": "thinking"
|
|
1291
|
+
},
|
|
1292
|
+
"thinking": {
|
|
1293
|
+
"type": "string"
|
|
1294
|
+
},
|
|
1295
|
+
"signature": {
|
|
1296
|
+
"type": "string"
|
|
1297
|
+
}
|
|
1298
|
+
},
|
|
1299
|
+
"required": [
|
|
1300
|
+
"type",
|
|
1301
|
+
"thinking",
|
|
1302
|
+
"signature"
|
|
1303
|
+
],
|
|
1304
|
+
"additionalProperties": false
|
|
1305
|
+
},
|
|
1285
1306
|
{
|
|
1286
1307
|
"type": "object",
|
|
1287
1308
|
"properties": {
|
|
@@ -1644,6 +1665,46 @@
|
|
|
1644
1665
|
"tool_use_id"
|
|
1645
1666
|
],
|
|
1646
1667
|
"additionalProperties": false
|
|
1668
|
+
},
|
|
1669
|
+
{
|
|
1670
|
+
"type": "object",
|
|
1671
|
+
"properties": {
|
|
1672
|
+
"type": {
|
|
1673
|
+
"type": "string",
|
|
1674
|
+
"const": "thinking"
|
|
1675
|
+
},
|
|
1676
|
+
"thinking": {
|
|
1677
|
+
"type": "string"
|
|
1678
|
+
},
|
|
1679
|
+
"signature": {
|
|
1680
|
+
"type": "string"
|
|
1681
|
+
}
|
|
1682
|
+
},
|
|
1683
|
+
"required": [
|
|
1684
|
+
"type",
|
|
1685
|
+
"thinking",
|
|
1686
|
+
"signature"
|
|
1687
|
+
],
|
|
1688
|
+
"additionalProperties": false
|
|
1689
|
+
},
|
|
1690
|
+
{
|
|
1691
|
+
"type": "object",
|
|
1692
|
+
"properties": {
|
|
1693
|
+
"type": {
|
|
1694
|
+
"type": "string",
|
|
1695
|
+
"const": "redacted_thinking"
|
|
1696
|
+
},
|
|
1697
|
+
"data": {
|
|
1698
|
+
"type": "string",
|
|
1699
|
+
"minLength": 1,
|
|
1700
|
+
"maxLength": 1000000
|
|
1701
|
+
}
|
|
1702
|
+
},
|
|
1703
|
+
"required": [
|
|
1704
|
+
"type",
|
|
1705
|
+
"data"
|
|
1706
|
+
],
|
|
1707
|
+
"additionalProperties": false
|
|
1647
1708
|
}
|
|
1648
1709
|
]
|
|
1649
1710
|
}
|
|
@@ -1812,17 +1873,53 @@
|
|
|
1812
1873
|
]
|
|
1813
1874
|
},
|
|
1814
1875
|
"thinking": {
|
|
1815
|
-
"
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
"
|
|
1819
|
-
|
|
1876
|
+
"oneOf": [
|
|
1877
|
+
{
|
|
1878
|
+
"type": "object",
|
|
1879
|
+
"properties": {
|
|
1880
|
+
"type": {
|
|
1881
|
+
"type": "string",
|
|
1882
|
+
"const": "disabled"
|
|
1883
|
+
}
|
|
1884
|
+
},
|
|
1885
|
+
"required": [
|
|
1886
|
+
"type"
|
|
1887
|
+
],
|
|
1888
|
+
"additionalProperties": false
|
|
1889
|
+
},
|
|
1890
|
+
{
|
|
1891
|
+
"type": "object",
|
|
1892
|
+
"properties": {
|
|
1893
|
+
"type": {
|
|
1894
|
+
"type": "string",
|
|
1895
|
+
"const": "adaptive"
|
|
1896
|
+
}
|
|
1897
|
+
},
|
|
1898
|
+
"required": [
|
|
1899
|
+
"type"
|
|
1900
|
+
],
|
|
1901
|
+
"additionalProperties": false
|
|
1902
|
+
},
|
|
1903
|
+
{
|
|
1904
|
+
"type": "object",
|
|
1905
|
+
"properties": {
|
|
1906
|
+
"type": {
|
|
1907
|
+
"type": "string",
|
|
1908
|
+
"const": "enabled"
|
|
1909
|
+
},
|
|
1910
|
+
"budget_tokens": {
|
|
1911
|
+
"type": "integer",
|
|
1912
|
+
"exclusiveMinimum": 0,
|
|
1913
|
+
"maximum": 9007199254740991
|
|
1914
|
+
}
|
|
1915
|
+
},
|
|
1916
|
+
"required": [
|
|
1917
|
+
"type",
|
|
1918
|
+
"budget_tokens"
|
|
1919
|
+
],
|
|
1920
|
+
"additionalProperties": false
|
|
1820
1921
|
}
|
|
1821
|
-
|
|
1822
|
-
"required": [
|
|
1823
|
-
"type"
|
|
1824
|
-
],
|
|
1825
|
-
"additionalProperties": false
|
|
1922
|
+
]
|
|
1826
1923
|
},
|
|
1827
1924
|
"output_config": {
|
|
1828
1925
|
"type": "object",
|
|
@@ -1894,6 +1991,27 @@
|
|
|
1894
1991
|
"type": "array",
|
|
1895
1992
|
"items": {
|
|
1896
1993
|
"oneOf": [
|
|
1994
|
+
{
|
|
1995
|
+
"type": "object",
|
|
1996
|
+
"properties": {
|
|
1997
|
+
"type": {
|
|
1998
|
+
"type": "string",
|
|
1999
|
+
"const": "thinking"
|
|
2000
|
+
},
|
|
2001
|
+
"thinking": {
|
|
2002
|
+
"type": "string"
|
|
2003
|
+
},
|
|
2004
|
+
"signature": {
|
|
2005
|
+
"type": "string"
|
|
2006
|
+
}
|
|
2007
|
+
},
|
|
2008
|
+
"required": [
|
|
2009
|
+
"type",
|
|
2010
|
+
"thinking",
|
|
2011
|
+
"signature"
|
|
2012
|
+
],
|
|
2013
|
+
"additionalProperties": false
|
|
2014
|
+
},
|
|
1897
2015
|
{
|
|
1898
2016
|
"type": "object",
|
|
1899
2017
|
"properties": {
|
|
@@ -2014,6 +2132,29 @@
|
|
|
2014
2132
|
},
|
|
2015
2133
|
"content_block": {
|
|
2016
2134
|
"oneOf": [
|
|
2135
|
+
{
|
|
2136
|
+
"type": "object",
|
|
2137
|
+
"properties": {
|
|
2138
|
+
"type": {
|
|
2139
|
+
"type": "string",
|
|
2140
|
+
"const": "thinking"
|
|
2141
|
+
},
|
|
2142
|
+
"thinking": {
|
|
2143
|
+
"type": "string",
|
|
2144
|
+
"const": ""
|
|
2145
|
+
},
|
|
2146
|
+
"signature": {
|
|
2147
|
+
"type": "string",
|
|
2148
|
+
"const": ""
|
|
2149
|
+
}
|
|
2150
|
+
},
|
|
2151
|
+
"required": [
|
|
2152
|
+
"type",
|
|
2153
|
+
"thinking",
|
|
2154
|
+
"signature"
|
|
2155
|
+
],
|
|
2156
|
+
"additionalProperties": false
|
|
2157
|
+
},
|
|
2017
2158
|
{
|
|
2018
2159
|
"type": "object",
|
|
2019
2160
|
"properties": {
|
|
@@ -2104,6 +2245,40 @@
|
|
|
2104
2245
|
],
|
|
2105
2246
|
"additionalProperties": false
|
|
2106
2247
|
},
|
|
2248
|
+
{
|
|
2249
|
+
"type": "object",
|
|
2250
|
+
"properties": {
|
|
2251
|
+
"type": {
|
|
2252
|
+
"type": "string",
|
|
2253
|
+
"const": "thinking_delta"
|
|
2254
|
+
},
|
|
2255
|
+
"thinking": {
|
|
2256
|
+
"type": "string"
|
|
2257
|
+
}
|
|
2258
|
+
},
|
|
2259
|
+
"required": [
|
|
2260
|
+
"type",
|
|
2261
|
+
"thinking"
|
|
2262
|
+
],
|
|
2263
|
+
"additionalProperties": false
|
|
2264
|
+
},
|
|
2265
|
+
{
|
|
2266
|
+
"type": "object",
|
|
2267
|
+
"properties": {
|
|
2268
|
+
"type": {
|
|
2269
|
+
"type": "string",
|
|
2270
|
+
"const": "signature_delta"
|
|
2271
|
+
},
|
|
2272
|
+
"signature": {
|
|
2273
|
+
"type": "string"
|
|
2274
|
+
}
|
|
2275
|
+
},
|
|
2276
|
+
"required": [
|
|
2277
|
+
"type",
|
|
2278
|
+
"signature"
|
|
2279
|
+
],
|
|
2280
|
+
"additionalProperties": false
|
|
2281
|
+
},
|
|
2107
2282
|
{
|
|
2108
2283
|
"type": "object",
|
|
2109
2284
|
"properties": {
|
|
@@ -3118,6 +3293,12 @@
|
|
|
3118
3293
|
"type": "string",
|
|
3119
3294
|
"minLength": 1,
|
|
3120
3295
|
"maxLength": 64
|
|
3296
|
+
},
|
|
3297
|
+
"provider": {
|
|
3298
|
+
"$ref": "#/components/schemas/ProviderPreferences"
|
|
3299
|
+
},
|
|
3300
|
+
"prompt_cache_key": {
|
|
3301
|
+
"$ref": "#/components/schemas/PromptCacheKey"
|
|
3121
3302
|
}
|
|
3122
3303
|
},
|
|
3123
3304
|
"required": [
|
|
@@ -3870,6 +4051,26 @@
|
|
|
3870
4051
|
"text"
|
|
3871
4052
|
],
|
|
3872
4053
|
"additionalProperties": false
|
|
4054
|
+
},
|
|
4055
|
+
{
|
|
4056
|
+
"type": "object",
|
|
4057
|
+
"properties": {
|
|
4058
|
+
"type": {
|
|
4059
|
+
"type": "string",
|
|
4060
|
+
"const": "reasoning"
|
|
4061
|
+
},
|
|
4062
|
+
"text": {
|
|
4063
|
+
"type": "string"
|
|
4064
|
+
},
|
|
4065
|
+
"opaque": {
|
|
4066
|
+
"type": "string",
|
|
4067
|
+
"minLength": 1
|
|
4068
|
+
}
|
|
4069
|
+
},
|
|
4070
|
+
"required": [
|
|
4071
|
+
"type"
|
|
4072
|
+
],
|
|
4073
|
+
"additionalProperties": false
|
|
3873
4074
|
}
|
|
3874
4075
|
]
|
|
3875
4076
|
},
|
|
@@ -4056,11 +4257,16 @@
|
|
|
4056
4257
|
"properties": {
|
|
4057
4258
|
"effort": {
|
|
4058
4259
|
"$ref": "#/components/schemas/ReasoningEffort"
|
|
4260
|
+
},
|
|
4261
|
+
"maxTokens": {
|
|
4262
|
+
"type": "integer",
|
|
4263
|
+
"minimum": 1,
|
|
4264
|
+
"maximum": 2147483647
|
|
4265
|
+
},
|
|
4266
|
+
"exclude": {
|
|
4267
|
+
"type": "boolean"
|
|
4059
4268
|
}
|
|
4060
4269
|
},
|
|
4061
|
-
"required": [
|
|
4062
|
-
"effort"
|
|
4063
|
-
],
|
|
4064
4270
|
"additionalProperties": false
|
|
4065
4271
|
},
|
|
4066
4272
|
"InferenceRegion": {
|
|
@@ -4187,6 +4393,10 @@
|
|
|
4187
4393
|
},
|
|
4188
4394
|
"text": {
|
|
4189
4395
|
"type": "string"
|
|
4396
|
+
},
|
|
4397
|
+
"opaque": {
|
|
4398
|
+
"type": "string",
|
|
4399
|
+
"minLength": 1
|
|
4190
4400
|
}
|
|
4191
4401
|
},
|
|
4192
4402
|
"required": [
|
|
@@ -5114,6 +5324,98 @@
|
|
|
5114
5324
|
],
|
|
5115
5325
|
"additionalProperties": false
|
|
5116
5326
|
},
|
|
5327
|
+
"PromptCacheKey": {
|
|
5328
|
+
"type": "string",
|
|
5329
|
+
"minLength": 1,
|
|
5330
|
+
"maxLength": 256
|
|
5331
|
+
},
|
|
5332
|
+
"ProviderPreferences": {
|
|
5333
|
+
"type": "object",
|
|
5334
|
+
"properties": {
|
|
5335
|
+
"order": {
|
|
5336
|
+
"minItems": 1,
|
|
5337
|
+
"maxItems": 16,
|
|
5338
|
+
"type": "array",
|
|
5339
|
+
"items": {
|
|
5340
|
+
"type": "string",
|
|
5341
|
+
"minLength": 1,
|
|
5342
|
+
"maxLength": 64,
|
|
5343
|
+
"pattern": "^[a-z0-9][a-z0-9._-]*$"
|
|
5344
|
+
}
|
|
5345
|
+
},
|
|
5346
|
+
"only": {
|
|
5347
|
+
"minItems": 1,
|
|
5348
|
+
"maxItems": 16,
|
|
5349
|
+
"type": "array",
|
|
5350
|
+
"items": {
|
|
5351
|
+
"type": "string",
|
|
5352
|
+
"minLength": 1,
|
|
5353
|
+
"maxLength": 64,
|
|
5354
|
+
"pattern": "^[a-z0-9][a-z0-9._-]*$"
|
|
5355
|
+
}
|
|
5356
|
+
},
|
|
5357
|
+
"ignore": {
|
|
5358
|
+
"minItems": 1,
|
|
5359
|
+
"maxItems": 16,
|
|
5360
|
+
"type": "array",
|
|
5361
|
+
"items": {
|
|
5362
|
+
"type": "string",
|
|
5363
|
+
"minLength": 1,
|
|
5364
|
+
"maxLength": 64,
|
|
5365
|
+
"pattern": "^[a-z0-9][a-z0-9._-]*$"
|
|
5366
|
+
}
|
|
5367
|
+
},
|
|
5368
|
+
"allow_fallbacks": {
|
|
5369
|
+
"type": "boolean"
|
|
5370
|
+
},
|
|
5371
|
+
"require_parameters": {
|
|
5372
|
+
"type": "boolean"
|
|
5373
|
+
},
|
|
5374
|
+
"quantizations": {
|
|
5375
|
+
"minItems": 1,
|
|
5376
|
+
"maxItems": 12,
|
|
5377
|
+
"type": "array",
|
|
5378
|
+
"items": {
|
|
5379
|
+
"$ref": "#/components/schemas/ProviderQuantization"
|
|
5380
|
+
}
|
|
5381
|
+
},
|
|
5382
|
+
"sort": {
|
|
5383
|
+
"type": "string",
|
|
5384
|
+
"enum": [
|
|
5385
|
+
"latency",
|
|
5386
|
+
"throughput"
|
|
5387
|
+
]
|
|
5388
|
+
},
|
|
5389
|
+
"preferred_max_latency": {
|
|
5390
|
+
"type": "number",
|
|
5391
|
+
"exclusiveMinimum": 0,
|
|
5392
|
+
"maximum": 600
|
|
5393
|
+
},
|
|
5394
|
+
"preferred_min_throughput": {
|
|
5395
|
+
"type": "number",
|
|
5396
|
+
"exclusiveMinimum": 0,
|
|
5397
|
+
"maximum": 100000
|
|
5398
|
+
}
|
|
5399
|
+
},
|
|
5400
|
+
"additionalProperties": false
|
|
5401
|
+
},
|
|
5402
|
+
"ProviderQuantization": {
|
|
5403
|
+
"type": "string",
|
|
5404
|
+
"enum": [
|
|
5405
|
+
"int4",
|
|
5406
|
+
"int8",
|
|
5407
|
+
"fp4",
|
|
5408
|
+
"mxfp4",
|
|
5409
|
+
"nvfp4",
|
|
5410
|
+
"fp6",
|
|
5411
|
+
"fp8",
|
|
5412
|
+
"mxfp8",
|
|
5413
|
+
"fp16",
|
|
5414
|
+
"bf16",
|
|
5415
|
+
"fp32",
|
|
5416
|
+
"unknown"
|
|
5417
|
+
]
|
|
5418
|
+
},
|
|
5117
5419
|
"PublicErrorCode": {
|
|
5118
5420
|
"type": "string",
|
|
5119
5421
|
"enum": [
|
|
@@ -7612,6 +7914,12 @@
|
|
|
7612
7914
|
"type": "string",
|
|
7613
7915
|
"minLength": 1,
|
|
7614
7916
|
"maxLength": 128
|
|
7917
|
+
},
|
|
7918
|
+
"provider": {
|
|
7919
|
+
"$ref": "#/components/schemas/ProviderPreferences"
|
|
7920
|
+
},
|
|
7921
|
+
"promptCacheKey": {
|
|
7922
|
+
"$ref": "#/components/schemas/PromptCacheKey"
|
|
7615
7923
|
}
|
|
7616
7924
|
},
|
|
7617
7925
|
"required": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kaana.ai/contracts",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.6.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,
|