@viamrobotics/sdk 0.68.0 → 0.68.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/components/arm/client.d.ts +1 -0
- package/dist/components/audio-in/client.d.ts +1 -0
- package/dist/components/audio-out/client.d.ts +1 -0
- package/dist/components/base/client.d.ts +1 -0
- package/dist/components/board/client.d.ts +1 -0
- package/dist/components/button/client.d.ts +1 -0
- package/dist/components/camera/client.d.ts +1 -0
- package/dist/components/encoder/client.d.ts +1 -0
- package/dist/components/gantry/client.d.ts +1 -0
- package/dist/components/generic/client.d.ts +1 -0
- package/dist/components/gripper/client.d.ts +1 -0
- package/dist/components/input-controller/client.d.ts +1 -0
- package/dist/components/motor/client.d.ts +1 -0
- package/dist/components/movement-sensor/client.d.ts +1 -0
- package/dist/components/pose-tracker/client.d.ts +1 -0
- package/dist/components/power-sensor/client.d.ts +1 -0
- package/dist/components/sensor/client.d.ts +1 -0
- package/dist/components/servo/client.d.ts +1 -0
- package/dist/components/switch/client.d.ts +1 -0
- package/dist/gen/app/build/v1/build_pb.d.ts +17 -1
- package/dist/gen/app/v1/app_connect.d.ts +68 -1
- package/dist/gen/app/v1/app_pb.d.ts +313 -0
- package/dist/gen/common/v1/common_pb.d.ts +52 -0
- package/dist/gen/component/arm/v1/arm_connect.d.ts +12 -1
- package/dist/gen/component/audioin/v1/audioin_connect.d.ts +12 -1
- package/dist/gen/component/audioout/v1/audioout_connect.d.ts +12 -1
- package/dist/gen/component/base/v1/base_connect.d.ts +12 -1
- package/dist/gen/component/board/v1/board_connect.d.ts +12 -1
- package/dist/gen/component/button/v1/button_connect.d.ts +12 -1
- package/dist/gen/component/camera/v1/camera_connect.d.ts +13 -27
- package/dist/gen/component/camera/v1/camera_pb.d.ts +0 -150
- package/dist/gen/component/encoder/v1/encoder_connect.d.ts +12 -1
- package/dist/gen/component/gantry/v1/gantry_connect.d.ts +12 -1
- package/dist/gen/component/generic/v1/generic_connect.d.ts +12 -1
- package/dist/gen/component/gripper/v1/gripper_connect.d.ts +12 -1
- package/dist/gen/component/inputcontroller/v1/input_controller_connect.d.ts +12 -1
- package/dist/gen/component/motor/v1/motor_connect.d.ts +12 -1
- package/dist/gen/component/movementsensor/v1/movementsensor_connect.d.ts +12 -1
- package/dist/gen/component/posetracker/v1/pose_tracker_connect.d.ts +12 -1
- package/dist/gen/component/powersensor/v1/powersensor_connect.d.ts +12 -1
- package/dist/gen/component/sensor/v1/sensor_connect.d.ts +12 -1
- package/dist/gen/component/servo/v1/servo_connect.d.ts +12 -1
- package/dist/gen/component/switch/v1/switch_connect.d.ts +12 -1
- package/dist/gen/google/api/client_pb.d.ts +294 -53
- package/dist/gen/google/api/field_behavior_pb.d.ts +1 -1
- package/dist/gen/google/api/field_info_pb.d.ts +1 -1
- package/dist/gen/google/api/http_pb.d.ts +1 -1
- package/dist/gen/google/api/httpbody_pb.d.ts +1 -1
- package/dist/gen/google/api/launch_stage_pb.d.ts +1 -1
- package/dist/gen/google/api/resource_pb.d.ts +1 -1
- package/dist/gen/google/api/routing_pb.d.ts +8 -4
- package/dist/gen/google/api/visibility_pb.d.ts +1 -1
- package/dist/gen/robot/v1/robot_pb.d.ts +0 -8
- package/dist/gen/service/datamanager/v1/data_manager_connect.d.ts +12 -1
- package/dist/gen/service/discovery/v1/discovery_connect.d.ts +12 -1
- package/dist/gen/service/generic/v1/generic_connect.d.ts +12 -1
- package/dist/gen/service/mlmodel/v1/mlmodel_connect.d.ts +12 -0
- package/dist/gen/service/motion/v1/motion_connect.d.ts +12 -1
- package/dist/gen/service/navigation/v1/navigation_connect.d.ts +12 -1
- package/dist/gen/service/sensors/v1/sensors_connect.d.ts +12 -1
- package/dist/gen/service/shell/v1/shell_connect.d.ts +12 -1
- package/dist/gen/service/slam/v1/slam_connect.d.ts +12 -1
- package/dist/gen/service/video/v1/video_connect.d.ts +12 -1
- package/dist/gen/service/vision/v1/vision_connect.d.ts +12 -1
- package/dist/gen/service/worldstatestore/v1/world_state_store_connect.d.ts +12 -1
- package/dist/main.d.ts +1 -1
- package/dist/main.es.js +6222 -5501
- package/dist/main.umd.js +7 -7
- package/dist/robot/client.d.ts +169 -16
- package/dist/rpc/dial.d.ts +24 -0
- package/dist/services/data-manager/client.d.ts +1 -0
- package/dist/services/discovery/client.d.ts +1 -0
- package/dist/services/generic/client.d.ts +1 -0
- package/dist/services/motion/client.d.ts +1 -0
- package/dist/services/navigation/client.d.ts +1 -0
- package/dist/services/slam/client.d.ts +1 -0
- package/dist/services/video/client.d.ts +1 -0
- package/dist/services/vision/client.d.ts +1 -0
- package/dist/services/world-state-store/client.d.ts +1 -0
- package/dist/types.d.ts +2 -0
- package/dist/utils.d.ts +4 -1
- package/package.json +2 -1
package/dist/robot/client.d.ts
CHANGED
|
@@ -34,6 +34,30 @@ export interface DialWebRTCConf {
|
|
|
34
34
|
signalingAddress: string;
|
|
35
35
|
iceServers?: ICEServer[];
|
|
36
36
|
priority?: number;
|
|
37
|
+
/**
|
|
38
|
+
* When true, sets ICE transport policy to relay-only so only TURN candidates
|
|
39
|
+
* are used. Useful for testing relay connectivity through a TURN server.
|
|
40
|
+
*/
|
|
41
|
+
forceRelay?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* When true, strips TURN servers from the ICE configuration so only host and
|
|
44
|
+
* server-reflexive candidates are used. Useful for testing direct
|
|
45
|
+
* connectivity without relay fallback.
|
|
46
|
+
*/
|
|
47
|
+
forceP2P?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* When set, filters the signaling server's TURN list to only the server whose
|
|
50
|
+
* parsed URI matches (compared by scheme, host, port, and transport —
|
|
51
|
+
* defaulting transport to UDP if unspecified). Example:
|
|
52
|
+
* `"turn:turn.viam.com:443"`
|
|
53
|
+
*/
|
|
54
|
+
turnUri?: string;
|
|
55
|
+
/** Overrides the scheme of the matched TURN URI (`"turn"` or `"turns"`). */
|
|
56
|
+
turnScheme?: 'turn' | 'turns';
|
|
57
|
+
/** Overrides the transport of the matched TURN URI (`"tcp"` or `"udp"`). */
|
|
58
|
+
turnTransport?: 'tcp' | 'udp';
|
|
59
|
+
/** Overrides the port of the matched TURN URI. */
|
|
60
|
+
turnPort?: number;
|
|
37
61
|
/**
|
|
38
62
|
* Set timeout in milliseconds for dialing. Default is defined by
|
|
39
63
|
* DIAL_TIMEOUT. A value of 0 disables the timeout.
|
|
@@ -90,6 +114,12 @@ interface WebRTCOptions {
|
|
|
90
114
|
reconnectMaxAttempts?: number;
|
|
91
115
|
reconnectMaxWait?: number;
|
|
92
116
|
shouldRetryOnError?: () => boolean;
|
|
117
|
+
forceRelay?: boolean;
|
|
118
|
+
forceP2P?: boolean;
|
|
119
|
+
turnUri?: string;
|
|
120
|
+
turnScheme?: 'turn' | 'turns';
|
|
121
|
+
turnTransport?: 'tcp' | 'udp';
|
|
122
|
+
turnPort?: number;
|
|
93
123
|
}
|
|
94
124
|
interface DirectOptions {
|
|
95
125
|
noReconnect?: boolean;
|
|
@@ -362,12 +392,7 @@ export declare class RobotClient extends EventDispatcher implements Robot {
|
|
|
362
392
|
readonly moveThroughJointPositions: {
|
|
363
393
|
readonly name: "MoveThroughJointPositions";
|
|
364
394
|
readonly I: typeof import("../gen/component/arm/v1/arm_pb").MoveThroughJointPositionsRequest;
|
|
365
|
-
readonly O: typeof import("../gen/component/arm/v1/arm_pb").MoveThroughJointPositionsResponse;
|
|
366
|
-
* Set timeout in milliseconds for dialing. Default is defined by
|
|
367
|
-
* DIAL_TIMEOUT. A value of 0 disables the timeout.
|
|
368
|
-
*
|
|
369
|
-
* @deprecated Use `dialTimeoutMs` instead.
|
|
370
|
-
*/
|
|
395
|
+
readonly O: typeof import("../gen/component/arm/v1/arm_pb").MoveThroughJointPositionsResponse;
|
|
371
396
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
372
397
|
};
|
|
373
398
|
readonly stop: {
|
|
@@ -388,6 +413,12 @@ export declare class RobotClient extends EventDispatcher implements Robot {
|
|
|
388
413
|
readonly O: typeof import("../gen/common/v1/common_pb").DoCommandResponse;
|
|
389
414
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
390
415
|
};
|
|
416
|
+
readonly getStatus: {
|
|
417
|
+
readonly name: "GetStatus";
|
|
418
|
+
readonly I: typeof import("../gen/common/v1/common_pb").GetStatusRequest;
|
|
419
|
+
readonly O: typeof import("../gen/common/v1/common_pb").GetStatusResponse;
|
|
420
|
+
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
421
|
+
};
|
|
391
422
|
readonly getKinematics: {
|
|
392
423
|
readonly name: "GetKinematics";
|
|
393
424
|
readonly I: typeof import("../gen/common/v1/common_pb").GetKinematicsRequest;
|
|
@@ -395,6 +426,12 @@ export declare class RobotClient extends EventDispatcher implements Robot {
|
|
|
395
426
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
396
427
|
};
|
|
397
428
|
readonly getGeometries: {
|
|
429
|
+
/**
|
|
430
|
+
* Set timeout in milliseconds for dialing. Default is defined by
|
|
431
|
+
* DIAL_TIMEOUT. A value of 0 disables the timeout.
|
|
432
|
+
*
|
|
433
|
+
* @deprecated Use `dialTimeoutMs` instead.
|
|
434
|
+
*/
|
|
398
435
|
readonly name: "GetGeometries";
|
|
399
436
|
readonly I: typeof import("../gen/common/v1/common_pb").GetGeometriesRequest;
|
|
400
437
|
readonly O: typeof import("../gen/common/v1/common_pb").GetGeometriesResponse;
|
|
@@ -453,6 +490,12 @@ export declare class RobotClient extends EventDispatcher implements Robot {
|
|
|
453
490
|
readonly O: typeof import("../gen/common/v1/common_pb").DoCommandResponse;
|
|
454
491
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
455
492
|
};
|
|
493
|
+
readonly getStatus: {
|
|
494
|
+
readonly name: "GetStatus";
|
|
495
|
+
readonly I: typeof import("../gen/common/v1/common_pb").GetStatusRequest;
|
|
496
|
+
readonly O: typeof import("../gen/common/v1/common_pb").GetStatusResponse;
|
|
497
|
+
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
498
|
+
};
|
|
456
499
|
readonly getGeometries: {
|
|
457
500
|
readonly name: "GetGeometries";
|
|
458
501
|
readonly I: typeof import("../gen/common/v1/common_pb").GetGeometriesRequest;
|
|
@@ -512,6 +555,12 @@ export declare class RobotClient extends EventDispatcher implements Robot {
|
|
|
512
555
|
readonly O: typeof import("../gen/common/v1/common_pb").DoCommandResponse;
|
|
513
556
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
514
557
|
};
|
|
558
|
+
readonly getStatus: {
|
|
559
|
+
readonly name: "GetStatus";
|
|
560
|
+
readonly I: typeof import("../gen/common/v1/common_pb").GetStatusRequest;
|
|
561
|
+
readonly O: typeof import("../gen/common/v1/common_pb").GetStatusResponse;
|
|
562
|
+
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
563
|
+
};
|
|
515
564
|
readonly readAnalogReader: {
|
|
516
565
|
readonly name: "ReadAnalogReader";
|
|
517
566
|
readonly I: typeof import("../gen/component/board/v1/board_pb").ReadAnalogReaderRequest;
|
|
@@ -519,6 +568,10 @@ export declare class RobotClient extends EventDispatcher implements Robot {
|
|
|
519
568
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
520
569
|
};
|
|
521
570
|
readonly writeAnalog: {
|
|
571
|
+
/**
|
|
572
|
+
* Set timeout in milliseconds for dialing. Default is defined by
|
|
573
|
+
* DIAL_TIMEOUT. A value of 0 disables the timeout.
|
|
574
|
+
*/
|
|
522
575
|
readonly name: "WriteAnalog";
|
|
523
576
|
readonly I: typeof import("../gen/component/board/v1/board_pb").WriteAnalogRequest;
|
|
524
577
|
readonly O: typeof import("../gen/component/board/v1/board_pb").WriteAnalogResponse;
|
|
@@ -577,10 +630,16 @@ export declare class RobotClient extends EventDispatcher implements Robot {
|
|
|
577
630
|
readonly O: typeof import("../gen/common/v1/common_pb").DoCommandResponse;
|
|
578
631
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
579
632
|
};
|
|
633
|
+
readonly getStatus: {
|
|
634
|
+
readonly name: "GetStatus";
|
|
635
|
+
readonly I: typeof import("../gen/common/v1/common_pb").GetStatusRequest;
|
|
636
|
+
readonly O: typeof import("../gen/common/v1/common_pb").GetStatusResponse;
|
|
637
|
+
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
638
|
+
};
|
|
580
639
|
readonly getGeometries: {
|
|
581
640
|
readonly name: "GetGeometries";
|
|
582
641
|
readonly I: typeof import("../gen/common/v1/common_pb").GetGeometriesRequest;
|
|
583
|
-
readonly O: typeof import("../gen/common/v1/common_pb").GetGeometriesResponse;
|
|
642
|
+
readonly O: typeof import("../gen/common/v1/common_pb").GetGeometriesResponse; /** @default 10. */
|
|
584
643
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
585
644
|
};
|
|
586
645
|
};
|
|
@@ -615,11 +674,11 @@ export declare class RobotClient extends EventDispatcher implements Robot {
|
|
|
615
674
|
readonly stop: {
|
|
616
675
|
readonly name: "Stop";
|
|
617
676
|
readonly I: typeof import("../gen/component/gantry/v1/gantry_pb").StopRequest;
|
|
618
|
-
readonly O: typeof import("../gen/component/gantry/v1/gantry_pb").StopResponse;
|
|
677
|
+
readonly O: typeof import("../gen/component/gantry/v1/gantry_pb").StopResponse; /** Options required to dial a robot via WebRTC. */
|
|
619
678
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
620
679
|
};
|
|
621
680
|
readonly isMoving: {
|
|
622
|
-
readonly name: "IsMoving";
|
|
681
|
+
readonly name: "IsMoving"; /** @default Number.POSITIVE_INFINITY */
|
|
623
682
|
readonly I: typeof import("../gen/component/gantry/v1/gantry_pb").IsMovingRequest;
|
|
624
683
|
readonly O: typeof import("../gen/component/gantry/v1/gantry_pb").IsMovingResponse;
|
|
625
684
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
@@ -630,6 +689,12 @@ export declare class RobotClient extends EventDispatcher implements Robot {
|
|
|
630
689
|
readonly O: typeof import("../gen/common/v1/common_pb").DoCommandResponse;
|
|
631
690
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
632
691
|
};
|
|
692
|
+
readonly getStatus: {
|
|
693
|
+
readonly name: "GetStatus";
|
|
694
|
+
readonly I: typeof import("../gen/common/v1/common_pb").GetStatusRequest;
|
|
695
|
+
readonly O: typeof import("../gen/common/v1/common_pb").GetStatusResponse;
|
|
696
|
+
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
697
|
+
};
|
|
633
698
|
readonly getKinematics: {
|
|
634
699
|
readonly name: "GetKinematics";
|
|
635
700
|
readonly I: typeof import("../gen/common/v1/common_pb").GetKinematicsRequest;
|
|
@@ -653,6 +718,12 @@ export declare class RobotClient extends EventDispatcher implements Robot {
|
|
|
653
718
|
readonly O: typeof import("../gen/common/v1/common_pb").DoCommandResponse;
|
|
654
719
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
655
720
|
};
|
|
721
|
+
readonly getStatus: {
|
|
722
|
+
readonly name: "GetStatus";
|
|
723
|
+
readonly I: typeof import("../gen/common/v1/common_pb").GetStatusRequest;
|
|
724
|
+
readonly O: typeof import("../gen/common/v1/common_pb").GetStatusResponse;
|
|
725
|
+
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
726
|
+
};
|
|
656
727
|
readonly getGeometries: {
|
|
657
728
|
readonly name: "GetGeometries";
|
|
658
729
|
readonly I: typeof import("../gen/common/v1/common_pb").GetGeometriesRequest;
|
|
@@ -700,6 +771,12 @@ export declare class RobotClient extends EventDispatcher implements Robot {
|
|
|
700
771
|
readonly O: typeof import("../gen/common/v1/common_pb").DoCommandResponse;
|
|
701
772
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
702
773
|
};
|
|
774
|
+
readonly getStatus: {
|
|
775
|
+
readonly name: "GetStatus";
|
|
776
|
+
readonly I: typeof import("../gen/common/v1/common_pb").GetStatusRequest;
|
|
777
|
+
readonly O: typeof import("../gen/common/v1/common_pb").GetStatusResponse;
|
|
778
|
+
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
779
|
+
};
|
|
703
780
|
readonly getGeometries: {
|
|
704
781
|
readonly name: "GetGeometries";
|
|
705
782
|
readonly I: typeof import("../gen/common/v1/common_pb").GetGeometriesRequest;
|
|
@@ -729,6 +806,12 @@ export declare class RobotClient extends EventDispatcher implements Robot {
|
|
|
729
806
|
readonly O: typeof import("../gen/service/mlmodel/v1/mlmodel_pb").MetadataResponse;
|
|
730
807
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
731
808
|
};
|
|
809
|
+
readonly getStatus: {
|
|
810
|
+
readonly name: "GetStatus";
|
|
811
|
+
readonly I: typeof import("../gen/common/v1/common_pb").GetStatusRequest;
|
|
812
|
+
readonly O: typeof import("../gen/common/v1/common_pb").GetStatusResponse;
|
|
813
|
+
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
814
|
+
};
|
|
732
815
|
};
|
|
733
816
|
}>;
|
|
734
817
|
get movementSensorService(): Client<{
|
|
@@ -765,7 +848,7 @@ export declare class RobotClient extends EventDispatcher implements Robot {
|
|
|
765
848
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
766
849
|
};
|
|
767
850
|
readonly getProperties: {
|
|
768
|
-
readonly name: "GetProperties";
|
|
851
|
+
readonly name: "GetProperties"; /** @default Number.POSITIVE_INFINITY */
|
|
769
852
|
readonly I: typeof import("../gen/component/movementsensor/v1/movementsensor_pb").GetPropertiesRequest;
|
|
770
853
|
readonly O: typeof import("../gen/component/movementsensor/v1/movementsensor_pb").GetPropertiesResponse;
|
|
771
854
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
@@ -788,6 +871,12 @@ export declare class RobotClient extends EventDispatcher implements Robot {
|
|
|
788
871
|
readonly O: typeof import("../gen/common/v1/common_pb").DoCommandResponse;
|
|
789
872
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
790
873
|
};
|
|
874
|
+
readonly getStatus: {
|
|
875
|
+
readonly name: "GetStatus";
|
|
876
|
+
readonly I: typeof import("../gen/common/v1/common_pb").GetStatusRequest;
|
|
877
|
+
readonly O: typeof import("../gen/common/v1/common_pb").GetStatusResponse;
|
|
878
|
+
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
879
|
+
};
|
|
791
880
|
readonly getGeometries: {
|
|
792
881
|
readonly name: "GetGeometries";
|
|
793
882
|
readonly I: typeof import("../gen/common/v1/common_pb").GetGeometriesRequest;
|
|
@@ -835,6 +924,12 @@ export declare class RobotClient extends EventDispatcher implements Robot {
|
|
|
835
924
|
readonly O: typeof import("../gen/common/v1/common_pb").DoCommandResponse;
|
|
836
925
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
837
926
|
};
|
|
927
|
+
readonly getStatus: {
|
|
928
|
+
readonly name: "GetStatus";
|
|
929
|
+
readonly I: typeof import("../gen/common/v1/common_pb").GetStatusRequest;
|
|
930
|
+
readonly O: typeof import("../gen/common/v1/common_pb").GetStatusResponse;
|
|
931
|
+
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
932
|
+
};
|
|
838
933
|
};
|
|
839
934
|
}>;
|
|
840
935
|
get inputControllerService(): Client<{
|
|
@@ -870,6 +965,12 @@ export declare class RobotClient extends EventDispatcher implements Robot {
|
|
|
870
965
|
readonly O: typeof import("../gen/common/v1/common_pb").DoCommandResponse;
|
|
871
966
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
872
967
|
};
|
|
968
|
+
readonly getStatus: {
|
|
969
|
+
readonly name: "GetStatus";
|
|
970
|
+
readonly I: typeof import("../gen/common/v1/common_pb").GetStatusRequest;
|
|
971
|
+
readonly O: typeof import("../gen/common/v1/common_pb").GetStatusResponse;
|
|
972
|
+
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
973
|
+
};
|
|
873
974
|
readonly getGeometries: {
|
|
874
975
|
readonly name: "GetGeometries";
|
|
875
976
|
readonly I: typeof import("../gen/common/v1/common_pb").GetGeometriesRequest;
|
|
@@ -900,14 +1001,14 @@ export declare class RobotClient extends EventDispatcher implements Robot {
|
|
|
900
1001
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
901
1002
|
};
|
|
902
1003
|
readonly setRPM: {
|
|
903
|
-
readonly name: "SetRPM";
|
|
1004
|
+
readonly name: "SetRPM";
|
|
904
1005
|
readonly I: typeof import("../gen/component/motor/v1/motor_pb").SetRPMRequest;
|
|
905
|
-
readonly O: typeof import("../gen/component/motor/v1/motor_pb").SetRPMResponse;
|
|
906
|
-
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary; /**
|
|
1006
|
+
readonly O: typeof import("../gen/component/motor/v1/motor_pb").SetRPMResponse; /**
|
|
907
1007
|
* Called when a non-retryable error is encountered during reconnection.
|
|
908
1008
|
* Return true to treat the error as retryable. Does not override
|
|
909
1009
|
* reconnectMaxAttempts — retries are still bounded by that limit.
|
|
910
1010
|
*/
|
|
1011
|
+
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
911
1012
|
};
|
|
912
1013
|
readonly resetZeroPosition: {
|
|
913
1014
|
readonly name: "ResetZeroPosition";
|
|
@@ -951,6 +1052,12 @@ export declare class RobotClient extends EventDispatcher implements Robot {
|
|
|
951
1052
|
readonly O: typeof import("../gen/common/v1/common_pb").DoCommandResponse;
|
|
952
1053
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
953
1054
|
};
|
|
1055
|
+
readonly getStatus: {
|
|
1056
|
+
readonly name: "GetStatus";
|
|
1057
|
+
readonly I: typeof import("../gen/common/v1/common_pb").GetStatusRequest;
|
|
1058
|
+
readonly O: typeof import("../gen/common/v1/common_pb").GetStatusResponse;
|
|
1059
|
+
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1060
|
+
};
|
|
954
1061
|
readonly getGeometries: {
|
|
955
1062
|
readonly name: "GetGeometries";
|
|
956
1063
|
readonly I: typeof import("../gen/common/v1/common_pb").GetGeometriesRequest;
|
|
@@ -1002,11 +1109,12 @@ export declare class RobotClient extends EventDispatcher implements Robot {
|
|
|
1002
1109
|
readonly name: "GetObstacles";
|
|
1003
1110
|
readonly I: typeof import("../gen/service/navigation/v1/navigation_pb").GetObstaclesRequest;
|
|
1004
1111
|
readonly O: typeof import("../gen/service/navigation/v1/navigation_pb").GetObstaclesResponse;
|
|
1005
|
-
|
|
1112
|
+
/**
|
|
1006
1113
|
* Called when a non-retryable error is encountered during reconnection.
|
|
1007
1114
|
* Return true to treat the error as retryable. Does not override
|
|
1008
1115
|
* reconnectMaxAttempts — retries are still bounded by that limit.
|
|
1009
1116
|
*/
|
|
1117
|
+
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1010
1118
|
};
|
|
1011
1119
|
readonly getPaths: {
|
|
1012
1120
|
readonly name: "GetPaths";
|
|
@@ -1023,7 +1131,13 @@ export declare class RobotClient extends EventDispatcher implements Robot {
|
|
|
1023
1131
|
readonly doCommand: {
|
|
1024
1132
|
readonly name: "DoCommand";
|
|
1025
1133
|
readonly I: typeof import("../gen/common/v1/common_pb").DoCommandRequest;
|
|
1026
|
-
readonly O: typeof import("../gen/common/v1/common_pb").DoCommandResponse;
|
|
1134
|
+
readonly O: typeof import("../gen/common/v1/common_pb").DoCommandResponse; /** Overrides the scheme of the matched TURN URI (`"turn"` or `"turns"`). */
|
|
1135
|
+
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1136
|
+
};
|
|
1137
|
+
readonly getStatus: {
|
|
1138
|
+
readonly name: "GetStatus";
|
|
1139
|
+
readonly I: typeof import("../gen/common/v1/common_pb").GetStatusRequest;
|
|
1140
|
+
readonly O: typeof import("../gen/common/v1/common_pb").GetStatusResponse;
|
|
1027
1141
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1028
1142
|
};
|
|
1029
1143
|
};
|
|
@@ -1043,6 +1157,12 @@ export declare class RobotClient extends EventDispatcher implements Robot {
|
|
|
1043
1157
|
readonly O: typeof import("../gen/common/v1/common_pb").DoCommandResponse;
|
|
1044
1158
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1045
1159
|
};
|
|
1160
|
+
readonly getStatus: {
|
|
1161
|
+
readonly name: "GetStatus";
|
|
1162
|
+
readonly I: typeof import("../gen/common/v1/common_pb").GetStatusRequest;
|
|
1163
|
+
readonly O: typeof import("../gen/common/v1/common_pb").GetStatusResponse;
|
|
1164
|
+
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1165
|
+
};
|
|
1046
1166
|
};
|
|
1047
1167
|
}>;
|
|
1048
1168
|
get motionService(): Client<{
|
|
@@ -1096,6 +1216,12 @@ export declare class RobotClient extends EventDispatcher implements Robot {
|
|
|
1096
1216
|
readonly O: typeof import("../gen/common/v1/common_pb").DoCommandResponse;
|
|
1097
1217
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1098
1218
|
};
|
|
1219
|
+
readonly getStatus: {
|
|
1220
|
+
readonly name: "GetStatus";
|
|
1221
|
+
readonly I: typeof import("../gen/common/v1/common_pb").GetStatusRequest;
|
|
1222
|
+
readonly O: typeof import("../gen/common/v1/common_pb").GetStatusResponse;
|
|
1223
|
+
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1224
|
+
};
|
|
1099
1225
|
};
|
|
1100
1226
|
}>;
|
|
1101
1227
|
get visionService(): Client<{
|
|
@@ -1128,7 +1254,10 @@ export declare class RobotClient extends EventDispatcher implements Robot {
|
|
|
1128
1254
|
readonly getObjectPointClouds: {
|
|
1129
1255
|
readonly name: "GetObjectPointClouds";
|
|
1130
1256
|
readonly I: typeof import("../gen/service/vision/v1/vision_pb").GetObjectPointCloudsRequest;
|
|
1131
|
-
readonly O: typeof import("../gen/service/vision/v1/vision_pb").GetObjectPointCloudsResponse;
|
|
1257
|
+
readonly O: typeof import("../gen/service/vision/v1/vision_pb").GetObjectPointCloudsResponse; /**
|
|
1258
|
+
* When true, sets ICE transport policy to relay-only so only TURN candidates
|
|
1259
|
+
* are used. Useful for testing relay connectivity through a TURN server.
|
|
1260
|
+
*/
|
|
1132
1261
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1133
1262
|
};
|
|
1134
1263
|
readonly getProperties: {
|
|
@@ -1149,6 +1278,12 @@ export declare class RobotClient extends EventDispatcher implements Robot {
|
|
|
1149
1278
|
readonly O: typeof import("../gen/common/v1/common_pb").DoCommandResponse;
|
|
1150
1279
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1151
1280
|
};
|
|
1281
|
+
readonly getStatus: {
|
|
1282
|
+
readonly name: "GetStatus";
|
|
1283
|
+
readonly I: typeof import("../gen/common/v1/common_pb").GetStatusRequest;
|
|
1284
|
+
readonly O: typeof import("../gen/common/v1/common_pb").GetStatusResponse;
|
|
1285
|
+
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1286
|
+
};
|
|
1152
1287
|
};
|
|
1153
1288
|
}>;
|
|
1154
1289
|
get servoService(): Client<{
|
|
@@ -1184,6 +1319,12 @@ export declare class RobotClient extends EventDispatcher implements Robot {
|
|
|
1184
1319
|
readonly O: typeof import("../gen/common/v1/common_pb").DoCommandResponse;
|
|
1185
1320
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1186
1321
|
};
|
|
1322
|
+
readonly getStatus: {
|
|
1323
|
+
readonly name: "GetStatus";
|
|
1324
|
+
readonly I: typeof import("../gen/common/v1/common_pb").GetStatusRequest;
|
|
1325
|
+
readonly O: typeof import("../gen/common/v1/common_pb").GetStatusResponse;
|
|
1326
|
+
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1327
|
+
};
|
|
1187
1328
|
readonly getGeometries: {
|
|
1188
1329
|
readonly name: "GetGeometries";
|
|
1189
1330
|
readonly I: typeof import("../gen/common/v1/common_pb").GetGeometriesRequest;
|
|
@@ -1225,6 +1366,12 @@ export declare class RobotClient extends EventDispatcher implements Robot {
|
|
|
1225
1366
|
readonly O: typeof import("../gen/common/v1/common_pb").DoCommandResponse;
|
|
1226
1367
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1227
1368
|
};
|
|
1369
|
+
readonly getStatus: {
|
|
1370
|
+
readonly name: "GetStatus";
|
|
1371
|
+
readonly I: typeof import("../gen/common/v1/common_pb").GetStatusRequest;
|
|
1372
|
+
readonly O: typeof import("../gen/common/v1/common_pb").GetStatusResponse;
|
|
1373
|
+
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1374
|
+
};
|
|
1228
1375
|
};
|
|
1229
1376
|
}>;
|
|
1230
1377
|
get worldStateStoreService(): Client<{
|
|
@@ -1254,6 +1401,12 @@ export declare class RobotClient extends EventDispatcher implements Robot {
|
|
|
1254
1401
|
readonly O: typeof import("../gen/common/v1/common_pb").DoCommandResponse;
|
|
1255
1402
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1256
1403
|
};
|
|
1404
|
+
readonly getStatus: {
|
|
1405
|
+
readonly name: "GetStatus";
|
|
1406
|
+
readonly I: typeof import("../gen/common/v1/common_pb").GetStatusRequest;
|
|
1407
|
+
readonly O: typeof import("../gen/common/v1/common_pb").GetStatusResponse;
|
|
1408
|
+
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1409
|
+
};
|
|
1257
1410
|
};
|
|
1258
1411
|
}>;
|
|
1259
1412
|
createServiceClient<T extends ServiceType>(svcType: T): Client<T>;
|
package/dist/rpc/dial.d.ts
CHANGED
|
@@ -56,6 +56,30 @@ export interface DialWebRTCOptions {
|
|
|
56
56
|
*/
|
|
57
57
|
signalingAccessToken?: string;
|
|
58
58
|
additionalSdpFields?: Record<string, string | number>;
|
|
59
|
+
/**
|
|
60
|
+
* When true, sets ICE transport policy to relay-only so only TURN candidates
|
|
61
|
+
* are used. Useful for testing relay connectivity through a TURN server.
|
|
62
|
+
*/
|
|
63
|
+
forceRelay?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* When true, strips TURN servers from the ICE configuration so only host and
|
|
66
|
+
* server-reflexive candidates are used. Useful for testing direct
|
|
67
|
+
* connectivity without relay fallback.
|
|
68
|
+
*/
|
|
69
|
+
forceP2P?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* When set, filters the signaling server's TURN list to only the server whose
|
|
72
|
+
* parsed URI matches (compared by scheme, host, port, and transport —
|
|
73
|
+
* defaulting transport to UDP if unspecified). Example:
|
|
74
|
+
* `"turn:turn.viam.com:443"`
|
|
75
|
+
*/
|
|
76
|
+
turnUri?: string;
|
|
77
|
+
/** Overrides the scheme of the matched TURN URI (`"turn"` or `"turns"`). */
|
|
78
|
+
turnScheme?: 'turn' | 'turns';
|
|
79
|
+
/** Overrides the transport of the matched TURN URI (`"tcp"` or `"udp"`). */
|
|
80
|
+
turnTransport?: 'tcp' | 'udp';
|
|
81
|
+
/** Overrides the port of the matched TURN URI. */
|
|
82
|
+
turnPort?: number;
|
|
59
83
|
}
|
|
60
84
|
export type TransportFactory = (init: TransportInitOptions) => Transport;
|
|
61
85
|
interface TransportInitOptions {
|
|
@@ -49,6 +49,7 @@ export declare class DataManagerClient implements DataManager {
|
|
|
49
49
|
* @param command - The command to do.
|
|
50
50
|
* @param callOptions - Call options for the command.
|
|
51
51
|
*/
|
|
52
|
+
getStatus(callOptions?: CallOptions): Promise<JsonValue>;
|
|
52
53
|
doCommand(command: Struct | Record<string, JsonValue>, callOptions?: CallOptions): Promise<JsonValue>;
|
|
53
54
|
/**
|
|
54
55
|
* Uploads binary data to specified datasets.
|
|
@@ -15,5 +15,6 @@ export declare class DiscoveryClient implements Discovery {
|
|
|
15
15
|
callOptions: CallOptions;
|
|
16
16
|
constructor(client: RobotClient, name: string, options?: Options);
|
|
17
17
|
discoverResources(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/app/v1/robot_pb").ComponentConfig[]>;
|
|
18
|
+
getStatus(callOptions?: CallOptions): Promise<JsonValue>;
|
|
18
19
|
doCommand(command: Struct | Record<string, JsonValue>, callOptions?: CallOptions): Promise<JsonValue>;
|
|
19
20
|
}
|
|
@@ -14,5 +14,6 @@ export declare class GenericClient implements Generic {
|
|
|
14
14
|
private readonly options;
|
|
15
15
|
callOptions: CallOptions;
|
|
16
16
|
constructor(client: RobotClient, name: string, options?: Options);
|
|
17
|
+
getStatus(callOptions?: CallOptions): Promise<JsonValue>;
|
|
17
18
|
doCommand(command: Struct | Record<string, JsonValue>, callOptions?: CallOptions): Promise<JsonValue>;
|
|
18
19
|
}
|
|
@@ -23,5 +23,6 @@ export declare class MotionClient implements Motion {
|
|
|
23
23
|
listPlanStatuses(onlyActivePlans?: boolean, extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/service/motion/v1/motion_pb").ListPlanStatusesResponse>;
|
|
24
24
|
/** @deprecated Use `RobotClient.getPose` instead. */
|
|
25
25
|
getPose(componentName: string, destinationFrame: string, supplementalTransforms: Transform[], extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/common/v1/common_pb").PoseInFrame>;
|
|
26
|
+
getStatus(callOptions?: CallOptions): Promise<JsonValue>;
|
|
26
27
|
doCommand(command: Struct | Record<string, JsonValue>, callOptions?: CallOptions): Promise<JsonValue>;
|
|
27
28
|
}
|
|
@@ -24,5 +24,6 @@ export declare class NavigationClient implements Navigation {
|
|
|
24
24
|
getObstacles(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/common/v1/common_pb").GeoGeometry[]>;
|
|
25
25
|
getPaths(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/service/navigation/v1/navigation_pb").Path[]>;
|
|
26
26
|
getProperties(callOptions?: CallOptions): Promise<import("../../gen/service/navigation/v1/navigation_pb").GetPropertiesResponse>;
|
|
27
|
+
getStatus(callOptions?: CallOptions): Promise<JsonValue>;
|
|
27
28
|
doCommand(command: Struct | Record<string, JsonValue>, callOptions?: CallOptions): Promise<JsonValue>;
|
|
28
29
|
}
|
|
@@ -18,5 +18,6 @@ export declare class SlamClient implements Slam {
|
|
|
18
18
|
getPointCloudMap(returnEditedMap?: boolean, callOptions?: CallOptions): Promise<Uint8Array>;
|
|
19
19
|
getInternalState(callOptions?: CallOptions): Promise<Uint8Array>;
|
|
20
20
|
getProperties(callOptions?: CallOptions): Promise<import("../../gen/service/slam/v1/slam_pb").GetPropertiesResponse>;
|
|
21
|
+
getStatus(callOptions?: CallOptions): Promise<JsonValue>;
|
|
21
22
|
doCommand(command: Struct | Record<string, JsonValue>, callOptions?: CallOptions): Promise<JsonValue>;
|
|
22
23
|
}
|
|
@@ -16,5 +16,6 @@ export declare class VideoClient implements Video {
|
|
|
16
16
|
callOptions: CallOptions;
|
|
17
17
|
constructor(client: RobotClient, name: string, options?: Options);
|
|
18
18
|
getVideo(startTimestamp?: Date, endTimestamp?: Date, videoCodec?: string, videoContainer?: string, extra?: {}, callOptions?: CallOptions): AsyncIterable<VideoChunk>;
|
|
19
|
+
getStatus(callOptions?: CallOptions): Promise<JsonValue>;
|
|
19
20
|
doCommand(command: Struct | Record<string, JsonValue>, callOptions?: CallOptions): Promise<JsonValue>;
|
|
20
21
|
}
|
|
@@ -33,5 +33,6 @@ export declare class VisionClient implements Vision {
|
|
|
33
33
|
objectPointClouds: import("../../gen/common/v1/common_pb").PointCloudObject[];
|
|
34
34
|
extra: Struct | undefined;
|
|
35
35
|
}>;
|
|
36
|
+
getStatus(callOptions?: CallOptions): Promise<JsonValue>;
|
|
36
37
|
doCommand(command: Struct | Record<string, JsonValue>, callOptions?: CallOptions): Promise<JsonValue>;
|
|
37
38
|
}
|
|
@@ -18,5 +18,6 @@ export declare class WorldStateStoreClient implements WorldStateStore {
|
|
|
18
18
|
listUUIDs(extra?: {}, callOptions?: CallOptions): Promise<string[]>;
|
|
19
19
|
getTransform(uuid: string, extra?: {}, callOptions?: CallOptions): Promise<import("./types").TransformWithUUID>;
|
|
20
20
|
streamTransformChanges(extra?: {}, callOptions?: CallOptions): AsyncGenerator<TransformChangeEvent, void>;
|
|
21
|
+
getStatus(callOptions?: CallOptions): Promise<JsonValue>;
|
|
21
22
|
doCommand(command: Struct | Record<string, JsonValue>, callOptions?: CallOptions): Promise<JsonValue>;
|
|
22
23
|
}
|
package/dist/types.d.ts
CHANGED
|
@@ -30,6 +30,8 @@ export interface Resource {
|
|
|
30
30
|
* a plain object, which will be converted automatically.
|
|
31
31
|
*/
|
|
32
32
|
doCommand(command: Struct | Record<string, JsonValue>): Promise<JsonValue>;
|
|
33
|
+
/** Get the status of the resource. */
|
|
34
|
+
getStatus(): Promise<JsonValue>;
|
|
33
35
|
}
|
|
34
36
|
import * as commonApi from './gen/common/v1/common_pb';
|
|
35
37
|
export type Capsule = PlainMessage<commonApi.Capsule>;
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Struct, type JsonValue, type PartialMessage } from '@bufbuild/protobuf';
|
|
2
2
|
import type { CallOptions } from '@connectrpc/connect';
|
|
3
|
-
import { DoCommandRequest, DoCommandResponse, GetKinematicsRequest, GetKinematicsResponse, GetGeometriesRequest, GetGeometriesResponse, Geometry, Mesh } from './gen/common/v1/common_pb';
|
|
3
|
+
import { DoCommandRequest, DoCommandResponse, GetKinematicsRequest, GetKinematicsResponse, GetGeometriesRequest, GetGeometriesResponse, GetStatusRequest, GetStatusResponse, Geometry, Mesh } from './gen/common/v1/common_pb';
|
|
4
4
|
import type { Options, Vector3 } from './types';
|
|
5
5
|
import type { Frame } from './gen/app/v1/robot_pb';
|
|
6
6
|
export declare const clientHeaders: Headers;
|
|
@@ -59,4 +59,7 @@ export declare const getKinematicsFromClient: (getKinematicsMethod: getKinematic
|
|
|
59
59
|
type getGeometries = (request: PartialMessage<GetGeometriesRequest>, options?: CallOptions) => Promise<GetGeometriesResponse>;
|
|
60
60
|
/** Get geometries information using a resource client */
|
|
61
61
|
export declare const getGeometriesFromClient: (getGeometriesMethod: getGeometries, name: string, extra?: Struct, callOptions?: CallOptions) => Promise<Geometry[]>;
|
|
62
|
+
type getStatus = (request: PartialMessage<GetStatusRequest>, options?: CallOptions) => Promise<GetStatusResponse>;
|
|
63
|
+
/** Get the status of a resource using a resource client */
|
|
64
|
+
export declare const getStatusFromClient: (getStatusMethod: getStatus, name: string, options?: Options, callOptions?: CallOptions) => Promise<JsonValue>;
|
|
62
65
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@viamrobotics/sdk",
|
|
3
|
-
"version": "0.68.
|
|
3
|
+
"version": "0.68.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/main.umd.js",
|
|
6
6
|
"module": "./dist/main.es.js",
|
|
@@ -77,6 +77,7 @@
|
|
|
77
77
|
"eslint-config-prettier": "^9.1.0",
|
|
78
78
|
"eslint-plugin-tsdoc": "^0.2.17",
|
|
79
79
|
"eslint-plugin-vitest": "^0.3.20",
|
|
80
|
+
"flatted": "^3.4.2",
|
|
80
81
|
"grpc-web": "^1.4.2",
|
|
81
82
|
"happy-dom": "^20.0.8",
|
|
82
83
|
"npm-check-updates": "^17.1.11",
|