svix 0.83.1 → 0.84.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (120) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/lib/svix/api/application_api.rb +251 -181
  4. data/lib/svix/api/authentication_api.rb +84 -152
  5. data/lib/svix/api/background_tasks_api.rb +165 -0
  6. data/lib/svix/api/endpoint_api.rb +591 -511
  7. data/lib/svix/api/environment_api.rb +15 -15
  8. data/lib/svix/api/environment_settings_api.rb +7 -10
  9. data/lib/svix/api/event_type_api.rb +160 -85
  10. data/lib/svix/api/health_api.rb +7 -10
  11. data/lib/svix/api/integration_api.rb +136 -143
  12. data/lib/svix/api/message_api.rb +103 -105
  13. data/lib/svix/api/message_attempt_api.rb +419 -419
  14. data/lib/svix/api/statistics_api.rb +110 -48
  15. data/lib/svix/api_client.rb +1 -1
  16. data/lib/svix/api_error.rb +1 -1
  17. data/lib/svix/application_api.rb +22 -22
  18. data/lib/svix/authentication_api.rb +3 -3
  19. data/lib/svix/configuration.rb +2 -1
  20. data/lib/svix/endpoint_api.rb +16 -16
  21. data/lib/svix/event_type_api.rb +19 -19
  22. data/lib/svix/integration_api.rb +26 -26
  23. data/lib/svix/message_api.rb +4 -4
  24. data/lib/svix/message_attempt_api.rb +8 -8
  25. data/lib/svix/models/app_portal_access_in.rb +2 -1
  26. data/lib/svix/models/app_portal_access_out.rb +1 -1
  27. data/lib/svix/models/app_usage_stats_in.rb +255 -0
  28. data/lib/svix/models/app_usage_stats_out.rb +251 -0
  29. data/lib/svix/models/application_in.rb +35 -2
  30. data/lib/svix/models/application_out.rb +23 -3
  31. data/lib/svix/models/application_patch.rb +300 -0
  32. data/lib/svix/models/application_stats.rb +3 -2
  33. data/lib/svix/models/application_token_expire_in.rb +1 -1
  34. data/lib/svix/models/attempt_statistics_data.rb +1 -1
  35. data/lib/svix/models/attempt_statistics_response.rb +1 -1
  36. data/lib/svix/models/{webhook_types.rb → background_task_out.rb} +41 -70
  37. data/lib/svix/models/background_task_status.rb +38 -0
  38. data/lib/svix/models/background_task_type.rb +38 -0
  39. data/lib/svix/models/border_radius_config.rb +1 -1
  40. data/lib/svix/models/border_radius_enum.rb +1 -1
  41. data/lib/svix/models/custom_color_palette.rb +1 -1
  42. data/lib/svix/models/custom_theme_override.rb +1 -1
  43. data/lib/svix/models/dashboard_access_out.rb +1 -1
  44. data/lib/svix/models/endpoint_created_event.rb +6 -1
  45. data/lib/svix/models/endpoint_created_event_data.rb +5 -3
  46. data/lib/svix/models/endpoint_deleted_event.rb +6 -1
  47. data/lib/svix/models/endpoint_deleted_event_data.rb +5 -3
  48. data/lib/svix/models/endpoint_disabled_event.rb +6 -1
  49. data/lib/svix/models/endpoint_disabled_event_data.rb +6 -3
  50. data/lib/svix/models/endpoint_headers_in.rb +1 -1
  51. data/lib/svix/models/endpoint_headers_out.rb +1 -1
  52. data/lib/svix/models/endpoint_headers_patch_in.rb +1 -1
  53. data/lib/svix/models/endpoint_in.rb +20 -11
  54. data/lib/svix/models/endpoint_message_out.rb +4 -1
  55. data/lib/svix/models/endpoint_out.rb +35 -16
  56. data/lib/svix/models/endpoint_patch.rb +406 -0
  57. data/lib/svix/models/endpoint_secret_out.rb +1 -1
  58. data/lib/svix/models/endpoint_secret_rotate_in.rb +3 -1
  59. data/lib/svix/models/endpoint_stats.rb +1 -1
  60. data/lib/svix/models/endpoint_transformation_in.rb +1 -3
  61. data/lib/svix/models/endpoint_transformation_out.rb +1 -1
  62. data/lib/svix/models/endpoint_transformation_simulate_in.rb +8 -1
  63. data/lib/svix/models/endpoint_transformation_simulate_out.rb +1 -1
  64. data/lib/svix/models/endpoint_update.rb +20 -11
  65. data/lib/svix/models/endpoint_updated_event.rb +6 -1
  66. data/lib/svix/models/endpoint_updated_event_data.rb +5 -3
  67. data/lib/svix/models/environment_in.rb +1 -1
  68. data/lib/svix/models/environment_out.rb +1 -1
  69. data/lib/svix/models/environment_settings_out.rb +1 -1
  70. data/lib/svix/models/event_example_in.rb +2 -1
  71. data/lib/svix/models/event_type_example_out.rb +5 -3
  72. data/lib/svix/models/event_type_in.rb +2 -1
  73. data/lib/svix/models/event_type_out.rb +2 -1
  74. data/lib/svix/models/event_type_patch.rb +275 -0
  75. data/lib/svix/models/event_type_schema_in.rb +1 -2
  76. data/lib/svix/models/event_type_update.rb +1 -1
  77. data/lib/svix/models/font_size_config.rb +1 -1
  78. data/lib/svix/models/http_error_out.rb +1 -1
  79. data/lib/svix/models/http_validation_error.rb +6 -1
  80. data/lib/svix/models/integration_in.rb +1 -1
  81. data/lib/svix/models/integration_key_out.rb +1 -1
  82. data/lib/svix/models/integration_out.rb +2 -1
  83. data/lib/svix/models/integration_update.rb +1 -1
  84. data/lib/svix/models/list_response_application_out.rb +1 -1
  85. data/lib/svix/models/list_response_application_stats.rb +16 -6
  86. data/lib/svix/models/list_response_background_task_out.rb +259 -0
  87. data/lib/svix/models/list_response_endpoint_message_out.rb +1 -1
  88. data/lib/svix/models/list_response_endpoint_out.rb +1 -1
  89. data/lib/svix/models/list_response_event_type_out.rb +1 -1
  90. data/lib/svix/models/list_response_integration_out.rb +16 -6
  91. data/lib/svix/models/list_response_message_attempt_endpoint_out.rb +1 -1
  92. data/lib/svix/models/list_response_message_attempt_out.rb +1 -1
  93. data/lib/svix/models/list_response_message_endpoint_out.rb +16 -6
  94. data/lib/svix/models/list_response_message_out.rb +1 -1
  95. data/lib/svix/models/message_attempt_endpoint_out.rb +4 -1
  96. data/lib/svix/models/message_attempt_exhausted_event.rb +6 -1
  97. data/lib/svix/models/message_attempt_exhausted_event_data.rb +7 -3
  98. data/lib/svix/models/message_attempt_failed_data.rb +2 -1
  99. data/lib/svix/models/message_attempt_failing_event.rb +6 -1
  100. data/lib/svix/models/message_attempt_failing_event_data.rb +7 -3
  101. data/lib/svix/models/message_attempt_headers_out.rb +28 -2
  102. data/lib/svix/models/message_attempt_out.rb +4 -1
  103. data/lib/svix/models/message_attempt_trigger_type.rb +1 -1
  104. data/lib/svix/models/message_endpoint_out.rb +47 -30
  105. data/lib/svix/models/message_in.rb +2 -2
  106. data/lib/svix/models/message_out.rb +3 -1
  107. data/lib/svix/models/message_status.rb +1 -1
  108. data/lib/svix/models/ordering.rb +1 -1
  109. data/lib/svix/models/recover_in.rb +1 -1
  110. data/lib/svix/models/{one_time_token_out.rb → recover_out.rb} +42 -14
  111. data/lib/svix/models/replay_in.rb +1 -1
  112. data/lib/svix/models/{one_time_token_in.rb → replay_out.rb} +42 -14
  113. data/lib/svix/models/settings_in.rb +1 -1
  114. data/lib/svix/models/settings_out.rb +1 -1
  115. data/lib/svix/models/statistics_period.rb +1 -1
  116. data/lib/svix/models/status_code_class.rb +1 -1
  117. data/lib/svix/models/transformation_http_method.rb +2 -2
  118. data/lib/svix/models/validation_error.rb +5 -1
  119. data/lib/svix/version.rb +1 -1
  120. metadata +14 -5
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Welcome to the Svix API documentation! Useful links: [Homepage](https://www.svix.com) | [Support email](mailto:support+docs@svix.com) | [Blog](https://www.svix.com/blog/) | [Slack Community](https://www.svix.com/slack/) # Introduction This is the reference documentation and schemas for the [Svix webhook service](https://www.svix.com) API. For tutorials and other documentation please refer to [the documentation](https://docs.svix.com). ## Main concepts In Svix you have four important entities you will be interacting with: - `messages`: these are the webhooks being sent. They can have contents and a few other properties. - `application`: this is where `messages` are sent to. Usually you want to create one application for each user on your platform. - `endpoint`: endpoints are the URLs messages will be sent to. Each application can have multiple `endpoints` and each message sent to that application will be sent to all of them (unless they are not subscribed to the sent event type). - `event-type`: event types are identifiers denoting the type of the message being sent. Event types are primarily used to decide which events are sent to which endpoint. ## Authentication Get your authentication token (`AUTH_TOKEN`) from the [Svix dashboard](https://dashboard.svix.com) and use it as part of the `Authorization` header as such: `Authorization: Bearer ${AUTH_TOKEN}`. <SecurityDefinitions /> ## Code samples The code samples assume you already have the respective libraries installed and you know how to use them. For the latest information on how to do that, please refer to [the documentation](https://docs.svix.com/). ## Idempotency Svix supports [idempotency](https://en.wikipedia.org/wiki/Idempotence) for safely retrying requests without accidentally performing the same operation twice. This is useful when an API call is disrupted in transit and you do not receive a response. To perform an idempotent request, pass the idempotency key in the `Idempotency-Key` header to the request. The idempotency key should be a unique value generated by the client. You can create the key in however way you like, though we suggest using UUID v4, or any other string with enough entropy to avoid collisions. Svix's idempotency works by saving the resulting status code and body of the first request made for any given idempotency key for any successful request. Subsequent requests with the same key return the same result. Please note that idempotency is only supported for `POST` requests. ## Cross-Origin Resource Sharing This API features Cross-Origin Resource Sharing (CORS) implemented in compliance with [W3C spec](https://www.w3.org/TR/cors/). And that allows cross-domain communication from the browser. All responses have a wildcard same-origin which makes them completely public and accessible to everyone, including any code on any site.
5
5
 
6
- The version of the OpenAPI document: 1.4
6
+ The version of the OpenAPI document: 1.4.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.2.0
@@ -19,52 +19,69 @@ module Svix
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # Create Endpoint
23
- # Create a new endpoint for the application. When `secret` is `null` the secret is automatically generated (recommended)
24
- # @param app_id [String]
25
- # @param endpoint_in [EndpointIn]
22
+ # Patch Endpoint
23
+ # Partially update an endpoint.
24
+ # @param app_id [String] The app&#39;s ID or UID
25
+ # @param endpoint_id [String] The ep&#39;s ID or UID
26
+ # @param endpoint_patch [EndpointPatch]
26
27
  # @param [Hash] opts the optional parameters
27
- # @option opts [String] :idempotency_key The request&#39;s idempotency key
28
28
  # @return [EndpointOut]
29
- def create_endpoint_api_v1_app_app_id_endpoint_post(app_id, endpoint_in, opts = {})
30
- data, _status_code, _headers = create_endpoint_api_v1_app_app_id_endpoint_post_with_http_info(app_id, endpoint_in, opts)
29
+ def patch_endpoint(app_id, endpoint_id, endpoint_patch, opts = {})
30
+ data, _status_code, _headers = patch_endpoint_with_http_info(app_id, endpoint_id, endpoint_patch, opts)
31
31
  data
32
32
  end
33
33
 
34
- # Create Endpoint
35
- # Create a new endpoint for the application. When &#x60;secret&#x60; is &#x60;null&#x60; the secret is automatically generated (recommended)
36
- # @param app_id [String]
37
- # @param endpoint_in [EndpointIn]
34
+ # Patch Endpoint
35
+ # Partially update an endpoint.
36
+ # @param app_id [String] The app&#39;s ID or UID
37
+ # @param endpoint_id [String] The ep&#39;s ID or UID
38
+ # @param endpoint_patch [EndpointPatch]
38
39
  # @param [Hash] opts the optional parameters
39
- # @option opts [String] :idempotency_key The request&#39;s idempotency key
40
40
  # @return [Array<(EndpointOut, Integer, Hash)>] EndpointOut data, response status code and response headers
41
- def create_endpoint_api_v1_app_app_id_endpoint_post_with_http_info(app_id, endpoint_in, opts = {})
41
+ def patch_endpoint_with_http_info(app_id, endpoint_id, endpoint_patch, opts = {})
42
42
  if @api_client.config.debugging
43
- @api_client.config.logger.debug 'Calling API: EndpointApi.create_endpoint_api_v1_app_app_id_endpoint_post ...'
43
+ @api_client.config.logger.debug 'Calling API: EndpointApi.patch_endpoint ...'
44
44
  end
45
45
  # verify the required parameter 'app_id' is set
46
46
  if @api_client.config.client_side_validation && app_id.nil?
47
- fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.create_endpoint_api_v1_app_app_id_endpoint_post"
47
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.patch_endpoint"
48
48
  end
49
49
  if @api_client.config.client_side_validation && app_id.to_s.length > 256
50
- fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.create_endpoint_api_v1_app_app_id_endpoint_post, the character length must be smaller than or equal to 256.'
50
+ fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.patch_endpoint, the character length must be smaller than or equal to 256.'
51
51
  end
52
52
 
53
53
  if @api_client.config.client_side_validation && app_id.to_s.length < 1
54
- fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.create_endpoint_api_v1_app_app_id_endpoint_post, the character length must be great than or equal to 1.'
54
+ fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.patch_endpoint, the character length must be great than or equal to 1.'
55
55
  end
56
56
 
57
57
  pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
58
58
  if @api_client.config.client_side_validation && app_id !~ pattern
59
- fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.create_endpoint_api_v1_app_app_id_endpoint_post, must conform to the pattern #{pattern}."
59
+ fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.patch_endpoint, must conform to the pattern #{pattern}."
60
60
  end
61
61
 
62
- # verify the required parameter 'endpoint_in' is set
63
- if @api_client.config.client_side_validation && endpoint_in.nil?
64
- fail ArgumentError, "Missing the required parameter 'endpoint_in' when calling EndpointApi.create_endpoint_api_v1_app_app_id_endpoint_post"
62
+ # verify the required parameter 'endpoint_id' is set
63
+ if @api_client.config.client_side_validation && endpoint_id.nil?
64
+ fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.patch_endpoint"
65
+ end
66
+ if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
67
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.patch_endpoint, the character length must be smaller than or equal to 256.'
68
+ end
69
+
70
+ if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
71
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.patch_endpoint, the character length must be great than or equal to 1.'
72
+ end
73
+
74
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
75
+ if @api_client.config.client_side_validation && endpoint_id !~ pattern
76
+ fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.patch_endpoint, must conform to the pattern #{pattern}."
77
+ end
78
+
79
+ # verify the required parameter 'endpoint_patch' is set
80
+ if @api_client.config.client_side_validation && endpoint_patch.nil?
81
+ fail ArgumentError, "Missing the required parameter 'endpoint_patch' when calling EndpointApi.patch_endpoint"
65
82
  end
66
83
  # resource path
67
- local_var_path = '/api/v1/app/{app_id}/endpoint/'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
84
+ 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))
68
85
 
69
86
  # query parameters
70
87
  query_params = opts[:query_params] || {}
@@ -75,13 +92,12 @@ module Svix
75
92
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
76
93
  # HTTP header 'Content-Type'
77
94
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
78
- header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
79
95
 
80
96
  # form parameters
81
97
  form_params = opts[:form_params] || {}
82
98
 
83
99
  # http body (model)
84
- post_body = opts[:debug_body] || @api_client.object_to_http_body(endpoint_in)
100
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(endpoint_patch)
85
101
 
86
102
  # return_type
87
103
  return_type = opts[:debug_return_type] || 'EndpointOut'
@@ -90,7 +106,7 @@ module Svix
90
106
  auth_names = opts[:debug_auth_names] || ['HTTPBearer']
91
107
 
92
108
  new_options = opts.merge(
93
- :operation => :"EndpointApi.create_endpoint_api_v1_app_app_id_endpoint_post",
109
+ :operation => :"EndpointApi.patch_endpoint",
94
110
  :header_params => header_params,
95
111
  :query_params => query_params,
96
112
  :form_params => form_params,
@@ -99,72 +115,59 @@ module Svix
99
115
  :return_type => return_type
100
116
  )
101
117
 
102
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
118
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
103
119
  if @api_client.config.debugging
104
- @api_client.config.logger.debug "API called: EndpointApi#create_endpoint_api_v1_app_app_id_endpoint_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
120
+ @api_client.config.logger.debug "API called: EndpointApi#patch_endpoint\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
105
121
  end
106
122
  return data, status_code, headers
107
123
  end
108
124
 
109
- # Delete Endpoint
110
- # Delete an endpoint.
111
- # @param endpoint_id [String]
112
- # @param app_id [String]
125
+ # Create Endpoint
126
+ # Create a new endpoint for the application. When `secret` is `null` the secret is automatically generated (recommended)
127
+ # @param app_id [String] The app&#39;s ID or UID
128
+ # @param endpoint_in [EndpointIn]
113
129
  # @param [Hash] opts the optional parameters
114
130
  # @option opts [String] :idempotency_key The request&#39;s idempotency key
115
- # @return [nil]
116
- def delete_endpoint_api_v1_app_app_id_endpoint_endpoint_id_delete(endpoint_id, app_id, opts = {})
117
- delete_endpoint_api_v1_app_app_id_endpoint_endpoint_id_delete_with_http_info(endpoint_id, app_id, opts)
118
- nil
131
+ # @return [EndpointOut]
132
+ def v1_endpoint_create(app_id, endpoint_in, opts = {})
133
+ data, _status_code, _headers = v1_endpoint_create_with_http_info(app_id, endpoint_in, opts)
134
+ data
119
135
  end
120
136
 
121
- # Delete Endpoint
122
- # Delete an endpoint.
123
- # @param endpoint_id [String]
124
- # @param app_id [String]
137
+ # Create Endpoint
138
+ # Create a new endpoint for the application. When &#x60;secret&#x60; is &#x60;null&#x60; the secret is automatically generated (recommended)
139
+ # @param app_id [String] The app&#39;s ID or UID
140
+ # @param endpoint_in [EndpointIn]
125
141
  # @param [Hash] opts the optional parameters
126
142
  # @option opts [String] :idempotency_key The request&#39;s idempotency key
127
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
128
- def delete_endpoint_api_v1_app_app_id_endpoint_endpoint_id_delete_with_http_info(endpoint_id, app_id, opts = {})
143
+ # @return [Array<(EndpointOut, Integer, Hash)>] EndpointOut data, response status code and response headers
144
+ def v1_endpoint_create_with_http_info(app_id, endpoint_in, opts = {})
129
145
  if @api_client.config.debugging
130
- @api_client.config.logger.debug 'Calling API: EndpointApi.delete_endpoint_api_v1_app_app_id_endpoint_endpoint_id_delete ...'
131
- end
132
- # verify the required parameter 'endpoint_id' is set
133
- if @api_client.config.client_side_validation && endpoint_id.nil?
134
- fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.delete_endpoint_api_v1_app_app_id_endpoint_endpoint_id_delete"
135
- end
136
- if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
137
- fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.delete_endpoint_api_v1_app_app_id_endpoint_endpoint_id_delete, the character length must be smaller than or equal to 256.'
138
- end
139
-
140
- if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
141
- fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.delete_endpoint_api_v1_app_app_id_endpoint_endpoint_id_delete, the character length must be great than or equal to 1.'
146
+ @api_client.config.logger.debug 'Calling API: EndpointApi.v1_endpoint_create ...'
142
147
  end
143
-
144
- pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
145
- if @api_client.config.client_side_validation && endpoint_id !~ pattern
146
- fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.delete_endpoint_api_v1_app_app_id_endpoint_endpoint_id_delete, must conform to the pattern #{pattern}."
147
- end
148
-
149
148
  # verify the required parameter 'app_id' is set
150
149
  if @api_client.config.client_side_validation && app_id.nil?
151
- fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.delete_endpoint_api_v1_app_app_id_endpoint_endpoint_id_delete"
150
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.v1_endpoint_create"
152
151
  end
153
152
  if @api_client.config.client_side_validation && app_id.to_s.length > 256
154
- fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.delete_endpoint_api_v1_app_app_id_endpoint_endpoint_id_delete, the character length must be smaller than or equal to 256.'
153
+ fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_create, the character length must be smaller than or equal to 256.'
155
154
  end
156
155
 
157
156
  if @api_client.config.client_side_validation && app_id.to_s.length < 1
158
- fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.delete_endpoint_api_v1_app_app_id_endpoint_endpoint_id_delete, the character length must be great than or equal to 1.'
157
+ fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_create, the character length must be great than or equal to 1.'
159
158
  end
160
159
 
161
160
  pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
162
161
  if @api_client.config.client_side_validation && app_id !~ pattern
163
- fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.delete_endpoint_api_v1_app_app_id_endpoint_endpoint_id_delete, must conform to the pattern #{pattern}."
162
+ fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.v1_endpoint_create, must conform to the pattern #{pattern}."
164
163
  end
165
164
 
165
+ # verify the required parameter 'endpoint_in' is set
166
+ if @api_client.config.client_side_validation && endpoint_in.nil?
167
+ fail ArgumentError, "Missing the required parameter 'endpoint_in' when calling EndpointApi.v1_endpoint_create"
168
+ end
166
169
  # resource path
167
- local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/'.sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s)).sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
170
+ local_var_path = '/api/v1/app/{app_id}/endpoint/'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
168
171
 
169
172
  # query parameters
170
173
  query_params = opts[:query_params] || {}
@@ -173,22 +176,24 @@ module Svix
173
176
  header_params = opts[:header_params] || {}
174
177
  # HTTP header 'Accept' (if needed)
175
178
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
179
+ # HTTP header 'Content-Type'
180
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
176
181
  header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
177
182
 
178
183
  # form parameters
179
184
  form_params = opts[:form_params] || {}
180
185
 
181
186
  # http body (model)
182
- post_body = opts[:debug_body]
187
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(endpoint_in)
183
188
 
184
189
  # return_type
185
- return_type = opts[:debug_return_type]
190
+ return_type = opts[:debug_return_type] || 'EndpointOut'
186
191
 
187
192
  # auth_names
188
193
  auth_names = opts[:debug_auth_names] || ['HTTPBearer']
189
194
 
190
195
  new_options = opts.merge(
191
- :operation => :"EndpointApi.delete_endpoint_api_v1_app_app_id_endpoint_endpoint_id_delete",
196
+ :operation => :"EndpointApi.v1_endpoint_create",
192
197
  :header_params => header_params,
193
198
  :query_params => query_params,
194
199
  :form_params => form_params,
@@ -197,72 +202,70 @@ module Svix
197
202
  :return_type => return_type
198
203
  )
199
204
 
200
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
205
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
201
206
  if @api_client.config.debugging
202
- @api_client.config.logger.debug "API called: EndpointApi#delete_endpoint_api_v1_app_app_id_endpoint_endpoint_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
207
+ @api_client.config.logger.debug "API called: EndpointApi#v1_endpoint_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
203
208
  end
204
209
  return data, status_code, headers
205
210
  end
206
211
 
207
- # Get Endpoint
208
- # Get an application.
209
- # @param endpoint_id [String]
210
- # @param app_id [String]
212
+ # Delete Endpoint
213
+ # Delete an endpoint.
214
+ # @param app_id [String] The app&#39;s ID or UID
215
+ # @param endpoint_id [String] The ep&#39;s ID or UID
211
216
  # @param [Hash] opts the optional parameters
212
- # @option opts [String] :idempotency_key The request&#39;s idempotency key
213
- # @return [EndpointOut]
214
- def get_endpoint_api_v1_app_app_id_endpoint_endpoint_id_get(endpoint_id, app_id, opts = {})
215
- data, _status_code, _headers = get_endpoint_api_v1_app_app_id_endpoint_endpoint_id_get_with_http_info(endpoint_id, app_id, opts)
216
- data
217
+ # @return [nil]
218
+ def v1_endpoint_delete(app_id, endpoint_id, opts = {})
219
+ v1_endpoint_delete_with_http_info(app_id, endpoint_id, opts)
220
+ nil
217
221
  end
218
222
 
219
- # Get Endpoint
220
- # Get an application.
221
- # @param endpoint_id [String]
222
- # @param app_id [String]
223
+ # Delete Endpoint
224
+ # Delete an endpoint.
225
+ # @param app_id [String] The app&#39;s ID or UID
226
+ # @param endpoint_id [String] The ep&#39;s ID or UID
223
227
  # @param [Hash] opts the optional parameters
224
- # @option opts [String] :idempotency_key The request&#39;s idempotency key
225
- # @return [Array<(EndpointOut, Integer, Hash)>] EndpointOut data, response status code and response headers
226
- def get_endpoint_api_v1_app_app_id_endpoint_endpoint_id_get_with_http_info(endpoint_id, app_id, opts = {})
228
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
229
+ def v1_endpoint_delete_with_http_info(app_id, endpoint_id, opts = {})
227
230
  if @api_client.config.debugging
228
- @api_client.config.logger.debug 'Calling API: EndpointApi.get_endpoint_api_v1_app_app_id_endpoint_endpoint_id_get ...'
231
+ @api_client.config.logger.debug 'Calling API: EndpointApi.v1_endpoint_delete ...'
229
232
  end
230
- # verify the required parameter 'endpoint_id' is set
231
- if @api_client.config.client_side_validation && endpoint_id.nil?
232
- fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.get_endpoint_api_v1_app_app_id_endpoint_endpoint_id_get"
233
+ # verify the required parameter 'app_id' is set
234
+ if @api_client.config.client_side_validation && app_id.nil?
235
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.v1_endpoint_delete"
233
236
  end
234
- if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
235
- fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.get_endpoint_api_v1_app_app_id_endpoint_endpoint_id_get, the character length must be smaller than or equal to 256.'
237
+ if @api_client.config.client_side_validation && app_id.to_s.length > 256
238
+ fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_delete, the character length must be smaller than or equal to 256.'
236
239
  end
237
240
 
238
- if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
239
- fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.get_endpoint_api_v1_app_app_id_endpoint_endpoint_id_get, the character length must be great than or equal to 1.'
241
+ if @api_client.config.client_side_validation && app_id.to_s.length < 1
242
+ fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_delete, the character length must be great than or equal to 1.'
240
243
  end
241
244
 
242
245
  pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
243
- if @api_client.config.client_side_validation && endpoint_id !~ pattern
244
- fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.get_endpoint_api_v1_app_app_id_endpoint_endpoint_id_get, must conform to the pattern #{pattern}."
246
+ if @api_client.config.client_side_validation && app_id !~ pattern
247
+ fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.v1_endpoint_delete, must conform to the pattern #{pattern}."
245
248
  end
246
249
 
247
- # verify the required parameter 'app_id' is set
248
- if @api_client.config.client_side_validation && app_id.nil?
249
- fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.get_endpoint_api_v1_app_app_id_endpoint_endpoint_id_get"
250
+ # verify the required parameter 'endpoint_id' is set
251
+ if @api_client.config.client_side_validation && endpoint_id.nil?
252
+ fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.v1_endpoint_delete"
250
253
  end
251
- if @api_client.config.client_side_validation && app_id.to_s.length > 256
252
- fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.get_endpoint_api_v1_app_app_id_endpoint_endpoint_id_get, the character length must be smaller than or equal to 256.'
254
+ if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
255
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_delete, the character length must be smaller than or equal to 256.'
253
256
  end
254
257
 
255
- if @api_client.config.client_side_validation && app_id.to_s.length < 1
256
- fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.get_endpoint_api_v1_app_app_id_endpoint_endpoint_id_get, the character length must be great than or equal to 1.'
258
+ if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
259
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_delete, the character length must be great than or equal to 1.'
257
260
  end
258
261
 
259
262
  pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
260
- if @api_client.config.client_side_validation && app_id !~ pattern
261
- fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.get_endpoint_api_v1_app_app_id_endpoint_endpoint_id_get, must conform to the pattern #{pattern}."
263
+ if @api_client.config.client_side_validation && endpoint_id !~ pattern
264
+ fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.v1_endpoint_delete, must conform to the pattern #{pattern}."
262
265
  end
263
266
 
264
267
  # resource path
265
- local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/'.sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s)).sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
268
+ 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))
266
269
 
267
270
  # query parameters
268
271
  query_params = opts[:query_params] || {}
@@ -271,7 +274,6 @@ module Svix
271
274
  header_params = opts[:header_params] || {}
272
275
  # HTTP header 'Accept' (if needed)
273
276
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
274
- header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
275
277
 
276
278
  # form parameters
277
279
  form_params = opts[:form_params] || {}
@@ -280,13 +282,13 @@ module Svix
280
282
  post_body = opts[:debug_body]
281
283
 
282
284
  # return_type
283
- return_type = opts[:debug_return_type] || 'EndpointOut'
285
+ return_type = opts[:debug_return_type]
284
286
 
285
287
  # auth_names
286
288
  auth_names = opts[:debug_auth_names] || ['HTTPBearer']
287
289
 
288
290
  new_options = opts.merge(
289
- :operation => :"EndpointApi.get_endpoint_api_v1_app_app_id_endpoint_endpoint_id_get",
291
+ :operation => :"EndpointApi.v1_endpoint_delete",
290
292
  :header_params => header_params,
291
293
  :query_params => query_params,
292
294
  :form_params => form_params,
@@ -295,72 +297,70 @@ module Svix
295
297
  :return_type => return_type
296
298
  )
297
299
 
298
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
300
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
299
301
  if @api_client.config.debugging
300
- @api_client.config.logger.debug "API called: EndpointApi#get_endpoint_api_v1_app_app_id_endpoint_endpoint_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
302
+ @api_client.config.logger.debug "API called: EndpointApi#v1_endpoint_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
301
303
  end
302
304
  return data, status_code, headers
303
305
  end
304
306
 
305
- # Get Endpoint Headers
306
- # Get the additional headers to be sent with the webhook
307
- # @param endpoint_id [String]
308
- # @param app_id [String]
307
+ # Get Endpoint
308
+ # Get an endpoint.
309
+ # @param app_id [String] The app&#39;s ID or UID
310
+ # @param endpoint_id [String] The ep&#39;s ID or UID
309
311
  # @param [Hash] opts the optional parameters
310
- # @option opts [String] :idempotency_key The request&#39;s idempotency key
311
- # @return [EndpointHeadersOut]
312
- def get_endpoint_headers_api_v1_app_app_id_endpoint_endpoint_id_headers_get(endpoint_id, app_id, opts = {})
313
- data, _status_code, _headers = get_endpoint_headers_api_v1_app_app_id_endpoint_endpoint_id_headers_get_with_http_info(endpoint_id, app_id, opts)
312
+ # @return [EndpointOut]
313
+ def v1_endpoint_get(app_id, endpoint_id, opts = {})
314
+ data, _status_code, _headers = v1_endpoint_get_with_http_info(app_id, endpoint_id, opts)
314
315
  data
315
316
  end
316
317
 
317
- # Get Endpoint Headers
318
- # Get the additional headers to be sent with the webhook
319
- # @param endpoint_id [String]
320
- # @param app_id [String]
318
+ # Get Endpoint
319
+ # Get an endpoint.
320
+ # @param app_id [String] The app&#39;s ID or UID
321
+ # @param endpoint_id [String] The ep&#39;s ID or UID
321
322
  # @param [Hash] opts the optional parameters
322
- # @option opts [String] :idempotency_key The request&#39;s idempotency key
323
- # @return [Array<(EndpointHeadersOut, Integer, Hash)>] EndpointHeadersOut data, response status code and response headers
324
- def get_endpoint_headers_api_v1_app_app_id_endpoint_endpoint_id_headers_get_with_http_info(endpoint_id, app_id, opts = {})
323
+ # @return [Array<(EndpointOut, Integer, Hash)>] EndpointOut data, response status code and response headers
324
+ def v1_endpoint_get_with_http_info(app_id, endpoint_id, opts = {})
325
325
  if @api_client.config.debugging
326
- @api_client.config.logger.debug 'Calling API: EndpointApi.get_endpoint_headers_api_v1_app_app_id_endpoint_endpoint_id_headers_get ...'
326
+ @api_client.config.logger.debug 'Calling API: EndpointApi.v1_endpoint_get ...'
327
327
  end
328
- # verify the required parameter 'endpoint_id' is set
329
- if @api_client.config.client_side_validation && endpoint_id.nil?
330
- fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.get_endpoint_headers_api_v1_app_app_id_endpoint_endpoint_id_headers_get"
328
+ # verify the required parameter 'app_id' is set
329
+ if @api_client.config.client_side_validation && app_id.nil?
330
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.v1_endpoint_get"
331
331
  end
332
- if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
333
- fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.get_endpoint_headers_api_v1_app_app_id_endpoint_endpoint_id_headers_get, the character length must be smaller than or equal to 256.'
332
+ if @api_client.config.client_side_validation && app_id.to_s.length > 256
333
+ fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_get, the character length must be smaller than or equal to 256.'
334
334
  end
335
335
 
336
- if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
337
- fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.get_endpoint_headers_api_v1_app_app_id_endpoint_endpoint_id_headers_get, the character length must be great than or equal to 1.'
336
+ if @api_client.config.client_side_validation && app_id.to_s.length < 1
337
+ fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_get, the character length must be great than or equal to 1.'
338
338
  end
339
339
 
340
340
  pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
341
- if @api_client.config.client_side_validation && endpoint_id !~ pattern
342
- fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.get_endpoint_headers_api_v1_app_app_id_endpoint_endpoint_id_headers_get, must conform to the pattern #{pattern}."
341
+ if @api_client.config.client_side_validation && app_id !~ pattern
342
+ fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.v1_endpoint_get, must conform to the pattern #{pattern}."
343
343
  end
344
344
 
345
- # verify the required parameter 'app_id' is set
346
- if @api_client.config.client_side_validation && app_id.nil?
347
- fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.get_endpoint_headers_api_v1_app_app_id_endpoint_endpoint_id_headers_get"
345
+ # verify the required parameter 'endpoint_id' is set
346
+ if @api_client.config.client_side_validation && endpoint_id.nil?
347
+ fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.v1_endpoint_get"
348
348
  end
349
- if @api_client.config.client_side_validation && app_id.to_s.length > 256
350
- fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.get_endpoint_headers_api_v1_app_app_id_endpoint_endpoint_id_headers_get, the character length must be smaller than or equal to 256.'
349
+ if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
350
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_get, the character length must be smaller than or equal to 256.'
351
351
  end
352
352
 
353
- if @api_client.config.client_side_validation && app_id.to_s.length < 1
354
- fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.get_endpoint_headers_api_v1_app_app_id_endpoint_endpoint_id_headers_get, the character length must be great than or equal to 1.'
353
+ if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
354
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_get, the character length must be great than or equal to 1.'
355
355
  end
356
356
 
357
357
  pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
358
- if @api_client.config.client_side_validation && app_id !~ pattern
359
- fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.get_endpoint_headers_api_v1_app_app_id_endpoint_endpoint_id_headers_get, must conform to the pattern #{pattern}."
358
+ if @api_client.config.client_side_validation && endpoint_id !~ pattern
359
+ fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.v1_endpoint_get, must conform to the pattern #{pattern}."
360
360
  end
361
361
 
362
362
  # resource path
363
- local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/headers/'.sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s)).sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
363
+ 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))
364
364
 
365
365
  # query parameters
366
366
  query_params = opts[:query_params] || {}
@@ -369,7 +369,6 @@ module Svix
369
369
  header_params = opts[:header_params] || {}
370
370
  # HTTP header 'Accept' (if needed)
371
371
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
372
- header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
373
372
 
374
373
  # form parameters
375
374
  form_params = opts[:form_params] || {}
@@ -378,13 +377,13 @@ module Svix
378
377
  post_body = opts[:debug_body]
379
378
 
380
379
  # return_type
381
- return_type = opts[:debug_return_type] || 'EndpointHeadersOut'
380
+ return_type = opts[:debug_return_type] || 'EndpointOut'
382
381
 
383
382
  # auth_names
384
383
  auth_names = opts[:debug_auth_names] || ['HTTPBearer']
385
384
 
386
385
  new_options = opts.merge(
387
- :operation => :"EndpointApi.get_endpoint_headers_api_v1_app_app_id_endpoint_endpoint_id_headers_get",
386
+ :operation => :"EndpointApi.v1_endpoint_get",
388
387
  :header_params => header_params,
389
388
  :query_params => query_params,
390
389
  :form_params => form_params,
@@ -395,70 +394,68 @@ module Svix
395
394
 
396
395
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
397
396
  if @api_client.config.debugging
398
- @api_client.config.logger.debug "API called: EndpointApi#get_endpoint_headers_api_v1_app_app_id_endpoint_endpoint_id_headers_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
397
+ @api_client.config.logger.debug "API called: EndpointApi#v1_endpoint_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
399
398
  end
400
399
  return data, status_code, headers
401
400
  end
402
401
 
403
- # Get Endpoint Secret
404
- # 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/).
405
- # @param endpoint_id [String]
406
- # @param app_id [String]
402
+ # Get Endpoint Headers
403
+ # Get the additional headers to be sent with the webhook
404
+ # @param app_id [String] The app&#39;s ID or UID
405
+ # @param endpoint_id [String] The ep&#39;s ID or UID
407
406
  # @param [Hash] opts the optional parameters
408
- # @option opts [String] :idempotency_key The request&#39;s idempotency key
409
- # @return [EndpointSecretOut]
410
- def get_endpoint_secret_api_v1_app_app_id_endpoint_endpoint_id_secret_get(endpoint_id, app_id, opts = {})
411
- data, _status_code, _headers = get_endpoint_secret_api_v1_app_app_id_endpoint_endpoint_id_secret_get_with_http_info(endpoint_id, app_id, opts)
407
+ # @return [EndpointHeadersOut]
408
+ def v1_endpoint_get_headers(app_id, endpoint_id, opts = {})
409
+ data, _status_code, _headers = v1_endpoint_get_headers_with_http_info(app_id, endpoint_id, opts)
412
410
  data
413
411
  end
414
412
 
415
- # Get Endpoint Secret
416
- # 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/).
417
- # @param endpoint_id [String]
418
- # @param app_id [String]
413
+ # Get Endpoint Headers
414
+ # Get the additional headers to be sent with the webhook
415
+ # @param app_id [String] The app&#39;s ID or UID
416
+ # @param endpoint_id [String] The ep&#39;s ID or UID
419
417
  # @param [Hash] opts the optional parameters
420
- # @option opts [String] :idempotency_key The request&#39;s idempotency key
421
- # @return [Array<(EndpointSecretOut, Integer, Hash)>] EndpointSecretOut data, response status code and response headers
422
- def get_endpoint_secret_api_v1_app_app_id_endpoint_endpoint_id_secret_get_with_http_info(endpoint_id, app_id, opts = {})
418
+ # @return [Array<(EndpointHeadersOut, Integer, Hash)>] EndpointHeadersOut data, response status code and response headers
419
+ def v1_endpoint_get_headers_with_http_info(app_id, endpoint_id, opts = {})
423
420
  if @api_client.config.debugging
424
- @api_client.config.logger.debug 'Calling API: EndpointApi.get_endpoint_secret_api_v1_app_app_id_endpoint_endpoint_id_secret_get ...'
421
+ @api_client.config.logger.debug 'Calling API: EndpointApi.v1_endpoint_get_headers ...'
425
422
  end
426
- # verify the required parameter 'endpoint_id' is set
427
- if @api_client.config.client_side_validation && endpoint_id.nil?
428
- fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.get_endpoint_secret_api_v1_app_app_id_endpoint_endpoint_id_secret_get"
423
+ # verify the required parameter 'app_id' is set
424
+ if @api_client.config.client_side_validation && app_id.nil?
425
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.v1_endpoint_get_headers"
429
426
  end
430
- if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
431
- fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.get_endpoint_secret_api_v1_app_app_id_endpoint_endpoint_id_secret_get, the character length must be smaller than or equal to 256.'
427
+ if @api_client.config.client_side_validation && app_id.to_s.length > 256
428
+ fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_get_headers, the character length must be smaller than or equal to 256.'
432
429
  end
433
430
 
434
- if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
435
- fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.get_endpoint_secret_api_v1_app_app_id_endpoint_endpoint_id_secret_get, the character length must be great than or equal to 1.'
431
+ if @api_client.config.client_side_validation && app_id.to_s.length < 1
432
+ fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_get_headers, the character length must be great than or equal to 1.'
436
433
  end
437
434
 
438
435
  pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
439
- if @api_client.config.client_side_validation && endpoint_id !~ pattern
440
- fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.get_endpoint_secret_api_v1_app_app_id_endpoint_endpoint_id_secret_get, must conform to the pattern #{pattern}."
436
+ if @api_client.config.client_side_validation && app_id !~ pattern
437
+ fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.v1_endpoint_get_headers, must conform to the pattern #{pattern}."
441
438
  end
442
439
 
443
- # verify the required parameter 'app_id' is set
444
- if @api_client.config.client_side_validation && app_id.nil?
445
- fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.get_endpoint_secret_api_v1_app_app_id_endpoint_endpoint_id_secret_get"
440
+ # verify the required parameter 'endpoint_id' is set
441
+ if @api_client.config.client_side_validation && endpoint_id.nil?
442
+ fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.v1_endpoint_get_headers"
446
443
  end
447
- if @api_client.config.client_side_validation && app_id.to_s.length > 256
448
- fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.get_endpoint_secret_api_v1_app_app_id_endpoint_endpoint_id_secret_get, the character length must be smaller than or equal to 256.'
444
+ if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
445
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_get_headers, the character length must be smaller than or equal to 256.'
449
446
  end
450
447
 
451
- if @api_client.config.client_side_validation && app_id.to_s.length < 1
452
- fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.get_endpoint_secret_api_v1_app_app_id_endpoint_endpoint_id_secret_get, the character length must be great than or equal to 1.'
448
+ if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
449
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_get_headers, the character length must be great than or equal to 1.'
453
450
  end
454
451
 
455
452
  pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
456
- if @api_client.config.client_side_validation && app_id !~ pattern
457
- fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.get_endpoint_secret_api_v1_app_app_id_endpoint_endpoint_id_secret_get, must conform to the pattern #{pattern}."
453
+ if @api_client.config.client_side_validation && endpoint_id !~ pattern
454
+ fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.v1_endpoint_get_headers, must conform to the pattern #{pattern}."
458
455
  end
459
456
 
460
457
  # resource path
461
- local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/secret/'.sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s)).sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
458
+ 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))
462
459
 
463
460
  # query parameters
464
461
  query_params = opts[:query_params] || {}
@@ -467,7 +464,6 @@ module Svix
467
464
  header_params = opts[:header_params] || {}
468
465
  # HTTP header 'Accept' (if needed)
469
466
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
470
- header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
471
467
 
472
468
  # form parameters
473
469
  form_params = opts[:form_params] || {}
@@ -476,13 +472,13 @@ module Svix
476
472
  post_body = opts[:debug_body]
477
473
 
478
474
  # return_type
479
- return_type = opts[:debug_return_type] || 'EndpointSecretOut'
475
+ return_type = opts[:debug_return_type] || 'EndpointHeadersOut'
480
476
 
481
477
  # auth_names
482
478
  auth_names = opts[:debug_auth_names] || ['HTTPBearer']
483
479
 
484
480
  new_options = opts.merge(
485
- :operation => :"EndpointApi.get_endpoint_secret_api_v1_app_app_id_endpoint_endpoint_id_secret_get",
481
+ :operation => :"EndpointApi.v1_endpoint_get_headers",
486
482
  :header_params => header_params,
487
483
  :query_params => query_params,
488
484
  :form_params => form_params,
@@ -493,70 +489,68 @@ module Svix
493
489
 
494
490
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
495
491
  if @api_client.config.debugging
496
- @api_client.config.logger.debug "API called: EndpointApi#get_endpoint_secret_api_v1_app_app_id_endpoint_endpoint_id_secret_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
492
+ @api_client.config.logger.debug "API called: EndpointApi#v1_endpoint_get_headers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
497
493
  end
498
494
  return data, status_code, headers
499
495
  end
500
496
 
501
- # Get Endpoint Stats
502
- # Get basic statistics for the endpoint.
503
- # @param endpoint_id [String]
504
- # @param app_id [String]
497
+ # Get Endpoint Secret
498
+ # 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/).
499
+ # @param app_id [String] The app&#39;s ID or UID
500
+ # @param endpoint_id [String] The ep&#39;s ID or UID
505
501
  # @param [Hash] opts the optional parameters
506
- # @option opts [String] :idempotency_key The request&#39;s idempotency key
507
- # @return [EndpointStats]
508
- def get_endpoint_stats_api_v1_app_app_id_endpoint_endpoint_id_stats_get(endpoint_id, app_id, opts = {})
509
- data, _status_code, _headers = get_endpoint_stats_api_v1_app_app_id_endpoint_endpoint_id_stats_get_with_http_info(endpoint_id, app_id, opts)
502
+ # @return [EndpointSecretOut]
503
+ def v1_endpoint_get_secret(app_id, endpoint_id, opts = {})
504
+ data, _status_code, _headers = v1_endpoint_get_secret_with_http_info(app_id, endpoint_id, opts)
510
505
  data
511
506
  end
512
507
 
513
- # Get Endpoint Stats
514
- # Get basic statistics for the endpoint.
515
- # @param endpoint_id [String]
516
- # @param app_id [String]
508
+ # Get Endpoint Secret
509
+ # 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/).
510
+ # @param app_id [String] The app&#39;s ID or UID
511
+ # @param endpoint_id [String] The ep&#39;s ID or UID
517
512
  # @param [Hash] opts the optional parameters
518
- # @option opts [String] :idempotency_key The request&#39;s idempotency key
519
- # @return [Array<(EndpointStats, Integer, Hash)>] EndpointStats data, response status code and response headers
520
- def get_endpoint_stats_api_v1_app_app_id_endpoint_endpoint_id_stats_get_with_http_info(endpoint_id, app_id, opts = {})
513
+ # @return [Array<(EndpointSecretOut, Integer, Hash)>] EndpointSecretOut data, response status code and response headers
514
+ def v1_endpoint_get_secret_with_http_info(app_id, endpoint_id, opts = {})
521
515
  if @api_client.config.debugging
522
- @api_client.config.logger.debug 'Calling API: EndpointApi.get_endpoint_stats_api_v1_app_app_id_endpoint_endpoint_id_stats_get ...'
516
+ @api_client.config.logger.debug 'Calling API: EndpointApi.v1_endpoint_get_secret ...'
523
517
  end
524
- # verify the required parameter 'endpoint_id' is set
525
- if @api_client.config.client_side_validation && endpoint_id.nil?
526
- fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.get_endpoint_stats_api_v1_app_app_id_endpoint_endpoint_id_stats_get"
518
+ # verify the required parameter 'app_id' is set
519
+ if @api_client.config.client_side_validation && app_id.nil?
520
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.v1_endpoint_get_secret"
527
521
  end
528
- if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
529
- fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.get_endpoint_stats_api_v1_app_app_id_endpoint_endpoint_id_stats_get, the character length must be smaller than or equal to 256.'
522
+ if @api_client.config.client_side_validation && app_id.to_s.length > 256
523
+ fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_get_secret, the character length must be smaller than or equal to 256.'
530
524
  end
531
525
 
532
- if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
533
- fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.get_endpoint_stats_api_v1_app_app_id_endpoint_endpoint_id_stats_get, the character length must be great than or equal to 1.'
526
+ if @api_client.config.client_side_validation && app_id.to_s.length < 1
527
+ fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_get_secret, the character length must be great than or equal to 1.'
534
528
  end
535
529
 
536
530
  pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
537
- if @api_client.config.client_side_validation && endpoint_id !~ pattern
538
- fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.get_endpoint_stats_api_v1_app_app_id_endpoint_endpoint_id_stats_get, must conform to the pattern #{pattern}."
531
+ if @api_client.config.client_side_validation && app_id !~ pattern
532
+ fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.v1_endpoint_get_secret, must conform to the pattern #{pattern}."
539
533
  end
540
534
 
541
- # verify the required parameter 'app_id' is set
542
- if @api_client.config.client_side_validation && app_id.nil?
543
- fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.get_endpoint_stats_api_v1_app_app_id_endpoint_endpoint_id_stats_get"
535
+ # verify the required parameter 'endpoint_id' is set
536
+ if @api_client.config.client_side_validation && endpoint_id.nil?
537
+ fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.v1_endpoint_get_secret"
544
538
  end
545
- if @api_client.config.client_side_validation && app_id.to_s.length > 256
546
- fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.get_endpoint_stats_api_v1_app_app_id_endpoint_endpoint_id_stats_get, the character length must be smaller than or equal to 256.'
539
+ if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
540
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_get_secret, the character length must be smaller than or equal to 256.'
547
541
  end
548
542
 
549
- if @api_client.config.client_side_validation && app_id.to_s.length < 1
550
- fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.get_endpoint_stats_api_v1_app_app_id_endpoint_endpoint_id_stats_get, the character length must be great than or equal to 1.'
543
+ if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
544
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_get_secret, the character length must be great than or equal to 1.'
551
545
  end
552
546
 
553
547
  pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
554
- if @api_client.config.client_side_validation && app_id !~ pattern
555
- fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.get_endpoint_stats_api_v1_app_app_id_endpoint_endpoint_id_stats_get, must conform to the pattern #{pattern}."
548
+ if @api_client.config.client_side_validation && endpoint_id !~ pattern
549
+ fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.v1_endpoint_get_secret, must conform to the pattern #{pattern}."
556
550
  end
557
551
 
558
552
  # resource path
559
- local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/stats/'.sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s)).sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
553
+ 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))
560
554
 
561
555
  # query parameters
562
556
  query_params = opts[:query_params] || {}
@@ -565,7 +559,6 @@ module Svix
565
559
  header_params = opts[:header_params] || {}
566
560
  # HTTP header 'Accept' (if needed)
567
561
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
568
- header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
569
562
 
570
563
  # form parameters
571
564
  form_params = opts[:form_params] || {}
@@ -574,13 +567,13 @@ module Svix
574
567
  post_body = opts[:debug_body]
575
568
 
576
569
  # return_type
577
- return_type = opts[:debug_return_type] || 'EndpointStats'
570
+ return_type = opts[:debug_return_type] || 'EndpointSecretOut'
578
571
 
579
572
  # auth_names
580
573
  auth_names = opts[:debug_auth_names] || ['HTTPBearer']
581
574
 
582
575
  new_options = opts.merge(
583
- :operation => :"EndpointApi.get_endpoint_stats_api_v1_app_app_id_endpoint_endpoint_id_stats_get",
576
+ :operation => :"EndpointApi.v1_endpoint_get_secret",
584
577
  :header_params => header_params,
585
578
  :query_params => query_params,
586
579
  :form_params => form_params,
@@ -591,79 +584,82 @@ module Svix
591
584
 
592
585
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
593
586
  if @api_client.config.debugging
594
- @api_client.config.logger.debug "API called: EndpointApi#get_endpoint_stats_api_v1_app_app_id_endpoint_endpoint_id_stats_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
587
+ @api_client.config.logger.debug "API called: EndpointApi#v1_endpoint_get_secret\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
595
588
  end
596
589
  return data, status_code, headers
597
590
  end
598
591
 
599
- # Get Endpoint Transformation
600
- # Get the transformation code associated with this endpoint
601
- # @param endpoint_id [String]
602
- # @param app_id [String]
592
+ # Endpoint Stats
593
+ # Get basic statistics for the endpoint.
594
+ # @param app_id [String] The app&#39;s ID or UID
595
+ # @param endpoint_id [String] The ep&#39;s ID or UID
603
596
  # @param [Hash] opts the optional parameters
604
- # @option opts [String] :idempotency_key The request&#39;s idempotency key
605
- # @return [EndpointTransformationOut]
606
- def get_endpoint_transformation_api_v1_app_app_id_endpoint_endpoint_id_transformation_get(endpoint_id, app_id, opts = {})
607
- data, _status_code, _headers = get_endpoint_transformation_api_v1_app_app_id_endpoint_endpoint_id_transformation_get_with_http_info(endpoint_id, app_id, opts)
597
+ # @option opts [Time] :since
598
+ # @option opts [Time] :_until
599
+ # @return [EndpointStats]
600
+ def v1_endpoint_get_stats(app_id, endpoint_id, opts = {})
601
+ data, _status_code, _headers = v1_endpoint_get_stats_with_http_info(app_id, endpoint_id, opts)
608
602
  data
609
603
  end
610
604
 
611
- # Get Endpoint Transformation
612
- # Get the transformation code associated with this endpoint
613
- # @param endpoint_id [String]
614
- # @param app_id [String]
605
+ # Endpoint Stats
606
+ # Get basic statistics for the endpoint.
607
+ # @param app_id [String] The app&#39;s ID or UID
608
+ # @param endpoint_id [String] The ep&#39;s ID or UID
615
609
  # @param [Hash] opts the optional parameters
616
- # @option opts [String] :idempotency_key The request&#39;s idempotency key
617
- # @return [Array<(EndpointTransformationOut, Integer, Hash)>] EndpointTransformationOut data, response status code and response headers
618
- def get_endpoint_transformation_api_v1_app_app_id_endpoint_endpoint_id_transformation_get_with_http_info(endpoint_id, app_id, opts = {})
610
+ # @option opts [Time] :since
611
+ # @option opts [Time] :_until
612
+ # @return [Array<(EndpointStats, Integer, Hash)>] EndpointStats data, response status code and response headers
613
+ def v1_endpoint_get_stats_with_http_info(app_id, endpoint_id, opts = {})
619
614
  if @api_client.config.debugging
620
- @api_client.config.logger.debug 'Calling API: EndpointApi.get_endpoint_transformation_api_v1_app_app_id_endpoint_endpoint_id_transformation_get ...'
615
+ @api_client.config.logger.debug 'Calling API: EndpointApi.v1_endpoint_get_stats ...'
621
616
  end
622
- # verify the required parameter 'endpoint_id' is set
623
- if @api_client.config.client_side_validation && endpoint_id.nil?
624
- fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.get_endpoint_transformation_api_v1_app_app_id_endpoint_endpoint_id_transformation_get"
617
+ # verify the required parameter 'app_id' is set
618
+ if @api_client.config.client_side_validation && app_id.nil?
619
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.v1_endpoint_get_stats"
625
620
  end
626
- if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
627
- fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.get_endpoint_transformation_api_v1_app_app_id_endpoint_endpoint_id_transformation_get, the character length must be smaller than or equal to 256.'
621
+ if @api_client.config.client_side_validation && app_id.to_s.length > 256
622
+ fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_get_stats, the character length must be smaller than or equal to 256.'
628
623
  end
629
624
 
630
- if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
631
- fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.get_endpoint_transformation_api_v1_app_app_id_endpoint_endpoint_id_transformation_get, the character length must be great than or equal to 1.'
625
+ if @api_client.config.client_side_validation && app_id.to_s.length < 1
626
+ fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_get_stats, the character length must be great than or equal to 1.'
632
627
  end
633
628
 
634
629
  pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
635
- if @api_client.config.client_side_validation && endpoint_id !~ pattern
636
- fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.get_endpoint_transformation_api_v1_app_app_id_endpoint_endpoint_id_transformation_get, must conform to the pattern #{pattern}."
630
+ if @api_client.config.client_side_validation && app_id !~ pattern
631
+ fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.v1_endpoint_get_stats, must conform to the pattern #{pattern}."
637
632
  end
638
633
 
639
- # verify the required parameter 'app_id' is set
640
- if @api_client.config.client_side_validation && app_id.nil?
641
- fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.get_endpoint_transformation_api_v1_app_app_id_endpoint_endpoint_id_transformation_get"
634
+ # verify the required parameter 'endpoint_id' is set
635
+ if @api_client.config.client_side_validation && endpoint_id.nil?
636
+ fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.v1_endpoint_get_stats"
642
637
  end
643
- if @api_client.config.client_side_validation && app_id.to_s.length > 256
644
- fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.get_endpoint_transformation_api_v1_app_app_id_endpoint_endpoint_id_transformation_get, the character length must be smaller than or equal to 256.'
638
+ if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
639
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_get_stats, the character length must be smaller than or equal to 256.'
645
640
  end
646
641
 
647
- if @api_client.config.client_side_validation && app_id.to_s.length < 1
648
- fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.get_endpoint_transformation_api_v1_app_app_id_endpoint_endpoint_id_transformation_get, the character length must be great than or equal to 1.'
642
+ if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
643
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_get_stats, the character length must be great than or equal to 1.'
649
644
  end
650
645
 
651
646
  pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
652
- if @api_client.config.client_side_validation && app_id !~ pattern
653
- fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.get_endpoint_transformation_api_v1_app_app_id_endpoint_endpoint_id_transformation_get, must conform to the pattern #{pattern}."
647
+ if @api_client.config.client_side_validation && endpoint_id !~ pattern
648
+ fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.v1_endpoint_get_stats, must conform to the pattern #{pattern}."
654
649
  end
655
650
 
656
651
  # resource path
657
- local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/transformation/'.sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s)).sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
652
+ 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))
658
653
 
659
654
  # query parameters
660
655
  query_params = opts[:query_params] || {}
656
+ query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
657
+ query_params[:'until'] = opts[:'_until'] if !opts[:'_until'].nil?
661
658
 
662
659
  # header parameters
663
660
  header_params = opts[:header_params] || {}
664
661
  # HTTP header 'Accept' (if needed)
665
662
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
666
- header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
667
663
 
668
664
  # form parameters
669
665
  form_params = opts[:form_params] || {}
@@ -672,13 +668,13 @@ module Svix
672
668
  post_body = opts[:debug_body]
673
669
 
674
670
  # return_type
675
- return_type = opts[:debug_return_type] || 'EndpointTransformationOut'
671
+ return_type = opts[:debug_return_type] || 'EndpointStats'
676
672
 
677
673
  # auth_names
678
674
  auth_names = opts[:debug_auth_names] || ['HTTPBearer']
679
675
 
680
676
  new_options = opts.merge(
681
- :operation => :"EndpointApi.get_endpoint_transformation_api_v1_app_app_id_endpoint_endpoint_id_transformation_get",
677
+ :operation => :"EndpointApi.v1_endpoint_get_stats",
682
678
  :header_params => header_params,
683
679
  :query_params => query_params,
684
680
  :form_params => form_params,
@@ -689,57 +685,59 @@ module Svix
689
685
 
690
686
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
691
687
  if @api_client.config.debugging
692
- @api_client.config.logger.debug "API called: EndpointApi#get_endpoint_transformation_api_v1_app_app_id_endpoint_endpoint_id_transformation_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
688
+ @api_client.config.logger.debug "API called: EndpointApi#v1_endpoint_get_stats\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
693
689
  end
694
690
  return data, status_code, headers
695
691
  end
696
692
 
697
693
  # List Endpoints
698
694
  # List the application's endpoints.
699
- # @param app_id [String]
695
+ # @param app_id [String] The app&#39;s ID or UID
700
696
  # @param [Hash] opts the optional parameters
701
- # @option opts [String] :iterator
702
- # @option opts [Integer] :limit (default to 50)
697
+ # @option opts [Integer] :limit
698
+ # @option opts [String] :iterator The ep&#39;s ID
703
699
  # @option opts [Ordering] :order
704
- # @option opts [String] :idempotency_key The request&#39;s idempotency key
705
700
  # @return [ListResponseEndpointOut]
706
- def list_endpoints_api_v1_app_app_id_endpoint_get(app_id, opts = {})
707
- data, _status_code, _headers = list_endpoints_api_v1_app_app_id_endpoint_get_with_http_info(app_id, opts)
701
+ def v1_endpoint_list(app_id, opts = {})
702
+ data, _status_code, _headers = v1_endpoint_list_with_http_info(app_id, opts)
708
703
  data
709
704
  end
710
705
 
711
706
  # List Endpoints
712
707
  # List the application&#39;s endpoints.
713
- # @param app_id [String]
708
+ # @param app_id [String] The app&#39;s ID or UID
714
709
  # @param [Hash] opts the optional parameters
715
- # @option opts [String] :iterator
716
710
  # @option opts [Integer] :limit
711
+ # @option opts [String] :iterator The ep&#39;s ID
717
712
  # @option opts [Ordering] :order
718
- # @option opts [String] :idempotency_key The request&#39;s idempotency key
719
713
  # @return [Array<(ListResponseEndpointOut, Integer, Hash)>] ListResponseEndpointOut data, response status code and response headers
720
- def list_endpoints_api_v1_app_app_id_endpoint_get_with_http_info(app_id, opts = {})
714
+ def v1_endpoint_list_with_http_info(app_id, opts = {})
721
715
  if @api_client.config.debugging
722
- @api_client.config.logger.debug 'Calling API: EndpointApi.list_endpoints_api_v1_app_app_id_endpoint_get ...'
716
+ @api_client.config.logger.debug 'Calling API: EndpointApi.v1_endpoint_list ...'
723
717
  end
724
718
  # verify the required parameter 'app_id' is set
725
719
  if @api_client.config.client_side_validation && app_id.nil?
726
- fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.list_endpoints_api_v1_app_app_id_endpoint_get"
720
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.v1_endpoint_list"
727
721
  end
728
722
  if @api_client.config.client_side_validation && app_id.to_s.length > 256
729
- fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.list_endpoints_api_v1_app_app_id_endpoint_get, the character length must be smaller than or equal to 256.'
723
+ fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_list, the character length must be smaller than or equal to 256.'
730
724
  end
731
725
 
732
726
  if @api_client.config.client_side_validation && app_id.to_s.length < 1
733
- fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.list_endpoints_api_v1_app_app_id_endpoint_get, the character length must be great than or equal to 1.'
727
+ fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_list, the character length must be great than or equal to 1.'
734
728
  end
735
729
 
736
730
  pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
737
731
  if @api_client.config.client_side_validation && app_id !~ pattern
738
- fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.list_endpoints_api_v1_app_app_id_endpoint_get, must conform to the pattern #{pattern}."
732
+ fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.v1_endpoint_list, must conform to the pattern #{pattern}."
739
733
  end
740
734
 
741
735
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 250
742
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling EndpointApi.list_endpoints_api_v1_app_app_id_endpoint_get, must be smaller than or equal to 250.'
736
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling EndpointApi.v1_endpoint_list, must be smaller than or equal to 250.'
737
+ end
738
+
739
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
740
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling EndpointApi.v1_endpoint_list, must be greater than or equal to 1.'
743
741
  end
744
742
 
745
743
  # resource path
@@ -747,15 +745,14 @@ module Svix
747
745
 
748
746
  # query parameters
749
747
  query_params = opts[:query_params] || {}
750
- query_params[:'iterator'] = opts[:'iterator'] if !opts[:'iterator'].nil?
751
748
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
749
+ query_params[:'iterator'] = opts[:'iterator'] if !opts[:'iterator'].nil?
752
750
  query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
753
751
 
754
752
  # header parameters
755
753
  header_params = opts[:header_params] || {}
756
754
  # HTTP header 'Accept' (if needed)
757
755
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
758
- header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
759
756
 
760
757
  # form parameters
761
758
  form_params = opts[:form_params] || {}
@@ -770,7 +767,7 @@ module Svix
770
767
  auth_names = opts[:debug_auth_names] || ['HTTPBearer']
771
768
 
772
769
  new_options = opts.merge(
773
- :operation => :"EndpointApi.list_endpoints_api_v1_app_app_id_endpoint_get",
770
+ :operation => :"EndpointApi.v1_endpoint_list",
774
771
  :header_params => header_params,
775
772
  :query_params => query_params,
776
773
  :form_params => form_params,
@@ -781,73 +778,71 @@ module Svix
781
778
 
782
779
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
783
780
  if @api_client.config.debugging
784
- @api_client.config.logger.debug "API called: EndpointApi#list_endpoints_api_v1_app_app_id_endpoint_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
781
+ @api_client.config.logger.debug "API called: EndpointApi#v1_endpoint_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
785
782
  end
786
783
  return data, status_code, headers
787
784
  end
788
785
 
789
786
  # Patch Endpoint Headers
790
787
  # Partially set the additional headers to be sent with the webhook
791
- # @param app_id [String]
792
- # @param endpoint_id [String]
788
+ # @param app_id [String] The app&#39;s ID or UID
789
+ # @param endpoint_id [String] The ep&#39;s ID or UID
793
790
  # @param endpoint_headers_patch_in [EndpointHeadersPatchIn]
794
791
  # @param [Hash] opts the optional parameters
795
- # @option opts [String] :idempotency_key The request&#39;s idempotency key
796
792
  # @return [nil]
797
- def patch_endpoint_headers_api_v1_app_app_id_endpoint_endpoint_id_headers_patch(app_id, endpoint_id, endpoint_headers_patch_in, opts = {})
798
- patch_endpoint_headers_api_v1_app_app_id_endpoint_endpoint_id_headers_patch_with_http_info(app_id, endpoint_id, endpoint_headers_patch_in, opts)
793
+ def v1_endpoint_patch_headers(app_id, endpoint_id, endpoint_headers_patch_in, opts = {})
794
+ v1_endpoint_patch_headers_with_http_info(app_id, endpoint_id, endpoint_headers_patch_in, opts)
799
795
  nil
800
796
  end
801
797
 
802
798
  # Patch Endpoint Headers
803
799
  # Partially set the additional headers to be sent with the webhook
804
- # @param app_id [String]
805
- # @param endpoint_id [String]
800
+ # @param app_id [String] The app&#39;s ID or UID
801
+ # @param endpoint_id [String] The ep&#39;s ID or UID
806
802
  # @param endpoint_headers_patch_in [EndpointHeadersPatchIn]
807
803
  # @param [Hash] opts the optional parameters
808
- # @option opts [String] :idempotency_key The request&#39;s idempotency key
809
804
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
810
- def patch_endpoint_headers_api_v1_app_app_id_endpoint_endpoint_id_headers_patch_with_http_info(app_id, endpoint_id, endpoint_headers_patch_in, opts = {})
805
+ def v1_endpoint_patch_headers_with_http_info(app_id, endpoint_id, endpoint_headers_patch_in, opts = {})
811
806
  if @api_client.config.debugging
812
- @api_client.config.logger.debug 'Calling API: EndpointApi.patch_endpoint_headers_api_v1_app_app_id_endpoint_endpoint_id_headers_patch ...'
807
+ @api_client.config.logger.debug 'Calling API: EndpointApi.v1_endpoint_patch_headers ...'
813
808
  end
814
809
  # verify the required parameter 'app_id' is set
815
810
  if @api_client.config.client_side_validation && app_id.nil?
816
- fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.patch_endpoint_headers_api_v1_app_app_id_endpoint_endpoint_id_headers_patch"
811
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.v1_endpoint_patch_headers"
817
812
  end
818
813
  if @api_client.config.client_side_validation && app_id.to_s.length > 256
819
- fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.patch_endpoint_headers_api_v1_app_app_id_endpoint_endpoint_id_headers_patch, the character length must be smaller than or equal to 256.'
814
+ fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_patch_headers, the character length must be smaller than or equal to 256.'
820
815
  end
821
816
 
822
817
  if @api_client.config.client_side_validation && app_id.to_s.length < 1
823
- fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.patch_endpoint_headers_api_v1_app_app_id_endpoint_endpoint_id_headers_patch, the character length must be great than or equal to 1.'
818
+ fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_patch_headers, the character length must be great than or equal to 1.'
824
819
  end
825
820
 
826
821
  pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
827
822
  if @api_client.config.client_side_validation && app_id !~ pattern
828
- fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.patch_endpoint_headers_api_v1_app_app_id_endpoint_endpoint_id_headers_patch, must conform to the pattern #{pattern}."
823
+ fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.v1_endpoint_patch_headers, must conform to the pattern #{pattern}."
829
824
  end
830
825
 
831
826
  # verify the required parameter 'endpoint_id' is set
832
827
  if @api_client.config.client_side_validation && endpoint_id.nil?
833
- fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.patch_endpoint_headers_api_v1_app_app_id_endpoint_endpoint_id_headers_patch"
828
+ fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.v1_endpoint_patch_headers"
834
829
  end
835
830
  if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
836
- fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.patch_endpoint_headers_api_v1_app_app_id_endpoint_endpoint_id_headers_patch, the character length must be smaller than or equal to 256.'
831
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_patch_headers, the character length must be smaller than or equal to 256.'
837
832
  end
838
833
 
839
834
  if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
840
- fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.patch_endpoint_headers_api_v1_app_app_id_endpoint_endpoint_id_headers_patch, the character length must be great than or equal to 1.'
835
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_patch_headers, the character length must be great than or equal to 1.'
841
836
  end
842
837
 
843
838
  pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
844
839
  if @api_client.config.client_side_validation && endpoint_id !~ pattern
845
- fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.patch_endpoint_headers_api_v1_app_app_id_endpoint_endpoint_id_headers_patch, must conform to the pattern #{pattern}."
840
+ fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.v1_endpoint_patch_headers, must conform to the pattern #{pattern}."
846
841
  end
847
842
 
848
843
  # verify the required parameter 'endpoint_headers_patch_in' is set
849
844
  if @api_client.config.client_side_validation && endpoint_headers_patch_in.nil?
850
- fail ArgumentError, "Missing the required parameter 'endpoint_headers_patch_in' when calling EndpointApi.patch_endpoint_headers_api_v1_app_app_id_endpoint_endpoint_id_headers_patch"
845
+ fail ArgumentError, "Missing the required parameter 'endpoint_headers_patch_in' when calling EndpointApi.v1_endpoint_patch_headers"
851
846
  end
852
847
  # resource path
853
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))
@@ -861,7 +856,6 @@ module Svix
861
856
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
862
857
  # HTTP header 'Content-Type'
863
858
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
864
- header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
865
859
 
866
860
  # form parameters
867
861
  form_params = opts[:form_params] || {}
@@ -876,7 +870,7 @@ module Svix
876
870
  auth_names = opts[:debug_auth_names] || ['HTTPBearer']
877
871
 
878
872
  new_options = opts.merge(
879
- :operation => :"EndpointApi.patch_endpoint_headers_api_v1_app_app_id_endpoint_endpoint_id_headers_patch",
873
+ :operation => :"EndpointApi.v1_endpoint_patch_headers",
880
874
  :header_params => header_params,
881
875
  :query_params => query_params,
882
876
  :form_params => form_params,
@@ -887,73 +881,73 @@ module Svix
887
881
 
888
882
  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
889
883
  if @api_client.config.debugging
890
- @api_client.config.logger.debug "API called: EndpointApi#patch_endpoint_headers_api_v1_app_app_id_endpoint_endpoint_id_headers_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
884
+ @api_client.config.logger.debug "API called: EndpointApi#v1_endpoint_patch_headers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
891
885
  end
892
886
  return data, status_code, headers
893
887
  end
894
888
 
895
889
  # Recover Failed Webhooks
896
890
  # Resend all failed messages since a given time.
897
- # @param app_id [String]
898
- # @param endpoint_id [String]
891
+ # @param app_id [String] The app&#39;s ID or UID
892
+ # @param endpoint_id [String] The ep&#39;s ID or UID
899
893
  # @param recover_in [RecoverIn]
900
894
  # @param [Hash] opts the optional parameters
901
895
  # @option opts [String] :idempotency_key The request&#39;s idempotency key
902
- # @return [Object]
903
- def recover_failed_webhooks_api_v1_app_app_id_endpoint_endpoint_id_recover_post(app_id, endpoint_id, recover_in, opts = {})
904
- data, _status_code, _headers = recover_failed_webhooks_api_v1_app_app_id_endpoint_endpoint_id_recover_post_with_http_info(app_id, endpoint_id, recover_in, opts)
896
+ # @return [RecoverOut]
897
+ def v1_endpoint_recover(app_id, endpoint_id, recover_in, opts = {})
898
+ data, _status_code, _headers = v1_endpoint_recover_with_http_info(app_id, endpoint_id, recover_in, opts)
905
899
  data
906
900
  end
907
901
 
908
902
  # Recover Failed Webhooks
909
903
  # Resend all failed messages since a given time.
910
- # @param app_id [String]
911
- # @param endpoint_id [String]
904
+ # @param app_id [String] The app&#39;s ID or UID
905
+ # @param endpoint_id [String] The ep&#39;s ID or UID
912
906
  # @param recover_in [RecoverIn]
913
907
  # @param [Hash] opts the optional parameters
914
908
  # @option opts [String] :idempotency_key The request&#39;s idempotency key
915
- # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
916
- def recover_failed_webhooks_api_v1_app_app_id_endpoint_endpoint_id_recover_post_with_http_info(app_id, endpoint_id, recover_in, opts = {})
909
+ # @return [Array<(RecoverOut, Integer, Hash)>] RecoverOut data, response status code and response headers
910
+ def v1_endpoint_recover_with_http_info(app_id, endpoint_id, recover_in, opts = {})
917
911
  if @api_client.config.debugging
918
- @api_client.config.logger.debug 'Calling API: EndpointApi.recover_failed_webhooks_api_v1_app_app_id_endpoint_endpoint_id_recover_post ...'
912
+ @api_client.config.logger.debug 'Calling API: EndpointApi.v1_endpoint_recover ...'
919
913
  end
920
914
  # verify the required parameter 'app_id' is set
921
915
  if @api_client.config.client_side_validation && app_id.nil?
922
- fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.recover_failed_webhooks_api_v1_app_app_id_endpoint_endpoint_id_recover_post"
916
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.v1_endpoint_recover"
923
917
  end
924
918
  if @api_client.config.client_side_validation && app_id.to_s.length > 256
925
- fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.recover_failed_webhooks_api_v1_app_app_id_endpoint_endpoint_id_recover_post, the character length must be smaller than or equal to 256.'
919
+ fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_recover, the character length must be smaller than or equal to 256.'
926
920
  end
927
921
 
928
922
  if @api_client.config.client_side_validation && app_id.to_s.length < 1
929
- fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.recover_failed_webhooks_api_v1_app_app_id_endpoint_endpoint_id_recover_post, the character length must be great than or equal to 1.'
923
+ fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_recover, the character length must be great than or equal to 1.'
930
924
  end
931
925
 
932
926
  pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
933
927
  if @api_client.config.client_side_validation && app_id !~ pattern
934
- fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.recover_failed_webhooks_api_v1_app_app_id_endpoint_endpoint_id_recover_post, must conform to the pattern #{pattern}."
928
+ fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.v1_endpoint_recover, must conform to the pattern #{pattern}."
935
929
  end
936
930
 
937
931
  # verify the required parameter 'endpoint_id' is set
938
932
  if @api_client.config.client_side_validation && endpoint_id.nil?
939
- fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.recover_failed_webhooks_api_v1_app_app_id_endpoint_endpoint_id_recover_post"
933
+ fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.v1_endpoint_recover"
940
934
  end
941
935
  if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
942
- fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.recover_failed_webhooks_api_v1_app_app_id_endpoint_endpoint_id_recover_post, the character length must be smaller than or equal to 256.'
936
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_recover, the character length must be smaller than or equal to 256.'
943
937
  end
944
938
 
945
939
  if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
946
- fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.recover_failed_webhooks_api_v1_app_app_id_endpoint_endpoint_id_recover_post, the character length must be great than or equal to 1.'
940
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_recover, the character length must be great than or equal to 1.'
947
941
  end
948
942
 
949
943
  pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
950
944
  if @api_client.config.client_side_validation && endpoint_id !~ pattern
951
- fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.recover_failed_webhooks_api_v1_app_app_id_endpoint_endpoint_id_recover_post, must conform to the pattern #{pattern}."
945
+ fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.v1_endpoint_recover, must conform to the pattern #{pattern}."
952
946
  end
953
947
 
954
948
  # verify the required parameter 'recover_in' is set
955
949
  if @api_client.config.client_side_validation && recover_in.nil?
956
- fail ArgumentError, "Missing the required parameter 'recover_in' when calling EndpointApi.recover_failed_webhooks_api_v1_app_app_id_endpoint_endpoint_id_recover_post"
950
+ fail ArgumentError, "Missing the required parameter 'recover_in' when calling EndpointApi.v1_endpoint_recover"
957
951
  end
958
952
  # resource path
959
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))
@@ -976,13 +970,13 @@ module Svix
976
970
  post_body = opts[:debug_body] || @api_client.object_to_http_body(recover_in)
977
971
 
978
972
  # return_type
979
- return_type = opts[:debug_return_type] || 'Object'
973
+ return_type = opts[:debug_return_type] || 'RecoverOut'
980
974
 
981
975
  # auth_names
982
976
  auth_names = opts[:debug_auth_names] || ['HTTPBearer']
983
977
 
984
978
  new_options = opts.merge(
985
- :operation => :"EndpointApi.recover_failed_webhooks_api_v1_app_app_id_endpoint_endpoint_id_recover_post",
979
+ :operation => :"EndpointApi.v1_endpoint_recover",
986
980
  :header_params => header_params,
987
981
  :query_params => query_params,
988
982
  :form_params => form_params,
@@ -993,73 +987,73 @@ module Svix
993
987
 
994
988
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
995
989
  if @api_client.config.debugging
996
- @api_client.config.logger.debug "API called: EndpointApi#recover_failed_webhooks_api_v1_app_app_id_endpoint_endpoint_id_recover_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
990
+ @api_client.config.logger.debug "API called: EndpointApi#v1_endpoint_recover\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
997
991
  end
998
992
  return data, status_code, headers
999
993
  end
1000
994
 
1001
995
  # Replay Missing Webhooks
1002
996
  # 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.
1003
- # @param app_id [String]
1004
- # @param endpoint_id [String]
997
+ # @param app_id [String] The app&#39;s ID or UID
998
+ # @param endpoint_id [String] The ep&#39;s ID or UID
1005
999
  # @param replay_in [ReplayIn]
1006
1000
  # @param [Hash] opts the optional parameters
1007
1001
  # @option opts [String] :idempotency_key The request&#39;s idempotency key
1008
- # @return [Object]
1009
- def replay_missing_webhooks_api_v1_app_app_id_endpoint_endpoint_id_replay_missing_post(app_id, endpoint_id, replay_in, opts = {})
1010
- data, _status_code, _headers = replay_missing_webhooks_api_v1_app_app_id_endpoint_endpoint_id_replay_missing_post_with_http_info(app_id, endpoint_id, replay_in, opts)
1002
+ # @return [ReplayOut]
1003
+ def v1_endpoint_replay(app_id, endpoint_id, replay_in, opts = {})
1004
+ data, _status_code, _headers = v1_endpoint_replay_with_http_info(app_id, endpoint_id, replay_in, opts)
1011
1005
  data
1012
1006
  end
1013
1007
 
1014
1008
  # Replay Missing Webhooks
1015
1009
  # 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.
1016
- # @param app_id [String]
1017
- # @param endpoint_id [String]
1010
+ # @param app_id [String] The app&#39;s ID or UID
1011
+ # @param endpoint_id [String] The ep&#39;s ID or UID
1018
1012
  # @param replay_in [ReplayIn]
1019
1013
  # @param [Hash] opts the optional parameters
1020
1014
  # @option opts [String] :idempotency_key The request&#39;s idempotency key
1021
- # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
1022
- def replay_missing_webhooks_api_v1_app_app_id_endpoint_endpoint_id_replay_missing_post_with_http_info(app_id, endpoint_id, replay_in, opts = {})
1015
+ # @return [Array<(ReplayOut, Integer, Hash)>] ReplayOut data, response status code and response headers
1016
+ def v1_endpoint_replay_with_http_info(app_id, endpoint_id, replay_in, opts = {})
1023
1017
  if @api_client.config.debugging
1024
- @api_client.config.logger.debug 'Calling API: EndpointApi.replay_missing_webhooks_api_v1_app_app_id_endpoint_endpoint_id_replay_missing_post ...'
1018
+ @api_client.config.logger.debug 'Calling API: EndpointApi.v1_endpoint_replay ...'
1025
1019
  end
1026
1020
  # verify the required parameter 'app_id' is set
1027
1021
  if @api_client.config.client_side_validation && app_id.nil?
1028
- fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.replay_missing_webhooks_api_v1_app_app_id_endpoint_endpoint_id_replay_missing_post"
1022
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.v1_endpoint_replay"
1029
1023
  end
1030
1024
  if @api_client.config.client_side_validation && app_id.to_s.length > 256
1031
- fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.replay_missing_webhooks_api_v1_app_app_id_endpoint_endpoint_id_replay_missing_post, the character length must be smaller than or equal to 256.'
1025
+ fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_replay, the character length must be smaller than or equal to 256.'
1032
1026
  end
1033
1027
 
1034
1028
  if @api_client.config.client_side_validation && app_id.to_s.length < 1
1035
- fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.replay_missing_webhooks_api_v1_app_app_id_endpoint_endpoint_id_replay_missing_post, the character length must be great than or equal to 1.'
1029
+ fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_replay, the character length must be great than or equal to 1.'
1036
1030
  end
1037
1031
 
1038
1032
  pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
1039
1033
  if @api_client.config.client_side_validation && app_id !~ pattern
1040
- fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.replay_missing_webhooks_api_v1_app_app_id_endpoint_endpoint_id_replay_missing_post, must conform to the pattern #{pattern}."
1034
+ fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.v1_endpoint_replay, must conform to the pattern #{pattern}."
1041
1035
  end
1042
1036
 
1043
1037
  # verify the required parameter 'endpoint_id' is set
1044
1038
  if @api_client.config.client_side_validation && endpoint_id.nil?
1045
- fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.replay_missing_webhooks_api_v1_app_app_id_endpoint_endpoint_id_replay_missing_post"
1039
+ fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.v1_endpoint_replay"
1046
1040
  end
1047
1041
  if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
1048
- fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.replay_missing_webhooks_api_v1_app_app_id_endpoint_endpoint_id_replay_missing_post, the character length must be smaller than or equal to 256.'
1042
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_replay, the character length must be smaller than or equal to 256.'
1049
1043
  end
1050
1044
 
1051
1045
  if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
1052
- fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.replay_missing_webhooks_api_v1_app_app_id_endpoint_endpoint_id_replay_missing_post, the character length must be great than or equal to 1.'
1046
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_replay, the character length must be great than or equal to 1.'
1053
1047
  end
1054
1048
 
1055
1049
  pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
1056
1050
  if @api_client.config.client_side_validation && endpoint_id !~ pattern
1057
- fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.replay_missing_webhooks_api_v1_app_app_id_endpoint_endpoint_id_replay_missing_post, must conform to the pattern #{pattern}."
1051
+ fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.v1_endpoint_replay, must conform to the pattern #{pattern}."
1058
1052
  end
1059
1053
 
1060
1054
  # verify the required parameter 'replay_in' is set
1061
1055
  if @api_client.config.client_side_validation && replay_in.nil?
1062
- fail ArgumentError, "Missing the required parameter 'replay_in' when calling EndpointApi.replay_missing_webhooks_api_v1_app_app_id_endpoint_endpoint_id_replay_missing_post"
1056
+ fail ArgumentError, "Missing the required parameter 'replay_in' when calling EndpointApi.v1_endpoint_replay"
1063
1057
  end
1064
1058
  # resource path
1065
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))
@@ -1082,13 +1076,13 @@ module Svix
1082
1076
  post_body = opts[:debug_body] || @api_client.object_to_http_body(replay_in)
1083
1077
 
1084
1078
  # return_type
1085
- return_type = opts[:debug_return_type] || 'Object'
1079
+ return_type = opts[:debug_return_type] || 'ReplayOut'
1086
1080
 
1087
1081
  # auth_names
1088
1082
  auth_names = opts[:debug_auth_names] || ['HTTPBearer']
1089
1083
 
1090
1084
  new_options = opts.merge(
1091
- :operation => :"EndpointApi.replay_missing_webhooks_api_v1_app_app_id_endpoint_endpoint_id_replay_missing_post",
1085
+ :operation => :"EndpointApi.v1_endpoint_replay",
1092
1086
  :header_params => header_params,
1093
1087
  :query_params => query_params,
1094
1088
  :form_params => form_params,
@@ -1099,76 +1093,76 @@ module Svix
1099
1093
 
1100
1094
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1101
1095
  if @api_client.config.debugging
1102
- @api_client.config.logger.debug "API called: EndpointApi#replay_missing_webhooks_api_v1_app_app_id_endpoint_endpoint_id_replay_missing_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1096
+ @api_client.config.logger.debug "API called: EndpointApi#v1_endpoint_replay\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1103
1097
  end
1104
1098
  return data, status_code, headers
1105
1099
  end
1106
1100
 
1107
1101
  # Rotate Endpoint Secret
1108
1102
  # Rotates the endpoint's signing secret. The previous secret will be valid for the next 24 hours.
1109
- # @param endpoint_id [String]
1110
- # @param app_id [String]
1103
+ # @param app_id [String] The app&#39;s ID or UID
1104
+ # @param endpoint_id [String] The ep&#39;s ID or UID
1111
1105
  # @param endpoint_secret_rotate_in [EndpointSecretRotateIn]
1112
1106
  # @param [Hash] opts the optional parameters
1113
1107
  # @option opts [String] :idempotency_key The request&#39;s idempotency key
1114
1108
  # @return [nil]
1115
- def rotate_endpoint_secret_api_v1_app_app_id_endpoint_endpoint_id_secret_rotate_post(endpoint_id, app_id, endpoint_secret_rotate_in, opts = {})
1116
- rotate_endpoint_secret_api_v1_app_app_id_endpoint_endpoint_id_secret_rotate_post_with_http_info(endpoint_id, app_id, endpoint_secret_rotate_in, opts)
1109
+ def v1_endpoint_rotate_secret(app_id, endpoint_id, endpoint_secret_rotate_in, opts = {})
1110
+ v1_endpoint_rotate_secret_with_http_info(app_id, endpoint_id, endpoint_secret_rotate_in, opts)
1117
1111
  nil
1118
1112
  end
1119
1113
 
1120
1114
  # Rotate Endpoint Secret
1121
1115
  # Rotates the endpoint&#39;s signing secret. The previous secret will be valid for the next 24 hours.
1122
- # @param endpoint_id [String]
1123
- # @param app_id [String]
1116
+ # @param app_id [String] The app&#39;s ID or UID
1117
+ # @param endpoint_id [String] The ep&#39;s ID or UID
1124
1118
  # @param endpoint_secret_rotate_in [EndpointSecretRotateIn]
1125
1119
  # @param [Hash] opts the optional parameters
1126
1120
  # @option opts [String] :idempotency_key The request&#39;s idempotency key
1127
1121
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1128
- def rotate_endpoint_secret_api_v1_app_app_id_endpoint_endpoint_id_secret_rotate_post_with_http_info(endpoint_id, app_id, endpoint_secret_rotate_in, opts = {})
1122
+ def v1_endpoint_rotate_secret_with_http_info(app_id, endpoint_id, endpoint_secret_rotate_in, opts = {})
1129
1123
  if @api_client.config.debugging
1130
- @api_client.config.logger.debug 'Calling API: EndpointApi.rotate_endpoint_secret_api_v1_app_app_id_endpoint_endpoint_id_secret_rotate_post ...'
1124
+ @api_client.config.logger.debug 'Calling API: EndpointApi.v1_endpoint_rotate_secret ...'
1131
1125
  end
1132
- # verify the required parameter 'endpoint_id' is set
1133
- if @api_client.config.client_side_validation && endpoint_id.nil?
1134
- fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.rotate_endpoint_secret_api_v1_app_app_id_endpoint_endpoint_id_secret_rotate_post"
1126
+ # verify the required parameter 'app_id' is set
1127
+ if @api_client.config.client_side_validation && app_id.nil?
1128
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.v1_endpoint_rotate_secret"
1135
1129
  end
1136
- if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
1137
- fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.rotate_endpoint_secret_api_v1_app_app_id_endpoint_endpoint_id_secret_rotate_post, the character length must be smaller than or equal to 256.'
1130
+ if @api_client.config.client_side_validation && app_id.to_s.length > 256
1131
+ fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_rotate_secret, the character length must be smaller than or equal to 256.'
1138
1132
  end
1139
1133
 
1140
- if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
1141
- fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.rotate_endpoint_secret_api_v1_app_app_id_endpoint_endpoint_id_secret_rotate_post, the character length must be great than or equal to 1.'
1134
+ if @api_client.config.client_side_validation && app_id.to_s.length < 1
1135
+ fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_rotate_secret, the character length must be great than or equal to 1.'
1142
1136
  end
1143
1137
 
1144
1138
  pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
1145
- if @api_client.config.client_side_validation && endpoint_id !~ pattern
1146
- fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.rotate_endpoint_secret_api_v1_app_app_id_endpoint_endpoint_id_secret_rotate_post, must conform to the pattern #{pattern}."
1139
+ if @api_client.config.client_side_validation && app_id !~ pattern
1140
+ fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.v1_endpoint_rotate_secret, must conform to the pattern #{pattern}."
1147
1141
  end
1148
1142
 
1149
- # verify the required parameter 'app_id' is set
1150
- if @api_client.config.client_side_validation && app_id.nil?
1151
- fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.rotate_endpoint_secret_api_v1_app_app_id_endpoint_endpoint_id_secret_rotate_post"
1143
+ # verify the required parameter 'endpoint_id' is set
1144
+ if @api_client.config.client_side_validation && endpoint_id.nil?
1145
+ fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.v1_endpoint_rotate_secret"
1152
1146
  end
1153
- if @api_client.config.client_side_validation && app_id.to_s.length > 256
1154
- fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.rotate_endpoint_secret_api_v1_app_app_id_endpoint_endpoint_id_secret_rotate_post, the character length must be smaller than or equal to 256.'
1147
+ if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
1148
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_rotate_secret, the character length must be smaller than or equal to 256.'
1155
1149
  end
1156
1150
 
1157
- if @api_client.config.client_side_validation && app_id.to_s.length < 1
1158
- fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.rotate_endpoint_secret_api_v1_app_app_id_endpoint_endpoint_id_secret_rotate_post, the character length must be great than or equal to 1.'
1151
+ if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
1152
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_rotate_secret, the character length must be great than or equal to 1.'
1159
1153
  end
1160
1154
 
1161
1155
  pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
1162
- if @api_client.config.client_side_validation && app_id !~ pattern
1163
- fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.rotate_endpoint_secret_api_v1_app_app_id_endpoint_endpoint_id_secret_rotate_post, must conform to the pattern #{pattern}."
1156
+ if @api_client.config.client_side_validation && endpoint_id !~ pattern
1157
+ fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.v1_endpoint_rotate_secret, must conform to the pattern #{pattern}."
1164
1158
  end
1165
1159
 
1166
1160
  # verify the required parameter 'endpoint_secret_rotate_in' is set
1167
1161
  if @api_client.config.client_side_validation && endpoint_secret_rotate_in.nil?
1168
- fail ArgumentError, "Missing the required parameter 'endpoint_secret_rotate_in' when calling EndpointApi.rotate_endpoint_secret_api_v1_app_app_id_endpoint_endpoint_id_secret_rotate_post"
1162
+ fail ArgumentError, "Missing the required parameter 'endpoint_secret_rotate_in' when calling EndpointApi.v1_endpoint_rotate_secret"
1169
1163
  end
1170
1164
  # resource path
1171
- local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/secret/rotate/'.sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s)).sub('{' + 'app_id' + '}', CGI.escape(app_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))
1172
1166
 
1173
1167
  # query parameters
1174
1168
  query_params = opts[:query_params] || {}
@@ -1194,7 +1188,7 @@ module Svix
1194
1188
  auth_names = opts[:debug_auth_names] || ['HTTPBearer']
1195
1189
 
1196
1190
  new_options = opts.merge(
1197
- :operation => :"EndpointApi.rotate_endpoint_secret_api_v1_app_app_id_endpoint_endpoint_id_secret_rotate_post",
1191
+ :operation => :"EndpointApi.v1_endpoint_rotate_secret",
1198
1192
  :header_params => header_params,
1199
1193
  :query_params => query_params,
1200
1194
  :form_params => form_params,
@@ -1205,73 +1199,73 @@ module Svix
1205
1199
 
1206
1200
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1207
1201
  if @api_client.config.debugging
1208
- @api_client.config.logger.debug "API called: EndpointApi#rotate_endpoint_secret_api_v1_app_app_id_endpoint_endpoint_id_secret_rotate_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1202
+ @api_client.config.logger.debug "API called: EndpointApi#v1_endpoint_rotate_secret\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1209
1203
  end
1210
1204
  return data, status_code, headers
1211
1205
  end
1212
1206
 
1213
1207
  # Send Event Type Example Message
1214
1208
  # Send an example message for event
1215
- # @param app_id [String]
1216
- # @param endpoint_id [String]
1209
+ # @param app_id [String] The app&#39;s ID or UID
1210
+ # @param endpoint_id [String] The ep&#39;s ID or UID
1217
1211
  # @param event_example_in [EventExampleIn]
1218
1212
  # @param [Hash] opts the optional parameters
1219
1213
  # @option opts [String] :idempotency_key The request&#39;s idempotency key
1220
1214
  # @return [MessageOut]
1221
- def send_event_type_example_message_api_v1_app_app_id_endpoint_endpoint_id_send_example_post(app_id, endpoint_id, event_example_in, opts = {})
1222
- data, _status_code, _headers = send_event_type_example_message_api_v1_app_app_id_endpoint_endpoint_id_send_example_post_with_http_info(app_id, endpoint_id, event_example_in, opts)
1215
+ def v1_endpoint_send_example(app_id, endpoint_id, event_example_in, opts = {})
1216
+ data, _status_code, _headers = v1_endpoint_send_example_with_http_info(app_id, endpoint_id, event_example_in, opts)
1223
1217
  data
1224
1218
  end
1225
1219
 
1226
1220
  # Send Event Type Example Message
1227
1221
  # Send an example message for event
1228
- # @param app_id [String]
1229
- # @param endpoint_id [String]
1222
+ # @param app_id [String] The app&#39;s ID or UID
1223
+ # @param endpoint_id [String] The ep&#39;s ID or UID
1230
1224
  # @param event_example_in [EventExampleIn]
1231
1225
  # @param [Hash] opts the optional parameters
1232
1226
  # @option opts [String] :idempotency_key The request&#39;s idempotency key
1233
1227
  # @return [Array<(MessageOut, Integer, Hash)>] MessageOut data, response status code and response headers
1234
- def send_event_type_example_message_api_v1_app_app_id_endpoint_endpoint_id_send_example_post_with_http_info(app_id, endpoint_id, event_example_in, opts = {})
1228
+ def v1_endpoint_send_example_with_http_info(app_id, endpoint_id, event_example_in, opts = {})
1235
1229
  if @api_client.config.debugging
1236
- @api_client.config.logger.debug 'Calling API: EndpointApi.send_event_type_example_message_api_v1_app_app_id_endpoint_endpoint_id_send_example_post ...'
1230
+ @api_client.config.logger.debug 'Calling API: EndpointApi.v1_endpoint_send_example ...'
1237
1231
  end
1238
1232
  # verify the required parameter 'app_id' is set
1239
1233
  if @api_client.config.client_side_validation && app_id.nil?
1240
- fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.send_event_type_example_message_api_v1_app_app_id_endpoint_endpoint_id_send_example_post"
1234
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.v1_endpoint_send_example"
1241
1235
  end
1242
1236
  if @api_client.config.client_side_validation && app_id.to_s.length > 256
1243
- fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.send_event_type_example_message_api_v1_app_app_id_endpoint_endpoint_id_send_example_post, the character length must be smaller than or equal to 256.'
1237
+ fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_send_example, the character length must be smaller than or equal to 256.'
1244
1238
  end
1245
1239
 
1246
1240
  if @api_client.config.client_side_validation && app_id.to_s.length < 1
1247
- fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.send_event_type_example_message_api_v1_app_app_id_endpoint_endpoint_id_send_example_post, the character length must be great than or equal to 1.'
1241
+ fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_send_example, the character length must be great than or equal to 1.'
1248
1242
  end
1249
1243
 
1250
1244
  pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
1251
1245
  if @api_client.config.client_side_validation && app_id !~ pattern
1252
- fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.send_event_type_example_message_api_v1_app_app_id_endpoint_endpoint_id_send_example_post, must conform to the pattern #{pattern}."
1246
+ fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.v1_endpoint_send_example, must conform to the pattern #{pattern}."
1253
1247
  end
1254
1248
 
1255
1249
  # verify the required parameter 'endpoint_id' is set
1256
1250
  if @api_client.config.client_side_validation && endpoint_id.nil?
1257
- fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.send_event_type_example_message_api_v1_app_app_id_endpoint_endpoint_id_send_example_post"
1251
+ fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.v1_endpoint_send_example"
1258
1252
  end
1259
1253
  if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
1260
- fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.send_event_type_example_message_api_v1_app_app_id_endpoint_endpoint_id_send_example_post, the character length must be smaller than or equal to 256.'
1254
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_send_example, the character length must be smaller than or equal to 256.'
1261
1255
  end
1262
1256
 
1263
1257
  if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
1264
- fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.send_event_type_example_message_api_v1_app_app_id_endpoint_endpoint_id_send_example_post, the character length must be great than or equal to 1.'
1258
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_send_example, the character length must be great than or equal to 1.'
1265
1259
  end
1266
1260
 
1267
1261
  pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
1268
1262
  if @api_client.config.client_side_validation && endpoint_id !~ pattern
1269
- fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.send_event_type_example_message_api_v1_app_app_id_endpoint_endpoint_id_send_example_post, must conform to the pattern #{pattern}."
1263
+ fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.v1_endpoint_send_example, must conform to the pattern #{pattern}."
1270
1264
  end
1271
1265
 
1272
1266
  # verify the required parameter 'event_example_in' is set
1273
1267
  if @api_client.config.client_side_validation && event_example_in.nil?
1274
- fail ArgumentError, "Missing the required parameter 'event_example_in' when calling EndpointApi.send_event_type_example_message_api_v1_app_app_id_endpoint_endpoint_id_send_example_post"
1268
+ fail ArgumentError, "Missing the required parameter 'event_example_in' when calling EndpointApi.v1_endpoint_send_example"
1275
1269
  end
1276
1270
  # resource path
1277
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))
@@ -1300,7 +1294,7 @@ module Svix
1300
1294
  auth_names = opts[:debug_auth_names] || ['HTTPBearer']
1301
1295
 
1302
1296
  new_options = opts.merge(
1303
- :operation => :"EndpointApi.send_event_type_example_message_api_v1_app_app_id_endpoint_endpoint_id_send_example_post",
1297
+ :operation => :"EndpointApi.v1_endpoint_send_example",
1304
1298
  :header_params => header_params,
1305
1299
  :query_params => query_params,
1306
1300
  :form_params => form_params,
@@ -1311,73 +1305,166 @@ module Svix
1311
1305
 
1312
1306
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1313
1307
  if @api_client.config.debugging
1314
- @api_client.config.logger.debug "API called: EndpointApi#send_event_type_example_message_api_v1_app_app_id_endpoint_endpoint_id_send_example_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1308
+ @api_client.config.logger.debug "API called: EndpointApi#v1_endpoint_send_example\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1309
+ end
1310
+ return data, status_code, headers
1311
+ end
1312
+
1313
+ # Get Endpoint Transformation
1314
+ # Get the transformation code associated with this endpoint
1315
+ # @param app_id [String] The app&#39;s ID or UID
1316
+ # @param endpoint_id [String] The ep&#39;s ID or UID
1317
+ # @param [Hash] opts the optional parameters
1318
+ # @return [EndpointTransformationOut]
1319
+ def v1_endpoint_transformation_get(app_id, endpoint_id, opts = {})
1320
+ data, _status_code, _headers = v1_endpoint_transformation_get_with_http_info(app_id, endpoint_id, opts)
1321
+ data
1322
+ end
1323
+
1324
+ # Get Endpoint Transformation
1325
+ # Get the transformation code associated with this endpoint
1326
+ # @param app_id [String] The app&#39;s ID or UID
1327
+ # @param endpoint_id [String] The ep&#39;s ID or UID
1328
+ # @param [Hash] opts the optional parameters
1329
+ # @return [Array<(EndpointTransformationOut, Integer, Hash)>] EndpointTransformationOut data, response status code and response headers
1330
+ def v1_endpoint_transformation_get_with_http_info(app_id, endpoint_id, opts = {})
1331
+ if @api_client.config.debugging
1332
+ @api_client.config.logger.debug 'Calling API: EndpointApi.v1_endpoint_transformation_get ...'
1333
+ end
1334
+ # verify the required parameter 'app_id' is set
1335
+ if @api_client.config.client_side_validation && app_id.nil?
1336
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.v1_endpoint_transformation_get"
1337
+ end
1338
+ if @api_client.config.client_side_validation && app_id.to_s.length > 256
1339
+ fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_transformation_get, the character length must be smaller than or equal to 256.'
1340
+ end
1341
+
1342
+ if @api_client.config.client_side_validation && app_id.to_s.length < 1
1343
+ fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_transformation_get, the character length must be great than or equal to 1.'
1344
+ end
1345
+
1346
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
1347
+ if @api_client.config.client_side_validation && app_id !~ pattern
1348
+ fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.v1_endpoint_transformation_get, must conform to the pattern #{pattern}."
1349
+ end
1350
+
1351
+ # verify the required parameter 'endpoint_id' is set
1352
+ if @api_client.config.client_side_validation && endpoint_id.nil?
1353
+ fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.v1_endpoint_transformation_get"
1354
+ end
1355
+ if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
1356
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_transformation_get, the character length must be smaller than or equal to 256.'
1357
+ end
1358
+
1359
+ if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
1360
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_transformation_get, the character length must be great than or equal to 1.'
1361
+ end
1362
+
1363
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
1364
+ if @api_client.config.client_side_validation && endpoint_id !~ pattern
1365
+ fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.v1_endpoint_transformation_get, must conform to the pattern #{pattern}."
1366
+ end
1367
+
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))
1370
+
1371
+ # query parameters
1372
+ query_params = opts[:query_params] || {}
1373
+
1374
+ # header parameters
1375
+ header_params = opts[:header_params] || {}
1376
+ # HTTP header 'Accept' (if needed)
1377
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1378
+
1379
+ # form parameters
1380
+ form_params = opts[:form_params] || {}
1381
+
1382
+ # http body (model)
1383
+ post_body = opts[:debug_body]
1384
+
1385
+ # return_type
1386
+ return_type = opts[:debug_return_type] || 'EndpointTransformationOut'
1387
+
1388
+ # auth_names
1389
+ auth_names = opts[:debug_auth_names] || ['HTTPBearer']
1390
+
1391
+ new_options = opts.merge(
1392
+ :operation => :"EndpointApi.v1_endpoint_transformation_get",
1393
+ :header_params => header_params,
1394
+ :query_params => query_params,
1395
+ :form_params => form_params,
1396
+ :body => post_body,
1397
+ :auth_names => auth_names,
1398
+ :return_type => return_type
1399
+ )
1400
+
1401
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1402
+ if @api_client.config.debugging
1403
+ @api_client.config.logger.debug "API called: EndpointApi#v1_endpoint_transformation_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1315
1404
  end
1316
1405
  return data, status_code, headers
1317
1406
  end
1318
1407
 
1319
1408
  # Set Endpoint Transformation
1320
1409
  # Set or unset the transformation code associated with this endpoint
1321
- # @param app_id [String]
1322
- # @param endpoint_id [String]
1410
+ # @param app_id [String] The app&#39;s ID or UID
1411
+ # @param endpoint_id [String] The ep&#39;s ID or UID
1323
1412
  # @param endpoint_transformation_in [EndpointTransformationIn]
1324
1413
  # @param [Hash] opts the optional parameters
1325
- # @option opts [String] :idempotency_key The request&#39;s idempotency key
1326
1414
  # @return [nil]
1327
- def set_endpoint_transformation_api_v1_app_app_id_endpoint_endpoint_id_transformation_patch(app_id, endpoint_id, endpoint_transformation_in, opts = {})
1328
- set_endpoint_transformation_api_v1_app_app_id_endpoint_endpoint_id_transformation_patch_with_http_info(app_id, endpoint_id, endpoint_transformation_in, opts)
1415
+ def v1_endpoint_transformation_partial_update(app_id, endpoint_id, endpoint_transformation_in, opts = {})
1416
+ v1_endpoint_transformation_partial_update_with_http_info(app_id, endpoint_id, endpoint_transformation_in, opts)
1329
1417
  nil
1330
1418
  end
1331
1419
 
1332
1420
  # Set Endpoint Transformation
1333
1421
  # Set or unset the transformation code associated with this endpoint
1334
- # @param app_id [String]
1335
- # @param endpoint_id [String]
1422
+ # @param app_id [String] The app&#39;s ID or UID
1423
+ # @param endpoint_id [String] The ep&#39;s ID or UID
1336
1424
  # @param endpoint_transformation_in [EndpointTransformationIn]
1337
1425
  # @param [Hash] opts the optional parameters
1338
- # @option opts [String] :idempotency_key The request&#39;s idempotency key
1339
1426
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1340
- def set_endpoint_transformation_api_v1_app_app_id_endpoint_endpoint_id_transformation_patch_with_http_info(app_id, endpoint_id, endpoint_transformation_in, opts = {})
1427
+ def v1_endpoint_transformation_partial_update_with_http_info(app_id, endpoint_id, endpoint_transformation_in, opts = {})
1341
1428
  if @api_client.config.debugging
1342
- @api_client.config.logger.debug 'Calling API: EndpointApi.set_endpoint_transformation_api_v1_app_app_id_endpoint_endpoint_id_transformation_patch ...'
1429
+ @api_client.config.logger.debug 'Calling API: EndpointApi.v1_endpoint_transformation_partial_update ...'
1343
1430
  end
1344
1431
  # verify the required parameter 'app_id' is set
1345
1432
  if @api_client.config.client_side_validation && app_id.nil?
1346
- fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.set_endpoint_transformation_api_v1_app_app_id_endpoint_endpoint_id_transformation_patch"
1433
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.v1_endpoint_transformation_partial_update"
1347
1434
  end
1348
1435
  if @api_client.config.client_side_validation && app_id.to_s.length > 256
1349
- fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.set_endpoint_transformation_api_v1_app_app_id_endpoint_endpoint_id_transformation_patch, the character length must be smaller than or equal to 256.'
1436
+ fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_transformation_partial_update, the character length must be smaller than or equal to 256.'
1350
1437
  end
1351
1438
 
1352
1439
  if @api_client.config.client_side_validation && app_id.to_s.length < 1
1353
- fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.set_endpoint_transformation_api_v1_app_app_id_endpoint_endpoint_id_transformation_patch, the character length must be great than or equal to 1.'
1440
+ fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_transformation_partial_update, the character length must be great than or equal to 1.'
1354
1441
  end
1355
1442
 
1356
1443
  pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
1357
1444
  if @api_client.config.client_side_validation && app_id !~ pattern
1358
- fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.set_endpoint_transformation_api_v1_app_app_id_endpoint_endpoint_id_transformation_patch, must conform to the pattern #{pattern}."
1445
+ fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.v1_endpoint_transformation_partial_update, must conform to the pattern #{pattern}."
1359
1446
  end
1360
1447
 
1361
1448
  # verify the required parameter 'endpoint_id' is set
1362
1449
  if @api_client.config.client_side_validation && endpoint_id.nil?
1363
- fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.set_endpoint_transformation_api_v1_app_app_id_endpoint_endpoint_id_transformation_patch"
1450
+ fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.v1_endpoint_transformation_partial_update"
1364
1451
  end
1365
1452
  if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
1366
- fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.set_endpoint_transformation_api_v1_app_app_id_endpoint_endpoint_id_transformation_patch, the character length must be smaller than or equal to 256.'
1453
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_transformation_partial_update, the character length must be smaller than or equal to 256.'
1367
1454
  end
1368
1455
 
1369
1456
  if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
1370
- fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.set_endpoint_transformation_api_v1_app_app_id_endpoint_endpoint_id_transformation_patch, the character length must be great than or equal to 1.'
1457
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_transformation_partial_update, the character length must be great than or equal to 1.'
1371
1458
  end
1372
1459
 
1373
1460
  pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
1374
1461
  if @api_client.config.client_side_validation && endpoint_id !~ pattern
1375
- fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.set_endpoint_transformation_api_v1_app_app_id_endpoint_endpoint_id_transformation_patch, must conform to the pattern #{pattern}."
1462
+ fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.v1_endpoint_transformation_partial_update, must conform to the pattern #{pattern}."
1376
1463
  end
1377
1464
 
1378
1465
  # verify the required parameter 'endpoint_transformation_in' is set
1379
1466
  if @api_client.config.client_side_validation && endpoint_transformation_in.nil?
1380
- fail ArgumentError, "Missing the required parameter 'endpoint_transformation_in' when calling EndpointApi.set_endpoint_transformation_api_v1_app_app_id_endpoint_endpoint_id_transformation_patch"
1467
+ fail ArgumentError, "Missing the required parameter 'endpoint_transformation_in' when calling EndpointApi.v1_endpoint_transformation_partial_update"
1381
1468
  end
1382
1469
  # resource path
1383
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))
@@ -1391,7 +1478,6 @@ module Svix
1391
1478
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1392
1479
  # HTTP header 'Content-Type'
1393
1480
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1394
- header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
1395
1481
 
1396
1482
  # form parameters
1397
1483
  form_params = opts[:form_params] || {}
@@ -1406,7 +1492,7 @@ module Svix
1406
1492
  auth_names = opts[:debug_auth_names] || ['HTTPBearer']
1407
1493
 
1408
1494
  new_options = opts.merge(
1409
- :operation => :"EndpointApi.set_endpoint_transformation_api_v1_app_app_id_endpoint_endpoint_id_transformation_patch",
1495
+ :operation => :"EndpointApi.v1_endpoint_transformation_partial_update",
1410
1496
  :header_params => header_params,
1411
1497
  :query_params => query_params,
1412
1498
  :form_params => form_params,
@@ -1417,76 +1503,76 @@ module Svix
1417
1503
 
1418
1504
  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
1419
1505
  if @api_client.config.debugging
1420
- @api_client.config.logger.debug "API called: EndpointApi#set_endpoint_transformation_api_v1_app_app_id_endpoint_endpoint_id_transformation_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1506
+ @api_client.config.logger.debug "API called: EndpointApi#v1_endpoint_transformation_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1421
1507
  end
1422
1508
  return data, status_code, headers
1423
1509
  end
1424
1510
 
1425
- # Simulate Endpoint Transformation
1511
+ # Simulate
1426
1512
  # Simulate running the transformation on the payload and code
1427
- # @param endpoint_id [String]
1428
- # @param app_id [String]
1513
+ # @param app_id [String] The app&#39;s ID or UID
1514
+ # @param endpoint_id [String] The ep&#39;s ID or UID
1429
1515
  # @param endpoint_transformation_simulate_in [EndpointTransformationSimulateIn]
1430
1516
  # @param [Hash] opts the optional parameters
1431
1517
  # @option opts [String] :idempotency_key The request&#39;s idempotency key
1432
1518
  # @return [EndpointTransformationSimulateOut]
1433
- def simulate_endpoint_transformation_api_v1_app_app_id_endpoint_endpoint_id_transformation_simulate_post(endpoint_id, app_id, endpoint_transformation_simulate_in, opts = {})
1434
- data, _status_code, _headers = simulate_endpoint_transformation_api_v1_app_app_id_endpoint_endpoint_id_transformation_simulate_post_with_http_info(endpoint_id, app_id, endpoint_transformation_simulate_in, opts)
1519
+ def v1_endpoint_transformation_simulate(app_id, endpoint_id, endpoint_transformation_simulate_in, opts = {})
1520
+ data, _status_code, _headers = v1_endpoint_transformation_simulate_with_http_info(app_id, endpoint_id, endpoint_transformation_simulate_in, opts)
1435
1521
  data
1436
1522
  end
1437
1523
 
1438
- # Simulate Endpoint Transformation
1524
+ # Simulate
1439
1525
  # Simulate running the transformation on the payload and code
1440
- # @param endpoint_id [String]
1441
- # @param app_id [String]
1526
+ # @param app_id [String] The app&#39;s ID or UID
1527
+ # @param endpoint_id [String] The ep&#39;s ID or UID
1442
1528
  # @param endpoint_transformation_simulate_in [EndpointTransformationSimulateIn]
1443
1529
  # @param [Hash] opts the optional parameters
1444
1530
  # @option opts [String] :idempotency_key The request&#39;s idempotency key
1445
1531
  # @return [Array<(EndpointTransformationSimulateOut, Integer, Hash)>] EndpointTransformationSimulateOut data, response status code and response headers
1446
- def simulate_endpoint_transformation_api_v1_app_app_id_endpoint_endpoint_id_transformation_simulate_post_with_http_info(endpoint_id, app_id, endpoint_transformation_simulate_in, opts = {})
1532
+ def v1_endpoint_transformation_simulate_with_http_info(app_id, endpoint_id, endpoint_transformation_simulate_in, opts = {})
1447
1533
  if @api_client.config.debugging
1448
- @api_client.config.logger.debug 'Calling API: EndpointApi.simulate_endpoint_transformation_api_v1_app_app_id_endpoint_endpoint_id_transformation_simulate_post ...'
1534
+ @api_client.config.logger.debug 'Calling API: EndpointApi.v1_endpoint_transformation_simulate ...'
1449
1535
  end
1450
- # verify the required parameter 'endpoint_id' is set
1451
- if @api_client.config.client_side_validation && endpoint_id.nil?
1452
- fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.simulate_endpoint_transformation_api_v1_app_app_id_endpoint_endpoint_id_transformation_simulate_post"
1536
+ # verify the required parameter 'app_id' is set
1537
+ if @api_client.config.client_side_validation && app_id.nil?
1538
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.v1_endpoint_transformation_simulate"
1453
1539
  end
1454
- if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
1455
- fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.simulate_endpoint_transformation_api_v1_app_app_id_endpoint_endpoint_id_transformation_simulate_post, the character length must be smaller than or equal to 256.'
1540
+ if @api_client.config.client_side_validation && app_id.to_s.length > 256
1541
+ fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_transformation_simulate, the character length must be smaller than or equal to 256.'
1456
1542
  end
1457
1543
 
1458
- if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
1459
- fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.simulate_endpoint_transformation_api_v1_app_app_id_endpoint_endpoint_id_transformation_simulate_post, the character length must be great than or equal to 1.'
1544
+ if @api_client.config.client_side_validation && app_id.to_s.length < 1
1545
+ fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_transformation_simulate, the character length must be great than or equal to 1.'
1460
1546
  end
1461
1547
 
1462
1548
  pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
1463
- if @api_client.config.client_side_validation && endpoint_id !~ pattern
1464
- fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.simulate_endpoint_transformation_api_v1_app_app_id_endpoint_endpoint_id_transformation_simulate_post, must conform to the pattern #{pattern}."
1549
+ if @api_client.config.client_side_validation && app_id !~ pattern
1550
+ fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.v1_endpoint_transformation_simulate, must conform to the pattern #{pattern}."
1465
1551
  end
1466
1552
 
1467
- # verify the required parameter 'app_id' is set
1468
- if @api_client.config.client_side_validation && app_id.nil?
1469
- fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.simulate_endpoint_transformation_api_v1_app_app_id_endpoint_endpoint_id_transformation_simulate_post"
1553
+ # verify the required parameter 'endpoint_id' is set
1554
+ if @api_client.config.client_side_validation && endpoint_id.nil?
1555
+ fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.v1_endpoint_transformation_simulate"
1470
1556
  end
1471
- if @api_client.config.client_side_validation && app_id.to_s.length > 256
1472
- fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.simulate_endpoint_transformation_api_v1_app_app_id_endpoint_endpoint_id_transformation_simulate_post, the character length must be smaller than or equal to 256.'
1557
+ if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
1558
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_transformation_simulate, the character length must be smaller than or equal to 256.'
1473
1559
  end
1474
1560
 
1475
- if @api_client.config.client_side_validation && app_id.to_s.length < 1
1476
- fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.simulate_endpoint_transformation_api_v1_app_app_id_endpoint_endpoint_id_transformation_simulate_post, the character length must be great than or equal to 1.'
1561
+ if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
1562
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_transformation_simulate, the character length must be great than or equal to 1.'
1477
1563
  end
1478
1564
 
1479
1565
  pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
1480
- if @api_client.config.client_side_validation && app_id !~ pattern
1481
- fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.simulate_endpoint_transformation_api_v1_app_app_id_endpoint_endpoint_id_transformation_simulate_post, must conform to the pattern #{pattern}."
1566
+ if @api_client.config.client_side_validation && endpoint_id !~ pattern
1567
+ fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.v1_endpoint_transformation_simulate, must conform to the pattern #{pattern}."
1482
1568
  end
1483
1569
 
1484
1570
  # verify the required parameter 'endpoint_transformation_simulate_in' is set
1485
1571
  if @api_client.config.client_side_validation && endpoint_transformation_simulate_in.nil?
1486
- fail ArgumentError, "Missing the required parameter 'endpoint_transformation_simulate_in' when calling EndpointApi.simulate_endpoint_transformation_api_v1_app_app_id_endpoint_endpoint_id_transformation_simulate_post"
1572
+ fail ArgumentError, "Missing the required parameter 'endpoint_transformation_simulate_in' when calling EndpointApi.v1_endpoint_transformation_simulate"
1487
1573
  end
1488
1574
  # resource path
1489
- local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/transformation/simulate/'.sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s)).sub('{' + 'app_id' + '}', CGI.escape(app_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))
1490
1576
 
1491
1577
  # query parameters
1492
1578
  query_params = opts[:query_params] || {}
@@ -1512,7 +1598,7 @@ module Svix
1512
1598
  auth_names = opts[:debug_auth_names] || ['HTTPBearer']
1513
1599
 
1514
1600
  new_options = opts.merge(
1515
- :operation => :"EndpointApi.simulate_endpoint_transformation_api_v1_app_app_id_endpoint_endpoint_id_transformation_simulate_post",
1601
+ :operation => :"EndpointApi.v1_endpoint_transformation_simulate",
1516
1602
  :header_params => header_params,
1517
1603
  :query_params => query_params,
1518
1604
  :form_params => form_params,
@@ -1523,76 +1609,74 @@ module Svix
1523
1609
 
1524
1610
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1525
1611
  if @api_client.config.debugging
1526
- @api_client.config.logger.debug "API called: EndpointApi#simulate_endpoint_transformation_api_v1_app_app_id_endpoint_endpoint_id_transformation_simulate_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1612
+ @api_client.config.logger.debug "API called: EndpointApi#v1_endpoint_transformation_simulate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1527
1613
  end
1528
1614
  return data, status_code, headers
1529
1615
  end
1530
1616
 
1531
1617
  # Update Endpoint
1532
1618
  # Update an endpoint.
1533
- # @param endpoint_id [String]
1534
- # @param app_id [String]
1619
+ # @param app_id [String] The app&#39;s ID or UID
1620
+ # @param endpoint_id [String] The ep&#39;s ID or UID
1535
1621
  # @param endpoint_update [EndpointUpdate]
1536
1622
  # @param [Hash] opts the optional parameters
1537
- # @option opts [String] :idempotency_key The request&#39;s idempotency key
1538
1623
  # @return [EndpointOut]
1539
- def update_endpoint_api_v1_app_app_id_endpoint_endpoint_id_put(endpoint_id, app_id, endpoint_update, opts = {})
1540
- data, _status_code, _headers = update_endpoint_api_v1_app_app_id_endpoint_endpoint_id_put_with_http_info(endpoint_id, app_id, endpoint_update, opts)
1624
+ def v1_endpoint_update(app_id, endpoint_id, endpoint_update, opts = {})
1625
+ data, _status_code, _headers = v1_endpoint_update_with_http_info(app_id, endpoint_id, endpoint_update, opts)
1541
1626
  data
1542
1627
  end
1543
1628
 
1544
1629
  # Update Endpoint
1545
1630
  # Update an endpoint.
1546
- # @param endpoint_id [String]
1547
- # @param app_id [String]
1631
+ # @param app_id [String] The app&#39;s ID or UID
1632
+ # @param endpoint_id [String] The ep&#39;s ID or UID
1548
1633
  # @param endpoint_update [EndpointUpdate]
1549
1634
  # @param [Hash] opts the optional parameters
1550
- # @option opts [String] :idempotency_key The request&#39;s idempotency key
1551
1635
  # @return [Array<(EndpointOut, Integer, Hash)>] EndpointOut data, response status code and response headers
1552
- def update_endpoint_api_v1_app_app_id_endpoint_endpoint_id_put_with_http_info(endpoint_id, app_id, endpoint_update, opts = {})
1636
+ def v1_endpoint_update_with_http_info(app_id, endpoint_id, endpoint_update, opts = {})
1553
1637
  if @api_client.config.debugging
1554
- @api_client.config.logger.debug 'Calling API: EndpointApi.update_endpoint_api_v1_app_app_id_endpoint_endpoint_id_put ...'
1638
+ @api_client.config.logger.debug 'Calling API: EndpointApi.v1_endpoint_update ...'
1555
1639
  end
1556
- # verify the required parameter 'endpoint_id' is set
1557
- if @api_client.config.client_side_validation && endpoint_id.nil?
1558
- fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.update_endpoint_api_v1_app_app_id_endpoint_endpoint_id_put"
1640
+ # verify the required parameter 'app_id' is set
1641
+ if @api_client.config.client_side_validation && app_id.nil?
1642
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.v1_endpoint_update"
1559
1643
  end
1560
- if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
1561
- fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.update_endpoint_api_v1_app_app_id_endpoint_endpoint_id_put, the character length must be smaller than or equal to 256.'
1644
+ if @api_client.config.client_side_validation && app_id.to_s.length > 256
1645
+ fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_update, the character length must be smaller than or equal to 256.'
1562
1646
  end
1563
1647
 
1564
- if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
1565
- fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.update_endpoint_api_v1_app_app_id_endpoint_endpoint_id_put, the character length must be great than or equal to 1.'
1648
+ if @api_client.config.client_side_validation && app_id.to_s.length < 1
1649
+ fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_update, the character length must be great than or equal to 1.'
1566
1650
  end
1567
1651
 
1568
1652
  pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
1569
- if @api_client.config.client_side_validation && endpoint_id !~ pattern
1570
- fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.update_endpoint_api_v1_app_app_id_endpoint_endpoint_id_put, must conform to the pattern #{pattern}."
1653
+ if @api_client.config.client_side_validation && app_id !~ pattern
1654
+ fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.v1_endpoint_update, must conform to the pattern #{pattern}."
1571
1655
  end
1572
1656
 
1573
- # verify the required parameter 'app_id' is set
1574
- if @api_client.config.client_side_validation && app_id.nil?
1575
- fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.update_endpoint_api_v1_app_app_id_endpoint_endpoint_id_put"
1657
+ # verify the required parameter 'endpoint_id' is set
1658
+ if @api_client.config.client_side_validation && endpoint_id.nil?
1659
+ fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.v1_endpoint_update"
1576
1660
  end
1577
- if @api_client.config.client_side_validation && app_id.to_s.length > 256
1578
- fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.update_endpoint_api_v1_app_app_id_endpoint_endpoint_id_put, the character length must be smaller than or equal to 256.'
1661
+ if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
1662
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_update, the character length must be smaller than or equal to 256.'
1579
1663
  end
1580
1664
 
1581
- if @api_client.config.client_side_validation && app_id.to_s.length < 1
1582
- fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.update_endpoint_api_v1_app_app_id_endpoint_endpoint_id_put, the character length must be great than or equal to 1.'
1665
+ if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
1666
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_update, the character length must be great than or equal to 1.'
1583
1667
  end
1584
1668
 
1585
1669
  pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
1586
- if @api_client.config.client_side_validation && app_id !~ pattern
1587
- fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.update_endpoint_api_v1_app_app_id_endpoint_endpoint_id_put, must conform to the pattern #{pattern}."
1670
+ if @api_client.config.client_side_validation && endpoint_id !~ pattern
1671
+ fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.v1_endpoint_update, must conform to the pattern #{pattern}."
1588
1672
  end
1589
1673
 
1590
1674
  # verify the required parameter 'endpoint_update' is set
1591
1675
  if @api_client.config.client_side_validation && endpoint_update.nil?
1592
- fail ArgumentError, "Missing the required parameter 'endpoint_update' when calling EndpointApi.update_endpoint_api_v1_app_app_id_endpoint_endpoint_id_put"
1676
+ fail ArgumentError, "Missing the required parameter 'endpoint_update' when calling EndpointApi.v1_endpoint_update"
1593
1677
  end
1594
1678
  # resource path
1595
- local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/'.sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s)).sub('{' + 'app_id' + '}', CGI.escape(app_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))
1596
1680
 
1597
1681
  # query parameters
1598
1682
  query_params = opts[:query_params] || {}
@@ -1603,7 +1687,6 @@ module Svix
1603
1687
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1604
1688
  # HTTP header 'Content-Type'
1605
1689
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1606
- header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
1607
1690
 
1608
1691
  # form parameters
1609
1692
  form_params = opts[:form_params] || {}
@@ -1618,7 +1701,7 @@ module Svix
1618
1701
  auth_names = opts[:debug_auth_names] || ['HTTPBearer']
1619
1702
 
1620
1703
  new_options = opts.merge(
1621
- :operation => :"EndpointApi.update_endpoint_api_v1_app_app_id_endpoint_endpoint_id_put",
1704
+ :operation => :"EndpointApi.v1_endpoint_update",
1622
1705
  :header_params => header_params,
1623
1706
  :query_params => query_params,
1624
1707
  :form_params => form_params,
@@ -1629,73 +1712,71 @@ module Svix
1629
1712
 
1630
1713
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1631
1714
  if @api_client.config.debugging
1632
- @api_client.config.logger.debug "API called: EndpointApi#update_endpoint_api_v1_app_app_id_endpoint_endpoint_id_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1715
+ @api_client.config.logger.debug "API called: EndpointApi#v1_endpoint_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1633
1716
  end
1634
1717
  return data, status_code, headers
1635
1718
  end
1636
1719
 
1637
1720
  # Update Endpoint Headers
1638
1721
  # Set the additional headers to be sent with the webhook
1639
- # @param app_id [String]
1640
- # @param endpoint_id [String]
1722
+ # @param app_id [String] The app&#39;s ID or UID
1723
+ # @param endpoint_id [String] The ep&#39;s ID or UID
1641
1724
  # @param endpoint_headers_in [EndpointHeadersIn]
1642
1725
  # @param [Hash] opts the optional parameters
1643
- # @option opts [String] :idempotency_key The request&#39;s idempotency key
1644
1726
  # @return [nil]
1645
- def update_endpoint_headers_api_v1_app_app_id_endpoint_endpoint_id_headers_put(app_id, endpoint_id, endpoint_headers_in, opts = {})
1646
- update_endpoint_headers_api_v1_app_app_id_endpoint_endpoint_id_headers_put_with_http_info(app_id, endpoint_id, endpoint_headers_in, opts)
1727
+ def v1_endpoint_update_headers(app_id, endpoint_id, endpoint_headers_in, opts = {})
1728
+ v1_endpoint_update_headers_with_http_info(app_id, endpoint_id, endpoint_headers_in, opts)
1647
1729
  nil
1648
1730
  end
1649
1731
 
1650
1732
  # Update Endpoint Headers
1651
1733
  # Set the additional headers to be sent with the webhook
1652
- # @param app_id [String]
1653
- # @param endpoint_id [String]
1734
+ # @param app_id [String] The app&#39;s ID or UID
1735
+ # @param endpoint_id [String] The ep&#39;s ID or UID
1654
1736
  # @param endpoint_headers_in [EndpointHeadersIn]
1655
1737
  # @param [Hash] opts the optional parameters
1656
- # @option opts [String] :idempotency_key The request&#39;s idempotency key
1657
1738
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1658
- def update_endpoint_headers_api_v1_app_app_id_endpoint_endpoint_id_headers_put_with_http_info(app_id, endpoint_id, endpoint_headers_in, opts = {})
1739
+ def v1_endpoint_update_headers_with_http_info(app_id, endpoint_id, endpoint_headers_in, opts = {})
1659
1740
  if @api_client.config.debugging
1660
- @api_client.config.logger.debug 'Calling API: EndpointApi.update_endpoint_headers_api_v1_app_app_id_endpoint_endpoint_id_headers_put ...'
1741
+ @api_client.config.logger.debug 'Calling API: EndpointApi.v1_endpoint_update_headers ...'
1661
1742
  end
1662
1743
  # verify the required parameter 'app_id' is set
1663
1744
  if @api_client.config.client_side_validation && app_id.nil?
1664
- fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.update_endpoint_headers_api_v1_app_app_id_endpoint_endpoint_id_headers_put"
1745
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.v1_endpoint_update_headers"
1665
1746
  end
1666
1747
  if @api_client.config.client_side_validation && app_id.to_s.length > 256
1667
- fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.update_endpoint_headers_api_v1_app_app_id_endpoint_endpoint_id_headers_put, the character length must be smaller than or equal to 256.'
1748
+ fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_update_headers, the character length must be smaller than or equal to 256.'
1668
1749
  end
1669
1750
 
1670
1751
  if @api_client.config.client_side_validation && app_id.to_s.length < 1
1671
- fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.update_endpoint_headers_api_v1_app_app_id_endpoint_endpoint_id_headers_put, the character length must be great than or equal to 1.'
1752
+ fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_update_headers, the character length must be great than or equal to 1.'
1672
1753
  end
1673
1754
 
1674
1755
  pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
1675
1756
  if @api_client.config.client_side_validation && app_id !~ pattern
1676
- fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.update_endpoint_headers_api_v1_app_app_id_endpoint_endpoint_id_headers_put, must conform to the pattern #{pattern}."
1757
+ fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.v1_endpoint_update_headers, must conform to the pattern #{pattern}."
1677
1758
  end
1678
1759
 
1679
1760
  # verify the required parameter 'endpoint_id' is set
1680
1761
  if @api_client.config.client_side_validation && endpoint_id.nil?
1681
- fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.update_endpoint_headers_api_v1_app_app_id_endpoint_endpoint_id_headers_put"
1762
+ fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.v1_endpoint_update_headers"
1682
1763
  end
1683
1764
  if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
1684
- fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.update_endpoint_headers_api_v1_app_app_id_endpoint_endpoint_id_headers_put, the character length must be smaller than or equal to 256.'
1765
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_update_headers, the character length must be smaller than or equal to 256.'
1685
1766
  end
1686
1767
 
1687
1768
  if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
1688
- fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.update_endpoint_headers_api_v1_app_app_id_endpoint_endpoint_id_headers_put, the character length must be great than or equal to 1.'
1769
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_update_headers, the character length must be great than or equal to 1.'
1689
1770
  end
1690
1771
 
1691
1772
  pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
1692
1773
  if @api_client.config.client_side_validation && endpoint_id !~ pattern
1693
- fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.update_endpoint_headers_api_v1_app_app_id_endpoint_endpoint_id_headers_put, must conform to the pattern #{pattern}."
1774
+ fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.v1_endpoint_update_headers, must conform to the pattern #{pattern}."
1694
1775
  end
1695
1776
 
1696
1777
  # verify the required parameter 'endpoint_headers_in' is set
1697
1778
  if @api_client.config.client_side_validation && endpoint_headers_in.nil?
1698
- fail ArgumentError, "Missing the required parameter 'endpoint_headers_in' when calling EndpointApi.update_endpoint_headers_api_v1_app_app_id_endpoint_endpoint_id_headers_put"
1779
+ fail ArgumentError, "Missing the required parameter 'endpoint_headers_in' when calling EndpointApi.v1_endpoint_update_headers"
1699
1780
  end
1700
1781
  # resource path
1701
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))
@@ -1709,7 +1790,6 @@ module Svix
1709
1790
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1710
1791
  # HTTP header 'Content-Type'
1711
1792
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1712
- header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
1713
1793
 
1714
1794
  # form parameters
1715
1795
  form_params = opts[:form_params] || {}
@@ -1724,7 +1804,7 @@ module Svix
1724
1804
  auth_names = opts[:debug_auth_names] || ['HTTPBearer']
1725
1805
 
1726
1806
  new_options = opts.merge(
1727
- :operation => :"EndpointApi.update_endpoint_headers_api_v1_app_app_id_endpoint_endpoint_id_headers_put",
1807
+ :operation => :"EndpointApi.v1_endpoint_update_headers",
1728
1808
  :header_params => header_params,
1729
1809
  :query_params => query_params,
1730
1810
  :form_params => form_params,
@@ -1735,7 +1815,7 @@ module Svix
1735
1815
 
1736
1816
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1737
1817
  if @api_client.config.debugging
1738
- @api_client.config.logger.debug "API called: EndpointApi#update_endpoint_headers_api_v1_app_app_id_endpoint_endpoint_id_headers_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1818
+ @api_client.config.logger.debug "API called: EndpointApi#v1_endpoint_update_headers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1739
1819
  end
1740
1820
  return data, status_code, headers
1741
1821
  end