mailslurp_client 12.8.3 → 13.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (163) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/alias_controller_api.rb +1 -1
  3. data/lib/mailslurp_client/api/attachment_controller_api.rb +1 -1
  4. data/lib/mailslurp_client/api/bounce_controller_api.rb +1 -1
  5. data/lib/mailslurp_client/api/bulk_actions_controller_api.rb +1 -1
  6. data/lib/mailslurp_client/api/common_actions_controller_api.rb +1 -1
  7. data/lib/mailslurp_client/api/contact_controller_api.rb +1 -1
  8. data/lib/mailslurp_client/api/domain_controller_api.rb +1 -1
  9. data/lib/mailslurp_client/api/email_controller_api.rb +194 -3
  10. data/lib/mailslurp_client/api/expired_controller_api.rb +1 -1
  11. data/lib/mailslurp_client/api/export_controller_api.rb +1 -1
  12. data/lib/mailslurp_client/api/form_controller_api.rb +1 -1
  13. data/lib/mailslurp_client/api/group_controller_api.rb +1 -1
  14. data/lib/mailslurp_client/api/inbox_controller_api.rb +7 -1
  15. data/lib/mailslurp_client/api/inbox_forwarder_controller_api.rb +1 -1
  16. data/lib/mailslurp_client/api/inbox_ruleset_controller_api.rb +1 -1
  17. data/lib/mailslurp_client/api/mail_server_controller_api.rb +1 -1
  18. data/lib/mailslurp_client/api/missed_email_controller_api.rb +76 -1
  19. data/lib/mailslurp_client/api/sent_emails_controller_api.rb +1 -1
  20. data/lib/mailslurp_client/api/template_controller_api.rb +75 -7
  21. data/lib/mailslurp_client/api/tracking_controller_api.rb +1 -1
  22. data/lib/mailslurp_client/api/wait_for_controller_api.rb +74 -9
  23. data/lib/mailslurp_client/api/webhook_controller_api.rb +124 -8
  24. data/lib/mailslurp_client/api_client.rb +1 -1
  25. data/lib/mailslurp_client/api_error.rb +1 -1
  26. data/lib/mailslurp_client/configuration.rb +1 -1
  27. data/lib/mailslurp_client/models/abstract_webhook_payload.rb +3 -3
  28. data/lib/mailslurp_client/models/alias_dto.rb +1 -1
  29. data/lib/mailslurp_client/models/alias_projection.rb +1 -1
  30. data/lib/mailslurp_client/models/attachment_entity.rb +1 -1
  31. data/lib/mailslurp_client/models/attachment_meta_data.rb +1 -1
  32. data/lib/mailslurp_client/models/attachment_projection.rb +1 -1
  33. data/lib/mailslurp_client/models/basic_auth_options.rb +1 -1
  34. data/lib/mailslurp_client/models/bounce_projection.rb +1 -1
  35. data/lib/mailslurp_client/models/bounce_recipient.rb +1 -1
  36. data/lib/mailslurp_client/models/bounced_email_dto.rb +1 -1
  37. data/lib/mailslurp_client/models/bounced_recipient_dto.rb +1 -1
  38. data/lib/mailslurp_client/models/bulk_send_email_options.rb +1 -1
  39. data/lib/mailslurp_client/models/condition_option.rb +1 -1
  40. data/lib/mailslurp_client/models/contact_dto.rb +1 -1
  41. data/lib/mailslurp_client/models/contact_projection.rb +1 -1
  42. data/lib/mailslurp_client/models/content_match_options.rb +1 -1
  43. data/lib/mailslurp_client/models/create_alias_options.rb +1 -1
  44. data/lib/mailslurp_client/models/create_contact_options.rb +1 -1
  45. data/lib/mailslurp_client/models/create_domain_options.rb +1 -1
  46. data/lib/mailslurp_client/models/create_group_options.rb +1 -1
  47. data/lib/mailslurp_client/models/create_inbox_dto.rb +1 -1
  48. data/lib/mailslurp_client/models/create_inbox_forwarder_options.rb +1 -1
  49. data/lib/mailslurp_client/models/create_inbox_ruleset_options.rb +1 -1
  50. data/lib/mailslurp_client/models/create_template_options.rb +1 -1
  51. data/lib/mailslurp_client/models/create_tracking_pixel_options.rb +1 -1
  52. data/lib/mailslurp_client/models/create_webhook_options.rb +3 -3
  53. data/lib/mailslurp_client/models/describe_domain_options.rb +1 -1
  54. data/lib/mailslurp_client/models/describe_mail_server_domain_result.rb +1 -1
  55. data/lib/mailslurp_client/models/dns_lookup_options.rb +1 -1
  56. data/lib/mailslurp_client/models/dns_lookup_result.rb +1 -1
  57. data/lib/mailslurp_client/models/dns_lookup_results.rb +1 -1
  58. data/lib/mailslurp_client/models/domain_dto.rb +1 -1
  59. data/lib/mailslurp_client/models/domain_name_record.rb +1 -1
  60. data/lib/mailslurp_client/models/domain_preview.rb +1 -1
  61. data/lib/mailslurp_client/models/download_attachment_dto.rb +1 -1
  62. data/lib/mailslurp_client/models/email.rb +29 -11
  63. data/lib/mailslurp_client/models/email_analysis.rb +1 -1
  64. data/lib/mailslurp_client/models/email_content_match_result.rb +1 -1
  65. data/lib/mailslurp_client/models/email_links_result.rb +228 -0
  66. data/lib/mailslurp_client/models/email_preview.rb +7 -7
  67. data/lib/mailslurp_client/models/email_projection.rb +1 -1
  68. data/lib/mailslurp_client/models/email_recipients.rb +230 -0
  69. data/lib/mailslurp_client/models/email_text_lines_result.rb +1 -1
  70. data/lib/mailslurp_client/models/email_verification_result.rb +2 -2
  71. data/lib/mailslurp_client/models/expiration_defaults.rb +1 -1
  72. data/lib/mailslurp_client/models/expired_inbox_dto.rb +1 -1
  73. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +1 -1
  74. data/lib/mailslurp_client/models/export_link.rb +1 -1
  75. data/lib/mailslurp_client/models/export_options.rb +1 -1
  76. data/lib/mailslurp_client/models/forward_email_options.rb +1 -1
  77. data/lib/mailslurp_client/models/gravatar_url.rb +225 -0
  78. data/lib/mailslurp_client/models/group_contacts_dto.rb +1 -1
  79. data/lib/mailslurp_client/models/group_dto.rb +1 -1
  80. data/lib/mailslurp_client/models/group_projection.rb +1 -1
  81. data/lib/mailslurp_client/models/html_validation_result.rb +1 -1
  82. data/lib/mailslurp_client/models/inbox.rb +1 -1
  83. data/lib/mailslurp_client/models/inbox_forwarder_dto.rb +1 -1
  84. data/lib/mailslurp_client/models/inbox_forwarder_test_options.rb +1 -1
  85. data/lib/mailslurp_client/models/inbox_forwarder_test_result.rb +1 -1
  86. data/lib/mailslurp_client/models/inbox_projection.rb +1 -1
  87. data/lib/mailslurp_client/models/inbox_ruleset_dto.rb +1 -1
  88. data/lib/mailslurp_client/models/inbox_ruleset_test_options.rb +1 -1
  89. data/lib/mailslurp_client/models/inbox_ruleset_test_result.rb +1 -1
  90. data/lib/mailslurp_client/models/ip_address_result.rb +1 -1
  91. data/lib/mailslurp_client/models/match_option.rb +1 -1
  92. data/lib/mailslurp_client/models/match_options.rb +1 -1
  93. data/lib/mailslurp_client/models/missed_email.rb +1 -6
  94. data/lib/mailslurp_client/models/missed_email_projection.rb +1 -6
  95. data/lib/mailslurp_client/models/name_server_record.rb +1 -1
  96. data/lib/mailslurp_client/models/organization_inbox_projection.rb +1 -1
  97. data/lib/mailslurp_client/models/page_alias.rb +1 -1
  98. data/lib/mailslurp_client/models/page_attachment_entity.rb +1 -1
  99. data/lib/mailslurp_client/models/page_bounced_email.rb +1 -1
  100. data/lib/mailslurp_client/models/page_bounced_recipients.rb +1 -1
  101. data/lib/mailslurp_client/models/page_contact_projection.rb +1 -1
  102. data/lib/mailslurp_client/models/page_email_preview.rb +1 -1
  103. data/lib/mailslurp_client/models/page_email_projection.rb +1 -1
  104. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +1 -1
  105. data/lib/mailslurp_client/models/page_group_projection.rb +1 -1
  106. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +1 -1
  107. data/lib/mailslurp_client/models/page_inbox_projection.rb +1 -1
  108. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +1 -1
  109. data/lib/mailslurp_client/models/page_missed_email_projection.rb +1 -1
  110. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +1 -1
  111. data/lib/mailslurp_client/models/page_sent_email_projection.rb +1 -1
  112. data/lib/mailslurp_client/models/page_template_projection.rb +1 -1
  113. data/lib/mailslurp_client/models/page_thread_projection.rb +1 -1
  114. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +1 -1
  115. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +299 -0
  116. data/lib/mailslurp_client/models/page_webhook_projection.rb +2 -1
  117. data/lib/mailslurp_client/models/page_webhook_result.rb +2 -2
  118. data/lib/mailslurp_client/models/pageable.rb +1 -1
  119. data/lib/mailslurp_client/models/raw_email_json.rb +1 -1
  120. data/lib/mailslurp_client/models/{model_alias.rb → recipient.rb} +14 -74
  121. data/lib/mailslurp_client/models/reply_to_alias_email_options.rb +1 -1
  122. data/lib/mailslurp_client/models/reply_to_email_options.rb +1 -1
  123. data/lib/mailslurp_client/models/send_email_options.rb +1 -1
  124. data/lib/mailslurp_client/models/sender.rb +234 -0
  125. data/lib/mailslurp_client/models/sent_email_dto.rb +1 -1
  126. data/lib/mailslurp_client/models/sent_email_projection.rb +1 -1
  127. data/lib/mailslurp_client/models/set_inbox_favourited_options.rb +1 -1
  128. data/lib/mailslurp_client/models/simple_send_email_options.rb +1 -1
  129. data/lib/mailslurp_client/models/sort.rb +1 -1
  130. data/lib/mailslurp_client/models/template_dto.rb +1 -1
  131. data/lib/mailslurp_client/models/template_projection.rb +1 -1
  132. data/lib/mailslurp_client/models/template_variable.rb +1 -1
  133. data/lib/mailslurp_client/models/test_new_inbox_forwarder_options.rb +1 -1
  134. data/lib/mailslurp_client/models/test_new_inbox_ruleset_options.rb +1 -1
  135. data/lib/mailslurp_client/models/thread_projection.rb +1 -1
  136. data/lib/mailslurp_client/models/tracking_pixel_dto.rb +1 -1
  137. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +1 -1
  138. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +254 -0
  139. data/lib/mailslurp_client/models/unread_count.rb +1 -1
  140. data/lib/mailslurp_client/models/update_alias_options.rb +1 -1
  141. data/lib/mailslurp_client/models/update_domain_options.rb +1 -1
  142. data/lib/mailslurp_client/models/update_group_contacts.rb +1 -1
  143. data/lib/mailslurp_client/models/update_inbox_options.rb +1 -1
  144. data/lib/mailslurp_client/models/upload_attachment_options.rb +2 -2
  145. data/lib/mailslurp_client/models/validation_dto.rb +1 -1
  146. data/lib/mailslurp_client/models/validation_message.rb +1 -1
  147. data/lib/mailslurp_client/models/verify_email_address_options.rb +1 -1
  148. data/lib/mailslurp_client/models/wait_for_conditions.rb +28 -3
  149. data/lib/mailslurp_client/models/webhook_dto.rb +3 -3
  150. data/lib/mailslurp_client/models/webhook_email_opened_payload.rb +3 -3
  151. data/lib/mailslurp_client/models/webhook_email_read_payload.rb +312 -0
  152. data/lib/mailslurp_client/models/webhook_new_attachment_payload.rb +3 -3
  153. data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +3 -3
  154. data/lib/mailslurp_client/models/webhook_new_email_payload.rb +8 -8
  155. data/lib/mailslurp_client/models/webhook_projection.rb +3 -3
  156. data/lib/mailslurp_client/models/webhook_redrive_result.rb +234 -0
  157. data/lib/mailslurp_client/models/{webhook_result_entity.rb → webhook_result_dto.rb} +16 -7
  158. data/lib/mailslurp_client/models/webhook_test_request.rb +1 -1
  159. data/lib/mailslurp_client/models/webhook_test_response.rb +1 -1
  160. data/lib/mailslurp_client/models/webhook_test_result.rb +1 -1
  161. data/lib/mailslurp_client/version.rb +2 -2
  162. data/lib/mailslurp_client.rb +11 -3
  163. metadata +12 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0be4890f6575516d8fd55e9c1ecddec727214797175b97bc7a3640e854ab4efa
