svix 1.45.1 → 1.57.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/lib/svix/api/application_api.rb +115 -10
  4. data/lib/svix/api/authentication_api.rb +101 -16
  5. data/lib/svix/api/background_tasks_api.rb +43 -17
  6. data/lib/svix/api/endpoint_api.rb +312 -96
  7. data/lib/svix/api/inbound_api.rb +4 -4
  8. data/lib/svix/api/integration_api.rb +102 -24
  9. data/lib/svix/api/message_api.rb +142 -39
  10. data/lib/svix/api/message_attempt_api.rb +135 -372
  11. data/lib/svix/api/statistics_api.rb +6 -6
  12. data/lib/svix/api/stream_api.rb +203 -142
  13. data/lib/svix/api/transformation_template_api.rb +88 -23
  14. data/lib/svix/api/webhook_endpoint_api.rb +253 -77
  15. data/lib/svix/background_tasks_api.rb +2 -2
  16. data/lib/svix/message_attempt_api.rb +7 -3
  17. data/lib/svix/models/active_application_out.rb +373 -0
  18. data/lib/svix/models/active_endpoint_out.rb +355 -0
  19. data/lib/svix/models/aggregate_event_types_out.rb +40 -0
  20. data/lib/svix/models/aggregated_event_types.rb +305 -0
  21. data/lib/svix/models/app_portal_access_in.rb +18 -0
  22. data/lib/svix/models/app_usage_stats_out.rb +40 -0
  23. data/lib/svix/models/application_message_failure.rb +277 -0
  24. data/lib/svix/models/application_message_id_pair.rb +317 -0
  25. data/lib/svix/models/application_out.rb +41 -2
  26. data/lib/svix/models/application_patch.rb +1 -1
  27. data/lib/svix/models/application_stats.rb +41 -2
  28. data/lib/svix/models/application_stats_out.rb +324 -0
  29. data/lib/svix/models/auth_token_out.rb +40 -1
  30. data/lib/svix/models/background_task_finished_event.rb +272 -0
  31. data/lib/svix/models/background_task_finished_event2.rb +331 -0
  32. data/lib/svix/models/background_task_out.rb +40 -0
  33. data/lib/svix/models/background_task_type.rb +2 -1
  34. data/lib/svix/models/{template_in.rb → connector_in.rb} +4 -4
  35. data/lib/svix/models/{transformation_template_kind.rb → connector_kind.rb} +3 -3
  36. data/lib/svix/models/create_stream_in.rb +12 -12
  37. data/lib/svix/models/data.rb +108 -0
  38. data/lib/svix/models/data_any_of.rb +240 -0
  39. data/lib/svix/models/data_any_of1.rb +223 -0
  40. data/lib/svix/models/data_any_of2.rb +241 -0
  41. data/lib/svix/models/data_any_of3.rb +223 -0
  42. data/lib/svix/models/data_any_of4.rb +240 -0
  43. data/lib/svix/models/endpoint_created_event_data.rb +82 -4
  44. data/lib/svix/models/endpoint_deleted_event_data.rb +82 -4
  45. data/lib/svix/models/endpoint_disabled_event.rb +1 -1
  46. data/lib/svix/models/endpoint_disabled_event_data.rb +119 -16
  47. data/lib/svix/models/endpoint_disabled_trigger.rb +40 -0
  48. data/lib/svix/models/endpoint_enabled_event.rb +272 -0
  49. data/lib/svix/models/endpoint_enabled_event_data.rb +410 -0
  50. data/lib/svix/models/endpoint_message_out.rb +40 -1
  51. data/lib/svix/models/endpoint_mtls_config_out.rb +215 -0
  52. data/lib/svix/models/endpoint_oauth_config_in.rb +2 -2
  53. data/lib/svix/models/endpoint_oauth_config_out.rb +315 -0
  54. data/lib/svix/models/endpoint_out.rb +40 -1
  55. data/lib/svix/models/endpoint_patch.rb +1 -1
  56. data/lib/svix/models/endpoint_updated_event_data.rb +82 -4
  57. data/lib/svix/models/environment_in.rb +17 -19
  58. data/lib/svix/models/environment_settings_out.rb +23 -1
  59. data/lib/svix/models/event_type_import_open_api_in.rb +14 -2
  60. data/lib/svix/models/export_event_type_out.rb +40 -0
  61. data/lib/svix/models/expung_all_contents_out.rb +315 -0
  62. data/lib/svix/models/inbound_path_params.rb +1 -1
  63. data/lib/svix/models/integration_in.rb +41 -1
  64. data/lib/svix/models/integration_out.rb +81 -2
  65. data/lib/svix/models/integration_update.rb +41 -1
  66. data/lib/svix/models/list_response_active_application_out.rb +261 -0
  67. data/lib/svix/models/message_attempt_endpoint_out.rb +120 -3
  68. data/lib/svix/models/message_attempt_exhausted_event_data.rb +122 -5
  69. data/lib/svix/models/message_attempt_failed_data.rb +40 -1
  70. data/lib/svix/models/message_attempt_failing_event_data.rb +122 -5
  71. data/lib/svix/models/message_attempt_out.rb +120 -3
  72. data/lib/svix/models/message_attempt_recovered_event_data.rb +122 -5
  73. data/lib/svix/models/message_broadcast_out.rb +40 -0
  74. data/lib/svix/models/message_endpoint_out.rb +40 -1
  75. data/lib/svix/models/message_out.rb +40 -1
  76. data/lib/svix/models/message_precheck_in.rb +288 -0
  77. data/lib/svix/models/message_precheck_out.rb +221 -0
  78. data/lib/svix/models/{oauth2_auth_method_in.rb → oauth2_auth_method_in_out.rb} +3 -3
  79. data/lib/svix/models/{oauth2_grant_type_in.rb → oauth2_grant_type_in_out.rb} +3 -3
  80. data/lib/svix/models/operational_webhook_endpoint_headers_in.rb +223 -0
  81. data/lib/svix/models/operational_webhook_endpoint_headers_out.rb +251 -0
  82. data/lib/svix/models/operational_webhook_endpoint_out.rb +40 -1
  83. data/lib/svix/models/polling_endpoint_message_out.rb +454 -0
  84. data/lib/svix/models/polling_endpoint_out.rb +255 -0
  85. data/lib/svix/models/recover_out.rb +40 -0
  86. data/lib/svix/models/replay_out.rb +40 -0
  87. data/lib/svix/models/rotate_poller_token_in.rb +1 -1
  88. data/lib/svix/models/sink_secret_out.rb +233 -0
  89. data/lib/svix/models/stream_in.rb +6 -7
  90. data/lib/svix/models/stream_out.rb +46 -7
  91. data/lib/svix/models/stream_patch.rb +6 -7
  92. data/lib/svix/models/stream_portal_access_in.rb +293 -0
  93. data/lib/svix/models/template_out.rb +81 -1
  94. data/lib/svix/models/template_patch.rb +1 -1
  95. data/lib/svix/models/template_update.rb +1 -1
  96. data/lib/svix/version.rb +1 -1
  97. metadata +35 -7
  98. data/lib/svix/operational_webhook_endpoint_api.rb +0 -37
