svix 1.15.0 → 1.16.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -25,6 +25,8 @@ module Svix
25
25
 
26
26
  attr_accessor :custom_font_family
27
27
 
28
+ attr_accessor :custom_font_family_url
29
+
28
30
  attr_accessor :custom_logo_url
29
31
 
30
32
  attr_accessor :custom_theme_override
@@ -53,6 +55,7 @@ module Svix
53
55
  :'custom_base_font_size' => :'customBaseFontSize',
54
56
  :'custom_color' => :'customColor',
55
57
  :'custom_font_family' => :'customFontFamily',
58
+ :'custom_font_family_url' => :'customFontFamilyUrl',
56
59
  :'custom_logo_url' => :'customLogoUrl',
57
60
  :'custom_theme_override' => :'customThemeOverride',
58
61
  :'disable_endpoint_on_failure' => :'disableEndpointOnFailure',
@@ -79,6 +82,7 @@ module Svix
79
82
  :'custom_base_font_size' => :'Integer',
80
83
  :'custom_color' => :'String',
81
84
  :'custom_font_family' => :'String',
85
+ :'custom_font_family_url' => :'String',
82
86
  :'custom_logo_url' => :'String',
83
87
  :'custom_theme_override' => :'CustomThemeOverride',
84
88
  :'disable_endpoint_on_failure' => :'Boolean',
@@ -96,8 +100,8 @@ module Svix
96
100
  def self.openapi_nullable
97
101
  Set.new([
98
102
  :'custom_base_font_size',
99
- :'custom_color',
100
103
  :'custom_font_family',
104
+ :'custom_font_family_url',
101
105
  :'custom_logo_url',
102
106
  :'display_name',
103
107
  ])
@@ -138,6 +142,10 @@ module Svix
138
142
  self.custom_font_family = attributes[:'custom_font_family']
139
143
  end
140
144
 
145
+ if attributes.key?(:'custom_font_family_url')
146
+ self.custom_font_family_url = attributes[:'custom_font_family_url']
147
+ end
148
+
141
149
  if attributes.key?(:'custom_logo_url')
142
150
  self.custom_logo_url = attributes[:'custom_logo_url']
143
151
  end
@@ -202,6 +210,14 @@ module Svix
202
210
  invalid_properties.push("invalid value for \"custom_font_family\", must conform to the pattern #{pattern}.")
203
211
  end
204
212
 
213
+ if !@custom_font_family_url.nil? && @custom_font_family_url.to_s.length > 65536
214
+ invalid_properties.push('invalid value for "custom_font_family_url", the character length must be smaller than or equal to 65536.')
215
+ end
216
+
217
+ if !@custom_font_family_url.nil? && @custom_font_family_url.to_s.length < 1
218
+ invalid_properties.push('invalid value for "custom_font_family_url", the character length must be great than or equal to 1.')
219
+ end
220
+
205
221
  if !@custom_logo_url.nil? && @custom_logo_url.to_s.length > 65536
206
222
  invalid_properties.push('invalid value for "custom_logo_url", the character length must be smaller than or equal to 65536.')
207
223
  end
@@ -217,6 +233,8 @@ module Svix
217
233
  # @return true if the model is valid
218
234
  def valid?
219
235
  return false if !@custom_font_family.nil? && @custom_font_family !~ Regexp.new(/^[a-zA-Z0-9\-_ ]+$/)
236
+ return false if !@custom_font_family_url.nil? && @custom_font_family_url.to_s.length > 65536
237
+ return false if !@custom_font_family_url.nil? && @custom_font_family_url.to_s.length < 1
220
238
  return false if !@custom_logo_url.nil? && @custom_logo_url.to_s.length > 65536
221
239
  return false if !@custom_logo_url.nil? && @custom_logo_url.to_s.length < 1
222
240
  true
@@ -233,6 +251,20 @@ module Svix
233
251
  @custom_font_family = custom_font_family
234
252
  end
235
253
 
