attune-sdk 0.1.0__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 (703) hide show
  1. attune/__init__.py +60 -0
  2. attune/action.py +112 -0
  3. attune/api_client/__init__.py +8 -0
  4. attune/api_client/api/__init__.py +1 -0
  5. attune/api_client/api/actions/__init__.py +1 -0
  6. attune/api_client/api/actions/delete_action.py +159 -0
  7. attune/api_client/api/actions/get_action.py +159 -0
  8. attune/api_client/api/actions/get_queue_stats.py +159 -0
  9. attune/api_client/api/actions/list_actions.py +190 -0
  10. attune/api_client/api/actions/list_actions_by_pack.py +195 -0
  11. attune/api_client/api/actions/search_actions.py +241 -0
  12. attune/api_client/api/actions/update_action.py +184 -0
  13. attune/api_client/api/agent/__init__.py +1 -0
  14. attune/api_client/api/agent/agent_info.py +144 -0
  15. attune/api_client/api/agent/download_agent_binary.py +130 -0
  16. attune/api_client/api/audit/__init__.py +1 -0
  17. attune/api_client/api/audit/get_audit_event.py +171 -0
  18. attune/api_client/api/audit/get_audit_events_by_request.py +169 -0
  19. attune/api_client/api/audit/list_audit_events.py +503 -0
  20. attune/api_client/api/auth/__init__.py +1 -0
  21. attune/api_client/api/auth/auth_settings.py +136 -0
  22. attune/api_client/api/auth/change_password.py +180 -0
  23. attune/api_client/api/auth/get_current_user.py +144 -0
  24. attune/api_client/api/auth/ldap_login.py +176 -0
  25. attune/api_client/api/auth/login.py +176 -0
  26. attune/api_client/api/auth/refresh_token.py +176 -0
  27. attune/api_client/api/auth/register.py +176 -0
  28. attune/api_client/api/auth/token_login.py +176 -0
  29. attune/api_client/api/auth/update_current_user.py +184 -0
  30. attune/api_client/api/enforcements/__init__.py +1 -0
  31. attune/api_client/api/enforcements/get_enforcement.py +167 -0
  32. attune/api_client/api/enforcements/list_enforcements.py +308 -0
  33. attune/api_client/api/events/__init__.py +1 -0
  34. attune/api_client/api/events/get_event.py +167 -0
  35. attune/api_client/api/events/list_events.py +283 -0
  36. attune/api_client/api/executions/__init__.py +1 -0
  37. attune/api_client/api/executions/get_execution.py +159 -0
  38. attune/api_client/api/executions/get_execution_stats.py +132 -0
  39. attune/api_client/api/executions/list_executions.py +400 -0
  40. attune/api_client/api/executions/list_executions_by_enforcement.py +197 -0
  41. attune/api_client/api/executions/list_executions_by_status.py +201 -0
  42. attune/api_client/api/health/__init__.py +1 -0
  43. attune/api_client/api/health/health.py +136 -0
  44. attune/api_client/api/health/health_detailed.py +142 -0
  45. attune/api_client/api/health/liveness.py +89 -0
  46. attune/api_client/api/health/readiness.py +92 -0
  47. attune/api_client/api/inquiries/__init__.py +1 -0
  48. attune/api_client/api/inquiries/create_inquiry.py +176 -0
  49. attune/api_client/api/inquiries/delete_inquiry.py +167 -0
  50. attune/api_client/api/inquiries/get_inquiry.py +167 -0
  51. attune/api_client/api/inquiries/list_inquiries.py +256 -0
  52. attune/api_client/api/inquiries/list_inquiries_by_execution.py +203 -0
  53. attune/api_client/api/inquiries/list_inquiries_by_status.py +203 -0
  54. attune/api_client/api/inquiries/respond_to_inquiry.py +196 -0
  55. attune/api_client/api/inquiries/update_inquiry.py +192 -0
  56. attune/api_client/api/packs/__init__.py +1 -0
  57. attune/api_client/api/packs/create_pack.py +168 -0
  58. attune/api_client/api/packs/delete_pack.py +159 -0
  59. attune/api_client/api/packs/get_pack.py +159 -0
  60. attune/api_client/api/packs/get_pack_latest_test.py +105 -0
  61. attune/api_client/api/packs/get_pack_test_history.py +195 -0
  62. attune/api_client/api/packs/install_pack.py +171 -0
  63. attune/api_client/api/packs/list_packs.py +175 -0
  64. attune/api_client/api/packs/register_pack.py +171 -0
  65. attune/api_client/api/packs/sync_pack_workflows.py +163 -0
  66. attune/api_client/api/packs/test_pack.py +163 -0
  67. attune/api_client/api/packs/update_pack.py +184 -0
  68. attune/api_client/api/packs/validate_pack_workflows.py +165 -0
  69. attune/api_client/api/permissions/__init__.py +1 -0
  70. attune/api_client/api/permissions/create_identity.py +160 -0
  71. attune/api_client/api/permissions/create_identity_role_assignment.py +182 -0
  72. attune/api_client/api/permissions/create_integration_token.py +178 -0
  73. attune/api_client/api/permissions/create_permission_assignment.py +168 -0
  74. attune/api_client/api/permissions/create_permission_set_role_assignment.py +182 -0
  75. attune/api_client/api/permissions/delete_identity.py +155 -0
  76. attune/api_client/api/permissions/delete_identity_role_assignment.py +159 -0
  77. attune/api_client/api/permissions/delete_integration_token.py +171 -0
  78. attune/api_client/api/permissions/delete_permission_assignment.py +157 -0
  79. attune/api_client/api/permissions/delete_permission_set_role_assignment.py +159 -0
  80. attune/api_client/api/permissions/freeze_identity.py +155 -0
  81. attune/api_client/api/permissions/get_identity.py +155 -0
  82. attune/api_client/api/permissions/list_identities.py +173 -0
  83. attune/api_client/api/permissions/list_identity_permissions.py +162 -0
  84. attune/api_client/api/permissions/list_integration_tokens.py +157 -0
  85. attune/api_client/api/permissions/list_permission_sets.py +166 -0
  86. attune/api_client/api/permissions/revoke_integration_token.py +192 -0
  87. attune/api_client/api/permissions/unfreeze_identity.py +155 -0
  88. attune/api_client/api/permissions/update_identity.py +176 -0
  89. attune/api_client/api/permissions/update_permission_set.py +180 -0
  90. attune/api_client/api/queues/__init__.py +1 -0
  91. attune/api_client/api/queues/create_queue.py +172 -0
  92. attune/api_client/api/queues/delete_queue.py +159 -0
  93. attune/api_client/api/queues/delete_queue_item.py +177 -0
  94. attune/api_client/api/queues/enqueue_queue_item.py +195 -0
  95. attune/api_client/api/queues/get_queue.py +155 -0
  96. attune/api_client/api/queues/list_queues.py +233 -0
  97. attune/api_client/api/queues/list_queues_by_pack.py +257 -0
  98. attune/api_client/api/queues/update_queue.py +184 -0
  99. attune/api_client/api/queues/update_queue_item.py +204 -0
  100. attune/api_client/api/retention/__init__.py +1 -0
  101. attune/api_client/api/retention/get_retention_config.py +140 -0
  102. attune/api_client/api/retention/update_retention_config.py +176 -0
  103. attune/api_client/api/rules/__init__.py +1 -0
  104. attune/api_client/api/rules/create_rule.py +176 -0
  105. attune/api_client/api/rules/delete_rule.py +163 -0
  106. attune/api_client/api/rules/disable_rule.py +163 -0
  107. attune/api_client/api/rules/enable_rule.py +163 -0
  108. attune/api_client/api/rules/get_rule.py +163 -0
  109. attune/api_client/api/rules/list_enabled_rules.py +179 -0
  110. attune/api_client/api/rules/list_rules.py +179 -0
  111. attune/api_client/api/rules/list_rules_by_action.py +199 -0
  112. attune/api_client/api/rules/list_rules_by_pack.py +199 -0
  113. attune/api_client/api/rules/list_rules_by_trigger.py +199 -0
  114. attune/api_client/api/rules/update_rule.py +188 -0
  115. attune/api_client/api/runtimes/__init__.py +1 -0
  116. attune/api_client/api/runtimes/create_runtime.py +168 -0
  117. attune/api_client/api/runtimes/delete_runtime.py +155 -0
  118. attune/api_client/api/runtimes/get_runtime.py +155 -0
  119. attune/api_client/api/runtimes/list_runtimes.py +171 -0
  120. attune/api_client/api/runtimes/list_runtimes_by_pack.py +191 -0
  121. attune/api_client/api/runtimes/update_runtime.py +180 -0
  122. attune/api_client/api/secrets/__init__.py +1 -0
  123. attune/api_client/api/secrets/create_key.py +168 -0
  124. attune/api_client/api/secrets/delete_key.py +159 -0
  125. attune/api_client/api/secrets/get_key.py +159 -0
  126. attune/api_client/api/secrets/list_keys.py +218 -0
  127. attune/api_client/api/secrets/update_key.py +184 -0
  128. attune/api_client/api/sensors/__init__.py +1 -0
  129. attune/api_client/api/sensors/create_sensor.py +176 -0
  130. attune/api_client/api/sensors/delete_sensor.py +163 -0
  131. attune/api_client/api/sensors/disable_sensor.py +163 -0
  132. attune/api_client/api/sensors/enable_sensor.py +163 -0
  133. attune/api_client/api/sensors/get_sensor.py +163 -0
  134. attune/api_client/api/sensors/list_enabled_sensors.py +179 -0
  135. attune/api_client/api/sensors/list_sensors.py +179 -0
  136. attune/api_client/api/sensors/list_sensors_by_pack.py +199 -0
  137. attune/api_client/api/sensors/list_sensors_by_trigger.py +199 -0
  138. attune/api_client/api/sensors/update_sensor.py +188 -0
  139. attune/api_client/api/triggers/__init__.py +1 -0
  140. attune/api_client/api/triggers/create_trigger.py +176 -0
  141. attune/api_client/api/triggers/delete_trigger.py +163 -0
  142. attune/api_client/api/triggers/disable_trigger.py +163 -0
  143. attune/api_client/api/triggers/enable_trigger.py +163 -0
  144. attune/api_client/api/triggers/get_trigger.py +163 -0
  145. attune/api_client/api/triggers/list_enabled_triggers.py +179 -0
  146. attune/api_client/api/triggers/list_triggers.py +179 -0
  147. attune/api_client/api/triggers/list_triggers_by_pack.py +199 -0
  148. attune/api_client/api/triggers/update_trigger.py +188 -0
  149. attune/api_client/api/webhooks/__init__.py +1 -0
  150. attune/api_client/api/webhooks/disable_webhook.py +163 -0
  151. attune/api_client/api/webhooks/enable_webhook.py +163 -0
  152. attune/api_client/api/webhooks/receive_webhook.py +188 -0
  153. attune/api_client/api/webhooks/regenerate_webhook_key.py +167 -0
  154. attune/api_client/api/workers/__init__.py +1 -0
  155. attune/api_client/api/workers/cordon_worker.py +172 -0
  156. attune/api_client/api/workers/get_worker.py +155 -0
  157. attune/api_client/api/workers/list_workers.py +260 -0
  158. attune/api_client/api/workers/uncordon_worker.py +151 -0
  159. attune/api_client/api/workflows/__init__.py +1 -0
  160. attune/api_client/api/workflows/create_workflow.py +172 -0
  161. attune/api_client/api/workflows/delete_workflow.py +159 -0
  162. attune/api_client/api/workflows/get_workflow.py +159 -0
  163. attune/api_client/api/workflows/list_workflows.py +237 -0
  164. attune/api_client/api/workflows/list_workflows_by_pack.py +197 -0
  165. attune/api_client/api/workflows/update_workflow.py +184 -0
  166. attune/api_client/client.py +282 -0
  167. attune/api_client/errors.py +16 -0
  168. attune/api_client/models/__init__.py +1369 -0
  169. attune/api_client/models/action_response.py +536 -0
  170. attune/api_client/models/action_response_out_schema_type_0.py +47 -0
  171. attune/api_client/models/action_response_param_schema_type_0.py +47 -0
  172. attune/api_client/models/action_response_required_worker_runtimes.py +47 -0
  173. attune/api_client/models/action_response_worker_selector.py +47 -0
  174. attune/api_client/models/action_search_hit.py +140 -0
  175. attune/api_client/models/action_summary.py +449 -0
  176. attune/api_client/models/action_summary_required_worker_runtimes.py +47 -0
  177. attune/api_client/models/action_summary_worker_selector.py +47 -0
  178. attune/api_client/models/agent_arch_info.py +78 -0
  179. attune/api_client/models/agent_binary_info.py +84 -0
  180. attune/api_client/models/api_response_action_response.py +92 -0
  181. attune/api_client/models/api_response_action_response_data.py +556 -0
  182. attune/api_client/models/api_response_action_response_data_out_schema_type_0.py +47 -0
  183. attune/api_client/models/api_response_action_response_data_param_schema_type_0.py +47 -0
  184. attune/api_client/models/api_response_action_response_data_required_worker_runtimes.py +47 -0
  185. attune/api_client/models/api_response_action_response_data_worker_selector.py +47 -0
  186. attune/api_client/models/api_response_audit_event_response.py +94 -0
  187. attune/api_client/models/api_response_audit_event_response_data.py +459 -0
  188. attune/api_client/models/api_response_audit_event_response_data_correlation_chain_type_0.py +47 -0
  189. attune/api_client/models/api_response_audit_event_response_data_details_type_0.py +47 -0
  190. attune/api_client/models/api_response_auth_settings_response.py +94 -0
  191. attune/api_client/models/api_response_auth_settings_response_data.py +256 -0
  192. attune/api_client/models/api_response_current_user_response.py +94 -0
  193. attune/api_client/models/api_response_current_user_response_data.py +188 -0
  194. attune/api_client/models/api_response_enforcement_response.py +94 -0
  195. attune/api_client/models/api_response_enforcement_response_data.py +252 -0
  196. attune/api_client/models/api_response_enforcement_response_data_conditions.py +47 -0
  197. attune/api_client/models/api_response_enforcement_response_data_config_type_0.py +47 -0
  198. attune/api_client/models/api_response_enforcement_response_data_payload.py +47 -0
  199. attune/api_client/models/api_response_event_response.py +92 -0
  200. attune/api_client/models/api_response_event_response_data.py +239 -0
  201. attune/api_client/models/api_response_event_response_data_config_type_0.py +47 -0
  202. attune/api_client/models/api_response_event_response_data_payload.py +47 -0
  203. attune/api_client/models/api_response_execution_response.py +94 -0
  204. attune/api_client/models/api_response_execution_response_data.py +571 -0
  205. attune/api_client/models/api_response_execution_response_data_config.py +47 -0
  206. attune/api_client/models/api_response_execution_response_data_result.py +47 -0
  207. attune/api_client/models/api_response_execution_response_data_worker_affinity_type_0.py +47 -0
  208. attune/api_client/models/api_response_execution_response_data_worker_selector_type_0.py +47 -0
  209. attune/api_client/models/api_response_execution_response_data_worker_tolerations_type_0_item.py +47 -0
  210. attune/api_client/models/api_response_execution_response_data_workflow_task_type_0.py +47 -0
  211. attune/api_client/models/api_response_identity_response.py +94 -0
  212. attune/api_client/models/api_response_identity_response_data.py +153 -0
  213. attune/api_client/models/api_response_inquiry_response.py +94 -0
  214. attune/api_client/models/api_response_inquiry_response_data.py +271 -0
  215. attune/api_client/models/api_response_inquiry_response_data_response_schema_type_0.py +47 -0
  216. attune/api_client/models/api_response_inquiry_response_data_response_type_0.py +47 -0
  217. attune/api_client/models/api_response_key_response.py +90 -0
  218. attune/api_client/models/api_response_key_response_data.py +283 -0
  219. attune/api_client/models/api_response_pack_install_response.py +94 -0
  220. attune/api_client/models/api_response_pack_install_response_data.py +112 -0
  221. attune/api_client/models/api_response_pack_response.py +90 -0
  222. attune/api_client/models/api_response_pack_response_data.py +207 -0
  223. attune/api_client/models/api_response_pack_response_data_conf_schema.py +47 -0
  224. attune/api_client/models/api_response_pack_response_data_config.py +47 -0
  225. attune/api_client/models/api_response_pack_response_data_meta.py +47 -0
  226. attune/api_client/models/api_response_permission_assignment_response.py +94 -0
  227. attune/api_client/models/api_response_permission_assignment_response_data.py +95 -0
  228. attune/api_client/models/api_response_queue_stats_response.py +94 -0
  229. attune/api_client/models/api_response_queue_stats_response_data.py +155 -0
  230. attune/api_client/models/api_response_retention_config.py +94 -0
  231. attune/api_client/models/api_response_retention_config_data.py +120 -0
  232. attune/api_client/models/api_response_rule_response.py +90 -0
  233. attune/api_client/models/api_response_rule_response_data.py +315 -0
  234. attune/api_client/models/api_response_rule_response_data_action_params.py +47 -0
  235. attune/api_client/models/api_response_rule_response_data_conditions.py +47 -0
  236. attune/api_client/models/api_response_rule_response_data_trigger_params.py +47 -0
  237. attune/api_client/models/api_response_runtime_response.py +94 -0
  238. attune/api_client/models/api_response_runtime_response_data.py +235 -0
  239. attune/api_client/models/api_response_runtime_response_data_distributions.py +47 -0
  240. attune/api_client/models/api_response_runtime_response_data_execution_config.py +47 -0
  241. attune/api_client/models/api_response_runtime_response_data_installation_type_0.py +47 -0
  242. attune/api_client/models/api_response_sensor_response.py +92 -0
  243. attune/api_client/models/api_response_sensor_response_data.py +395 -0
  244. attune/api_client/models/api_response_sensor_response_data_param_schema_type_0.py +47 -0
  245. attune/api_client/models/api_response_sensor_response_data_worker_selector.py +47 -0
  246. attune/api_client/models/api_response_string.py +84 -0
  247. attune/api_client/models/api_response_token_response.py +92 -0
  248. attune/api_client/models/api_response_token_response_data.py +126 -0
  249. attune/api_client/models/api_response_trigger_response.py +94 -0
  250. attune/api_client/models/api_response_trigger_response_data.py +327 -0
  251. attune/api_client/models/api_response_trigger_response_data_out_schema_type_0.py +47 -0
  252. attune/api_client/models/api_response_trigger_response_data_param_schema_type_0.py +47 -0
  253. attune/api_client/models/api_response_vec_audit_event_response.py +104 -0
  254. attune/api_client/models/api_response_vec_audit_event_response_data_item.py +464 -0
  255. attune/api_client/models/api_response_vec_audit_event_response_data_item_correlation_chain_type_0.py +47 -0
  256. attune/api_client/models/api_response_vec_audit_event_response_data_item_details_type_0.py +47 -0
  257. attune/api_client/models/api_response_webhook_receiver_response.py +94 -0
  258. attune/api_client/models/api_response_webhook_receiver_response_data.py +88 -0
  259. attune/api_client/models/api_response_work_queue_item_response.py +94 -0
  260. attune/api_client/models/api_response_work_queue_item_response_data.py +417 -0
  261. attune/api_client/models/api_response_work_queue_item_response_data_ack_summary_type_0.py +47 -0
  262. attune/api_client/models/api_response_work_queue_item_response_data_last_error_type_0.py +47 -0
  263. attune/api_client/models/api_response_work_queue_item_response_data_metadata.py +47 -0
  264. attune/api_client/models/api_response_work_queue_item_response_data_payload.py +47 -0
  265. attune/api_client/models/api_response_work_queue_response.py +94 -0
  266. attune/api_client/models/api_response_work_queue_response_data.py +376 -0
  267. attune/api_client/models/api_response_work_queue_response_data_action_params.py +47 -0
  268. attune/api_client/models/api_response_work_queue_response_data_config.py +47 -0
  269. attune/api_client/models/api_response_work_queue_response_data_item_schema.py +47 -0
  270. attune/api_client/models/api_response_workflow_response.py +94 -0
  271. attune/api_client/models/api_response_workflow_response_data.py +251 -0
  272. attune/api_client/models/api_response_workflow_response_data_definition.py +47 -0
  273. attune/api_client/models/api_response_workflow_response_data_out_schema_type_0.py +47 -0
  274. attune/api_client/models/api_response_workflow_response_data_param_schema_type_0.py +47 -0
  275. attune/api_client/models/audit_category.py +14 -0
  276. attune/api_client/models/audit_event_response.py +447 -0
  277. attune/api_client/models/audit_event_response_correlation_chain_type_0.py +47 -0
  278. attune/api_client/models/audit_event_response_details_type_0.py +47 -0
  279. attune/api_client/models/audit_event_summary.py +269 -0
  280. attune/api_client/models/audit_outcome.py +10 -0
  281. attune/api_client/models/auth_settings_response_200.py +90 -0
  282. attune/api_client/models/auth_settings_response_200_data.py +256 -0
  283. attune/api_client/models/change_password_request.py +70 -0
  284. attune/api_client/models/change_password_response_200.py +92 -0
  285. attune/api_client/models/change_password_response_200_data.py +70 -0
  286. attune/api_client/models/cordon_worker_request.py +73 -0
  287. attune/api_client/models/create_action_response_201.py +90 -0
  288. attune/api_client/models/create_action_response_201_data.py +556 -0
  289. attune/api_client/models/create_action_response_201_data_out_schema_type_0.py +47 -0
  290. attune/api_client/models/create_action_response_201_data_param_schema_type_0.py +47 -0
  291. attune/api_client/models/create_action_response_201_data_required_worker_runtimes.py +47 -0
  292. attune/api_client/models/create_action_response_201_data_worker_selector.py +47 -0
  293. attune/api_client/models/create_identity_request.py +112 -0
  294. attune/api_client/models/create_identity_response_201.py +92 -0
  295. attune/api_client/models/create_identity_response_201_data.py +153 -0
  296. attune/api_client/models/create_identity_role_assignment_request.py +61 -0
  297. attune/api_client/models/create_identity_role_assignment_response_201.py +94 -0
  298. attune/api_client/models/create_identity_role_assignment_response_201_data.py +111 -0
  299. attune/api_client/models/create_inquiry_request.py +146 -0
  300. attune/api_client/models/create_inquiry_request_response_schema.py +47 -0
  301. attune/api_client/models/create_integration_token_request.py +115 -0
  302. attune/api_client/models/create_integration_token_response.py +77 -0
  303. attune/api_client/models/create_integration_token_response_201.py +94 -0
  304. attune/api_client/models/create_integration_token_response_201_data.py +77 -0
  305. attune/api_client/models/create_key_request.py +258 -0
  306. attune/api_client/models/create_key_response_201.py +90 -0
  307. attune/api_client/models/create_key_response_201_data.py +283 -0
  308. attune/api_client/models/create_pack_request.py +203 -0
  309. attune/api_client/models/create_pack_request_conf_schema.py +47 -0
  310. attune/api_client/models/create_pack_request_config.py +47 -0
  311. attune/api_client/models/create_pack_request_meta.py +47 -0
  312. attune/api_client/models/create_pack_response_201.py +90 -0
  313. attune/api_client/models/create_pack_response_201_data.py +207 -0
  314. attune/api_client/models/create_pack_response_201_data_conf_schema.py +47 -0
  315. attune/api_client/models/create_pack_response_201_data_config.py +47 -0
  316. attune/api_client/models/create_pack_response_201_data_meta.py +47 -0
  317. attune/api_client/models/create_permission_assignment_request.py +103 -0
  318. attune/api_client/models/create_permission_assignment_response_201.py +94 -0
  319. attune/api_client/models/create_permission_assignment_response_201_data.py +95 -0
  320. attune/api_client/models/create_permission_set_role_assignment_request.py +61 -0
  321. attune/api_client/models/create_permission_set_role_assignment_response_201.py +94 -0
  322. attune/api_client/models/create_permission_set_role_assignment_response_201_data.py +111 -0
  323. attune/api_client/models/create_rule_request.py +225 -0
  324. attune/api_client/models/create_rule_request_action_params.py +47 -0
  325. attune/api_client/models/create_rule_request_conditions.py +47 -0
  326. attune/api_client/models/create_rule_request_trigger_params.py +47 -0
  327. attune/api_client/models/create_runtime_request.py +208 -0
  328. attune/api_client/models/create_runtime_request_distributions.py +47 -0
  329. attune/api_client/models/create_runtime_request_execution_config.py +47 -0
  330. attune/api_client/models/create_runtime_request_installation_type_0.py +47 -0
  331. attune/api_client/models/create_sensor_request.py +407 -0
  332. attune/api_client/models/create_sensor_request_config_type_0.py +47 -0
  333. attune/api_client/models/create_sensor_request_param_schema_type_0.py +47 -0
  334. attune/api_client/models/create_sensor_request_worker_selector.py +47 -0
  335. attune/api_client/models/create_trigger_request.py +212 -0
  336. attune/api_client/models/create_trigger_request_out_schema_type_0.py +47 -0
  337. attune/api_client/models/create_trigger_request_param_schema_type_0.py +47 -0
  338. attune/api_client/models/create_work_queue_request.py +293 -0
  339. attune/api_client/models/create_work_queue_request_action_params.py +47 -0
  340. attune/api_client/models/create_work_queue_request_config.py +47 -0
  341. attune/api_client/models/create_work_queue_request_item_schema.py +47 -0
  342. attune/api_client/models/create_workflow_request.py +189 -0
  343. attune/api_client/models/create_workflow_request_definition.py +47 -0
  344. attune/api_client/models/create_workflow_request_out_schema.py +47 -0
  345. attune/api_client/models/create_workflow_request_param_schema.py +47 -0
  346. attune/api_client/models/create_workflow_response_201.py +92 -0
  347. attune/api_client/models/create_workflow_response_201_data.py +249 -0
  348. attune/api_client/models/create_workflow_response_201_data_definition.py +47 -0
  349. attune/api_client/models/create_workflow_response_201_data_out_schema_type_0.py +47 -0
  350. attune/api_client/models/create_workflow_response_201_data_param_schema_type_0.py +47 -0
  351. attune/api_client/models/current_user_response.py +188 -0
  352. attune/api_client/models/delete_identity_response_200.py +92 -0
  353. attune/api_client/models/delete_identity_response_200_data.py +70 -0
  354. attune/api_client/models/delete_identity_role_assignment_response_200.py +95 -0
  355. attune/api_client/models/delete_identity_role_assignment_response_200_data.py +70 -0
  356. attune/api_client/models/delete_integration_token_response_200.py +94 -0
  357. attune/api_client/models/delete_integration_token_response_200_data.py +70 -0
  358. attune/api_client/models/delete_permission_assignment_response_200.py +95 -0
  359. attune/api_client/models/delete_permission_assignment_response_200_data.py +70 -0
  360. attune/api_client/models/delete_permission_set_role_assignment_response_200.py +95 -0
  361. attune/api_client/models/delete_permission_set_role_assignment_response_200_data.py +70 -0
  362. attune/api_client/models/effective_permission_response.py +70 -0
  363. attune/api_client/models/enforcement_condition.py +9 -0
  364. attune/api_client/models/enforcement_response.py +240 -0
  365. attune/api_client/models/enforcement_response_conditions.py +47 -0
  366. attune/api_client/models/enforcement_response_config_type_0.py +47 -0
  367. attune/api_client/models/enforcement_response_payload.py +47 -0
  368. attune/api_client/models/enforcement_status.py +10 -0
  369. attune/api_client/models/enforcement_summary.py +148 -0
  370. attune/api_client/models/enqueue_work_queue_item_request.py +135 -0
  371. attune/api_client/models/enqueue_work_queue_item_request_metadata.py +47 -0
  372. attune/api_client/models/enqueue_work_queue_item_request_payload.py +47 -0
  373. attune/api_client/models/event_response.py +227 -0
  374. attune/api_client/models/event_response_config_type_0.py +47 -0
  375. attune/api_client/models/event_response_payload.py +47 -0
  376. attune/api_client/models/event_summary.py +191 -0
  377. attune/api_client/models/execution_response.py +540 -0
  378. attune/api_client/models/execution_response_config.py +47 -0
  379. attune/api_client/models/execution_response_result.py +47 -0
  380. attune/api_client/models/execution_response_worker_affinity_type_0.py +47 -0
  381. attune/api_client/models/execution_response_worker_selector_type_0.py +47 -0
  382. attune/api_client/models/execution_response_worker_tolerations_type_0_item.py +47 -0
  383. attune/api_client/models/execution_response_workflow_task_type_0.py +47 -0
  384. attune/api_client/models/execution_status.py +17 -0
  385. attune/api_client/models/execution_summary.py +280 -0
  386. attune/api_client/models/execution_summary_workflow_task_type_0.py +47 -0
  387. attune/api_client/models/freeze_identity_response_200.py +92 -0
  388. attune/api_client/models/freeze_identity_response_200_data.py +70 -0
  389. attune/api_client/models/get_action_response_200.py +90 -0
  390. attune/api_client/models/get_action_response_200_data.py +554 -0
  391. attune/api_client/models/get_action_response_200_data_out_schema_type_0.py +47 -0
  392. attune/api_client/models/get_action_response_200_data_param_schema_type_0.py +47 -0
  393. attune/api_client/models/get_action_response_200_data_required_worker_runtimes.py +47 -0
  394. attune/api_client/models/get_action_response_200_data_worker_selector.py +47 -0
  395. attune/api_client/models/get_current_user_response_200.py +94 -0
  396. attune/api_client/models/get_current_user_response_200_data.py +188 -0
  397. attune/api_client/models/get_execution_response_200.py +90 -0
  398. attune/api_client/models/get_execution_response_200_data.py +567 -0
  399. attune/api_client/models/get_execution_response_200_data_config.py +47 -0
  400. attune/api_client/models/get_execution_response_200_data_result.py +47 -0
  401. attune/api_client/models/get_execution_response_200_data_worker_affinity_type_0.py +47 -0
  402. attune/api_client/models/get_execution_response_200_data_worker_selector_type_0.py +47 -0
  403. attune/api_client/models/get_execution_response_200_data_worker_tolerations_type_0_item.py +47 -0
  404. attune/api_client/models/get_execution_response_200_data_workflow_task_type_0.py +47 -0
  405. attune/api_client/models/get_execution_stats_response_200.py +47 -0
  406. attune/api_client/models/get_identity_response_200.py +90 -0
  407. attune/api_client/models/get_identity_response_200_data.py +153 -0
  408. attune/api_client/models/get_key_response_200.py +90 -0
  409. attune/api_client/models/get_key_response_200_data.py +283 -0
  410. attune/api_client/models/get_pack_response_200.py +90 -0
  411. attune/api_client/models/get_pack_response_200_data.py +199 -0
  412. attune/api_client/models/get_pack_response_200_data_conf_schema.py +47 -0
  413. attune/api_client/models/get_pack_response_200_data_config.py +47 -0
  414. attune/api_client/models/get_pack_response_200_data_meta.py +47 -0
  415. attune/api_client/models/get_pack_test_history_response_200.py +92 -0
  416. attune/api_client/models/get_pack_test_history_response_200_items_item.py +160 -0
  417. attune/api_client/models/get_queue_stats_response_200.py +92 -0
  418. attune/api_client/models/get_queue_stats_response_200_data.py +155 -0
  419. attune/api_client/models/get_workflow_response_200.py +90 -0
  420. attune/api_client/models/get_workflow_response_200_data.py +247 -0
  421. attune/api_client/models/get_workflow_response_200_data_definition.py +47 -0
  422. attune/api_client/models/get_workflow_response_200_data_out_schema_type_0.py +47 -0
  423. attune/api_client/models/get_workflow_response_200_data_param_schema_type_0.py +47 -0
  424. attune/api_client/models/health_detailed_response_503.py +47 -0
  425. attune/api_client/models/health_response.py +78 -0
  426. attune/api_client/models/health_response_200.py +47 -0
  427. attune/api_client/models/identity_response.py +153 -0
  428. attune/api_client/models/identity_role_assignment_response.py +111 -0
  429. attune/api_client/models/identity_summary.py +115 -0
  430. attune/api_client/models/inquiry_respond_request.py +70 -0
  431. attune/api_client/models/inquiry_respond_request_response.py +47 -0
  432. attune/api_client/models/inquiry_response.py +263 -0
  433. attune/api_client/models/inquiry_response_response_schema_type_0.py +47 -0
  434. attune/api_client/models/inquiry_response_response_type_0.py +47 -0
  435. attune/api_client/models/inquiry_status.py +11 -0
  436. attune/api_client/models/inquiry_summary.py +157 -0
  437. attune/api_client/models/install_pack_request.py +102 -0
  438. attune/api_client/models/integration_token_response.py +311 -0
  439. attune/api_client/models/key_response.py +283 -0
  440. attune/api_client/models/key_summary.py +127 -0
  441. attune/api_client/models/label_expression_operator.py +11 -0
  442. attune/api_client/models/ldap_login_request.py +70 -0
  443. attune/api_client/models/ldap_login_response_200.py +90 -0
  444. attune/api_client/models/ldap_login_response_200_data.py +126 -0
  445. attune/api_client/models/list_integration_tokens_response_200.py +104 -0
  446. attune/api_client/models/list_integration_tokens_response_200_data_item.py +311 -0
  447. attune/api_client/models/log_retention_limit_patch_type_0.py +71 -0
  448. attune/api_client/models/log_retention_limit_patch_type_0_op.py +8 -0
  449. attune/api_client/models/log_retention_limit_patch_type_1.py +63 -0
  450. attune/api_client/models/log_retention_limit_patch_type_1_op.py +8 -0
  451. attune/api_client/models/log_retention_policy_patch_type_0.py +72 -0
  452. attune/api_client/models/log_retention_policy_patch_type_0_op.py +8 -0
  453. attune/api_client/models/log_retention_policy_patch_type_1.py +63 -0
  454. attune/api_client/models/log_retention_policy_patch_type_1_op.py +8 -0
  455. attune/api_client/models/login_request.py +70 -0
  456. attune/api_client/models/login_response_200.py +90 -0
  457. attune/api_client/models/login_response_200_data.py +126 -0
  458. attune/api_client/models/nullable_json_patch_type_1.py +63 -0
  459. attune/api_client/models/nullable_json_patch_type_1_op.py +8 -0
  460. attune/api_client/models/nullable_string_patch_type_1.py +63 -0
  461. attune/api_client/models/nullable_string_patch_type_1_op.py +8 -0
  462. attune/api_client/models/owner_type.py +12 -0
  463. attune/api_client/models/pack_description_patch_type_0.py +71 -0
  464. attune/api_client/models/pack_description_patch_type_0_op.py +8 -0
  465. attune/api_client/models/pack_description_patch_type_1.py +63 -0
  466. attune/api_client/models/pack_description_patch_type_1_op.py +8 -0
  467. attune/api_client/models/pack_install_response.py +112 -0
  468. attune/api_client/models/pack_response.py +193 -0
  469. attune/api_client/models/pack_response_conf_schema.py +47 -0
  470. attune/api_client/models/pack_response_config.py +47 -0
  471. attune/api_client/models/pack_response_meta.py +47 -0
  472. attune/api_client/models/pack_summary.py +143 -0
  473. attune/api_client/models/pack_test_execution.py +160 -0
  474. attune/api_client/models/pack_test_result.py +158 -0
  475. attune/api_client/models/pack_test_summary.py +160 -0
  476. attune/api_client/models/pack_workflow_sync_response.py +108 -0
  477. attune/api_client/models/pack_workflow_validation_response.py +96 -0
  478. attune/api_client/models/pack_workflow_validation_response_errors.py +56 -0
  479. attune/api_client/models/paginated_response_action_search_hit.py +92 -0
  480. attune/api_client/models/paginated_response_action_search_hit_items_item.py +140 -0
  481. attune/api_client/models/paginated_response_action_summary.py +92 -0
  482. attune/api_client/models/paginated_response_action_summary_items_item.py +466 -0
  483. attune/api_client/models/paginated_response_action_summary_items_item_required_worker_runtimes.py +47 -0
  484. attune/api_client/models/paginated_response_action_summary_items_item_worker_selector.py +47 -0
  485. attune/api_client/models/paginated_response_audit_event_summary.py +92 -0
  486. attune/api_client/models/paginated_response_audit_event_summary_items_item.py +269 -0
  487. attune/api_client/models/paginated_response_enforcement_summary.py +92 -0
  488. attune/api_client/models/paginated_response_enforcement_summary_items_item.py +148 -0
  489. attune/api_client/models/paginated_response_event_summary.py +92 -0
  490. attune/api_client/models/paginated_response_event_summary_items_item.py +191 -0
  491. attune/api_client/models/paginated_response_execution_summary.py +92 -0
  492. attune/api_client/models/paginated_response_execution_summary_items_item.py +292 -0
  493. attune/api_client/models/paginated_response_execution_summary_items_item_workflow_task_type_0.py +47 -0
  494. attune/api_client/models/paginated_response_identity_summary.py +92 -0
  495. attune/api_client/models/paginated_response_identity_summary_items_item.py +115 -0
  496. attune/api_client/models/paginated_response_inquiry_summary.py +92 -0
  497. attune/api_client/models/paginated_response_inquiry_summary_items_item.py +157 -0
  498. attune/api_client/models/paginated_response_key_summary.py +90 -0
  499. attune/api_client/models/paginated_response_key_summary_items_item.py +127 -0
  500. attune/api_client/models/paginated_response_pack_summary.py +92 -0
  501. attune/api_client/models/paginated_response_pack_summary_items_item.py +143 -0
  502. attune/api_client/models/paginated_response_pack_test_summary.py +92 -0
  503. attune/api_client/models/paginated_response_pack_test_summary_items_item.py +160 -0
  504. attune/api_client/models/paginated_response_rule_summary.py +92 -0
  505. attune/api_client/models/paginated_response_rule_summary_items_item.py +223 -0
  506. attune/api_client/models/paginated_response_rule_summary_items_item_action_params.py +47 -0
  507. attune/api_client/models/paginated_response_rule_summary_items_item_trigger_params.py +47 -0
  508. attune/api_client/models/paginated_response_runtime_summary.py +92 -0
  509. attune/api_client/models/paginated_response_runtime_summary_items_item.py +138 -0
  510. attune/api_client/models/paginated_response_sensor_summary.py +92 -0
  511. attune/api_client/models/paginated_response_sensor_summary_items_item.py +261 -0
  512. attune/api_client/models/paginated_response_trigger_summary.py +92 -0
  513. attune/api_client/models/paginated_response_trigger_summary_items_item.py +154 -0
  514. attune/api_client/models/paginated_response_work_queue_item_response.py +92 -0
  515. attune/api_client/models/paginated_response_work_queue_item_response_items_item.py +423 -0
  516. attune/api_client/models/paginated_response_work_queue_item_response_items_item_ack_summary_type_0.py +49 -0
  517. attune/api_client/models/paginated_response_work_queue_item_response_items_item_last_error_type_0.py +47 -0
  518. attune/api_client/models/paginated_response_work_queue_item_response_items_item_metadata.py +47 -0
  519. attune/api_client/models/paginated_response_work_queue_item_response_items_item_payload.py +47 -0
  520. attune/api_client/models/paginated_response_work_queue_summary.py +92 -0
  521. attune/api_client/models/paginated_response_work_queue_summary_items_item.py +169 -0
  522. attune/api_client/models/paginated_response_worker_summary.py +92 -0
  523. attune/api_client/models/paginated_response_worker_summary_items_item.py +359 -0
  524. attune/api_client/models/paginated_response_workflow_summary.py +92 -0
  525. attune/api_client/models/paginated_response_workflow_summary_items_item.py +143 -0
  526. attune/api_client/models/pagination_meta.py +128 -0
  527. attune/api_client/models/permission_assignment_response.py +95 -0
  528. attune/api_client/models/permission_set_role_assignment_response.py +111 -0
  529. attune/api_client/models/permission_set_summary.py +165 -0
  530. attune/api_client/models/preferred_worker_selector_term.py +78 -0
  531. attune/api_client/models/provider_profile_response.py +216 -0
  532. attune/api_client/models/queue_stats_response.py +155 -0
  533. attune/api_client/models/refresh_token_request.py +62 -0
  534. attune/api_client/models/refresh_token_response_200.py +90 -0
  535. attune/api_client/models/refresh_token_response_200_data.py +126 -0
  536. attune/api_client/models/register_pack_request.py +82 -0
  537. attune/api_client/models/register_request.py +92 -0
  538. attune/api_client/models/register_response_200.py +90 -0
  539. attune/api_client/models/register_response_200_data.py +126 -0
  540. attune/api_client/models/resolved_work_queue_dispatch_tuning_response.py +93 -0
  541. attune/api_client/models/retention_config.py +120 -0
  542. attune/api_client/models/retention_policy_type.py +11 -0
  543. attune/api_client/models/retention_target_config.py +82 -0
  544. attune/api_client/models/retention_targets_config.py +339 -0
  545. attune/api_client/models/revoke_integration_token_request.py +73 -0
  546. attune/api_client/models/revoke_integration_token_response_200.py +94 -0
  547. attune/api_client/models/revoke_integration_token_response_200_data.py +311 -0
  548. attune/api_client/models/rule_response.py +296 -0
  549. attune/api_client/models/rule_response_action_params.py +47 -0
  550. attune/api_client/models/rule_response_conditions.py +47 -0
  551. attune/api_client/models/rule_response_trigger_params.py +47 -0
  552. attune/api_client/models/rule_summary.py +209 -0
  553. attune/api_client/models/rule_summary_action_params.py +47 -0
  554. attune/api_client/models/rule_summary_trigger_params.py +47 -0
  555. attune/api_client/models/runtime_response.py +225 -0
  556. attune/api_client/models/runtime_response_distributions.py +47 -0
  557. attune/api_client/models/runtime_response_execution_config.py +47 -0
  558. attune/api_client/models/runtime_response_installation_type_0.py +47 -0
  559. attune/api_client/models/runtime_summary.py +138 -0
  560. attune/api_client/models/runtime_version_constraint_patch_type_0.py +73 -0
  561. attune/api_client/models/runtime_version_constraint_patch_type_0_op.py +8 -0
  562. attune/api_client/models/runtime_version_constraint_patch_type_1.py +65 -0
  563. attune/api_client/models/runtime_version_constraint_patch_type_1_op.py +8 -0
  564. attune/api_client/models/sensor_response.py +389 -0
  565. attune/api_client/models/sensor_response_param_schema_type_0.py +47 -0
  566. attune/api_client/models/sensor_response_worker_selector.py +47 -0
  567. attune/api_client/models/sensor_summary.py +261 -0
  568. attune/api_client/models/set_json.py +71 -0
  569. attune/api_client/models/set_json_op.py +8 -0
  570. attune/api_client/models/set_string.py +71 -0
  571. attune/api_client/models/set_string_op.py +8 -0
  572. attune/api_client/models/success_response.py +70 -0
  573. attune/api_client/models/sync_pack_workflows_response_200.py +94 -0
  574. attune/api_client/models/sync_pack_workflows_response_200_data.py +108 -0
  575. attune/api_client/models/taint_effect.py +9 -0
  576. attune/api_client/models/test_case_result.py +141 -0
  577. attune/api_client/models/test_pack_response_200.py +90 -0
  578. attune/api_client/models/test_pack_response_200_data.py +158 -0
  579. attune/api_client/models/test_status.py +11 -0
  580. attune/api_client/models/test_suite_result.py +132 -0
  581. attune/api_client/models/token_login_request.py +63 -0
  582. attune/api_client/models/token_login_response_200.py +90 -0
  583. attune/api_client/models/token_login_response_200_data.py +126 -0
  584. attune/api_client/models/token_response.py +126 -0
  585. attune/api_client/models/toleration_operator.py +9 -0
  586. attune/api_client/models/trigger_response.py +317 -0
  587. attune/api_client/models/trigger_response_out_schema_type_0.py +47 -0
  588. attune/api_client/models/trigger_response_param_schema_type_0.py +47 -0
  589. attune/api_client/models/trigger_string_patch_type_0.py +71 -0
  590. attune/api_client/models/trigger_string_patch_type_0_op.py +8 -0
  591. attune/api_client/models/trigger_string_patch_type_1.py +63 -0
  592. attune/api_client/models/trigger_string_patch_type_1_op.py +8 -0
  593. attune/api_client/models/trigger_summary.py +154 -0
  594. attune/api_client/models/unfreeze_identity_response_200.py +94 -0
  595. attune/api_client/models/unfreeze_identity_response_200_data.py +70 -0
  596. attune/api_client/models/update_action_request.py +806 -0
  597. attune/api_client/models/update_action_request_out_schema_type_0.py +47 -0
  598. attune/api_client/models/update_action_request_param_schema_type_0.py +47 -0
  599. attune/api_client/models/update_action_request_required_worker_runtimes_type_0.py +47 -0
  600. attune/api_client/models/update_action_request_worker_selector_type_0.py +47 -0
  601. attune/api_client/models/update_action_response_200.py +90 -0
  602. attune/api_client/models/update_action_response_200_data.py +556 -0
  603. attune/api_client/models/update_action_response_200_data_out_schema_type_0.py +47 -0
  604. attune/api_client/models/update_action_response_200_data_param_schema_type_0.py +47 -0
  605. attune/api_client/models/update_action_response_200_data_required_worker_runtimes.py +47 -0
  606. attune/api_client/models/update_action_response_200_data_worker_selector.py +47 -0
  607. attune/api_client/models/update_current_user_request.py +75 -0
  608. attune/api_client/models/update_current_user_response_200.py +94 -0
  609. attune/api_client/models/update_current_user_response_200_data.py +188 -0
  610. attune/api_client/models/update_identity_request.py +133 -0
  611. attune/api_client/models/update_identity_response_200.py +92 -0
  612. attune/api_client/models/update_identity_response_200_data.py +153 -0
  613. attune/api_client/models/update_inquiry_request.py +147 -0
  614. attune/api_client/models/update_inquiry_request_response_type_0.py +47 -0
  615. attune/api_client/models/update_key_request.py +104 -0
  616. attune/api_client/models/update_key_response_200.py +90 -0
  617. attune/api_client/models/update_key_response_200_data.py +283 -0
  618. attune/api_client/models/update_pack_request.py +367 -0
  619. attune/api_client/models/update_pack_request_conf_schema_type_0.py +47 -0
  620. attune/api_client/models/update_pack_request_config_type_0.py +47 -0
  621. attune/api_client/models/update_pack_request_meta_type_0.py +47 -0
  622. attune/api_client/models/update_pack_response_200.py +90 -0
  623. attune/api_client/models/update_pack_response_200_data.py +207 -0
  624. attune/api_client/models/update_pack_response_200_data_conf_schema.py +47 -0
  625. attune/api_client/models/update_pack_response_200_data_config.py +47 -0
  626. attune/api_client/models/update_pack_response_200_data_meta.py +47 -0
  627. attune/api_client/models/update_permission_set_request.py +103 -0
  628. attune/api_client/models/update_permission_set_response_200.py +94 -0
  629. attune/api_client/models/update_permission_set_response_200_data.py +165 -0
  630. attune/api_client/models/update_rule_request.py +310 -0
  631. attune/api_client/models/update_rule_request_action_params_type_0.py +47 -0
  632. attune/api_client/models/update_rule_request_conditions_type_0.py +47 -0
  633. attune/api_client/models/update_rule_request_trigger_params_type_0.py +47 -0
  634. attune/api_client/models/update_runtime_request.py +261 -0
  635. attune/api_client/models/update_runtime_request_distributions_type_0.py +47 -0
  636. attune/api_client/models/update_runtime_request_execution_config_type_0.py +47 -0
  637. attune/api_client/models/update_sensor_request.py +554 -0
  638. attune/api_client/models/update_sensor_request_param_schema_type_0.py +47 -0
  639. attune/api_client/models/update_sensor_request_worker_selector_type_0.py +47 -0
  640. attune/api_client/models/update_trigger_request.py +233 -0
  641. attune/api_client/models/update_trigger_request_out_schema_type_0.py +47 -0
  642. attune/api_client/models/update_trigger_request_param_schema_type_0.py +47 -0
  643. attune/api_client/models/update_work_queue_item_request.py +207 -0
  644. attune/api_client/models/update_work_queue_item_request_metadata_type_0.py +47 -0
  645. attune/api_client/models/update_work_queue_item_request_payload_type_0.py +47 -0
  646. attune/api_client/models/update_work_queue_request.py +495 -0
  647. attune/api_client/models/update_work_queue_request_action_params_type_0.py +47 -0
  648. attune/api_client/models/update_work_queue_request_config_type_0.py +47 -0
  649. attune/api_client/models/update_work_queue_request_item_schema_type_0.py +47 -0
  650. attune/api_client/models/update_workflow_request.py +265 -0
  651. attune/api_client/models/update_workflow_request_definition_type_0.py +47 -0
  652. attune/api_client/models/update_workflow_request_out_schema_type_0.py +47 -0
  653. attune/api_client/models/update_workflow_request_param_schema_type_0.py +47 -0
  654. attune/api_client/models/update_workflow_response_200.py +92 -0
  655. attune/api_client/models/update_workflow_response_200_data.py +249 -0
  656. attune/api_client/models/update_workflow_response_200_data_definition.py +47 -0
  657. attune/api_client/models/update_workflow_response_200_data_out_schema_type_0.py +47 -0
  658. attune/api_client/models/update_workflow_response_200_data_param_schema_type_0.py +47 -0
  659. attune/api_client/models/user_info.py +92 -0
  660. attune/api_client/models/validate_pack_workflows_response_200.py +94 -0
  661. attune/api_client/models/validate_pack_workflows_response_200_data.py +96 -0
  662. attune/api_client/models/validate_pack_workflows_response_200_data_errors.py +56 -0
  663. attune/api_client/models/webhook_receiver_request.py +124 -0
  664. attune/api_client/models/webhook_receiver_response.py +88 -0
  665. attune/api_client/models/work_queue_batch_mode.py +9 -0
  666. attune/api_client/models/work_queue_item_response.py +401 -0
  667. attune/api_client/models/work_queue_item_response_ack_summary_type_0.py +47 -0
  668. attune/api_client/models/work_queue_item_response_last_error_type_0.py +47 -0
  669. attune/api_client/models/work_queue_item_response_metadata.py +47 -0
  670. attune/api_client/models/work_queue_item_response_payload.py +47 -0
  671. attune/api_client/models/work_queue_item_status.py +14 -0
  672. attune/api_client/models/work_queue_response.py +362 -0
  673. attune/api_client/models/work_queue_response_action_params.py +47 -0
  674. attune/api_client/models/work_queue_response_config.py +47 -0
  675. attune/api_client/models/work_queue_response_item_schema.py +47 -0
  676. attune/api_client/models/work_queue_summary.py +169 -0
  677. attune/api_client/models/work_queue_update_strategy.py +10 -0
  678. attune/api_client/models/worker_affinity.py +127 -0
  679. attune/api_client/models/worker_health_state.py +13 -0
  680. attune/api_client/models/worker_label_expression.py +83 -0
  681. attune/api_client/models/worker_load_snapshot.py +253 -0
  682. attune/api_client/models/worker_role.py +9 -0
  683. attune/api_client/models/worker_runtime_support.py +69 -0
  684. attune/api_client/models/worker_selector_term.py +101 -0
  685. attune/api_client/models/worker_selector_term_match_labels.py +47 -0
  686. attune/api_client/models/worker_status.py +11 -0
  687. attune/api_client/models/worker_summary.py +359 -0
  688. attune/api_client/models/worker_toleration.py +131 -0
  689. attune/api_client/models/worker_type.py +10 -0
  690. attune/api_client/models/workflow_response.py +237 -0
  691. attune/api_client/models/workflow_response_definition.py +47 -0
  692. attune/api_client/models/workflow_response_out_schema_type_0.py +47 -0
  693. attune/api_client/models/workflow_response_param_schema_type_0.py +47 -0
  694. attune/api_client/models/workflow_summary.py +143 -0
  695. attune/api_client/models/workflow_sync_result.py +86 -0
  696. attune/api_client/types.py +54 -0
  697. attune/client.py +109 -0
  698. attune/context.py +211 -0
  699. attune/sensor.py +995 -0
  700. attune_sdk-0.1.0.dist-info/METADATA +283 -0
  701. attune_sdk-0.1.0.dist-info/RECORD +703 -0
  702. attune_sdk-0.1.0.dist-info/WHEEL +4 -0
  703. attune_sdk-0.1.0.dist-info/licenses/LICENSE +190 -0
