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.
Files changed (167) hide show
  1. checksums.yaml +4 -4
  2. data/lib/turnkey_client/api/activities_api.rb +66 -8
  3. data/lib/turnkey_client/api/api_keys_api.rb +14 -14
  4. data/lib/turnkey_client/api/authenticators_api.rb +16 -16
  5. data/lib/turnkey_client/api/consensus_api.rb +8 -8
  6. data/lib/turnkey_client/api/features_api.rb +8 -8
  7. data/lib/turnkey_client/api/invitations_api.rb +8 -8
  8. data/lib/turnkey_client/api/on_ramp_api.rb +77 -0
  9. data/lib/turnkey_client/api/organizations_api.rb +18 -18
  10. data/lib/turnkey_client/api/policies_api.rb +256 -24
  11. data/lib/turnkey_client/api/private_key_tags_api.rb +12 -12
  12. data/lib/turnkey_client/api/private_keys_api.rb +28 -28
  13. data/lib/turnkey_client/api/sessions_api.rb +184 -10
  14. data/lib/turnkey_client/api/signing_api.rb +12 -12
  15. data/lib/turnkey_client/api/user_auth_api.rb +20 -20
  16. data/lib/turnkey_client/api/user_recovery_api.rb +6 -6
  17. data/lib/turnkey_client/api/user_tags_api.rb +12 -12
  18. data/lib/turnkey_client/api/user_verification_api.rb +135 -0
  19. data/lib/turnkey_client/api/users_api.rb +194 -20
  20. data/lib/turnkey_client/api/wallets_api.rb +48 -48
  21. data/lib/turnkey_client/models/activity_type.rb +14 -0
  22. data/lib/turnkey_client/models/activity_v1_policy_evaluation.rb +287 -0
  23. data/lib/turnkey_client/models/address_format.rb +1 -0
  24. data/lib/turnkey_client/models/api_key.rb +1 -0
  25. data/lib/turnkey_client/models/api_key_params.rb +1 -0
  26. data/lib/turnkey_client/models/api_key_params_v2.rb +1 -0
  27. data/lib/turnkey_client/models/api_only_user_params.rb +3 -2
  28. data/lib/turnkey_client/models/create_organization_intent.rb +1 -0
  29. data/lib/turnkey_client/models/create_organization_intent_v2.rb +1 -0
  30. data/lib/turnkey_client/models/create_policy_intent_v3.rb +2 -0
  31. data/lib/turnkey_client/models/create_read_write_session_intent.rb +3 -1
  32. data/lib/turnkey_client/models/create_read_write_session_intent_v2.rb +19 -5
  33. data/lib/turnkey_client/models/create_smart_contract_interface_intent.rb +265 -0
  34. data/lib/turnkey_client/models/create_smart_contract_interface_request.rb +288 -0
  35. data/lib/turnkey_client/models/create_smart_contract_interface_result.rb +211 -0
  36. data/lib/turnkey_client/models/create_sub_organization_intent_v4.rb +2 -0
  37. data/lib/turnkey_client/models/create_sub_organization_intent_v5.rb +2 -0
  38. data/lib/turnkey_client/models/create_sub_organization_intent_v6.rb +2 -0
  39. data/lib/turnkey_client/models/create_sub_organization_intent_v7.rb +4 -0
  40. data/lib/turnkey_client/models/create_users_intent_v3.rb +213 -0
  41. data/lib/turnkey_client/models/create_users_request.rb +2 -2
  42. data/lib/turnkey_client/models/create_wallet_intent.rb +2 -1
  43. data/lib/turnkey_client/models/credential_type.rb +3 -0
  44. data/lib/turnkey_client/models/data_v1_smart_contract_interface.rb +329 -0
  45. data/lib/turnkey_client/models/delete_payment_method_intent.rb +1 -0
  46. data/lib/turnkey_client/models/delete_private_keys_intent.rb +1 -0
  47. data/lib/turnkey_client/models/delete_smart_contract_interface_intent.rb +211 -0
  48. data/lib/turnkey_client/models/delete_smart_contract_interface_request.rb +288 -0
  49. data/lib/turnkey_client/models/delete_smart_contract_interface_result.rb +211 -0
  50. data/lib/turnkey_client/models/delete_sub_organization_intent.rb +1 -0
  51. data/lib/turnkey_client/models/delete_wallets_intent.rb +1 -0
  52. data/lib/turnkey_client/models/email_auth_intent.rb +31 -5
  53. data/lib/turnkey_client/models/email_auth_intent_v2.rb +31 -5
  54. data/lib/turnkey_client/models/email_customization_params.rb +5 -0
  55. data/lib/turnkey_client/models/feature.rb +1 -0
  56. data/lib/turnkey_client/models/fiat_on_ramp_blockchain_network.rb +29 -0
  57. data/lib/turnkey_client/models/fiat_on_ramp_crypto_currency.rb +29 -0
  58. data/lib/turnkey_client/models/fiat_on_ramp_currency.rb +59 -0
  59. data/lib/turnkey_client/models/fiat_on_ramp_payment_method.rb +38 -0
  60. data/lib/turnkey_client/models/fiat_on_ramp_provider.rb +27 -0
  61. data/lib/turnkey_client/models/get_activities_request.rb +3 -3
  62. data/lib/turnkey_client/models/get_activities_response.rb +1 -1
  63. data/lib/turnkey_client/models/get_activity_request.rb +2 -2
  64. data/lib/turnkey_client/models/get_api_key_request.rb +1 -1
  65. data/lib/turnkey_client/models/get_api_keys_request.rb +3 -2
  66. data/lib/turnkey_client/models/get_authenticator_request.rb +2 -2
  67. data/lib/turnkey_client/models/get_authenticators_request.rb +2 -2
  68. data/lib/turnkey_client/models/get_oauth_providers_request.rb +3 -2
  69. data/lib/turnkey_client/models/get_oauth_providers_response.rb +1 -1
  70. data/lib/turnkey_client/models/get_organization_configs_request.rb +1 -1
  71. data/lib/turnkey_client/models/get_policies_request.rb +1 -1
  72. data/lib/turnkey_client/models/get_policies_response.rb +1 -1
  73. data/lib/turnkey_client/models/get_policy_evaluations_request.rb +226 -0
  74. data/lib/turnkey_client/models/get_policy_evaluations_response.rb +212 -0
  75. data/lib/turnkey_client/models/get_policy_request.rb +2 -2
  76. data/lib/turnkey_client/models/get_private_key_request.rb +2 -2
  77. data/lib/turnkey_client/models/get_private_keys_request.rb +1 -1
  78. data/lib/turnkey_client/models/get_private_keys_response.rb +1 -1
  79. data/lib/turnkey_client/models/get_smart_contract_interface_request.rb +226 -0
  80. data/lib/turnkey_client/models/get_smart_contract_interface_response.rb +210 -0
  81. data/lib/turnkey_client/models/get_smart_contract_interfaces_request.rb +211 -0
  82. data/lib/turnkey_client/models/get_smart_contract_interfaces_response.rb +213 -0
  83. data/lib/turnkey_client/models/get_sub_org_ids_request.rb +2 -2
  84. data/lib/turnkey_client/models/get_user_request.rb +2 -2
  85. data/lib/turnkey_client/models/get_users_request.rb +1 -1
  86. data/lib/turnkey_client/models/get_users_response.rb +1 -1
  87. data/lib/turnkey_client/models/get_verified_sub_org_ids_request.rb +2 -2
  88. data/lib/turnkey_client/models/get_wallet_account_request.rb +6 -4
  89. data/lib/turnkey_client/models/get_wallet_accounts_request.rb +3 -7
  90. data/lib/turnkey_client/models/get_wallet_accounts_response.rb +1 -1
  91. data/lib/turnkey_client/models/get_wallet_request.rb +2 -2
  92. data/lib/turnkey_client/models/get_wallets_request.rb +1 -1
  93. data/lib/turnkey_client/models/get_wallets_response.rb +1 -1
  94. data/lib/turnkey_client/models/get_whoami_request.rb +1 -1
  95. data/lib/turnkey_client/models/get_whoami_response.rb +4 -4
  96. data/lib/turnkey_client/models/init_fiat_on_ramp_intent.rb +315 -0
  97. data/lib/turnkey_client/models/init_fiat_on_ramp_request.rb +288 -0
  98. data/lib/turnkey_client/models/init_fiat_on_ramp_result.rb +226 -0
  99. data/lib/turnkey_client/models/init_otp_auth_intent.rb +28 -4
  100. data/lib/turnkey_client/models/init_otp_auth_intent_v2.rb +310 -0
  101. data/lib/turnkey_client/models/init_otp_auth_request.rb +2 -2
  102. data/lib/turnkey_client/models/init_otp_auth_result_v2.rb +211 -0
  103. data/lib/turnkey_client/models/init_otp_intent.rb +321 -0
  104. data/lib/turnkey_client/models/init_otp_request.rb +288 -0
  105. data/lib/turnkey_client/models/init_otp_result.rb +211 -0
  106. data/lib/turnkey_client/models/init_user_email_recovery_intent.rb +2 -1
  107. data/lib/turnkey_client/models/intent.rb +130 -4
  108. data/lib/turnkey_client/models/invitation_params.rb +1 -1
  109. data/lib/turnkey_client/models/list_private_key_tags_request.rb +1 -1
  110. data/lib/turnkey_client/models/list_private_key_tags_response.rb +1 -1
  111. data/lib/turnkey_client/models/list_user_tags_request.rb +1 -1
  112. data/lib/turnkey_client/models/list_user_tags_response.rb +1 -1
  113. data/lib/turnkey_client/models/oauth_intent.rb +18 -5
  114. data/lib/turnkey_client/models/oauth_login_intent.rb +248 -0
  115. data/lib/turnkey_client/models/oauth_login_request.rb +288 -0
  116. data/lib/turnkey_client/models/oauth_login_result.rb +211 -0
  117. data/lib/turnkey_client/models/otp_auth_intent.rb +10 -2
  118. data/lib/turnkey_client/models/otp_login_intent.rb +248 -0
  119. data/lib/turnkey_client/models/otp_login_request.rb +288 -0
  120. data/lib/turnkey_client/models/otp_login_result.rb +211 -0
  121. data/lib/turnkey_client/models/outcome.rb +31 -0
  122. data/lib/turnkey_client/models/payload_encoding.rb +1 -0
  123. data/lib/turnkey_client/models/policy.rb +2 -0
  124. data/lib/turnkey_client/models/private_key_params.rb +1 -1
  125. data/lib/turnkey_client/models/result.rb +121 -4
  126. data/lib/turnkey_client/models/root_user_params.rb +3 -2
  127. data/lib/turnkey_client/models/root_user_params_v2.rb +4 -3
  128. data/lib/turnkey_client/models/root_user_params_v3.rb +4 -3
  129. data/lib/turnkey_client/models/root_user_params_v4.rb +5 -3
  130. data/lib/turnkey_client/models/set_organization_feature_intent.rb +1 -0
  131. data/lib/turnkey_client/models/simple_client_extension_results.rb +2 -0
  132. data/lib/turnkey_client/models/smart_contract_interface_type.rb +27 -0
  133. data/lib/turnkey_client/models/sms_customization_params.rb +1 -0
  134. data/lib/turnkey_client/models/stamp_login_intent.rb +233 -0
  135. data/lib/turnkey_client/models/stamp_login_request.rb +288 -0
  136. data/lib/turnkey_client/models/stamp_login_result.rb +211 -0
  137. data/lib/turnkey_client/models/transaction_type.rb +1 -0
  138. data/lib/turnkey_client/models/ump_v1_policy_evaluation.rb +214 -0
  139. data/lib/turnkey_client/models/update_policy_intent.rb +4 -0
  140. data/lib/turnkey_client/models/update_policy_intent_v2.rb +264 -0
  141. data/lib/turnkey_client/models/update_policy_request.rb +2 -2
  142. data/lib/turnkey_client/models/update_policy_result_v2.rb +211 -0
  143. data/lib/turnkey_client/models/update_private_key_tag_intent.rb +1 -0
  144. data/lib/turnkey_client/models/update_user_email_intent.rb +237 -0
  145. data/lib/turnkey_client/models/update_user_email_request.rb +288 -0
  146. data/lib/turnkey_client/models/update_user_email_result.rb +211 -0
  147. data/lib/turnkey_client/models/update_user_intent.rb +4 -1
  148. data/lib/turnkey_client/models/update_user_name_intent.rb +226 -0
  149. data/lib/turnkey_client/models/update_user_name_request.rb +288 -0
  150. data/lib/turnkey_client/models/update_user_name_result.rb +211 -0
  151. data/lib/turnkey_client/models/update_user_phone_number_intent.rb +237 -0
  152. data/lib/turnkey_client/models/update_user_phone_number_request.rb +288 -0
  153. data/lib/turnkey_client/models/update_user_phone_number_result.rb +211 -0
  154. data/lib/turnkey_client/models/update_user_tag_intent.rb +1 -0
  155. data/lib/turnkey_client/models/user.rb +3 -1
  156. data/lib/turnkey_client/models/user_params.rb +4 -3
  157. data/lib/turnkey_client/models/user_params_v2.rb +4 -3
  158. data/lib/turnkey_client/models/user_params_v3.rb +301 -0
  159. data/lib/turnkey_client/models/verify_otp_intent.rb +237 -0
  160. data/lib/turnkey_client/models/verify_otp_request.rb +288 -0
  161. data/lib/turnkey_client/models/verify_otp_result.rb +211 -0
  162. data/lib/turnkey_client/models/wallet_account.rb +15 -4
  163. data/lib/turnkey_client/models/wallet_params.rb +2 -1
  164. data/lib/turnkey_client/version.rb +1 -1
  165. data/lib/turnkey_client.rb +57 -0
  166. data/turnkey_client-0.0.13.gem +0 -0
  167. metadata +60 -2
@@ -0,0 +1,135 @@
1
+ =begin
2
+ #API Reference
3
+
4
+ #Review our [API Introduction](../api-introduction) to get started.
5
+
6
+ OpenAPI spec version: 1.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ =end
10
+
11
+ module TurnkeyClient
12
+ class UserVerificationApi
13
+ attr_accessor :api_client
14
+
15
+ def initialize(api_client = ApiClient.default)
16
+ @api_client = api_client
17
+ end
18
+ # Init generic OTP
19
+ # Initiate a generic OTP activity.
20
+ # @param body
21
+ # @param [Hash] opts the optional parameters
22
+ # @return [ActivityResponse]
23
+ def init_otp(body, opts = {})
24
+ data, _status_code, _headers = init_otp_with_http_info(body, opts)
25
+ data
26
+ end
27
+
28
+ # Init generic OTP
29
+ # Initiate a generic OTP activity.
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 init_otp_with_http_info(body, opts = {})
34
+ if @api_client.config.debugging
35
+ @api_client.config.logger.debug 'Calling API: UserVerificationApi.init_otp ...'
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 UserVerificationApi.init_otp"
40
+ end
41
+ # resource path
42
+ local_var_path = '/public/v1/submit/init_otp'
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: UserVerificationApi#init_otp\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
73
+ end
74
+ return data, status_code, headers
75
+ end
76
+ # Verify generic OTP
77
+ # Verify a generic OTP.
78
+ # @param body
79
+ # @param [Hash] opts the optional parameters
80
+ # @return [ActivityResponse]
81
+ def verify_otp(body, opts = {})
82
+ data, _status_code, _headers = verify_otp_with_http_info(body, opts)
83
+ data
84
+ end
85
+
86
+ # Verify generic OTP
87
+ # Verify a generic OTP.
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 verify_otp_with_http_info(body, opts = {})
92
+ if @api_client.config.debugging
93
+ @api_client.config.logger.debug 'Calling API: UserVerificationApi.verify_otp ...'
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 UserVerificationApi.verify_otp"
98
+ end
99
+ # resource path
100
+ local_var_path = '/public/v1/submit/verify_otp'
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: UserVerificationApi#verify_otp\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
131
+ end
132
+ return data, status_code, headers
133
+ end
134
+ end
135
+ 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
- # Create Users
19
- # Create Users in an existing Organization
18
+ # Create users
19
+ # Create users in an existing organization.
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 Users
29
- # Create Users in an existing Organization
28
+ # Create users
29
+ # Create users in an existing organization.
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 Users
77
- # Delete Users within an Organization
76
+ # Delete users
77
+ # Delete users 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 Users
87
- # Delete Users within an Organization
86
+ # Delete users
87
+ # Delete users 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
- # Get User
135
- # Get details about a User
134
+ # Get user
135
+ # Get details about a user.
136
136
  # @param body