254
+ # Custom attribute writer method with validation
255
+ # @param [Object] custom_font_family_url Value to be assigned
256
+ def custom_font_family_url=(custom_font_family_url)
257
+ if !custom_font_family_url.nil? && custom_font_family_url.to_s.length > 65536
258
+ fail ArgumentError, 'invalid value for "custom_font_family_url", the character length must be smaller than or equal to 65536.'
259
+ end
260
+
261
+ if !custom_font_family_url.nil? && custom_font_family_url.to_s.length < 1
262
+ fail ArgumentError, 'invalid value for "custom_font_family_url", the character length must be great than or equal to 1.'
263
+ end
264
+
265
+ @custom_font_family_url = custom_font_family_url
266
+ end
267
+
236
268
  # Custom attribute writer method with validation
237
269
  # @param [Object] custom_logo_url Value to be assigned
238
270
  def custom_logo_url=(custom_logo_url)
@@ -257,6 +289,7 @@ module Svix
257
289
  custom_base_font_size == o.custom_base_font_size &&
258
290
  custom_color == o.custom_color &&
259
291
  custom_font_family == o.custom_font_family &&
292
+ custom_font_family_url == o.custom_font_family_url &&
260
293
  custom_logo_url == o.custom_logo_url &&
261
294
  custom_theme_override == o.custom_theme_override &&
262
295
  disable_endpoint_on_failure == o.disable_endpoint_on_failure &&
@@ -278,7 +311,7 @@ module Svix
278
311
  # Calculates hash code according to all attributes.
279
312
  # @return [Integer] Hash code
280
313
  def hash
281
- [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, enable_transformations, enforce_https, event_catalog_published, read_only].hash
314
+ [color_palette_dark, color_palette_light, custom_base_font_size, custom_color, custom_font_family, custom_font_family_url, custom_logo_url, custom_theme_override, disable_endpoint_on_failure, display_name, enable_channels, enable_integration_management, enable_transformations, enforce_https, event_catalog_published, read_only].hash
282
315
  end
283
316
 
284
317
  # Builds the object from hash
@@ -25,6 +25,8 @@ module Svix
25
25
 
26
26
  attr_accessor :custom_font_family
27
27
 
28
+ attr_accessor :custom_font_family_url
29
+
28
30
  attr_accessor :custom_logo_url
29
31
 
30
32
  attr_accessor :custom_theme_override
@@ -53,6 +55,7 @@ module Svix
53
55
  :'custom_base_font_size' => :'customBaseFontSize',
54
56
  :'custom_color' => :'customColor',
55
57
  :'custom_font_family' => :'customFontFamily',
58
+ :'custom_font_family_url' => :'customFontFamilyUrl',
56
59
  :'custom_logo_url' => :'customLogoUrl',
57
60
  :'custom_theme_override' => :'customThemeOverride',
58
61
  :'disable_endpoint_on_failure' => :'disableEndpointOnFailure',
@@ -79,6 +82,7 @@ module Svix
79
82
  :'custom_base_font_size' => :'Integer',
80
83
  :'custom_color' => :'String',
81
84
  :'custom_font_family' => :'String',
85
+ :'custom_font_family_url' => :'String',
82
86
  :'custom_logo_url' => :'String',
83
87
  :'custom_theme_override' => :'CustomThemeOverride',
84
88
  :'disable_endpoint_on_failure' => :'Boolean',
@@ -96,8 +100,8 @@ module Svix
96
100
  def self.openapi_nullable
97
101
  Set.new([
98
102
  :'custom_base_font_size',
99
- :'custom_color',
100
103
  :'custom_font_family',
104
+ :'custom_font_family_url',
101
105
  :'custom_logo_url',
102
106
  :'display_name',
103
107
  ])
@@ -138,6 +142,10 @@ module Svix
138
142
  self.custom_font_family = attributes[:'custom_font_family']
139
143
  end
140
144
 
