@cloudflare/workers-types 5.20260817.1 → 5.20260819.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/experimental/index.d.ts +5 -1
- package/experimental/index.ts +5 -1
- package/index.d.ts +23 -4
- package/index.ts +23 -4
- package/package.json +1 -1
package/experimental/index.d.ts
CHANGED
|
@@ -14897,11 +14897,15 @@ interface ImageTransformer {
|
|
|
14897
14897
|
type ImageTransformationOutputOptions = {
|
|
14898
14898
|
encoding?: "base64";
|
|
14899
14899
|
};
|
|
14900
|
+
type ImageTransformationResponseOptions = {
|
|
14901
|
+
headers?: HeadersInit;
|
|
14902
|
+
};
|
|
14900
14903
|
interface ImageTransformationResult {
|
|
14901
14904
|
/**
|
|
14902
14905
|
* The image as a response, ready to store in cache or return to users
|
|
14906
|
+
* @param options Options that apply to the returned response, e.g. additional headers
|
|
14903
14907
|
*/
|
|
14904
|
-
response(): Response;
|
|
14908
|
+
response(options?: ImageTransformationResponseOptions): Response;
|
|
14905
14909
|
/**
|
|
14906
14910
|
* The content type of the returned image
|
|
14907
14911
|
*/
|
package/experimental/index.ts
CHANGED
|
@@ -14914,11 +14914,15 @@ export interface ImageTransformer {
|
|
|
14914
14914
|
export type ImageTransformationOutputOptions = {
|
|
14915
14915
|
encoding?: "base64";
|
|
14916
14916
|
};
|
|
14917
|
+
export type ImageTransformationResponseOptions = {
|
|
14918
|
+
headers?: HeadersInit;
|
|
14919
|
+
};
|
|
14917
14920
|
export interface ImageTransformationResult {
|
|
14918
14921
|
/**
|
|
14919
14922
|
* The image as a response, ready to store in cache or return to users
|
|
14923
|
+
* @param options Options that apply to the returned response, e.g. additional headers
|
|
14920
14924
|
*/
|
|
14921
|
-
response(): Response;
|
|
14925
|
+
response(options?: ImageTransformationResponseOptions): Response;
|
|
14922
14926
|
/**
|
|
14923
14927
|
* The content type of the returned image
|
|
14924
14928
|
*/
|
package/index.d.ts
CHANGED
|
@@ -4003,14 +4003,29 @@ interface ContainerSnapshotRestoreParams {
|
|
|
4003
4003
|
interface ContainerSnapshotOptions {
|
|
4004
4004
|
name?: string;
|
|
4005
4005
|
}
|
|
4006
|
-
|
|
4006
|
+
type ContainerStartupOptions = {
|
|
4007
4007
|
entrypoint?: string[];
|
|
4008
4008
|
enableInternet: boolean;
|
|
4009
4009
|
env?: Record<string, string>;
|
|
4010
|
+
instance?:
|
|
4011
|
+
| "lite"
|
|
4012
|
+
| "standard-1"
|
|
4013
|
+
| "standard-2"
|
|
4014
|
+
| "standard-3"
|
|
4015
|
+
| "standard-4"
|
|
4016
|
+
| ContainerStartResources;
|
|
4010
4017
|
labels?: Record<string, string>;
|
|
4011
4018
|
directorySnapshots?: ContainerDirectorySnapshotRestoreParams[];
|
|
4012
|
-
|
|
4013
|
-
|
|
4019
|
+
} & (
|
|
4020
|
+
| {
|
|
4021
|
+
image: string;
|
|
4022
|
+
containerSnapshot?: never;
|
|
4023
|
+
}
|
|
4024
|
+
| {
|
|
4025
|
+
image?: never;
|
|
4026
|
+
containerSnapshot?: ContainerSnapshotRestoreParams;
|
|
4027
|
+
}
|
|
4028
|
+
);
|
|
4014
4029
|
interface ContainerStartResources {
|
|
4015
4030
|
vcpu: number;
|
|
4016
4031
|
memoryMib: number;
|
|
@@ -14607,11 +14622,15 @@ interface ImageTransformer {
|
|
|
14607
14622
|
type ImageTransformationOutputOptions = {
|
|
14608
14623
|
encoding?: "base64";
|
|
14609
14624
|
};
|
|
14625
|
+
type ImageTransformationResponseOptions = {
|
|
14626
|
+
headers?: HeadersInit;
|
|
14627
|
+
};
|
|
14610
14628
|
interface ImageTransformationResult {
|
|
14611
14629
|
/**
|
|
14612
14630
|
* The image as a response, ready to store in cache or return to users
|
|
14631
|
+
* @param options Options that apply to the returned response, e.g. additional headers
|
|
14613
14632
|
*/
|
|
14614
|
-
response(): Response;
|
|
14633
|
+
response(options?: ImageTransformationResponseOptions): Response;
|
|
14615
14634
|
/**
|
|
14616
14635
|
* The content type of the returned image
|
|
14617
14636
|
*/
|
package/index.ts
CHANGED
|
@@ -4012,14 +4012,29 @@ export interface ContainerSnapshotRestoreParams {
|
|
|
4012
4012
|
export interface ContainerSnapshotOptions {
|
|
4013
4013
|
name?: string;
|
|
4014
4014
|
}
|
|
4015
|
-
export
|
|
4015
|
+
export type ContainerStartupOptions = {
|
|
4016
4016
|
entrypoint?: string[];
|
|
4017
4017
|
enableInternet: boolean;
|
|
4018
4018
|
env?: Record<string, string>;
|
|
4019
|
+
instance?:
|
|
4020
|
+
| "lite"
|
|
4021
|
+
| "standard-1"
|
|
4022
|
+
| "standard-2"
|
|
4023
|
+
| "standard-3"
|
|
4024
|
+
| "standard-4"
|
|
4025
|
+
| ContainerStartResources;
|
|
4019
4026
|
labels?: Record<string, string>;
|
|
4020
4027
|
directorySnapshots?: ContainerDirectorySnapshotRestoreParams[];
|
|
4021
|
-
|
|
4022
|
-
|
|
4028
|
+
} & (
|
|
4029
|
+
| {
|
|
4030
|
+
image: string;
|
|
4031
|
+
containerSnapshot?: never;
|
|
4032
|
+
}
|
|
4033
|
+
| {
|
|
4034
|
+
image?: never;
|
|
4035
|
+
containerSnapshot?: ContainerSnapshotRestoreParams;
|
|
4036
|
+
}
|
|
4037
|
+
);
|
|
4023
4038
|
export interface ContainerStartResources {
|
|
4024
4039
|
vcpu: number;
|
|
4025
4040
|
memoryMib: number;
|
|
@@ -14624,11 +14639,15 @@ export interface ImageTransformer {
|
|
|
14624
14639
|
export type ImageTransformationOutputOptions = {
|
|
14625
14640
|
encoding?: "base64";
|
|
14626
14641
|
};
|
|
14642
|
+
export type ImageTransformationResponseOptions = {
|
|
14643
|
+
headers?: HeadersInit;
|
|
14644
|
+
};
|
|
14627
14645
|
export interface ImageTransformationResult {
|
|
14628
14646
|
/**
|
|
14629
14647
|
* The image as a response, ready to store in cache or return to users
|
|
14648
|
+
* @param options Options that apply to the returned response, e.g. additional headers
|
|
14630
14649
|
*/
|
|
14631
|
-
response(): Response;
|
|
14650
|
+
response(options?: ImageTransformationResponseOptions): Response;
|
|
14632
14651
|
/**
|
|
14633
14652
|
* The content type of the returned image
|
|
14634
14653
|
*/
|
package/package.json
CHANGED