@viamrobotics/sdk 0.77.0 → 0.79.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.
Files changed (50) hide show
  1. package/README.md +1 -1
  2. package/dist/api-version.d.ts +1 -1
  3. package/dist/app/app-client.d.ts +109 -102
  4. package/dist/app/billing-client.d.ts +4 -4
  5. package/dist/app/data-client.d.ts +31 -31
  6. package/dist/app/ml-training-client.d.ts +6 -6
  7. package/dist/app/viam-client.d.ts +2 -1
  8. package/dist/app/viam-transport.d.ts +2 -3
  9. package/dist/components/arm/arm.d.ts +8 -9
  10. package/dist/components/base/base.d.ts +8 -8
  11. package/dist/components/board/board.d.ts +12 -12
  12. package/dist/components/button/button.d.ts +1 -1
  13. package/dist/components/camera/camera.d.ts +2 -2
  14. package/dist/components/encoder/encoder.d.ts +4 -4
  15. package/dist/components/gantry/gantry.d.ts +8 -8
  16. package/dist/components/generic/generic.d.ts +1 -1
  17. package/dist/components/gripper/gripper.d.ts +6 -6
  18. package/dist/components/input-controller/input-controller.d.ts +3 -3
  19. package/dist/components/motor/motor.d.ts +11 -11
  20. package/dist/components/movement-sensor/movement-sensor.d.ts +10 -10
  21. package/dist/components/pose-tracker/pose-tracker.d.ts +1 -1
  22. package/dist/components/power-sensor/power-sensor.d.ts +4 -4
  23. package/dist/components/sensor/sensor.d.ts +1 -1
  24. package/dist/components/servo/servo.d.ts +5 -5
  25. package/dist/components/switch/switch.d.ts +3 -3
  26. package/dist/gen/app/mltraining/v1/ml_training_pb.d.ts +7 -0
  27. package/dist/gen/app/v1/app_pb.d.ts +14 -0
  28. package/dist/gen/app/v1/billing_pb.d.ts +5 -0
  29. package/dist/gen/app/v1/robot_pb.d.ts +18 -6
  30. package/dist/gen/common/v1/common_pb.d.ts +588 -6
  31. package/dist/gen/google/api/field_behavior_pb.d.ts +1 -1
  32. package/dist/gen/proto/rpc/webrtc/v1/grpc_pb.d.ts +9 -0
  33. package/dist/gen/proto/rpc/webrtc/v1/signaling_pb.d.ts +25 -0
  34. package/dist/gen/robot/v1/robot_pb.d.ts +66 -2
  35. package/dist/gen/service/motion/v1/motion_pb.d.ts +8 -0
  36. package/dist/gen/service/navigation/v1/navigation_connect.d.ts +324 -43
  37. package/dist/gen/service/navigation/v1/navigation_pb.d.ts +2350 -229
  38. package/dist/main.d.ts +5 -5
  39. package/dist/main.es.js +9579 -7720
  40. package/dist/main.umd.js +11 -9
  41. package/dist/robot/client.d.ts +57 -1272
  42. package/dist/services/data-manager/client.d.ts +2 -2
  43. package/dist/services/motion/motion.d.ts +7 -7
  44. package/dist/services/navigation/client.d.ts +32 -11
  45. package/dist/services/navigation/navigation.d.ts +162 -110
  46. package/dist/services/navigation/types.d.ts +36 -5
  47. package/dist/services/navigation.d.ts +1 -1
  48. package/dist/services/slam/slam.d.ts +4 -4
  49. package/dist/services/vision/vision.d.ts +8 -8
  50. package/package.json +4 -4
@@ -17,7 +17,7 @@ export declare class BillingClient {
17
17
  * ```
18
18
  *
19
19
  * For more information, see [Billing
20
- * API](https://docs.viam.com/dev/reference/apis/billing-client/#getcurrentmonthusage).
20
+ * API](https://docs.viam.com/reference/apis/billing-client/#getcurrentmonthusage).
21
21
  *
22
22
  * @param orgId - The organization ID.
23
23
  */
@@ -32,7 +32,7 @@ export declare class BillingClient {
32
32
  * ```
33
33
  *
34
34
  * For more information, see [Billing
35
- * API](https://docs.viam.com/dev/reference/apis/billing-client/#getorgbillinginformation).
35
+ * API](https://docs.viam.com/reference/apis/billing-client/#getorgbillinginformation).
36
36
  *
37
37
  * @param orgId - The organization ID.
38
38
  */
@@ -47,7 +47,7 @@ export declare class BillingClient {
47
47
  * ```
48
48
  *
49
49
  * For more information, see [Billing
50
- * API](https://docs.viam.com/dev/reference/apis/billing-client/#getinvoicesummary).
50
+ * API](https://docs.viam.com/reference/apis/billing-client/#getinvoicessummary).
51
51
  *
52
52
  * @param orgId - The organization ID.
53
53
  */
@@ -62,7 +62,7 @@ export declare class BillingClient {
62
62
  * ```
63
63
  *
64
64
  * For more information, see [Billing
65
- * API](https://docs.viam.com/dev/reference/apis/billing-client/#getinvoicepdf).
65
+ * API](https://docs.viam.com/reference/apis/billing-client/#getinvoicepdf).
66
66
  *
67
67
  * @param id - The invoice ID.
68
68
  * @param orgId - The organization ID.
@@ -100,7 +100,7 @@ export declare class DataClient {
100
100
  * ```
101
101
  *
102
102
  * For more information, see [Data
103
- * API](https://docs.viam.com/dev/reference/apis/data-client/#exporttabulardata).
103
+ * API](https://docs.viam.com/reference/apis/data-client/#exporttabulardata).
104
104
  *
105
105
  * @param partId The ID of the part that owns the data
106
106
  * @param resourceName The name of the requested resource that captured the data
@@ -124,7 +124,7 @@ export declare class DataClient {
124
124
  * ```
125
125
  *
126
126
  * For more information, see [Data
127
- * API](https://docs.viam.com/dev/reference/apis/data-client/#exporttabulardata).
127
+ * API](https://docs.viam.com/reference/apis/data-client/#exporttabulardata).
128
128
  *
129
129
  * @param organizationId The ID of the organization that owns the data
130
130
  * @param query The SQL query to run
@@ -156,7 +156,7 @@ export declare class DataClient {
156
156
  * ```
157
157
  *
158
158
  * For more information, see [Data
159
- * API](https://docs.viam.com/dev/reference/apis/data-client/#tabulardatabymql).
159
+ * API](https://docs.viam.com/reference/apis/data-client/#tabulardatabymql).
160
160
  *
161
161
  * @param organizationId The ID of the organization that owns the data
162
162
  * @param query The MQL query to run as a list of BSON documents
@@ -186,7 +186,7 @@ export declare class DataClient {
186
186
  * ```
187
187
  *
188
188
  * For more information, see [Data
189
- * API](https://docs.viam.com/dev/reference/apis/data-client/#tabulardatabyfilter).
189
+ * API](https://docs.viam.com/reference/apis/data-client/#tabulardatabyfilter).
190
190
  *
191
191
  * @param filter Optional `pb.Filter` specifying tabular data to retrieve. No `filter` implies all
192
192
  * tabular data.
@@ -224,7 +224,7 @@ export declare class DataClient {
224
224
  * ```
225
225
  *
226
226
  * For more information, see [Data
227
- * API](https://docs.viam.com/dev/reference/apis/data-client/#binarydatabyfilter).
227
+ * API](https://docs.viam.com/reference/apis/data-client/#binarydatabyfilter).
228
228
  *
229
229
  * @param filter Optional `pb.Filter` specifying binary data to retrieve. No `filter` implies all
230
230
  * binary data.
@@ -256,7 +256,7 @@ export declare class DataClient {
256
256
  * ```
257
257
  *
258
258
  * For more information, see [Data
259
- * API](https://docs.viam.com/dev/reference/apis/data-client/#binarydatabyids).
259
+ * API](https://docs.viam.com/reference/apis/data-client/#binarydatabyids).
260
260
  *
261
261
  * @param ids The IDs of the requested binary data
262
262
  * @param includeBinary Whether to include binary file data with each retrieved file
@@ -275,7 +275,7 @@ export declare class DataClient {
275
275
  * ```
276
276
  *
277
277
  * For more information, see [Data
278
- * API](https://docs.viam.com/dev/reference/apis/data-client/#createbinarydatasignedurl).
278
+ * API](https://docs.viam.com/reference/apis/data-client/#createbinarydatasignedurl).
279
279
  *
280
280
  * @param binaryDataId The ID of the binary data
281
281
  * @returns A signed URL string for accessing the binary data
@@ -304,7 +304,7 @@ export declare class DataClient {
304
304
  * ```
305
305
  *
306
306
  * For more information, see [Data
307
- * API](https://docs.viam.com/dev/reference/apis/data-client/#deletetabulardata).
307
+ * API](https://docs.viam.com/reference/apis/data-client/#deletetabulardata).
308
308
  *
309
309
  * @param organizationId The ID of organization to delete data from
310
310
  * @param deleteOlderThanDays Delete data that was captured more than this many days ago. For
@@ -332,7 +332,7 @@ export declare class DataClient {
332
332
  * ```
333
333
  *
334
334
  * For more information, see [Data
335
- * API](https://docs.viam.com/dev/reference/apis/data-client/#deletebinarydatabyfilter).
335
+ * API](https://docs.viam.com/reference/apis/data-client/#deletebinarydatabyfilter).
336
336
  *
337
337
  * @param filter Optional `pb.Filter` specifying binary data to delete. No `filter` implies all
338
338
  * binary data.
@@ -352,7 +352,7 @@ export declare class DataClient {
352
352
  * ```
353
353
  *
354
354
  * For more information, see [Data
355
- * API](https://docs.viam.com/dev/reference/apis/data-client/#deletebinarydatabyids).
355
+ * API](https://docs.viam.com/reference/apis/data-client/#deletebinarydatabyids).
356
356
  *
357
357
  * @param ids The IDs of the data to be deleted. Must be non-empty.
358
358
  * @returns The number of items deleted
@@ -373,7 +373,7 @@ export declare class DataClient {
373
373
  * ```
374
374
  *
375
375
  * For more information, see [Data
376
- * API](https://docs.viam.com/dev/reference/apis/data-client/#addtagstobinarydatabyids).
376
+ * API](https://docs.viam.com/reference/apis/data-client/#addtagstobinarydatabyids).
377
377
  *
378
378
  * @param tags The list of tags to add to specified binary data. Must be non-empty.
379
379
  * @param ids The IDs of the data to be tagged. Must be non-empty.
@@ -396,7 +396,7 @@ export declare class DataClient {
396
396
  * ```
397
397
  *
398
398
  * For more information, see [Data
399
- * API](https://docs.viam.com/dev/reference/apis/data-client/#addtagstobinarydatabyfilter).
399
+ * API](https://docs.viam.com/reference/apis/data-client/#addtagstobinarydatabyfilter).
400
400
  *
401
401
  * @param tags The tags to add to the data
402
402
  * @param filter Optional `pb.Filter` specifying binary data to add tags to. No `filter` implies
@@ -418,7 +418,7 @@ export declare class DataClient {
418
418
  * ```
419
419
  *
420
420
  * For more information, see [Data
421
- * API](https://docs.viam.com/dev/reference/apis/data-client/#removetagsfrombinarydatabyids).
421
+ * API](https://docs.viam.com/reference/apis/data-client/#removetagsfrombinarydatabyids).
422
422
  *
423
423
  * @param tags List of tags to remove from specified binary data. Must be non-empty.
424
424
  * @param ids The IDs of the data to be edited. Must be non-empty.
@@ -441,7 +441,7 @@ export declare class DataClient {
441
441
  * ```
442
442
  *
443
443
  * For more information, see [Data
444
- * API](https://docs.viam.com/dev/reference/apis/data-client/#removetagsfrombinarydatabyfilter).
444
+ * API](https://docs.viam.com/reference/apis/data-client/#removetagsfrombinarydatabyfilter).
445
445
  *
446
446
  * @param tags List of tags to remove from specified binary data. Must be non-empty.
447
447
  * @param filter Optional `pb.Filter` specifying binary data to add tags to. No `filter` implies
@@ -461,7 +461,7 @@ export declare class DataClient {
461
461
  * ```
462
462
  *
463
463
  * For more information, see [Data
464
- * API](https://docs.viam.com/dev/reference/apis/data-client/#tagsbyfilter).
464
+ * API](https://docs.viam.com/reference/apis/data-client/#tagsbyfilter).
465
465
  *
466
466
  * @param filter Optional `pb.Filter` specifying what data to get tags from. No `filter` implies
467
467
  * all data.
@@ -486,7 +486,7 @@ export declare class DataClient {
486
486
  * ```
487
487
  *
488
488
  * For more information, see [Data
489
- * API](https://docs.viam.com/dev/reference/apis/data-client/#addboundingboxtoimagebyid).
489
+ * API](https://docs.viam.com/reference/apis/data-client/#addboundingboxtoimagebyid).
490
490
  *
491
491
  * @param {string | BinaryID} binaryId The ID of the image to add the bounding box to
492
492
  * @param {string} label A label for the bounding box
@@ -512,7 +512,7 @@ export declare class DataClient {
512
512
  * ```
513
513
  *
514
514
  * For more information, see [Data
515
- * API](https://docs.viam.com/dev/reference/apis/data-client/#removeboundingboxfromimagebyid).
515
+ * API](https://docs.viam.com/reference/apis/data-client/#removeboundingboxfromimagebyid).
516
516
  *
517
517
  * @param binId The ID of the image to remove the bounding box from
518
518
  * @param bboxId The ID of the bounding box to remove
@@ -560,7 +560,7 @@ export declare class DataClient {
560
560
  * ```
561
561
  *
562
562
  * For more information, see [Data
563
- * API](https://docs.viam.com/dev/reference/apis/data-client/#boundingboxlabelsbyfilter).
563
+ * API](https://docs.viam.com/reference/apis/data-client/#boundingboxlabelsbyfilter).
564
564
  *
565
565
  * @param filter Optional `pb.Filter` specifying what data to get tags from. No `filter` implies
566
566
  * all labels.
@@ -581,7 +581,7 @@ export declare class DataClient {
581
581
  * ```
582
582
  *
583
583
  * For more information, see [Data
584
- * API](https://docs.viam.com/dev/reference/apis/data-client/#configuredatabaseuser).
584
+ * API](https://docs.viam.com/reference/apis/data-client/#configuredatabaseuser).
585
585
  *
586
586
  * @param organizationId The ID of the organization
587
587
  * @param password The password of the user
@@ -599,7 +599,7 @@ export declare class DataClient {
599
599
  * ```
600
600
  *
601
601
  * For more information, see [Data
602
- * API](https://docs.viam.com/dev/reference/apis/data-client/#getdatabaseconnection).
602
+ * API](https://docs.viam.com/reference/apis/data-client/#getdatabaseconnection).
603
603
  *
604
604
  * @param organizationId Organization to retrieve connection for
605
605
  * @returns Hostname of the federated database
@@ -620,7 +620,7 @@ export declare class DataClient {
620
620
  * ```
621
621
  *
622
622
  * For more information, see [Data
623
- * API](https://docs.viam.com/dev/reference/apis/data-client/#addbinarydatatodatasetbyids).
623
+ * API](https://docs.viam.com/reference/apis/data-client/#addbinarydatatodatasetbyids).
624
624
  *
625
625
  * @param ids The IDs of binary data to add to dataset
626
626
  * @param datasetId The ID of the dataset to be added to
@@ -641,7 +641,7 @@ export declare class DataClient {
641
641
  * ```
642
642
  *
643
643
  * For more information, see [Data
644
- * API](https://docs.viam.com/dev/reference/apis/data-client/#removebinarydatafromdatasetbyids).
644
+ * API](https://docs.viam.com/reference/apis/data-client/#removebinarydatafromdatasetbyids).
645
645
  *
646
646
  * @param ids The IDs of the binary data to remove from dataset
647
647
  * @param datasetId The ID of the dataset to be removed from
@@ -660,7 +660,7 @@ export declare class DataClient {
660
660
  * ```
661
661
  *
662
662
  * For more information, see [Data
663
- * API](https://docs.viam.com/dev/reference/apis/data-client/#createdataset).
663
+ * API](https://docs.viam.com/reference/apis/data-client/#createdataset).
664
664
  *
665
665
  * @param name The name of the new dataset
666
666
  * @param organizationId The ID of the organization the dataset is being created in
@@ -677,7 +677,7 @@ export declare class DataClient {
677
677
  * ```
678
678
  *
679
679
  * For more information, see [Data
680
- * API](https://docs.viam.com/dev/reference/apis/data-client/#deletedataset).
680
+ * API](https://docs.viam.com/reference/apis/data-client/#deletedataset).
681
681
  *
682
682
  * @param id The ID of the dataset.
683
683
  */
@@ -692,7 +692,7 @@ export declare class DataClient {
692
692
  * ```
693
693
  *
694
694
  * For more information, see [Data
695
- * API](https://docs.viam.com/dev/reference/apis/data-client/#renamedataset).
695
+ * API](https://docs.viam.com/reference/apis/data-client/#renamedataset).
696
696
  *
697
697
  * @param id The ID of the dataset
698
698
  * @param name The new name of the dataset
@@ -710,7 +710,7 @@ export declare class DataClient {
710
710
  * ```
711
711
  *
712
712
  * For more information, see [Data
713
- * API](https://docs.viam.com/dev/reference/apis/data-client/#listdatasetsbyorganizationid).
713
+ * API](https://docs.viam.com/reference/apis/data-client/#listdatasetsbyorganizationid).
714
714
  *
715
715
  * @param organizationId The ID of the organization
716
716
  * @param type Optional dataset type to filter on
@@ -727,7 +727,7 @@ export declare class DataClient {
727
727
  * ```
728
728
  *
729
729
  * For more information, see [Data
730
- * API](https://docs.viam.com/dev/reference/apis/data-client/#listdatasetsbyids).
730
+ * API](https://docs.viam.com/reference/apis/data-client/#listdatasetsbyids).
731
731
  *
732
732
  * @param ids The list of IDs of the datasets
733
733
  * @returns The list of datasets
@@ -761,7 +761,7 @@ export declare class DataClient {
761
761
  * ```
762
762
  *
763
763
  * For more information, see [Data
764
- * API](https://docs.viam.com/dev/reference/apis/data-client/#tabulardatacaptureupload).
764
+ * API](https://docs.viam.com/reference/apis/data-client/#tabulardatacaptureupload).
765
765
  *
766
766
  * @param tabularData The list of data to be uploaded, represented tabularly as an array.
767
767
  * @param partId The part ID of the component used to capture the data
@@ -799,7 +799,7 @@ export declare class DataClient {
799
799
  * ```
800
800
  *
801
801
  * For more information, see [Data
802
- * API](https://docs.viam.com/dev/reference/apis/data-client/#binarydatacaptureupload).
802
+ * API](https://docs.viam.com/reference/apis/data-client/#binarydatacaptureupload).
803
803
  *
804
804
  * @param binaryData The data to be uploaded, represented in bytes
805
805
  * @param partId The part ID of the component used to capture the data
@@ -830,7 +830,7 @@ export declare class DataClient {
830
830
  * ```
831
831
  *
832
832
  * For more information, see [Data
833
- * API](https://docs.viam.com/dev/reference/apis/data-client/#fileupload).
833
+ * API](https://docs.viam.com/reference/apis/data-client/#fileupload).
834
834
  *
835
835
  * @param binaryData The data to be uploaded
836
836
  * @param partId The part ID of the machine that captured the data
@@ -862,7 +862,7 @@ export declare class DataClient {
862
862
  * ```
863
863
  *
864
864
  * For more information, see [Data
865
- * API](https://docs.viam.com/dev/reference/apis/data-client/#getlatesttabulardata).
865
+ * API](https://docs.viam.com/reference/apis/data-client/#getlatesttabulardata).
866
866
  *
867
867
  * @param partId The ID of the part that owns the data
868
868
  * @param resourceName The name of the requested resource that captured the data. Ex: "my-sensor"
@@ -20,7 +20,7 @@ export declare class MlTrainingClient {
20
20
  * ```
21
21
  *
22
22
  * For more information, see [ML Training
23
- * API](https://docs.viam.com/dev/reference/apis/ml-training-client/#submittrainingjob).
23
+ * API](https://docs.viam.com/reference/apis/ml-training-client/#submittrainingjob).
24
24
  *
25
25
  * @param organizationId - The organization ID.
26
26
  * @param datasetId - The dataset ID.
@@ -47,7 +47,7 @@ export declare class MlTrainingClient {
47
47
  * ```
48
48
  *
49
49
  * For more information, see [ML Training
50
- * API](https://docs.viam.com/dev/reference/apis/ml-training-client/#submitcustomtrainingjob).
50
+ * API](https://docs.viam.com/reference/apis/ml-training-client/#submitcustomtrainingjob).
51
51
  *
52
52
  * @param organizationId - The organization ID.
53
53
  * @param datasetId - The dataset ID.
@@ -67,7 +67,7 @@ export declare class MlTrainingClient {
67
67
  * ```
68
68
  *
69
69
  * For more information, see [ML Training
70
- * API](https://docs.viam.com/dev/reference/apis/ml-training-client/#gettrainingjob).
70
+ * API](https://docs.viam.com/reference/apis/ml-training-client/#gettrainingjob).
71
71
  *
72
72
  * @param id - The training job ID.
73
73
  */
@@ -85,7 +85,7 @@ export declare class MlTrainingClient {
85
85
  * ```
86
86
  *
87
87
  * For more information, see [ML Training
88
- * API](https://docs.viam.com/dev/reference/apis/ml-training-client/#listtrainingjobs).
88
+ * API](https://docs.viam.com/reference/apis/ml-training-client/#listtrainingjobs).
89
89
  *
90
90
  * @param organizationId - The organization ID.
91
91
  * @param status - The training job status.
@@ -101,7 +101,7 @@ export declare class MlTrainingClient {
101
101
  * ```
102
102
  *
103
103
  * For more information, see [ML Training
104
- * API](https://docs.viam.com/dev/reference/apis/ml-training-client/#canceltrainingjob).
104
+ * API](https://docs.viam.com/reference/apis/ml-training-client/#canceltrainingjob).
105
105
  *
106
106
  * @param id - The training job ID.
107
107
  */
@@ -116,7 +116,7 @@ export declare class MlTrainingClient {
116
116
  * ```
117
117
  *
118
118
  * For more information, see [ML Training
119
- * API](https://docs.viam.com/dev/reference/apis/ml-training-client/#deletecompletedtrainingjob).
119
+ * API](https://docs.viam.com/reference/apis/ml-training-client/#deletecompletedtrainingjob).
120
120
  *
121
121
  * @param id - The training job ID.
122
122
  */
@@ -1,4 +1,5 @@
1
1
  import type { Transport } from '@connectrpc/connect';
2
+ import { type RobotClient } from '../robot';
2
3
  import { AppClient } from './app-client';
3
4
  import { BillingClient } from './billing-client';
4
5
  import { DataClient } from './data-client';
@@ -26,6 +27,6 @@ export declare class ViamClient {
26
27
  readonly billingClient: BillingClient;
27
28
  constructor(transport: Transport, credentials: Credentials);
28
29
  getRobotSecretFromHost(host: string): Promise<string | undefined>;
29
- connectToMachine({ host, id }: ViamClientMachineConnectionOpts): Promise<import("../robot").RobotClient>;
30
+ connectToMachine({ host, id, }: ViamClientMachineConnectionOpts): Promise<RobotClient>;
30
31
  }
31
32
  export {};
@@ -4,10 +4,9 @@ export type Credentials = Credential | AccessToken;
4
4
  /** A credential that can be exchanged to obtain an access token */
5
5
  export interface Credential {
6
6
  authEntity: string;
7
- type: CredentialType;
7
+ type: 'api-key';
8
8
  payload: string;
9
9
  }
10
- export type CredentialType = 'api-key' | 'robot-secret';
11
10
  /** An access token used to access protected resources. */
12
11
  export interface AccessToken {
13
12
  type: 'access-token';
@@ -15,4 +14,4 @@ export interface AccessToken {
15
14
  }
16
15
  export declare const isCredential: (object: Credentials | undefined) => object is Credential;
17
16
  /** Initialize an authenticated transport that can access protected resources. */
18
- export declare const createViamTransport: (serviceHost: string, credential: Credential | AccessToken) => Promise<Transport>;
17
+ export declare const createViamTransport: (serviceHost: string, credential: Credentials) => Promise<Transport>;
@@ -19,7 +19,7 @@ export interface Arm extends Resource {
19
19
  * ```
20
20
  *
21
21
  * For more information, see [Arm
22
- * API](https://docs.viam.com/dev/reference/apis/components/arm/#getendposition).
22
+ * API](https://docs.viam.com/reference/apis/components/arm/#getendposition).
23
23
  */
24
24
  getEndPosition: (extra?: Struct) => Promise<Pose>;
25
25
  /**
@@ -34,7 +34,7 @@ export interface Arm extends Resource {
34
34
  * ```
35
35
  *
36
36
  * For more information, see [Arm
37
- * API](https://docs.viam.com/dev/reference/apis/components/arm/#getgeometries).
37
+ * API](https://docs.viam.com/reference/apis/components/arm/#getgeometries).
38
38
  */
39
39
  getGeometries: (extra?: Struct) => Promise<Geometry[]>;
40
40
  /**
@@ -60,7 +60,7 @@ export interface Arm extends Resource {
60
60
  * console.log(kinematics);
61
61
  *
62
62
  * For more information, see [Arm
63
- * API](https://docs.viam.com/dev/reference/apis/components/arm/#getkinematics).
63
+ * API](https://docs.viam.com/reference/apis/components/arm/#getkinematics).
64
64
  * ```
65
65
  *
66
66
  * @returns The legacy kinematics data shape or the newer object containing kinematics data plus a
@@ -91,7 +91,7 @@ export interface Arm extends Resource {
91
91
  * ```
92
92
  *
93
93
  * For more information, see [Arm
94
- * API](https://docs.viam.com/dev/reference/apis/components/arm/#movetoposition).
94
+ * API](https://docs.viam.com/reference/apis/components/arm/#movetoposition).
95
95
  *
96
96
  * @param pose - The destination pose for the arm.
97
97
  */
@@ -109,7 +109,7 @@ export interface Arm extends Resource {
109
109
  * ```
110
110
  *
111
111
  * For more information, see [Arm
112
- * API](https://docs.viam.com/dev/reference/apis/components/arm/#movetojointpositions).
112
+ * API](https://docs.viam.com/reference/apis/components/arm/#movetojointpositions).
113
113
  *
114
114
  * @param jointPositionsList - List of angles (0-360) to move each joint to.
115
115
  */
@@ -125,7 +125,7 @@ export interface Arm extends Resource {
125
125
  * ```
126
126
  *
127
127
  * For more information, see [Arm
128
- * API](https://docs.viam.com/dev/reference/apis/components/arm/#getjointpositions).
128
+ * API](https://docs.viam.com/reference/apis/components/arm/#getjointpositions).
129
129
  */
130
130
  getJointPositions: (extra?: Struct) => Promise<ArmJointPositions>;
131
131
  /**
@@ -138,8 +138,7 @@ export interface Arm extends Resource {
138
138
  * await arm.stop();
139
139
  * ```
140
140
  *
141
- * For more information, see [Arm
142
- * API](https://docs.viam.com/dev/reference/apis/components/arm/#stop).
141
+ * For more information, see [Arm API](https://docs.viam.com/reference/apis/components/arm/#stop).
143
142
  */
144
143
  stop: (extra?: Struct) => Promise<void>;
145
144
  /**
@@ -154,7 +153,7 @@ export interface Arm extends Resource {
154
153
  * ```
155
154
  *
156
155
  * For more information, see [Arm
157
- * API](https://docs.viam.com/dev/reference/apis/components/arm/#ismoving).
156
+ * API](https://docs.viam.com/reference/apis/components/arm/#ismoving).
158
157
  */
159
158
  isMoving: () => Promise<boolean>;
160
159
  /**
@@ -16,7 +16,7 @@ export interface Base extends Resource {
16
16
  * ```
17
17
  *
18
18
  * For more information, see [Base
19
- * API](https://docs.viam.com/dev/reference/apis/components/base/#getgeometries).
19
+ * API](https://docs.viam.com/reference/apis/components/base/#getgeometries).
20
20
  */
21
21
  getGeometries: (extra?: Struct) => Promise<Geometry[]>;
22
22
  /**
@@ -36,7 +36,7 @@ export interface Base extends Resource {
36
36
  * ```
37
37
  *
38
38
  * For more information, see [Base
39
- * API](https://docs.viam.com/dev/reference/apis/components/base/#movestraight).
39
+ * API](https://docs.viam.com/reference/apis/components/base/#movestraight).
40
40
  *
41
41
  * @param distanceMm - Distance to move, in millimeters.
42
42
  * @param mmPerSec - Movement speed, in millimeters per second.
@@ -59,7 +59,7 @@ export interface Base extends Resource {
59
59
  * ```
60
60
  *
61
61
  * For more information, see [Base
62
- * API](https://docs.viam.com/dev/reference/apis/components/base/#spin).
62
+ * API](https://docs.viam.com/reference/apis/components/base/#spin).
63
63
  *
64
64
  * @param angleDeg - Degrees to spin.
65
65
  * @param degsPerSec - Angular speed, in degrees per second.
@@ -99,7 +99,7 @@ export interface Base extends Resource {
99
99
  * ```
100
100
  *
101
101
  * For more information, see [Base
102
- * API](https://docs.viam.com/dev/reference/apis/components/base/#setpower).
102
+ * API](https://docs.viam.com/reference/apis/components/base/#setpower).
103
103
  *
104
104
  * @param linear - Desired linear power percentage from -1 to 1.
105
105
  * @param angular - Desired angular power percentage from -1 to 1.
@@ -121,7 +121,7 @@ export interface Base extends Resource {
121
121
  * ```
122
122
  *
123
123
  * For more information, see [Base
124
- * API](https://docs.viam.com/dev/reference/apis/components/base/#setvelocity).
124
+ * API](https://docs.viam.com/reference/apis/components/base/#setvelocity).
125
125
  *
126
126
  * @param linear - Desired linear velocity in millimeters per second.
127
127
  * @param angular - Desired angular velocity in degrees per second.
@@ -138,7 +138,7 @@ export interface Base extends Resource {
138
138
  * ```
139
139
  *
140
140
  * For more information, see [Base
141
- * API](https://docs.viam.com/dev/reference/apis/components/base/#stop).
141
+ * API](https://docs.viam.com/reference/apis/components/base/#stop).
142
142
  */
143
143
  stop(extra?: Struct): Promise<void>;
144
144
  /**
@@ -152,7 +152,7 @@ export interface Base extends Resource {
152
152
  * ```
153
153
  *
154
154
  * For more information, see [Base
155
- * API](https://docs.viam.com/dev/reference/apis/components/base/#ismoving).
155
+ * API](https://docs.viam.com/reference/apis/components/base/#ismoving).
156
156
  */
157
157
  isMoving(): Promise<boolean>;
158
158
  /**
@@ -166,7 +166,7 @@ export interface Base extends Resource {
166
166
  * ```
167
167
  *
168
168
  * For more information, see [Base
169
- * API](https://docs.viam.com/dev/reference/apis/components/base/#getproperties).
169
+ * API](https://docs.viam.com/reference/apis/components/base/#getproperties).
170
170
  */
171
171
  getProperties(extra?: Struct): Promise<BaseProperties>;
172
172
  }
@@ -26,7 +26,7 @@ export interface Board extends Resource {
26
26
  * ```
27
27
  *
28
28
  * For more information, see [Board
29
- * API](https://docs.viam.com/dev/reference/apis/components/board/#getgeometries).
29
+ * API](https://docs.viam.com/reference/apis/components/board/#getgeometries).
30
30
  */
31
31
  getGeometries: (extra?: Struct) => Promise<Geometry[]>;
32
32
  /**
@@ -42,7 +42,7 @@ export interface Board extends Resource {
42
42
  * ```
43
43
  *
44
44
  * For more information, see [Board
45
- * API](https://docs.viam.com/dev/reference/apis/components/board/#getgpio).
45
+ * API](https://docs.viam.com/reference/apis/components/board/#getgpio).
46
46
  *
47
47
  * @param pin - The pin number.
48
48
  */
@@ -60,7 +60,7 @@ export interface Board extends Resource {
60
60
  * ```
61
61
  *
62
62
  * For more information, see [Board
63
- * API](https://docs.viam.com/dev/reference/apis/components/board/#setgpio).
63
+ * API](https://docs.viam.com/reference/apis/components/board/#setgpio).
64
64
  *
65
65
  * @param pin - The pin number.
66
66
  * @param high - When true, set the given pin to high. When false, set the given pin to low.
@@ -79,7 +79,7 @@ export interface Board extends Resource {
79
79
  * ```
80
80
  *
81
81
  * For more information, see [Board
82
- * API](https://docs.viam.com/dev/reference/apis/components/board/#getpwm).
82
+ * API](https://docs.viam.com/reference/apis/components/board/#getpwm).
83
83
  *
84
84
  * @param pin - The pin number.
85
85
  * @returns The duty cycle, which is a value from 0 to 1.
@@ -99,7 +99,7 @@ export interface Board extends Resource {
99
99
  * ```
100
100
  *
101
101
  * For more information, see [Board
102
- * API](https://docs.viam.com/dev/reference/apis/components/board/#setpwm).
102
+ * API](https://docs.viam.com/reference/apis/components/board/#setpwm).
103
103
  *
104
104
  * @param pin - The pin.
105
105
  * @param dutyCyclePct - A value from 0 to 1.
@@ -118,7 +118,7 @@ export interface Board extends Resource {
118
118
  * ```
119
119
  *
120
120
  * For more information, see [Board
121
- * API](https://docs.viam.com/dev/reference/apis/components/board/#getpwmfrequency).
121
+ * API](https://docs.viam.com/reference/apis/components/board/#pwmfrequency).
122
122
  *
123
123
  * @param pin - The pin.
124
124
  */
@@ -136,7 +136,7 @@ export interface Board extends Resource {
136
136
  * ```
137
137
  *
138
138
  * For more information, see [Board
139
- * API](https://docs.viam.com/dev/reference/apis/components/board/#setpwmfrequency).
139
+ * API](https://docs.viam.com/reference/apis/components/board/#setpwmfrequency).
140
140
  *
141
141
  * @param pin - The pin.
142
142
  * @param frequencyHz - The PWM frequency, in hertz. 0 will use the board's default PWM frequency.
@@ -156,7 +156,7 @@ export interface Board extends Resource {
156
156
  * ```
157
157
  *
158
158
  * For more information, see [Board
159
- * API](https://docs.viam.com/dev/reference/apis/components/board/#readanalogreader).
159
+ * API](https://docs.viam.com/reference/apis/components/board/#readanalogreader).
160
160
  *
161
161
  * @param analogReader - The name of the analog reader.
162
162
  */
@@ -174,7 +174,7 @@ export interface Board extends Resource {
174
174
  * ```
175
175
  *
176
176
  * For more information, see [Board
177
- * API](https://docs.viam.com/dev/reference/apis/components/board/#writeanalog).
177
+ * API](https://docs.viam.com/reference/apis/components/board/#writeanalog).
178
178
  *
179
179
  * @param pin - The pin name.
180
180
  * @param value - An integer value to write.
@@ -193,7 +193,7 @@ export interface Board extends Resource {
193
193
  * ```
194
194
  *
195
195
  * For more information, see [Board
196
- * API](https://docs.viam.com/dev/reference/apis/components/board/#getdigitalinterruptvalue).
196
+ * API](https://docs.viam.com/reference/apis/components/board/#getdigitalinterruptvalue).
197
197
  *
198
198
  * @param digitalInterruptName - The name of the digital interrupt.
199
199
  */
@@ -217,7 +217,7 @@ export interface Board extends Resource {
217
217
  * ```
218
218
  *
219
219
  * For more information, see [Board
220
- * API](https://docs.viam.com/dev/reference/apis/components/board/#streamticks).
220
+ * API](https://docs.viam.com/reference/apis/components/board/#streamticks).
221
221
  *
222
222
  * @param interrupts - Names of the interrupts to stream.
223
223
  * @param queue - Array to put the ticks in.
@@ -237,7 +237,7 @@ export interface Board extends Resource {
237
237
  * ```
238
238
  *
239
239
  * For more information, see [Board
240
- * API](https://docs.viam.com/dev/reference/apis/components/board/#setpowermode).
240
+ * API](https://docs.viam.com/reference/apis/components/board/#setpowermode).
241
241
  *
242
242
  * @param powerMode - The requested power mode.
243
243
  * @param duration - The requested duration to stay in power mode.
@@ -15,7 +15,7 @@ export interface Button extends Resource {
15
15
  * ```
16
16
  *
17
17
  * For more information, see [Button
18
- * API](https://docs.viam.com/dev/reference/apis/components/button/#push).
18
+ * API](https://docs.viam.com/reference/apis/components/button/#push).
19
19
  */
20
20
  push: (extra?: Struct) => Promise<void>;
21
21
  }