svix 0.83.1 → 0.84.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/svix/api/application_api.rb +251 -181
- data/lib/svix/api/authentication_api.rb +84 -152
- data/lib/svix/api/background_tasks_api.rb +165 -0
- data/lib/svix/api/endpoint_api.rb +591 -511
- data/lib/svix/api/environment_api.rb +15 -15
- data/lib/svix/api/environment_settings_api.rb +7 -10
- data/lib/svix/api/event_type_api.rb +160 -85
- data/lib/svix/api/health_api.rb +7 -10
- data/lib/svix/api/integration_api.rb +136 -143
- data/lib/svix/api/message_api.rb +103 -105
- data/lib/svix/api/message_attempt_api.rb +419 -419
- data/lib/svix/api/statistics_api.rb +110 -48
- data/lib/svix/api_client.rb +1 -1
- data/lib/svix/api_error.rb +1 -1
- data/lib/svix/application_api.rb +22 -22
- data/lib/svix/authentication_api.rb +3 -3
- data/lib/svix/configuration.rb +2 -1
- data/lib/svix/endpoint_api.rb +16 -16
- data/lib/svix/event_type_api.rb +19 -19
- data/lib/svix/integration_api.rb +26 -26
- data/lib/svix/message_api.rb +4 -4
- data/lib/svix/message_attempt_api.rb +8 -8
- data/lib/svix/models/app_portal_access_in.rb +2 -1
- data/lib/svix/models/app_portal_access_out.rb +1 -1
- data/lib/svix/models/app_usage_stats_in.rb +255 -0
- data/lib/svix/models/app_usage_stats_out.rb +251 -0
- data/lib/svix/models/application_in.rb +35 -2
- data/lib/svix/models/application_out.rb +23 -3
- data/lib/svix/models/application_patch.rb +300 -0
- data/lib/svix/models/application_stats.rb +3 -2
- data/lib/svix/models/application_token_expire_in.rb +1 -1
- data/lib/svix/models/attempt_statistics_data.rb +1 -1
- data/lib/svix/models/attempt_statistics_response.rb +1 -1
- data/lib/svix/models/{webhook_types.rb → background_task_out.rb} +41 -70
- data/lib/svix/models/background_task_status.rb +38 -0
- data/lib/svix/models/background_task_type.rb +38 -0
- data/lib/svix/models/border_radius_config.rb +1 -1
- data/lib/svix/models/border_radius_enum.rb +1 -1
- data/lib/svix/models/custom_color_palette.rb +1 -1
- data/lib/svix/models/custom_theme_override.rb +1 -1
- data/lib/svix/models/dashboard_access_out.rb +1 -1
- data/lib/svix/models/endpoint_created_event.rb +6 -1
- data/lib/svix/models/endpoint_created_event_data.rb +5 -3
- data/lib/svix/models/endpoint_deleted_event.rb +6 -1
- data/lib/svix/models/endpoint_deleted_event_data.rb +5 -3
- data/lib/svix/models/endpoint_disabled_event.rb +6 -1
- data/lib/svix/models/endpoint_disabled_event_data.rb +6 -3
- data/lib/svix/models/endpoint_headers_in.rb +1 -1
- data/lib/svix/models/endpoint_headers_out.rb +1 -1
- data/lib/svix/models/endpoint_headers_patch_in.rb +1 -1
- data/lib/svix/models/endpoint_in.rb +20 -11
- data/lib/svix/models/endpoint_message_out.rb +4 -1
- data/lib/svix/models/endpoint_out.rb +35 -16
- data/lib/svix/models/endpoint_patch.rb +406 -0
- data/lib/svix/models/endpoint_secret_out.rb +1 -1
- data/lib/svix/models/endpoint_secret_rotate_in.rb +3 -1
- data/lib/svix/models/endpoint_stats.rb +1 -1
- data/lib/svix/models/endpoint_transformation_in.rb +1 -3
- data/lib/svix/models/endpoint_transformation_out.rb +1 -1
- data/lib/svix/models/endpoint_transformation_simulate_in.rb +8 -1
- data/lib/svix/models/endpoint_transformation_simulate_out.rb +1 -1
- data/lib/svix/models/endpoint_update.rb +20 -11
- data/lib/svix/models/endpoint_updated_event.rb +6 -1
- data/lib/svix/models/endpoint_updated_event_data.rb +5 -3
- data/lib/svix/models/environment_in.rb +1 -1
- data/lib/svix/models/environment_out.rb +1 -1
- data/lib/svix/models/environment_settings_out.rb +1 -1
- data/lib/svix/models/event_example_in.rb +2 -1
- data/lib/svix/models/event_type_example_out.rb +5 -3
- data/lib/svix/models/event_type_in.rb +2 -1
- data/lib/svix/models/event_type_out.rb +2 -1
- data/lib/svix/models/event_type_patch.rb +275 -0
- data/lib/svix/models/event_type_schema_in.rb +1 -2
- data/lib/svix/models/event_type_update.rb +1 -1
- data/lib/svix/models/font_size_config.rb +1 -1
- data/lib/svix/models/http_error_out.rb +1 -1
- data/lib/svix/models/http_validation_error.rb +6 -1
- data/lib/svix/models/integration_in.rb +1 -1
- data/lib/svix/models/integration_key_out.rb +1 -1
- data/lib/svix/models/integration_out.rb +2 -1
- data/lib/svix/models/integration_update.rb +1 -1
- data/lib/svix/models/list_response_application_out.rb +1 -1
- data/lib/svix/models/list_response_application_stats.rb +16 -6
- data/lib/svix/models/list_response_background_task_out.rb +259 -0
- data/lib/svix/models/list_response_endpoint_message_out.rb +1 -1
- data/lib/svix/models/list_response_endpoint_out.rb +1 -1
- data/lib/svix/models/list_response_event_type_out.rb +1 -1
- data/lib/svix/models/list_response_integration_out.rb +16 -6
- data/lib/svix/models/list_response_message_attempt_endpoint_out.rb +1 -1
- data/lib/svix/models/list_response_message_attempt_out.rb +1 -1
- data/lib/svix/models/list_response_message_endpoint_out.rb +16 -6
- data/lib/svix/models/list_response_message_out.rb +1 -1
- data/lib/svix/models/message_attempt_endpoint_out.rb +4 -1
- data/lib/svix/models/message_attempt_exhausted_event.rb +6 -1
- data/lib/svix/models/message_attempt_exhausted_event_data.rb +7 -3
- data/lib/svix/models/message_attempt_failed_data.rb +2 -1
- data/lib/svix/models/message_attempt_failing_event.rb +6 -1
- data/lib/svix/models/message_attempt_failing_event_data.rb +7 -3
- data/lib/svix/models/message_attempt_headers_out.rb +28 -2
- data/lib/svix/models/message_attempt_out.rb +4 -1
- data/lib/svix/models/message_attempt_trigger_type.rb +1 -1
- data/lib/svix/models/message_endpoint_out.rb +47 -30
- data/lib/svix/models/message_in.rb +2 -2
- data/lib/svix/models/message_out.rb +3 -1
- data/lib/svix/models/message_status.rb +1 -1
- data/lib/svix/models/ordering.rb +1 -1
- data/lib/svix/models/recover_in.rb +1 -1
- data/lib/svix/models/{one_time_token_out.rb → recover_out.rb} +42 -14
- data/lib/svix/models/replay_in.rb +1 -1
- data/lib/svix/models/{one_time_token_in.rb → replay_out.rb} +42 -14
- data/lib/svix/models/settings_in.rb +1 -1
- data/lib/svix/models/settings_out.rb +1 -1
- data/lib/svix/models/statistics_period.rb +1 -1
- data/lib/svix/models/status_code_class.rb +1 -1
- data/lib/svix/models/transformation_http_method.rb +2 -2
- data/lib/svix/models/validation_error.rb +5 -1
- data/lib/svix/version.rb +1 -1
- metadata +14 -5
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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 user on your platform. - `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/). ## Idempotency Svix supports [idempotency](https://en.wikipedia.org/wiki/Idempotence) for safely retrying requests without accidentally performing the same operation twice. This is useful when an API call is disrupted in transit and you do not receive a response. To perform an idempotent request, pass the idempotency key in the `Idempotency-Key` header to the request. The idempotency key should be a unique value generated by the client. You can create the key in however way you like, though we suggest using UUID v4, or any other string with enough entropy to avoid collisions. Svix's idempotency works by saving the resulting status code and body of the first request made for any given idempotency key for any successful request. Subsequent requests with the same key return the same result. Please note that idempotency is only supported for `POST` requests. ## 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
5
|
|
6
|
-
The version of the OpenAPI document: 1.4
|
6
|
+
The version of the OpenAPI document: 1.4.1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.2.0
|
@@ -21,69 +21,67 @@ module Svix
|
|
21
21
|
end
|
22
22
|
# Delete attempt response body
|
23
23
|
# Deletes the given attempt's response body. Useful when an endpoint accidentally returned sensitive content.
|
24
|
-
# @param
|
25
|
-
# @param msg_id [String]
|
26
|
-
# @param
|
24
|
+
# @param app_id [String] The app's ID or UID
|
25
|
+
# @param msg_id [String] The msg's ID or UID
|
26
|
+
# @param attempt_id [String] The attempt's ID
|
27
27
|
# @param [Hash] opts the optional parameters
|
28
|
-
# @option opts [String] :idempotency_key The request's idempotency key
|
29
28
|
# @return [nil]
|
30
|
-
def
|
31
|
-
|
29
|
+
def v1_message_attempt_expunge_content(app_id, msg_id, attempt_id, opts = {})
|
30
|
+
v1_message_attempt_expunge_content_with_http_info(app_id, msg_id, attempt_id, opts)
|
32
31
|
nil
|
33
32
|
end
|
34
33
|
|
35
34
|
# Delete attempt response body
|
36
35
|
# Deletes the given attempt's response body. Useful when an endpoint accidentally returned sensitive content.
|
37
|
-
# @param
|
38
|
-
# @param msg_id [String]
|
39
|
-
# @param
|
36
|
+
# @param app_id [String] The app's ID or UID
|
37
|
+
# @param msg_id [String] The msg's ID or UID
|
38
|
+
# @param attempt_id [String] The attempt's ID
|
40
39
|
# @param [Hash] opts the optional parameters
|
41
|
-
# @option opts [String] :idempotency_key The request's idempotency key
|
42
40
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
43
|
-
def
|
41
|
+
def v1_message_attempt_expunge_content_with_http_info(app_id, msg_id, attempt_id, opts = {})
|
44
42
|
if @api_client.config.debugging
|
45
|
-
@api_client.config.logger.debug 'Calling API: MessageAttemptApi.
|
46
|
-
end
|
47
|
-
# verify the required parameter 'attempt_id' is set
|
48
|
-
if @api_client.config.client_side_validation && attempt_id.nil?
|
49
|
-
fail ArgumentError, "Missing the required parameter 'attempt_id' when calling MessageAttemptApi.expunge_attempt_content_api_v1_app_app_id_msg_msg_id_attempt_attempt_id_content_delete"
|
43
|
+
@api_client.config.logger.debug 'Calling API: MessageAttemptApi.v1_message_attempt_expunge_content ...'
|
50
44
|
end
|
51
|
-
# verify the required parameter '
|
52
|
-
if @api_client.config.client_side_validation &&
|
53
|
-
fail ArgumentError, "Missing the required parameter '
|
45
|
+
# verify the required parameter 'app_id' is set
|
46
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
47
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling MessageAttemptApi.v1_message_attempt_expunge_content"
|
54
48
|
end
|
55
|
-
if @api_client.config.client_side_validation &&
|
56
|
-
fail ArgumentError, 'invalid value for "
|
49
|
+
if @api_client.config.client_side_validation && app_id.to_s.length > 256
|
50
|
+
fail ArgumentError, 'invalid value for "app_id" when calling MessageAttemptApi.v1_message_attempt_expunge_content, the character length must be smaller than or equal to 256.'
|
57
51
|
end
|
58
52
|
|
59
|
-
if @api_client.config.client_side_validation &&
|
60
|
-
fail ArgumentError, 'invalid value for "
|
53
|
+
if @api_client.config.client_side_validation && app_id.to_s.length < 1
|
54
|
+
fail ArgumentError, 'invalid value for "app_id" when calling MessageAttemptApi.v1_message_attempt_expunge_content, the character length must be great than or equal to 1.'
|
61
55
|
end
|
62
56
|
|
63
57
|
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
64
|
-
if @api_client.config.client_side_validation &&
|
65
|
-
fail ArgumentError, "invalid value for '
|
58
|
+
if @api_client.config.client_side_validation && app_id !~ pattern
|
59
|
+
fail ArgumentError, "invalid value for 'app_id' when calling MessageAttemptApi.v1_message_attempt_expunge_content, must conform to the pattern #{pattern}."
|
66
60
|
end
|
67
61
|
|
68
|
-
# verify the required parameter '
|
69
|
-
if @api_client.config.client_side_validation &&
|
70
|
-
fail ArgumentError, "Missing the required parameter '
|
62
|
+
# verify the required parameter 'msg_id' is set
|
63
|
+
if @api_client.config.client_side_validation && msg_id.nil?
|
64
|
+
fail ArgumentError, "Missing the required parameter 'msg_id' when calling MessageAttemptApi.v1_message_attempt_expunge_content"
|
71
65
|
end
|
72
|
-
if @api_client.config.client_side_validation &&
|
73
|
-
fail ArgumentError, 'invalid value for "
|
66
|
+
if @api_client.config.client_side_validation && msg_id.to_s.length > 256
|
67
|
+
fail ArgumentError, 'invalid value for "msg_id" when calling MessageAttemptApi.v1_message_attempt_expunge_content, the character length must be smaller than or equal to 256.'
|
74
68
|
end
|
75
69
|
|
76
|
-
if @api_client.config.client_side_validation &&
|
77
|
-
fail ArgumentError, 'invalid value for "
|
70
|
+
if @api_client.config.client_side_validation && msg_id.to_s.length < 1
|
71
|
+
fail ArgumentError, 'invalid value for "msg_id" when calling MessageAttemptApi.v1_message_attempt_expunge_content, the character length must be great than or equal to 1.'
|
78
72
|
end
|
79
73
|
|
80
74
|
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
81
|
-
if @api_client.config.client_side_validation &&
|
82
|
-
fail ArgumentError, "invalid value for '
|
75
|
+
if @api_client.config.client_side_validation && msg_id !~ pattern
|
76
|
+
fail ArgumentError, "invalid value for 'msg_id' when calling MessageAttemptApi.v1_message_attempt_expunge_content, must conform to the pattern #{pattern}."
|
83
77
|
end
|
84
78
|
|
79
|
+
# verify the required parameter 'attempt_id' is set
|
80
|
+
if @api_client.config.client_side_validation && attempt_id.nil?
|
81
|
+
fail ArgumentError, "Missing the required parameter 'attempt_id' when calling MessageAttemptApi.v1_message_attempt_expunge_content"
|
82
|
+
end
|
85
83
|
# resource path
|
86
|
-
local_var_path = '/api/v1/app/{app_id}/msg/{msg_id}/attempt/{attempt_id}/content/'.sub('{' + '
|
84
|
+
local_var_path = '/api/v1/app/{app_id}/msg/{msg_id}/attempt/{attempt_id}/content/'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'msg_id' + '}', CGI.escape(msg_id.to_s)).sub('{' + 'attempt_id' + '}', CGI.escape(attempt_id.to_s))
|
87
85
|
|
88
86
|
# query parameters
|
89
87
|
query_params = opts[:query_params] || {}
|
@@ -92,7 +90,6 @@ module Svix
|
|
92
90
|
header_params = opts[:header_params] || {}
|
93
91
|
# HTTP header 'Accept' (if needed)
|
94
92
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
95
|
-
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
96
93
|
|
97
94
|
# form parameters
|
98
95
|
form_params = opts[:form_params] || {}
|
@@ -107,7 +104,7 @@ module Svix
|
|
107
104
|
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
108
105
|
|
109
106
|
new_options = opts.merge(
|
110
|
-
:operation => :"MessageAttemptApi.
|
107
|
+
:operation => :"MessageAttemptApi.v1_message_attempt_expunge_content",
|
111
108
|
:header_params => header_params,
|
112
109
|
:query_params => query_params,
|
113
110
|
:form_params => form_params,
|
@@ -118,76 +115,74 @@ module Svix
|
|
118
115
|
|
119
116
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
120
117
|
if @api_client.config.debugging
|
121
|
-
@api_client.config.logger.debug "API called: MessageAttemptApi#
|
118
|
+
@api_client.config.logger.debug "API called: MessageAttemptApi#v1_message_attempt_expunge_content\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
122
119
|
end
|
123
120
|
return data, status_code, headers
|
124
121
|
end
|
125
122
|
|
126
123
|
# Get Attempt
|
127
124
|
# `msg_id`: Use a message id or a message `eventId`
|
128
|
-
# @param
|
129
|
-
# @param msg_id [String]
|
130
|
-
# @param
|
125
|
+
# @param app_id [String] The app's ID or UID
|
126
|
+
# @param msg_id [String] The msg's ID or UID
|
127
|
+
# @param attempt_id [String] The attempt's ID
|
131
128
|
# @param [Hash] opts the optional parameters
|
132
|
-
# @option opts [String] :idempotency_key The request's idempotency key
|
133
129
|
# @return [MessageAttemptOut]
|
134
|
-
def
|
135
|
-
data, _status_code, _headers =
|
130
|
+
def v1_message_attempt_get(app_id, msg_id, attempt_id, opts = {})
|
131
|
+
data, _status_code, _headers = v1_message_attempt_get_with_http_info(app_id, msg_id, attempt_id, opts)
|
136
132
|
data
|
137
133
|
end
|
138
134
|
|
139
135
|
# Get Attempt
|
140
136
|
# `msg_id`: Use a message id or a message `eventId`
|
141
|
-
# @param
|
142
|
-
# @param msg_id [String]
|
143
|
-
# @param
|
137
|
+
# @param app_id [String] The app's ID or UID
|
138
|
+
# @param msg_id [String] The msg's ID or UID
|
139
|
+
# @param attempt_id [String] The attempt's ID
|
144
140
|
# @param [Hash] opts the optional parameters
|
145
|
-
# @option opts [String] :idempotency_key The request's idempotency key
|
146
141
|
# @return [Array<(MessageAttemptOut, Integer, Hash)>] MessageAttemptOut data, response status code and response headers
|
147
|
-
def
|
142
|
+
def v1_message_attempt_get_with_http_info(app_id, msg_id, attempt_id, opts = {})
|
148
143
|
if @api_client.config.debugging
|
149
|
-
@api_client.config.logger.debug 'Calling API: MessageAttemptApi.
|
144
|
+
@api_client.config.logger.debug 'Calling API: MessageAttemptApi.v1_message_attempt_get ...'
|
150
145
|
end
|
151
|
-
# verify the required parameter '
|
152
|
-
if @api_client.config.client_side_validation &&
|
153
|
-
fail ArgumentError, "Missing the required parameter '
|
154
|
-
end
|
155
|
-
# verify the required parameter 'msg_id' is set
|
156
|
-
if @api_client.config.client_side_validation && msg_id.nil?
|
157
|
-
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"
|
146
|
+
# verify the required parameter 'app_id' is set
|
147
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
148
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling MessageAttemptApi.v1_message_attempt_get"
|
158
149
|
end
|
159
|
-
if @api_client.config.client_side_validation &&
|
160
|
-
fail ArgumentError, 'invalid value for "
|
150
|
+
if @api_client.config.client_side_validation && app_id.to_s.length > 256
|
151
|
+
fail ArgumentError, 'invalid value for "app_id" when calling MessageAttemptApi.v1_message_attempt_get, the character length must be smaller than or equal to 256.'
|
161
152
|
end
|
162
153
|
|
163
|
-
if @api_client.config.client_side_validation &&
|
164
|
-
fail ArgumentError, 'invalid value for "
|
154
|
+
if @api_client.config.client_side_validation && app_id.to_s.length < 1
|
155
|
+
fail ArgumentError, 'invalid value for "app_id" when calling MessageAttemptApi.v1_message_attempt_get, the character length must be great than or equal to 1.'
|
165
156
|
end
|
166
157
|
|
167
158
|
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
168
|
-
if @api_client.config.client_side_validation &&
|
169
|
-
fail ArgumentError, "invalid value for '
|
159
|
+
if @api_client.config.client_side_validation && app_id !~ pattern
|
160
|
+
fail ArgumentError, "invalid value for 'app_id' when calling MessageAttemptApi.v1_message_attempt_get, must conform to the pattern #{pattern}."
|
170
161
|
end
|
171
162
|
|
172
|
-
# verify the required parameter '
|
173
|
-
if @api_client.config.client_side_validation &&
|
174
|
-
fail ArgumentError, "Missing the required parameter '
|
163
|
+
# verify the required parameter 'msg_id' is set
|
164
|
+
if @api_client.config.client_side_validation && msg_id.nil?
|
165
|
+
fail ArgumentError, "Missing the required parameter 'msg_id' when calling MessageAttemptApi.v1_message_attempt_get"
|
175
166
|
end
|
176
|
-
if @api_client.config.client_side_validation &&
|
177
|
-
fail ArgumentError, 'invalid value for "
|
167
|
+
if @api_client.config.client_side_validation && msg_id.to_s.length > 256
|
168
|
+
fail ArgumentError, 'invalid value for "msg_id" when calling MessageAttemptApi.v1_message_attempt_get, the character length must be smaller than or equal to 256.'
|
178
169
|
end
|
179
170
|
|
180
|
-
if @api_client.config.client_side_validation &&
|
181
|
-
fail ArgumentError, 'invalid value for "
|
171
|
+
if @api_client.config.client_side_validation && msg_id.to_s.length < 1
|
172
|
+
fail ArgumentError, 'invalid value for "msg_id" when calling MessageAttemptApi.v1_message_attempt_get, the character length must be great than or equal to 1.'
|
182
173
|
end
|
183
174
|
|
184
175
|
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
185
|
-
if @api_client.config.client_side_validation &&
|
186
|
-
fail ArgumentError, "invalid value for '
|
176
|
+
if @api_client.config.client_side_validation && msg_id !~ pattern
|
177
|
+
fail ArgumentError, "invalid value for 'msg_id' when calling MessageAttemptApi.v1_message_attempt_get, must conform to the pattern #{pattern}."
|
187
178
|
end
|
188
179
|
|
180
|
+
# verify the required parameter 'attempt_id' is set
|
181
|
+
if @api_client.config.client_side_validation && attempt_id.nil?
|
182
|
+
fail ArgumentError, "Missing the required parameter 'attempt_id' when calling MessageAttemptApi.v1_message_attempt_get"
|
183
|
+
end
|
189
184
|
# resource path
|
190
|
-
local_var_path = '/api/v1/app/{app_id}/msg/{msg_id}/attempt/{attempt_id}/'.sub('{' + '
|
185
|
+
local_var_path = '/api/v1/app/{app_id}/msg/{msg_id}/attempt/{attempt_id}/'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'msg_id' + '}', CGI.escape(msg_id.to_s)).sub('{' + 'attempt_id' + '}', CGI.escape(attempt_id.to_s))
|
191
186
|
|
192
187
|
# query parameters
|
193
188
|
query_params = opts[:query_params] || {}
|
@@ -196,7 +191,6 @@ module Svix
|
|
196
191
|
header_params = opts[:header_params] || {}
|
197
192
|
# HTTP header 'Accept' (if needed)
|
198
193
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
199
|
-
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
200
194
|
|
201
195
|
# form parameters
|
202
196
|
form_params = opts[:form_params] || {}
|
@@ -211,7 +205,7 @@ module Svix
|
|
211
205
|
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
212
206
|
|
213
207
|
new_options = opts.merge(
|
214
|
-
:operation => :"MessageAttemptApi.
|
208
|
+
:operation => :"MessageAttemptApi.v1_message_attempt_get",
|
215
209
|
:header_params => header_params,
|
216
210
|
:query_params => query_params,
|
217
211
|
:form_params => form_params,
|
@@ -222,73 +216,71 @@ module Svix
|
|
222
216
|
|
223
217
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
224
218
|
if @api_client.config.debugging
|
225
|
-
@api_client.config.logger.debug "API called: MessageAttemptApi#
|
219
|
+
@api_client.config.logger.debug "API called: MessageAttemptApi#v1_message_attempt_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
226
220
|
end
|
227
221
|
return data, status_code, headers
|
228
222
|
end
|
229
223
|
|
230
224
|
# Get Attempt Headers
|
231
225
|
# Calculate and return headers used on a given message attempt
|
232
|
-
# @param app_id [String]
|
233
|
-
# @param msg_id [String]
|
234
|
-
# @param attempt_id [String]
|
226
|
+
# @param app_id [String] The app's ID or UID
|
227
|
+
# @param msg_id [String] The msg's ID or UID
|
228
|
+
# @param attempt_id [String] The attempt's ID
|
235
229
|
# @param [Hash] opts the optional parameters
|
236
|
-
# @option opts [String] :idempotency_key The request's idempotency key
|
237
230
|
# @return [MessageAttemptHeadersOut]
|
238
|
-
def
|
239
|
-
data, _status_code, _headers =
|
231
|
+
def v1_message_attempt_get_headers(app_id, msg_id, attempt_id, opts = {})
|
232
|
+
data, _status_code, _headers = v1_message_attempt_get_headers_with_http_info(app_id, msg_id, attempt_id, opts)
|
240
233
|
data
|
241
234
|
end
|
242
235
|
|
243
236
|
# Get Attempt Headers
|
244
237
|
# Calculate and return headers used on a given message attempt
|
245
|
-
# @param app_id [String]
|
246
|
-
# @param msg_id [String]
|
247
|
-
# @param attempt_id [String]
|
238
|
+
# @param app_id [String] The app's ID or UID
|
239
|
+
# @param msg_id [String] The msg's ID or UID
|
240
|
+
# @param attempt_id [String] The attempt's ID
|
248
241
|
# @param [Hash] opts the optional parameters
|
249
|
-
# @option opts [String] :idempotency_key The request's idempotency key
|
250
242
|
# @return [Array<(MessageAttemptHeadersOut, Integer, Hash)>] MessageAttemptHeadersOut data, response status code and response headers
|
251
|
-
def
|
243
|
+
def v1_message_attempt_get_headers_with_http_info(app_id, msg_id, attempt_id, opts = {})
|
252
244
|
if @api_client.config.debugging
|
253
|
-
@api_client.config.logger.debug 'Calling API: MessageAttemptApi.
|
245
|
+
@api_client.config.logger.debug 'Calling API: MessageAttemptApi.v1_message_attempt_get_headers ...'
|
254
246
|
end
|
255
247
|
# verify the required parameter 'app_id' is set
|
256
248
|
if @api_client.config.client_side_validation && app_id.nil?
|
257
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling MessageAttemptApi.
|
249
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling MessageAttemptApi.v1_message_attempt_get_headers"
|
258
250
|
end
|
259
251
|
if @api_client.config.client_side_validation && app_id.to_s.length > 256
|
260
|
-
fail ArgumentError, 'invalid value for "app_id" when calling MessageAttemptApi.
|
252
|
+
fail ArgumentError, 'invalid value for "app_id" when calling MessageAttemptApi.v1_message_attempt_get_headers, the character length must be smaller than or equal to 256.'
|
261
253
|
end
|
262
254
|
|
263
255
|
if @api_client.config.client_side_validation && app_id.to_s.length < 1
|
264
|
-
fail ArgumentError, 'invalid value for "app_id" when calling MessageAttemptApi.
|
256
|
+
fail ArgumentError, 'invalid value for "app_id" when calling MessageAttemptApi.v1_message_attempt_get_headers, the character length must be great than or equal to 1.'
|
265
257
|
end
|
266
258
|
|
267
259
|
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
268
260
|
if @api_client.config.client_side_validation && app_id !~ pattern
|
269
|
-
fail ArgumentError, "invalid value for 'app_id' when calling MessageAttemptApi.
|
261
|
+
fail ArgumentError, "invalid value for 'app_id' when calling MessageAttemptApi.v1_message_attempt_get_headers, must conform to the pattern #{pattern}."
|
270
262
|
end
|
271
263
|
|
272
264
|
# verify the required parameter 'msg_id' is set
|
273
265
|
if @api_client.config.client_side_validation && msg_id.nil?
|
274
|
-
fail ArgumentError, "Missing the required parameter 'msg_id' when calling MessageAttemptApi.
|
266
|
+
fail ArgumentError, "Missing the required parameter 'msg_id' when calling MessageAttemptApi.v1_message_attempt_get_headers"
|
275
267
|
end
|
276
268
|
if @api_client.config.client_side_validation && msg_id.to_s.length > 256
|
277
|
-
fail ArgumentError, 'invalid value for "msg_id" when calling MessageAttemptApi.
|
269
|
+
fail ArgumentError, 'invalid value for "msg_id" when calling MessageAttemptApi.v1_message_attempt_get_headers, the character length must be smaller than or equal to 256.'
|
278
270
|
end
|
279
271
|
|
280
272
|
if @api_client.config.client_side_validation && msg_id.to_s.length < 1
|
281
|
-
fail ArgumentError, 'invalid value for "msg_id" when calling MessageAttemptApi.
|
273
|
+
fail ArgumentError, 'invalid value for "msg_id" when calling MessageAttemptApi.v1_message_attempt_get_headers, the character length must be great than or equal to 1.'
|
282
274
|
end
|
283
275
|
|
284
276
|
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
285
277
|
if @api_client.config.client_side_validation && msg_id !~ pattern
|
286
|
-
fail ArgumentError, "invalid value for 'msg_id' when calling MessageAttemptApi.
|
278
|
+
fail ArgumentError, "invalid value for 'msg_id' when calling MessageAttemptApi.v1_message_attempt_get_headers, must conform to the pattern #{pattern}."
|
287
279
|
end
|
288
280
|
|
289
281
|
# verify the required parameter 'attempt_id' is set
|
290
282
|
if @api_client.config.client_side_validation && attempt_id.nil?
|
291
|
-
fail ArgumentError, "Missing the required parameter 'attempt_id' when calling MessageAttemptApi.
|
283
|
+
fail ArgumentError, "Missing the required parameter 'attempt_id' when calling MessageAttemptApi.v1_message_attempt_get_headers"
|
292
284
|
end
|
293
285
|
# resource path
|
294
286
|
local_var_path = '/api/v1/app/{app_id}/msg/{msg_id}/attempt/{attempt_id}/headers/'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'msg_id' + '}', CGI.escape(msg_id.to_s)).sub('{' + 'attempt_id' + '}', CGI.escape(attempt_id.to_s))
|
@@ -300,7 +292,6 @@ module Svix
|
|
300
292
|
header_params = opts[:header_params] || {}
|
301
293
|
# HTTP header 'Accept' (if needed)
|
302
294
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
303
|
-
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
304
295
|
|
305
296
|
# form parameters
|
306
297
|
form_params = opts[:form_params] || {}
|
@@ -315,7 +306,7 @@ module Svix
|
|
315
306
|
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
316
307
|
|
317
308
|
new_options = opts.merge(
|
318
|
-
:operation => :"MessageAttemptApi.
|
309
|
+
:operation => :"MessageAttemptApi.v1_message_attempt_get_headers",
|
319
310
|
:header_params => header_params,
|
320
311
|
:query_params => query_params,
|
321
312
|
:form_params => form_params,
|
@@ -326,89 +317,90 @@ module Svix
|
|
326
317
|
|
327
318
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
328
319
|
if @api_client.config.debugging
|
329
|
-
@api_client.config.logger.debug "API called: MessageAttemptApi#
|
320
|
+
@api_client.config.logger.debug "API called: MessageAttemptApi#v1_message_attempt_get_headers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
330
321
|
end
|
331
322
|
return data, status_code, headers
|
332
323
|
end
|
333
324
|
|
334
325
|
# List Attempted Destinations
|
335
326
|
# `msg_id`: Use a message id or a message `eventId`
|
336
|
-
# @param
|
337
|
-
# @param
|
327
|
+
# @param app_id [String] The app's ID or UID
|
328
|
+
# @param msg_id [String] The msg's ID or UID
|
338
329
|
# @param [Hash] opts the optional parameters
|
330
|
+
# @option opts [Integer] :limit
|
339
331
|
# @option opts [String] :iterator
|
340
|
-
# @option opts [Integer] :limit (default to 50)
|
341
|
-
# @option opts [String] :idempotency_key The request's idempotency key
|
342
332
|
# @return [ListResponseMessageEndpointOut]
|
343
|
-
def
|
344
|
-
data, _status_code, _headers =
|
333
|
+
def v1_message_attempt_list_attempted_destinations(app_id, msg_id, opts = {})
|
334
|
+
data, _status_code, _headers = v1_message_attempt_list_attempted_destinations_with_http_info(app_id, msg_id, opts)
|
345
335
|
data
|
346
336
|
end
|
347
337
|
|
348
338
|
# List Attempted Destinations
|
349
339
|
# `msg_id`: Use a message id or a message `eventId`
|
350
|
-
# @param
|
351
|
-
# @param
|
340
|
+
# @param app_id [String] The app's ID or UID
|
341
|
+
# @param msg_id [String] The msg's ID or UID
|
352
342
|
# @param [Hash] opts the optional parameters
|
353
|
-
# @option opts [String] :iterator
|
354
343
|
# @option opts [Integer] :limit
|
355
|
-
# @option opts [String] :
|
344
|
+
# @option opts [String] :iterator
|
356
345
|
# @return [Array<(ListResponseMessageEndpointOut, Integer, Hash)>] ListResponseMessageEndpointOut data, response status code and response headers
|
357
|
-
def
|
346
|
+
def v1_message_attempt_list_attempted_destinations_with_http_info(app_id, msg_id, opts = {})
|
358
347
|
if @api_client.config.debugging
|
359
|
-
@api_client.config.logger.debug 'Calling API: MessageAttemptApi.
|
348
|
+
@api_client.config.logger.debug 'Calling API: MessageAttemptApi.v1_message_attempt_list_attempted_destinations ...'
|
360
349
|
end
|
361
|
-
# verify the required parameter '
|
362
|
-
if @api_client.config.client_side_validation &&
|
363
|
-
fail ArgumentError, "Missing the required parameter '
|
350
|
+
# verify the required parameter 'app_id' is set
|
351
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
352
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling MessageAttemptApi.v1_message_attempt_list_attempted_destinations"
|
364
353
|
end
|
365
|
-
if @api_client.config.client_side_validation &&
|
366
|
-
fail ArgumentError, 'invalid value for "
|
354
|
+
if @api_client.config.client_side_validation && app_id.to_s.length > 256
|
355
|
+
fail ArgumentError, 'invalid value for "app_id" when calling MessageAttemptApi.v1_message_attempt_list_attempted_destinations, the character length must be smaller than or equal to 256.'
|
367
356
|
end
|
368
357
|
|
369
|
-
if @api_client.config.client_side_validation &&
|
370
|
-
fail ArgumentError, 'invalid value for "
|
358
|
+
if @api_client.config.client_side_validation && app_id.to_s.length < 1
|
359
|
+
fail ArgumentError, 'invalid value for "app_id" when calling MessageAttemptApi.v1_message_attempt_list_attempted_destinations, the character length must be great than or equal to 1.'
|
371
360
|
end
|
372
361
|
|
373
362
|
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
374
|
-
if @api_client.config.client_side_validation &&
|
375
|
-
fail ArgumentError, "invalid value for '
|
363
|
+
if @api_client.config.client_side_validation && app_id !~ pattern
|
364
|
+
fail ArgumentError, "invalid value for 'app_id' when calling MessageAttemptApi.v1_message_attempt_list_attempted_destinations, must conform to the pattern #{pattern}."
|
376
365
|
end
|
377
366
|
|
378
|
-
# verify the required parameter '
|
379
|
-
if @api_client.config.client_side_validation &&
|
380
|
-
fail ArgumentError, "Missing the required parameter '
|
367
|
+
# verify the required parameter 'msg_id' is set
|
368
|
+
if @api_client.config.client_side_validation && msg_id.nil?
|
369
|
+
fail ArgumentError, "Missing the required parameter 'msg_id' when calling MessageAttemptApi.v1_message_attempt_list_attempted_destinations"
|
381
370
|
end
|
382
|
-
if @api_client.config.client_side_validation &&
|
383
|
-
fail ArgumentError, 'invalid value for "
|
371
|
+
if @api_client.config.client_side_validation && msg_id.to_s.length > 256
|
372
|
+
fail ArgumentError, 'invalid value for "msg_id" when calling MessageAttemptApi.v1_message_attempt_list_attempted_destinations, the character length must be smaller than or equal to 256.'
|
384
373
|
end
|
385
374
|
|
386
|
-
if @api_client.config.client_side_validation &&
|
387
|
-
fail ArgumentError, 'invalid value for "
|
375
|
+
if @api_client.config.client_side_validation && msg_id.to_s.length < 1
|
376
|
+
fail ArgumentError, 'invalid value for "msg_id" when calling MessageAttemptApi.v1_message_attempt_list_attempted_destinations, the character length must be great than or equal to 1.'
|
388
377
|
end
|
389
378
|
|
390
379
|
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
391
|
-
if @api_client.config.client_side_validation &&
|
392
|
-
fail ArgumentError, "invalid value for '
|
380
|
+
if @api_client.config.client_side_validation && msg_id !~ pattern
|
381
|
+
fail ArgumentError, "invalid value for 'msg_id' when calling MessageAttemptApi.v1_message_attempt_list_attempted_destinations, must conform to the pattern #{pattern}."
|
393
382
|
end
|
394
383
|
|
395
384
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 250
|
396
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling MessageAttemptApi.
|
385
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling MessageAttemptApi.v1_message_attempt_list_attempted_destinations, must be smaller than or equal to 250.'
|
386
|
+
end
|
387
|
+
|
388
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
389
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling MessageAttemptApi.v1_message_attempt_list_attempted_destinations, must be greater than or equal to 1.'
|
397
390
|
end
|
398
391
|
|
399
392
|
# resource path
|
400
|
-
local_var_path = '/api/v1/app/{app_id}/msg/{msg_id}/endpoint/'.sub('{' + '
|
393
|
+
local_var_path = '/api/v1/app/{app_id}/msg/{msg_id}/endpoint/'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'msg_id' + '}', CGI.escape(msg_id.to_s))
|
401
394
|
|
402
395
|
# query parameters
|
403
396
|
query_params = opts[:query_params] || {}
|
404
|
-
query_params[:'iterator'] = opts[:'iterator'] if !opts[:'iterator'].nil?
|
405
397
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
398
|
+
query_params[:'iterator'] = opts[:'iterator'] if !opts[:'iterator'].nil?
|
406
399
|
|
407
400
|
# header parameters
|
408
401
|
header_params = opts[:header_params] || {}
|
409
402
|
# HTTP header 'Accept' (if needed)
|
410
403
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
411
|
-
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
412
404
|
|
413
405
|
# form parameters
|
414
406
|
form_params = opts[:form_params] || {}
|
@@ -423,7 +415,7 @@ module Svix
|
|
423
415
|
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
424
416
|
|
425
417
|
new_options = opts.merge(
|
426
|
-
:operation => :"MessageAttemptApi.
|
418
|
+
:operation => :"MessageAttemptApi.v1_message_attempt_list_attempted_destinations",
|
427
419
|
:header_params => header_params,
|
428
420
|
:query_params => query_params,
|
429
421
|
:form_params => form_params,
|
@@ -434,100 +426,102 @@ module Svix
|
|
434
426
|
|
435
427
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
436
428
|
if @api_client.config.debugging
|
437
|
-
@api_client.config.logger.debug "API called: MessageAttemptApi#
|
429
|
+
@api_client.config.logger.debug "API called: MessageAttemptApi#v1_message_attempt_list_attempted_destinations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
438
430
|
end
|
439
431
|
return data, status_code, headers
|
440
432
|
end
|
441
433
|
|
442
434
|
# List Attempted Messages
|
443
435
|
# List messages for a particular endpoint. Additionally includes metadata about the latest message attempt. The `before` parameter lets you filter all items created before a certain date and is ignored if an iterator is passed.
|
444
|
-
# @param
|
445
|
-
# @param
|
436
|
+
# @param app_id [String] The app's ID or UID
|
437
|
+
# @param endpoint_id [String] The ep's ID or UID
|
446
438
|
# @param [Hash] opts the optional parameters
|
447
|
-
# @option opts [
|
448
|
-
# @option opts [
|
439
|
+
# @option opts [Integer] :limit
|
440
|
+
# @option opts [String] :iterator The msg's ID
|
449
441
|
# @option opts [String] :channel
|
450
442
|
# @option opts [MessageStatus] :status
|
451
443
|
# @option opts [Time] :before
|
452
444
|
# @option opts [Time] :after
|
453
|
-
# @option opts [String] :idempotency_key The request's idempotency key
|
454
445
|
# @return [ListResponseEndpointMessageOut]
|
455
|
-
def
|
456
|
-
data, _status_code, _headers =
|
446
|
+
def v1_message_attempt_list_attempted_messages(app_id, endpoint_id, opts = {})
|
447
|
+
data, _status_code, _headers = v1_message_attempt_list_attempted_messages_with_http_info(app_id, endpoint_id, opts)
|
457
448
|
data
|
458
449
|
end
|
459
450
|
|
460
451
|
# List Attempted Messages
|
461
452
|
# List messages for a particular endpoint. Additionally includes metadata about the latest message attempt. The `before` parameter lets you filter all items created before a certain date and is ignored if an iterator is passed.
|
462
|
-
# @param
|
463
|
-
# @param
|
453
|
+
# @param app_id [String] The app's ID or UID
|
454
|
+
# @param endpoint_id [String] The ep's ID or UID
|
464
455
|
# @param [Hash] opts the optional parameters
|
465
|
-
# @option opts [String] :iterator
|
466
456
|
# @option opts [Integer] :limit
|
457
|
+
# @option opts [String] :iterator The msg's ID
|
467
458
|
# @option opts [String] :channel
|
468
459
|
# @option opts [MessageStatus] :status
|
469
460
|
# @option opts [Time] :before
|
470
461
|
# @option opts [Time] :after
|
471
|
-
# @option opts [String] :idempotency_key The request's idempotency key
|
472
462
|
# @return [Array<(ListResponseEndpointMessageOut, Integer, Hash)>] ListResponseEndpointMessageOut data, response status code and response headers
|
473
|
-
def
|
463
|
+
def v1_message_attempt_list_attempted_messages_with_http_info(app_id, endpoint_id, opts = {})
|
474
464
|
if @api_client.config.debugging
|
475
|
-
@api_client.config.logger.debug 'Calling API: MessageAttemptApi.
|
465
|
+
@api_client.config.logger.debug 'Calling API: MessageAttemptApi.v1_message_attempt_list_attempted_messages ...'
|
476
466
|
end
|
477
|
-
# verify the required parameter '
|
478
|
-
if @api_client.config.client_side_validation &&
|
479
|
-
fail ArgumentError, "Missing the required parameter '
|
467
|
+
# verify the required parameter 'app_id' is set
|
468
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
469
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling MessageAttemptApi.v1_message_attempt_list_attempted_messages"
|
480
470
|
end
|
481
|
-
if @api_client.config.client_side_validation &&
|
482
|
-
fail ArgumentError, 'invalid value for "
|
471
|
+
if @api_client.config.client_side_validation && app_id.to_s.length > 256
|
472
|
+
fail ArgumentError, 'invalid value for "app_id" when calling MessageAttemptApi.v1_message_attempt_list_attempted_messages, the character length must be smaller than or equal to 256.'
|
483
473
|
end
|
484
474
|
|
485
|
-
if @api_client.config.client_side_validation &&
|
486
|
-
fail ArgumentError, 'invalid value for "
|
475
|
+
if @api_client.config.client_side_validation && app_id.to_s.length < 1
|
476
|
+
fail ArgumentError, 'invalid value for "app_id" when calling MessageAttemptApi.v1_message_attempt_list_attempted_messages, the character length must be great than or equal to 1.'
|
487
477
|
end
|
488
478
|
|
489
479
|
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
490
|
-
if @api_client.config.client_side_validation &&
|
491
|
-
fail ArgumentError, "invalid value for '
|
480
|
+
if @api_client.config.client_side_validation && app_id !~ pattern
|
481
|
+
fail ArgumentError, "invalid value for 'app_id' when calling MessageAttemptApi.v1_message_attempt_list_attempted_messages, must conform to the pattern #{pattern}."
|
492
482
|
end
|
493
483
|
|
494
|
-
# verify the required parameter '
|
495
|
-
if @api_client.config.client_side_validation &&
|
496
|
-
fail ArgumentError, "Missing the required parameter '
|
484
|
+
# verify the required parameter 'endpoint_id' is set
|
485
|
+
if @api_client.config.client_side_validation && endpoint_id.nil?
|
486
|
+
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling MessageAttemptApi.v1_message_attempt_list_attempted_messages"
|
497
487
|
end
|
498
|
-
if @api_client.config.client_side_validation &&
|
499
|
-
fail ArgumentError, 'invalid value for "
|
488
|
+
if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
|
489
|
+
fail ArgumentError, 'invalid value for "endpoint_id" when calling MessageAttemptApi.v1_message_attempt_list_attempted_messages, the character length must be smaller than or equal to 256.'
|
500
490
|
end
|
501
491
|
|
502
|
-
if @api_client.config.client_side_validation &&
|
503
|
-
fail ArgumentError, 'invalid value for "
|
492
|
+
if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
|
493
|
+
fail ArgumentError, 'invalid value for "endpoint_id" when calling MessageAttemptApi.v1_message_attempt_list_attempted_messages, the character length must be great than or equal to 1.'
|
504
494
|
end
|
505
495
|
|
506
496
|
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
507
|
-
if @api_client.config.client_side_validation &&
|
508
|
-
fail ArgumentError, "invalid value for '
|
497
|
+
if @api_client.config.client_side_validation && endpoint_id !~ pattern
|
498
|
+
fail ArgumentError, "invalid value for 'endpoint_id' when calling MessageAttemptApi.v1_message_attempt_list_attempted_messages, must conform to the pattern #{pattern}."
|
509
499
|
end
|
510
500
|
|
511
501
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 250
|
512
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling MessageAttemptApi.
|
502
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling MessageAttemptApi.v1_message_attempt_list_attempted_messages, must be smaller than or equal to 250.'
|
503
|
+
end
|
504
|
+
|
505
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
506
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling MessageAttemptApi.v1_message_attempt_list_attempted_messages, must be greater than or equal to 1.'
|
513
507
|
end
|
514
508
|
|
515
509
|
if @api_client.config.client_side_validation && !opts[:'channel'].nil? && opts[:'channel'].to_s.length > 128
|
516
|
-
fail ArgumentError, 'invalid value for "opts[:"channel"]" when calling MessageAttemptApi.
|
510
|
+
fail ArgumentError, 'invalid value for "opts[:"channel"]" when calling MessageAttemptApi.v1_message_attempt_list_attempted_messages, the character length must be smaller than or equal to 128.'
|
517
511
|
end
|
518
512
|
|
519
513
|
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
520
514
|
if @api_client.config.client_side_validation && !opts[:'channel'].nil? && opts[:'channel'] !~ pattern
|
521
|
-
fail ArgumentError, "invalid value for 'opts[:\"channel\"]' when calling MessageAttemptApi.
|
515
|
+
fail ArgumentError, "invalid value for 'opts[:\"channel\"]' when calling MessageAttemptApi.v1_message_attempt_list_attempted_messages, must conform to the pattern #{pattern}."
|
522
516
|
end
|
523
517
|
|
524
518
|
# resource path
|
525
|
-
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/msg/'.sub('{' + '
|
519
|
+
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/msg/'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
526
520
|
|
527
521
|
# query parameters
|
528
522
|
query_params = opts[:query_params] || {}
|
529
|
-
query_params[:'iterator'] = opts[:'iterator'] if !opts[:'iterator'].nil?
|
530
523
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
524
|
+
query_params[:'iterator'] = opts[:'iterator'] if !opts[:'iterator'].nil?
|
531
525
|
query_params[:'channel'] = opts[:'channel'] if !opts[:'channel'].nil?
|
532
526
|
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
533
527
|
query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
|
@@ -537,7 +531,6 @@ module Svix
|
|
537
531
|
header_params = opts[:header_params] || {}
|
538
532
|
# HTTP header 'Accept' (if needed)
|
539
533
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
540
|
-
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
541
534
|
|
542
535
|
# form parameters
|
543
536
|
form_params = opts[:form_params] || {}
|
@@ -552,7 +545,7 @@ module Svix
|
|
552
545
|
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
553
546
|
|
554
547
|
new_options = opts.merge(
|
555
|
-
:operation => :"MessageAttemptApi.
|
548
|
+
:operation => :"MessageAttemptApi.v1_message_attempt_list_attempted_messages",
|
556
549
|
:header_params => header_params,
|
557
550
|
:query_params => query_params,
|
558
551
|
:form_params => form_params,
|
@@ -563,129 +556,117 @@ module Svix
|
|
563
556
|
|
564
557
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
565
558
|
if @api_client.config.debugging
|
566
|
-
@api_client.config.logger.debug "API called: MessageAttemptApi#
|
559
|
+
@api_client.config.logger.debug "API called: MessageAttemptApi#v1_message_attempt_list_attempted_messages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
567
560
|
end
|
568
561
|
return data, status_code, headers
|
569
562
|
end
|
570
563
|
|
571
|
-
# List Attempts
|
572
|
-
#
|
573
|
-
# @param app_id [String]
|
574
|
-
# @param
|
564
|
+
# List Attempts By Endpoint
|
565
|
+
# List attempts by endpoint id
|
566
|
+
# @param app_id [String] The app's ID or UID
|
567
|
+
# @param endpoint_id [String] The ep's ID or UID
|
575
568
|
# @param [Hash] opts the optional parameters
|
576
|
-
# @option opts [
|
577
|
-
# @option opts [
|
578
|
-
# @option opts [String] :endpoint_id
|
579
|
-
# @option opts [Array<String>] :event_types
|
580
|
-
# @option opts [String] :channel
|
569
|
+
# @option opts [Integer] :limit
|
570
|
+
# @option opts [String] :iterator The attempt's ID
|
581
571
|
# @option opts [MessageStatus] :status
|
572
|
+
# @option opts [StatusCodeClass] :status_code_class
|
573
|
+
# @option opts [String] :channel
|
582
574
|
# @option opts [Time] :before
|
583
575
|
# @option opts [Time] :after
|
584
|
-
# @option opts [String] :
|
576
|
+
# @option opts [Array<String>] :event_types
|
585
577
|
# @return [ListResponseMessageAttemptOut]
|
586
|
-
def
|
587
|
-
data, _status_code, _headers =
|
578
|
+
def v1_message_attempt_list_by_endpoint(app_id, endpoint_id, opts = {})
|
579
|
+
data, _status_code, _headers = v1_message_attempt_list_by_endpoint_with_http_info(app_id, endpoint_id, opts)
|
588
580
|
data
|
589
581
|
end
|
590
582
|
|
591
|
-
# List Attempts
|
592
|
-
#
|
593
|
-
# @param app_id [String]
|
594
|
-
# @param
|
583
|
+
# List Attempts By Endpoint
|
584
|
+
# List attempts by endpoint id
|
585
|
+
# @param app_id [String] The app's ID or UID
|
586
|
+
# @param endpoint_id [String] The ep's ID or UID
|
595
587
|
# @param [Hash] opts the optional parameters
|
596
|
-
# @option opts [String] :iterator
|
597
588
|
# @option opts [Integer] :limit
|
598
|
-
# @option opts [String] :
|
599
|
-
# @option opts [Array<String>] :event_types
|
600
|
-
# @option opts [String] :channel
|
589
|
+
# @option opts [String] :iterator The attempt's ID
|
601
590
|
# @option opts [MessageStatus] :status
|
591
|
+
# @option opts [StatusCodeClass] :status_code_class
|
592
|
+
# @option opts [String] :channel
|
602
593
|
# @option opts [Time] :before
|
603
594
|
# @option opts [Time] :after
|
604
|
-
# @option opts [String] :
|
595
|
+
# @option opts [Array<String>] :event_types
|
605
596
|
# @return [Array<(ListResponseMessageAttemptOut, Integer, Hash)>] ListResponseMessageAttemptOut data, response status code and response headers
|
606
|
-
def
|
597
|
+
def v1_message_attempt_list_by_endpoint_with_http_info(app_id, endpoint_id, opts = {})
|
607
598
|
if @api_client.config.debugging
|
608
|
-
@api_client.config.logger.debug 'Calling API: MessageAttemptApi.
|
599
|
+
@api_client.config.logger.debug 'Calling API: MessageAttemptApi.v1_message_attempt_list_by_endpoint ...'
|
609
600
|
end
|
610
601
|
# verify the required parameter 'app_id' is set
|
611
602
|
if @api_client.config.client_side_validation && app_id.nil?
|
612
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling MessageAttemptApi.
|
603
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint"
|
613
604
|
end
|
614
605
|
if @api_client.config.client_side_validation && app_id.to_s.length > 256
|
615
|
-
fail ArgumentError, 'invalid value for "app_id" when calling MessageAttemptApi.
|
606
|
+
fail ArgumentError, 'invalid value for "app_id" when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint, the character length must be smaller than or equal to 256.'
|
616
607
|
end
|
617
608
|
|
618
609
|
if @api_client.config.client_side_validation && app_id.to_s.length < 1
|
619
|
-
fail ArgumentError, 'invalid value for "app_id" when calling MessageAttemptApi.
|
610
|
+
fail ArgumentError, 'invalid value for "app_id" when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint, the character length must be great than or equal to 1.'
|
620
611
|
end
|
621
612
|
|
622
613
|
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
623
614
|
if @api_client.config.client_side_validation && app_id !~ pattern
|
624
|
-
fail ArgumentError, "invalid value for 'app_id' when calling MessageAttemptApi.
|
615
|
+
fail ArgumentError, "invalid value for 'app_id' when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint, must conform to the pattern #{pattern}."
|
625
616
|
end
|
626
617
|
|
627
|
-
# verify the required parameter '
|
628
|
-
if @api_client.config.client_side_validation &&
|
629
|
-
fail ArgumentError, "Missing the required parameter '
|
618
|
+
# verify the required parameter 'endpoint_id' is set
|
619
|
+
if @api_client.config.client_side_validation && endpoint_id.nil?
|
620
|
+
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint"
|
630
621
|
end
|
631
|
-
if @api_client.config.client_side_validation &&
|
632
|
-
fail ArgumentError, 'invalid value for "
|
622
|
+
if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
|
623
|
+
fail ArgumentError, 'invalid value for "endpoint_id" when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint, the character length must be smaller than or equal to 256.'
|
633
624
|
end
|
634
625
|
|
635
|
-
if @api_client.config.client_side_validation &&
|
636
|
-
fail ArgumentError, 'invalid value for "
|
626
|
+
if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
|
627
|
+
fail ArgumentError, 'invalid value for "endpoint_id" when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint, the character length must be great than or equal to 1.'
|
637
628
|
end
|
638
629
|
|
639
630
|
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
640
|
-
if @api_client.config.client_side_validation &&
|
641
|
-
fail ArgumentError, "invalid value for '
|
631
|
+
if @api_client.config.client_side_validation && endpoint_id !~ pattern
|
632
|
+
fail ArgumentError, "invalid value for 'endpoint_id' when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint, must conform to the pattern #{pattern}."
|
642
633
|
end
|
643
634
|
|
644
635
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 250
|
645
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling MessageAttemptApi.
|
636
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint, must be smaller than or equal to 250.'
|
646
637
|
end
|
647
638
|
|
648
|
-
if @api_client.config.client_side_validation && !opts[:'
|
649
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
650
|
-
end
|
651
|
-
|
652
|
-
if @api_client.config.client_side_validation && !opts[:'endpoint_id'].nil? && opts[:'endpoint_id'].to_s.length < 1
|
653
|
-
fail ArgumentError, 'invalid value for "opts[:"endpoint_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.'
|
654
|
-
end
|
655
|
-
|
656
|
-
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
657
|
-
if @api_client.config.client_side_validation && !opts[:'endpoint_id'].nil? && opts[:'endpoint_id'] !~ pattern
|
658
|
-
fail ArgumentError, "invalid value for 'opts[:\"endpoint_id\"]' when calling MessageAttemptApi.list_attempts_api_v1_app_app_id_msg_msg_id_attempt_get, must conform to the pattern #{pattern}."
|
639
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
640
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint, must be greater than or equal to 1.'
|
659
641
|
end
|
660
642
|
|
661
643
|
if @api_client.config.client_side_validation && !opts[:'channel'].nil? && opts[:'channel'].to_s.length > 128
|
662
|
-
fail ArgumentError, 'invalid value for "opts[:"channel"]" when calling MessageAttemptApi.
|
644
|
+
fail ArgumentError, 'invalid value for "opts[:"channel"]" when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint, the character length must be smaller than or equal to 128.'
|
663
645
|
end
|
664
646
|
|
665
647
|
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
666
648
|
if @api_client.config.client_side_validation && !opts[:'channel'].nil? && opts[:'channel'] !~ pattern
|
667
|
-
fail ArgumentError, "invalid value for 'opts[:\"channel\"]' when calling MessageAttemptApi.
|
649
|
+
fail ArgumentError, "invalid value for 'opts[:\"channel\"]' when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint, must conform to the pattern #{pattern}."
|
668
650
|
end
|
669
651
|
|
670
652
|
# resource path
|
671
|
-
local_var_path = '/api/v1/app/{app_id}/
|
653
|
+
local_var_path = '/api/v1/app/{app_id}/attempt/endpoint/{endpoint_id}/'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
672
654
|
|
673
655
|
# query parameters
|
674
656
|
query_params = opts[:query_params] || {}
|
675
|
-
query_params[:'iterator'] = opts[:'iterator'] if !opts[:'iterator'].nil?
|
676
657
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
677
|
-
query_params[:'
|
678
|
-
query_params[:'event_types'] = @api_client.build_collection_param(opts[:'event_types'], :multi) if !opts[:'event_types'].nil?
|
679
|
-
query_params[:'channel'] = opts[:'channel'] if !opts[:'channel'].nil?
|
658
|
+
query_params[:'iterator'] = opts[:'iterator'] if !opts[:'iterator'].nil?
|
680
659
|
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
660
|
+
query_params[:'status_code_class'] = opts[:'status_code_class'] if !opts[:'status_code_class'].nil?
|
661
|
+
query_params[:'channel'] = opts[:'channel'] if !opts[:'channel'].nil?
|
681
662
|
query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
|
682
663
|
query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
|
664
|
+
query_params[:'event_types'] = @api_client.build_collection_param(opts[:'event_types'], :multi) if !opts[:'event_types'].nil?
|
683
665
|
|
684
666
|
# header parameters
|
685
667
|
header_params = opts[:header_params] || {}
|
686
668
|
# HTTP header 'Accept' (if needed)
|
687
669
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
688
|
-
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
689
670
|
|
690
671
|
# form parameters
|
691
672
|
form_params = opts[:form_params] || {}
|
@@ -700,7 +681,7 @@ module Svix
|
|
700
681
|
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
701
682
|
|
702
683
|
new_options = opts.merge(
|
703
|
-
:operation => :"MessageAttemptApi.
|
684
|
+
:operation => :"MessageAttemptApi.v1_message_attempt_list_by_endpoint",
|
704
685
|
:header_params => header_params,
|
705
686
|
:query_params => query_params,
|
706
687
|
:form_params => form_params,
|
@@ -711,116 +692,133 @@ module Svix
|
|
711
692
|
|
712
693
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
713
694
|
if @api_client.config.debugging
|
714
|
-
@api_client.config.logger.debug "API called: MessageAttemptApi#
|
695
|
+
@api_client.config.logger.debug "API called: MessageAttemptApi#v1_message_attempt_list_by_endpoint\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
715
696
|
end
|
716
697
|
return data, status_code, headers
|
717
698
|
end
|
718
699
|
|
719
|
-
# List Attempts
|
720
|
-
# List attempts
|
721
|
-
# @param app_id [String]
|
722
|
-
# @param
|
700
|
+
# List Attempts For Endpoint
|
701
|
+
# DEPRECATED: please use list_attempts with endpoint_id as a query parameter instead. List the message attempts for a particular endpoint. Returning the endpoint. The `before` parameter lets you filter all items created before a certain date and is ignored if an iterator is passed.
|
702
|
+
# @param app_id [String] The app's ID or UID
|
703
|
+
# @param msg_id [String] The msg's ID or UID
|
704
|
+
# @param endpoint_id [String] The ep's ID or UID
|
723
705
|
# @param [Hash] opts the optional parameters
|
724
|
-
# @option opts [
|
725
|
-
# @option opts [
|
726
|
-
# @option opts [MessageStatus] :status
|
727
|
-
# @option opts [StatusCodeClass] :status_code_class
|
728
|
-
# @option opts [Array<String>] :event_types
|
706
|
+
# @option opts [Integer] :limit
|
707
|
+
# @option opts [String] :iterator The attempt's ID
|
729
708
|
# @option opts [String] :channel
|
709
|
+
# @option opts [MessageStatus] :status
|
730
710
|
# @option opts [Time] :before
|
731
711
|
# @option opts [Time] :after
|
732
|
-
# @option opts [String] :
|
733
|
-
# @return [
|
734
|
-
def
|
735
|
-
data, _status_code, _headers =
|
712
|
+
# @option opts [Array<String>] :event_types
|
713
|
+
# @return [ListResponseMessageAttemptEndpointOut]
|
714
|
+
def v1_message_attempt_list_by_endpoint_deprecated(app_id, msg_id, endpoint_id, opts = {})
|
715
|
+
data, _status_code, _headers = v1_message_attempt_list_by_endpoint_deprecated_with_http_info(app_id, msg_id, endpoint_id, opts)
|
736
716
|
data
|
737
717
|
end
|
738
718
|
|
739
|
-
# List Attempts
|
740
|
-
# List attempts
|
741
|
-
# @param app_id [String]
|
742
|
-
# @param
|
719
|
+
# List Attempts For Endpoint
|
720
|
+
# DEPRECATED: please use list_attempts with endpoint_id as a query parameter instead. List the message attempts for a particular endpoint. Returning the endpoint. The `before` parameter lets you filter all items created before a certain date and is ignored if an iterator is passed.
|
721
|
+
# @param app_id [String] The app's ID or UID
|
722
|
+
# @param msg_id [String] The msg's ID or UID
|
723
|
+
# @param endpoint_id [String] The ep's ID or UID
|
743
724
|
# @param [Hash] opts the optional parameters
|
744
|
-
# @option opts [String] :iterator
|
745
725
|
# @option opts [Integer] :limit
|
746
|
-
# @option opts [
|
747
|
-
# @option opts [StatusCodeClass] :status_code_class
|
748
|
-
# @option opts [Array<String>] :event_types
|
726
|
+
# @option opts [String] :iterator The attempt's ID
|
749
727
|
# @option opts [String] :channel
|
728
|
+
# @option opts [MessageStatus] :status
|
750
729
|
# @option opts [Time] :before
|
751
730
|
# @option opts [Time] :after
|
752
|
-
# @option opts [String] :
|
753
|
-
# @return [Array<(
|
754
|
-
def
|
731
|
+
# @option opts [Array<String>] :event_types
|
732
|
+
# @return [Array<(ListResponseMessageAttemptEndpointOut, Integer, Hash)>] ListResponseMessageAttemptEndpointOut data, response status code and response headers
|
733
|
+
def v1_message_attempt_list_by_endpoint_deprecated_with_http_info(app_id, msg_id, endpoint_id, opts = {})
|
755
734
|
if @api_client.config.debugging
|
756
|
-
@api_client.config.logger.debug 'Calling API: MessageAttemptApi.
|
735
|
+
@api_client.config.logger.debug 'Calling API: MessageAttemptApi.v1_message_attempt_list_by_endpoint_deprecated ...'
|
757
736
|
end
|
758
737
|
# verify the required parameter 'app_id' is set
|
759
738
|
if @api_client.config.client_side_validation && app_id.nil?
|
760
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling MessageAttemptApi.
|
739
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint_deprecated"
|
761
740
|
end
|
762
741
|
if @api_client.config.client_side_validation && app_id.to_s.length > 256
|
763
|
-
fail ArgumentError, 'invalid value for "app_id" when calling MessageAttemptApi.
|
742
|
+
fail ArgumentError, 'invalid value for "app_id" when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint_deprecated, the character length must be smaller than or equal to 256.'
|
764
743
|
end
|
765
744
|
|
766
745
|
if @api_client.config.client_side_validation && app_id.to_s.length < 1
|
767
|
-
fail ArgumentError, 'invalid value for "app_id" when calling MessageAttemptApi.
|
746
|
+
fail ArgumentError, 'invalid value for "app_id" when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint_deprecated, the character length must be great than or equal to 1.'
|
768
747
|
end
|
769
748
|
|
770
749
|
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
771
750
|
if @api_client.config.client_side_validation && app_id !~ pattern
|
772
|
-
fail ArgumentError, "invalid value for 'app_id' when calling MessageAttemptApi.
|
751
|
+
fail ArgumentError, "invalid value for 'app_id' when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint_deprecated, must conform to the pattern #{pattern}."
|
752
|
+
end
|
753
|
+
|
754
|
+
# verify the required parameter 'msg_id' is set
|
755
|
+
if @api_client.config.client_side_validation && msg_id.nil?
|
756
|
+
fail ArgumentError, "Missing the required parameter 'msg_id' when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint_deprecated"
|
757
|
+
end
|
758
|
+
if @api_client.config.client_side_validation && msg_id.to_s.length > 256
|
759
|
+
fail ArgumentError, 'invalid value for "msg_id" when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint_deprecated, the character length must be smaller than or equal to 256.'
|
760
|
+
end
|
761
|
+
|
762
|
+
if @api_client.config.client_side_validation && msg_id.to_s.length < 1
|
763
|
+
fail ArgumentError, 'invalid value for "msg_id" when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint_deprecated, the character length must be great than or equal to 1.'
|
764
|
+
end
|
765
|
+
|
766
|
+
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
767
|
+
if @api_client.config.client_side_validation && msg_id !~ pattern
|
768
|
+
fail ArgumentError, "invalid value for 'msg_id' when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint_deprecated, must conform to the pattern #{pattern}."
|
773
769
|
end
|
774
770
|
|
775
771
|
# verify the required parameter 'endpoint_id' is set
|
776
772
|
if @api_client.config.client_side_validation && endpoint_id.nil?
|
777
|
-
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling MessageAttemptApi.
|
773
|
+
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint_deprecated"
|
778
774
|
end
|
779
775
|
if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
|
780
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling MessageAttemptApi.
|
776
|
+
fail ArgumentError, 'invalid value for "endpoint_id" when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint_deprecated, the character length must be smaller than or equal to 256.'
|
781
777
|
end
|
782
778
|
|
783
779
|
if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
|
784
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling MessageAttemptApi.
|
780
|
+
fail ArgumentError, 'invalid value for "endpoint_id" when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint_deprecated, the character length must be great than or equal to 1.'
|
785
781
|
end
|
786
782
|
|
787
783
|
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
788
784
|
if @api_client.config.client_side_validation && endpoint_id !~ pattern
|
789
|
-
fail ArgumentError, "invalid value for 'endpoint_id' when calling MessageAttemptApi.
|
785
|
+
fail ArgumentError, "invalid value for 'endpoint_id' when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint_deprecated, must conform to the pattern #{pattern}."
|
790
786
|
end
|
791
787
|
|
792
788
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 250
|
793
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling MessageAttemptApi.
|
789
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint_deprecated, must be smaller than or equal to 250.'
|
790
|
+
end
|
791
|
+
|
792
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
793
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint_deprecated, must be greater than or equal to 1.'
|
794
794
|
end
|
795
795
|
|
796
796
|
if @api_client.config.client_side_validation && !opts[:'channel'].nil? && opts[:'channel'].to_s.length > 128
|
797
|
-
fail ArgumentError, 'invalid value for "opts[:"channel"]" when calling MessageAttemptApi.
|
797
|
+
fail ArgumentError, 'invalid value for "opts[:"channel"]" when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint_deprecated, the character length must be smaller than or equal to 128.'
|
798
798
|
end
|
799
799
|
|
800
800
|
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
801
801
|
if @api_client.config.client_side_validation && !opts[:'channel'].nil? && opts[:'channel'] !~ pattern
|
802
|
-
fail ArgumentError, "invalid value for 'opts[:\"channel\"]' when calling MessageAttemptApi.
|
802
|
+
fail ArgumentError, "invalid value for 'opts[:\"channel\"]' when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint_deprecated, must conform to the pattern #{pattern}."
|
803
803
|
end
|
804
804
|
|
805
805
|
# resource path
|
806
|
-
local_var_path = '/api/v1/app/{app_id}/
|
806
|
+
local_var_path = '/api/v1/app/{app_id}/msg/{msg_id}/endpoint/{endpoint_id}/attempt/'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'msg_id' + '}', CGI.escape(msg_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
807
807
|
|
808
808
|
# query parameters
|
809
809
|
query_params = opts[:query_params] || {}
|
810
|
-
query_params[:'iterator'] = opts[:'iterator'] if !opts[:'iterator'].nil?
|
811
810
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
812
|
-
query_params[:'
|
813
|
-
query_params[:'status_code_class'] = opts[:'status_code_class'] if !opts[:'status_code_class'].nil?
|
814
|
-
query_params[:'event_types'] = @api_client.build_collection_param(opts[:'event_types'], :multi) if !opts[:'event_types'].nil?
|
811
|
+
query_params[:'iterator'] = opts[:'iterator'] if !opts[:'iterator'].nil?
|
815
812
|
query_params[:'channel'] = opts[:'channel'] if !opts[:'channel'].nil?
|
813
|
+
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
816
814
|
query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
|
817
815
|
query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
|
816
|
+
query_params[:'event_types'] = @api_client.build_collection_param(opts[:'event_types'], :multi) if !opts[:'event_types'].nil?
|
818
817
|
|
819
818
|
# header parameters
|
820
819
|
header_params = opts[:header_params] || {}
|
821
820
|
# HTTP header 'Accept' (if needed)
|
822
821
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
823
|
-
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
824
822
|
|
825
823
|
# form parameters
|
826
824
|
form_params = opts[:form_params] || {}
|
@@ -829,13 +827,13 @@ module Svix
|
|
829
827
|
post_body = opts[:debug_body]
|
830
828
|
|
831
829
|
# return_type
|
832
|
-
return_type = opts[:debug_return_type] || '
|
830
|
+
return_type = opts[:debug_return_type] || 'ListResponseMessageAttemptEndpointOut'
|
833
831
|
|
834
832
|
# auth_names
|
835
833
|
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
836
834
|
|
837
835
|
new_options = opts.merge(
|
838
|
-
:operation => :"MessageAttemptApi.
|
836
|
+
:operation => :"MessageAttemptApi.v1_message_attempt_list_by_endpoint_deprecated",
|
839
837
|
:header_params => header_params,
|
840
838
|
:query_params => query_params,
|
841
839
|
:form_params => form_params,
|
@@ -846,110 +844,112 @@ module Svix
|
|
846
844
|
|
847
845
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
848
846
|
if @api_client.config.debugging
|
849
|
-
@api_client.config.logger.debug "API called: MessageAttemptApi#
|
847
|
+
@api_client.config.logger.debug "API called: MessageAttemptApi#v1_message_attempt_list_by_endpoint_deprecated\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
850
848
|
end
|
851
849
|
return data, status_code, headers
|
852
850
|
end
|
853
851
|
|
854
852
|
# List Attempts By Msg
|
855
853
|
# List attempts by message id
|
856
|
-
# @param app_id [String]
|
857
|
-
# @param msg_id [String]
|
854
|
+
# @param app_id [String] The app's ID or UID
|
855
|
+
# @param msg_id [String] The msg's ID or UID
|
858
856
|
# @param [Hash] opts the optional parameters
|
859
|
-
# @option opts [
|
860
|
-
# @option opts [String] :iterator
|
861
|
-
# @option opts [Integer] :limit (default to 50)
|
857
|
+
# @option opts [Integer] :limit
|
858
|
+
# @option opts [String] :iterator The attempt's ID
|
862
859
|
# @option opts [MessageStatus] :status
|
863
860
|
# @option opts [StatusCodeClass] :status_code_class
|
864
|
-
# @option opts [Array<String>] :event_types
|
865
861
|
# @option opts [String] :channel
|
862
|
+
# @option opts [String] :endpoint_id The ep's ID or UID
|
866
863
|
# @option opts [Time] :before
|
867
864
|
# @option opts [Time] :after
|
868
|
-
# @option opts [String] :
|
865
|
+
# @option opts [Array<String>] :event_types
|
869
866
|
# @return [ListResponseMessageAttemptOut]
|
870
|
-
def
|
871
|
-
data, _status_code, _headers =
|
867
|
+
def v1_message_attempt_list_by_msg(app_id, msg_id, opts = {})
|
868
|
+
data, _status_code, _headers = v1_message_attempt_list_by_msg_with_http_info(app_id, msg_id, opts)
|
872
869
|
data
|
873
870
|
end
|
874
871
|
|
875
872
|
# List Attempts By Msg
|
876
873
|
# List attempts by message id
|
877
|
-
# @param app_id [String]
|
878
|
-
# @param msg_id [String]
|
874
|
+
# @param app_id [String] The app's ID or UID
|
875
|
+
# @param msg_id [String] The msg's ID or UID
|
879
876
|
# @param [Hash] opts the optional parameters
|
880
|
-
# @option opts [String] :endpoint_id
|
881
|
-
# @option opts [String] :iterator
|
882
877
|
# @option opts [Integer] :limit
|
878
|
+
# @option opts [String] :iterator The attempt's ID
|
883
879
|
# @option opts [MessageStatus] :status
|
884
880
|
# @option opts [StatusCodeClass] :status_code_class
|
885
|
-
# @option opts [Array<String>] :event_types
|
886
881
|
# @option opts [String] :channel
|
882
|
+
# @option opts [String] :endpoint_id The ep's ID or UID
|
887
883
|
# @option opts [Time] :before
|
888
884
|
# @option opts [Time] :after
|
889
|
-
# @option opts [String] :
|
885
|
+
# @option opts [Array<String>] :event_types
|
890
886
|
# @return [Array<(ListResponseMessageAttemptOut, Integer, Hash)>] ListResponseMessageAttemptOut data, response status code and response headers
|
891
|
-
def
|
887
|
+
def v1_message_attempt_list_by_msg_with_http_info(app_id, msg_id, opts = {})
|
892
888
|
if @api_client.config.debugging
|
893
|
-
@api_client.config.logger.debug 'Calling API: MessageAttemptApi.
|
889
|
+
@api_client.config.logger.debug 'Calling API: MessageAttemptApi.v1_message_attempt_list_by_msg ...'
|
894
890
|
end
|
895
891
|
# verify the required parameter 'app_id' is set
|
896
892
|
if @api_client.config.client_side_validation && app_id.nil?
|
897
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling MessageAttemptApi.
|
893
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling MessageAttemptApi.v1_message_attempt_list_by_msg"
|
898
894
|
end
|
899
895
|
if @api_client.config.client_side_validation && app_id.to_s.length > 256
|
900
|
-
fail ArgumentError, 'invalid value for "app_id" when calling MessageAttemptApi.
|
896
|
+
fail ArgumentError, 'invalid value for "app_id" when calling MessageAttemptApi.v1_message_attempt_list_by_msg, the character length must be smaller than or equal to 256.'
|
901
897
|
end
|
902
898
|
|
903
899
|
if @api_client.config.client_side_validation && app_id.to_s.length < 1
|
904
|
-
fail ArgumentError, 'invalid value for "app_id" when calling MessageAttemptApi.
|
900
|
+
fail ArgumentError, 'invalid value for "app_id" when calling MessageAttemptApi.v1_message_attempt_list_by_msg, the character length must be great than or equal to 1.'
|
905
901
|
end
|
906
902
|
|
907
903
|
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
908
904
|
if @api_client.config.client_side_validation && app_id !~ pattern
|
909
|
-
fail ArgumentError, "invalid value for 'app_id' when calling MessageAttemptApi.
|
905
|
+
fail ArgumentError, "invalid value for 'app_id' when calling MessageAttemptApi.v1_message_attempt_list_by_msg, must conform to the pattern #{pattern}."
|
910
906
|
end
|
911
907
|
|
912
908
|
# verify the required parameter 'msg_id' is set
|
913
909
|
if @api_client.config.client_side_validation && msg_id.nil?
|
914
|
-
fail ArgumentError, "Missing the required parameter 'msg_id' when calling MessageAttemptApi.
|
910
|
+
fail ArgumentError, "Missing the required parameter 'msg_id' when calling MessageAttemptApi.v1_message_attempt_list_by_msg"
|
915
911
|
end
|
916
912
|
if @api_client.config.client_side_validation && msg_id.to_s.length > 256
|
917
|
-
fail ArgumentError, 'invalid value for "msg_id" when calling MessageAttemptApi.
|
913
|
+
fail ArgumentError, 'invalid value for "msg_id" when calling MessageAttemptApi.v1_message_attempt_list_by_msg, the character length must be smaller than or equal to 256.'
|
918
914
|
end
|
919
915
|
|
920
916
|
if @api_client.config.client_side_validation && msg_id.to_s.length < 1
|
921
|
-
fail ArgumentError, 'invalid value for "msg_id" when calling MessageAttemptApi.
|
917
|
+
fail ArgumentError, 'invalid value for "msg_id" when calling MessageAttemptApi.v1_message_attempt_list_by_msg, the character length must be great than or equal to 1.'
|
922
918
|
end
|
923
919
|
|
924
920
|
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
925
921
|
if @api_client.config.client_side_validation && msg_id !~ pattern
|
926
|
-
fail ArgumentError, "invalid value for 'msg_id' when calling MessageAttemptApi.
|
922
|
+
fail ArgumentError, "invalid value for 'msg_id' when calling MessageAttemptApi.v1_message_attempt_list_by_msg, must conform to the pattern #{pattern}."
|
927
923
|
end
|
928
924
|
|
929
|
-
if @api_client.config.client_side_validation && !opts[:'
|
930
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
925
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 250
|
926
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling MessageAttemptApi.v1_message_attempt_list_by_msg, must be smaller than or equal to 250.'
|
931
927
|
end
|
932
928
|
|
933
|
-
if @api_client.config.client_side_validation && !opts[:'
|
934
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
929
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
930
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling MessageAttemptApi.v1_message_attempt_list_by_msg, must be greater than or equal to 1.'
|
931
|
+
end
|
932
|
+
|
933
|
+
if @api_client.config.client_side_validation && !opts[:'channel'].nil? && opts[:'channel'].to_s.length > 128
|
934
|
+
fail ArgumentError, 'invalid value for "opts[:"channel"]" when calling MessageAttemptApi.v1_message_attempt_list_by_msg, the character length must be smaller than or equal to 128.'
|
935
935
|
end
|
936
936
|
|
937
937
|
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
938
|
-
if @api_client.config.client_side_validation && !opts[:'
|
939
|
-
fail ArgumentError, "invalid value for 'opts[:\"
|
938
|
+
if @api_client.config.client_side_validation && !opts[:'channel'].nil? && opts[:'channel'] !~ pattern
|
939
|
+
fail ArgumentError, "invalid value for 'opts[:\"channel\"]' when calling MessageAttemptApi.v1_message_attempt_list_by_msg, must conform to the pattern #{pattern}."
|
940
940
|
end
|
941
941
|
|
942
|
-
if @api_client.config.client_side_validation && !opts[:'
|
943
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
942
|
+
if @api_client.config.client_side_validation && !opts[:'endpoint_id'].nil? && opts[:'endpoint_id'].to_s.length > 256
|
943
|
+
fail ArgumentError, 'invalid value for "opts[:"endpoint_id"]" when calling MessageAttemptApi.v1_message_attempt_list_by_msg, the character length must be smaller than or equal to 256.'
|
944
944
|
end
|
945
945
|
|
946
|
-
if @api_client.config.client_side_validation && !opts[:'
|
947
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
946
|
+
if @api_client.config.client_side_validation && !opts[:'endpoint_id'].nil? && opts[:'endpoint_id'].to_s.length < 1
|
947
|
+
fail ArgumentError, 'invalid value for "opts[:"endpoint_id"]" when calling MessageAttemptApi.v1_message_attempt_list_by_msg, the character length must be great than or equal to 1.'
|
948
948
|
end
|
949
949
|
|
950
950
|
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
951
|
-
if @api_client.config.client_side_validation && !opts[:'
|
952
|
-
fail ArgumentError, "invalid value for 'opts[:\"
|
951
|
+
if @api_client.config.client_side_validation && !opts[:'endpoint_id'].nil? && opts[:'endpoint_id'] !~ pattern
|
952
|
+
fail ArgumentError, "invalid value for 'opts[:\"endpoint_id\"]' when calling MessageAttemptApi.v1_message_attempt_list_by_msg, must conform to the pattern #{pattern}."
|
953
953
|
end
|
954
954
|
|
955
955
|
# resource path
|
@@ -957,21 +957,20 @@ module Svix
|
|
957
957
|
|
958
958
|
# query parameters
|
959
959
|
query_params = opts[:query_params] || {}
|
960
|
-
query_params[:'endpoint_id'] = opts[:'endpoint_id'] if !opts[:'endpoint_id'].nil?
|
961
|
-
query_params[:'iterator'] = opts[:'iterator'] if !opts[:'iterator'].nil?
|
962
960
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
961
|
+
query_params[:'iterator'] = opts[:'iterator'] if !opts[:'iterator'].nil?
|
963
962
|
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
964
963
|
query_params[:'status_code_class'] = opts[:'status_code_class'] if !opts[:'status_code_class'].nil?
|
965
|
-
query_params[:'event_types'] = @api_client.build_collection_param(opts[:'event_types'], :multi) if !opts[:'event_types'].nil?
|
966
964
|
query_params[:'channel'] = opts[:'channel'] if !opts[:'channel'].nil?
|
965
|
+
query_params[:'endpoint_id'] = opts[:'endpoint_id'] if !opts[:'endpoint_id'].nil?
|
967
966
|
query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
|
968
967
|
query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
|
968
|
+
query_params[:'event_types'] = @api_client.build_collection_param(opts[:'event_types'], :multi) if !opts[:'event_types'].nil?
|
969
969
|
|
970
970
|
# header parameters
|
971
971
|
header_params = opts[:header_params] || {}
|
972
972
|
# HTTP header 'Accept' (if needed)
|
973
973
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
974
|
-
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
975
974
|
|
976
975
|
# form parameters
|
977
976
|
form_params = opts[:form_params] || {}
|
@@ -986,7 +985,7 @@ module Svix
|
|
986
985
|
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
987
986
|
|
988
987
|
new_options = opts.merge(
|
989
|
-
:operation => :"MessageAttemptApi.
|
988
|
+
:operation => :"MessageAttemptApi.v1_message_attempt_list_by_msg",
|
990
989
|
:header_params => header_params,
|
991
990
|
:query_params => query_params,
|
992
991
|
:form_params => form_params,
|
@@ -997,132 +996,133 @@ module Svix
|
|
997
996
|
|
998
997
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
999
998
|
if @api_client.config.debugging
|
1000
|
-
@api_client.config.logger.debug "API called: MessageAttemptApi#
|
999
|
+
@api_client.config.logger.debug "API called: MessageAttemptApi#v1_message_attempt_list_by_msg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1001
1000
|
end
|
1002
1001
|
return data, status_code, headers
|
1003
1002
|
end
|
1004
1003
|
|
1005
|
-
# List Attempts
|
1006
|
-
#
|
1007
|
-
# @param
|
1008
|
-
# @param
|
1009
|
-
# @param endpoint_id [String]
|
1004
|
+
# List Attempts
|
1005
|
+
# Deprecated: Please use \"List Attempts by Endpoint\" and \"List Attempts by Msg\" instead. `msg_id`: Use a message id or a message `eventId`
|
1006
|
+
# @param app_id [String] The app's ID or UID
|
1007
|
+
# @param msg_id [String] The msg's ID or UID
|
1010
1008
|
# @param [Hash] opts the optional parameters
|
1011
|
-
# @option opts [
|
1012
|
-
# @option opts [
|
1013
|
-
# @option opts [
|
1009
|
+
# @option opts [Integer] :limit
|
1010
|
+
# @option opts [String] :iterator The attempt's ID
|
1011
|
+
# @option opts [String] :endpoint_id The ep's ID or UID
|
1014
1012
|
# @option opts [String] :channel
|
1015
1013
|
# @option opts [MessageStatus] :status
|
1016
1014
|
# @option opts [Time] :before
|
1017
1015
|
# @option opts [Time] :after
|
1018
|
-
# @option opts [
|
1019
|
-
# @
|
1020
|
-
|
1021
|
-
|
1016
|
+
# @option opts [StatusCodeClass] :status_code_class
|
1017
|
+
# @option opts [Array<String>] :event_types
|
1018
|
+
# @return [ListResponseMessageAttemptOut]
|
1019
|
+
def v1_message_attempt_list_by_msg_deprecated(app_id, msg_id, opts = {})
|
1020
|
+
data, _status_code, _headers = v1_message_attempt_list_by_msg_deprecated_with_http_info(app_id, msg_id, opts)
|
1022
1021
|
data
|
1023
1022
|
end
|
1024
1023
|
|
1025
|
-
# List Attempts
|
1026
|
-
#
|
1027
|
-
# @param
|
1028
|
-
# @param
|
1029
|
-
# @param endpoint_id [String]
|
1024
|
+
# List Attempts
|
1025
|
+
# Deprecated: Please use \"List Attempts by Endpoint\" and \"List Attempts by Msg\" instead. `msg_id`: Use a message id or a message `eventId`
|
1026
|
+
# @param app_id [String] The app's ID or UID
|
1027
|
+
# @param msg_id [String] The msg's ID or UID
|
1030
1028
|
# @param [Hash] opts the optional parameters
|
1031
|
-
# @option opts [String] :iterator
|
1032
1029
|
# @option opts [Integer] :limit
|
1033
|
-
# @option opts [
|
1030
|
+
# @option opts [String] :iterator The attempt's ID
|
1031
|
+
# @option opts [String] :endpoint_id The ep's ID or UID
|
1034
1032
|
# @option opts [String] :channel
|
1035
1033
|
# @option opts [MessageStatus] :status
|
1036
1034
|
# @option opts [Time] :before
|
1037
1035
|
# @option opts [Time] :after
|
1038
|
-
# @option opts [
|
1039
|
-
# @
|
1040
|
-
|
1036
|
+
# @option opts [StatusCodeClass] :status_code_class
|
1037
|
+
# @option opts [Array<String>] :event_types
|
1038
|
+
# @return [Array<(ListResponseMessageAttemptOut, Integer, Hash)>] ListResponseMessageAttemptOut data, response status code and response headers
|
1039
|
+
def v1_message_attempt_list_by_msg_deprecated_with_http_info(app_id, msg_id, opts = {})
|
1041
1040
|
if @api_client.config.debugging
|
1042
|
-
@api_client.config.logger.debug 'Calling API: MessageAttemptApi.
|
1041
|
+
@api_client.config.logger.debug 'Calling API: MessageAttemptApi.v1_message_attempt_list_by_msg_deprecated ...'
|
1043
1042
|
end
|
1044
|
-
# verify the required parameter '
|
1045
|
-
if @api_client.config.client_side_validation &&
|
1046
|
-
fail ArgumentError, "Missing the required parameter '
|
1043
|
+
# verify the required parameter 'app_id' is set
|
1044
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
1045
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling MessageAttemptApi.v1_message_attempt_list_by_msg_deprecated"
|
1047
1046
|
end
|
1048
|
-
if @api_client.config.client_side_validation &&
|
1049
|
-
fail ArgumentError, 'invalid value for "
|
1047
|
+
if @api_client.config.client_side_validation && app_id.to_s.length > 256
|
1048
|
+
fail ArgumentError, 'invalid value for "app_id" when calling MessageAttemptApi.v1_message_attempt_list_by_msg_deprecated, the character length must be smaller than or equal to 256.'
|
1050
1049
|
end
|
1051
1050
|
|
1052
|
-
if @api_client.config.client_side_validation &&
|
1053
|
-
fail ArgumentError, 'invalid value for "
|
1051
|
+
if @api_client.config.client_side_validation && app_id.to_s.length < 1
|
1052
|
+
fail ArgumentError, 'invalid value for "app_id" when calling MessageAttemptApi.v1_message_attempt_list_by_msg_deprecated, the character length must be great than or equal to 1.'
|
1054
1053
|
end
|
1055
1054
|
|
1056
1055
|
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
1057
|
-
if @api_client.config.client_side_validation &&
|
1058
|
-
fail ArgumentError, "invalid value for '
|
1056
|
+
if @api_client.config.client_side_validation && app_id !~ pattern
|
1057
|
+
fail ArgumentError, "invalid value for 'app_id' when calling MessageAttemptApi.v1_message_attempt_list_by_msg_deprecated, must conform to the pattern #{pattern}."
|
1059
1058
|
end
|
1060
1059
|
|
1061
|
-
# verify the required parameter '
|
1062
|
-
if @api_client.config.client_side_validation &&
|
1063
|
-
fail ArgumentError, "Missing the required parameter '
|
1060
|
+
# verify the required parameter 'msg_id' is set
|
1061
|
+
if @api_client.config.client_side_validation && msg_id.nil?
|
1062
|
+
fail ArgumentError, "Missing the required parameter 'msg_id' when calling MessageAttemptApi.v1_message_attempt_list_by_msg_deprecated"
|
1064
1063
|
end
|
1065
|
-
if @api_client.config.client_side_validation &&
|
1066
|
-
fail ArgumentError, 'invalid value for "
|
1064
|
+
if @api_client.config.client_side_validation && msg_id.to_s.length > 256
|
1065
|
+
fail ArgumentError, 'invalid value for "msg_id" when calling MessageAttemptApi.v1_message_attempt_list_by_msg_deprecated, the character length must be smaller than or equal to 256.'
|
1067
1066
|
end
|
1068
1067
|
|
1069
|
-
if @api_client.config.client_side_validation &&
|
1070
|
-
fail ArgumentError, 'invalid value for "
|
1068
|
+
if @api_client.config.client_side_validation && msg_id.to_s.length < 1
|
1069
|
+
fail ArgumentError, 'invalid value for "msg_id" when calling MessageAttemptApi.v1_message_attempt_list_by_msg_deprecated, the character length must be great than or equal to 1.'
|
1071
1070
|
end
|
1072
1071
|
|
1073
1072
|
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
1074
|
-
if @api_client.config.client_side_validation &&
|
1075
|
-
fail ArgumentError, "invalid value for '
|
1073
|
+
if @api_client.config.client_side_validation && msg_id !~ pattern
|
1074
|
+
fail ArgumentError, "invalid value for 'msg_id' when calling MessageAttemptApi.v1_message_attempt_list_by_msg_deprecated, must conform to the pattern #{pattern}."
|
1076
1075
|
end
|
1077
1076
|
|
1078
|
-
|
1079
|
-
|
1080
|
-
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"
|
1077
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 250
|
1078
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling MessageAttemptApi.v1_message_attempt_list_by_msg_deprecated, must be smaller than or equal to 250.'
|
1081
1079
|
end
|
1082
|
-
|
1083
|
-
|
1080
|
+
|
1081
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
1082
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling MessageAttemptApi.v1_message_attempt_list_by_msg_deprecated, must be greater than or equal to 1.'
|
1084
1083
|
end
|
1085
1084
|
|
1086
|
-
if @api_client.config.client_side_validation && endpoint_id.to_s.length
|
1087
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling MessageAttemptApi.
|
1085
|
+
if @api_client.config.client_side_validation && !opts[:'endpoint_id'].nil? && opts[:'endpoint_id'].to_s.length > 256
|
1086
|
+
fail ArgumentError, 'invalid value for "opts[:"endpoint_id"]" when calling MessageAttemptApi.v1_message_attempt_list_by_msg_deprecated, the character length must be smaller than or equal to 256.'
|
1088
1087
|
end
|
1089
1088
|
|
1090
|
-
|
1091
|
-
|
1092
|
-
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}."
|
1089
|
+
if @api_client.config.client_side_validation && !opts[:'endpoint_id'].nil? && opts[:'endpoint_id'].to_s.length < 1
|
1090
|
+
fail ArgumentError, 'invalid value for "opts[:"endpoint_id"]" when calling MessageAttemptApi.v1_message_attempt_list_by_msg_deprecated, the character length must be great than or equal to 1.'
|
1093
1091
|
end
|
1094
1092
|
|
1095
|
-
|
1096
|
-
|
1093
|
+
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
1094
|
+
if @api_client.config.client_side_validation && !opts[:'endpoint_id'].nil? && opts[:'endpoint_id'] !~ pattern
|
1095
|
+
fail ArgumentError, "invalid value for 'opts[:\"endpoint_id\"]' when calling MessageAttemptApi.v1_message_attempt_list_by_msg_deprecated, must conform to the pattern #{pattern}."
|
1097
1096
|
end
|
1098
1097
|
|
1099
1098
|
if @api_client.config.client_side_validation && !opts[:'channel'].nil? && opts[:'channel'].to_s.length > 128
|
1100
|
-
fail ArgumentError, 'invalid value for "opts[:"channel"]" when calling MessageAttemptApi.
|
1099
|
+
fail ArgumentError, 'invalid value for "opts[:"channel"]" when calling MessageAttemptApi.v1_message_attempt_list_by_msg_deprecated, the character length must be smaller than or equal to 128.'
|
1101
1100
|
end
|
1102
1101
|
|
1103
1102
|
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
1104
1103
|
if @api_client.config.client_side_validation && !opts[:'channel'].nil? && opts[:'channel'] !~ pattern
|
1105
|
-
fail ArgumentError, "invalid value for 'opts[:\"channel\"]' when calling MessageAttemptApi.
|
1104
|
+
fail ArgumentError, "invalid value for 'opts[:\"channel\"]' when calling MessageAttemptApi.v1_message_attempt_list_by_msg_deprecated, must conform to the pattern #{pattern}."
|
1106
1105
|
end
|
1107
1106
|
|
1108
1107
|
# resource path
|
1109
|
-
local_var_path = '/api/v1/app/{app_id}/msg/{msg_id}/
|
1108
|
+
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))
|
1110
1109
|
|
1111
1110
|
# query parameters
|
1112
1111
|
query_params = opts[:query_params] || {}
|
1113
|
-
query_params[:'iterator'] = opts[:'iterator'] if !opts[:'iterator'].nil?
|
1114
1112
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1115
|
-
query_params[:'
|
1113
|
+
query_params[:'iterator'] = opts[:'iterator'] if !opts[:'iterator'].nil?
|
1114
|
+
query_params[:'endpoint_id'] = opts[:'endpoint_id'] if !opts[:'endpoint_id'].nil?
|
1116
1115
|
query_params[:'channel'] = opts[:'channel'] if !opts[:'channel'].nil?
|
1117
1116
|
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
1118
1117
|
query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
|
1119
1118
|
query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
|
1119
|
+
query_params[:'status_code_class'] = opts[:'status_code_class'] if !opts[:'status_code_class'].nil?
|
1120
|
+
query_params[:'event_types'] = @api_client.build_collection_param(opts[:'event_types'], :multi) if !opts[:'event_types'].nil?
|
1120
1121
|
|
1121
1122
|
# header parameters
|
1122
1123
|
header_params = opts[:header_params] || {}
|
1123
1124
|
# HTTP header 'Accept' (if needed)
|
1124
1125
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1125
|
-
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
1126
1126
|
|
1127
1127
|
# form parameters
|
1128
1128
|
form_params = opts[:form_params] || {}
|
@@ -1131,13 +1131,13 @@ module Svix
|
|
1131
1131
|
post_body = opts[:debug_body]
|
1132
1132
|
|
1133
1133
|
# return_type
|
1134
|
-
return_type = opts[:debug_return_type] || '
|
1134
|
+
return_type = opts[:debug_return_type] || 'ListResponseMessageAttemptOut'
|
1135
1135
|
|
1136
1136
|
# auth_names
|
1137
1137
|
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
1138
1138
|
|
1139
1139
|
new_options = opts.merge(
|
1140
|
-
:operation => :"MessageAttemptApi.
|
1140
|
+
:operation => :"MessageAttemptApi.v1_message_attempt_list_by_msg_deprecated",
|
1141
1141
|
:header_params => header_params,
|
1142
1142
|
:query_params => query_params,
|
1143
1143
|
:form_params => form_params,
|
@@ -1148,89 +1148,89 @@ module Svix
|
|
1148
1148
|
|
1149
1149
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1150
1150
|
if @api_client.config.debugging
|
1151
|
-
@api_client.config.logger.debug "API called: MessageAttemptApi#
|
1151
|
+
@api_client.config.logger.debug "API called: MessageAttemptApi#v1_message_attempt_list_by_msg_deprecated\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1152
1152
|
end
|
1153
1153
|
return data, status_code, headers
|
1154
1154
|
end
|
1155
1155
|
|
1156
1156
|
# Resend Webhook
|
1157
1157
|
# Resend a message to the specified endpoint.
|
1158
|
-
# @param
|
1159
|
-
# @param msg_id [String]
|
1160
|
-
# @param
|
1158
|
+
# @param app_id [String] The app's ID or UID
|
1159
|
+
# @param msg_id [String] The msg's ID or UID
|
1160
|
+
# @param endpoint_id [String] The ep's ID or UID
|
1161
1161
|
# @param [Hash] opts the optional parameters
|
1162
1162
|
# @option opts [String] :idempotency_key The request's idempotency key
|
1163
1163
|
# @return [nil]
|
1164
|
-
def
|
1165
|
-
|
1164
|
+
def v1_message_attempt_resend(app_id, msg_id, endpoint_id, opts = {})
|
1165
|
+
v1_message_attempt_resend_with_http_info(app_id, msg_id, endpoint_id, opts)
|
1166
1166
|
nil
|
1167
1167
|
end
|
1168
1168
|
|
1169
1169
|
# Resend Webhook
|
1170
1170
|
# Resend a message to the specified endpoint.
|
1171
|
-
# @param
|
1172
|
-
# @param msg_id [String]
|
1173
|
-
# @param
|
1171
|
+
# @param app_id [String] The app's ID or UID
|
1172
|
+
# @param msg_id [String] The msg's ID or UID
|
1173
|
+
# @param endpoint_id [String] The ep's ID or UID
|
1174
1174
|
# @param [Hash] opts the optional parameters
|
1175
1175
|
# @option opts [String] :idempotency_key The request's idempotency key
|
1176
1176
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
1177
|
-
def
|
1177
|
+
def v1_message_attempt_resend_with_http_info(app_id, msg_id, endpoint_id, opts = {})
|
1178
1178
|
if @api_client.config.debugging
|
1179
|
-
@api_client.config.logger.debug 'Calling API: MessageAttemptApi.
|
1179
|
+
@api_client.config.logger.debug 'Calling API: MessageAttemptApi.v1_message_attempt_resend ...'
|
1180
1180
|
end
|
1181
|
-
# verify the required parameter '
|
1182
|
-
if @api_client.config.client_side_validation &&
|
1183
|
-
fail ArgumentError, "Missing the required parameter '
|
1181
|
+
# verify the required parameter 'app_id' is set
|
1182
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
1183
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling MessageAttemptApi.v1_message_attempt_resend"
|
1184
1184
|
end
|
1185
|
-
if @api_client.config.client_side_validation &&
|
1186
|
-
fail ArgumentError, 'invalid value for "
|
1185
|
+
if @api_client.config.client_side_validation && app_id.to_s.length > 256
|
1186
|
+
fail ArgumentError, 'invalid value for "app_id" when calling MessageAttemptApi.v1_message_attempt_resend, the character length must be smaller than or equal to 256.'
|
1187
1187
|
end
|
1188
1188
|
|
1189
|
-
if @api_client.config.client_side_validation &&
|
1190
|
-
fail ArgumentError, 'invalid value for "
|
1189
|
+
if @api_client.config.client_side_validation && app_id.to_s.length < 1
|
1190
|
+
fail ArgumentError, 'invalid value for "app_id" when calling MessageAttemptApi.v1_message_attempt_resend, the character length must be great than or equal to 1.'
|
1191
1191
|
end
|
1192
1192
|
|
1193
1193
|
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
1194
|
-
if @api_client.config.client_side_validation &&
|
1195
|
-
fail ArgumentError, "invalid value for '
|
1194
|
+
if @api_client.config.client_side_validation && app_id !~ pattern
|
1195
|
+
fail ArgumentError, "invalid value for 'app_id' when calling MessageAttemptApi.v1_message_attempt_resend, must conform to the pattern #{pattern}."
|
1196
1196
|
end
|
1197
1197
|
|
1198
1198
|
# verify the required parameter 'msg_id' is set
|
1199
1199
|
if @api_client.config.client_side_validation && msg_id.nil?
|
1200
|
-
fail ArgumentError, "Missing the required parameter 'msg_id' when calling MessageAttemptApi.
|
1200
|
+
fail ArgumentError, "Missing the required parameter 'msg_id' when calling MessageAttemptApi.v1_message_attempt_resend"
|
1201
1201
|
end
|
1202
1202
|
if @api_client.config.client_side_validation && msg_id.to_s.length > 256
|
1203
|
-
fail ArgumentError, 'invalid value for "msg_id" when calling MessageAttemptApi.
|
1203
|
+
fail ArgumentError, 'invalid value for "msg_id" when calling MessageAttemptApi.v1_message_attempt_resend, the character length must be smaller than or equal to 256.'
|
1204
1204
|
end
|
1205
1205
|
|
1206
1206
|
if @api_client.config.client_side_validation && msg_id.to_s.length < 1
|
1207
|
-
fail ArgumentError, 'invalid value for "msg_id" when calling MessageAttemptApi.
|
1207
|
+
fail ArgumentError, 'invalid value for "msg_id" when calling MessageAttemptApi.v1_message_attempt_resend, the character length must be great than or equal to 1.'
|
1208
1208
|
end
|
1209
1209
|
|
1210
1210
|
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
1211
1211
|
if @api_client.config.client_side_validation && msg_id !~ pattern
|
1212
|
-
fail ArgumentError, "invalid value for 'msg_id' when calling MessageAttemptApi.
|
1212
|
+
fail ArgumentError, "invalid value for 'msg_id' when calling MessageAttemptApi.v1_message_attempt_resend, must conform to the pattern #{pattern}."
|
1213
1213
|
end
|
1214
1214
|
|
1215
|
-
# verify the required parameter '
|
1216
|
-
if @api_client.config.client_side_validation &&
|
1217
|
-
fail ArgumentError, "Missing the required parameter '
|
1215
|
+
# verify the required parameter 'endpoint_id' is set
|
1216
|
+
if @api_client.config.client_side_validation && endpoint_id.nil?
|
1217
|
+
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling MessageAttemptApi.v1_message_attempt_resend"
|
1218
1218
|
end
|
1219
|
-
if @api_client.config.client_side_validation &&
|
1220
|
-
fail ArgumentError, 'invalid value for "
|
1219
|
+
if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
|
1220
|
+
fail ArgumentError, 'invalid value for "endpoint_id" when calling MessageAttemptApi.v1_message_attempt_resend, the character length must be smaller than or equal to 256.'
|
1221
1221
|
end
|
1222
1222
|
|
1223
|
-
if @api_client.config.client_side_validation &&
|
1224
|
-
fail ArgumentError, 'invalid value for "
|
1223
|
+
if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
|
1224
|
+
fail ArgumentError, 'invalid value for "endpoint_id" when calling MessageAttemptApi.v1_message_attempt_resend, the character length must be great than or equal to 1.'
|
1225
1225
|
end
|
1226
1226
|
|
1227
1227
|
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
1228
|
-
if @api_client.config.client_side_validation &&
|
1229
|
-
fail ArgumentError, "invalid value for '
|
1228
|
+
if @api_client.config.client_side_validation && endpoint_id !~ pattern
|
1229
|
+
fail ArgumentError, "invalid value for 'endpoint_id' when calling MessageAttemptApi.v1_message_attempt_resend, must conform to the pattern #{pattern}."
|
1230
1230
|
end
|
1231
1231
|
|
1232
1232
|
# resource path
|
1233
|
-
local_var_path = '/api/v1/app/{app_id}/msg/{msg_id}/endpoint/{endpoint_id}/resend/'.sub('{' + '
|
1233
|
+
local_var_path = '/api/v1/app/{app_id}/msg/{msg_id}/endpoint/{endpoint_id}/resend/'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'msg_id' + '}', CGI.escape(msg_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
1234
1234
|
|
1235
1235
|
# query parameters
|
1236
1236
|
query_params = opts[:query_params] || {}
|
@@ -1254,7 +1254,7 @@ module Svix
|
|
1254
1254
|
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
1255
1255
|
|
1256
1256
|
new_options = opts.merge(
|
1257
|
-
:operation => :"MessageAttemptApi.
|
1257
|
+
:operation => :"MessageAttemptApi.v1_message_attempt_resend",
|
1258
1258
|
:header_params => header_params,
|
1259
1259
|
:query_params => query_params,
|
1260
1260
|
:form_params => form_params,
|
@@ -1265,7 +1265,7 @@ module Svix
|
|
1265
1265
|
|
1266
1266
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1267
1267
|
if @api_client.config.debugging
|
1268
|
-
@api_client.config.logger.debug "API called: MessageAttemptApi#
|
1268
|
+
@api_client.config.logger.debug "API called: MessageAttemptApi#v1_message_attempt_resend\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1269
1269
|
end
|
1270
1270
|
return data, status_code, headers
|
1271
1271
|
end
|