turnkey_client 0.0.1 → 0.0.3
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 +7 -7
- data/lib/turnkey_client/api/api_keys_api.rb +13 -13
- data/lib/turnkey_client/api/authenticators_api.rb +13 -13
- data/lib/turnkey_client/api/consensus_api.rb +7 -7
- data/lib/turnkey_client/api/features_api.rb +7 -7
- data/lib/turnkey_client/api/invitations_api.rb +7 -7
- data/lib/turnkey_client/api/organizations_api.rb +21 -21
- data/lib/turnkey_client/api/policies_api.rb +16 -16
- data/lib/turnkey_client/api/private_key_tags_api.rb +68 -10
- data/lib/turnkey_client/api/private_keys_api.rb +129 -13
- data/lib/turnkey_client/api/sessions_api.rb +4 -4
- data/lib/turnkey_client/api/signing_api.rb +7 -7
- data/lib/turnkey_client/api/user_auth_api.rb +4 -4
- data/lib/turnkey_client/api/user_recovery_api.rb +7 -7
- data/lib/turnkey_client/api/user_tags_api.rb +68 -10
- data/lib/turnkey_client/api/users_api.rb +38 -38
- data/lib/turnkey_client/api/wallets_api.rb +138 -22
- data/lib/turnkey_client/api_client.rb +1 -1
- data/lib/turnkey_client/api_error.rb +1 -1
- data/lib/turnkey_client/configuration.rb +1 -1
- data/lib/turnkey_client/models/{v1_accept_invitation_intent_v2.rb → accept_invitation_intent.rb} +4 -4
- data/lib/turnkey_client/models/{v1_accept_invitation_intent.rb → accept_invitation_intent_v2.rb} +4 -4
- data/lib/turnkey_client/models/{v1_accept_invitation_result.rb → accept_invitation_result.rb} +4 -4
- data/lib/turnkey_client/models/{v1_access_type.rb → access_type.rb} +4 -4
- data/lib/turnkey_client/models/{v1_activate_billing_tier_intent.rb → activate_billing_tier_intent.rb} +4 -4
- data/lib/turnkey_client/models/{v1_activate_billing_tier_result.rb → activate_billing_tier_result.rb} +4 -4
- data/lib/turnkey_client/models/{v1_activity.rb → activity.rb} +4 -4
- data/lib/turnkey_client/models/{v1_activity_response.rb → activity_response.rb} +4 -4
- data/lib/turnkey_client/models/{v1_activity_status.rb → activity_status.rb} +4 -4
- data/lib/turnkey_client/models/{v1_activity_type.rb → activity_type.rb} +8 -4
- data/lib/turnkey_client/models/{externaldatav1_address.rb → activity_v1_address.rb} +4 -4
- data/lib/turnkey_client/models/{v1_address_format.rb → address_format.rb} +5 -4
- data/lib/turnkey_client/models/{v1_api_key.rb → api_key.rb} +4 -4
- data/lib/turnkey_client/models/{v1_api_key_params.rb → api_key_params.rb} +4 -4
- data/lib/turnkey_client/models/{v1_api_only_user_params.rb → api_only_user_params.rb} +4 -4
- data/lib/turnkey_client/models/{v1_reject_activity_intent.rb → approve_activity_intent.rb} +4 -4
- data/lib/turnkey_client/models/{v1_create_api_keys_request.rb → approve_activity_request.rb} +6 -6
- data/lib/turnkey_client/models/{v1_attestation.rb → attestation.rb} +4 -4
- data/lib/turnkey_client/models/{v1_authenticator.rb → authenticator.rb} +4 -4
- data/lib/turnkey_client/models/{v1_authenticator_attestation_response.rb → authenticator_attestation_response.rb} +4 -4
- data/lib/turnkey_client/models/{v1_authenticator_params.rb → authenticator_params.rb} +4 -4
- data/lib/turnkey_client/models/{v1_authenticator_params_v2.rb → authenticator_params_v2.rb} +4 -4
- data/lib/turnkey_client/models/{v1_authenticator_transport.rb → authenticator_transport.rb} +4 -4
- data/lib/turnkey_client/models/{v1_create_api_keys_intent.rb → create_api_keys_intent.rb} +4 -4
- data/lib/turnkey_client/models/{v1_create_users_request.rb → create_api_keys_request.rb} +6 -6
- data/lib/turnkey_client/models/{v1_create_api_keys_result.rb → create_api_keys_result.rb} +4 -4
- data/lib/turnkey_client/models/{v1_create_api_only_users_intent.rb → create_api_only_users_intent.rb} +4 -4
- data/lib/turnkey_client/models/{v1_create_api_only_users_result.rb → create_api_only_users_result.rb} +4 -4
- data/lib/turnkey_client/models/{v1_create_authenticators_intent_v2.rb → create_authenticators_intent.rb} +4 -4
- data/lib/turnkey_client/models/{v1_create_authenticators_intent.rb → create_authenticators_intent_v2.rb} +4 -4
- data/lib/turnkey_client/models/{v1_create_authenticators_request.rb → create_authenticators_request.rb} +4 -4
- data/lib/turnkey_client/models/{v1_create_authenticators_result.rb → create_authenticators_result.rb} +4 -4
- data/lib/turnkey_client/models/{v1_create_invitations_intent.rb → create_invitations_intent.rb} +4 -4
- data/lib/turnkey_client/models/{v1_approve_activity_request.rb → create_invitations_request.rb} +6 -6
- data/lib/turnkey_client/models/{v1_create_invitations_result.rb → create_invitations_result.rb} +4 -4
- data/lib/turnkey_client/models/{v1_create_organization_intent_v2.rb → create_organization_intent.rb} +4 -4
- data/lib/turnkey_client/models/{v1_create_organization_intent.rb → create_organization_intent_v2.rb} +4 -4
- data/lib/turnkey_client/models/{v1_get_organization_request.rb → create_organization_result.rb} +4 -4
- data/lib/turnkey_client/models/{v1_create_policy_intent_v2.rb → create_policy_intent.rb} +4 -4
- data/lib/turnkey_client/models/{v1_create_policy_intent.rb → create_policy_intent_v2.rb} +4 -4
- data/lib/turnkey_client/models/{v1_create_policy_intent_v3.rb → create_policy_intent_v3.rb} +4 -4
- data/lib/turnkey_client/models/{v1_create_policy_request.rb → create_policy_request.rb} +4 -4
- data/lib/turnkey_client/models/{v1_delete_policy_intent.rb → create_policy_result.rb} +4 -4
- data/lib/turnkey_client/models/{v1_create_private_key_tag_intent.rb → create_private_key_tag_intent.rb} +4 -4
- data/lib/turnkey_client/models/{v1_create_private_keys_request.rb → create_private_key_tag_request.rb} +6 -6
- data/lib/turnkey_client/models/{v1_create_private_key_tag_result.rb → create_private_key_tag_result.rb} +4 -4
- data/lib/turnkey_client/models/{v1_get_private_keys_response.rb → create_private_keys_intent.rb} +4 -4
- data/lib/turnkey_client/models/{v1_create_private_keys_intent.rb → create_private_keys_intent_v2.rb} +4 -4
- data/lib/turnkey_client/models/{v1_sign_transaction_request.rb → create_private_keys_request.rb} +6 -6
- data/lib/turnkey_client/models/{v1_create_private_keys_result.rb → create_private_keys_result.rb} +4 -4
- data/lib/turnkey_client/models/{v1_create_private_keys_result_v2.rb → create_private_keys_result_v2.rb} +4 -4
- data/lib/turnkey_client/models/{v1_create_sub_organization_intent.rb → create_sub_organization_intent.rb} +4 -4
- data/lib/turnkey_client/models/{v1_create_sub_organization_intent_v2.rb → create_sub_organization_intent_v2.rb} +4 -4
- data/lib/turnkey_client/models/{v1_create_sub_organization_intent_v3.rb → create_sub_organization_intent_v3.rb} +4 -4
- data/lib/turnkey_client/models/{v1_create_sub_organization_intent_v4.rb → create_sub_organization_intent_v4.rb} +4 -4
- data/lib/turnkey_client/models/{v1_export_wallet_account_request.rb → create_sub_organization_request.rb} +6 -6
- data/lib/turnkey_client/models/{v1_create_sub_organization_result_v4.rb → create_sub_organization_result.rb} +13 -11
- data/lib/turnkey_client/models/{v1_create_sub_organization_result_v3.rb → create_sub_organization_result_v3.rb} +19 -8
- data/lib/turnkey_client/models/{v1_create_sub_organization_result.rb → create_sub_organization_result_v4.rb} +28 -8
- data/lib/turnkey_client/models/{v1_create_user_tag_intent.rb → create_user_tag_intent.rb} +4 -4
- data/lib/turnkey_client/models/{v1_recover_user_request.rb → create_user_tag_request.rb} +6 -6
- data/lib/turnkey_client/models/{v1_create_user_tag_result.rb → create_user_tag_result.rb} +4 -4
- data/lib/turnkey_client/models/{v1_get_users_response.rb → create_users_intent.rb} +4 -4
- data/lib/turnkey_client/models/{v1_create_users_intent.rb → create_users_intent_v2.rb} +4 -4
- data/lib/turnkey_client/models/create_users_request.rb +289 -0
- data/lib/turnkey_client/models/{v1_create_users_result.rb → create_users_result.rb} +4 -4
- data/lib/turnkey_client/models/{v1_create_wallet_accounts_intent.rb → create_wallet_accounts_intent.rb} +4 -4
- data/lib/turnkey_client/models/create_wallet_accounts_request.rb +289 -0
- data/lib/turnkey_client/models/{v1_create_wallet_accounts_result.rb → create_wallet_accounts_result.rb} +4 -4
- data/lib/turnkey_client/models/{v1_create_wallet_intent.rb → create_wallet_intent.rb} +4 -4
- data/lib/turnkey_client/models/{v1_update_user_request.rb → create_wallet_request.rb} +6 -6
- data/lib/turnkey_client/models/{v1_create_wallet_result.rb → create_wallet_result.rb} +5 -5
- data/lib/turnkey_client/models/{v1_cred_props_authentication_extensions_client_outputs.rb → cred_props_authentication_extensions_client_outputs.rb} +4 -4
- data/lib/turnkey_client/models/{v1_credential_type.rb → credential_type.rb} +4 -4
- data/lib/turnkey_client/models/{v1_curve.rb → curve.rb} +4 -4
- data/lib/turnkey_client/models/{immutableactivityv1_address.rb → data_v1_address.rb} +4 -4
- data/lib/turnkey_client/models/{v1_delete_api_keys_intent.rb → delete_api_keys_intent.rb} +4 -4
- data/lib/turnkey_client/models/{v1_delete_api_keys_request.rb → delete_api_keys_request.rb} +4 -4
- data/lib/turnkey_client/models/{v1_delete_api_keys_result.rb → delete_api_keys_result.rb} +4 -4
- data/lib/turnkey_client/models/{v1_delete_authenticators_intent.rb → delete_authenticators_intent.rb} +4 -4
- data/lib/turnkey_client/models/{v1_create_api_only_users_request.rb → delete_authenticators_request.rb} +6 -6
- data/lib/turnkey_client/models/{v1_delete_authenticators_result.rb → delete_authenticators_result.rb} +4 -4
- data/lib/turnkey_client/models/{v1_delete_invitation_intent.rb → delete_invitation_intent.rb} +4 -4
- data/lib/turnkey_client/models/{v1_reject_activity_request.rb → delete_invitation_request.rb} +6 -6
- data/lib/turnkey_client/models/{v1_delete_invitation_result.rb → delete_invitation_result.rb} +4 -4
- data/lib/turnkey_client/models/{v1_get_private_keys_request.rb → delete_organization_intent.rb} +4 -4
- data/lib/turnkey_client/models/delete_organization_result.rb +212 -0
- data/lib/turnkey_client/models/{v1_delete_payment_method_intent.rb → delete_payment_method_intent.rb} +4 -4
- data/lib/turnkey_client/models/{v1_delete_payment_method_result.rb → delete_payment_method_result.rb} +4 -4
- data/lib/turnkey_client/models/{v1_update_policy_result.rb → delete_policy_intent.rb} +4 -4
- data/lib/turnkey_client/models/delete_policy_request.rb +289 -0
- data/lib/turnkey_client/models/{v1_delete_policy_result.rb → delete_policy_result.rb} +4 -4
- data/lib/turnkey_client/models/{v1_delete_private_key_tags_intent.rb → delete_private_key_tags_intent.rb} +4 -4
- data/lib/turnkey_client/models/delete_private_key_tags_request.rb +289 -0
- data/lib/turnkey_client/models/{v1_delete_private_key_tags_result.rb → delete_private_key_tags_result.rb} +4 -4
- data/lib/turnkey_client/models/{v1_delete_user_tags_intent.rb → delete_user_tags_intent.rb} +4 -4
- data/lib/turnkey_client/models/{v1_export_wallet_request.rb → delete_user_tags_request.rb} +6 -6
- data/lib/turnkey_client/models/{v1_delete_user_tags_result.rb → delete_user_tags_result.rb} +4 -4
- data/lib/turnkey_client/models/{v1_delete_users_intent.rb → delete_users_intent.rb} +4 -4
- data/lib/turnkey_client/models/{v1_email_auth_request.rb → delete_users_request.rb} +6 -6
- data/lib/turnkey_client/models/{v1_delete_users_result.rb → delete_users_result.rb} +4 -4
- data/lib/turnkey_client/models/{v1_disable_private_key_intent.rb → disable_private_key_intent.rb} +4 -4
- data/lib/turnkey_client/models/{v1_disable_private_key_result.rb → disable_private_key_result.rb} +4 -4
- data/lib/turnkey_client/models/{v1_effect.rb → effect.rb} +4 -4
- data/lib/turnkey_client/models/{v1_email_auth_intent.rb → email_auth_intent.rb} +4 -4
- data/lib/turnkey_client/models/email_auth_request.rb +289 -0
- data/lib/turnkey_client/models/{v1_email_auth_result.rb → email_auth_result.rb} +4 -4
- data/lib/turnkey_client/models/email_customization_params.rb +247 -0
- data/lib/turnkey_client/models/{v1_export_private_key_intent.rb → export_private_key_intent.rb} +4 -4
- data/lib/turnkey_client/models/{v1_sign_raw_payload_request.rb → export_private_key_request.rb} +6 -6
- data/lib/turnkey_client/models/{v1_export_private_key_result.rb → export_private_key_result.rb} +4 -4
- data/lib/turnkey_client/models/{v1_export_wallet_account_intent.rb → export_wallet_account_intent.rb} +4 -4
- data/lib/turnkey_client/models/{v1_create_invitations_request.rb → export_wallet_account_request.rb} +6 -6
- data/lib/turnkey_client/models/{v1_export_wallet_account_result.rb → export_wallet_account_result.rb} +4 -4
- data/lib/turnkey_client/models/{v1_export_wallet_intent.rb → export_wallet_intent.rb} +4 -4
- data/lib/turnkey_client/models/export_wallet_request.rb +289 -0
- data/lib/turnkey_client/models/{v1_export_wallet_result.rb → export_wallet_result.rb} +4 -4
- data/lib/turnkey_client/models/{externaldatav1_credential.rb → external_data_v1_credential.rb} +4 -4
- data/lib/turnkey_client/models/{externaldatav1_timestamp.rb → external_data_v1_timestamp.rb} +4 -4
- data/lib/turnkey_client/models/{v1_feature.rb → feature.rb} +4 -4
- data/lib/turnkey_client/models/{v1_feature_name.rb → feature_name.rb} +5 -4
- data/lib/turnkey_client/models/{v1_get_activities_request.rb → get_activities_request.rb} +4 -4
- data/lib/turnkey_client/models/{v1_get_activities_response.rb → get_activities_response.rb} +4 -4
- data/lib/turnkey_client/models/{v1_get_activity_request.rb → get_activity_request.rb} +4 -4
- data/lib/turnkey_client/models/{v1_get_api_key_request.rb → get_api_key_request.rb} +4 -4
- data/lib/turnkey_client/models/{v1_get_api_key_response.rb → get_api_key_response.rb} +4 -4
- data/lib/turnkey_client/models/{v1_get_api_keys_request.rb → get_api_keys_request.rb} +4 -4
- data/lib/turnkey_client/models/{v1_get_api_keys_response.rb → get_api_keys_response.rb} +4 -4
- data/lib/turnkey_client/models/{v1_get_authenticator_request.rb → get_authenticator_request.rb} +4 -4
- data/lib/turnkey_client/models/{v1_get_authenticator_response.rb → get_authenticator_response.rb} +4 -4
- data/lib/turnkey_client/models/{v1_get_authenticators_request.rb → get_authenticators_request.rb} +4 -4
- data/lib/turnkey_client/models/{v1_get_authenticators_response.rb → get_authenticators_response.rb} +4 -4
- data/lib/turnkey_client/models/{v1_get_policies_request.rb → get_policies_request.rb} +4 -4
- data/lib/turnkey_client/models/{v1_get_policies_response.rb → get_policies_response.rb} +4 -4
- data/lib/turnkey_client/models/{v1_get_policy_request.rb → get_policy_request.rb} +4 -4
- data/lib/turnkey_client/models/{v1_get_policy_response.rb → get_policy_response.rb} +4 -4
- data/lib/turnkey_client/models/{v1_get_private_key_request.rb → get_private_key_request.rb} +4 -4
- data/lib/turnkey_client/models/{v1_get_private_key_response.rb → get_private_key_response.rb} +4 -4
- data/lib/turnkey_client/models/{v1_list_user_tags_request.rb → get_private_keys_request.rb} +4 -4
- data/lib/turnkey_client/models/{v1_create_private_keys_intent_v2.rb → get_private_keys_response.rb} +4 -4
- data/lib/turnkey_client/models/get_sub_org_ids_request.rb +232 -0
- data/lib/turnkey_client/models/get_sub_org_ids_response.rb +214 -0
- data/lib/turnkey_client/models/{v1_get_user_request.rb → get_user_request.rb} +4 -4
- data/lib/turnkey_client/models/{v1_get_user_response.rb → get_user_response.rb} +4 -4
- data/lib/turnkey_client/models/get_users_request.rb +212 -0
- data/lib/turnkey_client/models/{v1_create_users_intent_v2.rb → get_users_response.rb} +4 -4
- data/lib/turnkey_client/models/{v1_get_wallet_accounts_request.rb → get_wallet_accounts_request.rb} +4 -4
- data/lib/turnkey_client/models/{v1_get_wallet_accounts_response.rb → get_wallet_accounts_response.rb} +4 -4
- data/lib/turnkey_client/models/{v1_get_wallet_request.rb → get_wallet_request.rb} +4 -4
- data/lib/turnkey_client/models/{v1_get_wallet_response.rb → get_wallet_response.rb} +4 -4
- data/lib/turnkey_client/models/{v1_get_users_request.rb → get_wallets_request.rb} +4 -4
- data/lib/turnkey_client/models/{v1_get_wallets_response.rb → get_wallets_response.rb} +4 -4
- data/lib/turnkey_client/models/{v1_get_whoami_request.rb → get_whoami_request.rb} +4 -4
- data/lib/turnkey_client/models/{v1_get_whoami_response.rb → get_whoami_response.rb} +4 -4
- data/lib/turnkey_client/models/{v1_hash_function.rb → hash_function.rb} +4 -4
- data/lib/turnkey_client/models/import_private_key_intent.rb +273 -0
- data/lib/turnkey_client/models/import_private_key_request.rb +289 -0
- data/lib/turnkey_client/models/import_private_key_result.rb +229 -0
- data/lib/turnkey_client/models/import_wallet_intent.rb +259 -0
- data/lib/turnkey_client/models/import_wallet_request.rb +289 -0
- data/lib/turnkey_client/models/import_wallet_result.rb +229 -0
- data/lib/turnkey_client/models/init_import_private_key_intent.rb +212 -0
- data/lib/turnkey_client/models/init_import_private_key_request.rb +289 -0
- data/lib/turnkey_client/models/{v1_delete_organization_intent.rb → init_import_private_key_result.rb} +15 -15
- data/lib/turnkey_client/models/init_import_wallet_intent.rb +212 -0
- data/lib/turnkey_client/models/init_import_wallet_request.rb +289 -0
- data/lib/turnkey_client/models/init_import_wallet_result.rb +212 -0
- data/lib/turnkey_client/models/{v1_init_user_email_recovery_intent.rb → init_user_email_recovery_intent.rb} +17 -8
- data/lib/turnkey_client/models/{v1_create_private_key_tag_request.rb → init_user_email_recovery_request.rb} +6 -6
- data/lib/turnkey_client/models/{v1_init_user_email_recovery_result.rb → init_user_email_recovery_result.rb} +4 -4
- data/lib/turnkey_client/models/{v1_intent.rb → intent.rb} +44 -8
- data/lib/turnkey_client/models/{v1_invitation_params.rb → invitation_params.rb} +4 -4
- data/lib/turnkey_client/models/list_private_key_tags_request.rb +212 -0
- data/lib/turnkey_client/models/{v1_list_private_key_tags_response.rb → list_private_key_tags_response.rb} +4 -4
- data/lib/turnkey_client/models/{v1_get_wallets_request.rb → list_user_tags_request.rb} +4 -4
- data/lib/turnkey_client/models/{v1_list_user_tags_response.rb → list_user_tags_response.rb} +4 -4
- data/lib/turnkey_client/models/{v1_mnemonic_language.rb → mnemonic_language.rb} +4 -4
- data/lib/turnkey_client/models/{v1_operator.rb → operator.rb} +4 -4
- data/lib/turnkey_client/models/{v1_pagination.rb → pagination.rb} +4 -4
- data/lib/turnkey_client/models/{v1_path_format.rb → path_format.rb} +4 -4
- data/lib/turnkey_client/models/{v1_payload_encoding.rb → payload_encoding.rb} +4 -4
- data/lib/turnkey_client/models/{v1_policy.rb → policy.rb} +4 -4
- data/lib/turnkey_client/models/{v1_private_key.rb → private_key.rb} +23 -8
- data/lib/turnkey_client/models/{v1_private_key_params.rb → private_key_params.rb} +4 -4
- data/lib/turnkey_client/models/{v1_private_key_result.rb → private_key_result.rb} +4 -4
- data/lib/turnkey_client/models/{v1_public_key_credential_with_attestation.rb → public_key_credential_with_attestation.rb} +4 -4
- data/lib/turnkey_client/models/{v1_recover_user_intent.rb → recover_user_intent.rb} +4 -4
- data/lib/turnkey_client/models/recover_user_request.rb +289 -0
- data/lib/turnkey_client/models/{v1_recover_user_result.rb → recover_user_result.rb} +4 -4
- data/lib/turnkey_client/models/{v1_approve_activity_intent.rb → reject_activity_intent.rb} +4 -4
- data/lib/turnkey_client/models/{v1_create_wallet_request.rb → reject_activity_request.rb} +6 -6
- data/lib/turnkey_client/models/{v1_remove_organization_feature_intent.rb → remove_organization_feature_intent.rb} +4 -4
- data/lib/turnkey_client/models/{v1_remove_organization_feature_request.rb → remove_organization_feature_request.rb} +4 -4
- data/lib/turnkey_client/models/{v1_remove_organization_feature_result.rb → remove_organization_feature_result.rb} +4 -4
- data/lib/turnkey_client/models/{v1_result.rb → result.rb} +44 -8
- data/lib/turnkey_client/models/{v1_root_user_params.rb → root_user_params.rb} +4 -4
- data/lib/turnkey_client/models/{v1_selector.rb → selector.rb} +4 -4
- data/lib/turnkey_client/models/{v1_selector_v2.rb → selector_v2.rb} +4 -4
- data/lib/turnkey_client/models/{v1_set_organization_feature_intent.rb → set_organization_feature_intent.rb} +4 -4
- data/lib/turnkey_client/models/{v1_create_wallet_accounts_request.rb → set_organization_feature_request.rb} +6 -6
- data/lib/turnkey_client/models/{v1_set_organization_feature_result.rb → set_organization_feature_result.rb} +4 -4
- data/lib/turnkey_client/models/{v1_set_payment_method_intent.rb → set_payment_method_intent.rb} +4 -4
- data/lib/turnkey_client/models/{v1_set_payment_method_intent_v2.rb → set_payment_method_intent_v2.rb} +4 -4
- data/lib/turnkey_client/models/{v1_set_payment_method_result.rb → set_payment_method_result.rb} +4 -4
- data/lib/turnkey_client/models/{v1_sign_raw_payload_intent.rb → sign_raw_payload_intent.rb} +4 -4
- data/lib/turnkey_client/models/{v1_sign_raw_payload_intent_v2.rb → sign_raw_payload_intent_v2.rb} +4 -4
- data/lib/turnkey_client/models/{v1_delete_policy_request.rb → sign_raw_payload_request.rb} +6 -6
- data/lib/turnkey_client/models/{v1_sign_raw_payload_result.rb → sign_raw_payload_result.rb} +4 -4
- data/lib/turnkey_client/models/{v1_sign_transaction_intent.rb → sign_transaction_intent.rb} +4 -4
- data/lib/turnkey_client/models/{v1_sign_transaction_intent_v2.rb → sign_transaction_intent_v2.rb} +4 -4
- data/lib/turnkey_client/models/{v1_create_user_tag_request.rb → sign_transaction_request.rb} +6 -6
- data/lib/turnkey_client/models/{v1_sign_transaction_result.rb → sign_transaction_result.rb} +4 -4
- data/lib/turnkey_client/models/{v1_simple_client_extension_results.rb → simple_client_extension_results.rb} +4 -4
- data/lib/turnkey_client/models/{v1_tag_type.rb → tag_type.rb} +4 -4
- data/lib/turnkey_client/models/{v1_transaction_type.rb → transaction_type.rb} +4 -4
- data/lib/turnkey_client/models/{v1_update_allowed_origins_intent.rb → update_allowed_origins_intent.rb} +4 -4
- data/lib/turnkey_client/models/{v1_update_allowed_origins_result.rb → update_allowed_origins_result.rb} +4 -4
- data/lib/turnkey_client/models/{v1_update_policy_intent.rb → update_policy_intent.rb} +4 -4
- data/lib/turnkey_client/models/{v1_update_policy_request.rb → update_policy_request.rb} +4 -4
- data/lib/turnkey_client/models/{v1_create_policy_result.rb → update_policy_result.rb} +4 -4
- data/lib/turnkey_client/models/{v1_update_private_key_tag_intent.rb → update_private_key_tag_intent.rb} +4 -4
- data/lib/turnkey_client/models/{v1_update_private_key_tag_request.rb → update_private_key_tag_request.rb} +4 -4
- data/lib/turnkey_client/models/{v1_update_private_key_tag_result.rb → update_private_key_tag_result.rb} +4 -4
- data/lib/turnkey_client/models/{v1_update_root_quorum_intent.rb → update_root_quorum_intent.rb} +4 -4
- data/lib/turnkey_client/models/{v1_update_root_quorum_request.rb → update_root_quorum_request.rb} +4 -4
- data/lib/turnkey_client/models/{v1_update_root_quorum_result.rb → update_root_quorum_result.rb} +4 -4
- data/lib/turnkey_client/models/{v1_update_user_intent.rb → update_user_intent.rb} +4 -4
- data/lib/turnkey_client/models/update_user_request.rb +289 -0
- data/lib/turnkey_client/models/{v1_update_user_result.rb → update_user_result.rb} +4 -4
- data/lib/turnkey_client/models/{v1_update_user_tag_intent.rb → update_user_tag_intent.rb} +4 -4
- data/lib/turnkey_client/models/{v1_update_user_tag_request.rb → update_user_tag_request.rb} +4 -4
- data/lib/turnkey_client/models/{v1_update_user_tag_result.rb → update_user_tag_result.rb} +4 -4
- data/lib/turnkey_client/models/{v1_user.rb → user.rb} +4 -4
- data/lib/turnkey_client/models/{v1_user_params.rb → user_params.rb} +4 -4
- data/lib/turnkey_client/models/{v1_user_params_v2.rb → user_params_v2.rb} +4 -4
- data/lib/turnkey_client/models/{datav1_tag.rb → v1_tag.rb} +4 -4
- data/lib/turnkey_client/models/{v1_vote.rb → vote.rb} +4 -4
- data/lib/turnkey_client/models/{v1_wallet.rb → wallet.rb} +23 -8
- data/lib/turnkey_client/models/{v1_wallet_account.rb → wallet_account.rb} +4 -4
- data/lib/turnkey_client/models/{v1_wallet_account_params.rb → wallet_account_params.rb} +4 -4
- data/lib/turnkey_client/models/{v1_wallet_params.rb → wallet_params.rb} +4 -4
- data/lib/turnkey_client/models/{v1_wallet_result.rb → wallet_result.rb} +4 -4
- data/lib/turnkey_client/version.rb +2 -2
- data/lib/turnkey_client.rb +243 -238
- data/turnkey_client-0.0.2.gem +0 -0
- data/turnkey_client.gemspec +1 -1
- metadata +245 -239
- data/lib/turnkey_client/api/public_api_service_api.rb +0 -66
- data/lib/turnkey_client/models/externaldatav1_quorum.rb +0 -229
- data/lib/turnkey_client/models/protobuf_any.rb +0 -201
- data/lib/turnkey_client/models/rpc_status.rb +0 -226
- data/lib/turnkey_client/models/v1_create_organization_result.rb +0 -212
- data/lib/turnkey_client/models/v1_create_sub_organization_request.rb +0 -289
- data/lib/turnkey_client/models/v1_delete_authenticators_request.rb +0 -289
- data/lib/turnkey_client/models/v1_delete_invitation_request.rb +0 -289
- data/lib/turnkey_client/models/v1_delete_organization_result.rb +0 -212
- data/lib/turnkey_client/models/v1_email_customization.rb +0 -233
- data/lib/turnkey_client/models/v1_export_private_key_request.rb +0 -289
- data/lib/turnkey_client/models/v1_get_organization_response.rb +0 -211
- data/lib/turnkey_client/models/v1_init_user_email_recovery_request.rb +0 -289
- data/lib/turnkey_client/models/v1_invitation.rb +0 -330
- data/lib/turnkey_client/models/v1_invitation_status.rb +0 -29
- data/lib/turnkey_client/models/v1_list_private_key_tags_request.rb +0 -212
- data/lib/turnkey_client/models/v1_noop_codegen_anchor_response.rb +0 -211
- data/lib/turnkey_client/models/v1_organization_data.rb +0 -301
- data/lib/turnkey_client/models/v1_set_organization_feature_request.rb +0 -289
- data/lib/turnkey_client/models/v1_web_authn_stamp.rb +0 -257
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
OpenAPI spec version: 1.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version: 3.0.
|
|
9
|
+
Swagger Codegen version: 3.0.54
|
|
10
10
|
=end
|
|
11
11
|
|
|
12
12
|
require 'date'
|
|
13
13
|
|
|
14
14
|
module TurnkeyClient
|
|
15
|
-
class
|
|
15
|
+
class Operator
|
|
16
16
|
EQUAL = 'OPERATOR_EQUAL'.freeze
|
|
17
17
|
MORE_THAN = 'OPERATOR_MORE_THAN'.freeze
|
|
18
18
|
MORE_THAN_OR_EQUAL = 'OPERATOR_MORE_THAN_OR_EQUAL'.freeze
|
|
@@ -29,8 +29,8 @@ module TurnkeyClient
|
|
|
29
29
|
# @param [String] The enum value in the form of the string
|
|
30
30
|
# @return [String] The enum value
|
|
31
31
|
def build_from_hash(value)
|
|
32
|
-
constantValues =
|
|
33
|
-
raise "Invalid ENUM value #{value} for class #
|
|
32
|
+
constantValues = Operator.constants.select { |c| Operator::const_get(c) == value }
|
|
33
|
+
raise "Invalid ENUM value #{value} for class #Operator" if constantValues.empty?
|
|
34
34
|
value
|
|
35
35
|
end
|
|
36
36
|
end
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
OpenAPI spec version: 1.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version: 3.0.
|
|
9
|
+
Swagger Codegen version: 3.0.54
|
|
10
10
|
=end
|
|
11
11
|
|
|
12
12
|
require 'date'
|
|
13
13
|
|
|
14
14
|
module TurnkeyClient
|
|
15
|
-
class
|
|
15
|
+
class Pagination
|
|
16
16
|
# A limit of the number of object to be returned, between 1 and 100. Defaults to 10.
|
|
17
17
|
attr_accessor :limit
|
|
18
18
|
|
|
@@ -50,13 +50,13 @@ module TurnkeyClient
|
|
|
50
50
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
51
51
|
def initialize(attributes = {})
|
|
52
52
|
if (!attributes.is_a?(Hash))
|
|
53
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `TurnkeyClient::
|
|
53
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TurnkeyClient::Pagination` initialize method"
|
|
54
54
|
end
|
|
55
55
|
|
|
56
56
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
57
57
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
58
58
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
59
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TurnkeyClient::
|
|
59
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TurnkeyClient::Pagination`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
60
60
|
end
|
|
61
61
|
h[k.to_sym] = v
|
|
62
62
|
}
|
|
@@ -6,21 +6,21 @@
|
|
|
6
6
|
OpenAPI spec version: 1.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version: 3.0.
|
|
9
|
+
Swagger Codegen version: 3.0.54
|
|
10
10
|
=end
|
|
11
11
|
|
|
12
12
|
require 'date'
|
|
13
13
|
|
|
14
14
|
module TurnkeyClient
|
|
15
|
-
class
|
|
15
|
+
class PathFormat
|
|
16
16
|
PATH_FORMAT_BIP32 = 'PATH_FORMAT_BIP32'.freeze
|
|
17
17
|
|
|
18
18
|
# Builds the enum from string
|
|
19
19
|
# @param [String] The enum value in the form of the string
|
|
20
20
|
# @return [String] The enum value
|
|
21
21
|
def build_from_hash(value)
|
|
22
|
-
constantValues =
|
|
23
|
-
raise "Invalid ENUM value #{value} for class #
|
|
22
|
+
constantValues = PathFormat.constants.select { |c| PathFormat::const_get(c) == value }
|
|
23
|
+
raise "Invalid ENUM value #{value} for class #PathFormat" if constantValues.empty?
|
|
24
24
|
value
|
|
25
25
|
end
|
|
26
26
|
end
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
OpenAPI spec version: 1.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version: 3.0.
|
|
9
|
+
Swagger Codegen version: 3.0.54
|
|
10
10
|
=end
|
|
11
11
|
|
|
12
12
|
require 'date'
|
|
13
13
|
|
|
14
14
|
module TurnkeyClient
|
|
15
|
-
class
|
|
15
|
+
class PayloadEncoding
|
|
16
16
|
HEXADECIMAL = 'PAYLOAD_ENCODING_HEXADECIMAL'.freeze
|
|
17
17
|
TEXT_UTF8 = 'PAYLOAD_ENCODING_TEXT_UTF8'.freeze
|
|
18
18
|
|
|
@@ -20,8 +20,8 @@ module TurnkeyClient
|
|
|
20
20
|
# @param [String] The enum value in the form of the string
|
|
21
21
|
# @return [String] The enum value
|
|
22
22
|
def build_from_hash(value)
|
|
23
|
-
constantValues =
|
|
24
|
-
raise "Invalid ENUM value #{value} for class #
|
|
23
|
+
constantValues = PayloadEncoding.constants.select { |c| PayloadEncoding::const_get(c) == value }
|
|
24
|
+
raise "Invalid ENUM value #{value} for class #PayloadEncoding" if constantValues.empty?
|
|
25
25
|
value
|
|
26
26
|
end
|
|
27
27
|
end
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
OpenAPI spec version: 1.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version: 3.0.
|
|
9
|
+
Swagger Codegen version: 3.0.54
|
|
10
10
|
=end
|
|
11
11
|
|
|
12
12
|
require 'date'
|
|
13
13
|
|
|
14
14
|
module TurnkeyClient
|
|
15
|
-
class
|
|
15
|
+
class Policy
|
|
16
16
|
# Unique identifier for a given Policy.
|
|
17
17
|
attr_accessor :policy_id
|
|
18
18
|
|
|
@@ -72,13 +72,13 @@ module TurnkeyClient
|
|
|
72
72
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
73
73
|
def initialize(attributes = {})
|
|
74
74
|
if (!attributes.is_a?(Hash))
|
|
75
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `TurnkeyClient::
|
|
75
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TurnkeyClient::Policy` initialize method"
|
|
76
76
|
end
|
|
77
77
|
|
|
78
78
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
79
79
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
80
80
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
81
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TurnkeyClient::
|
|
81
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TurnkeyClient::Policy`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
82
82
|
end
|
|
83
83
|
h[k.to_sym] = v
|
|
84
84
|
}
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
OpenAPI spec version: 1.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version: 3.0.
|
|
9
|
+
Swagger Codegen version: 3.0.54
|
|
10
10
|
=end
|
|
11
11
|
|
|
12
12
|
require 'date'
|
|
13
13
|
|
|
14
14
|
module TurnkeyClient
|
|
15
|
-
class
|
|
15
|
+
class PrivateKey
|
|
16
16
|
# Unique identifier for a given Private Key.
|
|
17
17
|
attr_accessor :private_key_id
|
|
18
18
|
|
|
@@ -37,6 +37,9 @@ module TurnkeyClient
|
|
|
37
37
|
# True when a given Private Key is exported, false otherwise.
|
|
38
38
|
attr_accessor :exported
|
|
39
39
|
|
|
40
|
+
# True when a given Private Key is imported, false otherwise.
|
|
41
|
+
attr_accessor :imported
|
|
42
|
+
|
|
40
43
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
41
44
|
def self.attribute_map
|
|
42
45
|
{
|
|
@@ -48,7 +51,8 @@ module TurnkeyClient
|
|
|
48
51
|
:'private_key_tags' => :'privateKeyTags',
|
|
49
52
|
:'created_at' => :'createdAt',
|
|
50
53
|
:'updated_at' => :'updatedAt',
|
|
51
|
-
:'exported' => :'exported'
|
|
54
|
+
:'exported' => :'exported',
|
|
55
|
+
:'imported' => :'imported'
|
|
52
56
|
}
|
|
53
57
|
end
|
|
54
58
|
|
|
@@ -63,7 +67,8 @@ module TurnkeyClient
|
|
|
63
67
|
:'private_key_tags' => :'Object',
|
|
64
68
|
:'created_at' => :'Object',
|
|
65
69
|
:'updated_at' => :'Object',
|
|
66
|
-
:'exported' => :'Object'
|
|
70
|
+
:'exported' => :'Object',
|
|
71
|
+
:'imported' => :'Object'
|
|
67
72
|
}
|
|
68
73
|
end
|
|
69
74
|
|
|
@@ -77,13 +82,13 @@ module TurnkeyClient
|
|
|
77
82
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
78
83
|
def initialize(attributes = {})
|
|
79
84
|
if (!attributes.is_a?(Hash))
|
|
80
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `TurnkeyClient::
|
|
85
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TurnkeyClient::PrivateKey` initialize method"
|
|
81
86
|
end
|
|
82
87
|
|
|
83
88
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
84
89
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
85
90
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
86
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TurnkeyClient::
|
|
91
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TurnkeyClient::PrivateKey`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
87
92
|
end
|
|
88
93
|
h[k.to_sym] = v
|
|
89
94
|
}
|
|
@@ -127,6 +132,10 @@ module TurnkeyClient
|
|
|
127
132
|
if attributes.key?(:'exported')
|
|
128
133
|
self.exported = attributes[:'exported']
|
|
129
134
|
end
|
|
135
|
+
|
|
136
|
+
if attributes.key?(:'imported')
|
|
137
|
+
self.imported = attributes[:'imported']
|
|
138
|
+
end
|
|
130
139
|
end
|
|
131
140
|
|
|
132
141
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -169,6 +178,10 @@ module TurnkeyClient
|
|
|
169
178
|
invalid_properties.push('invalid value for "exported", exported cannot be nil.')
|
|
170
179
|
end
|
|
171
180
|
|
|
181
|
+
if @imported.nil?
|
|
182
|
+
invalid_properties.push('invalid value for "imported", imported cannot be nil.')
|
|
183
|
+
end
|
|
184
|
+
|
|
172
185
|
invalid_properties
|
|
173
186
|
end
|
|
174
187
|
|
|
@@ -184,6 +197,7 @@ module TurnkeyClient
|
|
|
184
197
|
return false if @created_at.nil?
|
|
185
198
|
return false if @updated_at.nil?
|
|
186
199
|
return false if @exported.nil?
|
|
200
|
+
return false if @imported.nil?
|
|
187
201
|
true
|
|
188
202
|
end
|
|
189
203
|
|
|
@@ -200,7 +214,8 @@ module TurnkeyClient
|
|
|
200
214
|
private_key_tags == o.private_key_tags &&
|
|
201
215
|
created_at == o.created_at &&
|
|
202
216
|
updated_at == o.updated_at &&
|
|
203
|
-
exported == o.exported
|
|
217
|
+
exported == o.exported &&
|
|
218
|
+
imported == o.imported
|
|
204
219
|
end
|
|
205
220
|
|
|
206
221
|
# @see the `==` method
|
|
@@ -212,7 +227,7 @@ module TurnkeyClient
|
|
|
212
227
|
# Calculates hash code according to all attributes.
|
|
213
228
|
# @return [Integer] Hash code
|
|
214
229
|
def hash
|
|
215
|
-
[private_key_id, public_key, private_key_name, curve, addresses, private_key_tags, created_at, updated_at, exported].hash
|
|
230
|
+
[private_key_id, public_key, private_key_name, curve, addresses, private_key_tags, created_at, updated_at, exported, imported].hash
|
|
216
231
|
end
|
|
217
232
|
|
|
218
233
|
# Builds the object from hash
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
OpenAPI spec version: 1.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version: 3.0.
|
|
9
|
+
Swagger Codegen version: 3.0.54
|
|
10
10
|
=end
|
|
11
11
|
|
|
12
12
|
require 'date'
|
|
13
13
|
|
|
14
14
|
module TurnkeyClient
|
|
15
|
-
class
|
|
15
|
+
class PrivateKeyParams
|
|
16
16
|
# Human-readable name for a Private Key.
|
|
17
17
|
attr_accessor :private_key_name
|
|
18
18
|
|
|
@@ -54,13 +54,13 @@ module TurnkeyClient
|
|
|
54
54
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
55
55
|
def initialize(attributes = {})
|
|
56
56
|
if (!attributes.is_a?(Hash))
|
|
57
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `TurnkeyClient::
|
|
57
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TurnkeyClient::PrivateKeyParams` initialize method"
|
|
58
58
|
end
|
|
59
59
|
|
|
60
60
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
61
61
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
62
62
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
63
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TurnkeyClient::
|
|
63
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TurnkeyClient::PrivateKeyParams`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
64
64
|
end
|
|
65
65
|
h[k.to_sym] = v
|
|
66
66
|
}
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
OpenAPI spec version: 1.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version: 3.0.
|
|
9
|
+
Swagger Codegen version: 3.0.54
|
|
10
10
|
=end
|
|
11
11
|
|
|
12
12
|
require 'date'
|
|
13
13
|
|
|
14
14
|
module TurnkeyClient
|
|
15
|
-
class
|
|
15
|
+
class PrivateKeyResult
|
|
16
16
|
attr_accessor :private_key_id
|
|
17
17
|
|
|
18
18
|
attr_accessor :addresses
|
|
@@ -43,13 +43,13 @@ module TurnkeyClient
|
|
|
43
43
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
44
44
|
def initialize(attributes = {})
|
|
45
45
|
if (!attributes.is_a?(Hash))
|
|
46
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `TurnkeyClient::
|
|
46
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TurnkeyClient::PrivateKeyResult` initialize method"
|
|
47
47
|
end
|
|
48
48
|
|
|
49
49
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
50
50
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
51
51
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
52
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TurnkeyClient::
|
|
52
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TurnkeyClient::PrivateKeyResult`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
53
53
|
end
|
|
54
54
|
h[k.to_sym] = v
|
|
55
55
|
}
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
OpenAPI spec version: 1.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version: 3.0.
|
|
9
|
+
Swagger Codegen version: 3.0.54
|
|
10
10
|
=end
|
|
11
11
|
|
|
12
12
|
require 'date'
|
|
13
13
|
|
|
14
14
|
module TurnkeyClient
|
|
15
|
-
class
|
|
15
|
+
class PublicKeyCredentialWithAttestation
|
|
16
16
|
attr_accessor :id
|
|
17
17
|
|
|
18
18
|
attr_accessor :type
|
|
@@ -82,13 +82,13 @@ module TurnkeyClient
|
|
|
82
82
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
83
83
|
def initialize(attributes = {})
|
|
84
84
|
if (!attributes.is_a?(Hash))
|
|
85
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `TurnkeyClient::
|
|
85
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TurnkeyClient::PublicKeyCredentialWithAttestation` initialize method"
|
|
86
86
|
end
|
|
87
87
|
|
|
88
88
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
89
89
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
90
90
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
91
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TurnkeyClient::
|
|
91
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TurnkeyClient::PublicKeyCredentialWithAttestation`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
92
92
|
end
|
|
93
93
|
h[k.to_sym] = v
|
|
94
94
|
}
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
OpenAPI spec version: 1.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version: 3.0.
|
|
9
|
+
Swagger Codegen version: 3.0.54
|
|
10
10
|
=end
|
|
11
11
|
|
|
12
12
|
require 'date'
|
|
13
13
|
|
|
14
14
|
module TurnkeyClient
|
|
15
|
-
class
|
|
15
|
+
class RecoverUserIntent
|
|
16
16
|
attr_accessor :authenticator
|
|
17
17
|
|
|
18
18
|
# Unique identifier for the user performing recovery.
|
|
@@ -44,13 +44,13 @@ module TurnkeyClient
|
|
|
44
44
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
45
45
|
def initialize(attributes = {})
|
|
46
46
|
if (!attributes.is_a?(Hash))
|
|
47
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `TurnkeyClient::
|
|
47
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TurnkeyClient::RecoverUserIntent` initialize method"
|
|
48
48
|
end
|
|
49
49
|
|
|
50
50
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
51
51
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
52
52
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
53
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `TurnkeyClient::
|
|
53
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TurnkeyClient::RecoverUserIntent`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
54
54
|
end
|
|
55
55
|
h[k.to_sym] = v
|
|
56
56
|
}
|
|
@@ -0,0 +1,289 @@
|
|
|
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
|
+
Swagger Codegen version: 3.0.54
|
|
10
|
+
=end
|
|
11
|
+
|
|
12
|
+
require 'date'
|
|
13
|
+
|
|
14
|
+
module TurnkeyClient
|
|
15
|
+
class RecoverUserRequest
|
|
16
|
+
attr_accessor :type
|
|
17
|
+
|
|
18
|
+
# Timestamp (in milliseconds) of the request, used to verify liveness of user requests.
|
|
19
|
+
attr_accessor :timestamp_ms
|
|
20
|
+
|
|
21
|
+
# Unique identifier for a given Organization.
|
|
22
|
+
attr_accessor :organization_id
|
|
23
|
+
|
|
24
|
+
attr_accessor :parameters
|
|
25
|
+
|
|
26
|
+
class EnumAttributeValidator
|
|
27
|
+
attr_reader :datatype
|
|
28
|
+
attr_reader :allowable_values
|
|
29
|
+
|
|
30
|
+
def initialize(datatype, allowable_values)
|
|
31
|
+
@allowable_values = allowable_values.map do |value|
|
|
32
|
+
case datatype.to_s
|
|
33
|
+
when /Integer/i
|
|
34
|
+
value.to_i
|
|
35
|
+
when /Float/i
|
|
36
|
+
value.to_f
|
|
37
|
+
else
|
|
38
|
+
value
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
def valid?(value)
|
|
44
|
+
!value || allowable_values.include?(value)
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
49
|
+
def self.attribute_map
|
|
50
|
+
{
|
|
51
|
+
:'type' => :'type',
|
|
52
|
+
:'timestamp_ms' => :'timestampMs',
|
|
53
|
+
:'organization_id' => :'organizationId',
|
|
54
|
+
:'parameters' => :'parameters'
|
|
55
|
+
}
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Attribute type mapping.
|
|
59
|
+
def self.openapi_types
|
|
60
|
+
{
|
|
61
|
+
:'type' => :'Object',
|
|
62
|
+
:'timestamp_ms' => :'Object',
|
|
63
|
+
:'organization_id' => :'Object',
|
|
64
|
+
:'parameters' => :'Object'
|
|
65
|
+
}
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# List of attributes with nullable: true
|
|
69
|
+
def self.openapi_nullable
|
|
70
|
+
Set.new([
|
|
71
|
+
])
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# Initializes the object
|
|
75
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
76
|
+
def initialize(attributes = {})
|
|
77
|
+
if (!attributes.is_a?(Hash))
|
|
78
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TurnkeyClient::RecoverUserRequest` initialize method"
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
82
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
83
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
84
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TurnkeyClient::RecoverUserRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
85
|
+
end
|
|
86
|
+
h[k.to_sym] = v
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
if attributes.key?(:'type')
|
|
90
|
+
self.type = attributes[:'type']
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
if attributes.key?(:'timestamp_ms')
|
|
94
|
+
self.timestamp_ms = attributes[:'timestamp_ms']
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
if attributes.key?(:'organization_id')
|
|
98
|
+
self.organization_id = attributes[:'organization_id']
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
if attributes.key?(:'parameters')
|
|
102
|
+
self.parameters = attributes[:'parameters']
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
107
|
+
# @return Array for valid properties with the reasons
|
|
108
|
+
def list_invalid_properties
|
|
109
|
+
invalid_properties = Array.new
|
|
110
|
+
if @type.nil?
|
|
111
|
+
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
if @timestamp_ms.nil?
|
|
115
|
+
invalid_properties.push('invalid value for "timestamp_ms", timestamp_ms cannot be nil.')
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
if @organization_id.nil?
|
|
119
|
+
invalid_properties.push('invalid value for "organization_id", organization_id cannot be nil.')
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
if @parameters.nil?
|
|
123
|
+
invalid_properties.push('invalid value for "parameters", parameters cannot be nil.')
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
invalid_properties
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# Check to see if the all the properties in the model are valid
|
|
130
|
+
# @return true if the model is valid
|
|
131
|
+
def valid?
|
|
132
|
+
return false if @type.nil?
|
|
133
|
+
type_validator = EnumAttributeValidator.new('Object', ['ACTIVITY_TYPE_RECOVER_USER'])
|
|
134
|
+
return false unless type_validator.valid?(@type)
|
|
135
|
+
return false if @timestamp_ms.nil?
|
|
136
|
+
return false if @organization_id.nil?
|
|
137
|
+
return false if @parameters.nil?
|
|
138
|
+
true
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
142
|
+
# @param [Object] type Object to be assigned
|
|
143
|
+
def type=(type)
|
|
144
|
+
validator = EnumAttributeValidator.new('Object', ['ACTIVITY_TYPE_RECOVER_USER'])
|
|
145
|
+
unless validator.valid?(type)
|
|
146
|
+
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
|
147
|
+
end
|
|
148
|
+
@type = type
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
# Checks equality by comparing each attribute.
|
|
152
|
+
# @param [Object] Object to be compared
|
|
153
|
+
def ==(o)
|
|
154
|
+
return true if self.equal?(o)
|
|
155
|
+
self.class == o.class &&
|
|
156
|
+
type == o.type &&
|
|
157
|
+
timestamp_ms == o.timestamp_ms &&
|
|
158
|
+
organization_id == o.organization_id &&
|
|
159
|
+
parameters == o.parameters
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
# @see the `==` method
|
|
163
|
+
# @param [Object] Object to be compared
|
|
164
|
+
def eql?(o)
|
|
165
|
+
self == o
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
# Calculates hash code according to all attributes.
|
|
169
|
+
# @return [Integer] Hash code
|
|
170
|
+
def hash
|
|
171
|
+
[type, timestamp_ms, organization_id, parameters].hash
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
# Builds the object from hash
|
|
175
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
176
|
+
# @return [Object] Returns the model itself
|
|
177
|
+
def self.build_from_hash(attributes)
|
|
178
|
+
new.build_from_hash(attributes)
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
# Builds the object from hash
|
|
182
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
183
|
+
# @return [Object] Returns the model itself
|
|
184
|
+
def build_from_hash(attributes)
|
|
185
|
+
return nil unless attributes.is_a?(Hash)
|
|
186
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
187
|
+
if type =~ /\AArray<(.*)>/i
|
|
188
|
+
# check to ensure the input is an array given that the attribute
|
|
189
|
+
# is documented as an array but the input is not
|
|
190
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
191
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
192
|
+
end
|
|
193
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
194
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
195
|
+
elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
196
|
+
self.send("#{key}=", nil)
|
|
197
|
+
end
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
self
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
# Deserializes the data based on type
|
|
204
|
+
# @param string type Data type
|
|
205
|
+
# @param string value Value to be deserialized
|
|
206
|
+
# @return [Object] Deserialized data
|
|
207
|
+
def _deserialize(type, value)
|
|
208
|
+
case type.to_sym
|
|
209
|
+
when :DateTime
|
|
210
|
+
DateTime.parse(value)
|
|
211
|
+
when :Date
|
|
212
|
+
Date.parse(value)
|
|
213
|
+
when :String
|
|
214
|
+
value.to_s
|
|
215
|
+
when :Integer
|
|
216
|
+
value.to_i
|
|
217
|
+
when :Float
|
|
218
|
+
value.to_f
|
|
219
|
+
when :Boolean
|
|
220
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
221
|
+
true
|
|
222
|
+
else
|
|
223
|
+
false
|
|
224
|
+
end
|
|
225
|
+
when :Object
|
|
226
|
+
# generic object (usually a Hash), return directly
|
|
227
|
+
value
|
|
228
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
229
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
230
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
231
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
232
|
+
k_type = Regexp.last_match[:k_type]
|
|
233
|
+
v_type = Regexp.last_match[:v_type]
|
|
234
|
+
{}.tap do |hash|
|
|
235
|
+
value.each do |k, v|
|
|
236
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
237
|
+
end
|
|
238
|
+
end
|
|
239
|
+
else # model
|
|
240
|
+
TurnkeyClient.const_get(type).build_from_hash(value)
|
|
241
|
+
end
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
# Returns the string representation of the object
|
|
245
|
+
# @return [String] String presentation of the object
|
|
246
|
+
def to_s
|
|
247
|
+
to_hash.to_s
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
251
|
+
# @return [Hash] Returns the object in the form of hash
|
|
252
|
+
def to_body
|
|
253
|
+
to_hash
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
# Returns the object in the form of hash
|
|
257
|
+
# @return [Hash] Returns the object in the form of hash
|
|
258
|
+
def to_hash
|
|
259
|
+
hash = {}
|
|
260
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
261
|
+
value = self.send(attr)
|
|
262
|
+
if value.nil?
|
|
263
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
264
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
hash[param] = _to_hash(value)
|
|
268
|
+
end
|
|
269
|
+
hash
|
|
270
|
+
end
|
|
271
|
+
|
|
272
|
+
# Outputs non-array value in the form of hash
|
|
273
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
274
|
+
# @param [Object] value Any valid value
|
|
275
|
+
# @return [Hash] Returns the value in the form of hash
|
|
276
|
+
def _to_hash(value)
|
|
277
|
+
if value.is_a?(Array)
|
|
278
|
+
value.compact.map { |v| _to_hash(v) }
|
|
279
|
+
elsif value.is_a?(Hash)
|
|
280
|
+
{}.tap do |hash|
|
|
281
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
282
|
+
end
|
|
283
|
+
elsif value.respond_to? :to_hash
|
|
284
|
+
value.to_hash
|
|
285
|
+
else
|
|
286
|
+
value
|
|
287
|
+
end
|
|
288
|
+
end end
|
|
289
|
+
end
|