Files.com 1.6.404__tar.gz → 1.6.406__tar.gz

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 (297) hide show
  1. {files_com-1.6.404/files_com.egg-info → files_com-1.6.406}/PKG-INFO +2 -1
  2. {files_com-1.6.404 → files_com-1.6.406}/README.md +1 -0
  3. files_com-1.6.406/_VERSION +1 -0
  4. {files_com-1.6.404 → files_com-1.6.406/files_com.egg-info}/PKG-INFO +2 -1
  5. {files_com-1.6.404 → files_com-1.6.406}/files_com.egg-info/SOURCES.txt +2 -0
  6. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/__init__.py +3 -1
  7. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/error.py +15 -0
  8. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/__init__.py +1 -0
  9. files_com-1.6.406/files_sdk/models/ai_task.py +499 -0
  10. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/api_key.py +12 -4
  11. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/chat_session.py +4 -0
  12. {files_com-1.6.404 → files_com-1.6.406}/pyproject.toml +1 -1
  13. files_com-1.6.406/tests/test_ai_task.py +85 -0
  14. files_com-1.6.404/_VERSION +0 -1
  15. {files_com-1.6.404 → files_com-1.6.406}/LICENSE +0 -0
  16. {files_com-1.6.404 → files_com-1.6.406}/files_com.egg-info/dependency_links.txt +0 -0
  17. {files_com-1.6.404 → files_com-1.6.406}/files_com.egg-info/requires.txt +0 -0
  18. {files_com-1.6.404 → files_com-1.6.406}/files_com.egg-info/top_level.txt +0 -0
  19. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/api.py +0 -0
  20. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/api_client.py +0 -0
  21. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/list_obj.py +0 -0
  22. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/account_line_item.py +0 -0
  23. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/action.py +0 -0
  24. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/action_log.py +0 -0
  25. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/action_notification_export.py +0 -0
  26. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/action_notification_export_result.py +0 -0
  27. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/agent_push_update.py +0 -0
  28. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/api_request_log.py +0 -0
  29. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/app.py +0 -0
  30. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/as2_incoming_message.py +0 -0
  31. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/as2_outgoing_message.py +0 -0
  32. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/as2_partner.py +0 -0
  33. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/as2_station.py +0 -0
  34. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/auto.py +0 -0
  35. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/automation.py +0 -0
  36. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/automation_log.py +0 -0
  37. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/automation_run.py +0 -0
  38. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/bandwidth_snapshot.py +0 -0
  39. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/behavior.py +0 -0
  40. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/bundle.py +0 -0
  41. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/bundle_action.py +0 -0
  42. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/bundle_download.py +0 -0
  43. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/bundle_notification.py +0 -0
  44. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/bundle_path.py +0 -0
  45. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/bundle_recipient.py +0 -0
  46. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/bundle_registration.py +0 -0
  47. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/chat_message.py +0 -0
  48. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/child_site_management_policy.py +0 -0
  49. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/clickwrap.py +0 -0
  50. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/custom_domain.py +0 -0
  51. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/desktop_configuration_profile.py +0 -0
  52. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/dns_record.py +0 -0
  53. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/email_incoming_message.py +0 -0
  54. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/email_log.py +0 -0
  55. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/errors.py +0 -0
  56. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/event_channel.py +0 -0
  57. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/event_delivery_attempt.py +0 -0
  58. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/event_record.py +0 -0
  59. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/event_subscription.py +0 -0
  60. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/event_target.py +0 -0
  61. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/exavault_api_request_log.py +0 -0
  62. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/expectation.py +0 -0
  63. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/expectation_evaluation.py +0 -0
  64. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/expectation_incident.py +0 -0
  65. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/external_event.py +0 -0
  66. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/file.py +0 -0
  67. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/file_action.py +0 -0
  68. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/file_comment.py +0 -0
  69. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/file_comment_reaction.py +0 -0
  70. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/file_migration.py +0 -0
  71. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/file_migration_log.py +0 -0
  72. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/file_upload_part.py +0 -0
  73. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/folder.py +0 -0
  74. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/form_field.py +0 -0
  75. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/form_field_set.py +0 -0
  76. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/ftp_action_log.py +0 -0
  77. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/gpg_key.py +0 -0
  78. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/group.py +0 -0
  79. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/group_user.py +0 -0
  80. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/history.py +0 -0
  81. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/history_export.py +0 -0
  82. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/history_export_result.py +0 -0
  83. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/holiday_region.py +0 -0
  84. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/image.py +0 -0
  85. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/inbound_s3_log.py +0 -0
  86. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/inbox_recipient.py +0 -0
  87. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/inbox_registration.py +0 -0
  88. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/inbox_upload.py +0 -0
  89. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/invoice.py +0 -0
  90. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/invoice_line_item.py +0 -0
  91. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/ip_address.py +0 -0
  92. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/key_lifecycle_rule.py +0 -0
  93. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/lock.py +0 -0
  94. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/message.py +0 -0
  95. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/message_comment.py +0 -0
  96. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/message_comment_reaction.py +0 -0
  97. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/message_reaction.py +0 -0
  98. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/metadata_category.py +0 -0
  99. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/notification.py +0 -0
  100. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/outbound_connection_log.py +0 -0
  101. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/partner.py +0 -0
  102. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/partner_channel.py +0 -0
  103. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/partner_site.py +0 -0
  104. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/partner_site_request.py +0 -0
  105. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/payment.py +0 -0
  106. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/payment_line_item.py +0 -0
  107. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/pending_work_event.py +0 -0
  108. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/permission.py +0 -0
  109. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/preview.py +0 -0
  110. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/project.py +0 -0
  111. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/public_hosting_request_log.py +0 -0
  112. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/public_ip_address.py +0 -0
  113. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/public_key.py +0 -0
  114. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/remote_bandwidth_snapshot.py +0 -0
  115. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/remote_mount_backend.py +0 -0
  116. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/remote_server.py +0 -0
  117. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/remote_server_configuration_file.py +0 -0
  118. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/remote_server_credential.py +0 -0
  119. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/request.py +0 -0
  120. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/restore.py +0 -0
  121. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/scheduled_export.py +0 -0
  122. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/scim_log.py +0 -0
  123. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/session.py +0 -0
  124. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/settings_change.py +0 -0
  125. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/sftp_action_log.py +0 -0
  126. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/sftp_host_key.py +0 -0
  127. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/share_group.py +0 -0
  128. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/share_group_member.py +0 -0
  129. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/siem_http_destination.py +0 -0
  130. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/siem_http_destination_event.py +0 -0
  131. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/site.py +0 -0
  132. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/site_subdomain_redirect.py +0 -0
  133. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/snapshot.py +0 -0
  134. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/sso_event.py +0 -0
  135. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/sso_strategy.py +0 -0
  136. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/status.py +0 -0
  137. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/style.py +0 -0
  138. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/sync.py +0 -0
  139. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/sync_log.py +0 -0
  140. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/sync_run.py +0 -0
  141. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/sync_run_live_transfer.py +0 -0
  142. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/usage_by_top_level_dir.py +0 -0
  143. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/usage_daily_snapshot.py +0 -0
  144. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/usage_snapshot.py +0 -0
  145. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/user.py +0 -0
  146. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/user_cipher_use.py +0 -0
  147. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/user_lifecycle_rule.py +0 -0
  148. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/user_request.py +0 -0
  149. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/user_security_event.py +0 -0
  150. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/user_sftp_client_use.py +0 -0
  151. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/web_dav_action_log.py +0 -0
  152. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/webhook_test.py +0 -0
  153. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/workspace.py +0 -0
  154. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/models/zip_list_entry.py +0 -0
  155. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/path_util.py +0 -0
  156. {files_com-1.6.404 → files_com-1.6.406}/files_sdk/util.py +0 -0
  157. {files_com-1.6.404 → files_com-1.6.406}/setup.cfg +0 -0
  158. {files_com-1.6.404 → files_com-1.6.406}/tests/test_account_line_item.py +0 -0
  159. {files_com-1.6.404 → files_com-1.6.406}/tests/test_action.py +0 -0
  160. {files_com-1.6.404 → files_com-1.6.406}/tests/test_action_log.py +0 -0
  161. {files_com-1.6.404 → files_com-1.6.406}/tests/test_action_notification_export.py +0 -0
  162. {files_com-1.6.404 → files_com-1.6.406}/tests/test_action_notification_export_result.py +0 -0
  163. {files_com-1.6.404 → files_com-1.6.406}/tests/test_agent_push_update.py +0 -0
  164. {files_com-1.6.404 → files_com-1.6.406}/tests/test_api_errors.py +0 -0
  165. {files_com-1.6.404 → files_com-1.6.406}/tests/test_api_key.py +0 -0
  166. {files_com-1.6.404 → files_com-1.6.406}/tests/test_api_request_log.py +0 -0
  167. {files_com-1.6.404 → files_com-1.6.406}/tests/test_app.py +0 -0
  168. {files_com-1.6.404 → files_com-1.6.406}/tests/test_as2_incoming_message.py +0 -0
  169. {files_com-1.6.404 → files_com-1.6.406}/tests/test_as2_outgoing_message.py +0 -0
  170. {files_com-1.6.404 → files_com-1.6.406}/tests/test_as2_partner.py +0 -0
  171. {files_com-1.6.404 → files_com-1.6.406}/tests/test_as2_station.py +0 -0
  172. {files_com-1.6.404 → files_com-1.6.406}/tests/test_auto.py +0 -0
  173. {files_com-1.6.404 → files_com-1.6.406}/tests/test_automation.py +0 -0
  174. {files_com-1.6.404 → files_com-1.6.406}/tests/test_automation_log.py +0 -0
  175. {files_com-1.6.404 → files_com-1.6.406}/tests/test_automation_run.py +0 -0
  176. {files_com-1.6.404 → files_com-1.6.406}/tests/test_bandwidth_snapshot.py +0 -0
  177. {files_com-1.6.404 → files_com-1.6.406}/tests/test_behavior.py +0 -0
  178. {files_com-1.6.404 → files_com-1.6.406}/tests/test_bundle.py +0 -0
  179. {files_com-1.6.404 → files_com-1.6.406}/tests/test_bundle_action.py +0 -0
  180. {files_com-1.6.404 → files_com-1.6.406}/tests/test_bundle_download.py +0 -0
  181. {files_com-1.6.404 → files_com-1.6.406}/tests/test_bundle_notification.py +0 -0
  182. {files_com-1.6.404 → files_com-1.6.406}/tests/test_bundle_path.py +0 -0
  183. {files_com-1.6.404 → files_com-1.6.406}/tests/test_bundle_recipient.py +0 -0
  184. {files_com-1.6.404 → files_com-1.6.406}/tests/test_bundle_registration.py +0 -0
  185. {files_com-1.6.404 → files_com-1.6.406}/tests/test_chat_message.py +0 -0
  186. {files_com-1.6.404 → files_com-1.6.406}/tests/test_chat_session.py +0 -0
  187. {files_com-1.6.404 → files_com-1.6.406}/tests/test_child_site_management_policy.py +0 -0
  188. {files_com-1.6.404 → files_com-1.6.406}/tests/test_clickwrap.py +0 -0
  189. {files_com-1.6.404 → files_com-1.6.406}/tests/test_connection_adapter.py +0 -0
  190. {files_com-1.6.404 → files_com-1.6.406}/tests/test_custom_domain.py +0 -0
  191. {files_com-1.6.404 → files_com-1.6.406}/tests/test_decimal_contract.py +0 -0
  192. {files_com-1.6.404 → files_com-1.6.406}/tests/test_desktop_configuration_profile.py +0 -0
  193. {files_com-1.6.404 → files_com-1.6.406}/tests/test_dns_record.py +0 -0
  194. {files_com-1.6.404 → files_com-1.6.406}/tests/test_email_incoming_message.py +0 -0
  195. {files_com-1.6.404 → files_com-1.6.406}/tests/test_email_log.py +0 -0
  196. {files_com-1.6.404 → files_com-1.6.406}/tests/test_errors.py +0 -0
  197. {files_com-1.6.404 → files_com-1.6.406}/tests/test_event_channel.py +0 -0
  198. {files_com-1.6.404 → files_com-1.6.406}/tests/test_event_delivery_attempt.py +0 -0
  199. {files_com-1.6.404 → files_com-1.6.406}/tests/test_event_record.py +0 -0
  200. {files_com-1.6.404 → files_com-1.6.406}/tests/test_event_subscription.py +0 -0
  201. {files_com-1.6.404 → files_com-1.6.406}/tests/test_event_target.py +0 -0
  202. {files_com-1.6.404 → files_com-1.6.406}/tests/test_exavault_api_request_log.py +0 -0
  203. {files_com-1.6.404 → files_com-1.6.406}/tests/test_expectation.py +0 -0
  204. {files_com-1.6.404 → files_com-1.6.406}/tests/test_expectation_evaluation.py +0 -0
  205. {files_com-1.6.404 → files_com-1.6.406}/tests/test_expectation_incident.py +0 -0
  206. {files_com-1.6.404 → files_com-1.6.406}/tests/test_external_event.py +0 -0
  207. {files_com-1.6.404 → files_com-1.6.406}/tests/test_file.py +0 -0
  208. {files_com-1.6.404 → files_com-1.6.406}/tests/test_file_action.py +0 -0
  209. {files_com-1.6.404 → files_com-1.6.406}/tests/test_file_comment.py +0 -0
  210. {files_com-1.6.404 → files_com-1.6.406}/tests/test_file_comment_reaction.py +0 -0
  211. {files_com-1.6.404 → files_com-1.6.406}/tests/test_file_migration.py +0 -0
  212. {files_com-1.6.404 → files_com-1.6.406}/tests/test_file_migration_log.py +0 -0
  213. {files_com-1.6.404 → files_com-1.6.406}/tests/test_file_upload_part.py +0 -0
  214. {files_com-1.6.404 → files_com-1.6.406}/tests/test_folder.py +0 -0
  215. {files_com-1.6.404 → files_com-1.6.406}/tests/test_form_field.py +0 -0
  216. {files_com-1.6.404 → files_com-1.6.406}/tests/test_form_field_set.py +0 -0
  217. {files_com-1.6.404 → files_com-1.6.406}/tests/test_ftp_action_log.py +0 -0
  218. {files_com-1.6.404 → files_com-1.6.406}/tests/test_gpg_key.py +0 -0
  219. {files_com-1.6.404 → files_com-1.6.406}/tests/test_group.py +0 -0
  220. {files_com-1.6.404 → files_com-1.6.406}/tests/test_group_user.py +0 -0
  221. {files_com-1.6.404 → files_com-1.6.406}/tests/test_history.py +0 -0
  222. {files_com-1.6.404 → files_com-1.6.406}/tests/test_history_export.py +0 -0
  223. {files_com-1.6.404 → files_com-1.6.406}/tests/test_history_export_result.py +0 -0
  224. {files_com-1.6.404 → files_com-1.6.406}/tests/test_holiday_region.py +0 -0
  225. {files_com-1.6.404 → files_com-1.6.406}/tests/test_image.py +0 -0
  226. {files_com-1.6.404 → files_com-1.6.406}/tests/test_inbound_s3_log.py +0 -0
  227. {files_com-1.6.404 → files_com-1.6.406}/tests/test_inbox_recipient.py +0 -0
  228. {files_com-1.6.404 → files_com-1.6.406}/tests/test_inbox_registration.py +0 -0
  229. {files_com-1.6.404 → files_com-1.6.406}/tests/test_inbox_upload.py +0 -0
  230. {files_com-1.6.404 → files_com-1.6.406}/tests/test_invoice.py +0 -0
  231. {files_com-1.6.404 → files_com-1.6.406}/tests/test_invoice_line_item.py +0 -0
  232. {files_com-1.6.404 → files_com-1.6.406}/tests/test_ip_address.py +0 -0
  233. {files_com-1.6.404 → files_com-1.6.406}/tests/test_key_lifecycle_rule.py +0 -0
  234. {files_com-1.6.404 → files_com-1.6.406}/tests/test_lock.py +0 -0
  235. {files_com-1.6.404 → files_com-1.6.406}/tests/test_message.py +0 -0
  236. {files_com-1.6.404 → files_com-1.6.406}/tests/test_message_comment.py +0 -0
  237. {files_com-1.6.404 → files_com-1.6.406}/tests/test_message_comment_reaction.py +0 -0
  238. {files_com-1.6.404 → files_com-1.6.406}/tests/test_message_reaction.py +0 -0
  239. {files_com-1.6.404 → files_com-1.6.406}/tests/test_metadata_category.py +0 -0
  240. {files_com-1.6.404 → files_com-1.6.406}/tests/test_notification.py +0 -0
  241. {files_com-1.6.404 → files_com-1.6.406}/tests/test_outbound_connection_log.py +0 -0
  242. {files_com-1.6.404 → files_com-1.6.406}/tests/test_partner.py +0 -0
  243. {files_com-1.6.404 → files_com-1.6.406}/tests/test_partner_channel.py +0 -0
  244. {files_com-1.6.404 → files_com-1.6.406}/tests/test_partner_site.py +0 -0
  245. {files_com-1.6.404 → files_com-1.6.406}/tests/test_partner_site_request.py +0 -0
  246. {files_com-1.6.404 → files_com-1.6.406}/tests/test_path_util.py +0 -0
  247. {files_com-1.6.404 → files_com-1.6.406}/tests/test_payment.py +0 -0
  248. {files_com-1.6.404 → files_com-1.6.406}/tests/test_payment_line_item.py +0 -0
  249. {files_com-1.6.404 → files_com-1.6.406}/tests/test_pending_work_event.py +0 -0
  250. {files_com-1.6.404 → files_com-1.6.406}/tests/test_permission.py +0 -0
  251. {files_com-1.6.404 → files_com-1.6.406}/tests/test_preview.py +0 -0
  252. {files_com-1.6.404 → files_com-1.6.406}/tests/test_project.py +0 -0
  253. {files_com-1.6.404 → files_com-1.6.406}/tests/test_public_hosting_request_log.py +0 -0
  254. {files_com-1.6.404 → files_com-1.6.406}/tests/test_public_ip_address.py +0 -0
  255. {files_com-1.6.404 → files_com-1.6.406}/tests/test_public_key.py +0 -0
  256. {files_com-1.6.404 → files_com-1.6.406}/tests/test_remote_bandwidth_snapshot.py +0 -0
  257. {files_com-1.6.404 → files_com-1.6.406}/tests/test_remote_mount_backend.py +0 -0
  258. {files_com-1.6.404 → files_com-1.6.406}/tests/test_remote_server.py +0 -0
  259. {files_com-1.6.404 → files_com-1.6.406}/tests/test_remote_server_configuration_file.py +0 -0
  260. {files_com-1.6.404 → files_com-1.6.406}/tests/test_remote_server_credential.py +0 -0
  261. {files_com-1.6.404 → files_com-1.6.406}/tests/test_request.py +0 -0
  262. {files_com-1.6.404 → files_com-1.6.406}/tests/test_restore.py +0 -0
  263. {files_com-1.6.404 → files_com-1.6.406}/tests/test_scheduled_export.py +0 -0
  264. {files_com-1.6.404 → files_com-1.6.406}/tests/test_scim_log.py +0 -0
  265. {files_com-1.6.404 → files_com-1.6.406}/tests/test_session.py +0 -0
  266. {files_com-1.6.404 → files_com-1.6.406}/tests/test_settings_change.py +0 -0
  267. {files_com-1.6.404 → files_com-1.6.406}/tests/test_sftp_action_log.py +0 -0
  268. {files_com-1.6.404 → files_com-1.6.406}/tests/test_sftp_host_key.py +0 -0
  269. {files_com-1.6.404 → files_com-1.6.406}/tests/test_share_group.py +0 -0
  270. {files_com-1.6.404 → files_com-1.6.406}/tests/test_share_group_member.py +0 -0
  271. {files_com-1.6.404 → files_com-1.6.406}/tests/test_siem_http_destination.py +0 -0
  272. {files_com-1.6.404 → files_com-1.6.406}/tests/test_siem_http_destination_event.py +0 -0
  273. {files_com-1.6.404 → files_com-1.6.406}/tests/test_site.py +0 -0
  274. {files_com-1.6.404 → files_com-1.6.406}/tests/test_site_subdomain_redirect.py +0 -0
  275. {files_com-1.6.404 → files_com-1.6.406}/tests/test_snapshot.py +0 -0
  276. {files_com-1.6.404 → files_com-1.6.406}/tests/test_sso_event.py +0 -0
  277. {files_com-1.6.404 → files_com-1.6.406}/tests/test_sso_strategy.py +0 -0
  278. {files_com-1.6.404 → files_com-1.6.406}/tests/test_status.py +0 -0
  279. {files_com-1.6.404 → files_com-1.6.406}/tests/test_style.py +0 -0
  280. {files_com-1.6.404 → files_com-1.6.406}/tests/test_sync.py +0 -0
  281. {files_com-1.6.404 → files_com-1.6.406}/tests/test_sync_log.py +0 -0
  282. {files_com-1.6.404 → files_com-1.6.406}/tests/test_sync_run.py +0 -0
  283. {files_com-1.6.404 → files_com-1.6.406}/tests/test_sync_run_live_transfer.py +0 -0
  284. {files_com-1.6.404 → files_com-1.6.406}/tests/test_usage_by_top_level_dir.py +0 -0
  285. {files_com-1.6.404 → files_com-1.6.406}/tests/test_usage_daily_snapshot.py +0 -0
  286. {files_com-1.6.404 → files_com-1.6.406}/tests/test_usage_snapshot.py +0 -0
  287. {files_com-1.6.404 → files_com-1.6.406}/tests/test_user.py +0 -0
  288. {files_com-1.6.404 → files_com-1.6.406}/tests/test_user_cipher_use.py +0 -0
  289. {files_com-1.6.404 → files_com-1.6.406}/tests/test_user_lifecycle_rule.py +0 -0
  290. {files_com-1.6.404 → files_com-1.6.406}/tests/test_user_request.py +0 -0
  291. {files_com-1.6.404 → files_com-1.6.406}/tests/test_user_security_event.py +0 -0
  292. {files_com-1.6.404 → files_com-1.6.406}/tests/test_user_sftp_client_use.py +0 -0
  293. {files_com-1.6.404 → files_com-1.6.406}/tests/test_web_dav_action_log.py +0 -0
  294. {files_com-1.6.404 → files_com-1.6.406}/tests/test_webhook_test.py +0 -0
  295. {files_com-1.6.404 → files_com-1.6.406}/tests/test_workspace.py +0 -0
  296. {files_com-1.6.404 → files_com-1.6.406}/tests/test_workspace_id.py +0 -0
  297. {files_com-1.6.404 → files_com-1.6.406}/tests/test_zip_list_entry.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: files_com
