@viamrobotics/sdk 0.40.1 → 0.40.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/app-client.d.ts +234 -0
- package/dist/app/billing-client.d.ts +12 -0
- package/dist/app/data-client.d.ts +98 -10
- package/dist/app/ml-training-client.d.ts +18 -0
- package/dist/components/arm/arm.d.ts +21 -0
- package/dist/components/base/base.d.ts +24 -0
- package/dist/components/board/board.d.ts +33 -0
- package/dist/components/button/button.d.ts +3 -0
- package/dist/components/camera/camera.d.ts +12 -0
- package/dist/components/encoder/encoder.d.ts +9 -0
- package/dist/components/gantry/gantry.d.ts +21 -0
- package/dist/components/generic/generic.d.ts +3 -0
- package/dist/components/gripper/gripper.d.ts +15 -0
- package/dist/components/input-controller/input-controller.d.ts +6 -0
- package/dist/components/motor/motor.d.ts +30 -0
- package/dist/components/movement-sensor/movement-sensor.d.ts +27 -0
- package/dist/components/power-sensor/power-sensor.d.ts +12 -0
- package/dist/components/sensor/sensor.d.ts +3 -0
- package/dist/components/servo/servo.d.ts +12 -0
- package/dist/components/switch/switch.d.ts +9 -0
- package/dist/gen/app/v1/app_pb.d.ts +10 -0
- package/dist/gen/app/v1/robot_pb.d.ts +5 -0
- package/dist/main.es.js +393 -21
- package/dist/main.umd.js +3 -3
- package/dist/services/data-manager/client.d.ts +6 -0
- package/dist/services/vision/vision.d.ts +21 -0
- package/package.json +1 -1
|
@@ -17,6 +17,9 @@ export declare class BillingClient {
|
|
|
17
17
|
* const usage = await billing.getCurrentMonthUsage('<organization-id>');
|
|
18
18
|
* ```
|
|
19
19
|
*
|
|
20
|
+
* For more information, see [Billing
|
|
21
|
+
* API](https://docs.viam.com/dev/reference/apis/billing-client/#getcurrentmonthusage).
|
|
22
|
+
*
|
|
20
23
|
* @param orgId - The organization ID.
|
|
21
24
|
*/
|
|
22
25
|
getCurrentMonthUsage(orgId: string): Promise<GetCurrentMonthUsageResponse>;
|
|
@@ -32,6 +35,9 @@ export declare class BillingClient {
|
|
|
32
35
|
* );
|
|
33
36
|
* ```
|
|
34
37
|
*
|
|
38
|
+
* For more information, see [Billing
|
|
39
|
+
* API](https://docs.viam.com/dev/reference/apis/billing-client/#getorgbillinginformation).
|
|
40
|
+
*
|
|
35
41
|
* @param orgId - The organization ID.
|
|
36
42
|
*/
|
|
37
43
|
getOrgBillingInformation(orgId: string): Promise<import("../gen/app/v1/billing_pb").GetOrgBillingInformationResponse>;
|
|
@@ -46,6 +52,9 @@ export declare class BillingClient {
|
|
|
46
52
|
* );
|
|
47
53
|
* ```
|
|
48
54
|
*
|
|
55
|
+
* For more information, see [Billing
|
|
56
|
+
* API](https://docs.viam.com/dev/reference/apis/billing-client/#getinvoicesummary).
|
|
57
|
+
*
|
|
49
58
|
* @param orgId - The organization ID.
|
|
50
59
|
*/
|
|
51
60
|
getInvoicesSummary(orgId: string): Promise<import("../gen/app/v1/billing_pb").GetInvoicesSummaryResponse>;
|
|
@@ -61,6 +70,9 @@ export declare class BillingClient {
|
|
|
61
70
|
* );
|
|
62
71
|
* ```
|
|
63
72
|
*
|
|
73
|
+
* For more information, see [Billing
|
|
74
|
+
* API](https://docs.viam.com/dev/reference/apis/billing-client/#getinvoicepdf).
|
|
75
|
+
*
|
|
64
76
|
* @param id - The invoice ID.
|
|
65
77
|
* @param orgId - The organization ID.
|
|
66
78
|
*/
|
|
@@ -52,6 +52,9 @@ export declare class DataClient {
|
|
|
52
52
|
* );
|
|
53
53
|
* ```
|
|
54
54
|
*
|
|
55
|
+
* For more information, see [Data
|
|
56
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#exporttabulardata).
|
|
57
|
+
*
|
|
55
58
|
* @param partId The ID of the part that owns the data
|
|
56
59
|
* @param resourceName The name of the requested resource that captured the
|
|
57
60
|
* data
|
|
@@ -77,6 +80,9 @@ export declare class DataClient {
|
|
|
77
80
|
* );
|
|
78
81
|
* ```
|
|
79
82
|
*
|
|
83
|
+
* For more information, see [Data
|
|
84
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#exporttabulardata).
|
|
85
|
+
*
|
|
80
86
|
* @param organizationId The ID of the organization that owns the data
|
|
81
87
|
* @param query The SQL query to run
|
|
82
88
|
* @returns An array of data objects
|
|
@@ -112,6 +118,9 @@ export declare class DataClient {
|
|
|
112
118
|
* );
|
|
113
119
|
* ```
|
|
114
120
|
*
|
|
121
|
+
* For more information, see [Data
|
|
122
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#tabulardatabymql).
|
|
123
|
+
*
|
|
115
124
|
* @param organizationId The ID of the organization that owns the data
|
|
116
125
|
* @param query The MQL query to run as a list of BSON documents
|
|
117
126
|
* @param useRecentData Whether to query blob storage or your recent data
|
|
@@ -137,6 +146,9 @@ export declare class DataClient {
|
|
|
137
146
|
* );
|
|
138
147
|
* ```
|
|
139
148
|
*
|
|
149
|
+
* For more information, see [Data
|
|
150
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#tabulardatabyfilter).
|
|
151
|
+
*
|
|
140
152
|
* @param filter Optional `pb.Filter` specifying tabular data to retrieve. No
|
|
141
153
|
* `filter` implies all tabular data.
|
|
142
154
|
* @param limit The maximum number of entries to include in a page. Defaults
|
|
@@ -175,6 +187,9 @@ export declare class DataClient {
|
|
|
175
187
|
* );
|
|
176
188
|
* ```
|
|
177
189
|
*
|
|
190
|
+
* For more information, see [Data
|
|
191
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#binarydatabyfilter).
|
|
192
|
+
*
|
|
178
193
|
* @param filter Optional `pb.Filter` specifying binary data to retrieve. No
|
|
179
194
|
* `filter` implies all binary data.
|
|
180
195
|
* @param limit The maximum number of entries to include in a page. Defaults
|
|
@@ -208,6 +223,9 @@ export declare class DataClient {
|
|
|
208
223
|
* ]);
|
|
209
224
|
* ```
|
|
210
225
|
*
|
|
226
|
+
* For more information, see [Data
|
|
227
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#binarydatabyids).
|
|
228
|
+
*
|
|
211
229
|
* @param ids The IDs of the requested binary data
|
|
212
230
|
* @returns An array of data objects
|
|
213
231
|
*/
|
|
@@ -224,6 +242,9 @@ export declare class DataClient {
|
|
|
224
242
|
* );
|
|
225
243
|
* ```
|
|
226
244
|
*
|
|
245
|
+
* For more information, see [Data
|
|
246
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#deletetabulardata).
|
|
247
|
+
*
|
|
227
248
|
* @param organizationId The ID of organization to delete data from
|
|
228
249
|
* @param deleteOlderThanDays Delete data that was captured more than this
|
|
229
250
|
* many days ago. For example if `deleteOlderThanDays` is 10, this deletes
|
|
@@ -247,6 +268,9 @@ export declare class DataClient {
|
|
|
247
268
|
* } as Filter);
|
|
248
269
|
* ```
|
|
249
270
|
*
|
|
271
|
+
* For more information, see [Data
|
|
272
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#deletebinarydatabyfilter).
|
|
273
|
+
*
|
|
250
274
|
* @param filter Optional `pb.Filter` specifying binary data to delete. No
|
|
251
275
|
* `filter` implies all binary data.
|
|
252
276
|
* @param includeInternalData Whether or not to delete internal data. Default
|
|
@@ -265,6 +289,9 @@ export declare class DataClient {
|
|
|
265
289
|
* ]);
|
|
266
290
|
* ```
|
|
267
291
|
*
|
|
292
|
+
* For more information, see [Data
|
|
293
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#deletebinarydatabyids).
|
|
294
|
+
*
|
|
268
295
|
* @param ids The IDs of the data to be deleted. Must be non-empty.
|
|
269
296
|
* @returns The number of items deleted
|
|
270
297
|
*/
|
|
@@ -283,6 +310,9 @@ export declare class DataClient {
|
|
|
283
310
|
* );
|
|
284
311
|
* ```
|
|
285
312
|
*
|
|
313
|
+
* For more information, see [Data
|
|
314
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#addtagstobinarydatabyids).
|
|
315
|
+
*
|
|
286
316
|
* @param tags The list of tags to add to specified binary data. Must be
|
|
287
317
|
* non-empty.
|
|
288
318
|
* @param ids The IDs of the data to be tagged. Must be non-empty.
|
|
@@ -304,6 +334,9 @@ export declare class DataClient {
|
|
|
304
334
|
* );
|
|
305
335
|
* ```
|
|
306
336
|
*
|
|
337
|
+
* For more information, see [Data
|
|
338
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#addtagstobinarydatabyfilter).
|
|
339
|
+
*
|
|
307
340
|
* @param tags The tags to add to the data
|
|
308
341
|
* @param filter Optional `pb.Filter` specifying binary data to add tags to.
|
|
309
342
|
* No `filter` implies all binary data.
|
|
@@ -323,6 +356,9 @@ export declare class DataClient {
|
|
|
323
356
|
* );
|
|
324
357
|
* ```
|
|
325
358
|
*
|
|
359
|
+
* For more information, see [Data
|
|
360
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#removetagsfrombinarydatabyids).
|
|
361
|
+
*
|
|
326
362
|
* @param tags List of tags to remove from specified binary data. Must be
|
|
327
363
|
* non-empty.
|
|
328
364
|
* @param ids The IDs of the data to be edited. Must be non-empty.
|
|
@@ -347,6 +383,9 @@ export declare class DataClient {
|
|
|
347
383
|
* );
|
|
348
384
|
* ```
|
|
349
385
|
*
|
|
386
|
+
* For more information, see [Data
|
|
387
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#removetagsfrombinarydatabyfilter).
|
|
388
|
+
*
|
|
350
389
|
* @param tags List of tags to remove from specified binary data. Must be
|
|
351
390
|
* non-empty.
|
|
352
391
|
* @param filter Optional `pb.Filter` specifying binary data to add tags to.
|
|
@@ -365,6 +404,9 @@ export declare class DataClient {
|
|
|
365
404
|
* } as Filter);
|
|
366
405
|
* ```
|
|
367
406
|
*
|
|
407
|
+
* For more information, see [Data
|
|
408
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#tagsbyfilter).
|
|
409
|
+
*
|
|
368
410
|
* @param filter Optional `pb.Filter` specifying what data to get tags from.
|
|
369
411
|
* No `filter` implies all data.
|
|
370
412
|
* @returns The list of tags
|
|
@@ -386,6 +428,9 @@ export declare class DataClient {
|
|
|
386
428
|
* );
|
|
387
429
|
* ```
|
|
388
430
|
*
|
|
431
|
+
* For more information, see [Data
|
|
432
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#addboundingboxtoimagebyid).
|
|
433
|
+
*
|
|
389
434
|
* @param binaryId The ID of the image to add the bounding box to
|
|
390
435
|
* @param label A label for the bounding box
|
|
391
436
|
* @param xMinNormalized The min X value of the bounding box normalized from 0
|
|
@@ -411,6 +456,9 @@ export declare class DataClient {
|
|
|
411
456
|
* );
|
|
412
457
|
* ```
|
|
413
458
|
*
|
|
459
|
+
* For more information, see [Data
|
|
460
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#removeboundingboxfromimagebyid).
|
|
461
|
+
*
|
|
414
462
|
* @param binId The ID of the image to remove the bounding box from
|
|
415
463
|
* @param bboxId The ID of the bounding box to remove
|
|
416
464
|
*/
|
|
@@ -426,6 +474,9 @@ export declare class DataClient {
|
|
|
426
474
|
* } as Filter);
|
|
427
475
|
* ```
|
|
428
476
|
*
|
|
477
|
+
* For more information, see [Data
|
|
478
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#boundingboxlabelsbyfilter).
|
|
479
|
+
*
|
|
429
480
|
* @param filter Optional `pb.Filter` specifying what data to get tags from.
|
|
430
481
|
* No `filter` implies all labels.
|
|
431
482
|
* @returns The list of bounding box labels
|
|
@@ -445,6 +496,9 @@ export declare class DataClient {
|
|
|
445
496
|
* );
|
|
446
497
|
* ```
|
|
447
498
|
*
|
|
499
|
+
* For more information, see [Data
|
|
500
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#configuredatabaseuser).
|
|
501
|
+
*
|
|
448
502
|
* @param organizationId The ID of the organization
|
|
449
503
|
* @param password The password of the user
|
|
450
504
|
*/
|
|
@@ -460,6 +514,9 @@ export declare class DataClient {
|
|
|
460
514
|
* );
|
|
461
515
|
* ```
|
|
462
516
|
*
|
|
517
|
+
* For more information, see [Data
|
|
518
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#getdatabaseconnection).
|
|
519
|
+
*
|
|
463
520
|
* @param organizationId Organization to retrieve connection for
|
|
464
521
|
* @returns Hostname of the federated database
|
|
465
522
|
*/
|
|
@@ -478,6 +535,9 @@ export declare class DataClient {
|
|
|
478
535
|
* );
|
|
479
536
|
* ```
|
|
480
537
|
*
|
|
538
|
+
* For more information, see [Data
|
|
539
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#addbinarydatatodatasetbyids).
|
|
540
|
+
*
|
|
481
541
|
* @param ids The IDs of binary data to add to dataset
|
|
482
542
|
* @param datasetId The ID of the dataset to be added to
|
|
483
543
|
*/
|
|
@@ -496,6 +556,9 @@ export declare class DataClient {
|
|
|
496
556
|
* );
|
|
497
557
|
* ```
|
|
498
558
|
*
|
|
559
|
+
* For more information, see [Data
|
|
560
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#removebinarydatafromdatasetbyids).
|
|
561
|
+
*
|
|
499
562
|
* @param ids The IDs of the binary data to remove from dataset
|
|
500
563
|
* @param datasetId The ID of the dataset to be removed from
|
|
501
564
|
*/
|
|
@@ -512,6 +575,9 @@ export declare class DataClient {
|
|
|
512
575
|
* );
|
|
513
576
|
* ```
|
|
514
577
|
*
|
|
578
|
+
* For more information, see [Data
|
|
579
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#createdataset).
|
|
580
|
+
*
|
|
515
581
|
* @param name The name of the new dataset
|
|
516
582
|
* @param organizationId The ID of the organization the dataset is being
|
|
517
583
|
* created in
|
|
@@ -527,6 +593,9 @@ export declare class DataClient {
|
|
|
527
593
|
* await dataClient.deleteDataset('12ab3de4f56a7bcd89ef0ab1');
|
|
528
594
|
* ```
|
|
529
595
|
*
|
|
596
|
+
* For more information, see [Data
|
|
597
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#deletedataset).
|
|
598
|
+
*
|
|
530
599
|
* @param id The ID of the dataset.
|
|
531
600
|
*/
|
|
532
601
|
deleteDataset(id: string): Promise<void>;
|
|
@@ -542,6 +611,9 @@ export declare class DataClient {
|
|
|
542
611
|
* );
|
|
543
612
|
* ```
|
|
544
613
|
*
|
|
614
|
+
* For more information, see [Data
|
|
615
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#renamedataset).
|
|
616
|
+
*
|
|
545
617
|
* @param id The ID of the dataset
|
|
546
618
|
* @param name The new name of the dataset
|
|
547
619
|
*/
|
|
@@ -557,6 +629,9 @@ export declare class DataClient {
|
|
|
557
629
|
* );
|
|
558
630
|
* ```
|
|
559
631
|
*
|
|
632
|
+
* For more information, see [Data
|
|
633
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#listdatasetsbyorganizationid).
|
|
634
|
+
*
|
|
560
635
|
* @param organizationId The ID of the organization
|
|
561
636
|
* @returns The list of datasets in the organization
|
|
562
637
|
*/
|
|
@@ -572,6 +647,9 @@ export declare class DataClient {
|
|
|
572
647
|
* ]);
|
|
573
648
|
* ```
|
|
574
649
|
*
|
|
650
|
+
* For more information, see [Data
|
|
651
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#listdatasetsbyids).
|
|
652
|
+
*
|
|
575
653
|
* @param ids The list of IDs of the datasets
|
|
576
654
|
* @returns The list of datasets
|
|
577
655
|
*/
|
|
@@ -579,8 +657,8 @@ export declare class DataClient {
|
|
|
579
657
|
/**
|
|
580
658
|
* Uploads the content and metadata for tabular data.
|
|
581
659
|
*
|
|
582
|
-
* Upload tabular data collected on a robot through a specific component
|
|
583
|
-
*
|
|
660
|
+
* Upload tabular data collected on a robot through a specific component (for
|
|
661
|
+
* example, a motor) along with the relevant metadata to app.viam.com. Tabular
|
|
584
662
|
* data can be found under the "Sensors" subtab of the Data tab on
|
|
585
663
|
* app.viam.com.
|
|
586
664
|
*
|
|
@@ -607,11 +685,14 @@ export declare class DataClient {
|
|
|
607
685
|
* );
|
|
608
686
|
* ```
|
|
609
687
|
*
|
|
688
|
+
* For more information, see [Data
|
|
689
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#tabulardatacaptureupload).
|
|
690
|
+
*
|
|
610
691
|
* @param tabularData The list of data to be uploaded, represented tabularly
|
|
611
692
|
* as an array.
|
|
612
693
|
* @param partId The part ID of the component used to capture the data
|
|
613
694
|
* @param componentType The type of the component used to capture the data
|
|
614
|
-
* (
|
|
695
|
+
* (for example, "movementSensor")
|
|
615
696
|
* @param componentName The name of the component used to capture the data
|
|
616
697
|
* @param methodName The name of the method used to capture the data.
|
|
617
698
|
* @param tags The list of tags to allow for tag-based filtering when
|
|
@@ -627,9 +708,10 @@ export declare class DataClient {
|
|
|
627
708
|
/**
|
|
628
709
|
* Uploads the content and metadata for binary data.
|
|
629
710
|
*
|
|
630
|
-
* Upload binary data collected on a robot through a specific component (
|
|
631
|
-
* a motor) along with the relevant metadata to app.viam.com. binary
|
|
632
|
-
* be found under the "Sensors" subtab of the Data tab on
|
|
711
|
+
* Upload binary data collected on a robot through a specific component (for
|
|
712
|
+
* example, a motor) along with the relevant metadata to app.viam.com. binary
|
|
713
|
+
* data can be found under the "Sensors" subtab of the Data tab on
|
|
714
|
+
* app.viam.com.
|
|
633
715
|
*
|
|
634
716
|
* @example
|
|
635
717
|
*
|
|
@@ -645,16 +727,19 @@ export declare class DataClient {
|
|
|
645
727
|
* );
|
|
646
728
|
* ```
|
|
647
729
|
*
|
|
730
|
+
* For more information, see [Data
|
|
731
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#binarydatacaptureupload).
|
|
732
|
+
*
|
|
648
733
|
* @param binaryData The data to be uploaded, represented in bytes
|
|
649
734
|
* @param partId The part ID of the component used to capture the data
|
|
650
735
|
* @param componentType The type of the component used to capture the data
|
|
651
|
-
* (
|
|
736
|
+
* (for example, "movementSensor")
|
|
652
737
|
* @param componentName The name of the component used to capture the data
|
|
653
738
|
* @param methodName The name of the method used to capture the data.
|
|
654
739
|
* @param fileExtension The file extension of binary data including the
|
|
655
|
-
* period,
|
|
656
|
-
* corresponding mime type based on this extension. Files with
|
|
657
|
-
* .jpg, or .png extension will be saved to the images tab.
|
|
740
|
+
* period, for example .jpg, .png, or .pcd. The backend will route the
|
|
741
|
+
* binary to its corresponding mime type based on this extension. Files with
|
|
742
|
+
* a .jpeg, .jpg, or .png extension will be saved to the images tab.
|
|
658
743
|
* @param tags The list of tags to allow for tag-based filtering when
|
|
659
744
|
* retrieving data
|
|
660
745
|
* @param dataRequestTimes Tuple containing `Date` objects denoting the times
|
|
@@ -679,6 +764,9 @@ export declare class DataClient {
|
|
|
679
764
|
* );
|
|
680
765
|
* ```
|
|
681
766
|
*
|
|
767
|
+
* For more information, see [Data
|
|
768
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#getlatesttabulardata).
|
|
769
|
+
*
|
|
682
770
|
* @param partId The ID of the part that owns the data
|
|
683
771
|
* @param resourceName The name of the requested resource that captured the
|
|
684
772
|
* data. Ex: "my-sensor"
|
|
@@ -19,6 +19,9 @@ export declare class MlTrainingClient {
|
|
|
19
19
|
* );
|
|
20
20
|
* ```
|
|
21
21
|
*
|
|
22
|
+
* For more information, see [ML Training
|
|
23
|
+
* API](https://docs.viam.com/dev/reference/apis/ml-training-client/#submittrainingjob).
|
|
24
|
+
*
|
|
22
25
|
* @param organizationId - The organization ID.
|
|
23
26
|
* @param datasetId - The dataset ID.
|
|
24
27
|
* @param modelName - The model name.
|
|
@@ -43,6 +46,9 @@ export declare class MlTrainingClient {
|
|
|
43
46
|
* );
|
|
44
47
|
* ```
|
|
45
48
|
*
|
|
49
|
+
* For more information, see [ML Training
|
|
50
|
+
* API](https://docs.viam.com/dev/reference/apis/ml-training-client/#submitcustomtrainingjob).
|
|
51
|
+
*
|
|
46
52
|
* @param organizationId - The organization ID.
|
|
47
53
|
* @param datasetId - The dataset ID.
|
|
48
54
|
* @param registryItemId - The registry item ID.
|
|
@@ -60,6 +66,9 @@ export declare class MlTrainingClient {
|
|
|
60
66
|
* const job = await mlTrainingClient.getTrainingJob('<training-job-id>');
|
|
61
67
|
* ```
|
|
62
68
|
*
|
|
69
|
+
* For more information, see [ML Training
|
|
70
|
+
* API](https://docs.viam.com/dev/reference/apis/ml-training-client/#gettrainingjob).
|
|
71
|
+
*
|
|
63
72
|
* @param id - The training job ID.
|
|
64
73
|
*/
|
|
65
74
|
getTrainingJob(id: string): Promise<import("../gen/app/mltraining/v1/ml_training_pb").TrainingJobMetadata | undefined>;
|
|
@@ -75,6 +84,9 @@ export declare class MlTrainingClient {
|
|
|
75
84
|
* );
|
|
76
85
|
* ```
|
|
77
86
|
*
|
|
87
|
+
* For more information, see [ML Training
|
|
88
|
+
* API](https://docs.viam.com/dev/reference/apis/ml-training-client/#listtrainingjobs).
|
|
89
|
+
*
|
|
78
90
|
* @param organizationId - The organization ID.
|
|
79
91
|
* @param status - The training job status.
|
|
80
92
|
*/
|
|
@@ -88,6 +100,9 @@ export declare class MlTrainingClient {
|
|
|
88
100
|
* await mlTrainingClient.cancelTrainingJob('<training-job-id>');
|
|
89
101
|
* ```
|
|
90
102
|
*
|
|
103
|
+
* For more information, see [ML Training
|
|
104
|
+
* API](https://docs.viam.com/dev/reference/apis/ml-training-client/#canceltrainingjob).
|
|
105
|
+
*
|
|
91
106
|
* @param id - The training job ID.
|
|
92
107
|
*/
|
|
93
108
|
cancelTrainingJob(id: string): Promise<null>;
|
|
@@ -100,6 +115,9 @@ export declare class MlTrainingClient {
|
|
|
100
115
|
* await mlTrainingClient.deleteCompletedTrainingJob('<training-job-id>');
|
|
101
116
|
* ```
|
|
102
117
|
*
|
|
118
|
+
* For more information, see [ML Training
|
|
119
|
+
* API](https://docs.viam.com/dev/reference/apis/ml-training-client/#deletecompletedtrainingjob).
|
|
120
|
+
*
|
|
103
121
|
* @param id - The training job ID.
|
|
104
122
|
*/
|
|
105
123
|
deleteCompletedTrainingJob(id: string): Promise<null>;
|
|
@@ -15,6 +15,9 @@ export interface Arm extends Resource {
|
|
|
15
15
|
* const arm = new VIAM.ArmClient(machine, 'my_arm');
|
|
16
16
|
* const pose = await arm.getEndPosition();
|
|
17
17
|
* ```
|
|
18
|
+
*
|
|
19
|
+
* For more information, see [Arm
|
|
20
|
+
* API](https://docs.viam.com/dev/reference/apis/components/arm/#getendposition).
|
|
18
21
|
*/
|
|
19
22
|
getEndPosition: (extra?: Struct) => Promise<Pose>;
|
|
20
23
|
/**
|
|
@@ -27,6 +30,9 @@ export interface Arm extends Resource {
|
|
|
27
30
|
* const geometries = await arm.getGeometries();
|
|
28
31
|
* console.log(geometries);
|
|
29
32
|
* ```
|
|
33
|
+
*
|
|
34
|
+
* For more information, see [Arm
|
|
35
|
+
* API](https://docs.viam.com/dev/reference/apis/components/arm/#getgeometries).
|
|
30
36
|
*/
|
|
31
37
|
getGeometries: (extra?: Struct) => Promise<Geometry[]>;
|
|
32
38
|
/**
|
|
@@ -52,6 +58,9 @@ export interface Arm extends Resource {
|
|
|
52
58
|
* await arm.moveToPosition(pose);
|
|
53
59
|
* ```
|
|
54
60
|
*
|
|
61
|
+
* For more information, see [Arm
|
|
62
|
+
* API](https://docs.viam.com/dev/reference/apis/components/arm/#movetoposition).
|
|
63
|
+
*
|
|
55
64
|
* @param pose - The destination pose for the arm.
|
|
56
65
|
*/
|
|
57
66
|
moveToPosition: (pose: Pose, extra?: Struct) => Promise<void>;
|
|
@@ -67,6 +76,9 @@ export interface Arm extends Resource {
|
|
|
67
76
|
* await arm.moveToJointPositions([90, 0, 0, 0, 15, 0]);
|
|
68
77
|
* ```
|
|
69
78
|
*
|
|
79
|
+
* For more information, see [Arm
|
|
80
|
+
* API](https://docs.viam.com/dev/reference/apis/components/arm/#movetojointpositions).
|
|
81
|
+
*
|
|
70
82
|
* @param jointPositionsList - List of angles (0-360) to move each joint to.
|
|
71
83
|
*/
|
|
72
84
|
moveToJointPositions: (jointPositionsList: number[], extra?: Struct) => Promise<void>;
|
|
@@ -79,6 +91,9 @@ export interface Arm extends Resource {
|
|
|
79
91
|
* const arm = new VIAM.ArmClient(machine, 'my_arm');
|
|
80
92
|
* const jointPositions = await arm.getJointPositions();
|
|
81
93
|
* ```
|
|
94
|
+
*
|
|
95
|
+
* For more information, see [Arm
|
|
96
|
+
* API](https://docs.viam.com/dev/reference/apis/components/arm/#getjointpositions).
|
|
82
97
|
*/
|
|
83
98
|
getJointPositions: (extra?: Struct) => Promise<ArmJointPositions>;
|
|
84
99
|
/**
|
|
@@ -90,6 +105,9 @@ export interface Arm extends Resource {
|
|
|
90
105
|
* const arm = new VIAM.ArmClient(machine, 'my_arm');
|
|
91
106
|
* await arm.stop();
|
|
92
107
|
* ```
|
|
108
|
+
*
|
|
109
|
+
* For more information, see [Arm
|
|
110
|
+
* API](https://docs.viam.com/dev/reference/apis/components/arm/#stop).
|
|
93
111
|
*/
|
|
94
112
|
stop: (extra?: Struct) => Promise<void>;
|
|
95
113
|
/**
|
|
@@ -102,6 +120,9 @@ export interface Arm extends Resource {
|
|
|
102
120
|
* const isMoving = await arm.isMoving();
|
|
103
121
|
* console.log(isMoving);
|
|
104
122
|
* ```
|
|
123
|
+
*
|
|
124
|
+
* For more information, see [Arm
|
|
125
|
+
* API](https://docs.viam.com/dev/reference/apis/components/arm/#ismoving).
|
|
105
126
|
*/
|
|
106
127
|
isMoving: () => Promise<boolean>;
|
|
107
128
|
}
|
|
@@ -14,6 +14,9 @@ export interface Base extends Resource {
|
|
|
14
14
|
* const base = new VIAM.BaseClient(machine, 'my_base');
|
|
15
15
|
* const geometries = await base.getGeometries();
|
|
16
16
|
* ```
|
|
17
|
+
*
|
|
18
|
+
* For more information, see [Base
|
|
19
|
+
* API](https://docs.viam.com/dev/reference/apis/components/base/#getgeometries).
|
|
17
20
|
*/
|
|
18
21
|
getGeometries: (extra?: Struct) => Promise<Geometry[]>;
|
|
19
22
|
/**
|
|
@@ -32,6 +35,9 @@ export interface Base extends Resource {
|
|
|
32
35
|
* await base.moveStraight(40, -90);
|
|
33
36
|
* ```
|
|
34
37
|
*
|
|
38
|
+
* For more information, see [Base
|
|
39
|
+
* API](https://docs.viam.com/dev/reference/apis/components/base/#movestraight).
|
|
40
|
+
*
|
|
35
41
|
* @param distanceMm - Distance to move, in millimeters.
|
|
36
42
|
* @param mmPerSec - Movement speed, in millimeters per second.
|
|
37
43
|
*/
|
|
@@ -52,6 +58,9 @@ export interface Base extends Resource {
|
|
|
52
58
|
* await base.spin(-180, 20);
|
|
53
59
|
* ```
|
|
54
60
|
*
|
|
61
|
+
* For more information, see [Base
|
|
62
|
+
* API](https://docs.viam.com/dev/reference/apis/components/base/#spin).
|
|
63
|
+
*
|
|
55
64
|
* @param angleDeg - Degrees to spin.
|
|
56
65
|
* @param degsPerSec - Angular speed, in degrees per second.
|
|
57
66
|
*/
|
|
@@ -90,6 +99,9 @@ export interface Base extends Resource {
|
|
|
90
99
|
* );
|
|
91
100
|
* ```
|
|
92
101
|
*
|
|
102
|
+
* For more information, see [Base
|
|
103
|
+
* API](https://docs.viam.com/dev/reference/apis/components/base/#setpower).
|
|
104
|
+
*
|
|
93
105
|
* @param linear - Desired linear power percentage from -1 to 1.
|
|
94
106
|
* @param angular - Desired angular power percentage from -1 to 1.
|
|
95
107
|
*/
|
|
@@ -109,6 +121,9 @@ export interface Base extends Resource {
|
|
|
109
121
|
* );
|
|
110
122
|
* ```
|
|
111
123
|
*
|
|
124
|
+
* For more information, see [Base
|
|
125
|
+
* API](https://docs.viam.com/dev/reference/apis/components/base/#setvelocity).
|
|
126
|
+
*
|
|
112
127
|
* @param linear - Desired linear velocity in millimeters per second.
|
|
113
128
|
* @param angular - Desired angular velocity in degrees per second.
|
|
114
129
|
*/
|
|
@@ -122,6 +137,9 @@ export interface Base extends Resource {
|
|
|
122
137
|
* const base = new VIAM.BaseClient(machine, 'my_base');
|
|
123
138
|
* await base.stop();
|
|
124
139
|
* ```
|
|
140
|
+
*
|
|
141
|
+
* For more information, see [Base
|
|
142
|
+
* API](https://docs.viam.com/dev/reference/apis/components/base/#stop).
|
|
125
143
|
*/
|
|
126
144
|
stop(extra?: Struct): Promise<void>;
|
|
127
145
|
/**
|
|
@@ -133,6 +151,9 @@ export interface Base extends Resource {
|
|
|
133
151
|
* const base = new VIAM.BaseClient(machine, 'my_base');
|
|
134
152
|
* const moving = await base.isMoving();
|
|
135
153
|
* ```
|
|
154
|
+
*
|
|
155
|
+
* For more information, see [Base
|
|
156
|
+
* API](https://docs.viam.com/dev/reference/apis/components/base/#ismoving).
|
|
136
157
|
*/
|
|
137
158
|
isMoving(): Promise<boolean>;
|
|
138
159
|
/**
|
|
@@ -144,6 +165,9 @@ export interface Base extends Resource {
|
|
|
144
165
|
* const base = new VIAM.BaseClient(machine, 'my_base');
|
|
145
166
|
* const properties = await base.getProperties();
|
|
146
167
|
* ```
|
|
168
|
+
*
|
|
169
|
+
* For more information, see [Base
|
|
170
|
+
* API](https://docs.viam.com/dev/reference/apis/components/base/#getproperties).
|
|
147
171
|
*/
|
|
148
172
|
getProperties(extra?: Struct): Promise<BaseProperties>;
|
|
149
173
|
}
|
|
@@ -26,6 +26,9 @@ export interface Board extends Resource {
|
|
|
26
26
|
* const high = await board.getGPIO('15');
|
|
27
27
|
* ```
|
|
28
28
|
*
|
|
29
|
+
* For more information, see [Board
|
|
30
|
+
* API](https://docs.viam.com/dev/reference/apis/components/board/#getgpio).
|
|
31
|
+
*
|
|
29
32
|
* @param pin - The pin number.
|
|
30
33
|
*/
|
|
31
34
|
getGPIO(pin: string, extra?: Struct): Promise<boolean>;
|
|
@@ -41,6 +44,9 @@ export interface Board extends Resource {
|
|
|
41
44
|
* await board.setGPIO('15', true);
|
|
42
45
|
* ```
|
|
43
46
|
*
|
|
47
|
+
* For more information, see [Board
|
|
48
|
+
* API](https://docs.viam.com/dev/reference/apis/components/board/#setgpio).
|
|
49
|
+
*
|
|
44
50
|
* @param pin - The pin number.
|
|
45
51
|
* @param high - When true, set the given pin to high. When false, set the
|
|
46
52
|
* given pin to low.
|
|
@@ -58,6 +64,9 @@ export interface Board extends Resource {
|
|
|
58
64
|
* const dutyCycle = await board.getPWM('15');
|
|
59
65
|
* ```
|
|
60
66
|
*
|
|
67
|
+
* For more information, see [Board
|
|
68
|
+
* API](https://docs.viam.com/dev/reference/apis/components/board/#getpwm).
|
|
69
|
+
*
|
|
61
70
|
* @param pin - The pin number.
|
|
62
71
|
* @returns The duty cycle, which is a value from 0 to 1.
|
|
63
72
|
*/
|
|
@@ -75,6 +84,9 @@ export interface Board extends Resource {
|
|
|
75
84
|
* await board.setPWM('15', 0.6);
|
|
76
85
|
* ```
|
|
77
86
|
*
|
|
87
|
+
* For more information, see [Board
|
|
88
|
+
* API](https://docs.viam.com/dev/reference/apis/components/board/#setpwm).
|
|
89
|
+
*
|
|
78
90
|
* @param pin - The pin.
|
|
79
91
|
* @param dutyCyclePct - A value from 0 to 1.
|
|
80
92
|
*/
|
|
@@ -91,6 +103,9 @@ export interface Board extends Resource {
|
|
|
91
103
|
* const freq = await board.getPWMFrequency('15');
|
|
92
104
|
* ```
|
|
93
105
|
*
|
|
106
|
+
* For more information, see [Board
|
|
107
|
+
* API](https://docs.viam.com/dev/reference/apis/components/board/#getpwmfrequency).
|
|
108
|
+
*
|
|
94
109
|
* @param pin - The pin.
|
|
95
110
|
*/
|
|
96
111
|
getPWMFrequency(pin: string, extra?: Struct): Promise<number>;
|
|
@@ -106,6 +121,9 @@ export interface Board extends Resource {
|
|
|
106
121
|
* await board.setPWMFrequency('15', 1600);
|
|
107
122
|
* ```
|
|
108
123
|
*
|
|
124
|
+
* For more information, see [Board
|
|
125
|
+
* API](https://docs.viam.com/dev/reference/apis/components/board/#setpwmfrequency).
|
|
126
|
+
*
|
|
109
127
|
* @param pin - The pin.
|
|
110
128
|
* @param frequencyHz - The PWM frequency, in hertz. 0 will use the board's
|
|
111
129
|
* default PWM frequency.
|
|
@@ -126,6 +144,9 @@ export interface Board extends Resource {
|
|
|
126
144
|
* );
|
|
127
145
|
* ```
|
|
128
146
|
*
|
|
147
|
+
* For more information, see [Board
|
|
148
|
+
* API](https://docs.viam.com/dev/reference/apis/components/board/#readanalogreader).
|
|
149
|
+
*
|
|
129
150
|
* @param analogReader - The name of the analog reader.
|
|
130
151
|
*/
|
|
131
152
|
readAnalogReader(analogReader: string, extra?: Struct): Promise<AnalogValue>;
|
|
@@ -141,6 +162,9 @@ export interface Board extends Resource {
|
|
|
141
162
|
* await board.writeAnalog('my_example_analog_writer', 42);
|
|
142
163
|
* ```
|
|
143
164
|
*
|
|
165
|
+
* For more information, see [Board
|
|
166
|
+
* API](https://docs.viam.com/dev/reference/apis/components/board/#writeanalog).
|
|
167
|
+
*
|
|
144
168
|
* @param pin - The pin name.
|
|
145
169
|
* @param value - An integer value to write.
|
|
146
170
|
*/
|
|
@@ -160,6 +184,9 @@ export interface Board extends Resource {
|
|
|
160
184
|
* );
|
|
161
185
|
* ```
|
|
162
186
|
*
|
|
187
|
+
* For more information, see [Board
|
|
188
|
+
* API](https://docs.viam.com/dev/reference/apis/components/board/#getdigitalinterruptvalue).
|
|
189
|
+
*
|
|
163
190
|
* @param digitalInterruptName - The name of the digital interrupt.
|
|
164
191
|
*/
|
|
165
192
|
getDigitalInterruptValue(digitalInterruptName: string, extra?: Struct): Promise<number>;
|
|
@@ -181,6 +208,9 @@ export interface Board extends Resource {
|
|
|
181
208
|
* }
|
|
182
209
|
* ```
|
|
183
210
|
*
|
|
211
|
+
* For more information, see [Board
|
|
212
|
+
* API](https://docs.viam.com/dev/reference/apis/components/board/#streamticks).
|
|
213
|
+
*
|
|
184
214
|
* @param interrupts - Names of the interrupts to stream.
|
|
185
215
|
* @param queue - Array to put the ticks in.
|
|
186
216
|
*/
|
|
@@ -198,6 +228,9 @@ export interface Board extends Resource {
|
|
|
198
228
|
* await board.setPowerMode(VIAM.PowerMode.OFFLINE_DEEP, duration);
|
|
199
229
|
* ```
|
|
200
230
|
*
|
|
231
|
+
* For more information, see [Board
|
|
232
|
+
* API](https://docs.viam.com/dev/reference/apis/components/board/#setpowermode).
|
|
233
|
+
*
|
|
201
234
|
* @param powerMode - The requested power mode.
|
|
202
235
|
* @param duration - The requested duration to stay in power mode.
|
|
203
236
|
*/
|
|
@@ -13,6 +13,9 @@ export interface Button extends Resource {
|
|
|
13
13
|
* // Push the button
|
|
14
14
|
* await button.push();
|
|
15
15
|
* ```
|
|
16
|
+
*
|
|
17
|
+
* For more information, see [Button
|
|
18
|
+
* API](https://docs.viam.com/dev/reference/apis/components/button/#push).
|
|
16
19
|
*/
|
|
17
20
|
push: (extra?: Struct) => Promise<void>;
|
|
18
21
|
}
|