@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,578 +1,967 @@
1
- // package: google.api.expr.v1alpha1
2
- // file: google/api/expr/v1alpha1/syntax.proto
3
-
4
- import * as jspb from "google-protobuf";
5
- import * as google_protobuf_duration_pb from "google-protobuf/google/protobuf/duration_pb";
6
- import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb";
7
- import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
8
-
9
- export class ParsedExpr extends jspb.Message {
10
- hasExpr(): boolean;
11
- clearExpr(): void;
12
- getExpr(): Expr | undefined;
13
- setExpr(value?: Expr): void;
14
-
15
- hasSourceInfo(): boolean;
16
- clearSourceInfo(): void;
17
- getSourceInfo(): SourceInfo | undefined;
18
- setSourceInfo(value?: SourceInfo): void;
19
-
20
- serializeBinary(): Uint8Array;
21
- toObject(includeInstance?: boolean): ParsedExpr.AsObject;
22
- static toObject(includeInstance: boolean, msg: ParsedExpr): ParsedExpr.AsObject;
23
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
24
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
25
- static serializeBinaryToWriter(message: ParsedExpr, writer: jspb.BinaryWriter): void;
26
- static deserializeBinary(bytes: Uint8Array): ParsedExpr;
27
- static deserializeBinaryFromReader(message: ParsedExpr, reader: jspb.BinaryReader): ParsedExpr;
1
+ // Copyright 2024 Google LLC
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ // @generated by protoc-gen-es v1.10.0
16
+ // @generated from file google/api/expr/v1alpha1/syntax.proto (package google.api.expr.v1alpha1, syntax proto3)
17
+ /* eslint-disable */
18
+ // @ts-nocheck
19
+
20
+ import type { BinaryReadOptions, Duration, FieldList, JsonReadOptions, JsonValue, NullValue, PartialMessage, PlainMessage, Timestamp } from "@bufbuild/protobuf";
21
+ import { Message, proto3 } from "@bufbuild/protobuf";
22
+
23
+ /**
24
+ * An expression together with source information as returned by the parser.
25
+ *
26
+ * @generated from message google.api.expr.v1alpha1.ParsedExpr
27
+ */
28
+ export declare class ParsedExpr extends Message<ParsedExpr> {
29
+ /**
30
+ * The parsed expression.
31
+ *
32
+ * @generated from field: google.api.expr.v1alpha1.Expr expr = 2;
33
+ */
34
+ expr?: Expr;
35
+
36
+ /**
37
+ * The source info derived from input that generated the parsed `expr`.
38
+ *
39
+ * @generated from field: google.api.expr.v1alpha1.SourceInfo source_info = 3;
40
+ */
41
+ sourceInfo?: SourceInfo;
42
+
43
+ constructor(data?: PartialMessage<ParsedExpr>);
44
+
45
+ static readonly runtime: typeof proto3;
46
+ static readonly typeName = "google.api.expr.v1alpha1.ParsedExpr";
47
+ static readonly fields: FieldList;
48
+
49
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ParsedExpr;
50
+
51
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ParsedExpr;
52
+
53
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ParsedExpr;
54
+
55
+ static equals(a: ParsedExpr | PlainMessage<ParsedExpr> | undefined, b: ParsedExpr | PlainMessage<ParsedExpr> | undefined): boolean;
28
56
  }
29
57
 
30
- export namespace ParsedExpr {
31
- export type AsObject = {
32
- expr?: Expr.AsObject,
33
- sourceInfo?: SourceInfo.AsObject,
34
- }
58
+ /**
59
+ * An abstract representation of a common expression.
60
+ *
61
+ * Expressions are abstractly represented as a collection of identifiers,
62
+ * select statements, function calls, literals, and comprehensions. All
63
+ * operators with the exception of the '.' operator are modelled as function
64
+ * calls. This makes it easy to represent new operators into the existing AST.
65
+ *
66
+ * All references within expressions must resolve to a
67
+ * [Decl][google.api.expr.v1alpha1.Decl] provided at type-check for an
68
+ * expression to be valid. A reference may either be a bare identifier `name` or
69
+ * a qualified identifier `google.api.name`. References may either refer to a
70
+ * value or a function declaration.
71
+ *
72
+ * For example, the expression `google.api.name.startsWith('expr')` references
73
+ * the declaration `google.api.name` within a
74
+ * [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression, and the
75
+ * function declaration `startsWith`.
76
+ *
77
+ * @generated from message google.api.expr.v1alpha1.Expr
78
+ */
79
+ export declare class Expr extends Message<Expr> {
80
+ /**
81
+ * Required. An id assigned to this node by the parser which is unique in a
82
+ * given expression tree. This is used to associate type information and other
83
+ * attributes to a node in the parse tree.
84
+ *
85
+ * @generated from field: int64 id = 2;
86
+ */
87
+ id: bigint;
88
+
89
+ /**
90
+ * Required. Variants of expressions.
91
+ *
92
+ * @generated from oneof google.api.expr.v1alpha1.Expr.expr_kind
93
+ */
94
+ exprKind: {
95
+ /**
96
+ * A literal expression.
97
+ *
98
+ * @generated from field: google.api.expr.v1alpha1.Constant const_expr = 3;
99
+ */
100
+ value: Constant;
101
+ case: "constExpr";
102
+ } | {
103
+ /**
104
+ * An identifier expression.
105
+ *
106
+ * @generated from field: google.api.expr.v1alpha1.Expr.Ident ident_expr = 4;
107
+ */
108
+ value: Expr_Ident;
109
+ case: "identExpr";
110
+ } | {
111
+ /**
112
+ * A field selection expression, e.g. `request.auth`.
113
+ *
114
+ * @generated from field: google.api.expr.v1alpha1.Expr.Select select_expr = 5;
115
+ */
116
+ value: Expr_Select;
117
+ case: "selectExpr";
118
+ } | {
119
+ /**
120
+ * A call expression, including calls to predefined functions and operators.
121
+ *
122
+ * @generated from field: google.api.expr.v1alpha1.Expr.Call call_expr = 6;
123
+ */
124
+ value: Expr_Call;
125
+ case: "callExpr";
126
+ } | {
127
+ /**
128
+ * A list creation expression.
129
+ *
130
+ * @generated from field: google.api.expr.v1alpha1.Expr.CreateList list_expr = 7;
131
+ */
132
+ value: Expr_CreateList;
133
+ case: "listExpr";
134
+ } | {
135
+ /**
136
+ * A map or message creation expression.
137
+ *
138
+ * @generated from field: google.api.expr.v1alpha1.Expr.CreateStruct struct_expr = 8;
139
+ */
140
+ value: Expr_CreateStruct;
141
+ case: "structExpr";
142
+ } | {
143
+ /**
144
+ * A comprehension expression.
145
+ *
146
+ * @generated from field: google.api.expr.v1alpha1.Expr.Comprehension comprehension_expr = 9;
147
+ */
148
+ value: Expr_Comprehension;
149
+ case: "comprehensionExpr";
150
+ } | { case: undefined; value?: undefined };
151
+
152
+ constructor(data?: PartialMessage<Expr>);
153
+
154
+ static readonly runtime: typeof proto3;
155
+ static readonly typeName = "google.api.expr.v1alpha1.Expr";
156
+ static readonly fields: FieldList;
157
+
158
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Expr;
159
+
160
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Expr;
161
+
162
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Expr;
163
+
164
+ static equals(a: Expr | PlainMessage<Expr> | undefined, b: Expr | PlainMessage<Expr> | undefined): boolean;
35
165
  }
36
166
 
37
- export class Expr extends jspb.Message {
38
- getId(): number;
39
- setId(value: number): void;
40
-
41
- hasConstExpr(): boolean;
42
- clearConstExpr(): void;
43
- getConstExpr(): Constant | undefined;
44
- setConstExpr(value?: Constant): void;
45
-
46
- hasIdentExpr(): boolean;
47
- clearIdentExpr(): void;
48
- getIdentExpr(): Expr.Ident | undefined;
49
- setIdentExpr(value?: Expr.Ident): void;
50
-
51
- hasSelectExpr(): boolean;
52
- clearSelectExpr(): void;
53
- getSelectExpr(): Expr.Select | undefined;
54
- setSelectExpr(value?: Expr.Select): void;
55
-
56
- hasCallExpr(): boolean;
57
- clearCallExpr(): void;
58
- getCallExpr(): Expr.Call | undefined;
59
- setCallExpr(value?: Expr.Call): void;
60
-
61
- hasListExpr(): boolean;
62
- clearListExpr(): void;
63
- getListExpr(): Expr.CreateList | undefined;
64
- setListExpr(value?: Expr.CreateList): void;
65
-
66
- hasStructExpr(): boolean;
67
- clearStructExpr(): void;
68
- getStructExpr(): Expr.CreateStruct | undefined;
69
- setStructExpr(value?: Expr.CreateStruct): void;
70
-
71
- hasComprehensionExpr(): boolean;
72
- clearComprehensionExpr(): void;
73
- getComprehensionExpr(): Expr.Comprehension | undefined;
74
- setComprehensionExpr(value?: Expr.Comprehension): void;
75
-
76
- getExprKindCase(): Expr.ExprKindCase;
77
- serializeBinary(): Uint8Array;
78
- toObject(includeInstance?: boolean): Expr.AsObject;
79
- static toObject(includeInstance: boolean, msg: Expr): Expr.AsObject;
80
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
81
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
82
- static serializeBinaryToWriter(message: Expr, writer: jspb.BinaryWriter): void;
83
- static deserializeBinary(bytes: Uint8Array): Expr;
84
- static deserializeBinaryFromReader(message: Expr, reader: jspb.BinaryReader): Expr;
167
+ /**
168
+ * An identifier expression. e.g. `request`.
169
+ *
170
+ * @generated from message google.api.expr.v1alpha1.Expr.Ident
171
+ */
172
+ export declare class Expr_Ident extends Message<Expr_Ident> {
173
+ /**
174
+ * Required. Holds a single, unqualified identifier, possibly preceded by a
175
+ * '.'.
176
+ *
177
+ * Qualified names are represented by the
178
+ * [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression.
179
+ *
180
+ * @generated from field: string name = 1;
181
+ */
182
+ name: string;
183
+
184
+ constructor(data?: PartialMessage<Expr_Ident>);
185
+
186
+ static readonly runtime: typeof proto3;
187
+ static readonly typeName = "google.api.expr.v1alpha1.Expr.Ident";
188
+ static readonly fields: FieldList;
189
+
190
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Expr_Ident;
191
+
192
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Expr_Ident;
193
+
194
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Expr_Ident;
195
+
196
+ static equals(a: Expr_Ident | PlainMessage<Expr_Ident> | undefined, b: Expr_Ident | PlainMessage<Expr_Ident> | undefined): boolean;
85
197
  }
86
198
 
87
- export namespace Expr {
88
- export type AsObject = {
89
- id: number,
90
- constExpr?: Constant.AsObject,
91
- identExpr?: Expr.Ident.AsObject,
92
- selectExpr?: Expr.Select.AsObject,
93
- callExpr?: Expr.Call.AsObject,
94
- listExpr?: Expr.CreateList.AsObject,
95
- structExpr?: Expr.CreateStruct.AsObject,
96
- comprehensionExpr?: Expr.Comprehension.AsObject,
97
- }
98
-
99
- export class Ident extends jspb.Message {
100
- getName(): string;
101
- setName(value: string): void;
102
-
103
- serializeBinary(): Uint8Array;
104
- toObject(includeInstance?: boolean): Ident.AsObject;
105
- static toObject(includeInstance: boolean, msg: Ident): Ident.AsObject;
106
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
107
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
108
- static serializeBinaryToWriter(message: Ident, writer: jspb.BinaryWriter): void;
109
- static deserializeBinary(bytes: Uint8Array): Ident;
110
- static deserializeBinaryFromReader(message: Ident, reader: jspb.BinaryReader): Ident;
111
- }
112
-
113
- export namespace Ident {
114
- export type AsObject = {
115
- name: string,
116
- }
117
- }
118
-
119
- export class Select extends jspb.Message {
120
- hasOperand(): boolean;
121
- clearOperand(): void;
122
- getOperand(): Expr | undefined;
123
- setOperand(value?: Expr): void;
124
-
125
- getField(): string;
126
- setField(value: string): void;
127
-
128
- getTestOnly(): boolean;
129
- setTestOnly(value: boolean): void;
130
-
131
- serializeBinary(): Uint8Array;
132
- toObject(includeInstance?: boolean): Select.AsObject;
133
- static toObject(includeInstance: boolean, msg: Select): Select.AsObject;
134
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
135
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
136
- static serializeBinaryToWriter(message: Select, writer: jspb.BinaryWriter): void;
137
- static deserializeBinary(bytes: Uint8Array): Select;
138
- static deserializeBinaryFromReader(message: Select, reader: jspb.BinaryReader): Select;
139
- }
140
-
141
- export namespace Select {
142
- export type AsObject = {
143
- operand?: Expr.AsObject,
144
- field: string,
145
- testOnly: boolean,
146
- }
147
- }
148
-
149
- export class Call extends jspb.Message {
150
- hasTarget(): boolean;
151
- clearTarget(): void;
152
- getTarget(): Expr | undefined;
153
- setTarget(value?: Expr): void;
154
-
155
- getFunction(): string;
156
- setFunction(value: string): void;
157
-
158
- clearArgsList(): void;
159
- getArgsList(): Array<Expr>;
160
- setArgsList(value: Array<Expr>): void;
161
- addArgs(value?: Expr, index?: number): Expr;
162
-
163
- serializeBinary(): Uint8Array;
164
- toObject(includeInstance?: boolean): Call.AsObject;
165
- static toObject(includeInstance: boolean, msg: Call): Call.AsObject;
166
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
167
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
168
- static serializeBinaryToWriter(message: Call, writer: jspb.BinaryWriter): void;
169
- static deserializeBinary(bytes: Uint8Array): Call;
170
- static deserializeBinaryFromReader(message: Call, reader: jspb.BinaryReader): Call;
171
- }
172
-
173
- export namespace Call {
174
- export type AsObject = {
175
- target?: Expr.AsObject,
176
- pb_function: string,
177
- argsList: Array<Expr.AsObject>,
178
- }
179
- }
180
-
181
- export class CreateList extends jspb.Message {
182
- clearElementsList(): void;
183
- getElementsList(): Array<Expr>;
184
- setElementsList(value: Array<Expr>): void;
185
- addElements(value?: Expr, index?: number): Expr;
186
-
187
- clearOptionalIndicesList(): void;
188
- getOptionalIndicesList(): Array<number>;
189
- setOptionalIndicesList(value: Array<number>): void;
190
- addOptionalIndices(value: number, index?: number): number;
191
-
192
- serializeBinary(): Uint8Array;
193
- toObject(includeInstance?: boolean): CreateList.AsObject;
194
- static toObject(includeInstance: boolean, msg: CreateList): CreateList.AsObject;
195
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
196
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
197
- static serializeBinaryToWriter(message: CreateList, writer: jspb.BinaryWriter): void;
198
- static deserializeBinary(bytes: Uint8Array): CreateList;
199
- static deserializeBinaryFromReader(message: CreateList, reader: jspb.BinaryReader): CreateList;
200
- }
201
-
202
- export namespace CreateList {
203
- export type AsObject = {
204
- elementsList: Array<Expr.AsObject>,
205
- optionalIndicesList: Array<number>,
206
- }
207
- }
208
-
209
- export class CreateStruct extends jspb.Message {
210
- getMessageName(): string;
211
- setMessageName(value: string): void;
212
-
213
- clearEntriesList(): void;
214
- getEntriesList(): Array<Expr.CreateStruct.Entry>;
215
- setEntriesList(value: Array<Expr.CreateStruct.Entry>): void;
216
- addEntries(value?: Expr.CreateStruct.Entry, index?: number): Expr.CreateStruct.Entry;
217
-
218
- serializeBinary(): Uint8Array;
219
- toObject(includeInstance?: boolean): CreateStruct.AsObject;
220
- static toObject(includeInstance: boolean, msg: CreateStruct): CreateStruct.AsObject;
221
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
222
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
223
- static serializeBinaryToWriter(message: CreateStruct, writer: jspb.BinaryWriter): void;
224
- static deserializeBinary(bytes: Uint8Array): CreateStruct;
225
- static deserializeBinaryFromReader(message: CreateStruct, reader: jspb.BinaryReader): CreateStruct;
226
- }
227
-
228
- export namespace CreateStruct {
229
- export type AsObject = {
230
- messageName: string,
231
- entriesList: Array<Expr.CreateStruct.Entry.AsObject>,
232
- }
233
-
234
- export class Entry extends jspb.Message {
235
- getId(): number;
236
- setId(value: number): void;
237
-
238
- hasFieldKey(): boolean;
239
- clearFieldKey(): void;
240
- getFieldKey(): string;
241
- setFieldKey(value: string): void;
242
-
243
- hasMapKey(): boolean;
244
- clearMapKey(): void;
245
- getMapKey(): Expr | undefined;
246
- setMapKey(value?: Expr): void;
247
-
248
- hasValue(): boolean;
249
- clearValue(): void;
250
- getValue(): Expr | undefined;
251
- setValue(value?: Expr): void;
252
-
253
- getOptionalEntry(): boolean;
254
- setOptionalEntry(value: boolean): void;
255
-
256
- getKeyKindCase(): Entry.KeyKindCase;
257
- serializeBinary(): Uint8Array;
258
- toObject(includeInstance?: boolean): Entry.AsObject;
259
- static toObject(includeInstance: boolean, msg: Entry): Entry.AsObject;
260
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
261
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
262
- static serializeBinaryToWriter(message: Entry, writer: jspb.BinaryWriter): void;
263
- static deserializeBinary(bytes: Uint8Array): Entry;
264
- static deserializeBinaryFromReader(message: Entry, reader: jspb.BinaryReader): Entry;
265
- }
266
-
267
- export namespace Entry {
268
- export type AsObject = {
269
- id: number,
270
- fieldKey: string,
271
- mapKey?: Expr.AsObject,
272
- value?: Expr.AsObject,
273
- optionalEntry: boolean,
274
- }
275
-
276
- export enum KeyKindCase {
277
- KEY_KIND_NOT_SET = 0,
278
- FIELD_KEY = 2,
279
- MAP_KEY = 3,
280
- }
281
- }
282
- }
283
-
284
- export class Comprehension extends jspb.Message {
285
- getIterVar(): string;
286
- setIterVar(value: string): void;
287
-
288
- getIterVar2(): string;
289
- setIterVar2(value: string): void;
290
-
291
- hasIterRange(): boolean;
292
- clearIterRange(): void;
293
- getIterRange(): Expr | undefined;
294
- setIterRange(value?: Expr): void;
295
-
296
- getAccuVar(): string;
297
- setAccuVar(value: string): void;
298
-
299
- hasAccuInit(): boolean;
300
- clearAccuInit(): void;
301
- getAccuInit(): Expr | undefined;
302
- setAccuInit(value?: Expr): void;
303
-
304
- hasLoopCondition(): boolean;
305
- clearLoopCondition(): void;
306
- getLoopCondition(): Expr | undefined;
307
- setLoopCondition(value?: Expr): void;
308
-
309
- hasLoopStep(): boolean;
310
- clearLoopStep(): void;
311
- getLoopStep(): Expr | undefined;
312
- setLoopStep(value?: Expr): void;
313
-
314
- hasResult(): boolean;
315
- clearResult(): void;
316
- getResult(): Expr | undefined;
317
- setResult(value?: Expr): void;
318
-
319
- serializeBinary(): Uint8Array;
320
- toObject(includeInstance?: boolean): Comprehension.AsObject;
321
- static toObject(includeInstance: boolean, msg: Comprehension): Comprehension.AsObject;
322
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
323
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
324
- static serializeBinaryToWriter(message: Comprehension, writer: jspb.BinaryWriter): void;
325
- static deserializeBinary(bytes: Uint8Array): Comprehension;
326
- static deserializeBinaryFromReader(message: Comprehension, reader: jspb.BinaryReader): Comprehension;
327
- }
328
-
329
- export namespace Comprehension {
330
- export type AsObject = {
331
- iterVar: string,
332
- iterVar2: string,
333
- iterRange?: Expr.AsObject,
334
- accuVar: string,
335
- accuInit?: Expr.AsObject,
336
- loopCondition?: Expr.AsObject,
337
- loopStep?: Expr.AsObject,
338
- result?: Expr.AsObject,
339
- }
340
- }
341
-
342
- export enum ExprKindCase {
343
- EXPR_KIND_NOT_SET = 0,
344
- CONST_EXPR = 3,
345
- IDENT_EXPR = 4,
346
- SELECT_EXPR = 5,
347
- CALL_EXPR = 6,
348
- LIST_EXPR = 7,
349
- STRUCT_EXPR = 8,
350
- COMPREHENSION_EXPR = 9,
351
- }
199
+ /**
200
+ * A field selection expression. e.g. `request.auth`.
201
+ *
202
+ * @generated from message google.api.expr.v1alpha1.Expr.Select
203
+ */
204
+ export declare class Expr_Select extends Message<Expr_Select> {
205
+ /**
206
+ * Required. The target of the selection expression.
207
+ *
208
+ * For example, in the select expression `request.auth`, the `request`
209
+ * portion of the expression is the `operand`.
210
+ *
211
+ * @generated from field: google.api.expr.v1alpha1.Expr operand = 1;
212
+ */
213
+ operand?: Expr;
214
+
215
+ /**
216
+ * Required. The name of the field to select.
217
+ *
218
+ * For example, in the select expression `request.auth`, the `auth` portion
219
+ * of the expression would be the `field`.
220
+ *
221
+ * @generated from field: string field = 2;
222
+ */
223
+ field: string;
224
+
225
+ /**
226
+ * Whether the select is to be interpreted as a field presence test.
227
+ *
228
+ * This results from the macro `has(request.auth)`.
229
+ *
230
+ * @generated from field: bool test_only = 3;
231
+ */
232
+ testOnly: boolean;
233
+
234
+ constructor(data?: PartialMessage<Expr_Select>);
235
+
236
+ static readonly runtime: typeof proto3;
237
+ static readonly typeName = "google.api.expr.v1alpha1.Expr.Select";
238
+ static readonly fields: FieldList;
239
+
240
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Expr_Select;
241
+
242
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Expr_Select;
243
+
244
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Expr_Select;
245
+
246
+ static equals(a: Expr_Select | PlainMessage<Expr_Select> | undefined, b: Expr_Select | PlainMessage<Expr_Select> | undefined): boolean;
352
247
  }
353
248
 
354
- export class Constant extends jspb.Message {
355
- hasNullValue(): boolean;
356
- clearNullValue(): void;
357
- getNullValue(): google_protobuf_struct_pb.NullValueMap[keyof google_protobuf_struct_pb.NullValueMap];
358
- setNullValue(value: google_protobuf_struct_pb.NullValueMap[keyof google_protobuf_struct_pb.NullValueMap]): void;
359
-
360
- hasBoolValue(): boolean;
361
- clearBoolValue(): void;
362
- getBoolValue(): boolean;
363
- setBoolValue(value: boolean): void;
364
-
365
- hasInt64Value(): boolean;
366
- clearInt64Value(): void;
367
- getInt64Value(): number;
368
- setInt64Value(value: number): void;
369
-
370
- hasUint64Value(): boolean;
371
- clearUint64Value(): void;
372
- getUint64Value(): number;
373
- setUint64Value(value: number): void;
374
-
375
- hasDoubleValue(): boolean;
376
- clearDoubleValue(): void;
377
- getDoubleValue(): number;
378
- setDoubleValue(value: number): void;
379
-
380
- hasStringValue(): boolean;
381
- clearStringValue(): void;
382
- getStringValue(): string;
383
- setStringValue(value: string): void;
384
-
385
- hasBytesValue(): boolean;
386
- clearBytesValue(): void;
387
- getBytesValue(): Uint8Array | string;
388
- getBytesValue_asU8(): Uint8Array;
389
- getBytesValue_asB64(): string;
390
- setBytesValue(value: Uint8Array | string): void;
391
-
392
- hasDurationValue(): boolean;
393
- clearDurationValue(): void;
394
- getDurationValue(): google_protobuf_duration_pb.Duration | undefined;
395
- setDurationValue(value?: google_protobuf_duration_pb.Duration): void;
396
-
397
- hasTimestampValue(): boolean;
398
- clearTimestampValue(): void;
399
- getTimestampValue(): google_protobuf_timestamp_pb.Timestamp | undefined;
400
- setTimestampValue(value?: google_protobuf_timestamp_pb.Timestamp): void;
401
-
402
- getConstantKindCase(): Constant.ConstantKindCase;
403
- serializeBinary(): Uint8Array;
404
- toObject(includeInstance?: boolean): Constant.AsObject;
405
- static toObject(includeInstance: boolean, msg: Constant): Constant.AsObject;
406
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
407
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
408
- static serializeBinaryToWriter(message: Constant, writer: jspb.BinaryWriter): void;
409
- static deserializeBinary(bytes: Uint8Array): Constant;
410
- static deserializeBinaryFromReader(message: Constant, reader: jspb.BinaryReader): Constant;
249
+ /**
250
+ * A call expression, including calls to predefined functions and operators.
251
+ *
252
+ * For example, `value == 10`, `size(map_value)`.
253
+ *
254
+ * @generated from message google.api.expr.v1alpha1.Expr.Call
255
+ */
256
+ export declare class Expr_Call extends Message<Expr_Call> {
257
+ /**
258
+ * The target of an method call-style expression. For example, `x` in
259
+ * `x.f()`.
260
+ *
261
+ * @generated from field: google.api.expr.v1alpha1.Expr target = 1;
262
+ */
263
+ target?: Expr;
264
+
265
+ /**
266
+ * Required. The name of the function or method being called.
267
+ *
268
+ * @generated from field: string function = 2;
269
+ */
270
+ function: string;
271
+
272
+ /**
273
+ * The arguments.
274
+ *
275
+ * @generated from field: repeated google.api.expr.v1alpha1.Expr args = 3;
276
+ */
277
+ args: Expr[];
278
+
279
+ constructor(data?: PartialMessage<Expr_Call>);
280
+
281
+ static readonly runtime: typeof proto3;
282
+ static readonly typeName = "google.api.expr.v1alpha1.Expr.Call";
283
+ static readonly fields: FieldList;
284
+
285
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Expr_Call;
286
+
287
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Expr_Call;
288
+
289
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Expr_Call;
290
+
291
+ static equals(a: Expr_Call | PlainMessage<Expr_Call> | undefined, b: Expr_Call | PlainMessage<Expr_Call> | undefined): boolean;
411
292
  }
412
293
 
413
- export namespace Constant {
414
- export type AsObject = {
415
- nullValue: google_protobuf_struct_pb.NullValueMap[keyof google_protobuf_struct_pb.NullValueMap],
416
- boolValue: boolean,
417
- int64Value: number,
418
- uint64Value: number,
419
- doubleValue: number,
420
- stringValue: string,
421
- bytesValue: Uint8Array | string,
422
- durationValue?: google_protobuf_duration_pb.Duration.AsObject,
423
- timestampValue?: google_protobuf_timestamp_pb.Timestamp.AsObject,
424
- }
425
-
426
- export enum ConstantKindCase {
427
- CONSTANT_KIND_NOT_SET = 0,
428
- NULL_VALUE = 1,
429
- BOOL_VALUE = 2,
430
- INT64_VALUE = 3,
431
- UINT64_VALUE = 4,
432
- DOUBLE_VALUE = 5,
433
- STRING_VALUE = 6,
434
- BYTES_VALUE = 7,
435
- DURATION_VALUE = 8,
436
- TIMESTAMP_VALUE = 9,
437
- }
294
+ /**
295
+ * A list creation expression.
296
+ *
297
+ * Lists may either be homogenous, e.g. `[1, 2, 3]`, or heterogeneous, e.g.
298
+ * `dyn([1, 'hello', 2.0])`
299
+ *
300
+ * @generated from message google.api.expr.v1alpha1.Expr.CreateList
301
+ */
302
+ export declare class Expr_CreateList extends Message<Expr_CreateList> {
303
+ /**
304
+ * The elements part of the list.
305
+ *
306
+ * @generated from field: repeated google.api.expr.v1alpha1.Expr elements = 1;
307
+ */
308
+ elements: Expr[];
309
+
310
+ /**
311
+ * The indices within the elements list which are marked as optional
312
+ * elements.
313
+ *
314
+ * When an optional-typed value is present, the value it contains
315
+ * is included in the list. If the optional-typed value is absent, the list
316
+ * element is omitted from the CreateList result.
317
+ *
318
+ * @generated from field: repeated int32 optional_indices = 2;
319
+ */
320
+ optionalIndices: number[];
321
+
322
+ constructor(data?: PartialMessage<Expr_CreateList>);
323
+
324
+ static readonly runtime: typeof proto3;
325
+ static readonly typeName = "google.api.expr.v1alpha1.Expr.CreateList";
326
+ static readonly fields: FieldList;
327
+
328
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Expr_CreateList;
329
+
330
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Expr_CreateList;
331
+
332
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Expr_CreateList;
333
+
334
+ static equals(a: Expr_CreateList | PlainMessage<Expr_CreateList> | undefined, b: Expr_CreateList | PlainMessage<Expr_CreateList> | undefined): boolean;
438
335
  }
439
336
 
440
- export class SourceInfo extends jspb.Message {
441
- getSyntaxVersion(): string;
442
- setSyntaxVersion(value: string): void;
443
-
444
- getLocation(): string;
445
- setLocation(value: string): void;
446
-
447
- clearLineOffsetsList(): void;
448
- getLineOffsetsList(): Array<number>;
449
- setLineOffsetsList(value: Array<number>): void;
450
- addLineOffsets(value: number, index?: number): number;
451
-
452
- getPositionsMap(): jspb.Map<number, number>;
453
- clearPositionsMap(): void;
454
- getMacroCallsMap(): jspb.Map<number, Expr>;
455
- clearMacroCallsMap(): void;
456
- clearExtensionsList(): void;
457
- getExtensionsList(): Array<SourceInfo.Extension>;
458
- setExtensionsList(value: Array<SourceInfo.Extension>): void;
459
- addExtensions(value?: SourceInfo.Extension, index?: number): SourceInfo.Extension;
460
-
461
- serializeBinary(): Uint8Array;
462
- toObject(includeInstance?: boolean): SourceInfo.AsObject;
463
- static toObject(includeInstance: boolean, msg: SourceInfo): SourceInfo.AsObject;
464
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
465
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
466
- static serializeBinaryToWriter(message: SourceInfo, writer: jspb.BinaryWriter): void;
467
- static deserializeBinary(bytes: Uint8Array): SourceInfo;
468
- static deserializeBinaryFromReader(message: SourceInfo, reader: jspb.BinaryReader): SourceInfo;
337
+ /**
338
+ * A map or message creation expression.
339
+ *
340
+ * Maps are constructed as `{'key_name': 'value'}`. Message construction is
341
+ * similar, but prefixed with a type name and composed of field ids:
342
+ * `types.MyType{field_id: 'value'}`.
343
+ *
344
+ * @generated from message google.api.expr.v1alpha1.Expr.CreateStruct
345
+ */
346
+ export declare class Expr_CreateStruct extends Message<Expr_CreateStruct> {
347
+ /**
348
+ * The type name of the message to be created, empty when creating map
349
+ * literals.
350
+ *
351
+ * @generated from field: string message_name = 1;
352
+ */
353
+ messageName: string;
354
+
355
+ /**
356
+ * The entries in the creation expression.
357
+ *
358
+ * @generated from field: repeated google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2;
359
+ */
360
+ entries: Expr_CreateStruct_Entry[];
361
+
362
+ constructor(data?: PartialMessage<Expr_CreateStruct>);
363
+
364
+ static readonly runtime: typeof proto3;
365
+ static readonly typeName = "google.api.expr.v1alpha1.Expr.CreateStruct";
366
+ static readonly fields: FieldList;
367
+
368
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Expr_CreateStruct;
369
+
370
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Expr_CreateStruct;
371
+
372
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Expr_CreateStruct;
373
+
374
+ static equals(a: Expr_CreateStruct | PlainMessage<Expr_CreateStruct> | undefined, b: Expr_CreateStruct | PlainMessage<Expr_CreateStruct> | undefined): boolean;
469
375
  }
470
376
 
471
- export namespace SourceInfo {
472
- export type AsObject = {
473
- syntaxVersion: string,
474
- location: string,
475
- lineOffsetsList: Array<number>,
476
- positionsMap: Array<[number, number]>,
477
- macroCallsMap: Array<[number, Expr.AsObject]>,
478
- extensionsList: Array<SourceInfo.Extension.AsObject>,
479
- }
480
-
481
- export class Extension extends jspb.Message {
482
- getId(): string;
483
- setId(value: string): void;
484
-
485
- clearAffectedComponentsList(): void;
486
- getAffectedComponentsList(): Array<SourceInfo.Extension.ComponentMap[keyof SourceInfo.Extension.ComponentMap]>;
487
- setAffectedComponentsList(value: Array<SourceInfo.Extension.ComponentMap[keyof SourceInfo.Extension.ComponentMap]>): void;
488
- addAffectedComponents(value: SourceInfo.Extension.ComponentMap[keyof SourceInfo.Extension.ComponentMap], index?: number): SourceInfo.Extension.ComponentMap[keyof SourceInfo.Extension.ComponentMap];
489
-
490
- hasVersion(): boolean;
491
- clearVersion(): void;
492
- getVersion(): SourceInfo.Extension.Version | undefined;
493
- setVersion(value?: SourceInfo.Extension.Version): void;
494
-
495
- serializeBinary(): Uint8Array;
496
- toObject(includeInstance?: boolean): Extension.AsObject;
497
- static toObject(includeInstance: boolean, msg: Extension): Extension.AsObject;
498
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
499
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
500
- static serializeBinaryToWriter(message: Extension, writer: jspb.BinaryWriter): void;
501
- static deserializeBinary(bytes: Uint8Array): Extension;
502
- static deserializeBinaryFromReader(message: Extension, reader: jspb.BinaryReader): Extension;
503
- }
504
-
505
- export namespace Extension {
506
- export type AsObject = {
507
- id: string,
508
- affectedComponentsList: Array<SourceInfo.Extension.ComponentMap[keyof SourceInfo.Extension.ComponentMap]>,
509
- version?: SourceInfo.Extension.Version.AsObject,
510
- }
511
-
512
- export class Version extends jspb.Message {
513
- getMajor(): number;
514
- setMajor(value: number): void;
515
-
516
- getMinor(): number;
517
- setMinor(value: number): void;
518
-
519
- serializeBinary(): Uint8Array;
520
- toObject(includeInstance?: boolean): Version.AsObject;
521
- static toObject(includeInstance: boolean, msg: Version): Version.AsObject;
522
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
523
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
524
- static serializeBinaryToWriter(message: Version, writer: jspb.BinaryWriter): void;
525
- static deserializeBinary(bytes: Uint8Array): Version;
526
- static deserializeBinaryFromReader(message: Version, reader: jspb.BinaryReader): Version;
527
- }
528
-
529
- export namespace Version {
530
- export type AsObject = {
531
- major: number,
532
- minor: number,
533
- }
534
- }
535
-
536
- export interface ComponentMap {
537
- COMPONENT_UNSPECIFIED: 0;
538
- COMPONENT_PARSER: 1;
539
- COMPONENT_TYPE_CHECKER: 2;
540
- COMPONENT_RUNTIME: 3;
541
- }
542
-
543
- export const Component: ComponentMap;
544
- }
377
+ /**
378
+ * Represents an entry.
379
+ *
380
+ * @generated from message google.api.expr.v1alpha1.Expr.CreateStruct.Entry
381
+ */
382
+ export declare class Expr_CreateStruct_Entry extends Message<Expr_CreateStruct_Entry> {
383
+ /**
384
+ * Required. An id assigned to this node by the parser which is unique
385
+ * in a given expression tree. This is used to associate type
386
+ * information and other attributes to the node.
387
+ *
388
+ * @generated from field: int64 id = 1;
389
+ */
390
+ id: bigint;
391
+
392
+ /**
393
+ * The `Entry` key kinds.
394
+ *
395
+ * @generated from oneof google.api.expr.v1alpha1.Expr.CreateStruct.Entry.key_kind
396
+ */
397
+ keyKind: {
398
+ /**
399
+ * The field key for a message creator statement.
400
+ *
401
+ * @generated from field: string field_key = 2;
402
+ */
403
+ value: string;
404
+ case: "fieldKey";
405
+ } | {
406
+ /**
407
+ * The key expression for a map creation statement.
408
+ *
409
+ * @generated from field: google.api.expr.v1alpha1.Expr map_key = 3;
410
+ */
411
+ value: Expr;
412
+ case: "mapKey";
413
+ } | { case: undefined; value?: undefined };
414
+
415
+ /**
416
+ * Required. The value assigned to the key.
417
+ *
418
+ * If the optional_entry field is true, the expression must resolve to an
419
+ * optional-typed value. If the optional value is present, the key will be
420
+ * set; however, if the optional value is absent, the key will be unset.
421
+ *
422
+ * @generated from field: google.api.expr.v1alpha1.Expr value = 4;
423
+ */
424
+ value?: Expr;
425
+
426
+ /**
427
+ * Whether the key-value pair is optional.
428
+ *
429
+ * @generated from field: bool optional_entry = 5;
430
+ */
431
+ optionalEntry: boolean;
432
+
433
+ constructor(data?: PartialMessage<Expr_CreateStruct_Entry>);
434
+
435
+ static readonly runtime: typeof proto3;
436
+ static readonly typeName = "google.api.expr.v1alpha1.Expr.CreateStruct.Entry";
437
+ static readonly fields: FieldList;
438
+
439
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Expr_CreateStruct_Entry;
440
+
441
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Expr_CreateStruct_Entry;
442
+
443
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Expr_CreateStruct_Entry;
444
+
445
+ static equals(a: Expr_CreateStruct_Entry | PlainMessage<Expr_CreateStruct_Entry> | undefined, b: Expr_CreateStruct_Entry | PlainMessage<Expr_CreateStruct_Entry> | undefined): boolean;
545
446
  }
546
447
 
547
- export class SourcePosition extends jspb.Message {
548
- getLocation(): string;
549
- setLocation(value: string): void;
448
+ /**
449
+ * A comprehension expression applied to a list or map.
450
+ *
451
+ * Comprehensions are not part of the core syntax, but enabled with macros.
452
+ * A macro matches a specific call signature within a parsed AST and replaces
453
+ * the call with an alternate AST block. Macro expansion happens at parse
454
+ * time.
455
+ *
456
+ * The following macros are supported within CEL:
457
+ *
458
+ * Aggregate type macros may be applied to all elements in a list or all keys
459
+ * in a map:
460
+ *
461
+ * * `all`, `exists`, `exists_one` - test a predicate expression against
462
+ * the inputs and return `true` if the predicate is satisfied for all,
463
+ * any, or only one value `list.all(x, x < 10)`.
464
+ * * `filter` - test a predicate expression against the inputs and return
465
+ * the subset of elements which satisfy the predicate:
466
+ * `payments.filter(p, p > 1000)`.
467
+ * * `map` - apply an expression to all elements in the input and return the
468
+ * output aggregate type: `[1, 2, 3].map(i, i * i)`.
469
+ *
470
+ * The `has(m.x)` macro tests whether the property `x` is present in struct
471
+ * `m`. The semantics of this macro depend on the type of `m`. For proto2
472
+ * messages `has(m.x)` is defined as 'defined, but not set`. For proto3, the
473
+ * macro tests whether the property is set to its default. For map and struct
474
+ * types, the macro tests whether the property `x` is defined on `m`.
475
+ *
476
+ * Comprehensions for the standard environment macros evaluation can be best
477
+ * visualized as the following pseudocode:
478
+ *
479
+ * ```
480
+ * let `accu_var` = `accu_init`
481
+ * for (let `iter_var` in `iter_range`) {
482
+ * if (!`loop_condition`) {
483
+ * break
484
+ * }
485
+ * `accu_var` = `loop_step`
486
+ * }
487
+ * return `result`
488
+ * ```
489
+ *
490
+ * Comprehensions for the optional V2 macros which support map-to-map
491
+ * translation differ slightly from the standard environment macros in that
492
+ * they expose both the key or index in addition to the value for each list
493
+ * or map entry:
494
+ *
495
+ * ```
496
+ * let `accu_var` = `accu_init`
497
+ * for (let `iter_var`, `iter_var2` in `iter_range`) {
498
+ * if (!`loop_condition`) {
499
+ * break
500
+ * }
501
+ * `accu_var` = `loop_step`
502
+ * }
503
+ * return `result`
504
+ * ```
505
+ *
506
+ * @generated from message google.api.expr.v1alpha1.Expr.Comprehension
507
+ */
508
+ export declare class Expr_Comprehension extends Message<Expr_Comprehension> {
509
+ /**
510
+ * The name of the first iteration variable.
511
+ * When the iter_range is a list, this variable is the list element.
512
+ * When the iter_range is a map, this variable is the map entry key.
513
+ *
514
+ * @generated from field: string iter_var = 1;
515
+ */
516
+ iterVar: string;
517
+
518
+ /**
519
+ * The name of the second iteration variable, empty if not set.
520
+ * When the iter_range is a list, this variable is the integer index.
521
+ * When the iter_range is a map, this variable is the map entry value.
522
+ * This field is only set for comprehension v2 macros.
523
+ *
524
+ * @generated from field: string iter_var2 = 8;
525
+ */
526
+ iterVar2: string;
527
+
528
+ /**
529
+ * The range over which the comprehension iterates.
530
+ *
531
+ * @generated from field: google.api.expr.v1alpha1.Expr iter_range = 2;
532
+ */
533
+ iterRange?: Expr;
534
+
535
+ /**
536
+ * The name of the variable used for accumulation of the result.
537
+ *
538
+ * @generated from field: string accu_var = 3;
539
+ */
540
+ accuVar: string;
541
+
542
+ /**
543
+ * The initial value of the accumulator.
544
+ *
545
+ * @generated from field: google.api.expr.v1alpha1.Expr accu_init = 4;
546
+ */
547
+ accuInit?: Expr;
548
+
549
+ /**
550
+ * An expression which can contain iter_var, iter_var2, and accu_var.
551
+ *
552
+ * Returns false when the result has been computed and may be used as
553
+ * a hint to short-circuit the remainder of the comprehension.
554
+ *
555
+ * @generated from field: google.api.expr.v1alpha1.Expr loop_condition = 5;
556
+ */
557
+ loopCondition?: Expr;
558
+
559
+ /**
560
+ * An expression which can contain iter_var, iter_var2, and accu_var.
561
+ *
562
+ * Computes the next value of accu_var.
563
+ *
564
+ * @generated from field: google.api.expr.v1alpha1.Expr loop_step = 6;
565
+ */
566
+ loopStep?: Expr;
567
+
568
+ /**
569
+ * An expression which can contain accu_var.
570
+ *
571
+ * Computes the result.
572
+ *
573
+ * @generated from field: google.api.expr.v1alpha1.Expr result = 7;
574
+ */
575
+ result?: Expr;
576
+
577
+ constructor(data?: PartialMessage<Expr_Comprehension>);
578
+
579
+ static readonly runtime: typeof proto3;
580
+ static readonly typeName = "google.api.expr.v1alpha1.Expr.Comprehension";
581
+ static readonly fields: FieldList;
582
+
583
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Expr_Comprehension;
584
+
585
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Expr_Comprehension;
586
+
587
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Expr_Comprehension;
588
+
589
+ static equals(a: Expr_Comprehension | PlainMessage<Expr_Comprehension> | undefined, b: Expr_Comprehension | PlainMessage<Expr_Comprehension> | undefined): boolean;
590
+ }
591
+
592
+ /**
593
+ * Represents a primitive literal.
594
+ *
595
+ * Named 'Constant' here for backwards compatibility.
596
+ *
597
+ * This is similar as the primitives supported in the well-known type
598
+ * `google.protobuf.Value`, but richer so it can represent CEL's full range of
599
+ * primitives.
600
+ *
601
+ * Lists and structs are not included as constants as these aggregate types may
602
+ * contain [Expr][google.api.expr.v1alpha1.Expr] elements which require
603
+ * evaluation and are thus not constant.
604
+ *
605
+ * Examples of literals include: `"hello"`, `b'bytes'`, `1u`, `4.2`, `-2`,
606
+ * `true`, `null`.
607
+ *
608
+ * @generated from message google.api.expr.v1alpha1.Constant
609
+ */
610
+ export declare class Constant extends Message<Constant> {
611
+ /**
612
+ * Required. The valid constant kinds.
613
+ *
614
+ * @generated from oneof google.api.expr.v1alpha1.Constant.constant_kind
615
+ */
616
+ constantKind: {
617
+ /**
618
+ * null value.
619
+ *
620
+ * @generated from field: google.protobuf.NullValue null_value = 1;
621
+ */
622
+ value: NullValue;
623
+ case: "nullValue";
624
+ } | {
625
+ /**
626
+ * boolean value.
627
+ *
628
+ * @generated from field: bool bool_value = 2;
629
+ */
630
+ value: boolean;
631
+ case: "boolValue";
632
+ } | {
633
+ /**
634
+ * int64 value.
635
+ *
636
+ * @generated from field: int64 int64_value = 3;
637
+ */
638
+ value: bigint;
639
+ case: "int64Value";
640
+ } | {
641
+ /**
642
+ * uint64 value.
643
+ *
644
+ * @generated from field: uint64 uint64_value = 4;
645
+ */
646
+ value: bigint;
647
+ case: "uint64Value";
648
+ } | {
649
+ /**
650
+ * double value.
651
+ *
652
+ * @generated from field: double double_value = 5;
653
+ */
654
+ value: number;
655
+ case: "doubleValue";
656
+ } | {
657
+ /**
658
+ * string value.
659
+ *
660
+ * @generated from field: string string_value = 6;
661
+ */
662
+ value: string;
663
+ case: "stringValue";
664
+ } | {
665
+ /**
666
+ * bytes value.
667
+ *
668
+ * @generated from field: bytes bytes_value = 7;
669
+ */
670
+ value: Uint8Array;
671
+ case: "bytesValue";
672
+ } | {
673
+ /**
674
+ * protobuf.Duration value.
675
+ *
676
+ * Deprecated: duration is no longer considered a builtin cel type.
677
+ *
678
+ * @generated from field: google.protobuf.Duration duration_value = 8 [deprecated = true];
679
+ * @deprecated
680
+ */
681
+ value: Duration;
682
+ case: "durationValue";
683
+ } | {
684
+ /**
685
+ * protobuf.Timestamp value.
686
+ *
687
+ * Deprecated: timestamp is no longer considered a builtin cel type.
688
+ *
689
+ * @generated from field: google.protobuf.Timestamp timestamp_value = 9 [deprecated = true];
690
+ * @deprecated
691
+ */
692
+ value: Timestamp;
693
+ case: "timestampValue";
694
+ } | { case: undefined; value?: undefined };
695
+
696
+ constructor(data?: PartialMessage<Constant>);
697
+
698
+ static readonly runtime: typeof proto3;
699
+ static readonly typeName = "google.api.expr.v1alpha1.Constant";
700
+ static readonly fields: FieldList;
701
+
702
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Constant;
703
+
704
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Constant;
705
+
706
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Constant;
707
+
708
+ static equals(a: Constant | PlainMessage<Constant> | undefined, b: Constant | PlainMessage<Constant> | undefined): boolean;
709
+ }
550
710
 
551
- getOffset(): number;
552
- setOffset(value: number): void;
711
+ /**
712
+ * Source information collected at parse time.
713
+ *
714
+ * @generated from message google.api.expr.v1alpha1.SourceInfo
715
+ */
716
+ export declare class SourceInfo extends Message<SourceInfo> {
717
+ /**
718
+ * The syntax version of the source, e.g. `cel1`.
719
+ *
720
+ * @generated from field: string syntax_version = 1;
721
+ */
722
+ syntaxVersion: string;
723
+
724
+ /**
725
+ * The location name. All position information attached to an expression is
726
+ * relative to this location.
727
+ *
728
+ * The location could be a file, UI element, or similar. For example,
729
+ * `acme/app/AnvilPolicy.cel`.
730
+ *
731
+ * @generated from field: string location = 2;
732
+ */
733
+ location: string;
734
+
735
+ /**
736
+ * Monotonically increasing list of code point offsets where newlines
737
+ * `\n` appear.
738
+ *
739
+ * The line number of a given position is the index `i` where for a given
740
+ * `id` the `line_offsets[i] < id_positions[id] < line_offsets[i+1]`. The
741
+ * column may be derivd from `id_positions[id] - line_offsets[i]`.
742
+ *
743
+ * @generated from field: repeated int32 line_offsets = 3;
744
+ */
745
+ lineOffsets: number[];
746
+
747
+ /**
748
+ * A map from the parse node id (e.g. `Expr.id`) to the code point offset
749
+ * within the source.
750
+ *
751
+ * @generated from field: map<int64, int32> positions = 4;
752
+ */
753
+ positions: { [key: string]: number };
754
+
755
+ /**
756
+ * A map from the parse node id where a macro replacement was made to the
757
+ * call `Expr` that resulted in a macro expansion.
758
+ *
759
+ * For example, `has(value.field)` is a function call that is replaced by a
760
+ * `test_only` field selection in the AST. Likewise, the call
761
+ * `list.exists(e, e > 10)` translates to a comprehension expression. The key
762
+ * in the map corresponds to the expression id of the expanded macro, and the
763
+ * value is the call `Expr` that was replaced.
764
+ *
765
+ * @generated from field: map<int64, google.api.expr.v1alpha1.Expr> macro_calls = 5;
766
+ */
767
+ macroCalls: { [key: string]: Expr };
768
+
769
+ /**
770
+ * A list of tags for extensions that were used while parsing or type checking
771
+ * the source expression. For example, optimizations that require special
772
+ * runtime support may be specified.
773
+ *
774
+ * These are used to check feature support between components in separate
775
+ * implementations. This can be used to either skip redundant work or
776
+ * report an error if the extension is unsupported.
777
+ *
778
+ * @generated from field: repeated google.api.expr.v1alpha1.SourceInfo.Extension extensions = 6;
779
+ */
780
+ extensions: SourceInfo_Extension[];
781
+
782
+ constructor(data?: PartialMessage<SourceInfo>);
783
+
784
+ static readonly runtime: typeof proto3;
785
+ static readonly typeName = "google.api.expr.v1alpha1.SourceInfo";
786
+ static readonly fields: FieldList;
787
+
788
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SourceInfo;
789
+
790
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SourceInfo;
791
+
792
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SourceInfo;
793
+
794
+ static equals(a: SourceInfo | PlainMessage<SourceInfo> | undefined, b: SourceInfo | PlainMessage<SourceInfo> | undefined): boolean;
795
+ }
553
796
 
554
- getLine(): number;
555
- setLine(value: number): void;
797
+ /**
798
+ * An extension that was requested for the source expression.
799
+ *
800
+ * @generated from message google.api.expr.v1alpha1.SourceInfo.Extension
801
+ */
802
+ export declare class SourceInfo_Extension extends Message<SourceInfo_Extension> {
803
+ /**
804
+ * Identifier for the extension. Example: constant_folding
805
+ *
806
+ * @generated from field: string id = 1;
807
+ */
808
+ id: string;
809
+
810
+ /**
811
+ * If set, the listed components must understand the extension for the
812
+ * expression to evaluate correctly.
813
+ *
814
+ * This field has set semantics, repeated values should be deduplicated.
815
+ *
816
+ * @generated from field: repeated google.api.expr.v1alpha1.SourceInfo.Extension.Component affected_components = 2;
817
+ */
818
+ affectedComponents: SourceInfo_Extension_Component[];
819
+
820
+ /**
821
+ * Version info. May be skipped if it isn't meaningful for the extension.
822
+ * (for example constant_folding might always be v0.0).
823
+ *
824
+ * @generated from field: google.api.expr.v1alpha1.SourceInfo.Extension.Version version = 3;
825
+ */
826
+ version?: SourceInfo_Extension_Version;
827
+
828
+ constructor(data?: PartialMessage<SourceInfo_Extension>);
829
+
830
+ static readonly runtime: typeof proto3;
831
+ static readonly typeName = "google.api.expr.v1alpha1.SourceInfo.Extension";
832
+ static readonly fields: FieldList;
833
+
834
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SourceInfo_Extension;
835
+
836
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SourceInfo_Extension;
837
+
838
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SourceInfo_Extension;
839
+
840
+ static equals(a: SourceInfo_Extension | PlainMessage<SourceInfo_Extension> | undefined, b: SourceInfo_Extension | PlainMessage<SourceInfo_Extension> | undefined): boolean;
841
+ }
556
842
 
557
- getColumn(): number;
558
- setColumn(value: number): void;
843
+ /**
844
+ * CEL component specifier.
845
+ *
846
+ * @generated from enum google.api.expr.v1alpha1.SourceInfo.Extension.Component
847
+ */
848
+ export declare enum SourceInfo_Extension_Component {
849
+ /**
850
+ * Unspecified, default.
851
+ *
852
+ * @generated from enum value: COMPONENT_UNSPECIFIED = 0;
853
+ */
854
+ UNSPECIFIED = 0,
855
+
856
+ /**
857
+ * Parser. Converts a CEL string to an AST.
858
+ *
859
+ * @generated from enum value: COMPONENT_PARSER = 1;
860
+ */
861
+ PARSER = 1,
862
+
863
+ /**
864
+ * Type checker. Checks that references in an AST are defined and types
865
+ * agree.
866
+ *
867
+ * @generated from enum value: COMPONENT_TYPE_CHECKER = 2;
868
+ */
869
+ TYPE_CHECKER = 2,
870
+
871
+ /**
872
+ * Runtime. Evaluates a parsed and optionally checked CEL AST against a
873
+ * context.
874
+ *
875
+ * @generated from enum value: COMPONENT_RUNTIME = 3;
876
+ */
877
+ RUNTIME = 3,
878
+ }
559
879
 
560
- serializeBinary(): Uint8Array;
561
- toObject(includeInstance?: boolean): SourcePosition.AsObject;
562
- static toObject(includeInstance: boolean, msg: SourcePosition): SourcePosition.AsObject;
563
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
564
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
565
- static serializeBinaryToWriter(message: SourcePosition, writer: jspb.BinaryWriter): void;
566
- static deserializeBinary(bytes: Uint8Array): SourcePosition;
567
- static deserializeBinaryFromReader(message: SourcePosition, reader: jspb.BinaryReader): SourcePosition;
880
+ /**
881
+ * Version
882
+ *
883
+ * @generated from message google.api.expr.v1alpha1.SourceInfo.Extension.Version
884
+ */
885
+ export declare class SourceInfo_Extension_Version extends Message<SourceInfo_Extension_Version> {
886
+ /**
887
+ * Major version changes indicate different required support level from
888
+ * the required components.
889
+ *
890
+ * @generated from field: int64 major = 1;
891
+ */
892
+ major: bigint;
893
+
894
+ /**
895
+ * Minor version changes must not change the observed behavior from
896
+ * existing implementations, but may be provided informationally.
897
+ *
898
+ * @generated from field: int64 minor = 2;
899
+ */
900
+ minor: bigint;
901
+
902
+ constructor(data?: PartialMessage<SourceInfo_Extension_Version>);
903
+
904
+ static readonly runtime: typeof proto3;
905
+ static readonly typeName = "google.api.expr.v1alpha1.SourceInfo.Extension.Version";
906
+ static readonly fields: FieldList;
907
+
908
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SourceInfo_Extension_Version;
909
+
910
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SourceInfo_Extension_Version;
911
+
912
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SourceInfo_Extension_Version;
913
+
914
+ static equals(a: SourceInfo_Extension_Version | PlainMessage<SourceInfo_Extension_Version> | undefined, b: SourceInfo_Extension_Version | PlainMessage<SourceInfo_Extension_Version> | undefined): boolean;
568
915
  }
569
916
 
570
- export namespace SourcePosition {
571
- export type AsObject = {
572
- location: string,
573
- offset: number,
574
- line: number,
575
- column: number,
576
- }
917
+ /**
918
+ * A specific position in source.
919
+ *
920
+ * @generated from message google.api.expr.v1alpha1.SourcePosition
921
+ */
922
+ export declare class SourcePosition extends Message<SourcePosition> {
923
+ /**
924
+ * The soucre location name (e.g. file name).
925
+ *
926
+ * @generated from field: string location = 1;
927
+ */
928
+ location: string;
929
+
930
+ /**
931
+ * The UTF-8 code unit offset.
932
+ *
933
+ * @generated from field: int32 offset = 2;
934
+ */
935
+ offset: number;
936
+
937
+ /**
938
+ * The 1-based index of the starting line in the source text
939
+ * where the issue occurs, or 0 if unknown.
940
+ *
941
+ * @generated from field: int32 line = 3;
942
+ */
943
+ line: number;
944
+
945
+ /**
946
+ * The 0-based index of the starting position within the line of source text
947
+ * where the issue occurs. Only meaningful if line is nonzero.
948
+ *
949
+ * @generated from field: int32 column = 4;
950
+ */
951
+ column: number;
952
+
953
+ constructor(data?: PartialMessage<SourcePosition>);
954
+
955
+ static readonly runtime: typeof proto3;
956
+ static readonly typeName = "google.api.expr.v1alpha1.SourcePosition";
957
+ static readonly fields: FieldList;
958
+
959
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SourcePosition;
960
+
961
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SourcePosition;
962
+
963
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SourcePosition;
964
+
965
+ static equals(a: SourcePosition | PlainMessage<SourcePosition> | undefined, b: SourcePosition | PlainMessage<SourcePosition> | undefined): boolean;
577
966
  }
578
967