3
- Version: 1.6.404
3
+ Version: 1.6.406
4
4
  Summary: Python bindings for the Files.com API
5
5
  License: MIT
6
6
  Requires-Python: >=3.5
@@ -668,6 +668,7 @@ files_sdk.error.FolderAdminPermissionRequiredError -> files_sdk.error.NotAuthori
668
668
  |`SiteNotFoundError`| `NotFoundError` |
669
669
  |`UserNotFoundError`| `NotFoundError` |
670
670
  |`AgentUnavailableError`| `ProcessingFailureError` |
671
+ |`AiTaskCannotBeRunManuallyError`| `ProcessingFailureError` |
671
672
  |`AlreadyCompletedError`| `ProcessingFailureError` |
672
673
  |`AutomationCannotBeRunManuallyError`| `ProcessingFailureError` |
673
674
  |`BehaviorNotAllowedOnRemoteServerError`| `ProcessingFailureError` |
@@ -656,6 +656,7 @@ files_sdk.error.FolderAdminPermissionRequiredError -> files_sdk.error.NotAuthori
656
656
  |`SiteNotFoundError`| `NotFoundError` |
657
657
  |`UserNotFoundError`| `NotFoundError` |
658
658
  |`AgentUnavailableError`| `ProcessingFailureError` |
