@viamrobotics/sdk 0.25.0 → 0.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/app-client.d.ts +93 -90
- package/dist/app/billing-client.d.ts +7 -8
- package/dist/app/billing-client.spec.d.ts +1 -0
- package/dist/app/data-client.d.ts +42 -50
- package/dist/app/data-client.spec.d.ts +1 -0
- package/dist/app/ml-training-client.d.ts +9 -14
- package/dist/app/ml-training-client.spec.d.ts +1 -0
- package/dist/app/provisioning-client.d.ts +7 -7
- package/dist/app/provisioning-client.spec.d.ts +1 -0
- package/dist/app/viam-client.d.ts +13 -15
- package/dist/app/viam-transport.d.ts +4 -12
- package/dist/components/arm/arm.d.ts +10 -8
- package/dist/components/arm/client.d.ts +6 -6
- package/dist/components/arm.d.ts +1 -1
- package/dist/components/base/base.d.ts +11 -10
- package/dist/components/base/client.d.ts +4 -5
- package/dist/components/base.d.ts +1 -1
- package/dist/components/board/board.d.ts +17 -21
- package/dist/components/board/client.d.ts +7 -8
- package/dist/components/board/client.spec.d.ts +1 -0
- package/dist/components/board.d.ts +1 -1
- package/dist/components/camera/camera.d.ts +2 -2
- package/dist/components/camera/client.d.ts +4 -5
- package/dist/components/encoder/client.d.ts +6 -7
- package/dist/components/encoder/encoder.d.ts +9 -10
- package/dist/components/encoder.d.ts +1 -2
- package/dist/components/gantry/client.d.ts +3 -3
- package/dist/components/gantry/gantry.d.ts +7 -6
- package/dist/components/generic/client.d.ts +3 -3
- package/dist/components/gripper/client.d.ts +3 -3
- package/dist/components/gripper/gripper.d.ts +5 -4
- package/dist/components/input-controller/client.d.ts +5 -6
- package/dist/components/input-controller/input-controller.d.ts +7 -5
- package/dist/components/inputcontroller.d.ts +1 -1
- package/dist/components/motor/client.d.ts +3 -3
- package/dist/components/motor/motor.d.ts +11 -10
- package/dist/components/movement-sensor/client.d.ts +11 -12
- package/dist/components/movement-sensor/client.spec.d.ts +1 -0
- package/dist/components/movement-sensor/movement-sensor.d.ts +16 -14
- package/dist/components/movementsensor.d.ts +1 -1
- package/dist/components/power-sensor/client.d.ts +4 -4
- package/dist/components/power-sensor/client.spec.d.ts +1 -0
- package/dist/components/power-sensor/power-sensor.d.ts +5 -5
- package/dist/components/sensor/client.d.ts +4 -4
- package/dist/components/sensor/sensor.d.ts +3 -2
- package/dist/components/servo/client.d.ts +5 -5
- package/dist/components/servo/servo.d.ts +5 -4
- package/dist/extra/stream/client.d.ts +0 -1
- package/dist/extra/stream/client.spec.d.ts +1 -0
- package/dist/gen/app/agent/v1/agent_connect.d.ts +28 -0
- package/dist/gen/app/agent/v1/agent_pb.d.ts +244 -153
- package/dist/gen/app/build/v1/build_connect.d.ts +129 -0
- package/dist/gen/app/build/v1/build_pb.d.ts +654 -493
- package/dist/gen/app/cloudslam/v1/cloud_slam_connect.d.ts +71 -0
- package/dist/gen/app/cloudslam/v1/cloud_slam_pb.d.ts +548 -420
- package/dist/gen/app/data/v1/data_connect.d.ts +252 -0
- package/dist/gen/app/data/v1/data_pb.d.ts +1672 -1331
- package/dist/gen/app/dataset/v1/dataset_connect.d.ts +74 -0
- package/dist/gen/app/dataset/v1/dataset_pb.d.ts +272 -213
- package/dist/gen/app/datasync/v1/data_sync_connect.d.ts +52 -0
- package/dist/gen/app/datasync/v1/data_sync_pb.d.ts +457 -376
- package/dist/gen/app/mltraining/v1/ml_training_connect.d.ts +94 -0
- package/dist/gen/app/mltraining/v1/ml_training_pb.d.ts +566 -429
- package/dist/gen/app/packages/v1/packages_connect.d.ts +64 -0
- package/dist/gen/app/packages/v1/packages_pb.d.ts +396 -336
- package/dist/gen/app/v1/app_connect.d.ts +788 -0
- package/dist/gen/app/v1/app_pb.d.ts +5558 -4578
- package/dist/gen/app/v1/billing_connect.d.ts +72 -0
- package/dist/gen/app/v1/billing_pb.d.ts +479 -396
- package/dist/gen/app/v1/end_user_connect.d.ts +73 -0
- package/dist/gen/app/v1/end_user_pb.d.ts +292 -244
- package/dist/gen/app/v1/robot_connect.d.ts +63 -0
- package/dist/gen/app/v1/robot_pb.d.ts +1601 -1289
- package/dist/gen/common/v1/common_pb.d.ts +886 -662
- package/dist/gen/component/arm/v1/arm_connect.d.ts +121 -0
- package/dist/gen/component/arm/v1/arm_pb.d.ts +371 -294
- package/dist/gen/component/audioinput/v1/audioinput_connect.d.ts +78 -0
- package/dist/gen/component/audioinput/v1/audioinput_pb.d.ts +246 -189
- package/dist/gen/component/base/v1/base_connect.d.ts +122 -0
- package/dist/gen/component/base/v1/base_pb.d.ts +393 -307
- package/dist/gen/component/board/v1/board_connect.d.ts +161 -0
- package/dist/gen/component/board/v1/board_pb.d.ts +684 -535
- package/dist/gen/component/camera/v1/camera_connect.d.ts +99 -0
- package/dist/gen/component/camera/v1/camera_pb.d.ts +549 -399
- package/dist/gen/component/encoder/v1/encoder_connect.d.ts +71 -0
- package/dist/gen/component/encoder/v1/encoder_pb.d.ts +201 -144
- package/dist/gen/component/gantry/v1/gantry_connect.d.ts +108 -0
- package/dist/gen/component/gantry/v1/gantry_pb.d.ts +334 -279
- package/dist/gen/component/generic/v1/generic_connect.d.ts +41 -0
- package/dist/gen/component/gripper/v1/gripper_connect.d.ts +86 -0
- package/dist/gen/component/gripper/v1/gripper_pb.d.ts +188 -160
- package/dist/gen/component/inputcontroller/v1/input_controller_connect.d.ts +87 -0
- package/dist/gen/component/inputcontroller/v1/input_controller_pb.d.ts +334 -264
- package/dist/gen/component/motor/v1/motor_connect.d.ts +162 -0
- package/dist/gen/component/motor/v1/motor_pb.d.ts +577 -432
- package/dist/gen/component/movementsensor/v1/movementsensor_connect.d.ts +121 -0
- package/dist/gen/component/movementsensor/v1/movementsensor_pb.d.ts +476 -379
- package/dist/gen/component/posetracker/v1/pose_tracker_connect.d.ts +53 -0
- package/dist/gen/component/posetracker/v1/pose_tracker_pb.d.ts +71 -53
- package/dist/gen/component/powersensor/v1/powersensor_connect.d.ts +75 -0
- package/dist/gen/component/powersensor/v1/powersensor_pb.d.ts +181 -136
- package/dist/gen/component/sensor/v1/sensor_connect.d.ts +52 -0
- package/dist/gen/component/servo/v1/servo_connect.d.ts +87 -0
- package/dist/gen/component/servo/v1/servo_pb.d.ts +228 -179
- package/dist/gen/component/testecho/v1/testecho_connect.d.ts +53 -0
- package/dist/gen/component/testecho/v1/testecho_pb.d.ts +186 -150
- package/dist/gen/google/api/annotations_pb.d.ts +26 -6
- package/dist/gen/google/api/client_pb.d.ts +895 -453
- package/dist/gen/google/api/expr/v1alpha1/checked_pb.d.ts +758 -438
- package/dist/gen/google/api/expr/v1alpha1/eval_pb.d.ts +236 -132
- package/dist/gen/google/api/expr/v1alpha1/explain_pb.d.ts +98 -54
- package/dist/gen/google/api/expr/v1alpha1/syntax_pb.d.ts +943 -554
- package/dist/gen/google/api/expr/v1alpha1/value_pb.d.ts +274 -197
- package/dist/gen/google/api/expr/v1beta1/decl_pb.d.ts +200 -131
- package/dist/gen/google/api/expr/v1beta1/eval_pb.d.ts +262 -151
- package/dist/gen/google/api/expr/v1beta1/expr_pb.d.ts +614 -402
- package/dist/gen/google/api/expr/v1beta1/source_pb.d.ts +115 -56
- package/dist/gen/google/api/expr/v1beta1/value_pb.d.ts +275 -197
- package/dist/gen/google/api/field_behavior_pb.d.ts +139 -19
- package/dist/gen/google/api/field_info_pb.d.ts +169 -56
- package/dist/gen/google/api/http_pb.d.ts +480 -127
- package/dist/gen/google/api/httpbody_pb.d.ts +104 -35
- package/dist/gen/google/api/launch_stage_pb.d.ts +102 -16
- package/dist/gen/google/api/resource_pb.d.ts +334 -88
- package/dist/gen/google/api/visibility_pb.d.ts +157 -52
- package/dist/gen/google/bytestream/bytestream_connect.d.ts +124 -0
- package/dist/gen/google/bytestream/bytestream_pb.d.ts +241 -130
- package/dist/gen/google/geo/type/viewport_pb.d.ts +90 -31
- package/dist/gen/google/longrunning/operations_connect.d.ts +127 -0
- package/dist/gen/google/longrunning/operations_pb.d.ts +351 -202
- package/dist/gen/google/rpc/code_pb.d.ts +252 -25
- package/dist/gen/google/rpc/context/attribute_context_pb.d.ts +664 -352
- package/dist/gen/google/rpc/error_details_pb.d.ts +604 -311
- package/dist/gen/google/rpc/status_pb.d.ts +72 -33
- package/dist/gen/google/type/calendar_period_pb.d.ts +86 -16
- package/dist/gen/google/type/color_pb.d.ts +201 -37
- package/dist/gen/google/type/date_pb.d.ts +72 -25
- package/dist/gen/google/type/datetime_pb.d.ts +176 -83
- package/dist/gen/google/type/dayofweek_pb.d.ts +80 -16
- package/dist/gen/google/type/decimal_pb.d.ts +112 -22
- package/dist/gen/google/type/expr_pb.d.ts +97 -28
- package/dist/gen/google/type/fraction_pb.d.ts +55 -26
- package/dist/gen/google/type/interval_pb.d.ts +65 -31
- package/dist/gen/google/type/latlng_pb.d.ts +58 -26
- package/dist/gen/google/type/localized_text_pb.d.ts +57 -26
- package/dist/gen/google/type/money_pb.d.ts +62 -25
- package/dist/gen/google/type/month_pb.d.ts +115 -21
- package/dist/gen/google/type/phone_number_pb.d.ts +169 -64
- package/dist/gen/google/type/postal_address_pb.d.ts +178 -53
- package/dist/gen/google/type/quaternion_pb.d.ts +117 -28
- package/dist/gen/google/type/timeofday_pb.d.ts +67 -28
- package/dist/gen/proto/rpc/examples/echo/v1/echo_connect.d.ts +44 -0
- package/dist/gen/proto/rpc/examples/echo/v1/echo_pb.d.ts +134 -108
- package/dist/gen/proto/rpc/examples/echoresource/v1/echoresource_connect.d.ts +44 -0
- package/dist/gen/proto/rpc/examples/echoresource/v1/echoresource_pb.d.ts +149 -119
- package/dist/gen/proto/rpc/examples/fileupload/v1/fileupload_connect.d.ts +26 -0
- package/dist/gen/proto/rpc/examples/fileupload/v1/fileupload_pb.d.ts +67 -60
- package/dist/gen/proto/rpc/v1/auth_connect.d.ts +69 -0
- package/dist/gen/proto/rpc/v1/auth_pb.d.ts +145 -101
- package/dist/gen/proto/rpc/webrtc/v1/grpc_pb.d.ts +349 -291
- package/dist/gen/proto/rpc/webrtc/v1/signaling_connect.d.ts +78 -0
- package/dist/gen/proto/rpc/webrtc/v1/signaling_pb.d.ts +647 -529
- package/dist/gen/provisioning/v1/provisioning_connect.d.ts +63 -0
- package/dist/gen/provisioning/v1/provisioning_pb.d.ts +285 -231
- package/dist/gen/robot/v1/robot_connect.d.ts +239 -0
- package/dist/gen/robot/v1/robot_pb.d.ts +1327 -1087
- package/dist/gen/service/datamanager/v1/data_manager_connect.d.ts +42 -0
- package/dist/gen/service/datamanager/v1/data_manager_pb.d.ts +52 -44
- package/dist/gen/service/generic/v1/generic_connect.d.ts +30 -0
- package/dist/gen/service/mlmodel/v1/mlmodel_connect.d.ts +42 -0
- package/dist/gen/service/mlmodel/v1/mlmodel_pb.d.ts +620 -510
- package/dist/gen/service/motion/v1/motion_connect.d.ts +118 -0
- package/dist/gen/service/motion/v1/motion_pb.d.ts +1063 -795
- package/dist/gen/service/navigation/v1/navigation_connect.d.ts +115 -0
- package/dist/gen/service/navigation/v1/navigation_pb.d.ts +567 -435
- package/dist/gen/service/sensors/v1/sensors_connect.d.ts +58 -0
- package/dist/gen/service/sensors/v1/sensors_pb.d.ts +154 -120
- package/dist/gen/service/shell/v1/shell_connect.d.ts +78 -0
- package/dist/gen/service/shell/v1/shell_pb.d.ts +423 -309
- package/dist/gen/service/slam/v1/slam_connect.d.ts +81 -0
- package/dist/gen/service/slam/v1/slam_pb.d.ts +305 -204
- package/dist/gen/service/vision/v1/vision_connect.d.ts +108 -0
- package/dist/gen/service/vision/v1/vision_pb.d.ts +615 -471
- package/dist/gen/stream/v1/stream_connect.d.ts +56 -0
- package/dist/gen/stream/v1/stream_pb.d.ts +131 -97
- package/dist/gen/tagger/v1/tagger_pb.d.ts +17 -6
- package/dist/main.d.ts +81 -92
- package/dist/main.es.js +21092 -69184
- package/dist/main.umd.js +6 -13
- package/dist/robot/client.d.ts +990 -59
- package/dist/robot/dial.d.ts +2 -4
- package/dist/robot/grpc-connection-manager.d.ts +5 -7
- package/dist/robot/grpc-connection-manager.spec.d.ts +1 -0
- package/dist/robot/robot.d.ts +9 -10
- package/dist/robot/session-manager.d.ts +6 -8
- package/dist/robot/session-manager.spec.d.ts +1 -0
- package/dist/robot/session-transport.d.ts +8 -11
- package/dist/robot.d.ts +2 -2
- package/dist/rpc/base-channel.d.ts +2 -2
- package/dist/rpc/base-stream.d.ts +3 -6
- package/dist/rpc/client-channel.d.ts +5 -3
- package/dist/rpc/client-stream.d.ts +26 -12
- package/dist/rpc/dial.d.ts +49 -9
- package/dist/rpc/index.d.ts +3 -5
- package/dist/rpc/signaling-exchange.d.ts +33 -0
- package/dist/rpc/stream-client-stream.d.ts +16 -0
- package/dist/rpc/unary-client-stream.d.ts +13 -0
- package/dist/services/data-manager/client.d.ts +3 -3
- package/dist/services/data-manager/data-manager.d.ts +3 -2
- package/dist/services/generic/client.d.ts +3 -3
- package/dist/services/motion/client.d.ts +7 -8
- package/dist/services/motion/client.spec.d.ts +1 -0
- package/dist/services/motion/motion.d.ts +10 -9
- package/dist/services/motion/types.d.ts +12 -16
- package/dist/services/motion.d.ts +2 -2
- package/dist/services/navigation/client.d.ts +11 -12
- package/dist/services/navigation/client.spec.d.ts +1 -0
- package/dist/services/navigation/navigation.d.ts +11 -10
- package/dist/services/navigation/types.d.ts +8 -6
- package/dist/services/navigation.d.ts +2 -2
- package/dist/services/slam/client.d.ts +5 -6
- package/dist/services/slam/client.spec.d.ts +1 -0
- package/dist/services/slam/types.d.ts +4 -3
- package/dist/services/slam.d.ts +2 -2
- package/dist/services/vision/client.d.ts +13 -19
- package/dist/services/vision/types.d.ts +10 -7
- package/dist/services/vision/vision.d.ts +10 -9
- package/dist/services/vision.d.ts +2 -2
- package/dist/types.d.ts +21 -18
- package/dist/utils.d.ts +7 -37
- package/package.json +6 -9
- package/dist/gen/app/agent/v1/agent_pb_service.d.ts +0 -63
- package/dist/gen/app/build/v1/build_pb_service.d.ts +0 -226
- package/dist/gen/app/cloudslam/v1/cloud_slam_pb_service.d.ts +0 -158
- package/dist/gen/app/data/v1/data_pb_service.d.ts +0 -443
- package/dist/gen/app/dataset/v1/dataset_pb_service.d.ts +0 -139
- package/dist/gen/app/datasync/v1/data_sync_pb_service.d.ts +0 -85
- package/dist/gen/app/mltraining/v1/ml_training_pb_service.d.ts +0 -177
- package/dist/gen/app/packages/v1/packages_pb_service.d.ts +0 -112
- package/dist/gen/app/v1/app_pb_service.d.ts +0 -1415
- package/dist/gen/app/v1/billing_pb_service.d.ts +0 -131
- package/dist/gen/app/v1/end_user_pb_service.d.ts +0 -139
- package/dist/gen/app/v1/robot_pb_service.d.ts +0 -120
- package/dist/gen/common/v1/common_pb_service.d.ts +0 -3
- package/dist/gen/component/arm/v1/arm_pb_service.d.ts +0 -216
- package/dist/gen/component/audioinput/v1/audioinput_pb_service.d.ts +0 -133
- package/dist/gen/component/base/v1/base_pb_service.d.ts +0 -216
- package/dist/gen/component/board/v1/board_pb_service.d.ts +0 -284
- package/dist/gen/component/camera/v1/camera_pb_service.d.ts +0 -179
- package/dist/gen/component/encoder/v1/encoder_pb_service.d.ts +0 -140
- package/dist/gen/component/gantry/v1/gantry_pb_service.d.ts +0 -197
- package/dist/gen/component/generic/v1/generic_pb.d.ts +0 -7
- package/dist/gen/component/generic/v1/generic_pb_service.d.ts +0 -83
- package/dist/gen/component/gripper/v1/gripper_pb_service.d.ts +0 -159
- package/dist/gen/component/inputcontroller/v1/input_controller_pb_service.d.ts +0 -151
- package/dist/gen/component/motor/v1/motor_pb_service.d.ts +0 -273
- package/dist/gen/component/movementsensor/v1/movementsensor_pb_service.d.ts +0 -254
- package/dist/gen/component/posetracker/v1/pose_tracker_pb_service.d.ts +0 -102
- package/dist/gen/component/powersensor/v1/powersensor_pb_service.d.ts +0 -140
- package/dist/gen/component/sensor/v1/sensor_pb.d.ts +0 -7
- package/dist/gen/component/sensor/v1/sensor_pb_service.d.ts +0 -102
- package/dist/gen/component/servo/v1/servo_pb_service.d.ts +0 -159
- package/dist/gen/component/testecho/v1/testecho_pb_service.d.ts +0 -104
- package/dist/gen/google/api/annotations_pb_service.d.ts +0 -3
- package/dist/gen/google/api/client_pb_service.d.ts +0 -3
- package/dist/gen/google/api/expr/v1alpha1/checked_pb_service.d.ts +0 -3
- package/dist/gen/google/api/expr/v1alpha1/eval_pb_service.d.ts +0 -3
- package/dist/gen/google/api/expr/v1alpha1/explain_pb_service.d.ts +0 -3
- package/dist/gen/google/api/expr/v1alpha1/syntax_pb_service.d.ts +0 -3
- package/dist/gen/google/api/expr/v1alpha1/value_pb_service.d.ts +0 -3
- package/dist/gen/google/api/expr/v1beta1/decl_pb_service.d.ts +0 -3
- package/dist/gen/google/api/expr/v1beta1/eval_pb_service.d.ts +0 -3
- package/dist/gen/google/api/expr/v1beta1/expr_pb_service.d.ts +0 -3
- package/dist/gen/google/api/expr/v1beta1/source_pb_service.d.ts +0 -3
- package/dist/gen/google/api/expr/v1beta1/value_pb_service.d.ts +0 -3
- package/dist/gen/google/api/field_behavior_pb_service.d.ts +0 -3
- package/dist/gen/google/api/field_info_pb_service.d.ts +0 -3
- package/dist/gen/google/api/http_pb_service.d.ts +0 -3
- package/dist/gen/google/api/httpbody_pb_service.d.ts +0 -3
- package/dist/gen/google/api/launch_stage_pb_service.d.ts +0 -3
- package/dist/gen/google/api/resource_pb_service.d.ts +0 -3
- package/dist/gen/google/api/visibility_pb_service.d.ts +0 -3
- package/dist/gen/google/bytestream/bytestream_pb_service.d.ts +0 -85
- package/dist/gen/google/geo/type/viewport_pb_service.d.ts +0 -3
- package/dist/gen/google/longrunning/operations_pb_service.d.ts +0 -140
- package/dist/gen/google/rpc/code_pb_service.d.ts +0 -3
- package/dist/gen/google/rpc/context/attribute_context_pb_service.d.ts +0 -3
- package/dist/gen/google/rpc/error_details_pb_service.d.ts +0 -3
- package/dist/gen/google/rpc/status_pb_service.d.ts +0 -3
- package/dist/gen/google/type/calendar_period_pb_service.d.ts +0 -3
- package/dist/gen/google/type/color_pb_service.d.ts +0 -3
- package/dist/gen/google/type/date_pb_service.d.ts +0 -3
- package/dist/gen/google/type/datetime_pb_service.d.ts +0 -3
- package/dist/gen/google/type/dayofweek_pb_service.d.ts +0 -3
- package/dist/gen/google/type/decimal_pb_service.d.ts +0 -3
- package/dist/gen/google/type/expr_pb_service.d.ts +0 -3
- package/dist/gen/google/type/fraction_pb_service.d.ts +0 -3
- package/dist/gen/google/type/interval_pb_service.d.ts +0 -3
- package/dist/gen/google/type/latlng_pb_service.d.ts +0 -3
- package/dist/gen/google/type/localized_text_pb_service.d.ts +0 -3
- package/dist/gen/google/type/money_pb_service.d.ts +0 -3
- package/dist/gen/google/type/month_pb_service.d.ts +0 -3
- package/dist/gen/google/type/phone_number_pb_service.d.ts +0 -3
- package/dist/gen/google/type/postal_address_pb_service.d.ts +0 -3
- package/dist/gen/google/type/quaternion_pb_service.d.ts +0 -3
- package/dist/gen/google/type/timeofday_pb_service.d.ts +0 -3
- package/dist/gen/proto/rpc/examples/echo/v1/echo_pb_service.d.ts +0 -85
- package/dist/gen/proto/rpc/examples/echoresource/v1/echoresource_pb_service.d.ts +0 -85
- package/dist/gen/proto/rpc/examples/fileupload/v1/fileupload_pb_service.d.ts +0 -55
- package/dist/gen/proto/rpc/v1/auth_pb_service.d.ts +0 -92
- package/dist/gen/proto/rpc/webrtc/v1/grpc_pb_service.d.ts +0 -3
- package/dist/gen/proto/rpc/webrtc/v1/signaling_pb_service.d.ts +0 -104
- package/dist/gen/provisioning/v1/provisioning_pb_service.d.ts +0 -120
- package/dist/gen/robot/v1/robot_pb_service.d.ts +0 -435
- package/dist/gen/service/datamanager/v1/data_manager_pb_service.d.ts +0 -83
- package/dist/gen/service/generic/v1/generic_pb.d.ts +0 -7
- package/dist/gen/service/generic/v1/generic_pb_service.d.ts +0 -64
- package/dist/gen/service/mlmodel/v1/mlmodel_pb_service.d.ts +0 -82
- package/dist/gen/service/motion/v1/motion_pb_service.d.ts +0 -197
- package/dist/gen/service/navigation/v1/navigation_pb_service.d.ts +0 -235
- package/dist/gen/service/sensors/v1/sensors_pb_service.d.ts +0 -102
- package/dist/gen/service/shell/v1/shell_pb_service.d.ts +0 -97
- package/dist/gen/service/slam/v1/slam_pb_service.d.ts +0 -124
- package/dist/gen/service/vision/v1/vision_pb_service.d.ts +0 -197
- package/dist/gen/stream/v1/stream_pb_service.d.ts +0 -101
- package/dist/gen/tagger/v1/tagger_pb_service.d.ts +0 -3
- package/dist/responses.d.ts +0 -8
- package/dist/rpc/grpc-error.d.ts +0 -6
|
@@ -1,32 +1,26 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
type ValueOf<T> = T[keyof T];
|
|
7
|
-
export declare const Order: dataPb.OrderMap;
|
|
8
|
-
export type Order = ValueOf<typeof dataPb.Order>;
|
|
9
|
-
export type BinaryID = dataPb.BinaryID.AsObject;
|
|
10
|
-
export type UploadMetadata = dataSyncPb.UploadMetadata.AsObject;
|
|
11
|
-
export type FilterOptions = Partial<dataPb.Filter.AsObject> & {
|
|
1
|
+
import { type JsonValue } from '@bufbuild/protobuf';
|
|
2
|
+
import { type Transport } from '@connectrpc/connect';
|
|
3
|
+
import { BinaryID, CaptureMetadata, Filter, Order } from '../gen/app/data/v1/data_pb';
|
|
4
|
+
import type { Dataset as PBDataset } from '../gen/app/dataset/v1/dataset_pb';
|
|
5
|
+
export type FilterOptions = Partial<Filter> & {
|
|
12
6
|
endTime?: Date;
|
|
13
7
|
startTime?: Date;
|
|
14
8
|
tags?: string[];
|
|
15
9
|
};
|
|
16
10
|
interface TabularData {
|
|
17
|
-
data?:
|
|
18
|
-
metadata?:
|
|
11
|
+
data?: JsonValue;
|
|
12
|
+
metadata?: CaptureMetadata;
|
|
19
13
|
timeRequested?: Date;
|
|
20
14
|
timeReceived?: Date;
|
|
21
15
|
}
|
|
22
|
-
type Dataset = Partial<
|
|
16
|
+
export type Dataset = Partial<PBDataset> & {
|
|
23
17
|
created?: Date;
|
|
24
18
|
};
|
|
25
19
|
export declare class DataClient {
|
|
26
|
-
private
|
|
27
|
-
private
|
|
28
|
-
private
|
|
29
|
-
constructor(
|
|
20
|
+
private dataClient;
|
|
21
|
+
private datasetClient;
|
|
22
|
+
private dataSyncClient;
|
|
23
|
+
constructor(transport: Transport);
|
|
30
24
|
/**
|
|
31
25
|
* Obtain unified tabular data and metadata, queried with SQL.
|
|
32
26
|
*
|
|
@@ -34,9 +28,7 @@ export declare class DataClient {
|
|
|
34
28
|
* @param query The SQL query to run
|
|
35
29
|
* @returns An array of data objects
|
|
36
30
|
*/
|
|
37
|
-
tabularDataBySQL(organizationId: string, query: string): Promise<
|
|
38
|
-
[key: string]: googleStructPb.JavaScriptValue;
|
|
39
|
-
}[]>;
|
|
31
|
+
tabularDataBySQL(organizationId: string, query: string): Promise<JsonValue[]>;
|
|
40
32
|
/**
|
|
41
33
|
* Obtain unified tabular data and metadata, queried with MQL.
|
|
42
34
|
*
|
|
@@ -44,9 +36,7 @@ export declare class DataClient {
|
|
|
44
36
|
* @param query The MQL query to run as a list of BSON documents
|
|
45
37
|
* @returns An array of data objects
|
|
46
38
|
*/
|
|
47
|
-
tabularDataByMQL(organizationId: string, query: Uint8Array[]): Promise<
|
|
48
|
-
[key: string]: googleStructPb.JavaScriptValue;
|
|
49
|
-
}[]>;
|
|
39
|
+
tabularDataByMQL(organizationId: string, query: Uint8Array[]): Promise<JsonValue[]>;
|
|
50
40
|
/**
|
|
51
41
|
* Filter and get a page of tabular data. The returned metadata might be empty
|
|
52
42
|
* if the metadata index of the data is out of the bounds of the returned
|
|
@@ -68,9 +58,9 @@ export declare class DataClient {
|
|
|
68
58
|
* @returns An array of data objects, the count (number of entries), and the
|
|
69
59
|
* last-returned page ID.
|
|
70
60
|
*/
|
|
71
|
-
tabularDataByFilter(filter?:
|
|
61
|
+
tabularDataByFilter(filter?: Filter, limit?: number, sortOrder?: Order, last?: string, countOnly?: boolean, includeInternalData?: boolean): Promise<{
|
|
72
62
|
data: TabularData[];
|
|
73
|
-
count:
|
|
63
|
+
count: bigint;
|
|
74
64
|
last: string;
|
|
75
65
|
}>;
|
|
76
66
|
/**
|
|
@@ -96,9 +86,9 @@ export declare class DataClient {
|
|
|
96
86
|
* @returns An array of data objects, the count (number of entries), and the
|
|
97
87
|
* last-returned page ID.
|
|
98
88
|
*/
|
|
99
|
-
binaryDataByFilter(filter?:
|
|
100
|
-
data:
|
|
101
|
-
count:
|
|
89
|
+
binaryDataByFilter(filter?: Filter, limit?: number, sortOrder?: Order, last?: string, includeBinary?: boolean, countOnly?: boolean, includeInternalData?: boolean): Promise<{
|
|
90
|
+
data: import("../gen/app/data/v1/data_pb").BinaryData[];
|
|
91
|
+
count: bigint;
|
|
102
92
|
last: string;
|
|
103
93
|
}>;
|
|
104
94
|
/**
|
|
@@ -107,18 +97,18 @@ export declare class DataClient {
|
|
|
107
97
|
* @param ids The IDs of the requested binary data
|
|
108
98
|
* @returns An array of data objects
|
|
109
99
|
*/
|
|
110
|
-
binaryDataByIds(ids: BinaryID[]): Promise<
|
|
100
|
+
binaryDataByIds(ids: BinaryID[]): Promise<import("../gen/app/data/v1/data_pb").BinaryData[]>;
|
|
111
101
|
/**
|
|
112
102
|
* Delete tabular data older than a specified number of days.
|
|
113
103
|
*
|
|
114
|
-
* @param
|
|
104
|
+
* @param organizationId The ID of organization to delete data from
|
|
115
105
|
* @param deleteOlderThanDays Delete data that was captured more than this
|
|
116
106
|
* many days ago. For example if `deleteOlderThanDays` is 10, this deletes
|
|
117
107
|
* any data that was captured more than 10 days ago. If it is 0, all
|
|
118
108
|
* existing data is deleted.
|
|
119
109
|
* @returns The number of items deleted
|
|
120
110
|
*/
|
|
121
|
-
deleteTabularData(
|
|
111
|
+
deleteTabularData(organizationId: string, deleteOlderThanDays: number): Promise<bigint>;
|
|
122
112
|
/**
|
|
123
113
|
* Filter and delete binary data.
|
|
124
114
|
*
|
|
@@ -128,14 +118,14 @@ export declare class DataClient {
|
|
|
128
118
|
* is true
|
|
129
119
|
* @returns The number of items deleted
|
|
130
120
|
*/
|
|
131
|
-
deleteBinaryDataByFilter(filter?:
|
|
121
|
+
deleteBinaryDataByFilter(filter?: Filter, includeInternalData?: boolean): Promise<bigint>;
|
|
132
122
|
/**
|
|
133
123
|
* Delete binary data, specified by ID.
|
|
134
124
|
*
|
|
135
125
|
* @param ids The IDs of the data to be deleted. Must be non-empty.
|
|
136
126
|
* @returns The number of items deleted
|
|
137
127
|
*/
|
|
138
|
-
deleteBinaryDataByIds(ids: BinaryID[]): Promise<
|
|
128
|
+
deleteBinaryDataByIds(ids: BinaryID[]): Promise<bigint>;
|
|
139
129
|
/**
|
|
140
130
|
* Add tags to binary data, specified by ID.
|
|
141
131
|
*
|
|
@@ -151,7 +141,7 @@ export declare class DataClient {
|
|
|
151
141
|
* @param filter Optional `pb.Filter` specifying binary data to add tags to.
|
|
152
142
|
* No `filter` implies all binary data.
|
|
153
143
|
*/
|
|
154
|
-
addTagsToBinaryDataByFilter(tags: string[], filter?:
|
|
144
|
+
addTagsToBinaryDataByFilter(tags: string[], filter?: Filter): Promise<void>;
|
|
155
145
|
/**
|
|
156
146
|
* Remove tags from binary data, specified by ID.
|
|
157
147
|
*
|
|
@@ -160,7 +150,7 @@ export declare class DataClient {
|
|
|
160
150
|
* @param ids The IDs of the data to be edited. Must be non-empty.
|
|
161
151
|
* @returns The number of items deleted
|
|
162
152
|
*/
|
|
163
|
-
removeTagsFromBinaryDataByIds(tags: string[], ids: BinaryID[]): Promise<
|
|
153
|
+
removeTagsFromBinaryDataByIds(tags: string[], ids: BinaryID[]): Promise<bigint>;
|
|
164
154
|
/**
|
|
165
155
|
* Remove tags from binary data, specified by filter.
|
|
166
156
|
*
|
|
@@ -170,7 +160,7 @@ export declare class DataClient {
|
|
|
170
160
|
* No `filter` implies all binary data.
|
|
171
161
|
* @returns The number of items deleted
|
|
172
162
|
*/
|
|
173
|
-
removeTagsFromBinaryDataByFilter(tags: string[], filter?:
|
|
163
|
+
removeTagsFromBinaryDataByFilter(tags: string[], filter?: Filter): Promise<bigint>;
|
|
174
164
|
/**
|
|
175
165
|
* Get a list of tags using a filter.
|
|
176
166
|
*
|
|
@@ -178,7 +168,7 @@ export declare class DataClient {
|
|
|
178
168
|
* No `filter` implies all data.
|
|
179
169
|
* @returns The list of tags
|
|
180
170
|
*/
|
|
181
|
-
tagsByFilter(filter?:
|
|
171
|
+
tagsByFilter(filter?: Filter): Promise<string[]>;
|
|
182
172
|
/**
|
|
183
173
|
* Add bounding box to an image.
|
|
184
174
|
*
|
|
@@ -209,23 +199,23 @@ export declare class DataClient {
|
|
|
209
199
|
* No `filter` implies all labels.
|
|
210
200
|
* @returns The list of bounding box labels
|
|
211
201
|
*/
|
|
212
|
-
boundingBoxLabelsByFilter(filter?:
|
|
202
|
+
boundingBoxLabelsByFilter(filter?: Filter): Promise<string[]>;
|
|
213
203
|
/**
|
|
214
204
|
* Configure a database user for the Viam organization's MongoDB Atlas Data
|
|
215
205
|
* Federation instance. It can also be used to reset the password of the
|
|
216
206
|
* existing database user.
|
|
217
207
|
*
|
|
218
|
-
* @param
|
|
208
|
+
* @param organizationId The ID of the organization
|
|
219
209
|
* @param password The password of the user
|
|
220
210
|
*/
|
|
221
|
-
configureDatabaseUser(
|
|
211
|
+
configureDatabaseUser(organizationId: string, password: string): Promise<void>;
|
|
222
212
|
/**
|
|
223
213
|
* Get a connection to access a MongoDB Atlas Data federation instance.
|
|
224
214
|
*
|
|
225
|
-
* @param
|
|
215
|
+
* @param organizationId Organization to retrieve connection for
|
|
226
216
|
* @returns Hostname of the federated database
|
|
227
217
|
*/
|
|
228
|
-
getDatabaseConnection(
|
|
218
|
+
getDatabaseConnection(organizationId: string): Promise<string>;
|
|
229
219
|
/**
|
|
230
220
|
* Add BinaryData to the provided dataset.
|
|
231
221
|
*
|
|
@@ -244,10 +234,11 @@ export declare class DataClient {
|
|
|
244
234
|
* Create a new dataset.
|
|
245
235
|
*
|
|
246
236
|
* @param name The name of the new dataset
|
|
247
|
-
* @param
|
|
237
|
+
* @param organizationId The ID of the organization the dataset is being
|
|
238
|
+
* created in
|
|
248
239
|
* @returns The ID of the dataset
|
|
249
240
|
*/
|
|
250
|
-
createDataset(name: string,
|
|
241
|
+
createDataset(name: string, organizationId: string): Promise<string>;
|
|
251
242
|
/**
|
|
252
243
|
* Delete a dataset.
|
|
253
244
|
*
|
|
@@ -264,10 +255,10 @@ export declare class DataClient {
|
|
|
264
255
|
/**
|
|
265
256
|
* List all of the datasets for an organization.
|
|
266
257
|
*
|
|
267
|
-
* @param
|
|
258
|
+
* @param organizationId The ID of the organization
|
|
268
259
|
* @returns The list of datasets in the organization
|
|
269
260
|
*/
|
|
270
|
-
listDatasetsByOrganizationID(
|
|
261
|
+
listDatasetsByOrganizationID(organizationId: string): Promise<Dataset[]>;
|
|
271
262
|
/**
|
|
272
263
|
* List all of the datasets specified by the given dataset IDs.
|
|
273
264
|
*
|
|
@@ -299,7 +290,7 @@ export declare class DataClient {
|
|
|
299
290
|
* uploaded, all tied to the same metadata.
|
|
300
291
|
* @returns The file ID of the uploaded data
|
|
301
292
|
*/
|
|
302
|
-
tabularDataCaptureUpload(tabularData: Record<string,
|
|
293
|
+
tabularDataCaptureUpload(tabularData: Record<string, JsonValue>[], partId: string, componentType: string, componentName: string, methodName: string, dataRequestTimes: [Date, Date][], tags?: string[]): Promise<string>;
|
|
303
294
|
/**
|
|
304
295
|
* Uploads the content and metadata for binary data.
|
|
305
296
|
*
|
|
@@ -325,6 +316,7 @@ export declare class DataClient {
|
|
|
325
316
|
* @returns The file ID of the uploaded data
|
|
326
317
|
*/
|
|
327
318
|
binaryDataCaptureUpload(binaryData: Uint8Array, partId: string, componentType: string, componentName: string, methodName: string, fileExtension: string, dataRequestTimes: [Date, Date], tags?: string[]): Promise<string>;
|
|
328
|
-
createFilter(options: FilterOptions):
|
|
319
|
+
createFilter(options: FilterOptions): Filter;
|
|
329
320
|
}
|
|
330
|
-
export {};
|
|
321
|
+
export { type BinaryID, type Order } from '../gen/app/data/v1/data_pb';
|
|
322
|
+
export { type UploadMetadata } from '../gen/app/datasync/v1/data_sync_pb';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,18 +1,13 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import
|
|
3
|
-
type ValueOf<T> = T[keyof T];
|
|
4
|
-
export declare const ModelType: pb.ModelTypeMap;
|
|
5
|
-
export type ModelType = ValueOf<typeof pb.ModelType>;
|
|
6
|
-
export declare const TrainingStatus: pb.TrainingStatusMap;
|
|
7
|
-
export type TrainingStatus = ValueOf<typeof pb.TrainingStatus>;
|
|
1
|
+
import { type Transport } from '@connectrpc/connect';
|
|
2
|
+
import { ModelType, TrainingStatus } from '../gen/app/mltraining/v1/ml_training_pb';
|
|
8
3
|
export declare class MlTrainingClient {
|
|
9
|
-
private
|
|
10
|
-
constructor(
|
|
11
|
-
submitTrainingJob(
|
|
12
|
-
submitCustomTrainingJob(
|
|
13
|
-
getTrainingJob(id: string): Promise<
|
|
14
|
-
listTrainingJobs(
|
|
4
|
+
private client;
|
|
5
|
+
constructor(transport: Transport);
|
|
6
|
+
submitTrainingJob(organizationId: string, datasetId: string, modelName: string, modelVersion: string, modelType: ModelType, tags: string[]): Promise<string>;
|
|
7
|
+
submitCustomTrainingJob(organizationId: string, datasetId: string, registryItemId: string, registryItemVersion: string, modelName: string, modelVersion: string): Promise<string>;
|
|
8
|
+
getTrainingJob(id: string): Promise<import("../gen/app/mltraining/v1/ml_training_pb").TrainingJobMetadata | undefined>;
|
|
9
|
+
listTrainingJobs(organizationId: string, status: TrainingStatus): Promise<import("../gen/app/mltraining/v1/ml_training_pb").TrainingJobMetadata[]>;
|
|
15
10
|
cancelTrainingJob(id: string): Promise<null>;
|
|
16
11
|
deleteCompletedTrainingJob(id: string): Promise<null>;
|
|
17
12
|
}
|
|
18
|
-
export {};
|
|
13
|
+
export { ModelType, TrainingStatus, } from '../gen/app/mltraining/v1/ml_training_pb';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import
|
|
3
|
-
export type CloudConfig = pb.CloudConfig.AsObject;
|
|
1
|
+
import { type Transport } from '@connectrpc/connect';
|
|
2
|
+
import type { CloudConfig } from '../gen/provisioning/v1/provisioning_pb';
|
|
4
3
|
export declare class ProvisioningClient {
|
|
5
|
-
private
|
|
6
|
-
constructor(
|
|
4
|
+
private client;
|
|
5
|
+
constructor(transport: Transport);
|
|
7
6
|
/**
|
|
8
7
|
* Get the status of the Smart Machine.
|
|
9
8
|
*
|
|
10
9
|
* @returns The Smart Machine status
|
|
11
10
|
*/
|
|
12
|
-
getSmartMachineStatus(): Promise<
|
|
11
|
+
getSmartMachineStatus(): Promise<import("../gen/provisioning/v1/provisioning_pb").GetSmartMachineStatusResponse>;
|
|
13
12
|
/**
|
|
14
13
|
* Set the network credentials of the Smart Machine, so it can connect to the
|
|
15
14
|
* internet.
|
|
@@ -31,5 +30,6 @@ export declare class ProvisioningClient {
|
|
|
31
30
|
*
|
|
32
31
|
* @returns A list of networks
|
|
33
32
|
*/
|
|
34
|
-
getNetworkList(): Promise<
|
|
33
|
+
getNetworkList(): Promise<import("../gen/provisioning/v1/provisioning_pb").NetworkInfo[]>;
|
|
35
34
|
}
|
|
35
|
+
export { CloudConfig } from '../gen/provisioning/v1/provisioning_pb';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,32 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { type Credential, type AccessToken } from './viam-transport';
|
|
3
|
-
import { DataClient } from './data-client';
|
|
1
|
+
import type { Transport } from '@connectrpc/connect';
|
|
4
2
|
import { AppClient } from './app-client';
|
|
5
3
|
import { BillingClient } from './billing-client';
|
|
4
|
+
import { DataClient } from './data-client';
|
|
6
5
|
import { MlTrainingClient } from './ml-training-client';
|
|
7
6
|
import { ProvisioningClient } from './provisioning-client';
|
|
7
|
+
import { type Credentials } from './viam-transport';
|
|
8
8
|
export interface ViamClientOptions {
|
|
9
9
|
serviceHost?: string;
|
|
10
|
-
|
|
10
|
+
credentials: Credentials;
|
|
11
11
|
}
|
|
12
12
|
/** Instantiate a connected gRPC client that interfaces with Viam app. */
|
|
13
|
-
export declare const createViamClient: ({ serviceHost,
|
|
13
|
+
export declare const createViamClient: ({ serviceHost, credentials, }: ViamClientOptions) => Promise<ViamClient>;
|
|
14
14
|
interface ViamClientMachineConnectionOpts {
|
|
15
15
|
host?: string;
|
|
16
16
|
id?: string;
|
|
17
17
|
}
|
|
18
18
|
/** A gRPC client for method calls to Viam app. */
|
|
19
19
|
export declare class ViamClient {
|
|
20
|
-
private
|
|
21
|
-
private
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
constructor(transportFactory: grpc.TransportFactory, serviceHost: string, credential: Credential | AccessToken);
|
|
29
|
-
connect(): void;
|
|
20
|
+
private transport;
|
|
21
|
+
private credentials;
|
|
22
|
+
readonly dataClient: DataClient;
|
|
23
|
+
readonly appClient: AppClient;
|
|
24
|
+
readonly mlTrainingClient: MlTrainingClient;
|
|
25
|
+
readonly provisioningClient: ProvisioningClient;
|
|
26
|
+
readonly billingClient: BillingClient;
|
|
27
|
+
constructor(transport: Transport, credentials: Credentials);
|
|
30
28
|
connectToMachine({ host, id, }: ViamClientMachineConnectionOpts): Promise<import("../robot").RobotClient>;
|
|
31
29
|
}
|
|
32
30
|
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { MetadataTransport } from '../utils';
|
|
1
|
+
import type { Transport } from '@connectrpc/connect';
|
|
3
2
|
/**
|
|
4
3
|
* Credentials are either used to obtain an access token or provide an existing
|
|
5
4
|
* one
|
|
@@ -17,13 +16,6 @@ export interface AccessToken {
|
|
|
17
16
|
type: 'access-token';
|
|
18
17
|
payload: string;
|
|
19
18
|
}
|
|
20
|
-
export declare const isCredential: (object: Credentials) => object is Credential;
|
|
21
|
-
/**
|
|
22
|
-
|
|
23
|
-
* resources.
|
|
24
|
-
*/
|
|
25
|
-
export declare const createViamTransportFactory: (serviceHost: string, credential: Credential | AccessToken) => Promise<grpc.TransportFactory>;
|
|
26
|
-
export declare const getAccessTokenFromCredential: (host: string, credential: Credential) => Promise<AccessToken>;
|
|
27
|
-
export declare class ViamTransport extends MetadataTransport {
|
|
28
|
-
constructor(transportFactory: grpc.TransportFactory, opts: grpc.TransportOptions, accessToken: string);
|
|
29
|
-
}
|
|
19
|
+
export declare const isCredential: (object: Credentials | undefined) => object is Credential;
|
|
20
|
+
/** Initialize an authenticated transport that can access protected resources. */
|
|
21
|
+
export declare const createViamTransport: (serviceHost: string, credential: Credential | AccessToken) => Promise<Transport>;
|
|
@@ -1,27 +1,29 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { Pose, Resource
|
|
3
|
-
|
|
1
|
+
import type { PlainMessage, Struct } from '@bufbuild/protobuf';
|
|
2
|
+
import type { Pose, Resource } from '../../types';
|
|
3
|
+
import * as armApi from '../../gen/component/arm/v1/arm_pb';
|
|
4
|
+
export type ArmJointPositions = PlainMessage<armApi.JointPositions>;
|
|
5
|
+
export declare const ArmJointPositions: typeof armApi.JointPositions;
|
|
4
6
|
/** Represents a physical robot arm that exists in three-dimensional space. */
|
|
5
7
|
export interface Arm extends Resource {
|
|
6
8
|
/** Get the position of the end of the arm expressed as a pose */
|
|
7
|
-
getEndPosition: (extra?:
|
|
9
|
+
getEndPosition: (extra?: Struct) => Promise<Pose>;
|
|
8
10
|
/**
|
|
9
11
|
* Move the end of the arm to the pose.
|
|
10
12
|
*
|
|
11
13
|
* @param pose - The destination pose for the arm.
|
|
12
14
|
*/
|
|
13
|
-
moveToPosition: (pose: Pose, extra?:
|
|
15
|
+
moveToPosition: (pose: Pose, extra?: Struct) => Promise<void>;
|
|
14
16
|
/**
|
|
15
17
|
* Move each joint of the arm based on the angles on the joint poisitons.
|
|
16
18
|
* parameter
|
|
17
19
|
*
|
|
18
20
|
* @param jointPositionsList - List of angles (0-360) to move each joint to.
|
|
19
21
|
*/
|
|
20
|
-
moveToJointPositions: (jointPositionsList: number[], extra?:
|
|
22
|
+
moveToJointPositions: (jointPositionsList: number[], extra?: Struct) => Promise<void>;
|
|
21
23
|
/** Gets the current position of each joint. */
|
|
22
|
-
getJointPositions: (extra?:
|
|
24
|
+
getJointPositions: (extra?: Struct) => Promise<ArmJointPositions>;
|
|
23
25
|
/** Stops the motion of the arm. */
|
|
24
|
-
stop: (extra?:
|
|
26
|
+
stop: (extra?: Struct) => Promise<void>;
|
|
25
27
|
/** Get if the arm is currently moving. */
|
|
26
28
|
isMoving: () => Promise<boolean>;
|
|
27
29
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { Struct, type JsonValue } from '@bufbuild/protobuf';
|
|
2
|
+
import { JointPositions } from '../../gen/component/arm/v1/arm_pb';
|
|
1
3
|
import type { RobotClient } from '../../robot';
|
|
2
|
-
import
|
|
3
|
-
import type { Options, Pose, StructType } from '../../types';
|
|
4
|
+
import type { Options, Pose } from '../../types';
|
|
4
5
|
import type { Arm } from './arm';
|
|
5
6
|
/**
|
|
6
7
|
* A gRPC-web client for the Arm component.
|
|
@@ -12,12 +13,11 @@ export declare class ArmClient implements Arm {
|
|
|
12
13
|
private readonly name;
|
|
13
14
|
private readonly options;
|
|
14
15
|
constructor(client: RobotClient, name: string, options?: Options);
|
|
15
|
-
|
|
16
|
-
getEndPosition(extra?: {}): Promise<import("../../gen/common/v1/common_pb").Pose.AsObject>;
|
|
16
|
+
getEndPosition(extra?: {}): Promise<import("../../gen/common/v1/common_pb").Pose>;
|
|
17
17
|
moveToPosition(pose: Pose, extra?: {}): Promise<void>;
|
|
18
18
|
moveToJointPositions(jointPositionsList: number[], extra?: {}): Promise<void>;
|
|
19
|
-
getJointPositions(extra?: {}): Promise<
|
|
19
|
+
getJointPositions(extra?: {}): Promise<JointPositions>;
|
|
20
20
|
stop(extra?: {}): Promise<void>;
|
|
21
21
|
isMoving(): Promise<boolean>;
|
|
22
|
-
doCommand(command:
|
|
22
|
+
doCommand(command: Struct): Promise<JsonValue>;
|
|
23
23
|
}
|
package/dist/components/arm.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { ArmJointPositions, type Arm } from './arm/arm';
|
|
2
2
|
export { ArmClient } from './arm/client';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type { Resource,
|
|
2
|
-
import
|
|
3
|
-
export type BaseProperties =
|
|
1
|
+
import type { Resource, Struct, Vector3 } from '../../types';
|
|
2
|
+
import * as baseApi from '../../gen/component/base/v1/base_pb';
|
|
3
|
+
export type BaseProperties = baseApi.GetPropertiesResponse;
|
|
4
|
+
export declare const BaseProperties: typeof baseApi.GetPropertiesResponse;
|
|
4
5
|
/** Represents a physical base of a robot. */
|
|
5
6
|
export interface Base extends Resource {
|
|
6
7
|
/**
|
|
@@ -10,7 +11,7 @@ export interface Base extends Resource {
|
|
|
10
11
|
* @param distanceMm - Distance to move, in millimeters.
|
|
11
12
|
* @param mmPerSec - Movement speed, in millimeters per second.
|
|
12
13
|
*/
|
|
13
|
-
moveStraight(distanceMm: number, mmPerSec: number, extra?:
|
|
14
|
+
moveStraight(distanceMm: number, mmPerSec: number, extra?: Struct): Promise<void>;
|
|
14
15
|
/**
|
|
15
16
|
* Spin a base by a given angle at a given angular speed. This method blocks
|
|
16
17
|
* until completed or cancelled.
|
|
@@ -18,7 +19,7 @@ export interface Base extends Resource {
|
|
|
18
19
|
* @param angleDeg - Degrees to spin.
|
|
19
20
|
* @param degsPerSec - Angular speed, in degrees per second.
|
|
20
21
|
*/
|
|
21
|
-
spin(angleDeg: number, degsPerSec: number, extra?:
|
|
22
|
+
spin(angleDeg: number, degsPerSec: number, extra?: Struct): Promise<void>;
|
|
22
23
|
/**
|
|
23
24
|
* Set the linear and angular power of a base from -1 to 1 in terms of power
|
|
24
25
|
* for each direction.
|
|
@@ -26,18 +27,18 @@ export interface Base extends Resource {
|
|
|
26
27
|
* @param linear - Desired linear power percentage from -1 to 1.
|
|
27
28
|
* @param angular - Desired angular power percentage from -1 to 1.
|
|
28
29
|
*/
|
|
29
|
-
setPower(linear: Vector3, angular: Vector3, extra?:
|
|
30
|
+
setPower(linear: Vector3, angular: Vector3, extra?: Struct): Promise<void>;
|
|
30
31
|
/**
|
|
31
32
|
* Set the linear and angular velocity of a base.
|
|
32
33
|
*
|
|
33
34
|
* @param linear - Desired linear velocity in millimeters per second.
|
|
34
35
|
* @param angular - Desired angular velocity in degrees per second.
|
|
35
36
|
*/
|
|
36
|
-
setVelocity(linear: Vector3, angular: Vector3, extra?:
|
|
37
|
+
setVelocity(linear: Vector3, angular: Vector3, extra?: Struct): Promise<void>;
|
|
37
38
|
/** Stop a base */
|
|
38
|
-
stop(extra?:
|
|
39
|
+
stop(extra?: Struct): Promise<void>;
|
|
39
40
|
/** Return true if the base is in motion. */
|
|
40
|
-
isMoving(extra?:
|
|
41
|
+
isMoving(extra?: Struct): Promise<boolean>;
|
|
41
42
|
/** Return the base's properties. */
|
|
42
|
-
getProperties(extra?:
|
|
43
|
+
getProperties(extra?: Struct): Promise<BaseProperties>;
|
|
43
44
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { Struct, type JsonValue } from '@bufbuild/protobuf';
|
|
1
2
|
import type { RobotClient } from '../../robot';
|
|
2
|
-
import
|
|
3
|
-
import type { Options, StructType, Vector3 } from '../../types';
|
|
3
|
+
import type { Options, Vector3 } from '../../types';
|
|
4
4
|
import type { Base } from './base';
|
|
5
5
|
/**
|
|
6
6
|
* A gRPC-web client for the Base component.
|
|
@@ -12,13 +12,12 @@ export declare class BaseClient implements Base {
|
|
|
12
12
|
private readonly name;
|
|
13
13
|
private readonly options;
|
|
14
14
|
constructor(client: RobotClient, name: string, options?: Options);
|
|
15
|
-
private get baseService();
|
|
16
15
|
moveStraight(distanceMm: number, mmPerSec: number, extra?: {}): Promise<void>;
|
|
17
16
|
spin(angleDeg: number, degsPerSec: number, extra?: {}): Promise<void>;
|
|
18
17
|
setPower(linear: Vector3, angular: Vector3, extra?: {}): Promise<void>;
|
|
19
18
|
setVelocity(linear: Vector3, angular: Vector3, extra?: {}): Promise<void>;
|
|
20
19
|
stop(extra?: {}): Promise<void>;
|
|
21
20
|
isMoving(): Promise<boolean>;
|
|
22
|
-
doCommand(command:
|
|
23
|
-
getProperties(extra?: {}): Promise<
|
|
21
|
+
doCommand(command: Struct): Promise<JsonValue>;
|
|
22
|
+
getProperties(extra?: {}): Promise<import("../../gen/component/base/v1/base_pb").GetPropertiesResponse>;
|
|
24
23
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { BaseProperties, type Base } from './base/base';
|
|
2
2
|
export { BaseClient } from './base/client';
|
|
@@ -1,22 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
type
|
|
5
|
-
export
|
|
6
|
-
export
|
|
1
|
+
import type { Duration, Struct } from '@bufbuild/protobuf';
|
|
2
|
+
import type { Resource } from '../../types';
|
|
3
|
+
import * as boardApi from '../../gen/component/board/v1/board_pb';
|
|
4
|
+
export type AnalogValue = boardApi.ReadAnalogReaderResponse;
|
|
5
|
+
export type PowerMode = boardApi.PowerMode;
|
|
6
|
+
export declare const AnalogValue: typeof boardApi.ReadAnalogReaderResponse, PowerMode: typeof boardApi.PowerMode;
|
|
7
7
|
export interface Tick {
|
|
8
8
|
pinName: string;
|
|
9
9
|
high: boolean;
|
|
10
10
|
time: number;
|
|
11
11
|
}
|
|
12
|
-
export type Duration = PBDuration.AsObject;
|
|
13
|
-
export type AnalogValue = pb.ReadAnalogReaderResponse.AsObject;
|
|
14
12
|
/**
|
|
15
13
|
* Represents a physical general purpose compute board that contains various
|
|
16
14
|
* components such as analog readers, and digital interrupts.
|
|
17
15
|
*/
|
|
18
16
|
export interface Board extends Resource {
|
|
19
|
-
getGPIO(pin: string, extra?:
|
|
17
|
+
getGPIO(pin: string, extra?: Struct): Promise<boolean>;
|
|
20
18
|
/**
|
|
21
19
|
* Set the high/low state of the given pin of a board.
|
|
22
20
|
*
|
|
@@ -24,27 +22,27 @@ export interface Board extends Resource {
|
|
|
24
22
|
* @param high - When true, set the given pin to high. When false, set the
|
|
25
23
|
* given pin to low.
|
|
26
24
|
*/
|
|
27
|
-
setGPIO(pin: string, high: boolean, extra?:
|
|
25
|
+
setGPIO(pin: string, high: boolean, extra?: Struct): Promise<void>;
|
|
28
26
|
/**
|
|
29
27
|
* Get the duty cycle of the given pin of a board.
|
|
30
28
|
*
|
|
31
29
|
* @param pin - The pin.
|
|
32
30
|
* @returns The duty cycle, which is a value from 0 to 1.
|
|
33
31
|
*/
|
|
34
|
-
getPWM(pin: string, extra?:
|
|
32
|
+
getPWM(pin: string, extra?: Struct): Promise<number>;
|
|
35
33
|
/**
|
|
36
34
|
* Set the duty cycle of the given pin of a board.
|
|
37
35
|
*
|
|
38
36
|
* @param pin - The pin.
|
|
39
37
|
* @param dutyCyclePct - A value from 0 to 1.
|
|
40
38
|
*/
|
|
41
|
-
setPWM(pin: string, dutyCyclePct: number, extra?:
|
|
39
|
+
setPWM(pin: string, dutyCyclePct: number, extra?: Struct): Promise<void>;
|
|
42
40
|
/**
|
|
43
41
|
* Get the PWM frequency of the given pin of a board.
|
|
44
42
|
*
|
|
45
43
|
* @param pin - The pin.
|
|
46
44
|
*/
|
|
47
|
-
getPWMFrequency(pin: string, extra?:
|
|
45
|
+
getPWMFrequency(pin: string, extra?: Struct): Promise<number>;
|
|
48
46
|
/**
|
|
49
47
|
* Set the PWM frequency of the given pin of a board.
|
|
50
48
|
*
|
|
@@ -52,41 +50,39 @@ export interface Board extends Resource {
|
|
|
52
50
|
* @param frequencyHz - The PWM frequency, in hertz. 0 will use the board's
|
|
53
51
|
* default PWM frequency.
|
|
54
52
|
*/
|
|
55
|
-
setPWMFrequency(pin: string, frequencyHz: number, extra?:
|
|
53
|
+
setPWMFrequency(pin: string, frequencyHz: number, extra?: Struct): Promise<void>;
|
|
56
54
|
/**
|
|
57
55
|
* Read the current value of an analog reader of a board.
|
|
58
56
|
*
|
|
59
57
|
* @param analogReader - The name of the analog reader.
|
|
60
58
|
*/
|
|
61
|
-
readAnalogReader(analogReader: string, extra?:
|
|
59
|
+
readAnalogReader(analogReader: string, extra?: Struct): Promise<AnalogValue>;
|
|
62
60
|
/**
|
|
63
61
|
* Write an analog value to a pin on the board.
|
|
64
62
|
*
|
|
65
63
|
* @param pin - The pin name.
|
|
66
64
|
* @param value - An integer value to write.
|
|
67
65
|
*/
|
|
68
|
-
writeAnalog(pin: string, value: number, extra?:
|
|
66
|
+
writeAnalog(pin: string, value: number, extra?: Struct): Promise<void>;
|
|
69
67
|
/**
|
|
70
68
|
* Return the current value of the interrupt which is based on the type of
|
|
71
69
|
* interrupt.
|
|
72
70
|
*
|
|
73
71
|
* @param digitalInterruptName - The name of the digital interrupt.
|
|
74
72
|
*/
|
|
75
|
-
getDigitalInterruptValue(digitalInterruptName: string, extra?:
|
|
73
|
+
getDigitalInterruptValue(digitalInterruptName: string, extra?: Struct): Promise<number>;
|
|
76
74
|
/**
|
|
77
75
|
* Stream digital interrupt ticks on the board.
|
|
78
76
|
*
|
|
79
77
|
* @param interrupts - Names of the interrupts to stream.
|
|
80
78
|
* @param queue - Array to put the ticks in.
|
|
81
79
|
*/
|
|
82
|
-
streamTicks(interrupts: string[], queue: Tick[], extra?:
|
|
80
|
+
streamTicks(interrupts: string[], queue: Tick[], extra?: Struct): Promise<void>;
|
|
83
81
|
/**
|
|
84
82
|
* Set power mode of the board.
|
|
85
83
|
*
|
|
86
|
-
* @param name - The name of the board.
|
|
87
84
|
* @param powerMode - The requested power mode.
|
|
88
85
|
* @param duration - The requested duration to stay in power mode.
|
|
89
86
|
*/
|
|
90
|
-
setPowerMode(
|
|
87
|
+
setPowerMode(powerMode: PowerMode, duration: Duration, extra?: Struct): Promise<void>;
|
|
91
88
|
}
|
|
92
|
-
export {};
|