turnkey_client 0.0.18 → 0.0.19
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/default_api.rb +46 -0
- data/lib/turnkey_client/api/ip_allowlist_api.rb +193 -0
- data/lib/turnkey_client/api/organizations_api.rb +290 -0
- data/lib/turnkey_client/api/signing_api.rb +232 -0
- data/lib/turnkey_client/api/tvc_api.rb +773 -0
- data/lib/turnkey_client/api/wallets_api.rb +4 -4
- data/lib/turnkey_client/configuration.rb +7 -0
- data/lib/turnkey_client/models/activate_billing_tier_intent.rb +14 -4
- data/lib/turnkey_client/models/activity_type.rb +21 -0
- data/lib/turnkey_client/models/address_format.rb +2 -0
- data/lib/turnkey_client/models/app_status.rb +243 -0
- data/lib/turnkey_client/models/boot_proof.rb +17 -6
- data/lib/turnkey_client/models/create_oauth_providers_intent_v2.rb +228 -0
- data/lib/turnkey_client/models/create_oauth_providers_request.rb +2 -2
- data/lib/turnkey_client/models/create_oauth_providers_result_v2.rb +213 -0
- data/lib/turnkey_client/models/create_read_write_session_intent_v2.rb +1 -1
- data/lib/turnkey_client/models/create_sub_organization_intent_v8.rb +316 -0
- data/lib/turnkey_client/models/create_sub_organization_request.rb +2 -2
- data/lib/turnkey_client/models/create_sub_organization_result_v8.rb +230 -0
- data/lib/turnkey_client/models/create_tvc_app_intent.rb +9 -9
- data/lib/turnkey_client/models/create_tvc_app_request.rb +288 -0
- data/lib/turnkey_client/models/create_tvc_deployment_intent.rb +45 -48
- data/lib/turnkey_client/models/create_tvc_deployment_request.rb +288 -0
- data/lib/turnkey_client/models/create_tvc_manifest_approvals_request.rb +288 -0
- data/lib/turnkey_client/models/create_users_intent_v4.rb +213 -0
- data/lib/turnkey_client/models/create_users_request.rb +2 -2
- data/lib/turnkey_client/models/create_webhook_endpoint_intent.rb +238 -0
- data/lib/turnkey_client/models/create_webhook_endpoint_request.rb +298 -0
- data/lib/turnkey_client/models/create_webhook_endpoint_result.rb +225 -0
- data/lib/turnkey_client/models/delete_tvc_app_and_deployments_intent.rb +211 -0
- data/lib/turnkey_client/models/delete_tvc_app_and_deployments_request.rb +298 -0
- data/lib/turnkey_client/models/delete_tvc_app_and_deployments_result.rb +211 -0
- data/lib/turnkey_client/models/delete_tvc_deployment_intent.rb +211 -0
- data/lib/turnkey_client/models/delete_tvc_deployment_request.rb +298 -0
- data/lib/turnkey_client/models/delete_tvc_deployment_result.rb +211 -0
- data/lib/turnkey_client/models/delete_webhook_endpoint_intent.rb +211 -0
- data/lib/turnkey_client/models/delete_webhook_endpoint_request.rb +298 -0
- data/lib/turnkey_client/models/delete_webhook_endpoint_result.rb +211 -0
- data/lib/turnkey_client/models/deployment_status.rb +255 -0
- data/lib/turnkey_client/models/eth_failure_details.rb +208 -0
- data/lib/turnkey_client/models/eth_send_transaction_intent.rb +12 -1
- data/lib/turnkey_client/models/feature_name.rb +1 -0
- data/lib/turnkey_client/models/get_app_status_request.rb +226 -0
- data/lib/turnkey_client/models/get_app_status_response.rb +210 -0
- data/lib/turnkey_client/models/get_ip_allowlist_request.rb +222 -0
- data/lib/turnkey_client/models/get_ip_allowlist_response.rb +210 -0
- data/lib/turnkey_client/models/get_send_transaction_status_response.rb +10 -1
- data/lib/turnkey_client/models/get_tvc_app_deployments_request.rb +226 -0
- data/lib/turnkey_client/models/get_tvc_app_deployments_response.rb +213 -0
- data/lib/turnkey_client/models/get_tvc_app_request.rb +226 -0
- data/lib/turnkey_client/models/get_tvc_app_response.rb +210 -0
- data/lib/turnkey_client/models/get_tvc_apps_request.rb +211 -0
- data/lib/turnkey_client/models/get_tvc_apps_response.rb +213 -0
- data/lib/turnkey_client/models/get_tvc_deployment_request.rb +226 -0
- data/lib/turnkey_client/models/get_tvc_deployment_response.rb +210 -0
- data/lib/turnkey_client/models/get_wallet_address_balances_request.rb +4 -4
- data/lib/turnkey_client/models/init_otp_auth_intent.rb +1 -1
- data/lib/turnkey_client/models/init_otp_auth_intent_v2.rb +1 -1
- data/lib/turnkey_client/models/init_otp_intent_v3.rb +336 -0
- data/lib/turnkey_client/models/init_otp_request.rb +2 -2
- data/lib/turnkey_client/models/init_otp_result_v2.rb +226 -0
- data/lib/turnkey_client/models/intent.rb +193 -4
- data/lib/turnkey_client/models/ip_allowlist.rb +261 -0
- data/lib/turnkey_client/models/ip_allowlist_intent_rule.rb +222 -0
- data/lib/turnkey_client/models/ip_allowlist_rule.rb +232 -0
- data/lib/turnkey_client/models/list_supported_assets_request.rb +3 -3
- data/lib/turnkey_client/models/list_webhook_endpoints_request.rb +211 -0
- data/lib/turnkey_client/models/list_webhook_endpoints_response.rb +212 -0
- data/lib/turnkey_client/models/login_usage.rb +211 -0
- data/lib/turnkey_client/models/noop_codegen_anchor_response.rb +219 -0
- data/lib/turnkey_client/models/oauth2_authenticate_intent.rb +6 -2
- data/lib/turnkey_client/models/oauth_provider_params_v2.rb +230 -0
- data/lib/turnkey_client/models/oidc_claims.rb +241 -0
- data/lib/turnkey_client/models/otp_login_intent_v2.rb +262 -0
- data/lib/turnkey_client/models/otp_login_request.rb +2 -2
- data/lib/turnkey_client/models/post_tvc_quorum_key_share_intent.rb +240 -0
- data/lib/turnkey_client/models/post_tvc_quorum_key_share_result.rb +211 -0
- data/lib/turnkey_client/models/quorum_key_share_approval_bundle.rb +241 -0
- data/lib/turnkey_client/models/remove_ip_allowlist_intent.rb +207 -0
- data/lib/turnkey_client/models/remove_ip_allowlist_request.rb +298 -0
- data/lib/turnkey_client/models/remove_ip_allowlist_result.rb +196 -0
- data/lib/turnkey_client/models/restore_tvc_deployment_intent.rb +211 -0
- data/lib/turnkey_client/models/restore_tvc_deployment_request.rb +298 -0
- data/lib/turnkey_client/models/restore_tvc_deployment_result.rb +211 -0
- data/lib/turnkey_client/models/result.rb +166 -4
- data/lib/turnkey_client/models/root_user_params_v5.rb +284 -0
- data/lib/turnkey_client/models/set_ip_allowlist_intent.rb +241 -0
- data/lib/turnkey_client/models/set_ip_allowlist_request.rb +298 -0
- data/lib/turnkey_client/models/set_ip_allowlist_result.rb +196 -0
- data/lib/turnkey_client/models/signup_usage.rb +249 -0
- data/lib/turnkey_client/models/signup_usage_v2.rb +249 -0
- data/lib/turnkey_client/models/sol_send_transaction_intent.rb +3 -3
- data/lib/turnkey_client/models/solana_config.rb +207 -0
- data/lib/turnkey_client/models/solana_failure_details.rb +273 -0
- data/lib/turnkey_client/models/solana_send_transaction_status.rb +207 -0
- data/lib/turnkey_client/models/spark_claim_leaf.rb +241 -0
- data/lib/turnkey_client/models/spark_claim_package.rb +275 -0
- data/lib/turnkey_client/models/spark_claim_transfer_intent.rb +225 -0
- data/lib/turnkey_client/models/spark_claim_transfer_request.rb +288 -0
- data/lib/turnkey_client/models/spark_claim_transfer_result.rb +230 -0
- data/lib/turnkey_client/models/spark_deposit_derivation.rb +196 -0
- data/lib/turnkey_client/models/spark_encrypted_operator_package.rb +226 -0
- data/lib/turnkey_client/models/spark_frost_commitment.rb +241 -0
- data/lib/turnkey_client/models/spark_htlc_preimage_derivation.rb +196 -0
- data/lib/turnkey_client/models/spark_identity_derivation.rb +196 -0
- data/lib/turnkey_client/models/spark_key_derivation.rb +241 -0
- data/lib/turnkey_client/models/spark_leaf_public_key.rb +226 -0
- data/lib/turnkey_client/models/spark_lightning_receive_package.rb +228 -0
- data/lib/turnkey_client/models/spark_operator_recipient.rb +226 -0
- data/lib/turnkey_client/models/spark_partial_signature.rb +241 -0
- data/lib/turnkey_client/models/spark_prepare_lightning_receive_intent.rb +225 -0
- data/lib/turnkey_client/models/spark_prepare_lightning_receive_request.rb +288 -0
- data/lib/turnkey_client/models/spark_prepare_lightning_receive_result.rb +228 -0
- data/lib/turnkey_client/models/spark_prepare_transfer_intent.rb +225 -0
- data/lib/turnkey_client/models/spark_prepare_transfer_request.rb +288 -0
- data/lib/turnkey_client/models/spark_prepare_transfer_result.rb +245 -0
- data/lib/turnkey_client/models/spark_sign_frost_intent.rb +228 -0
- data/lib/turnkey_client/models/spark_sign_frost_request.rb +288 -0
- data/lib/turnkey_client/models/spark_sign_frost_result.rb +213 -0
- data/lib/turnkey_client/models/spark_signature_request.rb +268 -0
- data/lib/turnkey_client/models/spark_signing_leaf_derivation.rb +211 -0
- data/lib/turnkey_client/models/spark_static_deposit_derivation.rb +211 -0
- data/lib/turnkey_client/models/spark_transfer_leaf.rb +272 -0
- data/lib/turnkey_client/models/spark_transfer_package.rb +275 -0
- data/lib/turnkey_client/models/token_usage.rb +252 -0
- data/lib/turnkey_client/models/tvc_app.rb +353 -0
- data/lib/turnkey_client/models/tvc_container_spec.rb +302 -0
- data/lib/turnkey_client/models/tvc_deployment.rb +372 -0
- data/lib/turnkey_client/models/tvc_health_check_type.rb +27 -0
- data/lib/turnkey_client/models/tvc_manifest.rb +254 -0
- data/lib/turnkey_client/models/tvc_operator.rb +269 -0
- data/lib/turnkey_client/models/tvc_operator_approval.rb +283 -0
- data/lib/turnkey_client/models/tvc_operator_set.rb +301 -0
- data/lib/turnkey_client/models/tx_error.rb +22 -4
- data/lib/turnkey_client/models/update_auth_proxy_config_intent.rb +17 -5
- data/lib/turnkey_client/models/update_organization_name_intent.rb +211 -0
- data/lib/turnkey_client/models/update_organization_name_request.rb +298 -0
- data/lib/turnkey_client/models/update_organization_name_result.rb +226 -0
- data/lib/turnkey_client/models/update_tvc_app_live_deployment_intent.rb +211 -0
- data/lib/turnkey_client/models/update_tvc_app_live_deployment_request.rb +298 -0
- data/lib/turnkey_client/models/update_tvc_app_live_deployment_result.rb +196 -0
- data/lib/turnkey_client/models/update_webhook_endpoint_intent.rb +244 -0
- data/lib/turnkey_client/models/update_webhook_endpoint_request.rb +298 -0
- data/lib/turnkey_client/models/update_webhook_endpoint_result.rb +225 -0
- data/lib/turnkey_client/models/upsert_gas_usage_config_intent.rb +15 -6
- data/lib/turnkey_client/models/usage_type.rb +27 -0
- data/lib/turnkey_client/models/user_params_v4.rb +301 -0
- data/lib/turnkey_client/models/validate_tvc_image_request.rb +237 -0
- data/lib/turnkey_client/models/validate_tvc_image_response.rb +205 -0
- data/lib/turnkey_client/models/verify_otp_intent_v2.rb +237 -0
- data/lib/turnkey_client/models/verify_otp_request.rb +2 -2
- data/lib/turnkey_client/models/web_authn_stamp.rb +256 -0
- data/lib/turnkey_client/models/webhook_endpoint_data.rb +283 -0
- data/lib/turnkey_client/models/webhook_subscription_params.rb +233 -0
- data/lib/turnkey_client/version.rb +1 -1
- data/lib/turnkey_client.rb +122 -0
- metadata +124 -2
|
@@ -208,6 +208,42 @@ module TurnkeyClient
|
|
|
208
208
|
|
|
209
209
|
attr_accessor :sol_send_transaction_result
|
|
210
210
|
|
|
211
|
+
attr_accessor :init_otp_result_v2
|
|
212
|
+
|
|
213
|
+
attr_accessor :update_organization_name_result
|
|
214
|
+
|
|
215
|
+
attr_accessor :create_sub_organization_result_v8
|
|
216
|
+
|
|
217
|
+
attr_accessor :create_oauth_providers_result_v2
|
|
218
|
+
|
|
219
|
+
attr_accessor :create_webhook_endpoint_result
|
|
220
|
+
|
|
221
|
+
attr_accessor :update_webhook_endpoint_result
|
|
222
|
+
|
|
223
|
+
attr_accessor :delete_webhook_endpoint_result
|
|
224
|
+
|
|
225
|
+
attr_accessor :set_ip_allowlist_result
|
|
226
|
+
|
|
227
|
+
attr_accessor :remove_ip_allowlist_result
|
|
228
|
+
|
|
229
|
+
attr_accessor :update_tvc_app_live_deployment_result
|
|
230
|
+
|
|
231
|
+
attr_accessor :delete_tvc_deployment_result
|
|
232
|
+
|
|
233
|
+
attr_accessor :delete_tvc_app_and_deployments_result
|
|
234
|
+
|
|
235
|
+
attr_accessor :restore_tvc_deployment_result
|
|
236
|
+
|
|
237
|
+
attr_accessor :spark_sign_frost_result
|
|
238
|
+
|
|
239
|
+
attr_accessor :spark_prepare_transfer_result
|
|
240
|
+
|
|
241
|
+
attr_accessor :spark_claim_transfer_result
|
|
242
|
+
|
|
243
|
+
attr_accessor :spark_prepare_lightning_receive_result
|
|
244
|
+
|
|
245
|
+
attr_accessor :post_tvc_quorum_key_share_result
|
|
246
|
+
|
|
211
247
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
212
248
|
def self.attribute_map
|
|
213
249
|
{
|
|
@@ -308,7 +344,25 @@ module TurnkeyClient
|
|
|
308
344
|
:'create_tvc_app_result' => :'createTvcAppResult',
|
|
309
345
|
:'create_tvc_deployment_result' => :'createTvcDeploymentResult',
|
|
310
346
|
:'create_tvc_manifest_approvals_result' => :'createTvcManifestApprovalsResult',
|
|
311
|
-
:'sol_send_transaction_result' => :'solSendTransactionResult'
|
|
347
|
+
:'sol_send_transaction_result' => :'solSendTransactionResult',
|
|
348
|
+
:'init_otp_result_v2' => :'initOtpResultV2',
|
|
349
|
+
:'update_organization_name_result' => :'updateOrganizationNameResult',
|
|
350
|
+
:'create_sub_organization_result_v8' => :'createSubOrganizationResultV8',
|
|
351
|
+
:'create_oauth_providers_result_v2' => :'createOauthProvidersResultV2',
|
|
352
|
+
:'create_webhook_endpoint_result' => :'createWebhookEndpointResult',
|
|
353
|
+
:'update_webhook_endpoint_result' => :'updateWebhookEndpointResult',
|
|
354
|
+
:'delete_webhook_endpoint_result' => :'deleteWebhookEndpointResult',
|
|
355
|
+
:'set_ip_allowlist_result' => :'setIpAllowlistResult',
|
|
356
|
+
:'remove_ip_allowlist_result' => :'removeIpAllowlistResult',
|
|
357
|
+
:'update_tvc_app_live_deployment_result' => :'updateTvcAppLiveDeploymentResult',
|
|
358
|
+
:'delete_tvc_deployment_result' => :'deleteTvcDeploymentResult',
|
|
359
|
+
:'delete_tvc_app_and_deployments_result' => :'deleteTvcAppAndDeploymentsResult',
|
|
360
|
+
:'restore_tvc_deployment_result' => :'restoreTvcDeploymentResult',
|
|
361
|
+
:'spark_sign_frost_result' => :'sparkSignFrostResult',
|
|
362
|
+
:'spark_prepare_transfer_result' => :'sparkPrepareTransferResult',
|
|
363
|
+
:'spark_claim_transfer_result' => :'sparkClaimTransferResult',
|
|
364
|
+
:'spark_prepare_lightning_receive_result' => :'sparkPrepareLightningReceiveResult',
|
|
365
|
+
:'post_tvc_quorum_key_share_result' => :'postTvcQuorumKeyShareResult'
|
|
312
366
|
}
|
|
313
367
|
end
|
|
314
368
|
|
|
@@ -412,7 +466,25 @@ module TurnkeyClient
|
|
|
412
466
|
:'create_tvc_app_result' => :'Object',
|
|
413
467
|
:'create_tvc_deployment_result' => :'Object',
|
|
414
468
|
:'create_tvc_manifest_approvals_result' => :'Object',
|
|
415
|
-
:'sol_send_transaction_result' => :'Object'
|
|
469
|
+
:'sol_send_transaction_result' => :'Object',
|
|
470
|
+
:'init_otp_result_v2' => :'Object',
|
|
471
|
+
:'update_organization_name_result' => :'Object',
|
|
472
|
+
:'create_sub_organization_result_v8' => :'Object',
|
|
473
|
+
:'create_oauth_providers_result_v2' => :'Object',
|
|
474
|
+
:'create_webhook_endpoint_result' => :'Object',
|
|
475
|
+
:'update_webhook_endpoint_result' => :'Object',
|
|
476
|
+
:'delete_webhook_endpoint_result' => :'Object',
|
|
477
|
+
:'set_ip_allowlist_result' => :'Object',
|
|
478
|
+
:'remove_ip_allowlist_result' => :'Object',
|
|
479
|
+
:'update_tvc_app_live_deployment_result' => :'Object',
|
|
480
|
+
:'delete_tvc_deployment_result' => :'Object',
|
|
481
|
+
:'delete_tvc_app_and_deployments_result' => :'Object',
|
|
482
|
+
:'restore_tvc_deployment_result' => :'Object',
|
|
483
|
+
:'spark_sign_frost_result' => :'Object',
|
|
484
|
+
:'spark_prepare_transfer_result' => :'Object',
|
|
485
|
+
:'spark_claim_transfer_result' => :'Object',
|
|
486
|
+
:'spark_prepare_lightning_receive_result' => :'Object',
|
|
487
|
+
:'post_tvc_quorum_key_share_result' => :'Object'
|
|
416
488
|
}
|
|
417
489
|
end
|
|
418
490
|
|
|
@@ -828,6 +900,78 @@ module TurnkeyClient
|
|
|
828
900
|
if attributes.key?(:'sol_send_transaction_result')
|
|
829
901
|
self.sol_send_transaction_result = attributes[:'sol_send_transaction_result']
|
|
830
902
|
end
|
|
903
|
+
|
|
904
|
+
if attributes.key?(:'init_otp_result_v2')
|
|
905
|
+
self.init_otp_result_v2 = attributes[:'init_otp_result_v2']
|
|
906
|
+
end
|
|
907
|
+
|
|
908
|
+
if attributes.key?(:'update_organization_name_result')
|
|
909
|
+
self.update_organization_name_result = attributes[:'update_organization_name_result']
|
|
910
|
+
end
|
|
911
|
+
|
|
912
|
+
if attributes.key?(:'create_sub_organization_result_v8')
|
|
913
|
+
self.create_sub_organization_result_v8 = attributes[:'create_sub_organization_result_v8']
|
|
914
|
+
end
|
|
915
|
+
|
|
916
|
+
if attributes.key?(:'create_oauth_providers_result_v2')
|
|
917
|
+
self.create_oauth_providers_result_v2 = attributes[:'create_oauth_providers_result_v2']
|
|
918
|
+
end
|
|
919
|
+
|
|
920
|
+
if attributes.key?(:'create_webhook_endpoint_result')
|
|
921
|
+
self.create_webhook_endpoint_result = attributes[:'create_webhook_endpoint_result']
|
|
922
|
+
end
|
|
923
|
+
|
|
924
|
+
if attributes.key?(:'update_webhook_endpoint_result')
|
|
925
|
+
self.update_webhook_endpoint_result = attributes[:'update_webhook_endpoint_result']
|
|
926
|
+
end
|
|
927
|
+
|
|
928
|
+
if attributes.key?(:'delete_webhook_endpoint_result')
|
|
929
|
+
self.delete_webhook_endpoint_result = attributes[:'delete_webhook_endpoint_result']
|
|
930
|
+
end
|
|
931
|
+
|
|
932
|
+
if attributes.key?(:'set_ip_allowlist_result')
|
|
933
|
+
self.set_ip_allowlist_result = attributes[:'set_ip_allowlist_result']
|
|
934
|
+
end
|
|
935
|
+
|
|
936
|
+
if attributes.key?(:'remove_ip_allowlist_result')
|
|
937
|
+
self.remove_ip_allowlist_result = attributes[:'remove_ip_allowlist_result']
|
|
938
|
+
end
|
|
939
|
+
|
|
940
|
+
if attributes.key?(:'update_tvc_app_live_deployment_result')
|
|
941
|
+
self.update_tvc_app_live_deployment_result = attributes[:'update_tvc_app_live_deployment_result']
|
|
942
|
+
end
|
|
943
|
+
|
|
944
|
+
if attributes.key?(:'delete_tvc_deployment_result')
|
|
945
|
+
self.delete_tvc_deployment_result = attributes[:'delete_tvc_deployment_result']
|
|
946
|
+
end
|
|
947
|
+
|
|
948
|
+
if attributes.key?(:'delete_tvc_app_and_deployments_result')
|
|
949
|
+
self.delete_tvc_app_and_deployments_result = attributes[:'delete_tvc_app_and_deployments_result']
|
|
950
|
+
end
|
|
951
|
+
|
|
952
|
+
if attributes.key?(:'restore_tvc_deployment_result')
|
|
953
|
+
self.restore_tvc_deployment_result = attributes[:'restore_tvc_deployment_result']
|
|
954
|
+
end
|
|
955
|
+
|
|
956
|
+
if attributes.key?(:'spark_sign_frost_result')
|
|
957
|
+
self.spark_sign_frost_result = attributes[:'spark_sign_frost_result']
|
|
958
|
+
end
|
|
959
|
+
|
|
960
|
+
if attributes.key?(:'spark_prepare_transfer_result')
|
|
961
|
+
self.spark_prepare_transfer_result = attributes[:'spark_prepare_transfer_result']
|
|
962
|
+
end
|
|
963
|
+
|
|
964
|
+
if attributes.key?(:'spark_claim_transfer_result')
|
|
965
|
+
self.spark_claim_transfer_result = attributes[:'spark_claim_transfer_result']
|
|
966
|
+
end
|
|
967
|
+
|
|
968
|
+
if attributes.key?(:'spark_prepare_lightning_receive_result')
|
|
969
|
+
self.spark_prepare_lightning_receive_result = attributes[:'spark_prepare_lightning_receive_result']
|
|
970
|
+
end
|
|
971
|
+
|
|
972
|
+
if attributes.key?(:'post_tvc_quorum_key_share_result')
|
|
973
|
+
self.post_tvc_quorum_key_share_result = attributes[:'post_tvc_quorum_key_share_result']
|
|
974
|
+
end
|
|
831
975
|
end
|
|
832
976
|
|
|
833
977
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -945,7 +1089,25 @@ module TurnkeyClient
|
|
|
945
1089
|
create_tvc_app_result == o.create_tvc_app_result &&
|
|
946
1090
|
create_tvc_deployment_result == o.create_tvc_deployment_result &&
|
|
947
1091
|
create_tvc_manifest_approvals_result == o.create_tvc_manifest_approvals_result &&
|
|
948
|
-
sol_send_transaction_result == o.sol_send_transaction_result
|
|
1092
|
+
sol_send_transaction_result == o.sol_send_transaction_result &&
|
|
1093
|
+
init_otp_result_v2 == o.init_otp_result_v2 &&
|
|
1094
|
+
update_organization_name_result == o.update_organization_name_result &&
|
|
1095
|
+
create_sub_organization_result_v8 == o.create_sub_organization_result_v8 &&
|
|
1096
|
+
create_oauth_providers_result_v2 == o.create_oauth_providers_result_v2 &&
|
|
1097
|
+
create_webhook_endpoint_result == o.create_webhook_endpoint_result &&
|
|
1098
|
+
update_webhook_endpoint_result == o.update_webhook_endpoint_result &&
|
|
1099
|
+
delete_webhook_endpoint_result == o.delete_webhook_endpoint_result &&
|
|
1100
|
+
set_ip_allowlist_result == o.set_ip_allowlist_result &&
|
|
1101
|
+
remove_ip_allowlist_result == o.remove_ip_allowlist_result &&
|
|
1102
|
+
update_tvc_app_live_deployment_result == o.update_tvc_app_live_deployment_result &&
|
|
1103
|
+
delete_tvc_deployment_result == o.delete_tvc_deployment_result &&
|
|
1104
|
+
delete_tvc_app_and_deployments_result == o.delete_tvc_app_and_deployments_result &&
|
|
1105
|
+
restore_tvc_deployment_result == o.restore_tvc_deployment_result &&
|
|
1106
|
+
spark_sign_frost_result == o.spark_sign_frost_result &&
|
|
1107
|
+
spark_prepare_transfer_result == o.spark_prepare_transfer_result &&
|
|
1108
|
+
spark_claim_transfer_result == o.spark_claim_transfer_result &&
|
|
1109
|
+
spark_prepare_lightning_receive_result == o.spark_prepare_lightning_receive_result &&
|
|
1110
|
+
post_tvc_quorum_key_share_result == o.post_tvc_quorum_key_share_result
|
|
949
1111
|
end
|
|
950
1112
|
|
|
951
1113
|
# @see the `==` method
|
|
@@ -957,7 +1119,7 @@ module TurnkeyClient
|
|
|
957
1119
|
# Calculates hash code according to all attributes.
|
|
958
1120
|
# @return [Integer] Hash code
|
|
959
1121
|
def hash
|
|
960
|
-
[create_organization_result, create_authenticators_result, create_users_result, create_private_keys_result, create_invitations_result, accept_invitation_result, sign_raw_payload_result, create_policy_result, disable_private_key_result, delete_users_result, delete_authenticators_result, delete_invitation_result, delete_organization_result, delete_policy_result, create_user_tag_result, delete_user_tags_result, sign_transaction_result, delete_api_keys_result, create_api_keys_result, create_private_key_tag_result, delete_private_key_tags_result, set_payment_method_result, activate_billing_tier_result, delete_payment_method_result, create_api_only_users_result, update_root_quorum_result, update_user_tag_result, update_private_key_tag_result, create_sub_organization_result, update_allowed_origins_result, create_private_keys_result_v2, update_user_result, update_policy_result, create_sub_organization_result_v3, create_wallet_result, create_wallet_accounts_result, init_user_email_recovery_result, recover_user_result, set_organization_feature_result, remove_organization_feature_result, export_private_key_result, export_wallet_result, create_sub_organization_result_v4, email_auth_result, export_wallet_account_result, init_import_wallet_result, import_wallet_result, init_import_private_key_result, import_private_key_result, create_policies_result, sign_raw_payloads_result, create_read_only_session_result, create_oauth_providers_result, delete_oauth_providers_result, create_sub_organization_result_v5, oauth_result, create_read_write_session_result, create_sub_organization_result_v6, delete_private_keys_result, delete_wallets_result, create_read_write_session_result_v2, delete_sub_organization_result, init_otp_auth_result, otp_auth_result, create_sub_organization_result_v7, update_wallet_result, update_policy_result_v2, init_otp_auth_result_v2, init_otp_result, verify_otp_result, otp_login_result, stamp_login_result, oauth_login_result, update_user_name_result, update_user_email_result, update_user_phone_number_result, init_fiat_on_ramp_result, create_smart_contract_interface_result, delete_smart_contract_interface_result, enable_auth_proxy_result, disable_auth_proxy_result, update_auth_proxy_config_result, create_oauth2_credential_result, update_oauth2_credential_result, delete_oauth2_credential_result, oauth2_authenticate_result, delete_wallet_accounts_result, delete_policies_result, eth_send_raw_transaction_result, create_fiat_on_ramp_credential_result, update_fiat_on_ramp_credential_result, delete_fiat_on_ramp_credential_result, eth_send_transaction_result, upsert_gas_usage_config_result, create_tvc_app_result, create_tvc_deployment_result, create_tvc_manifest_approvals_result, sol_send_transaction_result].hash
|
|
1122
|
+
[create_organization_result, create_authenticators_result, create_users_result, create_private_keys_result, create_invitations_result, accept_invitation_result, sign_raw_payload_result, create_policy_result, disable_private_key_result, delete_users_result, delete_authenticators_result, delete_invitation_result, delete_organization_result, delete_policy_result, create_user_tag_result, delete_user_tags_result, sign_transaction_result, delete_api_keys_result, create_api_keys_result, create_private_key_tag_result, delete_private_key_tags_result, set_payment_method_result, activate_billing_tier_result, delete_payment_method_result, create_api_only_users_result, update_root_quorum_result, update_user_tag_result, update_private_key_tag_result, create_sub_organization_result, update_allowed_origins_result, create_private_keys_result_v2, update_user_result, update_policy_result, create_sub_organization_result_v3, create_wallet_result, create_wallet_accounts_result, init_user_email_recovery_result, recover_user_result, set_organization_feature_result, remove_organization_feature_result, export_private_key_result, export_wallet_result, create_sub_organization_result_v4, email_auth_result, export_wallet_account_result, init_import_wallet_result, import_wallet_result, init_import_private_key_result, import_private_key_result, create_policies_result, sign_raw_payloads_result, create_read_only_session_result, create_oauth_providers_result, delete_oauth_providers_result, create_sub_organization_result_v5, oauth_result, create_read_write_session_result, create_sub_organization_result_v6, delete_private_keys_result, delete_wallets_result, create_read_write_session_result_v2, delete_sub_organization_result, init_otp_auth_result, otp_auth_result, create_sub_organization_result_v7, update_wallet_result, update_policy_result_v2, init_otp_auth_result_v2, init_otp_result, verify_otp_result, otp_login_result, stamp_login_result, oauth_login_result, update_user_name_result, update_user_email_result, update_user_phone_number_result, init_fiat_on_ramp_result, create_smart_contract_interface_result, delete_smart_contract_interface_result, enable_auth_proxy_result, disable_auth_proxy_result, update_auth_proxy_config_result, create_oauth2_credential_result, update_oauth2_credential_result, delete_oauth2_credential_result, oauth2_authenticate_result, delete_wallet_accounts_result, delete_policies_result, eth_send_raw_transaction_result, create_fiat_on_ramp_credential_result, update_fiat_on_ramp_credential_result, delete_fiat_on_ramp_credential_result, eth_send_transaction_result, upsert_gas_usage_config_result, create_tvc_app_result, create_tvc_deployment_result, create_tvc_manifest_approvals_result, sol_send_transaction_result, init_otp_result_v2, update_organization_name_result, create_sub_organization_result_v8, create_oauth_providers_result_v2, create_webhook_endpoint_result, update_webhook_endpoint_result, delete_webhook_endpoint_result, set_ip_allowlist_result, remove_ip_allowlist_result, update_tvc_app_live_deployment_result, delete_tvc_deployment_result, delete_tvc_app_and_deployments_result, restore_tvc_deployment_result, spark_sign_frost_result, spark_prepare_transfer_result, spark_claim_transfer_result, spark_prepare_lightning_receive_result, post_tvc_quorum_key_share_result].hash
|
|
961
1123
|
end
|
|
962
1124
|
|
|
963
1125
|
# Builds the object from hash
|
|
@@ -0,0 +1,284 @@
|
|
|
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 RootUserParamsV5
|
|
15
|
+
# Human-readable name for a User.
|
|
16
|
+
attr_accessor :user_name
|
|
17
|
+
|
|
18
|
+
# The user's email address.
|
|
19
|
+
attr_accessor :user_email
|
|
20
|
+
|
|
21
|
+
# The user's phone number in E.164 format e.g. +13214567890
|
|
22
|
+
attr_accessor :user_phone_number
|
|
23
|
+
|
|
24
|
+
# A list of API Key parameters. This field, if not needed, should be an empty array in your request body.
|
|
25
|
+
attr_accessor :api_keys
|
|
26
|
+
|
|
27
|
+
# A list of Authenticator parameters. This field, if not needed, should be an empty array in your request body.
|
|
28
|
+
attr_accessor :authenticators
|
|
29
|
+
|
|
30
|
+
# A list of Oauth providers. This field, if not needed, should be an empty array in your request body.
|
|
31
|
+
attr_accessor :oauth_providers
|
|
32
|
+
|
|
33
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
34
|
+
def self.attribute_map
|
|
35
|
+
{
|
|
36
|
+
:'user_name' => :'userName',
|
|
37
|
+
:'user_email' => :'userEmail',
|
|
38
|
+
:'user_phone_number' => :'userPhoneNumber',
|
|
39
|
+
:'api_keys' => :'apiKeys',
|
|
40
|
+
:'authenticators' => :'authenticators',
|
|
41
|
+
:'oauth_providers' => :'oauthProviders'
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Attribute type mapping.
|
|
46
|
+
def self.openapi_types
|
|
47
|
+
{
|
|
48
|
+
:'user_name' => :'Object',
|
|
49
|
+
:'user_email' => :'Object',
|
|
50
|
+
:'user_phone_number' => :'Object',
|
|
51
|
+
:'api_keys' => :'Object',
|
|
52
|
+
:'authenticators' => :'Object',
|
|
53
|
+
:'oauth_providers' => :'Object'
|
|
54
|
+
}
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# List of attributes with nullable: true
|
|
58
|
+
def self.openapi_nullable
|
|
59
|
+
Set.new([
|
|
60
|
+
:'user_email',
|
|
61
|
+
:'user_phone_number',
|
|
62
|
+
])
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# Initializes the object
|
|
66
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
67
|
+
def initialize(attributes = {})
|
|
68
|
+
if (!attributes.is_a?(Hash))
|
|
69
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TurnkeyClient::RootUserParamsV5` initialize method"
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
73
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
74
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
75
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TurnkeyClient::RootUserParamsV5`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
76
|
+
end
|
|
77
|
+
h[k.to_sym] = v
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
if attributes.key?(:'user_name')
|
|
81
|
+
self.user_name = attributes[:'user_name']
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
if attributes.key?(:'user_email')
|
|
85
|
+
self.user_email = attributes[:'user_email']
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
if attributes.key?(:'user_phone_number')
|
|
89
|
+
self.user_phone_number = attributes[:'user_phone_number']
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
if attributes.key?(:'api_keys')
|
|
93
|
+
if (value = attributes[:'api_keys']).is_a?(Array)
|
|
94
|
+
self.api_keys = value
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
if attributes.key?(:'authenticators')
|
|
99
|
+
if (value = attributes[:'authenticators']).is_a?(Array)
|
|
100
|
+
self.authenticators = value
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
if attributes.key?(:'oauth_providers')
|
|
105
|
+
if (value = attributes[:'oauth_providers']).is_a?(Array)
|
|
106
|
+
self.oauth_providers = value
|
|
107
|
+
end
|
|
108
|
+
end
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
112
|
+
# @return Array for valid properties with the reasons
|
|
113
|
+
def list_invalid_properties
|
|
114
|
+
invalid_properties = Array.new
|
|
115
|
+
if @user_name.nil?
|
|
116
|
+
invalid_properties.push('invalid value for "user_name", user_name cannot be nil.')
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
if @api_keys.nil?
|
|
120
|
+
invalid_properties.push('invalid value for "api_keys", api_keys cannot be nil.')
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
if @authenticators.nil?
|
|
124
|
+
invalid_properties.push('invalid value for "authenticators", authenticators cannot be nil.')
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
if @oauth_providers.nil?
|
|
128
|
+
invalid_properties.push('invalid value for "oauth_providers", oauth_providers cannot be nil.')
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
invalid_properties
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
# Check to see if the all the properties in the model are valid
|
|
135
|
+
# @return true if the model is valid
|
|
136
|
+
def valid?
|
|
137
|
+
return false if @user_name.nil?
|
|
138
|
+
return false if @api_keys.nil?
|
|
139
|
+
return false if @authenticators.nil?
|
|
140
|
+
return false if @oauth_providers.nil?
|
|
141
|
+
true
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
# Checks equality by comparing each attribute.
|
|
145
|
+
# @param [Object] Object to be compared
|
|
146
|
+
def ==(o)
|
|
147
|
+
return true if self.equal?(o)
|
|
148
|
+
self.class == o.class &&
|
|
149
|
+
user_name == o.user_name &&
|
|
150
|
+
user_email == o.user_email &&
|
|
151
|
+
user_phone_number == o.user_phone_number &&
|
|
152
|
+
api_keys == o.api_keys &&
|
|
153
|
+
authenticators == o.authenticators &&
|
|
154
|
+
oauth_providers == o.oauth_providers
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
# @see the `==` method
|
|
158
|
+
# @param [Object] Object to be compared
|
|
159
|
+
def eql?(o)
|
|
160
|
+
self == o
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
# Calculates hash code according to all attributes.
|
|
164
|
+
# @return [Integer] Hash code
|
|
165
|
+
def hash
|
|
166
|
+
[user_name, user_email, user_phone_number, api_keys, authenticators, oauth_providers].hash
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
# Builds the object from hash
|
|
170
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
171
|
+
# @return [Object] Returns the model itself
|
|
172
|
+
def self.build_from_hash(attributes)
|
|
173
|
+
new.build_from_hash(attributes)
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
# Builds the object from hash
|
|
177
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
178
|
+
# @return [Object] Returns the model itself
|
|
179
|
+
def build_from_hash(attributes)
|
|
180
|
+
return nil unless attributes.is_a?(Hash)
|
|
181
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
182
|
+
if type =~ /\AArray<(.*)>/i
|
|
183
|
+
# check to ensure the input is an array given that the attribute
|
|
184
|
+
# is documented as an array but the input is not
|
|
185
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
186
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
187
|
+
end
|
|
188
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
189
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
190
|
+
elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
191
|
+
self.send("#{key}=", nil)
|
|
192
|
+
end
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
self
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
# Deserializes the data based on type
|
|
199
|
+
# @param string type Data type
|
|
200
|
+
# @param string value Value to be deserialized
|
|
201
|
+
# @return [Object] Deserialized data
|
|
202
|
+
def _deserialize(type, value)
|
|
203
|
+
case type.to_sym
|
|
204
|
+
when :DateTime
|
|
205
|
+
DateTime.parse(value)
|
|
206
|
+
when :Date
|
|
207
|
+
Date.parse(value)
|
|
208
|
+
when :String
|
|
209
|
+
value.to_s
|
|
210
|
+
when :Integer
|
|
211
|
+
value.to_i
|
|
212
|
+
when :Float
|
|
213
|
+
value.to_f
|
|
214
|
+
when :Boolean
|
|
215
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
216
|
+
true
|
|
217
|
+
else
|
|
218
|
+
false
|
|
219
|
+
end
|
|
220
|
+
when :Object
|
|
221
|
+
# generic object (usually a Hash), return directly
|
|
222
|
+
value
|
|
223
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
224
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
225
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
226
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
227
|
+
k_type = Regexp.last_match[:k_type]
|
|
228
|
+
v_type = Regexp.last_match[:v_type]
|
|
229
|
+
{}.tap do |hash|
|
|
230
|
+
value.each do |k, v|
|
|
231
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
232
|
+
end
|
|
233
|
+
end
|
|
234
|
+
else # model
|
|
235
|
+
TurnkeyClient.const_get(type).build_from_hash(value)
|
|
236
|
+
end
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
# Returns the string representation of the object
|
|
240
|
+
# @return [String] String presentation of the object
|
|
241
|
+
def to_s
|
|
242
|
+
to_hash.to_s
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
246
|
+
# @return [Hash] Returns the object in the form of hash
|
|
247
|
+
def to_body
|
|
248
|
+
to_hash
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
# Returns the object in the form of hash
|
|
252
|
+
# @return [Hash] Returns the object in the form of hash
|
|
253
|
+
def to_hash
|
|
254
|
+
hash = {}
|
|
255
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
256
|
+
value = self.send(attr)
|
|
257
|
+
if value.nil?
|
|
258
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
259
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
hash[param] = _to_hash(value)
|
|
263
|
+
end
|
|
264
|
+
hash
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
# Outputs non-array value in the form of hash
|
|
268
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
269
|
+
# @param [Object] value Any valid value
|
|
270
|
+
# @return [Hash] Returns the value in the form of hash
|
|
271
|
+
def _to_hash(value)
|
|
272
|
+
if value.is_a?(Array)
|
|
273
|
+
value.compact.map { |v| _to_hash(v) }
|
|
274
|
+
elsif value.is_a?(Hash)
|
|
275
|
+
{}.tap do |hash|
|
|
276
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
277
|
+
end
|
|
278
|
+
elsif value.respond_to? :to_hash
|
|
279
|
+
value.to_hash
|
|
280
|
+
else
|
|
281
|
+
value
|
|
282
|
+
end
|
|
283
|
+
end end
|
|
284
|
+
end
|