@meetkai/mka1 0.54.83 → 0.54.85

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 (129) hide show
  1. package/bin/mcp-server.js +35 -69
  2. package/bin/mcp-server.js.map +19 -19
  3. package/dist/commonjs/funcs/llmModelsPutOrgAutoModel.d.ts +1 -1
  4. package/dist/commonjs/funcs/llmModelsPutOrgAutoModel.js +1 -1
  5. package/dist/commonjs/lib/config.d.ts +3 -3
  6. package/dist/commonjs/lib/config.js +3 -3
  7. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  8. package/dist/commonjs/mcp-server/server.js +1 -1
  9. package/dist/commonjs/mcp-server/tools/llmModelsPutOrgAutoModel.js +1 -1
  10. package/dist/commonjs/mcp-server/tools/llmModelsPutOrgAutoModel.js.map +1 -1
  11. package/dist/commonjs/models/components/addcatalogmodelrequest.d.ts +6 -32
  12. package/dist/commonjs/models/components/addcatalogmodelrequest.d.ts.map +1 -1
  13. package/dist/commonjs/models/components/addcatalogmodelrequest.js +3 -43
  14. package/dist/commonjs/models/components/addcatalogmodelrequest.js.map +1 -1
  15. package/dist/commonjs/models/components/balancedorgautomodel.d.ts +3 -0
  16. package/dist/commonjs/models/components/balancedorgautomodel.d.ts.map +1 -1
  17. package/dist/commonjs/models/components/balancedorgautomodel.js.map +1 -1
  18. package/dist/commonjs/models/components/computestandalonevolume.d.ts +6 -0
  19. package/dist/commonjs/models/components/computestandalonevolume.d.ts.map +1 -1
  20. package/dist/commonjs/models/components/computestandalonevolume.js +3 -0
  21. package/dist/commonjs/models/components/computestandalonevolume.js.map +1 -1
  22. package/dist/commonjs/models/components/computestandalonevolumecreate.d.ts +6 -0
  23. package/dist/commonjs/models/components/computestandalonevolumecreate.d.ts.map +1 -1
  24. package/dist/commonjs/models/components/computestandalonevolumecreate.js +3 -0
  25. package/dist/commonjs/models/components/computestandalonevolumecreate.js.map +1 -1
  26. package/dist/commonjs/models/components/livekittokenrequest.d.ts +5 -2
  27. package/dist/commonjs/models/components/livekittokenrequest.d.ts.map +1 -1
  28. package/dist/commonjs/models/components/livekittokenrequest.js +2 -2
  29. package/dist/commonjs/models/components/livekittokenrequest.js.map +1 -1
  30. package/dist/commonjs/models/components/priceorgautomodel.d.ts +3 -0
  31. package/dist/commonjs/models/components/priceorgautomodel.d.ts.map +1 -1
  32. package/dist/commonjs/models/components/priceorgautomodel.js.map +1 -1
  33. package/dist/commonjs/models/components/putorgautomodelrequest.d.ts +1 -1
  34. package/dist/commonjs/models/components/qualityorgautomodel.d.ts +3 -0
  35. package/dist/commonjs/models/components/qualityorgautomodel.d.ts.map +1 -1
  36. package/dist/commonjs/models/components/qualityorgautomodel.js.map +1 -1
  37. package/dist/commonjs/models/components/reasoningconfiguration.d.ts +4 -4
  38. package/dist/commonjs/models/components/reasoningconfiguration.d.ts.map +1 -1
  39. package/dist/commonjs/models/components/reasoningconfiguration.js +4 -4
  40. package/dist/commonjs/models/components/reasoningconfiguration.js.map +1 -1
  41. package/dist/commonjs/models/components/responsescreaterequest.d.ts +5 -2
  42. package/dist/commonjs/models/components/responsescreaterequest.d.ts.map +1 -1
  43. package/dist/commonjs/models/components/responsescreaterequest.js +2 -2
  44. package/dist/commonjs/models/components/responsescreaterequest.js.map +1 -1
  45. package/dist/commonjs/models/components/speedorgautomodel.d.ts +3 -0
  46. package/dist/commonjs/models/components/speedorgautomodel.d.ts.map +1 -1
  47. package/dist/commonjs/models/components/speedorgautomodel.js.map +1 -1
  48. package/dist/commonjs/models/components/updatecatalogmodelrequest.d.ts +6 -32
  49. package/dist/commonjs/models/components/updatecatalogmodelrequest.d.ts.map +1 -1
  50. package/dist/commonjs/models/components/updatecatalogmodelrequest.js +3 -43
  51. package/dist/commonjs/models/components/updatecatalogmodelrequest.js.map +1 -1
  52. package/dist/commonjs/react-query/llmModelsPutOrgAutoModel.d.ts +1 -1
  53. package/dist/commonjs/react-query/llmModelsPutOrgAutoModel.js +1 -1
  54. package/dist/commonjs/sdk/models.d.ts +1 -1
  55. package/dist/commonjs/sdk/models.js +1 -1
  56. package/dist/esm/funcs/llmModelsPutOrgAutoModel.d.ts +1 -1
  57. package/dist/esm/funcs/llmModelsPutOrgAutoModel.js +1 -1
  58. package/dist/esm/lib/config.d.ts +3 -3
  59. package/dist/esm/lib/config.js +3 -3
  60. package/dist/esm/mcp-server/mcp-server.js +1 -1
  61. package/dist/esm/mcp-server/server.js +1 -1
  62. package/dist/esm/mcp-server/tools/llmModelsPutOrgAutoModel.js +1 -1
  63. package/dist/esm/mcp-server/tools/llmModelsPutOrgAutoModel.js.map +1 -1
  64. package/dist/esm/models/components/addcatalogmodelrequest.d.ts +6 -32
  65. package/dist/esm/models/components/addcatalogmodelrequest.d.ts.map +1 -1
  66. package/dist/esm/models/components/addcatalogmodelrequest.js +2 -38
  67. package/dist/esm/models/components/addcatalogmodelrequest.js.map +1 -1
  68. package/dist/esm/models/components/balancedorgautomodel.d.ts +3 -0
  69. package/dist/esm/models/components/balancedorgautomodel.d.ts.map +1 -1
  70. package/dist/esm/models/components/balancedorgautomodel.js.map +1 -1
  71. package/dist/esm/models/components/computestandalonevolume.d.ts +6 -0
  72. package/dist/esm/models/components/computestandalonevolume.d.ts.map +1 -1
  73. package/dist/esm/models/components/computestandalonevolume.js +3 -0
  74. package/dist/esm/models/components/computestandalonevolume.js.map +1 -1
  75. package/dist/esm/models/components/computestandalonevolumecreate.d.ts +6 -0
  76. package/dist/esm/models/components/computestandalonevolumecreate.d.ts.map +1 -1
  77. package/dist/esm/models/components/computestandalonevolumecreate.js +3 -0
  78. package/dist/esm/models/components/computestandalonevolumecreate.js.map +1 -1
  79. package/dist/esm/models/components/livekittokenrequest.d.ts +5 -2
  80. package/dist/esm/models/components/livekittokenrequest.d.ts.map +1 -1
  81. package/dist/esm/models/components/livekittokenrequest.js +2 -2
  82. package/dist/esm/models/components/livekittokenrequest.js.map +1 -1
  83. package/dist/esm/models/components/priceorgautomodel.d.ts +3 -0
  84. package/dist/esm/models/components/priceorgautomodel.d.ts.map +1 -1
  85. package/dist/esm/models/components/priceorgautomodel.js.map +1 -1
  86. package/dist/esm/models/components/putorgautomodelrequest.d.ts +1 -1
  87. package/dist/esm/models/components/qualityorgautomodel.d.ts +3 -0
  88. package/dist/esm/models/components/qualityorgautomodel.d.ts.map +1 -1
  89. package/dist/esm/models/components/qualityorgautomodel.js.map +1 -1
  90. package/dist/esm/models/components/reasoningconfiguration.d.ts +4 -4
  91. package/dist/esm/models/components/reasoningconfiguration.d.ts.map +1 -1
  92. package/dist/esm/models/components/reasoningconfiguration.js +4 -4
  93. package/dist/esm/models/components/reasoningconfiguration.js.map +1 -1
  94. package/dist/esm/models/components/responsescreaterequest.d.ts +5 -2
  95. package/dist/esm/models/components/responsescreaterequest.d.ts.map +1 -1
  96. package/dist/esm/models/components/responsescreaterequest.js +2 -2
  97. package/dist/esm/models/components/responsescreaterequest.js.map +1 -1
  98. package/dist/esm/models/components/speedorgautomodel.d.ts +3 -0
  99. package/dist/esm/models/components/speedorgautomodel.d.ts.map +1 -1
  100. package/dist/esm/models/components/speedorgautomodel.js.map +1 -1
  101. package/dist/esm/models/components/updatecatalogmodelrequest.d.ts +6 -32
  102. package/dist/esm/models/components/updatecatalogmodelrequest.d.ts.map +1 -1
  103. package/dist/esm/models/components/updatecatalogmodelrequest.js +2 -38
  104. package/dist/esm/models/components/updatecatalogmodelrequest.js.map +1 -1
  105. package/dist/esm/react-query/llmModelsPutOrgAutoModel.d.ts +1 -1
  106. package/dist/esm/react-query/llmModelsPutOrgAutoModel.js +1 -1
  107. package/dist/esm/sdk/models.d.ts +1 -1
  108. package/dist/esm/sdk/models.js +1 -1
  109. package/jsr.json +1 -1
  110. package/package.json +1 -1
  111. package/src/funcs/llmModelsPutOrgAutoModel.ts +1 -1
  112. package/src/lib/config.ts +3 -3
  113. package/src/mcp-server/mcp-server.ts +1 -1
  114. package/src/mcp-server/server.ts +1 -1
  115. package/src/mcp-server/tools/llmModelsPutOrgAutoModel.ts +1 -1
  116. package/src/models/components/addcatalogmodelrequest.ts +8 -102
  117. package/src/models/components/balancedorgautomodel.ts +3 -0
  118. package/src/models/components/computestandalonevolume.ts +13 -0
  119. package/src/models/components/computestandalonevolumecreate.ts +13 -0
  120. package/src/models/components/livekittokenrequest.ts +7 -4
  121. package/src/models/components/priceorgautomodel.ts +3 -0
  122. package/src/models/components/putorgautomodelrequest.ts +1 -1
  123. package/src/models/components/qualityorgautomodel.ts +3 -0
  124. package/src/models/components/reasoningconfiguration.ts +8 -8
  125. package/src/models/components/responsescreaterequest.ts +7 -4
  126. package/src/models/components/speedorgautomodel.ts +3 -0
  127. package/src/models/components/updatecatalogmodelrequest.ts +8 -114
  128. package/src/react-query/llmModelsPutOrgAutoModel.ts +1 -1
  129. package/src/sdk/models.ts +1 -1
