turnkey_client 0.0.18 → 0.0.19
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/default_api.rb +46 -0
- data/lib/turnkey_client/api/ip_allowlist_api.rb +193 -0
- data/lib/turnkey_client/api/organizations_api.rb +290 -0
- data/lib/turnkey_client/api/signing_api.rb +232 -0
- data/lib/turnkey_client/api/tvc_api.rb +773 -0
- data/lib/turnkey_client/api/wallets_api.rb +4 -4
- data/lib/turnkey_client/configuration.rb +7 -0
- data/lib/turnkey_client/models/activate_billing_tier_intent.rb +14 -4
- data/lib/turnkey_client/models/activity_type.rb +21 -0
- data/lib/turnkey_client/models/address_format.rb +2 -0
- data/lib/turnkey_client/models/app_status.rb +243 -0
- data/lib/turnkey_client/models/boot_proof.rb +17 -6
- data/lib/turnkey_client/models/create_oauth_providers_intent_v2.rb +228 -0
- data/lib/turnkey_client/models/create_oauth_providers_request.rb +2 -2
- data/lib/turnkey_client/models/create_oauth_providers_result_v2.rb +213 -0
- data/lib/turnkey_client/models/create_read_write_session_intent_v2.rb +1 -1
- data/lib/turnkey_client/models/create_sub_organization_intent_v8.rb +316 -0
- data/lib/turnkey_client/models/create_sub_organization_request.rb +2 -2
- data/lib/turnkey_client/models/create_sub_organization_result_v8.rb +230 -0
- data/lib/turnkey_client/models/create_tvc_app_intent.rb +9 -9
- data/lib/turnkey_client/models/create_tvc_app_request.rb +288 -0
- data/lib/turnkey_client/models/create_tvc_deployment_intent.rb +45 -48
- data/lib/turnkey_client/models/create_tvc_deployment_request.rb +288 -0
- data/lib/turnkey_client/models/create_tvc_manifest_approvals_request.rb +288 -0
- data/lib/turnkey_client/models/create_users_intent_v4.rb +213 -0
- data/lib/turnkey_client/models/create_users_request.rb +2 -2
- data/lib/turnkey_client/models/create_webhook_endpoint_intent.rb +238 -0
- data/lib/turnkey_client/models/create_webhook_endpoint_request.rb +298 -0
- data/lib/turnkey_client/models/create_webhook_endpoint_result.rb +225 -0
- data/lib/turnkey_client/models/delete_tvc_app_and_deployments_intent.rb +211 -0
- data/lib/turnkey_client/models/delete_tvc_app_and_deployments_request.rb +298 -0
- data/lib/turnkey_client/models/delete_tvc_app_and_deployments_result.rb +211 -0
- data/lib/turnkey_client/models/delete_tvc_deployment_intent.rb +211 -0
- data/lib/turnkey_client/models/delete_tvc_deployment_request.rb +298 -0
- data/lib/turnkey_client/models/delete_tvc_deployment_result.rb +211 -0
- data/lib/turnkey_client/models/delete_webhook_endpoint_intent.rb +211 -0
- data/lib/turnkey_client/models/delete_webhook_endpoint_request.rb +298 -0
- data/lib/turnkey_client/models/delete_webhook_endpoint_result.rb +211 -0
- data/lib/turnkey_client/models/deployment_status.rb +255 -0
- data/lib/turnkey_client/models/eth_failure_details.rb +208 -0
- data/lib/turnkey_client/models/eth_send_transaction_intent.rb +12 -1
- data/lib/turnkey_client/models/feature_name.rb +1 -0
- data/lib/turnkey_client/models/get_app_status_request.rb +226 -0
- data/lib/turnkey_client/models/get_app_status_response.rb +210 -0
- data/lib/turnkey_client/models/get_ip_allowlist_request.rb +222 -0
- data/lib/turnkey_client/models/get_ip_allowlist_response.rb +210 -0
- data/lib/turnkey_client/models/get_send_transaction_status_response.rb +10 -1
- data/lib/turnkey_client/models/get_tvc_app_deployments_request.rb +226 -0
- data/lib/turnkey_client/models/get_tvc_app_deployments_response.rb +213 -0
- data/lib/turnkey_client/models/get_tvc_app_request.rb +226 -0
- data/lib/turnkey_client/models/get_tvc_app_response.rb +210 -0
- data/lib/turnkey_client/models/get_tvc_apps_request.rb +211 -0
- data/lib/turnkey_client/models/get_tvc_apps_response.rb +213 -0
- data/lib/turnkey_client/models/get_tvc_deployment_request.rb +226 -0
- data/lib/turnkey_client/models/get_tvc_deployment_response.rb +210 -0
- data/lib/turnkey_client/models/get_wallet_address_balances_request.rb +4 -4
- data/lib/turnkey_client/models/init_otp_auth_intent.rb +1 -1
- data/lib/turnkey_client/models/init_otp_auth_intent_v2.rb +1 -1
- data/lib/turnkey_client/models/init_otp_intent_v3.rb +336 -0
- data/lib/turnkey_client/models/init_otp_request.rb +2 -2
- data/lib/turnkey_client/models/init_otp_result_v2.rb +226 -0
- data/lib/turnkey_client/models/intent.rb +193 -4
- data/lib/turnkey_client/models/ip_allowlist.rb +261 -0
- data/lib/turnkey_client/models/ip_allowlist_intent_rule.rb +222 -0
- data/lib/turnkey_client/models/ip_allowlist_rule.rb +232 -0
- data/lib/turnkey_client/models/list_supported_assets_request.rb +3 -3
- data/lib/turnkey_client/models/list_webhook_endpoints_request.rb +211 -0
- data/lib/turnkey_client/models/list_webhook_endpoints_response.rb +212 -0
- data/lib/turnkey_client/models/login_usage.rb +211 -0
- data/lib/turnkey_client/models/noop_codegen_anchor_response.rb +219 -0
- data/lib/turnkey_client/models/oauth2_authenticate_intent.rb +6 -2
- data/lib/turnkey_client/models/oauth_provider_params_v2.rb +230 -0
- data/lib/turnkey_client/models/oidc_claims.rb +241 -0
- data/lib/turnkey_client/models/otp_login_intent_v2.rb +262 -0
- data/lib/turnkey_client/models/otp_login_request.rb +2 -2
- data/lib/turnkey_client/models/post_tvc_quorum_key_share_intent.rb +240 -0
- data/lib/turnkey_client/models/post_tvc_quorum_key_share_result.rb +211 -0
- data/lib/turnkey_client/models/quorum_key_share_approval_bundle.rb +241 -0
- data/lib/turnkey_client/models/remove_ip_allowlist_intent.rb +207 -0
- data/lib/turnkey_client/models/remove_ip_allowlist_request.rb +298 -0
- data/lib/turnkey_client/models/remove_ip_allowlist_result.rb +196 -0
- data/lib/turnkey_client/models/restore_tvc_deployment_intent.rb +211 -0
- data/lib/turnkey_client/models/restore_tvc_deployment_request.rb +298 -0
- data/lib/turnkey_client/models/restore_tvc_deployment_result.rb +211 -0
- data/lib/turnkey_client/models/result.rb +166 -4
- data/lib/turnkey_client/models/root_user_params_v5.rb +284 -0
- data/lib/turnkey_client/models/set_ip_allowlist_intent.rb +241 -0
- data/lib/turnkey_client/models/set_ip_allowlist_request.rb +298 -0
- data/lib/turnkey_client/models/set_ip_allowlist_result.rb +196 -0
- data/lib/turnkey_client/models/signup_usage.rb +249 -0
- data/lib/turnkey_client/models/signup_usage_v2.rb +249 -0
- data/lib/turnkey_client/models/sol_send_transaction_intent.rb +3 -3
- data/lib/turnkey_client/models/solana_config.rb +207 -0
- data/lib/turnkey_client/models/solana_failure_details.rb +273 -0
- data/lib/turnkey_client/models/solana_send_transaction_status.rb +207 -0
- data/lib/turnkey_client/models/spark_claim_leaf.rb +241 -0
- data/lib/turnkey_client/models/spark_claim_package.rb +275 -0
- data/lib/turnkey_client/models/spark_claim_transfer_intent.rb +225 -0
- data/lib/turnkey_client/models/spark_claim_transfer_request.rb +288 -0
- data/lib/turnkey_client/models/spark_claim_transfer_result.rb +230 -0
- data/lib/turnkey_client/models/spark_deposit_derivation.rb +196 -0
- data/lib/turnkey_client/models/spark_encrypted_operator_package.rb +226 -0
- data/lib/turnkey_client/models/spark_frost_commitment.rb +241 -0
- data/lib/turnkey_client/models/spark_htlc_preimage_derivation.rb +196 -0
- data/lib/turnkey_client/models/spark_identity_derivation.rb +196 -0
- data/lib/turnkey_client/models/spark_key_derivation.rb +241 -0
- data/lib/turnkey_client/models/spark_leaf_public_key.rb +226 -0
- data/lib/turnkey_client/models/spark_lightning_receive_package.rb +228 -0
- data/lib/turnkey_client/models/spark_operator_recipient.rb +226 -0
- data/lib/turnkey_client/models/spark_partial_signature.rb +241 -0
- data/lib/turnkey_client/models/spark_prepare_lightning_receive_intent.rb +225 -0
- data/lib/turnkey_client/models/spark_prepare_lightning_receive_request.rb +288 -0
- data/lib/turnkey_client/models/spark_prepare_lightning_receive_result.rb +228 -0
- data/lib/turnkey_client/models/spark_prepare_transfer_intent.rb +225 -0
- data/lib/turnkey_client/models/spark_prepare_transfer_request.rb +288 -0
- data/lib/turnkey_client/models/spark_prepare_transfer_result.rb +245 -0
- data/lib/turnkey_client/models/spark_sign_frost_intent.rb +228 -0
- data/lib/turnkey_client/models/spark_sign_frost_request.rb +288 -0
- data/lib/turnkey_client/models/spark_sign_frost_result.rb +213 -0
- data/lib/turnkey_client/models/spark_signature_request.rb +268 -0
- data/lib/turnkey_client/models/spark_signing_leaf_derivation.rb +211 -0
- data/lib/turnkey_client/models/spark_static_deposit_derivation.rb +211 -0
- data/lib/turnkey_client/models/spark_transfer_leaf.rb +272 -0
- data/lib/turnkey_client/models/spark_transfer_package.rb +275 -0
- data/lib/turnkey_client/models/token_usage.rb +252 -0
- data/lib/turnkey_client/models/tvc_app.rb +353 -0
- data/lib/turnkey_client/models/tvc_container_spec.rb +302 -0
- data/lib/turnkey_client/models/tvc_deployment.rb +372 -0
- data/lib/turnkey_client/models/tvc_health_check_type.rb +27 -0
- data/lib/turnkey_client/models/tvc_manifest.rb +254 -0
- data/lib/turnkey_client/models/tvc_operator.rb +269 -0
- data/lib/turnkey_client/models/tvc_operator_approval.rb +283 -0
- data/lib/turnkey_client/models/tvc_operator_set.rb +301 -0
- data/lib/turnkey_client/models/tx_error.rb +22 -4
- data/lib/turnkey_client/models/update_auth_proxy_config_intent.rb +17 -5
- data/lib/turnkey_client/models/update_organization_name_intent.rb +211 -0
- data/lib/turnkey_client/models/update_organization_name_request.rb +298 -0
- data/lib/turnkey_client/models/update_organization_name_result.rb +226 -0
- data/lib/turnkey_client/models/update_tvc_app_live_deployment_intent.rb +211 -0
- data/lib/turnkey_client/models/update_tvc_app_live_deployment_request.rb +298 -0
- data/lib/turnkey_client/models/update_tvc_app_live_deployment_result.rb +196 -0
- data/lib/turnkey_client/models/update_webhook_endpoint_intent.rb +244 -0
- data/lib/turnkey_client/models/update_webhook_endpoint_request.rb +298 -0
- data/lib/turnkey_client/models/update_webhook_endpoint_result.rb +225 -0
- data/lib/turnkey_client/models/upsert_gas_usage_config_intent.rb +15 -6
- data/lib/turnkey_client/models/usage_type.rb +27 -0
- data/lib/turnkey_client/models/user_params_v4.rb +301 -0
- data/lib/turnkey_client/models/validate_tvc_image_request.rb +237 -0
- data/lib/turnkey_client/models/validate_tvc_image_response.rb +205 -0
- data/lib/turnkey_client/models/verify_otp_intent_v2.rb +237 -0
- data/lib/turnkey_client/models/verify_otp_request.rb +2 -2
- data/lib/turnkey_client/models/web_authn_stamp.rb +256 -0
- data/lib/turnkey_client/models/webhook_endpoint_data.rb +283 -0
- data/lib/turnkey_client/models/webhook_subscription_params.rb +233 -0
- data/lib/turnkey_client/version.rb +1 -1
- data/lib/turnkey_client.rb +122 -0
- metadata +124 -2
|
@@ -0,0 +1,301 @@
|
|
|
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 TvcOperatorSet
|
|
15
|
+
# Unique Identifier for this TVC Operator Set.
|
|
16
|
+
attr_accessor :id
|
|
17
|
+
|
|
18
|
+
# Name of this TVC Operator Set.
|
|
19
|
+
attr_accessor :name
|
|
20
|
+
|
|
21
|
+
# Unique Identifier of the Organization for this TVC Operator Set
|
|
22
|
+
attr_accessor :organization_id
|
|
23
|
+
|
|
24
|
+
# List of TVC Operators in this set
|
|
25
|
+
attr_accessor :operators
|
|
26
|
+
|
|
27
|
+
# Threshold number of operators required for quorum.
|
|
28
|
+
attr_accessor :threshold
|
|
29
|
+
|
|
30
|
+
attr_accessor :created_at
|
|
31
|
+
|
|
32
|
+
attr_accessor :updated_at
|
|
33
|
+
|
|
34
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
35
|
+
def self.attribute_map
|
|
36
|
+
{
|
|
37
|
+
:'id' => :'id',
|
|
38
|
+
:'name' => :'name',
|
|
39
|
+
:'organization_id' => :'organizationId',
|
|
40
|
+
:'operators' => :'operators',
|
|
41
|
+
:'threshold' => :'threshold',
|
|
42
|
+
:'created_at' => :'createdAt',
|
|
43
|
+
:'updated_at' => :'updatedAt'
|
|
44
|
+
}
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# Attribute type mapping.
|
|
48
|
+
def self.openapi_types
|
|
49
|
+
{
|
|
50
|
+
:'id' => :'Object',
|
|
51
|
+
:'name' => :'Object',
|
|
52
|
+
:'organization_id' => :'Object',
|
|
53
|
+
:'operators' => :'Object',
|
|
54
|
+
:'threshold' => :'Object',
|
|
55
|
+
:'created_at' => :'Object',
|
|
56
|
+
:'updated_at' => :'Object'
|
|
57
|
+
}
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# List of attributes with nullable: true
|
|
61
|
+
def self.openapi_nullable
|
|
62
|
+
Set.new([
|
|
63
|
+
])
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# Initializes the object
|
|
67
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
68
|
+
def initialize(attributes = {})
|
|
69
|
+
if (!attributes.is_a?(Hash))
|
|
70
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TurnkeyClient::TvcOperatorSet` initialize method"
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
74
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
75
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
76
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TurnkeyClient::TvcOperatorSet`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
77
|
+
end
|
|
78
|
+
h[k.to_sym] = v
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
if attributes.key?(:'id')
|
|
82
|
+
self.id = attributes[:'id']
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
if attributes.key?(:'name')
|
|
86
|
+
self.name = attributes[:'name']
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
if attributes.key?(:'organization_id')
|
|
90
|
+
self.organization_id = attributes[:'organization_id']
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
if attributes.key?(:'operators')
|
|
94
|
+
if (value = attributes[:'operators']).is_a?(Array)
|
|
95
|
+
self.operators = value
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
if attributes.key?(:'threshold')
|
|
100
|
+
self.threshold = attributes[:'threshold']
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
if attributes.key?(:'created_at')
|
|
104
|
+
self.created_at = attributes[:'created_at']
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
if attributes.key?(:'updated_at')
|
|
108
|
+
self.updated_at = attributes[:'updated_at']
|
|
109
|
+
end
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
113
|
+
# @return Array for valid properties with the reasons
|
|
114
|
+
def list_invalid_properties
|
|
115
|
+
invalid_properties = Array.new
|
|
116
|
+
if @id.nil?
|
|
117
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
if @name.nil?
|
|
121
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
if @organization_id.nil?
|
|
125
|
+
invalid_properties.push('invalid value for "organization_id", organization_id cannot be nil.')
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
if @operators.nil?
|
|
129
|
+
invalid_properties.push('invalid value for "operators", operators cannot be nil.')
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
if @threshold.nil?
|
|
133
|
+
invalid_properties.push('invalid value for "threshold", threshold cannot be nil.')
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
if @created_at.nil?
|
|
137
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
if @updated_at.nil?
|
|
141
|
+
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
invalid_properties
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
# Check to see if the all the properties in the model are valid
|
|
148
|
+
# @return true if the model is valid
|
|
149
|
+
def valid?
|
|
150
|
+
return false if @id.nil?
|
|
151
|
+
return false if @name.nil?
|
|
152
|
+
return false if @organization_id.nil?
|
|
153
|
+
return false if @operators.nil?
|
|
154
|
+
return false if @threshold.nil?
|
|
155
|
+
return false if @created_at.nil?
|
|
156
|
+
return false if @updated_at.nil?
|
|
157
|
+
true
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
# Checks equality by comparing each attribute.
|
|
161
|
+
# @param [Object] Object to be compared
|
|
162
|
+
def ==(o)
|
|
163
|
+
return true if self.equal?(o)
|
|
164
|
+
self.class == o.class &&
|
|
165
|
+
id == o.id &&
|
|
166
|
+
name == o.name &&
|
|
167
|
+
organization_id == o.organization_id &&
|
|
168
|
+
operators == o.operators &&
|
|
169
|
+
threshold == o.threshold &&
|
|
170
|
+
created_at == o.created_at &&
|
|
171
|
+
updated_at == o.updated_at
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
# @see the `==` method
|
|
175
|
+
# @param [Object] Object to be compared
|
|
176
|
+
def eql?(o)
|
|
177
|
+
self == o
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
# Calculates hash code according to all attributes.
|
|
181
|
+
# @return [Integer] Hash code
|
|
182
|
+
def hash
|
|
183
|
+
[id, name, organization_id, operators, threshold, created_at, updated_at].hash
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
# Builds the object from hash
|
|
187
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
188
|
+
# @return [Object] Returns the model itself
|
|
189
|
+
def self.build_from_hash(attributes)
|
|
190
|
+
new.build_from_hash(attributes)
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
# Builds the object from hash
|
|
194
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
195
|
+
# @return [Object] Returns the model itself
|
|
196
|
+
def build_from_hash(attributes)
|
|
197
|
+
return nil unless attributes.is_a?(Hash)
|
|
198
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
199
|
+
if type =~ /\AArray<(.*)>/i
|
|
200
|
+
# check to ensure the input is an array given that the attribute
|
|
201
|
+
# is documented as an array but the input is not
|
|
202
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
203
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
204
|
+
end
|
|
205
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
206
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
207
|
+
elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
208
|
+
self.send("#{key}=", nil)
|
|
209
|
+
end
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
self
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
# Deserializes the data based on type
|
|
216
|
+
# @param string type Data type
|
|
217
|
+
# @param string value Value to be deserialized
|
|
218
|
+
# @return [Object] Deserialized data
|
|
219
|
+
def _deserialize(type, value)
|
|
220
|
+
case type.to_sym
|
|
221
|
+
when :DateTime
|
|
222
|
+
DateTime.parse(value)
|
|
223
|
+
when :Date
|
|
224
|
+
Date.parse(value)
|
|
225
|
+
when :String
|
|
226
|
+
value.to_s
|
|
227
|
+
when :Integer
|
|
228
|
+
value.to_i
|
|
229
|
+
when :Float
|
|
230
|
+
value.to_f
|
|
231
|
+
when :Boolean
|
|
232
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
233
|
+
true
|
|
234
|
+
else
|
|
235
|
+
false
|
|
236
|
+
end
|
|
237
|
+
when :Object
|
|
238
|
+
# generic object (usually a Hash), return directly
|
|
239
|
+
value
|
|
240
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
241
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
242
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
243
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
244
|
+
k_type = Regexp.last_match[:k_type]
|
|
245
|
+
v_type = Regexp.last_match[:v_type]
|
|
246
|
+
{}.tap do |hash|
|
|
247
|
+
value.each do |k, v|
|
|
248
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
249
|
+
end
|
|
250
|
+
end
|
|
251
|
+
else # model
|
|
252
|
+
TurnkeyClient.const_get(type).build_from_hash(value)
|
|
253
|
+
end
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
# Returns the string representation of the object
|
|
257
|
+
# @return [String] String presentation of the object
|
|
258
|
+
def to_s
|
|
259
|
+
to_hash.to_s
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
263
|
+
# @return [Hash] Returns the object in the form of hash
|
|
264
|
+
def to_body
|
|
265
|
+
to_hash
|
|
266
|
+
end
|
|
267
|
+
|
|
268
|
+
# Returns the object in the form of hash
|
|
269
|
+
# @return [Hash] Returns the object in the form of hash
|
|
270
|
+
def to_hash
|
|
271
|
+
hash = {}
|
|
272
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
273
|
+
value = self.send(attr)
|
|
274
|
+
if value.nil?
|
|
275
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
276
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
277
|
+
end
|
|
278
|
+
|
|
279
|
+
hash[param] = _to_hash(value)
|
|
280
|
+
end
|
|
281
|
+
hash
|
|
282
|
+
end
|
|
283
|
+
|
|
284
|
+
# Outputs non-array value in the form of hash
|
|
285
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
286
|
+
# @param [Object] value Any valid value
|
|
287
|
+
# @return [Hash] Returns the value in the form of hash
|
|
288
|
+
def _to_hash(value)
|
|
289
|
+
if value.is_a?(Array)
|
|
290
|
+
value.compact.map { |v| _to_hash(v) }
|
|
291
|
+
elsif value.is_a?(Hash)
|
|
292
|
+
{}.tap do |hash|
|
|
293
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
294
|
+
end
|
|
295
|
+
elsif value.respond_to? :to_hash
|
|
296
|
+
value.to_hash
|
|
297
|
+
else
|
|
298
|
+
value
|
|
299
|
+
end
|
|
300
|
+
end end
|
|
301
|
+
end
|
|
@@ -18,11 +18,17 @@ module TurnkeyClient
|
|
|
18
18
|
# Chain of revert errors from nested contract calls, ordered from outermost to innermost.
|
|
19
19
|
attr_accessor :revert_chain
|
|
20
20
|
|
|
21
|
+
attr_accessor :solana
|
|
22
|
+
|
|
23
|
+
attr_accessor :eth
|
|
24
|
+
|
|
21
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
22
26
|
def self.attribute_map
|
|
23
27
|
{
|
|
24
28
|
:'message' => :'message',
|
|
25
|
-
:'revert_chain' => :'revertChain'
|
|
29
|
+
:'revert_chain' => :'revertChain',
|
|
30
|
+
:'solana' => :'solana',
|
|
31
|
+
:'eth' => :'eth'
|
|
26
32
|
}
|
|
27
33
|
end
|
|
28
34
|
|
|
@@ -30,7 +36,9 @@ module TurnkeyClient
|
|
|
30
36
|
def self.openapi_types
|
|
31
37
|
{
|
|
32
38
|
:'message' => :'Object',
|
|
33
|
-
:'revert_chain' => :'Object'
|
|
39
|
+
:'revert_chain' => :'Object',
|
|
40
|
+
:'solana' => :'Object',
|
|
41
|
+
:'eth' => :'Object'
|
|
34
42
|
}
|
|
35
43
|
end
|
|
36
44
|
|
|
@@ -64,6 +72,14 @@ module TurnkeyClient
|
|
|
64
72
|
self.revert_chain = value
|
|
65
73
|
end
|
|
66
74
|
end
|
|
75
|
+
|
|
76
|
+
if attributes.key?(:'solana')
|
|
77
|
+
self.solana = attributes[:'solana']
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
if attributes.key?(:'eth')
|
|
81
|
+
self.eth = attributes[:'eth']
|
|
82
|
+
end
|
|
67
83
|
end
|
|
68
84
|
|
|
69
85
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -85,7 +101,9 @@ module TurnkeyClient
|
|
|
85
101
|
return true if self.equal?(o)
|
|
86
102
|
self.class == o.class &&
|
|
87
103
|
message == o.message &&
|
|
88
|
-
revert_chain == o.revert_chain
|
|
104
|
+
revert_chain == o.revert_chain &&
|
|
105
|
+
solana == o.solana &&
|
|
106
|
+
eth == o.eth
|
|
89
107
|
end
|
|
90
108
|
|
|
91
109
|
# @see the `==` method
|
|
@@ -97,7 +115,7 @@ module TurnkeyClient
|
|
|
97
115
|
# Calculates hash code according to all attributes.
|
|
98
116
|
# @return [Integer] Hash code
|
|
99
117
|
def hash
|
|
100
|
-
[message, revert_chain].hash
|
|
118
|
+
[message, revert_chain, solana, eth].hash
|
|
101
119
|
end
|
|
102
120
|
|
|
103
121
|
# Builds the object from hash
|
|
@@ -57,6 +57,9 @@ module TurnkeyClient
|
|
|
57
57
|
# Verification token required for get account with PII (email/phone number). Default false.
|
|
58
58
|
attr_accessor :verification_token_required_for_get_account_pii
|
|
59
59
|
|
|
60
|
+
# Whitelisted OAuth client IDs for social account linking. When a user authenticates via a social provider with an email matching an existing account, the accounts will be linked if the client ID is in this list and the issuer is considered a trusted provider.
|
|
61
|
+
attr_accessor :social_linking_client_ids
|
|
62
|
+
|
|
60
63
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
61
64
|
def self.attribute_map
|
|
62
65
|
{
|
|
@@ -75,7 +78,8 @@ module TurnkeyClient
|
|
|
75
78
|
:'otp_alphanumeric' => :'otpAlphanumeric',
|
|
76
79
|
:'otp_length' => :'otpLength',
|
|
77
80
|
:'send_from_email_sender_name' => :'sendFromEmailSenderName',
|
|
78
|
-
:'verification_token_required_for_get_account_pii' => :'verificationTokenRequiredForGetAccountPii'
|
|
81
|
+
:'verification_token_required_for_get_account_pii' => :'verificationTokenRequiredForGetAccountPii',
|
|
82
|
+
:'social_linking_client_ids' => :'socialLinkingClientIds'
|
|
79
83
|
}
|
|
80
84
|
end
|
|
81
85
|
|
|
@@ -97,7 +101,8 @@ module TurnkeyClient
|
|
|
97
101
|
:'otp_alphanumeric' => :'Object',
|
|
98
102
|
:'otp_length' => :'Object',
|
|
99
103
|
:'send_from_email_sender_name' => :'Object',
|
|
100
|
-
:'verification_token_required_for_get_account_pii' => :'Object'
|
|
104
|
+
:'verification_token_required_for_get_account_pii' => :'Object',
|
|
105
|
+
:'social_linking_client_ids' => :'Object'
|
|
101
106
|
}
|
|
102
107
|
end
|
|
103
108
|
|
|
@@ -114,7 +119,7 @@ module TurnkeyClient
|
|
|
114
119
|
:'otp_alphanumeric',
|
|
115
120
|
:'otp_length',
|
|
116
121
|
:'send_from_email_sender_name',
|
|
117
|
-
:'verification_token_required_for_get_account_pii'
|
|
122
|
+
:'verification_token_required_for_get_account_pii',
|
|
118
123
|
])
|
|
119
124
|
end
|
|
120
125
|
|
|
@@ -200,6 +205,12 @@ module TurnkeyClient
|
|
|
200
205
|
if attributes.key?(:'verification_token_required_for_get_account_pii')
|
|
201
206
|
self.verification_token_required_for_get_account_pii = attributes[:'verification_token_required_for_get_account_pii']
|
|
202
207
|
end
|
|
208
|
+
|
|
209
|
+
if attributes.key?(:'social_linking_client_ids')
|
|
210
|
+
if (value = attributes[:'social_linking_client_ids']).is_a?(Array)
|
|
211
|
+
self.social_linking_client_ids = value
|
|
212
|
+
end
|
|
213
|
+
end
|
|
203
214
|
end
|
|
204
215
|
|
|
205
216
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -235,7 +246,8 @@ module TurnkeyClient
|
|
|
235
246
|
otp_alphanumeric == o.otp_alphanumeric &&
|
|
236
247
|
otp_length == o.otp_length &&
|
|
237
248
|
send_from_email_sender_name == o.send_from_email_sender_name &&
|
|
238
|
-
verification_token_required_for_get_account_pii == o.verification_token_required_for_get_account_pii
|
|
249
|
+
verification_token_required_for_get_account_pii == o.verification_token_required_for_get_account_pii &&
|
|
250
|
+
social_linking_client_ids == o.social_linking_client_ids
|
|
239
251
|
end
|
|
240
252
|
|
|
241
253
|
# @see the `==` method
|
|
@@ -247,7 +259,7 @@ module TurnkeyClient
|
|
|
247
259
|
# Calculates hash code according to all attributes.
|
|
248
260
|
# @return [Integer] Hash code
|
|
249
261
|
def hash
|
|
250
|
-
[allowed_origins, allowed_auth_methods, send_from_email_address, reply_to_email_address, email_auth_template_id, otp_template_id, email_customization_params, sms_customization_params, wallet_kit_settings, otp_expiration_seconds, verification_token_expiration_seconds, session_expiration_seconds, otp_alphanumeric, otp_length, send_from_email_sender_name, verification_token_required_for_get_account_pii].hash
|
|
262
|
+
[allowed_origins, allowed_auth_methods, send_from_email_address, reply_to_email_address, email_auth_template_id, otp_template_id, email_customization_params, sms_customization_params, wallet_kit_settings, otp_expiration_seconds, verification_token_expiration_seconds, session_expiration_seconds, otp_alphanumeric, otp_length, send_from_email_sender_name, verification_token_required_for_get_account_pii, social_linking_client_ids].hash
|
|
251
263
|
end
|
|
252
264
|
|
|
253
265
|
# Builds the object from hash
|
|
@@ -0,0 +1,211 @@
|
|
|
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 UpdateOrganizationNameIntent
|
|
15
|
+
# New name for the Organization.
|
|
16
|
+
attr_accessor :organization_name
|
|
17
|
+
|
|
18
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
19
|
+
def self.attribute_map
|
|
20
|
+
{
|
|
21
|
+
:'organization_name' => :'organizationName'
|
|
22
|
+
}
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
# Attribute type mapping.
|
|
26
|
+
def self.openapi_types
|
|
27
|
+
{
|
|
28
|
+
:'organization_name' => :'Object'
|
|
29
|
+
}
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# List of attributes with nullable: true
|
|
33
|
+
def self.openapi_nullable
|
|
34
|
+
Set.new([
|
|
35
|
+
])
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Initializes the object
|
|
39
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
40
|
+
def initialize(attributes = {})
|
|
41
|
+
if (!attributes.is_a?(Hash))
|
|
42
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TurnkeyClient::UpdateOrganizationNameIntent` initialize method"
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
46
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
47
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
48
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TurnkeyClient::UpdateOrganizationNameIntent`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
49
|
+
end
|
|
50
|
+
h[k.to_sym] = v
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
if attributes.key?(:'organization_name')
|
|
54
|
+
self.organization_name = attributes[:'organization_name']
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
59
|
+
# @return Array for valid properties with the reasons
|
|
60
|
+
def list_invalid_properties
|
|
61
|
+
invalid_properties = Array.new
|
|
62
|
+
if @organization_name.nil?
|
|
63
|
+
invalid_properties.push('invalid value for "organization_name", organization_name cannot be nil.')
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
invalid_properties
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# Check to see if the all the properties in the model are valid
|
|
70
|
+
# @return true if the model is valid
|
|
71
|
+
def valid?
|
|
72
|
+
return false if @organization_name.nil?
|
|
73
|
+
true
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Checks equality by comparing each attribute.
|
|
77
|
+
# @param [Object] Object to be compared
|
|
78
|
+
def ==(o)
|
|
79
|
+
return true if self.equal?(o)
|
|
80
|
+
self.class == o.class &&
|
|
81
|
+
organization_name == o.organization_name
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# @see the `==` method
|
|
85
|
+
# @param [Object] Object to be compared
|
|
86
|
+
def eql?(o)
|
|
87
|
+
self == o
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Calculates hash code according to all attributes.
|
|
91
|
+
# @return [Integer] Hash code
|
|
92
|
+
def hash
|
|
93
|
+
[organization_name].hash
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# Builds the object from hash
|
|
97
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
98
|
+
# @return [Object] Returns the model itself
|
|
99
|
+
def self.build_from_hash(attributes)
|
|
100
|
+
new.build_from_hash(attributes)
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# Builds the object from hash
|
|
104
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
105
|
+
# @return [Object] Returns the model itself
|
|
106
|
+
def build_from_hash(attributes)
|
|
107
|
+
return nil unless attributes.is_a?(Hash)
|
|
108
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
109
|
+
if type =~ /\AArray<(.*)>/i
|
|
110
|
+
# check to ensure the input is an array given that the attribute
|
|
111
|
+
# is documented as an array but the input is not
|
|
112
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
113
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
114
|
+
end
|
|
115
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
116
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
117
|
+
elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
118
|
+
self.send("#{key}=", nil)
|
|
119
|
+
end
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
self
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# Deserializes the data based on type
|
|
126
|
+
# @param string type Data type
|
|
127
|
+
# @param string value Value to be deserialized
|
|
128
|
+
# @return [Object] Deserialized data
|
|
129
|
+
def _deserialize(type, value)
|
|
130
|
+
case type.to_sym
|
|
131
|
+
when :DateTime
|
|
132
|
+
DateTime.parse(value)
|
|
133
|
+
when :Date
|
|
134
|
+
Date.parse(value)
|
|
135
|
+
when :String
|
|
136
|
+
value.to_s
|
|
137
|
+
when :Integer
|
|
138
|
+
value.to_i
|
|
139
|
+
when :Float
|
|
140
|
+
value.to_f
|
|
141
|
+
when :Boolean
|
|
142
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
143
|
+
true
|
|
144
|
+
else
|
|
145
|
+
false
|
|
146
|
+
end
|
|
147
|
+
when :Object
|
|
148
|
+
# generic object (usually a Hash), return directly
|
|
149
|
+
value
|
|
150
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
151
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
152
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
153
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
154
|
+
k_type = Regexp.last_match[:k_type]
|
|
155
|
+
v_type = Regexp.last_match[:v_type]
|
|
156
|
+
{}.tap do |hash|
|
|
157
|
+
value.each do |k, v|
|
|
158
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
159
|
+
end
|
|
160
|
+
end
|
|
161
|
+
else # model
|
|
162
|
+
TurnkeyClient.const_get(type).build_from_hash(value)
|
|
163
|
+
end
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
# Returns the string representation of the object
|
|
167
|
+
# @return [String] String presentation of the object
|
|
168
|
+
def to_s
|
|
169
|
+
to_hash.to_s
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
173
|
+
# @return [Hash] Returns the object in the form of hash
|
|
174
|
+
def to_body
|
|
175
|
+
to_hash
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
# Returns the object in the form of hash
|
|
179
|
+
# @return [Hash] Returns the object in the form of hash
|
|
180
|
+
def to_hash
|
|
181
|
+
hash = {}
|
|
182
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
183
|
+
value = self.send(attr)
|
|
184
|
+
if value.nil?
|
|
185
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
186
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
hash[param] = _to_hash(value)
|
|
190
|
+
end
|
|
191
|
+
hash
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
# Outputs non-array value in the form of hash
|
|
195
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
196
|
+
# @param [Object] value Any valid value
|
|
197
|
+
# @return [Hash] Returns the value in the form of hash
|
|
198
|
+
def _to_hash(value)
|
|
199
|
+
if value.is_a?(Array)
|
|
200
|
+
value.compact.map { |v| _to_hash(v) }
|
|
201
|
+
elsif value.is_a?(Hash)
|
|
202
|
+
{}.tap do |hash|
|
|
203
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
204
|
+
end
|
|
205
|
+
elsif value.respond_to? :to_hash
|
|
206
|
+
value.to_hash
|
|
207
|
+
else
|
|
208
|
+
value
|
|
209
|
+
end
|
|
210
|
+
end end
|
|
211
|
+
end
|