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.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/lib/svix/api/application_api.rb +115 -10
  4. data/lib/svix/api/authentication_api.rb +101 -16
  5. data/lib/svix/api/background_tasks_api.rb +43 -17
  6. data/lib/svix/api/endpoint_api.rb +312 -96
  7. data/lib/svix/api/inbound_api.rb +4 -4
  8. data/lib/svix/api/integration_api.rb +102 -24
  9. data/lib/svix/api/message_api.rb +142 -39
  10. data/lib/svix/api/message_attempt_api.rb +135 -372
  11. data/lib/svix/api/statistics_api.rb +6 -6
  12. data/lib/svix/api/stream_api.rb +203 -142
  13. data/lib/svix/api/transformation_template_api.rb +88 -23
  14. data/lib/svix/api/webhook_endpoint_api.rb +253 -77
  15. data/lib/svix/background_tasks_api.rb +2 -2
  16. data/lib/svix/message_attempt_api.rb +7 -3
  17. data/lib/svix/models/active_application_out.rb +373 -0
  18. data/lib/svix/models/active_endpoint_out.rb +355 -0
  19. data/lib/svix/models/aggregate_event_types_out.rb +40 -0
  20. data/lib/svix/models/aggregated_event_types.rb +305 -0
  21. data/lib/svix/models/app_portal_access_in.rb +18 -0
  22. data/lib/svix/models/app_usage_stats_out.rb +40 -0
  23. data/lib/svix/models/application_message_failure.rb +277 -0
  24. data/lib/svix/models/application_message_id_pair.rb +317 -0
  25. data/lib/svix/models/application_out.rb +41 -2
  26. data/lib/svix/models/application_patch.rb +1 -1
  27. data/lib/svix/models/application_stats.rb +41 -2
  28. data/lib/svix/models/application_stats_out.rb +324 -0
  29. data/lib/svix/models/auth_token_out.rb +40 -1
  30. data/lib/svix/models/background_task_finished_event.rb +272 -0
  31. data/lib/svix/models/background_task_finished_event2.rb +331 -0
  32. data/lib/svix/models/background_task_out.rb +40 -0
  33. data/lib/svix/models/background_task_type.rb +2 -1
  34. data/lib/svix/models/{template_in.rb → connector_in.rb} +4 -4
  35. data/lib/svix/models/{transformation_template_kind.rb → connector_kind.rb} +3 -3
  36. data/lib/svix/models/create_stream_in.rb +12 -12
  37. data/lib/svix/models/data.rb +108 -0
  38. data/lib/svix/models/data_any_of.rb +240 -0
  39. data/lib/svix/models/data_any_of1.rb +223 -0
  40. data/lib/svix/models/data_any_of2.rb +241 -0
  41. data/lib/svix/models/data_any_of3.rb +223 -0
  42. data/lib/svix/models/data_any_of4.rb +240 -0
  43. data/lib/svix/models/endpoint_created_event_data.rb +82 -4
  44. data/lib/svix/models/endpoint_deleted_event_data.rb +82 -4
  45. data/lib/svix/models/endpoint_disabled_event.rb +1 -1
  46. data/lib/svix/models/endpoint_disabled_event_data.rb +119 -16
  47. data/lib/svix/models/endpoint_disabled_trigger.rb +40 -0
  48. data/lib/svix/models/endpoint_enabled_event.rb +272 -0
  49. data/lib/svix/models/endpoint_enabled_event_data.rb +410 -0
  50. data/lib/svix/models/endpoint_message_out.rb +40 -1
  51. data/lib/svix/models/endpoint_mtls_config_out.rb +215 -0
  52. data/lib/svix/models/endpoint_oauth_config_in.rb +2 -2
  53. data/lib/svix/models/endpoint_oauth_config_out.rb +315 -0
  54. data/lib/svix/models/endpoint_out.rb +40 -1
  55. data/lib/svix/models/endpoint_patch.rb +1 -1
  56. data/lib/svix/models/endpoint_updated_event_data.rb +82 -4
  57. data/lib/svix/models/environment_in.rb +17 -19
  58. data/lib/svix/models/environment_settings_out.rb +23 -1
  59. data/lib/svix/models/event_type_import_open_api_in.rb +14 -2
  60. data/lib/svix/models/export_event_type_out.rb +40 -0
  61. data/lib/svix/models/expung_all_contents_out.rb +315 -0
  62. data/lib/svix/models/inbound_path_params.rb +1 -1
  63. data/lib/svix/models/integration_in.rb +41 -1
  64. data/lib/svix/models/integration_out.rb +81 -2
  65. data/lib/svix/models/integration_update.rb +41 -1
  66. data/lib/svix/models/list_response_active_application_out.rb +261 -0
  67. data/lib/svix/models/message_attempt_endpoint_out.rb +120 -3
  68. data/lib/svix/models/message_attempt_exhausted_event_data.rb +122 -5
  69. data/lib/svix/models/message_attempt_failed_data.rb +40 -1
  70. data/lib/svix/models/message_attempt_failing_event_data.rb +122 -5
  71. data/lib/svix/models/message_attempt_out.rb +120 -3
  72. data/lib/svix/models/message_attempt_recovered_event_data.rb +122 -5
  73. data/lib/svix/models/message_broadcast_out.rb +40 -0
  74. data/lib/svix/models/message_endpoint_out.rb +40 -1
  75. data/lib/svix/models/message_out.rb +40 -1
  76. data/lib/svix/models/message_precheck_in.rb +288 -0
  77. data/lib/svix/models/message_precheck_out.rb +221 -0
  78. data/lib/svix/models/{oauth2_auth_method_in.rb → oauth2_auth_method_in_out.rb} +3 -3
  79. data/lib/svix/models/{oauth2_grant_type_in.rb → oauth2_grant_type_in_out.rb} +3 -3
  80. data/lib/svix/models/operational_webhook_endpoint_headers_in.rb +223 -0
  81. data/lib/svix/models/operational_webhook_endpoint_headers_out.rb +251 -0
  82. data/lib/svix/models/operational_webhook_endpoint_out.rb +40 -1
  83. data/lib/svix/models/polling_endpoint_message_out.rb +454 -0
  84. data/lib/svix/models/polling_endpoint_out.rb +255 -0
  85. data/lib/svix/models/recover_out.rb +40 -0
  86. data/lib/svix/models/replay_out.rb +40 -0
  87. data/lib/svix/models/rotate_poller_token_in.rb +1 -1
  88. data/lib/svix/models/sink_secret_out.rb +233 -0
  89. data/lib/svix/models/stream_in.rb +6 -7
  90. data/lib/svix/models/stream_out.rb +46 -7
  91. data/lib/svix/models/stream_patch.rb +6 -7
  92. data/lib/svix/models/stream_portal_access_in.rb +293 -0
  93. data/lib/svix/models/template_out.rb +81 -1
  94. data/lib/svix/models/template_patch.rb +1 -1
  95. data/lib/svix/models/template_update.rb +1 -1
  96. data/lib/svix/version.rb +1 -1
  97. metadata +35 -7
  98. data/lib/svix/operational_webhook_endpoint_api.rb +0 -37
@@ -21,7 +21,7 @@ module Svix
21
21
  end
22
22
  # Create Endpoint
23
23
  # Create a new endpoint for the application. When `secret` is `null` the secret is automatically generated (recommended).
24
- # @param app_id [String] The app's ID or UID
24
+ # @param app_id [String] The Application's ID or UID.
25
25
  # @param endpoint_in [EndpointIn]
26
26
  # @param [Hash] opts the optional parameters
27
27
  # @option opts [String] :idempotency_key The request's idempotency key
@@ -33,7 +33,7 @@ module Svix
33
33
 
34
34
  # Create Endpoint
35
35
  # Create a new endpoint for the application. When `secret` is `null` the secret is automatically generated (recommended).
36
- # @param app_id [String] The app's ID or UID
36
+ # @param app_id [String] The Application's ID or UID.
37
37
  # @param endpoint_in [EndpointIn]
38
38
  # @param [Hash] opts the optional parameters
39
39
  # @option opts [String] :idempotency_key The request's idempotency key
@@ -111,8 +111,8 @@ module Svix
111
111
 
112
112
  # Delete Endpoint
113
113
  # Delete an endpoint.
114
- # @param app_id [String] The app's ID or UID
115
- # @param endpoint_id [String] The ep's ID or UID
114
+ # @param app_id [String] The Application's ID or UID.
115
+ # @param endpoint_id [String] The Endpoint's ID or UID.
116
116
  # @param [Hash] opts the optional parameters
117
117
  # @return [nil]
118
118
  def v1_endpoint_delete(app_id, endpoint_id, opts = {})
@@ -122,8 +122,8 @@ module Svix
122
122
 
123
123
  # Delete Endpoint
124
124
  # Delete an endpoint.
125
- # @param app_id [String] The app's ID or UID
126
- # @param endpoint_id [String] The ep's ID or UID
125
+ # @param app_id [String] The Application's ID or UID.
126
+ # @param endpoint_id [String] The Endpoint's ID or UID.
127
127
  # @param [Hash] opts the optional parameters
128
128
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
129
129
  def v1_endpoint_delete_with_http_info(app_id, endpoint_id, opts = {})
@@ -206,8 +206,8 @@ module Svix
206
206
 
207
207
  # Delete Endpoint Mtls Config
208
208
  # Delete endpoint mTLS configuration.
209
- # @param app_id [String] The app&#39;s ID or UID
210
- # @param endpoint_id [String] The ep&#39;s ID or UID
209
+ # @param app_id [String] The Application&#39;s ID or UID.
210
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
211
211
  # @param [Hash] opts the optional parameters
212
212
  # @return [nil]
213
213
  def v1_endpoint_delete_mtls_config(app_id, endpoint_id, opts = {})
@@ -217,8 +217,8 @@ module Svix
217
217
 
218
218
  # Delete Endpoint Mtls Config
219
219
  # Delete endpoint mTLS configuration.
220
- # @param app_id [String] The app&#39;s ID or UID
221
- # @param endpoint_id [String] The ep&#39;s ID or UID
220
+ # @param app_id [String] The Application&#39;s ID or UID.
221
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
222
222
  # @param [Hash] opts the optional parameters
223
223
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
224
224
  def v1_endpoint_delete_mtls_config_with_http_info(app_id, endpoint_id, opts = {})
@@ -301,8 +301,8 @@ module Svix
301
301
 
302
302
  # Delete Endpoint Oauth Config
303
303
  # Delete endpoint OAuth configuration.
304
- # @param app_id [String] The app&#39;s ID or UID
305
- # @param endpoint_id [String] The ep&#39;s ID or UID
304
+ # @param app_id [String] The Application&#39;s ID or UID.
305
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
306
306
  # @param [Hash] opts the optional parameters
307
307
  # @return [nil]
308
308
  def v1_endpoint_delete_oauth_config(app_id, endpoint_id, opts = {})
@@ -312,8 +312,8 @@ module Svix
312
312
 
313
313
  # Delete Endpoint Oauth Config
314
314
  # Delete endpoint OAuth configuration.
315
- # @param app_id [String] The app&#39;s ID or UID
316
- # @param endpoint_id [String] The ep&#39;s ID or UID
315
+ # @param app_id [String] The Application&#39;s ID or UID.
316
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
317
317
  # @param [Hash] opts the optional parameters
318
318
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
319
319
  def v1_endpoint_delete_oauth_config_with_http_info(app_id, endpoint_id, opts = {})
@@ -396,8 +396,8 @@ module Svix
396
396
 
397
397
  # Get Endpoint
398
398
  # Get an endpoint.
399
- # @param app_id [String] The app&#39;s ID or UID
400
- # @param endpoint_id [String] The ep&#39;s ID or UID
399
+ # @param app_id [String] The Application&#39;s ID or UID.
400
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
401
401
  # @param [Hash] opts the optional parameters
402
402
  # @return [EndpointOut]
403
403
  def v1_endpoint_get(app_id, endpoint_id, opts = {})
@@ -407,8 +407,8 @@ module Svix
407
407
 
408
408
  # Get Endpoint
409
409
  # Get an endpoint.
410
- # @param app_id [String] The app&#39;s ID or UID
411
- # @param endpoint_id [String] The ep&#39;s ID or UID
410
+ # @param app_id [String] The Application&#39;s ID or UID.
411
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
412
412
  # @param [Hash] opts the optional parameters
413
413
  # @return [Array<(EndpointOut, Integer, Hash)>] EndpointOut data, response status code and response headers
414
414
  def v1_endpoint_get_with_http_info(app_id, endpoint_id, opts = {})
@@ -491,8 +491,8 @@ module Svix
491
491
 
492
492
  # Get Endpoint Headers
493
493
  # Get the additional headers to be sent with the webhook.
494
- # @param app_id [String] The app&#39;s ID or UID
495
- # @param endpoint_id [String] The ep&#39;s ID or UID
494
+ # @param app_id [String] The Application&#39;s ID or UID.
495
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
496
496
  # @param [Hash] opts the optional parameters
497
497
  # @return [EndpointHeadersOut]
498
498
  def v1_endpoint_get_headers(app_id, endpoint_id, opts = {})
@@ -502,8 +502,8 @@ module Svix
502
502
 
503
503
  # Get Endpoint Headers
504
504
  # Get the additional headers to be sent with the webhook.
505
- # @param app_id [String] The app&#39;s ID or UID
506
- # @param endpoint_id [String] The ep&#39;s ID or UID
505
+ # @param app_id [String] The Application&#39;s ID or UID.
506
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
507
507
  # @param [Hash] opts the optional parameters
508
508
  # @return [Array<(EndpointHeadersOut, Integer, Hash)>] EndpointHeadersOut data, response status code and response headers
509
509
  def v1_endpoint_get_headers_with_http_info(app_id, endpoint_id, opts = {})
@@ -584,10 +584,200 @@ module Svix
584
584
  return data, status_code, headers
585
585
  end
586
586
 
