turnkey_client 0.0.15 → 0.0.17
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/.gitignore +39 -0
- data/.rspec +2 -0
- data/.swagger-codegen/VERSION +1 -0
- data/.swagger-codegen-ignore +23 -0
- data/lib/turnkey_client/api/app_proof_api.rb +4 -4
- data/lib/turnkey_client/api/broadcasting_api.rb +251 -0
- data/lib/turnkey_client/api/on_ramp_api.rb +290 -0
- data/lib/turnkey_client/api/policies_api.rb +58 -0
- data/lib/turnkey_client/api/send_transactions_api.rb +77 -0
- data/lib/turnkey_client/api/wallets_api.rb +58 -0
- data/lib/turnkey_client/models/activity.rb +1 -1
- data/lib/turnkey_client/models/activity_type.rb +16 -0
- data/lib/turnkey_client/models/approve_activity_request.rb +14 -4
- data/lib/turnkey_client/models/client_signature.rb +255 -0
- data/lib/turnkey_client/models/client_signature_scheme.rb +26 -0
- data/lib/turnkey_client/models/create_api_keys_request.rb +14 -4
- data/lib/turnkey_client/models/create_authenticators_request.rb +14 -4
- data/lib/turnkey_client/models/create_fiat_on_ramp_credential_intent.rb +272 -0
- data/lib/turnkey_client/models/create_fiat_on_ramp_credential_request.rb +298 -0
- data/lib/turnkey_client/models/create_fiat_on_ramp_credential_result.rb +211 -0
- data/lib/turnkey_client/models/create_invitations_request.rb +14 -4
- data/lib/turnkey_client/models/create_oauth2_credential_request.rb +14 -4
- data/lib/turnkey_client/models/create_oauth_providers_request.rb +14 -4
- data/lib/turnkey_client/models/create_policies_request.rb +14 -4
- data/lib/turnkey_client/models/create_policy_intent_v3.rb +6 -0
- data/lib/turnkey_client/models/create_policy_request.rb +14 -4
- data/lib/turnkey_client/models/create_private_key_tag_request.rb +14 -4
- data/lib/turnkey_client/models/create_private_keys_request.rb +14 -4
- data/lib/turnkey_client/models/create_read_only_session_request.rb +14 -4
- data/lib/turnkey_client/models/create_read_write_session_request.rb +14 -4
- data/lib/turnkey_client/models/create_smart_contract_interface_intent.rb +1 -1
- data/lib/turnkey_client/models/create_smart_contract_interface_request.rb +14 -4
- data/lib/turnkey_client/models/create_sub_organization_intent_v7.rb +14 -5
- data/lib/turnkey_client/models/create_sub_organization_request.rb +14 -4
- data/lib/turnkey_client/models/create_tvc_app_intent.rb +277 -0
- data/lib/turnkey_client/models/create_tvc_app_result.rb +258 -0
- data/lib/turnkey_client/models/create_tvc_deployment_intent.rb +346 -0
- data/lib/turnkey_client/models/create_tvc_deployment_result.rb +226 -0
- data/lib/turnkey_client/models/create_tvc_manifest_approvals_intent.rb +228 -0
- data/lib/turnkey_client/models/create_tvc_manifest_approvals_result.rb +213 -0
- data/lib/turnkey_client/models/create_user_tag_request.rb +14 -4
- data/lib/turnkey_client/models/create_users_request.rb +14 -4
- data/lib/turnkey_client/models/create_wallet_accounts_intent.rb +15 -4
- data/lib/turnkey_client/models/create_wallet_accounts_request.rb +14 -4
- data/lib/turnkey_client/models/create_wallet_request.rb +14 -4
- data/lib/turnkey_client/models/curve.rb +1 -0
- data/lib/turnkey_client/models/custom_revert_error.rb +218 -0
- data/lib/turnkey_client/models/data_v1_signature_scheme.rb +26 -0
- data/lib/turnkey_client/models/delete_api_keys_request.rb +14 -4
- data/lib/turnkey_client/models/delete_authenticators_request.rb +14 -4
- data/lib/turnkey_client/models/delete_fiat_on_ramp_credential_intent.rb +211 -0
- data/lib/turnkey_client/models/delete_fiat_on_ramp_credential_request.rb +298 -0
- data/lib/turnkey_client/models/delete_fiat_on_ramp_credential_result.rb +211 -0
- data/lib/turnkey_client/models/delete_invitation_request.rb +14 -4
- data/lib/turnkey_client/models/delete_oauth2_credential_request.rb +14 -4
- data/lib/turnkey_client/models/delete_oauth_providers_request.rb +14 -4
- data/lib/turnkey_client/models/delete_policies_intent.rb +213 -0
- data/lib/turnkey_client/models/delete_policies_request.rb +298 -0
- data/lib/turnkey_client/models/delete_policies_result.rb +213 -0
- data/lib/turnkey_client/models/delete_policy_request.rb +14 -4
- data/lib/turnkey_client/models/delete_private_key_tags_request.rb +14 -4
- data/lib/turnkey_client/models/delete_private_keys_request.rb +14 -4
- data/lib/turnkey_client/models/delete_smart_contract_interface_request.rb +14 -4
- data/lib/turnkey_client/models/delete_sub_organization_request.rb +14 -4
- data/lib/turnkey_client/models/delete_user_tags_request.rb +14 -4
- data/lib/turnkey_client/models/delete_users_request.rb +14 -4
- data/lib/turnkey_client/models/delete_wallet_accounts_intent.rb +224 -0
- data/lib/turnkey_client/models/delete_wallet_accounts_request.rb +298 -0
- data/lib/turnkey_client/models/delete_wallet_accounts_result.rb +213 -0
- data/lib/turnkey_client/models/delete_wallets_request.rb +14 -4
- data/lib/turnkey_client/models/email_auth_customization_params.rb +255 -0
- data/lib/turnkey_client/models/email_auth_intent_v3.rb +306 -0
- data/lib/turnkey_client/models/email_auth_request.rb +16 -6
- data/lib/turnkey_client/models/email_customization_params_v2.rb +240 -0
- data/lib/turnkey_client/models/eth_send_raw_transaction_intent.rb +260 -0
- data/lib/turnkey_client/models/eth_send_raw_transaction_result.rb +211 -0
- data/lib/turnkey_client/models/eth_send_transaction_intent.rb +363 -0
- data/lib/turnkey_client/models/eth_send_transaction_request.rb +298 -0
- data/lib/turnkey_client/models/eth_send_transaction_result.rb +211 -0
- data/lib/turnkey_client/models/eth_send_transaction_status.rb +207 -0
- data/lib/turnkey_client/models/export_private_key_request.rb +14 -4
- data/lib/turnkey_client/models/export_wallet_account_request.rb +14 -4
- data/lib/turnkey_client/models/export_wallet_request.rb +14 -4
- data/lib/turnkey_client/models/fiat_on_ramp_credential.rb +330 -0
- data/lib/turnkey_client/models/get_gas_usage_request.rb +211 -0
- data/lib/turnkey_client/models/get_gas_usage_response.rb +241 -0
- data/lib/turnkey_client/models/get_nonces_request.rb +261 -0
- data/lib/turnkey_client/models/get_nonces_response.rb +218 -0
- data/lib/turnkey_client/models/get_on_ramp_transaction_status_request.rb +237 -0
- data/lib/turnkey_client/models/get_on_ramp_transaction_status_response.rb +211 -0
- data/lib/turnkey_client/models/get_send_transaction_status_request.rb +226 -0
- data/lib/turnkey_client/models/get_send_transaction_status_response.rb +240 -0
- data/lib/turnkey_client/models/import_private_key_request.rb +14 -4
- data/lib/turnkey_client/models/import_wallet_request.rb +14 -4
- data/lib/turnkey_client/models/init_fiat_on_ramp_request.rb +14 -4
- data/lib/turnkey_client/models/init_import_private_key_request.rb +14 -4
- data/lib/turnkey_client/models/init_import_wallet_request.rb +14 -4
- data/lib/turnkey_client/models/init_otp_auth_intent_v3.rb +336 -0
- data/lib/turnkey_client/models/init_otp_auth_request.rb +16 -6
- data/lib/turnkey_client/models/init_otp_intent_v2.rb +336 -0
- data/lib/turnkey_client/models/init_otp_request.rb +16 -6
- data/lib/turnkey_client/models/init_user_email_recovery_intent.rb +37 -4
- data/lib/turnkey_client/models/init_user_email_recovery_intent_v2.rb +284 -0
- data/lib/turnkey_client/models/init_user_email_recovery_request.rb +16 -6
- data/lib/turnkey_client/models/intent.rb +148 -4
- data/lib/turnkey_client/models/list_fiat_on_ramp_credentials_request.rb +211 -0
- data/lib/turnkey_client/models/list_fiat_on_ramp_credentials_response.rb +212 -0
- data/lib/turnkey_client/models/native_revert_error.rb +229 -0
- data/lib/turnkey_client/models/oauth2_authenticate_request.rb +14 -4
- data/lib/turnkey_client/models/oauth_login_request.rb +14 -4
- data/lib/turnkey_client/models/oauth_request.rb +14 -4
- data/lib/turnkey_client/models/otp_auth_request.rb +14 -4
- data/lib/turnkey_client/models/otp_login_intent.rb +0 -2
- data/lib/turnkey_client/models/otp_login_request.rb +14 -4
- data/lib/turnkey_client/models/recover_user_request.rb +14 -4
- data/lib/turnkey_client/models/reject_activity_request.rb +14 -4
- data/lib/turnkey_client/models/remove_organization_feature_request.rb +14 -4
- data/lib/turnkey_client/models/result.rb +112 -4
- data/lib/turnkey_client/models/revert_chain_entry.rb +253 -0
- data/lib/turnkey_client/models/set_organization_feature_request.rb +14 -4
- data/lib/turnkey_client/models/sign_raw_payload_request.rb +14 -4
- data/lib/turnkey_client/models/sign_raw_payloads_request.rb +14 -4
- data/lib/turnkey_client/models/sign_transaction_request.rb +14 -4
- data/lib/turnkey_client/models/sol_send_transaction_intent.rb +297 -0
- data/lib/turnkey_client/models/sol_send_transaction_request.rb +298 -0
- data/lib/turnkey_client/models/sol_send_transaction_result.rb +211 -0
- data/lib/turnkey_client/models/stamp_login_request.rb +14 -4
- data/lib/turnkey_client/models/transaction_type.rb +2 -0
- data/lib/turnkey_client/models/tvc_manifest_approval.rb +226 -0
- data/lib/turnkey_client/models/tvc_operator_params.rb +226 -0
- data/lib/turnkey_client/models/tvc_operator_set_params.rb +250 -0
- data/lib/turnkey_client/models/tx_error.rb +218 -0
- data/lib/turnkey_client/models/unknown_revert_error.rb +218 -0
- data/lib/turnkey_client/models/update_auth_proxy_config_intent.rb +27 -5
- data/lib/turnkey_client/models/update_fiat_on_ramp_credential_intent.rb +277 -0
- data/lib/turnkey_client/models/update_fiat_on_ramp_credential_request.rb +298 -0
- data/lib/turnkey_client/models/update_fiat_on_ramp_credential_result.rb +211 -0
- data/lib/turnkey_client/models/update_oauth2_credential_request.rb +14 -4
- data/lib/turnkey_client/models/update_policy_request.rb +14 -4
- data/lib/turnkey_client/models/update_private_key_tag_request.rb +14 -4
- data/lib/turnkey_client/models/update_root_quorum_request.rb +14 -4
- data/lib/turnkey_client/models/update_user_email_request.rb +14 -4
- data/lib/turnkey_client/models/update_user_name_request.rb +14 -4
- data/lib/turnkey_client/models/update_user_phone_number_request.rb +14 -4
- data/lib/turnkey_client/models/update_user_request.rb +14 -4
- data/lib/turnkey_client/models/update_user_tag_request.rb +14 -4
- data/lib/turnkey_client/models/update_wallet_request.rb +14 -4
- data/lib/turnkey_client/models/upsert_gas_usage_config_intent.rb +241 -0
- data/lib/turnkey_client/models/upsert_gas_usage_config_result.rb +211 -0
- data/lib/turnkey_client/models/verify_otp_request.rb +14 -4
- data/lib/turnkey_client/version.rb +1 -1
- data/lib/turnkey_client.rb +63 -2
- data/turnkey_client.gemspec +1 -1
- metadata +90 -33
- data/turnkey_client-0.0.12.gem +0 -0
- data/turnkey_client-0.0.13.gem +0 -0
- data/turnkey_client-0.0.14.gem +0 -0
- data/turnkey_client-0.0.2.gem +0 -0
- data/turnkey_client-0.0.3.gem +0 -0
- data/turnkey_client-0.0.4.gem +0 -0
- data/turnkey_client-0.0.7.gem +0 -0
- data/turnkey_client-0.0.8.gem +0 -0
- data/turnkey_client-0.0.9.gem +0 -0
|
@@ -22,6 +22,8 @@ module TurnkeyClient
|
|
|
22
22
|
|
|
23
23
|
attr_accessor :parameters
|
|
24
24
|
|
|
25
|
+
attr_accessor :generate_app_proofs
|
|
26
|
+
|
|
25
27
|
class EnumAttributeValidator
|
|
26
28
|
attr_reader :datatype
|
|
27
29
|
attr_reader :allowable_values
|
|
@@ -50,7 +52,8 @@ module TurnkeyClient
|
|
|
50
52
|
:'type' => :'type',
|
|
51
53
|
:'timestamp_ms' => :'timestampMs',
|
|
52
54
|
:'organization_id' => :'organizationId',
|
|
53
|
-
:'parameters' => :'parameters'
|
|
55
|
+
:'parameters' => :'parameters',
|
|
56
|
+
:'generate_app_proofs' => :'generateAppProofs'
|
|
54
57
|
}
|
|
55
58
|
end
|
|
56
59
|
|
|
@@ -60,13 +63,15 @@ module TurnkeyClient
|
|
|
60
63
|
:'type' => :'Object',
|
|
61
64
|
:'timestamp_ms' => :'Object',
|
|
62
65
|
:'organization_id' => :'Object',
|
|
63
|
-
:'parameters' => :'Object'
|
|
66
|
+
:'parameters' => :'Object',
|
|
67
|
+
:'generate_app_proofs' => :'Object'
|
|
64
68
|
}
|
|
65
69
|
end
|
|
66
70
|
|
|
67
71
|
# List of attributes with nullable: true
|
|
68
72
|
def self.openapi_nullable
|
|
69
73
|
Set.new([
|
|
74
|
+
:'generate_app_proofs'
|
|
70
75
|
])
|
|
71
76
|
end
|
|
72
77
|
|
|
@@ -100,6 +105,10 @@ module TurnkeyClient
|
|
|
100
105
|
if attributes.key?(:'parameters')
|
|
101
106
|
self.parameters = attributes[:'parameters']
|
|
102
107
|
end
|
|
108
|
+
|
|
109
|
+
if attributes.key?(:'generate_app_proofs')
|
|
110
|
+
self.generate_app_proofs = attributes[:'generate_app_proofs']
|
|
111
|
+
end
|
|
103
112
|
end
|
|
104
113
|
|
|
105
114
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -155,7 +164,8 @@ module TurnkeyClient
|
|
|
155
164
|
type == o.type &&
|
|
156
165
|
timestamp_ms == o.timestamp_ms &&
|
|
157
166
|
organization_id == o.organization_id &&
|
|
158
|
-
parameters == o.parameters
|
|
167
|
+
parameters == o.parameters &&
|
|
168
|
+
generate_app_proofs == o.generate_app_proofs
|
|
159
169
|
end
|
|
160
170
|
|
|
161
171
|
# @see the `==` method
|
|
@@ -167,7 +177,7 @@ module TurnkeyClient
|
|
|
167
177
|
# Calculates hash code according to all attributes.
|
|
168
178
|
# @return [Integer] Hash code
|
|
169
179
|
def hash
|
|
170
|
-
[type, timestamp_ms, organization_id, parameters].hash
|
|
180
|
+
[type, timestamp_ms, organization_id, parameters, generate_app_proofs].hash
|
|
171
181
|
end
|
|
172
182
|
|
|
173
183
|
# Builds the object from hash
|
|
@@ -22,6 +22,8 @@ module TurnkeyClient
|
|
|
22
22
|
|
|
23
23
|
attr_accessor :parameters
|
|
24
24
|
|
|
25
|
+
attr_accessor :generate_app_proofs
|
|
26
|
+
|
|
25
27
|
class EnumAttributeValidator
|
|
26
28
|
attr_reader :datatype
|
|
27
29
|
attr_reader :allowable_values
|
|
@@ -50,7 +52,8 @@ module TurnkeyClient
|
|
|
50
52
|
:'type' => :'type',
|
|
51
53
|
:'timestamp_ms' => :'timestampMs',
|
|
52
54
|
:'organization_id' => :'organizationId',
|
|
53
|
-
:'parameters' => :'parameters'
|
|
55
|
+
:'parameters' => :'parameters',
|
|
56
|
+
:'generate_app_proofs' => :'generateAppProofs'
|
|
54
57
|
}
|
|
55
58
|
end
|
|
56
59
|
|
|
@@ -60,13 +63,15 @@ module TurnkeyClient
|
|
|
60
63
|
:'type' => :'Object',
|
|
61
64
|
:'timestamp_ms' => :'Object',
|
|
62
65
|
:'organization_id' => :'Object',
|
|
63
|
-
:'parameters' => :'Object'
|
|
66
|
+
:'parameters' => :'Object',
|
|
67
|
+
:'generate_app_proofs' => :'Object'
|
|
64
68
|
}
|
|
65
69
|
end
|
|
66
70
|
|
|
67
71
|
# List of attributes with nullable: true
|
|
68
72
|
def self.openapi_nullable
|
|
69
73
|
Set.new([
|
|
74
|
+
:'generate_app_proofs'
|
|
70
75
|
])
|
|
71
76
|
end
|
|
72
77
|
|
|
@@ -100,6 +105,10 @@ module TurnkeyClient
|
|
|
100
105
|
if attributes.key?(:'parameters')
|
|
101
106
|
self.parameters = attributes[:'parameters']
|
|
102
107
|
end
|
|
108
|
+
|
|
109
|
+
if attributes.key?(:'generate_app_proofs')
|
|
110
|
+
self.generate_app_proofs = attributes[:'generate_app_proofs']
|
|
111
|
+
end
|
|
103
112
|
end
|
|
104
113
|
|
|
105
114
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -155,7 +164,8 @@ module TurnkeyClient
|
|
|
155
164
|
type == o.type &&
|
|
156
165
|
timestamp_ms == o.timestamp_ms &&
|
|
157
166
|
organization_id == o.organization_id &&
|
|
158
|
-
parameters == o.parameters
|
|
167
|
+
parameters == o.parameters &&
|
|
168
|
+
generate_app_proofs == o.generate_app_proofs
|
|
159
169
|
end
|
|
160
170
|
|
|
161
171
|
# @see the `==` method
|
|
@@ -167,7 +177,7 @@ module TurnkeyClient
|
|
|
167
177
|
# Calculates hash code according to all attributes.
|
|
168
178
|
# @return [Integer] Hash code
|
|
169
179
|
def hash
|
|
170
|
-
[type, timestamp_ms, organization_id, parameters].hash
|
|
180
|
+
[type, timestamp_ms, organization_id, parameters, generate_app_proofs].hash
|
|
171
181
|
end
|
|
172
182
|
|
|
173
183
|
# Builds the object from hash
|
|
@@ -15,7 +15,7 @@ module TurnkeyClient
|
|
|
15
15
|
# Corresponding contract address or program ID
|
|
16
16
|
attr_accessor :smart_contract_address
|
|
17
17
|
|
|
18
|
-
# ABI/IDL as a JSON string
|
|
18
|
+
# ABI/IDL as a JSON string. Limited to 400kb
|
|
19
19
|
attr_accessor :smart_contract_interface
|
|
20
20
|
|
|
21
21
|
attr_accessor :type
|
|
@@ -22,6 +22,8 @@ module TurnkeyClient
|
|
|
22
22
|
|
|
23
23
|
attr_accessor :parameters
|
|
24
24
|
|
|
25
|
+
attr_accessor :generate_app_proofs
|
|
26
|
+
|
|
25
27
|
class EnumAttributeValidator
|
|
26
28
|
attr_reader :datatype
|
|
27
29
|
attr_reader :allowable_values
|
|
@@ -50,7 +52,8 @@ module TurnkeyClient
|
|
|
50
52
|
:'type' => :'type',
|
|
51
53
|
:'timestamp_ms' => :'timestampMs',
|
|
52
54
|
:'organization_id' => :'organizationId',
|
|
53
|
-
:'parameters' => :'parameters'
|
|
55
|
+
:'parameters' => :'parameters',
|
|
56
|
+
:'generate_app_proofs' => :'generateAppProofs'
|
|
54
57
|
}
|
|
55
58
|
end
|
|
56
59
|
|
|
@@ -60,13 +63,15 @@ module TurnkeyClient
|
|
|
60
63
|
:'type' => :'Object',
|
|
61
64
|
:'timestamp_ms' => :'Object',
|
|
62
65
|
:'organization_id' => :'Object',
|
|
63
|
-
:'parameters' => :'Object'
|
|
66
|
+
:'parameters' => :'Object',
|
|
67
|
+
:'generate_app_proofs' => :'Object'
|
|
64
68
|
}
|
|
65
69
|
end
|
|
66
70
|
|
|
67
71
|
# List of attributes with nullable: true
|
|
68
72
|
def self.openapi_nullable
|
|
69
73
|
Set.new([
|
|
74
|
+
:'generate_app_proofs'
|
|
70
75
|
])
|
|
71
76
|
end
|
|
72
77
|
|
|
@@ -100,6 +105,10 @@ module TurnkeyClient
|
|
|
100
105
|
if attributes.key?(:'parameters')
|
|
101
106
|
self.parameters = attributes[:'parameters']
|
|
102
107
|
end
|
|
108
|
+
|
|
109
|
+
if attributes.key?(:'generate_app_proofs')
|
|
110
|
+
self.generate_app_proofs = attributes[:'generate_app_proofs']
|
|
111
|
+
end
|
|
103
112
|
end
|
|
104
113
|
|
|
105
114
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -155,7 +164,8 @@ module TurnkeyClient
|
|
|
155
164
|
type == o.type &&
|
|
156
165
|
timestamp_ms == o.timestamp_ms &&
|
|
157
166
|
organization_id == o.organization_id &&
|
|
158
|
-
parameters == o.parameters
|
|
167
|
+
parameters == o.parameters &&
|
|
168
|
+
generate_app_proofs == o.generate_app_proofs
|
|
159
169
|
end
|
|
160
170
|
|
|
161
171
|
# @see the `==` method
|
|
@@ -167,7 +177,7 @@ module TurnkeyClient
|
|
|
167
177
|
# Calculates hash code according to all attributes.
|
|
168
178
|
# @return [Integer] Hash code
|
|
169
179
|
def hash
|
|
170
|
-
[type, timestamp_ms, organization_id, parameters].hash
|
|
180
|
+
[type, timestamp_ms, organization_id, parameters, generate_app_proofs].hash
|
|
171
181
|
end
|
|
172
182
|
|
|
173
183
|
# Builds the object from hash
|
|
@@ -38,6 +38,8 @@ module TurnkeyClient
|
|
|
38
38
|
# Signed JWT containing a unique id, expiry, verification type, contact
|
|
39
39
|
attr_accessor :verification_token
|
|
40
40
|
|
|
41
|
+
attr_accessor :client_signature
|
|
42
|
+
|
|
41
43
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
42
44
|
def self.attribute_map
|
|
43
45
|
{
|
|
@@ -49,7 +51,8 @@ module TurnkeyClient
|
|
|
49
51
|
:'disable_email_auth' => :'disableEmailAuth',
|
|
50
52
|
:'disable_sms_auth' => :'disableSmsAuth',
|
|
51
53
|
:'disable_otp_email_auth' => :'disableOtpEmailAuth',
|
|
52
|
-
:'verification_token' => :'verificationToken'
|
|
54
|
+
:'verification_token' => :'verificationToken',
|
|
55
|
+
:'client_signature' => :'clientSignature'
|
|
53
56
|
}
|
|
54
57
|
end
|
|
55
58
|
|
|
@@ -64,7 +67,8 @@ module TurnkeyClient
|
|
|
64
67
|
:'disable_email_auth' => :'Object',
|
|
65
68
|
:'disable_sms_auth' => :'Object',
|
|
66
69
|
:'disable_otp_email_auth' => :'Object',
|
|
67
|
-
:'verification_token' => :'Object'
|
|
70
|
+
:'verification_token' => :'Object',
|
|
71
|
+
:'client_signature' => :'Object'
|
|
68
72
|
}
|
|
69
73
|
end
|
|
70
74
|
|
|
@@ -75,7 +79,7 @@ module TurnkeyClient
|
|
|
75
79
|
:'disable_email_auth',
|
|
76
80
|
:'disable_sms_auth',
|
|
77
81
|
:'disable_otp_email_auth',
|
|
78
|
-
:'verification_token'
|
|
82
|
+
:'verification_token',
|
|
79
83
|
])
|
|
80
84
|
end
|
|
81
85
|
|
|
@@ -131,6 +135,10 @@ module TurnkeyClient
|
|
|
131
135
|
if attributes.key?(:'verification_token')
|
|
132
136
|
self.verification_token = attributes[:'verification_token']
|
|
133
137
|
end
|
|
138
|
+
|
|
139
|
+
if attributes.key?(:'client_signature')
|
|
140
|
+
self.client_signature = attributes[:'client_signature']
|
|
141
|
+
end
|
|
134
142
|
end
|
|
135
143
|
|
|
136
144
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -174,7 +182,8 @@ module TurnkeyClient
|
|
|
174
182
|
disable_email_auth == o.disable_email_auth &&
|
|
175
183
|
disable_sms_auth == o.disable_sms_auth &&
|
|
176
184
|
disable_otp_email_auth == o.disable_otp_email_auth &&
|
|
177
|
-
verification_token == o.verification_token
|
|
185
|
+
verification_token == o.verification_token &&
|
|
186
|
+
client_signature == o.client_signature
|
|
178
187
|
end
|
|
179
188
|
|
|
180
189
|
# @see the `==` method
|
|
@@ -186,7 +195,7 @@ module TurnkeyClient
|
|
|
186
195
|
# Calculates hash code according to all attributes.
|
|
187
196
|
# @return [Integer] Hash code
|
|
188
197
|
def hash
|
|
189
|
-
[sub_organization_name, root_users, root_quorum_threshold, wallet, disable_email_recovery, disable_email_auth, disable_sms_auth, disable_otp_email_auth, verification_token].hash
|
|
198
|
+
[sub_organization_name, root_users, root_quorum_threshold, wallet, disable_email_recovery, disable_email_auth, disable_sms_auth, disable_otp_email_auth, verification_token, client_signature].hash
|
|
190
199
|
end
|
|
191
200
|
|
|
192
201
|
# Builds the object from hash
|
|
@@ -22,6 +22,8 @@ module TurnkeyClient
|
|
|
22
22
|
|
|
23
23
|
attr_accessor :parameters
|
|
24
24
|
|
|
25
|
+
attr_accessor :generate_app_proofs
|
|
26
|
+
|
|
25
27
|
class EnumAttributeValidator
|
|
26
28
|
attr_reader :datatype
|
|
27
29
|
attr_reader :allowable_values
|
|
@@ -50,7 +52,8 @@ module TurnkeyClient
|
|
|
50
52
|
:'type' => :'type',
|
|
51
53
|
:'timestamp_ms' => :'timestampMs',
|
|
52
54
|
:'organization_id' => :'organizationId',
|
|
53
|
-
:'parameters' => :'parameters'
|
|
55
|
+
:'parameters' => :'parameters',
|
|
56
|
+
:'generate_app_proofs' => :'generateAppProofs'
|
|
54
57
|
}
|
|
55
58
|
end
|
|
56
59
|
|
|
@@ -60,13 +63,15 @@ module TurnkeyClient
|
|
|
60
63
|
:'type' => :'Object',
|
|
61
64
|
:'timestamp_ms' => :'Object',
|
|
62
65
|
:'organization_id' => :'Object',
|
|
63
|
-
:'parameters' => :'Object'
|
|
66
|
+
:'parameters' => :'Object',
|
|
67
|
+
:'generate_app_proofs' => :'Object'
|
|
64
68
|
}
|
|
65
69
|
end
|
|
66
70
|
|
|
67
71
|
# List of attributes with nullable: true
|
|
68
72
|
def self.openapi_nullable
|
|
69
73
|
Set.new([
|
|
74
|
+
:'generate_app_proofs'
|
|
70
75
|
])
|
|
71
76
|
end
|
|
72
77
|
|
|
@@ -100,6 +105,10 @@ module TurnkeyClient
|
|
|
100
105
|
if attributes.key?(:'parameters')
|
|
101
106
|
self.parameters = attributes[:'parameters']
|
|
102
107
|
end
|
|
108
|
+
|
|
109
|
+
if attributes.key?(:'generate_app_proofs')
|
|
110
|
+
self.generate_app_proofs = attributes[:'generate_app_proofs']
|
|
111
|
+
end
|
|
103
112
|
end
|
|
104
113
|
|
|
105
114
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -155,7 +164,8 @@ module TurnkeyClient
|
|
|
155
164
|
type == o.type &&
|
|
156
165
|
timestamp_ms == o.timestamp_ms &&
|
|
157
166
|
organization_id == o.organization_id &&
|
|
158
|
-
parameters == o.parameters
|
|
167
|
+
parameters == o.parameters &&
|
|
168
|
+
generate_app_proofs == o.generate_app_proofs
|
|
159
169
|
end
|
|
160
170
|
|
|
161
171
|
# @see the `==` method
|
|
@@ -167,7 +177,7 @@ module TurnkeyClient
|
|
|
167
177
|
# Calculates hash code according to all attributes.
|
|
168
178
|
# @return [Integer] Hash code
|
|
169
179
|
def hash
|
|
170
|
-
[type, timestamp_ms, organization_id, parameters].hash
|
|
180
|
+
[type, timestamp_ms, organization_id, parameters, generate_app_proofs].hash
|
|
171
181
|
end
|
|
172
182
|
|
|
173
183
|
# Builds the object from hash
|
|
@@ -0,0 +1,277 @@
|
|
|
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 CreateTvcAppIntent
|
|
15
|
+
# The name of the new TVC application
|
|
16
|
+
attr_accessor :name
|
|
17
|
+
|
|
18
|
+
# Quorum public key to use for this application
|
|
19
|
+
attr_accessor :quorum_public_key
|
|
20
|
+
|
|
21
|
+
# Unique identifier for an existing TVC operator set to use as the Manifest Set for this TVC application. If left empty, a new Manifest Set configuration is required
|
|
22
|
+
attr_accessor :manifest_set_id
|
|
23
|
+
|
|
24
|
+
attr_accessor :manifest_set_params
|
|
25
|
+
|
|
26
|
+
# Unique identifier for an existing TVC operator set to use as the Share Set for this TVC application. If left empty, a new Share Set configuration is required
|
|
27
|
+
attr_accessor :share_set_id
|
|
28
|
+
|
|
29
|
+
attr_accessor :share_set_params
|
|
30
|
+
|
|
31
|
+
# Enables external connectivity for this TVC app. Default if not provided: false.
|
|
32
|
+
attr_accessor :external_connectivity
|
|
33
|
+
|
|
34
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
35
|
+
def self.attribute_map
|
|
36
|
+
{
|
|
37
|
+
:'name' => :'name',
|
|
38
|
+
:'quorum_public_key' => :'quorumPublicKey',
|
|
39
|
+
:'manifest_set_id' => :'manifestSetId',
|
|
40
|
+
:'manifest_set_params' => :'manifestSetParams',
|
|
41
|
+
:'share_set_id' => :'shareSetId',
|
|
42
|
+
:'share_set_params' => :'shareSetParams',
|
|
43
|
+
:'external_connectivity' => :'externalConnectivity'
|
|
44
|
+
}
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# Attribute type mapping.
|
|
48
|
+
def self.openapi_types
|
|
49
|
+
{
|
|
50
|
+
:'name' => :'Object',
|
|
51
|
+
:'quorum_public_key' => :'Object',
|
|
52
|
+
:'manifest_set_id' => :'Object',
|
|
53
|
+
:'manifest_set_params' => :'Object',
|
|
54
|
+
:'share_set_id' => :'Object',
|
|
55
|
+
:'share_set_params' => :'Object',
|
|
56
|
+
:'external_connectivity' => :'Object'
|
|
57
|
+
}
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# List of attributes with nullable: true
|
|
61
|
+
def self.openapi_nullable
|
|
62
|
+
Set.new([
|
|
63
|
+
:'manifest_set_id',
|
|
64
|
+
:'share_set_id',
|
|
65
|
+
:'external_connectivity'
|
|
66
|
+
])
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# Initializes the object
|
|
70
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
71
|
+
def initialize(attributes = {})
|
|
72
|
+
if (!attributes.is_a?(Hash))
|
|
73
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TurnkeyClient::CreateTvcAppIntent` initialize method"
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
77
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
78
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
79
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TurnkeyClient::CreateTvcAppIntent`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
80
|
+
end
|
|
81
|
+
h[k.to_sym] = v
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
if attributes.key?(:'name')
|
|
85
|
+
self.name = attributes[:'name']
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
if attributes.key?(:'quorum_public_key')
|
|
89
|
+
self.quorum_public_key = attributes[:'quorum_public_key']
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
if attributes.key?(:'manifest_set_id')
|
|
93
|
+
self.manifest_set_id = attributes[:'manifest_set_id']
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
if attributes.key?(:'manifest_set_params')
|
|
97
|
+
self.manifest_set_params = attributes[:'manifest_set_params']
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
if attributes.key?(:'share_set_id')
|
|
101
|
+
self.share_set_id = attributes[:'share_set_id']
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
if attributes.key?(:'share_set_params')
|
|
105
|
+
self.share_set_params = attributes[:'share_set_params']
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
if attributes.key?(:'external_connectivity')
|
|
109
|
+
self.external_connectivity = attributes[:'external_connectivity']
|
|
110
|
+
end
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
114
|
+
# @return Array for valid properties with the reasons
|
|
115
|
+
def list_invalid_properties
|
|
116
|
+
invalid_properties = Array.new
|
|
117
|
+
if @name.nil?
|
|
118
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
if @quorum_public_key.nil?
|
|
122
|
+
invalid_properties.push('invalid value for "quorum_public_key", quorum_public_key cannot be nil.')
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
invalid_properties
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# Check to see if the all the properties in the model are valid
|
|
129
|
+
# @return true if the model is valid
|
|
130
|
+
def valid?
|
|
131
|
+
return false if @name.nil?
|
|
132
|
+
return false if @quorum_public_key.nil?
|
|
133
|
+
true
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# Checks equality by comparing each attribute.
|
|
137
|
+
# @param [Object] Object to be compared
|
|
138
|
+
def ==(o)
|
|
139
|
+
return true if self.equal?(o)
|
|
140
|
+
self.class == o.class &&
|
|
141
|
+
name == o.name &&
|
|
142
|
+
quorum_public_key == o.quorum_public_key &&
|
|
143
|
+
manifest_set_id == o.manifest_set_id &&
|
|
144
|
+
manifest_set_params == o.manifest_set_params &&
|
|
145
|
+
share_set_id == o.share_set_id &&
|
|
146
|
+
share_set_params == o.share_set_params &&
|
|
147
|
+
external_connectivity == o.external_connectivity
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
# @see the `==` method
|
|
151
|
+
# @param [Object] Object to be compared
|
|
152
|
+
def eql?(o)
|
|
153
|
+
self == o
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
# Calculates hash code according to all attributes.
|
|
157
|
+
# @return [Integer] Hash code
|
|
158
|
+
def hash
|
|
159
|
+
[name, quorum_public_key, manifest_set_id, manifest_set_params, share_set_id, share_set_params, external_connectivity].hash
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
# Builds the object from hash
|
|
163
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
164
|
+
# @return [Object] Returns the model itself
|
|
165
|
+
def self.build_from_hash(attributes)
|
|
166
|
+
new.build_from_hash(attributes)
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
# Builds the object from hash
|
|
170
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
171
|
+
# @return [Object] Returns the model itself
|
|
172
|
+
def build_from_hash(attributes)
|
|
173
|
+
return nil unless attributes.is_a?(Hash)
|
|
174
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
175
|
+
if type =~ /\AArray<(.*)>/i
|
|
176
|
+
# check to ensure the input is an array given that the attribute
|
|
177
|
+
# is documented as an array but the input is not
|
|
178
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
179
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
180
|
+
end
|
|
181
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
182
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
183
|
+
elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
184
|
+
self.send("#{key}=", nil)
|
|
185
|
+
end
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
self
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
# Deserializes the data based on type
|
|
192
|
+
# @param string type Data type
|
|
193
|
+
# @param string value Value to be deserialized
|
|
194
|
+
# @return [Object] Deserialized data
|
|
195
|
+
def _deserialize(type, value)
|
|
196
|
+
case type.to_sym
|
|
197
|
+
when :DateTime
|
|
198
|
+
DateTime.parse(value)
|
|
199
|
+
when :Date
|
|
200
|
+
Date.parse(value)
|
|
201
|
+
when :String
|
|
202
|
+
value.to_s
|
|
203
|
+
when :Integer
|
|
204
|
+
value.to_i
|
|
205
|
+
when :Float
|
|
206
|
+
value.to_f
|
|
207
|
+
when :Boolean
|
|
208
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
209
|
+
true
|
|
210
|
+
else
|
|
211
|
+
false
|
|
212
|
+
end
|
|
213
|
+
when :Object
|
|
214
|
+
# generic object (usually a Hash), return directly
|
|
215
|
+
value
|
|
216
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
217
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
218
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
219
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
220
|
+
k_type = Regexp.last_match[:k_type]
|
|
221
|
+
v_type = Regexp.last_match[:v_type]
|
|
222
|
+
{}.tap do |hash|
|
|
223
|
+
value.each do |k, v|
|
|
224
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
225
|
+
end
|
|
226
|
+
end
|
|
227
|
+
else # model
|
|
228
|
+
TurnkeyClient.const_get(type).build_from_hash(value)
|
|
229
|
+
end
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
# Returns the string representation of the object
|
|
233
|
+
# @return [String] String presentation of the object
|
|
234
|
+
def to_s
|
|
235
|
+
to_hash.to_s
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
239
|
+
# @return [Hash] Returns the object in the form of hash
|
|
240
|
+
def to_body
|
|
241
|
+
to_hash
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
# Returns the object in the form of hash
|
|
245
|
+
# @return [Hash] Returns the object in the form of hash
|
|
246
|
+
def to_hash
|
|
247
|
+
hash = {}
|
|
248
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
249
|
+
value = self.send(attr)
|
|
250
|
+
if value.nil?
|
|
251
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
252
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
hash[param] = _to_hash(value)
|
|
256
|
+
end
|
|
257
|
+
hash
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
# Outputs non-array value in the form of hash
|
|
261
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
262
|
+
# @param [Object] value Any valid value
|
|
263
|
+
# @return [Hash] Returns the value in the form of hash
|
|
264
|
+
def _to_hash(value)
|
|
265
|
+
if value.is_a?(Array)
|
|
266
|
+
value.compact.map { |v| _to_hash(v) }
|
|
267
|
+
elsif value.is_a?(Hash)
|
|
268
|
+
{}.tap do |hash|
|
|
269
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
270
|
+
end
|
|
271
|
+
elsif value.respond_to? :to_hash
|
|
272
|
+
value.to_hash
|
|
273
|
+
else
|
|
274
|
+
value
|
|
275
|
+
end
|
|
276
|
+
end end
|
|
277
|
+
end
|