svix 1.21.0 → 1.23.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 -2
- data/lib/svix/api/application_api.rb +8 -8
- data/lib/svix/api/authentication_api.rb +5 -5
- data/lib/svix/api/background_tasks_api.rb +2 -2
- data/lib/svix/api/broadcast_api.rb +1 -1
- data/lib/svix/api/endpoint_api.rb +216 -18
- data/lib/svix/api/environment_api.rb +3 -3
- data/lib/svix/api/environment_settings_api.rb +1 -1
- data/lib/svix/api/event_type_api.rb +13 -13
- data/lib/svix/api/events_api.rb +102 -0
- data/lib/svix/api/health_api.rb +1 -1
- data/lib/svix/api/inbound_api.rb +2 -2
- data/lib/svix/api/integration_api.rb +10 -7
- data/lib/svix/api/message_api.rb +10 -7
- data/lib/svix/api/message_attempt_api.rb +10 -10
- data/lib/svix/api/statistics_api.rb +4 -4
- data/lib/svix/api/transformation_template_api.rb +2 -2
- data/lib/svix/models/app_portal_access_in.rb +16 -5
- data/lib/svix/models/client_secret_jwt_params_in.rb +272 -0
- data/lib/svix/models/custom_color_palette.rb +9 -0
- data/lib/svix/models/endpoint_oauth_config_in.rb +284 -0
- data/lib/svix/models/environment_settings_out.rb +1 -0
- data/lib/svix/models/oauth2_auth_method_in.rb +38 -0
- data/lib/svix/models/oauth2_grant_type.rb +36 -0
- data/lib/svix/models/oauth_jws_signing_algorithm.rb +36 -0
- data/lib/svix/models/settings_in.rb +1 -0
- data/lib/svix/models/settings_out.rb +1 -0
- data/lib/svix/version.rb +1 -1
- data/lib/svix.rb +3 -0
- data/svix.gemspec +0 -1
- metadata +8 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d9a1e975f63d58999f477f489e1e061c71a0087f4a21654539ade169531a0af2
|
4
|
+
data.tar.gz: dab74fe571f4656d1e2d90fde91fdc238a8cf51058adaceeab78ffb2bbf6f37f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27ae734208b86525182e502086dc065f446dff33e4ae47709d28a56973bfbc966bdac0bfe7558751f068d2c9ef755ed64b7eac12c564fec6fb538da72fbe46d2
|
7
|
+
data.tar.gz: 1931001d9a9b84643ea3627a91b415d727f195fe5045e2ec90cf60b908a228d7bcfaaa59412caa8d24507221dafb11c7b0ed91d584313bf514a1443056e73106
|
data/Gemfile.lock
CHANGED
@@ -57,7 +57,7 @@ module Svix
|
|
57
57
|
end
|
58
58
|
|
59
59
|
# resource path
|
60
|
-
local_var_path = '/api/v1/app/stats/usage
|
60
|
+
local_var_path = '/api/v1/app/stats/usage'
|
61
61
|
|
62
62
|
# query parameters
|
63
63
|
query_params = opts[:query_params] || {}
|
@@ -128,7 +128,7 @@ module Svix
|
|
128
128
|
fail ArgumentError, "Missing the required parameter 'application_in' when calling ApplicationApi.v1_application_create"
|
129
129
|
end
|
130
130
|
# resource path
|
131
|
-
local_var_path = '/api/v1/app
|
131
|
+
local_var_path = '/api/v1/app'
|
132
132
|
|
133
133
|
# query parameters
|
134
134
|
query_params = opts[:query_params] || {}
|
@@ -208,7 +208,7 @@ module Svix
|
|
208
208
|
end
|
209
209
|
|
210
210
|
# resource path
|
211
|
-
local_var_path = '/api/v1/app/{app_id}
|
211
|
+
local_var_path = '/api/v1/app/{app_id}'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
|
212
212
|
|
213
213
|
# query parameters
|
214
214
|
query_params = opts[:query_params] || {}
|
@@ -284,7 +284,7 @@ module Svix
|
|
284
284
|
end
|
285
285
|
|
286
286
|
# resource path
|
287
|
-
local_var_path = '/api/v1/app/{app_id}
|
287
|
+
local_var_path = '/api/v1/app/{app_id}'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
|
288
288
|
|
289
289
|
# query parameters
|
290
290
|
query_params = opts[:query_params] || {}
|
@@ -372,7 +372,7 @@ module Svix
|
|
372
372
|
end
|
373
373
|
|
374
374
|
# resource path
|
375
|
-
local_var_path = '/api/v1/app/{app_id}/stats
|
375
|
+
local_var_path = '/api/v1/app/{app_id}/stats'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
|
376
376
|
|
377
377
|
# query parameters
|
378
378
|
query_params = opts[:query_params] || {}
|
@@ -445,7 +445,7 @@ module Svix
|
|
445
445
|
end
|
446
446
|
|
447
447
|
# resource path
|
448
|
-
local_var_path = '/api/v1/app
|
448
|
+
local_var_path = '/api/v1/app'
|
449
449
|
|
450
450
|
# query parameters
|
451
451
|
query_params = opts[:query_params] || {}
|
@@ -530,7 +530,7 @@ module Svix
|
|
530
530
|
fail ArgumentError, "Missing the required parameter 'application_patch' when calling ApplicationApi.v1_application_patch"
|
531
531
|
end
|
532
532
|
# resource path
|
533
|
-
local_var_path = '/api/v1/app/{app_id}
|
533
|
+
local_var_path = '/api/v1/app/{app_id}'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
|
534
534
|
|
535
535
|
# query parameters
|
536
536
|
query_params = opts[:query_params] || {}
|
@@ -614,7 +614,7 @@ module Svix
|
|
614
614
|
fail ArgumentError, "Missing the required parameter 'application_in' when calling ApplicationApi.v1_application_update"
|
615
615
|
end
|
616
616
|
# resource path
|
617
|
-
local_var_path = '/api/v1/app/{app_id}
|
617
|
+
local_var_path = '/api/v1/app/{app_id}'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
|
618
618
|
|
619
619
|
# query parameters
|
620
620
|
query_params = opts[:query_params] || {}
|
@@ -64,7 +64,7 @@ module Svix
|
|
64
64
|
fail ArgumentError, "Missing the required parameter 'app_portal_access_in' when calling AuthenticationApi.v1_authentication_app_portal_access"
|
65
65
|
end
|
66
66
|
# resource path
|
67
|
-
local_var_path = '/api/v1/auth/app-portal-access/{app_id}
|
67
|
+
local_var_path = '/api/v1/auth/app-portal-access/{app_id}'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
|
68
68
|
|
69
69
|
# query parameters
|
70
70
|
query_params = opts[:query_params] || {}
|
@@ -145,7 +145,7 @@ module Svix
|
|
145
145
|
end
|
146
146
|
|
147
147
|
# resource path
|
148
|
-
local_var_path = '/api/v1/auth/dashboard-access/{app_id}
|
148
|
+
local_var_path = '/api/v1/auth/dashboard-access/{app_id}'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
|
149
149
|
|
150
150
|
# query parameters
|
151
151
|
query_params = opts[:query_params] || {}
|
@@ -211,7 +211,7 @@ module Svix
|
|
211
211
|
fail ArgumentError, "Missing the required parameter 'one_time_token_in' when calling AuthenticationApi.v1_authentication_exchange_one_time_token"
|
212
212
|
end
|
213
213
|
# resource path
|
214
|
-
local_var_path = '/api/v1/auth/one-time-token
|
214
|
+
local_var_path = '/api/v1/auth/one-time-token'
|
215
215
|
|
216
216
|
# query parameters
|
217
217
|
query_params = opts[:query_params] || {}
|
@@ -298,7 +298,7 @@ module Svix
|
|
298
298
|
fail ArgumentError, "Missing the required parameter 'application_token_expire_in' when calling AuthenticationApi.v1_authentication_expire_all"
|
299
299
|
end
|
300
300
|
# resource path
|
301
|
-
local_var_path = '/api/v1/auth/app/{app_id}/expire-all
|
301
|
+
local_var_path = '/api/v1/auth/app/{app_id}/expire-all'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
|
302
302
|
|
303
303
|
# query parameters
|
304
304
|
query_params = opts[:query_params] || {}
|
@@ -360,7 +360,7 @@ module Svix
|
|
360
360
|
@api_client.config.logger.debug 'Calling API: AuthenticationApi.v1_authentication_logout ...'
|
361
361
|
end
|
362
362
|
# resource path
|
363
|
-
local_var_path = '/api/v1/auth/logout
|
363
|
+
local_var_path = '/api/v1/auth/logout'
|
364
364
|
|
365
365
|
# query parameters
|
366
366
|
query_params = opts[:query_params] || {}
|
@@ -43,7 +43,7 @@ module Svix
|
|
43
43
|
fail ArgumentError, "Missing the required parameter 'task_id' when calling BackgroundTasksApi.get_background_task"
|
44
44
|
end
|
45
45
|
# resource path
|
46
|
-
local_var_path = '/api/v1/background-task/{task_id}
|
46
|
+
local_var_path = '/api/v1/background-task/{task_id}'.sub('{' + 'task_id' + '}', CGI.escape(task_id.to_s))
|
47
47
|
|
48
48
|
# query parameters
|
49
49
|
query_params = opts[:query_params] || {}
|
@@ -118,7 +118,7 @@ module Svix
|
|
118
118
|
end
|
119
119
|
|
120
120
|
# resource path
|
121
|
-
local_var_path = '/api/v1/background-task
|
121
|
+
local_var_path = '/api/v1/background-task'
|
122
122
|
|
123
123
|
# query parameters
|
124
124
|
query_params = opts[:query_params] || {}
|
@@ -45,7 +45,7 @@ module Svix
|
|
45
45
|
fail ArgumentError, "Missing the required parameter 'message_broadcast_in' when calling BroadcastApi.create_broadcast_message"
|
46
46
|
end
|
47
47
|
# resource path
|
48
|
-
local_var_path = '/api/v1/msg/broadcast
|
48
|
+
local_var_path = '/api/v1/msg/broadcast'
|
49
49
|
|
50
50
|
# query parameters
|
51
51
|
query_params = opts[:query_params] || {}
|
@@ -64,7 +64,7 @@ module Svix
|
|
64
64
|
fail ArgumentError, "Missing the required parameter 'endpoint_in' when calling EndpointApi.v1_endpoint_create"
|
65
65
|
end
|
66
66
|
# resource path
|
67
|
-
local_var_path = '/api/v1/app/{app_id}/endpoint
|
67
|
+
local_var_path = '/api/v1/app/{app_id}/endpoint'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
|
68
68
|
|
69
69
|
# query parameters
|
70
70
|
query_params = opts[:query_params] || {}
|
@@ -162,7 +162,7 @@ module Svix
|
|
162
162
|
end
|
163
163
|
|
164
164
|
# resource path
|
165
|
-
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}
|
165
|
+
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
166
166
|
|
167
167
|
# query parameters
|
168
168
|
query_params = opts[:query_params] || {}
|
@@ -201,6 +201,101 @@ module Svix
|
|
201
201
|
return data, status_code, headers
|
202
202
|
end
|
203
203
|
|
204
|
+
# Delete Endpoint Oauth Config
|
205
|
+
# Delete endpoint OAuth configuration
|
206
|
+
# @param app_id [String] The app's ID or UID
|
207
|
+
# @param endpoint_id [String] The ep's ID or UID
|
208
|
+
# @param [Hash] opts the optional parameters
|
209
|
+
# @return [nil]
|
210
|
+
def v1_endpoint_delete_oauth_config(app_id, endpoint_id, opts = {})
|
211
|
+
v1_endpoint_delete_oauth_config_with_http_info(app_id, endpoint_id, opts)
|
212
|
+
nil
|
213
|
+
end
|
214
|
+
|
215
|
+
# Delete Endpoint Oauth Config
|
216
|
+
# Delete endpoint OAuth configuration
|
217
|
+
# @param app_id [String] The app's ID or UID
|
218
|
+
# @param endpoint_id [String] The ep's ID or UID
|
219
|
+
# @param [Hash] opts the optional parameters
|
220
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
221
|
+
def v1_endpoint_delete_oauth_config_with_http_info(app_id, endpoint_id, opts = {})
|
222
|
+
if @api_client.config.debugging
|
223
|
+
@api_client.config.logger.debug 'Calling API: EndpointApi.v1_endpoint_delete_oauth_config ...'
|
224
|
+
end
|
225
|
+
# verify the required parameter 'app_id' is set
|
226
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
227
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.v1_endpoint_delete_oauth_config"
|
228
|
+
end
|
229
|
+
if @api_client.config.client_side_validation && app_id.to_s.length > 256
|
230
|
+
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_delete_oauth_config, the character length must be smaller than or equal to 256.'
|
231
|
+
end
|
232
|
+
|
233
|
+
if @api_client.config.client_side_validation && app_id.to_s.length < 1
|
234
|
+
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_delete_oauth_config, the character length must be great than or equal to 1.'
|
235
|
+
end
|
236
|
+
|
237
|
+
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
238
|
+
if @api_client.config.client_side_validation && app_id !~ pattern
|
239
|
+
fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.v1_endpoint_delete_oauth_config, must conform to the pattern #{pattern}."
|
240
|
+
end
|
241
|
+
|
242
|
+
# verify the required parameter 'endpoint_id' is set
|
243
|
+
if @api_client.config.client_side_validation && endpoint_id.nil?
|
244
|
+
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.v1_endpoint_delete_oauth_config"
|
245
|
+
end
|
246
|
+
if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
|
247
|
+
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_delete_oauth_config, the character length must be smaller than or equal to 256.'
|
248
|
+
end
|
249
|
+
|
250
|
+
if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
|
251
|
+
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_delete_oauth_config, the character length must be great than or equal to 1.'
|
252
|
+
end
|
253
|
+
|
254
|
+
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
255
|
+
if @api_client.config.client_side_validation && endpoint_id !~ pattern
|
256
|
+
fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.v1_endpoint_delete_oauth_config, must conform to the pattern #{pattern}."
|
257
|
+
end
|
258
|
+
|
259
|
+
# resource path
|
260
|
+
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/oauth'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
261
|
+
|
262
|
+
# query parameters
|
263
|
+
query_params = opts[:query_params] || {}
|
264
|
+
|
265
|
+
# header parameters
|
266
|
+
header_params = opts[:header_params] || {}
|
267
|
+
# HTTP header 'Accept' (if needed)
|
268
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
269
|
+
|
270
|
+
# form parameters
|
271
|
+
form_params = opts[:form_params] || {}
|
272
|
+
|
273
|
+
# http body (model)
|
274
|
+
post_body = opts[:debug_body]
|
275
|
+
|
276
|
+
# return_type
|
277
|
+
return_type = opts[:debug_return_type]
|
278
|
+
|
279
|
+
# auth_names
|
280
|
+
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
281
|
+
|
282
|
+
new_options = opts.merge(
|
283
|
+
:operation => :"EndpointApi.v1_endpoint_delete_oauth_config",
|
284
|
+
:header_params => header_params,
|
285
|
+
:query_params => query_params,
|
286
|
+
:form_params => form_params,
|
287
|
+
:body => post_body,
|
288
|
+
:auth_names => auth_names,
|
289
|
+
:return_type => return_type
|
290
|
+
)
|
291
|
+
|
292
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
293
|
+
if @api_client.config.debugging
|
294
|
+
@api_client.config.logger.debug "API called: EndpointApi#v1_endpoint_delete_oauth_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
295
|
+
end
|
296
|
+
return data, status_code, headers
|
297
|
+
end
|
298
|
+
|
204
299
|
# Get Endpoint
|
205
300
|
# Get an endpoint.
|
206
301
|
# @param app_id [String] The app's ID or UID
|
@@ -257,7 +352,7 @@ module Svix
|
|
257
352
|
end
|
258
353
|
|
259
354
|
# resource path
|
260
|
-
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}
|
355
|
+
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
261
356
|
|
262
357
|
# query parameters
|
263
358
|
query_params = opts[:query_params] || {}
|
@@ -352,7 +447,7 @@ module Svix
|
|
352
447
|
end
|
353
448
|
|
354
449
|
# resource path
|
355
|
-
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/headers
|
450
|
+
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/headers'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
356
451
|
|
357
452
|
# query parameters
|
358
453
|
query_params = opts[:query_params] || {}
|
@@ -447,7 +542,7 @@ module Svix
|
|
447
542
|
end
|
448
543
|
|
449
544
|
# resource path
|
450
|
-
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/secret
|
545
|
+
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/secret'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
451
546
|
|
452
547
|
# query parameters
|
453
548
|
query_params = opts[:query_params] || {}
|
@@ -546,7 +641,7 @@ module Svix
|
|
546
641
|
end
|
547
642
|
|
548
643
|
# resource path
|
549
|
-
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/stats
|
644
|
+
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/stats'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
550
645
|
|
551
646
|
# query parameters
|
552
647
|
query_params = opts[:query_params] || {}
|
@@ -638,7 +733,7 @@ module Svix
|
|
638
733
|
end
|
639
734
|
|
640
735
|
# resource path
|
641
|
-
local_var_path = '/api/v1/app/{app_id}/endpoint
|
736
|
+
local_var_path = '/api/v1/app/{app_id}/endpoint'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
|
642
737
|
|
643
738
|
# query parameters
|
644
739
|
query_params = opts[:query_params] || {}
|
@@ -742,7 +837,7 @@ module Svix
|
|
742
837
|
fail ArgumentError, "Missing the required parameter 'endpoint_patch' when calling EndpointApi.v1_endpoint_patch"
|
743
838
|
end
|
744
839
|
# resource path
|
745
|
-
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}
|
840
|
+
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
746
841
|
|
747
842
|
# query parameters
|
748
843
|
query_params = opts[:query_params] || {}
|
@@ -845,7 +940,7 @@ module Svix
|
|
845
940
|
fail ArgumentError, "Missing the required parameter 'endpoint_headers_patch_in' when calling EndpointApi.v1_endpoint_patch_headers"
|
846
941
|
end
|
847
942
|
# resource path
|
848
|
-
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/headers
|
943
|
+
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/headers'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
849
944
|
|
850
945
|
# query parameters
|
851
946
|
query_params = opts[:query_params] || {}
|
@@ -950,7 +1045,7 @@ module Svix
|
|
950
1045
|
fail ArgumentError, "Missing the required parameter 'recover_in' when calling EndpointApi.v1_endpoint_recover"
|
951
1046
|
end
|
952
1047
|
# resource path
|
953
|
-
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/recover
|
1048
|
+
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/recover'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
954
1049
|
|
955
1050
|
# query parameters
|
956
1051
|
query_params = opts[:query_params] || {}
|
@@ -1056,7 +1151,7 @@ module Svix
|
|
1056
1151
|
fail ArgumentError, "Missing the required parameter 'replay_in' when calling EndpointApi.v1_endpoint_replay"
|
1057
1152
|
end
|
1058
1153
|
# resource path
|
1059
|
-
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/replay-missing
|
1154
|
+
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/replay-missing'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
1060
1155
|
|
1061
1156
|
# query parameters
|
1062
1157
|
query_params = opts[:query_params] || {}
|
@@ -1162,7 +1257,7 @@ module Svix
|
|
1162
1257
|
fail ArgumentError, "Missing the required parameter 'endpoint_secret_rotate_in' when calling EndpointApi.v1_endpoint_rotate_secret"
|
1163
1258
|
end
|
1164
1259
|
# resource path
|
1165
|
-
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/secret/rotate
|
1260
|
+
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/secret/rotate'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
1166
1261
|
|
1167
1262
|
# query parameters
|
1168
1263
|
query_params = opts[:query_params] || {}
|
@@ -1268,7 +1363,7 @@ module Svix
|
|
1268
1363
|
fail ArgumentError, "Missing the required parameter 'event_example_in' when calling EndpointApi.v1_endpoint_send_example"
|
1269
1364
|
end
|
1270
1365
|
# resource path
|
1271
|
-
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/send-example
|
1366
|
+
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/send-example'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
1272
1367
|
|
1273
1368
|
# query parameters
|
1274
1369
|
query_params = opts[:query_params] || {}
|
@@ -1366,7 +1461,7 @@ module Svix
|
|
1366
1461
|
end
|
1367
1462
|
|
1368
1463
|
# resource path
|
1369
|
-
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/transformation
|
1464
|
+
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/transformation'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
1370
1465
|
|
1371
1466
|
# query parameters
|
1372
1467
|
query_params = opts[:query_params] || {}
|
@@ -1467,7 +1562,7 @@ module Svix
|
|
1467
1562
|
fail ArgumentError, "Missing the required parameter 'endpoint_transformation_in' when calling EndpointApi.v1_endpoint_transformation_partial_update"
|
1468
1563
|
end
|
1469
1564
|
# resource path
|
1470
|
-
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/transformation
|
1565
|
+
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/transformation'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
1471
1566
|
|
1472
1567
|
# query parameters
|
1473
1568
|
query_params = opts[:query_params] || {}
|
@@ -1572,7 +1667,7 @@ module Svix
|
|
1572
1667
|
fail ArgumentError, "Missing the required parameter 'endpoint_transformation_simulate_in' when calling EndpointApi.v1_endpoint_transformation_simulate"
|
1573
1668
|
end
|
1574
1669
|
# resource path
|
1575
|
-
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/transformation/simulate
|
1670
|
+
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/transformation/simulate'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
1576
1671
|
|
1577
1672
|
# query parameters
|
1578
1673
|
query_params = opts[:query_params] || {}
|
@@ -1676,7 +1771,7 @@ module Svix
|
|
1676
1771
|
fail ArgumentError, "Missing the required parameter 'endpoint_update' when calling EndpointApi.v1_endpoint_update"
|
1677
1772
|
end
|
1678
1773
|
# resource path
|
1679
|
-
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}
|
1774
|
+
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
1680
1775
|
|
1681
1776
|
# query parameters
|
1682
1777
|
query_params = opts[:query_params] || {}
|
@@ -1779,7 +1874,7 @@ module Svix
|
|
1779
1874
|
fail ArgumentError, "Missing the required parameter 'endpoint_headers_in' when calling EndpointApi.v1_endpoint_update_headers"
|
1780
1875
|
end
|
1781
1876
|
# resource path
|
1782
|
-
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/headers
|
1877
|
+
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/headers'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
1783
1878
|
|
1784
1879
|
# query parameters
|
1785
1880
|
query_params = opts[:query_params] || {}
|
@@ -1819,5 +1914,108 @@ module Svix
|
|
1819
1914
|
end
|
1820
1915
|
return data, status_code, headers
|
1821
1916
|
end
|
1917
|
+
|
1918
|
+
# Update Endpoint Oauth Config
|
1919
|
+
# Create/update endpoint OAuth configuration
|
1920
|
+
# @param app_id [String] The app's ID or UID
|
1921
|
+
# @param endpoint_id [String] The ep's ID or UID
|
1922
|
+
# @param endpoint_oauth_config_in [EndpointOauthConfigIn]
|
1923
|
+
# @param [Hash] opts the optional parameters
|
1924
|
+
# @return [nil]
|
1925
|
+
def v1_endpoint_update_oauth_config(app_id, endpoint_id, endpoint_oauth_config_in, opts = {})
|
1926
|
+
v1_endpoint_update_oauth_config_with_http_info(app_id, endpoint_id, endpoint_oauth_config_in, opts)
|
1927
|
+
nil
|
1928
|
+
end
|
1929
|
+
|
1930
|
+
# Update Endpoint Oauth Config
|
1931
|
+
# Create/update endpoint OAuth configuration
|
1932
|
+
# @param app_id [String] The app's ID or UID
|
1933
|
+
# @param endpoint_id [String] The ep's ID or UID
|
1934
|
+
# @param endpoint_oauth_config_in [EndpointOauthConfigIn]
|
1935
|
+
# @param [Hash] opts the optional parameters
|
1936
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
1937
|
+
def v1_endpoint_update_oauth_config_with_http_info(app_id, endpoint_id, endpoint_oauth_config_in, opts = {})
|
1938
|
+
if @api_client.config.debugging
|
1939
|
+
@api_client.config.logger.debug 'Calling API: EndpointApi.v1_endpoint_update_oauth_config ...'
|
1940
|
+
end
|
1941
|
+
# verify the required parameter 'app_id' is set
|
1942
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
1943
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.v1_endpoint_update_oauth_config"
|
1944
|
+
end
|
1945
|
+
if @api_client.config.client_side_validation && app_id.to_s.length > 256
|
1946
|
+
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_update_oauth_config, the character length must be smaller than or equal to 256.'
|
1947
|
+
end
|
1948
|
+
|
1949
|
+
if @api_client.config.client_side_validation && app_id.to_s.length < 1
|
1950
|
+
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_update_oauth_config, the character length must be great than or equal to 1.'
|
1951
|
+
end
|
1952
|
+
|
1953
|
+
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
1954
|
+
if @api_client.config.client_side_validation && app_id !~ pattern
|
1955
|
+
fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.v1_endpoint_update_oauth_config, must conform to the pattern #{pattern}."
|
1956
|
+
end
|
1957
|
+
|
1958
|
+
# verify the required parameter 'endpoint_id' is set
|
1959
|
+
if @api_client.config.client_side_validation && endpoint_id.nil?
|
1960
|
+
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.v1_endpoint_update_oauth_config"
|
1961
|
+
end
|
1962
|
+
if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
|
1963
|
+
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_update_oauth_config, the character length must be smaller than or equal to 256.'
|
1964
|
+
end
|
1965
|
+
|
1966
|
+
if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
|
1967
|
+
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_update_oauth_config, the character length must be great than or equal to 1.'
|
1968
|
+
end
|
1969
|
+
|
1970
|
+
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
1971
|
+
if @api_client.config.client_side_validation && endpoint_id !~ pattern
|
1972
|
+
fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.v1_endpoint_update_oauth_config, must conform to the pattern #{pattern}."
|
1973
|
+
end
|
1974
|
+
|
1975
|
+
# verify the required parameter 'endpoint_oauth_config_in' is set
|
1976
|
+
if @api_client.config.client_side_validation && endpoint_oauth_config_in.nil?
|
1977
|
+
fail ArgumentError, "Missing the required parameter 'endpoint_oauth_config_in' when calling EndpointApi.v1_endpoint_update_oauth_config"
|
1978
|
+
end
|
1979
|
+
# resource path
|
1980
|
+
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/oauth'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
1981
|
+
|
1982
|
+
# query parameters
|
1983
|
+
query_params = opts[:query_params] || {}
|
1984
|
+
|
1985
|
+
# header parameters
|
1986
|
+
header_params = opts[:header_params] || {}
|
1987
|
+
# HTTP header 'Accept' (if needed)
|
1988
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1989
|
+
# HTTP header 'Content-Type'
|
1990
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1991
|
+
|
1992
|
+
# form parameters
|
1993
|
+
form_params = opts[:form_params] || {}
|
1994
|
+
|
1995
|
+
# http body (model)
|
1996
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(endpoint_oauth_config_in)
|
1997
|
+
|
1998
|
+
# return_type
|
1999
|
+
return_type = opts[:debug_return_type]
|
2000
|
+
|
2001
|
+
# auth_names
|
2002
|
+
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
2003
|
+
|
2004
|
+
new_options = opts.merge(
|
2005
|
+
:operation => :"EndpointApi.v1_endpoint_update_oauth_config",
|
2006
|
+
:header_params => header_params,
|
2007
|
+
:query_params => query_params,
|
2008
|
+
:form_params => form_params,
|
2009
|
+
:body => post_body,
|
2010
|
+
:auth_names => auth_names,
|
2011
|
+
:return_type => return_type
|
2012
|
+
)
|
2013
|
+
|
2014
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
2015
|
+
if @api_client.config.debugging
|
2016
|
+
@api_client.config.logger.debug "API called: EndpointApi#v1_endpoint_update_oauth_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2017
|
+
end
|
2018
|
+
return data, status_code, headers
|
2019
|
+
end
|
1822
2020
|
end
|
1823
2021
|
end
|
@@ -39,7 +39,7 @@ module Svix
|
|
39
39
|
@api_client.config.logger.debug 'Calling API: EnvironmentApi.v1_environment_export ...'
|
40
40
|
end
|
41
41
|
# resource path
|
42
|
-
local_var_path = '/api/v1/environment/export
|
42
|
+
local_var_path = '/api/v1/environment/export'
|
43
43
|
|
44
44
|
# query parameters
|
45
45
|
query_params = opts[:query_params] || {}
|
@@ -97,7 +97,7 @@ module Svix
|
|
97
97
|
@api_client.config.logger.debug 'Calling API: EnvironmentApi.v1_environment_export_get ...'
|
98
98
|
end
|
99
99
|
# resource path
|
100
|
-
local_var_path = '/api/v1/environment/export
|
100
|
+
local_var_path = '/api/v1/environment/export'
|
101
101
|
|
102
102
|
# query parameters
|
103
103
|
query_params = opts[:query_params] || {}
|
@@ -162,7 +162,7 @@ module Svix
|
|
162
162
|
fail ArgumentError, "Missing the required parameter 'environment_in' when calling EnvironmentApi.v1_environment_import"
|
163
163
|
end
|
164
164
|
# resource path
|
165
|
-
local_var_path = '/api/v1/environment/import
|
165
|
+
local_var_path = '/api/v1/environment/import'
|
166
166
|
|
167
167
|
# query parameters
|
168
168
|
query_params = opts[:query_params] || {}
|
@@ -37,7 +37,7 @@ module Svix
|
|
37
37
|
@api_client.config.logger.debug 'Calling API: EnvironmentSettingsApi.v1_environment_get_settings ...'
|
38
38
|
end
|
39
39
|
# resource path
|
40
|
-
local_var_path = '/api/v1/environment/settings
|
40
|
+
local_var_path = '/api/v1/environment/settings'
|
41
41
|
|
42
42
|
# query parameters
|
43
43
|
query_params = opts[:query_params] || {}
|