@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.
@@ -494,6 +494,7 @@ export interface ExecutionContext<Props = unknown> {
494
494
  passThroughOnException(): void;
495
495
  readonly exports: Cloudflare.Exports;
496
496
  readonly props: Props;
497
+ restore(params: any): Promise<any>;
497
498
  cache?: CacheContext;
498
499
  readonly version?: {
499
500
  readonly metadata?: {
@@ -503,7 +504,8 @@ export interface ExecutionContext<Props = unknown> {
503
504
  readonly key?: string;
504
505
  readonly override?: string;
505
506
  };
506
- tracing?: Tracing;
507
+ readonly access?: CloudflareAccessContext;
508
+ tracing: Tracing;
507
509
  abort(reason?: any): void;
508
510
  }
509
511
  export type ExportedHandlerFetchHandler<
@@ -606,6 +608,10 @@ export interface CachePurgeOptions {
606
608
  export interface CacheContext {
607
609
  purge(options: CachePurgeOptions): Promise<CachePurgeResult>;
608
610
  }
611
+ export interface CloudflareAccessContext {
612
+ readonly aud: string;
613
+ getIdentity(): Promise<CloudflareAccessIdentity | undefined>;
614
+ }
609
615
  export declare abstract class ColoLocalActorNamespace {
610
616
  get(actorId: string): Fetcher;
611
617
  }
@@ -675,6 +681,8 @@ export type DurableObjectLocationHint =
675
681
  | "weur"
676
682
  | "eeur"
677
683
  | "apac"
684
+ | "apac-ne"
685
+ | "apac-se"
678
686
  | "oc"
679
687
  | "afr"
680
688
  | "me";
@@ -696,6 +704,7 @@ export interface DurableObjectState<Props = unknown> {
696
704
  waitUntil(promise: Promise<any>): void;
697
705
  readonly exports: Cloudflare.Exports;
698
706
  readonly props: Props;
707
+ restore(params: any): Promise<any>;
699
708
  readonly id: DurableObjectId;
700
709
  readonly storage: DurableObjectStorage;
701
710
  container?: Container;
@@ -838,6 +847,7 @@ export interface DurableObjectFacets {
838
847
  ): Fetcher<T>;
839
848
  abort(name: string, reason: any): void;
840
849
  delete(name: string): void;
850
+ clone(src: string, dst: string): void;
841
851
  }
842
852
  export interface FacetStartupOptions<
843
853
  T extends Rpc.DurableObjectBranded | undefined = undefined,
@@ -4734,11 +4744,62 @@ export interface Tracing {
4734
4744
  callback: (span: Span, ...args: A) => T,
4735
4745
  ...args: A
4736
4746
  ): T;
4747
+ startActiveSpan<T, A extends unknown[]>(
4748
+ name: string,
4749
+ callback: (span: Span, ...args: A) => T,
4750
+ ...args: A
4751
+ ): T;
4737
4752
  Span: typeof Span;
4738
4753
  }
4739
4754
  export declare abstract class Span {
4740
4755
  get isTraced(): boolean;
4741
4756
  setAttribute(key: string, value?: boolean | number | string): void;
4757
+ end(): void;
4758
+ }
4759
+ /**
4760
+ * Represents the identity of a user authenticated via Cloudflare Access.
4761
+ * This matches the result of calling /cdn-cgi/access/get-identity.
4762
+ *
4763
+ * The exact structure of the returned object depends on the identity provider
4764
+ * configuration for the Access application. The fields below represent commonly
4765
+ * available properties, but additional provider-specific fields may be present.
4766
+ */
4767
+ export interface CloudflareAccessIdentity extends Record<string, unknown> {
4768
+ /** The user's email address, if available from the identity provider. */
4769
+ email?: string;
4770
+ /** The user's display name. */
4771
+ name?: string;
4772
+ /** The user's unique identifier. */
4773
+ user_uuid?: string;
4774
+ /** The Cloudflare account ID. */
4775
+ account_id?: string;
4776
+ /** Login timestamp (Unix epoch seconds). */
4777
+ iat?: number;
4778
+ /** The user's IP address at authentication time. */
4779
+ ip?: string;
4780
+ /** Authentication methods used (e.g., "pwd"). */
4781
+ amr?: string[];
4782
+ /** Identity provider information. */
4783
+ idp?: {
4784
+ id: string;
4785
+ type: string;
4786
+ };
4787
+ /** Geographic information about where the user authenticated. */
4788
+ geo?: {
4789
+ country: string;
4790
+ };
4791
+ /** Group memberships from the identity provider. */
4792
+ groups?: Array<{
4793
+ id: string;
4794
+ name: string;
4795
+ email?: string;
4796
+ }>;
4797
+ /** Device posture check results, keyed by check ID. */
4798
+ devicePosture?: Record<string, unknown>;
4799
+ /** True if the user connected via Cloudflare WARP. */
4800
+ is_warp?: boolean;
4801
+ /** True if the user is authenticated via Cloudflare Gateway. */
4802
+ is_gateway?: boolean;
4742
4803
  }
4743
4804
  // ============================================================================
4744
4805
  // Agent Memory
@@ -12895,87 +12956,6 @@ export declare abstract class BrowserRun {
12895
12956
  options: BrowserRunMarkdownOptions,
12896
12957
  ): Promise<Response>;
12897
12958
  }
12898
- export interface BasicImageTransformations {
12899
- /**
12900
- * Maximum width in image pixels. The value must be an integer.
12901
- */
12902
- width?: number;
12903
- /**
12904
- * Maximum height in image pixels. The value must be an integer.
12905
- */
12906
- height?: number;
12907
- /**
12908
- * Resizing mode as a string. It affects interpretation of width and height
12909
- * options:
12910
- * - scale-down: Similar to contain, but the image is never enlarged. If
12911
- * the image is larger than given width or height, it will be resized.
12912
- * Otherwise its original size will be kept.
12913
- * - contain: Resizes to maximum size that fits within the given width and
12914
- * height. If only a single dimension is given (e.g. only width), the
12915
- * image will be shrunk or enlarged to exactly match that dimension.
12916
- * Aspect ratio is always preserved.
12917
- * - cover: Resizes (shrinks or enlarges) to fill the entire area of width
12918
- * and height. If the image has an aspect ratio different from the ratio
12919
- * of width and height, it will be cropped to fit.
12920
- * - crop: The image will be shrunk and cropped to fit within the area
12921
- * specified by width and height. The image will not be enlarged. For images
12922
- * smaller than the given dimensions it's the same as scale-down. For
12923
- * images larger than the given dimensions, it's the same as cover.
12924
- * See also trim.
12925
- * - pad: Resizes to the maximum size that fits within the given width and
12926
- * height, and then fills the remaining area with a background color
12927
- * (white by default). Use of this mode is not recommended, as the same
12928
- * effect can be more efficiently achieved with the contain mode and the
12929
- * CSS object-fit: contain property.
12930
- * - squeeze: Stretches and deforms to the width and height given, even if it
12931
- * breaks aspect ratio
12932
- */
12933
- fit?: "scale-down" | "contain" | "cover" | "crop" | "pad" | "squeeze";
12934
- /**
12935
- * Image segmentation using artificial intelligence models. Sets pixels not
12936
- * within selected segment area to transparent e.g "foreground" sets every
12937
- * background pixel as transparent.
12938
- */
12939
- segment?: "foreground";
12940
- /**
12941
- * When cropping with fit: "cover", this defines the side or point that should
12942
- * be left uncropped. The value is either a string
12943
- * "left", "right", "top", "bottom", "auto", or "center" (the default),
12944
- * or an object {x, y} containing focal point coordinates in the original
12945
- * image expressed as fractions ranging from 0.0 (top or left) to 1.0
12946
- * (bottom or right), 0.5 being the center. {fit: "cover", gravity: "top"} will
12947
- * crop bottom or left and right sides as necessary, but won’t crop anything
12948
- * from the top. {fit: "cover", gravity: {x:0.5, y:0.2}} will crop each side to
12949
- * preserve as much as possible around a point at 20% of the height of the
12950
- * source image.
12951
- */
12952
- gravity?:
12953
- | "face"
12954
- | "left"
12955
- | "right"
12956
- | "top"
12957
- | "bottom"
12958
- | "center"
12959
- | "auto"
12960
- | "entropy"
12961
- | BasicImageTransformationsGravityCoordinates;
12962
- /**
12963
- * Background color to add underneath the image. Applies only to images with
12964
- * transparency (such as PNG). Accepts any CSS color (#RRGGBB, rgba(…),
12965
- * hsl(…), etc.)
12966
- */
12967
- background?: string;
12968
- /**
12969
- * Number of degrees (90, 180, 270) to rotate the image by. width and height
12970
- * options refer to axes after rotation.
12971
- */
12972
- rotate?: 0 | 90 | 180 | 270 | 360;
12973
- }
12974
- export interface BasicImageTransformationsGravityCoordinates {
12975
- x?: number;
12976
- y?: number;
12977
- mode?: "remainder" | "box-center";
12978
- }
12979
12959
  /**
12980
12960
  * In addition to the properties you can set in the RequestInit dict
12981
12961
  * that you pass as an argument to the Request constructor, you can
@@ -13051,6 +13031,17 @@ export interface RequestInitCfProperties extends Record<string, unknown> {
13051
13031
  cacheReserveMinimumFileSize?: number;
13052
13032
  scrapeShield?: boolean;
13053
13033
  apps?: boolean;
13034
+ /**
13035
+ * Controls whether an outbound gRPC-web subrequest from this Worker is
13036
+ * converted to gRPC at the Cloudflare edge.
13037
+ *
13038
+ * - `"passthrough"`: forward the subrequest unchanged as gRPC-web (default).
13039
+ * - `"convert"`: convert the gRPC-web subrequest to gRPC at the edge.
13040
+ *
13041
+ * Provides per-request control over the same edge conversion behavior
13042
+ * gated by the `auto_grpc_convert` compatibility flag.
13043
+ */
13044
+ grpcWeb?: "passthrough" | "convert";
13054
13045
  image?: RequestInitCfPropertiesImage;
13055
13046
  minify?: RequestInitCfPropertiesImageMinify;
13056
13047
  mirage?: boolean;
@@ -13071,6 +13062,209 @@ export interface RequestInitCfProperties extends Record<string, unknown> {
13071
13062
  */
13072
13063
  resolveOverride?: string;
13073
13064
  }
13065
+ export interface BasicImageTransformations {
13066
+ /**
13067
+ * Maximum width in image pixels. The value must be an integer.
13068
+ */
13069
+ width?: number;
13070
+ /**
13071
+ * Maximum height in image pixels. The value must be an integer.
13072
+ */
13073
+ height?: number;
13074
+ /**
13075
+ * When cropping with fit: "cover", this defines the side or point that should
13076
+ * be left uncropped. The value is either a string
13077
+ * "left", "right", "top", "bottom", "auto", or "center" (the default),
13078
+ * or an object {x, y} containing focal point coordinates in the original
13079
+ * image expressed as fractions ranging from 0.0 (top or left) to 1.0
13080
+ * (bottom or right), 0.5 being the center. {fit: "cover", gravity: "top"} will
13081
+ * crop bottom or left and right sides as necessary, but won’t crop anything
13082
+ * from the top. {fit: "cover", gravity: {x:0.5, y:0.2}} will crop each side to
13083
+ * preserve as much as possible around a point at 20% of the height of the
13084
+ * source image.
13085
+ */
13086
+ gravity?:
13087
+ | "face"
13088
+ | "left"
13089
+ | "right"
13090
+ | "top"
13091
+ | "bottom"
13092
+ | "center"
13093
+ | "auto"
13094
+ | "entropy"
13095
+ | BasicImageTransformationsGravityCoordinates;
13096
+ /**
13097
+ * Specifies how closely the image is cropped toward detected faces when combined
13098
+ * with the gravity=face option. Accepts a valid range between 0.0 (includes as much
13099
+ * of the background as possible) and 1.0 (crops the image as closely to the face as
13100
+ * possible). The default is 0.
13101
+ */
13102
+ zoom?: number;
13103
+ /**
13104
+ * Resizing mode as a string. It affects interpretation of width and height
13105
+ * options:
13106
+ * - scale-down: Similar to contain, but the image is never enlarged. If
13107
+ * the image is larger than given width or height, it will be resized.
13108
+ * Otherwise its original size will be kept.
13109
+ * - scale-up: Similar to contain, but the image is never shrunk. If the
13110
+ * image is smaller than the given width or height, it will be resized.
13111
+ * Otherwise its original size will be kept.
13112
+ * - contain: Resizes to maximum size that fits within the given width and
13113
+ * height. If only a single dimension is given (e.g. only width), the
13114
+ * image will be shrunk or enlarged to exactly match that dimension.
13115
+ * Aspect ratio is always preserved.
13116
+ * - cover: Resizes (shrinks or enlarges) to fill the entire area of width
13117
+ * and height. If the image has an aspect ratio different from the ratio
13118
+ * of width and height, it will be cropped to fit.
13119
+ * - crop: The image will be shrunk and cropped to fit within the area
13120
+ * specified by width and height. The image will not be enlarged. For images
13121
+ * smaller than the given dimensions it's the same as scale-down. For
13122
+ * images larger than the given dimensions, it's the same as cover.
13123
+ * See also trim.
13124
+ * - pad: Resizes to the maximum size that fits within the given width and
13125
+ * height, and then fills the remaining area with a background color
13126
+ * (white by default). Use of this mode is not recommended, as the same
13127
+ * effect can be more efficiently achieved with the contain mode and the
13128
+ * CSS object-fit: contain property.
13129
+ * - squeeze: Stretches and deforms to the width and height given, even if it
13130
+ * breaks aspect ratio
13131
+ */
13132
+ fit?:
13133
+ | "scale-down"
13134
+ | "scale-up"
13135
+ | "contain"
13136
+ | "cover"
13137
+ | "crop"
13138
+ | "pad"
13139
+ | "squeeze";
13140
+ /**
13141
+ * Allows you to trim your image. Takes dpr into account and is performed before
13142
+ * resizing or rotation.
13143
+ *
13144
+ * It can be used as:
13145
+ * - left, top, right, bottom - it will specify the number of pixels to cut
13146
+ * off each side
13147
+ * - width, height - the width/height you'd like to end up with - can be used
13148
+ * in combination with the properties above
13149
+ * - border - this will automatically trim the surroundings of an image based on
13150
+ * it's color. It consists of three properties:
13151
+ * - color: rgb or hex representation of the color you wish to trim (todo: verify the rgba bit)
13152
+ * - tolerance: difference from color to treat as color
13153
+ * - keep: the number of pixels of border to keep
13154
+ */
13155
+ trim?:
13156
+ | "border"
13157
+ | {
13158
+ top?: number;
13159
+ bottom?: number;
13160
+ left?: number;
13161
+ right?: number;
13162
+ width?: number;
13163
+ height?: number;
13164
+ border?:
13165
+ | boolean
13166
+ | {
13167
+ color?: string;
13168
+ tolerance?: number;
13169
+ keep?: number;
13170
+ };
13171
+ };
13172
+ /**
13173
+ * Background color to add underneath the image. Applies only to images with
13174
+ * transparency (such as PNG). Accepts any CSS color (#RRGGBB, rgba(…),
13175
+ * hsl(…), etc.)
13176
+ */
13177
+ background?: string;
13178
+ /**
13179
+ * Flips the images horizontally, vertically, or both. Flipping is applied before
13180
+ * rotation, so if you apply flip=h,rotate=90 then the image will be flipped
13181
+ * horizontally, then rotated by 90 degrees.
13182
+ */
13183
+ flip?: "h" | "v" | "hv";
13184
+ /**
13185
+ * Number of degrees (90, 180, 270) to rotate the image by. width and height
13186
+ * options refer to axes after rotation.
13187
+ */
13188
+ rotate?: 0 | 90 | 180 | 270 | 360;
13189
+ /**
13190
+ * Strength of sharpening filter to apply to the image. Floating-point
13191
+ * number between 0 (no sharpening, default) and 10 (maximum). 1.0 is a
13192
+ * recommended value for downscaled images.
13193
+ */
13194
+ sharpen?: number;
13195
+ /**
13196
+ * Radius of a blur filter (approximate gaussian). Maximum supported radius
13197
+ * is 250.
13198
+ */
13199
+ blur?: number;
13200
+ /**
13201
+ * Increase contrast by a factor. A value of 1.0 equals no change, a value of
13202
+ * 0.5 equals low contrast, and a value of 2.0 equals high contrast. 0 is
13203
+ * ignored.
13204
+ */
13205
+ contrast?: number;
13206
+ /**
13207
+ * Increase brightness by a factor. A value of 1.0 equals no change, a value
13208
+ * of 0.5 equals half brightness, and a value of 2.0 equals twice as bright.
13209
+ * 0 is ignored.
13210
+ */
13211
+ brightness?: number;
13212
+ /**
13213
+ * Increase exposure by a factor. A value of 1.0 equals no change, a value of
13214
+ * 0.5 darkens the image, and a value of 2.0 lightens the image. 0 is ignored.
13215
+ */
13216
+ gamma?: number;
13217
+ /**
13218
+ * Increase contrast by a factor. A value of 1.0 equals no change, a value of
13219
+ * 0.5 equals low contrast, and a value of 2.0 equals high contrast. 0 is
13220
+ * ignored.
13221
+ */
13222
+ saturation?: number;
13223
+ /**
13224
+ * Device Pixel Ratio. Default 1. Multiplier for width/height that makes it
13225
+ * easier to specify higher-DPI sizes in <img srcset>.
13226
+ */
13227
+ dpr?: number;
13228
+ /**
13229
+ * Adds a border around the image. The border is added after resizing. Border
13230
+ * width takes dpr into account, and can be specified either using a single
13231
+ * width property, or individually for each side.
13232
+ */
13233
+ border?:
13234
+ | {
13235
+ color: string;
13236
+ width: number;
13237
+ }
13238
+ | {
13239
+ color: string;
13240
+ top: number;
13241
+ right: number;
13242
+ bottom: number;
13243
+ left: number;
13244
+ };
13245
+ /**
13246
+ * Image segmentation using artificial intelligence models. Sets pixels not
13247
+ * within selected segment area to transparent e.g "foreground" sets every
13248
+ * background pixel as transparent.
13249
+ */
13250
+ segment?: "foreground";
13251
+ /**
13252
+ * Controls the algorithm used when an image needs to be enlarged. This
13253
+ * parameter works with any fit mode that upscales, such as `contain`,
13254
+ * `cover`, and `scale-up`. It has no effect when `fit=scale-down` or when
13255
+ * the target dimensions are smaller than the source.
13256
+ * - interpolate: Uses bicubic interpolation, which may reduce image quality.
13257
+ * This is the default behavior when `upscale` is not specified.
13258
+ * - generate: Uses AI upscaling to produce sharper, more detailed results
13259
+ * when enlarging images.
13260
+ */
13261
+ upscale?: "interpolate" | "generate";
13262
+ }
13263
+ export interface BasicImageTransformationsGravityCoordinates {
13264
+ x?: number;
13265
+ y?: number;
13266
+ mode?: "remainder" | "box-center";
13267
+ }
13074
13268
  export interface RequestInitCfPropertiesImageDraw extends BasicImageTransformations {
13075
13269
  /**
13076
13270
  * Absolute URL of the image file to use for the drawing. It can be any of
@@ -13124,43 +13318,6 @@ export interface RequestInitCfPropertiesImageDraw extends BasicImageTransformati
13124
13318
  right?: number;
13125
13319
  }
13126
13320
  export interface RequestInitCfPropertiesImage extends BasicImageTransformations {
13127
- /**
13128
- * Device Pixel Ratio. Default 1. Multiplier for width/height that makes it
13129
- * easier to specify higher-DPI sizes in <img srcset>.
13130
- */
13131
- dpr?: number;
13132
- /**
13133
- * Allows you to trim your image. Takes dpr into account and is performed before
13134
- * resizing or rotation.
13135
- *
13136
- * It can be used as:
13137
- * - left, top, right, bottom - it will specify the number of pixels to cut
13138
- * off each side
13139
- * - width, height - the width/height you'd like to end up with - can be used
13140
- * in combination with the properties above
13141
- * - border - this will automatically trim the surroundings of an image based on
13142
- * it's color. It consists of three properties:
13143
- * - color: rgb or hex representation of the color you wish to trim (todo: verify the rgba bit)
13144
- * - tolerance: difference from color to treat as color
13145
- * - keep: the number of pixels of border to keep
13146
- */
13147
- trim?:
13148
- | "border"
13149
- | {
13150
- top?: number;
13151
- bottom?: number;
13152
- left?: number;
13153
- right?: number;
13154
- width?: number;
13155
- height?: number;
13156
- border?:
13157
- | boolean
13158
- | {
13159
- color?: string;
13160
- tolerance?: number;
13161
- keep?: number;
13162
- };
13163
- };
13164
13321
  /**
13165
13322
  * Quality setting from 1-100 (useful values are in 60-90 range). Lower values
13166
13323
  * make images look worse, but load faster. The default is 85. It applies only
@@ -13210,17 +13367,6 @@ export interface RequestInitCfPropertiesImage extends BasicImageTransformations
13210
13367
  * output formats always discard metadata.
13211
13368
  */
13212
13369
  metadata?: "keep" | "copyright" | "none";
13213
- /**
13214
- * Strength of sharpening filter to apply to the image. Floating-point
13215
- * number between 0 (no sharpening, default) and 10 (maximum). 1.0 is a
13216
- * recommended value for downscaled images.
13217
- */
13218
- sharpen?: number;
13219
- /**
13220
- * Radius of a blur filter (approximate gaussian). Maximum supported radius
13221
- * is 250.
13222
- */
13223
- blur?: number;
13224
13370
  /**
13225
13371
  * Overlays are drawn in the order they appear in the array (last array
13226
13372
  * entry is the topmost layer).
@@ -13232,52 +13378,6 @@ export interface RequestInitCfPropertiesImage extends BasicImageTransformations
13232
13378
  * the origin.
13233
13379
  */
13234
13380
  "origin-auth"?: "share-publicly";
13235
- /**
13236
- * Adds a border around the image. The border is added after resizing. Border
13237
- * width takes dpr into account, and can be specified either using a single
13238
- * width property, or individually for each side.
13239
- */
13240
- border?:
13241
- | {
13242
- color: string;
13243
- width: number;
13244
- }
13245
- | {
13246
- color: string;
13247
- top: number;
13248
- right: number;
13249
- bottom: number;
13250
- left: number;
13251
- };
13252
- /**
13253
- * Increase brightness by a factor. A value of 1.0 equals no change, a value
13254
- * of 0.5 equals half brightness, and a value of 2.0 equals twice as bright.
13255
- * 0 is ignored.
13256
- */
13257
- brightness?: number;
13258
- /**
13259
- * Increase contrast by a factor. A value of 1.0 equals no change, a value of
13260
- * 0.5 equals low contrast, and a value of 2.0 equals high contrast. 0 is
13261
- * ignored.
13262
- */
13263
- contrast?: number;
13264
- /**
13265
- * Increase exposure by a factor. A value of 1.0 equals no change, a value of
13266
- * 0.5 darkens the image, and a value of 2.0 lightens the image. 0 is ignored.
13267
- */
13268
- gamma?: number;
13269
- /**
13270
- * Increase contrast by a factor. A value of 1.0 equals no change, a value of
13271
- * 0.5 equals low contrast, and a value of 2.0 equals high contrast. 0 is
13272
- * ignored.
13273
- */
13274
- saturation?: number;
13275
- /**
13276
- * Flips the images horizontally, vertically, or both. Flipping is applied before
13277
- * rotation, so if you apply flip=h,rotate=90 then the image will be flipped
13278
- * horizontally, then rotated by 90 degrees.
13279
- */
13280
- flip?: "h" | "v" | "hv";
13281
13381
  /**
13282
13382
  * Slightly reduces latency on a cache miss by selecting a
13283
13383
  * quickest-to-compress file format, at a cost of increased file size and
@@ -15176,6 +15276,10 @@ export declare namespace CloudflareWorkersModule {
15176
15276
  timeout?: WorkflowTimeoutDuration | number;
15177
15277
  sensitive?: WorkflowStepSensitivity;
15178
15278
  };
15279
+ export type WorkflowStepRollbackConfig = Pick<
15280
+ WorkflowStepConfig,
15281
+ "retries" | "timeout"
15282
+ >;
15179
15283
  export type WorkflowCronSchedule = {
15180
15284
  /** Cron expression that triggered this event. */
15181
15285
  cron: string;
@@ -15204,16 +15308,18 @@ export declare namespace CloudflareWorkersModule {
15204
15308
  config: WorkflowStepConfig;
15205
15309
  };
15206
15310
  export type WorkflowRollbackContext<T = unknown> = {
15311
+ ctx: WorkflowStepContext;
15207
15312
  error: Error;
15208
15313
  output: T | undefined;
15314
+ /** @deprecated Use `ctx.step.name` and `ctx.step.count` instead. */
15209
15315
  stepName: string;
15210
15316
  };
15211
15317
  export type WorkflowRollbackHandler<T = unknown> = (
15212
15318
  ctx: WorkflowRollbackContext<T>,
15213
15319
  ) => Promise<void>;
15214
15320
  export type WorkflowStepRollbackOptions<T = unknown> = {
15215
- rollback?: WorkflowRollbackHandler<T>;
15216
- rollbackConfig?: WorkflowStepConfig;
15321
+ rollback: WorkflowRollbackHandler<T>;
15322
+ rollbackConfig?: WorkflowStepRollbackConfig;
15217
15323
  };
15218
15324
  export abstract class WorkflowStep {
15219
15325
  do<T extends Rpc.Serializable<T>>(
@@ -16172,7 +16278,8 @@ export declare namespace TailStream {
16172
16278
  | "loadShed"
16173
16279
  | "responseStreamDisconnected"
16174
16280
  | "scriptNotFound"
16175
- | "internalError";
16281
+ | "internalError"
16282
+ | "exceededWallTime";
16176
16283
  interface ScriptVersion {
16177
16284
  readonly id: string;
16178
16285
  readonly tag?: string;