4
- data.tar.gz: 5c4d1103dd95353d2a45b3c77082f53288f8d92949f81616406c854363bf31a8
3
+ metadata.gz: 36025fef785d36519a4f7ebcfedeab11d098717e5e093aedc2e5f637b4e8f28a
4
+ data.tar.gz: 3e512904562e1359211f6d79cd5b9a7d7202ee5329095f28607701a5f6ba6f73
5
5
  SHA512:
6
- metadata.gz: bbdedc8356a9c4c5a0fc3dfdc118aa80933f5682062412c2e967dea81b26862332eec13e39106d24a9dc40a0cb318647389aa669f9ea9af9f4e85aa87794859a
7
- data.tar.gz: cbf43aff215df9400b093697d8f665b2e0c3d88ad6ab169c2fc2bcd774287bb16c00547a00a0ba4bbbbc8fdfea5650296518d73c12ea8c8879062509b69e0865
6
+ metadata.gz: 5bcd9b7b7bdefbe8c235c56ea363898e97a3b76a35ac8e6587fe19958b47ef9df13f434b481c11ad97aa843f28e2e6fe43a21d7464b92702fa191957fc2a842e
7
+ data.tar.gz: fb0d56bc28bded9187022ff06551108a874142070c5c99f66204a2af744bee6ecfce496ff8923bf9fc1d626a06b2d22ef34921565a8af5bafdeeeda9eef03d20
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #MailSlurp API
3
3
 
