@viamrobotics/sdk 0.24.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.
Files changed (331) hide show
  1. package/dist/api-version.d.ts +1 -1
  2. package/dist/app/app-client.d.ts +93 -90
  3. package/dist/app/billing-client.d.ts +7 -8
  4. package/dist/app/billing-client.spec.d.ts +1 -0
  5. package/dist/app/data-client.d.ts +42 -50
  6. package/dist/app/data-client.spec.d.ts +1 -0
  7. package/dist/app/ml-training-client.d.ts +9 -14
  8. package/dist/app/ml-training-client.spec.d.ts +1 -0
  9. package/dist/app/provisioning-client.d.ts +7 -7
  10. package/dist/app/provisioning-client.spec.d.ts +1 -0
  11. package/dist/app/viam-client.d.ts +13 -15
  12. package/dist/app/viam-transport.d.ts +4 -12
  13. package/dist/components/arm/arm.d.ts +10 -8
  14. package/dist/components/arm/client.d.ts +6 -6
  15. package/dist/components/arm.d.ts +1 -1
  16. package/dist/components/base/base.d.ts +11 -10
  17. package/dist/components/base/client.d.ts +4 -5
  18. package/dist/components/base.d.ts +1 -1
  19. package/dist/components/board/board.d.ts +17 -21
  20. package/dist/components/board/client.d.ts +7 -8
  21. package/dist/components/board/client.spec.d.ts +1 -0
  22. package/dist/components/board.d.ts +1 -1
  23. package/dist/components/camera/camera.d.ts +4 -2
  24. package/dist/components/camera/client.d.ts +4 -5
  25. package/dist/components/encoder/client.d.ts +6 -7
  26. package/dist/components/encoder/encoder.d.ts +9 -10
  27. package/dist/components/encoder.d.ts +1 -2
  28. package/dist/components/gantry/client.d.ts +3 -3
  29. package/dist/components/gantry/gantry.d.ts +7 -6
  30. package/dist/components/generic/client.d.ts +3 -3
  31. package/dist/components/gripper/client.d.ts +3 -3
  32. package/dist/components/gripper/gripper.d.ts +5 -4
  33. package/dist/components/input-controller/client.d.ts +5 -6
  34. package/dist/components/input-controller/input-controller.d.ts +7 -5
  35. package/dist/components/inputcontroller.d.ts +1 -1
  36. package/dist/components/motor/client.d.ts +3 -3
  37. package/dist/components/motor/motor.d.ts +11 -10
  38. package/dist/components/movement-sensor/client.d.ts +11 -12
  39. package/dist/components/movement-sensor/client.spec.d.ts +1 -0
  40. package/dist/components/movement-sensor/movement-sensor.d.ts +16 -14
  41. package/dist/components/movementsensor.d.ts +1 -1
  42. package/dist/components/power-sensor/client.d.ts +4 -4
  43. package/dist/components/power-sensor/client.spec.d.ts +1 -0
  44. package/dist/components/power-sensor/power-sensor.d.ts +5 -5
  45. package/dist/components/sensor/client.d.ts +4 -4
  46. package/dist/components/sensor/sensor.d.ts +3 -2
  47. package/dist/components/servo/client.d.ts +5 -5
  48. package/dist/components/servo/servo.d.ts +5 -4
  49. package/dist/extra/stream/client.d.ts +0 -1
  50. package/dist/extra/stream/client.spec.d.ts +1 -0
  51. package/dist/gen/app/agent/v1/agent_connect.d.ts +28 -0
  52. package/dist/gen/app/agent/v1/agent_pb.d.ts +244 -153
  53. package/dist/gen/app/build/v1/build_connect.d.ts +129 -0
  54. package/dist/gen/app/build/v1/build_pb.d.ts +654 -493
  55. package/dist/gen/app/cloudslam/v1/cloud_slam_connect.d.ts +71 -0
  56. package/dist/gen/app/cloudslam/v1/cloud_slam_pb.d.ts +548 -420
  57. package/dist/gen/app/data/v1/data_connect.d.ts +252 -0
  58. package/dist/gen/app/data/v1/data_pb.d.ts +1672 -1331
  59. package/dist/gen/app/dataset/v1/dataset_connect.d.ts +74 -0
  60. package/dist/gen/app/dataset/v1/dataset_pb.d.ts +272 -213
  61. package/dist/gen/app/datasync/v1/data_sync_connect.d.ts +52 -0
  62. package/dist/gen/app/datasync/v1/data_sync_pb.d.ts +457 -376
  63. package/dist/gen/app/mltraining/v1/ml_training_connect.d.ts +94 -0
  64. package/dist/gen/app/mltraining/v1/ml_training_pb.d.ts +566 -429
  65. package/dist/gen/app/packages/v1/packages_connect.d.ts +64 -0
  66. package/dist/gen/app/packages/v1/packages_pb.d.ts +396 -336
  67. package/dist/gen/app/v1/app_connect.d.ts +788 -0
  68. package/dist/gen/app/v1/app_pb.d.ts +5558 -4577
  69. package/dist/gen/app/v1/billing_connect.d.ts +72 -0
  70. package/dist/gen/app/v1/billing_pb.d.ts +479 -396
  71. package/dist/gen/app/v1/end_user_connect.d.ts +73 -0
  72. package/dist/gen/app/v1/end_user_pb.d.ts +292 -244
  73. package/dist/gen/app/v1/robot_connect.d.ts +63 -0
  74. package/dist/gen/app/v1/robot_pb.d.ts +1603 -1259
  75. package/dist/gen/common/v1/common_pb.d.ts +886 -662
  76. package/dist/gen/component/arm/v1/arm_connect.d.ts +121 -0
  77. package/dist/gen/component/arm/v1/arm_pb.d.ts +371 -294
  78. package/dist/gen/component/audioinput/v1/audioinput_connect.d.ts +78 -0
  79. package/dist/gen/component/audioinput/v1/audioinput_pb.d.ts +246 -189
  80. package/dist/gen/component/base/v1/base_connect.d.ts +122 -0
  81. package/dist/gen/component/base/v1/base_pb.d.ts +393 -307
  82. package/dist/gen/component/board/v1/board_connect.d.ts +161 -0
  83. package/dist/gen/component/board/v1/board_pb.d.ts +684 -535
  84. package/dist/gen/component/camera/v1/camera_connect.d.ts +99 -0
  85. package/dist/gen/component/camera/v1/camera_pb.d.ts +549 -393
  86. package/dist/gen/component/encoder/v1/encoder_connect.d.ts +71 -0
  87. package/dist/gen/component/encoder/v1/encoder_pb.d.ts +201 -144
  88. package/dist/gen/component/gantry/v1/gantry_connect.d.ts +108 -0
  89. package/dist/gen/component/gantry/v1/gantry_pb.d.ts +334 -279
  90. package/dist/gen/component/generic/v1/generic_connect.d.ts +41 -0
  91. package/dist/gen/component/gripper/v1/gripper_connect.d.ts +86 -0
  92. package/dist/gen/component/gripper/v1/gripper_pb.d.ts +188 -160
  93. package/dist/gen/component/inputcontroller/v1/input_controller_connect.d.ts +87 -0
  94. package/dist/gen/component/inputcontroller/v1/input_controller_pb.d.ts +334 -264
  95. package/dist/gen/component/motor/v1/motor_connect.d.ts +162 -0
  96. package/dist/gen/component/motor/v1/motor_pb.d.ts +577 -432
  97. package/dist/gen/component/movementsensor/v1/movementsensor_connect.d.ts +121 -0
  98. package/dist/gen/component/movementsensor/v1/movementsensor_pb.d.ts +476 -379
  99. package/dist/gen/component/posetracker/v1/pose_tracker_connect.d.ts +53 -0
  100. package/dist/gen/component/posetracker/v1/pose_tracker_pb.d.ts +71 -53
  101. package/dist/gen/component/powersensor/v1/powersensor_connect.d.ts +75 -0
  102. package/dist/gen/component/powersensor/v1/powersensor_pb.d.ts +181 -136
  103. package/dist/gen/component/sensor/v1/sensor_connect.d.ts +52 -0
  104. package/dist/gen/component/servo/v1/servo_connect.d.ts +87 -0
  105. package/dist/gen/component/servo/v1/servo_pb.d.ts +228 -179
  106. package/dist/gen/component/testecho/v1/testecho_connect.d.ts +53 -0
  107. package/dist/gen/component/testecho/v1/testecho_pb.d.ts +186 -150
  108. package/dist/gen/google/api/annotations_pb.d.ts +26 -6
  109. package/dist/gen/google/api/client_pb.d.ts +895 -453
  110. package/dist/gen/google/api/expr/v1alpha1/checked_pb.d.ts +758 -438
  111. package/dist/gen/google/api/expr/v1alpha1/eval_pb.d.ts +236 -132
  112. package/dist/gen/google/api/expr/v1alpha1/explain_pb.d.ts +98 -54
  113. package/dist/gen/google/api/expr/v1alpha1/syntax_pb.d.ts +943 -554
  114. package/dist/gen/google/api/expr/v1alpha1/value_pb.d.ts +274 -197
  115. package/dist/gen/google/api/expr/v1beta1/decl_pb.d.ts +200 -131
  116. package/dist/gen/google/api/expr/v1beta1/eval_pb.d.ts +262 -151
  117. package/dist/gen/google/api/expr/v1beta1/expr_pb.d.ts +614 -402
  118. package/dist/gen/google/api/expr/v1beta1/source_pb.d.ts +115 -56
  119. package/dist/gen/google/api/expr/v1beta1/value_pb.d.ts +275 -197
  120. package/dist/gen/google/api/field_behavior_pb.d.ts +139 -19
  121. package/dist/gen/google/api/field_info_pb.d.ts +169 -56
  122. package/dist/gen/google/api/http_pb.d.ts +480 -127
  123. package/dist/gen/google/api/httpbody_pb.d.ts +104 -35
  124. package/dist/gen/google/api/launch_stage_pb.d.ts +102 -16
  125. package/dist/gen/google/api/resource_pb.d.ts +334 -88
  126. package/dist/gen/google/api/visibility_pb.d.ts +157 -52
  127. package/dist/gen/google/bytestream/bytestream_connect.d.ts +124 -0
  128. package/dist/gen/google/bytestream/bytestream_pb.d.ts +241 -130
  129. package/dist/gen/google/geo/type/viewport_pb.d.ts +90 -31
  130. package/dist/gen/google/longrunning/operations_connect.d.ts +127 -0
  131. package/dist/gen/google/longrunning/operations_pb.d.ts +351 -202
  132. package/dist/gen/google/rpc/code_pb.d.ts +252 -25
  133. package/dist/gen/google/rpc/context/attribute_context_pb.d.ts +664 -352
  134. package/dist/gen/google/rpc/error_details_pb.d.ts +604 -311
  135. package/dist/gen/google/rpc/status_pb.d.ts +72 -33
  136. package/dist/gen/google/type/calendar_period_pb.d.ts +86 -16
  137. package/dist/gen/google/type/color_pb.d.ts +201 -37
  138. package/dist/gen/google/type/date_pb.d.ts +72 -25
  139. package/dist/gen/google/type/datetime_pb.d.ts +176 -83
  140. package/dist/gen/google/type/dayofweek_pb.d.ts +80 -16
  141. package/dist/gen/google/type/decimal_pb.d.ts +112 -22
  142. package/dist/gen/google/type/expr_pb.d.ts +97 -28
  143. package/dist/gen/google/type/fraction_pb.d.ts +55 -26
  144. package/dist/gen/google/type/interval_pb.d.ts +65 -31
  145. package/dist/gen/google/type/latlng_pb.d.ts +58 -26
  146. package/dist/gen/google/type/localized_text_pb.d.ts +57 -26
  147. package/dist/gen/google/type/money_pb.d.ts +62 -25
  148. package/dist/gen/google/type/month_pb.d.ts +115 -21
  149. package/dist/gen/google/type/phone_number_pb.d.ts +169 -64
  150. package/dist/gen/google/type/postal_address_pb.d.ts +178 -53
  151. package/dist/gen/google/type/quaternion_pb.d.ts +117 -28
  152. package/dist/gen/google/type/timeofday_pb.d.ts +67 -28
  153. package/dist/gen/proto/rpc/examples/echo/v1/echo_connect.d.ts +44 -0
  154. package/dist/gen/proto/rpc/examples/echo/v1/echo_pb.d.ts +134 -108
  155. package/dist/gen/proto/rpc/examples/echoresource/v1/echoresource_connect.d.ts +44 -0
  156. package/dist/gen/proto/rpc/examples/echoresource/v1/echoresource_pb.d.ts +149 -119
  157. package/dist/gen/proto/rpc/examples/fileupload/v1/fileupload_connect.d.ts +26 -0
  158. package/dist/gen/proto/rpc/examples/fileupload/v1/fileupload_pb.d.ts +67 -60
  159. package/dist/gen/proto/rpc/v1/auth_connect.d.ts +69 -0
  160. package/dist/gen/proto/rpc/v1/auth_pb.d.ts +145 -101
  161. package/dist/gen/proto/rpc/webrtc/v1/grpc_pb.d.ts +349 -291
  162. package/dist/gen/proto/rpc/webrtc/v1/signaling_connect.d.ts +78 -0
  163. package/dist/gen/proto/rpc/webrtc/v1/signaling_pb.d.ts +647 -529
  164. package/dist/gen/provisioning/v1/provisioning_connect.d.ts +63 -0
  165. package/dist/gen/provisioning/v1/provisioning_pb.d.ts +285 -231
  166. package/dist/gen/robot/v1/robot_connect.d.ts +239 -0
  167. package/dist/gen/robot/v1/robot_pb.d.ts +1327 -1087
  168. package/dist/gen/service/datamanager/v1/data_manager_connect.d.ts +42 -0
  169. package/dist/gen/service/datamanager/v1/data_manager_pb.d.ts +52 -44
  170. package/dist/gen/service/generic/v1/generic_connect.d.ts +30 -0
  171. package/dist/gen/service/mlmodel/v1/mlmodel_connect.d.ts +42 -0
  172. package/dist/gen/service/mlmodel/v1/mlmodel_pb.d.ts +620 -510
  173. package/dist/gen/service/motion/v1/motion_connect.d.ts +118 -0
  174. package/dist/gen/service/motion/v1/motion_pb.d.ts +1063 -795
  175. package/dist/gen/service/navigation/v1/navigation_connect.d.ts +115 -0
  176. package/dist/gen/service/navigation/v1/navigation_pb.d.ts +567 -435
  177. package/dist/gen/service/sensors/v1/sensors_connect.d.ts +58 -0
  178. package/dist/gen/service/sensors/v1/sensors_pb.d.ts +154 -120
  179. package/dist/gen/service/shell/v1/shell_connect.d.ts +78 -0
  180. package/dist/gen/service/shell/v1/shell_pb.d.ts +423 -309
  181. package/dist/gen/service/slam/v1/slam_connect.d.ts +81 -0
  182. package/dist/gen/service/slam/v1/slam_pb.d.ts +305 -204
  183. package/dist/gen/service/vision/v1/vision_connect.d.ts +108 -0
  184. package/dist/gen/service/vision/v1/vision_pb.d.ts +615 -471
  185. package/dist/gen/stream/v1/stream_connect.d.ts +56 -0
  186. package/dist/gen/stream/v1/stream_pb.d.ts +131 -97
  187. package/dist/gen/tagger/v1/tagger_pb.d.ts +17 -6
  188. package/dist/main.d.ts +81 -92
  189. package/dist/main.es.js +20593 -79637
  190. package/dist/main.umd.js +6 -21
  191. package/dist/robot/client.d.ts +990 -59
  192. package/dist/robot/dial.d.ts +2 -4
  193. package/dist/robot/grpc-connection-manager.d.ts +5 -7
  194. package/dist/robot/grpc-connection-manager.spec.d.ts +1 -0
  195. package/dist/robot/robot.d.ts +9 -10
  196. package/dist/robot/session-manager.d.ts +6 -8
  197. package/dist/robot/session-manager.spec.d.ts +1 -0
  198. package/dist/robot/session-transport.d.ts +8 -11
  199. package/dist/robot.d.ts +2 -2
  200. package/dist/rpc/base-channel.d.ts +20 -0
  201. package/dist/rpc/base-stream.d.ts +11 -0
  202. package/dist/rpc/client-channel.d.ts +19 -0
  203. package/dist/rpc/client-stream.d.ts +35 -0
  204. package/dist/rpc/connection-closed-error.d.ts +5 -0
  205. package/dist/rpc/dial.d.ts +71 -0
  206. package/dist/rpc/index.d.ts +8 -0
  207. package/dist/rpc/peer.d.ts +10 -0
  208. package/dist/rpc/polyfills.d.ts +2 -0
  209. package/dist/rpc/signaling-exchange.d.ts +33 -0
  210. package/dist/rpc/stream-client-stream.d.ts +16 -0
  211. package/dist/rpc/unary-client-stream.d.ts +13 -0
  212. package/dist/services/data-manager/client.d.ts +3 -3
  213. package/dist/services/data-manager/data-manager.d.ts +3 -2
  214. package/dist/services/generic/client.d.ts +3 -3
  215. package/dist/services/motion/client.d.ts +7 -8
  216. package/dist/services/motion/client.spec.d.ts +1 -0
  217. package/dist/services/motion/motion.d.ts +10 -9
  218. package/dist/services/motion/types.d.ts +12 -16
  219. package/dist/services/motion.d.ts +2 -2
  220. package/dist/services/navigation/client.d.ts +11 -12
  221. package/dist/services/navigation/client.spec.d.ts +1 -0
  222. package/dist/services/navigation/navigation.d.ts +11 -10
  223. package/dist/services/navigation/types.d.ts +8 -6
  224. package/dist/services/navigation.d.ts +2 -2
  225. package/dist/services/slam/client.d.ts +5 -6
  226. package/dist/services/slam/client.spec.d.ts +1 -0
  227. package/dist/services/slam/types.d.ts +4 -3
  228. package/dist/services/slam.d.ts +2 -2
  229. package/dist/services/vision/client.d.ts +13 -19
  230. package/dist/services/vision/types.d.ts +10 -7
  231. package/dist/services/vision/vision.d.ts +10 -9
  232. package/dist/services/vision.d.ts +2 -2
  233. package/dist/types.d.ts +21 -18
  234. package/dist/utils.d.ts +7 -37
  235. package/package.json +6 -10
  236. package/dist/gen/app/agent/v1/agent_pb_service.d.ts +0 -63
  237. package/dist/gen/app/build/v1/build_pb_service.d.ts +0 -226
  238. package/dist/gen/app/cloudslam/v1/cloud_slam_pb_service.d.ts +0 -158
  239. package/dist/gen/app/data/v1/data_pb_service.d.ts +0 -443
  240. package/dist/gen/app/dataset/v1/dataset_pb_service.d.ts +0 -139
  241. package/dist/gen/app/datasync/v1/data_sync_pb_service.d.ts +0 -85
  242. package/dist/gen/app/mltraining/v1/ml_training_pb_service.d.ts +0 -177
  243. package/dist/gen/app/packages/v1/packages_pb_service.d.ts +0 -112
  244. package/dist/gen/app/v1/app_pb_service.d.ts +0 -1415
  245. package/dist/gen/app/v1/billing_pb_service.d.ts +0 -131
  246. package/dist/gen/app/v1/end_user_pb_service.d.ts +0 -139
  247. package/dist/gen/app/v1/robot_pb_service.d.ts +0 -120
  248. package/dist/gen/common/v1/common_pb_service.d.ts +0 -3
  249. package/dist/gen/component/arm/v1/arm_pb_service.d.ts +0 -216
  250. package/dist/gen/component/audioinput/v1/audioinput_pb_service.d.ts +0 -133
  251. package/dist/gen/component/base/v1/base_pb_service.d.ts +0 -216
  252. package/dist/gen/component/board/v1/board_pb_service.d.ts +0 -284
  253. package/dist/gen/component/camera/v1/camera_pb_service.d.ts +0 -179
  254. package/dist/gen/component/encoder/v1/encoder_pb_service.d.ts +0 -140
  255. package/dist/gen/component/gantry/v1/gantry_pb_service.d.ts +0 -197
  256. package/dist/gen/component/generic/v1/generic_pb.d.ts +0 -7
  257. package/dist/gen/component/generic/v1/generic_pb_service.d.ts +0 -83
  258. package/dist/gen/component/gripper/v1/gripper_pb_service.d.ts +0 -159
  259. package/dist/gen/component/inputcontroller/v1/input_controller_pb_service.d.ts +0 -151
  260. package/dist/gen/component/motor/v1/motor_pb_service.d.ts +0 -273
  261. package/dist/gen/component/movementsensor/v1/movementsensor_pb_service.d.ts +0 -254
  262. package/dist/gen/component/posetracker/v1/pose_tracker_pb_service.d.ts +0 -102
  263. package/dist/gen/component/powersensor/v1/powersensor_pb_service.d.ts +0 -140
  264. package/dist/gen/component/sensor/v1/sensor_pb.d.ts +0 -7
  265. package/dist/gen/component/sensor/v1/sensor_pb_service.d.ts +0 -102
  266. package/dist/gen/component/servo/v1/servo_pb_service.d.ts +0 -159
  267. package/dist/gen/component/testecho/v1/testecho_pb_service.d.ts +0 -104
  268. package/dist/gen/google/api/annotations_pb_service.d.ts +0 -3
  269. package/dist/gen/google/api/client_pb_service.d.ts +0 -3
  270. package/dist/gen/google/api/expr/v1alpha1/checked_pb_service.d.ts +0 -3
  271. package/dist/gen/google/api/expr/v1alpha1/eval_pb_service.d.ts +0 -3
  272. package/dist/gen/google/api/expr/v1alpha1/explain_pb_service.d.ts +0 -3
  273. package/dist/gen/google/api/expr/v1alpha1/syntax_pb_service.d.ts +0 -3
  274. package/dist/gen/google/api/expr/v1alpha1/value_pb_service.d.ts +0 -3
  275. package/dist/gen/google/api/expr/v1beta1/decl_pb_service.d.ts +0 -3
  276. package/dist/gen/google/api/expr/v1beta1/eval_pb_service.d.ts +0 -3
  277. package/dist/gen/google/api/expr/v1beta1/expr_pb_service.d.ts +0 -3
  278. package/dist/gen/google/api/expr/v1beta1/source_pb_service.d.ts +0 -3
  279. package/dist/gen/google/api/expr/v1beta1/value_pb_service.d.ts +0 -3
  280. package/dist/gen/google/api/field_behavior_pb_service.d.ts +0 -3
  281. package/dist/gen/google/api/field_info_pb_service.d.ts +0 -3
  282. package/dist/gen/google/api/http_pb_service.d.ts +0 -3
  283. package/dist/gen/google/api/httpbody_pb_service.d.ts +0 -3
  284. package/dist/gen/google/api/launch_stage_pb_service.d.ts +0 -3
  285. package/dist/gen/google/api/resource_pb_service.d.ts +0 -3
  286. package/dist/gen/google/api/visibility_pb_service.d.ts +0 -3
  287. package/dist/gen/google/bytestream/bytestream_pb_service.d.ts +0 -85
  288. package/dist/gen/google/geo/type/viewport_pb_service.d.ts +0 -3
  289. package/dist/gen/google/longrunning/operations_pb_service.d.ts +0 -140
  290. package/dist/gen/google/rpc/code_pb_service.d.ts +0 -3
  291. package/dist/gen/google/rpc/context/attribute_context_pb_service.d.ts +0 -3
  292. package/dist/gen/google/rpc/error_details_pb_service.d.ts +0 -3
  293. package/dist/gen/google/rpc/status_pb_service.d.ts +0 -3
  294. package/dist/gen/google/type/calendar_period_pb_service.d.ts +0 -3
  295. package/dist/gen/google/type/color_pb_service.d.ts +0 -3
  296. package/dist/gen/google/type/date_pb_service.d.ts +0 -3
  297. package/dist/gen/google/type/datetime_pb_service.d.ts +0 -3
  298. package/dist/gen/google/type/dayofweek_pb_service.d.ts +0 -3
  299. package/dist/gen/google/type/decimal_pb_service.d.ts +0 -3
  300. package/dist/gen/google/type/expr_pb_service.d.ts +0 -3
  301. package/dist/gen/google/type/fraction_pb_service.d.ts +0 -3
  302. package/dist/gen/google/type/interval_pb_service.d.ts +0 -3
  303. package/dist/gen/google/type/latlng_pb_service.d.ts +0 -3
  304. package/dist/gen/google/type/localized_text_pb_service.d.ts +0 -3
  305. package/dist/gen/google/type/money_pb_service.d.ts +0 -3
  306. package/dist/gen/google/type/month_pb_service.d.ts +0 -3
  307. package/dist/gen/google/type/phone_number_pb_service.d.ts +0 -3
  308. package/dist/gen/google/type/postal_address_pb_service.d.ts +0 -3
  309. package/dist/gen/google/type/quaternion_pb_service.d.ts +0 -3
  310. package/dist/gen/google/type/timeofday_pb_service.d.ts +0 -3
  311. package/dist/gen/proto/rpc/examples/echo/v1/echo_pb_service.d.ts +0 -85
  312. package/dist/gen/proto/rpc/examples/echoresource/v1/echoresource_pb_service.d.ts +0 -85
  313. package/dist/gen/proto/rpc/examples/fileupload/v1/fileupload_pb_service.d.ts +0 -55
  314. package/dist/gen/proto/rpc/v1/auth_pb_service.d.ts +0 -92
  315. package/dist/gen/proto/rpc/webrtc/v1/grpc_pb_service.d.ts +0 -3
  316. package/dist/gen/proto/rpc/webrtc/v1/signaling_pb_service.d.ts +0 -104
  317. package/dist/gen/provisioning/v1/provisioning_pb_service.d.ts +0 -120
  318. package/dist/gen/robot/v1/robot_pb_service.d.ts +0 -435
  319. package/dist/gen/service/datamanager/v1/data_manager_pb_service.d.ts +0 -83
  320. package/dist/gen/service/generic/v1/generic_pb.d.ts +0 -7
  321. package/dist/gen/service/generic/v1/generic_pb_service.d.ts +0 -64
  322. package/dist/gen/service/mlmodel/v1/mlmodel_pb_service.d.ts +0 -82
  323. package/dist/gen/service/motion/v1/motion_pb_service.d.ts +0 -197
  324. package/dist/gen/service/navigation/v1/navigation_pb_service.d.ts +0 -235
  325. package/dist/gen/service/sensors/v1/sensors_pb_service.d.ts +0 -102
  326. package/dist/gen/service/shell/v1/shell_pb_service.d.ts +0 -97
  327. package/dist/gen/service/slam/v1/slam_pb_service.d.ts +0 -124
  328. package/dist/gen/service/vision/v1/vision_pb_service.d.ts +0 -197
  329. package/dist/gen/stream/v1/stream_pb_service.d.ts +0 -101
  330. package/dist/gen/tagger/v1/tagger_pb_service.d.ts +0 -3
  331. package/dist/responses.d.ts +0 -8
@@ -1,8 +1,8 @@
1
- import pb from '../../gen/service/navigation/v1/navigation_pb';
1
+ import { Struct, type JsonValue } from '@bufbuild/protobuf';
2
2
  import { RobotClient } from '../../robot';
3
- import type { GeoPoint, Options, StructType } from '../../types';
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
- private get service();
17
- getMode(extra?: {}): Promise<0 | 2 | 1 | 3>;
18
- setMode(mode: ModeMap[keyof ModeMap], extra?: {}): Promise<void>;
19
- getLocation(extra?: {}): Promise<pb.GetLocationResponse.AsObject>;
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.AsObject[]>;
24
- getPaths(extra?: {}): Promise<pb.Path.AsObject[]>;
25
- getProperties(): Promise<pb.GetPropertiesResponse.AsObject>;
26
- doCommand(command: StructType): Promise<StructType>;
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 { GeoGeometry, GeoPoint, Resource, StructType } from '../../types';
2
- import type { ModeMap, Waypoint, NavigationPosition, NavigationProperties, Path } from './types';
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?: StructType) => Promise<ModeMap[keyof ModeMap]>;
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: ModeMap[keyof ModeMap], extra?: StructType) => Promise<void>;
16
+ setMode: (mode: Mode, extra?: Struct) => Promise<void>;
16
17
  /** Get the current location of the robot. */
