workos 10.4.0 → 10.6.0
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/.github/workflows/ci.yml +1 -1
- data/.github/workflows/docs.yml +2 -2
- data/.github/workflows/lint.yml +1 -1
- data/.github/workflows/release-please.yml +4 -4
- data/.github/workflows/release.yml +1 -1
- data/.last-synced-sha +1 -1
- data/.oagen-manifest.json +454 -2
- data/.release-please-manifest.json +1 -1
- data/.ruby-version +1 -1
- data/CHANGELOG.md +326 -0
- data/Gemfile.lock +2 -2
- data/README.md +2 -2
- data/lib/workos/admin_portal/generate_link.rb +3 -0
- data/lib/workos/admin_portal/revoke_link.rb +22 -0
- data/lib/workos/admin_portal.rb +27 -0
- data/lib/workos/agents/agent_blueprint.rb +3 -0
- data/lib/workos/agents/agent_blueprint_invocable_as.rb +18 -0
- data/lib/workos/agents/agent_blueprints_create_request.rb +3 -0
- data/lib/workos/agents/agent_blueprints_create_request_invocable_as.rb +18 -0
- data/lib/workos/agents/agent_blueprints_update_request.rb +3 -0
- data/lib/workos/agents/agent_blueprints_update_request_invocable_as.rb +18 -0
- data/lib/workos/agents/agent_registration.rb +3 -0
- data/lib/workos/agents/list_metadata.rb +22 -0
- data/lib/workos/agents.rb +25 -0
- data/lib/workos/api_keys/api_key_data_integration_vended_credential.rb +28 -0
- data/lib/workos/authorization/patch_group_role_assignments.rb +22 -0
- data/lib/workos/authorization/user_role_assignment_source.rb +5 -2
- data/lib/workos/authorization/user_role_assignment_source_group.rb +7 -0
- data/lib/workos/authorization.rb +26 -0
- data/lib/workos/base_client.rb +3 -0
- data/lib/workos/connect/connect_application.rb +3 -0
- data/lib/workos/connect/create_oauth_application.rb +3 -0
- data/lib/workos/connect/update_oauth_application.rb +5 -2
- data/lib/workos/connect.rb +6 -0
- data/lib/workos/directory_sync/directory_sync_rate_limit_error.rb +25 -0
- data/lib/workos/directory_sync/directory_sync_response.rb +18 -0
- data/lib/workos/directory_sync.rb +19 -0
- data/lib/workos/events.rb +3 -11
- data/lib/workos/feature_flags/flag_created_data.rb +1 -46
- data/lib/workos/feature_flags/flag_deleted_data.rb +1 -1
- data/lib/workos/feature_flags/flag_rule.rb +49 -0
- data/lib/workos/feature_flags/flag_rule_updated_data.rb +1 -1
- data/lib/workos/feature_flags/flag_target.rb +52 -0
- data/lib/workos/feature_flags/flag_target_with_rule_id.rb +46 -0
- data/lib/workos/feature_flags/flag_target_with_value_type.rb +49 -0
- data/lib/workos/feature_flags/flag_updated_context_previous_attribute.rb +1 -12
- data/lib/workos/feature_flags/flag_updated_context_previous_attribute_data.rb +1 -25
- data/lib/workos/feature_flags/flag_updated_context_previous_attribute_data_owner.rb +7 -0
- data/lib/workos/feature_flags/flag_updated_data.rb +1 -1
- data/lib/workos/groups/patch_group_memberships.rb +22 -0
- data/lib/workos/groups.rb +28 -0
- data/lib/workos/inflections.rb +30 -0
- data/lib/workos/organizations/it_contact_list_list_metadata.rb +22 -0
- data/lib/workos/organizations/organization_authentication_methods_required_oauth_error_body.rb +22 -0
- data/lib/workos/organizations/organization_connected_account_import_error_body.rb +22 -0
- data/lib/workos/organizations/organization_membership_not_found_oauth_error_body.rb +22 -0
- data/lib/workos/organizations/organization_not_found_oauth_error_body.rb +22 -0
- data/lib/workos/organizations/organization_selection_required_error_body.rb +22 -0
- data/lib/workos/organizations/organization_selection_required_error_body_with_organization.rb +7 -0
- data/lib/workos/organizations/organization_selection_required_error_body_with_organizations.rb +25 -0
- data/lib/workos/pipes/connected_account.rb +11 -2
- data/lib/workos/pipes/connected_account_input.rb +6 -0
- data/lib/workos/pipes/connected_account_warning.rb +22 -0
- data/lib/workos/pipes/create_connected_account.rb +40 -0
- data/lib/workos/pipes/create_organization_connected_account.rb +43 -0
- data/lib/workos/pipes/data_integration_authorize_url_response.rb +9 -2
- data/lib/workos/pipes/data_integration_credentials_response.rb +1 -1
- data/lib/workos/pipes/data_integration_finish_connection_response.rb +18 -0
- data/lib/workos/pipes/{data_integration_credentials_response_credential.rb → data_integration_vended_credential.rb} +9 -3
- data/lib/workos/pipes/data_integrations_create_api_key_connection_request.rb +37 -0
- data/lib/workos/pipes/data_integrations_create_client_credentials_connection_request.rb +43 -0
- data/lib/workos/pipes/data_integrations_finish_connection_request.rb +25 -0
- data/lib/workos/pipes/data_integrations_get_data_integration_authorize_url_request.rb +17 -2
- data/lib/workos/pipes/data_integrations_list_response_data_connected_account.rb +10 -1
- data/lib/workos/pipes/data_integrations_list_response_data_connected_account_warning.rb +7 -0
- data/lib/workos/pipes/data_integrations_upsert_api_key_request.rb +14 -5
- data/lib/workos/pipes/data_integrations_upsert_client_credentials_request.rb +14 -5
- data/lib/workos/pipes/organization_connected_account.rb +40 -0
- data/lib/workos/pipes.rb +216 -20
- data/lib/workos/shared/access_denied_oauth_error_body.rb +22 -0
- data/lib/workos/shared/account_selection_required_error_body.rb +7 -0
- data/lib/workos/shared/agent_blueprint_created_data.rb +3 -0
- data/lib/workos/shared/agent_blueprint_created_data_invocable_as.rb +18 -0
- data/lib/workos/shared/agent_blueprint_updated_data.rb +40 -1
- data/lib/workos/shared/agent_blueprint_updated_data_invocable_as.rb +18 -0
- data/lib/workos/shared/already_claimed_error_body.rb +22 -0
- data/lib/workos/shared/application_consent_required_error_body.rb +22 -0
- data/lib/workos/shared/auth_method_mismatch_error_body.rb +7 -0
- data/lib/workos/shared/authorization_pending_oauth_error_body.rb +22 -0
- data/lib/workos/shared/authorization_url_not_found_error_body.rb +22 -0
- data/lib/workos/shared/authorization_url_request_error_body.rb +22 -0
- data/lib/workos/shared/client_credentials_data_integration_vended_credential.rb +40 -0
- data/lib/workos/shared/code_challenge_not_found_error_body.rb +22 -0
- data/lib/workos/shared/connect_application_oauth.rb +3 -0
- data/lib/workos/shared/connected_account_limit_reached_error_body.rb +22 -0
- data/lib/workos/shared/daily_quota_exceeded_error_body.rb +22 -0
- data/lib/workos/shared/data_integration_access_token_response_with_access_token.rb +22 -0
- data/lib/workos/shared/data_integration_access_token_response_with_access_token_access_token.rb +7 -0
- data/lib/workos/shared/data_integration_access_token_response_with_error.rb +22 -0
- data/lib/workos/shared/data_integration_credentials_response_with_credential.rb +22 -0
- data/lib/workos/shared/data_integration_credentials_response_with_error.rb +22 -0
- data/lib/workos/shared/entity_not_found_error_body.rb +22 -0
- data/lib/workos/shared/error_body.rb +7 -0
- data/lib/workos/shared/error_body_with_code.rb +7 -0
- data/lib/workos/shared/error_body_with_code_errors.rb +25 -0
- data/lib/workos/shared/error_body_with_code_field_error.rb +22 -0
- data/lib/workos/shared/error_body_with_code_field_errors.rb +22 -0
- data/lib/workos/shared/error_body_with_code_instance_path_error.rb +18 -0
- data/lib/workos/shared/error_body_with_code_instance_path_errors.rb +25 -0
- data/lib/workos/shared/error_body_with_code_status_code.rb +25 -0
- data/lib/workos/shared/error_body_with_constraints_property_error.rb +22 -0
- data/lib/workos/shared/error_body_with_constraints_property_errors.rb +22 -0
- data/lib/workos/shared/error_body_with_error.rb +22 -0
- data/lib/workos/shared/error_body_with_error_message_list.rb +22 -0
- data/lib/workos/shared/error_body_with_message_or_message_list.rb +18 -0
- data/lib/workos/shared/expired_token_oauth_error_body.rb +22 -0
- data/lib/workos/shared/external_auth_session_already_completed_error_body.rb +22 -0
- data/lib/workos/shared/external_id_already_used_error_body.rb +22 -0
- data/lib/workos/shared/extra_attributes_required_oauth_error_body.rb +22 -0
- data/lib/workos/shared/feature_flags_flag_created.rb +34 -0
- data/lib/workos/shared/feature_flags_flag_created_context.rb +22 -0
- data/lib/workos/shared/feature_flags_flag_created_context_actor.rb +25 -0
- data/lib/workos/shared/feature_flags_flag_created_data.rb +52 -0
- data/lib/workos/shared/feature_flags_flag_created_data_owner.rb +7 -0
- data/lib/workos/shared/feature_flags_flag_deleted.rb +34 -0
- data/lib/workos/shared/feature_flags_flag_deleted_context.rb +22 -0
- data/lib/workos/shared/feature_flags_flag_deleted_context_actor.rb +25 -0
- data/lib/workos/shared/feature_flags_flag_deleted_data.rb +7 -0
- data/lib/workos/shared/feature_flags_flag_deleted_data_owner.rb +7 -0
- data/lib/workos/shared/feature_flags_flag_rule_created.rb +34 -0
- data/lib/workos/shared/feature_flags_flag_rule_created_context.rb +22 -0
- data/lib/workos/shared/feature_flags_flag_rule_created_context_actor.rb +25 -0
- data/lib/workos/shared/feature_flags_flag_rule_deleted.rb +34 -0
- data/lib/workos/shared/feature_flags_flag_rule_deleted_context.rb +22 -0
- data/lib/workos/shared/feature_flags_flag_rule_deleted_context_actor.rb +25 -0
- data/lib/workos/shared/feature_flags_flag_rule_updated.rb +34 -0
- data/lib/workos/shared/feature_flags_flag_rule_updated_context.rb +25 -0
- data/lib/workos/shared/feature_flags_flag_rule_updated_context_actor.rb +25 -0
- data/lib/workos/shared/feature_flags_flag_rule_updated_context_previous_attribute.rb +18 -0
- data/lib/workos/shared/feature_flags_flag_rule_updated_context_previous_attribute_data.rb +18 -0
- data/lib/workos/shared/feature_flags_flag_target_created.rb +34 -0
- data/lib/workos/shared/feature_flags_flag_target_created_context.rb +22 -0
- data/lib/workos/shared/feature_flags_flag_target_created_context_actor.rb +25 -0
- data/lib/workos/shared/feature_flags_flag_target_deleted.rb +34 -0
- data/lib/workos/shared/feature_flags_flag_target_deleted_context.rb +22 -0
- data/lib/workos/shared/feature_flags_flag_target_deleted_context_actor.rb +25 -0
- data/lib/workos/shared/feature_flags_flag_updated.rb +34 -0
- data/lib/workos/shared/feature_flags_flag_updated_context.rb +25 -0
- data/lib/workos/shared/feature_flags_flag_updated_context_actor.rb +25 -0
- data/lib/workos/shared/feature_flags_flag_updated_context_previous_attribute.rb +18 -0
- data/lib/workos/shared/feature_flags_flag_updated_context_previous_attribute_data.rb +34 -0
- data/lib/workos/shared/feature_flags_flag_updated_context_previous_attribute_data_owner.rb +7 -0
- data/lib/workos/shared/feature_flags_flag_updated_data.rb +7 -0
- data/lib/workos/shared/feature_flags_flag_updated_data_owner.rb +7 -0
- data/lib/workos/shared/idp_metadata_fetch_failed_error_body.rb +22 -0
- data/lib/workos/shared/invalid_client_oauth_error_body.rb +22 -0
- data/lib/workos/shared/invalid_connection_oauth_error_body.rb +22 -0
- data/lib/workos/shared/invalid_credentials_error_body.rb +22 -0
- data/lib/workos/shared/invalid_email_error_body.rb +22 -0
- data/lib/workos/shared/invalid_grant_oauth_error_body.rb +22 -0
- data/lib/workos/shared/invalid_idp_sso_url_error_body.rb +22 -0
- data/lib/workos/shared/invalid_link_authorization_code_oauth_error_body.rb +22 -0
- data/lib/workos/shared/invalid_locale_error_body.rb +22 -0
- data/lib/workos/shared/invalid_metadata_error_body.rb +22 -0
- data/lib/workos/shared/invalid_one_time_code_error_body.rb +22 -0
- data/lib/workos/shared/invalid_organization_id_error_body.rb +22 -0
- data/lib/workos/shared/invalid_password_hash_error_body.rb +22 -0
- data/lib/workos/shared/invalid_pending_authentication_token_error_body.rb +22 -0
- data/lib/workos/shared/invalid_profile_oauth_error_body.rb +22 -0
- data/lib/workos/shared/invalid_refresh_token_error_body.rb +22 -0
- data/lib/workos/shared/invalid_request_oauth_error_body.rb +22 -0
- data/lib/workos/shared/invalid_request_parameters_error_body.rb +22 -0
- data/lib/workos/shared/invalid_request_parameters_error_body_with_errors.rb +25 -0
- data/lib/workos/shared/invalid_role_error_body.rb +22 -0
- data/lib/workos/shared/invalid_url_error_body.rb +22 -0
- data/lib/workos/shared/mfa_challenge_error_body.rb +22 -0
- data/lib/workos/shared/mfa_enrollment_error_body.rb +22 -0
- data/lib/workos/shared/mfa_enrollment_oauth_error_body.rb +22 -0
- data/lib/workos/shared/multiple_roles_not_enabled_error_body.rb +22 -0
- data/lib/workos/shared/must_use_sso_for_selected_organization_message_error_body.rb +18 -0
- data/lib/workos/shared/oauth_data_integration_vended_credential.rb +40 -0
- data/lib/workos/shared/oauth_error_body.rb +22 -0
- data/lib/workos/shared/one_time_code_expired_error_body.rb +22 -0
- data/lib/workos/shared/one_time_code_previously_used_error_body.rb +22 -0
- data/lib/workos/shared/one_time_code_too_many_attempts_error_body.rb +22 -0
- data/lib/workos/shared/passkey_progressive_enrollment_error_body.rb +22 -0
- data/lib/workos/shared/phone_number_required_error_body.rb +22 -0
- data/lib/workos/shared/pipe_connected_account.rb +6 -0
- data/lib/workos/shared/pkce_not_supported_oauth_error_body.rb +22 -0
- data/lib/workos/shared/policy_denied_error_body.rb +22 -0
- data/lib/workos/shared/radar_challenge_error_body.rb +22 -0
- data/lib/workos/shared/radar_sign_up_challenge_error_body.rb +22 -0
- data/lib/workos/shared/radar_sms_sign_in_challenge_error_body.rb +22 -0
- data/lib/workos/shared/rate_limit_exceeded_error_body_with_retry_after.rb +25 -0
- data/lib/workos/shared/sign_up_not_allowed_oauth_error_body.rb +22 -0
- data/lib/workos/shared/slow_down_oauth_error_body.rb +22 -0
- data/lib/workos/shared/sms_challenge_quota_reached_error_body.rb +22 -0
- data/lib/workos/shared/sms_challenge_rate_limited_error_body.rb +22 -0
- data/lib/workos/shared/sso_required_oauth_error_body_with_connection_ids_list_email_pending_authentication_token.rb +31 -0
- data/lib/workos/shared/sub_resource_scoped_role_not_allowed_error_body_with_role_slug.rb +25 -0
- data/lib/workos/shared/token_too_big_oauth_error_body.rb +22 -0
- data/lib/workos/shared/too_many_failed_verification_attempts_error_body_with_retry_after.rb +25 -0
- data/lib/workos/shared/too_many_requests_oauth_error_body.rb +22 -0
- data/lib/workos/shared/unauthorized_client_oauth_error_body.rb +22 -0
- data/lib/workos/shared/unauthorized_error_body.rb +18 -0
- data/lib/workos/shared/update_audit_logs_retention_with_retention_period.rb +18 -0
- data/lib/workos/shared/update_audit_logs_retention_with_retention_period_in_days.rb +26 -0
- data/lib/workos/shared/update_user_organization_membership_with_role_slug.rb +18 -0
- data/lib/workos/shared/update_user_organization_membership_with_role_slugs.rb +18 -0
- data/lib/workos/shared/verification_id_required_error_body.rb +22 -0
- data/lib/workos/sso/connection_could_not_be_verified_error_body.rb +22 -0
- data/lib/workos/sso/connection_creation_conflict_error_body.rb +22 -0
- data/lib/workos/sso/connection_creation_not_found_error_body.rb +22 -0
- data/lib/workos/sso/connection_finish_error_body.rb +22 -0
- data/lib/workos/sso/connection_type_not_updatable_error_body.rb +22 -0
- data/lib/workos/sso/token_query.rb +3 -0
- data/lib/workos/sso.rb +3 -0
- data/lib/workos/types/agent_blueprint_created_data_invocable_as_instance_types.rb +13 -0
- data/lib/workos/types/agent_blueprint_invocable_as_instance_types.rb +9 -0
- data/lib/workos/types/agent_blueprint_updated_data_invocable_as_instance_types.rb +9 -0
- data/lib/workos/types/agent_blueprints_create_request_invocable_as_instance_types.rb +9 -0
- data/lib/workos/types/agent_blueprints_update_request_invocable_as_instance_types.rb +9 -0
- data/lib/workos/types/agent_instance_created_data_type.rb +1 -5
- data/lib/workos/types/agent_instance_deleted_data_type.rb +1 -1
- data/lib/workos/types/agent_instance_type.rb +1 -1
- data/lib/workos/types/authorization_url_not_found_error_body_code.rb +14 -0
- data/lib/workos/types/authorization_url_request_error_body_code.rb +14 -0
- data/lib/workos/types/connection_creation_conflict_error_body_code.rb +13 -0
- data/lib/workos/types/connection_creation_not_found_error_body_code.rb +13 -0
- data/lib/workos/types/connection_finish_error_body_code.rb +29 -0
- data/lib/workos/types/create_connected_account_state.rb +9 -0
- data/lib/workos/types/create_magic_code_and_return_locale.rb +101 -0
- data/lib/workos/types/create_organization_connected_account_state.rb +9 -0
- data/lib/workos/types/create_password_reset_token_locale.rb +9 -0
- data/lib/workos/types/create_user_invite_options_locale.rb +1 -93
- data/lib/workos/types/create_webhook_endpoint_events.rb +9 -1
- data/lib/workos/types/data_integration_access_token_response_with_error_error.rb +9 -0
- data/lib/workos/types/data_integration_credentials_response_with_error_error.rb +9 -0
- data/lib/workos/types/data_integrations_create_api_key_connection_request_connection_owner.rb +9 -0
- data/lib/workos/types/data_integrations_create_client_credentials_connection_request_connection_owner.rb +9 -0
- data/lib/workos/types/data_integrations_get_data_integration_authorize_url_request_connection_intent.rb +13 -0
- data/lib/workos/types/error_body_code.rb +183 -0
- data/lib/workos/types/feature_flags_flag_created_context_actor_source.rb +9 -0
- data/lib/workos/types/feature_flags_flag_deleted_context_actor_source.rb +9 -0
- data/lib/workos/types/feature_flags_flag_rule_created_context_actor_source.rb +9 -0
- data/lib/workos/types/feature_flags_flag_rule_deleted_context_actor_source.rb +9 -0
- data/lib/workos/types/feature_flags_flag_rule_updated_context_actor_source.rb +9 -0
- data/lib/workos/types/feature_flags_flag_target_created_context_actor_source.rb +9 -0
- data/lib/workos/types/feature_flags_flag_target_deleted_context_actor_source.rb +9 -0
- data/lib/workos/types/feature_flags_flag_updated_context_actor_source.rb +9 -0
- data/lib/workos/types/organization_connected_account_import_error_body_code.rb +14 -0
- data/lib/workos/types/organization_connected_account_state.rb +9 -0
- data/lib/workos/types/resend_user_invite_options_locale.rb +1 -1
- data/lib/workos/types/resource_export_completed_data_resource_type.rb +4 -1
- data/lib/workos/types/send_email_change_locale.rb +9 -0
- data/lib/workos/types/send_verification_email_locale.rb +9 -0
- data/lib/workos/types/update_audit_logs_retention_with_retention_period_retention_period.rb +9 -0
- data/lib/workos/types/user_connected_account_import_error_body_code.rb +15 -0
- data/lib/workos/types/vault_dek_rekeyed_data_actor_source.rb +9 -0
- data/lib/workos/types/widget_session_token_scopes.rb +3 -1
- data/lib/workos/user_management/action_denied_error_body.rb +22 -0
- data/lib/workos/user_management/authentication_method_not_allowed_error_body.rb +22 -0
- data/lib/workos/user_management/authentication_method_not_allowed_oauth_error_body.rb +22 -0
- data/lib/workos/user_management/create_magic_code_and_return.rb +5 -2
- data/lib/workos/user_management/create_password_reset_token.rb +16 -1
- data/lib/workos/user_management/email_already_in_use_error_body.rb +22 -0
- data/lib/workos/user_management/email_already_verified_error_body.rb +22 -0
- data/lib/workos/user_management/email_change_not_allowed_error_body.rb +22 -0
- data/lib/workos/user_management/email_completion_required_error_body_with_email_completion_token.rb +25 -0
- data/lib/workos/user_management/email_domain_not_deliverable_error_body.rb +22 -0
- data/lib/workos/user_management/email_not_available_error_body.rb +22 -0
- data/lib/workos/user_management/email_password_auth_disabled_error_body.rb +22 -0
- data/lib/workos/user_management/email_verification_required_error_body.rb +22 -0
- data/lib/workos/user_management/invitation_cannot_be_used_for_email_oauth_error_body.rb +22 -0
- data/lib/workos/user_management/invitation_invalid_oauth_error_body.rb +22 -0
- data/lib/workos/user_management/password_and_password_hash_provided_error_body.rb +22 -0
- data/lib/workos/user_management/password_and_password_hash_type_provided_error_body.rb +22 -0
- data/lib/workos/user_management/password_salt_position_requires_password_hash_error_body.rb +22 -0
- data/lib/workos/user_management/password_strength_error_error_body_with_errors.rb +25 -0
- data/lib/workos/user_management/send_email_change.rb +6 -2
- data/lib/workos/user_management/send_verification_email.rb +18 -0
- data/lib/workos/user_management/user_connected_account_import_error_body.rb +22 -0
- data/lib/workos/user_management/user_consent_options_not_supported_error_body.rb +22 -0
- data/lib/workos/user_management/user_creation_error_error_body_with_errors.rb +25 -0
- data/lib/workos/user_management/user_mismatch_error_body.rb +22 -0
- data/lib/workos/user_management/waitlist_list_response.rb +25 -0
- data/lib/workos/user_management/waitlist_list_response_list_metadata.rb +7 -0
- data/lib/workos/user_management.rb +26 -11
- data/lib/workos/vault/vault_dek_rekeyed.rb +34 -0
- data/lib/workos/vault/vault_dek_rekeyed_data.rb +31 -0
- data/lib/workos/version.rb +1 -1
- data/rbi/workos/access_denied_oauth_error_body.rbi +30 -0
- data/rbi/workos/account_selection_required_error_body.rbi +30 -0
- data/rbi/workos/action_denied_error_body.rbi +30 -0
- data/rbi/workos/admin_portal.rbi +11 -1
- data/rbi/workos/agent_blueprint.rbi +6 -0
- data/rbi/workos/agent_blueprint_created_data.rbi +6 -0
- data/rbi/workos/agent_blueprint_created_data_invocable_as.rbi +24 -0
- data/rbi/workos/agent_blueprint_invocable_as.rbi +24 -0
- data/rbi/workos/agent_blueprint_updated_data.rbi +6 -0
- data/rbi/workos/agent_blueprint_updated_data_invocable_as.rbi +24 -0
- data/rbi/workos/agent_blueprints_create_request.rbi +6 -0
- data/rbi/workos/agent_blueprints_create_request_invocable_as.rbi +24 -0
- data/rbi/workos/agent_blueprints_update_request.rbi +6 -0
- data/rbi/workos/agent_blueprints_update_request_invocable_as.rbi +24 -0
- data/rbi/workos/agent_registration.rbi +6 -0
- data/rbi/workos/agents.rbi +29 -19
- data/rbi/workos/already_claimed_error_body.rbi +30 -0
- data/rbi/workos/api_key_data_integration_vended_credential.rbi +42 -0
- data/rbi/workos/api_keys.rbi +5 -5
- data/rbi/workos/application_consent_required_error_body.rbi +30 -0
- data/rbi/workos/audit_logs.rbi +10 -10
- data/rbi/workos/auth_method_mismatch_error_body.rbi +30 -0
- data/rbi/workos/authentication_method_not_allowed_error_body.rbi +30 -0
- data/rbi/workos/authentication_method_not_allowed_oauth_error_body.rbi +30 -0
- data/rbi/workos/authorization.rbi +55 -45
- data/rbi/workos/authorization_pending_oauth_error_body.rbi +30 -0
- data/rbi/workos/authorization_url_not_found_error_body.rbi +30 -0
- data/rbi/workos/authorization_url_request_error_body.rbi +30 -0
- data/rbi/workos/client_api.rbi +1 -1
- data/rbi/workos/client_credentials_data_integration_vended_credential.rbi +66 -0
- data/rbi/workos/code_challenge_not_found_error_body.rbi +30 -0
- data/rbi/workos/connect.rbi +12 -10
- data/rbi/workos/connect_application_oauth.rbi +6 -0
- data/rbi/workos/connected_account.rbi +18 -0
- data/rbi/workos/connected_account_input.rbi +12 -0
- data/rbi/workos/connected_account_limit_reached_error_body.rbi +30 -0
- data/rbi/workos/connected_account_warning.rbi +30 -0
- data/rbi/workos/connection_could_not_be_verified_error_body.rbi +30 -0
- data/rbi/workos/connection_creation_conflict_error_body.rbi +30 -0
- data/rbi/workos/connection_creation_not_found_error_body.rbi +30 -0
- data/rbi/workos/connection_finish_error_body.rbi +30 -0
- data/rbi/workos/connection_type_not_updatable_error_body.rbi +30 -0
- data/rbi/workos/create_connected_account.rbi +66 -0
- data/rbi/workos/create_magic_code_and_return.rbi +6 -0
- data/rbi/workos/create_oauth_application.rbi +6 -0
- data/rbi/workos/create_organization_connected_account.rbi +72 -0
- data/rbi/workos/create_password_reset_token.rbi +6 -0
- data/rbi/workos/daily_quota_exceeded_error_body.rbi +30 -0
- data/rbi/workos/data_integration_access_token_response_with_access_token.rbi +30 -0
- data/rbi/workos/{data_integration_credentials_response_credential.rbi → data_integration_access_token_response_with_access_token_access_token.rbi} +3 -9
- data/rbi/workos/data_integration_access_token_response_with_error.rbi +30 -0
- data/rbi/workos/data_integration_authorize_url_response.rbi +12 -0
- data/rbi/workos/data_integration_credentials_response.rbi +2 -2
- data/rbi/workos/data_integration_credentials_response_with_credential.rbi +30 -0
- data/rbi/workos/data_integration_credentials_response_with_error.rbi +30 -0
- data/rbi/workos/data_integration_finish_connection_response.rbi +24 -0
- data/rbi/workos/data_integration_vended_credential.rbi +66 -0
- data/rbi/workos/data_integrations_create_api_key_connection_request.rbi +60 -0
- data/rbi/workos/data_integrations_create_client_credentials_connection_request.rbi +72 -0
- data/rbi/workos/data_integrations_finish_connection_request.rbi +36 -0
- data/rbi/workos/data_integrations_get_data_integration_authorize_url_request.rbi +30 -0
- data/rbi/workos/data_integrations_list_response_data_connected_account.rbi +18 -0
- data/rbi/workos/data_integrations_list_response_data_connected_account_warning.rbi +30 -0
- data/rbi/workos/data_integrations_upsert_api_key_request.rbi +24 -6
- data/rbi/workos/data_integrations_upsert_client_credentials_request.rbi +24 -6
- data/rbi/workos/directory_sync.rbi +15 -7
- data/rbi/workos/directory_sync_rate_limit_error.rbi +36 -0
- data/rbi/workos/directory_sync_response.rbi +24 -0
- data/rbi/workos/email_already_in_use_error_body.rbi +30 -0
- data/rbi/workos/email_already_verified_error_body.rbi +30 -0
- data/rbi/workos/email_change_not_allowed_error_body.rbi +30 -0
- data/rbi/workos/email_completion_required_error_body_with_email_completion_token.rbi +36 -0
- data/rbi/workos/email_domain_not_deliverable_error_body.rbi +30 -0
- data/rbi/workos/email_not_available_error_body.rbi +30 -0
- data/rbi/workos/email_password_auth_disabled_error_body.rbi +30 -0
- data/rbi/workos/email_verification_required_error_body.rbi +30 -0
- data/rbi/workos/entity_not_found_error_body.rbi +30 -0
- data/rbi/workos/error_body.rbi +24 -0
- data/rbi/workos/error_body_with_code.rbi +30 -0
- data/rbi/workos/error_body_with_code_errors.rbi +36 -0
- data/rbi/workos/error_body_with_code_field_error.rbi +30 -0
- data/rbi/workos/error_body_with_code_field_errors.rbi +30 -0
- data/rbi/workos/error_body_with_code_instance_path_error.rbi +24 -0
- data/rbi/workos/error_body_with_code_instance_path_errors.rbi +36 -0
- data/rbi/workos/error_body_with_code_status_code.rbi +36 -0
- data/rbi/workos/error_body_with_constraints_property_error.rbi +30 -0
- data/rbi/workos/error_body_with_constraints_property_errors.rbi +30 -0
- data/rbi/workos/error_body_with_error.rbi +30 -0
- data/rbi/workos/error_body_with_error_message_list.rbi +30 -0
- data/rbi/workos/error_body_with_message_or_message_list.rbi +24 -0
- data/rbi/workos/events.rbi +1 -3
- data/rbi/workos/expired_token_oauth_error_body.rbi +30 -0
- data/rbi/workos/external_auth_session_already_completed_error_body.rbi +30 -0
- data/rbi/workos/external_id_already_used_error_body.rbi +30 -0
- data/rbi/workos/extra_attributes_required_oauth_error_body.rbi +30 -0
- data/rbi/workos/feature_flags.rbi +8 -8
- data/rbi/workos/feature_flags_flag_created.rbi +54 -0
- data/rbi/workos/feature_flags_flag_created_context.rbi +30 -0
- data/rbi/workos/feature_flags_flag_created_context_actor.rbi +36 -0
- data/rbi/workos/feature_flags_flag_created_data.rbi +90 -0
- data/rbi/workos/feature_flags_flag_created_data_owner.rbi +36 -0
- data/rbi/workos/feature_flags_flag_deleted.rbi +54 -0
- data/rbi/workos/feature_flags_flag_deleted_context.rbi +30 -0
- data/rbi/workos/feature_flags_flag_deleted_context_actor.rbi +36 -0
- data/rbi/workos/feature_flags_flag_deleted_data.rbi +90 -0
- data/rbi/workos/feature_flags_flag_deleted_data_owner.rbi +36 -0
- data/rbi/workos/feature_flags_flag_rule_created.rbi +54 -0
- data/rbi/workos/feature_flags_flag_rule_created_context.rbi +30 -0
- data/rbi/workos/feature_flags_flag_rule_created_context_actor.rbi +36 -0
- data/rbi/workos/feature_flags_flag_rule_deleted.rbi +54 -0
- data/rbi/workos/feature_flags_flag_rule_deleted_context.rbi +30 -0
- data/rbi/workos/feature_flags_flag_rule_deleted_context_actor.rbi +36 -0
- data/rbi/workos/feature_flags_flag_rule_updated.rbi +54 -0
- data/rbi/workos/feature_flags_flag_rule_updated_context.rbi +36 -0
- data/rbi/workos/feature_flags_flag_rule_updated_context_actor.rbi +36 -0
- data/rbi/workos/feature_flags_flag_rule_updated_context_previous_attribute.rbi +24 -0
- data/rbi/workos/feature_flags_flag_rule_updated_context_previous_attribute_data.rbi +24 -0
- data/rbi/workos/feature_flags_flag_target_created.rbi +54 -0
- data/rbi/workos/feature_flags_flag_target_created_context.rbi +30 -0
- data/rbi/workos/feature_flags_flag_target_created_context_actor.rbi +36 -0
- data/rbi/workos/feature_flags_flag_target_deleted.rbi +54 -0
- data/rbi/workos/feature_flags_flag_target_deleted_context.rbi +30 -0
- data/rbi/workos/feature_flags_flag_target_deleted_context_actor.rbi +36 -0
- data/rbi/workos/feature_flags_flag_updated.rbi +54 -0
- data/rbi/workos/feature_flags_flag_updated_context.rbi +36 -0
- data/rbi/workos/feature_flags_flag_updated_context_actor.rbi +36 -0
- data/rbi/workos/feature_flags_flag_updated_context_previous_attribute.rbi +24 -0
- data/rbi/workos/feature_flags_flag_updated_context_previous_attribute_data.rbi +54 -0
- data/rbi/workos/feature_flags_flag_updated_context_previous_attribute_data_owner.rbi +36 -0
- data/rbi/workos/feature_flags_flag_updated_data.rbi +90 -0
- data/rbi/workos/feature_flags_flag_updated_data_owner.rbi +36 -0
- data/rbi/workos/flag_rule.rbi +84 -0
- data/rbi/workos/flag_target.rbi +90 -0
- data/rbi/workos/flag_target_with_rule_id.rbi +78 -0
- data/rbi/workos/flag_target_with_value_type.rbi +84 -0
- data/rbi/workos/flag_updated_context_previous_attribute_data.rbi +6 -0
- data/rbi/workos/flag_updated_context_previous_attribute_data_owner.rbi +36 -0
- data/rbi/workos/generate_link.rbi +6 -0
- data/rbi/workos/group_role_assignment_list.rbi +36 -0
- data/rbi/workos/groups.rbi +19 -8
- data/rbi/workos/idp_metadata_fetch_failed_error_body.rbi +30 -0
- data/rbi/workos/invalid_client_oauth_error_body.rbi +30 -0
- data/rbi/workos/invalid_connection_oauth_error_body.rbi +30 -0
- data/rbi/workos/invalid_credentials_error_body.rbi +30 -0
- data/rbi/workos/invalid_email_error_body.rbi +30 -0
- data/rbi/workos/invalid_grant_oauth_error_body.rbi +30 -0
- data/rbi/workos/invalid_idp_sso_url_error_body.rbi +30 -0
- data/rbi/workos/invalid_link_authorization_code_oauth_error_body.rbi +30 -0
- data/rbi/workos/invalid_locale_error_body.rbi +30 -0
- data/rbi/workos/invalid_metadata_error_body.rbi +30 -0
- data/rbi/workos/invalid_one_time_code_error_body.rbi +30 -0
- data/rbi/workos/invalid_organization_id_error_body.rbi +30 -0
- data/rbi/workos/invalid_password_hash_error_body.rbi +30 -0
- data/rbi/workos/invalid_pending_authentication_token_error_body.rbi +30 -0
- data/rbi/workos/invalid_profile_oauth_error_body.rbi +30 -0
- data/rbi/workos/invalid_refresh_token_error_body.rbi +30 -0
- data/rbi/workos/invalid_request_oauth_error_body.rbi +30 -0
- data/rbi/workos/invalid_request_parameters_error_body.rbi +30 -0
- data/rbi/workos/invalid_request_parameters_error_body_with_errors.rbi +36 -0
- data/rbi/workos/invalid_role_error_body.rbi +30 -0
- data/rbi/workos/invalid_url_error_body.rbi +30 -0
- data/rbi/workos/invitation_cannot_be_used_for_email_oauth_error_body.rbi +30 -0
- data/rbi/workos/invitation_invalid_oauth_error_body.rbi +30 -0
- data/rbi/workos/it_contact_list.rbi +36 -0
- data/rbi/workos/it_contact_list_list_metadata.rbi +30 -0
- data/rbi/workos/list_metadata.rbi +30 -0
- data/rbi/workos/mfa_challenge_error_body.rbi +30 -0
- data/rbi/workos/mfa_enrollment_error_body.rbi +30 -0
- data/rbi/workos/mfa_enrollment_oauth_error_body.rbi +30 -0
- data/rbi/workos/multi_factor_auth.rbi +7 -7
- data/rbi/workos/multiple_roles_not_enabled_error_body.rbi +30 -0
- data/rbi/workos/must_use_sso_for_selected_organization_message_error_body.rbi +24 -0
- data/rbi/workos/oauth_data_integration_vended_credential.rbi +66 -0
- data/rbi/workos/oauth_error_body.rbi +30 -0
- data/rbi/workos/one_time_code_expired_error_body.rbi +30 -0
- data/rbi/workos/one_time_code_previously_used_error_body.rbi +30 -0
- data/rbi/workos/one_time_code_too_many_attempts_error_body.rbi +30 -0
- data/rbi/workos/organization_authentication_methods_required_oauth_error_body.rbi +30 -0
- data/rbi/workos/organization_connected_account.rbi +66 -0
- data/rbi/workos/organization_connected_account_import_error_body.rbi +30 -0
- data/rbi/workos/organization_domains.rbi +4 -4
- data/rbi/workos/organization_membership_not_found_oauth_error_body.rbi +30 -0
- data/rbi/workos/organization_membership_service.rbi +8 -8
- data/rbi/workos/organization_not_found_oauth_error_body.rbi +30 -0
- data/rbi/workos/organization_selection_required_error_body.rbi +30 -0
- data/rbi/workos/organization_selection_required_error_body_with_organization.rbi +30 -0
- data/rbi/workos/organization_selection_required_error_body_with_organizations.rbi +36 -0
- data/rbi/workos/organizations.rbi +13 -13
- data/rbi/workos/passkey_progressive_enrollment_error_body.rbi +30 -0
- data/rbi/workos/password_and_password_hash_provided_error_body.rbi +30 -0
- data/rbi/workos/password_and_password_hash_type_provided_error_body.rbi +30 -0
- data/rbi/workos/password_salt_position_requires_password_hash_error_body.rbi +30 -0
- data/rbi/workos/password_strength_error_error_body_with_errors.rbi +36 -0
- data/rbi/workos/patch_group_memberships.rbi +30 -0
- data/rbi/workos/patch_group_role_assignments.rbi +30 -0
- data/rbi/workos/phone_number_required_error_body.rbi +30 -0
- data/rbi/workos/pipe_connected_account.rbi +12 -0
- data/rbi/workos/pipes.rbi +92 -25
- data/rbi/workos/pipes_provider.rbi +2 -2
- data/rbi/workos/pkce_not_supported_oauth_error_body.rbi +30 -0
- data/rbi/workos/platform_teams.rbi +2 -2
- data/rbi/workos/policy_denied_error_body.rbi +30 -0
- data/rbi/workos/radar.rbi +4 -4
- data/rbi/workos/radar_challenge_error_body.rbi +30 -0
- data/rbi/workos/radar_sign_up_challenge_error_body.rbi +30 -0
- data/rbi/workos/radar_sms_sign_in_challenge_error_body.rbi +30 -0
- data/rbi/workos/rate_limit_exceeded_error_body_with_retry_after.rbi +36 -0
- data/rbi/workos/revoke_link.rbi +30 -0
- data/rbi/workos/send_email_change.rbi +6 -0
- data/rbi/workos/send_verification_email.rbi +24 -0
- data/rbi/workos/sign_up_not_allowed_oauth_error_body.rbi +30 -0
- data/rbi/workos/slow_down_oauth_error_body.rbi +30 -0
- data/rbi/workos/sms_challenge_quota_reached_error_body.rbi +30 -0
- data/rbi/workos/sms_challenge_rate_limited_error_body.rbi +30 -0
- data/rbi/workos/sso.rbi +19 -18
- data/rbi/workos/sso_required_oauth_error_body_with_connection_ids_list_email_pending_authentication_token.rbi +48 -0
- data/rbi/workos/sub_resource_scoped_role_not_allowed_error_body_with_role_slug.rbi +36 -0
- data/rbi/workos/token_query.rbi +6 -0
- data/rbi/workos/token_too_big_oauth_error_body.rbi +30 -0
- data/rbi/workos/too_many_failed_verification_attempts_error_body_with_retry_after.rbi +36 -0
- data/rbi/workos/too_many_requests_oauth_error_body.rbi +30 -0
- data/rbi/workos/unauthorized_client_oauth_error_body.rbi +30 -0
- data/rbi/workos/unauthorized_error_body.rbi +24 -0
- data/rbi/workos/update_audit_logs_retention_with_retention_period.rbi +24 -0
- data/rbi/workos/update_audit_logs_retention_with_retention_period_in_days.rbi +24 -0
- data/rbi/workos/update_oauth_application.rbi +6 -0
- data/rbi/workos/update_user_organization_membership_with_role_slug.rbi +24 -0
- data/rbi/workos/update_user_organization_membership_with_role_slugs.rbi +24 -0
- data/rbi/workos/user_connected_account_import_error_body.rbi +30 -0
- data/rbi/workos/user_consent_options_not_supported_error_body.rbi +30 -0
- data/rbi/workos/user_creation_error_error_body_with_errors.rbi +36 -0
- data/rbi/workos/user_management.rbi +77 -61
- data/rbi/workos/user_mismatch_error_body.rbi +30 -0
- data/rbi/workos/user_role_assignment_source.rbi +6 -0
- data/rbi/workos/user_role_assignment_source_group.rbi +30 -0
- data/rbi/workos/vault.rbi +11 -11
- data/rbi/workos/vault_dek_rekeyed.rbi +54 -0
- data/rbi/workos/vault_dek_rekeyed_data.rbi +48 -0
- data/rbi/workos/verification_id_required_error_body.rbi +30 -0
- data/rbi/workos/version_list_response.rbi +30 -0
- data/rbi/workos/waitlist_list_response.rbi +36 -0
- data/rbi/workos/waitlist_list_response_list_metadata.rbi +30 -0
- data/rbi/workos/webhooks.rbi +4 -4
- data/rbi/workos/widgets.rbi +1 -1
- data/test/workos/test_admin_portal.rb +9 -1
- data/test/workos/test_admin_portal_model_round_trip.rb +14 -0
- data/test/workos/test_agents.rb +8 -0
- data/test/workos/test_agents_model_round_trip.rb +46 -0
- data/test/workos/test_api_keys_model_round_trip.rb +14 -0
- data/test/workos/test_authorization.rb +8 -0
- data/test/workos/test_authorization_model_round_trip.rb +38 -1
- data/test/workos/test_base_client.rb +4 -3
- data/test/workos/test_connect_model_round_trip.rb +3 -1
- data/test/workos/test_directory_sync.rb +8 -0
- data/test/workos/test_directory_sync_model_round_trip.rb +24 -0
- data/test/workos/test_feature_flags_model_round_trip.rb +123 -0
- data/test/workos/test_groups.rb +8 -0
- data/test/workos/test_groups_model_round_trip.rb +11 -0
- data/test/workos/test_organizations_model_round_trip.rb +111 -0
- data/test/workos/test_pipes.rb +28 -4
- data/test/workos/test_pipes_model_round_trip.rb +214 -51
- data/test/workos/test_shared_model_round_trip.rb +2066 -423
- data/test/workos/test_sso_model_round_trip.rb +61 -0
- data/test/workos/test_user_management_model_round_trip.rb +297 -3
- data/test/workos/test_vault_model_round_trip.rb +63 -0
- metadata +423 -3
|
@@ -187,6 +187,7 @@ class SsoModelRoundTripTest < Minitest::Test
|
|
|
187
187
|
"client_secret" => "stub",
|
|
188
188
|
"code" => "stub",
|
|
189
189
|
"grant_type" => "stub",
|
|
190
|
+
"code_verifier" => "stub",
|
|
190
191
|
"subject_token" => "stub",
|
|
191
192
|
"subject_token_type" => "urn:ietf:params:oauth:token-type:id_token",
|
|
192
193
|
"organization_id" => "stub"
|
|
@@ -199,6 +200,66 @@ class SsoModelRoundTripTest < Minitest::Test
|
|
|
199
200
|
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
200
201
|
end
|
|
201
202
|
|
|
203
|
+
def test_connection_finish_error_body_round_trip
|
|
204
|
+
fixture = {
|
|
205
|
+
"code" => "stub",
|
|
206
|
+
"message" => "stub"
|
|
207
|
+
}
|
|
208
|
+
model = WorkOS::ConnectionFinishErrorBody.new(fixture.to_json)
|
|
209
|
+
json = model.to_h
|
|
210
|
+
assert_kind_of Hash, json
|
|
211
|
+
assert_equal fixture["message"], json[:message]
|
|
212
|
+
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
def test_connection_creation_not_found_error_body_round_trip
|
|
216
|
+
fixture = {
|
|
217
|
+
"code" => "stub",
|
|
218
|
+
"message" => "stub"
|
|
219
|
+
}
|
|
220
|
+
model = WorkOS::ConnectionCreationNotFoundErrorBody.new(fixture.to_json)
|
|
221
|
+
json = model.to_h
|
|
222
|
+
assert_kind_of Hash, json
|
|
223
|
+
assert_equal fixture["message"], json[:message]
|
|
224
|
+
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
def test_connection_creation_conflict_error_body_round_trip
|
|
228
|
+
fixture = {
|
|
229
|
+
"code" => "stub",
|
|
230
|
+
"message" => "stub"
|
|
231
|
+
}
|
|
232
|
+
model = WorkOS::ConnectionCreationConflictErrorBody.new(fixture.to_json)
|
|
233
|
+
json = model.to_h
|
|
234
|
+
assert_kind_of Hash, json
|
|
235
|
+
assert_equal fixture["message"], json[:message]
|
|
236
|
+
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
def test_connection_could_not_be_verified_error_body_round_trip
|
|
240
|
+
fixture = {
|
|
241
|
+
"code" => "connection_could_not_be_verified",
|
|
242
|
+
"message" => "stub"
|
|
243
|
+
}
|
|
244
|
+
model = WorkOS::ConnectionCouldNotBeVerifiedErrorBody.new(fixture.to_json)
|
|
245
|
+
json = model.to_h
|
|
246
|
+
assert_kind_of Hash, json
|
|
247
|
+
assert_equal fixture["message"], json[:message]
|
|
248
|
+
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
def test_connection_type_not_updatable_error_body_round_trip
|
|
252
|
+
fixture = {
|
|
253
|
+
"code" => "connection_type_not_updatable",
|
|
254
|
+
"message" => "stub"
|
|
255
|
+
}
|
|
256
|
+
model = WorkOS::ConnectionTypeNotUpdatableErrorBody.new(fixture.to_json)
|
|
257
|
+
json = model.to_h
|
|
258
|
+
assert_kind_of Hash, json
|
|
259
|
+
assert_equal fixture["message"], json[:message]
|
|
260
|
+
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
261
|
+
end
|
|
262
|
+
|
|
202
263
|
def test_connection_round_trip
|
|
203
264
|
fixture = {
|
|
204
265
|
"object" => "connection",
|
|
@@ -74,7 +74,8 @@ class UserManagementModelRoundTripTest < Minitest::Test
|
|
|
74
74
|
"ip_address" => "stub",
|
|
75
75
|
"user_agent" => "stub",
|
|
76
76
|
"radar_auth_attempt_id" => "stub",
|
|
77
|
-
"signals_id" => "stub"
|
|
77
|
+
"signals_id" => "stub",
|
|
78
|
+
"locale" => "stub"
|
|
78
79
|
}
|
|
79
80
|
model = WorkOS::CreateMagicCodeAndReturn.new(fixture.to_json)
|
|
80
81
|
json = model.to_h
|
|
@@ -169,6 +170,16 @@ class UserManagementModelRoundTripTest < Minitest::Test
|
|
|
169
170
|
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
170
171
|
end
|
|
171
172
|
|
|
173
|
+
def test_send_verification_email_round_trip
|
|
174
|
+
fixture = {
|
|
175
|
+
"locale" => "stub"
|
|
176
|
+
}
|
|
177
|
+
model = WorkOS::SendVerificationEmail.new(fixture.to_json)
|
|
178
|
+
json = model.to_h
|
|
179
|
+
assert_kind_of Hash, json
|
|
180
|
+
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
181
|
+
end
|
|
182
|
+
|
|
172
183
|
def test_verify_email_address_round_trip
|
|
173
184
|
fixture = {
|
|
174
185
|
"code" => "stub"
|
|
@@ -182,7 +193,8 @@ class UserManagementModelRoundTripTest < Minitest::Test
|
|
|
182
193
|
|
|
183
194
|
def test_create_password_reset_token_round_trip
|
|
184
195
|
fixture = {
|
|
185
|
-
"email" => "stub"
|
|
196
|
+
"email" => "stub",
|
|
197
|
+
"locale" => "stub"
|
|
186
198
|
}
|
|
187
199
|
model = WorkOS::CreatePasswordResetToken.new(fixture.to_json)
|
|
188
200
|
json = model.to_h
|
|
@@ -206,7 +218,8 @@ class UserManagementModelRoundTripTest < Minitest::Test
|
|
|
206
218
|
|
|
207
219
|
def test_send_email_change_round_trip
|
|
208
220
|
fixture = {
|
|
209
|
-
"new_email" => "stub"
|
|
221
|
+
"new_email" => "stub",
|
|
222
|
+
"locale" => "stub"
|
|
210
223
|
}
|
|
211
224
|
model = WorkOS::SendEmailChange.new(fixture.to_json)
|
|
212
225
|
json = model.to_h
|
|
@@ -250,6 +263,262 @@ class UserManagementModelRoundTripTest < Minitest::Test
|
|
|
250
263
|
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
251
264
|
end
|
|
252
265
|
|
|
266
|
+
def test_user_connected_account_import_error_body_round_trip
|
|
267
|
+
fixture = {
|
|
268
|
+
"code" => "stub",
|
|
269
|
+
"message" => "stub"
|
|
270
|
+
}
|
|
271
|
+
model = WorkOS::UserConnectedAccountImportErrorBody.new(fixture.to_json)
|
|
272
|
+
json = model.to_h
|
|
273
|
+
assert_kind_of Hash, json
|
|
274
|
+
assert_equal fixture["message"], json[:message]
|
|
275
|
+
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
276
|
+
end
|
|
277
|
+
|
|
278
|
+
def test_email_completion_required_error_body_with_email_completion_token_round_trip
|
|
279
|
+
fixture = {
|
|
280
|
+
"code" => "email_completion_required",
|
|
281
|
+
"message" => "stub",
|
|
282
|
+
"email_completion_token" => "stub"
|
|
283
|
+
}
|
|
284
|
+
model = WorkOS::EmailCompletionRequiredErrorBodyWithEmailCompletionToken.new(fixture.to_json)
|
|
285
|
+
json = model.to_h
|
|
286
|
+
assert_kind_of Hash, json
|
|
287
|
+
assert_equal fixture["message"], json[:message]
|
|
288
|
+
assert_equal fixture["email_completion_token"], json[:email_completion_token]
|
|
289
|
+
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
290
|
+
end
|
|
291
|
+
|
|
292
|
+
def test_user_consent_options_not_supported_error_body_round_trip
|
|
293
|
+
fixture = {
|
|
294
|
+
"code" => "user_consent_options_not_supported",
|
|
295
|
+
"message" => "stub"
|
|
296
|
+
}
|
|
297
|
+
model = WorkOS::UserConsentOptionsNotSupportedErrorBody.new(fixture.to_json)
|
|
298
|
+
json = model.to_h
|
|
299
|
+
assert_kind_of Hash, json
|
|
300
|
+
assert_equal fixture["message"], json[:message]
|
|
301
|
+
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
def test_email_change_not_allowed_error_body_round_trip
|
|
305
|
+
fixture = {
|
|
306
|
+
"code" => "email_change_not_allowed",
|
|
307
|
+
"message" => "stub"
|
|
308
|
+
}
|
|
309
|
+
model = WorkOS::EmailChangeNotAllowedErrorBody.new(fixture.to_json)
|
|
310
|
+
json = model.to_h
|
|
311
|
+
assert_kind_of Hash, json
|
|
312
|
+
assert_equal fixture["message"], json[:message]
|
|
313
|
+
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
314
|
+
end
|
|
315
|
+
|
|
316
|
+
def test_email_not_available_error_body_round_trip
|
|
317
|
+
fixture = {
|
|
318
|
+
"code" => "email_not_available",
|
|
319
|
+
"message" => "stub"
|
|
320
|
+
}
|
|
321
|
+
model = WorkOS::EmailNotAvailableErrorBody.new(fixture.to_json)
|
|
322
|
+
json = model.to_h
|
|
323
|
+
assert_kind_of Hash, json
|
|
324
|
+
assert_equal fixture["message"], json[:message]
|
|
325
|
+
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
326
|
+
end
|
|
327
|
+
|
|
328
|
+
def test_email_already_in_use_error_body_round_trip
|
|
329
|
+
fixture = {
|
|
330
|
+
"code" => "email_already_in_use",
|
|
331
|
+
"message" => "stub"
|
|
332
|
+
}
|
|
333
|
+
model = WorkOS::EmailAlreadyInUseErrorBody.new(fixture.to_json)
|
|
334
|
+
json = model.to_h
|
|
335
|
+
assert_kind_of Hash, json
|
|
336
|
+
assert_equal fixture["message"], json[:message]
|
|
337
|
+
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
338
|
+
end
|
|
339
|
+
|
|
340
|
+
def test_invitation_invalid_oauth_error_body_round_trip
|
|
341
|
+
fixture = {
|
|
342
|
+
"error" => "invitation_invalid",
|
|
343
|
+
"error_description" => "stub"
|
|
344
|
+
}
|
|
345
|
+
model = WorkOS::InvitationInvalidOAuthErrorBody.new(fixture.to_json)
|
|
346
|
+
json = model.to_h
|
|
347
|
+
assert_kind_of Hash, json
|
|
348
|
+
assert_equal fixture["error_description"], json[:error_description]
|
|
349
|
+
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
350
|
+
end
|
|
351
|
+
|
|
352
|
+
def test_authentication_method_not_allowed_oauth_error_body_round_trip
|
|
353
|
+
fixture = {
|
|
354
|
+
"error" => "authentication_method_not_allowed",
|
|
355
|
+
"error_description" => "stub"
|
|
356
|
+
}
|
|
357
|
+
model = WorkOS::AuthenticationMethodNotAllowedOAuthErrorBody.new(fixture.to_json)
|
|
358
|
+
json = model.to_h
|
|
359
|
+
assert_kind_of Hash, json
|
|
360
|
+
assert_equal fixture["error_description"], json[:error_description]
|
|
361
|
+
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
362
|
+
end
|
|
363
|
+
|
|
364
|
+
def test_email_domain_not_deliverable_error_body_round_trip
|
|
365
|
+
fixture = {
|
|
366
|
+
"code" => "email_domain_not_deliverable",
|
|
367
|
+
"message" => "stub"
|
|
368
|
+
}
|
|
369
|
+
model = WorkOS::EmailDomainNotDeliverableErrorBody.new(fixture.to_json)
|
|
370
|
+
json = model.to_h
|
|
371
|
+
assert_kind_of Hash, json
|
|
372
|
+
assert_equal fixture["message"], json[:message]
|
|
373
|
+
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
374
|
+
end
|
|
375
|
+
|
|
376
|
+
def test_password_strength_error_error_body_with_errors_round_trip
|
|
377
|
+
fixture = {
|
|
378
|
+
"code" => "password_strength_error",
|
|
379
|
+
"message" => "stub",
|
|
380
|
+
"errors" => []
|
|
381
|
+
}
|
|
382
|
+
model = WorkOS::PasswordStrengthErrorErrorBodyWithErrors.new(fixture.to_json)
|
|
383
|
+
json = model.to_h
|
|
384
|
+
assert_kind_of Hash, json
|
|
385
|
+
assert_equal fixture["message"], json[:message]
|
|
386
|
+
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
387
|
+
end
|
|
388
|
+
|
|
389
|
+
def test_user_creation_error_error_body_with_errors_round_trip
|
|
390
|
+
fixture = {
|
|
391
|
+
"code" => "user_creation_error",
|
|
392
|
+
"message" => "stub",
|
|
393
|
+
"errors" => []
|
|
394
|
+
}
|
|
395
|
+
model = WorkOS::UserCreationErrorErrorBodyWithErrors.new(fixture.to_json)
|
|
396
|
+
json = model.to_h
|
|
397
|
+
assert_kind_of Hash, json
|
|
398
|
+
assert_equal fixture["message"], json[:message]
|
|
399
|
+
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
400
|
+
end
|
|
401
|
+
|
|
402
|
+
def test_password_and_password_hash_provided_error_body_round_trip
|
|
403
|
+
fixture = {
|
|
404
|
+
"code" => "password_and_password_hash_provided",
|
|
405
|
+
"message" => "stub"
|
|
406
|
+
}
|
|
407
|
+
model = WorkOS::PasswordAndPasswordHashProvidedErrorBody.new(fixture.to_json)
|
|
408
|
+
json = model.to_h
|
|
409
|
+
assert_kind_of Hash, json
|
|
410
|
+
assert_equal fixture["message"], json[:message]
|
|
411
|
+
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
412
|
+
end
|
|
413
|
+
|
|
414
|
+
def test_password_and_password_hash_type_provided_error_body_round_trip
|
|
415
|
+
fixture = {
|
|
416
|
+
"code" => "password_and_password_hash_type_provided",
|
|
417
|
+
"message" => "stub"
|
|
418
|
+
}
|
|
419
|
+
model = WorkOS::PasswordAndPasswordHashTypeProvidedErrorBody.new(fixture.to_json)
|
|
420
|
+
json = model.to_h
|
|
421
|
+
assert_kind_of Hash, json
|
|
422
|
+
assert_equal fixture["message"], json[:message]
|
|
423
|
+
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
424
|
+
end
|
|
425
|
+
|
|
426
|
+
def test_password_salt_position_requires_password_hash_error_body_round_trip
|
|
427
|
+
fixture = {
|
|
428
|
+
"code" => "password_salt_position_requires_password_hash",
|
|
429
|
+
"message" => "stub"
|
|
430
|
+
}
|
|
431
|
+
model = WorkOS::PasswordSaltPositionRequiresPasswordHashErrorBody.new(fixture.to_json)
|
|
432
|
+
json = model.to_h
|
|
433
|
+
assert_kind_of Hash, json
|
|
434
|
+
assert_equal fixture["message"], json[:message]
|
|
435
|
+
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
436
|
+
end
|
|
437
|
+
|
|
438
|
+
def test_email_already_verified_error_body_round_trip
|
|
439
|
+
fixture = {
|
|
440
|
+
"code" => "email_already_verified",
|
|
441
|
+
"message" => "stub"
|
|
442
|
+
}
|
|
443
|
+
model = WorkOS::EmailAlreadyVerifiedErrorBody.new(fixture.to_json)
|
|
444
|
+
json = model.to_h
|
|
445
|
+
assert_kind_of Hash, json
|
|
446
|
+
assert_equal fixture["message"], json[:message]
|
|
447
|
+
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
448
|
+
end
|
|
449
|
+
|
|
450
|
+
def test_user_mismatch_error_body_round_trip
|
|
451
|
+
fixture = {
|
|
452
|
+
"code" => "user_mismatch",
|
|
453
|
+
"message" => "stub"
|
|
454
|
+
}
|
|
455
|
+
model = WorkOS::UserMismatchErrorBody.new(fixture.to_json)
|
|
456
|
+
json = model.to_h
|
|
457
|
+
assert_kind_of Hash, json
|
|
458
|
+
assert_equal fixture["message"], json[:message]
|
|
459
|
+
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
460
|
+
end
|
|
461
|
+
|
|
462
|
+
def test_invitation_cannot_be_used_for_email_oauth_error_body_round_trip
|
|
463
|
+
fixture = {
|
|
464
|
+
"error" => "invitation_cannot_be_used_for_email",
|
|
465
|
+
"error_description" => "stub"
|
|
466
|
+
}
|
|
467
|
+
model = WorkOS::InvitationCannotBeUsedForEmailOAuthErrorBody.new(fixture.to_json)
|
|
468
|
+
json = model.to_h
|
|
469
|
+
assert_kind_of Hash, json
|
|
470
|
+
assert_equal fixture["error_description"], json[:error_description]
|
|
471
|
+
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
472
|
+
end
|
|
473
|
+
|
|
474
|
+
def test_authentication_method_not_allowed_error_body_round_trip
|
|
475
|
+
fixture = {
|
|
476
|
+
"code" => "authentication_method_not_allowed",
|
|
477
|
+
"message" => "stub"
|
|
478
|
+
}
|
|
479
|
+
model = WorkOS::AuthenticationMethodNotAllowedErrorBody.new(fixture.to_json)
|
|
480
|
+
json = model.to_h
|
|
481
|
+
assert_kind_of Hash, json
|
|
482
|
+
assert_equal fixture["message"], json[:message]
|
|
483
|
+
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
484
|
+
end
|
|
485
|
+
|
|
486
|
+
def test_email_verification_required_error_body_round_trip
|
|
487
|
+
fixture = {
|
|
488
|
+
"code" => "email_verification_required",
|
|
489
|
+
"message" => "stub"
|
|
490
|
+
}
|
|
491
|
+
model = WorkOS::EmailVerificationRequiredErrorBody.new(fixture.to_json)
|
|
492
|
+
json = model.to_h
|
|
493
|
+
assert_kind_of Hash, json
|
|
494
|
+
assert_equal fixture["message"], json[:message]
|
|
495
|
+
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
496
|
+
end
|
|
497
|
+
|
|
498
|
+
def test_email_password_auth_disabled_error_body_round_trip
|
|
499
|
+
fixture = {
|
|
500
|
+
"code" => "email_password_auth_disabled",
|
|
501
|
+
"message" => "stub"
|
|
502
|
+
}
|
|
503
|
+
model = WorkOS::EmailPasswordAuthDisabledErrorBody.new(fixture.to_json)
|
|
504
|
+
json = model.to_h
|
|
505
|
+
assert_kind_of Hash, json
|
|
506
|
+
assert_equal fixture["message"], json[:message]
|
|
507
|
+
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
508
|
+
end
|
|
509
|
+
|
|
510
|
+
def test_action_denied_error_body_round_trip
|
|
511
|
+
fixture = {
|
|
512
|
+
"code" => "action_denied",
|
|
513
|
+
"message" => "stub"
|
|
514
|
+
}
|
|
515
|
+
model = WorkOS::ActionDeniedErrorBody.new(fixture.to_json)
|
|
516
|
+
json = model.to_h
|
|
517
|
+
assert_kind_of Hash, json
|
|
518
|
+
assert_equal fixture["message"], json[:message]
|
|
519
|
+
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
520
|
+
end
|
|
521
|
+
|
|
253
522
|
def test_user_round_trip
|
|
254
523
|
fixture = {
|
|
255
524
|
"object" => "user",
|
|
@@ -2693,4 +2962,29 @@ class UserManagementModelRoundTripTest < Minitest::Test
|
|
|
2693
2962
|
assert_nil json[:reason]
|
|
2694
2963
|
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
2695
2964
|
end
|
|
2965
|
+
|
|
2966
|
+
def test_waitlist_list_response_round_trip
|
|
2967
|
+
fixture = {
|
|
2968
|
+
"object" => "list",
|
|
2969
|
+
"data" => [],
|
|
2970
|
+
"list_metadata" => {}
|
|
2971
|
+
}
|
|
2972
|
+
model = WorkOS::WaitlistListResponse.new(fixture.to_json)
|
|
2973
|
+
json = model.to_h
|
|
2974
|
+
assert_kind_of Hash, json
|
|
2975
|
+
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
2976
|
+
end
|
|
2977
|
+
|
|
2978
|
+
def test_waitlist_list_response_list_metadata_round_trip
|
|
2979
|
+
fixture = {
|
|
2980
|
+
"before" => nil,
|
|
2981
|
+
"after" => nil
|
|
2982
|
+
}
|
|
2983
|
+
model = WorkOS::WaitlistListResponseListMetadata.new(fixture.to_json)
|
|
2984
|
+
json = model.to_h
|
|
2985
|
+
assert_kind_of Hash, json
|
|
2986
|
+
assert_nil json[:before]
|
|
2987
|
+
assert_nil json[:after]
|
|
2988
|
+
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
2989
|
+
end
|
|
2696
2990
|
end
|
|
@@ -131,6 +131,25 @@ class VaultModelRoundTripTest < Minitest::Test
|
|
|
131
131
|
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
132
132
|
end
|
|
133
133
|
|
|
134
|
+
def test_object_version_round_trip
|
|
135
|
+
fixture = {
|
|
136
|
+
"created_at" => "stub",
|
|
137
|
+
"current_version" => true,
|
|
138
|
+
"etag" => "stub",
|
|
139
|
+
"id" => "stub",
|
|
140
|
+
"size" => 1
|
|
141
|
+
}
|
|
142
|
+
model = WorkOS::ObjectVersion.new(fixture.to_json)
|
|
143
|
+
json = model.to_h
|
|
144
|
+
assert_kind_of Hash, json
|
|
145
|
+
assert_equal fixture["created_at"], json[:created_at]
|
|
146
|
+
assert_equal fixture["current_version"], json[:current_version]
|
|
147
|
+
assert_equal fixture["etag"], json[:etag]
|
|
148
|
+
assert_equal fixture["id"], json[:id]
|
|
149
|
+
assert_equal fixture["size"], json[:size]
|
|
150
|
+
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
151
|
+
end
|
|
152
|
+
|
|
134
153
|
def test_object_without_value_round_trip
|
|
135
154
|
fixture = {
|
|
136
155
|
"id" => "stub",
|
|
@@ -169,6 +188,17 @@ class VaultModelRoundTripTest < Minitest::Test
|
|
|
169
188
|
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
170
189
|
end
|
|
171
190
|
|
|
191
|
+
def test_version_list_response_round_trip
|
|
192
|
+
fixture = {
|
|
193
|
+
"data" => [],
|
|
194
|
+
"list_metadata" => {}
|
|
195
|
+
}
|
|
196
|
+
model = WorkOS::VersionListResponse.new(fixture.to_json)
|
|
197
|
+
json = model.to_h
|
|
198
|
+
assert_kind_of Hash, json
|
|
199
|
+
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
200
|
+
end
|
|
201
|
+
|
|
172
202
|
def test_vault_byok_key_deleted_round_trip
|
|
173
203
|
fixture = {
|
|
174
204
|
"object" => "event",
|
|
@@ -435,6 +465,39 @@ class VaultModelRoundTripTest < Minitest::Test
|
|
|
435
465
|
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
436
466
|
end
|
|
437
467
|
|
|
468
|
+
def test_vault_dek_rekeyed_round_trip
|
|
469
|
+
fixture = {
|
|
470
|
+
"object" => "event",
|
|
471
|
+
"id" => "stub",
|
|
472
|
+
"event" => "vault.dek.rekeyed",
|
|
473
|
+
"data" => {},
|
|
474
|
+
"created_at" => "stub",
|
|
475
|
+
"context" => {}
|
|
476
|
+
}
|
|
477
|
+
model = WorkOS::VaultDekRekeyed.new(fixture.to_json)
|
|
478
|
+
json = model.to_h
|
|
479
|
+
assert_kind_of Hash, json
|
|
480
|
+
assert_equal fixture["id"], json[:id]
|
|
481
|
+
assert_equal fixture["created_at"], json[:created_at]
|
|
482
|
+
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
483
|
+
end
|
|
484
|
+
|
|
485
|
+
def test_vault_dek_rekeyed_data_round_trip
|
|
486
|
+
fixture = {
|
|
487
|
+
"actor_id" => "stub",
|
|
488
|
+
"actor_source" => "stub",
|
|
489
|
+
"actor_name" => "stub",
|
|
490
|
+
"key_ids" => [],
|
|
491
|
+
"key_context" => {}
|
|
492
|
+
}
|
|
493
|
+
model = WorkOS::VaultDekRekeyedData.new(fixture.to_json)
|
|
494
|
+
json = model.to_h
|
|
495
|
+
assert_kind_of Hash, json
|
|
496
|
+
assert_equal fixture["actor_id"], json[:actor_id]
|
|
497
|
+
assert_equal fixture["actor_name"], json[:actor_name]
|
|
498
|
+
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
499
|
+
end
|
|
500
|
+
|
|
438
501
|
def test_vault_kek_created_round_trip
|
|
439
502
|
fixture = {
|
|
440
503
|
"object" => "event",
|