turnkey_client 0.0.8 → 0.0.12
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/features_api.rb +4 -4
- data/lib/turnkey_client/api/organizations_api.rb +118 -2
- data/lib/turnkey_client/api/private_keys_api.rb +2 -2
- data/lib/turnkey_client/api/user_auth_api.rb +348 -0
- data/lib/turnkey_client/api/users_api.rb +0 -232
- data/lib/turnkey_client/api/wallets_api.rb +60 -2
- data/lib/turnkey_client/models/activity_type.rb +6 -0
- data/lib/turnkey_client/models/address_format.rb +29 -0
- data/lib/turnkey_client/models/create_read_write_session_intent_v2.rb +241 -0
- data/lib/turnkey_client/models/create_read_write_session_request.rb +2 -2
- data/lib/turnkey_client/models/create_read_write_session_result_v2.rb +286 -0
- data/lib/turnkey_client/models/create_sub_organization_intent_v7.rb +292 -0
- data/lib/turnkey_client/models/create_sub_organization_request.rb +2 -2
- data/lib/turnkey_client/models/create_sub_organization_result_v7.rb +230 -0
- data/lib/turnkey_client/models/credential_type.rb +1 -0
- data/lib/turnkey_client/models/delete_sub_organization_intent.rb +206 -0
- data/lib/turnkey_client/models/delete_sub_organization_request.rb +288 -0
- data/lib/turnkey_client/models/delete_sub_organization_result.rb +211 -0
- data/lib/turnkey_client/models/email_auth_intent.rb +14 -4
- data/lib/turnkey_client/models/email_auth_intent_v2.rb +14 -4
- data/lib/turnkey_client/models/feature_name.rb +2 -0
- data/lib/turnkey_client/models/get_sub_org_ids_request.rb +1 -1
- data/lib/turnkey_client/models/get_verified_sub_org_ids_request.rb +240 -0
- data/lib/turnkey_client/models/get_verified_sub_org_ids_response.rb +213 -0
- data/lib/turnkey_client/models/init_otp_auth_intent.rb +264 -0
- data/lib/turnkey_client/models/init_otp_auth_request.rb +288 -0
- data/lib/turnkey_client/models/init_otp_auth_result.rb +211 -0
- data/lib/turnkey_client/models/intent.rb +58 -4
- data/lib/turnkey_client/models/otp_auth_intent.rb +266 -0
- data/lib/turnkey_client/models/otp_auth_request.rb +288 -0
- data/lib/turnkey_client/models/otp_auth_result.rb +231 -0
- data/lib/turnkey_client/models/result.rb +58 -4
- data/lib/turnkey_client/models/root_user_params_v4.rb +282 -0
- data/lib/turnkey_client/models/sms_customization_params.rb +206 -0
- data/lib/turnkey_client/models/transaction_type.rb +2 -1
- data/lib/turnkey_client/models/update_user_intent.rb +14 -4
- data/lib/turnkey_client/models/update_wallet_intent.rb +221 -0
- data/lib/turnkey_client/models/update_wallet_request.rb +288 -0
- data/lib/turnkey_client/models/update_wallet_result.rb +211 -0
- data/lib/turnkey_client/models/user.rb +11 -1
- data/lib/turnkey_client/models/wallet_account.rb +16 -1
- data/lib/turnkey_client/version.rb +1 -1
- data/lib/turnkey_client.rb +20 -0
- data/turnkey_client-0.0.8.gem +0 -0
- data/turnkey_client-0.0.9.gem +0 -0
- metadata +24 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb384a3abcc430468bbcc17adb52309f34fbf1df7184ea8f56eab1c311ddd0be
|
4
|
+
data.tar.gz: c1651ff2eef6a6ca5b307d98d8d7068352a335a6caecb40f496b7751615d0124
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7fc18cf4b162a3b4b5f0df23cf23c14cba616d30d3d413d39c73af6dd21703d6f9f9ffe6c81dabaedabe92542af3a3a2b4bb8633a7591b84d6bba453dfbb3c67
|
7
|
+
data.tar.gz: f95b607df00d0c06ae43776ad746a2dbc5d566374eb475728a05fea783887041b89602831feeec060a3dfe8188ef70a82cce56b9e1fc0aa4aa164a959474d157
|
@@ -16,7 +16,7 @@ module TurnkeyClient
|
|
16
16
|
@api_client = api_client
|
17
17
|
end
|
18
18
|
# Remove Organization Feature
|
19
|
-
# Removes an organization feature
|
19
|
+
# Removes an organization feature. This activity must be approved by the current root quorum.
|
20
20
|
# @param body
|
21
21
|
# @param [Hash] opts the optional parameters
|
22
22
|
# @return [ActivityResponse]
|
@@ -26,7 +26,7 @@ module TurnkeyClient
|
|
26
26
|
end
|
27
27
|
|
28
28
|
# Remove Organization Feature
|
29
|
-
# Removes an organization feature
|
29
|
+
# Removes an organization feature. This activity must be approved by the current root quorum.
|
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
|
# Set Organization Feature
|
77
|
-
# Sets an organization feature
|
77
|
+
# Sets an organization feature. This activity must be approved by the current root quorum.
|
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
|
# Set Organization Feature
|
87
|
-
# Sets an organization feature
|
87
|
+
# Sets an organization feature. This activity must be approved by the current root quorum.
|
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
|
@@ -73,6 +73,64 @@ module TurnkeyClient
|
|
73
73
|
end
|
74
74
|
return data, status_code, headers
|
75
75
|
end
|
76
|
+
# Delete Sub Organization
|
77
|
+
# Deletes a sub organization
|
78
|
+
# @param body
|
79
|
+
# @param [Hash] opts the optional parameters
|
80
|
+
# @return [ActivityResponse]
|
81
|
+
def delete_sub_organization(body, opts = {})
|
82
|
+
data, _status_code, _headers = delete_sub_organization_with_http_info(body, opts)
|
83
|
+
data
|
84
|
+
end
|
85
|
+
|
86
|
+
# Delete Sub Organization
|
87
|
+
# Deletes a sub organization
|
88
|
+
# @param body
|
89
|
+
# @param [Hash] opts the optional parameters
|
90
|
+
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|
91
|
+
def delete_sub_organization_with_http_info(body, opts = {})
|
92
|
+
if @api_client.config.debugging
|
93
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.delete_sub_organization ...'
|
94
|
+
end
|
95
|
+
# verify the required parameter 'body' is set
|
96
|
+
if @api_client.config.client_side_validation && body.nil?
|
97
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling OrganizationsApi.delete_sub_organization"
|
98
|
+
end
|
99
|
+
# resource path
|
100
|
+
local_var_path = '/public/v1/submit/delete_sub_organization'
|
101
|
+
|
102
|
+
# query parameters
|
103
|
+
query_params = opts[:query_params] || {}
|
104
|
+
|
105
|
+
# header parameters
|
106
|
+
header_params = opts[:header_params] || {}
|
107
|
+
# HTTP header 'Accept' (if needed)
|
108
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
109
|
+
# HTTP header 'Content-Type'
|
110
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
111
|
+
|
112
|
+
# form parameters
|
113
|
+
form_params = opts[:form_params] || {}
|
114
|
+
|
115
|
+
# http body (model)
|
116
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
117
|
+
|
118
|
+
return_type = opts[:return_type] || 'ActivityResponse'
|
119
|
+
|
120
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
121
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
122
|
+
:header_params => header_params,
|
123
|
+
:query_params => query_params,
|
124
|
+
:form_params => form_params,
|
125
|
+
:body => post_body,
|
126
|
+
:auth_names => auth_names,
|
127
|
+
:return_type => return_type)
|
128
|
+
|
129
|
+
if @api_client.config.debugging
|
130
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#delete_sub_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
131
|
+
end
|
132
|
+
return data, status_code, headers
|
133
|
+
end
|
76
134
|
# Get Configs
|
77
135
|
# Get quorum settings and features for an organization
|
78
136
|
# @param body
|
@@ -189,8 +247,66 @@ module TurnkeyClient
|
|
189
247
|
end
|
190
248
|
return data, status_code, headers
|
191
249
|
end
|
250
|
+
# Get Verified Suborgs
|
251
|
+
# Get all email or phone verified suborg IDs associated given a parent org ID.
|
252
|
+
# @param body
|
253
|
+
# @param [Hash] opts the optional parameters
|
254
|
+
# @return [GetVerifiedSubOrgIdsResponse]
|
255
|
+
def get_verified_sub_org_ids(body, opts = {})
|
256
|
+
data, _status_code, _headers = get_verified_sub_org_ids_with_http_info(body, opts)
|
257
|
+
data
|
258
|
+
end
|
259
|
+
|
260
|
+
# Get Verified Suborgs
|
261
|
+
# Get all email or phone verified suborg IDs associated given a parent org ID.
|
262
|
+
# @param body
|
263
|
+
# @param [Hash] opts the optional parameters
|
264
|
+
# @return [Array<(GetVerifiedSubOrgIdsResponse, Integer, Hash)>] GetVerifiedSubOrgIdsResponse data, response status code and response headers
|
265
|
+
def get_verified_sub_org_ids_with_http_info(body, opts = {})
|
266
|
+
if @api_client.config.debugging
|
267
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_verified_sub_org_ids ...'
|
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 OrganizationsApi.get_verified_sub_org_ids"
|
272
|
+
end
|
273
|
+
# resource path
|
274
|
+
local_var_path = '/public/v1/query/list_verified_suborgs'
|
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] || 'GetVerifiedSubOrgIdsResponse'
|
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: OrganizationsApi#get_verified_sub_org_ids\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
305
|
+
end
|
306
|
+
return data, status_code, headers
|
307
|
+
end
|
192
308
|
# Update Root Quorum
|
193
|
-
# Set the threshold and members of the root quorum. This must be approved by the current root quorum.
|
309
|
+
# Set the threshold and members of the root quorum. This activity must be approved by the current root quorum.
|
194
310
|
# @param body
|
195
311
|
# @param [Hash] opts the optional parameters
|
196
312
|
# @return [ActivityResponse]
|
@@ -200,7 +316,7 @@ module TurnkeyClient
|
|
200
316
|
end
|
201
317
|
|
202
318
|
# Update Root Quorum
|
203
|
-
# Set the threshold and members of the root quorum. This must be approved by the current root quorum.
|
319
|
+
# Set the threshold and members of the root quorum. This activity must be approved by the current root quorum.
|
204
320
|
# @param body
|
205
321
|
# @param [Hash] opts the optional parameters
|
206
322
|
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|
@@ -73,7 +73,7 @@ module TurnkeyClient
|
|
73
73
|
end
|
74
74
|
return data, status_code, headers
|
75
75
|
end
|
76
|
-
# Delete
|
76
|
+
# Delete Private Keys
|
77
77
|
# Deletes private keys for an organization
|
78
78
|
# @param body
|
79
79
|
# @param [Hash] opts the optional parameters
|
@@ -83,7 +83,7 @@ module TurnkeyClient
|
|
83
83
|
data
|
84
84
|
end
|
85
85
|
|
86
|
-
# Delete
|
86
|
+
# Delete Private Keys
|
87
87
|
# Deletes private keys for an organization
|
88
88
|
# @param body
|
89
89
|
# @param [Hash] opts the optional parameters
|
@@ -15,6 +15,122 @@ module TurnkeyClient
|
|
15
15
|
def initialize(api_client = ApiClient.default)
|
16
16
|
@api_client = api_client
|
17
17
|
end
|
18
|
+
# Create Oauth Providers
|
19
|
+
# Creates Oauth providers for a specified user - BETA
|
20
|
+
# @param body
|
21
|
+
# @param [Hash] opts the optional parameters
|
22
|
+
# @return [ActivityResponse]
|
23
|
+
def create_oauth_providers(body, opts = {})
|
24
|
+
data, _status_code, _headers = create_oauth_providers_with_http_info(body, opts)
|
25
|
+
data
|
26
|
+
end
|
27
|
+
|
28
|
+
# Create Oauth Providers
|
29
|
+
# Creates Oauth providers for a specified user - BETA
|
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_oauth_providers_with_http_info(body, opts = {})
|
34
|
+
if @api_client.config.debugging
|
35
|
+
@api_client.config.logger.debug 'Calling API: UserAuthApi.create_oauth_providers ...'
|
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_oauth_providers"
|
40
|
+
end
|
41
|
+
# resource path
|
42
|
+
local_var_path = '/public/v1/submit/create_oauth_providers'
|
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_oauth_providers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
73
|
+
end
|
74
|
+
return data, status_code, headers
|
75
|
+
end
|
76
|
+
# Delete Oauth Providers
|
77
|
+
# Removes Oauth providers for a specified user - BETA
|
78
|
+
# @param body
|
79
|
+
# @param [Hash] opts the optional parameters
|
80
|
+
# @return [ActivityResponse]
|
81
|
+
def delete_oauth_providers(body, opts = {})
|
82
|
+
data, _status_code, _headers = delete_oauth_providers_with_http_info(body, opts)
|
83
|
+
data
|
84
|
+
end
|
85
|
+
|
86
|
+
# Delete Oauth Providers
|
87
|
+
# Removes Oauth providers for a specified user - BETA
|
88
|
+
# @param body
|
89
|
+
# @param [Hash] opts the optional parameters
|
90
|
+
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|
91
|
+
def delete_oauth_providers_with_http_info(body, opts = {})
|
92
|
+
if @api_client.config.debugging
|
93
|
+
@api_client.config.logger.debug 'Calling API: UserAuthApi.delete_oauth_providers ...'
|
94
|
+
end
|
95
|
+
# verify the required parameter 'body' is set
|
96
|
+
if @api_client.config.client_side_validation && body.nil?
|
97
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling UserAuthApi.delete_oauth_providers"
|
98
|
+
end
|
99
|
+
# resource path
|
100
|
+
local_var_path = '/public/v1/submit/delete_oauth_providers'
|
101
|
+
|
102
|
+
# query parameters
|
103
|
+
query_params = opts[:query_params] || {}
|
104
|
+
|
105
|
+
# header parameters
|
106
|
+
header_params = opts[:header_params] || {}
|
107
|
+
# HTTP header 'Accept' (if needed)
|
108
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
109
|
+
# HTTP header 'Content-Type'
|
110
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
111
|
+
|
112
|
+
# form parameters
|
113
|
+
form_params = opts[:form_params] || {}
|
114
|
+
|
115
|
+
# http body (model)
|
116
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
117
|
+
|
118
|
+
return_type = opts[:return_type] || 'ActivityResponse'
|
119
|
+
|
120
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
121
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
122
|
+
:header_params => header_params,
|
123
|
+
:query_params => query_params,
|
124
|
+
:form_params => form_params,
|
125
|
+
:body => post_body,
|
126
|
+
:auth_names => auth_names,
|
127
|
+
:return_type => return_type)
|
128
|
+
|
129
|
+
if @api_client.config.debugging
|
130
|
+
@api_client.config.logger.debug "API called: UserAuthApi#delete_oauth_providers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
131
|
+
end
|
132
|
+
return data, status_code, headers
|
133
|
+
end
|
18
134
|
# Perform Email Auth
|
19
135
|
# Authenticate a user via Email
|
20
136
|
# @param body
|
@@ -73,5 +189,237 @@ module TurnkeyClient
|
|
73
189
|
end
|
74
190
|
return data, status_code, headers
|
75
191
|
end
|
192
|
+
# Get Oauth providers
|
193
|
+
# Get details about Oauth providers for a user
|
194
|
+
# @param body
|
195
|
+
# @param [Hash] opts the optional parameters
|
196
|
+
# @return [GetOauthProvidersResponse]
|
197
|
+
def get_oauth_providers(body, opts = {})
|
198
|
+
data, _status_code, _headers = get_oauth_providers_with_http_info(body, opts)
|
199
|
+
data
|
200
|
+
end
|
201
|
+
|
202
|
+
# Get Oauth providers
|
203
|
+
# Get details about Oauth providers for a user
|
204
|
+
# @param body
|
205
|
+
# @param [Hash] opts the optional parameters
|
206
|
+
# @return [Array<(GetOauthProvidersResponse, Integer, Hash)>] GetOauthProvidersResponse data, response status code and response headers
|
207
|
+
def get_oauth_providers_with_http_info(body, opts = {})
|
208
|
+
if @api_client.config.debugging
|
209
|
+
@api_client.config.logger.debug 'Calling API: UserAuthApi.get_oauth_providers ...'
|
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 UserAuthApi.get_oauth_providers"
|
214
|
+
end
|
215
|
+
# resource path
|
216
|
+
local_var_path = '/public/v1/query/get_oauth_providers'
|
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] || 'GetOauthProvidersResponse'
|
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: UserAuthApi#get_oauth_providers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
247
|
+
end
|
248
|
+
return data, status_code, headers
|
249
|
+
end
|
250
|
+
# Init OTP auth
|
251
|
+
# Initiate an OTP auth activity
|
252
|
+
# @param body
|
253
|
+
# @param [Hash] opts the optional parameters
|
254
|
+
# @return [ActivityResponse]
|
255
|
+
def init_otp_auth(body, opts = {})
|
256
|
+
data, _status_code, _headers = init_otp_auth_with_http_info(body, opts)
|
257
|
+
data
|
258
|
+
end
|
259
|
+
|
260
|
+
# Init OTP auth
|
261
|
+
# Initiate an OTP auth activity
|
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 init_otp_auth_with_http_info(body, opts = {})
|
266
|
+
if @api_client.config.debugging
|
267
|
+
@api_client.config.logger.debug 'Calling API: UserAuthApi.init_otp_auth ...'
|
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 UserAuthApi.init_otp_auth"
|
272
|
+
end
|
273
|
+
# resource path
|
274
|
+
local_var_path = '/public/v1/submit/init_otp_auth'
|
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: UserAuthApi#init_otp_auth\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
305
|
+
end
|
306
|
+
return data, status_code, headers
|
307
|
+
end
|
308
|
+
# Oauth
|
309
|
+
# Authenticate a user with an Oidc token (Oauth) - BETA
|
310
|
+
# @param body
|
311
|
+
# @param [Hash] opts the optional parameters
|
312
|
+
# @return [ActivityResponse]
|
313
|
+
def oauth(body, opts = {})
|
314
|
+
data, _status_code, _headers = oauth_with_http_info(body, opts)
|
315
|
+
data
|
316
|
+
end
|
317
|
+
|
318
|
+
# Oauth
|
319
|
+
# Authenticate a user with an Oidc token (Oauth) - BETA
|
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 oauth_with_http_info(body, opts = {})
|
324
|
+
if @api_client.config.debugging
|
325
|
+
@api_client.config.logger.debug 'Calling API: UserAuthApi.oauth ...'
|
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 UserAuthApi.oauth"
|
330
|
+
end
|
331
|
+
# resource path
|
332
|
+
local_var_path = '/public/v1/submit/oauth'
|
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: UserAuthApi#oauth\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
363
|
+
end
|
364
|
+
return data, status_code, headers
|
365
|
+
end
|
366
|
+
# OTP auth
|
367
|
+
# Authenticate a user with an OTP code sent via email or SMS
|
368
|
+
# @param body
|
369
|
+
# @param [Hash] opts the optional parameters
|
370
|
+
# @return [ActivityResponse]
|
371
|
+
def otp_auth(body, opts = {})
|
372
|
+
data, _status_code, _headers = otp_auth_with_http_info(body, opts)
|
373
|
+
data
|
374
|
+
end
|
375
|
+
|
376
|
+
# OTP auth
|
377
|
+
# Authenticate a user with an OTP code sent via email or SMS
|
378
|
+
# @param body
|
379
|
+
# @param [Hash] opts the optional parameters
|
380
|
+
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|
381
|
+
def otp_auth_with_http_info(body, opts = {})
|
382
|
+
if @api_client.config.debugging
|
383
|
+
@api_client.config.logger.debug 'Calling API: UserAuthApi.otp_auth ...'
|
384
|
+
end
|
385
|
+
# verify the required parameter 'body' is set
|
386
|
+
if @api_client.config.client_side_validation && body.nil?
|
387
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling UserAuthApi.otp_auth"
|
388
|
+
end
|
389
|
+
# resource path
|
390
|
+
local_var_path = '/public/v1/submit/otp_auth'
|
391
|
+
|
392
|
+
# query parameters
|
393
|
+
query_params = opts[:query_params] || {}
|
394
|
+
|
395
|
+
# header parameters
|
396
|
+
header_params = opts[:header_params] || {}
|
397
|
+
# HTTP header 'Accept' (if needed)
|
398
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
399
|
+
# HTTP header 'Content-Type'
|
400
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
401
|
+
|
402
|
+
# form parameters
|
403
|
+
form_params = opts[:form_params] || {}
|
404
|
+
|
405
|
+
# http body (model)
|
406
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
407
|
+
|
408
|
+
return_type = opts[:return_type] || 'ActivityResponse'
|
409
|
+
|
410
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
411
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
412
|
+
:header_params => header_params,
|
413
|
+
:query_params => query_params,
|
414
|
+
:form_params => form_params,
|
415
|
+
:body => post_body,
|
416
|
+
:auth_names => auth_names,
|
417
|
+
:return_type => return_type)
|
418
|
+
|
419
|
+
if @api_client.config.debugging
|
420
|
+
@api_client.config.logger.debug "API called: UserAuthApi#otp_auth\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
421
|
+
end
|
422
|
+
return data, status_code, headers
|
423
|
+
end
|
76
424
|
end
|
77
425
|
end
|