turnkey_client 0.0.13 → 0.0.14
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/authenticators_api.rb +16 -16
- data/lib/turnkey_client/api/consensus_api.rb +8 -8
- 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 +20 -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_type.rb +14 -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/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 +4 -0
- 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_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/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/feature.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_authenticator_request.rb +2 -2
- data/lib/turnkey_client/models/get_authenticators_request.rb +2 -2
- 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 +3 -7
- 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 +315 -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 +226 -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 +130 -4
- data/lib/turnkey_client/models/invitation_params.rb +1 -1
- 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/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 +248 -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 +1 -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 +121 -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/simple_client_extension_results.rb +2 -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_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 +237 -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 +15 -4
- data/lib/turnkey_client/models/wallet_params.rb +2 -1
- data/lib/turnkey_client/version.rb +1 -1
- data/lib/turnkey_client.rb +57 -0
- data/turnkey_client-0.0.13.gem +0 -0
- metadata +60 -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 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
|
@@ -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 Oauth
|
19
|
-
#
|
18
|
+
# Create Oauth providers
|
19
|
+
# Create Oauth providers for a specified user.
|
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 Oauth
|
29
|
-
#
|
28
|
+
# Create Oauth providers
|
29
|
+
# Create Oauth providers for a specified user.
|
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 Oauth
|
77
|
-
#
|
76
|
+
# Delete Oauth providers
|
77
|
+
# Remove Oauth providers for a specified 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
|
-
# Delete Oauth
|
87
|
-
#
|
86
|
+
# Delete Oauth providers
|
87
|
+
# Remove Oauth providers for a specified 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
|
@@ -131,8 +131,8 @@ module TurnkeyClient
|
|
131
131
|
end
|
132
132
|
return data, status_code, headers
|
133
133
|
end
|
134
|
-
# Perform
|
135
|
-
# Authenticate a user via
|
134
|
+
# Perform email auth
|
135
|
+
# Authenticate a user via email.
|
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
|
-
# Perform
|
145
|
-
# Authenticate a user via
|
144
|
+
# Perform email auth
|
145
|
+
# Authenticate a user via email.
|
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
|
@@ -190,7 +190,7 @@ module TurnkeyClient
|
|
190
190
|
return data, status_code, headers
|
191
191
|
end
|
192
192
|
# Get Oauth providers
|
193
|
-
# Get details about Oauth providers for a user
|
193
|
+
# Get details about Oauth providers for a user.
|
194
194
|
# @param body
|
195
195
|
# @param [Hash] opts the optional parameters
|
196
196
|
# @return [GetOauthProvidersResponse]
|
@@ -200,7 +200,7 @@ module TurnkeyClient
|
|
200
200
|
end
|
201
201
|
|
202
202
|
# Get Oauth providers
|
203
|
-
# Get details about Oauth providers for a user
|
203
|
+
# Get details about Oauth providers for a user.
|
204
204
|
# @param body
|
205
205
|
# @param [Hash] opts the optional parameters
|
206
206
|
# @return [Array<(GetOauthProvidersResponse, Integer, Hash)>] GetOauthProvidersResponse data, response status code and response headers
|
@@ -248,7 +248,7 @@ module TurnkeyClient
|
|
248
248
|
return data, status_code, headers
|
249
249
|
end
|
250
250
|
# Init OTP auth
|
251
|
-
# Initiate an OTP auth activity
|
251
|
+
# Initiate an OTP auth activity.
|
252
252
|
# @param body
|
253
253
|
# @param [Hash] opts the optional parameters
|
254
254
|
# @return [ActivityResponse]
|
@@ -258,7 +258,7 @@ module TurnkeyClient
|
|
258
258
|
end
|
259
259
|
|
260
260
|
# Init OTP auth
|
261
|
-
# Initiate an OTP auth activity
|
261
|
+
# Initiate an OTP auth activity.
|
262
262
|
# @param body
|
263
263
|
# @param [Hash] opts the optional parameters
|
264
264
|
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|
@@ -306,7 +306,7 @@ module TurnkeyClient
|
|
306
306
|
return data, status_code, headers
|
307
307
|
end
|
308
308
|
# Oauth
|
309
|
-
# Authenticate a user with an
|
309
|
+
# Authenticate a user with an OIDC token (Oauth).
|
310
310
|
# @param body
|
311
311
|
# @param [Hash] opts the optional parameters
|
312
312
|
# @return [ActivityResponse]
|
@@ -316,7 +316,7 @@ module TurnkeyClient
|
|
316
316
|
end
|
317
317
|
|
318
318
|
# Oauth
|
319
|
-
# Authenticate a user with an
|
319
|
+
# Authenticate a user with an OIDC token (Oauth).
|
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
|
@@ -364,7 +364,7 @@ module TurnkeyClient
|
|
364
364
|
return data, status_code, headers
|
365
365
|
end
|
366
366
|
# OTP auth
|
367
|
-
# Authenticate a user with an OTP code sent via email or SMS
|
367
|
+
# Authenticate a user with an OTP code sent via email or SMS.
|
368
368
|
# @param body
|
369
369
|
# @param [Hash] opts the optional parameters
|
370
370
|
# @return [ActivityResponse]
|
@@ -374,7 +374,7 @@ module TurnkeyClient
|
|
374
374
|
end
|
375
375
|
|
376
376
|
# OTP auth
|
377
|
-
# Authenticate a user with an OTP code sent via email or SMS
|
377
|
+
# Authenticate a user with an OTP code sent via email or SMS.
|
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
|
-
# Init
|
19
|
-
#
|
18
|
+
# Init email recovery
|
19
|
+
# Initialize a new email recovery.
|
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
|
-
# Init
|
29
|
-
#
|
28
|
+
# Init email recovery
|
29
|
+
# Initialize a new email recovery.
|
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
|
@@ -74,7 +74,7 @@ module TurnkeyClient
|
|
74
74
|
return data, status_code, headers
|
75
75
|
end
|
76
76
|
# Recover a user
|
77
|
-
#
|
77
|
+
# Complete the process of recovering a user by adding an authenticator.
|
78
78
|
# @param body
|
79
79
|
# @param [Hash] opts the optional parameters
|
80
80
|
# @return [ActivityResponse]
|
@@ -84,7 +84,7 @@ module TurnkeyClient
|
|
84
84
|
end
|
85
85
|
|
86
86
|
# Recover a user
|
87
|
-
#
|
87
|
+
# Complete the process of recovering a user by adding an authenticator.
|
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
|
@@ -15,7 +15,7 @@ module TurnkeyClient
|
|
15
15
|
def initialize(api_client = ApiClient.default)
|
16
16
|
@api_client = api_client
|
17
17
|
end
|
18
|
-
# Create
|
18
|
+
# Create user tag
|
19
19
|
# Create a user tag and add it to users.
|
20
20
|
# @param body
|
21
21
|
# @param [Hash] opts the optional parameters
|
@@ -25,7 +25,7 @@ module TurnkeyClient
|
|
25
25
|
data
|
26
26
|
end
|
27
27
|
|
28
|
-
# Create
|
28
|
+
# Create user tag
|
29
29
|
# Create a user tag and add it to users.
|
30
30
|
# @param body
|
31
31
|
# @param [Hash] opts the optional parameters
|
@@ -73,8 +73,8 @@ module TurnkeyClient
|
|
73
73
|
end
|
74
74
|
return data, status_code, headers
|
75
75
|
end
|
76
|
-
# Delete
|
77
|
-
# Delete
|
76
|
+
# Delete user tags
|
77
|
+
# Delete user tags within 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
|
-
# Delete
|
86
|
+
# Delete user tags
|
87
|
+
# Delete user tags within 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
|
-
# List
|
135
|
-
# List all
|
134
|
+
# List user tags
|
135
|
+
# List all user tags within an organization.
|
136
136
|
# @param body
|
137
137
|
# @param [Hash] opts the optional parameters
|
138
138
|
# @return [ListUserTagsResponse]
|
@@ -141,8 +141,8 @@ module TurnkeyClient
|
|
141
141
|
data
|
142
142
|
end
|
143
143
|
|
144
|
-
# List
|
145
|
-
# List all
|
144
|
+
# List user tags
|
145
|
+
# List all user tags within an organization.
|
146
146
|
# @param body
|
147
147
|
# @param [Hash] opts the optional parameters
|
148
148
|
# @return [Array<(ListUserTagsResponse, Integer, Hash)>] ListUserTagsResponse data, response status code and response headers
|
@@ -189,7 +189,7 @@ module TurnkeyClient
|
|
189
189
|
end
|
190
190
|
return data, status_code, headers
|
191
191
|
end
|
192
|
-
# Update
|
192
|
+
# Update user tag
|
193
193
|
# Update human-readable name or associated users. Note that this activity is atomic: all of the updates will succeed at once, or all of them will fail.
|
194
194
|
# @param body
|
195
195
|
# @param [Hash] opts the optional parameters
|
@@ -199,7 +199,7 @@ module TurnkeyClient
|
|
199
199
|
data
|
200
200
|
end
|
201
201
|
|
202
|
-
# Update
|
202
|
+
# Update user tag
|
203
203
|
# Update human-readable name or associated users. Note that this activity is atomic: all of the updates will succeed at once, or all of them will fail.
|
204
204
|
# @param body
|
205
205
|
# @param [Hash] opts the optional parameters
|