@viamrobotics/sdk 0.25.0 → 0.26.1

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 (330) 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 +2 -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 +668 -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/mlinference/v1/ml_inference_connect.d.ts +26 -0
  64. package/dist/gen/app/mlinference/v1/ml_inference_pb.d.ts +71 -0
  65. package/dist/gen/app/mltraining/v1/ml_training_connect.d.ts +94 -0
  66. package/dist/gen/app/mltraining/v1/ml_training_pb.d.ts +566 -429
  67. package/dist/gen/app/packages/v1/packages_connect.d.ts +64 -0
  68. package/dist/gen/app/packages/v1/packages_pb.d.ts +396 -336
  69. package/dist/gen/app/v1/app_connect.d.ts +788 -0
  70. package/dist/gen/app/v1/app_pb.d.ts +5593 -4578
  71. package/dist/gen/app/v1/billing_connect.d.ts +72 -0
  72. package/dist/gen/app/v1/billing_pb.d.ts +564 -394
  73. package/dist/gen/app/v1/end_user_connect.d.ts +73 -0
  74. package/dist/gen/app/v1/end_user_pb.d.ts +292 -244
  75. package/dist/gen/app/v1/robot_connect.d.ts +63 -0
  76. package/dist/gen/app/v1/robot_pb.d.ts +1608 -1289
  77. package/dist/gen/common/v1/common_pb.d.ts +886 -662
  78. package/dist/gen/component/arm/v1/arm_connect.d.ts +121 -0
  79. package/dist/gen/component/arm/v1/arm_pb.d.ts +371 -294
  80. package/dist/gen/component/audioinput/v1/audioinput_connect.d.ts +78 -0
  81. package/dist/gen/component/audioinput/v1/audioinput_pb.d.ts +246 -189
  82. package/dist/gen/component/base/v1/base_connect.d.ts +122 -0
  83. package/dist/gen/component/base/v1/base_pb.d.ts +393 -307
  84. package/dist/gen/component/board/v1/board_connect.d.ts +161 -0
  85. package/dist/gen/component/board/v1/board_pb.d.ts +684 -535
  86. package/dist/gen/component/camera/v1/camera_connect.d.ts +99 -0
  87. package/dist/gen/component/camera/v1/camera_pb.d.ts +549 -399
  88. package/dist/gen/component/encoder/v1/encoder_connect.d.ts +71 -0
  89. package/dist/gen/component/encoder/v1/encoder_pb.d.ts +201 -144
  90. package/dist/gen/component/gantry/v1/gantry_connect.d.ts +108 -0
  91. package/dist/gen/component/gantry/v1/gantry_pb.d.ts +334 -279
  92. package/dist/gen/component/generic/v1/generic_connect.d.ts +41 -0
  93. package/dist/gen/component/gripper/v1/gripper_connect.d.ts +86 -0
  94. package/dist/gen/component/gripper/v1/gripper_pb.d.ts +188 -160
  95. package/dist/gen/component/inputcontroller/v1/input_controller_connect.d.ts +87 -0
  96. package/dist/gen/component/inputcontroller/v1/input_controller_pb.d.ts +334 -264
  97. package/dist/gen/component/motor/v1/motor_connect.d.ts +162 -0
  98. package/dist/gen/component/motor/v1/motor_pb.d.ts +577 -432
  99. package/dist/gen/component/movementsensor/v1/movementsensor_connect.d.ts +121 -0
  100. package/dist/gen/component/movementsensor/v1/movementsensor_pb.d.ts +476 -379
  101. package/dist/gen/component/posetracker/v1/pose_tracker_connect.d.ts +53 -0
  102. package/dist/gen/component/posetracker/v1/pose_tracker_pb.d.ts +71 -53
  103. package/dist/gen/component/powersensor/v1/powersensor_connect.d.ts +75 -0
  104. package/dist/gen/component/powersensor/v1/powersensor_pb.d.ts +181 -136
  105. package/dist/gen/component/sensor/v1/sensor_connect.d.ts +52 -0
  106. package/dist/gen/component/servo/v1/servo_connect.d.ts +87 -0
  107. package/dist/gen/component/servo/v1/servo_pb.d.ts +228 -179
  108. package/dist/gen/component/testecho/v1/testecho_connect.d.ts +53 -0
  109. package/dist/gen/component/testecho/v1/testecho_pb.d.ts +186 -150
  110. package/dist/gen/google/api/annotations_pb.d.ts +26 -6
  111. package/dist/gen/google/api/client_pb.d.ts +895 -453
  112. package/dist/gen/google/api/expr/v1alpha1/checked_pb.d.ts +758 -438
  113. package/dist/gen/google/api/expr/v1alpha1/eval_pb.d.ts +236 -132
  114. package/dist/gen/google/api/expr/v1alpha1/explain_pb.d.ts +98 -54
  115. package/dist/gen/google/api/expr/v1alpha1/syntax_pb.d.ts +943 -554
  116. package/dist/gen/google/api/expr/v1alpha1/value_pb.d.ts +274 -197
  117. package/dist/gen/google/api/expr/v1beta1/decl_pb.d.ts +200 -131
  118. package/dist/gen/google/api/expr/v1beta1/eval_pb.d.ts +262 -151
  119. package/dist/gen/google/api/expr/v1beta1/expr_pb.d.ts +614 -402
  120. package/dist/gen/google/api/expr/v1beta1/source_pb.d.ts +115 -56
  121. package/dist/gen/google/api/expr/v1beta1/value_pb.d.ts +275 -197
  122. package/dist/gen/google/api/field_behavior_pb.d.ts +139 -19
  123. package/dist/gen/google/api/field_info_pb.d.ts +169 -56
  124. package/dist/gen/google/api/http_pb.d.ts +480 -127
  125. package/dist/gen/google/api/httpbody_pb.d.ts +104 -35
  126. package/dist/gen/google/api/launch_stage_pb.d.ts +102 -16
  127. package/dist/gen/google/api/resource_pb.d.ts +334 -88
  128. package/dist/gen/google/api/visibility_pb.d.ts +157 -52
  129. package/dist/gen/google/bytestream/bytestream_connect.d.ts +124 -0
  130. package/dist/gen/google/bytestream/bytestream_pb.d.ts +241 -130
  131. package/dist/gen/google/geo/type/viewport_pb.d.ts +90 -31
  132. package/dist/gen/google/longrunning/operations_connect.d.ts +127 -0
  133. package/dist/gen/google/longrunning/operations_pb.d.ts +351 -202
  134. package/dist/gen/google/rpc/code_pb.d.ts +252 -25
  135. package/dist/gen/google/rpc/context/attribute_context_pb.d.ts +664 -352
  136. package/dist/gen/google/rpc/error_details_pb.d.ts +604 -311
  137. package/dist/gen/google/rpc/status_pb.d.ts +72 -33
  138. package/dist/gen/google/type/calendar_period_pb.d.ts +86 -16
  139. package/dist/gen/google/type/color_pb.d.ts +201 -37
  140. package/dist/gen/google/type/date_pb.d.ts +72 -25
  141. package/dist/gen/google/type/datetime_pb.d.ts +176 -83
  142. package/dist/gen/google/type/dayofweek_pb.d.ts +80 -16
  143. package/dist/gen/google/type/decimal_pb.d.ts +112 -22
  144. package/dist/gen/google/type/expr_pb.d.ts +97 -28
  145. package/dist/gen/google/type/fraction_pb.d.ts +55 -26
  146. package/dist/gen/google/type/interval_pb.d.ts +65 -31
  147. package/dist/gen/google/type/latlng_pb.d.ts +58 -26
  148. package/dist/gen/google/type/localized_text_pb.d.ts +57 -26
  149. package/dist/gen/google/type/money_pb.d.ts +62 -25
  150. package/dist/gen/google/type/month_pb.d.ts +115 -21
  151. package/dist/gen/google/type/phone_number_pb.d.ts +169 -64
  152. package/dist/gen/google/type/postal_address_pb.d.ts +178 -53
  153. package/dist/gen/google/type/quaternion_pb.d.ts +117 -28
  154. package/dist/gen/google/type/timeofday_pb.d.ts +67 -28
  155. package/dist/gen/proto/rpc/examples/echo/v1/echo_connect.d.ts +44 -0
  156. package/dist/gen/proto/rpc/examples/echo/v1/echo_pb.d.ts +134 -108
  157. package/dist/gen/proto/rpc/examples/echoresource/v1/echoresource_connect.d.ts +44 -0
  158. package/dist/gen/proto/rpc/examples/echoresource/v1/echoresource_pb.d.ts +149 -119
  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 +676 -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 +1332 -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 +21120 -69216
  190. package/dist/main.umd.js +6 -13
  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 +2 -2
  201. package/dist/rpc/base-stream.d.ts +3 -6
  202. package/dist/rpc/client-channel.d.ts +5 -3
  203. package/dist/rpc/client-stream.d.ts +26 -12
  204. package/dist/rpc/dial.d.ts +49 -9
  205. package/dist/rpc/index.d.ts +3 -5
  206. package/dist/rpc/signaling-exchange.d.ts +33 -0
  207. package/dist/rpc/stream-client-stream.d.ts +16 -0
  208. package/dist/rpc/unary-client-stream.d.ts +13 -0
  209. package/dist/services/data-manager/client.d.ts +3 -3
  210. package/dist/services/data-manager/data-manager.d.ts +3 -2
  211. package/dist/services/generic/client.d.ts +3 -3
  212. package/dist/services/motion/client.d.ts +7 -8
  213. package/dist/services/motion/client.spec.d.ts +1 -0
  214. package/dist/services/motion/motion.d.ts +10 -9
  215. package/dist/services/motion/types.d.ts +12 -16
  216. package/dist/services/motion.d.ts +2 -2
  217. package/dist/services/navigation/client.d.ts +11 -12
  218. package/dist/services/navigation/client.spec.d.ts +1 -0
  219. package/dist/services/navigation/navigation.d.ts +11 -10
  220. package/dist/services/navigation/types.d.ts +8 -6
  221. package/dist/services/navigation.d.ts +2 -2
  222. package/dist/services/slam/client.d.ts +5 -6
  223. package/dist/services/slam/client.spec.d.ts +1 -0
  224. package/dist/services/slam/types.d.ts +4 -3
  225. package/dist/services/slam.d.ts +2 -2
  226. package/dist/services/vision/client.d.ts +13 -19
  227. package/dist/services/vision/types.d.ts +10 -7
  228. package/dist/services/vision/vision.d.ts +10 -9
  229. package/dist/services/vision.d.ts +2 -2
  230. package/dist/types.d.ts +21 -18
  231. package/dist/utils.d.ts +7 -37
  232. package/package.json +11 -8
  233. package/dist/gen/app/agent/v1/agent_pb_service.d.ts +0 -63
  234. package/dist/gen/app/build/v1/build_pb_service.d.ts +0 -226
  235. package/dist/gen/app/cloudslam/v1/cloud_slam_pb_service.d.ts +0 -158
  236. package/dist/gen/app/data/v1/data_pb_service.d.ts +0 -443
  237. package/dist/gen/app/dataset/v1/dataset_pb_service.d.ts +0 -139
  238. package/dist/gen/app/datasync/v1/data_sync_pb_service.d.ts +0 -85
  239. package/dist/gen/app/mltraining/v1/ml_training_pb_service.d.ts +0 -177
  240. package/dist/gen/app/packages/v1/packages_pb_service.d.ts +0 -112
  241. package/dist/gen/app/v1/app_pb_service.d.ts +0 -1415
  242. package/dist/gen/app/v1/billing_pb_service.d.ts +0 -131
  243. package/dist/gen/app/v1/end_user_pb_service.d.ts +0 -139
  244. package/dist/gen/app/v1/robot_pb_service.d.ts +0 -120
  245. package/dist/gen/common/v1/common_pb_service.d.ts +0 -3
  246. package/dist/gen/component/arm/v1/arm_pb_service.d.ts +0 -216
  247. package/dist/gen/component/audioinput/v1/audioinput_pb_service.d.ts +0 -133
  248. package/dist/gen/component/base/v1/base_pb_service.d.ts +0 -216
  249. package/dist/gen/component/board/v1/board_pb_service.d.ts +0 -284
  250. package/dist/gen/component/camera/v1/camera_pb_service.d.ts +0 -179
  251. package/dist/gen/component/encoder/v1/encoder_pb_service.d.ts +0 -140
  252. package/dist/gen/component/gantry/v1/gantry_pb_service.d.ts +0 -197
  253. package/dist/gen/component/generic/v1/generic_pb.d.ts +0 -7
  254. package/dist/gen/component/generic/v1/generic_pb_service.d.ts +0 -83
  255. package/dist/gen/component/gripper/v1/gripper_pb_service.d.ts +0 -159
  256. package/dist/gen/component/inputcontroller/v1/input_controller_pb_service.d.ts +0 -151
  257. package/dist/gen/component/motor/v1/motor_pb_service.d.ts +0 -273
  258. package/dist/gen/component/movementsensor/v1/movementsensor_pb_service.d.ts +0 -254
  259. package/dist/gen/component/posetracker/v1/pose_tracker_pb_service.d.ts +0 -102
  260. package/dist/gen/component/powersensor/v1/powersensor_pb_service.d.ts +0 -140
  261. package/dist/gen/component/sensor/v1/sensor_pb.d.ts +0 -7
  262. package/dist/gen/component/sensor/v1/sensor_pb_service.d.ts +0 -102
  263. package/dist/gen/component/servo/v1/servo_pb_service.d.ts +0 -159
  264. package/dist/gen/component/testecho/v1/testecho_pb_service.d.ts +0 -104
  265. package/dist/gen/google/api/annotations_pb_service.d.ts +0 -3
  266. package/dist/gen/google/api/client_pb_service.d.ts +0 -3
  267. package/dist/gen/google/api/expr/v1alpha1/checked_pb_service.d.ts +0 -3
  268. package/dist/gen/google/api/expr/v1alpha1/eval_pb_service.d.ts +0 -3
  269. package/dist/gen/google/api/expr/v1alpha1/explain_pb_service.d.ts +0 -3
  270. package/dist/gen/google/api/expr/v1alpha1/syntax_pb_service.d.ts +0 -3
  271. package/dist/gen/google/api/expr/v1alpha1/value_pb_service.d.ts +0 -3
  272. package/dist/gen/google/api/expr/v1beta1/decl_pb_service.d.ts +0 -3
  273. package/dist/gen/google/api/expr/v1beta1/eval_pb_service.d.ts +0 -3
  274. package/dist/gen/google/api/expr/v1beta1/expr_pb_service.d.ts +0 -3
  275. package/dist/gen/google/api/expr/v1beta1/source_pb_service.d.ts +0 -3
  276. package/dist/gen/google/api/expr/v1beta1/value_pb_service.d.ts +0 -3
  277. package/dist/gen/google/api/field_behavior_pb_service.d.ts +0 -3
  278. package/dist/gen/google/api/field_info_pb_service.d.ts +0 -3
  279. package/dist/gen/google/api/http_pb_service.d.ts +0 -3
  280. package/dist/gen/google/api/httpbody_pb_service.d.ts +0 -3
  281. package/dist/gen/google/api/launch_stage_pb_service.d.ts +0 -3
  282. package/dist/gen/google/api/resource_pb_service.d.ts +0 -3
  283. package/dist/gen/google/api/visibility_pb_service.d.ts +0 -3
  284. package/dist/gen/google/bytestream/bytestream_pb_service.d.ts +0 -85
  285. package/dist/gen/google/geo/type/viewport_pb_service.d.ts +0 -3
  286. package/dist/gen/google/longrunning/operations_pb_service.d.ts +0 -140
  287. package/dist/gen/google/rpc/code_pb_service.d.ts +0 -3
  288. package/dist/gen/google/rpc/context/attribute_context_pb_service.d.ts +0 -3
  289. package/dist/gen/google/rpc/error_details_pb_service.d.ts +0 -3
  290. package/dist/gen/google/rpc/status_pb_service.d.ts +0 -3
  291. package/dist/gen/google/type/calendar_period_pb_service.d.ts +0 -3
  292. package/dist/gen/google/type/color_pb_service.d.ts +0 -3
  293. package/dist/gen/google/type/date_pb_service.d.ts +0 -3
  294. package/dist/gen/google/type/datetime_pb_service.d.ts +0 -3
  295. package/dist/gen/google/type/dayofweek_pb_service.d.ts +0 -3
  296. package/dist/gen/google/type/decimal_pb_service.d.ts +0 -3
  297. package/dist/gen/google/type/expr_pb_service.d.ts +0 -3
  298. package/dist/gen/google/type/fraction_pb_service.d.ts +0 -3
  299. package/dist/gen/google/type/interval_pb_service.d.ts +0 -3
  300. package/dist/gen/google/type/latlng_pb_service.d.ts +0 -3
  301. package/dist/gen/google/type/localized_text_pb_service.d.ts +0 -3
  302. package/dist/gen/google/type/money_pb_service.d.ts +0 -3
  303. package/dist/gen/google/type/month_pb_service.d.ts +0 -3
  304. package/dist/gen/google/type/phone_number_pb_service.d.ts +0 -3
  305. package/dist/gen/google/type/postal_address_pb_service.d.ts +0 -3
  306. package/dist/gen/google/type/quaternion_pb_service.d.ts +0 -3
  307. package/dist/gen/google/type/timeofday_pb_service.d.ts +0 -3
  308. package/dist/gen/proto/rpc/examples/echo/v1/echo_pb_service.d.ts +0 -85
  309. package/dist/gen/proto/rpc/examples/echoresource/v1/echoresource_pb_service.d.ts +0 -85
  310. package/dist/gen/proto/rpc/examples/fileupload/v1/fileupload_pb.d.ts +0 -66
  311. package/dist/gen/proto/rpc/examples/fileupload/v1/fileupload_pb_service.d.ts +0 -55
  312. package/dist/gen/proto/rpc/v1/auth_pb_service.d.ts +0 -92
  313. package/dist/gen/proto/rpc/webrtc/v1/grpc_pb_service.d.ts +0 -3
  314. package/dist/gen/proto/rpc/webrtc/v1/signaling_pb_service.d.ts +0 -104
  315. package/dist/gen/provisioning/v1/provisioning_pb_service.d.ts +0 -120
  316. package/dist/gen/robot/v1/robot_pb_service.d.ts +0 -435
  317. package/dist/gen/service/datamanager/v1/data_manager_pb_service.d.ts +0 -83
  318. package/dist/gen/service/generic/v1/generic_pb.d.ts +0 -7
  319. package/dist/gen/service/generic/v1/generic_pb_service.d.ts +0 -64
  320. package/dist/gen/service/mlmodel/v1/mlmodel_pb_service.d.ts +0 -82
  321. package/dist/gen/service/motion/v1/motion_pb_service.d.ts +0 -197
  322. package/dist/gen/service/navigation/v1/navigation_pb_service.d.ts +0 -235
  323. package/dist/gen/service/sensors/v1/sensors_pb_service.d.ts +0 -102
  324. package/dist/gen/service/shell/v1/shell_pb_service.d.ts +0 -97
  325. package/dist/gen/service/slam/v1/slam_pb_service.d.ts +0 -124
  326. package/dist/gen/service/vision/v1/vision_pb_service.d.ts +0 -197
  327. package/dist/gen/stream/v1/stream_pb_service.d.ts +0 -101
  328. package/dist/gen/tagger/v1/tagger_pb_service.d.ts +0 -3
  329. package/dist/responses.d.ts +0 -8
  330. package/dist/rpc/grpc-error.d.ts +0 -6
