svix 0.74.1 → 0.76.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.
@@ -21,6 +21,8 @@ module Svix
21
21
 
22
22
  attr_accessor :description
23
23
 
24
+ attr_accessor :feature_flag
25
+
24
26
  attr_accessor :name
25
27
 
26
28
  # The schema for the event type for a specific version as a JSON schema.
@@ -34,6 +36,7 @@ module Svix
34
36
  :'archived' => :'archived',
35
37
  :'created_at' => :'createdAt',
36
38
  :'description' => :'description',
39
+ :'feature_flag' => :'featureFlag',
37
40
  :'name' => :'name',
38
41
  :'schemas' => :'schemas',
39
42
  :'updated_at' => :'updatedAt'
@@ -51,6 +54,7 @@ module Svix
51
54
  :'archived' => :'Boolean',
52
55
  :'created_at' => :'Time',
53
56
  :'description' => :'String',
57
+ :'feature_flag' => :'String',
54
58
  :'name' => :'String',
55
59
  :'schemas' => :'Hash<String, Object>',
56
60
  :'updated_at' => :'Time'
@@ -60,6 +64,7 @@ module Svix
60
64
  # List of attributes with nullable: true
61
65
  def self.openapi_nullable
62
66
  Set.new([
67
+ :'feature_flag',
63
68
  :'schemas',
64
69
  ])
65
70
  end
@@ -93,6 +98,10 @@ module Svix
93
98
  self.description = attributes[:'description']
94
99
  end
95
100
 
101
+ if attributes.key?(:'feature_flag')
102
+ self.feature_flag = attributes[:'feature_flag']
103
+ end
104
+
96
105
  if attributes.key?(:'name')
97
106
  self.name = attributes[:'name']
98
107
  end
@@ -120,6 +129,15 @@ module Svix
120
129
  invalid_properties.push('invalid value for "description", description cannot be nil.')
121
130
  end
122
131
 
132
+ if !@feature_flag.nil? && @feature_flag.to_s.length > 256
133
+ invalid_properties.push('invalid value for "feature_flag", the character length must be smaller than or equal to 256.')
134
+ end
135
+
136
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
137
+ if !@feature_flag.nil? && @feature_flag !~ pattern
138
+ invalid_properties.push("invalid value for \"feature_flag\", must conform to the pattern #{pattern}.")
139
+ end
140
+
123
141
  if @name.nil?
124
142
  invalid_properties.push('invalid value for "name", name cannot be nil.')
125
143
  end
@@ -145,6 +163,8 @@ module Svix
145
163
  def valid?
146
164
  return false if @created_at.nil?
147
165
  return false if @description.nil?
166
+ return false if !@feature_flag.nil? && @feature_flag.to_s.length > 256
167
+ return false if !@feature_flag.nil? && @feature_flag !~ Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
148
168
  return false if @name.nil?
149
169
  return false if @name.to_s.length > 256
150
170
  return false if @name !~ Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
@@ -152,6 +172,21 @@ module Svix
152
172
  true
153
173
  end
154
174
 
175
+ # Custom attribute writer method with validation
176
+ # @param [Object] feature_flag Value to be assigned
177
+ def feature_flag=(feature_flag)
178
+ if !feature_flag.nil? && feature_flag.to_s.length > 256
179
+ fail ArgumentError, 'invalid value for "feature_flag", the character length must be smaller than or equal to 256.'
180
+ end
181
+
182
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
183
+ if !feature_flag.nil? && feature_flag !~ pattern
184
+ fail ArgumentError, "invalid value for \"feature_flag\", must conform to the pattern #{pattern}."
185
+ end
186
+
187
+ @feature_flag = feature_flag
188
+ end
189
+
155
190
  # Custom attribute writer method with validation
156
191
  # @param [Object] name Value to be assigned
157
192
  def name=(name)
@@ -179,6 +214,7 @@ module Svix
179
214
  archived == o.archived &&
180
215
  created_at == o.created_at &&
181
216
  description == o.description &&
217
+ feature_flag == o.feature_flag &&
182
218
  name == o.name &&
183
219
  schemas == o.schemas &&
184
220
  updated_at == o.updated_at
@@ -193,7 +229,7 @@ module Svix
193
229
  # Calculates hash code according to all attributes.
194
230
  # @return [Integer] Hash code
