svix 0.82.1 → 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: 9529638ba32d36c37b1d74a4e63fa422bd7b61535187e2d3de9facf99d4ad093
4
- data.tar.gz: cda8834c07bf4bdc1ce2bc2cae25f1ca6f87a616fc5d5a19619625d2b353e0a3
3
+ metadata.gz: 5c6b19d000389ea04787b35e6534abd4eccb2c734f2960392afce816c51caa2f
4
+ data.tar.gz: '0780ed07b0bd7b8551c3cb5ae3a045a62a4939fd28ebadb9a699ce28a01d2d6c'
5
5
  SHA512:
6
- metadata.gz: d8551036139802c728e3fadde4d5da28860782cc43ee1117182b19a30105333842a3b7c98d6d5dd02e50125f29b6a10f6518ab1e1ccc3e33592c4da6e37d8678
7
- data.tar.gz: d6cc9973480c32e76ebd28c4d1fc353f3c490cfd1f6f760c5fe10eba2afd1213a683d1be757919a5b69361da6ac6e88c46b988bf23c2983307356ce87449fa58
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.1)
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.1"
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.1
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-24 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