svix 0.15.0 → 0.32.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +9 -3
  3. data/README.md +16 -3
  4. data/lib/svix/api/application_api.rb +386 -0
  5. data/lib/svix/api/authentication_api.rb +155 -0
  6. data/lib/svix/api/endpoint_api.rb +774 -0
  7. data/lib/svix/api/event_type_api.rb +377 -0
  8. data/lib/svix/api/health_api.rb +77 -0
  9. data/lib/svix/api/message_api.rb +289 -0
  10. data/lib/svix/api/message_attempt_api.rb +678 -0
  11. data/lib/svix/api_client.rb +399 -0
  12. data/lib/svix/api_error.rb +57 -0
  13. data/lib/svix/application_api.rb +29 -0
  14. data/lib/svix/authentication_api.rb +17 -0
  15. data/lib/svix/configuration.rb +277 -0
  16. data/lib/svix/endpoint_api.rb +34 -0
  17. data/{src → lib}/svix/errors.rb +4 -1
  18. data/lib/svix/event_type_api.rb +25 -0
  19. data/lib/svix/internal.rb +16 -0
  20. data/lib/svix/message_api.rb +21 -0
  21. data/lib/svix/message_attempt_api.rb +33 -0
  22. data/lib/svix/models/application_in.rb +277 -0
  23. data/lib/svix/models/application_out.rb +305 -0
  24. data/lib/svix/models/dashboard_access_out.rb +265 -0
  25. data/lib/svix/models/endpoint_created_event.rb +269 -0
  26. data/lib/svix/models/endpoint_created_event_data.rb +246 -0
  27. data/lib/svix/models/endpoint_deleted_event.rb +269 -0
  28. data/lib/svix/models/endpoint_deleted_event_data.rb +246 -0
  29. data/lib/svix/models/endpoint_disabled_event.rb +269 -0
  30. data/lib/svix/models/endpoint_disabled_event_data.rb +260 -0
  31. data/lib/svix/models/endpoint_in.rb +368 -0
  32. data/lib/svix/models/endpoint_message_out.rb +363 -0
  33. data/lib/svix/models/endpoint_out.rb +386 -0
  34. data/lib/svix/models/endpoint_secret_out.rb +224 -0
  35. data/lib/svix/models/endpoint_stats.rb +265 -0
  36. data/lib/svix/models/endpoint_update.rb +358 -0
  37. data/lib/svix/models/endpoint_updated_event_data.rb +246 -0
  38. data/lib/svix/models/endpointd_updated_event.rb +269 -0
  39. data/lib/svix/models/event_example_in.rb +253 -0
  40. data/lib/svix/models/event_type_in.rb +279 -0
  41. data/lib/svix/models/event_type_out.rb +279 -0
  42. data/lib/svix/models/event_type_update.rb +235 -0
  43. data/lib/svix/models/http_error_out.rb +237 -0
  44. data/lib/svix/models/http_validation_error.rb +220 -0
  45. data/lib/svix/models/list_response_application_out.rb +248 -0
  46. data/lib/svix/models/list_response_endpoint_message_out.rb +248 -0
  47. data/lib/svix/models/list_response_endpoint_out.rb +248 -0
  48. data/lib/svix/models/list_response_event_type_out.rb +248 -0
  49. data/lib/svix/models/list_response_message_attempt_endpoint_out.rb +248 -0
  50. data/lib/svix/models/list_response_message_attempt_out.rb +248 -0
  51. data/lib/svix/models/list_response_message_endpoint_out.rb +248 -0
  52. data/lib/svix/models/list_response_message_out.rb +248 -0
  53. data/lib/svix/models/message_attempt_endpoint_out.rb +293 -0
  54. data/lib/svix/models/message_attempt_exhausted_event.rb +269 -0
  55. data/lib/svix/models/message_attempt_exhausted_event_data.rb +274 -0
  56. data/lib/svix/models/message_attempt_failed_event.rb +251 -0
  57. data/lib/svix/models/message_attempt_out.rb +307 -0
  58. data/lib/svix/models/message_attempt_trigger_type.rb +37 -0
  59. data/lib/svix/models/message_endpoint_out.rb +409 -0
  60. data/lib/svix/models/message_in.rb +312 -0
  61. data/lib/svix/models/message_out.rb +340 -0
  62. data/lib/svix/models/message_status.rb +39 -0
  63. data/lib/svix/models/validation_error.rb +253 -0
  64. data/lib/svix/models/webhook_types.rb +280 -0
  65. data/lib/svix/svix.rb +43 -0
  66. data/{src → lib}/svix/util.rb +1 -1
  67. data/lib/svix/version.rb +5 -0
  68. data/lib/svix/webhook.rb +75 -0
  69. data/lib/svix.rb +76 -0
  70. data/svix.gemspec +19 -9
  71. metadata +93 -13
  72. data/.gitignore +0 -9
  73. data/src/svix/version.rb +0 -3
  74. data/src/svix/webhook.rb +0 -33
  75. data/src/svix.rb +0 -8
@@ -0,0 +1,678 @@
1
+ =begin
2
+ #Svix API
3
+
4
+ #Welcome to the Svix API documentation! Useful links: [Homepage](https://www.svix.com) | [Support email](mailto:support+docs@svix.com) | [Blog](https://www.svix.com/blog/) | [Slack Community](https://www.svix.com/slack/) # Introduction This is the reference documentation and schemas for the [Svix webhook service](https://www.svix.com) API. For tutorials and other documentation please refer to [the documentation](https://docs.svix.com). ## Main concepts In Svix you have four important entities you will be interacting with: - `messages`: these are the webhooks being sent. They can have contents and a few other properties. - `application`: this is where `messages` are sent to. Usually you want to create one application for each of your users. - `endpoint`: endpoints are the URLs messages will be sent to. Each application can have multiple `endpoints` and each message sent to that application will be sent to all of them (unless they are not subscribed to the sent event type). - `event-type`: event types are identifiers denoting the type of the message being sent. Event types are primarily used to decide which events are sent to which endpoint. ## Authentication Get your authentication token (`AUTH_TOKEN`) from the [Svix dashboard](https://dashboard.svix.com) and use it as part of the `Authorization` header as such: `Authorization: Bearer ${AUTH_TOKEN}`. <SecurityDefinitions /> ## Code samples The code samples assume you already have the respective libraries installed and you know how to use them. For the latest information on how to do that, please refer to [the documentation](https://docs.svix.com/). ## Cross-Origin Resource Sharing This API features Cross-Origin Resource Sharing (CORS) implemented in compliance with [W3C spec](https://www.w3.org/TR/cors/). And that allows cross-domain communication from the browser. All responses have a wildcard same-origin which makes them completely public and accessible to everyone, including any code on any site.
5
+
6
+ The version of the OpenAPI document: 1.4
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.2.0
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module Svix
16
+ class MessageAttemptApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Get Attempt
23
+ # `msg_id`: Use a message id or a message `eventId`
24
+ # @param attempt_id [String]
25
+ # @param msg_id [String]
26
+ # @param app_id [String]
27
+ # @param [Hash] opts the optional parameters
28
+ # @return [MessageAttemptOut]
29
+ def get_attempt_api_v1_app_app_id_msg_msg_id_attempt_attempt_id_get(attempt_id, msg_id, app_id, opts = {})
30
+ data, _status_code, _headers = get_attempt_api_v1_app_app_id_msg_msg_id_attempt_attempt_id_get_with_http_info(attempt_id, msg_id, app_id, opts)
31
+ data
32
+ end
33
+
34
+ # Get Attempt
35
+ # &#x60;msg_id&#x60;: Use a message id or a message &#x60;eventId&#x60;
36
+ # @param attempt_id [String]
37
+ # @param msg_id [String]
38
+ # @param app_id [String]
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [Array<(MessageAttemptOut, Integer, Hash)>] MessageAttemptOut data, response status code and response headers
41
+ def get_attempt_api_v1_app_app_id_msg_msg_id_attempt_attempt_id_get_with_http_info(attempt_id, msg_id, app_id, opts = {})
42
+ if @api_client.config.debugging
43
+ @api_client.config.logger.debug 'Calling API: MessageAttemptApi.get_attempt_api_v1_app_app_id_msg_msg_id_attempt_attempt_id_get ...'
44
+ end
45
+ # verify the required parameter 'attempt_id' is set
46
+ if @api_client.config.client_side_validation && attempt_id.nil?
47
+ fail ArgumentError, "Missing the required parameter 'attempt_id' when calling MessageAttemptApi.get_attempt_api_v1_app_app_id_msg_msg_id_attempt_attempt_id_get"
48
+ end
49
+ # verify the required parameter 'msg_id' is set
50
+ if @api_client.config.client_side_validation && msg_id.nil?
51
+ fail ArgumentError, "Missing the required parameter 'msg_id' when calling MessageAttemptApi.get_attempt_api_v1_app_app_id_msg_msg_id_attempt_attempt_id_get"
52
+ end
53
+ if @api_client.config.client_side_validation && msg_id.to_s.length > 256
54
+ fail ArgumentError, 'invalid value for "msg_id" when calling MessageAttemptApi.get_attempt_api_v1_app_app_id_msg_msg_id_attempt_attempt_id_get, the character length must be smaller than or equal to 256.'
55
+ end
56
+
57
+ if @api_client.config.client_side_validation && msg_id.to_s.length < 1
58
+ fail ArgumentError, 'invalid value for "msg_id" when calling MessageAttemptApi.get_attempt_api_v1_app_app_id_msg_msg_id_attempt_attempt_id_get, the character length must be great than or equal to 1.'
59
+ end
60
+
61
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
62
+ if @api_client.config.client_side_validation && msg_id !~ pattern
63
+ fail ArgumentError, "invalid value for 'msg_id' when calling MessageAttemptApi.get_attempt_api_v1_app_app_id_msg_msg_id_attempt_attempt_id_get, must conform to the pattern #{pattern}."
64
+ end
65
+
66
+ # verify the required parameter 'app_id' is set
67
+ if @api_client.config.client_side_validation && app_id.nil?
68
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling MessageAttemptApi.get_attempt_api_v1_app_app_id_msg_msg_id_attempt_attempt_id_get"
69
+ end
70
+ if @api_client.config.client_side_validation && app_id.to_s.length > 256
71
+ fail ArgumentError, 'invalid value for "app_id" when calling MessageAttemptApi.get_attempt_api_v1_app_app_id_msg_msg_id_attempt_attempt_id_get, the character length must be smaller than or equal to 256.'
72
+ end
73
+
74
+ if @api_client.config.client_side_validation && app_id.to_s.length < 1
75
+ fail ArgumentError, 'invalid value for "app_id" when calling MessageAttemptApi.get_attempt_api_v1_app_app_id_msg_msg_id_attempt_attempt_id_get, the character length must be great than or equal to 1.'
76
+ end
77
+
78
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
79
+ if @api_client.config.client_side_validation && app_id !~ pattern
80
+ fail ArgumentError, "invalid value for 'app_id' when calling MessageAttemptApi.get_attempt_api_v1_app_app_id_msg_msg_id_attempt_attempt_id_get, must conform to the pattern #{pattern}."
81
+ end
82
+
83
+ # resource path
84
+ local_var_path = '/api/v1/app/{app_id}/msg/{msg_id}/attempt/{attempt_id}/'.sub('{' + 'attempt_id' + '}', CGI.escape(attempt_id.to_s)).sub('{' + 'msg_id' + '}', CGI.escape(msg_id.to_s)).sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
85
+
86
+ # query parameters
87
+ query_params = opts[:query_params] || {}
88
+
89
+ # header parameters
90
+ header_params = opts[:header_params] || {}
91
+ # HTTP header 'Accept' (if needed)
92
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
93
+
94
+ # form parameters
95
+ form_params = opts[:form_params] || {}
96
+
97
+ # http body (model)
98
+ post_body = opts[:debug_body]
99
+
100
+ # return_type
101
+ return_type = opts[:debug_return_type] || 'MessageAttemptOut'
102
+
103
+ # auth_names
104
+ auth_names = opts[:debug_auth_names] || ['HTTPBearer']
105
+
106
+ new_options = opts.merge(
107
+ :operation => :"MessageAttemptApi.get_attempt_api_v1_app_app_id_msg_msg_id_attempt_attempt_id_get",
108
+ :header_params => header_params,
109
+ :query_params => query_params,
110
+ :form_params => form_params,
111
+ :body => post_body,
112
+ :auth_names => auth_names,
113
+ :return_type => return_type
114
+ )
115
+
116
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
117
+ if @api_client.config.debugging
118
+ @api_client.config.logger.debug "API called: MessageAttemptApi#get_attempt_api_v1_app_app_id_msg_msg_id_attempt_attempt_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
119
+ end
120
+ return data, status_code, headers
121
+ end
122
+
123
+ # List Attempted Destinations
124
+ # `msg_id`: Use a message id or a message `eventId`
125
+ # @param msg_id [String]
126
+ # @param app_id [String]
127
+ # @param [Hash] opts the optional parameters
128
+ # @option opts [String] :iterator
129
+ # @option opts [Integer] :limit (default to 50)
130
+ # @return [ListResponseMessageEndpointOut]
131
+ def list_attempted_destinations_api_v1_app_app_id_msg_msg_id_endpoint_get(msg_id, app_id, opts = {})
132
+ data, _status_code, _headers = list_attempted_destinations_api_v1_app_app_id_msg_msg_id_endpoint_get_with_http_info(msg_id, app_id, opts)
133
+ data
134
+ end
135
+
136
+ # List Attempted Destinations
137
+ # &#x60;msg_id&#x60;: Use a message id or a message &#x60;eventId&#x60;
138
+ # @param msg_id [String]
139
+ # @param app_id [String]
140
+ # @param [Hash] opts the optional parameters
141
+ # @option opts [String] :iterator
142
+ # @option opts [Integer] :limit
143
+ # @return [Array<(ListResponseMessageEndpointOut, Integer, Hash)>] ListResponseMessageEndpointOut data, response status code and response headers
144
+ def list_attempted_destinations_api_v1_app_app_id_msg_msg_id_endpoint_get_with_http_info(msg_id, app_id, opts = {})
145
+ if @api_client.config.debugging
146
+ @api_client.config.logger.debug 'Calling API: MessageAttemptApi.list_attempted_destinations_api_v1_app_app_id_msg_msg_id_endpoint_get ...'
147
+ end
148
+ # verify the required parameter 'msg_id' is set
149
+ if @api_client.config.client_side_validation && msg_id.nil?
150
+ fail ArgumentError, "Missing the required parameter 'msg_id' when calling MessageAttemptApi.list_attempted_destinations_api_v1_app_app_id_msg_msg_id_endpoint_get"
151
+ end
152
+ if @api_client.config.client_side_validation && msg_id.to_s.length > 256
153
+ fail ArgumentError, 'invalid value for "msg_id" when calling MessageAttemptApi.list_attempted_destinations_api_v1_app_app_id_msg_msg_id_endpoint_get, the character length must be smaller than or equal to 256.'
154
+ end
155
+
156
+ if @api_client.config.client_side_validation && msg_id.to_s.length < 1
157
+ fail ArgumentError, 'invalid value for "msg_id" when calling MessageAttemptApi.list_attempted_destinations_api_v1_app_app_id_msg_msg_id_endpoint_get, the character length must be great than or equal to 1.'
158
+ end
159
+
160
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
161
+ if @api_client.config.client_side_validation && msg_id !~ pattern
162
+ fail ArgumentError, "invalid value for 'msg_id' when calling MessageAttemptApi.list_attempted_destinations_api_v1_app_app_id_msg_msg_id_endpoint_get, must conform to the pattern #{pattern}."
163
+ end
164
+
165
+ # verify the required parameter 'app_id' is set
166
+ if @api_client.config.client_side_validation && app_id.nil?
167
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling MessageAttemptApi.list_attempted_destinations_api_v1_app_app_id_msg_msg_id_endpoint_get"
168
+ end
169
+ if @api_client.config.client_side_validation && app_id.to_s.length > 256
170
+ fail ArgumentError, 'invalid value for "app_id" when calling MessageAttemptApi.list_attempted_destinations_api_v1_app_app_id_msg_msg_id_endpoint_get, the character length must be smaller than or equal to 256.'
171
+ end
172
+
173
+ if @api_client.config.client_side_validation && app_id.to_s.length < 1
174
+ fail ArgumentError, 'invalid value for "app_id" when calling MessageAttemptApi.list_attempted_destinations_api_v1_app_app_id_msg_msg_id_endpoint_get, the character length must be great than or equal to 1.'
175
+ end
176
+
177
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
178
+ if @api_client.config.client_side_validation && app_id !~ pattern
179
+ fail ArgumentError, "invalid value for 'app_id' when calling MessageAttemptApi.list_attempted_destinations_api_v1_app_app_id_msg_msg_id_endpoint_get, must conform to the pattern #{pattern}."
180
+ end
181
+
182
+ # resource path
183
+ local_var_path = '/api/v1/app/{app_id}/msg/{msg_id}/endpoint/'.sub('{' + 'msg_id' + '}', CGI.escape(msg_id.to_s)).sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
184
+
185
+ # query parameters
186
+ query_params = opts[:query_params] || {}
187
+ query_params[:'iterator'] = opts[:'iterator'] if !opts[:'iterator'].nil?
188
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
189
+
190
+ # header parameters
191
+ header_params = opts[:header_params] || {}
192
+ # HTTP header 'Accept' (if needed)
193
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
194
+
195
+ # form parameters
196
+ form_params = opts[:form_params] || {}
197
+
198
+ # http body (model)
199
+ post_body = opts[:debug_body]
200
+
201
+ # return_type
202
+ return_type = opts[:debug_return_type] || 'ListResponseMessageEndpointOut'
203
+
204
+ # auth_names
205
+ auth_names = opts[:debug_auth_names] || ['HTTPBearer']
206
+
207
+ new_options = opts.merge(
208
+ :operation => :"MessageAttemptApi.list_attempted_destinations_api_v1_app_app_id_msg_msg_id_endpoint_get",
209
+ :header_params => header_params,
210
+ :query_params => query_params,
211
+ :form_params => form_params,
212
+ :body => post_body,
213
+ :auth_names => auth_names,
214
+ :return_type => return_type
215
+ )
216
+
217
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
218
+ if @api_client.config.debugging
219
+ @api_client.config.logger.debug "API called: MessageAttemptApi#list_attempted_destinations_api_v1_app_app_id_msg_msg_id_endpoint_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
220
+ end
221
+ return data, status_code, headers
222
+ end
223
+
224
+ # List Attempted Messages
225
+ # List the message attempts for a particular endpoint. Returning the message. The `before` parameter lets you filter all items created before a certain date and is ignored if an iterator is passed.
226
+ # @param endpoint_id [String]
227
+ # @param app_id [String]
228
+ # @param [Hash] opts the optional parameters
229
+ # @option opts [String] :iterator
230
+ # @option opts [Integer] :limit (default to 50)
231
+ # @option opts [MessageStatus] :status
232
+ # @option opts [Time] :before
233
+ # @return [ListResponseEndpointMessageOut]
234
+ def list_attempted_messages_api_v1_app_app_id_endpoint_endpoint_id_msg_get(endpoint_id, app_id, opts = {})
235
+ data, _status_code, _headers = list_attempted_messages_api_v1_app_app_id_endpoint_endpoint_id_msg_get_with_http_info(endpoint_id, app_id, opts)
236
+ data
237
+ end
238
+
239
+ # List Attempted Messages
240
+ # List the message attempts for a particular endpoint. Returning the message. The &#x60;before&#x60; parameter lets you filter all items created before a certain date and is ignored if an iterator is passed.
241
+ # @param endpoint_id [String]
242
+ # @param app_id [String]
243
+ # @param [Hash] opts the optional parameters
244
+ # @option opts [String] :iterator
245
+ # @option opts [Integer] :limit
246
+ # @option opts [MessageStatus] :status
247
+ # @option opts [Time] :before
248
+ # @return [Array<(ListResponseEndpointMessageOut, Integer, Hash)>] ListResponseEndpointMessageOut data, response status code and response headers
249
+ def list_attempted_messages_api_v1_app_app_id_endpoint_endpoint_id_msg_get_with_http_info(endpoint_id, app_id, opts = {})
250
+ if @api_client.config.debugging
251
+ @api_client.config.logger.debug 'Calling API: MessageAttemptApi.list_attempted_messages_api_v1_app_app_id_endpoint_endpoint_id_msg_get ...'
252
+ end
253
+ # verify the required parameter 'endpoint_id' is set
254
+ if @api_client.config.client_side_validation && endpoint_id.nil?
255
+ fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling MessageAttemptApi.list_attempted_messages_api_v1_app_app_id_endpoint_endpoint_id_msg_get"
256
+ end
257
+ if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
258
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling MessageAttemptApi.list_attempted_messages_api_v1_app_app_id_endpoint_endpoint_id_msg_get, the character length must be smaller than or equal to 256.'
259
+ end
260
+
261
+ if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
262
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling MessageAttemptApi.list_attempted_messages_api_v1_app_app_id_endpoint_endpoint_id_msg_get, the character length must be great than or equal to 1.'
263
+ end
264
+
265
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
266
+ if @api_client.config.client_side_validation && endpoint_id !~ pattern
267
+ fail ArgumentError, "invalid value for 'endpoint_id' when calling MessageAttemptApi.list_attempted_messages_api_v1_app_app_id_endpoint_endpoint_id_msg_get, must conform to the pattern #{pattern}."
268
+ end
269
+
270
+ # verify the required parameter 'app_id' is set
271
+ if @api_client.config.client_side_validation && app_id.nil?
272
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling MessageAttemptApi.list_attempted_messages_api_v1_app_app_id_endpoint_endpoint_id_msg_get"
273
+ end
274
+ if @api_client.config.client_side_validation && app_id.to_s.length > 256
275
+ fail ArgumentError, 'invalid value for "app_id" when calling MessageAttemptApi.list_attempted_messages_api_v1_app_app_id_endpoint_endpoint_id_msg_get, the character length must be smaller than or equal to 256.'
276
+ end
277
+
278
+ if @api_client.config.client_side_validation && app_id.to_s.length < 1
279
+ fail ArgumentError, 'invalid value for "app_id" when calling MessageAttemptApi.list_attempted_messages_api_v1_app_app_id_endpoint_endpoint_id_msg_get, the character length must be great than or equal to 1.'
280
+ end
281
+
282
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
283
+ if @api_client.config.client_side_validation && app_id !~ pattern
284
+ fail ArgumentError, "invalid value for 'app_id' when calling MessageAttemptApi.list_attempted_messages_api_v1_app_app_id_endpoint_endpoint_id_msg_get, must conform to the pattern #{pattern}."
285
+ end
286
+
287
+ # resource path
288
+ local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/msg/'.sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s)).sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
289
+
290
+ # query parameters
291
+ query_params = opts[:query_params] || {}
292
+ query_params[:'iterator'] = opts[:'iterator'] if !opts[:'iterator'].nil?
293
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
294
+ query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
295
+ query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
296
+
297
+ # header parameters
298
+ header_params = opts[:header_params] || {}
299
+ # HTTP header 'Accept' (if needed)
300
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
301
+
302
+ # form parameters
303
+ form_params = opts[:form_params] || {}
304
+
305
+ # http body (model)
306
+ post_body = opts[:debug_body]
307
+
308
+ # return_type
309
+ return_type = opts[:debug_return_type] || 'ListResponseEndpointMessageOut'
310
+
311
+ # auth_names
312
+ auth_names = opts[:debug_auth_names] || ['HTTPBearer']
313
+
314
+ new_options = opts.merge(
315
+ :operation => :"MessageAttemptApi.list_attempted_messages_api_v1_app_app_id_endpoint_endpoint_id_msg_get",
316
+ :header_params => header_params,
317
+ :query_params => query_params,
318
+ :form_params => form_params,
319
+ :body => post_body,
320
+ :auth_names => auth_names,
321
+ :return_type => return_type
322
+ )
323
+
324
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
325
+ if @api_client.config.debugging
326
+ @api_client.config.logger.debug "API called: MessageAttemptApi#list_attempted_messages_api_v1_app_app_id_endpoint_endpoint_id_msg_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
327
+ end
328
+ return data, status_code, headers
329
+ end
330
+
331
+ # List Attempts
332
+ # `msg_id`: Use a message id or a message `eventId`
333
+ # @param app_id [String]
334
+ # @param msg_id [String]
335
+ # @param [Hash] opts the optional parameters
336
+ # @option opts [String] :iterator
337
+ # @option opts [Integer] :limit (default to 50)
338
+ # @option opts [MessageStatus] :status
339
+ # @return [ListResponseMessageAttemptOut]
340
+ def list_attempts_api_v1_app_app_id_msg_msg_id_attempt_get(app_id, msg_id, opts = {})
341
+ data, _status_code, _headers = list_attempts_api_v1_app_app_id_msg_msg_id_attempt_get_with_http_info(app_id, msg_id, opts)
342
+ data
343
+ end
344
+
345
+ # List Attempts
346
+ # &#x60;msg_id&#x60;: Use a message id or a message &#x60;eventId&#x60;
347
+ # @param app_id [String]
348
+ # @param msg_id [String]
349
+ # @param [Hash] opts the optional parameters
350
+ # @option opts [String] :iterator
351
+ # @option opts [Integer] :limit
352
+ # @option opts [MessageStatus] :status
353
+ # @return [Array<(ListResponseMessageAttemptOut, Integer, Hash)>] ListResponseMessageAttemptOut data, response status code and response headers
354
+ def list_attempts_api_v1_app_app_id_msg_msg_id_attempt_get_with_http_info(app_id, msg_id, opts = {})
355
+ if @api_client.config.debugging
356
+ @api_client.config.logger.debug 'Calling API: MessageAttemptApi.list_attempts_api_v1_app_app_id_msg_msg_id_attempt_get ...'
357
+ end
358
+ # verify the required parameter 'app_id' is set
359
+ if @api_client.config.client_side_validation && app_id.nil?
360
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling MessageAttemptApi.list_attempts_api_v1_app_app_id_msg_msg_id_attempt_get"
361
+ end
362
+ if @api_client.config.client_side_validation && app_id.to_s.length > 256
363
+ fail ArgumentError, 'invalid value for "app_id" when calling MessageAttemptApi.list_attempts_api_v1_app_app_id_msg_msg_id_attempt_get, the character length must be smaller than or equal to 256.'
364
+ end
365
+
366
+ if @api_client.config.client_side_validation && app_id.to_s.length < 1
367
+ fail ArgumentError, 'invalid value for "app_id" when calling MessageAttemptApi.list_attempts_api_v1_app_app_id_msg_msg_id_attempt_get, the character length must be great than or equal to 1.'
368
+ end
369
+
370
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
371
+ if @api_client.config.client_side_validation && app_id !~ pattern
372
+ fail ArgumentError, "invalid value for 'app_id' when calling MessageAttemptApi.list_attempts_api_v1_app_app_id_msg_msg_id_attempt_get, must conform to the pattern #{pattern}."
373
+ end
374
+
375
+ # verify the required parameter 'msg_id' is set
376
+ if @api_client.config.client_side_validation && msg_id.nil?
377
+ fail ArgumentError, "Missing the required parameter 'msg_id' when calling MessageAttemptApi.list_attempts_api_v1_app_app_id_msg_msg_id_attempt_get"
378
+ end
379
+ if @api_client.config.client_side_validation && msg_id.to_s.length > 256
380
+ fail ArgumentError, 'invalid value for "msg_id" when calling MessageAttemptApi.list_attempts_api_v1_app_app_id_msg_msg_id_attempt_get, the character length must be smaller than or equal to 256.'
381
+ end
382
+
383
+ if @api_client.config.client_side_validation && msg_id.to_s.length < 1
384
+ fail ArgumentError, 'invalid value for "msg_id" when calling MessageAttemptApi.list_attempts_api_v1_app_app_id_msg_msg_id_attempt_get, the character length must be great than or equal to 1.'
385
+ end
386
+
387
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
388
+ if @api_client.config.client_side_validation && msg_id !~ pattern
389
+ fail ArgumentError, "invalid value for 'msg_id' when calling MessageAttemptApi.list_attempts_api_v1_app_app_id_msg_msg_id_attempt_get, must conform to the pattern #{pattern}."
390
+ end
391
+
392
+ # resource path
393
+ local_var_path = '/api/v1/app/{app_id}/msg/{msg_id}/attempt/'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'msg_id' + '}', CGI.escape(msg_id.to_s))
394
+
395
+ # query parameters
396
+ query_params = opts[:query_params] || {}
397
+ query_params[:'iterator'] = opts[:'iterator'] if !opts[:'iterator'].nil?
398
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
399
+ query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
400
+
401
+ # header parameters
402
+ header_params = opts[:header_params] || {}
403
+ # HTTP header 'Accept' (if needed)
404
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
405
+
406
+ # form parameters
407
+ form_params = opts[:form_params] || {}
408
+
409
+ # http body (model)
410
+ post_body = opts[:debug_body]
411
+
412
+ # return_type
413
+ return_type = opts[:debug_return_type] || 'ListResponseMessageAttemptOut'
414
+
415
+ # auth_names
416
+ auth_names = opts[:debug_auth_names] || ['HTTPBearer']
417
+
418
+ new_options = opts.merge(
419
+ :operation => :"MessageAttemptApi.list_attempts_api_v1_app_app_id_msg_msg_id_attempt_get",
420
+ :header_params => header_params,
421
+ :query_params => query_params,
422
+ :form_params => form_params,
423
+ :body => post_body,
424
+ :auth_names => auth_names,
425
+ :return_type => return_type
426
+ )
427
+
428
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
429
+ if @api_client.config.debugging
430
+ @api_client.config.logger.debug "API called: MessageAttemptApi#list_attempts_api_v1_app_app_id_msg_msg_id_attempt_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
431
+ end
432
+ return data, status_code, headers
433
+ end
434
+
435
+ # List Attempts For Endpoint
436
+ # List the message attempts for a particular endpoint. Returning the endpint. The `before` parameter lets you filter all items created before a certain date and is ignored if an iterator is passed.
437
+ # @param msg_id [String]
438
+ # @param app_id [String]
439
+ # @param endpoint_id [String]
440
+ # @param [Hash] opts the optional parameters
441
+ # @option opts [String] :iterator
442
+ # @option opts [Integer] :limit (default to 50)
443
+ # @option opts [Array<String>] :event_types
444
+ # @option opts [MessageStatus] :status
445
+ # @option opts [Time] :before
446
+ # @return [ListResponseMessageAttemptEndpointOut]
447
+ def list_attempts_for_endpoint_api_v1_app_app_id_msg_msg_id_endpoint_endpoint_id_attempt_get(msg_id, app_id, endpoint_id, opts = {})
448
+ data, _status_code, _headers = list_attempts_for_endpoint_api_v1_app_app_id_msg_msg_id_endpoint_endpoint_id_attempt_get_with_http_info(msg_id, app_id, endpoint_id, opts)
449
+ data
450
+ end
451
+
452
+ # List Attempts For Endpoint
453
+ # List the message attempts for a particular endpoint. Returning the endpint. The &#x60;before&#x60; parameter lets you filter all items created before a certain date and is ignored if an iterator is passed.
454
+ # @param msg_id [String]
455
+ # @param app_id [String]
456
+ # @param endpoint_id [String]
457
+ # @param [Hash] opts the optional parameters
458
+ # @option opts [String] :iterator
459
+ # @option opts [Integer] :limit
460
+ # @option opts [Array<String>] :event_types
461
+ # @option opts [MessageStatus] :status
462
+ # @option opts [Time] :before
463
+ # @return [Array<(ListResponseMessageAttemptEndpointOut, Integer, Hash)>] ListResponseMessageAttemptEndpointOut data, response status code and response headers
464
+ def list_attempts_for_endpoint_api_v1_app_app_id_msg_msg_id_endpoint_endpoint_id_attempt_get_with_http_info(msg_id, app_id, endpoint_id, opts = {})
465
+ if @api_client.config.debugging
466
+ @api_client.config.logger.debug 'Calling API: MessageAttemptApi.list_attempts_for_endpoint_api_v1_app_app_id_msg_msg_id_endpoint_endpoint_id_attempt_get ...'
467
+ end
468
+ # verify the required parameter 'msg_id' is set
469
+ if @api_client.config.client_side_validation && msg_id.nil?
470
+ fail ArgumentError, "Missing the required parameter 'msg_id' when calling MessageAttemptApi.list_attempts_for_endpoint_api_v1_app_app_id_msg_msg_id_endpoint_endpoint_id_attempt_get"
471
+ end
472
+ if @api_client.config.client_side_validation && msg_id.to_s.length > 256
473
+ fail ArgumentError, 'invalid value for "msg_id" when calling MessageAttemptApi.list_attempts_for_endpoint_api_v1_app_app_id_msg_msg_id_endpoint_endpoint_id_attempt_get, the character length must be smaller than or equal to 256.'
474
+ end
475
+
476
+ if @api_client.config.client_side_validation && msg_id.to_s.length < 1
477
+ fail ArgumentError, 'invalid value for "msg_id" when calling MessageAttemptApi.list_attempts_for_endpoint_api_v1_app_app_id_msg_msg_id_endpoint_endpoint_id_attempt_get, the character length must be great than or equal to 1.'
478
+ end
479
+
480
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
481
+ if @api_client.config.client_side_validation && msg_id !~ pattern
482
+ fail ArgumentError, "invalid value for 'msg_id' when calling MessageAttemptApi.list_attempts_for_endpoint_api_v1_app_app_id_msg_msg_id_endpoint_endpoint_id_attempt_get, must conform to the pattern #{pattern}."
483
+ end
484
+
485
+ # verify the required parameter 'app_id' is set
486
+ if @api_client.config.client_side_validation && app_id.nil?
487
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling MessageAttemptApi.list_attempts_for_endpoint_api_v1_app_app_id_msg_msg_id_endpoint_endpoint_id_attempt_get"
488
+ end
489
+ if @api_client.config.client_side_validation && app_id.to_s.length > 256
490
+ fail ArgumentError, 'invalid value for "app_id" when calling MessageAttemptApi.list_attempts_for_endpoint_api_v1_app_app_id_msg_msg_id_endpoint_endpoint_id_attempt_get, the character length must be smaller than or equal to 256.'
491
+ end
492
+
493
+ if @api_client.config.client_side_validation && app_id.to_s.length < 1
494
+ fail ArgumentError, 'invalid value for "app_id" when calling MessageAttemptApi.list_attempts_for_endpoint_api_v1_app_app_id_msg_msg_id_endpoint_endpoint_id_attempt_get, the character length must be great than or equal to 1.'
495
+ end
496
+
497
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
498
+ if @api_client.config.client_side_validation && app_id !~ pattern
499
+ fail ArgumentError, "invalid value for 'app_id' when calling MessageAttemptApi.list_attempts_for_endpoint_api_v1_app_app_id_msg_msg_id_endpoint_endpoint_id_attempt_get, must conform to the pattern #{pattern}."
500
+ end
501
+
502
+ # verify the required parameter 'endpoint_id' is set
503
+ if @api_client.config.client_side_validation && endpoint_id.nil?
504
+ fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling MessageAttemptApi.list_attempts_for_endpoint_api_v1_app_app_id_msg_msg_id_endpoint_endpoint_id_attempt_get"
505
+ end
506
+ if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
507
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling MessageAttemptApi.list_attempts_for_endpoint_api_v1_app_app_id_msg_msg_id_endpoint_endpoint_id_attempt_get, the character length must be smaller than or equal to 256.'
508
+ end
509
+
510
+ if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
511
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling MessageAttemptApi.list_attempts_for_endpoint_api_v1_app_app_id_msg_msg_id_endpoint_endpoint_id_attempt_get, the character length must be great than or equal to 1.'
512
+ end
513
+
514
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
515
+ if @api_client.config.client_side_validation && endpoint_id !~ pattern
516
+ fail ArgumentError, "invalid value for 'endpoint_id' when calling MessageAttemptApi.list_attempts_for_endpoint_api_v1_app_app_id_msg_msg_id_endpoint_endpoint_id_attempt_get, must conform to the pattern #{pattern}."
517
+ end
518
+
519
+ # resource path
520
+ local_var_path = '/api/v1/app/{app_id}/msg/{msg_id}/endpoint/{endpoint_id}/attempt/'.sub('{' + 'msg_id' + '}', CGI.escape(msg_id.to_s)).sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
521
+
522
+ # query parameters
523
+ query_params = opts[:query_params] || {}
524
+ query_params[:'iterator'] = opts[:'iterator'] if !opts[:'iterator'].nil?
525
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
526
+ query_params[:'event_types'] = @api_client.build_collection_param(opts[:'event_types'], :multi) if !opts[:'event_types'].nil?
527
+ query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
528
+ query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
529
+
530
+ # header parameters
531
+ header_params = opts[:header_params] || {}
532
+ # HTTP header 'Accept' (if needed)
533
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
534
+
535
+ # form parameters
536
+ form_params = opts[:form_params] || {}
537
+
538
+ # http body (model)
539
+ post_body = opts[:debug_body]
540
+
541
+ # return_type
542
+ return_type = opts[:debug_return_type] || 'ListResponseMessageAttemptEndpointOut'
543
+
544
+ # auth_names
545
+ auth_names = opts[:debug_auth_names] || ['HTTPBearer']
546
+
547
+ new_options = opts.merge(
548
+ :operation => :"MessageAttemptApi.list_attempts_for_endpoint_api_v1_app_app_id_msg_msg_id_endpoint_endpoint_id_attempt_get",
549
+ :header_params => header_params,
550
+ :query_params => query_params,
551
+ :form_params => form_params,
552
+ :body => post_body,
553
+ :auth_names => auth_names,
554
+ :return_type => return_type
555
+ )
556
+
557
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
558
+ if @api_client.config.debugging
559
+ @api_client.config.logger.debug "API called: MessageAttemptApi#list_attempts_for_endpoint_api_v1_app_app_id_msg_msg_id_endpoint_endpoint_id_attempt_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
560
+ end
561
+ return data, status_code, headers
562
+ end
563
+
564
+ # Resend Webhook
565
+ # Resend a message to the specified endpoint.
566
+ # @param endpoint_id [String]
567
+ # @param msg_id [String]
568
+ # @param app_id [String]
569
+ # @param [Hash] opts the optional parameters
570
+ # @return [nil]
571
+ def resend_webhook_api_v1_app_app_id_msg_msg_id_endpoint_endpoint_id_resend_post(endpoint_id, msg_id, app_id, opts = {})
572
+ resend_webhook_api_v1_app_app_id_msg_msg_id_endpoint_endpoint_id_resend_post_with_http_info(endpoint_id, msg_id, app_id, opts)
573
+ nil
574
+ end
575
+
576
+ # Resend Webhook
577
+ # Resend a message to the specified endpoint.
578
+ # @param endpoint_id [String]
579
+ # @param msg_id [String]
580
+ # @param app_id [String]
581
+ # @param [Hash] opts the optional parameters
582
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
583
+ def resend_webhook_api_v1_app_app_id_msg_msg_id_endpoint_endpoint_id_resend_post_with_http_info(endpoint_id, msg_id, app_id, opts = {})
584
+ if @api_client.config.debugging
585
+ @api_client.config.logger.debug 'Calling API: MessageAttemptApi.resend_webhook_api_v1_app_app_id_msg_msg_id_endpoint_endpoint_id_resend_post ...'
586
+ end
587
+ # verify the required parameter 'endpoint_id' is set
588
+ if @api_client.config.client_side_validation && endpoint_id.nil?
589
+ fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling MessageAttemptApi.resend_webhook_api_v1_app_app_id_msg_msg_id_endpoint_endpoint_id_resend_post"
590
+ end
591
+ if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
592
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling MessageAttemptApi.resend_webhook_api_v1_app_app_id_msg_msg_id_endpoint_endpoint_id_resend_post, the character length must be smaller than or equal to 256.'
593
+ end
594
+
595
+ if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
596
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling MessageAttemptApi.resend_webhook_api_v1_app_app_id_msg_msg_id_endpoint_endpoint_id_resend_post, the character length must be great than or equal to 1.'
597
+ end
598
+
599
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
600
+ if @api_client.config.client_side_validation && endpoint_id !~ pattern
601
+ fail ArgumentError, "invalid value for 'endpoint_id' when calling MessageAttemptApi.resend_webhook_api_v1_app_app_id_msg_msg_id_endpoint_endpoint_id_resend_post, must conform to the pattern #{pattern}."
602
+ end
603
+
604
+ # verify the required parameter 'msg_id' is set
605
+ if @api_client.config.client_side_validation && msg_id.nil?
606
+ fail ArgumentError, "Missing the required parameter 'msg_id' when calling MessageAttemptApi.resend_webhook_api_v1_app_app_id_msg_msg_id_endpoint_endpoint_id_resend_post"
607
+ end
608
+ if @api_client.config.client_side_validation && msg_id.to_s.length > 256
609
+ fail ArgumentError, 'invalid value for "msg_id" when calling MessageAttemptApi.resend_webhook_api_v1_app_app_id_msg_msg_id_endpoint_endpoint_id_resend_post, the character length must be smaller than or equal to 256.'
610
+ end
611
+
612
+ if @api_client.config.client_side_validation && msg_id.to_s.length < 1
613
+ fail ArgumentError, 'invalid value for "msg_id" when calling MessageAttemptApi.resend_webhook_api_v1_app_app_id_msg_msg_id_endpoint_endpoint_id_resend_post, the character length must be great than or equal to 1.'
614
+ end
615
+
616
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
617
+ if @api_client.config.client_side_validation && msg_id !~ pattern
618
+ fail ArgumentError, "invalid value for 'msg_id' when calling MessageAttemptApi.resend_webhook_api_v1_app_app_id_msg_msg_id_endpoint_endpoint_id_resend_post, must conform to the pattern #{pattern}."
619
+ end
620
+
621
+ # verify the required parameter 'app_id' is set
622
+ if @api_client.config.client_side_validation && app_id.nil?
623
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling MessageAttemptApi.resend_webhook_api_v1_app_app_id_msg_msg_id_endpoint_endpoint_id_resend_post"
624
+ end
625
+ if @api_client.config.client_side_validation && app_id.to_s.length > 256
626
+ fail ArgumentError, 'invalid value for "app_id" when calling MessageAttemptApi.resend_webhook_api_v1_app_app_id_msg_msg_id_endpoint_endpoint_id_resend_post, the character length must be smaller than or equal to 256.'
627
+ end
628
+
629
+ if @api_client.config.client_side_validation && app_id.to_s.length < 1
630
+ fail ArgumentError, 'invalid value for "app_id" when calling MessageAttemptApi.resend_webhook_api_v1_app_app_id_msg_msg_id_endpoint_endpoint_id_resend_post, the character length must be great than or equal to 1.'
631
+ end
632
+
633
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
634
+ if @api_client.config.client_side_validation && app_id !~ pattern
635
+ fail ArgumentError, "invalid value for 'app_id' when calling MessageAttemptApi.resend_webhook_api_v1_app_app_id_msg_msg_id_endpoint_endpoint_id_resend_post, must conform to the pattern #{pattern}."
636
+ end
637
+
638
+ # resource path
639
+ local_var_path = '/api/v1/app/{app_id}/msg/{msg_id}/endpoint/{endpoint_id}/resend/'.sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s)).sub('{' + 'msg_id' + '}', CGI.escape(msg_id.to_s)).sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
640
+
641
+ # query parameters
642
+ query_params = opts[:query_params] || {}
643
+
644
+ # header parameters
645
+ header_params = opts[:header_params] || {}
646
+ # HTTP header 'Accept' (if needed)
647
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
648
+
649
+ # form parameters
650
+ form_params = opts[:form_params] || {}
651
+
652
+ # http body (model)
653
+ post_body = opts[:debug_body]
654
+
655
+ # return_type
656
+ return_type = opts[:debug_return_type]
657
+
658
+ # auth_names
659
+ auth_names = opts[:debug_auth_names] || ['HTTPBearer']
660
+
661
+ new_options = opts.merge(
662
+ :operation => :"MessageAttemptApi.resend_webhook_api_v1_app_app_id_msg_msg_id_endpoint_endpoint_id_resend_post",
663
+ :header_params => header_params,
664
+ :query_params => query_params,
665
+ :form_params => form_params,
666
+ :body => post_body,
667
+ :auth_names => auth_names,
668
+ :return_type => return_type
669
+ )
670
+
671
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
672
+ if @api_client.config.debugging
673
+ @api_client.config.logger.debug "API called: MessageAttemptApi#resend_webhook_api_v1_app_app_id_msg_msg_id_endpoint_endpoint_id_resend_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
674
+ end
675
+ return data, status_code, headers
676
+ end
677
+ end
678
+ end