svix 1.21.0 → 1.22.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ce379d8b22e30667b94ce51b9bd2ac12b3479e62e8c6ecef87b7b8d8f4b3743e
4
- data.tar.gz: 72c78232666eb75235ce22e9acf8563acfcdef0089760de109170286ae73cb0f
3
+ metadata.gz: eb4ce7474d5f55a002336bf404a0f198aee86ad0d52e8ad201bb5a6df8c5871a
4
+ data.tar.gz: 3ce0597f82e3b6843694c23ead0aef184026af650ef14bdea8e4c87f267e519f
5
5
  SHA512:
6
- metadata.gz: 9585c4c43da9f934c8f9d811058a18a9bef7fb055438f1c7f09de157451c3c658ef3df73ca0b9332af3e982ac2b630dac8bd3a3724886f2066a4ab921a26a727
7
- data.tar.gz: 8b9b6dd783db790f0eda302f506abfcdd2051c195b736941e9d6c5d7a22e7f3124de3ca34cc14eb82adcd27e1b610a40c3add254274f13f3359a8e814eaf09b2
6
+ metadata.gz: 1072c5ea48f780fe017aae8d6a62be76b81cf24399ce28a60fc6a2a931078906855939be63d9a5609d1d4c5bd8629aa72cd0f5db3c0561f161838231b9a25daa
7
+ data.tar.gz: 65154a5696a5e2e18579ecc463a98fa8715a77e4b93ec6adb7d1ac2f59d12cfe9bc6c48bf7498da5a686405241753301ead515f85ebf23edeb1bf61daf6c90a8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- svix (1.21.0)
4
+ svix (1.22.0)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
@@ -32,7 +32,6 @@ PLATFORMS
32
32
  x86_64-linux
33
33
 
34
34
  DEPENDENCIES
35
- bundler (>= 2.2.10)
36
35
  rake (~> 13.0)
37
36
  rspec (~> 3.2)
38
37
  svix!
@@ -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}/'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
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}/'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
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/'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
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}/'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
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}/'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
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}/'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
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}/'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
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/'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
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}/'.sub('{' + 'task_id' + '}', CGI.escape(task_id.to_s))
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/'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
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}/'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
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] || {}
@@ -257,7 +257,7 @@ module Svix
257
257
  end
258
258
 
259
259
  # resource path
260
- 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))
260
+ 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
261
 
262
262
  # query parameters
263
263
  query_params = opts[:query_params] || {}
@@ -352,7 +352,7 @@ module Svix
352
352
  end
353
353
 
354
354
  # resource path
355
- 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))
355
+ 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
356
 
357
357
  # query parameters
358
358
  query_params = opts[:query_params] || {}
@@ -447,7 +447,7 @@ module Svix
447
447
  end
448
448
 
449
449
  # resource path
450
- 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))
450
+ 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
451
 
452
452
  # query parameters
453
453
  query_params = opts[:query_params] || {}
@@ -546,7 +546,7 @@ module Svix
546
546
  end
547
547
 
548
548
  # resource path
549
- 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))
549
+ 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
550
 
551
551
  # query parameters
552
552
  query_params = opts[:query_params] || {}
@@ -638,7 +638,7 @@ module Svix
638
638
  end
639
639
 
640
640
  # resource path
641
- local_var_path = '/api/v1/app/{app_id}/endpoint/'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
641
+ local_var_path = '/api/v1/app/{app_id}/endpoint'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
642
642
 
643
643
  # query parameters
644
644
  query_params = opts[:query_params] || {}
@@ -742,7 +742,7 @@ module Svix
742
742
  fail ArgumentError, "Missing the required parameter 'endpoint_patch' when calling EndpointApi.v1_endpoint_patch"
743
743
  end
744
744
  # resource path
745
- 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))
745
+ 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
746
 
747
747
  # query parameters
748
748
  query_params = opts[:query_params] || {}
@@ -845,7 +845,7 @@ module Svix
845
845
  fail ArgumentError, "Missing the required parameter 'endpoint_headers_patch_in' when calling EndpointApi.v1_endpoint_patch_headers"