145
+ if attributes.key?(:'custom_font_family_url')
146
+ self.custom_font_family_url = attributes[:'custom_font_family_url']
147
+ end
148
+
141
149
  if attributes.key?(:'custom_logo_url')
142
150
  self.custom_logo_url = attributes[:'custom_logo_url']
143
151
  end
@@ -202,6 +210,14 @@ module Svix
202
210
  invalid_properties.push("invalid value for \"custom_font_family\", must conform to the pattern #{pattern}.")
203
211
  end
204
212
 
213
+ if !@custom_font_family_url.nil? && @custom_font_family_url.to_s.length > 65536
214
+ invalid_properties.push('invalid value for "custom_font_family_url", the character length must be smaller than or equal to 65536.')
215
+ end
216
+
217
+ if !@custom_font_family_url.nil? && @custom_font_family_url.to_s.length < 1
218
+ invalid_properties.push('invalid value for "custom_font_family_url", the character length must be great than or equal to 1.')
219
+ end
220
+
205
221
  if !@custom_logo_url.nil? && @custom_logo_url.to_s.length > 65536
206
222
  invalid_properties.push('invalid value for "custom_logo_url", the character length must be smaller than or equal to 65536.')
207
223
  end
@@ -217,6 +233,8 @@ module Svix
217
233
  # @return true if the model is valid
218
234
  def valid?
219
235
  return false if !@custom_font_family.nil? && @custom_font_family !~ Regexp.new(/^[a-zA-Z0-9\-_ ]+$/)
236
+ return false if !@custom_font_family_url.nil? && @custom_font_family_url.to_s.length > 65536
237
+ return false if !@custom_font_family_url.nil? && @custom_font_family_url.to_s.length < 1
220
238
  return false if !@custom_logo_url.nil? && @custom_logo_url.to_s.length > 65536
221
239
  return false if !@custom_logo_url.nil? && @custom_logo_url.to_s.length < 1
222
240
  true
@@ -233,6 +251,20 @@ module Svix
233
251
  @custom_font_family = custom_font_family
234
252
  end
235
253
 
254
+ # Custom attribute writer method with validation
255
+ # @param [Object] custom_font_family_url Value to be assigned
256
+ def custom_font_family_url=(custom_font_family_url)
257
+ if !custom_font_family_url.nil? && custom_font_family_url.to_s.length > 65536
258
+ fail ArgumentError, 'invalid value for "custom_font_family_url", the character length must be smaller than or equal to 65536.'
259
+ end
260
+
261
+ if !custom_font_family_url.nil? && custom_font_family_url.to_s.length < 1
262
+ fail ArgumentError, 'invalid value for "custom_font_family_url", the character length must be great than or equal to 1.'
263
+ end
264
+
265
+ @custom_font_family_url = custom_font_family_url
266
+ end
267
+
236
268
  # Custom attribute writer method with validation
237
269
  # @param [Object] custom_logo_url Value to be assigned
238
270
  def custom_logo_url=(custom_logo_url)
@@ -257,6 +289,7 @@ module Svix
257
289
  custom_base_font_size == o.custom_base_font_size &&
258
290
  custom_color == o.custom_color &&
259
291
  custom_font_family == o.custom_font_family &&
292
+ custom_font_family_url == o.custom_font_family_url &&
260
293
  custom_logo_url == o.custom_logo_url &&
261
294
  custom_theme_override == o.custom_theme_override &&
262
295
  disable_endpoint_on_failure == o.disable_endpoint_on_failure &&
@@ -278,7 +311,7 @@ module Svix
278
311
  # Calculates hash code according to all attributes.
279
312
  # @return [Integer] Hash code
280
313
  def hash
281
- [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, enable_transformations, enforce_https, event_catalog_published, read_only].hash
314
+ [color_palette_dark, color_palette_light, custom_base_font_size, custom_color, custom_font_family, custom_font_family_url, custom_logo_url, custom_theme_override, disable_endpoint_on_failure, display_name, enable_channels, enable_integration_management, enable_transformations, enforce_https, event_catalog_published, read_only].hash
282
315
  end
