svix 0.58.0 → 0.59.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/svix/models/custom_color_palette.rb +263 -0
- data/lib/svix/models/environment_settings_out.rb +19 -1
- data/lib/svix/models/settings_in.rb +42 -4
- data/lib/svix/models/settings_out.rb +42 -4
- data/lib/svix/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '04917691293ddcc1a69f55fcac43bb40704a6001ce8a2364a82e0602a113ebfa'
|
4
|
+
data.tar.gz: 9d6083d2aa19869c1d86bc0d6094277cb0d08f6f4fba1f95cf5f6535c8b68d8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c090a004b1cd63e95de8a9201d0d177cd20da413918dc7ad02ee0ee445c15f8d39cfb3c74c9aa8e6e23afd7d2918ec083c9876961ac324703de4f274d42a2912
|
7
|
+
data.tar.gz: 66cc099bb07100a71a97a20a2ddb990197fd4a94912e34a8bec49590dc7585985a332a68ecee14c69f1ae9335b2f808caee602438fb3e21be8addde47d49165e
|
data/Gemfile.lock
CHANGED
@@ -0,0 +1,263 @@
|
|
1
|
+
=begin
|
2
|
+
#Svix API
|
3
|
+
|
4
|
+
#Welcome to the Svix API documentation! Useful links: [Homepage](https://www.svix.com) | [Support email](mailto:support+docs@svix.com) | [Blog](https://www.svix.com/blog/) | [Slack Community](https://www.svix.com/slack/) # Introduction This is the reference documentation and schemas for the [Svix webhook service](https://www.svix.com) API. For tutorials and other documentation please refer to [the documentation](https://docs.svix.com). ## Main concepts In Svix you have four important entities you will be interacting with: - `messages`: these are the webhooks being sent. They can have contents and a few other properties. - `application`: this is where `messages` are sent to. Usually you want to create one application for each user on your platform. - `endpoint`: endpoints are the URLs messages will be sent to. Each application can have multiple `endpoints` and each message sent to that application will be sent to all of them (unless they are not subscribed to the sent event type). - `event-type`: event types are identifiers denoting the type of the message being sent. Event types are primarily used to decide which events are sent to which endpoint. ## Authentication Get your authentication token (`AUTH_TOKEN`) from the [Svix dashboard](https://dashboard.svix.com) and use it as part of the `Authorization` header as such: `Authorization: Bearer ${AUTH_TOKEN}`. <SecurityDefinitions /> ## Code samples The code samples assume you already have the respective libraries installed and you know how to use them. For the latest information on how to do that, please refer to [the documentation](https://docs.svix.com/). ## Idempotency Svix supports [idempotency](https://en.wikipedia.org/wiki/Idempotence) for safely retrying requests without accidentally performing the same operation twice. This is useful when an API call is disrupted in transit and you do not receive a response. To perform an idempotent request, pass the idempotency key in the `Idempotency-Key` header to the request. The idempotency key should be a unique value generated by the client. You can create the key in however way you like, though we suggest using UUID v4, or any other string with enough entropy to avoid collisions. Svix's idempotency works by saving the resulting status code and body of the first request made for any given idempotency key for any successful request. Subsequent requests with the same key return the same result. Please note that idempotency is only supported for `POST` requests. ## Cross-Origin Resource Sharing This API features Cross-Origin Resource Sharing (CORS) implemented in compliance with [W3C spec](https://www.w3.org/TR/cors/). And that allows cross-domain communication from the browser. All responses have a wildcard same-origin which makes them completely public and accessible to everyone, including any code on any site.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.4
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.2.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module Svix
|
17
|
+
class CustomColorPalette
|
18
|
+
attr_accessor :background_hover
|
19
|
+
|
20
|
+
attr_accessor :background_primary
|
21
|
+
|
22
|
+
attr_accessor :background_secondary
|
23
|
+
|
24
|
+
attr_accessor :interactive_accent
|
25
|
+
|
26
|
+
attr_accessor :text_danger
|
27
|
+
|
28
|
+
attr_accessor :text_primary
|
29
|
+
|
30
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
31
|
+
def self.attribute_map
|
32
|
+
{
|
33
|
+
:'background_hover' => :'backgroundHover',
|
34
|
+
:'background_primary' => :'backgroundPrimary',
|
35
|
+
:'background_secondary' => :'backgroundSecondary',
|
36
|
+
:'interactive_accent' => :'interactiveAccent',
|
37
|
+
:'text_danger' => :'textDanger',
|
38
|
+
:'text_primary' => :'textPrimary'
|
39
|
+
}
|
40
|
+
end
|
41
|
+
|
42
|
+
# Returns all the JSON keys this model knows about
|
43
|
+
def self.acceptable_attributes
|
44
|
+
attribute_map.values
|
45
|
+
end
|
46
|
+
|
47
|
+
# Attribute type mapping.
|
48
|
+
def self.openapi_types
|
49
|
+
{
|
50
|
+
:'background_hover' => :'String',
|
51
|
+
:'background_primary' => :'String',
|
52
|
+
:'background_secondary' => :'String',
|
53
|
+
:'interactive_accent' => :'String',
|
54
|
+
:'text_danger' => :'String',
|
55
|
+
:'text_primary' => :'String'
|
56
|
+
}
|
57
|
+
end
|
58
|
+
|
59
|
+
# List of attributes with nullable: true
|
60
|
+
def self.openapi_nullable
|
61
|
+
Set.new([
|
62
|
+
])
|
63
|
+
end
|
64
|
+
|
65
|
+
# Initializes the object
|
66
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
67
|
+
def initialize(attributes = {})
|
68
|
+
if (!attributes.is_a?(Hash))
|
69
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Svix::CustomColorPalette` initialize method"
|
70
|
+
end
|
71
|
+
|
72
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
73
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
74
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
75
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Svix::CustomColorPalette`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
76
|
+
end
|
77
|
+
h[k.to_sym] = v
|
78
|
+
}
|
79
|
+
|
80
|
+
if attributes.key?(:'background_hover')
|
81
|
+
self.background_hover = attributes[:'background_hover']
|
82
|
+
end
|
83
|
+
|
84
|
+
if attributes.key?(:'background_primary')
|
85
|
+
self.background_primary = attributes[:'background_primary']
|
86
|
+
end
|
87
|
+
|
88
|
+
if attributes.key?(:'background_secondary')
|
89
|
+
self.background_secondary = attributes[:'background_secondary']
|
90
|
+
end
|
91
|
+
|
92
|
+
if attributes.key?(:'interactive_accent')
|
93
|
+
self.interactive_accent = attributes[:'interactive_accent']
|
94
|
+
end
|
95
|
+
|
96
|
+
if attributes.key?(:'text_danger')
|
97
|
+
self.text_danger = attributes[:'text_danger']
|
98
|
+
end
|
99
|
+
|
100
|
+
if attributes.key?(:'text_primary')
|
101
|
+
self.text_primary = attributes[:'text_primary']
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
106
|
+
# @return Array for valid properties with the reasons
|
107
|
+
def list_invalid_properties
|
108
|
+
invalid_properties = Array.new
|
109
|
+
invalid_properties
|
110
|
+
end
|
111
|
+
|
112
|
+
# Check to see if the all the properties in the model are valid
|
113
|
+
# @return true if the model is valid
|
114
|
+
def valid?
|
115
|
+
true
|
116
|
+
end
|
117
|
+
|
118
|
+
# Checks equality by comparing each attribute.
|
119
|
+
# @param [Object] Object to be compared
|
120
|
+
def ==(o)
|
121
|
+
return true if self.equal?(o)
|
122
|
+
self.class == o.class &&
|
123
|
+
background_hover == o.background_hover &&
|
124
|
+
background_primary == o.background_primary &&
|
125
|
+
background_secondary == o.background_secondary &&
|
126
|
+
interactive_accent == o.interactive_accent &&
|
127
|
+
text_danger == o.text_danger &&
|
128
|
+
text_primary == o.text_primary
|
129
|
+
end
|
130
|
+
|
131
|
+
# @see the `==` method
|
132
|
+
# @param [Object] Object to be compared
|
133
|
+
def eql?(o)
|
134
|
+
self == o
|
135
|
+
end
|
136
|
+
|
137
|
+
# Calculates hash code according to all attributes.
|
138
|
+
# @return [Integer] Hash code
|
139
|
+
def hash
|
140
|
+
[background_hover, background_primary, background_secondary, interactive_accent, text_danger, text_primary].hash
|
141
|
+
end
|
142
|
+
|
143
|
+
# Builds the object from hash
|
144
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
145
|
+
# @return [Object] Returns the model itself
|
146
|
+
def self.build_from_hash(attributes)
|
147
|
+
new.build_from_hash(attributes)
|
148
|
+
end
|
149
|
+
|
150
|
+
# Builds the object from hash
|
151
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
152
|
+
# @return [Object] Returns the model itself
|
153
|
+
def build_from_hash(attributes)
|
154
|
+
return nil unless attributes.is_a?(Hash)
|
155
|
+
self.class.openapi_types.each_pair do |key, type|
|
156
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
157
|
+
self.send("#{key}=", nil)
|
158
|
+
elsif type =~ /\AArray<(.*)>/i
|
159
|
+
# check to ensure the input is an array given that the attribute
|
160
|
+
# is documented as an array but the input is not
|
161
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
162
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
163
|
+
end
|
164
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
165
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
166
|
+
end
|
167
|
+
end
|
168
|
+
|
169
|
+
self
|
170
|
+
end
|
171
|
+
|
172
|
+
# Deserializes the data based on type
|
173
|
+
# @param string type Data type
|
174
|
+
# @param string value Value to be deserialized
|
175
|
+
# @return [Object] Deserialized data
|
176
|
+
def _deserialize(type, value)
|
177
|
+
case type.to_sym
|
178
|
+
when :Time
|
179
|
+
Time.parse(value)
|
180
|
+
when :Date
|
181
|
+
Date.parse(value)
|
182
|
+
when :String
|
183
|
+
value.to_s
|
184
|
+
when :Integer
|
185
|
+
value.to_i
|
186
|
+
when :Float
|
187
|
+
value.to_f
|
188
|
+
when :Boolean
|
189
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
190
|
+
true
|
191
|
+
else
|
192
|
+
false
|
193
|
+
end
|
194
|
+
when :Object
|
195
|
+
# generic object (usually a Hash), return directly
|
196
|
+
value
|
197
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
198
|
+
inner_type = Regexp.last_match[:inner_type]
|
199
|
+
value.map { |v| _deserialize(inner_type, v) }
|
200
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
201
|
+
k_type = Regexp.last_match[:k_type]
|
202
|
+
v_type = Regexp.last_match[:v_type]
|
203
|
+
{}.tap do |hash|
|
204
|
+
value.each do |k, v|
|
205
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
206
|
+
end
|
207
|
+
end
|
208
|
+
else # model
|
209
|
+
# models (e.g. Pet) or oneOf
|
210
|
+
klass = Svix.const_get(type)
|
211
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
212
|
+
end
|
213
|
+
end
|
214
|
+
|
215
|
+
# Returns the string representation of the object
|
216
|
+
# @return [String] String presentation of the object
|
217
|
+
def to_s
|
218
|
+
to_hash.to_s
|
219
|
+
end
|
220
|
+
|
221
|
+
# to_body is an alias to to_hash (backward compatibility)
|
222
|
+
# @return [Hash] Returns the object in the form of hash
|
223
|
+
def to_body
|
224
|
+
to_hash
|
225
|
+
end
|
226
|
+
|
227
|
+
# Returns the object in the form of hash
|
228
|
+
# @return [Hash] Returns the object in the form of hash
|
229
|
+
def to_hash
|
230
|
+
hash = {}
|
231
|
+
self.class.attribute_map.each_pair do |attr, param|
|
232
|
+
value = self.send(attr)
|
233
|
+
if value.nil?
|
234
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
235
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
236
|
+
end
|
237
|
+
|
238
|
+
hash[param] = _to_hash(value)
|
239
|
+
end
|
240
|
+
hash
|
241
|
+
end
|
242
|
+
|
243
|
+
# Outputs non-array value in the form of hash
|
244
|
+
# For object, use to_hash. Otherwise, just return the value
|
245
|
+
# @param [Object] value Any valid value
|
246
|
+
# @return [Hash] Returns the value in the form of hash
|
247
|
+
def _to_hash(value)
|
248
|
+
if value.is_a?(Array)
|
249
|
+
value.compact.map { |v| _to_hash(v) }
|
250
|
+
elsif value.is_a?(Hash)
|
251
|
+
{}.tap do |hash|
|
252
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
253
|
+
end
|
254
|
+
elsif value.respond_to? :to_hash
|
255
|
+
value.to_hash
|
256
|
+
else
|
257
|
+
value
|
258
|
+
end
|
259
|
+
end
|
260
|
+
|
261
|
+
end
|
262
|
+
|
263
|
+
end
|
@@ -15,6 +15,10 @@ require 'time'
|
|
15
15
|
|
16
16
|
module Svix
|
17
17
|
class EnvironmentSettingsOut
|
18
|
+
attr_accessor :color_palette_dark
|
19
|
+
|
20
|
+
attr_accessor :color_palette_light
|
21
|
+
|
18
22
|
attr_accessor :custom_color
|
19
23
|
|
20
24
|
attr_accessor :custom_font_family
|
@@ -30,6 +34,8 @@ module Svix
|
|
30
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
31
35
|
def self.attribute_map
|
32
36
|
{
|
37
|
+
:'color_palette_dark' => :'colorPaletteDark',
|
38
|
+
:'color_palette_light' => :'colorPaletteLight',
|
33
39
|
:'custom_color' => :'customColor',
|
34
40
|
:'custom_font_family' => :'customFontFamily',
|
35
41
|
:'custom_logo_url' => :'customLogoUrl',
|
@@ -47,6 +53,8 @@ module Svix
|
|
47
53
|
# Attribute type mapping.
|
48
54
|
def self.openapi_types
|
49
55
|
{
|
56
|
+
:'color_palette_dark' => :'CustomColorPalette',
|
57
|
+
:'color_palette_light' => :'CustomColorPalette',
|
50
58
|
:'custom_color' => :'String',
|
51
59
|
:'custom_font_family' => :'String',
|
52
60
|
:'custom_logo_url' => :'String',
|
@@ -77,6 +85,14 @@ module Svix
|
|
77
85
|
h[k.to_sym] = v
|
78
86
|
}
|
79
87
|
|
88
|
+
if attributes.key?(:'color_palette_dark')
|
89
|
+
self.color_palette_dark = attributes[:'color_palette_dark']
|
90
|
+
end
|
91
|
+
|
92
|
+
if attributes.key?(:'color_palette_light')
|
93
|
+
self.color_palette_light = attributes[:'color_palette_light']
|
94
|
+
end
|
95
|
+
|
80
96
|
if attributes.key?(:'custom_color')
|
81
97
|
self.custom_color = attributes[:'custom_color']
|
82
98
|
end
|
@@ -165,6 +181,8 @@ module Svix
|
|
165
181
|
def ==(o)
|
166
182
|
return true if self.equal?(o)
|
167
183
|
self.class == o.class &&
|
184
|
+
color_palette_dark == o.color_palette_dark &&
|
185
|
+
color_palette_light == o.color_palette_light &&
|
168
186
|
custom_color == o.custom_color &&
|
169
187
|
custom_font_family == o.custom_font_family &&
|
170
188
|
custom_logo_url == o.custom_logo_url &&
|
@@ -182,7 +200,7 @@ module Svix
|
|
182
200
|
# Calculates hash code according to all attributes.
|
183
201
|
# @return [Integer] Hash code
|
184
202
|
def hash
|
185
|
-
[custom_color, custom_font_family, custom_logo_url, custom_theme_override, enable_channels, enable_integration_management].hash
|
203
|
+
[color_palette_dark, color_palette_light, custom_color, custom_font_family, custom_logo_url, custom_theme_override, enable_channels, enable_integration_management].hash
|
186
204
|
end
|
187
205
|
|
188
206
|
# Builds the object from hash
|
@@ -15,6 +15,10 @@ require 'time'
|
|
15
15
|
|
16
16
|
module Svix
|
17
17
|
class SettingsIn
|
18
|
+
attr_accessor :color_palette_dark
|
19
|
+
|
20
|
+
attr_accessor :color_palette_light
|
21
|
+
|
18
22
|
attr_accessor :custom_base_font_size
|
19
23
|
|
20
24
|
attr_accessor :custom_color
|
@@ -27,24 +31,32 @@ module Svix
|
|
27
31
|
|
28
32
|
attr_accessor :disable_endpoint_on_failure
|
29
33
|
|
34
|
+
attr_accessor :display_name
|
35
|
+
|
30
36
|
attr_accessor :enable_channels
|
31
37
|
|
32
38
|
attr_accessor :enable_integration_management
|
33
39
|
|
34
40
|
attr_accessor :enforce_https
|
35
41
|
|
42
|
+
attr_accessor :event_catalog_published
|
43
|
+
|
36
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
37
45
|
def self.attribute_map
|
38
46
|
{
|
47
|
+
:'color_palette_dark' => :'colorPaletteDark',
|
48
|
+
:'color_palette_light' => :'colorPaletteLight',
|
39
49
|
:'custom_base_font_size' => :'customBaseFontSize',
|
40
50
|
:'custom_color' => :'customColor',
|
41
51
|
:'custom_font_family' => :'customFontFamily',
|
42
52
|
:'custom_logo_url' => :'customLogoUrl',
|
43
53
|
:'custom_theme_override' => :'customThemeOverride',
|
44
54
|
:'disable_endpoint_on_failure' => :'disableEndpointOnFailure',
|
55
|
+
:'display_name' => :'displayName',
|
45
56
|
:'enable_channels' => :'enableChannels',
|
46
57
|
:'enable_integration_management' => :'enableIntegrationManagement',
|
47
|
-
:'enforce_https' => :'enforceHttps'
|
58
|
+
:'enforce_https' => :'enforceHttps',
|
59
|
+
:'event_catalog_published' => :'eventCatalogPublished'
|
48
60
|
}
|
49
61
|
end
|
50
62
|
|
@@ -56,15 +68,19 @@ module Svix
|
|
56
68
|
# Attribute type mapping.
|
57
69
|
def self.openapi_types
|
58
70
|
{
|
71
|
+
:'color_palette_dark' => :'CustomColorPalette',
|
72
|
+
:'color_palette_light' => :'CustomColorPalette',
|
59
73
|
:'custom_base_font_size' => :'Integer',
|
60
74
|
:'custom_color' => :'String',
|
61
75
|
:'custom_font_family' => :'String',
|
62
76
|
:'custom_logo_url' => :'String',
|
63
77
|
:'custom_theme_override' => :'CustomThemeOverride',
|
64
78
|
:'disable_endpoint_on_failure' => :'Boolean',
|
79
|
+
:'display_name' => :'String',
|
65
80
|
:'enable_channels' => :'Boolean',
|
66
81
|
:'enable_integration_management' => :'Boolean',
|
67
|
-
:'enforce_https' => :'Boolean'
|
82
|
+
:'enforce_https' => :'Boolean',
|
83
|
+
:'event_catalog_published' => :'Boolean'
|
68
84
|
}
|
69
85
|
end
|
70
86
|
|
@@ -89,6 +105,14 @@ module Svix
|
|
89
105
|
h[k.to_sym] = v
|
90
106
|
}
|
91
107
|
|
108
|
+
if attributes.key?(:'color_palette_dark')
|
109
|
+
self.color_palette_dark = attributes[:'color_palette_dark']
|
110
|
+
end
|
111
|
+
|
112
|
+
if attributes.key?(:'color_palette_light')
|
113
|
+
self.color_palette_light = attributes[:'color_palette_light']
|
114
|
+
end
|
115
|
+
|
92
116
|
if attributes.key?(:'custom_base_font_size')
|
93
117
|
self.custom_base_font_size = attributes[:'custom_base_font_size']
|
94
118
|
end
|
@@ -115,6 +139,10 @@ module Svix
|
|
115
139
|
self.disable_endpoint_on_failure = true
|
116
140
|
end
|
117
141
|
|
142
|
+
if attributes.key?(:'display_name')
|
143
|
+
self.display_name = attributes[:'display_name']
|
144
|
+
end
|
145
|
+
|
118
146
|
if attributes.key?(:'enable_channels')
|
119
147
|
self.enable_channels = attributes[:'enable_channels']
|
120
148
|
else
|
@@ -132,6 +160,12 @@ module Svix
|
|
132
160
|
else
|
133
161
|
self.enforce_https = true
|
134
162
|
end
|
163
|
+
|
164
|
+
if attributes.key?(:'event_catalog_published')
|
165
|
+
self.event_catalog_published = attributes[:'event_catalog_published']
|
166
|
+
else
|
167
|
+
self.event_catalog_published = false
|
168
|
+
end
|
135
169
|
end
|
136
170
|
|
137
171
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -193,15 +227,19 @@ module Svix
|
|
193
227
|
def ==(o)
|
194
228
|
return true if self.equal?(o)
|
195
229
|
self.class == o.class &&
|
230
|
+
color_palette_dark == o.color_palette_dark &&
|
231
|
+
color_palette_light == o.color_palette_light &&
|
196
232
|
custom_base_font_size == o.custom_base_font_size &&
|
197
233
|
custom_color == o.custom_color &&
|
198
234
|
custom_font_family == o.custom_font_family &&
|
199
235
|
custom_logo_url == o.custom_logo_url &&
|
200
236
|
custom_theme_override == o.custom_theme_override &&
|
201
237
|
disable_endpoint_on_failure == o.disable_endpoint_on_failure &&
|
238
|
+
display_name == o.display_name &&
|
202
239
|
enable_channels == o.enable_channels &&
|
203
240
|
enable_integration_management == o.enable_integration_management &&
|
204
|
-
enforce_https == o.enforce_https
|
241
|
+
enforce_https == o.enforce_https &&
|
242
|
+
event_catalog_published == o.event_catalog_published
|
205
243
|
end
|
206
244
|
|
207
245
|
# @see the `==` method
|
@@ -213,7 +251,7 @@ module Svix
|
|
213
251
|
# Calculates hash code according to all attributes.
|
214
252
|
# @return [Integer] Hash code
|
215
253
|
def hash
|
216
|
-
[custom_base_font_size, custom_color, custom_font_family, custom_logo_url, custom_theme_override, disable_endpoint_on_failure, enable_channels, enable_integration_management, enforce_https].hash
|
254
|
+
[color_palette_dark, color_palette_light, custom_base_font_size, custom_color, custom_font_family, custom_logo_url, custom_theme_override, disable_endpoint_on_failure, display_name, enable_channels, enable_integration_management, enforce_https, event_catalog_published].hash
|
217
255
|
end
|
218
256
|
|
219
257
|
# Builds the object from hash
|
@@ -15,6 +15,10 @@ require 'time'
|
|
15
15
|
|
16
16
|
module Svix
|
17
17
|
class SettingsOut
|
18
|
+
attr_accessor :color_palette_dark
|
19
|
+
|
20
|
+
attr_accessor :color_palette_light
|
21
|
+
|
18
22
|
attr_accessor :custom_base_font_size
|
19
23
|
|
20
24
|
attr_accessor :custom_color
|
@@ -27,24 +31,32 @@ module Svix
|
|
27
31
|
|
28
32
|
attr_accessor :disable_endpoint_on_failure
|
29
33
|
|
34
|
+
attr_accessor :display_name
|
35
|
+
|
30
36
|
attr_accessor :enable_channels
|
31
37
|
|
32
38
|
attr_accessor :enable_integration_management
|
33
39
|
|
34
40
|
attr_accessor :enforce_https
|
35
41
|
|
42
|
+
attr_accessor :event_catalog_published
|
43
|
+
|
36
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
37
45
|
def self.attribute_map
|
38
46
|
{
|
47
|
+
:'color_palette_dark' => :'colorPaletteDark',
|
48
|
+
:'color_palette_light' => :'colorPaletteLight',
|
39
49
|
:'custom_base_font_size' => :'customBaseFontSize',
|
40
50
|
:'custom_color' => :'customColor',
|
41
51
|
:'custom_font_family' => :'customFontFamily',
|
42
52
|
:'custom_logo_url' => :'customLogoUrl',
|
43
53
|
:'custom_theme_override' => :'customThemeOverride',
|
44
54
|
:'disable_endpoint_on_failure' => :'disableEndpointOnFailure',
|
55
|
+
:'display_name' => :'displayName',
|
45
56
|
:'enable_channels' => :'enableChannels',
|
46
57
|
:'enable_integration_management' => :'enableIntegrationManagement',
|
47
|
-
:'enforce_https' => :'enforceHttps'
|
58
|
+
:'enforce_https' => :'enforceHttps',
|
59
|
+
:'event_catalog_published' => :'eventCatalogPublished'
|
48
60
|
}
|
49
61
|
end
|
50
62
|
|
@@ -56,15 +68,19 @@ module Svix
|
|
56
68
|
# Attribute type mapping.
|
57
69
|
def self.openapi_types
|
58
70
|
{
|
71
|
+
:'color_palette_dark' => :'CustomColorPalette',
|
72
|
+
:'color_palette_light' => :'CustomColorPalette',
|
59
73
|
:'custom_base_font_size' => :'Integer',
|
60
74
|
:'custom_color' => :'String',
|
61
75
|
:'custom_font_family' => :'String',
|
62
76
|
:'custom_logo_url' => :'String',
|
63
77
|
:'custom_theme_override' => :'CustomThemeOverride',
|
64
78
|
:'disable_endpoint_on_failure' => :'Boolean',
|
79
|
+
:'display_name' => :'String',
|
65
80
|
:'enable_channels' => :'Boolean',
|
66
81
|
:'enable_integration_management' => :'Boolean',
|
67
|
-
:'enforce_https' => :'Boolean'
|
82
|
+
:'enforce_https' => :'Boolean',
|
83
|
+
:'event_catalog_published' => :'Boolean'
|
68
84
|
}
|
69
85
|
end
|
70
86
|
|
@@ -89,6 +105,14 @@ module Svix
|
|
89
105
|
h[k.to_sym] = v
|
90
106
|
}
|
91
107
|
|
108
|
+
if attributes.key?(:'color_palette_dark')
|
109
|
+
self.color_palette_dark = attributes[:'color_palette_dark']
|
110
|
+
end
|
111
|
+
|
112
|
+
if attributes.key?(:'color_palette_light')
|
113
|
+
self.color_palette_light = attributes[:'color_palette_light']
|
114
|
+
end
|
115
|
+
|
92
116
|
if attributes.key?(:'custom_base_font_size')
|
93
117
|
self.custom_base_font_size = attributes[:'custom_base_font_size']
|
94
118
|
end
|
@@ -115,6 +139,10 @@ module Svix
|
|
115
139
|
self.disable_endpoint_on_failure = true
|
116
140
|
end
|
117
141
|
|
142
|
+
if attributes.key?(:'display_name')
|
143
|
+
self.display_name = attributes[:'display_name']
|
144
|
+
end
|
145
|
+
|
118
146
|
if attributes.key?(:'enable_channels')
|
119
147
|
self.enable_channels = attributes[:'enable_channels']
|
120
148
|
else
|
@@ -132,6 +160,12 @@ module Svix
|
|
132
160
|
else
|
133
161
|
self.enforce_https = true
|
134
162
|
end
|
163
|
+
|
164
|
+
if attributes.key?(:'event_catalog_published')
|
165
|
+
self.event_catalog_published = attributes[:'event_catalog_published']
|
166
|
+
else
|
167
|
+
self.event_catalog_published = false
|
168
|
+
end
|
135
169
|
end
|
136
170
|
|
137
171
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -193,15 +227,19 @@ module Svix
|
|
193
227
|
def ==(o)
|
194
228
|
return true if self.equal?(o)
|
195
229
|
self.class == o.class &&
|
230
|
+
color_palette_dark == o.color_palette_dark &&
|
231
|
+
color_palette_light == o.color_palette_light &&
|
196
232
|
custom_base_font_size == o.custom_base_font_size &&
|
197
233
|
custom_color == o.custom_color &&
|
198
234
|
custom_font_family == o.custom_font_family &&
|
199
235
|
custom_logo_url == o.custom_logo_url &&
|
200
236
|
custom_theme_override == o.custom_theme_override &&
|
201
237
|
disable_endpoint_on_failure == o.disable_endpoint_on_failure &&
|
238
|
+
display_name == o.display_name &&
|
202
239
|
enable_channels == o.enable_channels &&
|
203
240
|
enable_integration_management == o.enable_integration_management &&
|
204
|
-
enforce_https == o.enforce_https
|
241
|
+
enforce_https == o.enforce_https &&
|
242
|
+
event_catalog_published == o.event_catalog_published
|
205
243
|
end
|
206
244
|
|
207
245
|
# @see the `==` method
|
@@ -213,7 +251,7 @@ module Svix
|
|
213
251
|
# Calculates hash code according to all attributes.
|
214
252
|
# @return [Integer] Hash code
|
215
253
|
def hash
|
216
|
-
[custom_base_font_size, custom_color, custom_font_family, custom_logo_url, custom_theme_override, disable_endpoint_on_failure, enable_channels, enable_integration_management, enforce_https].hash
|
254
|
+
[color_palette_dark, color_palette_light, custom_base_font_size, custom_color, custom_font_family, custom_logo_url, custom_theme_override, disable_endpoint_on_failure, display_name, enable_channels, enable_integration_management, enforce_https, event_catalog_published].hash
|
217
255
|
end
|
218
256
|
|
219
257
|
# Builds the object from hash
|
data/lib/svix/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: svix
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.59.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Svix
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -113,6 +113,7 @@ files:
|
|
113
113
|
- lib/svix/models/attempt_statistics_response.rb
|
114
114
|
- lib/svix/models/border_radius_config.rb
|
115
115
|
- lib/svix/models/border_radius_enum.rb
|
116
|
+
- lib/svix/models/custom_color_palette.rb
|
116
117
|
- lib/svix/models/custom_theme_override.rb
|
117
118
|
- lib/svix/models/dashboard_access_out.rb
|
118
119
|
- lib/svix/models/endpoint_created_event.rb
|