137
137
  # @param [Hash] opts the optional parameters
138
138
  # @return [GetUserResponse]
@@ -141,8 +141,8 @@ module TurnkeyClient
141
141
  data
142
142
  end
143
143
 
144
- # Get User
145
- # Get details about a User
144
+ # Get user
145
+ # Get details about a user.
146
146
  # @param body
147
147
  # @param [Hash] opts the optional parameters
148
148
  # @return [Array<(GetUserResponse, Integer, Hash)>] GetUserResponse 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
- # List Users
193
- # List all Users within an Organization
192
+ # List users
193
+ # List all users within an organization.
194
194
  # @param body
195
195
  # @param [Hash] opts the optional parameters
196
196
  # @return [GetUsersResponse]
@@ -199,8 +199,8 @@ module TurnkeyClient
199
199
  data
200
200
  end
201
201
 
202
- # List Users
203
- # List all Users within an Organization
202
+ # List users
203
+ # List all users within an organization.
204
204
  # @param body
205
205
  # @param [Hash] opts the optional parameters
206
206
  # @return [Array<(GetUsersResponse, Integer, Hash)>] GetUsersResponse 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
- # Update User
251
- # Update a User in an existing Organization
250
+ # Update user
251
+ # Update a user in an existing organization.
252
252
  # @param body
