svix 1.56.0 → 1.58.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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/svix/api/application_api.rb +115 -10
- data/lib/svix/api/authentication_api.rb +101 -16
- data/lib/svix/api/background_tasks_api.rb +43 -17
- data/lib/svix/api/endpoint_api.rb +312 -96
- data/lib/svix/api/inbound_api.rb +4 -4
- data/lib/svix/api/integration_api.rb +102 -24
- data/lib/svix/api/message_api.rb +142 -39
- data/lib/svix/api/message_attempt_api.rb +135 -372
- data/lib/svix/api/statistics_api.rb +6 -6
- data/lib/svix/api/stream_api.rb +203 -142
- data/lib/svix/api/transformation_template_api.rb +88 -23
- data/lib/svix/api/webhook_endpoint_api.rb +253 -77
- data/lib/svix/background_tasks_api.rb +2 -2
- data/lib/svix/message_attempt_api.rb +7 -3
- data/lib/svix/models/active_application_out.rb +373 -0
- data/lib/svix/models/active_endpoint_out.rb +355 -0
- data/lib/svix/models/aggregate_event_types_out.rb +40 -0
- data/lib/svix/models/aggregated_event_types.rb +305 -0
- data/lib/svix/models/app_portal_access_in.rb +18 -0
- data/lib/svix/models/app_usage_stats_out.rb +40 -0
- data/lib/svix/models/application_message_failure.rb +277 -0
- data/lib/svix/models/application_message_id_pair.rb +317 -0
- data/lib/svix/models/application_out.rb +41 -2
- data/lib/svix/models/application_patch.rb +1 -1
- data/lib/svix/models/application_stats.rb +41 -2
- data/lib/svix/models/application_stats_out.rb +324 -0
- data/lib/svix/models/auth_token_out.rb +40 -1
- data/lib/svix/models/background_task_finished_event.rb +272 -0
- data/lib/svix/models/background_task_finished_event2.rb +331 -0
- data/lib/svix/models/background_task_out.rb +40 -0
- data/lib/svix/models/background_task_type.rb +2 -1
- data/lib/svix/models/{template_in.rb → connector_in.rb} +4 -4
- data/lib/svix/models/{transformation_template_kind.rb → connector_kind.rb} +3 -3
- data/lib/svix/models/create_stream_in.rb +12 -12
- data/lib/svix/models/data.rb +108 -0
- data/lib/svix/models/data_any_of.rb +240 -0
- data/lib/svix/models/data_any_of1.rb +223 -0
- data/lib/svix/models/data_any_of2.rb +241 -0
- data/lib/svix/models/data_any_of3.rb +223 -0
- data/lib/svix/models/data_any_of4.rb +240 -0
- data/lib/svix/models/endpoint_created_event_data.rb +82 -4
- data/lib/svix/models/endpoint_deleted_event_data.rb +82 -4
- data/lib/svix/models/endpoint_disabled_event.rb +1 -1
- data/lib/svix/models/endpoint_disabled_event_data.rb +119 -16
- data/lib/svix/models/endpoint_disabled_trigger.rb +40 -0
- data/lib/svix/models/endpoint_enabled_event.rb +272 -0
- data/lib/svix/models/endpoint_enabled_event_data.rb +410 -0
- data/lib/svix/models/endpoint_message_out.rb +40 -1
- data/lib/svix/models/endpoint_mtls_config_out.rb +215 -0
- data/lib/svix/models/endpoint_oauth_config_in.rb +2 -2
- data/lib/svix/models/endpoint_oauth_config_out.rb +315 -0
- data/lib/svix/models/endpoint_out.rb +40 -1
- data/lib/svix/models/endpoint_patch.rb +1 -1
- data/lib/svix/models/endpoint_updated_event_data.rb +82 -4
- data/lib/svix/models/environment_in.rb +17 -19
- data/lib/svix/models/environment_settings_out.rb +23 -1
- data/lib/svix/models/event_type_import_open_api_in.rb +14 -2
- data/lib/svix/models/export_event_type_out.rb +40 -0
- data/lib/svix/models/expung_all_contents_out.rb +315 -0
- data/lib/svix/models/inbound_path_params.rb +1 -1
- data/lib/svix/models/integration_in.rb +41 -1
- data/lib/svix/models/integration_out.rb +81 -2
- data/lib/svix/models/integration_update.rb +41 -1
- data/lib/svix/models/list_response_active_application_out.rb +261 -0
- data/lib/svix/models/message_attempt_endpoint_out.rb +120 -3
- data/lib/svix/models/message_attempt_exhausted_event_data.rb +122 -5
- data/lib/svix/models/message_attempt_failed_data.rb +40 -1
- data/lib/svix/models/message_attempt_failing_event_data.rb +122 -5
- data/lib/svix/models/message_attempt_out.rb +120 -3
- data/lib/svix/models/message_attempt_recovered_event_data.rb +122 -5
- data/lib/svix/models/message_broadcast_out.rb +40 -0
- data/lib/svix/models/message_endpoint_out.rb +40 -1
- data/lib/svix/models/message_out.rb +40 -1
- data/lib/svix/models/message_precheck_in.rb +288 -0
- data/lib/svix/models/message_precheck_out.rb +221 -0
- data/lib/svix/models/{oauth2_auth_method_in.rb → oauth2_auth_method_in_out.rb} +3 -3
- data/lib/svix/models/{oauth2_grant_type_in.rb → oauth2_grant_type_in_out.rb} +3 -3
- data/lib/svix/models/operational_webhook_endpoint_headers_in.rb +223 -0
- data/lib/svix/models/operational_webhook_endpoint_headers_out.rb +251 -0
- data/lib/svix/models/operational_webhook_endpoint_out.rb +40 -1
- data/lib/svix/models/polling_endpoint_message_out.rb +454 -0
- data/lib/svix/models/polling_endpoint_out.rb +255 -0
- data/lib/svix/models/recover_out.rb +40 -0
- data/lib/svix/models/replay_out.rb +40 -0
- data/lib/svix/models/rotate_poller_token_in.rb +1 -1
- data/lib/svix/models/sink_secret_out.rb +233 -0
- data/lib/svix/models/stream_in.rb +6 -7
- data/lib/svix/models/stream_out.rb +46 -7
- data/lib/svix/models/stream_patch.rb +6 -7
- data/lib/svix/models/stream_portal_access_in.rb +293 -0
- data/lib/svix/models/template_out.rb +81 -1
- data/lib/svix/models/template_patch.rb +1 -1
- data/lib/svix/models/template_update.rb +1 -1
- data/lib/svix/version.rb +1 -1
- metadata +35 -7
- data/lib/svix/operational_webhook_endpoint_api.rb +0 -37
@@ -0,0 +1,293 @@
|
|
1
|
+
=begin
|
2
|
+
#Svix API
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.1.1
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.9.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module Svix
|
17
|
+
class StreamPortalAccessIn
|
18
|
+
# How long the token will be valid for, in seconds. Valid values are between 1 hour and 7 days. The default is 7 days.
|
19
|
+
attr_accessor :expiry
|
20
|
+
|
21
|
+
# The set of feature flags the created token will have access to.
|
22
|
+
attr_accessor :feature_flags
|
23
|
+
|
24
|
+
# Whether the app portal should be in read-only mode.
|
25
|
+
attr_accessor :read_only
|
26
|
+
|
27
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
28
|
+
def self.attribute_map
|
29
|
+
{
|
30
|
+
:'expiry' => :'expiry',
|
31
|
+
:'feature_flags' => :'featureFlags',
|
32
|
+
:'read_only' => :'readOnly'
|
33
|
+
}
|
34
|
+
end
|
35
|
+
|
36
|
+
# Returns all the JSON keys this model knows about
|
37
|
+
def self.acceptable_attributes
|
38
|
+
attribute_map.values
|
39
|
+
end
|
40
|
+
|
41
|
+
# Attribute type mapping.
|
42
|
+
def self.openapi_types
|
43
|
+
{
|
44
|
+
:'expiry' => :'Integer',
|
45
|
+
:'feature_flags' => :'Array<String>',
|
46
|
+
:'read_only' => :'Boolean'
|
47
|
+
}
|
48
|
+
end
|
49
|
+
|
50
|
+
# List of attributes with nullable: true
|
51
|
+
def self.openapi_nullable
|
52
|
+
Set.new([
|
53
|
+
:'expiry',
|
54
|
+
:'read_only'
|
55
|
+
])
|
56
|
+
end
|
57
|
+
|
58
|
+
# Initializes the object
|
59
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
60
|
+
def initialize(attributes = {})
|
61
|
+
if (!attributes.is_a?(Hash))
|
62
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Svix::StreamPortalAccessIn` initialize method"
|
63
|
+
end
|
64
|
+
|
65
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
66
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
67
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
68
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Svix::StreamPortalAccessIn`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
69
|
+
end
|
70
|
+
h[k.to_sym] = v
|
71
|
+
}
|
72
|
+
|
73
|
+
if attributes.key?(:'expiry')
|
74
|
+
self.expiry = attributes[:'expiry']
|
75
|
+
else
|
76
|
+
self.expiry = 604800
|
77
|
+
end
|
78
|
+
|
79
|
+
if attributes.key?(:'feature_flags')
|
80
|
+
if (value = attributes[:'feature_flags']).is_a?(Array)
|
81
|
+
self.feature_flags = value
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
if attributes.key?(:'read_only')
|
86
|
+
self.read_only = attributes[:'read_only']
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
91
|
+
# @return Array for valid properties with the reasons
|
92
|
+
def list_invalid_properties
|
93
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
94
|
+
invalid_properties = Array.new
|
95
|
+
if !@expiry.nil? && @expiry > 604800
|
96
|
+
invalid_properties.push('invalid value for "expiry", must be smaller than or equal to 604800.')
|
97
|
+
end
|
98
|
+
|
99
|
+
if !@expiry.nil? && @expiry < 3600
|
100
|
+
invalid_properties.push('invalid value for "expiry", must be greater than or equal to 3600.')
|
101
|
+
end
|
102
|
+
|
103
|
+
if !@feature_flags.nil? && @feature_flags.length > 25
|
104
|
+
invalid_properties.push('invalid value for "feature_flags", number of items must be less than or equal to 25.')
|
105
|
+
end
|
106
|
+
|
107
|
+
if !@feature_flags.nil? && @feature_flags.length < 1
|
108
|
+
invalid_properties.push('invalid value for "feature_flags", number of items must be greater than or equal to 1.')
|
109
|
+
end
|
110
|
+
|
111
|
+
invalid_properties
|
112
|
+
end
|
113
|
+
|
114
|
+
# Check to see if the all the properties in the model are valid
|
115
|
+
# @return true if the model is valid
|
116
|
+
def valid?
|
117
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
118
|
+
return false if !@expiry.nil? && @expiry > 604800
|
119
|
+
return false if !@expiry.nil? && @expiry < 3600
|
120
|
+
return false if !@feature_flags.nil? && @feature_flags.length > 25
|
121
|
+
return false if !@feature_flags.nil? && @feature_flags.length < 1
|
122
|
+
true
|
123
|
+
end
|
124
|
+
|
125
|
+
# Custom attribute writer method with validation
|
126
|
+
# @param [Object] expiry Value to be assigned
|
127
|
+
def expiry=(expiry)
|
128
|
+
if !expiry.nil? && expiry > 604800
|
129
|
+
fail ArgumentError, 'invalid value for "expiry", must be smaller than or equal to 604800.'
|
130
|
+
end
|
131
|
+
|
132
|
+
if !expiry.nil? && expiry < 3600
|
133
|
+
fail ArgumentError, 'invalid value for "expiry", must be greater than or equal to 3600.'
|
134
|
+
end
|
135
|
+
|
136
|
+
@expiry = expiry
|
137
|
+
end
|
138
|
+
|
139
|
+
# Custom attribute writer method with validation
|
140
|
+
# @param [Object] feature_flags Value to be assigned
|
141
|
+
def feature_flags=(feature_flags)
|
142
|
+
if feature_flags.nil?
|
143
|
+
fail ArgumentError, 'feature_flags cannot be nil'
|
144
|
+
end
|
145
|
+
|
146
|
+
if feature_flags.length > 25
|
147
|
+
fail ArgumentError, 'invalid value for "feature_flags", number of items must be less than or equal to 25.'
|
148
|
+
end
|
149
|
+
|
150
|
+
if feature_flags.length < 1
|
151
|
+
fail ArgumentError, 'invalid value for "feature_flags", number of items must be greater than or equal to 1.'
|
152
|
+
end
|
153
|
+
|
154
|
+
@feature_flags = feature_flags
|
155
|
+
end
|
156
|
+
|
157
|
+
# Checks equality by comparing each attribute.
|
158
|
+
# @param [Object] Object to be compared
|
159
|
+
def ==(o)
|
160
|
+
return true if self.equal?(o)
|
161
|
+
self.class == o.class &&
|
162
|
+
expiry == o.expiry &&
|
163
|
+
feature_flags == o.feature_flags &&
|
164
|
+
read_only == o.read_only
|
165
|
+
end
|
166
|
+
|
167
|
+
# @see the `==` method
|
168
|
+
# @param [Object] Object to be compared
|
169
|
+
def eql?(o)
|
170
|
+
self == o
|
171
|
+
end
|
172
|
+
|
173
|
+
# Calculates hash code according to all attributes.
|
174
|
+
# @return [Integer] Hash code
|
175
|
+
def hash
|
176
|
+
[expiry, feature_flags, read_only].hash
|
177
|
+
end
|
178
|
+
|
179
|
+
# Builds the object from hash
|
180
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
181
|
+
# @return [Object] Returns the model itself
|
182
|
+
def self.build_from_hash(attributes)
|
183
|
+
return nil unless attributes.is_a?(Hash)
|
184
|
+
attributes = attributes.transform_keys(&:to_sym)
|
185
|
+
transformed_hash = {}
|
186
|
+
openapi_types.each_pair do |key, type|
|
187
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
188
|
+
transformed_hash["#{key}"] = nil
|
189
|
+
elsif type =~ /\AArray<(.*)>/i
|
190
|
+
# check to ensure the input is an array given that the attribute
|
191
|
+
# is documented as an array but the input is not
|
192
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
193
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
194
|
+
end
|
195
|
+
elsif !attributes[attribute_map[key]].nil?
|
196
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
197
|
+
end
|
198
|
+
end
|
199
|
+
new(transformed_hash)
|
200
|
+
end
|
201
|
+
|
202
|
+
# Deserializes the data based on type
|
203
|
+
# @param string type Data type
|
204
|
+
# @param string value Value to be deserialized
|
205
|
+
# @return [Object] Deserialized data
|
206
|
+
def self._deserialize(type, value)
|
207
|
+
case type.to_sym
|
208
|
+
when :Time
|
209
|
+
Time.parse(value)
|
210
|
+
when :Date
|
211
|
+
Date.parse(value)
|
212
|
+
when :String
|
213
|
+
value.to_s
|
214
|
+
when :Integer
|
215
|
+
value.to_i
|
216
|
+
when :Float
|
217
|
+
value.to_f
|
218
|
+
when :Boolean
|
219
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
220
|
+
true
|
221
|
+
else
|
222
|
+
false
|
223
|
+
end
|
224
|
+
when :Object
|
225
|
+
# generic object (usually a Hash), return directly
|
226
|
+
value
|
227
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
228
|
+
inner_type = Regexp.last_match[:inner_type]
|
229
|
+
value.map { |v| _deserialize(inner_type, v) }
|
230
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
231
|
+
k_type = Regexp.last_match[:k_type]
|
232
|
+
v_type = Regexp.last_match[:v_type]
|
233
|
+
{}.tap do |hash|
|
234
|
+
value.each do |k, v|
|
235
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
236
|
+
end
|
237
|
+
end
|
238
|
+
else # model
|
239
|
+
# models (e.g. Pet) or oneOf
|
240
|
+
klass = Svix.const_get(type)
|
241
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
242
|
+
end
|
243
|
+
end
|
244
|
+
|
245
|
+
# Returns the string representation of the object
|
246
|
+
# @return [String] String presentation of the object
|
247
|
+
def to_s
|
248
|
+
to_hash.to_s
|
249
|
+
end
|
250
|
+
|
251
|
+
# to_body is an alias to to_hash (backward compatibility)
|
252
|
+
# @return [Hash] Returns the object in the form of hash
|
253
|
+
def to_body
|
254
|
+
to_hash
|
255
|
+
end
|
256
|
+
|
257
|
+
# Returns the object in the form of hash
|
258
|
+
# @return [Hash] Returns the object in the form of hash
|
259
|
+
def to_hash
|
260
|
+
hash = {}
|
261
|
+
self.class.attribute_map.each_pair do |attr, param|
|
262
|
+
value = self.send(attr)
|
263
|
+
if value.nil?
|
264
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
265
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
266
|
+
end
|
267
|
+
|
268
|
+
hash[param] = _to_hash(value)
|
269
|
+
end
|
270
|
+
hash
|
271
|
+
end
|
272
|
+
|
273
|
+
# Outputs non-array value in the form of hash
|
274
|
+
# For object, use to_hash. Otherwise, just return the value
|
275
|
+
# @param [Object] value Any valid value
|
276
|
+
# @return [Hash] Returns the value in the form of hash
|
277
|
+
def _to_hash(value)
|
278
|
+
if value.is_a?(Array)
|
279
|
+
value.compact.map { |v| _to_hash(v) }
|
280
|
+
elsif value.is_a?(Hash)
|
281
|
+
{}.tap do |hash|
|
282
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
283
|
+
end
|
284
|
+
elsif value.respond_to? :to_hash
|
285
|
+
value.to_hash
|
286
|
+
else
|
287
|
+
value
|
288
|
+
end
|
289
|
+
end
|
290
|
+
|
291
|
+
end
|
292
|
+
|
293
|
+
end
|
@@ -23,6 +23,7 @@ module Svix
|
|
23
23
|
|
24
24
|
attr_accessor :filter_types
|
25
25
|
|
26
|
+
# The TransformationTemplate's ID.
|
26
27
|
attr_accessor :id
|
27
28
|
|
28
29
|
attr_accessor :instructions
|
@@ -35,6 +36,7 @@ module Svix
|
|
35
36
|
|
36
37
|
attr_accessor :name
|
37
38
|
|
39
|
+
# The Organization's ID.
|
38
40
|
attr_accessor :org_id
|
39
41
|
|
40
42
|
attr_accessor :transformation
|
@@ -97,7 +99,7 @@ module Svix
|
|
97
99
|
:'id' => :'String',
|
98
100
|
:'instructions' => :'String',
|
99
101
|
:'instructions_link' => :'String',
|
100
|
-
:'kind' => :'
|
102
|
+
:'kind' => :'ConnectorKind',
|
101
103
|
:'logo' => :'String',
|
102
104
|
:'name' => :'String',
|
103
105
|
:'org_id' => :'String',
|
@@ -235,6 +237,19 @@ module Svix
|
|
235
237
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
236
238
|
end
|
237
239
|
|
240
|
+
if @id.to_s.length > 34
|
241
|
+
invalid_properties.push('invalid value for "id", the character length must be smaller than or equal to 34.')
|
242
|
+
end
|
243
|
+
|
244
|
+
if @id.to_s.length < 34
|
245
|
+
invalid_properties.push('invalid value for "id", the character length must be great than or equal to 34.')
|
246
|
+
end
|
247
|
+
|
248
|
+
pattern = Regexp.new(/^trtmpl_[A-Za-z0-9]{27}$/)
|
249
|
+
if @id !~ pattern
|
250
|
+
invalid_properties.push("invalid value for \"id\", must conform to the pattern #{pattern}.")
|
251
|
+
end
|
252
|
+
|
238
253
|
if @instructions.nil?
|
239
254
|
invalid_properties.push('invalid value for "instructions", instructions cannot be nil.')
|
240
255
|
end
|
@@ -255,6 +270,19 @@ module Svix
|
|
255
270
|
invalid_properties.push('invalid value for "org_id", org_id cannot be nil.')
|
256
271
|
end
|
257
272
|
|
273
|
+
if @org_id.to_s.length > 31
|
274
|
+
invalid_properties.push('invalid value for "org_id", the character length must be smaller than or equal to 31.')
|
275
|
+
end
|
276
|
+
|
277
|
+
if @org_id.to_s.length < 31
|
278
|
+
invalid_properties.push('invalid value for "org_id", the character length must be great than or equal to 31.')
|
279
|
+
end
|
280
|
+
|
281
|
+
pattern = Regexp.new(/^org_[A-Za-z0-9]{27}$/)
|
282
|
+
if @org_id !~ pattern
|
283
|
+
invalid_properties.push("invalid value for \"org_id\", must conform to the pattern #{pattern}.")
|
284
|
+
end
|
285
|
+
|
258
286
|
if @transformation.nil?
|
259
287
|
invalid_properties.push('invalid value for "transformation", transformation cannot be nil.')
|
260
288
|
end
|
@@ -276,11 +304,17 @@ module Svix
|
|
276
304
|
return false if !@feature_flag.nil? && @feature_flag !~ Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
277
305
|
return false if !@filter_types.nil? && @filter_types.length < 1
|
278
306
|
return false if @id.nil?
|
307
|
+
return false if @id.to_s.length > 34
|
308
|
+
return false if @id.to_s.length < 34
|
309
|
+
return false if @id !~ Regexp.new(/^trtmpl_[A-Za-z0-9]{27}$/)
|
279
310
|
return false if @instructions.nil?
|
280
311
|
return false if @kind.nil?
|
281
312
|
return false if @logo.nil?
|
282
313
|
return false if @name.nil?
|
283
314
|
return false if @org_id.nil?
|
315
|
+
return false if @org_id.to_s.length > 31
|
316
|
+
return false if @org_id.to_s.length < 31
|
317
|
+
return false if @org_id !~ Regexp.new(/^org_[A-Za-z0-9]{27}$/)
|
284
318
|
return false if @transformation.nil?
|
285
319
|
return false if @updated_at.nil?
|
286
320
|
true
|
@@ -311,6 +345,52 @@ module Svix
|
|
311
345
|
@filter_types = filter_types
|
312
346
|
end
|
313
347
|
|
348
|
+
# Custom attribute writer method with validation
|
349
|
+
# @param [Object] id Value to be assigned
|
350
|
+
def id=(id)
|
351
|
+
if id.nil?
|
352
|
+
fail ArgumentError, 'id cannot be nil'
|
353
|
+
end
|
354
|
+
|
355
|
+
if id.to_s.length > 34
|
356
|
+
fail ArgumentError, 'invalid value for "id", the character length must be smaller than or equal to 34.'
|
357
|
+
end
|
358
|
+
|
359
|
+
if id.to_s.length < 34
|
360
|
+
fail ArgumentError, 'invalid value for "id", the character length must be great than or equal to 34.'
|
361
|
+
end
|
362
|
+
|
363
|
+
pattern = Regexp.new(/^trtmpl_[A-Za-z0-9]{27}$/)
|
364
|
+
if id !~ pattern
|
365
|
+
fail ArgumentError, "invalid value for \"id\", must conform to the pattern #{pattern}."
|
366
|
+
end
|
367
|
+
|
368
|
+
@id = id
|
369
|
+
end
|
370
|
+
|
371
|
+
# Custom attribute writer method with validation
|
372
|
+
# @param [Object] org_id Value to be assigned
|
373
|
+
def org_id=(org_id)
|
374
|
+
if org_id.nil?
|
375
|
+
fail ArgumentError, 'org_id cannot be nil'
|
376
|
+
end
|
377
|
+
|
378
|
+
if org_id.to_s.length > 31
|
379
|
+
fail ArgumentError, 'invalid value for "org_id", the character length must be smaller than or equal to 31.'
|
380
|
+
end
|
381
|
+
|
382
|
+
if org_id.to_s.length < 31
|
383
|
+
fail ArgumentError, 'invalid value for "org_id", the character length must be great than or equal to 31.'
|
384
|
+
end
|
385
|
+
|
386
|
+
pattern = Regexp.new(/^org_[A-Za-z0-9]{27}$/)
|
387
|
+
if org_id !~ pattern
|
388
|
+
fail ArgumentError, "invalid value for \"org_id\", must conform to the pattern #{pattern}."
|
389
|
+
end
|
390
|
+
|
391
|
+
@org_id = org_id
|
392
|
+
end
|
393
|
+
|
314
394
|
# Checks equality by comparing each attribute.
|
315
395
|
# @param [Object] Object to be compared
|
316
396
|
def ==(o)
|
@@ -83,7 +83,7 @@ module Svix
|
|
83
83
|
:'filter_types' => :'Array<String>',
|
84
84
|
:'instructions' => :'String',
|
85
85
|
:'instructions_link' => :'String',
|
86
|
-
:'kind' => :'
|
86
|
+
:'kind' => :'ConnectorKind',
|
87
87
|
:'logo' => :'String',
|
88
88
|
:'name' => :'String',
|
89
89
|
:'transformation' => :'String'
|
@@ -83,7 +83,7 @@ module Svix
|
|
83
83
|
:'filter_types' => :'Array<String>',
|
84
84
|
:'instructions' => :'String',
|
85
85
|
:'instructions_link' => :'String',
|
86
|
-
:'kind' => :'
|
86
|
+
:'kind' => :'ConnectorKind',
|
87
87
|
:'logo' => :'String',
|
88
88
|
:'name' => :'String',
|
89
89
|
:'transformation' => :'String'
|
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: 1.
|
4
|
+
version: 1.58.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Svix
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -102,20 +102,28 @@ files:
|
|
102
102
|
- lib/svix/internal.rb
|
103
103
|
- lib/svix/message_api.rb
|
104
104
|
- lib/svix/message_attempt_api.rb
|
105
|
+
- lib/svix/models/active_application_out.rb
|
106
|
+
- lib/svix/models/active_endpoint_out.rb
|
105
107
|
- lib/svix/models/aggregate_event_types_out.rb
|
108
|
+
- lib/svix/models/aggregated_event_types.rb
|
106
109
|
- lib/svix/models/app_portal_access_in.rb
|
107
110
|
- lib/svix/models/app_portal_access_out.rb
|
108
111
|
- lib/svix/models/app_usage_stats_in.rb
|
109
112
|
- lib/svix/models/app_usage_stats_out.rb
|
110
113
|
- lib/svix/models/application_in.rb
|
114
|
+
- lib/svix/models/application_message_failure.rb
|
115
|
+
- lib/svix/models/application_message_id_pair.rb
|
111
116
|
- lib/svix/models/application_out.rb
|
112
117
|
- lib/svix/models/application_patch.rb
|
113
118
|
- lib/svix/models/application_stats.rb
|
119
|
+
- lib/svix/models/application_stats_out.rb
|
114
120
|
- lib/svix/models/application_token_expire_in.rb
|
115
121
|
- lib/svix/models/attempt_statistics_data.rb
|
116
122
|
- lib/svix/models/attempt_statistics_response.rb
|
117
123
|
- lib/svix/models/auth_token_out.rb
|
118
124
|
- lib/svix/models/azure_blob_storage_config.rb
|
125
|
+
- lib/svix/models/background_task_finished_event.rb
|
126
|
+
- lib/svix/models/background_task_finished_event2.rb
|
119
127
|
- lib/svix/models/background_task_out.rb
|
120
128
|
- lib/svix/models/background_task_status.rb
|
121
129
|
- lib/svix/models/background_task_type.rb
|
@@ -125,6 +133,8 @@ files:
|
|
125
133
|
- lib/svix/models/client_secret_jwt_params_in.rb
|
126
134
|
- lib/svix/models/completion_choice.rb
|
127
135
|
- lib/svix/models/completion_message.rb
|
136
|
+
- lib/svix/models/connector_in.rb
|
137
|
+
- lib/svix/models/connector_kind.rb
|
128
138
|
- lib/svix/models/count_out.rb
|
129
139
|
- lib/svix/models/create_stream_in.rb
|
130
140
|
- lib/svix/models/create_token_in.rb
|
@@ -132,6 +142,12 @@ files:
|
|
132
142
|
- lib/svix/models/custom_strings_override.rb
|
133
143
|
- lib/svix/models/custom_theme_override.rb
|
134
144
|
- lib/svix/models/dashboard_access_out.rb
|
145
|
+
- lib/svix/models/data.rb
|
146
|
+
- lib/svix/models/data_any_of.rb
|
147
|
+
- lib/svix/models/data_any_of1.rb
|
148
|
+
- lib/svix/models/data_any_of2.rb
|
149
|
+
- lib/svix/models/data_any_of3.rb
|
150
|
+
- lib/svix/models/data_any_of4.rb
|
135
151
|
- lib/svix/models/duration.rb
|
136
152
|
- lib/svix/models/endpoint_created_event.rb
|
137
153
|
- lib/svix/models/endpoint_created_event_data.rb
|
@@ -139,13 +155,18 @@ files:
|
|
139
155
|
- lib/svix/models/endpoint_deleted_event_data.rb
|
140
156
|
- lib/svix/models/endpoint_disabled_event.rb
|
141
157
|
- lib/svix/models/endpoint_disabled_event_data.rb
|
158
|
+
- lib/svix/models/endpoint_disabled_trigger.rb
|
159
|
+
- lib/svix/models/endpoint_enabled_event.rb
|
160
|
+
- lib/svix/models/endpoint_enabled_event_data.rb
|
142
161
|
- lib/svix/models/endpoint_headers_in.rb
|
143
162
|
- lib/svix/models/endpoint_headers_out.rb
|
144
163
|
- lib/svix/models/endpoint_headers_patch_in.rb
|
145
164
|
- lib/svix/models/endpoint_in.rb
|
146
165
|
- lib/svix/models/endpoint_message_out.rb
|
147
166
|
- lib/svix/models/endpoint_mtls_config_in.rb
|
167
|
+
- lib/svix/models/endpoint_mtls_config_out.rb
|
148
168
|
- lib/svix/models/endpoint_oauth_config_in.rb
|
169
|
+
- lib/svix/models/endpoint_oauth_config_out.rb
|
149
170
|
- lib/svix/models/endpoint_out.rb
|
150
171
|
- lib/svix/models/endpoint_patch.rb
|
151
172
|
- lib/svix/models/endpoint_secret_out.rb
|
@@ -176,6 +197,7 @@ files:
|
|
176
197
|
- lib/svix/models/event_type_schema_in.rb
|
177
198
|
- lib/svix/models/event_type_update.rb
|
178
199
|
- lib/svix/models/export_event_type_out.rb
|
200
|
+
- lib/svix/models/expung_all_contents_out.rb
|
179
201
|
- lib/svix/models/font_size_config.rb
|
180
202
|
- lib/svix/models/generate_in.rb
|
181
203
|
- lib/svix/models/generate_out.rb
|
@@ -190,6 +212,7 @@ files:
|
|
190
212
|
- lib/svix/models/integration_out.rb
|
191
213
|
- lib/svix/models/integration_update.rb
|
192
214
|
- lib/svix/models/kafka_security_protocol_type.rb
|
215
|
+
- lib/svix/models/list_response_active_application_out.rb
|
193
216
|
- lib/svix/models/list_response_application_out.rb
|
194
217
|
- lib/svix/models/list_response_application_stats.rb
|
195
218
|
- lib/svix/models/list_response_background_task_out.rb
|
@@ -224,22 +247,28 @@ files:
|
|
224
247
|
- lib/svix/models/message_events_out.rb
|
225
248
|
- lib/svix/models/message_in.rb
|
226
249
|
- lib/svix/models/message_out.rb
|
250
|
+
- lib/svix/models/message_precheck_in.rb
|
251
|
+
- lib/svix/models/message_precheck_out.rb
|
227
252
|
- lib/svix/models/message_raw_payload_out.rb
|
228
253
|
- lib/svix/models/message_status.rb
|
229
254
|
- lib/svix/models/message_subscriber_auth_token_out.rb
|
230
255
|
- lib/svix/models/o_auth_payload_in.rb
|
231
256
|
- lib/svix/models/o_auth_payload_out.rb
|
232
|
-
- lib/svix/models/
|
233
|
-
- lib/svix/models/
|
257
|
+
- lib/svix/models/oauth2_auth_method_in_out.rb
|
258
|
+
- lib/svix/models/oauth2_grant_type_in_out.rb
|
234
259
|
- lib/svix/models/oauth_jws_signing_algorithm.rb
|
235
260
|
- lib/svix/models/one_time_token_in.rb
|
236
261
|
- lib/svix/models/one_time_token_out.rb
|
262
|
+
- lib/svix/models/operational_webhook_endpoint_headers_in.rb
|
263
|
+
- lib/svix/models/operational_webhook_endpoint_headers_out.rb
|
237
264
|
- lib/svix/models/operational_webhook_endpoint_in.rb
|
238
265
|
- lib/svix/models/operational_webhook_endpoint_out.rb
|
239
266
|
- lib/svix/models/operational_webhook_endpoint_secret_in.rb
|
240
267
|
- lib/svix/models/operational_webhook_endpoint_secret_out.rb
|
241
268
|
- lib/svix/models/operational_webhook_endpoint_update.rb
|
242
269
|
- lib/svix/models/ordering.rb
|
270
|
+
- lib/svix/models/polling_endpoint_message_out.rb
|
271
|
+
- lib/svix/models/polling_endpoint_out.rb
|
243
272
|
- lib/svix/models/recover_in.rb
|
244
273
|
- lib/svix/models/recover_out.rb
|
245
274
|
- lib/svix/models/redshift_config.rb
|
@@ -259,6 +288,7 @@ files:
|
|
259
288
|
- lib/svix/models/sink_otel_v1_config.rb
|
260
289
|
- lib/svix/models/sink_out.rb
|
261
290
|
- lib/svix/models/sink_payload_format.rb
|
291
|
+
- lib/svix/models/sink_secret_out.rb
|
262
292
|
- lib/svix/models/sink_status.rb
|
263
293
|
- lib/svix/models/sink_status_in.rb
|
264
294
|
- lib/svix/models/sink_transform_in.rb
|
@@ -272,6 +302,7 @@ files:
|
|
272
302
|
- lib/svix/models/stream_in.rb
|
273
303
|
- lib/svix/models/stream_out.rb
|
274
304
|
- lib/svix/models/stream_patch.rb
|
305
|
+
- lib/svix/models/stream_portal_access_in.rb
|
275
306
|
- lib/svix/models/stream_sink_in.rb
|
276
307
|
- lib/svix/models/stream_sink_in_one_of.rb
|
277
308
|
- lib/svix/models/stream_sink_in_one_of1.rb
|
@@ -283,16 +314,13 @@ files:
|
|
283
314
|
- lib/svix/models/stream_sink_in_one_of7.rb
|
284
315
|
- lib/svix/models/stream_sink_out.rb
|
285
316
|
- lib/svix/models/stream_sink_patch.rb
|
286
|
-
- lib/svix/models/template_in.rb
|
287
317
|
- lib/svix/models/template_out.rb
|
288
318
|
- lib/svix/models/template_patch.rb
|
289
319
|
- lib/svix/models/template_update.rb
|
290
320
|
- lib/svix/models/transformation_http_method.rb
|
291
321
|
- lib/svix/models/transformation_simulate_in.rb
|
292
322
|
- lib/svix/models/transformation_simulate_out.rb
|
293
|
-
- lib/svix/models/transformation_template_kind.rb
|
294
323
|
- lib/svix/models/validation_error.rb
|
295
|
-
- lib/svix/operational_webhook_endpoint_api.rb
|
296
324
|
- lib/svix/statistics_api.rb
|
297
325
|
- lib/svix/svix.rb
|
298
326
|
- lib/svix/util.rb
|
@@ -1,37 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Svix
|
4
|
-
class OperationalWebhookEndpointAPI
|
5
|
-
def initialize(api_client)
|
6
|
-
@api = OperationalWebhookEndpointApi.new(api_client)
|
7
|
-
end
|
8
|
-
|
9
|
-
def list(options = {})
|
10
|
-
return @api.v1_endpoint_list(options)
|
11
|
-
end
|
12
|
-
|
13
|
-
def create(endpoint_in, options = {})
|
14
|
-
return @api.v1_endpoint_create(endpoint_in, options)
|
15
|
-
end
|
16
|
-
|
17
|
-
def get(endpoint_id)
|
18
|
-
return @api.v1_endpoint_get(endpoint_id)
|
19
|
-
end
|
20
|
-
|
21
|
-
def update(endpoint_id, endpoint_update)
|
22
|
-
return @api.v1_endpoint_update(endpoint_id, endpoint_update)
|
23
|
-
end
|
24
|
-
|
25
|
-
def delete(endpoint_id)
|
26
|
-
return @api.v1_endpoint_delete(endpoint_id)
|
27
|
-
end
|
28
|
-
|
29
|
-
def get_secret(endpoint_id)
|
30
|
-
return @api.v1_endpoint_get_secret(endpoint_id)
|
31
|
-
end
|
32
|
-
|
33
|
-
def rotate_secret(endpoint_id, endpoint_secret_rotate_in, options = {})
|
34
|
-
return @api.v1_endpoint_rotate_secret(endpoint_id, endpoint_secret_rotate_in, options)
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|