17
- getLocation: (extra?: StructType) => Promise<NavigationPosition>;
18
+ getLocation: (extra?: Struct) => Promise<NavigationPosition>;
18
19
  /** Get an array of waypoints currently in the service's data storage. */
19
- getWayPoints: (extra?: StructType) => Promise<Waypoint[]>;
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?: StructType) => Promise<void>;
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?: StructType) => Promise<void>;
34
+ removeWayPoint: (id: string, extra?: Struct) => Promise<void>;
34
35
  /** Get a list of obstacles. */
35
- getObstacles: (extra?: StructType) => Promise<GeoGeometry[]>;
36
+ getObstacles: (extra?: Struct) => Promise<GeoGeometry[]>;
36
37
  /** Gets the list of paths known to the navigation service. */
37
- getPaths: (extra?: StructType) => Promise<Path[]>;
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 pb from '../../gen/service/navigation/v1/navigation_pb';
2
- export type ModeMap = pb.ModeMap;
3
- export type Waypoint = pb.Waypoint.AsObject;
4
- export type NavigationPosition = pb.GetLocationResponse.AsObject;
5
- export type Path = pb.Path.AsObject;
6
- export type NavigationProperties = pb.GetPropertiesResponse.AsObject;
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 pb from '../../gen/service/slam/v1/slam_pb';
1
+ import type { JsonValue, Struct } from '@bufbuild/protobuf';
2
2
  import { RobotClient } from '../../robot';
