@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.
@@ -474,7 +474,8 @@ export interface ExecutionContext<Props = unknown> {
474
474
  passThroughOnException(): void;
475
475
  readonly props: Props;
476
476
  cache?: CacheContext;
477
- tracing?: Tracing;
477
+ readonly access?: CloudflareAccessContext;
478
+ tracing: Tracing;
478
479
  }
479
480
  export type ExportedHandlerFetchHandler<
480
481
  Env = unknown,
@@ -573,6 +574,10 @@ export interface CachePurgeOptions {
573
574
  export interface CacheContext {
574
575
  purge(options: CachePurgeOptions): Promise<CachePurgeResult>;
575
576
  }
577
+ export interface CloudflareAccessContext {
578
+ readonly aud: string;
579
+ getIdentity(): Promise<CloudflareAccessIdentity | undefined>;
580
+ }
576
581
  export declare abstract class ColoLocalActorNamespace {
577
582
  get(actorId: string): Fetcher;
578
583
  }
@@ -638,6 +643,8 @@ export type DurableObjectLocationHint =
638
643
  | "weur"
639
644
  | "eeur"
640
645
  | "apac"
646
+ | "apac-ne"
647
+ | "apac-se"
641
648
  | "oc"
642
649
  | "afr"
643
650
  | "me";
@@ -779,6 +786,7 @@ export interface DurableObjectFacets {
779
786
  ): Fetcher<T>;
780
787
  abort(name: string, reason: any): void;
781
788
  delete(name: string): void;
789
+ clone(src: string, dst: string): void;
782
790
  }
783
791
  export interface FacetStartupOptions<
784
792
  T extends Rpc.DurableObjectBranded | undefined = undefined,
@@ -3810,6 +3818,28 @@ export interface EventSourceEventSourceInit {
3810
3818
  withCredentials?: boolean;
3811
3819
  fetcher?: Fetcher;
3812
3820
  }
3821
+ export interface ExecOutput {
3822
+ readonly stdout: ArrayBuffer;
3823
+ readonly stderr: ArrayBuffer;
3824
+ readonly exitCode: number;
3825
+ }
3826
+ export interface ContainerExecOptions {
3827
+ cwd?: string;
3828
+ env?: Record<string, string>;
3829
+ user?: string;
3830
+ stdin?: ReadableStream | "pipe";
3831
+ stdout?: "pipe" | "ignore";
3832
+ stderr?: "pipe" | "ignore" | "combined";
3833
+ }
3834
+ export interface ExecProcess {
3835
+ readonly stdin: WritableStream | null;
3836
+ readonly stdout: ReadableStream | null;
3837
+ readonly stderr: ReadableStream | null;
3838
+ readonly pid: number;
3839
+ readonly exitCode: Promise<number>;
3840
+ output(): Promise<ExecOutput>;
3841
+ kill(signal?: number): void;
3842
+ }
3813
3843
  export interface Container {
3814
3844
  get running(): boolean;
3815
3845
  start(options?: ContainerStartupOptions): void;
@@ -3827,6 +3857,7 @@ export interface Container {
3827
3857
  options: ContainerSnapshotOptions,
3828
3858
  ): Promise<ContainerSnapshot>;
3829
3859
  interceptOutboundHttps(addr: string, binding: Fetcher): Promise<void>;
3860
+ exec(cmd: string[], options?: ContainerExecOptions): Promise<ExecProcess>;
3830
3861
  }
3831
3862
  export interface ContainerDirectorySnapshot {
3832
3863
  id: string;
@@ -4001,11 +4032,62 @@ export interface Tracing {
4001
4032
  callback: (span: Span, ...args: A) => T,
4002
4033
  ...args: A
4003
4034
  ): T;
4035
+ startActiveSpan<T, A extends unknown[]>(
4036
+ name: string,
4037
+ callback: (span: Span, ...args: A) => T,
4038
+ ...args: A
4039
+ ): T;
4004
4040
  Span: typeof Span;
4005
4041
  }
