mailslurp_client 15.17.17 → 15.17.21

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/inbox_controller_api.rb +183 -0
  3. data/lib/mailslurp_client/api/sms_controller_api.rb +132 -0
  4. data/lib/mailslurp_client/api/tools_controller_api.rb +518 -0
  5. data/lib/mailslurp_client/models/alias_projection.rb +15 -15
  6. data/lib/mailslurp_client/models/attachment_projection.rb +16 -16
  7. data/lib/mailslurp_client/models/bounce_projection.rb +10 -10
  8. data/lib/mailslurp_client/models/connector_projection.rb +15 -15
  9. data/lib/mailslurp_client/models/generate_bimi_record_options.rb +282 -0
  10. data/lib/mailslurp_client/models/generate_bimi_record_results.rb +288 -0
  11. data/lib/mailslurp_client/models/generate_dmarc_record_options.rb +454 -0
  12. data/lib/mailslurp_client/models/generate_dmarc_record_results.rb +288 -0
  13. data/lib/mailslurp_client/models/generate_mta_sts_record_options.rb +329 -0
  14. data/lib/mailslurp_client/models/generate_mta_sts_record_results.rb +316 -0
  15. data/lib/mailslurp_client/models/generate_tls_reporting_record_options.rb +298 -0
  16. data/lib/mailslurp_client/models/generate_tls_reporting_record_results.rb +288 -0
  17. data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +11 -11
  18. data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +11 -11
  19. data/lib/mailslurp_client/models/lookup_bimi_domain_options.rb +211 -0
  20. data/lib/mailslurp_client/models/lookup_bimi_domain_results.rb +273 -0
  21. data/lib/mailslurp_client/models/lookup_dmarc_domain_options.rb +211 -0
  22. data/lib/mailslurp_client/models/lookup_dmarc_domain_results.rb +273 -0
  23. data/lib/mailslurp_client/models/lookup_mta_sts_domain_options.rb +211 -0
  24. data/lib/mailslurp_client/models/lookup_mta_sts_domain_results.rb +315 -0
  25. data/lib/mailslurp_client/models/lookup_tls_reporting_domain_options.rb +211 -0
  26. data/lib/mailslurp_client/models/lookup_tls_reporting_domain_results.rb +273 -0
  27. data/lib/mailslurp_client/models/reply_for_sms.rb +206 -0
  28. data/lib/mailslurp_client/models/sent_email_projection.rb +15 -15
  29. data/lib/mailslurp_client/models/sent_sms_dto.rb +351 -0
  30. data/lib/mailslurp_client/models/sms_reply_options.rb +211 -0
  31. data/lib/mailslurp_client/models/thread_projection.rb +16 -16
  32. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +10 -10
  33. data/lib/mailslurp_client/version.rb +1 -1
  34. data/lib/mailslurp_client.rb +20 -0
  35. metadata +22 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1f7c02e122534c45b25f337f2b127fe158541ae6d2b8536614658441aa57f7c2
4
- data.tar.gz: a22fcb8a6c74e1bed135b460727a2537282adad939910caf796610f383e872a6
3
+ metadata.gz: 9108467023bfbc9f93fa20c6069d9740c8373542604544743b9cfd9750132dfa
4
+ data.tar.gz: 350336c51e16c34b17cbb489610e409f3c8894bbf04aa0ecef8ed78393c12ac4
5
5
  SHA512:
6
- metadata.gz: 789695e1d21f323ce924a49c74ee56b881ff761c3d69cd8bb569af7bf4d4878a85b18cf7aa46b0962dd269cee2f68bd17302e8397ecfc529ededd9d375464d22
7
- data.tar.gz: db0e14a530b052da55076f9be3c28b5cd9cf795c6ac02369dd324b370541354c6f7ec67db856167c0d6aafdefc83fd33523b23c841bdd33dd7fbe68610c0cf06
6
+ metadata.gz: c35ddfcf9d70a7956e1cc568480bbb8422cef223670f5d1165e1fe23d9747fc74e1b5d1d88aab9ab21adc601bea7ffaff7305d957bc40f9f4301f656fe5cdfad
7
+ data.tar.gz: 5840547156e8d0364243cf1fd4da116bee6f2217aa9eaa6db947a3b7818d1dddaba5347e3245c0c3e43d6cb45363f11341ac25181acceae5bde2f78ac4939f96
@@ -485,6 +485,189 @@ module MailSlurpClient
485
485
  return data, status_code, headers
486
486
  end
487
487
 
488
+ # Delete inboxes by description
489
+ # Permanently delete all inboxes by description
490
+ # @param description [String]
491
+ # @param [Hash] opts the optional parameters
492
+ # @return [nil]
493
+ def delete_all_inboxes_by_description(description, opts = {})
494
+ delete_all_inboxes_by_description_with_http_info(description, opts)
495
+ nil
496
+ end
497
+
498
+ # Delete inboxes by description
499
+ # Permanently delete all inboxes by description
500
+ # @param description [String]
501
+ # @param [Hash] opts the optional parameters
502
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
503
+ def delete_all_inboxes_by_description_with_http_info(description, opts = {})
504
+ if @api_client.config.debugging
505
+ @api_client.config.logger.debug 'Calling API: InboxControllerApi.delete_all_inboxes_by_description ...'
506
+ end
507
+ # verify the required parameter 'description' is set
508
+ if @api_client.config.client_side_validation && description.nil?
509
+ fail ArgumentError, "Missing the required parameter 'description' when calling InboxControllerApi.delete_all_inboxes_by_description"
510
+ end
511
+ # resource path
512
+ local_var_path = '/inboxes/by-description'
513
+
514
+ # query parameters
515
+ query_params = opts[:query_params] || {}
516
+ query_params[:'description'] = description
517
+
518
+ # header parameters
519
+ header_params = opts[:header_params] || {}
520
+
521
+ # form parameters
522
+ form_params = opts[:form_params] || {}
523
+
524
+ # http body (model)
525
+ post_body = opts[:body]
526
+
527
+ # return_type
528
+ return_type = opts[:return_type]
529
+
530
+ # auth_names
531
+ auth_names = opts[:auth_names] || ['API_KEY']
532
+
533
+ new_options = opts.merge(
534
+ :header_params => header_params,
535
+ :query_params => query_params,
536
+ :form_params => form_params,
537
+ :body => post_body,
538
+ :auth_names => auth_names,
539
+ :return_type => return_type
540
+ )
541
+
542
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
543
+ if @api_client.config.debugging
544
+ @api_client.config.logger.debug "API called: InboxControllerApi#delete_all_inboxes_by_description\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
545
+ end
546
+ return data, status_code, headers
547
+ end
548
+
549
+ # Delete inboxes by name
550
+ # Permanently delete all inboxes by name
551
+ # @param name [String]
552
+ # @param [Hash] opts the optional parameters
553
+ # @return [nil]
554
+ def delete_all_inboxes_by_name(name, opts = {})
555
+ delete_all_inboxes_by_name_with_http_info(name, opts)
556
+ nil
557
+ end
558
+
559
+ # Delete inboxes by name
560
+ # Permanently delete all inboxes by name
561
+ # @param name [String]
562
+ # @param [Hash] opts the optional parameters
563
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
564
+ def delete_all_inboxes_by_name_with_http_info(name, opts = {})
565
+ if @api_client.config.debugging
566
+ @api_client.config.logger.debug 'Calling API: InboxControllerApi.delete_all_inboxes_by_name ...'
567
+ end
568
+ # verify the required parameter 'name' is set
569
+ if @api_client.config.client_side_validation && name.nil?
570
+ fail ArgumentError, "Missing the required parameter 'name' when calling InboxControllerApi.delete_all_inboxes_by_name"
571
+ end
572
+ # resource path
573
+ local_var_path = '/inboxes/by-name'
574
+
575
+ # query parameters
576
+ query_params = opts[:query_params] || {}
577
+ query_params[:'name'] = name
578
+
579
+ # header parameters
580
+ header_params = opts[:header_params] || {}
581
+
582
+ # form parameters
583
+ form_params = opts[:form_params] || {}
584
+
585
+ # http body (model)
586
+ post_body = opts[:body]
587
+
588
+ # return_type
589
+ return_type = opts[:return_type]
590
+
591
+ # auth_names
592
+ auth_names = opts[:auth_names] || ['API_KEY']
593
+
594
+ new_options = opts.merge(
595
+ :header_params => header_params,
596
+ :query_params => query_params,
597
+ :form_params => form_params,
598
+ :body => post_body,
599
+ :auth_names => auth_names,
600
+ :return_type => return_type
601
+ )
602
+
603
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
604
+ if @api_client.config.debugging
605
+ @api_client.config.logger.debug "API called: InboxControllerApi#delete_all_inboxes_by_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
606
+ end
607
+ return data, status_code, headers
608
+ end
609
+
610
+ # Delete inboxes by tag
611
+ # Permanently delete all inboxes by tag
612
+ # @param tag [String]
613
+ # @param [Hash] opts the optional parameters
614
+ # @return [nil]
615
+ def delete_all_inboxes_by_tag(tag, opts = {})
616
+ delete_all_inboxes_by_tag_with_http_info(tag, opts)
617
+ nil
618
+ end
619
+
620
+ # Delete inboxes by tag
621
+ # Permanently delete all inboxes by tag
622
+ # @param tag [String]
623
+ # @param [Hash] opts the optional parameters
624
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
625
+ def delete_all_inboxes_by_tag_with_http_info(tag, opts = {})
626
+ if @api_client.config.debugging
627
+ @api_client.config.logger.debug 'Calling API: InboxControllerApi.delete_all_inboxes_by_tag ...'
628
+ end
629
+ # verify the required parameter 'tag' is set
630
+ if @api_client.config.client_side_validation && tag.nil?
631
+ fail ArgumentError, "Missing the required parameter 'tag' when calling InboxControllerApi.delete_all_inboxes_by_tag"
632
+ end
633
+ # resource path
634
+ local_var_path = '/inboxes/by-tag'
635
+
636
+ # query parameters
637
+ query_params = opts[:query_params] || {}
638
+ query_params[:'tag'] = tag
639
+
640
+ # header parameters
641
+ header_params = opts[:header_params] || {}
642
+
643
+ # form parameters
644
+ form_params = opts[:form_params] || {}
645
+
646
+ # http body (model)
647
+ post_body = opts[:body]
648
+
649
+ # return_type
650
+ return_type = opts[:return_type]
651
+
652
+ # auth_names
653
+ auth_names = opts[:auth_names] || ['API_KEY']
654
+
655
+ new_options = opts.merge(
656
+ :header_params => header_params,
657
+ :query_params => query_params,
658
+ :form_params => form_params,
659
+ :body => post_body,
660
+ :auth_names => auth_names,
661
+ :return_type => return_type
662
+ )
663
+
664
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
665
+ if @api_client.config.debugging
666
+ @api_client.config.logger.debug "API called: InboxControllerApi#delete_all_inboxes_by_tag\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
667
+ end
668
+ return data, status_code, headers
669
+ end
670
+
488
671
  # Delete inbox
489
672
  # Permanently delete an inbox and associated email address as well as all emails within the given inbox. This action cannot be undone. Note: deleting an inbox will not affect your account usage. Monthly inbox usage is based on how many inboxes you create within 30 days, not how many exist at time of request.
490
673
  # @param inbox_id [String]
@@ -136,6 +136,68 @@ module MailSlurpClient
136
136
  return data, status_code, headers
137
137
  end
138
138
 
139
+ # Get reply for an SMS message
140
+ # Get reply for an SMS message.
141
+ # @param sms_id [String]
142
+ # @param [Hash] opts the optional parameters
143
+ # @return [ReplyForSms]
144
+ def get_reply_for_sms_message(sms_id, opts = {})
145
+ data, _status_code, _headers = get_reply_for_sms_message_with_http_info(sms_id, opts)
146
+ data
147
+ end
148
+
149
+ # Get reply for an SMS message
150
+ # Get reply for an SMS message.
151
+ # @param sms_id [String]
152
+ # @param [Hash] opts the optional parameters
153
+ # @return [Array<(ReplyForSms, Integer, Hash)>] ReplyForSms data, response status code and response headers
154
+ def get_reply_for_sms_message_with_http_info(sms_id, opts = {})
155
+ if @api_client.config.debugging
156
+ @api_client.config.logger.debug 'Calling API: SmsControllerApi.get_reply_for_sms_message ...'
157
+ end
158
+ # verify the required parameter 'sms_id' is set
159
+ if @api_client.config.client_side_validation && sms_id.nil?
160
+ fail ArgumentError, "Missing the required parameter 'sms_id' when calling SmsControllerApi.get_reply_for_sms_message"
161
+ end
162
+ # resource path
163
+ local_var_path = '/sms/{smsId}/reply'.sub('{' + 'smsId' + '}', CGI.escape(sms_id.to_s))
164
+
165
+ # query parameters
166
+ query_params = opts[:query_params] || {}
167
+
168
+ # header parameters
169
+ header_params = opts[:header_params] || {}
170
+ # HTTP header 'Accept' (if needed)
171
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
172
+
173
+ # form parameters
174
+ form_params = opts[:form_params] || {}
175
+
176
+ # http body (model)
177
+ post_body = opts[:body]
178
+
179
+ # return_type
180
+ return_type = opts[:return_type] || 'ReplyForSms'
181
+
182
+ # auth_names
183
+ auth_names = opts[:auth_names] || ['API_KEY']
184
+
185
+ new_options = opts.merge(
186
+ :header_params => header_params,
187
+ :query_params => query_params,
188
+ :form_params => form_params,
189
+ :body => post_body,
190
+ :auth_names => auth_names,
191
+ :return_type => return_type
192
+ )
193
+
194
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
195
+ if @api_client.config.debugging
196
+ @api_client.config.logger.debug "API called: SmsControllerApi#get_reply_for_sms_message\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
197
+ end
198
+ return data, status_code, headers
199
+ end
200
+
139
201
  # Get SMS content including body. Expects SMS to exist by ID. For SMS that may not have arrived yet use the WaitForController.
140
202
  # Returns a SMS summary object with content.
141
203
  # @param sms_id [String]
@@ -338,5 +400,75 @@ module MailSlurpClient
338
400
  end
339
401
  return data, status_code, headers
340
402
  end
403
+
404
+ # Send a reply to a received SMS message. Replies are sent from the receiving number.
405
+ # Reply to an SMS message.
406
+ # @param sms_id [String]
407
+ # @param sms_reply_options [SmsReplyOptions]
408
+ # @param [Hash] opts the optional parameters
409
+ # @return [SentSmsDto]
410
+ def reply_to_sms_message(sms_id, sms_reply_options, opts = {})
411
+ data, _status_code, _headers = reply_to_sms_message_with_http_info(sms_id, sms_reply_options, opts)
412
+ data
413
+ end
414
+
415
+ # Send a reply to a received SMS message. Replies are sent from the receiving number.
416
+ # Reply to an SMS message.
417
+ # @param sms_id [String]
418
+ # @param sms_reply_options [SmsReplyOptions]
419
+ # @param [Hash] opts the optional parameters
420
+ # @return [Array<(SentSmsDto, Integer, Hash)>] SentSmsDto data, response status code and response headers
421
+ def reply_to_sms_message_with_http_info(sms_id, sms_reply_options, opts = {})
422
+ if @api_client.config.debugging
423
+ @api_client.config.logger.debug 'Calling API: SmsControllerApi.reply_to_sms_message ...'
424
+ end
425
+ # verify the required parameter 'sms_id' is set
426
+ if @api_client.config.client_side_validation && sms_id.nil?
427
+ fail ArgumentError, "Missing the required parameter 'sms_id' when calling SmsControllerApi.reply_to_sms_message"
428
+ end
429
+ # verify the required parameter 'sms_reply_options' is set
430
+ if @api_client.config.client_side_validation && sms_reply_options.nil?
431
+ fail ArgumentError, "Missing the required parameter 'sms_reply_options' when calling SmsControllerApi.reply_to_sms_message"
432
+ end
433
+ # resource path
434
+ local_var_path = '/sms/{smsId}/reply'.sub('{' + 'smsId' + '}', CGI.escape(sms_id.to_s))
435
+
436
+ # query parameters
437
+ query_params = opts[:query_params] || {}
438
+
439
+ # header parameters
440
+ header_params = opts[:header_params] || {}
441
+ # HTTP header 'Accept' (if needed)
442
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
443
+ # HTTP header 'Content-Type'
444
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
445
+
446
+ # form parameters
447
+ form_params = opts[:form_params] || {}
448
+
449
+ # http body (model)
450
+ post_body = opts[:body] || @api_client.object_to_http_body(sms_reply_options)
451
+
452
+ # return_type
453
+ return_type = opts[:return_type] || 'SentSmsDto'
454
+
455
+ # auth_names
456
+ auth_names = opts[:auth_names] || ['API_KEY']
457
+
458
+ new_options = opts.merge(
459
+ :header_params => header_params,
460
+ :query_params => query_params,
461
+ :form_params => form_params,
462
+ :body => post_body,
463
+ :auth_names => auth_names,
464
+ :return_type => return_type
465
+ )
466
+
467
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
468
+ if @api_client.config.debugging
469
+ @api_client.config.logger.debug "API called: SmsControllerApi#reply_to_sms_message\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
470
+ end
471
+ return data, status_code, headers
472
+ end
341
473
  end
342
474
  end