turnkey_client 0.0.9 → 0.0.13

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.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/lib/turnkey_client/api/features_api.rb +4 -4
  3. data/lib/turnkey_client/api/organizations_api.rb +60 -2
  4. data/lib/turnkey_client/api/user_auth_api.rb +348 -0
  5. data/lib/turnkey_client/api/users_api.rb +0 -232
  6. data/lib/turnkey_client/api/wallets_api.rb +118 -2
  7. data/lib/turnkey_client/models/activity_type.rb +4 -0
  8. data/lib/turnkey_client/models/address_format.rb +7 -0
  9. data/lib/turnkey_client/models/create_sub_organization_intent_v7.rb +292 -0
  10. data/lib/turnkey_client/models/create_sub_organization_request.rb +2 -2
  11. data/lib/turnkey_client/models/create_sub_organization_result_v7.rb +230 -0
  12. data/lib/turnkey_client/models/credential_type.rb +1 -0
  13. data/lib/turnkey_client/models/email_auth_intent.rb +14 -4
  14. data/lib/turnkey_client/models/email_auth_intent_v2.rb +14 -4
  15. data/lib/turnkey_client/models/feature_name.rb +2 -0
  16. data/lib/turnkey_client/models/get_sub_org_ids_request.rb +1 -1
  17. data/lib/turnkey_client/models/get_verified_sub_org_ids_request.rb +240 -0
  18. data/lib/turnkey_client/models/get_verified_sub_org_ids_response.rb +213 -0
  19. data/lib/turnkey_client/models/get_wallet_account_request.rb +246 -0
  20. data/lib/turnkey_client/models/get_wallet_account_response.rb +210 -0
  21. data/lib/turnkey_client/models/get_wallet_accounts_response.rb +1 -1
  22. data/lib/turnkey_client/models/init_otp_auth_intent.rb +264 -0
  23. data/lib/turnkey_client/models/init_otp_auth_request.rb +288 -0
  24. data/lib/turnkey_client/models/init_otp_auth_result.rb +211 -0
  25. data/lib/turnkey_client/models/intent.rb +40 -4
  26. data/lib/turnkey_client/models/otp_auth_intent.rb +266 -0
  27. data/lib/turnkey_client/models/otp_auth_request.rb +288 -0
  28. data/lib/turnkey_client/models/otp_auth_result.rb +231 -0
  29. data/lib/turnkey_client/models/result.rb +40 -4
  30. data/lib/turnkey_client/models/root_user_params_v4.rb +282 -0
  31. data/lib/turnkey_client/models/sms_customization_params.rb +206 -0
  32. data/lib/turnkey_client/models/update_user_intent.rb +14 -4
  33. data/lib/turnkey_client/models/update_wallet_intent.rb +221 -0
  34. data/lib/turnkey_client/models/update_wallet_request.rb +288 -0
  35. data/lib/turnkey_client/models/update_wallet_result.rb +211 -0
  36. data/lib/turnkey_client/models/user.rb +11 -1
  37. data/lib/turnkey_client/models/wallet_account.rb +16 -1
  38. data/lib/turnkey_client/version.rb +1 -1
  39. data/lib/turnkey_client.rb +17 -0
  40. data/turnkey_client-0.0.12.gem +0 -0
  41. data/turnkey_client-0.0.9.gem +0 -0
  42. metadata +21 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f8bc7a0a0e24c5d557f5852bb0faf866bfdc1fe71e25a4424b7fb0bae0e239f4
4
- data.tar.gz: b985001c47992de3c0b6478c8204d7a88b53c5ed27537214c5aeaa229fb9ebb9
3
+ metadata.gz: 735f419505b71e2c17a4b6d98a462154bed1f9c69ae8108071644c57790630d6
4
+ data.tar.gz: 97e239f9f8ce70527e983ae839afbb09e3ffa566ace0c28aa2b0cb54fb42b0e0
5
5
  SHA512:
6
- metadata.gz: eac7b15edcd779b1d9743c943b8e4fc6effd2794caad21c9b7822bd4fbfb7ec23023595315eebcd8f93efa90b1a5997827b1f90fc8a26b43509db3bea72062b8
7
- data.tar.gz: 3506ecd5e9ca60ca1f381b126f102000b699937c68fbe08488d2fd0db13b16aa34105831a27499c0a805afd9c149ae900885c2acc1ddb71910e9c0c171d35aa6
6
+ metadata.gz: d353e062d0a91636a6bd43ad6ea58c285a19015a77ae130bfc9a0d23cfe8af3c371e7e01d4a5b60207fcf50da850dab9c8a1e10e208174867562cdf39508ffee
7
+ data.tar.gz: 6d325ede310f1498ed5cdeac65842af814cbaded0027694ba5e323d4afe1c32822fe59143998662003efbd19e2be9c091d7b4ee33bbdee08c9530f9e2690e534
@@ -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
@@ -247,8 +247,66 @@ module TurnkeyClient
247
247
  end
248
248
  return data, status_code, headers
249
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
250
308
  # Update Root Quorum
251
- # 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.
252
310
  # @param body
253
311
  # @param [Hash] opts the optional parameters
254
312
  # @return [ActivityResponse]
@@ -258,7 +316,7 @@ module TurnkeyClient
258
316
  end
259
317
 
260
318
  # Update Root Quorum
261
- # 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.
262
320
  # @param body
263
321
  # @param [Hash] opts the optional parameters
264
322
  # @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
@@ -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