3
- import type { Options, StructType } from '../../types';
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
- private get service();
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<pb.GetPropertiesResponse.AsObject>;
20
- doCommand(command: StructType): Promise<StructType>;
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 pb from '../../gen/service/slam/v1/slam_pb';
2
- export type SlamPosition = pb.GetPositionResponse.AsObject;
3
- export type SlamProperties = pb.GetPropertiesResponse.AsObject;
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;
@@ -1,3 +1,3 @@
1
- export type { Slam } from './slam/slam';
2
- export type { SlamPosition, SlamProperties } from './slam/types';
3
1
  export { SlamClient } from './slam/client';
2
+ export type { Slam } from './slam/slam';
3
+ export { SlamPosition, SlamProperties } from './slam/types';
@@ -1,10 +1,9 @@
1
- import pb from '../../gen/service/vision/v1/vision_pb';
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, StructType } from '../../types';
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
- private get service();
19
- getDetectionsFromCamera(cameraName: string, extra?: StructType): Promise<pb.Detection.AsObject[]>;
20
- getDetections(image: Uint8Array, width: number, height: number, mimeType: MimeType, extra?: StructType): Promise<pb.Detection.AsObject[]>;
21
- getClassificationsFromCamera(cameraName: string, count: number, extra?: StructType): Promise<pb.Classification.AsObject[]>;
22
- getClassifications(image: Uint8Array, width: number, height: number, mimeType: MimeType, count: number, extra?: StructType): Promise<pb.Classification.AsObject[]>;
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
- format: 0 | 2 | 1 | 3 | 4;
32
- sourceName: string;
33
- image: Uint8Array;
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: StructType): Promise<StructType>;
33
+ doCommand(command: Struct): Promise<JsonValue>;
40
34
  }
