@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,
@@ -3836,6 +3844,28 @@ export interface EventSourceEventSourceInit {
3836
3844
  withCredentials?: boolean;
3837
3845
  fetcher?: Fetcher;
3838
3846
  }
3847
+ export interface ExecOutput {
3848
+ readonly stdout: ArrayBuffer;
3849
+ readonly stderr: ArrayBuffer;
3850
+ readonly exitCode: number;
3851
+ }
3852
+ export interface ContainerExecOptions {
3853
+ cwd?: string;
3854
+ env?: Record<string, string>;
3855
+ user?: string;
3856
+ stdin?: ReadableStream | "pipe";
3857
+ stdout?: "pipe" | "ignore";
3858
+ stderr?: "pipe" | "ignore" | "combined";
3859
+ }
3860
+ export interface ExecProcess {
3861
+ readonly stdin: WritableStream | null;
3862
+ readonly stdout: ReadableStream | null;
3863
+ readonly stderr: ReadableStream | null;
3864
+ readonly pid: number;
3865
+ readonly exitCode: Promise<number>;
3866
+ output(): Promise<ExecOutput>;
3867
+ kill(signal?: number): void;
3868
+ }
3839
3869
  export interface Container {
3840
3870
  get running(): boolean;
3841
3871
  start(options?: ContainerStartupOptions): void;
@@ -3853,6 +3883,7 @@ export interface Container {
3853
3883
  options: ContainerSnapshotOptions,
3854
3884
  ): Promise<ContainerSnapshot>;
3855
3885
  interceptOutboundHttps(addr: string, binding: Fetcher): Promise<void>;
3886
+ exec(cmd: string[], options?: ContainerExecOptions): Promise<ExecProcess>;
3856
3887
  }
3857
3888
  export interface ContainerDirectorySnapshot {
3858
3889
  id: string;
@@ -4027,11 +4058,62 @@ export interface Tracing {
4027
4058
  callback: (span: Span, ...args: A) => T,
4028
4059
  ...args: A
4029
4060
  ): T;
4061
+ startActiveSpan<T, A extends unknown[]>(
4062
+ name: string,
4063
+ callback: (span: Span, ...args: A) => T,
4064
+ ...args: A
4065
+ ): T;
4030
4066
  Span: typeof Span;
4031
4067
  }
4032
4068
  export declare abstract class Span {
4033
4069
  get isTraced(): boolean;
4034
4070
  setAttribute(key: string, value?: boolean | number | string): void;
4071
+ end(): void;
4072
+ }
4073
+ /**
4074
+ * Represents the identity of a user authenticated via Cloudflare Access.
4075
+ * This matches the result of calling /cdn-cgi/access/get-identity.
4076
+ *
4077
+ * The exact structure of the returned object depends on the identity provider
4078
+ * configuration for the Access application. The fields below represent commonly
4079
+ * available properties, but additional provider-specific fields may be present.
4080
+ */
4081
+ export interface CloudflareAccessIdentity extends Record<string, unknown> {
4082
+ /** The user's email address, if available from the identity provider. */
4083
+ email?: string;
4084
+ /** The user's display name. */
4085
+ name?: string;
4086
+ /** The user's unique identifier. */
4087
+ user_uuid?: string;
4088
+ /** The Cloudflare account ID. */
4089
+ account_id?: string;
4090
+ /** Login timestamp (Unix epoch seconds). */
4091
+ iat?: number;
4092
+ /** The user's IP address at authentication time. */
4093
+ ip?: string;
4094
+ /** Authentication methods used (e.g., "pwd"). */
4095
+ amr?: string[];
4096
+ /** Identity provider information. */
4097
+ idp?: {
4098
+ id: string;
4099
+ type: string;
4100
+ };
4101
+ /** Geographic information about where the user authenticated. */
4102
+ geo?: {
4103
+ country: string;
4104
+ };
4105
+ /** Group memberships from the identity provider. */
4106
+ groups?: Array<{
4107
+ id: string;
4108
+ name: string;
4109
+ email?: string;
4110
+ }>;
4111
+ /** Device posture check results, keyed by check ID. */
4112
+ devicePosture?: Record<string, unknown>;
4113
+ /** True if the user connected via Cloudflare WARP. */
4114
+ is_warp?: boolean;
4115
+ /** True if the user is authenticated via Cloudflare Gateway. */
4116
+ is_gateway?: boolean;
4035
4117
  }
