windmill-api 1.435.0__py3-none-any.whl → 1.450.1__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.

Potentially problematic release.


This version of windmill-api might be problematic. Click here for more details.

Files changed (275) hide show
  1. windmill_api/api/app/get_app_lite_by_path.py +166 -0
  2. windmill_api/api/capture/{get_capture.py → delete_capture.py} +12 -14
  3. windmill_api/api/capture/get_capture_configs.py +186 -0
  4. windmill_api/api/capture/list_captures.py +241 -0
  5. windmill_api/api/capture/ping_capture_config.py +121 -0
  6. windmill_api/api/capture/set_capture_config.py +107 -0
  7. windmill_api/api/input_/get_input_history.py +15 -0
  8. windmill_api/api/job/get_slack_approval_payload.py +171 -0
  9. windmill_api/api/nats_trigger/__init__.py +0 -0
  10. windmill_api/api/nats_trigger/create_nats_trigger.py +105 -0
  11. windmill_api/api/{capture/create_capture.py → nats_trigger/delete_nats_trigger.py} +4 -6
  12. windmill_api/api/nats_trigger/exists_nats_trigger.py +160 -0
  13. windmill_api/api/nats_trigger/get_nats_trigger.py +166 -0
  14. windmill_api/api/nats_trigger/list_nats_triggers.py +237 -0
  15. windmill_api/api/nats_trigger/set_nats_trigger_enabled.py +113 -0
  16. windmill_api/api/nats_trigger/update_nats_trigger.py +113 -0
  17. windmill_api/api/postgres_trigger/__init__.py +0 -0
  18. windmill_api/api/postgres_trigger/create_postgres_publication.py +121 -0
  19. windmill_api/api/postgres_trigger/create_postgres_replication_slot.py +113 -0
  20. windmill_api/api/postgres_trigger/create_postgres_trigger.py +105 -0
  21. windmill_api/api/postgres_trigger/create_template_script.py +105 -0
  22. windmill_api/api/postgres_trigger/delete_postgres_publication.py +109 -0
  23. windmill_api/api/postgres_trigger/delete_postgres_replication_slot.py +113 -0
  24. windmill_api/api/{capture/update_capture.py → postgres_trigger/delete_postgres_trigger.py} +4 -6
  25. windmill_api/api/postgres_trigger/exists_postgres_trigger.py +160 -0
  26. windmill_api/api/postgres_trigger/get_postgres_publication.py +180 -0
  27. windmill_api/api/postgres_trigger/get_postgres_trigger.py +166 -0
  28. windmill_api/api/postgres_trigger/get_template_script.py +101 -0
  29. windmill_api/api/postgres_trigger/is_valid_postgres_configuration.py +160 -0
  30. windmill_api/api/postgres_trigger/list_postgres_publication.py +161 -0
  31. windmill_api/api/postgres_trigger/list_postgres_replication_slot.py +171 -0
  32. windmill_api/api/postgres_trigger/list_postgres_triggers.py +237 -0
  33. windmill_api/api/postgres_trigger/set_postgres_trigger_enabled.py +113 -0
  34. windmill_api/api/postgres_trigger/update_postgres_publication.py +121 -0
  35. windmill_api/api/postgres_trigger/update_postgres_trigger.py +113 -0
  36. windmill_api/api/teams/__init__.py +0 -0
  37. windmill_api/api/teams/sync_teams.py +131 -0
  38. windmill_api/api/user/refresh_user_token.py +25 -4
  39. windmill_api/api/worker/get_custom_tags.py +50 -4
  40. windmill_api/api/workspace/change_workspace_color.py +105 -0
  41. windmill_api/api/workspace/get_threshold_alert.py +152 -0
  42. windmill_api/api/workspace/set_threshold_alert.py +105 -0
  43. windmill_api/api/workspace/update_operator_settings.py +109 -0
  44. windmill_api/models/add_granular_acls_kind.py +2 -0
  45. windmill_api/models/app_with_last_version.py +11 -1
  46. windmill_api/models/app_with_last_version_w_draft.py +8 -8
  47. windmill_api/models/archive_script_by_hash_response_200.py +8 -0
  48. windmill_api/models/archive_script_by_hash_response_200_kind.py +1 -0
  49. windmill_api/models/archive_script_by_hash_response_200_language.py +2 -0
  50. windmill_api/models/capture.py +94 -0
  51. windmill_api/models/capture_config.py +95 -0
  52. windmill_api/models/capture_config_trigger_kind.py +13 -0
  53. windmill_api/models/capture_trigger_kind.py +13 -0
  54. windmill_api/models/change_workspace_color_json_body.py +58 -0
  55. windmill_api/models/channel_info.py +80 -0
  56. windmill_api/models/completed_job_job_kind.py +2 -0
  57. windmill_api/models/completed_job_language.py +2 -0
  58. windmill_api/models/create_nats_trigger_json_body.py +120 -0
  59. windmill_api/models/create_postgres_publication_json_body.py +90 -0
  60. windmill_api/models/create_postgres_publication_json_body_table_to_track_item.py +86 -0
  61. windmill_api/models/create_postgres_publication_json_body_table_to_track_item_table_to_track_item.py +79 -0
  62. windmill_api/models/create_postgres_replication_slot_json_body.py +58 -0
  63. windmill_api/models/create_postgres_trigger_json_body.py +125 -0
  64. windmill_api/models/create_postgres_trigger_json_body_publication.py +92 -0
  65. windmill_api/models/create_postgres_trigger_json_body_publication_table_to_track_item.py +86 -0
  66. windmill_api/models/create_postgres_trigger_json_body_publication_table_to_track_item_table_to_track_item.py +79 -0
  67. windmill_api/models/create_script_json_body.py +8 -0
  68. windmill_api/models/create_script_json_body_kind.py +1 -0
  69. windmill_api/models/create_script_json_body_language.py +2 -0
  70. windmill_api/models/create_template_script_json_body.py +90 -0
  71. windmill_api/models/create_template_script_json_body_language.py +8 -0
  72. windmill_api/models/create_template_script_json_body_relations_item.py +86 -0
  73. windmill_api/models/create_template_script_json_body_relations_item_table_to_track_item.py +79 -0
  74. windmill_api/models/create_websocket_trigger_json_body.py +42 -29
  75. windmill_api/models/create_workspace.py +8 -0
  76. windmill_api/models/create_workspace_json_body.py +8 -0
  77. windmill_api/models/delete_completed_job_response_200_job_kind.py +2 -0
  78. windmill_api/models/delete_completed_job_response_200_language.py +2 -0
  79. windmill_api/models/delete_postgres_replication_slot_json_body.py +58 -0
  80. windmill_api/models/delete_script_by_hash_response_200.py +8 -0
  81. windmill_api/models/delete_script_by_hash_response_200_kind.py +1 -0
  82. windmill_api/models/delete_script_by_hash_response_200_language.py +2 -0
  83. windmill_api/models/edit_nats_trigger.py +112 -0
  84. windmill_api/models/edit_postgres_trigger.py +123 -0
  85. windmill_api/models/edit_postgres_trigger_publication.py +90 -0
  86. windmill_api/models/edit_postgres_trigger_publication_table_to_track_item.py +86 -0
  87. windmill_api/models/edit_postgres_trigger_publication_table_to_track_item_table_to_track_item.py +79 -0
  88. windmill_api/models/edit_websocket_trigger.py +35 -21
  89. windmill_api/models/execute_component_json_body.py +16 -0
  90. windmill_api/models/extended_jobs_jobs_item_type_0_job_kind.py +2 -0
  91. windmill_api/models/extended_jobs_jobs_item_type_0_language.py +2 -0
  92. windmill_api/models/extended_jobs_jobs_item_type_1_job_kind.py +2 -0
  93. windmill_api/models/extended_jobs_jobs_item_type_1_language.py +2 -0
  94. windmill_api/models/flow_metadata.py +8 -0
  95. windmill_api/models/flow_module_value_2_type_0_language.py +1 -0
  96. windmill_api/models/get_app_by_path_response_200.py +11 -1
  97. windmill_api/models/get_app_by_path_with_draft_response_200.py +8 -8
  98. windmill_api/models/get_app_by_version_response_200.py +11 -1
  99. windmill_api/models/get_app_lite_by_path_response_200.py +157 -0
  100. windmill_api/models/get_app_lite_by_path_response_200_execution_mode.py +10 -0
  101. windmill_api/models/get_app_lite_by_path_response_200_extra_perms.py +44 -0
  102. windmill_api/models/get_app_lite_by_path_response_200_policy.py +159 -0
  103. windmill_api/models/get_app_lite_by_path_response_200_policy_execution_mode.py +10 -0
  104. windmill_api/models/get_app_lite_by_path_response_200_policy_s3_inputs_item.py +44 -0
  105. windmill_api/models/get_app_lite_by_path_response_200_policy_triggerables.py +66 -0
  106. windmill_api/models/get_app_lite_by_path_response_200_policy_triggerables_additional_property.py +44 -0
  107. windmill_api/models/get_app_lite_by_path_response_200_policy_triggerables_v2.py +66 -0
  108. windmill_api/models/get_app_lite_by_path_response_200_policy_triggerables_v2_additional_property.py +44 -0
  109. windmill_api/models/get_app_lite_by_path_response_200_value.py +44 -0
  110. windmill_api/models/get_capture_configs_response_200_item.py +95 -0
  111. windmill_api/models/get_capture_configs_response_200_item_trigger_kind.py +13 -0
  112. windmill_api/models/get_capture_configs_runnable_kind.py +9 -0
  113. windmill_api/models/get_completed_job_response_200_job_kind.py +2 -0
  114. windmill_api/models/get_completed_job_response_200_language.py +2 -0
  115. windmill_api/models/get_flow_by_path_response_200.py +8 -0
  116. windmill_api/models/get_flow_by_path_with_draft_response_200_draft.py +8 -0
  117. windmill_api/models/get_flow_version_response_200.py +8 -0
  118. windmill_api/models/get_granular_acls_kind.py +2 -0
  119. windmill_api/models/get_http_trigger_response_200.py +36 -36
  120. windmill_api/models/get_job_response_200_type_0_job_kind.py +2 -0
  121. windmill_api/models/get_job_response_200_type_0_language.py +2 -0
  122. windmill_api/models/get_job_response_200_type_1_job_kind.py +2 -0
  123. windmill_api/models/get_job_response_200_type_1_language.py +2 -0
  124. windmill_api/models/get_nats_trigger_response_200.py +196 -0
  125. windmill_api/models/get_nats_trigger_response_200_extra_perms.py +44 -0
  126. windmill_api/models/get_postgres_publication_response_200.py +90 -0
  127. windmill_api/models/get_postgres_publication_response_200_table_to_track_item.py +86 -0
  128. windmill_api/models/get_postgres_publication_response_200_table_to_track_item_table_to_track_item.py +79 -0
  129. windmill_api/models/get_postgres_trigger_response_200.py +178 -0
  130. windmill_api/models/get_postgres_trigger_response_200_extra_perms.py +44 -0
  131. windmill_api/models/get_premium_info_response_200.py +7 -0
  132. windmill_api/models/get_public_app_by_custom_path_response_200.py +11 -1
  133. windmill_api/models/get_public_app_by_secret_response_200.py +11 -1
  134. windmill_api/models/get_script_by_hash_response_200.py +8 -0
  135. windmill_api/models/get_script_by_hash_response_200_kind.py +1 -0
  136. windmill_api/models/get_script_by_hash_response_200_language.py +2 -0
  137. windmill_api/models/get_script_by_path_response_200.py +8 -0
  138. windmill_api/models/get_script_by_path_response_200_kind.py +1 -0
  139. windmill_api/models/get_script_by_path_response_200_language.py +2 -0
  140. windmill_api/models/get_script_by_path_with_draft_response_200.py +8 -0
  141. windmill_api/models/get_script_by_path_with_draft_response_200_draft.py +8 -0
  142. windmill_api/models/get_script_by_path_with_draft_response_200_draft_kind.py +1 -0
  143. windmill_api/models/get_script_by_path_with_draft_response_200_draft_language.py +2 -0
  144. windmill_api/models/get_script_by_path_with_draft_response_200_kind.py +1 -0
  145. windmill_api/models/get_script_by_path_with_draft_response_200_language.py +2 -0
  146. windmill_api/models/get_settings_response_200.py +27 -0
  147. windmill_api/models/get_settings_response_200_operator_settings.py +114 -0
  148. windmill_api/models/get_suspended_job_flow_response_200_job_type_0_job_kind.py +2 -0
  149. windmill_api/models/get_suspended_job_flow_response_200_job_type_0_language.py +2 -0
  150. windmill_api/models/get_suspended_job_flow_response_200_job_type_1_job_kind.py +2 -0
  151. windmill_api/models/get_suspended_job_flow_response_200_job_type_1_language.py +2 -0
  152. windmill_api/models/get_threshold_alert_response_200.py +75 -0
  153. windmill_api/models/get_triggers_count_of_flow_response_200.py +16 -0
  154. windmill_api/models/get_triggers_count_of_script_response_200.py +16 -0
  155. windmill_api/models/get_used_triggers_response_200.py +14 -0
  156. windmill_api/models/get_user_response_200.py +8 -0
  157. windmill_api/models/get_websocket_trigger_response_200.py +89 -76
  158. windmill_api/models/http_trigger.py +36 -36
  159. windmill_api/models/job_type_0_job_kind.py +2 -0
  160. windmill_api/models/job_type_0_language.py +2 -0
  161. windmill_api/models/job_type_1_job_kind.py +2 -0
  162. windmill_api/models/job_type_1_language.py +2 -0
  163. windmill_api/models/language.py +8 -0
  164. windmill_api/models/list_captures_response_200_item.py +94 -0
  165. windmill_api/models/list_captures_response_200_item_trigger_kind.py +13 -0
  166. windmill_api/models/list_captures_runnable_kind.py +9 -0
  167. windmill_api/models/list_captures_trigger_kind.py +13 -0
  168. windmill_api/models/list_completed_jobs_response_200_item_job_kind.py +2 -0
  169. windmill_api/models/list_completed_jobs_response_200_item_language.py +2 -0
  170. windmill_api/models/list_extended_jobs_response_200_jobs_item_type_0_job_kind.py +2 -0
  171. windmill_api/models/list_extended_jobs_response_200_jobs_item_type_0_language.py +2 -0
  172. windmill_api/models/list_extended_jobs_response_200_jobs_item_type_1_job_kind.py +2 -0
  173. windmill_api/models/list_extended_jobs_response_200_jobs_item_type_1_language.py +2 -0
  174. windmill_api/models/list_http_triggers_response_200_item.py +36 -36
  175. windmill_api/models/list_jobs_response_200_item_type_0_job_kind.py +2 -0
  176. windmill_api/models/list_jobs_response_200_item_type_0_language.py +2 -0
  177. windmill_api/models/list_jobs_response_200_item_type_1_job_kind.py +2 -0
  178. windmill_api/models/list_jobs_response_200_item_type_1_language.py +2 -0
  179. windmill_api/models/list_nats_triggers_response_200_item.py +196 -0
  180. windmill_api/models/list_nats_triggers_response_200_item_extra_perms.py +44 -0
  181. windmill_api/models/list_postgres_replication_slot_response_200_item.py +66 -0
  182. windmill_api/models/list_postgres_triggers_response_200_item.py +182 -0
  183. windmill_api/models/list_postgres_triggers_response_200_item_extra_perms.py +44 -0
  184. windmill_api/models/list_queue_response_200_item_job_kind.py +2 -0
  185. windmill_api/models/list_queue_response_200_item_language.py +2 -0
  186. windmill_api/models/list_scripts_response_200_item.py +8 -0
  187. windmill_api/models/list_scripts_response_200_item_kind.py +1 -0
  188. windmill_api/models/list_scripts_response_200_item_language.py +2 -0
  189. windmill_api/models/list_user_workspaces_response_200_workspaces_item.py +39 -1
  190. windmill_api/models/list_user_workspaces_response_200_workspaces_item_operator_settings.py +114 -0
  191. windmill_api/models/list_users_response_200_item.py +8 -0
  192. windmill_api/models/list_websocket_triggers_response_200_item.py +89 -76
  193. windmill_api/models/list_workspaces_as_super_admin_response_200_item.py +8 -0
  194. windmill_api/models/list_workspaces_response_200_item.py +8 -0
  195. windmill_api/models/nats_trigger.py +196 -0
  196. windmill_api/models/nats_trigger_extra_perms.py +44 -0
  197. windmill_api/models/new_nats_trigger.py +120 -0
  198. windmill_api/models/new_postgres_trigger.py +125 -0
  199. windmill_api/models/new_postgres_trigger_publication.py +90 -0
  200. windmill_api/models/new_postgres_trigger_publication_table_to_track_item.py +86 -0
  201. windmill_api/models/new_postgres_trigger_publication_table_to_track_item_table_to_track_item.py +79 -0
  202. windmill_api/models/new_script.py +8 -0
  203. windmill_api/models/new_script_kind.py +1 -0
  204. windmill_api/models/new_script_language.py +2 -0
  205. windmill_api/models/new_script_with_draft.py +8 -0
  206. windmill_api/models/new_script_with_draft_draft.py +8 -0
  207. windmill_api/models/new_script_with_draft_draft_kind.py +1 -0
  208. windmill_api/models/new_script_with_draft_draft_language.py +2 -0
  209. windmill_api/models/new_script_with_draft_kind.py +1 -0
  210. windmill_api/models/new_script_with_draft_language.py +2 -0
  211. windmill_api/models/new_websocket_trigger.py +36 -26
  212. windmill_api/models/open_flow_w_path.py +8 -0
  213. windmill_api/models/operator_settings.py +114 -0
  214. windmill_api/models/ping_capture_config_runnable_kind.py +9 -0
  215. windmill_api/models/ping_capture_config_trigger_kind.py +13 -0
  216. windmill_api/models/postgres_trigger.py +178 -0
  217. windmill_api/models/postgres_trigger_extra_perms.py +44 -0
  218. windmill_api/models/preview_language.py +2 -0
  219. windmill_api/models/publication_data.py +86 -0
  220. windmill_api/models/publication_data_table_to_track_item.py +84 -0
  221. windmill_api/models/publication_data_table_to_track_item_table_to_track_item.py +79 -0
  222. windmill_api/models/queued_job_job_kind.py +2 -0
  223. windmill_api/models/queued_job_language.py +2 -0
  224. windmill_api/models/raw_script_for_dependencies_language.py +2 -0
  225. windmill_api/models/raw_script_language.py +1 -0
  226. windmill_api/models/relations.py +80 -0
  227. windmill_api/models/relations_table_to_track_item.py +79 -0
  228. windmill_api/models/remove_granular_acls_kind.py +2 -0
  229. windmill_api/models/run_raw_script_dependencies_json_body_raw_scripts_item_language.py +2 -0
  230. windmill_api/models/run_script_preview_json_body_language.py +2 -0
  231. windmill_api/models/script.py +8 -0
  232. windmill_api/models/script_kind.py +1 -0
  233. windmill_api/models/script_lang.py +25 -0
  234. windmill_api/models/script_language.py +2 -0
  235. windmill_api/models/set_capture_config_json_body.py +97 -0
  236. windmill_api/models/set_capture_config_json_body_trigger_config.py +44 -0
  237. windmill_api/models/set_capture_config_json_body_trigger_kind.py +13 -0
  238. windmill_api/models/set_nats_trigger_enabled_json_body.py +58 -0
  239. windmill_api/models/set_postgres_trigger_enabled_json_body.py +58 -0
  240. windmill_api/models/set_threshold_alert_json_body.py +58 -0
  241. windmill_api/models/slot.py +58 -0
  242. windmill_api/models/slot_list.py +66 -0
  243. windmill_api/models/sync_teams_response_200_item.py +87 -0
  244. windmill_api/models/sync_teams_response_200_item_channels_item.py +80 -0
  245. windmill_api/models/table_to_track_item.py +79 -0
  246. windmill_api/models/team_info.py +87 -0
  247. windmill_api/models/team_info_channels_item.py +80 -0
  248. windmill_api/models/template_script.py +90 -0
  249. windmill_api/models/template_script_language.py +8 -0
  250. windmill_api/models/template_script_relations_item.py +82 -0
  251. windmill_api/models/template_script_relations_item_table_to_track_item.py +79 -0
  252. windmill_api/models/trigger_extra_property.py +95 -0
  253. windmill_api/models/trigger_extra_property_extra_perms.py +44 -0
  254. windmill_api/models/triggers_count.py +16 -0
  255. windmill_api/models/update_nats_trigger_json_body.py +112 -0
  256. windmill_api/models/update_operator_settings_json_body.py +114 -0
  257. windmill_api/models/update_postgres_publication_json_body.py +90 -0
  258. windmill_api/models/update_postgres_publication_json_body_table_to_track_item.py +86 -0
  259. windmill_api/models/update_postgres_publication_json_body_table_to_track_item_table_to_track_item.py +79 -0
  260. windmill_api/models/update_postgres_trigger_json_body.py +123 -0
  261. windmill_api/models/update_postgres_trigger_json_body_publication.py +92 -0
  262. windmill_api/models/update_postgres_trigger_json_body_publication_table_to_track_item.py +86 -0
  263. windmill_api/models/update_postgres_trigger_json_body_publication_table_to_track_item_table_to_track_item.py +79 -0
  264. windmill_api/models/update_websocket_trigger_json_body.py +40 -24
  265. windmill_api/models/user.py +8 -0
  266. windmill_api/models/user_workspace_list_workspaces_item.py +37 -1
  267. windmill_api/models/user_workspace_list_workspaces_item_operator_settings.py +114 -0
  268. windmill_api/models/websocket_trigger.py +83 -73
  269. windmill_api/models/whoami_response_200.py +8 -0
  270. windmill_api/models/whois_response_200.py +8 -0
  271. windmill_api/models/workspace.py +8 -0
  272. {windmill_api-1.435.0.dist-info → windmill_api-1.450.1.dist-info}/METADATA +1 -1
  273. {windmill_api-1.435.0.dist-info → windmill_api-1.450.1.dist-info}/RECORD +275 -132
  274. {windmill_api-1.435.0.dist-info → windmill_api-1.450.1.dist-info}/LICENSE +0 -0
  275. {windmill_api-1.435.0.dist-info → windmill_api-1.450.1.dist-info}/WHEEL +0 -0