846
846
  end
847
847
  # resource path
848
- 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))
848
+ 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
849
 
850
850
  # query parameters
851
851
  query_params = opts[:query_params] || {}
@@ -950,7 +950,7 @@ module Svix
950
950
  fail ArgumentError, "Missing the required parameter 'recover_in' when calling EndpointApi.v1_endpoint_recover"
951
951
  end
952
952
  # resource path
953
- 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))
953
+ 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
954
 
955
955
  # query parameters
956
956
  query_params = opts[:query_params] || {}
@@ -1056,7 +1056,7 @@ module Svix
1056
1056
  fail ArgumentError, "Missing the required parameter 'replay_in' when calling EndpointApi.v1_endpoint_replay"
1057
1057
  end
1058
1058
  # resource path
1059
- 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))
1059
+ 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
1060
 
1061
1061
  # query parameters
1062
1062
  query_params = opts[:query_params] || {}
@@ -1162,7 +1162,7 @@ module Svix
1162
1162
  fail ArgumentError, "Missing the required parameter 'endpoint_secret_rotate_in' when calling EndpointApi.v1_endpoint_rotate_secret"
1163
1163
  end
1164
1164
  # resource path
1165
- 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))
1165
+ 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
1166
 
1167
1167
  # query parameters
1168
1168
  query_params = opts[:query_params] || {}
@@ -1268,7 +1268,7 @@ module Svix
1268
1268
  fail ArgumentError, "Missing the required parameter 'event_example_in' when calling EndpointApi.v1_endpoint_send_example"
1269
1269
  end
1270
1270
  # resource path
1271
- 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))
1271
+ 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
1272
 
1273
1273
  # query parameters
1274
1274
  query_params = opts[:query_params] || {}
@@ -1366,7 +1366,7 @@ module Svix
1366
1366
  end
1367
1367
 
1368
1368
  # resource path
1369
- 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))
1369
+ 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
1370
 
1371
1371
  # query parameters
1372
1372
  query_params = opts[:query_params] || {}
@@ -1467,7 +1467,7 @@ module Svix
1467
1467
  fail ArgumentError, "Missing the required parameter 'endpoint_transformation_in' when calling EndpointApi.v1_endpoint_transformation_partial_update"
1468
1468
  end
1469
1469
  # resource path
1470
- 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))
1470
+ 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
1471
 
1472
1472
  # query parameters
1473
1473
  query_params = opts[:query_params] || {}
@@ -1572,7 +1572,7 @@ module Svix
1572
1572
  fail ArgumentError, "Missing the required parameter 'endpoint_transformation_simulate_in' when calling EndpointApi.v1_endpoint_transformation_simulate"
1573
1573
  end
1574
1574
  # resource path
1575
- 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))
1575
+ 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
1576
 
1577
1577
  # query parameters
1578
1578
  query_params = opts[:query_params] || {}
@@ -1676,7 +1676,7 @@ module Svix
1676
1676
  fail ArgumentError, "Missing the required parameter 'endpoint_update' when calling EndpointApi.v1_endpoint_update"
1677
1677
  end
1678
1678
  # resource path
1679
- 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))
1679
+ 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
1680
 
1681
1681
  # query parameters
1682
1682
  query_params = opts[:query_params] || {}
@@ -1779,7 +1779,7 @@ module Svix
1779
1779
  fail ArgumentError, "Missing the required parameter 'endpoint_headers_in' when calling EndpointApi.v1_endpoint_update_headers"
1780
1780
  end
1781
1781
  # resource path
1782
- 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))
1782
+ 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
1783
 
1784
1784
  # query parameters
1785
1785
  query_params = opts[:query_params] || {}
@@ -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] || {}
@@ -45,7 +45,7 @@ module Svix
45
45
  fail ArgumentError, "Missing the required parameter 'event_type_in' when calling EventTypeApi.v1_event_type_create"
46
46
  end
47
47
  # resource path
48
- local_var_path = '/api/v1/event-type/'
48
+ local_var_path = '/api/v1/event-type'
49
49
 
50
50
  # query parameters
51
51
  query_params = opts[:query_params] || {}
