@cloudflare/workers-types 4.20240404.0 → 4.20240419.0
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/2021-11-03/index.d.ts +13 -5
- package/2021-11-03/index.ts +13 -5
- package/2022-01-31/index.d.ts +13 -5
- package/2022-01-31/index.ts +13 -5
- package/2022-03-21/index.d.ts +13 -5
- package/2022-03-21/index.ts +13 -5
- package/2022-08-04/index.d.ts +13 -5
- package/2022-08-04/index.ts +13 -5
- package/2022-10-31/index.d.ts +13 -5
- package/2022-10-31/index.ts +13 -5
- package/2022-11-30/index.d.ts +13 -5
- package/2022-11-30/index.ts +13 -5
- package/2023-03-01/index.d.ts +13 -5
- package/2023-03-01/index.ts +13 -5
- package/2023-07-01/index.d.ts +13 -5
- package/2023-07-01/index.ts +13 -5
- package/experimental/index.d.ts +13 -5
- package/experimental/index.ts +13 -5
- package/index.d.ts +13 -5
- package/index.ts +13 -5
- package/oldest/index.d.ts +13 -5
- package/oldest/index.ts +13 -5
- package/package.json +1 -1
package/2021-11-03/index.d.ts
CHANGED
|
@@ -1673,6 +1673,7 @@ declare abstract class R2Object {
|
|
|
1673
1673
|
readonly httpMetadata?: R2HTTPMetadata;
|
|
1674
1674
|
readonly customMetadata?: Record<string, string>;
|
|
1675
1675
|
readonly range?: R2Range;
|
|
1676
|
+
readonly storageClass: string;
|
|
1676
1677
|
writeHttpMetadata(headers: Headers): void;
|
|
1677
1678
|
}
|
|
1678
1679
|
declare interface R2ObjectBody extends R2Object {
|
|
@@ -1715,10 +1716,12 @@ declare interface R2PutOptions {
|
|
|
1715
1716
|
sha256?: ArrayBuffer | string;
|
|
1716
1717
|
sha384?: ArrayBuffer | string;
|
|
1717
1718
|
sha512?: ArrayBuffer | string;
|
|
1719
|
+
storageClass?: string;
|
|
1718
1720
|
}
|
|
1719
1721
|
declare interface R2MultipartOptions {
|
|
1720
1722
|
httpMetadata?: R2HTTPMetadata | Headers;
|
|
1721
1723
|
customMetadata?: Record<string, string>;
|
|
1724
|
+
storageClass?: string;
|
|
1722
1725
|
}
|
|
1723
1726
|
declare interface R2Checksums {
|
|
1724
1727
|
readonly md5?: ArrayBuffer;
|
|
@@ -2061,15 +2064,20 @@ declare class DecompressionStream extends TransformStream<
|
|
|
2061
2064
|
}
|
|
2062
2065
|
declare class TextEncoderStream extends TransformStream<string, Uint8Array> {
|
|
2063
2066
|
constructor();
|
|
2067
|
+
get encoding(): string;
|
|
2064
2068
|
}
|
|
2065
2069
|
declare class TextDecoderStream extends TransformStream<
|
|
2066
2070
|
ArrayBuffer | ArrayBufferView,
|
|
2067
2071
|
string
|
|
2068
2072
|
> {
|
|
2069
2073
|
constructor(label?: string, options?: TextDecoderStreamTextDecoderStreamInit);
|
|
2074
|
+
get encoding(): string;
|
|
2075
|
+
get fatal(): boolean;
|
|
2076
|
+
get ignoreBOM(): boolean;
|
|
2070
2077
|
}
|
|
2071
2078
|
declare interface TextDecoderStreamTextDecoderStreamInit {
|
|
2072
2079
|
fatal?: boolean;
|
|
2080
|
+
ignoreBOM?: boolean;
|
|
2073
2081
|
}
|
|
2074
2082
|
declare class ByteLengthQueuingStrategy
|
|
2075
2083
|
implements QueuingStrategy<ArrayBufferView>
|
|
@@ -4075,7 +4083,7 @@ declare interface Hyperdrive {
|
|
|
4075
4083
|
/*
|
|
4076
4084
|
* The port that must be paired the the host field when connecting.
|
|
4077
4085
|
*/
|
|
4078
|
-
readonly port:
|
|
4086
|
+
readonly port: number;
|
|
4079
4087
|
/*
|
|
4080
4088
|
* The username to use when authenticating to your database via Hyperdrive.
|
|
4081
4089
|
* Unlike the host and password, this will be the same every time
|
|
@@ -4181,10 +4189,10 @@ declare namespace Rpc {
|
|
|
4181
4189
|
// TypeScript uses *structural* typing meaning anything with the same shape as type `T` is a `T`.
|
|
4182
4190
|
// For the classes exported by `cloudflare:workers` we want *nominal* typing (i.e. we only want to
|
|
4183
4191
|
// accept `WorkerEntrypoint` from `cloudflare:workers`, not any other class with the same shape)
|
|
4184
|
-
export const __RPC_STUB_BRAND:
|
|
4185
|
-
export const __RPC_TARGET_BRAND:
|
|
4186
|
-
export const __WORKER_ENTRYPOINT_BRAND:
|
|
4187
|
-
export const __DURABLE_OBJECT_BRAND:
|
|
4192
|
+
export const __RPC_STUB_BRAND: "__RPC_STUB_BRAND";
|
|
4193
|
+
export const __RPC_TARGET_BRAND: "__RPC_TARGET_BRAND";
|
|
4194
|
+
export const __WORKER_ENTRYPOINT_BRAND: "__WORKER_ENTRYPOINT_BRAND";
|
|
4195
|
+
export const __DURABLE_OBJECT_BRAND: "__DURABLE_OBJECT_BRAND";
|
|
4188
4196
|
export interface RpcTargetBranded {
|
|
4189
4197
|
[__RPC_TARGET_BRAND]: never;
|
|
4190
4198
|
}
|
package/2021-11-03/index.ts
CHANGED
|
@@ -1675,6 +1675,7 @@ export declare abstract class R2Object {
|
|
|
1675
1675
|
readonly httpMetadata?: R2HTTPMetadata;
|
|
1676
1676
|
readonly customMetadata?: Record<string, string>;
|
|
1677
1677
|
readonly range?: R2Range;
|
|
1678
|
+
readonly storageClass: string;
|
|
1678
1679
|
writeHttpMetadata(headers: Headers): void;
|
|
1679
1680
|
}
|
|
1680
1681
|
export interface R2ObjectBody extends R2Object {
|
|
@@ -1717,10 +1718,12 @@ export interface R2PutOptions {
|
|
|
1717
1718
|
sha256?: ArrayBuffer | string;
|
|
1718
1719
|
sha384?: ArrayBuffer | string;
|
|
1719
1720
|
sha512?: ArrayBuffer | string;
|
|
1721
|
+
storageClass?: string;
|
|
1720
1722
|
}
|
|
1721
1723
|
export interface R2MultipartOptions {
|
|
1722
1724
|
httpMetadata?: R2HTTPMetadata | Headers;
|
|
1723
1725
|
customMetadata?: Record<string, string>;
|
|
1726
|
+
storageClass?: string;
|
|
1724
1727
|
}
|
|
1725
1728
|
export interface R2Checksums {
|
|
1726
1729
|
readonly md5?: ArrayBuffer;
|
|
@@ -2066,15 +2069,20 @@ export declare class TextEncoderStream extends TransformStream<
|
|
|
2066
2069
|
Uint8Array
|
|
2067
2070
|
> {
|
|
2068
2071
|
constructor();
|
|
2072
|
+
get encoding(): string;
|
|
2069
2073
|
}
|
|
2070
2074
|
export declare class TextDecoderStream extends TransformStream<
|
|
2071
2075
|
ArrayBuffer | ArrayBufferView,
|
|
2072
2076
|
string
|
|
2073
2077
|
> {
|
|
2074
2078
|
constructor(label?: string, options?: TextDecoderStreamTextDecoderStreamInit);
|
|
2079
|
+
get encoding(): string;
|
|
2080
|
+
get fatal(): boolean;
|
|
2081
|
+
get ignoreBOM(): boolean;
|
|
2075
2082
|
}
|
|
2076
2083
|
export interface TextDecoderStreamTextDecoderStreamInit {
|
|
2077
2084
|
fatal?: boolean;
|
|
2085
|
+
ignoreBOM?: boolean;
|
|
2078
2086
|
}
|
|
2079
2087
|
export declare class ByteLengthQueuingStrategy
|
|
2080
2088
|
implements QueuingStrategy<ArrayBufferView>
|
|
@@ -4073,7 +4081,7 @@ export interface Hyperdrive {
|
|
|
4073
4081
|
/*
|
|
4074
4082
|
* The port that must be paired the the host field when connecting.
|
|
4075
4083
|
*/
|
|
4076
|
-
readonly port:
|
|
4084
|
+
readonly port: number;
|
|
4077
4085
|
/*
|
|
4078
4086
|
* The username to use when authenticating to your database via Hyperdrive.
|
|
4079
4087
|
* Unlike the host and password, this will be the same every time
|
|
@@ -4176,10 +4184,10 @@ export declare namespace Rpc {
|
|
|
4176
4184
|
// TypeScript uses *structural* typing meaning anything with the same shape as type `T` is a `T`.
|
|
4177
4185
|
// For the classes exported by `cloudflare:workers` we want *nominal* typing (i.e. we only want to
|
|
4178
4186
|
// accept `WorkerEntrypoint` from `cloudflare:workers`, not any other class with the same shape)
|
|
4179
|
-
export const __RPC_STUB_BRAND:
|
|
4180
|
-
export const __RPC_TARGET_BRAND:
|
|
4181
|
-
export const __WORKER_ENTRYPOINT_BRAND:
|
|
4182
|
-
export const __DURABLE_OBJECT_BRAND:
|
|
4187
|
+
export const __RPC_STUB_BRAND: "__RPC_STUB_BRAND";
|
|
4188
|
+
export const __RPC_TARGET_BRAND: "__RPC_TARGET_BRAND";
|
|
4189
|
+
export const __WORKER_ENTRYPOINT_BRAND: "__WORKER_ENTRYPOINT_BRAND";
|
|
4190
|
+
export const __DURABLE_OBJECT_BRAND: "__DURABLE_OBJECT_BRAND";
|
|
4183
4191
|
export interface RpcTargetBranded {
|
|
4184
4192
|
[__RPC_TARGET_BRAND]: never;
|
|
4185
4193
|
}
|
package/2022-01-31/index.d.ts
CHANGED
|
@@ -1679,6 +1679,7 @@ declare abstract class R2Object {
|
|
|
1679
1679
|
readonly httpMetadata?: R2HTTPMetadata;
|
|
1680
1680
|
readonly customMetadata?: Record<string, string>;
|
|
1681
1681
|
readonly range?: R2Range;
|
|
1682
|
+
readonly storageClass: string;
|
|
1682
1683
|
writeHttpMetadata(headers: Headers): void;
|
|
1683
1684
|
}
|
|
1684
1685
|
declare interface R2ObjectBody extends R2Object {
|
|
@@ -1721,10 +1722,12 @@ declare interface R2PutOptions {
|
|
|
1721
1722
|
sha256?: ArrayBuffer | string;
|
|
1722
1723
|
sha384?: ArrayBuffer | string;
|
|
1723
1724
|
sha512?: ArrayBuffer | string;
|
|
1725
|
+
storageClass?: string;
|
|
1724
1726
|
}
|
|
1725
1727
|
declare interface R2MultipartOptions {
|
|
1726
1728
|
httpMetadata?: R2HTTPMetadata | Headers;
|
|
1727
1729
|
customMetadata?: Record<string, string>;
|
|
1730
|
+
storageClass?: string;
|
|
1728
1731
|
}
|
|
1729
1732
|
declare interface R2Checksums {
|
|
1730
1733
|
readonly md5?: ArrayBuffer;
|
|
@@ -2067,15 +2070,20 @@ declare class DecompressionStream extends TransformStream<
|
|
|
2067
2070
|
}
|
|
2068
2071
|
declare class TextEncoderStream extends TransformStream<string, Uint8Array> {
|
|
2069
2072
|
constructor();
|
|
2073
|
+
get encoding(): string;
|
|
2070
2074
|
}
|
|
2071
2075
|
declare class TextDecoderStream extends TransformStream<
|
|
2072
2076
|
ArrayBuffer | ArrayBufferView,
|
|
2073
2077
|
string
|
|
2074
2078
|
> {
|
|
2075
2079
|
constructor(label?: string, options?: TextDecoderStreamTextDecoderStreamInit);
|
|
2080
|
+
get encoding(): string;
|
|
2081
|
+
get fatal(): boolean;
|
|
2082
|
+
get ignoreBOM(): boolean;
|
|
2076
2083
|
}
|
|
2077
2084
|
declare interface TextDecoderStreamTextDecoderStreamInit {
|
|
2078
2085
|
fatal?: boolean;
|
|
2086
|
+
ignoreBOM?: boolean;
|
|
2079
2087
|
}
|
|
2080
2088
|
declare class ByteLengthQueuingStrategy
|
|
2081
2089
|
implements QueuingStrategy<ArrayBufferView>
|
|
@@ -4101,7 +4109,7 @@ declare interface Hyperdrive {
|
|
|
4101
4109
|
/*
|
|
4102
4110
|
* The port that must be paired the the host field when connecting.
|
|
4103
4111
|
*/
|
|
4104
|
-
readonly port:
|
|
4112
|
+
readonly port: number;
|
|
4105
4113
|
/*
|
|
4106
4114
|
* The username to use when authenticating to your database via Hyperdrive.
|
|
4107
4115
|
* Unlike the host and password, this will be the same every time
|
|
@@ -4207,10 +4215,10 @@ declare namespace Rpc {
|
|
|
4207
4215
|
// TypeScript uses *structural* typing meaning anything with the same shape as type `T` is a `T`.
|
|
4208
4216
|
// For the classes exported by `cloudflare:workers` we want *nominal* typing (i.e. we only want to
|
|
4209
4217
|
// accept `WorkerEntrypoint` from `cloudflare:workers`, not any other class with the same shape)
|
|
4210
|
-
export const __RPC_STUB_BRAND:
|
|
4211
|
-
export const __RPC_TARGET_BRAND:
|
|
4212
|
-
export const __WORKER_ENTRYPOINT_BRAND:
|
|
4213
|
-
export const __DURABLE_OBJECT_BRAND:
|
|
4218
|
+
export const __RPC_STUB_BRAND: "__RPC_STUB_BRAND";
|
|
4219
|
+
export const __RPC_TARGET_BRAND: "__RPC_TARGET_BRAND";
|
|
4220
|
+
export const __WORKER_ENTRYPOINT_BRAND: "__WORKER_ENTRYPOINT_BRAND";
|
|
4221
|
+
export const __DURABLE_OBJECT_BRAND: "__DURABLE_OBJECT_BRAND";
|
|
4214
4222
|
export interface RpcTargetBranded {
|
|
4215
4223
|
[__RPC_TARGET_BRAND]: never;
|
|
4216
4224
|
}
|
package/2022-01-31/index.ts
CHANGED
|
@@ -1681,6 +1681,7 @@ export declare abstract class R2Object {
|
|
|
1681
1681
|
readonly httpMetadata?: R2HTTPMetadata;
|
|
1682
1682
|
readonly customMetadata?: Record<string, string>;
|
|
1683
1683
|
readonly range?: R2Range;
|
|
1684
|
+
readonly storageClass: string;
|
|
1684
1685
|
writeHttpMetadata(headers: Headers): void;
|
|
1685
1686
|
}
|
|
1686
1687
|
export interface R2ObjectBody extends R2Object {
|
|
@@ -1723,10 +1724,12 @@ export interface R2PutOptions {
|
|
|
1723
1724
|
sha256?: ArrayBuffer | string;
|
|
1724
1725
|
sha384?: ArrayBuffer | string;
|
|
1725
1726
|
sha512?: ArrayBuffer | string;
|
|
1727
|
+
storageClass?: string;
|
|
1726
1728
|
}
|
|
1727
1729
|
export interface R2MultipartOptions {
|
|
1728
1730
|
httpMetadata?: R2HTTPMetadata | Headers;
|
|
1729
1731
|
customMetadata?: Record<string, string>;
|
|
1732
|
+
storageClass?: string;
|
|
1730
1733
|
}
|
|
1731
1734
|
export interface R2Checksums {
|
|
1732
1735
|
readonly md5?: ArrayBuffer;
|
|
@@ -2072,15 +2075,20 @@ export declare class TextEncoderStream extends TransformStream<
|
|
|
2072
2075
|
Uint8Array
|
|
2073
2076
|
> {
|
|
2074
2077
|
constructor();
|
|
2078
|
+
get encoding(): string;
|
|
2075
2079
|
}
|
|
2076
2080
|
export declare class TextDecoderStream extends TransformStream<
|
|
2077
2081
|
ArrayBuffer | ArrayBufferView,
|
|
2078
2082
|
string
|
|
2079
2083
|
> {
|
|
2080
2084
|
constructor(label?: string, options?: TextDecoderStreamTextDecoderStreamInit);
|
|
2085
|
+
get encoding(): string;
|
|
2086
|
+
get fatal(): boolean;
|
|
2087
|
+
get ignoreBOM(): boolean;
|
|
2081
2088
|
}
|
|
2082
2089
|
export interface TextDecoderStreamTextDecoderStreamInit {
|
|
2083
2090
|
fatal?: boolean;
|
|
2091
|
+
ignoreBOM?: boolean;
|
|
2084
2092
|
}
|
|
2085
2093
|
export declare class ByteLengthQueuingStrategy
|
|
2086
2094
|
implements QueuingStrategy<ArrayBufferView>
|
|
@@ -4099,7 +4107,7 @@ export interface Hyperdrive {
|
|
|
4099
4107
|
/*
|
|
4100
4108
|
* The port that must be paired the the host field when connecting.
|
|
4101
4109
|
*/
|
|
4102
|
-
readonly port:
|
|
4110
|
+
readonly port: number;
|
|
4103
4111
|
/*
|
|
4104
4112
|
* The username to use when authenticating to your database via Hyperdrive.
|
|
4105
4113
|
* Unlike the host and password, this will be the same every time
|
|
@@ -4202,10 +4210,10 @@ export declare namespace Rpc {
|
|
|
4202
4210
|
// TypeScript uses *structural* typing meaning anything with the same shape as type `T` is a `T`.
|
|
4203
4211
|
// For the classes exported by `cloudflare:workers` we want *nominal* typing (i.e. we only want to
|
|
4204
4212
|
// accept `WorkerEntrypoint` from `cloudflare:workers`, not any other class with the same shape)
|
|
4205
|
-
export const __RPC_STUB_BRAND:
|
|
4206
|
-
export const __RPC_TARGET_BRAND:
|
|
4207
|
-
export const __WORKER_ENTRYPOINT_BRAND:
|
|
4208
|
-
export const __DURABLE_OBJECT_BRAND:
|
|
4213
|
+
export const __RPC_STUB_BRAND: "__RPC_STUB_BRAND";
|
|
4214
|
+
export const __RPC_TARGET_BRAND: "__RPC_TARGET_BRAND";
|
|
4215
|
+
export const __WORKER_ENTRYPOINT_BRAND: "__WORKER_ENTRYPOINT_BRAND";
|
|
4216
|
+
export const __DURABLE_OBJECT_BRAND: "__DURABLE_OBJECT_BRAND";
|
|
4209
4217
|
export interface RpcTargetBranded {
|
|
4210
4218
|
[__RPC_TARGET_BRAND]: never;
|
|
4211
4219
|
}
|
package/2022-03-21/index.d.ts
CHANGED
|
@@ -1696,6 +1696,7 @@ declare abstract class R2Object {
|
|
|
1696
1696
|
readonly httpMetadata?: R2HTTPMetadata;
|
|
1697
1697
|
readonly customMetadata?: Record<string, string>;
|
|
1698
1698
|
readonly range?: R2Range;
|
|
1699
|
+
readonly storageClass: string;
|
|
1699
1700
|
writeHttpMetadata(headers: Headers): void;
|
|
1700
1701
|
}
|
|
1701
1702
|
declare interface R2ObjectBody extends R2Object {
|
|
@@ -1738,10 +1739,12 @@ declare interface R2PutOptions {
|
|
|
1738
1739
|
sha256?: ArrayBuffer | string;
|
|
1739
1740
|
sha384?: ArrayBuffer | string;
|
|
1740
1741
|
sha512?: ArrayBuffer | string;
|
|
1742
|
+
storageClass?: string;
|
|
1741
1743
|
}
|
|
1742
1744
|
declare interface R2MultipartOptions {
|
|
1743
1745
|
httpMetadata?: R2HTTPMetadata | Headers;
|
|
1744
1746
|
customMetadata?: Record<string, string>;
|
|
1747
|
+
storageClass?: string;
|
|
1745
1748
|
}
|
|
1746
1749
|
declare interface R2Checksums {
|
|
1747
1750
|
readonly md5?: ArrayBuffer;
|
|
@@ -2084,15 +2087,20 @@ declare class DecompressionStream extends TransformStream<
|
|
|
2084
2087
|
}
|
|
2085
2088
|
declare class TextEncoderStream extends TransformStream<string, Uint8Array> {
|
|
2086
2089
|
constructor();
|
|
2090
|
+
get encoding(): string;
|
|
2087
2091
|
}
|
|
2088
2092
|
declare class TextDecoderStream extends TransformStream<
|
|
2089
2093
|
ArrayBuffer | ArrayBufferView,
|
|
2090
2094
|
string
|
|
2091
2095
|
> {
|
|
2092
2096
|
constructor(label?: string, options?: TextDecoderStreamTextDecoderStreamInit);
|
|
2097
|
+
get encoding(): string;
|
|
2098
|
+
get fatal(): boolean;
|
|
2099
|
+
get ignoreBOM(): boolean;
|
|
2093
2100
|
}
|
|
2094
2101
|
declare interface TextDecoderStreamTextDecoderStreamInit {
|
|
2095
2102
|
fatal?: boolean;
|
|
2103
|
+
ignoreBOM?: boolean;
|
|
2096
2104
|
}
|
|
2097
2105
|
declare class ByteLengthQueuingStrategy
|
|
2098
2106
|
implements QueuingStrategy<ArrayBufferView>
|
|
@@ -4127,7 +4135,7 @@ declare interface Hyperdrive {
|
|
|
4127
4135
|
/*
|
|
4128
4136
|
* The port that must be paired the the host field when connecting.
|
|
4129
4137
|
*/
|
|
4130
|
-
readonly port:
|
|
4138
|
+
readonly port: number;
|
|
4131
4139
|
/*
|
|
4132
4140
|
* The username to use when authenticating to your database via Hyperdrive.
|
|
4133
4141
|
* Unlike the host and password, this will be the same every time
|
|
@@ -4233,10 +4241,10 @@ declare namespace Rpc {
|
|
|
4233
4241
|
// TypeScript uses *structural* typing meaning anything with the same shape as type `T` is a `T`.
|
|
4234
4242
|
// For the classes exported by `cloudflare:workers` we want *nominal* typing (i.e. we only want to
|
|
4235
4243
|
// accept `WorkerEntrypoint` from `cloudflare:workers`, not any other class with the same shape)
|
|
4236
|
-
export const __RPC_STUB_BRAND:
|
|
4237
|
-
export const __RPC_TARGET_BRAND:
|
|
4238
|
-
export const __WORKER_ENTRYPOINT_BRAND:
|
|
4239
|
-
export const __DURABLE_OBJECT_BRAND:
|
|
4244
|
+
export const __RPC_STUB_BRAND: "__RPC_STUB_BRAND";
|
|
4245
|
+
export const __RPC_TARGET_BRAND: "__RPC_TARGET_BRAND";
|
|
4246
|
+
export const __WORKER_ENTRYPOINT_BRAND: "__WORKER_ENTRYPOINT_BRAND";
|
|
4247
|
+
export const __DURABLE_OBJECT_BRAND: "__DURABLE_OBJECT_BRAND";
|
|
4240
4248
|
export interface RpcTargetBranded {
|
|
4241
4249
|
[__RPC_TARGET_BRAND]: never;
|
|
4242
4250
|
}
|
package/2022-03-21/index.ts
CHANGED
|
@@ -1698,6 +1698,7 @@ export declare abstract class R2Object {
|
|
|
1698
1698
|
readonly httpMetadata?: R2HTTPMetadata;
|
|
1699
1699
|
readonly customMetadata?: Record<string, string>;
|
|
1700
1700
|
readonly range?: R2Range;
|
|
1701
|
+
readonly storageClass: string;
|
|
1701
1702
|
writeHttpMetadata(headers: Headers): void;
|
|
1702
1703
|
}
|
|
1703
1704
|
export interface R2ObjectBody extends R2Object {
|
|
@@ -1740,10 +1741,12 @@ export interface R2PutOptions {
|
|
|
1740
1741
|
sha256?: ArrayBuffer | string;
|
|
1741
1742
|
sha384?: ArrayBuffer | string;
|
|
1742
1743
|
sha512?: ArrayBuffer | string;
|
|
1744
|
+
storageClass?: string;
|
|
1743
1745
|
}
|
|
1744
1746
|
export interface R2MultipartOptions {
|
|
1745
1747
|
httpMetadata?: R2HTTPMetadata | Headers;
|
|
1746
1748
|
customMetadata?: Record<string, string>;
|
|
1749
|
+
storageClass?: string;
|
|
1747
1750
|
}
|
|
1748
1751
|
export interface R2Checksums {
|
|
1749
1752
|
readonly md5?: ArrayBuffer;
|
|
@@ -2089,15 +2092,20 @@ export declare class TextEncoderStream extends TransformStream<
|
|
|
2089
2092
|
Uint8Array
|
|
2090
2093
|
> {
|
|
2091
2094
|
constructor();
|
|
2095
|
+
get encoding(): string;
|
|
2092
2096
|
}
|
|
2093
2097
|
export declare class TextDecoderStream extends TransformStream<
|
|
2094
2098
|
ArrayBuffer | ArrayBufferView,
|
|
2095
2099
|
string
|
|
2096
2100
|
> {
|
|
2097
2101
|
constructor(label?: string, options?: TextDecoderStreamTextDecoderStreamInit);
|
|
2102
|
+
get encoding(): string;
|
|
2103
|
+
get fatal(): boolean;
|
|
2104
|
+
get ignoreBOM(): boolean;
|
|
2098
2105
|
}
|
|
2099
2106
|
export interface TextDecoderStreamTextDecoderStreamInit {
|
|
2100
2107
|
fatal?: boolean;
|
|
2108
|
+
ignoreBOM?: boolean;
|
|
2101
2109
|
}
|
|
2102
2110
|
export declare class ByteLengthQueuingStrategy
|
|
2103
2111
|
implements QueuingStrategy<ArrayBufferView>
|
|
@@ -4125,7 +4133,7 @@ export interface Hyperdrive {
|
|
|
4125
4133
|
/*
|
|
4126
4134
|
* The port that must be paired the the host field when connecting.
|
|
4127
4135
|
*/
|
|
4128
|
-
readonly port:
|
|
4136
|
+
readonly port: number;
|
|
4129
4137
|
/*
|
|
4130
4138
|
* The username to use when authenticating to your database via Hyperdrive.
|
|
4131
4139
|
* Unlike the host and password, this will be the same every time
|
|
@@ -4228,10 +4236,10 @@ export declare namespace Rpc {
|
|
|
4228
4236
|
// TypeScript uses *structural* typing meaning anything with the same shape as type `T` is a `T`.
|
|
4229
4237
|
// For the classes exported by `cloudflare:workers` we want *nominal* typing (i.e. we only want to
|
|
4230
4238
|
// accept `WorkerEntrypoint` from `cloudflare:workers`, not any other class with the same shape)
|
|
4231
|
-
export const __RPC_STUB_BRAND:
|
|
4232
|
-
export const __RPC_TARGET_BRAND:
|
|
4233
|
-
export const __WORKER_ENTRYPOINT_BRAND:
|
|
4234
|
-
export const __DURABLE_OBJECT_BRAND:
|
|
4239
|
+
export const __RPC_STUB_BRAND: "__RPC_STUB_BRAND";
|
|
4240
|
+
export const __RPC_TARGET_BRAND: "__RPC_TARGET_BRAND";
|
|
4241
|
+
export const __WORKER_ENTRYPOINT_BRAND: "__WORKER_ENTRYPOINT_BRAND";
|
|
4242
|
+
export const __DURABLE_OBJECT_BRAND: "__DURABLE_OBJECT_BRAND";
|
|
4235
4243
|
export interface RpcTargetBranded {
|
|
4236
4244
|
[__RPC_TARGET_BRAND]: never;
|
|
4237
4245
|
}
|
package/2022-08-04/index.d.ts
CHANGED
|
@@ -1697,6 +1697,7 @@ declare abstract class R2Object {
|
|
|
1697
1697
|
readonly httpMetadata?: R2HTTPMetadata;
|
|
1698
1698
|
readonly customMetadata?: Record<string, string>;
|
|
1699
1699
|
readonly range?: R2Range;
|
|
1700
|
+
readonly storageClass: string;
|
|
1700
1701
|
writeHttpMetadata(headers: Headers): void;
|
|
1701
1702
|
}
|
|
1702
1703
|
declare interface R2ObjectBody extends R2Object {
|
|
@@ -1739,10 +1740,12 @@ declare interface R2PutOptions {
|
|
|
1739
1740
|
sha256?: ArrayBuffer | string;
|
|
1740
1741
|
sha384?: ArrayBuffer | string;
|
|
1741
1742
|
sha512?: ArrayBuffer | string;
|
|
1743
|
+
storageClass?: string;
|
|
1742
1744
|
}
|
|
1743
1745
|
declare interface R2MultipartOptions {
|
|
1744
1746
|
httpMetadata?: R2HTTPMetadata | Headers;
|
|
1745
1747
|
customMetadata?: Record<string, string>;
|
|
1748
|
+
storageClass?: string;
|
|
1746
1749
|
}
|
|
1747
1750
|
declare interface R2Checksums {
|
|
1748
1751
|
readonly md5?: ArrayBuffer;
|
|
@@ -2085,15 +2088,20 @@ declare class DecompressionStream extends TransformStream<
|
|
|
2085
2088
|
}
|
|
2086
2089
|
declare class TextEncoderStream extends TransformStream<string, Uint8Array> {
|
|
2087
2090
|
constructor();
|
|
2091
|
+
get encoding(): string;
|
|
2088
2092
|
}
|
|
2089
2093
|
declare class TextDecoderStream extends TransformStream<
|
|
2090
2094
|
ArrayBuffer | ArrayBufferView,
|
|
2091
2095
|
string
|
|
2092
2096
|
> {
|
|
2093
2097
|
constructor(label?: string, options?: TextDecoderStreamTextDecoderStreamInit);
|
|
2098
|
+
get encoding(): string;
|
|
2099
|
+
get fatal(): boolean;
|
|
2100
|
+
get ignoreBOM(): boolean;
|
|
2094
2101
|
}
|
|
2095
2102
|
declare interface TextDecoderStreamTextDecoderStreamInit {
|
|
2096
2103
|
fatal?: boolean;
|
|
2104
|
+
ignoreBOM?: boolean;
|
|
2097
2105
|
}
|
|
2098
2106
|
declare class ByteLengthQueuingStrategy
|
|
2099
2107
|
implements QueuingStrategy<ArrayBufferView>
|
|
@@ -4128,7 +4136,7 @@ declare interface Hyperdrive {
|
|
|
4128
4136
|
/*
|
|
4129
4137
|
* The port that must be paired the the host field when connecting.
|
|
4130
4138
|
*/
|
|
4131
|
-
readonly port:
|
|
4139
|
+
readonly port: number;
|
|
4132
4140
|
/*
|
|
4133
4141
|
* The username to use when authenticating to your database via Hyperdrive.
|
|
4134
4142
|
* Unlike the host and password, this will be the same every time
|
|
@@ -4234,10 +4242,10 @@ declare namespace Rpc {
|
|
|
4234
4242
|
// TypeScript uses *structural* typing meaning anything with the same shape as type `T` is a `T`.
|
|
4235
4243
|
// For the classes exported by `cloudflare:workers` we want *nominal* typing (i.e. we only want to
|
|
4236
4244
|
// accept `WorkerEntrypoint` from `cloudflare:workers`, not any other class with the same shape)
|
|
4237
|
-
export const __RPC_STUB_BRAND:
|
|
4238
|
-
export const __RPC_TARGET_BRAND:
|
|
4239
|
-
export const __WORKER_ENTRYPOINT_BRAND:
|
|
4240
|
-
export const __DURABLE_OBJECT_BRAND:
|
|
4245
|
+
export const __RPC_STUB_BRAND: "__RPC_STUB_BRAND";
|
|
4246
|
+
export const __RPC_TARGET_BRAND: "__RPC_TARGET_BRAND";
|
|
4247
|
+
export const __WORKER_ENTRYPOINT_BRAND: "__WORKER_ENTRYPOINT_BRAND";
|
|
4248
|
+
export const __DURABLE_OBJECT_BRAND: "__DURABLE_OBJECT_BRAND";
|
|
4241
4249
|
export interface RpcTargetBranded {
|
|
4242
4250
|
[__RPC_TARGET_BRAND]: never;
|
|
4243
4251
|
}
|
package/2022-08-04/index.ts
CHANGED
|
@@ -1699,6 +1699,7 @@ export declare abstract class R2Object {
|
|
|
1699
1699
|
readonly httpMetadata?: R2HTTPMetadata;
|
|
1700
1700
|
readonly customMetadata?: Record<string, string>;
|
|
1701
1701
|
readonly range?: R2Range;
|
|
1702
|
+
readonly storageClass: string;
|
|
1702
1703
|
writeHttpMetadata(headers: Headers): void;
|
|
1703
1704
|
}
|
|
1704
1705
|
export interface R2ObjectBody extends R2Object {
|
|
@@ -1741,10 +1742,12 @@ export interface R2PutOptions {
|
|
|
1741
1742
|
sha256?: ArrayBuffer | string;
|
|
1742
1743
|
sha384?: ArrayBuffer | string;
|
|
1743
1744
|
sha512?: ArrayBuffer | string;
|
|
1745
|
+
storageClass?: string;
|
|
1744
1746
|
}
|
|
1745
1747
|
export interface R2MultipartOptions {
|
|
1746
1748
|
httpMetadata?: R2HTTPMetadata | Headers;
|
|
1747
1749
|
customMetadata?: Record<string, string>;
|
|
1750
|
+
storageClass?: string;
|
|
1748
1751
|
}
|
|
1749
1752
|
export interface R2Checksums {
|
|
1750
1753
|
readonly md5?: ArrayBuffer;
|
|
@@ -2090,15 +2093,20 @@ export declare class TextEncoderStream extends TransformStream<
|
|
|
2090
2093
|
Uint8Array
|
|
2091
2094
|
> {
|
|
2092
2095
|
constructor();
|
|
2096
|
+
get encoding(): string;
|
|
2093
2097
|
}
|
|
2094
2098
|
export declare class TextDecoderStream extends TransformStream<
|
|
2095
2099
|
ArrayBuffer | ArrayBufferView,
|
|
2096
2100
|
string
|
|
2097
2101
|
> {
|
|
2098
2102
|
constructor(label?: string, options?: TextDecoderStreamTextDecoderStreamInit);
|
|
2103
|
+
get encoding(): string;
|
|
2104
|
+
get fatal(): boolean;
|
|
2105
|
+
get ignoreBOM(): boolean;
|
|
2099
2106
|
}
|
|
2100
2107
|
export interface TextDecoderStreamTextDecoderStreamInit {
|
|
2101
2108
|
fatal?: boolean;
|
|
2109
|
+
ignoreBOM?: boolean;
|
|
2102
2110
|
}
|
|
2103
2111
|
export declare class ByteLengthQueuingStrategy
|
|
2104
2112
|
implements QueuingStrategy<ArrayBufferView>
|
|
@@ -4126,7 +4134,7 @@ export interface Hyperdrive {
|
|
|
4126
4134
|
/*
|
|
4127
4135
|
* The port that must be paired the the host field when connecting.
|
|
4128
4136
|
*/
|
|
4129
|
-
readonly port:
|
|
4137
|
+
readonly port: number;
|
|
4130
4138
|
/*
|
|
4131
4139
|
* The username to use when authenticating to your database via Hyperdrive.
|
|
4132
4140
|
* Unlike the host and password, this will be the same every time
|
|
@@ -4229,10 +4237,10 @@ export declare namespace Rpc {
|
|
|
4229
4237
|
// TypeScript uses *structural* typing meaning anything with the same shape as type `T` is a `T`.
|
|
4230
4238
|
// For the classes exported by `cloudflare:workers` we want *nominal* typing (i.e. we only want to
|
|
4231
4239
|
// accept `WorkerEntrypoint` from `cloudflare:workers`, not any other class with the same shape)
|
|
4232
|
-
export const __RPC_STUB_BRAND:
|
|
4233
|
-
export const __RPC_TARGET_BRAND:
|
|
4234
|
-
export const __WORKER_ENTRYPOINT_BRAND:
|
|
4235
|
-
export const __DURABLE_OBJECT_BRAND:
|
|
4240
|
+
export const __RPC_STUB_BRAND: "__RPC_STUB_BRAND";
|
|
4241
|
+
export const __RPC_TARGET_BRAND: "__RPC_TARGET_BRAND";
|
|
4242
|
+
export const __WORKER_ENTRYPOINT_BRAND: "__WORKER_ENTRYPOINT_BRAND";
|
|
4243
|
+
export const __DURABLE_OBJECT_BRAND: "__DURABLE_OBJECT_BRAND";
|
|
4236
4244
|
export interface RpcTargetBranded {
|
|
4237
4245
|
[__RPC_TARGET_BRAND]: never;
|
|
4238
4246
|
}
|
package/2022-10-31/index.d.ts
CHANGED
|
@@ -1697,6 +1697,7 @@ declare abstract class R2Object {
|
|
|
1697
1697
|
readonly httpMetadata?: R2HTTPMetadata;
|
|
1698
1698
|
readonly customMetadata?: Record<string, string>;
|
|
1699
1699
|
readonly range?: R2Range;
|
|
1700
|
+
readonly storageClass: string;
|
|
1700
1701
|
writeHttpMetadata(headers: Headers): void;
|
|
1701
1702
|
}
|
|
1702
1703
|
declare interface R2ObjectBody extends R2Object {
|
|
@@ -1739,10 +1740,12 @@ declare interface R2PutOptions {
|
|
|
1739
1740
|
sha256?: ArrayBuffer | string;
|
|
1740
1741
|
sha384?: ArrayBuffer | string;
|
|
1741
1742
|
sha512?: ArrayBuffer | string;
|
|
1743
|
+
storageClass?: string;
|
|
1742
1744
|
}
|
|
1743
1745
|
declare interface R2MultipartOptions {
|
|
1744
1746
|
httpMetadata?: R2HTTPMetadata | Headers;
|
|
1745
1747
|
customMetadata?: Record<string, string>;
|
|
1748
|
+
storageClass?: string;
|
|
1746
1749
|
}
|
|
1747
1750
|
declare interface R2Checksums {
|
|
1748
1751
|
readonly md5?: ArrayBuffer;
|
|
@@ -2085,15 +2088,20 @@ declare class DecompressionStream extends TransformStream<
|
|
|
2085
2088
|
}
|
|
2086
2089
|
declare class TextEncoderStream extends TransformStream<string, Uint8Array> {
|
|
2087
2090
|
constructor();
|
|
2091
|
+
get encoding(): string;
|
|
2088
2092
|
}
|
|
2089
2093
|
declare class TextDecoderStream extends TransformStream<
|
|
2090
2094
|
ArrayBuffer | ArrayBufferView,
|
|
2091
2095
|
string
|
|
2092
2096
|
> {
|
|
2093
2097
|
constructor(label?: string, options?: TextDecoderStreamTextDecoderStreamInit);
|
|
2098
|
+
get encoding(): string;
|
|
2099
|
+
get fatal(): boolean;
|
|
2100
|
+
get ignoreBOM(): boolean;
|
|
2094
2101
|
}
|
|
2095
2102
|
declare interface TextDecoderStreamTextDecoderStreamInit {
|
|
2096
2103
|
fatal?: boolean;
|
|
2104
|
+
ignoreBOM?: boolean;
|
|
2097
2105
|
}
|
|
2098
2106
|
declare class ByteLengthQueuingStrategy
|
|
2099
2107
|
implements QueuingStrategy<ArrayBufferView>
|
|
@@ -4127,7 +4135,7 @@ declare interface Hyperdrive {
|
|
|
4127
4135
|
/*
|
|
4128
4136
|
* The port that must be paired the the host field when connecting.
|
|
4129
4137
|
*/
|
|
4130
|
-
readonly port:
|
|
4138
|
+
readonly port: number;
|
|
4131
4139
|
/*
|
|
4132
4140
|
* The username to use when authenticating to your database via Hyperdrive.
|
|
4133
4141
|
* Unlike the host and password, this will be the same every time
|
|
@@ -4233,10 +4241,10 @@ declare namespace Rpc {
|
|
|
4233
4241
|
// TypeScript uses *structural* typing meaning anything with the same shape as type `T` is a `T`.
|
|
4234
4242
|
// For the classes exported by `cloudflare:workers` we want *nominal* typing (i.e. we only want to
|
|
4235
4243
|
// accept `WorkerEntrypoint` from `cloudflare:workers`, not any other class with the same shape)
|
|
4236
|
-
export const __RPC_STUB_BRAND:
|
|
4237
|
-
export const __RPC_TARGET_BRAND:
|
|
4238
|
-
export const __WORKER_ENTRYPOINT_BRAND:
|
|
4239
|
-
export const __DURABLE_OBJECT_BRAND:
|
|
4244
|
+
export const __RPC_STUB_BRAND: "__RPC_STUB_BRAND";
|
|
4245
|
+
export const __RPC_TARGET_BRAND: "__RPC_TARGET_BRAND";
|
|
4246
|
+
export const __WORKER_ENTRYPOINT_BRAND: "__WORKER_ENTRYPOINT_BRAND";
|
|
4247
|
+
export const __DURABLE_OBJECT_BRAND: "__DURABLE_OBJECT_BRAND";
|
|
4240
4248
|
export interface RpcTargetBranded {
|
|
4241
4249
|
[__RPC_TARGET_BRAND]: never;
|
|
4242
4250
|
}
|
package/2022-10-31/index.ts
CHANGED
|
@@ -1699,6 +1699,7 @@ export declare abstract class R2Object {
|
|
|
1699
1699
|
readonly httpMetadata?: R2HTTPMetadata;
|
|
1700
1700
|
readonly customMetadata?: Record<string, string>;
|
|
1701
1701
|
readonly range?: R2Range;
|
|
1702
|
+
readonly storageClass: string;
|
|
1702
1703
|
writeHttpMetadata(headers: Headers): void;
|
|
1703
1704
|
}
|
|
1704
1705
|
export interface R2ObjectBody extends R2Object {
|
|
@@ -1741,10 +1742,12 @@ export interface R2PutOptions {
|
|
|
1741
1742
|
sha256?: ArrayBuffer | string;
|
|
1742
1743
|
sha384?: ArrayBuffer | string;
|
|
1743
1744
|
sha512?: ArrayBuffer | string;
|
|
1745
|
+
storageClass?: string;
|
|
1744
1746
|
}
|
|
1745
1747
|
export interface R2MultipartOptions {
|
|
1746
1748
|
httpMetadata?: R2HTTPMetadata | Headers;
|
|
1747
1749
|
customMetadata?: Record<string, string>;
|
|
1750
|
+
storageClass?: string;
|
|
1748
1751
|
}
|
|
1749
1752
|
export interface R2Checksums {
|
|
1750
1753
|
readonly md5?: ArrayBuffer;
|
|
@@ -2090,15 +2093,20 @@ export declare class TextEncoderStream extends TransformStream<
|
|
|
2090
2093
|
Uint8Array
|
|
2091
2094
|
> {
|
|
2092
2095
|
constructor();
|
|
2096
|
+
get encoding(): string;
|
|
2093
2097
|
}
|
|
2094
2098
|
export declare class TextDecoderStream extends TransformStream<
|
|
2095
2099
|
ArrayBuffer | ArrayBufferView,
|
|
2096
2100
|
string
|
|
2097
2101
|
> {
|
|
2098
2102
|
constructor(label?: string, options?: TextDecoderStreamTextDecoderStreamInit);
|
|
2103
|
+
get encoding(): string;
|
|
2104
|
+
get fatal(): boolean;
|
|
2105
|
+
get ignoreBOM(): boolean;
|
|
2099
2106
|
}
|
|
2100
2107
|
export interface TextDecoderStreamTextDecoderStreamInit {
|
|
2101
2108
|
fatal?: boolean;
|
|
2109
|
+
ignoreBOM?: boolean;
|
|
2102
2110
|
}
|
|
2103
2111
|
export declare class ByteLengthQueuingStrategy
|
|
2104
2112
|
implements QueuingStrategy<ArrayBufferView>
|
|
@@ -4125,7 +4133,7 @@ export interface Hyperdrive {
|
|
|
4125
4133
|
/*
|
|
4126
4134
|
* The port that must be paired the the host field when connecting.
|
|
4127
4135
|
*/
|
|
4128
|
-
readonly port:
|
|
4136
|
+
readonly port: number;
|
|
4129
4137
|
/*
|
|
4130
4138
|
* The username to use when authenticating to your database via Hyperdrive.
|
|
4131
4139
|
* Unlike the host and password, this will be the same every time
|
|
@@ -4228,10 +4236,10 @@ export declare namespace Rpc {
|
|
|
4228
4236
|
// TypeScript uses *structural* typing meaning anything with the same shape as type `T` is a `T`.
|
|
4229
4237
|
// For the classes exported by `cloudflare:workers` we want *nominal* typing (i.e. we only want to
|
|
4230
4238
|
// accept `WorkerEntrypoint` from `cloudflare:workers`, not any other class with the same shape)
|
|
4231
|
-
export const __RPC_STUB_BRAND:
|
|
4232
|
-
export const __RPC_TARGET_BRAND:
|
|
4233
|
-
export const __WORKER_ENTRYPOINT_BRAND:
|
|
4234
|
-
export const __DURABLE_OBJECT_BRAND:
|
|
4239
|
+
export const __RPC_STUB_BRAND: "__RPC_STUB_BRAND";
|
|
4240
|
+
export const __RPC_TARGET_BRAND: "__RPC_TARGET_BRAND";
|
|
4241
|
+
export const __WORKER_ENTRYPOINT_BRAND: "__WORKER_ENTRYPOINT_BRAND";
|
|
4242
|
+
export const __DURABLE_OBJECT_BRAND: "__DURABLE_OBJECT_BRAND";
|
|
4235
4243
|
export interface RpcTargetBranded {
|
|
4236
4244
|
[__RPC_TARGET_BRAND]: never;
|
|
4237
4245
|
}
|