@cloudflare/workers-types 4.20240725.0 → 4.20240729.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 +18 -1
- package/2021-11-03/index.ts +18 -1
- package/2022-01-31/index.d.ts +18 -1
- package/2022-01-31/index.ts +18 -1
- package/2022-03-21/index.d.ts +18 -1
- package/2022-03-21/index.ts +18 -1
- package/2022-08-04/index.d.ts +18 -1
- package/2022-08-04/index.ts +18 -1
- package/2022-10-31/index.d.ts +18 -1
- package/2022-10-31/index.ts +18 -1
- package/2022-11-30/index.d.ts +18 -1
- package/2022-11-30/index.ts +18 -1
- package/2023-03-01/index.d.ts +18 -1
- package/2023-03-01/index.ts +18 -1
- package/2023-07-01/index.d.ts +18 -1
- package/2023-07-01/index.ts +18 -1
- package/experimental/index.d.ts +18 -1
- package/experimental/index.ts +18 -1
- package/index.d.ts +18 -1
- package/index.ts +18 -1
- package/oldest/index.d.ts +18 -1
- package/oldest/index.ts +18 -1
- package/package.json +1 -1
package/2021-11-03/index.d.ts
CHANGED
|
@@ -3489,6 +3489,7 @@ type BaseAiSpeechRecognitionModels =
|
|
|
3489
3489
|
type BaseAiImageClassificationModels = "@cf/microsoft/resnet-50";
|
|
3490
3490
|
type BaseAiObjectDetectionModels = "@cf/facebook/detr-resnet-50";
|
|
3491
3491
|
type BaseAiTextGenerationModels =
|
|
3492
|
+
| "@cf/meta/llama-3.1-8b-instruct"
|
|
3492
3493
|
| "@cf/meta/llama-3-8b-instruct"
|
|
3493
3494
|
| "@cf/meta/llama-3-8b-instruct-awq"
|
|
3494
3495
|
| "@cf/meta/llama-2-7b-chat-int8"
|
|
@@ -5086,6 +5087,9 @@ type VectorizeIndexConfig =
|
|
|
5086
5087
|
};
|
|
5087
5088
|
/**
|
|
5088
5089
|
* Metadata about an existing index.
|
|
5090
|
+
*
|
|
5091
|
+
* This type is exclusively for the Vectorize **beta** and will be deprecated once Vectorize RC is released.
|
|
5092
|
+
* See {@link VectorizeIndexInfo} for its post-beta equivalent.
|
|
5089
5093
|
*/
|
|
5090
5094
|
interface VectorizeIndexDetails {
|
|
5091
5095
|
/** The unique ID of the index */
|
|
@@ -5099,6 +5103,19 @@ interface VectorizeIndexDetails {
|
|
|
5099
5103
|
/** The number of records containing vectors within the index. */
|
|
5100
5104
|
vectorsCount: number;
|
|
5101
5105
|
}
|
|
5106
|
+
/**
|
|
5107
|
+
* Metadata about an existing index.
|
|
5108
|
+
*/
|
|
5109
|
+
interface VectorizeIndexInfo {
|
|
5110
|
+
/** The number of records containing vectors within the index. */
|
|
5111
|
+
vectorsCount: number;
|
|
5112
|
+
/** Number of dimensions the index has been configured for. */
|
|
5113
|
+
dimensions: number;
|
|
5114
|
+
/** ISO 8601 datetime of the last processed mutation on in the index. All changes before this mutation will be reflected in the index state. */
|
|
5115
|
+
processedUpToDatetime: number;
|
|
5116
|
+
/** UUIDv4 of the last mutation processed by the index. All changes before this mutation will be reflected in the index state. */
|
|
5117
|
+
processedUpToMutation: number;
|
|
5118
|
+
}
|
|
5102
5119
|
/**
|
|
5103
5120
|
* Represents a single vector value set along with its associated metadata.
|
|
5104
5121
|
*/
|
|
@@ -5205,7 +5222,7 @@ declare abstract class Vectorize {
|
|
|
5205
5222
|
* Get information about the currently bound index.
|
|
5206
5223
|
* @returns A promise that resolves with information about the current index.
|
|
5207
5224
|
*/
|
|
5208
|
-
public describe(): Promise<
|
|
5225
|
+
public describe(): Promise<VectorizeIndexInfo>;
|
|
5209
5226
|
/**
|
|
5210
5227
|
* Use the provided vector to perform a similarity search across the index.
|
|
5211
5228
|
* @param vector Input vector that will be used to drive the similarity search.
|
package/2021-11-03/index.ts
CHANGED
|
@@ -3499,6 +3499,7 @@ export type BaseAiSpeechRecognitionModels =
|
|
|
3499
3499
|
export type BaseAiImageClassificationModels = "@cf/microsoft/resnet-50";
|
|
3500
3500
|
export type BaseAiObjectDetectionModels = "@cf/facebook/detr-resnet-50";
|
|
3501
3501
|
export type BaseAiTextGenerationModels =
|
|
3502
|
+
| "@cf/meta/llama-3.1-8b-instruct"
|
|
3502
3503
|
| "@cf/meta/llama-3-8b-instruct"
|
|
3503
3504
|
| "@cf/meta/llama-3-8b-instruct-awq"
|
|
3504
3505
|
| "@cf/meta/llama-2-7b-chat-int8"
|
|
@@ -5046,6 +5047,9 @@ export type VectorizeIndexConfig =
|
|
|
5046
5047
|
};
|
|
5047
5048
|
/**
|
|
5048
5049
|
* Metadata about an existing index.
|
|
5050
|
+
*
|
|
5051
|
+
* This type is exclusively for the Vectorize **beta** and will be deprecated once Vectorize RC is released.
|
|
5052
|
+
* See {@link VectorizeIndexInfo} for its post-beta equivalent.
|
|
5049
5053
|
*/
|
|
5050
5054
|
export interface VectorizeIndexDetails {
|
|
5051
5055
|
/** The unique ID of the index */
|
|
@@ -5059,6 +5063,19 @@ export interface VectorizeIndexDetails {
|
|
|
5059
5063
|
/** The number of records containing vectors within the index. */
|
|
5060
5064
|
vectorsCount: number;
|
|
5061
5065
|
}
|
|
5066
|
+
/**
|
|
5067
|
+
* Metadata about an existing index.
|
|
5068
|
+
*/
|
|
5069
|
+
export interface VectorizeIndexInfo {
|
|
5070
|
+
/** The number of records containing vectors within the index. */
|
|
5071
|
+
vectorsCount: number;
|
|
5072
|
+
/** Number of dimensions the index has been configured for. */
|
|
5073
|
+
dimensions: number;
|
|
5074
|
+
/** ISO 8601 datetime of the last processed mutation on in the index. All changes before this mutation will be reflected in the index state. */
|
|
5075
|
+
processedUpToDatetime: number;
|
|
5076
|
+
/** UUIDv4 of the last mutation processed by the index. All changes before this mutation will be reflected in the index state. */
|
|
5077
|
+
processedUpToMutation: number;
|
|
5078
|
+
}
|
|
5062
5079
|
/**
|
|
5063
5080
|
* Represents a single vector value set along with its associated metadata.
|
|
5064
5081
|
*/
|
|
@@ -5165,7 +5182,7 @@ export declare abstract class Vectorize {
|
|
|
5165
5182
|
* Get information about the currently bound index.
|
|
5166
5183
|
* @returns A promise that resolves with information about the current index.
|
|
5167
5184
|
*/
|
|
5168
|
-
public describe(): Promise<
|
|
5185
|
+
public describe(): Promise<VectorizeIndexInfo>;
|
|
5169
5186
|
/**
|
|
5170
5187
|
* Use the provided vector to perform a similarity search across the index.
|
|
5171
5188
|
* @param vector Input vector that will be used to drive the similarity search.
|
package/2022-01-31/index.d.ts
CHANGED
|
@@ -3515,6 +3515,7 @@ type BaseAiSpeechRecognitionModels =
|
|
|
3515
3515
|
type BaseAiImageClassificationModels = "@cf/microsoft/resnet-50";
|
|
3516
3516
|
type BaseAiObjectDetectionModels = "@cf/facebook/detr-resnet-50";
|
|
3517
3517
|
type BaseAiTextGenerationModels =
|
|
3518
|
+
| "@cf/meta/llama-3.1-8b-instruct"
|
|
3518
3519
|
| "@cf/meta/llama-3-8b-instruct"
|
|
3519
3520
|
| "@cf/meta/llama-3-8b-instruct-awq"
|
|
3520
3521
|
| "@cf/meta/llama-2-7b-chat-int8"
|
|
@@ -5112,6 +5113,9 @@ type VectorizeIndexConfig =
|
|
|
5112
5113
|
};
|
|
5113
5114
|
/**
|
|
5114
5115
|
* Metadata about an existing index.
|
|
5116
|
+
*
|
|
5117
|
+
* This type is exclusively for the Vectorize **beta** and will be deprecated once Vectorize RC is released.
|
|
5118
|
+
* See {@link VectorizeIndexInfo} for its post-beta equivalent.
|
|
5115
5119
|
*/
|
|
5116
5120
|
interface VectorizeIndexDetails {
|
|
5117
5121
|
/** The unique ID of the index */
|
|
@@ -5125,6 +5129,19 @@ interface VectorizeIndexDetails {
|
|
|
5125
5129
|
/** The number of records containing vectors within the index. */
|
|
5126
5130
|
vectorsCount: number;
|
|
5127
5131
|
}
|
|
5132
|
+
/**
|
|
5133
|
+
* Metadata about an existing index.
|
|
5134
|
+
*/
|
|
5135
|
+
interface VectorizeIndexInfo {
|
|
5136
|
+
/** The number of records containing vectors within the index. */
|
|
5137
|
+
vectorsCount: number;
|
|
5138
|
+
/** Number of dimensions the index has been configured for. */
|
|
5139
|
+
dimensions: number;
|
|
5140
|
+
/** ISO 8601 datetime of the last processed mutation on in the index. All changes before this mutation will be reflected in the index state. */
|
|
5141
|
+
processedUpToDatetime: number;
|
|
5142
|
+
/** UUIDv4 of the last mutation processed by the index. All changes before this mutation will be reflected in the index state. */
|
|
5143
|
+
processedUpToMutation: number;
|
|
5144
|
+
}
|
|
5128
5145
|
/**
|
|
5129
5146
|
* Represents a single vector value set along with its associated metadata.
|
|
5130
5147
|
*/
|
|
@@ -5231,7 +5248,7 @@ declare abstract class Vectorize {
|
|
|
5231
5248
|
* Get information about the currently bound index.
|
|
5232
5249
|
* @returns A promise that resolves with information about the current index.
|
|
5233
5250
|
*/
|
|
5234
|
-
public describe(): Promise<
|
|
5251
|
+
public describe(): Promise<VectorizeIndexInfo>;
|
|
5235
5252
|
/**
|
|
5236
5253
|
* Use the provided vector to perform a similarity search across the index.
|
|
5237
5254
|
* @param vector Input vector that will be used to drive the similarity search.
|
package/2022-01-31/index.ts
CHANGED
|
@@ -3525,6 +3525,7 @@ export type BaseAiSpeechRecognitionModels =
|
|
|
3525
3525
|
export type BaseAiImageClassificationModels = "@cf/microsoft/resnet-50";
|
|
3526
3526
|
export type BaseAiObjectDetectionModels = "@cf/facebook/detr-resnet-50";
|
|
3527
3527
|
export type BaseAiTextGenerationModels =
|
|
3528
|
+
| "@cf/meta/llama-3.1-8b-instruct"
|
|
3528
3529
|
| "@cf/meta/llama-3-8b-instruct"
|
|
3529
3530
|
| "@cf/meta/llama-3-8b-instruct-awq"
|
|
3530
3531
|
| "@cf/meta/llama-2-7b-chat-int8"
|
|
@@ -5072,6 +5073,9 @@ export type VectorizeIndexConfig =
|
|
|
5072
5073
|
};
|
|
5073
5074
|
/**
|
|
5074
5075
|
* Metadata about an existing index.
|
|
5076
|
+
*
|
|
5077
|
+
* This type is exclusively for the Vectorize **beta** and will be deprecated once Vectorize RC is released.
|
|
5078
|
+
* See {@link VectorizeIndexInfo} for its post-beta equivalent.
|
|
5075
5079
|
*/
|
|
5076
5080
|
export interface VectorizeIndexDetails {
|
|
5077
5081
|
/** The unique ID of the index */
|
|
@@ -5085,6 +5089,19 @@ export interface VectorizeIndexDetails {
|
|
|
5085
5089
|
/** The number of records containing vectors within the index. */
|
|
5086
5090
|
vectorsCount: number;
|
|
5087
5091
|
}
|
|
5092
|
+
/**
|
|
5093
|
+
* Metadata about an existing index.
|
|
5094
|
+
*/
|
|
5095
|
+
export interface VectorizeIndexInfo {
|
|
5096
|
+
/** The number of records containing vectors within the index. */
|
|
5097
|
+
vectorsCount: number;
|
|
5098
|
+
/** Number of dimensions the index has been configured for. */
|
|
5099
|
+
dimensions: number;
|
|
5100
|
+
/** ISO 8601 datetime of the last processed mutation on in the index. All changes before this mutation will be reflected in the index state. */
|
|
5101
|
+
processedUpToDatetime: number;
|
|
5102
|
+
/** UUIDv4 of the last mutation processed by the index. All changes before this mutation will be reflected in the index state. */
|
|
5103
|
+
processedUpToMutation: number;
|
|
5104
|
+
}
|
|
5088
5105
|
/**
|
|
5089
5106
|
* Represents a single vector value set along with its associated metadata.
|
|
5090
5107
|
*/
|
|
@@ -5191,7 +5208,7 @@ export declare abstract class Vectorize {
|
|
|
5191
5208
|
* Get information about the currently bound index.
|
|
5192
5209
|
* @returns A promise that resolves with information about the current index.
|
|
5193
5210
|
*/
|
|
5194
|
-
public describe(): Promise<
|
|
5211
|
+
public describe(): Promise<VectorizeIndexInfo>;
|
|
5195
5212
|
/**
|
|
5196
5213
|
* Use the provided vector to perform a similarity search across the index.
|
|
5197
5214
|
* @param vector Input vector that will be used to drive the similarity search.
|
package/2022-03-21/index.d.ts
CHANGED
|
@@ -3539,6 +3539,7 @@ type BaseAiSpeechRecognitionModels =
|
|
|
3539
3539
|
type BaseAiImageClassificationModels = "@cf/microsoft/resnet-50";
|
|
3540
3540
|
type BaseAiObjectDetectionModels = "@cf/facebook/detr-resnet-50";
|
|
3541
3541
|
type BaseAiTextGenerationModels =
|
|
3542
|
+
| "@cf/meta/llama-3.1-8b-instruct"
|
|
3542
3543
|
| "@cf/meta/llama-3-8b-instruct"
|
|
3543
3544
|
| "@cf/meta/llama-3-8b-instruct-awq"
|
|
3544
3545
|
| "@cf/meta/llama-2-7b-chat-int8"
|
|
@@ -5136,6 +5137,9 @@ type VectorizeIndexConfig =
|
|
|
5136
5137
|
};
|
|
5137
5138
|
/**
|
|
5138
5139
|
* Metadata about an existing index.
|
|
5140
|
+
*
|
|
5141
|
+
* This type is exclusively for the Vectorize **beta** and will be deprecated once Vectorize RC is released.
|
|
5142
|
+
* See {@link VectorizeIndexInfo} for its post-beta equivalent.
|
|
5139
5143
|
*/
|
|
5140
5144
|
interface VectorizeIndexDetails {
|
|
5141
5145
|
/** The unique ID of the index */
|
|
@@ -5149,6 +5153,19 @@ interface VectorizeIndexDetails {
|
|
|
5149
5153
|
/** The number of records containing vectors within the index. */
|
|
5150
5154
|
vectorsCount: number;
|
|
5151
5155
|
}
|
|
5156
|
+
/**
|
|
5157
|
+
* Metadata about an existing index.
|
|
5158
|
+
*/
|
|
5159
|
+
interface VectorizeIndexInfo {
|
|
5160
|
+
/** The number of records containing vectors within the index. */
|
|
5161
|
+
vectorsCount: number;
|
|
5162
|
+
/** Number of dimensions the index has been configured for. */
|
|
5163
|
+
dimensions: number;
|
|
5164
|
+
/** ISO 8601 datetime of the last processed mutation on in the index. All changes before this mutation will be reflected in the index state. */
|
|
5165
|
+
processedUpToDatetime: number;
|
|
5166
|
+
/** UUIDv4 of the last mutation processed by the index. All changes before this mutation will be reflected in the index state. */
|
|
5167
|
+
processedUpToMutation: number;
|
|
5168
|
+
}
|
|
5152
5169
|
/**
|
|
5153
5170
|
* Represents a single vector value set along with its associated metadata.
|
|
5154
5171
|
*/
|
|
@@ -5255,7 +5272,7 @@ declare abstract class Vectorize {
|
|
|
5255
5272
|
* Get information about the currently bound index.
|
|
5256
5273
|
* @returns A promise that resolves with information about the current index.
|
|
5257
5274
|
*/
|
|
5258
|
-
public describe(): Promise<
|
|
5275
|
+
public describe(): Promise<VectorizeIndexInfo>;
|
|
5259
5276
|
/**
|
|
5260
5277
|
* Use the provided vector to perform a similarity search across the index.
|
|
5261
5278
|
* @param vector Input vector that will be used to drive the similarity search.
|
package/2022-03-21/index.ts
CHANGED
|
@@ -3549,6 +3549,7 @@ export type BaseAiSpeechRecognitionModels =
|
|
|
3549
3549
|
export type BaseAiImageClassificationModels = "@cf/microsoft/resnet-50";
|
|
3550
3550
|
export type BaseAiObjectDetectionModels = "@cf/facebook/detr-resnet-50";
|
|
3551
3551
|
export type BaseAiTextGenerationModels =
|
|
3552
|
+
| "@cf/meta/llama-3.1-8b-instruct"
|
|
3552
3553
|
| "@cf/meta/llama-3-8b-instruct"
|
|
3553
3554
|
| "@cf/meta/llama-3-8b-instruct-awq"
|
|
3554
3555
|
| "@cf/meta/llama-2-7b-chat-int8"
|
|
@@ -5096,6 +5097,9 @@ export type VectorizeIndexConfig =
|
|
|
5096
5097
|
};
|
|
5097
5098
|
/**
|
|
5098
5099
|
* Metadata about an existing index.
|
|
5100
|
+
*
|
|
5101
|
+
* This type is exclusively for the Vectorize **beta** and will be deprecated once Vectorize RC is released.
|
|
5102
|
+
* See {@link VectorizeIndexInfo} for its post-beta equivalent.
|
|
5099
5103
|
*/
|
|
5100
5104
|
export interface VectorizeIndexDetails {
|
|
5101
5105
|
/** The unique ID of the index */
|
|
@@ -5109,6 +5113,19 @@ export interface VectorizeIndexDetails {
|
|
|
5109
5113
|
/** The number of records containing vectors within the index. */
|
|
5110
5114
|
vectorsCount: number;
|
|
5111
5115
|
}
|
|
5116
|
+
/**
|
|
5117
|
+
* Metadata about an existing index.
|
|
5118
|
+
*/
|
|
5119
|
+
export interface VectorizeIndexInfo {
|
|
5120
|
+
/** The number of records containing vectors within the index. */
|
|
5121
|
+
vectorsCount: number;
|
|
5122
|
+
/** Number of dimensions the index has been configured for. */
|
|
5123
|
+
dimensions: number;
|
|
5124
|
+
/** ISO 8601 datetime of the last processed mutation on in the index. All changes before this mutation will be reflected in the index state. */
|
|
5125
|
+
processedUpToDatetime: number;
|
|
5126
|
+
/** UUIDv4 of the last mutation processed by the index. All changes before this mutation will be reflected in the index state. */
|
|
5127
|
+
processedUpToMutation: number;
|
|
5128
|
+
}
|
|
5112
5129
|
/**
|
|
5113
5130
|
* Represents a single vector value set along with its associated metadata.
|
|
5114
5131
|
*/
|
|
@@ -5215,7 +5232,7 @@ export declare abstract class Vectorize {
|
|
|
5215
5232
|
* Get information about the currently bound index.
|
|
5216
5233
|
* @returns A promise that resolves with information about the current index.
|
|
5217
5234
|
*/
|
|
5218
|
-
public describe(): Promise<
|
|
5235
|
+
public describe(): Promise<VectorizeIndexInfo>;
|
|
5219
5236
|
/**
|
|
5220
5237
|
* Use the provided vector to perform a similarity search across the index.
|
|
5221
5238
|
* @param vector Input vector that will be used to drive the similarity search.
|
package/2022-08-04/index.d.ts
CHANGED
|
@@ -3540,6 +3540,7 @@ type BaseAiSpeechRecognitionModels =
|
|
|
3540
3540
|
type BaseAiImageClassificationModels = "@cf/microsoft/resnet-50";
|
|
3541
3541
|
type BaseAiObjectDetectionModels = "@cf/facebook/detr-resnet-50";
|
|
3542
3542
|
type BaseAiTextGenerationModels =
|
|
3543
|
+
| "@cf/meta/llama-3.1-8b-instruct"
|
|
3543
3544
|
| "@cf/meta/llama-3-8b-instruct"
|
|
3544
3545
|
| "@cf/meta/llama-3-8b-instruct-awq"
|
|
3545
3546
|
| "@cf/meta/llama-2-7b-chat-int8"
|
|
@@ -5137,6 +5138,9 @@ type VectorizeIndexConfig =
|
|
|
5137
5138
|
};
|
|
5138
5139
|
/**
|
|
5139
5140
|
* Metadata about an existing index.
|
|
5141
|
+
*
|
|
5142
|
+
* This type is exclusively for the Vectorize **beta** and will be deprecated once Vectorize RC is released.
|
|
5143
|
+
* See {@link VectorizeIndexInfo} for its post-beta equivalent.
|
|
5140
5144
|
*/
|
|
5141
5145
|
interface VectorizeIndexDetails {
|
|
5142
5146
|
/** The unique ID of the index */
|
|
@@ -5150,6 +5154,19 @@ interface VectorizeIndexDetails {
|
|
|
5150
5154
|
/** The number of records containing vectors within the index. */
|
|
5151
5155
|
vectorsCount: number;
|
|
5152
5156
|
}
|
|
5157
|
+
/**
|
|
5158
|
+
* Metadata about an existing index.
|
|
5159
|
+
*/
|
|
5160
|
+
interface VectorizeIndexInfo {
|
|
5161
|
+
/** The number of records containing vectors within the index. */
|
|
5162
|
+
vectorsCount: number;
|
|
5163
|
+
/** Number of dimensions the index has been configured for. */
|
|
5164
|
+
dimensions: number;
|
|
5165
|
+
/** ISO 8601 datetime of the last processed mutation on in the index. All changes before this mutation will be reflected in the index state. */
|
|
5166
|
+
processedUpToDatetime: number;
|
|
5167
|
+
/** UUIDv4 of the last mutation processed by the index. All changes before this mutation will be reflected in the index state. */
|
|
5168
|
+
processedUpToMutation: number;
|
|
5169
|
+
}
|
|
5153
5170
|
/**
|
|
5154
5171
|
* Represents a single vector value set along with its associated metadata.
|
|
5155
5172
|
*/
|
|
@@ -5256,7 +5273,7 @@ declare abstract class Vectorize {
|
|
|
5256
5273
|
* Get information about the currently bound index.
|
|
5257
5274
|
* @returns A promise that resolves with information about the current index.
|
|
5258
5275
|
*/
|
|
5259
|
-
public describe(): Promise<
|
|
5276
|
+
public describe(): Promise<VectorizeIndexInfo>;
|
|
5260
5277
|
/**
|
|
5261
5278
|
* Use the provided vector to perform a similarity search across the index.
|
|
5262
5279
|
* @param vector Input vector that will be used to drive the similarity search.
|
package/2022-08-04/index.ts
CHANGED
|
@@ -3550,6 +3550,7 @@ export type BaseAiSpeechRecognitionModels =
|
|
|
3550
3550
|
export type BaseAiImageClassificationModels = "@cf/microsoft/resnet-50";
|
|
3551
3551
|
export type BaseAiObjectDetectionModels = "@cf/facebook/detr-resnet-50";
|
|
3552
3552
|
export type BaseAiTextGenerationModels =
|
|
3553
|
+
| "@cf/meta/llama-3.1-8b-instruct"
|
|
3553
3554
|
| "@cf/meta/llama-3-8b-instruct"
|
|
3554
3555
|
| "@cf/meta/llama-3-8b-instruct-awq"
|
|
3555
3556
|
| "@cf/meta/llama-2-7b-chat-int8"
|
|
@@ -5097,6 +5098,9 @@ export type VectorizeIndexConfig =
|
|
|
5097
5098
|
};
|
|
5098
5099
|
/**
|
|
5099
5100
|
* Metadata about an existing index.
|
|
5101
|
+
*
|
|
5102
|
+
* This type is exclusively for the Vectorize **beta** and will be deprecated once Vectorize RC is released.
|
|
5103
|
+
* See {@link VectorizeIndexInfo} for its post-beta equivalent.
|
|
5100
5104
|
*/
|
|
5101
5105
|
export interface VectorizeIndexDetails {
|
|
5102
5106
|
/** The unique ID of the index */
|
|
@@ -5110,6 +5114,19 @@ export interface VectorizeIndexDetails {
|
|
|
5110
5114
|
/** The number of records containing vectors within the index. */
|
|
5111
5115
|
vectorsCount: number;
|
|
5112
5116
|
}
|
|
5117
|
+
/**
|
|
5118
|
+
* Metadata about an existing index.
|
|
5119
|
+
*/
|
|
5120
|
+
export interface VectorizeIndexInfo {
|
|
5121
|
+
/** The number of records containing vectors within the index. */
|
|
5122
|
+
vectorsCount: number;
|
|
5123
|
+
/** Number of dimensions the index has been configured for. */
|
|
5124
|
+
dimensions: number;
|
|
5125
|
+
/** ISO 8601 datetime of the last processed mutation on in the index. All changes before this mutation will be reflected in the index state. */
|
|
5126
|
+
processedUpToDatetime: number;
|
|
5127
|
+
/** UUIDv4 of the last mutation processed by the index. All changes before this mutation will be reflected in the index state. */
|
|
5128
|
+
processedUpToMutation: number;
|
|
5129
|
+
}
|
|
5113
5130
|
/**
|
|
5114
5131
|
* Represents a single vector value set along with its associated metadata.
|
|
5115
5132
|
*/
|
|
@@ -5216,7 +5233,7 @@ export declare abstract class Vectorize {
|
|
|
5216
5233
|
* Get information about the currently bound index.
|
|
5217
5234
|
* @returns A promise that resolves with information about the current index.
|
|
5218
5235
|
*/
|
|
5219
|
-
public describe(): Promise<
|
|
5236
|
+
public describe(): Promise<VectorizeIndexInfo>;
|
|
5220
5237
|
/**
|
|
5221
5238
|
* Use the provided vector to perform a similarity search across the index.
|
|
5222
5239
|
* @param vector Input vector that will be used to drive the similarity search.
|
package/2022-10-31/index.d.ts
CHANGED
|
@@ -3539,6 +3539,7 @@ type BaseAiSpeechRecognitionModels =
|
|
|
3539
3539
|
type BaseAiImageClassificationModels = "@cf/microsoft/resnet-50";
|
|
3540
3540
|
type BaseAiObjectDetectionModels = "@cf/facebook/detr-resnet-50";
|
|
3541
3541
|
type BaseAiTextGenerationModels =
|
|
3542
|
+
| "@cf/meta/llama-3.1-8b-instruct"
|
|
3542
3543
|
| "@cf/meta/llama-3-8b-instruct"
|
|
3543
3544
|
| "@cf/meta/llama-3-8b-instruct-awq"
|
|
3544
3545
|
| "@cf/meta/llama-2-7b-chat-int8"
|
|
@@ -5136,6 +5137,9 @@ type VectorizeIndexConfig =
|
|
|
5136
5137
|
};
|
|
5137
5138
|
/**
|
|
5138
5139
|
* Metadata about an existing index.
|
|
5140
|
+
*
|
|
5141
|
+
* This type is exclusively for the Vectorize **beta** and will be deprecated once Vectorize RC is released.
|
|
5142
|
+
* See {@link VectorizeIndexInfo} for its post-beta equivalent.
|
|
5139
5143
|
*/
|
|
5140
5144
|
interface VectorizeIndexDetails {
|
|
5141
5145
|
/** The unique ID of the index */
|
|
@@ -5149,6 +5153,19 @@ interface VectorizeIndexDetails {
|
|
|
5149
5153
|
/** The number of records containing vectors within the index. */
|
|
5150
5154
|
vectorsCount: number;
|
|
5151
5155
|
}
|
|
5156
|
+
/**
|
|
5157
|
+
* Metadata about an existing index.
|
|
5158
|
+
*/
|
|
5159
|
+
interface VectorizeIndexInfo {
|
|
5160
|
+
/** The number of records containing vectors within the index. */
|
|
5161
|
+
vectorsCount: number;
|
|
5162
|
+
/** Number of dimensions the index has been configured for. */
|
|
5163
|
+
dimensions: number;
|
|
5164
|
+
/** ISO 8601 datetime of the last processed mutation on in the index. All changes before this mutation will be reflected in the index state. */
|
|
5165
|
+
processedUpToDatetime: number;
|
|
5166
|
+
/** UUIDv4 of the last mutation processed by the index. All changes before this mutation will be reflected in the index state. */
|
|
5167
|
+
processedUpToMutation: number;
|
|
5168
|
+
}
|
|
5152
5169
|
/**
|
|
5153
5170
|
* Represents a single vector value set along with its associated metadata.
|
|
5154
5171
|
*/
|
|
@@ -5255,7 +5272,7 @@ declare abstract class Vectorize {
|
|
|
5255
5272
|
* Get information about the currently bound index.
|
|
5256
5273
|
* @returns A promise that resolves with information about the current index.
|
|
5257
5274
|
*/
|
|
5258
|
-
public describe(): Promise<
|
|
5275
|
+
public describe(): Promise<VectorizeIndexInfo>;
|
|
5259
5276
|
/**
|
|
5260
5277
|
* Use the provided vector to perform a similarity search across the index.
|
|
5261
5278
|
* @param vector Input vector that will be used to drive the similarity search.
|
package/2022-10-31/index.ts
CHANGED
|
@@ -3549,6 +3549,7 @@ export type BaseAiSpeechRecognitionModels =
|
|
|
3549
3549
|
export type BaseAiImageClassificationModels = "@cf/microsoft/resnet-50";
|
|
3550
3550
|
export type BaseAiObjectDetectionModels = "@cf/facebook/detr-resnet-50";
|
|
3551
3551
|
export type BaseAiTextGenerationModels =
|
|
3552
|
+
| "@cf/meta/llama-3.1-8b-instruct"
|
|
3552
3553
|
| "@cf/meta/llama-3-8b-instruct"
|
|
3553
3554
|
| "@cf/meta/llama-3-8b-instruct-awq"
|
|
3554
3555
|
| "@cf/meta/llama-2-7b-chat-int8"
|
|
@@ -5096,6 +5097,9 @@ export type VectorizeIndexConfig =
|
|
|
5096
5097
|
};
|
|
5097
5098
|
/**
|
|
5098
5099
|
* Metadata about an existing index.
|
|
5100
|
+
*
|
|
5101
|
+
* This type is exclusively for the Vectorize **beta** and will be deprecated once Vectorize RC is released.
|
|
5102
|
+
* See {@link VectorizeIndexInfo} for its post-beta equivalent.
|
|
5099
5103
|
*/
|
|
5100
5104
|
export interface VectorizeIndexDetails {
|
|
5101
5105
|
/** The unique ID of the index */
|
|
@@ -5109,6 +5113,19 @@ export interface VectorizeIndexDetails {
|
|
|
5109
5113
|
/** The number of records containing vectors within the index. */
|
|
5110
5114
|
vectorsCount: number;
|
|
5111
5115
|
}
|
|
5116
|
+
/**
|
|
5117
|
+
* Metadata about an existing index.
|
|
5118
|
+
*/
|
|
5119
|
+
export interface VectorizeIndexInfo {
|
|
5120
|
+
/** The number of records containing vectors within the index. */
|
|
5121
|
+
vectorsCount: number;
|
|
5122
|
+
/** Number of dimensions the index has been configured for. */
|
|
5123
|
+
dimensions: number;
|
|
5124
|
+
/** ISO 8601 datetime of the last processed mutation on in the index. All changes before this mutation will be reflected in the index state. */
|
|
5125
|
+
processedUpToDatetime: number;
|
|
5126
|
+
/** UUIDv4 of the last mutation processed by the index. All changes before this mutation will be reflected in the index state. */
|
|
5127
|
+
processedUpToMutation: number;
|
|
5128
|
+
}
|
|
5112
5129
|
/**
|
|
5113
5130
|
* Represents a single vector value set along with its associated metadata.
|
|
5114
5131
|
*/
|
|
@@ -5215,7 +5232,7 @@ export declare abstract class Vectorize {
|
|
|
5215
5232
|
* Get information about the currently bound index.
|
|
5216
5233
|
* @returns A promise that resolves with information about the current index.
|
|
5217
5234
|
*/
|
|
5218
|
-
public describe(): Promise<
|
|
5235
|
+
public describe(): Promise<VectorizeIndexInfo>;
|
|
5219
5236
|
/**
|
|
5220
5237
|
* Use the provided vector to perform a similarity search across the index.
|
|
5221
5238
|
* @param vector Input vector that will be used to drive the similarity search.
|
package/2022-11-30/index.d.ts
CHANGED
|
@@ -3544,6 +3544,7 @@ type BaseAiSpeechRecognitionModels =
|
|
|
3544
3544
|
type BaseAiImageClassificationModels = "@cf/microsoft/resnet-50";
|
|
3545
3545
|
type BaseAiObjectDetectionModels = "@cf/facebook/detr-resnet-50";
|
|
3546
3546
|
type BaseAiTextGenerationModels =
|
|
3547
|
+
| "@cf/meta/llama-3.1-8b-instruct"
|
|
3547
3548
|
| "@cf/meta/llama-3-8b-instruct"
|
|
3548
3549
|
| "@cf/meta/llama-3-8b-instruct-awq"
|
|
3549
3550
|
| "@cf/meta/llama-2-7b-chat-int8"
|
|
@@ -5141,6 +5142,9 @@ type VectorizeIndexConfig =
|
|
|
5141
5142
|
};
|
|
5142
5143
|
/**
|
|
5143
5144
|
* Metadata about an existing index.
|
|
5145
|
+
*
|
|
5146
|
+
* This type is exclusively for the Vectorize **beta** and will be deprecated once Vectorize RC is released.
|
|
5147
|
+
* See {@link VectorizeIndexInfo} for its post-beta equivalent.
|
|
5144
5148
|
*/
|
|
5145
5149
|
interface VectorizeIndexDetails {
|
|
5146
5150
|
/** The unique ID of the index */
|
|
@@ -5154,6 +5158,19 @@ interface VectorizeIndexDetails {
|
|
|
5154
5158
|
/** The number of records containing vectors within the index. */
|
|
5155
5159
|
vectorsCount: number;
|
|
5156
5160
|
}
|
|
5161
|
+
/**
|
|
5162
|
+
* Metadata about an existing index.
|
|
5163
|
+
*/
|
|
5164
|
+
interface VectorizeIndexInfo {
|
|
5165
|
+
/** The number of records containing vectors within the index. */
|
|
5166
|
+
vectorsCount: number;
|
|
5167
|
+
/** Number of dimensions the index has been configured for. */
|
|
5168
|
+
dimensions: number;
|
|
5169
|
+
/** ISO 8601 datetime of the last processed mutation on in the index. All changes before this mutation will be reflected in the index state. */
|
|
5170
|
+
processedUpToDatetime: number;
|
|
5171
|
+
/** UUIDv4 of the last mutation processed by the index. All changes before this mutation will be reflected in the index state. */
|
|
5172
|
+
processedUpToMutation: number;
|
|
5173
|
+
}
|
|
5157
5174
|
/**
|
|
5158
5175
|
* Represents a single vector value set along with its associated metadata.
|
|
5159
5176
|
*/
|
|
@@ -5260,7 +5277,7 @@ declare abstract class Vectorize {
|
|
|
5260
5277
|
* Get information about the currently bound index.
|
|
5261
5278
|
* @returns A promise that resolves with information about the current index.
|
|
5262
5279
|
*/
|
|
5263
|
-
public describe(): Promise<
|
|
5280
|
+
public describe(): Promise<VectorizeIndexInfo>;
|
|
5264
5281
|
/**
|
|
5265
5282
|
* Use the provided vector to perform a similarity search across the index.
|
|
5266
5283
|
* @param vector Input vector that will be used to drive the similarity search.
|
package/2022-11-30/index.ts
CHANGED
|
@@ -3554,6 +3554,7 @@ export type BaseAiSpeechRecognitionModels =
|
|
|
3554
3554
|
export type BaseAiImageClassificationModels = "@cf/microsoft/resnet-50";
|
|
3555
3555
|
export type BaseAiObjectDetectionModels = "@cf/facebook/detr-resnet-50";
|
|
3556
3556
|
export type BaseAiTextGenerationModels =
|
|
3557
|
+
| "@cf/meta/llama-3.1-8b-instruct"
|
|
3557
3558
|
| "@cf/meta/llama-3-8b-instruct"
|
|
3558
3559
|
| "@cf/meta/llama-3-8b-instruct-awq"
|
|
3559
3560
|
| "@cf/meta/llama-2-7b-chat-int8"
|
|
@@ -5101,6 +5102,9 @@ export type VectorizeIndexConfig =
|
|
|
5101
5102
|
};
|
|
5102
5103
|
/**
|
|
5103
5104
|
* Metadata about an existing index.
|
|
5105
|
+
*
|
|
5106
|
+
* This type is exclusively for the Vectorize **beta** and will be deprecated once Vectorize RC is released.
|
|
5107
|
+
* See {@link VectorizeIndexInfo} for its post-beta equivalent.
|
|
5104
5108
|
*/
|
|
5105
5109
|
export interface VectorizeIndexDetails {
|
|
5106
5110
|
/** The unique ID of the index */
|
|
@@ -5114,6 +5118,19 @@ export interface VectorizeIndexDetails {
|
|
|
5114
5118
|
/** The number of records containing vectors within the index. */
|
|
5115
5119
|
vectorsCount: number;
|
|
5116
5120
|
}
|
|
5121
|
+
/**
|
|
5122
|
+
* Metadata about an existing index.
|
|
5123
|
+
*/
|
|
5124
|
+
export interface VectorizeIndexInfo {
|
|
5125
|
+
/** The number of records containing vectors within the index. */
|
|
5126
|
+
vectorsCount: number;
|
|
5127
|
+
/** Number of dimensions the index has been configured for. */
|
|
5128
|
+
dimensions: number;
|
|
5129
|
+
/** ISO 8601 datetime of the last processed mutation on in the index. All changes before this mutation will be reflected in the index state. */
|
|
5130
|
+
processedUpToDatetime: number;
|
|
5131
|
+
/** UUIDv4 of the last mutation processed by the index. All changes before this mutation will be reflected in the index state. */
|
|
5132
|
+
processedUpToMutation: number;
|
|
5133
|
+
}
|
|
5117
5134
|
/**
|
|
5118
5135
|
* Represents a single vector value set along with its associated metadata.
|
|
5119
5136
|
*/
|
|
@@ -5220,7 +5237,7 @@ export declare abstract class Vectorize {
|
|
|
5220
5237
|
* Get information about the currently bound index.
|
|
5221
5238
|
* @returns A promise that resolves with information about the current index.
|
|
5222
5239
|
*/
|
|
5223
|
-
public describe(): Promise<
|
|
5240
|
+
public describe(): Promise<VectorizeIndexInfo>;
|
|
5224
5241
|
/**
|
|
5225
5242
|
* Use the provided vector to perform a similarity search across the index.
|
|
5226
5243
|
* @param vector Input vector that will be used to drive the similarity search.
|
package/2023-03-01/index.d.ts
CHANGED
|
@@ -3546,6 +3546,7 @@ type BaseAiSpeechRecognitionModels =
|
|
|
3546
3546
|
type BaseAiImageClassificationModels = "@cf/microsoft/resnet-50";
|
|
3547
3547
|
type BaseAiObjectDetectionModels = "@cf/facebook/detr-resnet-50";
|
|
3548
3548
|
type BaseAiTextGenerationModels =
|
|
3549
|
+
| "@cf/meta/llama-3.1-8b-instruct"
|
|
3549
3550
|
| "@cf/meta/llama-3-8b-instruct"
|
|
3550
3551
|
| "@cf/meta/llama-3-8b-instruct-awq"
|
|
3551
3552
|
| "@cf/meta/llama-2-7b-chat-int8"
|
|
@@ -5143,6 +5144,9 @@ type VectorizeIndexConfig =
|
|
|
5143
5144
|
};
|
|
5144
5145
|
/**
|
|
5145
5146
|
* Metadata about an existing index.
|
|
5147
|
+
*
|
|
5148
|
+
* This type is exclusively for the Vectorize **beta** and will be deprecated once Vectorize RC is released.
|
|
5149
|
+
* See {@link VectorizeIndexInfo} for its post-beta equivalent.
|
|
5146
5150
|
*/
|
|
5147
5151
|
interface VectorizeIndexDetails {
|
|
5148
5152
|
/** The unique ID of the index */
|
|
@@ -5156,6 +5160,19 @@ interface VectorizeIndexDetails {
|
|
|
5156
5160
|
/** The number of records containing vectors within the index. */
|
|
5157
5161
|
vectorsCount: number;
|
|
5158
5162
|
}
|
|
5163
|
+
/**
|
|
5164
|
+
* Metadata about an existing index.
|
|
5165
|
+
*/
|
|
5166
|
+
interface VectorizeIndexInfo {
|
|
5167
|
+
/** The number of records containing vectors within the index. */
|
|
5168
|
+
vectorsCount: number;
|
|
5169
|
+
/** Number of dimensions the index has been configured for. */
|
|
5170
|
+
dimensions: number;
|
|
5171
|
+
/** ISO 8601 datetime of the last processed mutation on in the index. All changes before this mutation will be reflected in the index state. */
|
|
5172
|
+
processedUpToDatetime: number;
|
|
5173
|
+
/** UUIDv4 of the last mutation processed by the index. All changes before this mutation will be reflected in the index state. */
|
|
5174
|
+
processedUpToMutation: number;
|
|
5175
|
+
}
|
|
5159
5176
|
/**
|
|
5160
5177
|
* Represents a single vector value set along with its associated metadata.
|
|
5161
5178
|
*/
|
|
@@ -5262,7 +5279,7 @@ declare abstract class Vectorize {
|
|
|
5262
5279
|
* Get information about the currently bound index.
|
|
5263
5280
|
* @returns A promise that resolves with information about the current index.
|
|
5264
5281
|
*/
|
|
5265
|
-
public describe(): Promise<
|
|
5282
|
+
public describe(): Promise<VectorizeIndexInfo>;
|
|
5266
5283
|
/**
|
|
5267
5284
|
* Use the provided vector to perform a similarity search across the index.
|
|
5268
5285
|
* @param vector Input vector that will be used to drive the similarity search.
|
package/2023-03-01/index.ts
CHANGED
|
@@ -3556,6 +3556,7 @@ export type BaseAiSpeechRecognitionModels =
|
|
|
3556
3556
|
export type BaseAiImageClassificationModels = "@cf/microsoft/resnet-50";
|
|
3557
3557
|
export type BaseAiObjectDetectionModels = "@cf/facebook/detr-resnet-50";
|
|
3558
3558
|
export type BaseAiTextGenerationModels =
|
|
3559
|
+
| "@cf/meta/llama-3.1-8b-instruct"
|
|
3559
3560
|
| "@cf/meta/llama-3-8b-instruct"
|
|
3560
3561
|
| "@cf/meta/llama-3-8b-instruct-awq"
|
|
3561
3562
|
| "@cf/meta/llama-2-7b-chat-int8"
|
|
@@ -5103,6 +5104,9 @@ export type VectorizeIndexConfig =
|
|
|
5103
5104
|
};
|
|
5104
5105
|
/**
|
|
5105
5106
|
* Metadata about an existing index.
|
|
5107
|
+
*
|
|
5108
|
+
* This type is exclusively for the Vectorize **beta** and will be deprecated once Vectorize RC is released.
|
|
5109
|
+
* See {@link VectorizeIndexInfo} for its post-beta equivalent.
|
|
5106
5110
|
*/
|
|
5107
5111
|
export interface VectorizeIndexDetails {
|
|
5108
5112
|
/** The unique ID of the index */
|
|
@@ -5116,6 +5120,19 @@ export interface VectorizeIndexDetails {
|
|
|
5116
5120
|
/** The number of records containing vectors within the index. */
|
|
5117
5121
|
vectorsCount: number;
|
|
5118
5122
|
}
|
|
5123
|
+
/**
|
|
5124
|
+
* Metadata about an existing index.
|
|
5125
|
+
*/
|
|
5126
|
+
export interface VectorizeIndexInfo {
|
|
5127
|
+
/** The number of records containing vectors within the index. */
|
|
5128
|
+
vectorsCount: number;
|
|
5129
|
+
/** Number of dimensions the index has been configured for. */
|
|
5130
|
+
dimensions: number;
|
|
5131
|
+
/** ISO 8601 datetime of the last processed mutation on in the index. All changes before this mutation will be reflected in the index state. */
|
|
5132
|
+
processedUpToDatetime: number;
|
|
5133
|
+
/** UUIDv4 of the last mutation processed by the index. All changes before this mutation will be reflected in the index state. */
|
|
5134
|
+
processedUpToMutation: number;
|
|
5135
|
+
}
|
|
5119
5136
|
/**
|
|
5120
5137
|
* Represents a single vector value set along with its associated metadata.
|
|
5121
5138
|
*/
|
|
@@ -5222,7 +5239,7 @@ export declare abstract class Vectorize {
|
|
|
5222
5239
|
* Get information about the currently bound index.
|
|
5223
5240
|
* @returns A promise that resolves with information about the current index.
|
|
5224
5241
|
*/
|
|
5225
|
-
public describe(): Promise<
|
|
5242
|
+
public describe(): Promise<VectorizeIndexInfo>;
|
|
5226
5243
|
/**
|
|
5227
5244
|
* Use the provided vector to perform a similarity search across the index.
|
|
5228
5245
|
* @param vector Input vector that will be used to drive the similarity search.
|
package/2023-07-01/index.d.ts
CHANGED
|
@@ -3546,6 +3546,7 @@ type BaseAiSpeechRecognitionModels =
|
|
|
3546
3546
|
type BaseAiImageClassificationModels = "@cf/microsoft/resnet-50";
|
|
3547
3547
|
type BaseAiObjectDetectionModels = "@cf/facebook/detr-resnet-50";
|
|
3548
3548
|
type BaseAiTextGenerationModels =
|
|
3549
|
+
| "@cf/meta/llama-3.1-8b-instruct"
|
|
3549
3550
|
| "@cf/meta/llama-3-8b-instruct"
|
|
3550
3551
|
| "@cf/meta/llama-3-8b-instruct-awq"
|
|
3551
3552
|
| "@cf/meta/llama-2-7b-chat-int8"
|
|
@@ -5143,6 +5144,9 @@ type VectorizeIndexConfig =
|
|
|
5143
5144
|
};
|
|
5144
5145
|
/**
|
|
5145
5146
|
* Metadata about an existing index.
|
|
5147
|
+
*
|
|
5148
|
+
* This type is exclusively for the Vectorize **beta** and will be deprecated once Vectorize RC is released.
|
|
5149
|
+
* See {@link VectorizeIndexInfo} for its post-beta equivalent.
|
|
5146
5150
|
*/
|
|
5147
5151
|
interface VectorizeIndexDetails {
|
|
5148
5152
|
/** The unique ID of the index */
|
|
@@ -5156,6 +5160,19 @@ interface VectorizeIndexDetails {
|
|
|
5156
5160
|
/** The number of records containing vectors within the index. */
|
|
5157
5161
|
vectorsCount: number;
|
|
5158
5162
|
}
|
|
5163
|
+
/**
|
|
5164
|
+
* Metadata about an existing index.
|
|
5165
|
+
*/
|
|
5166
|
+
interface VectorizeIndexInfo {
|
|
5167
|
+
/** The number of records containing vectors within the index. */
|
|
5168
|
+
vectorsCount: number;
|
|
5169
|
+
/** Number of dimensions the index has been configured for. */
|
|
5170
|
+
dimensions: number;
|
|
5171
|
+
/** ISO 8601 datetime of the last processed mutation on in the index. All changes before this mutation will be reflected in the index state. */
|
|
5172
|
+
processedUpToDatetime: number;
|
|
5173
|
+
/** UUIDv4 of the last mutation processed by the index. All changes before this mutation will be reflected in the index state. */
|
|
5174
|
+
processedUpToMutation: number;
|
|
5175
|
+
}
|
|
5159
5176
|
/**
|
|
5160
5177
|
* Represents a single vector value set along with its associated metadata.
|
|
5161
5178
|
*/
|
|
@@ -5262,7 +5279,7 @@ declare abstract class Vectorize {
|
|
|
5262
5279
|
* Get information about the currently bound index.
|
|
5263
5280
|
* @returns A promise that resolves with information about the current index.
|
|
5264
5281
|
*/
|
|
5265
|
-
public describe(): Promise<
|
|
5282
|
+
public describe(): Promise<VectorizeIndexInfo>;
|
|
5266
5283
|
/**
|
|
5267
5284
|
* Use the provided vector to perform a similarity search across the index.
|
|
5268
5285
|
* @param vector Input vector that will be used to drive the similarity search.
|
package/2023-07-01/index.ts
CHANGED
|
@@ -3556,6 +3556,7 @@ export type BaseAiSpeechRecognitionModels =
|
|
|
3556
3556
|
export type BaseAiImageClassificationModels = "@cf/microsoft/resnet-50";
|
|
3557
3557
|
export type BaseAiObjectDetectionModels = "@cf/facebook/detr-resnet-50";
|
|
3558
3558
|
export type BaseAiTextGenerationModels =
|
|
3559
|
+
| "@cf/meta/llama-3.1-8b-instruct"
|
|
3559
3560
|
| "@cf/meta/llama-3-8b-instruct"
|
|
3560
3561
|
| "@cf/meta/llama-3-8b-instruct-awq"
|
|
3561
3562
|
| "@cf/meta/llama-2-7b-chat-int8"
|
|
@@ -5103,6 +5104,9 @@ export type VectorizeIndexConfig =
|
|
|
5103
5104
|
};
|
|
5104
5105
|
/**
|
|
5105
5106
|
* Metadata about an existing index.
|
|
5107
|
+
*
|
|
5108
|
+
* This type is exclusively for the Vectorize **beta** and will be deprecated once Vectorize RC is released.
|
|
5109
|
+
* See {@link VectorizeIndexInfo} for its post-beta equivalent.
|
|
5106
5110
|
*/
|
|
5107
5111
|
export interface VectorizeIndexDetails {
|
|
5108
5112
|
/** The unique ID of the index */
|
|
@@ -5116,6 +5120,19 @@ export interface VectorizeIndexDetails {
|
|
|
5116
5120
|
/** The number of records containing vectors within the index. */
|
|
5117
5121
|
vectorsCount: number;
|
|
5118
5122
|
}
|
|
5123
|
+
/**
|
|
5124
|
+
* Metadata about an existing index.
|
|
5125
|
+
*/
|
|
5126
|
+
export interface VectorizeIndexInfo {
|
|
5127
|
+
/** The number of records containing vectors within the index. */
|
|
5128
|
+
vectorsCount: number;
|
|
5129
|
+
/** Number of dimensions the index has been configured for. */
|
|
5130
|
+
dimensions: number;
|
|
5131
|
+
/** ISO 8601 datetime of the last processed mutation on in the index. All changes before this mutation will be reflected in the index state. */
|
|
5132
|
+
processedUpToDatetime: number;
|
|
5133
|
+
/** UUIDv4 of the last mutation processed by the index. All changes before this mutation will be reflected in the index state. */
|
|
5134
|
+
processedUpToMutation: number;
|
|
5135
|
+
}
|
|
5119
5136
|
/**
|
|
5120
5137
|
* Represents a single vector value set along with its associated metadata.
|
|
5121
5138
|
*/
|
|
@@ -5222,7 +5239,7 @@ export declare abstract class Vectorize {
|
|
|
5222
5239
|
* Get information about the currently bound index.
|
|
5223
5240
|
* @returns A promise that resolves with information about the current index.
|
|
5224
5241
|
*/
|
|
5225
|
-
public describe(): Promise<
|
|
5242
|
+
public describe(): Promise<VectorizeIndexInfo>;
|
|
5226
5243
|
/**
|
|
5227
5244
|
* Use the provided vector to perform a similarity search across the index.
|
|
5228
5245
|
* @param vector Input vector that will be used to drive the similarity search.
|
package/experimental/index.d.ts
CHANGED
|
@@ -3621,6 +3621,7 @@ type BaseAiSpeechRecognitionModels =
|
|
|
3621
3621
|
type BaseAiImageClassificationModels = "@cf/microsoft/resnet-50";
|
|
3622
3622
|
type BaseAiObjectDetectionModels = "@cf/facebook/detr-resnet-50";
|
|
3623
3623
|
type BaseAiTextGenerationModels =
|
|
3624
|
+
| "@cf/meta/llama-3.1-8b-instruct"
|
|
3624
3625
|
| "@cf/meta/llama-3-8b-instruct"
|
|
3625
3626
|
| "@cf/meta/llama-3-8b-instruct-awq"
|
|
3626
3627
|
| "@cf/meta/llama-2-7b-chat-int8"
|
|
@@ -5218,6 +5219,9 @@ type VectorizeIndexConfig =
|
|
|
5218
5219
|
};
|
|
5219
5220
|
/**
|
|
5220
5221
|
* Metadata about an existing index.
|
|
5222
|
+
*
|
|
5223
|
+
* This type is exclusively for the Vectorize **beta** and will be deprecated once Vectorize RC is released.
|
|
5224
|
+
* See {@link VectorizeIndexInfo} for its post-beta equivalent.
|
|
5221
5225
|
*/
|
|
5222
5226
|
interface VectorizeIndexDetails {
|
|
5223
5227
|
/** The unique ID of the index */
|
|
@@ -5231,6 +5235,19 @@ interface VectorizeIndexDetails {
|
|
|
5231
5235
|
/** The number of records containing vectors within the index. */
|
|
5232
5236
|
vectorsCount: number;
|
|
5233
5237
|
}
|
|
5238
|
+
/**
|
|
5239
|
+
* Metadata about an existing index.
|
|
5240
|
+
*/
|
|
5241
|
+
interface VectorizeIndexInfo {
|
|
5242
|
+
/** The number of records containing vectors within the index. */
|
|
5243
|
+
vectorsCount: number;
|
|
5244
|
+
/** Number of dimensions the index has been configured for. */
|
|
5245
|
+
dimensions: number;
|
|
5246
|
+
/** ISO 8601 datetime of the last processed mutation on in the index. All changes before this mutation will be reflected in the index state. */
|
|
5247
|
+
processedUpToDatetime: number;
|
|
5248
|
+
/** UUIDv4 of the last mutation processed by the index. All changes before this mutation will be reflected in the index state. */
|
|
5249
|
+
processedUpToMutation: number;
|
|
5250
|
+
}
|
|
5234
5251
|
/**
|
|
5235
5252
|
* Represents a single vector value set along with its associated metadata.
|
|
5236
5253
|
*/
|
|
@@ -5337,7 +5354,7 @@ declare abstract class Vectorize {
|
|
|
5337
5354
|
* Get information about the currently bound index.
|
|
5338
5355
|
* @returns A promise that resolves with information about the current index.
|
|
5339
5356
|
*/
|
|
5340
|
-
public describe(): Promise<
|
|
5357
|
+
public describe(): Promise<VectorizeIndexInfo>;
|
|
5341
5358
|
/**
|
|
5342
5359
|
* Use the provided vector to perform a similarity search across the index.
|
|
5343
5360
|
* @param vector Input vector that will be used to drive the similarity search.
|
package/experimental/index.ts
CHANGED
|
@@ -3631,6 +3631,7 @@ export type BaseAiSpeechRecognitionModels =
|
|
|
3631
3631
|
export type BaseAiImageClassificationModels = "@cf/microsoft/resnet-50";
|
|
3632
3632
|
export type BaseAiObjectDetectionModels = "@cf/facebook/detr-resnet-50";
|
|
3633
3633
|
export type BaseAiTextGenerationModels =
|
|
3634
|
+
| "@cf/meta/llama-3.1-8b-instruct"
|
|
3634
3635
|
| "@cf/meta/llama-3-8b-instruct"
|
|
3635
3636
|
| "@cf/meta/llama-3-8b-instruct-awq"
|
|
3636
3637
|
| "@cf/meta/llama-2-7b-chat-int8"
|
|
@@ -5178,6 +5179,9 @@ export type VectorizeIndexConfig =
|
|
|
5178
5179
|
};
|
|
5179
5180
|
/**
|
|
5180
5181
|
* Metadata about an existing index.
|
|
5182
|
+
*
|
|
5183
|
+
* This type is exclusively for the Vectorize **beta** and will be deprecated once Vectorize RC is released.
|
|
5184
|
+
* See {@link VectorizeIndexInfo} for its post-beta equivalent.
|
|
5181
5185
|
*/
|
|
5182
5186
|
export interface VectorizeIndexDetails {
|
|
5183
5187
|
/** The unique ID of the index */
|
|
@@ -5191,6 +5195,19 @@ export interface VectorizeIndexDetails {
|
|
|
5191
5195
|
/** The number of records containing vectors within the index. */
|
|
5192
5196
|
vectorsCount: number;
|
|
5193
5197
|
}
|
|
5198
|
+
/**
|
|
5199
|
+
* Metadata about an existing index.
|
|
5200
|
+
*/
|
|
5201
|
+
export interface VectorizeIndexInfo {
|
|
5202
|
+
/** The number of records containing vectors within the index. */
|
|
5203
|
+
vectorsCount: number;
|
|
5204
|
+
/** Number of dimensions the index has been configured for. */
|
|
5205
|
+
dimensions: number;
|
|
5206
|
+
/** ISO 8601 datetime of the last processed mutation on in the index. All changes before this mutation will be reflected in the index state. */
|
|
5207
|
+
processedUpToDatetime: number;
|
|
5208
|
+
/** UUIDv4 of the last mutation processed by the index. All changes before this mutation will be reflected in the index state. */
|
|
5209
|
+
processedUpToMutation: number;
|
|
5210
|
+
}
|
|
5194
5211
|
/**
|
|
5195
5212
|
* Represents a single vector value set along with its associated metadata.
|
|
5196
5213
|
*/
|
|
@@ -5297,7 +5314,7 @@ export declare abstract class Vectorize {
|
|
|
5297
5314
|
* Get information about the currently bound index.
|
|
5298
5315
|
* @returns A promise that resolves with information about the current index.
|
|
5299
5316
|
*/
|
|
5300
|
-
public describe(): Promise<
|
|
5317
|
+
public describe(): Promise<VectorizeIndexInfo>;
|
|
5301
5318
|
/**
|
|
5302
5319
|
* Use the provided vector to perform a similarity search across the index.
|
|
5303
5320
|
* @param vector Input vector that will be used to drive the similarity search.
|
package/index.d.ts
CHANGED
|
@@ -3489,6 +3489,7 @@ type BaseAiSpeechRecognitionModels =
|
|
|
3489
3489
|
type BaseAiImageClassificationModels = "@cf/microsoft/resnet-50";
|
|
3490
3490
|
type BaseAiObjectDetectionModels = "@cf/facebook/detr-resnet-50";
|
|
3491
3491
|
type BaseAiTextGenerationModels =
|
|
3492
|
+
| "@cf/meta/llama-3.1-8b-instruct"
|
|
3492
3493
|
| "@cf/meta/llama-3-8b-instruct"
|
|
3493
3494
|
| "@cf/meta/llama-3-8b-instruct-awq"
|
|
3494
3495
|
| "@cf/meta/llama-2-7b-chat-int8"
|
|
@@ -5086,6 +5087,9 @@ type VectorizeIndexConfig =
|
|
|
5086
5087
|
};
|
|
5087
5088
|
/**
|
|
5088
5089
|
* Metadata about an existing index.
|
|
5090
|
+
*
|
|
5091
|
+
* This type is exclusively for the Vectorize **beta** and will be deprecated once Vectorize RC is released.
|
|
5092
|
+
* See {@link VectorizeIndexInfo} for its post-beta equivalent.
|
|
5089
5093
|
*/
|
|
5090
5094
|
interface VectorizeIndexDetails {
|
|
5091
5095
|
/** The unique ID of the index */
|
|
@@ -5099,6 +5103,19 @@ interface VectorizeIndexDetails {
|
|
|
5099
5103
|
/** The number of records containing vectors within the index. */
|
|
5100
5104
|
vectorsCount: number;
|
|
5101
5105
|
}
|
|
5106
|
+
/**
|
|
5107
|
+
* Metadata about an existing index.
|
|
5108
|
+
*/
|
|
5109
|
+
interface VectorizeIndexInfo {
|
|
5110
|
+
/** The number of records containing vectors within the index. */
|
|
5111
|
+
vectorsCount: number;
|
|
5112
|
+
/** Number of dimensions the index has been configured for. */
|
|
5113
|
+
dimensions: number;
|
|
5114
|
+
/** ISO 8601 datetime of the last processed mutation on in the index. All changes before this mutation will be reflected in the index state. */
|
|
5115
|
+
processedUpToDatetime: number;
|
|
5116
|
+
/** UUIDv4 of the last mutation processed by the index. All changes before this mutation will be reflected in the index state. */
|
|
5117
|
+
processedUpToMutation: number;
|
|
5118
|
+
}
|
|
5102
5119
|
/**
|
|
5103
5120
|
* Represents a single vector value set along with its associated metadata.
|
|
5104
5121
|
*/
|
|
@@ -5205,7 +5222,7 @@ declare abstract class Vectorize {
|
|
|
5205
5222
|
* Get information about the currently bound index.
|
|
5206
5223
|
* @returns A promise that resolves with information about the current index.
|
|
5207
5224
|
*/
|
|
5208
|
-
public describe(): Promise<
|
|
5225
|
+
public describe(): Promise<VectorizeIndexInfo>;
|
|
5209
5226
|
/**
|
|
5210
5227
|
* Use the provided vector to perform a similarity search across the index.
|
|
5211
5228
|
* @param vector Input vector that will be used to drive the similarity search.
|
package/index.ts
CHANGED
|
@@ -3499,6 +3499,7 @@ export type BaseAiSpeechRecognitionModels =
|
|
|
3499
3499
|
export type BaseAiImageClassificationModels = "@cf/microsoft/resnet-50";
|
|
3500
3500
|
export type BaseAiObjectDetectionModels = "@cf/facebook/detr-resnet-50";
|
|
3501
3501
|
export type BaseAiTextGenerationModels =
|
|
3502
|
+
| "@cf/meta/llama-3.1-8b-instruct"
|
|
3502
3503
|
| "@cf/meta/llama-3-8b-instruct"
|
|
3503
3504
|
| "@cf/meta/llama-3-8b-instruct-awq"
|
|
3504
3505
|
| "@cf/meta/llama-2-7b-chat-int8"
|
|
@@ -5046,6 +5047,9 @@ export type VectorizeIndexConfig =
|
|
|
5046
5047
|
};
|
|
5047
5048
|
/**
|
|
5048
5049
|
* Metadata about an existing index.
|
|
5050
|
+
*
|
|
5051
|
+
* This type is exclusively for the Vectorize **beta** and will be deprecated once Vectorize RC is released.
|
|
5052
|
+
* See {@link VectorizeIndexInfo} for its post-beta equivalent.
|
|
5049
5053
|
*/
|
|
5050
5054
|
export interface VectorizeIndexDetails {
|
|
5051
5055
|
/** The unique ID of the index */
|
|
@@ -5059,6 +5063,19 @@ export interface VectorizeIndexDetails {
|
|
|
5059
5063
|
/** The number of records containing vectors within the index. */
|
|
5060
5064
|
vectorsCount: number;
|
|
5061
5065
|
}
|
|
5066
|
+
/**
|
|
5067
|
+
* Metadata about an existing index.
|
|
5068
|
+
*/
|
|
5069
|
+
export interface VectorizeIndexInfo {
|
|
5070
|
+
/** The number of records containing vectors within the index. */
|
|
5071
|
+
vectorsCount: number;
|
|
5072
|
+
/** Number of dimensions the index has been configured for. */
|
|
5073
|
+
dimensions: number;
|
|
5074
|
+
/** ISO 8601 datetime of the last processed mutation on in the index. All changes before this mutation will be reflected in the index state. */
|
|
5075
|
+
processedUpToDatetime: number;
|
|
5076
|
+
/** UUIDv4 of the last mutation processed by the index. All changes before this mutation will be reflected in the index state. */
|
|
5077
|
+
processedUpToMutation: number;
|
|
5078
|
+
}
|
|
5062
5079
|
/**
|
|
5063
5080
|
* Represents a single vector value set along with its associated metadata.
|
|
5064
5081
|
*/
|
|
@@ -5165,7 +5182,7 @@ export declare abstract class Vectorize {
|
|
|
5165
5182
|
* Get information about the currently bound index.
|
|
5166
5183
|
* @returns A promise that resolves with information about the current index.
|
|
5167
5184
|
*/
|
|
5168
|
-
public describe(): Promise<
|
|
5185
|
+
public describe(): Promise<VectorizeIndexInfo>;
|
|
5169
5186
|
/**
|
|
5170
5187
|
* Use the provided vector to perform a similarity search across the index.
|
|
5171
5188
|
* @param vector Input vector that will be used to drive the similarity search.
|
package/oldest/index.d.ts
CHANGED
|
@@ -3489,6 +3489,7 @@ type BaseAiSpeechRecognitionModels =
|
|
|
3489
3489
|
type BaseAiImageClassificationModels = "@cf/microsoft/resnet-50";
|
|
3490
3490
|
type BaseAiObjectDetectionModels = "@cf/facebook/detr-resnet-50";
|
|
3491
3491
|
type BaseAiTextGenerationModels =
|
|
3492
|
+
| "@cf/meta/llama-3.1-8b-instruct"
|
|
3492
3493
|
| "@cf/meta/llama-3-8b-instruct"
|
|
3493
3494
|
| "@cf/meta/llama-3-8b-instruct-awq"
|
|
3494
3495
|
| "@cf/meta/llama-2-7b-chat-int8"
|
|
@@ -5086,6 +5087,9 @@ type VectorizeIndexConfig =
|
|
|
5086
5087
|
};
|
|
5087
5088
|
/**
|
|
5088
5089
|
* Metadata about an existing index.
|
|
5090
|
+
*
|
|
5091
|
+
* This type is exclusively for the Vectorize **beta** and will be deprecated once Vectorize RC is released.
|
|
5092
|
+
* See {@link VectorizeIndexInfo} for its post-beta equivalent.
|
|
5089
5093
|
*/
|
|
5090
5094
|
interface VectorizeIndexDetails {
|
|
5091
5095
|
/** The unique ID of the index */
|
|
@@ -5099,6 +5103,19 @@ interface VectorizeIndexDetails {
|
|
|
5099
5103
|
/** The number of records containing vectors within the index. */
|
|
5100
5104
|
vectorsCount: number;
|
|
5101
5105
|
}
|
|
5106
|
+
/**
|
|
5107
|
+
* Metadata about an existing index.
|
|
5108
|
+
*/
|
|
5109
|
+
interface VectorizeIndexInfo {
|
|
5110
|
+
/** The number of records containing vectors within the index. */
|
|
5111
|
+
vectorsCount: number;
|
|
5112
|
+
/** Number of dimensions the index has been configured for. */
|
|
5113
|
+
dimensions: number;
|
|
5114
|
+
/** ISO 8601 datetime of the last processed mutation on in the index. All changes before this mutation will be reflected in the index state. */
|
|
5115
|
+
processedUpToDatetime: number;
|
|
5116
|
+
/** UUIDv4 of the last mutation processed by the index. All changes before this mutation will be reflected in the index state. */
|
|
5117
|
+
processedUpToMutation: number;
|
|
5118
|
+
}
|
|
5102
5119
|
/**
|
|
5103
5120
|
* Represents a single vector value set along with its associated metadata.
|
|
5104
5121
|
*/
|
|
@@ -5205,7 +5222,7 @@ declare abstract class Vectorize {
|
|
|
5205
5222
|
* Get information about the currently bound index.
|
|
5206
5223
|
* @returns A promise that resolves with information about the current index.
|
|
5207
5224
|
*/
|
|
5208
|
-
public describe(): Promise<
|
|
5225
|
+
public describe(): Promise<VectorizeIndexInfo>;
|
|
5209
5226
|
/**
|
|
5210
5227
|
* Use the provided vector to perform a similarity search across the index.
|
|
5211
5228
|
* @param vector Input vector that will be used to drive the similarity search.
|
package/oldest/index.ts
CHANGED
|
@@ -3499,6 +3499,7 @@ export type BaseAiSpeechRecognitionModels =
|
|
|
3499
3499
|
export type BaseAiImageClassificationModels = "@cf/microsoft/resnet-50";
|
|
3500
3500
|
export type BaseAiObjectDetectionModels = "@cf/facebook/detr-resnet-50";
|
|
3501
3501
|
export type BaseAiTextGenerationModels =
|
|
3502
|
+
| "@cf/meta/llama-3.1-8b-instruct"
|
|
3502
3503
|
| "@cf/meta/llama-3-8b-instruct"
|
|
3503
3504
|
| "@cf/meta/llama-3-8b-instruct-awq"
|
|
3504
3505
|
| "@cf/meta/llama-2-7b-chat-int8"
|
|
@@ -5046,6 +5047,9 @@ export type VectorizeIndexConfig =
|
|
|
5046
5047
|
};
|
|
5047
5048
|
/**
|
|
5048
5049
|
* Metadata about an existing index.
|
|
5050
|
+
*
|
|
5051
|
+
* This type is exclusively for the Vectorize **beta** and will be deprecated once Vectorize RC is released.
|
|
5052
|
+
* See {@link VectorizeIndexInfo} for its post-beta equivalent.
|
|
5049
5053
|
*/
|
|
5050
5054
|
export interface VectorizeIndexDetails {
|
|
5051
5055
|
/** The unique ID of the index */
|
|
@@ -5059,6 +5063,19 @@ export interface VectorizeIndexDetails {
|
|
|
5059
5063
|
/** The number of records containing vectors within the index. */
|
|
5060
5064
|
vectorsCount: number;
|
|
5061
5065
|
}
|
|
5066
|
+
/**
|
|
5067
|
+
* Metadata about an existing index.
|
|
5068
|
+
*/
|
|
5069
|
+
export interface VectorizeIndexInfo {
|
|
5070
|
+
/** The number of records containing vectors within the index. */
|
|
5071
|
+
vectorsCount: number;
|
|
5072
|
+
/** Number of dimensions the index has been configured for. */
|
|
5073
|
+
dimensions: number;
|
|
5074
|
+
/** ISO 8601 datetime of the last processed mutation on in the index. All changes before this mutation will be reflected in the index state. */
|
|
5075
|
+
processedUpToDatetime: number;
|
|
5076
|
+
/** UUIDv4 of the last mutation processed by the index. All changes before this mutation will be reflected in the index state. */
|
|
5077
|
+
processedUpToMutation: number;
|
|
5078
|
+
}
|
|
5062
5079
|
/**
|
|
5063
5080
|
* Represents a single vector value set along with its associated metadata.
|
|
5064
5081
|
*/
|
|
@@ -5165,7 +5182,7 @@ export declare abstract class Vectorize {
|
|
|
5165
5182
|
* Get information about the currently bound index.
|
|
5166
5183
|
* @returns A promise that resolves with information about the current index.
|
|
5167
5184
|
*/
|
|
5168
|
-
public describe(): Promise<
|
|
5185
|
+
public describe(): Promise<VectorizeIndexInfo>;
|
|
5169
5186
|
/**
|
|
5170
5187
|
* Use the provided vector to perform a similarity search across the index.
|
|
5171
5188
|
* @param vector Input vector that will be used to drive the similarity search.
|
package/package.json
CHANGED