svix 1.23.0 → 1.24.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d9a1e975f63d58999f477f489e1e061c71a0087f4a21654539ade169531a0af2
4
- data.tar.gz: dab74fe571f4656d1e2d90fde91fdc238a8cf51058adaceeab78ffb2bbf6f37f
3
+ metadata.gz: 7ccf861a161a61299e676c576187fdf2ecf7a748eba371ced72182b66ab1e5e3
4
+ data.tar.gz: 4164060536e9f5f349e9111aed010bb0d2ffec043a036e32239285fea3b3f5bc
5
5
  SHA512:
6
- metadata.gz: 27ae734208b86525182e502086dc065f446dff33e4ae47709d28a56973bfbc966bdac0bfe7558751f068d2c9ef755ed64b7eac12c564fec6fb538da72fbe46d2
7
- data.tar.gz: 1931001d9a9b84643ea3627a91b415d727f195fe5045e2ec90cf60b908a228d7bcfaaa59412caa8d24507221dafb11c7b0ed91d584313bf514a1443056e73106
6
+ metadata.gz: ecc7d97006a0d3f9446377fc096c43fdca661a1c00a96685d8f62a5afbd67e9a18d2e544b0fcca0c1c669997042527942a01a911a3727813d60c8ee72a2c2350
7
+ data.tar.gz: 603bcebef98e16a838afed4849d0673f8cffee4c7239a51a90032b6e3b0959223c7140be60679cd165bdc51b4201266f4e01d1781e17ddc9f6cea74e8829daa6
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- svix (1.23.0)
4
+ svix (1.24.0)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
@@ -201,6 +201,101 @@ module Svix
201
201
  return data, status_code, headers
202
202
  end
203
203
 
204
+ # Delete Endpoint Mtls Config
205
+ # Delete endpoint mTLS configuration
206
+ # @param app_id [String] The app's ID or UID
207
+ # @param endpoint_id [String] The ep's ID or UID
208
+ # @param [Hash] opts the optional parameters
209
+ # @return [nil]
210
+ def v1_endpoint_delete_mtls_config(app_id, endpoint_id, opts = {})
211
+ v1_endpoint_delete_mtls_config_with_http_info(app_id, endpoint_id, opts)
212
+ nil
213
+ end
214
+
215
+ # Delete Endpoint Mtls Config
216
+ # Delete endpoint mTLS configuration
217
+ # @param app_id [String] The app's ID or UID
218
+ # @param endpoint_id [String] The ep's ID or UID
219
+ # @param [Hash] opts the optional parameters
220
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
221
+ def v1_endpoint_delete_mtls_config_with_http_info(app_id, endpoint_id, opts = {})
222
+ if @api_client.config.debugging
223
+ @api_client.config.logger.debug 'Calling API: EndpointApi.v1_endpoint_delete_mtls_config ...'
224
+ end
225
+ # verify the required parameter 'app_id' is set
226
+ if @api_client.config.client_side_validation && app_id.nil?
227
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.v1_endpoint_delete_mtls_config"
228
+ end
229
+ if @api_client.config.client_side_validation && app_id.to_s.length > 256
230
+ fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_delete_mtls_config, the character length must be smaller than or equal to 256.'
231
+ end
232
+
233
+ if @api_client.config.client_side_validation && app_id.to_s.length < 1
234
+ fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_delete_mtls_config, the character length must be great than or equal to 1.'
235
+ end
236
+
237
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
238
+ if @api_client.config.client_side_validation && app_id !~ pattern
239
+ fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.v1_endpoint_delete_mtls_config, must conform to the pattern #{pattern}."
240
+ end
241
+
242
+ # verify the required parameter 'endpoint_id' is set
243
+ if @api_client.config.client_side_validation && endpoint_id.nil?
244
+ fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.v1_endpoint_delete_mtls_config"
245
+ end
246
+ if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
247
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_delete_mtls_config, the character length must be smaller than or equal to 256.'
248
+ end
249
+
250
+ if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
251
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_delete_mtls_config, the character length must be great than or equal to 1.'
252
+ end
253
+
254
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
255
+ if @api_client.config.client_side_validation && endpoint_id !~ pattern
256
+ fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.v1_endpoint_delete_mtls_config, must conform to the pattern #{pattern}."
257
+ end
258
+
259
+ # resource path
260
+ local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/mtls'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
261
+
262
+ # query parameters
263
+ query_params = opts[:query_params] || {}
264
+
265
+ # header parameters
266
+ header_params = opts[:header_params] || {}
267
+ # HTTP header 'Accept' (if needed)
268
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
269
+
270
+ # form parameters
271
+ form_params = opts[:form_params] || {}
272
+
273
+ # http body (model)
274
+ post_body = opts[:debug_body]
275
+
276
+ # return_type
277
+ return_type = opts[:debug_return_type]
278
+
279
+ # auth_names
280
+ auth_names = opts[:debug_auth_names] || ['HTTPBearer']
281
+
282
+ new_options = opts.merge(
283
+ :operation => :"EndpointApi.v1_endpoint_delete_mtls_config",
284
+ :header_params => header_params,
285
+ :query_params => query_params,
286
+ :form_params => form_params,
287
+ :body => post_body,
288
+ :auth_names => auth_names,
289
+ :return_type => return_type
290
+ )
291
+
292
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
293
+ if @api_client.config.debugging
294
+ @api_client.config.logger.debug "API called: EndpointApi#v1_endpoint_delete_mtls_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
295
+ end
296
+ return data, status_code, headers
297
+ end
298
+
204
299
  # Delete Endpoint Oauth Config