@@ -122,7 +122,7 @@ module Svix
122
122
  end
123
123
 
124
124
  # resource path
125
- local_var_path = '/api/v1/event-type/{event_type_name}/'.sub('{' + 'event_type_name' + '}', CGI.escape(event_type_name.to_s))
125
+ local_var_path = '/api/v1/event-type/{event_type_name}'.sub('{' + 'event_type_name' + '}', CGI.escape(event_type_name.to_s))
126
126
 
127
127
  # query parameters
128
128
  query_params = opts[:query_params] || {}
@@ -182,7 +182,7 @@ module Svix
182
182
  @api_client.config.logger.debug 'Calling API: EventTypeApi.v1_event_type_export_openapi ...'
183
183
  end
184
184
  # resource path
185
- local_var_path = '/api/v1/event-type/export/openapi/'
185
+ local_var_path = '/api/v1/event-type/export/openapi'
186
186
 
187
187
  # query parameters
188
188
  query_params = opts[:query_params] || {}
@@ -248,7 +248,7 @@ module Svix
248
248
  fail ArgumentError, "Missing the required parameter 'event_type_schema_in' when calling EventTypeApi.v1_event_type_generate_example"
249
249
  end
250
250
  # resource path
251
- local_var_path = '/api/v1/event-type/schema/generate-example/'
251
+ local_var_path = '/api/v1/event-type/schema/generate-example'
252
252
 
253
253
  # query parameters
254
254
  query_params = opts[:query_params] || {}
@@ -323,7 +323,7 @@ module Svix
323
323
  end
324
324
 
325
325
  # resource path
326
- local_var_path = '/api/v1/event-type/{event_type_name}/'.sub('{' + 'event_type_name' + '}', CGI.escape(event_type_name.to_s))
326
+ local_var_path = '/api/v1/event-type/{event_type_name}'.sub('{' + 'event_type_name' + '}', CGI.escape(event_type_name.to_s))
327
327
 
328
328
  # query parameters
329
329
  query_params = opts[:query_params] || {}
@@ -395,7 +395,7 @@ module Svix
395
395
  end
396
396
 
397
397
  # resource path
398
- local_var_path = '/api/v1/event-type/{event_type_name}/retry-schedule/'.sub('{' + 'event_type_name' + '}', CGI.escape(event_type_name.to_s))
398
+ local_var_path = '/api/v1/event-type/{event_type_name}/retry-schedule'.sub('{' + 'event_type_name' + '}', CGI.escape(event_type_name.to_s))
399
399
 
400
400
  # query parameters
401
401
  query_params = opts[:query_params] || {}
@@ -435,7 +435,7 @@ module Svix
435
435
  end
436
436
 
437
437
  # Event Type Import From Openapi
438
- # Given an OpenAPI spec, create new or update existing event types. If an existing `archived` event type is updated, it will be unarchvied. The importer will convert all webhooks found in the either the `webhooks` or `x-webhooks` top-level.
438
+ # Given an OpenAPI spec, create new or update existing event types. If an existing `archived` event type is updated, it will be unarchived. The importer will convert all webhooks found in the either the `webhooks` or `x-webhooks` top-level.
439
439
  # @param event_type_import_open_api_in [EventTypeImportOpenApiIn] Import a list of event types from webhooks defined in an OpenAPI spec. The OpenAPI spec can be specified as either `spec` given the spec as a JSON object, or as `specRaw` (a `string`) which will be parsed as YAML or JSON by the server. Sending neither or both is invalid, resulting in a `400` **Bad Request**.
440
440
  # @param [Hash] opts the optional parameters
441
441
  # @option opts [String] :idempotency_key The request's idempotency key
@@ -446,7 +446,7 @@ module Svix
446
446
  end
447
447
 
448
448
  # Event Type Import From Openapi
449
- # Given an OpenAPI spec, create new or update existing event types. If an existing `archived` event type is updated, it will be unarchvied. The importer will convert all webhooks found in the either the `webhooks` or `x-webhooks` top-level.
449
+ # Given an OpenAPI spec, create new or update existing event types. If an existing `archived` event type is updated, it will be unarchived. The importer will convert all webhooks found in the either the `webhooks` or `x-webhooks` top-level.
450
450
  # @param event_type_import_open_api_in [EventTypeImportOpenApiIn] Import a list of event types from webhooks defined in an OpenAPI spec. The OpenAPI spec can be specified as either `spec` given the spec as a JSON object, or as `specRaw` (a `string`) which will be parsed as YAML or JSON by the server. Sending neither or both is invalid, resulting in a `400` **Bad Request**.
451
451
  # @param [Hash] opts the optional parameters
452
452
  # @option opts [String] :idempotency_key The request's idempotency key
@@ -460,7 +460,7 @@ module Svix
460
460
  fail ArgumentError, "Missing the required parameter 'event_type_import_open_api_in' when calling EventTypeApi.v1_event_type_import_openapi"
461
461
  end
462
462
  # resource path
463
- local_var_path = '/api/v1/event-type/import/openapi/'
463
+ local_var_path = '/api/v1/event-type/import/openapi'
464
464
 
465
465
  # query parameters
466
466
  query_params = opts[:query_params] || {}
@@ -547,7 +547,7 @@ module Svix
547
547
  end
548
548
 
549
549
  # resource path
550
- local_var_path = '/api/v1/event-type/'
550
+ local_var_path = '/api/v1/event-type'
551
551
 
552
552
  # query parameters
553
553
  query_params = opts[:query_params] || {}
@@ -630,7 +630,7 @@ module Svix
630
630
  fail ArgumentError, "Missing the required parameter 'event_type_patch' when calling EventTypeApi.v1_event_type_patch"
631
631
  end
632
632
  # resource path
633
- local_var_path = '/api/v1/event-type/{event_type_name}/'.sub('{' + 'event_type_name' + '}', CGI.escape(event_type_name.to_s))
633
+ local_var_path = '/api/v1/event-type/{event_type_name}'.sub('{' + 'event_type_name' + '}', CGI.escape(event_type_name.to_s))
634
634
 
635
635
  # query parameters
636
636
  query_params = opts[:query_params] || {}
@@ -710,7 +710,7 @@ module Svix
710
710
  fail ArgumentError, "Missing the required parameter 'event_type_update' when calling EventTypeApi.v1_event_type_update"
711
711
  end
712
712
  # resource path
713
- local_var_path = '/api/v1/event-type/{event_type_name}/'.sub('{' + 'event_type_name' + '}', CGI.escape(event_type_name.to_s))
713
+ local_var_path = '/api/v1/event-type/{event_type_name}'.sub('{' + 'event_type_name' + '}', CGI.escape(event_type_name.to_s))
714
714
 
715
715
  # query parameters
716
716
  query_params = opts[:query_params] || {}
@@ -790,7 +790,7 @@ module Svix
790
790
  fail ArgumentError, "Missing the required parameter 'retry_schedule_in_out' when calling EventTypeApi.v1_event_type_update_retry_schedule"
791
791
  end
792
792
  # resource path
793
- local_var_path = '/api/v1/event-type/{event_type_name}/retry-schedule/'.sub('{' + 'event_type_name' + '}', CGI.escape(event_type_name.to_s))
793
+ local_var_path = '/api/v1/event-type/{event_type_name}/retry-schedule'.sub('{' + 'event_type_name' + '}', CGI.escape(event_type_name.to_s))
794
794
 
795
795
  # query parameters
796
796
  query_params = opts[:query_params] || {}