@@ -5,15 +5,24 @@ import httpx
5
5
 
6
6
  from ... import errors
7
7
  from ...client import AuthenticatedClient, Client
8
- from ...types import Response
8
+ from ...types import UNSET, Response, Unset
9
9
 
10
10
 
11
- def _get_kwargs() -> Dict[str, Any]:
11
+ def _get_kwargs(
12
+ *,
13
+ if_expiring_in_less_than_s: Union[Unset, None, int] = UNSET,
14
+ ) -> Dict[str, Any]:
12
15
  pass
13
16
 
17
+ params: Dict[str, Any] = {}
18
+ params["if_expiring_in_less_than_s"] = if_expiring_in_less_than_s
19
+
20
+ params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
21
+
14
22
  return {
15
23
  "method": "get",
16
24
  "url": "/users/refresh_token",
25
+ "params": params,
17
26
  }
18
27
 
19
28
 
@@ -36,9 +45,13 @@ def _build_response(*, client: Union[AuthenticatedClient, Client], response: htt
36
45
  def sync_detailed(
37
46
  *,
38
47
  client: Union[AuthenticatedClient, Client],
48
+ if_expiring_in_less_than_s: Union[Unset, None, int] = UNSET,
39
49
  ) -> Response[Any]:
40
50
  """refresh the current token
41
51
 
52
+ Args:
53
+ if_expiring_in_less_than_s (Union[Unset, None, int]):
54
+
42
55
  Raises:
43
56
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
44
57
  httpx.TimeoutException: If the request takes longer than Client.timeout.
@@ -47,7 +60,9 @@ def sync_detailed(
47
60
  Response[Any]
48
61
  """
49
62
 
50
- kwargs = _get_kwargs()
63
+ kwargs = _get_kwargs(
64
+ if_expiring_in_less_than_s=if_expiring_in_less_than_s,
65
+ )
51
66
 
52
67
  response = client.get_httpx_client().request(
53
68
  **kwargs,
@@ -59,9 +74,13 @@ def sync_detailed(
59
74
  async def asyncio_detailed(
60
75
  *,
61
76
  client: Union[AuthenticatedClient, Client],
77
+ if_expiring_in_less_than_s: Union[Unset, None, int] = UNSET,
62
78
  ) -> Response[Any]:
63
79
  """refresh the current token
64
80
 
81
+ Args:
82
+ if_expiring_in_less_than_s (Union[Unset, None, int]):
83
+
65
84
  Raises:
66
85
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
67
86
  httpx.TimeoutException: If the request takes longer than Client.timeout.
@@ -70,7 +89,9 @@ async def asyncio_detailed(
70
89
  Response[Any]
71
90
  """
72
91
 
73
- kwargs = _get_kwargs()
92
+ kwargs = _get_kwargs(
93
+ if_expiring_in_less_than_s=if_expiring_in_less_than_s,
94
+ )
74
95
 
75
96
  response = await client.get_async_httpx_client().request(**kwargs)
76
97
 
@@ -5,15 +5,27 @@ import httpx
5
5
 
6
6
  from ... import errors
7
7
  from ...client import AuthenticatedClient, Client
8
- from ...types import Response
8
+ from ...types import UNSET, Response, Unset
9
9
 
10
10
 
11
- def _get_kwargs() -> Dict[str, Any]:
11
+ def _get_kwargs(
12
+ *,
13
+ workspace: Union[Unset, None, str] = UNSET,
14
+ show_workspace_restriction: Union[Unset, None, bool] = UNSET,
15
+ ) -> Dict[str, Any]:
12
16
  pass
13
17
 
18
+ params: Dict[str, Any] = {}
19
+ params["workspace"] = workspace
20
+
21
+ params["show_workspace_restriction"] = show_workspace_restriction
22
+
23
+ params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
24
+
14
25
  return {
15
26
  "method": "get",
16
27
  "url": "/workers/custom_tags",
28
+ "params": params,
17
29
  }
18
30
 
19
31
 
@@ -40,9 +52,15 @@ def _build_response(*, client: Union[AuthenticatedClient, Client], response: htt
40
52
  def sync_detailed(
41
53
  *,
42
54
  client: Union[AuthenticatedClient, Client],
55
+ workspace: Union[Unset, None, str] = UNSET,
56
+ show_workspace_restriction: Union[Unset, None, bool] = UNSET,
43
57
  ) -> Response[List[str]]:
44
58
  """get all instance custom tags (tags are used to dispatch jobs to different worker groups)
45
59
 
60
+ Args:
61
+ workspace (Union[Unset, None, str]):
62
+ show_workspace_restriction (Union[Unset, None, bool]):
63
+
46
64
  Raises:
47
65
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
48
66
  httpx.TimeoutException: If the request takes longer than Client.timeout.
@@ -51,7 +69,10 @@ def sync_detailed(
51
69
  Response[List[str]]
52
70
  """
53
71
 
54
- kwargs = _get_kwargs()
72
+ kwargs = _get_kwargs(
73
+ workspace=workspace,
74
+ show_workspace_restriction=show_workspace_restriction,
75
+ )
55
76
 
56
77
  response = client.get_httpx_client().request(
57
78
  **kwargs,
@@ -63,9 +84,15 @@ def sync_detailed(
63
84
  def sync(
64
85
  *,
65
86
  client: Union[AuthenticatedClient, Client],
87
+ workspace: Union[Unset, None, str] = UNSET,
88
+ show_workspace_restriction: Union[Unset, None, bool] = UNSET,
66
89
  ) -> Optional[List[str]]:
67
90
  """get all instance custom tags (tags are used to dispatch jobs to different worker groups)
68
91
 
92
+ Args:
93
+ workspace (Union[Unset, None, str]):
94
+ show_workspace_restriction (Union[Unset, None, bool]):
95
+
69
96
  Raises:
70
97
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
71
98
  httpx.TimeoutException: If the request takes longer than Client.timeout.
@@ -76,15 +103,23 @@ def sync(
76
103
 
77
104
  return sync_detailed(
78
105
  client=client,
106
+ workspace=workspace,
107
+ show_workspace_restriction=show_workspace_restriction,
79
108
  ).parsed
80
109
 
81
110
 
82
111
  async def asyncio_detailed(
83
112
  *,
84
113
  client: Union[AuthenticatedClient, Client],
114
+ workspace: Union[Unset, None, str] = UNSET,
115
+ show_workspace_restriction: Union[Unset, None, bool] = UNSET,
85
116
  ) -> Response[List[str]]:
86
117
  """get all instance custom tags (tags are used to dispatch jobs to different worker groups)
87
118
 
119
+ Args:
120
+ workspace (Union[Unset, None, str]):
121
+ show_workspace_restriction (Union[Unset, None, bool]):
122
+
88
123
  Raises:
89
124
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
90
125
  httpx.TimeoutException: If the request takes longer than Client.timeout.
@@ -93,7 +128,10 @@ async def asyncio_detailed(
93
128
  Response[List[str]]
94
129
  """
95
130
 
96
- kwargs = _get_kwargs()
131
+ kwargs = _get_kwargs(
132
+ workspace=workspace,
133
+ show_workspace_restriction=show_workspace_restriction,
134
+ )
97
135
 
98
136
  response = await client.get_async_httpx_client().request(**kwargs)
99
137
 
@@ -103,9 +141,15 @@ async def asyncio_detailed(
103
141
  async def asyncio(
104
142
  *,
105
143
  client: Union[AuthenticatedClient, Client],
144
+ workspace: Union[Unset, None, str] = UNSET,
145
+ show_workspace_restriction: Union[Unset, None, bool] = UNSET,
106
146
  ) -> Optional[List[str]]:
107
147
  """get all instance custom tags (tags are used to dispatch jobs to different worker groups)
108
148
 
149
+ Args:
150
+ workspace (Union[Unset, None, str]):
151
+ show_workspace_restriction (Union[Unset, None, bool]):
152
+
109
153
  Raises:
110
154
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
111
155
  httpx.TimeoutException: If the request takes longer than Client.timeout.
@@ -117,5 +161,7 @@ async def asyncio(
117
161
  return (
118
162
  await asyncio_detailed(
119
163
  client=client,
164
+ workspace=workspace,
165
+ show_workspace_restriction=show_workspace_restriction,
120
166
  )
121
167
  ).parsed
@@ -0,0 +1,105 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Dict, Optional, Union
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...models.change_workspace_color_json_body import ChangeWorkspaceColorJsonBody
9
+ from ...types import Response
10
+
11
+
12
+ def _get_kwargs(
13
+ workspace: str,
14
+ *,
15
+ json_body: ChangeWorkspaceColorJsonBody,
16
+ ) -> Dict[str, Any]:
17
+ pass
18
+
19
+ json_json_body = json_body.to_dict()
20
+
21
+ return {
22
+ "method": "post",
23
+ "url": "/w/{workspace}/workspaces/change_workspace_color".format(
24
+ workspace=workspace,
25
+ ),
26
+ "json": json_json_body,
27
+ }
28
+
29
+
30
+ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]:
31
+ if client.raise_on_unexpected_status:
32
+ raise errors.UnexpectedStatus(response.status_code, response.content)
33
+ else:
34
+ return None
35
+
36
+
37
+ def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]:
38
+ return Response(
39
+ status_code=HTTPStatus(response.status_code),
40
+ content=response.content,
41
+ headers=response.headers,
42
+ parsed=_parse_response(client=client, response=response),
43
+ )
44
+
45
+
46
+ def sync_detailed(
47
+ workspace: str,
48
+ *,
49
+ client: Union[AuthenticatedClient, Client],
50
+ json_body: ChangeWorkspaceColorJsonBody,
51
+ ) -> Response[Any]:
52
+ """change workspace id
53
+
54
+ Args:
55
+ workspace (str):
56
+ json_body (ChangeWorkspaceColorJsonBody):
57
+
58
+ Raises:
59
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
60
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
61
+
62
+ Returns:
63
+ Response[Any]
64
+ """
65
+
66
+ kwargs = _get_kwargs(
67
+ workspace=workspace,
68
+ json_body=json_body,
69
+ )
70
+
71
+ response = client.get_httpx_client().request(
72
+ **kwargs,
73
+ )
74
+
75
+ return _build_response(client=client, response=response)
76
+
77
+
78
+ async def asyncio_detailed(
79
+ workspace: str,
80
+ *,
81
+ client: Union[AuthenticatedClient, Client],
82
+ json_body: ChangeWorkspaceColorJsonBody,
83
+ ) -> Response[Any]:
84
+ """change workspace id
85
+
86
+ Args:
87
+ workspace (str):
88
+ json_body (ChangeWorkspaceColorJsonBody):
89
+
90
+ Raises:
91
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
92
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
93
+
94
+ Returns:
95
+ Response[Any]
96
+ """
97
+
98
+ kwargs = _get_kwargs(
99
+ workspace=workspace,
100
+ json_body=json_body,
101
+ )
102
+
103
+ response = await client.get_async_httpx_client().request(**kwargs)
104
+
105
+ return _build_response(client=client, response=response)
@@ -0,0 +1,152 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Dict, Optional, Union
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...models.get_threshold_alert_response_200 import GetThresholdAlertResponse200
9
+ from ...types import Response
10
+
11
+
12
+ def _get_kwargs(
13
+ workspace: str,
14
+ ) -> Dict[str, Any]:
15
+ pass
16
+
17
+ return {
18
+ "method": "get",
19
+ "url": "/w/{workspace}/workspaces/threshold_alert".format(
20
+ workspace=workspace,
21
+ ),
22
+ }
23
+
24
+
25
+ def _parse_response(
26
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
27
+ ) -> Optional[GetThresholdAlertResponse200]:
28
+ if response.status_code == HTTPStatus.OK:
29
+ response_200 = GetThresholdAlertResponse200.from_dict(response.json())
30
+
31
+ return response_200
32
+ if client.raise_on_unexpected_status:
33
+ raise errors.UnexpectedStatus(response.status_code, response.content)
34
+ else:
35
+ return None
36
+
37
+
38
+ def _build_response(
39
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
40
+ ) -> Response[GetThresholdAlertResponse200]:
41
+ return Response(
42
+ status_code=HTTPStatus(response.status_code),
43
+ content=response.content,
44
+ headers=response.headers,
45
+ parsed=_parse_response(client=client, response=response),
46
+ )
47
+
48
+
49
+ def sync_detailed(
50
+ workspace: str,
51
+ *,
52
+ client: Union[AuthenticatedClient, Client],
53
+ ) -> Response[GetThresholdAlertResponse200]:
54
+ """get threshold alert info
55
+
56
+ Args:
57
+ workspace (str):
58
+
59
+ Raises:
60
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
61
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
62
+
63
+ Returns:
64
+ Response[GetThresholdAlertResponse200]
65
+ """
66
+
67
+ kwargs = _get_kwargs(
68
+ workspace=workspace,
69
+ )
70
+
71
+ response = client.get_httpx_client().request(
72
+ **kwargs,
73
+ )
74
+
75
+ return _build_response(client=client, response=response)
76
+
77
+
78
+ def sync(
79
+ workspace: str,
80
+ *,
81
+ client: Union[AuthenticatedClient, Client],
82
+ ) -> Optional[GetThresholdAlertResponse200]:
83
+ """get threshold alert info
84
+
85
+ Args:
86
+ workspace (str):
87
+
88
+ Raises:
89
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
90
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
91
+
92
+ Returns:
93
+ GetThresholdAlertResponse200
94
+ """
95
+
96
+ return sync_detailed(
97
+ workspace=workspace,
98
+ client=client,
99
+ ).parsed
100
+
101
+
102
+ async def asyncio_detailed(
103
+ workspace: str,
104
+ *,
105
+ client: Union[AuthenticatedClient, Client],
106
+ ) -> Response[GetThresholdAlertResponse200]:
107
+ """get threshold alert info
108
+
109
+ Args:
110
+ workspace (str):
111
+
112
+ Raises:
113
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
114
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
115
+
116
+ Returns:
117
+ Response[GetThresholdAlertResponse200]
118
+ """
119
+
120
+ kwargs = _get_kwargs(
121
+ workspace=workspace,
122
+ )
123
+
124
+ response = await client.get_async_httpx_client().request(**kwargs)
125
+
126
+ return _build_response(client=client, response=response)
127
+
128
+
129
+ async def asyncio(
130
+ workspace: str,
131
+ *,
132
+ client: Union[AuthenticatedClient, Client],
133
+ ) -> Optional[GetThresholdAlertResponse200]:
134
+ """get threshold alert info
135
+
136
+ Args:
137
+ workspace (str):
138
+
139
+ Raises:
140
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
141
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
142
+
143
+ Returns:
144
+ GetThresholdAlertResponse200
145
+ """
146
+
147
+ return (
148
+ await asyncio_detailed(
149
+ workspace=workspace,
150
+ client=client,
151
+ )
152
+ ).parsed
@@ -0,0 +1,105 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Dict, Optional, Union
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...models.set_threshold_alert_json_body import SetThresholdAlertJsonBody
9
+ from ...types import Response
10
+
11
+
12
+ def _get_kwargs(
13
+ workspace: str,
14
+ *,
15
+ json_body: SetThresholdAlertJsonBody,
16
+ ) -> Dict[str, Any]:
17
+ pass
18
+
19
+ json_json_body = json_body.to_dict()
20
+
21
+ return {
22
+ "method": "post",
23
+ "url": "/w/{workspace}/workspaces/threshold_alert".format(
24
+ workspace=workspace,
25
+ ),
26
+ "json": json_json_body,
27
+ }
28
+
29
+
30
+ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]:
31
+ if client.raise_on_unexpected_status:
32
+ raise errors.UnexpectedStatus(response.status_code, response.content)
33
+ else:
34
+ return None
35
+
36
+
37
+ def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]:
38
+ return Response(
39
+ status_code=HTTPStatus(response.status_code),
40
+ content=response.content,
41
+ headers=response.headers,
42
+ parsed=_parse_response(client=client, response=response),
43
+ )
44
+
45
+
46
+ def sync_detailed(
47
+ workspace: str,
48
+ *,
49
+ client: Union[AuthenticatedClient, Client],
50
+ json_body: SetThresholdAlertJsonBody,
51
+ ) -> Response[Any]:
52
+ """set threshold alert info
53
+
54
+ Args:
55
+ workspace (str):
56
+ json_body (SetThresholdAlertJsonBody):
57
+
58
+ Raises:
59
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
60
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
61
+
62
+ Returns:
63
+ Response[Any]
64
+ """
65
+
66
+ kwargs = _get_kwargs(
67
+ workspace=workspace,
68
+ json_body=json_body,
69
+ )
70
+
71
+ response = client.get_httpx_client().request(
72
+ **kwargs,
73
+ )
74
+
75
+ return _build_response(client=client, response=response)
76
+
77
+
78
+ async def asyncio_detailed(
79
+ workspace: str,
80
+ *,
81
+ client: Union[AuthenticatedClient, Client],
82
+ json_body: SetThresholdAlertJsonBody,
83
+ ) -> Response[Any]:
84
+ """set threshold alert info
85
+
86
+ Args:
87
+ workspace (str):
88
+ json_body (SetThresholdAlertJsonBody):
89
+
90
+ Raises:
91
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
92
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
93
+
94
+ Returns:
95
+ Response[Any]
96
+ """
97
+
98
+ kwargs = _get_kwargs(
99
+ workspace=workspace,
100
+ json_body=json_body,
101
+ )
102
+
103
+ response = await client.get_async_httpx_client().request(**kwargs)
104
+
105
+ return _build_response(client=client, response=response)
@@ -0,0 +1,109 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Dict, Optional, Union
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...models.update_operator_settings_json_body import UpdateOperatorSettingsJsonBody
9
+ from ...types import Response
10
+
11
+
12
+ def _get_kwargs(
13
+ workspace: str,
14
+ *,
15
+ json_body: Optional[UpdateOperatorSettingsJsonBody],
16
+ ) -> Dict[str, Any]:
17
+ pass
18
+
19
+ json_json_body = json_body.to_dict() if json_body else None
20
+
21
+ return {
22
+ "method": "post",
23
+ "url": "/w/{workspace}/workspaces/operator_settings".format(
24
+ workspace=workspace,
25
+ ),
26
+ "json": json_json_body,
27
+ }
28
+
29
+
30
+ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]:
31
+ if client.raise_on_unexpected_status:
32
+ raise errors.UnexpectedStatus(response.status_code, response.content)
33
+ else:
34
+ return None
35
+
36
+
37
+ def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]:
38
+ return Response(
39
+ status_code=HTTPStatus(response.status_code),
40
+ content=response.content,
41
+ headers=response.headers,
42
+ parsed=_parse_response(client=client, response=response),
43
+ )
44
+
45
+
46
+ def sync_detailed(
47
+ workspace: str,
48
+ *,
49
+ client: Union[AuthenticatedClient, Client],
50
+ json_body: Optional[UpdateOperatorSettingsJsonBody],
51
+ ) -> Response[Any]:
52
+ """Update operator settings for a workspace
53
+
54
+ Updates the operator settings for a specific workspace. Requires workspace admin privileges.
55
+
56
+ Args:
57
+ workspace (str):
58
+ json_body (Optional[UpdateOperatorSettingsJsonBody]):
59
+
60
+ Raises:
61
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
62
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
63
+
64
+ Returns:
65
+ Response[Any]
66
+ """
67
+
68
+ kwargs = _get_kwargs(
69
+ workspace=workspace,
70
+ json_body=json_body,
71
+ )
72
+
73
+ response = client.get_httpx_client().request(
74
+ **kwargs,
75
+ )
76
+
77
+ return _build_response(client=client, response=response)
78
+
79
+
80
+ async def asyncio_detailed(
81
+ workspace: str,
82
+ *,
83
+ client: Union[AuthenticatedClient, Client],
84
+ json_body: Optional[UpdateOperatorSettingsJsonBody],
85
+ ) -> Response[Any]:
86
+ """Update operator settings for a workspace
87
+
88
+ Updates the operator settings for a specific workspace. Requires workspace admin privileges.
89
+
90
+ Args:
91
+ workspace (str):
92
+ json_body (Optional[UpdateOperatorSettingsJsonBody]):
93
+
94
+ Raises:
95
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
96
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
97
+
98
+ Returns:
99
+ Response[Any]
100
+ """
101
+
102
+ kwargs = _get_kwargs(
103
+ workspace=workspace,
104
+ json_body=json_body,
105
+ )
106
+
107
+ response = await client.get_async_httpx_client().request(**kwargs)
108
+
109
+ return _build_response(client=client, response=response)
@@ -8,6 +8,8 @@ class AddGranularAclsKind(str, Enum):
8
8
  GROUP = "group_"
9
9
  HTTP_TRIGGER = "http_trigger"
10
10
  KAFKA_TRIGGER = "kafka_trigger"
11
+ NATS_TRIGGER = "nats_trigger"
12
+ POSTGRES_TRIGGER = "postgres_trigger"
11
13
  RAW_APP = "raw_app"
12
14
  RESOURCE = "resource"
13
15
  SCHEDULE = "schedule"