@anchrd/colab-sdk 0.1.36 → 0.1.38

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 (49) hide show
  1. package/dist/actions/actions.d.ts +34 -23
  2. package/dist/actions/actions.js +5 -2
  3. package/dist/archive/archive.d.ts +1 -0
  4. package/dist/archive/archive.js +3 -0
  5. package/dist/boards/boards.d.ts +21 -21
  6. package/dist/columns/columns.d.ts +2 -2
  7. package/dist/connectors/connectors.d.ts +6 -6
  8. package/dist/crawls/crawls.d.ts +3 -3
  9. package/dist/error/error.d.ts +9 -3
  10. package/dist/error/error.js +12 -3
  11. package/dist/gadgets/gadgets.d.ts +147 -9
  12. package/dist/gadgets/gadgets.js +156 -0
  13. package/dist/goals/goals.d.ts +56 -10
  14. package/dist/goals/goals.js +36 -7
  15. package/dist/grammar/grammar.d.ts +2 -0
  16. package/dist/grammar/grammar.js +10 -0
  17. package/dist/home/home.d.ts +312 -0
  18. package/dist/home/home.js +53 -0
  19. package/dist/links/links.d.ts +166 -0
  20. package/dist/links/links.js +149 -0
  21. package/dist/mcps/mcps.d.ts +3 -3
  22. package/dist/messages/messages.d.ts +26 -0
  23. package/dist/messages/messages.js +33 -0
  24. package/dist/nodes/nodes.d.ts +46 -20
  25. package/dist/nodes/nodes.js +11 -3
  26. package/dist/operators/operators.d.ts +737 -47
  27. package/dist/operators/operators.js +388 -71
  28. package/dist/organisation/organisation.d.ts +2 -0
  29. package/dist/organisation/organisation.js +9 -0
  30. package/dist/primitives/primitives.d.ts +9 -0
  31. package/dist/primitives/primitives.js +16 -0
  32. package/dist/roles/roles.d.ts +1 -0
  33. package/dist/roles/roles.js +3 -0
  34. package/dist/runs/runs.d.ts +2 -2
  35. package/dist/sdk.d.ts +12 -11
  36. package/dist/sdk.js +12 -11
  37. package/dist/skills/skills.d.ts +37 -7
  38. package/dist/skills/skills.js +50 -0
  39. package/dist/sources/sources.d.ts +82 -20
  40. package/dist/sources/sources.js +71 -12
  41. package/dist/tables/tables.d.ts +42 -0
  42. package/dist/tables/tables.js +55 -2
  43. package/dist/tool.d.ts +1 -0
  44. package/dist/tree-order/tree-order.d.ts +2 -2
  45. package/dist/tree-order/tree-order.js +1 -1
  46. package/dist/users/users.d.ts +2 -0
  47. package/dist/users/users.js +3 -2
  48. package/dist/versions/versions.d.ts +13 -13
  49. package/package.json +1 -1
@@ -1,59 +1,263 @@
1
1
  import { z } from "zod";
2
+ export declare const gatewayCatalog: readonly [{
3
+ readonly gateway: "cloudflare";
4
+ readonly name: "Cloudflare";
5
+ readonly models: readonly [{
6
+ readonly model: "workers-ai/@cf/deepseek-ai/deepseek-v4-pro-0813";
7
+ readonly name: "DeepSeek V4 Pro";
8
+ readonly context: 1000000;
9
+ readonly price: {
10
+ readonly input: 1.32;
11
+ readonly cacheRead: 0.044;
12
+ readonly output: 3.96;
13
+ };
14
+ }, {
15
+ readonly model: "workers-ai/@cf/deepseek-ai/deepseek-v4.1-flash-1017";
16
+ readonly name: "DeepSeek V4.1 Flash";
17
+ readonly context: 1048576;
18
+ readonly price: {
19
+ readonly input: 0.3;
20
+ readonly cacheRead: 0.006;
21
+ readonly output: 1.2;
22
+ };
23
+ }, {
24
+ readonly model: "anthropic/claude-haiku-5-5";
25
+ readonly name: "Claude Haiku 5.5";
26
+ readonly context: 1000000;
27
+ readonly price: {
28
+ readonly input: 0.1;
29
+ readonly cacheRead: 0.01;
30
+ readonly cacheWrite: 0.125;
31
+ readonly output: 0.5;
32
+ };
33
+ }, {
34
+ readonly model: "anthropic/claude-sonnet-5-5";
35
+ readonly name: "Claude Sonnet 5.5";
36
+ readonly context: 1000000;
37
+ readonly price: {
38
+ readonly input: 2;
39
+ readonly cacheRead: 0.1;
40
+ readonly cacheWrite: 2.5;
41
+ readonly output: 10;
42
+ };
43
+ }, {
44
+ readonly model: "anthropic/claude-opus-5-5";
45
+ readonly name: "Claude Opus 5.5";
46
+ readonly context: 1000000;
47
+ readonly price: {
48
+ readonly input: 4;
49
+ readonly cacheRead: 0.2;
50
+ readonly cacheWrite: 5;
51
+ readonly output: 20;
52
+ };
53
+ }, {
54
+ readonly model: "anthropic/claude-fable-5-1";
55
+ readonly name: "Claude Fable 5.1";
56
+ readonly context: 1000000;
57
+ readonly price: {
58
+ readonly input: 10;
59
+ readonly cacheRead: 0.25;
60
+ readonly cacheWrite: 12.5;
61
+ readonly output: 50;
62
+ };
63
+ }, {
64
+ readonly model: "xai/grok-4.7";
65
+ readonly name: "Grok 4.7";
66
+ readonly context: 500000;
67
+ readonly price: {
68
+ readonly input: 2;
69
+ readonly cacheRead: 0.5;
70
+ readonly output: 6;
71
+ };
72
+ }, {
73
+ readonly model: "moonshotai/kimi-k3";
74
+ readonly name: "Kimi K3";
75
+ readonly context: 1048576;
76
+ readonly price: {
77
+ readonly input: 3;
78
+ readonly cacheRead: 0.3;
79
+ readonly output: 15;
80
+ };
81
+ }, {
82
+ readonly model: "workers-ai/@cf/moonshotai/kimi-k2.7-code";
83
+ readonly name: "Kimi K2.7 Code";
84
+ readonly context: 262144;
85
+ readonly price: {
86
+ readonly input: 0.95;
87
+ readonly cacheRead: 0.19;
88
+ readonly output: 4;
89
+ };
90
+ }, {
91
+ readonly model: "workers-ai/@cf/moonshotai/kimi-k2.6";
92
+ readonly name: "Kimi K2.6";
93
+ readonly context: 262144;
94
+ readonly price: {
95
+ readonly input: 0.95;
96
+ readonly cacheRead: 0.16;
97
+ readonly output: 4;
98
+ };
99
+ }, {
100
+ readonly model: "workers-ai/@cf/zai-org/glm-5.3";
101
+ readonly name: "GLM 5.3";
102
+ readonly context: 1048576;
103
+ readonly price: {
104
+ readonly input: 1.4;
105
+ readonly cacheRead: 0.26;
106
+ readonly output: 4.4;
107
+ };
108
+ }, {
109
+ readonly model: "workers-ai/@cf/zai-org/glm-5.3-flash";
110
+ readonly name: "GLM 5.3 Flash";
111
+ readonly context: 1048576;
112
+ readonly price: {
113
+ readonly input: 0.15;
114
+ readonly cacheRead: 0.03;
115
+ readonly output: 0.5;
116
+ };
117
+ }, {
118
+ readonly model: "workers-ai/@cf/qwen/qwen3.8-27b";
119
+ readonly name: "Qwen3.8 27B";
120
+ readonly context: 262144;
121
+ readonly price: {
122
+ readonly input: 0.45;
123
+ readonly cacheRead: 0.05;
124
+ readonly output: 3.2;
125
+ };
126
+ }, {
127
+ readonly model: "workers-ai/@cf/google/gemma-4-26b-a4b-it";
128
+ readonly name: "Gemma 4 26B";
129
+ readonly context: 256000;
130
+ readonly price: {
131
+ readonly input: 0.1;
132
+ readonly cacheRead: 0.1;
133
+ readonly output: 0.3;
134
+ };
135
+ }, {
136
+ readonly model: "workers-ai/@cf/nvidia/nemotron-3-120b-a12b";
137
+ readonly name: "Nemotron 3 120B";
138
+ readonly context: 256000;
139
+ readonly price: {
140
+ readonly input: 0.5;
141
+ readonly cacheRead: 0.5;
142
+ readonly output: 1.5;
143
+ };
144
+ }, {
145
+ readonly model: "workers-ai/@cf/meta/llama-4-scout-17b-16e-instruct";
146
+ readonly name: "Llama 4 Scout";
147
+ readonly context: 131000;
148
+ readonly price: {
149
+ readonly input: 0.27;
150
+ readonly cacheRead: 0.27;
151
+ readonly output: 0.85;
152
+ };
153
+ }, {
154
+ readonly model: "workers-ai/@cf/mistralai/mistral-small-3.1-24b-instruct";
155
+ readonly name: "Mistral Small 3.1";
156
+ readonly context: 128000;
157
+ readonly price: {
158
+ readonly input: 0.351;
159
+ readonly cacheRead: 0.351;
160
+ readonly output: 0.555;
161
+ };
162
+ }, {
163
+ readonly model: "openai/gpt-6.1-terra";
164
+ readonly name: "GPT-6.1 Terra";
165
+ readonly context: 1050000;
166
+ readonly price: {
167
+ readonly input: 1;
168
+ readonly cacheRead: 0.05;
169
+ readonly cacheWrite: 1.25;
170
+ readonly output: 5;
171
+ };
172
+ readonly outputLimit: "max_completion_tokens";
173
+ readonly reasoningEffort: "none";
174
+ }, {
175
+ readonly model: "openai/gpt-6-luna";
176
+ readonly name: "GPT-6 Luna";
177
+ readonly context: 1050000;
178
+ readonly price: {
179
+ readonly input: 0.1;
180
+ readonly cacheRead: 0.01;
181
+ readonly cacheWrite: 0.125;
182
+ readonly output: 0.5;
183
+ };
184
+ readonly outputLimit: "max_completion_tokens";
185
+ readonly reasoningEffort: "none";
186
+ }];
187
+ }];
188
+ export type GatewayModelEntry = (typeof gatewayCatalog)[number]["models"][number];
189
+ export type GatewayModel = GatewayModelEntry["model"];
190
+ export declare const retiredGatewayModels: readonly [{
191
+ readonly model: "anthropic/claude-sonnet-4-6";
192
+ readonly name: "Claude Sonnet 4.6";
193
+ }, {
194
+ readonly model: "anthropic/claude-opus-4-6";
195
+ readonly name: "Claude Opus 4.6";
196
+ }, {
197
+ readonly model: "anthropic/claude-haiku-4-5";
198
+ readonly name: "Claude Haiku 4.5";
199
+ }, {
200
+ readonly model: "google-ai-studio/gemini-2.5-pro";
201
+ readonly name: "Gemini 2.5 Pro";
202
+ }, {
203
+ readonly model: "google-ai-studio/gemini-2.5-flash";
204
+ readonly name: "Gemini 2.5 Flash";
205
+ }];
206
+ export type RetiredGatewayModel = (typeof retiredGatewayModels)[number]["model"];
207
+ export declare function gatewayModelOf(model: string): GatewayModelEntry | null;
208
+ export type GatewayOutputLimit = "max_tokens" | "max_completion_tokens";
209
+ export declare function outputLimitOf(model: string): GatewayOutputLimit;
210
+ export declare function reasoningEffortOf(model: string): "none" | null;
211
+ export declare function cacheWritePriceOf(entry: GatewayModelEntry): number;
212
+ export declare const GatewayModelEntrySchema: z.ZodObject<{
213
+ model: z.ZodString;
214
+ name: z.ZodString;
215
+ context: z.ZodInt;
216
+ price: z.ZodObject<{
217
+ input: z.ZodNumber;
218
+ cacheRead: z.ZodNumber;
219
+ cacheWrite: z.ZodOptional<z.ZodNumber>;
220
+ output: z.ZodNumber;
221
+ }, z.core.$strip>;
222
+ outputLimit: z.ZodOptional<z.ZodEnum<{
223
+ max_completion_tokens: "max_completion_tokens";
224
+ max_tokens: "max_tokens";
225
+ }>>;
226
+ reasoningEffort: z.ZodOptional<z.ZodLiteral<"none">>;
227
+ }, z.core.$strip>;
2
228
  export declare const operatorProviders: readonly [{
3
229
  readonly provider: "claude";
4
230
  readonly name: "Claude";
5
231
  readonly vendor: "Anthropic";
6
232
  readonly selectable: true;
7
- readonly kinds: readonly ["subscription", "apikey", "gateway"];
233
+ readonly kinds: readonly ["subscription", "apikey"];
8
234
  readonly beta: false;
9
235
  readonly models: readonly ["opus", "sonnet", "haiku"];
10
236
  readonly defaultModel: "sonnet";
11
- readonly gateway: {
12
- readonly models: readonly ["opus", "sonnet"];
13
- readonly defaultModel: "sonnet";
14
- };
15
237
  readonly subagents: true;
16
238
  readonly costs: true;
17
239
  }, {
18
- readonly provider: "codex";
19
- readonly name: "Codex";
20
- readonly vendor: "OpenAI";
240
+ readonly provider: "gateway";
241
+ readonly name: "Gateway";
242
+ readonly vendor: "Cloudflare AI Gateway";
21
243
  readonly selectable: true;
22
- readonly kinds: readonly ["apikey", "gateway"];
23
- readonly beta: true;
24
- readonly models: readonly ["gpt-6-astra", "gpt-6.1-sol", "gpt-6-luna"];
25
- readonly defaultModel: "gpt-6.1-sol";
26
- readonly gateway: {
27
- readonly models: readonly ["gpt-6.1-sol", "gpt-6-luna"];
28
- readonly defaultModel: "gpt-6.1-sol";
29
- };
30
- readonly subagents: false;
31
- readonly costs: false;
32
- }, {
33
- readonly provider: "gemini";
34
- readonly name: "Gemini";
35
- readonly vendor: "Google";
36
- readonly selectable: true;
37
- readonly kinds: readonly ["apikey", "gateway"];
38
- readonly beta: true;
39
- readonly models: readonly ["pro", "flash", "flash-lite"];
40
- readonly defaultModel: "flash";
41
- readonly gateway: {
42
- readonly models: readonly ["gemini-2.5-pro", "gemini-2.5-flash", "gemini-2.5-flash-lite"];
43
- readonly defaultModel: "gemini-2.5-flash";
44
- };
244
+ readonly kinds: readonly ["gateway"];
245
+ readonly beta: false;
246
+ readonly models: ("workers-ai/@cf/deepseek-ai/deepseek-v4-pro-0813" | "workers-ai/@cf/deepseek-ai/deepseek-v4.1-flash-1017" | "anthropic/claude-haiku-5-5" | "anthropic/claude-sonnet-5-5" | "anthropic/claude-opus-5-5" | "anthropic/claude-fable-5-1" | "xai/grok-4.7" | "moonshotai/kimi-k3" | "workers-ai/@cf/moonshotai/kimi-k2.7-code" | "workers-ai/@cf/moonshotai/kimi-k2.6" | "workers-ai/@cf/zai-org/glm-5.3" | "workers-ai/@cf/zai-org/glm-5.3-flash" | "workers-ai/@cf/qwen/qwen3.8-27b" | "workers-ai/@cf/google/gemma-4-26b-a4b-it" | "workers-ai/@cf/nvidia/nemotron-3-120b-a12b" | "workers-ai/@cf/meta/llama-4-scout-17b-16e-instruct" | "workers-ai/@cf/mistralai/mistral-small-3.1-24b-instruct" | "openai/gpt-6.1-terra" | "openai/gpt-6-luna")[];
247
+ readonly defaultModel: "workers-ai/@cf/deepseek-ai/deepseek-v4-pro-0813";
45
248
  readonly subagents: false;
46
- readonly costs: false;
249
+ readonly costs: true;
47
250
  }];