@@ -1,9 +1,12 @@
1
- import pb from '../../gen/service/vision/v1/vision_pb';
2
- import commonPB from '../../gen/common/v1/common_pb';
3
- import cameraPB from '../../gen/component/camera/v1/camera_pb';
4
- export type Detection = pb.Detection.AsObject;
5
- export type Classification = pb.Classification.AsObject;
6
- export type PointCloudObject = commonPB.PointCloudObject.AsObject;
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: cameraPB.Image.AsObject | undefined;
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, StructType } from '../../types';
3
- import type { Classification, Detection, PointCloudObject, Properties, CaptureAllOptions, CaptureAllResponse } from './types';
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?: StructType) => Promise<Detection[]>;
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?: StructType) => Promise<Detection[]>;
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?: StructType) => Promise<Classification[]>;
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?: StructType) => Promise<Classification[]>;
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?: StructType) => Promise<PointCloudObject[]>;
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?: StructType) => Promise<Properties>;
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?: StructType) => Promise<CaptureAllResponse>;
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 { JavaScriptValue } from 'google-protobuf/google/protobuf/struct_pb';
2
- import common from './gen/common/v1/common_pb';
3
- export type StructType = Record<string, JavaScriptValue>;
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: (command: StructType) => Promise<StructType>;
13
+ doCommand(command: Struct): Promise<JsonValue>;
14
14
  }
