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