587
+ # Get Endpoint Mtls Config
588
+ # Get endpoint mTLS configuration.
589
+ # @param app_id [String] The Application&#39;s ID or UID.
590
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
591
+ # @param [Hash] opts the optional parameters
592
+ # @return [EndpointMtlsConfigOut]
593
+ def v1_endpoint_get_mtls_config(app_id, endpoint_id, opts = {})
594
+ data, _status_code, _headers = v1_endpoint_get_mtls_config_with_http_info(app_id, endpoint_id, opts)
595
+ data
596
+ end
597
+
598
+ # Get Endpoint Mtls Config
599
+ # Get endpoint mTLS configuration.
600
+ # @param app_id [String] The Application&#39;s ID or UID.
601
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
602
+ # @param [Hash] opts the optional parameters
603
+ # @return [Array<(EndpointMtlsConfigOut, Integer, Hash)>] EndpointMtlsConfigOut data, response status code and response headers
604
+ def v1_endpoint_get_mtls_config_with_http_info(app_id, endpoint_id, opts = {})
605
+ if @api_client.config.debugging
606
+ @api_client.config.logger.debug 'Calling API: EndpointApi.v1_endpoint_get_mtls_config ...'
607
+ end
608
+ # verify the required parameter 'app_id' is set
609
+ if @api_client.config.client_side_validation && app_id.nil?
610
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.v1_endpoint_get_mtls_config"
611
+ end
612
+ if @api_client.config.client_side_validation && app_id.to_s.length > 256
613
+ fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_get_mtls_config, the character length must be smaller than or equal to 256.'
614
+ end
615
+
616
+ if @api_client.config.client_side_validation && app_id.to_s.length < 1
617
+ fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_get_mtls_config, the character length must be great than or equal to 1.'
618
+ end
619
+
620
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
621
+ if @api_client.config.client_side_validation && app_id !~ pattern
622
+ fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.v1_endpoint_get_mtls_config, must conform to the pattern #{pattern}."
623
+ end
624
+
625
+ # verify the required parameter 'endpoint_id' is set
626
+ if @api_client.config.client_side_validation && endpoint_id.nil?
627
+ fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.v1_endpoint_get_mtls_config"
628
+ end
629
+ if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
630
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_get_mtls_config, the character length must be smaller than or equal to 256.'
631
+ end
632
+
633
+ if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
634
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_get_mtls_config, the character length must be great than or equal to 1.'
635
+ end
636
+
637
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
638
+ if @api_client.config.client_side_validation && endpoint_id !~ pattern
639
+ fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.v1_endpoint_get_mtls_config, must conform to the pattern #{pattern}."
640
+ end
641
+
642
+ # resource path
643
+ local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/mtls'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
644
+
645
+ # query parameters
646
+ query_params = opts[:query_params] || {}
647
+
648
+ # header parameters
649
+ header_params = opts[:header_params] || {}
650
+ # HTTP header 'Accept' (if needed)
651
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
652
+
653
+ # form parameters
654
+ form_params = opts[:form_params] || {}
655
+
656
+ # http body (model)
657
+ post_body = opts[:debug_body]
658
+
659
+ # return_type
660
+ return_type = opts[:debug_return_type] || 'EndpointMtlsConfigOut'
661
+
662
+ # auth_names
663
+ auth_names = opts[:debug_auth_names] || ['HTTPBearer']
664
+
665
+ new_options = opts.merge(
666
+ :operation => :"EndpointApi.v1_endpoint_get_mtls_config",
667
+ :header_params => header_params,
668
+ :query_params => query_params,
669
+ :form_params => form_params,
670
+ :body => post_body,
671
+ :auth_names => auth_names,
672
+ :return_type => return_type
673
+ )
674
+
675
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
676
+ if @api_client.config.debugging
677
+ @api_client.config.logger.debug "API called: EndpointApi#v1_endpoint_get_mtls_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
678
+ end
679
+ return data, status_code, headers
680
+ end
681
+
682
+ # Get Endpoint Oauth Config
683
+ # Get endpoint OAuth configuration.
684
+ # @param app_id [String] The Application&#39;s ID or UID.
685
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
686
+ # @param [Hash] opts the optional parameters
687
+ # @return [EndpointOauthConfigOut]
688
+ def v1_endpoint_get_oauth_config(app_id, endpoint_id, opts = {})
689
+ data, _status_code, _headers = v1_endpoint_get_oauth_config_with_http_info(app_id, endpoint_id, opts)
690
+ data
691
+ end
692
+
693
+ # Get Endpoint Oauth Config
694
+ # Get endpoint OAuth configuration.
695
+ # @param app_id [String] The Application&#39;s ID or UID.
696
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
697
+ # @param [Hash] opts the optional parameters
698
+ # @return [Array<(EndpointOauthConfigOut, Integer, Hash)>] EndpointOauthConfigOut data, response status code and response headers
699
+ def v1_endpoint_get_oauth_config_with_http_info(app_id, endpoint_id, opts = {})
700
+ if @api_client.config.debugging
701
+ @api_client.config.logger.debug 'Calling API: EndpointApi.v1_endpoint_get_oauth_config ...'
702
+ end
703
+ # verify the required parameter 'app_id' is set
704
+ if @api_client.config.client_side_validation && app_id.nil?
705
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.v1_endpoint_get_oauth_config"
706
+ end
707
+ if @api_client.config.client_side_validation && app_id.to_s.length > 256
708
+ fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_get_oauth_config, the character length must be smaller than or equal to 256.'
709
+ end
710
+
711
+ if @api_client.config.client_side_validation && app_id.to_s.length < 1
712
+ fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_get_oauth_config, the character length must be great than or equal to 1.'
713
+ end
714
+
715
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
716
+ if @api_client.config.client_side_validation && app_id !~ pattern
717
+ fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.v1_endpoint_get_oauth_config, must conform to the pattern #{pattern}."
718
+ end
719
+
720
+ # verify the required parameter 'endpoint_id' is set
721
+ if @api_client.config.client_side_validation && endpoint_id.nil?
722
+ fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.v1_endpoint_get_oauth_config"
723
+ end
724
+ if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
725
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_get_oauth_config, the character length must be smaller than or equal to 256.'
726
+ end
727
+
728
+ if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
729
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_get_oauth_config, the character length must be great than or equal to 1.'
730
+ end
731
+
732
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
733
+ if @api_client.config.client_side_validation && endpoint_id !~ pattern
734
+ fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.v1_endpoint_get_oauth_config, must conform to the pattern #{pattern}."
735
+ end
736
+
737
+ # resource path
738
+ 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))
739
+
740
+ # query parameters
741
+ query_params = opts[:query_params] || {}
742
+
743
+ # header parameters
744
+ header_params = opts[:header_params] || {}
745
+ # HTTP header 'Accept' (if needed)
746
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
747
+
748
+ # form parameters
749
+ form_params = opts[:form_params] || {}
750
+
751
+ # http body (model)
752
+ post_body = opts[:debug_body]
753
+
754
+ # return_type
755
+ return_type = opts[:debug_return_type] || 'EndpointOauthConfigOut'
756
+
757
+ # auth_names
758
+ auth_names = opts[:debug_auth_names] || ['HTTPBearer']
759
+
760
+ new_options = opts.merge(
761
+ :operation => :"EndpointApi.v1_endpoint_get_oauth_config",
762
+ :header_params => header_params,
763
+ :query_params => query_params,
764
+ :form_params => form_params,
765
+ :body => post_body,
766
+ :auth_names => auth_names,
767
+ :return_type => return_type
768
+ )
769
+
770
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
771
+ if @api_client.config.debugging
772
+ @api_client.config.logger.debug "API called: EndpointApi#v1_endpoint_get_oauth_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
773
+ end
774
+ return data, status_code, headers
775
+ end
776
+
587
777
  # Get Endpoint Secret
588
778
  # Get the 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/).
589
- # @param app_id [String] The app&#39;s ID or UID
590
- # @param endpoint_id [String] The ep&#39;s ID or UID
779
+ # @param app_id [String] The Application&#39;s ID or UID.
780
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
591
781
  # @param [Hash] opts the optional parameters
592
782
  # @return [EndpointSecretOut]
593
783
  def v1_endpoint_get_secret(app_id, endpoint_id, opts = {})
@@ -597,8 +787,8 @@ module Svix
597
787
 
598
788
  # Get Endpoint Secret
599
789
  # Get the endpoint&#39;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/).
600
- # @param app_id [String] The app&#39;s ID or UID
601
- # @param endpoint_id [String] The ep&#39;s ID or UID
790
+ # @param app_id [String] The Application&#39;s ID or UID.
791
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
602
792
  # @param [Hash] opts the optional parameters
603
793
  # @return [Array<(EndpointSecretOut, Integer, Hash)>] EndpointSecretOut data, response status code and response headers
604
794
  def v1_endpoint_get_secret_with_http_info(app_id, endpoint_id, opts = {})
@@ -681,8 +871,8 @@ module Svix
681
871
 
682
872
  # Endpoint Stats
683
873
  # Get basic statistics for the endpoint.
684
- # @param app_id [String] The app&#39;s ID or UID
685
- # @param endpoint_id [String] The ep&#39;s ID or UID
874
+ # @param app_id [String] The Application&#39;s ID or UID.
875
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
686
876
  # @param [Hash] opts the optional parameters
687
877
  # @option opts [Time] :since Filter the range to data starting from this date.
688
878
  # @option opts [Time] :_until Filter the range to data ending by this date.
@@ -694,8 +884,8 @@ module Svix
694
884
 
695
885
  # Endpoint Stats
696
886
  # Get basic statistics for the endpoint.
697
- # @param app_id [String] The app&#39;s ID or UID
698
- # @param endpoint_id [String] The ep&#39;s ID or UID
887
+ # @param app_id [String] The Application&#39;s ID or UID.
888
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
699
889
  # @param [Hash] opts the optional parameters
700
890
  # @option opts [Time] :since Filter the range to data starting from this date.
701
891
  # @option opts [Time] :_until Filter the range to data ending by this date.
@@ -782,7 +972,7 @@ module Svix
782
972
 
783
973
  # List Endpoints
784
974
  # List the application's endpoints.
785
- # @param app_id [String] The app&#39;s ID or UID
975
+ # @param app_id [String] The Application&#39;s ID or UID.
786
976
  # @param [Hash] opts the optional parameters
787
977
  # @option opts [Integer] :limit Limit the number of returned items
788
978
  # @option opts [String] :iterator The iterator returned from a prior invocation
@@ -795,7 +985,7 @@ module Svix
795
985
 
796
986
  # List Endpoints
797
987
  # List the application&#39;s endpoints.
798
- # @param app_id [String] The app&#39;s ID or UID
988
+ # @param app_id [String] The Application&#39;s ID or UID.
799
989
  # @param [Hash] opts the optional parameters
800
990
  # @option opts [Integer] :limit Limit the number of returned items
801
991
  # @option opts [String] :iterator The iterator returned from a prior invocation
@@ -830,6 +1020,19 @@ module Svix
830
1020
  fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling EndpointApi.v1_endpoint_list, must be greater than or equal to 1.'
831
1021
  end
832
1022
 
1023
+ if @api_client.config.client_side_validation && !opts[:'iterator'].nil? && opts[:'iterator'].to_s.length > 30
1024
+ fail ArgumentError, 'invalid value for "opts[:"iterator"]" when calling EndpointApi.v1_endpoint_list, the character length must be smaller than or equal to 30.'
1025
+ end
1026
+
1027
+ if @api_client.config.client_side_validation && !opts[:'iterator'].nil? && opts[:'iterator'].to_s.length < 30
1028
+ fail ArgumentError, 'invalid value for "opts[:"iterator"]" when calling EndpointApi.v1_endpoint_list, the character length must be great than or equal to 30.'
1029
+ end
1030
+
1031
+ pattern = Regexp.new(/^ep_[A-Za-z0-9]{27}$/)
1032
+ if @api_client.config.client_side_validation && !opts[:'iterator'].nil? && opts[:'iterator'] !~ pattern
1033
+ fail ArgumentError, "invalid value for 'opts[:\"iterator\"]' when calling EndpointApi.v1_endpoint_list, must conform to the pattern #{pattern}."
1034
+ end
1035
+
833
1036
  # resource path
834
1037
  local_var_path = '/api/v1/app/{app_id}/endpoint'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
835
1038
 
@@ -875,8 +1078,8 @@ module Svix
875
1078
 
876
1079
  # Patch Endpoint
877
1080
  # Partially update an endpoint.
878
- # @param app_id [String] The app&#39;s ID or UID
879
- # @param endpoint_id [String] The ep&#39;s ID or UID
1081
+ # @param app_id [String] The Application&#39;s ID or UID.
1082
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
880
1083
  # @param endpoint_patch [EndpointPatch]
881
1084
  # @param [Hash] opts the optional parameters
882
1085
  # @return [EndpointOut]
@@ -887,8 +1090,8 @@ module Svix
887
1090
 
888
1091
  # Patch Endpoint
889
1092
  # Partially update an endpoint.
890
- # @param app_id [String] The app&#39;s ID or UID
891
- # @param endpoint_id [String] The ep&#39;s ID or UID
1093
+ # @param app_id [String] The Application&#39;s ID or UID.
1094
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
892
1095
  # @param endpoint_patch [EndpointPatch]
893
1096
  # @param [Hash] opts the optional parameters
894
1097
  # @return [Array<(EndpointOut, Integer, Hash)>] EndpointOut data, response status code and response headers
@@ -981,8 +1184,8 @@ module Svix
981
1184
 
982
1185
  # Patch Endpoint Headers
983
1186
  # Partially set the additional headers to be sent with the webhook.
984
- # @param app_id [String] The app&#39;s ID or UID
985
- # @param endpoint_id [String] The ep&#39;s ID or UID
1187
+ # @param app_id [String] The Application&#39;s ID or UID.
1188
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
986
1189
  # @param endpoint_headers_patch_in [EndpointHeadersPatchIn]
987
1190
  # @param [Hash] opts the optional parameters
988
1191
  # @return [nil]
@@ -993,8 +1196,8 @@ module Svix
993
1196
 
994
1197
  # Patch Endpoint Headers
995
1198
  # Partially set the additional headers to be sent with the webhook.
996
- # @param app_id [String] The app&#39;s ID or UID
997
- # @param endpoint_id [String] The ep&#39;s ID or UID
1199
+ # @param app_id [String] The Application&#39;s ID or UID.
1200
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
998
1201
  # @param endpoint_headers_patch_in [EndpointHeadersPatchIn]
999
1202
  # @param [Hash] opts the optional parameters
1000
1203
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
@@ -1087,8 +1290,8 @@ module Svix
1087
1290
 
1088
1291
  # Recover Failed Webhooks
1089
1292
  # Resend all failed messages since a given time. Messages that were sent successfully, even if failed initially, are not resent.
1090
- # @param app_id [String] The app&#39;s ID or UID
1091
- # @param endpoint_id [String] The ep&#39;s ID or UID
1293
+ # @param app_id [String] The Application&#39;s ID or UID.
1294
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
1092
1295
  # @param recover_in [RecoverIn]
1093
1296
  # @param [Hash] opts the optional parameters
1094
1297
  # @option opts [String] :idempotency_key The request&#39;s idempotency key
@@ -1100,8 +1303,8 @@ module Svix
1100
1303
 
1101
1304
  # Recover Failed Webhooks
1102
1305
  # Resend all failed messages since a given time. Messages that were sent successfully, even if failed initially, are not resent.
