daknode 0.3.9__tar.gz → 0.3.11__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 (251) hide show
  1. daknode-0.3.11/PKG-INFO +137 -0
  2. daknode-0.3.11/README.md +112 -0
  3. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/inboxes/create_inbox.py +16 -1
  4. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/__init__.py +4 -0
  5. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/inbox_create_request.py +19 -9
  6. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/inbox_out.py +19 -0
  7. daknode-0.3.11/daknode/models/inbox_out_sending_mode.py +9 -0
  8. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/inbox_response.py +17 -0
  9. daknode-0.3.11/daknode/models/inbox_response_sending_mode.py +9 -0
  10. daknode-0.3.11/daknode/streaming.py +181 -0
  11. {daknode-0.3.9 → daknode-0.3.11}/pyproject.toml +12 -2
  12. daknode-0.3.9/PKG-INFO +0 -143
  13. daknode-0.3.9/README.md +0 -124
  14. {daknode-0.3.9 → daknode-0.3.11}/daknode/__init__.py +0 -0
  15. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/__init__.py +0 -0
  16. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/block_rules/__init__.py +0 -0
  17. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/block_rules/create_block_rule.py +0 -0
  18. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/block_rules/create_inbox_block_rule.py +0 -0
  19. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/block_rules/delete_block_rule.py +0 -0
  20. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/block_rules/list_block_rules.py +0 -0
  21. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/block_rules/list_inbox_block_rules.py +0 -0
  22. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/calendar/__init__.py +0 -0
  23. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/calendar/book_calendar_event.py +0 -0
  24. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/calendar/cancel_calendar_event.py +0 -0
  25. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/calendar/create_calendar_event.py +0 -0
  26. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/calendar/delete_calendar_event.py +0 -0
  27. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/calendar/delete_calendar_exception.py +0 -0
  28. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/calendar/edit_calendar_series.py +0 -0
  29. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/calendar/get_calendar_agenda.py +0 -0
  30. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/calendar/get_calendar_availability.py +0 -0
  31. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/calendar/get_calendar_event.py +0 -0
  32. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/calendar/get_calendar_free_busy.py +0 -0
  33. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/calendar/get_calendar_reminders.py +0 -0
  34. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/calendar/list_calendar_events.py +0 -0
  35. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/calendar/list_calendar_instances.py +0 -0
  36. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/calendar/list_calendar_invitations.py +0 -0
  37. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/calendar/poll_calendar_changes.py +0 -0
  38. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/calendar/put_calendar_exception.py +0 -0
  39. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/calendar/respond_calendar_event.py +0 -0
  40. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/calendar/send_calendar_invitations.py +0 -0
  41. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/calendar/set_calendar_reminders.py +0 -0
  42. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/calendar/update_calendar_event.py +0 -0
  43. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/consent/__init__.py +0 -0
  44. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/consent/create_consent.py +0 -0
  45. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/consent/revoke.py +0 -0
  46. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/control_plane/__init__.py +0 -0
  47. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/control_plane/close_workspace.py +0 -0
  48. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/control_plane/create_workspace.py +0 -0
  49. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/control_plane/list_workspaces.py +0 -0
  50. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/control_plane/read_workspace.py +0 -0
  51. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/control_plane/update_workspace.py +0 -0
  52. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/dead_letters/__init__.py +0 -0
  53. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/dead_letters/list_dead_letters.py +0 -0
  54. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/dead_letters/replay_dead_letter.py +0 -0
  55. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/domains/__init__.py +0 -0
  56. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/domains/disable_domain.py +0 -0
  57. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/domains/get_domain.py +0 -0
  58. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/domains/list_domains.py +0 -0
  59. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/domains/register_domain.py +0 -0
  60. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/domains/verify_domain.py +0 -0
  61. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/drafts/__init__.py +0 -0
  62. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/drafts/cancel_draft.py +0 -0
  63. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/drafts/create_draft.py +0 -0
  64. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/drafts/delete_draft.py +0 -0
  65. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/drafts/get_draft.py +0 -0
  66. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/drafts/list_drafts.py +0 -0
  67. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/drafts/schedule_draft.py +0 -0
  68. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/drafts/send_draft.py +0 -0
  69. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/drafts/update_draft.py +0 -0
  70. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/events/__init__.py +0 -0
  71. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/events/poll_inbox_events.py +0 -0
  72. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/inboxes/__init__.py +0 -0
  73. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/inboxes/delete_inbox.py +0 -0
  74. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/inboxes/get_inbox.py +0 -0
  75. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/inboxes/list_inboxes.py +0 -0
  76. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/inboxes/register_webhook.py +0 -0
  77. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/inboxes/rotate_webhook_secret.py +0 -0
  78. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/inboxes/update_inbox.py +0 -0
  79. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/mail_policy/__init__.py +0 -0
  80. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/mail_policy/create_inbox_mail_policy_rule.py +0 -0
  81. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/mail_policy/create_mail_policy_rule.py +0 -0
  82. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/mail_policy/delete_mail_policy_rule.py +0 -0
  83. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/mail_policy/get_inbox_mail_policy.py +0 -0
  84. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/mail_policy/get_mail_policy.py +0 -0
  85. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/mail_policy/list_inbox_mail_policy_rules.py +0 -0
  86. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/mail_policy/list_mail_policy_rules.py +0 -0
  87. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/mail_policy/update_inbox_mail_policy.py +0 -0
  88. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/mail_policy/update_mail_policy.py +0 -0
  89. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/messages/__init__.py +0 -0
  90. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/messages/download_raw_message.py +0 -0
  91. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/messages/download_received_attachment.py +0 -0
  92. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/messages/get_message.py +0 -0
  93. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/messages/get_thread.py +0 -0
  94. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/messages/list_messages.py +0 -0
  95. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/messages/list_received_attachments.py +0 -0
  96. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/messages/list_threads.py +0 -0
  97. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/messages/update_message_state.py +0 -0
  98. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/metrics/__init__.py +0 -0
  99. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/metrics/inbox_metrics.py +0 -0
  100. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/metrics/workspace_metrics.py +0 -0
  101. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/privacy/__init__.py +0 -0
  102. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/privacy/create_erasure_request.py +0 -0
  103. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/privacy/read_erasure_request.py +0 -0
  104. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/public/__init__.py +0 -0
  105. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/public/agent_signup.py +0 -0
  106. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/public/agent_verify.py +0 -0
  107. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/search/__init__.py +0 -0
  108. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/search/search.py +0 -0
  109. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/security/__init__.py +0 -0
  110. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/security/get_risk_feedback.py +0 -0
  111. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/security/list_audit_events.py +0 -0
  112. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/security/record_risk_feedback.py +0 -0
  113. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/send/__init__.py +0 -0
  114. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/send/forward_message.py +0 -0
  115. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/send/send.py +0 -0
  116. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/webhook_subscriptions/__init__.py +0 -0
  117. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/webhook_subscriptions/create_webhook_subscription.py +0 -0
  118. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/webhook_subscriptions/delete_webhook_subscription.py +0 -0
  119. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/webhook_subscriptions/get_webhook_subscription.py +0 -0
  120. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/webhook_subscriptions/list_webhook_subscriptions.py +0 -0
  121. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/webhook_subscriptions/rotate_webhook_subscription.py +0 -0
  122. {daknode-0.3.9 → daknode-0.3.11}/daknode/api/webhook_subscriptions/update_webhook_subscription.py +0 -0
  123. {daknode-0.3.9 → daknode-0.3.11}/daknode/client.py +0 -0
  124. {daknode-0.3.9 → daknode-0.3.11}/daknode/errors.py +0 -0
  125. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/attachment_out.py +0 -0
  126. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/attendee_input.py +0 -0
  127. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/attendee_out.py +0 -0
  128. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/attendee_out_response.py +0 -0
  129. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/audit_out.py +0 -0
  130. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/audit_page.py +0 -0
  131. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/availability_input.py +0 -0
  132. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/availability_out.py +0 -0
  133. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/block_rule_create.py +0 -0
  134. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/block_rule_out.py +0 -0
  135. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/block_rule_page.py +0 -0
  136. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/booking_input.py +0 -0
  137. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/calendar_fact.py +0 -0
  138. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/calendar_fact_page.py +0 -0
  139. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/check_domain_request.py +0 -0
  140. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/consent_request.py +0 -0
  141. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/consent_response.py +0 -0
  142. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/create_erasure_request_response_create_erasure_request.py +0 -0
  143. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/create_in.py +0 -0
  144. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/daily_usage.py +0 -0
  145. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/dead_letter_response.py +0 -0
  146. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/delivery_cohort.py +0 -0
  147. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/delivery_cohort_current_status.py +0 -0
  148. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/delivery_cohort_provider_outcomes.py +0 -0
  149. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/delivery_out.py +0 -0
  150. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/dns_record.py +0 -0
  151. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/domain_out.py +0 -0
  152. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/domain_page.py +0 -0
  153. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/draft_create.py +0 -0
  154. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/draft_edit.py +0 -0
  155. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/draft_file_out.py +0 -0
  156. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/draft_message_out.py +0 -0
  157. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/draft_out.py +0 -0
  158. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/draft_out_state.py +0 -0
  159. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/draft_page.py +0 -0
  160. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/draft_schedule.py +0 -0
  161. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/erasure_request_body.py +0 -0
  162. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/event_create.py +0 -0
  163. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/event_out.py +0 -0
  164. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/event_out_source.py +0 -0
  165. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/event_out_status.py +0 -0
  166. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/event_page.py +0 -0
  167. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/event_patch.py +0 -0
  168. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/exception_put.py +0 -0
  169. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/feedback_change.py +0 -0
  170. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/feedback_change_assessment.py +0 -0
  171. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/feedback_out.py +0 -0
  172. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/feedback_out_assessment.py +0 -0
  173. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/forward_message_response_forward_message.py +0 -0
  174. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/forward_request.py +0 -0
  175. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/free_busy_out.py +0 -0
  176. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/http_validation_error.py +0 -0
  177. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/inbox_deleted.py +0 -0
  178. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/inbox_event.py +0 -0
  179. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/inbox_event_page.py +0 -0
  180. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/inbox_page.py +0 -0
  181. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/inbox_update_request.py +0 -0
  182. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/instance_out.py +0 -0
  183. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/instance_page.py +0 -0
  184. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/interval_out.py +0 -0
  185. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/invitation_input.py +0 -0
  186. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/invitation_input_method.py +0 -0
  187. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/list_drafts_state_type_0.py +0 -0
  188. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/message_out.py +0 -0
  189. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/message_out_spam_verdict_type_0.py +0 -0
  190. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/message_out_virus_verdict_type_0.py +0 -0
  191. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/message_page.py +0 -0
  192. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/message_state.py +0 -0
  193. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/metrics_out.py +0 -0
  194. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/metrics_window.py +0 -0
  195. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/outgoing_attachment.py +0 -0
  196. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/policy_change.py +0 -0
  197. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/policy_out.py +0 -0
  198. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/poll_inbox_events_start.py +0 -0
  199. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/read_erasure_request_response_read_erasure_request.py +0 -0
  200. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/register_domain_request.py +0 -0
  201. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/reminder_input.py +0 -0
  202. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/reminder_out.py +0 -0
  203. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/replay_response.py +0 -0
  204. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/respond_input.py +0 -0
  205. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/respond_input_response.py +0 -0
  206. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/revision.py +0 -0
  207. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/revoke_request.py +0 -0
  208. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/revoke_response_revoke.py +0 -0
  209. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/rule_create.py +0 -0
  210. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/rule_create_direction.py +0 -0
  211. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/rule_create_effect.py +0 -0
  212. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/rule_out.py +0 -0
  213. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/rule_out_direction.py +0 -0
  214. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/rule_out_effect.py +0 -0
  215. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/rule_out_kind.py +0 -0
  216. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/search_match.py +0 -0
  217. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/search_request.py +0 -0
  218. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/search_response.py +0 -0
  219. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/send_draft_response_send_draft.py +0 -0
  220. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/send_request.py +0 -0
  221. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/send_response_send.py +0 -0
  222. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/series_edit_input.py +0 -0
  223. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/series_edit_input_scope.py +0 -0
  224. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/signup_in.py +0 -0
  225. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/signup_out.py +0 -0
  226. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/state_change.py +0 -0
  227. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/subscription_change.py +0 -0
  228. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/subscription_change_event_types_type_0_item.py +0 -0
  229. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/subscription_change_headers_type_0.py +0 -0
  230. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/subscription_create.py +0 -0
  231. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/subscription_create_event_types_item.py +0 -0
  232. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/subscription_create_headers.py +0 -0
  233. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/subscription_out.py +0 -0
  234. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/subscription_out_event_types_item.py +0 -0
  235. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/thread_detail_out.py +0 -0
  236. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/thread_out.py +0 -0
  237. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/thread_page.py +0 -0
  238. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/timeline_item_out.py +0 -0
  239. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/update_in.py +0 -0
  240. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/usage_counts.py +0 -0
  241. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/validation_error.py +0 -0
  242. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/validation_error_context.py +0 -0
  243. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/verify_in.py +0 -0
  244. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/verify_out.py +0 -0
  245. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/webhook_register_request.py +0 -0
  246. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/window_input.py +0 -0
  247. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/working_hours.py +0 -0
  248. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/workspace_list_out.py +0 -0
  249. {daknode-0.3.9 → daknode-0.3.11}/daknode/models/workspace_out.py +0 -0
  250. {daknode-0.3.9 → daknode-0.3.11}/daknode/py.typed +0 -0
  251. {daknode-0.3.9 → daknode-0.3.11}/daknode/types.py +0 -0