659
+ |`AiTaskCannotBeRunManuallyError`| `ProcessingFailureError` |
659
660
  |`AlreadyCompletedError`| `ProcessingFailureError` |
660
661
  |`AutomationCannotBeRunManuallyError`| `ProcessingFailureError` |
661
662
  |`BehaviorNotAllowedOnRemoteServerError`| `ProcessingFailureError` |
@@ -0,0 +1 @@
1
+ 1.6.406
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: files_com
3
- Version: 1.6.404
3
+ Version: 1.6.406
4
4
  Summary: Python bindings for the Files.com API
5
5
  License: MIT
6
6
  Requires-Python: >=3.5
@@ -668,6 +668,7 @@ files_sdk.error.FolderAdminPermissionRequiredError -> files_sdk.error.NotAuthori
668
668
  |`SiteNotFoundError`| `NotFoundError` |
669
669
  |`UserNotFoundError`| `NotFoundError` |
670
670
  |`AgentUnavailableError`| `ProcessingFailureError` |
671
+ |`AiTaskCannotBeRunManuallyError`| `ProcessingFailureError` |
671
672
  |`AlreadyCompletedError`| `ProcessingFailureError` |
672
673
  |`AutomationCannotBeRunManuallyError`| `ProcessingFailureError` |
673
674
  |`BehaviorNotAllowedOnRemoteServerError`| `ProcessingFailureError` |
