turnkey_client 0.0.15 → 0.0.17
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/.gitignore +39 -0
- data/.rspec +2 -0
- data/.swagger-codegen/VERSION +1 -0
- data/.swagger-codegen-ignore +23 -0
- data/lib/turnkey_client/api/app_proof_api.rb +4 -4
- data/lib/turnkey_client/api/broadcasting_api.rb +251 -0
- data/lib/turnkey_client/api/on_ramp_api.rb +290 -0
- data/lib/turnkey_client/api/policies_api.rb +58 -0
- data/lib/turnkey_client/api/send_transactions_api.rb +77 -0
- data/lib/turnkey_client/api/wallets_api.rb +58 -0
- data/lib/turnkey_client/models/activity.rb +1 -1
- data/lib/turnkey_client/models/activity_type.rb +16 -0
- data/lib/turnkey_client/models/approve_activity_request.rb +14 -4
- data/lib/turnkey_client/models/client_signature.rb +255 -0
- data/lib/turnkey_client/models/client_signature_scheme.rb +26 -0
- data/lib/turnkey_client/models/create_api_keys_request.rb +14 -4
- data/lib/turnkey_client/models/create_authenticators_request.rb +14 -4
- data/lib/turnkey_client/models/create_fiat_on_ramp_credential_intent.rb +272 -0
- data/lib/turnkey_client/models/create_fiat_on_ramp_credential_request.rb +298 -0
- data/lib/turnkey_client/models/create_fiat_on_ramp_credential_result.rb +211 -0
- data/lib/turnkey_client/models/create_invitations_request.rb +14 -4
- data/lib/turnkey_client/models/create_oauth2_credential_request.rb +14 -4
- data/lib/turnkey_client/models/create_oauth_providers_request.rb +14 -4
- data/lib/turnkey_client/models/create_policies_request.rb +14 -4
- data/lib/turnkey_client/models/create_policy_intent_v3.rb +6 -0
- data/lib/turnkey_client/models/create_policy_request.rb +14 -4
- data/lib/turnkey_client/models/create_private_key_tag_request.rb +14 -4
- data/lib/turnkey_client/models/create_private_keys_request.rb +14 -4
- data/lib/turnkey_client/models/create_read_only_session_request.rb +14 -4
- data/lib/turnkey_client/models/create_read_write_session_request.rb +14 -4
- data/lib/turnkey_client/models/create_smart_contract_interface_intent.rb +1 -1
- data/lib/turnkey_client/models/create_smart_contract_interface_request.rb +14 -4
- data/lib/turnkey_client/models/create_sub_organization_intent_v7.rb +14 -5
- data/lib/turnkey_client/models/create_sub_organization_request.rb +14 -4
- data/lib/turnkey_client/models/create_tvc_app_intent.rb +277 -0
- data/lib/turnkey_client/models/create_tvc_app_result.rb +258 -0
- data/lib/turnkey_client/models/create_tvc_deployment_intent.rb +346 -0
- data/lib/turnkey_client/models/create_tvc_deployment_result.rb +226 -0
- data/lib/turnkey_client/models/create_tvc_manifest_approvals_intent.rb +228 -0
- data/lib/turnkey_client/models/create_tvc_manifest_approvals_result.rb +213 -0
- data/lib/turnkey_client/models/create_user_tag_request.rb +14 -4
- data/lib/turnkey_client/models/create_users_request.rb +14 -4
- data/lib/turnkey_client/models/create_wallet_accounts_intent.rb +15 -4
- data/lib/turnkey_client/models/create_wallet_accounts_request.rb +14 -4
- data/lib/turnkey_client/models/create_wallet_request.rb +14 -4
- data/lib/turnkey_client/models/curve.rb +1 -0
- data/lib/turnkey_client/models/custom_revert_error.rb +218 -0
- data/lib/turnkey_client/models/data_v1_signature_scheme.rb +26 -0
- data/lib/turnkey_client/models/delete_api_keys_request.rb +14 -4
- data/lib/turnkey_client/models/delete_authenticators_request.rb +14 -4
- data/lib/turnkey_client/models/delete_fiat_on_ramp_credential_intent.rb +211 -0
- data/lib/turnkey_client/models/delete_fiat_on_ramp_credential_request.rb +298 -0
- data/lib/turnkey_client/models/delete_fiat_on_ramp_credential_result.rb +211 -0
- data/lib/turnkey_client/models/delete_invitation_request.rb +14 -4
- data/lib/turnkey_client/models/delete_oauth2_credential_request.rb +14 -4
- data/lib/turnkey_client/models/delete_oauth_providers_request.rb +14 -4
- data/lib/turnkey_client/models/delete_policies_intent.rb +213 -0
- data/lib/turnkey_client/models/delete_policies_request.rb +298 -0
- data/lib/turnkey_client/models/delete_policies_result.rb +213 -0
- data/lib/turnkey_client/models/delete_policy_request.rb +14 -4
- data/lib/turnkey_client/models/delete_private_key_tags_request.rb +14 -4
- data/lib/turnkey_client/models/delete_private_keys_request.rb +14 -4
- data/lib/turnkey_client/models/delete_smart_contract_interface_request.rb +14 -4
- data/lib/turnkey_client/models/delete_sub_organization_request.rb +14 -4
- data/lib/turnkey_client/models/delete_user_tags_request.rb +14 -4
- data/lib/turnkey_client/models/delete_users_request.rb +14 -4
- data/lib/turnkey_client/models/delete_wallet_accounts_intent.rb +224 -0
- data/lib/turnkey_client/models/delete_wallet_accounts_request.rb +298 -0
- data/lib/turnkey_client/models/delete_wallet_accounts_result.rb +213 -0
- data/lib/turnkey_client/models/delete_wallets_request.rb +14 -4
- data/lib/turnkey_client/models/email_auth_customization_params.rb +255 -0
- data/lib/turnkey_client/models/email_auth_intent_v3.rb +306 -0
- data/lib/turnkey_client/models/email_auth_request.rb +16 -6
- data/lib/turnkey_client/models/email_customization_params_v2.rb +240 -0
- data/lib/turnkey_client/models/eth_send_raw_transaction_intent.rb +260 -0
- data/lib/turnkey_client/models/eth_send_raw_transaction_result.rb +211 -0
- data/lib/turnkey_client/models/eth_send_transaction_intent.rb +363 -0
- data/lib/turnkey_client/models/eth_send_transaction_request.rb +298 -0
- data/lib/turnkey_client/models/eth_send_transaction_result.rb +211 -0
- data/lib/turnkey_client/models/eth_send_transaction_status.rb +207 -0
- data/lib/turnkey_client/models/export_private_key_request.rb +14 -4
- data/lib/turnkey_client/models/export_wallet_account_request.rb +14 -4
- data/lib/turnkey_client/models/export_wallet_request.rb +14 -4
- data/lib/turnkey_client/models/fiat_on_ramp_credential.rb +330 -0
- data/lib/turnkey_client/models/get_gas_usage_request.rb +211 -0
- data/lib/turnkey_client/models/get_gas_usage_response.rb +241 -0
- data/lib/turnkey_client/models/get_nonces_request.rb +261 -0
- data/lib/turnkey_client/models/get_nonces_response.rb +218 -0
- data/lib/turnkey_client/models/get_on_ramp_transaction_status_request.rb +237 -0
- data/lib/turnkey_client/models/get_on_ramp_transaction_status_response.rb +211 -0
- data/lib/turnkey_client/models/get_send_transaction_status_request.rb +226 -0
- data/lib/turnkey_client/models/get_send_transaction_status_response.rb +240 -0
- data/lib/turnkey_client/models/import_private_key_request.rb +14 -4
- data/lib/turnkey_client/models/import_wallet_request.rb +14 -4
- data/lib/turnkey_client/models/init_fiat_on_ramp_request.rb +14 -4
- data/lib/turnkey_client/models/init_import_private_key_request.rb +14 -4
- data/lib/turnkey_client/models/init_import_wallet_request.rb +14 -4
- data/lib/turnkey_client/models/init_otp_auth_intent_v3.rb +336 -0
- data/lib/turnkey_client/models/init_otp_auth_request.rb +16 -6
- data/lib/turnkey_client/models/init_otp_intent_v2.rb +336 -0
- data/lib/turnkey_client/models/init_otp_request.rb +16 -6
- data/lib/turnkey_client/models/init_user_email_recovery_intent.rb +37 -4
- data/lib/turnkey_client/models/init_user_email_recovery_intent_v2.rb +284 -0
- data/lib/turnkey_client/models/init_user_email_recovery_request.rb +16 -6
- data/lib/turnkey_client/models/intent.rb +148 -4
- data/lib/turnkey_client/models/list_fiat_on_ramp_credentials_request.rb +211 -0
- data/lib/turnkey_client/models/list_fiat_on_ramp_credentials_response.rb +212 -0
- data/lib/turnkey_client/models/native_revert_error.rb +229 -0
- data/lib/turnkey_client/models/oauth2_authenticate_request.rb +14 -4
- data/lib/turnkey_client/models/oauth_login_request.rb +14 -4
- data/lib/turnkey_client/models/oauth_request.rb +14 -4
- data/lib/turnkey_client/models/otp_auth_request.rb +14 -4
- data/lib/turnkey_client/models/otp_login_intent.rb +0 -2
- data/lib/turnkey_client/models/otp_login_request.rb +14 -4
- data/lib/turnkey_client/models/recover_user_request.rb +14 -4
- data/lib/turnkey_client/models/reject_activity_request.rb +14 -4
- data/lib/turnkey_client/models/remove_organization_feature_request.rb +14 -4
- data/lib/turnkey_client/models/result.rb +112 -4
- data/lib/turnkey_client/models/revert_chain_entry.rb +253 -0
- data/lib/turnkey_client/models/set_organization_feature_request.rb +14 -4
- data/lib/turnkey_client/models/sign_raw_payload_request.rb +14 -4
- data/lib/turnkey_client/models/sign_raw_payloads_request.rb +14 -4
- data/lib/turnkey_client/models/sign_transaction_request.rb +14 -4
- data/lib/turnkey_client/models/sol_send_transaction_intent.rb +297 -0
- data/lib/turnkey_client/models/sol_send_transaction_request.rb +298 -0
- data/lib/turnkey_client/models/sol_send_transaction_result.rb +211 -0
- data/lib/turnkey_client/models/stamp_login_request.rb +14 -4
- data/lib/turnkey_client/models/transaction_type.rb +2 -0
- data/lib/turnkey_client/models/tvc_manifest_approval.rb +226 -0
- data/lib/turnkey_client/models/tvc_operator_params.rb +226 -0
- data/lib/turnkey_client/models/tvc_operator_set_params.rb +250 -0
- data/lib/turnkey_client/models/tx_error.rb +218 -0
- data/lib/turnkey_client/models/unknown_revert_error.rb +218 -0
- data/lib/turnkey_client/models/update_auth_proxy_config_intent.rb +27 -5
- data/lib/turnkey_client/models/update_fiat_on_ramp_credential_intent.rb +277 -0
- data/lib/turnkey_client/models/update_fiat_on_ramp_credential_request.rb +298 -0
- data/lib/turnkey_client/models/update_fiat_on_ramp_credential_result.rb +211 -0
- data/lib/turnkey_client/models/update_oauth2_credential_request.rb +14 -4
- data/lib/turnkey_client/models/update_policy_request.rb +14 -4
- data/lib/turnkey_client/models/update_private_key_tag_request.rb +14 -4
- data/lib/turnkey_client/models/update_root_quorum_request.rb +14 -4
- data/lib/turnkey_client/models/update_user_email_request.rb +14 -4
- data/lib/turnkey_client/models/update_user_name_request.rb +14 -4
- data/lib/turnkey_client/models/update_user_phone_number_request.rb +14 -4
- data/lib/turnkey_client/models/update_user_request.rb +14 -4
- data/lib/turnkey_client/models/update_user_tag_request.rb +14 -4
- data/lib/turnkey_client/models/update_wallet_request.rb +14 -4
- data/lib/turnkey_client/models/upsert_gas_usage_config_intent.rb +241 -0
- data/lib/turnkey_client/models/upsert_gas_usage_config_result.rb +211 -0
- data/lib/turnkey_client/models/verify_otp_request.rb +14 -4
- data/lib/turnkey_client/version.rb +1 -1
- data/lib/turnkey_client.rb +63 -2
- data/turnkey_client.gemspec +1 -1
- metadata +90 -33
- data/turnkey_client-0.0.12.gem +0 -0
- data/turnkey_client-0.0.13.gem +0 -0
- data/turnkey_client-0.0.14.gem +0 -0
- data/turnkey_client-0.0.2.gem +0 -0
- data/turnkey_client-0.0.3.gem +0 -0
- data/turnkey_client-0.0.4.gem +0 -0
- data/turnkey_client-0.0.7.gem +0 -0
- data/turnkey_client-0.0.8.gem +0 -0
- data/turnkey_client-0.0.9.gem +0 -0
|
@@ -189,6 +189,64 @@ module TurnkeyClient
|
|
|
189
189
|
end
|
|
190
190
|
return data, status_code, headers
|
|
191
191
|
end
|
|
192
|
+
# Delete policies
|
|
193
|
+
# Delete existing policies.
|
|
194
|
+
# @param body
|
|
195
|
+
# @param [Hash] opts the optional parameters
|
|
196
|
+
# @return [ActivityResponse]
|
|
197
|
+
def delete_policies(body, opts = {})
|
|
198
|
+
data, _status_code, _headers = delete_policies_with_http_info(body, opts)
|
|
199
|
+
data
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
# Delete policies
|
|
203
|
+
# Delete existing policies.
|
|
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 delete_policies_with_http_info(body, opts = {})
|
|
208
|
+
if @api_client.config.debugging
|
|
209
|
+
@api_client.config.logger.debug 'Calling API: PoliciesApi.delete_policies ...'
|
|
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 PoliciesApi.delete_policies"
|
|
214
|
+
end
|
|
215
|
+
# resource path
|
|
216
|
+
local_var_path = '/public/v1/submit/delete_policies'
|
|
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: PoliciesApi#delete_policies\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
247
|
+
end
|
|
248
|
+
return data, status_code, headers
|
|
249
|
+
end
|
|
192
250
|
# Delete policy
|
|
193
251
|
# Delete an existing policy.
|
|
194
252
|
# @param body
|
|
@@ -0,0 +1,77 @@
|
|
|
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 SendTransactionsApi
|
|
13
|
+
attr_accessor :api_client
|
|
14
|
+
|
|
15
|
+
def initialize(api_client = ApiClient.default)
|
|
16
|
+
@api_client = api_client
|
|
17
|
+
end
|
|
18
|
+
# Get send transaction status
|
|
19
|
+
# Get the status of a send transaction request.
|
|
20
|
+
# @param body
|
|
21
|
+
# @param [Hash] opts the optional parameters
|
|
22
|
+
# @return [GetSendTransactionStatusResponse]
|
|
23
|
+
def get_send_transaction_status(body, opts = {})
|
|
24
|
+
data, _status_code, _headers = get_send_transaction_status_with_http_info(body, opts)
|
|
25
|
+
data
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# Get send transaction status
|
|
29
|
+
# Get the status of a send transaction request.
|
|
30
|
+
# @param body
|
|
31
|
+
# @param [Hash] opts the optional parameters
|
|
32
|
+
# @return [Array<(GetSendTransactionStatusResponse, Integer, Hash)>] GetSendTransactionStatusResponse data, response status code and response headers
|
|
33
|
+
def get_send_transaction_status_with_http_info(body, opts = {})
|
|
34
|
+
if @api_client.config.debugging
|
|
35
|
+
@api_client.config.logger.debug 'Calling API: SendTransactionsApi.get_send_transaction_status ...'
|
|
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 SendTransactionsApi.get_send_transaction_status"
|
|
40
|
+
end
|
|
41
|
+
# resource path
|
|
42
|
+
local_var_path = '/public/v1/query/get_send_transaction_status'
|
|
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] || 'GetSendTransactionStatusResponse'
|
|
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: SendTransactionsApi#get_send_transaction_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
73
|
+
end
|
|
74
|
+
return data, status_code, headers
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
end
|
|
@@ -131,6 +131,64 @@ module TurnkeyClient
|
|
|
131
131
|
end
|
|
132
132
|
return data, status_code, headers
|
|
133
133
|
end
|
|
134
|
+
# Delete wallet accounts
|
|
135
|
+
# Delete wallet accounts for an organization.
|
|
136
|
+
# @param body
|
|
137
|
+
# @param [Hash] opts the optional parameters
|
|
138
|
+
# @return [ActivityResponse]
|
|
139
|
+
def delete_wallet_accounts(body, opts = {})
|
|
140
|
+
data, _status_code, _headers = delete_wallet_accounts_with_http_info(body, opts)
|
|
141
|
+
data
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
# Delete wallet accounts
|
|
145
|
+
# Delete wallet accounts for an organization.
|
|
146
|
+
# @param body
|
|
147
|
+
# @param [Hash] opts the optional parameters
|
|
148
|
+
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|
|
149
|
+
def delete_wallet_accounts_with_http_info(body, opts = {})
|
|
150
|
+
if @api_client.config.debugging
|
|
151
|
+
@api_client.config.logger.debug 'Calling API: WalletsApi.delete_wallet_accounts ...'
|
|
152
|
+
end
|
|
153
|
+
# verify the required parameter 'body' is set
|
|
154
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
155
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling WalletsApi.delete_wallet_accounts"
|
|
156
|
+
end
|
|
157
|
+
# resource path
|
|
158
|
+
local_var_path = '/public/v1/submit/delete_wallet_accounts'
|
|
159
|
+
|
|
160
|
+
# query parameters
|
|
161
|
+
query_params = opts[:query_params] || {}
|
|
162
|
+
|
|
163
|
+
# header parameters
|
|
164
|
+
header_params = opts[:header_params] || {}
|
|
165
|
+
# HTTP header 'Accept' (if needed)
|
|
166
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
167
|
+
# HTTP header 'Content-Type'
|
|
168
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
169
|
+
|
|
170
|
+
# form parameters
|
|
171
|
+
form_params = opts[:form_params] || {}
|
|
172
|
+
|
|
173
|
+
# http body (model)
|
|
174
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
175
|
+
|
|
176
|
+
return_type = opts[:return_type] || 'ActivityResponse'
|
|
177
|
+
|
|
178
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
|
179
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
180
|
+
:header_params => header_params,
|
|
181
|
+
:query_params => query_params,
|
|
182
|
+
:form_params => form_params,
|
|
183
|
+
:body => post_body,
|
|
184
|
+
:auth_names => auth_names,
|
|
185
|
+
:return_type => return_type)
|
|
186
|
+
|
|
187
|
+
if @api_client.config.debugging
|
|
188
|
+
@api_client.config.logger.debug "API called: WalletsApi#delete_wallet_accounts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
189
|
+
end
|
|
190
|
+
return data, status_code, headers
|
|
191
|
+
end
|
|
134
192
|
# Delete wallets
|
|
135
193
|
# Delete wallets for an organization.
|
|
136
194
|
# @param body
|
|
@@ -29,7 +29,7 @@ module TurnkeyClient
|
|
|
29
29
|
# A list of objects representing a particular User's approval or rejection of a Consensus request, including all relevant metadata.
|
|
30
30
|
attr_accessor :votes
|
|
31
31
|
|
|
32
|
-
# A list of
|
|
32
|
+
# A list of App Proofs generated by enclaves during activity execution, providing verifiable attestations of performed operations.
|
|
33
33
|
attr_accessor :app_proofs
|
|
34
34
|
|
|
35
35
|
# An artifact verifying a User's action.
|
|
@@ -113,6 +113,22 @@ module TurnkeyClient
|
|
|
113
113
|
UPDATE_OAUTH2_CREDENTIAL = 'ACTIVITY_TYPE_UPDATE_OAUTH2_CREDENTIAL'.freeze
|
|
114
114
|
DELETE_OAUTH2_CREDENTIAL = 'ACTIVITY_TYPE_DELETE_OAUTH2_CREDENTIAL'.freeze
|
|
115
115
|
OAUTH2_AUTHENTICATE = 'ACTIVITY_TYPE_OAUTH2_AUTHENTICATE'.freeze
|
|
116
|
+
DELETE_WALLET_ACCOUNTS = 'ACTIVITY_TYPE_DELETE_WALLET_ACCOUNTS'.freeze
|
|
117
|
+
DELETE_POLICIES = 'ACTIVITY_TYPE_DELETE_POLICIES'.freeze
|
|
118
|
+
ETH_SEND_RAW_TRANSACTION = 'ACTIVITY_TYPE_ETH_SEND_RAW_TRANSACTION'.freeze
|
|
119
|
+
ETH_SEND_TRANSACTION = 'ACTIVITY_TYPE_ETH_SEND_TRANSACTION'.freeze
|
|
120
|
+
CREATE_FIAT_ON_RAMP_CREDENTIAL = 'ACTIVITY_TYPE_CREATE_FIAT_ON_RAMP_CREDENTIAL'.freeze
|
|
121
|
+
UPDATE_FIAT_ON_RAMP_CREDENTIAL = 'ACTIVITY_TYPE_UPDATE_FIAT_ON_RAMP_CREDENTIAL'.freeze
|
|
122
|
+
DELETE_FIAT_ON_RAMP_CREDENTIAL = 'ACTIVITY_TYPE_DELETE_FIAT_ON_RAMP_CREDENTIAL'.freeze
|
|
123
|
+
EMAIL_AUTH_V3 = 'ACTIVITY_TYPE_EMAIL_AUTH_V3'.freeze
|
|
124
|
+
INIT_USER_EMAIL_RECOVERY_V2 = 'ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY_V2'.freeze
|
|
125
|
+
INIT_OTP_AUTH_V3 = 'ACTIVITY_TYPE_INIT_OTP_AUTH_V3'.freeze
|
|
126
|
+
INIT_OTP_V2 = 'ACTIVITY_TYPE_INIT_OTP_V2'.freeze
|
|
127
|
+
UPSERT_GAS_USAGE_CONFIG = 'ACTIVITY_TYPE_UPSERT_GAS_USAGE_CONFIG'.freeze
|
|
128
|
+
CREATE_TVC_APP = 'ACTIVITY_TYPE_CREATE_TVC_APP'.freeze
|
|
129
|
+
CREATE_TVC_DEPLOYMENT = 'ACTIVITY_TYPE_CREATE_TVC_DEPLOYMENT'.freeze
|
|
130
|
+
CREATE_TVC_MANIFEST_APPROVALS = 'ACTIVITY_TYPE_CREATE_TVC_MANIFEST_APPROVALS'.freeze
|
|
131
|
+
SOL_SEND_TRANSACTION = 'ACTIVITY_TYPE_SOL_SEND_TRANSACTION'.freeze
|
|
116
132
|
|
|
117
133
|
# Builds the enum from string
|
|
118
134
|
# @param [String] The enum value in the form of the string
|
|
@@ -22,6 +22,8 @@ module TurnkeyClient
|
|
|
22
22
|
|
|
23
23
|
attr_accessor :parameters
|
|
24
24
|
|
|
25
|
+
attr_accessor :generate_app_proofs
|
|
26
|
+
|
|
25
27
|
class EnumAttributeValidator
|
|
26
28
|
attr_reader :datatype
|
|
27
29
|
attr_reader :allowable_values
|
|
@@ -50,7 +52,8 @@ module TurnkeyClient
|
|
|
50
52
|
:'type' => :'type',
|
|
51
53
|
:'timestamp_ms' => :'timestampMs',
|
|
52
54
|
:'organization_id' => :'organizationId',
|
|
53
|
-
:'parameters' => :'parameters'
|
|
55
|
+
:'parameters' => :'parameters',
|
|
56
|
+
:'generate_app_proofs' => :'generateAppProofs'
|
|
54
57
|
}
|
|
55
58
|
end
|
|
56
59
|
|
|
@@ -60,13 +63,15 @@ module TurnkeyClient
|
|
|
60
63
|
:'type' => :'Object',
|
|
61
64
|
:'timestamp_ms' => :'Object',
|
|
62
65
|
:'organization_id' => :'Object',
|
|
63
|
-
:'parameters' => :'Object'
|
|
66
|
+
:'parameters' => :'Object',
|
|
67
|
+
:'generate_app_proofs' => :'Object'
|
|
64
68
|
}
|
|
65
69
|
end
|
|
66
70
|
|
|
67
71
|
# List of attributes with nullable: true
|
|
68
72
|
def self.openapi_nullable
|
|
69
73
|
Set.new([
|
|
74
|
+
:'generate_app_proofs'
|
|
70
75
|
])
|
|
71
76
|
end
|
|
72
77
|
|
|
@@ -100,6 +105,10 @@ module TurnkeyClient
|
|
|
100
105
|
if attributes.key?(:'parameters')
|
|
101
106
|
self.parameters = attributes[:'parameters']
|
|
102
107
|
end
|
|
108
|
+
|
|
109
|
+
if attributes.key?(:'generate_app_proofs')
|
|
110
|
+
self.generate_app_proofs = attributes[:'generate_app_proofs']
|
|
111
|
+
end
|
|
103
112
|
end
|
|
104
113
|
|
|
105
114
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -155,7 +164,8 @@ module TurnkeyClient
|
|
|
155
164
|
type == o.type &&
|
|
156
165
|
timestamp_ms == o.timestamp_ms &&
|
|
157
166
|
organization_id == o.organization_id &&
|
|
158
|
-
parameters == o.parameters
|
|
167
|
+
parameters == o.parameters &&
|
|
168
|
+
generate_app_proofs == o.generate_app_proofs
|
|
159
169
|
end
|
|
160
170
|
|
|
161
171
|
# @see the `==` method
|
|
@@ -167,7 +177,7 @@ module TurnkeyClient
|
|
|
167
177
|
# Calculates hash code according to all attributes.
|
|
168
178
|
# @return [Integer] Hash code
|
|
169
179
|
def hash
|
|
170
|
-
[type, timestamp_ms, organization_id, parameters].hash
|
|
180
|
+
[type, timestamp_ms, organization_id, parameters, generate_app_proofs].hash
|
|
171
181
|
end
|
|
172
182
|
|
|
173
183
|
# Builds the object from hash
|
|
@@ -0,0 +1,255 @@
|
|
|
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
|
+
require 'date'
|
|
12
|
+
|
|
13
|
+
module TurnkeyClient
|
|
14
|
+
class ClientSignature
|
|
15
|
+
# The public component of a cryptographic key pair used to create the signature.
|
|
16
|
+
attr_accessor :public_key
|
|
17
|
+
|
|
18
|
+
attr_accessor :scheme
|
|
19
|
+
|
|
20
|
+
# The message that was signed.
|
|
21
|
+
attr_accessor :message
|
|
22
|
+
|
|
23
|
+
# The cryptographic signature over the message.
|
|
24
|
+
attr_accessor :signature
|
|
25
|
+
|
|
26
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
27
|
+
def self.attribute_map
|
|
28
|
+
{
|
|
29
|
+
:'public_key' => :'publicKey',
|
|
30
|
+
:'scheme' => :'scheme',
|
|
31
|
+
:'message' => :'message',
|
|
32
|
+
:'signature' => :'signature'
|
|
33
|
+
}
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# Attribute type mapping.
|
|
37
|
+
def self.openapi_types
|
|
38
|
+
{
|
|
39
|
+
:'public_key' => :'Object',
|
|
40
|
+
:'scheme' => :'Object',
|
|
41
|
+
:'message' => :'Object',
|
|
42
|
+
:'signature' => :'Object'
|
|
43
|
+
}
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# List of attributes with nullable: true
|
|
47
|
+
def self.openapi_nullable
|
|
48
|
+
Set.new([
|
|
49
|
+
])
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# Initializes the object
|
|
53
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
54
|
+
def initialize(attributes = {})
|
|
55
|
+
if (!attributes.is_a?(Hash))
|
|
56
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TurnkeyClient::ClientSignature` initialize method"
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
60
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
61
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
62
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TurnkeyClient::ClientSignature`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
63
|
+
end
|
|
64
|
+
h[k.to_sym] = v
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
if attributes.key?(:'public_key')
|
|
68
|
+
self.public_key = attributes[:'public_key']
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
if attributes.key?(:'scheme')
|
|
72
|
+
self.scheme = attributes[:'scheme']
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
if attributes.key?(:'message')
|
|
76
|
+
self.message = attributes[:'message']
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
if attributes.key?(:'signature')
|
|
80
|
+
self.signature = attributes[:'signature']
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
85
|
+
# @return Array for valid properties with the reasons
|
|
86
|
+
def list_invalid_properties
|
|
87
|
+
invalid_properties = Array.new
|
|
88
|
+
if @public_key.nil?
|
|
89
|
+
invalid_properties.push('invalid value for "public_key", public_key cannot be nil.')
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
if @scheme.nil?
|
|
93
|
+
invalid_properties.push('invalid value for "scheme", scheme cannot be nil.')
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
if @message.nil?
|
|
97
|
+
invalid_properties.push('invalid value for "message", message cannot be nil.')
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
if @signature.nil?
|
|
101
|
+
invalid_properties.push('invalid value for "signature", signature cannot be nil.')
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
invalid_properties
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# Check to see if the all the properties in the model are valid
|
|
108
|
+
# @return true if the model is valid
|
|
109
|
+
def valid?
|
|
110
|
+
return false if @public_key.nil?
|
|
111
|
+
return false if @scheme.nil?
|
|
112
|
+
return false if @message.nil?
|
|
113
|
+
return false if @signature.nil?
|
|
114
|
+
true
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# Checks equality by comparing each attribute.
|
|
118
|
+
# @param [Object] Object to be compared
|
|
119
|
+
def ==(o)
|
|
120
|
+
return true if self.equal?(o)
|
|
121
|
+
self.class == o.class &&
|
|
122
|
+
public_key == o.public_key &&
|
|
123
|
+
scheme == o.scheme &&
|
|
124
|
+
message == o.message &&
|
|
125
|
+
signature == o.signature
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# @see the `==` method
|
|
129
|
+
# @param [Object] Object to be compared
|
|
130
|
+
def eql?(o)
|
|
131
|
+
self == o
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
# Calculates hash code according to all attributes.
|
|
135
|
+
# @return [Integer] Hash code
|
|
136
|
+
def hash
|
|
137
|
+
[public_key, scheme, message, signature].hash
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# Builds the object from hash
|
|
141
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
142
|
+
# @return [Object] Returns the model itself
|
|
143
|
+
def self.build_from_hash(attributes)
|
|
144
|
+
new.build_from_hash(attributes)
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
# Builds the object from hash
|
|
148
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
149
|
+
# @return [Object] Returns the model itself
|
|
150
|
+
def build_from_hash(attributes)
|
|
151
|
+
return nil unless attributes.is_a?(Hash)
|
|
152
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
153
|
+
if type =~ /\AArray<(.*)>/i
|
|
154
|
+
# check to ensure the input is an array given that the attribute
|
|
155
|
+
# is documented as an array but the input is not
|
|
156
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
157
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
158
|
+
end
|
|
159
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
160
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
161
|
+
elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
162
|
+
self.send("#{key}=", nil)
|
|
163
|
+
end
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
self
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
# Deserializes the data based on type
|
|
170
|
+
# @param string type Data type
|
|
171
|
+
# @param string value Value to be deserialized
|
|
172
|
+
# @return [Object] Deserialized data
|
|
173
|
+
def _deserialize(type, value)
|
|
174
|
+
case type.to_sym
|
|
175
|
+
when :DateTime
|
|
176
|
+
DateTime.parse(value)
|
|
177
|
+
when :Date
|
|
178
|
+
Date.parse(value)
|
|
179
|
+
when :String
|
|
180
|
+
value.to_s
|
|
181
|
+
when :Integer
|
|
182
|
+
value.to_i
|
|
183
|
+
when :Float
|
|
184
|
+
value.to_f
|
|
185
|
+
when :Boolean
|
|
186
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
187
|
+
true
|
|
188
|
+
else
|
|
189
|
+
false
|
|
190
|
+
end
|
|
191
|
+
when :Object
|
|
192
|
+
# generic object (usually a Hash), return directly
|
|
193
|
+
value
|
|
194
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
195
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
196
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
197
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
198
|
+
k_type = Regexp.last_match[:k_type]
|
|
199
|
+
v_type = Regexp.last_match[:v_type]
|
|
200
|
+
{}.tap do |hash|
|
|
201
|
+
value.each do |k, v|
|
|
202
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
203
|
+
end
|
|
204
|
+
end
|
|
205
|
+
else # model
|
|
206
|
+
TurnkeyClient.const_get(type).build_from_hash(value)
|
|
207
|
+
end
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
# Returns the string representation of the object
|
|
211
|
+
# @return [String] String presentation of the object
|
|
212
|
+
def to_s
|
|
213
|
+
to_hash.to_s
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
217
|
+
# @return [Hash] Returns the object in the form of hash
|
|
218
|
+
def to_body
|
|
219
|
+
to_hash
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
# Returns the object in the form of hash
|
|
223
|
+
# @return [Hash] Returns the object in the form of hash
|
|
224
|
+
def to_hash
|
|
225
|
+
hash = {}
|
|
226
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
227
|
+
value = self.send(attr)
|
|
228
|
+
if value.nil?
|
|
229
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
230
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
hash[param] = _to_hash(value)
|
|
234
|
+
end
|
|
235
|
+
hash
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
# Outputs non-array value in the form of hash
|
|
239
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
240
|
+
# @param [Object] value Any valid value
|
|
241
|
+
# @return [Hash] Returns the value in the form of hash
|
|
242
|
+
def _to_hash(value)
|
|
243
|
+
if value.is_a?(Array)
|
|
244
|
+
value.compact.map { |v| _to_hash(v) }
|
|
245
|
+
elsif value.is_a?(Hash)
|
|
246
|
+
{}.tap do |hash|
|
|
247
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
248
|
+
end
|
|
249
|
+
elsif value.respond_to? :to_hash
|
|
250
|
+
value.to_hash
|
|
251
|
+
else
|
|
252
|
+
value
|
|
253
|
+
end
|
|
254
|
+
end end
|
|
255
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
require 'date'
|
|
12
|
+
|
|
13
|
+
module TurnkeyClient
|
|
14
|
+
class ClientSignatureScheme
|
|
15
|
+
CLIENT_SIGNATURE_SCHEME_API_P256 = 'CLIENT_SIGNATURE_SCHEME_API_P256'.freeze
|
|
16
|
+
|
|
17
|
+
# Builds the enum from string
|
|
18
|
+
# @param [String] The enum value in the form of the string
|
|
19
|
+
# @return [String] The enum value
|
|
20
|
+
def build_from_hash(value)
|
|
21
|
+
constantValues = ClientSignatureScheme.constants.select { |c| ClientSignatureScheme::const_get(c) == value }
|
|
22
|
+
raise "Invalid ENUM value #{value} for class #ClientSignatureScheme" if constantValues.empty?
|
|
23
|
+
value
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -22,6 +22,8 @@ module TurnkeyClient
|
|
|
22
22
|
|
|
23
23
|
attr_accessor :parameters
|
|
24
24
|
|
|
25
|
+
attr_accessor :generate_app_proofs
|
|
26
|
+
|
|
25
27
|
class EnumAttributeValidator
|
|
26
28
|
attr_reader :datatype
|
|
27
29
|
attr_reader :allowable_values
|
|
@@ -50,7 +52,8 @@ module TurnkeyClient
|
|
|
50
52
|
:'type' => :'type',
|
|
51
53
|
:'timestamp_ms' => :'timestampMs',
|
|
52
54
|
:'organization_id' => :'organizationId',
|
|
53
|
-
:'parameters' => :'parameters'
|
|
55
|
+
:'parameters' => :'parameters',
|
|
56
|
+
:'generate_app_proofs' => :'generateAppProofs'
|
|
54
57
|
}
|
|
55
58
|
end
|
|
56
59
|
|
|
@@ -60,13 +63,15 @@ module TurnkeyClient
|
|
|
60
63
|
:'type' => :'Object',
|
|
61
64
|
:'timestamp_ms' => :'Object',
|
|
62
65
|
:'organization_id' => :'Object',
|
|
63
|
-
:'parameters' => :'Object'
|
|
66
|
+
:'parameters' => :'Object',
|
|
67
|
+
:'generate_app_proofs' => :'Object'
|
|
64
68
|
}
|
|
65
69
|
end
|
|
66
70
|
|
|
67
71
|
# List of attributes with nullable: true
|
|
68
72
|
def self.openapi_nullable
|
|
69
73
|
Set.new([
|
|
74
|
+
:'generate_app_proofs'
|
|
70
75
|
])
|
|
71
76
|
end
|
|
72
77
|
|
|
@@ -100,6 +105,10 @@ module TurnkeyClient
|
|
|
100
105
|
if attributes.key?(:'parameters')
|
|
101
106
|
self.parameters = attributes[:'parameters']
|
|
102
107
|
end
|
|
108
|
+
|
|
109
|
+
if attributes.key?(:'generate_app_proofs')
|
|
110
|
+
self.generate_app_proofs = attributes[:'generate_app_proofs']
|
|
111
|
+
end
|
|
103
112
|
end
|
|
104
113
|
|
|
105
114
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -155,7 +164,8 @@ module TurnkeyClient
|
|
|
155
164
|
type == o.type &&
|
|
156
165
|
timestamp_ms == o.timestamp_ms &&
|
|
157
166
|
organization_id == o.organization_id &&
|
|
158
|
-
parameters == o.parameters
|
|
167
|
+
parameters == o.parameters &&
|
|
168
|
+
generate_app_proofs == o.generate_app_proofs
|
|
159
169
|
end
|
|
160
170
|
|
|
161
171
|
# @see the `==` method
|
|
@@ -167,7 +177,7 @@ module TurnkeyClient
|
|
|
167
177
|
# Calculates hash code according to all attributes.
|
|
168
178
|
# @return [Integer] Hash code
|
|
169
179
|
def hash
|
|
170
|
-
[type, timestamp_ms, organization_id, parameters].hash
|
|
180
|
+
[type, timestamp_ms, organization_id, parameters, generate_app_proofs].hash
|
|
171
181
|
end
|
|
172
182
|
|
|
173
183
|
# Builds the object from hash
|