4
- #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
4
+ #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #MailSlurp API
3
3
 
4
- #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
4
+ #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #MailSlurp API
3
3
 
4
- #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
4
+ #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #MailSlurp API
3
3
 
4
- #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
4
+ #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #MailSlurp API
3
3
 
4
- #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
4
+ #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #MailSlurp API
3
3
 
4
- #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
4
+ #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #MailSlurp API
3
3
 
4
- #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
4
+ #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #MailSlurp API
3
3
 
4
- #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
4
+ #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
7
 
@@ -861,6 +861,68 @@ module MailSlurpClient
861
861
  return data, status_code, headers
862
862
  end
863
863
 
864
+ # Parse and return list of links found in an email (only works for HTML content)
865
+ # HTML parsing uses JSoup and UNIX line separators. Searches content for href attributes
866
+ # @param email_id [String] ID of email to fetch text for
867
+ # @param [Hash] opts the optional parameters
868
+ # @return [EmailLinksResult]
869
+ def get_email_links(email_id, opts = {})
870
+ data, _status_code, _headers = get_email_links_with_http_info(email_id, opts)
871
+ data
872
+ end
873
+
874
+ # Parse and return list of links found in an email (only works for HTML content)
875
+ # HTML parsing uses JSoup and UNIX line separators. Searches content for href attributes
876
+ # @param email_id [String] ID of email to fetch text for
877
+ # @param [Hash] opts the optional parameters
878
+ # @return [Array<(EmailLinksResult, Integer, Hash)>] EmailLinksResult data, response status code and response headers
879
+ def get_email_links_with_http_info(email_id, opts = {})
880
+ if @api_client.config.debugging
881
+ @api_client.config.logger.debug 'Calling API: EmailControllerApi.get_email_links ...'
882
+ end
883
+ # verify the required parameter 'email_id' is set
884
+ if @api_client.config.client_side_validation && email_id.nil?
885
+ fail ArgumentError, "Missing the required parameter 'email_id' when calling EmailControllerApi.get_email_links"
886
+ end
887
+ # resource path
888
+ local_var_path = '/emails/{emailId}/links'.sub('{' + 'emailId' + '}', CGI.escape(email_id.to_s))
889
+
890
+ # query parameters
891
+ query_params = opts[:query_params] || {}
892
+
893
+ # header parameters
894
+ header_params = opts[:header_params] || {}
895
+ # HTTP header 'Accept' (if needed)
896
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
897
+
898
+ # form parameters
899
+ form_params = opts[:form_params] || {}
900
+
901
+ # http body (model)
902
+ post_body = opts[:body]
903
+
904
+ # return_type
905
+ return_type = opts[:return_type] || 'EmailLinksResult'
906
+
907
+ # auth_names
908
+ auth_names = opts[:auth_names] || ['API_KEY']
909
+
910
+ new_options = opts.merge(
911
+ :header_params => header_params,
912
+ :query_params => query_params,
913
+ :form_params => form_params,
914
+ :body => post_body,
915
+ :auth_names => auth_names,
916
+ :return_type => return_type
917
+ )
918
+
919
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
920
+ if @api_client.config.debugging
921
+ @api_client.config.logger.debug "API called: EmailControllerApi#get_email_links\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
922
+ end
923
+ return data, status_code, headers
924
+ end
925
+
864
926
  # Parse and return text from an email, stripping HTML and decoding encoded characters
