svix 1.69.0 → 1.70.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.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/lib/svix/api/endpoint.rb +2 -2
  4. data/lib/svix/models/{api_token_expire_in.rb → airwallex_config.rb} +7 -8
  5. data/lib/svix/models/{api_token_in.rb → airwallex_config_out.rb} +4 -10
  6. data/lib/svix/models/app_portal_access_in.rb +7 -1
  7. data/lib/svix/models/application_token_expire_in.rb +7 -1
  8. data/lib/svix/models/checkbook_config.rb +46 -0
  9. data/lib/svix/models/checkbook_config_out.rb +43 -0
  10. data/lib/svix/models/connector_in.rb +5 -0
  11. data/lib/svix/models/connector_out.rb +4 -0
  12. data/lib/svix/models/easypost_config.rb +46 -0
  13. data/lib/svix/models/easypost_config_out.rb +43 -0
  14. data/lib/svix/models/{endpoint_transformation_in.rb → endpoint_transformation_patch.rb} +4 -4
  15. data/lib/svix/models/event_type_from_open_api.rb +4 -1
  16. data/lib/svix/models/event_type_in.rb +14 -1
  17. data/lib/svix/models/event_type_out.rb +4 -0
  18. data/lib/svix/models/event_type_patch.rb +4 -1
  19. data/lib/svix/models/event_type_update.rb +4 -1
  20. data/lib/svix/models/ingest_source_in.rb +58 -2
  21. data/lib/svix/models/ingest_source_out.rb +58 -2
  22. data/lib/svix/models/message_attempt_trigger_type.rb +1 -0
  23. data/lib/svix/models/message_status.rb +1 -0
  24. data/lib/svix/models/orum_io_config.rb +46 -0
  25. data/lib/svix/models/orum_io_config_out.rb +46 -0
  26. data/lib/svix/models/port_io_config.rb +46 -0
  27. data/lib/svix/models/port_io_config_out.rb +43 -0
  28. data/lib/svix/models/rutter_config.rb +46 -0
  29. data/lib/svix/models/rutter_config_out.rb +43 -0
  30. data/lib/svix/models/status_code_class.rb +1 -0
  31. data/lib/svix/models/telnyx_config.rb +46 -0
  32. data/lib/svix/models/telnyx_config_out.rb +46 -0
  33. data/lib/svix/models/vapi_config.rb +46 -0
  34. data/lib/svix/models/vapi_config_out.rb +43 -0
  35. data/lib/svix/models/veriff_config.rb +46 -0
  36. data/lib/svix/models/veriff_config_out.rb +43 -0
  37. data/lib/svix/svix.rb +0 -2
  38. data/lib/svix/version.rb +1 -1
  39. data/lib/svix.rb +19 -8
  40. metadata +21 -10
  41. data/lib/svix/api/management.rb +0 -14
  42. data/lib/svix/api/management_authentication.rb +0 -52
  43. data/lib/svix/models/api_token_censored_out.rb +0 -62
  44. data/lib/svix/models/api_token_out.rb +0 -62
  45. data/lib/svix/models/list_response_api_token_censored_out.rb +0 -58
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9e460c29f7940780d5d74598c130563e8a5dfd5833b7841feb799cfe7793877a
4
- data.tar.gz: ea451f4e172b074f044921259d926e8b8f82fc00afe4f2cb9070056cef378196
3
+ metadata.gz: 6864acc5abe806fd408f691d1b1682ea21bf314f35c7f07dcfb0df62f4ebd089
4
+ data.tar.gz: 62b4b0fe49b253b0c962bfacaa981183749493bbe1699beea481b0d39eccdae0
5
5
  SHA512:
6
- metadata.gz: f527529efe3529d21a691b52c5a913efc6135afc2cb2488dabdc840de7c68e2577a86572996ea653387c7279040057953d8ca158bb4c51fb157cf4ef5934941b
7
- data.tar.gz: 94e9a232ea37b3f7909bc30fca69b1578c6a5aea025c946757c568911510871b77cc1cd2027bc9ae7dd07cec6d6e3220a699b32c7dd243ed7512774411de97dc
6
+ metadata.gz: 935bafb5bf1a3a0410a3862d46ee0c00deb5cf7d672a7a3b569033a70b8d16381756d0bf34ffbef64f1eaa1f4b57b47943979d84fa6ca92cd929c5805cb7b72f
7
+ data.tar.gz: 6cf7143084a624ececba56124f0f05a49d9c1c14cff3e8a8c84b7526c546ef57c777b5cc79a1ec92ca803db7d0040c4b51afa70a5983a4a790a7b919944521f3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- svix (1.69.0)
4
+ svix (1.70.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -173,11 +173,11 @@ module Svix
173
173
  EndpointTransformationOut.deserialize(res)
174
174
  end
175
175
 
176
- def transformation_partial_update(app_id, endpoint_id, endpoint_transformation_in)
176
+ def patch_transformation(app_id, endpoint_id, endpoint_transformation_patch)
177
177
  @client.execute_request(
178
178
  "PATCH",
179
179
  "/api/v1/app/#{app_id}/endpoint/#{endpoint_id}/transformation",
180
- body: endpoint_transformation_in
180
+ body: endpoint_transformation_patch
181
181
  )
182
182
  end
183
183
 
@@ -3,21 +3,20 @@
3
3
  require "json"
4
4
 
5
5
  module Svix
6
- class ApiTokenExpireIn
7
- # How many seconds until the old key is expired.
8
- attr_accessor :expiry
6
+ class AirwallexConfig
7
+ attr_accessor :secret
9
8
 
10
- ALL_FIELD ||= ["expiry"].freeze
9
+ ALL_FIELD ||= ["secret"].freeze
11
10
  private_constant :ALL_FIELD
12
11
 
13
12
  def initialize(attributes = {})
14
13
  unless attributes.is_a?(Hash)
15
- fail(ArgumentError, "The input argument (attributes) must be a hash in `Svix::ApiTokenExpireIn` new method")
14
+ fail(ArgumentError, "The input argument (attributes) must be a hash in `Svix::AirwallexConfig` new method")
16
15
  end
17
16
 
18
17
  attributes.each do |k, v|
19
18
  unless ALL_FIELD.include?(k.to_s)
20
- fail(ArgumentError, "The field #{k} is not part of Svix::ApiTokenExpireIn")
19
+ fail(ArgumentError, "The field #{k} is not part of Svix::AirwallexConfig")
21
20
  end
22
21
 
23
22
  instance_variable_set("@#{k}", v)
@@ -28,13 +27,13 @@ module Svix
28
27
  def self.deserialize(attributes = {})
29
28
  attributes = attributes.transform_keys(&:to_s)
30
29
  attrs = Hash.new
31
- attrs["expiry"] = attributes["expiry"]
30
+ attrs["secret"] = attributes["secret"]
32
31
  new(attrs)
33
32
  end
34
33
 
35
34
  def serialize
36
35
  out = Hash.new
37
- out["expiry"] = Svix::serialize_primitive(@expiry) if @expiry
36
+ out["secret"] = Svix::serialize_primitive(@secret) if @secret
38
37
  out
39
38
  end
40
39
 
@@ -3,21 +3,19 @@
3
3
  require "json"
4
4
 
5
5
  module Svix
6
- class ApiTokenIn
7
- attr_accessor :name
8
- attr_accessor :scopes
6
+ class AirwallexConfigOut
9
7
 
10
- ALL_FIELD ||= ["name", "scopes"].freeze
8
+ ALL_FIELD ||= [].freeze
11
9
  private_constant :ALL_FIELD
12
10
 
13
11
  def initialize(attributes = {})
14
12
  unless attributes.is_a?(Hash)
15
- fail(ArgumentError, "The input argument (attributes) must be a hash in `Svix::ApiTokenIn` new method")
13
+ fail(ArgumentError, "The input argument (attributes) must be a hash in `Svix::AirwallexConfigOut` new method")
16
14
  end
17
15
 
18
16
  attributes.each do |k, v|
19
17
  unless ALL_FIELD.include?(k.to_s)
20
- fail(ArgumentError, "The field #{k} is not part of Svix::ApiTokenIn")
18
+ fail(ArgumentError, "The field #{k} is not part of Svix::AirwallexConfigOut")
21
19
  end
22
20
 
23
21
  instance_variable_set("@#{k}", v)
@@ -28,15 +26,11 @@ module Svix
28
26
  def self.deserialize(attributes = {})
29
27
  attributes = attributes.transform_keys(&:to_s)
30
28
  attrs = Hash.new
31
- attrs["name"] = attributes["name"]
32
- attrs["scopes"] = attributes["scopes"]
33
29
  new(attrs)
34
30
  end
35
31
 
36
32
  def serialize
37
33
  out = Hash.new
38
- out["name"] = Svix::serialize_primitive(@name) if @name
39
- out["scopes"] = Svix::serialize_primitive(@scopes) if @scopes
40
34
  out
41
35
  end
42
36
 
@@ -16,8 +16,12 @@ module Svix
16
16
  attr_accessor :feature_flags
17
17
  # Whether the app portal should be in read-only mode.
18
18
  attr_accessor :read_only
19
+ # An optional session ID to attach to the token.
20
+ #
21
+ # When expiring tokens with "Expire All", you can include the session ID to only expire tokens that were created with that session ID.
22
+ attr_accessor :session_id
19
23
 
20
- ALL_FIELD ||= ["application", "expiry", "feature_flags", "read_only"].freeze
24
+ ALL_FIELD ||= ["application", "expiry", "feature_flags", "read_only", "session_id"].freeze
21
25
  private_constant :ALL_FIELD
22
26
 
23
27
  def initialize(attributes = {})
@@ -42,6 +46,7 @@ module Svix
42
46
  attrs["expiry"] = attributes["expiry"]
43
47
  attrs["feature_flags"] = attributes["featureFlags"]
44
48
  attrs["read_only"] = attributes["readOnly"]
49
+ attrs["session_id"] = attributes["sessionId"]
45
50
  new(attrs)
46
51
  end
47
52
 
@@ -51,6 +56,7 @@ module Svix
51
56
  out["expiry"] = Svix::serialize_primitive(@expiry) if @expiry
52
57
  out["featureFlags"] = Svix::serialize_primitive(@feature_flags) if @feature_flags
53
58
  out["readOnly"] = Svix::serialize_primitive(@read_only) if @read_only
59
+ out["sessionId"] = Svix::serialize_primitive(@session_id) if @session_id
54
60
  out
55
61
  end
56
62
 
@@ -6,8 +6,12 @@ module Svix
6
6
  class ApplicationTokenExpireIn
7
7
  # How many seconds until the old key is expired.
8
8
  attr_accessor :expiry
9
+ # An optional list of session ids.
10
+ #
11
+ # If any session ids are specified, only Application tokens created with that session id will be expired.
12
+ attr_accessor :session_ids
9
13
 
10
- ALL_FIELD ||= ["expiry"].freeze
14
+ ALL_FIELD ||= ["expiry", "session_ids"].freeze
11
15
  private_constant :ALL_FIELD
12
16
 
13
17
  def initialize(attributes = {})
@@ -32,12 +36,14 @@ module Svix
32
36
  attributes = attributes.transform_keys(&:to_s)
33
37
  attrs = Hash.new
34
38
  attrs["expiry"] = attributes["expiry"]
39
+ attrs["session_ids"] = attributes["sessionIds"]
35
40
  new(attrs)
36
41
  end
37
42
 
38
43
  def serialize
39
44
  out = Hash.new
40
45
  out["expiry"] = Svix::serialize_primitive(@expiry) if @expiry
46
+ out["sessionIds"] = Svix::serialize_primitive(@session_ids) if @session_ids
41
47
  out
42
48
  end
43
49
 
@@ -0,0 +1,46 @@
1
+ # frozen_string_literal: true
2
+ # This file is @generated
3
+ require "json"
4
+
5
+ module Svix
6
+ class CheckbookConfig
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::CheckbookConfig` 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::CheckbookConfig")
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 CheckbookConfigOut
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::CheckbookConfigOut` 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::CheckbookConfigOut")
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
@@ -5,7 +5,9 @@ require "json"
5
5
  module Svix
6
6
  class ConnectorIn
7
7
  attr_accessor :description
8
+ # Deprecated - prefer featureFlags instead.
8
9
  attr_accessor :feature_flag
10
+ attr_accessor :feature_flags
9
11
  attr_accessor :filter_types
10
12
  attr_accessor :instructions
11
13
  attr_accessor :instructions_link
@@ -17,6 +19,7 @@ module Svix
17
19
  ALL_FIELD ||= [
18
20
  "description",
19
21
  "feature_flag",
22
+ "feature_flags",
20
23
  "filter_types",
21
24
  "instructions",
22
25
  "instructions_link",
@@ -47,6 +50,7 @@ module Svix
47
50
  attrs = Hash.new
48
51
  attrs["description"] = attributes["description"]
49
52
  attrs["feature_flag"] = attributes["featureFlag"]
53
+ attrs["feature_flags"] = attributes["featureFlags"]
50
54
  attrs["filter_types"] = attributes["filterTypes"]
51
55
  attrs["instructions"] = attributes["instructions"]
52
56
  attrs["instructions_link"] = attributes["instructionsLink"]
@@ -61,6 +65,7 @@ module Svix
61
65
  out = Hash.new
62
66
  out["description"] = Svix::serialize_primitive(@description) if @description
63
67
  out["featureFlag"] = Svix::serialize_primitive(@feature_flag) if @feature_flag
68
+ out["featureFlags"] = Svix::serialize_primitive(@feature_flags) if @feature_flags
64
69
  out["filterTypes"] = Svix::serialize_primitive(@filter_types) if @filter_types
65
70
  out["instructions"] = Svix::serialize_primitive(@instructions) if @instructions
66
71
  out["instructionsLink"] = Svix::serialize_primitive(@instructions_link) if @instructions_link
@@ -7,6 +7,7 @@ module Svix
7
7
  attr_accessor :created_at
8
8
  attr_accessor :description
9
9
  attr_accessor :feature_flag
10
+ attr_accessor :feature_flags
10
11
  attr_accessor :filter_types
11
12
  # The Connector's ID.
12
13
  attr_accessor :id
@@ -24,6 +25,7 @@ module Svix
24
25
  "created_at",
25
26
  "description",
26
27
  "feature_flag",
28
+ "feature_flags",
27
29
  "filter_types",
28
30
  "id",
29
31
  "instructions",
@@ -58,6 +60,7 @@ module Svix
58
60
  attrs["created_at"] = DateTime.rfc3339(attributes["createdAt"]).to_time
59
61
  attrs["description"] = attributes["description"]
60
62
  attrs["feature_flag"] = attributes["featureFlag"]
63
+ attrs["feature_flags"] = attributes["featureFlags"]
61
64
  attrs["filter_types"] = attributes["filterTypes"]
62
65
  attrs["id"] = attributes["id"]
63
66
  attrs["instructions"] = attributes["instructions"]
@@ -76,6 +79,7 @@ module Svix
76
79
  out["createdAt"] = Svix::serialize_primitive(@created_at) if @created_at
77
80
  out["description"] = Svix::serialize_primitive(@description) if @description
78
81
  out["featureFlag"] = Svix::serialize_primitive(@feature_flag) if @feature_flag
82
+ out["featureFlags"] = Svix::serialize_primitive(@feature_flags) if @feature_flags
79
83
  out["filterTypes"] = Svix::serialize_primitive(@filter_types) if @filter_types
80
84
  out["id"] = Svix::serialize_primitive(@id) if @id
81
85
  out["instructions"] = Svix::serialize_primitive(@instructions) if @instructions
@@ -0,0 +1,46 @@
1
+ # frozen_string_literal: true
2
+ # This file is @generated
3
+ require "json"
4
+
5
+ module Svix
6
+ class EasypostConfig
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::EasypostConfig` 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::EasypostConfig")
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 EasypostConfigOut
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::EasypostConfigOut` 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::EasypostConfigOut")
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
@@ -3,7 +3,7 @@
3
3
  require "json"
4
4
 
5
5
  module Svix
6
- class EndpointTransformationIn
6
+ class EndpointTransformationPatch
7
7
  attr_accessor :code
8
8
  attr_accessor :enabled
9
9
 
@@ -14,13 +14,13 @@ module Svix
14
14
  unless attributes.is_a?(Hash)
15
15
  fail(
16
16
  ArgumentError,
17
- "The input argument (attributes) must be a hash in `Svix::EndpointTransformationIn` new method"
17
+ "The input argument (attributes) must be a hash in `Svix::EndpointTransformationPatch` new method"
18
18
  )
19
19
  end
20
20
 
21
21
  attributes.each do |k, v|
22
22
  unless ALL_FIELD.include?(k.to_s)
23
- fail(ArgumentError, "The field #{k} is not part of Svix::EndpointTransformationIn")
23
+ fail(ArgumentError, "The field #{k} is not part of Svix::EndpointTransformationPatch")
24
24
  end
25
25
 
26
26
  instance_variable_set("@#{k}", v)
@@ -38,7 +38,7 @@ module Svix
38
38
 
39
39
  def serialize
40
40
  out = Hash.new
41
- out["code"] = Svix::serialize_primitive(@code) if @code
41
+ out["code"] = Svix::serialize_primitive(@code) if @__code_is_defined
42
42
  out["enabled"] = Svix::serialize_primitive(@enabled) if @enabled
43
43
  out
44
44
  end
@@ -7,13 +7,14 @@ module Svix
7
7
  attr_accessor :deprecated
8
8
  attr_accessor :description
9
9
  attr_accessor :feature_flag
10
+ attr_accessor :feature_flags
10
11
  # The event type group's name
11
12
  attr_accessor :group_name
12
13
  # The event type's name
13
14
  attr_accessor :name
14
15
  attr_accessor :schemas
15
16
 
16
- ALL_FIELD ||= ["deprecated", "description", "feature_flag", "group_name", "name", "schemas"].freeze
17
+ ALL_FIELD ||= ["deprecated", "description", "feature_flag", "feature_flags", "group_name", "name", "schemas"].freeze
17
18
  private_constant :ALL_FIELD
18
19
 
19
20
  def initialize(attributes = {})
@@ -37,6 +38,7 @@ module Svix
37
38
  attrs["deprecated"] = attributes["deprecated"]
38
39
  attrs["description"] = attributes["description"]
39
40
  attrs["feature_flag"] = attributes["featureFlag"]
41
+ attrs["feature_flags"] = attributes["featureFlags"]
40
42
  attrs["group_name"] = attributes["groupName"]
41
43
  attrs["name"] = attributes["name"]
42
44
  attrs["schemas"] = attributes["schemas"]
@@ -48,6 +50,7 @@ module Svix
48
50
  out["deprecated"] = Svix::serialize_primitive(@deprecated) if @deprecated
49
51
  out["description"] = Svix::serialize_primitive(@description) if @description
50
52
  out["featureFlag"] = Svix::serialize_primitive(@feature_flag) if @feature_flag
53
+ out["featureFlags"] = Svix::serialize_primitive(@feature_flags) if @feature_flags
51
54
  out["groupName"] = Svix::serialize_primitive(@group_name) if @group_name
52
55
  out["name"] = Svix::serialize_primitive(@name) if @name
53
56
  out["schemas"] = Svix::serialize_primitive(@schemas) if @schemas
@@ -7,7 +7,9 @@ module Svix
7
7
  attr_accessor :archived
8
8
  attr_accessor :deprecated
9
9
  attr_accessor :description
10
+ # Deprecated - prefer featureFlags instead.
10
11
  attr_accessor :feature_flag
12
+ attr_accessor :feature_flags
11
13
  # The event type group's name
12
14
  attr_accessor :group_name
13
15
  # The event type's name
@@ -15,7 +17,16 @@ module Svix
15
17
  # The schema for the event type for a specific version as a JSON schema.
16
18
  attr_accessor :schemas
17
19
 
18
- ALL_FIELD ||= ["archived", "deprecated", "description", "feature_flag", "group_name", "name", "schemas"].freeze
20
+ ALL_FIELD ||= [
21
+ "archived",
22
+ "deprecated",
23
+ "description",
24
+ "feature_flag",
25
+ "feature_flags",
26
+ "group_name",
27
+ "name",
28
+ "schemas"
29
+ ].freeze
19
30
  private_constant :ALL_FIELD
20
31
 
21
32
  def initialize(attributes = {})
@@ -40,6 +51,7 @@ module Svix
40
51
  attrs["deprecated"] = attributes["deprecated"]
41
52
  attrs["description"] = attributes["description"]
42
53
  attrs["feature_flag"] = attributes["featureFlag"]
54
+ attrs["feature_flags"] = attributes["featureFlags"]
43
55
  attrs["group_name"] = attributes["groupName"]
44
56
  attrs["name"] = attributes["name"]
45
57
  attrs["schemas"] = attributes["schemas"]
@@ -52,6 +64,7 @@ module Svix
52
64
  out["deprecated"] = Svix::serialize_primitive(@deprecated) if @deprecated
53
65
  out["description"] = Svix::serialize_primitive(@description) if @description
54
66
  out["featureFlag"] = Svix::serialize_primitive(@feature_flag) if @feature_flag
67
+ out["featureFlags"] = Svix::serialize_primitive(@feature_flags) if @feature_flags
55
68
  out["groupName"] = Svix::serialize_primitive(@group_name) if @group_name
56
69
  out["name"] = Svix::serialize_primitive(@name) if @name
57
70
  out["schemas"] = Svix::serialize_primitive(@schemas) if @schemas
@@ -9,6 +9,7 @@ module Svix
9
9
  attr_accessor :deprecated
10
10
  attr_accessor :description
11
11
  attr_accessor :feature_flag
12
+ attr_accessor :feature_flags
12
13
  # The event type group's name
13
14
  attr_accessor :group_name
14
15
  # The event type's name
@@ -23,6 +24,7 @@ module Svix
23
24
  "deprecated",
24
25
  "description",
25
26
  "feature_flag",
27
+ "feature_flags",
26
28
  "group_name",
27
29
  "name",
28
30
  "schemas",
@@ -53,6 +55,7 @@ module Svix
53
55
  attrs["deprecated"] = attributes["deprecated"]
54
56
  attrs["description"] = attributes["description"]
55
57
  attrs["feature_flag"] = attributes["featureFlag"]
58
+ attrs["feature_flags"] = attributes["featureFlags"]
56
59
  attrs["group_name"] = attributes["groupName"]
57
60
  attrs["name"] = attributes["name"]
58
61
  attrs["schemas"] = attributes["schemas"]
@@ -67,6 +70,7 @@ module Svix
67
70
  out["deprecated"] = Svix::serialize_primitive(@deprecated) if @deprecated
68
71
  out["description"] = Svix::serialize_primitive(@description) if @description
69
72
  out["featureFlag"] = Svix::serialize_primitive(@feature_flag) if @feature_flag
73
+ out["featureFlags"] = Svix::serialize_primitive(@feature_flags) if @feature_flags
70
74
  out["groupName"] = Svix::serialize_primitive(@group_name) if @group_name
71
75
  out["name"] = Svix::serialize_primitive(@name) if @name
72
76
  out["schemas"] = Svix::serialize_primitive(@schemas) if @schemas
@@ -8,11 +8,12 @@ module Svix
8
8
  attr_accessor :deprecated
9
9
  attr_accessor :description
10
10
  attr_accessor :feature_flag
11
+ attr_accessor :feature_flags
11
12
  # The event type group's name
12
13
  attr_accessor :group_name
13
14
  attr_accessor :schemas
14
15
 
15
- ALL_FIELD ||= ["archived", "deprecated", "description", "feature_flag", "group_name", "schemas"].freeze
16
+ ALL_FIELD ||= ["archived", "deprecated", "description", "feature_flag", "feature_flags", "group_name", "schemas"].freeze
16
17
  private_constant :ALL_FIELD
17
18
 
18
19
  def initialize(attributes = {})
@@ -37,6 +38,7 @@ module Svix
37
38
  attrs["deprecated"] = attributes["deprecated"]
38
39
  attrs["description"] = attributes["description"]
39
40
  attrs["feature_flag"] = attributes["featureFlag"]
41
+ attrs["feature_flags"] = attributes["featureFlags"]
40
42
  attrs["group_name"] = attributes["groupName"]
41
43
  attrs["schemas"] = attributes["schemas"]
42
44
  new(attrs)
@@ -48,6 +50,7 @@ module Svix
48
50
  out["deprecated"] = Svix::serialize_primitive(@deprecated) if @deprecated
49
51
  out["description"] = Svix::serialize_primitive(@description) if @description
50
52
  out["featureFlag"] = Svix::serialize_primitive(@feature_flag) if @__feature_flag_is_defined
53
+ out["featureFlags"] = Svix::serialize_primitive(@feature_flags) if @__feature_flags_is_defined
51
54
  out["groupName"] = Svix::serialize_primitive(@group_name) if @__group_name_is_defined
52
55
  out["schemas"] = Svix::serialize_primitive(@schemas) if @__schemas_is_defined
53
56
  out
@@ -8,12 +8,13 @@ module Svix
8
8
  attr_accessor :deprecated
9
9
  attr_accessor :description
10
10
  attr_accessor :feature_flag
11
+ attr_accessor :feature_flags
11
12
  # The event type group's name
12
13
  attr_accessor :group_name
13
14
  # The schema for the event type for a specific version as a JSON schema.
14
15
  attr_accessor :schemas
15
16
 
16
- ALL_FIELD ||= ["archived", "deprecated", "description", "feature_flag", "group_name", "schemas"].freeze
17
+ ALL_FIELD ||= ["archived", "deprecated", "description", "feature_flag", "feature_flags", "group_name", "schemas"].freeze
17
18
  private_constant :ALL_FIELD
18
19
 
19
20
  def initialize(attributes = {})
@@ -38,6 +39,7 @@ module Svix
38
39
  attrs["deprecated"] = attributes["deprecated"]
39
40
  attrs["description"] = attributes["description"]
40
41
  attrs["feature_flag"] = attributes["featureFlag"]
42
+ attrs["feature_flags"] = attributes["featureFlags"]
41
43
  attrs["group_name"] = attributes["groupName"]
42
44
  attrs["schemas"] = attributes["schemas"]
43
45
  new(attrs)
@@ -49,6 +51,7 @@ module Svix
49
51
  out["deprecated"] = Svix::serialize_primitive(@deprecated) if @deprecated
50
52
  out["description"] = Svix::serialize_primitive(@description) if @description
51
53
  out["featureFlag"] = Svix::serialize_primitive(@feature_flag) if @feature_flag
54
+ out["featureFlags"] = Svix::serialize_primitive(@feature_flags) if @feature_flags
52
55
  out["groupName"] = Svix::serialize_primitive(@group_name) if @group_name
53
56
  out["schemas"] = Svix::serialize_primitive(@schemas) if @schemas
54
57
  out