@@ -25,8 +25,8 @@ module Svix
25
25
  # @param [Hash] opts the optional parameters
26
26
  # @option opts [String] :idempotency_key The request's idempotency key
27
27
  # @return [OperationalWebhookEndpointOut]
28
- def create_operational_webhook_endpoint(operational_webhook_endpoint_in, opts = {})
29
- data, _status_code, _headers = create_operational_webhook_endpoint_with_http_info(operational_webhook_endpoint_in, opts)
28
+ def v1_operational_webhook_endpoint_create(operational_webhook_endpoint_in, opts = {})
29
+ data, _status_code, _headers = v1_operational_webhook_endpoint_create_with_http_info(operational_webhook_endpoint_in, opts)
30
30
  data
31
31
  end
32
32
 
@@ -36,13 +36,13 @@ module Svix
36
36
  # @param [Hash] opts the optional parameters
37
37
  # @option opts [String] :idempotency_key The request's idempotency key
38
38
  # @return [Array<(OperationalWebhookEndpointOut, Integer, Hash)>] OperationalWebhookEndpointOut data, response status code and response headers
39
- def create_operational_webhook_endpoint_with_http_info(operational_webhook_endpoint_in, opts = {})
39
+ def v1_operational_webhook_endpoint_create_with_http_info(operational_webhook_endpoint_in, opts = {})
40
40
  if @api_client.config.debugging
41
- @api_client.config.logger.debug 'Calling API: WebhookEndpointApi.create_operational_webhook_endpoint ...'
41
+ @api_client.config.logger.debug 'Calling API: WebhookEndpointApi.v1_operational_webhook_endpoint_create ...'
42
42
  end
43
43
  # verify the required parameter 'operational_webhook_endpoint_in' is set
44
44
  if @api_client.config.client_side_validation && operational_webhook_endpoint_in.nil?
45
- fail ArgumentError, "Missing the required parameter 'operational_webhook_endpoint_in' when calling WebhookEndpointApi.create_operational_webhook_endpoint"
45
+ fail ArgumentError, "Missing the required parameter 'operational_webhook_endpoint_in' when calling WebhookEndpointApi.v1_operational_webhook_endpoint_create"
46
46
  end
47
47
  # resource path
48
48
  local_var_path = '/api/v1/operational-webhook/endpoint'
@@ -74,7 +74,7 @@ module Svix
74
74
  auth_names = opts[:debug_auth_names] || ['HTTPBearer']
75
75
 
