svix 1.43.0 → 1.45.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.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/lib/svix/api/application_api.rb +14 -14
  4. data/lib/svix/api/authentication_api.rb +217 -13
  5. data/lib/svix/api/background_tasks_api.rb +4 -4
  6. data/lib/svix/api/broadcast_api.rb +2 -2
  7. data/lib/svix/api/endpoint_api.rb +45 -45
  8. data/lib/svix/api/environment_api.rb +2 -2
  9. data/lib/svix/api/environment_settings_api.rb +2 -2
  10. data/lib/svix/api/event_type_api.rb +12 -12
  11. data/lib/svix/api/events_api.rb +4 -4
  12. data/lib/svix/api/inbound_api.rb +2 -2
  13. data/lib/svix/api/message_api.rb +162 -26
  14. data/lib/svix/api/message_attempt_api.rb +6 -6
  15. data/lib/svix/api/statistics_api.rb +10 -10
  16. data/lib/svix/api/transformation_template_api.rb +24 -24
  17. data/lib/svix/endpoint_api.rb +1 -1
  18. data/lib/svix/message_api.rb +1 -1
  19. data/lib/svix/models/application_in.rb +1 -1
  20. data/lib/svix/models/{create_message_token_in.rb → create_token_in.rb} +3 -3
  21. data/lib/svix/models/endpoint_in.rb +3 -3
  22. data/lib/svix/models/endpoint_oauth_config_in.rb +1 -1
  23. data/lib/svix/models/endpoint_out.rb +3 -3
  24. data/lib/svix/models/endpoint_patch.rb +1 -1
  25. data/lib/svix/models/endpoint_secret_out.rb +1 -1
  26. data/lib/svix/models/endpoint_secret_rotate_in.rb +1 -1
  27. data/lib/svix/models/endpoint_update.rb +2 -2
  28. data/lib/svix/models/environment_in.rb +2 -4
  29. data/lib/svix/models/environment_out.rb +2 -4
  30. data/lib/svix/models/environment_settings_out.rb +12 -1
  31. data/lib/svix/models/event_type_example_out.rb +2 -4
  32. data/lib/svix/models/event_type_from_open_api.rb +2 -4
  33. data/lib/svix/models/event_type_import_open_api_in.rb +2 -4
  34. data/lib/svix/models/event_type_in.rb +2 -4
  35. data/lib/svix/models/event_type_out.rb +2 -4
  36. data/lib/svix/models/event_type_patch.rb +2 -4
  37. data/lib/svix/models/event_type_update.rb +2 -4
  38. data/lib/svix/models/message_broadcast_in.rb +2 -2
  39. data/lib/svix/models/message_endpoint_out.rb +3 -3
  40. data/lib/svix/models/message_in.rb +0 -9
  41. data/lib/svix/models/operational_webhook_endpoint_in.rb +2 -2
  42. data/lib/svix/models/operational_webhook_endpoint_out.rb +2 -2
  43. data/lib/svix/models/operational_webhook_endpoint_secret_in.rb +1 -1
  44. data/lib/svix/models/operational_webhook_endpoint_secret_out.rb +1 -1
  45. data/lib/svix/models/operational_webhook_endpoint_update.rb +1 -1
  46. data/lib/svix/models/rotate_poller_token_in.rb +280 -0
  47. data/lib/svix/models/sink_in.rb +2 -1
  48. data/lib/svix/models/sink_in_one_of4.rb +255 -0
  49. data/lib/svix/models/sink_out.rb +2 -1
  50. data/lib/svix/models/transformation_http_method.rb +2 -1
  51. data/lib/svix/version.rb +1 -1
  52. metadata +5 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4a38b5b98867839d9beb5f2177f6fdaac0267b16b071d8cab956db186d2a5434
4
- data.tar.gz: 18f162bb497c69a45e7e29a476182e17e48e7149edde80bb431ad1e682807872
3
+ metadata.gz: 6dfa58771ff2660a3ec8b28179dea7829356a30fb2360c7998925fc2dce244d5
4
+ data.tar.gz: ffea24392bfeb1823fd2234f544dbdfadaf42f28d455f0f2f7c54a92dd581ce1
5
5
  SHA512:
6
- metadata.gz: d185df715b172437530d93a8d7c9963e139a43757267309daaed932d3dfd3737d585702f9b4e705000af58f24280f7071ae3fce65b5041ca8bb136352bbd997e
7
- data.tar.gz: 9d70cf3e7458a51a370ac4d9ae306a2cb232f44dbcd00f1e496d9fb44700111eaea3ce556bfdb74b8bfe7ea6b7c44da2749b94acc62fcb6ba6db58781b0ef766
6
+ metadata.gz: 7df9201dc2db2c06513f9c28ef7c459cfe21213c6c947c71b6b93648e6675e1b3bee9129ee5357399e3d99ad53c0f345e8d5a1aaa6d8e32e9b30bac756adb94b
7
+ data.tar.gz: 636f35b89938ef7195d0b835aa1aaa9977ca001f0afc908d0c47a8a9a63da0153c9444d24976888f85d5d519bf28312fa2b10831b9448d72fd218bd7ebf1edd4
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- svix (1.43.0)
4
+ svix (1.45.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -21,11 +21,11 @@ module Svix
21
21
  end
22
22
  # Get App Usage Stats
23
23
  # Get basic statistics for all applications.
24
- # @param since [Time] Filter the range to data after this date
25
- # @param _until [Time] Filter the range to data before this date
24
+ # @param since [Time] Filter the range to data after this date.
25
+ # @param _until [Time] Filter the range to data before this date.
26
26
  # @param [Hash] opts the optional parameters
27
- # @option opts [Integer] :limit Limit the number of returned items (default to 50)
28
- # @option opts [String] :iterator The iterator to use (depends on the chosen ordering)
27
+ # @option opts [Integer] :limit Limit the number of returned items. (default to 50)
28
+ # @option opts [String] :iterator The iterator to use (depends on the chosen ordering).
29
29
  # @return [ListResponseApplicationStats]
30
30
  def get_app_usage_stats_api_v1_app_stats_usage_get(since, _until, opts = {})
31
31
  data, _status_code, _headers = get_app_usage_stats_api_v1_app_stats_usage_get_with_http_info(since, _until, opts)
@@ -34,11 +34,11 @@ module Svix
34
34
 
35
35
  # Get App Usage Stats
36
36
  # Get basic statistics for all applications.
37
- # @param since [Time] Filter the range to data after this date
38
- # @param _until [Time] Filter the range to data before this date
37
+ # @param since [Time] Filter the range to data after this date.
38
+ # @param _until [Time] Filter the range to data before this date.
39
39
  # @param [Hash] opts the optional parameters
40
- # @option opts [Integer] :limit Limit the number of returned items (default to 50)
41
- # @option opts [String] :iterator The iterator to use (depends on the chosen ordering)
40
+ # @option opts [Integer] :limit Limit the number of returned items. (default to 50)
41
+ # @option opts [String] :iterator The iterator to use (depends on the chosen ordering).
42
42
  # @return [Array<(ListResponseApplicationStats, Integer, Hash)>] ListResponseApplicationStats data, response status code and response headers
43
43
  def get_app_usage_stats_api_v1_app_stats_usage_get_with_http_info(since, _until, opts = {})
44
44
  if @api_client.config.debugging
@@ -327,9 +327,9 @@ module Svix
327
327
  end
328
328
 
329
329
  # Get App Stats
330
- # Get basic statistics for the application
331
- # @param since [Time] Filter the range to data starting from this date
332
- # @param _until [Time] Filter the range to data ending by this date
330
+ # Get basic statistics for the application.
331
+ # @param since [Time] Filter the range to data starting from this date.
332
+ # @param _until [Time] Filter the range to data ending by this date.
333
333
  # @param app_id [String] The app&#39;s ID or UID
334
334
  # @param [Hash] opts the optional parameters
335
335
  # @return [ApplicationStats]
@@ -339,9 +339,9 @@ module Svix
339
339
  end
340
340
 
341
341
  # Get App Stats
342
- # Get basic statistics for the application
343
- # @param since [Time] Filter the range to data starting from this date
344
- # @param _until [Time] Filter the range to data ending by this date
342
+ # Get basic statistics for the application.
343
+ # @param since [Time] Filter the range to data starting from this date.
344
+ # @param _until [Time] Filter the range to data ending by this date.
345
345
  # @param app_id [String] The app&#39;s ID or UID
346
346
  # @param [Hash] opts the optional parameters
347
347
  # @return [Array<(ApplicationStats, Integer, Hash)>] ApplicationStats data, response status code and response headers
@@ -112,23 +112,23 @@ module Svix
112
112
  # Create Cmg Token
113
113
  # Create a new access token that only allows creating messages inside this application.
114
114
  # @param app_id [String] The app&#39;s ID or UID
115
- # @param create_message_token_in [CreateMessageTokenIn]
115
+ # @param create_token_in [CreateTokenIn]
116
116
  # @param [Hash] opts the optional parameters
117
117
  # @option opts [String] :idempotency_key The request&#39;s idempotency key
118
118
  # @return [AuthTokenOut]
119
- def v1_authentication_create_message_token(app_id, create_message_token_in, opts = {})
120
- data, _status_code, _headers = v1_authentication_create_message_token_with_http_info(app_id, create_message_token_in, opts)
119
+ def v1_authentication_create_message_token(app_id, create_token_in, opts = {})
120
+ data, _status_code, _headers = v1_authentication_create_message_token_with_http_info(app_id, create_token_in, opts)
121
121
  data
122
122
  end
123
123
 
124
124
  # Create Cmg Token
125
125
  # Create a new access token that only allows creating messages inside this application.
126
126
  # @param app_id [String] The app&#39;s ID or UID
127
- # @param create_message_token_in [CreateMessageTokenIn]
127
+ # @param create_token_in [CreateTokenIn]
128
128
  # @param [Hash] opts the optional parameters
129
129
  # @option opts [String] :idempotency_key The request&#39;s idempotency key
130
130
  # @return [Array<(AuthTokenOut, Integer, Hash)>] AuthTokenOut data, response status code and response headers
131
- def v1_authentication_create_message_token_with_http_info(app_id, create_message_token_in, opts = {})
131
+ def v1_authentication_create_message_token_with_http_info(app_id, create_token_in, opts = {})
132
132
  if @api_client.config.debugging
133
133
  @api_client.config.logger.debug 'Calling API: AuthenticationApi.v1_authentication_create_message_token ...'
134
134
  end
@@ -149,9 +149,9 @@ module Svix
149
149
  fail ArgumentError, "invalid value for 'app_id' when calling AuthenticationApi.v1_authentication_create_message_token, must conform to the pattern #{pattern}."
150
150
  end
151
151
 
152
- # verify the required parameter 'create_message_token_in' is set
153
- if @api_client.config.client_side_validation && create_message_token_in.nil?
154
- fail ArgumentError, "Missing the required parameter 'create_message_token_in' when calling AuthenticationApi.v1_authentication_create_message_token"
152
+ # verify the required parameter 'create_token_in' is set
153
+ if @api_client.config.client_side_validation && create_token_in.nil?
154
+ fail ArgumentError, "Missing the required parameter 'create_token_in' when calling AuthenticationApi.v1_authentication_create_message_token"
155
155
  end
156
156
  # resource path
157
157
  local_var_path = '/api/v1/auth/app/{app_id}/create-message-token'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
@@ -174,7 +174,7 @@ module Svix
174
174
  form_params = opts[:form_params] || {}
175
175
 
176
176
  # http body (model)
177
- post_body = opts[:debug_body] || @api_client.object_to_http_body(create_message_token_in)
177
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(create_token_in)
178
178
 
179
179
  # return_type
180
180
  return_type = opts[:debug_return_type] || 'AuthTokenOut'
@@ -279,7 +279,7 @@ module Svix
279
279
  end
280
280
 
281
281
  # Exchange One Time Token
282
- # This is a one time token
282
+ # This is a one time token.
283
283
  # @param one_time_token_in [OneTimeTokenIn]
284
284
  # @param [Hash] opts the optional parameters
285
285
  # @option opts [String] :idempotency_key The request&#39;s idempotency key
@@ -290,7 +290,7 @@ module Svix
290
290
  end
291
291
 
292
292
  # Exchange One Time Token
293
- # This is a one time token
293
+ # This is a one time token.
294
294
  # @param one_time_token_in [OneTimeTokenIn]
295
295
  # @param [Hash] opts the optional parameters
296
296
  # @option opts [String] :idempotency_key The request&#39;s idempotency key
@@ -350,7 +350,7 @@ module Svix
350
350
  end
351
351
 
352
352
  # Expire All
353
- # Expire all of the tokens associated with a specific Application
353
+ # Expire all of the tokens associated with a specific application.
354
354
  # @param app_id [String] The app&#39;s ID or UID
355
355
  # @param application_token_expire_in [ApplicationTokenExpireIn]
356
356
  # @param [Hash] opts the optional parameters
@@ -362,7 +362,7 @@ module Svix
362
362
  end
363
363
 
364
364
  # Expire All
365
- # Expire all of the tokens associated with a specific Application
365
+ # Expire all of the tokens associated with a specific application.
366
366
  # @param app_id [String] The app&#39;s ID or UID
367
367
  # @param application_token_expire_in [ApplicationTokenExpireIn]
368
368
  # @param [Hash] opts the optional parameters
@@ -439,6 +439,101 @@ module Svix
439
439
  return data, status_code, headers
440
440
  end
441
441
 
442
+ # Get Poller Token
443
+ # Get the current auth token for the poller.
444
+ # @param app_id [String] The app&#39;s ID or UID
445
+ # @param endpoint_id [String] The ep&#39;s ID or UID
446
+ # @param [Hash] opts the optional parameters
447
+ # @return [AuthTokenOut]
448
+ def v1_authentication_get_poller_token(app_id, endpoint_id, opts = {})
449
+ data, _status_code, _headers = v1_authentication_get_poller_token_with_http_info(app_id, endpoint_id, opts)
450
+ data
451
+ end
452
+
453
+ # Get Poller Token
454
+ # Get the current auth token for the poller.
455
+ # @param app_id [String] The app&#39;s ID or UID
456
+ # @param endpoint_id [String] The ep&#39;s ID or UID
457
+ # @param [Hash] opts the optional parameters
458
+ # @return [Array<(AuthTokenOut, Integer, Hash)>] AuthTokenOut data, response status code and response headers
459
+ def v1_authentication_get_poller_token_with_http_info(app_id, endpoint_id, opts = {})
460
+ if @api_client.config.debugging
461
+ @api_client.config.logger.debug 'Calling API: AuthenticationApi.v1_authentication_get_poller_token ...'
462
+ end
463
+ # verify the required parameter 'app_id' is set
464
+ if @api_client.config.client_side_validation && app_id.nil?
465
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling AuthenticationApi.v1_authentication_get_poller_token"
466
+ end
467
+ if @api_client.config.client_side_validation && app_id.to_s.length > 256
468
+ fail ArgumentError, 'invalid value for "app_id" when calling AuthenticationApi.v1_authentication_get_poller_token, the character length must be smaller than or equal to 256.'
469
+ end
470
+
471
+ if @api_client.config.client_side_validation && app_id.to_s.length < 1
472
+ fail ArgumentError, 'invalid value for "app_id" when calling AuthenticationApi.v1_authentication_get_poller_token, the character length must be great than or equal to 1.'
473
+ end
474
+
475
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
476
+ if @api_client.config.client_side_validation && app_id !~ pattern
477
+ fail ArgumentError, "invalid value for 'app_id' when calling AuthenticationApi.v1_authentication_get_poller_token, must conform to the pattern #{pattern}."
478
+ end
479
+
480
+ # verify the required parameter 'endpoint_id' is set
481
+ if @api_client.config.client_side_validation && endpoint_id.nil?
482
+ fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling AuthenticationApi.v1_authentication_get_poller_token"
483
+ end
484
+ if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
485
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling AuthenticationApi.v1_authentication_get_poller_token, the character length must be smaller than or equal to 256.'
486
+ end
487
+
488
+ if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
489
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling AuthenticationApi.v1_authentication_get_poller_token, the character length must be great than or equal to 1.'
490
+ end
491
+
492
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
493
+ if @api_client.config.client_side_validation && endpoint_id !~ pattern
494
+ fail ArgumentError, "invalid value for 'endpoint_id' when calling AuthenticationApi.v1_authentication_get_poller_token, must conform to the pattern #{pattern}."
495
+ end
496
+
497
+ # resource path
498
+ local_var_path = '/api/v1/auth/app/{app_id}/poller/{endpoint_id}/token'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
499
+
500
+ # query parameters
501
+ query_params = opts[:query_params] || {}
502
+
503
+ # header parameters
504
+ header_params = opts[:header_params] || {}
505
+ # HTTP header 'Accept' (if needed)
506
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
507
+
508
+ # form parameters
509
+ form_params = opts[:form_params] || {}
510
+
511
+ # http body (model)
512
+ post_body = opts[:debug_body]
513
+
514
+ # return_type
515
+ return_type = opts[:debug_return_type] || 'AuthTokenOut'
516
+
517
+ # auth_names
518
+ auth_names = opts[:debug_auth_names] || ['HTTPBearer']
519
+
520
+ new_options = opts.merge(
521
+ :operation => :"AuthenticationApi.v1_authentication_get_poller_token",
522
+ :header_params => header_params,
523
+ :query_params => query_params,
524
+ :form_params => form_params,
525
+ :body => post_body,
526
+ :auth_names => auth_names,
527
+ :return_type => return_type
528
+ )
529
+
530
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
531
+ if @api_client.config.debugging
532
+ @api_client.config.logger.debug "API called: AuthenticationApi#v1_authentication_get_poller_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
533
+ end
534
+ return data, status_code, headers
535
+ end
536
+
442
537
  # Logout
443
538
  # Logout an app token. Trying to log out other tokens will fail.
444
539
  # @param [Hash] opts the optional parameters
@@ -498,5 +593,114 @@ module Svix
498
593
  end
499
594
  return data, status_code, headers
500
595
  end
596
+
597
+ # Rotate Poller Token
598
+ # Create a new auth token that can for the poller API.
599
+ # @param app_id [String] The app&#39;s ID or UID
600
+ # @param endpoint_id [String] The ep&#39;s ID or UID
601
+ # @param rotate_poller_token_in [RotatePollerTokenIn]
602
+ # @param [Hash] opts the optional parameters
603
+ # @option opts [String] :idempotency_key The request&#39;s idempotency key
604
+ # @return [AuthTokenOut]
605
+ def v1_authentication_rotate_poller_token(app_id, endpoint_id, rotate_poller_token_in, opts = {})
606
+ data, _status_code, _headers = v1_authentication_rotate_poller_token_with_http_info(app_id, endpoint_id, rotate_poller_token_in, opts)
607
+ data
608
+ end
609
+
610
+ # Rotate Poller Token
611
+ # Create a new auth token that can for the poller API.
612
+ # @param app_id [String] The app&#39;s ID or UID
613
+ # @param endpoint_id [String] The ep&#39;s ID or UID
614
+ # @param rotate_poller_token_in [RotatePollerTokenIn]
615
+ # @param [Hash] opts the optional parameters
616
+ # @option opts [String] :idempotency_key The request&#39;s idempotency key
617
+ # @return [Array<(AuthTokenOut, Integer, Hash)>] AuthTokenOut data, response status code and response headers
618
+ def v1_authentication_rotate_poller_token_with_http_info(app_id, endpoint_id, rotate_poller_token_in, opts = {})
619
+ if @api_client.config.debugging
620
+ @api_client.config.logger.debug 'Calling API: AuthenticationApi.v1_authentication_rotate_poller_token ...'
621
+ end
622
+ # verify the required parameter 'app_id' is set
623
+ if @api_client.config.client_side_validation && app_id.nil?
624
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling AuthenticationApi.v1_authentication_rotate_poller_token"
625
+ end
626
+ if @api_client.config.client_side_validation && app_id.to_s.length > 256
627
+ fail ArgumentError, 'invalid value for "app_id" when calling AuthenticationApi.v1_authentication_rotate_poller_token, the character length must be smaller than or equal to 256.'
628
+ end
629
+
630
+ if @api_client.config.client_side_validation && app_id.to_s.length < 1
631
+ fail ArgumentError, 'invalid value for "app_id" when calling AuthenticationApi.v1_authentication_rotate_poller_token, the character length must be great than or equal to 1.'
632
+ end
633
+
634
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
635
+ if @api_client.config.client_side_validation && app_id !~ pattern
636
+ fail ArgumentError, "invalid value for 'app_id' when calling AuthenticationApi.v1_authentication_rotate_poller_token, must conform to the pattern #{pattern}."
637
+ end
638
+
639
+ # verify the required parameter 'endpoint_id' is set
640
+ if @api_client.config.client_side_validation && endpoint_id.nil?
641
+ fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling AuthenticationApi.v1_authentication_rotate_poller_token"
642
+ end
643
+ if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
644
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling AuthenticationApi.v1_authentication_rotate_poller_token, the character length must be smaller than or equal to 256.'
645
+ end
646
+
647
+ if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
648
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling AuthenticationApi.v1_authentication_rotate_poller_token, the character length must be great than or equal to 1.'
649
+ end
650
+
651
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
652
+ if @api_client.config.client_side_validation && endpoint_id !~ pattern
653
+ fail ArgumentError, "invalid value for 'endpoint_id' when calling AuthenticationApi.v1_authentication_rotate_poller_token, must conform to the pattern #{pattern}."
654
+ end
655
+
656
+ # verify the required parameter 'rotate_poller_token_in' is set
657
+ if @api_client.config.client_side_validation && rotate_poller_token_in.nil?
658
+ fail ArgumentError, "Missing the required parameter 'rotate_poller_token_in' when calling AuthenticationApi.v1_authentication_rotate_poller_token"
659
+ end
660
+ # resource path
661
+ local_var_path = '/api/v1/auth/app/{app_id}/poller/{endpoint_id}/token/rotate'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
662
+
663
+ # query parameters
664
+ query_params = opts[:query_params] || {}
665
+
666
+ # header parameters
667
+ header_params = opts[:header_params] || {}
668
+ # HTTP header 'Accept' (if needed)
669
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
670
+ # HTTP header 'Content-Type'
671
+ content_type = @api_client.select_header_content_type(['application/json'])
672
+ if !content_type.nil?
673
+ header_params['Content-Type'] = content_type
674
+ end
675
+ header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
676
+
677
+ # form parameters
678
+ form_params = opts[:form_params] || {}
679
+
680
+ # http body (model)
681
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(rotate_poller_token_in)
682
+
683
+ # return_type
684
+ return_type = opts[:debug_return_type] || 'AuthTokenOut'
685
+
686
+ # auth_names
687
+ auth_names = opts[:debug_auth_names] || ['HTTPBearer']
688
+
689
+ new_options = opts.merge(
690
+ :operation => :"AuthenticationApi.v1_authentication_rotate_poller_token",
691
+ :header_params => header_params,
692
+ :query_params => query_params,
693
+ :form_params => form_params,
694
+ :body => post_body,
695
+ :auth_names => auth_names,
696
+ :return_type => return_type
697
+ )
698
+
699
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
700
+ if @api_client.config.debugging
701
+ @api_client.config.logger.debug "API called: AuthenticationApi#v1_authentication_rotate_poller_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
702
+ end
703
+ return data, status_code, headers
704
+ end
501
705
  end
502
706
  end
@@ -85,8 +85,8 @@ module Svix
85
85
  # List Background Tasks
86
86
  # List background tasks executed in the past 90 days.
87
87
  # @param [Hash] opts the optional parameters
88
- # @option opts [BackgroundTaskStatus] :status Filter the response based on the status
89
- # @option opts [BackgroundTaskType] :task Filter the response based on the type
88
+ # @option opts [BackgroundTaskStatus] :status Filter the response based on the status.
89
+ # @option opts [BackgroundTaskType] :task Filter the response based on the type.
90
90
  # @option opts [Integer] :limit Limit the number of returned items
91
91
  # @option opts [String] :iterator The iterator returned from a prior invocation
92
92
  # @option opts [Ordering] :order The sorting order of the returned items
@@ -99,8 +99,8 @@ module Svix
99
99
  # List Background Tasks
100
100
  # List background tasks executed in the past 90 days.
101
101
  # @param [Hash] opts the optional parameters
102
- # @option opts [BackgroundTaskStatus] :status Filter the response based on the status
103
- # @option opts [BackgroundTaskType] :task Filter the response based on the type
102
+ # @option opts [BackgroundTaskStatus] :status Filter the response based on the status.
103
+ # @option opts [BackgroundTaskType] :task Filter the response based on the type.
104
104
  # @option opts [Integer] :limit Limit the number of returned items
105
105
  # @option opts [String] :iterator The iterator returned from a prior invocation
106
106
  # @option opts [Ordering] :order The sorting order of the returned items
@@ -20,7 +20,7 @@ module Svix
20
20
  @api_client = api_client
21
21
  end
22
22
  # Create Broadcast Message
23
- # Creates a background task to send the same message to each application in your organization
23
+ # Creates a background task to send the same message to each application in your organization.
24
24
  # @param message_broadcast_in [MessageBroadcastIn]
25
25
  # @param [Hash] opts the optional parameters
26
26
  # @option opts [String] :idempotency_key The request&#39;s idempotency key
@@ -31,7 +31,7 @@ module Svix
31
31
  end
32
32
 
33
33
  # Create Broadcast Message
34
- # Creates a background task to send the same message to each application in your organization
34
+ # Creates a background task to send the same message to each application in your organization.
35
35
  # @param message_broadcast_in [MessageBroadcastIn]
36
36
  # @param [Hash] opts the optional parameters
37
37
  # @option opts [String] :idempotency_key The request&#39;s idempotency key