svix 0.83.1 → 0.84.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/api/application_api.rb +247 -181
- data/lib/svix/api/authentication_api.rb +82 -150
- data/lib/svix/api/background_tasks_api.rb +161 -0
- data/lib/svix/api/endpoint_api.rb +561 -485
- data/lib/svix/api/environment_api.rb +16 -16
- data/lib/svix/api/environment_settings_api.rb +7 -10
- data/lib/svix/api/event_type_api.rb +152 -81
- data/lib/svix/api/health_api.rb +6 -9
- data/lib/svix/api/integration_api.rb +123 -134
- data/lib/svix/api/message_api.rb +96 -102
- data/lib/svix/api/message_attempt_api.rb +382 -406
- data/lib/svix/api/statistics_api.rb +107 -45
- data/lib/svix/api_client.rb +0 -1
- data/lib/svix/application_api.rb +22 -22
- data/lib/svix/authentication_api.rb +3 -3
- data/lib/svix/configuration.rb +0 -7
- data/lib/svix/endpoint_api.rb +16 -16
- data/lib/svix/event_type_api.rb +19 -19
- data/lib/svix/integration_api.rb +26 -26
- data/lib/svix/message_api.rb +4 -4
- data/lib/svix/message_attempt_api.rb +8 -8
- data/lib/svix/models/app_portal_access_in.rb +1 -0
- data/lib/svix/models/application_in.rb +34 -1
- data/lib/svix/models/application_out.rb +20 -2
- data/lib/svix/models/application_patch.rb +299 -0
- data/lib/svix/models/application_stats.rb +0 -1
- data/lib/svix/models/{webhook_types.rb → background_task_out.rb} +40 -69
- data/lib/svix/models/background_task_out_common.rb +251 -0
- data/lib/svix/models/background_task_status.rb +38 -0
- data/lib/svix/models/background_task_type.rb +38 -0
- data/lib/svix/models/calculate_app_stats_in.rb +255 -0
- data/lib/svix/models/endpoint_created_event.rb +5 -0
- data/lib/svix/models/endpoint_created_event_data.rb +0 -2
- data/lib/svix/models/endpoint_deleted_event.rb +5 -0
- data/lib/svix/models/endpoint_deleted_event_data.rb +0 -2
- data/lib/svix/models/endpoint_disabled_event.rb +5 -0
- data/lib/svix/models/endpoint_disabled_event_data.rb +1 -2
- data/lib/svix/models/endpoint_in.rb +19 -10
- data/lib/svix/models/endpoint_message_out.rb +1 -0
- data/lib/svix/models/endpoint_out.rb +33 -15
- data/lib/svix/models/endpoint_patch.rb +405 -0
- data/lib/svix/models/endpoint_secret_rotate_in.rb +2 -0
- data/lib/svix/models/endpoint_transformation_in.rb +0 -2
- data/lib/svix/models/endpoint_transformation_simulate_in.rb +6 -0
- data/lib/svix/models/endpoint_update.rb +19 -10
- data/lib/svix/models/endpoint_updated_event.rb +5 -0
- data/lib/svix/models/endpoint_updated_event_data.rb +0 -2
- data/lib/svix/models/event_type_example_out.rb +4 -2
- data/lib/svix/models/event_type_patch.rb +275 -0
- data/lib/svix/models/event_type_schema_in.rb +0 -1
- data/lib/svix/models/http_validation_error.rb +5 -0
- data/lib/svix/models/list_response_application_stats.rb +15 -5
- data/lib/svix/models/list_response_background_task_out.rb +259 -0
- data/lib/svix/models/list_response_integration_out.rb +15 -5
- data/lib/svix/models/list_response_message_endpoint_out.rb +15 -5
- data/lib/svix/models/message_attempt_exhausted_event.rb +5 -0
- data/lib/svix/models/message_attempt_exhausted_event_data.rb +1 -2
- data/lib/svix/models/message_attempt_failing_event.rb +5 -0
- data/lib/svix/models/message_attempt_failing_event_data.rb +1 -2
- data/lib/svix/models/message_attempt_headers_out.rb +27 -1
- data/lib/svix/models/message_endpoint_out.rb +45 -29
- data/lib/svix/models/message_in.rb +0 -1
- data/lib/svix/models/{one_time_token_out.rb → recover_out.rb} +41 -13
- data/lib/svix/models/{one_time_token_in.rb → replay_out.rb} +41 -13
- data/lib/svix/models/transformation_http_method.rb +1 -1
- data/lib/svix/models/validation_error.rb +4 -0
- data/lib/svix/version.rb +1 -1
- metadata +14 -5
@@ -20,6 +20,7 @@ module Svix
|
|
20
20
|
|
21
21
|
attr_accessor :created_at
|
22
22
|
|
23
|
+
# An example endpoint name
|
23
24
|
attr_accessor :description
|
24
25
|
|
25
26
|
attr_accessor :disabled
|
@@ -28,8 +29,6 @@ module Svix
|
|
28
29
|
|
29
30
|
attr_accessor :id
|
30
31
|
|
31
|
-
attr_accessor :metadata
|
32
|
-
|
33
32
|
attr_accessor :next_attempt
|
34
33
|
|
35
34
|
attr_accessor :rate_limit
|
@@ -39,6 +38,8 @@ module Svix
|
|
39
38
|
# Optional unique identifier for the endpoint
|
40
39
|
attr_accessor :uid
|
41
40
|
|
41
|
+
attr_accessor :updated_at
|
42
|
+
|
42
43
|
attr_accessor :url
|
43
44
|
|
44
45
|
attr_accessor :version
|
@@ -52,11 +53,11 @@ module Svix
|
|
52
53
|
:'disabled' => :'disabled',
|
53
54
|
:'filter_types' => :'filterTypes',
|
54
55
|
:'id' => :'id',
|
55
|
-
:'metadata' => :'metadata',
|
56
56
|
:'next_attempt' => :'nextAttempt',
|
57
57
|
:'rate_limit' => :'rateLimit',
|
58
58
|
:'status' => :'status',
|
59
59
|
:'uid' => :'uid',
|
60
|
+
:'updated_at' => :'updatedAt',
|
60
61
|
:'url' => :'url',
|
61
62
|
:'version' => :'version'
|
62
63
|
}
|
@@ -76,11 +77,11 @@ module Svix
|
|
76
77
|
:'disabled' => :'Boolean',
|
77
78
|
:'filter_types' => :'Array<String>',
|
78
79
|
:'id' => :'String',
|
79
|
-
:'metadata' => :'Hash<String, String>',
|
80
80
|
:'next_attempt' => :'Time',
|
81
81
|
:'rate_limit' => :'Integer',
|
82
82
|
:'status' => :'MessageStatus',
|
83
83
|
:'uid' => :'String',
|
84
|
+
:'updated_at' => :'Time',
|
84
85
|
:'url' => :'String',
|
85
86
|
:'version' => :'Integer'
|
86
87
|
}
|
@@ -91,7 +92,6 @@ module Svix
|
|
91
92
|
Set.new([
|
92
93
|
:'channels',
|
93
94
|
:'filter_types',
|
94
|
-
:'metadata',
|
95
95
|
:'next_attempt',
|
96
96
|
:'rate_limit',
|
97
97
|
:'uid',
|
@@ -125,8 +125,6 @@ module Svix
|
|
125
125
|
|
126
126
|
if attributes.key?(:'description')
|
127
127
|
self.description = attributes[:'description']
|
128
|
-
else
|
129
|
-
self.description = ''
|
130
128
|
end
|
131
129
|
|
132
130
|
if attributes.key?(:'disabled')
|
@@ -145,12 +143,6 @@ module Svix
|
|
145
143
|
self.id = attributes[:'id']
|
146
144
|
end
|
147
145
|
|
148
|
-
if attributes.key?(:'metadata')
|
149
|
-
if (value = attributes[:'metadata']).is_a?(Hash)
|
150
|
-
self.metadata = value
|
151
|
-
end
|
152
|
-
end
|
153
|
-
|
154
146
|
if attributes.key?(:'next_attempt')
|
155
147
|
self.next_attempt = attributes[:'next_attempt']
|
156
148
|
end
|
@@ -167,6 +159,10 @@ module Svix
|
|
167
159
|
self.uid = attributes[:'uid']
|
168
160
|
end
|
169
161
|
|
162
|
+
if attributes.key?(:'updated_at')
|
163
|
+
self.updated_at = attributes[:'updated_at']
|
164
|
+
end
|
165
|
+
|
170
166
|
if attributes.key?(:'url')
|
171
167
|
self.url = attributes[:'url']
|
172
168
|
end
|
@@ -192,6 +188,10 @@ module Svix
|
|
192
188
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
193
189
|
end
|
194
190
|
|
191
|
+
if @description.nil?
|
192
|
+
invalid_properties.push('invalid value for "description", description cannot be nil.')
|
193
|
+
end
|
194
|
+
|
195
195
|
if !@filter_types.nil? && @filter_types.length < 1
|
196
196
|
invalid_properties.push('invalid value for "filter_types", number of items must be greater than or equal to 1.')
|
197
197
|
end
|
@@ -200,12 +200,8 @@ module Svix
|
|
200
200
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
201
201
|
end
|
202
202
|
|
203
|
-
if !@rate_limit.nil? && @rate_limit
|
204
|
-
invalid_properties.push('invalid value for "rate_limit", must be
|
205
|
-
end
|
206
|
-
|
207
|
-
if !@rate_limit.nil? && @rate_limit < 1
|
208
|
-
invalid_properties.push('invalid value for "rate_limit", must be greater than or equal to 1.')
|
203
|
+
if !@rate_limit.nil? && @rate_limit < 0
|
204
|
+
invalid_properties.push('invalid value for "rate_limit", must be greater than or equal to 0.')
|
209
205
|
end
|
210
206
|
|
211
207
|
if @status.nil?
|
@@ -225,6 +221,10 @@ module Svix
|
|
225
221
|
invalid_properties.push("invalid value for \"uid\", must conform to the pattern #{pattern}.")
|
226
222
|
end
|
227
223
|
|
224
|
+
if @updated_at.nil?
|
225
|
+
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
226
|
+
end
|
227
|
+
|
228
228
|
if @url.nil?
|
229
229
|
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
230
230
|
end
|
@@ -241,6 +241,10 @@ module Svix
|
|
241
241
|
invalid_properties.push('invalid value for "version", version cannot be nil.')
|
242
242
|
end
|
243
243
|
|
244
|
+
if @version < 1
|
245
|
+
invalid_properties.push('invalid value for "version", must be greater than or equal to 1.')
|
246
|
+
end
|
247
|
+
|
244
248
|
invalid_properties
|
245
249
|
end
|
246
250
|
|
@@ -250,18 +254,20 @@ module Svix
|
|
250
254
|
return false if !@channels.nil? && @channels.length > 10
|
251
255
|
return false if !@channels.nil? && @channels.length < 1
|
252
256
|
return false if @created_at.nil?
|
257
|
+
return false if @description.nil?
|
253
258
|
return false if !@filter_types.nil? && @filter_types.length < 1
|
254
259
|
return false if @id.nil?
|
255
|
-
return false if !@rate_limit.nil? && @rate_limit
|
256
|
-
return false if !@rate_limit.nil? && @rate_limit < 1
|
260
|
+
return false if !@rate_limit.nil? && @rate_limit < 0
|
257
261
|
return false if @status.nil?
|
258
262
|
return false if !@uid.nil? && @uid.to_s.length > 256
|
259
263
|
return false if !@uid.nil? && @uid.to_s.length < 1
|
260
264
|
return false if !@uid.nil? && @uid !~ Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
265
|
+
return false if @updated_at.nil?
|
261
266
|
return false if @url.nil?
|
262
267
|
return false if @url.to_s.length > 65536
|
263
268
|
return false if @url.to_s.length < 1
|
264
269
|
return false if @version.nil?
|
270
|
+
return false if @version < 1
|
265
271
|
true
|
266
272
|
end
|
267
273
|
|
@@ -292,12 +298,8 @@ module Svix
|
|
292
298
|
# Custom attribute writer method with validation
|
293
299
|
# @param [Object] rate_limit Value to be assigned
|
294
300
|
def rate_limit=(rate_limit)
|
295
|
-
if !rate_limit.nil? && rate_limit
|
296
|
-
fail ArgumentError, 'invalid value for "rate_limit", must be
|
297
|
-
end
|
298
|
-
|
299
|
-
if !rate_limit.nil? && rate_limit < 1
|
300
|
-
fail ArgumentError, 'invalid value for "rate_limit", must be greater than or equal to 1.'
|
301
|
+
if !rate_limit.nil? && rate_limit < 0
|
302
|
+
fail ArgumentError, 'invalid value for "rate_limit", must be greater than or equal to 0.'
|
301
303
|
end
|
302
304
|
|
303
305
|
@rate_limit = rate_limit
|
@@ -340,6 +342,20 @@ module Svix
|
|
340
342
|
@url = url
|
341
343
|
end
|
342
344
|
|
345
|
+
# Custom attribute writer method with validation
|
346
|
+
# @param [Object] version Value to be assigned
|
347
|
+
def version=(version)
|
348
|
+
if version.nil?
|
349
|
+
fail ArgumentError, 'version cannot be nil'
|
350
|
+
end
|
351
|
+
|
352
|
+
if version < 1
|
353
|
+
fail ArgumentError, 'invalid value for "version", must be greater than or equal to 1.'
|
354
|
+
end
|
355
|
+
|
356
|
+
@version = version
|
357
|
+
end
|
358
|
+
|
343
359
|
# Checks equality by comparing each attribute.
|
344
360
|
# @param [Object] Object to be compared
|
345
361
|
def ==(o)
|
@@ -351,11 +367,11 @@ module Svix
|
|
351
367
|
disabled == o.disabled &&
|
352
368
|
filter_types == o.filter_types &&
|
353
369
|
id == o.id &&
|
354
|
-
metadata == o.metadata &&
|
355
370
|
next_attempt == o.next_attempt &&
|
356
371
|
rate_limit == o.rate_limit &&
|
357
372
|
status == o.status &&
|
358
373
|
uid == o.uid &&
|
374
|
+
updated_at == o.updated_at &&
|
359
375
|
url == o.url &&
|
360
376
|
version == o.version
|
361
377
|
end
|
@@ -369,7 +385,7 @@ module Svix
|
|
369
385
|
# Calculates hash code according to all attributes.
|
370
386
|
# @return [Integer] Hash code
|
371
387
|
def hash
|
372
|
-
[channels, created_at, description, disabled, filter_types, id,
|
388
|
+
[channels, created_at, description, disabled, filter_types, id, next_attempt, rate_limit, status, uid, updated_at, url, version].hash
|
373
389
|
end
|
374
390
|
|
375
391
|
# Builds the object from hash
|
@@ -14,13 +14,19 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module Svix
|
17
|
-
class
|
18
|
-
attr_accessor :
|
17
|
+
class RecoverOut
|
18
|
+
attr_accessor :id
|
19
|
+
|
20
|
+
attr_accessor :status
|
21
|
+
|
22
|
+
attr_accessor :task
|
19
23
|
|
20
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
25
|
def self.attribute_map
|
22
26
|
{
|
23
|
-
:'
|
27
|
+
:'id' => :'id',
|
28
|
+
:'status' => :'status',
|
29
|
+
:'task' => :'task'
|
24
30
|
}
|
25
31
|
end
|
26
32
|
|
@@ -32,7 +38,9 @@ module Svix
|
|
32
38
|
# Attribute type mapping.
|
33
39
|
def self.openapi_types
|
34
40
|
{
|
35
|
-
:'
|
41
|
+
:'id' => :'String',
|
42
|
+
:'status' => :'BackgroundTaskStatus',
|
43
|
+
:'task' => :'BackgroundTaskType'
|
36
44
|
}
|
37
45
|
end
|
38
46
|
|
@@ -46,19 +54,27 @@ module Svix
|
|
46
54
|
# @param [Hash] attributes Model attributes in the form of hash
|
47
55
|
def initialize(attributes = {})
|
48
56
|
if (!attributes.is_a?(Hash))
|
49
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Svix::
|
57
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Svix::RecoverOut` initialize method"
|
50
58
|
end
|
51
59
|
|
52
60
|
# check to see if the attribute exists and convert string to symbol for hash key
|
53
61
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
54
62
|
if (!self.class.attribute_map.key?(k.to_sym))
|
55
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Svix::
|
63
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Svix::RecoverOut`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
56
64
|
end
|
57
65
|
h[k.to_sym] = v
|
58
66
|
}
|
59
67
|
|
60
|
-
if attributes.key?(:'
|
61
|
-
self.
|
68
|
+
if attributes.key?(:'id')
|
69
|
+
self.id = attributes[:'id']
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.key?(:'status')
|
73
|
+
self.status = attributes[:'status']
|
74
|
+
end
|
75
|
+
|
76
|
+
if attributes.key?(:'task')
|
77
|
+
self.task = attributes[:'task']
|
62
78
|
end
|
63
79
|
end
|
64
80
|
|
@@ -66,8 +82,16 @@ module Svix
|
|
66
82
|
# @return Array for valid properties with the reasons
|
67
83
|
def list_invalid_properties
|
68
84
|
invalid_properties = Array.new
|
69
|
-
if @
|
70
|
-
invalid_properties.push('invalid value for "
|
85
|
+
if @id.nil?
|
86
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
87
|
+
end
|
88
|
+
|
89
|
+
if @status.nil?
|
90
|
+
invalid_properties.push('invalid value for "status", status cannot be nil.')
|
91
|
+
end
|
92
|
+
|
93
|
+
if @task.nil?
|
94
|
+
invalid_properties.push('invalid value for "task", task cannot be nil.')
|
71
95
|
end
|
72
96
|
|
73
97
|
invalid_properties
|
@@ -76,7 +100,9 @@ module Svix
|
|
76
100
|
# Check to see if the all the properties in the model are valid
|
77
101
|
# @return true if the model is valid
|
78
102
|
def valid?
|
79
|
-
return false if @
|
103
|
+
return false if @id.nil?
|
104
|
+
return false if @status.nil?
|
105
|
+
return false if @task.nil?
|
80
106
|
true
|
81
107
|
end
|
82
108
|
|
@@ -85,7 +111,9 @@ module Svix
|
|
85
111
|
def ==(o)
|
86
112
|
return true if self.equal?(o)
|
87
113
|
self.class == o.class &&
|
88
|
-
|
114
|
+
id == o.id &&
|
115
|
+
status == o.status &&
|
116
|
+
task == o.task
|
89
117
|
end
|
90
118
|
|
91
119
|
# @see the `==` method
|
@@ -97,7 +125,7 @@ module Svix
|
|
97
125
|
# Calculates hash code according to all attributes.
|
98
126
|
# @return [Integer] Hash code
|
99
127
|
def hash
|
100
|
-
[
|
128
|
+
[id, status, task].hash
|
101
129
|
end
|
102
130
|
|
103
131
|
# Builds the object from hash
|
@@ -14,13 +14,19 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module Svix
|
17
|
-
class
|
18
|
-
attr_accessor :
|
17
|
+
class ReplayOut
|
18
|
+
attr_accessor :id
|
19
|
+
|
20
|
+
attr_accessor :status
|
21
|
+
|
22
|
+
attr_accessor :task
|
19
23
|
|
20
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
25
|
def self.attribute_map
|
22
26
|
{
|
23
|
-
:'
|
27
|
+
:'id' => :'id',
|
28
|
+
:'status' => :'status',
|
29
|
+
:'task' => :'task'
|
24
30
|
}
|
25
31
|
end
|
26
32
|
|
@@ -32,7 +38,9 @@ module Svix
|
|
32
38
|
# Attribute type mapping.
|
33
39
|
def self.openapi_types
|
34
40
|
{
|
35
|
-
:'
|
41
|
+
:'id' => :'String',
|
42
|
+
:'status' => :'BackgroundTaskStatus',
|
43
|
+
:'task' => :'BackgroundTaskType'
|
36
44
|
}
|
37
45
|
end
|
38
46
|
|
@@ -46,19 +54,27 @@ module Svix
|
|
46
54
|
# @param [Hash] attributes Model attributes in the form of hash
|
47
55
|
def initialize(attributes = {})
|
48
56
|
if (!attributes.is_a?(Hash))
|
49
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Svix::
|
57
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Svix::ReplayOut` initialize method"
|
50
58
|
end
|
51
59
|
|
52
60
|
# check to see if the attribute exists and convert string to symbol for hash key
|
53
61
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
54
62
|
if (!self.class.attribute_map.key?(k.to_sym))
|
55
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Svix::
|
63
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Svix::ReplayOut`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
56
64
|
end
|
57
65
|
h[k.to_sym] = v
|
58
66
|
}
|
59
67
|
|
60
|
-
if attributes.key?(:'
|
61
|
-
self.
|
68
|
+
if attributes.key?(:'id')
|
69
|
+
self.id = attributes[:'id']
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.key?(:'status')
|
73
|
+
self.status = attributes[:'status']
|
74
|
+
end
|
75
|
+
|
76
|
+
if attributes.key?(:'task')
|
77
|
+
self.task = attributes[:'task']
|
62
78
|
end
|
63
79
|
end
|
64
80
|
|
@@ -66,8 +82,16 @@ module Svix
|
|
66
82
|
# @return Array for valid properties with the reasons
|
67
83
|
def list_invalid_properties
|
68
84
|
invalid_properties = Array.new
|
69
|
-
if @
|
70
|
-
invalid_properties.push('invalid value for "
|
85
|
+
if @id.nil?
|
86
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
87
|
+
end
|
88
|
+
|
89
|
+
if @status.nil?
|
90
|
+
invalid_properties.push('invalid value for "status", status cannot be nil.')
|
91
|
+
end
|
92
|
+
|
93
|
+
if @task.nil?
|
94
|
+
invalid_properties.push('invalid value for "task", task cannot be nil.')
|
71
95
|
end
|
72
96
|
|
73
97
|
invalid_properties
|
@@ -76,7 +100,9 @@ module Svix
|
|
76
100
|
# Check to see if the all the properties in the model are valid
|
77
101
|
# @return true if the model is valid
|
78
102
|
def valid?
|
79
|
-
return false if @
|
103
|
+
return false if @id.nil?
|
104
|
+
return false if @status.nil?
|
105
|
+
return false if @task.nil?
|
80
106
|
true
|
81
107
|
end
|
82
108
|
|
@@ -85,7 +111,9 @@ module Svix
|
|
85
111
|
def ==(o)
|
86
112
|
return true if self.equal?(o)
|
87
113
|
self.class == o.class &&
|
88
|
-
|
114
|
+
id == o.id &&
|
115
|
+
status == o.status &&
|
116
|
+
task == o.task
|
89
117
|
end
|
90
118
|
|
91
119
|
# @see the `==` method
|
@@ -97,7 +125,7 @@ module Svix
|
|
97
125
|
# Calculates hash code according to all attributes.
|
98
126
|
# @return [Integer] Hash code
|
99
127
|
def hash
|
100
|
-
[
|
128
|
+
[id, status, task].hash
|
101
129
|
end
|
102
130
|
|
103
131
|
# Builds the object from hash
|
@@ -14,11 +14,15 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module Svix
|
17
|
+
# Validation errors have their own schema to provide context for invalid requests eg. mismatched types and out of bounds values. There may be any number of these per 422 UNPROCESSABLE ENTITY error.
|
17
18
|
class ValidationError
|
19
|
+
# The location as a [`Vec`] of [`String`]s -- often in the form `[\"body\", \"field_name\"]`, `[\"query\", \"field_name\"]`, etc. They may, however, be arbitarily deep.
|
18
20
|
attr_accessor :loc
|
19
21
|
|
22
|
+
# The message accompanying the validation error item.
|
20
23
|
attr_accessor :msg
|
21
24
|
|
25
|
+
# The type of error, often \"type_error\" or \"value_error\", but sometimes with more context like as \"value_error.number.not_ge\"
|
22
26
|
attr_accessor :type
|
23
27
|
|
24
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
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.84.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-04-
|
11
|
+
date: 2023-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -86,6 +86,7 @@ files:
|
|
86
86
|
- lib/svix.rb
|
87
87
|
- lib/svix/api/application_api.rb
|
88
88
|
- lib/svix/api/authentication_api.rb
|
89
|
+
- lib/svix/api/background_tasks_api.rb
|
89
90
|
- lib/svix/api/endpoint_api.rb
|
90
91
|
- lib/svix/api/environment_api.rb
|
91
92
|
- lib/svix/api/environment_settings_api.rb
|
@@ -111,12 +112,18 @@ files:
|
|
111
112
|
- lib/svix/models/app_portal_access_out.rb
|
112
113
|
- lib/svix/models/application_in.rb
|
113
114
|
- lib/svix/models/application_out.rb
|
115
|
+
- lib/svix/models/application_patch.rb
|
114
116
|
- lib/svix/models/application_stats.rb
|
115
117
|
- lib/svix/models/application_token_expire_in.rb
|
116
118
|
- lib/svix/models/attempt_statistics_data.rb
|
117
119
|
- lib/svix/models/attempt_statistics_response.rb
|
120
|
+
- lib/svix/models/background_task_out.rb
|
121
|
+
- lib/svix/models/background_task_out_common.rb
|
122
|
+
- lib/svix/models/background_task_status.rb
|
123
|
+
- lib/svix/models/background_task_type.rb
|
118
124
|
- lib/svix/models/border_radius_config.rb
|
119
125
|
- lib/svix/models/border_radius_enum.rb
|
126
|
+
- lib/svix/models/calculate_app_stats_in.rb
|
120
127
|
- lib/svix/models/custom_color_palette.rb
|
121
128
|
- lib/svix/models/custom_theme_override.rb
|
122
129
|
- lib/svix/models/dashboard_access_out.rb
|
@@ -132,6 +139,7 @@ files:
|
|
132
139
|
- lib/svix/models/endpoint_in.rb
|
133
140
|
- lib/svix/models/endpoint_message_out.rb
|
134
141
|
- lib/svix/models/endpoint_out.rb
|
142
|
+
- lib/svix/models/endpoint_patch.rb
|
135
143
|
- lib/svix/models/endpoint_secret_out.rb
|
136
144
|
- lib/svix/models/endpoint_secret_rotate_in.rb
|
137
145
|
- lib/svix/models/endpoint_stats.rb
|
@@ -149,6 +157,7 @@ files:
|
|
149
157
|
- lib/svix/models/event_type_example_out.rb
|
150
158
|
- lib/svix/models/event_type_in.rb
|
151
159
|
- lib/svix/models/event_type_out.rb
|
160
|
+
- lib/svix/models/event_type_patch.rb
|
152
161
|
- lib/svix/models/event_type_schema_in.rb
|
153
162
|
- lib/svix/models/event_type_update.rb
|
154
163
|
- lib/svix/models/font_size_config.rb
|
@@ -160,6 +169,7 @@ files:
|
|
160
169
|
- lib/svix/models/integration_update.rb
|
161
170
|
- lib/svix/models/list_response_application_out.rb
|
162
171
|
- lib/svix/models/list_response_application_stats.rb
|
172
|
+
- lib/svix/models/list_response_background_task_out.rb
|
163
173
|
- lib/svix/models/list_response_endpoint_message_out.rb
|
164
174
|
- lib/svix/models/list_response_endpoint_out.rb
|
165
175
|
- lib/svix/models/list_response_event_type_out.rb
|
@@ -181,18 +191,17 @@ files:
|
|
181
191
|
- lib/svix/models/message_in.rb
|
182
192
|
- lib/svix/models/message_out.rb
|
183
193
|
- lib/svix/models/message_status.rb
|
184
|
-
- lib/svix/models/one_time_token_in.rb
|
185
|
-
- lib/svix/models/one_time_token_out.rb
|
186
194
|
- lib/svix/models/ordering.rb
|
187
195
|
- lib/svix/models/recover_in.rb
|
196
|
+
- lib/svix/models/recover_out.rb
|
188
197
|
- lib/svix/models/replay_in.rb
|
198
|
+
- lib/svix/models/replay_out.rb
|
189
199
|
- lib/svix/models/settings_in.rb
|
190
200
|
- lib/svix/models/settings_out.rb
|
191
201
|
- lib/svix/models/statistics_period.rb
|
192
202
|
- lib/svix/models/status_code_class.rb
|
193
203
|
- lib/svix/models/transformation_http_method.rb
|
194
204
|
- lib/svix/models/validation_error.rb
|
195
|
-
- lib/svix/models/webhook_types.rb
|
196
205
|
- lib/svix/svix.rb
|
197
206
|
- lib/svix/util.rb
|
198
207
|
- lib/svix/version.rb
|