svix 1.61.3 → 1.61.4
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/ingest.rb +26 -0
- data/lib/svix/api/ingest_source.rb +76 -0
- data/lib/svix/models/adobe_sign_config.rb +46 -0
- data/lib/svix/models/adobe_sign_config_out.rb +43 -0
- data/lib/svix/models/aggregate_event_types_out.rb +2 -2
- data/lib/svix/models/app_portal_access_in.rb +1 -1
- data/lib/svix/models/app_usage_stats_out.rb +2 -2
- data/lib/svix/models/background_task_finished_event.rb +53 -0
- data/lib/svix/models/background_task_finished_event2.rb +58 -0
- data/lib/svix/models/background_task_out.rb +2 -2
- data/lib/svix/models/connector_in.rb +1 -1
- data/lib/svix/models/connector_out.rb +96 -0
- data/lib/svix/models/cron_config.rb +52 -0
- data/lib/svix/models/docusign_config.rb +46 -0
- data/lib/svix/models/docusign_config_out.rb +43 -0
- data/lib/svix/models/endpoint_created_event.rb +50 -0
- data/lib/svix/models/endpoint_created_event_data.rb +59 -0
- data/lib/svix/models/endpoint_deleted_event.rb +50 -0
- data/lib/svix/models/endpoint_deleted_event_data.rb +59 -0
- data/lib/svix/models/endpoint_disabled_event.rb +53 -0
- data/lib/svix/models/endpoint_disabled_event_data.rb +65 -0
- data/lib/svix/models/endpoint_disabled_trigger.rb +29 -0
- data/lib/svix/models/endpoint_enabled_event.rb +50 -0
- data/lib/svix/models/endpoint_enabled_event_data.rb +59 -0
- data/lib/svix/models/endpoint_message_out.rb +1 -1
- data/lib/svix/models/endpoint_updated_event.rb +50 -0
- data/lib/svix/models/endpoint_updated_event_data.rb +59 -0
- data/lib/svix/models/environment_out.rb +1 -1
- data/lib/svix/models/event_type_import_open_api_out.rb +1 -1
- data/lib/svix/models/expunge_all_contents_out.rb +2 -2
- data/lib/svix/models/github_config.rb +46 -0
- data/lib/svix/models/github_config_out.rb +43 -0
- data/lib/svix/models/hubspot_config.rb +46 -0
- data/lib/svix/models/hubspot_config_out.rb +43 -0
- data/lib/svix/models/ingest_source_consumer_portal_access_in.rb +52 -0
- data/lib/svix/models/ingest_source_in.rb +209 -0
- data/lib/svix/models/ingest_source_out.rb +221 -0
- data/lib/svix/models/list_response_ingest_source_out.rb +58 -0
- data/lib/svix/models/message_attempt_exhausted_event.rb +53 -0
- data/lib/svix/models/message_attempt_exhausted_event_data.rb +65 -0
- data/lib/svix/models/message_attempt_failed_data.rb +55 -0
- data/lib/svix/models/message_attempt_failing_event.rb +54 -0
- data/lib/svix/models/message_attempt_failing_event_data.rb +65 -0
- data/lib/svix/models/message_attempt_out.rb +3 -3
- data/lib/svix/models/message_attempt_recovered_event.rb +53 -0
- data/lib/svix/models/message_attempt_recovered_event_data.rb +65 -0
- data/lib/svix/models/message_endpoint_out.rb +1 -1
- data/lib/svix/models/message_in.rb +1 -1
- data/lib/svix/models/recover_out.rb +2 -2
- data/lib/svix/models/replay_out.rb +2 -2
- data/lib/svix/models/rotate_token_out.rb +46 -0
- data/lib/svix/models/segment_config.rb +46 -0
- data/lib/svix/models/segment_config_out.rb +43 -0
- data/lib/svix/models/shopify_config.rb +46 -0
- data/lib/svix/models/shopify_config_out.rb +43 -0
- data/lib/svix/models/slack_config.rb +46 -0
- data/lib/svix/models/slack_config_out.rb +43 -0
- data/lib/svix/models/stripe_config.rb +46 -0
- data/lib/svix/models/stripe_config_out.rb +43 -0
- data/lib/svix/models/svix_config.rb +46 -0
- data/lib/svix/models/svix_config_out.rb +43 -0
- data/lib/svix/models/zoom_config.rb +46 -0
- data/lib/svix/models/zoom_config_out.rb +43 -0
- data/lib/svix/util.rb +13 -0
- data/lib/svix/version.rb +1 -1
- data/lib/svix.rb +49 -1
- data/templates/component_type.rb.jinja +2 -0
- data/templates/types/macros.rb.jinja +43 -0
- data/templates/types/struct.rb.jinja +4 -33
- data/templates/types/struct_enum.rb.jinja +116 -0
- metadata +53 -2
@@ -0,0 +1,65 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# This file is @generated
|
3
|
+
require "json"
|
4
|
+
|
5
|
+
module Svix
|
6
|
+
# Sent when a message delivery has failed (all of the retry attempts have been exhausted) as a "message.attempt.exhausted" type or after it's failed four times as a "message.attempt.failing" event.
|
7
|
+
class MessageAttemptExhaustedEventData
|
8
|
+
attr_accessor :app_id
|
9
|
+
attr_accessor :app_uid
|
10
|
+
attr_accessor :endpoint_id
|
11
|
+
attr_accessor :last_attempt
|
12
|
+
attr_accessor :msg_event_id
|
13
|
+
attr_accessor :msg_id
|
14
|
+
|
15
|
+
ALL_FIELD ||= ["app_id", "app_uid", "endpoint_id", "last_attempt", "msg_event_id", "msg_id"].freeze
|
16
|
+
private_constant :ALL_FIELD
|
17
|
+
|
18
|
+
def initialize(attributes = {})
|
19
|
+
unless attributes.is_a?(Hash)
|
20
|
+
fail(
|
21
|
+
ArgumentError,
|
22
|
+
"The input argument (attributes) must be a hash in `Svix::MessageAttemptExhaustedEventData` new method"
|
23
|
+
)
|
24
|
+
end
|
25
|
+
|
26
|
+
attributes.each do |k, v|
|
27
|
+
unless ALL_FIELD.include?(k.to_s)
|
28
|
+
fail(ArgumentError, "The field #{k} is not part of Svix::MessageAttemptExhaustedEventData")
|
29
|
+
end
|
30
|
+
|
31
|
+
instance_variable_set("@#{k}", v)
|
32
|
+
instance_variable_set("@__#{k}_is_defined", true)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
def self.deserialize(attributes = {})
|
37
|
+
attributes = attributes.transform_keys(&:to_s)
|
38
|
+
attrs = Hash.new
|
39
|
+
attrs["app_id"] = attributes["appId"]
|
40
|
+
attrs["app_uid"] = attributes["appUid"]
|
41
|
+
attrs["endpoint_id"] = attributes["endpointId"]
|
42
|
+
attrs["last_attempt"] = Svix::MessageAttemptFailedData.deserialize(attributes["lastAttempt"])
|
43
|
+
attrs["msg_event_id"] = attributes["msgEventId"]
|
44
|
+
attrs["msg_id"] = attributes["msgId"]
|
45
|
+
new(attrs)
|
46
|
+
end
|
47
|
+
|
48
|
+
def serialize
|
49
|
+
out = Hash.new
|
50
|
+
out["appId"] = Svix::serialize_primitive(@app_id) if @app_id
|
51
|
+
out["appUid"] = Svix::serialize_primitive(@app_uid) if @app_uid
|
52
|
+
out["endpointId"] = Svix::serialize_primitive(@endpoint_id) if @endpoint_id
|
53
|
+
out["lastAttempt"] = Svix::serialize_schema_ref(@last_attempt) if @last_attempt
|
54
|
+
out["msgEventId"] = Svix::serialize_primitive(@msg_event_id) if @msg_event_id
|
55
|
+
out["msgId"] = Svix::serialize_primitive(@msg_id) if @msg_id
|
56
|
+
out
|
57
|
+
end
|
58
|
+
|
59
|
+
# Serializes the object to a json string
|
60
|
+
# @return String
|
61
|
+
def to_json
|
62
|
+
JSON.dump(serialize)
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
@@ -0,0 +1,55 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# This file is @generated
|
3
|
+
require "json"
|
4
|
+
|
5
|
+
module Svix
|
6
|
+
class MessageAttemptFailedData
|
7
|
+
attr_accessor :id
|
8
|
+
attr_accessor :response_status_code
|
9
|
+
attr_accessor :timestamp
|
10
|
+
|
11
|
+
ALL_FIELD ||= ["id", "response_status_code", "timestamp"].freeze
|
12
|
+
private_constant :ALL_FIELD
|
13
|
+
|
14
|
+
def initialize(attributes = {})
|
15
|
+
unless attributes.is_a?(Hash)
|
16
|
+
fail(
|
17
|
+
ArgumentError,
|
18
|
+
"The input argument (attributes) must be a hash in `Svix::MessageAttemptFailedData` new method"
|
19
|
+
)
|
20
|
+
end
|
21
|
+
|
22
|
+
attributes.each do |k, v|
|
23
|
+
unless ALL_FIELD.include?(k.to_s)
|
24
|
+
fail(ArgumentError, "The field #{k} is not part of Svix::MessageAttemptFailedData")
|
25
|
+
end
|
26
|
+
|
27
|
+
instance_variable_set("@#{k}", v)
|
28
|
+
instance_variable_set("@__#{k}_is_defined", true)
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
def self.deserialize(attributes = {})
|
33
|
+
attributes = attributes.transform_keys(&:to_s)
|
34
|
+
attrs = Hash.new
|
35
|
+
attrs["id"] = attributes["id"]
|
36
|
+
attrs["response_status_code"] = attributes["responseStatusCode"]
|
37
|
+
attrs["timestamp"] = DateTime.rfc3339(attributes["timestamp"]).to_time
|
38
|
+
new(attrs)
|
39
|
+
end
|
40
|
+
|
41
|
+
def serialize
|
42
|
+
out = Hash.new
|
43
|
+
out["id"] = Svix::serialize_primitive(@id) if @id
|
44
|
+
out["responseStatusCode"] = Svix::serialize_primitive(@response_status_code) if @response_status_code
|
45
|
+
out["timestamp"] = Svix::serialize_primitive(@timestamp) if @timestamp
|
46
|
+
out
|
47
|
+
end
|
48
|
+
|
49
|
+
# Serializes the object to a json string
|
50
|
+
# @return String
|
51
|
+
def to_json
|
52
|
+
JSON.dump(serialize)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
@@ -0,0 +1,54 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# This file is @generated
|
3
|
+
require "json"
|
4
|
+
|
5
|
+
module Svix
|
6
|
+
# Sent after a message has been failing for a few times.
|
7
|
+
# It's sent on the fourth failure. It complements `message.attempt.exhausted` which is sent after the last failure.
|
8
|
+
class MessageAttemptFailingEvent
|
9
|
+
attr_accessor :data
|
10
|
+
attr_accessor :type
|
11
|
+
|
12
|
+
ALL_FIELD ||= ["data", "type"].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::MessageAttemptFailingEvent` 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::MessageAttemptFailingEvent")
|
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"] = Svix::MessageAttemptFailingEventData.deserialize(attributes["data"])
|
37
|
+
attrs["type"] = attributes["type"]
|
38
|
+
new(attrs)
|
39
|
+
end
|
40
|
+
|
41
|
+
def serialize
|
42
|
+
out = Hash.new
|
43
|
+
out["data"] = Svix::serialize_schema_ref(@data) if @data
|
44
|
+
out["type"] = Svix::serialize_primitive(@type) if @type
|
45
|
+
out
|
46
|
+
end
|
47
|
+
|
48
|
+
# Serializes the object to a json string
|
49
|
+
# @return String
|
50
|
+
def to_json
|
51
|
+
JSON.dump(serialize)
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
@@ -0,0 +1,65 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# This file is @generated
|
3
|
+
require "json"
|
4
|
+
|
5
|
+
module Svix
|
6
|
+
# Sent when a message delivery has failed (all of the retry attempts have been exhausted) as a "message.attempt.exhausted" type or after it's failed four times as a "message.attempt.failing" event.
|
7
|
+
class MessageAttemptFailingEventData
|
8
|
+
attr_accessor :app_id
|
9
|
+
attr_accessor :app_uid
|
10
|
+
attr_accessor :endpoint_id
|
11
|
+
attr_accessor :last_attempt
|
12
|
+
attr_accessor :msg_event_id
|
13
|
+
attr_accessor :msg_id
|
14
|
+
|
15
|
+
ALL_FIELD ||= ["app_id", "app_uid", "endpoint_id", "last_attempt", "msg_event_id", "msg_id"].freeze
|
16
|
+
private_constant :ALL_FIELD
|
17
|
+
|
18
|
+
def initialize(attributes = {})
|
19
|
+
unless attributes.is_a?(Hash)
|
20
|
+
fail(
|
21
|
+
ArgumentError,
|
22
|
+
"The input argument (attributes) must be a hash in `Svix::MessageAttemptFailingEventData` new method"
|
23
|
+
)
|
24
|
+
end
|
25
|
+
|
26
|
+
attributes.each do |k, v|
|
27
|
+
unless ALL_FIELD.include?(k.to_s)
|
28
|
+
fail(ArgumentError, "The field #{k} is not part of Svix::MessageAttemptFailingEventData")
|
29
|
+
end
|
30
|
+
|
31
|
+
instance_variable_set("@#{k}", v)
|
32
|
+
instance_variable_set("@__#{k}_is_defined", true)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
def self.deserialize(attributes = {})
|
37
|
+
attributes = attributes.transform_keys(&:to_s)
|
38
|
+
attrs = Hash.new
|
39
|
+
attrs["app_id"] = attributes["appId"]
|
40
|
+
attrs["app_uid"] = attributes["appUid"]
|
41
|
+
attrs["endpoint_id"] = attributes["endpointId"]
|
42
|
+
attrs["last_attempt"] = Svix::MessageAttemptFailedData.deserialize(attributes["lastAttempt"])
|
43
|
+
attrs["msg_event_id"] = attributes["msgEventId"]
|
44
|
+
attrs["msg_id"] = attributes["msgId"]
|
45
|
+
new(attrs)
|
46
|
+
end
|
47
|
+
|
48
|
+
def serialize
|
49
|
+
out = Hash.new
|
50
|
+
out["appId"] = Svix::serialize_primitive(@app_id) if @app_id
|
51
|
+
out["appUid"] = Svix::serialize_primitive(@app_uid) if @app_uid
|
52
|
+
out["endpointId"] = Svix::serialize_primitive(@endpoint_id) if @endpoint_id
|
53
|
+
out["lastAttempt"] = Svix::serialize_schema_ref(@last_attempt) if @last_attempt
|
54
|
+
out["msgEventId"] = Svix::serialize_primitive(@msg_event_id) if @msg_event_id
|
55
|
+
out["msgId"] = Svix::serialize_primitive(@msg_id) if @msg_id
|
56
|
+
out
|
57
|
+
end
|
58
|
+
|
59
|
+
# Serializes the object to a json string
|
60
|
+
# @return String
|
61
|
+
def to_json
|
62
|
+
JSON.dump(serialize)
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
@@ -67,14 +67,14 @@ module Svix
|
|
67
67
|
out = Hash.new
|
68
68
|
out["endpointId"] = Svix::serialize_primitive(@endpoint_id) if @endpoint_id
|
69
69
|
out["id"] = Svix::serialize_primitive(@id) if @id
|
70
|
-
out["msg"] = @msg
|
70
|
+
out["msg"] = Svix::serialize_schema_ref(@msg) if @msg
|
71
71
|
out["msgId"] = Svix::serialize_primitive(@msg_id) if @msg_id
|
72
72
|
out["response"] = Svix::serialize_primitive(@response) if @response
|
73
73
|
out["responseDurationMs"] = Svix::serialize_primitive(@response_duration_ms) if @response_duration_ms
|
74
74
|
out["responseStatusCode"] = Svix::serialize_primitive(@response_status_code) if @response_status_code
|
75
|
-
out["status"] = @status
|
75
|
+
out["status"] = Svix::serialize_schema_ref(@status) if @status
|
76
76
|
out["timestamp"] = Svix::serialize_primitive(@timestamp) if @timestamp
|
77
|
-
out["triggerType"] = @trigger_type
|
77
|
+
out["triggerType"] = Svix::serialize_schema_ref(@trigger_type) if @trigger_type
|
78
78
|
out["url"] = Svix::serialize_primitive(@url) if @url
|
79
79
|
out
|
80
80
|
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# This file is @generated
|
3
|
+
require "json"
|
4
|
+
|
5
|
+
module Svix
|
6
|
+
# Sent on a successful dispatch after an earlier failure op webhook has already been sent.
|
7
|
+
class MessageAttemptRecoveredEvent
|
8
|
+
attr_accessor :data
|
9
|
+
attr_accessor :type
|
10
|
+
|
11
|
+
ALL_FIELD ||= ["data", "type"].freeze
|
12
|
+
private_constant :ALL_FIELD
|
13
|
+
|
14
|
+
def initialize(attributes = {})
|
15
|
+
unless attributes.is_a?(Hash)
|
16
|
+
fail(
|
17
|
+
ArgumentError,
|
18
|
+
"The input argument (attributes) must be a hash in `Svix::MessageAttemptRecoveredEvent` new method"
|
19
|
+
)
|
20
|
+
end
|
21
|
+
|
22
|
+
attributes.each do |k, v|
|
23
|
+
unless ALL_FIELD.include?(k.to_s)
|
24
|
+
fail(ArgumentError, "The field #{k} is not part of Svix::MessageAttemptRecoveredEvent")
|
25
|
+
end
|
26
|
+
|
27
|
+
instance_variable_set("@#{k}", v)
|
28
|
+
instance_variable_set("@__#{k}_is_defined", true)
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
def self.deserialize(attributes = {})
|
33
|
+
attributes = attributes.transform_keys(&:to_s)
|
34
|
+
attrs = Hash.new
|
35
|
+
attrs["data"] = Svix::MessageAttemptRecoveredEventData.deserialize(attributes["data"])
|
36
|
+
attrs["type"] = attributes["type"]
|
37
|
+
new(attrs)
|
38
|
+
end
|
39
|
+
|
40
|
+
def serialize
|
41
|
+
out = Hash.new
|
42
|
+
out["data"] = Svix::serialize_schema_ref(@data) if @data
|
43
|
+
out["type"] = Svix::serialize_primitive(@type) if @type
|
44
|
+
out
|
45
|
+
end
|
46
|
+
|
47
|
+
# Serializes the object to a json string
|
48
|
+
# @return String
|
49
|
+
def to_json
|
50
|
+
JSON.dump(serialize)
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,65 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# This file is @generated
|
3
|
+
require "json"
|
4
|
+
|
5
|
+
module Svix
|
6
|
+
# Sent when a message delivery has failed (all of the retry attempts have been exhausted) as a "message.attempt.exhausted" type or after it's failed four times as a "message.attempt.failing" event.
|
7
|
+
class MessageAttemptRecoveredEventData
|
8
|
+
attr_accessor :app_id
|
9
|
+
attr_accessor :app_uid
|
10
|
+
attr_accessor :endpoint_id
|
11
|
+
attr_accessor :last_attempt
|
12
|
+
attr_accessor :msg_event_id
|
13
|
+
attr_accessor :msg_id
|
14
|
+
|
15
|
+
ALL_FIELD ||= ["app_id", "app_uid", "endpoint_id", "last_attempt", "msg_event_id", "msg_id"].freeze
|
16
|
+
private_constant :ALL_FIELD
|
17
|
+
|
18
|
+
def initialize(attributes = {})
|
19
|
+
unless attributes.is_a?(Hash)
|
20
|
+
fail(
|
21
|
+
ArgumentError,
|
22
|
+
"The input argument (attributes) must be a hash in `Svix::MessageAttemptRecoveredEventData` new method"
|
23
|
+
)
|
24
|
+
end
|
25
|
+
|
26
|
+
attributes.each do |k, v|
|
27
|
+
unless ALL_FIELD.include?(k.to_s)
|
28
|
+
fail(ArgumentError, "The field #{k} is not part of Svix::MessageAttemptRecoveredEventData")
|
29
|
+
end
|
30
|
+
|
31
|
+
instance_variable_set("@#{k}", v)
|
32
|
+
instance_variable_set("@__#{k}_is_defined", true)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
def self.deserialize(attributes = {})
|
37
|
+
attributes = attributes.transform_keys(&:to_s)
|
38
|
+
attrs = Hash.new
|
39
|
+
attrs["app_id"] = attributes["appId"]
|
40
|
+
attrs["app_uid"] = attributes["appUid"]
|
41
|
+
attrs["endpoint_id"] = attributes["endpointId"]
|
42
|
+
attrs["last_attempt"] = Svix::MessageAttemptFailedData.deserialize(attributes["lastAttempt"])
|
43
|
+
attrs["msg_event_id"] = attributes["msgEventId"]
|
44
|
+
attrs["msg_id"] = attributes["msgId"]
|
45
|
+
new(attrs)
|
46
|
+
end
|
47
|
+
|
48
|
+
def serialize
|
49
|
+
out = Hash.new
|
50
|
+
out["appId"] = Svix::serialize_primitive(@app_id) if @app_id
|
51
|
+
out["appUid"] = Svix::serialize_primitive(@app_uid) if @app_uid
|
52
|
+
out["endpointId"] = Svix::serialize_primitive(@endpoint_id) if @endpoint_id
|
53
|
+
out["lastAttempt"] = Svix::serialize_schema_ref(@last_attempt) if @last_attempt
|
54
|
+
out["msgEventId"] = Svix::serialize_primitive(@msg_event_id) if @msg_event_id
|
55
|
+
out["msgId"] = Svix::serialize_primitive(@msg_id) if @msg_id
|
56
|
+
out
|
57
|
+
end
|
58
|
+
|
59
|
+
# Serializes the object to a json string
|
60
|
+
# @return String
|
61
|
+
def to_json
|
62
|
+
JSON.dump(serialize)
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
@@ -79,7 +79,7 @@ module Svix
|
|
79
79
|
out["id"] = Svix::serialize_primitive(@id) if @id
|
80
80
|
out["nextAttempt"] = Svix::serialize_primitive(@next_attempt) if @next_attempt
|
81
81
|
out["rateLimit"] = Svix::serialize_primitive(@rate_limit) if @rate_limit
|
82
|
-
out["status"] = @status
|
82
|
+
out["status"] = Svix::serialize_schema_ref(@status) if @status
|
83
83
|
out["uid"] = Svix::serialize_primitive(@uid) if @uid
|
84
84
|
out["updatedAt"] = Svix::serialize_primitive(@updated_at) if @updated_at
|
85
85
|
out["url"] = Svix::serialize_primitive(@url) if @url
|
@@ -59,7 +59,7 @@ module Svix
|
|
59
59
|
|
60
60
|
def serialize
|
61
61
|
out = Hash.new
|
62
|
-
out["application"] = @application
|
62
|
+
out["application"] = Svix::serialize_schema_ref(@application) if @application
|
63
63
|
out["channels"] = Svix::serialize_primitive(@channels) if @channels
|
64
64
|
out["eventId"] = Svix::serialize_primitive(@event_id) if @event_id
|
65
65
|
out["eventType"] = Svix::serialize_primitive(@event_type) if @event_type
|
@@ -38,8 +38,8 @@ module Svix
|
|
38
38
|
def serialize
|
39
39
|
out = Hash.new
|
40
40
|
out["id"] = Svix::serialize_primitive(@id) if @id
|
41
|
-
out["status"] = @status
|
42
|
-
out["task"] = @task
|
41
|
+
out["status"] = Svix::serialize_schema_ref(@status) if @status
|
42
|
+
out["task"] = Svix::serialize_schema_ref(@task) if @task
|
43
43
|
out
|
44
44
|
end
|
45
45
|
|
@@ -38,8 +38,8 @@ module Svix
|
|
38
38
|
def serialize
|
39
39
|
out = Hash.new
|
40
40
|
out["id"] = Svix::serialize_primitive(@id) if @id
|
41
|
-
out["status"] = @status
|
42
|
-
out["task"] = @task
|
41
|
+
out["status"] = Svix::serialize_schema_ref(@status) if @status
|
42
|
+
out["task"] = Svix::serialize_schema_ref(@task) if @task
|
43
43
|
out
|
44
44
|
end
|
45
45
|
|
@@ -0,0 +1,46 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# This file is @generated
|
3
|
+
require "json"
|
4
|
+
|
5
|
+
module Svix
|
6
|
+
class RotateTokenOut
|
7
|
+
attr_accessor :ingest_url
|
8
|
+
|
9
|
+
ALL_FIELD ||= ["ingest_url"].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::RotateTokenOut` 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::RotateTokenOut")
|
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["ingest_url"] = attributes["ingestUrl"]
|
31
|
+
new(attrs)
|
32
|
+
end
|
33
|
+
|
34
|
+
def serialize
|
35
|
+
out = Hash.new
|
36
|
+
out["ingestUrl"] = Svix::serialize_primitive(@ingest_url) if @ingest_url
|
37
|
+
out
|
38
|
+
end
|
39
|
+
|
40
|
+
# Serializes the object to a json string
|
41
|
+
# @return String
|
42
|
+
def to_json
|
43
|
+
JSON.dump(serialize)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# This file is @generated
|
3
|
+
require "json"
|
4
|
+
|
5
|
+
module Svix
|
6
|
+
class SegmentConfig
|
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::SegmentConfig` 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::SegmentConfig")
|
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) if @secret
|
37
|
+
out
|
38
|
+
end
|
39
|
+
|
40
|
+
# Serializes the object to a json string
|
41
|
+
# @return String
|
42
|
+
def to_json
|
43
|
+
JSON.dump(serialize)
|
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 SegmentConfigOut
|
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::SegmentConfigOut` 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::SegmentConfigOut")
|
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
|
40
|
+
JSON.dump(serialize)
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# This file is @generated
|
3
|
+
require "json"
|
4
|
+
|
5
|
+
module Svix
|
6
|
+
class ShopifyConfig
|
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::ShopifyConfig` 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::ShopifyConfig")
|
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) if @secret
|
37
|
+
out
|
38
|
+
end
|
39
|
+
|
40
|
+
# Serializes the object to a json string
|
41
|
+
# @return String
|
42
|
+
def to_json
|
43
|
+
JSON.dump(serialize)
|
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 ShopifyConfigOut
|
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::ShopifyConfigOut` 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::ShopifyConfigOut")
|
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
|
40
|
+
JSON.dump(serialize)
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|