865
927
  # Parse an email body and return the content as an array of strings. HTML parsing uses JSoup and UNIX line separators.
866
928
  # @param email_id [String] ID of email to fetch text for
@@ -1007,10 +1069,74 @@ module MailSlurpClient
1007
1069
  return data, status_code, headers
1008
1070
  end
1009
1071
 
1072
+ # Get gravatar url for email address
1073
+ # @param email_address [String] emailAddress
1074
+ # @param [Hash] opts the optional parameters
1075
+ # @option opts [String] :size size
1076
+ # @return [GravatarUrl]
1077
+ def get_gravatar_url_for_email_address(email_address, opts = {})
1078
+ data, _status_code, _headers = get_gravatar_url_for_email_address_with_http_info(email_address, opts)
1079
+ data
1080
+ end
1081
+
1082
+ # Get gravatar url for email address
1083
+ # @param email_address [String] emailAddress
1084
+ # @param [Hash] opts the optional parameters
1085
+ # @option opts [String] :size size
1086
+ # @return [Array<(GravatarUrl, Integer, Hash)>] GravatarUrl data, response status code and response headers
1087
+ def get_gravatar_url_for_email_address_with_http_info(email_address, opts = {})
1088
+ if @api_client.config.debugging
1089
+ @api_client.config.logger.debug 'Calling API: EmailControllerApi.get_gravatar_url_for_email_address ...'
1090
+ end
1091
+ # verify the required parameter 'email_address' is set
1092
+ if @api_client.config.client_side_validation && email_address.nil?
1093
+ fail ArgumentError, "Missing the required parameter 'email_address' when calling EmailControllerApi.get_gravatar_url_for_email_address"
1094
+ end
1095
+ # resource path
1096
+ local_var_path = '/emails/gravatarFor'
1097
+
1098
+ # query parameters
1099
+ query_params = opts[:query_params] || {}
1100
+ query_params[:'emailAddress'] = email_address
1101
+ query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
1102
+
1103
+ # header parameters
1104
+ header_params = opts[:header_params] || {}
1105
+ # HTTP header 'Accept' (if needed)
1106
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1107
+
1108
+ # form parameters
1109
+ form_params = opts[:form_params] || {}
1110
+
1111
+ # http body (model)
1112
+ post_body = opts[:body]
1113
+
1114
+ # return_type
1115
+ return_type = opts[:return_type] || 'GravatarUrl'
1116
+
1117
+ # auth_names
1118
+ auth_names = opts[:auth_names] || ['API_KEY']
1119
+
1120
+ new_options = opts.merge(
1121
+ :header_params => header_params,
1122
+ :query_params => query_params,
1123
+ :form_params => form_params,
1124
+ :body => post_body,
1125
+ :auth_names => auth_names,
1126
+ :return_type => return_type
1127
+ )
1128
+
1129
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1130
+ if @api_client.config.debugging
1131
+ @api_client.config.logger.debug "API called: EmailControllerApi#get_gravatar_url_for_email_address\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1132
+ end
1133
+ return data, status_code, headers
1134
+ end
1135
+
1010
1136
  # Get latest email in all inboxes. Most recently received.
1011
1137
  # Get the newest email in all inboxes or in a passed set of inbox IDs
1012
1138
  # @param [Hash] opts the optional parameters
1013
- # @option opts [Array<String>] :inbox_ids Optional set of inboxes to filter by. Only get the latest email from these inbox IDs
1139
+ # @option opts [Array<String>] :inbox_ids Optional set of inboxes to filter by. Only get the latest email from these inbox IDs. If not provided will search across all inboxes
1014
1140
  # @return [Email]
1015
1141
  def get_latest_email(opts = {})
1016
1142
  data, _status_code, _headers = get_latest_email_with_http_info(opts)
@@ -1020,7 +1146,7 @@ module MailSlurpClient
1020
1146
  # Get latest email in all inboxes. Most recently received.
1021
1147
  # Get the newest email in all inboxes or in a passed set of inbox IDs
1022
1148
  # @param [Hash] opts the optional parameters
1023
- # @option opts [Array<String>] :inbox_ids Optional set of inboxes to filter by. Only get the latest email from these inbox IDs
1149
+ # @option opts [Array<String>] :inbox_ids Optional set of inboxes to filter by. Only get the latest email from these inbox IDs. If not provided will search across all inboxes
1024
1150
  # @return [Array<(Email, Integer, Hash)>] Email data, response status code and response headers
