turnkey_client 0.0.13 → 0.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/turnkey_client/api/activities_api.rb +66 -8
- data/lib/turnkey_client/api/api_keys_api.rb +14 -14
- data/lib/turnkey_client/api/app_proof_api.rb +77 -0
- data/lib/turnkey_client/api/authenticators_api.rb +16 -16
- data/lib/turnkey_client/api/boot_proof_api.rb +135 -0
- data/lib/turnkey_client/api/consensus_api.rb +8 -8
- data/lib/turnkey_client/api/default_api.rb +77 -0
- data/lib/turnkey_client/api/features_api.rb +8 -8
- data/lib/turnkey_client/api/invitations_api.rb +8 -8
- data/lib/turnkey_client/api/on_ramp_api.rb +77 -0
- data/lib/turnkey_client/api/organizations_api.rb +18 -18
- data/lib/turnkey_client/api/policies_api.rb +256 -24
- data/lib/turnkey_client/api/private_key_tags_api.rb +12 -12
- data/lib/turnkey_client/api/private_keys_api.rb +28 -28
- data/lib/turnkey_client/api/sessions_api.rb +184 -10
- data/lib/turnkey_client/api/signing_api.rb +12 -12
- data/lib/turnkey_client/api/user_auth_api.rb +310 -20
- data/lib/turnkey_client/api/user_recovery_api.rb +6 -6
- data/lib/turnkey_client/api/user_tags_api.rb +12 -12
- data/lib/turnkey_client/api/user_verification_api.rb +135 -0
- data/lib/turnkey_client/api/users_api.rb +194 -20
- data/lib/turnkey_client/api/wallets_api.rb +48 -48
- data/lib/turnkey_client/models/activity.rb +13 -1
- data/lib/turnkey_client/models/activity_type.rb +21 -0
- data/lib/turnkey_client/models/activity_v1_policy_evaluation.rb +287 -0
- data/lib/turnkey_client/models/address_format.rb +1 -0
- data/lib/turnkey_client/models/api_key.rb +1 -0
- data/lib/turnkey_client/models/api_key_params.rb +1 -0
- data/lib/turnkey_client/models/api_key_params_v2.rb +1 -0
- data/lib/turnkey_client/models/api_only_user_params.rb +3 -2
- data/lib/turnkey_client/models/app_proof.rb +255 -0
- data/lib/turnkey_client/models/boot_proof.rb +315 -0
- data/lib/turnkey_client/models/boot_proof_response.rb +210 -0
- data/lib/turnkey_client/models/common_v1_policy_evaluation.rb +214 -0
- data/lib/turnkey_client/models/create_oauth2_credential_intent.rb +240 -0
- data/lib/turnkey_client/models/create_oauth2_credential_request.rb +288 -0
- data/lib/turnkey_client/models/create_oauth2_credential_result.rb +211 -0
- data/lib/turnkey_client/models/create_organization_intent.rb +1 -0
- data/lib/turnkey_client/models/create_organization_intent_v2.rb +1 -0
- data/lib/turnkey_client/models/create_policy_intent_v3.rb +2 -0
- data/lib/turnkey_client/models/create_read_write_session_intent.rb +3 -1
- data/lib/turnkey_client/models/create_read_write_session_intent_v2.rb +19 -5
- data/lib/turnkey_client/models/create_smart_contract_interface_intent.rb +265 -0
- data/lib/turnkey_client/models/create_smart_contract_interface_request.rb +288 -0
- data/lib/turnkey_client/models/create_smart_contract_interface_result.rb +211 -0
- data/lib/turnkey_client/models/create_sub_organization_intent_v4.rb +2 -0
- data/lib/turnkey_client/models/create_sub_organization_intent_v5.rb +2 -0
- data/lib/turnkey_client/models/create_sub_organization_intent_v6.rb +2 -0
- data/lib/turnkey_client/models/create_sub_organization_intent_v7.rb +19 -4
- data/lib/turnkey_client/models/create_users_intent_v3.rb +213 -0
- data/lib/turnkey_client/models/create_users_request.rb +2 -2
- data/lib/turnkey_client/models/create_wallet_intent.rb +2 -1
- data/lib/turnkey_client/models/credential_type.rb +3 -0
- data/lib/turnkey_client/models/data_v1_smart_contract_interface.rb +329 -0
- data/lib/turnkey_client/models/delete_oauth2_credential_intent.rb +211 -0
- data/lib/turnkey_client/models/delete_oauth2_credential_request.rb +288 -0
- data/lib/turnkey_client/models/delete_oauth2_credential_result.rb +211 -0
- data/lib/turnkey_client/models/delete_payment_method_intent.rb +1 -0
- data/lib/turnkey_client/models/delete_private_keys_intent.rb +1 -0
- data/lib/turnkey_client/models/delete_smart_contract_interface_intent.rb +211 -0
- data/lib/turnkey_client/models/delete_smart_contract_interface_request.rb +288 -0
- data/lib/turnkey_client/models/delete_smart_contract_interface_result.rb +211 -0
- data/lib/turnkey_client/models/delete_sub_organization_intent.rb +1 -0
- data/lib/turnkey_client/models/delete_wallets_intent.rb +1 -0
- data/lib/turnkey_client/models/disable_auth_proxy_intent.rb +196 -0
- data/lib/turnkey_client/models/disable_auth_proxy_result.rb +196 -0
- data/lib/turnkey_client/models/email_auth_intent.rb +31 -5
- data/lib/turnkey_client/models/email_auth_intent_v2.rb +31 -5
- data/lib/turnkey_client/models/email_customization_params.rb +5 -0
- data/lib/turnkey_client/models/enable_auth_proxy_intent.rb +196 -0
- data/lib/turnkey_client/models/enable_auth_proxy_result.rb +211 -0
- data/lib/turnkey_client/models/feature.rb +1 -0
- data/lib/turnkey_client/models/feature_name.rb +1 -0
- data/lib/turnkey_client/models/fiat_on_ramp_blockchain_network.rb +29 -0
- data/lib/turnkey_client/models/fiat_on_ramp_crypto_currency.rb +29 -0
- data/lib/turnkey_client/models/fiat_on_ramp_currency.rb +59 -0
- data/lib/turnkey_client/models/fiat_on_ramp_payment_method.rb +38 -0
- data/lib/turnkey_client/models/fiat_on_ramp_provider.rb +27 -0
- data/lib/turnkey_client/models/get_activities_request.rb +3 -3
- data/lib/turnkey_client/models/get_activities_response.rb +1 -1
- data/lib/turnkey_client/models/get_activity_request.rb +2 -2
- data/lib/turnkey_client/models/get_api_key_request.rb +1 -1
- data/lib/turnkey_client/models/get_api_keys_request.rb +3 -2
- 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_authenticator_request.rb +2 -2
- data/lib/turnkey_client/models/get_authenticators_request.rb +2 -2
- data/lib/turnkey_client/models/get_boot_proof_request.rb +226 -0
- data/lib/turnkey_client/models/get_latest_boot_proof_request.rb +226 -0
- data/lib/turnkey_client/models/get_oauth2_credential_request.rb +226 -0
- data/lib/turnkey_client/models/get_oauth2_credential_response.rb +210 -0
- data/lib/turnkey_client/models/get_oauth_providers_request.rb +3 -2
- data/lib/turnkey_client/models/get_oauth_providers_response.rb +1 -1
- data/lib/turnkey_client/models/get_organization_configs_request.rb +1 -1
- data/lib/turnkey_client/models/get_policies_request.rb +1 -1
- data/lib/turnkey_client/models/get_policies_response.rb +1 -1
- data/lib/turnkey_client/models/get_policy_evaluations_request.rb +226 -0
- data/lib/turnkey_client/models/get_policy_evaluations_response.rb +212 -0
- data/lib/turnkey_client/models/get_policy_request.rb +2 -2
- data/lib/turnkey_client/models/get_private_key_request.rb +2 -2
- data/lib/turnkey_client/models/get_private_keys_request.rb +1 -1
- data/lib/turnkey_client/models/get_private_keys_response.rb +1 -1
- data/lib/turnkey_client/models/get_smart_contract_interface_request.rb +226 -0
- data/lib/turnkey_client/models/get_smart_contract_interface_response.rb +210 -0
- data/lib/turnkey_client/models/get_smart_contract_interfaces_request.rb +211 -0
- data/lib/turnkey_client/models/get_smart_contract_interfaces_response.rb +213 -0
- data/lib/turnkey_client/models/get_sub_org_ids_request.rb +2 -2
- data/lib/turnkey_client/models/get_user_request.rb +2 -2
- data/lib/turnkey_client/models/get_users_request.rb +1 -1
- data/lib/turnkey_client/models/get_users_response.rb +1 -1
- data/lib/turnkey_client/models/get_verified_sub_org_ids_request.rb +2 -2
- data/lib/turnkey_client/models/get_wallet_account_request.rb +6 -4
- data/lib/turnkey_client/models/get_wallet_accounts_request.rb +15 -8
- data/lib/turnkey_client/models/get_wallet_accounts_response.rb +1 -1
- data/lib/turnkey_client/models/get_wallet_request.rb +2 -2
- data/lib/turnkey_client/models/get_wallets_request.rb +1 -1
- data/lib/turnkey_client/models/get_wallets_response.rb +1 -1
- data/lib/turnkey_client/models/get_whoami_request.rb +1 -1
- data/lib/turnkey_client/models/get_whoami_response.rb +4 -4
- data/lib/turnkey_client/models/init_fiat_on_ramp_intent.rb +326 -0
- data/lib/turnkey_client/models/init_fiat_on_ramp_request.rb +288 -0
- data/lib/turnkey_client/models/init_fiat_on_ramp_result.rb +236 -0
- data/lib/turnkey_client/models/init_otp_auth_intent.rb +28 -4
- data/lib/turnkey_client/models/init_otp_auth_intent_v2.rb +310 -0
- data/lib/turnkey_client/models/init_otp_auth_request.rb +2 -2
- data/lib/turnkey_client/models/init_otp_auth_result_v2.rb +211 -0
- data/lib/turnkey_client/models/init_otp_intent.rb +321 -0
- data/lib/turnkey_client/models/init_otp_request.rb +288 -0
- data/lib/turnkey_client/models/init_otp_result.rb +211 -0
- data/lib/turnkey_client/models/init_user_email_recovery_intent.rb +2 -1
- data/lib/turnkey_client/models/intent.rb +193 -4
- data/lib/turnkey_client/models/invitation_params.rb +1 -1
- 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/list_private_key_tags_request.rb +1 -1
- data/lib/turnkey_client/models/list_private_key_tags_response.rb +1 -1
- data/lib/turnkey_client/models/list_user_tags_request.rb +1 -1
- data/lib/turnkey_client/models/list_user_tags_response.rb +1 -1
- data/lib/turnkey_client/models/oauth2_authenticate_intent.rb +278 -0
- data/lib/turnkey_client/models/oauth2_authenticate_request.rb +288 -0
- data/lib/turnkey_client/models/oauth2_authenticate_result.rb +211 -0
- data/lib/turnkey_client/models/oauth2_credential.rb +298 -0
- data/lib/turnkey_client/models/oauth2_provider.rb +27 -0
- data/lib/turnkey_client/models/oauth_intent.rb +18 -5
- data/lib/turnkey_client/models/oauth_login_intent.rb +248 -0
- data/lib/turnkey_client/models/oauth_login_request.rb +288 -0
- data/lib/turnkey_client/models/oauth_login_result.rb +211 -0
- data/lib/turnkey_client/models/otp_auth_intent.rb +10 -2
- data/lib/turnkey_client/models/otp_login_intent.rb +259 -0
- data/lib/turnkey_client/models/otp_login_request.rb +288 -0
- data/lib/turnkey_client/models/otp_login_result.rb +211 -0
- data/lib/turnkey_client/models/outcome.rb +31 -0
- data/lib/turnkey_client/models/payload_encoding.rb +2 -0
- data/lib/turnkey_client/models/policy.rb +2 -0
- data/lib/turnkey_client/models/private_key_params.rb +1 -1
- data/lib/turnkey_client/models/result.rb +184 -4
- data/lib/turnkey_client/models/root_user_params.rb +3 -2
- data/lib/turnkey_client/models/root_user_params_v2.rb +4 -3
- data/lib/turnkey_client/models/root_user_params_v3.rb +4 -3
- data/lib/turnkey_client/models/root_user_params_v4.rb +5 -3
- data/lib/turnkey_client/models/set_organization_feature_intent.rb +1 -0
- data/lib/turnkey_client/models/signature_scheme.rb +26 -0
- data/lib/turnkey_client/models/simple_client_extension_results.rb +2 -0
- data/lib/turnkey_client/models/smart_contract_interface.rb +329 -0
- data/lib/turnkey_client/models/smart_contract_interface_type.rb +27 -0
- data/lib/turnkey_client/models/sms_customization_params.rb +1 -0
- data/lib/turnkey_client/models/stamp_login_intent.rb +233 -0
- data/lib/turnkey_client/models/stamp_login_request.rb +288 -0
- data/lib/turnkey_client/models/stamp_login_result.rb +211 -0
- data/lib/turnkey_client/models/transaction_type.rb +1 -0
- data/lib/turnkey_client/models/ump_v1_policy_evaluation.rb +214 -0
- data/lib/turnkey_client/models/update_auth_proxy_config_intent.rb +346 -0
- data/lib/turnkey_client/models/update_auth_proxy_config_result.rb +206 -0
- data/lib/turnkey_client/models/update_oauth2_credential_intent.rb +255 -0
- data/lib/turnkey_client/models/update_oauth2_credential_request.rb +288 -0
- data/lib/turnkey_client/models/update_oauth2_credential_result.rb +211 -0
- data/lib/turnkey_client/models/update_policy_intent.rb +4 -0
- data/lib/turnkey_client/models/update_policy_intent_v2.rb +264 -0
- data/lib/turnkey_client/models/update_policy_request.rb +2 -2
- data/lib/turnkey_client/models/update_policy_result_v2.rb +211 -0
- data/lib/turnkey_client/models/update_private_key_tag_intent.rb +1 -0
- data/lib/turnkey_client/models/update_user_email_intent.rb +237 -0
- data/lib/turnkey_client/models/update_user_email_request.rb +288 -0
- data/lib/turnkey_client/models/update_user_email_result.rb +211 -0
- data/lib/turnkey_client/models/update_user_intent.rb +4 -1
- data/lib/turnkey_client/models/update_user_name_intent.rb +226 -0
- data/lib/turnkey_client/models/update_user_name_request.rb +288 -0
- data/lib/turnkey_client/models/update_user_name_result.rb +211 -0
- data/lib/turnkey_client/models/update_user_phone_number_intent.rb +237 -0
- data/lib/turnkey_client/models/update_user_phone_number_request.rb +288 -0
- data/lib/turnkey_client/models/update_user_phone_number_result.rb +211 -0
- data/lib/turnkey_client/models/update_user_tag_intent.rb +1 -0
- data/lib/turnkey_client/models/user.rb +3 -1
- data/lib/turnkey_client/models/user_params.rb +4 -3
- data/lib/turnkey_client/models/user_params_v2.rb +4 -3
- data/lib/turnkey_client/models/user_params_v3.rb +301 -0
- data/lib/turnkey_client/models/verify_otp_intent.rb +248 -0
- data/lib/turnkey_client/models/verify_otp_request.rb +288 -0
- data/lib/turnkey_client/models/verify_otp_result.rb +211 -0
- data/lib/turnkey_client/models/wallet_account.rb +24 -4
- data/lib/turnkey_client/models/wallet_kit_settings_params.rb +230 -0
- data/lib/turnkey_client/models/wallet_params.rb +2 -1
- data/lib/turnkey_client/version.rb +1 -1
- data/lib/turnkey_client.rb +93 -0
- data/turnkey_client-0.0.13.gem +0 -0
- data/turnkey_client-0.0.14.gem +0 -0
- metadata +99 -2
@@ -15,8 +15,8 @@ module TurnkeyClient
|
|
15
15
|
def initialize(api_client = ApiClient.default)
|
16
16
|
@api_client = api_client
|
17
17
|
end
|
18
|
-
# Create
|
19
|
-
# Create new
|
18
|
+
# Create private keys
|
19
|
+
# Create new private keys.
|
20
20
|
# @param body
|
21
21
|
# @param [Hash] opts the optional parameters
|
22
22
|
# @return [ActivityResponse]
|
@@ -25,8 +25,8 @@ module TurnkeyClient
|
|
25
25
|
data
|
26
26
|
end
|
27
27
|
|
28
|
-
# Create
|
29
|
-
# Create new
|
28
|
+
# Create private keys
|
29
|
+
# Create new private keys.
|
30
30
|
# @param body
|
31
31
|
# @param [Hash] opts the optional parameters
|
32
32
|
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|
@@ -73,8 +73,8 @@ module TurnkeyClient
|
|
73
73
|
end
|
74
74
|
return data, status_code, headers
|
75
75
|
end
|
76
|
-
# Delete
|
77
|
-
#
|
76
|
+
# Delete private keys
|
77
|
+
# Delete private keys for an organization.
|
78
78
|
# @param body
|
79
79
|
# @param [Hash] opts the optional parameters
|
80
80
|
# @return [ActivityResponse]
|
@@ -83,8 +83,8 @@ module TurnkeyClient
|
|
83
83
|
data
|
84
84
|
end
|
85
85
|
|
86
|
-
# Delete
|
87
|
-
#
|
86
|
+
# Delete private keys
|
87
|
+
# Delete private keys for an organization.
|
88
88
|
# @param body
|
89
89
|
# @param [Hash] opts the optional parameters
|
90
90
|
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|
@@ -131,8 +131,8 @@ module TurnkeyClient
|
|
131
131
|
end
|
132
132
|
return data, status_code, headers
|
133
133
|
end
|
134
|
-
# Export
|
135
|
-
#
|
134
|
+
# Export private key
|
135
|
+
# Export a private key.
|
136
136
|
# @param body
|
137
137
|
# @param [Hash] opts the optional parameters
|
138
138
|
# @return [ActivityResponse]
|
@@ -141,8 +141,8 @@ module TurnkeyClient
|
|
141
141
|
data
|
142
142
|
end
|
143
143
|
|
144
|
-
# Export
|
145
|
-
#
|
144
|
+
# Export private key
|
145
|
+
# Export a private key.
|
146
146
|
# @param body
|
147
147
|
# @param [Hash] opts the optional parameters
|
148
148
|
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|
@@ -189,8 +189,8 @@ module TurnkeyClient
|
|
189
189
|
end
|
190
190
|
return data, status_code, headers
|
191
191
|
end
|
192
|
-
# Get
|
193
|
-
# Get details about a
|
192
|
+
# Get private key
|
193
|
+
# Get details about a private key.
|
194
194
|
# @param body
|
195
195
|
# @param [Hash] opts the optional parameters
|
196
196
|
# @return [GetPrivateKeyResponse]
|
@@ -199,8 +199,8 @@ module TurnkeyClient
|
|
199
199
|
data
|
200
200
|
end
|
201
201
|
|
202
|
-
# Get
|
203
|
-
# Get details about a
|
202
|
+
# Get private key
|
203
|
+
# Get details about a private key.
|
204
204
|
# @param body
|
205
205
|
# @param [Hash] opts the optional parameters
|
206
206
|
# @return [Array<(GetPrivateKeyResponse, Integer, Hash)>] GetPrivateKeyResponse data, response status code and response headers
|
@@ -247,8 +247,8 @@ module TurnkeyClient
|
|
247
247
|
end
|
248
248
|
return data, status_code, headers
|
249
249
|
end
|
250
|
-
# List
|
251
|
-
# List all
|
250
|
+
# List private keys
|
251
|
+
# List all private keys within an organization.
|
252
252
|
# @param body
|
253
253
|
# @param [Hash] opts the optional parameters
|
254
254
|
# @return [GetPrivateKeysResponse]
|
@@ -257,8 +257,8 @@ module TurnkeyClient
|
|
257
257
|
data
|
258
258
|
end
|
259
259
|
|
260
|
-
# List
|
261
|
-
# List all
|
260
|
+
# List private keys
|
261
|
+
# List all private keys within an organization.
|
262
262
|
# @param body
|
263
263
|
# @param [Hash] opts the optional parameters
|
264
264
|
# @return [Array<(GetPrivateKeysResponse, Integer, Hash)>] GetPrivateKeysResponse data, response status code and response headers
|
@@ -305,8 +305,8 @@ module TurnkeyClient
|
|
305
305
|
end
|
306
306
|
return data, status_code, headers
|
307
307
|
end
|
308
|
-
# Import
|
309
|
-
#
|
308
|
+
# Import private key
|
309
|
+
# Import a private key.
|
310
310
|
# @param body
|
311
311
|
# @param [Hash] opts the optional parameters
|
312
312
|
# @return [ActivityResponse]
|
@@ -315,8 +315,8 @@ module TurnkeyClient
|
|
315
315
|
data
|
316
316
|
end
|
317
317
|
|
318
|
-
# Import
|
319
|
-
#
|
318
|
+
# Import private key
|
319
|
+
# Import a private key.
|
320
320
|
# @param body
|
321
321
|
# @param [Hash] opts the optional parameters
|
322
322
|
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|
@@ -363,8 +363,8 @@ module TurnkeyClient
|
|
363
363
|
end
|
364
364
|
return data, status_code, headers
|
365
365
|
end
|
366
|
-
# Init
|
367
|
-
#
|
366
|
+
# Init import private key
|
367
|
+
# Initialize a new private key import.
|
368
368
|
# @param body
|
369
369
|
# @param [Hash] opts the optional parameters
|
370
370
|
# @return [ActivityResponse]
|
@@ -373,8 +373,8 @@ module TurnkeyClient
|
|
373
373
|
data
|
374
374
|
end
|
375
375
|
|
376
|
-
# Init
|
377
|
-
#
|
376
|
+
# Init import private key
|
377
|
+
# Initialize a new private key import.
|
378
378
|
# @param body
|
379
379
|
# @param [Hash] opts the optional parameters
|
380
380
|
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|
@@ -15,8 +15,8 @@ module TurnkeyClient
|
|
15
15
|
def initialize(api_client = ApiClient.default)
|
16
16
|
@api_client = api_client
|
17
17
|
end
|
18
|
-
# Create
|
19
|
-
# Create a read only session for a user (valid for 1 hour)
|
18
|
+
# Create read only session
|
19
|
+
# Create a read only session for a user (valid for 1 hour).
|
20
20
|
# @param body
|
21
21
|
# @param [Hash] opts the optional parameters
|
22
22
|
# @return [ActivityResponse]
|
@@ -25,8 +25,8 @@ module TurnkeyClient
|
|
25
25
|
data
|
26
26
|
end
|
27
27
|
|
28
|
-
# Create
|
29
|
-
# Create a read only session for a user (valid for 1 hour)
|
28
|
+
# Create read only session
|
29
|
+
# Create a read only session for a user (valid for 1 hour).
|
30
30
|
# @param body
|
31
31
|
# @param [Hash] opts the optional parameters
|
32
32
|
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|
@@ -73,8 +73,8 @@ module TurnkeyClient
|
|
73
73
|
end
|
74
74
|
return data, status_code, headers
|
75
75
|
end
|
76
|
-
# Create
|
77
|
-
# Create a read write session for a user
|
76
|
+
# Create read write session
|
77
|
+
# Create a read write session for a user.
|
78
78
|
# @param body
|
79
79
|
# @param [Hash] opts the optional parameters
|
80
80
|
# @return [ActivityResponse]
|
@@ -83,8 +83,8 @@ module TurnkeyClient
|
|
83
83
|
data
|
84
84
|
end
|
85
85
|
|
86
|
-
# Create
|
87
|
-
# Create a read write session for a user
|
86
|
+
# Create read write session
|
87
|
+
# Create a read write session for a user.
|
88
88
|
# @param body
|
89
89
|
# @param [Hash] opts the optional parameters
|
90
90
|
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|
@@ -132,7 +132,7 @@ module TurnkeyClient
|
|
132
132
|
return data, status_code, headers
|
133
133
|
end
|
134
134
|
# Who am I?
|
135
|
-
# Get basic information about your current API or WebAuthN user and their organization. Affords
|
135
|
+
# Get basic information about your current API or WebAuthN user and their organization. Affords sub-organization look ups via parent organization for WebAuthN or API key users.
|
136
136
|
# @param body
|
137
137
|
# @param [Hash] opts the optional parameters
|
138
138
|
# @return [GetWhoamiResponse]
|
@@ -142,7 +142,7 @@ module TurnkeyClient
|
|
142
142
|
end
|
143
143
|
|
144
144
|
# Who am I?
|
145
|
-
# Get basic information about your current API or WebAuthN user and their organization. Affords
|
145
|
+
# Get basic information about your current API or WebAuthN user and their organization. Affords sub-organization look ups via parent organization for WebAuthN or API key users.
|
146
146
|
# @param body
|
147
147
|
# @param [Hash] opts the optional parameters
|
148
148
|
# @return [Array<(GetWhoamiResponse, Integer, Hash)>] GetWhoamiResponse data, response status code and response headers
|
@@ -189,5 +189,179 @@ module TurnkeyClient
|
|
189
189
|
end
|
190
190
|
return data, status_code, headers
|
191
191
|
end
|
192
|
+
# Login with Oauth
|
193
|
+
# Create an Oauth session for a user.
|
194
|
+
# @param body
|
195
|
+
# @param [Hash] opts the optional parameters
|
196
|
+
# @return [ActivityResponse]
|
197
|
+
def oauth_login(body, opts = {})
|
198
|
+
data, _status_code, _headers = oauth_login_with_http_info(body, opts)
|
199
|
+
data
|
200
|
+
end
|
201
|
+
|
202
|
+
# Login with Oauth
|
203
|
+
# Create an Oauth session for a user.
|
204
|
+
# @param body
|
205
|
+
# @param [Hash] opts the optional parameters
|
206
|
+
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|
207
|
+
def oauth_login_with_http_info(body, opts = {})
|
208
|
+
if @api_client.config.debugging
|
209
|
+
@api_client.config.logger.debug 'Calling API: SessionsApi.oauth_login ...'
|
210
|
+
end
|
211
|
+
# verify the required parameter 'body' is set
|
212
|
+
if @api_client.config.client_side_validation && body.nil?
|
213
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SessionsApi.oauth_login"
|
214
|
+
end
|
215
|
+
# resource path
|
216
|
+
local_var_path = '/public/v1/submit/oauth_login'
|
217
|
+
|
218
|
+
# query parameters
|
219
|
+
query_params = opts[:query_params] || {}
|
220
|
+
|
221
|
+
# header parameters
|
222
|
+
header_params = opts[:header_params] || {}
|
223
|
+
# HTTP header 'Accept' (if needed)
|
224
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
225
|
+
# HTTP header 'Content-Type'
|
226
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
227
|
+
|
228
|
+
# form parameters
|
229
|
+
form_params = opts[:form_params] || {}
|
230
|
+
|
231
|
+
# http body (model)
|
232
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
233
|
+
|
234
|
+
return_type = opts[:return_type] || 'ActivityResponse'
|
235
|
+
|
236
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
237
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
238
|
+
:header_params => header_params,
|
239
|
+
:query_params => query_params,
|
240
|
+
:form_params => form_params,
|
241
|
+
:body => post_body,
|
242
|
+
:auth_names => auth_names,
|
243
|
+
:return_type => return_type)
|
244
|
+
|
245
|
+
if @api_client.config.debugging
|
246
|
+
@api_client.config.logger.debug "API called: SessionsApi#oauth_login\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
247
|
+
end
|
248
|
+
return data, status_code, headers
|
249
|
+
end
|
250
|
+
# Login with OTP
|
251
|
+
# Create an OTP session for a user.
|
252
|
+
# @param body
|
253
|
+
# @param [Hash] opts the optional parameters
|
254
|
+
# @return [ActivityResponse]
|
255
|
+
def otp_login(body, opts = {})
|
256
|
+
data, _status_code, _headers = otp_login_with_http_info(body, opts)
|
257
|
+
data
|
258
|
+
end
|
259
|
+
|
260
|
+
# Login with OTP
|
261
|
+
# Create an OTP session for a user.
|
262
|
+
# @param body
|
263
|
+
# @param [Hash] opts the optional parameters
|
264
|
+
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|
265
|
+
def otp_login_with_http_info(body, opts = {})
|
266
|
+
if @api_client.config.debugging
|
267
|
+
@api_client.config.logger.debug 'Calling API: SessionsApi.otp_login ...'
|
268
|
+
end
|
269
|
+
# verify the required parameter 'body' is set
|
270
|
+
if @api_client.config.client_side_validation && body.nil?
|
271
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SessionsApi.otp_login"
|
272
|
+
end
|
273
|
+
# resource path
|
274
|
+
local_var_path = '/public/v1/submit/otp_login'
|
275
|
+
|
276
|
+
# query parameters
|
277
|
+
query_params = opts[:query_params] || {}
|
278
|
+
|
279
|
+
# header parameters
|
280
|
+
header_params = opts[:header_params] || {}
|
281
|
+
# HTTP header 'Accept' (if needed)
|
282
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
283
|
+
# HTTP header 'Content-Type'
|
284
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
285
|
+
|
286
|
+
# form parameters
|
287
|
+
form_params = opts[:form_params] || {}
|
288
|
+
|
289
|
+
# http body (model)
|
290
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
291
|
+
|
292
|
+
return_type = opts[:return_type] || 'ActivityResponse'
|
293
|
+
|
294
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
295
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
296
|
+
:header_params => header_params,
|
297
|
+
:query_params => query_params,
|
298
|
+
:form_params => form_params,
|
299
|
+
:body => post_body,
|
300
|
+
:auth_names => auth_names,
|
301
|
+
:return_type => return_type)
|
302
|
+
|
303
|
+
if @api_client.config.debugging
|
304
|
+
@api_client.config.logger.debug "API called: SessionsApi#otp_login\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
305
|
+
end
|
306
|
+
return data, status_code, headers
|
307
|
+
end
|
308
|
+
# Login with a stamp
|
309
|
+
# Create a session for a user through stamping client side (API key, wallet client, or passkey client).
|
310
|
+
# @param body
|
311
|
+
# @param [Hash] opts the optional parameters
|
312
|
+
# @return [ActivityResponse]
|
313
|
+
def stamp_login(body, opts = {})
|
314
|
+
data, _status_code, _headers = stamp_login_with_http_info(body, opts)
|
315
|
+
data
|
316
|
+
end
|
317
|
+
|
318
|
+
# Login with a stamp
|
319
|
+
# Create a session for a user through stamping client side (API key, wallet client, or passkey client).
|
320
|
+
# @param body
|
321
|
+
# @param [Hash] opts the optional parameters
|
322
|
+
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|
323
|
+
def stamp_login_with_http_info(body, opts = {})
|
324
|
+
if @api_client.config.debugging
|
325
|
+
@api_client.config.logger.debug 'Calling API: SessionsApi.stamp_login ...'
|
326
|
+
end
|
327
|
+
# verify the required parameter 'body' is set
|
328
|
+
if @api_client.config.client_side_validation && body.nil?
|
329
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SessionsApi.stamp_login"
|
330
|
+
end
|
331
|
+
# resource path
|
332
|
+
local_var_path = '/public/v1/submit/stamp_login'
|
333
|
+
|
334
|
+
# query parameters
|
335
|
+
query_params = opts[:query_params] || {}
|
336
|
+
|
337
|
+
# header parameters
|
338
|
+
header_params = opts[:header_params] || {}
|
339
|
+
# HTTP header 'Accept' (if needed)
|
340
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
341
|
+
# HTTP header 'Content-Type'
|
342
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
343
|
+
|
344
|
+
# form parameters
|
345
|
+
form_params = opts[:form_params] || {}
|
346
|
+
|
347
|
+
# http body (model)
|
348
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
349
|
+
|
350
|
+
return_type = opts[:return_type] || 'ActivityResponse'
|
351
|
+
|
352
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
353
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
354
|
+
:header_params => header_params,
|
355
|
+
:query_params => query_params,
|
356
|
+
:form_params => form_params,
|
357
|
+
:body => post_body,
|
358
|
+
:auth_names => auth_names,
|
359
|
+
:return_type => return_type)
|
360
|
+
|
361
|
+
if @api_client.config.debugging
|
362
|
+
@api_client.config.logger.debug "API called: SessionsApi#stamp_login\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
363
|
+
end
|
364
|
+
return data, status_code, headers
|
365
|
+
end
|
192
366
|
end
|
193
367
|
end
|
@@ -15,8 +15,8 @@ module TurnkeyClient
|
|
15
15
|
def initialize(api_client = ApiClient.default)
|
16
16
|
@api_client = api_client
|
17
17
|
end
|
18
|
-
# Sign
|
19
|
-
# Sign a raw payload
|
18
|
+
# Sign raw payload
|
19
|
+
# Sign a raw payload.
|
20
20
|
# @param body
|
21
21
|
# @param [Hash] opts the optional parameters
|
22
22
|
# @return [ActivityResponse]
|
@@ -25,8 +25,8 @@ module TurnkeyClient
|
|
25
25
|
data
|
26
26
|
end
|
27
27
|
|
28
|
-
# Sign
|
29
|
-
# Sign a raw payload
|
28
|
+
# Sign raw payload
|
29
|
+
# Sign a raw payload.
|
30
30
|
# @param body
|
31
31
|
# @param [Hash] opts the optional parameters
|
32
32
|
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|
@@ -73,8 +73,8 @@ module TurnkeyClient
|
|
73
73
|
end
|
74
74
|
return data, status_code, headers
|
75
75
|
end
|
76
|
-
# Sign
|
77
|
-
# Sign multiple raw payloads with the same signing parameters
|
76
|
+
# Sign raw payloads
|
77
|
+
# Sign multiple raw payloads with the same signing parameters.
|
78
78
|
# @param body
|
79
79
|
# @param [Hash] opts the optional parameters
|
80
80
|
# @return [ActivityResponse]
|
@@ -83,8 +83,8 @@ module TurnkeyClient
|
|
83
83
|
data
|
84
84
|
end
|
85
85
|
|
86
|
-
# Sign
|
87
|
-
# Sign multiple raw payloads with the same signing parameters
|
86
|
+
# Sign raw payloads
|
87
|
+
# Sign multiple raw payloads with the same signing parameters.
|
88
88
|
# @param body
|
89
89
|
# @param [Hash] opts the optional parameters
|
90
90
|
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|
@@ -131,8 +131,8 @@ module TurnkeyClient
|
|
131
131
|
end
|
132
132
|
return data, status_code, headers
|
133
133
|
end
|
134
|
-
# Sign
|
135
|
-
# Sign a transaction
|
134
|
+
# Sign transaction
|
135
|
+
# Sign a transaction.
|
136
136
|
# @param body
|
137
137
|
# @param [Hash] opts the optional parameters
|
138
138
|
# @return [ActivityResponse]
|
@@ -141,8 +141,8 @@ module TurnkeyClient
|
|
141
141
|
data
|
142
142
|
end
|
143
143
|
|
144
|
-
# Sign
|
145
|
-
# Sign a transaction
|
144
|
+
# Sign transaction
|
145
|
+
# Sign a transaction.
|
146
146
|
# @param body
|
147
147
|
# @param [Hash] opts the optional parameters
|
148
148
|
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|