1103
- # @param app_id [String] The app&#39;s ID or UID
1104
- # @param endpoint_id [String] The ep&#39;s ID or UID
1306
+ # @param app_id [String] The Application&#39;s ID or UID.
1307
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
1105
1308
  # @param recover_in [RecoverIn]
1106
1309
  # @param [Hash] opts the optional parameters
1107
1310
  # @option opts [String] :idempotency_key The request&#39;s idempotency key
@@ -1196,8 +1399,8 @@ module Svix
1196
1399
 
1197
1400
  # Replay Missing Webhooks
1198
1401
  # Replays messages to the endpoint. Only messages that were created after `since` will be sent. Messages that were previously sent to the endpoint are not resent.
1199
- # @param app_id [String] The app&#39;s ID or UID
1200
- # @param endpoint_id [String] The ep&#39;s ID or UID
1402
+ # @param app_id [String] The Application&#39;s ID or UID.
1403
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
1201
1404
  # @param replay_in [ReplayIn]
1202
1405
  # @param [Hash] opts the optional parameters
1203
1406
  # @option opts [String] :idempotency_key The request&#39;s idempotency key
@@ -1209,8 +1412,8 @@ module Svix
1209
1412
 
1210
1413
  # Replay Missing Webhooks
1211
1414
  # Replays messages to the endpoint. Only messages that were created after &#x60;since&#x60; will be sent. Messages that were previously sent to the endpoint are not resent.
1212
- # @param app_id [String] The app&#39;s ID or UID
1213
- # @param endpoint_id [String] The ep&#39;s ID or UID
1415
+ # @param app_id [String] The Application&#39;s ID or UID.
1416
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
1214
1417
  # @param replay_in [ReplayIn]
1215
1418
  # @param [Hash] opts the optional parameters
1216
1419
  # @option opts [String] :idempotency_key The request&#39;s idempotency key
@@ -1305,8 +1508,8 @@ module Svix
1305
1508
 
1306
1509
  # Rotate Endpoint Secret
1307
1510
  # Rotates the endpoint's signing secret. The previous secret will remain valid for the next 24 hours.
1308
- # @param app_id [String] The app&#39;s ID or UID
1309
- # @param endpoint_id [String] The ep&#39;s ID or UID
1511
+ # @param app_id [String] The Application&#39;s ID or UID.
1512
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
1310
1513
  # @param endpoint_secret_rotate_in [EndpointSecretRotateIn]
1311
1514
  # @param [Hash] opts the optional parameters
1312
1515
  # @option opts [String] :idempotency_key The request&#39;s idempotency key
@@ -1318,8 +1521,8 @@ module Svix
1318
1521
 
1319
1522
  # Rotate Endpoint Secret
1320
1523
  # Rotates the endpoint&#39;s signing secret. The previous secret will remain valid for the next 24 hours.
1321
- # @param app_id [String] The app&#39;s ID or UID
1322
- # @param endpoint_id [String] The ep&#39;s ID or UID
1524
+ # @param app_id [String] The Application&#39;s ID or UID.
1525
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
1323
1526
  # @param endpoint_secret_rotate_in [EndpointSecretRotateIn]
1324
1527
  # @param [Hash] opts the optional parameters
1325
1528
  # @option opts [String] :idempotency_key The request&#39;s idempotency key
@@ -1414,8 +1617,8 @@ module Svix
1414
1617
 
1415
1618
  # Send Event Type Example Message
1416
1619
  # Send an example message for an event.
1417
- # @param app_id [String] The app&#39;s ID or UID
1418
- # @param endpoint_id [String] The ep&#39;s ID or UID
1620
+ # @param app_id [String] The Application&#39;s ID or UID.
1621
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
1419
1622
  # @param event_example_in [EventExampleIn]
1420
1623
  # @param [Hash] opts the optional parameters
1421
1624
  # @option opts [String] :idempotency_key The request&#39;s idempotency key
@@ -1427,8 +1630,8 @@ module Svix
1427
1630
 
1428
1631
  # Send Event Type Example Message
1429
1632
  # Send an example message for an event.
1430
- # @param app_id [String] The app&#39;s ID or UID
1431
- # @param endpoint_id [String] The ep&#39;s ID or UID
1633
+ # @param app_id [String] The Application&#39;s ID or UID.
1634
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
1432
1635
  # @param event_example_in [EventExampleIn]
1433
1636
  # @param [Hash] opts the optional parameters
1434
1637
  # @option opts [String] :idempotency_key The request&#39;s idempotency key
@@ -1523,8 +1726,8 @@ module Svix
1523
1726
 
1524
1727
  # Get Endpoint Transformation
1525
1728
  # Get the transformation code associated with this endpoint.
1526
- # @param app_id [String] The app&#39;s ID or UID
1527
- # @param endpoint_id [String] The ep&#39;s ID or UID
1729
+ # @param app_id [String] The Application&#39;s ID or UID.
1730
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
1528
1731
  # @param [Hash] opts the optional parameters
1529
1732
  # @return [EndpointTransformationOut]
1530
1733
  def v1_endpoint_transformation_get(app_id, endpoint_id, opts = {})
@@ -1534,8 +1737,8 @@ module Svix
1534
1737
 
1535
1738
  # Get Endpoint Transformation
1536
1739
  # Get the transformation code associated with this endpoint.
1537
- # @param app_id [String] The app&#39;s ID or UID
1538
- # @param endpoint_id [String] The ep&#39;s ID or UID
1740
+ # @param app_id [String] The Application&#39;s ID or UID.
1741
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
1539
1742
  # @param [Hash] opts the optional parameters
1540
1743
  # @return [Array<(EndpointTransformationOut, Integer, Hash)>] EndpointTransformationOut data, response status code and response headers
1541
1744
  def v1_endpoint_transformation_get_with_http_info(app_id, endpoint_id, opts = {})
@@ -1618,8 +1821,8 @@ module Svix
1618
1821
 
1619
1822
  # Set Endpoint Transformation
1620
1823
  # Set or unset the transformation code associated with this endpoint.
1621
- # @param app_id [String] The app&#39;s ID or UID
1622
- # @param endpoint_id [String] The ep&#39;s ID or UID
1824
+ # @param app_id [String] The Application&#39;s ID or UID.
1825
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
1623
1826
  # @param endpoint_transformation_in [EndpointTransformationIn]
1624
1827
  # @param [Hash] opts the optional parameters
1625
1828
  # @return [nil]
@@ -1630,8 +1833,8 @@ module Svix
1630
1833
 
1631
1834
  # Set Endpoint Transformation
1632
1835
  # Set or unset the transformation code associated with this endpoint.
1633
- # @param app_id [String] The app&#39;s ID or UID
1634
- # @param endpoint_id [String] The ep&#39;s ID or UID
1836
+ # @param app_id [String] The Application&#39;s ID or UID.
1837
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
1635
1838
  # @param endpoint_transformation_in [EndpointTransformationIn]
1636
1839
  # @param [Hash] opts the optional parameters
1637
1840
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
@@ -1724,8 +1927,8 @@ module Svix
1724
1927
 
1725
1928
  # Simulate
1726
1929
  # Simulate running the transformation on the payload and code.
1727
- # @param app_id [String] The app&#39;s ID or UID
1728
- # @param endpoint_id [String] The ep&#39;s ID or UID
1930
+ # @param app_id [String] The Application&#39;s ID or UID.
1931
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
1729
1932
  # @param endpoint_transformation_simulate_in [EndpointTransformationSimulateIn]
1730
1933
  # @param [Hash] opts the optional parameters
1731
1934
  # @option opts [String] :idempotency_key The request&#39;s idempotency key
@@ -1737,8 +1940,8 @@ module Svix
1737
1940
 
1738
1941
  # Simulate
1739
1942
  # Simulate running the transformation on the payload and code.
1740
- # @param app_id [String] The app&#39;s ID or UID
1741
- # @param endpoint_id [String] The ep&#39;s ID or UID
1943
+ # @param app_id [String] The Application&#39;s ID or UID.
1944
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
1742
1945
  # @param endpoint_transformation_simulate_in [EndpointTransformationSimulateIn]
1743
1946
  # @param [Hash] opts the optional parameters
1744
1947
  # @option opts [String] :idempotency_key The request&#39;s idempotency key
@@ -1833,8 +2036,8 @@ module Svix
1833
2036
 
1834
2037
  # Update Endpoint
1835
2038
  # Update an endpoint.
1836
- # @param app_id [String] The app&#39;s ID or UID
1837
- # @param endpoint_id [String] The ep&#39;s ID or UID
2039
+ # @param app_id [String] The Application&#39;s ID or UID.
2040
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
1838
2041
  # @param endpoint_update [EndpointUpdate]
1839
2042
  # @param [Hash] opts the optional parameters
1840
2043
  # @return [EndpointOut]
@@ -1845,8 +2048,8 @@ module Svix
1845
2048
 
1846
2049
  # Update Endpoint
1847
2050
  # Update an endpoint.
1848
- # @param app_id [String] The app&#39;s ID or UID
1849
- # @param endpoint_id [String] The ep&#39;s ID or UID
2051
+ # @param app_id [String] The Application&#39;s ID or UID.
2052
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
1850
2053
  # @param endpoint_update [EndpointUpdate]
1851
2054
  # @param [Hash] opts the optional parameters
1852
2055
  # @return [Array<(EndpointOut, Integer, Hash)>] EndpointOut data, response status code and response headers
@@ -1939,8 +2142,8 @@ module Svix
1939
2142
 
1940
2143
  # Update Endpoint Headers
1941
2144
  # Set the additional headers to be sent with the webhook.
1942
- # @param app_id [String] The app&#39;s ID or UID
1943
- # @param endpoint_id [String] The ep&#39;s ID or UID
2145
+ # @param app_id [String] The Application&#39;s ID or UID.
2146
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
1944
2147
  # @param endpoint_headers_in [EndpointHeadersIn]
1945
2148
  # @param [Hash] opts the optional parameters
1946
2149
  # @return [nil]
@@ -1951,8 +2154,8 @@ module Svix
1951
2154
 
1952
2155
  # Update Endpoint Headers
1953
2156
  # Set the additional headers to be sent with the webhook.
1954
- # @param app_id [String] The app&#39;s ID or UID
1955
- # @param endpoint_id [String] The ep&#39;s ID or UID
2157
+ # @param app_id [String] The Application&#39;s ID or UID.
2158
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
1956
2159
  # @param endpoint_headers_in [EndpointHeadersIn]
1957
2160
  # @param [Hash] opts the optional parameters
1958
2161
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
@@ -2044,9 +2247,9 @@ module Svix
2044
2247
  end
2045
2248
 
2046
2249
  # Update Endpoint Mtls Config
2047
- # Create/update endpoint mTLS configuration.
2048
- # @param app_id [String] The app&#39;s ID or UID
2049
- # @param endpoint_id [String] The ep&#39;s ID or UID
2250
+ # Create / update endpoint mTLS configuration.
2251
+ # @param app_id [String] The Application&#39;s ID or UID.
2252
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
2050
2253
  # @param endpoint_mtls_config_in [EndpointMtlsConfigIn]
2051
2254
  # @param [Hash] opts the optional parameters
2052
2255
  # @return [nil]
@@ -2056,9 +2259,9 @@ module Svix
2056
2259
  end
2057
2260
 
2058
2261
  # Update Endpoint Mtls Config
2059
- # Create/update endpoint mTLS configuration.
2060
- # @param app_id [String] The app&#39;s ID or UID
2061
- # @param endpoint_id [String] The ep&#39;s ID or UID
2262
+ # Create / update endpoint mTLS configuration.
2263
+ # @param app_id [String] The Application&#39;s ID or UID.
2264
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
2062
2265
  # @param endpoint_mtls_config_in [EndpointMtlsConfigIn]
2063
2266
  # @param [Hash] opts the optional parameters
2064
2267
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
@@ -2150,9 +2353,9 @@ module Svix
2150
2353
  end
2151
2354
 
