@depup/cloudflare__workers-types 5.20260925.2-depup.0 → 5.20260926.1-depup.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -13,8 +13,8 @@ npm install @depup/cloudflare__workers-types
13
13
 
14
14
  | Field | Value |
15
15
  |-------|-------|
16
- | Original | [@cloudflare/workers-types](https://www.npmjs.com/package/@cloudflare/workers-types) @ 5.20260925.2 |
17
- | Processed | 2026-09-25 |
16
+ | Original | [@cloudflare/workers-types](https://www.npmjs.com/package/@cloudflare/workers-types) @ 5.20260926.1 |
17
+ | Processed | 2026-09-26 |
18
18
  | Smoke test | failed |
19
19
  | Deps updated | 0 |
20
20
 
package/changes.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "bumped": {},
3
- "timestamp": "2026-09-25T16:10:06.286Z",
3
+ "timestamp": "2026-09-26T08:11:33.609Z",
4
4
  "totalUpdated": 0
5
5
  }
@@ -6497,8 +6497,13 @@ type WebSearchOptions = {
6497
6497
  search_context_size?: "low" | "medium" | "high";
6498
6498
  user_location?: WebSearchUserLocation;
6499
6499
  };
6500
+ // Source of truth for per-model reasoning types: each model's `reasoning_effort` metadata
6501
+ // in Workers AI ConfigAPI (supported efforts, aliases, defaults, and whether reasoning can
6502
+ // be turned off). The Workers AI SDK type generator (cloudflare/ai/sdk,
6503
+ // apps/worker-constellation-entry/scripts/build-types) turns it into the per-model
6504
+ // `inputs` types below; the developer docs model schemas come from the same metadata.
6500
6505
  type ChatTemplateKwargs = {
6501
- /** Whether to enable reasoning, enabled by default. */
6506
+ /** Whether to enable reasoning. Support and defaults depend on the model. */
6502
6507
  enable_thinking?: boolean;
6503
6508
  /** If false, preserves reasoning context between turns. */
6504
6509
  clear_thinking?: boolean;
@@ -6519,6 +6524,7 @@ type ChatCompletionsCommonOptions = {
6519
6524
  parallel_tool_calls?: boolean;
6520
6525
  prediction?: PredictionContent;
6521
6526
  presence_penalty?: number | null;
6527
+ /** Reasoning effort. Supported levels depend on the model. */
6522
6528
  reasoning_effort?: "low" | "medium" | "high" | null;
6523
6529
  chat_template_kwargs?: ChatTemplateKwargs;
6524
6530
  response_format?: ResponseFormat;
@@ -10727,11 +10733,69 @@ declare abstract class Base_Ai_Cf_Pipecat_Ai_Smart_Turn_V2 {
10727
10733
  postProcessedOutputs: Ai_Cf_Pipecat_Ai_Smart_Turn_V2_Output;
10728
10734
  }
10729
10735
  declare abstract class Base_Ai_Cf_Openai_Gpt_Oss_120B {
10730
- inputs: XOR<ResponsesInput, ChatCompletionsMessagesInput>;
10736
+ inputs: XOR<
10737
+ Omit<ResponsesInput, "reasoning"> & {
10738
+ reasoning?:
10739
+ | (Omit<Reasoning, "effort"> & {
10740
+ /**
10741
+ * Reasoning effort. Supported levels: low, medium, high. Reasoning cannot be disabled.
10742
+ *
10743
+ * @default "medium"
10744
+ */
10745
+ effort?: "low" | "medium" | "high" | null;
10746
+ })
10747
+ | null;
10748
+ },
10749
+ Omit<ChatCompletionsInput, "reasoning_effort" | "chat_template_kwargs"> & {
10750
+ /**
10751
+ * Reasoning effort. Supported levels: low, medium, high. Reasoning cannot be disabled.
10752
+ *
10753
+ * @default "medium"
10754
+ */
10755
+ reasoning_effort?: "low" | "medium" | "high" | null;
10756
+ chat_template_kwargs?: Omit<ChatTemplateKwargs, "enable_thinking"> & {
10757
+ /**
10758
+ * Reasoning is always enabled for this model and cannot be disabled.
10759
+ *
10760
+ * @default true
10761
+ */
10762
+ enable_thinking?: true;
10763
+ };
10764
+ }
10765
+ >;
10731
10766
  postProcessedOutputs: XOR<ResponsesOutput, ChatCompletionsOutput>;
10732
10767
  }
10733
10768
  declare abstract class Base_Ai_Cf_Openai_Gpt_Oss_20B {
10734
- inputs: XOR<ResponsesInput, ChatCompletionsMessagesInput>;
10769
+ inputs: XOR<
10770
+ Omit<ResponsesInput, "reasoning"> & {
10771
+ reasoning?:
10772
+ | (Omit<Reasoning, "effort"> & {
10773
+ /**
10774
+ * Reasoning effort. Supported levels: low, medium, high. Reasoning cannot be disabled.
10775
+ *
10776
+ * @default "medium"
10777
+ */
10778
+ effort?: "low" | "medium" | "high" | null;
10779
+ })
10780
+ | null;
10781
+ },
10782
+ Omit<ChatCompletionsInput, "reasoning_effort" | "chat_template_kwargs"> & {
10783
+ /**
10784
+ * Reasoning effort. Supported levels: low, medium, high. Reasoning cannot be disabled.
10785
+ *
10786
+ * @default "medium"
10787
+ */
10788
+ reasoning_effort?: "low" | "medium" | "high" | null;
10789
+ chat_template_kwargs?: Omit<ChatTemplateKwargs, "enable_thinking"> & {
10790
+ /**
10791
+ * Reasoning is always enabled for this model and cannot be disabled.
10792
+ *
10793
+ * @default true
10794
+ */
10795
+ enable_thinking?: true;
10796
+ };
10797
+ }
10798
+ >;
10735
10799
  postProcessedOutputs: XOR<ResponsesOutput, ChatCompletionsOutput>;
10736
10800
  }
10737
10801
  interface Ai_Cf_Leonardo_Phoenix_1_0_Input {
@@ -11814,7 +11878,19 @@ declare abstract class Base_Ai_Cf_Black_Forest_Labs_Flux_2_Klein_9B {
11814
11878
  postProcessedOutputs: Ai_Cf_Black_Forest_Labs_Flux_2_Klein_9B_Output;
11815
11879
  }
11816
11880
  declare abstract class Base_Ai_Cf_Zai_Org_Glm_4_7_Flash {
11817
- inputs: ChatCompletionsInput;
11881
+ inputs: Omit<
11882
+ ChatCompletionsInput,
11883
+ "reasoning_effort" | "chat_template_kwargs"
11884
+ > & {
11885
+ chat_template_kwargs?: Omit<ChatTemplateKwargs, "enable_thinking"> & {
11886
+ /**
11887
+ * Whether to enable reasoning for this model. This model has no reasoning effort levels.
11888
+ *
11889
+ * @default true
11890
+ */
11891
+ enable_thinking?: boolean;
11892
+ };
11893
+ };
11818
11894
  postProcessedOutputs: ChatCompletionsOutput;
11819
11895
  }
11820
11896
  declare abstract class Base_Ai_Cf_Moonshotai_Kimi_K2_5 {
@@ -11822,23 +11898,168 @@ declare abstract class Base_Ai_Cf_Moonshotai_Kimi_K2_5 {
11822
11898
  postProcessedOutputs: ChatCompletionsOutput;
11823
11899
  }
11824
11900
  declare abstract class Base_Ai_Cf_Moonshotai_Kimi_K2_6 {
11825
- inputs: ChatCompletionsInput;
11901
+ inputs: Omit<
11902
+ ChatCompletionsInput,
11903
+ "reasoning_effort" | "chat_template_kwargs"
11904
+ > & {
11905
+ /**
11906
+ * Reasoning effort. Supported levels: high, none. Compatibility aliases (accepted by the API, not by these types): low maps to high; medium maps to high; max maps to high.
11907
+ *
11908
+ * @default "high"
11909
+ */
11910
+ reasoning_effort?: "high" | "none" | null;
11911
+ chat_template_kwargs?: Omit<ChatTemplateKwargs, "enable_thinking"> & {
11912
+ /**
11913
+ * Whether to enable reasoning for this model.
11914
+ *
11915
+ * @default true
11916
+ */
11917
+ enable_thinking?: boolean;
11918
+ };
11919
+ };
11826
11920
  postProcessedOutputs: ChatCompletionsOutput;
11827
11921
  }
11922
+ type Ai_Cf_Nvidia_Nemotron_3_120B_A12B_Input = Omit<
11923
+ ChatCompletionsInput,
11924
+ | "model"
11925
+ | "max_tokens"
11926
+ | "metadata"
11927
+ | "modalities"
11928
+ | "chat_template_kwargs"
11929
+ | "store"
11930
+ | "reasoning_effort"
11931
+ > & {
11932
+ /**
11933
+ * ID of the model to use (for example, '@cf/nvidia/nemotron-3-120b-a12b').
11934
+ */
11935
+ model?: ChatCompletionsInput["model"];
11936
+ /**
11937
+ * The maximum number of tokens to generate.
11938
+ */
11939
+ max_tokens?: ChatCompletionsInput["max_tokens"];
11940
+ /**
11941
+ * Set of key-value pairs that can be attached to the object.
11942
+ */
11943
+ metadata?: ChatCompletionsInput["metadata"];
11944
+ /**
11945
+ * Output types requested from the model.
11946
+ */
11947
+ modalities?: ChatCompletionsInput["modalities"];
11948
+ /**
11949
+ * Nemotron chat-template controls for normal reasoning, low-effort reasoning, and non-reasoning responses.
11950
+ */
11951
+ chat_template_kwargs?: {
11952
+ /**
11953
+ * Whether to enable reasoning. Reasoning is enabled by default.
11954
+ */
11955
+ enable_thinking?: boolean;
11956
+ /**
11957
+ * When reasoning is enabled, use Nemotron's low-effort reasoning mode, which uses significantly fewer reasoning tokens.
11958
+ */
11959
+ low_effort?: boolean;
11960
+ /**
11961
+ * For coding agent use, Nvidia suggests setting force_nonempty_content=true
11962
+ */
11963
+ force_nonempty_content?: boolean;
11964
+ };
11965
+ /**
11966
+ * Whether to store the output for model distillation or evaluation.
11967
+ *
11968
+ * @default false
11969
+ */
11970
+ store?: ChatCompletionsInput["store"];
11971
+ };
11828
11972
  declare abstract class Base_Ai_Cf_Nvidia_Nemotron_3_120B_A12B {
11829
- inputs: ChatCompletionsInput;
11973
+ inputs: Ai_Cf_Nvidia_Nemotron_3_120B_A12B_Input;
11830
11974
  postProcessedOutputs: ChatCompletionsOutput;
11831
11975
  }
11832
- declare abstract class Base_Ai_Cf_Google_Gemma_4_26B_A4B_IT {
11833
- inputs: ChatCompletionsInput;
11976
+ type Ai_Cf_Google_Gemma_4_26B_A4B_It_Input = Omit<
11977
+ ChatCompletionsInput,
11978
+ "reasoning_effort" | "chat_template_kwargs"
11979
+ > & {
11980
+ chat_template_kwargs?: Omit<ChatTemplateKwargs, "enable_thinking"> & {
11981
+ /**
11982
+ * Whether to enable reasoning for this model. This model has no reasoning effort levels.
11983
+ *
11984
+ * @default true
11985
+ */
11986
+ enable_thinking?: boolean;
11987
+ };
11988
+ } & {
11989
+ /**
11990
+ * @default false
11991
+ */
11992
+ skip_special_tokens?: boolean;
11993
+ };
11994
+ declare abstract class Base_Ai_Cf_Google_Gemma_4_26B_A4B_It {
11995
+ inputs: Ai_Cf_Google_Gemma_4_26B_A4B_It_Input;
11834
11996
  postProcessedOutputs: ChatCompletionsOutput;
11835
11997
  }
11998
+ /** @deprecated Use Base_Ai_Cf_Google_Gemma_4_26B_A4B_It. */
11999
+ declare abstract class Base_Ai_Cf_Google_Gemma_4_26B_A4B_IT extends Base_Ai_Cf_Google_Gemma_4_26B_A4B_It {}
12000
+ type Ai_Cf_Nvidia_Nemotron_Speech_Streaming_En_0_6B_Input =
12001
+ | {
12002
+ /**
12003
+ * readable stream with audio data and content-type specified for that data
12004
+ */
12005
+ audio: {
12006
+ body: object;
12007
+ contentType: string;
12008
+ };
12009
+ }
12010
+ | {
12011
+ /**
12012
+ * base64 encoded audio data
12013
+ */
12014
+ audio: string;
12015
+ encoding?: "wav" | "flac" | "ogg" | "linear16";
12016
+ sample_rate?: number;
12017
+ channels?: number;
12018
+ };
12019
+ interface Ai_Cf_Nvidia_Nemotron_Speech_Streaming_En_0_6B_Output {
12020
+ text?: string;
12021
+ duration?: number;
12022
+ }
12023
+ declare abstract class Base_Ai_Cf_Nvidia_Nemotron_Speech_Streaming_En_0_6B {
12024
+ inputs: Ai_Cf_Nvidia_Nemotron_Speech_Streaming_En_0_6B_Input;
12025
+ postProcessedOutputs: Ai_Cf_Nvidia_Nemotron_Speech_Streaming_En_0_6B_Output;
12026
+ }
11836
12027
  declare abstract class Base_Ai_Cf_Moonshotai_Kimi_K2_7_Code {
11837
- inputs: ChatCompletionsInput;
12028
+ inputs: Omit<
12029
+ ChatCompletionsInput,
12030
+ "reasoning_effort" | "chat_template_kwargs"
12031
+ > & {
12032
+ chat_template_kwargs?: Omit<ChatTemplateKwargs, "enable_thinking"> & {
12033
+ /**
12034
+ * Reasoning is always enabled for this model and cannot be disabled. This model has no reasoning effort levels.
12035
+ *
12036
+ * @default true
12037
+ */
12038
+ enable_thinking?: true;
12039
+ };
12040
+ };
11838
12041
  postProcessedOutputs: ChatCompletionsOutput;
11839
12042
  }
11840
12043
  declare abstract class Base_Ai_Cf_Zai_Org_Glm_5_2 {
11841
- inputs: ChatCompletionsInput;
12044
+ inputs: Omit<
12045
+ ChatCompletionsInput,
12046
+ "reasoning_effort" | "chat_template_kwargs"
12047
+ > & {
12048
+ /**
12049
+ * Reasoning effort. Supported levels: max, high, none. Compatibility aliases (accepted by the API, not by these types): low maps to high; medium maps to high; xhigh maps to max; minimal maps to none.
12050
+ *
12051
+ * @default "max"
12052
+ */
12053
+ reasoning_effort?: "max" | "high" | "none" | null;
12054
+ chat_template_kwargs?: Omit<ChatTemplateKwargs, "enable_thinking"> & {
12055
+ /**
12056
+ * Whether to enable reasoning for this model.
12057
+ *
12058
+ * @default true
12059
+ */
12060
+ enable_thinking?: boolean;
12061
+ };
12062
+ };
11842
12063
  postProcessedOutputs: ChatCompletionsOutput;
11843
12064
  }
11844
12065
  interface Ai_Cf_Moondream_Moondream3_1_9B_A2B_Input {
@@ -11975,26 +12196,119 @@ declare abstract class Base_Ai_Cf_Moondream_Moondream3_1_9B_A2B {
11975
12196
  postProcessedOutputs: Ai_Cf_Moondream_Moondream3_1_9B_A2B_Output;
11976
12197
  }
11977
12198
  declare abstract class Base_Ai_Cf_Deepseek_Ai_Deepseek_V4_Flash_0731 {
11978
- inputs: ChatCompletionsInput;
12199
+ inputs: Omit<
12200
+ ChatCompletionsInput,
12201
+ "reasoning_effort" | "chat_template_kwargs"
12202
+ > & {
12203
+ /**
12204
+ * Reasoning effort. Supported levels: max, high, low, none. Compatibility aliases (accepted by the API, not by these types): minimal maps to low; medium maps to high; xhigh maps to high.
12205
+ *
12206
+ * @default "high"
12207
+ */
12208
+ reasoning_effort?: "max" | "high" | "low" | "none" | null;
12209
+ chat_template_kwargs?: Omit<ChatTemplateKwargs, "enable_thinking"> & {
12210
+ /**
12211
+ * Whether to enable reasoning for this model.
12212
+ *
12213
+ * @default true
12214
+ */
12215
+ enable_thinking?: boolean;
12216
+ };
12217
+ };
11979
12218
  postProcessedOutputs: ChatCompletionsOutput;
11980
12219
  }
11981
12220
  declare abstract class Base_Ai_Cf_Deepseek_Ai_Deepseek_V4_Pro_0813 {
11982
- inputs: ChatCompletionsInput;
12221
+ inputs: Omit<
12222
+ ChatCompletionsInput,
12223
+ "reasoning_effort" | "chat_template_kwargs"
12224
+ > & {
12225
+ /**
12226
+ * Reasoning effort. Supported levels: max, high, low, none. Compatibility aliases (accepted by the API, not by these types): minimal maps to low; medium maps to high; xhigh maps to high.
12227
+ *
12228
+ * @default "high"
12229
+ */
12230
+ reasoning_effort?: "max" | "high" | "low" | "none" | null;
12231
+ chat_template_kwargs?: Omit<ChatTemplateKwargs, "enable_thinking"> & {
12232
+ /**
12233
+ * Whether to enable reasoning for this model.
12234
+ *
12235
+ * @default true
12236
+ */
12237
+ enable_thinking?: boolean;
12238
+ };
12239
+ };
11983
12240
  postProcessedOutputs: ChatCompletionsOutput;
11984
12241
  }
11985
12242
  declare abstract class Base_Ai_Cf_Qwen_Qwen3_8_27B {
11986
- inputs: ChatCompletionsInput;
12243
+ inputs: Omit<
12244
+ ChatCompletionsInput,
12245
+ "reasoning_effort" | "chat_template_kwargs"
12246
+ > & {
12247
+ /**
12248
+ * Reasoning effort. Supported levels: low, medium, xhigh.
12249
+ *
12250
+ * @default "xhigh"
12251
+ */
12252
+ reasoning_effort?: "low" | "medium" | "xhigh" | null;
12253
+ chat_template_kwargs?: Omit<ChatTemplateKwargs, "enable_thinking"> & {
12254
+ /**
12255
+ * Whether to enable reasoning for this model.
12256
+ *
12257
+ * @default true
12258
+ */
12259
+ enable_thinking?: boolean;
12260
+ };
12261
+ };
12262
+ postProcessedOutputs: ChatCompletionsOutput;
12263
+ }
12264
+ declare abstract class Base_Ai_Cf_Zai_Org_Glm_5_3 {
12265
+ inputs: Omit<
12266
+ ChatCompletionsInput,
12267
+ "reasoning_effort" | "chat_template_kwargs"
12268
+ > & {
12269
+ /**
12270
+ * Reasoning effort. Supported levels: max, high, low. Reasoning cannot be disabled. Compatibility aliases (accepted by the API, not by these types): none maps to max; minimal maps to max; medium maps to max; xhigh maps to max.
12271
+ *
12272
+ * @default "max"
12273
+ */
12274
+ reasoning_effort?: "max" | "high" | "low" | null;
12275
+ chat_template_kwargs?: Omit<ChatTemplateKwargs, "enable_thinking"> & {
12276
+ /**
12277
+ * Reasoning is always enabled for this model and cannot be disabled.
12278
+ *
12279
+ * @default true
12280
+ */
12281
+ enable_thinking?: true;
12282
+ };
12283
+ };
11987
12284
  postProcessedOutputs: ChatCompletionsOutput;
11988
12285
  }
11989
12286
  declare abstract class Base_Ai_Cf_Zai_Org_Glm_5_3_Flash {
11990
- inputs: ChatCompletionsInput;
12287
+ inputs: Omit<
12288
+ ChatCompletionsInput,
12289
+ "reasoning_effort" | "chat_template_kwargs"
12290
+ > & {
12291
+ /**
12292
+ * Reasoning effort. Supported levels: max, high, low. Reasoning cannot be disabled. Compatibility aliases (accepted by the API, not by these types): none maps to max; minimal maps to max; medium maps to max; xhigh maps to max.
12293
+ *
12294
+ * @default "max"
12295
+ */
12296
+ reasoning_effort?: "max" | "high" | "low" | null;
12297
+ chat_template_kwargs?: Omit<ChatTemplateKwargs, "enable_thinking"> & {
12298
+ /**
12299
+ * Reasoning is always enabled for this model and cannot be disabled.
12300
+ *
12301
+ * @default true
12302
+ */
12303
+ enable_thinking?: true;
12304
+ };
12305
+ };
11991
12306
  postProcessedOutputs: ChatCompletionsOutput;
11992
12307
  }
11993
12308
  interface AiModels {
11994
12309
  "@cf/huggingface/distilbert-sst-2-int8": BaseAiTextClassification;
11995
12310
  "@cf/stabilityai/stable-diffusion-xl-base-1.0": BaseAiTextToImage;
11996
12311
  "@cf/runwayml/stable-diffusion-v1-5-inpainting": BaseAiTextToImage;
11997
- "@cf/runwayml/stable-diffusion-v1-5-img2img": BaseAiTextToImage;
11998
12312
  "@cf/lykon/dreamshaper-8-lcm": BaseAiTextToImage;
11999
12313
  "@cf/bytedance/stable-diffusion-xl-lightning": BaseAiTextToImage;
12000
12314
  "@cf/myshell-ai/melotts": BaseAiTextToSpeech;
@@ -12081,13 +12395,15 @@ interface AiModels {
12081
12395
  "@cf/moonshotai/kimi-k2.5": Base_Ai_Cf_Moonshotai_Kimi_K2_5;
12082
12396
  "@cf/moonshotai/kimi-k2.6": Base_Ai_Cf_Moonshotai_Kimi_K2_6;
12083
12397
  "@cf/nvidia/nemotron-3-120b-a12b": Base_Ai_Cf_Nvidia_Nemotron_3_120B_A12B;
12084
- "@cf/google/gemma-4-26b-a4b-it": Base_Ai_Cf_Google_Gemma_4_26B_A4B_IT;
12398
+ "@cf/google/gemma-4-26b-a4b-it": Base_Ai_Cf_Google_Gemma_4_26B_A4B_It;
12399
+ "@cf/nvidia/nemotron-speech-streaming-en-0.6b": Base_Ai_Cf_Nvidia_Nemotron_Speech_Streaming_En_0_6B;
12085
12400
  "@cf/moonshotai/kimi-k2.7-code": Base_Ai_Cf_Moonshotai_Kimi_K2_7_Code;
12086
12401
  "@cf/zai-org/glm-5.2": Base_Ai_Cf_Zai_Org_Glm_5_2;
12087
12402
  "@cf/moondream/moondream3.1-9B-A2B": Base_Ai_Cf_Moondream_Moondream3_1_9B_A2B;
12088
12403
  "@cf/deepseek-ai/deepseek-v4-flash-0731": Base_Ai_Cf_Deepseek_Ai_Deepseek_V4_Flash_0731;
12089
12404
  "@cf/deepseek-ai/deepseek-v4-pro-0813": Base_Ai_Cf_Deepseek_Ai_Deepseek_V4_Pro_0813;
12090
12405
  "@cf/qwen/qwen3.8-27b": Base_Ai_Cf_Qwen_Qwen3_8_27B;
12406
+ "@cf/zai-org/glm-5.3": Base_Ai_Cf_Zai_Org_Glm_5_3;
12091
12407
  "@cf/zai-org/glm-5.3-flash": Base_Ai_Cf_Zai_Org_Glm_5_3_Flash;
12092
12408
  }
12093
12409
  type AiOptions = {