@kaana.ai/contracts 8.5.0 → 8.7.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.5.0",
5
+ "version": "8.7.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": {
@@ -1291,6 +1312,13 @@
1291
1312
  },
1292
1313
  "text": {
1293
1314
  "type": "string"
1315
+ },
1316
+ "cache_control": {
1317
+ "type": "object",
1318
+ "propertyNames": {
1319
+ "type": "string"
1320
+ },
1321
+ "additionalProperties": {}
1294
1322
  }
1295
1323
  },
1296
1324
  "required": [
@@ -1322,6 +1350,13 @@
1322
1350
  "type": "string"
1323
1351
  },
1324
1352
  "additionalProperties": {}
1353
+ },
1354
+ "cache_control": {
1355
+ "type": "object",
1356
+ "propertyNames": {
1357
+ "type": "string"
1358
+ },
1359
+ "additionalProperties": {}
1325
1360
  }
1326
1361
  },
1327
1362
  "required": [
@@ -1407,7 +1442,8 @@
1407
1442
  "type": "string",
1408
1443
  "enum": [
1409
1444
  "user",
1410
- "assistant"
1445
+ "assistant",
1446
+ "system"
1411
1447
  ]
1412
1448
  },
1413
1449
  "content": {
@@ -1429,6 +1465,13 @@
1429
1465
  },
1430
1466
  "text": {
1431
1467
  "type": "string"
1468
+ },
1469
+ "cache_control": {
1470
+ "type": "object",
1471
+ "propertyNames": {
1472
+ "type": "string"
1473
+ },
1474
+ "additionalProperties": {}
1432
1475
  }
1433
1476
  },
1434
1477
  "required": [
@@ -1444,6 +1487,13 @@
1444
1487
  "type": "string",
1445
1488
  "const": "image"
1446
1489
  },
1490
+ "cache_control": {
1491
+ "type": "object",
1492
+ "propertyNames": {
1493
+ "type": "string"
1494
+ },
1495
+ "additionalProperties": {}
1496
+ },
1447
1497
  "source": {
1448
1498
  "oneOf": [
1449
1499
  {
@@ -1521,6 +1571,13 @@
1521
1571
  "type": "string"
1522
1572
  },
1523
1573
  "additionalProperties": {}
1574
+ },
1575
+ "cache_control": {
1576
+ "type": "object",
1577
+ "propertyNames": {
1578
+ "type": "string"
1579
+ },
1580
+ "additionalProperties": {}
1524
1581
  }
1525
1582
  },
1526
1583
  "required": [
@@ -1561,6 +1618,13 @@
1561
1618
  },
1562
1619
  "text": {
1563
1620
  "type": "string"
1621
+ },
1622
+ "cache_control": {
1623
+ "type": "object",
1624
+ "propertyNames": {
1625
+ "type": "string"
1626
+ },
1627
+ "additionalProperties": {}
1564
1628
  }
1565
1629
  },
1566
1630
  "required": [
@@ -1576,6 +1640,13 @@
1576
1640
  "type": "string",
1577
1641
  "const": "image"
1578
1642
  },
1643
+ "cache_control": {
1644
+ "type": "object",
1645
+ "propertyNames": {
1646
+ "type": "string"
1647
+ },
1648
+ "additionalProperties": {}
1649
+ },
1579
1650
  "source": {
1580
1651
  "oneOf": [
1581
1652
  {
@@ -1637,6 +1708,13 @@
1637
1708
  },
1638
1709
  "is_error": {
1639
1710
  "type": "boolean"
1711
+ },
1712
+ "cache_control": {
1713
+ "type": "object",
1714
+ "propertyNames": {
1715
+ "type": "string"
1716
+ },
1717
+ "additionalProperties": {}
1640
1718
  }
1641
1719
  },
1642
1720
  "required": [
@@ -1644,6 +1722,46 @@
1644
1722
  "tool_use_id"
1645
1723
  ],
1646
1724
  "additionalProperties": false
1725
+ },
1726
+ {
1727
+ "type": "object",
1728
+ "properties": {
1729
+ "type": {
1730
+ "type": "string",
1731
+ "const": "thinking"
1732
+ },
1733
+ "thinking": {
1734
+ "type": "string"
1735
+ },
1736
+ "signature": {
1737
+ "type": "string"
1738
+ }
1739
+ },
1740
+ "required": [
1741
+ "type",
1742
+ "thinking",
1743
+ "signature"
1744
+ ],
1745
+ "additionalProperties": false
1746
+ },
1747
+ {
1748
+ "type": "object",
1749
+ "properties": {
1750
+ "type": {
1751
+ "type": "string",
1752
+ "const": "redacted_thinking"
1753
+ },
1754
+ "data": {
1755
+ "type": "string",
1756
+ "minLength": 1,
1757
+ "maxLength": 1000000
1758
+ }
1759
+ },
1760
+ "required": [
1761
+ "type",
1762
+ "data"
1763
+ ],
1764
+ "additionalProperties": false
1647
1765
  }