195
231
  def hash
196
- [archived, created_at, description, name, schemas, updated_at].hash
232
+ [archived, created_at, description, feature_flag, name, schemas, updated_at].hash
197
233
  end
198
234
 
199
235
  # Builds the object from hash
@@ -19,6 +19,8 @@ module Svix
19
19
 
20
20
  attr_accessor :description
21
21
 
22
+ attr_accessor :feature_flag
23
+
22
24
  # The schema for the event type for a specific version as a JSON schema.
23
25
  attr_accessor :schemas
24
26
 
@@ -27,6 +29,7 @@ module Svix
27
29
  {
28
30
  :'archived' => :'archived',
29
31
  :'description' => :'description',
32
+ :'feature_flag' => :'featureFlag',
30
33
  :'schemas' => :'schemas'
31
34
  }
32
35
  end
@@ -41,6 +44,7 @@ module Svix
41
44
  {
42
45
  :'archived' => :'Boolean',
43
46
  :'description' => :'String',
47
+ :'feature_flag' => :'String',
44
48
  :'schemas' => :'Hash<String, Object>'
45
49
  }
46
50
  end
@@ -48,6 +52,7 @@ module Svix
48
52
  # List of attributes with nullable: true
49
53
  def self.openapi_nullable
50
54
  Set.new([
55
+ :'feature_flag',
51
56
  :'schemas'
52
57
  ])
53
58
  end
@@ -77,6 +82,10 @@ module Svix
77
82
  self.description = attributes[:'description']
78
83
  end
79
84
 
85
+ if attributes.key?(:'feature_flag')
86
+ self.feature_flag = attributes[:'feature_flag']
87
+ end
88
+
80
89
  if attributes.key?(:'schemas')
81
90
  if (value = attributes[:'schemas']).is_a?(Hash)
82
91
  self.schemas = value
@@ -92,6 +101,15 @@ module Svix
92
101
  invalid_properties.push('invalid value for "description", description cannot be nil.')
93
102
  end
94
103
 
104
+ if !@feature_flag.nil? && @feature_flag.to_s.length > 256
105
+ invalid_properties.push('invalid value for "feature_flag", the character length must be smaller than or equal to 256.')
106
+ end
107
+
108
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
109
+ if !@feature_flag.nil? && @feature_flag !~ pattern
110
+ invalid_properties.push("invalid value for \"feature_flag\", must conform to the pattern #{pattern}.")
111
+ end
112
+
95
113
  invalid_properties
96
114
  end
97
115
 
@@ -99,9 +117,26 @@ module Svix
99
117
  # @return true if the model is valid
100
118
  def valid?
101
119
  return false if @description.nil?
120
+ return false if !@feature_flag.nil? && @feature_flag.to_s.length > 256
121
+ return false if !@feature_flag.nil? && @feature_flag !~ Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
102
122
  true
103
123
  end
104
124
 
125
+ # Custom attribute writer method with validation
126
+ # @param [Object] feature_flag Value to be assigned
127
+ def feature_flag=(feature_flag)
128
+ if !feature_flag.nil? && feature_flag.to_s.length > 256
129
+ fail ArgumentError, 'invalid value for "feature_flag", the character length must be smaller than or equal to 256.'
130
+ end
131
+
132
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
133
+ if !feature_flag.nil? && feature_flag !~ pattern
134
+ fail ArgumentError, "invalid value for \"feature_flag\", must conform to the pattern #{pattern}."
135
+ end
136
+
137
+ @feature_flag = feature_flag
138
+ end
139
+
105
140
  # Checks equality by comparing each attribute.
106
141
  # @param [Object] Object to be compared
107
142
  def ==(o)
@@ -109,6 +144,7 @@ module Svix
109
144
  self.class == o.class &&
110
145
  archived == o.archived &&
111
146
  description == o.description &&
147
+ feature_flag == o.feature_flag &&
112
148
  schemas == o.schemas
113
149
  end
114
150
 
@@ -121,7 +157,7 @@ module Svix
121
157
  # Calculates hash code according to all attributes.
122
158
  # @return [Integer] Hash code
123
159
  def hash
124
- [archived, description, schemas].hash
160
+ [archived, description, feature_flag, schemas].hash
125
161
  end
126
162
 
127
163
  # Builds the object from hash
@@ -31,6 +31,8 @@ module Svix
31
31
 
32
32
  attr_accessor :trigger_type
33
33
 
34
+ attr_accessor :url
35
+
34
36
  # Attribute mapping from ruby-style variable name to JSON key.
35
37
  def self.attribute_map
36
38
  {
@@ -41,7 +43,8 @@ module Svix
41
43
  :'response_status_code' => :'responseStatusCode',
42
44
  :'status' => :'status',
43
45
  :'timestamp' => :'timestamp',
44
- :'trigger_type' => :'triggerType'
46
+ :'trigger_type' => :'triggerType',
47
+ :'url' => :'url'
45
48
  }
46
49
  end
47
50
 
@@ -60,7 +63,8 @@ module Svix
60
63
  :'response_status_code' => :'Integer',
61
64
  :'status' => :'MessageStatus',
62
65
  :'timestamp' => :'Time',
63
- :'trigger_type' => :'MessageAttemptTriggerType'
66
+ :'trigger_type' => :'MessageAttemptTriggerType',
67
+ :'url' => :'String'
64
68
  }
65
69
  end
66
70
 
@@ -116,6 +120,10 @@ module Svix
116
120
  if attributes.key?(:'trigger_type')
117
121
  self.trigger_type = attributes[:'trigger_type']
118
122
  end
123
+
124
+ if attributes.key?(:'url')
125
+ self.url = attributes[:'url']
126
+ end
119
127
  end
120
128
 
121
129
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -154,6 +162,18 @@ module Svix
154
162
  invalid_properties.push('invalid value for "trigger_type", trigger_type cannot be nil.')
155
163
  end
156
164
 
165
+ if @url.nil?
166
+ invalid_properties.push('invalid value for "url", url cannot be nil.')
167
+ end
168
+
169
+ if @url.to_s.length > 65536
170
+ invalid_properties.push('invalid value for "url", the character length must be smaller than or equal to 65536.')
171
+ end
172
+
173
+ if @url.to_s.length < 1
174
+ invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
175
+ end
176
+
157
177
  invalid_properties
158
178
  end
159
179
 
@@ -168,9 +188,30 @@ module Svix
168
188
  return false if @status.nil?
169
189
  return false if @timestamp.nil?
170
190
  return false if @trigger_type.nil?
191
+ return false if @url.nil?
192
+ return false if @url.to_s.length > 65536
193
+ return false if @url.to_s.length < 1
171
194
  true
172
195
  end
173
196
 
197
+ # Custom attribute writer method with validation
198
+ # @param [Object] url Value to be assigned
199
+ def url=(url)
200
+ if url.nil?
201
+ fail ArgumentError, 'url cannot be nil'
202
+ end
203
+
204
+ if url.to_s.length > 65536
205
+ fail ArgumentError, 'invalid value for "url", the character length must be smaller than or equal to 65536.'
206
+ end
207
+
208
+ if url.to_s.length < 1
209
+ fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
210
+ end
211
+
212
+ @url = url
213
+ end
214
+
174
215
  # Checks equality by comparing each attribute.
175
216
  # @param [Object] Object to be compared
176
217
  def ==(o)
@@ -183,7 +224,8 @@ module Svix
183
224
  response_status_code == o.response_status_code &&
184
225
  status == o.status &&
185
226
  timestamp == o.timestamp &&
186
- trigger_type == o.trigger_type
227
+ trigger_type == o.trigger_type &&
228
+ url == o.url
187
229
  end
188
230
 
189
231
  # @see the `==` method
@@ -195,7 +237,7 @@ module Svix
195
237
  # Calculates hash code according to all attributes.
196
238
  # @return [Integer] Hash code
197
239
  def hash
198
- [endpoint_id, id, msg_id, response, response_status_code, status, timestamp, trigger_type].hash
240
+ [endpoint_id, id, msg_id, response, response_status_code, status, timestamp, trigger_type, url].hash
199
241
  end
200
242
 
201
243
  # Builds the object from hash
@@ -31,6 +31,8 @@ module Svix
31
31
 
32
32
  attr_accessor :trigger_type
33
33
 
34
+ attr_accessor :url
35
+
34
36
  # Attribute mapping from ruby-style variable name to JSON key.
35
37
  def self.attribute_map
