@maxim_mazurok/gapi.client.datastore-v1 0.0.20241008 → 0.0.20241106
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/index.d.ts +17 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://datastore.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20241106
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -155,6 +155,20 @@ declare namespace gapi.client {
|
|
|
155
155
|
/** A filter on a property. */
|
|
156
156
|
propertyFilter?: PropertyFilter;
|
|
157
157
|
}
|
|
158
|
+
interface FindNearest {
|
|
159
|
+
/** Required. The Distance Measure to use, required. */
|
|
160
|
+
distanceMeasure?: string;
|
|
161
|
+
/** Optional. Optional name of the field to output the result of the vector distance calculation. Must conform to entity property limitations. */
|
|
162
|
+
distanceResultProperty?: string;
|
|
163
|
+
/** Optional. Option to specify a threshold for which no less similar documents will be returned. The behavior of the specified `distance_measure` will affect the meaning of the distance threshold. Since DOT_PRODUCT distances increase when the vectors are more similar, the comparison is inverted. * For EUCLIDEAN, COSINE: WHERE distance <= distance_threshold * For DOT_PRODUCT: WHERE distance >= distance_threshold */
|
|
164
|
+
distanceThreshold?: number;
|
|
165
|
+
/** Required. The number of nearest neighbors to return. Must be a positive integer of no more than 100. */
|
|
166
|
+
limit?: number;
|
|
167
|
+
/** Required. The query vector that we are searching on. Must be a vector of no more than 2048 dimensions. */
|
|
168
|
+
queryVector?: Value;
|
|
169
|
+
/** Required. An indexed vector property to search upon. Only documents which contain vectors whose dimensionality match the query_vector can be returned. */
|
|
170
|
+
vectorProperty?: PropertyReference;
|
|
171
|
+
}
|
|
158
172
|
interface GoogleDatastoreAdminV1beta1CommonMetadata {
|
|
159
173
|
/** The time the operation ended, either successfully or otherwise. */
|
|
160
174
|
endTime?: string;
|
|
@@ -510,6 +524,8 @@ declare namespace gapi.client {
|
|
|
510
524
|
endCursor?: string;
|
|
511
525
|
/** The filter to apply. */
|
|
512
526
|
filter?: Filter;
|
|
527
|
+
/** Optional. A potential Nearest Neighbors Search. Applies after all other filters and ordering. Finds the closest vector embeddings to the given query vector. */
|
|
528
|
+
findNearest?: FindNearest;
|
|
513
529
|
/** The kinds to query (if empty, returns entities of all kinds). Currently at most 1 kind may be specified. */
|
|
514
530
|
kind?: KindExpression[];
|
|
515
531
|
/** The maximum number of results to return. Applies after all other constraints. Optional. Unspecified is interpreted as no limit. Must be >= 0 if specified. */
|