253
253
  # @param [Hash] opts the optional parameters
254
254
  # @return [ActivityResponse]
@@ -257,8 +257,8 @@ module TurnkeyClient
257
257
  data
258
258
  end
259
259
 
260
- # Update User
261
- # Update a User in an existing Organization
260
+ # Update user
261
+ # Update a user in an existing organization.
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
@@ -305,5 +305,179 @@ module TurnkeyClient
305
305
  end
306
306
  return data, status_code, headers
307
307
  end
308
+ # Update user's email
309
+ # Update a user's email in an existing organization.
310
+ # @param body
311
+ # @param [Hash] opts the optional parameters
312
+ # @return [ActivityResponse]
313
+ def update_user_email(body, opts = {})
314
+ data, _status_code, _headers = update_user_email_with_http_info(body, opts)
315
+ data
316
+ end
317
+
318
+ # Update user&#x27;s email
319
+ # Update a user&#x27;s email in an existing organization.
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 update_user_email_with_http_info(body, opts = {})
324
+ if @api_client.config.debugging
325
+ @api_client.config.logger.debug 'Calling API: UsersApi.update_user_email ...'
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 UsersApi.update_user_email"
330
+ end
331
+ # resource path
332
+ local_var_path = '/public/v1/submit/update_user_email'
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: UsersApi#update_user_email\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
363
+ end
364
+ return data, status_code, headers
365
+ end
366
+ # Update user's name
367
+ # Update a user's name in an existing organization.
368
+ # @param body
369
+ # @param [Hash] opts the optional parameters
370
+ # @return [ActivityResponse]
371
+ def update_user_name(body, opts = {})
372
+ data, _status_code, _headers = update_user_name_with_http_info(body, opts)
373
+ data
374
+ end
375
+
376
+ # Update user&#x27;s name
377
+ # Update a user&#x27;s name in an existing organization.
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 update_user_name_with_http_info(body, opts = {})
382
+ if @api_client.config.debugging
383
+ @api_client.config.logger.debug 'Calling API: UsersApi.update_user_name ...'
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 UsersApi.update_user_name"
388
+ end
389
+ # resource path
390
+ local_var_path = '/public/v1/submit/update_user_name'
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: UsersApi#update_user_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
421
+ end
422
+ return data, status_code, headers
423
+ end
424
+ # Update user's phone number
425
+ # Update a user's phone number in an existing organization.
426
+ # @param body
427
+ # @param [Hash] opts the optional parameters
428
+ # @return [ActivityResponse]
429
+ def update_user_phone_number(body, opts = {})
430
+ data, _status_code, _headers = update_user_phone_number_with_http_info(body, opts)
431
+ data
432
+ end
433
+
434
+ # Update user&#x27;s phone number
435
+ # Update a user&#x27;s phone number in an existing organization.
436
+ # @param body
437
+ # @param [Hash] opts the optional parameters
438
+ # @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
439
+ def update_user_phone_number_with_http_info(body, opts = {})
440
+ if @api_client.config.debugging
441
+ @api_client.config.logger.debug 'Calling API: UsersApi.update_user_phone_number ...'
442
+ end
443
+ # verify the required parameter 'body' is set
444
+ if @api_client.config.client_side_validation && body.nil?
445
+ fail ArgumentError, "Missing the required parameter 'body' when calling UsersApi.update_user_phone_number"
446
+ end
447
+ # resource path
448
+ local_var_path = '/public/v1/submit/update_user_phone_number'
449
+
450
+ # query parameters
451
+ query_params = opts[:query_params] || {}
452
+
453
+ # header parameters
454
+ header_params = opts[:header_params] || {}
455
+ # HTTP header 'Accept' (if needed)
456
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
457
+ # HTTP header 'Content-Type'
458
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
459
+
460
+ # form parameters
461
+ form_params = opts[:form_params] || {}
462
+
463
+ # http body (model)
464
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
465
+
466
+ return_type = opts[:return_type] || 'ActivityResponse'
467
+
468
+ auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
469
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
470
+ :header_params => header_params,
471
+ :query_params => query_params,
472
+ :form_params => form_params,
473
+ :body => post_body,
474
+ :auth_names => auth_names,
475
+ :return_type => return_type)
476
+
477
+ if @api_client.config.debugging
478
+ @api_client.config.logger.debug "API called: UsersApi#update_user_phone_number\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
479
+ end
480
+ return data, status_code, headers
481
+ end
308
482
  end
