@viamrobotics/sdk 0.52.0 → 0.52.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api-version.d.ts +1 -1
- package/dist/app/data-client.d.ts +70 -2
- package/dist/gen/app/data/v1/data_connect.d.ts +34 -1
- package/dist/gen/app/data/v1/data_pb.d.ts +279 -0
- package/dist/main.es.js +4825 -4632
- package/dist/main.umd.js +7 -7
- package/package.json +1 -1
package/dist/api-version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const apiVersion = "v0.1.
|
|
1
|
+
export declare const apiVersion = "v0.1.479";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { type JsonValue } from '@bufbuild/protobuf';
|
|
2
2
|
import { type Client, type Transport } from '@connectrpc/connect';
|
|
3
3
|
import { BinaryID, CaptureMetadata, Filter, Order, TabularDataSource, TabularDataSourceType } from '../gen/app/data/v1/data_pb';
|
|
4
|
-
import type { Dataset as PBDataset } from '../gen/app/dataset/v1/dataset_pb';
|
|
5
4
|
import { DataPipelinesService } from '../gen/app/datapipelines/v1/data_pipelines_connect';
|
|
6
5
|
import { DataPipeline, DataPipelineRun } from '../gen/app/datapipelines/v1/data_pipelines_pb';
|
|
6
|
+
import type { Dataset as PBDataset } from '../gen/app/dataset/v1/dataset_pb';
|
|
7
7
|
export type FilterOptions = Partial<Filter> & {
|
|
8
8
|
endTime?: Date;
|
|
9
9
|
startTime?: Date;
|
|
@@ -30,6 +30,36 @@ interface TabularDataPoint {
|
|
|
30
30
|
tags: string[];
|
|
31
31
|
payload: JsonValue;
|
|
32
32
|
}
|
|
33
|
+
/** Optional parameters for uploading files */
|
|
34
|
+
export interface FileUploadOptions {
|
|
35
|
+
/**
|
|
36
|
+
* Optional type of the component associated with the file (for example,
|
|
37
|
+
* "movement_sensor").
|
|
38
|
+
*/
|
|
39
|
+
componentType?: string;
|
|
40
|
+
/** Optional name of the component associated with the file. */
|
|
41
|
+
componentName?: string;
|
|
42
|
+
/** Optional name of the method associated with the file. */
|
|
43
|
+
methodName?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Optional name of the file. The empty string `""` will be assigned as the
|
|
46
|
+
* file name if one isn't provided.
|
|
47
|
+
*/
|
|
48
|
+
fileName?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Optional file extension. The empty string `""` will be assigned as the file
|
|
51
|
+
* extension if one isn't provided. Files with a `.jpeg`, `.jpg`, or `.png`
|
|
52
|
+
* extension will be saved to the **Images** tab.
|
|
53
|
+
*/
|
|
54
|
+
fileExtension?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Optional list of tags to allow for tag-based filtering when retrieving
|
|
57
|
+
* data.
|
|
58
|
+
*/
|
|
59
|
+
tags?: string[];
|
|
60
|
+
/** Optional list of datasets to add the data to. */
|
|
61
|
+
datasetIds?: string[];
|
|
62
|
+
}
|
|
33
63
|
export type Dataset = Partial<PBDataset> & {
|
|
34
64
|
created?: Date;
|
|
35
65
|
};
|
|
@@ -38,6 +68,7 @@ export declare class DataClient {
|
|
|
38
68
|
private datasetClient;
|
|
39
69
|
private dataSyncClient;
|
|
40
70
|
private dataPipelinesClient;
|
|
71
|
+
static readonly UPLOAD_CHUNK_SIZE = 8;
|
|
41
72
|
constructor(transport: Transport);
|
|
42
73
|
/**
|
|
43
74
|
* Obtain unified tabular data and metadata from the specified data source.
|
|
@@ -749,7 +780,44 @@ export declare class DataClient {
|
|
|
749
780
|
* @returns The binary data ID of the uploaded data
|
|
750
781
|
*/
|
|
751
782
|
binaryDataCaptureUpload(binaryData: Uint8Array, partId: string, componentType: string, componentName: string, methodName: string, fileExtension: string, dataRequestTimes: [Date, Date], tags?: string[], datasetIds?: string[]): Promise<string>;
|
|
752
|
-
|
|
783
|
+
/**
|
|
784
|
+
* Upload arbitrary file data.
|
|
785
|
+
*
|
|
786
|
+
* Upload file data that may be stored on a robot along with the relevant
|
|
787
|
+
* metadata. File data can be found in the **Files** tab of the **DATA**
|
|
788
|
+
* page.
|
|
789
|
+
*
|
|
790
|
+
* @example
|
|
791
|
+
*
|
|
792
|
+
* ```ts
|
|
793
|
+
* const binaryDataId = await dataClient.fileUpload(
|
|
794
|
+
* binaryData,
|
|
795
|
+
* 'INSERT YOUR PART ID',
|
|
796
|
+
* {
|
|
797
|
+
* fileExtension: '.jpeg',
|
|
798
|
+
* tags: ['tag_1', 'tag_2'],
|
|
799
|
+
* }
|
|
800
|
+
* );
|
|
801
|
+
* ```
|
|
802
|
+
*
|
|
803
|
+
* For more information, see [Data
|
|
804
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#fileupload).
|
|
805
|
+
*
|
|
806
|
+
* @param binaryData The data to be uploaded
|
|
807
|
+
* @param partId The part ID of the machine that captured the data
|
|
808
|
+
* @param options Options for the file upload
|
|
809
|
+
* @returns The binary data ID of the uploaded data
|
|
810
|
+
*/
|
|
811
|
+
fileUpload(binaryData: Uint8Array, partId: string, options?: FileUploadOptions): Promise<string>;
|
|
812
|
+
/**
|
|
813
|
+
* Create an async generator of FileUploadRequests to use with FileUpload
|
|
814
|
+
* methods.
|
|
815
|
+
*
|
|
816
|
+
* @param metadata The file's metadata
|
|
817
|
+
* @param data The binary data of the file
|
|
818
|
+
*/
|
|
819
|
+
private static fileUploadRequests;
|
|
820
|
+
static createFilter(options: FilterOptions): Filter;
|
|
753
821
|
/**
|
|
754
822
|
* Gets the most recent tabular data captured from the specified data source,
|
|
755
823
|
* as long as it was synced within the last year.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
|
|
6
|
-
import { AddBinaryDataToDatasetByIDsRequest, AddBinaryDataToDatasetByIDsResponse, AddBoundingBoxToImageByIDRequest, AddBoundingBoxToImageByIDResponse, AddTagsToBinaryDataByFilterRequest, AddTagsToBinaryDataByFilterResponse, AddTagsToBinaryDataByIDsRequest, AddTagsToBinaryDataByIDsResponse, BinaryDataByFilterRequest, BinaryDataByFilterResponse, BinaryDataByIDsRequest, BinaryDataByIDsResponse, BoundingBoxLabelsByFilterRequest, BoundingBoxLabelsByFilterResponse, ConfigureDatabaseUserRequest, ConfigureDatabaseUserResponse, DeleteBinaryDataByFilterRequest, DeleteBinaryDataByFilterResponse, DeleteBinaryDataByIDsRequest, DeleteBinaryDataByIDsResponse, DeleteTabularDataRequest, DeleteTabularDataResponse, ExportTabularDataRequest, ExportTabularDataResponse, GetDatabaseConnectionRequest, GetDatabaseConnectionResponse, GetLatestTabularDataRequest, GetLatestTabularDataResponse, RemoveBinaryDataFromDatasetByIDsRequest, RemoveBinaryDataFromDatasetByIDsResponse, RemoveBoundingBoxFromImageByIDRequest, RemoveBoundingBoxFromImageByIDResponse, RemoveTagsFromBinaryDataByFilterRequest, RemoveTagsFromBinaryDataByFilterResponse, RemoveTagsFromBinaryDataByIDsRequest, RemoveTagsFromBinaryDataByIDsResponse, TabularDataByFilterRequest, TabularDataByFilterResponse, TabularDataByMQLRequest, TabularDataByMQLResponse, TabularDataBySQLRequest, TabularDataBySQLResponse, TagsByFilterRequest, TagsByFilterResponse, UpdateBoundingBoxRequest, UpdateBoundingBoxResponse } from "./data_pb.js";
|
|
6
|
+
import { AddBinaryDataToDatasetByIDsRequest, AddBinaryDataToDatasetByIDsResponse, AddBoundingBoxToImageByIDRequest, AddBoundingBoxToImageByIDResponse, AddTagsToBinaryDataByFilterRequest, AddTagsToBinaryDataByFilterResponse, AddTagsToBinaryDataByIDsRequest, AddTagsToBinaryDataByIDsResponse, BinaryDataByFilterRequest, BinaryDataByFilterResponse, BinaryDataByIDsRequest, BinaryDataByIDsResponse, BoundingBoxLabelsByFilterRequest, BoundingBoxLabelsByFilterResponse, ConfigureDatabaseUserRequest, ConfigureDatabaseUserResponse, CreateIndexRequest, CreateIndexResponse, DeleteBinaryDataByFilterRequest, DeleteBinaryDataByFilterResponse, DeleteBinaryDataByIDsRequest, DeleteBinaryDataByIDsResponse, DeleteIndexRequest, DeleteIndexResponse, DeleteTabularDataRequest, DeleteTabularDataResponse, ExportTabularDataRequest, ExportTabularDataResponse, GetDatabaseConnectionRequest, GetDatabaseConnectionResponse, GetLatestTabularDataRequest, GetLatestTabularDataResponse, ListIndexesRequest, ListIndexesResponse, RemoveBinaryDataFromDatasetByIDsRequest, RemoveBinaryDataFromDatasetByIDsResponse, RemoveBoundingBoxFromImageByIDRequest, RemoveBoundingBoxFromImageByIDResponse, RemoveTagsFromBinaryDataByFilterRequest, RemoveTagsFromBinaryDataByFilterResponse, RemoveTagsFromBinaryDataByIDsRequest, RemoveTagsFromBinaryDataByIDsResponse, TabularDataByFilterRequest, TabularDataByFilterResponse, TabularDataByMQLRequest, TabularDataByMQLResponse, TabularDataBySQLRequest, TabularDataBySQLResponse, TagsByFilterRequest, TagsByFilterResponse, UpdateBoundingBoxRequest, UpdateBoundingBoxResponse } from "./data_pb.js";
|
|
7
7
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -274,6 +274,39 @@ export declare const DataService: {
|
|
|
274
274
|
readonly O: typeof RemoveBinaryDataFromDatasetByIDsResponse,
|
|
275
275
|
readonly kind: MethodKind.Unary,
|
|
276
276
|
},
|
|
277
|
+
/**
|
|
278
|
+
* CreateIndex starts a custom index build
|
|
279
|
+
*
|
|
280
|
+
* @generated from rpc viam.app.data.v1.DataService.CreateIndex
|
|
281
|
+
*/
|
|
282
|
+
readonly createIndex: {
|
|
283
|
+
readonly name: "CreateIndex",
|
|
284
|
+
readonly I: typeof CreateIndexRequest,
|
|
285
|
+
readonly O: typeof CreateIndexResponse,
|
|
286
|
+
readonly kind: MethodKind.Unary,
|
|
287
|
+
},
|
|
288
|
+
/**
|
|
289
|
+
* ListIndexes returns all the indexes for a given collection
|
|
290
|
+
*
|
|
291
|
+
* @generated from rpc viam.app.data.v1.DataService.ListIndexes
|
|
292
|
+
*/
|
|
293
|
+
readonly listIndexes: {
|
|
294
|
+
readonly name: "ListIndexes",
|
|
295
|
+
readonly I: typeof ListIndexesRequest,
|
|
296
|
+
readonly O: typeof ListIndexesResponse,
|
|
297
|
+
readonly kind: MethodKind.Unary,
|
|
298
|
+
},
|
|
299
|
+
/**
|
|
300
|
+
* DeleteIndex drops the specified custom index from a collection
|
|
301
|
+
*
|
|
302
|
+
* @generated from rpc viam.app.data.v1.DataService.DeleteIndex
|
|
303
|
+
*/
|
|
304
|
+
readonly deleteIndex: {
|
|
305
|
+
readonly name: "DeleteIndex",
|
|
306
|
+
readonly I: typeof DeleteIndexRequest,
|
|
307
|
+
readonly O: typeof DeleteIndexResponse,
|
|
308
|
+
readonly kind: MethodKind.Unary,
|
|
309
|
+
},
|
|
277
310
|
}
|
|
278
311
|
};
|
|
279
312
|
|
|
@@ -98,6 +98,50 @@ export declare enum TabularDataSourceType {
|
|
|
98
98
|
PIPELINE_SINK = 3,
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
+
/**
|
|
102
|
+
* IndexableCollection specifies the types of collections available for custom indexes
|
|
103
|
+
*
|
|
104
|
+
* @generated from enum viam.app.data.v1.IndexableCollection
|
|
105
|
+
*/
|
|
106
|
+
export declare enum IndexableCollection {
|
|
107
|
+
/**
|
|
108
|
+
* @generated from enum value: INDEXABLE_COLLECTION_UNSPECIFIED = 0;
|
|
109
|
+
*/
|
|
110
|
+
UNSPECIFIED = 0,
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* @generated from enum value: INDEXABLE_COLLECTION_HOT_STORE = 1;
|
|
114
|
+
*/
|
|
115
|
+
HOT_STORE = 1,
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* @generated from enum value: INDEXABLE_COLLECTION_PIPELINE_SINK = 2;
|
|
119
|
+
*/
|
|
120
|
+
PIPELINE_SINK = 2,
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* IndexCreator specifies the entity that originally created the index
|
|
125
|
+
*
|
|
126
|
+
* @generated from enum viam.app.data.v1.IndexCreator
|
|
127
|
+
*/
|
|
128
|
+
export declare enum IndexCreator {
|
|
129
|
+
/**
|
|
130
|
+
* @generated from enum value: INDEX_CREATOR_UNSPECIFIED = 0;
|
|
131
|
+
*/
|
|
132
|
+
UNSPECIFIED = 0,
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* @generated from enum value: INDEX_CREATOR_VIAM = 1;
|
|
136
|
+
*/
|
|
137
|
+
VIAM = 1,
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* @generated from enum value: INDEX_CREATOR_CUSTOMER = 2;
|
|
141
|
+
*/
|
|
142
|
+
CUSTOMER = 2,
|
|
143
|
+
}
|
|
144
|
+
|
|
101
145
|
/**
|
|
102
146
|
* DataRequest encapsulates the filter for the data, a limit on the maximum results returned,
|
|
103
147
|
* a last string associated with the last returned document, and the sorting order by time.
|
|
@@ -642,6 +686,13 @@ export declare class TabularDataByMQLRequest extends Message<TabularDataByMQLReq
|
|
|
642
686
|
*/
|
|
643
687
|
dataSource?: TabularDataSource;
|
|
644
688
|
|
|
689
|
+
/**
|
|
690
|
+
* query_prefix_name is an optional field that can be used to specify a saved query to run
|
|
691
|
+
*
|
|
692
|
+
* @generated from field: optional string query_prefix_name = 7;
|
|
693
|
+
*/
|
|
694
|
+
queryPrefixName?: string;
|
|
695
|
+
|
|
645
696
|
constructor(data?: PartialMessage<TabularDataByMQLRequest>);
|
|
646
697
|
|
|
647
698
|
static readonly runtime: typeof proto3;
|
|
@@ -2285,3 +2336,231 @@ export declare class RemoveBinaryDataFromDatasetByIDsResponse extends Message<Re
|
|
|
2285
2336
|
static equals(a: RemoveBinaryDataFromDatasetByIDsResponse | PlainMessage<RemoveBinaryDataFromDatasetByIDsResponse> | undefined, b: RemoveBinaryDataFromDatasetByIDsResponse | PlainMessage<RemoveBinaryDataFromDatasetByIDsResponse> | undefined): boolean;
|
|
2286
2337
|
}
|
|
2287
2338
|
|
|
2339
|
+
/**
|
|
2340
|
+
* CreateIndexRequest starts a custom index build
|
|
2341
|
+
*
|
|
2342
|
+
* @generated from message viam.app.data.v1.CreateIndexRequest
|
|
2343
|
+
*/
|
|
2344
|
+
export declare class CreateIndexRequest extends Message<CreateIndexRequest> {
|
|
2345
|
+
/**
|
|
2346
|
+
* @generated from field: string organization_id = 1;
|
|
2347
|
+
*/
|
|
2348
|
+
organizationId: string;
|
|
2349
|
+
|
|
2350
|
+
/**
|
|
2351
|
+
* @generated from field: viam.app.data.v1.IndexableCollection collection_type = 2;
|
|
2352
|
+
*/
|
|
2353
|
+
collectionType: IndexableCollection;
|
|
2354
|
+
|
|
2355
|
+
/**
|
|
2356
|
+
* @generated from field: optional string pipeline_name = 3;
|
|
2357
|
+
*/
|
|
2358
|
+
pipelineName?: string;
|
|
2359
|
+
|
|
2360
|
+
/**
|
|
2361
|
+
* index_spec accepts a MongoDB index specification defined in JSON format
|
|
2362
|
+
*
|
|
2363
|
+
* @generated from field: repeated bytes index_spec = 4;
|
|
2364
|
+
*/
|
|
2365
|
+
indexSpec: Uint8Array[];
|
|
2366
|
+
|
|
2367
|
+
constructor(data?: PartialMessage<CreateIndexRequest>);
|
|
2368
|
+
|
|
2369
|
+
static readonly runtime: typeof proto3;
|
|
2370
|
+
static readonly typeName = "viam.app.data.v1.CreateIndexRequest";
|
|
2371
|
+
static readonly fields: FieldList;
|
|
2372
|
+
|
|
2373
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateIndexRequest;
|
|
2374
|
+
|
|
2375
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateIndexRequest;
|
|
2376
|
+
|
|
2377
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateIndexRequest;
|
|
2378
|
+
|
|
2379
|
+
static equals(a: CreateIndexRequest | PlainMessage<CreateIndexRequest> | undefined, b: CreateIndexRequest | PlainMessage<CreateIndexRequest> | undefined): boolean;
|
|
2380
|
+
}
|
|
2381
|
+
|
|
2382
|
+
/**
|
|
2383
|
+
* @generated from message viam.app.data.v1.CreateIndexResponse
|
|
2384
|
+
*/
|
|
2385
|
+
export declare class CreateIndexResponse extends Message<CreateIndexResponse> {
|
|
2386
|
+
constructor(data?: PartialMessage<CreateIndexResponse>);
|
|
2387
|
+
|
|
2388
|
+
static readonly runtime: typeof proto3;
|
|
2389
|
+
static readonly typeName = "viam.app.data.v1.CreateIndexResponse";
|
|
2390
|
+
static readonly fields: FieldList;
|
|
2391
|
+
|
|
2392
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateIndexResponse;
|
|
2393
|
+
|
|
2394
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateIndexResponse;
|
|
2395
|
+
|
|
2396
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateIndexResponse;
|
|
2397
|
+
|
|
2398
|
+
static equals(a: CreateIndexResponse | PlainMessage<CreateIndexResponse> | undefined, b: CreateIndexResponse | PlainMessage<CreateIndexResponse> | undefined): boolean;
|
|
2399
|
+
}
|
|
2400
|
+
|
|
2401
|
+
/**
|
|
2402
|
+
* DeleteIndexRequest drops the specified custom index from a collection
|
|
2403
|
+
*
|
|
2404
|
+
* @generated from message viam.app.data.v1.DeleteIndexRequest
|
|
2405
|
+
*/
|
|
2406
|
+
export declare class DeleteIndexRequest extends Message<DeleteIndexRequest> {
|
|
2407
|
+
/**
|
|
2408
|
+
* @generated from field: string organization_id = 1;
|
|
2409
|
+
*/
|
|
2410
|
+
organizationId: string;
|
|
2411
|
+
|
|
2412
|
+
/**
|
|
2413
|
+
* @generated from field: viam.app.data.v1.IndexableCollection collection_type = 2;
|
|
2414
|
+
*/
|
|
2415
|
+
collectionType: IndexableCollection;
|
|
2416
|
+
|
|
2417
|
+
/**
|
|
2418
|
+
* @generated from field: optional string pipeline_name = 3;
|
|
2419
|
+
*/
|
|
2420
|
+
pipelineName?: string;
|
|
2421
|
+
|
|
2422
|
+
/**
|
|
2423
|
+
* @generated from field: string index_name = 4;
|
|
2424
|
+
*/
|
|
2425
|
+
indexName: string;
|
|
2426
|
+
|
|
2427
|
+
constructor(data?: PartialMessage<DeleteIndexRequest>);
|
|
2428
|
+
|
|
2429
|
+
static readonly runtime: typeof proto3;
|
|
2430
|
+
static readonly typeName = "viam.app.data.v1.DeleteIndexRequest";
|
|
2431
|
+
static readonly fields: FieldList;
|
|
2432
|
+
|
|
2433
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteIndexRequest;
|
|
2434
|
+
|
|
2435
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteIndexRequest;
|
|
2436
|
+
|
|
2437
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteIndexRequest;
|
|
2438
|
+
|
|
2439
|
+
static equals(a: DeleteIndexRequest | PlainMessage<DeleteIndexRequest> | undefined, b: DeleteIndexRequest | PlainMessage<DeleteIndexRequest> | undefined): boolean;
|
|
2440
|
+
}
|
|
2441
|
+
|
|
2442
|
+
/**
|
|
2443
|
+
* @generated from message viam.app.data.v1.DeleteIndexResponse
|
|
2444
|
+
*/
|
|
2445
|
+
export declare class DeleteIndexResponse extends Message<DeleteIndexResponse> {
|
|
2446
|
+
constructor(data?: PartialMessage<DeleteIndexResponse>);
|
|
2447
|
+
|
|
2448
|
+
static readonly runtime: typeof proto3;
|
|
2449
|
+
static readonly typeName = "viam.app.data.v1.DeleteIndexResponse";
|
|
2450
|
+
static readonly fields: FieldList;
|
|
2451
|
+
|
|
2452
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteIndexResponse;
|
|
2453
|
+
|
|
2454
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteIndexResponse;
|
|
2455
|
+
|
|
2456
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteIndexResponse;
|
|
2457
|
+
|
|
2458
|
+
static equals(a: DeleteIndexResponse | PlainMessage<DeleteIndexResponse> | undefined, b: DeleteIndexResponse | PlainMessage<DeleteIndexResponse> | undefined): boolean;
|
|
2459
|
+
}
|
|
2460
|
+
|
|
2461
|
+
/**
|
|
2462
|
+
* ListIndexesRequest returns all the indexes for a given collection
|
|
2463
|
+
*
|
|
2464
|
+
* @generated from message viam.app.data.v1.ListIndexesRequest
|
|
2465
|
+
*/
|
|
2466
|
+
export declare class ListIndexesRequest extends Message<ListIndexesRequest> {
|
|
2467
|
+
/**
|
|
2468
|
+
* @generated from field: string organization_id = 1;
|
|
2469
|
+
*/
|
|
2470
|
+
organizationId: string;
|
|
2471
|
+
|
|
2472
|
+
/**
|
|
2473
|
+
* @generated from field: viam.app.data.v1.IndexableCollection collection_type = 2;
|
|
2474
|
+
*/
|
|
2475
|
+
collectionType: IndexableCollection;
|
|
2476
|
+
|
|
2477
|
+
/**
|
|
2478
|
+
* @generated from field: optional string pipeline_name = 3;
|
|
2479
|
+
*/
|
|
2480
|
+
pipelineName?: string;
|
|
2481
|
+
|
|
2482
|
+
constructor(data?: PartialMessage<ListIndexesRequest>);
|
|
2483
|
+
|
|
2484
|
+
static readonly runtime: typeof proto3;
|
|
2485
|
+
static readonly typeName = "viam.app.data.v1.ListIndexesRequest";
|
|
2486
|
+
static readonly fields: FieldList;
|
|
2487
|
+
|
|
2488
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListIndexesRequest;
|
|
2489
|
+
|
|
2490
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListIndexesRequest;
|
|
2491
|
+
|
|
2492
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListIndexesRequest;
|
|
2493
|
+
|
|
2494
|
+
static equals(a: ListIndexesRequest | PlainMessage<ListIndexesRequest> | undefined, b: ListIndexesRequest | PlainMessage<ListIndexesRequest> | undefined): boolean;
|
|
2495
|
+
}
|
|
2496
|
+
|
|
2497
|
+
/**
|
|
2498
|
+
* @generated from message viam.app.data.v1.ListIndexesResponse
|
|
2499
|
+
*/
|
|
2500
|
+
export declare class ListIndexesResponse extends Message<ListIndexesResponse> {
|
|
2501
|
+
/**
|
|
2502
|
+
* @generated from field: repeated viam.app.data.v1.Index indexes = 1;
|
|
2503
|
+
*/
|
|
2504
|
+
indexes: Index[];
|
|
2505
|
+
|
|
2506
|
+
constructor(data?: PartialMessage<ListIndexesResponse>);
|
|
2507
|
+
|
|
2508
|
+
static readonly runtime: typeof proto3;
|
|
2509
|
+
static readonly typeName = "viam.app.data.v1.ListIndexesResponse";
|
|
2510
|
+
static readonly fields: FieldList;
|
|
2511
|
+
|
|
2512
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListIndexesResponse;
|
|
2513
|
+
|
|
2514
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListIndexesResponse;
|
|
2515
|
+
|
|
2516
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListIndexesResponse;
|
|
2517
|
+
|
|
2518
|
+
static equals(a: ListIndexesResponse | PlainMessage<ListIndexesResponse> | undefined, b: ListIndexesResponse | PlainMessage<ListIndexesResponse> | undefined): boolean;
|
|
2519
|
+
}
|
|
2520
|
+
|
|
2521
|
+
/**
|
|
2522
|
+
* @generated from message viam.app.data.v1.Index
|
|
2523
|
+
*/
|
|
2524
|
+
export declare class Index extends Message<Index> {
|
|
2525
|
+
/**
|
|
2526
|
+
* @generated from field: viam.app.data.v1.IndexableCollection collection_type = 1;
|
|
2527
|
+
*/
|
|
2528
|
+
collectionType: IndexableCollection;
|
|
2529
|
+
|
|
2530
|
+
/**
|
|
2531
|
+
* @generated from field: optional string pipeline_name = 2;
|
|
2532
|
+
*/
|
|
2533
|
+
pipelineName?: string;
|
|
2534
|
+
|
|
2535
|
+
/**
|
|
2536
|
+
* @generated from field: string index_name = 3;
|
|
2537
|
+
*/
|
|
2538
|
+
indexName: string;
|
|
2539
|
+
|
|
2540
|
+
/**
|
|
2541
|
+
* index_spec defines a MongoDB index in JSON format
|
|
2542
|
+
*
|
|
2543
|
+
* @generated from field: repeated bytes index_spec = 4;
|
|
2544
|
+
*/
|
|
2545
|
+
indexSpec: Uint8Array[];
|
|
2546
|
+
|
|
2547
|
+
/**
|
|
2548
|
+
* @generated from field: viam.app.data.v1.IndexCreator created_by = 5;
|
|
2549
|
+
*/
|
|
2550
|
+
createdBy: IndexCreator;
|
|
2551
|
+
|
|
2552
|
+
constructor(data?: PartialMessage<Index>);
|
|
2553
|
+
|
|
2554
|
+
static readonly runtime: typeof proto3;
|
|
2555
|
+
static readonly typeName = "viam.app.data.v1.Index";
|
|
2556
|
+
static readonly fields: FieldList;
|
|
2557
|
+
|
|
2558
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Index;
|
|
2559
|
+
|
|
2560
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Index;
|
|
2561
|
+
|
|
2562
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Index;
|
|
2563
|
+
|
|
2564
|
+
static equals(a: Index | PlainMessage<Index> | undefined, b: Index | PlainMessage<Index> | undefined): boolean;
|
|
2565
|
+
}
|
|
2566
|
+
|