@icebreakers/monorepo-templates 1.0.11 → 1.0.13

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.
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable */
2
2
  // Generated by Wrangler by running `wrangler types` (hash: bf05258867cf7490d4c96f4ea30bd0ef)
3
- // Runtime types generated with workerd@1.20260609.1 2025-10-16 nodejs_compat
3
+ // Runtime types generated with workerd@1.20260701.1 2025-10-16 nodejs_compat
4
4
  interface __BaseEnv_Env {
5
5
  }
6
6
  declare namespace Cloudflare {
@@ -433,7 +433,8 @@ interface ExecutionContext<Props = unknown> {
433
433
  passThroughOnException(): void;
434
434
  readonly props: Props;
435
435
  cache?: CacheContext;
436
- tracing?: Tracing;
436
+ readonly access?: CloudflareAccessContext;
437
+ tracing: Tracing;
437
438
  }
438
439
  type ExportedHandlerFetchHandler<Env = unknown, CfHostMetadata = unknown, Props = unknown> = (request: Request<CfHostMetadata, IncomingRequestCfProperties<CfHostMetadata>>, env: Env, ctx: ExecutionContext<Props>) => Response | Promise<Response>;
439
440
  type ExportedHandlerConnectHandler<Env = unknown, Props = unknown> = (socket: Socket, env: Env, ctx: ExecutionContext<Props>) => void | Promise<void>;
@@ -489,6 +490,10 @@ interface CachePurgeOptions {
489
490
  interface CacheContext {
490
491
  purge(options: CachePurgeOptions): Promise<CachePurgeResult>;
491
492
  }
493
+ interface CloudflareAccessContext {
494
+ readonly aud: string;
495
+ getIdentity(): Promise<CloudflareAccessIdentity | undefined>;
496
+ }
492
497
  declare abstract class ColoLocalActorNamespace {
493
498
  get(actorId: string): Fetcher;
494
499
  }
@@ -522,7 +527,7 @@ type DurableObjectJurisdiction = "eu" | "fedramp" | "fedramp-high";
522
527
  interface DurableObjectNamespaceNewUniqueIdOptions {
523
528
  jurisdiction?: DurableObjectJurisdiction;
524
529
  }
525
- type DurableObjectLocationHint = "wnam" | "enam" | "sam" | "weur" | "eeur" | "apac" | "oc" | "afr" | "me";
530
+ type DurableObjectLocationHint = "wnam" | "enam" | "sam" | "weur" | "eeur" | "apac" | "apac-ne" | "apac-se" | "oc" | "afr" | "me";
526
531
  type DurableObjectRoutingMode = "primary-only";
527
532
  interface DurableObjectNamespaceGetDurableObjectOptions {
528
533
  locationHint?: DurableObjectLocationHint;
@@ -617,6 +622,7 @@ interface DurableObjectFacets {
617
622
  get<T extends Rpc.DurableObjectBranded | undefined = undefined>(name: string, getStartupOptions: () => FacetStartupOptions<T> | Promise<FacetStartupOptions<T>>): Fetcher<T>;
618
623
  abort(name: string, reason: any): void;
619
624
  delete(name: string): void;
625
+ clone(src: string, dst: string): void;
620
626
  }
621
627
  interface FacetStartupOptions<T extends Rpc.DurableObjectBranded | undefined = undefined> {
622
628
  id?: DurableObjectId | string;
@@ -3292,6 +3298,28 @@ interface EventSourceEventSourceInit {
3292
3298
  withCredentials?: boolean;
3293
3299
  fetcher?: Fetcher;
3294
3300
  }
3301
+ interface ExecOutput {
3302
+ readonly stdout: ArrayBuffer;
3303
+ readonly stderr: ArrayBuffer;
3304
+ readonly exitCode: number;
3305
+ }
3306
+ interface ContainerExecOptions {
3307
+ cwd?: string;
3308
+ env?: Record<string, string>;
3309
+ user?: string;
3310
+ stdin?: ReadableStream | "pipe";
3311
+ stdout?: "pipe" | "ignore";
3312
+ stderr?: "pipe" | "ignore" | "combined";
3313
+ }
3314
+ interface ExecProcess {
3315
+ readonly stdin: WritableStream | null;
3316
+ readonly stdout: ReadableStream | null;
3317
+ readonly stderr: ReadableStream | null;
3318
+ readonly pid: number;
3319
+ readonly exitCode: Promise<number>;
3320
+ output(): Promise<ExecOutput>;
3321
+ kill(signal?: number): void;
3322
+ }
3295
3323
  interface Container {
3296
3324
  get running(): boolean;
3297
3325
  start(options?: ContainerStartupOptions): void;
@@ -3305,6 +3333,7 @@ interface Container {
3305
3333
  snapshotDirectory(options: ContainerDirectorySnapshotOptions): Promise<ContainerDirectorySnapshot>;
3306
3334
  snapshotContainer(options: ContainerSnapshotOptions): Promise<ContainerSnapshot>;
3307
3335
  interceptOutboundHttps(addr: string, binding: Fetcher): Promise<void>;
3336
+ exec(cmd: string[], options?: ContainerExecOptions): Promise<ExecProcess>;
3308
3337
  }
3309
3338
  interface ContainerDirectorySnapshot {
3310
3339
  id: string;
@@ -3475,11 +3504,58 @@ declare abstract class Performance {
3475
3504
  }
3476
3505
  interface Tracing {
3477
3506
  enterSpan<T, A extends unknown[]>(name: string, callback: (span: Span, ...args: A) => T, ...args: A): T;
3507
+ startActiveSpan<T, A extends unknown[]>(name: string, callback: (span: Span, ...args: A) => T, ...args: A): T;
3478
3508
  Span: typeof Span;
3479
3509
  }
3480
3510
  declare abstract class Span {
3481
3511
  get isTraced(): boolean;
3482
3512
  setAttribute(key: string, value?: (boolean | number | string)): void;
3513
+ end(): void;
3514
+ }
3515
+ /**
3516
+ * Represents the identity of a user authenticated via Cloudflare Access.
3517
+ * This matches the result of calling /cdn-cgi/access/get-identity.
3518
+ *
3519
+ * The exact structure of the returned object depends on the identity provider
3520
+ * configuration for the Access application. The fields below represent commonly
3521
+ * available properties, but additional provider-specific fields may be present.
3522
+ */
3523
+ interface CloudflareAccessIdentity extends Record<string, unknown> {
3524
+ /** The user's email address, if available from the identity provider. */
3525
+ email?: string;
3526
+ /** The user's display name. */
3527
+ name?: string;
3528
+ /** The user's unique identifier. */
3529
+ user_uuid?: string;
3530
+ /** The Cloudflare account ID. */
3531
+ account_id?: string;
3532
+ /** Login timestamp (Unix epoch seconds). */
3533
+ iat?: number;
3534
+ /** The user's IP address at authentication time. */
3535
+ ip?: string;
3536
+ /** Authentication methods used (e.g., "pwd"). */
3537
+ amr?: string[];
3538
+ /** Identity provider information. */
3539
+ idp?: {
3540
+ id: string;
3541
+ type: string;
3542
+ };
3543
+ /** Geographic information about where the user authenticated. */
3544
+ geo?: {
3545
+ country: string;
3546
+ };
3547
+ /** Group memberships from the identity provider. */
3548
+ groups?: Array<{
3549
+ id: string;
3550
+ name: string;
3551
+ email?: string;
3552
+ }>;
3553
+ /** Device posture check results, keyed by check ID. */
3554
+ devicePosture?: Record<string, unknown>;
3555
+ /** True if the user connected via Cloudflare WARP. */
3556
+ is_warp?: boolean;
3557
+ /** True if the user is authenticated via Cloudflare Gateway. */
3558
+ is_gateway?: boolean;
3483
3559
  }
3484
3560
  // ============================================================================
3485
3561
  // Agent Memory
@@ -11072,78 +11148,6 @@ declare abstract class BrowserRun {
11072
11148
  */
11073
11149
  quickAction(action: 'markdown', options: BrowserRunMarkdownOptions): Promise<Response>;
11074
11150
  }
11075
- interface BasicImageTransformations {
11076
- /**
11077
- * Maximum width in image pixels. The value must be an integer.
11078
- */
11079
- width?: number;
11080
- /**
11081
- * Maximum height in image pixels. The value must be an integer.
11082
- */
11083
- height?: number;
11084
- /**
11085
- * Resizing mode as a string. It affects interpretation of width and height
11086
- * options:
11087
- * - scale-down: Similar to contain, but the image is never enlarged. If
11088
- * the image is larger than given width or height, it will be resized.
11089
- * Otherwise its original size will be kept.
11090
- * - contain: Resizes to maximum size that fits within the given width and
11091
- * height. If only a single dimension is given (e.g. only width), the
11092
- * image will be shrunk or enlarged to exactly match that dimension.
11093
- * Aspect ratio is always preserved.
11094
- * - cover: Resizes (shrinks or enlarges) to fill the entire area of width
11095
- * and height. If the image has an aspect ratio different from the ratio
11096
- * of width and height, it will be cropped to fit.
11097
- * - crop: The image will be shrunk and cropped to fit within the area
11098
- * specified by width and height. The image will not be enlarged. For images
11099
- * smaller than the given dimensions it's the same as scale-down. For
11100
- * images larger than the given dimensions, it's the same as cover.
11101
- * See also trim.
11102
- * - pad: Resizes to the maximum size that fits within the given width and
11103
- * height, and then fills the remaining area with a background color
11104
- * (white by default). Use of this mode is not recommended, as the same
11105
- * effect can be more efficiently achieved with the contain mode and the
11106
- * CSS object-fit: contain property.
11107
- * - squeeze: Stretches and deforms to the width and height given, even if it
11108
- * breaks aspect ratio
11109
- */
11110
- fit?: "scale-down" | "contain" | "cover" | "crop" | "pad" | "squeeze";
11111
- /**
11112
- * Image segmentation using artificial intelligence models. Sets pixels not
11113
- * within selected segment area to transparent e.g "foreground" sets every
11114
- * background pixel as transparent.
11115
- */
11116
- segment?: "foreground";
11117
- /**
11118
- * When cropping with fit: "cover", this defines the side or point that should
11119
- * be left uncropped. The value is either a string
11120
- * "left", "right", "top", "bottom", "auto", or "center" (the default),
11121
- * or an object {x, y} containing focal point coordinates in the original
11122
- * image expressed as fractions ranging from 0.0 (top or left) to 1.0
11123
- * (bottom or right), 0.5 being the center. {fit: "cover", gravity: "top"} will
11124
- * crop bottom or left and right sides as necessary, but won’t crop anything
11125
- * from the top. {fit: "cover", gravity: {x:0.5, y:0.2}} will crop each side to
11126
- * preserve as much as possible around a point at 20% of the height of the
11127
- * source image.
11128
- */
11129
- gravity?: 'face' | 'left' | 'right' | 'top' | 'bottom' | 'center' | 'auto' | 'entropy' | BasicImageTransformationsGravityCoordinates;
11130
- /**
11131
- * Background color to add underneath the image. Applies only to images with
11132
- * transparency (such as PNG). Accepts any CSS color (#RRGGBB, rgba(…),
11133
- * hsl(…), etc.)
11134
- */
11135
- background?: string;
11136
- /**
11137
- * Number of degrees (90, 180, 270) to rotate the image by. width and height
11138
- * options refer to axes after rotation.
11139
- */
11140
- rotate?: 0 | 90 | 180 | 270 | 360;
11141
- }
11142
- interface BasicImageTransformationsGravityCoordinates {
11143
- x?: number;
11144
- y?: number;
11145
- mode?: 'remainder' | 'box-center';
11146
- }
11147
11151
  /**
11148
11152
  * In addition to the properties you can set in the RequestInit dict
11149
11153
  * that you pass as an argument to the Request constructor, you can
@@ -11182,6 +11186,8 @@ interface RequestInitCfProperties extends Record<string, unknown> {
11182
11186
  * (e.g. { '200-299': 86400, '404': 1, '500-599': 0 })
11183
11187
  */
11184
11188
  cacheTtlByStatus?: Record<string, number>;
11189
+ /** Controls how responses with a `Vary` header are cached for this request. */
11190
+ vary?: RequestInitCfPropertiesVary;
11185
11191
  /**
11186
11192
  * Explicit Cache-Control header value to set on the response stored in cache.
11187
11193
  * This gives full control over cache directives (e.g. 'public, max-age=3600, s-maxage=86400').
@@ -11219,6 +11225,17 @@ interface RequestInitCfProperties extends Record<string, unknown> {
11219
11225
  cacheReserveMinimumFileSize?: number;
11220
11226
  scrapeShield?: boolean;
11221
11227
  apps?: boolean;
11228
+ /**
11229
+ * Controls whether an outbound gRPC-web subrequest from this Worker is
11230
+ * converted to gRPC at the Cloudflare edge.
11231
+ *
11232
+ * - `"passthrough"`: forward the subrequest unchanged as gRPC-web (default).
11233
+ * - `"convert"`: convert the gRPC-web subrequest to gRPC at the edge.
11234
+ *
11235
+ * Provides per-request control over the same edge conversion behavior
11236
+ * gated by the `auto_grpc_convert` compatibility flag.
11237
+ */
11238
+ grpcWeb?: "passthrough" | "convert";
11222
11239
  image?: RequestInitCfPropertiesImage;
11223
11240
  minify?: RequestInitCfPropertiesImageMinify;
11224
11241
  mirage?: boolean;
@@ -11239,6 +11256,244 @@ interface RequestInitCfProperties extends Record<string, unknown> {
11239
11256
  */
11240
11257
  resolveOverride?: string;
11241
11258
  }
11259
+ /**
11260
+ * Controls how Workers Standard Vary handles a request header listed by an
11261
+ * origin `Vary` response header:
11262
+ *
11263
+ * - `"normalize"`: normalize the request header value before it is used in the
11264
+ * cache variance key.
11265
+ * - `"passthrough"`: use the raw request header value in the cache variance
11266
+ * key.
11267
+ * - `"bypass"`: bypass cache when the header appears in the origin `Vary`
11268
+ * response header.
11269
+ */
11270
+ type RequestInitCfPropertiesVaryAction = "normalize" | "passthrough" | "bypass";
11271
+ /** Configuration for Workers Standard Vary support. */
11272
+ interface RequestInitCfPropertiesVary {
11273
+ /** The fallback action for varied request headers not listed in `headers`. */
11274
+ default: RequestInitCfPropertiesVaryHeader;
11275
+ /**
11276
+ * Lowercase request header names and their Vary configuration.
11277
+ *
11278
+ * The `accept` header can include `media_types`, the `accept-language`
11279
+ * header can include `languages`, and other headers support only `action`.
11280
+ */
11281
+ headers?: RequestInitCfPropertiesVaryHeaders;
11282
+ }
11283
+ /** Common Vary behavior for a single request header. */
11284
+ interface RequestInitCfPropertiesVaryHeader {
11285
+ /** How this request header contributes to cache variance. */
11286
+ action: RequestInitCfPropertiesVaryAction;
11287
+ }
11288
+ /** Vary behavior for the `accept` request header. */
11289
+ interface RequestInitCfPropertiesVaryAcceptHeader extends RequestInitCfPropertiesVaryHeader {
11290
+ /**
11291
+ * Media types to keep when normalizing the `Accept` request header.
11292
+ *
11293
+ * Named `media_types` to match the serialized `cf.vary` configuration.
11294
+ */
11295
+ media_types?: string[];
11296
+ }
11297
+ /** Vary behavior for the `accept-language` request header. */
11298
+ interface RequestInitCfPropertiesVaryAcceptLanguageHeader extends RequestInitCfPropertiesVaryHeader {
11299
+ /**
11300
+ * Language tags to keep when normalizing the `Accept-Language` request
11301
+ * header.
11302
+ */
11303
+ languages?: string[];
11304
+ }
11305
+ /**
11306
+ * Lowercase request header names and their Vary behavior.
11307
+ *
11308
+ * The index signature allows arbitrary custom request headers beyond the
11309
+ * well-known `accept` and `accept-language` specializations.
11310
+ */
11311
+ interface RequestInitCfPropertiesVaryHeaders {
11312
+ accept?: RequestInitCfPropertiesVaryAcceptHeader;
11313
+ "accept-language"?: RequestInitCfPropertiesVaryAcceptLanguageHeader;
11314
+ [header: string]: RequestInitCfPropertiesVaryHeader | RequestInitCfPropertiesVaryAcceptHeader | RequestInitCfPropertiesVaryAcceptLanguageHeader | undefined;
11315
+ }
11316
+ interface BasicImageTransformations {
11317
+ /**
11318
+ * Maximum width in image pixels. The value must be an integer.
11319
+ */
11320
+ width?: number;
11321
+ /**
11322
+ * Maximum height in image pixels. The value must be an integer.
11323
+ */
11324
+ height?: number;
11325
+ /**
11326
+ * When cropping with fit: "cover", this defines the side or point that should
11327
+ * be left uncropped. The value is either a string
11328
+ * "left", "right", "top", "bottom", "auto", or "center" (the default),
11329
+ * or an object {x, y} containing focal point coordinates in the original
11330
+ * image expressed as fractions ranging from 0.0 (top or left) to 1.0
11331
+ * (bottom or right), 0.5 being the center. {fit: "cover", gravity: "top"} will
11332
+ * crop bottom or left and right sides as necessary, but won’t crop anything
11333
+ * from the top. {fit: "cover", gravity: {x:0.5, y:0.2}} will crop each side to
11334
+ * preserve as much as possible around a point at 20% of the height of the
11335
+ * source image.
11336
+ */
11337
+ gravity?: 'face' | 'left' | 'right' | 'top' | 'bottom' | 'center' | 'auto' | 'entropy' | BasicImageTransformationsGravityCoordinates;
11338
+ /**
11339
+ * Specifies how closely the image is cropped toward detected faces when combined
11340
+ * with the gravity=face option. Accepts a valid range between 0.0 (includes as much
11341
+ * of the background as possible) and 1.0 (crops the image as closely to the face as
11342
+ * possible). The default is 0.
11343
+ */
11344
+ zoom?: number;
11345
+ /**
11346
+ * Resizing mode as a string. It affects interpretation of width and height
11347
+ * options:
11348
+ * - scale-down: Similar to contain, but the image is never enlarged. If
11349
+ * the image is larger than given width or height, it will be resized.
11350
+ * Otherwise its original size will be kept.
11351
+ * - scale-up: Similar to contain, but the image is never shrunk. If the
11352
+ * image is smaller than the given width or height, it will be resized.
11353
+ * Otherwise its original size will be kept.
11354
+ * - contain: Resizes to maximum size that fits within the given width and
11355
+ * height. If only a single dimension is given (e.g. only width), the
11356
+ * image will be shrunk or enlarged to exactly match that dimension.
11357
+ * Aspect ratio is always preserved.
11358
+ * - cover: Resizes (shrinks or enlarges) to fill the entire area of width
11359
+ * and height. If the image has an aspect ratio different from the ratio
11360
+ * of width and height, it will be cropped to fit.
11361
+ * - crop: The image will be shrunk and cropped to fit within the area
11362
+ * specified by width and height. The image will not be enlarged. For images
11363
+ * smaller than the given dimensions it's the same as scale-down. For
11364
+ * images larger than the given dimensions, it's the same as cover.
11365
+ * See also trim.
11366
+ * - pad: Resizes to the maximum size that fits within the given width and
11367
+ * height, and then fills the remaining area with a background color
11368
+ * (white by default). Use of this mode is not recommended, as the same
11369
+ * effect can be more efficiently achieved with the contain mode and the
11370
+ * CSS object-fit: contain property.
11371
+ * - squeeze: Stretches and deforms to the width and height given, even if it
11372
+ * breaks aspect ratio
11373
+ */
11374
+ fit?: "scale-down" | "scale-up" | "contain" | "cover" | "crop" | "pad" | "squeeze";
11375
+ /**
11376
+ * Allows you to trim your image. Takes dpr into account and is performed before
11377
+ * resizing or rotation.
11378
+ *
11379
+ * It can be used as:
11380
+ * - left, top, right, bottom - it will specify the number of pixels to cut
11381
+ * off each side
11382
+ * - width, height - the width/height you'd like to end up with - can be used
11383
+ * in combination with the properties above
11384
+ * - border - this will automatically trim the surroundings of an image based on
11385
+ * it's color. It consists of three properties:
11386
+ * - color: rgb or hex representation of the color you wish to trim (todo: verify the rgba bit)
11387
+ * - tolerance: difference from color to treat as color
11388
+ * - keep: the number of pixels of border to keep
11389
+ */
11390
+ trim?: "border" | {
11391
+ top?: number;
11392
+ bottom?: number;
11393
+ left?: number;
11394
+ right?: number;
11395
+ width?: number;
11396
+ height?: number;
11397
+ border?: boolean | {
11398
+ color?: string;
11399
+ tolerance?: number;
11400
+ keep?: number;
11401
+ };
11402
+ };
11403
+ /**
11404
+ * Background color to add underneath the image. Applies only to images with
11405
+ * transparency (such as PNG). Accepts any CSS color (#RRGGBB, rgba(…),
11406
+ * hsl(…), etc.)
11407
+ */
11408
+ background?: string;
11409
+ /**
11410
+ * Flips the images horizontally, vertically, or both. Flipping is applied before
11411
+ * rotation, so if you apply flip=h,rotate=90 then the image will be flipped
11412
+ * horizontally, then rotated by 90 degrees.
11413
+ */
11414
+ flip?: 'h' | 'v' | 'hv';
11415
+ /**
11416
+ * Number of degrees (90, 180, 270) to rotate the image by. width and height
11417
+ * options refer to axes after rotation.
11418
+ */
11419
+ rotate?: 0 | 90 | 180 | 270 | 360;
11420
+ /**
11421
+ * Strength of sharpening filter to apply to the image. Floating-point
11422
+ * number between 0 (no sharpening, default) and 10 (maximum). 1.0 is a
11423
+ * recommended value for downscaled images.
11424
+ */
11425
+ sharpen?: number;
11426
+ /**
11427
+ * Radius of a blur filter (approximate gaussian). Maximum supported radius
11428
+ * is 250.
11429
+ */
11430
+ blur?: number;
11431
+ /**
11432
+ * Increase contrast by a factor. A value of 1.0 equals no change, a value of
11433
+ * 0.5 equals low contrast, and a value of 2.0 equals high contrast. 0 is
11434
+ * ignored.
11435
+ */
11436
+ contrast?: number;
11437
+ /**
11438
+ * Increase brightness by a factor. A value of 1.0 equals no change, a value
11439
+ * of 0.5 equals half brightness, and a value of 2.0 equals twice as bright.
11440
+ * 0 is ignored.
11441
+ */
11442
+ brightness?: number;
11443
+ /**
11444
+ * Increase exposure by a factor. A value of 1.0 equals no change, a value of
11445
+ * 0.5 darkens the image, and a value of 2.0 lightens the image. 0 is ignored.
11446
+ */
11447
+ gamma?: number;
11448
+ /**
11449
+ * Increase contrast by a factor. A value of 1.0 equals no change, a value of
11450
+ * 0.5 equals low contrast, and a value of 2.0 equals high contrast. 0 is
11451
+ * ignored.
11452
+ */
11453
+ saturation?: number;
11454
+ /**
11455
+ * Device Pixel Ratio. Default 1. Multiplier for width/height that makes it
11456
+ * easier to specify higher-DPI sizes in <img srcset>.
11457
+ */
11458
+ dpr?: number;
11459
+ /**
11460
+ * Adds a border around the image. The border is added after resizing. Border
11461
+ * width takes dpr into account, and can be specified either using a single
11462
+ * width property, or individually for each side.
11463
+ */
11464
+ border?: {
11465
+ color: string;
11466
+ width: number;
11467
+ } | {
11468
+ color: string;
11469
+ top: number;
11470
+ right: number;
11471
+ bottom: number;
11472
+ left: number;
11473
+ };
11474
+ /**
11475
+ * Image segmentation using artificial intelligence models. Sets pixels not
11476
+ * within selected segment area to transparent e.g "foreground" sets every
11477
+ * background pixel as transparent.
11478
+ */
11479
+ segment?: "foreground";
11480
+ /**
11481
+ * Controls the algorithm used when an image needs to be enlarged. This
11482
+ * parameter works with any fit mode that upscales, such as `contain`,
11483
+ * `cover`, and `scale-up`. It has no effect when `fit=scale-down` or when
11484
+ * the target dimensions are smaller than the source.
11485
+ * - interpolate: Uses bicubic interpolation, which may reduce image quality.
11486
+ * This is the default behavior when `upscale` is not specified.
11487
+ * - generate: Uses AI upscaling to produce sharper, more detailed results
11488
+ * when enlarging images.
11489
+ */
11490
+ upscale?: "interpolate" | "generate";
11491
+ }
11492
+ interface BasicImageTransformationsGravityCoordinates {
11493
+ x?: number;
11494
+ y?: number;
11495
+ mode?: 'remainder' | 'box-center';
11496
+ }
11242
11497
  interface RequestInitCfPropertiesImageDraw extends BasicImageTransformations {
11243
11498
  /**
11244
11499
  * Absolute URL of the image file to use for the drawing. It can be any of
@@ -11293,39 +11548,6 @@ interface RequestInitCfPropertiesImageDraw extends BasicImageTransformations {
11293
11548
  right?: number;
11294
11549
  }
11295
11550
  interface RequestInitCfPropertiesImage extends BasicImageTransformations {
11296
- /**
11297
- * Device Pixel Ratio. Default 1. Multiplier for width/height that makes it
11298
- * easier to specify higher-DPI sizes in <img srcset>.
11299
- */
11300
- dpr?: number;
11301
- /**
11302
- * Allows you to trim your image. Takes dpr into account and is performed before
11303
- * resizing or rotation.
11304
- *
11305
- * It can be used as:
11306
- * - left, top, right, bottom - it will specify the number of pixels to cut
11307
- * off each side
11308
- * - width, height - the width/height you'd like to end up with - can be used
11309
- * in combination with the properties above
11310
- * - border - this will automatically trim the surroundings of an image based on
11311
- * it's color. It consists of three properties:
11312
- * - color: rgb or hex representation of the color you wish to trim (todo: verify the rgba bit)
11313
- * - tolerance: difference from color to treat as color
11314
- * - keep: the number of pixels of border to keep
11315
- */
11316
- trim?: "border" | {
11317
- top?: number;
11318
- bottom?: number;
11319
- left?: number;
11320
- right?: number;
11321
- width?: number;
11322
- height?: number;
11323
- border?: boolean | {
11324
- color?: string;
11325
- tolerance?: number;
11326
- keep?: number;
11327
- };
11328
- };
11329
11551
  /**
11330
11552
  * Quality setting from 1-100 (useful values are in 60-90 range). Lower values
11331
11553
  * make images look worse, but load faster. The default is 85. It applies only
@@ -11367,17 +11589,6 @@ interface RequestInitCfPropertiesImage extends BasicImageTransformations {
11367
11589
  * output formats always discard metadata.
11368
11590
  */
11369
11591
  metadata?: "keep" | "copyright" | "none";
11370
- /**
11371
- * Strength of sharpening filter to apply to the image. Floating-point
11372
- * number between 0 (no sharpening, default) and 10 (maximum). 1.0 is a
11373
- * recommended value for downscaled images.
11374
- */
11375
- sharpen?: number;
11376
- /**
11377
- * Radius of a blur filter (approximate gaussian). Maximum supported radius
11378
- * is 250.
11379
- */
11380
- blur?: number;
11381
11592
  /**
11382
11593
  * Overlays are drawn in the order they appear in the array (last array
11383
11594
  * entry is the topmost layer).
@@ -11389,50 +11600,6 @@ interface RequestInitCfPropertiesImage extends BasicImageTransformations {
11389
11600
  * the origin.
11390
11601
  */
11391
11602
  "origin-auth"?: "share-publicly";
11392
- /**
11393
- * Adds a border around the image. The border is added after resizing. Border
11394
- * width takes dpr into account, and can be specified either using a single
11395
- * width property, or individually for each side.
11396
- */
11397
- border?: {
11398
- color: string;
11399
- width: number;
11400
- } | {
11401
- color: string;
11402
- top: number;
11403
- right: number;
11404
- bottom: number;
11405
- left: number;
11406
- };
11407
- /**
11408
- * Increase brightness by a factor. A value of 1.0 equals no change, a value
11409
- * of 0.5 equals half brightness, and a value of 2.0 equals twice as bright.
11410
- * 0 is ignored.
11411
- */
11412
- brightness?: number;
11413
- /**
11414
- * Increase contrast by a factor. A value of 1.0 equals no change, a value of
11415
- * 0.5 equals low contrast, and a value of 2.0 equals high contrast. 0 is
11416
- * ignored.
11417
- */
11418
- contrast?: number;
11419
- /**
11420
- * Increase exposure by a factor. A value of 1.0 equals no change, a value of
11421
- * 0.5 darkens the image, and a value of 2.0 lightens the image. 0 is ignored.
11422
- */
11423
- gamma?: number;
11424
- /**
11425
- * Increase contrast by a factor. A value of 1.0 equals no change, a value of
11426
- * 0.5 equals low contrast, and a value of 2.0 equals high contrast. 0 is
11427
- * ignored.
11428
- */
11429
- saturation?: number;
11430
- /**
11431
- * Flips the images horizontally, vertically, or both. Flipping is applied before
11432
- * rotation, so if you apply flip=h,rotate=90 then the image will be flipped
11433
- * horizontally, then rotated by 90 degrees.
11434
- */
11435
- flip?: 'h' | 'v' | 'hv';
11436
11603
  /**
11437
11604
  * Slightly reduces latency on a cache miss by selecting a
11438
11605
  * quickest-to-compress file format, at a cost of increased file size and
@@ -12921,6 +13088,7 @@ declare namespace CloudflareWorkersModule {
12921
13088
  timeout?: WorkflowTimeoutDuration | number;
12922
13089
  sensitive?: WorkflowStepSensitivity;
12923
13090
  };
13091
+ export type WorkflowStepRollbackConfig = Pick<WorkflowStepConfig, 'retries' | 'timeout'>;
12924
13092
  export type WorkflowCronSchedule = {
12925
13093
  /** Cron expression that triggered this event. */
12926
13094
  cron: string;
@@ -12949,14 +13117,16 @@ declare namespace CloudflareWorkersModule {
12949
13117
  config: WorkflowStepConfig;
12950
13118
  };
12951
13119
  export type WorkflowRollbackContext<T = unknown> = {
13120
+ ctx: WorkflowStepContext;
12952
13121
  error: Error;
12953
13122
  output: T | undefined;
13123
+ /** @deprecated Use `ctx.step.name` and `ctx.step.count` instead. */
12954
13124
  stepName: string;
12955
13125
  };
12956
13126
  export type WorkflowRollbackHandler<T = unknown> = (ctx: WorkflowRollbackContext<T>) => Promise<void>;
12957
13127
  export type WorkflowStepRollbackOptions<T = unknown> = {
12958
- rollback?: WorkflowRollbackHandler<T>;
12959
- rollbackConfig?: WorkflowStepConfig;
13128
+ rollback: WorkflowRollbackHandler<T>;
13129
+ rollbackConfig?: WorkflowStepRollbackConfig;
12960
13130
  };
12961
13131
  export abstract class WorkflowStep {
12962
13132
  do<T extends Rpc.Serializable<T>>(name: string, callback: (ctx: WorkflowStepContext) => Promise<T>, rollbackOptions?: WorkflowStepRollbackOptions<T>): Promise<T>;
@@ -13851,7 +14021,7 @@ declare namespace TailStream {
13851
14021
  interface ConnectEventInfo {
13852
14022
  readonly type: "connect";
13853
14023
  }
13854
- type EventOutcome = "ok" | "canceled" | "exception" | "unknown" | "killSwitch" | "daemonDown" | "exceededCpu" | "exceededMemory" | "loadShed" | "responseStreamDisconnected" | "scriptNotFound" | "internalError";
14024
+ type EventOutcome = "ok" | "canceled" | "exception" | "unknown" | "killSwitch" | "daemonDown" | "exceededCpu" | "exceededMemory" | "loadShed" | "responseStreamDisconnected" | "scriptNotFound" | "internalError" | "exceededWallTime";
13855
14025
  interface ScriptVersion {
13856
14026
  readonly id: string;
13857
14027
  readonly tag?: string;
@@ -54,11 +54,11 @@
54
54
  "types": "./dist/index.d.ts"
55
55
  },
56
56
  "devDependencies": {
57
- "@hono/node-server": "^2.0.4",
57
+ "@hono/node-server": "^2.0.8",
58
58
  "consola": "^3.4.2",
59
- "hono": "^4.12.25",
60
- "tsdown": "0.22.2",
61
- "wrangler": "^4.99.0",
59
+ "hono": "^4.12.27",
60
+ "tsdown": "0.22.3",
61
+ "wrangler": "^4.107.0",
62
62
  "zod": "^4.4.3"
63
63
  }
64
64
  }