15
- export type ResourceName = common.ResourceName.AsObject;
16
- export type GeoGeometry = common.GeoGeometry.AsObject;
17
- export type GeoPoint = common.GeoPoint.AsObject;
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 Vector3 = common.Vector3.AsObject;
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 { grpc } from '@improbable-eng/grpc-web';
2
- import type { ServiceError } from './gen/robot/v1/robot_pb_service';
3
- import common from './gen/common/v1/common_pb';
4
- import type { Options, StructType, Vector3 } from './types';
5
- type Callback<T> = (error: ServiceError | null, response: T | null) => void;
6
- type ServiceFunc<Req, Resp> = (request: Req, metadata: grpc.Metadata, callback: Callback<Resp>) => void;
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: (client: DoCommandClient, name: string, command: StructType, options?: Options) => Promise<StructType>;
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.24.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}' --quiet",
36
+ "_eslint": "eslint '.*.cjs' '**/*.{ts,js,cjs}'",
37
37
  "_prettier": "prettier '.*.cjs' '**/*.{ts,js,cjs}'"
38
38
  },
39
39
  "repository": {
@@ -46,14 +46,13 @@
46
46
  },
47
47
  "homepage": "https://github.com/viamrobotics/viam-typescript-sdk#readme",
48
48
  "dependencies": {
49
- "@viamrobotics/rpc": "^0.2.6",
50
- "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"
51
53
  },