1025
1151
  def get_latest_email_with_http_info(opts = {})
1026
1152
  if @api_client.config.debugging
@@ -1383,6 +1509,71 @@ module MailSlurpClient
1383
1509
  return data, status_code, headers
1384
1510
  end
1385
1511
 
1512
+ # Mark an email as read on unread
1513
+ # Marks an email as read or unread. Pass boolean read flag to set value. This is useful if you want to read an email but keep it as unread
1514
+ # @param email_id [String] emailId
1515
+ # @param [Hash] opts the optional parameters
1516
+ # @option opts [Boolean] :read What value to assign to email read property. Default true. (default to true)
1517
+ # @return [EmailPreview]
1518
+ def mark_as_read(email_id, opts = {})
1519
+ data, _status_code, _headers = mark_as_read_with_http_info(email_id, opts)
1520
+ data
1521
+ end
1522
+
1523
+ # Mark an email as read on unread
1524
+ # Marks an email as read or unread. Pass boolean read flag to set value. This is useful if you want to read an email but keep it as unread
1525
+ # @param email_id [String] emailId
1526
+ # @param [Hash] opts the optional parameters
1527
+ # @option opts [Boolean] :read What value to assign to email read property. Default true.
1528
+ # @return [Array<(EmailPreview, Integer, Hash)>] EmailPreview data, response status code and response headers
1529
+ def mark_as_read_with_http_info(email_id, opts = {})
1530
+ if @api_client.config.debugging
1531
+ @api_client.config.logger.debug 'Calling API: EmailControllerApi.mark_as_read ...'
1532
+ end
1533
+ # verify the required parameter 'email_id' is set
1534
+ if @api_client.config.client_side_validation && email_id.nil?
1535
+ fail ArgumentError, "Missing the required parameter 'email_id' when calling EmailControllerApi.mark_as_read"
1536
+ end
1537
+ # resource path
1538
+ local_var_path = '/emails/{emailId}/read'.sub('{' + 'emailId' + '}', CGI.escape(email_id.to_s))
1539
+
1540
+ # query parameters
1541
+ query_params = opts[:query_params] || {}
1542
+ query_params[:'read'] = opts[:'read'] if !opts[:'read'].nil?
1543
+
1544
+ # header parameters
1545
+ header_params = opts[:header_params] || {}
1546
+ # HTTP header 'Accept' (if needed)
1547
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1548
+
1549
+ # form parameters
1550
+ form_params = opts[:form_params] || {}
1551
+
1552
+ # http body (model)
1553
+ post_body = opts[:body]
1554
+
1555
+ # return_type
1556
+ return_type = opts[:return_type] || 'EmailPreview'
1557
+
1558
+ # auth_names
1559
+ auth_names = opts[:auth_names] || ['API_KEY']
1560
+
1561
+ new_options = opts.merge(
1562
+ :header_params => header_params,
1563
+ :query_params => query_params,
1564
+ :form_params => form_params,
1565
+ :body => post_body,
1566
+ :auth_names => auth_names,
1567
+ :return_type => return_type
1568
+ )
1569
+
1570
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
1571
+ if @api_client.config.debugging
1572
+ @api_client.config.logger.debug "API called: EmailControllerApi#mark_as_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1573
+ end
1574
+ return data, status_code, headers
1575
+ end
1576
+
1386
1577
  # Reply to an email
1387
1578
  # Send the reply to the email sender or reply-to and include same subject cc bcc etc. Reply to an email and the contents will be sent with the existing subject to the emails `to`, `cc`, and `bcc`.
