@viamrobotics/sdk 0.7.0-rc.2 → 0.7.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.
@@ -7,17 +7,35 @@ export type FilterOptions = Partial<pb.Filter.AsObject> & {
7
7
  startTime?: Date;
8
8
  tags?: string[];
9
9
  };
10
- type TabularData = {
11
- data?: {
12
- [key: string]: googleStructPb.JavaScriptValue;
13
- };
10
+ interface TabularData {
11
+ data?: Record<string, googleStructPb.JavaScriptValue>;
14
12
  metadata?: pb.CaptureMetadata.AsObject;
15
13
  timeRequested?: Date;
16
14
  timeReceived?: Date;
17
- };
15
+ }
18
16
  export declare class DataClient {
19
17
  private service;
20
18
  constructor(serviceHost: string, grpcOptions: RpcOptions);
19
+ /**
20
+ * Obtain unified tabular data and metadata, queried with SQL.
21
+ *
22
+ * @param organizationId The ID of the organization that owns the data
23
+ * @param query The SQL query to run
24
+ * @returns An array of data objects
25
+ */
26
+ tabularDataBySQL(organizationId: string, query: string): Promise<{
27
+ [key: string]: googleStructPb.JavaScriptValue;
28
+ }[]>;
29
+ /**
30
+ * Obtain unified tabular data and metadata, queried with MQL.
31
+ *
32
+ * @param organizationId The ID of the organization that owns the data
33
+ * @param query The MQL query to run
34
+ * @returns An array of data objects
35
+ */
36
+ tabularDataByMQL(organizationId: string, query: string): Promise<{
37
+ [key: string]: googleStructPb.JavaScriptValue;
38
+ }[]>;
21
39
  /**
22
40
  * Filter and download tabular data. The returned metadata might be empty if
23
41
  * the metadata index of the data is out of the bounds of the returned
@@ -351,6 +351,98 @@ export namespace TabularData {
351
351
  }
352
352
  }
353
353
 
354
+ export class TabularDataBySQLRequest extends jspb.Message {
355
+ getOrganizationId(): string;
356
+ setOrganizationId(value: string): void;
357
+
358
+ getSqlQuery(): string;
359
+ setSqlQuery(value: string): void;
360
+
361
+ serializeBinary(): Uint8Array;
362
+ toObject(includeInstance?: boolean): TabularDataBySQLRequest.AsObject;
363
+ static toObject(includeInstance: boolean, msg: TabularDataBySQLRequest): TabularDataBySQLRequest.AsObject;
364
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
365
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
366
+ static serializeBinaryToWriter(message: TabularDataBySQLRequest, writer: jspb.BinaryWriter): void;
367
+ static deserializeBinary(bytes: Uint8Array): TabularDataBySQLRequest;
368
+ static deserializeBinaryFromReader(message: TabularDataBySQLRequest, reader: jspb.BinaryReader): TabularDataBySQLRequest;
369
+ }
370
+
371
+ export namespace TabularDataBySQLRequest {
372
+ export type AsObject = {
373
+ organizationId: string,
374
+ sqlQuery: string,
375
+ }
376
+ }
377
+
378
+ export class TabularDataBySQLResponse extends jspb.Message {
379
+ clearDataList(): void;
380
+ getDataList(): Array<google_protobuf_struct_pb.Struct>;
381
+ setDataList(value: Array<google_protobuf_struct_pb.Struct>): void;
382
+ addData(value?: google_protobuf_struct_pb.Struct, index?: number): google_protobuf_struct_pb.Struct;
383
+
384
+ serializeBinary(): Uint8Array;
385
+ toObject(includeInstance?: boolean): TabularDataBySQLResponse.AsObject;
386
+ static toObject(includeInstance: boolean, msg: TabularDataBySQLResponse): TabularDataBySQLResponse.AsObject;
387
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
388
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
389
+ static serializeBinaryToWriter(message: TabularDataBySQLResponse, writer: jspb.BinaryWriter): void;
390
+ static deserializeBinary(bytes: Uint8Array): TabularDataBySQLResponse;
391
+ static deserializeBinaryFromReader(message: TabularDataBySQLResponse, reader: jspb.BinaryReader): TabularDataBySQLResponse;
392
+ }
393
+
394
+ export namespace TabularDataBySQLResponse {
395
+ export type AsObject = {
396
+ dataList: Array<google_protobuf_struct_pb.Struct.AsObject>,
397
+ }
398
+ }
399
+
400
+ export class TabularDataByMQLRequest extends jspb.Message {
401
+ getOrganizationId(): string;
402
+ setOrganizationId(value: string): void;
403
+
404
+ getMqlQuery(): string;
405
+ setMqlQuery(value: string): void;
406
+
407
+ serializeBinary(): Uint8Array;
408
+ toObject(includeInstance?: boolean): TabularDataByMQLRequest.AsObject;
409
+ static toObject(includeInstance: boolean, msg: TabularDataByMQLRequest): TabularDataByMQLRequest.AsObject;
410
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
411
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
412
+ static serializeBinaryToWriter(message: TabularDataByMQLRequest, writer: jspb.BinaryWriter): void;
413
+ static deserializeBinary(bytes: Uint8Array): TabularDataByMQLRequest;
414
+ static deserializeBinaryFromReader(message: TabularDataByMQLRequest, reader: jspb.BinaryReader): TabularDataByMQLRequest;
415
+ }
416
+
417
+ export namespace TabularDataByMQLRequest {
418
+ export type AsObject = {
419
+ organizationId: string,
420
+ mqlQuery: string,
421
+ }
422
+ }
423
+
424
+ export class TabularDataByMQLResponse extends jspb.Message {
425
+ clearDataList(): void;
426
+ getDataList(): Array<google_protobuf_struct_pb.Struct>;
427
+ setDataList(value: Array<google_protobuf_struct_pb.Struct>): void;
428
+ addData(value?: google_protobuf_struct_pb.Struct, index?: number): google_protobuf_struct_pb.Struct;
429
+
430
+ serializeBinary(): Uint8Array;
431
+ toObject(includeInstance?: boolean): TabularDataByMQLResponse.AsObject;
432
+ static toObject(includeInstance: boolean, msg: TabularDataByMQLResponse): TabularDataByMQLResponse.AsObject;
433
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
434
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
435
+ static serializeBinaryToWriter(message: TabularDataByMQLResponse, writer: jspb.BinaryWriter): void;
436
+ static deserializeBinary(bytes: Uint8Array): TabularDataByMQLResponse;
437
+ static deserializeBinaryFromReader(message: TabularDataByMQLResponse, reader: jspb.BinaryReader): TabularDataByMQLResponse;
438
+ }
439
+
440
+ export namespace TabularDataByMQLResponse {
441
+ export type AsObject = {
442
+ dataList: Array<google_protobuf_struct_pb.Struct.AsObject>,
443
+ }
444
+ }
445
+
354
446
  export class BinaryData extends jspb.Message {
355
447
  getBinary(): Uint8Array | string;
356
448
  getBinary_asU8(): Uint8Array;
@@ -13,6 +13,24 @@ type DataServiceTabularDataByFilter = {
13
13
  readonly responseType: typeof app_data_v1_data_pb.TabularDataByFilterResponse;
14
14
  };
15
15
 
16
+ type DataServiceTabularDataBySQL = {
17
+ readonly methodName: string;
18
+ readonly service: typeof DataService;
19
+ readonly requestStream: false;
20
+ readonly responseStream: false;
21
+ readonly requestType: typeof app_data_v1_data_pb.TabularDataBySQLRequest;
22
+ readonly responseType: typeof app_data_v1_data_pb.TabularDataBySQLResponse;
23
+ };
24
+
25
+ type DataServiceTabularDataByMQL = {
26
+ readonly methodName: string;
27
+ readonly service: typeof DataService;
28
+ readonly requestStream: false;
29
+ readonly responseStream: false;
30
+ readonly requestType: typeof app_data_v1_data_pb.TabularDataByMQLRequest;
31
+ readonly responseType: typeof app_data_v1_data_pb.TabularDataByMQLResponse;
32
+ };
33
+
16
34
  type DataServiceBinaryDataByFilter = {
17
35
  readonly methodName: string;
18
36
  readonly service: typeof DataService;
@@ -169,6 +187,8 @@ type DataServiceRemoveBinaryDataFromDatasetByIDs = {
169
187
  export class DataService {
170
188
  static readonly serviceName: string;
171
189
  static readonly TabularDataByFilter: DataServiceTabularDataByFilter;
190
+ static readonly TabularDataBySQL: DataServiceTabularDataBySQL;
191
+ static readonly TabularDataByMQL: DataServiceTabularDataByMQL;
172
192
  static readonly BinaryDataByFilter: DataServiceBinaryDataByFilter;
173
193
  static readonly BinaryDataByIDs: DataServiceBinaryDataByIDs;
174
194
  static readonly DeleteTabularData: DataServiceDeleteTabularData;
@@ -229,6 +249,24 @@ export class DataServiceClient {
229
249
  requestMessage: app_data_v1_data_pb.TabularDataByFilterRequest,
230
250
  callback: (error: ServiceError|null, responseMessage: app_data_v1_data_pb.TabularDataByFilterResponse|null) => void
231
251
  ): UnaryResponse;
252
+ tabularDataBySQL(
253
+ requestMessage: app_data_v1_data_pb.TabularDataBySQLRequest,
254
+ metadata: grpc.Metadata,
255
+ callback: (error: ServiceError|null, responseMessage: app_data_v1_data_pb.TabularDataBySQLResponse|null) => void
256
+ ): UnaryResponse;
257
+ tabularDataBySQL(
258
+ requestMessage: app_data_v1_data_pb.TabularDataBySQLRequest,
259
+ callback: (error: ServiceError|null, responseMessage: app_data_v1_data_pb.TabularDataBySQLResponse|null) => void
260
+ ): UnaryResponse;
261
+ tabularDataByMQL(
262
+ requestMessage: app_data_v1_data_pb.TabularDataByMQLRequest,
263
+ metadata: grpc.Metadata,
264
+ callback: (error: ServiceError|null, responseMessage: app_data_v1_data_pb.TabularDataByMQLResponse|null) => void
265
+ ): UnaryResponse;
266
+ tabularDataByMQL(
267
+ requestMessage: app_data_v1_data_pb.TabularDataByMQLRequest,
268
+ callback: (error: ServiceError|null, responseMessage: app_data_v1_data_pb.TabularDataByMQLResponse|null) => void
269
+ ): UnaryResponse;
232
270
  binaryDataByFilter(
233
271
  requestMessage: app_data_v1_data_pb.BinaryDataByFilterRequest,
234
272
  metadata: grpc.Metadata,
@@ -193,6 +193,16 @@ export class TrainingJobMetadata extends jspb.Message {
193
193
  getErrorStatus(): google_rpc_status_pb.Status | undefined;
194
194
  setErrorStatus(value?: google_rpc_status_pb.Status): void;
195
195
 
196
+ hasTrainingStarted(): boolean;
197
+ clearTrainingStarted(): void;
198
+ getTrainingStarted(): google_protobuf_timestamp_pb.Timestamp | undefined;
199
+ setTrainingStarted(value?: google_protobuf_timestamp_pb.Timestamp): void;
200
+
201
+ hasTrainingEnded(): boolean;
202
+ clearTrainingEnded(): void;
203
+ getTrainingEnded(): google_protobuf_timestamp_pb.Timestamp | undefined;
204
+ setTrainingEnded(value?: google_protobuf_timestamp_pb.Timestamp): void;
205
+
196
206
  serializeBinary(): Uint8Array;
197
207
  toObject(includeInstance?: boolean): TrainingJobMetadata.AsObject;
198
208
  static toObject(includeInstance: boolean, msg: TrainingJobMetadata): TrainingJobMetadata.AsObject;
@@ -212,6 +222,8 @@ export namespace TrainingJobMetadata {
212
222
  syncedModelId: string,
213
223
  id: string,
214
224
  errorStatus?: google_rpc_status_pb.Status.AsObject,
225
+ trainingStarted?: google_protobuf_timestamp_pb.Timestamp.AsObject,
226
+ trainingEnded?: google_protobuf_timestamp_pb.Timestamp.AsObject,
215
227
  }
216
228
  }
217
229