@cloudflare/workers-types 5.20261012.1 → 5.20261014.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.
- package/experimental/index.d.ts +18 -22
- package/experimental/index.ts +18 -22
- package/index.d.ts +18 -22
- package/index.ts +18 -22
- package/package.json +1 -1
package/experimental/index.d.ts
CHANGED
|
@@ -13385,25 +13385,24 @@ interface BrowserRunBaseOptions {
|
|
|
13385
13385
|
*/
|
|
13386
13386
|
cacheTTL?: number;
|
|
13387
13387
|
}
|
|
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
|
-
*/
|
|
13388
|
+
/** Backend selection for quick actions. */
|
|
13393
13389
|
interface BrowserRunAlternateBackendOptions {
|
|
13394
13390
|
/** Render with an alternate browser backend instead of the default one. */
|
|
13395
13391
|
browser?: "kitesurf";
|
|
13396
13392
|
}
|
|
13397
13393
|
/** Common options shared by all quick actions. Exactly one of `url` or `html` must be provided.*/
|
|
13398
|
-
type BrowserRunCommonOptions =
|
|
13399
|
-
|
|
13400
|
-
|
|
13401
|
-
|
|
13402
|
-
|
|
13403
|
-
|
|
13404
|
-
|
|
13405
|
-
|
|
13406
|
-
|
|
13394
|
+
type BrowserRunCommonOptions = BrowserRunBaseOptions &
|
|
13395
|
+
BrowserRunAlternateBackendOptions &
|
|
13396
|
+
(
|
|
13397
|
+
| {
|
|
13398
|
+
/** URL to navigate to, e.g. `"https://example.com"`. */
|
|
13399
|
+
url: string;
|
|
13400
|
+
}
|
|
13401
|
+
| {
|
|
13402
|
+
/** Set the HTML content of the page directly. */
|
|
13403
|
+
html: string;
|
|
13404
|
+
}
|
|
13405
|
+
);
|
|
13407
13406
|
type BrowserRunPuppeteerScreenshotOptions = {
|
|
13408
13407
|
/** @default "png" */
|
|
13409
13408
|
type?: "png" | "jpeg" | "webp";
|
|
@@ -13430,7 +13429,7 @@ type BrowserRunScreenshotOptions = BrowserRunCommonOptions & {
|
|
|
13430
13429
|
scrollPage?: boolean;
|
|
13431
13430
|
/** @see https://pptr.dev/api/puppeteer.screenshotoptions */
|
|
13432
13431
|
screenshotOptions?: BrowserRunPuppeteerScreenshotOptions;
|
|
13433
|
-
}
|
|
13432
|
+
};
|
|
13434
13433
|
type BrowserRunPDFOptions = BrowserRunCommonOptions & {
|
|
13435
13434
|
/** @see https://pptr.dev/api/puppeteer.pdfoptions */
|
|
13436
13435
|
pdfOptions?: {
|
|
@@ -13477,7 +13476,7 @@ type BrowserRunPDFOptions = BrowserRunCommonOptions & {
|
|
|
13477
13476
|
/** @default 30000 */
|
|
13478
13477
|
timeout?: number;
|
|
13479
13478
|
};
|
|
13480
|
-
}
|
|
13479
|
+
};
|
|
13481
13480
|
type BrowserRunScrapeOptions = BrowserRunCommonOptions & {
|
|
13482
13481
|
/** CSS selectors to scrape. At least one element is required. */
|
|
13483
13482
|
elements: Array<{
|
|
@@ -13513,7 +13512,7 @@ type BrowserRunAccessibilityTreeOptions = BrowserRunCommonOptions & {
|
|
|
13513
13512
|
* HTTP 200; a malformed selector is an error.
|
|
13514
13513
|
*/
|
|
13515
13514
|
root?: string;
|
|
13516
|
-
}
|
|
13515
|
+
};
|
|
13517
13516
|
interface BrowserRunJsonBaseOptions {
|
|
13518
13517
|
/** Custom AI models to try in order. Max 3. Falls back to next on error. */
|
|
13519
13518
|
custom_ai?: Array<{
|
|
@@ -13528,7 +13527,6 @@ interface BrowserRunJsonBaseOptions {
|
|
|
13528
13527
|
* At least one of `prompt` or `response_format` must be provided.
|
|
13529
13528
|
*/
|
|
13530
13529
|
type BrowserRunJsonOptions = BrowserRunCommonOptions &
|
|
13531
|
-
BrowserRunAlternateBackendOptions &
|
|
13532
13530
|
BrowserRunJsonBaseOptions &
|
|
13533
13531
|
(
|
|
13534
13532
|
| {
|
|
@@ -13544,10 +13542,8 @@ type BrowserRunJsonOptions = BrowserRunCommonOptions &
|
|
|
13544
13542
|
response_format: AiTextGenerationResponseFormat;
|
|
13545
13543
|
}
|
|
13546
13544
|
);
|
|
13547
|
-
type BrowserRunContentOptions = BrowserRunCommonOptions
|
|
13548
|
-
|
|
13549
|
-
type BrowserRunMarkdownOptions = BrowserRunCommonOptions &
|
|
13550
|
-
BrowserRunAlternateBackendOptions;
|
|
13545
|
+
type BrowserRunContentOptions = BrowserRunCommonOptions;
|
|
13546
|
+
type BrowserRunMarkdownOptions = BrowserRunCommonOptions;
|
|
13551
13547
|
type BrowserRunRedirectHop = {
|
|
13552
13548
|
/** URL that returned the redirect. */
|
|
13553
13549
|
url: string;
|
package/experimental/index.ts
CHANGED
|
@@ -13400,25 +13400,24 @@ export interface BrowserRunBaseOptions {
|
|
|
13400
13400
|
*/
|
|
13401
13401
|
cacheTTL?: number;
|
|
13402
13402
|
}
|
|
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
|
-
*/
|
|
13403
|
+
/** Backend selection for quick actions. */
|
|
13408
13404
|
export interface BrowserRunAlternateBackendOptions {
|
|
13409
13405
|
/** Render with an alternate browser backend instead of the default one. */
|
|
13410
13406
|
browser?: "kitesurf";
|
|
13411
13407
|
}
|
|
13412
13408
|
/** Common options shared by all quick actions. Exactly one of `url` or `html` must be provided.*/
|
|
13413
|
-
export type BrowserRunCommonOptions =
|
|
13414
|
-
|
|
13415
|
-
|
|
13416
|
-
|
|
13417
|
-
|
|
13418
|
-
|
|
13419
|
-
|
|
13420
|
-
|
|
13421
|
-
|
|
13409
|
+
export type BrowserRunCommonOptions = BrowserRunBaseOptions &
|
|
13410
|
+
BrowserRunAlternateBackendOptions &
|
|
13411
|
+
(
|
|
13412
|
+
| {
|
|
13413
|
+
/** URL to navigate to, e.g. `"https://example.com"`. */
|
|
13414
|
+
url: string;
|
|
13415
|
+
}
|
|
13416
|
+
| {
|
|
13417
|
+
/** Set the HTML content of the page directly. */
|
|
13418
|
+
html: string;
|
|
13419
|
+
}
|
|
13420
|
+
);
|
|
13422
13421
|
export type BrowserRunPuppeteerScreenshotOptions = {
|
|
13423
13422
|
/** @default "png" */
|
|
13424
13423
|
type?: "png" | "jpeg" | "webp";
|
|
@@ -13445,7 +13444,7 @@ export type BrowserRunScreenshotOptions = BrowserRunCommonOptions & {
|
|
|
13445
13444
|
scrollPage?: boolean;
|
|
13446
13445
|
/** @see https://pptr.dev/api/puppeteer.screenshotoptions */
|
|
13447
13446
|
screenshotOptions?: BrowserRunPuppeteerScreenshotOptions;
|
|
13448
|
-
}
|
|
13447
|
+
};
|
|
13449
13448
|
export type BrowserRunPDFOptions = BrowserRunCommonOptions & {
|
|
13450
13449
|
/** @see https://pptr.dev/api/puppeteer.pdfoptions */
|
|
13451
13450
|
pdfOptions?: {
|
|
@@ -13492,7 +13491,7 @@ export type BrowserRunPDFOptions = BrowserRunCommonOptions & {
|
|
|
13492
13491
|
/** @default 30000 */
|
|
13493
13492
|
timeout?: number;
|
|
13494
13493
|
};
|
|
13495
|
-
}
|
|
13494
|
+
};
|
|
13496
13495
|
export type BrowserRunScrapeOptions = BrowserRunCommonOptions & {
|
|
13497
13496
|
/** CSS selectors to scrape. At least one element is required. */
|
|
13498
13497
|
elements: Array<{
|
|
@@ -13528,7 +13527,7 @@ export type BrowserRunAccessibilityTreeOptions = BrowserRunCommonOptions & {
|
|
|
13528
13527
|
* HTTP 200; a malformed selector is an error.
|
|
13529
13528
|
*/
|
|
13530
13529
|
root?: string;
|
|
13531
|
-
}
|
|
13530
|
+
};
|
|
13532
13531
|
export interface BrowserRunJsonBaseOptions {
|
|
13533
13532
|
/** Custom AI models to try in order. Max 3. Falls back to next on error. */
|
|
13534
13533
|
custom_ai?: Array<{
|
|
@@ -13543,7 +13542,6 @@ export interface BrowserRunJsonBaseOptions {
|
|
|
13543
13542
|
* At least one of `prompt` or `response_format` must be provided.
|
|
13544
13543
|
*/
|
|
13545
13544
|
export type BrowserRunJsonOptions = BrowserRunCommonOptions &
|
|
13546
|
-
BrowserRunAlternateBackendOptions &
|
|
13547
13545
|
BrowserRunJsonBaseOptions &
|
|
13548
13546
|
(
|
|
13549
13547
|
| {
|
|
@@ -13559,10 +13557,8 @@ export type BrowserRunJsonOptions = BrowserRunCommonOptions &
|
|
|
13559
13557
|
response_format: AiTextGenerationResponseFormat;
|
|
13560
13558
|
}
|
|
13561
13559
|
);
|
|
13562
|
-
export type BrowserRunContentOptions = BrowserRunCommonOptions
|
|
13563
|
-
|
|
13564
|
-
export type BrowserRunMarkdownOptions = BrowserRunCommonOptions &
|
|
13565
|
-
BrowserRunAlternateBackendOptions;
|
|
13560
|
+
export type BrowserRunContentOptions = BrowserRunCommonOptions;
|
|
13561
|
+
export type BrowserRunMarkdownOptions = BrowserRunCommonOptions;
|
|
13566
13562
|
export type BrowserRunRedirectHop = {
|
|
13567
13563
|
/** URL that returned the redirect. */
|
|
13568
13564
|
url: string;
|
package/index.d.ts
CHANGED
|
@@ -13037,25 +13037,24 @@ interface BrowserRunBaseOptions {
|
|
|
13037
13037
|
*/
|
|
13038
13038
|
cacheTTL?: number;
|
|
13039
13039
|
}
|
|
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
|
-
*/
|
|
13040
|
+
/** Backend selection for quick actions. */
|
|
13045
13041
|
interface BrowserRunAlternateBackendOptions {
|
|
13046
13042
|
/** Render with an alternate browser backend instead of the default one. */
|
|
13047
13043
|
browser?: "kitesurf";
|
|
13048
13044
|
}
|
|
13049
13045
|
/** Common options shared by all quick actions. Exactly one of `url` or `html` must be provided.*/
|
|
13050
|
-
type BrowserRunCommonOptions =
|
|
13051
|
-
|
|
13052
|
-
|
|
13053
|
-
|
|
13054
|
-
|
|
13055
|
-
|
|
13056
|
-
|
|
13057
|
-
|
|
13058
|
-
|
|
13046
|
+
type BrowserRunCommonOptions = BrowserRunBaseOptions &
|
|
13047
|
+
BrowserRunAlternateBackendOptions &
|
|
13048
|
+
(
|
|
13049
|
+
| {
|
|
13050
|
+
/** URL to navigate to, e.g. `"https://example.com"`. */
|
|
13051
|
+
url: string;
|
|
13052
|
+
}
|
|
13053
|
+
| {
|
|
13054
|
+
/** Set the HTML content of the page directly. */
|
|
13055
|
+
html: string;
|
|
13056
|
+
}
|
|
13057
|
+
);
|
|
13059
13058
|
type BrowserRunPuppeteerScreenshotOptions = {
|
|
13060
13059
|
/** @default "png" */
|
|
13061
13060
|
type?: "png" | "jpeg" | "webp";
|
|
@@ -13082,7 +13081,7 @@ type BrowserRunScreenshotOptions = BrowserRunCommonOptions & {
|
|
|
13082
13081
|
scrollPage?: boolean;
|
|
13083
13082
|
/** @see https://pptr.dev/api/puppeteer.screenshotoptions */
|
|
13084
13083
|
screenshotOptions?: BrowserRunPuppeteerScreenshotOptions;
|
|
13085
|
-
}
|
|
13084
|
+
};
|
|
13086
13085
|
type BrowserRunPDFOptions = BrowserRunCommonOptions & {
|
|
13087
13086
|
/** @see https://pptr.dev/api/puppeteer.pdfoptions */
|
|
13088
13087
|
pdfOptions?: {
|
|
@@ -13129,7 +13128,7 @@ type BrowserRunPDFOptions = BrowserRunCommonOptions & {
|
|
|
13129
13128
|
/** @default 30000 */
|
|
13130
13129
|
timeout?: number;
|
|
13131
13130
|
};
|
|
13132
|
-
}
|
|
13131
|
+
};
|
|
13133
13132
|
type BrowserRunScrapeOptions = BrowserRunCommonOptions & {
|
|
13134
13133
|
/** CSS selectors to scrape. At least one element is required. */
|
|
13135
13134
|
elements: Array<{
|
|
@@ -13165,7 +13164,7 @@ type BrowserRunAccessibilityTreeOptions = BrowserRunCommonOptions & {
|
|
|
13165
13164
|
* HTTP 200; a malformed selector is an error.
|
|
13166
13165
|
*/
|
|
13167
13166
|
root?: string;
|
|
13168
|
-
}
|
|
13167
|
+
};
|
|
13169
13168
|
interface BrowserRunJsonBaseOptions {
|
|
13170
13169
|
/** Custom AI models to try in order. Max 3. Falls back to next on error. */
|
|
13171
13170
|
custom_ai?: Array<{
|
|
@@ -13180,7 +13179,6 @@ interface BrowserRunJsonBaseOptions {
|
|
|
13180
13179
|
* At least one of `prompt` or `response_format` must be provided.
|
|
13181
13180
|
*/
|
|
13182
13181
|
type BrowserRunJsonOptions = BrowserRunCommonOptions &
|
|
13183
|
-
BrowserRunAlternateBackendOptions &
|
|
13184
13182
|
BrowserRunJsonBaseOptions &
|
|
13185
13183
|
(
|
|
13186
13184
|
| {
|
|
@@ -13196,10 +13194,8 @@ type BrowserRunJsonOptions = BrowserRunCommonOptions &
|
|
|
13196
13194
|
response_format: AiTextGenerationResponseFormat;
|
|
13197
13195
|
}
|
|
13198
13196
|
);
|
|
13199
|
-
type BrowserRunContentOptions = BrowserRunCommonOptions
|
|
13200
|
-
|
|
13201
|
-
type BrowserRunMarkdownOptions = BrowserRunCommonOptions &
|
|
13202
|
-
BrowserRunAlternateBackendOptions;
|
|
13197
|
+
type BrowserRunContentOptions = BrowserRunCommonOptions;
|
|
13198
|
+
type BrowserRunMarkdownOptions = BrowserRunCommonOptions;
|
|
13203
13199
|
type BrowserRunRedirectHop = {
|
|
13204
13200
|
/** URL that returned the redirect. */
|
|
13205
13201
|
url: string;
|
package/index.ts
CHANGED
|
@@ -13052,25 +13052,24 @@ export interface BrowserRunBaseOptions {
|
|
|
13052
13052
|
*/
|
|
13053
13053
|
cacheTTL?: number;
|
|
13054
13054
|
}
|
|
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
|
-
*/
|
|
13055
|
+
/** Backend selection for quick actions. */
|
|
13060
13056
|
export interface BrowserRunAlternateBackendOptions {
|
|
13061
13057
|
/** Render with an alternate browser backend instead of the default one. */
|
|
13062
13058
|
browser?: "kitesurf";
|
|
13063
13059
|
}
|
|
13064
13060
|
/** Common options shared by all quick actions. Exactly one of `url` or `html` must be provided.*/
|
|
13065
|
-
export type BrowserRunCommonOptions =
|
|
13066
|
-
|
|
13067
|
-
|
|
13068
|
-
|
|
13069
|
-
|
|
13070
|
-
|
|
13071
|
-
|
|
13072
|
-
|
|
13073
|
-
|
|
13061
|
+
export type BrowserRunCommonOptions = BrowserRunBaseOptions &
|
|
13062
|
+
BrowserRunAlternateBackendOptions &
|
|
13063
|
+
(
|
|
13064
|
+
| {
|
|
13065
|
+
/** URL to navigate to, e.g. `"https://example.com"`. */
|
|
13066
|
+
url: string;
|
|
13067
|
+
}
|
|
13068
|
+
| {
|
|
13069
|
+
/** Set the HTML content of the page directly. */
|
|
13070
|
+
html: string;
|
|
13071
|
+
}
|
|
13072
|
+
);
|
|
13074
13073
|
export type BrowserRunPuppeteerScreenshotOptions = {
|
|
13075
13074
|
/** @default "png" */
|
|
13076
13075
|
type?: "png" | "jpeg" | "webp";
|
|
@@ -13097,7 +13096,7 @@ export type BrowserRunScreenshotOptions = BrowserRunCommonOptions & {
|
|
|
13097
13096
|
scrollPage?: boolean;
|
|
13098
13097
|
/** @see https://pptr.dev/api/puppeteer.screenshotoptions */
|
|
13099
13098
|
screenshotOptions?: BrowserRunPuppeteerScreenshotOptions;
|
|
13100
|
-
}
|
|
13099
|
+
};
|
|
13101
13100
|
export type BrowserRunPDFOptions = BrowserRunCommonOptions & {
|
|
13102
13101
|
/** @see https://pptr.dev/api/puppeteer.pdfoptions */
|
|
13103
13102
|
pdfOptions?: {
|
|
@@ -13144,7 +13143,7 @@ export type BrowserRunPDFOptions = BrowserRunCommonOptions & {
|
|
|
13144
13143
|
/** @default 30000 */
|
|
13145
13144
|
timeout?: number;
|
|
13146
13145
|
};
|
|
13147
|
-
}
|
|
13146
|
+
};
|
|
13148
13147
|
export type BrowserRunScrapeOptions = BrowserRunCommonOptions & {
|
|
13149
13148
|
/** CSS selectors to scrape. At least one element is required. */
|
|
13150
13149
|
elements: Array<{
|
|
@@ -13180,7 +13179,7 @@ export type BrowserRunAccessibilityTreeOptions = BrowserRunCommonOptions & {
|
|
|
13180
13179
|
* HTTP 200; a malformed selector is an error.
|
|
13181
13180
|
*/
|
|
13182
13181
|
root?: string;
|
|
13183
|
-
}
|
|
13182
|
+
};
|
|
13184
13183
|
export interface BrowserRunJsonBaseOptions {
|
|
13185
13184
|
/** Custom AI models to try in order. Max 3. Falls back to next on error. */
|
|
13186
13185
|
custom_ai?: Array<{
|
|
@@ -13195,7 +13194,6 @@ export interface BrowserRunJsonBaseOptions {
|
|
|
13195
13194
|
* At least one of `prompt` or `response_format` must be provided.
|
|
13196
13195
|
*/
|
|
13197
13196
|
export type BrowserRunJsonOptions = BrowserRunCommonOptions &
|
|
13198
|
-
BrowserRunAlternateBackendOptions &
|
|
13199
13197
|
BrowserRunJsonBaseOptions &
|
|
13200
13198
|
(
|
|
13201
13199
|
| {
|
|
@@ -13211,10 +13209,8 @@ export type BrowserRunJsonOptions = BrowserRunCommonOptions &
|
|
|
13211
13209
|
response_format: AiTextGenerationResponseFormat;
|
|
13212
13210
|
}
|
|
13213
13211
|
);
|
|
13214
|
-
export type BrowserRunContentOptions = BrowserRunCommonOptions
|
|
13215
|
-
|
|
13216
|
-
export type BrowserRunMarkdownOptions = BrowserRunCommonOptions &
|
|
13217
|
-
BrowserRunAlternateBackendOptions;
|
|
13212
|
+
export type BrowserRunContentOptions = BrowserRunCommonOptions;
|
|
13213
|
+
export type BrowserRunMarkdownOptions = BrowserRunCommonOptions;
|
|
13218
13214
|
export type BrowserRunRedirectHop = {
|
|
13219
13215
|
/** URL that returned the redirect. */
|
|
13220
13216
|
url: string;
|
package/package.json
CHANGED