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