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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/svix/api/message_api.rb +2 -2
- data/lib/svix/api/message_attempt_api.rb +2 -2
- data/lib/svix/endpoint_api.rb +4 -0
- data/lib/svix/version.rb +1 -1
- data/lib/svix.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c6b19d000389ea04787b35e6534abd4eccb2c734f2960392afce816c51caa2f
|
4
|
+
data.tar.gz: '0780ed07b0bd7b8551c3cb5ae3a045a62a4939fd28ebadb9a699ce28a01d2d6c'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec389f80dd245442878037bf0810f32f6b9300aa5054fac40b4cee72a5873d41a0a77e77122cb1f61fce2012c0cc523e65a3cdd756cc3347bcf6e30ffb2944f7
|
7
|
+
data.tar.gz: 1c5a996853eead8307534bf645141419f177b29769dd7e6646c585e74fac81851073f07efb3c422749a201d000b21d000fa8d040cb0d14d0bfe70f6006102990
|
data/Gemfile.lock
CHANGED
data/lib/svix/api/message_api.rb
CHANGED
@@ -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
|
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
|
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]
|
data/lib/svix/endpoint_api.rb
CHANGED
@@ -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
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.
|
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-
|
11
|
+
date: 2023-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|