svix 2.6.0 → 2.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/svix/api/autoconfig_subscription.rb +10 -2
- data/lib/svix/models/connector_kind.rb +2 -0
- data/lib/svix/models/create_auto_config_subscription_in.rb +53 -0
- data/lib/svix/models/rabbit_mq_config_in.rb +11 -1
- data/lib/svix/models/rabbit_mq_config_out.rb +4 -1
- data/lib/svix/models/rabbit_mq_config_patch.rb +4 -1
- data/lib/svix/version.rb +1 -1
- data/lib/svix.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fe89cb5d8971fdad2ddbde11b67036dedcde034cac1009628dce96e762361b96
|
|
4
|
+
data.tar.gz: 8f4025f16edbc61f5a1cd87fd906bb94610c1eb9a4b3c44772ef188d402430d7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 793e92aa68ea92db38be15824998cfdf2815fc9f3b7972e793b844da45cbacd728a265d02a03b8f84a973ede601e18cb18901ca7fae788eaa95e31390a5db80f
|
|
7
|
+
data.tar.gz: 5306a258f6a82fb0803156e88f60c6d1d8120f04e3412037a28506426fdf9a8fcea33de2483e55f99a842295486d784781e60f14b6214e98fc6b70e2fb2eb171
|
data/Gemfile.lock
CHANGED
|
@@ -9,18 +9,26 @@ module Svix
|
|
|
9
9
|
@client = client
|
|
10
10
|
end
|
|
11
11
|
|
|
12
|
-
def create(app_id, options = {})
|
|
12
|
+
def create(app_id, create_auto_config_subscription_in, options = {})
|
|
13
13
|
options = options.transform_keys(&:to_s)
|
|
14
14
|
res = @client.execute_request(
|
|
15
15
|
"POST",
|
|
16
16
|
"/api/v1/app/#{app_id}/autoconfig",
|
|
17
17
|
headers: {
|
|
18
18
|
"idempotency-key" => options["idempotency-key"]
|
|
19
|
-
}
|
|
19
|
+
},
|
|
20
|
+
body: create_auto_config_subscription_in
|
|
20
21
|
)
|
|
21
22
|
AutoConfigOut.deserialize(res)
|
|
22
23
|
end
|
|
23
24
|
|
|
25
|
+
def delete(app_id, autoconfig_id)
|
|
26
|
+
@client.execute_request(
|
|
27
|
+
"DELETE",
|
|
28
|
+
"/api/v1/app/#{app_id}/autoconfig/#{autoconfig_id}"
|
|
29
|
+
)
|
|
30
|
+
end
|
|
31
|
+
|
|
24
32
|
def rotate(app_id, autoconfig_id, rotate_subscription_in2, options = {})
|
|
25
33
|
options = options.transform_keys(&:to_s)
|
|
26
34
|
res = @client.execute_request(
|
|
@@ -6,6 +6,7 @@ module Svix
|
|
|
6
6
|
AGENTIC_COMMERCE_PROTOCOL = "AgenticCommerceProtocol".freeze
|
|
7
7
|
CLOSE_CRM = "CloseCRM".freeze
|
|
8
8
|
CUSTOMER_IO = "CustomerIO".freeze
|
|
9
|
+
DATADOG_TRACING = "DatadogTracing".freeze
|
|
9
10
|
DISCORD = "Discord".freeze
|
|
10
11
|
HUBSPOT = "Hubspot".freeze
|
|
11
12
|
INNGEST = "Inngest".freeze
|
|
@@ -27,6 +28,7 @@ module Svix
|
|
|
27
28
|
AGENTIC_COMMERCE_PROTOCOL,
|
|
28
29
|
CLOSE_CRM,
|
|
29
30
|
CUSTOMER_IO,
|
|
31
|
+
DATADOG_TRACING,
|
|
30
32
|
DISCORD,
|
|
31
33
|
HUBSPOT,
|
|
32
34
|
INNGEST,
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# This file is @generated
|
|
3
|
+
require "json"
|
|
4
|
+
|
|
5
|
+
module Svix
|
|
6
|
+
class CreateAutoConfigSubscriptionIn
|
|
7
|
+
# The set of feature flags the created token will have access to.
|
|
8
|
+
#
|
|
9
|
+
# When omitted or empty, the token inherits the calling token's feature flags.
|
|
10
|
+
# When set, these flags are used instead. An application token may only grant a subset of its own flags.
|
|
11
|
+
attr_accessor :feature_flags
|
|
12
|
+
|
|
13
|
+
ALL_FIELD ||= ["feature_flags"].freeze
|
|
14
|
+
private_constant :ALL_FIELD
|
|
15
|
+
|
|
16
|
+
def initialize(attributes = {})
|
|
17
|
+
unless attributes.is_a?(Hash)
|
|
18
|
+
fail(
|
|
19
|
+
ArgumentError,
|
|
20
|
+
"The input argument (attributes) must be a hash in `Svix::CreateAutoConfigSubscriptionIn` new method"
|
|
21
|
+
)
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
attributes.each do |k, v|
|
|
25
|
+
unless ALL_FIELD.include?(k.to_s)
|
|
26
|
+
fail(ArgumentError, "The field #{k} is not part of Svix::CreateAutoConfigSubscriptionIn")
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
instance_variable_set("@#{k}", v)
|
|
30
|
+
instance_variable_set("@__#{k}_is_defined", true)
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
def self.deserialize(attributes = {})
|
|
35
|
+
attributes = attributes.transform_keys(&:to_s)
|
|
36
|
+
attrs = Hash.new
|
|
37
|
+
attrs["feature_flags"] = attributes["featureFlags"]
|
|
38
|
+
new(attrs)
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
def serialize
|
|
42
|
+
out = Hash.new
|
|
43
|
+
out["featureFlags"] = Svix::serialize_primitive(@feature_flags) unless @feature_flags.nil?
|
|
44
|
+
out
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# Serializes the object to a json string
|
|
48
|
+
# @return String
|
|
49
|
+
def to_json(*args)
|
|
50
|
+
serialize.to_json(*args)
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
@@ -5,10 +5,18 @@ require "json"
|
|
|
5
5
|
module Svix
|
|
6
6
|
# Configuration for a RabbitMq sink.
|
|
7
7
|
class RabbitMqConfigIn
|
|
8
|
+
# URI to connect to
|
|
9
|
+
#
|
|
10
|
+
# Note that the VHost must be percent-escaped, so a default URI would look
|
|
11
|
+
# like `amqp://user:pass@host/%2F`
|
|
8
12
|
attr_accessor :uri
|
|
13
|
+
# Routing key for message dispatch
|
|
9
14
|
attr_accessor :routing_key
|
|
15
|
+
# If true, then dispatches will fail if there is no attached queue; if false, they are
|
|
16
|
+
# silently dropped (this was previously the default)
|
|
17
|
+
attr_accessor :mandatory
|
|
10
18
|
|
|
11
|
-
ALL_FIELD ||= ["uri", "routing_key"].freeze
|
|
19
|
+
ALL_FIELD ||= ["uri", "routing_key", "mandatory"].freeze
|
|
12
20
|
private_constant :ALL_FIELD
|
|
13
21
|
|
|
14
22
|
def initialize(attributes = {})
|
|
@@ -31,6 +39,7 @@ module Svix
|
|
|
31
39
|
attrs = Hash.new
|
|
32
40
|
attrs["uri"] = attributes["uri"]
|
|
33
41
|
attrs["routing_key"] = attributes["routingKey"]
|
|
42
|
+
attrs["mandatory"] = attributes["mandatory"]
|
|
34
43
|
new(attrs)
|
|
35
44
|
end
|
|
36
45
|
|
|
@@ -38,6 +47,7 @@ module Svix
|
|
|
38
47
|
out = Hash.new
|
|
39
48
|
out["uri"] = Svix::serialize_primitive(@uri) unless @uri.nil?
|
|
40
49
|
out["routingKey"] = Svix::serialize_primitive(@routing_key) unless @routing_key.nil?
|
|
50
|
+
out["mandatory"] = Svix::serialize_primitive(@mandatory) unless @mandatory.nil?
|
|
41
51
|
out
|
|
42
52
|
end
|
|
43
53
|
|
|
@@ -6,8 +6,9 @@ module Svix
|
|
|
6
6
|
class RabbitMqConfigOut
|
|
7
7
|
attr_accessor :uri
|
|
8
8
|
attr_accessor :routing_key
|
|
9
|
+
attr_accessor :mandatory
|
|
9
10
|
|
|
10
|
-
ALL_FIELD ||= ["uri", "routing_key"].freeze
|
|
11
|
+
ALL_FIELD ||= ["uri", "routing_key", "mandatory"].freeze
|
|
11
12
|
private_constant :ALL_FIELD
|
|
12
13
|
|
|
13
14
|
def initialize(attributes = {})
|
|
@@ -30,6 +31,7 @@ module Svix
|
|
|
30
31
|
attrs = Hash.new
|
|
31
32
|
attrs["uri"] = attributes["uri"]
|
|
32
33
|
attrs["routing_key"] = attributes["routingKey"]
|
|
34
|
+
attrs["mandatory"] = attributes["mandatory"]
|
|
33
35
|
new(attrs)
|
|
34
36
|
end
|
|
35
37
|
|
|
@@ -37,6 +39,7 @@ module Svix
|
|
|
37
39
|
out = Hash.new
|
|
38
40
|
out["uri"] = Svix::serialize_primitive(@uri) unless @uri.nil?
|
|
39
41
|
out["routingKey"] = Svix::serialize_primitive(@routing_key) unless @routing_key.nil?
|
|
42
|
+
out["mandatory"] = Svix::serialize_primitive(@mandatory) unless @mandatory.nil?
|
|
40
43
|
out
|
|
41
44
|
end
|
|
42
45
|
|
|
@@ -6,8 +6,9 @@ module Svix
|
|
|
6
6
|
class RabbitMqConfigPatch
|
|
7
7
|
attr_accessor :routing_key
|
|
8
8
|
attr_accessor :uri
|
|
9
|
+
attr_accessor :mandatory
|
|
9
10
|
|
|
10
|
-
ALL_FIELD ||= ["routing_key", "uri"].freeze
|
|
11
|
+
ALL_FIELD ||= ["routing_key", "uri", "mandatory"].freeze
|
|
11
12
|
private_constant :ALL_FIELD
|
|
12
13
|
|
|
13
14
|
def initialize(attributes = {})
|
|
@@ -30,6 +31,7 @@ module Svix
|
|
|
30
31
|
attrs = Hash.new
|
|
31
32
|
attrs["routing_key"] = attributes["routingKey"]
|
|
32
33
|
attrs["uri"] = attributes["uri"]
|
|
34
|
+
attrs["mandatory"] = attributes["mandatory"]
|
|
33
35
|
new(attrs)
|
|
34
36
|
end
|
|
35
37
|
|
|
@@ -37,6 +39,7 @@ module Svix
|
|
|
37
39
|
out = Hash.new
|
|
38
40
|
out["routingKey"] = Svix::serialize_primitive(@routing_key) unless @routing_key.nil?
|
|
39
41
|
out["uri"] = Svix::serialize_primitive(@uri) unless @uri.nil?
|
|
42
|
+
out["mandatory"] = Svix::serialize_primitive(@mandatory) unless @mandatory.nil?
|
|
40
43
|
out
|
|
41
44
|
end
|
|
42
45
|
|
data/lib/svix/version.rb
CHANGED
data/lib/svix.rb
CHANGED
|
@@ -80,6 +80,7 @@ require "svix/models/connector_out"
|
|
|
80
80
|
require "svix/models/connector_patch"
|
|
81
81
|
require "svix/models/connector_product"
|
|
82
82
|
require "svix/models/connector_upsert_in"
|
|
83
|
+
require "svix/models/create_auto_config_subscription_in"
|
|
83
84
|
require "svix/models/create_stream_events_in"
|
|
84
85
|
require "svix/models/create_stream_events_out"
|
|
85
86
|
require "svix/models/cron_config"
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: svix
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.6.
|
|
4
|
+
version: 2.6.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Svix
|
|
8
8
|
bindir: exe
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2026-
|
|
10
|
+
date: 2026-10-05 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: base64
|
|
@@ -191,6 +191,7 @@ files:
|
|
|
191
191
|
- lib/svix/models/connector_patch.rb
|
|
192
192
|
- lib/svix/models/connector_product.rb
|
|
193
193
|
- lib/svix/models/connector_upsert_in.rb
|
|
194
|
+
- lib/svix/models/create_auto_config_subscription_in.rb
|
|
194
195
|
- lib/svix/models/create_stream_events_in.rb
|
|
195
196
|
- lib/svix/models/create_stream_events_out.rb
|
|
196
197
|
- lib/svix/models/cron_config.rb
|