1648
1766
  ]
1649
1767
  }
@@ -1674,6 +1792,13 @@
1674
1792
  },
1675
1793
  "text": {
1676
1794
  "type": "string"
1795
+ },
1796
+ "cache_control": {
1797
+ "type": "object",
1798
+ "propertyNames": {
1799
+ "type": "string"
1800
+ },
1801
+ "additionalProperties": {}
1677
1802
  }
1678
1803
  },
1679
1804
  "required": [
@@ -1685,6 +1810,13 @@
1685
1810
  }
1686
1811
  ]
1687
1812
  },
1813
+ "cache_control": {
1814
+ "type": "object",
1815
+ "propertyNames": {
1816
+ "type": "string"
1817
+ },
1818
+ "additionalProperties": {}
1819
+ },
1688
1820
  "temperature": {
1689
1821
  "type": "number",
1690
1822
  "minimum": 0,
@@ -1740,6 +1872,16 @@
1740
1872
  },
1741
1873
  "strict": {
1742
1874
  "type": "boolean"
1875
+ },
1876
+ "cache_control": {
1877
+ "type": "object",
1878
+ "propertyNames": {
1879
+ "type": "string"
1880
+ },
1881
+ "additionalProperties": {}
1882
+ },
1883
+ "defer_loading": {
1884
+ "type": "boolean"
1743
1885
  }
1744
1886
  },
1745
1887
  "required": [
@@ -1812,17 +1954,66 @@
1812
1954
  ]
1813
1955
  },
