@cloudflare/workers-types 4.20260616.1 → 4.20260619.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.
@@ -479,7 +479,8 @@ export interface ExecutionContext<Props = unknown> {
479
479
  passThroughOnException(): void;
480
480
  readonly props: Props;
481
481
  cache?: CacheContext;
482
- tracing?: Tracing;
482
+ readonly access?: CloudflareAccessContext;
483
+ tracing: Tracing;
483
484
  }
484
485
  export type ExportedHandlerFetchHandler<
485
486
  Env = unknown,
@@ -578,6 +579,10 @@ export interface CachePurgeOptions {
578
579
  export interface CacheContext {
579
580
  purge(options: CachePurgeOptions): Promise<CachePurgeResult>;
580
581
  }
582
+ export interface CloudflareAccessContext {
583
+ readonly aud: string;
584
+ getIdentity(): Promise<CloudflareAccessIdentity | undefined>;
585
+ }
581
586
  export declare abstract class ColoLocalActorNamespace {
582
587
  get(actorId: string): Fetcher;
583
588
  }
@@ -643,6 +648,8 @@ export type DurableObjectLocationHint =
643
648
  | "weur"
644
649
  | "eeur"
645
650
  | "apac"
651
+ | "apac-ne"
652
+ | "apac-se"
646
653
  | "oc"
647
654
  | "afr"
648
655
  | "me";
@@ -784,6 +791,7 @@ export interface DurableObjectFacets {
784
791
  ): Fetcher<T>;
785
792
  abort(name: string, reason: any): void;
786
793
  delete(name: string): void;
794
+ clone(src: string, dst: string): void;
787
795
  }
788
796
  export interface FacetStartupOptions<
789
797
  T extends Rpc.DurableObjectBranded | undefined = undefined,
@@ -3842,6 +3850,28 @@ export interface EventSourceEventSourceInit {
3842
3850
  withCredentials?: boolean;
3843
3851
  fetcher?: Fetcher;
3844
3852
  }
3853
+ export interface ExecOutput {
3854
+ readonly stdout: ArrayBuffer;
3855
+ readonly stderr: ArrayBuffer;
3856
+ readonly exitCode: number;
3857
+ }
3858
+ export interface ContainerExecOptions {
3859
+ cwd?: string;
3860
+ env?: Record<string, string>;
3861
+ user?: string;
3862
+ stdin?: ReadableStream | "pipe";
3863
+ stdout?: "pipe" | "ignore";
3864
+ stderr?: "pipe" | "ignore" | "combined";
3865
+ }
3866
+ export interface ExecProcess {
3867
+ readonly stdin: WritableStream | null;
3868
+ readonly stdout: ReadableStream | null;
3869
+ readonly stderr: ReadableStream | null;
3870
+ readonly pid: number;
3871
+ readonly exitCode: Promise<number>;
3872
+ output(): Promise<ExecOutput>;
3873
+ kill(signal?: number): void;
3874
+ }
3845
3875
  export interface Container {
3846
3876
  get running(): boolean;
3847
3877
  start(options?: ContainerStartupOptions): void;
@@ -3859,6 +3889,7 @@ export interface Container {
3859
3889
  options: ContainerSnapshotOptions,
3860
3890
  ): Promise<ContainerSnapshot>;
3861
3891
  interceptOutboundHttps(addr: string, binding: Fetcher): Promise<void>;
3892
+ exec(cmd: string[], options?: ContainerExecOptions): Promise<ExecProcess>;
3862
3893
  }
3863
3894
  export interface ContainerDirectorySnapshot {
3864
3895
  id: string;
@@ -4033,11 +4064,62 @@ export interface Tracing {
4033
4064
  callback: (span: Span, ...args: A) => T,
4034
4065
  ...args: A
4035
4066
  ): T;
4067
+ startActiveSpan<T, A extends unknown[]>(
4068
+ name: string,
4069
+ callback: (span: Span, ...args: A) => T,
4070
+ ...args: A
4071
+ ): T;
4036
4072
  Span: typeof Span;
4037
4073
  }
