turnkey_client 0.0.14 → 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 +77 -0
- data/lib/turnkey_client/api/boot_proof_api.rb +135 -0
- data/lib/turnkey_client/api/broadcasting_api.rb +251 -0
- data/lib/turnkey_client/api/default_api.rb +77 -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/user_auth_api.rb +290 -0
- data/lib/turnkey_client/api/wallets_api.rb +58 -0
- data/lib/turnkey_client/models/activity.rb +13 -1
- data/lib/turnkey_client/models/activity_type.rb +23 -0
- data/lib/turnkey_client/models/app_proof.rb +255 -0
- data/lib/turnkey_client/models/approve_activity_request.rb +14 -4
- 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/client_signature.rb +255 -0
- data/lib/turnkey_client/models/client_signature_scheme.rb +26 -0
- data/lib/turnkey_client/models/common_v1_policy_evaluation.rb +214 -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_intent.rb +240 -0
- data/lib/turnkey_client/models/create_oauth2_credential_request.rb +298 -0
- data/lib/turnkey_client/models/create_oauth2_credential_result.rb +211 -0
- 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 +25 -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_intent.rb +211 -0
- data/lib/turnkey_client/models/delete_oauth2_credential_request.rb +298 -0
- data/lib/turnkey_client/models/delete_oauth2_credential_result.rb +211 -0
- 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/disable_auth_proxy_intent.rb +196 -0
- data/lib/turnkey_client/models/disable_auth_proxy_result.rb +196 -0
- 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/enable_auth_proxy_intent.rb +196 -0
- data/lib/turnkey_client/models/enable_auth_proxy_result.rb +211 -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/feature_name.rb +1 -0
- data/lib/turnkey_client/models/fiat_on_ramp_credential.rb +330 -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_gas_usage_request.rb +211 -0
- data/lib/turnkey_client/models/get_gas_usage_response.rb +241 -0
- data/lib/turnkey_client/models/get_latest_boot_proof_request.rb +226 -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_oauth2_credential_request.rb +226 -0
- data/lib/turnkey_client/models/get_oauth2_credential_response.rb +210 -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/get_wallet_accounts_request.rb +12 -1
- 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_intent.rb +16 -5
- data/lib/turnkey_client/models/init_fiat_on_ramp_request.rb +14 -4
- data/lib/turnkey_client/models/init_fiat_on_ramp_result.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 +211 -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/list_oauth2_credentials_request.rb +211 -0
- data/lib/turnkey_client/models/list_oauth2_credentials_response.rb +212 -0
- data/lib/turnkey_client/models/native_revert_error.rb +229 -0
- data/lib/turnkey_client/models/oauth2_authenticate_intent.rb +278 -0
- data/lib/turnkey_client/models/oauth2_authenticate_request.rb +298 -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/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 +14 -5
- data/lib/turnkey_client/models/otp_login_request.rb +14 -4
- data/lib/turnkey_client/models/payload_encoding.rb +1 -0
- 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 +175 -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/signature_scheme.rb +26 -0
- data/lib/turnkey_client/models/smart_contract_interface.rb +329 -0
- 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 +368 -0
- data/lib/turnkey_client/models/update_auth_proxy_config_result.rb +206 -0
- 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_intent.rb +255 -0
- data/lib/turnkey_client/models/update_oauth2_credential_request.rb +298 -0
- data/lib/turnkey_client/models/update_oauth2_credential_result.rb +211 -0
- 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_intent.rb +16 -5
- data/lib/turnkey_client/models/verify_otp_request.rb +14 -4
- 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 +98 -1
- data/turnkey_client.gemspec +1 -1
- metadata +128 -32
- data/turnkey_client-0.0.12.gem +0 -0
- data/turnkey_client-0.0.13.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
|
@@ -15,6 +15,64 @@ module TurnkeyClient
|
|
|
15
15
|
def initialize(api_client = ApiClient.default)
|
|
16
16
|
@api_client = api_client
|
|
17
17
|
end
|
|
18
|
+
# Create an OAuth 2.0 Credential
|
|
19
|
+
# Enable authentication for end users with an OAuth 2.0 provider
|
|
20
|
+
# @param body
|
|
21
|
+
# @param [Hash] opts the optional parameters
|
|
22
|
+
# @return [ActivityResponse]
|
|
23
|
+
def create_oauth2_credential(body, opts = {})
|
|
24
|
+
data, _status_code, _headers = create_oauth2_credential_with_http_info(body, opts)
|
|
25
|
+
data
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# Create an OAuth 2.0 Credential
|
|
29
|
+
# Enable authentication for end users with an OAuth 2.0 provider
|
|
30
|
+
# @param body
|
|
31
|
+
# @param [Hash] opts the optional parameters
|
|
32
|
+
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|
|
33
|
+
def create_oauth2_credential_with_http_info(body, opts = {})
|
|
34
|
+
if @api_client.config.debugging
|
|
35
|
+
@api_client.config.logger.debug 'Calling API: UserAuthApi.create_oauth2_credential ...'
|
|
36
|
+
end
|
|
37
|
+
# verify the required parameter 'body' is set
|
|
38
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
39
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling UserAuthApi.create_oauth2_credential"
|
|
40
|
+
end
|
|
41
|
+
# resource path
|
|
42
|
+
local_var_path = '/public/v1/submit/create_oauth2_credential'
|
|
43
|
+
|
|
44
|
+
# query parameters
|
|
45
|
+
query_params = opts[:query_params] || {}
|
|
46
|
+
|
|
47
|
+
# header parameters
|
|
48
|
+
header_params = opts[:header_params] || {}
|
|
49
|
+
# HTTP header 'Accept' (if needed)
|
|
50
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
51
|
+
# HTTP header 'Content-Type'
|
|
52
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
53
|
+
|
|
54
|
+
# form parameters
|
|
55
|
+
form_params = opts[:form_params] || {}
|
|
56
|
+
|
|
57
|
+
# http body (model)
|
|
58
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
59
|
+
|
|
60
|
+
return_type = opts[:return_type] || 'ActivityResponse'
|
|
61
|
+
|
|
62
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
|
63
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
64
|
+
:header_params => header_params,
|
|
65
|
+
:query_params => query_params,
|
|
66
|
+
:form_params => form_params,
|
|
67
|
+
:body => post_body,
|
|
68
|
+
:auth_names => auth_names,
|
|
69
|
+
:return_type => return_type)
|
|
70
|
+
|
|
71
|
+
if @api_client.config.debugging
|
|
72
|
+
@api_client.config.logger.debug "API called: UserAuthApi#create_oauth2_credential\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
73
|
+
end
|
|
74
|
+
return data, status_code, headers
|
|
75
|
+
end
|
|
18
76
|
# Create Oauth providers
|
|
19
77
|
# Create Oauth providers for a specified user.
|
|
20
78
|
# @param body
|
|
@@ -73,6 +131,64 @@ module TurnkeyClient
|
|
|
73
131
|
end
|
|
74
132
|
return data, status_code, headers
|
|
75
133
|
end
|
|
134
|
+
# Delete an OAuth 2.0 Credential
|
|
135
|
+
# Disable authentication for end users with an OAuth 2.0 provider
|
|
136
|
+
# @param body
|
|
137
|
+
# @param [Hash] opts the optional parameters
|
|
138
|
+
# @return [ActivityResponse]
|
|
139
|
+
def delete_oauth2_credential(body, opts = {})
|
|
140
|
+
data, _status_code, _headers = delete_oauth2_credential_with_http_info(body, opts)
|
|
141
|
+
data
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
# Delete an OAuth 2.0 Credential
|
|
145
|
+
# Disable authentication for end users with an OAuth 2.0 provider
|
|
146
|
+
# @param body
|
|
147
|
+
# @param [Hash] opts the optional parameters
|
|
148
|
+
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|
|
149
|
+
def delete_oauth2_credential_with_http_info(body, opts = {})
|
|
150
|
+
if @api_client.config.debugging
|
|
151
|
+
@api_client.config.logger.debug 'Calling API: UserAuthApi.delete_oauth2_credential ...'
|
|
152
|
+
end
|
|
153
|
+
# verify the required parameter 'body' is set
|
|
154
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
155
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling UserAuthApi.delete_oauth2_credential"
|
|
156
|
+
end
|
|
157
|
+
# resource path
|
|
158
|
+
local_var_path = '/public/v1/submit/delete_oauth2_credential'
|
|
159
|
+
|
|
160
|
+
# query parameters
|
|
161
|
+
query_params = opts[:query_params] || {}
|
|
162
|
+
|
|
163
|
+
# header parameters
|
|
164
|
+
header_params = opts[:header_params] || {}
|
|
165
|
+
# HTTP header 'Accept' (if needed)
|
|
166
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
167
|
+
# HTTP header 'Content-Type'
|
|
168
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
169
|
+
|
|
170
|
+
# form parameters
|
|
171
|
+
form_params = opts[:form_params] || {}
|
|
172
|
+
|
|
173
|
+
# http body (model)
|
|
174
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
175
|
+
|
|
176
|
+
return_type = opts[:return_type] || 'ActivityResponse'
|
|
177
|
+
|
|
178
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
|
179
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
180
|
+
:header_params => header_params,
|
|
181
|
+
:query_params => query_params,
|
|
182
|
+
:form_params => form_params,
|
|
183
|
+
:body => post_body,
|
|
184
|
+
:auth_names => auth_names,
|
|
185
|
+
:return_type => return_type)
|
|
186
|
+
|
|
187
|
+
if @api_client.config.debugging
|
|
188
|
+
@api_client.config.logger.debug "API called: UserAuthApi#delete_oauth2_credential\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
189
|
+
end
|
|
190
|
+
return data, status_code, headers
|
|
191
|
+
end
|
|
76
192
|
# Delete Oauth providers
|
|
77
193
|
# Remove Oauth providers for a specified user.
|
|
78
194
|
# @param body
|
|
@@ -305,6 +421,64 @@ module TurnkeyClient
|
|
|
305
421
|
end
|
|
306
422
|
return data, status_code, headers
|
|
307
423
|
end
|
|
424
|
+
# List OAuth 2.0 Credentials
|
|
425
|
+
# List all OAuth 2.0 credentials within an organization.
|
|
426
|
+
# @param body
|
|
427
|
+
# @param [Hash] opts the optional parameters
|
|
428
|
+
# @return [ListOauth2CredentialsResponse]
|
|
429
|
+
def list_oauth2_credentials(body, opts = {})
|
|
430
|
+
data, _status_code, _headers = list_oauth2_credentials_with_http_info(body, opts)
|
|
431
|
+
data
|
|
432
|
+
end
|
|
433
|
+
|
|
434
|
+
# List OAuth 2.0 Credentials
|
|
435
|
+
# List all OAuth 2.0 credentials within an organization.
|
|
436
|
+
# @param body
|
|
437
|
+
# @param [Hash] opts the optional parameters
|
|
438
|
+
# @return [Array<(ListOauth2CredentialsResponse, Integer, Hash)>] ListOauth2CredentialsResponse data, response status code and response headers
|
|
439
|
+
def list_oauth2_credentials_with_http_info(body, opts = {})
|
|
440
|
+
if @api_client.config.debugging
|
|
441
|
+
@api_client.config.logger.debug 'Calling API: UserAuthApi.list_oauth2_credentials ...'
|
|
442
|
+
end
|
|
443
|
+
# verify the required parameter 'body' is set
|
|
444
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
445
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling UserAuthApi.list_oauth2_credentials"
|
|
446
|
+
end
|
|
447
|
+
# resource path
|
|
448
|
+
local_var_path = '/public/v1/query/list_oauth2_credentials'
|
|
449
|
+
|
|
450
|
+
# query parameters
|
|
451
|
+
query_params = opts[:query_params] || {}
|
|
452
|
+
|
|
453
|
+
# header parameters
|
|
454
|
+
header_params = opts[:header_params] || {}
|
|
455
|
+
# HTTP header 'Accept' (if needed)
|
|
456
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
457
|
+
# HTTP header 'Content-Type'
|
|
458
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
459
|
+
|
|
460
|
+
# form parameters
|
|
461
|
+
form_params = opts[:form_params] || {}
|
|
462
|
+
|
|
463
|
+
# http body (model)
|
|
464
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
465
|
+
|
|
466
|
+
return_type = opts[:return_type] || 'ListOauth2CredentialsResponse'
|
|
467
|
+
|
|
468
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
|
469
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
470
|
+
:header_params => header_params,
|
|
471
|
+
:query_params => query_params,
|
|
472
|
+
:form_params => form_params,
|
|
473
|
+
:body => post_body,
|
|
474
|
+
:auth_names => auth_names,
|
|
475
|
+
:return_type => return_type)
|
|
476
|
+
|
|
477
|
+
if @api_client.config.debugging
|
|
478
|
+
@api_client.config.logger.debug "API called: UserAuthApi#list_oauth2_credentials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
479
|
+
end
|
|
480
|
+
return data, status_code, headers
|
|
481
|
+
end
|
|
308
482
|
# Oauth
|
|
309
483
|
# Authenticate a user with an OIDC token (Oauth).
|
|
310
484
|
# @param body
|
|
@@ -363,6 +537,64 @@ module TurnkeyClient
|
|
|
363
537
|
end
|
|
364
538
|
return data, status_code, headers
|
|
365
539
|
end
|
|
540
|
+
# OAuth 2.0 authentication
|
|
541
|
+
# Authenticate a user with an OAuth 2.0 provider and receive an OIDC token to use with the LoginWithOAuth or CreateSubOrganization activities
|
|
542
|
+
# @param body
|
|
543
|
+
# @param [Hash] opts the optional parameters
|
|
544
|
+
# @return [ActivityResponse]
|
|
545
|
+
def oauth2_authenticate(body, opts = {})
|
|
546
|
+
data, _status_code, _headers = oauth2_authenticate_with_http_info(body, opts)
|
|
547
|
+
data
|
|
548
|
+
end
|
|
549
|
+
|
|
550
|
+
# OAuth 2.0 authentication
|
|
551
|
+
# Authenticate a user with an OAuth 2.0 provider and receive an OIDC token to use with the LoginWithOAuth or CreateSubOrganization activities
|
|
552
|
+
# @param body
|
|
553
|
+
# @param [Hash] opts the optional parameters
|
|
554
|
+
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|
|
555
|
+
def oauth2_authenticate_with_http_info(body, opts = {})
|
|
556
|
+
if @api_client.config.debugging
|
|
557
|
+
@api_client.config.logger.debug 'Calling API: UserAuthApi.oauth2_authenticate ...'
|
|
558
|
+
end
|
|
559
|
+
# verify the required parameter 'body' is set
|
|
560
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
561
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling UserAuthApi.oauth2_authenticate"
|
|
562
|
+
end
|
|
563
|
+
# resource path
|
|
564
|
+
local_var_path = '/public/v1/submit/oauth2_authenticate'
|
|
565
|
+
|
|
566
|
+
# query parameters
|
|
567
|
+
query_params = opts[:query_params] || {}
|
|
568
|
+
|
|
569
|
+
# header parameters
|
|
570
|
+
header_params = opts[:header_params] || {}
|
|
571
|
+
# HTTP header 'Accept' (if needed)
|
|
572
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
573
|
+
# HTTP header 'Content-Type'
|
|
574
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
575
|
+
|
|
576
|
+
# form parameters
|
|
577
|
+
form_params = opts[:form_params] || {}
|
|
578
|
+
|
|
579
|
+
# http body (model)
|
|
580
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
581
|
+
|
|
582
|
+
return_type = opts[:return_type] || 'ActivityResponse'
|
|
583
|
+
|
|
584
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
|
585
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
586
|
+
:header_params => header_params,
|
|
587
|
+
:query_params => query_params,
|
|
588
|
+
:form_params => form_params,
|
|
589
|
+
:body => post_body,
|
|
590
|
+
:auth_names => auth_names,
|
|
591
|
+
:return_type => return_type)
|
|
592
|
+
|
|
593
|
+
if @api_client.config.debugging
|
|
594
|
+
@api_client.config.logger.debug "API called: UserAuthApi#oauth2_authenticate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
595
|
+
end
|
|
596
|
+
return data, status_code, headers
|
|
597
|
+
end
|
|
366
598
|
# OTP auth
|
|
367
599
|
# Authenticate a user with an OTP code sent via email or SMS.
|
|
368
600
|
# @param body
|
|
@@ -421,5 +653,63 @@ module TurnkeyClient
|
|
|
421
653
|
end
|
|
422
654
|
return data, status_code, headers
|
|
423
655
|
end
|
|
656
|
+
# Update an OAuth 2.0 Credential
|
|
657
|
+
# Update an OAuth 2.0 provider credential
|
|
658
|
+
# @param body
|
|
659
|
+
# @param [Hash] opts the optional parameters
|
|
660
|
+
# @return [ActivityResponse]
|
|
661
|
+
def update_oauth2_credential(body, opts = {})
|
|
662
|
+
data, _status_code, _headers = update_oauth2_credential_with_http_info(body, opts)
|
|
663
|
+
data
|
|
664
|
+
end
|
|
665
|
+
|
|
666
|
+
# Update an OAuth 2.0 Credential
|
|
667
|
+
# Update an OAuth 2.0 provider credential
|
|
668
|
+
# @param body
|
|
669
|
+
# @param [Hash] opts the optional parameters
|
|
670
|
+
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|
|
671
|
+
def update_oauth2_credential_with_http_info(body, opts = {})
|
|
672
|
+
if @api_client.config.debugging
|
|
673
|
+
@api_client.config.logger.debug 'Calling API: UserAuthApi.update_oauth2_credential ...'
|
|
674
|
+
end
|
|
675
|
+
# verify the required parameter 'body' is set
|
|
676
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
677
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling UserAuthApi.update_oauth2_credential"
|
|
678
|
+
end
|
|
679
|
+
# resource path
|
|
680
|
+
local_var_path = '/public/v1/submit/update_oauth2_credential'
|
|
681
|
+
|
|
682
|
+
# query parameters
|
|
683
|
+
query_params = opts[:query_params] || {}
|
|
684
|
+
|
|
685
|
+
# header parameters
|
|
686
|
+
header_params = opts[:header_params] || {}
|
|
687
|
+
# HTTP header 'Accept' (if needed)
|
|
688
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
689
|
+
# HTTP header 'Content-Type'
|
|
690
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
691
|
+
|
|
692
|
+
# form parameters
|
|
693
|
+
form_params = opts[:form_params] || {}
|
|
694
|
+
|
|
695
|
+
# http body (model)
|
|
696
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
697
|
+
|
|
698
|
+
return_type = opts[:return_type] || 'ActivityResponse'
|
|
699
|
+
|
|
700
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
|
701
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
702
|
+
:header_params => header_params,
|
|
703
|
+
:query_params => query_params,
|
|
704
|
+
:form_params => form_params,
|
|
705
|
+
:body => post_body,
|
|
706
|
+
:auth_names => auth_names,
|
|
707
|
+
:return_type => return_type)
|
|
708
|
+
|
|
709
|
+
if @api_client.config.debugging
|
|
710
|
+
@api_client.config.logger.debug "API called: UserAuthApi#update_oauth2_credential\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
711
|
+
end
|
|
712
|
+
return data, status_code, headers
|
|
713
|
+
end
|
|
424
714
|
end
|
|
425
715
|
end
|
|
@@ -131,6 +131,64 @@ module TurnkeyClient
|
|
|
131
131
|
end
|
|
132
132
|
return data, status_code, headers
|
|
133
133
|
end
|
|
134
|
+
# Delete wallet accounts
|
|
135
|
+
# Delete wallet accounts for an organization.
|
|
136
|
+
# @param body
|
|
137
|
+
# @param [Hash] opts the optional parameters
|
|
138
|
+
# @return [ActivityResponse]
|
|
139
|
+
def delete_wallet_accounts(body, opts = {})
|
|
140
|
+
data, _status_code, _headers = delete_wallet_accounts_with_http_info(body, opts)
|
|
141
|
+
data
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
# Delete wallet accounts
|
|
145
|
+
# Delete wallet accounts for an organization.
|
|
146
|
+
# @param body
|
|
147
|
+
# @param [Hash] opts the optional parameters
|
|
148
|
+
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|
|
149
|
+
def delete_wallet_accounts_with_http_info(body, opts = {})
|
|
150
|
+
if @api_client.config.debugging
|
|
151
|
+
@api_client.config.logger.debug 'Calling API: WalletsApi.delete_wallet_accounts ...'
|
|
152
|
+
end
|
|
153
|
+
# verify the required parameter 'body' is set
|
|
154
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
155
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling WalletsApi.delete_wallet_accounts"
|
|
156
|
+
end
|
|
157
|
+
# resource path
|
|
158
|
+
local_var_path = '/public/v1/submit/delete_wallet_accounts'
|
|
159
|
+
|
|
160
|
+
# query parameters
|
|
161
|
+
query_params = opts[:query_params] || {}
|
|
162
|
+
|
|
163
|
+
# header parameters
|
|
164
|
+
header_params = opts[:header_params] || {}
|
|
165
|
+
# HTTP header 'Accept' (if needed)
|
|
166
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
167
|
+
# HTTP header 'Content-Type'
|
|
168
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
169
|
+
|
|
170
|
+
# form parameters
|
|
171
|
+
form_params = opts[:form_params] || {}
|
|
172
|
+
|
|
173
|
+
# http body (model)
|
|
174
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
175
|
+
|
|
176
|
+
return_type = opts[:return_type] || 'ActivityResponse'
|
|
177
|
+
|
|
178
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
|
179
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
180
|
+
:header_params => header_params,
|
|
181
|
+
:query_params => query_params,
|
|
182
|
+
:form_params => form_params,
|
|
183
|
+
:body => post_body,
|
|
184
|
+
:auth_names => auth_names,
|
|
185
|
+
:return_type => return_type)
|
|
186
|
+
|
|
187
|
+
if @api_client.config.debugging
|
|
188
|
+
@api_client.config.logger.debug "API called: WalletsApi#delete_wallet_accounts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
189
|
+
end
|
|
190
|
+
return data, status_code, headers
|
|
191
|
+
end
|
|
134
192
|
# Delete wallets
|
|
135
193
|
# Delete wallets for an organization.
|
|
136
194
|
# @param body
|
|
@@ -29,6 +29,9 @@ module TurnkeyClient
|
|
|
29
29
|
# A list of objects representing a particular User's approval or rejection of a Consensus request, including all relevant metadata.
|
|
30
30
|
attr_accessor :votes
|
|
31
31
|
|
|
32
|
+
# A list of App Proofs generated by enclaves during activity execution, providing verifiable attestations of performed operations.
|
|
33
|
+
attr_accessor :app_proofs
|
|
34
|
+
|
|
32
35
|
# An artifact verifying a User's action.
|
|
33
36
|
attr_accessor :fingerprint
|
|
34
37
|
|
|
@@ -52,6 +55,7 @@ module TurnkeyClient
|
|
|
52
55
|
:'intent' => :'intent',
|
|
53
56
|
:'result' => :'result',
|
|
54
57
|
:'votes' => :'votes',
|
|
58
|
+
:'app_proofs' => :'appProofs',
|
|
55
59
|
:'fingerprint' => :'fingerprint',
|
|
56
60
|
:'can_approve' => :'canApprove',
|
|
57
61
|
:'can_reject' => :'canReject',
|
|
@@ -71,6 +75,7 @@ module TurnkeyClient
|
|
|
71
75
|
:'intent' => :'Object',
|
|
72
76
|
:'result' => :'Object',
|
|
73
77
|
:'votes' => :'Object',
|
|
78
|
+
:'app_proofs' => :'Object',
|
|
74
79
|
:'fingerprint' => :'Object',
|
|
75
80
|
:'can_approve' => :'Object',
|
|
76
81
|
:'can_reject' => :'Object',
|
|
@@ -131,6 +136,12 @@ module TurnkeyClient
|
|
|
131
136
|
end
|
|
132
137
|
end
|
|
133
138
|
|
|
139
|
+
if attributes.key?(:'app_proofs')
|
|
140
|
+
if (value = attributes[:'app_proofs']).is_a?(Array)
|
|
141
|
+
self.app_proofs = value
|
|
142
|
+
end
|
|
143
|
+
end
|
|
144
|
+
|
|
134
145
|
if attributes.key?(:'fingerprint')
|
|
135
146
|
self.fingerprint = attributes[:'fingerprint']
|
|
136
147
|
end
|
|
@@ -241,6 +252,7 @@ module TurnkeyClient
|
|
|
241
252
|
intent == o.intent &&
|
|
242
253
|
result == o.result &&
|
|
243
254
|
votes == o.votes &&
|
|
255
|
+
app_proofs == o.app_proofs &&
|
|
244
256
|
fingerprint == o.fingerprint &&
|
|
245
257
|
can_approve == o.can_approve &&
|
|
246
258
|
can_reject == o.can_reject &&
|
|
@@ -258,7 +270,7 @@ module TurnkeyClient
|
|
|
258
270
|
# Calculates hash code according to all attributes.
|
|
259
271
|
# @return [Integer] Hash code
|
|
260
272
|
def hash
|
|
261
|
-
[id, organization_id, status, type, intent, result, votes, fingerprint, can_approve, can_reject, created_at, updated_at, failure].hash
|
|
273
|
+
[id, organization_id, status, type, intent, result, votes, app_proofs, fingerprint, can_approve, can_reject, created_at, updated_at, failure].hash
|
|
262
274
|
end
|
|
263
275
|
|
|
264
276
|
# Builds the object from hash
|
|
@@ -106,6 +106,29 @@ module TurnkeyClient
|
|
|
106
106
|
INIT_FIAT_ON_RAMP = 'ACTIVITY_TYPE_INIT_FIAT_ON_RAMP'.freeze
|
|
107
107
|
CREATE_SMART_CONTRACT_INTERFACE = 'ACTIVITY_TYPE_CREATE_SMART_CONTRACT_INTERFACE'.freeze
|
|
108
108
|
DELETE_SMART_CONTRACT_INTERFACE = 'ACTIVITY_TYPE_DELETE_SMART_CONTRACT_INTERFACE'.freeze
|
|
109
|
+
ENABLE_AUTH_PROXY = 'ACTIVITY_TYPE_ENABLE_AUTH_PROXY'.freeze
|
|
110
|
+
DISABLE_AUTH_PROXY = 'ACTIVITY_TYPE_DISABLE_AUTH_PROXY'.freeze
|
|
111
|
+
UPDATE_AUTH_PROXY_CONFIG = 'ACTIVITY_TYPE_UPDATE_AUTH_PROXY_CONFIG'.freeze
|
|
112
|
+
CREATE_OAUTH2_CREDENTIAL = 'ACTIVITY_TYPE_CREATE_OAUTH2_CREDENTIAL'.freeze
|
|
113
|
+
UPDATE_OAUTH2_CREDENTIAL = 'ACTIVITY_TYPE_UPDATE_OAUTH2_CREDENTIAL'.freeze
|
|
114
|
+
DELETE_OAUTH2_CREDENTIAL = 'ACTIVITY_TYPE_DELETE_OAUTH2_CREDENTIAL'.freeze
|
|
115
|
+
OAUTH2_AUTHENTICATE = 'ACTIVITY_TYPE_OAUTH2_AUTHENTICATE'.freeze
|
|
116
|
+
DELETE_WALLET_ACCOUNTS = 'ACTIVITY_TYPE_DELETE_WALLET_ACCOUNTS'.freeze
|
|
117
|
+
DELETE_POLICIES = 'ACTIVITY_TYPE_DELETE_POLICIES'.freeze
|
|
118
|
+
ETH_SEND_RAW_TRANSACTION = 'ACTIVITY_TYPE_ETH_SEND_RAW_TRANSACTION'.freeze
|
|
119
|
+
ETH_SEND_TRANSACTION = 'ACTIVITY_TYPE_ETH_SEND_TRANSACTION'.freeze
|
|
120
|
+
CREATE_FIAT_ON_RAMP_CREDENTIAL = 'ACTIVITY_TYPE_CREATE_FIAT_ON_RAMP_CREDENTIAL'.freeze
|
|
121
|
+
UPDATE_FIAT_ON_RAMP_CREDENTIAL = 'ACTIVITY_TYPE_UPDATE_FIAT_ON_RAMP_CREDENTIAL'.freeze
|
|
122
|
+
DELETE_FIAT_ON_RAMP_CREDENTIAL = 'ACTIVITY_TYPE_DELETE_FIAT_ON_RAMP_CREDENTIAL'.freeze
|
|
123
|
+
EMAIL_AUTH_V3 = 'ACTIVITY_TYPE_EMAIL_AUTH_V3'.freeze
|
|
124
|
+
INIT_USER_EMAIL_RECOVERY_V2 = 'ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY_V2'.freeze
|
|
125
|
+
INIT_OTP_AUTH_V3 = 'ACTIVITY_TYPE_INIT_OTP_AUTH_V3'.freeze
|
|
126
|
+
INIT_OTP_V2 = 'ACTIVITY_TYPE_INIT_OTP_V2'.freeze
|
|
127
|
+
UPSERT_GAS_USAGE_CONFIG = 'ACTIVITY_TYPE_UPSERT_GAS_USAGE_CONFIG'.freeze
|
|
128
|
+
CREATE_TVC_APP = 'ACTIVITY_TYPE_CREATE_TVC_APP'.freeze
|
|
129
|
+
CREATE_TVC_DEPLOYMENT = 'ACTIVITY_TYPE_CREATE_TVC_DEPLOYMENT'.freeze
|
|
130
|
+
CREATE_TVC_MANIFEST_APPROVALS = 'ACTIVITY_TYPE_CREATE_TVC_MANIFEST_APPROVALS'.freeze
|
|
131
|
+
SOL_SEND_TRANSACTION = 'ACTIVITY_TYPE_SOL_SEND_TRANSACTION'.freeze
|
|
109
132
|
|
|
110
133
|
# Builds the enum from string
|
|
111
134
|
# @param [String] The enum value in the form of the string
|