@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.
package/latest/index.ts CHANGED
@@ -482,7 +482,8 @@ export interface ExecutionContext<Props = unknown> {
482
482
  readonly exports: Cloudflare.Exports;
483
483
  readonly props: Props;
484
484
  cache?: CacheContext;
485
- tracing?: Tracing;
485
+ readonly access?: CloudflareAccessContext;
486
+ tracing: Tracing;
486
487
  }
487
488
  export type ExportedHandlerFetchHandler<
488
489
  Env = unknown,
@@ -583,6 +584,10 @@ export interface CachePurgeOptions {
583
584
  export interface CacheContext {
584
585
  purge(options: CachePurgeOptions): Promise<CachePurgeResult>;
585
586
  }
587
+ export interface CloudflareAccessContext {
588
+ readonly aud: string;
589
+ getIdentity(): Promise<CloudflareAccessIdentity | undefined>;
590
+ }
586
591
  export declare abstract class ColoLocalActorNamespace {
587
592
  get(actorId: string): Fetcher;
588
593
  }
@@ -648,6 +653,8 @@ export type DurableObjectLocationHint =
648
653
  | "weur"
649
654
  | "eeur"
650
655
  | "apac"
656
+ | "apac-ne"
657
+ | "apac-se"
651
658
  | "oc"
652
659
  | "afr"
653
660
  | "me";
@@ -790,6 +797,7 @@ export interface DurableObjectFacets {
790
797
  ): Fetcher<T>;
791
798
  abort(name: string, reason: any): void;
792
799
  delete(name: string): void;
800
+ clone(src: string, dst: string): void;
793
801
  }
794
802
  export interface FacetStartupOptions<
795
803
  T extends Rpc.DurableObjectBranded | undefined = undefined,
@@ -3855,6 +3863,28 @@ export interface EventSourceEventSourceInit {
3855
3863
  withCredentials?: boolean;
3856
3864
  fetcher?: Fetcher;
3857
3865
  }
3866
+ export interface ExecOutput {
3867
+ readonly stdout: ArrayBuffer;
3868
+ readonly stderr: ArrayBuffer;
3869
+ readonly exitCode: number;
3870
+ }
3871
+ export interface ContainerExecOptions {
3872
+ cwd?: string;
3873
+ env?: Record<string, string>;
3874
+ user?: string;
3875
+ stdin?: ReadableStream | "pipe";
3876
+ stdout?: "pipe" | "ignore";
3877
+ stderr?: "pipe" | "ignore" | "combined";
3878
+ }
3879
+ export interface ExecProcess {
3880
+ readonly stdin: WritableStream | null;
3881
+ readonly stdout: ReadableStream | null;
3882
+ readonly stderr: ReadableStream | null;
3883
+ readonly pid: number;
3884
+ readonly exitCode: Promise<number>;
3885
+ output(): Promise<ExecOutput>;
3886
+ kill(signal?: number): void;
3887
+ }
3858
3888
  export interface Container {
3859
3889
  get running(): boolean;
3860
3890
  start(options?: ContainerStartupOptions): void;
@@ -3872,6 +3902,7 @@ export interface Container {
3872
3902
  options: ContainerSnapshotOptions,
3873
3903
  ): Promise<ContainerSnapshot>;
3874
3904
  interceptOutboundHttps(addr: string, binding: Fetcher): Promise<void>;
3905
+ exec(cmd: string[], options?: ContainerExecOptions): Promise<ExecProcess>;
3875
3906
  }
3876
3907
  export interface ContainerDirectorySnapshot {
3877
3908
  id: string;
@@ -4066,11 +4097,62 @@ export interface Tracing {
4066
4097
  callback: (span: Span, ...args: A) => T,
4067
4098
  ...args: A
4068
4099
  ): T;
4100
+ startActiveSpan<T, A extends unknown[]>(
4101
+ name: string,
4102
+ callback: (span: Span, ...args: A) => T,
4103
+ ...args: A
4104
+ ): T;
4069
4105
  Span: typeof Span;
4070
4106
  }
4071
4107
  export declare abstract class Span {
4072
4108
  get isTraced(): boolean;
4073
4109
  setAttribute(key: string, value?: boolean | number | string): void;
4110
+ end(): void;
4111
+ }
4112
+ /**
4113
+ * Represents the identity of a user authenticated via Cloudflare Access.
4114
+ * This matches the result of calling /cdn-cgi/access/get-identity.
4115
+ *
4116
+ * The exact structure of the returned object depends on the identity provider
4117
+ * configuration for the Access application. The fields below represent commonly
4118
+ * available properties, but additional provider-specific fields may be present.
4119
+ */
4120
+ export interface CloudflareAccessIdentity extends Record<string, unknown> {
4121
+ /** The user's email address, if available from the identity provider. */
4122
+ email?: string;
4123
+ /** The user's display name. */
4124
+ name?: string;
4125
+ /** The user's unique identifier. */
4126
+ user_uuid?: string;
4127
+ /** The Cloudflare account ID. */
4128
+ account_id?: string;
4129
+ /** Login timestamp (Unix epoch seconds). */
4130
+ iat?: number;
4131
+ /** The user's IP address at authentication time. */
4132
+ ip?: string;
4133
+ /** Authentication methods used (e.g., "pwd"). */
4134
+ amr?: string[];
4135
+ /** Identity provider information. */
4136
+ idp?: {
4137
+ id: string;
4138
+ type: string;
4139
+ };
4140
+ /** Geographic information about where the user authenticated. */
4141
+ geo?: {
4142
+ country: string;
4143
+ };
4144
+ /** Group memberships from the identity provider. */
4145
+ groups?: Array<{
4146
+ id: string;
4147
+ name: string;
4148
+ email?: string;
4149
+ }>;
4150
+ /** Device posture check results, keyed by check ID. */
4151
+ devicePosture?: Record<string, unknown>;
4152
+ /** True if the user connected via Cloudflare WARP. */
4153
+ is_warp?: boolean;
4154
+ /** True if the user is authenticated via Cloudflare Gateway. */
4155
+ is_gateway?: boolean;
4074
4156
  }
4075
4157
  // ============================================================================
4076
4158
  // Agent Memory
@@ -12227,87 +12309,6 @@ export declare abstract class BrowserRun {
12227
12309
  options: BrowserRunMarkdownOptions,
12228
12310
  ): Promise<Response>;
12229
12311
  }
12230
- export interface BasicImageTransformations {
12231
- /**
12232
- * Maximum width in image pixels. The value must be an integer.
12233
- */
12234
- width?: number;
12235
- /**
12236
- * Maximum height in image pixels. The value must be an integer.
12237
- */
12238
- height?: number;
12239
- /**
12240
- * Resizing mode as a string. It affects interpretation of width and height
12241
- * options:
12242
- * - scale-down: Similar to contain, but the image is never enlarged. If
12243
- * the image is larger than given width or height, it will be resized.
12244
- * Otherwise its original size will be kept.
12245
- * - contain: Resizes to maximum size that fits within the given width and
12246
- * height. If only a single dimension is given (e.g. only width), the
12247
- * image will be shrunk or enlarged to exactly match that dimension.
12248
- * Aspect ratio is always preserved.
12249
- * - cover: Resizes (shrinks or enlarges) to fill the entire area of width
12250
- * and height. If the image has an aspect ratio different from the ratio
12251
- * of width and height, it will be cropped to fit.
12252
- * - crop: The image will be shrunk and cropped to fit within the area
12253
- * specified by width and height. The image will not be enlarged. For images
12254
- * smaller than the given dimensions it's the same as scale-down. For
12255
- * images larger than the given dimensions, it's the same as cover.
12256
- * See also trim.
12257
- * - pad: Resizes to the maximum size that fits within the given width and
12258
- * height, and then fills the remaining area with a background color
12259
- * (white by default). Use of this mode is not recommended, as the same
12260
- * effect can be more efficiently achieved with the contain mode and the
12261
- * CSS object-fit: contain property.
12262
- * - squeeze: Stretches and deforms to the width and height given, even if it
12263
- * breaks aspect ratio
12264
- */
12265
- fit?: "scale-down" | "contain" | "cover" | "crop" | "pad" | "squeeze";
12266
- /**
12267
- * Image segmentation using artificial intelligence models. Sets pixels not
12268
- * within selected segment area to transparent e.g "foreground" sets every
12269
- * background pixel as transparent.
12270
- */
12271
- segment?: "foreground";
12272
- /**
12273
- * When cropping with fit: "cover", this defines the side or point that should
12274
- * be left uncropped. The value is either a string
12275
- * "left", "right", "top", "bottom", "auto", or "center" (the default),
12276
- * or an object {x, y} containing focal point coordinates in the original
12277
- * image expressed as fractions ranging from 0.0 (top or left) to 1.0
12278
- * (bottom or right), 0.5 being the center. {fit: "cover", gravity: "top"} will
12279
- * crop bottom or left and right sides as necessary, but won’t crop anything
12280
- * from the top. {fit: "cover", gravity: {x:0.5, y:0.2}} will crop each side to
12281
- * preserve as much as possible around a point at 20% of the height of the
12282
- * source image.
12283
- */
12284
- gravity?:
12285
- | "face"
12286
- | "left"
12287
- | "right"
12288
- | "top"
12289
- | "bottom"
12290
- | "center"
12291
- | "auto"
12292
- | "entropy"
12293
- | BasicImageTransformationsGravityCoordinates;
12294
- /**
12295
- * Background color to add underneath the image. Applies only to images with
12296
- * transparency (such as PNG). Accepts any CSS color (#RRGGBB, rgba(…),
12297
- * hsl(…), etc.)
12298
- */
12299
- background?: string;
12300
- /**
12301
- * Number of degrees (90, 180, 270) to rotate the image by. width and height
12302
- * options refer to axes after rotation.
12303
- */
12304
- rotate?: 0 | 90 | 180 | 270 | 360;
12305
- }
12306
- export interface BasicImageTransformationsGravityCoordinates {
12307
- x?: number;
12308
- y?: number;
12309
- mode?: "remainder" | "box-center";
12310
- }
12311
12312
  /**
12312
12313
  * In addition to the properties you can set in the RequestInit dict
12313
12314
  * that you pass as an argument to the Request constructor, you can
@@ -12383,6 +12384,17 @@ export interface RequestInitCfProperties extends Record<string, unknown> {
12383
12384
  cacheReserveMinimumFileSize?: number;
12384
12385
  scrapeShield?: boolean;
12385
12386
  apps?: boolean;
12387
+ /**
12388
+ * Controls whether an outbound gRPC-web subrequest from this Worker is
12389
+ * converted to gRPC at the Cloudflare edge.
12390
+ *
12391
+ * - `"passthrough"`: forward the subrequest unchanged as gRPC-web (default).
12392
+ * - `"convert"`: convert the gRPC-web subrequest to gRPC at the edge.
12393
+ *
12394
+ * Provides per-request control over the same edge conversion behavior
12395
+ * gated by the `auto_grpc_convert` compatibility flag.
12396
+ */
12397
+ grpcWeb?: "passthrough" | "convert";
12386
12398
  image?: RequestInitCfPropertiesImage;
12387
12399
  minify?: RequestInitCfPropertiesImageMinify;
12388
12400
  mirage?: boolean;
@@ -12403,6 +12415,209 @@ export interface RequestInitCfProperties extends Record<string, unknown> {
12403
12415
  */
12404
12416
  resolveOverride?: string;
12405
12417
  }
12418
+ export interface BasicImageTransformations {
12419
+ /**
12420
+ * Maximum width in image pixels. The value must be an integer.
12421
+ */
12422
+ width?: number;
12423
+ /**
12424
+ * Maximum height in image pixels. The value must be an integer.
12425
+ */
12426
+ height?: number;
12427
+ /**
12428
+ * When cropping with fit: "cover", this defines the side or point that should
12429
+ * be left uncropped. The value is either a string
12430
+ * "left", "right", "top", "bottom", "auto", or "center" (the default),
12431
+ * or an object {x, y} containing focal point coordinates in the original
12432
+ * image expressed as fractions ranging from 0.0 (top or left) to 1.0
12433
+ * (bottom or right), 0.5 being the center. {fit: "cover", gravity: "top"} will
12434
+ * crop bottom or left and right sides as necessary, but won’t crop anything
12435
+ * from the top. {fit: "cover", gravity: {x:0.5, y:0.2}} will crop each side to
12436
+ * preserve as much as possible around a point at 20% of the height of the
12437
+ * source image.
12438
+ */
12439
+ gravity?:
12440
+ | "face"
12441
+ | "left"
12442
+ | "right"
12443
+ | "top"
12444
+ | "bottom"
12445
+ | "center"
12446
+ | "auto"
12447
+ | "entropy"
12448
+ | BasicImageTransformationsGravityCoordinates;
12449
+ /**
12450
+ * Specifies how closely the image is cropped toward detected faces when combined
12451
+ * with the gravity=face option. Accepts a valid range between 0.0 (includes as much
12452
+ * of the background as possible) and 1.0 (crops the image as closely to the face as
12453
+ * possible). The default is 0.
12454
+ */
12455
+ zoom?: number;
12456
+ /**
12457
+ * Resizing mode as a string. It affects interpretation of width and height
12458
+ * options:
12459
+ * - scale-down: Similar to contain, but the image is never enlarged. If
12460
+ * the image is larger than given width or height, it will be resized.
12461
+ * Otherwise its original size will be kept.
12462
+ * - scale-up: Similar to contain, but the image is never shrunk. If the
12463
+ * image is smaller than the given width or height, it will be resized.
12464
+ * Otherwise its original size will be kept.
12465
+ * - contain: Resizes to maximum size that fits within the given width and
12466
+ * height. If only a single dimension is given (e.g. only width), the
12467
+ * image will be shrunk or enlarged to exactly match that dimension.
12468
+ * Aspect ratio is always preserved.
12469
+ * - cover: Resizes (shrinks or enlarges) to fill the entire area of width
12470
+ * and height. If the image has an aspect ratio different from the ratio
12471
+ * of width and height, it will be cropped to fit.
12472
+ * - crop: The image will be shrunk and cropped to fit within the area
12473
+ * specified by width and height. The image will not be enlarged. For images
12474
+ * smaller than the given dimensions it's the same as scale-down. For
12475
+ * images larger than the given dimensions, it's the same as cover.
12476
+ * See also trim.
12477
+ * - pad: Resizes to the maximum size that fits within the given width and
12478
+ * height, and then fills the remaining area with a background color
12479
+ * (white by default). Use of this mode is not recommended, as the same
12480
+ * effect can be more efficiently achieved with the contain mode and the
12481
+ * CSS object-fit: contain property.
12482
+ * - squeeze: Stretches and deforms to the width and height given, even if it
12483
+ * breaks aspect ratio
12484
+ */
12485
+ fit?:
12486
+ | "scale-down"
12487
+ | "scale-up"
12488
+ | "contain"
12489
+ | "cover"
12490
+ | "crop"
12491
+ | "pad"
12492
+ | "squeeze";
12493
+ /**
12494
+ * Allows you to trim your image. Takes dpr into account and is performed before
12495
+ * resizing or rotation.
12496
+ *
12497
+ * It can be used as:
12498
+ * - left, top, right, bottom - it will specify the number of pixels to cut
12499
+ * off each side
12500
+ * - width, height - the width/height you'd like to end up with - can be used
12501
+ * in combination with the properties above
12502
+ * - border - this will automatically trim the surroundings of an image based on
12503
+ * it's color. It consists of three properties:
12504
+ * - color: rgb or hex representation of the color you wish to trim (todo: verify the rgba bit)
12505
+ * - tolerance: difference from color to treat as color
12506
+ * - keep: the number of pixels of border to keep
12507
+ */
12508
+ trim?:
12509
+ | "border"
12510
+ | {
12511
+ top?: number;
12512
+ bottom?: number;
12513
+ left?: number;
12514
+ right?: number;
12515
+ width?: number;
12516
+ height?: number;
12517
+ border?:
12518
+ | boolean
12519
+ | {
12520
+ color?: string;
12521
+ tolerance?: number;
12522
+ keep?: number;
12523
+ };
12524
+ };
12525
+ /**
12526
+ * Background color to add underneath the image. Applies only to images with
12527
+ * transparency (such as PNG). Accepts any CSS color (#RRGGBB, rgba(…),
12528
+ * hsl(…), etc.)
12529
+ */
12530
+ background?: string;
12531
+ /**
12532
+ * Flips the images horizontally, vertically, or both. Flipping is applied before
12533
+ * rotation, so if you apply flip=h,rotate=90 then the image will be flipped
12534
+ * horizontally, then rotated by 90 degrees.
12535
+ */
12536
+ flip?: "h" | "v" | "hv";
12537
+ /**
12538
+ * Number of degrees (90, 180, 270) to rotate the image by. width and height
12539
+ * options refer to axes after rotation.
12540
+ */
12541
+ rotate?: 0 | 90 | 180 | 270 | 360;
12542
+ /**
12543
+ * Strength of sharpening filter to apply to the image. Floating-point
12544
+ * number between 0 (no sharpening, default) and 10 (maximum). 1.0 is a
12545
+ * recommended value for downscaled images.
12546
+ */
12547
+ sharpen?: number;
12548
+ /**
12549
+ * Radius of a blur filter (approximate gaussian). Maximum supported radius
12550
+ * is 250.
12551
+ */
12552
+ blur?: number;
12553
+ /**
12554
+ * Increase contrast by a factor. A value of 1.0 equals no change, a value of
12555
+ * 0.5 equals low contrast, and a value of 2.0 equals high contrast. 0 is
12556
+ * ignored.
12557
+ */
12558
+ contrast?: number;
12559
+ /**
12560
+ * Increase brightness by a factor. A value of 1.0 equals no change, a value
12561
+ * of 0.5 equals half brightness, and a value of 2.0 equals twice as bright.
12562
+ * 0 is ignored.
12563
+ */
12564
+ brightness?: number;
12565
+ /**
12566
+ * Increase exposure by a factor. A value of 1.0 equals no change, a value of
12567
+ * 0.5 darkens the image, and a value of 2.0 lightens the image. 0 is ignored.
12568
+ */
12569
+ gamma?: number;
12570
+ /**
12571
+ * Increase contrast by a factor. A value of 1.0 equals no change, a value of
12572
+ * 0.5 equals low contrast, and a value of 2.0 equals high contrast. 0 is
12573
+ * ignored.
12574
+ */
12575
+ saturation?: number;
12576
+ /**
12577
+ * Device Pixel Ratio. Default 1. Multiplier for width/height that makes it
12578
+ * easier to specify higher-DPI sizes in <img srcset>.
12579
+ */
12580
+ dpr?: number;
12581
+ /**
12582
+ * Adds a border around the image. The border is added after resizing. Border
12583
+ * width takes dpr into account, and can be specified either using a single
12584
+ * width property, or individually for each side.
12585
+ */
12586
+ border?:
12587
+ | {
12588
+ color: string;
12589
+ width: number;
12590
+ }
12591
+ | {
12592
+ color: string;
12593
+ top: number;
12594
+ right: number;
12595
+ bottom: number;
12596
+ left: number;
12597
+ };
12598
+ /**
12599
+ * Image segmentation using artificial intelligence models. Sets pixels not
12600
+ * within selected segment area to transparent e.g "foreground" sets every
12601
+ * background pixel as transparent.
12602
+ */
12603
+ segment?: "foreground";
12604
+ /**
12605
+ * Controls the algorithm used when an image needs to be enlarged. This
12606
+ * parameter works with any fit mode that upscales, such as `contain`,
12607
+ * `cover`, and `scale-up`. It has no effect when `fit=scale-down` or when
12608
+ * the target dimensions are smaller than the source.
12609
+ * - interpolate: Uses bicubic interpolation, which may reduce image quality.
12610
+ * This is the default behavior when `upscale` is not specified.
12611
+ * - generate: Uses AI upscaling to produce sharper, more detailed results
12612
+ * when enlarging images.
12613
+ */
12614
+ upscale?: "interpolate" | "generate";
12615
+ }
12616
+ export interface BasicImageTransformationsGravityCoordinates {
12617
+ x?: number;
12618
+ y?: number;
12619
+ mode?: "remainder" | "box-center";
12620
+ }
12406
12621
  export interface RequestInitCfPropertiesImageDraw extends BasicImageTransformations {
12407
12622
  /**
12408
12623
  * Absolute URL of the image file to use for the drawing. It can be any of
@@ -12456,43 +12671,6 @@ export interface RequestInitCfPropertiesImageDraw extends BasicImageTransformati
12456
12671
  right?: number;
12457
12672
  }
12458
12673
  export interface RequestInitCfPropertiesImage extends BasicImageTransformations {
12459
- /**
12460
- * Device Pixel Ratio. Default 1. Multiplier for width/height that makes it
12461
- * easier to specify higher-DPI sizes in <img srcset>.
12462
- */
12463
- dpr?: number;
12464
- /**
12465
- * Allows you to trim your image. Takes dpr into account and is performed before
12466
- * resizing or rotation.
12467
- *
12468
- * It can be used as:
12469
- * - left, top, right, bottom - it will specify the number of pixels to cut
12470
- * off each side
12471
- * - width, height - the width/height you'd like to end up with - can be used
12472
- * in combination with the properties above
12473
- * - border - this will automatically trim the surroundings of an image based on
12474
- * it's color. It consists of three properties:
12475
- * - color: rgb or hex representation of the color you wish to trim (todo: verify the rgba bit)
12476
- * - tolerance: difference from color to treat as color
12477
- * - keep: the number of pixels of border to keep
12478
- */
12479
- trim?:
12480
- | "border"
12481
- | {
12482
- top?: number;
12483
- bottom?: number;
12484
- left?: number;
12485
- right?: number;
12486
- width?: number;
12487
- height?: number;
12488
- border?:
12489
- | boolean
12490
- | {
12491
- color?: string;
12492
- tolerance?: number;
12493
- keep?: number;
12494
- };
12495
- };
12496
12674
  /**
12497
12675
  * Quality setting from 1-100 (useful values are in 60-90 range). Lower values
12498
12676
  * make images look worse, but load faster. The default is 85. It applies only
@@ -12542,17 +12720,6 @@ export interface RequestInitCfPropertiesImage extends BasicImageTransformations
12542
12720
  * output formats always discard metadata.
12543
12721
  */
12544
12722
  metadata?: "keep" | "copyright" | "none";
12545
- /**
12546
- * Strength of sharpening filter to apply to the image. Floating-point
12547
- * number between 0 (no sharpening, default) and 10 (maximum). 1.0 is a
12548
- * recommended value for downscaled images.
12549
- */
12550
- sharpen?: number;
12551
- /**
12552
- * Radius of a blur filter (approximate gaussian). Maximum supported radius
12553
- * is 250.
12554
- */
12555
- blur?: number;
12556
12723
  /**
12557
12724
  * Overlays are drawn in the order they appear in the array (last array
12558
12725
  * entry is the topmost layer).
@@ -12564,52 +12731,6 @@ export interface RequestInitCfPropertiesImage extends BasicImageTransformations
12564
12731
  * the origin.
12565
12732
  */
12566
12733
  "origin-auth"?: "share-publicly";
12567
- /**
12568
- * Adds a border around the image. The border is added after resizing. Border
12569
- * width takes dpr into account, and can be specified either using a single
12570
- * width property, or individually for each side.
12571
- */
12572
- border?:
12573
- | {
12574
- color: string;
12575
- width: number;
12576
- }
12577
- | {
12578
- color: string;
12579
- top: number;
12580
- right: number;
12581
- bottom: number;
12582
- left: number;
12583
- };
12584
- /**
12585
- * Increase brightness by a factor. A value of 1.0 equals no change, a value
12586
- * of 0.5 equals half brightness, and a value of 2.0 equals twice as bright.
12587
- * 0 is ignored.
12588
- */
12589
- brightness?: number;
12590
- /**
12591
- * Increase contrast by a factor. A value of 1.0 equals no change, a value of
12592
- * 0.5 equals low contrast, and a value of 2.0 equals high contrast. 0 is
12593
- * ignored.
12594
- */
12595
- contrast?: number;
12596
- /**
12597
- * Increase exposure by a factor. A value of 1.0 equals no change, a value of
12598
- * 0.5 darkens the image, and a value of 2.0 lightens the image. 0 is ignored.
12599
- */
12600
- gamma?: number;
12601
- /**
12602
- * Increase contrast by a factor. A value of 1.0 equals no change, a value of
12603
- * 0.5 equals low contrast, and a value of 2.0 equals high contrast. 0 is
12604
- * ignored.
12605
- */
12606
- saturation?: number;
12607
- /**
12608
- * Flips the images horizontally, vertically, or both. Flipping is applied before
12609
- * rotation, so if you apply flip=h,rotate=90 then the image will be flipped
12610
- * horizontally, then rotated by 90 degrees.
12611
- */
12612
- flip?: "h" | "v" | "hv";
12613
12734
  /**
12614
12735
  * Slightly reduces latency on a cache miss by selecting a
12615
12736
  * quickest-to-compress file format, at a cost of increased file size and
@@ -14508,6 +14629,10 @@ export declare namespace CloudflareWorkersModule {
14508
14629
  timeout?: WorkflowTimeoutDuration | number;
14509
14630
  sensitive?: WorkflowStepSensitivity;
14510
14631
  };
14632
+ export type WorkflowStepRollbackConfig = Pick<
14633
+ WorkflowStepConfig,
14634
+ "retries" | "timeout"
14635
+ >;
14511
14636
  export type WorkflowCronSchedule = {
14512
14637
  /** Cron expression that triggered this event. */
14513
14638
  cron: string;
@@ -14536,16 +14661,18 @@ export declare namespace CloudflareWorkersModule {
14536
14661
  config: WorkflowStepConfig;
14537
14662
  };
14538
14663
  export type WorkflowRollbackContext<T = unknown> = {
14664
+ ctx: WorkflowStepContext;
14539
14665
  error: Error;
14540
14666
  output: T | undefined;
14667
+ /** @deprecated Use `ctx.step.name` and `ctx.step.count` instead. */
14541
14668
  stepName: string;
14542
14669
  };
14543
14670
  export type WorkflowRollbackHandler<T = unknown> = (
14544
14671
  ctx: WorkflowRollbackContext<T>,
14545
14672
  ) => Promise<void>;
14546
14673
  export type WorkflowStepRollbackOptions<T = unknown> = {
14547
- rollback?: WorkflowRollbackHandler<T>;
14548
- rollbackConfig?: WorkflowStepConfig;
14674
+ rollback: WorkflowRollbackHandler<T>;
14675
+ rollbackConfig?: WorkflowStepRollbackConfig;
14549
14676
  };
14550
14677
  export abstract class WorkflowStep {
14551
14678
  do<T extends Rpc.Serializable<T>>(
@@ -15504,7 +15631,8 @@ export declare namespace TailStream {
15504
15631
  | "loadShed"
15505
15632
  | "responseStreamDisconnected"
15506
15633
  | "scriptNotFound"
15507
- | "internalError";
15634
+ | "internalError"
15635
+ | "exceededWallTime";
15508
15636
  interface ScriptVersion {
15509
15637
  readonly id: string;
15510
15638
  readonly tag?: string;