205
300
  # Delete endpoint OAuth configuration
206
301
  # @param app_id [String] The app&#39;s ID or UID
@@ -1915,6 +2010,109 @@ module Svix
1915
2010
  return data, status_code, headers
1916
2011
  end
1917
2012
 
2013
+ # Update Endpoint Mtls Config
2014
+ # Create/update endpoint mTLS configuration
2015
+ # @param app_id [String] The app&#39;s ID or UID
2016
+ # @param endpoint_id [String] The ep&#39;s ID or UID
2017
+ # @param endpoint_mtls_config_in [EndpointMtlsConfigIn]
2018
+ # @param [Hash] opts the optional parameters
2019
+ # @return [nil]
2020
+ def v1_endpoint_update_mtls_config(app_id, endpoint_id, endpoint_mtls_config_in, opts = {})
2021
+ v1_endpoint_update_mtls_config_with_http_info(app_id, endpoint_id, endpoint_mtls_config_in, opts)
2022
+ nil
2023
+ end
2024
+
2025
+ # Update Endpoint Mtls Config
2026
+ # Create/update endpoint mTLS configuration
2027
+ # @param app_id [String] The app&#39;s ID or UID
2028
+ # @param endpoint_id [String] The ep&#39;s ID or UID
2029
+ # @param endpoint_mtls_config_in [EndpointMtlsConfigIn]
2030
+ # @param [Hash] opts the optional parameters
2031
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
2032
+ def v1_endpoint_update_mtls_config_with_http_info(app_id, endpoint_id, endpoint_mtls_config_in, opts = {})
2033
+ if @api_client.config.debugging
2034
+ @api_client.config.logger.debug 'Calling API: EndpointApi.v1_endpoint_update_mtls_config ...'
2035
+ end
2036
+ # verify the required parameter 'app_id' is set
2037
+ if @api_client.config.client_side_validation && app_id.nil?
2038
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.v1_endpoint_update_mtls_config"
2039
+ end
2040
+ if @api_client.config.client_side_validation && app_id.to_s.length > 256
2041
+ fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_update_mtls_config, the character length must be smaller than or equal to 256.'
2042
+ end
2043
+
2044
+ if @api_client.config.client_side_validation && app_id.to_s.length < 1
2045
+ fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_update_mtls_config, the character length must be great than or equal to 1.'
2046
+ end
2047
+
2048
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
2049
+ if @api_client.config.client_side_validation && app_id !~ pattern
2050
+ fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.v1_endpoint_update_mtls_config, must conform to the pattern #{pattern}."
2051
+ end
2052
+
2053
+ # verify the required parameter 'endpoint_id' is set
2054
+ if @api_client.config.client_side_validation && endpoint_id.nil?
2055
+ fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.v1_endpoint_update_mtls_config"
2056
+ end
2057
+ if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
2058
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_update_mtls_config, the character length must be smaller than or equal to 256.'
2059
+ end
2060
+
2061
+ if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
2062
+ fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_update_mtls_config, the character length must be great than or equal to 1.'
2063
+ end
2064
+
2065
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
2066
+ if @api_client.config.client_side_validation && endpoint_id !~ pattern
2067
+ fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.v1_endpoint_update_mtls_config, must conform to the pattern #{pattern}."
2068
+ end
2069
+
2070
+ # verify the required parameter 'endpoint_mtls_config_in' is set
2071
+ if @api_client.config.client_side_validation && endpoint_mtls_config_in.nil?
2072
+ fail ArgumentError, "Missing the required parameter 'endpoint_mtls_config_in' when calling EndpointApi.v1_endpoint_update_mtls_config"
2073
+ end
2074
+ # resource path
2075
+ local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/mtls'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
2076
+
2077
+ # query parameters
2078
+ query_params = opts[:query_params] || {}
2079
+
2080
+ # header parameters
2081
+ header_params = opts[:header_params] || {}
2082
+ # HTTP header 'Accept' (if needed)
2083
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2084
+ # HTTP header 'Content-Type'
2085
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2086
+
2087
+ # form parameters
2088
+ form_params = opts[:form_params] || {}
2089
+
2090
+ # http body (model)
2091
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(endpoint_mtls_config_in)
2092
+
2093
+ # return_type
2094
+ return_type = opts[:debug_return_type]
2095
+
2096
+ # auth_names
2097
+ auth_names = opts[:debug_auth_names] || ['HTTPBearer']
2098
+
2099
+ new_options = opts.merge(
2100
+ :operation => :"EndpointApi.v1_endpoint_update_mtls_config",
2101
+ :header_params => header_params,
2102
+ :query_params => query_params,
2103
+ :form_params => form_params,
2104
+ :body => post_body,
2105
+ :auth_names => auth_names,
2106
+ :return_type => return_type
2107
+ )
2108
+
2109
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2110
+ if @api_client.config.debugging
2111
+ @api_client.config.logger.debug "API called: EndpointApi#v1_endpoint_update_mtls_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2112
+ end
2113
+ return data, status_code, headers
2114
+ end
2115
+
1918
2116
  # Update Endpoint Oauth Config