76
76
  new_options = opts.merge(
77
- :operation => :"WebhookEndpointApi.create_operational_webhook_endpoint",
77
+ :operation => :"WebhookEndpointApi.v1_operational_webhook_endpoint_create",
78
78
  :header_params => header_params,
79
79
  :query_params => query_params,
80
80
  :form_params => form_params,
@@ -85,45 +85,45 @@ module Svix
85
85
 
86
86
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
87
87
  if @api_client.config.debugging
88
- @api_client.config.logger.debug "API called: WebhookEndpointApi#create_operational_webhook_endpoint\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
88
+ @api_client.config.logger.debug "API called: WebhookEndpointApi#v1_operational_webhook_endpoint_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
89
89
  end
90
90
  return data, status_code, headers
91
91
  end
92
92
 
93
93
  # Delete Operational Webhook Endpoint
94
94
  # Delete an operational webhook endpoint.
95
- # @param endpoint_id [String] The ep&#39;s ID or UID
95
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
96
96
  # @param [Hash] opts the optional parameters
97
97
  # @return [nil]
98
- def delete_operational_webhook_endpoint(endpoint_id, opts = {})
99
- delete_operational_webhook_endpoint_with_http_info(endpoint_id, opts)
98
+ def v1_operational_webhook_endpoint_delete(endpoint_id, opts = {})
99
+ v1_operational_webhook_endpoint_delete_with_http_info(endpoint_id, opts)
100
100
  nil
101
101
  end
102
102
 
103
103
  # Delete Operational Webhook Endpoint
104
104
  # Delete an operational webhook endpoint.
105
- # @param endpoint_id [String] The ep&#39;s ID or UID
105
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
106
106
  # @param [Hash] opts the optional parameters
107
107
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
108
- def delete_operational_webhook_endpoint_with_http_info(endpoint_id, opts = {})
108
+ def v1_operational_webhook_endpoint_delete_with_http_info(endpoint_id, opts = {})
109
109
  if @api_client.config.debugging
110
- @api_client.config.logger.debug 'Calling API: WebhookEndpointApi.delete_operational_webhook_endpoint ...'
110
+ @api_client.config.logger.debug 'Calling API: WebhookEndpointApi.v1_operational_webhook_endpoint_delete ...'
111
111
  end
112
112
  # verify the required parameter 'endpoint_id' is set
113
113
  if @api_client.config.client_side_validation && endpoint_id.nil?
114
- fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling WebhookEndpointApi.delete_operational_webhook_endpoint"
114
+ fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling WebhookEndpointApi.v1_operational_webhook_endpoint_delete"
115
115
  end
116
116
  if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
117
- fail ArgumentError, 'invalid value for "endpoint_id" when calling WebhookEndpointApi.delete_operational_webhook_endpoint, the character length must be smaller than or equal to 256.'
117
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling WebhookEndpointApi.v1_operational_webhook_endpoint_delete, the character length must be smaller than or equal to 256.'
118
118
  end
119
119
 
120
120
  if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
121
- fail ArgumentError, 'invalid value for "endpoint_id" when calling WebhookEndpointApi.delete_operational_webhook_endpoint, the character length must be great than or equal to 1.'
121
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling WebhookEndpointApi.v1_operational_webhook_endpoint_delete, the character length must be great than or equal to 1.'
122
122
  end
123
123
 
124
124
  pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
125
125
  if @api_client.config.client_side_validation && endpoint_id !~ pattern
126
- fail ArgumentError, "invalid value for 'endpoint_id' when calling WebhookEndpointApi.delete_operational_webhook_endpoint, must conform to the pattern #{pattern}."
126
+ fail ArgumentError, "invalid value for 'endpoint_id' when calling WebhookEndpointApi.v1_operational_webhook_endpoint_delete, must conform to the pattern #{pattern}."
127
127
  end
128
128
 
129
129
  # resource path
@@ -150,7 +150,7 @@ module Svix
150
150
  auth_names = opts[:debug_auth_names] || ['HTTPBearer']
151
151
 
152
152
  new_options = opts.merge(
153
- :operation => :"WebhookEndpointApi.delete_operational_webhook_endpoint",
153
+ :operation => :"WebhookEndpointApi.v1_operational_webhook_endpoint_delete",
154
154
  :header_params => header_params,
155
155
  :query_params => query_params,
156
156
  :form_params => form_params,
@@ -161,45 +161,45 @@ module Svix
161
161
 
162
162
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
163
163
  if @api_client.config.debugging
164
- @api_client.config.logger.debug "API called: WebhookEndpointApi#delete_operational_webhook_endpoint\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
164
+ @api_client.config.logger.debug "API called: WebhookEndpointApi#v1_operational_webhook_endpoint_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
165
165
  end
166
166
  return data, status_code, headers
167
167
  end
168
168
 
169
169
  # Get Operational Webhook Endpoint
170
170
  # Get an operational webhook endpoint.
171
- # @param endpoint_id [String] The ep&#39;s ID or UID
171
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
172
172
  # @param [Hash] opts the optional parameters
173
173
  # @return [OperationalWebhookEndpointOut]
174
- def get_operational_webhook_endpoint(endpoint_id, opts = {})
175
- data, _status_code, _headers = get_operational_webhook_endpoint_with_http_info(endpoint_id, opts)
174
+ def v1_operational_webhook_endpoint_get(endpoint_id, opts = {})
175
+ data, _status_code, _headers = v1_operational_webhook_endpoint_get_with_http_info(endpoint_id, opts)
176
176
  data
177
177
  end
178
178
 
179
179
  # Get Operational Webhook Endpoint
180
180
  # Get an operational webhook endpoint.
181
- # @param endpoint_id [String] The ep&#39;s ID or UID
181
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
182
182
  # @param [Hash] opts the optional parameters
183
183
  # @return [Array<(OperationalWebhookEndpointOut, Integer, Hash)>] OperationalWebhookEndpointOut data, response status code and response headers
184
- def get_operational_webhook_endpoint_with_http_info(endpoint_id, opts = {})
184
+ def v1_operational_webhook_endpoint_get_with_http_info(endpoint_id, opts = {})
185
185
  if @api_client.config.debugging
186
- @api_client.config.logger.debug 'Calling API: WebhookEndpointApi.get_operational_webhook_endpoint ...'
186
+ @api_client.config.logger.debug 'Calling API: WebhookEndpointApi.v1_operational_webhook_endpoint_get ...'
187
187
  end
188
188
  # verify the required parameter 'endpoint_id' is set
189
189
  if @api_client.config.client_side_validation && endpoint_id.nil?
190
- fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling WebhookEndpointApi.get_operational_webhook_endpoint"
190
+ fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling WebhookEndpointApi.v1_operational_webhook_endpoint_get"
191
191
  end
192
192
  if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
193
- fail ArgumentError, 'invalid value for "endpoint_id" when calling WebhookEndpointApi.get_operational_webhook_endpoint, the character length must be smaller than or equal to 256.'
193
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling WebhookEndpointApi.v1_operational_webhook_endpoint_get, the character length must be smaller than or equal to 256.'
194
194
  end
195
195
 
196
196
  if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
197
- fail ArgumentError, 'invalid value for "endpoint_id" when calling WebhookEndpointApi.get_operational_webhook_endpoint, the character length must be great than or equal to 1.'
197
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling WebhookEndpointApi.v1_operational_webhook_endpoint_get, the character length must be great than or equal to 1.'
198
198
  end
199
199
 
200
200
  pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
201
201
  if @api_client.config.client_side_validation && endpoint_id !~ pattern
202
- fail ArgumentError, "invalid value for 'endpoint_id' when calling WebhookEndpointApi.get_operational_webhook_endpoint, must conform to the pattern #{pattern}."
202
+ fail ArgumentError, "invalid value for 'endpoint_id' when calling WebhookEndpointApi.v1_operational_webhook_endpoint_get, must conform to the pattern #{pattern}."
203
203
  end
204
204
 
205
205
  # resource path
@@ -226,7 +226,7 @@ module Svix
226
226
  auth_names = opts[:debug_auth_names] || ['HTTPBearer']
227
227
 
228
228
  new_options = opts.merge(
229
- :operation => :"WebhookEndpointApi.get_operational_webhook_endpoint",
229
+ :operation => :"WebhookEndpointApi.v1_operational_webhook_endpoint_get",
230
230
  :header_params => header_params,
231
231
  :query_params => query_params,
232
232
  :form_params => form_params,
@@ -237,45 +237,121 @@ module Svix
237
237
 
238
238
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
239
239
  if @api_client.config.debugging
240
- @api_client.config.logger.debug "API called: WebhookEndpointApi#get_operational_webhook_endpoint\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
240
+ @api_client.config.logger.debug "API called: WebhookEndpointApi#v1_operational_webhook_endpoint_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
241
+ end
242
+ return data, status_code, headers
243
+ end
244
+
245
+ # Get Operational Webhook Endpoint Headers
246
+ # Get the additional headers to be sent with the operational webhook.
247
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
248
+ # @param [Hash] opts the optional parameters
249
+ # @return [OperationalWebhookEndpointHeadersOut]
250
+ def v1_operational_webhook_endpoint_get_headers(endpoint_id, opts = {})
251
+ data, _status_code, _headers = v1_operational_webhook_endpoint_get_headers_with_http_info(endpoint_id, opts)
252
+ data
253
+ end
254
+
255
+ # Get Operational Webhook Endpoint Headers
256
+ # Get the additional headers to be sent with the operational webhook.
257
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
258
+ # @param [Hash] opts the optional parameters
259
+ # @return [Array<(OperationalWebhookEndpointHeadersOut, Integer, Hash)>] OperationalWebhookEndpointHeadersOut data, response status code and response headers
260
+ def v1_operational_webhook_endpoint_get_headers_with_http_info(endpoint_id, opts = {})
261
+ if @api_client.config.debugging
262
+ @api_client.config.logger.debug 'Calling API: WebhookEndpointApi.v1_operational_webhook_endpoint_get_headers ...'
263
+ end
264
+ # verify the required parameter 'endpoint_id' is set
265
+ if @api_client.config.client_side_validation && endpoint_id.nil?
266
+ fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling WebhookEndpointApi.v1_operational_webhook_endpoint_get_headers"
267
+ end
268
+ if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
269
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling WebhookEndpointApi.v1_operational_webhook_endpoint_get_headers, the character length must be smaller than or equal to 256.'
270
+ end
271
+
272
+ if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
273
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling WebhookEndpointApi.v1_operational_webhook_endpoint_get_headers, the character length must be great than or equal to 1.'
274
+ end
275
+
276
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
277
+ if @api_client.config.client_side_validation && endpoint_id !~ pattern
278
+ fail ArgumentError, "invalid value for 'endpoint_id' when calling WebhookEndpointApi.v1_operational_webhook_endpoint_get_headers, must conform to the pattern #{pattern}."
279
+ end
280
+
281
+ # resource path
282
+ local_var_path = '/api/v1/operational-webhook/endpoint/{endpoint_id}/headers'.sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
283
+
284
+ # query parameters
285
+ query_params = opts[:query_params] || {}
286
+
287
+ # header parameters
288
+ header_params = opts[:header_params] || {}
289
+ # HTTP header 'Accept' (if needed)
290
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
291
+
292
+ # form parameters
293
+ form_params = opts[:form_params] || {}
294
+
295
+ # http body (model)
296
+ post_body = opts[:debug_body]
297
+
298
+ # return_type
299
+ return_type = opts[:debug_return_type] || 'OperationalWebhookEndpointHeadersOut'
300
+
301
+ # auth_names
302
+ auth_names = opts[:debug_auth_names] || ['HTTPBearer']
303
+
304
+ new_options = opts.merge(
305
+ :operation => :"WebhookEndpointApi.v1_operational_webhook_endpoint_get_headers",
306
+ :header_params => header_params,
307
+ :query_params => query_params,
308
+ :form_params => form_params,
309
+ :body => post_body,
310
+ :auth_names => auth_names,
311
+ :return_type => return_type
312
+ )
313
+
314
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
315
+ if @api_client.config.debugging
316
+ @api_client.config.logger.debug "API called: WebhookEndpointApi#v1_operational_webhook_endpoint_get_headers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
241
317
  end
242
318
  return data, status_code, headers
243
319
  end
244
320
 
245
321
  # Get Operational Webhook Endpoint Secret
246
322
  # Get an operational webhook 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/).
247
- # @param endpoint_id [String] The ep&#39;s ID or UID
323
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
248
324
  # @param [Hash] opts the optional parameters
249
325
  # @return [OperationalWebhookEndpointSecretOut]
250
- def get_operational_webhook_endpoint_secret(endpoint_id, opts = {})
251
- data, _status_code, _headers = get_operational_webhook_endpoint_secret_with_http_info(endpoint_id, opts)
326
+ def v1_operational_webhook_endpoint_get_secret(endpoint_id, opts = {})
327
+ data, _status_code, _headers = v1_operational_webhook_endpoint_get_secret_with_http_info(endpoint_id, opts)
252
328
  data
253
329
  end
254
330
 
255
331
  # Get Operational Webhook Endpoint Secret
256
332
  # Get an operational webhook 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/).
257
- # @param endpoint_id [String] The ep&#39;s ID or UID
333
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
258
334
  # @param [Hash] opts the optional parameters
259
335
  # @return [Array<(OperationalWebhookEndpointSecretOut, Integer, Hash)>] OperationalWebhookEndpointSecretOut data, response status code and response headers
260
- def get_operational_webhook_endpoint_secret_with_http_info(endpoint_id, opts = {})
336
+ def v1_operational_webhook_endpoint_get_secret_with_http_info(endpoint_id, opts = {})
261
337
  if @api_client.config.debugging
262
- @api_client.config.logger.debug 'Calling API: WebhookEndpointApi.get_operational_webhook_endpoint_secret ...'
338
+ @api_client.config.logger.debug 'Calling API: WebhookEndpointApi.v1_operational_webhook_endpoint_get_secret ...'
263
339
  end
264
340
  # verify the required parameter 'endpoint_id' is set
265
341
  if @api_client.config.client_side_validation && endpoint_id.nil?
266
- fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling WebhookEndpointApi.get_operational_webhook_endpoint_secret"
342
+ fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling WebhookEndpointApi.v1_operational_webhook_endpoint_get_secret"
267
343
  end
268
344
  if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
269
- fail ArgumentError, 'invalid value for "endpoint_id" when calling WebhookEndpointApi.get_operational_webhook_endpoint_secret, the character length must be smaller than or equal to 256.'
345
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling WebhookEndpointApi.v1_operational_webhook_endpoint_get_secret, the character length must be smaller than or equal to 256.'
270
346
  end
271
347
 
272
348
  if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
273
- fail ArgumentError, 'invalid value for "endpoint_id" when calling WebhookEndpointApi.get_operational_webhook_endpoint_secret, the character length must be great than or equal to 1.'
349
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling WebhookEndpointApi.v1_operational_webhook_endpoint_get_secret, the character length must be great than or equal to 1.'
274
350
  end
275
351
 
276
352
  pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
277
353
  if @api_client.config.client_side_validation && endpoint_id !~ pattern
278
- fail ArgumentError, "invalid value for 'endpoint_id' when calling WebhookEndpointApi.get_operational_webhook_endpoint_secret, must conform to the pattern #{pattern}."
354
+ fail ArgumentError, "invalid value for 'endpoint_id' when calling WebhookEndpointApi.v1_operational_webhook_endpoint_get_secret, must conform to the pattern #{pattern}."
279
355
  end
280
356
 
281
357
  # resource path
@@ -302,7 +378,7 @@ module Svix
302
378
  auth_names = opts[:debug_auth_names] || ['HTTPBearer']
303
379
 
304
380
  new_options = opts.merge(
305
- :operation => :"WebhookEndpointApi.get_operational_webhook_endpoint_secret",
381
+ :operation => :"WebhookEndpointApi.v1_operational_webhook_endpoint_get_secret",
306
382
  :header_params => header_params,
307
383
  :query_params => query_params,
308
384
  :form_params => form_params,
@@ -313,7 +389,7 @@ module Svix
313
389
 
314
390
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
315
391
  if @api_client.config.debugging
316
- @api_client.config.logger.debug "API called: WebhookEndpointApi#get_operational_webhook_endpoint_secret\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
392
+ @api_client.config.logger.debug "API called: WebhookEndpointApi#v1_operational_webhook_endpoint_get_secret\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
317
393
  end
318
394
  return data, status_code, headers
319
395
  end
@@ -325,8 +401,8 @@ module Svix
325
401
  # @option opts [String] :iterator The iterator returned from a prior invocation
326
402
  # @option opts [Ordering] :order The sorting order of the returned items
327
403
  # @return [ListResponseOperationalWebhookEndpointOut]
328
- def list_operational_webhook_endpoints(opts = {})
329
- data, _status_code, _headers = list_operational_webhook_endpoints_with_http_info(opts)
404
+ def v1_operational_webhook_endpoint_list(opts = {})
405
+ data, _status_code, _headers = v1_operational_webhook_endpoint_list_with_http_info(opts)
330
406
  data
331
407
  end
332
408
 
@@ -337,16 +413,29 @@ module Svix
337
413
  # @option opts [String] :iterator The iterator returned from a prior invocation
338
414
  # @option opts [Ordering] :order The sorting order of the returned items
339
415
  # @return [Array<(ListResponseOperationalWebhookEndpointOut, Integer, Hash)>] ListResponseOperationalWebhookEndpointOut data, response status code and response headers
340
- def list_operational_webhook_endpoints_with_http_info(opts = {})
416
+ def v1_operational_webhook_endpoint_list_with_http_info(opts = {})
341
417
  if @api_client.config.debugging
342
- @api_client.config.logger.debug 'Calling API: WebhookEndpointApi.list_operational_webhook_endpoints ...'
418
+ @api_client.config.logger.debug 'Calling API: WebhookEndpointApi.v1_operational_webhook_endpoint_list ...'
343
419
  end
344
420
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 250
345
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling WebhookEndpointApi.list_operational_webhook_endpoints, must be smaller than or equal to 250.'
421
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling WebhookEndpointApi.v1_operational_webhook_endpoint_list, must be smaller than or equal to 250.'
346
422
  end
347
423
 
348
424
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
349
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling WebhookEndpointApi.list_operational_webhook_endpoints, must be greater than or equal to 1.'
425
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling WebhookEndpointApi.v1_operational_webhook_endpoint_list, must be greater than or equal to 1.'
426
+ end
427
+
428
+ if @api_client.config.client_side_validation && !opts[:'iterator'].nil? && opts[:'iterator'].to_s.length > 30
429
+ fail ArgumentError, 'invalid value for "opts[:"iterator"]" when calling WebhookEndpointApi.v1_operational_webhook_endpoint_list, the character length must be smaller than or equal to 30.'
430
+ end
431
+
432
+ if @api_client.config.client_side_validation && !opts[:'iterator'].nil? && opts[:'iterator'].to_s.length < 30
433
+ fail ArgumentError, 'invalid value for "opts[:"iterator"]" when calling WebhookEndpointApi.v1_operational_webhook_endpoint_list, the character length must be great than or equal to 30.'
434
+ end
435
+
436
+ pattern = Regexp.new(/^ep_[A-Za-z0-9]{27}$/)
437
+ if @api_client.config.client_side_validation && !opts[:'iterator'].nil? && opts[:'iterator'] !~ pattern
438
+ fail ArgumentError, "invalid value for 'opts[:\"iterator\"]' when calling WebhookEndpointApi.v1_operational_webhook_endpoint_list, must conform to the pattern #{pattern}."
350
439
  end
351
440
 
352
441
  # resource path
@@ -376,7 +465,7 @@ module Svix
376
465
  auth_names = opts[:debug_auth_names] || ['HTTPBearer']
377
466
 
378
467
  new_options = opts.merge(
379
- :operation => :"WebhookEndpointApi.list_operational_webhook_endpoints",
468
+ :operation => :"WebhookEndpointApi.v1_operational_webhook_endpoint_list",
380
469
  :header_params => header_params,
381
470
  :query_params => query_params,
382
471
  :form_params => form_params,
@@ -387,54 +476,54 @@ module Svix
387
476
 
388
477
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
389
478
  if @api_client.config.debugging
390
- @api_client.config.logger.debug "API called: WebhookEndpointApi#list_operational_webhook_endpoints\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
479
+ @api_client.config.logger.debug "API called: WebhookEndpointApi#v1_operational_webhook_endpoint_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
391
480
  end
392
481
  return data, status_code, headers
393
482
  end
394
483
 
395
484
  # Rotate Operational Webhook Endpoint Secret
396
485
  # Rotates an operational webhook endpoint's signing secret. The previous secret will remain valid for the next 24 hours.
397
- # @param endpoint_id [String] The ep&#39;s ID or UID
486
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
398
487
  # @param operational_webhook_endpoint_secret_in [OperationalWebhookEndpointSecretIn]
399
488
  # @param [Hash] opts the optional parameters
400
489
  # @option opts [String] :idempotency_key The request&#39;s idempotency key
401
490
  # @return [nil]
402
- def rotate_operational_webhook_endpoint_secret(endpoint_id, operational_webhook_endpoint_secret_in, opts = {})
403
- rotate_operational_webhook_endpoint_secret_with_http_info(endpoint_id, operational_webhook_endpoint_secret_in, opts)
491
+ def v1_operational_webhook_endpoint_rotate_secret(endpoint_id, operational_webhook_endpoint_secret_in, opts = {})
492
+ v1_operational_webhook_endpoint_rotate_secret_with_http_info(endpoint_id, operational_webhook_endpoint_secret_in, opts)
404
493
  nil
405
494
  end
406
495
 
407
496
  # Rotate Operational Webhook Endpoint Secret
408
497
  # Rotates an operational webhook endpoint&#39;s signing secret. The previous secret will remain valid for the next 24 hours.
409
- # @param endpoint_id [String] The ep&#39;s ID or UID
498
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
410
499
  # @param operational_webhook_endpoint_secret_in [OperationalWebhookEndpointSecretIn]
411
500
  # @param [Hash] opts the optional parameters
412
501
  # @option opts [String] :idempotency_key The request&#39;s idempotency key
413
502
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
414
- def rotate_operational_webhook_endpoint_secret_with_http_info(endpoint_id, operational_webhook_endpoint_secret_in, opts = {})
503
+ def v1_operational_webhook_endpoint_rotate_secret_with_http_info(endpoint_id, operational_webhook_endpoint_secret_in, opts = {})
415
504
  if @api_client.config.debugging
416
- @api_client.config.logger.debug 'Calling API: WebhookEndpointApi.rotate_operational_webhook_endpoint_secret ...'
505
+ @api_client.config.logger.debug 'Calling API: WebhookEndpointApi.v1_operational_webhook_endpoint_rotate_secret ...'
417
506
  end
418
507
  # verify the required parameter 'endpoint_id' is set
419
508
  if @api_client.config.client_side_validation && endpoint_id.nil?
420
- fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling WebhookEndpointApi.rotate_operational_webhook_endpoint_secret"
509
+ fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling WebhookEndpointApi.v1_operational_webhook_endpoint_rotate_secret"
421
510
  end
422
511
  if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
423
- fail ArgumentError, 'invalid value for "endpoint_id" when calling WebhookEndpointApi.rotate_operational_webhook_endpoint_secret, the character length must be smaller than or equal to 256.'
512
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling WebhookEndpointApi.v1_operational_webhook_endpoint_rotate_secret, the character length must be smaller than or equal to 256.'
424
513
  end
425
514
 
426
515
  if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
427
- fail ArgumentError, 'invalid value for "endpoint_id" when calling WebhookEndpointApi.rotate_operational_webhook_endpoint_secret, the character length must be great than or equal to 1.'
516
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling WebhookEndpointApi.v1_operational_webhook_endpoint_rotate_secret, the character length must be great than or equal to 1.'
428
517
  end
429
518
 
430
519
  pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
431
520
  if @api_client.config.client_side_validation && endpoint_id !~ pattern
432
- fail ArgumentError, "invalid value for 'endpoint_id' when calling WebhookEndpointApi.rotate_operational_webhook_endpoint_secret, must conform to the pattern #{pattern}."
521
+ fail ArgumentError, "invalid value for 'endpoint_id' when calling WebhookEndpointApi.v1_operational_webhook_endpoint_rotate_secret, must conform to the pattern #{pattern}."
433
522
  end
434
523
 
435
524
  # verify the required parameter 'operational_webhook_endpoint_secret_in' is set
436
525
  if @api_client.config.client_side_validation && operational_webhook_endpoint_secret_in.nil?
437
- fail ArgumentError, "Missing the required parameter 'operational_webhook_endpoint_secret_in' when calling WebhookEndpointApi.rotate_operational_webhook_endpoint_secret"
526
+ fail ArgumentError, "Missing the required parameter 'operational_webhook_endpoint_secret_in' when calling WebhookEndpointApi.v1_operational_webhook_endpoint_rotate_secret"
438
527
  end
439
528
  # resource path
440
529
  local_var_path = '/api/v1/operational-webhook/endpoint/{endpoint_id}/secret/rotate'.sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
@@ -466,7 +555,7 @@ module Svix
466
555
  auth_names = opts[:debug_auth_names] || ['HTTPBearer']
467
556
 
468
557
  new_options = opts.merge(
469
- :operation => :"WebhookEndpointApi.rotate_operational_webhook_endpoint_secret",
558
+ :operation => :"WebhookEndpointApi.v1_operational_webhook_endpoint_rotate_secret",
470
559
  :header_params => header_params,
471
560
  :query_params => query_params,
472
561
  :form_params => form_params,
@@ -477,52 +566,52 @@ module Svix
477
566
 
478
567
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
479
568
  if @api_client.config.debugging
480
- @api_client.config.logger.debug "API called: WebhookEndpointApi#rotate_operational_webhook_endpoint_secret\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
569
+ @api_client.config.logger.debug "API called: WebhookEndpointApi#v1_operational_webhook_endpoint_rotate_secret\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
481
570
  end
482
571
  return data, status_code, headers
483
572
  end
484
573
 
485
574
  # Update Operational Webhook Endpoint
486
575
  # Update an operational webhook endpoint.
487
- # @param endpoint_id [String] The ep&#39;s ID or UID
576
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
488
577
  # @param operational_webhook_endpoint_update [OperationalWebhookEndpointUpdate]
489
578
  # @param [Hash] opts the optional parameters
490
579
  # @return [OperationalWebhookEndpointOut]
491
- def update_operational_webhook_endpoint(endpoint_id, operational_webhook_endpoint_update, opts = {})
492
- data, _status_code, _headers = update_operational_webhook_endpoint_with_http_info(endpoint_id, operational_webhook_endpoint_update, opts)
580
+ def v1_operational_webhook_endpoint_update(endpoint_id, operational_webhook_endpoint_update, opts = {})
581
+ data, _status_code, _headers = v1_operational_webhook_endpoint_update_with_http_info(endpoint_id, operational_webhook_endpoint_update, opts)
493
582
  data
494
583
  end
495
584
 
496
585
  # Update Operational Webhook Endpoint
497
586
  # Update an operational webhook endpoint.
498
- # @param endpoint_id [String] The ep&#39;s ID or UID
587
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
499
588
  # @param operational_webhook_endpoint_update [OperationalWebhookEndpointUpdate]
500
589
  # @param [Hash] opts the optional parameters
501
590
  # @return [Array<(OperationalWebhookEndpointOut, Integer, Hash)>] OperationalWebhookEndpointOut data, response status code and response headers
502
- def update_operational_webhook_endpoint_with_http_info(endpoint_id, operational_webhook_endpoint_update, opts = {})
591
+ def v1_operational_webhook_endpoint_update_with_http_info(endpoint_id, operational_webhook_endpoint_update, opts = {})
503
592
  if @api_client.config.debugging
504
- @api_client.config.logger.debug 'Calling API: WebhookEndpointApi.update_operational_webhook_endpoint ...'
593
+ @api_client.config.logger.debug 'Calling API: WebhookEndpointApi.v1_operational_webhook_endpoint_update ...'
505
594
  end
506
595
  # verify the required parameter 'endpoint_id' is set
507
596
  if @api_client.config.client_side_validation && endpoint_id.nil?
508
- fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling WebhookEndpointApi.update_operational_webhook_endpoint"
597
+ fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling WebhookEndpointApi.v1_operational_webhook_endpoint_update"
509
598
  end
510
599
  if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
511
- fail ArgumentError, 'invalid value for "endpoint_id" when calling WebhookEndpointApi.update_operational_webhook_endpoint, the character length must be smaller than or equal to 256.'
600
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling WebhookEndpointApi.v1_operational_webhook_endpoint_update, the character length must be smaller than or equal to 256.'
512
601
  end
513
602
 
514
603
  if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
515
- fail ArgumentError, 'invalid value for "endpoint_id" when calling WebhookEndpointApi.update_operational_webhook_endpoint, the character length must be great than or equal to 1.'
604
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling WebhookEndpointApi.v1_operational_webhook_endpoint_update, the character length must be great than or equal to 1.'
516
605
  end
517
606
 
518
607
  pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
519
608
  if @api_client.config.client_side_validation && endpoint_id !~ pattern
520
- fail ArgumentError, "invalid value for 'endpoint_id' when calling WebhookEndpointApi.update_operational_webhook_endpoint, must conform to the pattern #{pattern}."
609
+ fail ArgumentError, "invalid value for 'endpoint_id' when calling WebhookEndpointApi.v1_operational_webhook_endpoint_update, must conform to the pattern #{pattern}."
521
610
  end
522
611
 
523
612
  # verify the required parameter 'operational_webhook_endpoint_update' is set
524
613
  if @api_client.config.client_side_validation && operational_webhook_endpoint_update.nil?
525
- fail ArgumentError, "Missing the required parameter 'operational_webhook_endpoint_update' when calling WebhookEndpointApi.update_operational_webhook_endpoint"
614
+ fail ArgumentError, "Missing the required parameter 'operational_webhook_endpoint_update' when calling WebhookEndpointApi.v1_operational_webhook_endpoint_update"
526
615
  end
527
616
  # resource path
528
617
  local_var_path = '/api/v1/operational-webhook/endpoint/{endpoint_id}'.sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
@@ -553,7 +642,94 @@ module Svix
553
642
  auth_names = opts[:debug_auth_names] || ['HTTPBearer']
554
643
 
555
644
  new_options = opts.merge(
556
- :operation => :"WebhookEndpointApi.update_operational_webhook_endpoint",
645
+ :operation => :"WebhookEndpointApi.v1_operational_webhook_endpoint_update",
646
+ :header_params => header_params,
647
+ :query_params => query_params,
648
+ :form_params => form_params,
649
+ :body => post_body,
650
+ :auth_names => auth_names,
651
+ :return_type => return_type
652
+ )
653
+
654
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
655
+ if @api_client.config.debugging
656
+ @api_client.config.logger.debug "API called: WebhookEndpointApi#v1_operational_webhook_endpoint_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
657
+ end
658
+ return data, status_code, headers
659
+ end
660
+
661
+ # Update Operational Webhook Endpoint Headers
662
+ # Set the additional headers to be sent with the operational webhook.
663
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
664
+ # @param operational_webhook_endpoint_headers_in [OperationalWebhookEndpointHeadersIn]
665
+ # @param [Hash] opts the optional parameters
666
+ # @return [nil]
667
+ def v1_operational_webhook_endpoint_update_headers(endpoint_id, operational_webhook_endpoint_headers_in, opts = {})
668
+ v1_operational_webhook_endpoint_update_headers_with_http_info(endpoint_id, operational_webhook_endpoint_headers_in, opts)
669
+ nil
670
+ end
671
+
672
+ # Update Operational Webhook Endpoint Headers
673
+ # Set the additional headers to be sent with the operational webhook.
674
+ # @param endpoint_id [String] The Endpoint&#39;s ID or UID.
675
+ # @param operational_webhook_endpoint_headers_in [OperationalWebhookEndpointHeadersIn]
676
+ # @param [Hash] opts the optional parameters
677
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
678
+ def v1_operational_webhook_endpoint_update_headers_with_http_info(endpoint_id, operational_webhook_endpoint_headers_in, opts = {})
679
+ if @api_client.config.debugging
680
+ @api_client.config.logger.debug 'Calling API: WebhookEndpointApi.v1_operational_webhook_endpoint_update_headers ...'
681
+ end
682
+ # verify the required parameter 'endpoint_id' is set
683
+ if @api_client.config.client_side_validation && endpoint_id.nil?
684
+ fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling WebhookEndpointApi.v1_operational_webhook_endpoint_update_headers"
685
+ end
686
+ if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
687
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling WebhookEndpointApi.v1_operational_webhook_endpoint_update_headers, the character length must be smaller than or equal to 256.'
688
+ end
689
+
690
+ if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
691
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling WebhookEndpointApi.v1_operational_webhook_endpoint_update_headers, the character length must be great than or equal to 1.'
692
+ end
693
+
694
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
695
+ if @api_client.config.client_side_validation && endpoint_id !~ pattern
696
+ fail ArgumentError, "invalid value for 'endpoint_id' when calling WebhookEndpointApi.v1_operational_webhook_endpoint_update_headers, must conform to the pattern #{pattern}."
697
+ end
698
+
699
+ # verify the required parameter 'operational_webhook_endpoint_headers_in' is set
700
+ if @api_client.config.client_side_validation && operational_webhook_endpoint_headers_in.nil?
701
+ fail ArgumentError, "Missing the required parameter 'operational_webhook_endpoint_headers_in' when calling WebhookEndpointApi.v1_operational_webhook_endpoint_update_headers"
702
+ end
703
+ # resource path
704
+ local_var_path = '/api/v1/operational-webhook/endpoint/{endpoint_id}/headers'.sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
705
+
706
+ # query parameters
707
+ query_params = opts[:query_params] || {}
708
+
709
+ # header parameters
710
+ header_params = opts[:header_params] || {}
711
+ # HTTP header 'Accept' (if needed)
712
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
713
+ # HTTP header 'Content-Type'
714
+ content_type = @api_client.select_header_content_type(['application/json'])
715
+ if !content_type.nil?
716
+ header_params['Content-Type'] = content_type
717
+ end
718
+
719
+ # form parameters
720
+ form_params = opts[:form_params] || {}
721
+
722
+ # http body (model)
723
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(operational_webhook_endpoint_headers_in)
724
+
725
+ # return_type
726
+ return_type = opts[:debug_return_type]
727
+
728
+ # auth_names
729
+ auth_names = opts[:debug_auth_names] || ['HTTPBearer']
730
+
731
+ new_options = opts.merge(
732
+ :operation => :"WebhookEndpointApi.v1_operational_webhook_endpoint_update_headers",
557
733
  :header_params => header_params,
558
734
  :query_params => query_params,
559
735
  :form_params => form_params,
@@ -564,7 +740,7 @@ module Svix
564
740
 
565
741
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
566
742
  if @api_client.config.debugging
567
- @api_client.config.logger.debug "API called: WebhookEndpointApi#update_operational_webhook_endpoint\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
743
+ @api_client.config.logger.debug "API called: WebhookEndpointApi#v1_operational_webhook_endpoint_update_headers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
568
744
  end
569
745
  return data, status_code, headers
570
746
  end
@@ -7,11 +7,11 @@ module Svix
7
7
  end
8
8
 
9
9
  def list(options = {})
10
- return @api.list_background_tasks(options)
10
+ return @api.v1_background_task_list(options)
11
11
  end
12
12
 
13
13
  def get(task_id, options = {})
14
- return @api.get_background_task(task_id, options)
14
+ return @api.v1_background_task_get(task_id, options)
15
15
  end
16
16
  end
17
17
  end