svix 1.45.1 → 1.57.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/svix/api/application_api.rb +115 -10
- data/lib/svix/api/authentication_api.rb +101 -16
- data/lib/svix/api/background_tasks_api.rb +43 -17
- data/lib/svix/api/endpoint_api.rb +312 -96
- data/lib/svix/api/inbound_api.rb +4 -4
- data/lib/svix/api/integration_api.rb +102 -24
- data/lib/svix/api/message_api.rb +142 -39
- data/lib/svix/api/message_attempt_api.rb +135 -372
- data/lib/svix/api/statistics_api.rb +6 -6
- data/lib/svix/api/stream_api.rb +203 -142
- data/lib/svix/api/transformation_template_api.rb +88 -23
- data/lib/svix/api/webhook_endpoint_api.rb +253 -77
- data/lib/svix/background_tasks_api.rb +2 -2
- data/lib/svix/message_attempt_api.rb +7 -3
- data/lib/svix/models/active_application_out.rb +373 -0
- data/lib/svix/models/active_endpoint_out.rb +355 -0
- data/lib/svix/models/aggregate_event_types_out.rb +40 -0
- data/lib/svix/models/aggregated_event_types.rb +305 -0
- data/lib/svix/models/app_portal_access_in.rb +18 -0
- data/lib/svix/models/app_usage_stats_out.rb +40 -0
- data/lib/svix/models/application_message_failure.rb +277 -0
- data/lib/svix/models/application_message_id_pair.rb +317 -0
- data/lib/svix/models/application_out.rb +41 -2
- data/lib/svix/models/application_patch.rb +1 -1
- data/lib/svix/models/application_stats.rb +41 -2
- data/lib/svix/models/application_stats_out.rb +324 -0
- data/lib/svix/models/auth_token_out.rb +40 -1
- data/lib/svix/models/background_task_finished_event.rb +272 -0
- data/lib/svix/models/background_task_finished_event2.rb +331 -0
- data/lib/svix/models/background_task_out.rb +40 -0
- data/lib/svix/models/background_task_type.rb +2 -1
- data/lib/svix/models/{template_in.rb → connector_in.rb} +4 -4
- data/lib/svix/models/{transformation_template_kind.rb → connector_kind.rb} +3 -3
- data/lib/svix/models/create_stream_in.rb +12 -12
- data/lib/svix/models/data.rb +108 -0
- data/lib/svix/models/data_any_of.rb +240 -0
- data/lib/svix/models/data_any_of1.rb +223 -0
- data/lib/svix/models/data_any_of2.rb +241 -0
- data/lib/svix/models/data_any_of3.rb +223 -0
- data/lib/svix/models/data_any_of4.rb +240 -0
- data/lib/svix/models/endpoint_created_event_data.rb +82 -4
- data/lib/svix/models/endpoint_deleted_event_data.rb +82 -4
- data/lib/svix/models/endpoint_disabled_event.rb +1 -1
- data/lib/svix/models/endpoint_disabled_event_data.rb +119 -16
- data/lib/svix/models/endpoint_disabled_trigger.rb +40 -0
- data/lib/svix/models/endpoint_enabled_event.rb +272 -0
- data/lib/svix/models/endpoint_enabled_event_data.rb +410 -0
- data/lib/svix/models/endpoint_message_out.rb +40 -1
- data/lib/svix/models/endpoint_mtls_config_out.rb +215 -0
- data/lib/svix/models/endpoint_oauth_config_in.rb +2 -2
- data/lib/svix/models/endpoint_oauth_config_out.rb +315 -0
- data/lib/svix/models/endpoint_out.rb +40 -1
- data/lib/svix/models/endpoint_patch.rb +1 -1
- data/lib/svix/models/endpoint_updated_event_data.rb +82 -4
- data/lib/svix/models/environment_in.rb +17 -19
- data/lib/svix/models/environment_settings_out.rb +23 -1
- data/lib/svix/models/event_type_import_open_api_in.rb +14 -2
- data/lib/svix/models/export_event_type_out.rb +40 -0
- data/lib/svix/models/expung_all_contents_out.rb +315 -0
- data/lib/svix/models/inbound_path_params.rb +1 -1
- data/lib/svix/models/integration_in.rb +41 -1
- data/lib/svix/models/integration_out.rb +81 -2
- data/lib/svix/models/integration_update.rb +41 -1
- data/lib/svix/models/list_response_active_application_out.rb +261 -0
- data/lib/svix/models/message_attempt_endpoint_out.rb +120 -3
- data/lib/svix/models/message_attempt_exhausted_event_data.rb +122 -5
- data/lib/svix/models/message_attempt_failed_data.rb +40 -1
- data/lib/svix/models/message_attempt_failing_event_data.rb +122 -5
- data/lib/svix/models/message_attempt_out.rb +120 -3
- data/lib/svix/models/message_attempt_recovered_event_data.rb +122 -5
- data/lib/svix/models/message_broadcast_out.rb +40 -0
- data/lib/svix/models/message_endpoint_out.rb +40 -1
- data/lib/svix/models/message_out.rb +40 -1
- data/lib/svix/models/message_precheck_in.rb +288 -0
- data/lib/svix/models/message_precheck_out.rb +221 -0
- data/lib/svix/models/{oauth2_auth_method_in.rb → oauth2_auth_method_in_out.rb} +3 -3
- data/lib/svix/models/{oauth2_grant_type_in.rb → oauth2_grant_type_in_out.rb} +3 -3
- data/lib/svix/models/operational_webhook_endpoint_headers_in.rb +223 -0
- data/lib/svix/models/operational_webhook_endpoint_headers_out.rb +251 -0
- data/lib/svix/models/operational_webhook_endpoint_out.rb +40 -1
- data/lib/svix/models/polling_endpoint_message_out.rb +454 -0
- data/lib/svix/models/polling_endpoint_out.rb +255 -0
- data/lib/svix/models/recover_out.rb +40 -0
- data/lib/svix/models/replay_out.rb +40 -0
- data/lib/svix/models/rotate_poller_token_in.rb +1 -1
- data/lib/svix/models/sink_secret_out.rb +233 -0
- data/lib/svix/models/stream_in.rb +6 -7
- data/lib/svix/models/stream_out.rb +46 -7
- data/lib/svix/models/stream_patch.rb +6 -7
- data/lib/svix/models/stream_portal_access_in.rb +293 -0
- data/lib/svix/models/template_out.rb +81 -1
- data/lib/svix/models/template_patch.rb +1 -1
- data/lib/svix/models/template_update.rb +1 -1
- data/lib/svix/version.rb +1 -1
- metadata +35 -7
- data/lib/svix/operational_webhook_endpoint_api.rb +0 -37
@@ -25,8 +25,8 @@ module Svix
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
26
|
# @option opts [String] :idempotency_key The request's idempotency key
|
27
27
|
# @return [OperationalWebhookEndpointOut]
|
28
|
-
def
|
29
|
-
data, _status_code, _headers =
|
28
|
+
def v1_operational_webhook_endpoint_create(operational_webhook_endpoint_in, opts = {})
|
29
|
+
data, _status_code, _headers = v1_operational_webhook_endpoint_create_with_http_info(operational_webhook_endpoint_in, opts)
|
30
30
|
data
|
31
31
|
end
|
32
32
|
|
@@ -36,13 +36,13 @@ module Svix
|
|
36
36
|
# @param [Hash] opts the optional parameters
|
37
37
|
# @option opts [String] :idempotency_key The request's idempotency key
|
38
38
|
# @return [Array<(OperationalWebhookEndpointOut, Integer, Hash)>] OperationalWebhookEndpointOut data, response status code and response headers
|
39
|
-
def
|
39
|
+
def v1_operational_webhook_endpoint_create_with_http_info(operational_webhook_endpoint_in, opts = {})
|
40
40
|
if @api_client.config.debugging
|
41
|
-
@api_client.config.logger.debug 'Calling API: WebhookEndpointApi.
|
41
|
+
@api_client.config.logger.debug 'Calling API: WebhookEndpointApi.v1_operational_webhook_endpoint_create ...'
|
42
42
|
end
|
43
43
|
# verify the required parameter 'operational_webhook_endpoint_in' is set
|
44
44
|
if @api_client.config.client_side_validation && operational_webhook_endpoint_in.nil?
|
45
|
-
fail ArgumentError, "Missing the required parameter 'operational_webhook_endpoint_in' when calling WebhookEndpointApi.
|
45
|
+
fail ArgumentError, "Missing the required parameter 'operational_webhook_endpoint_in' when calling WebhookEndpointApi.v1_operational_webhook_endpoint_create"
|
46
46
|
end
|
47
47
|
# resource path
|
48
48
|
local_var_path = '/api/v1/operational-webhook/endpoint'
|
@@ -74,7 +74,7 @@ module Svix
|
|
74
74
|
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
75
75
|
|
76
76
|
new_options = opts.merge(
|
77
|
-
:operation => :"WebhookEndpointApi.
|
77
|
+
:operation => :"WebhookEndpointApi.v1_operational_webhook_endpoint_create",
|
78
78
|
:header_params => header_params,
|
79
79
|
:query_params => query_params,
|
80
80
|
:form_params => form_params,
|
@@ -85,45 +85,45 @@ module Svix
|
|
85
85
|
|
86
86
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
87
87
|
if @api_client.config.debugging
|
88
|
-
@api_client.config.logger.debug "API called: WebhookEndpointApi#
|
88
|
+
@api_client.config.logger.debug "API called: WebhookEndpointApi#v1_operational_webhook_endpoint_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
89
89
|
end
|
90
90
|
return data, status_code, headers
|
91
91
|
end
|
92
92
|
|
93
93
|
# Delete Operational Webhook Endpoint
|
94
94
|
# Delete an operational webhook endpoint.
|
95
|
-
# @param endpoint_id [String] The
|
95
|
+
# @param endpoint_id [String] The Endpoint's ID or UID.
|
96
96
|
# @param [Hash] opts the optional parameters
|
97
97
|
# @return [nil]
|
98
|
-
def
|
99
|
-
|
98
|
+
def v1_operational_webhook_endpoint_delete(endpoint_id, opts = {})
|
99
|
+
v1_operational_webhook_endpoint_delete_with_http_info(endpoint_id, opts)
|
100
100
|
nil
|
101
101
|
end
|
102
102
|
|
103
103
|
# Delete Operational Webhook Endpoint
|
104
104
|
# Delete an operational webhook endpoint.
|
105
|
-
# @param endpoint_id [String] The
|
105
|
+
# @param endpoint_id [String] The Endpoint's ID or UID.
|
106
106
|
# @param [Hash] opts the optional parameters
|
107
107
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
108
|
-
def
|
108
|
+
def v1_operational_webhook_endpoint_delete_with_http_info(endpoint_id, opts = {})
|
109
109
|
if @api_client.config.debugging
|
110
|
-
@api_client.config.logger.debug 'Calling API: WebhookEndpointApi.
|
110
|
+
@api_client.config.logger.debug 'Calling API: WebhookEndpointApi.v1_operational_webhook_endpoint_delete ...'
|
111
111
|
end
|
112
112
|
# verify the required parameter 'endpoint_id' is set
|
113
113
|
if @api_client.config.client_side_validation && endpoint_id.nil?
|
114
|
-
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling WebhookEndpointApi.
|
114
|
+
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling WebhookEndpointApi.v1_operational_webhook_endpoint_delete"
|
115
115
|
end
|
116
116
|
if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
|
117
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling WebhookEndpointApi.
|
117
|
+
fail ArgumentError, 'invalid value for "endpoint_id" when calling WebhookEndpointApi.v1_operational_webhook_endpoint_delete, the character length must be smaller than or equal to 256.'
|
118
118
|
end
|
119
119
|
|
120
120
|
if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
|
121
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling WebhookEndpointApi.
|
121
|
+
fail ArgumentError, 'invalid value for "endpoint_id" when calling WebhookEndpointApi.v1_operational_webhook_endpoint_delete, the character length must be great than or equal to 1.'
|
122
122
|
end
|
123
123
|
|
124
124
|
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
125
125
|
if @api_client.config.client_side_validation && endpoint_id !~ pattern
|
126
|
-
fail ArgumentError, "invalid value for 'endpoint_id' when calling WebhookEndpointApi.
|
126
|
+
fail ArgumentError, "invalid value for 'endpoint_id' when calling WebhookEndpointApi.v1_operational_webhook_endpoint_delete, must conform to the pattern #{pattern}."
|
127
127
|
end
|
128
128
|
|
129
129
|
# resource path
|
@@ -150,7 +150,7 @@ module Svix
|
|
150
150
|
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
151
151
|
|
152
152
|
new_options = opts.merge(
|
153
|
-
:operation => :"WebhookEndpointApi.
|
153
|
+
:operation => :"WebhookEndpointApi.v1_operational_webhook_endpoint_delete",
|
154
154
|
:header_params => header_params,
|
155
155
|
:query_params => query_params,
|
156
156
|
:form_params => form_params,
|
@@ -161,45 +161,45 @@ module Svix
|
|
161
161
|
|
162
162
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
163
163
|
if @api_client.config.debugging
|
164
|
-
@api_client.config.logger.debug "API called: WebhookEndpointApi#
|
164
|
+
@api_client.config.logger.debug "API called: WebhookEndpointApi#v1_operational_webhook_endpoint_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
165
165
|
end
|
166
166
|
return data, status_code, headers
|
167
167
|
end
|
168
168
|
|
169
169
|
# Get Operational Webhook Endpoint
|
170
170
|
# Get an operational webhook endpoint.
|
171
|
-
# @param endpoint_id [String] The
|
171
|
+
# @param endpoint_id [String] The Endpoint's ID or UID.
|
172
172
|
# @param [Hash] opts the optional parameters
|
173
173
|
# @return [OperationalWebhookEndpointOut]
|
174
|
-
def
|
175
|
-
data, _status_code, _headers =
|
174
|
+
def v1_operational_webhook_endpoint_get(endpoint_id, opts = {})
|
175
|
+
data, _status_code, _headers = v1_operational_webhook_endpoint_get_with_http_info(endpoint_id, opts)
|
176
176
|
data
|
177
177
|
end
|
178
178
|
|
179
179
|
# Get Operational Webhook Endpoint
|
180
180
|
# Get an operational webhook endpoint.
|
181
|
-
# @param endpoint_id [String] The
|
181
|
+
# @param endpoint_id [String] The Endpoint's ID or UID.
|
182
182
|
# @param [Hash] opts the optional parameters
|
183
183
|
# @return [Array<(OperationalWebhookEndpointOut, Integer, Hash)>] OperationalWebhookEndpointOut data, response status code and response headers
|
184
|
-
def
|
184
|
+
def v1_operational_webhook_endpoint_get_with_http_info(endpoint_id, opts = {})
|
185
185
|
if @api_client.config.debugging
|
186
|
-
@api_client.config.logger.debug 'Calling API: WebhookEndpointApi.
|
186
|
+
@api_client.config.logger.debug 'Calling API: WebhookEndpointApi.v1_operational_webhook_endpoint_get ...'
|
187
187
|
end
|
188
188
|
# verify the required parameter 'endpoint_id' is set
|
189
189
|
if @api_client.config.client_side_validation && endpoint_id.nil?
|
190
|
-
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling WebhookEndpointApi.
|
190
|
+
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling WebhookEndpointApi.v1_operational_webhook_endpoint_get"
|
191
191
|
end
|
192
192
|
if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
|
193
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling WebhookEndpointApi.
|
193
|
+
fail ArgumentError, 'invalid value for "endpoint_id" when calling WebhookEndpointApi.v1_operational_webhook_endpoint_get, the character length must be smaller than or equal to 256.'
|
194
194
|
end
|
195
195
|
|
196
196
|
if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
|
197
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling WebhookEndpointApi.
|
197
|
+
fail ArgumentError, 'invalid value for "endpoint_id" when calling WebhookEndpointApi.v1_operational_webhook_endpoint_get, the character length must be great than or equal to 1.'
|
198
198
|
end
|
199
199
|
|
200
200
|
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
201
201
|
if @api_client.config.client_side_validation && endpoint_id !~ pattern
|
202
|
-
fail ArgumentError, "invalid value for 'endpoint_id' when calling WebhookEndpointApi.
|
202
|
+
fail ArgumentError, "invalid value for 'endpoint_id' when calling WebhookEndpointApi.v1_operational_webhook_endpoint_get, must conform to the pattern #{pattern}."
|
203
203
|
end
|
204
204
|
|
205
205
|
# resource path
|
@@ -226,7 +226,7 @@ module Svix
|
|
226
226
|
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
227
227
|
|
228
228
|
new_options = opts.merge(
|
229
|
-
:operation => :"WebhookEndpointApi.
|
229
|
+
:operation => :"WebhookEndpointApi.v1_operational_webhook_endpoint_get",
|
230
230
|
:header_params => header_params,
|
231
231
|
:query_params => query_params,
|
232
232
|
:form_params => form_params,
|
@@ -237,45 +237,121 @@ module Svix
|
|
237
237
|
|
238
238
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
239
239
|
if @api_client.config.debugging
|
240
|
-
@api_client.config.logger.debug "API called: WebhookEndpointApi#
|
240
|
+
@api_client.config.logger.debug "API called: WebhookEndpointApi#v1_operational_webhook_endpoint_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
241
|
+
end
|
242
|
+
return data, status_code, headers
|
243
|
+
end
|
244
|
+
|
245
|
+
# Get Operational Webhook Endpoint Headers
|
246
|
+
# Get the additional headers to be sent with the operational webhook.
|
247
|
+
# @param endpoint_id [String] The Endpoint's ID or UID.
|
248
|
+
# @param [Hash] opts the optional parameters
|
249
|
+
# @return [OperationalWebhookEndpointHeadersOut]
|
250
|
+
def v1_operational_webhook_endpoint_get_headers(endpoint_id, opts = {})
|
251
|
+
data, _status_code, _headers = v1_operational_webhook_endpoint_get_headers_with_http_info(endpoint_id, opts)
|
252
|
+
data
|
253
|
+
end
|
254
|
+
|
255
|
+
# Get Operational Webhook Endpoint Headers
|
256
|
+
# Get the additional headers to be sent with the operational webhook.
|
257
|
+
# @param endpoint_id [String] The Endpoint's ID or UID.
|
258
|
+
# @param [Hash] opts the optional parameters
|
259
|
+
# @return [Array<(OperationalWebhookEndpointHeadersOut, Integer, Hash)>] OperationalWebhookEndpointHeadersOut data, response status code and response headers
|
260
|
+
def v1_operational_webhook_endpoint_get_headers_with_http_info(endpoint_id, opts = {})
|
261
|
+
if @api_client.config.debugging
|
262
|
+
@api_client.config.logger.debug 'Calling API: WebhookEndpointApi.v1_operational_webhook_endpoint_get_headers ...'
|
263
|
+
end
|
264
|
+
# verify the required parameter 'endpoint_id' is set
|
265
|
+
if @api_client.config.client_side_validation && endpoint_id.nil?
|
266
|
+
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling WebhookEndpointApi.v1_operational_webhook_endpoint_get_headers"
|
267
|
+
end
|
268
|
+
if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
|
269
|
+
fail ArgumentError, 'invalid value for "endpoint_id" when calling WebhookEndpointApi.v1_operational_webhook_endpoint_get_headers, the character length must be smaller than or equal to 256.'
|
270
|
+
end
|
271
|
+
|
272
|
+
if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
|
273
|
+
fail ArgumentError, 'invalid value for "endpoint_id" when calling WebhookEndpointApi.v1_operational_webhook_endpoint_get_headers, the character length must be great than or equal to 1.'
|
274
|
+
end
|
275
|
+
|
276
|
+
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
277
|
+
if @api_client.config.client_side_validation && endpoint_id !~ pattern
|
278
|
+
fail ArgumentError, "invalid value for 'endpoint_id' when calling WebhookEndpointApi.v1_operational_webhook_endpoint_get_headers, must conform to the pattern #{pattern}."
|
279
|
+
end
|
280
|
+
|
281
|
+
# resource path
|
282
|
+
local_var_path = '/api/v1/operational-webhook/endpoint/{endpoint_id}/headers'.sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
283
|
+
|
284
|
+
# query parameters
|
285
|
+
query_params = opts[:query_params] || {}
|
286
|
+
|
287
|
+
# header parameters
|
288
|
+
header_params = opts[:header_params] || {}
|
289
|
+
# HTTP header 'Accept' (if needed)
|
290
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
291
|
+
|
292
|
+
# form parameters
|
293
|
+
form_params = opts[:form_params] || {}
|
294
|
+
|
295
|
+
# http body (model)
|
296
|
+
post_body = opts[:debug_body]
|
297
|
+
|
298
|
+
# return_type
|
299
|
+
return_type = opts[:debug_return_type] || 'OperationalWebhookEndpointHeadersOut'
|
300
|
+
|
301
|
+
# auth_names
|
302
|
+
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
303
|
+
|
304
|
+
new_options = opts.merge(
|
305
|
+
:operation => :"WebhookEndpointApi.v1_operational_webhook_endpoint_get_headers",
|
306
|
+
:header_params => header_params,
|
307
|
+
:query_params => query_params,
|
308
|
+
:form_params => form_params,
|
309
|
+
:body => post_body,
|
310
|
+
:auth_names => auth_names,
|
311
|
+
:return_type => return_type
|
312
|
+
)
|
313
|
+
|
314
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
315
|
+
if @api_client.config.debugging
|
316
|
+
@api_client.config.logger.debug "API called: WebhookEndpointApi#v1_operational_webhook_endpoint_get_headers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
241
317
|
end
|
242
318
|
return data, status_code, headers
|
243
319
|
end
|
244
320
|
|
245
321
|
# Get Operational Webhook Endpoint Secret
|
246
322
|
# Get an operational webhook endpoint's signing secret. This is used to verify the authenticity of the webhook. For more information please refer to [the consuming webhooks docs](https://docs.svix.com/consuming-webhooks/).
|
247
|
-
# @param endpoint_id [String] The
|
323
|
+
# @param endpoint_id [String] The Endpoint's ID or UID.
|
248
324
|
# @param [Hash] opts the optional parameters
|
249
325
|
# @return [OperationalWebhookEndpointSecretOut]
|
250
|
-
def
|
251
|
-
data, _status_code, _headers =
|
326
|
+
def v1_operational_webhook_endpoint_get_secret(endpoint_id, opts = {})
|
327
|
+
data, _status_code, _headers = v1_operational_webhook_endpoint_get_secret_with_http_info(endpoint_id, opts)
|
252
328
|
data
|
253
329
|
end
|
254
330
|
|
255
331
|
# Get Operational Webhook Endpoint Secret
|
256
332
|
# Get an operational webhook endpoint's signing secret. This is used to verify the authenticity of the webhook. For more information please refer to [the consuming webhooks docs](https://docs.svix.com/consuming-webhooks/).
|
257
|
-
# @param endpoint_id [String] The
|
333
|
+
# @param endpoint_id [String] The Endpoint's ID or UID.
|
258
334
|
# @param [Hash] opts the optional parameters
|
259
335
|
# @return [Array<(OperationalWebhookEndpointSecretOut, Integer, Hash)>] OperationalWebhookEndpointSecretOut data, response status code and response headers
|
260
|
-
def
|
336
|
+
def v1_operational_webhook_endpoint_get_secret_with_http_info(endpoint_id, opts = {})
|
261
337
|
if @api_client.config.debugging
|
262
|
-
@api_client.config.logger.debug 'Calling API: WebhookEndpointApi.
|
338
|
+
@api_client.config.logger.debug 'Calling API: WebhookEndpointApi.v1_operational_webhook_endpoint_get_secret ...'
|
263
339
|
end
|
264
340
|
# verify the required parameter 'endpoint_id' is set
|
265
341
|
if @api_client.config.client_side_validation && endpoint_id.nil?
|
266
|
-
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling WebhookEndpointApi.
|
342
|
+
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling WebhookEndpointApi.v1_operational_webhook_endpoint_get_secret"
|
267
343
|
end
|
268
344
|
if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
|
269
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling WebhookEndpointApi.
|
345
|
+
fail ArgumentError, 'invalid value for "endpoint_id" when calling WebhookEndpointApi.v1_operational_webhook_endpoint_get_secret, the character length must be smaller than or equal to 256.'
|
270
346
|
end
|
271
347
|
|
272
348
|
if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
|
273
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling WebhookEndpointApi.
|
349
|
+
fail ArgumentError, 'invalid value for "endpoint_id" when calling WebhookEndpointApi.v1_operational_webhook_endpoint_get_secret, the character length must be great than or equal to 1.'
|
274
350
|
end
|
275
351
|
|
276
352
|
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
277
353
|
if @api_client.config.client_side_validation && endpoint_id !~ pattern
|
278
|
-
fail ArgumentError, "invalid value for 'endpoint_id' when calling WebhookEndpointApi.
|
354
|
+
fail ArgumentError, "invalid value for 'endpoint_id' when calling WebhookEndpointApi.v1_operational_webhook_endpoint_get_secret, must conform to the pattern #{pattern}."
|
279
355
|
end
|
280
356
|
|
281
357
|
# resource path
|
@@ -302,7 +378,7 @@ module Svix
|
|
302
378
|
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
303
379
|
|
304
380
|
new_options = opts.merge(
|
305
|
-
:operation => :"WebhookEndpointApi.
|
381
|
+
:operation => :"WebhookEndpointApi.v1_operational_webhook_endpoint_get_secret",
|
306
382
|
:header_params => header_params,
|
307
383
|
:query_params => query_params,
|
308
384
|
:form_params => form_params,
|
@@ -313,7 +389,7 @@ module Svix
|
|
313
389
|
|
314
390
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
315
391
|
if @api_client.config.debugging
|
316
|
-
@api_client.config.logger.debug "API called: WebhookEndpointApi#
|
392
|
+
@api_client.config.logger.debug "API called: WebhookEndpointApi#v1_operational_webhook_endpoint_get_secret\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
317
393
|
end
|
318
394
|
return data, status_code, headers
|
319
395
|
end
|
@@ -325,8 +401,8 @@ module Svix
|
|
325
401
|
# @option opts [String] :iterator The iterator returned from a prior invocation
|
326
402
|
# @option opts [Ordering] :order The sorting order of the returned items
|
327
403
|
# @return [ListResponseOperationalWebhookEndpointOut]
|
328
|
-
def
|
329
|
-
data, _status_code, _headers =
|
404
|
+
def v1_operational_webhook_endpoint_list(opts = {})
|
405
|
+
data, _status_code, _headers = v1_operational_webhook_endpoint_list_with_http_info(opts)
|
330
406
|
data
|
331
407
|
end
|
332
408
|
|
@@ -337,16 +413,29 @@ module Svix
|
|
337
413
|
# @option opts [String] :iterator The iterator returned from a prior invocation
|
338
414
|
# @option opts [Ordering] :order The sorting order of the returned items
|
339
415
|
# @return [Array<(ListResponseOperationalWebhookEndpointOut, Integer, Hash)>] ListResponseOperationalWebhookEndpointOut data, response status code and response headers
|
340
|
-
def
|
416
|
+
def v1_operational_webhook_endpoint_list_with_http_info(opts = {})
|
341
417
|
if @api_client.config.debugging
|
342
|
-
@api_client.config.logger.debug 'Calling API: WebhookEndpointApi.
|
418
|
+
@api_client.config.logger.debug 'Calling API: WebhookEndpointApi.v1_operational_webhook_endpoint_list ...'
|
343
419
|
end
|
344
420
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 250
|
345
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling WebhookEndpointApi.
|
421
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling WebhookEndpointApi.v1_operational_webhook_endpoint_list, must be smaller than or equal to 250.'
|
346
422
|
end
|
347
423
|
|
348
424
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
349
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling WebhookEndpointApi.
|
425
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling WebhookEndpointApi.v1_operational_webhook_endpoint_list, must be greater than or equal to 1.'
|
426
|
+
end
|
427
|
+
|
428
|
+
if @api_client.config.client_side_validation && !opts[:'iterator'].nil? && opts[:'iterator'].to_s.length > 30
|
429
|
+
fail ArgumentError, 'invalid value for "opts[:"iterator"]" when calling WebhookEndpointApi.v1_operational_webhook_endpoint_list, the character length must be smaller than or equal to 30.'
|
430
|
+
end
|
431
|
+
|
432
|
+
if @api_client.config.client_side_validation && !opts[:'iterator'].nil? && opts[:'iterator'].to_s.length < 30
|
433
|
+
fail ArgumentError, 'invalid value for "opts[:"iterator"]" when calling WebhookEndpointApi.v1_operational_webhook_endpoint_list, the character length must be great than or equal to 30.'
|
434
|
+
end
|
435
|
+
|
436
|
+
pattern = Regexp.new(/^ep_[A-Za-z0-9]{27}$/)
|
437
|
+
if @api_client.config.client_side_validation && !opts[:'iterator'].nil? && opts[:'iterator'] !~ pattern
|
438
|
+
fail ArgumentError, "invalid value for 'opts[:\"iterator\"]' when calling WebhookEndpointApi.v1_operational_webhook_endpoint_list, must conform to the pattern #{pattern}."
|
350
439
|
end
|
351
440
|
|
352
441
|
# resource path
|
@@ -376,7 +465,7 @@ module Svix
|
|
376
465
|
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
377
466
|
|
378
467
|
new_options = opts.merge(
|
379
|
-
:operation => :"WebhookEndpointApi.
|
468
|
+
:operation => :"WebhookEndpointApi.v1_operational_webhook_endpoint_list",
|
380
469
|
:header_params => header_params,
|
381
470
|
:query_params => query_params,
|
382
471
|
:form_params => form_params,
|
@@ -387,54 +476,54 @@ module Svix
|
|
387
476
|
|
388
477
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
389
478
|
if @api_client.config.debugging
|
390
|
-
@api_client.config.logger.debug "API called: WebhookEndpointApi#
|
479
|
+
@api_client.config.logger.debug "API called: WebhookEndpointApi#v1_operational_webhook_endpoint_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
391
480
|
end
|
392
481
|
return data, status_code, headers
|
393
482
|
end
|
394
483
|
|
395
484
|
# Rotate Operational Webhook Endpoint Secret
|
396
485
|
# Rotates an operational webhook endpoint's signing secret. The previous secret will remain valid for the next 24 hours.
|
397
|
-
# @param endpoint_id [String] The
|
486
|
+
# @param endpoint_id [String] The Endpoint's ID or UID.
|
398
487
|
# @param operational_webhook_endpoint_secret_in [OperationalWebhookEndpointSecretIn]
|
399
488
|
# @param [Hash] opts the optional parameters
|
400
489
|
# @option opts [String] :idempotency_key The request's idempotency key
|
401
490
|
# @return [nil]
|
402
|
-
def
|
403
|
-
|
491
|
+
def v1_operational_webhook_endpoint_rotate_secret(endpoint_id, operational_webhook_endpoint_secret_in, opts = {})
|
492
|
+
v1_operational_webhook_endpoint_rotate_secret_with_http_info(endpoint_id, operational_webhook_endpoint_secret_in, opts)
|
404
493
|
nil
|
405
494
|
end
|
406
495
|
|
407
496
|
# Rotate Operational Webhook Endpoint Secret
|
408
497
|
# Rotates an operational webhook endpoint's signing secret. The previous secret will remain valid for the next 24 hours.
|
409
|
-
# @param endpoint_id [String] The
|
498
|
+
# @param endpoint_id [String] The Endpoint's ID or UID.
|
410
499
|
# @param operational_webhook_endpoint_secret_in [OperationalWebhookEndpointSecretIn]
|
411
500
|
# @param [Hash] opts the optional parameters
|
412
501
|
# @option opts [String] :idempotency_key The request's idempotency key
|
413
502
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
414
|
-
def
|
503
|
+
def v1_operational_webhook_endpoint_rotate_secret_with_http_info(endpoint_id, operational_webhook_endpoint_secret_in, opts = {})
|
415
504
|
if @api_client.config.debugging
|
416
|
-
@api_client.config.logger.debug 'Calling API: WebhookEndpointApi.
|
505
|
+
@api_client.config.logger.debug 'Calling API: WebhookEndpointApi.v1_operational_webhook_endpoint_rotate_secret ...'
|
417
506
|
end
|
418
507
|
# verify the required parameter 'endpoint_id' is set
|
419
508
|
if @api_client.config.client_side_validation && endpoint_id.nil?
|
420
|
-
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling WebhookEndpointApi.
|
509
|
+
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling WebhookEndpointApi.v1_operational_webhook_endpoint_rotate_secret"
|
421
510
|
end
|
422
511
|
if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
|
423
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling WebhookEndpointApi.
|
512
|
+
fail ArgumentError, 'invalid value for "endpoint_id" when calling WebhookEndpointApi.v1_operational_webhook_endpoint_rotate_secret, the character length must be smaller than or equal to 256.'
|
424
513
|
end
|
425
514
|
|
426
515
|
if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
|
427
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling WebhookEndpointApi.
|
516
|
+
fail ArgumentError, 'invalid value for "endpoint_id" when calling WebhookEndpointApi.v1_operational_webhook_endpoint_rotate_secret, the character length must be great than or equal to 1.'
|
428
517
|
end
|
429
518
|
|
430
519
|
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
431
520
|
if @api_client.config.client_side_validation && endpoint_id !~ pattern
|
432
|
-
fail ArgumentError, "invalid value for 'endpoint_id' when calling WebhookEndpointApi.
|
521
|
+
fail ArgumentError, "invalid value for 'endpoint_id' when calling WebhookEndpointApi.v1_operational_webhook_endpoint_rotate_secret, must conform to the pattern #{pattern}."
|
433
522
|
end
|
434
523
|
|
435
524
|
# verify the required parameter 'operational_webhook_endpoint_secret_in' is set
|
436
525
|
if @api_client.config.client_side_validation && operational_webhook_endpoint_secret_in.nil?
|
437
|
-
fail ArgumentError, "Missing the required parameter 'operational_webhook_endpoint_secret_in' when calling WebhookEndpointApi.
|
526
|
+
fail ArgumentError, "Missing the required parameter 'operational_webhook_endpoint_secret_in' when calling WebhookEndpointApi.v1_operational_webhook_endpoint_rotate_secret"
|
438
527
|
end
|
439
528
|
# resource path
|
440
529
|
local_var_path = '/api/v1/operational-webhook/endpoint/{endpoint_id}/secret/rotate'.sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
@@ -466,7 +555,7 @@ module Svix
|
|
466
555
|
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
467
556
|
|
468
557
|
new_options = opts.merge(
|
469
|
-
:operation => :"WebhookEndpointApi.
|
558
|
+
:operation => :"WebhookEndpointApi.v1_operational_webhook_endpoint_rotate_secret",
|
470
559
|
:header_params => header_params,
|
471
560
|
:query_params => query_params,
|
472
561
|
:form_params => form_params,
|
@@ -477,52 +566,52 @@ module Svix
|
|
477
566
|
|
478
567
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
479
568
|
if @api_client.config.debugging
|
480
|
-
@api_client.config.logger.debug "API called: WebhookEndpointApi#
|
569
|
+
@api_client.config.logger.debug "API called: WebhookEndpointApi#v1_operational_webhook_endpoint_rotate_secret\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
481
570
|
end
|
482
571
|
return data, status_code, headers
|
483
572
|
end
|
484
573
|
|
485
574
|
# Update Operational Webhook Endpoint
|
486
575
|
# Update an operational webhook endpoint.
|
487
|
-
# @param endpoint_id [String] The
|
576
|
+
# @param endpoint_id [String] The Endpoint's ID or UID.
|
488
577
|
# @param operational_webhook_endpoint_update [OperationalWebhookEndpointUpdate]
|
489
578
|
# @param [Hash] opts the optional parameters
|
490
579
|
# @return [OperationalWebhookEndpointOut]
|
491
|
-
def
|
492
|
-
data, _status_code, _headers =
|
580
|
+
def v1_operational_webhook_endpoint_update(endpoint_id, operational_webhook_endpoint_update, opts = {})
|
581
|
+
data, _status_code, _headers = v1_operational_webhook_endpoint_update_with_http_info(endpoint_id, operational_webhook_endpoint_update, opts)
|
493
582
|
data
|
494
583
|
end
|
495
584
|
|
496
585
|
# Update Operational Webhook Endpoint
|
497
586
|
# Update an operational webhook endpoint.
|
498
|
-
# @param endpoint_id [String] The
|
587
|
+
# @param endpoint_id [String] The Endpoint's ID or UID.
|
499
588
|
# @param operational_webhook_endpoint_update [OperationalWebhookEndpointUpdate]
|
500
589
|
# @param [Hash] opts the optional parameters
|
501
590
|
# @return [Array<(OperationalWebhookEndpointOut, Integer, Hash)>] OperationalWebhookEndpointOut data, response status code and response headers
|
502
|
-
def
|
591
|
+
def v1_operational_webhook_endpoint_update_with_http_info(endpoint_id, operational_webhook_endpoint_update, opts = {})
|
503
592
|
if @api_client.config.debugging
|
504
|
-
@api_client.config.logger.debug 'Calling API: WebhookEndpointApi.
|
593
|
+
@api_client.config.logger.debug 'Calling API: WebhookEndpointApi.v1_operational_webhook_endpoint_update ...'
|
505
594
|
end
|
506
595
|
# verify the required parameter 'endpoint_id' is set
|
507
596
|
if @api_client.config.client_side_validation && endpoint_id.nil?
|
508
|
-
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling WebhookEndpointApi.
|
597
|
+
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling WebhookEndpointApi.v1_operational_webhook_endpoint_update"
|
509
598
|
end
|
510
599
|
if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
|
511
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling WebhookEndpointApi.
|
600
|
+
fail ArgumentError, 'invalid value for "endpoint_id" when calling WebhookEndpointApi.v1_operational_webhook_endpoint_update, the character length must be smaller than or equal to 256.'
|
512
601
|
end
|
513
602
|
|
514
603
|
if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
|
515
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling WebhookEndpointApi.
|
604
|
+
fail ArgumentError, 'invalid value for "endpoint_id" when calling WebhookEndpointApi.v1_operational_webhook_endpoint_update, the character length must be great than or equal to 1.'
|
516
605
|
end
|
517
606
|
|
518
607
|
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
519
608
|
if @api_client.config.client_side_validation && endpoint_id !~ pattern
|
520
|
-
fail ArgumentError, "invalid value for 'endpoint_id' when calling WebhookEndpointApi.
|
609
|
+
fail ArgumentError, "invalid value for 'endpoint_id' when calling WebhookEndpointApi.v1_operational_webhook_endpoint_update, must conform to the pattern #{pattern}."
|
521
610
|
end
|
522
611
|
|
523
612
|
# verify the required parameter 'operational_webhook_endpoint_update' is set
|
524
613
|
if @api_client.config.client_side_validation && operational_webhook_endpoint_update.nil?
|
525
|
-
fail ArgumentError, "Missing the required parameter 'operational_webhook_endpoint_update' when calling WebhookEndpointApi.
|
614
|
+
fail ArgumentError, "Missing the required parameter 'operational_webhook_endpoint_update' when calling WebhookEndpointApi.v1_operational_webhook_endpoint_update"
|
526
615
|
end
|
527
616
|
# resource path
|
528
617
|
local_var_path = '/api/v1/operational-webhook/endpoint/{endpoint_id}'.sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
@@ -553,7 +642,94 @@ module Svix
|
|
553
642
|
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
554
643
|
|
555
644
|
new_options = opts.merge(
|
556
|
-
:operation => :"WebhookEndpointApi.
|
645
|
+
:operation => :"WebhookEndpointApi.v1_operational_webhook_endpoint_update",
|
646
|
+
:header_params => header_params,
|
647
|
+
:query_params => query_params,
|
648
|
+
:form_params => form_params,
|
649
|
+
:body => post_body,
|
650
|
+
:auth_names => auth_names,
|
651
|
+
:return_type => return_type
|
652
|
+
)
|
653
|
+
|
654
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
655
|
+
if @api_client.config.debugging
|
656
|
+
@api_client.config.logger.debug "API called: WebhookEndpointApi#v1_operational_webhook_endpoint_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
657
|
+
end
|
658
|
+
return data, status_code, headers
|
659
|
+
end
|
660
|
+
|
661
|
+
# Update Operational Webhook Endpoint Headers
|
662
|
+
# Set the additional headers to be sent with the operational webhook.
|
663
|
+
# @param endpoint_id [String] The Endpoint's ID or UID.
|
664
|
+
# @param operational_webhook_endpoint_headers_in [OperationalWebhookEndpointHeadersIn]
|
665
|
+
# @param [Hash] opts the optional parameters
|
666
|
+
# @return [nil]
|
667
|
+
def v1_operational_webhook_endpoint_update_headers(endpoint_id, operational_webhook_endpoint_headers_in, opts = {})
|
668
|
+
v1_operational_webhook_endpoint_update_headers_with_http_info(endpoint_id, operational_webhook_endpoint_headers_in, opts)
|
669
|
+
nil
|
670
|
+
end
|
671
|
+
|
672
|
+
# Update Operational Webhook Endpoint Headers
|
673
|
+
# Set the additional headers to be sent with the operational webhook.
|
674
|
+
# @param endpoint_id [String] The Endpoint's ID or UID.
|
675
|
+
# @param operational_webhook_endpoint_headers_in [OperationalWebhookEndpointHeadersIn]
|
676
|
+
# @param [Hash] opts the optional parameters
|
677
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
678
|
+
def v1_operational_webhook_endpoint_update_headers_with_http_info(endpoint_id, operational_webhook_endpoint_headers_in, opts = {})
|
679
|
+
if @api_client.config.debugging
|
680
|
+
@api_client.config.logger.debug 'Calling API: WebhookEndpointApi.v1_operational_webhook_endpoint_update_headers ...'
|
681
|
+
end
|
682
|
+
# verify the required parameter 'endpoint_id' is set
|
683
|
+
if @api_client.config.client_side_validation && endpoint_id.nil?
|
684
|
+
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling WebhookEndpointApi.v1_operational_webhook_endpoint_update_headers"
|
685
|
+
end
|
686
|
+
if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
|
687
|
+
fail ArgumentError, 'invalid value for "endpoint_id" when calling WebhookEndpointApi.v1_operational_webhook_endpoint_update_headers, the character length must be smaller than or equal to 256.'
|
688
|
+
end
|
689
|
+
|
690
|
+
if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
|
691
|
+
fail ArgumentError, 'invalid value for "endpoint_id" when calling WebhookEndpointApi.v1_operational_webhook_endpoint_update_headers, the character length must be great than or equal to 1.'
|
692
|
+
end
|
693
|
+
|
694
|
+
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
695
|
+
if @api_client.config.client_side_validation && endpoint_id !~ pattern
|
696
|
+
fail ArgumentError, "invalid value for 'endpoint_id' when calling WebhookEndpointApi.v1_operational_webhook_endpoint_update_headers, must conform to the pattern #{pattern}."
|
697
|
+
end
|
698
|
+
|
699
|
+
# verify the required parameter 'operational_webhook_endpoint_headers_in' is set
|
700
|
+
if @api_client.config.client_side_validation && operational_webhook_endpoint_headers_in.nil?
|
701
|
+
fail ArgumentError, "Missing the required parameter 'operational_webhook_endpoint_headers_in' when calling WebhookEndpointApi.v1_operational_webhook_endpoint_update_headers"
|
702
|
+
end
|
703
|
+
# resource path
|
704
|
+
local_var_path = '/api/v1/operational-webhook/endpoint/{endpoint_id}/headers'.sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
705
|
+
|
706
|
+
# query parameters
|
707
|
+
query_params = opts[:query_params] || {}
|
708
|
+
|
709
|
+
# header parameters
|
710
|
+
header_params = opts[:header_params] || {}
|
711
|
+
# HTTP header 'Accept' (if needed)
|
712
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
713
|
+
# HTTP header 'Content-Type'
|
714
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
715
|
+
if !content_type.nil?
|
716
|
+
header_params['Content-Type'] = content_type
|
717
|
+
end
|
718
|
+
|
719
|
+
# form parameters
|
720
|
+
form_params = opts[:form_params] || {}
|
721
|
+
|
722
|
+
# http body (model)
|
723
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(operational_webhook_endpoint_headers_in)
|
724
|
+
|
725
|
+
# return_type
|
726
|
+
return_type = opts[:debug_return_type]
|
727
|
+
|
728
|
+
# auth_names
|
729
|
+
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
730
|
+
|
731
|
+
new_options = opts.merge(
|
732
|
+
:operation => :"WebhookEndpointApi.v1_operational_webhook_endpoint_update_headers",
|
557
733
|
:header_params => header_params,
|
558
734
|
:query_params => query_params,
|
559
735
|
:form_params => form_params,
|
@@ -564,7 +740,7 @@ module Svix
|
|
564
740
|
|
565
741
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
566
742
|
if @api_client.config.debugging
|
567
|
-
@api_client.config.logger.debug "API called: WebhookEndpointApi#
|
743
|
+
@api_client.config.logger.debug "API called: WebhookEndpointApi#v1_operational_webhook_endpoint_update_headers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
568
744
|
end
|
569
745
|
return data, status_code, headers
|
570
746
|
end
|
@@ -7,11 +7,11 @@ module Svix
|
|
7
7
|
end
|
8
8
|
|
9
9
|
def list(options = {})
|
10
|
-
return @api.
|
10
|
+
return @api.v1_background_task_list(options)
|
11
11
|
end
|
12
12
|
|
13
13
|
def get(task_id, options = {})
|
14
|
-
return @api.
|
14
|
+
return @api.v1_background_task_get(task_id, options)
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|