@@ -1 +1 @@
1
- export declare const apiVersion = "v0.1.342";
1
+ export declare const apiVersion = "v0.1.348";
@@ -1,13 +1,12 @@
1
- import * as pb from '../gen/app/v1/app_pb';
2
- import { type LogEntry } from '../gen/common/v1/common_pb';
3
- import { type RpcOptions } from '@improbable-eng/grpc-web/dist/typings/client.d';
4
- import type { StructType } from '../types';
5
- import { type PackageTypeMap } from '../gen/app/packages/v1/packages_pb';
6
- import type { FragmentVisibilityMap } from '../gen/app/v1/app_pb';
1
+ import type { Struct } from '@bufbuild/protobuf';
2
+ import { type Transport } from '@connectrpc/connect';
3
+ import { PackageType } from '../gen/app/packages/v1/packages_pb';
4
+ import { APIKeyWithAuthorizations, Authorization, AuthorizedPermissions, CreateKeyFromExistingKeyAuthorizationsResponse, CreateKeyResponse, CreateModuleResponse, Fragment, FragmentVisibility, GetRobotPartLogsResponse, GetRobotPartResponse, ListOrganizationMembersResponse, Location, LocationAuth, Model, Module, Organization, OrganizationIdentity, OrganizationInvite, OrgDetails, RegistryItem, RegistryItemStatus, Robot, RobotPart, RobotPartHistoryEntry, RotateKeyResponse, RoverRentalRobot, Visibility } from '../gen/app/v1/app_pb';
5
+ import type { LogEntry } from '../gen/common/v1/common_pb';
7
6
  /**
8
7
  * Creates an Authorization object from auth details.
9
8
  *
10
- * @param orgId The ID of the organization to create the role under
9
+ * @param organizationId The ID of the organization to create the role under
11
10
  * @param entityId The ID of the entity the role belongs to (e.g., a user ID)
12
11
  * @param role The role to add ("owner" or "operator")
13
12
  * @param resourceType The type of resource to create the role for ("robot",
@@ -16,17 +15,17 @@ import type { FragmentVisibilityMap } from '../gen/app/v1/app_pb';
16
15
  * api-key)
17
16
  * @param resourceId The ID of the resource the role is being created for
18
17
  */