4036
4118
  // ============================================================================
4037
4119
  // Agent Memory
@@ -12188,87 +12270,6 @@ export declare abstract class BrowserRun {
12188
12270
  options: BrowserRunMarkdownOptions,
12189
12271
  ): Promise<Response>;
12190
12272
  }
12191
- export interface BasicImageTransformations {
12192
- /**
12193
- * Maximum width in image pixels. The value must be an integer.
12194
- */
12195
- width?: number;
12196
- /**
12197
- * Maximum height in image pixels. The value must be an integer.
12198
- */
12199
- height?: number;
12200
- /**
12201
- * Resizing mode as a string. It affects interpretation of width and height
12202
- * options:
12203
- * - scale-down: Similar to contain, but the image is never enlarged. If
12204
- * the image is larger than given width or height, it will be resized.
12205
- * Otherwise its original size will be kept.
12206
- * - contain: Resizes to maximum size that fits within the given width and
12207
- * height. If only a single dimension is given (e.g. only width), the
12208
- * image will be shrunk or enlarged to exactly match that dimension.
12209
- * Aspect ratio is always preserved.
12210
- * - cover: Resizes (shrinks or enlarges) to fill the entire area of width
12211
- * and height. If the image has an aspect ratio different from the ratio
12212
- * of width and height, it will be cropped to fit.
12213
- * - crop: The image will be shrunk and cropped to fit within the area
12214
- * specified by width and height. The image will not be enlarged. For images
12215
- * smaller than the given dimensions it's the same as scale-down. For
12216
- * images larger than the given dimensions, it's the same as cover.
12217
- * See also trim.
12218
- * - pad: Resizes to the maximum size that fits within the given width and
12219
- * height, and then fills the remaining area with a background color
12220
- * (white by default). Use of this mode is not recommended, as the same
12221
- * effect can be more efficiently achieved with the contain mode and the
12222
- * CSS object-fit: contain property.
12223
- * - squeeze: Stretches and deforms to the width and height given, even if it
12224
- * breaks aspect ratio
12225
- */
12226
- fit?: "scale-down" | "contain" | "cover" | "crop" | "pad" | "squeeze";
12227
- /**
12228
- * Image segmentation using artificial intelligence models. Sets pixels not
12229
- * within selected segment area to transparent e.g "foreground" sets every
12230
- * background pixel as transparent.
12231
- */
12232
- segment?: "foreground";
12233
- /**
12234
- * When cropping with fit: "cover", this defines the side or point that should
12235
- * be left uncropped. The value is either a string
12236
- * "left", "right", "top", "bottom", "auto", or "center" (the default),
12237
- * or an object {x, y} containing focal point coordinates in the original
12238
- * image expressed as fractions ranging from 0.0 (top or left) to 1.0
12239
- * (bottom or right), 0.5 being the center. {fit: "cover", gravity: "top"} will
12240
- * crop bottom or left and right sides as necessary, but won’t crop anything
12241
- * from the top. {fit: "cover", gravity: {x:0.5, y:0.2}} will crop each side to
12242
- * preserve as much as possible around a point at 20% of the height of the
12243
- * source image.
12244
- */
12245
- gravity?:
12246
- | "face"
12247
- | "left"
12248
- | "right"
12249
- | "top"
12250
- | "bottom"
12251
- | "center"
12252
- | "auto"
12253
- | "entropy"
12254
- | BasicImageTransformationsGravityCoordinates;
12255
- /**
12256
- * Background color to add underneath the image. Applies only to images with
12257
- * transparency (such as PNG). Accepts any CSS color (#RRGGBB, rgba(…),
12258
- * hsl(…), etc.)
12259
- */
12260
- background?: string;
12261
- /**
12262
- * Number of degrees (90, 180, 270) to rotate the image by. width and height
12263
- * options refer to axes after rotation.
12264
- */
12265
- rotate?: 0 | 90 | 180 | 270 | 360;
12266
- }
12267
- export interface BasicImageTransformationsGravityCoordinates {
12268
- x?: number;
12269
- y?: number;
12270
- mode?: "remainder" | "box-center";
12271
- }
12272
12273
  /**
12273
12274
  * In addition to the properties you can set in the RequestInit dict
12274
12275
  * that you pass as an argument to the Request constructor, you can
@@ -12344,6 +12345,17 @@ export interface RequestInitCfProperties extends Record<string, unknown> {
12344
12345
  cacheReserveMinimumFileSize?: number;
12345
12346
  scrapeShield?: boolean;
12346
12347
  apps?: boolean;
12348
+ /**
12349
+ * Controls whether an outbound gRPC-web subrequest from this Worker is
12350
+ * converted to gRPC at the Cloudflare edge.
12351
+ *
12352
+ * - `"passthrough"`: forward the subrequest unchanged as gRPC-web (default).
12353
+ * - `"convert"`: convert the gRPC-web subrequest to gRPC at the edge.
12354
+ *
12355
+ * Provides per-request control over the same edge conversion behavior
12356
+ * gated by the `auto_grpc_convert` compatibility flag.
12357
+ */
12358
+ grpcWeb?: "passthrough" | "convert";
12347
12359
  image?: RequestInitCfPropertiesImage;
