mailslurp_client 15.17.22 → 15.17.23
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/lib/mailslurp_client/api/alias_controller_api.rb +140 -0
- data/lib/mailslurp_client/api/attachment_controller_api.rb +18 -14
- data/lib/mailslurp_client/api/bounce_controller_api.rb +118 -0
- data/lib/mailslurp_client/api/common_actions_controller_api.rb +76 -0
- data/lib/mailslurp_client/api/connector_controller_api.rb +52 -0
- data/lib/mailslurp_client/api/contact_controller_api.rb +8 -7
- data/lib/mailslurp_client/api/email_controller_api.rb +299 -10
- data/lib/mailslurp_client/api/email_verification_controller_api.rb +110 -0
- data/lib/mailslurp_client/api/export_controller_api.rb +3 -3
- data/lib/mailslurp_client/api/inbox_controller_api.rb +114 -0
- data/lib/mailslurp_client/api/inbox_forwarder_controller_api.rb +205 -6
- data/lib/mailslurp_client/api/inbox_ruleset_controller_api.rb +128 -0
- data/lib/mailslurp_client/api/sent_emails_controller_api.rb +5 -7
- data/lib/mailslurp_client/api/tools_controller_api.rb +62 -0
- data/lib/mailslurp_client/api/webhook_controller_api.rb +86 -0
- data/lib/mailslurp_client/models/account_bounce_block_dto.rb +267 -0
- data/lib/mailslurp_client/models/alias_dto.rb +12 -1
- data/lib/mailslurp_client/models/alias_projection.rb +36 -36
- data/lib/mailslurp_client/models/attachment_entity.rb +10 -1
- data/lib/mailslurp_client/models/attachment_meta_data.rb +15 -4
- data/lib/mailslurp_client/models/attachment_projection.rb +31 -20
- data/lib/mailslurp_client/models/bounce_projection.rb +24 -24
- data/lib/mailslurp_client/models/bounce_recipient_projection.rb +34 -24
- data/lib/mailslurp_client/models/bounced_recipient_dto.rb +11 -1
- data/lib/mailslurp_client/models/{connector_sync_request_result_exception_cause_suppressed.rb → can_send_email_results.rb} +18 -24
- data/lib/mailslurp_client/models/check_email_body_feature_support_results.rb +211 -0
- data/lib/mailslurp_client/models/check_email_client_support_options.rb +212 -0
- data/lib/mailslurp_client/models/check_email_client_support_results.rb +211 -0
- data/lib/mailslurp_client/models/check_email_features_client_support_options.rb +211 -0
- data/lib/mailslurp_client/models/check_email_features_client_support_results.rb +211 -0
- data/lib/mailslurp_client/models/connector_dto.rb +33 -1
- data/lib/mailslurp_client/models/connector_projection.rb +32 -32
- data/lib/mailslurp_client/models/connector_sync_event_projection.rb +22 -22
- data/lib/mailslurp_client/models/connector_sync_request_result_exception.rb +1 -1
- data/lib/mailslurp_client/models/connector_sync_request_result_exception_cause.rb +1 -12
- data/lib/mailslurp_client/models/connector_sync_request_result_exception_cause_stack_trace.rb +13 -13
- data/lib/mailslurp_client/models/contact_projection.rb +39 -43
- data/lib/mailslurp_client/models/create_alias_options.rb +26 -4
- data/lib/mailslurp_client/models/create_connector_imap_fetch_options.rb +215 -0
- data/lib/mailslurp_client/models/create_connector_options.rb +13 -4
- data/lib/mailslurp_client/models/create_contact_options.rb +16 -5
- data/lib/mailslurp_client/models/create_inbox_dto.rb +16 -5
- data/lib/mailslurp_client/models/email.rb +49 -5
- data/lib/mailslurp_client/models/email_feature_category_name.rb +259 -0
- data/lib/mailslurp_client/models/email_feature_family_name.rb +259 -0
- data/lib/mailslurp_client/models/email_feature_family_statistics.rb +287 -0
- data/lib/mailslurp_client/models/{inline_object1.rb → email_feature_names.rb} +42 -67
- data/lib/mailslurp_client/models/email_feature_overview.rb +331 -0
- data/lib/mailslurp_client/models/email_feature_platform_name.rb +259 -0
- data/lib/mailslurp_client/models/email_feature_platform_statistics.rb +261 -0
- data/lib/mailslurp_client/models/email_feature_support_flags.rb +256 -0
- data/lib/mailslurp_client/models/email_feature_support_result.rb +281 -0
- data/lib/mailslurp_client/models/email_feature_support_status_percentage.rb +259 -0
- data/lib/mailslurp_client/models/email_feature_version_statistics.rb +225 -0
- data/lib/mailslurp_client/models/email_projection.rb +58 -48
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +18 -18
- data/lib/mailslurp_client/models/group_projection.rb +19 -19
- data/lib/mailslurp_client/models/html_validation_result.rb +18 -1
- data/lib/mailslurp_client/models/inbox_dto.rb +27 -4
- data/lib/mailslurp_client/models/inbox_forwarder_event_dto.rb +316 -0
- data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +46 -46
- data/lib/mailslurp_client/models/inbox_preview.rb +28 -5
- data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +50 -50
- data/lib/mailslurp_client/models/list_unsubscribe_recipient_projection.rb +19 -19
- data/lib/mailslurp_client/models/missed_email_projection.rb +32 -32
- data/lib/mailslurp_client/models/organization_inbox_projection.rb +27 -4
- data/lib/mailslurp_client/models/page_alias.rb +20 -20
- data/lib/mailslurp_client/models/page_attachment_entity.rb +20 -20
- data/lib/mailslurp_client/models/page_bounced_email.rb +20 -20
- data/lib/mailslurp_client/models/page_bounced_recipients.rb +20 -20
- data/lib/mailslurp_client/models/page_complaint.rb +20 -20
- data/lib/mailslurp_client/models/page_connector.rb +20 -20
- data/lib/mailslurp_client/models/page_connector_sync_events.rb +20 -20
- data/lib/mailslurp_client/models/page_contact_projection.rb +20 -20
- data/lib/mailslurp_client/models/page_delivery_status.rb +20 -20
- data/lib/mailslurp_client/models/page_email_preview.rb +20 -20
- data/lib/mailslurp_client/models/page_email_projection.rb +30 -20
- data/lib/mailslurp_client/models/page_email_validation_request.rb +20 -20
- data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +20 -20
- data/lib/mailslurp_client/models/page_group_projection.rb +20 -20
- data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +20 -20
- data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +20 -20
- data/lib/mailslurp_client/models/page_inbox_projection.rb +20 -20
- data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +20 -20
- data/lib/mailslurp_client/models/page_inbox_replier_events.rb +20 -20
- data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +20 -20
- data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +20 -20
- data/lib/mailslurp_client/models/page_missed_email_projection.rb +20 -20
- data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +20 -20
- data/lib/mailslurp_client/models/page_phone_number_projection.rb +20 -20
- data/lib/mailslurp_client/models/page_scheduled_jobs.rb +20 -20
- data/lib/mailslurp_client/models/page_sent_email_projection.rb +40 -40
- data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +40 -40
- data/lib/mailslurp_client/models/page_sms_projection.rb +20 -20
- data/lib/mailslurp_client/models/page_template_projection.rb +20 -20
- data/lib/mailslurp_client/models/page_thread_projection.rb +20 -20
- data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +20 -20
- data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +20 -20
- data/lib/mailslurp_client/models/page_webhook_projection.rb +20 -20
- data/lib/mailslurp_client/models/page_webhook_result.rb +20 -20
- data/lib/mailslurp_client/models/pageable_object.rb +22 -22
- data/lib/mailslurp_client/models/phone_number_projection.rb +18 -18
- data/lib/mailslurp_client/models/reply_to_alias_email_options.rb +14 -1
- data/lib/mailslurp_client/models/reply_to_email_options.rb +14 -1
- data/lib/mailslurp_client/models/scheduled_job.rb +2 -2
- data/lib/mailslurp_client/models/scheduled_job_dto.rb +2 -2
- data/lib/mailslurp_client/models/send_email_body_part.rb +226 -0
- data/lib/mailslurp_client/models/send_email_options.rb +53 -5
- data/lib/mailslurp_client/models/sent_email_dto.rb +13 -1
- data/lib/mailslurp_client/models/sent_email_projection.rb +15 -15
- data/lib/mailslurp_client/models/sms_projection.rb +18 -18
- data/lib/mailslurp_client/models/{sort.rb → sort_object.rb} +16 -16
- data/lib/mailslurp_client/models/template_projection.rb +32 -32
- data/lib/mailslurp_client/models/test_inbox_ruleset_receiving_options.rb +226 -0
- data/lib/mailslurp_client/models/test_inbox_ruleset_receiving_result.rb +211 -0
- data/lib/mailslurp_client/models/test_inbox_ruleset_sending_options.rb +226 -0
- data/lib/mailslurp_client/models/test_inbox_ruleset_sending_result.rb +211 -0
- data/lib/mailslurp_client/models/thread_projection.rb +49 -49
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +33 -33
- data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +32 -32
- data/lib/mailslurp_client/models/upload_attachment_options.rb +12 -1
- data/lib/mailslurp_client/models/validate_email_address_list_options.rb +14 -4
- data/lib/mailslurp_client/models/webhook_dto.rb +2 -2
- data/lib/mailslurp_client/models/webhook_projection.rb +41 -41
- data/lib/mailslurp_client/models/webhook_result_dto.rb +2 -2
- data/lib/mailslurp_client/models/webhook_test_request.rb +2 -2
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +26 -3
- metadata +28 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66bcc1b9c2023a0e7b55f5487e629d582a0521280f0bd1022cb22adc8492a174
|
4
|
+
data.tar.gz: eaef14dc4fb39fc17cf7d83f3cfa5d22c3fd2b59eff8174ef1c8f079c28e64d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6de28c0aa93168651435a0f8fba67eab86b13a4673299e6f56943d9918e6ed2ca3785f6b0df27f59881e0c1b30d168961955df25500687d85967225e801060d9
|
7
|
+
data.tar.gz: f200f52162b6aa2c90329f7dfb608b7869c48036196552701d9049206d5536640ea915a81567b758ad1c9a4c5ee322d4d3d4e647d91725d714d9bb1735fcf1a5
|
data/LICENSE
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Copyright
|
1
|
+
Copyright 2024 MailSlurp Email API (Provided by Pettman OÜ, Estonia)
|
2
2
|
|
3
3
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
4
4
|
|
@@ -368,6 +368,7 @@ module MailSlurpClient
|
|
368
368
|
# Get all email aliases you have created
|
369
369
|
# Get all email aliases in paginated form
|
370
370
|
# @param [Hash] opts the optional parameters
|
371
|
+
# @option opts [String] :search Optional search term
|
371
372
|
# @option opts [Integer] :page Optional page index in alias list pagination (default to 0)
|
372
373
|
# @option opts [Integer] :size Optional page size in alias list pagination (default to 20)
|
373
374
|
# @option opts [String] :sort Optional createdAt sort direction ASC or DESC (default to 'ASC')
|
@@ -382,6 +383,7 @@ module MailSlurpClient
|
|
382
383
|
# Get all email aliases you have created
|
383
384
|
# Get all email aliases in paginated form
|
384
385
|
# @param [Hash] opts the optional parameters
|
386
|
+
# @option opts [String] :search Optional search term
|
385
387
|
# @option opts [Integer] :page Optional page index in alias list pagination
|
386
388
|
# @option opts [Integer] :size Optional page size in alias list pagination
|
387
389
|
# @option opts [String] :sort Optional createdAt sort direction ASC or DESC
|
@@ -401,6 +403,7 @@ module MailSlurpClient
|
|
401
403
|
|
402
404
|
# query parameters
|
403
405
|
query_params = opts[:query_params] || {}
|
406
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
404
407
|
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
405
408
|
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
406
409
|
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
@@ -440,6 +443,143 @@ module MailSlurpClient
|
|
440
443
|
return data, status_code, headers
|
441
444
|
end
|
442
445
|
|
446
|
+
# Get a thread
|
447
|
+
# Return a thread associated with an alias
|
448
|
+
# @param thread_id [String]
|
449
|
+
# @param [Hash] opts the optional parameters
|
450
|
+
# @return [ThreadProjection]
|
451
|
+
def get_thread(thread_id, opts = {})
|
452
|
+
data, _status_code, _headers = get_thread_with_http_info(thread_id, opts)
|
453
|
+
data
|
454
|
+
end
|
455
|
+
|
456
|
+
# Get a thread
|
457
|
+
# Return a thread associated with an alias
|
458
|
+
# @param thread_id [String]
|
459
|
+
# @param [Hash] opts the optional parameters
|
460
|
+
# @return [Array<(ThreadProjection, Integer, Hash)>] ThreadProjection data, response status code and response headers
|
461
|
+
def get_thread_with_http_info(thread_id, opts = {})
|
462
|
+
if @api_client.config.debugging
|
463
|
+
@api_client.config.logger.debug 'Calling API: AliasControllerApi.get_thread ...'
|
464
|
+
end
|
465
|
+
# verify the required parameter 'thread_id' is set
|
466
|
+
if @api_client.config.client_side_validation && thread_id.nil?
|
467
|
+
fail ArgumentError, "Missing the required parameter 'thread_id' when calling AliasControllerApi.get_thread"
|
468
|
+
end
|
469
|
+
# resource path
|
470
|
+
local_var_path = '/aliases/threads/{threadId}'.sub('{' + 'threadId' + '}', CGI.escape(thread_id.to_s))
|
471
|
+
|
472
|
+
# query parameters
|
473
|
+
query_params = opts[:query_params] || {}
|
474
|
+
|
475
|
+
# header parameters
|
476
|
+
header_params = opts[:header_params] || {}
|
477
|
+
# HTTP header 'Accept' (if needed)
|
478
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
479
|
+
|
480
|
+
# form parameters
|
481
|
+
form_params = opts[:form_params] || {}
|
482
|
+
|
483
|
+
# http body (model)
|
484
|
+
post_body = opts[:body]
|
485
|
+
|
486
|
+
# return_type
|
487
|
+
return_type = opts[:return_type] || 'ThreadProjection'
|
488
|
+
|
489
|
+
# auth_names
|
490
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
491
|
+
|
492
|
+
new_options = opts.merge(
|
493
|
+
:header_params => header_params,
|
494
|
+
:query_params => query_params,
|
495
|
+
:form_params => form_params,
|
496
|
+
:body => post_body,
|
497
|
+
:auth_names => auth_names,
|
498
|
+
:return_type => return_type
|
499
|
+
)
|
500
|
+
|
501
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
502
|
+
if @api_client.config.debugging
|
503
|
+
@api_client.config.logger.debug "API called: AliasControllerApi#get_thread\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
504
|
+
end
|
505
|
+
return data, status_code, headers
|
506
|
+
end
|
507
|
+
|
508
|
+
# Get all threads
|
509
|
+
# Returns threads created for all aliases in paginated form
|
510
|
+
# @param [Hash] opts the optional parameters
|
511
|
+
# @option opts [Integer] :page Optional page index in thread list pagination (default to 0)
|
512
|
+
# @option opts [Integer] :size Optional page size in thread list pagination (default to 20)
|
513
|
+
# @option opts [String] :sort Optional createdAt sort direction ASC or DESC (default to 'ASC')
|
514
|
+
# @option opts [DateTime] :since Optional filter by sent after given date time
|
515
|
+
# @option opts [DateTime] :before Optional filter by sent before given date time
|
516
|
+
# @return [PageThreadProjection]
|
517
|
+
def get_threads_paginated(opts = {})
|
518
|
+
data, _status_code, _headers = get_threads_paginated_with_http_info(opts)
|
519
|
+
data
|
520
|
+
end
|
521
|
+
|
522
|
+
# Get all threads
|
523
|
+
# Returns threads created for all aliases in paginated form
|
524
|
+
# @param [Hash] opts the optional parameters
|
525
|
+
# @option opts [Integer] :page Optional page index in thread list pagination
|
526
|
+
# @option opts [Integer] :size Optional page size in thread list pagination
|
527
|
+
# @option opts [String] :sort Optional createdAt sort direction ASC or DESC
|
528
|
+
# @option opts [DateTime] :since Optional filter by sent after given date time
|
529
|
+
# @option opts [DateTime] :before Optional filter by sent before given date time
|
530
|
+
# @return [Array<(PageThreadProjection, Integer, Hash)>] PageThreadProjection data, response status code and response headers
|
531
|
+
def get_threads_paginated_with_http_info(opts = {})
|
532
|
+
if @api_client.config.debugging
|
533
|
+
@api_client.config.logger.debug 'Calling API: AliasControllerApi.get_threads_paginated ...'
|
534
|
+
end
|
535
|
+
allowable_values = ["ASC", "DESC"]
|
536
|
+
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
|
537
|
+
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
538
|
+
end
|
539
|
+
# resource path
|
540
|
+
local_var_path = '/aliases/threads'
|
541
|
+
|
542
|
+
# query parameters
|
543
|
+
query_params = opts[:query_params] || {}
|
544
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
545
|
+
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
546
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
547
|
+
query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
|
548
|
+
query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
|
549
|
+
|
550
|
+
# header parameters
|
551
|
+
header_params = opts[:header_params] || {}
|
552
|
+
# HTTP header 'Accept' (if needed)
|
553
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
554
|
+
|
555
|
+
# form parameters
|
556
|
+
form_params = opts[:form_params] || {}
|
557
|
+
|
558
|
+
# http body (model)
|
559
|
+
post_body = opts[:body]
|
560
|
+
|
561
|
+
# return_type
|
562
|
+
return_type = opts[:return_type] || 'PageThreadProjection'
|
563
|
+
|
564
|
+
# auth_names
|
565
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
566
|
+
|
567
|
+
new_options = opts.merge(
|
568
|
+
:header_params => header_params,
|
569
|
+
:query_params => query_params,
|
570
|
+
:form_params => form_params,
|
571
|
+
:body => post_body,
|
572
|
+
:auth_names => auth_names,
|
573
|
+
:return_type => return_type
|
574
|
+
)
|
575
|
+
|
576
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
577
|
+
if @api_client.config.debugging
|
578
|
+
@api_client.config.logger.debug "API called: AliasControllerApi#get_threads_paginated\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
579
|
+
end
|
580
|
+
return data, status_code, headers
|
581
|
+
end
|
582
|
+
|
443
583
|
# Reply to an email
|
444
584
|
# Send the reply to the email sender or reply-to and include same subject cc bcc etc. Reply to an email and the contents will be sent with the existing subject to the emails `to`, `cc`, and `bcc`.
|
445
585
|
# @param alias_id [String] ID of the alias that email belongs to
|
@@ -516,50 +516,51 @@ module MailSlurpClient
|
|
516
516
|
end
|
517
517
|
|
518
518
|
# Upload an attachment for sending using file byte stream input octet stream. Returns an array whose first element is the ID of the uploaded attachment.
|
519
|
-
# @param inline_object1 [InlineObject1]
|
520
519
|
# @param [Hash] opts the optional parameters
|
521
|
-
# @option opts [String] :content_type
|
520
|
+
# @option opts [String] :content_type
|
521
|
+
# @option opts [String] :content_type2 Optional contentType for file. For instance `application/pdf`
|
522
|
+
# @option opts [String] :content_id Optional content ID (CID) to save upload with
|
522
523
|
# @option opts [String] :filename Optional filename to save upload with
|
524
|
+
# @option opts [String] :filename2
|
523
525
|
# @return [Array<String>]
|
524
|
-
def upload_attachment_bytes(
|
525
|
-
data, _status_code, _headers = upload_attachment_bytes_with_http_info(
|
526
|
+
def upload_attachment_bytes(opts = {})
|
527
|
+
data, _status_code, _headers = upload_attachment_bytes_with_http_info(opts)
|
526
528
|
data
|
527
529
|
end
|
528
530
|
|
529
531
|
# Upload an attachment for sending using file byte stream input octet stream. Returns an array whose first element is the ID of the uploaded attachment.
|
530
|
-
# @param inline_object1 [InlineObject1]
|
531
532
|
# @param [Hash] opts the optional parameters
|
532
|
-
# @option opts [String] :content_type
|
533
|
+
# @option opts [String] :content_type
|
534
|
+
# @option opts [String] :content_type2 Optional contentType for file. For instance `application/pdf`
|
535
|
+
# @option opts [String] :content_id Optional content ID (CID) to save upload with
|
533
536
|
# @option opts [String] :filename Optional filename to save upload with
|
537
|
+
# @option opts [String] :filename2
|
534
538
|
# @return [Array<(Array<String>, Integer, Hash)>] Array<String> data, response status code and response headers
|
535
|
-
def upload_attachment_bytes_with_http_info(
|
539
|
+
def upload_attachment_bytes_with_http_info(opts = {})
|
536
540
|
if @api_client.config.debugging
|
537
541
|
@api_client.config.logger.debug 'Calling API: AttachmentControllerApi.upload_attachment_bytes ...'
|
538
542
|
end
|
539
|
-
# verify the required parameter 'inline_object1' is set
|
540
|
-
if @api_client.config.client_side_validation && inline_object1.nil?
|
541
|
-
fail ArgumentError, "Missing the required parameter 'inline_object1' when calling AttachmentControllerApi.upload_attachment_bytes"
|
542
|
-
end
|
543
543
|
# resource path
|
544
544
|
local_var_path = '/attachments/bytes'
|
545
545
|
|
546
546
|
# query parameters
|
547
547
|
query_params = opts[:query_params] || {}
|
548
|
+
query_params[:'contentType'] = opts[:'content_type2'] if !opts[:'content_type2'].nil?
|
549
|
+
query_params[:'contentId'] = opts[:'content_id'] if !opts[:'content_id'].nil?
|
548
550
|
query_params[:'filename'] = opts[:'filename'] if !opts[:'filename'].nil?
|
549
551
|
|
550
552
|
# header parameters
|
551
553
|
header_params = opts[:header_params] || {}
|
552
554
|
# HTTP header 'Accept' (if needed)
|
553
555
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
554
|
-
# HTTP header 'Content-Type'
|
555
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
|
556
556
|
header_params[:'contentType'] = opts[:'content_type'] if !opts[:'content_type'].nil?
|
557
|
+
header_params[:'filename'] = opts[:'filename2'] if !opts[:'filename2'].nil?
|
557
558
|
|
558
559
|
# form parameters
|
559
560
|
form_params = opts[:form_params] || {}
|
560
561
|
|
561
562
|
# http body (model)
|
562
|
-
post_body = opts[:body]
|
563
|
+
post_body = opts[:body]
|
563
564
|
|
564
565
|
# return_type
|
565
566
|
return_type = opts[:return_type] || 'Array<String>'
|
@@ -585,6 +586,7 @@ module MailSlurpClient
|
|
585
586
|
|
586
587
|
# Upload an attachment for sending using a Multipart Form request. Returns an array whose first element is the ID of the uploaded attachment.
|
587
588
|
# @param [Hash] opts the optional parameters
|
589
|
+
# @option opts [String] :content_id Optional content ID of attachment
|
588
590
|
# @option opts [String] :content_type Optional content type of attachment
|
589
591
|
# @option opts [String] :filename Optional name of file
|
590
592
|
# @option opts [String] :x_filename Optional content type header of attachment
|
@@ -597,6 +599,7 @@ module MailSlurpClient
|
|
597
599
|
|
598
600
|
# Upload an attachment for sending using a Multipart Form request. Returns an array whose first element is the ID of the uploaded attachment.
|
599
601
|
# @param [Hash] opts the optional parameters
|
602
|
+
# @option opts [String] :content_id Optional content ID of attachment
|
600
603
|
# @option opts [String] :content_type Optional content type of attachment
|
601
604
|
# @option opts [String] :filename Optional name of file
|
602
605
|
# @option opts [String] :x_filename Optional content type header of attachment
|
@@ -611,6 +614,7 @@ module MailSlurpClient
|
|
611
614
|
|
612
615
|
# query parameters
|
613
616
|
query_params = opts[:query_params] || {}
|
617
|
+
query_params[:'contentId'] = opts[:'content_id'] if !opts[:'content_id'].nil?
|
614
618
|
query_params[:'contentType'] = opts[:'content_type'] if !opts[:'content_type'].nil?
|
615
619
|
query_params[:'filename'] = opts[:'filename'] if !opts[:'filename'].nil?
|
616
620
|
query_params[:'x-filename'] = opts[:'x_filename'] if !opts[:'x_filename'].nil?
|
@@ -83,6 +83,62 @@ module MailSlurpClient
|
|
83
83
|
return data, status_code, headers
|
84
84
|
end
|
85
85
|
|
86
|
+
# Can account send email
|
87
|
+
# Check if account block status prevents sending
|
88
|
+
# @param [Hash] opts the optional parameters
|
89
|
+
# @return [AccountBounceBlockDto]
|
90
|
+
def get_account_bounce_block_status(opts = {})
|
91
|
+
data, _status_code, _headers = get_account_bounce_block_status_with_http_info(opts)
|
92
|
+
data
|
93
|
+
end
|
94
|
+
|
95
|
+
# Can account send email
|
96
|
+
# Check if account block status prevents sending
|
97
|
+
# @param [Hash] opts the optional parameters
|
98
|
+
# @return [Array<(AccountBounceBlockDto, Integer, Hash)>] AccountBounceBlockDto data, response status code and response headers
|
99
|
+
def get_account_bounce_block_status_with_http_info(opts = {})
|
100
|
+
if @api_client.config.debugging
|
101
|
+
@api_client.config.logger.debug 'Calling API: BounceControllerApi.get_account_bounce_block_status ...'
|
102
|
+
end
|
103
|
+
# resource path
|
104
|
+
local_var_path = '/bounce/account-block'
|
105
|
+
|
106
|
+
# query parameters
|
107
|
+
query_params = opts[:query_params] || {}
|
108
|
+
|
109
|
+
# header parameters
|
110
|
+
header_params = opts[:header_params] || {}
|
111
|
+
# HTTP header 'Accept' (if needed)
|
112
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
113
|
+
|
114
|
+
# form parameters
|
115
|
+
form_params = opts[:form_params] || {}
|
116
|
+
|
117
|
+
# http body (model)
|
118
|
+
post_body = opts[:body]
|
119
|
+
|
120
|
+
# return_type
|
121
|
+
return_type = opts[:return_type] || 'AccountBounceBlockDto'
|
122
|
+
|
123
|
+
# auth_names
|
124
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
125
|
+
|
126
|
+
new_options = opts.merge(
|
127
|
+
:header_params => header_params,
|
128
|
+
:query_params => query_params,
|
129
|
+
:form_params => form_params,
|
130
|
+
:body => post_body,
|
131
|
+
:auth_names => auth_names,
|
132
|
+
:return_type => return_type
|
133
|
+
)
|
134
|
+
|
135
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
136
|
+
if @api_client.config.debugging
|
137
|
+
@api_client.config.logger.debug "API called: BounceControllerApi#get_account_bounce_block_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
138
|
+
end
|
139
|
+
return data, status_code, headers
|
140
|
+
end
|
141
|
+
|
86
142
|
# Get a bounced email.
|
87
143
|
# Bounced emails are email you have sent that were rejected by a recipient
|
88
144
|
# @param id [String] ID of the bounced email to fetch
|
@@ -365,6 +421,68 @@ module MailSlurpClient
|
|
365
421
|
return data, status_code, headers
|
366
422
|
end
|
367
423
|
|
424
|
+
# Get complaint
|
425
|
+
# Get complaint
|
426
|
+
# @param id [String] ID of the complaint
|
427
|
+
# @param [Hash] opts the optional parameters
|
428
|
+
# @return [Complaint]
|
429
|
+
def get_complaint(id, opts = {})
|
430
|
+
data, _status_code, _headers = get_complaint_with_http_info(id, opts)
|
431
|
+
data
|
432
|
+
end
|
433
|
+
|
434
|
+
# Get complaint
|
435
|
+
# Get complaint
|
436
|
+
# @param id [String] ID of the complaint
|
437
|
+
# @param [Hash] opts the optional parameters
|
438
|
+
# @return [Array<(Complaint, Integer, Hash)>] Complaint data, response status code and response headers
|
439
|
+
def get_complaint_with_http_info(id, opts = {})
|
440
|
+
if @api_client.config.debugging
|
441
|
+
@api_client.config.logger.debug 'Calling API: BounceControllerApi.get_complaint ...'
|
442
|
+
end
|
443
|
+
# verify the required parameter 'id' is set
|
444
|
+
if @api_client.config.client_side_validation && id.nil?
|
445
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling BounceControllerApi.get_complaint"
|
446
|
+
end
|
447
|
+
# resource path
|
448
|
+
local_var_path = '/bounce/complaints/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
449
|
+
|
450
|
+
# query parameters
|
451
|
+
query_params = opts[:query_params] || {}
|
452
|
+
|
453
|
+
# header parameters
|
454
|
+
header_params = opts[:header_params] || {}
|
455
|
+
# HTTP header 'Accept' (if needed)
|
456
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
457
|
+
|
458
|
+
# form parameters
|
459
|
+
form_params = opts[:form_params] || {}
|
460
|
+
|
461
|
+
# http body (model)
|
462
|
+
post_body = opts[:body]
|
463
|
+
|
464
|
+
# return_type
|
465
|
+
return_type = opts[:return_type] || 'Complaint'
|
466
|
+
|
467
|
+
# auth_names
|
468
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
469
|
+
|
470
|
+
new_options = opts.merge(
|
471
|
+
:header_params => header_params,
|
472
|
+
:query_params => query_params,
|
473
|
+
:form_params => form_params,
|
474
|
+
:body => post_body,
|
475
|
+
:auth_names => auth_names,
|
476
|
+
:return_type => return_type
|
477
|
+
)
|
478
|
+
|
479
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
480
|
+
if @api_client.config.debugging
|
481
|
+
@api_client.config.logger.debug "API called: BounceControllerApi#get_complaint\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
482
|
+
end
|
483
|
+
return data, status_code, headers
|
484
|
+
end
|
485
|
+
|
368
486
|
# Get paginated list of complaints.
|
369
487
|
# SMTP complaints made against your account
|
370
488
|
# @param [Hash] opts the optional parameters
|
@@ -36,6 +36,7 @@ module MailSlurpClient
|
|
36
36
|
# @option opts [Boolean] :use_short_address
|
37
37
|
# @option opts [String] :domain_name
|
38
38
|
# @option opts [String] :domain_id
|
39
|
+
# @option opts [String] :prefix
|
39
40
|
# @return [InboxDto]
|
40
41
|
def create_new_email_address(opts = {})
|
41
42
|
data, _status_code, _headers = create_new_email_address_with_http_info(opts)
|
@@ -59,6 +60,7 @@ module MailSlurpClient
|
|
59
60
|
# @option opts [Boolean] :use_short_address
|
60
61
|
# @option opts [String] :domain_name
|
61
62
|
# @option opts [String] :domain_id
|
63
|
+
# @option opts [String] :prefix
|
62
64
|
# @return [Array<(InboxDto, Integer, Hash)>] InboxDto data, response status code and response headers
|
63
65
|
def create_new_email_address_with_http_info(opts = {})
|
64
66
|
if @api_client.config.debugging
|
@@ -87,6 +89,7 @@ module MailSlurpClient
|
|
87
89
|
query_params[:'useShortAddress'] = opts[:'use_short_address'] if !opts[:'use_short_address'].nil?
|
88
90
|
query_params[:'domainName'] = opts[:'domain_name'] if !opts[:'domain_name'].nil?
|
89
91
|
query_params[:'domainId'] = opts[:'domain_id'] if !opts[:'domain_id'].nil?
|
92
|
+
query_params[:'prefix'] = opts[:'prefix'] if !opts[:'prefix'].nil?
|
90
93
|
|
91
94
|
# header parameters
|
92
95
|
header_params = opts[:header_params] || {}
|
@@ -138,6 +141,7 @@ module MailSlurpClient
|
|
138
141
|
# @option opts [Boolean] :use_short_address
|
139
142
|
# @option opts [String] :domain_name
|
140
143
|
# @option opts [String] :domain_id
|
144
|
+
# @option opts [String] :prefix
|
141
145
|
# @return [InboxDto]
|
142
146
|
def create_random_inbox(opts = {})
|
143
147
|
data, _status_code, _headers = create_random_inbox_with_http_info(opts)
|
@@ -161,6 +165,7 @@ module MailSlurpClient
|
|
161
165
|
# @option opts [Boolean] :use_short_address
|
162
166
|
# @option opts [String] :domain_name
|
163
167
|
# @option opts [String] :domain_id
|
168
|
+
# @option opts [String] :prefix
|
164
169
|
# @return [Array<(InboxDto, Integer, Hash)>] InboxDto data, response status code and response headers
|
165
170
|
def create_random_inbox_with_http_info(opts = {})
|
166
171
|
if @api_client.config.debugging
|
@@ -189,6 +194,7 @@ module MailSlurpClient
|
|
189
194
|
query_params[:'useShortAddress'] = opts[:'use_short_address'] if !opts[:'use_short_address'].nil?
|
190
195
|
query_params[:'domainName'] = opts[:'domain_name'] if !opts[:'domain_name'].nil?
|
191
196
|
query_params[:'domainId'] = opts[:'domain_id'] if !opts[:'domain_id'].nil?
|
197
|
+
query_params[:'prefix'] = opts[:'prefix'] if !opts[:'prefix'].nil?
|
192
198
|
|
193
199
|
# header parameters
|
194
200
|
header_params = opts[:header_params] || {}
|
@@ -345,6 +351,76 @@ module MailSlurpClient
|
|
345
351
|
return data, status_code, headers
|
346
352
|
end
|
347
353
|
|
354
|
+
# Send an email using query parameters
|
355
|
+
# If no senderId or inboxId provided a random email address will be used to send from. Ensure your parameters are URL encoded.
|
356
|
+
# @param to [String] Email address to send to
|
357
|
+
# @param [Hash] opts the optional parameters
|
358
|
+
# @option opts [String] :sender_id ID of inbox to send from. If null an inbox will be created for sending
|
359
|
+
# @option opts [String] :body Body of the email message. Supports HTML
|
360
|
+
# @option opts [String] :subject Subject line of the email
|
361
|
+
# @return [nil]
|
362
|
+
def send_email_query(to, opts = {})
|
363
|
+
send_email_query_with_http_info(to, opts)
|
364
|
+
nil
|
365
|
+
end
|
366
|
+
|
367
|
+
# Send an email using query parameters
|
368
|
+
# If no senderId or inboxId provided a random email address will be used to send from. Ensure your parameters are URL encoded.
|
369
|
+
# @param to [String] Email address to send to
|
370
|
+
# @param [Hash] opts the optional parameters
|
371
|
+
# @option opts [String] :sender_id ID of inbox to send from. If null an inbox will be created for sending
|
372
|
+
# @option opts [String] :body Body of the email message. Supports HTML
|
373
|
+
# @option opts [String] :subject Subject line of the email
|
374
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
375
|
+
def send_email_query_with_http_info(to, opts = {})
|
376
|
+
if @api_client.config.debugging
|
377
|
+
@api_client.config.logger.debug 'Calling API: CommonActionsControllerApi.send_email_query ...'
|
378
|
+
end
|
379
|
+
# verify the required parameter 'to' is set
|
380
|
+
if @api_client.config.client_side_validation && to.nil?
|
381
|
+
fail ArgumentError, "Missing the required parameter 'to' when calling CommonActionsControllerApi.send_email_query"
|
382
|
+
end
|
383
|
+
# resource path
|
384
|
+
local_var_path = '/sendEmailQuery'
|
385
|
+
|
386
|
+
# query parameters
|
387
|
+
query_params = opts[:query_params] || {}
|
388
|
+
query_params[:'to'] = to
|
389
|
+
query_params[:'senderId'] = opts[:'sender_id'] if !opts[:'sender_id'].nil?
|
390
|
+
query_params[:'body'] = opts[:'body'] if !opts[:'body'].nil?
|
391
|
+
query_params[:'subject'] = opts[:'subject'] if !opts[:'subject'].nil?
|
392
|
+
|
393
|
+
# header parameters
|
394
|
+
header_params = opts[:header_params] || {}
|
395
|
+
|
396
|
+
# form parameters
|
397
|
+
form_params = opts[:form_params] || {}
|
398
|
+
|
399
|
+
# http body (model)
|
400
|
+
post_body = opts[:body]
|
401
|
+
|
402
|
+
# return_type
|
403
|
+
return_type = opts[:return_type]
|
404
|
+
|
405
|
+
# auth_names
|
406
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
407
|
+
|
408
|
+
new_options = opts.merge(
|
409
|
+
:header_params => header_params,
|
410
|
+
:query_params => query_params,
|
411
|
+
:form_params => form_params,
|
412
|
+
:body => post_body,
|
413
|
+
:auth_names => auth_names,
|
414
|
+
:return_type => return_type
|
415
|
+
)
|
416
|
+
|
417
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
418
|
+
if @api_client.config.debugging
|
419
|
+
@api_client.config.logger.debug "API called: CommonActionsControllerApi#send_email_query\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
420
|
+
end
|
421
|
+
return data, status_code, headers
|
422
|
+
end
|
423
|
+
|
348
424
|
# Send an email
|
349
425
|
# If no senderId or inboxId provided a random email address will be used to send from.
|
350
426
|
# @param simple_send_email_options [SimpleSendEmailOptions]
|
@@ -83,6 +83,58 @@ module MailSlurpClient
|
|
83
83
|
return data, status_code, headers
|
84
84
|
end
|
85
85
|
|
86
|
+
# Delete all inbox connectors
|
87
|
+
# @param [Hash] opts the optional parameters
|
88
|
+
# @return [nil]
|
89
|
+
def delete_all_connector(opts = {})
|
90
|
+
delete_all_connector_with_http_info(opts)
|
91
|
+
nil
|
92
|
+
end
|
93
|
+
|
94
|
+
# Delete all inbox connectors
|
95
|
+
# @param [Hash] opts the optional parameters
|
96
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
97
|
+
def delete_all_connector_with_http_info(opts = {})
|
98
|
+
if @api_client.config.debugging
|
99
|
+
@api_client.config.logger.debug 'Calling API: ConnectorControllerApi.delete_all_connector ...'
|
100
|
+
end
|
101
|
+
# resource path
|
102
|
+
local_var_path = '/connectors'
|
103
|
+
|
104
|
+
# query parameters
|
105
|
+
query_params = opts[:query_params] || {}
|
106
|
+
|
107
|
+
# header parameters
|
108
|
+
header_params = opts[:header_params] || {}
|
109
|
+
|
110
|
+
# form parameters
|
111
|
+
form_params = opts[:form_params] || {}
|
112
|
+
|
113
|
+
# http body (model)
|
114
|
+
post_body = opts[:body]
|
115
|
+
|
116
|
+
# return_type
|
117
|
+
return_type = opts[:return_type]
|
118
|
+
|
119
|
+
# auth_names
|
120
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
121
|
+
|
122
|
+
new_options = opts.merge(
|
123
|
+
:header_params => header_params,
|
124
|
+
:query_params => query_params,
|
125
|
+
:form_params => form_params,
|
126
|
+
:body => post_body,
|
127
|
+
:auth_names => auth_names,
|
128
|
+
:return_type => return_type
|
129
|
+
)
|
130
|
+
|
131
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
132
|
+
if @api_client.config.debugging
|
133
|
+
@api_client.config.logger.debug "API called: ConnectorControllerApi#delete_all_connector\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
134
|
+
end
|
135
|
+
return data, status_code, headers
|
136
|
+
end
|
137
|
+
|
86
138
|
# Delete an inbox connector
|
87
139
|
# @param id [String]
|
88
140
|
# @param [Hash] opts the optional parameters
|
@@ -146,6 +146,7 @@ module MailSlurpClient
|
|
146
146
|
# @option opts [String] :sort Optional createdAt sort direction ASC or DESC (default to 'ASC')
|
147
147
|
# @option opts [DateTime] :since Filter by created at after the given timestamp
|
148
148
|
# @option opts [DateTime] :before Filter by created at before the given timestamp
|
149
|
+
# @option opts [String] :search Search terms
|
149
150
|
# @return [PageContactProjection]
|
150
151
|
def get_all_contacts(opts = {})
|
151
152
|
data, _status_code, _headers = get_all_contacts_with_http_info(opts)
|
@@ -159,6 +160,7 @@ module MailSlurpClient
|
|
159
160
|
# @option opts [String] :sort Optional createdAt sort direction ASC or DESC
|
160
161
|
# @option opts [DateTime] :since Filter by created at after the given timestamp
|
161
162
|
# @option opts [DateTime] :before Filter by created at before the given timestamp
|
163
|
+
# @option opts [String] :search Search terms
|
162
164
|
# @return [Array<(PageContactProjection, Integer, Hash)>] PageContactProjection data, response status code and response headers
|
163
165
|
def get_all_contacts_with_http_info(opts = {})
|
164
166
|
if @api_client.config.debugging
|
@@ -178,6 +180,7 @@ module MailSlurpClient
|
|
178
180
|
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
179
181
|
query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
|
180
182
|
query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
|
183
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
181
184
|
|
182
185
|
# header parameters
|
183
186
|
header_params = opts[:header_params] || {}
|
@@ -275,16 +278,16 @@ module MailSlurpClient
|
|
275
278
|
# Get contact vCard vcf file
|
276
279
|
# @param contact_id [String]
|
277
280
|
# @param [Hash] opts the optional parameters
|
278
|
-
# @return [
|
281
|
+
# @return [nil]
|
279
282
|
def get_contact_v_card(contact_id, opts = {})
|
280
|
-
|
281
|
-
|
283
|
+
get_contact_v_card_with_http_info(contact_id, opts)
|
284
|
+
nil
|
282
285
|
end
|
283
286
|
|
284
287
|
# Get contact vCard vcf file
|
285
288
|
# @param contact_id [String]
|
286
289
|
# @param [Hash] opts the optional parameters
|
287
|
-
# @return [Array<(
|
290
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
288
291
|
def get_contact_v_card_with_http_info(contact_id, opts = {})
|
289
292
|
if @api_client.config.debugging
|
290
293
|
@api_client.config.logger.debug 'Calling API: ContactControllerApi.get_contact_v_card ...'
|
@@ -301,8 +304,6 @@ module MailSlurpClient
|
|
301
304
|
|
302
305
|
# header parameters
|
303
306
|
header_params = opts[:header_params] || {}
|
304
|
-
# HTTP header 'Accept' (if needed)
|
305
|
-
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
306
307
|
|
307
308
|
# form parameters
|
308
309
|
form_params = opts[:form_params] || {}
|
@@ -311,7 +312,7 @@ module MailSlurpClient
|
|
311
312
|
post_body = opts[:body]
|
312
313
|
|
313
314
|
# return_type
|
314
|
-
return_type = opts[:return_type]
|
315
|
+
return_type = opts[:return_type]
|
315
316
|
|
316
317
|
# auth_names
|
317
318
|
auth_names = opts[:auth_names] || ['API_KEY']
|