19
- export declare const createAuth: (orgId: string, entityId: string, role: string, resourceType: string, identityType: string, resourceId: string) => pb.Authorization;
18
+ export declare const createAuth: (organizationId: string, entityId: string, role: string, resourceType: string, identityType: string, resourceId: string) => Authorization;
20
19
  /**
21
20
  * Creates an Authorization object specifically for a new API key.
22
21
  *
23
- * @param orgId The ID of the organization to create the role under
22
+ * @param organizationId The ID of the organization to create the role under
24
23
  * @param role The role to add ("owner" or "operator")
25
24
  * @param resourceType The type of resource to create the role for ("robot",
26
25
  * "location", or "organization")
27
26
  * @param resourceId The ID of the resource the role is being created for
28
27
  */
29
- export declare const createAuthForNewAPIKey: (orgId: string, role: string, resourceType: string, resourceId: string) => pb.Authorization;
28
+ export declare const createAuthForNewAPIKey: (organizationId: string, role: string, resourceType: string, resourceId: string) => Authorization;
30
29
  /**
31
30
  * Creates a new AuthorizedPermissions object
32
31
  *
@@ -35,10 +34,10 @@ export declare const createAuthForNewAPIKey: (orgId: string, role: string, resou
35
34
  * @param permissions A list of permissions to check
36
35
  * @returns The AuthorizedPermissions object
37
36
  */