283
316
 
284
317
  # Builds the object from hash
data/lib/svix/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Svix
4
- VERSION = "1.15.0"
4
+ VERSION = "1.16.0"
5
5
  end
data/svix.gemspec CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["support@svix.com"]
11
11
  spec.license = "MIT"
12
12
 
13
- spec.summary = "Ruby bindings for the Svix API"
13
+ spec.summary = "Svix webhooks API client and webhook verification library"
14
14
  spec.description = "Svix makes webhooks easy and reliable. " \
15
15
  "Learn more at https://www.svix.com"
16
16
  spec.homepage = "https://www.svix.com"
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: 1.15.0
4
+ version: 1.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Svix
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-12-07 00:00:00.000000000 Z
11
+ date: 2024-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -93,6 +93,7 @@ files:
93
93
  - lib/svix/api/environment_settings_api.rb
94
94
  - lib/svix/api/event_type_api.rb
95
95
  - lib/svix/api/health_api.rb
96
+ - lib/svix/api/inbound_api.rb
96
97
  - lib/svix/api/integration_api.rb
97
98
  - lib/svix/api/message_api.rb
98
99
  - lib/svix/api/message_attempt_api.rb
@@ -128,9 +129,12 @@ files:
128
129
  - lib/svix/models/background_task_type.rb
129
130
  - lib/svix/models/border_radius_config.rb
130
131
  - lib/svix/models/border_radius_enum.rb
132
+ - lib/svix/models/completion_choice.rb
133
+ - lib/svix/models/completion_message.rb
131
134
  - lib/svix/models/custom_color_palette.rb
132
135
  - lib/svix/models/custom_theme_override.rb
133
136
  - lib/svix/models/dashboard_access_out.rb
137
+ - lib/svix/models/duration.rb
134
138
  - lib/svix/models/endpoint_created_event.rb
135
139
  - lib/svix/models/endpoint_created_event_data.rb
136
140
  - lib/svix/models/endpoint_deleted_event.rb
@@ -169,8 +173,11 @@ files:
169
173
  - lib/svix/models/event_type_update.rb
170
174
  - lib/svix/models/export_event_type_out.rb
171
175
  - lib/svix/models/font_size_config.rb
176
+ - lib/svix/models/generate_in.rb
177
+ - lib/svix/models/generate_out.rb
172
178
  - lib/svix/models/http_error_out.rb
173
179
  - lib/svix/models/http_validation_error.rb
180
+ - lib/svix/models/inbound_path_params.rb
174
181
  - lib/svix/models/integration_in.rb
175
182
  - lib/svix/models/integration_key_out.rb
176
183
  - lib/svix/models/integration_out.rb
@@ -205,6 +212,7 @@ files:
205
212
  - lib/svix/models/message_out.rb
206
213
  - lib/svix/models/message_raw_payload_out.rb
207
214
  - lib/svix/models/message_status.rb
215
+ - lib/svix/models/message_stream_out.rb
208
216
  - lib/svix/models/oauth_payload_in.rb
209
217
  - lib/svix/models/oauth_payload_out.rb
210
218
  - lib/svix/models/one_time_token_in.rb
@@ -214,6 +222,8 @@ files:
214
222
  - lib/svix/models/recover_out.rb
215
223
  - lib/svix/models/replay_in.rb
216
224
  - lib/svix/models/replay_out.rb
225
+ - lib/svix/models/retry_schedule_in_out.rb
226
+ - lib/svix/models/rotated_url_out.rb
217
227
  - lib/svix/models/settings_in.rb
218
228
  - lib/svix/models/settings_out.rb
219
229
  - lib/svix/models/statistics_period.rb
@@ -259,5 +269,5 @@ requirements: []
259
269
  rubygems_version: 3.1.6
260
270
  signing_key:
261
271
  specification_version: 4
262
- summary: Ruby bindings for the Svix API
272
+ summary: Svix webhooks API client and webhook verification library
263
273
  test_files: []