mailslurp_client 17.1.0 → 17.2.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/api_audit_log_controller_api.rb +237 -0
- data/lib/mailslurp_client/api/attachment_controller_api.rb +66 -0
- data/lib/mailslurp_client/api/bounce_controller_api.rb +126 -0
- data/lib/mailslurp_client/api/campaign_probe_controller_api.rb +664 -0
- data/lib/mailslurp_client/api/deliverability_test_controller_api.rb +1496 -0
- data/lib/mailslurp_client/api/device_previews_controller_api.rb +1012 -0
- data/lib/mailslurp_client/api/domain_controller_api.rb +63 -0
- data/lib/mailslurp_client/api/domain_monitor_controller_api.rb +848 -0
- data/lib/mailslurp_client/api/email_controller_api.rb +270 -138
- data/lib/mailslurp_client/api/inbox_controller_api.rb +144 -4
- data/lib/mailslurp_client/api/missed_sms_controller_api.rb +221 -0
- data/lib/mailslurp_client/api/phone_controller_api.rb +2 -2
- data/lib/mailslurp_client/api/sms_controller_api.rb +66 -0
- data/lib/mailslurp_client/models/abstract_webhook_payload.rb +15 -15
- data/lib/mailslurp_client/models/ai_transform_mapping_projection.rb +15 -15
- data/lib/mailslurp_client/models/alias_projection.rb +15 -15
- data/lib/mailslurp_client/models/alias_thread_projection.rb +16 -16
- data/lib/mailslurp_client/models/attachment_projection.rb +25 -25
- data/lib/mailslurp_client/models/audit_log_event_dto.rb +343 -0
- data/lib/mailslurp_client/models/audit_log_page_dto.rb +222 -0
- data/lib/mailslurp_client/models/audit_log_search_options.rb +323 -0
- data/lib/mailslurp_client/models/bounce_projection.rb +15 -15
- data/lib/mailslurp_client/models/campaign_probe_dto.rb +411 -0
- data/lib/mailslurp_client/models/campaign_probe_insights_dto.rb +408 -0
- data/lib/mailslurp_client/models/campaign_probe_run_dto.rb +644 -0
- data/lib/mailslurp_client/models/campaign_probe_run_due_result.rb +315 -0
- data/lib/mailslurp_client/models/campaign_probe_run_now_result.rb +225 -0
- data/lib/mailslurp_client/models/campaign_probe_series_dto.rb +303 -0
- data/lib/mailslurp_client/models/campaign_probe_series_point_dto.rb +295 -0
- data/lib/mailslurp_client/models/cancel_device_preview_run_options.rb +206 -0
- data/lib/mailslurp_client/models/cancel_device_preview_run_result.rb +248 -0
- data/lib/mailslurp_client/models/code_candidate.rb +303 -0
- data/lib/mailslurp_client/models/connector_event_projection.rb +15 -15
- data/lib/mailslurp_client/models/connector_projection.rb +10 -10
- data/lib/mailslurp_client/models/contact_projection.rb +10 -10
- data/lib/mailslurp_client/models/create_campaign_probe_options.rb +290 -0
- data/lib/mailslurp_client/models/create_campaign_probe_run_options.rb +264 -0
- data/lib/mailslurp_client/models/create_deliverability_simulation_job_options.rb +345 -0
- data/lib/mailslurp_client/models/create_deliverability_test_options.rb +372 -0
- data/lib/mailslurp_client/models/create_device_preview_feedback_options.rb +405 -0
- data/lib/mailslurp_client/models/create_device_preview_options.rb +241 -0
- data/lib/mailslurp_client/models/create_device_preview_run_result.rb +225 -0
- data/lib/mailslurp_client/models/create_domain_monitor_alert_sink_options.rb +308 -0
- data/lib/mailslurp_client/models/create_domain_monitor_options.rb +299 -0
- data/lib/mailslurp_client/models/delete_device_preview_run_result.rb +253 -0
- data/lib/mailslurp_client/models/delete_result.rb +245 -0
- data/lib/mailslurp_client/models/deliverability_analytics_run_dto.rb +426 -0
- data/lib/mailslurp_client/models/deliverability_analytics_series_dto.rb +342 -0
- data/lib/mailslurp_client/models/deliverability_analytics_series_point_dto.rb +240 -0
- data/lib/mailslurp_client/models/deliverability_analytics_summary_dto.rb +380 -0
- data/lib/mailslurp_client/models/deliverability_entity_result_dto.rb +360 -0
- data/lib/mailslurp_client/models/deliverability_entity_result_page_dto.rb +318 -0
- data/lib/mailslurp_client/models/deliverability_expectation.rb +276 -0
- data/lib/mailslurp_client/models/deliverability_expectation_result_dto.rb +294 -0
- data/lib/mailslurp_client/models/deliverability_failure_entity_hotspot_dto.rb +360 -0
- data/lib/mailslurp_client/models/deliverability_failure_hotspots_dto.rb +302 -0
- data/lib/mailslurp_client/models/deliverability_failure_phone_dimension_hotspot_dto.rb +306 -0
- data/lib/mailslurp_client/models/deliverability_poll_status_result_dto.rb +250 -0
- data/lib/mailslurp_client/models/deliverability_selector_options.rb +307 -0
- data/lib/mailslurp_client/models/deliverability_simulation_email_options.rb +231 -0
- data/lib/mailslurp_client/models/deliverability_simulation_job_config_dto.rb +300 -0
- data/lib/mailslurp_client/models/deliverability_simulation_job_dto.rb +494 -0
- data/lib/mailslurp_client/models/deliverability_simulation_job_error_summary_dto.rb +224 -0
- data/lib/mailslurp_client/models/deliverability_simulation_job_event_dto.rb +344 -0
- data/lib/mailslurp_client/models/deliverability_simulation_job_event_page_dto.rb +284 -0
- data/lib/mailslurp_client/models/deliverability_simulation_job_top_error_dto.rb +226 -0
- data/lib/mailslurp_client/models/deliverability_simulation_sms_options.rb +209 -0
- data/lib/mailslurp_client/models/deliverability_test_dto.rb +558 -0
- data/lib/mailslurp_client/models/deliverability_test_page_dto.rb +270 -0
- data/lib/mailslurp_client/models/device_preview_feedback_dto.rb +456 -0
- data/lib/mailslurp_client/models/device_preview_feedback_list_dto.rb +255 -0
- data/lib/mailslurp_client/models/device_preview_provider_progress_dto.rb +387 -0
- data/lib/mailslurp_client/models/device_preview_run_dto.rb +382 -0
- data/lib/mailslurp_client/models/device_preview_run_results_dto.rb +243 -0
- data/lib/mailslurp_client/models/device_preview_screenshot_dto.rb +389 -0
- data/lib/mailslurp_client/models/device_preview_target_dto.rb +368 -0
- data/lib/mailslurp_client/models/domain_monitor_alert_sink_dto.rb +369 -0
- data/lib/mailslurp_client/models/domain_monitor_dto.rb +383 -0
- data/lib/mailslurp_client/models/domain_monitor_insights_dto.rb +422 -0
- data/lib/mailslurp_client/models/domain_monitor_run_dto.rb +492 -0
- data/lib/mailslurp_client/models/domain_monitor_run_due_result.rb +287 -0
- data/lib/mailslurp_client/models/domain_monitor_run_now_result.rb +225 -0
- data/lib/mailslurp_client/models/domain_monitor_series_dto.rb +303 -0
- data/lib/mailslurp_client/models/domain_monitor_series_point_dto.rb +309 -0
- data/lib/mailslurp_client/models/domain_region_group.rb +261 -0
- data/lib/mailslurp_client/models/domain_region_groups_dto.rb +214 -0
- data/lib/mailslurp_client/models/domain_region_information.rb +338 -0
- data/lib/mailslurp_client/models/email_projection.rb +57 -57
- data/lib/mailslurp_client/models/email_signature.rb +254 -0
- data/lib/mailslurp_client/models/email_signature_parse_result.rb +223 -0
- data/lib/mailslurp_client/models/email_thread_projection.rb +61 -61
- data/lib/mailslurp_client/models/entity_automation_item_projection.rb +10 -10
- data/lib/mailslurp_client/models/entity_event_item_projection.rb +10 -10
- data/lib/mailslurp_client/models/extract_attachment_text_options.rb +268 -0
- data/lib/mailslurp_client/models/extract_attachment_text_result.rb +297 -0
- data/lib/mailslurp_client/models/extract_codes_options.rb +304 -0
- data/lib/mailslurp_client/models/extract_codes_result.rb +303 -0
- data/lib/mailslurp_client/models/guest_portal_user_projection.rb +15 -15
- data/lib/mailslurp_client/models/inbox_dto.rb +2 -2
- data/lib/mailslurp_client/models/inbox_preview.rb +2 -2
- data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +10 -10
- data/lib/mailslurp_client/models/list_unsubscribe_recipient_projection.rb +10 -10
- data/lib/mailslurp_client/models/missed_sms_dto.rb +320 -0
- data/lib/mailslurp_client/models/missed_sms_projection.rb +282 -0
- data/lib/mailslurp_client/models/opt_in_identity_projection.rb +18 -18
- data/lib/mailslurp_client/models/organization_inbox_projection.rb +2 -2
- data/lib/mailslurp_client/models/page_device_preview_run_projection.rb +309 -0
- data/lib/mailslurp_client/models/page_missed_sms_projection.rb +309 -0
- data/lib/mailslurp_client/models/pageable_object.rb +10 -10
- data/lib/mailslurp_client/models/phone_number_projection.rb +15 -15
- data/lib/mailslurp_client/models/phone_number_release_projection.rb +10 -10
- data/lib/mailslurp_client/models/plus_address_projection.rb +15 -15
- data/lib/mailslurp_client/models/search_inboxes_options.rb +1 -1
- data/lib/mailslurp_client/models/sent_email_projection.rb +41 -41
- data/lib/mailslurp_client/models/tenant_reputation_finding_dto.rb +322 -0
- data/lib/mailslurp_client/models/tenant_reputation_findings_dto.rb +241 -0
- data/lib/mailslurp_client/models/tenant_reputation_status_row_dto.rb +372 -0
- data/lib/mailslurp_client/models/tenant_reputation_status_summary_dto.rb +241 -0
- data/lib/mailslurp_client/models/update_campaign_probe_options.rb +290 -0
- data/lib/mailslurp_client/models/update_deliverability_test_options.rb +327 -0
- data/lib/mailslurp_client/models/update_device_preview_feedback_options.rb +314 -0
- data/lib/mailslurp_client/models/update_domain_monitor_options.rb +266 -0
- data/lib/mailslurp_client/models/webhook_projection.rb +24 -24
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +89 -0
- metadata +91 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 420aa7c6b2b976ac6856aae33e3c1e40d30b32f42612a5198e89ed2467c0beec
|
|
4
|
+
data.tar.gz: fe12cd04f6055bfbdecc98c83142d8bf6c13506200fce04b10ea14fbcb692b61
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 277c2ceb738ef6a049061d64ceedff9dcb815a69b20775b4acc1312a8e6632d50f6ed41a528c4e9e19bf7df8ab703cba70e35432b41d0b810130f4dc08d23da5
|
|
7
|
+
data.tar.gz: 78791f3a6a24b92e3d66b7bbd04d14f9a854663f14f29f6eebd73be33e0b2602cc0d5cada55aa0fb51e7b7e3046389cf83053b196f410f5d69b7165081c3eb11
|
|
@@ -0,0 +1,237 @@
|
|
|
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 ApiAuditLogControllerApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# @param event_id [String]
|
|
23
|
+
# @param [Hash] opts the optional parameters
|
|
24
|
+
# @option opts [DateTime] :since
|
|
25
|
+
# @option opts [DateTime] :before
|
|
26
|
+
# @return [AuditLogEventDto]
|
|
27
|
+
def get_audit_log_by_event_id(event_id, opts = {})
|
|
28
|
+
data, _status_code, _headers = get_audit_log_by_event_id_with_http_info(event_id, opts)
|
|
29
|
+
data
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# @param event_id [String]
|
|
33
|
+
# @param [Hash] opts the optional parameters
|
|
34
|
+
# @option opts [DateTime] :since
|
|
35
|
+
# @option opts [DateTime] :before
|
|
36
|
+
# @return [Array<(AuditLogEventDto, Integer, Hash)>] AuditLogEventDto data, response status code and response headers
|
|
37
|
+
def get_audit_log_by_event_id_with_http_info(event_id, opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: ApiAuditLogControllerApi.get_audit_log_by_event_id ...'
|
|
40
|
+
end
|
|
41
|
+
# verify the required parameter 'event_id' is set
|
|
42
|
+
if @api_client.config.client_side_validation && event_id.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'event_id' when calling ApiAuditLogControllerApi.get_audit_log_by_event_id"
|
|
44
|
+
end
|
|
45
|
+
# resource path
|
|
46
|
+
local_var_path = '/audit-logs/{eventId}'.sub('{' + 'eventId' + '}', CGI.escape(event_id.to_s))
|
|
47
|
+
|
|
48
|
+
# query parameters
|
|
49
|
+
query_params = opts[:query_params] || {}
|
|
50
|
+
query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
|
|
51
|
+
query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
|
|
52
|
+
|
|
53
|
+
# header parameters
|
|
54
|
+
header_params = opts[:header_params] || {}
|
|
55
|
+
# HTTP header 'Accept' (if needed)
|
|
56
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
57
|
+
|
|
58
|
+
# form parameters
|
|
59
|
+
form_params = opts[:form_params] || {}
|
|
60
|
+
|
|
61
|
+
# http body (model)
|
|
62
|
+
post_body = opts[:body]
|
|
63
|
+
|
|
64
|
+
# return_type
|
|
65
|
+
return_type = opts[:return_type] || 'AuditLogEventDto'
|
|
66
|
+
|
|
67
|
+
# auth_names
|
|
68
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
|
69
|
+
|
|
70
|
+
new_options = opts.merge(
|
|
71
|
+
:header_params => header_params,
|
|
72
|
+
:query_params => query_params,
|
|
73
|
+
:form_params => form_params,
|
|
74
|
+
:body => post_body,
|
|
75
|
+
:auth_names => auth_names,
|
|
76
|
+
:return_type => return_type
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
80
|
+
if @api_client.config.debugging
|
|
81
|
+
@api_client.config.logger.debug "API called: ApiAuditLogControllerApi#get_audit_log_by_event_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
82
|
+
end
|
|
83
|
+
return data, status_code, headers
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# @param [Hash] opts the optional parameters
|
|
87
|
+
# @option opts [DateTime] :since
|
|
88
|
+
# @option opts [DateTime] :before
|
|
89
|
+
# @option opts [String] :action
|
|
90
|
+
# @option opts [String] :user_id
|
|
91
|
+
# @option opts [String] :actor_user_id
|
|
92
|
+
# @option opts [String] :target_user_id
|
|
93
|
+
# @option opts [String] :resource_type
|
|
94
|
+
# @option opts [String] :resource_id
|
|
95
|
+
# @option opts [String] :outcome
|
|
96
|
+
# @option opts [String] :request_id
|
|
97
|
+
# @option opts [String] :ip_address
|
|
98
|
+
# @option opts [Integer] :page_size
|
|
99
|
+
# @option opts [String] :cursor
|
|
100
|
+
# @return [AuditLogPageDto]
|
|
101
|
+
def get_audit_logs(opts = {})
|
|
102
|
+
data, _status_code, _headers = get_audit_logs_with_http_info(opts)
|
|
103
|
+
data
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# @param [Hash] opts the optional parameters
|
|
107
|
+
# @option opts [DateTime] :since
|
|
108
|
+
# @option opts [DateTime] :before
|
|
109
|
+
# @option opts [String] :action
|
|
110
|
+
# @option opts [String] :user_id
|
|
111
|
+
# @option opts [String] :actor_user_id
|
|
112
|
+
# @option opts [String] :target_user_id
|
|
113
|
+
# @option opts [String] :resource_type
|
|
114
|
+
# @option opts [String] :resource_id
|
|
115
|
+
# @option opts [String] :outcome
|
|
116
|
+
# @option opts [String] :request_id
|
|
117
|
+
# @option opts [String] :ip_address
|
|
118
|
+
# @option opts [Integer] :page_size
|
|
119
|
+
# @option opts [String] :cursor
|
|
120
|
+
# @return [Array<(AuditLogPageDto, Integer, Hash)>] AuditLogPageDto data, response status code and response headers
|
|
121
|
+
def get_audit_logs_with_http_info(opts = {})
|
|
122
|
+
if @api_client.config.debugging
|
|
123
|
+
@api_client.config.logger.debug 'Calling API: ApiAuditLogControllerApi.get_audit_logs ...'
|
|
124
|
+
end
|
|
125
|
+
# resource path
|
|
126
|
+
local_var_path = '/audit-logs'
|
|
127
|
+
|
|
128
|
+
# query parameters
|
|
129
|
+
query_params = opts[:query_params] || {}
|
|
130
|
+
query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
|
|
131
|
+
query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
|
|
132
|
+
query_params[:'action'] = opts[:'action'] if !opts[:'action'].nil?
|
|
133
|
+
query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil?
|
|
134
|
+
query_params[:'actorUserId'] = opts[:'actor_user_id'] if !opts[:'actor_user_id'].nil?
|
|
135
|
+
query_params[:'targetUserId'] = opts[:'target_user_id'] if !opts[:'target_user_id'].nil?
|
|
136
|
+
query_params[:'resourceType'] = opts[:'resource_type'] if !opts[:'resource_type'].nil?
|
|
137
|
+
query_params[:'resourceId'] = opts[:'resource_id'] if !opts[:'resource_id'].nil?
|
|
138
|
+
query_params[:'outcome'] = opts[:'outcome'] if !opts[:'outcome'].nil?
|
|
139
|
+
query_params[:'requestId'] = opts[:'request_id'] if !opts[:'request_id'].nil?
|
|
140
|
+
query_params[:'ipAddress'] = opts[:'ip_address'] if !opts[:'ip_address'].nil?
|
|
141
|
+
query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
142
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
143
|
+
|
|
144
|
+
# header parameters
|
|
145
|
+
header_params = opts[:header_params] || {}
|
|
146
|
+
# HTTP header 'Accept' (if needed)
|
|
147
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
148
|
+
|
|
149
|
+
# form parameters
|
|
150
|
+
form_params = opts[:form_params] || {}
|
|
151
|
+
|
|
152
|
+
# http body (model)
|
|
153
|
+
post_body = opts[:body]
|
|
154
|
+
|
|
155
|
+
# return_type
|
|
156
|
+
return_type = opts[:return_type] || 'AuditLogPageDto'
|
|
157
|
+
|
|
158
|
+
# auth_names
|
|
159
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
|
160
|
+
|
|
161
|
+
new_options = opts.merge(
|
|
162
|
+
:header_params => header_params,
|
|
163
|
+
:query_params => query_params,
|
|
164
|
+
:form_params => form_params,
|
|
165
|
+
:body => post_body,
|
|
166
|
+
:auth_names => auth_names,
|
|
167
|
+
:return_type => return_type
|
|
168
|
+
)
|
|
169
|
+
|
|
170
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
171
|
+
if @api_client.config.debugging
|
|
172
|
+
@api_client.config.logger.debug "API called: ApiAuditLogControllerApi#get_audit_logs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
173
|
+
end
|
|
174
|
+
return data, status_code, headers
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
# @param audit_log_search_options [AuditLogSearchOptions]
|
|
178
|
+
# @param [Hash] opts the optional parameters
|
|
179
|
+
# @return [AuditLogPageDto]
|
|
180
|
+
def search_audit_logs(audit_log_search_options, opts = {})
|
|
181
|
+
data, _status_code, _headers = search_audit_logs_with_http_info(audit_log_search_options, opts)
|
|
182
|
+
data
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
# @param audit_log_search_options [AuditLogSearchOptions]
|
|
186
|
+
# @param [Hash] opts the optional parameters
|
|
187
|
+
# @return [Array<(AuditLogPageDto, Integer, Hash)>] AuditLogPageDto data, response status code and response headers
|
|
188
|
+
def search_audit_logs_with_http_info(audit_log_search_options, opts = {})
|
|
189
|
+
if @api_client.config.debugging
|
|
190
|
+
@api_client.config.logger.debug 'Calling API: ApiAuditLogControllerApi.search_audit_logs ...'
|
|
191
|
+
end
|
|
192
|
+
# verify the required parameter 'audit_log_search_options' is set
|
|
193
|
+
if @api_client.config.client_side_validation && audit_log_search_options.nil?
|
|
194
|
+
fail ArgumentError, "Missing the required parameter 'audit_log_search_options' when calling ApiAuditLogControllerApi.search_audit_logs"
|
|
195
|
+
end
|
|
196
|
+
# resource path
|
|
197
|
+
local_var_path = '/audit-logs/search'
|
|
198
|
+
|
|
199
|
+
# query parameters
|
|
200
|
+
query_params = opts[:query_params] || {}
|
|
201
|
+
|
|
202
|
+
# header parameters
|
|
203
|
+
header_params = opts[:header_params] || {}
|
|
204
|
+
# HTTP header 'Accept' (if needed)
|
|
205
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
206
|
+
# HTTP header 'Content-Type'
|
|
207
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
208
|
+
|
|
209
|
+
# form parameters
|
|
210
|
+
form_params = opts[:form_params] || {}
|
|
211
|
+
|
|
212
|
+
# http body (model)
|
|
213
|
+
post_body = opts[:body] || @api_client.object_to_http_body(audit_log_search_options)
|
|
214
|
+
|
|
215
|
+
# return_type
|
|
216
|
+
return_type = opts[:return_type] || 'AuditLogPageDto'
|
|
217
|
+
|
|
218
|
+
# auth_names
|
|
219
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
|
220
|
+
|
|
221
|
+
new_options = opts.merge(
|
|
222
|
+
:header_params => header_params,
|
|
223
|
+
:query_params => query_params,
|
|
224
|
+
:form_params => form_params,
|
|
225
|
+
:body => post_body,
|
|
226
|
+
:auth_names => auth_names,
|
|
227
|
+
:return_type => return_type
|
|
228
|
+
)
|
|
229
|
+
|
|
230
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
231
|
+
if @api_client.config.debugging
|
|
232
|
+
@api_client.config.logger.debug "API called: ApiAuditLogControllerApi#search_audit_logs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
233
|
+
end
|
|
234
|
+
return data, status_code, headers
|
|
235
|
+
end
|
|
236
|
+
end
|
|
237
|
+
end
|
|
@@ -257,6 +257,72 @@ module MailSlurpClient
|
|
|
257
257
|
return data, status_code, headers
|
|
258
258
|
end
|
|
259
259
|
|
|
260
|
+
# Extract text from an attachment
|
|
261
|
+
# Extract text content from an attachment using the requested method. `NATIVE` decoding is available now for text-like files. OCR/LLM methods are wired for future use and may return not implemented unless fallback is enabled.
|
|
262
|
+
# @param attachment_id [String] ID of attachment
|
|
263
|
+
# @param [Hash] opts the optional parameters
|
|
264
|
+
# @option opts [ExtractAttachmentTextOptions] :extract_attachment_text_options
|
|
265
|
+
# @return [ExtractAttachmentTextResult]
|
|
266
|
+
def extract_attachment_text(attachment_id, opts = {})
|
|
267
|
+
data, _status_code, _headers = extract_attachment_text_with_http_info(attachment_id, opts)
|
|
268
|
+
data
|
|
269
|
+
end
|
|
270
|
+
|
|
271
|
+
# Extract text from an attachment
|
|
272
|
+
# Extract text content from an attachment using the requested method. `NATIVE` decoding is available now for text-like files. OCR/LLM methods are wired for future use and may return not implemented unless fallback is enabled.
|
|
273
|
+
# @param attachment_id [String] ID of attachment
|
|
274
|
+
# @param [Hash] opts the optional parameters
|
|
275
|
+
# @option opts [ExtractAttachmentTextOptions] :extract_attachment_text_options
|
|
276
|
+
# @return [Array<(ExtractAttachmentTextResult, Integer, Hash)>] ExtractAttachmentTextResult data, response status code and response headers
|
|
277
|
+
def extract_attachment_text_with_http_info(attachment_id, opts = {})
|
|
278
|
+
if @api_client.config.debugging
|
|
279
|
+
@api_client.config.logger.debug 'Calling API: AttachmentControllerApi.extract_attachment_text ...'
|
|
280
|
+
end
|
|
281
|
+
# verify the required parameter 'attachment_id' is set
|
|
282
|
+
if @api_client.config.client_side_validation && attachment_id.nil?
|
|
283
|
+
fail ArgumentError, "Missing the required parameter 'attachment_id' when calling AttachmentControllerApi.extract_attachment_text"
|
|
284
|
+
end
|
|
285
|
+
# resource path
|
|
286
|
+
local_var_path = '/attachments/{attachmentId}/text'.sub('{' + 'attachmentId' + '}', CGI.escape(attachment_id.to_s))
|
|
287
|
+
|
|
288
|
+
# query parameters
|
|
289
|
+
query_params = opts[:query_params] || {}
|
|
290
|
+
|
|
291
|
+
# header parameters
|
|
292
|
+
header_params = opts[:header_params] || {}
|
|
293
|
+
# HTTP header 'Accept' (if needed)
|
|
294
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
295
|
+
# HTTP header 'Content-Type'
|
|
296
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
297
|
+
|
|
298
|
+
# form parameters
|
|
299
|
+
form_params = opts[:form_params] || {}
|
|
300
|
+
|
|
301
|
+
# http body (model)
|
|
302
|
+
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'extract_attachment_text_options'])
|
|
303
|
+
|
|
304
|
+
# return_type
|
|
305
|
+
return_type = opts[:return_type] || 'ExtractAttachmentTextResult'
|
|
306
|
+
|
|
307
|
+
# auth_names
|
|
308
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
|
309
|
+
|
|
310
|
+
new_options = opts.merge(
|
|
311
|
+
:header_params => header_params,
|
|
312
|
+
:query_params => query_params,
|
|
313
|
+
:form_params => form_params,
|
|
314
|
+
:body => post_body,
|
|
315
|
+
:auth_names => auth_names,
|
|
316
|
+
:return_type => return_type
|
|
317
|
+
)
|
|
318
|
+
|
|
319
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
320
|
+
if @api_client.config.debugging
|
|
321
|
+
@api_client.config.logger.debug "API called: AttachmentControllerApi#extract_attachment_text\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
322
|
+
end
|
|
323
|
+
return data, status_code, headers
|
|
324
|
+
end
|
|
325
|
+
|
|
260
326
|
# Get an attachment entity
|
|
261
327
|
# @param attachment_id [String] ID of attachment
|
|
262
328
|
# @param [Hash] opts the optional parameters
|
|
@@ -716,5 +716,131 @@ module MailSlurpClient
|
|
|
716
716
|
end
|
|
717
717
|
return data, status_code, headers
|
|
718
718
|
end
|
|
719
|
+
|
|
720
|
+
# Get SES tenant reputation findings
|
|
721
|
+
# Get SES tenant reputation recommendations/findings for this user.
|
|
722
|
+
# @param [Hash] opts the optional parameters
|
|
723
|
+
# @option opts [String] :account_region Optional account region filter
|
|
724
|
+
# @return [TenantReputationFindingsDto]
|
|
725
|
+
def get_tenant_reputation_findings(opts = {})
|
|
726
|
+
data, _status_code, _headers = get_tenant_reputation_findings_with_http_info(opts)
|
|
727
|
+
data
|
|
728
|
+
end
|
|
729
|
+
|
|
730
|
+
# Get SES tenant reputation findings
|
|
731
|
+
# Get SES tenant reputation recommendations/findings for this user.
|
|
732
|
+
# @param [Hash] opts the optional parameters
|
|
733
|
+
# @option opts [String] :account_region Optional account region filter
|
|
734
|
+
# @return [Array<(TenantReputationFindingsDto, Integer, Hash)>] TenantReputationFindingsDto data, response status code and response headers
|
|
735
|
+
def get_tenant_reputation_findings_with_http_info(opts = {})
|
|
736
|
+
if @api_client.config.debugging
|
|
737
|
+
@api_client.config.logger.debug 'Calling API: BounceControllerApi.get_tenant_reputation_findings ...'
|
|
738
|
+
end
|
|
739
|
+
allowable_values = ["US_WEST_2_ACCOUNT_STAGING", "US_EAST_1_ACCOUNT_STAGING", "EU_WEST_1_ACCOUNT_STAGING", "US_WEST_2_ACCOUNT_SES_1", "EU_WEST_1_ACCOUNT_SES_1", "US_WEST_2_ACCOUNT_SES_2", "EU_WEST_1_ACCOUNT_SES_2", "US_WEST_2_ACCOUNT_BYTEWISE", "EU_WEST_1_ACCOUNT_BYTEWISE", "US_WEST_2", "EU_WEST_1", "US_EAST_1"]
|
|
740
|
+
if @api_client.config.client_side_validation && opts[:'account_region'] && !allowable_values.include?(opts[:'account_region'])
|
|
741
|
+
fail ArgumentError, "invalid value for \"account_region\", must be one of #{allowable_values}"
|
|
742
|
+
end
|
|
743
|
+
# resource path
|
|
744
|
+
local_var_path = '/bounce/tenant-findings'
|
|
745
|
+
|
|
746
|
+
# query parameters
|
|
747
|
+
query_params = opts[:query_params] || {}
|
|
748
|
+
query_params[:'accountRegion'] = opts[:'account_region'] if !opts[:'account_region'].nil?
|
|
749
|
+
|
|
750
|
+
# header parameters
|
|
751
|
+
header_params = opts[:header_params] || {}
|
|
752
|
+
# HTTP header 'Accept' (if needed)
|
|
753
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
754
|
+
|
|
755
|
+
# form parameters
|
|
756
|
+
form_params = opts[:form_params] || {}
|
|
757
|
+
|
|
758
|
+
# http body (model)
|
|
759
|
+
post_body = opts[:body]
|
|
760
|
+
|
|
761
|
+
# return_type
|
|
762
|
+
return_type = opts[:return_type] || 'TenantReputationFindingsDto'
|
|
763
|
+
|
|
764
|
+
# auth_names
|
|
765
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
|
766
|
+
|
|
767
|
+
new_options = opts.merge(
|
|
768
|
+
:header_params => header_params,
|
|
769
|
+
:query_params => query_params,
|
|
770
|
+
:form_params => form_params,
|
|
771
|
+
:body => post_body,
|
|
772
|
+
:auth_names => auth_names,
|
|
773
|
+
:return_type => return_type
|
|
774
|
+
)
|
|
775
|
+
|
|
776
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
777
|
+
if @api_client.config.debugging
|
|
778
|
+
@api_client.config.logger.debug "API called: BounceControllerApi#get_tenant_reputation_findings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
779
|
+
end
|
|
780
|
+
return data, status_code, headers
|
|
781
|
+
end
|
|
782
|
+
|
|
783
|
+
# Get SES tenant status summary
|
|
784
|
+
# Get SES tenant sending and reputation status rows for this user. Includes complaint and bounce rates from CloudWatch.
|
|
785
|
+
# @param [Hash] opts the optional parameters
|
|
786
|
+
# @option opts [String] :account_region Optional account region filter
|
|
787
|
+
# @return [TenantReputationStatusSummaryDto]
|
|
788
|
+
def get_tenant_reputation_status_summary(opts = {})
|
|
789
|
+
data, _status_code, _headers = get_tenant_reputation_status_summary_with_http_info(opts)
|
|
790
|
+
data
|
|
791
|
+
end
|
|
792
|
+
|
|
793
|
+
# Get SES tenant status summary
|
|
794
|
+
# Get SES tenant sending and reputation status rows for this user. Includes complaint and bounce rates from CloudWatch.
|
|
795
|
+
# @param [Hash] opts the optional parameters
|
|
796
|
+
# @option opts [String] :account_region Optional account region filter
|
|
797
|
+
# @return [Array<(TenantReputationStatusSummaryDto, Integer, Hash)>] TenantReputationStatusSummaryDto data, response status code and response headers
|
|
798
|
+
def get_tenant_reputation_status_summary_with_http_info(opts = {})
|
|
799
|
+
if @api_client.config.debugging
|
|
800
|
+
@api_client.config.logger.debug 'Calling API: BounceControllerApi.get_tenant_reputation_status_summary ...'
|
|
801
|
+
end
|
|
802
|
+
allowable_values = ["US_WEST_2_ACCOUNT_STAGING", "US_EAST_1_ACCOUNT_STAGING", "EU_WEST_1_ACCOUNT_STAGING", "US_WEST_2_ACCOUNT_SES_1", "EU_WEST_1_ACCOUNT_SES_1", "US_WEST_2_ACCOUNT_SES_2", "EU_WEST_1_ACCOUNT_SES_2", "US_WEST_2_ACCOUNT_BYTEWISE", "EU_WEST_1_ACCOUNT_BYTEWISE", "US_WEST_2", "EU_WEST_1", "US_EAST_1"]
|
|
803
|
+
if @api_client.config.client_side_validation && opts[:'account_region'] && !allowable_values.include?(opts[:'account_region'])
|
|
804
|
+
fail ArgumentError, "invalid value for \"account_region\", must be one of #{allowable_values}"
|
|
805
|
+
end
|
|
806
|
+
# resource path
|
|
807
|
+
local_var_path = '/bounce/tenant-status'
|
|
808
|
+
|
|
809
|
+
# query parameters
|
|
810
|
+
query_params = opts[:query_params] || {}
|
|
811
|
+
query_params[:'accountRegion'] = opts[:'account_region'] if !opts[:'account_region'].nil?
|
|
812
|
+
|
|
813
|
+
# header parameters
|
|
814
|
+
header_params = opts[:header_params] || {}
|
|
815
|
+
# HTTP header 'Accept' (if needed)
|
|
816
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
817
|
+
|
|
818
|
+
# form parameters
|
|
819
|
+
form_params = opts[:form_params] || {}
|
|
820
|
+
|
|
821
|
+
# http body (model)
|
|
822
|
+
post_body = opts[:body]
|
|
823
|
+
|
|
824
|
+
# return_type
|
|
825
|
+
return_type = opts[:return_type] || 'TenantReputationStatusSummaryDto'
|
|
826
|
+
|
|
827
|
+
# auth_names
|
|
828
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
|
829
|
+
|
|
830
|
+
new_options = opts.merge(
|
|
831
|
+
:header_params => header_params,
|
|
832
|
+
:query_params => query_params,
|
|
833
|
+
:form_params => form_params,
|
|
834
|
+
:body => post_body,
|
|
835
|
+
:auth_names => auth_names,
|
|
836
|
+
:return_type => return_type
|
|
837
|
+
)
|
|
838
|
+
|
|
839
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
840
|
+
if @api_client.config.debugging
|
|
841
|
+
@api_client.config.logger.debug "API called: BounceControllerApi#get_tenant_reputation_status_summary\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
842
|
+
end
|
|
843
|
+
return data, status_code, headers
|
|
844
|
+
end
|
|
719
845
|
end
|
|
720
846
|
end
|