4006
4042
  export declare abstract class Span {
4007
4043
  get isTraced(): boolean;
4008
4044
  setAttribute(key: string, value?: boolean | number | string): void;
4045
+ end(): void;
4046
+ }
4047
+ /**
4048
+ * Represents the identity of a user authenticated via Cloudflare Access.
4049
+ * This matches the result of calling /cdn-cgi/access/get-identity.
4050
+ *
4051
+ * The exact structure of the returned object depends on the identity provider
4052
+ * configuration for the Access application. The fields below represent commonly
4053
+ * available properties, but additional provider-specific fields may be present.
4054
+ */
4055
+ export interface CloudflareAccessIdentity extends Record<string, unknown> {
4056
+ /** The user's email address, if available from the identity provider. */
4057
+ email?: string;
4058
+ /** The user's display name. */
4059
+ name?: string;
4060
+ /** The user's unique identifier. */
4061
+ user_uuid?: string;
4062
+ /** The Cloudflare account ID. */
4063
+ account_id?: string;
4064
+ /** Login timestamp (Unix epoch seconds). */
4065
+ iat?: number;
4066
+ /** The user's IP address at authentication time. */
4067
+ ip?: string;
4068
+ /** Authentication methods used (e.g., "pwd"). */
4069
+ amr?: string[];
4070
+ /** Identity provider information. */
4071
+ idp?: {
4072
+ id: string;
4073
+ type: string;
4074
+ };
4075
+ /** Geographic information about where the user authenticated. */
4076
+ geo?: {
4077
+ country: string;
4078
+ };
4079
+ /** Group memberships from the identity provider. */
4080
+ groups?: Array<{
4081
+ id: string;
4082
+ name: string;
4083
+ email?: string;
4084
+ }>;
4085
+ /** Device posture check results, keyed by check ID. */
4086
+ devicePosture?: Record<string, unknown>;
4087
+ /** True if the user connected via Cloudflare WARP. */
4088
+ is_warp?: boolean;
4089
+ /** True if the user is authenticated via Cloudflare Gateway. */
4090
+ is_gateway?: boolean;
4009
4091
  }
4010
4092
  // ============================================================================
4011
4093
  // Agent Memory
@@ -12162,87 +12244,6 @@ export declare abstract class BrowserRun {
12162
12244
  options: BrowserRunMarkdownOptions,
12163
12245
  ): Promise<Response>;
12164
12246
  }
12165
- export interface BasicImageTransformations {
12166
- /**
12167
- * Maximum width in image pixels. The value must be an integer.
12168
- */
12169
- width?: number;
12170
- /**
12171
- * Maximum height in image pixels. The value must be an integer.
12172
- */
12173
- height?: number;
12174
- /**
12175
- * Resizing mode as a string. It affects interpretation of width and height
12176
- * options:
12177
- * - scale-down: Similar to contain, but the image is never enlarged. If
12178
- * the image is larger than given width or height, it will be resized.
12179
- * Otherwise its original size will be kept.
12180
- * - contain: Resizes to maximum size that fits within the given width and
12181
- * height. If only a single dimension is given (e.g. only width), the
12182
- * image will be shrunk or enlarged to exactly match that dimension.
12183
- * Aspect ratio is always preserved.
12184
- * - cover: Resizes (shrinks or enlarges) to fill the entire area of width
12185
- * and height. If the image has an aspect ratio different from the ratio
12186
- * of width and height, it will be cropped to fit.
12187
- * - crop: The image will be shrunk and cropped to fit within the area
12188
- * specified by width and height. The image will not be enlarged. For images
12189
- * smaller than the given dimensions it's the same as scale-down. For
12190
- * images larger than the given dimensions, it's the same as cover.
12191
- * See also trim.
12192
- * - pad: Resizes to the maximum size that fits within the given width and
12193
- * height, and then fills the remaining area with a background color
12194
- * (white by default). Use of this mode is not recommended, as the same
12195
- * effect can be more efficiently achieved with the contain mode and the
12196
- * CSS object-fit: contain property.
12197
- * - squeeze: Stretches and deforms to the width and height given, even if it
12198
- * breaks aspect ratio
12199
- */
12200
- fit?: "scale-down" | "contain" | "cover" | "crop" | "pad" | "squeeze";
12201
- /**
12202
- * Image segmentation using artificial intelligence models. Sets pixels not
12203
- * within selected segment area to transparent e.g "foreground" sets every
12204
- * background pixel as transparent.
12205
- */
12206
- segment?: "foreground";
12207
- /**
12208
- * When cropping with fit: "cover", this defines the side or point that should
12209
- * be left uncropped. The value is either a string
12210
- * "left", "right", "top", "bottom", "auto", or "center" (the default),
12211
- * or an object {x, y} containing focal point coordinates in the original
12212
- * image expressed as fractions ranging from 0.0 (top or left) to 1.0
12213
- * (bottom or right), 0.5 being the center. {fit: "cover", gravity: "top"} will
12214
- * crop bottom or left and right sides as necessary, but won’t crop anything
12215
- * from the top. {fit: "cover", gravity: {x:0.5, y:0.2}} will crop each side to
12216
- * preserve as much as possible around a point at 20% of the height of the
12217
- * source image.
12218
- */
12219
- gravity?:
12220
- | "face"
12221
- | "left"
12222
- | "right"
12223
- | "top"
12224
- | "bottom"
12225
- | "center"
12226
- | "auto"
12227
- | "entropy"
12228
- | BasicImageTransformationsGravityCoordinates;
12229
- /**
12230
- * Background color to add underneath the image. Applies only to images with
12231
- * transparency (such as PNG). Accepts any CSS color (#RRGGBB, rgba(…),
12232
- * hsl(…), etc.)
12233
- */
12234
- background?: string;
12235
- /**
12236
- * Number of degrees (90, 180, 270) to rotate the image by. width and height
12237
- * options refer to axes after rotation.
12238
- */
12239
- rotate?: 0 | 90 | 180 | 270 | 360;
12240
- }
12241
- export interface BasicImageTransformationsGravityCoordinates {
12242
- x?: number;
12243
- y?: number;
12244
- mode?: "remainder" | "box-center";
12245
- }
12246
12247
  /**
12247
12248
  * In addition to the properties you can set in the RequestInit dict
12248
12249
  * that you pass as an argument to the Request constructor, you can
@@ -12318,6 +12319,17 @@ export interface RequestInitCfProperties extends Record<string, unknown> {
12318
12319
  cacheReserveMinimumFileSize?: number;
12319
12320
  scrapeShield?: boolean;
12320
12321
  apps?: boolean;
12322
+ /**
12323
+ * Controls whether an outbound gRPC-web subrequest from this Worker is
12324
+ * converted to gRPC at the Cloudflare edge.
12325
+ *
12326
+ * - `"passthrough"`: forward the subrequest unchanged as gRPC-web (default).
12327
+ * - `"convert"`: convert the gRPC-web subrequest to gRPC at the edge.
12328
+ *
12329
+ * Provides per-request control over the same edge conversion behavior
12330
+ * gated by the `auto_grpc_convert` compatibility flag.
12331
+ */
12332
+ grpcWeb?: "passthrough" | "convert";
12321
12333
  image?: RequestInitCfPropertiesImage;
12322
12334
  minify?: RequestInitCfPropertiesImageMinify;
12323
12335
  mirage?: boolean;
@@ -12338,6 +12350,209 @@ export interface RequestInitCfProperties extends Record<string, unknown> {
12338
12350
  */
12339
12351
  resolveOverride?: string;
12340
12352
  }