attune/__init__.py ADDED
@@ -0,0 +1,60 @@
1
+ """
2
+ Attune Python SDK — helpers for building actions and sensors.
3
+
4
+ Quick start for actions::
5
+
6
+ import attune
7
+
8
+ def main(name: str, count: int = 1):
9
+ return {"greeting": f"Hello, {name}!" * count}
10
+
11
+ attune.run_action(main)
12
+
13
+ Quick start for sensors::
14
+
15
+ import attune
16
+
17
+ class MySensor(attune.PollingSensor):
18
+ def setup(self):
19
+ self.interval = 5.0
20
+
21
+ def poll(self, rule):
22
+ self.emit({"value": 42}, rule=rule)
23
+
24
+ attune.run_sensor(MySensor)
25
+
26
+ Access execution context anywhere::
27
+
28
+ import attune
29
+ print(attune.context.execution_id) # action context
30
+ print(attune.sensor_context.sensor_ref) # sensor context
31
+ """
32
+
33
+ from attune.action import run_action
34
+ from attune.api_client import AuthenticatedClient, Client
35
+ from attune.client import AttuneClient
36
+ from attune.context import (
37
+ ActionContext,
38
+ SensorContext,
39
+ action_context as context,
40
+ sensor_context,
41
+ )
42
+ from attune.sensor import AsyncPollingSensor, PollingSensor, RuleState, Sensor, run_sensor
43
+
44
+ __all__ = [
45
+ "run_action",
46
+ "run_sensor",
47
+ "context",
48
+ "sensor_context",
49
+ "ActionContext",
50
+ "AsyncPollingSensor",
51
+ "AttuneClient",
52
+ "AuthenticatedClient",
53
+ "Client",
54
+ "PollingSensor",
55
+ "RuleState",
56
+ "Sensor",
57
+ "SensorContext",
58
+ ]
59
+
60
+ __version__ = "0.1.0"
attune/action.py ADDED
@@ -0,0 +1,112 @@
1
+ """
2
+ Action runner — handles stdin parameter parsing, output formatting, and error handling.
3
+
4
+ Usage::
5
+
6
+ import attune
7
+
8
+ def main(name: str, count: int = 1):
9
+ return {"message": f"Hello, {name}!" * count}
10
+
11
+ attune.run_action(main)
12
+
13
+ The entrypoint function declares whatever parameters it needs — they are
14
+ passed as keyword arguments from the parsed stdin JSON. Parameters not
15
+ declared by the function are silently ignored (via ``**kwargs`` or filtering).
16
+
17
+ Exit codes:
18
+ - 0: success (result is written to stdout as JSON)
19
+ - 1: failure (error details written to stdout as JSON with ``success: false``)
20
+ """
21
+
22
+ from __future__ import annotations
23
+
24
+ import json
25
+ import sys
26
+ import traceback
27
+ from typing import Any, Callable
28
+
29
+
30
+ def read_params() -> dict[str, Any]:
31
+ """Read action parameters from stdin (JSON format).
32
+
33
+ The Attune worker delivers parameters as a single JSON object on stdin.
34
+ """
35
+ raw = sys.stdin.read().strip()
36
+ if not raw:
37
+ return {}
38
+ return json.loads(raw)
39
+
40
+
41
+ def emit_result(payload: Any) -> None:
42
+ """Write a JSON result to stdout."""
43
+ print(json.dumps(payload, default=str))
44
+
45
+
46
+ def emit_error(message: str, *, details: Any | None = None) -> None:
47
+ """Write a JSON error to stdout."""
48
+ payload: dict[str, Any] = {"success": False, "error": message}
49
+ if details is not None:
50
+ payload["details"] = details
51
+ print(json.dumps(payload, default=str))
52
+
53
+
54
+ def run_action(
55
+ entrypoint: Callable[..., Any],
56
+ *,
57
+ catch_exceptions: bool = True,
58
+ ) -> None:
59
+ """Run an action entrypoint with automatic parameter parsing and output handling.
60
+
61
+ The ``entrypoint`` is called with ``**params`` — each key in the JSON
62
+ input becomes a keyword argument. Authors write functions that declare
63
+ exactly the parameters they need::
64
+
65
+ def main(url: str, method: str = "GET", timeout: int = 30):
66
+ ...
67
+
68
+ If the function accepts ``**kwargs``, all parameters are passed through.
69
+ Otherwise, only parameters matching declared argument names are passed
70
+ (extras are silently dropped).
71
+
72
+ Args:
73
+ entrypoint: The action function to execute.
74
+ catch_exceptions: If True (default), uncaught exceptions are caught and
75
+ reported as JSON errors on stdout with exit code 1. Set to False for
76
+ development/debugging to let exceptions propagate.
77
+ """
78
+ try:
79
+ params = read_params()
80
+
81
+ # Filter params to only those the function accepts, unless it has **kwargs
82
+ import inspect
83
+
84
+ sig = inspect.signature(entrypoint)
85
+ has_var_keyword = any(
86
+ p.kind == p.VAR_KEYWORD for p in sig.parameters.values()
87
+ )
88
+
89
+ if has_var_keyword:
90
+ call_params = params
91
+ else:
92
+ accepted = set(sig.parameters.keys())
93
+ call_params = {k: v for k, v in params.items() if k in accepted}
94
+
95
+ result = entrypoint(**call_params)
96
+
97
+ # Emit result
98
+ if result is None:
99
+ result = {}
100
+ emit_result(result)
101
+ sys.exit(0)
102
+
103
+ except SystemExit:
104
+ raise
105
+ except Exception as exc:
106
+ if not catch_exceptions:
107
+ raise
108
+ emit_error(
109
+ str(exc),
110
+ details=traceback.format_exc() if sys.stderr.isatty() else None,
111
+ )
112
+ sys.exit(1)
@@ -0,0 +1,8 @@
1
+ """A client library for accessing Attune API"""
2
+
3
+ from .client import AuthenticatedClient, Client
4
+
5
+ __all__ = (
6
+ "AuthenticatedClient",
7
+ "Client",
8
+ )
@@ -0,0 +1 @@
1
+ """Contains methods for accessing the API"""
@@ -0,0 +1 @@
1
+ """Contains endpoint functions for accessing the API"""
@@ -0,0 +1,159 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, cast
3
+ from urllib.parse import quote
4
+
5
+ import httpx
6
+
7
+ from ... import errors
8
+ from ...client import AuthenticatedClient, Client
9
+ from ...models.success_response import SuccessResponse
10
+ from ...types import Response
11
+
12
+
13
+ def _get_kwargs(
14
+ ref: str,
15
+ ) -> dict[str, Any]:
16
+
17
+ _kwargs: dict[str, Any] = {
18
+ "method": "delete",
19
+ "url": "/api/v1/actions/{ref}".format(
20
+ ref=quote(str(ref), safe=""),
21
+ ),
22
+ }
23
+
24
+ return _kwargs
25
+
26
+
27
+ def _parse_response(
28
+ *, client: AuthenticatedClient | Client, response: httpx.Response
29
+ ) -> Any | SuccessResponse | None:
30
+ if response.status_code == 200:
31
+ response_200 = SuccessResponse.from_dict(response.json())
32
+
33
+ return response_200
34
+
35
+ if response.status_code == 404:
36
+ response_404 = cast(Any, None)
37
+ return response_404
38
+
39
+ if client.raise_on_unexpected_status:
40
+ raise errors.UnexpectedStatus(response.status_code, response.content)
41
+ else:
42
+ return None
43
+
44
+
45
+ def _build_response(
46
+ *, client: AuthenticatedClient | Client, response: httpx.Response
47
+ ) -> Response[Any | SuccessResponse]:
48
+ return Response(
49
+ status_code=HTTPStatus(response.status_code),
50
+ content=response.content,
51
+ headers=response.headers,
52
+ parsed=_parse_response(client=client, response=response),
53
+ )
54
+
55
+
56
+ def sync_detailed(
57
+ ref: str,
58
+ *,
59
+ client: AuthenticatedClient,
60
+ ) -> Response[Any | SuccessResponse]:
61
+ """Delete an action
62
+
63
+ Args:
64
+ ref (str):
65
+
66
+ Raises:
67
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
68
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
69
+
70
+ Returns:
71
+ Response[Any | SuccessResponse]
72
+ """
73
+
74
+ kwargs = _get_kwargs(
75
+ ref=ref,
76
+ )
77
+
78
+ response = client.get_httpx_client().request(
79
+ **kwargs,
80
+ )
81
+
82
+ return _build_response(client=client, response=response)
83
+
84
+
85
+ def sync(
86
+ ref: str,
87
+ *,
88
+ client: AuthenticatedClient,
89
+ ) -> Any | SuccessResponse | None:
90
+ """Delete an action
91
+
92
+ Args:
93
+ ref (str):
94
+
95
+ Raises:
96
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
97
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
98
+
99
+ Returns:
100
+ Any | SuccessResponse
101
+ """
102
+
103
+ return sync_detailed(
104
+ ref=ref,
105
+ client=client,
106
+ ).parsed
107
+
108
+
109
+ async def asyncio_detailed(
110
+ ref: str,
111
+ *,
112
+ client: AuthenticatedClient,
113
+ ) -> Response[Any | SuccessResponse]:
114
+ """Delete an action
115
+
116
+ Args:
117
+ ref (str):
118
+
119
+ Raises:
120
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
121
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
122
+
123
+ Returns:
124
+ Response[Any | SuccessResponse]
125
+ """
126
+
127
+ kwargs = _get_kwargs(
128
+ ref=ref,
129
+ )
130
+
131
+ response = await client.get_async_httpx_client().request(**kwargs)
132
+
133
+ return _build_response(client=client, response=response)
134
+
135
+
136
+ async def asyncio(
137
+ ref: str,
138
+ *,
139
+ client: AuthenticatedClient,
140
+ ) -> Any | SuccessResponse | None:
141
+ """Delete an action
142
+
143
+ Args:
144
+ ref (str):
145
+
146
+ Raises:
147
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
148
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
149
+
150
+ Returns:
151
+ Any | SuccessResponse
152
+ """
153
+
154
+ return (
155
+ await asyncio_detailed(
156
+ ref=ref,
157
+ client=client,
158
+ )
159
+ ).parsed
@@ -0,0 +1,159 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, cast
3
+ from urllib.parse import quote
4
+
5
+ import httpx
6
+
7
+ from ... import errors
8
+ from ...client import AuthenticatedClient, Client
9
+ from ...models.get_action_response_200 import GetActionResponse200
10
+ from ...types import Response
11
+
12
+
13
+ def _get_kwargs(
14
+ ref: str,
15
+ ) -> dict[str, Any]:
16
+
17
+ _kwargs: dict[str, Any] = {
18
+ "method": "get",
19
+ "url": "/api/v1/actions/{ref}".format(
20
+ ref=quote(str(ref), safe=""),
21
+ ),
22
+ }
23
+
24
+ return _kwargs
25
+
26
+
27
+ def _parse_response(
28
+ *, client: AuthenticatedClient | Client, response: httpx.Response
29
+ ) -> Any | GetActionResponse200 | None:
30
+ if response.status_code == 200:
31
+ response_200 = GetActionResponse200.from_dict(response.json())
32
+
33
+ return response_200
34
+
35
+ if response.status_code == 404:
36
+ response_404 = cast(Any, None)
37
+ return response_404
38
+
39
+ if client.raise_on_unexpected_status:
40
+ raise errors.UnexpectedStatus(response.status_code, response.content)
41
+ else:
42
+ return None
43
+
44
+
45
+ def _build_response(
46
+ *, client: AuthenticatedClient | Client, response: httpx.Response
47
+ ) -> Response[Any | GetActionResponse200]:
48
+ return Response(
49
+ status_code=HTTPStatus(response.status_code),
50
+ content=response.content,
51
+ headers=response.headers,
52
+ parsed=_parse_response(client=client, response=response),
53
+ )
54
+
55
+
56
+ def sync_detailed(
57
+ ref: str,
58
+ *,
59
+ client: AuthenticatedClient,
60
+ ) -> Response[Any | GetActionResponse200]:
61
+ """Get a single action by reference
62
+
63
+ Args:
64
+ ref (str):
65
+
66
+ Raises:
67
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
68
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
69
+
70
+ Returns:
71
+ Response[Any | GetActionResponse200]
72
+ """
73
+
74
+ kwargs = _get_kwargs(
75
+ ref=ref,
76
+ )
77
+
78
+ response = client.get_httpx_client().request(
79
+ **kwargs,
80
+ )
81
+
82
+ return _build_response(client=client, response=response)
83
+
84
+
85
+ def sync(
86
+ ref: str,
87
+ *,
88
+ client: AuthenticatedClient,
89
+ ) -> Any | GetActionResponse200 | None:
90
+ """Get a single action by reference
91
+
92
+ Args:
93
+ ref (str):
94
+
95
+ Raises:
96
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
97
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
98
+
99
+ Returns:
100
+ Any | GetActionResponse200
101
+ """
102
+
103
+ return sync_detailed(
104
+ ref=ref,
105
+ client=client,
106
+ ).parsed
107
+
108
+
109
+ async def asyncio_detailed(
110
+ ref: str,
111
+ *,
112
+ client: AuthenticatedClient,
113
+ ) -> Response[Any | GetActionResponse200]:
114
+ """Get a single action by reference
115
+
116
+ Args:
117
+ ref (str):
118
+
119
+ Raises:
120
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
121
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
122
+
123
+ Returns:
124
+ Response[Any | GetActionResponse200]
125
+ """
126
+
127
+ kwargs = _get_kwargs(
128
+ ref=ref,
129
+ )
130
+
131
+ response = await client.get_async_httpx_client().request(**kwargs)
132
+
133
+ return _build_response(client=client, response=response)
134
+
135
+
136
+ async def asyncio(
137
+ ref: str,
138
+ *,
139
+ client: AuthenticatedClient,
140
+ ) -> Any | GetActionResponse200 | None:
141
+ """Get a single action by reference
142
+
143
+ Args:
144
+ ref (str):
145
+
146
+ Raises:
147
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
148
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
149
+
150
+ Returns:
151
+ Any | GetActionResponse200
152
+ """
153
+
154
+ return (
155
+ await asyncio_detailed(
156
+ ref=ref,
157
+ client=client,
158
+ )
159
+ ).parsed
@@ -0,0 +1,159 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, cast
3
+ from urllib.parse import quote
4
+
5
+ import httpx
6
+
7
+ from ... import errors
8
+ from ...client import AuthenticatedClient, Client
9
+ from ...models.get_queue_stats_response_200 import GetQueueStatsResponse200
10
+ from ...types import Response
11
+
12
+
13
+ def _get_kwargs(
14
+ ref: str,
15
+ ) -> dict[str, Any]:
16
+
17
+ _kwargs: dict[str, Any] = {
18
+ "method": "get",
19
+ "url": "/api/v1/actions/{ref}/queue-stats".format(
20
+ ref=quote(str(ref), safe=""),
21
+ ),
22
+ }
23
+
24
+ return _kwargs
25
+
26
+
27
+ def _parse_response(
28
+ *, client: AuthenticatedClient | Client, response: httpx.Response
29
+ ) -> Any | GetQueueStatsResponse200 | None:
30
+ if response.status_code == 200:
31
+ response_200 = GetQueueStatsResponse200.from_dict(response.json())
32
+
33
+ return response_200
34
+
35
+ if response.status_code == 404:
36
+ response_404 = cast(Any, None)
37
+ return response_404
38
+
39
+ if client.raise_on_unexpected_status:
40
+ raise errors.UnexpectedStatus(response.status_code, response.content)
41
+ else:
42
+ return None
43
+
44
+
45
+ def _build_response(
46
+ *, client: AuthenticatedClient | Client, response: httpx.Response
47
+ ) -> Response[Any | GetQueueStatsResponse200]:
48
+ return Response(
49
+ status_code=HTTPStatus(response.status_code),
50
+ content=response.content,
51
+ headers=response.headers,
52
+ parsed=_parse_response(client=client, response=response),
53
+ )
54
+
55
+
56
+ def sync_detailed(
57
+ ref: str,
58
+ *,
59
+ client: AuthenticatedClient,
60
+ ) -> Response[Any | GetQueueStatsResponse200]:
61
+ """Get queue statistics for an action
62
+
63
+ Args:
64
+ ref (str):
65
+
66
+ Raises:
67
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
68
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
69
+
70
+ Returns:
71
+ Response[Any | GetQueueStatsResponse200]
72
+ """
73
+
74
+ kwargs = _get_kwargs(
75
+ ref=ref,
76
+ )
77
+
78
+ response = client.get_httpx_client().request(
79
+ **kwargs,
80
+ )
81
+
82
+ return _build_response(client=client, response=response)
83
+
84
+
85
+ def sync(
86
+ ref: str,
87
+ *,
88
+ client: AuthenticatedClient,
89
+ ) -> Any | GetQueueStatsResponse200 | None:
90
+ """Get queue statistics for an action
91
+
92
+ Args:
93
+ ref (str):
94
+
95
+ Raises:
96
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
97
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
98
+
99
+ Returns:
100
+ Any | GetQueueStatsResponse200
101
+ """
102
+
103
+ return sync_detailed(
104
+ ref=ref,
105
+ client=client,
106
+ ).parsed
107
+
108
+
109
+ async def asyncio_detailed(
110
+ ref: str,
111
+ *,
112
+ client: AuthenticatedClient,
113
+ ) -> Response[Any | GetQueueStatsResponse200]:
114
+ """Get queue statistics for an action
115
+
116
+ Args:
117
+ ref (str):
118
+
119
+ Raises:
120
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
121
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
122
+
123
+ Returns:
124
+ Response[Any | GetQueueStatsResponse200]
125
+ """
126
+
127
+ kwargs = _get_kwargs(
128
+ ref=ref,
129
+ )
130
+
131
+ response = await client.get_async_httpx_client().request(**kwargs)
132
+
133
+ return _build_response(client=client, response=response)
134
+
135
+
136
+ async def asyncio(
137
+ ref: str,
138
+ *,
139
+ client: AuthenticatedClient,
140
+ ) -> Any | GetQueueStatsResponse200 | None:
141
+ """Get queue statistics for an action
142
+
143
+ Args:
144
+ ref (str):
145
+
146
+ Raises:
147
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
148
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
149
+
150
+ Returns:
151
+ Any | GetQueueStatsResponse200
152
+ """
153
+
154
+ return (
155
+ await asyncio_detailed(
156
+ ref=ref,
157
+ client=client,
158
+ )
159
+ ).parsed