@@ -0,0 +1,137 @@
1
+ Metadata-Version: 2.4
2
+ Name: daknode
3
+ Version: 0.3.11
4
+ Summary: Typed sync and async client for DakNode's email and inbox-calendar API
5
+ Keywords: daknode,email,calendar,sdk
6
+ Requires-Python: >=3.9,<4.0
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: Programming Language :: Python :: 3.9
9
+ Classifier: Programming Language :: Python :: 3.10
10
+ Classifier: Programming Language :: Python :: 3.11
11
+ Classifier: Programming Language :: Python :: 3.12
12
+ Classifier: Programming Language :: Python :: 3.13
13
+ Classifier: Programming Language :: Python :: 3.14
14
+ Classifier: Programming Language :: Python :: 3.15
15
+ Provides-Extra: streaming
16
+ Requires-Dist: attrs (>=22.2.0)
17
+ Requires-Dist: httpx (>=0.23.0,<0.29.0)
18
+ Requires-Dist: python-dateutil (>=2.8.0,<3.0.0)
19
+ Requires-Dist: websockets (>=15,<18) ; extra == "streaming"
20
+ Project-URL: Documentation, https://daknode.com/integrations/python/
21
+ Project-URL: Homepage, https://daknode.com
22
+ Project-URL: Security, https://daknode.com/security/reporting/
23
+ Description-Content-Type: text/markdown
24
+
25
+ # DakNode Python SDK
26
+
27
+ Typed synchronous and asynchronous client for DakNode's public email and
28
+ inbox-calendar API. Keep credentials on your server, never in browser code.
29
+
30
+ ## Install and configure
31
+
32
+ Use Python 3.10+ for this starter, in an isolated virtual environment.
33
+
34
+ ```sh
35
+ python -m pip install 'daknode>=0.3.9,<0.4'
36
+ ```
37
+
38
+ Configure DAKNODE_API_KEY through your server's private secret settings and
39
+ DAKNODE_INBOX_ID with an inbox UUID you are authorized to read. Obtain both from
40
+ the console. Do not put keys in command arguments, chat, source control or logs.
41
+ The operation needs messages.read. Workspace boundaries apply; inbox-scoped
42
+ keys require an eligible plan. Do not add send permissions for this example.
43
+
44
+ ## First operation: count one page
45
+
46
+ Save this tested starter as daknode_tools.py, then run
47
+ `python daknode_tools.py` in the configured environment. It makes one bounded
48
+ read and prints only a count. Importing the module performs no request.
49
+
50
+ ```python
51
+ """Customer-side tools: one bounded SDK read, no mail contents or agent loop."""
52
+ import os
53
+ from uuid import UUID
54
+
55
+ from daknode import AuthenticatedClient
56
+ from daknode.api.messages import list_messages
57
+
58
+
59
+ def count_recent_mail() -> int:
60
+ """Count up to ten retained messages in the privately configured inbox."""
61
+ key = os.environ.get("DAKNODE_API_KEY", "").strip()
62
+ identifier = os.environ.get("DAKNODE_INBOX_ID", "")
63
+ if not key or not identifier:
64
+ raise RuntimeError("Configure DAKNODE_API_KEY and DAKNODE_INBOX_ID privately")
65
+ try:
66
+ inbox_id = UUID(identifier)
67
+ except ValueError:
68
+ raise RuntimeError("DAKNODE_INBOX_ID must be a valid inbox UUID") from None
69
+ try:
70
+ with AuthenticatedClient(base_url="https://api.daknode.com", token=key, timeout=10) as client:
71
+ response = list_messages.sync_detailed(inbox_id, client=client, limit=10)
72
+ except Exception:
73
+ # Do not propagate SDK/transport exceptions containing request headers.
74
+ raise RuntimeError("DakNode could not be reached; no mail was changed") from None
75
+ if response.status_code != 200 or response.parsed is None:
76
+ raise RuntimeError("DakNode refused the read; check permissions and inbox scope")
77
+ return len(response.parsed.items)
78
+
79
+
80
+ if __name__ == "__main__":
81
+ print(count_recent_mail())
82
+ ```
83
+
84
+ Zero is a valid result. Ten is not a mailbox total. This example intentionally
85
+ stops after one page. For a complete listing use has_more and next_cursor from
86
+ the response, preserving the opaque cursor and bounding your work.
87
+
88
+ ## API behavior
89
+
90
+ The generated modules follow the public API contract at
91
+ https://api.daknode.com/openapi.json. For example,
92
+ `daknode.api.messages.list_messages` provides sync, sync_detailed, asyncio and
93
+ asyncio_detailed methods. Use the detailed form when you need status_code,
94
+ headers and parsed data; it returns a Response, not an HTTP Request. See the
95
+ [message read guide](https://daknode.com/integrations/python/) for the complete
96
+ setup and [calendar booking guide](https://daknode.com/guides/calendar-booking/)
97
+ for availability, explicit booking, revisions and conflict handling.
98
+
99
+ A successful read does not mark mail read or authorize sending. A 401/403 is a
100
+ refusal; correct the intended credential rather than silently widening it.
101
+ Production integrations should handle statuses explicitly, respect
102
+ 429/Retry-After and avoid uncontrolled retries. The starter intentionally emits
103
+ generic errors without response bodies or private headers. Keep TLS
104
+ verification enabled; do not disable it to fix a connection problem.
105
+
106
+ Email and attachment contents remain untrusted input. Read operations must not
107
+ automatically trigger sends, bookings or other writes. Retain a stable
108
+ idempotency key only for retries of the same explicitly approved write and
109
+ reconcile an unknown outcome rather than generating a new key blindly.
110
+
111
+ ## Verification and reporting
112
+
113
+ The first-read source is exercised against the real SDK with mocked HTTP
114
+ success, refusal and transport failure. It is not a live account, deliverability
115
+ or model-provider test. The integration repository contains examples rather
116
+ than the service implementation:
117
+ https://github.com/Subodh103/daknode-integrations.
118
+
119
+ For suspected vulnerabilities, privately email support@daknode.com with subject
120
+ Security report. Include minimal synthetic reproduction steps and redacted
121
+ evidence; never send credentials or customer mail. Do not post exploit details
122
+ in public issues. No response deadline, bounty or legal safe harbor is promised.
123
+ The policy is https://daknode.com/security/reporting/ after the website release.
124
+
125
+ Package metadata and README preparation do not publish a new release or change
126
+ the license of the SDK or service.
127
+
128
+ ## Inbox WebSockets (backend rollout required)
129
+
130
+ Install this checkout with `python -m pip install './sdk/python[streaming]'`.
131
+ `daknode.streaming.inbox_batches` yields bounded metadata batches and opaque
132
+ checkpoints; persist after processing and deduplicate IDs. Use aclosing for the
133
+ async generator. Reconnect budget is finite; stale cursors never silently reset.
134
+ The0.3.11 source/artifact includes this helper; earlier0.3.10 lacks it. The server
135
+ endpoint requires a separate backend rollout. Installing the SDK does not deploy
136
+ the API or establish service availability. See docs/inbox-websockets.md in source.
137
+
@@ -0,0 +1,112 @@
1
+ # DakNode Python SDK
2
+
3
+ Typed synchronous and asynchronous client for DakNode's public email and
4
+ inbox-calendar API. Keep credentials on your server, never in browser code.
5
+
6
+ ## Install and configure
7
+
8
+ Use Python 3.10+ for this starter, in an isolated virtual environment.
9
+
10
+ ```sh
11
+ python -m pip install 'daknode>=0.3.9,<0.4'
12
+ ```
13
+
14
+ Configure DAKNODE_API_KEY through your server's private secret settings and
15
+ DAKNODE_INBOX_ID with an inbox UUID you are authorized to read. Obtain both from
16
+ the console. Do not put keys in command arguments, chat, source control or logs.
17
+ The operation needs messages.read. Workspace boundaries apply; inbox-scoped
18
+ keys require an eligible plan. Do not add send permissions for this example.
19
+
20
+ ## First operation: count one page
21
+
22
+ Save this tested starter as daknode_tools.py, then run
23
+ `python daknode_tools.py` in the configured environment. It makes one bounded
24
+ read and prints only a count. Importing the module performs no request.
25
+
26
+ ```python
27
+ """Customer-side tools: one bounded SDK read, no mail contents or agent loop."""
28
+ import os
29
+ from uuid import UUID
30
+
31
+ from daknode import AuthenticatedClient
32
+ from daknode.api.messages import list_messages
33
+
34
+
35
+ def count_recent_mail() -> int:
36
+ """Count up to ten retained messages in the privately configured inbox."""
37
+ key = os.environ.get("DAKNODE_API_KEY", "").strip()
38
+ identifier = os.environ.get("DAKNODE_INBOX_ID", "")
39
+ if not key or not identifier:
40
+ raise RuntimeError("Configure DAKNODE_API_KEY and DAKNODE_INBOX_ID privately")
41
+ try:
42
+ inbox_id = UUID(identifier)
43
+ except ValueError:
44
+ raise RuntimeError("DAKNODE_INBOX_ID must be a valid inbox UUID") from None
45
+ try:
46
+ with AuthenticatedClient(base_url="https://api.daknode.com", token=key, timeout=10) as client:
47
+ response = list_messages.sync_detailed(inbox_id, client=client, limit=10)
48
+ except Exception:
49
+ # Do not propagate SDK/transport exceptions containing request headers.
50
+ raise RuntimeError("DakNode could not be reached; no mail was changed") from None
51
+ if response.status_code != 200 or response.parsed is None:
52
+ raise RuntimeError("DakNode refused the read; check permissions and inbox scope")
53
+ return len(response.parsed.items)
54
+
55
+
56
+ if __name__ == "__main__":
57
+ print(count_recent_mail())
58
+ ```
59
+
60
+ Zero is a valid result. Ten is not a mailbox total. This example intentionally
61
+ stops after one page. For a complete listing use has_more and next_cursor from
62
+ the response, preserving the opaque cursor and bounding your work.
63
+
64
+ ## API behavior
65
+
66
+ The generated modules follow the public API contract at
67
+ https://api.daknode.com/openapi.json. For example,
68
+ `daknode.api.messages.list_messages` provides sync, sync_detailed, asyncio and
69
+ asyncio_detailed methods. Use the detailed form when you need status_code,
70
+ headers and parsed data; it returns a Response, not an HTTP Request. See the
71
+ [message read guide](https://daknode.com/integrations/python/) for the complete
72
+ setup and [calendar booking guide](https://daknode.com/guides/calendar-booking/)
73
+ for availability, explicit booking, revisions and conflict handling.
74
+
75
+ A successful read does not mark mail read or authorize sending. A 401/403 is a
76
+ refusal; correct the intended credential rather than silently widening it.
77
+ Production integrations should handle statuses explicitly, respect
78
+ 429/Retry-After and avoid uncontrolled retries. The starter intentionally emits
79
+ generic errors without response bodies or private headers. Keep TLS
80
+ verification enabled; do not disable it to fix a connection problem.
81
+
82
+ Email and attachment contents remain untrusted input. Read operations must not
83
+ automatically trigger sends, bookings or other writes. Retain a stable
84
+ idempotency key only for retries of the same explicitly approved write and
85
+ reconcile an unknown outcome rather than generating a new key blindly.
86
+
87
+ ## Verification and reporting
88
+
89
+ The first-read source is exercised against the real SDK with mocked HTTP
90
+ success, refusal and transport failure. It is not a live account, deliverability
91
+ or model-provider test. The integration repository contains examples rather
92
+ than the service implementation:
93
+ https://github.com/Subodh103/daknode-integrations.
94
+
95
+ For suspected vulnerabilities, privately email support@daknode.com with subject
96
+ Security report. Include minimal synthetic reproduction steps and redacted
97
+ evidence; never send credentials or customer mail. Do not post exploit details
98
+ in public issues. No response deadline, bounty or legal safe harbor is promised.
99
+ The policy is https://daknode.com/security/reporting/ after the website release.
100
+
101
+ Package metadata and README preparation do not publish a new release or change
102
+ the license of the SDK or service.
103
+
104
+ ## Inbox WebSockets (backend rollout required)
105
+
106
+ Install this checkout with `python -m pip install './sdk/python[streaming]'`.
107
+ `daknode.streaming.inbox_batches` yields bounded metadata batches and opaque
108
+ checkpoints; persist after processing and deduplicate IDs. Use aclosing for the
109
+ async generator. Reconnect budget is finite; stale cursors never silently reset.
110
+ The0.3.11 source/artifact includes this helper; earlier0.3.10 lacks it. The server
111
+ endpoint requires a separate backend rollout. Installing the SDK does not deploy
112
+ the API or establish service availability. See docs/inbox-websockets.md in source.
@@ -8,14 +8,17 @@ from ...client import AuthenticatedClient, Client
8
8
  from ...models.http_validation_error import HTTPValidationError
9
9
  from ...models.inbox_create_request import InboxCreateRequest
10
10
  from ...models.inbox_response import InboxResponse
11
- from ...types import Response
11
+ from ...types import UNSET, Response, Unset
12
12
 
13
13
 
14
14
  def _get_kwargs(
15
15
  *,
16
16
  body: InboxCreateRequest,
17
+ idempotency_key: Union[None, Unset, str] = UNSET,
17
18
  ) -> dict[str, Any]:
18
19
  headers: dict[str, Any] = {}
20
+ if not isinstance(idempotency_key, Unset):
21
+ headers["Idempotency-Key"] = idempotency_key
19
22
 
20
23
  _kwargs: dict[str, Any] = {
21
24
  "method": "post",
@@ -62,10 +65,12 @@ def sync_detailed(
62
65
  *,
63
66
  client: AuthenticatedClient,
64
67
  body: InboxCreateRequest,
68
+ idempotency_key: Union[None, Unset, str] = UNSET,
65
69
  ) -> Response[Union[HTTPValidationError, InboxResponse]]:
66
70
  """Create Inbox
67
71
 
68
72
  Args:
73
+ idempotency_key (Union[None, Unset, str]):
69
74
  body (InboxCreateRequest):
70
75
 
71
76
  Raises:
@@ -78,6 +83,7 @@ def sync_detailed(
78
83
 
79
84
  kwargs = _get_kwargs(
80
85
  body=body,
86
+ idempotency_key=idempotency_key,
81
87
  )
82
88
 
83
89
  response = client.get_httpx_client().request(
@@ -91,10 +97,12 @@ def sync(
91
97
  *,
92
98
  client: AuthenticatedClient,
93
99
  body: InboxCreateRequest,
100
+ idempotency_key: Union[None, Unset, str] = UNSET,
94
101
  ) -> Optional[Union[HTTPValidationError, InboxResponse]]:
95
102
  """Create Inbox
96
103
 
97
104
  Args:
105
+ idempotency_key (Union[None, Unset, str]):
98
106
  body (InboxCreateRequest):
99
107
 
100
108
  Raises:
@@ -108,6 +116,7 @@ def sync(
108
116
  return sync_detailed(
109
117
  client=client,
110
118
  body=body,
119
+ idempotency_key=idempotency_key,
111
120
  ).parsed
112
121
 
113
122
 
@@ -115,10 +124,12 @@ async def asyncio_detailed(
115
124
  *,
116
125
  client: AuthenticatedClient,
117
126
  body: InboxCreateRequest,
127
+ idempotency_key: Union[None, Unset, str] = UNSET,
118
128
  ) -> Response[Union[HTTPValidationError, InboxResponse]]:
119
129
  """Create Inbox
120
130
 
121
131
  Args:
132
+ idempotency_key (Union[None, Unset, str]):
122
133
  body (InboxCreateRequest):
123
134
 
124
135
  Raises:
@@ -131,6 +142,7 @@ async def asyncio_detailed(
131
142
 
132
143
  kwargs = _get_kwargs(
133
144
  body=body,
145
+ idempotency_key=idempotency_key,
134
146
  )
135
147
 
136
148
  response = await client.get_async_httpx_client().request(**kwargs)
@@ -142,10 +154,12 @@ async def asyncio(
142
154
  *,
143
155
  client: AuthenticatedClient,
144
156
  body: InboxCreateRequest,
157
+ idempotency_key: Union[None, Unset, str] = UNSET,
145
158
  ) -> Optional[Union[HTTPValidationError, InboxResponse]]:
146
159
  """Create Inbox
147
160
 
148
161
  Args:
162
+ idempotency_key (Union[None, Unset, str]):
149
163
  body (InboxCreateRequest):
150
164
 
151
165
  Raises:
@@ -160,5 +174,6 @@ async def asyncio(
160
174
  await asyncio_detailed(
161
175
  client=client,
162
176
  body=body,
177
+ idempotency_key=idempotency_key,
163
178
  )
164
179
  ).parsed
@@ -57,8 +57,10 @@ from .inbox_deleted import InboxDeleted
57
57
  from .inbox_event import InboxEvent
58
58
  from .inbox_event_page import InboxEventPage
59
59
  from .inbox_out import InboxOut
60
+ from .inbox_out_sending_mode import InboxOutSendingMode
60
61
  from .inbox_page import InboxPage
61
62
  from .inbox_response import InboxResponse
63
+ from .inbox_response_sending_mode import InboxResponseSendingMode
62
64
  from .inbox_update_request import InboxUpdateRequest
63
65
  from .instance_out import InstanceOut
64
66
  from .instance_page import InstancePage
@@ -187,8 +189,10 @@ __all__ = (
187
189
  "InboxEvent",
188
190
  "InboxEventPage",
189
191
  "InboxOut",
192
+ "InboxOutSendingMode",
190
193
  "InboxPage",
191
194
  "InboxResponse",
195
+ "InboxResponseSendingMode",
192
196
  "InboxUpdateRequest",
193
197
  "InstanceOut",
194
198
  "InstancePage",
@@ -14,21 +14,25 @@ T = TypeVar("T", bound="InboxCreateRequest")
14
14
  class InboxCreateRequest:
15
15
  """
16
16
  Attributes:
17
- alias (str): Local part of the address, e.g. 'support' for support@…
17
+ alias (Union[None, Unset, str]): Local part of the address, e.g. 'support' for support@…
18
18
  display_name (Union[None, Unset, str]):
19
19
  domain_id (Union[None, UUID, Unset]): Verified custom domain in this workspace; omit for the managed domain.
20
20
  webhook_url (Union[None, Unset, str]): HTTPS destination for inbound message events. Validated against the
21
21
  egress policy before it is stored.
22
22
  """
23
23
 
24
- alias: str
24
+ alias: Union[None, Unset, str] = UNSET
25
25
  display_name: Union[None, Unset, str] = UNSET
26
26
  domain_id: Union[None, UUID, Unset] = UNSET
27
27
  webhook_url: Union[None, Unset, str] = UNSET
28
28
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
29
29
 
30
30
  def to_dict(self) -> dict[str, Any]:
31
- alias = self.alias
31
+ alias: Union[None, Unset, str]
32
+ if isinstance(self.alias, Unset):
33
+ alias = UNSET
34
+ else:
35
+ alias = self.alias
32
36
 
33
37
  display_name: Union[None, Unset, str]
34
38
  if isinstance(self.display_name, Unset):
@@ -52,11 +56,9 @@ class InboxCreateRequest:
52
56
 
53
57
  field_dict: dict[str, Any] = {}
54
58
  field_dict.update(self.additional_properties)
55
- field_dict.update(
56
- {
57
- "alias": alias,
58
- }
59
- )
59
+ field_dict.update({})
60
+ if alias is not UNSET:
61
+ field_dict["alias"] = alias
60
62
  if display_name is not UNSET:
61
63
  field_dict["display_name"] = display_name
62
64
  if domain_id is not UNSET:
@@ -69,7 +71,15 @@ class InboxCreateRequest:
69
71
  @classmethod
70
72
  def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
71
73
  d = dict(src_dict)
72
- alias = d.pop("alias")
74
+
75
+ def _parse_alias(data: object) -> Union[None, Unset, str]:
76
+ if data is None:
77
+ return data
78
+ if isinstance(data, Unset):
79
+ return data
80
+ return cast(Union[None, Unset, str], data)
81
+
82
+ alias = _parse_alias(d.pop("alias", UNSET))
73
83
 
74
84
  def _parse_display_name(data: object) -> Union[None, Unset, str]:
75
85
  if data is None:
@@ -7,6 +7,9 @@ from attrs import define as _attrs_define
7
7
  from attrs import field as _attrs_field
8
8
  from dateutil.parser import isoparse
9
9
 
10
+ from ..models.inbox_out_sending_mode import InboxOutSendingMode
11
+ from ..types import UNSET, Unset
12
+
10
13
  T = TypeVar("T", bound="InboxOut")
11
14
 
12
15
 
@@ -21,6 +24,7 @@ class InboxOut:
21
24
  display_name (Union[None, str]):
22
25
  inbox_id (UUID):
23
26
  webhook_url (Union[None, str]):
27
+ sending_mode (Union[Unset, InboxOutSendingMode]): Default: InboxOutSendingMode.AUTOPILOT.
24
28
  """
25
29
 
26
30
  address: str
@@ -29,6 +33,7 @@ class InboxOut:
29
33
  display_name: Union[None, str]
30
34
  inbox_id: UUID
31
35
  webhook_url: Union[None, str]
36
+ sending_mode: Union[Unset, InboxOutSendingMode] = InboxOutSendingMode.AUTOPILOT
32
37
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
33
38
 
34
39
  def to_dict(self) -> dict[str, Any]:
@@ -46,6 +51,10 @@ class InboxOut:
46
51
  webhook_url: Union[None, str]
47
52
  webhook_url = self.webhook_url
48
53
 
54
+ sending_mode: Union[Unset, str] = UNSET
55
+ if not isinstance(self.sending_mode, Unset):
56
+ sending_mode = self.sending_mode.value
57
+
49
58
  field_dict: dict[str, Any] = {}
50
59
  field_dict.update(self.additional_properties)
51
60
  field_dict.update(
@@ -58,6 +67,8 @@ class InboxOut:
58
67
  "webhook_url": webhook_url,
59
68
  }
60
69
  )
70
+ if sending_mode is not UNSET:
71
+ field_dict["sending_mode"] = sending_mode
61
72
 
62
73
  return field_dict
63
74
 
@@ -86,6 +97,13 @@ class InboxOut:
86
97
 
87
98
  webhook_url = _parse_webhook_url(d.pop("webhook_url"))
88
99
 
100
+ _sending_mode = d.pop("sending_mode", UNSET)
101
+ sending_mode: Union[Unset, InboxOutSendingMode]
102
+ if isinstance(_sending_mode, Unset):
103
+ sending_mode = UNSET
104
+ else:
105
+ sending_mode = InboxOutSendingMode(_sending_mode)
106
+
89
107
  inbox_out = cls(
90
108
  address=address,
91
109
  channel=channel,
@@ -93,6 +111,7 @@ class InboxOut:
93
111
  display_name=display_name,
94
112
  inbox_id=inbox_id,
95
113
  webhook_url=webhook_url,
114
+ sending_mode=sending_mode,
96
115
  )
97
116
 
98
117
  inbox_out.additional_properties = d
@@ -0,0 +1,9 @@
1
+ from enum import Enum
2
+
3
+
4
+ class InboxOutSendingMode(str, Enum):
5
+ AUTOPILOT = "autopilot"
6
+ HUMAN_REVIEW = "human_review"
7
+
8
+ def __str__(self) -> str:
9
+ return str(self.value)
@@ -5,6 +5,7 @@ from uuid import UUID
5
5
  from attrs import define as _attrs_define
6
6
  from attrs import field as _attrs_field
7
7
 
8
+ from ..models.inbox_response_sending_mode import InboxResponseSendingMode
8
9
  from ..types import UNSET, Unset
9
10
 
10
11
  T = TypeVar("T", bound="InboxResponse")
@@ -19,6 +20,7 @@ class InboxResponse:
19
20
  display_name (Union[None, str]):
20
21
  inbox_id (UUID):
21
22
  webhook_url (Union[None, str]):
23
+ sending_mode (Union[Unset, InboxResponseSendingMode]): Default: InboxResponseSendingMode.AUTOPILOT.
22
24
  webhook_secret (Union[None, Unset, str]):
23
25
  """
24
26
 
@@ -27,6 +29,7 @@ class InboxResponse:
27
29
  display_name: Union[None, str]
28
30
  inbox_id: UUID
29
31
  webhook_url: Union[None, str]
32
+ sending_mode: Union[Unset, InboxResponseSendingMode] = InboxResponseSendingMode.AUTOPILOT
30
33
  webhook_secret: Union[None, Unset, str] = UNSET
31
34
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
32
35
 
@@ -43,6 +46,10 @@ class InboxResponse:
43
46
  webhook_url: Union[None, str]
44
47
  webhook_url = self.webhook_url
45
48
 
49
+ sending_mode: Union[Unset, str] = UNSET
50
+ if not isinstance(self.sending_mode, Unset):
51
+ sending_mode = self.sending_mode.value
52
+
46
53
  webhook_secret: Union[None, Unset, str]
47
54
  if isinstance(self.webhook_secret, Unset):
48
55
  webhook_secret = UNSET
@@ -60,6 +67,8 @@ class InboxResponse:
60
67
  "webhook_url": webhook_url,
61
68
  }
62
69
  )
70
+ if sending_mode is not UNSET:
71
+ field_dict["sending_mode"] = sending_mode
63
72
  if webhook_secret is not UNSET:
64
73
  field_dict["webhook_secret"] = webhook_secret
65
74
 
@@ -88,6 +97,13 @@ class InboxResponse:
88
97
 
89
98
  webhook_url = _parse_webhook_url(d.pop("webhook_url"))
90
99
 
100
+ _sending_mode = d.pop("sending_mode", UNSET)
101
+ sending_mode: Union[Unset, InboxResponseSendingMode]
102
+ if isinstance(_sending_mode, Unset):
103
+ sending_mode = UNSET
104
+ else:
105
+ sending_mode = InboxResponseSendingMode(_sending_mode)
106
+
91
107
  def _parse_webhook_secret(data: object) -> Union[None, Unset, str]:
92
108
  if data is None:
93
109
  return data
@@ -103,6 +119,7 @@ class InboxResponse:
103
119
  display_name=display_name,
104
120
  inbox_id=inbox_id,
105
121
  webhook_url=webhook_url,
122
+ sending_mode=sending_mode,
106
123
  webhook_secret=webhook_secret,
107
124
  )
108
125
 
@@ -0,0 +1,9 @@
1
+ from enum import Enum
2
+
3
+
4
+ class InboxResponseSendingMode(str, Enum):
5
+ AUTOPILOT = "autopilot"
6
+ HUMAN_REVIEW = "human_review"
7
+
8
+ def __str__(self) -> str:
9
+ return str(self.value)