@cloudflare/workers-types 4.20240603.0 → 4.20240614.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 +24 -7
- package/2021-11-03/index.ts +24 -7
- package/2022-01-31/index.d.ts +24 -7
- package/2022-01-31/index.ts +24 -7
- package/2022-03-21/index.d.ts +24 -7
- package/2022-03-21/index.ts +24 -7
- package/2022-08-04/index.d.ts +24 -7
- package/2022-08-04/index.ts +24 -7
- package/2022-10-31/index.d.ts +24 -7
- package/2022-10-31/index.ts +24 -7
- package/2022-11-30/index.d.ts +24 -7
- package/2022-11-30/index.ts +24 -7
- package/2023-03-01/index.d.ts +24 -7
- package/2023-03-01/index.ts +24 -7
- package/2023-07-01/index.d.ts +24 -7
- package/2023-07-01/index.ts +24 -7
- package/experimental/index.d.ts +24 -13
- package/experimental/index.ts +24 -13
- package/index.d.ts +24 -7
- package/index.ts +24 -7
- package/oldest/index.d.ts +24 -7
- package/oldest/index.ts +24 -7
- package/package.json +1 -1
package/2021-11-03/index.d.ts
CHANGED
|
@@ -851,7 +851,7 @@ declare interface CustomEventCustomEventInit {
|
|
|
851
851
|
}
|
|
852
852
|
declare class Blob {
|
|
853
853
|
constructor(
|
|
854
|
-
|
|
854
|
+
type?: ((ArrayBuffer | ArrayBufferView) | string | Blob)[],
|
|
855
855
|
options?: BlobOptions,
|
|
856
856
|
);
|
|
857
857
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size) */
|
|
@@ -862,6 +862,7 @@ declare class Blob {
|
|
|
862
862
|
slice(start?: number, end?: number, type?: string): Blob;
|
|
863
863
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/arrayBuffer) */
|
|
864
864
|
arrayBuffer(): Promise<ArrayBuffer>;
|
|
865
|
+
bytes(): Promise<Uint8Array>;
|
|
865
866
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */
|
|
866
867
|
text(): Promise<string>;
|
|
867
868
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/stream) */
|
|
@@ -1342,6 +1343,7 @@ declare abstract class Body {
|
|
|
1342
1343
|
readonly body: ReadableStream | null;
|
|
1343
1344
|
readonly bodyUsed: boolean;
|
|
1344
1345
|
arrayBuffer(): Promise<ArrayBuffer>;
|
|
1346
|
+
bytes(): Promise<Uint8Array>;
|
|
1345
1347
|
text(): Promise<string>;
|
|
1346
1348
|
json<T>(): Promise<T>;
|
|
1347
1349
|
formData(): Promise<FormData>;
|
|
@@ -1750,11 +1752,11 @@ declare interface R2MultipartOptions {
|
|
|
1750
1752
|
storageClass?: string;
|
|
1751
1753
|
}
|
|
1752
1754
|
declare interface R2Checksums {
|
|
1753
|
-
readonly md5?:
|
|
1754
|
-
readonly sha1?:
|
|
1755
|
-
readonly sha256?:
|
|
1756
|
-
readonly sha384?:
|
|
1757
|
-
readonly sha512?:
|
|
1755
|
+
readonly md5?: ArrayBuffer;
|
|
1756
|
+
readonly sha1?: ArrayBuffer;
|
|
1757
|
+
readonly sha256?: ArrayBuffer;
|
|
1758
|
+
readonly sha384?: ArrayBuffer;
|
|
1759
|
+
readonly sha512?: ArrayBuffer;
|
|
1758
1760
|
toJSON(): R2StringChecksums;
|
|
1759
1761
|
}
|
|
1760
1762
|
declare interface R2StringChecksums {
|
|
@@ -3124,8 +3126,14 @@ declare abstract class BaseAiTranslation {
|
|
|
3124
3126
|
inputs: AiTranslationInput;
|
|
3125
3127
|
postProcessedOutputs: AiTranslationOutput;
|
|
3126
3128
|
}
|
|
3129
|
+
declare type GatewayOptions = {
|
|
3130
|
+
id: string;
|
|
3131
|
+
cacheTtl?: number;
|
|
3132
|
+
skipCache?: boolean;
|
|
3133
|
+
metadata?: Record<string, number | string | boolean | null | bigint>;
|
|
3134
|
+
};
|
|
3127
3135
|
declare type AiOptions = {
|
|
3128
|
-
|
|
3136
|
+
gateway?: GatewayOptions;
|
|
3129
3137
|
prefix?: string;
|
|
3130
3138
|
extraHeaders?: object;
|
|
3131
3139
|
};
|
|
@@ -4768,6 +4776,15 @@ declare interface VectorizeVectorMutation {
|
|
|
4768
4776
|
/* Total count of the number of processed vectors. */
|
|
4769
4777
|
count: number;
|
|
4770
4778
|
}
|
|
4779
|
+
/**
|
|
4780
|
+
* Results of an operation that performed a mutation on a set of vectors
|
|
4781
|
+
* with the v2 version of Vectorize.
|
|
4782
|
+
* Here, `mutationId` is the identifier for the last mutation processed by Vectorize.
|
|
4783
|
+
*/
|
|
4784
|
+
declare interface VectorizeVectorMutationV2 {
|
|
4785
|
+
/* The identifier for the last mutation processed by Vectorize. */
|
|
4786
|
+
mutationId: string;
|
|
4787
|
+
}
|
|
4771
4788
|
declare abstract class VectorizeIndex {
|
|
4772
4789
|
/**
|
|
4773
4790
|
* Get information about the currently bound index.
|
package/2021-11-03/index.ts
CHANGED
|
@@ -853,7 +853,7 @@ export interface CustomEventCustomEventInit {
|
|
|
853
853
|
}
|
|
854
854
|
export declare class Blob {
|
|
855
855
|
constructor(
|
|
856
|
-
|
|
856
|
+
type?: ((ArrayBuffer | ArrayBufferView) | string | Blob)[],
|
|
857
857
|
options?: BlobOptions,
|
|
858
858
|
);
|
|
859
859
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size) */
|
|
@@ -864,6 +864,7 @@ export declare class Blob {
|
|
|
864
864
|
slice(start?: number, end?: number, type?: string): Blob;
|
|
865
865
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/arrayBuffer) */
|
|
866
866
|
arrayBuffer(): Promise<ArrayBuffer>;
|
|
867
|
+
bytes(): Promise<Uint8Array>;
|
|
867
868
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */
|
|
868
869
|
text(): Promise<string>;
|
|
869
870
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/stream) */
|
|
@@ -1344,6 +1345,7 @@ export declare abstract class Body {
|
|
|
1344
1345
|
readonly body: ReadableStream | null;
|
|
1345
1346
|
readonly bodyUsed: boolean;
|
|
1346
1347
|
arrayBuffer(): Promise<ArrayBuffer>;
|
|
1348
|
+
bytes(): Promise<Uint8Array>;
|
|
1347
1349
|
text(): Promise<string>;
|
|
1348
1350
|
json<T>(): Promise<T>;
|
|
1349
1351
|
formData(): Promise<FormData>;
|
|
@@ -1752,11 +1754,11 @@ export interface R2MultipartOptions {
|
|
|
1752
1754
|
storageClass?: string;
|
|
1753
1755
|
}
|
|
1754
1756
|
export interface R2Checksums {
|
|
1755
|
-
readonly md5?:
|
|
1756
|
-
readonly sha1?:
|
|
1757
|
-
readonly sha256?:
|
|
1758
|
-
readonly sha384?:
|
|
1759
|
-
readonly sha512?:
|
|
1757
|
+
readonly md5?: ArrayBuffer;
|
|
1758
|
+
readonly sha1?: ArrayBuffer;
|
|
1759
|
+
readonly sha256?: ArrayBuffer;
|
|
1760
|
+
readonly sha384?: ArrayBuffer;
|
|
1761
|
+
readonly sha512?: ArrayBuffer;
|
|
1760
1762
|
toJSON(): R2StringChecksums;
|
|
1761
1763
|
}
|
|
1762
1764
|
export interface R2StringChecksums {
|
|
@@ -3129,8 +3131,14 @@ export declare abstract class BaseAiTranslation {
|
|
|
3129
3131
|
inputs: AiTranslationInput;
|
|
3130
3132
|
postProcessedOutputs: AiTranslationOutput;
|
|
3131
3133
|
}
|
|
3134
|
+
export type GatewayOptions = {
|
|
3135
|
+
id: string;
|
|
3136
|
+
cacheTtl?: number;
|
|
3137
|
+
skipCache?: boolean;
|
|
3138
|
+
metadata?: Record<string, number | string | boolean | null | bigint>;
|
|
3139
|
+
};
|
|
3132
3140
|
export type AiOptions = {
|
|
3133
|
-
|
|
3141
|
+
gateway?: GatewayOptions;
|
|
3134
3142
|
prefix?: string;
|
|
3135
3143
|
extraHeaders?: object;
|
|
3136
3144
|
};
|
|
@@ -4707,6 +4715,15 @@ export interface VectorizeVectorMutation {
|
|
|
4707
4715
|
/* Total count of the number of processed vectors. */
|
|
4708
4716
|
count: number;
|
|
4709
4717
|
}
|
|
4718
|
+
/**
|
|
4719
|
+
* Results of an operation that performed a mutation on a set of vectors
|
|
4720
|
+
* with the v2 version of Vectorize.
|
|
4721
|
+
* Here, `mutationId` is the identifier for the last mutation processed by Vectorize.
|
|
4722
|
+
*/
|
|
4723
|
+
export interface VectorizeVectorMutationV2 {
|
|
4724
|
+
/* The identifier for the last mutation processed by Vectorize. */
|
|
4725
|
+
mutationId: string;
|
|
4726
|
+
}
|
|
4710
4727
|
export declare abstract class VectorizeIndex {
|
|
4711
4728
|
/**
|
|
4712
4729
|
* Get information about the currently bound index.
|
package/2022-01-31/index.d.ts
CHANGED
|
@@ -857,7 +857,7 @@ declare interface CustomEventCustomEventInit {
|
|
|
857
857
|
}
|
|
858
858
|
declare class Blob {
|
|
859
859
|
constructor(
|
|
860
|
-
|
|
860
|
+
type?: ((ArrayBuffer | ArrayBufferView) | string | Blob)[],
|
|
861
861
|
options?: BlobOptions,
|
|
862
862
|
);
|
|
863
863
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size) */
|
|
@@ -868,6 +868,7 @@ declare class Blob {
|
|
|
868
868
|
slice(start?: number, end?: number, type?: string): Blob;
|
|
869
869
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/arrayBuffer) */
|
|
870
870
|
arrayBuffer(): Promise<ArrayBuffer>;
|
|
871
|
+
bytes(): Promise<Uint8Array>;
|
|
871
872
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */
|
|
872
873
|
text(): Promise<string>;
|
|
873
874
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/stream) */
|
|
@@ -1348,6 +1349,7 @@ declare abstract class Body {
|
|
|
1348
1349
|
get body(): ReadableStream | null;
|
|
1349
1350
|
get bodyUsed(): boolean;
|
|
1350
1351
|
arrayBuffer(): Promise<ArrayBuffer>;
|
|
1352
|
+
bytes(): Promise<Uint8Array>;
|
|
1351
1353
|
text(): Promise<string>;
|
|
1352
1354
|
json<T>(): Promise<T>;
|
|
1353
1355
|
formData(): Promise<FormData>;
|
|
@@ -1756,11 +1758,11 @@ declare interface R2MultipartOptions {
|
|
|
1756
1758
|
storageClass?: string;
|
|
1757
1759
|
}
|
|
1758
1760
|
declare interface R2Checksums {
|
|
1759
|
-
readonly md5?:
|
|
1760
|
-
readonly sha1?:
|
|
1761
|
-
readonly sha256?:
|
|
1762
|
-
readonly sha384?:
|
|
1763
|
-
readonly sha512?:
|
|
1761
|
+
readonly md5?: ArrayBuffer;
|
|
1762
|
+
readonly sha1?: ArrayBuffer;
|
|
1763
|
+
readonly sha256?: ArrayBuffer;
|
|
1764
|
+
readonly sha384?: ArrayBuffer;
|
|
1765
|
+
readonly sha512?: ArrayBuffer;
|
|
1764
1766
|
toJSON(): R2StringChecksums;
|
|
1765
1767
|
}
|
|
1766
1768
|
declare interface R2StringChecksums {
|
|
@@ -3150,8 +3152,14 @@ declare abstract class BaseAiTranslation {
|
|
|
3150
3152
|
inputs: AiTranslationInput;
|
|
3151
3153
|
postProcessedOutputs: AiTranslationOutput;
|
|
3152
3154
|
}
|
|
3155
|
+
declare type GatewayOptions = {
|
|
3156
|
+
id: string;
|
|
3157
|
+
cacheTtl?: number;
|
|
3158
|
+
skipCache?: boolean;
|
|
3159
|
+
metadata?: Record<string, number | string | boolean | null | bigint>;
|
|
3160
|
+
};
|
|
3153
3161
|
declare type AiOptions = {
|
|
3154
|
-
|
|
3162
|
+
gateway?: GatewayOptions;
|
|
3155
3163
|
prefix?: string;
|
|
3156
3164
|
extraHeaders?: object;
|
|
3157
3165
|
};
|
|
@@ -4794,6 +4802,15 @@ declare interface VectorizeVectorMutation {
|
|
|
4794
4802
|
/* Total count of the number of processed vectors. */
|
|
4795
4803
|
count: number;
|
|
4796
4804
|
}
|
|
4805
|
+
/**
|
|
4806
|
+
* Results of an operation that performed a mutation on a set of vectors
|
|
4807
|
+
* with the v2 version of Vectorize.
|
|
4808
|
+
* Here, `mutationId` is the identifier for the last mutation processed by Vectorize.
|
|
4809
|
+
*/
|
|
4810
|
+
declare interface VectorizeVectorMutationV2 {
|
|
4811
|
+
/* The identifier for the last mutation processed by Vectorize. */
|
|
4812
|
+
mutationId: string;
|
|
4813
|
+
}
|
|
4797
4814
|
declare abstract class VectorizeIndex {
|
|
4798
4815
|
/**
|
|
4799
4816
|
* Get information about the currently bound index.
|
package/2022-01-31/index.ts
CHANGED
|
@@ -859,7 +859,7 @@ export interface CustomEventCustomEventInit {
|
|
|
859
859
|
}
|
|
860
860
|
export declare class Blob {
|
|
861
861
|
constructor(
|
|
862
|
-
|
|
862
|
+
type?: ((ArrayBuffer | ArrayBufferView) | string | Blob)[],
|
|
863
863
|
options?: BlobOptions,
|
|
864
864
|
);
|
|
865
865
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size) */
|
|
@@ -870,6 +870,7 @@ export declare class Blob {
|
|
|
870
870
|
slice(start?: number, end?: number, type?: string): Blob;
|
|
871
871
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/arrayBuffer) */
|
|
872
872
|
arrayBuffer(): Promise<ArrayBuffer>;
|
|
873
|
+
bytes(): Promise<Uint8Array>;
|
|
873
874
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */
|
|
874
875
|
text(): Promise<string>;
|
|
875
876
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/stream) */
|
|
@@ -1350,6 +1351,7 @@ export declare abstract class Body {
|
|
|
1350
1351
|
get body(): ReadableStream | null;
|
|
1351
1352
|
get bodyUsed(): boolean;
|
|
1352
1353
|
arrayBuffer(): Promise<ArrayBuffer>;
|
|
1354
|
+
bytes(): Promise<Uint8Array>;
|
|
1353
1355
|
text(): Promise<string>;
|
|
1354
1356
|
json<T>(): Promise<T>;
|
|
1355
1357
|
formData(): Promise<FormData>;
|
|
@@ -1758,11 +1760,11 @@ export interface R2MultipartOptions {
|
|
|
1758
1760
|
storageClass?: string;
|
|
1759
1761
|
}
|
|
1760
1762
|
export interface R2Checksums {
|
|
1761
|
-
readonly md5?:
|
|
1762
|
-
readonly sha1?:
|
|
1763
|
-
readonly sha256?:
|
|
1764
|
-
readonly sha384?:
|
|
1765
|
-
readonly sha512?:
|
|
1763
|
+
readonly md5?: ArrayBuffer;
|
|
1764
|
+
readonly sha1?: ArrayBuffer;
|
|
1765
|
+
readonly sha256?: ArrayBuffer;
|
|
1766
|
+
readonly sha384?: ArrayBuffer;
|
|
1767
|
+
readonly sha512?: ArrayBuffer;
|
|
1766
1768
|
toJSON(): R2StringChecksums;
|
|
1767
1769
|
}
|
|
1768
1770
|
export interface R2StringChecksums {
|
|
@@ -3155,8 +3157,14 @@ export declare abstract class BaseAiTranslation {
|
|
|
3155
3157
|
inputs: AiTranslationInput;
|
|
3156
3158
|
postProcessedOutputs: AiTranslationOutput;
|
|
3157
3159
|
}
|
|
3160
|
+
export type GatewayOptions = {
|
|
3161
|
+
id: string;
|
|
3162
|
+
cacheTtl?: number;
|
|
3163
|
+
skipCache?: boolean;
|
|
3164
|
+
metadata?: Record<string, number | string | boolean | null | bigint>;
|
|
3165
|
+
};
|
|
3158
3166
|
export type AiOptions = {
|
|
3159
|
-
|
|
3167
|
+
gateway?: GatewayOptions;
|
|
3160
3168
|
prefix?: string;
|
|
3161
3169
|
extraHeaders?: object;
|
|
3162
3170
|
};
|
|
@@ -4733,6 +4741,15 @@ export interface VectorizeVectorMutation {
|
|
|
4733
4741
|
/* Total count of the number of processed vectors. */
|
|
4734
4742
|
count: number;
|
|
4735
4743
|
}
|
|
4744
|
+
/**
|
|
4745
|
+
* Results of an operation that performed a mutation on a set of vectors
|
|
4746
|
+
* with the v2 version of Vectorize.
|
|
4747
|
+
* Here, `mutationId` is the identifier for the last mutation processed by Vectorize.
|
|
4748
|
+
*/
|
|
4749
|
+
export interface VectorizeVectorMutationV2 {
|
|
4750
|
+
/* The identifier for the last mutation processed by Vectorize. */
|
|
4751
|
+
mutationId: string;
|
|
4752
|
+
}
|
|
4736
4753
|
export declare abstract class VectorizeIndex {
|
|
4737
4754
|
/**
|
|
4738
4755
|
* Get information about the currently bound index.
|
package/2022-03-21/index.d.ts
CHANGED
|
@@ -874,7 +874,7 @@ declare interface CustomEventCustomEventInit {
|
|
|
874
874
|
}
|
|
875
875
|
declare class Blob {
|
|
876
876
|
constructor(
|
|
877
|
-
|
|
877
|
+
type?: ((ArrayBuffer | ArrayBufferView) | string | Blob)[],
|
|
878
878
|
options?: BlobOptions,
|
|
879
879
|
);
|
|
880
880
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size) */
|
|
@@ -885,6 +885,7 @@ declare class Blob {
|
|
|
885
885
|
slice(start?: number, end?: number, type?: string): Blob;
|
|
886
886
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/arrayBuffer) */
|
|
887
887
|
arrayBuffer(): Promise<ArrayBuffer>;
|
|
888
|
+
bytes(): Promise<Uint8Array>;
|
|
888
889
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */
|
|
889
890
|
text(): Promise<string>;
|
|
890
891
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/stream) */
|
|
@@ -1365,6 +1366,7 @@ declare abstract class Body {
|
|
|
1365
1366
|
get body(): ReadableStream | null;
|
|
1366
1367
|
get bodyUsed(): boolean;
|
|
1367
1368
|
arrayBuffer(): Promise<ArrayBuffer>;
|
|
1369
|
+
bytes(): Promise<Uint8Array>;
|
|
1368
1370
|
text(): Promise<string>;
|
|
1369
1371
|
json<T>(): Promise<T>;
|
|
1370
1372
|
formData(): Promise<FormData>;
|
|
@@ -1773,11 +1775,11 @@ declare interface R2MultipartOptions {
|
|
|
1773
1775
|
storageClass?: string;
|
|
1774
1776
|
}
|
|
1775
1777
|
declare interface R2Checksums {
|
|
1776
|
-
readonly md5?:
|
|
1777
|
-
readonly sha1?:
|
|
1778
|
-
readonly sha256?:
|
|
1779
|
-
readonly sha384?:
|
|
1780
|
-
readonly sha512?:
|
|
1778
|
+
readonly md5?: ArrayBuffer;
|
|
1779
|
+
readonly sha1?: ArrayBuffer;
|
|
1780
|
+
readonly sha256?: ArrayBuffer;
|
|
1781
|
+
readonly sha384?: ArrayBuffer;
|
|
1782
|
+
readonly sha512?: ArrayBuffer;
|
|
1781
1783
|
toJSON(): R2StringChecksums;
|
|
1782
1784
|
}
|
|
1783
1785
|
declare interface R2StringChecksums {
|
|
@@ -3176,8 +3178,14 @@ declare abstract class BaseAiTranslation {
|
|
|
3176
3178
|
inputs: AiTranslationInput;
|
|
3177
3179
|
postProcessedOutputs: AiTranslationOutput;
|
|
3178
3180
|
}
|
|
3181
|
+
declare type GatewayOptions = {
|
|
3182
|
+
id: string;
|
|
3183
|
+
cacheTtl?: number;
|
|
3184
|
+
skipCache?: boolean;
|
|
3185
|
+
metadata?: Record<string, number | string | boolean | null | bigint>;
|
|
3186
|
+
};
|
|
3179
3187
|
declare type AiOptions = {
|
|
3180
|
-
|
|
3188
|
+
gateway?: GatewayOptions;
|
|
3181
3189
|
prefix?: string;
|
|
3182
3190
|
extraHeaders?: object;
|
|
3183
3191
|
};
|
|
@@ -4820,6 +4828,15 @@ declare interface VectorizeVectorMutation {
|
|
|
4820
4828
|
/* Total count of the number of processed vectors. */
|
|
4821
4829
|
count: number;
|
|
4822
4830
|
}
|
|
4831
|
+
/**
|
|
4832
|
+
* Results of an operation that performed a mutation on a set of vectors
|
|
4833
|
+
* with the v2 version of Vectorize.
|
|
4834
|
+
* Here, `mutationId` is the identifier for the last mutation processed by Vectorize.
|
|
4835
|
+
*/
|
|
4836
|
+
declare interface VectorizeVectorMutationV2 {
|
|
4837
|
+
/* The identifier for the last mutation processed by Vectorize. */
|
|
4838
|
+
mutationId: string;
|
|
4839
|
+
}
|
|
4823
4840
|
declare abstract class VectorizeIndex {
|
|
4824
4841
|
/**
|
|
4825
4842
|
* Get information about the currently bound index.
|
package/2022-03-21/index.ts
CHANGED
|
@@ -876,7 +876,7 @@ export interface CustomEventCustomEventInit {
|
|
|
876
876
|
}
|
|
877
877
|
export declare class Blob {
|
|
878
878
|
constructor(
|
|
879
|
-
|
|
879
|
+
type?: ((ArrayBuffer | ArrayBufferView) | string | Blob)[],
|
|
880
880
|
options?: BlobOptions,
|
|
881
881
|
);
|
|
882
882
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size) */
|
|
@@ -887,6 +887,7 @@ export declare class Blob {
|
|
|
887
887
|
slice(start?: number, end?: number, type?: string): Blob;
|
|
888
888
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/arrayBuffer) */
|
|
889
889
|
arrayBuffer(): Promise<ArrayBuffer>;
|
|
890
|
+
bytes(): Promise<Uint8Array>;
|
|
890
891
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */
|
|
891
892
|
text(): Promise<string>;
|
|
892
893
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/stream) */
|
|
@@ -1367,6 +1368,7 @@ export declare abstract class Body {
|
|
|
1367
1368
|
get body(): ReadableStream | null;
|
|
1368
1369
|
get bodyUsed(): boolean;
|
|
1369
1370
|
arrayBuffer(): Promise<ArrayBuffer>;
|
|
1371
|
+
bytes(): Promise<Uint8Array>;
|
|
1370
1372
|
text(): Promise<string>;
|
|
1371
1373
|
json<T>(): Promise<T>;
|
|
1372
1374
|
formData(): Promise<FormData>;
|
|
@@ -1775,11 +1777,11 @@ export interface R2MultipartOptions {
|
|
|
1775
1777
|
storageClass?: string;
|
|
1776
1778
|
}
|
|
1777
1779
|
export interface R2Checksums {
|
|
1778
|
-
readonly md5?:
|
|
1779
|
-
readonly sha1?:
|
|
1780
|
-
readonly sha256?:
|
|
1781
|
-
readonly sha384?:
|
|
1782
|
-
readonly sha512?:
|
|
1780
|
+
readonly md5?: ArrayBuffer;
|
|
1781
|
+
readonly sha1?: ArrayBuffer;
|
|
1782
|
+
readonly sha256?: ArrayBuffer;
|
|
1783
|
+
readonly sha384?: ArrayBuffer;
|
|
1784
|
+
readonly sha512?: ArrayBuffer;
|
|
1783
1785
|
toJSON(): R2StringChecksums;
|
|
1784
1786
|
}
|
|
1785
1787
|
export interface R2StringChecksums {
|
|
@@ -3181,8 +3183,14 @@ export declare abstract class BaseAiTranslation {
|
|
|
3181
3183
|
inputs: AiTranslationInput;
|
|
3182
3184
|
postProcessedOutputs: AiTranslationOutput;
|
|
3183
3185
|
}
|
|
3186
|
+
export type GatewayOptions = {
|
|
3187
|
+
id: string;
|
|
3188
|
+
cacheTtl?: number;
|
|
3189
|
+
skipCache?: boolean;
|
|
3190
|
+
metadata?: Record<string, number | string | boolean | null | bigint>;
|
|
3191
|
+
};
|
|
3184
3192
|
export type AiOptions = {
|
|
3185
|
-
|
|
3193
|
+
gateway?: GatewayOptions;
|
|
3186
3194
|
prefix?: string;
|
|
3187
3195
|
extraHeaders?: object;
|
|
3188
3196
|
};
|
|
@@ -4759,6 +4767,15 @@ export interface VectorizeVectorMutation {
|
|
|
4759
4767
|
/* Total count of the number of processed vectors. */
|
|
4760
4768
|
count: number;
|
|
4761
4769
|
}
|
|
4770
|
+
/**
|
|
4771
|
+
* Results of an operation that performed a mutation on a set of vectors
|
|
4772
|
+
* with the v2 version of Vectorize.
|
|
4773
|
+
* Here, `mutationId` is the identifier for the last mutation processed by Vectorize.
|
|
4774
|
+
*/
|
|
4775
|
+
export interface VectorizeVectorMutationV2 {
|
|
4776
|
+
/* The identifier for the last mutation processed by Vectorize. */
|
|
4777
|
+
mutationId: string;
|
|
4778
|
+
}
|
|
4762
4779
|
export declare abstract class VectorizeIndex {
|
|
4763
4780
|
/**
|
|
4764
4781
|
* Get information about the currently bound index.
|
package/2022-08-04/index.d.ts
CHANGED
|
@@ -874,7 +874,7 @@ declare interface CustomEventCustomEventInit {
|
|
|
874
874
|
}
|
|
875
875
|
declare class Blob {
|
|
876
876
|
constructor(
|
|
877
|
-
|
|
877
|
+
type?: ((ArrayBuffer | ArrayBufferView) | string | Blob)[],
|
|
878
878
|
options?: BlobOptions,
|
|
879
879
|
);
|
|
880
880
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size) */
|
|
@@ -885,6 +885,7 @@ declare class Blob {
|
|
|
885
885
|
slice(start?: number, end?: number, type?: string): Blob;
|
|
886
886
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/arrayBuffer) */
|
|
887
887
|
arrayBuffer(): Promise<ArrayBuffer>;
|
|
888
|
+
bytes(): Promise<Uint8Array>;
|
|
888
889
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */
|
|
889
890
|
text(): Promise<string>;
|
|
890
891
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/stream) */
|
|
@@ -1365,6 +1366,7 @@ declare abstract class Body {
|
|
|
1365
1366
|
get body(): ReadableStream | null;
|
|
1366
1367
|
get bodyUsed(): boolean;
|
|
1367
1368
|
arrayBuffer(): Promise<ArrayBuffer>;
|
|
1369
|
+
bytes(): Promise<Uint8Array>;
|
|
1368
1370
|
text(): Promise<string>;
|
|
1369
1371
|
json<T>(): Promise<T>;
|
|
1370
1372
|
formData(): Promise<FormData>;
|
|
@@ -1774,11 +1776,11 @@ declare interface R2MultipartOptions {
|
|
|
1774
1776
|
storageClass?: string;
|
|
1775
1777
|
}
|
|
1776
1778
|
declare interface R2Checksums {
|
|
1777
|
-
readonly md5?:
|
|
1778
|
-
readonly sha1?:
|
|
1779
|
-
readonly sha256?:
|
|
1780
|
-
readonly sha384?:
|
|
1781
|
-
readonly sha512?:
|
|
1779
|
+
readonly md5?: ArrayBuffer;
|
|
1780
|
+
readonly sha1?: ArrayBuffer;
|
|
1781
|
+
readonly sha256?: ArrayBuffer;
|
|
1782
|
+
readonly sha384?: ArrayBuffer;
|
|
1783
|
+
readonly sha512?: ArrayBuffer;
|
|
1782
1784
|
toJSON(): R2StringChecksums;
|
|
1783
1785
|
}
|
|
1784
1786
|
declare interface R2StringChecksums {
|
|
@@ -3177,8 +3179,14 @@ declare abstract class BaseAiTranslation {
|
|
|
3177
3179
|
inputs: AiTranslationInput;
|
|
3178
3180
|
postProcessedOutputs: AiTranslationOutput;
|
|
3179
3181
|
}
|
|
3182
|
+
declare type GatewayOptions = {
|
|
3183
|
+
id: string;
|
|
3184
|
+
cacheTtl?: number;
|
|
3185
|
+
skipCache?: boolean;
|
|
3186
|
+
metadata?: Record<string, number | string | boolean | null | bigint>;
|
|
3187
|
+
};
|
|
3180
3188
|
declare type AiOptions = {
|
|
3181
|
-
|
|
3189
|
+
gateway?: GatewayOptions;
|
|
3182
3190
|
prefix?: string;
|
|
3183
3191
|
extraHeaders?: object;
|
|
3184
3192
|
};
|
|
@@ -4821,6 +4829,15 @@ declare interface VectorizeVectorMutation {
|
|
|
4821
4829
|
/* Total count of the number of processed vectors. */
|
|
4822
4830
|
count: number;
|
|
4823
4831
|
}
|
|
4832
|
+
/**
|
|
4833
|
+
* Results of an operation that performed a mutation on a set of vectors
|
|
4834
|
+
* with the v2 version of Vectorize.
|
|
4835
|
+
* Here, `mutationId` is the identifier for the last mutation processed by Vectorize.
|
|
4836
|
+
*/
|
|
4837
|
+
declare interface VectorizeVectorMutationV2 {
|
|
4838
|
+
/* The identifier for the last mutation processed by Vectorize. */
|
|
4839
|
+
mutationId: string;
|
|
4840
|
+
}
|
|
4824
4841
|
declare abstract class VectorizeIndex {
|
|
4825
4842
|
/**
|
|
4826
4843
|
* Get information about the currently bound index.
|
package/2022-08-04/index.ts
CHANGED
|
@@ -876,7 +876,7 @@ export interface CustomEventCustomEventInit {
|
|
|
876
876
|
}
|
|
877
877
|
export declare class Blob {
|
|
878
878
|
constructor(
|
|
879
|
-
|
|
879
|
+
type?: ((ArrayBuffer | ArrayBufferView) | string | Blob)[],
|
|
880
880
|
options?: BlobOptions,
|
|
881
881
|
);
|
|
882
882
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size) */
|
|
@@ -887,6 +887,7 @@ export declare class Blob {
|
|
|
887
887
|
slice(start?: number, end?: number, type?: string): Blob;
|
|
888
888
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/arrayBuffer) */
|
|
889
889
|
arrayBuffer(): Promise<ArrayBuffer>;
|
|
890
|
+
bytes(): Promise<Uint8Array>;
|
|
890
891
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */
|
|
891
892
|
text(): Promise<string>;
|
|
892
893
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/stream) */
|
|
@@ -1367,6 +1368,7 @@ export declare abstract class Body {
|
|
|
1367
1368
|
get body(): ReadableStream | null;
|
|
1368
1369
|
get bodyUsed(): boolean;
|
|
1369
1370
|
arrayBuffer(): Promise<ArrayBuffer>;
|
|
1371
|
+
bytes(): Promise<Uint8Array>;
|
|
1370
1372
|
text(): Promise<string>;
|
|
1371
1373
|
json<T>(): Promise<T>;
|
|
1372
1374
|
formData(): Promise<FormData>;
|
|
@@ -1776,11 +1778,11 @@ export interface R2MultipartOptions {
|
|
|
1776
1778
|
storageClass?: string;
|
|
1777
1779
|
}
|
|
1778
1780
|
export interface R2Checksums {
|
|
1779
|
-
readonly md5?:
|
|
1780
|
-
readonly sha1?:
|
|
1781
|
-
readonly sha256?:
|
|
1782
|
-
readonly sha384?:
|
|
1783
|
-
readonly sha512?:
|
|
1781
|
+
readonly md5?: ArrayBuffer;
|
|
1782
|
+
readonly sha1?: ArrayBuffer;
|
|
1783
|
+
readonly sha256?: ArrayBuffer;
|
|
1784
|
+
readonly sha384?: ArrayBuffer;
|
|
1785
|
+
readonly sha512?: ArrayBuffer;
|
|
1784
1786
|
toJSON(): R2StringChecksums;
|
|
1785
1787
|
}
|
|
1786
1788
|
export interface R2StringChecksums {
|
|
@@ -3182,8 +3184,14 @@ export declare abstract class BaseAiTranslation {
|
|
|
3182
3184
|
inputs: AiTranslationInput;
|
|
3183
3185
|
postProcessedOutputs: AiTranslationOutput;
|
|
3184
3186
|
}
|
|
3187
|
+
export type GatewayOptions = {
|
|
3188
|
+
id: string;
|
|
3189
|
+
cacheTtl?: number;
|
|
3190
|
+
skipCache?: boolean;
|
|
3191
|
+
metadata?: Record<string, number | string | boolean | null | bigint>;
|
|
3192
|
+
};
|
|
3185
3193
|
export type AiOptions = {
|
|
3186
|
-
|
|
3194
|
+
gateway?: GatewayOptions;
|
|
3187
3195
|
prefix?: string;
|
|
3188
3196
|
extraHeaders?: object;
|
|
3189
3197
|
};
|
|
@@ -4760,6 +4768,15 @@ export interface VectorizeVectorMutation {
|
|
|
4760
4768
|
/* Total count of the number of processed vectors. */
|
|
4761
4769
|
count: number;
|
|
4762
4770
|
}
|
|
4771
|
+
/**
|
|
4772
|
+
* Results of an operation that performed a mutation on a set of vectors
|
|
4773
|
+
* with the v2 version of Vectorize.
|
|
4774
|
+
* Here, `mutationId` is the identifier for the last mutation processed by Vectorize.
|
|
4775
|
+
*/
|
|
4776
|
+
export interface VectorizeVectorMutationV2 {
|
|
4777
|
+
/* The identifier for the last mutation processed by Vectorize. */
|
|
4778
|
+
mutationId: string;
|
|
4779
|
+
}
|
|
4763
4780
|
export declare abstract class VectorizeIndex {
|
|
4764
4781
|
/**
|
|
4765
4782
|
* Get information about the currently bound index.
|
package/2022-10-31/index.d.ts
CHANGED
|
@@ -874,7 +874,7 @@ declare interface CustomEventCustomEventInit {
|
|
|
874
874
|
}
|
|
875
875
|
declare class Blob {
|
|
876
876
|
constructor(
|
|
877
|
-
|
|
877
|
+
type?: ((ArrayBuffer | ArrayBufferView) | string | Blob)[],
|
|
878
878
|
options?: BlobOptions,
|
|
879
879
|
);
|
|
880
880
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size) */
|
|
@@ -885,6 +885,7 @@ declare class Blob {
|
|
|
885
885
|
slice(start?: number, end?: number, type?: string): Blob;
|
|
886
886
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/arrayBuffer) */
|
|
887
887
|
arrayBuffer(): Promise<ArrayBuffer>;
|
|
888
|
+
bytes(): Promise<Uint8Array>;
|
|
888
889
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */
|
|
889
890
|
text(): Promise<string>;
|
|
890
891
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/stream) */
|
|
@@ -1365,6 +1366,7 @@ declare abstract class Body {
|
|
|
1365
1366
|
get body(): ReadableStream | null;
|
|
1366
1367
|
get bodyUsed(): boolean;
|
|
1367
1368
|
arrayBuffer(): Promise<ArrayBuffer>;
|
|
1369
|
+
bytes(): Promise<Uint8Array>;
|
|
1368
1370
|
text(): Promise<string>;
|
|
1369
1371
|
json<T>(): Promise<T>;
|
|
1370
1372
|
formData(): Promise<FormData>;
|
|
@@ -1774,11 +1776,11 @@ declare interface R2MultipartOptions {
|
|
|
1774
1776
|
storageClass?: string;
|
|
1775
1777
|
}
|
|
1776
1778
|
declare interface R2Checksums {
|
|
1777
|
-
readonly md5?:
|
|
1778
|
-
readonly sha1?:
|
|
1779
|
-
readonly sha256?:
|
|
1780
|
-
readonly sha384?:
|
|
1781
|
-
readonly sha512?:
|
|
1779
|
+
readonly md5?: ArrayBuffer;
|
|
1780
|
+
readonly sha1?: ArrayBuffer;
|
|
1781
|
+
readonly sha256?: ArrayBuffer;
|
|
1782
|
+
readonly sha384?: ArrayBuffer;
|
|
1783
|
+
readonly sha512?: ArrayBuffer;
|
|
1782
1784
|
toJSON(): R2StringChecksums;
|
|
1783
1785
|
}
|
|
1784
1786
|
declare interface R2StringChecksums {
|
|
@@ -3176,8 +3178,14 @@ declare abstract class BaseAiTranslation {
|
|
|
3176
3178
|
inputs: AiTranslationInput;
|
|
3177
3179
|
postProcessedOutputs: AiTranslationOutput;
|
|
3178
3180
|
}
|
|
3181
|
+
declare type GatewayOptions = {
|
|
3182
|
+
id: string;
|
|
3183
|
+
cacheTtl?: number;
|
|
3184
|
+
skipCache?: boolean;
|
|
3185
|
+
metadata?: Record<string, number | string | boolean | null | bigint>;
|
|
3186
|
+
};
|
|
3179
3187
|
declare type AiOptions = {
|
|
3180
|
-
|
|
3188
|
+
gateway?: GatewayOptions;
|
|
3181
3189
|
prefix?: string;
|
|
3182
3190
|
extraHeaders?: object;
|
|
3183
3191
|
};
|
|
@@ -4820,6 +4828,15 @@ declare interface VectorizeVectorMutation {
|
|
|
4820
4828
|
/* Total count of the number of processed vectors. */
|
|
4821
4829
|
count: number;
|
|
4822
4830
|
}
|
|
4831
|
+
/**
|
|
4832
|
+
* Results of an operation that performed a mutation on a set of vectors
|
|
4833
|
+
* with the v2 version of Vectorize.
|
|
4834
|
+
* Here, `mutationId` is the identifier for the last mutation processed by Vectorize.
|
|
4835
|
+
*/
|
|
4836
|
+
declare interface VectorizeVectorMutationV2 {
|
|
4837
|
+
/* The identifier for the last mutation processed by Vectorize. */
|
|
4838
|
+
mutationId: string;
|
|
4839
|
+
}
|
|
4823
4840
|
declare abstract class VectorizeIndex {
|
|
4824
4841
|
/**
|
|
4825
4842
|
* Get information about the currently bound index.
|