wandelbots-api-client 25.8.0.dev88__py3-none-any.whl → 25.10.0.dev47__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (526) hide show
  1. wandelbots_api_client/__init__.py +1 -1
  2. wandelbots_api_client/api/controller_api.py +9 -3
  3. wandelbots_api_client/api/controller_ios_api.py +2 -4
  4. wandelbots_api_client/api/motion_api.py +16 -4
  5. wandelbots_api_client/api/motion_group_infos_api.py +2 -0
  6. wandelbots_api_client/api/motion_group_jogging_api.py +10 -4
  7. wandelbots_api_client/api/store_collision_components_api.py +9 -6
  8. wandelbots_api_client/api/virtual_robot_behavior_api.py +5 -2
  9. wandelbots_api_client/api_client.py +1 -1
  10. wandelbots_api_client/configuration.py +1 -1
  11. wandelbots_api_client/models/abb_controller.py +4 -4
  12. wandelbots_api_client/models/abb_controller_egm_server.py +2 -2
  13. wandelbots_api_client/models/activate_license_request.py +1 -1
  14. wandelbots_api_client/models/add_request.py +2 -2
  15. wandelbots_api_client/models/all_joint_positions_request.py +2 -2
  16. wandelbots_api_client/models/all_joint_positions_response.py +1 -1
  17. wandelbots_api_client/models/app.py +7 -7
  18. wandelbots_api_client/models/array_input.py +1 -1
  19. wandelbots_api_client/models/array_output.py +1 -1
  20. wandelbots_api_client/models/blending_auto.py +2 -2
  21. wandelbots_api_client/models/blending_position.py +2 -2
  22. wandelbots_api_client/models/box.py +4 -4
  23. wandelbots_api_client/models/box2.py +5 -5
  24. wandelbots_api_client/models/box3.py +5 -5
  25. wandelbots_api_client/models/capsule.py +2 -2
  26. wandelbots_api_client/models/capsule2.py +3 -3
  27. wandelbots_api_client/models/capsule3.py +3 -3
  28. wandelbots_api_client/models/capture.py +1 -1
  29. wandelbots_api_client/models/cell.py +3 -3
  30. wandelbots_api_client/models/circle.py +2 -2
  31. wandelbots_api_client/models/code_with_arguments.py +2 -2
  32. wandelbots_api_client/models/collider.py +3 -3
  33. wandelbots_api_client/models/collider_input.py +3 -3
  34. wandelbots_api_client/models/collider_output.py +3 -3
  35. wandelbots_api_client/models/collision.py +6 -6
  36. wandelbots_api_client/models/collision_contact.py +2 -2
  37. wandelbots_api_client/models/collision_motion_group.py +2 -2
  38. wandelbots_api_client/models/collision_motion_group_assembly.py +4 -4
  39. wandelbots_api_client/models/collision_robot_configuration_input.py +3 -3
  40. wandelbots_api_client/models/collision_robot_configuration_output.py +3 -3
  41. wandelbots_api_client/models/collision_scene.py +2 -2
  42. wandelbots_api_client/models/collision_scene_assembly.py +5 -5
  43. wandelbots_api_client/models/command.py +6 -6
  44. wandelbots_api_client/models/command_settings.py +3 -3
  45. wandelbots_api_client/models/compound.py +1 -1
  46. wandelbots_api_client/models/container_environment_inner.py +2 -2
  47. wandelbots_api_client/models/container_image.py +3 -3
  48. wandelbots_api_client/models/container_image_secrets_inner.py +1 -1
  49. wandelbots_api_client/models/container_resources.py +1 -1
  50. wandelbots_api_client/models/container_storage.py +2 -2
  51. wandelbots_api_client/models/controller_capabilities.py +2 -2
  52. wandelbots_api_client/models/controller_instance.py +8 -8
  53. wandelbots_api_client/models/controller_instance_list.py +1 -1
  54. wandelbots_api_client/models/convex_hull.py +1 -1
  55. wandelbots_api_client/models/convex_hull2.py +2 -2
  56. wandelbots_api_client/models/convex_hull3.py +2 -2
  57. wandelbots_api_client/models/coordinate_system.py +5 -5
  58. wandelbots_api_client/models/coordinate_systems.py +1 -1
  59. wandelbots_api_client/models/create_program_run200_response.py +1 -1
  60. wandelbots_api_client/models/create_program_run_request.py +1 -1
  61. wandelbots_api_client/models/create_trigger200_response.py +1 -1
  62. wandelbots_api_client/models/create_trigger_request.py +4 -4
  63. wandelbots_api_client/models/cubic_spline.py +1 -1
  64. wandelbots_api_client/models/cubic_spline_cubic_spline_parameter.py +2 -2
  65. wandelbots_api_client/models/cubic_spline_parameter.py +2 -2
  66. wandelbots_api_client/models/cycle_time.py +1 -1
  67. wandelbots_api_client/models/cylinder.py +2 -2
  68. wandelbots_api_client/models/cylinder2.py +3 -3
  69. wandelbots_api_client/models/cylinder3.py +3 -3
  70. wandelbots_api_client/models/dh_parameter.py +5 -5
  71. wandelbots_api_client/models/direction_jogging_request.py +9 -9
  72. wandelbots_api_client/models/error.py +2 -2
  73. wandelbots_api_client/models/execution_result.py +3 -3
  74. wandelbots_api_client/models/external_joint_stream_datapoint.py +2 -2
  75. wandelbots_api_client/models/external_joint_stream_datapoint_value.py +4 -4
  76. wandelbots_api_client/models/fanuc_controller.py +2 -2
  77. wandelbots_api_client/models/feedback_collision.py +4 -4
  78. wandelbots_api_client/models/feedback_joint_limit_exceeded.py +3 -3
  79. wandelbots_api_client/models/feedback_out_of_workspace.py +2 -2
  80. wandelbots_api_client/models/feedback_singularity.py +3 -3
  81. wandelbots_api_client/models/flag.py +1 -1
  82. wandelbots_api_client/models/force_vector.py +3 -3
  83. wandelbots_api_client/models/geometry.py +11 -11
  84. wandelbots_api_client/models/get_all_program_runs200_response.py +1 -1
  85. wandelbots_api_client/models/get_all_triggers200_response.py +1 -1
  86. wandelbots_api_client/models/get_mode_response.py +1 -1
  87. wandelbots_api_client/models/get_trajectory_response.py +1 -1
  88. wandelbots_api_client/models/get_trajectory_sample_response.py +1 -1
  89. wandelbots_api_client/models/google_protobuf_any.py +1 -1
  90. wandelbots_api_client/models/http_exception_response.py +1 -1
  91. wandelbots_api_client/models/http_validation_error.py +1 -1
  92. wandelbots_api_client/models/http_validation_error2.py +1 -1
  93. wandelbots_api_client/models/image_credentials.py +3 -3
  94. wandelbots_api_client/models/info_service_capabilities.py +7 -7
  95. wandelbots_api_client/models/initialize_movement_request.py +5 -5
  96. wandelbots_api_client/models/initialize_movement_response.py +1 -1
  97. wandelbots_api_client/models/initialize_movement_response_init_response.py +2 -2
  98. wandelbots_api_client/models/io.py +5 -5
  99. wandelbots_api_client/models/io_description.py +9 -9
  100. wandelbots_api_client/models/io_value.py +4 -4
  101. wandelbots_api_client/models/ios.py +1 -1
  102. wandelbots_api_client/models/jogging_response.py +3 -3
  103. wandelbots_api_client/models/jogging_service_capabilities.py +2 -2
  104. wandelbots_api_client/models/joint_jogging_request.py +5 -5
  105. wandelbots_api_client/models/joint_limit.py +4 -4
  106. wandelbots_api_client/models/joint_limit_exceeded.py +2 -2
  107. wandelbots_api_client/models/joint_position_request.py +3 -3
  108. wandelbots_api_client/models/joint_trajectory.py +3 -3
  109. wandelbots_api_client/models/joints.py +1 -1
  110. wandelbots_api_client/models/kinematic_service_capabilities.py +3 -3
  111. wandelbots_api_client/models/kuka_controller.py +5 -5
  112. wandelbots_api_client/models/kuka_controller_rsi_server.py +2 -2
  113. wandelbots_api_client/models/license.py +10 -10
  114. wandelbots_api_client/models/license_status.py +2 -2
  115. wandelbots_api_client/models/limit_settings.py +12 -12
  116. wandelbots_api_client/models/limits_override.py +6 -6
  117. wandelbots_api_client/models/list_io_descriptions_response.py +1 -1
  118. wandelbots_api_client/models/list_io_values_response.py +1 -1
  119. wandelbots_api_client/models/list_payloads_response.py +1 -1
  120. wandelbots_api_client/models/list_program_metadata_response.py +1 -1
  121. wandelbots_api_client/models/list_recipe_metadata_response.py +1 -1
  122. wandelbots_api_client/models/list_response.py +1 -1
  123. wandelbots_api_client/models/list_tcps_response.py +1 -1
  124. wandelbots_api_client/models/mode_change_response.py +4 -4
  125. wandelbots_api_client/models/motion_command.py +3 -3
  126. wandelbots_api_client/models/motion_group_behavior_getter.py +1 -1
  127. wandelbots_api_client/models/motion_group_info.py +3 -3
  128. wandelbots_api_client/models/motion_group_infos.py +1 -1
  129. wandelbots_api_client/models/motion_group_instance.py +5 -5
  130. wandelbots_api_client/models/motion_group_instance_list.py +1 -1
  131. wandelbots_api_client/models/motion_group_joints.py +4 -4
  132. wandelbots_api_client/models/motion_group_physical.py +5 -5
  133. wandelbots_api_client/models/motion_group_specification.py +2 -2
  134. wandelbots_api_client/models/motion_group_state.py +12 -12
  135. wandelbots_api_client/models/motion_group_state_joint_limit_reached.py +1 -1
  136. wandelbots_api_client/models/motion_group_state_response.py +2 -2
  137. wandelbots_api_client/models/motion_id.py +1 -1
  138. wandelbots_api_client/models/motion_ids_list_response.py +1 -1
  139. wandelbots_api_client/models/motion_vector.py +3 -3
  140. wandelbots_api_client/models/mounting.py +2 -2
  141. wandelbots_api_client/models/move_request.py +8 -8
  142. wandelbots_api_client/models/move_response.py +2 -2
  143. wandelbots_api_client/models/move_to_trajectory_via_joint_ptp_request.py +4 -4
  144. wandelbots_api_client/models/movement.py +1 -1
  145. wandelbots_api_client/models/movement_error.py +1 -1
  146. wandelbots_api_client/models/movement_error_error.py +1 -1
  147. wandelbots_api_client/models/movement_movement.py +3 -3
  148. wandelbots_api_client/models/op_mode.py +1 -1
  149. wandelbots_api_client/models/opcua_node_value_trigger_config.py +3 -3
  150. wandelbots_api_client/models/optimizer_setup.py +7 -7
  151. wandelbots_api_client/models/out_of_workspace.py +1 -1
  152. wandelbots_api_client/models/path.py +1 -1
  153. wandelbots_api_client/models/path_cartesian_ptp.py +2 -2
  154. wandelbots_api_client/models/path_circle.py +3 -3
  155. wandelbots_api_client/models/path_cubic_spline.py +2 -2
  156. wandelbots_api_client/models/path_joint_ptp.py +2 -2
  157. wandelbots_api_client/models/path_line.py +2 -2
  158. wandelbots_api_client/models/pause_movement_request.py +2 -2
  159. wandelbots_api_client/models/pause_movement_response.py +1 -1
  160. wandelbots_api_client/models/pause_movement_response_pause_response.py +2 -2
  161. wandelbots_api_client/models/pause_on_io.py +2 -2
  162. wandelbots_api_client/models/payload.py +4 -4
  163. wandelbots_api_client/models/plan_collision_free_ptp_request.py +5 -5
  164. wandelbots_api_client/models/plan_failed_on_trajectory_response.py +9 -9
  165. wandelbots_api_client/models/plan_failed_response.py +7 -7
  166. wandelbots_api_client/models/plan_request.py +5 -5
  167. wandelbots_api_client/models/plan_response.py +3 -3
  168. wandelbots_api_client/models/plan_successful_response.py +2 -2
  169. wandelbots_api_client/models/plan_trajectory_failed_response.py +3 -3
  170. wandelbots_api_client/models/plan_trajectory_request.py +5 -5
  171. wandelbots_api_client/models/plan_trajectory_response.py +1 -1
  172. wandelbots_api_client/models/plane2.py +1 -1
  173. wandelbots_api_client/models/plane3.py +1 -1
  174. wandelbots_api_client/models/planned_motion.py +5 -5
  175. wandelbots_api_client/models/planner_pose.py +2 -2
  176. wandelbots_api_client/models/planning_limits.py +12 -12
  177. wandelbots_api_client/models/planning_limits_limit_range.py +2 -2
  178. wandelbots_api_client/models/playback_speed_request.py +2 -2
  179. wandelbots_api_client/models/playback_speed_response.py +1 -1
  180. wandelbots_api_client/models/playback_speed_response_playback_speed_response.py +1 -1
  181. wandelbots_api_client/models/point_cloud.py +1 -1
  182. wandelbots_api_client/models/pose.py +3 -3
  183. wandelbots_api_client/models/pose2.py +2 -2
  184. wandelbots_api_client/models/program_metadata.py +6 -6
  185. wandelbots_api_client/models/program_run.py +10 -10
  186. wandelbots_api_client/models/program_run_object.py +6 -6
  187. wandelbots_api_client/models/program_runner_reference.py +2 -2
  188. wandelbots_api_client/models/pyjectory_datatypes_core_pose.py +2 -2
  189. wandelbots_api_client/models/pyjectory_datatypes_serializer_orientation.py +1 -1
  190. wandelbots_api_client/models/pyjectory_datatypes_serializer_pose.py +1 -1
  191. wandelbots_api_client/models/pyjectory_datatypes_serializer_position.py +1 -1
  192. wandelbots_api_client/models/pyriphery_etcd_etcd_configuration.py +4 -4
  193. wandelbots_api_client/models/pyriphery_hardware_isaac_isaac_configuration.py +4 -4
  194. wandelbots_api_client/models/pyriphery_opcua_opcua_configuration.py +3 -3
  195. wandelbots_api_client/models/pyriphery_pyrae_controller_controller_configuration.py +6 -6
  196. wandelbots_api_client/models/pyriphery_pyrae_robot_robot_configuration.py +7 -7
  197. wandelbots_api_client/models/pyriphery_robotics_configurable_collision_scene_configurable_collision_scene_configuration_input.py +4 -4
  198. wandelbots_api_client/models/pyriphery_robotics_configurable_collision_scene_configurable_collision_scene_configuration_output.py +4 -4
  199. wandelbots_api_client/models/pyriphery_robotics_robotcell_timer_configuration.py +2 -2
  200. wandelbots_api_client/models/pyriphery_robotics_simulation_robot_with_view_open3d_configuration.py +3 -3
  201. wandelbots_api_client/models/pyriphery_robotics_simulation_simulated_io_configuration.py +2 -2
  202. wandelbots_api_client/models/pyriphery_robotics_simulation_simulated_opcua_configuration.py +2 -2
  203. wandelbots_api_client/models/quaternion.py +4 -4
  204. wandelbots_api_client/models/recipe_metadata.py +7 -7
  205. wandelbots_api_client/models/rectangle.py +2 -2
  206. wandelbots_api_client/models/rectangle2.py +3 -3
  207. wandelbots_api_client/models/rectangle3.py +3 -3
  208. wandelbots_api_client/models/rectangular_capsule.py +3 -3
  209. wandelbots_api_client/models/rectangular_capsule2.py +4 -4
  210. wandelbots_api_client/models/rectangular_capsule3.py +4 -4
  211. wandelbots_api_client/models/robot_controller.py +2 -2
  212. wandelbots_api_client/models/robot_controller_state.py +7 -7
  213. wandelbots_api_client/models/robot_link_geometry.py +2 -2
  214. wandelbots_api_client/models/robot_state.py +2 -2
  215. wandelbots_api_client/models/robot_tcp.py +4 -4
  216. wandelbots_api_client/models/robot_tcps.py +1 -1
  217. wandelbots_api_client/models/rotation_angles.py +2 -2
  218. wandelbots_api_client/models/safety_configuration.py +5 -5
  219. wandelbots_api_client/models/safety_setup.py +4 -4
  220. wandelbots_api_client/models/safety_setup_safety_settings.py +2 -2
  221. wandelbots_api_client/models/safety_setup_safety_zone.py +4 -4
  222. wandelbots_api_client/models/safety_zone.py +3 -3
  223. wandelbots_api_client/models/safety_zone_limits.py +2 -2
  224. wandelbots_api_client/models/safety_zone_violation.py +1 -1
  225. wandelbots_api_client/models/service_status.py +2 -2
  226. wandelbots_api_client/models/service_status_status.py +3 -3
  227. wandelbots_api_client/models/set_io.py +2 -2
  228. wandelbots_api_client/models/set_playback_speed.py +2 -2
  229. wandelbots_api_client/models/single_joint_limit.py +2 -2
  230. wandelbots_api_client/models/singularity.py +2 -2
  231. wandelbots_api_client/models/sphere.py +1 -1
  232. wandelbots_api_client/models/sphere2.py +2 -2
  233. wandelbots_api_client/models/sphere3.py +2 -2
  234. wandelbots_api_client/models/standstill.py +1 -1
  235. wandelbots_api_client/models/standstill_standstill.py +3 -3
  236. wandelbots_api_client/models/start_movement_request.py +5 -5
  237. wandelbots_api_client/models/start_on_io.py +2 -2
  238. wandelbots_api_client/models/status.py +3 -3
  239. wandelbots_api_client/models/stop_response.py +3 -3
  240. wandelbots_api_client/models/stream_move_backward.py +1 -1
  241. wandelbots_api_client/models/stream_move_forward.py +1 -1
  242. wandelbots_api_client/models/stream_move_playback_speed.py +1 -1
  243. wandelbots_api_client/models/stream_move_response.py +3 -3
  244. wandelbots_api_client/models/stream_move_to_trajectory.py +1 -1
  245. wandelbots_api_client/models/stream_stop.py +1 -1
  246. wandelbots_api_client/models/tcp_pose.py +4 -4
  247. wandelbots_api_client/models/tcp_pose_request.py +4 -4
  248. wandelbots_api_client/models/tool_geometry.py +2 -2
  249. wandelbots_api_client/models/trajectory_sample.py +11 -11
  250. wandelbots_api_client/models/trigger_object.py +8 -8
  251. wandelbots_api_client/models/universalrobots_controller.py +2 -2
  252. wandelbots_api_client/models/update_nova_version_request.py +1 -1
  253. wandelbots_api_client/models/update_program_metadata_request.py +3 -3
  254. wandelbots_api_client/models/update_recipe_metadata_request.py +3 -3
  255. wandelbots_api_client/models/update_trigger_request.py +3 -3
  256. wandelbots_api_client/models/validation_error.py +3 -3
  257. wandelbots_api_client/models/validation_error2.py +3 -3
  258. wandelbots_api_client/models/vector3d.py +3 -3
  259. wandelbots_api_client/models/version_number.py +8 -8
  260. wandelbots_api_client/models/virtual_controller.py +5 -5
  261. wandelbots_api_client/models/virtual_controller_types.py +3 -0
  262. wandelbots_api_client/models/virtual_robot_configuration.py +2 -2
  263. wandelbots_api_client/models/yaskawa_controller.py +2 -2
  264. wandelbots_api_client/v2/__init__.py +1 -1
  265. wandelbots_api_client/v2/api/application_api.py +9 -9
  266. wandelbots_api_client/v2/api/bus_inputs_outputs_api.py +928 -79
  267. wandelbots_api_client/v2/api/cell_api.py +6 -6
  268. wandelbots_api_client/v2/api/controller_api.py +33 -29
  269. wandelbots_api_client/v2/api/controller_inputs_outputs_api.py +12 -10
  270. wandelbots_api_client/v2/api/jogging_api.py +6 -3
  271. wandelbots_api_client/v2/api/kinematics_api.py +12 -13
  272. wandelbots_api_client/v2/api/license_api.py +6 -6
  273. wandelbots_api_client/v2/api/motion_group_api.py +8 -6
  274. wandelbots_api_client/v2/api/motion_group_models_api.py +11 -47
  275. wandelbots_api_client/v2/api/store_collision_components_api.py +799 -25
  276. wandelbots_api_client/v2/api/store_collision_setups_api.py +262 -4
  277. wandelbots_api_client/v2/api/store_object_api.py +9 -9
  278. wandelbots_api_client/v2/api/trajectory_caching_api.py +12 -12
  279. wandelbots_api_client/v2/api/trajectory_execution_api.py +6 -3
  280. wandelbots_api_client/v2/api/trajectory_planning_api.py +15 -16
  281. wandelbots_api_client/v2/api/virtual_controller_api.py +51 -36
  282. wandelbots_api_client/v2/api/virtual_controller_behavior_api.py +18 -9
  283. wandelbots_api_client/v2/api/virtual_controller_inputs_outputs_api.py +3 -3
  284. wandelbots_api_client/v2/api_client.py +1 -1
  285. wandelbots_api_client/v2/configuration.py +1 -1
  286. wandelbots_api_client/v2/models/__init__.py +44 -26
  287. wandelbots_api_client/v2/models/abb_controller.py +6 -9
  288. wandelbots_api_client/v2/models/abb_controller_egm_server.py +2 -2
  289. wandelbots_api_client/v2/models/activate_license_request.py +1 -1
  290. wandelbots_api_client/v2/models/add_trajectory_error.py +3 -3
  291. wandelbots_api_client/v2/models/add_trajectory_error_data.py +56 -56
  292. wandelbots_api_client/v2/models/add_trajectory_request.py +3 -3
  293. wandelbots_api_client/v2/models/add_trajectory_response.py +2 -2
  294. wandelbots_api_client/v2/models/app.py +9 -9
  295. wandelbots_api_client/v2/models/behavior.py +1 -1
  296. wandelbots_api_client/v2/models/blending_auto.py +4 -3
  297. wandelbots_api_client/v2/models/blending_position.py +2 -2
  298. wandelbots_api_client/v2/models/boolean_value.py +4 -7
  299. wandelbots_api_client/v2/models/box.py +5 -5
  300. wandelbots_api_client/v2/models/{io_description2.py → bus_io_description.py} +14 -14
  301. wandelbots_api_client/v2/models/bus_io_modbus_client.py +104 -0
  302. wandelbots_api_client/v2/models/bus_io_modbus_server.py +115 -0
  303. wandelbots_api_client/v2/models/bus_io_modbus_tcp_client.py +106 -0
  304. wandelbots_api_client/v2/models/bus_io_modbus_tcp_server.py +104 -0
  305. wandelbots_api_client/v2/models/bus_io_modbus_virtual.py +98 -0
  306. wandelbots_api_client/v2/models/bus_io_profinet.py +6 -9
  307. wandelbots_api_client/v2/models/bus_io_profinet_default_route.py +2 -2
  308. wandelbots_api_client/v2/models/bus_io_profinet_ip_config.py +3 -3
  309. wandelbots_api_client/v2/models/bus_io_profinet_network.py +3 -3
  310. wandelbots_api_client/v2/models/bus_io_profinet_virtual.py +3 -6
  311. wandelbots_api_client/v2/models/bus_io_type.py +80 -8
  312. wandelbots_api_client/v2/models/bus_ios_state.py +2 -2
  313. wandelbots_api_client/v2/models/capsule.py +3 -3
  314. wandelbots_api_client/v2/models/cartesian_limits.py +4 -4
  315. wandelbots_api_client/v2/models/cell.py +5 -5
  316. wandelbots_api_client/v2/models/collider.py +3 -3
  317. wandelbots_api_client/v2/models/collision.py +6 -6
  318. wandelbots_api_client/v2/models/collision_contact.py +2 -2
  319. wandelbots_api_client/v2/models/collision_error.py +1 -1
  320. wandelbots_api_client/v2/models/collision_setup.py +4 -4
  321. wandelbots_api_client/v2/models/configuration_archive_status_creating.py +2 -2
  322. wandelbots_api_client/v2/models/configuration_archive_status_error.py +2 -2
  323. wandelbots_api_client/v2/models/configuration_archive_status_success.py +1 -1
  324. wandelbots_api_client/v2/models/configuration_resource.py +3 -3
  325. wandelbots_api_client/v2/models/container_environment_inner.py +2 -2
  326. wandelbots_api_client/v2/models/container_image.py +3 -3
  327. wandelbots_api_client/v2/models/container_image_secrets_inner.py +1 -1
  328. wandelbots_api_client/v2/models/container_resources.py +2 -2
  329. wandelbots_api_client/v2/models/container_storage.py +2 -2
  330. wandelbots_api_client/v2/models/controller_description.py +4 -4
  331. wandelbots_api_client/v2/models/convex_hull.py +2 -2
  332. wandelbots_api_client/v2/models/coordinate_system.py +6 -6
  333. wandelbots_api_client/v2/models/coordinate_system_data.py +5 -5
  334. wandelbots_api_client/v2/models/cubic_spline_parameter.py +2 -2
  335. wandelbots_api_client/v2/models/cycle_time.py +3 -2
  336. wandelbots_api_client/v2/models/cylinder.py +3 -3
  337. wandelbots_api_client/v2/models/dh_parameter.py +5 -5
  338. wandelbots_api_client/v2/models/error.py +2 -2
  339. wandelbots_api_client/v2/models/error_invalid_joint_count.py +3 -3
  340. wandelbots_api_client/v2/models/error_joint_limit_exceeded.py +4 -3
  341. wandelbots_api_client/v2/models/error_joint_position_collision.py +4 -4
  342. wandelbots_api_client/v2/models/error_max_iterations_exceeded.py +2 -2
  343. wandelbots_api_client/v2/models/execute.py +2 -2
  344. wandelbots_api_client/v2/models/execute_jogging_request.py +28 -0
  345. wandelbots_api_client/v2/models/execute_jogging_response.py +25 -0
  346. wandelbots_api_client/v2/models/execute_trajectory_request.py +28 -0
  347. wandelbots_api_client/v2/models/execute_trajectory_response.py +25 -0
  348. wandelbots_api_client/v2/models/external_joint_stream_datapoint.py +2 -2
  349. wandelbots_api_client/v2/models/external_joint_stream_request.py +1 -1
  350. wandelbots_api_client/v2/models/fanuc_controller.py +4 -7
  351. wandelbots_api_client/v2/models/feedback_collision.py +4 -4
  352. wandelbots_api_client/v2/models/feedback_joint_limit_exceeded.py +5 -4
  353. wandelbots_api_client/v2/models/feedback_out_of_workspace.py +2 -2
  354. wandelbots_api_client/v2/models/feedback_singularity.py +3 -3
  355. wandelbots_api_client/v2/models/flag.py +1 -1
  356. wandelbots_api_client/v2/models/float_value.py +4 -7
  357. wandelbots_api_client/v2/models/forward_kinematics422_response.py +1 -1
  358. wandelbots_api_client/v2/models/forward_kinematics_request.py +4 -4
  359. wandelbots_api_client/v2/models/forward_kinematics_response.py +1 -1
  360. wandelbots_api_client/v2/models/forward_kinematics_validation_error.py +5 -5
  361. wandelbots_api_client/v2/models/get_trajectory_response.py +3 -3
  362. wandelbots_api_client/v2/models/http_validation_error.py +1 -1
  363. wandelbots_api_client/v2/models/image_credentials.py +3 -3
  364. wandelbots_api_client/v2/models/{inconsitent_trajectory_size.py → inconsistent_trajectory_size_error.py} +7 -7
  365. wandelbots_api_client/v2/models/{inconsitent_trajectory_size_inconsistent_trajectory_size.py → inconsistent_trajectory_size_error_inconsistent_trajectory_size.py} +7 -7
  366. wandelbots_api_client/v2/models/initialize_jogging_request.py +5 -8
  367. wandelbots_api_client/v2/models/initialize_jogging_response.py +2 -2
  368. wandelbots_api_client/v2/models/initialize_movement_request.py +5 -8
  369. wandelbots_api_client/v2/models/initialize_movement_response.py +3 -3
  370. wandelbots_api_client/v2/models/integer_value.py +4 -7
  371. wandelbots_api_client/v2/models/{invalid_dof.py → invalid_dof_error.py} +7 -7
  372. wandelbots_api_client/v2/models/{invalid_dof_invalid_dof.py → invalid_dof_error_invalid_dof.py} +6 -6
  373. wandelbots_api_client/v2/models/inverse_kinematics422_response.py +1 -1
  374. wandelbots_api_client/v2/models/inverse_kinematics_request.py +6 -6
  375. wandelbots_api_client/v2/models/inverse_kinematics_response.py +1 -1
  376. wandelbots_api_client/v2/models/inverse_kinematics_validation_error.py +5 -5
  377. wandelbots_api_client/v2/models/io_boolean_value.py +5 -8
  378. wandelbots_api_client/v2/models/{io_description_min.py → io_boundary.py} +8 -8
  379. wandelbots_api_client/v2/models/io_description.py +11 -11
  380. wandelbots_api_client/v2/models/io_float_value.py +5 -8
  381. wandelbots_api_client/v2/models/io_integer_value.py +5 -8
  382. wandelbots_api_client/v2/models/jogging_details.py +2 -2
  383. wandelbots_api_client/v2/models/jogging_paused_by_user.py +1 -1
  384. wandelbots_api_client/v2/models/jogging_paused_near_collision.py +2 -2
  385. wandelbots_api_client/v2/models/jogging_paused_near_joint_limit.py +4 -3
  386. wandelbots_api_client/v2/models/jogging_paused_on_io.py +1 -1
  387. wandelbots_api_client/v2/models/jogging_running.py +1 -1
  388. wandelbots_api_client/v2/models/{joint_limit_exceeded.py → joint_limit_exceeded_error.py} +5 -5
  389. wandelbots_api_client/v2/models/joint_limits.py +4 -4
  390. wandelbots_api_client/v2/models/joint_trajectory.py +3 -3
  391. wandelbots_api_client/v2/models/joint_velocity_request.py +4 -7
  392. wandelbots_api_client/v2/models/joint_velocity_response.py +2 -2
  393. wandelbots_api_client/v2/models/kuka_controller.py +6 -9
  394. wandelbots_api_client/v2/models/kuka_controller_rsi_server.py +2 -2
  395. wandelbots_api_client/v2/models/license.py +10 -10
  396. wandelbots_api_client/v2/models/license_status.py +2 -2
  397. wandelbots_api_client/v2/models/limit_range.py +2 -2
  398. wandelbots_api_client/v2/models/limit_set.py +5 -5
  399. wandelbots_api_client/v2/models/limits_override.py +6 -6
  400. wandelbots_api_client/v2/models/list_trajectories_response.py +1 -1
  401. wandelbots_api_client/v2/models/midpoint_insertion_algorithm.py +2 -2
  402. wandelbots_api_client/v2/models/modbus_io.py +105 -0
  403. wandelbots_api_client/v2/models/modbus_io_area.py +40 -0
  404. wandelbots_api_client/v2/models/modbus_io_byte_order.py +40 -0
  405. wandelbots_api_client/v2/models/{http_validation_error2.py → modbus_io_data.py} +21 -26
  406. wandelbots_api_client/v2/models/modbus_io_type_enum.py +39 -0
  407. wandelbots_api_client/v2/models/motion_command.py +3 -3
  408. wandelbots_api_client/v2/models/motion_group_description.py +12 -11
  409. wandelbots_api_client/v2/models/motion_group_info.py +5 -4
  410. wandelbots_api_client/v2/models/motion_group_joints.py +4 -4
  411. wandelbots_api_client/v2/models/motion_group_setup.py +9 -8
  412. wandelbots_api_client/v2/models/motion_group_state.py +16 -15
  413. wandelbots_api_client/v2/models/motion_group_state_joint_limit_reached.py +1 -1
  414. wandelbots_api_client/v2/models/movement_error_response.py +2 -2
  415. wandelbots_api_client/v2/models/{nan_value.py → nan_value_error.py} +7 -7
  416. wandelbots_api_client/v2/models/{nan_value_nan_value.py → nan_value_error_nan_value.py} +4 -4
  417. wandelbots_api_client/v2/models/op_mode.py +1 -1
  418. wandelbots_api_client/v2/models/operation_limits.py +4 -4
  419. wandelbots_api_client/v2/models/path_cartesian_ptp.py +2 -2
  420. wandelbots_api_client/v2/models/path_circle.py +3 -3
  421. wandelbots_api_client/v2/models/path_cubic_spline.py +2 -2
  422. wandelbots_api_client/v2/models/path_joint_ptp.py +2 -2
  423. wandelbots_api_client/v2/models/path_line.py +2 -2
  424. wandelbots_api_client/v2/models/pause_jogging_request.py +3 -6
  425. wandelbots_api_client/v2/models/pause_jogging_response.py +2 -2
  426. wandelbots_api_client/v2/models/pause_movement_request.py +3 -6
  427. wandelbots_api_client/v2/models/pause_movement_response.py +2 -2
  428. wandelbots_api_client/v2/models/pause_on_io.py +3 -3
  429. wandelbots_api_client/v2/models/payload.py +4 -4
  430. wandelbots_api_client/v2/models/plan422_response.py +1 -1
  431. wandelbots_api_client/v2/models/plan_collision_free_failed_response.py +1 -1
  432. wandelbots_api_client/v2/models/plan_collision_free_request.py +4 -4
  433. wandelbots_api_client/v2/models/plan_collision_free_response.py +1 -1
  434. wandelbots_api_client/v2/models/plan_trajectory_failed_response.py +3 -3
  435. wandelbots_api_client/v2/models/plan_trajectory_request.py +3 -3
  436. wandelbots_api_client/v2/models/plan_trajectory_response.py +1 -1
  437. wandelbots_api_client/v2/models/plan_validation_error.py +5 -5
  438. wandelbots_api_client/v2/models/plane.py +1 -1
  439. wandelbots_api_client/v2/models/playback_speed_request.py +6 -8
  440. wandelbots_api_client/v2/models/playback_speed_response.py +2 -2
  441. wandelbots_api_client/v2/models/pose.py +2 -2
  442. wandelbots_api_client/v2/models/profinet_description.py +5 -5
  443. wandelbots_api_client/v2/models/profinet_input_output_config.py +3 -3
  444. wandelbots_api_client/v2/models/profinet_io.py +8 -8
  445. wandelbots_api_client/v2/models/profinet_io_data.py +7 -7
  446. wandelbots_api_client/v2/models/profinet_io_direction.py +1 -1
  447. wandelbots_api_client/v2/models/profinet_slot_description.py +4 -4
  448. wandelbots_api_client/v2/models/profinet_sub_slot_description.py +3 -3
  449. wandelbots_api_client/v2/models/program.py +6 -6
  450. wandelbots_api_client/v2/models/program_run.py +14 -12
  451. wandelbots_api_client/v2/models/program_start_request.py +1 -1
  452. wandelbots_api_client/v2/models/rectangle.py +3 -3
  453. wandelbots_api_client/v2/models/rectangular_capsule.py +4 -4
  454. wandelbots_api_client/v2/models/robot_controller.py +2 -2
  455. wandelbots_api_client/v2/models/robot_controller_state.py +11 -10
  456. wandelbots_api_client/v2/models/robot_tcp.py +5 -5
  457. wandelbots_api_client/v2/models/robot_tcp_data.py +4 -4
  458. wandelbots_api_client/v2/models/rrt_connect_algorithm.py +6 -6
  459. wandelbots_api_client/v2/models/service_status.py +3 -3
  460. wandelbots_api_client/v2/models/service_status_response.py +2 -2
  461. wandelbots_api_client/v2/models/service_status_status.py +3 -3
  462. wandelbots_api_client/v2/models/set_io.py +3 -3
  463. wandelbots_api_client/v2/models/sphere.py +2 -2
  464. wandelbots_api_client/v2/models/start_movement_request.py +11 -12
  465. wandelbots_api_client/v2/models/start_movement_response.py +2 -2
  466. wandelbots_api_client/v2/models/start_on_io.py +3 -3
  467. wandelbots_api_client/v2/models/stream_io_values_response.py +5 -4
  468. wandelbots_api_client/v2/models/tcp_offset.py +2 -2
  469. wandelbots_api_client/v2/models/{tcp_required.py → tcp_required_error.py} +4 -4
  470. wandelbots_api_client/v2/models/tcp_velocity_request.py +5 -8
  471. wandelbots_api_client/v2/models/tcp_velocity_response.py +2 -2
  472. wandelbots_api_client/v2/models/{torque_exceeded.py → torque_exceeded_error.py} +7 -7
  473. wandelbots_api_client/v2/models/{torque_exceeded_torque_exceeded.py → torque_exceeded_error_torque_exceeded.py} +6 -6
  474. wandelbots_api_client/v2/models/trajectory_data.py +5 -5
  475. wandelbots_api_client/v2/models/trajectory_details.py +4 -4
  476. wandelbots_api_client/v2/models/trajectory_ended.py +1 -1
  477. wandelbots_api_client/v2/models/trajectory_id.py +3 -3
  478. wandelbots_api_client/v2/models/trajectory_paused_by_user.py +1 -1
  479. wandelbots_api_client/v2/models/trajectory_paused_on_io.py +1 -1
  480. wandelbots_api_client/v2/models/trajectory_running.py +4 -3
  481. wandelbots_api_client/v2/models/trajectory_wait_for_io.py +1 -1
  482. wandelbots_api_client/v2/models/universalrobots_controller.py +4 -7
  483. wandelbots_api_client/v2/models/update_nova_version_request.py +1 -1
  484. wandelbots_api_client/v2/models/validation_error.py +4 -4
  485. wandelbots_api_client/v2/models/validation_error2.py +3 -3
  486. wandelbots_api_client/v2/models/virtual_controller.py +6 -9
  487. wandelbots_api_client/v2/models/virtual_controller_types.py +3 -0
  488. wandelbots_api_client/v2/models/virtual_robot_configuration.py +2 -2
  489. wandelbots_api_client/v2/models/wait_for_io_event_request.py +2 -2
  490. wandelbots_api_client/v2/models/yaskawa_controller.py +4 -7
  491. wandelbots_api_client/v2_pydantic/__init__.py +51 -0
  492. wandelbots_api_client/v2_pydantic/api/__init__.py +49 -0
  493. wandelbots_api_client/v2_pydantic/api/application_api.py +1822 -0
  494. wandelbots_api_client/v2_pydantic/api/bus_inputs_outputs_api.py +4652 -0
  495. wandelbots_api_client/v2_pydantic/api/cell_api.py +2025 -0
  496. wandelbots_api_client/v2_pydantic/api/controller_api.py +3758 -0
  497. wandelbots_api_client/v2_pydantic/api/controller_inputs_outputs_api.py +1408 -0
  498. wandelbots_api_client/v2_pydantic/api/jogging_api.py +126 -0
  499. wandelbots_api_client/v2_pydantic/api/kinematics_api.py +649 -0
  500. wandelbots_api_client/v2_pydantic/api/license_api.py +1074 -0
  501. wandelbots_api_client/v2_pydantic/api/motion_group_api.py +740 -0
  502. wandelbots_api_client/v2_pydantic/api/motion_group_models_api.py +570 -0
  503. wandelbots_api_client/v2_pydantic/api/program_api.py +1200 -0
  504. wandelbots_api_client/v2_pydantic/api/store_collision_components_api.py +4216 -0
  505. wandelbots_api_client/v2_pydantic/api/store_collision_setups_api.py +1435 -0
  506. wandelbots_api_client/v2_pydantic/api/store_object_api.py +1738 -0
  507. wandelbots_api_client/v2_pydantic/api/system_api.py +2454 -0
  508. wandelbots_api_client/v2_pydantic/api/trajectory_caching_api.py +1524 -0
  509. wandelbots_api_client/v2_pydantic/api/trajectory_execution_api.py +126 -0
  510. wandelbots_api_client/v2_pydantic/api/trajectory_planning_api.py +649 -0
  511. wandelbots_api_client/v2_pydantic/api/virtual_controller_api.py +4656 -0
  512. wandelbots_api_client/v2_pydantic/api/virtual_controller_behavior_api.py +1001 -0
  513. wandelbots_api_client/v2_pydantic/api/virtual_controller_inputs_outputs_api.py +1022 -0
  514. wandelbots_api_client/v2_pydantic/api_client.py +810 -0
  515. wandelbots_api_client/v2_pydantic/api_response.py +21 -0
  516. wandelbots_api_client/v2_pydantic/configuration.py +595 -0
  517. wandelbots_api_client/v2_pydantic/exceptions.py +216 -0
  518. wandelbots_api_client/v2_pydantic/models.py +4547 -0
  519. wandelbots_api_client/v2_pydantic/py.typed +0 -0
  520. wandelbots_api_client/v2_pydantic/rest.py +212 -0
  521. {wandelbots_api_client-25.8.0.dev88.dist-info → wandelbots_api_client-25.10.0.dev47.dist-info}/METADATA +16 -15
  522. wandelbots_api_client-25.10.0.dev47.dist-info/RECORD +636 -0
  523. wandelbots_api_client-25.8.0.dev88.dist-info/RECORD +0 -597
  524. {wandelbots_api_client-25.8.0.dev88.dist-info → wandelbots_api_client-25.10.0.dev47.dist-info}/WHEEL +0 -0
  525. {wandelbots_api_client-25.8.0.dev88.dist-info → wandelbots_api_client-25.10.0.dev47.dist-info}/licenses/LICENSE +0 -0
  526. {wandelbots_api_client-25.8.0.dev88.dist-info → wandelbots_api_client-25.10.0.dev47.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,810 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Wandelbots NOVA API
5
+
6
+ Interact with robots in an easy and intuitive way. > **Note:** API version 2 is experimental and will experience functional changes.
7
+
8
+ The version of the OpenAPI document: 2.0.0 beta
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+
16
+ import datetime
17
+ from dateutil.parser import parse
18
+ from enum import Enum
19
+ import decimal
20
+ import json
21
+ import mimetypes
22
+ import os
23
+ import re
24
+ import tempfile
25
+ import uuid
26
+
27
+ from urllib.parse import quote
28
+ from typing import Tuple, Optional, List, Dict, Union
29
+ from pydantic import SecretStr
30
+
31
+ from wandelbots_api_client.v2_pydantic.configuration import Configuration
32
+ from wandelbots_api_client.v2_pydantic.api_response import ApiResponse, T as ApiResponseT
33
+ import wandelbots_api_client.v2_pydantic.models
34
+ from wandelbots_api_client.v2_pydantic import rest
35
+ from wandelbots_api_client.v2_pydantic.exceptions import (
36
+ ApiValueError,
37
+ ApiException,
38
+ BadRequestException,
39
+ UnauthorizedException,
40
+ ForbiddenException,
41
+ NotFoundException,
42
+ ServiceException
43
+ )
44
+
45
+ RequestSerialized = Tuple[str, str, Dict[str, str], Optional[str], List[str]]
46
+
47
+ class ApiClient:
48
+ """Generic API client for OpenAPI client library builds.
49
+
50
+ OpenAPI generic API client. This client handles the client-
51
+ server communication, and is invariant across implementations. Specifics of
52
+ the methods and models for each application are generated from the OpenAPI
53
+ templates.
54
+
55
+ :param configuration: .Configuration object for this client
56
+ :param header_name: a header to pass when making calls to the API.
57
+ :param header_value: a header value to pass when making calls to
58
+ the API.
59
+ :param cookie: a cookie to include in the header when making calls
60
+ to the API
61
+ """
62
+
63
+ PRIMITIVE_TYPES = (float, bool, bytes, str, int)
64
+ NATIVE_TYPES_MAPPING = {
65
+ 'int': int,
66
+ 'long': int, # TODO remove as only py3 is supported?
67
+ 'float': float,
68
+ 'str': str,
69
+ 'bool': bool,
70
+ 'date': datetime.date,
71
+ 'datetime': datetime.datetime,
72
+ 'decimal': decimal.Decimal,
73
+ 'object': object,
74
+ }
75
+ _pool = None
76
+
77
+ def __init__(
78
+ self,
79
+ configuration=None,
80
+ header_name=None,
81
+ header_value=None,
82
+ cookie=None
83
+ ) -> None:
84
+ # use default configuration if none is provided
85
+ if configuration is None:
86
+ configuration = Configuration.get_default()
87
+ self.configuration = configuration
88
+
89
+ self.rest_client = rest.RESTClientObject(configuration)
90
+ self.default_headers = {}
91
+ if header_name is not None:
92
+ self.default_headers[header_name] = header_value
93
+ self.cookie = cookie
94
+ # Set default User-Agent.
95
+ self.user_agent = 'Wandelbots-Nova-API-Python-Client/25.10.0.dev47'
96
+ self.client_side_validation = configuration.client_side_validation
97
+
98
+ async def __aenter__(self):
99
+ return self
100
+
101
+ async def __aexit__(self, exc_type, exc_value, traceback):
102
+ await self.close()
103
+
104
+ async def close(self):
105
+ await self.rest_client.close()
106
+
107
+ @property
108
+ def user_agent(self):
109
+ """User agent for this API client"""
110
+ return self.default_headers['User-Agent']
111
+
112
+ @user_agent.setter
113
+ def user_agent(self, value):
114
+ self.default_headers['User-Agent'] = value
115
+
116
+ def set_default_header(self, header_name, header_value):
117
+ self.default_headers[header_name] = header_value
118
+
119
+
120
+ _default = None
121
+
122
+ @classmethod
123
+ def get_default(cls):
124
+ """Return new instance of ApiClient.
125
+
126
+ This method returns newly created, based on default constructor,
127
+ object of ApiClient class or returns a copy of default
128
+ ApiClient.
129
+
130
+ :return: The ApiClient object.
131
+ """
132
+ if cls._default is None:
133
+ cls._default = ApiClient()
134
+ return cls._default
135
+
136
+ @classmethod
137
+ def set_default(cls, default):
138
+ """Set default instance of ApiClient.
139
+
140
+ It stores default ApiClient.
141
+
142
+ :param default: object of ApiClient.
143
+ """
144
+ cls._default = default
145
+
146
+ def param_serialize(
147
+ self,
148
+ method,
149
+ resource_path,
150
+ path_params=None,
151
+ query_params=None,
152
+ header_params=None,
153
+ body=None,
154
+ post_params=None,
155
+ files=None, auth_settings=None,
156
+ collection_formats=None,
157
+ _host=None,
158
+ _request_auth=None
159
+ ) -> RequestSerialized:
160
+
161
+ """Builds the HTTP request params needed by the request.
162
+ :param method: Method to call.
163
+ :param resource_path: Path to method endpoint.
164
+ :param path_params: Path parameters in the url.
165
+ :param query_params: Query parameters in the url.
166
+ :param header_params: Header parameters to be
167
+ placed in the request header.
168
+ :param body: Request body.
169
+ :param post_params dict: Request post form parameters,
170
+ for `application/x-www-form-urlencoded`, `multipart/form-data`.
171
+ :param auth_settings list: Auth Settings names for the request.
172
+ :param files dict: key -> filename, value -> filepath,
173
+ for `multipart/form-data`.
174
+ :param collection_formats: dict of collection formats for path, query,
175
+ header, and post parameters.
176
+ :param _request_auth: set to override the auth_settings for an a single
177
+ request; this effectively ignores the authentication
178
+ in the spec for a single request.
179
+ :return: tuple of form (path, http_method, query_params, header_params,
180
+ body, post_params, files)
181
+ """
182
+
183
+ config = self.configuration
184
+
185
+ # header parameters
186
+ header_params = header_params or {}
187
+ header_params.update(self.default_headers)
188
+ if self.cookie:
189
+ header_params['Cookie'] = self.cookie
190
+ if header_params:
191
+ header_params = self.sanitize_for_serialization(header_params)
192
+ header_params = dict(
193
+ self.parameters_to_tuples(header_params,collection_formats)
194
+ )
195
+
196
+ # path parameters
197
+ if path_params:
198
+ path_params = self.sanitize_for_serialization(path_params)
199
+ path_params = self.parameters_to_tuples(
200
+ path_params,
201
+ collection_formats
202
+ )
203
+ for k, v in path_params:
204
+ # specified safe chars, encode everything
205
+ resource_path = resource_path.replace(
206
+ '{%s}' % k,
207
+ quote(str(v), safe=config.safe_chars_for_path_param)
208
+ )
209
+
210
+ # post parameters
211
+ if post_params or files:
212
+ post_params = post_params if post_params else []
213
+ post_params = self.sanitize_for_serialization(post_params)
214
+ post_params = self.parameters_to_tuples(
215
+ post_params,
216
+ collection_formats
217
+ )
218
+ if files:
219
+ post_params.extend(self.files_parameters(files))
220
+
221
+ # auth setting
222
+ self.update_params_for_auth(
223
+ header_params,
224
+ query_params,
225
+ auth_settings,
226
+ resource_path,
227
+ method,
228
+ body,
229
+ request_auth=_request_auth
230
+ )
231
+
232
+ # body
233
+ if body:
234
+ body = self.sanitize_for_serialization(body)
235
+
236
+ # request url
237
+ if _host is None or self.configuration.ignore_operation_servers:
238
+ url = self.configuration.host + resource_path
239
+ else:
240
+ # use server/host defined in path or operation instead
241
+ url = _host + resource_path
242
+
243
+ # query parameters
244
+ if query_params:
245
+ query_params = self.sanitize_for_serialization(query_params)
246
+ url_query = self.parameters_to_url_query(
247
+ query_params,
248
+ collection_formats
249
+ )
250
+ url += "?" + url_query
251
+
252
+ return method, url, header_params, body, post_params
253
+
254
+
255
+ async def call_api(
256
+ self,
257
+ method,
258
+ url,
259
+ header_params=None,
260
+ body=None,
261
+ post_params=None,
262
+ _request_timeout=None
263
+ ) -> rest.RESTResponse:
264
+ """Makes the HTTP request (synchronous)
265
+ :param method: Method to call.
266
+ :param url: Path to method endpoint.
267
+ :param header_params: Header parameters to be
268
+ placed in the request header.
269
+ :param body: Request body.
270
+ :param post_params dict: Request post form parameters,
271
+ for `application/x-www-form-urlencoded`, `multipart/form-data`.
272
+ :param _request_timeout: timeout setting for this request.
273
+ :return: RESTResponse
274
+ """
275
+
276
+ try:
277
+ # perform request and return response
278
+ response_data = await self.rest_client.request(
279
+ method, url,
280
+ headers=header_params,
281
+ body=body, post_params=post_params,
282
+ _request_timeout=_request_timeout
283
+ )
284
+
285
+ except ApiException as e:
286
+ raise e
287
+
288
+ return response_data
289
+
290
+ def response_deserialize(
291
+ self,
292
+ response_data: rest.RESTResponse,
293
+ response_types_map: Optional[Dict[str, ApiResponseT]]=None
294
+ ) -> ApiResponse[ApiResponseT]:
295
+ """Deserializes response into an object.
296
+ :param response_data: RESTResponse object to be deserialized.
297
+ :param response_types_map: dict of response types.
298
+ :return: ApiResponse
299
+ """
300
+
301
+ msg = "RESTResponse.read() must be called before passing it to response_deserialize()"
302
+ assert response_data.data is not None, msg
303
+
304
+ response_type = response_types_map.get(str(response_data.status), None)
305
+ if not response_type and isinstance(response_data.status, int) and 100 <= response_data.status <= 599:
306
+ # if not found, look for '1XX', '2XX', etc.
307
+ response_type = response_types_map.get(str(response_data.status)[0] + "XX", None)
308
+
309
+ # deserialize response data
310
+ response_text = None
311
+ return_data = None
312
+ try:
313
+ if response_type == "bytearray":
314
+ return_data = response_data.data
315
+ elif response_type == "file":
316
+ return_data = self.__deserialize_file(response_data)
317
+ elif response_type is not None:
318
+ match = None
319
+ content_type = response_data.getheader('content-type')
320
+ if content_type is not None:
321
+ match = re.search(r"charset=([a-zA-Z\-\d]+)[\s;]?", content_type)
322
+ encoding = match.group(1) if match else "utf-8"
323
+ response_text = response_data.data.decode(encoding)
324
+ return_data = self.deserialize(response_text, response_type, content_type)
325
+ finally:
326
+ if not 200 <= response_data.status <= 299:
327
+ raise ApiException.from_response(
328
+ http_resp=response_data,
329
+ body=response_text,
330
+ data=return_data,
331
+ )
332
+
333
+ return ApiResponse(
334
+ status_code = response_data.status,
335
+ data = return_data,
336
+ headers = response_data.getheaders(),
337
+ raw_data = response_data.data
338
+ )
339
+
340
+ def sanitize_for_serialization(self, obj):
341
+ """Builds a JSON POST object.
342
+
343
+ If obj is None, return None.
344
+ If obj is SecretStr, return obj.get_secret_value()
345
+ If obj is str, int, long, float, bool, return directly.
346
+ If obj is datetime.datetime, datetime.date
347
+ convert to string in iso8601 format.
348
+ If obj is decimal.Decimal return string representation.
349
+ If obj is list, sanitize each element in the list.
350
+ If obj is dict, return the dict.
351
+ If obj is OpenAPI model, return the properties dict.
352
+
353
+ :param obj: The data to serialize.
354
+ :return: The serialized form of data.
355
+ """
356
+ if obj is None:
357
+ return None
358
+ elif isinstance(obj, Enum):
359
+ return obj.value
360
+ elif isinstance(obj, SecretStr):
361
+ return obj.get_secret_value()
362
+ elif isinstance(obj, self.PRIMITIVE_TYPES):
363
+ return obj
364
+ elif isinstance(obj, uuid.UUID):
365
+ return str(obj)
366
+ elif isinstance(obj, list):
367
+ return [
368
+ self.sanitize_for_serialization(sub_obj) for sub_obj in obj
369
+ ]
370
+ elif isinstance(obj, tuple):
371
+ return tuple(
372
+ self.sanitize_for_serialization(sub_obj) for sub_obj in obj
373
+ )
374
+ elif isinstance(obj, (datetime.datetime, datetime.date)):
375
+ return obj.isoformat()
376
+ elif isinstance(obj, decimal.Decimal):
377
+ return str(obj)
378
+
379
+ elif isinstance(obj, dict):
380
+ obj_dict = obj
381
+ else:
382
+ # Convert model obj to dict except
383
+ # attributes `openapi_types`, `attribute_map`
384
+ # and attributes which value is not None.
385
+ # Convert attribute name to json key in
386
+ # model definition for request.
387
+ # if hasattr(obj, 'to_dict') and callable(getattr(obj, 'to_dict')):
388
+ # obj_dict = obj.to_dict()
389
+ if hasattr(obj, 'model_dump') and callable(getattr(obj, 'model_dump')):
390
+ obj_dict = obj.model_dump(exclude_none=True)
391
+ else:
392
+ obj_dict = obj.__dict__
393
+
394
+ if isinstance(obj_dict, list):
395
+ # here we handle instances that can either be a list or something else, and only became a real list by calling to_dict()
396
+ return self.sanitize_for_serialization(obj_dict)
397
+
398
+ return {
399
+ key: self.sanitize_for_serialization(val)
400
+ for key, val in obj_dict.items()
401
+ }
402
+
403
+ def deserialize(self, response_text: str, response_type: str, content_type: Optional[str]):
404
+ """Deserializes response into an object.
405
+
406
+ :param response: RESTResponse object to be deserialized.
407
+ :param response_type: class literal for
408
+ deserialized object, or string of class name.
409
+ :param content_type: content type of response.
410
+
411
+ :return: deserialized object.
412
+ """
413
+
414
+ # fetch data from response object
415
+ if content_type is None:
416
+ try:
417
+ data = json.loads(response_text)
418
+ except ValueError:
419
+ data = response_text
420
+ elif re.match(r'^application/(json|[\w!#$&.+\-^_]+\+json)\s*(;|$)', content_type, re.IGNORECASE):
421
+ if response_text == "":
422
+ data = ""
423
+ else:
424
+ data = json.loads(response_text)
425
+ elif re.match(r'^text\/[a-z.+-]+\s*(;|$)', content_type, re.IGNORECASE):
426
+ data = response_text
427
+ else:
428
+ raise ApiException(
429
+ status=0,
430
+ reason="Unsupported content type: {0}".format(content_type)
431
+ )
432
+
433
+ return self.__deserialize(data, response_type)
434
+
435
+ def __deserialize(self, data, klass):
436
+ """Deserializes dict, list, str into an object.
437
+
438
+ :param data: dict, list or str.
439
+ :param klass: class literal, or string of class name.
440
+
441
+ :return: object.
442
+ """
443
+ if data is None:
444
+ return None
445
+
446
+ if isinstance(klass, str):
447
+ if klass.startswith('List['):
448
+ m = re.match(r'List\[(.*)]', klass)
449
+ assert m is not None, "Malformed List type definition"
450
+ sub_kls = m.group(1)
451
+ return [self.__deserialize(sub_data, sub_kls)
452
+ for sub_data in data]
453
+
454
+ if klass.startswith('Dict['):
455
+ m = re.match(r'Dict\[([^,]*), (.*)]', klass)
456
+ assert m is not None, "Malformed Dict type definition"
457
+ sub_kls = m.group(2)
458
+ return {k: self.__deserialize(v, sub_kls)
459
+ for k, v in data.items()}
460
+
461
+ # convert str to class
462
+ if klass in self.NATIVE_TYPES_MAPPING:
463
+ klass = self.NATIVE_TYPES_MAPPING[klass]
464
+ else:
465
+ klass = getattr(wandelbots_api_client.v2_pydantic.models, klass)
466
+
467
+ if klass in self.PRIMITIVE_TYPES:
468
+ return self.__deserialize_primitive(data, klass)
469
+ elif klass == object:
470
+ return self.__deserialize_object(data)
471
+ elif klass == datetime.date:
472
+ return self.__deserialize_date(data)
473
+ elif klass == datetime.datetime:
474
+ return self.__deserialize_datetime(data)
475
+ elif klass == decimal.Decimal:
476
+ return decimal.Decimal(data)
477
+ elif issubclass(klass, Enum):
478
+ return self.__deserialize_enum(data, klass)
479
+ else:
480
+ return self.__deserialize_model(data, klass)
481
+
482
+ def parameters_to_tuples(self, params, collection_formats):
483
+ """Get parameters as list of tuples, formatting collections.
484
+
485
+ :param params: Parameters as dict or list of two-tuples
486
+ :param dict collection_formats: Parameter collection formats
487
+ :return: Parameters as list of tuples, collections formatted
488
+ """
489
+ new_params: List[Tuple[str, str]] = []
490
+ if collection_formats is None:
491
+ collection_formats = {}
492
+ for k, v in params.items() if isinstance(params, dict) else params:
493
+ if k in collection_formats:
494
+ collection_format = collection_formats[k]
495
+ if collection_format == 'multi':
496
+ new_params.extend((k, value) for value in v)
497
+ else:
498
+ if collection_format == 'ssv':
499
+ delimiter = ' '
500
+ elif collection_format == 'tsv':
501
+ delimiter = '\t'
502
+ elif collection_format == 'pipes':
503
+ delimiter = '|'
504
+ else: # csv is the default
505
+ delimiter = ','
506
+ new_params.append(
507
+ (k, delimiter.join(str(value) for value in v)))
508
+ else:
509
+ new_params.append((k, v))
510
+ return new_params
511
+
512
+ def parameters_to_url_query(self, params, collection_formats):
513
+ """Get parameters as list of tuples, formatting collections.
514
+
515
+ :param params: Parameters as dict or list of two-tuples
516
+ :param dict collection_formats: Parameter collection formats
517
+ :return: URL query string (e.g. a=Hello%20World&b=123)
518
+ """
519
+ new_params: List[Tuple[str, str]] = []
520
+ if collection_formats is None:
521
+ collection_formats = {}
522
+ for k, v in params.items() if isinstance(params, dict) else params:
523
+ if isinstance(v, bool):
524
+ v = str(v).lower()
525
+ if isinstance(v, (int, float)):
526
+ v = str(v)
527
+ if isinstance(v, dict):
528
+ v = json.dumps(v)
529
+
530
+ if k in collection_formats:
531
+ collection_format = collection_formats[k]
532
+ if collection_format == 'multi':
533
+ new_params.extend((k, quote(str(value))) for value in v)
534
+ else:
535
+ if collection_format == 'ssv':
536
+ delimiter = ' '
537
+ elif collection_format == 'tsv':
538
+ delimiter = '\t'
539
+ elif collection_format == 'pipes':
540
+ delimiter = '|'
541
+ else: # csv is the default
542
+ delimiter = ','
543
+ new_params.append(
544
+ (k, delimiter.join(quote(str(value)) for value in v))
545
+ )
546
+ else:
547
+ new_params.append((k, quote(str(v))))
548
+
549
+ return "&".join(["=".join(map(str, item)) for item in new_params])
550
+
551
+ def files_parameters(
552
+ self,
553
+ files: Dict[str, Union[str, bytes, List[str], List[bytes], Tuple[str, bytes]]],
554
+ ):
555
+ """Builds form parameters.
556
+
557
+ :param files: File parameters.
558
+ :return: Form parameters with files.
559
+ """
560
+ params = []
561
+ for k, v in files.items():
562
+ if isinstance(v, str):
563
+ with open(v, 'rb') as f:
564
+ filename = os.path.basename(f.name)
565
+ filedata = f.read()
566
+ elif isinstance(v, bytes):
567
+ filename = k
568
+ filedata = v
569
+ elif isinstance(v, tuple):
570
+ filename, filedata = v
571
+ elif isinstance(v, list):
572
+ for file_param in v:
573
+ params.extend(self.files_parameters({k: file_param}))
574
+ continue
575
+ else:
576
+ raise ValueError("Unsupported file value")
577
+ mimetype = (
578
+ mimetypes.guess_type(filename)[0]
579
+ or 'application/octet-stream'
580
+ )
581
+ params.append(
582
+ tuple([k, tuple([filename, filedata, mimetype])])
583
+ )
584
+ return params
585
+
586
+ def select_header_accept(self, accepts: List[str]) -> Optional[str]:
587
+ """Returns `Accept` based on an array of accepts provided.
588
+
589
+ :param accepts: List of headers.
590
+ :return: Accept (e.g. application/json).
591
+ """
592
+ if not accepts:
593
+ return None
594
+
595
+ for accept in accepts:
596
+ if re.search('json', accept, re.IGNORECASE):
597
+ return accept
598
+
599
+ return accepts[0]
600
+
601
+ def select_header_content_type(self, content_types):
602
+ """Returns `Content-Type` based on an array of content_types provided.
603
+
604
+ :param content_types: List of content-types.
605
+ :return: Content-Type (e.g. application/json).
606
+ """
607
+ if not content_types:
608
+ return None
609
+
610
+ for content_type in content_types:
611
+ if re.search('json', content_type, re.IGNORECASE):
612
+ return content_type
613
+
614
+ return content_types[0]
615
+
616
+ def update_params_for_auth(
617
+ self,
618
+ headers,
619
+ queries,
620
+ auth_settings,
621
+ resource_path,
622
+ method,
623
+ body,
624
+ request_auth=None
625
+ ) -> None:
626
+ """Updates header and query params based on authentication setting.
627
+
628
+ :param headers: Header parameters dict to be updated.
629
+ :param queries: Query parameters tuple list to be updated.
630
+ :param auth_settings: Authentication setting identifiers list.
631
+ :resource_path: A string representation of the HTTP request resource path.
632
+ :method: A string representation of the HTTP request method.
633
+ :body: A object representing the body of the HTTP request.
634
+ The object type is the return value of sanitize_for_serialization().
635
+ :param request_auth: if set, the provided settings will
636
+ override the token in the configuration.
637
+ """
638
+ if not auth_settings:
639
+ return
640
+
641
+ if request_auth:
642
+ self._apply_auth_params(
643
+ headers,
644
+ queries,
645
+ resource_path,
646
+ method,
647
+ body,
648
+ request_auth
649
+ )
650
+ else:
651
+ for auth in auth_settings:
652
+ auth_setting = self.configuration.auth_settings().get(auth)
653
+ if auth_setting:
654
+ self._apply_auth_params(
655
+ headers,
656
+ queries,
657
+ resource_path,
658
+ method,
659
+ body,
660
+ auth_setting
661
+ )
662
+
663
+ def _apply_auth_params(
664
+ self,
665
+ headers,
666
+ queries,
667
+ resource_path,
668
+ method,
669
+ body,
670
+ auth_setting
671
+ ) -> None:
672
+ """Updates the request parameters based on a single auth_setting
673
+
674
+ :param headers: Header parameters dict to be updated.
675
+ :param queries: Query parameters tuple list to be updated.
676
+ :resource_path: A string representation of the HTTP request resource path.
677
+ :method: A string representation of the HTTP request method.
678
+ :body: A object representing the body of the HTTP request.
679
+ The object type is the return value of sanitize_for_serialization().
680
+ :param auth_setting: auth settings for the endpoint
681
+ """
682
+ if auth_setting['in'] == 'cookie':
683
+ headers['Cookie'] = auth_setting['value']
684
+ elif auth_setting['in'] == 'header':
685
+ if auth_setting['type'] != 'http-signature':
686
+ headers[auth_setting['key']] = auth_setting['value']
687
+ elif auth_setting['in'] == 'query':
688
+ queries.append((auth_setting['key'], auth_setting['value']))
689
+ else:
690
+ raise ApiValueError(
691
+ 'Authentication token must be in `query` or `header`'
692
+ )
693
+
694
+ def __deserialize_file(self, response):
695
+ """Deserializes body to file
696
+
697
+ Saves response body into a file in a temporary folder,
698
+ using the filename from the `Content-Disposition` header if provided.
699
+
700
+ handle file downloading
701
+ save response body into a tmp file and return the instance
702
+
703
+ :param response: RESTResponse.
704
+ :return: file path.
705
+ """
706
+ fd, path = tempfile.mkstemp(dir=self.configuration.temp_folder_path)
707
+ os.close(fd)
708
+ os.remove(path)
709
+
710
+ content_disposition = response.getheader("Content-Disposition")
711
+ if content_disposition:
712
+ m = re.search(
713
+ r'filename=[\'"]?([^\'"\s]+)[\'"]?',
714
+ content_disposition
715
+ )
716
+ assert m is not None, "Unexpected 'content-disposition' header value"
717
+ filename = m.group(1)
718
+ path = os.path.join(os.path.dirname(path), filename)
719
+
720
+ with open(path, "wb") as f:
721
+ f.write(response.data)
722
+
723
+ return path
724
+
725
+ def __deserialize_primitive(self, data, klass):
726
+ """Deserializes string to primitive type.
727
+
728
+ :param data: str.
729
+ :param klass: class literal.
730
+
731
+ :return: int, long, float, str, bool.
732
+ """
733
+ try:
734
+ return klass(data)
735
+ except UnicodeEncodeError:
736
+ return str(data)
737
+ except TypeError:
738
+ return data
739
+
740
+ def __deserialize_object(self, value):
741
+ """Return an original value.
742
+
743
+ :return: object.
744
+ """
745
+ return value
746
+
747
+ def __deserialize_date(self, string):
748
+ """Deserializes string to date.
749
+
750
+ :param string: str.
751
+ :return: date.
752
+ """
753
+ try:
754
+ return parse(string).date()
755
+ except ImportError:
756
+ return string
757
+ except ValueError:
758
+ raise rest.ApiException(
759
+ status=0,
760
+ reason="Failed to parse `{0}` as date object".format(string)
761
+ )
762
+
763
+ def __deserialize_datetime(self, string):
764
+ """Deserializes string to datetime.
765
+
766
+ The string should be in iso8601 datetime format.
767
+
768
+ :param string: str.
769
+ :return: datetime.
770
+ """
771
+ try:
772
+ return parse(string)
773
+ except ImportError:
774
+ return string
775
+ except ValueError:
776
+ raise rest.ApiException(
777
+ status=0,
778
+ reason=(
779
+ "Failed to parse `{0}` as datetime object"
780
+ .format(string)
781
+ )
782
+ )
783
+
784
+ def __deserialize_enum(self, data, klass):
785
+ """Deserializes primitive type to enum.
786
+
787
+ :param data: primitive type.
788
+ :param klass: class literal.
789
+ :return: enum value.
790
+ """
791
+ try:
792
+ return klass(data)
793
+ except ValueError:
794
+ raise rest.ApiException(
795
+ status=0,
796
+ reason=(
797
+ "Failed to parse `{0}` as `{1}`"
798
+ .format(data, klass)
799
+ )
800
+ )
801
+
802
+ def __deserialize_model(self, data, klass):
803
+ """Deserializes list or dict to model.
804
+
805
+ :param data: dict, list.
806
+ :param klass: class literal.
807
+ :return: model object.
808
+ """
809
+
810
+ return klass.model_validate(data)