turnkey_client 0.0.13 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/turnkey_client/api/activities_api.rb +66 -8
- data/lib/turnkey_client/api/api_keys_api.rb +14 -14
- data/lib/turnkey_client/api/authenticators_api.rb +16 -16
- data/lib/turnkey_client/api/consensus_api.rb +8 -8
- data/lib/turnkey_client/api/features_api.rb +8 -8
- data/lib/turnkey_client/api/invitations_api.rb +8 -8
- data/lib/turnkey_client/api/on_ramp_api.rb +77 -0
- data/lib/turnkey_client/api/organizations_api.rb +18 -18
- data/lib/turnkey_client/api/policies_api.rb +256 -24
- data/lib/turnkey_client/api/private_key_tags_api.rb +12 -12
- data/lib/turnkey_client/api/private_keys_api.rb +28 -28
- data/lib/turnkey_client/api/sessions_api.rb +184 -10
- data/lib/turnkey_client/api/signing_api.rb +12 -12
- data/lib/turnkey_client/api/user_auth_api.rb +20 -20
- data/lib/turnkey_client/api/user_recovery_api.rb +6 -6
- data/lib/turnkey_client/api/user_tags_api.rb +12 -12
- data/lib/turnkey_client/api/user_verification_api.rb +135 -0
- data/lib/turnkey_client/api/users_api.rb +194 -20
- data/lib/turnkey_client/api/wallets_api.rb +48 -48
- data/lib/turnkey_client/models/activity_type.rb +14 -0
- data/lib/turnkey_client/models/activity_v1_policy_evaluation.rb +287 -0
- data/lib/turnkey_client/models/address_format.rb +1 -0
- data/lib/turnkey_client/models/api_key.rb +1 -0
- data/lib/turnkey_client/models/api_key_params.rb +1 -0
- data/lib/turnkey_client/models/api_key_params_v2.rb +1 -0
- data/lib/turnkey_client/models/api_only_user_params.rb +3 -2
- data/lib/turnkey_client/models/create_organization_intent.rb +1 -0
- data/lib/turnkey_client/models/create_organization_intent_v2.rb +1 -0
- data/lib/turnkey_client/models/create_policy_intent_v3.rb +2 -0
- data/lib/turnkey_client/models/create_read_write_session_intent.rb +3 -1
- data/lib/turnkey_client/models/create_read_write_session_intent_v2.rb +19 -5
- data/lib/turnkey_client/models/create_smart_contract_interface_intent.rb +265 -0
- data/lib/turnkey_client/models/create_smart_contract_interface_request.rb +288 -0
- data/lib/turnkey_client/models/create_smart_contract_interface_result.rb +211 -0
- data/lib/turnkey_client/models/create_sub_organization_intent_v4.rb +2 -0
- data/lib/turnkey_client/models/create_sub_organization_intent_v5.rb +2 -0
- data/lib/turnkey_client/models/create_sub_organization_intent_v6.rb +2 -0
- data/lib/turnkey_client/models/create_sub_organization_intent_v7.rb +4 -0
- data/lib/turnkey_client/models/create_users_intent_v3.rb +213 -0
- data/lib/turnkey_client/models/create_users_request.rb +2 -2
- data/lib/turnkey_client/models/create_wallet_intent.rb +2 -1
- data/lib/turnkey_client/models/credential_type.rb +3 -0
- data/lib/turnkey_client/models/data_v1_smart_contract_interface.rb +329 -0
- data/lib/turnkey_client/models/delete_payment_method_intent.rb +1 -0
- data/lib/turnkey_client/models/delete_private_keys_intent.rb +1 -0
- data/lib/turnkey_client/models/delete_smart_contract_interface_intent.rb +211 -0
- data/lib/turnkey_client/models/delete_smart_contract_interface_request.rb +288 -0
- data/lib/turnkey_client/models/delete_smart_contract_interface_result.rb +211 -0
- data/lib/turnkey_client/models/delete_sub_organization_intent.rb +1 -0
- data/lib/turnkey_client/models/delete_wallets_intent.rb +1 -0
- data/lib/turnkey_client/models/email_auth_intent.rb +31 -5
- data/lib/turnkey_client/models/email_auth_intent_v2.rb +31 -5
- data/lib/turnkey_client/models/email_customization_params.rb +5 -0
- data/lib/turnkey_client/models/feature.rb +1 -0
- data/lib/turnkey_client/models/fiat_on_ramp_blockchain_network.rb +29 -0
- data/lib/turnkey_client/models/fiat_on_ramp_crypto_currency.rb +29 -0
- data/lib/turnkey_client/models/fiat_on_ramp_currency.rb +59 -0
- data/lib/turnkey_client/models/fiat_on_ramp_payment_method.rb +38 -0
- data/lib/turnkey_client/models/fiat_on_ramp_provider.rb +27 -0
- data/lib/turnkey_client/models/get_activities_request.rb +3 -3
- data/lib/turnkey_client/models/get_activities_response.rb +1 -1
- data/lib/turnkey_client/models/get_activity_request.rb +2 -2
- data/lib/turnkey_client/models/get_api_key_request.rb +1 -1
- data/lib/turnkey_client/models/get_api_keys_request.rb +3 -2
- data/lib/turnkey_client/models/get_authenticator_request.rb +2 -2
- data/lib/turnkey_client/models/get_authenticators_request.rb +2 -2
- data/lib/turnkey_client/models/get_oauth_providers_request.rb +3 -2
- data/lib/turnkey_client/models/get_oauth_providers_response.rb +1 -1
- data/lib/turnkey_client/models/get_organization_configs_request.rb +1 -1
- data/lib/turnkey_client/models/get_policies_request.rb +1 -1
- data/lib/turnkey_client/models/get_policies_response.rb +1 -1
- data/lib/turnkey_client/models/get_policy_evaluations_request.rb +226 -0
- data/lib/turnkey_client/models/get_policy_evaluations_response.rb +212 -0
- data/lib/turnkey_client/models/get_policy_request.rb +2 -2
- data/lib/turnkey_client/models/get_private_key_request.rb +2 -2
- data/lib/turnkey_client/models/get_private_keys_request.rb +1 -1
- data/lib/turnkey_client/models/get_private_keys_response.rb +1 -1
- data/lib/turnkey_client/models/get_smart_contract_interface_request.rb +226 -0
- data/lib/turnkey_client/models/get_smart_contract_interface_response.rb +210 -0
- data/lib/turnkey_client/models/get_smart_contract_interfaces_request.rb +211 -0
- data/lib/turnkey_client/models/get_smart_contract_interfaces_response.rb +213 -0
- data/lib/turnkey_client/models/get_sub_org_ids_request.rb +2 -2
- data/lib/turnkey_client/models/get_user_request.rb +2 -2
- data/lib/turnkey_client/models/get_users_request.rb +1 -1
- data/lib/turnkey_client/models/get_users_response.rb +1 -1
- data/lib/turnkey_client/models/get_verified_sub_org_ids_request.rb +2 -2
- data/lib/turnkey_client/models/get_wallet_account_request.rb +6 -4
- data/lib/turnkey_client/models/get_wallet_accounts_request.rb +3 -7
- data/lib/turnkey_client/models/get_wallet_accounts_response.rb +1 -1
- data/lib/turnkey_client/models/get_wallet_request.rb +2 -2
- data/lib/turnkey_client/models/get_wallets_request.rb +1 -1
- data/lib/turnkey_client/models/get_wallets_response.rb +1 -1
- data/lib/turnkey_client/models/get_whoami_request.rb +1 -1
- data/lib/turnkey_client/models/get_whoami_response.rb +4 -4
- data/lib/turnkey_client/models/init_fiat_on_ramp_intent.rb +315 -0
- data/lib/turnkey_client/models/init_fiat_on_ramp_request.rb +288 -0
- data/lib/turnkey_client/models/init_fiat_on_ramp_result.rb +226 -0
- data/lib/turnkey_client/models/init_otp_auth_intent.rb +28 -4
- data/lib/turnkey_client/models/init_otp_auth_intent_v2.rb +310 -0
- data/lib/turnkey_client/models/init_otp_auth_request.rb +2 -2
- data/lib/turnkey_client/models/init_otp_auth_result_v2.rb +211 -0
- data/lib/turnkey_client/models/init_otp_intent.rb +321 -0
- data/lib/turnkey_client/models/init_otp_request.rb +288 -0
- data/lib/turnkey_client/models/init_otp_result.rb +211 -0
- data/lib/turnkey_client/models/init_user_email_recovery_intent.rb +2 -1
- data/lib/turnkey_client/models/intent.rb +130 -4
- data/lib/turnkey_client/models/invitation_params.rb +1 -1
- data/lib/turnkey_client/models/list_private_key_tags_request.rb +1 -1
- data/lib/turnkey_client/models/list_private_key_tags_response.rb +1 -1
- data/lib/turnkey_client/models/list_user_tags_request.rb +1 -1
- data/lib/turnkey_client/models/list_user_tags_response.rb +1 -1
- data/lib/turnkey_client/models/oauth_intent.rb +18 -5
- data/lib/turnkey_client/models/oauth_login_intent.rb +248 -0
- data/lib/turnkey_client/models/oauth_login_request.rb +288 -0
- data/lib/turnkey_client/models/oauth_login_result.rb +211 -0
- data/lib/turnkey_client/models/otp_auth_intent.rb +10 -2
- data/lib/turnkey_client/models/otp_login_intent.rb +248 -0
- data/lib/turnkey_client/models/otp_login_request.rb +288 -0
- data/lib/turnkey_client/models/otp_login_result.rb +211 -0
- data/lib/turnkey_client/models/outcome.rb +31 -0
- data/lib/turnkey_client/models/payload_encoding.rb +1 -0
- data/lib/turnkey_client/models/policy.rb +2 -0
- data/lib/turnkey_client/models/private_key_params.rb +1 -1
- data/lib/turnkey_client/models/result.rb +121 -4
- data/lib/turnkey_client/models/root_user_params.rb +3 -2
- data/lib/turnkey_client/models/root_user_params_v2.rb +4 -3
- data/lib/turnkey_client/models/root_user_params_v3.rb +4 -3
- data/lib/turnkey_client/models/root_user_params_v4.rb +5 -3
- data/lib/turnkey_client/models/set_organization_feature_intent.rb +1 -0
- data/lib/turnkey_client/models/simple_client_extension_results.rb +2 -0
- data/lib/turnkey_client/models/smart_contract_interface_type.rb +27 -0
- data/lib/turnkey_client/models/sms_customization_params.rb +1 -0
- data/lib/turnkey_client/models/stamp_login_intent.rb +233 -0
- data/lib/turnkey_client/models/stamp_login_request.rb +288 -0
- data/lib/turnkey_client/models/stamp_login_result.rb +211 -0
- data/lib/turnkey_client/models/transaction_type.rb +1 -0
- data/lib/turnkey_client/models/ump_v1_policy_evaluation.rb +214 -0
- data/lib/turnkey_client/models/update_policy_intent.rb +4 -0
- data/lib/turnkey_client/models/update_policy_intent_v2.rb +264 -0
- data/lib/turnkey_client/models/update_policy_request.rb +2 -2
- data/lib/turnkey_client/models/update_policy_result_v2.rb +211 -0
- data/lib/turnkey_client/models/update_private_key_tag_intent.rb +1 -0
- data/lib/turnkey_client/models/update_user_email_intent.rb +237 -0
- data/lib/turnkey_client/models/update_user_email_request.rb +288 -0
- data/lib/turnkey_client/models/update_user_email_result.rb +211 -0
- data/lib/turnkey_client/models/update_user_intent.rb +4 -1
- data/lib/turnkey_client/models/update_user_name_intent.rb +226 -0
- data/lib/turnkey_client/models/update_user_name_request.rb +288 -0
- data/lib/turnkey_client/models/update_user_name_result.rb +211 -0
- data/lib/turnkey_client/models/update_user_phone_number_intent.rb +237 -0
- data/lib/turnkey_client/models/update_user_phone_number_request.rb +288 -0
- data/lib/turnkey_client/models/update_user_phone_number_result.rb +211 -0
- data/lib/turnkey_client/models/update_user_tag_intent.rb +1 -0
- data/lib/turnkey_client/models/user.rb +3 -1
- data/lib/turnkey_client/models/user_params.rb +4 -3
- data/lib/turnkey_client/models/user_params_v2.rb +4 -3
- data/lib/turnkey_client/models/user_params_v3.rb +301 -0
- data/lib/turnkey_client/models/verify_otp_intent.rb +237 -0
- data/lib/turnkey_client/models/verify_otp_request.rb +288 -0
- data/lib/turnkey_client/models/verify_otp_result.rb +211 -0
- data/lib/turnkey_client/models/wallet_account.rb +15 -4
- data/lib/turnkey_client/models/wallet_params.rb +2 -1
- data/lib/turnkey_client/version.rb +1 -1
- data/lib/turnkey_client.rb +57 -0
- data/turnkey_client-0.0.13.gem +0 -0
- metadata +60 -2
@@ -15,8 +15,8 @@ module TurnkeyClient
|
|
15
15
|
def initialize(api_client = ApiClient.default)
|
16
16
|
@api_client = api_client
|
17
17
|
end
|
18
|
-
# Create
|
19
|
-
# Create new
|
18
|
+
# Create policies
|
19
|
+
# Create new policies.
|
20
20
|
# @param body
|
21
21
|
# @param [Hash] opts the optional parameters
|
22
22
|
# @return [ActivityResponse]
|
@@ -25,8 +25,8 @@ module TurnkeyClient
|
|
25
25
|
data
|
26
26
|
end
|
27
27
|
|
28
|
-
# Create
|
29
|
-
# Create new
|
28
|
+
# Create policies
|
29
|
+
# Create new policies.
|
30
30
|
# @param body
|
31
31
|
# @param [Hash] opts the optional parameters
|
32
32
|
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|
@@ -73,8 +73,8 @@ module TurnkeyClient
|
|
73
73
|
end
|
74
74
|
return data, status_code, headers
|
75
75
|
end
|
76
|
-
# Create
|
77
|
-
# Create a new
|
76
|
+
# Create policy
|
77
|
+
# Create a new policy.
|
78
78
|
# @param body
|
79
79
|
# @param [Hash] opts the optional parameters
|
80
80
|
# @return [ActivityResponse]
|
@@ -83,8 +83,8 @@ module TurnkeyClient
|
|
83
83
|
data
|
84
84
|
end
|
85
85
|
|
86
|
-
# Create
|
87
|
-
# Create a new
|
86
|
+
# Create policy
|
87
|
+
# Create a new policy.
|
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,66 @@ module TurnkeyClient
|
|
131
131
|
end
|
132
132
|
return data, status_code, headers
|
133
133
|
end
|
134
|
-
#
|
135
|
-
#
|
134
|
+
# Create smart contract interface
|
135
|
+
# Create an ABI/IDL in JSON.
|
136
|
+
# @param body
|
137
|
+
# @param [Hash] opts the optional parameters
|
138
|
+
# @return [ActivityResponse]
|
139
|
+
def create_smart_contract_interface(body, opts = {})
|
140
|
+
data, _status_code, _headers = create_smart_contract_interface_with_http_info(body, opts)
|
141
|
+
data
|
142
|
+
end
|
143
|
+
|
144
|
+
# Create smart contract interface
|
145
|
+
# Create an ABI/IDL in JSON.
|
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 create_smart_contract_interface_with_http_info(body, opts = {})
|
150
|
+
if @api_client.config.debugging
|
151
|
+
@api_client.config.logger.debug 'Calling API: PoliciesApi.create_smart_contract_interface ...'
|
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 PoliciesApi.create_smart_contract_interface"
|
156
|
+
end
|
157
|
+
# resource path
|
158
|
+
local_var_path = '/public/v1/submit/create_smart_contract_interface'
|
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: PoliciesApi#create_smart_contract_interface\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
189
|
+
end
|
190
|
+
return data, status_code, headers
|
191
|
+
end
|
192
|
+
# Delete policy
|
193
|
+
# Delete an existing policy.
|
136
194
|
# @param body
|
137
195
|
# @param [Hash] opts the optional parameters
|
138
196
|
# @return [ActivityResponse]
|
@@ -141,8 +199,8 @@ module TurnkeyClient
|
|
141
199
|
data
|
142
200
|
end
|
143
201
|
|
144
|
-
# Delete
|
145
|
-
# Delete an existing
|
202
|
+
# Delete policy
|
203
|
+
# Delete an existing policy.
|
146
204
|
# @param body
|
147
205
|
# @param [Hash] opts the optional parameters
|
148
206
|
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|
@@ -189,8 +247,66 @@ module TurnkeyClient
|
|
189
247
|
end
|
190
248
|
return data, status_code, headers
|
191
249
|
end
|
192
|
-
#
|
193
|
-
#
|
250
|
+
# Delete smart contract interface
|
251
|
+
# Delete a smart contract interface.
|
252
|
+
# @param body
|
253
|
+
# @param [Hash] opts the optional parameters
|
254
|
+
# @return [ActivityResponse]
|
255
|
+
def delete_smart_contract_interface(body, opts = {})
|
256
|
+
data, _status_code, _headers = delete_smart_contract_interface_with_http_info(body, opts)
|
257
|
+
data
|
258
|
+
end
|
259
|
+
|
260
|
+
# Delete smart contract interface
|
261
|
+
# Delete a smart contract interface.
|
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 delete_smart_contract_interface_with_http_info(body, opts = {})
|
266
|
+
if @api_client.config.debugging
|
267
|
+
@api_client.config.logger.debug 'Calling API: PoliciesApi.delete_smart_contract_interface ...'
|
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 PoliciesApi.delete_smart_contract_interface"
|
272
|
+
end
|
273
|
+
# resource path
|
274
|
+
local_var_path = '/public/v1/submit/delete_smart_contract_interface'
|
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: PoliciesApi#delete_smart_contract_interface\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
305
|
+
end
|
306
|
+
return data, status_code, headers
|
307
|
+
end
|
308
|
+
# List policies
|
309
|
+
# List all policies within an organization.
|
194
310
|
# @param body
|
195
311
|
# @param [Hash] opts the optional parameters
|
196
312
|
# @return [GetPoliciesResponse]
|
@@ -199,8 +315,8 @@ module TurnkeyClient
|
|
199
315
|
data
|
200
316
|
end
|
201
317
|
|
202
|
-
# List
|
203
|
-
# List all
|
318
|
+
# List policies
|
319
|
+
# List all policies within an organization.
|
204
320
|
# @param body
|
205
321
|
# @param [Hash] opts the optional parameters
|
206
322
|
# @return [Array<(GetPoliciesResponse, Integer, Hash)>] GetPoliciesResponse data, response status code and response headers
|
@@ -247,8 +363,8 @@ module TurnkeyClient
|
|
247
363
|
end
|
248
364
|
return data, status_code, headers
|
249
365
|
end
|
250
|
-
# Get
|
251
|
-
# Get details about a
|
366
|
+
# Get policy
|
367
|
+
# Get details about a policy.
|
252
368
|
# @param body
|
253
369
|
# @param [Hash] opts the optional parameters
|
254
370
|
# @return [GetPolicyResponse]
|
@@ -257,8 +373,8 @@ module TurnkeyClient
|
|
257
373
|
data
|
258
374
|
end
|
259
375
|
|
260
|
-
# Get
|
261
|
-
# Get details about a
|
376
|
+
# Get policy
|
377
|
+
# Get details about a policy.
|
262
378
|
# @param body
|
263
379
|
# @param [Hash] opts the optional parameters
|
264
380
|
# @return [Array<(GetPolicyResponse, Integer, Hash)>] GetPolicyResponse data, response status code and response headers
|
@@ -305,8 +421,124 @@ module TurnkeyClient
|
|
305
421
|
end
|
306
422
|
return data, status_code, headers
|
307
423
|
end
|
308
|
-
#
|
309
|
-
#
|
424
|
+
# Get smart contract interface
|
425
|
+
# Get details about a smart contract interface.
|
426
|
+
# @param body
|
427
|
+
# @param [Hash] opts the optional parameters
|
428
|
+
# @return [GetSmartContractInterfaceResponse]
|
429
|
+
def get_smart_contract_interface(body, opts = {})
|
430
|
+
data, _status_code, _headers = get_smart_contract_interface_with_http_info(body, opts)
|
431
|
+
data
|
432
|
+
end
|
433
|
+
|
434
|
+
# Get smart contract interface
|
435
|
+
# Get details about a smart contract interface.
|
436
|
+
# @param body
|
437
|
+
# @param [Hash] opts the optional parameters
|
438
|
+
# @return [Array<(GetSmartContractInterfaceResponse, Integer, Hash)>] GetSmartContractInterfaceResponse data, response status code and response headers
|
439
|
+
def get_smart_contract_interface_with_http_info(body, opts = {})
|
440
|
+
if @api_client.config.debugging
|
441
|
+
@api_client.config.logger.debug 'Calling API: PoliciesApi.get_smart_contract_interface ...'
|
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 PoliciesApi.get_smart_contract_interface"
|
446
|
+
end
|
447
|
+
# resource path
|
448
|
+
local_var_path = '/public/v1/query/get_smart_contract_interface'
|
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] || 'GetSmartContractInterfaceResponse'
|
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: PoliciesApi#get_smart_contract_interface\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
479
|
+
end
|
480
|
+
return data, status_code, headers
|
481
|
+
end
|
482
|
+
# List smart contract interfaces
|
483
|
+
# List all smart contract interfaces within an organization.
|
484
|
+
# @param body
|
485
|
+
# @param [Hash] opts the optional parameters
|
486
|
+
# @return [GetSmartContractInterfacesResponse]
|
487
|
+
def get_smart_contract_interfaces(body, opts = {})
|
488
|
+
data, _status_code, _headers = get_smart_contract_interfaces_with_http_info(body, opts)
|
489
|
+
data
|
490
|
+
end
|
491
|
+
|
492
|
+
# List smart contract interfaces
|
493
|
+
# List all smart contract interfaces within an organization.
|
494
|
+
# @param body
|
495
|
+
# @param [Hash] opts the optional parameters
|
496
|
+
# @return [Array<(GetSmartContractInterfacesResponse, Integer, Hash)>] GetSmartContractInterfacesResponse data, response status code and response headers
|
497
|
+
def get_smart_contract_interfaces_with_http_info(body, opts = {})
|
498
|
+
if @api_client.config.debugging
|
499
|
+
@api_client.config.logger.debug 'Calling API: PoliciesApi.get_smart_contract_interfaces ...'
|
500
|
+
end
|
501
|
+
# verify the required parameter 'body' is set
|
502
|
+
if @api_client.config.client_side_validation && body.nil?
|
503
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling PoliciesApi.get_smart_contract_interfaces"
|
504
|
+
end
|
505
|
+
# resource path
|
506
|
+
local_var_path = '/public/v1/query/list_smart_contract_interfaces'
|
507
|
+
|
508
|
+
# query parameters
|
509
|
+
query_params = opts[:query_params] || {}
|
510
|
+
|
511
|
+
# header parameters
|
512
|
+
header_params = opts[:header_params] || {}
|
513
|
+
# HTTP header 'Accept' (if needed)
|
514
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
515
|
+
# HTTP header 'Content-Type'
|
516
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
517
|
+
|
518
|
+
# form parameters
|
519
|
+
form_params = opts[:form_params] || {}
|
520
|
+
|
521
|
+
# http body (model)
|
522
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
523
|
+
|
524
|
+
return_type = opts[:return_type] || 'GetSmartContractInterfacesResponse'
|
525
|
+
|
526
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
527
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
528
|
+
:header_params => header_params,
|
529
|
+
:query_params => query_params,
|
530
|
+
:form_params => form_params,
|
531
|
+
:body => post_body,
|
532
|
+
:auth_names => auth_names,
|
533
|
+
:return_type => return_type)
|
534
|
+
|
535
|
+
if @api_client.config.debugging
|
536
|
+
@api_client.config.logger.debug "API called: PoliciesApi#get_smart_contract_interfaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
537
|
+
end
|
538
|
+
return data, status_code, headers
|
539
|
+
end
|
540
|
+
# Update policy
|
541
|
+
# Update an existing policy.
|
310
542
|
# @param body
|
311
543
|
# @param [Hash] opts the optional parameters
|
312
544
|
# @return [ActivityResponse]
|
@@ -315,8 +547,8 @@ module TurnkeyClient
|
|
315
547
|
data
|
316
548
|
end
|
317
549
|
|
318
|
-
# Update
|
319
|
-
# Update an existing
|
550
|
+
# Update policy
|
551
|
+
# Update an existing policy.
|
320
552
|
# @param body
|
321
553
|
# @param [Hash] opts the optional parameters
|
322
554
|
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|
@@ -15,7 +15,7 @@ module TurnkeyClient
|
|
15
15
|
def initialize(api_client = ApiClient.default)
|
16
16
|
@api_client = api_client
|
17
17
|
end
|
18
|
-
# Create
|
18
|
+
# Create private key tag
|
19
19
|
# Create a private key tag and add it to private keys.
|
20
20
|
# @param body
|
21
21
|
# @param [Hash] opts the optional parameters
|
@@ -25,7 +25,7 @@ module TurnkeyClient
|
|
25
25
|
data
|
26
26
|
end
|
27
27
|
|
28
|
-
# Create
|
28
|
+
# Create private key tag
|
29
29
|
# Create a private key tag and add it to private keys.
|
30
30
|
# @param body
|
31
31
|
# @param [Hash] opts the optional parameters
|
@@ -73,8 +73,8 @@ module TurnkeyClient
|
|
73
73
|
end
|
74
74
|
return data, status_code, headers
|
75
75
|
end
|
76
|
-
# Delete
|
77
|
-
# Delete
|
76
|
+
# Delete private key tags
|
77
|
+
# Delete private key tags within an organization.
|
78
78
|
# @param body
|
79
79
|
# @param [Hash] opts the optional parameters
|
80
80
|
# @return [ActivityResponse]
|
@@ -83,8 +83,8 @@ module TurnkeyClient
|
|
83
83
|
data
|
84
84
|
end
|
85
85
|
|
86
|
-
# Delete
|
87
|
-
# Delete
|
86
|
+
# Delete private key tags
|
87
|
+
# Delete private key tags within an organization.
|
88
88
|
# @param body
|
89
89
|
# @param [Hash] opts the optional parameters
|
90
90
|
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|
@@ -131,8 +131,8 @@ module TurnkeyClient
|
|
131
131
|
end
|
132
132
|
return data, status_code, headers
|
133
133
|
end
|
134
|
-
# List
|
135
|
-
# List all
|
134
|
+
# List private key tags
|
135
|
+
# List all private key tags within an organization.
|
136
136
|
# @param body
|
137
137
|
# @param [Hash] opts the optional parameters
|
138
138
|
# @return [ListPrivateKeyTagsResponse]
|
@@ -141,8 +141,8 @@ module TurnkeyClient
|
|
141
141
|
data
|
142
142
|
end
|
143
143
|
|
144
|
-
# List
|
145
|
-
# List all
|
144
|
+
# List private key tags
|
145
|
+
# List all private key tags within an organization.
|
146
146
|
# @param body
|
147
147
|
# @param [Hash] opts the optional parameters
|
148
148
|
# @return [Array<(ListPrivateKeyTagsResponse, Integer, Hash)>] ListPrivateKeyTagsResponse data, response status code and response headers
|
@@ -189,7 +189,7 @@ module TurnkeyClient
|
|
189
189
|
end
|
190
190
|
return data, status_code, headers
|
191
191
|
end
|
192
|
-
# Update
|
192
|
+
# Update private key tag
|
193
193
|
# Update human-readable name or associated private keys. Note that this activity is atomic: all of the updates will succeed at once, or all of them will fail.
|
194
194
|
# @param body
|
195
195
|
# @param [Hash] opts the optional parameters
|
@@ -199,7 +199,7 @@ module TurnkeyClient
|
|
199
199
|
data
|
200
200
|
end
|
201
201
|
|
202
|
-
# Update
|
202
|
+
# Update private key tag
|
203
203
|
# Update human-readable name or associated private keys. Note that this activity is atomic: all of the updates will succeed at once, or all of them will fail.
|
204
204
|
# @param body
|
205
205
|
# @param [Hash] opts the optional parameters
|
@@ -15,8 +15,8 @@ module TurnkeyClient
|
|
15
15
|
def initialize(api_client = ApiClient.default)
|
16
16
|
@api_client = api_client
|
17
17
|
end
|
18
|
-
# Create
|
19
|
-
# Create new
|
18
|
+
# Create private keys
|
19
|
+
# Create new private keys.
|
20
20
|
# @param body
|
21
21
|
# @param [Hash] opts the optional parameters
|
22
22
|
# @return [ActivityResponse]
|
@@ -25,8 +25,8 @@ module TurnkeyClient
|
|
25
25
|
data
|
26
26
|
end
|
27
27
|
|
28
|
-
# Create
|
29
|
-
# Create new
|
28
|
+
# Create private keys
|
29
|
+
# Create new private keys.
|
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
|
77
|
-
#
|
76
|
+
# Delete private keys
|
77
|
+
# Delete private keys for an organization.
|
78
78
|
# @param body
|
79
79
|
# @param [Hash] opts the optional parameters
|
80
80
|
# @return [ActivityResponse]
|
@@ -83,8 +83,8 @@ module TurnkeyClient
|
|
83
83
|
data
|
84
84
|
end
|
85
85
|
|
86
|
-
# Delete
|
87
|
-
#
|
86
|
+
# Delete private keys
|
87
|
+
# Delete private keys for 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
|
-
# Export
|
135
|
-
#
|
134
|
+
# Export private key
|
135
|
+
# Export a private key.
|
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
|
-
# Export
|
145
|
-
#
|
144
|
+
# Export private key
|
145
|
+
# Export a private key.
|
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
|
-
# Get
|
193
|
-
# Get details about a
|
192
|
+
# Get private key
|
193
|
+
# Get details about a private key.
|
194
194
|
# @param body
|
195
195
|
# @param [Hash] opts the optional parameters
|
196
196
|
# @return [GetPrivateKeyResponse]
|
@@ -199,8 +199,8 @@ module TurnkeyClient
|
|
199
199
|
data
|
200
200
|
end
|
201
201
|
|
202
|
-
# Get
|
203
|
-
# Get details about a
|
202
|
+
# Get private key
|
203
|
+
# Get details about a private key.
|
204
204
|
# @param body
|
205
205
|
# @param [Hash] opts the optional parameters
|
206
206
|
# @return [Array<(GetPrivateKeyResponse, Integer, Hash)>] GetPrivateKeyResponse 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
|
-
# List
|
251
|
-
# List all
|
250
|
+
# List private keys
|
251
|
+
# List all private keys within an organization.
|
252
252
|
# @param body
|
253
253
|
# @param [Hash] opts the optional parameters
|
254
254
|
# @return [GetPrivateKeysResponse]
|
@@ -257,8 +257,8 @@ module TurnkeyClient
|
|
257
257
|
data
|
258
258
|
end
|
259
259
|
|
260
|
-
# List
|
261
|
-
# List all
|
260
|
+
# List private keys
|
261
|
+
# List all private keys within an organization.
|
262
262
|
# @param body
|
263
263
|
# @param [Hash] opts the optional parameters
|
264
264
|
# @return [Array<(GetPrivateKeysResponse, Integer, Hash)>] GetPrivateKeysResponse 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
|
-
# Import
|
309
|
-
#
|
308
|
+
# Import private key
|
309
|
+
# Import a private key.
|
310
310
|
# @param body
|
311
311
|
# @param [Hash] opts the optional parameters
|
312
312
|
# @return [ActivityResponse]
|
@@ -315,8 +315,8 @@ module TurnkeyClient
|
|
315
315
|
data
|
316
316
|
end
|
317
317
|
|
318
|
-
# Import
|
319
|
-
#
|
318
|
+
# Import private key
|
319
|
+
# Import a private key.
|
320
320
|
# @param body
|
321
321
|
# @param [Hash] opts the optional parameters
|
322
322
|
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|
@@ -363,8 +363,8 @@ module TurnkeyClient
|
|
363
363
|
end
|
364
364
|
return data, status_code, headers
|
365
365
|
end
|
366
|
-
# Init
|
367
|
-
#
|
366
|
+
# Init import private key
|
367
|
+
# Initialize a new private key import.
|
368
368
|
# @param body
|
369
369
|
# @param [Hash] opts the optional parameters
|
370
370
|
# @return [ActivityResponse]
|
@@ -373,8 +373,8 @@ module TurnkeyClient
|
|
373
373
|
data
|
374
374
|
end
|
375
375
|
|
376
|
-
# Init
|
377
|
-
#
|
376
|
+
# Init import private key
|
377
|
+
# Initialize a new private key import.
|
378
378
|
# @param body
|
379
379
|
# @param [Hash] opts the optional parameters
|
380
380
|
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|