mailslurp_client 16.2.0 → 16.2.3
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/ai_controller_api.rb +193 -79
- data/lib/mailslurp_client/api/attachment_controller_api.rb +6 -3
- data/lib/mailslurp_client/api/email_controller_api.rb +3 -0
- data/lib/mailslurp_client/api/form_controller_api.rb +8 -9
- data/lib/mailslurp_client/api/inbox_controller_api.rb +28 -2
- data/lib/mailslurp_client/api/mfa_controller_api.rb +88 -13
- data/lib/mailslurp_client/api/sms_controller_api.rb +3 -0
- data/lib/mailslurp_client/api/webhook_controller_api.rb +63 -9
- data/lib/mailslurp_client/models/abstract_webhook_payload.rb +2 -2
- data/lib/mailslurp_client/models/{ai_tranform_create_options.rb → ai_transform_create_options.rb} +31 -7
- data/lib/mailslurp_client/models/ai_transform_dto.rb +1 -0
- data/lib/mailslurp_client/models/ai_transform_mapping_dto.rb +18 -9
- data/lib/mailslurp_client/models/ai_transform_mapping_projection.rb +15 -6
- data/lib/mailslurp_client/models/ai_transform_projection.rb +16 -1
- data/lib/mailslurp_client/models/ai_transform_result_dto.rb +5 -1
- data/lib/mailslurp_client/models/{ai_transform_result_projection.rb → ai_transform_result_projection_dto.rb} +56 -53
- data/lib/mailslurp_client/models/alias_thread_projection.rb +11 -11
- data/lib/mailslurp_client/models/bounce_projection.rb +11 -11
- data/lib/mailslurp_client/models/conditional_structured_content_result.rb +221 -0
- data/lib/mailslurp_client/models/create_ai_transformer_mapping_options.rb +5 -10
- data/lib/mailslurp_client/models/create_domain_options.rb +19 -0
- data/lib/mailslurp_client/models/create_inbox_forwarder_options.rb +19 -0
- data/lib/mailslurp_client/models/create_inbox_replier_options.rb +19 -0
- data/lib/mailslurp_client/models/create_inbox_ruleset_options.rb +2 -2
- data/lib/mailslurp_client/models/create_totp_device_base32_secret_key_options.rb +306 -0
- data/lib/mailslurp_client/models/create_totp_device_custom_options.rb +306 -0
- data/lib/mailslurp_client/models/create_totp_device_otp_auth_url_options.rb +35 -0
- data/lib/mailslurp_client/models/create_webhook_options.rb +2 -2
- data/lib/mailslurp_client/models/describe_domain_options.rb +19 -0
- data/lib/mailslurp_client/models/dns_lookup_options.rb +19 -0
- data/lib/mailslurp_client/models/email.rb +13 -13
- data/lib/mailslurp_client/models/email_projection.rb +18 -18
- data/lib/mailslurp_client/models/email_thread_projection.rb +17 -17
- data/lib/mailslurp_client/models/entity_automation_item_projection.rb +10 -10
- data/lib/mailslurp_client/models/expiration_defaults.rb +1 -0
- data/lib/mailslurp_client/models/fake_email_dto.rb +1 -0
- data/lib/mailslurp_client/models/generate_structured_content_attachment_options.rb +1 -0
- data/lib/mailslurp_client/models/generate_structured_content_email_options.rb +1 -0
- data/lib/mailslurp_client/models/generate_structured_content_sms_options.rb +1 -0
- data/lib/mailslurp_client/models/inbox_exists_dto.rb +26 -4
- data/lib/mailslurp_client/models/inbox_ruleset_dto.rb +2 -2
- data/lib/mailslurp_client/models/inline_object.rb +58 -12
- data/lib/mailslurp_client/models/inline_object1.rb +211 -0
- data/lib/mailslurp_client/models/invoke_transformer_options.rb +329 -0
- data/lib/mailslurp_client/models/match_option.rb +19 -0
- data/lib/mailslurp_client/models/missed_email_dto.rb +1 -0
- data/lib/mailslurp_client/models/missed_email_projection.rb +11 -11
- data/lib/mailslurp_client/models/page_ai_transform_result_projection.rb +1 -1
- data/lib/mailslurp_client/models/pageable_object.rb +10 -10
- data/lib/mailslurp_client/models/phone_message_thread_item_projection.rb +19 -19
- data/lib/mailslurp_client/models/phone_message_thread_projection.rb +15 -25
- data/lib/mailslurp_client/models/sent_email_projection.rb +38 -53
- data/lib/mailslurp_client/models/sms_match_option.rb +19 -0
- data/lib/mailslurp_client/models/sms_preview.rb +4 -0
- data/lib/mailslurp_client/models/structured_output_schema.rb +12 -9
- data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +10 -10
- data/lib/mailslurp_client/models/update_inbox_replier_options.rb +19 -0
- data/lib/mailslurp_client/models/upload_attachment_options.rb +19 -0
- data/lib/mailslurp_client/models/webhook_bounce_payload.rb +2 -2
- data/lib/mailslurp_client/models/webhook_bounce_recipient_payload.rb +2 -2
- data/lib/mailslurp_client/models/webhook_delivery_status_payload.rb +2 -2
- data/lib/mailslurp_client/models/webhook_dto.rb +2 -2
- data/lib/mailslurp_client/models/webhook_email_opened_payload.rb +2 -2
- data/lib/mailslurp_client/models/webhook_email_read_payload.rb +2 -2
- data/lib/mailslurp_client/models/webhook_new_ai_transform_result_payload.rb +389 -0
- data/lib/mailslurp_client/models/webhook_new_attachment_payload.rb +2 -2
- data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +2 -2
- data/lib/mailslurp_client/models/webhook_new_email_payload.rb +2 -2
- data/lib/mailslurp_client/models/webhook_new_sms_payload.rb +2 -2
- data/lib/mailslurp_client/models/webhook_projection.rb +2 -2
- data/lib/mailslurp_client/models/webhook_result_dto.rb +2 -2
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +8 -2
- metadata +10 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5f03d46bd55d65109b126e4bfa087daf2e1e79f63dc470b909e56fc6737cb6a
|
4
|
+
data.tar.gz: '028bb2ea85cb6a13e93acf73843387459079565ebb82adfba275bb5da3dd4dc7'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 847f5e3373a9488828998012b1dce1dee182b5e5e6d3028fa9da0672a48a9cbda1a5fe7897777c6c411dba1579636372bbabdff7f161b96b96117e451ae414dc
|
7
|
+
data.tar.gz: ef5b96717de887587d2a87387b7c9483b6d30c5210c8700268c398d4b3ee9e37c777d274300f0b2341a782e048bde6cc1c8aa52fb685aa72e80f2dafda29beae
|
@@ -19,66 +19,50 @@ module MailSlurpClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
#
|
23
|
-
#
|
24
|
-
# @param
|
22
|
+
# Create a transformer for reuse in automations
|
23
|
+
# Save an AI transform instructions and schema for use with webhooks and automations
|
24
|
+
# @param ai_transform_create_options [AITransformCreateOptions]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
-
# @
|
27
|
-
|
28
|
-
|
29
|
-
# @return [PageAITransformProjection]
|
30
|
-
def create_transformer(options, opts = {})
|
31
|
-
data, _status_code, _headers = create_transformer_with_http_info(options, opts)
|
26
|
+
# @return [AITransformDto]
|
27
|
+
def create_transformer(ai_transform_create_options, opts = {})
|
28
|
+
data, _status_code, _headers = create_transformer_with_http_info(ai_transform_create_options, opts)
|
32
29
|
data
|
33
30
|
end
|
34
31
|
|
35
|
-
#
|
36
|
-
#
|
37
|
-
# @param
|
32
|
+
# Create a transformer for reuse in automations
|
33
|
+
# Save an AI transform instructions and schema for use with webhooks and automations
|
34
|
+
# @param ai_transform_create_options [AITransformCreateOptions]
|
38
35
|
# @param [Hash] opts the optional parameters
|
39
|
-
# @
|
40
|
-
|
41
|
-
# @option opts [String] :sort Optional createdAt sort direction ASC or DESC
|
42
|
-
# @return [Array<(PageAITransformProjection, Integer, Hash)>] PageAITransformProjection data, response status code and response headers
|
43
|
-
def create_transformer_with_http_info(options, opts = {})
|
36
|
+
# @return [Array<(AITransformDto, Integer, Hash)>] AITransformDto data, response status code and response headers
|
37
|
+
def create_transformer_with_http_info(ai_transform_create_options, opts = {})
|
44
38
|
if @api_client.config.debugging
|
45
39
|
@api_client.config.logger.debug 'Calling API: AIControllerApi.create_transformer ...'
|
46
40
|
end
|
47
|
-
# verify the required parameter '
|
48
|
-
if @api_client.config.client_side_validation &&
|
49
|
-
fail ArgumentError, "Missing the required parameter '
|
50
|
-
end
|
51
|
-
if @api_client.config.client_side_validation && !opts[:'size'].nil? && opts[:'size'] > 100
|
52
|
-
fail ArgumentError, 'invalid value for "opts[:"size"]" when calling AIControllerApi.create_transformer, must be smaller than or equal to 100.'
|
53
|
-
end
|
54
|
-
|
55
|
-
allowable_values = ["ASC", "DESC"]
|
56
|
-
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
|
57
|
-
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
41
|
+
# verify the required parameter 'ai_transform_create_options' is set
|
42
|
+
if @api_client.config.client_side_validation && ai_transform_create_options.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'ai_transform_create_options' when calling AIControllerApi.create_transformer"
|
58
44
|
end
|
59
45
|
# resource path
|
60
46
|
local_var_path = '/ai/transformer'
|
61
47
|
|
62
48
|
# query parameters
|
63
49
|
query_params = opts[:query_params] || {}
|
64
|
-
query_params[:'options'] = options
|
65
|
-
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
66
|
-
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
67
|
-
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
68
50
|
|
69
51
|
# header parameters
|
70
52
|
header_params = opts[:header_params] || {}
|
71
53
|
# HTTP header 'Accept' (if needed)
|
72
54
|
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
55
|
+
# HTTP header 'Content-Type'
|
56
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
73
57
|
|
74
58
|
# form parameters
|
75
59
|
form_params = opts[:form_params] || {}
|
76
60
|
|
77
61
|
# http body (model)
|
78
|
-
post_body = opts[:body]
|
62
|
+
post_body = opts[:body] || @api_client.object_to_http_body(ai_transform_create_options)
|
79
63
|
|
80
64
|
# return_type
|
81
|
-
return_type = opts[:return_type] || '
|
65
|
+
return_type = opts[:return_type] || 'AITransformDto'
|
82
66
|
|
83
67
|
# auth_names
|
84
68
|
auth_names = opts[:auth_names] || ['API_KEY']
|
@@ -92,38 +76,38 @@ module MailSlurpClient
|
|
92
76
|
:return_type => return_type
|
93
77
|
)
|
94
78
|
|
95
|
-
data, status_code, headers = @api_client.call_api(:
|
79
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
96
80
|
if @api_client.config.debugging
|
97
81
|
@api_client.config.logger.debug "API called: AIControllerApi#create_transformer\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
98
82
|
end
|
99
83
|
return data, status_code, headers
|
100
84
|
end
|
101
85
|
|
102
|
-
# Create
|
103
|
-
#
|
104
|
-
# @param
|
86
|
+
# Create transformer mapping
|
87
|
+
# Create AI transformer mappings to other entities
|
88
|
+
# @param create_ai_transformer_mapping_options [CreateAITransformerMappingOptions]
|
105
89
|
# @param [Hash] opts the optional parameters
|
106
|
-
# @return [
|
107
|
-
def
|
108
|
-
data, _status_code, _headers =
|
90
|
+
# @return [AITransformMappingDto]
|
91
|
+
def create_transformer_mappings(create_ai_transformer_mapping_options, opts = {})
|
92
|
+
data, _status_code, _headers = create_transformer_mappings_with_http_info(create_ai_transformer_mapping_options, opts)
|
109
93
|
data
|
110
94
|
end
|
111
95
|
|
112
|
-
# Create
|
113
|
-
#
|
114
|
-
# @param
|
96
|
+
# Create transformer mapping
|
97
|
+
# Create AI transformer mappings to other entities
|
98
|
+
# @param create_ai_transformer_mapping_options [CreateAITransformerMappingOptions]
|
115
99
|
# @param [Hash] opts the optional parameters
|
116
|
-
# @return [Array<(
|
117
|
-
def
|
100
|
+
# @return [Array<(AITransformMappingDto, Integer, Hash)>] AITransformMappingDto data, response status code and response headers
|
101
|
+
def create_transformer_mappings_with_http_info(create_ai_transformer_mapping_options, opts = {})
|
118
102
|
if @api_client.config.debugging
|
119
|
-
@api_client.config.logger.debug 'Calling API: AIControllerApi.
|
103
|
+
@api_client.config.logger.debug 'Calling API: AIControllerApi.create_transformer_mappings ...'
|
120
104
|
end
|
121
|
-
# verify the required parameter '
|
122
|
-
if @api_client.config.client_side_validation &&
|
123
|
-
fail ArgumentError, "Missing the required parameter '
|
105
|
+
# verify the required parameter 'create_ai_transformer_mapping_options' is set
|
106
|
+
if @api_client.config.client_side_validation && create_ai_transformer_mapping_options.nil?
|
107
|
+
fail ArgumentError, "Missing the required parameter 'create_ai_transformer_mapping_options' when calling AIControllerApi.create_transformer_mappings"
|
124
108
|
end
|
125
109
|
# resource path
|
126
|
-
local_var_path = '/ai/transformer'
|
110
|
+
local_var_path = '/ai/transformer/mappings'
|
127
111
|
|
128
112
|
# query parameters
|
129
113
|
query_params = opts[:query_params] || {}
|
@@ -139,10 +123,10 @@ module MailSlurpClient
|
|
139
123
|
form_params = opts[:form_params] || {}
|
140
124
|
|
141
125
|
# http body (model)
|
142
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
126
|
+
post_body = opts[:body] || @api_client.object_to_http_body(create_ai_transformer_mapping_options)
|
143
127
|
|
144
128
|
# return_type
|
145
|
-
return_type = opts[:return_type] || '
|
129
|
+
return_type = opts[:return_type] || 'AITransformMappingDto'
|
146
130
|
|
147
131
|
# auth_names
|
148
132
|
auth_names = opts[:auth_names] || ['API_KEY']
|
@@ -158,33 +142,27 @@ module MailSlurpClient
|
|
158
142
|
|
159
143
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
160
144
|
if @api_client.config.debugging
|
161
|
-
@api_client.config.logger.debug "API called: AIControllerApi#
|
145
|
+
@api_client.config.logger.debug "API called: AIControllerApi#create_transformer_mappings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
162
146
|
end
|
163
147
|
return data, status_code, headers
|
164
148
|
end
|
165
149
|
|
166
|
-
#
|
167
|
-
#
|
168
|
-
# @param create_ai_transformer_mapping_options [CreateAITransformerMappingOptions]
|
150
|
+
# Delete all transformer mapping
|
151
|
+
# Delete all AI transformer mappings
|
169
152
|
# @param [Hash] opts the optional parameters
|
170
|
-
# @return [
|
171
|
-
def
|
172
|
-
|
173
|
-
|
153
|
+
# @return [nil]
|
154
|
+
def delete_all_transformer_mappings(opts = {})
|
155
|
+
delete_all_transformer_mappings_with_http_info(opts)
|
156
|
+
nil
|
174
157
|
end
|
175
158
|
|
176
|
-
#
|
177
|
-
#
|
178
|
-
# @param create_ai_transformer_mapping_options [CreateAITransformerMappingOptions]
|
159
|
+
# Delete all transformer mapping
|
160
|
+
# Delete all AI transformer mappings
|
179
161
|
# @param [Hash] opts the optional parameters
|
180
|
-
# @return [Array<(
|
181
|
-
def
|
162
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
163
|
+
def delete_all_transformer_mappings_with_http_info(opts = {})
|
182
164
|
if @api_client.config.debugging
|
183
|
-
@api_client.config.logger.debug 'Calling API: AIControllerApi.
|
184
|
-
end
|
185
|
-
# verify the required parameter 'create_ai_transformer_mapping_options' is set
|
186
|
-
if @api_client.config.client_side_validation && create_ai_transformer_mapping_options.nil?
|
187
|
-
fail ArgumentError, "Missing the required parameter 'create_ai_transformer_mapping_options' when calling AIControllerApi.create_transformer_mappings"
|
165
|
+
@api_client.config.logger.debug 'Calling API: AIControllerApi.delete_all_transformer_mappings ...'
|
188
166
|
end
|
189
167
|
# resource path
|
190
168
|
local_var_path = '/ai/transformer/mappings'
|
@@ -194,19 +172,15 @@ module MailSlurpClient
|
|
194
172
|
|
195
173
|
# header parameters
|
196
174
|
header_params = opts[:header_params] || {}
|
197
|
-
# HTTP header 'Accept' (if needed)
|
198
|
-
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
199
|
-
# HTTP header 'Content-Type'
|
200
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
201
175
|
|
202
176
|
# form parameters
|
203
177
|
form_params = opts[:form_params] || {}
|
204
178
|
|
205
179
|
# http body (model)
|
206
|
-
post_body = opts[:body]
|
180
|
+
post_body = opts[:body]
|
207
181
|
|
208
182
|
# return_type
|
209
|
-
return_type = opts[:return_type]
|
183
|
+
return_type = opts[:return_type]
|
210
184
|
|
211
185
|
# auth_names
|
212
186
|
auth_names = opts[:auth_names] || ['API_KEY']
|
@@ -220,9 +194,9 @@ module MailSlurpClient
|
|
220
194
|
:return_type => return_type
|
221
195
|
)
|
222
196
|
|
223
|
-
data, status_code, headers = @api_client.call_api(:
|
197
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
224
198
|
if @api_client.config.debugging
|
225
|
-
@api_client.config.logger.debug "API called: AIControllerApi#
|
199
|
+
@api_client.config.logger.debug "API called: AIControllerApi#delete_all_transformer_mappings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
226
200
|
end
|
227
201
|
return data, status_code, headers
|
228
202
|
end
|
@@ -954,6 +928,146 @@ module MailSlurpClient
|
|
954
928
|
return data, status_code, headers
|
955
929
|
end
|
956
930
|
|
931
|
+
# List transformers
|
932
|
+
# List all AI transforms
|
933
|
+
# @param [Hash] opts the optional parameters
|
934
|
+
# @option opts [Integer] :page (default to 0)
|
935
|
+
# @option opts [Integer] :size Optional page size in SMS list pagination. Maximum size is 100. Use page index and sort to page through larger results (default to 20)
|
936
|
+
# @option opts [String] :sort Optional createdAt sort direction ASC or DESC (default to 'ASC')
|
937
|
+
# @option opts [Array<String>] :include Optional list of IDs to include in result
|
938
|
+
# @return [PageAITransformProjection]
|
939
|
+
def get_transformers(opts = {})
|
940
|
+
data, _status_code, _headers = get_transformers_with_http_info(opts)
|
941
|
+
data
|
942
|
+
end
|
943
|
+
|
944
|
+
# List transformers
|
945
|
+
# List all AI transforms
|
946
|
+
# @param [Hash] opts the optional parameters
|
947
|
+
# @option opts [Integer] :page
|
948
|
+
# @option opts [Integer] :size Optional page size in SMS list pagination. Maximum size is 100. Use page index and sort to page through larger results
|
949
|
+
# @option opts [String] :sort Optional createdAt sort direction ASC or DESC
|
950
|
+
# @option opts [Array<String>] :include Optional list of IDs to include in result
|
951
|
+
# @return [Array<(PageAITransformProjection, Integer, Hash)>] PageAITransformProjection data, response status code and response headers
|
952
|
+
def get_transformers_with_http_info(opts = {})
|
953
|
+
if @api_client.config.debugging
|
954
|
+
@api_client.config.logger.debug 'Calling API: AIControllerApi.get_transformers ...'
|
955
|
+
end
|
956
|
+
if @api_client.config.client_side_validation && !opts[:'size'].nil? && opts[:'size'] > 100
|
957
|
+
fail ArgumentError, 'invalid value for "opts[:"size"]" when calling AIControllerApi.get_transformers, must be smaller than or equal to 100.'
|
958
|
+
end
|
959
|
+
|
960
|
+
allowable_values = ["ASC", "DESC"]
|
961
|
+
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
|
962
|
+
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
963
|
+
end
|
964
|
+
# resource path
|
965
|
+
local_var_path = '/ai/transformer'
|
966
|
+
|
967
|
+
# query parameters
|
968
|
+
query_params = opts[:query_params] || {}
|
969
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
970
|
+
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
971
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
972
|
+
query_params[:'include'] = @api_client.build_collection_param(opts[:'include'], :multi) if !opts[:'include'].nil?
|
973
|
+
|
974
|
+
# header parameters
|
975
|
+
header_params = opts[:header_params] || {}
|
976
|
+
# HTTP header 'Accept' (if needed)
|
977
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
978
|
+
|
979
|
+
# form parameters
|
980
|
+
form_params = opts[:form_params] || {}
|
981
|
+
|
982
|
+
# http body (model)
|
983
|
+
post_body = opts[:body]
|
984
|
+
|
985
|
+
# return_type
|
986
|
+
return_type = opts[:return_type] || 'PageAITransformProjection'
|
987
|
+
|
988
|
+
# auth_names
|
989
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
990
|
+
|
991
|
+
new_options = opts.merge(
|
992
|
+
:header_params => header_params,
|
993
|
+
:query_params => query_params,
|
994
|
+
:form_params => form_params,
|
995
|
+
:body => post_body,
|
996
|
+
:auth_names => auth_names,
|
997
|
+
:return_type => return_type
|
998
|
+
)
|
999
|
+
|
1000
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1001
|
+
if @api_client.config.debugging
|
1002
|
+
@api_client.config.logger.debug "API called: AIControllerApi#get_transformers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1003
|
+
end
|
1004
|
+
return data, status_code, headers
|
1005
|
+
end
|
1006
|
+
|
1007
|
+
# Invoke a transformer
|
1008
|
+
# Execute an AI transformer to generate structured content
|
1009
|
+
# @param invoke_transformer_options [InvokeTransformerOptions]
|
1010
|
+
# @param [Hash] opts the optional parameters
|
1011
|
+
# @return [ConditionalStructuredContentResult]
|
1012
|
+
def invoke_transformer(invoke_transformer_options, opts = {})
|
1013
|
+
data, _status_code, _headers = invoke_transformer_with_http_info(invoke_transformer_options, opts)
|
1014
|
+
data
|
1015
|
+
end
|
1016
|
+
|
1017
|
+
# Invoke a transformer
|
1018
|
+
# Execute an AI transformer to generate structured content
|
1019
|
+
# @param invoke_transformer_options [InvokeTransformerOptions]
|
1020
|
+
# @param [Hash] opts the optional parameters
|
1021
|
+
# @return [Array<(ConditionalStructuredContentResult, Integer, Hash)>] ConditionalStructuredContentResult data, response status code and response headers
|
1022
|
+
def invoke_transformer_with_http_info(invoke_transformer_options, opts = {})
|
1023
|
+
if @api_client.config.debugging
|
1024
|
+
@api_client.config.logger.debug 'Calling API: AIControllerApi.invoke_transformer ...'
|
1025
|
+
end
|
1026
|
+
# verify the required parameter 'invoke_transformer_options' is set
|
1027
|
+
if @api_client.config.client_side_validation && invoke_transformer_options.nil?
|
1028
|
+
fail ArgumentError, "Missing the required parameter 'invoke_transformer_options' when calling AIControllerApi.invoke_transformer"
|
1029
|
+
end
|
1030
|
+
# resource path
|
1031
|
+
local_var_path = '/ai/transformer/invoke'
|
1032
|
+
|
1033
|
+
# query parameters
|
1034
|
+
query_params = opts[:query_params] || {}
|
1035
|
+
|
1036
|
+
# header parameters
|
1037
|
+
header_params = opts[:header_params] || {}
|
1038
|
+
# HTTP header 'Accept' (if needed)
|
1039
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
1040
|
+
# HTTP header 'Content-Type'
|
1041
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1042
|
+
|
1043
|
+
# form parameters
|
1044
|
+
form_params = opts[:form_params] || {}
|
1045
|
+
|
1046
|
+
# http body (model)
|
1047
|
+
post_body = opts[:body] || @api_client.object_to_http_body(invoke_transformer_options)
|
1048
|
+
|
1049
|
+
# return_type
|
1050
|
+
return_type = opts[:return_type] || 'ConditionalStructuredContentResult'
|
1051
|
+
|
1052
|
+
# auth_names
|
1053
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
1054
|
+
|
1055
|
+
new_options = opts.merge(
|
1056
|
+
:header_params => header_params,
|
1057
|
+
:query_params => query_params,
|
1058
|
+
:form_params => form_params,
|
1059
|
+
:body => post_body,
|
1060
|
+
:auth_names => auth_names,
|
1061
|
+
:return_type => return_type
|
1062
|
+
)
|
1063
|
+
|
1064
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1065
|
+
if @api_client.config.debugging
|
1066
|
+
@api_client.config.logger.debug "API called: AIControllerApi#invoke_transformer\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1067
|
+
end
|
1068
|
+
return data, status_code, headers
|
1069
|
+
end
|
1070
|
+
|
957
1071
|
# Validate structured content schema
|
958
1072
|
# Check if a schema is valid and can be used to extract data using AI
|
959
1073
|
# @param structured_output_schema [StructuredOutputSchema]
|
@@ -391,6 +391,7 @@ module MailSlurpClient
|
|
391
391
|
# @option opts [String] :inbox_id Optional inboxId to filter attachments by
|
392
392
|
# @option opts [String] :email_id Optional emailId to filter attachments by
|
393
393
|
# @option opts [String] :sent_email_id Optional sentEmailId to filter attachments by
|
394
|
+
# @option opts [Array<String>] :include Optional list of IDs to include in result
|
394
395
|
# @return [PageAttachmentEntity]
|
395
396
|
def get_attachments(opts = {})
|
396
397
|
data, _status_code, _headers = get_attachments_with_http_info(opts)
|
@@ -409,6 +410,7 @@ module MailSlurpClient
|
|
409
410
|
# @option opts [String] :inbox_id Optional inboxId to filter attachments by
|
410
411
|
# @option opts [String] :email_id Optional emailId to filter attachments by
|
411
412
|
# @option opts [String] :sent_email_id Optional sentEmailId to filter attachments by
|
413
|
+
# @option opts [Array<String>] :include Optional list of IDs to include in result
|
412
414
|
# @return [Array<(PageAttachmentEntity, Integer, Hash)>] PageAttachmentEntity data, response status code and response headers
|
413
415
|
def get_attachments_with_http_info(opts = {})
|
414
416
|
if @api_client.config.debugging
|
@@ -432,6 +434,7 @@ module MailSlurpClient
|
|
432
434
|
query_params[:'inboxId'] = opts[:'inbox_id'] if !opts[:'inbox_id'].nil?
|
433
435
|
query_params[:'emailId'] = opts[:'email_id'] if !opts[:'email_id'].nil?
|
434
436
|
query_params[:'sentEmailId'] = opts[:'sent_email_id'] if !opts[:'sent_email_id'].nil?
|
437
|
+
query_params[:'include'] = @api_client.build_collection_param(opts[:'include'], :multi) if !opts[:'include'].nil?
|
435
438
|
|
436
439
|
# header parameters
|
437
440
|
header_params = opts[:header_params] || {}
|
@@ -609,7 +612,7 @@ module MailSlurpClient
|
|
609
612
|
# @option opts [String] :x_filename Optional filename header of attachment
|
610
613
|
# @option opts [String] :x_filename_raw Optional raw filename header of attachment that will be converted to punycode
|
611
614
|
# @option opts [Integer] :x_filesize Optional content size of attachment
|
612
|
-
# @option opts [
|
615
|
+
# @option opts [InlineObject1] :inline_object1
|
613
616
|
# @return [Array<String>]
|
614
617
|
def upload_multipart_form(opts = {})
|
615
618
|
data, _status_code, _headers = upload_multipart_form_with_http_info(opts)
|
@@ -625,7 +628,7 @@ module MailSlurpClient
|
|
625
628
|
# @option opts [String] :x_filename Optional filename header of attachment
|
626
629
|
# @option opts [String] :x_filename_raw Optional raw filename header of attachment that will be converted to punycode
|
627
630
|
# @option opts [Integer] :x_filesize Optional content size of attachment
|
628
|
-
# @option opts [
|
631
|
+
# @option opts [InlineObject1] :inline_object1
|
629
632
|
# @return [Array<(Array<String>, Integer, Hash)>] Array<String> data, response status code and response headers
|
630
633
|
def upload_multipart_form_with_http_info(opts = {})
|
631
634
|
if @api_client.config.debugging
|
@@ -655,7 +658,7 @@ module MailSlurpClient
|
|
655
658
|
form_params = opts[:form_params] || {}
|
656
659
|
|
657
660
|
# http body (model)
|
658
|
-
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'
|
661
|
+
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'inline_object1'])
|
659
662
|
|
660
663
|
# return_type
|
661
664
|
return_type = opts[:return_type] || 'Array<String>'
|
@@ -2091,6 +2091,7 @@ module MailSlurpClient
|
|
2091
2091
|
# @option opts [Boolean] :favourited Optional filter emails that are favourited
|
2092
2092
|
# @option opts [Boolean] :sync_connectors Sync connectors
|
2093
2093
|
# @option opts [String] :plus_address_id Optional plus address ID filter
|
2094
|
+
# @option opts [Array<String>] :include Optional list of IDs to include in result
|
2094
2095
|
# @return [PageEmailProjection]
|
2095
2096
|
def get_emails_offset_paginated(opts = {})
|
2096
2097
|
data, _status_code, _headers = get_emails_offset_paginated_with_http_info(opts)
|
@@ -2111,6 +2112,7 @@ module MailSlurpClient
|
|
2111
2112
|
# @option opts [Boolean] :favourited Optional filter emails that are favourited
|
2112
2113
|
# @option opts [Boolean] :sync_connectors Sync connectors
|
2113
2114
|
# @option opts [String] :plus_address_id Optional plus address ID filter
|
2115
|
+
# @option opts [Array<String>] :include Optional list of IDs to include in result
|
2114
2116
|
# @return [Array<(PageEmailProjection, Integer, Hash)>] PageEmailProjection data, response status code and response headers
|
2115
2117
|
def get_emails_offset_paginated_with_http_info(opts = {})
|
2116
2118
|
if @api_client.config.debugging
|
@@ -2140,6 +2142,7 @@ module MailSlurpClient
|
|
2140
2142
|
query_params[:'favourited'] = opts[:'favourited'] if !opts[:'favourited'].nil?
|
2141
2143
|
query_params[:'syncConnectors'] = opts[:'sync_connectors'] if !opts[:'sync_connectors'].nil?
|
2142
2144
|
query_params[:'plusAddressId'] = opts[:'plus_address_id'] if !opts[:'plus_address_id'].nil?
|
2145
|
+
query_params[:'include'] = @api_client.build_collection_param(opts[:'include'], :multi) if !opts[:'include'].nil?
|
2143
2146
|
|
2144
2147
|
# header parameters
|
2145
2148
|
header_params = opts[:header_params] || {}
|
@@ -24,7 +24,6 @@ module MailSlurpClient
|
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
25
|
# @option opts [String] :_to The email address that submitted form should be sent to.
|
26
26
|
# @option opts [String] :_subject Optional subject of the email that will be sent.
|
27
|
-
# @option opts [String] :_redirect_to Optional URL to redirect form submitter to after submission. If not present user will see a success message.
|
28
27
|
# @option opts [String] :_email_address Email address of the submitting user. Include this if you wish to record the submitters email address and reply to it later.
|
29
28
|
# @option opts [String] :_success_message Optional success message to display if no _redirectTo present.
|
30
29
|
# @option opts [String] :_spam_check Optional but recommended field that catches spammers out. Include as a hidden form field but LEAVE EMPTY. Spam-bots will usually fill every field. If the _spamCheck field is filled the form submission will be ignored.
|
@@ -40,7 +39,6 @@ module MailSlurpClient
|
|
40
39
|
# @param [Hash] opts the optional parameters
|
41
40
|
# @option opts [String] :_to The email address that submitted form should be sent to.
|
42
41
|
# @option opts [String] :_subject Optional subject of the email that will be sent.
|
43
|
-
# @option opts [String] :_redirect_to Optional URL to redirect form submitter to after submission. If not present user will see a success message.
|
44
42
|
# @option opts [String] :_email_address Email address of the submitting user. Include this if you wish to record the submitters email address and reply to it later.
|
45
43
|
# @option opts [String] :_success_message Optional success message to display if no _redirectTo present.
|
46
44
|
# @option opts [String] :_spam_check Optional but recommended field that catches spammers out. Include as a hidden form field but LEAVE EMPTY. Spam-bots will usually fill every field. If the _spamCheck field is filled the form submission will be ignored.
|
@@ -55,21 +53,22 @@ module MailSlurpClient
|
|
55
53
|
|
56
54
|
# query parameters
|
57
55
|
query_params = opts[:query_params] || {}
|
58
|
-
query_params[:'_to'] = opts[:'_to'] if !opts[:'_to'].nil?
|
59
|
-
query_params[:'_subject'] = opts[:'_subject'] if !opts[:'_subject'].nil?
|
60
|
-
query_params[:'_redirectTo'] = opts[:'_redirect_to'] if !opts[:'_redirect_to'].nil?
|
61
|
-
query_params[:'_emailAddress'] = opts[:'_email_address'] if !opts[:'_email_address'].nil?
|
62
|
-
query_params[:'_successMessage'] = opts[:'_success_message'] if !opts[:'_success_message'].nil?
|
63
|
-
query_params[:'_spamCheck'] = opts[:'_spam_check'] if !opts[:'_spam_check'].nil?
|
64
|
-
query_params[:'otherParameters'] = opts[:'other_parameters'] if !opts[:'other_parameters'].nil?
|
65
56
|
|
66
57
|
# header parameters
|
67
58
|
header_params = opts[:header_params] || {}
|
68
59
|
# HTTP header 'Accept' (if needed)
|
69
60
|
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
61
|
+
# HTTP header 'Content-Type'
|
62
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded', 'multipart/form-data'])
|
70
63
|
|
71
64
|
# form parameters
|
72
65
|
form_params = opts[:form_params] || {}
|
66
|
+
form_params['_to'] = opts[:'_to'] if !opts[:'_to'].nil?
|
67
|
+
form_params['_subject'] = opts[:'_subject'] if !opts[:'_subject'].nil?
|
68
|
+
form_params['_emailAddress'] = opts[:'_email_address'] if !opts[:'_email_address'].nil?
|
69
|
+
form_params['_successMessage'] = opts[:'_success_message'] if !opts[:'_success_message'].nil?
|
70
|
+
form_params['_spamCheck'] = opts[:'_spam_check'] if !opts[:'_spam_check'].nil?
|
71
|
+
form_params['otherParameters'] = opts[:'other_parameters'] if !opts[:'other_parameters'].nil?
|
73
72
|
|
74
73
|
# http body (model)
|
75
74
|
post_body = opts[:body]
|
@@ -511,6 +511,10 @@ module MailSlurpClient
|
|
511
511
|
if @api_client.config.client_side_validation && description.nil?
|
512
512
|
fail ArgumentError, "Missing the required parameter 'description' when calling InboxControllerApi.delete_all_inboxes_by_description"
|
513
513
|
end
|
514
|
+
if @api_client.config.client_side_validation && description.to_s.length < 1
|
515
|
+
fail ArgumentError, 'invalid value for "description" when calling InboxControllerApi.delete_all_inboxes_by_description, the character length must be great than or equal to 1.'
|
516
|
+
end
|
517
|
+
|
514
518
|
# resource path
|
515
519
|
local_var_path = '/inboxes/by-description'
|
516
520
|
|
@@ -572,6 +576,10 @@ module MailSlurpClient
|
|
572
576
|
if @api_client.config.client_side_validation && name.nil?
|
573
577
|
fail ArgumentError, "Missing the required parameter 'name' when calling InboxControllerApi.delete_all_inboxes_by_name"
|
574
578
|
end
|
579
|
+
if @api_client.config.client_side_validation && name.to_s.length < 1
|
580
|
+
fail ArgumentError, 'invalid value for "name" when calling InboxControllerApi.delete_all_inboxes_by_name, the character length must be great than or equal to 1.'
|
581
|
+
end
|
582
|
+
|
575
583
|
# resource path
|
576
584
|
local_var_path = '/inboxes/by-name'
|
577
585
|
|
@@ -633,6 +641,10 @@ module MailSlurpClient
|
|
633
641
|
if @api_client.config.client_side_validation && tag.nil?
|
634
642
|
fail ArgumentError, "Missing the required parameter 'tag' when calling InboxControllerApi.delete_all_inboxes_by_tag"
|
635
643
|
end
|
644
|
+
if @api_client.config.client_side_validation && tag.to_s.length < 1
|
645
|
+
fail ArgumentError, 'invalid value for "tag" when calling InboxControllerApi.delete_all_inboxes_by_tag, the character length must be great than or equal to 1.'
|
646
|
+
end
|
647
|
+
|
636
648
|
# resource path
|
637
649
|
local_var_path = '/inboxes/by-tag'
|
638
650
|
|
@@ -735,7 +747,9 @@ module MailSlurpClient
|
|
735
747
|
# Check if inboxes exist by email address. Useful if you are sending emails to mailslurp addresses
|
736
748
|
# @param email_address [String] Email address
|
737
749
|
# @param [Hash] opts the optional parameters
|
738
|
-
# @option opts [Boolean] :allow_catch_all
|
750
|
+
# @option opts [Boolean] :allow_catch_all Allow catch all
|
751
|
+
# @option opts [String] :ip_address IP address
|
752
|
+
# @option opts [String] :sender Sender
|
739
753
|
# @return [InboxExistsDto]
|
740
754
|
def does_inbox_exist(email_address, opts = {})
|
741
755
|
data, _status_code, _headers = does_inbox_exist_with_http_info(email_address, opts)
|
@@ -746,7 +760,9 @@ module MailSlurpClient
|
|
746
760
|
# Check if inboxes exist by email address. Useful if you are sending emails to mailslurp addresses
|
747
761
|
# @param email_address [String] Email address
|
748
762
|
# @param [Hash] opts the optional parameters
|
749
|
-
# @option opts [Boolean] :allow_catch_all
|
763
|
+
# @option opts [Boolean] :allow_catch_all Allow catch all
|
764
|
+
# @option opts [String] :ip_address IP address
|
765
|
+
# @option opts [String] :sender Sender
|
750
766
|
# @return [Array<(InboxExistsDto, Integer, Hash)>] InboxExistsDto data, response status code and response headers
|
751
767
|
def does_inbox_exist_with_http_info(email_address, opts = {})
|
752
768
|
if @api_client.config.debugging
|
@@ -763,6 +779,8 @@ module MailSlurpClient
|
|
763
779
|
query_params = opts[:query_params] || {}
|
764
780
|
query_params[:'emailAddress'] = email_address
|
765
781
|
query_params[:'allowCatchAll'] = opts[:'allow_catch_all'] if !opts[:'allow_catch_all'].nil?
|
782
|
+
query_params[:'ipAddress'] = opts[:'ip_address'] if !opts[:'ip_address'].nil?
|
783
|
+
query_params[:'sender'] = opts[:'sender'] if !opts[:'sender'].nil?
|
766
784
|
|
767
785
|
# header parameters
|
768
786
|
header_params = opts[:header_params] || {}
|
@@ -1758,6 +1776,10 @@ module MailSlurpClient
|
|
1758
1776
|
if @api_client.config.client_side_validation && email_address.nil?
|
1759
1777
|
fail ArgumentError, "Missing the required parameter 'email_address' when calling InboxControllerApi.get_inbox_by_email_address"
|
1760
1778
|
end
|
1779
|
+
if @api_client.config.client_side_validation && email_address.to_s.length < 1
|
1780
|
+
fail ArgumentError, 'invalid value for "email_address" when calling InboxControllerApi.get_inbox_by_email_address, the character length must be great than or equal to 1.'
|
1781
|
+
end
|
1782
|
+
|
1761
1783
|
# resource path
|
1762
1784
|
local_var_path = '/inboxes/byEmailAddress'
|
1763
1785
|
|
@@ -1821,6 +1843,10 @@ module MailSlurpClient
|
|
1821
1843
|
if @api_client.config.client_side_validation && name.nil?
|
1822
1844
|
fail ArgumentError, "Missing the required parameter 'name' when calling InboxControllerApi.get_inbox_by_name"
|
1823
1845
|
end
|
1846
|
+
if @api_client.config.client_side_validation && name.to_s.length < 1
|
1847
|
+
fail ArgumentError, 'invalid value for "name" when calling InboxControllerApi.get_inbox_by_name, the character length must be great than or equal to 1.'
|
1848
|
+
end
|
1849
|
+
|
1824
1850
|
# resource path
|
1825
1851
|
local_var_path = '/inboxes/byName'
|
1826
1852
|
|