36
38
  {
@@ -41,7 +43,8 @@ module Svix
41
43
  :'response_status_code' => :'responseStatusCode',
42
44
  :'status' => :'status',
43
45
  :'timestamp' => :'timestamp',
44
- :'trigger_type' => :'triggerType'
46
+ :'trigger_type' => :'triggerType',
47
+ :'url' => :'url'
45
48
  }
46
49
  end
47
50
 
@@ -60,7 +63,8 @@ module Svix
60
63
  :'response_status_code' => :'Integer',
61
64
  :'status' => :'MessageStatus',
62
65
  :'timestamp' => :'Time',
63
- :'trigger_type' => :'MessageAttemptTriggerType'
66
+ :'trigger_type' => :'MessageAttemptTriggerType',
67
+ :'url' => :'String'
64
68
  }
65
69
  end
66
70
 
@@ -116,6 +120,10 @@ module Svix
116
120
  if attributes.key?(:'trigger_type')
117
121
  self.trigger_type = attributes[:'trigger_type']
118
122
  end
123
+
124
+ if attributes.key?(:'url')
125
+ self.url = attributes[:'url']
126
+ end
119
127
  end
120
128
 
121
129
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -154,6 +162,18 @@ module Svix
154
162
  invalid_properties.push('invalid value for "trigger_type", trigger_type cannot be nil.')
155
163
  end
156
164
 
165
+ if @url.nil?
166
+ invalid_properties.push('invalid value for "url", url cannot be nil.')
167
+ end
168
+
169
+ if @url.to_s.length > 65536
170
+ invalid_properties.push('invalid value for "url", the character length must be smaller than or equal to 65536.')
171
+ end
172
+
173
+ if @url.to_s.length < 1
174
+ invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
175
+ end
176
+
157
177
  invalid_properties
158
178
  end
159
179
 
@@ -168,9 +188,30 @@ module Svix
168
188
  return false if @status.nil?
169
189
  return false if @timestamp.nil?
170
190
  return false if @trigger_type.nil?
191
+ return false if @url.nil?
192
+ return false if @url.to_s.length > 65536
193
+ return false if @url.to_s.length < 1
171
194
  true
172
195
  end
173
196
 
197
+ # Custom attribute writer method with validation
198
+ # @param [Object] url Value to be assigned
199
+ def url=(url)
200
+ if url.nil?
201
+ fail ArgumentError, 'url cannot be nil'
202
+ end
203
+
204
+ if url.to_s.length > 65536
205
+ fail ArgumentError, 'invalid value for "url", the character length must be smaller than or equal to 65536.'
206
+ end
207
+
208
+ if url.to_s.length < 1
209
+ fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
210
+ end
211
+
212
+ @url = url
213
+ end
214
+
174
215
  # Checks equality by comparing each attribute.
175
216
  # @param [Object] Object to be compared
176
217
  def ==(o)
@@ -183,7 +224,8 @@ module Svix
183
224
  response_status_code == o.response_status_code &&
184
225
  status == o.status &&
185
226
  timestamp == o.timestamp &&
186
- trigger_type == o.trigger_type
227
+ trigger_type == o.trigger_type &&
228
+ url == o.url
187
229
  end
188
230
 
189
231
  # @see the `==` method
@@ -195,7 +237,7 @@ module Svix
195
237
  # Calculates hash code according to all attributes.
196
238
  # @return [Integer] Hash code
197
239
  def hash
198
- [endpoint_id, id, msg_id, response, response_status_code, status, timestamp, trigger_type].hash
240
+ [endpoint_id, id, msg_id, response, response_status_code, status, timestamp, trigger_type, url].hash
199
241
  end
200
242
 
201
243
  # 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 = "0.74.1"
4
+ VERSION = "0.76.0"
5
5
  end
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.74.1
4
+ version: 0.76.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-01-03 00:00:00.000000000 Z
11
+ date: 2023-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -107,6 +107,8 @@ files:
107
107
  - lib/svix/internal.rb
108
108
  - lib/svix/message_api.rb
109
109
  - lib/svix/message_attempt_api.rb
110
+ - lib/svix/models/app_portal_access_in.rb
111
+ - lib/svix/models/app_portal_access_out.rb
110
112
  - lib/svix/models/application_in.rb
111
113
  - lib/svix/models/application_out.rb
112
114
  - lib/svix/models/application_stats.rb