@@ -0,0 +1,99 @@
1
+ =begin
2
+ #Svix API
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: 1.1.1
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.2.0
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module Svix
16
+ class EventsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Events
23
+ # Reads the stream of operational webhook events for this environment
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [Integer] :limit Limit the number of returned items
26
+ # @option opts [String] :iterator The iterator returned from a prior invocation
27
+ # @option opts [Array<String>] :event_types Filter response based on the event type
28
+ # @option opts [Array<String>] :channels Filter response based on the event type
29
+ # @return [MessageStreamOut]
30
+ def v1_events(opts = {})
31
+ data, _status_code, _headers = v1_events_with_http_info(opts)
32
+ data
33
+ end
34
+
35
+ # Events
36
+ # Reads the stream of operational webhook events for this environment
37
+ # @param [Hash] opts the optional parameters
38
+ # @option opts [Integer] :limit Limit the number of returned items
39
+ # @option opts [String] :iterator The iterator returned from a prior invocation
40
+ # @option opts [Array<String>] :event_types Filter response based on the event type
41
+ # @option opts [Array<String>] :channels Filter response based on the event type
42
+ # @return [Array<(MessageStreamOut, Integer, Hash)>] MessageStreamOut data, response status code and response headers
43
+ def v1_events_with_http_info(opts = {})
44
+ if @api_client.config.debugging
45
+ @api_client.config.logger.debug 'Calling API: EventsApi.v1_events ...'
46
+ end
47
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 250
48
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling EventsApi.v1_events, must be smaller than or equal to 250.'
49
+ end
50
+
51
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
52
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling EventsApi.v1_events, must be greater than or equal to 1.'
53
+ end
54
+
55
+ # resource path
56
+ local_var_path = '/api/v1/events'
57
+
58
+ # query parameters
59
+ query_params = opts[:query_params] || {}
60
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
61
+ query_params[:'iterator'] = opts[:'iterator'] if !opts[:'iterator'].nil?
62
+ query_params[:'event_types'] = @api_client.build_collection_param(opts[:'event_types'], :multi) if !opts[:'event_types'].nil?
63
+ query_params[:'channels'] = @api_client.build_collection_param(opts[:'channels'], :multi) if !opts[:'channels'].nil?
64
+
65
+ # header parameters
66
+ header_params = opts[:header_params] || {}
67
+ # HTTP header 'Accept' (if needed)
68
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
69
+
70
+ # form parameters
71
+ form_params = opts[:form_params] || {}
72
+
73
+ # http body (model)
74
+ post_body = opts[:debug_body]
75
+
76
+ # return_type
77
+ return_type = opts[:debug_return_type] || 'MessageStreamOut'
78
+
79
+ # auth_names
80
+ auth_names = opts[:debug_auth_names] || ['HTTPBearer']
81
+
82
+ new_options = opts.merge(
83
+ :operation => :"EventsApi.v1_events",
84
+ :header_params => header_params,
85
+ :query_params => query_params,
86
+ :form_params => form_params,
87
+ :body => post_body,
88
+ :auth_names => auth_names,
89
+ :return_type => return_type
90
+ )
91
+
92
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
93
+ if @api_client.config.debugging
94
+ @api_client.config.logger.debug "API called: EventsApi#v1_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
95
+ end
96
+ return data, status_code, headers
97
+ end
98
+ end
99
+ end
@@ -37,7 +37,7 @@ module Svix
37
37
  @api_client.config.logger.debug 'Calling API: HealthApi.v1_health_get ...'
38
38
  end
39
39
  # resource path
40
- local_var_path = '/api/v1/health/'
40
+ local_var_path = '/api/v1/health'
41
41
 
42
42
  # query parameters
43
43
  query_params = opts[:query_params] || {}
@@ -81,7 +81,7 @@ module Svix
81
81
  end
82
82
 
83
83
  # resource path
84
- local_var_path = '/api/v1/app/{app_id}/inbound/msg/{inbound_token}/'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'inbound_token' + '}', CGI.escape(inbound_token.to_s))
84
+ local_var_path = '/api/v1/app/{app_id}/inbound/msg/{inbound_token}'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'inbound_token' + '}', CGI.escape(inbound_token.to_s))
85
85
 
86
86
  # query parameters
87
87
  query_params = opts[:query_params] || {}
@@ -163,7 +163,7 @@ module Svix
163
163
  end
164
164
 
165
165
  # resource path
166
- local_var_path = '/api/v1/app/{app_id}/inbound/rotate-url/'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
166
+ local_var_path = '/api/v1/app/{app_id}/inbound/rotate-url'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
167
167
 
168
168
  # query parameters
169
169
  query_params = opts[:query_params] || {}