@@ -185,16 +185,8 @@ export type DefaultParams = {
185
185
  frequencyPenalty?: number | undefined;
186
186
  };
187
187
 
188
- export type Trigger4 = {
189
- type: "error-fallback";
190
- };
191
-
192
- export type Trigger3 = {
193
- type: "context-exceeded";
194
- };
195
-
196
188
  export type Trigger2 = {
197
- type: "base64-input";
189
+ type: "error-fallback";
198
190
  };
199
191
 
200
192
  export const Modality = {
@@ -210,10 +202,10 @@ export type Trigger1 = {
210
202
  modality: Modality;
211
203
  };
212
204
 
213
- export type Trigger = Trigger1 | Trigger2 | Trigger3 | Trigger4;
205
+ export type Trigger = Trigger1 | Trigger2;
214
206
 
215
207
  export type RerouteRules = {
216
- trigger: Trigger1 | Trigger2 | Trigger3 | Trigger4;
208
+ trigger: Trigger1 | Trigger2;
217
209
  targetModelId: string;
218
210
  preserveParams?: boolean | undefined;
219
211
  log?: boolean | undefined;
@@ -1342,87 +1334,17 @@ export function defaultParamsFromJSON(
1342
1334
  );
1343
1335
  }
1344
1336
 
1345
- /** @internal */
1346
- export const Trigger4$inboundSchema: z.ZodType<
1347
- Trigger4,
1348
- z.ZodTypeDef,
1349
- unknown
1350
- > = z.object({
1351
- type: z.literal("error-fallback"),
1352
- });
1353
- /** @internal */
1354
- export type Trigger4$Outbound = {
1355
- type: "error-fallback";
1356
- };
1357
-
1358
- /** @internal */
1359
- export const Trigger4$outboundSchema: z.ZodType<
1360
- Trigger4$Outbound,
1361
- z.ZodTypeDef,
1362
- Trigger4
1363
- > = z.object({
1364
- type: z.literal("error-fallback"),
1365
- });
1366
-
1367
- export function trigger4ToJSON(trigger4: Trigger4): string {
1368
- return JSON.stringify(Trigger4$outboundSchema.parse(trigger4));
1369
- }
1370
- export function trigger4FromJSON(
1371
- jsonString: string,
1372
- ): SafeParseResult<Trigger4, SDKValidationError> {
1373
- return safeParse(
1374
- jsonString,
1375
- (x) => Trigger4$inboundSchema.parse(JSON.parse(x)),
1376
- `Failed to parse 'Trigger4' from JSON`,
1377
- );
1378
- }
1379
-
1380
- /** @internal */
1381
- export const Trigger3$inboundSchema: z.ZodType<
1382
- Trigger3,
1383
- z.ZodTypeDef,
1384
- unknown
1385
- > = z.object({
1386
- type: z.literal("context-exceeded"),
1387
- });
1388
- /** @internal */
1389
- export type Trigger3$Outbound = {
1390
- type: "context-exceeded";
1391
- };
1392
-
1393
- /** @internal */
1394
- export const Trigger3$outboundSchema: z.ZodType<
1395
- Trigger3$Outbound,
1396
- z.ZodTypeDef,
1397
- Trigger3
1398
- > = z.object({
1399
- type: z.literal("context-exceeded"),
1400
- });
1401
-
1402
- export function trigger3ToJSON(trigger3: Trigger3): string {
1403
- return JSON.stringify(Trigger3$outboundSchema.parse(trigger3));
1404
- }
1405
- export function trigger3FromJSON(
1406
- jsonString: string,
1407
- ): SafeParseResult<Trigger3, SDKValidationError> {
1408
- return safeParse(
1409
- jsonString,
1410
- (x) => Trigger3$inboundSchema.parse(JSON.parse(x)),
1411
- `Failed to parse 'Trigger3' from JSON`,
1412
- );
1413
- }
1414
-
1415
1337
  /** @internal */
1416
1338
  export const Trigger2$inboundSchema: z.ZodType<
1417
1339
  Trigger2,
1418
1340
  z.ZodTypeDef,
1419
1341
  unknown
1420
1342
  > = z.object({
1421
- type: z.literal("base64-input"),
1343
+ type: z.literal("error-fallback"),
1422
1344
  });
1423
1345
  /** @internal */
1424
1346
  export type Trigger2$Outbound = {
1425
- type: "base64-input";
1347
+ type: "error-fallback";
1426
1348
  };
1427
1349
 
1428
1350
  /** @internal */
@@ -1431,7 +1353,7 @@ export const Trigger2$outboundSchema: z.ZodType<
1431
1353
  z.ZodTypeDef,
1432
1354
  Trigger2
1433
1355
  > = z.object({
1434
- type: z.literal("base64-input"),
1356
+ type: z.literal("error-fallback"),
1435
1357
  });
1436
1358
 
1437
1359
  export function trigger2ToJSON(trigger2: Trigger2): string {
@@ -1497,15 +1419,9 @@ export const Trigger$inboundSchema: z.ZodType<Trigger, z.ZodTypeDef, unknown> =
1497
1419
  z.union([
1498
1420
  z.lazy(() => Trigger1$inboundSchema),
1499
1421
  z.lazy(() => Trigger2$inboundSchema),
1500
- z.lazy(() => Trigger3$inboundSchema),
1501
- z.lazy(() => Trigger4$inboundSchema),
1502
1422
  ]);
1503
1423
  /** @internal */
1504
- export type Trigger$Outbound =
1505
- | Trigger1$Outbound
1506
- | Trigger2$Outbound
1507
- | Trigger3$Outbound
1508
- | Trigger4$Outbound;
1424
+ export type Trigger$Outbound = Trigger1$Outbound | Trigger2$Outbound;
1509
1425
 
1510
1426
  /** @internal */
1511
1427
  export const Trigger$outboundSchema: z.ZodType<
@@ -1515,8 +1431,6 @@ export const Trigger$outboundSchema: z.ZodType<
1515
1431
  > = z.union([
1516
1432
  z.lazy(() => Trigger1$outboundSchema),
1517
1433
  z.lazy(() => Trigger2$outboundSchema),
1518
- z.lazy(() => Trigger3$outboundSchema),
1519
- z.lazy(() => Trigger4$outboundSchema),
1520
1434
  ]);
1521
1435
 
1522
1436
  export function triggerToJSON(trigger: Trigger): string {
@@ -1541,8 +1455,6 @@ export const RerouteRules$inboundSchema: z.ZodType<
1541
1455
  trigger: z.union([
1542
1456
  z.lazy(() => Trigger1$inboundSchema),
1543
1457
  z.lazy(() => Trigger2$inboundSchema),
1544
- z.lazy(() => Trigger3$inboundSchema),
1545
- z.lazy(() => Trigger4$inboundSchema),
1546
1458
  ]),
1547
1459
  targetModelId: z.string(),
1548
1460
  preserveParams: z.boolean().optional(),
@@ -1550,11 +1462,7 @@ export const RerouteRules$inboundSchema: z.ZodType<
1550
1462
  });
1551
1463
  /** @internal */
1552
1464
  export type RerouteRules$Outbound = {
1553
- trigger:
1554
- | Trigger1$Outbound
1555
- | Trigger2$Outbound
1556
- | Trigger3$Outbound
1557
- | Trigger4$Outbound;
1465
+ trigger: Trigger1$Outbound | Trigger2$Outbound;
1558
1466
  targetModelId: string;
1559
1467
  preserveParams?: boolean | undefined;
1560
1468
  log?: boolean | undefined;
@@ -1569,8 +1477,6 @@ export const RerouteRules$outboundSchema: z.ZodType<
1569
1477
  trigger: z.union([
1570
1478
  z.lazy(() => Trigger1$outboundSchema),
1571
1479
  z.lazy(() => Trigger2$outboundSchema),
1572
- z.lazy(() => Trigger3$outboundSchema),
1573
- z.lazy(() => Trigger4$outboundSchema),
1574
1480
  ]),
1575
1481
  targetModelId: z.string(),
1576
1482
  preserveParams: z.boolean().optional(),
@@ -19,6 +19,9 @@ export type BalancedOrgAutoModel = {
19
19
  setAt: Date;
20
20
  judgeModelId: string;
21
21
  candidateModelIds: Array<string>;
22
+ /**
23
+ * Whether the judge is still active for this org and still a non-reasoning text LLM. When false, `auto` requests on this endpoint fail with 503 `auto_judge_unavailable`.
24
+ */
22
25
  judgeResolvable: boolean;
23
26
  resolvableCandidateModelIds: Array<string>;
24
27
  mode: "balanced";
@@ -18,6 +18,12 @@ import {
18
18
  ComputeStandaloneVolumeState$inboundSchema,
19
19
  ComputeStandaloneVolumeState$outboundSchema,
20
20
  } from "./computestandalonevolumestate.js";
21
+ import {
22
+ ComputeVolumeData,
23
+ ComputeVolumeData$inboundSchema,
24
+ ComputeVolumeData$Outbound,
25
+ ComputeVolumeData$outboundSchema,
26
+ } from "./computevolumedata.js";
21
27
 
22
28
  export type ComputeStandaloneVolume = {
23
29
  accruedCostUsd: number;
@@ -25,6 +31,10 @@ export type ComputeStandaloneVolume = {
25
31
  cleanupFailure: ComputeReason | null;
26
32
  createdAt: Date;
27
33
  currentStoragePriceUsdHr: number;
34
+ /**
35
+ * The volume's downloaded repositories; resolved_revision is set once the volume is ready.
36
+ */
37
+ data: Array<ComputeVolumeData>;
28
38
  deletedAt: Date | null;
29
39
  failure: ComputeReason | null;
30
40
  id: string;
@@ -48,6 +58,7 @@ export const ComputeStandaloneVolume$inboundSchema: z.ZodType<
48
58
  cleanup_failure: z.nullable(ComputeReason$inboundSchema),
49
59
  created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
50
60
  current_storage_price_usd_hr: z.number(),
61
+ data: z.array(ComputeVolumeData$inboundSchema),
51
62
  deleted_at: z.nullable(
52
63
  z.string().datetime({ offset: true }).transform(v => new Date(v)),
53
64
  ),
@@ -86,6 +97,7 @@ export type ComputeStandaloneVolume$Outbound = {
86
97
  cleanup_failure: ComputeReason$Outbound | null;
87
98
  created_at: string;
88
99
  current_storage_price_usd_hr: number;
100
+ data: Array<ComputeVolumeData$Outbound>;
89
101
  deleted_at: string | null;
90
102
  failure: ComputeReason$Outbound | null;
91
103
  id: string;
@@ -109,6 +121,7 @@ export const ComputeStandaloneVolume$outboundSchema: z.ZodType<
109
121
  cleanupFailure: z.nullable(ComputeReason$outboundSchema),
110
122
  createdAt: z.date().transform(v => v.toISOString()),
111
123
  currentStoragePriceUsdHr: z.number(),
124
+ data: z.array(ComputeVolumeData$outboundSchema),
112
125
  deletedAt: z.nullable(z.date().transform(v => v.toISOString())),
113
126
  failure: z.nullable(ComputeReason$outboundSchema),
114
127
  id: z.string(),
@@ -6,8 +6,18 @@ import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+ import {
10
+ ComputeVolumeDataInput,
11
+ ComputeVolumeDataInput$inboundSchema,
12
+ ComputeVolumeDataInput$Outbound,
13
+ ComputeVolumeDataInput$outboundSchema,
14
+ } from "./computevolumedatainput.js";
9
15
 
10
16
  export type ComputeStandaloneVolumeCreate = {
17
+ /**
18
+ * Repositories downloaded into the volume once, before it becomes ready. Each entry needs its own path. Entries on the organization's repositories are read with a short-lived token for the creating credential, which must carry read:repos; other sources are fetched anonymously. A failed download fails the volume, naming the entry; create a new volume to retry.
19
+ */
20
+ data?: Array<ComputeVolumeDataInput> | undefined;
11
21
  name: string;
12
22
  };
13
23
 
@@ -17,10 +27,12 @@ export const ComputeStandaloneVolumeCreate$inboundSchema: z.ZodType<
17
27
  z.ZodTypeDef,
18
28
  unknown
19
29
  > = z.object({
30
+ data: z.array(ComputeVolumeDataInput$inboundSchema).optional(),
20
31
  name: z.string(),
21
32
  });
22
33
  /** @internal */
23
34
  export type ComputeStandaloneVolumeCreate$Outbound = {
35
+ data?: Array<ComputeVolumeDataInput$Outbound> | undefined;
24
36
  name: string;
25
37
  };
26
38
 
@@ -30,6 +42,7 @@ export const ComputeStandaloneVolumeCreate$outboundSchema: z.ZodType<
30
42
  z.ZodTypeDef,
31
43
  ComputeStandaloneVolumeCreate
32
44
  > = z.object({
45
+ data: z.array(ComputeVolumeDataInput$outboundSchema).optional(),
33
46
  name: z.string(),
34
47
  });
35
48
 
@@ -234,7 +234,10 @@ export type Llm = {
234
234
  * The maximum total number of tool calls the agent can make during this response. Useful for controlling execution time and preventing infinite loops. Applies to all built-in tools like web search, file search, code interpreter, etc. Must be a positive integer between 1 and 300. Defaults to 64.
235
235
  */
236
236
  maxToolCalls?: number | undefined;
237
- reasoning?: ReasoningConfiguration | undefined;
237
+ /**
238
+ * Configuration options for reasoning models. Controls reasoning effort level (minimal, low, medium, high) and summary verbosity (auto, concise, detailed). Only applicable to specific reasoning-capable models.
239
+ */
240
+ reasoning?: ReasoningConfiguration | null | undefined;
238
241
  /**
239
242
  * The maximum number of tokens the model can generate in its output. Sets an upper bound to control costs and response length. The actual output may be shorter if the model finishes naturally. Must be a positive integer.
240
243
  */
@@ -488,7 +491,7 @@ export const Llm$inboundSchema: z.ZodType<Llm, z.ZodTypeDef, unknown> = z
488
491
  tool_choice: ToolChoice$inboundSchema.optional(),
489
492
  parallel_tool_calls: z.boolean().default(true),
490
493
  max_tool_calls: z.number().int().default(64),
491
- reasoning: ReasoningConfiguration$inboundSchema.optional(),
494
+ reasoning: z.nullable(ReasoningConfiguration$inboundSchema).optional(),
492
495
  max_output_tokens: z.number().int().optional(),
493
496
  temperature: z.number().optional(),
494
497
  top_p: z.number().optional(),
@@ -542,7 +545,7 @@ export type Llm$Outbound = {
542
545
  tool_choice?: ToolChoice$Outbound | undefined;
543
546
  parallel_tool_calls: boolean;
544
547
  max_tool_calls: number;
545
- reasoning?: ReasoningConfiguration$Outbound | undefined;
548
+ reasoning?: ReasoningConfiguration$Outbound | null | undefined;
546
549
  max_output_tokens?: number | undefined;
547
550
  temperature?: number | undefined;
548
551
  top_p?: number | undefined;
@@ -585,7 +588,7 @@ export const Llm$outboundSchema: z.ZodType<Llm$Outbound, z.ZodTypeDef, Llm> = z
585
588
  toolChoice: ToolChoice$outboundSchema.optional(),
586
589
  parallelToolCalls: z.boolean().default(true),
587
590
  maxToolCalls: z.number().int().default(64),
588
- reasoning: ReasoningConfiguration$outboundSchema.optional(),
591
+ reasoning: z.nullable(ReasoningConfiguration$outboundSchema).optional(),
589
592
  maxOutputTokens: z.number().int().optional(),
590
593
  temperature: z.number().optional(),
591
594
  topP: z.number().optional(),
@@ -19,6 +19,9 @@ export type PriceOrgAutoModel = {
19
19
  setAt: Date;
20
20
  judgeModelId: string;
21
21
  candidateModelIds: Array<string>;
22
+ /**
23
+ * Whether the judge is still active for this org and still a non-reasoning text LLM. When false, `auto` requests on this endpoint fail with 503 `auto_judge_unavailable`.
24
+ */
22
25
  judgeResolvable: boolean;
23
26
  resolvableCandidateModelIds: Array<string>;
24
27
  mode: "price";
@@ -20,7 +20,7 @@ export type Policy = ClosedEnum<typeof Policy>;
20
20
  export type PutOrgAutoModelRequest2 = {
21
21
  policy?: Policy | undefined;
22
22
  /**
23
- * An active text LLM used only to select among eligible candidates.
23
+ * An active, non-reasoning text LLM used only to select among eligible candidates.
24
24
  */
25
25
  judgeModelId: string;
26
26
  /**
@@ -19,6 +19,9 @@ export type QualityOrgAutoModel = {
19
19
  setAt: Date;
20
20
  judgeModelId: string;
21
21
  candidateModelIds: Array<string>;
22
+ /**
23
+ * Whether the judge is still active for this org and still a non-reasoning text LLM. When false, `auto` requests on this endpoint fail with 503 `auto_judge_unavailable`.
24
+ */
22
25
  judgeResolvable: boolean;
23
26
  resolvableCandidateModelIds: Array<string>;
24
27
  mode: "quality";
@@ -26,8 +26,8 @@ export const Summary = {
26
26
  export type Summary = ClosedEnum<typeof Summary>;
27
27
 
28
28
  export type ReasoningConfiguration = {
29
- effort: Effort | null;
30
- summary: Summary | null;
29
+ effort?: Effort | null | undefined;
30
+ summary?: Summary | null | undefined;
31
31
  };
32
32
 
33
33
  /** @internal */
@@ -50,13 +50,13 @@ export const ReasoningConfiguration$inboundSchema: z.ZodType<
50
50
  z.ZodTypeDef,
51
51
  unknown
52
52
  > = z.object({
53
- effort: z.nullable(Effort$inboundSchema),
54
- summary: z.nullable(Summary$inboundSchema),
53
+ effort: z.nullable(Effort$inboundSchema).optional(),
54
+ summary: z.nullable(Summary$inboundSchema).optional(),
55
55
  });
56
56
  /** @internal */
57
57
  export type ReasoningConfiguration$Outbound = {
58
- effort: string | null;
59
- summary: string | null;
58
+ effort?: string | null | undefined;
59
+ summary?: string | null | undefined;
60
60
  };
61
61
 
62
62
  /** @internal */
@@ -65,8 +65,8 @@ export const ReasoningConfiguration$outboundSchema: z.ZodType<
65
65
  z.ZodTypeDef,
66
66
  ReasoningConfiguration
67
67
  > = z.object({
68
- effort: z.nullable(Effort$outboundSchema),
69
- summary: z.nullable(Summary$outboundSchema),
68
+ effort: z.nullable(Effort$outboundSchema).optional(),
69
+ summary: z.nullable(Summary$outboundSchema).optional(),
70
70
  });
71
71
 
72
72
  export function reasoningConfigurationToJSON(
@@ -345,7 +345,10 @@ export type ResponsesCreateRequest = {
345
345
  * The maximum total number of tool calls the agent can make during this response. Useful for controlling execution time and preventing infinite loops. Applies to all built-in tools like web search, file search, code interpreter, etc. Must be a positive integer between 1 and 300. Defaults to 64.
346
346
  */
347
347
  maxToolCalls?: number | undefined;
348
- reasoning?: ReasoningConfiguration | undefined;
348
+ /**
349
+ * Configuration options for reasoning models. Controls reasoning effort level (minimal, low, medium, high) and summary verbosity (auto, concise, detailed). Only applicable to specific reasoning-capable models.
350
+ */
351
+ reasoning?: ReasoningConfiguration | null | undefined;
349
352
  /**
350
353
  * The maximum number of tokens the model can generate in its output. Sets an upper bound to control costs and response length. The actual output may be shorter if the model finishes naturally. Must be a positive integer.
351
354
  */
@@ -834,7 +837,7 @@ export const ResponsesCreateRequest$inboundSchema: z.ZodType<
834
837
  tool_choice: ToolChoice$inboundSchema.optional(),
835
838
  parallel_tool_calls: z.boolean().default(true),
836
839
  max_tool_calls: z.number().int().default(64),
837
- reasoning: ReasoningConfiguration$inboundSchema.optional(),
840
+ reasoning: z.nullable(ReasoningConfiguration$inboundSchema).optional(),
838
841
  max_output_tokens: z.number().int().optional(),
839
842
  temperature: z.number().optional(),
840
843
  top_p: z.number().optional(),
@@ -930,7 +933,7 @@ export type ResponsesCreateRequest$Outbound = {
930
933
  tool_choice?: ToolChoice$Outbound | undefined;
931
934
  parallel_tool_calls: boolean;
932
935
  max_tool_calls: number;
933
- reasoning?: ReasoningConfiguration$Outbound | undefined;
936
+ reasoning?: ReasoningConfiguration$Outbound | null | undefined;
934
937
  max_output_tokens?: number | undefined;
935
938
  temperature?: number | undefined;
936
939
  top_p?: number | undefined;
@@ -1002,7 +1005,7 @@ export const ResponsesCreateRequest$outboundSchema: z.ZodType<
1002
1005
  toolChoice: ToolChoice$outboundSchema.optional(),
1003
1006
  parallelToolCalls: z.boolean().default(true),
1004
1007
  maxToolCalls: z.number().int().default(64),
1005
- reasoning: ReasoningConfiguration$outboundSchema.optional(),
1008
+ reasoning: z.nullable(ReasoningConfiguration$outboundSchema).optional(),
1006
1009
  maxOutputTokens: z.number().int().optional(),
1007
1010
  temperature: z.number().optional(),
1008
1011
  topP: z.number().optional(),
@@ -19,6 +19,9 @@ export type SpeedOrgAutoModel = {
19
19
  setAt: Date;
20
20
  judgeModelId: string;
21
21
  candidateModelIds: Array<string>;
22
+ /**
23
+ * Whether the judge is still active for this org and still a non-reasoning text LLM. When false, `auto` requests on this endpoint fail with 503 `auto_judge_unavailable`.
24
+ */
22
25
  judgeResolvable: boolean;
23
26
  resolvableCandidateModelIds: Array<string>;
24
27
  mode: "speed";
@@ -200,16 +200,8 @@ export type UpdateCatalogModelRequestDefaultParams = {
200
200
  frequencyPenalty?: number | undefined;
201
201
  };
202
202
 
203
- export type UpdateCatalogModelRequestTrigger4 = {
204
- type: "error-fallback";
205
- };
206
-
207
- export type UpdateCatalogModelRequestTrigger3 = {
208
- type: "context-exceeded";
209
- };
210
-
211
203
  export type UpdateCatalogModelRequestTrigger2 = {
212
- type: "base64-input";
204
+ type: "error-fallback";
213
205
  };
214
206
 
215
207
  export const TriggerModality = {
@@ -227,16 +219,12 @@ export type UpdateCatalogModelRequestTrigger1 = {
227
219
 
228
220
  export type RerouteRulesTrigger =
229
221
  | UpdateCatalogModelRequestTrigger1
230
- | UpdateCatalogModelRequestTrigger2
231
- | UpdateCatalogModelRequestTrigger3
232
- | UpdateCatalogModelRequestTrigger4;
222
+ | UpdateCatalogModelRequestTrigger2;
233
223
 
234
224
  export type UpdateCatalogModelRequestRerouteRules = {
235
225
  trigger:
236
226
  | UpdateCatalogModelRequestTrigger1
237
- | UpdateCatalogModelRequestTrigger2
238
- | UpdateCatalogModelRequestTrigger3
239
- | UpdateCatalogModelRequestTrigger4;
227
+ | UpdateCatalogModelRequestTrigger2;
240
228
  targetModelId: string;
241
229
  preserveParams?: boolean | undefined;
242
230
  log?: boolean | undefined;
@@ -1568,99 +1556,17 @@ export function updateCatalogModelRequestDefaultParamsFromJSON(
1568
1556
  );
1569
1557
  }
1570
1558
 
1571
- /** @internal */
1572
- export const UpdateCatalogModelRequestTrigger4$inboundSchema: z.ZodType<
1573
- UpdateCatalogModelRequestTrigger4,
1574
- z.ZodTypeDef,
1575
- unknown
1576
- > = z.object({
1577
- type: z.literal("error-fallback"),
1578
- });
1579
- /** @internal */
1580
- export type UpdateCatalogModelRequestTrigger4$Outbound = {
1581
- type: "error-fallback";
1582
- };
1583
-
1584
- /** @internal */
1585
- export const UpdateCatalogModelRequestTrigger4$outboundSchema: z.ZodType<
1586
- UpdateCatalogModelRequestTrigger4$Outbound,
1587
- z.ZodTypeDef,
1588
- UpdateCatalogModelRequestTrigger4
1589
- > = z.object({
1590
- type: z.literal("error-fallback"),
1591
- });
1592
-
1593
- export function updateCatalogModelRequestTrigger4ToJSON(
1594
- updateCatalogModelRequestTrigger4: UpdateCatalogModelRequestTrigger4,
1595
- ): string {
1596
- return JSON.stringify(
1597
- UpdateCatalogModelRequestTrigger4$outboundSchema.parse(
1598
- updateCatalogModelRequestTrigger4,
1599
- ),
1600
- );
1601
- }
1602
- export function updateCatalogModelRequestTrigger4FromJSON(
1603
- jsonString: string,
1604
- ): SafeParseResult<UpdateCatalogModelRequestTrigger4, SDKValidationError> {
1605
- return safeParse(
1606
- jsonString,
1607
- (x) => UpdateCatalogModelRequestTrigger4$inboundSchema.parse(JSON.parse(x)),
1608
- `Failed to parse 'UpdateCatalogModelRequestTrigger4' from JSON`,
1609
- );
1610
- }
1611
-
1612
- /** @internal */
1613
- export const UpdateCatalogModelRequestTrigger3$inboundSchema: z.ZodType<
1614
- UpdateCatalogModelRequestTrigger3,
1615
- z.ZodTypeDef,
1616
- unknown
1617
- > = z.object({
1618
- type: z.literal("context-exceeded"),
1619
- });
1620
- /** @internal */
1621
- export type UpdateCatalogModelRequestTrigger3$Outbound = {
1622
- type: "context-exceeded";
1623
- };
1624
-
1625
- /** @internal */
1626
- export const UpdateCatalogModelRequestTrigger3$outboundSchema: z.ZodType<
1627
- UpdateCatalogModelRequestTrigger3$Outbound,
1628
- z.ZodTypeDef,
1629
- UpdateCatalogModelRequestTrigger3
1630
- > = z.object({
1631
- type: z.literal("context-exceeded"),
1632
- });
1633
-
1634
- export function updateCatalogModelRequestTrigger3ToJSON(
1635
- updateCatalogModelRequestTrigger3: UpdateCatalogModelRequestTrigger3,
1636
- ): string {
1637
- return JSON.stringify(
1638
- UpdateCatalogModelRequestTrigger3$outboundSchema.parse(
1639
- updateCatalogModelRequestTrigger3,
1640
- ),
1641
- );
1642
- }
1643
- export function updateCatalogModelRequestTrigger3FromJSON(
1644
- jsonString: string,
1645
- ): SafeParseResult<UpdateCatalogModelRequestTrigger3, SDKValidationError> {
1646
- return safeParse(
1647
- jsonString,
1648
- (x) => UpdateCatalogModelRequestTrigger3$inboundSchema.parse(JSON.parse(x)),
1649
- `Failed to parse 'UpdateCatalogModelRequestTrigger3' from JSON`,
1650
- );
1651
- }
1652
-
1653
1559
  /** @internal */
1654
1560
  export const UpdateCatalogModelRequestTrigger2$inboundSchema: z.ZodType<
1655
1561
  UpdateCatalogModelRequestTrigger2,
1656
1562
  z.ZodTypeDef,
1657
1563
  unknown
1658
1564
  > = z.object({
1659
- type: z.literal("base64-input"),
1565
+ type: z.literal("error-fallback"),
1660
1566
  });
1661
1567
  /** @internal */
1662
1568
  export type UpdateCatalogModelRequestTrigger2$Outbound = {
1663
- type: "base64-input";
1569
+ type: "error-fallback";
1664
1570
  };
1665
1571
 
1666
1572
  /** @internal */
@@ -1669,7 +1575,7 @@ export const UpdateCatalogModelRequestTrigger2$outboundSchema: z.ZodType<
1669
1575
  z.ZodTypeDef,
1670
1576
  UpdateCatalogModelRequestTrigger2
1671
1577
  > = z.object({
1672
- type: z.literal("base64-input"),
1578
+ type: z.literal("error-fallback"),
1673
1579
  });
1674
1580
 
1675
1581
  export function updateCatalogModelRequestTrigger2ToJSON(
@@ -1752,15 +1658,11 @@ export const RerouteRulesTrigger$inboundSchema: z.ZodType<
1752
1658
  > = z.union([
1753
1659
  z.lazy(() => UpdateCatalogModelRequestTrigger1$inboundSchema),
1754
1660
  z.lazy(() => UpdateCatalogModelRequestTrigger2$inboundSchema),
1755
- z.lazy(() => UpdateCatalogModelRequestTrigger3$inboundSchema),
1756
- z.lazy(() => UpdateCatalogModelRequestTrigger4$inboundSchema),
1757
1661
  ]);
1758
1662
  /** @internal */
1759
1663
  export type RerouteRulesTrigger$Outbound =
1760
1664
  | UpdateCatalogModelRequestTrigger1$Outbound
1761
- | UpdateCatalogModelRequestTrigger2$Outbound
1762
- | UpdateCatalogModelRequestTrigger3$Outbound
1763
- | UpdateCatalogModelRequestTrigger4$Outbound;
1665
+ | UpdateCatalogModelRequestTrigger2$Outbound;
1764
1666
 
1765
1667
  /** @internal */
1766
1668
  export const RerouteRulesTrigger$outboundSchema: z.ZodType<
@@ -1770,8 +1672,6 @@ export const RerouteRulesTrigger$outboundSchema: z.ZodType<
1770
1672
  > = z.union([
1771
1673
  z.lazy(() => UpdateCatalogModelRequestTrigger1$outboundSchema),
1772
1674
  z.lazy(() => UpdateCatalogModelRequestTrigger2$outboundSchema),
1773
- z.lazy(() => UpdateCatalogModelRequestTrigger3$outboundSchema),
1774
- z.lazy(() => UpdateCatalogModelRequestTrigger4$outboundSchema),
1775
1675
  ]);
1776
1676
 
1777
1677
  export function rerouteRulesTriggerToJSON(
@@ -1800,8 +1700,6 @@ export const UpdateCatalogModelRequestRerouteRules$inboundSchema: z.ZodType<
1800
1700
  trigger: z.union([
1801
1701
  z.lazy(() => UpdateCatalogModelRequestTrigger1$inboundSchema),
1802
1702
  z.lazy(() => UpdateCatalogModelRequestTrigger2$inboundSchema),
1803
- z.lazy(() => UpdateCatalogModelRequestTrigger3$inboundSchema),
1804
- z.lazy(() => UpdateCatalogModelRequestTrigger4$inboundSchema),
1805
1703
  ]),
1806
1704
  targetModelId: z.string(),
1807
1705
  preserveParams: z.boolean().optional(),
@@ -1811,9 +1709,7 @@ export const UpdateCatalogModelRequestRerouteRules$inboundSchema: z.ZodType<
1811
1709
  export type UpdateCatalogModelRequestRerouteRules$Outbound = {
1812
1710
  trigger:
1813
1711
  | UpdateCatalogModelRequestTrigger1$Outbound
1814
- | UpdateCatalogModelRequestTrigger2$Outbound
1815
- | UpdateCatalogModelRequestTrigger3$Outbound
1816
- | UpdateCatalogModelRequestTrigger4$Outbound;
1712
+ | UpdateCatalogModelRequestTrigger2$Outbound;
1817
1713
  targetModelId: string;
1818
1714
  preserveParams?: boolean | undefined;
1819
1715
  log?: boolean | undefined;
@@ -1828,8 +1724,6 @@ export const UpdateCatalogModelRequestRerouteRules$outboundSchema: z.ZodType<
1828
1724
  trigger: z.union([
1829
1725
  z.lazy(() => UpdateCatalogModelRequestTrigger1$outboundSchema),
1830
1726
  z.lazy(() => UpdateCatalogModelRequestTrigger2$outboundSchema),
1831
- z.lazy(() => UpdateCatalogModelRequestTrigger3$outboundSchema),
1832
- z.lazy(() => UpdateCatalogModelRequestTrigger4$outboundSchema),
1833
1727
  ]),
1834
1728
  targetModelId: z.string(),
1835
1729
  preserveParams: z.boolean().optional(),
@@ -48,7 +48,7 @@ export type LlmModelsPutOrgAutoModelMutationError =
48
48
  * Set this org's auto policy for an endpoint
49
49
  *
50
50
  * @remarks
51
- * Stores either the existing direct `{ endpoint → model_id }` alias or a judge policy with candidate models. Judge routing is supported for responses, completions, transcriptions, and TTS. All configured models must be active when written; revoked candidates are filtered at request time, while an unavailable judge is an explicit error.
51
+ * Stores either the existing direct `{ endpoint → model_id }` alias or a judge policy with candidate models. Judge routing is supported for responses, completions, transcriptions, and TTS. The judge must be a non-reasoning text LLM. All configured models must be active when written; revoked candidates are filtered at request time, while an unavailable judge is an explicit error.
52
52
  */
53
53
  export function useLlmModelsPutOrgAutoModelMutation(
54
54
  options?: MutationHookOptions<
package/src/sdk/models.ts CHANGED
@@ -287,7 +287,7 @@ export class Models extends ClientSDK {
287
287
  * Set this org's auto policy for an endpoint
288
288
  *
289
289
  * @remarks
290
- * Stores either the existing direct `{ endpoint → model_id }` alias or a judge policy with candidate models. Judge routing is supported for responses, completions, transcriptions, and TTS. All configured models must be active when written; revoked candidates are filtered at request time, while an unavailable judge is an explicit error.
290
+ * Stores either the existing direct `{ endpoint → model_id }` alias or a judge policy with candidate models. Judge routing is supported for responses, completions, transcriptions, and TTS. The judge must be a non-reasoning text LLM. All configured models must be active when written; revoked candidates are filtered at request time, while an unavailable judge is an explicit error.
291
291
  */
292
292
  async putOrgAutoModel(
293
293
  request: operations.PutOrgAutoModelRequest,