@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,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Struct, type JsonValue } from '@bufbuild/protobuf';
|
|
2
2
|
import { RobotClient } from '../../robot';
|
|
3
|
-
import type { GeoPoint, Options
|
|
4
|
-
import type { ModeMap } from './types';
|
|
3
|
+
import type { GeoPoint, Options } from '../../types';
|
|
5
4
|
import type { Navigation } from './navigation';
|
|
5
|
+
import type { Mode } from './types';
|
|
6
6
|
/**
|
|
7
7
|
* A gRPC-web client for a Navigation service.
|
|
8
8
|
*
|
|
@@ -13,15 +13,14 @@ export declare class NavigationClient implements Navigation {
|
|
|
13
13
|
private readonly name;
|
|
14
14
|
private readonly options;
|
|
15
15
|
constructor(client: RobotClient, name: string, options?: Options);
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
getWayPoints(extra?: {}): Promise<pb.Waypoint.AsObject[]>;
|
|
16
|
+
getMode(extra?: {}): Promise<import("../../gen/service/navigation/v1/navigation_pb").Mode>;
|
|
17
|
+
setMode(mode: Mode, extra?: {}): Promise<void>;
|
|
18
|
+
getLocation(extra?: {}): Promise<import("../../gen/service/navigation/v1/navigation_pb").GetLocationResponse>;
|
|
19
|
+
getWayPoints(extra?: {}): Promise<import("../../gen/service/navigation/v1/navigation_pb").Waypoint[]>;
|
|
21
20
|
addWayPoint(location: GeoPoint, extra?: {}): Promise<void>;
|
|
22
21
|
removeWayPoint(id: string, extra?: {}): Promise<void>;
|
|
23
|
-
getObstacles(extra?: {}): Promise<import("../../gen/common/v1/common_pb").GeoGeometry
|
|
24
|
-
getPaths(extra?: {}): Promise<
|
|
25
|
-
getProperties(): Promise<
|
|
26
|
-
doCommand(command:
|
|
22
|
+
getObstacles(extra?: {}): Promise<import("../../gen/common/v1/common_pb").GeoGeometry[]>;
|
|
23
|
+
getPaths(extra?: {}): Promise<import("../../gen/service/navigation/v1/navigation_pb").Path[]>;
|
|
24
|
+
getProperties(): Promise<import("../../gen/service/navigation/v1/navigation_pb").GetPropertiesResponse>;
|
|
25
|
+
doCommand(command: Struct): Promise<JsonValue>;
|
|
27
26
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,40 +1,41 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { Struct } from '@bufbuild/protobuf';
|
|
2
|
+
import type { GeoGeometry, GeoPoint, Resource } from '../../types';
|
|
3
|
+
import type { Mode, NavigationPosition, NavigationProperties, Path, Waypoint } from './types';
|
|
3
4
|
/**
|
|
4
5
|
* A service that uses GPS to automatically navigate a robot to user defined
|
|
5
6
|
* endpoints.
|
|
6
7
|
*/
|
|
7
8
|
export interface Navigation extends Resource {
|
|
8
9
|
/** Get the mode the robot is operating in. */
|
|
9
|
-
getMode: (extra?:
|
|
10
|
+
getMode: (extra?: Struct) => Promise<Mode>;
|
|
10
11
|
/**
|
|
11
12
|
* Set the mode the robot is operating in.
|
|
12
13
|
*
|
|
13
14
|
* @param mode - The mode for the service to operate in.
|
|
14
15
|
*/
|
|
15
|
-
setMode: (mode:
|
|
16
|
+
setMode: (mode: Mode, extra?: Struct) => Promise<void>;
|
|
16
17
|
/** Get the current location of the robot. */
|
|
17
|
-
getLocation: (extra?:
|
|
18
|
+
getLocation: (extra?: Struct) => Promise<NavigationPosition>;
|
|
18
19
|
/** Get an array of waypoints currently in the service's data storage. */
|
|
19
|
-
getWayPoints: (extra?:
|
|
20
|
+
getWayPoints: (extra?: Struct) => Promise<Waypoint[]>;
|
|
20
21
|
/**
|
|
21
22
|
* Add a waypoint to the service's data storage.
|
|
22
23
|
*
|
|
23
24
|
* @param location - The current location of the robot n the navigation
|
|
24
25
|
* service with latitude and longitude values.
|
|
25
26
|
*/
|
|
26
|
-
addWayPoint: (location: GeoPoint, extra?:
|
|
27
|
+
addWayPoint: (location: GeoPoint, extra?: Struct) => Promise<void>;
|
|
27
28
|
/**
|
|
28
29
|
* Remove a waypoint from the service's data storage.
|
|
29
30
|
*
|
|
30
31
|
* @param id - The MongoDB ObjectID of the waypoint to remove from the
|
|
31
32
|
* service's data storage.
|
|
32
33
|
*/
|
|
33
|
-
removeWayPoint: (id: string, extra?:
|
|
34
|
+
removeWayPoint: (id: string, extra?: Struct) => Promise<void>;
|
|
34
35
|
/** Get a list of obstacles. */
|
|
35
|
-
getObstacles: (extra?:
|
|
36
|
+
getObstacles: (extra?: Struct) => Promise<GeoGeometry[]>;
|
|
36
37
|
/** Gets the list of paths known to the navigation service. */
|
|
37
|
-
getPaths: (extra?:
|
|
38
|
+
getPaths: (extra?: Struct) => Promise<Path[]>;
|
|
38
39
|
/** Gets information on the properties of the current navigation service. */
|
|
39
40
|
getProperties: () => Promise<NavigationProperties>;
|
|
40
41
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
export type
|
|
4
|
-
export type
|
|
5
|
-
export type
|
|
6
|
-
export type
|
|
1
|
+
import type { PlainMessage } from '@bufbuild/protobuf';
|
|
2
|
+
import * as navigationApi from '../../gen/service/navigation/v1/navigation_pb';
|
|
3
|
+
export type NavigationPosition = navigationApi.GetLocationResponse;
|
|
4
|
+
export type NavigationProperties = navigationApi.GetPropertiesResponse;
|
|
5
|
+
export type Mode = navigationApi.Mode;
|
|
6
|
+
export type Path = PlainMessage<navigationApi.Path>;
|
|
7
|
+
export type Waypoint = PlainMessage<navigationApi.Waypoint>;
|
|
8
|
+
export declare const NavigationPosition: typeof navigationApi.GetLocationResponse, NavigationProperties: typeof navigationApi.GetPropertiesResponse, Mode: typeof navigationApi.Mode, Path: typeof navigationApi.Path, Waypoint: typeof navigationApi.Waypoint;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type { Navigation } from './navigation/navigation';
|
|
2
|
-
export type { ModeMap, Waypoint, NavigationPosition, Path, NavigationProperties, } from './navigation/types';
|
|
3
1
|
export { NavigationClient } from './navigation/client';
|
|
2
|
+
export type { Navigation } from './navigation/navigation';
|
|
3
|
+
export { NavigationPosition, NavigationProperties, Path, Waypoint, type Mode, } from './navigation/types';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { JsonValue, Struct } from '@bufbuild/protobuf';
|
|
2
2
|
import { RobotClient } from '../../robot';
|
|
3
|
-
import type { Options
|
|
3
|
+
import type { Options } from '../../types';
|
|
4
4
|
import type { Slam } from './slam';
|
|
5
5
|
/**
|
|
6
6
|
* A gRPC-web client for a SLAM service.
|
|
@@ -12,10 +12,9 @@ export declare class SlamClient implements Slam {
|
|
|
12
12
|
private readonly name;
|
|
13
13
|
private readonly options;
|
|
14
14
|
constructor(client: RobotClient, name: string, options?: Options);
|
|
15
|
-
|
|
16
|
-
getPosition(): Promise<pb.GetPositionResponse.AsObject>;
|
|
15
|
+
getPosition(): Promise<import("../../gen/service/slam/v1/slam_pb").GetPositionResponse>;
|
|
17
16
|
getPointCloudMap: (returnEditedMap?: boolean) => Promise<Uint8Array>;
|
|
18
17
|
getInternalState: () => Promise<Uint8Array>;
|
|
19
|
-
getProperties(): Promise<
|
|
20
|
-
doCommand(command:
|
|
18
|
+
getProperties(): Promise<import("../../gen/service/slam/v1/slam_pb").GetPropertiesResponse>;
|
|
19
|
+
doCommand(command: Struct): Promise<JsonValue>;
|
|
21
20
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
export type SlamPosition =
|
|
3
|
-
export type SlamProperties =
|
|
1
|
+
import * as slamApi from '../../gen/service/slam/v1/slam_pb';
|
|
2
|
+
export type SlamPosition = slamApi.GetPositionResponse;
|
|
3
|
+
export type SlamProperties = slamApi.GetPropertiesResponse;
|
|
4
|
+
export declare const SlamPosition: typeof slamApi.GetPositionResponse, SlamProperties: typeof slamApi.GetPropertiesResponse;
|
package/dist/services/slam.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import commonPB from '../../gen/common/v1/common_pb';
|
|
1
|
+
import { Struct, type JsonValue } from '@bufbuild/protobuf';
|
|
3
2
|
import type { MimeType } from '../../main';
|
|
4
3
|
import type { RobotClient } from '../../robot';
|
|
5
|
-
import type { Options
|
|
6
|
-
import type { Vision } from './vision';
|
|
4
|
+
import type { Options } from '../../types';
|
|
7
5
|
import type { CaptureAllOptions } from './types';
|
|
6
|
+
import type { Vision } from './vision';
|
|
8
7
|
/**
|
|
9
8
|
* A gRPC-web client for a Vision service.
|
|
10
9
|
*
|
|
@@ -15,26 +14,21 @@ export declare class VisionClient implements Vision {
|
|
|
15
14
|
private readonly name;
|
|
16
15
|
private readonly options;
|
|
17
16
|
constructor(client: RobotClient, name: string, options?: Options);
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
getObjectPointClouds(cameraName: string, extra?: StructType): Promise<commonPB.PointCloudObject.AsObject[]>;
|
|
17
|
+
getDetectionsFromCamera(cameraName: string, extra?: {}): Promise<import("../../gen/service/vision/v1/vision_pb").Detection[]>;
|
|
18
|
+
getDetections(image: Uint8Array, width: number, height: number, mimeType: MimeType, extra?: {}): Promise<import("../../gen/service/vision/v1/vision_pb").Detection[]>;
|
|
19
|
+
getClassificationsFromCamera(cameraName: string, count: number, extra?: {}): Promise<import("../../gen/service/vision/v1/vision_pb").Classification[]>;
|
|
20
|
+
getClassifications(image: Uint8Array, width: number, height: number, mimeType: MimeType, count: number, extra?: {}): Promise<import("../../gen/service/vision/v1/vision_pb").Classification[]>;
|
|
21
|
+
getObjectPointClouds(cameraName: string, extra?: {}): Promise<import("../../gen/common/v1/common_pb").PointCloudObject[]>;
|
|
24
22
|
getProperties(extra?: {}): Promise<{
|
|
25
23
|
classificationsSupported: boolean;
|
|
26
24
|
detectionsSupported: boolean;
|
|
27
25
|
objectPointCloudsSupported: boolean;
|
|
28
26
|
}>;
|
|
29
27
|
captureAllFromCamera(cameraName: string, { returnImage, returnClassifications, returnDetections, returnObjectPointClouds, }: CaptureAllOptions, extra?: {}): Promise<{
|
|
30
|
-
image:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
} | undefined;
|
|
35
|
-
classifications: pb.Classification.AsObject[];
|
|
36
|
-
detections: pb.Detection.AsObject[];
|
|
37
|
-
objectPointClouds: commonPB.PointCloudObject.AsObject[];
|
|
28
|
+
image: import("../../gen/component/camera/v1/camera_pb").Image | undefined;
|
|
29
|
+
classifications: import("../../gen/service/vision/v1/vision_pb").Classification[];
|
|
30
|
+
detections: import("../../gen/service/vision/v1/vision_pb").Detection[];
|
|
31
|
+
objectPointClouds: import("../../gen/common/v1/common_pb").PointCloudObject[];
|
|
38
32
|
}>;
|
|
39
|
-
doCommand(command:
|
|
33
|
+
doCommand(command: Struct): Promise<JsonValue>;
|
|
40
34
|
}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
export type Classification =
|
|
6
|
-
export type
|
|
1
|
+
import type { Image } from '../../gen/component/camera/v1/camera_pb';
|
|
2
|
+
import type { PlainMessage } from '@bufbuild/protobuf';
|
|
3
|
+
import * as commonApi from '../../gen/common/v1/common_pb';
|
|
4
|
+
import * as visionApi from '../../gen/service/vision/v1/vision_pb';
|
|
5
|
+
export type Classification = PlainMessage<visionApi.Classification>;
|
|
6
|
+
export type Detection = PlainMessage<visionApi.Detection>;
|
|
7
|
+
export declare const Classification: typeof visionApi.Classification, Detection: typeof visionApi.Detection;
|
|
8
|
+
export type PointCloudObject = PlainMessage<commonApi.PointCloudObject>;
|
|
9
|
+
export declare const PointCloudObject: typeof commonApi.PointCloudObject;
|
|
7
10
|
export interface Properties {
|
|
8
11
|
/** Whether or not classifactions are supported by the vision service */
|
|
9
12
|
classificationsSupported: boolean;
|
|
@@ -19,7 +22,7 @@ export interface CaptureAllOptions {
|
|
|
19
22
|
returnObjectPointClouds: boolean;
|
|
20
23
|
}
|
|
21
24
|
export interface CaptureAllResponse {
|
|
22
|
-
image:
|
|
25
|
+
image: Image | undefined;
|
|
23
26
|
classifications: Classification[];
|
|
24
27
|
detections: Detection[];
|
|
25
28
|
objectPointClouds: PointCloudObject[];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { Struct } from '@bufbuild/protobuf';
|
|
1
2
|
import type { MimeType } from '../../main';
|
|
2
|
-
import type { Resource
|
|
3
|
-
import type { Classification, Detection, PointCloudObject, Properties
|
|
3
|
+
import type { Resource } from '../../types';
|
|
4
|
+
import type { CaptureAllOptions, CaptureAllResponse, Classification, Detection, PointCloudObject, Properties } from './types';
|
|
4
5
|
/** A service that enables various computer vision algorithms */
|
|
5
6
|
export interface Vision extends Resource {
|
|
6
7
|
/**
|
|
@@ -9,7 +10,7 @@ export interface Vision extends Resource {
|
|
|
9
10
|
* @param cameraName - The name of the camera to use for detection.
|
|
10
11
|
* @returns - The list of Detections.
|
|
11
12
|
*/
|
|
12
|
-
getDetectionsFromCamera: (cameraName: string, extra?:
|
|
13
|
+
getDetectionsFromCamera: (cameraName: string, extra?: Struct) => Promise<Detection[]>;
|
|
13
14
|
/**
|
|
14
15
|
* Get a list of detections in the given image.
|
|
15
16
|
*
|
|
@@ -19,7 +20,7 @@ export interface Vision extends Resource {
|
|
|
19
20
|
* @param mimeType - The MimeType of the image.
|
|
20
21
|
* @returns - The list of Detections.
|
|
21
22
|
*/
|
|
22
|
-
getDetections: (image: Uint8Array, width: number, height: number, mimeType: MimeType, extra?:
|
|
23
|
+
getDetections: (image: Uint8Array, width: number, height: number, mimeType: MimeType, extra?: Struct) => Promise<Detection[]>;
|
|
23
24
|
/**
|
|
24
25
|
* Get a list of classifications in the next image given a camera.
|
|
25
26
|
*
|
|
@@ -27,7 +28,7 @@ export interface Vision extends Resource {
|
|
|
27
28
|
* @param count - The number of Classifications requested.
|
|
28
29
|
* @returns - The list of Classifications.
|
|
29
30
|
*/
|
|
30
|
-
getClassificationsFromCamera: (cameraName: string, count: number, extra?:
|
|
31
|
+
getClassificationsFromCamera: (cameraName: string, count: number, extra?: Struct) => Promise<Classification[]>;
|
|
31
32
|
/**
|
|
32
33
|
* Get a list of classifications in the given image.
|
|
33
34
|
*
|
|
@@ -38,7 +39,7 @@ export interface Vision extends Resource {
|
|
|
38
39
|
* @param count - The number of Classifications requested.
|
|
39
40
|
* @returns - The list of Classifications.
|
|
40
41
|
*/
|
|
41
|
-
getClassifications: (image: Uint8Array, width: number, height: number, mimeType: MimeType, count: number, extra?:
|
|
42
|
+
getClassifications: (image: Uint8Array, width: number, height: number, mimeType: MimeType, count: number, extra?: Struct) => Promise<Classification[]>;
|
|
42
43
|
/**
|
|
43
44
|
* Returns a list of the 3D point cloud objects and associated metadata in the
|
|
44
45
|
* latest picture obtained from the specified 3D camera.
|
|
@@ -46,7 +47,7 @@ export interface Vision extends Resource {
|
|
|
46
47
|
* @param cameraName - The name of the camera.
|
|
47
48
|
* @returns - The list of PointCloudObjects
|
|
48
49
|
*/
|
|
49
|
-
getObjectPointClouds: (cameraName: string, extra?:
|
|
50
|
+
getObjectPointClouds: (cameraName: string, extra?: Struct) => Promise<PointCloudObject[]>;
|
|
50
51
|
/**
|
|
51
52
|
* Returns an object describing the properties of the vision service, namely
|
|
52
53
|
* booleans indicating whether classifications, detections, and 3d
|
|
@@ -54,7 +55,7 @@ export interface Vision extends Resource {
|
|
|
54
55
|
*
|
|
55
56
|
* @returns - The properties of the vision service
|
|
56
57
|
*/
|
|
57
|
-
getProperties: (extra?:
|
|
58
|
+
getProperties: (extra?: Struct) => Promise<Properties>;
|
|
58
59
|
/**
|
|
59
60
|
* Returns the requested image, classifications, detections, and 3d point
|
|
60
61
|
* cloud objects in the next image given a camera.
|
|
@@ -65,5 +66,5 @@ export interface Vision extends Resource {
|
|
|
65
66
|
* @returns - The requested image, classifications, detections, and 3d point
|
|
66
67
|
* cloud objects.
|
|
67
68
|
*/
|
|
68
|
-
captureAllFromCamera: (cameraName: string, opts: CaptureAllOptions, extra?:
|
|
69
|
+
captureAllFromCamera: (cameraName: string, opts: CaptureAllOptions, extra?: Struct) => Promise<CaptureAllResponse>;
|
|
69
70
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type { Vision } from './vision/vision';
|
|
2
|
-
export type { Detection, Classification, PointCloudObject, } from './vision/types';
|
|
3
1
|
export { VisionClient } from './vision/client';
|
|
2
|
+
export { Classification, Detection, PointCloudObject } from './vision/types';
|
|
3
|
+
export type { Vision } from './vision/vision';
|
package/dist/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type
|
|
2
|
-
|
|
3
|
-
export
|
|
1
|
+
import { Struct, type JsonValue, type PlainMessage } from '@bufbuild/protobuf';
|
|
2
|
+
export { Code, ConnectError } from '@connectrpc/connect';
|
|
3
|
+
export { ConnectionClosedError } from './rpc';
|
|
4
4
|
export interface Options {
|
|
5
5
|
requestLogger?: (req: unknown) => void;
|
|
6
6
|
}
|
|
@@ -10,20 +10,23 @@ export interface Resource {
|
|
|
10
10
|
*
|
|
11
11
|
* @param command - The command to execute.
|
|
12
12
|
*/
|
|
13
|
-
doCommand
|
|
13
|
+
doCommand(command: Struct): Promise<JsonValue>;
|
|
14
14
|
}
|
|
15
|
-
|
|
16
|
-
export type
|
|
17
|
-
export type
|
|
15
|
+
import * as commonApi from './gen/common/v1/common_pb';
|
|
16
|
+
export type Capsule = PlainMessage<commonApi.Capsule>;
|
|
17
|
+
export type GeoGeometry = PlainMessage<commonApi.GeoGeometry>;
|
|
18
|
+
export type GeoPoint = PlainMessage<commonApi.GeoPoint>;
|
|
19
|
+
export type GeometriesInFrame = PlainMessage<commonApi.GeometriesInFrame>;
|
|
20
|
+
export type Geometry = PlainMessage<commonApi.Geometry>;
|
|
21
|
+
export type Orientation = PlainMessage<commonApi.Orientation>;
|
|
22
|
+
export type Pose = PlainMessage<commonApi.Pose>;
|
|
23
|
+
export type PoseInFrame = PlainMessage<commonApi.PoseInFrame>;
|
|
24
|
+
export type RectangularPrism = PlainMessage<commonApi.RectangularPrism>;
|
|
25
|
+
export type ResourceName = PlainMessage<commonApi.ResourceName>;
|
|
26
|
+
export type Sphere = PlainMessage<commonApi.Sphere>;
|
|
27
|
+
export type Transform = PlainMessage<commonApi.Transform>;
|
|
28
|
+
export type Vector3 = PlainMessage<commonApi.Vector3>;
|
|
29
|
+
export type WorldState = PlainMessage<commonApi.WorldState>;
|
|
30
|
+
export declare const Capsule: typeof commonApi.Capsule, GeoGeometry: typeof commonApi.GeoGeometry, GeoPoint: typeof commonApi.GeoPoint, GeometriesInFrame: typeof commonApi.GeometriesInFrame, Geometry: typeof commonApi.Geometry, Orientation: typeof commonApi.Orientation, Pose: typeof commonApi.Pose, PoseInFrame: typeof commonApi.PoseInFrame, RectangularPrism: typeof commonApi.RectangularPrism, ResourceName: typeof commonApi.ResourceName, Sphere: typeof commonApi.Sphere, Transform: typeof commonApi.Transform, Vector3: typeof commonApi.Vector3, WorldState: typeof commonApi.WorldState;
|
|
18
31
|
export declare const isValidGeoPoint: (value: GeoPoint) => boolean;
|
|
19
|
-
export type
|
|
20
|
-
export type Orientation = common.Orientation.AsObject;
|
|
21
|
-
export type Pose = common.Pose.AsObject;
|
|
22
|
-
export type PoseInFrame = common.PoseInFrame.AsObject;
|
|
23
|
-
export type Transform = common.Transform.AsObject;
|
|
24
|
-
export type WorldState = common.WorldState.AsObject;
|
|
25
|
-
export type GeometriesInFrame = common.GeometriesInFrame.AsObject;
|
|
26
|
-
export type Geometry = common.Geometry.AsObject;
|
|
27
|
-
export type Sphere = common.Sphere.AsObject;
|
|
28
|
-
export type RectangularPrism = common.RectangularPrism.AsObject;
|
|
29
|
-
export type Capsule = common.Capsule.AsObject;
|
|
32
|
+
export { Duration, Struct, Timestamp, type JsonValue, type PlainMessage, } from '@bufbuild/protobuf';
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,39 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type {
|
|
3
|
-
import
|
|
4
|
-
import type { Options
|
|
5
|
-
|
|
6
|
-
type
|
|
7
|
-
export declare const promisify: <Req, Resp>(func: ServiceFunc<Req, Resp>, request: Req) => Promise<Resp>;
|
|
8
|
-
interface DoCommandClient {
|
|
9
|
-
doCommand: ServiceFunc<common.DoCommandRequest, common.DoCommandResponse>;
|
|
10
|
-
}
|
|
1
|
+
import { Struct, type JsonValue, type PartialMessage } from '@bufbuild/protobuf';
|
|
2
|
+
import type { CallOptions } from '@connectrpc/connect';
|
|
3
|
+
import { DoCommandRequest, DoCommandResponse } from './gen/common/v1/common_pb';
|
|
4
|
+
import type { Options } from './types';
|
|
5
|
+
export declare const clientHeaders: Headers;
|
|
6
|
+
type doCommand = (request: PartialMessage<DoCommandRequest>, options?: CallOptions) => Promise<DoCommandResponse>;
|
|
11
7
|
/** Send/Receive an arbitrary command using a resource client */
|
|
12
|
-
export declare const doCommandFromClient: (
|
|
13
|
-
/** Convert a 3D Vector POJO to a Protobuf Datatype */
|
|
14
|
-
export declare const encodeVector3: (value: Vector3) => common.Vector3;
|
|
15
|
-
/** Convert a Pose object to a Protobuf Datatype. */
|
|
16
|
-
export declare const encodePose: (obj: common.Pose.AsObject) => common.Pose;
|
|
17
|
-
/** Convert a PoseInFrame object to a Protobuf Datatype. */
|
|
18
|
-
export declare const encodePoseInFrame: (obj: common.PoseInFrame.AsObject) => common.PoseInFrame;
|
|
19
|
-
/** Convert a ResourceName object to a Protobuf Datatype. */
|
|
20
|
-
export declare const encodeResourceName: (obj: common.ResourceName.AsObject) => common.ResourceName;
|
|
21
|
-
export declare const encodeGeometry: (obj: common.Geometry.AsObject) => common.Geometry;
|
|
22
|
-
/** Convert a Transform object to a Protobuf Datatype. */
|
|
23
|
-
export declare const encodeTransform: (obj: common.Transform.AsObject) => common.Transform;
|
|
24
|
-
/** Convert a WorldState object to a Protobuf Datatype. */
|
|
25
|
-
export declare const encodeWorldState: (obj: common.WorldState.AsObject) => common.WorldState;
|
|
26
|
-
/** Convert a GeoPoint object to a Protobuf Datatype */
|
|
27
|
-
export declare const encodeGeoPoint: (obj: common.GeoPoint.AsObject) => common.GeoPoint;
|
|
28
|
-
/** Convert a GeoGeometry object to a Protobuf Datatype */
|
|
29
|
-
export declare const encodeGeoGeometry: (obj: common.GeoGeometry.AsObject) => common.GeoGeometry;
|
|
30
|
-
export declare class MetadataTransport implements grpc.Transport {
|
|
31
|
-
private metadata;
|
|
32
|
-
protected readonly transport: grpc.Transport;
|
|
33
|
-
constructor(transportFactory: grpc.TransportFactory, opts: grpc.TransportOptions, metadata?: grpc.Metadata);
|
|
34
|
-
start(metadata: grpc.Metadata): void;
|
|
35
|
-
sendMessage(msgBytes: Uint8Array): void;
|
|
36
|
-
finishSend(): void;
|
|
37
|
-
cancel(): void;
|
|
38
|
-
}
|
|
8
|
+
export declare const doCommandFromClient: (doCommander: doCommand, name: string, command: Struct, options?: Options) => Promise<JsonValue>;
|
|
39
9
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@viamrobotics/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/main.umd.js",
|
|
6
6
|
"module": "./dist/main.es.js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"typecheck": "concurrently -g npm:typecheck:*",
|
|
34
34
|
"typecheck:src": "tsc",
|
|
35
35
|
"typecheck:node": "tsc --project tsconfig.node.json",
|
|
36
|
-
"_eslint": "eslint '.*.cjs' '**/*.{ts,js,cjs}'
|
|
36
|
+
"_eslint": "eslint '.*.cjs' '**/*.{ts,js,cjs}'",
|
|
37
37
|
"_prettier": "prettier '.*.cjs' '**/*.{ts,js,cjs}'"
|
|
38
38
|
},
|
|
39
39
|
"repository": {
|
|
@@ -46,13 +46,13 @@
|
|
|
46
46
|
},
|
|
47
47
|
"homepage": "https://github.com/viamrobotics/viam-typescript-sdk#readme",
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"exponential-backoff": "^3.1.1"
|
|
49
|
+
"exponential-backoff": "^3.1.1",
|
|
50
|
+
"@bufbuild/protobuf": "^1.10.0",
|
|
51
|
+
"@connectrpc/connect": "^1.5.0",
|
|
52
|
+
"@connectrpc/connect-web": "^1.5.0"
|
|
50
53
|
},
|
|
51
54
|
"devDependencies": {
|
|
52
55
|
"@bufbuild/buf": "^1.15.0-1",
|
|
53
|
-
"@improbable-eng/grpc-web": "^0.15.0",
|
|
54
|
-
"@improbable-eng/grpc-web-fake-transport": "^0.15.0",
|
|
55
|
-
"@types/google-protobuf": "^3.15.6",
|
|
56
56
|
"@types/node": "^20.11.10",
|
|
57
57
|
"@typescript-eslint/eslint-plugin": "^6.17.0",
|
|
58
58
|
"@typescript-eslint/parser": "^6.17.0",
|
|
@@ -65,15 +65,12 @@
|
|
|
65
65
|
"eslint-config-prettier": "^9.1.0",
|
|
66
66
|
"eslint-plugin-tsdoc": "^0.2.17",
|
|
67
67
|
"eslint-plugin-vitest": "^0.3.20",
|
|
68
|
-
"google-protobuf": "^3.21.2",
|
|
69
68
|
"grpc-web": "^1.4.2",
|
|
70
69
|
"happy-dom": "^8.2.6",
|
|
71
70
|
"npm-check": "^6.0.1",
|
|
72
71
|
"prettier": "^3.1.1",
|
|
73
72
|
"prettier-plugin-jsdoc": "^1.1.1",
|
|
74
|
-
"protoc-gen-js": "^3.21.2",
|
|
75
73
|
"ts-node": "^10.9.2",
|
|
76
|
-
"ts-protoc-gen": "^0.15.0",
|
|
77
74
|
"typedoc": "^0.25.4",
|
|
78
75
|
"typescript": "^5.3.3",
|
|
79
76
|
"vite": "^5.0.10",
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
// package: viam.app.agent.v1
|
|
2
|
-
// file: app/agent/v1/agent.proto
|
|
3
|
-
|
|
4
|
-
import * as app_agent_v1_agent_pb from "../../../app/agent/v1/agent_pb";
|
|
5
|
-
import {grpc} from "@improbable-eng/grpc-web";
|
|
6
|
-
|
|
7
|
-
type AgentDeviceServiceDeviceAgentConfig = {
|
|
8
|
-
readonly methodName: string;
|
|
9
|
-
readonly service: typeof AgentDeviceService;
|
|
10
|
-
readonly requestStream: false;
|
|
11
|
-
readonly responseStream: false;
|
|
12
|
-
readonly requestType: typeof app_agent_v1_agent_pb.DeviceAgentConfigRequest;
|
|
13
|
-
readonly responseType: typeof app_agent_v1_agent_pb.DeviceAgentConfigResponse;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export class AgentDeviceService {
|
|
17
|
-
static readonly serviceName: string;
|
|
18
|
-
static readonly DeviceAgentConfig: AgentDeviceServiceDeviceAgentConfig;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
|
|
22
|
-
export type Status = { details: string, code: number; metadata: grpc.Metadata }
|
|
23
|
-
|
|
24
|
-
interface UnaryResponse {
|
|
25
|
-
cancel(): void;
|
|
26
|
-
}
|
|
27
|
-
interface ResponseStream<T> {
|
|
28
|
-
cancel(): void;
|
|
29
|
-
on(type: 'data', handler: (message: T) => void): ResponseStream<T>;
|
|
30
|
-
on(type: 'end', handler: (status?: Status) => void): ResponseStream<T>;
|
|
31
|
-
on(type: 'status', handler: (status: Status) => void): ResponseStream<T>;
|
|
32
|
-
}
|
|
33
|
-
interface RequestStream<T> {
|
|
34
|
-
write(message: T): RequestStream<T>;
|
|
35
|
-
end(): void;
|
|
36
|
-
cancel(): void;
|
|
37
|
-
on(type: 'end', handler: (status?: Status) => void): RequestStream<T>;
|
|
38
|
-
on(type: 'status', handler: (status: Status) => void): RequestStream<T>;
|
|
39
|
-
}
|
|
40
|
-
interface BidirectionalStream<ReqT, ResT> {
|
|
41
|
-
write(message: ReqT): BidirectionalStream<ReqT, ResT>;
|
|
42
|
-
end(): void;
|
|
43
|
-
cancel(): void;
|
|
44
|
-
on(type: 'data', handler: (message: ResT) => void): BidirectionalStream<ReqT, ResT>;
|
|
45
|
-
on(type: 'end', handler: (status?: Status) => void): BidirectionalStream<ReqT, ResT>;
|
|
46
|
-
on(type: 'status', handler: (status: Status) => void): BidirectionalStream<ReqT, ResT>;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export class AgentDeviceServiceClient {
|
|
50
|
-
readonly serviceHost: string;
|
|
51
|
-
|
|
52
|
-
constructor(serviceHost: string, options?: grpc.RpcOptions);
|
|
53
|
-
deviceAgentConfig(
|
|
54
|
-
requestMessage: app_agent_v1_agent_pb.DeviceAgentConfigRequest,
|
|
55
|
-
metadata: grpc.Metadata,
|
|
56
|
-
callback: (error: ServiceError|null, responseMessage: app_agent_v1_agent_pb.DeviceAgentConfigResponse|null) => void
|
|
57
|
-
): UnaryResponse;
|
|
58
|
-
deviceAgentConfig(
|
|
59
|
-
requestMessage: app_agent_v1_agent_pb.DeviceAgentConfigRequest,
|
|
60
|
-
callback: (error: ServiceError|null, responseMessage: app_agent_v1_agent_pb.DeviceAgentConfigResponse|null) => void
|
|
61
|
-
): UnaryResponse;
|
|
62
|
-
}
|
|
63
|
-
|