@cloudflare/workers-types 4.20260615.1 → 4.20260617.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/2021-11-03/index.d.ts +211 -177
- package/2021-11-03/index.ts +211 -177
- package/2022-01-31/index.d.ts +211 -177
- package/2022-01-31/index.ts +211 -177
- package/2022-03-21/index.d.ts +211 -177
- package/2022-03-21/index.ts +211 -177
- package/2022-08-04/index.d.ts +211 -177
- package/2022-08-04/index.ts +211 -177
- package/2022-10-31/index.d.ts +211 -177
- package/2022-10-31/index.ts +211 -177
- package/2022-11-30/index.d.ts +211 -177
- package/2022-11-30/index.ts +211 -177
- package/2023-03-01/index.d.ts +211 -177
- package/2023-03-01/index.ts +211 -177
- package/2023-07-01/index.d.ts +211 -177
- package/2023-07-01/index.ts +211 -177
- package/experimental/index.d.ts +211 -177
- package/experimental/index.ts +211 -177
- package/index.d.ts +211 -177
- package/index.ts +211 -177
- package/latest/index.d.ts +211 -177
- package/latest/index.ts +211 -177
- package/oldest/index.d.ts +211 -177
- package/oldest/index.ts +211 -177
- package/package.json +1 -1
package/experimental/index.ts
CHANGED
|
@@ -12895,87 +12895,6 @@ export declare abstract class BrowserRun {
|
|
|
12895
12895
|
options: BrowserRunMarkdownOptions,
|
|
12896
12896
|
): Promise<Response>;
|
|
12897
12897
|
}
|
|
12898
|
-
export interface BasicImageTransformations {
|
|
12899
|
-
/**
|
|
12900
|
-
* Maximum width in image pixels. The value must be an integer.
|
|
12901
|
-
*/
|
|
12902
|
-
width?: number;
|
|
12903
|
-
/**
|
|
12904
|
-
* Maximum height in image pixels. The value must be an integer.
|
|
12905
|
-
*/
|
|
12906
|
-
height?: number;
|
|
12907
|
-
/**
|
|
12908
|
-
* Resizing mode as a string. It affects interpretation of width and height
|
|
12909
|
-
* options:
|
|
12910
|
-
* - scale-down: Similar to contain, but the image is never enlarged. If
|
|
12911
|
-
* the image is larger than given width or height, it will be resized.
|
|
12912
|
-
* Otherwise its original size will be kept.
|
|
12913
|
-
* - contain: Resizes to maximum size that fits within the given width and
|
|
12914
|
-
* height. If only a single dimension is given (e.g. only width), the
|
|
12915
|
-
* image will be shrunk or enlarged to exactly match that dimension.
|
|
12916
|
-
* Aspect ratio is always preserved.
|
|
12917
|
-
* - cover: Resizes (shrinks or enlarges) to fill the entire area of width
|
|
12918
|
-
* and height. If the image has an aspect ratio different from the ratio
|
|
12919
|
-
* of width and height, it will be cropped to fit.
|
|
12920
|
-
* - crop: The image will be shrunk and cropped to fit within the area
|
|
12921
|
-
* specified by width and height. The image will not be enlarged. For images
|
|
12922
|
-
* smaller than the given dimensions it's the same as scale-down. For
|
|
12923
|
-
* images larger than the given dimensions, it's the same as cover.
|
|
12924
|
-
* See also trim.
|
|
12925
|
-
* - pad: Resizes to the maximum size that fits within the given width and
|
|
12926
|
-
* height, and then fills the remaining area with a background color
|
|
12927
|
-
* (white by default). Use of this mode is not recommended, as the same
|
|
12928
|
-
* effect can be more efficiently achieved with the contain mode and the
|
|
12929
|
-
* CSS object-fit: contain property.
|
|
12930
|
-
* - squeeze: Stretches and deforms to the width and height given, even if it
|
|
12931
|
-
* breaks aspect ratio
|
|
12932
|
-
*/
|
|
12933
|
-
fit?: "scale-down" | "contain" | "cover" | "crop" | "pad" | "squeeze";
|
|
12934
|
-
/**
|
|
12935
|
-
* Image segmentation using artificial intelligence models. Sets pixels not
|
|
12936
|
-
* within selected segment area to transparent e.g "foreground" sets every
|
|
12937
|
-
* background pixel as transparent.
|
|
12938
|
-
*/
|
|
12939
|
-
segment?: "foreground";
|
|
12940
|
-
/**
|
|
12941
|
-
* When cropping with fit: "cover", this defines the side or point that should
|
|
12942
|
-
* be left uncropped. The value is either a string
|
|
12943
|
-
* "left", "right", "top", "bottom", "auto", or "center" (the default),
|
|
12944
|
-
* or an object {x, y} containing focal point coordinates in the original
|
|
12945
|
-
* image expressed as fractions ranging from 0.0 (top or left) to 1.0
|
|
12946
|
-
* (bottom or right), 0.5 being the center. {fit: "cover", gravity: "top"} will
|
|
12947
|
-
* crop bottom or left and right sides as necessary, but won’t crop anything
|
|
12948
|
-
* from the top. {fit: "cover", gravity: {x:0.5, y:0.2}} will crop each side to
|
|
12949
|
-
* preserve as much as possible around a point at 20% of the height of the
|
|
12950
|
-
* source image.
|
|
12951
|
-
*/
|
|
12952
|
-
gravity?:
|
|
12953
|
-
| "face"
|
|
12954
|
-
| "left"
|
|
12955
|
-
| "right"
|
|
12956
|
-
| "top"
|
|
12957
|
-
| "bottom"
|
|
12958
|
-
| "center"
|
|
12959
|
-
| "auto"
|
|
12960
|
-
| "entropy"
|
|
12961
|
-
| BasicImageTransformationsGravityCoordinates;
|
|
12962
|
-
/**
|
|
12963
|
-
* Background color to add underneath the image. Applies only to images with
|
|
12964
|
-
* transparency (such as PNG). Accepts any CSS color (#RRGGBB, rgba(…),
|
|
12965
|
-
* hsl(…), etc.)
|
|
12966
|
-
*/
|
|
12967
|
-
background?: string;
|
|
12968
|
-
/**
|
|
12969
|
-
* Number of degrees (90, 180, 270) to rotate the image by. width and height
|
|
12970
|
-
* options refer to axes after rotation.
|
|
12971
|
-
*/
|
|
12972
|
-
rotate?: 0 | 90 | 180 | 270 | 360;
|
|
12973
|
-
}
|
|
12974
|
-
export interface BasicImageTransformationsGravityCoordinates {
|
|
12975
|
-
x?: number;
|
|
12976
|
-
y?: number;
|
|
12977
|
-
mode?: "remainder" | "box-center";
|
|
12978
|
-
}
|
|
12979
12898
|
/**
|
|
12980
12899
|
* In addition to the properties you can set in the RequestInit dict
|
|
12981
12900
|
* that you pass as an argument to the Request constructor, you can
|
|
@@ -13071,6 +12990,209 @@ export interface RequestInitCfProperties extends Record<string, unknown> {
|
|
|
13071
12990
|
*/
|
|
13072
12991
|
resolveOverride?: string;
|
|
13073
12992
|
}
|
|
12993
|
+
export interface BasicImageTransformations {
|
|
12994
|
+
/**
|
|
12995
|
+
* Maximum width in image pixels. The value must be an integer.
|
|
12996
|
+
*/
|
|
12997
|
+
width?: number;
|
|
12998
|
+
/**
|
|
12999
|
+
* Maximum height in image pixels. The value must be an integer.
|
|
13000
|
+
*/
|
|
13001
|
+
height?: number;
|
|
13002
|
+
/**
|
|
13003
|
+
* When cropping with fit: "cover", this defines the side or point that should
|
|
13004
|
+
* be left uncropped. The value is either a string
|
|
13005
|
+
* "left", "right", "top", "bottom", "auto", or "center" (the default),
|
|
13006
|
+
* or an object {x, y} containing focal point coordinates in the original
|
|
13007
|
+
* image expressed as fractions ranging from 0.0 (top or left) to 1.0
|
|
13008
|
+
* (bottom or right), 0.5 being the center. {fit: "cover", gravity: "top"} will
|
|
13009
|
+
* crop bottom or left and right sides as necessary, but won’t crop anything
|
|
13010
|
+
* from the top. {fit: "cover", gravity: {x:0.5, y:0.2}} will crop each side to
|
|
13011
|
+
* preserve as much as possible around a point at 20% of the height of the
|
|
13012
|
+
* source image.
|
|
13013
|
+
*/
|
|
13014
|
+
gravity?:
|
|
13015
|
+
| "face"
|
|
13016
|
+
| "left"
|
|
13017
|
+
| "right"
|
|
13018
|
+
| "top"
|
|
13019
|
+
| "bottom"
|
|
13020
|
+
| "center"
|
|
13021
|
+
| "auto"
|
|
13022
|
+
| "entropy"
|
|
13023
|
+
| BasicImageTransformationsGravityCoordinates;
|
|
13024
|
+
/**
|
|
13025
|
+
* Specifies how closely the image is cropped toward detected faces when combined
|
|
13026
|
+
* with the gravity=face option. Accepts a valid range between 0.0 (includes as much
|
|
13027
|
+
* of the background as possible) and 1.0 (crops the image as closely to the face as
|
|
13028
|
+
* possible). The default is 0.
|
|
13029
|
+
*/
|
|
13030
|
+
zoom?: number;
|
|
13031
|
+
/**
|
|
13032
|
+
* Resizing mode as a string. It affects interpretation of width and height
|
|
13033
|
+
* options:
|
|
13034
|
+
* - scale-down: Similar to contain, but the image is never enlarged. If
|
|
13035
|
+
* the image is larger than given width or height, it will be resized.
|
|
13036
|
+
* Otherwise its original size will be kept.
|
|
13037
|
+
* - scale-up: Similar to contain, but the image is never shrunk. If the
|
|
13038
|
+
* image is smaller than the given width or height, it will be resized.
|
|
13039
|
+
* Otherwise its original size will be kept.
|
|
13040
|
+
* - contain: Resizes to maximum size that fits within the given width and
|
|
13041
|
+
* height. If only a single dimension is given (e.g. only width), the
|
|
13042
|
+
* image will be shrunk or enlarged to exactly match that dimension.
|
|
13043
|
+
* Aspect ratio is always preserved.
|
|
13044
|
+
* - cover: Resizes (shrinks or enlarges) to fill the entire area of width
|
|
13045
|
+
* and height. If the image has an aspect ratio different from the ratio
|
|
13046
|
+
* of width and height, it will be cropped to fit.
|
|
13047
|
+
* - crop: The image will be shrunk and cropped to fit within the area
|
|
13048
|
+
* specified by width and height. The image will not be enlarged. For images
|
|
13049
|
+
* smaller than the given dimensions it's the same as scale-down. For
|
|
13050
|
+
* images larger than the given dimensions, it's the same as cover.
|
|
13051
|
+
* See also trim.
|
|
13052
|
+
* - pad: Resizes to the maximum size that fits within the given width and
|
|
13053
|
+
* height, and then fills the remaining area with a background color
|
|
13054
|
+
* (white by default). Use of this mode is not recommended, as the same
|
|
13055
|
+
* effect can be more efficiently achieved with the contain mode and the
|
|
13056
|
+
* CSS object-fit: contain property.
|
|
13057
|
+
* - squeeze: Stretches and deforms to the width and height given, even if it
|
|
13058
|
+
* breaks aspect ratio
|
|
13059
|
+
*/
|
|
13060
|
+
fit?:
|
|
13061
|
+
| "scale-down"
|
|
13062
|
+
| "scale-up"
|
|
13063
|
+
| "contain"
|
|
13064
|
+
| "cover"
|
|
13065
|
+
| "crop"
|
|
13066
|
+
| "pad"
|
|
13067
|
+
| "squeeze";
|
|
13068
|
+
/**
|
|
13069
|
+
* Allows you to trim your image. Takes dpr into account and is performed before
|
|
13070
|
+
* resizing or rotation.
|
|
13071
|
+
*
|
|
13072
|
+
* It can be used as:
|
|
13073
|
+
* - left, top, right, bottom - it will specify the number of pixels to cut
|
|
13074
|
+
* off each side
|
|
13075
|
+
* - width, height - the width/height you'd like to end up with - can be used
|
|
13076
|
+
* in combination with the properties above
|
|
13077
|
+
* - border - this will automatically trim the surroundings of an image based on
|
|
13078
|
+
* it's color. It consists of three properties:
|
|
13079
|
+
* - color: rgb or hex representation of the color you wish to trim (todo: verify the rgba bit)
|
|
13080
|
+
* - tolerance: difference from color to treat as color
|
|
13081
|
+
* - keep: the number of pixels of border to keep
|
|
13082
|
+
*/
|
|
13083
|
+
trim?:
|
|
13084
|
+
| "border"
|
|
13085
|
+
| {
|
|
13086
|
+
top?: number;
|
|
13087
|
+
bottom?: number;
|
|
13088
|
+
left?: number;
|
|
13089
|
+
right?: number;
|
|
13090
|
+
width?: number;
|
|
13091
|
+
height?: number;
|
|
13092
|
+
border?:
|
|
13093
|
+
| boolean
|
|
13094
|
+
| {
|
|
13095
|
+
color?: string;
|
|
13096
|
+
tolerance?: number;
|
|
13097
|
+
keep?: number;
|
|
13098
|
+
};
|
|
13099
|
+
};
|
|
13100
|
+
/**
|
|
13101
|
+
* Background color to add underneath the image. Applies only to images with
|
|
13102
|
+
* transparency (such as PNG). Accepts any CSS color (#RRGGBB, rgba(…),
|
|
13103
|
+
* hsl(…), etc.)
|
|
13104
|
+
*/
|
|
13105
|
+
background?: string;
|
|
13106
|
+
/**
|
|
13107
|
+
* Flips the images horizontally, vertically, or both. Flipping is applied before
|
|
13108
|
+
* rotation, so if you apply flip=h,rotate=90 then the image will be flipped
|
|
13109
|
+
* horizontally, then rotated by 90 degrees.
|
|
13110
|
+
*/
|
|
13111
|
+
flip?: "h" | "v" | "hv";
|
|
13112
|
+
/**
|
|
13113
|
+
* Number of degrees (90, 180, 270) to rotate the image by. width and height
|
|
13114
|
+
* options refer to axes after rotation.
|
|
13115
|
+
*/
|
|
13116
|
+
rotate?: 0 | 90 | 180 | 270 | 360;
|
|
13117
|
+
/**
|
|
13118
|
+
* Strength of sharpening filter to apply to the image. Floating-point
|
|
13119
|
+
* number between 0 (no sharpening, default) and 10 (maximum). 1.0 is a
|
|
13120
|
+
* recommended value for downscaled images.
|
|
13121
|
+
*/
|
|
13122
|
+
sharpen?: number;
|
|
13123
|
+
/**
|
|
13124
|
+
* Radius of a blur filter (approximate gaussian). Maximum supported radius
|
|
13125
|
+
* is 250.
|
|
13126
|
+
*/
|
|
13127
|
+
blur?: number;
|
|
13128
|
+
/**
|
|
13129
|
+
* Increase contrast by a factor. A value of 1.0 equals no change, a value of
|
|
13130
|
+
* 0.5 equals low contrast, and a value of 2.0 equals high contrast. 0 is
|
|
13131
|
+
* ignored.
|
|
13132
|
+
*/
|
|
13133
|
+
contrast?: number;
|
|
13134
|
+
/**
|
|
13135
|
+
* Increase brightness by a factor. A value of 1.0 equals no change, a value
|
|
13136
|
+
* of 0.5 equals half brightness, and a value of 2.0 equals twice as bright.
|
|
13137
|
+
* 0 is ignored.
|
|
13138
|
+
*/
|
|
13139
|
+
brightness?: number;
|
|
13140
|
+
/**
|
|
13141
|
+
* Increase exposure by a factor. A value of 1.0 equals no change, a value of
|
|
13142
|
+
* 0.5 darkens the image, and a value of 2.0 lightens the image. 0 is ignored.
|
|
13143
|
+
*/
|
|
13144
|
+
gamma?: number;
|
|
13145
|
+
/**
|
|
13146
|
+
* Increase contrast by a factor. A value of 1.0 equals no change, a value of
|
|
13147
|
+
* 0.5 equals low contrast, and a value of 2.0 equals high contrast. 0 is
|
|
13148
|
+
* ignored.
|
|
13149
|
+
*/
|
|
13150
|
+
saturation?: number;
|
|
13151
|
+
/**
|
|
13152
|
+
* Device Pixel Ratio. Default 1. Multiplier for width/height that makes it
|
|
13153
|
+
* easier to specify higher-DPI sizes in <img srcset>.
|
|
13154
|
+
*/
|
|
13155
|
+
dpr?: number;
|
|
13156
|
+
/**
|
|
13157
|
+
* Adds a border around the image. The border is added after resizing. Border
|
|
13158
|
+
* width takes dpr into account, and can be specified either using a single
|
|
13159
|
+
* width property, or individually for each side.
|
|
13160
|
+
*/
|
|
13161
|
+
border?:
|
|
13162
|
+
| {
|
|
13163
|
+
color: string;
|
|
13164
|
+
width: number;
|
|
13165
|
+
}
|
|
13166
|
+
| {
|
|
13167
|
+
color: string;
|
|
13168
|
+
top: number;
|
|
13169
|
+
right: number;
|
|
13170
|
+
bottom: number;
|
|
13171
|
+
left: number;
|
|
13172
|
+
};
|
|
13173
|
+
/**
|
|
13174
|
+
* Image segmentation using artificial intelligence models. Sets pixels not
|
|
13175
|
+
* within selected segment area to transparent e.g "foreground" sets every
|
|
13176
|
+
* background pixel as transparent.
|
|
13177
|
+
*/
|
|
13178
|
+
segment?: "foreground";
|
|
13179
|
+
/**
|
|
13180
|
+
* Controls the algorithm used when an image needs to be enlarged. This
|
|
13181
|
+
* parameter works with any fit mode that upscales, such as `contain`,
|
|
13182
|
+
* `cover`, and `scale-up`. It has no effect when `fit=scale-down` or when
|
|
13183
|
+
* the target dimensions are smaller than the source.
|
|
13184
|
+
* - interpolate: Uses bicubic interpolation, which may reduce image quality.
|
|
13185
|
+
* This is the default behavior when `upscale` is not specified.
|
|
13186
|
+
* - generate: Uses AI upscaling to produce sharper, more detailed results
|
|
13187
|
+
* when enlarging images.
|
|
13188
|
+
*/
|
|
13189
|
+
upscale?: "interpolate" | "generate";
|
|
13190
|
+
}
|
|
13191
|
+
export interface BasicImageTransformationsGravityCoordinates {
|
|
13192
|
+
x?: number;
|
|
13193
|
+
y?: number;
|
|
13194
|
+
mode?: "remainder" | "box-center";
|
|
13195
|
+
}
|
|
13074
13196
|
export interface RequestInitCfPropertiesImageDraw extends BasicImageTransformations {
|
|
13075
13197
|
/**
|
|
13076
13198
|
* Absolute URL of the image file to use for the drawing. It can be any of
|
|
@@ -13124,43 +13246,6 @@ export interface RequestInitCfPropertiesImageDraw extends BasicImageTransformati
|
|
|
13124
13246
|
right?: number;
|
|
13125
13247
|
}
|
|
13126
13248
|
export interface RequestInitCfPropertiesImage extends BasicImageTransformations {
|
|
13127
|
-
/**
|
|
13128
|
-
* Device Pixel Ratio. Default 1. Multiplier for width/height that makes it
|
|
13129
|
-
* easier to specify higher-DPI sizes in <img srcset>.
|
|
13130
|
-
*/
|
|
13131
|
-
dpr?: number;
|
|
13132
|
-
/**
|
|
13133
|
-
* Allows you to trim your image. Takes dpr into account and is performed before
|
|
13134
|
-
* resizing or rotation.
|
|
13135
|
-
*
|
|
13136
|
-
* It can be used as:
|
|
13137
|
-
* - left, top, right, bottom - it will specify the number of pixels to cut
|
|
13138
|
-
* off each side
|
|
13139
|
-
* - width, height - the width/height you'd like to end up with - can be used
|
|
13140
|
-
* in combination with the properties above
|
|
13141
|
-
* - border - this will automatically trim the surroundings of an image based on
|
|
13142
|
-
* it's color. It consists of three properties:
|
|
13143
|
-
* - color: rgb or hex representation of the color you wish to trim (todo: verify the rgba bit)
|
|
13144
|
-
* - tolerance: difference from color to treat as color
|
|
13145
|
-
* - keep: the number of pixels of border to keep
|
|
13146
|
-
*/
|
|
13147
|
-
trim?:
|
|
13148
|
-
| "border"
|
|
13149
|
-
| {
|
|
13150
|
-
top?: number;
|
|
13151
|
-
bottom?: number;
|
|
13152
|
-
left?: number;
|
|
13153
|
-
right?: number;
|
|
13154
|
-
width?: number;
|
|
13155
|
-
height?: number;
|
|
13156
|
-
border?:
|
|
13157
|
-
| boolean
|
|
13158
|
-
| {
|
|
13159
|
-
color?: string;
|
|
13160
|
-
tolerance?: number;
|
|
13161
|
-
keep?: number;
|
|
13162
|
-
};
|
|
13163
|
-
};
|
|
13164
13249
|
/**
|
|
13165
13250
|
* Quality setting from 1-100 (useful values are in 60-90 range). Lower values
|
|
13166
13251
|
* make images look worse, but load faster. The default is 85. It applies only
|
|
@@ -13210,17 +13295,6 @@ export interface RequestInitCfPropertiesImage extends BasicImageTransformations
|
|
|
13210
13295
|
* output formats always discard metadata.
|
|
13211
13296
|
*/
|
|
13212
13297
|
metadata?: "keep" | "copyright" | "none";
|
|
13213
|
-
/**
|
|
13214
|
-
* Strength of sharpening filter to apply to the image. Floating-point
|
|
13215
|
-
* number between 0 (no sharpening, default) and 10 (maximum). 1.0 is a
|
|
13216
|
-
* recommended value for downscaled images.
|
|
13217
|
-
*/
|
|
13218
|
-
sharpen?: number;
|
|
13219
|
-
/**
|
|
13220
|
-
* Radius of a blur filter (approximate gaussian). Maximum supported radius
|
|
13221
|
-
* is 250.
|
|
13222
|
-
*/
|
|
13223
|
-
blur?: number;
|
|
13224
13298
|
/**
|
|
13225
13299
|
* Overlays are drawn in the order they appear in the array (last array
|
|
13226
13300
|
* entry is the topmost layer).
|
|
@@ -13232,52 +13306,6 @@ export interface RequestInitCfPropertiesImage extends BasicImageTransformations
|
|
|
13232
13306
|
* the origin.
|
|
13233
13307
|
*/
|
|
13234
13308
|
"origin-auth"?: "share-publicly";
|
|
13235
|
-
/**
|
|
13236
|
-
* Adds a border around the image. The border is added after resizing. Border
|
|
13237
|
-
* width takes dpr into account, and can be specified either using a single
|
|
13238
|
-
* width property, or individually for each side.
|
|
13239
|
-
*/
|
|
13240
|
-
border?:
|
|
13241
|
-
| {
|
|
13242
|
-
color: string;
|
|
13243
|
-
width: number;
|
|
13244
|
-
}
|
|
13245
|
-
| {
|
|
13246
|
-
color: string;
|
|
13247
|
-
top: number;
|
|
13248
|
-
right: number;
|
|
13249
|
-
bottom: number;
|
|
13250
|
-
left: number;
|
|
13251
|
-
};
|
|
13252
|
-
/**
|
|
13253
|
-
* Increase brightness by a factor. A value of 1.0 equals no change, a value
|
|
13254
|
-
* of 0.5 equals half brightness, and a value of 2.0 equals twice as bright.
|
|
13255
|
-
* 0 is ignored.
|
|
13256
|
-
*/
|
|
13257
|
-
brightness?: number;
|
|
13258
|
-
/**
|
|
13259
|
-
* Increase contrast by a factor. A value of 1.0 equals no change, a value of
|
|
13260
|
-
* 0.5 equals low contrast, and a value of 2.0 equals high contrast. 0 is
|
|
13261
|
-
* ignored.
|
|
13262
|
-
*/
|
|
13263
|
-
contrast?: number;
|
|
13264
|
-
/**
|
|
13265
|
-
* Increase exposure by a factor. A value of 1.0 equals no change, a value of
|
|
13266
|
-
* 0.5 darkens the image, and a value of 2.0 lightens the image. 0 is ignored.
|
|
13267
|
-
*/
|
|
13268
|
-
gamma?: number;
|
|
13269
|
-
/**
|
|
13270
|
-
* Increase contrast by a factor. A value of 1.0 equals no change, a value of
|
|
13271
|
-
* 0.5 equals low contrast, and a value of 2.0 equals high contrast. 0 is
|
|
13272
|
-
* ignored.
|
|
13273
|
-
*/
|
|
13274
|
-
saturation?: number;
|
|
13275
|
-
/**
|
|
13276
|
-
* Flips the images horizontally, vertically, or both. Flipping is applied before
|
|
13277
|
-
* rotation, so if you apply flip=h,rotate=90 then the image will be flipped
|
|
13278
|
-
* horizontally, then rotated by 90 degrees.
|
|
13279
|
-
*/
|
|
13280
|
-
flip?: "h" | "v" | "hv";
|
|
13281
13309
|
/**
|
|
13282
13310
|
* Slightly reduces latency on a cache miss by selecting a
|
|
13283
13311
|
* quickest-to-compress file format, at a cost of increased file size and
|
|
@@ -15176,6 +15204,10 @@ export declare namespace CloudflareWorkersModule {
|
|
|
15176
15204
|
timeout?: WorkflowTimeoutDuration | number;
|
|
15177
15205
|
sensitive?: WorkflowStepSensitivity;
|
|
15178
15206
|
};
|
|
15207
|
+
export type WorkflowStepRollbackConfig = Pick<
|
|
15208
|
+
WorkflowStepConfig,
|
|
15209
|
+
"retries" | "timeout"
|
|
15210
|
+
>;
|
|
15179
15211
|
export type WorkflowCronSchedule = {
|
|
15180
15212
|
/** Cron expression that triggered this event. */
|
|
15181
15213
|
cron: string;
|
|
@@ -15204,16 +15236,18 @@ export declare namespace CloudflareWorkersModule {
|
|
|
15204
15236
|
config: WorkflowStepConfig;
|
|
15205
15237
|
};
|
|
15206
15238
|
export type WorkflowRollbackContext<T = unknown> = {
|
|
15239
|
+
ctx: WorkflowStepContext;
|
|
15207
15240
|
error: Error;
|
|
15208
15241
|
output: T | undefined;
|
|
15242
|
+
/** @deprecated Use `ctx.step.name` and `ctx.step.count` instead. */
|
|
15209
15243
|
stepName: string;
|
|
15210
15244
|
};
|
|
15211
15245
|
export type WorkflowRollbackHandler<T = unknown> = (
|
|
15212
15246
|
ctx: WorkflowRollbackContext<T>,
|
|
15213
15247
|
) => Promise<void>;
|
|
15214
15248
|
export type WorkflowStepRollbackOptions<T = unknown> = {
|
|
15215
|
-
rollback
|
|
15216
|
-
rollbackConfig?:
|
|
15249
|
+
rollback: WorkflowRollbackHandler<T>;
|
|
15250
|
+
rollbackConfig?: WorkflowStepRollbackConfig;
|
|
15217
15251
|
};
|
|
15218
15252
|
export abstract class WorkflowStep {
|
|
15219
15253
|
do<T extends Rpc.Serializable<T>>(
|