@cloudflare/workers-types 5.20261013.1 → 5.20261015.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.
@@ -4198,6 +4198,7 @@ type ContainerStartupOptions = {
4198
4198
  hardTimeout?: number | bigint;
4199
4199
  instance?:
4200
4200
  | "lite"
4201
+ | "basic"
4201
4202
  | "standard-1"
4202
4203
  | "standard-2"
4203
4204
  | "standard-3"
@@ -13385,25 +13386,24 @@ interface BrowserRunBaseOptions {
13385
13386
  */
13386
13387
  cacheTTL?: number;
13387
13388
  }
13388
- /**
13389
- * Backend selection, mixed into the options of the quick actions that support it.
13390
- * Deliberately not part of `BrowserRunBaseOptions`: `scrape`, `links` and `snapshot`
13391
- * reject an alternate backend, so they must not accept the field.
13392
- */
13389
+ /** Backend selection for quick actions. */
13393
13390
  interface BrowserRunAlternateBackendOptions {
13394
13391
  /** Render with an alternate browser backend instead of the default one. */
13395
13392
  browser?: "kitesurf";
13396
13393
  }
13397
13394
  /** Common options shared by all quick actions. Exactly one of `url` or `html` must be provided.*/
13398
- type BrowserRunCommonOptions =
13399
- | (BrowserRunBaseOptions & {
13400
- /** URL to navigate to, e.g. `"https://example.com"`. */
13401
- url: string;
13402
- })
13403
- | (BrowserRunBaseOptions & {
13404
- /** Set the HTML content of the page directly. */
13405
- html: string;
13406
- });
13395
+ type BrowserRunCommonOptions = BrowserRunBaseOptions &
13396
+ BrowserRunAlternateBackendOptions &
13397
+ (
13398
+ | {
13399
+ /** URL to navigate to, e.g. `"https://example.com"`. */
13400
+ url: string;
13401
+ }
13402
+ | {
13403
+ /** Set the HTML content of the page directly. */
13404
+ html: string;
13405
+ }
13406
+ );
13407
13407
  type BrowserRunPuppeteerScreenshotOptions = {
13408
13408
  /** @default "png" */
13409
13409
  type?: "png" | "jpeg" | "webp";
@@ -13430,7 +13430,7 @@ type BrowserRunScreenshotOptions = BrowserRunCommonOptions & {
13430
13430
  scrollPage?: boolean;
13431
13431
  /** @see https://pptr.dev/api/puppeteer.screenshotoptions */
13432
13432
  screenshotOptions?: BrowserRunPuppeteerScreenshotOptions;
13433
- } & BrowserRunAlternateBackendOptions;
13433
+ };
13434
13434
  type BrowserRunPDFOptions = BrowserRunCommonOptions & {
13435
13435
  /** @see https://pptr.dev/api/puppeteer.pdfoptions */
13436
13436
  pdfOptions?: {
@@ -13477,7 +13477,7 @@ type BrowserRunPDFOptions = BrowserRunCommonOptions & {
13477
13477
  /** @default 30000 */
13478
13478
  timeout?: number;
13479
13479
  };
13480
- } & BrowserRunAlternateBackendOptions;
13480
+ };
13481
13481
  type BrowserRunScrapeOptions = BrowserRunCommonOptions & {
13482
13482
  /** CSS selectors to scrape. At least one element is required. */
13483
13483
  elements: Array<{
@@ -13513,7 +13513,7 @@ type BrowserRunAccessibilityTreeOptions = BrowserRunCommonOptions & {
13513
13513
  * HTTP 200; a malformed selector is an error.
13514
13514
  */
13515
13515
  root?: string;
13516
- } & BrowserRunAlternateBackendOptions;
13516
+ };
13517
13517
  interface BrowserRunJsonBaseOptions {
13518
13518
  /** Custom AI models to try in order. Max 3. Falls back to next on error. */
13519
13519
  custom_ai?: Array<{
@@ -13528,7 +13528,6 @@ interface BrowserRunJsonBaseOptions {
13528
13528
  * At least one of `prompt` or `response_format` must be provided.
13529
13529
  */
13530
13530
  type BrowserRunJsonOptions = BrowserRunCommonOptions &
13531
- BrowserRunAlternateBackendOptions &
13532
13531
  BrowserRunJsonBaseOptions &
13533
13532
  (
13534
13533
  | {
@@ -13544,10 +13543,8 @@ type BrowserRunJsonOptions = BrowserRunCommonOptions &
13544
13543
  response_format: AiTextGenerationResponseFormat;
13545
13544
  }
13546
13545
  );
13547
- type BrowserRunContentOptions = BrowserRunCommonOptions &
13548
- BrowserRunAlternateBackendOptions;
13549
- type BrowserRunMarkdownOptions = BrowserRunCommonOptions &
13550
- BrowserRunAlternateBackendOptions;
13546
+ type BrowserRunContentOptions = BrowserRunCommonOptions;
13547
+ type BrowserRunMarkdownOptions = BrowserRunCommonOptions;
13551
13548
  type BrowserRunRedirectHop = {
13552
13549
  /** URL that returned the redirect. */
13553
13550
  url: string;
@@ -4207,6 +4207,7 @@ export type ContainerStartupOptions = {
4207
4207
  hardTimeout?: number | bigint;
4208
4208
  instance?:
4209
4209
  | "lite"
4210
+ | "basic"
4210
4211
  | "standard-1"
4211
4212
  | "standard-2"
4212
4213
  | "standard-3"
@@ -13400,25 +13401,24 @@ export interface BrowserRunBaseOptions {
13400
13401
  */
13401
13402
  cacheTTL?: number;
13402
13403
  }
13403
- /**
13404
- * Backend selection, mixed into the options of the quick actions that support it.
13405
- * Deliberately not part of `BrowserRunBaseOptions`: `scrape`, `links` and `snapshot`
13406
- * reject an alternate backend, so they must not accept the field.
13407
- */
13404
+ /** Backend selection for quick actions. */
13408
13405
  export interface BrowserRunAlternateBackendOptions {
13409
13406
  /** Render with an alternate browser backend instead of the default one. */
13410
13407
  browser?: "kitesurf";
13411
13408
  }
13412
13409
  /** Common options shared by all quick actions. Exactly one of `url` or `html` must be provided.*/
13413
- export type BrowserRunCommonOptions =
13414
- | (BrowserRunBaseOptions & {
13415
- /** URL to navigate to, e.g. `"https://example.com"`. */
13416
- url: string;
13417
- })
13418
- | (BrowserRunBaseOptions & {
13419
- /** Set the HTML content of the page directly. */
13420
- html: string;
13421
- });
13410
+ export type BrowserRunCommonOptions = BrowserRunBaseOptions &
13411
+ BrowserRunAlternateBackendOptions &
13412
+ (
13413
+ | {
13414
+ /** URL to navigate to, e.g. `"https://example.com"`. */
13415
+ url: string;
13416
+ }
13417
+ | {
13418
+ /** Set the HTML content of the page directly. */
13419
+ html: string;
13420
+ }
13421
+ );
13422
13422
  export type BrowserRunPuppeteerScreenshotOptions = {
13423
13423
  /** @default "png" */
13424
13424
  type?: "png" | "jpeg" | "webp";
@@ -13445,7 +13445,7 @@ export type BrowserRunScreenshotOptions = BrowserRunCommonOptions & {
13445
13445
  scrollPage?: boolean;
13446
13446
  /** @see https://pptr.dev/api/puppeteer.screenshotoptions */
13447
13447
  screenshotOptions?: BrowserRunPuppeteerScreenshotOptions;
13448
- } & BrowserRunAlternateBackendOptions;
13448
+ };
13449
13449
  export type BrowserRunPDFOptions = BrowserRunCommonOptions & {
13450
13450
  /** @see https://pptr.dev/api/puppeteer.pdfoptions */
13451
13451
  pdfOptions?: {
@@ -13492,7 +13492,7 @@ export type BrowserRunPDFOptions = BrowserRunCommonOptions & {
13492
13492
  /** @default 30000 */
13493
13493
  timeout?: number;
13494
13494
  };
13495
- } & BrowserRunAlternateBackendOptions;
13495
+ };
13496
13496
  export type BrowserRunScrapeOptions = BrowserRunCommonOptions & {
13497
13497
  /** CSS selectors to scrape. At least one element is required. */
13498
13498
  elements: Array<{
@@ -13528,7 +13528,7 @@ export type BrowserRunAccessibilityTreeOptions = BrowserRunCommonOptions & {
13528
13528
  * HTTP 200; a malformed selector is an error.
13529
13529
  */
13530
13530
  root?: string;
13531
- } & BrowserRunAlternateBackendOptions;
13531
+ };
13532
13532
  export interface BrowserRunJsonBaseOptions {
13533
13533
  /** Custom AI models to try in order. Max 3. Falls back to next on error. */
13534
13534
  custom_ai?: Array<{
@@ -13543,7 +13543,6 @@ export interface BrowserRunJsonBaseOptions {
13543
13543
  * At least one of `prompt` or `response_format` must be provided.
13544
13544
  */
13545
13545
  export type BrowserRunJsonOptions = BrowserRunCommonOptions &
13546
- BrowserRunAlternateBackendOptions &
13547
13546
  BrowserRunJsonBaseOptions &
13548
13547
  (
13549
13548
  | {
@@ -13559,10 +13558,8 @@ export type BrowserRunJsonOptions = BrowserRunCommonOptions &
13559
13558
  response_format: AiTextGenerationResponseFormat;
13560
13559
  }
13561
13560
  );
13562
- export type BrowserRunContentOptions = BrowserRunCommonOptions &
13563
- BrowserRunAlternateBackendOptions;
13564
- export type BrowserRunMarkdownOptions = BrowserRunCommonOptions &
13565
- BrowserRunAlternateBackendOptions;
13561
+ export type BrowserRunContentOptions = BrowserRunCommonOptions;
13562
+ export type BrowserRunMarkdownOptions = BrowserRunCommonOptions;
13566
13563
  export type BrowserRunRedirectHop = {
13567
13564
  /** URL that returned the redirect. */
13568
13565
  url: string;
package/index.d.ts CHANGED
@@ -4030,6 +4030,7 @@ type ContainerStartupOptions = {
4030
4030
  env?: Record<string, string>;
4031
4031
  instance?:
4032
4032
  | "lite"
4033
+ | "basic"
4033
4034
  | "standard-1"
4034
4035
  | "standard-2"
4035
4036
  | "standard-3"
@@ -13037,25 +13038,24 @@ interface BrowserRunBaseOptions {
13037
13038
  */
13038
13039
  cacheTTL?: number;
13039
13040
  }
13040
- /**
13041
- * Backend selection, mixed into the options of the quick actions that support it.
13042
- * Deliberately not part of `BrowserRunBaseOptions`: `scrape`, `links` and `snapshot`
13043
- * reject an alternate backend, so they must not accept the field.
13044
- */
13041
+ /** Backend selection for quick actions. */
13045
13042
  interface BrowserRunAlternateBackendOptions {
13046
13043
  /** Render with an alternate browser backend instead of the default one. */
13047
13044
  browser?: "kitesurf";
13048
13045
  }
13049
13046
  /** Common options shared by all quick actions. Exactly one of `url` or `html` must be provided.*/
13050
- type BrowserRunCommonOptions =
13051
- | (BrowserRunBaseOptions & {
13052
- /** URL to navigate to, e.g. `"https://example.com"`. */
13053
- url: string;
13054
- })
13055
- | (BrowserRunBaseOptions & {
13056
- /** Set the HTML content of the page directly. */
13057
- html: string;
13058
- });
13047
+ type BrowserRunCommonOptions = BrowserRunBaseOptions &
13048
+ BrowserRunAlternateBackendOptions &
13049
+ (
13050
+ | {
13051
+ /** URL to navigate to, e.g. `"https://example.com"`. */
13052
+ url: string;
13053
+ }
13054
+ | {
13055
+ /** Set the HTML content of the page directly. */
13056
+ html: string;
13057
+ }
13058
+ );
13059
13059
  type BrowserRunPuppeteerScreenshotOptions = {
13060
13060
  /** @default "png" */
13061
13061
  type?: "png" | "jpeg" | "webp";
@@ -13082,7 +13082,7 @@ type BrowserRunScreenshotOptions = BrowserRunCommonOptions & {
13082
13082
  scrollPage?: boolean;
13083
13083
  /** @see https://pptr.dev/api/puppeteer.screenshotoptions */
13084
13084
  screenshotOptions?: BrowserRunPuppeteerScreenshotOptions;
13085
- } & BrowserRunAlternateBackendOptions;
13085
+ };
13086
13086
  type BrowserRunPDFOptions = BrowserRunCommonOptions & {
13087
13087
  /** @see https://pptr.dev/api/puppeteer.pdfoptions */
13088
13088
  pdfOptions?: {
@@ -13129,7 +13129,7 @@ type BrowserRunPDFOptions = BrowserRunCommonOptions & {
13129
13129
  /** @default 30000 */
13130
13130
  timeout?: number;
13131
13131
  };
13132
- } & BrowserRunAlternateBackendOptions;
13132
+ };
13133
13133
  type BrowserRunScrapeOptions = BrowserRunCommonOptions & {
13134
13134
  /** CSS selectors to scrape. At least one element is required. */
13135
13135
  elements: Array<{
@@ -13165,7 +13165,7 @@ type BrowserRunAccessibilityTreeOptions = BrowserRunCommonOptions & {
13165
13165
  * HTTP 200; a malformed selector is an error.
13166
13166
  */
13167
13167
  root?: string;
13168
- } & BrowserRunAlternateBackendOptions;
13168
+ };
13169
13169
  interface BrowserRunJsonBaseOptions {
13170
13170
  /** Custom AI models to try in order. Max 3. Falls back to next on error. */
13171
13171
  custom_ai?: Array<{
@@ -13180,7 +13180,6 @@ interface BrowserRunJsonBaseOptions {
13180
13180
  * At least one of `prompt` or `response_format` must be provided.
13181
13181
  */
13182
13182
  type BrowserRunJsonOptions = BrowserRunCommonOptions &
13183
- BrowserRunAlternateBackendOptions &
13184
13183
  BrowserRunJsonBaseOptions &
13185
13184
  (
13186
13185
  | {
@@ -13196,10 +13195,8 @@ type BrowserRunJsonOptions = BrowserRunCommonOptions &
13196
13195
  response_format: AiTextGenerationResponseFormat;
13197
13196
  }
13198
13197
  );
13199
- type BrowserRunContentOptions = BrowserRunCommonOptions &
13200
- BrowserRunAlternateBackendOptions;
13201
- type BrowserRunMarkdownOptions = BrowserRunCommonOptions &
13202
- BrowserRunAlternateBackendOptions;
13198
+ type BrowserRunContentOptions = BrowserRunCommonOptions;
13199
+ type BrowserRunMarkdownOptions = BrowserRunCommonOptions;
13203
13200
  type BrowserRunRedirectHop = {
13204
13201
  /** URL that returned the redirect. */
13205
13202
  url: string;
package/index.ts CHANGED
@@ -4039,6 +4039,7 @@ export type ContainerStartupOptions = {
4039
4039
  env?: Record<string, string>;
4040
4040
  instance?:
4041
4041
  | "lite"
4042
+ | "basic"
4042
4043
  | "standard-1"
4043
4044
  | "standard-2"
4044
4045
  | "standard-3"
@@ -13052,25 +13053,24 @@ export interface BrowserRunBaseOptions {
13052
13053
  */
13053
13054
  cacheTTL?: number;
13054
13055
  }
13055
- /**
13056
- * Backend selection, mixed into the options of the quick actions that support it.
13057
- * Deliberately not part of `BrowserRunBaseOptions`: `scrape`, `links` and `snapshot`
13058
- * reject an alternate backend, so they must not accept the field.
13059
- */
13056
+ /** Backend selection for quick actions. */
13060
13057
  export interface BrowserRunAlternateBackendOptions {
13061
13058
  /** Render with an alternate browser backend instead of the default one. */
13062
13059
  browser?: "kitesurf";
13063
13060
  }
13064
13061
  /** Common options shared by all quick actions. Exactly one of `url` or `html` must be provided.*/
13065
- export type BrowserRunCommonOptions =
13066
- | (BrowserRunBaseOptions & {
13067
- /** URL to navigate to, e.g. `"https://example.com"`. */
13068
- url: string;
13069
- })
13070
- | (BrowserRunBaseOptions & {
13071
- /** Set the HTML content of the page directly. */
13072
- html: string;
13073
- });
13062
+ export type BrowserRunCommonOptions = BrowserRunBaseOptions &
13063
+ BrowserRunAlternateBackendOptions &
13064
+ (
13065
+ | {
13066
+ /** URL to navigate to, e.g. `"https://example.com"`. */
13067
+ url: string;
13068
+ }
13069
+ | {
13070
+ /** Set the HTML content of the page directly. */
13071
+ html: string;
13072
+ }
13073
+ );
13074
13074
  export type BrowserRunPuppeteerScreenshotOptions = {
13075
13075
  /** @default "png" */
13076
13076
  type?: "png" | "jpeg" | "webp";
@@ -13097,7 +13097,7 @@ export type BrowserRunScreenshotOptions = BrowserRunCommonOptions & {
13097
13097
  scrollPage?: boolean;
13098
13098
  /** @see https://pptr.dev/api/puppeteer.screenshotoptions */
13099
13099
  screenshotOptions?: BrowserRunPuppeteerScreenshotOptions;
13100
- } & BrowserRunAlternateBackendOptions;
13100
+ };
13101
13101
  export type BrowserRunPDFOptions = BrowserRunCommonOptions & {
13102
13102
  /** @see https://pptr.dev/api/puppeteer.pdfoptions */
13103
13103
  pdfOptions?: {
@@ -13144,7 +13144,7 @@ export type BrowserRunPDFOptions = BrowserRunCommonOptions & {
13144
13144
  /** @default 30000 */
13145
13145
  timeout?: number;
13146
13146
  };
13147
- } & BrowserRunAlternateBackendOptions;
13147
+ };
13148
13148
  export type BrowserRunScrapeOptions = BrowserRunCommonOptions & {
13149
13149
  /** CSS selectors to scrape. At least one element is required. */
13150
13150
  elements: Array<{
@@ -13180,7 +13180,7 @@ export type BrowserRunAccessibilityTreeOptions = BrowserRunCommonOptions & {
13180
13180
  * HTTP 200; a malformed selector is an error.
13181
13181
  */
13182
13182
  root?: string;
13183
- } & BrowserRunAlternateBackendOptions;
13183
+ };
13184
13184
  export interface BrowserRunJsonBaseOptions {
13185
13185
  /** Custom AI models to try in order. Max 3. Falls back to next on error. */
13186
13186
  custom_ai?: Array<{
@@ -13195,7 +13195,6 @@ export interface BrowserRunJsonBaseOptions {
13195
13195
  * At least one of `prompt` or `response_format` must be provided.
13196
13196
  */
13197
13197
  export type BrowserRunJsonOptions = BrowserRunCommonOptions &
13198
- BrowserRunAlternateBackendOptions &
13199
13198
  BrowserRunJsonBaseOptions &
13200
13199
  (
13201
13200
  | {
@@ -13211,10 +13210,8 @@ export type BrowserRunJsonOptions = BrowserRunCommonOptions &
13211
13210
  response_format: AiTextGenerationResponseFormat;
13212
13211
  }
13213
13212
  );
13214
- export type BrowserRunContentOptions = BrowserRunCommonOptions &
13215
- BrowserRunAlternateBackendOptions;
13216
- export type BrowserRunMarkdownOptions = BrowserRunCommonOptions &
13217
- BrowserRunAlternateBackendOptions;
13213
+ export type BrowserRunContentOptions = BrowserRunCommonOptions;
13214
+ export type BrowserRunMarkdownOptions = BrowserRunCommonOptions;
13218
13215
  export type BrowserRunRedirectHop = {
13219
13216
  /** URL that returned the redirect. */
13220
13217
  url: string;
package/package.json CHANGED
@@ -7,5 +7,5 @@
7
7
  },
8
8
  "author": "Cloudflare Workers DevProd Team <workers-devprod@cloudflare.com> (https://workers.cloudflare.com)",
9
9
  "license": "MIT OR Apache-2.0",
10
- "version": "5.20261013.1"
10
+ "version": "5.20261015.1"
11
11
  }