12353
+ export interface BasicImageTransformations {
12354
+ /**
12355
+ * Maximum width in image pixels. The value must be an integer.
12356
+ */
12357
+ width?: number;
12358
+ /**
12359
+ * Maximum height in image pixels. The value must be an integer.
12360
+ */
12361
+ height?: number;
12362
+ /**
12363
+ * When cropping with fit: "cover", this defines the side or point that should
12364
+ * be left uncropped. The value is either a string
12365
+ * "left", "right", "top", "bottom", "auto", or "center" (the default),
12366
+ * or an object {x, y} containing focal point coordinates in the original
12367
+ * image expressed as fractions ranging from 0.0 (top or left) to 1.0
12368
+ * (bottom or right), 0.5 being the center. {fit: "cover", gravity: "top"} will
12369
+ * crop bottom or left and right sides as necessary, but won’t crop anything
12370
+ * from the top. {fit: "cover", gravity: {x:0.5, y:0.2}} will crop each side to
12371
+ * preserve as much as possible around a point at 20% of the height of the
12372
+ * source image.
12373
+ */
12374
+ gravity?:
12375
+ | "face"
12376
+ | "left"
12377
+ | "right"
12378
+ | "top"
12379
+ | "bottom"
12380
+ | "center"
12381
+ | "auto"
12382
+ | "entropy"
12383
+ | BasicImageTransformationsGravityCoordinates;
12384
+ /**
12385
+ * Specifies how closely the image is cropped toward detected faces when combined
12386
+ * with the gravity=face option. Accepts a valid range between 0.0 (includes as much
12387
+ * of the background as possible) and 1.0 (crops the image as closely to the face as
12388
+ * possible). The default is 0.
12389
+ */
12390
+ zoom?: number;
12391
+ /**
12392
+ * Resizing mode as a string. It affects interpretation of width and height
12393
+ * options:
12394
+ * - scale-down: Similar to contain, but the image is never enlarged. If
12395
+ * the image is larger than given width or height, it will be resized.
12396
+ * Otherwise its original size will be kept.
12397
+ * - scale-up: Similar to contain, but the image is never shrunk. If the
12398
+ * image is smaller than the given width or height, it will be resized.
12399
+ * Otherwise its original size will be kept.
12400
+ * - contain: Resizes to maximum size that fits within the given width and
12401
+ * height. If only a single dimension is given (e.g. only width), the
12402
+ * image will be shrunk or enlarged to exactly match that dimension.
12403
+ * Aspect ratio is always preserved.
12404
+ * - cover: Resizes (shrinks or enlarges) to fill the entire area of width
12405
+ * and height. If the image has an aspect ratio different from the ratio
12406
+ * of width and height, it will be cropped to fit.
12407
+ * - crop: The image will be shrunk and cropped to fit within the area
12408
+ * specified by width and height. The image will not be enlarged. For images
12409
+ * smaller than the given dimensions it's the same as scale-down. For
12410
+ * images larger than the given dimensions, it's the same as cover.
12411
+ * See also trim.
12412
+ * - pad: Resizes to the maximum size that fits within the given width and
12413
+ * height, and then fills the remaining area with a background color
12414
+ * (white by default). Use of this mode is not recommended, as the same
12415
+ * effect can be more efficiently achieved with the contain mode and the
12416
+ * CSS object-fit: contain property.
12417
+ * - squeeze: Stretches and deforms to the width and height given, even if it
12418
+ * breaks aspect ratio
12419
+ */
12420
+ fit?:
12421
+ | "scale-down"
12422
+ | "scale-up"
12423
+ | "contain"
12424
+ | "cover"
12425
+ | "crop"
12426
+ | "pad"
12427
+ | "squeeze";
12428
+ /**
12429
+ * Allows you to trim your image. Takes dpr into account and is performed before
12430
+ * resizing or rotation.
12431
+ *
12432
+ * It can be used as:
12433
+ * - left, top, right, bottom - it will specify the number of pixels to cut
12434
+ * off each side
12435
+ * - width, height - the width/height you'd like to end up with - can be used
12436
+ * in combination with the properties above
12437
+ * - border - this will automatically trim the surroundings of an image based on
12438
+ * it's color. It consists of three properties:
12439
+ * - color: rgb or hex representation of the color you wish to trim (todo: verify the rgba bit)
12440
+ * - tolerance: difference from color to treat as color
12441
+ * - keep: the number of pixels of border to keep
12442
+ */
12443
+ trim?:
12444
+ | "border"
12445
+ | {
12446
+ top?: number;
12447
+ bottom?: number;
12448
+ left?: number;
12449
+ right?: number;
12450
+ width?: number;
12451
+ height?: number;
12452
+ border?:
12453
+ | boolean
12454
+ | {
12455
+ color?: string;
12456
+ tolerance?: number;
12457
+ keep?: number;
12458
+ };
12459
+ };
12460
+ /**
12461
+ * Background color to add underneath the image. Applies only to images with
12462
+ * transparency (such as PNG). Accepts any CSS color (#RRGGBB, rgba(…),
12463
+ * hsl(…), etc.)
12464
+ */
12465
+ background?: string;
12466
+ /**
12467
+ * Flips the images horizontally, vertically, or both. Flipping is applied before
12468
+ * rotation, so if you apply flip=h,rotate=90 then the image will be flipped
12469
+ * horizontally, then rotated by 90 degrees.
12470
+ */
12471
+ flip?: "h" | "v" | "hv";
12472
+ /**
12473
+ * Number of degrees (90, 180, 270) to rotate the image by. width and height
12474
+ * options refer to axes after rotation.
12475
+ */
12476
+ rotate?: 0 | 90 | 180 | 270 | 360;
12477
+ /**
12478
+ * Strength of sharpening filter to apply to the image. Floating-point
12479
+ * number between 0 (no sharpening, default) and 10 (maximum). 1.0 is a
12480
+ * recommended value for downscaled images.
12481
+ */
12482
+ sharpen?: number;
12483
+ /**
12484
+ * Radius of a blur filter (approximate gaussian). Maximum supported radius
12485
+ * is 250.
12486
+ */
12487
+ blur?: number;
12488
+ /**
12489
+ * Increase contrast by a factor. A value of 1.0 equals no change, a value of
12490
+ * 0.5 equals low contrast, and a value of 2.0 equals high contrast. 0 is
12491
+ * ignored.
12492
+ */
12493
+ contrast?: number;
12494
+ /**
12495
+ * Increase brightness by a factor. A value of 1.0 equals no change, a value
12496
+ * of 0.5 equals half brightness, and a value of 2.0 equals twice as bright.
12497
+ * 0 is ignored.
12498
+ */
12499
+ brightness?: number;
12500
+ /**
12501
+ * Increase exposure by a factor. A value of 1.0 equals no change, a value of
12502
+ * 0.5 darkens the image, and a value of 2.0 lightens the image. 0 is ignored.
12503
+ */
12504
+ gamma?: number;
12505
+ /**
12506
+ * Increase contrast by a factor. A value of 1.0 equals no change, a value of
12507
+ * 0.5 equals low contrast, and a value of 2.0 equals high contrast. 0 is
12508
+ * ignored.
12509
+ */
12510
+ saturation?: number;
12511
+ /**
12512
+ * Device Pixel Ratio. Default 1. Multiplier for width/height that makes it
12513
+ * easier to specify higher-DPI sizes in <img srcset>.
12514
+ */
12515
+ dpr?: number;
12516
+ /**
12517
+ * Adds a border around the image. The border is added after resizing. Border
12518
+ * width takes dpr into account, and can be specified either using a single
12519
+ * width property, or individually for each side.
12520
+ */
12521
+ border?:
12522
+ | {
12523
+ color: string;
12524
+ width: number;
12525
+ }
12526
+ | {
12527
+ color: string;
12528
+ top: number;
12529
+ right: number;
12530
+ bottom: number;
12531
+ left: number;
12532
+ };
12533
+ /**
12534
+ * Image segmentation using artificial intelligence models. Sets pixels not
12535
+ * within selected segment area to transparent e.g "foreground" sets every
12536
+ * background pixel as transparent.
12537
+ */
12538
+ segment?: "foreground";
12539
+ /**
12540
+ * Controls the algorithm used when an image needs to be enlarged. This
12541
+ * parameter works with any fit mode that upscales, such as `contain`,
12542
+ * `cover`, and `scale-up`. It has no effect when `fit=scale-down` or when
12543
+ * the target dimensions are smaller than the source.
12544
+ * - interpolate: Uses bicubic interpolation, which may reduce image quality.
12545
+ * This is the default behavior when `upscale` is not specified.
12546
+ * - generate: Uses AI upscaling to produce sharper, more detailed results
12547
+ * when enlarging images.
12548
+ */
12549
+ upscale?: "interpolate" | "generate";
12550
+ }
12551
+ export interface BasicImageTransformationsGravityCoordinates {
12552
+ x?: number;
12553
+ y?: number;
12554
+ mode?: "remainder" | "box-center";
12555
+ }
12341
12556
  export interface RequestInitCfPropertiesImageDraw extends BasicImageTransformations {
12342
12557
  /**
12343
12558
  * Absolute URL of the image file to use for the drawing. It can be any of
@@ -12391,43 +12606,6 @@ export interface RequestInitCfPropertiesImageDraw extends BasicImageTransformati
12391
12606
  right?: number;
12392
12607
  }
12393
12608
  export interface RequestInitCfPropertiesImage extends BasicImageTransformations {
12394
- /**
12395
- * Device Pixel Ratio. Default 1. Multiplier for width/height that makes it
12396
- * easier to specify higher-DPI sizes in <img srcset>.
12397
- */
12398
- dpr?: number;
12399
- /**
12400
- * Allows you to trim your image. Takes dpr into account and is performed before
12401
- * resizing or rotation.
12402
- *
12403
- * It can be used as:
12404
- * - left, top, right, bottom - it will specify the number of pixels to cut
12405
- * off each side
12406
- * - width, height - the width/height you'd like to end up with - can be used
12407
- * in combination with the properties above
12408
- * - border - this will automatically trim the surroundings of an image based on
12409
- * it's color. It consists of three properties:
12410
- * - color: rgb or hex representation of the color you wish to trim (todo: verify the rgba bit)
12411
- * - tolerance: difference from color to treat as color
12412
- * - keep: the number of pixels of border to keep
12413
- */
12414
- trim?:
12415
- | "border"
12416
- | {
12417
- top?: number;
12418
- bottom?: number;
12419
- left?: number;
12420
- right?: number;
12421
- width?: number;
12422
- height?: number;
12423
- border?:
12424
- | boolean
12425
- | {
12426
- color?: string;
12427
- tolerance?: number;
12428
- keep?: number;
12429
- };
12430
- };
12431
12609
  /**
12432
12610
  * Quality setting from 1-100 (useful values are in 60-90 range). Lower values
12433
12611
  * make images look worse, but load faster. The default is 85. It applies only
@@ -12477,17 +12655,6 @@ export interface RequestInitCfPropertiesImage extends BasicImageTransformations
12477
12655
  * output formats always discard metadata.
12478
12656
  */
12479
12657
  metadata?: "keep" | "copyright" | "none";
12480
- /**
12481
- * Strength of sharpening filter to apply to the image. Floating-point
12482
- * number between 0 (no sharpening, default) and 10 (maximum). 1.0 is a
12483
- * recommended value for downscaled images.
12484
- */
12485
- sharpen?: number;
12486
- /**
12487
- * Radius of a blur filter (approximate gaussian). Maximum supported radius
12488
- * is 250.
12489
- */
12490
- blur?: number;
12491
12658
  /**
12492
12659
  * Overlays are drawn in the order they appear in the array (last array
12493
12660
  * entry is the topmost layer).
@@ -12499,52 +12666,6 @@ export interface RequestInitCfPropertiesImage extends BasicImageTransformations
12499
12666
  * the origin.
12500
12667
  */
12501
12668
  "origin-auth"?: "share-publicly";
12502
- /**
12503
- * Adds a border around the image. The border is added after resizing. Border
12504
- * width takes dpr into account, and can be specified either using a single
12505
- * width property, or individually for each side.
12506
- */
12507
- border?:
12508
- | {
12509
- color: string;
12510
- width: number;
12511
- }
12512
- | {
12513
- color: string;
12514
- top: number;
12515
- right: number;
12516
- bottom: number;
12517
- left: number;
12518
- };
12519
- /**
12520
- * Increase brightness by a factor. A value of 1.0 equals no change, a value
12521
- * of 0.5 equals half brightness, and a value of 2.0 equals twice as bright.
12522
- * 0 is ignored.
12523
- */
12524
- brightness?: number;
12525
- /**
12526
- * Increase contrast by a factor. A value of 1.0 equals no change, a value of
12527
- * 0.5 equals low contrast, and a value of 2.0 equals high contrast. 0 is
12528
- * ignored.
12529
- */
12530
- contrast?: number;
12531
- /**
12532
- * Increase exposure by a factor. A value of 1.0 equals no change, a value of
12533
- * 0.5 darkens the image, and a value of 2.0 lightens the image. 0 is ignored.
12534
- */
12535
- gamma?: number;
12536
- /**
12537
- * Increase contrast by a factor. A value of 1.0 equals no change, a value of
12538
- * 0.5 equals low contrast, and a value of 2.0 equals high contrast. 0 is
12539
- * ignored.
12540
- */
12541
- saturation?: number;
12542
- /**
12543
- * Flips the images horizontally, vertically, or both. Flipping is applied before
12544
- * rotation, so if you apply flip=h,rotate=90 then the image will be flipped
12545
- * horizontally, then rotated by 90 degrees.
12546
- */
12547
- flip?: "h" | "v" | "hv";
12548
12669
  /**
12549
12670
  * Slightly reduces latency on a cache miss by selecting a
12550
12671
  * quickest-to-compress file format, at a cost of increased file size and
@@ -14443,6 +14564,10 @@ export declare namespace CloudflareWorkersModule {
14443
14564
  timeout?: WorkflowTimeoutDuration | number;
14444
14565
  sensitive?: WorkflowStepSensitivity;
14445
14566
  };
14567
+ export type WorkflowStepRollbackConfig = Pick<
14568
+ WorkflowStepConfig,
14569
+ "retries" | "timeout"
14570
+ >;
14446
14571
  export type WorkflowCronSchedule = {
14447
14572
  /** Cron expression that triggered this event. */
14448
14573
  cron: string;
@@ -14471,16 +14596,18 @@ export declare namespace CloudflareWorkersModule {
14471
14596
  config: WorkflowStepConfig;
14472
14597
  };
14473
14598
  export type WorkflowRollbackContext<T = unknown> = {
14599
+ ctx: WorkflowStepContext;
14474
14600
  error: Error;
14475
14601
  output: T | undefined;
14602
+ /** @deprecated Use `ctx.step.name` and `ctx.step.count` instead. */
14476
14603
  stepName: string;
14477
14604
  };
14478
14605
  export type WorkflowRollbackHandler<T = unknown> = (
14479
14606
  ctx: WorkflowRollbackContext<T>,
14480
14607
  ) => Promise<void>;
14481
14608
  export type WorkflowStepRollbackOptions<T = unknown> = {
14482
- rollback?: WorkflowRollbackHandler<T>;
14483
- rollbackConfig?: WorkflowStepConfig;
14609
+ rollback: WorkflowRollbackHandler<T>;
14610
+ rollbackConfig?: WorkflowStepRollbackConfig;
14484
14611
  };
14485
14612
  export abstract class WorkflowStep {
14486
14613
  do<T extends Rpc.Serializable<T>>(
@@ -15439,7 +15566,8 @@ export declare namespace TailStream {
15439
15566
  | "loadShed"
15440
15567
  | "responseStreamDisconnected"
15441
15568
  | "scriptNotFound"
15442
- | "internalError";
15569
+ | "internalError"
15570
+ | "exceededWallTime";
15443
15571
  interface ScriptVersion {
15444
15572
  readonly id: string;
15445
15573
  readonly tag?: string;