mailslurp_client 17.2.0 → 17.4.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/attachment_controller_api.rb +5 -5
- 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 +126 -2
- data/lib/mailslurp_client/api/email_verification_controller_api.rb +64 -0
- data/lib/mailslurp_client/api/inbox_controller_api.rb +233 -4
- data/lib/mailslurp_client/api/phone_controller_api.rb +2091 -526
- 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 +18 -18
- 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 +36 -36
- 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 +66 -66
- 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 +24 -24
- 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 +65 -65
- data/lib/mailslurp_client/models/connector_projection.rb +36 -36
- data/lib/mailslurp_client/models/contact_projection.rb +29 -29
- data/lib/mailslurp_client/models/create_email_audit_options.rb +394 -0
- data/lib/mailslurp_client/models/create_inbox_forwarder_options.rb +58 -29
- data/lib/mailslurp_client/models/create_inbox_replier_options.rb +39 -33
- data/lib/mailslurp_client/models/create_phone_number_options.rb +58 -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_intelligence_list_result.rb +285 -0
- data/lib/mailslurp_client/models/email_intelligence_options.rb +308 -0
- data/lib/mailslurp_client/models/email_intelligence_result_dto.rb +256 -0
- data/lib/mailslurp_client/models/email_intelligence_score_breakdown_dto.rb +296 -0
- data/lib/mailslurp_client/models/email_intelligence_signals_dto.rb +352 -0
- data/lib/mailslurp_client/models/email_intelligence_tests_options.rb +253 -0
- data/lib/mailslurp_client/models/email_projection.rb +88 -88
- data/lib/mailslurp_client/models/email_thread_projection.rb +57 -57
- 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 +32 -32
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +18 -18
- data/lib/mailslurp_client/models/extract_attachment_text_options.rb +1 -1
- data/lib/mailslurp_client/models/extract_attachment_text_result.rb +1 -1
- 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 +19 -19
- data/lib/mailslurp_client/models/guest_portal_user_projection.rb +41 -41
- data/lib/mailslurp_client/models/imap_email_projection.rb +18 -18
- data/lib/mailslurp_client/models/import_email_options.rb +269 -0
- data/lib/mailslurp_client/models/inbox_automation_match_option.rb +308 -0
- data/lib/mailslurp_client/models/inbox_automation_match_options.rb +273 -0
- data/lib/mailslurp_client/models/inbox_forwarder_dto.rb +65 -17
- data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +36 -36
- data/lib/mailslurp_client/models/inbox_forwarder_test_options.rb +17 -9
- data/lib/mailslurp_client/models/inbox_replier_dto.rb +41 -16
- data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +48 -48
- data/lib/mailslurp_client/models/inline_object.rb +12 -58
- data/lib/mailslurp_client/models/inline_object1.rb +58 -12
- data/lib/mailslurp_client/models/inline_object2.rb +211 -0
- 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 +15 -15
- data/lib/mailslurp_client/models/page_ai_transform_mapping_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_ai_transform_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_ai_transform_result_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_alias.rb +36 -36
- data/lib/mailslurp_client/models/page_alias_thread_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_attachment_entity.rb +36 -36
- data/lib/mailslurp_client/models/page_bounced_email.rb +36 -36
- data/lib/mailslurp_client/models/page_bounced_recipients.rb +36 -36
- data/lib/mailslurp_client/models/page_complaint.rb +36 -36
- data/lib/mailslurp_client/models/page_connector.rb +36 -36
- data/lib/mailslurp_client/models/page_connector_events.rb +36 -36
- data/lib/mailslurp_client/models/page_contact_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_delivery_status.rb +36 -36
- data/lib/mailslurp_client/models/page_device_preview_run_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_email_preview.rb +36 -36
- data/lib/mailslurp_client/models/page_email_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_email_thread_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_email_validation_request.rb +36 -36
- data/lib/mailslurp_client/models/page_entity_automation_items.rb +36 -36
- data/lib/mailslurp_client/models/page_entity_event_items.rb +36 -36
- data/lib/mailslurp_client/models/page_entity_favourite_items.rb +36 -36
- data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_group_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_guest_portal_users.rb +36 -36
- data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +36 -36
- data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +36 -36
- data/lib/mailslurp_client/models/page_inbox_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +36 -36
- data/lib/mailslurp_client/models/page_inbox_replier_events.rb +36 -36
- data/lib/mailslurp_client/models/page_inbox_tags.rb +36 -36
- data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +36 -36
- data/lib/mailslurp_client/models/page_missed_email_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_missed_sms_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_opt_in_identity_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_phone_message_thread_item_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_phone_message_thread_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_phone_number_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_phone_number_release_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_plus_address_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_reputation_items.rb +36 -36
- data/lib/mailslurp_client/models/page_ruleset_dto.rb +36 -36
- data/lib/mailslurp_client/models/page_scheduled_jobs.rb +36 -36
- data/lib/mailslurp_client/models/page_sent_email_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_sent_sms_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_sms_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_template_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_webhook_endpoint_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_webhook_projection.rb +36 -36
- data/lib/mailslurp_client/models/page_webhook_result.rb +36 -36
- data/lib/mailslurp_client/models/pageable_object.rb +28 -28
- data/lib/mailslurp_client/models/phone_message_thread_item_projection.rb +32 -32
- data/lib/mailslurp_client/models/phone_number_dto.rb +65 -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_number_tags_options.rb +213 -0
- 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 +53 -53
- 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 +32 -32
- 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_inbox_replier_options.rb +39 -33
- 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 +50 -50
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +78 -0
- metadata +80 -2
|
@@ -25,7 +25,7 @@ module MailSlurpClient
|
|
|
25
25
|
# Which field to match against
|
|
26
26
|
attr_accessor :field
|
|
27
27
|
|
|
28
|
-
#
|
|
28
|
+
# Pattern to apply to field
|
|
29
29
|
attr_accessor :match
|
|
30
30
|
|
|
31
31
|
# Who to send forwarded email to
|
|
@@ -33,6 +33,14 @@ module MailSlurpClient
|
|
|
33
33
|
|
|
34
34
|
attr_accessor :created_at
|
|
35
35
|
|
|
36
|
+
# Comparison mode for inbox automation matching.
|
|
37
|
+
attr_accessor :should
|
|
38
|
+
|
|
39
|
+
attr_accessor :match_options
|
|
40
|
+
|
|
41
|
+
# Method for extracting text from attachments.
|
|
42
|
+
attr_accessor :attachment_text_extraction_method
|
|
43
|
+
|
|
36
44
|
class EnumAttributeValidator
|
|
37
45
|
attr_reader :datatype
|
|
38
46
|
attr_reader :allowable_values
|
|
@@ -64,7 +72,10 @@ module MailSlurpClient
|
|
|
64
72
|
:'field' => :'field',
|
|
65
73
|
:'match' => :'match',
|
|
66
74
|
:'forward_to_recipients' => :'forwardToRecipients',
|
|
67
|
-
:'created_at' => :'createdAt'
|
|
75
|
+
:'created_at' => :'createdAt',
|
|
76
|
+
:'should' => :'should',
|
|
77
|
+
:'match_options' => :'matchOptions',
|
|
78
|
+
:'attachment_text_extraction_method' => :'attachmentTextExtractionMethod'
|
|
68
79
|
}
|
|
69
80
|
end
|
|
70
81
|
|
|
@@ -77,7 +88,10 @@ module MailSlurpClient
|
|
|
77
88
|
:'field' => :'String',
|
|
78
89
|
:'match' => :'String',
|
|
79
90
|
:'forward_to_recipients' => :'Array<String>',
|
|
80
|
-
:'created_at' => :'DateTime'
|
|
91
|
+
:'created_at' => :'DateTime',
|
|
92
|
+
:'should' => :'String',
|
|
93
|
+
:'match_options' => :'InboxAutomationMatchOptions',
|
|
94
|
+
:'attachment_text_extraction_method' => :'String'
|
|
81
95
|
}
|
|
82
96
|
end
|
|
83
97
|
|
|
@@ -86,6 +100,11 @@ module MailSlurpClient
|
|
|
86
100
|
Set.new([
|
|
87
101
|
:'inbox_id',
|
|
88
102
|
:'name',
|
|
103
|
+
:'field',
|
|
104
|
+
:'match',
|
|
105
|
+
:'should',
|
|
106
|
+
:'match_options',
|
|
107
|
+
:'attachment_text_extraction_method'
|
|
89
108
|
])
|
|
90
109
|
end
|
|
91
110
|
|
|
@@ -133,6 +152,18 @@ module MailSlurpClient
|
|
|
133
152
|
if attributes.key?(:'created_at')
|
|
134
153
|
self.created_at = attributes[:'created_at']
|
|
135
154
|
end
|
|
155
|
+
|
|
156
|
+
if attributes.key?(:'should')
|
|
157
|
+
self.should = attributes[:'should']
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
if attributes.key?(:'match_options')
|
|
161
|
+
self.match_options = attributes[:'match_options']
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
if attributes.key?(:'attachment_text_extraction_method')
|
|
165
|
+
self.attachment_text_extraction_method = attributes[:'attachment_text_extraction_method']
|
|
166
|
+
end
|
|
136
167
|
end
|
|
137
168
|
|
|
138
169
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -143,14 +174,6 @@ module MailSlurpClient
|
|
|
143
174
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
144
175
|
end
|
|
145
176
|
|
|
146
|
-
if @field.nil?
|
|
147
|
-
invalid_properties.push('invalid value for "field", field cannot be nil.')
|
|
148
|
-
end
|
|
149
|
-
|
|
150
|
-
if @match.nil?
|
|
151
|
-
invalid_properties.push('invalid value for "match", match cannot be nil.')
|
|
152
|
-
end
|
|
153
|
-
|
|
154
177
|
if @forward_to_recipients.nil?
|
|
155
178
|
invalid_properties.push('invalid value for "forward_to_recipients", forward_to_recipients cannot be nil.')
|
|
156
179
|
end
|
|
@@ -166,25 +189,47 @@ module MailSlurpClient
|
|
|
166
189
|
# @return true if the model is valid
|
|
167
190
|
def valid?
|
|
168
191
|
return false if @id.nil?
|
|
169
|
-
|
|
170
|
-
field_validator = EnumAttributeValidator.new('String', ["RECIPIENTS", "SENDER", "SUBJECT", "ATTACHMENTS"])
|
|
192
|
+
field_validator = EnumAttributeValidator.new('String', ["RECIPIENTS", "SENDER", "SUBJECT", "ATTACHMENTS", "ATTACHMENT_FILENAME", "ATTACHMENT_TEXT"])
|
|
171
193
|
return false unless field_validator.valid?(@field)
|
|
172
|
-
return false if @match.nil?
|
|
173
194
|
return false if @forward_to_recipients.nil?
|
|
174
195
|
return false if @created_at.nil?
|
|
196
|
+
should_validator = EnumAttributeValidator.new('String', ["WILDCARD", "MATCH", "CONTAIN", "EQUAL"])
|
|
197
|
+
return false unless should_validator.valid?(@should)
|
|
198
|
+
attachment_text_extraction_method_validator = EnumAttributeValidator.new('String', ["AUTO", "NATIVE", "OCR", "LLM", "OCR_THEN_LLM"])
|
|
199
|
+
return false unless attachment_text_extraction_method_validator.valid?(@attachment_text_extraction_method)
|
|
175
200
|
true
|
|
176
201
|
end
|
|
177
202
|
|
|
178
203
|
# Custom attribute writer method checking allowed values (enum).
|
|
179
204
|
# @param [Object] field Object to be assigned
|
|
180
205
|
def field=(field)
|
|
181
|
-
validator = EnumAttributeValidator.new('String', ["RECIPIENTS", "SENDER", "SUBJECT", "ATTACHMENTS"])
|
|
206
|
+
validator = EnumAttributeValidator.new('String', ["RECIPIENTS", "SENDER", "SUBJECT", "ATTACHMENTS", "ATTACHMENT_FILENAME", "ATTACHMENT_TEXT"])
|
|
182
207
|
unless validator.valid?(field)
|
|
183
208
|
fail ArgumentError, "invalid value for \"field\", must be one of #{validator.allowable_values}."
|
|
184
209
|
end
|
|
185
210
|
@field = field
|
|
186
211
|
end
|
|
187
212
|
|
|
213
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
214
|
+
# @param [Object] should Object to be assigned
|
|
215
|
+
def should=(should)
|
|
216
|
+
validator = EnumAttributeValidator.new('String', ["WILDCARD", "MATCH", "CONTAIN", "EQUAL"])
|
|
217
|
+
unless validator.valid?(should)
|
|
218
|
+
fail ArgumentError, "invalid value for \"should\", must be one of #{validator.allowable_values}."
|
|
219
|
+
end
|
|
220
|
+
@should = should
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
224
|
+
# @param [Object] attachment_text_extraction_method Object to be assigned
|
|
225
|
+
def attachment_text_extraction_method=(attachment_text_extraction_method)
|
|
226
|
+
validator = EnumAttributeValidator.new('String', ["AUTO", "NATIVE", "OCR", "LLM", "OCR_THEN_LLM"])
|
|
227
|
+
unless validator.valid?(attachment_text_extraction_method)
|
|
228
|
+
fail ArgumentError, "invalid value for \"attachment_text_extraction_method\", must be one of #{validator.allowable_values}."
|
|
229
|
+
end
|
|
230
|
+
@attachment_text_extraction_method = attachment_text_extraction_method
|
|
231
|
+
end
|
|
232
|
+
|
|
188
233
|
# Checks equality by comparing each attribute.
|
|
189
234
|
# @param [Object] Object to be compared
|
|
190
235
|
def ==(o)
|
|
@@ -196,7 +241,10 @@ module MailSlurpClient
|
|
|
196
241
|
field == o.field &&
|
|
197
242
|
match == o.match &&
|
|
198
243
|
forward_to_recipients == o.forward_to_recipients &&
|
|
199
|
-
created_at == o.created_at
|
|
244
|
+
created_at == o.created_at &&
|
|
245
|
+
should == o.should &&
|
|
246
|
+
match_options == o.match_options &&
|
|
247
|
+
attachment_text_extraction_method == o.attachment_text_extraction_method
|
|
200
248
|
end
|
|
201
249
|
|
|
202
250
|
# @see the `==` method
|
|
@@ -208,7 +256,7 @@ module MailSlurpClient
|
|
|
208
256
|
# Calculates hash code according to all attributes.
|
|
209
257
|
# @return [Integer] Hash code
|
|
210
258
|
def hash
|
|
211
|
-
[id, inbox_id, name, field, match, forward_to_recipients, created_at].hash
|
|
259
|
+
[id, inbox_id, name, field, match, forward_to_recipients, created_at, should, match_options, attachment_text_extraction_method].hash
|
|
212
260
|
end
|
|
213
261
|
|
|
214
262
|
# Builds the object from hash
|
|
@@ -15,6 +15,12 @@ require 'date'
|
|
|
15
15
|
module MailSlurpClient
|
|
16
16
|
# Inbox forwarder event
|
|
17
17
|
class InboxForwarderEventProjection
|
|
18
|
+
attr_accessor :message
|
|
19
|
+
|
|
20
|
+
attr_accessor :id
|
|
21
|
+
|
|
22
|
+
attr_accessor :status
|
|
23
|
+
|
|
18
24
|
attr_accessor :user_id
|
|
19
25
|
|
|
20
26
|
attr_accessor :email_id
|
|
@@ -27,12 +33,6 @@ module MailSlurpClient
|
|
|
27
33
|
|
|
28
34
|
attr_accessor :forwarder_id
|
|
29
35
|
|
|
30
|
-
attr_accessor :message
|
|
31
|
-
|
|
32
|
-
attr_accessor :id
|
|
33
|
-
|
|
34
|
-
attr_accessor :status
|
|
35
|
-
|
|
36
36
|
class EnumAttributeValidator
|
|
37
37
|
attr_reader :datatype
|
|
38
38
|
attr_reader :allowable_values
|
|
@@ -58,44 +58,44 @@ module MailSlurpClient
|
|
|
58
58
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
59
59
|
def self.attribute_map
|
|
60
60
|
{
|
|
61
|
+
:'message' => :'message',
|
|
62
|
+
:'id' => :'id',
|
|
63
|
+
:'status' => :'status',
|
|
61
64
|
:'user_id' => :'userId',
|
|
62
65
|
:'email_id' => :'emailId',
|
|
63
66
|
:'inbox_id' => :'inboxId',
|
|
64
67
|
:'created_at' => :'createdAt',
|
|
65
68
|
:'sent_id' => :'sentId',
|
|
66
|
-
:'forwarder_id' => :'forwarderId'
|
|
67
|
-
:'message' => :'message',
|
|
68
|
-
:'id' => :'id',
|
|
69
|
-
:'status' => :'status'
|
|
69
|
+
:'forwarder_id' => :'forwarderId'
|
|
70
70
|
}
|
|
71
71
|
end
|
|
72
72
|
|
|
73
73
|
# Attribute type mapping.
|
|
74
74
|
def self.openapi_types
|
|
75
75
|
{
|
|
76
|
+
:'message' => :'String',
|
|
77
|
+
:'id' => :'String',
|
|
78
|
+
:'status' => :'String',
|
|
76
79
|
:'user_id' => :'String',
|
|
77
80
|
:'email_id' => :'String',
|
|
78
81
|
:'inbox_id' => :'String',
|
|
79
82
|
:'created_at' => :'DateTime',
|
|
80
83
|
:'sent_id' => :'String',
|
|
81
|
-
:'forwarder_id' => :'String'
|
|
82
|
-
:'message' => :'String',
|
|
83
|
-
:'id' => :'String',
|
|
84
|
-
:'status' => :'String'
|
|
84
|
+
:'forwarder_id' => :'String'
|
|
85
85
|
}
|
|
86
86
|
end
|
|
87
87
|
|
|
88
88
|
# List of attributes with nullable: true
|
|
89
89
|
def self.openapi_nullable
|
|
90
90
|
Set.new([
|
|
91
|
+
:'message',
|
|
92
|
+
:'id',
|
|
93
|
+
:'status',
|
|
91
94
|
:'user_id',
|
|
92
95
|
:'email_id',
|
|
93
96
|
:'inbox_id',
|
|
94
97
|
:'sent_id',
|
|
95
|
-
:'forwarder_id'
|
|
96
|
-
:'message',
|
|
97
|
-
:'id',
|
|
98
|
-
:'status'
|
|
98
|
+
:'forwarder_id'
|
|
99
99
|
])
|
|
100
100
|
end
|
|
101
101
|
|
|
@@ -114,6 +114,18 @@ module MailSlurpClient
|
|
|
114
114
|
h[k.to_sym] = v
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
+
if attributes.key?(:'message')
|
|
118
|
+
self.message = attributes[:'message']
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
if attributes.key?(:'id')
|
|
122
|
+
self.id = attributes[:'id']
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
if attributes.key?(:'status')
|
|
126
|
+
self.status = attributes[:'status']
|
|
127
|
+
end
|
|
128
|
+
|
|
117
129
|
if attributes.key?(:'user_id')
|
|
118
130
|
self.user_id = attributes[:'user_id']
|
|
119
131
|
end
|
|
@@ -137,18 +149,6 @@ module MailSlurpClient
|
|
|
137
149
|
if attributes.key?(:'forwarder_id')
|
|
138
150
|
self.forwarder_id = attributes[:'forwarder_id']
|
|
139
151
|
end
|
|
140
|
-
|
|
141
|
-
if attributes.key?(:'message')
|
|
142
|
-
self.message = attributes[:'message']
|
|
143
|
-
end
|
|
144
|
-
|
|
145
|
-
if attributes.key?(:'id')
|
|
146
|
-
self.id = attributes[:'id']
|
|
147
|
-
end
|
|
148
|
-
|
|
149
|
-
if attributes.key?(:'status')
|
|
150
|
-
self.status = attributes[:'status']
|
|
151
|
-
end
|
|
152
152
|
end
|
|
153
153
|
|
|
154
154
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -165,9 +165,9 @@ module MailSlurpClient
|
|
|
165
165
|
# Check to see if the all the properties in the model are valid
|
|
166
166
|
# @return true if the model is valid
|
|
167
167
|
def valid?
|
|
168
|
-
return false if @created_at.nil?
|
|
169
168
|
status_validator = EnumAttributeValidator.new('String', ["SUCCESS", "FAILURE"])
|
|
170
169
|
return false unless status_validator.valid?(@status)
|
|
170
|
+
return false if @created_at.nil?
|
|
171
171
|
true
|
|
172
172
|
end
|
|
173
173
|
|
|
@@ -186,15 +186,15 @@ module MailSlurpClient
|
|
|
186
186
|
def ==(o)
|
|
187
187
|
return true if self.equal?(o)
|
|
188
188
|
self.class == o.class &&
|
|
189
|
+
message == o.message &&
|
|
190
|
+
id == o.id &&
|
|
191
|
+
status == o.status &&
|
|
189
192
|
user_id == o.user_id &&
|
|
190
193
|
email_id == o.email_id &&
|
|
191
194
|
inbox_id == o.inbox_id &&
|
|
192
195
|
created_at == o.created_at &&
|
|
193
196
|
sent_id == o.sent_id &&
|
|
194
|
-
forwarder_id == o.forwarder_id
|
|
195
|
-
message == o.message &&
|
|
196
|
-
id == o.id &&
|
|
197
|
-
status == o.status
|
|
197
|
+
forwarder_id == o.forwarder_id
|
|
198
198
|
end
|
|
199
199
|
|
|
200
200
|
# @see the `==` method
|
|
@@ -206,7 +206,7 @@ module MailSlurpClient
|
|
|
206
206
|
# Calculates hash code according to all attributes.
|
|
207
207
|
# @return [Integer] Hash code
|
|
208
208
|
def hash
|
|
209
|
-
[user_id, email_id, inbox_id, created_at, sent_id, forwarder_id
|
|
209
|
+
[message, id, status, user_id, email_id, inbox_id, created_at, sent_id, forwarder_id].hash
|
|
210
210
|
end
|
|
211
211
|
|
|
212
212
|
# Builds the object from hash
|
|
@@ -15,25 +15,33 @@ require 'date'
|
|
|
15
15
|
module MailSlurpClient
|
|
16
16
|
# Options for testing an inbox forwarder against a value
|
|
17
17
|
class InboxForwarderTestOptions
|
|
18
|
+
# Simple value to test against the forwarder's simple field/match rule. Required when emailId is not provided.
|
|
18
19
|
attr_accessor :test_value
|
|
19
20
|
|
|
21
|
+
# Optional email ID to evaluate the forwarder using full inbound email content (headers, recipients, and attachments).
|
|
22
|
+
attr_accessor :email_id
|
|
23
|
+
|
|
20
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
25
|
def self.attribute_map
|
|
22
26
|
{
|
|
23
|
-
:'test_value' => :'testValue'
|
|
27
|
+
:'test_value' => :'testValue',
|
|
28
|
+
:'email_id' => :'emailId'
|
|
24
29
|
}
|
|
25
30
|
end
|
|
26
31
|
|
|
27
32
|
# Attribute type mapping.
|
|
28
33
|
def self.openapi_types
|
|
29
34
|
{
|
|
30
|
-
:'test_value' => :'String'
|
|
35
|
+
:'test_value' => :'String',
|
|
36
|
+
:'email_id' => :'String'
|
|
31
37
|
}
|
|
32
38
|
end
|
|
33
39
|
|
|
34
40
|
# List of attributes with nullable: true
|
|
35
41
|
def self.openapi_nullable
|
|
36
42
|
Set.new([
|
|
43
|
+
:'test_value',
|
|
44
|
+
:'email_id'
|
|
37
45
|
])
|
|
38
46
|
end
|
|
39
47
|
|
|
@@ -55,23 +63,22 @@ module MailSlurpClient
|
|
|
55
63
|
if attributes.key?(:'test_value')
|
|
56
64
|
self.test_value = attributes[:'test_value']
|
|
57
65
|
end
|
|
66
|
+
|
|
67
|
+
if attributes.key?(:'email_id')
|
|
68
|
+
self.email_id = attributes[:'email_id']
|
|
69
|
+
end
|
|
58
70
|
end
|
|
59
71
|
|
|
60
72
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
61
73
|
# @return Array for valid properties with the reasons
|
|
62
74
|
def list_invalid_properties
|
|
63
75
|
invalid_properties = Array.new
|
|
64
|
-
if @test_value.nil?
|
|
65
|
-
invalid_properties.push('invalid value for "test_value", test_value cannot be nil.')
|
|
66
|
-
end
|
|
67
|
-
|
|
68
76
|
invalid_properties
|
|
69
77
|
end
|
|
70
78
|
|
|
71
79
|
# Check to see if the all the properties in the model are valid
|
|
72
80
|
# @return true if the model is valid
|
|
73
81
|
def valid?
|
|
74
|
-
return false if @test_value.nil?
|
|
75
82
|
true
|
|
76
83
|
end
|
|
77
84
|
|
|
@@ -80,7 +87,8 @@ module MailSlurpClient
|
|
|
80
87
|
def ==(o)
|
|
81
88
|
return true if self.equal?(o)
|
|
82
89
|
self.class == o.class &&
|
|
83
|
-
test_value == o.test_value
|
|
90
|
+
test_value == o.test_value &&
|
|
91
|
+
email_id == o.email_id
|
|
84
92
|
end
|
|
85
93
|
|
|
86
94
|
# @see the `==` method
|
|
@@ -92,7 +100,7 @@ module MailSlurpClient
|
|
|
92
100
|
# Calculates hash code according to all attributes.
|
|
93
101
|
# @return [Integer] Hash code
|
|
94
102
|
def hash
|
|
95
|
-
[test_value].hash
|
|
103
|
+
[test_value, email_id].hash
|
|
96
104
|
end
|
|
97
105
|
|
|
98
106
|
# Builds the object from hash
|
|
@@ -43,6 +43,11 @@ module MailSlurpClient
|
|
|
43
43
|
|
|
44
44
|
attr_accessor :created_at
|
|
45
45
|
|
|
46
|
+
# Comparison mode for inbox automation matching.
|
|
47
|
+
attr_accessor :should
|
|
48
|
+
|
|
49
|
+
attr_accessor :match_options
|
|
50
|
+
|
|
46
51
|
class EnumAttributeValidator
|
|
47
52
|
attr_reader :datatype
|
|
48
53
|
attr_reader :allowable_values
|
|
@@ -81,7 +86,9 @@ module MailSlurpClient
|
|
|
81
86
|
:'template_id' => :'templateId',
|
|
82
87
|
:'template_variables' => :'templateVariables',
|
|
83
88
|
:'ignore_reply_to' => :'ignoreReplyTo',
|
|
84
|
-
:'created_at' => :'createdAt'
|
|
89
|
+
:'created_at' => :'createdAt',
|
|
90
|
+
:'should' => :'should',
|
|
91
|
+
:'match_options' => :'matchOptions'
|
|
85
92
|
}
|
|
86
93
|
end
|
|
87
94
|
|
|
@@ -101,7 +108,9 @@ module MailSlurpClient
|
|
|
101
108
|
:'template_id' => :'String',
|
|
102
109
|
:'template_variables' => :'Hash<String, Object>',
|
|
103
110
|
:'ignore_reply_to' => :'Boolean',
|
|
104
|
-
:'created_at' => :'DateTime'
|
|
111
|
+
:'created_at' => :'DateTime',
|
|
112
|
+
:'should' => :'String',
|
|
113
|
+
:'match_options' => :'InboxAutomationMatchOptions'
|
|
105
114
|
}
|
|
106
115
|
end
|
|
107
116
|
|
|
@@ -110,12 +119,16 @@ module MailSlurpClient
|
|
|
110
119
|
Set.new([
|
|
111
120
|
:'inbox_id',
|
|
112
121
|
:'name',
|
|
122
|
+
:'field',
|
|
123
|
+
:'match',
|
|
113
124
|
:'reply_to',
|
|
114
125
|
:'subject',
|
|
115
126
|
:'from',
|
|
116
127
|
:'charset',
|
|
117
128
|
:'template_id',
|
|
118
129
|
:'template_variables',
|
|
130
|
+
:'should',
|
|
131
|
+
:'match_options'
|
|
119
132
|
])
|
|
120
133
|
end
|
|
121
134
|
|
|
@@ -191,6 +204,14 @@ module MailSlurpClient
|
|
|
191
204
|
if attributes.key?(:'created_at')
|
|
192
205
|
self.created_at = attributes[:'created_at']
|
|
193
206
|
end
|
|
207
|
+
|
|
208
|
+
if attributes.key?(:'should')
|
|
209
|
+
self.should = attributes[:'should']
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
if attributes.key?(:'match_options')
|
|
213
|
+
self.match_options = attributes[:'match_options']
|
|
214
|
+
end
|
|
194
215
|
end
|
|
195
216
|
|
|
196
217
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -201,14 +222,6 @@ module MailSlurpClient
|
|
|
201
222
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
202
223
|
end
|
|
203
224
|
|
|
204
|
-
if @field.nil?
|
|
205
|
-
invalid_properties.push('invalid value for "field", field cannot be nil.')
|
|
206
|
-
end
|
|
207
|
-
|
|
208
|
-
if @match.nil?
|
|
209
|
-
invalid_properties.push('invalid value for "match", match cannot be nil.')
|
|
210
|
-
end
|
|
211
|
-
|
|
212
225
|
if @is_html.nil?
|
|
213
226
|
invalid_properties.push('invalid value for "is_html", is_html cannot be nil.')
|
|
214
227
|
end
|
|
@@ -228,26 +241,36 @@ module MailSlurpClient
|
|
|
228
241
|
# @return true if the model is valid
|
|
229
242
|
def valid?
|
|
230
243
|
return false if @id.nil?
|
|
231
|
-
|
|
232
|
-
field_validator = EnumAttributeValidator.new('String', ["RECIPIENTS", "SENDER", "SUBJECT", "ATTACHMENTS"])
|
|
244
|
+
field_validator = EnumAttributeValidator.new('String', ["RECIPIENTS", "SENDER", "SUBJECT", "ATTACHMENTS", "ATTACHMENT_FILENAME", "ATTACHMENT_TEXT"])
|
|
233
245
|
return false unless field_validator.valid?(@field)
|
|
234
|
-
return false if @match.nil?
|
|
235
246
|
return false if @is_html.nil?
|
|
236
247
|
return false if @ignore_reply_to.nil?
|
|
237
248
|
return false if @created_at.nil?
|
|
249
|
+
should_validator = EnumAttributeValidator.new('String', ["WILDCARD", "MATCH", "CONTAIN", "EQUAL"])
|
|
250
|
+
return false unless should_validator.valid?(@should)
|
|
238
251
|
true
|
|
239
252
|
end
|
|
240
253
|
|
|
241
254
|
# Custom attribute writer method checking allowed values (enum).
|
|
242
255
|
# @param [Object] field Object to be assigned
|
|
243
256
|
def field=(field)
|
|
244
|
-
validator = EnumAttributeValidator.new('String', ["RECIPIENTS", "SENDER", "SUBJECT", "ATTACHMENTS"])
|
|
257
|
+
validator = EnumAttributeValidator.new('String', ["RECIPIENTS", "SENDER", "SUBJECT", "ATTACHMENTS", "ATTACHMENT_FILENAME", "ATTACHMENT_TEXT"])
|
|
245
258
|
unless validator.valid?(field)
|
|
246
259
|
fail ArgumentError, "invalid value for \"field\", must be one of #{validator.allowable_values}."
|
|
247
260
|
end
|
|
248
261
|
@field = field
|
|
249
262
|
end
|
|
250
263
|
|
|
264
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
265
|
+
# @param [Object] should Object to be assigned
|
|
266
|
+
def should=(should)
|
|
267
|
+
validator = EnumAttributeValidator.new('String', ["WILDCARD", "MATCH", "CONTAIN", "EQUAL"])
|
|
268
|
+
unless validator.valid?(should)
|
|
269
|
+
fail ArgumentError, "invalid value for \"should\", must be one of #{validator.allowable_values}."
|
|
270
|
+
end
|
|
271
|
+
@should = should
|
|
272
|
+
end
|
|
273
|
+
|
|
251
274
|
# Checks equality by comparing each attribute.
|
|
252
275
|
# @param [Object] Object to be compared
|
|
253
276
|
def ==(o)
|
|
@@ -266,7 +289,9 @@ module MailSlurpClient
|
|
|
266
289
|
template_id == o.template_id &&
|
|
267
290
|
template_variables == o.template_variables &&
|
|
268
291
|
ignore_reply_to == o.ignore_reply_to &&
|
|
269
|
-
created_at == o.created_at
|
|
292
|
+
created_at == o.created_at &&
|
|
293
|
+
should == o.should &&
|
|
294
|
+
match_options == o.match_options
|
|
270
295
|
end
|
|
271
296
|
|
|
272
297
|
# @see the `==` method
|
|
@@ -278,7 +303,7 @@ module MailSlurpClient
|
|
|
278
303
|
# Calculates hash code according to all attributes.
|
|
279
304
|
# @return [Integer] Hash code
|
|
280
305
|
def hash
|
|
281
|
-
[id, inbox_id, name, field, match, reply_to, subject, from, charset, is_html, template_id, template_variables, ignore_reply_to, created_at].hash
|
|
306
|
+
[id, inbox_id, name, field, match, reply_to, subject, from, charset, is_html, template_id, template_variables, ignore_reply_to, created_at, should, match_options].hash
|
|
282
307
|
end
|
|
283
308
|
|
|
284
309
|
# Builds the object from hash
|