@anchrd/colab-sdk 0.1.43 → 0.1.45

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.
@@ -12,6 +12,10 @@ export declare const gatewayCatalog: readonly [{
12
12
  readonly cacheRead: 0.044;
13
13
  readonly output: 3.96;
14
14
  };
15
+ readonly reasoning: {
16
+ readonly level: "medium";
17
+ readonly adjustable: true;
18
+ };
15
19
  }, {
16
20
  readonly model: "workers-ai/@cf/deepseek-ai/deepseek-v4.1-flash-1017";
17
21
  readonly name: "DeepSeek V4.1 Flash";
@@ -21,6 +25,10 @@ export declare const gatewayCatalog: readonly [{
21
25
  readonly cacheRead: 0.006;
22
26
  readonly output: 1.2;
23
27
  };
28
+ readonly reasoning: {
29
+ readonly level: "medium";
30
+ readonly adjustable: true;
31
+ };
24
32
  }, {
25
33
  readonly model: "anthropic/claude-haiku-5-5";
26
34
  readonly name: "Claude Haiku 5.5";
@@ -31,6 +39,10 @@ export declare const gatewayCatalog: readonly [{
31
39
  readonly cacheWrite: 0.125;
32
40
  readonly output: 0.5;
33
41
  };
42
+ readonly reasoning: {
43
+ readonly level: "off";
44
+ readonly adjustable: false;
45
+ };
34
46
  }, {
35
47
  readonly model: "anthropic/claude-sonnet-5-5";
36
48
  readonly name: "Claude Sonnet 5.5";
@@ -41,6 +53,10 @@ export declare const gatewayCatalog: readonly [{
41
53
  readonly cacheWrite: 2.5;
42
54
  readonly output: 10;
43
55
  };
56
+ readonly reasoning: {
57
+ readonly level: "off";
58
+ readonly adjustable: false;
59
+ };
44
60
  }, {
45
61
  readonly model: "anthropic/claude-opus-5-5";
46
62
  readonly name: "Claude Opus 5.5";
@@ -51,6 +67,10 @@ export declare const gatewayCatalog: readonly [{
51
67
  readonly cacheWrite: 5;
52
68
  readonly output: 20;
53
69
  };
70
+ readonly reasoning: {
71
+ readonly level: "off";
72
+ readonly adjustable: false;
73
+ };
54
74
  }, {
55
75
  readonly model: "anthropic/claude-fable-5-1";
56
76
  readonly name: "Claude Fable 5.1";
@@ -61,6 +81,10 @@ export declare const gatewayCatalog: readonly [{
61
81
  readonly cacheWrite: 12.5;
62
82
  readonly output: 50;
63
83
  };
84
+ readonly reasoning: {
85
+ readonly level: "off";
86
+ readonly adjustable: false;
87
+ };
64
88
  }, {
65
89
  readonly model: "xai/grok-4.7";
66
90
  readonly name: "Grok 4.7";
@@ -70,6 +94,10 @@ export declare const gatewayCatalog: readonly [{
70
94
  readonly cacheRead: 0.5;
71
95
  readonly output: 6;
72
96
  };
97
+ readonly reasoning: {
98
+ readonly level: "medium";
99
+ readonly adjustable: false;
100
+ };
73
101
  }, {
74
102
  readonly model: "moonshotai/kimi-k3";
75
103
  readonly name: "Kimi K3";
@@ -79,6 +107,10 @@ export declare const gatewayCatalog: readonly [{
79
107
  readonly cacheRead: 0.3;
80
108
  readonly output: 15;
81
109
  };
110
+ readonly reasoning: {
111
+ readonly level: "medium";
112
+ readonly adjustable: false;
113
+ };
82
114
  }, {
83
115
  readonly model: "workers-ai/@cf/moonshotai/kimi-k2.7-code";
84
116
  readonly name: "Kimi K2.7 Code";
@@ -88,6 +120,10 @@ export declare const gatewayCatalog: readonly [{
88
120
  readonly cacheRead: 0.19;
89
121
  readonly output: 4;
90
122
  };
123
+ readonly reasoning: {
124
+ readonly level: "medium";
125
+ readonly adjustable: false;
126
+ };
91
127
  }, {
92
128
  readonly model: "workers-ai/@cf/moonshotai/kimi-k2.6";
93
129
  readonly name: "Kimi K2.6";
@@ -97,6 +133,10 @@ export declare const gatewayCatalog: readonly [{
97
133
  readonly cacheRead: 0.16;
98
134
  readonly output: 4;
99
135
  };
136
+ readonly reasoning: {
137
+ readonly level: "medium";
138
+ readonly adjustable: false;
139
+ };
100
140
  }, {
101
141
  readonly model: "workers-ai/@cf/zai-org/glm-5.3";
102
142
  readonly name: "GLM 5.3";
@@ -106,6 +146,10 @@ export declare const gatewayCatalog: readonly [{
106
146
  readonly cacheRead: 0.26;
107
147
  readonly output: 4.4;
108
148
  };
149
+ readonly reasoning: {
150
+ readonly level: "medium";
151
+ readonly adjustable: false;
152
+ };
109
153
  }, {
110
154
  readonly model: "workers-ai/@cf/zai-org/glm-5.3-flash";
111
155
  readonly name: "GLM 5.3 Flash";
@@ -115,6 +159,10 @@ export declare const gatewayCatalog: readonly [{
115
159
  readonly cacheRead: 0.03;
116
160
  readonly output: 0.5;
117
161
  };
162
+ readonly reasoning: {
163
+ readonly level: "medium";
164
+ readonly adjustable: false;
165
+ };
118
166
  }, {
119
167
  readonly model: "workers-ai/@cf/qwen/qwen3.8-27b";
120
168
  readonly name: "Qwen3.8 27B";
@@ -124,6 +172,10 @@ export declare const gatewayCatalog: readonly [{
124
172
  readonly cacheRead: 0.05;
125
173
  readonly output: 3.2;
126
174
  };
175
+ readonly reasoning: {
176
+ readonly level: "medium";
177
+ readonly adjustable: false;
178
+ };
127
179
  }, {
128
180
  readonly model: "workers-ai/@cf/google/gemma-4-26b-a4b-it";
129
181
  readonly name: "Gemma 4 26B";
@@ -133,6 +185,10 @@ export declare const gatewayCatalog: readonly [{
133
185
  readonly cacheRead: 0.1;
134
186
  readonly output: 0.3;
135
187
  };
188
+ readonly reasoning: {
189
+ readonly level: "off";
190
+ readonly adjustable: false;
191
+ };
136
192
  }, {
137
193
  readonly model: "workers-ai/@cf/nvidia/nemotron-3-120b-a12b";
138
194
  readonly name: "Nemotron 3 120B";
@@ -142,6 +198,10 @@ export declare const gatewayCatalog: readonly [{
142
198
  readonly cacheRead: 0.5;
143
199
  readonly output: 1.5;
144
200
  };
201
+ readonly reasoning: {
202
+ readonly level: "medium";
203
+ readonly adjustable: false;
204
+ };
145
205
  }, {
146
206
  readonly model: "workers-ai/@cf/meta/llama-4-scout-17b-16e-instruct";
147
207
  readonly name: "Llama 4 Scout";
@@ -151,6 +211,10 @@ export declare const gatewayCatalog: readonly [{
151
211
  readonly cacheRead: 0.27;
152
212
  readonly output: 0.85;
153
213
  };
214
+ readonly reasoning: {
215
+ readonly level: "off";
216
+ readonly adjustable: false;
217
+ };
154
218
  }, {
155
219
  readonly model: "workers-ai/@cf/mistralai/mistral-small-3.1-24b-instruct";
156
220
  readonly name: "Mistral Small 3.1";
@@ -160,6 +224,10 @@ export declare const gatewayCatalog: readonly [{
160
224
  readonly cacheRead: 0.351;
161
225
  readonly output: 0.555;
162
226
  };
227
+ readonly reasoning: {
228
+ readonly level: "off";
229
+ readonly adjustable: false;
230
+ };
163
231
  }, {
164
232
  readonly model: "openai/gpt-6.1-terra";
165
233
  readonly name: "GPT-6.1 Terra";
@@ -170,6 +238,10 @@ export declare const gatewayCatalog: readonly [{
170
238
  readonly cacheWrite: 1.25;
171
239
  readonly output: 5;
172
240
  };
241
+ readonly reasoning: {
242
+ readonly level: "off";
243
+ readonly adjustable: false;
244
+ };
173
245
  readonly outputLimit: "max_completion_tokens";
174
246
  readonly reasoningEffort: "none";
175
247
  }, {
@@ -182,6 +254,10 @@ export declare const gatewayCatalog: readonly [{
182
254
  readonly cacheWrite: 0.125;
183
255
  readonly output: 0.5;
184
256
  };
257
+ readonly reasoning: {
258
+ readonly level: "off";
259
+ readonly adjustable: false;
260
+ };
185
261
  readonly outputLimit: "max_completion_tokens";
186
262
  readonly reasoningEffort: "none";
187
263
  }];
@@ -208,7 +284,29 @@ export type RetiredGatewayModel = (typeof retiredGatewayModels)[number]["model"]
208
284
  export declare function gatewayModelOf(model: string): GatewayModelEntry | null;
209
285
  export type GatewayOutputLimit = "max_tokens" | "max_completion_tokens";
210
286
  export declare function outputLimitOf(model: string): GatewayOutputLimit;
211
- export declare function reasoningEffortOf(model: string): "none" | null;
287
+ export declare const ReasoningLevel: z.ZodEnum<{
288
+ medium: "medium";
289
+ off: "off";
290
+ low: "low";
291
+ high: "high";
292
+ }>;
293
+ export type ReasoningLevel = z.infer<typeof ReasoningLevel>;
294
+ export declare const ReasoningStage: z.ZodEnum<{
295
+ default: "default";
296
+ medium: "medium";
297
+ off: "off";
298
+ low: "low";
299
+ high: "high";
300
+ }>;
301
+ export type ReasoningStage = z.infer<typeof ReasoningStage>;
302
+ export declare const reasoningDefault: ReasoningStage;
303
+ export declare function reasoningOfModel(model: string): {
304
+ level: ReasoningLevel;
305
+ adjustable: boolean;
306
+ } | null;
307
+ export declare function reasoningAdjustable(model: string): boolean;
308
+ export type ReasoningEffort = "none" | "low" | "medium" | "high";
309
+ export declare function reasoningEffortOf(model: string, stage: ReasoningStage): ReasoningEffort | null;
212
310
  export declare function cacheWritePriceOf(entry: GatewayModelEntry): number;
213
311
  export declare const GatewayModelEntrySchema: z.ZodObject<{
214
312
  model: z.ZodString;
@@ -225,6 +323,15 @@ export declare const GatewayModelEntrySchema: z.ZodObject<{
225
323
  max_tokens: "max_tokens";
226
324
  }>>;
227
325
  reasoningEffort: z.ZodOptional<z.ZodLiteral<"none">>;
326
+ reasoning: z.ZodObject<{
327
+ level: z.ZodEnum<{
328
+ medium: "medium";
329
+ off: "off";
330
+ low: "low";
331
+ high: "high";
332
+ }>;
333
+ adjustable: z.ZodBoolean;
334
+ }, z.core.$strip>;
228
335
  }, z.core.$strip>;
229
336
  export declare const operatorProviders: readonly [{
230
337
  readonly provider: "claude";
@@ -458,6 +565,35 @@ export declare const CredentialRevokeInput: z.ZodObject<{
458
565
  credentialId: z.ZodTemplateLiteral<`credential_${string}`>;
459
566
  }, z.core.$strict>;
460
567
  export type CredentialRevokeInput = z.infer<typeof CredentialRevokeInput>;
568
+ export declare const UserCredentialCreateInput: z.ZodObject<{
569
+ userId: z.ZodTemplateLiteral<`user_${string}`>;
570
+ name: z.ZodOptional<z.ZodString>;
571
+ value: z.ZodString;
572
+ }, z.core.$strict>;
573
+ export type UserCredentialCreateInput = z.infer<typeof UserCredentialCreateInput>;
574
+ export declare const UserCredentialUpdateInput: z.ZodObject<{
575
+ userId: z.ZodTemplateLiteral<`user_${string}`>;
576
+ credentialId: z.ZodTemplateLiteral<`credential_${string}`>;
577
+ name: z.ZodOptional<z.ZodString>;
578
+ value: z.ZodOptional<z.ZodString>;
579
+ }, z.core.$strict>;
580
+ export type UserCredentialUpdateInput = z.infer<typeof UserCredentialUpdateInput>;
581
+ export declare const UserCredentialTestInput: z.ZodObject<{
582
+ userId: z.ZodTemplateLiteral<`user_${string}`>;
583
+ credentialId: z.ZodTemplateLiteral<`credential_${string}`>;
584
+ }, z.core.$strict>;
585
+ export type UserCredentialTestInput = z.infer<typeof UserCredentialTestInput>;
586
+ export declare const UserCredentialRevokeInput: z.ZodObject<{
587
+ userId: z.ZodTemplateLiteral<`user_${string}`>;
588
+ credentialId: z.ZodTemplateLiteral<`credential_${string}`>;
589
+ }, z.core.$strict>;
590
+ export type UserCredentialRevokeInput = z.infer<typeof UserCredentialRevokeInput>;
591
+ export declare const OwnCredentialState: z.ZodEnum<{
592
+ limit: "limit";
593
+ invalid: "invalid";
594
+ valid: "valid";
595
+ }>;
596
+ export type OwnCredentialState = z.infer<typeof OwnCredentialState>;
461
597
  export declare const Credential: z.ZodObject<{
462
598
  credentialId: z.ZodTemplateLiteral<`credential_${string}`>;
463
599
  provider: z.ZodNullable<z.ZodEnum<{
@@ -691,6 +827,7 @@ export type OperatorState = z.infer<typeof OperatorState>;
691
827
  export declare const PauseReason: z.ZodEnum<{
692
828
  credential: "credential";
693
829
  limit: "limit";
830
+ own: "own";
694
831
  manual: "manual";
695
832
  model: "model";
696
833
  failures: "failures";
@@ -814,6 +951,13 @@ export declare const OperatorMachineUpdateInput: z.ZodObject<{
814
951
  "gemini-2.5-flash": "gemini-2.5-flash";
815
952
  "gemini-2.5-flash-lite": "gemini-2.5-flash-lite";
816
953
  }>>;
954
+ reasoning: z.ZodOptional<z.ZodEnum<{
955
+ default: "default";
956
+ medium: "medium";
957
+ off: "off";
958
+ low: "low";
959
+ high: "high";
960
+ }>>;
817
961
  subagents: z.ZodOptional<z.ZodObject<{
818
962
  allowed: z.ZodBoolean;
819
963
  max: z.ZodInt;
@@ -898,6 +1042,13 @@ export declare const Operator: z.ZodObject<{
898
1042
  "gemini-2.5-flash": "gemini-2.5-flash";
899
1043
  "gemini-2.5-flash-lite": "gemini-2.5-flash-lite";
900
1044
  }>;
1045
+ reasoning: z.ZodEnum<{
1046
+ default: "default";
1047
+ medium: "medium";
1048
+ off: "off";
1049
+ low: "low";
1050
+ high: "high";
1051
+ }>;
901
1052
  subagents: z.ZodObject<{
902
1053
  allowed: z.ZodBoolean;
903
1054
  max: z.ZodInt;
@@ -1014,6 +1165,7 @@ export declare const Operator: z.ZodObject<{
1014
1165
  pausedReason: z.ZodNullable<z.ZodEnum<{
1015
1166
  credential: "credential";
1016
1167
  limit: "limit";
1168
+ own: "own";
1017
1169
  manual: "manual";
1018
1170
  model: "model";
1019
1171
  failures: "failures";
@@ -1100,6 +1252,13 @@ export declare const OperatorList: z.ZodObject<{
1100
1252
  "gemini-2.5-flash": "gemini-2.5-flash";
1101
1253
  "gemini-2.5-flash-lite": "gemini-2.5-flash-lite";
1102
1254
  }>;
1255
+ reasoning: z.ZodEnum<{
1256
+ default: "default";
1257
+ medium: "medium";
1258
+ off: "off";
1259
+ low: "low";
1260
+ high: "high";
1261
+ }>;
1103
1262
  subagents: z.ZodObject<{
1104
1263
  allowed: z.ZodBoolean;
1105
1264
  max: z.ZodInt;
@@ -1216,6 +1375,7 @@ export declare const OperatorList: z.ZodObject<{
1216
1375
  pausedReason: z.ZodNullable<z.ZodEnum<{
1217
1376
  credential: "credential";
1218
1377
  limit: "limit";
1378
+ own: "own";
1219
1379
  manual: "manual";
1220
1380
  model: "model";
1221
1381
  failures: "failures";
@@ -1297,6 +1457,45 @@ export declare const OperatorList: z.ZodObject<{
1297
1457
  spentUsd: z.ZodNumber;
1298
1458
  reached: z.ZodBoolean;
1299
1459
  }, z.core.$strip>>;
1460
+ ownCredential: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1461
+ credentialId: z.ZodTemplateLiteral<`credential_${string}`>;
1462
+ provider: z.ZodNullable<z.ZodEnum<{
1463
+ claude: "claude";
1464
+ codex: "codex";
1465
+ gemini: "gemini";
1466
+ gateway: "gateway";
1467
+ }>>;
1468
+ kind: z.ZodEnum<{
1469
+ gateway: "gateway";
1470
+ subscription: "subscription";
1471
+ apikey: "apikey";
1472
+ }>;
1473
+ name: z.ZodString;
1474
+ state: z.ZodEnum<{
1475
+ invalid: "invalid";
1476
+ valid: "valid";
1477
+ }>;
1478
+ checkedAt: z.ZodNullable<z.ZodISODateTime>;
1479
+ setAt: z.ZodISODateTime;
1480
+ position: z.ZodInt;
1481
+ personal: z.ZodBoolean;
1482
+ fallback: z.ZodBoolean;
1483
+ rights: z.ZodNullable<z.ZodArray<z.ZodObject<{
1484
+ right: z.ZodEnum<{
1485
+ run: "run";
1486
+ read: "read";
1487
+ workersai: "workersai";
1488
+ }>;
1489
+ granted: z.ZodNullable<z.ZodBoolean>;
1490
+ without: z.ZodNullable<z.ZodString>;
1491
+ }, z.core.$strip>>>;
1492
+ limitedAt: z.ZodNullable<z.ZodISODateTime>;
1493
+ limitedUntil: z.ZodNullable<z.ZodISODateTime>;
1494
+ machineIds: z.ZodArray<z.ZodTemplateLiteral<`user_${string}`>>;
1495
+ createdAt: z.ZodISODateTime;
1496
+ createdBy: z.ZodNullable<z.ZodTemplateLiteral<`user_${string}`>>;
1497
+ updatedAt: z.ZodISODateTime;
1498
+ }, z.core.$strip>>>;
1300
1499
  }, z.core.$strip>;
1301
1500
  export type OperatorList = z.infer<typeof OperatorList>;
1302
1501
  export declare const OperatorUserListInput: z.ZodObject<{
@@ -1436,6 +1635,13 @@ export declare const OperatorUser: z.ZodObject<{
1436
1635
  reached: z.ZodBoolean;
1437
1636
  }, z.core.$strip>;
1438
1637
  machineIds: z.ZodArray<z.ZodTemplateLiteral<`user_${string}`>>;
1638
+ ownCredential: z.ZodNullable<z.ZodObject<{
1639
+ state: z.ZodEnum<{
1640
+ limit: "limit";
1641
+ invalid: "invalid";
1642
+ valid: "valid";
1643
+ }>;
1644
+ }, z.core.$strip>>;
1439
1645
  }, z.core.$strip>;
1440
1646
  export type OperatorUser = z.infer<typeof OperatorUser>;
1441
1647
  export declare const OperatorUserList: z.ZodObject<{
@@ -1569,6 +1775,13 @@ export declare const OperatorUserList: z.ZodObject<{
1569
1775
  reached: z.ZodBoolean;
1570
1776
  }, z.core.$strip>;
1571
1777
  machineIds: z.ZodArray<z.ZodTemplateLiteral<`user_${string}`>>;
1778
+ ownCredential: z.ZodNullable<z.ZodObject<{
1779
+ state: z.ZodEnum<{
1780
+ limit: "limit";
1781
+ invalid: "invalid";
1782
+ valid: "valid";
1783
+ }>;
1784
+ }, z.core.$strip>>;
1572
1785
  }, z.core.$strip>>;
1573
1786
  nextCursor: z.ZodNullable<z.ZodTemplateLiteral<`user_${string}`>>;
1574
1787
  }, z.core.$strip>;
@@ -1728,8 +1941,10 @@ export declare const OperatorRun: z.ZodObject<{
1728
1941
  by: z.ZodNullable<z.ZodString>;
1729
1942
  }, z.core.$strip>>;
1730
1943
  credentialName: z.ZodNullable<z.ZodString>;
1944
+ credentialOwn: z.ZodOptional<z.ZodBoolean>;
1731
1945
  fallback: z.ZodNullable<z.ZodObject<{
1732
1946
  fromName: z.ZodString;
1947
+ fromOwn: z.ZodOptional<z.ZodBoolean>;
1733
1948
  reason: z.ZodEnum<{
1734
1949
  credential: "credential";
1735
1950
  limit: "limit";
@@ -2079,8 +2294,10 @@ export declare const OperatorRunList: z.ZodObject<{
2079
2294
  by: z.ZodNullable<z.ZodString>;
2080
2295
  }, z.core.$strip>>;
2081
2296
  credentialName: z.ZodNullable<z.ZodString>;
2297
+ credentialOwn: z.ZodOptional<z.ZodBoolean>;
2082
2298
  fallback: z.ZodNullable<z.ZodObject<{
2083
2299
  fromName: z.ZodString;
2300
+ fromOwn: z.ZodOptional<z.ZodBoolean>;
2084
2301
  reason: z.ZodEnum<{
2085
2302
  credential: "credential";
2086
2303
  limit: "limit";