2152
2355
  # Update Endpoint Oauth Config
2153
- # Create/update endpoint OAuth configuration.
2154
- # @param app_id [String] The app&#39;s ID or UID
2155
- # @param endpoint_id [String] The ep&#39;s ID or UID
2356
+ # Create / update endpoint OAuth configuration.
2357
+ # @param app_id [String] The Application&#39;s ID or UID.
2358
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
2156
2359
  # @param endpoint_oauth_config_in [EndpointOauthConfigIn]
2157
2360
  # @param [Hash] opts the optional parameters
2158
2361
  # @return [nil]
@@ -2162,9 +2365,9 @@ module Svix
2162
2365
  end
2163
2366
 
2164
2367
  # Update Endpoint Oauth Config
2165
- # Create/update endpoint OAuth configuration.
2166
- # @param app_id [String] The app&#39;s ID or UID
2167
- # @param endpoint_id [String] The ep&#39;s ID or UID
2368
+ # Create / update endpoint OAuth configuration.
2369
+ # @param app_id [String] The Application&#39;s ID or UID.
2370
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
2168
2371
  # @param endpoint_oauth_config_in [EndpointOauthConfigIn]
2169
2372
  # @param [Hash] opts the optional parameters
2170
2373
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
@@ -2257,7 +2460,7 @@ module Svix
2257
2460
 
2258
2461
  # Create Sink
2259
2462
  # Create a new sink for the application.
2260
- # @param app_id [String] The app&#39;s ID or UID
2463
+ # @param app_id [String] The Application&#39;s ID or UID.
2261
2464
  # @param sink_in [SinkIn]
2262
2465
  # @param [Hash] opts the optional parameters
2263
2466
  # @option opts [String] :idempotency_key The request&#39;s idempotency key
@@ -2269,7 +2472,7 @@ module Svix
2269
2472
 
2270
2473
  # Create Sink
2271
2474
  # Create a new sink for the application.
2272
- # @param app_id [String] The app&#39;s ID or UID
2475
+ # @param app_id [String] The Application&#39;s ID or UID.
2273
2476
  # @param sink_in [SinkIn]
2274
2477
  # @param [Hash] opts the optional parameters
2275
2478
  # @option opts [String] :idempotency_key The request&#39;s idempotency key
@@ -2347,8 +2550,8 @@ module Svix
2347
2550
 
2348
2551
  # Get Sink
2349
2552
  # Get a sink.
2350
- # @param app_id [String] The app&#39;s ID or UID
2351
- # @param sink_id [String] The ep&#39;s ID or UID
2553
+ # @param app_id [String] The Application&#39;s ID or UID.
2554
+ # @param sink_id [String] The Endpoint&#39;s ID or UID.
2352
2555
  # @param [Hash] opts the optional parameters
2353
2556
  # @return [SinkOut]
2354
2557
  def v1_sink_get(app_id, sink_id, opts = {})
@@ -2358,8 +2561,8 @@ module Svix
2358
2561
 
2359
2562
  # Get Sink
2360
2563
  # Get a sink.
2361
- # @param app_id [String] The app&#39;s ID or UID
2362
- # @param sink_id [String] The ep&#39;s ID or UID
2564
+ # @param app_id [String] The Application&#39;s ID or UID.
2565
+ # @param sink_id [String] The Endpoint&#39;s ID or UID.
2363
2566
  # @param [Hash] opts the optional parameters
2364
2567
  # @return [Array<(SinkOut, Integer, Hash)>] SinkOut data, response status code and response headers
2365
2568
  def v1_sink_get_with_http_info(app_id, sink_id, opts = {})
@@ -2442,7 +2645,7 @@ module Svix
2442
2645
 
2443
2646
  # List Sinks
2444
2647
  # List the application's sinks.
2445
- # @param app_id [String] The app&#39;s ID or UID
2648
+ # @param app_id [String] The Application&#39;s ID or UID.
2446
2649
  # @param [Hash] opts the optional parameters
2447
2650
  # @option opts [Integer] :limit Limit the number of returned items
2448
2651
  # @option opts [String] :iterator The iterator returned from a prior invocation
@@ -2455,7 +2658,7 @@ module Svix
2455
2658
 
2456
2659
  # List Sinks
2457
2660
  # List the application&#39;s sinks.
2458
- # @param app_id [String] The app&#39;s ID or UID
2661
+ # @param app_id [String] The Application&#39;s ID or UID.
2459
2662
  # @param [Hash] opts the optional parameters
2460
2663
  # @option opts [Integer] :limit Limit the number of returned items
2461
2664
  # @option opts [String] :iterator The iterator returned from a prior invocation
@@ -2490,6 +2693,19 @@ module Svix
2490
2693
  fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling EndpointApi.v1_sink_list, must be greater than or equal to 1.'
2491
2694
  end
2492
2695
 
2696
+ if @api_client.config.client_side_validation && !opts[:'iterator'].nil? && opts[:'iterator'].to_s.length > 30
2697
+ fail ArgumentError, 'invalid value for "opts[:"iterator"]" when calling EndpointApi.v1_sink_list, the character length must be smaller than or equal to 30.'
2698
+ end
2699
+
2700
+ if @api_client.config.client_side_validation && !opts[:'iterator'].nil? && opts[:'iterator'].to_s.length < 30
2701
+ fail ArgumentError, 'invalid value for "opts[:"iterator"]" when calling EndpointApi.v1_sink_list, the character length must be great than or equal to 30.'
2702
+ end
2703
+
2704
+ pattern = Regexp.new(/^ep_[A-Za-z0-9]{27}$/)
2705
+ if @api_client.config.client_side_validation && !opts[:'iterator'].nil? && opts[:'iterator'] !~ pattern
2706
+ fail ArgumentError, "invalid value for 'opts[:\"iterator\"]' when calling EndpointApi.v1_sink_list, must conform to the pattern #{pattern}."
2707
+ end
2708
+
2493
2709
  # resource path
2494
2710
  local_var_path = '/api/v1/app/{app_id}/sink'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
2495
2711