309
483
  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
- # Create Wallet
19
- # Create a Wallet and derive addresses
18
+ # Create wallet
19
+ # Create a wallet and derive addresses.
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 Wallet
29
- # Create a Wallet and derive addresses
28
+ # Create wallet
29
+ # Create a wallet and derive addresses.
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 Wallet Accounts
77
- # Derive additional addresses using an existing wallet
76
+ # Create wallet accounts
77
+ # Derive additional addresses using an existing wallet.
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 Wallet Accounts
87
- # Derive additional addresses using an existing wallet
86
+ # Create wallet accounts
87
+ # Derive additional addresses using an existing wallet.
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
- # Delete Wallets
135
- # Deletes wallets for an organization
134
+ # Delete wallets
135
+ # Delete wallets for an organization.
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
- # Delete Wallets
145
- # Deletes wallets for an organization
144
+ # Delete wallets
145
+ # Delete wallets for an organization.
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
- # Export Wallet
193
- # Exports a Wallet
192
+ # Export wallet
193
+ # Export a wallet.
194
194
  # @param body
195
195
  # @param [Hash] opts the optional parameters
196
196
  # @return [ActivityResponse]
@@ -199,8 +199,8 @@ module TurnkeyClient
199
199
  data
200
200
  end
201
201
 
202
- # Export Wallet
203
- # Exports a Wallet
202
+ # Export wallet
203
+ # Export a wallet.
204
204
  # @param body
205
205
  # @param [Hash] opts the optional parameters
206
206
  # @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse 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
- # Export Wallet Account
251
- # Exports a Wallet Account
250
+ # Export wallet account
251
+ # Export a wallet account.
252
252
  # @param body
253
253
  # @param [Hash] opts the optional parameters
254
254
  # @return [ActivityResponse]
@@ -257,8 +257,8 @@ module TurnkeyClient
257
257
  data
258
258
  end
259
259
 
260
- # Export Wallet Account
261
- # Exports a Wallet Account
260
+ # Export wallet account
261
+ # Export a wallet account.
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
@@ -305,8 +305,8 @@ module TurnkeyClient
305
305
  end
306
306
  return data, status_code, headers
307
307
  end
308
- # Get Wallet
309
- # Get details about a Wallet
308
+ # Get wallet
309
+ # Get details about a wallet.
310
310
  # @param body
311
311
  # @param [Hash] opts the optional parameters
312
312
  # @return [GetWalletResponse]
@@ -315,8 +315,8 @@ module TurnkeyClient
315
315
  data
316
316
  end
317
317
 
318
- # Get Wallet
319
- # Get details about a Wallet
318
+ # Get wallet
319
+ # Get details about a wallet.
320
320
  # @param body
321
321
  # @param [Hash] opts the optional parameters
322
322
  # @return [Array<(GetWalletResponse, Integer, Hash)>] GetWalletResponse 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
- # Get Wallet Account
367
- # Get a single wallet account
366
+ # Get wallet account
367
+ # Get a single wallet account.
368
368
  # @param body
369
369
  # @param [Hash] opts the optional parameters
370
370
  # @return [GetWalletAccountResponse]
@@ -373,8 +373,8 @@ module TurnkeyClient
373
373
  data
374
374
  end
375
375
 
376
- # Get Wallet Account
377
- # Get a single wallet account
376
+ # Get wallet account
377
+ # Get a single wallet account.
378
378
  # @param body
379
379
  # @param [Hash] opts the optional parameters
380
380
  # @return [Array<(GetWalletAccountResponse, Integer, Hash)>] GetWalletAccountResponse data, response status code and response headers
@@ -421,8 +421,8 @@ module TurnkeyClient
421
421
  end
422
422
  return data, status_code, headers
423
423
  end
424
- # List Wallets Accounts
425
- # List all Accounts within a Wallet
424
+ # List wallets accounts
425
+ # List all accounts within a wallet.
426
426
  # @param body
427
427
  # @param [Hash] opts the optional parameters
428
428
  # @return [GetWalletAccountsResponse]
@@ -431,8 +431,8 @@ module TurnkeyClient
431
431
  data
432
432
  end
433
433
 
434
- # List Wallets Accounts
435
- # List all Accounts within a Wallet
434
+ # List wallets accounts
435
+ # List all accounts within a wallet.
436
436
  # @param body
437
437
  # @param [Hash] opts the optional parameters
438
438
  # @return [Array<(GetWalletAccountsResponse, Integer, Hash)>] GetWalletAccountsResponse data, response status code and response headers
@@ -479,8 +479,8 @@ module TurnkeyClient
479
479
  end
480
480
  return data, status_code, headers
481
481
  end
482
- # List Wallets
483
- # List all Wallets within an Organization
482
+ # List wallets
483
+ # List all wallets within an organization.
484
484
  # @param body
485
485
  # @param [Hash] opts the optional parameters
486
486
  # @return [GetWalletsResponse]
@@ -489,8 +489,8 @@ module TurnkeyClient
489
489
  data
490
490
  end
491
491
 
492
- # List Wallets
493
- # List all Wallets within an Organization
492
+ # List wallets
493
+ # List all wallets within an organization.
494
494
  # @param body
495
495
  # @param [Hash] opts the optional parameters
496
496
  # @return [Array<(GetWalletsResponse, Integer, Hash)>] GetWalletsResponse data, response status code and response headers
@@ -537,8 +537,8 @@ module TurnkeyClient
537
537
  end
538
538
  return data, status_code, headers
539
539
  end
540
- # Import Wallet
541
- # Imports a wallet
540
+ # Import wallet
541
+ # Import a wallet.
542
542
  # @param body
543
543
  # @param [Hash] opts the optional parameters
544
544
  # @return [ActivityResponse]
@@ -547,8 +547,8 @@ module TurnkeyClient
547
547
  data
548
548
  end
549
549
 
550
- # Import Wallet
551
- # Imports a wallet
550
+ # Import wallet
551
+ # Import a wallet.
552
552
  # @param body
553
553
  # @param [Hash] opts the optional parameters
554
554
  # @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
@@ -595,8 +595,8 @@ module TurnkeyClient
595
595
  end
596
596
  return data, status_code, headers
597
597
  end
598
- # Init Import Wallet
599
- # Initializes a new wallet import
598
+ # Init import wallet
599
+ # Initialize a new wallet import.
600
600
  # @param body
601
601
  # @param [Hash] opts the optional parameters
602
602
  # @return [ActivityResponse]
@@ -605,8 +605,8 @@ module TurnkeyClient
605
605
  data
606
606
  end
607
607
 
608
- # Init Import Wallet
609
- # Initializes a new wallet import
608
+ # Init import wallet
609
+ # Initialize a new wallet import.
610
610
  # @param body
611
611
  # @param [Hash] opts the optional parameters
612
612
  # @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
@@ -653,8 +653,8 @@ module TurnkeyClient
653
653
  end
654
654
  return data, status_code, headers
655
655
  end
656
- # Update Wallet
657
- # Update a wallet for an organization
656
+ # Update wallet
657
+ # Update a wallet for an organization.
658
658
  # @param body
659
659
  # @param [Hash] opts the optional parameters
660
660
  # @return [ActivityResponse]
@@ -663,8 +663,8 @@ module TurnkeyClient
663
663
  data
664
664
  end
665
665
 
666
- # Update Wallet
667
- # Update a wallet for an organization
666
+ # Update wallet
667
+ # Update a wallet for an organization.
668
668
  # @param body
669
669
  # @param [Hash] opts the optional parameters
670
670
  # @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers