viam-sdk 0.45.2__py3-none-win_amd64.whl
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.
Potentially problematic release.
This version of viam-sdk might be problematic. Click here for more details.
- viam/__init__.py +71 -0
- viam/app/__init__.py +0 -0
- viam/app/_logs.py +34 -0
- viam/app/app_client.py +2525 -0
- viam/app/billing_client.py +143 -0
- viam/app/data_client.py +1715 -0
- viam/app/ml_training_client.py +251 -0
- viam/app/provisioning_client.py +95 -0
- viam/app/viam_client.py +260 -0
- viam/components/__init__.py +0 -0
- viam/components/arm/__init__.py +16 -0
- viam/components/arm/arm.py +223 -0
- viam/components/arm/client.py +124 -0
- viam/components/arm/service.py +123 -0
- viam/components/audio_input/__init__.py +18 -0
- viam/components/audio_input/audio_input.py +81 -0
- viam/components/audio_input/client.py +70 -0
- viam/components/audio_input/service.py +114 -0
- viam/components/base/__init__.py +13 -0
- viam/components/base/base.py +260 -0
- viam/components/base/client.py +153 -0
- viam/components/base/service.py +138 -0
- viam/components/board/__init__.py +9 -0
- viam/components/board/board.py +414 -0
- viam/components/board/client.py +241 -0
- viam/components/board/service.py +223 -0
- viam/components/button/__init__.py +10 -0
- viam/components/button/button.py +41 -0
- viam/components/button/client.py +52 -0
- viam/components/button/service.py +46 -0
- viam/components/camera/__init__.py +22 -0
- viam/components/camera/camera.py +138 -0
- viam/components/camera/client.py +98 -0
- viam/components/camera/service.py +105 -0
- viam/components/component_base.py +65 -0
- viam/components/encoder/__init__.py +18 -0
- viam/components/encoder/client.py +83 -0
- viam/components/encoder/encoder.py +118 -0
- viam/components/encoder/service.py +72 -0
- viam/components/gantry/__init__.py +11 -0
- viam/components/gantry/client.py +115 -0
- viam/components/gantry/gantry.py +156 -0
- viam/components/gantry/service.py +113 -0
- viam/components/generic/__init__.py +18 -0
- viam/components/generic/client.py +62 -0
- viam/components/generic/generic.py +76 -0
- viam/components/generic/service.py +40 -0
- viam/components/gripper/__init__.py +11 -0
- viam/components/gripper/client.py +85 -0
- viam/components/gripper/gripper.py +114 -0
- viam/components/gripper/service.py +81 -0
- viam/components/input/__init__.py +15 -0
- viam/components/input/client.py +194 -0
- viam/components/input/input.py +297 -0
- viam/components/input/service.py +175 -0
- viam/components/motor/__init__.py +11 -0
- viam/components/motor/client.py +168 -0
- viam/components/motor/motor.py +301 -0
- viam/components/motor/service.py +150 -0
- viam/components/movement_sensor/__init__.py +21 -0
- viam/components/movement_sensor/client.py +161 -0
- viam/components/movement_sensor/movement_sensor.py +253 -0
- viam/components/movement_sensor/service.py +146 -0
- viam/components/pose_tracker/__init__.py +17 -0
- viam/components/pose_tracker/client.py +50 -0
- viam/components/pose_tracker/pose_tracker.py +40 -0
- viam/components/pose_tracker/service.py +45 -0
- viam/components/power_sensor/__init__.py +17 -0
- viam/components/power_sensor/client.py +86 -0
- viam/components/power_sensor/power_sensor.py +104 -0
- viam/components/power_sensor/service.py +72 -0
- viam/components/sensor/__init__.py +18 -0
- viam/components/sensor/client.py +49 -0
- viam/components/sensor/sensor.py +48 -0
- viam/components/sensor/service.py +51 -0
- viam/components/servo/__init__.py +11 -0
- viam/components/servo/client.py +86 -0
- viam/components/servo/service.py +80 -0
- viam/components/servo/servo.py +114 -0
- viam/components/switch/__init__.py +10 -0
- viam/components/switch/client.py +83 -0
- viam/components/switch/service.py +72 -0
- viam/components/switch/switch.py +95 -0
- viam/errors.py +105 -0
- viam/gen/__init__.py +0 -0
- viam/gen/app/__init__.py +0 -0
- viam/gen/app/agent/__init__.py +0 -0
- viam/gen/app/agent/v1/__init__.py +0 -0
- viam/gen/app/agent/v1/agent_grpc.py +29 -0
- viam/gen/app/agent/v1/agent_pb2.py +47 -0
- viam/gen/app/agent/v1/agent_pb2.pyi +280 -0
- viam/gen/app/cloudslam/__init__.py +0 -0
- viam/gen/app/cloudslam/v1/__init__.py +0 -0
- viam/gen/app/cloudslam/v1/cloud_slam_grpc.py +70 -0
- viam/gen/app/cloudslam/v1/cloud_slam_pb2.py +54 -0
- viam/gen/app/cloudslam/v1/cloud_slam_pb2.pyi +384 -0
- viam/gen/app/data/__init__.py +0 -0
- viam/gen/app/data/v1/__init__.py +0 -0
- viam/gen/app/data/v1/data_grpc.py +206 -0
- viam/gen/app/data/v1/data_pb2.py +178 -0
- viam/gen/app/data/v1/data_pb2.pyi +1485 -0
- viam/gen/app/datapipelines/__init__.py +0 -0
- viam/gen/app/datapipelines/v1/__init__.py +0 -0
- viam/gen/app/datapipelines/v1/data_pipelines_grpc.py +84 -0
- viam/gen/app/datapipelines/v1/data_pipelines_pb2.py +56 -0
- viam/gen/app/datapipelines/v1/data_pipelines_pb2.pyi +370 -0
- viam/gen/app/dataset/__init__.py +0 -0
- viam/gen/app/dataset/v1/__init__.py +0 -0
- viam/gen/app/dataset/v1/dataset_grpc.py +60 -0
- viam/gen/app/dataset/v1/dataset_pb2.py +40 -0
- viam/gen/app/dataset/v1/dataset_pb2.pyi +179 -0
- viam/gen/app/datasync/__init__.py +0 -0
- viam/gen/app/datasync/v1/__init__.py +0 -0
- viam/gen/app/datasync/v1/data_sync_grpc.py +47 -0
- viam/gen/app/datasync/v1/data_sync_pb2.py +70 -0
- viam/gen/app/datasync/v1/data_sync_pb2.pyi +425 -0
- viam/gen/app/mlinference/__init__.py +0 -0
- viam/gen/app/mlinference/v1/__init__.py +0 -0
- viam/gen/app/mlinference/v1/ml_inference_grpc.py +28 -0
- viam/gen/app/mlinference/v1/ml_inference_pb2.py +23 -0
- viam/gen/app/mlinference/v1/ml_inference_pb2.pyi +63 -0
- viam/gen/app/mltraining/__init__.py +0 -0
- viam/gen/app/mltraining/v1/__init__.py +0 -0
- viam/gen/app/mltraining/v1/ml_training_grpc.py +78 -0
- viam/gen/app/mltraining/v1/ml_training_pb2.py +124 -0
- viam/gen/app/mltraining/v1/ml_training_pb2.pyi +415 -0
- viam/gen/app/packages/__init__.py +0 -0
- viam/gen/app/packages/v1/__init__.py +0 -0
- viam/gen/app/packages/v1/packages_grpc.py +54 -0
- viam/gen/app/packages/v1/packages_pb2.py +52 -0
- viam/gen/app/packages/v1/packages_pb2.pyi +311 -0
- viam/gen/app/v1/__init__.py +0 -0
- viam/gen/app/v1/app_grpc.py +863 -0
- viam/gen/app/v1/app_pb2.py +649 -0
- viam/gen/app/v1/app_pb2.pyi +5279 -0
- viam/gen/app/v1/billing_grpc.py +76 -0
- viam/gen/app/v1/billing_pb2.py +92 -0
- viam/gen/app/v1/billing_pb2.pyi +463 -0
- viam/gen/app/v1/end_user_grpc.py +59 -0
- viam/gen/app/v1/end_user_pb2.py +55 -0
- viam/gen/app/v1/end_user_pb2.pyi +181 -0
- viam/gen/app/v1/robot_grpc.py +55 -0
- viam/gen/app/v1/robot_pb2.py +127 -0
- viam/gen/app/v1/robot_pb2.pyi +1202 -0
- viam/gen/common/__init__.py +0 -0
- viam/gen/common/v1/__init__.py +0 -0
- viam/gen/common/v1/common_grpc.py +0 -0
- viam/gen/common/v1/common_pb2.py +78 -0
- viam/gen/common/v1/common_pb2.pyi +687 -0
- viam/gen/component/__init__.py +0 -0
- viam/gen/component/arm/__init__.py +0 -0
- viam/gen/component/arm/v1/__init__.py +0 -0
- viam/gen/component/arm/v1/arm_grpc.py +102 -0
- viam/gen/component/arm/v1/arm_pb2.py +74 -0
- viam/gen/component/arm/v1/arm_pb2.pyi +344 -0
- viam/gen/component/audioinput/__init__.py +0 -0
- viam/gen/component/audioinput/v1/__init__.py +0 -0
- viam/gen/component/audioinput/v1/audioinput_grpc.py +63 -0
- viam/gen/component/audioinput/v1/audioinput_pb2.py +45 -0
- viam/gen/component/audioinput/v1/audioinput_pb2.pyi +179 -0
- viam/gen/component/base/__init__.py +0 -0
- viam/gen/component/base/v1/__init__.py +0 -0
- viam/gen/component/base/v1/base_grpc.py +94 -0
- viam/gen/component/base/v1/base_pb2.py +66 -0
- viam/gen/component/base/v1/base_pb2.pyi +258 -0
- viam/gen/component/board/__init__.py +0 -0
- viam/gen/component/board/v1/__init__.py +0 -0
- viam/gen/component/board/v1/board_grpc.py +127 -0
- viam/gen/component/board/v1/board_pb2.py +103 -0
- viam/gen/component/board/v1/board_pb2.pyi +496 -0
- viam/gen/component/button/__init__.py +0 -0
- viam/gen/component/button/v1/__init__.py +0 -0
- viam/gen/component/button/v1/button_grpc.py +38 -0
- viam/gen/component/button/v1/button_pb2.py +28 -0
- viam/gen/component/button/v1/button_pb2.pyi +39 -0
- viam/gen/component/camera/__init__.py +0 -0
- viam/gen/component/camera/v1/__init__.py +0 -0
- viam/gen/component/camera/v1/camera_grpc.py +79 -0
- viam/gen/component/camera/v1/camera_pb2.py +67 -0
- viam/gen/component/camera/v1/camera_pb2.pyi +373 -0
- viam/gen/component/encoder/__init__.py +0 -0
- viam/gen/component/encoder/v1/__init__.py +0 -0
- viam/gen/component/encoder/v1/encoder_grpc.py +62 -0
- viam/gen/component/encoder/v1/encoder_pb2.py +44 -0
- viam/gen/component/encoder/v1/encoder_pb2.pyi +147 -0
- viam/gen/component/gantry/__init__.py +0 -0
- viam/gen/component/gantry/v1/__init__.py +0 -0
- viam/gen/component/gantry/v1/gantry_grpc.py +86 -0
- viam/gen/component/gantry/v1/gantry_pb2.py +62 -0
- viam/gen/component/gantry/v1/gantry_pb2.pyi +239 -0
- viam/gen/component/generic/__init__.py +0 -0
- viam/gen/component/generic/v1/__init__.py +0 -0
- viam/gen/component/generic/v1/generic_grpc.py +37 -0
- viam/gen/component/generic/v1/generic_pb2.py +23 -0
- viam/gen/component/generic/v1/generic_pb2.pyi +6 -0
- viam/gen/component/gripper/__init__.py +0 -0
- viam/gen/component/gripper/v1/__init__.py +0 -0
- viam/gen/component/gripper/v1/gripper_grpc.py +70 -0
- viam/gen/component/gripper/v1/gripper_pb2.py +48 -0
- viam/gen/component/gripper/v1/gripper_pb2.pyi +137 -0
- viam/gen/component/inputcontroller/__init__.py +0 -0
- viam/gen/component/inputcontroller/v1/__init__.py +0 -0
- viam/gen/component/inputcontroller/v1/input_controller_grpc.py +71 -0
- viam/gen/component/inputcontroller/v1/input_controller_pb2.py +55 -0
- viam/gen/component/inputcontroller/v1/input_controller_pb2.pyi +243 -0
- viam/gen/component/motor/__init__.py +0 -0
- viam/gen/component/motor/v1/__init__.py +0 -0
- viam/gen/component/motor/v1/motor_grpc.py +118 -0
- viam/gen/component/motor/v1/motor_pb2.py +86 -0
- viam/gen/component/motor/v1/motor_pb2.pyi +368 -0
- viam/gen/component/movementsensor/__init__.py +0 -0
- viam/gen/component/movementsensor/v1/__init__.py +0 -0
- viam/gen/component/movementsensor/v1/movementsensor_grpc.py +110 -0
- viam/gen/component/movementsensor/v1/movementsensor_pb2.py +78 -0
- viam/gen/component/movementsensor/v1/movementsensor_pb2.pyi +384 -0
- viam/gen/component/posetracker/__init__.py +0 -0
- viam/gen/component/posetracker/v1/__init__.py +0 -0
- viam/gen/component/posetracker/v1/pose_tracker_grpc.py +46 -0
- viam/gen/component/posetracker/v1/pose_tracker_pb2.py +34 -0
- viam/gen/component/posetracker/v1/pose_tracker_pb2.pyi +79 -0
- viam/gen/component/powersensor/__init__.py +0 -0
- viam/gen/component/powersensor/v1/__init__.py +0 -0
- viam/gen/component/powersensor/v1/powersensor_grpc.py +62 -0
- viam/gen/component/powersensor/v1/powersensor_pb2.py +42 -0
- viam/gen/component/powersensor/v1/powersensor_pb2.pyi +124 -0
- viam/gen/component/sensor/__init__.py +0 -0
- viam/gen/component/sensor/v1/__init__.py +0 -0
- viam/gen/component/sensor/v1/sensor_grpc.py +45 -0
- viam/gen/component/sensor/v1/sensor_pb2.py +25 -0
- viam/gen/component/sensor/v1/sensor_pb2.pyi +6 -0
- viam/gen/component/servo/__init__.py +0 -0
- viam/gen/component/servo/v1/__init__.py +0 -0
- viam/gen/component/servo/v1/servo_grpc.py +70 -0
- viam/gen/component/servo/v1/servo_pb2.py +50 -0
- viam/gen/component/servo/v1/servo_pb2.pyi +150 -0
- viam/gen/component/switch/__init__.py +0 -0
- viam/gen/component/switch/v1/__init__.py +0 -0
- viam/gen/component/switch/v1/switch_grpc.py +54 -0
- viam/gen/component/switch/v1/switch_pb2.py +40 -0
- viam/gen/component/switch/v1/switch_pb2.pyi +109 -0
- viam/gen/component/testecho/__init__.py +0 -0
- viam/gen/component/testecho/v1/__init__.py +0 -0
- viam/gen/component/testecho/v1/testecho_grpc.py +52 -0
- viam/gen/component/testecho/v1/testecho_pb2.py +36 -0
- viam/gen/component/testecho/v1/testecho_pb2.pyi +114 -0
- viam/gen/module/__init__.py +0 -0
- viam/gen/module/v1/__init__.py +0 -0
- viam/gen/module/v1/module_grpc.py +61 -0
- viam/gen/module/v1/module_pb2.py +43 -0
- viam/gen/module/v1/module_pb2.pyi +211 -0
- viam/gen/proto/__init__.py +0 -0
- viam/gen/proto/rpc/__init__.py +0 -0
- viam/gen/proto/rpc/examples/__init__.py +0 -0
- viam/gen/proto/rpc/examples/echo/__init__.py +0 -0
- viam/gen/proto/rpc/examples/echo/v1/__init__.py +0 -0
- viam/gen/proto/rpc/examples/echo/v1/echo_grpc.py +44 -0
- viam/gen/proto/rpc/examples/echo/v1/echo_pb2.py +32 -0
- viam/gen/proto/rpc/examples/echo/v1/echo_pb2.pyi +87 -0
- viam/gen/proto/rpc/examples/echoresource/__init__.py +0 -0
- viam/gen/proto/rpc/examples/echoresource/v1/__init__.py +0 -0
- viam/gen/proto/rpc/examples/echoresource/v1/echoresource_grpc.py +43 -0
- viam/gen/proto/rpc/examples/echoresource/v1/echoresource_pb2.py +29 -0
- viam/gen/proto/rpc/examples/echoresource/v1/echoresource_pb2.pyi +93 -0
- viam/gen/proto/rpc/v1/__init__.py +0 -0
- viam/gen/proto/rpc/v1/auth_grpc.py +47 -0
- viam/gen/proto/rpc/v1/auth_pb2.py +34 -0
- viam/gen/proto/rpc/v1/auth_pb2.pyi +92 -0
- viam/gen/proto/rpc/webrtc/__init__.py +0 -0
- viam/gen/proto/rpc/webrtc/v1/__init__.py +0 -0
- viam/gen/proto/rpc/webrtc/v1/grpc_grpc.py +0 -0
- viam/gen/proto/rpc/webrtc/v1/grpc_pb2.py +43 -0
- viam/gen/proto/rpc/webrtc/v1/grpc_pb2.pyi +304 -0
- viam/gen/proto/rpc/webrtc/v1/signaling_grpc.py +54 -0
- viam/gen/proto/rpc/webrtc/v1/signaling_pb2.py +70 -0
- viam/gen/proto/rpc/webrtc/v1/signaling_pb2.pyi +496 -0
- viam/gen/provisioning/__init__.py +0 -0
- viam/gen/provisioning/v1/__init__.py +0 -0
- viam/gen/provisioning/v1/provisioning_grpc.py +51 -0
- viam/gen/provisioning/v1/provisioning_pb2.py +39 -0
- viam/gen/provisioning/v1/provisioning_pb2.pyi +188 -0
- viam/gen/robot/__init__.py +0 -0
- viam/gen/robot/v1/__init__.py +0 -0
- viam/gen/robot/v1/robot_grpc.py +208 -0
- viam/gen/robot/v1/robot_pb2.py +188 -0
- viam/gen/robot/v1/robot_pb2.pyi +1020 -0
- viam/gen/service/__init__.py +0 -0
- viam/gen/service/datamanager/__init__.py +0 -0
- viam/gen/service/datamanager/v1/__init__.py +0 -0
- viam/gen/service/datamanager/v1/data_manager_grpc.py +38 -0
- viam/gen/service/datamanager/v1/data_manager_pb2.py +28 -0
- viam/gen/service/datamanager/v1/data_manager_pb2.pyi +39 -0
- viam/gen/service/discovery/__init__.py +0 -0
- viam/gen/service/discovery/v1/__init__.py +0 -0
- viam/gen/service/discovery/v1/discovery_grpc.py +39 -0
- viam/gen/service/discovery/v1/discovery_pb2.py +29 -0
- viam/gen/service/discovery/v1/discovery_pb2.pyi +51 -0
- viam/gen/service/generic/__init__.py +0 -0
- viam/gen/service/generic/v1/__init__.py +0 -0
- viam/gen/service/generic/v1/generic_grpc.py +29 -0
- viam/gen/service/generic/v1/generic_pb2.py +21 -0
- viam/gen/service/generic/v1/generic_pb2.pyi +6 -0
- viam/gen/service/mlmodel/__init__.py +0 -0
- viam/gen/service/mlmodel/v1/__init__.py +0 -0
- viam/gen/service/mlmodel/v1/mlmodel_grpc.py +37 -0
- viam/gen/service/mlmodel/v1/mlmodel_pb2.py +83 -0
- viam/gen/service/mlmodel/v1/mlmodel_pb2.pyi +480 -0
- viam/gen/service/motion/__init__.py +0 -0
- viam/gen/service/motion/v1/__init__.py +0 -0
- viam/gen/service/motion/v1/motion_grpc.py +87 -0
- viam/gen/service/motion/v1/motion_pb2.py +97 -0
- viam/gen/service/motion/v1/motion_pb2.pyi +838 -0
- viam/gen/service/navigation/__init__.py +0 -0
- viam/gen/service/navigation/v1/__init__.py +0 -0
- viam/gen/service/navigation/v1/navigation_grpc.py +102 -0
- viam/gen/service/navigation/v1/navigation_pb2.py +84 -0
- viam/gen/service/navigation/v1/navigation_pb2.pyi +419 -0
- viam/gen/service/sensors/__init__.py +0 -0
- viam/gen/service/sensors/v1/__init__.py +0 -0
- viam/gen/service/sensors/v1/sensors_grpc.py +46 -0
- viam/gen/service/sensors/v1/sensors_pb2.py +68 -0
- viam/gen/service/sensors/v1/sensors_pb2.pyi +137 -0
- viam/gen/service/shell/__init__.py +0 -0
- viam/gen/service/shell/v1/__init__.py +0 -0
- viam/gen/service/shell/v1/shell_grpc.py +55 -0
- viam/gen/service/shell/v1/shell_pb2.py +45 -0
- viam/gen/service/shell/v1/shell_pb2.pyi +307 -0
- viam/gen/service/slam/__init__.py +0 -0
- viam/gen/service/slam/v1/__init__.py +0 -0
- viam/gen/service/slam/v1/slam_grpc.py +61 -0
- viam/gen/service/slam/v1/slam_pb2.py +51 -0
- viam/gen/service/slam/v1/slam_pb2.pyi +213 -0
- viam/gen/service/vision/__init__.py +0 -0
- viam/gen/service/vision/v1/__init__.py +0 -0
- viam/gen/service/vision/v1/vision_grpc.py +87 -0
- viam/gen/service/vision/v1/vision_pb2.py +69 -0
- viam/gen/service/vision/v1/vision_pb2.pyi +454 -0
- viam/gen/stream/__init__.py +0 -0
- viam/gen/stream/v1/__init__.py +0 -0
- viam/gen/stream/v1/stream_grpc.py +59 -0
- viam/gen/stream/v1/stream_pb2.py +39 -0
- viam/gen/stream/v1/stream_pb2.pyi +161 -0
- viam/gen/tagger/__init__.py +0 -0
- viam/gen/tagger/v1/__init__.py +0 -0
- viam/gen/tagger/v1/tagger_grpc.py +0 -0
- viam/gen/tagger/v1/tagger_pb2.py +16 -0
- viam/gen/tagger/v1/tagger_pb2.pyi +15 -0
- viam/logging.py +216 -0
- viam/media/__init__.py +0 -0
- viam/media/audio.py +16 -0
- viam/media/utils/__init__.py +0 -0
- viam/media/utils/pil/__init__.py +51 -0
- viam/media/utils/pil/viam_rgba_plugin.py +73 -0
- viam/media/viam_rgba.py +10 -0
- viam/media/video.py +217 -0
- viam/module/__init__.py +5 -0
- viam/module/module.py +281 -0
- viam/module/service.py +66 -0
- viam/module/types.py +23 -0
- viam/operations.py +124 -0
- viam/proto/__init__.py +0 -0
- viam/proto/app/__init__.py +554 -0
- viam/proto/app/agent/__init__.py +28 -0
- viam/proto/app/billing.py +58 -0
- viam/proto/app/cloudslam/__init__.py +48 -0
- viam/proto/app/data/__init__.py +138 -0
- viam/proto/app/datapipelines/__init__.py +56 -0
- viam/proto/app/dataset/__init__.py +36 -0
- viam/proto/app/datasync/__init__.py +44 -0
- viam/proto/app/end_user.py +34 -0
- viam/proto/app/mlinference/__init__.py +15 -0
- viam/proto/app/mltraining/__init__.py +52 -0
- viam/proto/app/packages/__init__.py +38 -0
- viam/proto/app/robot.py +84 -0
- viam/proto/common/__init__.py +66 -0
- viam/proto/component/__init__.py +0 -0
- viam/proto/component/arm/__init__.py +48 -0
- viam/proto/component/audioinput/__init__.py +30 -0
- viam/proto/component/base/__init__.py +42 -0
- viam/proto/component/board/__init__.py +62 -0
- viam/proto/component/button/__init__.py +15 -0
- viam/proto/component/camera/__init__.py +46 -0
- viam/proto/component/encoder/__init__.py +28 -0
- viam/proto/component/gantry/__init__.py +40 -0
- viam/proto/component/generic/__init__.py +12 -0
- viam/proto/component/gripper/__init__.py +30 -0
- viam/proto/component/inputcontroller/__init__.py +38 -0
- viam/proto/component/motor/__init__.py +56 -0
- viam/proto/component/movementsensor/__init__.py +50 -0
- viam/proto/component/posetracker/__init__.py +19 -0
- viam/proto/component/powersensor/__init__.py +30 -0
- viam/proto/component/sensor/__init__.py +12 -0
- viam/proto/component/servo/__init__.py +32 -0
- viam/proto/component/switch/__init__.py +26 -0
- viam/proto/component/testecho/__init__.py +30 -0
- viam/proto/module/__init__.py +38 -0
- viam/proto/provisioning/__init__.py +36 -0
- viam/proto/robot/__init__.py +130 -0
- viam/proto/rpc/__init__.py +0 -0
- viam/proto/rpc/auth.py +34 -0
- viam/proto/rpc/examples/__init__.py +0 -0
- viam/proto/rpc/examples/echo/__init__.py +26 -0
- viam/proto/rpc/examples/echoresource/__init__.py +30 -0
- viam/proto/rpc/webrtc/__init__.py +0 -0
- viam/proto/rpc/webrtc/grpc.py +36 -0
- viam/proto/rpc/webrtc/signaling.py +58 -0
- viam/proto/service/__init__.py +0 -0
- viam/proto/service/datamanager/__init__.py +19 -0
- viam/proto/service/discovery/__init__.py +15 -0
- viam/proto/service/generic/__init__.py +12 -0
- viam/proto/service/mlmodel/__init__.py +54 -0
- viam/proto/service/motion/__init__.py +68 -0
- viam/proto/service/navigation/__init__.py +58 -0
- viam/proto/service/sensors/__init__.py +18 -0
- viam/proto/service/shell/__init__.py +36 -0
- viam/proto/service/slam/__init__.py +36 -0
- viam/proto/service/vision/__init__.py +46 -0
- viam/proto/stream/__init__.py +36 -0
- viam/proto/tagger/__init__.py +6 -0
- viam/py.typed +0 -0
- viam/resource/__init__.py +0 -0
- viam/resource/base.py +123 -0
- viam/resource/easy_resource.py +153 -0
- viam/resource/manager.py +126 -0
- viam/resource/registry.py +199 -0
- viam/resource/rpc_client_base.py +65 -0
- viam/resource/rpc_service_base.py +48 -0
- viam/resource/types.py +213 -0
- viam/robot/__init__.py +0 -0
- viam/robot/client.py +909 -0
- viam/robot/service.py +69 -0
- viam/rpc/__init__.py +0 -0
- viam/rpc/dial.py +420 -0
- viam/rpc/libviam_rust_utils.dll +0 -0
- viam/rpc/server.py +201 -0
- viam/rpc/signaling.py +29 -0
- viam/rpc/types.py +22 -0
- viam/services/__init__.py +0 -0
- viam/services/discovery/__init__.py +12 -0
- viam/services/discovery/client.py +55 -0
- viam/services/discovery/discovery.py +52 -0
- viam/services/discovery/service.py +43 -0
- viam/services/generic/__init__.py +18 -0
- viam/services/generic/client.py +58 -0
- viam/services/generic/generic.py +58 -0
- viam/services/generic/service.py +29 -0
- viam/services/mlmodel/__init__.py +24 -0
- viam/services/mlmodel/client.py +37 -0
- viam/services/mlmodel/mlmodel.py +78 -0
- viam/services/mlmodel/service.py +38 -0
- viam/services/mlmodel/utils.py +101 -0
- viam/services/motion/__init__.py +17 -0
- viam/services/motion/client.py +215 -0
- viam/services/motion/motion.py +378 -0
- viam/services/motion/service.py +132 -0
- viam/services/navigation/__init__.py +11 -0
- viam/services/navigation/client.py +99 -0
- viam/services/navigation/navigation.py +250 -0
- viam/services/navigation/service.py +137 -0
- viam/services/service_base.py +78 -0
- viam/services/service_client_base.py +46 -0
- viam/services/slam/__init__.py +17 -0
- viam/services/slam/client.py +62 -0
- viam/services/slam/service.py +75 -0
- viam/services/slam/slam.py +111 -0
- viam/services/vision/__init__.py +15 -0
- viam/services/vision/client.py +206 -0
- viam/services/vision/service.py +146 -0
- viam/services/vision/vision.py +315 -0
- viam/sessions_client.py +245 -0
- viam/streams.py +44 -0
- viam/utils.py +365 -0
- viam/version_metadata.py +4 -0
- viam_sdk-0.45.2.dist-info/METADATA +157 -0
- viam_sdk-0.45.2.dist-info/RECORD +476 -0
- viam_sdk-0.45.2.dist-info/WHEEL +4 -0
- viam_sdk-0.45.2.dist-info/licenses/LICENSE +202 -0
viam/operations.py
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import asyncio
|
|
2
|
+
import functools
|
|
3
|
+
import sys
|
|
4
|
+
import time
|
|
5
|
+
from typing import Any, Callable, Coroutine, Mapping, Optional, TypeVar, cast
|
|
6
|
+
from uuid import UUID, uuid4
|
|
7
|
+
|
|
8
|
+
from typing_extensions import Self
|
|
9
|
+
|
|
10
|
+
if sys.version_info >= (3, 10):
|
|
11
|
+
from typing import ParamSpec
|
|
12
|
+
else:
|
|
13
|
+
from typing_extensions import ParamSpec
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class Operation:
|
|
17
|
+
"""An Operation represents a running operation.
|
|
18
|
+
|
|
19
|
+
Every request made to a robot's components will create a new Operation on the server. For custom components built with this python-sdk,
|
|
20
|
+
you should check whether the operation has been cancelled to prevent long-running tasks from leaking.
|
|
21
|
+
"""
|
|
22
|
+
|
|
23
|
+
ARG_NAME = "viam_operation"
|
|
24
|
+
|
|
25
|
+
id: UUID
|
|
26
|
+
method: str
|
|
27
|
+
time_started: float
|
|
28
|
+
_cancel_event: asyncio.Event
|
|
29
|
+
_cancelled: bool
|
|
30
|
+
|
|
31
|
+
def __init__(self, method: str, cancel_event: asyncio.Event, opid: Optional[UUID] = None) -> None:
|
|
32
|
+
self.id = uuid4() if opid is None else opid
|
|
33
|
+
self.method = method
|
|
34
|
+
self.time_started = time.time()
|
|
35
|
+
self._cancel_event = cancel_event
|
|
36
|
+
self._cancelled = False
|
|
37
|
+
|
|
38
|
+
async def is_cancelled(self) -> bool:
|
|
39
|
+
if self._cancelled:
|
|
40
|
+
return self._cancelled
|
|
41
|
+
if self._cancel_event.is_set():
|
|
42
|
+
self._cancelled = True
|
|
43
|
+
return self._cancelled
|
|
44
|
+
try:
|
|
45
|
+
await asyncio.sleep(0)
|
|
46
|
+
except asyncio.CancelledError:
|
|
47
|
+
self._cancelled = True
|
|
48
|
+
return self._cancelled
|
|
49
|
+
return False
|
|
50
|
+
|
|
51
|
+
def __str__(self) -> str:
|
|
52
|
+
return f"Operation {self.id} : {self.method}"
|
|
53
|
+
|
|
54
|
+
@classmethod
|
|
55
|
+
def _noop(cls) -> Self:
|
|
56
|
+
"""Obtain a noop Operation.
|
|
57
|
+
This operation will always return ``False`` for ``is_cancelled()``
|
|
58
|
+
"""
|
|
59
|
+
return cls("noop-operation", asyncio.Event())
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
P = ParamSpec("P")
|
|
63
|
+
T = TypeVar("T")
|
|
64
|
+
|
|
65
|
+
METADATA_KEY = "opid"
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
def opid_from_metadata(metadata: Optional[Mapping[str, str]]) -> Optional[UUID]:
|
|
69
|
+
if metadata is None:
|
|
70
|
+
return None
|
|
71
|
+
|
|
72
|
+
opid = metadata.get(METADATA_KEY)
|
|
73
|
+
if opid is None:
|
|
74
|
+
return None
|
|
75
|
+
|
|
76
|
+
return UUID(opid)
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
def run_with_operation(func: Callable[P, Coroutine[Any, Any, T]]) -> Callable[P, Coroutine[Any, Any, T]]:
|
|
80
|
+
"""Run a component function with an ``Operation``.
|
|
81
|
+
Running a function with an Operation will allow the function
|
|
82
|
+
to know if/when the calling task was cancelled and take appropriate action
|
|
83
|
+
(for example stop long running tasks and exit early).
|
|
84
|
+
|
|
85
|
+
If a timeout is provided to the function, the operation will cancel when the timeout is reached.
|
|
86
|
+
|
|
87
|
+
An example use case is if a gRPC client disconnects after making a request.
|
|
88
|
+
Rather than continue to run a task for a receiver that is no longer there,
|
|
89
|
+
the component can cancel and clean up, saving resources.
|
|
90
|
+
|
|
91
|
+
Args:
|
|
92
|
+
func (Callable[..., Coroutine[Any, Any, T]]): The function to be called with an Operation.
|
|
93
|
+
This function MUST accept ``**kwargs``
|
|
94
|
+
or a parameter whose name is equal the value of ``Operation.ARG_NAME``
|
|
95
|
+
|
|
96
|
+
Returns:
|
|
97
|
+
T: The return of the function
|
|
98
|
+
"""
|
|
99
|
+
|
|
100
|
+
@functools.wraps(func)
|
|
101
|
+
async def wrapper(*args: P.args, **kwargs: P.kwargs) -> T:
|
|
102
|
+
event = asyncio.Event()
|
|
103
|
+
func_name = func.__qualname__
|
|
104
|
+
arg_names = ", ".join([str(a) for a in args])
|
|
105
|
+
kwarg_names = ", ".join([f"{key}={value}" for (key, value) in kwargs.items()])
|
|
106
|
+
method = f"{func_name}({arg_names}{', ' if len(arg_names) else ''}{kwarg_names})"
|
|
107
|
+
opid = opid_from_metadata(kwargs.get("metadata")) # type: ignore
|
|
108
|
+
operation = Operation(method, event, opid=opid)
|
|
109
|
+
kwargs[Operation.ARG_NAME] = operation
|
|
110
|
+
timeout = kwargs.get("timeout", None)
|
|
111
|
+
timer: Optional[asyncio.TimerHandle] = None
|
|
112
|
+
if timeout:
|
|
113
|
+
timeout = cast(float, timeout)
|
|
114
|
+
timer = asyncio.get_running_loop().call_later(timeout, event.set)
|
|
115
|
+
try:
|
|
116
|
+
return await asyncio.shield(func(*args, **kwargs))
|
|
117
|
+
except asyncio.CancelledError:
|
|
118
|
+
event.set()
|
|
119
|
+
raise
|
|
120
|
+
finally:
|
|
121
|
+
if timer:
|
|
122
|
+
timer.cancel()
|
|
123
|
+
|
|
124
|
+
return wrapper
|
viam/proto/__init__.py
ADDED
|
File without changes
|
|
@@ -0,0 +1,554 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by Viam.
|
|
3
|
+
Do not edit manually!
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
from ...gen.app.v1.app_grpc import AppServiceBase, AppServiceStub, UnimplementedAppServiceBase
|
|
7
|
+
from ...gen.app.v1.app_pb2 import (
|
|
8
|
+
PKCE,
|
|
9
|
+
AdditionalFragment,
|
|
10
|
+
AddRoleRequest,
|
|
11
|
+
AddRoleResponse,
|
|
12
|
+
APIKey,
|
|
13
|
+
APIKeyWithAuthorizations,
|
|
14
|
+
App,
|
|
15
|
+
AuthenticationType,
|
|
16
|
+
AuthenticatorInfo,
|
|
17
|
+
Authorization,
|
|
18
|
+
AuthorizationDetails,
|
|
19
|
+
AuthorizedPermissions,
|
|
20
|
+
BillingAddress,
|
|
21
|
+
ChangeRoleRequest,
|
|
22
|
+
ChangeRoleResponse,
|
|
23
|
+
CheckPermissionsRequest,
|
|
24
|
+
CheckPermissionsResponse,
|
|
25
|
+
ClientAuthentication,
|
|
26
|
+
CreateFragmentRequest,
|
|
27
|
+
CreateFragmentResponse,
|
|
28
|
+
CreateKeyFromExistingKeyAuthorizationsRequest,
|
|
29
|
+
CreateKeyFromExistingKeyAuthorizationsResponse,
|
|
30
|
+
CreateKeyRequest,
|
|
31
|
+
CreateKeyResponse,
|
|
32
|
+
CreateLocationRequest,
|
|
33
|
+
CreateLocationResponse,
|
|
34
|
+
CreateLocationSecretRequest,
|
|
35
|
+
CreateLocationSecretResponse,
|
|
36
|
+
CreateModuleRequest,
|
|
37
|
+
CreateModuleResponse,
|
|
38
|
+
CreateOAuthAppRequest,
|
|
39
|
+
CreateOAuthAppResponse,
|
|
40
|
+
CreateOrganizationInviteRequest,
|
|
41
|
+
CreateOrganizationInviteResponse,
|
|
42
|
+
CreateOrganizationRequest,
|
|
43
|
+
CreateOrganizationResponse,
|
|
44
|
+
CreateRegistryItemRequest,
|
|
45
|
+
CreateRegistryItemResponse,
|
|
46
|
+
CreateRobotPartSecretRequest,
|
|
47
|
+
CreateRobotPartSecretResponse,
|
|
48
|
+
DeleteFragmentRequest,
|
|
49
|
+
DeleteFragmentResponse,
|
|
50
|
+
DeleteFragmentTagRequest,
|
|
51
|
+
DeleteFragmentTagResponse,
|
|
52
|
+
DeleteKeyRequest,
|
|
53
|
+
DeleteKeyResponse,
|
|
54
|
+
DeleteLocationRequest,
|
|
55
|
+
DeleteLocationResponse,
|
|
56
|
+
DeleteLocationSecretRequest,
|
|
57
|
+
DeleteLocationSecretResponse,
|
|
58
|
+
DeleteOAuthAppRequest,
|
|
59
|
+
DeleteOAuthAppResponse,
|
|
60
|
+
DeleteOrganizationInviteRequest,
|
|
61
|
+
DeleteOrganizationInviteResponse,
|
|
62
|
+
DeleteOrganizationMemberRequest,
|
|
63
|
+
DeleteOrganizationMemberResponse,
|
|
64
|
+
DeleteOrganizationRequest,
|
|
65
|
+
DeleteOrganizationResponse,
|
|
66
|
+
DeleteRegistryItemRequest,
|
|
67
|
+
DeleteRegistryItemResponse,
|
|
68
|
+
DeleteRobotPartRequest,
|
|
69
|
+
DeleteRobotPartResponse,
|
|
70
|
+
DeleteRobotPartSecretRequest,
|
|
71
|
+
DeleteRobotPartSecretResponse,
|
|
72
|
+
DeleteRobotRequest,
|
|
73
|
+
DeleteRobotResponse,
|
|
74
|
+
DisableAuthServiceRequest,
|
|
75
|
+
DisableAuthServiceResponse,
|
|
76
|
+
DisableBillingServiceRequest,
|
|
77
|
+
DisableBillingServiceResponse,
|
|
78
|
+
EnableAuthServiceRequest,
|
|
79
|
+
EnableAuthServiceResponse,
|
|
80
|
+
EnableBillingServiceRequest,
|
|
81
|
+
EnableBillingServiceResponse,
|
|
82
|
+
EnabledGrant,
|
|
83
|
+
Fragment,
|
|
84
|
+
FragmentError,
|
|
85
|
+
FragmentErrorType,
|
|
86
|
+
FragmentHistoryEntry,
|
|
87
|
+
FragmentRevision,
|
|
88
|
+
FragmentSummary,
|
|
89
|
+
FragmentTag,
|
|
90
|
+
FragmentUsage,
|
|
91
|
+
FragmentVisibility,
|
|
92
|
+
GetAppContentRequest,
|
|
93
|
+
GetAppContentResponse,
|
|
94
|
+
GetBillingServiceConfigRequest,
|
|
95
|
+
GetBillingServiceConfigResponse,
|
|
96
|
+
GetFragmentHistoryRequest,
|
|
97
|
+
GetFragmentHistoryResponse,
|
|
98
|
+
GetFragmentRequest,
|
|
99
|
+
GetFragmentResponse,
|
|
100
|
+
GetFragmentUsageRequest,
|
|
101
|
+
GetFragmentUsageResponse,
|
|
102
|
+
GetLocationMetadataRequest,
|
|
103
|
+
GetLocationMetadataResponse,
|
|
104
|
+
GetLocationRequest,
|
|
105
|
+
GetLocationResponse,
|
|
106
|
+
GetModuleRequest,
|
|
107
|
+
GetModuleResponse,
|
|
108
|
+
GetOrganizationMetadataRequest,
|
|
109
|
+
GetOrganizationMetadataResponse,
|
|
110
|
+
GetOrganizationNamespaceAvailabilityRequest,
|
|
111
|
+
GetOrganizationNamespaceAvailabilityResponse,
|
|
112
|
+
GetOrganizationRequest,
|
|
113
|
+
GetOrganizationResponse,
|
|
114
|
+
GetOrganizationsWithAccessToLocationRequest,
|
|
115
|
+
GetOrganizationsWithAccessToLocationResponse,
|
|
116
|
+
GetRegistryItemRequest,
|
|
117
|
+
GetRegistryItemResponse,
|
|
118
|
+
GetRobotAPIKeysRequest,
|
|
119
|
+
GetRobotAPIKeysResponse,
|
|
120
|
+
GetRobotMetadataRequest,
|
|
121
|
+
GetRobotMetadataResponse,
|
|
122
|
+
GetRobotPartHistoryRequest,
|
|
123
|
+
GetRobotPartHistoryResponse,
|
|
124
|
+
GetRobotPartLogsRequest,
|
|
125
|
+
GetRobotPartLogsResponse,
|
|
126
|
+
GetRobotPartMetadataRequest,
|
|
127
|
+
GetRobotPartMetadataResponse,
|
|
128
|
+
GetRobotPartRequest,
|
|
129
|
+
GetRobotPartResponse,
|
|
130
|
+
GetRobotPartsRequest,
|
|
131
|
+
GetRobotPartsResponse,
|
|
132
|
+
GetRobotRequest,
|
|
133
|
+
GetRobotResponse,
|
|
134
|
+
GetRoverRentalRobotsRequest,
|
|
135
|
+
GetRoverRentalRobotsResponse,
|
|
136
|
+
GetUserIDByEmailRequest,
|
|
137
|
+
GetUserIDByEmailResponse,
|
|
138
|
+
ListAuthorizationsRequest,
|
|
139
|
+
ListAuthorizationsResponse,
|
|
140
|
+
ListFragmentsRequest,
|
|
141
|
+
ListFragmentsResponse,
|
|
142
|
+
ListKeysRequest,
|
|
143
|
+
ListKeysResponse,
|
|
144
|
+
ListLocationsRequest,
|
|
145
|
+
ListLocationsResponse,
|
|
146
|
+
ListMachineFragmentsRequest,
|
|
147
|
+
ListMachineFragmentsResponse,
|
|
148
|
+
ListMachineSummariesRequest,
|
|
149
|
+
ListMachineSummariesResponse,
|
|
150
|
+
ListModulesRequest,
|
|
151
|
+
ListModulesResponse,
|
|
152
|
+
ListNestedFragmentsRequest,
|
|
153
|
+
ListNestedFragmentsResponse,
|
|
154
|
+
ListOAuthAppsRequest,
|
|
155
|
+
ListOAuthAppsResponse,
|
|
156
|
+
ListOrganizationMembersRequest,
|
|
157
|
+
ListOrganizationMembersResponse,
|
|
158
|
+
ListOrganizationsByUserRequest,
|
|
159
|
+
ListOrganizationsByUserResponse,
|
|
160
|
+
ListOrganizationsRequest,
|
|
161
|
+
ListOrganizationsResponse,
|
|
162
|
+
ListRegistryItemsRequest,
|
|
163
|
+
ListRegistryItemsResponse,
|
|
164
|
+
ListRobotsRequest,
|
|
165
|
+
ListRobotsResponse,
|
|
166
|
+
Location,
|
|
167
|
+
LocationAuth,
|
|
168
|
+
LocationAuthRequest,
|
|
169
|
+
LocationAuthResponse,
|
|
170
|
+
LocationOrganization,
|
|
171
|
+
LocationSummary,
|
|
172
|
+
MachineSummary,
|
|
173
|
+
MarkPartAsMainRequest,
|
|
174
|
+
MarkPartAsMainResponse,
|
|
175
|
+
MarkPartForRestartRequest,
|
|
176
|
+
MarkPartForRestartResponse,
|
|
177
|
+
MLModelMetadata,
|
|
178
|
+
MLTrainingMetadata,
|
|
179
|
+
MLTrainingVersion,
|
|
180
|
+
Model,
|
|
181
|
+
Module,
|
|
182
|
+
ModuleFileInfo,
|
|
183
|
+
ModuleMetadata,
|
|
184
|
+
ModuleVersion,
|
|
185
|
+
NewRobotPartRequest,
|
|
186
|
+
NewRobotPartResponse,
|
|
187
|
+
NewRobotRequest,
|
|
188
|
+
NewRobotResponse,
|
|
189
|
+
OAuthConfig,
|
|
190
|
+
Organization,
|
|
191
|
+
OrganizationGetLogoRequest,
|
|
192
|
+
OrganizationGetLogoResponse,
|
|
193
|
+
OrganizationGetSupportEmailRequest,
|
|
194
|
+
OrganizationGetSupportEmailResponse,
|
|
195
|
+
OrganizationIdentity,
|
|
196
|
+
OrganizationInvite,
|
|
197
|
+
OrganizationMember,
|
|
198
|
+
OrganizationSetLogoRequest,
|
|
199
|
+
OrganizationSetLogoResponse,
|
|
200
|
+
OrganizationSetSupportEmailRequest,
|
|
201
|
+
OrganizationSetSupportEmailResponse,
|
|
202
|
+
OrgDetails,
|
|
203
|
+
PartSummary,
|
|
204
|
+
ReadOAuthAppRequest,
|
|
205
|
+
ReadOAuthAppResponse,
|
|
206
|
+
RegistryItem,
|
|
207
|
+
RegistryItemStatus,
|
|
208
|
+
RemoveRoleRequest,
|
|
209
|
+
RemoveRoleResponse,
|
|
210
|
+
RenameKeyRequest,
|
|
211
|
+
RenameKeyResponse,
|
|
212
|
+
RenameRegistryItemRequest,
|
|
213
|
+
RenameRegistryItemResponse,
|
|
214
|
+
ResendOrganizationInviteRequest,
|
|
215
|
+
ResendOrganizationInviteResponse,
|
|
216
|
+
ResolvedFragment,
|
|
217
|
+
Robot,
|
|
218
|
+
RobotPart,
|
|
219
|
+
RobotPartHistoryEntry,
|
|
220
|
+
RotateKeyRequest,
|
|
221
|
+
RotateKeyResponse,
|
|
222
|
+
RoverRentalRobot,
|
|
223
|
+
SearchOrganizationsRequest,
|
|
224
|
+
SearchOrganizationsResponse,
|
|
225
|
+
SetFragmentTagRequest,
|
|
226
|
+
SetFragmentTagResponse,
|
|
227
|
+
SharedSecret,
|
|
228
|
+
ShareLocationRequest,
|
|
229
|
+
ShareLocationResponse,
|
|
230
|
+
StorageConfig,
|
|
231
|
+
TailRobotPartLogsRequest,
|
|
232
|
+
TailRobotPartLogsResponse,
|
|
233
|
+
TransferRegistryItemRequest,
|
|
234
|
+
TransferRegistryItemResponse,
|
|
235
|
+
UnshareLocationRequest,
|
|
236
|
+
UnshareLocationResponse,
|
|
237
|
+
UpdateBillingServiceRequest,
|
|
238
|
+
UpdateBillingServiceResponse,
|
|
239
|
+
UpdateFragmentRequest,
|
|
240
|
+
UpdateFragmentResponse,
|
|
241
|
+
UpdateLocationMetadataRequest,
|
|
242
|
+
UpdateLocationMetadataResponse,
|
|
243
|
+
UpdateLocationRequest,
|
|
244
|
+
UpdateLocationResponse,
|
|
245
|
+
UpdateMLModelMetadata,
|
|
246
|
+
UpdateMLTrainingMetadata,
|
|
247
|
+
UpdateModuleMetadata,
|
|
248
|
+
UpdateModuleRequest,
|
|
249
|
+
UpdateModuleResponse,
|
|
250
|
+
UpdateOAuthAppRequest,
|
|
251
|
+
UpdateOAuthAppResponse,
|
|
252
|
+
UpdateOrganizationInviteAuthorizationsRequest,
|
|
253
|
+
UpdateOrganizationInviteAuthorizationsResponse,
|
|
254
|
+
UpdateOrganizationMetadataRequest,
|
|
255
|
+
UpdateOrganizationMetadataResponse,
|
|
256
|
+
UpdateOrganizationNamespaceRequest,
|
|
257
|
+
UpdateOrganizationNamespaceResponse,
|
|
258
|
+
UpdateOrganizationRequest,
|
|
259
|
+
UpdateOrganizationResponse,
|
|
260
|
+
UpdateRegistryItemRequest,
|
|
261
|
+
UpdateRegistryItemResponse,
|
|
262
|
+
UpdateRobotMetadataRequest,
|
|
263
|
+
UpdateRobotMetadataResponse,
|
|
264
|
+
UpdateRobotPartMetadataRequest,
|
|
265
|
+
UpdateRobotPartMetadataResponse,
|
|
266
|
+
UpdateRobotPartRequest,
|
|
267
|
+
UpdateRobotPartResponse,
|
|
268
|
+
UpdateRobotRequest,
|
|
269
|
+
UpdateRobotResponse,
|
|
270
|
+
UploadModuleFileRequest,
|
|
271
|
+
UploadModuleFileResponse,
|
|
272
|
+
Uploads,
|
|
273
|
+
URLValidation,
|
|
274
|
+
VersionHistory,
|
|
275
|
+
ViamAgentVersion,
|
|
276
|
+
ViamServerVersion,
|
|
277
|
+
Visibility,
|
|
278
|
+
)
|
|
279
|
+
|
|
280
|
+
__all__ = [
|
|
281
|
+
"AppServiceBase",
|
|
282
|
+
"AppServiceStub",
|
|
283
|
+
"UnimplementedAppServiceBase",
|
|
284
|
+
"APIKey",
|
|
285
|
+
"APIKeyWithAuthorizations",
|
|
286
|
+
"AddRoleRequest",
|
|
287
|
+
"AddRoleResponse",
|
|
288
|
+
"AdditionalFragment",
|
|
289
|
+
"App",
|
|
290
|
+
"AuthenticationType",
|
|
291
|
+
"AuthenticatorInfo",
|
|
292
|
+
"Authorization",
|
|
293
|
+
"AuthorizationDetails",
|
|
294
|
+
"AuthorizedPermissions",
|
|
295
|
+
"BillingAddress",
|
|
296
|
+
"ChangeRoleRequest",
|
|
297
|
+
"ChangeRoleResponse",
|
|
298
|
+
"CheckPermissionsRequest",
|
|
299
|
+
"CheckPermissionsResponse",
|
|
300
|
+
"ClientAuthentication",
|
|
301
|
+
"CreateFragmentRequest",
|
|
302
|
+
"CreateFragmentResponse",
|
|
303
|
+
"CreateKeyFromExistingKeyAuthorizationsRequest",
|
|
304
|
+
"CreateKeyFromExistingKeyAuthorizationsResponse",
|
|
305
|
+
"CreateKeyRequest",
|
|
306
|
+
"CreateKeyResponse",
|
|
307
|
+
"CreateLocationRequest",
|
|
308
|
+
"CreateLocationResponse",
|
|
309
|
+
"CreateLocationSecretRequest",
|
|
310
|
+
"CreateLocationSecretResponse",
|
|
311
|
+
"CreateModuleRequest",
|
|
312
|
+
"CreateModuleResponse",
|
|
313
|
+
"CreateOAuthAppRequest",
|
|
314
|
+
"CreateOAuthAppResponse",
|
|
315
|
+
"CreateOrganizationInviteRequest",
|
|
316
|
+
"CreateOrganizationInviteResponse",
|
|
317
|
+
"CreateOrganizationRequest",
|
|
318
|
+
"CreateOrganizationResponse",
|
|
319
|
+
"CreateRegistryItemRequest",
|
|
320
|
+
"CreateRegistryItemResponse",
|
|
321
|
+
"CreateRobotPartSecretRequest",
|
|
322
|
+
"CreateRobotPartSecretResponse",
|
|
323
|
+
"DeleteFragmentRequest",
|
|
324
|
+
"DeleteFragmentResponse",
|
|
325
|
+
"DeleteFragmentTagRequest",
|
|
326
|
+
"DeleteFragmentTagResponse",
|
|
327
|
+
"DeleteKeyRequest",
|
|
328
|
+
"DeleteKeyResponse",
|
|
329
|
+
"DeleteLocationRequest",
|
|
330
|
+
"DeleteLocationResponse",
|
|
331
|
+
"DeleteLocationSecretRequest",
|
|
332
|
+
"DeleteLocationSecretResponse",
|
|
333
|
+
"DeleteOAuthAppRequest",
|
|
334
|
+
"DeleteOAuthAppResponse",
|
|
335
|
+
"DeleteOrganizationInviteRequest",
|
|
336
|
+
"DeleteOrganizationInviteResponse",
|
|
337
|
+
"DeleteOrganizationMemberRequest",
|
|
338
|
+
"DeleteOrganizationMemberResponse",
|
|
339
|
+
"DeleteOrganizationRequest",
|
|
340
|
+
"DeleteOrganizationResponse",
|
|
341
|
+
"DeleteRegistryItemRequest",
|
|
342
|
+
"DeleteRegistryItemResponse",
|
|
343
|
+
"DeleteRobotPartRequest",
|
|
344
|
+
"DeleteRobotPartResponse",
|
|
345
|
+
"DeleteRobotPartSecretRequest",
|
|
346
|
+
"DeleteRobotPartSecretResponse",
|
|
347
|
+
"DeleteRobotRequest",
|
|
348
|
+
"DeleteRobotResponse",
|
|
349
|
+
"DisableAuthServiceRequest",
|
|
350
|
+
"DisableAuthServiceResponse",
|
|
351
|
+
"DisableBillingServiceRequest",
|
|
352
|
+
"DisableBillingServiceResponse",
|
|
353
|
+
"EnableAuthServiceRequest",
|
|
354
|
+
"EnableAuthServiceResponse",
|
|
355
|
+
"EnableBillingServiceRequest",
|
|
356
|
+
"EnableBillingServiceResponse",
|
|
357
|
+
"EnabledGrant",
|
|
358
|
+
"Fragment",
|
|
359
|
+
"FragmentError",
|
|
360
|
+
"FragmentErrorType",
|
|
361
|
+
"FragmentHistoryEntry",
|
|
362
|
+
"FragmentRevision",
|
|
363
|
+
"FragmentSummary",
|
|
364
|
+
"FragmentTag",
|
|
365
|
+
"FragmentUsage",
|
|
366
|
+
"FragmentVisibility",
|
|
367
|
+
"GetAppContentRequest",
|
|
368
|
+
"GetAppContentResponse",
|
|
369
|
+
"GetBillingServiceConfigRequest",
|
|
370
|
+
"GetBillingServiceConfigResponse",
|
|
371
|
+
"GetFragmentHistoryRequest",
|
|
372
|
+
"GetFragmentHistoryResponse",
|
|
373
|
+
"GetFragmentRequest",
|
|
374
|
+
"GetFragmentResponse",
|
|
375
|
+
"GetFragmentUsageRequest",
|
|
376
|
+
"GetFragmentUsageResponse",
|
|
377
|
+
"GetLocationMetadataRequest",
|
|
378
|
+
"GetLocationMetadataResponse",
|
|
379
|
+
"GetLocationRequest",
|
|
380
|
+
"GetLocationResponse",
|
|
381
|
+
"GetModuleRequest",
|
|
382
|
+
"GetModuleResponse",
|
|
383
|
+
"GetOrganizationMetadataRequest",
|
|
384
|
+
"GetOrganizationMetadataResponse",
|
|
385
|
+
"GetOrganizationNamespaceAvailabilityRequest",
|
|
386
|
+
"GetOrganizationNamespaceAvailabilityResponse",
|
|
387
|
+
"GetOrganizationRequest",
|
|
388
|
+
"GetOrganizationResponse",
|
|
389
|
+
"GetOrganizationsWithAccessToLocationRequest",
|
|
390
|
+
"GetOrganizationsWithAccessToLocationResponse",
|
|
391
|
+
"GetRegistryItemRequest",
|
|
392
|
+
"GetRegistryItemResponse",
|
|
393
|
+
"GetRobotAPIKeysRequest",
|
|
394
|
+
"GetRobotAPIKeysResponse",
|
|
395
|
+
"GetRobotMetadataRequest",
|
|
396
|
+
"GetRobotMetadataResponse",
|
|
397
|
+
"GetRobotPartHistoryRequest",
|
|
398
|
+
"GetRobotPartHistoryResponse",
|
|
399
|
+
"GetRobotPartLogsRequest",
|
|
400
|
+
"GetRobotPartLogsResponse",
|
|
401
|
+
"GetRobotPartMetadataRequest",
|
|
402
|
+
"GetRobotPartMetadataResponse",
|
|
403
|
+
"GetRobotPartRequest",
|
|
404
|
+
"GetRobotPartResponse",
|
|
405
|
+
"GetRobotPartsRequest",
|
|
406
|
+
"GetRobotPartsResponse",
|
|
407
|
+
"GetRobotRequest",
|
|
408
|
+
"GetRobotResponse",
|
|
409
|
+
"GetRoverRentalRobotsRequest",
|
|
410
|
+
"GetRoverRentalRobotsResponse",
|
|
411
|
+
"GetUserIDByEmailRequest",
|
|
412
|
+
"GetUserIDByEmailResponse",
|
|
413
|
+
"ListAuthorizationsRequest",
|
|
414
|
+
"ListAuthorizationsResponse",
|
|
415
|
+
"ListFragmentsRequest",
|
|
416
|
+
"ListFragmentsResponse",
|
|
417
|
+
"ListKeysRequest",
|
|
418
|
+
"ListKeysResponse",
|
|
419
|
+
"ListLocationsRequest",
|
|
420
|
+
"ListLocationsResponse",
|
|
421
|
+
"ListMachineFragmentsRequest",
|
|
422
|
+
"ListMachineFragmentsResponse",
|
|
423
|
+
"ListMachineSummariesRequest",
|
|
424
|
+
"ListMachineSummariesResponse",
|
|
425
|
+
"ListModulesRequest",
|
|
426
|
+
"ListModulesResponse",
|
|
427
|
+
"ListNestedFragmentsRequest",
|
|
428
|
+
"ListNestedFragmentsResponse",
|
|
429
|
+
"ListOAuthAppsRequest",
|
|
430
|
+
"ListOAuthAppsResponse",
|
|
431
|
+
"ListOrganizationMembersRequest",
|
|
432
|
+
"ListOrganizationMembersResponse",
|
|
433
|
+
"ListOrganizationsByUserRequest",
|
|
434
|
+
"ListOrganizationsByUserResponse",
|
|
435
|
+
"ListOrganizationsRequest",
|
|
436
|
+
"ListOrganizationsResponse",
|
|
437
|
+
"ListRegistryItemsRequest",
|
|
438
|
+
"ListRegistryItemsResponse",
|
|
439
|
+
"ListRobotsRequest",
|
|
440
|
+
"ListRobotsResponse",
|
|
441
|
+
"Location",
|
|
442
|
+
"LocationAuth",
|
|
443
|
+
"LocationAuthRequest",
|
|
444
|
+
"LocationAuthResponse",
|
|
445
|
+
"LocationOrganization",
|
|
446
|
+
"LocationSummary",
|
|
447
|
+
"MLModelMetadata",
|
|
448
|
+
"MLTrainingMetadata",
|
|
449
|
+
"MLTrainingVersion",
|
|
450
|
+
"MachineSummary",
|
|
451
|
+
"MarkPartAsMainRequest",
|
|
452
|
+
"MarkPartAsMainResponse",
|
|
453
|
+
"MarkPartForRestartRequest",
|
|
454
|
+
"MarkPartForRestartResponse",
|
|
455
|
+
"Model",
|
|
456
|
+
"Module",
|
|
457
|
+
"ModuleFileInfo",
|
|
458
|
+
"ModuleMetadata",
|
|
459
|
+
"ModuleVersion",
|
|
460
|
+
"NewRobotPartRequest",
|
|
461
|
+
"NewRobotPartResponse",
|
|
462
|
+
"NewRobotRequest",
|
|
463
|
+
"NewRobotResponse",
|
|
464
|
+
"OAuthConfig",
|
|
465
|
+
"OrgDetails",
|
|
466
|
+
"Organization",
|
|
467
|
+
"OrganizationGetLogoRequest",
|
|
468
|
+
"OrganizationGetLogoResponse",
|
|
469
|
+
"OrganizationGetSupportEmailRequest",
|
|
470
|
+
"OrganizationGetSupportEmailResponse",
|
|
471
|
+
"OrganizationIdentity",
|
|
472
|
+
"OrganizationInvite",
|
|
473
|
+
"OrganizationMember",
|
|
474
|
+
"OrganizationSetLogoRequest",
|
|
475
|
+
"OrganizationSetLogoResponse",
|
|
476
|
+
"OrganizationSetSupportEmailRequest",
|
|
477
|
+
"OrganizationSetSupportEmailResponse",
|
|
478
|
+
"PKCE",
|
|
479
|
+
"PartSummary",
|
|
480
|
+
"ReadOAuthAppRequest",
|
|
481
|
+
"ReadOAuthAppResponse",
|
|
482
|
+
"RegistryItem",
|
|
483
|
+
"RegistryItemStatus",
|
|
484
|
+
"RemoveRoleRequest",
|
|
485
|
+
"RemoveRoleResponse",
|
|
486
|
+
"RenameKeyRequest",
|
|
487
|
+
"RenameKeyResponse",
|
|
488
|
+
"RenameRegistryItemRequest",
|
|
489
|
+
"RenameRegistryItemResponse",
|
|
490
|
+
"ResendOrganizationInviteRequest",
|
|
491
|
+
"ResendOrganizationInviteResponse",
|
|
492
|
+
"ResolvedFragment",
|
|
493
|
+
"Robot",
|
|
494
|
+
"RobotPart",
|
|
495
|
+
"RobotPartHistoryEntry",
|
|
496
|
+
"RotateKeyRequest",
|
|
497
|
+
"RotateKeyResponse",
|
|
498
|
+
"RoverRentalRobot",
|
|
499
|
+
"SearchOrganizationsRequest",
|
|
500
|
+
"SearchOrganizationsResponse",
|
|
501
|
+
"SetFragmentTagRequest",
|
|
502
|
+
"SetFragmentTagResponse",
|
|
503
|
+
"ShareLocationRequest",
|
|
504
|
+
"ShareLocationResponse",
|
|
505
|
+
"SharedSecret",
|
|
506
|
+
"StorageConfig",
|
|
507
|
+
"TailRobotPartLogsRequest",
|
|
508
|
+
"TailRobotPartLogsResponse",
|
|
509
|
+
"TransferRegistryItemRequest",
|
|
510
|
+
"TransferRegistryItemResponse",
|
|
511
|
+
"URLValidation",
|
|
512
|
+
"UnshareLocationRequest",
|
|
513
|
+
"UnshareLocationResponse",
|
|
514
|
+
"UpdateBillingServiceRequest",
|
|
515
|
+
"UpdateBillingServiceResponse",
|
|
516
|
+
"UpdateFragmentRequest",
|
|
517
|
+
"UpdateFragmentResponse",
|
|
518
|
+
"UpdateLocationMetadataRequest",
|
|
519
|
+
"UpdateLocationMetadataResponse",
|
|
520
|
+
"UpdateLocationRequest",
|
|
521
|
+
"UpdateLocationResponse",
|
|
522
|
+
"UpdateMLModelMetadata",
|
|
523
|
+
"UpdateMLTrainingMetadata",
|
|
524
|
+
"UpdateModuleMetadata",
|
|
525
|
+
"UpdateModuleRequest",
|
|
526
|
+
"UpdateModuleResponse",
|
|
527
|
+
"UpdateOAuthAppRequest",
|
|
528
|
+
"UpdateOAuthAppResponse",
|
|
529
|
+
"UpdateOrganizationInviteAuthorizationsRequest",
|
|
530
|
+
"UpdateOrganizationInviteAuthorizationsResponse",
|
|
531
|
+
"UpdateOrganizationMetadataRequest",
|
|
532
|
+
"UpdateOrganizationMetadataResponse",
|
|
533
|
+
"UpdateOrganizationNamespaceRequest",
|
|
534
|
+
"UpdateOrganizationNamespaceResponse",
|
|
535
|
+
"UpdateOrganizationRequest",
|
|
536
|
+
"UpdateOrganizationResponse",
|
|
537
|
+
"UpdateRegistryItemRequest",
|
|
538
|
+
"UpdateRegistryItemResponse",
|
|
539
|
+
"UpdateRobotMetadataRequest",
|
|
540
|
+
"UpdateRobotMetadataResponse",
|
|
541
|
+
"UpdateRobotPartMetadataRequest",
|
|
542
|
+
"UpdateRobotPartMetadataResponse",
|
|
543
|
+
"UpdateRobotPartRequest",
|
|
544
|
+
"UpdateRobotPartResponse",
|
|
545
|
+
"UpdateRobotRequest",
|
|
546
|
+
"UpdateRobotResponse",
|
|
547
|
+
"UploadModuleFileRequest",
|
|
548
|
+
"UploadModuleFileResponse",
|
|
549
|
+
"Uploads",
|
|
550
|
+
"VersionHistory",
|
|
551
|
+
"ViamAgentVersion",
|
|
552
|
+
"ViamServerVersion",
|
|
553
|
+
"Visibility",
|
|
554
|
+
]
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by Viam.
|
|
3
|
+
Do not edit manually!
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
from ....gen.app.agent.v1.agent_grpc import AgentDeviceServiceBase, AgentDeviceServiceStub, UnimplementedAgentDeviceServiceBase
|
|
7
|
+
from ....gen.app.agent.v1.agent_pb2 import (
|
|
8
|
+
DeviceAgentConfigRequest,
|
|
9
|
+
DeviceAgentConfigResponse,
|
|
10
|
+
DeviceSubsystemConfig,
|
|
11
|
+
HostInfo,
|
|
12
|
+
PackageFormat,
|
|
13
|
+
UpdateInfo,
|
|
14
|
+
VersionInfo,
|
|
15
|
+
)
|
|
16
|
+
|
|
17
|
+
__all__ = [
|
|
18
|
+
"AgentDeviceServiceBase",
|
|
19
|
+
"AgentDeviceServiceStub",
|
|
20
|
+
"UnimplementedAgentDeviceServiceBase",
|
|
21
|
+
"DeviceAgentConfigRequest",
|
|
22
|
+
"DeviceAgentConfigResponse",
|
|
23
|
+
"DeviceSubsystemConfig",
|
|
24
|
+
"HostInfo",
|
|
25
|
+
"PackageFormat",
|
|
26
|
+
"UpdateInfo",
|
|
27
|
+
"VersionInfo",
|
|
28
|
+
]
|