svix 2.3.0 → 2.4.0
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/destination.rb +75 -0
- data/lib/svix/api/destination_transformation.rb +30 -0
- data/lib/svix/api_internal/destination.rb +14 -0
- data/lib/svix/api_internal/destination_autoconfig.rb +22 -0
- data/lib/svix/api_internal/endpoint.rb +4 -2
- data/lib/svix/api_internal/{endpoint_auto_config.rb → endpoint_auto_config_deprecated.rb} +1 -1
- data/lib/svix/api_internal/endpoint_autoconfig.rb +30 -0
- data/lib/svix/autoconfig.rb +51 -18
- data/lib/svix/autoconfig_consumer.rb +70 -9
- data/lib/svix/models/auto_config_sink_type.rb +1 -5
- data/lib/svix/models/auto_config_subscription_out.rb +67 -0
- data/lib/svix/models/destination_in.rb +204 -0
- data/lib/svix/models/destination_out.rb +224 -0
- data/lib/svix/models/destination_patch.rb +190 -0
- data/lib/svix/models/destination_status.rb +31 -0
- data/lib/svix/models/destination_status_in.rb +29 -0
- data/lib/svix/models/destination_transform_in.rb +49 -0
- data/lib/svix/models/destination_transformation_out.rb +52 -0
- data/lib/svix/models/fifo_endpoint_config_in.rb +52 -0
- data/lib/svix/models/ingest_source_in.rb +6 -5
- data/lib/svix/models/ingest_source_out.rb +6 -5
- data/lib/svix/models/list_response_destination_out.rb +58 -0
- data/lib/svix/models/merge_config.rb +46 -0
- data/lib/svix/models/merge_config_out.rb +43 -0
- data/lib/svix/models/s3_config_in.rb +1 -1
- data/lib/svix/models/status.rb +29 -0
- data/lib/svix/models/stream_sink_in.rb +1 -5
- data/lib/svix/models/stream_sink_out.rb +18 -5
- data/lib/svix/models/stream_sink_patch.rb +1 -5
- data/lib/svix/svix.rb +2 -0
- data/lib/svix/version.rb +1 -1
- data/lib/svix.rb +13 -0
- metadata +21 -3
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# This file is @generated
|
|
3
|
+
require "json"
|
|
4
|
+
|
|
5
|
+
module Svix
|
|
6
|
+
class DestinationTransformIn
|
|
7
|
+
attr_accessor :code
|
|
8
|
+
|
|
9
|
+
ALL_FIELD ||= ["code"].freeze
|
|
10
|
+
private_constant :ALL_FIELD
|
|
11
|
+
|
|
12
|
+
def initialize(attributes = {})
|
|
13
|
+
unless attributes.is_a?(Hash)
|
|
14
|
+
fail(
|
|
15
|
+
ArgumentError,
|
|
16
|
+
"The input argument (attributes) must be a hash in `Svix::DestinationTransformIn` new method"
|
|
17
|
+
)
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
attributes.each do |k, v|
|
|
21
|
+
unless ALL_FIELD.include?(k.to_s)
|
|
22
|
+
fail(ArgumentError, "The field #{k} is not part of Svix::DestinationTransformIn")
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
instance_variable_set("@#{k}", v)
|
|
26
|
+
instance_variable_set("@__#{k}_is_defined", true)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
def self.deserialize(attributes = {})
|
|
31
|
+
attributes = attributes.transform_keys(&:to_s)
|
|
32
|
+
attrs = Hash.new
|
|
33
|
+
attrs["code"] = attributes["code"]
|
|
34
|
+
new(attrs)
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
def serialize
|
|
38
|
+
out = Hash.new
|
|
39
|
+
out["code"] = Svix::serialize_primitive(@code) unless @code.nil?
|
|
40
|
+
out
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Serializes the object to a json string
|
|
44
|
+
# @return String
|
|
45
|
+
def to_json(*args)
|
|
46
|
+
serialize.to_json(*args)
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# This file is @generated
|
|
3
|
+
require "json"
|
|
4
|
+
|
|
5
|
+
module Svix
|
|
6
|
+
class DestinationTransformationOut
|
|
7
|
+
attr_accessor :code
|
|
8
|
+
attr_accessor :enabled
|
|
9
|
+
|
|
10
|
+
ALL_FIELD ||= ["code", "enabled"].freeze
|
|
11
|
+
private_constant :ALL_FIELD
|
|
12
|
+
|
|
13
|
+
def initialize(attributes = {})
|
|
14
|
+
unless attributes.is_a?(Hash)
|
|
15
|
+
fail(
|
|
16
|
+
ArgumentError,
|
|
17
|
+
"The input argument (attributes) must be a hash in `Svix::DestinationTransformationOut` new method"
|
|
18
|
+
)
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
attributes.each do |k, v|
|
|
22
|
+
unless ALL_FIELD.include?(k.to_s)
|
|
23
|
+
fail(ArgumentError, "The field #{k} is not part of Svix::DestinationTransformationOut")
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
instance_variable_set("@#{k}", v)
|
|
27
|
+
instance_variable_set("@__#{k}_is_defined", true)
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
def self.deserialize(attributes = {})
|
|
32
|
+
attributes = attributes.transform_keys(&:to_s)
|
|
33
|
+
attrs = Hash.new
|
|
34
|
+
attrs["code"] = attributes["code"]
|
|
35
|
+
attrs["enabled"] = attributes["enabled"]
|
|
36
|
+
new(attrs)
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
def serialize
|
|
40
|
+
out = Hash.new
|
|
41
|
+
out["code"] = Svix::serialize_primitive(@code) unless @code.nil?
|
|
42
|
+
out["enabled"] = Svix::serialize_primitive(@enabled) unless @enabled.nil?
|
|
43
|
+
out
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Serializes the object to a json string
|
|
47
|
+
# @return String
|
|
48
|
+
def to_json(*args)
|
|
49
|
+
serialize.to_json(*args)
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# This file is @generated
|
|
3
|
+
require "json"
|
|
4
|
+
|
|
5
|
+
module Svix
|
|
6
|
+
class FifoEndpointConfigIn
|
|
7
|
+
attr_accessor :url
|
|
8
|
+
attr_accessor :headers
|
|
9
|
+
attr_accessor :key
|
|
10
|
+
|
|
11
|
+
ALL_FIELD ||= ["url", "headers", "key"].freeze
|
|
12
|
+
private_constant :ALL_FIELD
|
|
13
|
+
|
|
14
|
+
def initialize(attributes = {})
|
|
15
|
+
unless attributes.is_a?(Hash)
|
|
16
|
+
fail(ArgumentError, "The input argument (attributes) must be a hash in `Svix::FifoEndpointConfigIn` new method")
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
attributes.each do |k, v|
|
|
20
|
+
unless ALL_FIELD.include?(k.to_s)
|
|
21
|
+
fail(ArgumentError, "The field #{k} is not part of Svix::FifoEndpointConfigIn")
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
instance_variable_set("@#{k}", v)
|
|
25
|
+
instance_variable_set("@__#{k}_is_defined", true)
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
def self.deserialize(attributes = {})
|
|
30
|
+
attributes = attributes.transform_keys(&:to_s)
|
|
31
|
+
attrs = Hash.new
|
|
32
|
+
attrs["url"] = attributes["url"]
|
|
33
|
+
attrs["headers"] = attributes["headers"]
|
|
34
|
+
attrs["key"] = attributes["key"]
|
|
35
|
+
new(attrs)
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
def serialize
|
|
39
|
+
out = Hash.new
|
|
40
|
+
out["url"] = Svix::serialize_primitive(@url) unless @url.nil?
|
|
41
|
+
out["headers"] = Svix::serialize_primitive(@headers) unless @headers.nil?
|
|
42
|
+
out["key"] = Svix::serialize_primitive(@key) unless @key.nil?
|
|
43
|
+
out
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Serializes the object to a json string
|
|
47
|
+
# @return String
|
|
48
|
+
def to_json(*args)
|
|
49
|
+
serialize.to_json(*args)
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
@@ -10,6 +10,7 @@ require_relative "./docusign_config"
|
|
|
10
10
|
require_relative "./easypost_config"
|
|
11
11
|
require_relative "./github_config"
|
|
12
12
|
require_relative "./hubspot_config"
|
|
13
|
+
require_relative "./merge_config"
|
|
13
14
|
require_relative "./meta_config"
|
|
14
15
|
require_relative "./nango_config"
|
|
15
16
|
require_relative "./open_claw_config"
|
|
@@ -86,6 +87,9 @@ module Svix
|
|
|
86
87
|
class Lithic < SvixConfig
|
|
87
88
|
end
|
|
88
89
|
|
|
90
|
+
class Merge < MergeConfig
|
|
91
|
+
end
|
|
92
|
+
|
|
89
93
|
class Meta < MetaConfig
|
|
90
94
|
end
|
|
91
95
|
|
|
@@ -198,6 +202,7 @@ module Svix
|
|
|
198
202
|
IngestSourceInConfig::Hubspot => "hubspot",
|
|
199
203
|
IngestSourceInConfig::IncidentIo => "incident-io",
|
|
200
204
|
IngestSourceInConfig::Lithic => "lithic",
|
|
205
|
+
IngestSourceInConfig::Merge => "merge",
|
|
201
206
|
IngestSourceInConfig::Meta => "meta",
|
|
202
207
|
IngestSourceInConfig::Nango => "nango",
|
|
203
208
|
IngestSourceInConfig::Nash => "nash",
|
|
@@ -272,11 +277,7 @@ module Svix
|
|
|
272
277
|
fail(ArgumentError, "Invalid type `#{attributes["type"]}` expected on of #{NAME_TO_TYPE.keys}")
|
|
273
278
|
end
|
|
274
279
|
|
|
275
|
-
|
|
276
|
-
fail(ArgumentError, "Missing required field config")
|
|
277
|
-
end
|
|
278
|
-
|
|
279
|
-
attrs["config"] = NAME_TO_TYPE[attributes["type"]].deserialize(attributes["config"])
|
|
280
|
+
attrs["config"] = NAME_TO_TYPE[attributes["type"]].deserialize(attributes["config"] || {})
|
|
280
281
|
new(attrs)
|
|
281
282
|
end
|
|
282
283
|
|
|
@@ -10,6 +10,7 @@ require_relative "./docusign_config_out"
|
|
|
10
10
|
require_relative "./easypost_config_out"
|
|
11
11
|
require_relative "./github_config_out"
|
|
12
12
|
require_relative "./hubspot_config_out"
|
|
13
|
+
require_relative "./merge_config_out"
|
|
13
14
|
require_relative "./meta_config_out"
|
|
14
15
|
require_relative "./nango_config_out"
|
|
15
16
|
require_relative "./open_claw_config_out"
|
|
@@ -86,6 +87,9 @@ module Svix
|
|
|
86
87
|
class Lithic < SvixConfigOut
|
|
87
88
|
end
|
|
88
89
|
|
|
90
|
+
class Merge < MergeConfigOut
|
|
91
|
+
end
|
|
92
|
+
|
|
89
93
|
class Meta < MetaConfigOut
|
|
90
94
|
end
|
|
91
95
|
|
|
@@ -203,6 +207,7 @@ module Svix
|
|
|
203
207
|
IngestSourceOutConfig::Hubspot => "hubspot",
|
|
204
208
|
IngestSourceOutConfig::IncidentIo => "incident-io",
|
|
205
209
|
IngestSourceOutConfig::Lithic => "lithic",
|
|
210
|
+
IngestSourceOutConfig::Merge => "merge",
|
|
206
211
|
IngestSourceOutConfig::Meta => "meta",
|
|
207
212
|
IngestSourceOutConfig::Nango => "nango",
|
|
208
213
|
IngestSourceOutConfig::Nash => "nash",
|
|
@@ -281,11 +286,7 @@ module Svix
|
|
|
281
286
|
fail(ArgumentError, "Invalid type `#{attributes["type"]}` expected on of #{NAME_TO_TYPE.keys}")
|
|
282
287
|
end
|
|
283
288
|
|
|
284
|
-
|
|
285
|
-
fail(ArgumentError, "Missing required field config")
|
|
286
|
-
end
|
|
287
|
-
|
|
288
|
-
attrs["config"] = NAME_TO_TYPE[attributes["type"]].deserialize(attributes["config"])
|
|
289
|
+
attrs["config"] = NAME_TO_TYPE[attributes["type"]].deserialize(attributes["config"] || {})
|
|
289
290
|
new(attrs)
|
|
290
291
|
end
|
|
291
292
|
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# This file is @generated
|
|
3
|
+
require "json"
|
|
4
|
+
|
|
5
|
+
module Svix
|
|
6
|
+
class ListResponseDestinationOut
|
|
7
|
+
attr_accessor :data
|
|
8
|
+
attr_accessor :iterator
|
|
9
|
+
attr_accessor :prev_iterator
|
|
10
|
+
attr_accessor :done
|
|
11
|
+
|
|
12
|
+
ALL_FIELD ||= ["data", "iterator", "prev_iterator", "done"].freeze
|
|
13
|
+
private_constant :ALL_FIELD
|
|
14
|
+
|
|
15
|
+
def initialize(attributes = {})
|
|
16
|
+
unless attributes.is_a?(Hash)
|
|
17
|
+
fail(
|
|
18
|
+
ArgumentError,
|
|
19
|
+
"The input argument (attributes) must be a hash in `Svix::ListResponseDestinationOut` new method"
|
|
20
|
+
)
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
attributes.each do |k, v|
|
|
24
|
+
unless ALL_FIELD.include?(k.to_s)
|
|
25
|
+
fail(ArgumentError, "The field #{k} is not part of Svix::ListResponseDestinationOut")
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
instance_variable_set("@#{k}", v)
|
|
29
|
+
instance_variable_set("@__#{k}_is_defined", true)
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
def self.deserialize(attributes = {})
|
|
34
|
+
attributes = attributes.transform_keys(&:to_s)
|
|
35
|
+
attrs = Hash.new
|
|
36
|
+
attrs["data"] = attributes["data"].map { |v| Svix::DestinationOut.deserialize(v) }
|
|
37
|
+
attrs["iterator"] = attributes["iterator"]
|
|
38
|
+
attrs["prev_iterator"] = attributes["prevIterator"]
|
|
39
|
+
attrs["done"] = attributes["done"]
|
|
40
|
+
new(attrs)
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
def serialize
|
|
44
|
+
out = Hash.new
|
|
45
|
+
out["data"] = @data.map { |v| v.serialize } unless @data.nil?
|
|
46
|
+
out["iterator"] = Svix::serialize_primitive(@iterator) unless @iterator.nil?
|
|
47
|
+
out["prevIterator"] = Svix::serialize_primitive(@prev_iterator) unless @prev_iterator.nil?
|
|
48
|
+
out["done"] = Svix::serialize_primitive(@done) unless @done.nil?
|
|
49
|
+
out
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# Serializes the object to a json string
|
|
53
|
+
# @return String
|
|
54
|
+
def to_json(*args)
|
|
55
|
+
serialize.to_json(*args)
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# This file is @generated
|
|
3
|
+
require "json"
|
|
4
|
+
|
|
5
|
+
module Svix
|
|
6
|
+
class MergeConfig
|
|
7
|
+
attr_accessor :secret
|
|
8
|
+
|
|
9
|
+
ALL_FIELD ||= ["secret"].freeze
|
|
10
|
+
private_constant :ALL_FIELD
|
|
11
|
+
|
|
12
|
+
def initialize(attributes = {})
|
|
13
|
+
unless attributes.is_a?(Hash)
|
|
14
|
+
fail(ArgumentError, "The input argument (attributes) must be a hash in `Svix::MergeConfig` new method")
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
attributes.each do |k, v|
|
|
18
|
+
unless ALL_FIELD.include?(k.to_s)
|
|
19
|
+
fail(ArgumentError, "The field #{k} is not part of Svix::MergeConfig")
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
instance_variable_set("@#{k}", v)
|
|
23
|
+
instance_variable_set("@__#{k}_is_defined", true)
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def self.deserialize(attributes = {})
|
|
28
|
+
attributes = attributes.transform_keys(&:to_s)
|
|
29
|
+
attrs = Hash.new
|
|
30
|
+
attrs["secret"] = attributes["secret"]
|
|
31
|
+
new(attrs)
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
def serialize
|
|
35
|
+
out = Hash.new
|
|
36
|
+
out["secret"] = Svix::serialize_primitive(@secret) unless @secret.nil?
|
|
37
|
+
out
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# Serializes the object to a json string
|
|
41
|
+
# @return String
|
|
42
|
+
def to_json(*args)
|
|
43
|
+
serialize.to_json(*args)
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# This file is @generated
|
|
3
|
+
require "json"
|
|
4
|
+
|
|
5
|
+
module Svix
|
|
6
|
+
class MergeConfigOut
|
|
7
|
+
|
|
8
|
+
ALL_FIELD ||= [].freeze
|
|
9
|
+
private_constant :ALL_FIELD
|
|
10
|
+
|
|
11
|
+
def initialize(attributes = {})
|
|
12
|
+
unless attributes.is_a?(Hash)
|
|
13
|
+
fail(ArgumentError, "The input argument (attributes) must be a hash in `Svix::MergeConfigOut` new method")
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
attributes.each do |k, v|
|
|
17
|
+
unless ALL_FIELD.include?(k.to_s)
|
|
18
|
+
fail(ArgumentError, "The field #{k} is not part of Svix::MergeConfigOut")
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
instance_variable_set("@#{k}", v)
|
|
22
|
+
instance_variable_set("@__#{k}_is_defined", true)
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def self.deserialize(attributes = {})
|
|
27
|
+
attributes = attributes.transform_keys(&:to_s)
|
|
28
|
+
attrs = Hash.new
|
|
29
|
+
new(attrs)
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
def serialize
|
|
33
|
+
out = Hash.new
|
|
34
|
+
out
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Serializes the object to a json string
|
|
38
|
+
# @return String
|
|
39
|
+
def to_json(*args)
|
|
40
|
+
serialize.to_json(*args)
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -22,7 +22,7 @@ module Svix
|
|
|
22
22
|
attr_accessor :role_arn
|
|
23
23
|
# Shared secret passed as the STS ExternalId.
|
|
24
24
|
#
|
|
25
|
-
#
|
|
25
|
+
# Recommended if `role_arn` is not null.
|
|
26
26
|
attr_accessor :external_id
|
|
27
27
|
|
|
28
28
|
ALL_FIELD ||= ["bucket", "access_key_id", "secret_access_key", "region", "endpoint_url", "role_arn", "external_id"].freeze
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# This file is @generated
|
|
3
|
+
module Svix
|
|
4
|
+
class Status
|
|
5
|
+
PENDING = "pending".freeze
|
|
6
|
+
ACTIVE = "active".freeze
|
|
7
|
+
|
|
8
|
+
def self.all_vars
|
|
9
|
+
@all_vars ||= [PENDING, ACTIVE].freeze
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def initialize(value)
|
|
13
|
+
unless Status.all_vars.include?(value)
|
|
14
|
+
raise "Invalid ENUM value '#{value}' for class #Status"
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
@value = value
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def self.deserialize(value)
|
|
21
|
+
return value if Status.all_vars.include?(value)
|
|
22
|
+
raise "Invalid ENUM value '#{value}' for class #Status"
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def serialize
|
|
26
|
+
@value
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -174,11 +174,7 @@ module Svix
|
|
|
174
174
|
fail(ArgumentError, "Invalid type `#{attributes["type"]}` expected on of #{NAME_TO_TYPE.keys}")
|
|
175
175
|
end
|
|
176
176
|
|
|
177
|
-
|
|
178
|
-
fail(ArgumentError, "Missing required field config")
|
|
179
|
-
end
|
|
180
|
-
|
|
181
|
-
attrs["config"] = NAME_TO_TYPE[attributes["type"]].deserialize(attributes["config"])
|
|
177
|
+
attrs["config"] = NAME_TO_TYPE[attributes["type"]].deserialize(attributes["config"] || {})
|
|
182
178
|
new(attrs)
|
|
183
179
|
end
|
|
184
180
|
|
|
@@ -37,6 +37,22 @@ module Svix
|
|
|
37
37
|
end
|
|
38
38
|
end
|
|
39
39
|
|
|
40
|
+
class PollingEndpoint
|
|
41
|
+
|
|
42
|
+
def serialize
|
|
43
|
+
Hash.new
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
def self.deserialize(attributes = {})
|
|
47
|
+
new
|
|
48
|
+
end
|
|
49
|
+
# Serializes the object to a json string
|
|
50
|
+
# @return String
|
|
51
|
+
def to_json(*args)
|
|
52
|
+
serialize.to_json(*args)
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
|
|
40
56
|
class AzureBlobStorage < AzureBlobStorageConfigOut
|
|
41
57
|
end
|
|
42
58
|
|
|
@@ -120,6 +136,7 @@ module Svix
|
|
|
120
136
|
private_constant :ALL_FIELD
|
|
121
137
|
TYPE_TO_NAME = {
|
|
122
138
|
StreamSinkOutConfig::Poller => "poller",
|
|
139
|
+
StreamSinkOutConfig::PollingEndpoint => "pollingEndpoint",
|
|
123
140
|
StreamSinkOutConfig::AzureBlobStorage => "azureBlobStorage",
|
|
124
141
|
StreamSinkOutConfig::OtelTracing => "otelTracing",
|
|
125
142
|
StreamSinkOutConfig::Http => "http",
|
|
@@ -190,11 +207,7 @@ module Svix
|
|
|
190
207
|
fail(ArgumentError, "Invalid type `#{attributes["type"]}` expected on of #{NAME_TO_TYPE.keys}")
|
|
191
208
|
end
|
|
192
209
|
|
|
193
|
-
|
|
194
|
-
fail(ArgumentError, "Missing required field config")
|
|
195
|
-
end
|
|
196
|
-
|
|
197
|
-
attrs["config"] = NAME_TO_TYPE[attributes["type"]].deserialize(attributes["config"])
|
|
210
|
+
attrs["config"] = NAME_TO_TYPE[attributes["type"]].deserialize(attributes["config"] || {})
|
|
198
211
|
new(attrs)
|
|
199
212
|
end
|
|
200
213
|
|
|
@@ -162,11 +162,7 @@ module Svix
|
|
|
162
162
|
fail(ArgumentError, "Invalid type `#{attributes["type"]}` expected on of #{NAME_TO_TYPE.keys}")
|
|
163
163
|
end
|
|
164
164
|
|
|
165
|
-
|
|
166
|
-
fail(ArgumentError, "Missing required field config")
|
|
167
|
-
end
|
|
168
|
-
|
|
169
|
-
attrs["config"] = NAME_TO_TYPE[attributes["type"]].deserialize(attributes["config"])
|
|
165
|
+
attrs["config"] = NAME_TO_TYPE[attributes["type"]].deserialize(attributes["config"] || {})
|
|
170
166
|
new(attrs)
|
|
171
167
|
end
|
|
172
168
|
|
data/lib/svix/svix.rb
CHANGED
|
@@ -17,6 +17,7 @@ module Svix
|
|
|
17
17
|
attr_accessor :authentication
|
|
18
18
|
attr_accessor :background_task
|
|
19
19
|
attr_accessor :connector
|
|
20
|
+
attr_accessor :destination
|
|
20
21
|
attr_accessor :endpoint
|
|
21
22
|
attr_accessor :environment
|
|
22
23
|
attr_accessor :event_type
|
|
@@ -52,6 +53,7 @@ module Svix
|
|
|
52
53
|
@authentication = Authentication.new(api_client)
|
|
53
54
|
@background_task = BackgroundTask.new(api_client)
|
|
54
55
|
@connector = Connector.new(api_client)
|
|
56
|
+
@destination = Destination.new(api_client)
|
|
55
57
|
@endpoint = Endpoint.new(api_client)
|
|
56
58
|
@environment = Environment.new(api_client)
|
|
57
59
|
@event_type = EventType.new(api_client)
|
data/lib/svix/version.rb
CHANGED
data/lib/svix.rb
CHANGED
|
@@ -12,6 +12,8 @@ require "svix/api/application"
|
|
|
12
12
|
require "svix/api/authentication"
|
|
13
13
|
require "svix/api/background_task"
|
|
14
14
|
require "svix/api/connector"
|
|
15
|
+
require "svix/api/destination"
|
|
16
|
+
require "svix/api/destination_transformation"
|
|
15
17
|
require "svix/api/endpoint"
|
|
16
18
|
require "svix/api/endpoint_transformation"
|
|
17
19
|
require "svix/api/environment"
|
|
@@ -79,6 +81,13 @@ require "svix/models/connector_upsert_in"
|
|
|
79
81
|
require "svix/models/create_stream_events_in"
|
|
80
82
|
require "svix/models/create_stream_events_out"
|
|
81
83
|
require "svix/models/cron_config"
|
|
84
|
+
require "svix/models/destination_in"
|
|
85
|
+
require "svix/models/destination_out"
|
|
86
|
+
require "svix/models/destination_patch"
|
|
87
|
+
require "svix/models/destination_status"
|
|
88
|
+
require "svix/models/destination_status_in"
|
|
89
|
+
require "svix/models/destination_transform_in"
|
|
90
|
+
require "svix/models/destination_transformation_out"
|
|
82
91
|
require "svix/models/docusign_config"
|
|
83
92
|
require "svix/models/docusign_config_out"
|
|
84
93
|
require "svix/models/easypost_config"
|
|
@@ -116,6 +125,7 @@ require "svix/models/event_type_out"
|
|
|
116
125
|
require "svix/models/event_type_patch"
|
|
117
126
|
require "svix/models/event_type_upsert_in"
|
|
118
127
|
require "svix/models/expunge_all_contents_out"
|
|
128
|
+
require "svix/models/fifo_endpoint_config_in"
|
|
119
129
|
require "svix/models/github_config"
|
|
120
130
|
require "svix/models/github_config_out"
|
|
121
131
|
require "svix/models/google_cloud_pub_sub_config_in"
|
|
@@ -146,6 +156,7 @@ require "svix/models/integration_update"
|
|
|
146
156
|
require "svix/models/list_response_application_out"
|
|
147
157
|
require "svix/models/list_response_background_task_out"
|
|
148
158
|
require "svix/models/list_response_connector_out"
|
|
159
|
+
require "svix/models/list_response_destination_out"
|
|
149
160
|
require "svix/models/list_response_endpoint_message_out"
|
|
150
161
|
require "svix/models/list_response_endpoint_out"
|
|
151
162
|
require "svix/models/list_response_event_type_out"
|
|
@@ -159,6 +170,8 @@ require "svix/models/list_response_operational_webhook_endpoint_out"
|
|
|
159
170
|
require "svix/models/list_response_stream_event_type_out"
|
|
160
171
|
require "svix/models/list_response_stream_out"
|
|
161
172
|
require "svix/models/list_response_stream_sink_out"
|
|
173
|
+
require "svix/models/merge_config"
|
|
174
|
+
require "svix/models/merge_config_out"
|
|
162
175
|
require "svix/models/message_attempt_out"
|
|
163
176
|
require "svix/models/message_attempt_trigger_type"
|
|
164
177
|
require "svix/models/message_endpoint_out"
|
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.
|
|
4
|
+
version: 2.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Svix
|
|
8
8
|
bindir: exe
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2026-09-
|
|
10
|
+
date: 2026-09-09 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: base64
|
|
@@ -109,6 +109,8 @@ files:
|
|
|
109
109
|
- lib/svix/api/authentication.rb
|
|
110
110
|
- lib/svix/api/background_task.rb
|
|
111
111
|
- lib/svix/api/connector.rb
|
|
112
|
+
- lib/svix/api/destination.rb
|
|
113
|
+
- lib/svix/api/destination_transformation.rb
|
|
112
114
|
- lib/svix/api/endpoint.rb
|
|
113
115
|
- lib/svix/api/endpoint_transformation.rb
|
|
114
116
|
- lib/svix/api/environment.rb
|
|
@@ -133,8 +135,11 @@ files:
|
|
|
133
135
|
- lib/svix/api/streaming_sink_transformation.rb
|
|
134
136
|
- lib/svix/api/streaming_stream.rb
|
|
135
137
|
- lib/svix/api_error.rb
|
|
138
|
+
- lib/svix/api_internal/destination.rb
|
|
139
|
+
- lib/svix/api_internal/destination_autoconfig.rb
|
|
136
140
|
- lib/svix/api_internal/endpoint.rb
|
|
137
|
-
- lib/svix/api_internal/
|
|
141
|
+
- lib/svix/api_internal/endpoint_auto_config_deprecated.rb
|
|
142
|
+
- lib/svix/api_internal/endpoint_autoconfig.rb
|
|
138
143
|
- lib/svix/api_internal/message.rb
|
|
139
144
|
- lib/svix/api_internal/message_pollerv2.rb
|
|
140
145
|
- lib/svix/autoconfig.rb
|
|
@@ -159,6 +164,7 @@ files:
|
|
|
159
164
|
- lib/svix/models/application_patch.rb
|
|
160
165
|
- lib/svix/models/application_token_expire_in.rb
|
|
161
166
|
- lib/svix/models/auto_config_sink_type.rb
|
|
167
|
+
- lib/svix/models/auto_config_subscription_out.rb
|
|
162
168
|
- lib/svix/models/azure_blob_storage_config_in.rb
|
|
163
169
|
- lib/svix/models/azure_blob_storage_config_out.rb
|
|
164
170
|
- lib/svix/models/azure_blob_storage_config_patch.rb
|
|
@@ -186,6 +192,13 @@ files:
|
|
|
186
192
|
- lib/svix/models/create_stream_events_in.rb
|
|
187
193
|
- lib/svix/models/create_stream_events_out.rb
|
|
188
194
|
- lib/svix/models/cron_config.rb
|
|
195
|
+
- lib/svix/models/destination_in.rb
|
|
196
|
+
- lib/svix/models/destination_out.rb
|
|
197
|
+
- lib/svix/models/destination_patch.rb
|
|
198
|
+
- lib/svix/models/destination_status.rb
|
|
199
|
+
- lib/svix/models/destination_status_in.rb
|
|
200
|
+
- lib/svix/models/destination_transform_in.rb
|
|
201
|
+
- lib/svix/models/destination_transformation_out.rb
|
|
189
202
|
- lib/svix/models/docusign_config.rb
|
|
190
203
|
- lib/svix/models/docusign_config_out.rb
|
|
191
204
|
- lib/svix/models/easypost_config.rb
|
|
@@ -223,6 +236,7 @@ files:
|
|
|
223
236
|
- lib/svix/models/event_type_patch.rb
|
|
224
237
|
- lib/svix/models/event_type_upsert_in.rb
|
|
225
238
|
- lib/svix/models/expunge_all_contents_out.rb
|
|
239
|
+
- lib/svix/models/fifo_endpoint_config_in.rb
|
|
226
240
|
- lib/svix/models/github_config.rb
|
|
227
241
|
- lib/svix/models/github_config_out.rb
|
|
228
242
|
- lib/svix/models/google_cloud_pub_sub_config_in.rb
|
|
@@ -253,6 +267,7 @@ files:
|
|
|
253
267
|
- lib/svix/models/list_response_application_out.rb
|
|
254
268
|
- lib/svix/models/list_response_background_task_out.rb
|
|
255
269
|
- lib/svix/models/list_response_connector_out.rb
|
|
270
|
+
- lib/svix/models/list_response_destination_out.rb
|
|
256
271
|
- lib/svix/models/list_response_endpoint_message_out.rb
|
|
257
272
|
- lib/svix/models/list_response_endpoint_out.rb
|
|
258
273
|
- lib/svix/models/list_response_event_type_out.rb
|
|
@@ -266,6 +281,8 @@ files:
|
|
|
266
281
|
- lib/svix/models/list_response_stream_event_type_out.rb
|
|
267
282
|
- lib/svix/models/list_response_stream_out.rb
|
|
268
283
|
- lib/svix/models/list_response_stream_sink_out.rb
|
|
284
|
+
- lib/svix/models/merge_config.rb
|
|
285
|
+
- lib/svix/models/merge_config_out.rb
|
|
269
286
|
- lib/svix/models/message_attempt_out.rb
|
|
270
287
|
- lib/svix/models/message_attempt_trigger_type.rb
|
|
271
288
|
- lib/svix/models/message_endpoint_out.rb
|
|
@@ -350,6 +367,7 @@ files:
|
|
|
350
367
|
- lib/svix/models/sqs_config_out.rb
|
|
351
368
|
- lib/svix/models/sqs_config_patch.rb
|
|
352
369
|
- lib/svix/models/starting_position.rb
|
|
370
|
+
- lib/svix/models/status.rb
|
|
353
371
|
- lib/svix/models/status_code_class.rb
|
|
354
372
|
- lib/svix/models/stream_event_type_in.rb
|
|
355
373
|
- lib/svix/models/stream_event_type_out.rb
|