@@ -22,6 +22,7 @@ files_sdk/models/action_log.py
22
22
  files_sdk/models/action_notification_export.py
23
23
  files_sdk/models/action_notification_export_result.py
24
24
  files_sdk/models/agent_push_update.py
25
+ files_sdk/models/ai_task.py
25
26
  files_sdk/models/api_key.py
26
27
  files_sdk/models/api_request_log.py
27
28
  files_sdk/models/app.py
@@ -157,6 +158,7 @@ tests/test_action_log.py
157
158
  tests/test_action_notification_export.py
158
159
  tests/test_action_notification_export_result.py
159
160
  tests/test_agent_push_update.py
161
+ tests/test_ai_task.py
160
162
  tests/test_api_errors.py
161
163
  tests/test_api_key.py
162
164
  tests/test_api_request_log.py
@@ -5,6 +5,7 @@ import files_sdk.models.action_log as action_log
5
5
  import files_sdk.models.action_notification_export as action_notification_export
6
6
  import files_sdk.models.action_notification_export_result as action_notification_export_result
7
7
  import files_sdk.models.agent_push_update as agent_push_update
8
+ import files_sdk.models.ai_task as ai_task
8
9
  import files_sdk.models.api_key as api_key
9
10
  import files_sdk.models.api_request_log as api_request_log
10
11
  import files_sdk.models.app as app
@@ -145,6 +146,7 @@ from files_sdk.models.action_notification_export_result import (
145
146
  ActionNotificationExportResult,
146
147
  )
147
148
  from files_sdk.models.agent_push_update import AgentPushUpdate
149
+ from files_sdk.models.ai_task import AiTask
148
150
  from files_sdk.models.api_key import ApiKey
149
151
  from files_sdk.models.api_request_log import ApiRequestLog
150
152
  from files_sdk.models.app import App
@@ -294,7 +296,7 @@ source_ip = None
294
296
  workspace_id = None
295
297
  base_url = "https://app.files.com"
296
298
  base_path = "api/rest/v1"
297
- version = "1.6.404"
299
+ version = "1.6.406"
298
300
 
299
301
  __version__ = version
300
302
 
@@ -2098,6 +2098,21 @@ class AgentUnavailableError(ProcessingFailureError):
2098
2098
  )
2099
2099
 
2100
2100
 
2101
+ class AiTaskCannotBeRunManuallyError(ProcessingFailureError):
2102
+ def __init__(
2103
+ self,
2104
+ message=None,
2105
+ http_body=None,
2106
+ http_status=None,
2107
+ json_body=None,
2108
+ headers=None,
2109
+ code=None,
2110
+ ):
2111
+ super().__init__(
2112
+ message, http_body, http_status, json_body, headers, code
2113
+ )
2114
+
2115
+
2101
2116
  class AlreadyCompletedError(ProcessingFailureError):