38
- export declare const createPermission: (resourceType: string, resourceId: string, permissions: string[]) => pb.AuthorizedPermissions;
37
+ export declare const createPermission: (resourceType: string, resourceId: string, permissions: string[]) => AuthorizedPermissions;
39
38
  export declare class AppClient {
40
- private service;
41
- constructor(serviceHost: string, grpcOptions: RpcOptions);
39
+ private client;
40
+ constructor(transport: Transport);
42
41
  /**
43
42
  * Obain a user's ID from their email address.
44
43
  *
@@ -52,34 +51,34 @@ export declare class AppClient {
52
51
  * @param name The name of the new organization
53
52
  * @returns The new organization
54
53
  */
55
- createOrganization(name: string): Promise<pb.Organization.AsObject | undefined>;
54
+ createOrganization(name: string): Promise<Organization | undefined>;
56
55
  /**
57
56
  * List all organizations.
58
57
  *
59
58
  * @returns The organization list
60
59
  */
61
- listOrganizations(): Promise<pb.Organization.AsObject[]>;
60
+ listOrganizations(): Promise<Organization[]>;
62
61
  /**
63
62
  * List all organizations with access to a particular location.
64
63
  *
65
64
  * @param locationId The ID of the location to query
66
65
  * @returns The list of locations with access to the requested location
67
66
  */
68
- getOrganizationsWithAccessToLocation(locationId: string): Promise<pb.OrganizationIdentity.AsObject[]>;
67
+ getOrganizationsWithAccessToLocation(locationId: string): Promise<OrganizationIdentity[]>;
69
68
  /**
70
69
  * List all organizations associated with a user.
71
70
  *
72
71
  * @param userId The ID of the user to query
73
72
  * @returns The list of locations the requested user has access to
74
73
  */
75
- listOrganizationsByUser(userId: string): Promise<pb.OrgDetails.AsObject[]>;
74
+ listOrganizationsByUser(userId: string): Promise<OrgDetails[]>;
76
75
  /**
77
76
  * Get details about an organization.
78
77
  *
79
- * @param orgId The ID of the organization
78
+ * @param organizationId The ID of the organization
80
79
  * @returns Details about the organization, if it exists
81
80
  */
82
- getOrganization(orgId: string): Promise<pb.Organization.AsObject | undefined>;
81
+ getOrganization(organizationId: string): Promise<Organization | undefined>;
83
82
  /**
84
83
  * Find out if an organization namespace is available.
85
84
  *
@@ -90,88 +89,89 @@ export declare class AppClient {
90
89
  /**
91
90
  * Updates organization details.
92
91
  *
93
- * @param orgId The id of the organization to update
92
+ * @param organizationId The id of the organization to update
94
93
  * @param name Optional name to update the organization with
95
94
  * @param publicNamespace Optional namespace to update the organization with
96
95
  * @param region Optional region to update the organization with
97
96
  * @param cid Optional CRM ID to update the organization with
98
97
  * @returns The updated organization details
99
98
  */
100
- updateOrganization(orgId: string, name?: string, publicNamespace?: string, region?: string, cid?: string): Promise<pb.Organization.AsObject | undefined>;
99
+ updateOrganization(organizationId: string, name?: string, publicNamespace?: string, region?: string, cid?: string): Promise<Organization | undefined>;
101
100
  /**
102
101
  * Deletes an organization.
103
102
  *
104
- * @param orgId The id of the organization to delete
103
+ * @param organizationId The id of the organization to delete
105
104
  */
106
- deleteOrganization(orgId: string): Promise<void>;
105
+ deleteOrganization(organizationId: string): Promise<void>;
107
106
  /**
108
107
  * Lists organization memebers and outstanding invites.
109
108
  *
110
- * @param orgId The id of the organization to query
109
+ * @param organizationId The id of the organization to query
111
110
  * @returns An object containing organization members, pending invites, and
112
111
  * org ID
113
112
  */
114
- listOrganizationMembers(orgId: string): Promise<pb.ListOrganizationMembersResponse.AsObject>;
113
+ listOrganizationMembers(organizationId: string): Promise<ListOrganizationMembersResponse>;
115
114
  /**
116
115
  * Creates a new invitation to join an organization.
117
116
  *
118
- * @param orgId The id of the organization to create the invite for
117
+ * @param organizationId The id of the organization to create the invite for
119
118
  * @param email The email address of the user to generate an invite for
120
119
  * @param authorizations The authorizations to associate with the new invite
121
120
  * @param sendEmailInvite Bool of whether to send an email invite (true) or
122
121
  * automatically add a user. Defaults to true
123
122
  * @returns The organization invite
124
123
  */
125
- createOrganizationInvite(orgId: string, email: string, authorizations: pb.Authorization[], sendEmailInvite?: boolean): Promise<pb.OrganizationInvite.AsObject | undefined>;
124
+ createOrganizationInvite(organizationId: string, email: string, authorizations: Authorization[], sendEmailInvite?: boolean): Promise<OrganizationInvite | undefined>;
126
125
  /**
127
126
  * Updates authorizations for an existing org invite.
128
127
  *
129
- * @param orgId The id of the organization
128
+ * @param organizationId The id of the organization
130
129
  * @param email The email address associated with the invite
131
130
  * @param addAuthsList List of authorizations to add to the invite
132
131
  * @param removeAuthsList List of authorizations to remove from the invite
133
132
  * @returns The organization invite
134
133
  */
135
- updateOrganizationInviteAuthorizations(orgId: string, email: string, addAuthsList: pb.Authorization[], removeAuthsList: pb.Authorization[]): Promise<pb.OrganizationInvite.AsObject | undefined>;
134
+ updateOrganizationInviteAuthorizations(organizationId: string, email: string, addAuthsList: Authorization[], removeAuthsList: Authorization[]): Promise<OrganizationInvite | undefined>;
136
135
  /**
137
136
  * Removes a member from an organization.
138
137
  *
139
- * @param orgId The ID of the organization
138
+ * @param organizationId The ID of the organization
140
139
  * @param userId The ID of the user
141
140
  */
142
- deleteOrganizationMember(orgId: string, userId: string): Promise<void>;
141
+ deleteOrganizationMember(organizationId: string, userId: string): Promise<void>;
143
142
  /**
144
143
  * Deletes a pending organization invite.
145
144
  *
146
- * @param orgId The ID of the organization
145
+ * @param organizationId The ID of the organization
147
146
  * @param email The email associated with the invite to delete
148
147
  */
149
- deleteOrganizationInvite(orgId: string, email: string): Promise<void>;
148
+ deleteOrganizationInvite(organizationId: string, email: string): Promise<void>;
150
149
  /**
151
150
  * Resends a pending organization invite.
152
151
  *
153
- * @param orgId The ID of the organization
152
+ * @param organizationId The ID of the organization
154
153
  * @param email The email associated with the invite to resend
155
154
  * @returns The invite
156
155
  */
157
- resendOrganizationInvite(orgId: string, email: string): Promise<pb.OrganizationInvite.AsObject | undefined>;
156
+ resendOrganizationInvite(organizationId: string, email: string): Promise<OrganizationInvite | undefined>;
158
157
  /**
159
158
  * Creates a new location.
160
159
  *
161
- * @param orgId The ID of the organization to create the location under
160
+ * @param organizationId The ID of the organization to create the location
161
+ * under
162
162
  * @param name The name of the location to create
163
163
  * @param parentLocationId Optional name of a parent location to create the
164
164
  * new location under
165
165
  * @returns The location object
166
166
  */
167
- createLocation(orgId: string, name: string, parentLocationId?: string): Promise<pb.Location.AsObject | undefined>;
167
+ createLocation(organizationId: string, name: string, parentLocationId?: string): Promise<Location | undefined>;
168
168
  /**
169
169
  * Looks up a location.
170
170
  *
171
171
  * @param locId The ID of the location to query.
172
172
  * @returns The location object
173
173
  */
174
- getLocation(locId: string): Promise<pb.Location.AsObject | undefined>;
174
+ getLocation(locId: string): Promise<Location | undefined>;
175
175
  /**
176
176
  * Updates location details.
177
177
  *
@@ -182,7 +182,7 @@ export declare class AppClient {
182
182
  * @param region Optional string to update the location's region to
183
183
  * @returns The location object
184
184
  */
185
- updateLocation(locId: string, name?: string, parentLocId?: string, region?: string): Promise<pb.Location.AsObject | undefined>;
185
+ updateLocation(locId: string, name?: string, parentLocId?: string, region?: string): Promise<Location | undefined>;
186
186
  /**
187
187
  * Deletes a location
188
188
  *
@@ -192,38 +192,38 @@ export declare class AppClient {
192
192
  /**
193
193
  * Lists all locations under an organization.
194
194
  *
195
- * @param orgId The ID of the organization to query
195
+ * @param organizationId The ID of the organization to query
196
196
  * @returns A list of locations under the organization
197
197
  */
198
- listLocations(orgId: string): Promise<pb.Location.AsObject[]>;
198
+ listLocations(organizationId: string): Promise<Location[]>;
199
199
  /**
200
200
  * Shares a location with another organization
201
201
  *
202
- * @param orgId The ID of the organization to share with
202
+ * @param organizationId The ID of the organization to share with
203
203
  * @param locId The ID of the location to share
204
204
  */
205
- shareLocation(orgId: string, locId: string): Promise<void>;
205
+ shareLocation(organizationId: string, locId: string): Promise<void>;
206
206
  /**
207
207
  * Unshares a location with an organization
208
208
  *
209
- * @param orgId The ID of the organization to unshare with
209
+ * @param organizationId The ID of the organization to unshare with
210
210
  * @param locId The ID of the location to unshare
211
211
  */
212
- unshareLocation(orgId: string, locId: string): Promise<void>;
212
+ unshareLocation(organizationId: string, locId: string): Promise<void>;
213
213
  /**
214
214
  * Get a location's `LocationAuth` (location secret(s)).
215
215
  *
216
216
  * @param locId The ID of the location to retrieve `LocationAuth` from.
217
217
  * @returns The `LocationAuth` for the requested location.
218
218
  */
219
- locationAuth(locId: string): Promise<pb.LocationAuth.AsObject | undefined>;
219
+ locationAuth(locId: string): Promise<LocationAuth | undefined>;
220
220
  /**
221
221
  * Create a location secret (`LocationAuth`).
222
222
  *
223
223
  * @param locId The ID of the location to create a `LocationAuth` for
224
224
  * @returns The newly created `LocationAuth`
225
225
  */
226
- createLocationSecret(locId: string): Promise<pb.LocationAuth.AsObject | undefined>;
226
+ createLocationSecret(locId: string): Promise<LocationAuth | undefined>;
227
227
  /**
228
228
  * Deletes a location secret (`LocationAuth`).
229
229
  *
@@ -237,28 +237,28 @@ export declare class AppClient {
237
237
  * @param id The ID of the robot
238
238
  * @returns The `Robot` object
239
239
  */
240
- getRobot(id: string): Promise<pb.Robot.AsObject | undefined>;
240
+ getRobot(id: string): Promise<Robot | undefined>;
241
241
  /**
242
242
  * Returns a list of rover rental robots for an organization.
243
243
  *
244
244
  * @param orgId The ID of the organization to query
245
245
  * @returns The list of `RoverRentalRobot` objects
246
246
  */
247
- getRoverRentalRobots(orgId: string): Promise<pb.RoverRentalRobot.AsObject[]>;
247
+ getRoverRentalRobots(orgId: string): Promise<RoverRentalRobot[]>;
248
248
  /**
249
249
  * Returns a list of parts for a given robot
250
250
  *
251
251
  * @param robotId The ID of the robot to query
252
252
  * @returns The list of `RobotPart` objects associated with the robot
253
253
  */
254
- getRobotParts(robotId: string): Promise<pb.RobotPart.AsObject[]>;
254
+ getRobotParts(robotId: string): Promise<RobotPart[]>;
255
255
  /**
256
256
  * Queries a specific robot part by ID.
257
257
  *
258
258
  * @param id The ID of the requested robot part
259
259
  * @returns The robot part and a its json config
260
260
  */
261
- getRobotPart(id: string): Promise<pb.GetRobotPartResponse.AsObject>;
261
+ getRobotPart(id: string): Promise<GetRobotPartResponse>;
262
262
  /**
263
263
  * Get a page of log entries for a specific robot part. Logs are sorted by
264
264
  * descending time (newest first).
@@ -272,7 +272,7 @@ export declare class AppClient {
272
272
  * @returns The robot requested logs and the page token for the next page of
273
273
  * logs
274
274
  */
275
- getRobotPartLogs(id: string, filter?: string, levels?: string[], pageToken?: string): Promise<pb.GetRobotPartLogsResponse.AsObject>;
275
+ getRobotPartLogs(id: string, filter?: string, levels?: string[], pageToken?: string): Promise<GetRobotPartLogsResponse>;
276
276
  /**
277
277
  * Get a stream of log entries for a specific robot part. Logs are sorted by
278
278
  * descending time (newest first).
@@ -283,14 +283,14 @@ export declare class AppClient {
283
283
  * @param errorsOnly Optional bool to indicate whether or not only error-level
284
284
  * logs should be returned. Defaults to true
285
285
  */
286
- tailRobotPartLogs(id: string, queue: LogEntry.AsObject[], filter?: string, errorsOnly?: boolean): Promise<void>;
286
+ tailRobotPartLogs(id: string, queue: LogEntry[], filter?: string, errorsOnly?: boolean): Promise<void>;
287
287
  /**
288
288
  * Get a list containing the history of a robot part.
289
289
  *
290
290
  * @param id The ID of the requested robot part
291
291
  * @returns The list of the robot part's history
292
292
  */
293
- getRobotPartHistory(id: string): Promise<pb.RobotPartHistoryEntry.AsObject[]>;
293
+ getRobotPartHistory(id: string): Promise<RobotPartHistoryEntry[]>;
294
294
  /**
295
295
  * Updates a robot part based on its ID.
296
296
  *
@@ -299,7 +299,7 @@ export declare class AppClient {
299
299
  * @param robotConfig The new config for the robot part
300
300
  * @returns The updated robot part
301
301
  */
302
- updateRobotPart(id: string, name: string, robotConfig: StructType): Promise<pb.RobotPart.AsObject | undefined>;
302
+ updateRobotPart(id: string, name: string, robotConfig: Struct): Promise<RobotPart | undefined>;
303
303
  /**
304
304
  * Creates a new robot part.
305
305
  *
@@ -320,7 +320,7 @@ export declare class AppClient {
320
320
  * @param robotId The ID of the robot to get API keys for
321
321
  * @returns A list of the robot's API keys
322
322
  */
323
- getRobotAPIKeys(robotId: string): Promise<pb.APIKeyWithAuthorizations.AsObject[]>;
323
+ getRobotAPIKeys(robotId: string): Promise<APIKeyWithAuthorizations[]>;
324
324
  /**
325
325
  * Marks a robot part as the main part.
326
326
  *
@@ -339,7 +339,7 @@ export declare class AppClient {
339
339
  * @param partId The ID of the part to create a secret for
340
340
  * @returns The robot part object
341
341
  */
342
- createRobotPartSecret(partId: string): Promise<pb.RobotPart.AsObject | undefined>;
342
+ createRobotPartSecret(partId: string): Promise<RobotPart | undefined>;
343
343
  /**
344
344
  * Deletes a robot secret from a robot part.
345
345
  *
@@ -353,7 +353,7 @@ export declare class AppClient {
353
353
  * @param locId The ID of the location to list robots for
354
354
  * @returns The list of robot objects
355
355
  */
356
- listRobots(locId: string): Promise<pb.Robot.AsObject[]>;
356
+ listRobots(locId: string): Promise<Robot[]>;
357
357
  /**
358
358
  * Creates a new robot.
359
359
  *
@@ -370,7 +370,7 @@ export declare class AppClient {
370
370
  * @param name The name to update the robot to
371
371
  * @returns The newly-modified robot object
372
372
  */
373
- updateRobot(robotId: string, locId: string, name: string): Promise<pb.Robot.AsObject | undefined>;
373
+ updateRobot(robotId: string, locId: string, name: string): Promise<Robot | undefined>;
374
374
  /**
375
375
  * Deletes a robot.
376
376
  *
@@ -380,7 +380,7 @@ export declare class AppClient {
380
380
  /**
381
381
  * Lists all fragments within an organization.
382
382
  *
383
- * @param orgId The ID of the organization to list fragments for
383
+ * @param organizationId The ID of the organization to list fragments for
384
384
  * @param publicOnly Optional, deprecated boolean. Use fragmentVisibilities
385
385
  * instead. If true then only public fragments will be listed. Defaults to
386
386
  * true
@@ -391,23 +391,24 @@ export declare class AppClient {
391
391
  * visibilities and takes precendence over the publicOnly field
392
392
  * @returns The list of fragment objects
393
393
  */
394
- listFragments(orgId: string, publicOnly?: boolean, fragmentVisibilities?: FragmentVisibilityMap[keyof FragmentVisibilityMap][]): Promise<pb.Fragment.AsObject[]>;
394
+ listFragments(organizationId: string, publicOnly?: boolean, fragmentVisibility?: FragmentVisibility[]): Promise<Fragment[]>;
395
395
  /**
396
396
  * Looks up a fragment by ID.
397
397
  *
398
398
  * @param id The ID of the fragment to look up
399
399
  * @returns The requested fragment
400
400
  */
401
- getFragment(id: string): Promise<pb.Fragment.AsObject | undefined>;
401
+ getFragment(id: string): Promise<Fragment | undefined>;
402
402
  /**
403
403
  * Creates a new fragment.
404
404
  *
405
- * @param orgId The ID of the organization to create the fragment under
405
+ * @param organizationId The ID of the organization to create the fragment
406
+ * under
406
407
  * @param name The name of the new fragment
407
408
  * @param config The new fragment's config
408
409
  * @returns The newly created fragment
409
410
  */
410
- createFragment(orgId: string, name: string, config: StructType): Promise<pb.Fragment.AsObject | undefined>;
411
+ createFragment(organizationId: string, name: string, config: Struct): Promise<Fragment | undefined>;
411
412
  /**
412
413
  * Updates an existing fragment.
413
414
  *
@@ -424,7 +425,7 @@ export declare class AppClient {
424
425
  * neither is set, the fragment visibility will remain unchanged.
425
426
  * @returns The updated fragment
426
427
  */
427
- updateFragment(id: string, name: string, config: StructType, makePublic?: boolean, visibility?: keyof pb.FragmentVisibilityMap): Promise<pb.Fragment.AsObject | undefined>;
428
+ updateFragment(id: string, name: string, config: Struct, makePublic?: boolean, visibility?: FragmentVisibility): Promise<Fragment | undefined>;
428
429
  /**
429
430
  * Deletes a fragment.
430
431
  *
@@ -434,63 +435,64 @@ export declare class AppClient {
434
435
  /**
435
436
  * Add a role under an organization.
436
437
  *
437
- * @param orgId The ID of the organization to create the role under
438
+ * @param organizationId The ID of the organization to create the role under
438
439
  * @param entityId The ID of the entity the role belongs to (e.g., a user ID)
439
440
  * @param role The role to add ("owner" or "operator")
440
441
  * @param resourceType The type of resource to create the role for ("robot",
441
442
  * "location", or "organization")
442
443
  * @param resourceId The ID of the resource the role is being created for
443
444
  */
444
- addRole(orgId: string, entityId: string, role: string, resourceType: string, resourceId: string): Promise<void>;
445
+ addRole(organizationId: string, entityId: string, role: string, resourceType: string, resourceId: string): Promise<void>;
445
446
  /**
446
447
  * Removes a role from an organization.
447
448
  *
448
- * @param orgId The ID of the organization to remove the role from
449
+ * @param organizationId The ID of the organization to remove the role from
449
450
  * @param entityId The ID of the entity the role belongs to (e.g., a user ID)
450
451
  * @param role The role to remove ("owner" or "operator")
451
452
  * @param resourceType The type of resource to remove the role from ("robot",
452
453
  * "location", or "organization")
453
454
  * @param resourceId The ID of the resource the role is being removes from
454
455
  */
455
- removeRole(orgId: string, entityId: string, role: string, resourceType: string, resourceId: string): Promise<void>;
456
+ removeRole(organizationId: string, entityId: string, role: string, resourceType: string, resourceId: string): Promise<void>;
456
457
  /**
457
458
  * Changes an existing role.
458
459
  *
459
460
  * @param oldAuth The existing authorization
460
461
  * @param newAuth The new authorization
461
462
  */
462
- changeRole(oldAuth: pb.Authorization, newAuth: pb.Authorization): Promise<void>;
463
+ changeRole(oldAuthorization: Authorization, newAuthorization: Authorization): Promise<void>;
463
464
  /**
464
465
  * List all authorizations for an organization.
465
466
  *
466
- * @param orgId The ID of the organization to list authorizations for
467
+ * @param organizationId The ID of the organization to list authorizations for
467
468
  * @param resourceIds Optional list of IDs of resources to list authorizations
468
469
  * for. If not provided, all resources will be included
469
470
  * @returns The list of authorizations
470
471
  */
471
- listAuthorizations(orgId: string, resourceIds?: string[]): Promise<pb.Authorization.AsObject[]>;
472
+ listAuthorizations(organizationId: string, resourceIds?: string[]): Promise<Authorization[]>;
472
473
  /**
473
474
  * Checks whether requested permissions exist.
474
475
  *
475
476
  * @param permissions A list of permissions to check
476
477
  * @returns A filtered list of the authorized permissions
477
478
  */
478
- checkPermissions(permissions: pb.AuthorizedPermissions[]): Promise<pb.AuthorizedPermissions.AsObject[]>;
479
+ checkPermissions(permissions: AuthorizedPermissions[]): Promise<AuthorizedPermissions[]>;
479
480
  /**
480
481
  * Get an item from the registry.
481
482
  *
482
483
  * @param itemId The ID of the item to get
483
484
  * @returns The requested item
484
485
  */
485
- getRegistryItem(itemId: string): Promise<pb.RegistryItem.AsObject | undefined>;
486
+ getRegistryItem(itemId: string): Promise<RegistryItem | undefined>;
486
487
  /**
487
488
  * Create a new registry item.
488
489
  *
489
- * @param orgId The ID of the organization to create the registry item under
490
+ * @param organizationId The ID of the organization to create the registry
491
+ * item under
490
492
  * @param name The name of the registry item
491
493
  * @param type The type of the item in the registry.
492
494
  */
493
- createRegistryItem(orgId: string, name: string, type: keyof PackageTypeMap): Promise<void>;
495
+ createRegistryItem(organizationId: string, name: string, type: PackageType): Promise<void>;
494
496
  /**
495
497
  * Update an existing registry item.
496
498
  *
@@ -499,11 +501,12 @@ export declare class AppClient {
499
501
  * @param description A description of the item
500
502
  * @param visibility A visibility value to update to
501
503
  */
502
- updateRegistryItem(itemId: string, type: keyof PackageTypeMap, description: string, visibility: keyof pb.VisibilityMap): Promise<void>;
504
+ updateRegistryItem(itemId: string, type: PackageType, description: string, visibility: Visibility): Promise<void>;
503
505
  /**
504
506
  * List all registry items for an organization.
505
507
  *
506
- * @param orgId The ID of the organization to query registry items for
508
+ * @param organizationId The ID of the organization to query registry items
509
+ * for
507
510
  * @param types A list of types to query. If empty, will not filter on type
508
511
  * @param visibilities A list of visibilities to query for. If empty, will not
509
512
  * filter on visibility
@@ -516,7 +519,7 @@ export declare class AppClient {
516
519
  * return all results
517
520
  * @returns The list of registry items
518
521
  */
519
- listRegistryItems(orgId: string, types: (keyof PackageTypeMap)[], visibilities: (keyof pb.VisibilityMap)[], platforms: string[], statuses: (keyof pb.RegistryItemStatusMap)[], searchTerm?: string, pageToken?: string): Promise<pb.RegistryItem.AsObject[]>;
522
+ listRegistryItems(organizationId: string, types: PackageType[], visibilities: Visibility[], platforms: string[], statuses: RegistryItemStatus[], searchTerm?: string, pageToken?: string): Promise<RegistryItem[]>;
520
523
  /**
521
524
  * Deletes a registry item.
522
525
  *
@@ -526,11 +529,11 @@ export declare class AppClient {
526
529
  /**
527
530
  * Creates a new module.
528
531
  *
529
- * @param orgId The ID of the organization to create the module under
532
+ * @param organizationId The ID of the organization to create the module under
530
533
  * @param name The name of the module
531
534
  * @returns The module ID and a URL to its detail page
532
535
  */
533
- createModule(orgId: string, name: string): Promise<pb.CreateModuleResponse.AsObject>;
536
+ createModule(organizationId: string, name: string): Promise<CreateModuleResponse>;
534
537
  /**
535
538
  * Updates an existing module.
536
539
  *
@@ -542,21 +545,21 @@ export declare class AppClient {
542
545
  * @param entrypoint The executable to run to start the module program
543
546
  * @returns The module URL
544
547
  */
545
- updateModule(moduleId: string, visibility: keyof pb.VisibilityMap, url: string, description: string, models: pb.Model[], entrypoint: string): Promise<string>;
548
+ updateModule(moduleId: string, visibility: Visibility, url: string, description: string, models: Model[], entrypoint: string): Promise<string>;
546
549
  /**
547
550
  * Looks up a particular module.
548
551
  *
549
552
  * @param moduleId The ID of the module
550
553
  * @returns The requested module
551
554
  */
552
- getModule(moduleId: string): Promise<pb.Module.AsObject | undefined>;
555
+ getModule(moduleId: string): Promise<Module | undefined>;
553
556
  /**
554
557
  * Lists all modules for an organization.
555
558
  *
556
- * @param orgId The ID of the organization to query
559
+ * @param organizationId The ID of the organization to query
557
560
  * @returns The organization's modules
558
561
  */
559
- listModules(orgId: string): Promise<pb.Module.AsObject[]>;
562
+ listModules(organizationId: string): Promise<Module[]>;
560
563
  /**
561
564
  * Creates a new API key.
562
565
  *
@@ -565,32 +568,32 @@ export declare class AppClient {
565
568
  * present timestamp
566
569
  * @returns The new key and ID
567
570
  */
568
- createKey(authorizations: pb.Authorization[], name?: string): Promise<pb.CreateKeyResponse.AsObject>;
571
+ createKey(authorizations: Authorization[], name?: string): Promise<CreateKeyResponse>;
569
572
  /**
570
573
  * Deletes an existing API key.
571
574
  *
572
575
  * @param id The ID of the key to delete
573
576
  */
574
- deleteKey(id: string): Promise<void>;
577
+ deleteKey(id: string): Promise<import("../gen/app/v1/app_pb").DeleteKeyResponse>;
575
578
  /**
576
579
  * List all API keys for an organization.
577
580
  *
578
581
  * @param orgId The ID of the organization to query
579
582
  * @returns The list of API keys
580
583
  */
581
- listKeys(orgId: string): Promise<pb.APIKeyWithAuthorizations.AsObject[]>;
584
+ listKeys(orgId: string): Promise<APIKeyWithAuthorizations[]>;
582
585
  /**
583
586
  * Rotates an existing API key.
584
587
  *
585
588
  * @param id The ID of the key to rotate
586
589
  * @returns The updated key and ID
587
590
  */
588
- rotateKey(id: string): Promise<pb.RotateKeyResponse.AsObject>;
591
+ rotateKey(id: string): Promise<RotateKeyResponse>;
589
592
  /**
590
593
  * Creates a new key with an existing key's authorizations
591
594
  *
592
595
  * @param id The ID of the key to duplicate
593
596
  * @returns The new key and ID
594
597
  */
595
- createKeyFromExistingKeyAuthorizations(id: string): Promise<pb.CreateKeyFromExistingKeyAuthorizationsResponse.AsObject>;
598
+ createKeyFromExistingKeyAuthorizations(id: string): Promise<CreateKeyFromExistingKeyAuthorizationsResponse>;
596
599
  }
@@ -1,15 +1,14 @@
1
- import { type RpcOptions } from '@improbable-eng/grpc-web/dist/typings/client.d';
2
- import pb from '../gen/app/v1/billing_pb';
3
- type GetCurrentMonthUsageResponse = Partial<pb.GetCurrentMonthUsageResponse.AsObject> & {
1
+ import { type Transport } from '@connectrpc/connect';
2
+ import type { GetCurrentMonthUsageResponse as PBGetCurrentMonthUsageResponse } from '../gen/app/v1/billing_pb';
3
+ export type GetCurrentMonthUsageResponse = Partial<PBGetCurrentMonthUsageResponse> & {
4
4
  start?: Date;
5
5
  end?: Date;
6
6
  };
7
7
  export declare class BillingClient {
8
- private service;
9
- constructor(serviceHost: string, grpcOptions: RpcOptions);
8
+ private client;
9
+ constructor(transport: Transport);
10
10
  getCurrentMonthUsage(orgId: string): Promise<GetCurrentMonthUsageResponse>;
11
- getOrgBillingInformation(orgId: string): Promise<pb.GetOrgBillingInformationResponse.AsObject>;
12
- getInvoicesSummary(orgId: string): Promise<pb.GetInvoicesSummaryResponse.AsObject>;
11
+ getOrgBillingInformation(orgId: string): Promise<import("../gen/app/v1/billing_pb").GetOrgBillingInformationResponse>;
12
+ getInvoicesSummary(orgId: string): Promise<import("../gen/app/v1/billing_pb").GetInvoicesSummaryResponse>;
13
13
  getInvoicePdf(id: string, orgId: string): Promise<Uint8Array>;
14
14
  }
15
- export {};
@@ -0,0 +1 @@
1
+ export {};