svix 0.84.0 → 0.84.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/svix/api/application_api.rb +29 -25
- data/lib/svix/api/authentication_api.rb +13 -13
- data/lib/svix/api/background_tasks_api.rb +9 -5
- data/lib/svix/api/endpoint_api.rb +101 -97
- data/lib/svix/api/environment_api.rb +3 -3
- data/lib/svix/api/environment_settings_api.rb +2 -2
- data/lib/svix/api/event_type_api.rb +24 -20
- data/lib/svix/api/health_api.rb +1 -1
- data/lib/svix/api/integration_api.rb +40 -36
- data/lib/svix/api/message_api.rb +27 -23
- data/lib/svix/api/message_attempt_api.rb +117 -93
- data/lib/svix/api/statistics_api.rb +22 -22
- data/lib/svix/api_client.rb +2 -1
- data/lib/svix/api_error.rb +1 -1
- data/lib/svix/configuration.rb +9 -1
- data/lib/svix/models/app_portal_access_in.rb +1 -1
- data/lib/svix/models/app_portal_access_out.rb +1 -1
- data/lib/svix/models/{calculate_app_stats_in.rb → app_usage_stats_in.rb} +4 -4
- data/lib/svix/models/{background_task_out_common.rb → app_usage_stats_out.rb} +4 -4
- data/lib/svix/models/application_in.rb +1 -1
- data/lib/svix/models/application_out.rb +3 -1
- data/lib/svix/models/application_patch.rb +2 -1
- data/lib/svix/models/application_stats.rb +3 -1
- data/lib/svix/models/application_token_expire_in.rb +1 -1
- data/lib/svix/models/attempt_statistics_data.rb +1 -1
- data/lib/svix/models/attempt_statistics_response.rb +1 -1
- data/lib/svix/models/background_task_out.rb +1 -1
- data/lib/svix/models/background_task_status.rb +1 -1
- data/lib/svix/models/background_task_type.rb +1 -1
- data/lib/svix/models/border_radius_config.rb +1 -1
- data/lib/svix/models/border_radius_enum.rb +1 -1
- data/lib/svix/models/custom_color_palette.rb +1 -1
- data/lib/svix/models/custom_theme_override.rb +1 -1
- data/lib/svix/models/dashboard_access_out.rb +1 -1
- data/lib/svix/models/endpoint_created_event.rb +1 -1
- data/lib/svix/models/endpoint_created_event_data.rb +5 -1
- data/lib/svix/models/endpoint_deleted_event.rb +1 -1
- data/lib/svix/models/endpoint_deleted_event_data.rb +5 -1
- data/lib/svix/models/endpoint_disabled_event.rb +1 -1
- data/lib/svix/models/endpoint_disabled_event_data.rb +5 -1
- data/lib/svix/models/endpoint_headers_in.rb +1 -1
- data/lib/svix/models/endpoint_headers_out.rb +1 -1
- data/lib/svix/models/endpoint_headers_patch_in.rb +1 -1
- data/lib/svix/models/endpoint_in.rb +1 -1
- data/lib/svix/models/endpoint_message_out.rb +3 -1
- data/lib/svix/models/endpoint_out.rb +2 -1
- data/lib/svix/models/endpoint_patch.rb +2 -1
- data/lib/svix/models/endpoint_secret_out.rb +1 -1
- data/lib/svix/models/endpoint_secret_rotate_in.rb +1 -1
- data/lib/svix/models/endpoint_stats.rb +1 -1
- data/lib/svix/models/endpoint_transformation_in.rb +1 -1
- data/lib/svix/models/endpoint_transformation_out.rb +1 -1
- data/lib/svix/models/endpoint_transformation_simulate_in.rb +2 -1
- data/lib/svix/models/endpoint_transformation_simulate_out.rb +1 -1
- data/lib/svix/models/endpoint_update.rb +1 -1
- data/lib/svix/models/endpoint_updated_event.rb +1 -1
- data/lib/svix/models/endpoint_updated_event_data.rb +5 -1
- data/lib/svix/models/environment_in.rb +1 -1
- data/lib/svix/models/environment_out.rb +1 -1
- data/lib/svix/models/environment_settings_out.rb +1 -1
- data/lib/svix/models/event_example_in.rb +2 -1
- data/lib/svix/models/event_type_example_out.rb +1 -1
- data/lib/svix/models/event_type_in.rb +2 -1
- data/lib/svix/models/event_type_out.rb +2 -1
- data/lib/svix/models/event_type_patch.rb +1 -1
- data/lib/svix/models/event_type_schema_in.rb +1 -1
- data/lib/svix/models/event_type_update.rb +1 -1
- data/lib/svix/models/font_size_config.rb +1 -1
- data/lib/svix/models/http_error_out.rb +1 -1
- data/lib/svix/models/http_validation_error.rb +1 -1
- data/lib/svix/models/integration_in.rb +1 -1
- data/lib/svix/models/integration_key_out.rb +1 -1
- data/lib/svix/models/integration_out.rb +2 -1
- data/lib/svix/models/integration_update.rb +1 -1
- data/lib/svix/models/list_response_application_out.rb +1 -1
- data/lib/svix/models/list_response_application_stats.rb +1 -1
- data/lib/svix/models/list_response_background_task_out.rb +1 -1
- data/lib/svix/models/list_response_endpoint_message_out.rb +1 -1
- data/lib/svix/models/list_response_endpoint_out.rb +1 -1
- data/lib/svix/models/list_response_event_type_out.rb +1 -1
- data/lib/svix/models/list_response_integration_out.rb +1 -1
- data/lib/svix/models/list_response_message_attempt_endpoint_out.rb +1 -1
- data/lib/svix/models/list_response_message_attempt_out.rb +1 -1
- data/lib/svix/models/list_response_message_endpoint_out.rb +1 -1
- data/lib/svix/models/list_response_message_out.rb +1 -1
- data/lib/svix/models/message_attempt_endpoint_out.rb +4 -1
- data/lib/svix/models/message_attempt_exhausted_event.rb +1 -1
- data/lib/svix/models/message_attempt_exhausted_event_data.rb +6 -1
- data/lib/svix/models/message_attempt_failed_data.rb +2 -1
- data/lib/svix/models/message_attempt_failing_event.rb +1 -1
- data/lib/svix/models/message_attempt_failing_event_data.rb +6 -1
- data/lib/svix/models/message_attempt_headers_out.rb +1 -1
- data/lib/svix/models/message_attempt_out.rb +4 -1
- data/lib/svix/models/message_attempt_trigger_type.rb +1 -1
- data/lib/svix/models/message_endpoint_out.rb +2 -1
- data/lib/svix/models/message_in.rb +2 -1
- data/lib/svix/models/message_out.rb +3 -1
- data/lib/svix/models/message_status.rb +1 -1
- data/lib/svix/models/ordering.rb +1 -1
- data/lib/svix/models/recover_in.rb +1 -1
- data/lib/svix/models/recover_out.rb +1 -1
- data/lib/svix/models/replay_in.rb +1 -1
- data/lib/svix/models/replay_out.rb +1 -1
- data/lib/svix/models/settings_in.rb +1 -1
- data/lib/svix/models/settings_out.rb +1 -1
- data/lib/svix/models/statistics_period.rb +1 -1
- data/lib/svix/models/status_code_class.rb +1 -1
- data/lib/svix/models/transformation_http_method.rb +1 -1
- data/lib/svix/models/validation_error.rb +1 -1
- data/lib/svix/version.rb +1 -1
- metadata +4 -4
@@ -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,11 +19,11 @@ module Svix
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
#
|
22
|
+
# Delete attempt response body
|
23
23
|
# Deletes the given attempt's response body. Useful when an endpoint accidentally returned sensitive content.
|
24
|
-
# @param app_id [String]
|
25
|
-
# @param msg_id [String]
|
26
|
-
# @param attempt_id [String]
|
24
|
+
# @param app_id [String] The app's ID or UID
|
25
|
+
# @param msg_id [String] The msg's ID or UID
|
26
|
+
# @param attempt_id [String] The attempt's ID
|
27
27
|
# @param [Hash] opts the optional parameters
|
28
28
|
# @return [nil]
|
29
29
|
def v1_message_attempt_expunge_content(app_id, msg_id, attempt_id, opts = {})
|
@@ -31,11 +31,11 @@ module Svix
|
|
31
31
|
nil
|
32
32
|
end
|
33
33
|
|
34
|
-
#
|
34
|
+
# Delete attempt response body
|
35
35
|
# Deletes the given attempt's response body. Useful when an endpoint accidentally returned sensitive content.
|
36
|
-
# @param app_id [String]
|
37
|
-
# @param msg_id [String]
|
38
|
-
# @param attempt_id [String]
|
36
|
+
# @param app_id [String] The app's ID or UID
|
37
|
+
# @param msg_id [String] The msg's ID or UID
|
38
|
+
# @param attempt_id [String] The attempt's ID
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
40
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
41
41
|
def v1_message_attempt_expunge_content_with_http_info(app_id, msg_id, attempt_id, opts = {})
|
@@ -101,7 +101,7 @@ module Svix
|
|
101
101
|
return_type = opts[:debug_return_type]
|
102
102
|
|
103
103
|
# auth_names
|
104
|
-
auth_names = opts[:debug_auth_names] || []
|
104
|
+
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
105
105
|
|
106
106
|
new_options = opts.merge(
|
107
107
|
:operation => :"MessageAttemptApi.v1_message_attempt_expunge_content",
|
@@ -120,11 +120,11 @@ module Svix
|
|
120
120
|
return data, status_code, headers
|
121
121
|
end
|
122
122
|
|
123
|
-
# Get
|
123
|
+
# Get Attempt
|
124
124
|
# `msg_id`: Use a message id or a message `eventId`
|
125
|
-
# @param app_id [String]
|
126
|
-
# @param msg_id [String]
|
127
|
-
# @param attempt_id [String]
|
125
|
+
# @param app_id [String] The app's ID or UID
|
126
|
+
# @param msg_id [String] The msg's ID or UID
|
127
|
+
# @param attempt_id [String] The attempt's ID
|
128
128
|
# @param [Hash] opts the optional parameters
|
129
129
|
# @return [MessageAttemptOut]
|
130
130
|
def v1_message_attempt_get(app_id, msg_id, attempt_id, opts = {})
|
@@ -132,11 +132,11 @@ module Svix
|
|
132
132
|
data
|
133
133
|
end
|
134
134
|
|
135
|
-
# Get
|
135
|
+
# Get Attempt
|
136
136
|
# `msg_id`: Use a message id or a message `eventId`
|
137
|
-
# @param app_id [String]
|
138
|
-
# @param msg_id [String]
|
139
|
-
# @param attempt_id [String]
|
137
|
+
# @param app_id [String] The app's ID or UID
|
138
|
+
# @param msg_id [String] The msg's ID or UID
|
139
|
+
# @param attempt_id [String] The attempt's ID
|
140
140
|
# @param [Hash] opts the optional parameters
|
141
141
|
# @return [Array<(MessageAttemptOut, Integer, Hash)>] MessageAttemptOut data, response status code and response headers
|
142
142
|
def v1_message_attempt_get_with_http_info(app_id, msg_id, attempt_id, opts = {})
|
@@ -202,7 +202,7 @@ module Svix
|
|
202
202
|
return_type = opts[:debug_return_type] || 'MessageAttemptOut'
|
203
203
|
|
204
204
|
# auth_names
|
205
|
-
auth_names = opts[:debug_auth_names] || []
|
205
|
+
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
206
206
|
|
207
207
|
new_options = opts.merge(
|
208
208
|
:operation => :"MessageAttemptApi.v1_message_attempt_get",
|
@@ -223,9 +223,9 @@ module Svix
|
|
223
223
|
|
224
224
|
# Get Attempt Headers
|
225
225
|
# Calculate and return headers used on a given message attempt
|
226
|
-
# @param app_id [String]
|
227
|
-
# @param msg_id [String]
|
228
|
-
# @param attempt_id [String]
|
226
|
+
# @param app_id [String] The app's ID or UID
|
227
|
+
# @param msg_id [String] The msg's ID or UID
|
228
|
+
# @param attempt_id [String] The attempt's ID
|
229
229
|
# @param [Hash] opts the optional parameters
|
230
230
|
# @return [MessageAttemptHeadersOut]
|
231
231
|
def v1_message_attempt_get_headers(app_id, msg_id, attempt_id, opts = {})
|
@@ -235,9 +235,9 @@ module Svix
|
|
235
235
|
|
236
236
|
# Get Attempt Headers
|
237
237
|
# Calculate and return headers used on a given message attempt
|
238
|
-
# @param app_id [String]
|
239
|
-
# @param msg_id [String]
|
240
|
-
# @param attempt_id [String]
|
238
|
+
# @param app_id [String] The app's ID or UID
|
239
|
+
# @param msg_id [String] The msg's ID or UID
|
240
|
+
# @param attempt_id [String] The attempt's ID
|
241
241
|
# @param [Hash] opts the optional parameters
|
242
242
|
# @return [Array<(MessageAttemptHeadersOut, Integer, Hash)>] MessageAttemptHeadersOut data, response status code and response headers
|
243
243
|
def v1_message_attempt_get_headers_with_http_info(app_id, msg_id, attempt_id, opts = {})
|
@@ -303,7 +303,7 @@ module Svix
|
|
303
303
|
return_type = opts[:debug_return_type] || 'MessageAttemptHeadersOut'
|
304
304
|
|
305
305
|
# auth_names
|
306
|
-
auth_names = opts[:debug_auth_names] || []
|
306
|
+
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
307
307
|
|
308
308
|
new_options = opts.merge(
|
309
309
|
:operation => :"MessageAttemptApi.v1_message_attempt_get_headers",
|
@@ -324,8 +324,8 @@ module Svix
|
|
324
324
|
|
325
325
|
# List Attempted Destinations
|
326
326
|
# `msg_id`: Use a message id or a message `eventId`
|
327
|
-
# @param app_id [String]
|
328
|
-
# @param msg_id [String]
|
327
|
+
# @param app_id [String] The app's ID or UID
|
328
|
+
# @param msg_id [String] The msg's ID or UID
|
329
329
|
# @param [Hash] opts the optional parameters
|
330
330
|
# @option opts [Integer] :limit
|
331
331
|
# @option opts [String] :iterator
|
@@ -337,8 +337,8 @@ module Svix
|
|
337
337
|
|
338
338
|
# List Attempted Destinations
|
339
339
|
# `msg_id`: Use a message id or a message `eventId`
|
340
|
-
# @param app_id [String]
|
341
|
-
# @param msg_id [String]
|
340
|
+
# @param app_id [String] The app's ID or UID
|
341
|
+
# @param msg_id [String] The msg's ID or UID
|
342
342
|
# @param [Hash] opts the optional parameters
|
343
343
|
# @option opts [Integer] :limit
|
344
344
|
# @option opts [String] :iterator
|
@@ -381,8 +381,12 @@ module Svix
|
|
381
381
|
fail ArgumentError, "invalid value for 'msg_id' when calling MessageAttemptApi.v1_message_attempt_list_attempted_destinations, must conform to the pattern #{pattern}."
|
382
382
|
end
|
383
383
|
|
384
|
-
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit']
|
385
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling MessageAttemptApi.v1_message_attempt_list_attempted_destinations, must be
|
384
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 250
|
385
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling MessageAttemptApi.v1_message_attempt_list_attempted_destinations, must be smaller than or equal to 250.'
|
386
|
+
end
|
387
|
+
|
388
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
389
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling MessageAttemptApi.v1_message_attempt_list_attempted_destinations, must be greater than or equal to 1.'
|
386
390
|
end
|
387
391
|
|
388
392
|
# resource path
|
@@ -408,7 +412,7 @@ module Svix
|
|
408
412
|
return_type = opts[:debug_return_type] || 'ListResponseMessageEndpointOut'
|
409
413
|
|
410
414
|
# auth_names
|
411
|
-
auth_names = opts[:debug_auth_names] || []
|
415
|
+
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
412
416
|
|
413
417
|
new_options = opts.merge(
|
414
418
|
:operation => :"MessageAttemptApi.v1_message_attempt_list_attempted_destinations",
|
@@ -429,11 +433,11 @@ module Svix
|
|
429
433
|
|
430
434
|
# List Attempted Messages
|
431
435
|
# List messages for a particular endpoint. Additionally includes metadata about the latest message attempt. The `before` parameter lets you filter all items created before a certain date and is ignored if an iterator is passed.
|
432
|
-
# @param app_id [String]
|
433
|
-
# @param endpoint_id [String]
|
436
|
+
# @param app_id [String] The app's ID or UID
|
437
|
+
# @param endpoint_id [String] The ep's ID or UID
|
434
438
|
# @param [Hash] opts the optional parameters
|
435
439
|
# @option opts [Integer] :limit
|
436
|
-
# @option opts [String] :iterator
|
440
|
+
# @option opts [String] :iterator The msg's ID
|
437
441
|
# @option opts [String] :channel
|
438
442
|
# @option opts [MessageStatus] :status
|
439
443
|
# @option opts [Time] :before
|
@@ -446,11 +450,11 @@ module Svix
|
|
446
450
|
|
447
451
|
# List Attempted Messages
|
448
452
|
# List messages for a particular endpoint. Additionally includes metadata about the latest message attempt. The `before` parameter lets you filter all items created before a certain date and is ignored if an iterator is passed.
|
449
|
-
# @param app_id [String]
|
450
|
-
# @param endpoint_id [String]
|
453
|
+
# @param app_id [String] The app's ID or UID
|
454
|
+
# @param endpoint_id [String] The ep's ID or UID
|
451
455
|
# @param [Hash] opts the optional parameters
|
452
456
|
# @option opts [Integer] :limit
|
453
|
-
# @option opts [String] :iterator
|
457
|
+
# @option opts [String] :iterator The msg's ID
|
454
458
|
# @option opts [String] :channel
|
455
459
|
# @option opts [MessageStatus] :status
|
456
460
|
# @option opts [Time] :before
|
@@ -494,8 +498,12 @@ module Svix
|
|
494
498
|
fail ArgumentError, "invalid value for 'endpoint_id' when calling MessageAttemptApi.v1_message_attempt_list_attempted_messages, must conform to the pattern #{pattern}."
|
495
499
|
end
|
496
500
|
|
497
|
-
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit']
|
498
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling MessageAttemptApi.v1_message_attempt_list_attempted_messages, must be
|
501
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 250
|
502
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling MessageAttemptApi.v1_message_attempt_list_attempted_messages, must be smaller than or equal to 250.'
|
503
|
+
end
|
504
|
+
|
505
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
506
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling MessageAttemptApi.v1_message_attempt_list_attempted_messages, must be greater than or equal to 1.'
|
499
507
|
end
|
500
508
|
|
501
509
|
if @api_client.config.client_side_validation && !opts[:'channel'].nil? && opts[:'channel'].to_s.length > 128
|
@@ -534,7 +542,7 @@ module Svix
|
|
534
542
|
return_type = opts[:debug_return_type] || 'ListResponseEndpointMessageOut'
|
535
543
|
|
536
544
|
# auth_names
|
537
|
-
auth_names = opts[:debug_auth_names] || []
|
545
|
+
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
538
546
|
|
539
547
|
new_options = opts.merge(
|
540
548
|
:operation => :"MessageAttemptApi.v1_message_attempt_list_attempted_messages",
|
@@ -555,11 +563,11 @@ module Svix
|
|
555
563
|
|
556
564
|
# List Attempts By Endpoint
|
557
565
|
# List attempts by endpoint id
|
558
|
-
# @param app_id [String]
|
559
|
-
# @param endpoint_id [String]
|
566
|
+
# @param app_id [String] The app's ID or UID
|
567
|
+
# @param endpoint_id [String] The ep's ID or UID
|
560
568
|
# @param [Hash] opts the optional parameters
|
561
569
|
# @option opts [Integer] :limit
|
562
|
-
# @option opts [String] :iterator
|
570
|
+
# @option opts [String] :iterator The attempt's ID
|
563
571
|
# @option opts [MessageStatus] :status
|
564
572
|
# @option opts [StatusCodeClass] :status_code_class
|
565
573
|
# @option opts [String] :channel
|
@@ -574,11 +582,11 @@ module Svix
|
|
574
582
|
|
575
583
|
# List Attempts By Endpoint
|
576
584
|
# List attempts by endpoint id
|
577
|
-
# @param app_id [String]
|
578
|
-
# @param endpoint_id [String]
|
585
|
+
# @param app_id [String] The app's ID or UID
|
586
|
+
# @param endpoint_id [String] The ep's ID or UID
|
579
587
|
# @param [Hash] opts the optional parameters
|
580
588
|
# @option opts [Integer] :limit
|
581
|
-
# @option opts [String] :iterator
|
589
|
+
# @option opts [String] :iterator The attempt's ID
|
582
590
|
# @option opts [MessageStatus] :status
|
583
591
|
# @option opts [StatusCodeClass] :status_code_class
|
584
592
|
# @option opts [String] :channel
|
@@ -624,8 +632,12 @@ module Svix
|
|
624
632
|
fail ArgumentError, "invalid value for 'endpoint_id' when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint, must conform to the pattern #{pattern}."
|
625
633
|
end
|
626
634
|
|
627
|
-
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit']
|
628
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint, must be
|
635
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 250
|
636
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint, must be smaller than or equal to 250.'
|
637
|
+
end
|
638
|
+
|
639
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
640
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint, must be greater than or equal to 1.'
|
629
641
|
end
|
630
642
|
|
631
643
|
if @api_client.config.client_side_validation && !opts[:'channel'].nil? && opts[:'channel'].to_s.length > 128
|
@@ -666,7 +678,7 @@ module Svix
|
|
666
678
|
return_type = opts[:debug_return_type] || 'ListResponseMessageAttemptOut'
|
667
679
|
|
668
680
|
# auth_names
|
669
|
-
auth_names = opts[:debug_auth_names] || []
|
681
|
+
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
670
682
|
|
671
683
|
new_options = opts.merge(
|
672
684
|
:operation => :"MessageAttemptApi.v1_message_attempt_list_by_endpoint",
|
@@ -687,12 +699,12 @@ module Svix
|
|
687
699
|
|
688
700
|
# List Attempts For Endpoint
|
689
701
|
# DEPRECATED: please use list_attempts with endpoint_id as a query parameter instead. List the message attempts for a particular endpoint. Returning the endpoint. The `before` parameter lets you filter all items created before a certain date and is ignored if an iterator is passed.
|
690
|
-
# @param app_id [String]
|
691
|
-
# @param msg_id [String]
|
692
|
-
# @param endpoint_id [String]
|
702
|
+
# @param app_id [String] The app's ID or UID
|
703
|
+
# @param msg_id [String] The msg's ID or UID
|
704
|
+
# @param endpoint_id [String] The ep's ID or UID
|
693
705
|
# @param [Hash] opts the optional parameters
|
694
706
|
# @option opts [Integer] :limit
|
695
|
-
# @option opts [String] :iterator
|
707
|
+
# @option opts [String] :iterator The attempt's ID
|
696
708
|
# @option opts [String] :channel
|
697
709
|
# @option opts [MessageStatus] :status
|
698
710
|
# @option opts [Time] :before
|
@@ -706,12 +718,12 @@ module Svix
|
|
706
718
|
|
707
719
|
# List Attempts For Endpoint
|
708
720
|
# DEPRECATED: please use list_attempts with endpoint_id as a query parameter instead. List the message attempts for a particular endpoint. Returning the endpoint. The `before` parameter lets you filter all items created before a certain date and is ignored if an iterator is passed.
|
709
|
-
# @param app_id [String]
|
710
|
-
# @param msg_id [String]
|
711
|
-
# @param endpoint_id [String]
|
721
|
+
# @param app_id [String] The app's ID or UID
|
722
|
+
# @param msg_id [String] The msg's ID or UID
|
723
|
+
# @param endpoint_id [String] The ep's ID or UID
|
712
724
|
# @param [Hash] opts the optional parameters
|
713
725
|
# @option opts [Integer] :limit
|
714
|
-
# @option opts [String] :iterator
|
726
|
+
# @option opts [String] :iterator The attempt's ID
|
715
727
|
# @option opts [String] :channel
|
716
728
|
# @option opts [MessageStatus] :status
|
717
729
|
# @option opts [Time] :before
|
@@ -773,8 +785,12 @@ module Svix
|
|
773
785
|
fail ArgumentError, "invalid value for 'endpoint_id' when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint_deprecated, must conform to the pattern #{pattern}."
|
774
786
|
end
|
775
787
|
|
776
|
-
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit']
|
777
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint_deprecated, must be
|
788
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 250
|
789
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint_deprecated, must be smaller than or equal to 250.'
|
790
|
+
end
|
791
|
+
|
792
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
793
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling MessageAttemptApi.v1_message_attempt_list_by_endpoint_deprecated, must be greater than or equal to 1.'
|
778
794
|
end
|
779
795
|
|
780
796
|
if @api_client.config.client_side_validation && !opts[:'channel'].nil? && opts[:'channel'].to_s.length > 128
|
@@ -814,7 +830,7 @@ module Svix
|
|
814
830
|
return_type = opts[:debug_return_type] || 'ListResponseMessageAttemptEndpointOut'
|
815
831
|
|
816
832
|
# auth_names
|
817
|
-
auth_names = opts[:debug_auth_names] || []
|
833
|
+
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
818
834
|
|
819
835
|
new_options = opts.merge(
|
820
836
|
:operation => :"MessageAttemptApi.v1_message_attempt_list_by_endpoint_deprecated",
|
@@ -835,15 +851,15 @@ module Svix
|
|
835
851
|
|
836
852
|
# List Attempts By Msg
|
837
853
|
# List attempts by message id
|
838
|
-
# @param app_id [String]
|
839
|
-
# @param msg_id [String]
|
854
|
+
# @param app_id [String] The app's ID or UID
|
855
|
+
# @param msg_id [String] The msg's ID or UID
|
840
856
|
# @param [Hash] opts the optional parameters
|
841
857
|
# @option opts [Integer] :limit
|
842
|
-
# @option opts [String] :iterator
|
858
|
+
# @option opts [String] :iterator The attempt's ID
|
843
859
|
# @option opts [MessageStatus] :status
|
844
860
|
# @option opts [StatusCodeClass] :status_code_class
|
845
861
|
# @option opts [String] :channel
|
846
|
-
# @option opts [String] :endpoint_id
|
862
|
+
# @option opts [String] :endpoint_id The ep's ID or UID
|
847
863
|
# @option opts [Time] :before
|
848
864
|
# @option opts [Time] :after
|
849
865
|
# @option opts [Array<String>] :event_types
|
@@ -855,15 +871,15 @@ module Svix
|
|
855
871
|
|
856
872
|
# List Attempts By Msg
|
857
873
|
# List attempts by message id
|
858
|
-
# @param app_id [String]
|
859
|
-
# @param msg_id [String]
|
874
|
+
# @param app_id [String] The app's ID or UID
|
875
|
+
# @param msg_id [String] The msg's ID or UID
|
860
876
|
# @param [Hash] opts the optional parameters
|
861
877
|
# @option opts [Integer] :limit
|
862
|
-
# @option opts [String] :iterator
|
878
|
+
# @option opts [String] :iterator The attempt's ID
|
863
879
|
# @option opts [MessageStatus] :status
|
864
880
|
# @option opts [StatusCodeClass] :status_code_class
|
865
881
|
# @option opts [String] :channel
|
866
|
-
# @option opts [String] :endpoint_id
|
882
|
+
# @option opts [String] :endpoint_id The ep's ID or UID
|
867
883
|
# @option opts [Time] :before
|
868
884
|
# @option opts [Time] :after
|
869
885
|
# @option opts [Array<String>] :event_types
|
@@ -906,8 +922,12 @@ module Svix
|
|
906
922
|
fail ArgumentError, "invalid value for 'msg_id' when calling MessageAttemptApi.v1_message_attempt_list_by_msg, must conform to the pattern #{pattern}."
|
907
923
|
end
|
908
924
|
|
909
|
-
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit']
|
910
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling MessageAttemptApi.v1_message_attempt_list_by_msg, must be
|
925
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 250
|
926
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling MessageAttemptApi.v1_message_attempt_list_by_msg, must be smaller than or equal to 250.'
|
927
|
+
end
|
928
|
+
|
929
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
930
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling MessageAttemptApi.v1_message_attempt_list_by_msg, must be greater than or equal to 1.'
|
911
931
|
end
|
912
932
|
|
913
933
|
if @api_client.config.client_side_validation && !opts[:'channel'].nil? && opts[:'channel'].to_s.length > 128
|
@@ -962,7 +982,7 @@ module Svix
|
|
962
982
|
return_type = opts[:debug_return_type] || 'ListResponseMessageAttemptOut'
|
963
983
|
|
964
984
|
# auth_names
|
965
|
-
auth_names = opts[:debug_auth_names] || []
|
985
|
+
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
966
986
|
|
967
987
|
new_options = opts.merge(
|
968
988
|
:operation => :"MessageAttemptApi.v1_message_attempt_list_by_msg",
|
@@ -981,14 +1001,14 @@ module Svix
|
|
981
1001
|
return data, status_code, headers
|
982
1002
|
end
|
983
1003
|
|
984
|
-
# List
|
1004
|
+
# List Attempts
|
985
1005
|
# Deprecated: Please use \"List Attempts by Endpoint\" and \"List Attempts by Msg\" instead. `msg_id`: Use a message id or a message `eventId`
|
986
|
-
# @param app_id [String]
|
987
|
-
# @param msg_id [String]
|
1006
|
+
# @param app_id [String] The app's ID or UID
|
1007
|
+
# @param msg_id [String] The msg's ID or UID
|
988
1008
|
# @param [Hash] opts the optional parameters
|
989
1009
|
# @option opts [Integer] :limit
|
990
|
-
# @option opts [String] :iterator
|
991
|
-
# @option opts [String] :endpoint_id
|
1010
|
+
# @option opts [String] :iterator The attempt's ID
|
1011
|
+
# @option opts [String] :endpoint_id The ep's ID or UID
|
992
1012
|
# @option opts [String] :channel
|
993
1013
|
# @option opts [MessageStatus] :status
|
994
1014
|
# @option opts [Time] :before
|
@@ -1001,14 +1021,14 @@ module Svix
|
|
1001
1021
|
data
|
1002
1022
|
end
|
1003
1023
|
|
1004
|
-
# List
|
1024
|
+
# List Attempts
|
1005
1025
|
# Deprecated: Please use \"List Attempts by Endpoint\" and \"List Attempts by Msg\" instead. `msg_id`: Use a message id or a message `eventId`
|
1006
|
-
# @param app_id [String]
|
1007
|
-
# @param msg_id [String]
|
1026
|
+
# @param app_id [String] The app's ID or UID
|
1027
|
+
# @param msg_id [String] The msg's ID or UID
|
1008
1028
|
# @param [Hash] opts the optional parameters
|
1009
1029
|
# @option opts [Integer] :limit
|
1010
|
-
# @option opts [String] :iterator
|
1011
|
-
# @option opts [String] :endpoint_id
|
1030
|
+
# @option opts [String] :iterator The attempt's ID
|
1031
|
+
# @option opts [String] :endpoint_id The ep's ID or UID
|
1012
1032
|
# @option opts [String] :channel
|
1013
1033
|
# @option opts [MessageStatus] :status
|
1014
1034
|
# @option opts [Time] :before
|
@@ -1054,8 +1074,12 @@ module Svix
|
|
1054
1074
|
fail ArgumentError, "invalid value for 'msg_id' when calling MessageAttemptApi.v1_message_attempt_list_by_msg_deprecated, must conform to the pattern #{pattern}."
|
1055
1075
|
end
|
1056
1076
|
|
1057
|
-
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit']
|
1058
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling MessageAttemptApi.v1_message_attempt_list_by_msg_deprecated, must be
|
1077
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 250
|
1078
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling MessageAttemptApi.v1_message_attempt_list_by_msg_deprecated, must be smaller than or equal to 250.'
|
1079
|
+
end
|
1080
|
+
|
1081
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
1082
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling MessageAttemptApi.v1_message_attempt_list_by_msg_deprecated, must be greater than or equal to 1.'
|
1059
1083
|
end
|
1060
1084
|
|
1061
1085
|
if @api_client.config.client_side_validation && !opts[:'endpoint_id'].nil? && opts[:'endpoint_id'].to_s.length > 256
|
@@ -1110,7 +1134,7 @@ module Svix
|
|
1110
1134
|
return_type = opts[:debug_return_type] || 'ListResponseMessageAttemptOut'
|
1111
1135
|
|
1112
1136
|
# auth_names
|
1113
|
-
auth_names = opts[:debug_auth_names] || []
|
1137
|
+
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
1114
1138
|
|
1115
1139
|
new_options = opts.merge(
|
1116
1140
|
:operation => :"MessageAttemptApi.v1_message_attempt_list_by_msg_deprecated",
|
@@ -1131,9 +1155,9 @@ module Svix
|
|
1131
1155
|
|
1132
1156
|
# Resend Webhook
|
1133
1157
|
# Resend a message to the specified endpoint.
|
1134
|
-
# @param app_id [String]
|
1135
|
-
# @param msg_id [String]
|
1136
|
-
# @param endpoint_id [String]
|
1158
|
+
# @param app_id [String] The app's ID or UID
|
1159
|
+
# @param msg_id [String] The msg's ID or UID
|
1160
|
+
# @param endpoint_id [String] The ep's ID or UID
|
1137
1161
|
# @param [Hash] opts the optional parameters
|
1138
1162
|
# @option opts [String] :idempotency_key The request's idempotency key
|
1139
1163
|
# @return [nil]
|
@@ -1144,9 +1168,9 @@ module Svix
|
|
1144
1168
|
|
1145
1169
|
# Resend Webhook
|
1146
1170
|
# Resend a message to the specified endpoint.
|
1147
|
-
# @param app_id [String]
|
1148
|
-
# @param msg_id [String]
|
1149
|
-
# @param endpoint_id [String]
|
1171
|
+
# @param app_id [String] The app's ID or UID
|
1172
|
+
# @param msg_id [String] The msg's ID or UID
|
1173
|
+
# @param endpoint_id [String] The ep's ID or UID
|
1150
1174
|
# @param [Hash] opts the optional parameters
|
1151
1175
|
# @option opts [String] :idempotency_key The request's idempotency key
|
1152
1176
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
@@ -1227,7 +1251,7 @@ module Svix
|
|
1227
1251
|
return_type = opts[:debug_return_type]
|
1228
1252
|
|
1229
1253
|
# auth_names
|
1230
|
-
auth_names = opts[:debug_auth_names] || []
|
1254
|
+
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
1231
1255
|
|
1232
1256
|
new_options = opts.merge(
|
1233
1257
|
:operation => :"MessageAttemptApi.v1_message_attempt_resend",
|
@@ -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
|
@@ -21,28 +21,28 @@ module Svix
|
|
21
21
|
end
|
22
22
|
# Calculate Aggregate App Stats
|
23
23
|
# Creates a background task to calculate the message destinations for all applications in the environment.
|
24
|
-
# @param
|
24
|
+
# @param app_usage_stats_in [AppUsageStatsIn]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
26
|
# @option opts [String] :idempotency_key The request's idempotency key
|
27
|
-
# @return [
|
28
|
-
def calculate_aggregate_app_stats(
|
29
|
-
data, _status_code, _headers = calculate_aggregate_app_stats_with_http_info(
|
27
|
+
# @return [AppUsageStatsOut]
|
28
|
+
def calculate_aggregate_app_stats(app_usage_stats_in, opts = {})
|
29
|
+
data, _status_code, _headers = calculate_aggregate_app_stats_with_http_info(app_usage_stats_in, opts)
|
30
30
|
data
|
31
31
|
end
|
32
32
|
|
33
33
|
# Calculate Aggregate App Stats
|
34
34
|
# Creates a background task to calculate the message destinations for all applications in the environment.
|
35
|
-
# @param
|
35
|
+
# @param app_usage_stats_in [AppUsageStatsIn]
|
36
36
|
# @param [Hash] opts the optional parameters
|
37
37
|
# @option opts [String] :idempotency_key The request's idempotency key
|
38
|
-
# @return [Array<(
|
39
|
-
def calculate_aggregate_app_stats_with_http_info(
|
38
|
+
# @return [Array<(AppUsageStatsOut, Integer, Hash)>] AppUsageStatsOut data, response status code and response headers
|
39
|
+
def calculate_aggregate_app_stats_with_http_info(app_usage_stats_in, opts = {})
|
40
40
|
if @api_client.config.debugging
|
41
41
|
@api_client.config.logger.debug 'Calling API: StatisticsApi.calculate_aggregate_app_stats ...'
|
42
42
|
end
|
43
|
-
# verify the required parameter '
|
44
|
-
if @api_client.config.client_side_validation &&
|
45
|
-
fail ArgumentError, "Missing the required parameter '
|
43
|
+
# verify the required parameter 'app_usage_stats_in' is set
|
44
|
+
if @api_client.config.client_side_validation && app_usage_stats_in.nil?
|
45
|
+
fail ArgumentError, "Missing the required parameter 'app_usage_stats_in' when calling StatisticsApi.calculate_aggregate_app_stats"
|
46
46
|
end
|
47
47
|
# resource path
|
48
48
|
local_var_path = '/api/v1/stats/usage/app/'
|
@@ -62,13 +62,13 @@ module Svix
|
|
62
62
|
form_params = opts[:form_params] || {}
|
63
63
|
|
64
64
|
# http body (model)
|
65
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
65
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(app_usage_stats_in)
|
66
66
|
|
67
67
|
# return_type
|
68
|
-
return_type = opts[:debug_return_type] || '
|
68
|
+
return_type = opts[:debug_return_type] || 'AppUsageStatsOut'
|
69
69
|
|
70
70
|
# auth_names
|
71
|
-
auth_names = opts[:debug_auth_names] || []
|
71
|
+
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
72
72
|
|
73
73
|
new_options = opts.merge(
|
74
74
|
:operation => :"StatisticsApi.calculate_aggregate_app_stats",
|
@@ -89,7 +89,7 @@ module Svix
|
|
89
89
|
|
90
90
|
# Get App Attempt Stats
|
91
91
|
# Returns application-level statistics on message attempts
|
92
|
-
# @param app_id [String]
|
92
|
+
# @param app_id [String] The app's ID or UID
|
93
93
|
# @param [Hash] opts the optional parameters
|
94
94
|
# @option opts [Time] :start_date
|
95
95
|
# @option opts [Time] :end_date
|
@@ -101,7 +101,7 @@ module Svix
|
|
101
101
|
|
102
102
|
# Get App Attempt Stats
|
103
103
|
# Returns application-level statistics on message attempts
|
104
|
-
# @param app_id [String]
|
104
|
+
# @param app_id [String] The app's ID or UID
|
105
105
|
# @param [Hash] opts the optional parameters
|
106
106
|
# @option opts [Time] :start_date
|
107
107
|
# @option opts [Time] :end_date
|
@@ -150,7 +150,7 @@ module Svix
|
|
150
150
|
return_type = opts[:debug_return_type] || 'AttemptStatisticsResponse'
|
151
151
|
|
152
152
|
# auth_names
|
153
|
-
auth_names = opts[:debug_auth_names] || []
|
153
|
+
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
154
154
|
|
155
155
|
new_options = opts.merge(
|
156
156
|
:operation => :"StatisticsApi.v1_stats_app_attempts",
|
@@ -171,8 +171,8 @@ module Svix
|
|
171
171
|
|
172
172
|
# Get Ep Stats
|
173
173
|
# Returns endpoint-level statistics on message attempts
|
174
|
-
# @param app_id [String]
|
175
|
-
# @param endpoint_id [String]
|
174
|
+
# @param app_id [String] The app's ID or UID
|
175
|
+
# @param endpoint_id [String] The ep's ID or UID
|
176
176
|
# @param [Hash] opts the optional parameters
|
177
177
|
# @option opts [Time] :start_date
|
178
178
|
# @option opts [Time] :end_date
|
@@ -184,8 +184,8 @@ module Svix
|
|
184
184
|
|
185
185
|
# Get Ep Stats
|
186
186
|
# Returns endpoint-level statistics on message attempts
|
187
|
-
# @param app_id [String]
|
188
|
-
# @param endpoint_id [String]
|
187
|
+
# @param app_id [String] The app's ID or UID
|
188
|
+
# @param endpoint_id [String] The ep's ID or UID
|
189
189
|
# @param [Hash] opts the optional parameters
|
190
190
|
# @option opts [Time] :start_date
|
191
191
|
# @option opts [Time] :end_date
|
@@ -251,7 +251,7 @@ module Svix
|
|
251
251
|
return_type = opts[:debug_return_type] || 'AttemptStatisticsResponse'
|
252
252
|
|
253
253
|
# auth_names
|
254
|
-
auth_names = opts[:debug_auth_names] || []
|
254
|
+
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
255
255
|
|
256
256
|
new_options = opts.merge(
|
257
257
|
:operation => :"StatisticsApi.v1_stats_endpoint_attempts",
|
data/lib/svix/api_client.rb
CHANGED
@@ -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
|
@@ -110,6 +110,7 @@ module Svix
|
|
110
110
|
query_params = opts[:query_params] || {}
|
111
111
|
form_params = opts[:form_params] || {}
|
112
112
|
|
113
|
+
update_params_for_auth! header_params, query_params, opts[:auth_names]
|
113
114
|
|
114
115
|
# set ssl_verifyhosts option based on @config.verify_ssl_host (true/false)
|
115
116
|
_verify_ssl_host = @config.verify_ssl_host ? 2 : 0
|