pidgeon 1.0.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (386) hide show
  1. pidgeon/__init__.py +8 -0
  2. pidgeon/api/__init__.py +1 -0
  3. pidgeon/api/agent/__init__.py +1 -0
  4. pidgeon/api/agent/agent_attach_human.py +184 -0
  5. pidgeon/api/agent/agent_sign_up.py +196 -0
  6. pidgeon/api/agent/agent_verify.py +192 -0
  7. pidgeon/api/app_passwords/__init__.py +1 -0
  8. pidgeon/api/app_passwords/app_passwords_create.py +192 -0
  9. pidgeon/api/app_passwords/app_passwords_list.py +178 -0
  10. pidgeon/api/app_passwords/app_passwords_revoke.py +171 -0
  11. pidgeon/api/attachments/__init__.py +1 -0
  12. pidgeon/api/attachments/attachments_download_url.py +183 -0
  13. pidgeon/api/attachments/attachments_upload.py +192 -0
  14. pidgeon/api/calendar/__init__.py +1 -0
  15. pidgeon/api/calendar/calendar_create_event.py +212 -0
  16. pidgeon/api/calendar/calendar_delete_event.py +244 -0
  17. pidgeon/api/calendar/calendar_get.py +183 -0
  18. pidgeon/api/calendar/calendar_get_agenda.py +269 -0
  19. pidgeon/api/calendar/calendar_get_event.py +185 -0
  20. pidgeon/api/calendar/calendar_list_event_instances.py +263 -0
  21. pidgeon/api/calendar/calendar_list_events.py +223 -0
  22. pidgeon/api/calendar/calendar_respond_to_event.py +249 -0
  23. pidgeon/api/calendar/calendar_update.py +219 -0
  24. pidgeon/api/calendar/calendar_update_event.py +262 -0
  25. pidgeon/api/domains/__init__.py +1 -0
  26. pidgeon/api/domains/domains_create.py +200 -0
  27. pidgeon/api/domains/domains_delete.py +179 -0
  28. pidgeon/api/domains/domains_get.py +187 -0
  29. pidgeon/api/domains/domains_get_setup_link.py +249 -0
  30. pidgeon/api/domains/domains_list.py +195 -0
  31. pidgeon/api/domains/domains_update.py +208 -0
  32. pidgeon/api/domains/domains_verify.py +191 -0
  33. pidgeon/api/domains/domains_zone_file.py +181 -0
  34. pidgeon/api/drafts/__init__.py +1 -0
  35. pidgeon/api/drafts/drafts_cancel_schedule.py +171 -0
  36. pidgeon/api/drafts/drafts_create.py +192 -0
  37. pidgeon/api/drafts/drafts_delete.py +171 -0
  38. pidgeon/api/drafts/drafts_get.py +171 -0
  39. pidgeon/api/drafts/drafts_list.py +209 -0
  40. pidgeon/api/drafts/drafts_remove_attachment.py +201 -0
  41. pidgeon/api/drafts/drafts_schedule.py +208 -0
  42. pidgeon/api/drafts/drafts_send.py +191 -0
  43. pidgeon/api/drafts/drafts_update.py +204 -0
  44. pidgeon/api/events/__init__.py +1 -0
  45. pidgeon/api/events/events_get.py +171 -0
  46. pidgeon/api/events/events_list.py +291 -0
  47. pidgeon/api/identities/__init__.py +1 -0
  48. pidgeon/api/identities/identities_access_create.py +212 -0
  49. pidgeon/api/identities/identities_access_delete.py +202 -0
  50. pidgeon/api/identities/identities_access_get.py +183 -0
  51. pidgeon/api/identities/identities_create.py +188 -0
  52. pidgeon/api/identities/identities_delete.py +179 -0
  53. pidgeon/api/identities/identities_get.py +171 -0
  54. pidgeon/api/identities/identities_list.py +222 -0
  55. pidgeon/api/identities/identities_send_rules_create.py +216 -0
  56. pidgeon/api/identities/identities_send_rules_delete.py +202 -0
  57. pidgeon/api/identities/identities_send_rules_get.py +187 -0
  58. pidgeon/api/identities/identities_suspend_tenant.py +191 -0
  59. pidgeon/api/identities/identities_update.py +192 -0
  60. pidgeon/api/keys/__init__.py +1 -0
  61. pidgeon/api/keys/keys_create.py +188 -0
  62. pidgeon/api/keys/keys_get.py +183 -0
  63. pidgeon/api/keys/keys_list.py +156 -0
  64. pidgeon/api/keys/keys_revoke.py +183 -0
  65. pidgeon/api/keys/keys_update.py +208 -0
  66. pidgeon/api/labels/__init__.py +1 -0
  67. pidgeon/api/labels/labels_create.py +176 -0
  68. pidgeon/api/labels/labels_delete.py +179 -0
  69. pidgeon/api/labels/labels_list.py +186 -0
  70. pidgeon/api/labels/labels_update.py +200 -0
  71. pidgeon/api/mailboxes/__init__.py +1 -0
  72. pidgeon/api/mailboxes/mailboxes_changes.py +236 -0
  73. pidgeon/api/mailboxes/mailboxes_empty_trash.py +214 -0
  74. pidgeon/api/mailboxes/mailboxes_list.py +188 -0
  75. pidgeon/api/mailboxes/mailboxes_list_folder.py +258 -0
  76. pidgeon/api/messages/__init__.py +1 -0
  77. pidgeon/api/messages/messages_act.py +188 -0
  78. pidgeon/api/messages/messages_forward.py +200 -0
  79. pidgeon/api/messages/messages_get.py +171 -0
  80. pidgeon/api/messages/messages_list_in_thread.py +212 -0
  81. pidgeon/api/messages/messages_raw.py +173 -0
  82. pidgeon/api/messages/messages_reply.py +204 -0
  83. pidgeon/api/messages/messages_reply_all.py +204 -0
  84. pidgeon/api/messages/messages_respond_to_invitation.py +222 -0
  85. pidgeon/api/messages/messages_search.py +333 -0
  86. pidgeon/api/messages/messages_send.py +184 -0
  87. pidgeon/api/messages/messages_undo.py +188 -0
  88. pidgeon/api/messages/messages_update.py +204 -0
  89. pidgeon/api/metrics/__init__.py +1 -0
  90. pidgeon/api/metrics/metrics_query.py +215 -0
  91. pidgeon/api/routing/__init__.py +1 -0
  92. pidgeon/api/routing/routing_create.py +199 -0
  93. pidgeon/api/routing/routing_delete.py +171 -0
  94. pidgeon/api/routing/routing_list.py +188 -0
  95. pidgeon/api/routing/routing_update.py +208 -0
  96. pidgeon/api/threads/__init__.py +1 -0
  97. pidgeon/api/threads/threads_get.py +183 -0
  98. pidgeon/api/threads/threads_labels_create.py +200 -0
  99. pidgeon/api/threads/threads_labels_delete.py +202 -0
  100. pidgeon/api/threads/threads_labels_get.py +171 -0
  101. pidgeon/api/threads/threads_list.py +211 -0
  102. pidgeon/api/threads/threads_update.py +200 -0
  103. pidgeon/api/webhooks/__init__.py +1 -0
  104. pidgeon/api/webhooks/webhooks_create.py +188 -0
  105. pidgeon/api/webhooks/webhooks_delete.py +171 -0
  106. pidgeon/api/webhooks/webhooks_deliveries.py +205 -0
  107. pidgeon/api/webhooks/webhooks_get.py +171 -0
  108. pidgeon/api/webhooks/webhooks_get_headers.py +183 -0
  109. pidgeon/api/webhooks/webhooks_list.py +195 -0
  110. pidgeon/api/webhooks/webhooks_replay.py +183 -0
  111. pidgeon/api/webhooks/webhooks_update.py +208 -0
  112. pidgeon/api/webhooks/webhooks_update_headers.py +212 -0
  113. pidgeon/api/workspace/__init__.py +1 -0
  114. pidgeon/api/workspace/workspace_get.py +160 -0
  115. pidgeon/api/workspace/workspace_members.py +164 -0
  116. pidgeon/client.py +268 -0
  117. pidgeon/errors.py +16 -0
  118. pidgeon/models/__init__.py +531 -0
  119. pidgeon/models/address.py +65 -0
  120. pidgeon/models/agent_attach_human_body.py +70 -0
  121. pidgeon/models/agent_attach_human_response_200.py +67 -0
  122. pidgeon/models/agent_sign_up_body.py +91 -0
  123. pidgeon/models/agent_sign_up_response_201.py +67 -0
  124. pidgeon/models/agent_signup.py +80 -0
  125. pidgeon/models/agent_verified.py +58 -0
  126. pidgeon/models/agent_verify_body.py +70 -0
  127. pidgeon/models/agent_verify_response_200.py +67 -0
  128. pidgeon/models/api_key.py +126 -0
  129. pidgeon/models/api_key_access.py +10 -0
  130. pidgeon/models/app_password.py +94 -0
  131. pidgeon/models/app_passwords_create_body.py +51 -0
  132. pidgeon/models/app_passwords_create_response_201.py +67 -0
  133. pidgeon/models/app_passwords_list_response_200.py +97 -0
  134. pidgeon/models/app_passwords_revoke_response_200.py +67 -0
  135. pidgeon/models/attachment.py +74 -0
  136. pidgeon/models/attachment_url.py +50 -0
  137. pidgeon/models/attachments_download_url_response_200.py +67 -0
  138. pidgeon/models/attachments_upload_body.py +85 -0
  139. pidgeon/models/attachments_upload_response_201.py +67 -0
  140. pidgeon/models/calendar.py +90 -0
  141. pidgeon/models/calendar_create_event_body.py +244 -0
  142. pidgeon/models/calendar_create_event_body_attendees_item.py +110 -0
  143. pidgeon/models/calendar_create_event_body_attendees_item_status.py +11 -0
  144. pidgeon/models/calendar_create_event_body_recurrence_type_0.py +85 -0
  145. pidgeon/models/calendar_create_event_body_status.py +10 -0
  146. pidgeon/models/calendar_create_event_response_201.py +67 -0
  147. pidgeon/models/calendar_delete_event_mode.py +9 -0
  148. pidgeon/models/calendar_delete_event_response_200.py +67 -0
  149. pidgeon/models/calendar_event.py +342 -0
  150. pidgeon/models/calendar_event_attendees_item.py +72 -0
  151. pidgeon/models/calendar_event_duration_mode.py +9 -0
  152. pidgeon/models/calendar_event_kind.py +10 -0
  153. pidgeon/models/calendar_event_recurrence_type_0.py +72 -0
  154. pidgeon/models/calendar_event_source.py +9 -0
  155. pidgeon/models/calendar_event_status.py +10 -0
  156. pidgeon/models/calendar_get_agenda_include_overlapping.py +9 -0
  157. pidgeon/models/calendar_get_agenda_response_200.py +97 -0
  158. pidgeon/models/calendar_get_event_response_200.py +67 -0
  159. pidgeon/models/calendar_get_response_200.py +67 -0
  160. pidgeon/models/calendar_list_event_instances_response_200.py +97 -0
  161. pidgeon/models/calendar_list_events_response_200.py +97 -0
  162. pidgeon/models/calendar_respond_to_event_body.py +82 -0
  163. pidgeon/models/calendar_respond_to_event_body_status.py +10 -0
  164. pidgeon/models/calendar_respond_to_event_response_200.py +67 -0
  165. pidgeon/models/calendar_update_body.py +61 -0
  166. pidgeon/models/calendar_update_event_body.py +233 -0
  167. pidgeon/models/calendar_update_event_body_attendees_item.py +110 -0
  168. pidgeon/models/calendar_update_event_body_attendees_item_status.py +11 -0
  169. pidgeon/models/calendar_update_event_body_recurrence_type_0.py +85 -0
  170. pidgeon/models/calendar_update_event_body_status.py +10 -0
  171. pidgeon/models/calendar_update_event_mode.py +9 -0
  172. pidgeon/models/calendar_update_event_response_200.py +67 -0
  173. pidgeon/models/calendar_update_response_200.py +67 -0
  174. pidgeon/models/deleted.py +50 -0
  175. pidgeon/models/delivery.py +152 -0
  176. pidgeon/models/dns_record.py +126 -0
  177. pidgeon/models/dns_record_status.py +11 -0
  178. pidgeon/models/domain.py +96 -0
  179. pidgeon/models/domain_detail.py +126 -0
  180. pidgeon/models/domain_detail_dns_records_item.py +126 -0
  181. pidgeon/models/domain_detail_dns_records_item_status.py +11 -0
  182. pidgeon/models/domains_create_body.py +42 -0
  183. pidgeon/models/domains_create_response_201.py +67 -0
  184. pidgeon/models/domains_delete_response_200.py +67 -0
  185. pidgeon/models/domains_get_response_200.py +67 -0
  186. pidgeon/models/domains_get_setup_link_response_200.py +67 -0
  187. pidgeon/models/domains_get_setup_link_template.py +9 -0
  188. pidgeon/models/domains_list_response_200.py +97 -0
  189. pidgeon/models/domains_update_body.py +42 -0
  190. pidgeon/models/domains_update_response_200.py +67 -0
  191. pidgeon/models/domains_verify_response_200.py +67 -0
  192. pidgeon/models/draft.py +210 -0
  193. pidgeon/models/draft_attachments_item.py +74 -0
  194. pidgeon/models/drafts_cancel_schedule_response_200.py +67 -0
  195. pidgeon/models/drafts_create_body.py +197 -0
  196. pidgeon/models/drafts_create_response_201.py +67 -0
  197. pidgeon/models/drafts_delete_response_200.py +67 -0
  198. pidgeon/models/drafts_get_response_200.py +67 -0
  199. pidgeon/models/drafts_list_response_200.py +97 -0
  200. pidgeon/models/drafts_remove_attachment_response_200.py +67 -0
  201. pidgeon/models/drafts_schedule_body.py +62 -0
  202. pidgeon/models/drafts_schedule_response_200.py +67 -0
  203. pidgeon/models/drafts_send_response_202.py +67 -0
  204. pidgeon/models/drafts_update_body.py +156 -0
  205. pidgeon/models/drafts_update_response_200.py +67 -0
  206. pidgeon/models/emptied.py +50 -0
  207. pidgeon/models/error.py +48 -0
  208. pidgeon/models/error_error.py +61 -0
  209. pidgeon/models/event.py +114 -0
  210. pidgeon/models/event_data.py +45 -0
  211. pidgeon/models/event_response.py +73 -0
  212. pidgeon/models/event_response_event.py +342 -0
  213. pidgeon/models/event_response_event_attendees_item.py +72 -0
  214. pidgeon/models/event_response_event_duration_mode.py +9 -0
  215. pidgeon/models/event_response_event_kind.py +10 -0
  216. pidgeon/models/event_response_event_recurrence_type_0.py +72 -0
  217. pidgeon/models/event_response_event_source.py +9 -0
  218. pidgeon/models/event_response_event_status.py +10 -0
  219. pidgeon/models/events_get_response_200.py +67 -0
  220. pidgeon/models/events_list_response_200.py +97 -0
  221. pidgeon/models/identities_access_create_body.py +87 -0
  222. pidgeon/models/identities_access_create_body_access.py +10 -0
  223. pidgeon/models/identities_access_create_response_200.py +67 -0
  224. pidgeon/models/identities_access_delete_response_200.py +67 -0
  225. pidgeon/models/identities_access_get_response_200.py +67 -0
  226. pidgeon/models/identities_create_body.py +175 -0
  227. pidgeon/models/identities_create_body_mode.py +10 -0
  228. pidgeon/models/identities_create_body_send_policy.py +10 -0
  229. pidgeon/models/identities_create_body_type.py +12 -0
  230. pidgeon/models/identities_create_response_201.py +67 -0
  231. pidgeon/models/identities_delete_response_200.py +67 -0
  232. pidgeon/models/identities_get_response_200.py +67 -0
  233. pidgeon/models/identities_list_response_200.py +97 -0
  234. pidgeon/models/identities_send_rules_create_body.py +52 -0
  235. pidgeon/models/identities_send_rules_create_body_effect.py +9 -0
  236. pidgeon/models/identities_send_rules_create_response_200.py +67 -0
  237. pidgeon/models/identities_send_rules_delete_response_200.py +67 -0
  238. pidgeon/models/identities_send_rules_get_response_200.py +67 -0
  239. pidgeon/models/identities_suspend_tenant_response_200.py +67 -0
  240. pidgeon/models/identities_update_body.py +178 -0
  241. pidgeon/models/identities_update_body_capabilities.py +45 -0
  242. pidgeon/models/identities_update_body_mode.py +10 -0
  243. pidgeon/models/identities_update_body_send_policy.py +10 -0
  244. pidgeon/models/identities_update_body_status.py +10 -0
  245. pidgeon/models/identities_update_response_200.py +67 -0
  246. pidgeon/models/identity.py +178 -0
  247. pidgeon/models/identity_capabilities.py +45 -0
  248. pidgeon/models/invitation.py +271 -0
  249. pidgeon/models/invitation_attendees_item.py +80 -0
  250. pidgeon/models/invitation_response.py +86 -0
  251. pidgeon/models/keys_create_body.py +109 -0
  252. pidgeon/models/keys_create_body_access.py +10 -0
  253. pidgeon/models/keys_create_response_201.py +67 -0
  254. pidgeon/models/keys_get_response_200.py +67 -0
  255. pidgeon/models/keys_list_response_200.py +97 -0
  256. pidgeon/models/keys_revoke_response_200.py +67 -0
  257. pidgeon/models/keys_update_body.py +61 -0
  258. pidgeon/models/keys_update_response_200.py +67 -0
  259. pidgeon/models/label.py +74 -0
  260. pidgeon/models/label_removed.py +58 -0
  261. pidgeon/models/labels_create_body.py +62 -0
  262. pidgeon/models/labels_create_response_201.py +67 -0
  263. pidgeon/models/labels_delete_response_200.py +67 -0
  264. pidgeon/models/labels_list_response_200.py +97 -0
  265. pidgeon/models/labels_update_body.py +51 -0
  266. pidgeon/models/labels_update_response_200.py +67 -0
  267. pidgeon/models/mailbox.py +72 -0
  268. pidgeon/models/mailbox_access.py +101 -0
  269. pidgeon/models/mailbox_access_entries_item.py +83 -0
  270. pidgeon/models/mailbox_access_entries_item_access.py +10 -0
  271. pidgeon/models/mailbox_access_entries_item_kind.py +10 -0
  272. pidgeon/models/mailbox_access_owner_type_0.py +50 -0
  273. pidgeon/models/mailbox_change.py +80 -0
  274. pidgeon/models/mailbox_folder.py +16 -0
  275. pidgeon/models/mailboxes_changes_response_200.py +97 -0
  276. pidgeon/models/mailboxes_empty_trash_response_200.py +67 -0
  277. pidgeon/models/mailboxes_list_folder_response_200.py +97 -0
  278. pidgeon/models/mailboxes_list_response_200.py +97 -0
  279. pidgeon/models/member.py +82 -0
  280. pidgeon/models/member_role.py +9 -0
  281. pidgeon/models/message.py +290 -0
  282. pidgeon/models/message_attachments_item.py +74 -0
  283. pidgeon/models/message_cc_item.py +65 -0
  284. pidgeon/models/message_from.py +65 -0
  285. pidgeon/models/message_invitation_type_0.py +271 -0
  286. pidgeon/models/message_invitation_type_0_attendees_item.py +80 -0
  287. pidgeon/models/message_list_item.py +180 -0
  288. pidgeon/models/message_to_item.py +65 -0
  289. pidgeon/models/messages_act_body.py +61 -0
  290. pidgeon/models/messages_act_body_action.py +18 -0
  291. pidgeon/models/messages_act_response_200.py +67 -0
  292. pidgeon/models/messages_forward_body.py +125 -0
  293. pidgeon/models/messages_forward_response_202.py +67 -0
  294. pidgeon/models/messages_get_response_200.py +67 -0
  295. pidgeon/models/messages_list_in_thread_response_200.py +97 -0
  296. pidgeon/models/messages_reply_all_body.py +125 -0
  297. pidgeon/models/messages_reply_all_response_202.py +67 -0
  298. pidgeon/models/messages_reply_body.py +125 -0
  299. pidgeon/models/messages_reply_response_202.py +67 -0
  300. pidgeon/models/messages_respond_to_invitation_body.py +73 -0
  301. pidgeon/models/messages_respond_to_invitation_body_status.py +10 -0
  302. pidgeon/models/messages_respond_to_invitation_response_200.py +67 -0
  303. pidgeon/models/messages_respond_to_invitation_response_202.py +67 -0
  304. pidgeon/models/messages_search_in.py +16 -0
  305. pidgeon/models/messages_search_response_200.py +97 -0
  306. pidgeon/models/messages_send_body.py +205 -0
  307. pidgeon/models/messages_send_response_201.py +67 -0
  308. pidgeon/models/messages_undo_body.py +42 -0
  309. pidgeon/models/messages_undo_response_200.py +67 -0
  310. pidgeon/models/messages_update_body.py +68 -0
  311. pidgeon/models/messages_update_body_folder.py +11 -0
  312. pidgeon/models/messages_update_response_200.py +67 -0
  313. pidgeon/models/metrics.py +96 -0
  314. pidgeon/models/metrics_inbound.py +50 -0
  315. pidgeon/models/metrics_outbound.py +88 -0
  316. pidgeon/models/metrics_query_response_200.py +67 -0
  317. pidgeon/models/replayed.py +52 -0
  318. pidgeon/models/restored.py +42 -0
  319. pidgeon/models/revoked.py +58 -0
  320. pidgeon/models/routing_create_body_type_0.py +103 -0
  321. pidgeon/models/routing_create_body_type_1.py +103 -0
  322. pidgeon/models/routing_create_body_type_2.py +87 -0
  323. pidgeon/models/routing_create_response_201.py +67 -0
  324. pidgeon/models/routing_delete_response_200.py +67 -0
  325. pidgeon/models/routing_list_response_200.py +97 -0
  326. pidgeon/models/routing_rule.py +124 -0
  327. pidgeon/models/routing_rule_destination_type.py +9 -0
  328. pidgeon/models/routing_rule_match_type.py +10 -0
  329. pidgeon/models/routing_rule_status.py +9 -0
  330. pidgeon/models/routing_update_body.py +44 -0
  331. pidgeon/models/routing_update_body_status.py +9 -0
  332. pidgeon/models/routing_update_response_200.py +67 -0
  333. pidgeon/models/send_rule_removed.py +58 -0
  334. pidgeon/models/send_rules.py +72 -0
  335. pidgeon/models/send_rules_rules_item.py +76 -0
  336. pidgeon/models/send_rules_rules_item_match_type.py +9 -0
  337. pidgeon/models/sent.py +72 -0
  338. pidgeon/models/sent_rejected_item.py +50 -0
  339. pidgeon/models/setup_link.py +128 -0
  340. pidgeon/models/setup_link_reason_type_0.py +9 -0
  341. pidgeon/models/tenant_suspended.py +50 -0
  342. pidgeon/models/thread.py +153 -0
  343. pidgeon/models/thread_owner_type.py +10 -0
  344. pidgeon/models/thread_status.py +11 -0
  345. pidgeon/models/threads_get_response_200.py +67 -0
  346. pidgeon/models/threads_labels_create_body.py +43 -0
  347. pidgeon/models/threads_labels_create_response_200.py +97 -0
  348. pidgeon/models/threads_labels_delete_response_200.py +67 -0
  349. pidgeon/models/threads_labels_get_response_200.py +97 -0
  350. pidgeon/models/threads_list_response_200.py +97 -0
  351. pidgeon/models/threads_update_body.py +98 -0
  352. pidgeon/models/threads_update_body_owner_type.py +10 -0
  353. pidgeon/models/threads_update_body_status.py +11 -0
  354. pidgeon/models/threads_update_response_200.py +67 -0
  355. pidgeon/models/undo.py +62 -0
  356. pidgeon/models/uploaded_attachment.py +66 -0
  357. pidgeon/models/verification.py +88 -0
  358. pidgeon/models/verification_dns_records_item.py +126 -0
  359. pidgeon/models/verification_dns_records_item_status.py +11 -0
  360. pidgeon/models/webhook.py +124 -0
  361. pidgeon/models/webhook_created.py +132 -0
  362. pidgeon/models/webhook_headers.py +48 -0
  363. pidgeon/models/webhook_headers_headers.py +45 -0
  364. pidgeon/models/webhooks_create_body.py +97 -0
  365. pidgeon/models/webhooks_create_body_event_types_item.py +32 -0
  366. pidgeon/models/webhooks_create_response_201.py +67 -0
  367. pidgeon/models/webhooks_delete_response_200.py +67 -0
  368. pidgeon/models/webhooks_deliveries_response_200.py +97 -0
  369. pidgeon/models/webhooks_get_headers_response_200.py +67 -0
  370. pidgeon/models/webhooks_get_response_200.py +67 -0
  371. pidgeon/models/webhooks_list_response_200.py +97 -0
  372. pidgeon/models/webhooks_replay_response_200.py +67 -0
  373. pidgeon/models/webhooks_update_body.py +44 -0
  374. pidgeon/models/webhooks_update_body_status.py +9 -0
  375. pidgeon/models/webhooks_update_headers_body.py +74 -0
  376. pidgeon/models/webhooks_update_headers_body_headers.py +45 -0
  377. pidgeon/models/webhooks_update_headers_response_200.py +67 -0
  378. pidgeon/models/webhooks_update_response_200.py +67 -0
  379. pidgeon/models/workspace.py +66 -0
  380. pidgeon/models/workspace_get_response_200.py +67 -0
  381. pidgeon/models/workspace_members_response_200.py +97 -0
  382. pidgeon/py.typed +1 -0
  383. pidgeon/types.py +54 -0
  384. pidgeon-1.0.0.dist-info/METADATA +141 -0
  385. pidgeon-1.0.0.dist-info/RECORD +386 -0
  386. pidgeon-1.0.0.dist-info/WHEEL +4 -0
pidgeon/__init__.py ADDED
@@ -0,0 +1,8 @@
1
+ """A client library for accessing Pidgeon API"""
2
+
3
+ from .client import AuthenticatedClient, Client
4
+
5
+ __all__ = (
6
+ "AuthenticatedClient",
7
+ "Client",
8
+ )
@@ -0,0 +1 @@
1
+ """Contains methods for accessing the API"""
@@ -0,0 +1 @@
1
+ """Contains endpoint functions for accessing the API"""
@@ -0,0 +1,184 @@
1
+ from http import HTTPStatus
2
+ from typing import Any
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...models.agent_attach_human_body import AgentAttachHumanBody
9
+ from ...models.agent_attach_human_response_200 import AgentAttachHumanResponse200
10
+ from ...models.error import Error
11
+ from ...types import Response
12
+
13
+
14
+ def _get_kwargs(
15
+ *,
16
+ body: AgentAttachHumanBody,
17
+ ) -> dict[str, Any]:
18
+ headers: dict[str, Any] = {}
19
+
20
+ _kwargs: dict[str, Any] = {
21
+ "method": "post",
22
+ "url": "/agent/human",
23
+ }
24
+
25
+ _kwargs["json"] = body.to_dict()
26
+
27
+ headers["Content-Type"] = "application/json"
28
+
29
+ _kwargs["headers"] = headers
30
+ return _kwargs
31
+
32
+
33
+ def _parse_response(
34
+ *, client: AuthenticatedClient | Client, response: httpx.Response
35
+ ) -> AgentAttachHumanResponse200 | Error | None:
36
+ if response.status_code == 200:
37
+ response_200 = AgentAttachHumanResponse200.from_dict(response.json())
38
+
39
+ return response_200
40
+
41
+ if response.status_code == 401:
42
+ response_401 = Error.from_dict(response.json())
43
+
44
+ return response_401
45
+
46
+ if response.status_code == 404:
47
+ response_404 = Error.from_dict(response.json())
48
+
49
+ return response_404
50
+
51
+ if response.status_code == 429:
52
+ response_429 = Error.from_dict(response.json())
53
+
54
+ return response_429
55
+
56
+ if client.raise_on_unexpected_status:
57
+ raise errors.UnexpectedStatus(response.status_code, response.content)
58
+ else:
59
+ return None
60
+
61
+
62
+ def _build_response(
63
+ *, client: AuthenticatedClient | Client, response: httpx.Response
64
+ ) -> Response[AgentAttachHumanResponse200 | Error]:
65
+ return Response(
66
+ status_code=HTTPStatus(response.status_code),
67
+ content=response.content,
68
+ headers=response.headers,
69
+ parsed=_parse_response(client=client, response=response),
70
+ )
71
+
72
+
73
+ def sync_detailed(
74
+ *,
75
+ client: AuthenticatedClient | Client,
76
+ body: AgentAttachHumanBody,
77
+ ) -> Response[AgentAttachHumanResponse200 | Error]:
78
+ """Name the human for a signup
79
+
80
+ For a signup that named none. Sends a fresh code and restarts the clock.
81
+
82
+ Args:
83
+ body (AgentAttachHumanBody):
84
+
85
+ Raises:
86
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
87
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
88
+
89
+ Returns:
90
+ Response[AgentAttachHumanResponse200 | Error]
91
+ """
92
+
93
+ kwargs = _get_kwargs(
94
+ body=body,
95
+ )
96
+
97
+ response = client.get_httpx_client().request(
98
+ **kwargs,
99
+ )
100
+
101
+ return _build_response(client=client, response=response)
102
+
103
+
104
+ def sync(
105
+ *,
106
+ client: AuthenticatedClient | Client,
107
+ body: AgentAttachHumanBody,
108
+ ) -> AgentAttachHumanResponse200 | Error | None:
109
+ """Name the human for a signup
110
+
111
+ For a signup that named none. Sends a fresh code and restarts the clock.
112
+
113
+ Args:
114
+ body (AgentAttachHumanBody):
115
+
116
+ Raises:
117
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
118
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
119
+
120
+ Returns:
121
+ AgentAttachHumanResponse200 | Error
122
+ """
123
+
124
+ return sync_detailed(
125
+ client=client,
126
+ body=body,
127
+ ).parsed
128
+
129
+
130
+ async def asyncio_detailed(
131
+ *,
132
+ client: AuthenticatedClient | Client,
133
+ body: AgentAttachHumanBody,
134
+ ) -> Response[AgentAttachHumanResponse200 | Error]:
135
+ """Name the human for a signup
136
+
137
+ For a signup that named none. Sends a fresh code and restarts the clock.
138
+
139
+ Args:
140
+ body (AgentAttachHumanBody):
141
+
142
+ Raises:
143
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
144
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
145
+
146
+ Returns:
147
+ Response[AgentAttachHumanResponse200 | Error]
148
+ """
149
+
150
+ kwargs = _get_kwargs(
151
+ body=body,
152
+ )
153
+
154
+ response = await client.get_async_httpx_client().request(**kwargs)
155
+
156
+ return _build_response(client=client, response=response)
157
+
158
+
159
+ async def asyncio(
160
+ *,
161
+ client: AuthenticatedClient | Client,
162
+ body: AgentAttachHumanBody,
163
+ ) -> AgentAttachHumanResponse200 | Error | None:
164
+ """Name the human for a signup
165
+
166
+ For a signup that named none. Sends a fresh code and restarts the clock.
167
+
168
+ Args:
169
+ body (AgentAttachHumanBody):
170
+
171
+ Raises:
172
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
173
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
174
+
175
+ Returns:
176
+ AgentAttachHumanResponse200 | Error
177
+ """
178
+
179
+ return (
180
+ await asyncio_detailed(
181
+ client=client,
182
+ body=body,
183
+ )
184
+ ).parsed
@@ -0,0 +1,196 @@
1
+ from http import HTTPStatus
2
+ from typing import Any
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...models.agent_sign_up_body import AgentSignUpBody
9
+ from ...models.agent_sign_up_response_201 import AgentSignUpResponse201
10
+ from ...models.error import Error
11
+ from ...types import Response
12
+
13
+
14
+ def _get_kwargs(
15
+ *,
16
+ body: AgentSignUpBody,
17
+ ) -> dict[str, Any]:
18
+ headers: dict[str, Any] = {}
19
+
20
+ _kwargs: dict[str, Any] = {
21
+ "method": "post",
22
+ "url": "/agent/signup",
23
+ }
24
+
25
+ _kwargs["json"] = body.to_dict()
26
+
27
+ headers["Content-Type"] = "application/json"
28
+
29
+ _kwargs["headers"] = headers
30
+ return _kwargs
31
+
32
+
33
+ def _parse_response(
34
+ *, client: AuthenticatedClient | Client, response: httpx.Response
35
+ ) -> AgentSignUpResponse201 | Error | None:
36
+ if response.status_code == 201:
37
+ response_201 = AgentSignUpResponse201.from_dict(response.json())
38
+
39
+ return response_201
40
+
41
+ if response.status_code == 401:
42
+ response_401 = Error.from_dict(response.json())
43
+
44
+ return response_401
45
+
46
+ if response.status_code == 404:
47
+ response_404 = Error.from_dict(response.json())
48
+
49
+ return response_404
50
+
51
+ if response.status_code == 429:
52
+ response_429 = Error.from_dict(response.json())
53
+
54
+ return response_429
55
+
56
+ if client.raise_on_unexpected_status:
57
+ raise errors.UnexpectedStatus(response.status_code, response.content)
58
+ else:
59
+ return None
60
+
61
+
62
+ def _build_response(
63
+ *, client: AuthenticatedClient | Client, response: httpx.Response
64
+ ) -> Response[AgentSignUpResponse201 | Error]:
65
+ return Response(
66
+ status_code=HTTPStatus(response.status_code),
67
+ content=response.content,
68
+ headers=response.headers,
69
+ parsed=_parse_response(client=client, response=response),
70
+ )
71
+
72
+
73
+ def sync_detailed(
74
+ *,
75
+ client: AuthenticatedClient | Client,
76
+ body: AgentSignUpBody,
77
+ ) -> Response[AgentSignUpResponse201 | Error]:
78
+ """Sign an agent up
79
+
80
+ The one call in this API that needs no key. An agent names a username and, optionally, the human who
81
+ will own the mailbox; a six-digit code goes to that human and **nothing is created until it comes
82
+ back**. Without a `human_email` the name is reserved and dormant — attach one with `POST
83
+ /agent/human`.
84
+
85
+ Args:
86
+ body (AgentSignUpBody):
87
+
88
+ Raises:
89
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
90
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
91
+
92
+ Returns:
93
+ Response[AgentSignUpResponse201 | Error]
94
+ """
95
+
96
+ kwargs = _get_kwargs(
97
+ body=body,
98
+ )
99
+
100
+ response = client.get_httpx_client().request(
101
+ **kwargs,
102
+ )
103
+
104
+ return _build_response(client=client, response=response)
105
+
106
+
107
+ def sync(
108
+ *,
109
+ client: AuthenticatedClient | Client,
110
+ body: AgentSignUpBody,
111
+ ) -> AgentSignUpResponse201 | Error | None:
112
+ """Sign an agent up
113
+
114
+ The one call in this API that needs no key. An agent names a username and, optionally, the human who
115
+ will own the mailbox; a six-digit code goes to that human and **nothing is created until it comes
116
+ back**. Without a `human_email` the name is reserved and dormant — attach one with `POST
117
+ /agent/human`.
118
+
119
+ Args:
120
+ body (AgentSignUpBody):
121
+
122
+ Raises:
123
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
124
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
125
+
126
+ Returns:
127
+ AgentSignUpResponse201 | Error
128
+ """
129
+
130
+ return sync_detailed(
131
+ client=client,
132
+ body=body,
133
+ ).parsed
134
+
135
+
136
+ async def asyncio_detailed(
137
+ *,
138
+ client: AuthenticatedClient | Client,
139
+ body: AgentSignUpBody,
140
+ ) -> Response[AgentSignUpResponse201 | Error]:
141
+ """Sign an agent up
142
+
143
+ The one call in this API that needs no key. An agent names a username and, optionally, the human who
144
+ will own the mailbox; a six-digit code goes to that human and **nothing is created until it comes
145
+ back**. Without a `human_email` the name is reserved and dormant — attach one with `POST
146
+ /agent/human`.
147
+
148
+ Args:
149
+ body (AgentSignUpBody):
150
+
151
+ Raises:
152
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
153
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
154
+
155
+ Returns:
156
+ Response[AgentSignUpResponse201 | Error]
157
+ """
158
+
159
+ kwargs = _get_kwargs(
160
+ body=body,
161
+ )
162
+
163
+ response = await client.get_async_httpx_client().request(**kwargs)
164
+
165
+ return _build_response(client=client, response=response)
166
+
167
+
168
+ async def asyncio(
169
+ *,
170
+ client: AuthenticatedClient | Client,
171
+ body: AgentSignUpBody,
172
+ ) -> AgentSignUpResponse201 | Error | None:
173
+ """Sign an agent up
174
+
175
+ The one call in this API that needs no key. An agent names a username and, optionally, the human who
176
+ will own the mailbox; a six-digit code goes to that human and **nothing is created until it comes
177
+ back**. Without a `human_email` the name is reserved and dormant — attach one with `POST
178
+ /agent/human`.
179
+
180
+ Args:
181
+ body (AgentSignUpBody):
182
+
183
+ Raises:
184
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
185
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
186
+
187
+ Returns:
188
+ AgentSignUpResponse201 | Error
189
+ """
190
+
191
+ return (
192
+ await asyncio_detailed(
193
+ client=client,
194
+ body=body,
195
+ )
196
+ ).parsed
@@ -0,0 +1,192 @@
1
+ from http import HTTPStatus
2
+ from typing import Any
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...models.agent_verify_body import AgentVerifyBody
9
+ from ...models.agent_verify_response_200 import AgentVerifyResponse200
10
+ from ...models.error import Error
11
+ from ...types import Response
12
+
13
+
14
+ def _get_kwargs(
15
+ *,
16
+ body: AgentVerifyBody,
17
+ ) -> dict[str, Any]:
18
+ headers: dict[str, Any] = {}
19
+
20
+ _kwargs: dict[str, Any] = {
21
+ "method": "post",
22
+ "url": "/agent/verify",
23
+ }
24
+
25
+ _kwargs["json"] = body.to_dict()
26
+
27
+ headers["Content-Type"] = "application/json"
28
+
29
+ _kwargs["headers"] = headers
30
+ return _kwargs
31
+
32
+
33
+ def _parse_response(
34
+ *, client: AuthenticatedClient | Client, response: httpx.Response
35
+ ) -> AgentVerifyResponse200 | Error | None:
36
+ if response.status_code == 200:
37
+ response_200 = AgentVerifyResponse200.from_dict(response.json())
38
+
39
+ return response_200
40
+
41
+ if response.status_code == 401:
42
+ response_401 = Error.from_dict(response.json())
43
+
44
+ return response_401
45
+
46
+ if response.status_code == 404:
47
+ response_404 = Error.from_dict(response.json())
48
+
49
+ return response_404
50
+
51
+ if response.status_code == 429:
52
+ response_429 = Error.from_dict(response.json())
53
+
54
+ return response_429
55
+
56
+ if client.raise_on_unexpected_status:
57
+ raise errors.UnexpectedStatus(response.status_code, response.content)
58
+ else:
59
+ return None
60
+
61
+
62
+ def _build_response(
63
+ *, client: AuthenticatedClient | Client, response: httpx.Response
64
+ ) -> Response[AgentVerifyResponse200 | Error]:
65
+ return Response(
66
+ status_code=HTTPStatus(response.status_code),
67
+ content=response.content,
68
+ headers=response.headers,
69
+ parsed=_parse_response(client=client, response=response),
70
+ )
71
+
72
+
73
+ def sync_detailed(
74
+ *,
75
+ client: AuthenticatedClient | Client,
76
+ body: AgentVerifyBody,
77
+ ) -> Response[AgentVerifyResponse200 | Error]:
78
+ """Verify an agent with the human’s code
79
+
80
+ Creates the account and the address. Ten wrong codes spend the signup, whatever comes next. It
81
+ returns no key: the agent asks for one through the account it now belongs to, which is how every
82
+ other key is made.
83
+
84
+ Args:
85
+ body (AgentVerifyBody):
86
+
87
+ Raises:
88
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
89
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
90
+
91
+ Returns:
92
+ Response[AgentVerifyResponse200 | Error]
93
+ """
94
+
95
+ kwargs = _get_kwargs(
96
+ body=body,
97
+ )
98
+
99
+ response = client.get_httpx_client().request(
100
+ **kwargs,
101
+ )
102
+
103
+ return _build_response(client=client, response=response)
104
+
105
+
106
+ def sync(
107
+ *,
108
+ client: AuthenticatedClient | Client,
109
+ body: AgentVerifyBody,
110
+ ) -> AgentVerifyResponse200 | Error | None:
111
+ """Verify an agent with the human’s code
112
+
113
+ Creates the account and the address. Ten wrong codes spend the signup, whatever comes next. It
114
+ returns no key: the agent asks for one through the account it now belongs to, which is how every
115
+ other key is made.
116
+
117
+ Args:
118
+ body (AgentVerifyBody):
119
+
120
+ Raises:
121
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
122
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
123
+
124
+ Returns:
125
+ AgentVerifyResponse200 | Error
126
+ """
127
+
128
+ return sync_detailed(
129
+ client=client,
130
+ body=body,
131
+ ).parsed
132
+
133
+
134
+ async def asyncio_detailed(
135
+ *,
136
+ client: AuthenticatedClient | Client,
137
+ body: AgentVerifyBody,
138
+ ) -> Response[AgentVerifyResponse200 | Error]:
139
+ """Verify an agent with the human’s code
140
+
141
+ Creates the account and the address. Ten wrong codes spend the signup, whatever comes next. It
142
+ returns no key: the agent asks for one through the account it now belongs to, which is how every
143
+ other key is made.
144
+
145
+ Args:
146
+ body (AgentVerifyBody):
147
+
148
+ Raises:
149
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
150
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
151
+
152
+ Returns:
153
+ Response[AgentVerifyResponse200 | Error]
154
+ """
155
+
156
+ kwargs = _get_kwargs(
157
+ body=body,
158
+ )
159
+
160
+ response = await client.get_async_httpx_client().request(**kwargs)
161
+
162
+ return _build_response(client=client, response=response)
163
+
164
+
165
+ async def asyncio(
166
+ *,
167
+ client: AuthenticatedClient | Client,
168
+ body: AgentVerifyBody,
169
+ ) -> AgentVerifyResponse200 | Error | None:
170
+ """Verify an agent with the human’s code
171
+
172
+ Creates the account and the address. Ten wrong codes spend the signup, whatever comes next. It
173
+ returns no key: the agent asks for one through the account it now belongs to, which is how every
174
+ other key is made.
175
+
176
+ Args:
177
+ body (AgentVerifyBody):
178
+
179
+ Raises:
180
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
181
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
182
+
183
+ Returns:
184
+ AgentVerifyResponse200 | Error
185
+ """
186
+
187
+ return (
188
+ await asyncio_detailed(
189
+ client=client,
190
+ body=body,
191
+ )
192
+ ).parsed
@@ -0,0 +1 @@
1
+ """Contains endpoint functions for accessing the API"""