svix 2.9.1 → 2.10.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/endpoint.rb +2 -0
- data/lib/svix/api/endpoint_mcp_events.rb +38 -0
- data/lib/svix/api/event_type.rb +1 -0
- data/lib/svix/api/message.rb +13 -0
- data/lib/svix/api/streaming_event_type.rb +2 -1
- data/lib/svix/models/archive_status.rb +30 -0
- data/lib/svix/models/ascend_config.rb +46 -0
- data/lib/svix/models/ascend_config_out.rb +43 -0
- data/lib/svix/models/batch_create_messages_in.rb +49 -0
- data/lib/svix/models/batch_message_in.rb +113 -0
- data/lib/svix/models/bitbucket_config.rb +46 -0
- data/lib/svix/models/bitbucket_config_out.rb +43 -0
- data/lib/svix/models/destination_in.rb +11 -1
- data/lib/svix/models/destination_out.rb +11 -1
- data/lib/svix/models/destination_patch.rb +11 -1
- data/lib/svix/models/elastic_search_config_in.rb +7 -1
- data/lib/svix/models/elastic_search_config_out.rb +4 -1
- data/lib/svix/models/elastic_search_config_patch.rb +4 -1
- data/lib/svix/models/elastic_search_operation.rb +33 -0
- data/lib/svix/models/endpoint_challenge_mode.rb +36 -0
- data/lib/svix/models/endpoint_out.rb +8 -1
- data/lib/svix/models/event_type_in.rb +17 -1
- data/lib/svix/models/event_type_out.rb +8 -0
- data/lib/svix/models/event_type_patch.rb +16 -1
- data/lib/svix/models/event_type_upsert_in.rb +16 -1
- data/lib/svix/models/generic_webhook_config.rb +46 -0
- data/lib/svix/models/generic_webhook_config_out.rb +49 -0
- data/lib/svix/models/generic_webhook_response.rb +52 -0
- data/lib/svix/models/ingest_source_in.rb +20 -0
- data/lib/svix/models/ingest_source_out.rb +20 -0
- data/lib/svix/models/mcp_events_delivery_mode.rb +28 -0
- data/lib/svix/models/mcp_events_subscribe_delivery_in.rb +59 -0
- data/lib/svix/models/mcp_events_subscribe_in.rb +100 -0
- data/lib/svix/models/mcp_events_subscribe_out.rb +66 -0
- data/lib/svix/models/mcp_events_unsubscribe_delivery_in.rb +54 -0
- data/lib/svix/models/mcp_events_unsubscribe_in.rb +59 -0
- data/lib/svix/models/message_endpoint_out.rb +8 -1
- data/lib/svix/models/message_in.rb +2 -0
- data/lib/svix/models/post_hog_config_in.rb +58 -0
- data/lib/svix/models/post_hog_config_out.rb +46 -0
- data/lib/svix/models/post_hog_config_patch.rb +49 -0
- data/lib/svix/models/segment_sink_config_in.rb +59 -0
- data/lib/svix/models/segment_sink_config_out.rb +46 -0
- data/lib/svix/models/segment_sink_config_patch.rb +52 -0
- data/lib/svix/models/stream_sink_in.rb +11 -1
- data/lib/svix/models/stream_sink_out.rb +11 -1
- data/lib/svix/models/stream_sink_patch.rb +11 -1
- data/lib/svix/models/tricentis_qtest_config.rb +46 -0
- data/lib/svix/models/tricentis_qtest_config_out.rb +46 -0
- data/lib/svix/version.rb +1 -1
- data/lib/svix/webhook.rb +1 -1
- data/lib/svix.rb +27 -0
- metadata +29 -2
|
@@ -8,8 +8,9 @@ module Svix
|
|
|
8
8
|
attr_accessor :url
|
|
9
9
|
attr_accessor :api_key
|
|
10
10
|
attr_accessor :refresh
|
|
11
|
+
attr_accessor :operation
|
|
11
12
|
|
|
12
|
-
ALL_FIELD ||= ["index_name", "url", "api_key", "refresh"].freeze
|
|
13
|
+
ALL_FIELD ||= ["index_name", "url", "api_key", "refresh", "operation"].freeze
|
|
13
14
|
private_constant :ALL_FIELD
|
|
14
15
|
|
|
15
16
|
def initialize(attributes = {})
|
|
@@ -37,6 +38,7 @@ module Svix
|
|
|
37
38
|
attrs["url"] = attributes["url"]
|
|
38
39
|
attrs["api_key"] = attributes["apiKey"]
|
|
39
40
|
attrs["refresh"] = attributes["refresh"]
|
|
41
|
+
attrs["operation"] = Svix::ElasticSearchOperation.deserialize(attributes["operation"]) if attributes["operation"]
|
|
40
42
|
new(attrs)
|
|
41
43
|
end
|
|
42
44
|
|
|
@@ -46,6 +48,7 @@ module Svix
|
|
|
46
48
|
out["url"] = Svix::serialize_primitive(@url) unless @url.nil?
|
|
47
49
|
out["apiKey"] = Svix::serialize_primitive(@api_key) unless @api_key.nil?
|
|
48
50
|
out["refresh"] = Svix::serialize_primitive(@refresh) unless @refresh.nil?
|
|
51
|
+
out["operation"] = Svix::serialize_schema_ref(@operation) unless @operation.nil?
|
|
49
52
|
out
|
|
50
53
|
end
|
|
51
54
|
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# This file is @generated
|
|
3
|
+
module Svix
|
|
4
|
+
# Operation for bulk indexing.
|
|
5
|
+
#
|
|
6
|
+
# `index` will do an upsert for the given document ID, and `create` will insert it
|
|
7
|
+
# (and do nothing on conflict). Only `create` is supported for Data Stream targets.
|
|
8
|
+
class ElasticSearchOperation
|
|
9
|
+
INDEX = "index".freeze
|
|
10
|
+
CREATE = "create".freeze
|
|
11
|
+
|
|
12
|
+
def self.all_vars
|
|
13
|
+
@all_vars ||= [INDEX, CREATE].freeze
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
def initialize(value)
|
|
17
|
+
unless ElasticSearchOperation.all_vars.include?(value)
|
|
18
|
+
raise "Invalid ENUM value '#{value}' for class #ElasticSearchOperation"
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
@value = value
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def self.deserialize(value)
|
|
25
|
+
return value if ElasticSearchOperation.all_vars.include?(value)
|
|
26
|
+
raise "Invalid ENUM value '#{value}' for class #ElasticSearchOperation"
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
def serialize
|
|
30
|
+
@value
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# This file is @generated
|
|
3
|
+
module Svix
|
|
4
|
+
# How an endpoint must respond to a challenge.
|
|
5
|
+
#
|
|
6
|
+
# - `challenge-response`: the Standard Webhooks challenge-response check.
|
|
7
|
+
# The endpoint must return `webhook-challenge-response`, calculated from
|
|
8
|
+
# the challenge and its secret.
|
|
9
|
+
# - `echo`: the endpoint must echo the challenge from the request body back
|
|
10
|
+
# as `{"challenge": "..."}`. This doesn't prove that it holds the secret.
|
|
11
|
+
class EndpointChallengeMode
|
|
12
|
+
CHALLENGE_RESPONSE = "challenge-response".freeze
|
|
13
|
+
ECHO = "echo".freeze
|
|
14
|
+
|
|
15
|
+
def self.all_vars
|
|
16
|
+
@all_vars ||= [CHALLENGE_RESPONSE, ECHO].freeze
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
def initialize(value)
|
|
20
|
+
unless EndpointChallengeMode.all_vars.include?(value)
|
|
21
|
+
raise "Invalid ENUM value '#{value}' for class #EndpointChallengeMode"
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
@value = value
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def self.deserialize(value)
|
|
28
|
+
return value if EndpointChallengeMode.all_vars.include?(value)
|
|
29
|
+
raise "Invalid ENUM value '#{value}' for class #EndpointChallengeMode"
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
def serialize
|
|
33
|
+
@value
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -21,6 +21,10 @@ module Svix
|
|
|
21
21
|
attr_accessor :channels
|
|
22
22
|
attr_accessor :created_at
|
|
23
23
|
attr_accessor :updated_at
|
|
24
|
+
# When the endpoint expires, if ever.
|
|
25
|
+
#
|
|
26
|
+
# No messages are sent to the endpoint after this time.
|
|
27
|
+
attr_accessor :expiry
|
|
24
28
|
|
|
25
29
|
ALL_FIELD ||= [
|
|
26
30
|
"id",
|
|
@@ -33,7 +37,8 @@ module Svix
|
|
|
33
37
|
"event_types",
|
|
34
38
|
"channels",
|
|
35
39
|
"created_at",
|
|
36
|
-
"updated_at"
|
|
40
|
+
"updated_at",
|
|
41
|
+
"expiry"
|
|
37
42
|
].freeze
|
|
38
43
|
private_constant :ALL_FIELD
|
|
39
44
|
|
|
@@ -66,6 +71,7 @@ module Svix
|
|
|
66
71
|
attrs["channels"] = attributes["channels"]
|
|
67
72
|
attrs["created_at"] = DateTime.rfc3339(attributes["createdAt"]).to_time
|
|
68
73
|
attrs["updated_at"] = DateTime.rfc3339(attributes["updatedAt"]).to_time
|
|
74
|
+
attrs["expiry"] = DateTime.rfc3339(attributes["expiry"]).to_time if attributes["expiry"]
|
|
69
75
|
new(attrs)
|
|
70
76
|
end
|
|
71
77
|
|
|
@@ -82,6 +88,7 @@ module Svix
|
|
|
82
88
|
out["channels"] = Svix::serialize_primitive(@channels) unless @channels.nil?
|
|
83
89
|
out["createdAt"] = Svix::serialize_primitive(@created_at) unless @created_at.nil?
|
|
84
90
|
out["updatedAt"] = Svix::serialize_primitive(@updated_at) unless @updated_at.nil?
|
|
91
|
+
out["expiry"] = Svix::serialize_primitive(@expiry) unless @expiry.nil?
|
|
85
92
|
out
|
|
86
93
|
end
|
|
87
94
|
|
|
@@ -7,6 +7,8 @@ module Svix
|
|
|
7
7
|
# The event type's name
|
|
8
8
|
attr_accessor :name
|
|
9
9
|
attr_accessor :description
|
|
10
|
+
# Translated descriptions keyed by BCP 47 language tag.
|
|
11
|
+
attr_accessor :description_translations
|
|
10
12
|
attr_accessor :archived
|
|
11
13
|
attr_accessor :deprecated
|
|
12
14
|
# The schema for the event type for a specific version as a JSON schema.
|
|
@@ -15,7 +17,16 @@ module Svix
|
|
|
15
17
|
attr_accessor :group_name
|
|
16
18
|
attr_accessor :feature_flags
|
|
17
19
|
|
|
18
|
-
ALL_FIELD ||= [
|
|
20
|
+
ALL_FIELD ||= [
|
|
21
|
+
"name",
|
|
22
|
+
"description",
|
|
23
|
+
"description_translations",
|
|
24
|
+
"archived",
|
|
25
|
+
"deprecated",
|
|
26
|
+
"schemas",
|
|
27
|
+
"group_name",
|
|
28
|
+
"feature_flags"
|
|
29
|
+
].freeze
|
|
19
30
|
private_constant :ALL_FIELD
|
|
20
31
|
|
|
21
32
|
def initialize(attributes = {})
|
|
@@ -38,6 +49,7 @@ module Svix
|
|
|
38
49
|
attrs = Hash.new
|
|
39
50
|
attrs["name"] = attributes["name"]
|
|
40
51
|
attrs["description"] = attributes["description"]
|
|
52
|
+
attrs["description_translations"] = attributes["descriptionTranslations"]
|
|
41
53
|
attrs["archived"] = attributes["archived"]
|
|
42
54
|
attrs["deprecated"] = attributes["deprecated"]
|
|
43
55
|
attrs["schemas"] = attributes["schemas"]
|
|
@@ -50,6 +62,10 @@ module Svix
|
|
|
50
62
|
out = Hash.new
|
|
51
63
|
out["name"] = Svix::serialize_primitive(@name) unless @name.nil?
|
|
52
64
|
out["description"] = Svix::serialize_primitive(@description) unless @description.nil?
|
|
65
|
+
unless @description_translations.nil?
|
|
66
|
+
out["descriptionTranslations"] = Svix::serialize_primitive(@description_translations)
|
|
67
|
+
end
|
|
68
|
+
|
|
53
69
|
out["archived"] = Svix::serialize_primitive(@archived) unless @archived.nil?
|
|
54
70
|
out["deprecated"] = Svix::serialize_primitive(@deprecated) unless @deprecated.nil?
|
|
55
71
|
out["schemas"] = Svix::serialize_primitive(@schemas) unless @schemas.nil?
|
|
@@ -7,6 +7,8 @@ module Svix
|
|
|
7
7
|
# The event type's name
|
|
8
8
|
attr_accessor :name
|
|
9
9
|
attr_accessor :description
|
|
10
|
+
# Translated descriptions keyed by BCP 47 language tag.
|
|
11
|
+
attr_accessor :description_translations
|
|
10
12
|
attr_accessor :archived
|
|
11
13
|
attr_accessor :deprecated
|
|
12
14
|
# The schema for the event type for a specific version as a JSON schema.
|
|
@@ -21,6 +23,7 @@ module Svix
|
|
|
21
23
|
ALL_FIELD ||= [
|
|
22
24
|
"name",
|
|
23
25
|
"description",
|
|
26
|
+
"description_translations",
|
|
24
27
|
"archived",
|
|
25
28
|
"deprecated",
|
|
26
29
|
"schemas",
|
|
@@ -52,6 +55,7 @@ module Svix
|
|
|
52
55
|
attrs = Hash.new
|
|
53
56
|
attrs["name"] = attributes["name"]
|
|
54
57
|
attrs["description"] = attributes["description"]
|
|
58
|
+
attrs["description_translations"] = attributes["descriptionTranslations"]
|
|
55
59
|
attrs["archived"] = attributes["archived"]
|
|
56
60
|
attrs["deprecated"] = attributes["deprecated"]
|
|
57
61
|
attrs["schemas"] = attributes["schemas"]
|
|
@@ -67,6 +71,10 @@ module Svix
|
|
|
67
71
|
out = Hash.new
|
|
68
72
|
out["name"] = Svix::serialize_primitive(@name) unless @name.nil?
|
|
69
73
|
out["description"] = Svix::serialize_primitive(@description) unless @description.nil?
|
|
74
|
+
unless @description_translations.nil?
|
|
75
|
+
out["descriptionTranslations"] = Svix::serialize_primitive(@description_translations)
|
|
76
|
+
end
|
|
77
|
+
|
|
70
78
|
out["archived"] = Svix::serialize_primitive(@archived) unless @archived.nil?
|
|
71
79
|
out["deprecated"] = Svix::serialize_primitive(@deprecated) unless @deprecated.nil?
|
|
72
80
|
out["schemas"] = Svix::serialize_primitive(@schemas) unless @schemas.nil?
|
|
@@ -5,6 +5,8 @@ require "json"
|
|
|
5
5
|
module Svix
|
|
6
6
|
class EventTypePatch
|
|
7
7
|
attr_accessor :description
|
|
8
|
+
# Translated descriptions keyed by BCP 47 language tag.
|
|
9
|
+
attr_accessor :description_translations
|
|
8
10
|
attr_accessor :archived
|
|
9
11
|
attr_accessor :deprecated
|
|
10
12
|
attr_accessor :schemas
|
|
@@ -12,7 +14,15 @@ module Svix
|
|
|
12
14
|
# The event type group's name
|
|
13
15
|
attr_accessor :group_name
|
|
14
16
|
|
|
15
|
-
ALL_FIELD ||= [
|
|
17
|
+
ALL_FIELD ||= [
|
|
18
|
+
"description",
|
|
19
|
+
"description_translations",
|
|
20
|
+
"archived",
|
|
21
|
+
"deprecated",
|
|
22
|
+
"schemas",
|
|
23
|
+
"feature_flags",
|
|
24
|
+
"group_name"
|
|
25
|
+
].freeze
|
|
16
26
|
private_constant :ALL_FIELD
|
|
17
27
|
|
|
18
28
|
def initialize(attributes = {})
|
|
@@ -34,6 +44,7 @@ module Svix
|
|
|
34
44
|
attributes = attributes.transform_keys(&:to_s)
|
|
35
45
|
attrs = Hash.new
|
|
36
46
|
attrs["description"] = attributes["description"]
|
|
47
|
+
attrs["description_translations"] = attributes["descriptionTranslations"]
|
|
37
48
|
attrs["archived"] = attributes["archived"]
|
|
38
49
|
attrs["deprecated"] = attributes["deprecated"]
|
|
39
50
|
attrs["schemas"] = attributes["schemas"]
|
|
@@ -45,6 +56,10 @@ module Svix
|
|
|
45
56
|
def serialize
|
|
46
57
|
out = Hash.new
|
|
47
58
|
out["description"] = Svix::serialize_primitive(@description) unless @description.nil?
|
|
59
|
+
if @__description_translations_is_defined
|
|
60
|
+
out["descriptionTranslations"] = Svix::serialize_primitive(@description_translations)
|
|
61
|
+
end
|
|
62
|
+
|
|
48
63
|
out["archived"] = Svix::serialize_primitive(@archived) unless @archived.nil?
|
|
49
64
|
out["deprecated"] = Svix::serialize_primitive(@deprecated) unless @deprecated.nil?
|
|
50
65
|
out["schemas"] = Svix::serialize_primitive(@schemas) if @__schemas_is_defined
|
|
@@ -5,6 +5,8 @@ require "json"
|
|
|
5
5
|
module Svix
|
|
6
6
|
class EventTypeUpsertIn
|
|
7
7
|
attr_accessor :description
|
|
8
|
+
# Translated descriptions keyed by BCP 47 language tag.
|
|
9
|
+
attr_accessor :description_translations
|
|
8
10
|
attr_accessor :archived
|
|
9
11
|
attr_accessor :deprecated
|
|
10
12
|
# The schema for the event type for a specific version as a JSON schema.
|
|
@@ -13,7 +15,15 @@ module Svix
|
|
|
13
15
|
# The event type group's name
|
|
14
16
|
attr_accessor :group_name
|
|
15
17
|
|
|
16
|
-
ALL_FIELD ||= [
|
|
18
|
+
ALL_FIELD ||= [
|
|
19
|
+
"description",
|
|
20
|
+
"description_translations",
|
|
21
|
+
"archived",
|
|
22
|
+
"deprecated",
|
|
23
|
+
"schemas",
|
|
24
|
+
"feature_flags",
|
|
25
|
+
"group_name"
|
|
26
|
+
].freeze
|
|
17
27
|
private_constant :ALL_FIELD
|
|
18
28
|
|
|
19
29
|
def initialize(attributes = {})
|
|
@@ -35,6 +45,7 @@ module Svix
|
|
|
35
45
|
attributes = attributes.transform_keys(&:to_s)
|
|
36
46
|
attrs = Hash.new
|
|
37
47
|
attrs["description"] = attributes["description"]
|
|
48
|
+
attrs["description_translations"] = attributes["descriptionTranslations"]
|
|
38
49
|
attrs["archived"] = attributes["archived"]
|
|
39
50
|
attrs["deprecated"] = attributes["deprecated"]
|
|
40
51
|
attrs["schemas"] = attributes["schemas"]
|
|
@@ -46,6 +57,10 @@ module Svix
|
|
|
46
57
|
def serialize
|
|
47
58
|
out = Hash.new
|
|
48
59
|
out["description"] = Svix::serialize_primitive(@description) unless @description.nil?
|
|
60
|
+
unless @description_translations.nil?
|
|
61
|
+
out["descriptionTranslations"] = Svix::serialize_primitive(@description_translations)
|
|
62
|
+
end
|
|
63
|
+
|
|
49
64
|
out["archived"] = Svix::serialize_primitive(@archived) unless @archived.nil?
|
|
50
65
|
out["deprecated"] = Svix::serialize_primitive(@deprecated) unless @deprecated.nil?
|
|
51
66
|
out["schemas"] = Svix::serialize_primitive(@schemas) unless @schemas.nil?
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# This file is @generated
|
|
3
|
+
require "json"
|
|
4
|
+
|
|
5
|
+
module Svix
|
|
6
|
+
class GenericWebhookConfig
|
|
7
|
+
attr_accessor :response
|
|
8
|
+
|
|
9
|
+
ALL_FIELD ||= ["response"].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::GenericWebhookConfig` 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::GenericWebhookConfig")
|
|
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["response"] = Svix::GenericWebhookResponse.deserialize(attributes["response"]) if attributes["response"]
|
|
31
|
+
new(attrs)
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
def serialize
|
|
35
|
+
out = Hash.new
|
|
36
|
+
out["response"] = Svix::serialize_schema_ref(@response) unless @response.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,49 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# This file is @generated
|
|
3
|
+
require "json"
|
|
4
|
+
|
|
5
|
+
module Svix
|
|
6
|
+
class GenericWebhookConfigOut
|
|
7
|
+
attr_accessor :response
|
|
8
|
+
|
|
9
|
+
ALL_FIELD ||= ["response"].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::GenericWebhookConfigOut` 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::GenericWebhookConfigOut")
|
|
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["response"] = Svix::GenericWebhookResponse.deserialize(attributes["response"]) if attributes["response"]
|
|
34
|
+
new(attrs)
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
def serialize
|
|
38
|
+
out = Hash.new
|
|
39
|
+
out["response"] = Svix::serialize_schema_ref(@response) unless @response.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 GenericWebhookResponse
|
|
7
|
+
attr_accessor :content_type
|
|
8
|
+
attr_accessor :body
|
|
9
|
+
|
|
10
|
+
ALL_FIELD ||= ["content_type", "body"].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::GenericWebhookResponse` 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::GenericWebhookResponse")
|
|
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["content_type"] = attributes["contentType"]
|
|
35
|
+
attrs["body"] = attributes["body"]
|
|
36
|
+
new(attrs)
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
def serialize
|
|
40
|
+
out = Hash.new
|
|
41
|
+
out["contentType"] = Svix::serialize_primitive(@content_type) unless @content_type.nil?
|
|
42
|
+
out["body"] = Svix::serialize_primitive(@body) unless @body.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
|
|
@@ -4,10 +4,13 @@ require "json"
|
|
|
4
4
|
|
|
5
5
|
require_relative "./adobe_sign_config"
|
|
6
6
|
require_relative "./airwallex_config"
|
|
7
|
+
require_relative "./ascend_config"
|
|
8
|
+
require_relative "./bitbucket_config"
|
|
7
9
|
require_relative "./checkbook_config"
|
|
8
10
|
require_relative "./cron_config"
|
|
9
11
|
require_relative "./docusign_config"
|
|
10
12
|
require_relative "./easypost_config"
|
|
13
|
+
require_relative "./generic_webhook_config"
|
|
11
14
|
require_relative "./github_config"
|
|
12
15
|
require_relative "./hubspot_config"
|
|
13
16
|
require_relative "./merge_config"
|
|
@@ -25,6 +28,7 @@ require_relative "./stripe_config"
|
|
|
25
28
|
require_relative "./svix_config"
|
|
26
29
|
require_relative "./tailscale_config"
|
|
27
30
|
require_relative "./telnyx_config"
|
|
31
|
+
require_relative "./tricentis_qtest_config"
|
|
28
32
|
require_relative "./vapi_config"
|
|
29
33
|
require_relative "./veriff_config"
|
|
30
34
|
require_relative "./vgs_config"
|
|
@@ -48,15 +52,24 @@ module Svix
|
|
|
48
52
|
end
|
|
49
53
|
end
|
|
50
54
|
|
|
55
|
+
class Generic < GenericWebhookConfig
|
|
56
|
+
end
|
|
57
|
+
|
|
51
58
|
class Cron < CronConfig
|
|
52
59
|
end
|
|
53
60
|
|
|
54
61
|
class AdobeSign < AdobeSignConfig
|
|
55
62
|
end
|
|
56
63
|
|
|
64
|
+
class Ascend < AscendConfig
|
|
65
|
+
end
|
|
66
|
+
|
|
57
67
|
class Beehiiv < SvixConfig
|
|
58
68
|
end
|
|
59
69
|
|
|
70
|
+
class Bitbucket < BitbucketConfig
|
|
71
|
+
end
|
|
72
|
+
|
|
60
73
|
class Brex < SvixConfig
|
|
61
74
|
end
|
|
62
75
|
|
|
@@ -159,6 +172,9 @@ module Svix
|
|
|
159
172
|
class Telnyx < TelnyxConfig
|
|
160
173
|
end
|
|
161
174
|
|
|
175
|
+
class TricentisQtest < TricentisQtestConfig
|
|
176
|
+
end
|
|
177
|
+
|
|
162
178
|
class Vapi < VapiConfig
|
|
163
179
|
end
|
|
164
180
|
|
|
@@ -189,9 +205,12 @@ module Svix
|
|
|
189
205
|
private_constant :ALL_FIELD
|
|
190
206
|
TYPE_TO_NAME = {
|
|
191
207
|
IngestSourceInConfig::GenericWebhook => "generic-webhook",
|
|
208
|
+
IngestSourceInConfig::Generic => "generic",
|
|
192
209
|
IngestSourceInConfig::Cron => "cron",
|
|
193
210
|
IngestSourceInConfig::AdobeSign => "adobe-sign",
|
|
211
|
+
IngestSourceInConfig::Ascend => "ascend",
|
|
194
212
|
IngestSourceInConfig::Beehiiv => "beehiiv",
|
|
213
|
+
IngestSourceInConfig::Bitbucket => "bitbucket",
|
|
195
214
|
IngestSourceInConfig::Brex => "brex",
|
|
196
215
|
IngestSourceInConfig::Checkbook => "checkbook",
|
|
197
216
|
IngestSourceInConfig::Clerk => "clerk",
|
|
@@ -226,6 +245,7 @@ module Svix
|
|
|
226
245
|
IngestSourceInConfig::Zoom => "zoom",
|
|
227
246
|
IngestSourceInConfig::Tailscale => "tailscale",
|
|
228
247
|
IngestSourceInConfig::Telnyx => "telnyx",
|
|
248
|
+
IngestSourceInConfig::TricentisQtest => "tricentis-qtest",
|
|
229
249
|
IngestSourceInConfig::Vapi => "vapi",
|
|
230
250
|
IngestSourceInConfig::OpenAi => "open-ai",
|
|
231
251
|
IngestSourceInConfig::Render => "render",
|
|
@@ -4,10 +4,13 @@ require "json"
|
|
|
4
4
|
|
|
5
5
|
require_relative "./adobe_sign_config_out"
|
|
6
6
|
require_relative "./airwallex_config_out"
|
|
7
|
+
require_relative "./ascend_config_out"
|
|
8
|
+
require_relative "./bitbucket_config_out"
|
|
7
9
|
require_relative "./checkbook_config_out"
|
|
8
10
|
require_relative "./cron_config"
|
|
9
11
|
require_relative "./docusign_config_out"
|
|
10
12
|
require_relative "./easypost_config_out"
|
|
13
|
+
require_relative "./generic_webhook_config_out"
|
|
11
14
|
require_relative "./github_config_out"
|
|
12
15
|
require_relative "./hubspot_config_out"
|
|
13
16
|
require_relative "./merge_config_out"
|
|
@@ -25,6 +28,7 @@ require_relative "./stripe_config_out"
|
|
|
25
28
|
require_relative "./svix_config_out"
|
|
26
29
|
require_relative "./tailscale_config_out"
|
|
27
30
|
require_relative "./telnyx_config_out"
|
|
31
|
+
require_relative "./tricentis_qtest_config_out"
|
|
28
32
|
require_relative "./vapi_config_out"
|
|
29
33
|
require_relative "./veriff_config_out"
|
|
30
34
|
require_relative "./vgs_config_out"
|
|
@@ -48,15 +52,24 @@ module Svix
|
|
|
48
52
|
end
|
|
49
53
|
end
|
|
50
54
|
|
|
55
|
+
class Generic < GenericWebhookConfigOut
|
|
56
|
+
end
|
|
57
|
+
|
|
51
58
|
class Cron < CronConfig
|
|
52
59
|
end
|
|
53
60
|
|
|
54
61
|
class AdobeSign < AdobeSignConfigOut
|
|
55
62
|
end
|
|
56
63
|
|
|
64
|
+
class Ascend < AscendConfigOut
|
|
65
|
+
end
|
|
66
|
+
|
|
57
67
|
class Beehiiv < SvixConfigOut
|
|
58
68
|
end
|
|
59
69
|
|
|
70
|
+
class Bitbucket < BitbucketConfigOut
|
|
71
|
+
end
|
|
72
|
+
|
|
60
73
|
class Brex < SvixConfigOut
|
|
61
74
|
end
|
|
62
75
|
|
|
@@ -159,6 +172,9 @@ module Svix
|
|
|
159
172
|
class Telnyx < TelnyxConfigOut
|
|
160
173
|
end
|
|
161
174
|
|
|
175
|
+
class TricentisQtest < TricentisQtestConfigOut
|
|
176
|
+
end
|
|
177
|
+
|
|
162
178
|
class Vapi < VapiConfigOut
|
|
163
179
|
end
|
|
164
180
|
|
|
@@ -194,9 +210,12 @@ module Svix
|
|
|
194
210
|
private_constant :ALL_FIELD
|
|
195
211
|
TYPE_TO_NAME = {
|
|
196
212
|
IngestSourceOutConfig::GenericWebhook => "generic-webhook",
|
|
213
|
+
IngestSourceOutConfig::Generic => "generic",
|
|
197
214
|
IngestSourceOutConfig::Cron => "cron",
|
|
198
215
|
IngestSourceOutConfig::AdobeSign => "adobe-sign",
|
|
216
|
+
IngestSourceOutConfig::Ascend => "ascend",
|
|
199
217
|
IngestSourceOutConfig::Beehiiv => "beehiiv",
|
|
218
|
+
IngestSourceOutConfig::Bitbucket => "bitbucket",
|
|
200
219
|
IngestSourceOutConfig::Brex => "brex",
|
|
201
220
|
IngestSourceOutConfig::Checkbook => "checkbook",
|
|
202
221
|
IngestSourceOutConfig::Clerk => "clerk",
|
|
@@ -231,6 +250,7 @@ module Svix
|
|
|
231
250
|
IngestSourceOutConfig::Zoom => "zoom",
|
|
232
251
|
IngestSourceOutConfig::Tailscale => "tailscale",
|
|
233
252
|
IngestSourceOutConfig::Telnyx => "telnyx",
|
|
253
|
+
IngestSourceOutConfig::TricentisQtest => "tricentis-qtest",
|
|
234
254
|
IngestSourceOutConfig::Vapi => "vapi",
|
|
235
255
|
IngestSourceOutConfig::OpenAi => "open-ai",
|
|
236
256
|
IngestSourceOutConfig::Render => "render",
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# This file is @generated
|
|
3
|
+
module Svix
|
|
4
|
+
class McpEventsDeliveryMode
|
|
5
|
+
WEBHOOK = "webhook".freeze
|
|
6
|
+
|
|
7
|
+
def self.all_vars
|
|
8
|
+
@all_vars ||= [WEBHOOK].freeze
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
def initialize(value)
|
|
12
|
+
unless McpEventsDeliveryMode.all_vars.include?(value)
|
|
13
|
+
raise "Invalid ENUM value '#{value}' for class #McpEventsDeliveryMode"
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
@value = value
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
def self.deserialize(value)
|
|
20
|
+
return value if McpEventsDeliveryMode.all_vars.include?(value)
|
|
21
|
+
raise "Invalid ENUM value '#{value}' for class #McpEventsDeliveryMode"
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def serialize
|
|
25
|
+
@value
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|