2102
2117
  def __init__(
2103
2118
  self,
@@ -8,6 +8,7 @@ from files_sdk.models.action_notification_export_result import (
8
8
  ActionNotificationExportResult,
9
9
  )
10
10
  from files_sdk.models.agent_push_update import AgentPushUpdate
11
+ from files_sdk.models.ai_task import AiTask
11
12
  from files_sdk.models.api_key import ApiKey
12
13
  from files_sdk.models.api_request_log import ApiRequestLog
13
14
  from files_sdk.models.app import App
@@ -0,0 +1,499 @@
1
+ import builtins # noqa: F401
2
+ from files_sdk.api import Api # noqa: F401
3
+ from files_sdk.list_obj import ListObj
4
+ from files_sdk.error import ( # noqa: F401
5
+ InvalidParameterError,
6
+ MissingParameterError,
7
+ NotImplementedError,
8
+ )
9
+
10
+
11
+ class AiTask:
12
+ default_attributes = {
13
+ "id": None, # int64 - AI Task ID.
14
+ "workspace_id": None, # int64 - Workspace ID. `0` means the default workspace.
15
+ "name": None, # string - AI Task name.
16
+ "description": None, # string - AI Task description.
17
+ "prompt": None, # string - Prompt sent when this AI Task is invoked.
18
+ "permission_set": None, # string - Permissions used by the internal API key for this AI Task. Valid values are `full` and `files_only`.
19
+ "path": None, # string - Path scope used for action-triggered AI Tasks. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
20
+ "source": None, # string - Source glob used with `path` for action-triggered AI Tasks.
21
+ "disabled": None, # boolean - If true, this AI Task will not run.
22
+ "trigger": None, # string - How this AI Task is triggered.
23
+ "trigger_actions": None, # array(string) - If trigger is `action`, the file action types that invoke this AI Task. Valid actions are create, copy, move, archived_delete, update, read, destroy.
24
+ "interval": None, # string - If trigger is `daily`, this specifies how often to run the AI Task.
25
+ "recurring_day": None, # int64 - If trigger is `daily`, this selects the day number inside the chosen interval.
26
+ "schedule_days_of_week": None, # array(int64) - If trigger is `custom_schedule`, the 0-based weekdays used by the schedule.
27
+ "schedule_times_of_day": None, # array(string) - Times of day in HH:MM format for scheduled AI Tasks.
28
+ "schedule_time_zone": None, # string - Time zone used by the AI Task schedule.
29
+ "holiday_region": None, # string - Optional holiday region used by scheduled AI Tasks.
30
+ "human_readable_schedule": None, # string - Human-readable schedule description.
31
+ "last_run_at": None, # date-time - Most recent successful invocation time.
32
+ "master_admin_user_id": None, # int64 - Master User ID used for AI Task invocations.
33
+ "created_at": None, # date-time - Creation time.
34
+ "updated_at": None, # date-time - Last update time.
35
+ }
36
+
37
+ def __init__(self, attributes=None, options=None):
38
+ if not isinstance(attributes, dict):
39
+ attributes = {}
40
+ if not isinstance(options, dict):
41
+ options = {}
42
+ self.set_attributes(attributes)
43
+ self.options = options
44
+
45
+ def set_attributes(self, attributes):
46
+ for attribute, default_value in AiTask.default_attributes.items():
47
+ value = attributes.get(attribute, default_value)
48
+ setattr(self, attribute, value)
49
+
50
+ def get_attributes(self):
51
+ attrs = {
52
+ k: getattr(self, k, None)
53
+ for k in AiTask.default_attributes
54
+ if getattr(self, k, None) is not None
55
+ }
56
+ return attrs
57
+
58
+ # Manually Run AI Task
59
+ def manual_run(self, params=None):
60
+ if not isinstance(params, dict):
61
+ params = {}
62
+
63
+ if hasattr(self, "id") and self.id:
64
+ params["id"] = self.id
65
+ else:
66
+ raise MissingParameterError("Current object doesn't have a id")
67
+ if "id" not in params:
68
+ raise MissingParameterError("Parameter missing: id")
69
+ if "id" in params and not isinstance(params["id"], int):
70
+ raise InvalidParameterError("Bad parameter: id must be an int")
71
+ Api.send_request(
72
+ "POST",
73
+ "/ai_tasks/{id}/manual_run".format(id=params["id"]),
74
+ params,
75
+ self.options,
76
+ )
77
+
78
+ # Parameters:
79
+ # description - string - AI Task description.
80
+ # disabled - boolean - If true, this AI Task will not run.
81
+ # holiday_region - string - Optional holiday region used by scheduled AI Tasks.
82
+ # interval - string - If trigger is `daily`, this specifies how often to run the AI Task.
83
+ # name - string - AI Task name.
84
+ # path - string - Path scope used for action-triggered AI Tasks.
85
+ # permission_set - string - Permissions used by the internal API key for this AI Task. Valid values are `full` and `files_only`.
86
+ # prompt - string - Prompt sent when this AI Task is invoked.
87
+ # recurring_day - int64 - If trigger is `daily`, this selects the day number inside the chosen interval.
88
+ # schedule_days_of_week - array(int64) - If trigger is `custom_schedule`, the 0-based weekdays used by the schedule.
89
+ # schedule_time_zone - string - Time zone used by the AI Task schedule.
90
+ # schedule_times_of_day - array(string) - Times of day in HH:MM format for scheduled AI Tasks.
91
+ # source - string - Source glob used with `path` for action-triggered AI Tasks.
92
+ # trigger - string - How this AI Task is triggered.
93
+ # trigger_actions - array(string) - If trigger is `action`, the file action types that invoke this AI Task. Valid actions are create, copy, move, archived_delete, update, read, destroy.
94
+ # workspace_id - int64 - Workspace ID. `0` means the default workspace.
95
+ def update(self, params=None):
96
+ if not isinstance(params, dict):
97
+ params = {}
98
+
99
+ if hasattr(self, "id") and self.id:
100
+ params["id"] = self.id
101
+ else:
102
+ raise MissingParameterError("Current object doesn't have a id")
103
+ if "id" not in params:
104
+ raise MissingParameterError("Parameter missing: id")
105
+ if "id" in params and not isinstance(params["id"], int):
106
+ raise InvalidParameterError("Bad parameter: id must be an int")
107
+ if "description" in params and not isinstance(
108
+ params["description"], str
109
+ ):
110
+ raise InvalidParameterError(
111
+ "Bad parameter: description must be an str"
112
+ )
113
+ if "holiday_region" in params and not isinstance(
114
+ params["holiday_region"], str
115
+ ):
116
+ raise InvalidParameterError(
117
+ "Bad parameter: holiday_region must be an str"
118
+ )
119
+ if "interval" in params and not isinstance(params["interval"], str):
120
+ raise InvalidParameterError(
121
+ "Bad parameter: interval must be an str"
122
+ )
123
+ if "name" in params and not isinstance(params["name"], str):
124
+ raise InvalidParameterError("Bad parameter: name must be an str")
125
+ if "path" in params and not isinstance(params["path"], str):
126
+ raise InvalidParameterError("Bad parameter: path must be an str")
127
+ if "permission_set" in params and not isinstance(
128
+ params["permission_set"], str
129
+ ):
130
+ raise InvalidParameterError(
131
+ "Bad parameter: permission_set must be an str"
132
+ )
133
+ if "prompt" in params and not isinstance(params["prompt"], str):
134
+ raise InvalidParameterError("Bad parameter: prompt must be an str")
135
+ if "recurring_day" in params and not isinstance(
136
+ params["recurring_day"], int
137
+ ):
138
+ raise InvalidParameterError(
139
+ "Bad parameter: recurring_day must be an int"
140
+ )
141
+ if "schedule_days_of_week" in params and not isinstance(
142
+ params["schedule_days_of_week"], builtins.list
143
+ ):
144
+ raise InvalidParameterError(
145
+ "Bad parameter: schedule_days_of_week must be an list"
146
+ )
147
+ if "schedule_time_zone" in params and not isinstance(
148
+ params["schedule_time_zone"], str
149
+ ):
150
+ raise InvalidParameterError(
151
+ "Bad parameter: schedule_time_zone must be an str"
152
+ )
153
+ if "schedule_times_of_day" in params and not isinstance(
154
+ params["schedule_times_of_day"], builtins.list
155
+ ):
156
+ raise InvalidParameterError(
157
+ "Bad parameter: schedule_times_of_day must be an list"
158
+ )
159
+ if "source" in params and not isinstance(params["source"], str):
160
+ raise InvalidParameterError("Bad parameter: source must be an str")
161
+ if "trigger" in params and not isinstance(params["trigger"], str):
162
+ raise InvalidParameterError(
163
+ "Bad parameter: trigger must be an str"
164
+ )
165
+ if "trigger_actions" in params and not isinstance(
166
+ params["trigger_actions"], builtins.list
167
+ ):
168
+ raise InvalidParameterError(
169
+ "Bad parameter: trigger_actions must be an list"
170
+ )
171
+ if "workspace_id" in params and not isinstance(
172
+ params["workspace_id"], int
173
+ ):
174
+ raise InvalidParameterError(
175
+ "Bad parameter: workspace_id must be an int"
176
+ )
177
+ response, _options = Api.send_request(
178
+ "PATCH",
179
+ "/ai_tasks/{id}".format(id=params["id"]),
180
+ params,
181
+ self.options,
182
+ )
183
+ return response.data
184
+
185
+ def delete(self, params=None):
186
+ if not isinstance(params, dict):
187
+ params = {}
188
+
189
+ if hasattr(self, "id") and self.id:
190
+ params["id"] = self.id
191
+ else:
192
+ raise MissingParameterError("Current object doesn't have a id")
193
+ if "id" not in params:
194
+ raise MissingParameterError("Parameter missing: id")
195
+ if "id" in params and not isinstance(params["id"], int):
196
+ raise InvalidParameterError("Bad parameter: id must be an int")
197
+ Api.send_request(
198
+ "DELETE",
199
+ "/ai_tasks/{id}".format(id=params["id"]),
200
+ params,
201
+ self.options,
202
+ )
203
+
204
+ def destroy(self, params=None):
205
+ self.delete(params)
206
+
207
+ def save(self):
208
+ if hasattr(self, "id") and self.id:
209
+ new_obj = self.update(self.get_attributes())
210
+ self.set_attributes(new_obj.get_attributes())
211
+ return True
212
+ else:
213
+ new_obj = create(self.get_attributes(), self.options)
214
+ self.set_attributes(new_obj.get_attributes())
215
+ return True
216
+
217
+
218
+ # Parameters:
219
+ # cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
220
+ # per_page - int64 - Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
221
+ # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `workspace_id`, `id`, `disabled` or `updated_at`.
222
+ # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `disabled`, `trigger` or `workspace_id`. Valid field combinations are `[ workspace_id, disabled ]`.
223
+ def list(params=None, options=None):
224
+ if not isinstance(params, dict):
225
+ params = {}
226
+ if not isinstance(options, dict):
227
+ options = {}
228
+ if "cursor" in params and not isinstance(params["cursor"], str):
229
+ raise InvalidParameterError("Bad parameter: cursor must be an str")
230
+ if "per_page" in params and not isinstance(params["per_page"], int):
231
+ raise InvalidParameterError("Bad parameter: per_page must be an int")
232
+ if "sort_by" in params and not isinstance(params["sort_by"], dict):
233
+ raise InvalidParameterError("Bad parameter: sort_by must be an dict")
234
+ if "filter" in params and not isinstance(params["filter"], dict):
235
+ raise InvalidParameterError("Bad parameter: filter must be an dict")
236
+ return ListObj(AiTask, "GET", "/ai_tasks", params, options)
237
+
238
+
239
+ def all(params=None, options=None):
240
+ list(params, options)
241
+
242
+
243
+ # Parameters:
244
+ # id (required) - int64 - Ai Task ID.
245
+ def find(id, params=None, options=None):
246
+ if not isinstance(params, dict):
247
+ params = {}
248
+ if not isinstance(options, dict):
249
+ options = {}
250
+ params["id"] = id
251
+ if "id" in params and not isinstance(params["id"], int):
252
+ raise InvalidParameterError("Bad parameter: id must be an int")
253
+ if "id" not in params:
254
+ raise MissingParameterError("Parameter missing: id")
255
+ response, options = Api.send_request(
256
+ "GET", "/ai_tasks/{id}".format(id=params["id"]), params, options
257
+ )
258
+ return AiTask(response.data, options)
259
+
260
+
261
+ def get(id, params=None, options=None):
262
+ find(id, params, options)
263
+
264
+
265
+ # Parameters:
266
+ # description - string - AI Task description.
267
+ # disabled - boolean - If true, this AI Task will not run.
268
+ # holiday_region - string - Optional holiday region used by scheduled AI Tasks.
269
+ # interval - string - If trigger is `daily`, this specifies how often to run the AI Task.
270
+ # name (required) - string - AI Task name.
271
+ # path - string - Path scope used for action-triggered AI Tasks.
272
+ # permission_set - string - Permissions used by the internal API key for this AI Task. Valid values are `full` and `files_only`.
273
+ # prompt (required) - string - Prompt sent when this AI Task is invoked.
274
+ # recurring_day - int64 - If trigger is `daily`, this selects the day number inside the chosen interval.
275
+ # schedule_days_of_week - array(int64) - If trigger is `custom_schedule`, the 0-based weekdays used by the schedule.
276
+ # schedule_time_zone - string - Time zone used by the AI Task schedule.
277
+ # schedule_times_of_day - array(string) - Times of day in HH:MM format for scheduled AI Tasks.
278
+ # source - string - Source glob used with `path` for action-triggered AI Tasks.
279
+ # trigger - string - How this AI Task is triggered.
280
+ # trigger_actions - array(string) - If trigger is `action`, the file action types that invoke this AI Task. Valid actions are create, copy, move, archived_delete, update, read, destroy.
281
+ # workspace_id - int64 - Workspace ID. `0` means the default workspace.
282
+ def create(params=None, options=None):
283
+ if not isinstance(params, dict):
284
+ params = {}
285
+ if not isinstance(options, dict):
286
+ options = {}
287
+ if "description" in params and not isinstance(params["description"], str):
288
+ raise InvalidParameterError(
289
+ "Bad parameter: description must be an str"
290
+ )
291
+ if "disabled" in params and not isinstance(params["disabled"], bool):
292
+ raise InvalidParameterError("Bad parameter: disabled must be an bool")
293
+ if "holiday_region" in params and not isinstance(
294
+ params["holiday_region"], str
295
+ ):
296
+ raise InvalidParameterError(
297
+ "Bad parameter: holiday_region must be an str"
298
+ )
299
+ if "interval" in params and not isinstance(params["interval"], str):
300
+ raise InvalidParameterError("Bad parameter: interval must be an str")
301
+ if "name" in params and not isinstance(params["name"], str):
302
+ raise InvalidParameterError("Bad parameter: name must be an str")
303
+ if "path" in params and not isinstance(params["path"], str):
304
+ raise InvalidParameterError("Bad parameter: path must be an str")
305
+ if "permission_set" in params and not isinstance(
306
+ params["permission_set"], str
307
+ ):
308
+ raise InvalidParameterError(
309
+ "Bad parameter: permission_set must be an str"
310
+ )
311
+ if "prompt" in params and not isinstance(params["prompt"], str):
312
+ raise InvalidParameterError("Bad parameter: prompt must be an str")
313
+ if "recurring_day" in params and not isinstance(
314
+ params["recurring_day"], int
315
+ ):
316
+ raise InvalidParameterError(
317
+ "Bad parameter: recurring_day must be an int"
318
+ )
319
+ if "schedule_days_of_week" in params and not isinstance(
320
+ params["schedule_days_of_week"], builtins.list
321
+ ):
322
+ raise InvalidParameterError(
323
+ "Bad parameter: schedule_days_of_week must be an list"
324
+ )
325
+ if "schedule_time_zone" in params and not isinstance(
326
+ params["schedule_time_zone"], str
327
+ ):
328
+ raise InvalidParameterError(
329
+ "Bad parameter: schedule_time_zone must be an str"
330
+ )
331
+ if "schedule_times_of_day" in params and not isinstance(
332
+ params["schedule_times_of_day"], builtins.list
333
+ ):
334
+ raise InvalidParameterError(
335
+ "Bad parameter: schedule_times_of_day must be an list"
336
+ )
337
+ if "source" in params and not isinstance(params["source"], str):
338
+ raise InvalidParameterError("Bad parameter: source must be an str")
339
+ if "trigger" in params and not isinstance(params["trigger"], str):
340
+ raise InvalidParameterError("Bad parameter: trigger must be an str")
341
+ if "trigger_actions" in params and not isinstance(
342
+ params["trigger_actions"], builtins.list
343
+ ):
344
+ raise InvalidParameterError(
345
+ "Bad parameter: trigger_actions must be an list"
346
+ )
347
+ if "workspace_id" in params and not isinstance(
348
+ params["workspace_id"], int
349
+ ):
350
+ raise InvalidParameterError(
351
+ "Bad parameter: workspace_id must be an int"
352
+ )
353
+ if "name" not in params:
354
+ raise MissingParameterError("Parameter missing: name")
355
+ if "prompt" not in params:
356
+ raise MissingParameterError("Parameter missing: prompt")
357
+ response, options = Api.send_request("POST", "/ai_tasks", params, options)
358
+ return AiTask(response.data, options)
359
+
360
+
361
+ # Manually Run AI Task
362
+ def manual_run(id, params=None, options=None):
363
+ if not isinstance(params, dict):
364
+ params = {}
365
+ if not isinstance(options, dict):
366
+ options = {}
367
+ params["id"] = id
368
+ if "id" in params and not isinstance(params["id"], int):
369
+ raise InvalidParameterError("Bad parameter: id must be an int")
370
+ if "id" not in params:
371
+ raise MissingParameterError("Parameter missing: id")
372
+ Api.send_request(
373
+ "POST",
374
+ "/ai_tasks/{id}/manual_run".format(id=params["id"]),
375
+ params,
376
+ options,
377
+ )
378
+
379
+
380
+ # Parameters:
381
+ # description - string - AI Task description.
382
+ # disabled - boolean - If true, this AI Task will not run.
383
+ # holiday_region - string - Optional holiday region used by scheduled AI Tasks.
384
+ # interval - string - If trigger is `daily`, this specifies how often to run the AI Task.
385
+ # name - string - AI Task name.
386
+ # path - string - Path scope used for action-triggered AI Tasks.
387
+ # permission_set - string - Permissions used by the internal API key for this AI Task. Valid values are `full` and `files_only`.
388
+ # prompt - string - Prompt sent when this AI Task is invoked.
389
+ # recurring_day - int64 - If trigger is `daily`, this selects the day number inside the chosen interval.
390
+ # schedule_days_of_week - array(int64) - If trigger is `custom_schedule`, the 0-based weekdays used by the schedule.
391
+ # schedule_time_zone - string - Time zone used by the AI Task schedule.
392
+ # schedule_times_of_day - array(string) - Times of day in HH:MM format for scheduled AI Tasks.
393
+ # source - string - Source glob used with `path` for action-triggered AI Tasks.
394
+ # trigger - string - How this AI Task is triggered.
395
+ # trigger_actions - array(string) - If trigger is `action`, the file action types that invoke this AI Task. Valid actions are create, copy, move, archived_delete, update, read, destroy.
396
+ # workspace_id - int64 - Workspace ID. `0` means the default workspace.
397
+ def update(id, params=None, options=None):
398
+ if not isinstance(params, dict):
399
+ params = {}
400
+ if not isinstance(options, dict):
401
+ options = {}
402
+ params["id"] = id
403
+ if "id" in params and not isinstance(params["id"], int):
404
+ raise InvalidParameterError("Bad parameter: id must be an int")
405
+ if "description" in params and not isinstance(params["description"], str):
406
+ raise InvalidParameterError(
407
+ "Bad parameter: description must be an str"
408
+ )
409
+ if "disabled" in params and not isinstance(params["disabled"], bool):
410
+ raise InvalidParameterError("Bad parameter: disabled must be an bool")
411
+ if "holiday_region" in params and not isinstance(
412
+ params["holiday_region"], str
413
+ ):
414
+ raise InvalidParameterError(
415
+ "Bad parameter: holiday_region must be an str"
416
+ )
417
+ if "interval" in params and not isinstance(params["interval"], str):
418
+ raise InvalidParameterError("Bad parameter: interval must be an str")
419
+ if "name" in params and not isinstance(params["name"], str):
420
+ raise InvalidParameterError("Bad parameter: name must be an str")
421
+ if "path" in params and not isinstance(params["path"], str):
422
+ raise InvalidParameterError("Bad parameter: path must be an str")
423
+ if "permission_set" in params and not isinstance(
424
+ params["permission_set"], str
425
+ ):
426
+ raise InvalidParameterError(
427
+ "Bad parameter: permission_set must be an str"
428
+ )
429
+ if "prompt" in params and not isinstance(params["prompt"], str):
430
+ raise InvalidParameterError("Bad parameter: prompt must be an str")
431
+ if "recurring_day" in params and not isinstance(
432
+ params["recurring_day"], int
433
+ ):
434
+ raise InvalidParameterError(
435
+ "Bad parameter: recurring_day must be an int"
436
+ )
437
+ if "schedule_days_of_week" in params and not isinstance(
438
+ params["schedule_days_of_week"], builtins.list
439
+ ):
440
+ raise InvalidParameterError(
441
+ "Bad parameter: schedule_days_of_week must be an list"
442
+ )
443
+ if "schedule_time_zone" in params and not isinstance(
444
+ params["schedule_time_zone"], str
445
+ ):
446
+ raise InvalidParameterError(
447
+ "Bad parameter: schedule_time_zone must be an str"
448
+ )
449
+ if "schedule_times_of_day" in params and not isinstance(
450
+ params["schedule_times_of_day"], builtins.list
451
+ ):
452
+ raise InvalidParameterError(
453
+ "Bad parameter: schedule_times_of_day must be an list"
454
+ )
455
+ if "source" in params and not isinstance(params["source"], str):
456
+ raise InvalidParameterError("Bad parameter: source must be an str")
457
+ if "trigger" in params and not isinstance(params["trigger"], str):
458
+ raise InvalidParameterError("Bad parameter: trigger must be an str")
459
+ if "trigger_actions" in params and not isinstance(
460
+ params["trigger_actions"], builtins.list
461
+ ):
462
+ raise InvalidParameterError(
463
+ "Bad parameter: trigger_actions must be an list"
464
+ )
465
+ if "workspace_id" in params and not isinstance(
466
+ params["workspace_id"], int
467
+ ):
468
+ raise InvalidParameterError(
469
+ "Bad parameter: workspace_id must be an int"
470
+ )
471
+ if "id" not in params:
472
+ raise MissingParameterError("Parameter missing: id")
473
+ response, options = Api.send_request(
474
+ "PATCH", "/ai_tasks/{id}".format(id=params["id"]), params, options
475
+ )
476
+ return AiTask(response.data, options)
477
+
478
+
479
+ def delete(id, params=None, options=None):
480
+ if not isinstance(params, dict):
481
+ params = {}
482
+ if not isinstance(options, dict):
483
+ options = {}
484
+ params["id"] = id
485
+ if "id" in params and not isinstance(params["id"], int):
486
+ raise InvalidParameterError("Bad parameter: id must be an int")
487
+ if "id" not in params:
488
+ raise MissingParameterError("Parameter missing: id")
489
+ Api.send_request(
490
+ "DELETE", "/ai_tasks/{id}".format(id=params["id"]), params, options
491
+ )
492
+
493
+
494
+ def destroy(id, params=None, options=None):
495
+ delete(id, params, options)
496
+
497
+
498
+ def new(*args, **kwargs):
499
+ return AiTask(*args, **kwargs)