48
251
  export type OperatorProviderEntry = (typeof operatorProviders)[number];
49
- export declare function modelsOf(entry: OperatorProviderEntry, kind: CredentialKind): {
252
+ export declare function modelsOf(entry: OperatorProviderEntry, _kind: CredentialKind): {
50
253
  models: readonly OperatorModel[];
51
254
  defaultModel: OperatorModel;
52
255
  };
256
+ export declare function inCatalog(provider: string, model: string): boolean;
53
257
  export declare const CredentialKind: z.ZodEnum<{
258
+ gateway: "gateway";
54
259
  subscription: "subscription";
55
260
  apikey: "apikey";
56
- gateway: "gateway";
57
261
  }>;
58
262
  export type CredentialKind = z.infer<typeof CredentialKind>;
59
263
  export declare const CredentialState: z.ZodEnum<{
@@ -62,6 +266,30 @@ export declare const CredentialState: z.ZodEnum<{
62
266
  }>;
63
267
  export type CredentialState = z.infer<typeof CredentialState>;
64
268
  export declare const OperatorModel: z.ZodEnum<{
269
+ "workers-ai/@cf/deepseek-ai/deepseek-v4-pro-0813": "workers-ai/@cf/deepseek-ai/deepseek-v4-pro-0813";
270
+ "workers-ai/@cf/deepseek-ai/deepseek-v4.1-flash-1017": "workers-ai/@cf/deepseek-ai/deepseek-v4.1-flash-1017";
271
+ "anthropic/claude-haiku-5-5": "anthropic/claude-haiku-5-5";
272
+ "anthropic/claude-sonnet-5-5": "anthropic/claude-sonnet-5-5";
273
+ "anthropic/claude-opus-5-5": "anthropic/claude-opus-5-5";
274
+ "anthropic/claude-fable-5-1": "anthropic/claude-fable-5-1";
275
+ "xai/grok-4.7": "xai/grok-4.7";
276
+ "moonshotai/kimi-k3": "moonshotai/kimi-k3";
277
+ "workers-ai/@cf/moonshotai/kimi-k2.7-code": "workers-ai/@cf/moonshotai/kimi-k2.7-code";
278
+ "workers-ai/@cf/moonshotai/kimi-k2.6": "workers-ai/@cf/moonshotai/kimi-k2.6";
279
+ "workers-ai/@cf/zai-org/glm-5.3": "workers-ai/@cf/zai-org/glm-5.3";
280
+ "workers-ai/@cf/zai-org/glm-5.3-flash": "workers-ai/@cf/zai-org/glm-5.3-flash";
281
+ "workers-ai/@cf/qwen/qwen3.8-27b": "workers-ai/@cf/qwen/qwen3.8-27b";
282
+ "workers-ai/@cf/google/gemma-4-26b-a4b-it": "workers-ai/@cf/google/gemma-4-26b-a4b-it";
283
+ "workers-ai/@cf/nvidia/nemotron-3-120b-a12b": "workers-ai/@cf/nvidia/nemotron-3-120b-a12b";
284
+ "workers-ai/@cf/meta/llama-4-scout-17b-16e-instruct": "workers-ai/@cf/meta/llama-4-scout-17b-16e-instruct";
285
+ "workers-ai/@cf/mistralai/mistral-small-3.1-24b-instruct": "workers-ai/@cf/mistralai/mistral-small-3.1-24b-instruct";
286
+ "openai/gpt-6.1-terra": "openai/gpt-6.1-terra";
287
+ "openai/gpt-6-luna": "openai/gpt-6-luna";
288
+ "anthropic/claude-sonnet-4-6": "anthropic/claude-sonnet-4-6";
289
+ "anthropic/claude-opus-4-6": "anthropic/claude-opus-4-6";
290
+ "anthropic/claude-haiku-4-5": "anthropic/claude-haiku-4-5";
291
+ "google-ai-studio/gemini-2.5-pro": "google-ai-studio/gemini-2.5-pro";
292
+ "google-ai-studio/gemini-2.5-flash": "google-ai-studio/gemini-2.5-flash";
65
293
  opus: "opus";
66
294
  sonnet: "sonnet";
67
295
  haiku: "haiku";
@@ -82,6 +310,22 @@ export declare const GatewayTarget: z.ZodObject<{
82
310
  gatewayId: z.ZodString;
83
311
  }, z.core.$strict>;
84
312
  export type GatewayTarget = z.infer<typeof GatewayTarget>;
313
+ export declare const GatewayRight: z.ZodEnum<{
314
+ run: "run";
315
+ read: "read";
316
+ workersai: "workersai";
317
+ }>;
318
+ export type GatewayRight = z.infer<typeof GatewayRight>;
319
+ export declare const GatewayRightCheck: z.ZodObject<{
320
+ right: z.ZodEnum<{
321
+ run: "run";
322
+ read: "read";
323
+ workersai: "workersai";
324
+ }>;
325
+ granted: z.ZodNullable<z.ZodBoolean>;
326
+ without: z.ZodNullable<z.ZodString>;
327
+ }, z.core.$strip>;
328
+ export type GatewayRightCheck = z.infer<typeof GatewayRightCheck>;
85
329
  export declare const CredentialListInput: z.ZodObject<{
86
330
  cursor: z.ZodOptional<z.ZodTemplateLiteral<`credential_${string}`>>;
87
331
  limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
@@ -96,11 +340,12 @@ export declare const CredentialCreateInput: z.ZodObject<{
96
340
  claude: "claude";
97
341
  codex: "codex";
98
342
  gemini: "gemini";
343
+ gateway: "gateway";
99
344
  }>>;
100
345
  kind: z.ZodEnum<{
346
+ gateway: "gateway";
101
347
  subscription: "subscription";
102
348
  apikey: "apikey";
103
- gateway: "gateway";
104
349
  }>;
105
350
  name: z.ZodString;
106
351
  value: z.ZodString;
@@ -137,11 +382,12 @@ export declare const Credential: z.ZodObject<{
137
382
  claude: "claude";
138
383
  codex: "codex";
139
384
  gemini: "gemini";
385
+ gateway: "gateway";
140
386
  }>>;
141
387
  kind: z.ZodEnum<{
388
+ gateway: "gateway";
142
389
  subscription: "subscription";
143
390
  apikey: "apikey";
144
- gateway: "gateway";
145
391
  }>;
146
392
  name: z.ZodString;
147
393
  state: z.ZodEnum<{
@@ -153,6 +399,15 @@ export declare const Credential: z.ZodObject<{
153
399
  position: z.ZodInt;
154
400
  personal: z.ZodBoolean;
155
401
  fallback: z.ZodBoolean;
402
+ rights: z.ZodNullable<z.ZodArray<z.ZodObject<{
403
+ right: z.ZodEnum<{
404
+ run: "run";
405
+ read: "read";
406
+ workersai: "workersai";
407
+ }>;
408
+ granted: z.ZodNullable<z.ZodBoolean>;
409
+ without: z.ZodNullable<z.ZodString>;
410
+ }, z.core.$strip>>>;
156
411
  limitedAt: z.ZodNullable<z.ZodISODateTime>;
157
412
  limitedUntil: z.ZodNullable<z.ZodISODateTime>;
158
413
  machineIds: z.ZodArray<z.ZodTemplateLiteral<`user_${string}`>>;
@@ -168,11 +423,12 @@ export declare const CredentialList: z.ZodObject<{
168
423
  claude: "claude";
169
424
  codex: "codex";
170
425
  gemini: "gemini";
426
+ gateway: "gateway";
171
427
  }>>;
172
428
  kind: z.ZodEnum<{
429
+ gateway: "gateway";
173
430
  subscription: "subscription";
174
431
  apikey: "apikey";
175
- gateway: "gateway";
176
432
  }>;
177
433
  name: z.ZodString;
178
434
  state: z.ZodEnum<{
@@ -184,6 +440,15 @@ export declare const CredentialList: z.ZodObject<{
184
440
  position: z.ZodInt;
185
441
  personal: z.ZodBoolean;
186
442
  fallback: z.ZodBoolean;
443
+ rights: z.ZodNullable<z.ZodArray<z.ZodObject<{
444
+ right: z.ZodEnum<{
445
+ run: "run";
446
+ read: "read";
447
+ workersai: "workersai";
448
+ }>;
449
+ granted: z.ZodNullable<z.ZodBoolean>;
450
+ without: z.ZodNullable<z.ZodString>;
451
+ }, z.core.$strip>>>;
187
452
  limitedAt: z.ZodNullable<z.ZodISODateTime>;
188
453
  limitedUntil: z.ZodNullable<z.ZodISODateTime>;
189
454
  machineIds: z.ZodArray<z.ZodTemplateLiteral<`user_${string}`>>;
@@ -208,11 +473,12 @@ export declare const CredentialTested: z.ZodObject<{
208
473
  claude: "claude";
209
474
  codex: "codex";
210
475
  gemini: "gemini";
476
+ gateway: "gateway";
211
477
  }>>;
212
478
  kind: z.ZodEnum<{
479
+ gateway: "gateway";
213
480
  subscription: "subscription";
214
481
  apikey: "apikey";
215
- gateway: "gateway";
216
482
  }>;
217
483
  name: z.ZodString;
218
484
  state: z.ZodEnum<{
@@ -224,6 +490,15 @@ export declare const CredentialTested: z.ZodObject<{
224
490
  position: z.ZodInt;
225
491
  personal: z.ZodBoolean;
226
492
  fallback: z.ZodBoolean;
493
+ rights: z.ZodNullable<z.ZodArray<z.ZodObject<{
494
+ right: z.ZodEnum<{
495
+ run: "run";
496
+ read: "read";
497
+ workersai: "workersai";
498
+ }>;
499
+ granted: z.ZodNullable<z.ZodBoolean>;
500
+ without: z.ZodNullable<z.ZodString>;
501
+ }, z.core.$strip>>>;
227
502
  limitedAt: z.ZodNullable<z.ZodISODateTime>;
228
503
  limitedUntil: z.ZodNullable<z.ZodISODateTime>;
229
504
  machineIds: z.ZodArray<z.ZodTemplateLiteral<`user_${string}`>>;
@@ -300,9 +575,12 @@ export declare const Trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
300
575
  }, z.core.$strict>;
301
576
  }, z.core.$strip>], "on">;
302
577
  export type Trigger = z.infer<typeof Trigger>;
578
+ export declare const KeepStepsDays: z.ZodUnion<readonly [z.ZodLiteral<7>, z.ZodLiteral<30>, z.ZodLiteral<90>, z.ZodNull]>;
579
+ export type KeepStepsDays = z.infer<typeof KeepStepsDays>;
303
580
  export declare const OperatorLimits: z.ZodObject<{
304
581
  maxRunMinutes: z.ZodInt;
305
582
  maxRunsPerDay: z.ZodInt;
583
+ keepStepsDays: z.ZodUnion<readonly [z.ZodLiteral<7>, z.ZodLiteral<30>, z.ZodLiteral<90>, z.ZodNull]>;
306
584
  }, z.core.$strict>;
307
585
  export type OperatorLimits = z.infer<typeof OperatorLimits>;
308
586
  export declare const operatorDefaults: {
@@ -313,13 +591,19 @@ export declare const operatorDefaults: {
313
591
  };
314
592
  readonly trigger: {
315
593
  readonly on: "change";
316
- readonly quietMinutes: 5;
594
+ readonly quietMinutes: 0;
317
595
  };
318
596
  readonly limits: {
319
597
  readonly maxRunMinutes: 30;
320
598
  readonly maxRunsPerDay: 50;
599
+ readonly keepStepsDays: 30;
321
600
  };
322
601
  };
602
+ export declare const validatorTrigger: {
603
+ readonly on: "change";
604
+ readonly quietMinutes: 5;
605
+ };
606
+ export declare const scheduleQuietMinutes = 5;
323
607
  export declare const OperatorState: z.ZodEnum<{
324
608
  no_role: "no_role";
325
609
  ready: "ready";
@@ -330,6 +614,7 @@ export declare const PauseReason: z.ZodEnum<{
330
614
  credential: "credential";
331
615
  limit: "limit";
332
616
  manual: "manual";
617
+ model: "model";
333
618
  failures: "failures";
334
619
  owner: "owner";
335
620
  budget: "budget";
@@ -353,9 +638,34 @@ export declare const OperatorMachineCreateInput: z.ZodObject<{
353
638
  claude: "claude";
354
639
  codex: "codex";
355
640
  gemini: "gemini";
641
+ gateway: "gateway";
356
642
  }>>;
357
643
  credentialId: z.ZodOptional<z.ZodTemplateLiteral<`credential_${string}`>>;
358
644
  model: z.ZodOptional<z.ZodEnum<{
645
+ "workers-ai/@cf/deepseek-ai/deepseek-v4-pro-0813": "workers-ai/@cf/deepseek-ai/deepseek-v4-pro-0813";
646
+ "workers-ai/@cf/deepseek-ai/deepseek-v4.1-flash-1017": "workers-ai/@cf/deepseek-ai/deepseek-v4.1-flash-1017";
647
+ "anthropic/claude-haiku-5-5": "anthropic/claude-haiku-5-5";
648
+ "anthropic/claude-sonnet-5-5": "anthropic/claude-sonnet-5-5";
649
+ "anthropic/claude-opus-5-5": "anthropic/claude-opus-5-5";
650
+ "anthropic/claude-fable-5-1": "anthropic/claude-fable-5-1";
651
+ "xai/grok-4.7": "xai/grok-4.7";
652
+ "moonshotai/kimi-k3": "moonshotai/kimi-k3";
653
+ "workers-ai/@cf/moonshotai/kimi-k2.7-code": "workers-ai/@cf/moonshotai/kimi-k2.7-code";
654
+ "workers-ai/@cf/moonshotai/kimi-k2.6": "workers-ai/@cf/moonshotai/kimi-k2.6";
655
+ "workers-ai/@cf/zai-org/glm-5.3": "workers-ai/@cf/zai-org/glm-5.3";
656
+ "workers-ai/@cf/zai-org/glm-5.3-flash": "workers-ai/@cf/zai-org/glm-5.3-flash";
657
+ "workers-ai/@cf/qwen/qwen3.8-27b": "workers-ai/@cf/qwen/qwen3.8-27b";
658
+ "workers-ai/@cf/google/gemma-4-26b-a4b-it": "workers-ai/@cf/google/gemma-4-26b-a4b-it";
659
+ "workers-ai/@cf/nvidia/nemotron-3-120b-a12b": "workers-ai/@cf/nvidia/nemotron-3-120b-a12b";
660
+ "workers-ai/@cf/meta/llama-4-scout-17b-16e-instruct": "workers-ai/@cf/meta/llama-4-scout-17b-16e-instruct";
661
+ "workers-ai/@cf/mistralai/mistral-small-3.1-24b-instruct": "workers-ai/@cf/mistralai/mistral-small-3.1-24b-instruct";
662
+ "openai/gpt-6.1-terra": "openai/gpt-6.1-terra";
663
+ "openai/gpt-6-luna": "openai/gpt-6-luna";
664
+ "anthropic/claude-sonnet-4-6": "anthropic/claude-sonnet-4-6";
665
+ "anthropic/claude-opus-4-6": "anthropic/claude-opus-4-6";
666
+ "anthropic/claude-haiku-4-5": "anthropic/claude-haiku-4-5";
667
+ "google-ai-studio/gemini-2.5-pro": "google-ai-studio/gemini-2.5-pro";
668
+ "google-ai-studio/gemini-2.5-flash": "google-ai-studio/gemini-2.5-flash";
359
669
  opus: "opus";
360
670
  sonnet: "sonnet";
361
671
  haiku: "haiku";
@@ -380,6 +690,7 @@ export declare const OperatorMachineCreateInput: z.ZodObject<{
380
690
  limits: z.ZodOptional<z.ZodObject<{
381
691
  maxRunMinutes: z.ZodOptional<z.ZodInt>;
382
692
  maxRunsPerDay: z.ZodOptional<z.ZodInt>;
693
+ keepStepsDays: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<7>, z.ZodLiteral<30>, z.ZodLiteral<90>, z.ZodNull]>>;
383
694
  }, z.core.$strict>>;
384
695
  }, z.core.$strict>;
385
696
  export type OperatorMachineCreateInput = z.infer<typeof OperatorMachineCreateInput>;
@@ -388,6 +699,30 @@ export declare const OperatorMachineUpdateInput: z.ZodObject<{
388
699
  rev: z.ZodNumber;
389
700
  credentialId: z.ZodOptional<z.ZodTemplateLiteral<`credential_${string}`>>;
390
701
  model: z.ZodOptional<z.ZodEnum<{
702
+ "workers-ai/@cf/deepseek-ai/deepseek-v4-pro-0813": "workers-ai/@cf/deepseek-ai/deepseek-v4-pro-0813";
703
+ "workers-ai/@cf/deepseek-ai/deepseek-v4.1-flash-1017": "workers-ai/@cf/deepseek-ai/deepseek-v4.1-flash-1017";
704
+ "anthropic/claude-haiku-5-5": "anthropic/claude-haiku-5-5";
705
+ "anthropic/claude-sonnet-5-5": "anthropic/claude-sonnet-5-5";
706
+ "anthropic/claude-opus-5-5": "anthropic/claude-opus-5-5";
707
+ "anthropic/claude-fable-5-1": "anthropic/claude-fable-5-1";
708
+ "xai/grok-4.7": "xai/grok-4.7";
709
+ "moonshotai/kimi-k3": "moonshotai/kimi-k3";
710
+ "workers-ai/@cf/moonshotai/kimi-k2.7-code": "workers-ai/@cf/moonshotai/kimi-k2.7-code";
711
+ "workers-ai/@cf/moonshotai/kimi-k2.6": "workers-ai/@cf/moonshotai/kimi-k2.6";
712
+ "workers-ai/@cf/zai-org/glm-5.3": "workers-ai/@cf/zai-org/glm-5.3";
713
+ "workers-ai/@cf/zai-org/glm-5.3-flash": "workers-ai/@cf/zai-org/glm-5.3-flash";
714
+ "workers-ai/@cf/qwen/qwen3.8-27b": "workers-ai/@cf/qwen/qwen3.8-27b";
715
+ "workers-ai/@cf/google/gemma-4-26b-a4b-it": "workers-ai/@cf/google/gemma-4-26b-a4b-it";
716
+ "workers-ai/@cf/nvidia/nemotron-3-120b-a12b": "workers-ai/@cf/nvidia/nemotron-3-120b-a12b";
717
+ "workers-ai/@cf/meta/llama-4-scout-17b-16e-instruct": "workers-ai/@cf/meta/llama-4-scout-17b-16e-instruct";
718
+ "workers-ai/@cf/mistralai/mistral-small-3.1-24b-instruct": "workers-ai/@cf/mistralai/mistral-small-3.1-24b-instruct";
719
+ "openai/gpt-6.1-terra": "openai/gpt-6.1-terra";
720
+ "openai/gpt-6-luna": "openai/gpt-6-luna";
721
+ "anthropic/claude-sonnet-4-6": "anthropic/claude-sonnet-4-6";
722
+ "anthropic/claude-opus-4-6": "anthropic/claude-opus-4-6";
723
+ "anthropic/claude-haiku-4-5": "anthropic/claude-haiku-4-5";
724
+ "google-ai-studio/gemini-2.5-pro": "google-ai-studio/gemini-2.5-pro";
725
+ "google-ai-studio/gemini-2.5-flash": "google-ai-studio/gemini-2.5-flash";
391
726
  opus: "opus";
392
727
  sonnet: "sonnet";
393
728
  haiku: "haiku";
@@ -412,6 +747,7 @@ export declare const OperatorMachineUpdateInput: z.ZodObject<{
412
747
  limits: z.ZodOptional<z.ZodObject<{
413
748
  maxRunMinutes: z.ZodOptional<z.ZodInt>;
414
749
  maxRunsPerDay: z.ZodOptional<z.ZodInt>;
750
+ keepStepsDays: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<7>, z.ZodLiteral<30>, z.ZodLiteral<90>, z.ZodNull]>>;
415
751
  }, z.core.$strict>>;
416
752
  responsibleId: z.ZodOptional<z.ZodTemplateLiteral<`user_${string}`>>;
417
753
  name: z.ZodOptional<z.ZodString>;
@@ -441,11 +777,36 @@ export declare const Operator: z.ZodObject<{
441
777
  claude: "claude";
442
778
  codex: "codex";
443
779
  gemini: "gemini";
780
+ gateway: "gateway";
444
781
  }>;
445
782
  credentialId: z.ZodNullable<z.ZodTemplateLiteral<`credential_${string}`>>;
446
783
  ownerId: z.ZodNullable<z.ZodTemplateLiteral<`user_${string}`>>;
447
784
  open: z.ZodNullable<z.ZodInt>;
448
785
  model: z.ZodEnum<{
786
+ "workers-ai/@cf/deepseek-ai/deepseek-v4-pro-0813": "workers-ai/@cf/deepseek-ai/deepseek-v4-pro-0813";
787
+ "workers-ai/@cf/deepseek-ai/deepseek-v4.1-flash-1017": "workers-ai/@cf/deepseek-ai/deepseek-v4.1-flash-1017";
788
+ "anthropic/claude-haiku-5-5": "anthropic/claude-haiku-5-5";
789
+ "anthropic/claude-sonnet-5-5": "anthropic/claude-sonnet-5-5";
790
+ "anthropic/claude-opus-5-5": "anthropic/claude-opus-5-5";
791
+ "anthropic/claude-fable-5-1": "anthropic/claude-fable-5-1";
792
+ "xai/grok-4.7": "xai/grok-4.7";
793
+ "moonshotai/kimi-k3": "moonshotai/kimi-k3";
794
+ "workers-ai/@cf/moonshotai/kimi-k2.7-code": "workers-ai/@cf/moonshotai/kimi-k2.7-code";
795
+ "workers-ai/@cf/moonshotai/kimi-k2.6": "workers-ai/@cf/moonshotai/kimi-k2.6";
796
+ "workers-ai/@cf/zai-org/glm-5.3": "workers-ai/@cf/zai-org/glm-5.3";
797
+ "workers-ai/@cf/zai-org/glm-5.3-flash": "workers-ai/@cf/zai-org/glm-5.3-flash";
798
+ "workers-ai/@cf/qwen/qwen3.8-27b": "workers-ai/@cf/qwen/qwen3.8-27b";
799
+ "workers-ai/@cf/google/gemma-4-26b-a4b-it": "workers-ai/@cf/google/gemma-4-26b-a4b-it";
800
+ "workers-ai/@cf/nvidia/nemotron-3-120b-a12b": "workers-ai/@cf/nvidia/nemotron-3-120b-a12b";
801
+ "workers-ai/@cf/meta/llama-4-scout-17b-16e-instruct": "workers-ai/@cf/meta/llama-4-scout-17b-16e-instruct";
802
+ "workers-ai/@cf/mistralai/mistral-small-3.1-24b-instruct": "workers-ai/@cf/mistralai/mistral-small-3.1-24b-instruct";
803
+ "openai/gpt-6.1-terra": "openai/gpt-6.1-terra";
804
+ "openai/gpt-6-luna": "openai/gpt-6-luna";
805
+ "anthropic/claude-sonnet-4-6": "anthropic/claude-sonnet-4-6";
806
+ "anthropic/claude-opus-4-6": "anthropic/claude-opus-4-6";
807
+ "anthropic/claude-haiku-4-5": "anthropic/claude-haiku-4-5";
808
+ "google-ai-studio/gemini-2.5-pro": "google-ai-studio/gemini-2.5-pro";
809
+ "google-ai-studio/gemini-2.5-flash": "google-ai-studio/gemini-2.5-flash";
449
810
  opus: "opus";
450
811
  sonnet: "sonnet";
451
812
  haiku: "haiku";
@@ -516,6 +877,7 @@ export declare const Operator: z.ZodObject<{
516
877
  limits: z.ZodObject<{
517
878
  maxRunMinutes: z.ZodInt;
518
879
  maxRunsPerDay: z.ZodInt;
880
+ keepStepsDays: z.ZodUnion<readonly [z.ZodLiteral<7>, z.ZodLiteral<30>, z.ZodLiteral<90>, z.ZodNull]>;
519
881
  }, z.core.$strict>;
520
882
  wokenBy: z.ZodArray<z.ZodObject<{
521
883
  goalId: z.ZodTemplateLiteral<`node_${string}`>;
@@ -575,6 +937,7 @@ export declare const Operator: z.ZodObject<{
575
937
  credential: "credential";
576
938
  limit: "limit";
577
939
  manual: "manual";
940
+ model: "model";
578
941
  failures: "failures";
579
942
  owner: "owner";
580
943
  budget: "budget";
@@ -615,11 +978,36 @@ export declare const OperatorList: z.ZodObject<{
615
978
  claude: "claude";
616
979
  codex: "codex";
617
980
  gemini: "gemini";
981
+ gateway: "gateway";
618
982
  }>;
619
983
  credentialId: z.ZodNullable<z.ZodTemplateLiteral<`credential_${string}`>>;
620
984
  ownerId: z.ZodNullable<z.ZodTemplateLiteral<`user_${string}`>>;
621
985
  open: z.ZodNullable<z.ZodInt>;
622
986
  model: z.ZodEnum<{
987
+ "workers-ai/@cf/deepseek-ai/deepseek-v4-pro-0813": "workers-ai/@cf/deepseek-ai/deepseek-v4-pro-0813";
988
+ "workers-ai/@cf/deepseek-ai/deepseek-v4.1-flash-1017": "workers-ai/@cf/deepseek-ai/deepseek-v4.1-flash-1017";
989
+ "anthropic/claude-haiku-5-5": "anthropic/claude-haiku-5-5";
990
+ "anthropic/claude-sonnet-5-5": "anthropic/claude-sonnet-5-5";
991
+ "anthropic/claude-opus-5-5": "anthropic/claude-opus-5-5";
992
+ "anthropic/claude-fable-5-1": "anthropic/claude-fable-5-1";
993
+ "xai/grok-4.7": "xai/grok-4.7";
994
+ "moonshotai/kimi-k3": "moonshotai/kimi-k3";
995
+ "workers-ai/@cf/moonshotai/kimi-k2.7-code": "workers-ai/@cf/moonshotai/kimi-k2.7-code";
996
+ "workers-ai/@cf/moonshotai/kimi-k2.6": "workers-ai/@cf/moonshotai/kimi-k2.6";
997
+ "workers-ai/@cf/zai-org/glm-5.3": "workers-ai/@cf/zai-org/glm-5.3";
998
+ "workers-ai/@cf/zai-org/glm-5.3-flash": "workers-ai/@cf/zai-org/glm-5.3-flash";
999
+ "workers-ai/@cf/qwen/qwen3.8-27b": "workers-ai/@cf/qwen/qwen3.8-27b";
1000
+ "workers-ai/@cf/google/gemma-4-26b-a4b-it": "workers-ai/@cf/google/gemma-4-26b-a4b-it";
1001
+ "workers-ai/@cf/nvidia/nemotron-3-120b-a12b": "workers-ai/@cf/nvidia/nemotron-3-120b-a12b";
1002
+ "workers-ai/@cf/meta/llama-4-scout-17b-16e-instruct": "workers-ai/@cf/meta/llama-4-scout-17b-16e-instruct";
1003
+ "workers-ai/@cf/mistralai/mistral-small-3.1-24b-instruct": "workers-ai/@cf/mistralai/mistral-small-3.1-24b-instruct";
1004
+ "openai/gpt-6.1-terra": "openai/gpt-6.1-terra";
1005
+ "openai/gpt-6-luna": "openai/gpt-6-luna";
1006
+ "anthropic/claude-sonnet-4-6": "anthropic/claude-sonnet-4-6";
1007
+ "anthropic/claude-opus-4-6": "anthropic/claude-opus-4-6";
1008
+ "anthropic/claude-haiku-4-5": "anthropic/claude-haiku-4-5";
1009
+ "google-ai-studio/gemini-2.5-pro": "google-ai-studio/gemini-2.5-pro";
1010
+ "google-ai-studio/gemini-2.5-flash": "google-ai-studio/gemini-2.5-flash";
623
1011
  opus: "opus";
624
1012
  sonnet: "sonnet";
625
1013
  haiku: "haiku";
@@ -690,6 +1078,7 @@ export declare const OperatorList: z.ZodObject<{
690
1078
  limits: z.ZodObject<{
691
1079
  maxRunMinutes: z.ZodInt;
692
1080
  maxRunsPerDay: z.ZodInt;
1081
+ keepStepsDays: z.ZodUnion<readonly [z.ZodLiteral<7>, z.ZodLiteral<30>, z.ZodLiteral<90>, z.ZodNull]>;
693
1082
  }, z.core.$strict>;
694
1083
  wokenBy: z.ZodArray<z.ZodObject<{
695
1084
  goalId: z.ZodTemplateLiteral<`node_${string}`>;
@@ -749,6 +1138,7 @@ export declare const OperatorList: z.ZodObject<{
749
1138
  credential: "credential";
750
1139
  limit: "limit";
751
1140
  manual: "manual";
1141
+ model: "model";
752
1142
  failures: "failures";
753
1143
  owner: "owner";
754
1144
  budget: "budget";
@@ -780,8 +1170,33 @@ export declare const OperatorList: z.ZodObject<{
780
1170
  claude: "claude";
781
1171
  codex: "codex";
782
1172
  gemini: "gemini";
1173
+ gateway: "gateway";
783
1174
  }>;
784
1175
  model: z.ZodEnum<{
1176
+ "workers-ai/@cf/deepseek-ai/deepseek-v4-pro-0813": "workers-ai/@cf/deepseek-ai/deepseek-v4-pro-0813";
1177
+ "workers-ai/@cf/deepseek-ai/deepseek-v4.1-flash-1017": "workers-ai/@cf/deepseek-ai/deepseek-v4.1-flash-1017";
1178
+ "anthropic/claude-haiku-5-5": "anthropic/claude-haiku-5-5";
1179
+ "anthropic/claude-sonnet-5-5": "anthropic/claude-sonnet-5-5";
1180
+ "anthropic/claude-opus-5-5": "anthropic/claude-opus-5-5";
1181
+ "anthropic/claude-fable-5-1": "anthropic/claude-fable-5-1";
1182
+ "xai/grok-4.7": "xai/grok-4.7";
1183
+ "moonshotai/kimi-k3": "moonshotai/kimi-k3";
1184
+ "workers-ai/@cf/moonshotai/kimi-k2.7-code": "workers-ai/@cf/moonshotai/kimi-k2.7-code";
1185
+ "workers-ai/@cf/moonshotai/kimi-k2.6": "workers-ai/@cf/moonshotai/kimi-k2.6";
1186
+ "workers-ai/@cf/zai-org/glm-5.3": "workers-ai/@cf/zai-org/glm-5.3";
1187
+ "workers-ai/@cf/zai-org/glm-5.3-flash": "workers-ai/@cf/zai-org/glm-5.3-flash";
1188
+ "workers-ai/@cf/qwen/qwen3.8-27b": "workers-ai/@cf/qwen/qwen3.8-27b";
1189
+ "workers-ai/@cf/google/gemma-4-26b-a4b-it": "workers-ai/@cf/google/gemma-4-26b-a4b-it";
1190
+ "workers-ai/@cf/nvidia/nemotron-3-120b-a12b": "workers-ai/@cf/nvidia/nemotron-3-120b-a12b";
1191
+ "workers-ai/@cf/meta/llama-4-scout-17b-16e-instruct": "workers-ai/@cf/meta/llama-4-scout-17b-16e-instruct";
1192
+ "workers-ai/@cf/mistralai/mistral-small-3.1-24b-instruct": "workers-ai/@cf/mistralai/mistral-small-3.1-24b-instruct";
1193
+ "openai/gpt-6.1-terra": "openai/gpt-6.1-terra";
1194
+ "openai/gpt-6-luna": "openai/gpt-6-luna";
1195
+ "anthropic/claude-sonnet-4-6": "anthropic/claude-sonnet-4-6";
1196
+ "anthropic/claude-opus-4-6": "anthropic/claude-opus-4-6";
1197
+ "anthropic/claude-haiku-4-5": "anthropic/claude-haiku-4-5";
1198
+ "google-ai-studio/gemini-2.5-pro": "google-ai-studio/gemini-2.5-pro";
1199
+ "google-ai-studio/gemini-2.5-flash": "google-ai-studio/gemini-2.5-flash";
785
1200
  opus: "opus";
786
1201
  sonnet: "sonnet";
787
1202
  haiku: "haiku";
@@ -813,6 +1228,30 @@ export declare const OperatorUserUpdateInput: z.ZodObject<{
813
1228
  userId: z.ZodOptional<z.ZodTemplateLiteral<`user_${string}`>>;
814
1229
  limitUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
815
1230
  models: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<{
1231
+ "workers-ai/@cf/deepseek-ai/deepseek-v4-pro-0813": "workers-ai/@cf/deepseek-ai/deepseek-v4-pro-0813";
1232
+ "workers-ai/@cf/deepseek-ai/deepseek-v4.1-flash-1017": "workers-ai/@cf/deepseek-ai/deepseek-v4.1-flash-1017";
1233
+ "anthropic/claude-haiku-5-5": "anthropic/claude-haiku-5-5";
1234
+ "anthropic/claude-sonnet-5-5": "anthropic/claude-sonnet-5-5";
1235
+ "anthropic/claude-opus-5-5": "anthropic/claude-opus-5-5";
1236
+ "anthropic/claude-fable-5-1": "anthropic/claude-fable-5-1";
1237
+ "xai/grok-4.7": "xai/grok-4.7";
1238
+ "moonshotai/kimi-k3": "moonshotai/kimi-k3";
1239
+ "workers-ai/@cf/moonshotai/kimi-k2.7-code": "workers-ai/@cf/moonshotai/kimi-k2.7-code";
1240
+ "workers-ai/@cf/moonshotai/kimi-k2.6": "workers-ai/@cf/moonshotai/kimi-k2.6";
1241
+ "workers-ai/@cf/zai-org/glm-5.3": "workers-ai/@cf/zai-org/glm-5.3";
1242
+ "workers-ai/@cf/zai-org/glm-5.3-flash": "workers-ai/@cf/zai-org/glm-5.3-flash";
1243
+ "workers-ai/@cf/qwen/qwen3.8-27b": "workers-ai/@cf/qwen/qwen3.8-27b";
1244
+ "workers-ai/@cf/google/gemma-4-26b-a4b-it": "workers-ai/@cf/google/gemma-4-26b-a4b-it";
1245
+ "workers-ai/@cf/nvidia/nemotron-3-120b-a12b": "workers-ai/@cf/nvidia/nemotron-3-120b-a12b";
1246
+ "workers-ai/@cf/meta/llama-4-scout-17b-16e-instruct": "workers-ai/@cf/meta/llama-4-scout-17b-16e-instruct";
1247
+ "workers-ai/@cf/mistralai/mistral-small-3.1-24b-instruct": "workers-ai/@cf/mistralai/mistral-small-3.1-24b-instruct";
1248
+ "openai/gpt-6.1-terra": "openai/gpt-6.1-terra";
1249
+ "openai/gpt-6-luna": "openai/gpt-6-luna";
1250
+ "anthropic/claude-sonnet-4-6": "anthropic/claude-sonnet-4-6";
1251
+ "anthropic/claude-opus-4-6": "anthropic/claude-opus-4-6";
1252
+ "anthropic/claude-haiku-4-5": "anthropic/claude-haiku-4-5";
1253
+ "google-ai-studio/gemini-2.5-pro": "google-ai-studio/gemini-2.5-pro";
1254
+ "google-ai-studio/gemini-2.5-flash": "google-ai-studio/gemini-2.5-flash";
816
1255
  opus: "opus";
817
1256
  sonnet: "sonnet";
818
1257
  haiku: "haiku";
@@ -835,6 +1274,30 @@ export declare const OperatorUser: z.ZodObject<{
835
1274
  own: z.ZodObject<{
836
1275
  limitUsd: z.ZodNullable<z.ZodNumber>;
837
1276
  models: z.ZodNullable<z.ZodArray<z.ZodEnum<{
1277
+ "workers-ai/@cf/deepseek-ai/deepseek-v4-pro-0813": "workers-ai/@cf/deepseek-ai/deepseek-v4-pro-0813";
1278
+ "workers-ai/@cf/deepseek-ai/deepseek-v4.1-flash-1017": "workers-ai/@cf/deepseek-ai/deepseek-v4.1-flash-1017";
1279
+ "anthropic/claude-haiku-5-5": "anthropic/claude-haiku-5-5";
1280
+ "anthropic/claude-sonnet-5-5": "anthropic/claude-sonnet-5-5";
1281
+ "anthropic/claude-opus-5-5": "anthropic/claude-opus-5-5";
1282
+ "anthropic/claude-fable-5-1": "anthropic/claude-fable-5-1";
1283
+ "xai/grok-4.7": "xai/grok-4.7";
1284
+ "moonshotai/kimi-k3": "moonshotai/kimi-k3";
1285
+ "workers-ai/@cf/moonshotai/kimi-k2.7-code": "workers-ai/@cf/moonshotai/kimi-k2.7-code";
1286
+ "workers-ai/@cf/moonshotai/kimi-k2.6": "workers-ai/@cf/moonshotai/kimi-k2.6";
1287
+ "workers-ai/@cf/zai-org/glm-5.3": "workers-ai/@cf/zai-org/glm-5.3";
1288
+ "workers-ai/@cf/zai-org/glm-5.3-flash": "workers-ai/@cf/zai-org/glm-5.3-flash";
1289
+ "workers-ai/@cf/qwen/qwen3.8-27b": "workers-ai/@cf/qwen/qwen3.8-27b";
1290
+ "workers-ai/@cf/google/gemma-4-26b-a4b-it": "workers-ai/@cf/google/gemma-4-26b-a4b-it";
1291
+ "workers-ai/@cf/nvidia/nemotron-3-120b-a12b": "workers-ai/@cf/nvidia/nemotron-3-120b-a12b";
1292
+ "workers-ai/@cf/meta/llama-4-scout-17b-16e-instruct": "workers-ai/@cf/meta/llama-4-scout-17b-16e-instruct";
1293
+ "workers-ai/@cf/mistralai/mistral-small-3.1-24b-instruct": "workers-ai/@cf/mistralai/mistral-small-3.1-24b-instruct";
1294
+ "openai/gpt-6.1-terra": "openai/gpt-6.1-terra";
1295
+ "openai/gpt-6-luna": "openai/gpt-6-luna";
1296
+ "anthropic/claude-sonnet-4-6": "anthropic/claude-sonnet-4-6";
1297
+ "anthropic/claude-opus-4-6": "anthropic/claude-opus-4-6";
1298
+ "anthropic/claude-haiku-4-5": "anthropic/claude-haiku-4-5";
1299
+ "google-ai-studio/gemini-2.5-pro": "google-ai-studio/gemini-2.5-pro";
1300
+ "google-ai-studio/gemini-2.5-flash": "google-ai-studio/gemini-2.5-flash";
838
1301
  opus: "opus";
839
1302
  sonnet: "sonnet";
840
1303
  haiku: "haiku";
@@ -850,6 +1313,30 @@ export declare const OperatorUser: z.ZodObject<{
850
1313
  }>>>;
851
1314
  }, z.core.$strip>;
852
1315
  models: z.ZodNullable<z.ZodArray<z.ZodEnum<{
1316
+ "workers-ai/@cf/deepseek-ai/deepseek-v4-pro-0813": "workers-ai/@cf/deepseek-ai/deepseek-v4-pro-0813";
1317
+ "workers-ai/@cf/deepseek-ai/deepseek-v4.1-flash-1017": "workers-ai/@cf/deepseek-ai/deepseek-v4.1-flash-1017";
1318
+ "anthropic/claude-haiku-5-5": "anthropic/claude-haiku-5-5";
1319
+ "anthropic/claude-sonnet-5-5": "anthropic/claude-sonnet-5-5";
1320
+ "anthropic/claude-opus-5-5": "anthropic/claude-opus-5-5";
1321
+ "anthropic/claude-fable-5-1": "anthropic/claude-fable-5-1";
1322
+ "xai/grok-4.7": "xai/grok-4.7";
1323
+ "moonshotai/kimi-k3": "moonshotai/kimi-k3";
1324
+ "workers-ai/@cf/moonshotai/kimi-k2.7-code": "workers-ai/@cf/moonshotai/kimi-k2.7-code";
1325
+ "workers-ai/@cf/moonshotai/kimi-k2.6": "workers-ai/@cf/moonshotai/kimi-k2.6";
1326
+ "workers-ai/@cf/zai-org/glm-5.3": "workers-ai/@cf/zai-org/glm-5.3";
1327
+ "workers-ai/@cf/zai-org/glm-5.3-flash": "workers-ai/@cf/zai-org/glm-5.3-flash";
1328
+ "workers-ai/@cf/qwen/qwen3.8-27b": "workers-ai/@cf/qwen/qwen3.8-27b";
1329
+ "workers-ai/@cf/google/gemma-4-26b-a4b-it": "workers-ai/@cf/google/gemma-4-26b-a4b-it";
1330
+ "workers-ai/@cf/nvidia/nemotron-3-120b-a12b": "workers-ai/@cf/nvidia/nemotron-3-120b-a12b";
1331
+ "workers-ai/@cf/meta/llama-4-scout-17b-16e-instruct": "workers-ai/@cf/meta/llama-4-scout-17b-16e-instruct";
1332
+ "workers-ai/@cf/mistralai/mistral-small-3.1-24b-instruct": "workers-ai/@cf/mistralai/mistral-small-3.1-24b-instruct";
1333
+ "openai/gpt-6.1-terra": "openai/gpt-6.1-terra";
1334
+ "openai/gpt-6-luna": "openai/gpt-6-luna";
1335
+ "anthropic/claude-sonnet-4-6": "anthropic/claude-sonnet-4-6";
1336
+ "anthropic/claude-opus-4-6": "anthropic/claude-opus-4-6";
1337
+ "anthropic/claude-haiku-4-5": "anthropic/claude-haiku-4-5";
1338
+ "google-ai-studio/gemini-2.5-pro": "google-ai-studio/gemini-2.5-pro";
1339
+ "google-ai-studio/gemini-2.5-flash": "google-ai-studio/gemini-2.5-flash";
853
1340
  opus: "opus";
854
1341
  sonnet: "sonnet";
855
1342
  haiku: "haiku";
@@ -875,6 +1362,30 @@ export declare const OperatorUserList: z.ZodObject<{
875
1362
  defaults: z.ZodObject<{
876
1363
  limitUsd: z.ZodNullable<z.ZodNumber>;
877
1364
  models: z.ZodNullable<z.ZodArray<z.ZodEnum<{
1365
+ "workers-ai/@cf/deepseek-ai/deepseek-v4-pro-0813": "workers-ai/@cf/deepseek-ai/deepseek-v4-pro-0813";
1366
+ "workers-ai/@cf/deepseek-ai/deepseek-v4.1-flash-1017": "workers-ai/@cf/deepseek-ai/deepseek-v4.1-flash-1017";
1367
+ "anthropic/claude-haiku-5-5": "anthropic/claude-haiku-5-5";
1368
+ "anthropic/claude-sonnet-5-5": "anthropic/claude-sonnet-5-5";
1369
+ "anthropic/claude-opus-5-5": "anthropic/claude-opus-5-5";
1370
+ "anthropic/claude-fable-5-1": "anthropic/claude-fable-5-1";
1371
+ "xai/grok-4.7": "xai/grok-4.7";
1372
+ "moonshotai/kimi-k3": "moonshotai/kimi-k3";
1373
+ "workers-ai/@cf/moonshotai/kimi-k2.7-code": "workers-ai/@cf/moonshotai/kimi-k2.7-code";
1374
+ "workers-ai/@cf/moonshotai/kimi-k2.6": "workers-ai/@cf/moonshotai/kimi-k2.6";
1375
+ "workers-ai/@cf/zai-org/glm-5.3": "workers-ai/@cf/zai-org/glm-5.3";
1376
+ "workers-ai/@cf/zai-org/glm-5.3-flash": "workers-ai/@cf/zai-org/glm-5.3-flash";
1377
+ "workers-ai/@cf/qwen/qwen3.8-27b": "workers-ai/@cf/qwen/qwen3.8-27b";
1378
+ "workers-ai/@cf/google/gemma-4-26b-a4b-it": "workers-ai/@cf/google/gemma-4-26b-a4b-it";
1379
+ "workers-ai/@cf/nvidia/nemotron-3-120b-a12b": "workers-ai/@cf/nvidia/nemotron-3-120b-a12b";
1380
+ "workers-ai/@cf/meta/llama-4-scout-17b-16e-instruct": "workers-ai/@cf/meta/llama-4-scout-17b-16e-instruct";
1381
+ "workers-ai/@cf/mistralai/mistral-small-3.1-24b-instruct": "workers-ai/@cf/mistralai/mistral-small-3.1-24b-instruct";
1382
+ "openai/gpt-6.1-terra": "openai/gpt-6.1-terra";
1383
+ "openai/gpt-6-luna": "openai/gpt-6-luna";
1384
+ "anthropic/claude-sonnet-4-6": "anthropic/claude-sonnet-4-6";
1385
+ "anthropic/claude-opus-4-6": "anthropic/claude-opus-4-6";
1386
+ "anthropic/claude-haiku-4-5": "anthropic/claude-haiku-4-5";
1387
+ "google-ai-studio/gemini-2.5-pro": "google-ai-studio/gemini-2.5-pro";
1388
+ "google-ai-studio/gemini-2.5-flash": "google-ai-studio/gemini-2.5-flash";
878
1389
  opus: "opus";
879
1390
  sonnet: "sonnet";
880
1391
  haiku: "haiku";
@@ -896,6 +1407,30 @@ export declare const OperatorUserList: z.ZodObject<{
896
1407
  own: z.ZodObject<{
897
1408
  limitUsd: z.ZodNullable<z.ZodNumber>;
898
1409
  models: z.ZodNullable<z.ZodArray<z.ZodEnum<{
1410
+ "workers-ai/@cf/deepseek-ai/deepseek-v4-pro-0813": "workers-ai/@cf/deepseek-ai/deepseek-v4-pro-0813";
1411
+ "workers-ai/@cf/deepseek-ai/deepseek-v4.1-flash-1017": "workers-ai/@cf/deepseek-ai/deepseek-v4.1-flash-1017";
1412
+ "anthropic/claude-haiku-5-5": "anthropic/claude-haiku-5-5";
1413
+ "anthropic/claude-sonnet-5-5": "anthropic/claude-sonnet-5-5";
1414
+ "anthropic/claude-opus-5-5": "anthropic/claude-opus-5-5";
1415
+ "anthropic/claude-fable-5-1": "anthropic/claude-fable-5-1";
1416
+ "xai/grok-4.7": "xai/grok-4.7";
1417
+ "moonshotai/kimi-k3": "moonshotai/kimi-k3";
1418
+ "workers-ai/@cf/moonshotai/kimi-k2.7-code": "workers-ai/@cf/moonshotai/kimi-k2.7-code";
1419
+ "workers-ai/@cf/moonshotai/kimi-k2.6": "workers-ai/@cf/moonshotai/kimi-k2.6";
1420
+ "workers-ai/@cf/zai-org/glm-5.3": "workers-ai/@cf/zai-org/glm-5.3";
1421
+ "workers-ai/@cf/zai-org/glm-5.3-flash": "workers-ai/@cf/zai-org/glm-5.3-flash";
1422
+ "workers-ai/@cf/qwen/qwen3.8-27b": "workers-ai/@cf/qwen/qwen3.8-27b";
1423
+ "workers-ai/@cf/google/gemma-4-26b-a4b-it": "workers-ai/@cf/google/gemma-4-26b-a4b-it";
1424
+ "workers-ai/@cf/nvidia/nemotron-3-120b-a12b": "workers-ai/@cf/nvidia/nemotron-3-120b-a12b";
1425
+ "workers-ai/@cf/meta/llama-4-scout-17b-16e-instruct": "workers-ai/@cf/meta/llama-4-scout-17b-16e-instruct";
1426
+ "workers-ai/@cf/mistralai/mistral-small-3.1-24b-instruct": "workers-ai/@cf/mistralai/mistral-small-3.1-24b-instruct";
1427
+ "openai/gpt-6.1-terra": "openai/gpt-6.1-terra";
1428
+ "openai/gpt-6-luna": "openai/gpt-6-luna";
1429
+ "anthropic/claude-sonnet-4-6": "anthropic/claude-sonnet-4-6";
1430
+ "anthropic/claude-opus-4-6": "anthropic/claude-opus-4-6";
1431
+ "anthropic/claude-haiku-4-5": "anthropic/claude-haiku-4-5";
1432
+ "google-ai-studio/gemini-2.5-pro": "google-ai-studio/gemini-2.5-pro";
1433
+ "google-ai-studio/gemini-2.5-flash": "google-ai-studio/gemini-2.5-flash";
899
1434
  opus: "opus";
900
1435
  sonnet: "sonnet";
901
1436
  haiku: "haiku";
@@ -911,6 +1446,30 @@ export declare const OperatorUserList: z.ZodObject<{
911
1446
  }>>>;
912
1447
  }, z.core.$strip>;
913
1448
  models: z.ZodNullable<z.ZodArray<z.ZodEnum<{
1449
+ "workers-ai/@cf/deepseek-ai/deepseek-v4-pro-0813": "workers-ai/@cf/deepseek-ai/deepseek-v4-pro-0813";
1450
+ "workers-ai/@cf/deepseek-ai/deepseek-v4.1-flash-1017": "workers-ai/@cf/deepseek-ai/deepseek-v4.1-flash-1017";
1451
+ "anthropic/claude-haiku-5-5": "anthropic/claude-haiku-5-5";
1452
+ "anthropic/claude-sonnet-5-5": "anthropic/claude-sonnet-5-5";
1453
+ "anthropic/claude-opus-5-5": "anthropic/claude-opus-5-5";
1454
+ "anthropic/claude-fable-5-1": "anthropic/claude-fable-5-1";
1455
+ "xai/grok-4.7": "xai/grok-4.7";
1456
+ "moonshotai/kimi-k3": "moonshotai/kimi-k3";
1457
+ "workers-ai/@cf/moonshotai/kimi-k2.7-code": "workers-ai/@cf/moonshotai/kimi-k2.7-code";
1458
+ "workers-ai/@cf/moonshotai/kimi-k2.6": "workers-ai/@cf/moonshotai/kimi-k2.6";
1459
+ "workers-ai/@cf/zai-org/glm-5.3": "workers-ai/@cf/zai-org/glm-5.3";
1460
+ "workers-ai/@cf/zai-org/glm-5.3-flash": "workers-ai/@cf/zai-org/glm-5.3-flash";
1461
+ "workers-ai/@cf/qwen/qwen3.8-27b": "workers-ai/@cf/qwen/qwen3.8-27b";
1462
+ "workers-ai/@cf/google/gemma-4-26b-a4b-it": "workers-ai/@cf/google/gemma-4-26b-a4b-it";
1463
+ "workers-ai/@cf/nvidia/nemotron-3-120b-a12b": "workers-ai/@cf/nvidia/nemotron-3-120b-a12b";
1464
+ "workers-ai/@cf/meta/llama-4-scout-17b-16e-instruct": "workers-ai/@cf/meta/llama-4-scout-17b-16e-instruct";
1465
+ "workers-ai/@cf/mistralai/mistral-small-3.1-24b-instruct": "workers-ai/@cf/mistralai/mistral-small-3.1-24b-instruct";
1466
+ "openai/gpt-6.1-terra": "openai/gpt-6.1-terra";
1467
+ "openai/gpt-6-luna": "openai/gpt-6-luna";
1468
+ "anthropic/claude-sonnet-4-6": "anthropic/claude-sonnet-4-6";
1469
+ "anthropic/claude-opus-4-6": "anthropic/claude-opus-4-6";
1470
+ "anthropic/claude-haiku-4-5": "anthropic/claude-haiku-4-5";
1471
+ "google-ai-studio/gemini-2.5-pro": "google-ai-studio/gemini-2.5-pro";
1472
+ "google-ai-studio/gemini-2.5-flash": "google-ai-studio/gemini-2.5-flash";
914
1473
  opus: "opus";
915
1474
  sonnet: "sonnet";
916
1475
  haiku: "haiku";
@@ -960,6 +1519,12 @@ export declare const OperatorRunTrigger: z.ZodEnum<{
960
1519
  retry: "retry";
961
1520
  }>;
962
1521
  export type OperatorRunTrigger = z.infer<typeof OperatorRunTrigger>;
1522
+ export declare const OperatorRunCostSource: z.ZodEnum<{
1523
+ provider: "provider";
1524
+ catalog: "catalog";
1525
+ logs: "logs";
1526
+ }>;
1527
+ export type OperatorRunCostSource = z.infer<typeof OperatorRunCostSource>;
963
1528
  export declare const OperatorRunTokens: z.ZodObject<{
964
1529
  input: z.ZodInt;
965
1530
  output: z.ZodInt;
@@ -999,6 +1564,20 @@ export declare const OperatorRunAgents: z.ZodObject<{
999
1564
  export type OperatorRunAgents = z.infer<typeof OperatorRunAgents>;
1000
1565
  export declare const runSummaryChars = 300;
1001
1566
  export declare const compactRunLimit = 20;
1567
+ export declare const RunPlanStep: z.ZodObject<{
1568
+ title: z.ZodString;
1569
+ how: z.ZodNullable<z.ZodString>;
1570
+ result: z.ZodNullable<z.ZodString>;
1571
+ done: z.ZodBoolean;
1572
+ evidence: z.ZodArray<z.ZodString>;
1573
+ agent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1574
+ steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
1575
+ title: z.ZodString;
1576
+ result: z.ZodNullable<z.ZodString>;
1577
+ done: z.ZodBoolean;
1578
+ }, z.core.$strip>>>;
1579
+ }, z.core.$strip>;
1580
+ export type RunPlanStep = z.infer<typeof RunPlanStep>;
1002
1581
  export declare const OperatorRun: z.ZodObject<{
1003
1582
  trigger: z.ZodEnum<{
1004
1583
  schedule: "schedule";
@@ -1034,11 +1613,16 @@ export declare const OperatorRun: z.ZodObject<{
1034
1613
  cut: z.ZodBoolean;
1035
1614
  }, z.core.$strip>>;
1036
1615
  credentialKind: z.ZodNullable<z.ZodEnum<{
1616
+ gateway: "gateway";
1037
1617
  subscription: "subscription";
1038
1618
  apikey: "apikey";
1039
- gateway: "gateway";
1040
1619
  }>>;
1041
1620
  costUsd: z.ZodNullable<z.ZodNumber>;
1621
+ costSource: z.ZodNullable<z.ZodEnum<{
1622
+ provider: "provider";
1623
+ catalog: "catalog";
1624
+ logs: "logs";
1625
+ }>>;
1042
1626
  tokens: z.ZodNullable<z.ZodObject<{
1043
1627
  input: z.ZodInt;
1044
1628
  output: z.ZodInt;
@@ -1072,6 +1656,20 @@ export declare const OperatorRun: z.ZodObject<{
1072
1656
  startedAt: z.ZodISODateTime;
1073
1657
  endedAt: z.ZodNullable<z.ZodISODateTime>;
1074
1658
  durationMs: z.ZodNullable<z.ZodInt>;
1659
+ stepsRemovedDays: z.ZodNullable<z.ZodInt>;
1660
+ plan: z.ZodNullable<z.ZodArray<z.ZodObject<{
1661
+ title: z.ZodString;
1662
+ how: z.ZodNullable<z.ZodString>;
1663
+ result: z.ZodNullable<z.ZodString>;
1664
+ done: z.ZodBoolean;
1665
+ evidence: z.ZodArray<z.ZodString>;
1666
+ agent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1667
+ steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
1668
+ title: z.ZodString;
1669
+ result: z.ZodNullable<z.ZodString>;
1670
+ done: z.ZodBoolean;
1671
+ }, z.core.$strip>>>;
1672
+ }, z.core.$strip>>>;
1075
1673
  machineId: z.ZodTemplateLiteral<`user_${string}`>;
1076
1674
  machineName: z.ZodString;
1077
1675
  machineArchivedAt: z.ZodNullable<z.ZodISODateTime>;
@@ -1086,6 +1684,7 @@ export declare const OperatorRunListInput: z.ZodObject<{
1086
1684
  claude: "claude";
1087
1685
  codex: "codex";
1088
1686
  gemini: "gemini";
1687
+ gateway: "gateway";
1089
1688
  }>>;
1090
1689
  status: z.ZodOptional<z.ZodEnum<{
1091
1690
  running: "running";
@@ -1108,17 +1707,39 @@ export declare const RunCancelInput: z.ZodObject<{
1108
1707
  runId: z.ZodTemplateLiteral<`run_${string}`>;
1109
1708
  }, z.core.$strict>;
1110
1709
  export type RunCancelInput = z.infer<typeof RunCancelInput>;
1710
+ export declare const runPlanMax = 30;
1111
1711
  export declare const RunUpdateInput: z.ZodObject<{
1112
1712
  runId: z.ZodTemplateLiteral<`run_${string}`>;
1113
- read: z.ZodLiteral<true>;
1713
+ read: z.ZodOptional<z.ZodLiteral<true>>;
1714
+ plan: z.ZodOptional<z.ZodArray<z.ZodObject<{
1715
+ title: z.ZodString;
1716
+ how: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1717
+ result: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1718
+ done: z.ZodOptional<z.ZodBoolean>;
1719
+ evidence: z.ZodOptional<z.ZodArray<z.ZodTemplateLiteral<`node_${string}`>>>;
1720
+ agent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1721
+ }, z.core.$strict>>>;
1722
+ agent: z.ZodOptional<z.ZodString>;
1114
1723
  }, z.core.$strict>;
1115
1724
  export type RunUpdateInput = z.infer<typeof RunUpdateInput>;
1725
+ export declare const RunPlanAnswer: z.ZodObject<{
1726
+ runId: z.ZodTemplateLiteral<`run_${string}`>;
1727
+ done: z.ZodInt;
1728
+ total: z.ZodInt;
1729
+ next: z.ZodNullable<z.ZodObject<{
1730
+ title: z.ZodString;
1731
+ how: z.ZodNullable<z.ZodString>;
1732
+ }, z.core.$strip>>;
1733
+ remaining: z.ZodArray<z.ZodString>;
1734
+ }, z.core.$strip>;
1735
+ export type RunPlanAnswer = z.infer<typeof RunPlanAnswer>;
1736
+ export declare function planAnswerOf(runId: OperatorRunId, plan: readonly RunPlanStep[]): RunPlanAnswer;
1116
1737
  export declare const OperatorRunStepKind: z.ZodEnum<{
1117
1738
  error: "error";
1739
+ result: "result";
1118
1740
  text: "text";
1119
1741
  tool: "tool";
1120
1742
  thinking: "thinking";
1121
- result: "result";
1122
1743
  agentstart: "agentstart";
1123
1744
  agentend: "agentend";
1124
1745
  truncated: "truncated";
@@ -1130,10 +1751,10 @@ export declare const OperatorRunStep: z.ZodObject<{
1130
1751
  agentId: z.ZodNullable<z.ZodString>;
1131
1752
  kind: z.ZodEnum<{
1132
1753
  error: "error";
1754
+ result: "result";
1133
1755
  text: "text";
1134
1756
  tool: "tool";
1135
1757
  thinking: "thinking";
1136
- result: "result";
1137
1758
  agentstart: "agentstart";
1138
1759
  agentend: "agentend";
1139
1760
  truncated: "truncated";
@@ -1158,10 +1779,10 @@ export declare const OperatorRunStepList: z.ZodObject<{
1158
1779
  agentId: z.ZodNullable<z.ZodString>;
1159
1780
  kind: z.ZodEnum<{
1160
1781
  error: "error";
1782
+ result: "result";
1161
1783
  text: "text";
1162
1784
  tool: "tool";
1163
1785
  thinking: "thinking";
1164
- result: "result";
1165
1786
  agentstart: "agentstart";
1166
1787
  agentend: "agentend";
1167
1788
  truncated: "truncated";
@@ -1187,6 +1808,30 @@ export declare const OperatorRunUsage: z.ZodObject<{
1187
1808
  ownerId: z.ZodNullable<z.ZodTemplateLiteral<`user_${string}`>>;
1188
1809
  ownerName: z.ZodNullable<z.ZodString>;
1189
1810
  model: z.ZodNullable<z.ZodEnum<{
1811
+ "workers-ai/@cf/deepseek-ai/deepseek-v4-pro-0813": "workers-ai/@cf/deepseek-ai/deepseek-v4-pro-0813";
1812
+ "workers-ai/@cf/deepseek-ai/deepseek-v4.1-flash-1017": "workers-ai/@cf/deepseek-ai/deepseek-v4.1-flash-1017";
1813
+ "anthropic/claude-haiku-5-5": "anthropic/claude-haiku-5-5";
1814
+ "anthropic/claude-sonnet-5-5": "anthropic/claude-sonnet-5-5";
1815
+ "anthropic/claude-opus-5-5": "anthropic/claude-opus-5-5";
1816
+ "anthropic/claude-fable-5-1": "anthropic/claude-fable-5-1";
1817
+ "xai/grok-4.7": "xai/grok-4.7";
1818
+ "moonshotai/kimi-k3": "moonshotai/kimi-k3";
1819
+ "workers-ai/@cf/moonshotai/kimi-k2.7-code": "workers-ai/@cf/moonshotai/kimi-k2.7-code";
1820
+ "workers-ai/@cf/moonshotai/kimi-k2.6": "workers-ai/@cf/moonshotai/kimi-k2.6";
1821
+ "workers-ai/@cf/zai-org/glm-5.3": "workers-ai/@cf/zai-org/glm-5.3";
1822
+ "workers-ai/@cf/zai-org/glm-5.3-flash": "workers-ai/@cf/zai-org/glm-5.3-flash";
1823
+ "workers-ai/@cf/qwen/qwen3.8-27b": "workers-ai/@cf/qwen/qwen3.8-27b";
1824
+ "workers-ai/@cf/google/gemma-4-26b-a4b-it": "workers-ai/@cf/google/gemma-4-26b-a4b-it";
1825
+ "workers-ai/@cf/nvidia/nemotron-3-120b-a12b": "workers-ai/@cf/nvidia/nemotron-3-120b-a12b";
1826
+ "workers-ai/@cf/meta/llama-4-scout-17b-16e-instruct": "workers-ai/@cf/meta/llama-4-scout-17b-16e-instruct";
1827
+ "workers-ai/@cf/mistralai/mistral-small-3.1-24b-instruct": "workers-ai/@cf/mistralai/mistral-small-3.1-24b-instruct";
1828
+ "openai/gpt-6.1-terra": "openai/gpt-6.1-terra";
1829
+ "openai/gpt-6-luna": "openai/gpt-6-luna";
1830
+ "anthropic/claude-sonnet-4-6": "anthropic/claude-sonnet-4-6";
1831
+ "anthropic/claude-opus-4-6": "anthropic/claude-opus-4-6";
1832
+ "anthropic/claude-haiku-4-5": "anthropic/claude-haiku-4-5";
1833
+ "google-ai-studio/gemini-2.5-pro": "google-ai-studio/gemini-2.5-pro";
1834
+ "google-ai-studio/gemini-2.5-flash": "google-ai-studio/gemini-2.5-flash";
1190
1835
  opus: "opus";
1191
1836
  sonnet: "sonnet";
1192
1837
  haiku: "haiku";
@@ -1237,9 +1882,9 @@ export declare const OperatorRunUsage: z.ZodObject<{
1237
1882
  cacheWrite: z.ZodInt;
1238
1883
  }, z.core.$strip>;
1239
1884
  kind: z.ZodEnum<{
1885
+ gateway: "gateway";
1240
1886
  subscription: "subscription";
1241
1887
  apikey: "apikey";
1242
- gateway: "gateway";
1243
1888
  }>;
1244
1889
  }, z.core.$strip>>;
1245
1890
  byProvider: z.ZodArray<z.ZodObject<{
@@ -1255,6 +1900,7 @@ export declare const OperatorRunUsage: z.ZodObject<{
1255
1900
  claude: "claude";
1256
1901
  codex: "codex";
1257
1902
  gemini: "gemini";
1903
+ gateway: "gateway";
1258
1904
  }>;
1259
1905
  }, z.core.$strip>>;
1260
1906
  runs: z.ZodInt;
@@ -1303,11 +1949,16 @@ export declare const OperatorRunList: z.ZodObject<{
1303
1949
  cut: z.ZodBoolean;
1304
1950
  }, z.core.$strip>>;
1305
1951
  credentialKind: z.ZodNullable<z.ZodEnum<{
1952
+ gateway: "gateway";
1306
1953
  subscription: "subscription";
1307
1954
  apikey: "apikey";
1308
- gateway: "gateway";
1309
1955
  }>>;
1310
1956
  costUsd: z.ZodNullable<z.ZodNumber>;
1957
+ costSource: z.ZodNullable<z.ZodEnum<{
1958
+ provider: "provider";
1959
+ catalog: "catalog";
1960
+ logs: "logs";
1961
+ }>>;
1311
1962
  tokens: z.ZodNullable<z.ZodObject<{
1312
1963
  input: z.ZodInt;
1313
1964
  output: z.ZodInt;
@@ -1341,6 +1992,20 @@ export declare const OperatorRunList: z.ZodObject<{
1341
1992
  startedAt: z.ZodISODateTime;
1342
1993
  endedAt: z.ZodNullable<z.ZodISODateTime>;
1343
1994
  durationMs: z.ZodNullable<z.ZodInt>;
1995
+ stepsRemovedDays: z.ZodNullable<z.ZodInt>;
1996
+ plan: z.ZodNullable<z.ZodArray<z.ZodObject<{
1997
+ title: z.ZodString;
1998
+ how: z.ZodNullable<z.ZodString>;
1999
+ result: z.ZodNullable<z.ZodString>;
2000
+ done: z.ZodBoolean;
2001
+ evidence: z.ZodArray<z.ZodString>;
2002
+ agent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2003
+ steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
2004
+ title: z.ZodString;
2005
+ result: z.ZodNullable<z.ZodString>;
2006
+ done: z.ZodBoolean;
2007
+ }, z.core.$strip>>>;
2008
+ }, z.core.$strip>>>;
1344
2009
  machineId: z.ZodTemplateLiteral<`user_${string}`>;
1345
2010
  machineName: z.ZodString;
1346
2011
  machineArchivedAt: z.ZodNullable<z.ZodISODateTime>;
@@ -1360,6 +2025,30 @@ export declare const OperatorRunList: z.ZodObject<{
1360
2025
  ownerId: z.ZodNullable<z.ZodTemplateLiteral<`user_${string}`>>;
1361
2026
  ownerName: z.ZodNullable<z.ZodString>;
1362
2027
  model: z.ZodNullable<z.ZodEnum<{
2028
+ "workers-ai/@cf/deepseek-ai/deepseek-v4-pro-0813": "workers-ai/@cf/deepseek-ai/deepseek-v4-pro-0813";
2029
+ "workers-ai/@cf/deepseek-ai/deepseek-v4.1-flash-1017": "workers-ai/@cf/deepseek-ai/deepseek-v4.1-flash-1017";
2030
+ "anthropic/claude-haiku-5-5": "anthropic/claude-haiku-5-5";
2031
+ "anthropic/claude-sonnet-5-5": "anthropic/claude-sonnet-5-5";
2032
+ "anthropic/claude-opus-5-5": "anthropic/claude-opus-5-5";
2033
+ "anthropic/claude-fable-5-1": "anthropic/claude-fable-5-1";
2034
+ "xai/grok-4.7": "xai/grok-4.7";
2035
+ "moonshotai/kimi-k3": "moonshotai/kimi-k3";
2036
+ "workers-ai/@cf/moonshotai/kimi-k2.7-code": "workers-ai/@cf/moonshotai/kimi-k2.7-code";
2037
+ "workers-ai/@cf/moonshotai/kimi-k2.6": "workers-ai/@cf/moonshotai/kimi-k2.6";
2038
+ "workers-ai/@cf/zai-org/glm-5.3": "workers-ai/@cf/zai-org/glm-5.3";
2039
+ "workers-ai/@cf/zai-org/glm-5.3-flash": "workers-ai/@cf/zai-org/glm-5.3-flash";
2040
+ "workers-ai/@cf/qwen/qwen3.8-27b": "workers-ai/@cf/qwen/qwen3.8-27b";
2041
+ "workers-ai/@cf/google/gemma-4-26b-a4b-it": "workers-ai/@cf/google/gemma-4-26b-a4b-it";
2042
+ "workers-ai/@cf/nvidia/nemotron-3-120b-a12b": "workers-ai/@cf/nvidia/nemotron-3-120b-a12b";
2043
+ "workers-ai/@cf/meta/llama-4-scout-17b-16e-instruct": "workers-ai/@cf/meta/llama-4-scout-17b-16e-instruct";
2044
+ "workers-ai/@cf/mistralai/mistral-small-3.1-24b-instruct": "workers-ai/@cf/mistralai/mistral-small-3.1-24b-instruct";
2045
+ "openai/gpt-6.1-terra": "openai/gpt-6.1-terra";
2046
+ "openai/gpt-6-luna": "openai/gpt-6-luna";
2047
+ "anthropic/claude-sonnet-4-6": "anthropic/claude-sonnet-4-6";
2048
+ "anthropic/claude-opus-4-6": "anthropic/claude-opus-4-6";
2049
+ "anthropic/claude-haiku-4-5": "anthropic/claude-haiku-4-5";
2050
+ "google-ai-studio/gemini-2.5-pro": "google-ai-studio/gemini-2.5-pro";
2051
+ "google-ai-studio/gemini-2.5-flash": "google-ai-studio/gemini-2.5-flash";
1363
2052
  opus: "opus";
1364
2053
  sonnet: "sonnet";
1365
2054
  haiku: "haiku";
@@ -1410,9 +2099,9 @@ export declare const OperatorRunList: z.ZodObject<{
1410
2099
  cacheWrite: z.ZodInt;
1411
2100
  }, z.core.$strip>;
1412
2101
  kind: z.ZodEnum<{
2102
+ gateway: "gateway";
1413
2103
  subscription: "subscription";
1414
2104
  apikey: "apikey";
1415
- gateway: "gateway";
1416
2105
  }>;
1417
2106
  }, z.core.$strip>>;
1418
2107
  byProvider: z.ZodArray<z.ZodObject<{
@@ -1428,6 +2117,7 @@ export declare const OperatorRunList: z.ZodObject<{
1428
2117
  claude: "claude";
1429
2118
  codex: "codex";
1430
2119
  gemini: "gemini";
2120
+ gateway: "gateway";
1431
2121
  }>;
1432
2122
  }, z.core.$strip>>;
1433
2123
  runs: z.ZodInt;