turnkey_client 0.0.14 → 0.0.15
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/lib/turnkey_client/api/app_proof_api.rb +77 -0
- data/lib/turnkey_client/api/boot_proof_api.rb +135 -0
- data/lib/turnkey_client/api/default_api.rb +77 -0
- data/lib/turnkey_client/api/user_auth_api.rb +290 -0
- data/lib/turnkey_client/models/activity.rb +13 -1
- data/lib/turnkey_client/models/activity_type.rb +7 -0
- data/lib/turnkey_client/models/app_proof.rb +255 -0
- data/lib/turnkey_client/models/boot_proof.rb +315 -0
- data/lib/turnkey_client/models/boot_proof_response.rb +210 -0
- data/lib/turnkey_client/models/common_v1_policy_evaluation.rb +214 -0
- data/lib/turnkey_client/models/create_oauth2_credential_intent.rb +240 -0
- data/lib/turnkey_client/models/create_oauth2_credential_request.rb +288 -0
- data/lib/turnkey_client/models/create_oauth2_credential_result.rb +211 -0
- data/lib/turnkey_client/models/create_sub_organization_intent_v7.rb +16 -5
- data/lib/turnkey_client/models/delete_oauth2_credential_intent.rb +211 -0
- data/lib/turnkey_client/models/delete_oauth2_credential_request.rb +288 -0
- data/lib/turnkey_client/models/delete_oauth2_credential_result.rb +211 -0
- data/lib/turnkey_client/models/disable_auth_proxy_intent.rb +196 -0
- data/lib/turnkey_client/models/disable_auth_proxy_result.rb +196 -0
- data/lib/turnkey_client/models/enable_auth_proxy_intent.rb +196 -0
- data/lib/turnkey_client/models/enable_auth_proxy_result.rb +211 -0
- data/lib/turnkey_client/models/feature_name.rb +1 -0
- data/lib/turnkey_client/models/get_app_proofs_request.rb +226 -0
- data/lib/turnkey_client/models/get_app_proofs_response.rb +212 -0
- data/lib/turnkey_client/models/get_boot_proof_request.rb +226 -0
- data/lib/turnkey_client/models/get_latest_boot_proof_request.rb +226 -0
- data/lib/turnkey_client/models/get_oauth2_credential_request.rb +226 -0
- data/lib/turnkey_client/models/get_oauth2_credential_response.rb +210 -0
- data/lib/turnkey_client/models/get_wallet_accounts_request.rb +12 -1
- data/lib/turnkey_client/models/init_fiat_on_ramp_intent.rb +16 -5
- data/lib/turnkey_client/models/init_fiat_on_ramp_result.rb +14 -4
- data/lib/turnkey_client/models/intent.rb +67 -4
- data/lib/turnkey_client/models/list_oauth2_credentials_request.rb +211 -0
- data/lib/turnkey_client/models/list_oauth2_credentials_response.rb +212 -0
- data/lib/turnkey_client/models/oauth2_authenticate_intent.rb +278 -0
- data/lib/turnkey_client/models/oauth2_authenticate_request.rb +288 -0
- data/lib/turnkey_client/models/oauth2_authenticate_result.rb +211 -0
- data/lib/turnkey_client/models/oauth2_credential.rb +298 -0
- data/lib/turnkey_client/models/oauth2_provider.rb +27 -0
- data/lib/turnkey_client/models/otp_login_intent.rb +16 -5
- data/lib/turnkey_client/models/payload_encoding.rb +1 -0
- data/lib/turnkey_client/models/result.rb +67 -4
- data/lib/turnkey_client/models/signature_scheme.rb +26 -0
- data/lib/turnkey_client/models/smart_contract_interface.rb +329 -0
- data/lib/turnkey_client/models/update_auth_proxy_config_intent.rb +346 -0
- data/lib/turnkey_client/models/update_auth_proxy_config_result.rb +206 -0
- data/lib/turnkey_client/models/update_oauth2_credential_intent.rb +255 -0
- data/lib/turnkey_client/models/update_oauth2_credential_request.rb +288 -0
- data/lib/turnkey_client/models/update_oauth2_credential_result.rb +211 -0
- data/lib/turnkey_client/models/verify_otp_intent.rb +16 -5
- data/lib/turnkey_client/models/wallet_account.rb +14 -5
- data/lib/turnkey_client/models/wallet_kit_settings_params.rb +230 -0
- data/lib/turnkey_client/version.rb +1 -1
- data/lib/turnkey_client.rb +38 -2
- data/turnkey_client-0.0.14.gem +0 -0
- metadata +41 -2
@@ -0,0 +1,298 @@
|
|
1
|
+
=begin
|
2
|
+
#API Reference
|
3
|
+
|
4
|
+
#Review our [API Introduction](../api-introduction) to get started.
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
=end
|
10
|
+
|
11
|
+
require 'date'
|
12
|
+
|
13
|
+
module TurnkeyClient
|
14
|
+
class Oauth2Credential
|
15
|
+
# Unique identifier for a given OAuth 2.0 Credential.
|
16
|
+
attr_accessor :oauth2_credential_id
|
17
|
+
|
18
|
+
# Unique identifier for an Organization.
|
19
|
+
attr_accessor :organization_id
|
20
|
+
|
21
|
+
attr_accessor :provider
|
22
|
+
|
23
|
+
# The client id for a given OAuth 2.0 Credential.
|
24
|
+
attr_accessor :client_id
|
25
|
+
|
26
|
+
# The encrypted client secret for a given OAuth 2.0 Credential encrypted to the TLS Fetcher quorum key.
|
27
|
+
attr_accessor :encrypted_client_secret
|
28
|
+
|
29
|
+
attr_accessor :created_at
|
30
|
+
|
31
|
+
attr_accessor :updated_at
|
32
|
+
|
33
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
34
|
+
def self.attribute_map
|
35
|
+
{
|
36
|
+
:'oauth2_credential_id' => :'oauth2CredentialId',
|
37
|
+
:'organization_id' => :'organizationId',
|
38
|
+
:'provider' => :'provider',
|
39
|
+
:'client_id' => :'clientId',
|
40
|
+
:'encrypted_client_secret' => :'encryptedClientSecret',
|
41
|
+
:'created_at' => :'createdAt',
|
42
|
+
:'updated_at' => :'updatedAt'
|
43
|
+
}
|
44
|
+
end
|
45
|
+
|
46
|
+
# Attribute type mapping.
|
47
|
+
def self.openapi_types
|
48
|
+
{
|
49
|
+
:'oauth2_credential_id' => :'Object',
|
50
|
+
:'organization_id' => :'Object',
|
51
|
+
:'provider' => :'Object',
|
52
|
+
:'client_id' => :'Object',
|
53
|
+
:'encrypted_client_secret' => :'Object',
|
54
|
+
:'created_at' => :'Object',
|
55
|
+
:'updated_at' => :'Object'
|
56
|
+
}
|
57
|
+
end
|
58
|
+
|
59
|
+
# List of attributes with nullable: true
|
60
|
+
def self.openapi_nullable
|
61
|
+
Set.new([
|
62
|
+
])
|
63
|
+
end
|
64
|
+
|
65
|
+
# Initializes the object
|
66
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
67
|
+
def initialize(attributes = {})
|
68
|
+
if (!attributes.is_a?(Hash))
|
69
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TurnkeyClient::Oauth2Credential` initialize method"
|
70
|
+
end
|
71
|
+
|
72
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
73
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
74
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
75
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TurnkeyClient::Oauth2Credential`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
76
|
+
end
|
77
|
+
h[k.to_sym] = v
|
78
|
+
}
|
79
|
+
|
80
|
+
if attributes.key?(:'oauth2_credential_id')
|
81
|
+
self.oauth2_credential_id = attributes[:'oauth2_credential_id']
|
82
|
+
end
|
83
|
+
|
84
|
+
if attributes.key?(:'organization_id')
|
85
|
+
self.organization_id = attributes[:'organization_id']
|
86
|
+
end
|
87
|
+
|
88
|
+
if attributes.key?(:'provider')
|
89
|
+
self.provider = attributes[:'provider']
|
90
|
+
end
|
91
|
+
|
92
|
+
if attributes.key?(:'client_id')
|
93
|
+
self.client_id = attributes[:'client_id']
|
94
|
+
end
|
95
|
+
|
96
|
+
if attributes.key?(:'encrypted_client_secret')
|
97
|
+
self.encrypted_client_secret = attributes[:'encrypted_client_secret']
|
98
|
+
end
|
99
|
+
|
100
|
+
if attributes.key?(:'created_at')
|
101
|
+
self.created_at = attributes[:'created_at']
|
102
|
+
end
|
103
|
+
|
104
|
+
if attributes.key?(:'updated_at')
|
105
|
+
self.updated_at = attributes[:'updated_at']
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
109
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
110
|
+
# @return Array for valid properties with the reasons
|
111
|
+
def list_invalid_properties
|
112
|
+
invalid_properties = Array.new
|
113
|
+
if @oauth2_credential_id.nil?
|
114
|
+
invalid_properties.push('invalid value for "oauth2_credential_id", oauth2_credential_id cannot be nil.')
|
115
|
+
end
|
116
|
+
|
117
|
+
if @organization_id.nil?
|
118
|
+
invalid_properties.push('invalid value for "organization_id", organization_id cannot be nil.')
|
119
|
+
end
|
120
|
+
|
121
|
+
if @provider.nil?
|
122
|
+
invalid_properties.push('invalid value for "provider", provider cannot be nil.')
|
123
|
+
end
|
124
|
+
|
125
|
+
if @client_id.nil?
|
126
|
+
invalid_properties.push('invalid value for "client_id", client_id cannot be nil.')
|
127
|
+
end
|
128
|
+
|
129
|
+
if @encrypted_client_secret.nil?
|
130
|
+
invalid_properties.push('invalid value for "encrypted_client_secret", encrypted_client_secret cannot be nil.')
|
131
|
+
end
|
132
|
+
|
133
|
+
if @created_at.nil?
|
134
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
135
|
+
end
|
136
|
+
|
137
|
+
if @updated_at.nil?
|
138
|
+
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
139
|
+
end
|
140
|
+
|
141
|
+
invalid_properties
|
142
|
+
end
|
143
|
+
|
144
|
+
# Check to see if the all the properties in the model are valid
|
145
|
+
# @return true if the model is valid
|
146
|
+
def valid?
|
147
|
+
return false if @oauth2_credential_id.nil?
|
148
|
+
return false if @organization_id.nil?
|
149
|
+
return false if @provider.nil?
|
150
|
+
return false if @client_id.nil?
|
151
|
+
return false if @encrypted_client_secret.nil?
|
152
|
+
return false if @created_at.nil?
|
153
|
+
return false if @updated_at.nil?
|
154
|
+
true
|
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
|
+
oauth2_credential_id == o.oauth2_credential_id &&
|
163
|
+
organization_id == o.organization_id &&
|
164
|
+
provider == o.provider &&
|
165
|
+
client_id == o.client_id &&
|
166
|
+
encrypted_client_secret == o.encrypted_client_secret &&
|
167
|
+
created_at == o.created_at &&
|
168
|
+
updated_at == o.updated_at
|
169
|
+
end
|
170
|
+
|
171
|
+
# @see the `==` method
|
172
|
+
# @param [Object] Object to be compared
|
173
|
+
def eql?(o)
|
174
|
+
self == o
|
175
|
+
end
|
176
|
+
|
177
|
+
# Calculates hash code according to all attributes.
|
178
|
+
# @return [Integer] Hash code
|
179
|
+
def hash
|
180
|
+
[oauth2_credential_id, organization_id, provider, client_id, encrypted_client_secret, created_at, updated_at].hash
|
181
|
+
end
|
182
|
+
|
183
|
+
# Builds the object from hash
|
184
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
185
|
+
# @return [Object] Returns the model itself
|
186
|
+
def self.build_from_hash(attributes)
|
187
|
+
new.build_from_hash(attributes)
|
188
|
+
end
|
189
|
+
|
190
|
+
# Builds the object from hash
|
191
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
192
|
+
# @return [Object] Returns the model itself
|
193
|
+
def build_from_hash(attributes)
|
194
|
+
return nil unless attributes.is_a?(Hash)
|
195
|
+
self.class.openapi_types.each_pair do |key, type|
|
196
|
+
if type =~ /\AArray<(.*)>/i
|
197
|
+
# check to ensure the input is an array given that the attribute
|
198
|
+
# is documented as an array but the input is not
|
199
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
200
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
201
|
+
end
|
202
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
203
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
204
|
+
elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
205
|
+
self.send("#{key}=", nil)
|
206
|
+
end
|
207
|
+
end
|
208
|
+
|
209
|
+
self
|
210
|
+
end
|
211
|
+
|
212
|
+
# Deserializes the data based on type
|
213
|
+
# @param string type Data type
|
214
|
+
# @param string value Value to be deserialized
|
215
|
+
# @return [Object] Deserialized data
|
216
|
+
def _deserialize(type, value)
|
217
|
+
case type.to_sym
|
218
|
+
when :DateTime
|
219
|
+
DateTime.parse(value)
|
220
|
+
when :Date
|
221
|
+
Date.parse(value)
|
222
|
+
when :String
|
223
|
+
value.to_s
|
224
|
+
when :Integer
|
225
|
+
value.to_i
|
226
|
+
when :Float
|
227
|
+
value.to_f
|
228
|
+
when :Boolean
|
229
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
230
|
+
true
|
231
|
+
else
|
232
|
+
false
|
233
|
+
end
|
234
|
+
when :Object
|
235
|
+
# generic object (usually a Hash), return directly
|
236
|
+
value
|
237
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
238
|
+
inner_type = Regexp.last_match[:inner_type]
|
239
|
+
value.map { |v| _deserialize(inner_type, v) }
|
240
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
241
|
+
k_type = Regexp.last_match[:k_type]
|
242
|
+
v_type = Regexp.last_match[:v_type]
|
243
|
+
{}.tap do |hash|
|
244
|
+
value.each do |k, v|
|
245
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
246
|
+
end
|
247
|
+
end
|
248
|
+
else # model
|
249
|
+
TurnkeyClient.const_get(type).build_from_hash(value)
|
250
|
+
end
|
251
|
+
end
|
252
|
+
|
253
|
+
# Returns the string representation of the object
|
254
|
+
# @return [String] String presentation of the object
|
255
|
+
def to_s
|
256
|
+
to_hash.to_s
|
257
|
+
end
|
258
|
+
|
259
|
+
# to_body is an alias to to_hash (backward compatibility)
|
260
|
+
# @return [Hash] Returns the object in the form of hash
|
261
|
+
def to_body
|
262
|
+
to_hash
|
263
|
+
end
|
264
|
+
|
265
|
+
# Returns the object in the form of hash
|
266
|
+
# @return [Hash] Returns the object in the form of hash
|
267
|
+
def to_hash
|
268
|
+
hash = {}
|
269
|
+
self.class.attribute_map.each_pair do |attr, param|
|
270
|
+
value = self.send(attr)
|
271
|
+
if value.nil?
|
272
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
273
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
274
|
+
end
|
275
|
+
|
276
|
+
hash[param] = _to_hash(value)
|
277
|
+
end
|
278
|
+
hash
|
279
|
+
end
|
280
|
+
|
281
|
+
# Outputs non-array value in the form of hash
|
282
|
+
# For object, use to_hash. Otherwise, just return the value
|
283
|
+
# @param [Object] value Any valid value
|
284
|
+
# @return [Hash] Returns the value in the form of hash
|
285
|
+
def _to_hash(value)
|
286
|
+
if value.is_a?(Array)
|
287
|
+
value.compact.map { |v| _to_hash(v) }
|
288
|
+
elsif value.is_a?(Hash)
|
289
|
+
{}.tap do |hash|
|
290
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
291
|
+
end
|
292
|
+
elsif value.respond_to? :to_hash
|
293
|
+
value.to_hash
|
294
|
+
else
|
295
|
+
value
|
296
|
+
end
|
297
|
+
end end
|
298
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
=begin
|
2
|
+
#API Reference
|
3
|
+
|
4
|
+
#Review our [API Introduction](../api-introduction) to get started.
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
=end
|
10
|
+
|
11
|
+
require 'date'
|
12
|
+
|
13
|
+
module TurnkeyClient
|
14
|
+
class Oauth2Provider
|
15
|
+
X = 'OAUTH2_PROVIDER_X'.freeze
|
16
|
+
DISCORD = 'OAUTH2_PROVIDER_DISCORD'.freeze
|
17
|
+
|
18
|
+
# Builds the enum from string
|
19
|
+
# @param [String] The enum value in the form of the string
|
20
|
+
# @return [String] The enum value
|
21
|
+
def build_from_hash(value)
|
22
|
+
constantValues = Oauth2Provider.constants.select { |c| Oauth2Provider::const_get(c) == value }
|
23
|
+
raise "Invalid ENUM value #{value} for class #Oauth2Provider" if constantValues.empty?
|
24
|
+
value
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -24,13 +24,17 @@ module TurnkeyClient
|
|
24
24
|
# Invalidate all other previously generated Login API keys
|
25
25
|
attr_accessor :invalidate_existing
|
26
26
|
|
27
|
+
# Optional signature associated with the public key passed into the verification step. This must be a hex-encoded ECDSA signature over the verification token. Only required if a public key was provided during the verification step.
|
28
|
+
attr_accessor :client_signature
|
29
|
+
|
27
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
28
31
|
def self.attribute_map
|
29
32
|
{
|
30
33
|
:'verification_token' => :'verificationToken',
|
31
34
|
:'public_key' => :'publicKey',
|
32
35
|
:'expiration_seconds' => :'expirationSeconds',
|
33
|
-
:'invalidate_existing' => :'invalidateExisting'
|
36
|
+
:'invalidate_existing' => :'invalidateExisting',
|
37
|
+
:'client_signature' => :'clientSignature'
|
34
38
|
}
|
35
39
|
end
|
36
40
|
|
@@ -40,7 +44,8 @@ module TurnkeyClient
|
|
40
44
|
:'verification_token' => :'Object',
|
41
45
|
:'public_key' => :'Object',
|
42
46
|
:'expiration_seconds' => :'Object',
|
43
|
-
:'invalidate_existing' => :'Object'
|
47
|
+
:'invalidate_existing' => :'Object',
|
48
|
+
:'client_signature' => :'Object'
|
44
49
|
}
|
45
50
|
end
|
46
51
|
|
@@ -48,7 +53,8 @@ module TurnkeyClient
|
|
48
53
|
def self.openapi_nullable
|
49
54
|
Set.new([
|
50
55
|
:'expiration_seconds',
|
51
|
-
:'invalidate_existing'
|
56
|
+
:'invalidate_existing',
|
57
|
+
:'client_signature'
|
52
58
|
])
|
53
59
|
end
|
54
60
|
|
@@ -82,6 +88,10 @@ module TurnkeyClient
|
|
82
88
|
if attributes.key?(:'invalidate_existing')
|
83
89
|
self.invalidate_existing = attributes[:'invalidate_existing']
|
84
90
|
end
|
91
|
+
|
92
|
+
if attributes.key?(:'client_signature')
|
93
|
+
self.client_signature = attributes[:'client_signature']
|
94
|
+
end
|
85
95
|
end
|
86
96
|
|
87
97
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -115,7 +125,8 @@ module TurnkeyClient
|
|
115
125
|
verification_token == o.verification_token &&
|
116
126
|
public_key == o.public_key &&
|
117
127
|
expiration_seconds == o.expiration_seconds &&
|
118
|
-
invalidate_existing == o.invalidate_existing
|
128
|
+
invalidate_existing == o.invalidate_existing &&
|
129
|
+
client_signature == o.client_signature
|
119
130
|
end
|
120
131
|
|
121
132
|
# @see the `==` method
|
@@ -127,7 +138,7 @@ module TurnkeyClient
|
|
127
138
|
# Calculates hash code according to all attributes.
|
128
139
|
# @return [Integer] Hash code
|
129
140
|
def hash
|
130
|
-
[verification_token, public_key, expiration_seconds, invalidate_existing].hash
|
141
|
+
[verification_token, public_key, expiration_seconds, invalidate_existing, client_signature].hash
|
131
142
|
end
|
132
143
|
|
133
144
|
# Builds the object from hash
|
@@ -15,6 +15,7 @@ module TurnkeyClient
|
|
15
15
|
HEXADECIMAL = 'PAYLOAD_ENCODING_HEXADECIMAL'.freeze
|
16
16
|
TEXT_UTF8 = 'PAYLOAD_ENCODING_TEXT_UTF8'.freeze
|
17
17
|
EIP712 = 'PAYLOAD_ENCODING_EIP712'.freeze
|
18
|
+
EIP7702_AUTHORIZATION = 'PAYLOAD_ENCODING_EIP7702_AUTHORIZATION'.freeze
|
18
19
|
|
19
20
|
# Builds the enum from string
|
20
21
|
# @param [String] The enum value in the form of the string
|
@@ -170,6 +170,20 @@ module TurnkeyClient
|
|
170
170
|
|
171
171
|
attr_accessor :delete_smart_contract_interface_result
|
172
172
|
|
173
|
+
attr_accessor :enable_auth_proxy_result
|
174
|
+
|
175
|
+
attr_accessor :disable_auth_proxy_result
|
176
|
+
|
177
|
+
attr_accessor :update_auth_proxy_config_result
|
178
|
+
|
179
|
+
attr_accessor :create_oauth2_credential_result
|
180
|
+
|
181
|
+
attr_accessor :update_oauth2_credential_result
|
182
|
+
|
183
|
+
attr_accessor :delete_oauth2_credential_result
|
184
|
+
|
185
|
+
attr_accessor :oauth2_authenticate_result
|
186
|
+
|
173
187
|
# Attribute mapping from ruby-style variable name to JSON key.
|
174
188
|
def self.attribute_map
|
175
189
|
{
|
@@ -251,7 +265,14 @@ module TurnkeyClient
|
|
251
265
|
:'update_user_phone_number_result' => :'updateUserPhoneNumberResult',
|
252
266
|
:'init_fiat_on_ramp_result' => :'initFiatOnRampResult',
|
253
267
|
:'create_smart_contract_interface_result' => :'createSmartContractInterfaceResult',
|
254
|
-
:'delete_smart_contract_interface_result' => :'deleteSmartContractInterfaceResult'
|
268
|
+
:'delete_smart_contract_interface_result' => :'deleteSmartContractInterfaceResult',
|
269
|
+
:'enable_auth_proxy_result' => :'enableAuthProxyResult',
|
270
|
+
:'disable_auth_proxy_result' => :'disableAuthProxyResult',
|
271
|
+
:'update_auth_proxy_config_result' => :'updateAuthProxyConfigResult',
|
272
|
+
:'create_oauth2_credential_result' => :'createOauth2CredentialResult',
|
273
|
+
:'update_oauth2_credential_result' => :'updateOauth2CredentialResult',
|
274
|
+
:'delete_oauth2_credential_result' => :'deleteOauth2CredentialResult',
|
275
|
+
:'oauth2_authenticate_result' => :'oauth2AuthenticateResult'
|
255
276
|
}
|
256
277
|
end
|
257
278
|
|
@@ -336,7 +357,14 @@ module TurnkeyClient
|
|
336
357
|
:'update_user_phone_number_result' => :'Object',
|
337
358
|
:'init_fiat_on_ramp_result' => :'Object',
|
338
359
|
:'create_smart_contract_interface_result' => :'Object',
|
339
|
-
:'delete_smart_contract_interface_result' => :'Object'
|
360
|
+
:'delete_smart_contract_interface_result' => :'Object',
|
361
|
+
:'enable_auth_proxy_result' => :'Object',
|
362
|
+
:'disable_auth_proxy_result' => :'Object',
|
363
|
+
:'update_auth_proxy_config_result' => :'Object',
|
364
|
+
:'create_oauth2_credential_result' => :'Object',
|
365
|
+
:'update_oauth2_credential_result' => :'Object',
|
366
|
+
:'delete_oauth2_credential_result' => :'Object',
|
367
|
+
:'oauth2_authenticate_result' => :'Object'
|
340
368
|
}
|
341
369
|
end
|
342
370
|
|
@@ -676,6 +704,34 @@ module TurnkeyClient
|
|
676
704
|
if attributes.key?(:'delete_smart_contract_interface_result')
|
677
705
|
self.delete_smart_contract_interface_result = attributes[:'delete_smart_contract_interface_result']
|
678
706
|
end
|
707
|
+
|
708
|
+
if attributes.key?(:'enable_auth_proxy_result')
|
709
|
+
self.enable_auth_proxy_result = attributes[:'enable_auth_proxy_result']
|
710
|
+
end
|
711
|
+
|
712
|
+
if attributes.key?(:'disable_auth_proxy_result')
|
713
|
+
self.disable_auth_proxy_result = attributes[:'disable_auth_proxy_result']
|
714
|
+
end
|
715
|
+
|
716
|
+
if attributes.key?(:'update_auth_proxy_config_result')
|
717
|
+
self.update_auth_proxy_config_result = attributes[:'update_auth_proxy_config_result']
|
718
|
+
end
|
719
|
+
|
720
|
+
if attributes.key?(:'create_oauth2_credential_result')
|
721
|
+
self.create_oauth2_credential_result = attributes[:'create_oauth2_credential_result']
|
722
|
+
end
|
723
|
+
|
724
|
+
if attributes.key?(:'update_oauth2_credential_result')
|
725
|
+
self.update_oauth2_credential_result = attributes[:'update_oauth2_credential_result']
|
726
|
+
end
|
727
|
+
|
728
|
+
if attributes.key?(:'delete_oauth2_credential_result')
|
729
|
+
self.delete_oauth2_credential_result = attributes[:'delete_oauth2_credential_result']
|
730
|
+
end
|
731
|
+
|
732
|
+
if attributes.key?(:'oauth2_authenticate_result')
|
733
|
+
self.oauth2_authenticate_result = attributes[:'oauth2_authenticate_result']
|
734
|
+
end
|
679
735
|
end
|
680
736
|
|
681
737
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -774,7 +830,14 @@ module TurnkeyClient
|
|
774
830
|
update_user_phone_number_result == o.update_user_phone_number_result &&
|
775
831
|
init_fiat_on_ramp_result == o.init_fiat_on_ramp_result &&
|
776
832
|
create_smart_contract_interface_result == o.create_smart_contract_interface_result &&
|
777
|
-
delete_smart_contract_interface_result == o.delete_smart_contract_interface_result
|
833
|
+
delete_smart_contract_interface_result == o.delete_smart_contract_interface_result &&
|
834
|
+
enable_auth_proxy_result == o.enable_auth_proxy_result &&
|
835
|
+
disable_auth_proxy_result == o.disable_auth_proxy_result &&
|
836
|
+
update_auth_proxy_config_result == o.update_auth_proxy_config_result &&
|
837
|
+
create_oauth2_credential_result == o.create_oauth2_credential_result &&
|
838
|
+
update_oauth2_credential_result == o.update_oauth2_credential_result &&
|
839
|
+
delete_oauth2_credential_result == o.delete_oauth2_credential_result &&
|
840
|
+
oauth2_authenticate_result == o.oauth2_authenticate_result
|
778
841
|
end
|
779
842
|
|
780
843
|
# @see the `==` method
|
@@ -786,7 +849,7 @@ module TurnkeyClient
|
|
786
849
|
# Calculates hash code according to all attributes.
|
787
850
|
# @return [Integer] Hash code
|
788
851
|
def hash
|
789
|
-
[create_organization_result, create_authenticators_result, create_users_result, create_private_keys_result, create_invitations_result, accept_invitation_result, sign_raw_payload_result, create_policy_result, disable_private_key_result, delete_users_result, delete_authenticators_result, delete_invitation_result, delete_organization_result, delete_policy_result, create_user_tag_result, delete_user_tags_result, sign_transaction_result, delete_api_keys_result, create_api_keys_result, create_private_key_tag_result, delete_private_key_tags_result, set_payment_method_result, activate_billing_tier_result, delete_payment_method_result, create_api_only_users_result, update_root_quorum_result, update_user_tag_result, update_private_key_tag_result, create_sub_organization_result, update_allowed_origins_result, create_private_keys_result_v2, update_user_result, update_policy_result, create_sub_organization_result_v3, create_wallet_result, create_wallet_accounts_result, init_user_email_recovery_result, recover_user_result, set_organization_feature_result, remove_organization_feature_result, export_private_key_result, export_wallet_result, create_sub_organization_result_v4, email_auth_result, export_wallet_account_result, init_import_wallet_result, import_wallet_result, init_import_private_key_result, import_private_key_result, create_policies_result, sign_raw_payloads_result, create_read_only_session_result, create_oauth_providers_result, delete_oauth_providers_result, create_sub_organization_result_v5, oauth_result, create_read_write_session_result, create_sub_organization_result_v6, delete_private_keys_result, delete_wallets_result, create_read_write_session_result_v2, delete_sub_organization_result, init_otp_auth_result, otp_auth_result, create_sub_organization_result_v7, update_wallet_result, update_policy_result_v2, init_otp_auth_result_v2, init_otp_result, verify_otp_result, otp_login_result, stamp_login_result, oauth_login_result, update_user_name_result, update_user_email_result, update_user_phone_number_result, init_fiat_on_ramp_result, create_smart_contract_interface_result, delete_smart_contract_interface_result].hash
|
852
|
+
[create_organization_result, create_authenticators_result, create_users_result, create_private_keys_result, create_invitations_result, accept_invitation_result, sign_raw_payload_result, create_policy_result, disable_private_key_result, delete_users_result, delete_authenticators_result, delete_invitation_result, delete_organization_result, delete_policy_result, create_user_tag_result, delete_user_tags_result, sign_transaction_result, delete_api_keys_result, create_api_keys_result, create_private_key_tag_result, delete_private_key_tags_result, set_payment_method_result, activate_billing_tier_result, delete_payment_method_result, create_api_only_users_result, update_root_quorum_result, update_user_tag_result, update_private_key_tag_result, create_sub_organization_result, update_allowed_origins_result, create_private_keys_result_v2, update_user_result, update_policy_result, create_sub_organization_result_v3, create_wallet_result, create_wallet_accounts_result, init_user_email_recovery_result, recover_user_result, set_organization_feature_result, remove_organization_feature_result, export_private_key_result, export_wallet_result, create_sub_organization_result_v4, email_auth_result, export_wallet_account_result, init_import_wallet_result, import_wallet_result, init_import_private_key_result, import_private_key_result, create_policies_result, sign_raw_payloads_result, create_read_only_session_result, create_oauth_providers_result, delete_oauth_providers_result, create_sub_organization_result_v5, oauth_result, create_read_write_session_result, create_sub_organization_result_v6, delete_private_keys_result, delete_wallets_result, create_read_write_session_result_v2, delete_sub_organization_result, init_otp_auth_result, otp_auth_result, create_sub_organization_result_v7, update_wallet_result, update_policy_result_v2, init_otp_auth_result_v2, init_otp_result, verify_otp_result, otp_login_result, stamp_login_result, oauth_login_result, update_user_name_result, update_user_email_result, update_user_phone_number_result, init_fiat_on_ramp_result, create_smart_contract_interface_result, delete_smart_contract_interface_result, enable_auth_proxy_result, disable_auth_proxy_result, update_auth_proxy_config_result, create_oauth2_credential_result, update_oauth2_credential_result, delete_oauth2_credential_result, oauth2_authenticate_result].hash
|
790
853
|
end
|
791
854
|
|
792
855
|
# Builds the object from hash
|
@@ -0,0 +1,26 @@
|
|
1
|
+
=begin
|
2
|
+
#API Reference
|
3
|
+
|
4
|
+
#Review our [API Introduction](../api-introduction) to get started.
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
=end
|
10
|
+
|
11
|
+
require 'date'
|
12
|
+
|
13
|
+
module TurnkeyClient
|
14
|
+
class SignatureScheme
|
15
|
+
SIGNATURE_SCHEME_EPHEMERAL_KEY_P256 = 'SIGNATURE_SCHEME_EPHEMERAL_KEY_P256'.freeze
|
16
|
+
|
17
|
+
# Builds the enum from string
|
18
|
+
# @param [String] The enum value in the form of the string
|
19
|
+
# @return [String] The enum value
|
20
|
+
def build_from_hash(value)
|
21
|
+
constantValues = SignatureScheme.constants.select { |c| SignatureScheme::const_get(c) == value }
|
22
|
+
raise "Invalid ENUM value #{value} for class #SignatureScheme" if constantValues.empty?
|
23
|
+
value
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|