1388
1579
  # @param email_id [String] ID of the email that should be replied to
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #MailSlurp API
3
3
 
4
- #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
4
+ #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #MailSlurp API
3
3
 
4
- #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
4
+ #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #MailSlurp API
3
3
 
4
- #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
4
+ #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #MailSlurp API
3
3
 
4
- #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
4
+ #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #MailSlurp API
3
3
 
4
- #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
4
+ #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
7
 
@@ -496,12 +496,14 @@ module MailSlurpClient
496
496
  # List emails that an inbox has received. Only emails that are sent to the inbox's email address will appear in the inbox. It may take several seconds for any email you send to an inbox's email address to appear in the inbox. To make this endpoint wait for a minimum number of emails use the `minCount` parameter. The server will retry the inbox database until the `minCount` is satisfied or the `retryTimeout` is reached
497
497
  # @param inbox_id [String] Id of inbox that emails belongs to
498
498
  # @param [Hash] opts the optional parameters
499
+ # @option opts [Integer] :delay_timeout delayTimeout
499
500
  # @option opts [Integer] :limit Limit the result set, ordered by received date time sort direction. Maximum 100. For more listing options see the email controller
500
501
  # @option opts [Integer] :min_count Minimum acceptable email count. Will cause request to hang (and retry) until minCount is satisfied or retryTimeout is reached.
501
502
  # @option opts [Integer] :retry_timeout Maximum milliseconds to spend retrying inbox database until minCount emails are returned
502
503
  # @option opts [DateTime] :since Exclude emails received before this ISO 8601 date time
503
504
  # @option opts [Integer] :size Alias for limit. Assessed first before assessing any passed limit.
504
505
  # @option opts [String] :sort Sort the results by received date and direction ASC or DESC
506
+ # @option opts [Boolean] :unread_only unreadOnly
505
507
  # @return [Array<EmailPreview>]
506
508
  def get_emails(inbox_id, opts = {})
507
509
  data, _status_code, _headers = get_emails_with_http_info(inbox_id, opts)
@@ -512,12 +514,14 @@ module MailSlurpClient
512
514
  # List emails that an inbox has received. Only emails that are sent to the inbox&#39;s email address will appear in the inbox. It may take several seconds for any email you send to an inbox&#39;s email address to appear in the inbox. To make this endpoint wait for a minimum number of emails use the &#x60;minCount&#x60; parameter. The server will retry the inbox database until the &#x60;minCount&#x60; is satisfied or the &#x60;retryTimeout&#x60; is reached
513
515
  # @param inbox_id [String] Id of inbox that emails belongs to
514
516
  # @param [Hash] opts the optional parameters
517
+ # @option opts [Integer] :delay_timeout delayTimeout
515
518
  # @option opts [Integer] :limit Limit the result set, ordered by received date time sort direction. Maximum 100. For more listing options see the email controller
516
519
  # @option opts [Integer] :min_count Minimum acceptable email count. Will cause request to hang (and retry) until minCount is satisfied or retryTimeout is reached.
517
520
  # @option opts [Integer] :retry_timeout Maximum milliseconds to spend retrying inbox database until minCount emails are returned
518
521
  # @option opts [DateTime] :since Exclude emails received before this ISO 8601 date time
519
522
  # @option opts [Integer] :size Alias for limit. Assessed first before assessing any passed limit.
520
523
  # @option opts [String] :sort Sort the results by received date and direction ASC or DESC
524
+ # @option opts [Boolean] :unread_only unreadOnly
521
525
  # @return [Array<(Array<EmailPreview>, Integer, Hash)>] Array<EmailPreview> data, response status code and response headers
522
526
  def get_emails_with_http_info(inbox_id, opts = {})
523
527
  if @api_client.config.debugging
@@ -536,12 +540,14 @@ module MailSlurpClient
536
540
 
537
541
  # query parameters
538
542
  query_params = opts[:query_params] || {}
543
+ query_params[:'delayTimeout'] = opts[:'delay_timeout'] if !opts[:'delay_timeout'].nil?
539
544
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
540
545
  query_params[:'minCount'] = opts[:'min_count'] if !opts[:'min_count'].nil?
541
546
  query_params[:'retryTimeout'] = opts[:'retry_timeout'] if !opts[:'retry_timeout'].nil?
542
547
  query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
543
548
  query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
544
549
  query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
550
+ query_params[:'unreadOnly'] = opts[:'unread_only'] if !opts[:'unread_only'].nil?
545
551
 
546
552
  # header parameters
547
553
  header_params = opts[:header_params] || {}
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #MailSlurp API
3
3
 
4
- #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
4
+ #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #MailSlurp API
3
3
 
4
- #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
4
+ #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #MailSlurp API
3
3
 
4
- #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
4
+ #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #MailSlurp API
3
3
 
4
- #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
4
+ #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
7
 
@@ -92,6 +92,81 @@ module MailSlurpClient
92
92
  return data, status_code, headers
93
93
  end
94
94
 
95
+ # Get all unknown missed emails in paginated format
96
+ # Unknown missed emails are emails that were sent to MailSlurp but could not be assigned to an existing inbox.
97
+ # @param [Hash] opts the optional parameters
98
+ # @option opts [String] :inbox_id Optional inbox ID filter
99
+ # @option opts [Integer] :page Optional page index in list pagination (default to 0)
100
+ # @option opts [String] :search_filter Optional search filter
101
+ # @option opts [Integer] :size Optional page size in list pagination (default to 20)
102
+ # @option opts [String] :sort Optional createdAt sort direction ASC or DESC (default to 'ASC')
103
+ # @return [PageUnknownMissedEmailProjection]
104
+ def get_all_unknown_missed_emails(opts = {})
105
+ data, _status_code, _headers = get_all_unknown_missed_emails_with_http_info(opts)
106
+ data
107
+ end
108
+
109
+ # Get all unknown missed emails in paginated format
110
+ # Unknown missed emails are emails that were sent to MailSlurp but could not be assigned to an existing inbox.
111
+ # @param [Hash] opts the optional parameters
112
+ # @option opts [String] :inbox_id Optional inbox ID filter
113
+ # @option opts [Integer] :page Optional page index in list pagination
114
+ # @option opts [String] :search_filter Optional search filter
115
+ # @option opts [Integer] :size Optional page size in list pagination
116
+ # @option opts [String] :sort Optional createdAt sort direction ASC or DESC
117
+ # @return [Array<(PageUnknownMissedEmailProjection, Integer, Hash)>] PageUnknownMissedEmailProjection data, response status code and response headers
118
+ def get_all_unknown_missed_emails_with_http_info(opts = {})
119
+ if @api_client.config.debugging
120
+ @api_client.config.logger.debug 'Calling API: MissedEmailControllerApi.get_all_unknown_missed_emails ...'
121
+ end
122
+ allowable_values = ["ASC", "DESC"]
123
+ if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
124
+ fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
125
+ end
126
+ # resource path
127
+ local_var_path = '/missed-emails/unknown'
128
+
129
+ # query parameters
130
+ query_params = opts[:query_params] || {}
131
+ query_params[:'inboxId'] = opts[:'inbox_id'] if !opts[:'inbox_id'].nil?
132
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
133
+ query_params[:'searchFilter'] = opts[:'search_filter'] if !opts[:'search_filter'].nil?
134
+ query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
135
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
136
+
137
+ # header parameters
138
+ header_params = opts[:header_params] || {}
139
+ # HTTP header 'Accept' (if needed)
140
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
141
+
142
+ # form parameters
143
+ form_params = opts[:form_params] || {}
144
+
145
+ # http body (model)
146
+ post_body = opts[:body]
147
+
148
+ # return_type
149
+ return_type = opts[:return_type] || 'PageUnknownMissedEmailProjection'
150
+
151
+ # auth_names
152
+ auth_names = opts[:auth_names] || ['API_KEY']
153
+
154
+ new_options = opts.merge(
155
+ :header_params => header_params,
156
+ :query_params => query_params,
157
+ :form_params => form_params,
158
+ :body => post_body,
159
+ :auth_names => auth_names,
160
+ :return_type => return_type
161
+ )
162
+
163
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
164
+ if @api_client.config.debugging
165
+ @api_client.config.logger.debug "API called: MissedEmailControllerApi#get_all_unknown_missed_emails\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
166
+ end
167
+ return data, status_code, headers
168
+ end
169
+
95
170
  # Get MissedEmail
96
171
  # @param missed_email_id [String] missedEmailId
97
172
  # @param [Hash] opts the optional parameters