svix 0.82.0 → 0.83.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d0031a17a07a4b6bf5ddd58744491450ec5fa8a01706d0bdce1db56b5befdcdf
4
- data.tar.gz: 9db9d7fb27d06d511072655aecb1f4cc229f101e2a22e4d3ddf4b843a1f1aef9
3
+ metadata.gz: 5c6b19d000389ea04787b35e6534abd4eccb2c734f2960392afce816c51caa2f
4
+ data.tar.gz: '0780ed07b0bd7b8551c3cb5ae3a045a62a4939fd28ebadb9a699ce28a01d2d6c'
5
5
  SHA512:
6
- metadata.gz: c5b1a7b92d6f9a356df0980fb28b59b94e7a5a8ab257adfbf643e04afbc13f1eebbd30f70f0ff0a106854168fdd4b931dfca4fadf3239d951f3bfe37103f2e8f
7
- data.tar.gz: ceec8397b538a700b452fede8e8b2c71aa9fd3ac89d55794e399aa8c425d8e45b7bece02fad88f8371c3c58d2a317bfef9f3b82fce5440335b0a6d6c690ba412
6
+ metadata.gz: ec389f80dd245442878037bf0810f32f6b9300aa5054fac40b4cee72a5873d41a0a77e77122cb1f61fce2012c0cc523e65a3cdd756cc3347bcf6e30ffb2944f7
7
+ data.tar.gz: 1c5a996853eead8307534bf645141419f177b29769dd7e6646c585e74fac81851073f07efb3c422749a201d000b21d000fa8d040cb0d14d0bfe70f6006102990
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- svix (0.82.0)
4
+ svix (0.83.0)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
@@ -20,7 +20,7 @@ module Svix
20
20
  @api_client = api_client
21
21
  end
22
22
  # Create Message
23
- # Creates a new message and dispatches it to all of the application's endpoints. The `eventId` is an optional custom unique ID. It's verified to be unique only up to a day, after that no verification will be made. If a message with the same `eventId` already exists for any application in your environment, a 409 conflict error will be returned. The `eventType` indicates the type and schema of the event. All messages of a certain `eventType` are expected to have the same schema. Endpoints can choose to only listen to specific event types. Messages can also have `channels`, which similar to event types let endpoints filter by them. Unlike event types, messages can have multiple channels, and channels don't imply a specific message content or schema. The `payload` property is the webhook's body (the actual webhook message). Svix supports payload sizes of up to ~350kb, though it's generally a good idea to keep webhook payloads small, probably no larger than 40kb.
23
+ # Creates a new message and dispatches it to all of the application's endpoints. The `eventId` is an optional custom unique ID. It's verified to be unique only up to a day, after that no verification will be made. If a message with the same `eventId` already exists for any application in your environment, a 409 conflict error will be returned. The `eventType` indicates the type and schema of the event. All messages of a certain `eventType` are expected to have the same schema. Endpoints can choose to only listen to specific event types. Messages can also have `channels`, which similar to event types let endpoints filter by them. Unlike event types, messages can have multiple channels, and channels don't imply a specific message content or schema. The `payload` property is the webhook's body (the actual webhook message). Svix supports payload sizes of up to ~350kb, though it's generally a good idea to keep webhook payloads small, probably no larger than 40kb. The optional `application` property will be used to create an application if the application referenced in the path does not exist. If it does then this property is ignored.
24
24
  # @param app_id [String]
25
25
  # @param message_in [MessageIn]
26
26
  # @param [Hash] opts the optional parameters
@@ -33,7 +33,7 @@ module Svix
33
33
  end
34
34
 
35
35
  # Create Message
36
- # Creates a new message and dispatches it to all of the application's endpoints. The `eventId` is an optional custom unique ID. It's verified to be unique only up to a day, after that no verification will be made. If a message with the same `eventId` already exists for any application in your environment, a 409 conflict error will be returned. The `eventType` indicates the type and schema of the event. All messages of a certain `eventType` are expected to have the same schema. Endpoints can choose to only listen to specific event types. Messages can also have `channels`, which similar to event types let endpoints filter by them. Unlike event types, messages can have multiple channels, and channels don't imply a specific message content or schema. The `payload` property is the webhook's body (the actual webhook message). Svix supports payload sizes of up to ~350kb, though it's generally a good idea to keep webhook payloads small, probably no larger than 40kb.
36
+ # Creates a new message and dispatches it to all of the application's endpoints. The `eventId` is an optional custom unique ID. It's verified to be unique only up to a day, after that no verification will be made. If a message with the same `eventId` already exists for any application in your environment, a 409 conflict error will be returned. The `eventType` indicates the type and schema of the event. All messages of a certain `eventType` are expected to have the same schema. Endpoints can choose to only listen to specific event types. Messages can also have `channels`, which similar to event types let endpoints filter by them. Unlike event types, messages can have multiple channels, and channels don't imply a specific message content or schema. The `payload` property is the webhook's body (the actual webhook message). Svix supports payload sizes of up to ~350kb, though it's generally a good idea to keep webhook payloads small, probably no larger than 40kb. The optional `application` property will be used to create an application if the application referenced in the path does not exist. If it does then this property is ignored.
37
37
  # @param app_id [String]
38
38
  # @param message_in [MessageIn]
39
39
  # @param [Hash] opts the optional parameters
@@ -20,7 +20,7 @@ module Svix
20
20
  @api_client = api_client
21
21
  end
22
22
  # Delete attempt response body
23
- # Deletes the given attempt's repsonse body. Useful when an endpoint accidentally returned sensitive content.
23
+ # Deletes the given attempt's response body. Useful when an endpoint accidentally returned sensitive content.
24
24
  # @param attempt_id [String]
25
25
  # @param msg_id [String]
26
26
  # @param app_id [String]
@@ -33,7 +33,7 @@ module Svix
33
33
  end
34
34
 
35
35
  # Delete attempt response body
36
- # Deletes the given attempt's repsonse body. Useful when an endpoint accidentally returned sensitive content.
36
+ # Deletes the given attempt's response body. Useful when an endpoint accidentally returned sensitive content.
37
37
  # @param attempt_id [String]
38
38
  # @param msg_id [String]
39
39
  # @param app_id [String]
@@ -68,5 +68,9 @@ module Svix
68
68
  @api.set_endpoint_transformation_api_v1_app_app_id_endpoint_endpoint_id_transformation_patch(app_id, endpoint_id, endpoint_transformation_in, options)
69
69
  nil
70
70
  end
71
+
72
+ def send_example(app_id, endpoint_id, event_example_in, options = {})
73
+ @api.send_event_type_example_message_api_v1_app_app_id_endpoint_endpoint_id_send_example_post(app_id, endpoint_id, event_example_in, options)
74
+ end
71
75
  end
72
76
  end
data/lib/svix/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Svix
4
- VERSION = "0.82.0"
4
+ VERSION = "0.83.0"
5
5
  end
data/lib/svix.rb CHANGED
@@ -37,6 +37,7 @@ require "svix/models/endpoint_secret_rotate_in"
37
37
  require "svix/models/endpoint_update"
38
38
  require "svix/models/endpoint_updated_event_data"
39
39
  require "svix/models/endpoint_updated_event"
40
+ require "svix/models/event_example_in"
40
41
  require "svix/models/event_type_in"
41
42
  require "svix/models/event_type_out"
42
43
  require "svix/models/event_type_update"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: svix
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.82.0
4
+ version: 0.83.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Svix
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-03-21 00:00:00.000000000 Z
11
+ date: 2023-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus