svix 1.10.0 → 1.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (135) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/lib/svix/api/application_api.rb +20 -20
  4. data/lib/svix/api/authentication_api.rb +2 -2
  5. data/lib/svix/api/background_tasks_api.rb +12 -12
  6. data/lib/svix/api/broadcast_api.rb +2 -2
  7. data/lib/svix/api/endpoint_api.rb +12 -12
  8. data/lib/svix/api/environment_api.rb +2 -2
  9. data/lib/svix/api/environment_settings_api.rb +2 -2
  10. data/lib/svix/api/event_type_api.rb +82 -14
  11. data/lib/svix/api/health_api.rb +2 -2
  12. data/lib/svix/api/integration_api.rb +6 -6
  13. data/lib/svix/api/message_api.rb +115 -20
  14. data/lib/svix/api/message_attempt_api.rb +94 -94
  15. data/lib/svix/api/statistics_api.rb +10 -10
  16. data/lib/svix/api/transformation_template_api.rb +8 -8
  17. data/lib/svix/api_client.rb +2 -2
  18. data/lib/svix/api_error.rb +2 -2
  19. data/lib/svix/configuration.rb +10 -6
  20. data/lib/svix/event_type_api.rb +4 -0
  21. data/lib/svix/models/app_portal_access_in.rb +2 -2
  22. data/lib/svix/models/app_portal_access_out.rb +2 -2
  23. data/lib/svix/models/app_usage_stats_in.rb +2 -2
  24. data/lib/svix/models/app_usage_stats_out.rb +2 -2
  25. data/lib/svix/models/application_in.rb +2 -2
  26. data/lib/svix/models/application_out.rb +2 -2
  27. data/lib/svix/models/application_patch.rb +2 -2
  28. data/lib/svix/models/application_stats.rb +2 -2
  29. data/lib/svix/models/application_token_expire_in.rb +2 -2
  30. data/lib/svix/models/attempt_statistics_data.rb +2 -2
  31. data/lib/svix/models/attempt_statistics_response.rb +2 -2
  32. data/lib/svix/models/background_task_out.rb +2 -2
  33. data/lib/svix/models/background_task_status.rb +2 -2
  34. data/lib/svix/models/background_task_type.rb +2 -2
  35. data/lib/svix/models/border_radius_config.rb +2 -2
  36. data/lib/svix/models/border_radius_enum.rb +2 -2
  37. data/lib/svix/models/custom_color_palette.rb +2 -2
  38. data/lib/svix/models/custom_theme_override.rb +2 -2
  39. data/lib/svix/models/dashboard_access_out.rb +2 -2
  40. data/lib/svix/models/endpoint_created_event.rb +2 -2
  41. data/lib/svix/models/endpoint_created_event_data.rb +2 -2
  42. data/lib/svix/models/endpoint_deleted_event.rb +2 -2
  43. data/lib/svix/models/endpoint_deleted_event_data.rb +2 -2
  44. data/lib/svix/models/endpoint_disabled_event.rb +2 -2
  45. data/lib/svix/models/endpoint_disabled_event_data.rb +2 -2
  46. data/lib/svix/models/endpoint_headers_in.rb +2 -2
  47. data/lib/svix/models/endpoint_headers_out.rb +2 -2
  48. data/lib/svix/models/endpoint_headers_patch_in.rb +2 -2
  49. data/lib/svix/models/endpoint_in.rb +2 -2
  50. data/lib/svix/models/endpoint_message_out.rb +2 -2
  51. data/lib/svix/models/endpoint_out.rb +2 -2
  52. data/lib/svix/models/endpoint_patch.rb +2 -2
  53. data/lib/svix/models/endpoint_secret_out.rb +2 -2
  54. data/lib/svix/models/endpoint_secret_rotate_in.rb +2 -2
  55. data/lib/svix/models/endpoint_stats.rb +2 -2
  56. data/lib/svix/models/endpoint_transformation_in.rb +2 -2
  57. data/lib/svix/models/endpoint_transformation_out.rb +2 -2
  58. data/lib/svix/models/endpoint_transformation_simulate_in.rb +2 -2
  59. data/lib/svix/models/endpoint_transformation_simulate_out.rb +2 -2
  60. data/lib/svix/models/endpoint_update.rb +2 -2
  61. data/lib/svix/models/endpoint_updated_event.rb +2 -2
  62. data/lib/svix/models/endpoint_updated_event_data.rb +2 -2
  63. data/lib/svix/models/environment_in.rb +2 -2
  64. data/lib/svix/models/environment_out.rb +2 -2
  65. data/lib/svix/models/environment_settings_out.rb +2 -2
  66. data/lib/svix/models/event_example_in.rb +2 -2
  67. data/lib/svix/models/event_type_example_out.rb +2 -2
  68. data/lib/svix/models/event_type_import_open_api_in.rb +225 -0
  69. data/lib/svix/models/event_type_import_open_api_out.rb +223 -0
  70. data/lib/svix/models/event_type_import_open_api_out_data.rb +225 -0
  71. data/lib/svix/models/event_type_in.rb +2 -2
  72. data/lib/svix/models/event_type_out.rb +2 -2
  73. data/lib/svix/models/event_type_patch.rb +2 -2
  74. data/lib/svix/models/event_type_schema_in.rb +2 -2
  75. data/lib/svix/models/event_type_update.rb +2 -2
  76. data/lib/svix/models/font_size_config.rb +2 -2
  77. data/lib/svix/models/http_error_out.rb +2 -2
  78. data/lib/svix/models/http_validation_error.rb +2 -2
  79. data/lib/svix/models/integration_in.rb +2 -2
  80. data/lib/svix/models/integration_key_out.rb +2 -2
  81. data/lib/svix/models/integration_out.rb +2 -2
  82. data/lib/svix/models/integration_update.rb +2 -2
  83. data/lib/svix/models/list_response_application_out.rb +2 -2
  84. data/lib/svix/models/list_response_application_stats.rb +2 -2
  85. data/lib/svix/models/list_response_background_task_out.rb +2 -2
  86. data/lib/svix/models/list_response_endpoint_message_out.rb +2 -2
  87. data/lib/svix/models/list_response_endpoint_out.rb +2 -2
  88. data/lib/svix/models/list_response_event_type_out.rb +2 -2
  89. data/lib/svix/models/list_response_integration_out.rb +2 -2
  90. data/lib/svix/models/list_response_message_attempt_endpoint_out.rb +2 -2
  91. data/lib/svix/models/list_response_message_attempt_out.rb +2 -2
  92. data/lib/svix/models/list_response_message_endpoint_out.rb +2 -2
  93. data/lib/svix/models/list_response_message_out.rb +2 -2
  94. data/lib/svix/models/list_response_template_out.rb +2 -2
  95. data/lib/svix/models/message_attempt_endpoint_out.rb +2 -2
  96. data/lib/svix/models/message_attempt_exhausted_event.rb +2 -2
  97. data/lib/svix/models/message_attempt_exhausted_event_data.rb +2 -2
  98. data/lib/svix/models/message_attempt_failed_data.rb +2 -2
  99. data/lib/svix/models/message_attempt_failing_event.rb +2 -2
  100. data/lib/svix/models/message_attempt_failing_event_data.rb +2 -2
  101. data/lib/svix/models/message_attempt_headers_out.rb +2 -2
  102. data/lib/svix/models/message_attempt_out.rb +2 -2
  103. data/lib/svix/models/message_attempt_recovered_event.rb +2 -2
  104. data/lib/svix/models/message_attempt_recovered_event_data.rb +2 -2
  105. data/lib/svix/models/message_attempt_trigger_type.rb +2 -2
  106. data/lib/svix/models/message_broadcast_in.rb +2 -2
  107. data/lib/svix/models/message_broadcast_out.rb +2 -2
  108. data/lib/svix/models/message_endpoint_out.rb +2 -2
  109. data/lib/svix/models/message_in.rb +2 -2
  110. data/lib/svix/models/message_out.rb +2 -2
  111. data/lib/svix/models/message_raw_payload_out.rb +223 -0
  112. data/lib/svix/models/message_status.rb +2 -2
  113. data/lib/svix/models/one_time_token_in.rb +2 -2
  114. data/lib/svix/models/one_time_token_out.rb +2 -2
  115. data/lib/svix/models/ordering.rb +2 -2
  116. data/lib/svix/models/recover_in.rb +2 -2
  117. data/lib/svix/models/recover_out.rb +2 -2
  118. data/lib/svix/models/replay_in.rb +2 -2
  119. data/lib/svix/models/replay_out.rb +2 -2
  120. data/lib/svix/models/settings_in.rb +2 -2
  121. data/lib/svix/models/settings_out.rb +2 -2
  122. data/lib/svix/models/statistics_period.rb +2 -2
  123. data/lib/svix/models/status_code_class.rb +2 -2
  124. data/lib/svix/models/template_in.rb +2 -2
  125. data/lib/svix/models/template_out.rb +2 -2
  126. data/lib/svix/models/template_patch.rb +2 -2
  127. data/lib/svix/models/template_update.rb +2 -2
  128. data/lib/svix/models/transformation_http_method.rb +2 -2
  129. data/lib/svix/models/transformation_simulate_in.rb +2 -2
  130. data/lib/svix/models/transformation_simulate_out.rb +2 -2
  131. data/lib/svix/models/transformation_template_kind.rb +2 -2
  132. data/lib/svix/models/validation_error.rb +3 -3
  133. data/lib/svix/version.rb +1 -1
  134. data/lib/svix.rb +3 -0
  135. metadata +6 -2
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #Svix API
3
3
 
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}`. For more information on authentication, please refer to the [authentication token docs](https://docs.svix.com/api-keys). <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.
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 1.7.0
6
+ The version of the OpenAPI document: 1.1.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.2.0
@@ -130,7 +130,7 @@ module Svix
130
130
  # @param app_id [String] The app&#39;s ID or UID
131
131
  # @param message_in [MessageIn]
132
132
  # @param [Hash] opts the optional parameters
133
- # @option opts [Boolean] :with_content (default to true)
133
+ # @option opts [Boolean] :with_content When &#x60;true&#x60; message payloads are included in the response (default to true)
134
134
  # @option opts [String] :idempotency_key The request&#39;s idempotency key
135
135
  # @return [MessageOut]
136
136
  def v1_message_create(app_id, message_in, opts = {})
@@ -143,7 +143,7 @@ module Svix
143
143
  # @param app_id [String] The app&#39;s ID or UID
144
144
  # @param message_in [MessageIn]
145
145
  # @param [Hash] opts the optional parameters
146
- # @option opts [Boolean] :with_content
146
+ # @option opts [Boolean] :with_content When &#x60;true&#x60; message payloads are included in the response
147
147
  # @option opts [String] :idempotency_key The request&#39;s idempotency key
148
148
  # @return [Array<(MessageOut, Integer, Hash)>] MessageOut data, response status code and response headers
149
149
  def v1_message_create_with_http_info(app_id, message_in, opts = {})
@@ -315,7 +315,7 @@ module Svix
315
315
  # @param app_id [String] The app&#39;s ID or UID
316
316
  # @param msg_id [String] The msg&#39;s ID or UID
317
317
  # @param [Hash] opts the optional parameters
318
- # @option opts [Boolean] :with_content (default to true)
318
+ # @option opts [Boolean] :with_content When &#x60;true&#x60; message payloads are included in the response (default to true)
319
319
  # @return [MessageOut]
320
320
  def v1_message_get(app_id, msg_id, opts = {})
321
321
  data, _status_code, _headers = v1_message_get_with_http_info(app_id, msg_id, opts)
@@ -327,7 +327,7 @@ module Svix
327
327
  # @param app_id [String] The app&#39;s ID or UID
328
328
  # @param msg_id [String] The msg&#39;s ID or UID
329
329
  # @param [Hash] opts the optional parameters
330
- # @option opts [Boolean] :with_content
330
+ # @option opts [Boolean] :with_content When &#x60;true&#x60; message payloads are included in the response
331
331
  # @return [Array<(MessageOut, Integer, Hash)>] MessageOut data, response status code and response headers
332
332
  def v1_message_get_with_http_info(app_id, msg_id, opts = {})
333
333
  if @api_client.config.debugging
@@ -408,17 +408,112 @@ module Svix
408
408
  return data, status_code, headers
409
409
  end
410
410
 
411
+ # Get Raw Message Payload
412
+ # Get a message raw payload by its ID or eventID.
413
+ # @param app_id [String] The app&#39;s ID or UID
414
+ # @param msg_id [String] The msg&#39;s ID or UID
415
+ # @param [Hash] opts the optional parameters
416
+ # @return [MessageRawPayloadOut]
417
+ def v1_message_get_raw_payload(app_id, msg_id, opts = {})
418
+ data, _status_code, _headers = v1_message_get_raw_payload_with_http_info(app_id, msg_id, opts)
419
+ data
420
+ end
421
+
422
+ # Get Raw Message Payload
423
+ # Get a message raw payload by its ID or eventID.
424
+ # @param app_id [String] The app&#39;s ID or UID
425
+ # @param msg_id [String] The msg&#39;s ID or UID
426
+ # @param [Hash] opts the optional parameters
427
+ # @return [Array<(MessageRawPayloadOut, Integer, Hash)>] MessageRawPayloadOut data, response status code and response headers
428
+ def v1_message_get_raw_payload_with_http_info(app_id, msg_id, opts = {})
429
+ if @api_client.config.debugging
430
+ @api_client.config.logger.debug 'Calling API: MessageApi.v1_message_get_raw_payload ...'
431
+ end
432
+ # verify the required parameter 'app_id' is set
433
+ if @api_client.config.client_side_validation && app_id.nil?
434
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling MessageApi.v1_message_get_raw_payload"
435
+ end
436
+ if @api_client.config.client_side_validation && app_id.to_s.length > 256
437
+ fail ArgumentError, 'invalid value for "app_id" when calling MessageApi.v1_message_get_raw_payload, the character length must be smaller than or equal to 256.'
438
+ end
439
+
440
+ if @api_client.config.client_side_validation && app_id.to_s.length < 1
441
+ fail ArgumentError, 'invalid value for "app_id" when calling MessageApi.v1_message_get_raw_payload, the character length must be great than or equal to 1.'
442
+ end
443
+
444
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
445
+ if @api_client.config.client_side_validation && app_id !~ pattern
446
+ fail ArgumentError, "invalid value for 'app_id' when calling MessageApi.v1_message_get_raw_payload, must conform to the pattern #{pattern}."
447
+ end
448
+
449
+ # verify the required parameter 'msg_id' is set
450
+ if @api_client.config.client_side_validation && msg_id.nil?
451
+ fail ArgumentError, "Missing the required parameter 'msg_id' when calling MessageApi.v1_message_get_raw_payload"
452
+ end
453
+ if @api_client.config.client_side_validation && msg_id.to_s.length > 256
454
+ fail ArgumentError, 'invalid value for "msg_id" when calling MessageApi.v1_message_get_raw_payload, the character length must be smaller than or equal to 256.'
455
+ end
456
+
457
+ if @api_client.config.client_side_validation && msg_id.to_s.length < 1
458
+ fail ArgumentError, 'invalid value for "msg_id" when calling MessageApi.v1_message_get_raw_payload, the character length must be great than or equal to 1.'
459
+ end
460
+
461
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
462
+ if @api_client.config.client_side_validation && msg_id !~ pattern
463
+ fail ArgumentError, "invalid value for 'msg_id' when calling MessageApi.v1_message_get_raw_payload, must conform to the pattern #{pattern}."
464
+ end
465
+
466
+ # resource path
467
+ local_var_path = '/api/v1/app/{app_id}/msg/{msg_id}/raw/'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'msg_id' + '}', CGI.escape(msg_id.to_s))
468
+
469
+ # query parameters
470
+ query_params = opts[:query_params] || {}
471
+
472
+ # header parameters
473
+ header_params = opts[:header_params] || {}
474
+ # HTTP header 'Accept' (if needed)
475
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
476
+
477
+ # form parameters
478
+ form_params = opts[:form_params] || {}
479
+
480
+ # http body (model)
481
+ post_body = opts[:debug_body]
482
+
483
+ # return_type
484
+ return_type = opts[:debug_return_type] || 'MessageRawPayloadOut'
485
+
486
+ # auth_names
487
+ auth_names = opts[:debug_auth_names] || ['HTTPBearer']
488
+
489
+ new_options = opts.merge(
490
+ :operation => :"MessageApi.v1_message_get_raw_payload",
491
+ :header_params => header_params,
492
+ :query_params => query_params,
493
+ :form_params => form_params,
494
+ :body => post_body,
495
+ :auth_names => auth_names,
496
+ :return_type => return_type
497
+ )
498
+
499
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
500
+ if @api_client.config.debugging
501
+ @api_client.config.logger.debug "API called: MessageApi#v1_message_get_raw_payload\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
502
+ end
503
+ return data, status_code, headers
504
+ end
505
+
411
506
  # List Messages
412
507
  # List all of the application's messages. The `before` and `after` parameters let you filter all items created before or after a certain date. These can be used alongside an iterator to paginate over results within a certain window. Note that by default this endpoint is limited to retrieving 90 days' worth of data relative to now or, if an iterator is provided, 90 days before/after the time indicated by the iterator ID. If you require data beyond those time ranges, you will need to explicitly set the `before` or `after` parameter as appropriate.
413
508
  # @param app_id [String] The app&#39;s ID or UID
414
509
  # @param [Hash] opts the optional parameters
415
- # @option opts [Integer] :limit
416
- # @option opts [String] :iterator The msg&#39;s ID
417
- # @option opts [String] :channel
418
- # @option opts [Time] :before
419
- # @option opts [Time] :after
420
- # @option opts [Boolean] :with_content (default to false)
421
- # @option opts [Array<String>] :event_types
510
+ # @option opts [Integer] :limit Limit the number of returned items
511
+ # @option opts [String] :iterator The iterator returned from a prior invocation
512
+ # @option opts [String] :channel Filter response based on the channel
513
+ # @option opts [Time] :before Only include items created before a certain date
514
+ # @option opts [Time] :after Only include items created after a certain date
515
+ # @option opts [Boolean] :with_content When &#x60;true&#x60; message payloads are included in the response (default to true)
516
+ # @option opts [Array<String>] :event_types Filter response based on the event type
422
517
  # @return [ListResponseMessageOut]
423
518
  def v1_message_list(app_id, opts = {})
424
519
  data, _status_code, _headers = v1_message_list_with_http_info(app_id, opts)
@@ -429,13 +524,13 @@ module Svix
429
524
  # List all of the application&#39;s messages. The &#x60;before&#x60; and &#x60;after&#x60; parameters let you filter all items created before or after a certain date. These can be used alongside an iterator to paginate over results within a certain window. Note that by default this endpoint is limited to retrieving 90 days&#39; worth of data relative to now or, if an iterator is provided, 90 days before/after the time indicated by the iterator ID. If you require data beyond those time ranges, you will need to explicitly set the &#x60;before&#x60; or &#x60;after&#x60; parameter as appropriate.
430
525
  # @param app_id [String] The app&#39;s ID or UID
431
526
  # @param [Hash] opts the optional parameters
432
- # @option opts [Integer] :limit
433
- # @option opts [String] :iterator The msg&#39;s ID
434
- # @option opts [String] :channel
435
- # @option opts [Time] :before
436
- # @option opts [Time] :after
437
- # @option opts [Boolean] :with_content
438
- # @option opts [Array<String>] :event_types
527
+ # @option opts [Integer] :limit Limit the number of returned items
528
+ # @option opts [String] :iterator The iterator returned from a prior invocation
529
+ # @option opts [String] :channel Filter response based on the channel
530
+ # @option opts [Time] :before Only include items created before a certain date
531
+ # @option opts [Time] :after Only include items created after a certain date
532
+ # @option opts [Boolean] :with_content When &#x60;true&#x60; message payloads are included in the response
533
+ # @option opts [Array<String>] :event_types Filter response based on the event type
439
534
  # @return [Array<(ListResponseMessageOut, Integer, Hash)>] ListResponseMessageOut data, response status code and response headers
440
535
  def v1_message_list_with_http_info(app_id, opts = {})
441
536
  if @api_client.config.debugging
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #Svix API
3
3
 
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}`. For more information on authentication, please refer to the [authentication token docs](https://docs.svix.com/api-keys). <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.
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 1.7.0
6
+ The version of the OpenAPI document: 1.1.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.2.0
@@ -323,12 +323,12 @@ module Svix
323
323
  end
324
324
 
325
325
  # List Attempted Destinations
326
- # `msg_id`: Use a message id or a message `eventId`
326
+ # List endpoints attempted by a given message. Additionally includes metadata about the latest message attempt. By default, endpoints are listed in ascending order by ID.
327
327
  # @param app_id [String] The app&#39;s ID or UID
328
328
  # @param msg_id [String] The msg&#39;s ID or UID
329
329
  # @param [Hash] opts the optional parameters
330
- # @option opts [Integer] :limit
331
- # @option opts [String] :iterator
330
+ # @option opts [Integer] :limit Limit the number of returned items
331
+ # @option opts [String] :iterator The iterator returned from a prior invocation
332
332
  # @return [ListResponseMessageEndpointOut]
333
333
  def v1_message_attempt_list_attempted_destinations(app_id, msg_id, opts = {})
334
334
  data, _status_code, _headers = v1_message_attempt_list_attempted_destinations_with_http_info(app_id, msg_id, opts)
@@ -336,12 +336,12 @@ module Svix
336
336
  end
337
337
 
338
338
  # List Attempted Destinations
339
- # &#x60;msg_id&#x60;: Use a message id or a message &#x60;eventId&#x60;
339
+ # List endpoints attempted by a given message. Additionally includes metadata about the latest message attempt. By default, endpoints are listed in ascending order by ID.
340
340
  # @param app_id [String] The app&#39;s ID or UID
341
341
  # @param msg_id [String] The msg&#39;s ID or UID
342
342
  # @param [Hash] opts the optional parameters
343
- # @option opts [Integer] :limit
344
- # @option opts [String] :iterator
343
+ # @option opts [Integer] :limit Limit the number of returned items
344
+ # @option opts [String] :iterator The iterator returned from a prior invocation
345
345
  # @return [Array<(ListResponseMessageEndpointOut, Integer, Hash)>] ListResponseMessageEndpointOut data, response status code and response headers
346
346
  def v1_message_attempt_list_attempted_destinations_with_http_info(app_id, msg_id, opts = {})
347
347
  if @api_client.config.debugging
@@ -436,14 +436,14 @@ module Svix
436
436
  # @param app_id [String] The app&#39;s ID or UID
437
437
  # @param endpoint_id [String] The ep&#39;s ID or UID
438
438
  # @param [Hash] opts the optional parameters
439
- # @option opts [Integer] :limit
440
- # @option opts [String] :iterator The msg&#39;s ID
441
- # @option opts [String] :channel
442
- # @option opts [MessageStatus] :status
443
- # @option opts [Time] :before
444
- # @option opts [Time] :after
445
- # @option opts [Boolean] :with_content (default to true)
446
- # @option opts [Array<String>] :event_types
439
+ # @option opts [Integer] :limit Limit the number of returned items
440
+ # @option opts [String] :iterator The iterator returned from a prior invocation
441
+ # @option opts [String] :channel Filter response based on the channel
442
+ # @option opts [MessageStatus] :status Filter response based on the delivery status
443
+ # @option opts [Time] :before Only include items created before a certain date
444
+ # @option opts [Time] :after Only include items created after a certain date
445
+ # @option opts [Boolean] :with_content When &#x60;true&#x60; message payloads are included in the response (default to true)
446
+ # @option opts [Array<String>] :event_types Filter response based on the event type
447
447
  # @return [ListResponseEndpointMessageOut]
448
448
  def v1_message_attempt_list_attempted_messages(app_id, endpoint_id, opts = {})
449
449
  data, _status_code, _headers = v1_message_attempt_list_attempted_messages_with_http_info(app_id, endpoint_id, opts)
@@ -455,14 +455,14 @@ module Svix
455
455
  # @param app_id [String] The app&#39;s ID or UID
456
456
  # @param endpoint_id [String] The ep&#39;s ID or UID
457
457
  # @param [Hash] opts the optional parameters
458
- # @option opts [Integer] :limit
459
- # @option opts [String] :iterator The msg&#39;s ID
460
- # @option opts [String] :channel
461
- # @option opts [MessageStatus] :status
462
- # @option opts [Time] :before
463
- # @option opts [Time] :after
464
- # @option opts [Boolean] :with_content
465
- # @option opts [Array<String>] :event_types
458
+ # @option opts [Integer] :limit Limit the number of returned items
459
+ # @option opts [String] :iterator The iterator returned from a prior invocation
460
+ # @option opts [String] :channel Filter response based on the channel
461
+ # @option opts [MessageStatus] :status Filter response based on the delivery status
462
+ # @option opts [Time] :before Only include items created before a certain date
463
+ # @option opts [Time] :after Only include items created after a certain date
464
+ # @option opts [Boolean] :with_content When &#x60;true&#x60; message payloads are included in the response
465
+ # @option opts [Array<String>] :event_types Filter response based on the event type
466
466
  # @return [Array<(ListResponseEndpointMessageOut, Integer, Hash)>] ListResponseEndpointMessageOut data, response status code and response headers
467
467
  def v1_message_attempt_list_attempted_messages_with_http_info(app_id, endpoint_id, opts = {})
468
468
  if @api_client.config.debugging
@@ -572,15 +572,15 @@ module Svix
572
572
  # @param app_id [String] The app&#39;s ID or UID
573
573
  # @param endpoint_id [String] The ep&#39;s ID or UID
574
574
  # @param [Hash] opts the optional parameters
575
- # @option opts [Integer] :limit
576
- # @option opts [String] :iterator The attempt&#39;s ID
577
- # @option opts [MessageStatus] :status
578
- # @option opts [StatusCodeClass] :status_code_class
579
- # @option opts [String] :channel
580
- # @option opts [Time] :before
581
- # @option opts [Time] :after
582
- # @option opts [Boolean] :with_content (default to true)
583
- # @option opts [Array<String>] :event_types
575
+ # @option opts [Integer] :limit Limit the number of returned items
576
+ # @option opts [String] :iterator The iterator returned from a prior invocation
577
+ # @option opts [MessageStatus] :status Filter response based on the delivery status
578
+ # @option opts [StatusCodeClass] :status_code_class Filter response based on the HTTP status code
579
+ # @option opts [String] :channel Filter response based on the channel
580
+ # @option opts [Time] :before Only include items created before a certain date
581
+ # @option opts [Time] :after Only include items created after a certain date
582
+ # @option opts [Boolean] :with_content When &#x60;true&#x60; attempt content is included in the response (default to true)
583
+ # @option opts [Array<String>] :event_types Filter response based on the event type
584
584
  # @return [ListResponseMessageAttemptOut]
585
585
  def v1_message_attempt_list_by_endpoint(app_id, endpoint_id, opts = {})
586
586
  data, _status_code, _headers = v1_message_attempt_list_by_endpoint_with_http_info(app_id, endpoint_id, opts)
@@ -592,15 +592,15 @@ module Svix
592
592
  # @param app_id [String] The app&#39;s ID or UID
593
593
  # @param endpoint_id [String] The ep&#39;s ID or UID
594
594
  # @param [Hash] opts the optional parameters
595
- # @option opts [Integer] :limit
596
- # @option opts [String] :iterator The attempt&#39;s ID
597
- # @option opts [MessageStatus] :status
598
- # @option opts [StatusCodeClass] :status_code_class
599
- # @option opts [String] :channel
600
- # @option opts [Time] :before
601
- # @option opts [Time] :after
602
- # @option opts [Boolean] :with_content
603
- # @option opts [Array<String>] :event_types
595
+ # @option opts [Integer] :limit Limit the number of returned items
596
+ # @option opts [String] :iterator The iterator returned from a prior invocation
597
+ # @option opts [MessageStatus] :status Filter response based on the delivery status
598
+ # @option opts [StatusCodeClass] :status_code_class Filter response based on the HTTP status code
599
+ # @option opts [String] :channel Filter response based on the channel
600
+ # @option opts [Time] :before Only include items created before a certain date
601
+ # @option opts [Time] :after Only include items created after a certain date
602
+ # @option opts [Boolean] :with_content When &#x60;true&#x60; attempt content is included in the response
603
+ # @option opts [Array<String>] :event_types Filter response based on the event type
604
604
  # @return [Array<(ListResponseMessageAttemptOut, Integer, Hash)>] ListResponseMessageAttemptOut data, response status code and response headers
605
605
  def v1_message_attempt_list_by_endpoint_with_http_info(app_id, endpoint_id, opts = {})
606
606
  if @api_client.config.debugging
@@ -712,13 +712,13 @@ module Svix
712
712
  # @param msg_id [String] The msg&#39;s ID or UID
713
713
  # @param endpoint_id [String] The ep&#39;s ID or UID
714
714
  # @param [Hash] opts the optional parameters
715
- # @option opts [Integer] :limit
716
- # @option opts [String] :iterator The attempt&#39;s ID
717
- # @option opts [String] :channel
718
- # @option opts [MessageStatus] :status
719
- # @option opts [Time] :before
720
- # @option opts [Time] :after
721
- # @option opts [Array<String>] :event_types
715
+ # @option opts [Integer] :limit Limit the number of returned items
716
+ # @option opts [String] :iterator The iterator returned from a prior invocation
717
+ # @option opts [String] :channel Filter response based on the channel
718
+ # @option opts [MessageStatus] :status Filter response based on the delivery status
719
+ # @option opts [Time] :before Only include items created before a certain date
720
+ # @option opts [Time] :after Only include items created after a certain date
721
+ # @option opts [Array<String>] :event_types Filter response based on the event type
722
722
  # @return [ListResponseMessageAttemptEndpointOut]
723
723
  def v1_message_attempt_list_by_endpoint_deprecated(app_id, msg_id, endpoint_id, opts = {})
724
724
  data, _status_code, _headers = v1_message_attempt_list_by_endpoint_deprecated_with_http_info(app_id, msg_id, endpoint_id, opts)
@@ -731,13 +731,13 @@ module Svix
731
731
  # @param msg_id [String] The msg&#39;s ID or UID
732
732
  # @param endpoint_id [String] The ep&#39;s ID or UID
733
733
  # @param [Hash] opts the optional parameters
734
- # @option opts [Integer] :limit
735
- # @option opts [String] :iterator The attempt&#39;s ID
736
- # @option opts [String] :channel
737
- # @option opts [MessageStatus] :status
738
- # @option opts [Time] :before
739
- # @option opts [Time] :after
740
- # @option opts [Array<String>] :event_types
734
+ # @option opts [Integer] :limit Limit the number of returned items
735
+ # @option opts [String] :iterator The iterator returned from a prior invocation
736
+ # @option opts [String] :channel Filter response based on the channel
737
+ # @option opts [MessageStatus] :status Filter response based on the delivery status
738
+ # @option opts [Time] :before Only include items created before a certain date
739
+ # @option opts [Time] :after Only include items created after a certain date
740
+ # @option opts [Array<String>] :event_types Filter response based on the event type
741
741
  # @return [Array<(ListResponseMessageAttemptEndpointOut, Integer, Hash)>] ListResponseMessageAttemptEndpointOut data, response status code and response headers
742
742
  def v1_message_attempt_list_by_endpoint_deprecated_with_http_info(app_id, msg_id, endpoint_id, opts = {})
743
743
  if @api_client.config.debugging
@@ -863,16 +863,16 @@ module Svix
863
863
  # @param app_id [String] The app&#39;s ID or UID
864
864
  # @param msg_id [String] The msg&#39;s ID or UID
865
865
  # @param [Hash] opts the optional parameters
866
- # @option opts [Integer] :limit
867
- # @option opts [String] :iterator The attempt&#39;s ID
868
- # @option opts [MessageStatus] :status
869
- # @option opts [StatusCodeClass] :status_code_class
870
- # @option opts [String] :channel
871
- # @option opts [String] :endpoint_id The ep&#39;s ID or UID
872
- # @option opts [Time] :before
873
- # @option opts [Time] :after
874
- # @option opts [Boolean] :with_content (default to true)
875
- # @option opts [Array<String>] :event_types
866
+ # @option opts [Integer] :limit Limit the number of returned items
867
+ # @option opts [String] :iterator The iterator returned from a prior invocation
868
+ # @option opts [MessageStatus] :status Filter response based on the delivery status
869
+ # @option opts [StatusCodeClass] :status_code_class Filter response based on the HTTP status code
870
+ # @option opts [String] :channel Filter response based on the channel
871
+ # @option opts [String] :endpoint_id Filter the attempts based on the attempted endpoint
872
+ # @option opts [Time] :before Only include items created before a certain date
873
+ # @option opts [Time] :after Only include items created after a certain date
874
+ # @option opts [Boolean] :with_content When &#x60;true&#x60; attempt content is included in the response (default to true)
875
+ # @option opts [Array<String>] :event_types Filter response based on the event type
876
876
  # @return [ListResponseMessageAttemptOut]
877
877
  def v1_message_attempt_list_by_msg(app_id, msg_id, opts = {})
878
878
  data, _status_code, _headers = v1_message_attempt_list_by_msg_with_http_info(app_id, msg_id, opts)
@@ -884,16 +884,16 @@ module Svix
884
884
  # @param app_id [String] The app&#39;s ID or UID
885
885
  # @param msg_id [String] The msg&#39;s ID or UID
886
886
  # @param [Hash] opts the optional parameters
887
- # @option opts [Integer] :limit
888
- # @option opts [String] :iterator The attempt&#39;s ID
889
- # @option opts [MessageStatus] :status
890
- # @option opts [StatusCodeClass] :status_code_class
891
- # @option opts [String] :channel
892
- # @option opts [String] :endpoint_id The ep&#39;s ID or UID
893
- # @option opts [Time] :before
894
- # @option opts [Time] :after
895
- # @option opts [Boolean] :with_content
896
- # @option opts [Array<String>] :event_types
887
+ # @option opts [Integer] :limit Limit the number of returned items
888
+ # @option opts [String] :iterator The iterator returned from a prior invocation
889
+ # @option opts [MessageStatus] :status Filter response based on the delivery status
890
+ # @option opts [StatusCodeClass] :status_code_class Filter response based on the HTTP status code
891
+ # @option opts [String] :channel Filter response based on the channel
892
+ # @option opts [String] :endpoint_id Filter the attempts based on the attempted endpoint
893
+ # @option opts [Time] :before Only include items created before a certain date
894
+ # @option opts [Time] :after Only include items created after a certain date
895
+ # @option opts [Boolean] :with_content When &#x60;true&#x60; attempt content is included in the response
896
+ # @option opts [Array<String>] :event_types Filter response based on the event type
897
897
  # @return [Array<(ListResponseMessageAttemptOut, Integer, Hash)>] ListResponseMessageAttemptOut data, response status code and response headers
898
898
  def v1_message_attempt_list_by_msg_with_http_info(app_id, msg_id, opts = {})
899
899
  if @api_client.config.debugging
@@ -1018,15 +1018,15 @@ module Svix
1018
1018
  # @param app_id [String] The app&#39;s ID or UID
1019
1019
  # @param msg_id [String] The msg&#39;s ID or UID
1020
1020
  # @param [Hash] opts the optional parameters
1021
- # @option opts [Integer] :limit
1022
- # @option opts [String] :iterator The attempt&#39;s ID
1023
- # @option opts [String] :endpoint_id The ep&#39;s ID or UID
1024
- # @option opts [String] :channel
1025
- # @option opts [MessageStatus] :status
1026
- # @option opts [Time] :before
1027
- # @option opts [Time] :after
1028
- # @option opts [StatusCodeClass] :status_code_class
1029
- # @option opts [Array<String>] :event_types
1021
+ # @option opts [Integer] :limit Limit the number of returned items
1022
+ # @option opts [String] :iterator The iterator returned from a prior invocation
1023
+ # @option opts [String] :endpoint_id Filter the attempts based on the attempted endpoint
1024
+ # @option opts [String] :channel Filter response based on the channel
1025
+ # @option opts [MessageStatus] :status Filter response based on the delivery status
1026
+ # @option opts [Time] :before Only include items created before a certain date
1027
+ # @option opts [Time] :after Only include items created after a certain date
1028
+ # @option opts [StatusCodeClass] :status_code_class Filter response based on the HTTP status code
1029
+ # @option opts [Array<String>] :event_types Filter response based on the event type
1030
1030
  # @return [ListResponseMessageAttemptOut]
1031
1031
  def v1_message_attempt_list_by_msg_deprecated(app_id, msg_id, opts = {})
1032
1032
  data, _status_code, _headers = v1_message_attempt_list_by_msg_deprecated_with_http_info(app_id, msg_id, opts)
@@ -1038,15 +1038,15 @@ module Svix
1038
1038
  # @param app_id [String] The app&#39;s ID or UID
1039
1039
  # @param msg_id [String] The msg&#39;s ID or UID
1040
1040
  # @param [Hash] opts the optional parameters
1041
- # @option opts [Integer] :limit
1042
- # @option opts [String] :iterator The attempt&#39;s ID
1043
- # @option opts [String] :endpoint_id The ep&#39;s ID or UID
1044
- # @option opts [String] :channel
1045
- # @option opts [MessageStatus] :status
1046
- # @option opts [Time] :before
1047
- # @option opts [Time] :after
1048
- # @option opts [StatusCodeClass] :status_code_class
1049
- # @option opts [Array<String>] :event_types
1041
+ # @option opts [Integer] :limit Limit the number of returned items
1042
+ # @option opts [String] :iterator The iterator returned from a prior invocation
1043
+ # @option opts [String] :endpoint_id Filter the attempts based on the attempted endpoint
1044
+ # @option opts [String] :channel Filter response based on the channel
1045
+ # @option opts [MessageStatus] :status Filter response based on the delivery status
1046
+ # @option opts [Time] :before Only include items created before a certain date
1047
+ # @option opts [Time] :after Only include items created after a certain date
1048
+ # @option opts [StatusCodeClass] :status_code_class Filter response based on the HTTP status code
1049
+ # @option opts [Array<String>] :event_types Filter response based on the event type
1050
1050
  # @return [Array<(ListResponseMessageAttemptOut, Integer, Hash)>] ListResponseMessageAttemptOut data, response status code and response headers
1051
1051
  def v1_message_attempt_list_by_msg_deprecated_with_http_info(app_id, msg_id, opts = {})
1052
1052
  if @api_client.config.debugging
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #Svix API
3
3
 
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}`. For more information on authentication, please refer to the [authentication token docs](https://docs.svix.com/api-keys). <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.
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 1.7.0
6
+ The version of the OpenAPI document: 1.1.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.2.0
@@ -91,8 +91,8 @@ module Svix
91
91
  # Returns application-level statistics on message attempts
92
92
  # @param app_id [String] The app&#39;s ID or UID
93
93
  # @param [Hash] opts the optional parameters
94
- # @option opts [Time] :start_date
95
- # @option opts [Time] :end_date
94
+ # @option opts [Time] :start_date Filter the range to data starting from this date
95
+ # @option opts [Time] :end_date Filter the range to data ending by this date
96
96
  # @return [AttemptStatisticsResponse]
97
97
  def v1_stats_app_attempts(app_id, opts = {})
98
98
  data, _status_code, _headers = v1_stats_app_attempts_with_http_info(app_id, opts)
@@ -103,8 +103,8 @@ module Svix
103
103
  # Returns application-level statistics on message attempts
104
104
  # @param app_id [String] The app&#39;s ID or UID
105
105
  # @param [Hash] opts the optional parameters
106
- # @option opts [Time] :start_date
107
- # @option opts [Time] :end_date
106
+ # @option opts [Time] :start_date Filter the range to data starting from this date
107
+ # @option opts [Time] :end_date Filter the range to data ending by this date
108
108
  # @return [Array<(AttemptStatisticsResponse, Integer, Hash)>] AttemptStatisticsResponse data, response status code and response headers
109
109
  def v1_stats_app_attempts_with_http_info(app_id, opts = {})
110
110
  if @api_client.config.debugging
@@ -174,8 +174,8 @@ module Svix
174
174
  # @param app_id [String] The app&#39;s ID or UID
175
175
  # @param endpoint_id [String] The ep&#39;s ID or UID
176
176
  # @param [Hash] opts the optional parameters
177
- # @option opts [Time] :start_date
178
- # @option opts [Time] :end_date
177
+ # @option opts [Time] :start_date Filter the range to data starting from this date
178
+ # @option opts [Time] :end_date Filter the range to data ending by this date
179
179
  # @return [AttemptStatisticsResponse]
180
180
  def v1_stats_endpoint_attempts(app_id, endpoint_id, opts = {})
181
181
  data, _status_code, _headers = v1_stats_endpoint_attempts_with_http_info(app_id, endpoint_id, opts)
@@ -187,8 +187,8 @@ module Svix
187
187
  # @param app_id [String] The app&#39;s ID or UID
188
188
  # @param endpoint_id [String] The ep&#39;s ID or UID
189
189
  # @param [Hash] opts the optional parameters
190
- # @option opts [Time] :start_date
191
- # @option opts [Time] :end_date
190
+ # @option opts [Time] :start_date Filter the range to data starting from this date
191
+ # @option opts [Time] :end_date Filter the range to data ending by this date
192
192
  # @return [Array<(AttemptStatisticsResponse, Integer, Hash)>] AttemptStatisticsResponse data, response status code and response headers
193
193
  def v1_stats_endpoint_attempts_with_http_info(app_id, endpoint_id, opts = {})
194
194
  if @api_client.config.debugging
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #Svix API
3
3
 
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}`. For more information on authentication, please refer to the [authentication token docs](https://docs.svix.com/api-keys). <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.
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 1.7.0
6
+ The version of the OpenAPI document: 1.1.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.2.0
@@ -216,9 +216,9 @@ module Svix
216
216
  # List Transformation Templates
217
217
  # List all transformation templates for an application
218
218
  # @param [Hash] opts the optional parameters
219
- # @option opts [Integer] :limit
220
- # @option opts [String] :iterator
221
- # @option opts [Ordering] :order
219
+ # @option opts [Integer] :limit Limit the number of returned items
220
+ # @option opts [String] :iterator The iterator returned from a prior invocation
221
+ # @option opts [Ordering] :order The sorting order of the returned items
222
222
  # @return [ListResponseTemplateOut]
223
223
  def v1_transformation_template_list(opts = {})
224
224
  data, _status_code, _headers = v1_transformation_template_list_with_http_info(opts)
@@ -228,9 +228,9 @@ module Svix
228
228
  # List Transformation Templates
229
229
  # List all transformation templates for an application
230
230
  # @param [Hash] opts the optional parameters
231
- # @option opts [Integer] :limit
232
- # @option opts [String] :iterator
233
- # @option opts [Ordering] :order
231
+ # @option opts [Integer] :limit Limit the number of returned items
232
+ # @option opts [String] :iterator The iterator returned from a prior invocation
233
+ # @option opts [Ordering] :order The sorting order of the returned items
234
234
  # @return [Array<(ListResponseTemplateOut, Integer, Hash)>] ListResponseTemplateOut data, response status code and response headers
235
235
  def v1_transformation_template_list_with_http_info(opts = {})
236
236
  if @api_client.config.debugging
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #Svix API
3
3
 
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}`. For more information on authentication, please refer to the [authentication token docs](https://docs.svix.com/api-keys). <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.
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 1.7.0
6
+ The version of the OpenAPI document: 1.1.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.2.0
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #Svix API
3
3
 
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}`. For more information on authentication, please refer to the [authentication token docs](https://docs.svix.com/api-keys). <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.
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 1.7.0
6
+ The version of the OpenAPI document: 1.1.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.2.0