52
54
  "devDependencies": {
53
55
  "@bufbuild/buf": "^1.15.0-1",
54
- "@improbable-eng/grpc-web": "^0.15.0",
55
- "@improbable-eng/grpc-web-fake-transport": "^0.15.0",
56
- "@types/google-protobuf": "^3.15.6",
57
56
  "@types/node": "^20.11.10",
58
57
  "@typescript-eslint/eslint-plugin": "^6.17.0",
59
58
  "@typescript-eslint/parser": "^6.17.0",
@@ -66,15 +65,12 @@
66
65
  "eslint-config-prettier": "^9.1.0",
67
66
  "eslint-plugin-tsdoc": "^0.2.17",
68
67
  "eslint-plugin-vitest": "^0.3.20",
69
- "google-protobuf": "^3.21.2",
70
68
  "grpc-web": "^1.4.2",
71
69
  "happy-dom": "^8.2.6",
72
70
  "npm-check": "^6.0.1",
73
71
  "prettier": "^3.1.1",
74
72
  "prettier-plugin-jsdoc": "^1.1.1",
75
- "protoc-gen-js": "^3.21.2",
76
73
  "ts-node": "^10.9.2",
77
- "ts-protoc-gen": "^0.15.0",
78
74
  "typedoc": "^0.25.4",
79
75
  "typescript": "^5.3.3",
80
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
-