@viamrobotics/sdk 0.47.0 → 0.49.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/dist/api-version.d.ts +1 -1
- package/dist/app/data-client.d.ts +1 -1
- package/dist/components/pose-tracker/client.d.ts +19 -0
- package/dist/components/pose-tracker/pose-tracker.d.ts +25 -0
- package/dist/components/posetracker.d.ts +2 -0
- package/dist/gen/app/data/v1/data_pb.d.ts +5 -0
- package/dist/gen/app/datapipelines/v1/data_pipelines_pb.d.ts +7 -0
- package/dist/gen/app/dataset/v1/dataset_connect.d.ts +12 -1
- package/dist/gen/app/dataset/v1/dataset_pb.d.ts +62 -0
- package/dist/gen/app/v1/app_pb.d.ts +12 -0
- package/dist/gen/app/v1/billing_connect.d.ts +12 -1
- package/dist/gen/app/v1/billing_pb.d.ts +58 -0
- package/dist/gen/component/camera/v1/camera_pb.d.ts +15 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.es.js +2584 -2394
- 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.470";
|
|
@@ -748,7 +748,7 @@ export declare class DataClient {
|
|
|
748
748
|
* appropriate sensor.
|
|
749
749
|
* @returns The binary data ID of the uploaded data
|
|
750
750
|
*/
|
|
751
|
-
binaryDataCaptureUpload(binaryData: Uint8Array, partId: string, componentType: string, componentName: string, methodName: string, fileExtension: string, dataRequestTimes: [Date, Date], tags?: string[]): Promise<string>;
|
|
751
|
+
binaryDataCaptureUpload(binaryData: Uint8Array, partId: string, componentType: string, componentName: string, methodName: string, fileExtension: string, dataRequestTimes: [Date, Date], tags?: string[], datasetIds?: string[]): Promise<string>;
|
|
752
752
|
createFilter(options: FilterOptions): Filter;
|
|
753
753
|
/**
|
|
754
754
|
* Gets the most recent tabular data captured from the specified data source,
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type JsonValue, Struct } from '@bufbuild/protobuf';
|
|
2
|
+
import type { CallOptions } from '@connectrpc/connect';
|
|
3
|
+
import type { RobotClient } from '../../robot';
|
|
4
|
+
import type { Options } from '../../types';
|
|
5
|
+
import type { PoseTracker } from './pose-tracker';
|
|
6
|
+
/**
|
|
7
|
+
* A gRPC-web client for the Generic component.
|
|
8
|
+
*
|
|
9
|
+
* @group Clients
|
|
10
|
+
*/
|
|
11
|
+
export declare class PoseTrackerClient implements PoseTracker {
|
|
12
|
+
private client;
|
|
13
|
+
readonly name: string;
|
|
14
|
+
private readonly options;
|
|
15
|
+
callOptions: CallOptions;
|
|
16
|
+
constructor(client: RobotClient, name: string, options?: Options);
|
|
17
|
+
getGeometries(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/common/v1/common_pb").Geometry[]>;
|
|
18
|
+
doCommand(command: Struct, callOptions?: CallOptions): Promise<JsonValue>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { Geometry } from '../../gen/common/v1/common_pb';
|
|
2
|
+
import type { Struct, Resource } from '../../types';
|
|
3
|
+
/** Represents a generic component. */
|
|
4
|
+
export interface PoseTracker extends Resource {
|
|
5
|
+
/**
|
|
6
|
+
* Get the geometries of the component in their current configuration.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
*
|
|
10
|
+
* ```ts
|
|
11
|
+
* const generic = new VIAM.GenericComponentClient(
|
|
12
|
+
* machine,
|
|
13
|
+
* 'my_generic_component'
|
|
14
|
+
* );
|
|
15
|
+
*
|
|
16
|
+
* // Get the geometries of this component
|
|
17
|
+
* const geometries = await generic.getGeometries();
|
|
18
|
+
* console.log('Geometries:', geometries);
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* For more information, see [Generic
|
|
22
|
+
* API](https://docs.viam.com/dev/reference/apis/components/generic/#getgeometries).
|
|
23
|
+
*/
|
|
24
|
+
getGeometries: (extra?: Struct) => Promise<Geometry[]>;
|
|
25
|
+
}
|
|
@@ -1186,6 +1186,11 @@ export declare class BoundingBox extends Message<BoundingBox> {
|
|
|
1186
1186
|
* @generated from message viam.app.data.v1.Classification
|
|
1187
1187
|
*/
|
|
1188
1188
|
export declare class Classification extends Message<Classification> {
|
|
1189
|
+
/**
|
|
1190
|
+
* @generated from field: string id = 3;
|
|
1191
|
+
*/
|
|
1192
|
+
id: string;
|
|
1193
|
+
|
|
1189
1194
|
/**
|
|
1190
1195
|
* @generated from field: string label = 1;
|
|
1191
1196
|
*/
|
|
@@ -619,6 +619,13 @@ export declare class DataPipelineRun extends Message<DataPipelineRun> {
|
|
|
619
619
|
*/
|
|
620
620
|
status: DataPipelineRunStatus;
|
|
621
621
|
|
|
622
|
+
/**
|
|
623
|
+
* The error message if the run failed.
|
|
624
|
+
*
|
|
625
|
+
* @generated from field: string error_message = 7;
|
|
626
|
+
*/
|
|
627
|
+
errorMessage: string;
|
|
628
|
+
|
|
622
629
|
constructor(data?: PartialMessage<DataPipelineRun>);
|
|
623
630
|
|
|
624
631
|
static readonly runtime: typeof proto3;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
|
|
6
|
-
import { CreateDatasetRequest, CreateDatasetResponse, DeleteDatasetRequest, DeleteDatasetResponse, ListDatasetsByIDsRequest, ListDatasetsByIDsResponse, ListDatasetsByOrganizationIDRequest, ListDatasetsByOrganizationIDResponse, RenameDatasetRequest, RenameDatasetResponse } from "./dataset_pb.js";
|
|
6
|
+
import { CreateDatasetRequest, CreateDatasetResponse, DeleteDatasetRequest, DeleteDatasetResponse, ListDatasetsByIDsRequest, ListDatasetsByIDsResponse, ListDatasetsByOrganizationIDRequest, ListDatasetsByOrganizationIDResponse, MergeDatasetsRequest, MergeDatasetsResponse, RenameDatasetRequest, RenameDatasetResponse } from "./dataset_pb.js";
|
|
7
7
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -69,6 +69,17 @@ export declare const DatasetService: {
|
|
|
69
69
|
readonly O: typeof ListDatasetsByIDsResponse,
|
|
70
70
|
readonly kind: MethodKind.Unary,
|
|
71
71
|
},
|
|
72
|
+
/**
|
|
73
|
+
* MergeDatasets merges multiple datasets into a new dataset.
|
|
74
|
+
*
|
|
75
|
+
* @generated from rpc viam.app.dataset.v1.DatasetService.MergeDatasets
|
|
76
|
+
*/
|
|
77
|
+
readonly mergeDatasets: {
|
|
78
|
+
readonly name: "MergeDatasets",
|
|
79
|
+
readonly I: typeof MergeDatasetsRequest,
|
|
80
|
+
readonly O: typeof MergeDatasetsResponse,
|
|
81
|
+
readonly kind: MethodKind.Unary,
|
|
82
|
+
},
|
|
72
83
|
}
|
|
73
84
|
};
|
|
74
85
|
|
|
@@ -303,3 +303,65 @@ export declare class ListDatasetsByIDsResponse extends Message<ListDatasetsByIDs
|
|
|
303
303
|
static equals(a: ListDatasetsByIDsResponse | PlainMessage<ListDatasetsByIDsResponse> | undefined, b: ListDatasetsByIDsResponse | PlainMessage<ListDatasetsByIDsResponse> | undefined): boolean;
|
|
304
304
|
}
|
|
305
305
|
|
|
306
|
+
/**
|
|
307
|
+
* MergeDatasetsRequest merges multiple datasets specified by their dataset IDs into a new dataset.
|
|
308
|
+
*
|
|
309
|
+
* @generated from message viam.app.dataset.v1.MergeDatasetsRequest
|
|
310
|
+
*/
|
|
311
|
+
export declare class MergeDatasetsRequest extends Message<MergeDatasetsRequest> {
|
|
312
|
+
/**
|
|
313
|
+
* @generated from field: repeated string dataset_ids = 1;
|
|
314
|
+
*/
|
|
315
|
+
datasetIds: string[];
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* @generated from field: string name = 2;
|
|
319
|
+
*/
|
|
320
|
+
name: string;
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* @generated from field: string organization_id = 3;
|
|
324
|
+
*/
|
|
325
|
+
organizationId: string;
|
|
326
|
+
|
|
327
|
+
constructor(data?: PartialMessage<MergeDatasetsRequest>);
|
|
328
|
+
|
|
329
|
+
static readonly runtime: typeof proto3;
|
|
330
|
+
static readonly typeName = "viam.app.dataset.v1.MergeDatasetsRequest";
|
|
331
|
+
static readonly fields: FieldList;
|
|
332
|
+
|
|
333
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MergeDatasetsRequest;
|
|
334
|
+
|
|
335
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MergeDatasetsRequest;
|
|
336
|
+
|
|
337
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MergeDatasetsRequest;
|
|
338
|
+
|
|
339
|
+
static equals(a: MergeDatasetsRequest | PlainMessage<MergeDatasetsRequest> | undefined, b: MergeDatasetsRequest | PlainMessage<MergeDatasetsRequest> | undefined): boolean;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* MergeDatasetsResponse returns the dataset ID of the newly created merged dataset.
|
|
344
|
+
*
|
|
345
|
+
* @generated from message viam.app.dataset.v1.MergeDatasetsResponse
|
|
346
|
+
*/
|
|
347
|
+
export declare class MergeDatasetsResponse extends Message<MergeDatasetsResponse> {
|
|
348
|
+
/**
|
|
349
|
+
* @generated from field: string dataset_id = 1;
|
|
350
|
+
*/
|
|
351
|
+
datasetId: string;
|
|
352
|
+
|
|
353
|
+
constructor(data?: PartialMessage<MergeDatasetsResponse>);
|
|
354
|
+
|
|
355
|
+
static readonly runtime: typeof proto3;
|
|
356
|
+
static readonly typeName = "viam.app.dataset.v1.MergeDatasetsResponse";
|
|
357
|
+
static readonly fields: FieldList;
|
|
358
|
+
|
|
359
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MergeDatasetsResponse;
|
|
360
|
+
|
|
361
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MergeDatasetsResponse;
|
|
362
|
+
|
|
363
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MergeDatasetsResponse;
|
|
364
|
+
|
|
365
|
+
static equals(a: MergeDatasetsResponse | PlainMessage<MergeDatasetsResponse> | undefined, b: MergeDatasetsResponse | PlainMessage<MergeDatasetsResponse> | undefined): boolean;
|
|
366
|
+
}
|
|
367
|
+
|
|
@@ -4676,6 +4676,8 @@ export declare class ListMachineFragmentsResponse extends Message<ListMachineFra
|
|
|
4676
4676
|
*/
|
|
4677
4677
|
export declare class ListMachineSummariesRequest extends Message<ListMachineSummariesRequest> {
|
|
4678
4678
|
/**
|
|
4679
|
+
* Optional organization ID. If no value is set it will search among all the organanizations the caller has access to
|
|
4680
|
+
*
|
|
4679
4681
|
* @generated from field: string organization_id = 1;
|
|
4680
4682
|
*/
|
|
4681
4683
|
organizationId: string;
|
|
@@ -4923,6 +4925,11 @@ export declare class PartSummary extends Message<PartSummary> {
|
|
|
4923
4925
|
*/
|
|
4924
4926
|
partName: string;
|
|
4925
4927
|
|
|
4928
|
+
/**
|
|
4929
|
+
* @generated from field: bool is_main_part = 11;
|
|
4930
|
+
*/
|
|
4931
|
+
isMainPart: boolean;
|
|
4932
|
+
|
|
4926
4933
|
/**
|
|
4927
4934
|
* @generated from field: optional google.protobuf.Timestamp last_online = 3;
|
|
4928
4935
|
*/
|
|
@@ -4953,6 +4960,11 @@ export declare class PartSummary extends Message<PartSummary> {
|
|
|
4953
4960
|
*/
|
|
4954
4961
|
publicIpAddress?: string;
|
|
4955
4962
|
|
|
4963
|
+
/**
|
|
4964
|
+
* @generated from field: optional string dns_name = 10;
|
|
4965
|
+
*/
|
|
4966
|
+
dnsName?: string;
|
|
4967
|
+
|
|
4956
4968
|
/**
|
|
4957
4969
|
* @generated from field: repeated viam.app.v1.FragmentSummary fragments = 9;
|
|
4958
4970
|
*/
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
|
|
6
|
-
import { GetAvailableBillingTiersRequest, GetAvailableBillingTiersResponse, GetCurrentMonthUsageRequest, GetCurrentMonthUsageResponse, GetInvoicePdfRequest, GetInvoicePdfResponse, GetInvoicesSummaryRequest, GetInvoicesSummaryResponse, GetOrgBillingInformationRequest, GetOrgBillingInformationResponse, SendPaymentRequiredEmailRequest, SendPaymentRequiredEmailResponse, UpdateOrganizationBillingTierRequest, UpdateOrganizationBillingTierResponse } from "./billing_pb.js";
|
|
6
|
+
import { CreateInvoiceAndChargeImmediatelyRequest, CreateInvoiceAndChargeImmediatelyResponse, GetAvailableBillingTiersRequest, GetAvailableBillingTiersResponse, GetCurrentMonthUsageRequest, GetCurrentMonthUsageResponse, GetInvoicePdfRequest, GetInvoicePdfResponse, GetInvoicesSummaryRequest, GetInvoicesSummaryResponse, GetOrgBillingInformationRequest, GetOrgBillingInformationResponse, SendPaymentRequiredEmailRequest, SendPaymentRequiredEmailResponse, UpdateOrganizationBillingTierRequest, UpdateOrganizationBillingTierResponse } from "./billing_pb.js";
|
|
7
7
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -89,6 +89,17 @@ export declare const BillingService: {
|
|
|
89
89
|
readonly O: typeof UpdateOrganizationBillingTierResponse,
|
|
90
90
|
readonly kind: MethodKind.Unary,
|
|
91
91
|
},
|
|
92
|
+
/**
|
|
93
|
+
* Directly create a flat fee invoice for an organization and charge on the spot
|
|
94
|
+
*
|
|
95
|
+
* @generated from rpc viam.app.v1.BillingService.CreateInvoiceAndChargeImmediately
|
|
96
|
+
*/
|
|
97
|
+
readonly createInvoiceAndChargeImmediately: {
|
|
98
|
+
readonly name: "CreateInvoiceAndChargeImmediately",
|
|
99
|
+
readonly I: typeof CreateInvoiceAndChargeImmediatelyRequest,
|
|
100
|
+
readonly O: typeof CreateInvoiceAndChargeImmediatelyResponse,
|
|
101
|
+
readonly kind: MethodKind.Unary,
|
|
102
|
+
},
|
|
92
103
|
}
|
|
93
104
|
};
|
|
94
105
|
|
|
@@ -802,3 +802,61 @@ export declare class UpdateOrganizationBillingTierResponse extends Message<Updat
|
|
|
802
802
|
static equals(a: UpdateOrganizationBillingTierResponse | PlainMessage<UpdateOrganizationBillingTierResponse> | undefined, b: UpdateOrganizationBillingTierResponse | PlainMessage<UpdateOrganizationBillingTierResponse> | undefined): boolean;
|
|
803
803
|
}
|
|
804
804
|
|
|
805
|
+
/**
|
|
806
|
+
* @generated from message viam.app.v1.CreateInvoiceAndChargeImmediatelyRequest
|
|
807
|
+
*/
|
|
808
|
+
export declare class CreateInvoiceAndChargeImmediatelyRequest extends Message<CreateInvoiceAndChargeImmediatelyRequest> {
|
|
809
|
+
/**
|
|
810
|
+
* @generated from field: string org_id_to_charge = 1;
|
|
811
|
+
*/
|
|
812
|
+
orgIdToCharge: string;
|
|
813
|
+
|
|
814
|
+
/**
|
|
815
|
+
* @generated from field: double amount = 2;
|
|
816
|
+
*/
|
|
817
|
+
amount: number;
|
|
818
|
+
|
|
819
|
+
/**
|
|
820
|
+
* @generated from field: optional string description = 3;
|
|
821
|
+
*/
|
|
822
|
+
description?: string;
|
|
823
|
+
|
|
824
|
+
/**
|
|
825
|
+
* @generated from field: optional string org_id_for_branding = 4;
|
|
826
|
+
*/
|
|
827
|
+
orgIdForBranding?: string;
|
|
828
|
+
|
|
829
|
+
constructor(data?: PartialMessage<CreateInvoiceAndChargeImmediatelyRequest>);
|
|
830
|
+
|
|
831
|
+
static readonly runtime: typeof proto3;
|
|
832
|
+
static readonly typeName = "viam.app.v1.CreateInvoiceAndChargeImmediatelyRequest";
|
|
833
|
+
static readonly fields: FieldList;
|
|
834
|
+
|
|
835
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateInvoiceAndChargeImmediatelyRequest;
|
|
836
|
+
|
|
837
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateInvoiceAndChargeImmediatelyRequest;
|
|
838
|
+
|
|
839
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateInvoiceAndChargeImmediatelyRequest;
|
|
840
|
+
|
|
841
|
+
static equals(a: CreateInvoiceAndChargeImmediatelyRequest | PlainMessage<CreateInvoiceAndChargeImmediatelyRequest> | undefined, b: CreateInvoiceAndChargeImmediatelyRequest | PlainMessage<CreateInvoiceAndChargeImmediatelyRequest> | undefined): boolean;
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
/**
|
|
845
|
+
* @generated from message viam.app.v1.CreateInvoiceAndChargeImmediatelyResponse
|
|
846
|
+
*/
|
|
847
|
+
export declare class CreateInvoiceAndChargeImmediatelyResponse extends Message<CreateInvoiceAndChargeImmediatelyResponse> {
|
|
848
|
+
constructor(data?: PartialMessage<CreateInvoiceAndChargeImmediatelyResponse>);
|
|
849
|
+
|
|
850
|
+
static readonly runtime: typeof proto3;
|
|
851
|
+
static readonly typeName = "viam.app.v1.CreateInvoiceAndChargeImmediatelyResponse";
|
|
852
|
+
static readonly fields: FieldList;
|
|
853
|
+
|
|
854
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateInvoiceAndChargeImmediatelyResponse;
|
|
855
|
+
|
|
856
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateInvoiceAndChargeImmediatelyResponse;
|
|
857
|
+
|
|
858
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateInvoiceAndChargeImmediatelyResponse;
|
|
859
|
+
|
|
860
|
+
static equals(a: CreateInvoiceAndChargeImmediatelyResponse | PlainMessage<CreateInvoiceAndChargeImmediatelyResponse> | undefined, b: CreateInvoiceAndChargeImmediatelyResponse | PlainMessage<CreateInvoiceAndChargeImmediatelyResponse> | undefined): boolean;
|
|
861
|
+
}
|
|
862
|
+
|
|
@@ -121,6 +121,14 @@ export declare class GetImagesRequest extends Message<GetImagesRequest> {
|
|
|
121
121
|
*/
|
|
122
122
|
name: string;
|
|
123
123
|
|
|
124
|
+
/**
|
|
125
|
+
* The names of the sensors to retrieve images from. If this is not provided,
|
|
126
|
+
* all images from all sensors will be returned.
|
|
127
|
+
*
|
|
128
|
+
* @generated from field: repeated string filter_source_names = 2;
|
|
129
|
+
*/
|
|
130
|
+
filterSourceNames: string[];
|
|
131
|
+
|
|
124
132
|
/**
|
|
125
133
|
* Additional arguments to the method
|
|
126
134
|
*
|
|
@@ -201,6 +209,13 @@ export declare class Image extends Message<Image> {
|
|
|
201
209
|
*/
|
|
202
210
|
image: Uint8Array;
|
|
203
211
|
|
|
212
|
+
/**
|
|
213
|
+
* The mime type of the image
|
|
214
|
+
*
|
|
215
|
+
* @generated from field: string mime_type = 4;
|
|
216
|
+
*/
|
|
217
|
+
mimeType: string;
|
|
218
|
+
|
|
204
219
|
constructor(data?: PartialMessage<Image>);
|
|
205
220
|
|
|
206
221
|
static readonly runtime: typeof proto3;
|
package/dist/main.d.ts
CHANGED
|
@@ -203,6 +203,7 @@ export { SwitchClient, type Switch } from './components/switch';
|
|
|
203
203
|
*/
|
|
204
204
|
export * as switchApi from './gen/component/switch/v1/switch_pb';
|
|
205
205
|
export { GenericClient as GenericComponentClient, type Generic as GenericComponent, } from './components/generic';
|
|
206
|
+
export { PoseTrackerClient, type PoseTracker } from './components/posetracker';
|
|
206
207
|
/**
|
|
207
208
|
* Raw Protobuf interfaces for a Generic component.
|
|
208
209
|
*
|