1814
1956
  "thinking": {
1815
- "type": "object",
1816
- "properties": {
1817
- "type": {
1818
- "type": "string",
1819
- "const": "disabled"
1957
+ "oneOf": [
1958
+ {
1959
+ "type": "object",
1960
+ "properties": {
1961
+ "type": {
1962
+ "type": "string",
1963
+ "const": "disabled"
1964
+ }
1965
+ },
1966
+ "required": [
1967
+ "type"
1968
+ ],
1969
+ "additionalProperties": false
1970
+ },
1971
+ {
1972
+ "type": "object",
1973
+ "properties": {
1974
+ "type": {
1975
+ "type": "string",
1976
+ "const": "adaptive"
1977
+ },
1978
+ "display": {
1979
+ "type": "string"
1980
+ }
1981
+ },
1982
+ "required": [
1983
+ "type"
1984
+ ],
1985
+ "additionalProperties": false
1986
+ },
1987
+ {
1988
+ "type": "object",
1989
+ "properties": {
1990
+ "type": {
1991
+ "type": "string",
1992
+ "const": "enabled"
1993
+ },
1994
+ "budget_tokens": {
1995
+ "type": "integer",
1996
+ "exclusiveMinimum": 0,
1997
+ "maximum": 9007199254740991
1998
+ },
1999
+ "display": {
2000
+ "type": "string"
2001
+ }
2002
+ },
2003
+ "required": [
2004
+ "type",
2005
+ "budget_tokens"
2006
+ ],
2007
+ "additionalProperties": false
1820
2008
  }
2009
+ ]
2010
+ },
2011
+ "context_management": {
2012
+ "type": "object",
2013
+ "propertyNames": {
2014
+ "type": "string"
1821
2015
  },
1822
- "required": [
1823
- "type"
1824
- ],
1825
- "additionalProperties": false
2016
+ "additionalProperties": {}
1826
2017
  },
1827
2018
  "output_config": {
1828
2019
  "type": "object",
@@ -1894,6 +2085,27 @@
1894
2085
  "type": "array",
1895
2086
  "items": {
1896
2087
  "oneOf": [
2088
+ {
2089
+ "type": "object",
2090
+ "properties": {
2091
+ "type": {
2092
+ "type": "string",
2093
+ "const": "thinking"
2094
+ },
2095
+ "thinking": {
2096
+ "type": "string"
2097
+ },
2098
+ "signature": {
2099
+ "type": "string"
2100
+ }
2101
+ },
2102
+ "required": [
2103
+ "type",
2104
+ "thinking",
2105
+ "signature"
2106
+ ],
2107
+ "additionalProperties": false
2108
+ },
1897
2109
  {
1898
2110
  "type": "object",
1899
2111
  "properties": {
@@ -1903,6 +2115,13 @@
1903
2115
  },
1904
2116
  "text": {
1905
2117
  "type": "string"
2118
+ },
2119
+ "cache_control": {
2120
+ "type": "object",
2121
+ "propertyNames": {
2122
+ "type": "string"
2123
+ },
2124
+ "additionalProperties": {}
1906
2125
  }
1907
2126
  },
1908
2127
  "required": [
@@ -1934,6 +2153,13 @@
1934
2153
  "type": "string"
1935
2154
  },
1936
2155
  "additionalProperties": {}
2156
+ },
2157
+ "cache_control": {
2158
+ "type": "object",
2159
+ "propertyNames": {
2160
+ "type": "string"
2161
+ },
2162
+ "additionalProperties": {}
1937
2163
  }
1938
2164
  },
1939
2165
  "required": [
@@ -2014,6 +2240,29 @@
2014
2240
  },
2015
2241
  "content_block": {
2016
2242
  "oneOf": [
2243
+ {
2244
+ "type": "object",
2245
+ "properties": {
2246
+ "type": {
2247
+ "type": "string",
2248
+ "const": "thinking"
2249
+ },
2250
+ "thinking": {
2251
+ "type": "string",
2252
+ "const": ""
2253
+ },
2254
+ "signature": {
2255
+ "type": "string",
2256
+ "const": ""
2257
+ }
2258
+ },
2259
+ "required": [
2260
+ "type",
2261
+ "thinking",
2262
+ "signature"
2263
+ ],
2264
+ "additionalProperties": false
2265
+ },
2017
2266
  {
2018
2267
  "type": "object",
2019
2268
  "properties": {
@@ -2053,6 +2302,13 @@
2053
2302
  "type": "object",
2054
2303
  "properties": {},
2055
2304
  "additionalProperties": false
2305
+ },
2306
+ "cache_control": {
2307
+ "type": "object",
2308
+ "propertyNames": {
2309
+ "type": "string"
2310
+ },
2311
+ "additionalProperties": {}
2056
2312
  }
2057
2313
  },
2058
2314
  "required": [
@@ -2104,6 +2360,40 @@
2104
2360
  ],
2105
2361
  "additionalProperties": false
2106
2362
  },
2363
+ {
2364
+ "type": "object",
2365
+ "properties": {
2366
+ "type": {
2367
+ "type": "string",
2368
+ "const": "thinking_delta"
2369
+ },
2370
+ "thinking": {
2371
+ "type": "string"
2372
+ }
2373
+ },
2374
+ "required": [
2375
+ "type",
2376
+ "thinking"
2377
+ ],
2378
+ "additionalProperties": false
2379
+ },
2380
+ {
2381
+ "type": "object",
2382
+ "properties": {
2383
+ "type": {
2384
+ "type": "string",
2385
+ "const": "signature_delta"
2386
+ },
2387
+ "signature": {
2388
+ "type": "string"
2389
+ }
2390
+ },
2391
+ "required": [
2392
+ "type",
2393
+ "signature"
2394
+ ],
2395
+ "additionalProperties": false
2396
+ },
2107
2397
  {
2108
2398
  "type": "object",
2109
2399
  "properties": {
@@ -3876,6 +4166,26 @@
3876
4166
  "text"
3877
4167
  ],
3878
4168
  "additionalProperties": false
4169
+ },
4170
+ {
4171
+ "type": "object",
4172
+ "properties": {
4173
+ "type": {
4174
+ "type": "string",
4175
+ "const": "reasoning"
4176
+ },
4177
+ "text": {
4178
+ "type": "string"
4179
+ },
4180
+ "opaque": {
4181
+ "type": "string",
4182
+ "minLength": 1
4183
+ }
4184
+ },
4185
+ "required": [
4186
+ "type"
4187
+ ],
4188
+ "additionalProperties": false
3879
4189
  }
3880
4190
  ]
3881
4191
  },
@@ -4062,11 +4372,16 @@
4062
4372
  "properties": {
4063
4373
  "effort": {
4064
4374
  "$ref": "#/components/schemas/ReasoningEffort"
4375
+ },
4376
+ "maxTokens": {
4377
+ "type": "integer",
4378
+ "minimum": 1,
4379
+ "maximum": 2147483647
4380
+ },
4381
+ "exclude": {
4382
+ "type": "boolean"
4065
4383
  }
4066
4384
  },
4067
- "required": [
4068
- "effort"
4069
- ],
4070
4385
  "additionalProperties": false
4071
4386
  },
4072
4387
  "InferenceRegion": {
@@ -4193,6 +4508,10 @@
4193
4508
  },
4194
4509
  "text": {
4195
4510
  "type": "string"
4511
+ },
4512
+ "opaque": {
4513
+ "type": "string",
4514
+ "minLength": 1
4196
4515
  }
4197
4516
  },
4198
4517
  "required": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaana.ai/contracts",
3
- "version": "8.5.0",
3
+ "version": "8.7.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,