4038
4074
  export declare abstract class Span {
4039
4075
  get isTraced(): boolean;
4040
4076
  setAttribute(key: string, value?: boolean | number | string): void;
4077
+ end(): void;
4078
+ }
4079
+ /**
4080
+ * Represents the identity of a user authenticated via Cloudflare Access.
4081
+ * This matches the result of calling /cdn-cgi/access/get-identity.
4082
+ *
4083
+ * The exact structure of the returned object depends on the identity provider
4084
+ * configuration for the Access application. The fields below represent commonly
4085
+ * available properties, but additional provider-specific fields may be present.
4086
+ */
4087
+ export interface CloudflareAccessIdentity extends Record<string, unknown> {
4088
+ /** The user's email address, if available from the identity provider. */
4089
+ email?: string;
4090
+ /** The user's display name. */
4091
+ name?: string;
4092
+ /** The user's unique identifier. */
4093
+ user_uuid?: string;
4094
+ /** The Cloudflare account ID. */
4095
+ account_id?: string;
4096
+ /** Login timestamp (Unix epoch seconds). */
4097
+ iat?: number;
4098
+ /** The user's IP address at authentication time. */
4099
+ ip?: string;
4100
+ /** Authentication methods used (e.g., "pwd"). */
4101
+ amr?: string[];
4102
+ /** Identity provider information. */
4103
+ idp?: {
4104
+ id: string;
4105
+ type: string;
4106
+ };
4107
+ /** Geographic information about where the user authenticated. */
4108
+ geo?: {
4109
+ country: string;
4110
+ };
4111
+ /** Group memberships from the identity provider. */
4112
+ groups?: Array<{
4113
+ id: string;
4114
+ name: string;
4115
+ email?: string;
4116
+ }>;
4117
+ /** Device posture check results, keyed by check ID. */
4118
+ devicePosture?: Record<string, unknown>;
4119
+ /** True if the user connected via Cloudflare WARP. */
4120
+ is_warp?: boolean;
4121
+ /** True if the user is authenticated via Cloudflare Gateway. */
4122
+ is_gateway?: boolean;
4041
4123
  }
4042
4124
  // ============================================================================
4043
4125
  // Agent Memory
@@ -12194,87 +12276,6 @@ export declare abstract class BrowserRun {
12194
12276
  options: BrowserRunMarkdownOptions,
12195
12277
  ): Promise<Response>;
12196
12278
  }
12197
- export interface BasicImageTransformations {
12198
- /**
12199
- * Maximum width in image pixels. The value must be an integer.
12200
- */
12201
- width?: number;
12202
- /**
12203
- * Maximum height in image pixels. The value must be an integer.
12204
- */
12205
- height?: number;
12206
- /**
12207
- * Resizing mode as a string. It affects interpretation of width and height
12208
- * options:
12209
- * - scale-down: Similar to contain, but the image is never enlarged. If
12210
- * the image is larger than given width or height, it will be resized.
12211
- * Otherwise its original size will be kept.
12212
- * - contain: Resizes to maximum size that fits within the given width and
12213
- * height. If only a single dimension is given (e.g. only width), the
12214
- * image will be shrunk or enlarged to exactly match that dimension.
12215
- * Aspect ratio is always preserved.
12216
- * - cover: Resizes (shrinks or enlarges) to fill the entire area of width
12217
- * and height. If the image has an aspect ratio different from the ratio
12218
- * of width and height, it will be cropped to fit.
12219
- * - crop: The image will be shrunk and cropped to fit within the area
12220
- * specified by width and height. The image will not be enlarged. For images
12221
- * smaller than the given dimensions it's the same as scale-down. For
12222
- * images larger than the given dimensions, it's the same as cover.
12223
- * See also trim.
12224
- * - pad: Resizes to the maximum size that fits within the given width and
12225
- * height, and then fills the remaining area with a background color
12226
- * (white by default). Use of this mode is not recommended, as the same
12227
- * effect can be more efficiently achieved with the contain mode and the
12228
- * CSS object-fit: contain property.
12229
- * - squeeze: Stretches and deforms to the width and height given, even if it
12230
- * breaks aspect ratio
12231
- */
12232
- fit?: "scale-down" | "contain" | "cover" | "crop" | "pad" | "squeeze";
12233
- /**
12234
- * Image segmentation using artificial intelligence models. Sets pixels not
12235
- * within selected segment area to transparent e.g "foreground" sets every
12236
- * background pixel as transparent.
12237
- */
12238
- segment?: "foreground";
12239
- /**
12240
- * When cropping with fit: "cover", this defines the side or point that should
12241
- * be left uncropped. The value is either a string
12242
- * "left", "right", "top", "bottom", "auto", or "center" (the default),
12243
- * or an object {x, y} containing focal point coordinates in the original
12244
- * image expressed as fractions ranging from 0.0 (top or left) to 1.0
12245
- * (bottom or right), 0.5 being the center. {fit: "cover", gravity: "top"} will
12246
- * crop bottom or left and right sides as necessary, but won’t crop anything
12247
- * from the top. {fit: "cover", gravity: {x:0.5, y:0.2}} will crop each side to
12248
- * preserve as much as possible around a point at 20% of the height of the
12249
- * source image.
12250
- */
12251
- gravity?:
12252
- | "face"
12253
- | "left"
12254
- | "right"
12255
- | "top"
12256
- | "bottom"
12257
- | "center"
12258
- | "auto"
12259
- | "entropy"
12260
- | BasicImageTransformationsGravityCoordinates;
12261
- /**
12262
- * Background color to add underneath the image. Applies only to images with
12263
- * transparency (such as PNG). Accepts any CSS color (#RRGGBB, rgba(…),
12264
- * hsl(…), etc.)
12265
- */
12266
- background?: string;
12267
- /**
12268
- * Number of degrees (90, 180, 270) to rotate the image by. width and height
12269
- * options refer to axes after rotation.
12270
- */
12271
- rotate?: 0 | 90 | 180 | 270 | 360;
12272
- }
12273
- export interface BasicImageTransformationsGravityCoordinates {
12274
- x?: number;
12275
- y?: number;
12276
- mode?: "remainder" | "box-center";
12277
- }
12278
12279
  /**
12279
12280
  * In addition to the properties you can set in the RequestInit dict
12280
12281
  * that you pass as an argument to the Request constructor, you can
@@ -12350,6 +12351,17 @@ export interface RequestInitCfProperties extends Record<string, unknown> {
12350
12351
  cacheReserveMinimumFileSize?: number;
12351
12352
  scrapeShield?: boolean;
12352
12353
  apps?: boolean;
12354
+ /**
12355
+ * Controls whether an outbound gRPC-web subrequest from this Worker is
12356
+ * converted to gRPC at the Cloudflare edge.
12357
+ *
12358
+ * - `"passthrough"`: forward the subrequest unchanged as gRPC-web (default).
12359
+ * - `"convert"`: convert the gRPC-web subrequest to gRPC at the edge.
12360
+ *
12361
+ * Provides per-request control over the same edge conversion behavior
12362
+ * gated by the `auto_grpc_convert` compatibility flag.
12363
+ */
12364
+ grpcWeb?: "passthrough" | "convert";
12353
12365
  image?: RequestInitCfPropertiesImage;
12354
12366
  minify?: RequestInitCfPropertiesImageMinify;
12355
12367
  mirage?: boolean;
@@ -12370,6 +12382,209 @@ export interface RequestInitCfProperties extends Record<string, unknown> {
12370
12382
  */
12371
12383
  resolveOverride?: string;
12372
12384
  }
12385
+ export interface BasicImageTransformations {
12386
+ /**
12387
+ * Maximum width in image pixels. The value must be an integer.
12388
+ */
12389
+ width?: number;
12390
+ /**
12391
+ * Maximum height in image pixels. The value must be an integer.
12392
+ */
12393
+ height?: number;
12394
+ /**
12395
+ * When cropping with fit: "cover", this defines the side or point that should
12396
+ * be left uncropped. The value is either a string
12397
+ * "left", "right", "top", "bottom", "auto", or "center" (the default),
12398
+ * or an object {x, y} containing focal point coordinates in the original
12399
+ * image expressed as fractions ranging from 0.0 (top or left) to 1.0
12400
+ * (bottom or right), 0.5 being the center. {fit: "cover", gravity: "top"} will
12401
+ * crop bottom or left and right sides as necessary, but won’t crop anything
12402
+ * from the top. {fit: "cover", gravity: {x:0.5, y:0.2}} will crop each side to
12403
+ * preserve as much as possible around a point at 20% of the height of the
12404
+ * source image.
12405
+ */
12406
+ gravity?:
12407
+ | "face"
12408
+ | "left"
12409
+ | "right"
12410
+ | "top"
12411
+ | "bottom"
12412
+ | "center"
12413
+ | "auto"
12414
+ | "entropy"
12415
+ | BasicImageTransformationsGravityCoordinates;
12416
+ /**
12417
+ * Specifies how closely the image is cropped toward detected faces when combined
12418
+ * with the gravity=face option. Accepts a valid range between 0.0 (includes as much
12419
+ * of the background as possible) and 1.0 (crops the image as closely to the face as
12420
+ * possible). The default is 0.
12421
+ */
12422
+ zoom?: number;
12423
+ /**
12424
+ * Resizing mode as a string. It affects interpretation of width and height
12425
+ * options:
12426
+ * - scale-down: Similar to contain, but the image is never enlarged. If
12427
+ * the image is larger than given width or height, it will be resized.
12428
+ * Otherwise its original size will be kept.
12429
+ * - scale-up: Similar to contain, but the image is never shrunk. If the
12430
+ * image is smaller than the given width or height, it will be resized.
12431
+ * Otherwise its original size will be kept.
12432
+ * - contain: Resizes to maximum size that fits within the given width and
12433
+ * height. If only a single dimension is given (e.g. only width), the
12434
+ * image will be shrunk or enlarged to exactly match that dimension.
12435
+ * Aspect ratio is always preserved.
12436
+ * - cover: Resizes (shrinks or enlarges) to fill the entire area of width
12437
+ * and height. If the image has an aspect ratio different from the ratio
12438
+ * of width and height, it will be cropped to fit.
12439
+ * - crop: The image will be shrunk and cropped to fit within the area
12440
+ * specified by width and height. The image will not be enlarged. For images
12441
+ * smaller than the given dimensions it's the same as scale-down. For
12442
+ * images larger than the given dimensions, it's the same as cover.
12443
+ * See also trim.
12444
+ * - pad: Resizes to the maximum size that fits within the given width and
12445
+ * height, and then fills the remaining area with a background color
12446
+ * (white by default). Use of this mode is not recommended, as the same
12447
+ * effect can be more efficiently achieved with the contain mode and the
12448
+ * CSS object-fit: contain property.
12449
+ * - squeeze: Stretches and deforms to the width and height given, even if it
12450
+ * breaks aspect ratio
12451
+ */
12452
+ fit?:
12453
+ | "scale-down"
12454
+ | "scale-up"
12455
+ | "contain"
12456
+ | "cover"
12457
+ | "crop"
12458
+ | "pad"
12459
+ | "squeeze";
12460
+ /**
12461
+ * Allows you to trim your image. Takes dpr into account and is performed before
12462
+ * resizing or rotation.
12463
+ *
12464
+ * It can be used as:
12465
+ * - left, top, right, bottom - it will specify the number of pixels to cut
12466
+ * off each side
12467
+ * - width, height - the width/height you'd like to end up with - can be used
12468
+ * in combination with the properties above
12469
+ * - border - this will automatically trim the surroundings of an image based on
12470
+ * it's color. It consists of three properties:
12471
+ * - color: rgb or hex representation of the color you wish to trim (todo: verify the rgba bit)
12472
+ * - tolerance: difference from color to treat as color
12473
+ * - keep: the number of pixels of border to keep
12474
+ */
12475
+ trim?:
12476
+ | "border"
12477
+ | {
12478
+ top?: number;
12479
+ bottom?: number;
12480
+ left?: number;
12481
+ right?: number;
12482
+ width?: number;
12483
+ height?: number;
12484
+ border?:
12485
+ | boolean
12486
+ | {
12487
+ color?: string;
12488
+ tolerance?: number;
12489
+ keep?: number;
12490
+ };
12491
+ };
12492
+ /**
12493
+ * Background color to add underneath the image. Applies only to images with
12494
+ * transparency (such as PNG). Accepts any CSS color (#RRGGBB, rgba(…),
12495
+ * hsl(…), etc.)
12496
+ */
12497
+ background?: string;
12498
+ /**
12499
+ * Flips the images horizontally, vertically, or both. Flipping is applied before
12500
+ * rotation, so if you apply flip=h,rotate=90 then the image will be flipped
12501
+ * horizontally, then rotated by 90 degrees.
12502
+ */
12503
+ flip?: "h" | "v" | "hv";
12504
+ /**
12505
+ * Number of degrees (90, 180, 270) to rotate the image by. width and height
12506
+ * options refer to axes after rotation.
12507
+ */
12508
+ rotate?: 0 | 90 | 180 | 270 | 360;
12509
+ /**
12510
+ * Strength of sharpening filter to apply to the image. Floating-point
12511
+ * number between 0 (no sharpening, default) and 10 (maximum). 1.0 is a
12512
+ * recommended value for downscaled images.
12513
+ */
12514
+ sharpen?: number;
12515
+ /**
12516
+ * Radius of a blur filter (approximate gaussian). Maximum supported radius
12517
+ * is 250.
12518
+ */
12519
+ blur?: number;
12520
+ /**
12521
+ * Increase contrast by a factor. A value of 1.0 equals no change, a value of
12522
+ * 0.5 equals low contrast, and a value of 2.0 equals high contrast. 0 is
12523
+ * ignored.
12524
+ */
12525
+ contrast?: number;
12526
+ /**
12527
+ * Increase brightness by a factor. A value of 1.0 equals no change, a value
12528
+ * of 0.5 equals half brightness, and a value of 2.0 equals twice as bright.
12529
+ * 0 is ignored.
12530
+ */
12531
+ brightness?: number;
12532
+ /**
12533
+ * Increase exposure by a factor. A value of 1.0 equals no change, a value of
12534
+ * 0.5 darkens the image, and a value of 2.0 lightens the image. 0 is ignored.
12535
+ */
12536
+ gamma?: number;
12537
+ /**
12538
+ * Increase contrast by a factor. A value of 1.0 equals no change, a value of
12539
+ * 0.5 equals low contrast, and a value of 2.0 equals high contrast. 0 is
12540
+ * ignored.
12541
+ */
12542
+ saturation?: number;
12543
+ /**
12544
+ * Device Pixel Ratio. Default 1. Multiplier for width/height that makes it
12545
+ * easier to specify higher-DPI sizes in <img srcset>.
12546
+ */
12547
+ dpr?: number;
12548
+ /**
12549
+ * Adds a border around the image. The border is added after resizing. Border
12550
+ * width takes dpr into account, and can be specified either using a single
12551
+ * width property, or individually for each side.
12552
+ */
12553
+ border?:
12554
+ | {
12555
+ color: string;
12556
+ width: number;
12557
+ }
12558
+ | {
12559
+ color: string;
12560
+ top: number;
12561
+ right: number;
12562
+ bottom: number;
12563
+ left: number;
12564
+ };
12565
+ /**
12566
+ * Image segmentation using artificial intelligence models. Sets pixels not
12567
+ * within selected segment area to transparent e.g "foreground" sets every
12568
+ * background pixel as transparent.
12569
+ */
12570
+ segment?: "foreground";
12571
+ /**
12572
+ * Controls the algorithm used when an image needs to be enlarged. This
12573
+ * parameter works with any fit mode that upscales, such as `contain`,
12574
+ * `cover`, and `scale-up`. It has no effect when `fit=scale-down` or when
12575
+ * the target dimensions are smaller than the source.
12576
+ * - interpolate: Uses bicubic interpolation, which may reduce image quality.
12577
+ * This is the default behavior when `upscale` is not specified.
12578
+ * - generate: Uses AI upscaling to produce sharper, more detailed results
12579
+ * when enlarging images.
12580
+ */
12581
+ upscale?: "interpolate" | "generate";
12582
+ }
12583
+ export interface BasicImageTransformationsGravityCoordinates {
12584
+ x?: number;
12585
+ y?: number;
12586
+ mode?: "remainder" | "box-center";
12587
+ }
12373
12588
  export interface RequestInitCfPropertiesImageDraw extends BasicImageTransformations {
12374
12589
  /**
12375
12590
  * Absolute URL of the image file to use for the drawing. It can be any of
@@ -12423,43 +12638,6 @@ export interface RequestInitCfPropertiesImageDraw extends BasicImageTransformati
12423
12638
  right?: number;
12424
12639
  }
12425
12640
  export interface RequestInitCfPropertiesImage extends BasicImageTransformations {
12426
- /**
12427
- * Device Pixel Ratio. Default 1. Multiplier for width/height that makes it
12428
- * easier to specify higher-DPI sizes in <img srcset>.
12429
- */
12430
- dpr?: number;
12431
- /**
12432
- * Allows you to trim your image. Takes dpr into account and is performed before
12433
- * resizing or rotation.
12434
- *
12435
- * It can be used as:
12436
- * - left, top, right, bottom - it will specify the number of pixels to cut
12437
- * off each side
12438
- * - width, height - the width/height you'd like to end up with - can be used
12439
- * in combination with the properties above
12440
- * - border - this will automatically trim the surroundings of an image based on
12441
- * it's color. It consists of three properties:
12442
- * - color: rgb or hex representation of the color you wish to trim (todo: verify the rgba bit)
12443
- * - tolerance: difference from color to treat as color
12444
- * - keep: the number of pixels of border to keep
12445
- */
12446
- trim?:
12447
- | "border"
12448
- | {
12449
- top?: number;
12450
- bottom?: number;
12451
- left?: number;
12452
- right?: number;
12453
- width?: number;
12454
- height?: number;
12455
- border?:
12456
- | boolean
12457
- | {
12458
- color?: string;
12459
- tolerance?: number;
12460
- keep?: number;
12461
- };
12462
- };
12463
12641
  /**
12464
12642
  * Quality setting from 1-100 (useful values are in 60-90 range). Lower values
12465
12643
  * make images look worse, but load faster. The default is 85. It applies only
@@ -12509,17 +12687,6 @@ export interface RequestInitCfPropertiesImage extends BasicImageTransformations
12509
12687
  * output formats always discard metadata.
12510
12688
  */
12511
12689
  metadata?: "keep" | "copyright" | "none";
12512
- /**
12513
- * Strength of sharpening filter to apply to the image. Floating-point
12514
- * number between 0 (no sharpening, default) and 10 (maximum). 1.0 is a
12515
- * recommended value for downscaled images.
12516
- */
12517
- sharpen?: number;
12518
- /**
12519
- * Radius of a blur filter (approximate gaussian). Maximum supported radius
12520
- * is 250.
12521
- */
12522
- blur?: number;
12523
12690
  /**
12524
12691
  * Overlays are drawn in the order they appear in the array (last array
12525
12692
  * entry is the topmost layer).
@@ -12531,52 +12698,6 @@ export interface RequestInitCfPropertiesImage extends BasicImageTransformations
12531
12698
  * the origin.
12532
12699
  */
12533
12700
  "origin-auth"?: "share-publicly";
12534
- /**
12535
- * Adds a border around the image. The border is added after resizing. Border
12536
- * width takes dpr into account, and can be specified either using a single
12537
- * width property, or individually for each side.
12538
- */
12539
- border?:
12540
- | {
12541
- color: string;
12542
- width: number;
12543
- }
12544
- | {
12545
- color: string;
12546
- top: number;
12547
- right: number;
12548
- bottom: number;
12549
- left: number;
12550
- };
12551
- /**
12552
- * Increase brightness by a factor. A value of 1.0 equals no change, a value
12553
- * of 0.5 equals half brightness, and a value of 2.0 equals twice as bright.
12554
- * 0 is ignored.
12555
- */
12556
- brightness?: number;
12557
- /**
12558
- * Increase contrast by a factor. A value of 1.0 equals no change, a value of
12559
- * 0.5 equals low contrast, and a value of 2.0 equals high contrast. 0 is
12560
- * ignored.
12561
- */
12562
- contrast?: number;
12563
- /**
12564
- * Increase exposure by a factor. A value of 1.0 equals no change, a value of
12565
- * 0.5 darkens the image, and a value of 2.0 lightens the image. 0 is ignored.
12566
- */
12567
- gamma?: number;
12568
- /**
12569
- * Increase contrast by a factor. A value of 1.0 equals no change, a value of
12570
- * 0.5 equals low contrast, and a value of 2.0 equals high contrast. 0 is
12571
- * ignored.
12572
- */
12573
- saturation?: number;
12574
- /**
12575
- * Flips the images horizontally, vertically, or both. Flipping is applied before
12576
- * rotation, so if you apply flip=h,rotate=90 then the image will be flipped
12577
- * horizontally, then rotated by 90 degrees.
12578
- */
12579
- flip?: "h" | "v" | "hv";
12580
12701
  /**
12581
12702
  * Slightly reduces latency on a cache miss by selecting a
12582
12703
  * quickest-to-compress file format, at a cost of increased file size and
@@ -14475,6 +14596,10 @@ export declare namespace CloudflareWorkersModule {
14475
14596
  timeout?: WorkflowTimeoutDuration | number;
14476
14597
  sensitive?: WorkflowStepSensitivity;
14477
14598
  };
14599
+ export type WorkflowStepRollbackConfig = Pick<
14600
+ WorkflowStepConfig,
14601
+ "retries" | "timeout"
14602
+ >;
14478
14603
  export type WorkflowCronSchedule = {
14479
14604
  /** Cron expression that triggered this event. */
14480
14605
  cron: string;
@@ -14503,16 +14628,18 @@ export declare namespace CloudflareWorkersModule {
14503
14628
  config: WorkflowStepConfig;
14504
14629
  };
14505
14630
  export type WorkflowRollbackContext<T = unknown> = {
14631
+ ctx: WorkflowStepContext;
14506
14632
  error: Error;
14507
14633
  output: T | undefined;
14634
+ /** @deprecated Use `ctx.step.name` and `ctx.step.count` instead. */
14508
14635
  stepName: string;
14509
14636
  };
14510
14637
  export type WorkflowRollbackHandler<T = unknown> = (
14511
14638
  ctx: WorkflowRollbackContext<T>,
14512
14639
  ) => Promise<void>;
14513
14640
  export type WorkflowStepRollbackOptions<T = unknown> = {
14514
- rollback?: WorkflowRollbackHandler<T>;
14515
- rollbackConfig?: WorkflowStepConfig;
14641
+ rollback: WorkflowRollbackHandler<T>;
14642
+ rollbackConfig?: WorkflowStepRollbackConfig;
14516
14643
  };
14517
14644
  export abstract class WorkflowStep {
14518
14645
  do<T extends Rpc.Serializable<T>>(
@@ -15471,7 +15598,8 @@ export declare namespace TailStream {
15471
15598
  | "loadShed"
15472
15599
  | "responseStreamDisconnected"
15473
15600
  | "scriptNotFound"
15474
- | "internalError";
15601
+ | "internalError"
15602
+ | "exceededWallTime";
15475
15603
  interface ScriptVersion {
15476
15604
  readonly id: string;
15477
15605
  readonly tag?: string;