@cloudflare/workers-types 4.20260409.1 → 4.20260411.1

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.
@@ -476,6 +476,7 @@ interface ExecutionContext<Props = unknown> {
476
476
  waitUntil(promise: Promise<any>): void;
477
477
  passThroughOnException(): void;
478
478
  readonly props: Props;
479
+ cache?: CacheContext;
479
480
  }
480
481
  type ExportedHandlerFetchHandler<
481
482
  Env = unknown,
@@ -557,6 +558,23 @@ interface AlarmInvocationInfo {
557
558
  interface Cloudflare {
558
559
  readonly compatibilityFlags: Record<string, boolean>;
559
560
  }
561
+ interface CachePurgeError {
562
+ code: number;
563
+ message: string;
564
+ }
565
+ interface CachePurgeResult {
566
+ success: boolean;
567
+ zoneTag: string;
568
+ errors: CachePurgeError[];
569
+ }
570
+ interface CachePurgeOptions {
571
+ tags?: string[];
572
+ pathPrefixes?: string[];
573
+ purgeEverything?: boolean;
574
+ }
575
+ interface CacheContext {
576
+ purge(options: CachePurgeOptions): Promise<CachePurgeResult>;
577
+ }
560
578
  declare abstract class ColoLocalActorNamespace {
561
579
  get(actorId: string): Fetcher;
562
580
  }
@@ -10298,6 +10316,10 @@ declare abstract class Base_Ai_Cf_Nvidia_Nemotron_3_120B_A12B {
10298
10316
  inputs: ChatCompletionsInput;
10299
10317
  postProcessedOutputs: ChatCompletionsOutput;
10300
10318
  }
10319
+ declare abstract class Base_Ai_Cf_Google_Gemma_4_26B_A4B_IT {
10320
+ inputs: ChatCompletionsInput;
10321
+ postProcessedOutputs: ChatCompletionsOutput;
10322
+ }
10301
10323
  interface AiModels {
10302
10324
  "@cf/huggingface/distilbert-sst-2-int8": BaseAiTextClassification;
10303
10325
  "@cf/stabilityai/stable-diffusion-xl-base-1.0": BaseAiTextToImage;
@@ -10453,6 +10475,9 @@ type ChatCompletionsInput = XOR<
10453
10475
  interface InferenceUpstreamError extends Error {}
10454
10476
  interface AiInternalError extends Error {}
10455
10477
  type AiModelListType = Record<string, any>;
10478
+ type AiAsyncBatchResponse = {
10479
+ request_id: string;
10480
+ };
10456
10481
  declare abstract class Ai<AiModelList extends AiModelListType = AiModels> {
10457
10482
  aiGatewayLogId: string | null;
10458
10483
  gateway(gatewayId: string): AiGateway;
@@ -10469,29 +10494,52 @@ declare abstract class Ai<AiModelList extends AiModelListType = AiModels> {
10469
10494
  * @param autoragId Instance ID
10470
10495
  */
10471
10496
  autorag(autoragId: string): AutoRAG;
10472
- run<
10473
- Name extends keyof AiModelList,
10474
- Options extends AiOptions,
10475
- InputOptions extends AiModelList[Name]["inputs"],
10476
- >(
10497
+ // Batch request
10498
+ run<Name extends keyof AiModelList>(
10477
10499
  model: Name,
10478
- inputs: InputOptions,
10479
- options?: Options,
10480
- ): Promise<
10481
- Options extends
10482
- | {
10483
- returnRawResponse: true;
10484
- }
10485
- | {
10486
- websocket: true;
10487
- }
10488
- ? Response
10489
- : InputOptions extends {
10490
- stream: true;
10491
- }
10492
- ? ReadableStream
10493
- : AiModelList[Name]["postProcessedOutputs"]
10494
- >;
10500
+ inputs: {
10501
+ requests: AiModelList[Name]["inputs"][];
10502
+ },
10503
+ options: AiOptions & {
10504
+ queueRequest: true;
10505
+ },
10506
+ ): Promise<AiAsyncBatchResponse>;
10507
+ // Raw response
10508
+ run<Name extends keyof AiModelList>(
10509
+ model: Name,
10510
+ inputs: AiModelList[Name]["inputs"],
10511
+ options: AiOptions & {
10512
+ returnRawResponse: true;
10513
+ },
10514
+ ): Promise<Response>;
10515
+ // WebSocket
10516
+ run<Name extends keyof AiModelList>(
10517
+ model: Name,
10518
+ inputs: AiModelList[Name]["inputs"],
10519
+ options: AiOptions & {
10520
+ websocket: true;
10521
+ },
10522
+ ): Promise<Response>;
10523
+ // Streaming
10524
+ run<Name extends keyof AiModelList>(
10525
+ model: Name,
10526
+ inputs: AiModelList[Name]["inputs"] & {
10527
+ stream: true;
10528
+ },
10529
+ options?: AiOptions,
10530
+ ): Promise<ReadableStream>;
10531
+ // Normal (default) - known model
10532
+ run<Name extends keyof AiModelList>(
10533
+ model: Name,
10534
+ inputs: AiModelList[Name]["inputs"],
10535
+ options?: AiOptions,
10536
+ ): Promise<AiModelList[Name]["postProcessedOutputs"]>;
10537
+ // Unknown model (gateway fallback)
10538
+ run(
10539
+ model: string & {},
10540
+ inputs: Record<string, unknown>,
10541
+ options?: AiOptions,
10542
+ ): Promise<Record<string, unknown>>;
10495
10543
  models(params?: AiModelsSearchParams): Promise<AiModelsSearchObject[]>;
10496
10544
  toMarkdown(): ToMarkdownService;
10497
10545
  toMarkdown(
@@ -10620,6 +10668,7 @@ declare abstract class AiGateway {
10620
10668
  options?: {
10621
10669
  gateway?: UniversalGatewayOptions;
10622
10670
  extraHeaders?: object;
10671
+ signal?: AbortSignal;
10623
10672
  },
10624
10673
  ): Promise<Response>;
10625
10674
  getUrl(provider?: AIGatewayProviders | string): Promise<string>; // eslint-disable-line
@@ -12967,7 +13016,7 @@ declare namespace CloudflareWorkersModule {
12967
13016
  email?(message: ForwardableEmailMessage): void | Promise<void>;
12968
13017
  fetch?(request: Request): Response | Promise<Response>;
12969
13018
  connect?(socket: Socket): void | Promise<void>;
12970
- queue?(batch: MessageBatch<unknown>): void | Promise<void>;
13019
+ queue?(batch: MessageBatch): void | Promise<void>;
12971
13020
  scheduled?(controller: ScheduledController): void | Promise<void>;
12972
13021
  tail?(events: TraceItem[]): void | Promise<void>;
12973
13022
  tailStream?(
@@ -478,6 +478,7 @@ export interface ExecutionContext<Props = unknown> {
478
478
  waitUntil(promise: Promise<any>): void;
479
479
  passThroughOnException(): void;
480
480
  readonly props: Props;
481
+ cache?: CacheContext;
481
482
  }
482
483
  export type ExportedHandlerFetchHandler<
483
484
  Env = unknown,
@@ -559,6 +560,23 @@ export interface AlarmInvocationInfo {
559
560
  export interface Cloudflare {
560
561
  readonly compatibilityFlags: Record<string, boolean>;
561
562
  }
563
+ export interface CachePurgeError {
564
+ code: number;
565
+ message: string;
566
+ }
567
+ export interface CachePurgeResult {
568
+ success: boolean;
569
+ zoneTag: string;
570
+ errors: CachePurgeError[];
571
+ }
572
+ export interface CachePurgeOptions {
573
+ tags?: string[];
574
+ pathPrefixes?: string[];
575
+ purgeEverything?: boolean;
576
+ }
577
+ export interface CacheContext {
578
+ purge(options: CachePurgeOptions): Promise<CachePurgeResult>;
579
+ }
562
580
  export declare abstract class ColoLocalActorNamespace {
563
581
  get(actorId: string): Fetcher;
564
582
  }
@@ -10307,6 +10325,10 @@ export declare abstract class Base_Ai_Cf_Nvidia_Nemotron_3_120B_A12B {
10307
10325
  inputs: ChatCompletionsInput;
10308
10326
  postProcessedOutputs: ChatCompletionsOutput;
10309
10327
  }
10328
+ export declare abstract class Base_Ai_Cf_Google_Gemma_4_26B_A4B_IT {
10329
+ inputs: ChatCompletionsInput;
10330
+ postProcessedOutputs: ChatCompletionsOutput;
10331
+ }
10310
10332
  export interface AiModels {
10311
10333
  "@cf/huggingface/distilbert-sst-2-int8": BaseAiTextClassification;
10312
10334
  "@cf/stabilityai/stable-diffusion-xl-base-1.0": BaseAiTextToImage;
@@ -10462,6 +10484,9 @@ export type ChatCompletionsInput = XOR<
10462
10484
  export interface InferenceUpstreamError extends Error {}
10463
10485
  export interface AiInternalError extends Error {}
10464
10486
  export type AiModelListType = Record<string, any>;
10487
+ export type AiAsyncBatchResponse = {
10488
+ request_id: string;
10489
+ };
10465
10490
  export declare abstract class Ai<
10466
10491
  AiModelList extends AiModelListType = AiModels,
10467
10492
  > {
@@ -10480,29 +10505,52 @@ export declare abstract class Ai<
10480
10505
  * @param autoragId Instance ID
10481
10506
  */
10482
10507
  autorag(autoragId: string): AutoRAG;
10483
- run<
10484
- Name extends keyof AiModelList,
10485
- Options extends AiOptions,
10486
- InputOptions extends AiModelList[Name]["inputs"],
10487
- >(
10508
+ // Batch request
10509
+ run<Name extends keyof AiModelList>(
10488
10510
  model: Name,
10489
- inputs: InputOptions,
10490
- options?: Options,
10491
- ): Promise<
10492
- Options extends
10493
- | {
10494
- returnRawResponse: true;
10495
- }
10496
- | {
10497
- websocket: true;
10498
- }
10499
- ? Response
10500
- : InputOptions extends {
10501
- stream: true;
10502
- }
10503
- ? ReadableStream
10504
- : AiModelList[Name]["postProcessedOutputs"]
10505
- >;
10511
+ inputs: {
10512
+ requests: AiModelList[Name]["inputs"][];
10513
+ },
10514
+ options: AiOptions & {
10515
+ queueRequest: true;
10516
+ },
10517
+ ): Promise<AiAsyncBatchResponse>;
10518
+ // Raw response
10519
+ run<Name extends keyof AiModelList>(
10520
+ model: Name,
10521
+ inputs: AiModelList[Name]["inputs"],
10522
+ options: AiOptions & {
10523
+ returnRawResponse: true;
10524
+ },
10525
+ ): Promise<Response>;
10526
+ // WebSocket
10527
+ run<Name extends keyof AiModelList>(
10528
+ model: Name,
10529
+ inputs: AiModelList[Name]["inputs"],
10530
+ options: AiOptions & {
10531
+ websocket: true;
10532
+ },
10533
+ ): Promise<Response>;
10534
+ // Streaming
10535
+ run<Name extends keyof AiModelList>(
10536
+ model: Name,
10537
+ inputs: AiModelList[Name]["inputs"] & {
10538
+ stream: true;
10539
+ },
10540
+ options?: AiOptions,
10541
+ ): Promise<ReadableStream>;
10542
+ // Normal (default) - known model
10543
+ run<Name extends keyof AiModelList>(
10544
+ model: Name,
10545
+ inputs: AiModelList[Name]["inputs"],
10546
+ options?: AiOptions,
10547
+ ): Promise<AiModelList[Name]["postProcessedOutputs"]>;
10548
+ // Unknown model (gateway fallback)
10549
+ run(
10550
+ model: string & {},
10551
+ inputs: Record<string, unknown>,
10552
+ options?: AiOptions,
10553
+ ): Promise<Record<string, unknown>>;
10506
10554
  models(params?: AiModelsSearchParams): Promise<AiModelsSearchObject[]>;
10507
10555
  toMarkdown(): ToMarkdownService;
10508
10556
  toMarkdown(
@@ -10631,6 +10679,7 @@ export declare abstract class AiGateway {
10631
10679
  options?: {
10632
10680
  gateway?: UniversalGatewayOptions;
10633
10681
  extraHeaders?: object;
10682
+ signal?: AbortSignal;
10634
10683
  },
10635
10684
  ): Promise<Response>;
10636
10685
  getUrl(provider?: AIGatewayProviders | string): Promise<string>; // eslint-disable-line
@@ -12934,7 +12983,7 @@ export declare namespace CloudflareWorkersModule {
12934
12983
  email?(message: ForwardableEmailMessage): void | Promise<void>;
12935
12984
  fetch?(request: Request): Response | Promise<Response>;
12936
12985
  connect?(socket: Socket): void | Promise<void>;
12937
- queue?(batch: MessageBatch<unknown>): void | Promise<void>;
12986
+ queue?(batch: MessageBatch): void | Promise<void>;
12938
12987
  scheduled?(controller: ScheduledController): void | Promise<void>;
12939
12988
  tail?(events: TraceItem[]): void | Promise<void>;
12940
12989
  tailStream?(
@@ -476,6 +476,7 @@ interface ExecutionContext<Props = unknown> {
476
476
  waitUntil(promise: Promise<any>): void;
477
477
  passThroughOnException(): void;
478
478
  readonly props: Props;
479
+ cache?: CacheContext;
479
480
  }
480
481
  type ExportedHandlerFetchHandler<
481
482
  Env = unknown,
@@ -557,6 +558,23 @@ interface AlarmInvocationInfo {
557
558
  interface Cloudflare {
558
559
  readonly compatibilityFlags: Record<string, boolean>;
559
560
  }
561
+ interface CachePurgeError {
562
+ code: number;
563
+ message: string;
564
+ }
565
+ interface CachePurgeResult {
566
+ success: boolean;
567
+ zoneTag: string;
568
+ errors: CachePurgeError[];
569
+ }
570
+ interface CachePurgeOptions {
571
+ tags?: string[];
572
+ pathPrefixes?: string[];
573
+ purgeEverything?: boolean;
574
+ }
575
+ interface CacheContext {
576
+ purge(options: CachePurgeOptions): Promise<CachePurgeResult>;
577
+ }
560
578
  declare abstract class ColoLocalActorNamespace {
561
579
  get(actorId: string): Fetcher;
562
580
  }
@@ -10298,6 +10316,10 @@ declare abstract class Base_Ai_Cf_Nvidia_Nemotron_3_120B_A12B {
10298
10316
  inputs: ChatCompletionsInput;
10299
10317
  postProcessedOutputs: ChatCompletionsOutput;
10300
10318
  }
10319
+ declare abstract class Base_Ai_Cf_Google_Gemma_4_26B_A4B_IT {
10320
+ inputs: ChatCompletionsInput;
10321
+ postProcessedOutputs: ChatCompletionsOutput;
10322
+ }
10301
10323
  interface AiModels {
10302
10324
  "@cf/huggingface/distilbert-sst-2-int8": BaseAiTextClassification;
10303
10325
  "@cf/stabilityai/stable-diffusion-xl-base-1.0": BaseAiTextToImage;
@@ -10453,6 +10475,9 @@ type ChatCompletionsInput = XOR<
10453
10475
  interface InferenceUpstreamError extends Error {}
10454
10476
  interface AiInternalError extends Error {}
10455
10477
  type AiModelListType = Record<string, any>;
10478
+ type AiAsyncBatchResponse = {
10479
+ request_id: string;
10480
+ };
10456
10481
  declare abstract class Ai<AiModelList extends AiModelListType = AiModels> {
10457
10482
  aiGatewayLogId: string | null;
10458
10483
  gateway(gatewayId: string): AiGateway;
@@ -10469,29 +10494,52 @@ declare abstract class Ai<AiModelList extends AiModelListType = AiModels> {
10469
10494
  * @param autoragId Instance ID
10470
10495
  */
10471
10496
  autorag(autoragId: string): AutoRAG;
10472
- run<
10473
- Name extends keyof AiModelList,
10474
- Options extends AiOptions,
10475
- InputOptions extends AiModelList[Name]["inputs"],
10476
- >(
10497
+ // Batch request
10498
+ run<Name extends keyof AiModelList>(
10477
10499
  model: Name,
10478
- inputs: InputOptions,
10479
- options?: Options,
10480
- ): Promise<
10481
- Options extends
10482
- | {
10483
- returnRawResponse: true;
10484
- }
10485
- | {
10486
- websocket: true;
10487
- }
10488
- ? Response
10489
- : InputOptions extends {
10490
- stream: true;
10491
- }
10492
- ? ReadableStream
10493
- : AiModelList[Name]["postProcessedOutputs"]
10494
- >;
10500
+ inputs: {
10501
+ requests: AiModelList[Name]["inputs"][];
10502
+ },
10503
+ options: AiOptions & {
10504
+ queueRequest: true;
10505
+ },
10506
+ ): Promise<AiAsyncBatchResponse>;
10507
+ // Raw response
10508
+ run<Name extends keyof AiModelList>(
10509
+ model: Name,
10510
+ inputs: AiModelList[Name]["inputs"],
10511
+ options: AiOptions & {
10512
+ returnRawResponse: true;
10513
+ },
10514
+ ): Promise<Response>;
10515
+ // WebSocket
10516
+ run<Name extends keyof AiModelList>(
10517
+ model: Name,
10518
+ inputs: AiModelList[Name]["inputs"],
10519
+ options: AiOptions & {
10520
+ websocket: true;
10521
+ },
10522
+ ): Promise<Response>;
10523
+ // Streaming
10524
+ run<Name extends keyof AiModelList>(
10525
+ model: Name,
10526
+ inputs: AiModelList[Name]["inputs"] & {
10527
+ stream: true;
10528
+ },
10529
+ options?: AiOptions,
10530
+ ): Promise<ReadableStream>;
10531
+ // Normal (default) - known model
10532
+ run<Name extends keyof AiModelList>(
10533
+ model: Name,
10534
+ inputs: AiModelList[Name]["inputs"],
10535
+ options?: AiOptions,
10536
+ ): Promise<AiModelList[Name]["postProcessedOutputs"]>;
10537
+ // Unknown model (gateway fallback)
10538
+ run(
10539
+ model: string & {},
10540
+ inputs: Record<string, unknown>,
10541
+ options?: AiOptions,
10542
+ ): Promise<Record<string, unknown>>;
10495
10543
  models(params?: AiModelsSearchParams): Promise<AiModelsSearchObject[]>;
10496
10544
  toMarkdown(): ToMarkdownService;
10497
10545
  toMarkdown(
@@ -10620,6 +10668,7 @@ declare abstract class AiGateway {
10620
10668
  options?: {
10621
10669
  gateway?: UniversalGatewayOptions;
10622
10670
  extraHeaders?: object;
10671
+ signal?: AbortSignal;
10623
10672
  },
10624
10673
  ): Promise<Response>;
10625
10674
  getUrl(provider?: AIGatewayProviders | string): Promise<string>; // eslint-disable-line
@@ -12967,7 +13016,7 @@ declare namespace CloudflareWorkersModule {
12967
13016
  email?(message: ForwardableEmailMessage): void | Promise<void>;
12968
13017
  fetch?(request: Request): Response | Promise<Response>;
12969
13018
  connect?(socket: Socket): void | Promise<void>;
12970
- queue?(batch: MessageBatch<unknown>): void | Promise<void>;
13019
+ queue?(batch: MessageBatch): void | Promise<void>;
12971
13020
  scheduled?(controller: ScheduledController): void | Promise<void>;
12972
13021
  tail?(events: TraceItem[]): void | Promise<void>;
12973
13022
  tailStream?(
@@ -478,6 +478,7 @@ export interface ExecutionContext<Props = unknown> {
478
478
  waitUntil(promise: Promise<any>): void;
479
479
  passThroughOnException(): void;
480
480
  readonly props: Props;
481
+ cache?: CacheContext;
481
482
  }
482
483
  export type ExportedHandlerFetchHandler<
483
484
  Env = unknown,
@@ -559,6 +560,23 @@ export interface AlarmInvocationInfo {
559
560
  export interface Cloudflare {
560
561
  readonly compatibilityFlags: Record<string, boolean>;
561
562
  }
563
+ export interface CachePurgeError {
564
+ code: number;
565
+ message: string;
566
+ }
567
+ export interface CachePurgeResult {
568
+ success: boolean;
569
+ zoneTag: string;
570
+ errors: CachePurgeError[];
571
+ }
572
+ export interface CachePurgeOptions {
573
+ tags?: string[];
574
+ pathPrefixes?: string[];
575
+ purgeEverything?: boolean;
576
+ }
577
+ export interface CacheContext {
578
+ purge(options: CachePurgeOptions): Promise<CachePurgeResult>;
579
+ }
562
580
  export declare abstract class ColoLocalActorNamespace {
563
581
  get(actorId: string): Fetcher;
564
582
  }
@@ -10307,6 +10325,10 @@ export declare abstract class Base_Ai_Cf_Nvidia_Nemotron_3_120B_A12B {
10307
10325
  inputs: ChatCompletionsInput;
10308
10326
  postProcessedOutputs: ChatCompletionsOutput;
10309
10327
  }
10328
+ export declare abstract class Base_Ai_Cf_Google_Gemma_4_26B_A4B_IT {
10329
+ inputs: ChatCompletionsInput;
10330
+ postProcessedOutputs: ChatCompletionsOutput;
10331
+ }
10310
10332
  export interface AiModels {
10311
10333
  "@cf/huggingface/distilbert-sst-2-int8": BaseAiTextClassification;
10312
10334
  "@cf/stabilityai/stable-diffusion-xl-base-1.0": BaseAiTextToImage;
@@ -10462,6 +10484,9 @@ export type ChatCompletionsInput = XOR<
10462
10484
  export interface InferenceUpstreamError extends Error {}
10463
10485
  export interface AiInternalError extends Error {}
10464
10486
  export type AiModelListType = Record<string, any>;
10487
+ export type AiAsyncBatchResponse = {
10488
+ request_id: string;
10489
+ };
10465
10490
  export declare abstract class Ai<
10466
10491
  AiModelList extends AiModelListType = AiModels,
10467
10492
  > {
@@ -10480,29 +10505,52 @@ export declare abstract class Ai<
10480
10505
  * @param autoragId Instance ID
10481
10506
  */
10482
10507
  autorag(autoragId: string): AutoRAG;
10483
- run<
10484
- Name extends keyof AiModelList,
10485
- Options extends AiOptions,
10486
- InputOptions extends AiModelList[Name]["inputs"],
10487
- >(
10508
+ // Batch request
10509
+ run<Name extends keyof AiModelList>(
10488
10510
  model: Name,
10489
- inputs: InputOptions,
10490
- options?: Options,
10491
- ): Promise<
10492
- Options extends
10493
- | {
10494
- returnRawResponse: true;
10495
- }
10496
- | {
10497
- websocket: true;
10498
- }
10499
- ? Response
10500
- : InputOptions extends {
10501
- stream: true;
10502
- }
10503
- ? ReadableStream
10504
- : AiModelList[Name]["postProcessedOutputs"]
10505
- >;
10511
+ inputs: {
10512
+ requests: AiModelList[Name]["inputs"][];
10513
+ },
10514
+ options: AiOptions & {
10515
+ queueRequest: true;
10516
+ },
10517
+ ): Promise<AiAsyncBatchResponse>;
10518
+ // Raw response
10519
+ run<Name extends keyof AiModelList>(
10520
+ model: Name,
10521
+ inputs: AiModelList[Name]["inputs"],
10522
+ options: AiOptions & {
10523
+ returnRawResponse: true;
10524
+ },
10525
+ ): Promise<Response>;
10526
+ // WebSocket
10527
+ run<Name extends keyof AiModelList>(
10528
+ model: Name,
10529
+ inputs: AiModelList[Name]["inputs"],
10530
+ options: AiOptions & {
10531
+ websocket: true;
10532
+ },
10533
+ ): Promise<Response>;
10534
+ // Streaming
10535
+ run<Name extends keyof AiModelList>(
10536
+ model: Name,
10537
+ inputs: AiModelList[Name]["inputs"] & {
10538
+ stream: true;
10539
+ },
10540
+ options?: AiOptions,
10541
+ ): Promise<ReadableStream>;
10542
+ // Normal (default) - known model
10543
+ run<Name extends keyof AiModelList>(
10544
+ model: Name,
10545
+ inputs: AiModelList[Name]["inputs"],
10546
+ options?: AiOptions,
10547
+ ): Promise<AiModelList[Name]["postProcessedOutputs"]>;
10548
+ // Unknown model (gateway fallback)
10549
+ run(
10550
+ model: string & {},
10551
+ inputs: Record<string, unknown>,
10552
+ options?: AiOptions,
10553
+ ): Promise<Record<string, unknown>>;
10506
10554
  models(params?: AiModelsSearchParams): Promise<AiModelsSearchObject[]>;
10507
10555
  toMarkdown(): ToMarkdownService;
10508
10556
  toMarkdown(
@@ -10631,6 +10679,7 @@ export declare abstract class AiGateway {
10631
10679
  options?: {
10632
10680
  gateway?: UniversalGatewayOptions;
10633
10681
  extraHeaders?: object;
10682
+ signal?: AbortSignal;
10634
10683
  },
10635
10684
  ): Promise<Response>;
10636
10685
  getUrl(provider?: AIGatewayProviders | string): Promise<string>; // eslint-disable-line
@@ -12934,7 +12983,7 @@ export declare namespace CloudflareWorkersModule {
12934
12983
  email?(message: ForwardableEmailMessage): void | Promise<void>;
12935
12984
  fetch?(request: Request): Response | Promise<Response>;
12936
12985
  connect?(socket: Socket): void | Promise<void>;
12937
- queue?(batch: MessageBatch<unknown>): void | Promise<void>;
12986
+ queue?(batch: MessageBatch): void | Promise<void>;
12938
12987
  scheduled?(controller: ScheduledController): void | Promise<void>;
12939
12988
  tail?(events: TraceItem[]): void | Promise<void>;
12940
12989
  tailStream?(