@viamrobotics/sdk 0.52.0 → 0.52.2
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 +138 -5
- 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.d.ts +4 -4
- package/dist/main.es.js +4919 -4643
- 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
|
-
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';
|
|
3
|
+
import { BinaryID, CaptureMetadata, Filter, Index, IndexableCollection, Order, TabularDataSource, TabularDataSourceType } from '../gen/app/data/v1/data_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: number;
|
|
41
72
|
constructor(transport: Transport);
|
|
42
73
|
/**
|
|
43
74
|
* Obtain unified tabular data and metadata from the specified data source.
|
|
@@ -124,9 +155,10 @@ export declare class DataClient {
|
|
|
124
155
|
* store. Defaults to false. Deprecated - use dataSource instead.
|
|
125
156
|
* @param dataSource The data source to query. Defaults to the standard data
|
|
126
157
|
* source.
|
|
158
|
+
* @param queryPrefixName Optional name of the query prefix.
|
|
127
159
|
* @returns An array of data objects
|
|
128
160
|
*/
|
|
129
|
-
tabularDataByMQL(organizationId: string, query: Uint8Array[] | Record<string, Date | JsonValue>[], useRecentData?: boolean, tabularDataSource?: TabularDataSource): Promise<(Object | any[])[]>;
|
|
161
|
+
tabularDataByMQL(organizationId: string, query: Uint8Array[] | Record<string, Date | JsonValue>[], useRecentData?: boolean, tabularDataSource?: TabularDataSource, queryPrefixName?: string): Promise<(Object | any[])[]>;
|
|
130
162
|
/**
|
|
131
163
|
* Filter and get a page of tabular data. The returned metadata might be empty
|
|
132
164
|
* if the metadata index of the data is out of the bounds of the returned
|
|
@@ -749,7 +781,44 @@ export declare class DataClient {
|
|
|
749
781
|
* @returns The binary data ID of the uploaded data
|
|
750
782
|
*/
|
|
751
783
|
binaryDataCaptureUpload(binaryData: Uint8Array, partId: string, componentType: string, componentName: string, methodName: string, fileExtension: string, dataRequestTimes: [Date, Date], tags?: string[], datasetIds?: string[]): Promise<string>;
|
|
752
|
-
|
|
784
|
+
/**
|
|
785
|
+
* Upload arbitrary file data.
|
|
786
|
+
*
|
|
787
|
+
* Upload file data that may be stored on a robot along with the relevant
|
|
788
|
+
* metadata. File data can be found in the **Files** tab of the **DATA**
|
|
789
|
+
* page.
|
|
790
|
+
*
|
|
791
|
+
* @example
|
|
792
|
+
*
|
|
793
|
+
* ```ts
|
|
794
|
+
* const binaryDataId = await dataClient.fileUpload(
|
|
795
|
+
* binaryData,
|
|
796
|
+
* 'INSERT YOUR PART ID',
|
|
797
|
+
* {
|
|
798
|
+
* fileExtension: '.jpeg',
|
|
799
|
+
* tags: ['tag_1', 'tag_2'],
|
|
800
|
+
* }
|
|
801
|
+
* );
|
|
802
|
+
* ```
|
|
803
|
+
*
|
|
804
|
+
* For more information, see [Data
|
|
805
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#fileupload).
|
|
806
|
+
*
|
|
807
|
+
* @param binaryData The data to be uploaded
|
|
808
|
+
* @param partId The part ID of the machine that captured the data
|
|
809
|
+
* @param options Options for the file upload
|
|
810
|
+
* @returns The binary data ID of the uploaded data
|
|
811
|
+
*/
|
|
812
|
+
fileUpload(binaryData: Uint8Array, partId: string, options?: FileUploadOptions): Promise<string>;
|
|
813
|
+
/**
|
|
814
|
+
* Create an async generator of FileUploadRequests to use with FileUpload
|
|
815
|
+
* methods.
|
|
816
|
+
*
|
|
817
|
+
* @param metadata The file's metadata
|
|
818
|
+
* @param data The binary data of the file
|
|
819
|
+
*/
|
|
820
|
+
private static fileUploadRequests;
|
|
821
|
+
static createFilter(options: FilterOptions): Filter;
|
|
753
822
|
/**
|
|
754
823
|
* Gets the most recent tabular data captured from the specified data source,
|
|
755
824
|
* as long as it was synced within the last year.
|
|
@@ -842,6 +911,7 @@ export declare class DataClient {
|
|
|
842
911
|
* @param query The MQL query to run as a list of BSON documents
|
|
843
912
|
* @param schedule The schedule to run the query on (cron expression)
|
|
844
913
|
* @param dataSourceType The type of data source to use for the data pipeline
|
|
914
|
+
* @param enableBackfill Whether to enable backfill for the data pipeline
|
|
845
915
|
* @returns The ID of the created data pipeline
|
|
846
916
|
*/
|
|
847
917
|
createDataPipeline(organizationId: string, name: string, query: Uint8Array[] | Record<string, Date | JsonValue>[], schedule: string, enableBackfill: boolean, dataSourceType?: TabularDataSourceType): Promise<string>;
|
|
@@ -882,6 +952,69 @@ export declare class DataClient {
|
|
|
882
952
|
* @returns A page of data pipeline runs
|
|
883
953
|
*/
|
|
884
954
|
listDataPipelineRuns(pipelineId: string, pageSize?: number): Promise<ListDataPipelineRunsPage>;
|
|
955
|
+
/**
|
|
956
|
+
* CreateIndex starts a custom index build
|
|
957
|
+
*
|
|
958
|
+
* @example
|
|
959
|
+
*
|
|
960
|
+
* ```ts
|
|
961
|
+
* await dataClient.createIndex(
|
|
962
|
+
* '123abc45-1234-5678-90ab-cdef12345678',
|
|
963
|
+
* IndexableCollection.HOT_STORE,
|
|
964
|
+
* [new TextEncoder().encode(JSON.stringify({ field: 1 }))]
|
|
965
|
+
* );
|
|
966
|
+
* ```
|
|
967
|
+
*
|
|
968
|
+
* @param organizationId The ID of the organization
|
|
969
|
+
* @param collectionType The type of collection to create the index on
|
|
970
|
+
* @param indexSpec The MongoDB index specification in JSON format, as a
|
|
971
|
+
* Uint8Array
|
|
972
|
+
* @param pipelineName Optional name of the pipeline if collectionType is
|
|
973
|
+
* PIPELINE_SINK
|
|
974
|
+
*/
|
|
975
|
+
createIndex(organizationId: string, collectionType: IndexableCollection, indexSpec: {
|
|
976
|
+
keys: Record<string, number>;
|
|
977
|
+
options?: Record<string, unknown>;
|
|
978
|
+
}, pipelineName?: string): Promise<void>;
|
|
979
|
+
/**
|
|
980
|
+
* ListIndexes returns all the indexes for a given collection
|
|
981
|
+
*
|
|
982
|
+
* @example
|
|
983
|
+
*
|
|
984
|
+
* ```ts
|
|
985
|
+
* const indexes = await dataClient.listIndexes(
|
|
986
|
+
* '123abc45-1234-5678-90ab-cdef12345678',
|
|
987
|
+
* IndexableCollection.HOT_STORE
|
|
988
|
+
* );
|
|
989
|
+
* ```
|
|
990
|
+
*
|
|
991
|
+
* @param organizationId The ID of the organization
|
|
992
|
+
* @param collectionType The type of collection to list indexes for
|
|
993
|
+
* @param pipelineName Optional name of the pipeline if collectionType is
|
|
994
|
+
* PIPELINE_SINK
|
|
995
|
+
* @returns An array of indexes
|
|
996
|
+
*/
|
|
997
|
+
listIndexes(organizationId: string, collectionType: IndexableCollection, pipelineName?: string): Promise<Index[]>;
|
|
998
|
+
/**
|
|
999
|
+
* DeleteIndex drops the specified custom index from a collection
|
|
1000
|
+
*
|
|
1001
|
+
* @example
|
|
1002
|
+
*
|
|
1003
|
+
* ```ts
|
|
1004
|
+
* await dataClient.deleteIndex(
|
|
1005
|
+
* '123abc45-1234-5678-90ab-cdef12345678',
|
|
1006
|
+
* IndexableCollection.HOT_STORE,
|
|
1007
|
+
* 'my_index'
|
|
1008
|
+
* );
|
|
1009
|
+
* ```
|
|
1010
|
+
*
|
|
1011
|
+
* @param organizationId The ID of the organization
|
|
1012
|
+
* @param collectionType The type of collection to delete the index from
|
|
1013
|
+
* @param indexName The name of the index to delete
|
|
1014
|
+
* @param pipelineName Optional name of the pipeline if collectionType is
|
|
1015
|
+
* PIPELINE_SINK
|
|
1016
|
+
*/
|
|
1017
|
+
deleteIndex(organizationId: string, collectionType: IndexableCollection, indexName: string, pipelineName?: string): Promise<void>;
|
|
885
1018
|
}
|
|
886
1019
|
export declare class ListDataPipelineRunsPage {
|
|
887
1020
|
private readonly dataPipelinesClient;
|
|
@@ -906,5 +1039,5 @@ export declare class ListDataPipelineRunsPage {
|
|
|
906
1039
|
*/
|
|
907
1040
|
nextPage(): Promise<ListDataPipelineRunsPage>;
|
|
908
1041
|
}
|
|
909
|
-
export { type BinaryID, type Order } from '../gen/app/data/v1/data_pb';
|
|
1042
|
+
export { type BinaryID, type IndexableCollection, type Order, } from '../gen/app/data/v1/data_pb';
|
|
910
1043
|
export { type UploadMetadata } from '../gen/app/datasync/v1/data_sync_pb';
|
|
@@ -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
|
+
|
package/dist/main.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const version: string;
|
|
2
|
-
export { RobotClient
|
|
2
|
+
export { RobotClient as Client, createRobotClient, RobotClient, type CloudMetadata, type DialConf, type DialDirectConf, type DialWebRTCConf, type Robot, } from './robot';
|
|
3
3
|
/**
|
|
4
4
|
* Raw Protobuf interfaces for a Robot component.
|
|
5
5
|
*
|
|
@@ -10,8 +10,8 @@ export { RobotClient, RobotClient as Client, createRobotClient, type CloudMetada
|
|
|
10
10
|
*/
|
|
11
11
|
export * as robotApi from './gen/robot/v1/robot_pb';
|
|
12
12
|
export { createViamClient, type ViamClient, type ViamClientOptions, } from './app/viam-client';
|
|
13
|
-
export { type AccessToken, type Credential, type
|
|
14
|
-
export { type BinaryID, type DataClient, type FilterOptions, } from './app/data-client';
|
|
13
|
+
export { type AccessToken, type Credential, type Credentials, type CredentialType, } from './app/viam-transport';
|
|
14
|
+
export { type BinaryID, type DataClient, type FilterOptions, type IndexableCollection, } from './app/data-client';
|
|
15
15
|
/**
|
|
16
16
|
* Raw Protobuf interfaces for Data.
|
|
17
17
|
*
|
|
@@ -142,7 +142,7 @@ export { GantryClient, type Gantry } from './components/gantry';
|
|
|
142
142
|
* @group Raw Protobufs
|
|
143
143
|
*/
|
|
144
144
|
export * as gantryApi from './gen/component/gantry/v1/gantry_pb';
|
|
145
|
-
export { MLModelClient, type
|
|
145
|
+
export { MLModelClient, type FlatTensors, type Metadata, type MLModel, type TensorInfo, } from './services/ml-model';
|
|
146
146
|
export { MotorClient, type Motor } from './components/motor';
|
|
147
147
|
/**
|
|
148
148
|
* Raw Protobuf interfaces for a Motor component.
|