12348
12360
  minify?: RequestInitCfPropertiesImageMinify;
12349
12361
  mirage?: boolean;
@@ -12364,6 +12376,209 @@ export interface RequestInitCfProperties extends Record<string, unknown> {
12364
12376
  */
12365
12377
  resolveOverride?: string;
12366
12378
  }
12379
+ export interface BasicImageTransformations {
12380
+ /**
12381
+ * Maximum width in image pixels. The value must be an integer.
12382
+ */
12383
+ width?: number;
12384
+ /**
12385
+ * Maximum height in image pixels. The value must be an integer.
12386
+ */
12387
+ height?: number;
12388
+ /**
12389
+ * When cropping with fit: "cover", this defines the side or point that should
12390
+ * be left uncropped. The value is either a string
12391
+ * "left", "right", "top", "bottom", "auto", or "center" (the default),
12392
+ * or an object {x, y} containing focal point coordinates in the original
12393
+ * image expressed as fractions ranging from 0.0 (top or left) to 1.0
12394
+ * (bottom or right), 0.5 being the center. {fit: "cover", gravity: "top"} will
12395
+ * crop bottom or left and right sides as necessary, but won’t crop anything
12396
+ * from the top. {fit: "cover", gravity: {x:0.5, y:0.2}} will crop each side to
12397
+ * preserve as much as possible around a point at 20% of the height of the
12398
+ * source image.
12399
+ */
12400
+ gravity?:
12401
+ | "face"
12402
+ | "left"
12403
+ | "right"
12404
+ | "top"
12405
+ | "bottom"
12406
+ | "center"
12407
+ | "auto"
12408
+ | "entropy"
12409
+ | BasicImageTransformationsGravityCoordinates;
12410
+ /**
12411
+ * Specifies how closely the image is cropped toward detected faces when combined
12412
+ * with the gravity=face option. Accepts a valid range between 0.0 (includes as much
12413
+ * of the background as possible) and 1.0 (crops the image as closely to the face as
12414
+ * possible). The default is 0.
12415
+ */
12416
+ zoom?: number;
12417
+ /**
12418
+ * Resizing mode as a string. It affects interpretation of width and height
12419
+ * options:
12420
+ * - scale-down: Similar to contain, but the image is never enlarged. If
12421
+ * the image is larger than given width or height, it will be resized.
12422
+ * Otherwise its original size will be kept.
12423
+ * - scale-up: Similar to contain, but the image is never shrunk. If the
12424
+ * image is smaller than the given width or height, it will be resized.
12425
+ * Otherwise its original size will be kept.
12426
+ * - contain: Resizes to maximum size that fits within the given width and
12427
+ * height. If only a single dimension is given (e.g. only width), the
12428
+ * image will be shrunk or enlarged to exactly match that dimension.
12429
+ * Aspect ratio is always preserved.
12430
+ * - cover: Resizes (shrinks or enlarges) to fill the entire area of width
12431
+ * and height. If the image has an aspect ratio different from the ratio
12432
+ * of width and height, it will be cropped to fit.
12433
+ * - crop: The image will be shrunk and cropped to fit within the area
12434
+ * specified by width and height. The image will not be enlarged. For images
12435
+ * smaller than the given dimensions it's the same as scale-down. For
12436
+ * images larger than the given dimensions, it's the same as cover.
12437
+ * See also trim.
12438
+ * - pad: Resizes to the maximum size that fits within the given width and
12439
+ * height, and then fills the remaining area with a background color
12440
+ * (white by default). Use of this mode is not recommended, as the same
12441
+ * effect can be more efficiently achieved with the contain mode and the
12442
+ * CSS object-fit: contain property.
12443
+ * - squeeze: Stretches and deforms to the width and height given, even if it
12444
+ * breaks aspect ratio
12445
+ */
12446
+ fit?:
12447
+ | "scale-down"
12448
+ | "scale-up"
12449
+ | "contain"
12450
+ | "cover"
12451
+ | "crop"
12452
+ | "pad"
12453
+ | "squeeze";
12454
+ /**
12455
+ * Allows you to trim your image. Takes dpr into account and is performed before
12456
+ * resizing or rotation.
12457
+ *
12458
+ * It can be used as:
12459
+ * - left, top, right, bottom - it will specify the number of pixels to cut
12460
+ * off each side
12461
+ * - width, height - the width/height you'd like to end up with - can be used
12462
+ * in combination with the properties above
12463
+ * - border - this will automatically trim the surroundings of an image based on
12464
+ * it's color. It consists of three properties:
12465
+ * - color: rgb or hex representation of the color you wish to trim (todo: verify the rgba bit)
12466
+ * - tolerance: difference from color to treat as color
12467
+ * - keep: the number of pixels of border to keep
12468
+ */
12469
+ trim?:
12470
+ | "border"
12471
+ | {
12472
+ top?: number;
12473
+ bottom?: number;
12474
+ left?: number;
12475
+ right?: number;
12476
+ width?: number;
12477
+ height?: number;
12478
+ border?:
12479
+ | boolean
12480
+ | {
12481
+ color?: string;
12482
+ tolerance?: number;
12483
+ keep?: number;
12484
+ };
12485
+ };
12486
+ /**
12487
+ * Background color to add underneath the image. Applies only to images with
12488
+ * transparency (such as PNG). Accepts any CSS color (#RRGGBB, rgba(…),
12489
+ * hsl(…), etc.)
12490
+ */
12491
+ background?: string;
12492
+ /**
12493
+ * Flips the images horizontally, vertically, or both. Flipping is applied before
12494
+ * rotation, so if you apply flip=h,rotate=90 then the image will be flipped
12495
+ * horizontally, then rotated by 90 degrees.
12496
+ */
12497
+ flip?: "h" | "v" | "hv";
12498
+ /**
12499
+ * Number of degrees (90, 180, 270) to rotate the image by. width and height
12500
+ * options refer to axes after rotation.
12501
+ */
12502
+ rotate?: 0 | 90 | 180 | 270 | 360;
12503
+ /**
12504
+ * Strength of sharpening filter to apply to the image. Floating-point
12505
+ * number between 0 (no sharpening, default) and 10 (maximum). 1.0 is a
12506
+ * recommended value for downscaled images.
12507
+ */
12508
+ sharpen?: number;
12509
+ /**
12510
+ * Radius of a blur filter (approximate gaussian). Maximum supported radius
12511
+ * is 250.
12512
+ */
12513
+ blur?: number;
12514
+ /**
12515
+ * Increase contrast by a factor. A value of 1.0 equals no change, a value of
12516
+ * 0.5 equals low contrast, and a value of 2.0 equals high contrast. 0 is
12517
+ * ignored.
12518
+ */
12519
+ contrast?: number;
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 exposure by a factor. A value of 1.0 equals no change, a value of
12528
+ * 0.5 darkens the image, and a value of 2.0 lightens the image. 0 is ignored.
12529
+ */
12530
+ gamma?: number;
12531
+ /**
12532
+ * Increase contrast by a factor. A value of 1.0 equals no change, a value of
12533
+ * 0.5 equals low contrast, and a value of 2.0 equals high contrast. 0 is
12534
+ * ignored.
12535
+ */
12536
+ saturation?: number;
12537
+ /**
12538
+ * Device Pixel Ratio. Default 1. Multiplier for width/height that makes it
12539
+ * easier to specify higher-DPI sizes in <img srcset>.
12540
+ */
12541
+ dpr?: number;
12542
+ /**
12543
+ * Adds a border around the image. The border is added after resizing. Border
12544
+ * width takes dpr into account, and can be specified either using a single
12545
+ * width property, or individually for each side.
12546
+ */
12547
+ border?:
12548
+ | {
12549
+ color: string;
12550
+ width: number;
12551
+ }
12552
+ | {
12553
+ color: string;
12554
+ top: number;
12555
+ right: number;
12556
+ bottom: number;
12557
+ left: number;
12558
+ };
12559
+ /**
12560
+ * Image segmentation using artificial intelligence models. Sets pixels not
12561
+ * within selected segment area to transparent e.g "foreground" sets every
12562
+ * background pixel as transparent.
12563
+ */
12564
+ segment?: "foreground";
12565
+ /**
12566
+ * Controls the algorithm used when an image needs to be enlarged. This
12567
+ * parameter works with any fit mode that upscales, such as `contain`,
12568
+ * `cover`, and `scale-up`. It has no effect when `fit=scale-down` or when
12569
+ * the target dimensions are smaller than the source.
12570
+ * - interpolate: Uses bicubic interpolation, which may reduce image quality.
12571
+ * This is the default behavior when `upscale` is not specified.
12572
+ * - generate: Uses AI upscaling to produce sharper, more detailed results
12573
+ * when enlarging images.
12574
+ */
12575
+ upscale?: "interpolate" | "generate";
12576
+ }
12577
+ export interface BasicImageTransformationsGravityCoordinates {
12578
+ x?: number;
12579
+ y?: number;
12580
+ mode?: "remainder" | "box-center";
12581
+ }
12367
12582
  export interface RequestInitCfPropertiesImageDraw extends BasicImageTransformations {
12368
12583
  /**
12369
12584
  * Absolute URL of the image file to use for the drawing. It can be any of
@@ -12417,43 +12632,6 @@ export interface RequestInitCfPropertiesImageDraw extends BasicImageTransformati
12417
12632
  right?: number;
12418
12633
  }
12419
12634
  export interface RequestInitCfPropertiesImage extends BasicImageTransformations {
12420
- /**
12421
- * Device Pixel Ratio. Default 1. Multiplier for width/height that makes it
12422
- * easier to specify higher-DPI sizes in <img srcset>.
12423
- */
12424
- dpr?: number;
12425
- /**
12426
- * Allows you to trim your image. Takes dpr into account and is performed before
12427
- * resizing or rotation.
12428
- *
12429
- * It can be used as:
12430
- * - left, top, right, bottom - it will specify the number of pixels to cut
12431
- * off each side
12432
- * - width, height - the width/height you'd like to end up with - can be used
12433
- * in combination with the properties above
12434
- * - border - this will automatically trim the surroundings of an image based on
12435
- * it's color. It consists of three properties:
12436
- * - color: rgb or hex representation of the color you wish to trim (todo: verify the rgba bit)
12437
- * - tolerance: difference from color to treat as color
12438
- * - keep: the number of pixels of border to keep
12439
- */
12440
- trim?:
12441
- | "border"
12442
- | {
12443
- top?: number;
12444
- bottom?: number;
12445
- left?: number;
12446
- right?: number;
12447
- width?: number;
12448
- height?: number;
12449
- border?:
12450
- | boolean
12451
- | {
12452
- color?: string;
12453
- tolerance?: number;
12454
- keep?: number;
12455
- };
12456
- };
12457
12635
  /**
12458
12636
  * Quality setting from 1-100 (useful values are in 60-90 range). Lower values
12459
12637
  * make images look worse, but load faster. The default is 85. It applies only
@@ -12503,17 +12681,6 @@ export interface RequestInitCfPropertiesImage extends BasicImageTransformations
12503
12681
  * output formats always discard metadata.
12504
12682
  */
12505
12683
  metadata?: "keep" | "copyright" | "none";
12506
- /**
12507
- * Strength of sharpening filter to apply to the image. Floating-point
12508
- * number between 0 (no sharpening, default) and 10 (maximum). 1.0 is a
12509
- * recommended value for downscaled images.
12510
- */
12511
- sharpen?: number;
12512
- /**
12513
- * Radius of a blur filter (approximate gaussian). Maximum supported radius
12514
- * is 250.
12515
- */
12516
- blur?: number;
12517
12684
  /**
12518
12685
  * Overlays are drawn in the order they appear in the array (last array
12519
12686
  * entry is the topmost layer).
@@ -12525,52 +12692,6 @@ export interface RequestInitCfPropertiesImage extends BasicImageTransformations
12525
12692
  * the origin.
12526
12693
  */
12527
12694
  "origin-auth"?: "share-publicly";
12528
- /**
12529
- * Adds a border around the image. The border is added after resizing. Border
12530
- * width takes dpr into account, and can be specified either using a single
12531
- * width property, or individually for each side.
12532
- */
12533
- border?:
12534
- | {
12535
- color: string;
12536
- width: number;
12537
- }
12538
- | {
12539
- color: string;
12540
- top: number;
12541
- right: number;
12542
- bottom: number;
12543
- left: number;
12544
- };
12545
- /**
12546
- * Increase brightness by a factor. A value of 1.0 equals no change, a value
12547
- * of 0.5 equals half brightness, and a value of 2.0 equals twice as bright.
12548
- * 0 is ignored.
12549
- */
12550
- brightness?: number;
12551
- /**
12552
- * Increase contrast by a factor. A value of 1.0 equals no change, a value of
12553
- * 0.5 equals low contrast, and a value of 2.0 equals high contrast. 0 is
12554
- * ignored.
12555
- */
12556
- contrast?: number;
12557
- /**
12558
- * Increase exposure by a factor. A value of 1.0 equals no change, a value of
12559
- * 0.5 darkens the image, and a value of 2.0 lightens the image. 0 is ignored.
12560
- */
12561
- gamma?: number;
12562
- /**
12563
- * Increase contrast by a factor. A value of 1.0 equals no change, a value of
12564
- * 0.5 equals low contrast, and a value of 2.0 equals high contrast. 0 is
12565
- * ignored.
12566
- */
12567
- saturation?: number;
12568
- /**
12569
- * Flips the images horizontally, vertically, or both. Flipping is applied before
12570
- * rotation, so if you apply flip=h,rotate=90 then the image will be flipped
12571
- * horizontally, then rotated by 90 degrees.
12572
- */
12573
- flip?: "h" | "v" | "hv";
12574
12695
  /**
12575
12696
  * Slightly reduces latency on a cache miss by selecting a
12576
12697
  * quickest-to-compress file format, at a cost of increased file size and
@@ -14469,6 +14590,10 @@ export declare namespace CloudflareWorkersModule {
14469
14590
  timeout?: WorkflowTimeoutDuration | number;
14470
14591
  sensitive?: WorkflowStepSensitivity;
14471
14592
  };
14593
+ export type WorkflowStepRollbackConfig = Pick<
14594
+ WorkflowStepConfig,
14595
+ "retries" | "timeout"
14596
+ >;
14472
14597
  export type WorkflowCronSchedule = {
14473
14598
  /** Cron expression that triggered this event. */
14474
14599
  cron: string;
@@ -14497,16 +14622,18 @@ export declare namespace CloudflareWorkersModule {
14497
14622
  config: WorkflowStepConfig;
14498
14623
  };
14499
14624
  export type WorkflowRollbackContext<T = unknown> = {
14625
+ ctx: WorkflowStepContext;
14500
14626
  error: Error;
14501
14627
  output: T | undefined;
14628
+ /** @deprecated Use `ctx.step.name` and `ctx.step.count` instead. */
14502
14629
  stepName: string;
14503
14630
  };
14504
14631
  export type WorkflowRollbackHandler<T = unknown> = (
14505
14632
  ctx: WorkflowRollbackContext<T>,
14506
14633
  ) => Promise<void>;
14507
14634
  export type WorkflowStepRollbackOptions<T = unknown> = {
14508
- rollback?: WorkflowRollbackHandler<T>;
14509
- rollbackConfig?: WorkflowStepConfig;
14635
+ rollback: WorkflowRollbackHandler<T>;
14636
+ rollbackConfig?: WorkflowStepRollbackConfig;
14510
14637
  };
14511
14638
  export abstract class WorkflowStep {
14512
14639
  do<T extends Rpc.Serializable<T>>(
@@ -15465,7 +15592,8 @@ export declare namespace TailStream {
15465
15592
  | "loadShed"
15466
15593
  | "responseStreamDisconnected"
15467
15594
  | "scriptNotFound"
15468
- | "internalError";
15595
+ | "internalError"
15596
+ | "exceededWallTime";
15469
15597
  interface ScriptVersion {
15470
15598
  readonly id: string;
15471
15599
  readonly tag?: string;