1919
2117
  # Create/update endpoint OAuth configuration
1920
2118
  # @param app_id [String] The app&#39;s ID or UID
@@ -15,12 +15,15 @@ require 'time'
15
15
 
16
16
  module Svix
17
17
  class ClientSecretJwtParamsIn
18
+ # The base64-encoded secret used for signing the JWT.
18
19
  attr_accessor :secret_base64
19
20
 
21
+ # Optional secret identifier. If supplied, this will be populated in the JWT header in the `kid` field.
20
22
  attr_accessor :secret_id
21
23
 
22
24
  attr_accessor :signing_algorithm
23
25
 
26
+ # Optional number of seconds after which the JWT should expire. Defaults to 300 seconds.
24
27
  attr_accessor :token_expiry_secs
25
28
 
26
29
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -0,0 +1,239 @@
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
+ OpenAPI Generator version: 5.2.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Svix
17
+ class EndpointMtlsConfigIn
18
+ # A PEM encoded X509 certificate used to verify the webhook receiver's certificate.
19
+ attr_accessor :ca_cert
20
+
21
+ # A PEM encoded private key and X509 certificate to identify the webhook sender.
22
+ attr_accessor :identity
23
+
24
+ # Attribute mapping from ruby-style variable name to JSON key.
25
+ def self.attribute_map
26
+ {
27
+ :'ca_cert' => :'caCert',
28
+ :'identity' => :'identity'
29
+ }
30
+ end
31
+
32
+ # Returns all the JSON keys this model knows about
33
+ def self.acceptable_attributes
34
+ attribute_map.values
35
+ end
36
+
37
+ # Attribute type mapping.
38
+ def self.openapi_types
39
+ {
40
+ :'ca_cert' => :'String',
41
+ :'identity' => :'String'
42
+ }
43
+ end
44
+
45
+ # List of attributes with nullable: true
46
+ def self.openapi_nullable
47
+ Set.new([
48
+ ])
49
+ end
50
+
51
+ # Initializes the object
52
+ # @param [Hash] attributes Model attributes in the form of hash
53
+ def initialize(attributes = {})
54
+ if (!attributes.is_a?(Hash))
55
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Svix::EndpointMtlsConfigIn` initialize method"
56
+ end
57
+
58
+ # check to see if the attribute exists and convert string to symbol for hash key
59
+ attributes = attributes.each_with_object({}) { |(k, v), h|
60
+ if (!self.class.attribute_map.key?(k.to_sym))
61
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Svix::EndpointMtlsConfigIn`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
62
+ end
63
+ h[k.to_sym] = v
64
+ }
65
+
66
+ if attributes.key?(:'ca_cert')
67
+ self.ca_cert = attributes[:'ca_cert']
68
+ end
69
+
70
+ if attributes.key?(:'identity')
71
+ self.identity = attributes[:'identity']
72
+ end
73
+ end
74
+
75
+ # Show invalid properties with the reasons. Usually used together with valid?
76
+ # @return Array for valid properties with the reasons
77
+ def list_invalid_properties
78
+ invalid_properties = Array.new
79
+ if @ca_cert.nil?
80
+ invalid_properties.push('invalid value for "ca_cert", ca_cert cannot be nil.')
81
+ end
82
+
83
+ if @identity.nil?
84
+ invalid_properties.push('invalid value for "identity", identity cannot be nil.')
85
+ end
86
+
87
+ invalid_properties
88
+ end
89
+
90
+ # Check to see if the all the properties in the model are valid
91
+ # @return true if the model is valid
92
+ def valid?
93
+ return false if @ca_cert.nil?
94
+ return false if @identity.nil?
95
+ true
96
+ end
97
+
98
+ # Checks equality by comparing each attribute.
99
+ # @param [Object] Object to be compared
100
+ def ==(o)
101
+ return true if self.equal?(o)
102
+ self.class == o.class &&
103
+ ca_cert == o.ca_cert &&
104
+ identity == o.identity
105
+ end
106
+
107
+ # @see the `==` method
108
+ # @param [Object] Object to be compared
109
+ def eql?(o)
110
+ self == o
111
+ end
112
+
113
+ # Calculates hash code according to all attributes.
114
+ # @return [Integer] Hash code
115
+ def hash
116
+ [ca_cert, identity].hash
117
+ end
118
+
119
+ # Builds the object from hash
120
+ # @param [Hash] attributes Model attributes in the form of hash
121
+ # @return [Object] Returns the model itself
122
+ def self.build_from_hash(attributes)
123
+ new.build_from_hash(attributes)
124
+ end
125
+
126
+ # Builds the object from hash
127
+ # @param [Hash] attributes Model attributes in the form of hash
128
+ # @return [Object] Returns the model itself
129
+ def build_from_hash(attributes)
130
+ return nil unless attributes.is_a?(Hash)
131
+ self.class.openapi_types.each_pair do |key, type|
132
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
133
+ self.send("#{key}=", nil)
134
+ elsif type =~ /\AArray<(.*)>/i
135
+ # check to ensure the input is an array given that the attribute
136
+ # is documented as an array but the input is not
137
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
138
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
139
+ end
140
+ elsif !attributes[self.class.attribute_map[key]].nil?
141
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
142
+ end
143
+ end
144
+
145
+ self
146
+ end
147
+
148
+ # Deserializes the data based on type
149
+ # @param string type Data type
150
+ # @param string value Value to be deserialized
151
+ # @return [Object] Deserialized data
152
+ def _deserialize(type, value)
153
+ case type.to_sym
154
+ when :Time
155
+ Time.parse(value)
156
+ when :Date
157
+ Date.parse(value)
158
+ when :String
159
+ value.to_s
160
+ when :Integer
161
+ value.to_i
162
+ when :Float
163
+ value.to_f
164
+ when :Boolean
165
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
166
+ true
167
+ else
168
+ false
169
+ end
170
+ when :Object
171
+ # generic object (usually a Hash), return directly
172
+ value
173
+ when /\AArray<(?<inner_type>.+)>\z/
174
+ inner_type = Regexp.last_match[:inner_type]
175
+ value.map { |v| _deserialize(inner_type, v) }
176
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
177
+ k_type = Regexp.last_match[:k_type]
178
+ v_type = Regexp.last_match[:v_type]
179
+ {}.tap do |hash|
180
+ value.each do |k, v|
181
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
182
+ end
183
+ end
184
+ else # model
185
+ # models (e.g. Pet) or oneOf
186
+ klass = Svix.const_get(type)
187
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
188
+ end
189
+ end
190
+
191
+ # Returns the string representation of the object
192
+ # @return [String] String presentation of the object
193
+ def to_s
194
+ to_hash.to_s
195
+ end
196
+
197
+ # to_body is an alias to to_hash (backward compatibility)
198
+ # @return [Hash] Returns the object in the form of hash
199
+ def to_body
200
+ to_hash
201
+ end
202
+
203
+ # Returns the object in the form of hash
204
+ # @return [Hash] Returns the object in the form of hash
205
+ def to_hash
206
+ hash = {}
207
+ self.class.attribute_map.each_pair do |attr, param|
208
+ value = self.send(attr)
209
+ if value.nil?
210
+ is_nullable = self.class.openapi_nullable.include?(attr)
211
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
212
+ end
213
+
214
+ hash[param] = _to_hash(value)
215
+ end
216
+ hash
217
+ end
218
+
219
+ # Outputs non-array value in the form of hash
220
+ # For object, use to_hash. Otherwise, just return the value
221
+ # @param [Object] value Any valid value
222
+ # @return [Hash] Returns the value in the form of hash
223
+ def _to_hash(value)
224
+ if value.is_a?(Array)
225
+ value.compact.map { |v| _to_hash(v) }
226
+ elsif value.is_a?(Hash)
227
+ {}.tap do |hash|
228
+ value.each { |k, v| hash[k] = _to_hash(v) }
229
+ end
230
+ elsif value.respond_to? :to_hash
231
+ value.to_hash
232
+ else
233
+ value
234
+ end
235
+ end
236
+
237
+ end
238
+
239
+ end
@@ -17,14 +17,23 @@ module Svix
17
17
  class EndpointOauthConfigIn
18
18
  attr_accessor :auth_method
19
19
 
20
+ # The client ID. Required for all authentication types.
20
21
  attr_accessor :client_id
21
22
 
23
+ # Optional client secret. This is only used for `clientSecretBasic` and `clientSecretPost`. For `clientSecretBasic`, the secret will be appended to the `Authorization` header. For `clientSecretPost`, this will be added to the body in a `client_secret` parameter.
22
24
  attr_accessor :client_secret
23
25
 
26
+ # Extra parameters added to the request body as key-value pairs.
27
+ attr_accessor :extra_params
28
+
24
29
  attr_accessor :grant_type
25
30
 
26
31
  attr_accessor :jwt_params
27
32
 
33
+ # Optional OAuth scopes added to the request body.
34
+ attr_accessor :scopes
35
+
36
+ # The URL of the authorization server.
28
37
  attr_accessor :token_url
29
38
 
30
39
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -33,8 +42,10 @@ module Svix
33
42
  :'auth_method' => :'authMethod',
34
43
  :'client_id' => :'clientId',
35
44
  :'client_secret' => :'clientSecret',
45
+ :'extra_params' => :'extraParams',
36
46
  :'grant_type' => :'grantType',
37
47
  :'jwt_params' => :'jwtParams',
48
+ :'scopes' => :'scopes',
38
49
  :'token_url' => :'tokenUrl'
39
50
  }
40
51
  end
@@ -50,8 +61,10 @@ module Svix
50
61
  :'auth_method' => :'Oauth2AuthMethodIn',
51
62
  :'client_id' => :'String',
52
63
  :'client_secret' => :'String',
64
+ :'extra_params' => :'Hash<String, String>',
53
65
  :'grant_type' => :'Oauth2GrantType',
54
66
  :'jwt_params' => :'ClientSecretJwtParamsIn',
67
+ :'scopes' => :'Array<String>',
55
68
  :'token_url' => :'String'
56
69
  }
57
70
  end
@@ -60,6 +73,8 @@ module Svix
60
73
  def self.openapi_nullable
61
74
  Set.new([
62
75
  :'client_secret',
76
+ :'extra_params',
77
+ :'scopes',
63
78
  ])
64
79
  end
65
80
 
@@ -90,6 +105,12 @@ module Svix
90
105
  self.client_secret = attributes[:'client_secret']
91
106
  end
92
107
 
108
+ if attributes.key?(:'extra_params')
109
+ if (value = attributes[:'extra_params']).is_a?(Hash)
110
+ self.extra_params = value
111
+ end
112
+ end
113
+
93
114
  if attributes.key?(:'grant_type')
94
115
  self.grant_type = attributes[:'grant_type']
95
116
  end
@@ -98,6 +119,12 @@ module Svix
98
119
  self.jwt_params = attributes[:'jwt_params']
99
120
  end
100
121
 
122
+ if attributes.key?(:'scopes')
123
+ if (value = attributes[:'scopes']).is_a?(Array)
124
+ self.scopes = value
125
+ end
126
+ end
127
+
101
128
  if attributes.key?(:'token_url')
102
129
  self.token_url = attributes[:'token_url']
103
130
  end
@@ -144,8 +171,10 @@ module Svix
144
171
  auth_method == o.auth_method &&
145
172
  client_id == o.client_id &&
146
173
  client_secret == o.client_secret &&
174
+ extra_params == o.extra_params &&
147
175
  grant_type == o.grant_type &&
148
176
  jwt_params == o.jwt_params &&
177
+ scopes == o.scopes &&
149
178
  token_url == o.token_url
150
179
  end
151
180
 
@@ -158,7 +187,7 @@ module Svix
158
187
  # Calculates hash code according to all attributes.
159
188
  # @return [Integer] Hash code
160
189
  def hash
161
- [auth_method, client_id, client_secret, grant_type, jwt_params, token_url].hash
190
+ [auth_method, client_id, client_secret, extra_params, grant_type, jwt_params, scopes, token_url].hash
162
191
  end
163
192
 
164
193
  # 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.23.0"
4
+ VERSION = "1.24.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: 1.23.0
4
+ version: 1.24.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Svix
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-05-03 00:00:00.000000000 Z
11
+ date: 2024-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -134,6 +134,7 @@ files:
134
134
  - lib/svix/models/endpoint_headers_patch_in.rb
135
135
  - lib/svix/models/endpoint_in.rb
136
136
  - lib/svix/models/endpoint_message_out.rb
137
+ - lib/svix/models/endpoint_mtls_config_in.rb
137
138
  - lib/svix/models/endpoint_oauth_config_in.rb
138
139
  - lib/svix/models/endpoint_out.rb
139
140
  - lib/svix/models/endpoint_patch.rb