mailslurp_client 17.2.0 → 17.3.0
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.
- checksums.yaml +4 -4
- data/lib/mailslurp_client/api/campaign_probe_controller_api.rb +138 -0
- data/lib/mailslurp_client/api/domain_monitor_controller_api.rb +264 -0
- data/lib/mailslurp_client/api/email_audit_controller_api.rb +334 -0
- data/lib/mailslurp_client/api/email_controller_api.rb +124 -0
- data/lib/mailslurp_client/api/inbox_controller_api.rb +4 -4
- data/lib/mailslurp_client/api/phone_controller_api.rb +1312 -81
- data/lib/mailslurp_client/api/sms_controller_api.rb +125 -0
- data/lib/mailslurp_client/api/tools_controller_api.rb +806 -0
- data/lib/mailslurp_client/models/abstract_webhook_payload.rb +15 -15
- data/lib/mailslurp_client/models/acquire_phone_pool_lease_options.rb +233 -0
- data/lib/mailslurp_client/models/add_phone_pool_numbers_options.rb +213 -0
- data/lib/mailslurp_client/models/ai_transform_mapping_projection.rb +27 -27
- data/lib/mailslurp_client/models/ai_transform_projection.rb +28 -28
- data/lib/mailslurp_client/models/alias_projection.rb +45 -45
- data/lib/mailslurp_client/models/alias_thread_projection.rb +42 -42
- data/lib/mailslurp_client/models/analyze_dmarc_report_options.rb +248 -0
- data/lib/mailslurp_client/models/analyze_dmarc_report_results.rb +386 -0
- data/lib/mailslurp_client/models/analyze_email_headers_options.rb +240 -0
- data/lib/mailslurp_client/models/analyze_email_headers_results.rb +275 -0
- data/lib/mailslurp_client/models/attachment_projection.rb +50 -50
- data/lib/mailslurp_client/models/available_phone_number_dto.rb +325 -0
- data/lib/mailslurp_client/models/available_phone_numbers_result.rb +236 -0
- data/lib/mailslurp_client/models/bounce_projection.rb +28 -28
- data/lib/mailslurp_client/models/bounce_recipient_projection.rb +10 -10
- data/lib/mailslurp_client/models/campaign_probe_run_comparison_dto.rb +397 -0
- data/lib/mailslurp_client/models/check_campaign_probe_options.rb +371 -0
- data/lib/mailslurp_client/models/check_campaign_probe_results.rb +482 -0
- data/lib/mailslurp_client/models/check_dns_propagation_options.rb +297 -0
- data/lib/mailslurp_client/models/check_dns_propagation_results.rb +361 -0
- data/lib/mailslurp_client/models/check_domain_monitor_options.rb +243 -0
- data/lib/mailslurp_client/models/check_domain_monitor_results.rb +398 -0
- data/lib/mailslurp_client/models/check_email_audit_options.rb +405 -0
- data/lib/mailslurp_client/models/check_email_auth_stack_options.rb +248 -0
- data/lib/mailslurp_client/models/check_email_auth_stack_results.rb +462 -0
- data/lib/mailslurp_client/models/check_email_blacklist_options.rb +241 -0
- data/lib/mailslurp_client/models/check_email_blacklist_results.rb +366 -0
- data/lib/mailslurp_client/models/connector_event_projection.rb +42 -42
- data/lib/mailslurp_client/models/connector_projection.rb +42 -42
- data/lib/mailslurp_client/models/contact_projection.rb +15 -15
- data/lib/mailslurp_client/models/create_email_audit_options.rb +394 -0
- data/lib/mailslurp_client/models/create_phone_number_options.rb +25 -4
- data/lib/mailslurp_client/models/create_phone_pool_options.rb +220 -0
- data/lib/mailslurp_client/models/create_phone_provisioning_job_item_options.rb +256 -0
- data/lib/mailslurp_client/models/create_phone_provisioning_job_options.rb +284 -0
- data/lib/mailslurp_client/models/dmarc_report_metadata.rb +308 -0
- data/lib/mailslurp_client/models/dmarc_report_source_summary.rb +274 -0
- data/lib/mailslurp_client/models/dns_propagation_resolver_result.rb +252 -0
- data/lib/mailslurp_client/models/domain_monitor_run_comparison_dto.rb +369 -0
- data/lib/mailslurp_client/models/domain_monitor_summary_dto.rb +248 -0
- data/lib/mailslurp_client/models/email_audit_analysis_result.rb +620 -0
- data/lib/mailslurp_client/models/email_audit_comparison_dto.rb +411 -0
- data/lib/mailslurp_client/models/email_audit_dto.rb +308 -0
- data/lib/mailslurp_client/models/email_audit_spelling_issue.rb +276 -0
- data/lib/mailslurp_client/models/email_audit_url_issue.rb +236 -0
- data/lib/mailslurp_client/models/email_blacklist_ip_result.rb +242 -0
- data/lib/mailslurp_client/models/email_blacklist_listing_result.rb +258 -0
- data/lib/mailslurp_client/models/email_header_analysis_summary.rb +242 -0
- data/lib/mailslurp_client/models/email_header_received_hop.rb +242 -0
- data/lib/mailslurp_client/models/email_projection.rb +88 -88
- data/lib/mailslurp_client/models/email_thread_projection.rb +54 -54
- data/lib/mailslurp_client/models/entity_automation_item_projection.rb +33 -33
- data/lib/mailslurp_client/models/entity_event_item_projection.rb +42 -42
- data/lib/mailslurp_client/models/entity_favourite_item_projection.rb +29 -29
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +27 -27
- data/lib/mailslurp_client/models/generate_spf_record_options.rb +357 -0
- data/lib/mailslurp_client/models/generate_spf_record_results.rb +318 -0
- data/lib/mailslurp_client/models/get_or_create_phone_pool_options.rb +220 -0
- data/lib/mailslurp_client/models/group_projection.rb +15 -15
- data/lib/mailslurp_client/models/guest_portal_user_projection.rb +47 -47
- data/lib/mailslurp_client/models/imap_email_projection.rb +18 -18
- data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +21 -21
- data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +33 -33
- data/lib/mailslurp_client/models/list_unsubscribe_recipient_projection.rb +19 -19
- data/lib/mailslurp_client/models/lookup_dkim_domain_options.rb +275 -0
- data/lib/mailslurp_client/models/lookup_dkim_domain_results.rb +304 -0
- data/lib/mailslurp_client/models/lookup_ptr_options.rb +241 -0
- data/lib/mailslurp_client/models/lookup_ptr_results.rb +305 -0
- data/lib/mailslurp_client/models/lookup_spf_domain_options.rb +240 -0
- data/lib/mailslurp_client/models/lookup_spf_domain_results.rb +305 -0
- data/lib/mailslurp_client/models/missed_email_projection.rb +28 -28
- data/lib/mailslurp_client/models/missed_sms_projection.rb +32 -32
- data/lib/mailslurp_client/models/opt_in_identity_projection.rb +18 -18
- data/lib/mailslurp_client/models/page_ai_transform_mapping_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_ai_transform_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_ai_transform_result_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_alias.rb +19 -19
- data/lib/mailslurp_client/models/page_alias_thread_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_attachment_entity.rb +19 -19
- data/lib/mailslurp_client/models/page_bounced_email.rb +19 -19
- data/lib/mailslurp_client/models/page_bounced_recipients.rb +19 -19
- data/lib/mailslurp_client/models/page_complaint.rb +19 -19
- data/lib/mailslurp_client/models/page_connector.rb +19 -19
- data/lib/mailslurp_client/models/page_connector_events.rb +19 -19
- data/lib/mailslurp_client/models/page_contact_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_delivery_status.rb +19 -19
- data/lib/mailslurp_client/models/page_device_preview_run_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_email_preview.rb +19 -19
- data/lib/mailslurp_client/models/page_email_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_email_thread_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_email_validation_request.rb +19 -19
- data/lib/mailslurp_client/models/page_entity_automation_items.rb +19 -19
- data/lib/mailslurp_client/models/page_entity_event_items.rb +19 -19
- data/lib/mailslurp_client/models/page_entity_favourite_items.rb +19 -19
- data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_group_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_guest_portal_users.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_replier_events.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_tags.rb +19 -19
- data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +19 -19
- data/lib/mailslurp_client/models/page_missed_email_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_missed_sms_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_opt_in_identity_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_phone_message_thread_item_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_phone_message_thread_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_phone_number_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_phone_number_release_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_plus_address_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_reputation_items.rb +19 -19
- data/lib/mailslurp_client/models/page_ruleset_dto.rb +19 -19
- data/lib/mailslurp_client/models/page_scheduled_jobs.rb +19 -19
- data/lib/mailslurp_client/models/page_sent_email_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_sent_sms_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_sms_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_template_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_webhook_endpoint_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_webhook_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_webhook_result.rb +19 -19
- data/lib/mailslurp_client/models/pageable_object.rb +22 -22
- data/lib/mailslurp_client/models/phone_message_thread_item_projection.rb +18 -18
- data/lib/mailslurp_client/models/phone_number_dto.rb +49 -4
- data/lib/mailslurp_client/models/phone_number_line_type_intelligence_dto.rb +242 -0
- data/lib/mailslurp_client/models/phone_number_line_type_lookup_dto.rb +286 -0
- data/lib/mailslurp_client/models/phone_number_projection.rb +80 -35
- data/lib/mailslurp_client/models/phone_number_release_projection.rb +39 -39
- data/lib/mailslurp_client/models/phone_pool_detail_dto.rb +334 -0
- data/lib/mailslurp_client/models/phone_pool_dto.rb +318 -0
- data/lib/mailslurp_client/models/phone_pool_lease_dto.rb +351 -0
- data/lib/mailslurp_client/models/phone_pool_member_dto.rb +333 -0
- data/lib/mailslurp_client/models/phone_provider_capabilities_result.rb +284 -0
- data/lib/mailslurp_client/models/phone_provisioning_job_dto.rb +434 -0
- data/lib/mailslurp_client/models/phone_provisioning_job_item_dto.rb +336 -0
- data/lib/mailslurp_client/models/phone_sms_prepaid_credit_dto.rb +340 -0
- data/lib/mailslurp_client/models/phone_sms_prepaid_credits_dto.rb +241 -0
- data/lib/mailslurp_client/models/plus_address_projection.rb +27 -27
- data/lib/mailslurp_client/models/recipient_projection.rb +13 -13
- data/lib/mailslurp_client/models/reputation_item_projection.rb +41 -41
- data/lib/mailslurp_client/models/search_available_phone_numbers_options.rb +377 -0
- data/lib/mailslurp_client/models/sender_projection.rb +13 -13
- data/lib/mailslurp_client/models/sent_email_projection.rb +63 -63
- data/lib/mailslurp_client/models/sent_sms_projection.rb +18 -18
- data/lib/mailslurp_client/models/sms_projection.rb +18 -18
- data/lib/mailslurp_client/models/smtp_auth_diagnostic_result.rb +235 -0
- data/lib/mailslurp_client/models/smtp_diagnostic_step.rb +236 -0
- data/lib/mailslurp_client/models/smtp_tls_diagnostic_result.rb +245 -0
- data/lib/mailslurp_client/models/sort_object.rb +10 -10
- data/lib/mailslurp_client/models/spf_mechanism_result.rb +229 -0
- data/lib/mailslurp_client/models/template_projection.rb +41 -41
- data/lib/mailslurp_client/models/test_smtp_server_options.rb +337 -0
- data/lib/mailslurp_client/models/test_smtp_server_results.rb +297 -0
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +27 -27
- data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +27 -27
- data/lib/mailslurp_client/models/update_phone_pool_options.rb +215 -0
- data/lib/mailslurp_client/models/validation_dto.rb +1 -5
- data/lib/mailslurp_client/models/webhook_projection.rb +45 -45
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +67 -0
- metadata +69 -2
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#MailSlurp API
|
|
3
|
+
|
|
4
|
+
#MailSlurp is an API for sending and receiving emails and SMS from dynamically allocated email addresses and phone numbers. 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://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 6.5.2
|
|
7
|
+
Contact: contact@mailslurp.dev
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 4.3.1
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module MailSlurpClient
|
|
16
|
+
class EmailAuditControllerApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Compare two email audits
|
|
23
|
+
# @param audit_id [String]
|
|
24
|
+
# @param other_audit_id [String]
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @return [EmailAuditComparisonDto]
|
|
27
|
+
def compare_email_audits(audit_id, other_audit_id, opts = {})
|
|
28
|
+
data, _status_code, _headers = compare_email_audits_with_http_info(audit_id, other_audit_id, opts)
|
|
29
|
+
data
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Compare two email audits
|
|
33
|
+
# @param audit_id [String]
|
|
34
|
+
# @param other_audit_id [String]
|
|
35
|
+
# @param [Hash] opts the optional parameters
|
|
36
|
+
# @return [Array<(EmailAuditComparisonDto, Integer, Hash)>] EmailAuditComparisonDto data, response status code and response headers
|
|
37
|
+
def compare_email_audits_with_http_info(audit_id, other_audit_id, opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: EmailAuditControllerApi.compare_email_audits ...'
|
|
40
|
+
end
|
|
41
|
+
# verify the required parameter 'audit_id' is set
|
|
42
|
+
if @api_client.config.client_side_validation && audit_id.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'audit_id' when calling EmailAuditControllerApi.compare_email_audits"
|
|
44
|
+
end
|
|
45
|
+
# verify the required parameter 'other_audit_id' is set
|
|
46
|
+
if @api_client.config.client_side_validation && other_audit_id.nil?
|
|
47
|
+
fail ArgumentError, "Missing the required parameter 'other_audit_id' when calling EmailAuditControllerApi.compare_email_audits"
|
|
48
|
+
end
|
|
49
|
+
# resource path
|
|
50
|
+
local_var_path = '/email-audits/{auditId}/compare/{otherAuditId}'.sub('{' + 'auditId' + '}', CGI.escape(audit_id.to_s)).sub('{' + 'otherAuditId' + '}', CGI.escape(other_audit_id.to_s))
|
|
51
|
+
|
|
52
|
+
# query parameters
|
|
53
|
+
query_params = opts[:query_params] || {}
|
|
54
|
+
|
|
55
|
+
# header parameters
|
|
56
|
+
header_params = opts[:header_params] || {}
|
|
57
|
+
# HTTP header 'Accept' (if needed)
|
|
58
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
59
|
+
|
|
60
|
+
# form parameters
|
|
61
|
+
form_params = opts[:form_params] || {}
|
|
62
|
+
|
|
63
|
+
# http body (model)
|
|
64
|
+
post_body = opts[:body]
|
|
65
|
+
|
|
66
|
+
# return_type
|
|
67
|
+
return_type = opts[:return_type] || 'EmailAuditComparisonDto'
|
|
68
|
+
|
|
69
|
+
# auth_names
|
|
70
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
|
71
|
+
|
|
72
|
+
new_options = opts.merge(
|
|
73
|
+
:header_params => header_params,
|
|
74
|
+
:query_params => query_params,
|
|
75
|
+
:form_params => form_params,
|
|
76
|
+
:body => post_body,
|
|
77
|
+
:auth_names => auth_names,
|
|
78
|
+
:return_type => return_type
|
|
79
|
+
)
|
|
80
|
+
|
|
81
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
82
|
+
if @api_client.config.debugging
|
|
83
|
+
@api_client.config.logger.debug "API called: EmailAuditControllerApi#compare_email_audits\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
84
|
+
end
|
|
85
|
+
return data, status_code, headers
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Create email audit
|
|
89
|
+
# @param create_email_audit_options [CreateEmailAuditOptions]
|
|
90
|
+
# @param [Hash] opts the optional parameters
|
|
91
|
+
# @return [EmailAuditDto]
|
|
92
|
+
def create_email_audit(create_email_audit_options, opts = {})
|
|
93
|
+
data, _status_code, _headers = create_email_audit_with_http_info(create_email_audit_options, opts)
|
|
94
|
+
data
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# Create email audit
|
|
98
|
+
# @param create_email_audit_options [CreateEmailAuditOptions]
|
|
99
|
+
# @param [Hash] opts the optional parameters
|
|
100
|
+
# @return [Array<(EmailAuditDto, Integer, Hash)>] EmailAuditDto data, response status code and response headers
|
|
101
|
+
def create_email_audit_with_http_info(create_email_audit_options, opts = {})
|
|
102
|
+
if @api_client.config.debugging
|
|
103
|
+
@api_client.config.logger.debug 'Calling API: EmailAuditControllerApi.create_email_audit ...'
|
|
104
|
+
end
|
|
105
|
+
# verify the required parameter 'create_email_audit_options' is set
|
|
106
|
+
if @api_client.config.client_side_validation && create_email_audit_options.nil?
|
|
107
|
+
fail ArgumentError, "Missing the required parameter 'create_email_audit_options' when calling EmailAuditControllerApi.create_email_audit"
|
|
108
|
+
end
|
|
109
|
+
# resource path
|
|
110
|
+
local_var_path = '/email-audits'
|
|
111
|
+
|
|
112
|
+
# query parameters
|
|
113
|
+
query_params = opts[:query_params] || {}
|
|
114
|
+
|
|
115
|
+
# header parameters
|
|
116
|
+
header_params = opts[:header_params] || {}
|
|
117
|
+
# HTTP header 'Accept' (if needed)
|
|
118
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
119
|
+
# HTTP header 'Content-Type'
|
|
120
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
121
|
+
|
|
122
|
+
# form parameters
|
|
123
|
+
form_params = opts[:form_params] || {}
|
|
124
|
+
|
|
125
|
+
# http body (model)
|
|
126
|
+
post_body = opts[:body] || @api_client.object_to_http_body(create_email_audit_options)
|
|
127
|
+
|
|
128
|
+
# return_type
|
|
129
|
+
return_type = opts[:return_type] || 'EmailAuditDto'
|
|
130
|
+
|
|
131
|
+
# auth_names
|
|
132
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
|
133
|
+
|
|
134
|
+
new_options = opts.merge(
|
|
135
|
+
:header_params => header_params,
|
|
136
|
+
:query_params => query_params,
|
|
137
|
+
:form_params => form_params,
|
|
138
|
+
:body => post_body,
|
|
139
|
+
:auth_names => auth_names,
|
|
140
|
+
:return_type => return_type
|
|
141
|
+
)
|
|
142
|
+
|
|
143
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
144
|
+
if @api_client.config.debugging
|
|
145
|
+
@api_client.config.logger.debug "API called: EmailAuditControllerApi#create_email_audit\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
146
|
+
end
|
|
147
|
+
return data, status_code, headers
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
# Delete email audit
|
|
151
|
+
# @param audit_id [String]
|
|
152
|
+
# @param [Hash] opts the optional parameters
|
|
153
|
+
# @return [nil]
|
|
154
|
+
def delete_email_audit(audit_id, opts = {})
|
|
155
|
+
delete_email_audit_with_http_info(audit_id, opts)
|
|
156
|
+
nil
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
# Delete email audit
|
|
160
|
+
# @param audit_id [String]
|
|
161
|
+
# @param [Hash] opts the optional parameters
|
|
162
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
163
|
+
def delete_email_audit_with_http_info(audit_id, opts = {})
|
|
164
|
+
if @api_client.config.debugging
|
|
165
|
+
@api_client.config.logger.debug 'Calling API: EmailAuditControllerApi.delete_email_audit ...'
|
|
166
|
+
end
|
|
167
|
+
# verify the required parameter 'audit_id' is set
|
|
168
|
+
if @api_client.config.client_side_validation && audit_id.nil?
|
|
169
|
+
fail ArgumentError, "Missing the required parameter 'audit_id' when calling EmailAuditControllerApi.delete_email_audit"
|
|
170
|
+
end
|
|
171
|
+
# resource path
|
|
172
|
+
local_var_path = '/email-audits/{auditId}'.sub('{' + 'auditId' + '}', CGI.escape(audit_id.to_s))
|
|
173
|
+
|
|
174
|
+
# query parameters
|
|
175
|
+
query_params = opts[:query_params] || {}
|
|
176
|
+
|
|
177
|
+
# header parameters
|
|
178
|
+
header_params = opts[:header_params] || {}
|
|
179
|
+
|
|
180
|
+
# form parameters
|
|
181
|
+
form_params = opts[:form_params] || {}
|
|
182
|
+
|
|
183
|
+
# http body (model)
|
|
184
|
+
post_body = opts[:body]
|
|
185
|
+
|
|
186
|
+
# return_type
|
|
187
|
+
return_type = opts[:return_type]
|
|
188
|
+
|
|
189
|
+
# auth_names
|
|
190
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
|
191
|
+
|
|
192
|
+
new_options = opts.merge(
|
|
193
|
+
:header_params => header_params,
|
|
194
|
+
:query_params => query_params,
|
|
195
|
+
:form_params => form_params,
|
|
196
|
+
:body => post_body,
|
|
197
|
+
:auth_names => auth_names,
|
|
198
|
+
:return_type => return_type
|
|
199
|
+
)
|
|
200
|
+
|
|
201
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
202
|
+
if @api_client.config.debugging
|
|
203
|
+
@api_client.config.logger.debug "API called: EmailAuditControllerApi#delete_email_audit\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
204
|
+
end
|
|
205
|
+
return data, status_code, headers
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
# Get email audit
|
|
209
|
+
# @param audit_id [String]
|
|
210
|
+
# @param [Hash] opts the optional parameters
|
|
211
|
+
# @return [EmailAuditDto]
|
|
212
|
+
def get_email_audit(audit_id, opts = {})
|
|
213
|
+
data, _status_code, _headers = get_email_audit_with_http_info(audit_id, opts)
|
|
214
|
+
data
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
# Get email audit
|
|
218
|
+
# @param audit_id [String]
|
|
219
|
+
# @param [Hash] opts the optional parameters
|
|
220
|
+
# @return [Array<(EmailAuditDto, Integer, Hash)>] EmailAuditDto data, response status code and response headers
|
|
221
|
+
def get_email_audit_with_http_info(audit_id, opts = {})
|
|
222
|
+
if @api_client.config.debugging
|
|
223
|
+
@api_client.config.logger.debug 'Calling API: EmailAuditControllerApi.get_email_audit ...'
|
|
224
|
+
end
|
|
225
|
+
# verify the required parameter 'audit_id' is set
|
|
226
|
+
if @api_client.config.client_side_validation && audit_id.nil?
|
|
227
|
+
fail ArgumentError, "Missing the required parameter 'audit_id' when calling EmailAuditControllerApi.get_email_audit"
|
|
228
|
+
end
|
|
229
|
+
# resource path
|
|
230
|
+
local_var_path = '/email-audits/{auditId}'.sub('{' + 'auditId' + '}', CGI.escape(audit_id.to_s))
|
|
231
|
+
|
|
232
|
+
# query parameters
|
|
233
|
+
query_params = opts[:query_params] || {}
|
|
234
|
+
|
|
235
|
+
# header parameters
|
|
236
|
+
header_params = opts[:header_params] || {}
|
|
237
|
+
# HTTP header 'Accept' (if needed)
|
|
238
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
239
|
+
|
|
240
|
+
# form parameters
|
|
241
|
+
form_params = opts[:form_params] || {}
|
|
242
|
+
|
|
243
|
+
# http body (model)
|
|
244
|
+
post_body = opts[:body]
|
|
245
|
+
|
|
246
|
+
# return_type
|
|
247
|
+
return_type = opts[:return_type] || 'EmailAuditDto'
|
|
248
|
+
|
|
249
|
+
# auth_names
|
|
250
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
|
251
|
+
|
|
252
|
+
new_options = opts.merge(
|
|
253
|
+
:header_params => header_params,
|
|
254
|
+
:query_params => query_params,
|
|
255
|
+
:form_params => form_params,
|
|
256
|
+
:body => post_body,
|
|
257
|
+
:auth_names => auth_names,
|
|
258
|
+
:return_type => return_type
|
|
259
|
+
)
|
|
260
|
+
|
|
261
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
262
|
+
if @api_client.config.debugging
|
|
263
|
+
@api_client.config.logger.debug "API called: EmailAuditControllerApi#get_email_audit\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
264
|
+
end
|
|
265
|
+
return data, status_code, headers
|
|
266
|
+
end
|
|
267
|
+
|
|
268
|
+
# List email audits
|
|
269
|
+
# @param [Hash] opts the optional parameters
|
|
270
|
+
# @option opts [String] :email_id
|
|
271
|
+
# @option opts [DateTime] :since
|
|
272
|
+
# @option opts [DateTime] :before
|
|
273
|
+
# @option opts [Integer] :limit
|
|
274
|
+
# @return [Array<EmailAuditDto>]
|
|
275
|
+
def get_email_audits(opts = {})
|
|
276
|
+
data, _status_code, _headers = get_email_audits_with_http_info(opts)
|
|
277
|
+
data
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
# List email audits
|
|
281
|
+
# @param [Hash] opts the optional parameters
|
|
282
|
+
# @option opts [String] :email_id
|
|
283
|
+
# @option opts [DateTime] :since
|
|
284
|
+
# @option opts [DateTime] :before
|
|
285
|
+
# @option opts [Integer] :limit
|
|
286
|
+
# @return [Array<(Array<EmailAuditDto>, Integer, Hash)>] Array<EmailAuditDto> data, response status code and response headers
|
|
287
|
+
def get_email_audits_with_http_info(opts = {})
|
|
288
|
+
if @api_client.config.debugging
|
|
289
|
+
@api_client.config.logger.debug 'Calling API: EmailAuditControllerApi.get_email_audits ...'
|
|
290
|
+
end
|
|
291
|
+
# resource path
|
|
292
|
+
local_var_path = '/email-audits'
|
|
293
|
+
|
|
294
|
+
# query parameters
|
|
295
|
+
query_params = opts[:query_params] || {}
|
|
296
|
+
query_params[:'emailId'] = opts[:'email_id'] if !opts[:'email_id'].nil?
|
|
297
|
+
query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
|
|
298
|
+
query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
|
|
299
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
300
|
+
|
|
301
|
+
# header parameters
|
|
302
|
+
header_params = opts[:header_params] || {}
|
|
303
|
+
# HTTP header 'Accept' (if needed)
|
|
304
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
305
|
+
|
|
306
|
+
# form parameters
|
|
307
|
+
form_params = opts[:form_params] || {}
|
|
308
|
+
|
|
309
|
+
# http body (model)
|
|
310
|
+
post_body = opts[:body]
|
|
311
|
+
|
|
312
|
+
# return_type
|
|
313
|
+
return_type = opts[:return_type] || 'Array<EmailAuditDto>'
|
|
314
|
+
|
|
315
|
+
# auth_names
|
|
316
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
|
317
|
+
|
|
318
|
+
new_options = opts.merge(
|
|
319
|
+
:header_params => header_params,
|
|
320
|
+
:query_params => query_params,
|
|
321
|
+
:form_params => form_params,
|
|
322
|
+
:body => post_body,
|
|
323
|
+
:auth_names => auth_names,
|
|
324
|
+
:return_type => return_type
|
|
325
|
+
)
|
|
326
|
+
|
|
327
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
328
|
+
if @api_client.config.debugging
|
|
329
|
+
@api_client.config.logger.debug "API called: EmailAuditControllerApi#get_email_audits\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
330
|
+
end
|
|
331
|
+
return data, status_code, headers
|
|
332
|
+
end
|
|
333
|
+
end
|
|
334
|
+
end
|
|
@@ -160,6 +160,68 @@ module MailSlurpClient
|
|
|
160
160
|
return data, status_code, headers
|
|
161
161
|
end
|
|
162
162
|
|
|
163
|
+
# Run aggregate email audit for a stored email
|
|
164
|
+
# Runs the same message-level audit bundle used by the email audit dashboard in one request. Combines content checks, HTML validation, compatibility analysis, and reputation verdict rollup when available.
|
|
165
|
+
# @param email_id [String]
|
|
166
|
+
# @param [Hash] opts the optional parameters
|
|
167
|
+
# @return [EmailAuditAnalysisResult]
|
|
168
|
+
def check_email_audit1(email_id, opts = {})
|
|
169
|
+
data, _status_code, _headers = check_email_audit1_with_http_info(email_id, opts)
|
|
170
|
+
data
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
# Run aggregate email audit for a stored email
|
|
174
|
+
# Runs the same message-level audit bundle used by the email audit dashboard in one request. Combines content checks, HTML validation, compatibility analysis, and reputation verdict rollup when available.
|
|
175
|
+
# @param email_id [String]
|
|
176
|
+
# @param [Hash] opts the optional parameters
|
|
177
|
+
# @return [Array<(EmailAuditAnalysisResult, Integer, Hash)>] EmailAuditAnalysisResult data, response status code and response headers
|
|
178
|
+
def check_email_audit1_with_http_info(email_id, opts = {})
|
|
179
|
+
if @api_client.config.debugging
|
|
180
|
+
@api_client.config.logger.debug 'Calling API: EmailControllerApi.check_email_audit1 ...'
|
|
181
|
+
end
|
|
182
|
+
# verify the required parameter 'email_id' is set
|
|
183
|
+
if @api_client.config.client_side_validation && email_id.nil?
|
|
184
|
+
fail ArgumentError, "Missing the required parameter 'email_id' when calling EmailControllerApi.check_email_audit1"
|
|
185
|
+
end
|
|
186
|
+
# resource path
|
|
187
|
+
local_var_path = '/emails/{emailId}/check-email-audit'.sub('{' + 'emailId' + '}', CGI.escape(email_id.to_s))
|
|
188
|
+
|
|
189
|
+
# query parameters
|
|
190
|
+
query_params = opts[:query_params] || {}
|
|
191
|
+
|
|
192
|
+
# header parameters
|
|
193
|
+
header_params = opts[:header_params] || {}
|
|
194
|
+
# HTTP header 'Accept' (if needed)
|
|
195
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
196
|
+
|
|
197
|
+
# form parameters
|
|
198
|
+
form_params = opts[:form_params] || {}
|
|
199
|
+
|
|
200
|
+
# http body (model)
|
|
201
|
+
post_body = opts[:body]
|
|
202
|
+
|
|
203
|
+
# return_type
|
|
204
|
+
return_type = opts[:return_type] || 'EmailAuditAnalysisResult'
|
|
205
|
+
|
|
206
|
+
# auth_names
|
|
207
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
|
208
|
+
|
|
209
|
+
new_options = opts.merge(
|
|
210
|
+
:header_params => header_params,
|
|
211
|
+
:query_params => query_params,
|
|
212
|
+
:form_params => form_params,
|
|
213
|
+
:body => post_body,
|
|
214
|
+
:auth_names => auth_names,
|
|
215
|
+
:return_type => return_type
|
|
216
|
+
)
|
|
217
|
+
|
|
218
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
219
|
+
if @api_client.config.debugging
|
|
220
|
+
@api_client.config.logger.debug "API called: EmailControllerApi#check_email_audit1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
221
|
+
end
|
|
222
|
+
return data, status_code, headers
|
|
223
|
+
end
|
|
224
|
+
|
|
163
225
|
# Check email body for broken links, images, and spelling issues
|
|
164
226
|
# Runs content quality checks against hydrated email body content. This endpoint performs outbound HTTP checks for linked resources, so avoid use with sensitive or stateful URLs.
|
|
165
227
|
# @param email_id [String]
|
|
@@ -348,6 +410,68 @@ module MailSlurpClient
|
|
|
348
410
|
return data, status_code, headers
|
|
349
411
|
end
|
|
350
412
|
|
|
413
|
+
# Persist aggregate email audit for a stored email
|
|
414
|
+
# Runs the aggregate audit bundle for the target email and stores the resulting audit record for later review and history tracking.
|
|
415
|
+
# @param email_id [String]
|
|
416
|
+
# @param [Hash] opts the optional parameters
|
|
417
|
+
# @return [EmailAuditDto]
|
|
418
|
+
def create_email_audit_for_email(email_id, opts = {})
|
|
419
|
+
data, _status_code, _headers = create_email_audit_for_email_with_http_info(email_id, opts)
|
|
420
|
+
data
|
|
421
|
+
end
|
|
422
|
+
|
|
423
|
+
# Persist aggregate email audit for a stored email
|
|
424
|
+
# Runs the aggregate audit bundle for the target email and stores the resulting audit record for later review and history tracking.
|
|
425
|
+
# @param email_id [String]
|
|
426
|
+
# @param [Hash] opts the optional parameters
|
|
427
|
+
# @return [Array<(EmailAuditDto, Integer, Hash)>] EmailAuditDto data, response status code and response headers
|
|
428
|
+
def create_email_audit_for_email_with_http_info(email_id, opts = {})
|
|
429
|
+
if @api_client.config.debugging
|
|
430
|
+
@api_client.config.logger.debug 'Calling API: EmailControllerApi.create_email_audit_for_email ...'
|
|
431
|
+
end
|
|
432
|
+
# verify the required parameter 'email_id' is set
|
|
433
|
+
if @api_client.config.client_side_validation && email_id.nil?
|
|
434
|
+
fail ArgumentError, "Missing the required parameter 'email_id' when calling EmailControllerApi.create_email_audit_for_email"
|
|
435
|
+
end
|
|
436
|
+
# resource path
|
|
437
|
+
local_var_path = '/emails/{emailId}/audit'.sub('{' + 'emailId' + '}', CGI.escape(email_id.to_s))
|
|
438
|
+
|
|
439
|
+
# query parameters
|
|
440
|
+
query_params = opts[:query_params] || {}
|
|
441
|
+
|
|
442
|
+
# header parameters
|
|
443
|
+
header_params = opts[:header_params] || {}
|
|
444
|
+
# HTTP header 'Accept' (if needed)
|
|
445
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
446
|
+
|
|
447
|
+
# form parameters
|
|
448
|
+
form_params = opts[:form_params] || {}
|
|
449
|
+
|
|
450
|
+
# http body (model)
|
|
451
|
+
post_body = opts[:body]
|
|
452
|
+
|
|
453
|
+
# return_type
|
|
454
|
+
return_type = opts[:return_type] || 'EmailAuditDto'
|
|
455
|
+
|
|
456
|
+
# auth_names
|
|
457
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
|
458
|
+
|
|
459
|
+
new_options = opts.merge(
|
|
460
|
+
:header_params => header_params,
|
|
461
|
+
:query_params => query_params,
|
|
462
|
+
:form_params => form_params,
|
|
463
|
+
:body => post_body,
|
|
464
|
+
:auth_names => auth_names,
|
|
465
|
+
:return_type => return_type
|
|
466
|
+
)
|
|
467
|
+
|
|
468
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
469
|
+
if @api_client.config.debugging
|
|
470
|
+
@api_client.config.logger.debug "API called: EmailControllerApi#create_email_audit_for_email\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
471
|
+
end
|
|
472
|
+
return data, status_code, headers
|
|
473
|
+
end
|
|
474
|
+
|
|
351
475
|
# Delete all emails in all inboxes.
|
|
352
476
|
# Deletes all emails for the authenticated account context. This operation is destructive and cannot be undone.
|
|
353
477
|
# @param [Hash] opts the optional parameters
|
|
@@ -3044,7 +3044,7 @@ module MailSlurpClient
|
|
|
3044
3044
|
end
|
|
3045
3045
|
|
|
3046
3046
|
# Get or create a plus address by full address
|
|
3047
|
-
# Looks up an inbox plus address using a full email address like `inbox+alias@domain.com`. Returns an existing plus address if found, otherwise creates one.
|
|
3047
|
+
# Looks up an inbox plus address using a full email address like `inbox+alias@domain.com`. Returns an existing plus address if found, otherwise creates one. Rejects the request if the full address is already assigned to a real inbox.
|
|
3048
3048
|
# @param inbox_id [String] ID of the inbox you want to target
|
|
3049
3049
|
# @param full_address [String] Full recipient address including +suffix. Example: `inbox+alias@domain.com`
|
|
3050
3050
|
# @param [Hash] opts the optional parameters
|
|
@@ -3055,7 +3055,7 @@ module MailSlurpClient
|
|
|
3055
3055
|
end
|
|
3056
3056
|
|
|
3057
3057
|
# Get or create a plus address by full address
|
|
3058
|
-
# Looks up an inbox plus address using a full email address like `inbox+alias@domain.com`. Returns an existing plus address if found, otherwise creates one.
|
|
3058
|
+
# Looks up an inbox plus address using a full email address like `inbox+alias@domain.com`. Returns an existing plus address if found, otherwise creates one. Rejects the request if the full address is already assigned to a real inbox.
|
|
3059
3059
|
# @param inbox_id [String] ID of the inbox you want to target
|
|
3060
3060
|
# @param full_address [String] Full recipient address including +suffix. Example: `inbox+alias@domain.com`
|
|
3061
3061
|
# @param [Hash] opts the optional parameters
|
|
@@ -3117,7 +3117,7 @@ module MailSlurpClient
|
|
|
3117
3117
|
end
|
|
3118
3118
|
|
|
3119
3119
|
# Get or create a plus address by full address without inbox ID
|
|
3120
|
-
# Looks up an inbox plus address using a full email address like `inbox+alias@domain.com`. Resolves the base inbox from the full address for the authenticated user, then returns an existing plus address if found, otherwise creates one.
|
|
3120
|
+
# Looks up an inbox plus address using a full email address like `inbox+alias@domain.com`. Resolves the base inbox from the full address for the authenticated user, then returns an existing plus address if found, otherwise creates one. Rejects the request if the full address is already assigned to a real inbox.
|
|
3121
3121
|
# @param full_address [String] Full recipient address including +suffix. Example: `inbox+alias@domain.com`
|
|
3122
3122
|
# @param [Hash] opts the optional parameters
|
|
3123
3123
|
# @return [PlusAddressDto]
|
|
@@ -3127,7 +3127,7 @@ module MailSlurpClient
|
|
|
3127
3127
|
end
|
|
3128
3128
|
|
|
3129
3129
|
# Get or create a plus address by full address without inbox ID
|
|
3130
|
-
# Looks up an inbox plus address using a full email address like `inbox+alias@domain.com`. Resolves the base inbox from the full address for the authenticated user, then returns an existing plus address if found, otherwise creates one.
|
|
3130
|
+
# Looks up an inbox plus address using a full email address like `inbox+alias@domain.com`. Resolves the base inbox from the full address for the authenticated user, then returns an existing plus address if found, otherwise creates one. Rejects the request if the full address is already assigned to a real inbox.
|
|
3131
3131
|
# @param full_address [String] Full recipient address including +suffix. Example: `inbox+alias@domain.com`
|
|
3132
3132
|
# @param [Hash] opts the optional parameters
|
|
3133
3133
|
# @return [Array<(PlusAddressDto, Integer, Hash)>] PlusAddressDto data, response status code and response headers
|