workos 10.5.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/release-please.yml +3 -3
- data/.last-synced-sha +1 -1
- data/.oagen-manifest.json +387 -25
- data/.release-please-manifest.json +1 -1
- data/CHANGELOG.md +112 -0
- data/Gemfile.lock +2 -2
- data/README.md +2 -2
- data/lib/workos/agents/list_metadata.rb +22 -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.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/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 -28
- 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 +5 -2
- data/lib/workos/pipes/{connected_account_write_response_warning.rb → connected_account_warning.rb} +1 -1
- data/lib/workos/pipes/data_integration_authorize_url_response.rb +9 -2
- data/lib/workos/pipes/data_integration_finish_connection_response.rb +18 -0
- data/lib/workos/pipes/data_integration_vended_credential.rb +5 -5
- 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 +14 -2
- data/lib/workos/pipes/data_integrations_list_response_data_connected_account.rb +4 -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 +8 -2
- data/lib/workos/pipes/data_integrations_upsert_client_credentials_request.rb +8 -2
- data/lib/workos/pipes.rb +62 -27
- 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/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/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/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_data_integration_ownership.rb +5 -1
- data/lib/workos/types/create_magic_code_and_return_locale.rb +101 -0
- data/lib/workos/types/{connected_account_write_response_auth_method.rb → create_password_reset_token_locale.rb} +1 -1
- 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_integration_ownership.rb +1 -1
- data/lib/workos/types/data_integrations_create_api_key_connection_request_connection_owner.rb +1 -1
- data/lib/workos/types/data_integrations_create_client_credentials_connection_request_connection_owner.rb +1 -1
- data/lib/workos/types/data_integrations_get_data_integration_authorize_url_request_connection_intent.rb +13 -0
- data/lib/workos/types/data_integrations_get_data_integration_authorize_url_request_connection_owner.rb +1 -1
- data/lib/workos/types/data_integrations_get_user_token_request_connection_owner.rb +1 -1
- data/lib/workos/types/data_integrations_list_response_data_connection_owner.rb +1 -1
- data/lib/workos/types/data_integrations_upsert_api_key_request_connection_owner.rb +1 -1
- data/lib/workos/types/data_integrations_upsert_client_credentials_request_connection_owner.rb +1 -1
- data/lib/workos/types/data_integrations_vend_credentials_request_connection_owner.rb +1 -1
- data/lib/workos/types/error_body_code.rb +183 -0
- data/lib/workos/types/{connected_account_write_response_connection_role.rb → feature_flags_flag_created_context_actor_source.rb} +1 -1
- 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/pipes_ownership.rb +1 -1
- data/lib/workos/types/resend_user_invite_options_locale.rb +1 -1
- data/lib/workos/types/resource_export_completed_data_resource_type.rb +3 -1
- data/lib/workos/types/{connected_account_write_response_state.rb → send_email_change_locale.rb} +1 -1
- 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/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 +25 -10
- data/lib/workos/version.rb +1 -1
- data/rbi/workos/access_denied_oauth_error_body.rbi +30 -0
- data/rbi/workos/{connected_account_write_response_warning.rbi → account_selection_required_error_body.rbi} +1 -1
- data/rbi/workos/action_denied_error_body.rbi +30 -0
- data/rbi/workos/admin_portal.rbi +2 -2
- data/rbi/workos/agents.rbi +20 -20
- 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 +6 -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_magic_code_and_return.rbi +6 -0
- data/rbi/workos/create_oauth_application.rbi +6 -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_access_token_response_with_access_token_access_token.rbi +48 -0
- 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_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 +6 -6
- data/rbi/workos/data_integrations_finish_connection_request.rbi +36 -0
- data/rbi/workos/data_integrations_get_data_integration_authorize_url_request.rbi +24 -0
- data/rbi/workos/data_integrations_list_response_data_connected_account.rbi +6 -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 +12 -0
- data/rbi/workos/data_integrations_upsert_client_credentials_request.rbi +12 -0
- data/rbi/workos/directory_sync.rbi +8 -8
- 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/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_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/pipes.rbi +51 -33
- 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/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 +18 -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_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/vault.rbi +11 -11
- 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_agents_model_round_trip.rb +11 -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 +23 -0
- data/test/workos/test_base_client.rb +4 -3
- data/test/workos/test_connect_model_round_trip.rb +3 -1
- data/test/workos/test_feature_flags_model_round_trip.rb +107 -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 +8 -0
- data/test/workos/test_pipes_model_round_trip.rb +94 -200
- data/test/workos/test_shared_model_round_trip.rb +2051 -432
- data/test/workos/test_sso_model_round_trip.rb +60 -0
- data/test/workos/test_user_management_model_round_trip.rb +297 -3
- data/test/workos/test_vault_model_round_trip.rb +30 -0
- metadata +376 -26
- data/lib/workos/pipes/add_data_integrations_get_data_integration_authorize_url_request.rb +0 -37
- data/lib/workos/pipes/connected_account_write_response.rb +0 -73
- data/lib/workos/pipes/data_integrations_upsert_api_key_request_2.rb +0 -37
- data/lib/workos/pipes/data_integrations_upsert_client_credentials_request_2.rb +0 -43
- data/lib/workos/pipes/reauthorize_data_integrations_get_data_integration_authorize_url_request.rb +0 -40
- data/lib/workos/pipes/reauthorize_data_integrations_upsert_api_key_request.rb +0 -40
- data/lib/workos/pipes/reauthorize_data_integrations_upsert_client_credentials_request.rb +0 -46
- data/lib/workos/types/add_data_integrations_get_data_integration_authorize_url_request_connection_owner.rb +0 -13
- data/lib/workos/types/data_integrations_upsert_api_key_request_2_connection_owner.rb +0 -9
- data/lib/workos/types/data_integrations_upsert_client_credentials_request_2_connection_owner.rb +0 -9
- data/lib/workos/types/reauthorize_data_integrations_get_data_integration_authorize_url_request_connection_owner.rb +0 -9
- data/lib/workos/types/reauthorize_data_integrations_upsert_api_key_request_connection_owner.rb +0 -9
- data/lib/workos/types/reauthorize_data_integrations_upsert_client_credentials_request_connection_owner.rb +0 -9
- data/rbi/workos/add_data_integrations_get_data_integration_authorize_url_request.rbi +0 -60
- data/rbi/workos/connected_account_write_response.rbi +0 -132
- data/rbi/workos/data_integrations_upsert_api_key_request_2.rbi +0 -60
- data/rbi/workos/data_integrations_upsert_client_credentials_request_2.rbi +0 -72
- data/rbi/workos/reauthorize_data_integrations_get_data_integration_authorize_url_request.rbi +0 -66
- data/rbi/workos/reauthorize_data_integrations_upsert_api_key_request.rbi +0 -66
- data/rbi/workos/reauthorize_data_integrations_upsert_client_credentials_request.rbi +0 -78
|
@@ -211,14 +211,62 @@ class PipesModelRoundTripTest < Minitest::Test
|
|
|
211
211
|
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
212
212
|
end
|
|
213
213
|
|
|
214
|
+
def test_connected_account_round_trip
|
|
215
|
+
fixture = {
|
|
216
|
+
"object" => "connected_account",
|
|
217
|
+
"id" => "stub",
|
|
218
|
+
"connection_role" => "stub",
|
|
219
|
+
"account_identifier" => nil,
|
|
220
|
+
"account_display_name" => nil,
|
|
221
|
+
"user_id" => nil,
|
|
222
|
+
"organization_id" => nil,
|
|
223
|
+
"scopes" => [],
|
|
224
|
+
"auth_method" => "stub",
|
|
225
|
+
"api_key_last_4" => nil,
|
|
226
|
+
"client_id" => nil,
|
|
227
|
+
"client_secret_last_4" => nil,
|
|
228
|
+
"config" => {},
|
|
229
|
+
"state" => "stub",
|
|
230
|
+
"established_by_user_id" => nil,
|
|
231
|
+
"state_reason" => nil,
|
|
232
|
+
"created_at" => "stub",
|
|
233
|
+
"updated_at" => "stub",
|
|
234
|
+
"warnings" => []
|
|
235
|
+
}
|
|
236
|
+
model = WorkOS::ConnectedAccount.new(fixture.to_json)
|
|
237
|
+
json = model.to_h
|
|
238
|
+
assert_kind_of Hash, json
|
|
239
|
+
assert_equal fixture["id"], json[:id]
|
|
240
|
+
assert_nil json[:account_identifier]
|
|
241
|
+
assert_nil json[:account_display_name]
|
|
242
|
+
assert_nil json[:user_id]
|
|
243
|
+
assert_nil json[:organization_id]
|
|
244
|
+
assert_equal fixture["created_at"], json[:created_at]
|
|
245
|
+
assert_equal fixture["updated_at"], json[:updated_at]
|
|
246
|
+
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
def test_data_integration_finish_connection_response_round_trip
|
|
250
|
+
fixture = {
|
|
251
|
+
"connected_account" => {}
|
|
252
|
+
}
|
|
253
|
+
model = WorkOS::DataIntegrationFinishConnectionResponse.new(fixture.to_json)
|
|
254
|
+
json = model.to_h
|
|
255
|
+
assert_kind_of Hash, json
|
|
256
|
+
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
257
|
+
end
|
|
258
|
+
|
|
214
259
|
def test_data_integration_authorize_url_response_round_trip
|
|
215
260
|
fixture = {
|
|
216
|
-
"url" => "stub"
|
|
261
|
+
"url" => "stub",
|
|
262
|
+
"state" => "stub",
|
|
263
|
+
"completion" => "finish_required"
|
|
217
264
|
}
|
|
218
265
|
model = WorkOS::DataIntegrationAuthorizeUrlResponse.new(fixture.to_json)
|
|
219
266
|
json = model.to_h
|
|
220
267
|
assert_kind_of Hash, json
|
|
221
268
|
assert_equal fixture["url"], json[:url]
|
|
269
|
+
assert_equal fixture["state"], json[:state]
|
|
222
270
|
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
223
271
|
end
|
|
224
272
|
|
|
@@ -242,8 +290,8 @@ class PipesModelRoundTripTest < Minitest::Test
|
|
|
242
290
|
"expires_at" => nil,
|
|
243
291
|
"scopes" => [],
|
|
244
292
|
"missing_scopes" => [],
|
|
245
|
-
"
|
|
246
|
-
"
|
|
293
|
+
"metadata" => {},
|
|
294
|
+
"config" => {}
|
|
247
295
|
}
|
|
248
296
|
model = WorkOS::DataIntegrationVendedCredential.new(fixture.to_json)
|
|
249
297
|
json = model.to_h
|
|
@@ -263,41 +311,6 @@ class PipesModelRoundTripTest < Minitest::Test
|
|
|
263
311
|
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
264
312
|
end
|
|
265
313
|
|
|
266
|
-
def test_connected_account_write_response_round_trip
|
|
267
|
-
fixture = {
|
|
268
|
-
"object" => "connected_account",
|
|
269
|
-
"id" => "stub",
|
|
270
|
-
"connection_role" => "stub",
|
|
271
|
-
"account_identifier" => nil,
|
|
272
|
-
"account_display_name" => nil,
|
|
273
|
-
"user_id" => nil,
|
|
274
|
-
"organization_id" => nil,
|
|
275
|
-
"scopes" => [],
|
|
276
|
-
"auth_method" => "stub",
|
|
277
|
-
"api_key_last_4" => nil,
|
|
278
|
-
"client_id" => nil,
|
|
279
|
-
"client_secret_last_4" => nil,
|
|
280
|
-
"config" => {},
|
|
281
|
-
"state" => "stub",
|
|
282
|
-
"established_by_user_id" => nil,
|
|
283
|
-
"state_reason" => nil,
|
|
284
|
-
"created_at" => "stub",
|
|
285
|
-
"updated_at" => "stub",
|
|
286
|
-
"warnings" => []
|
|
287
|
-
}
|
|
288
|
-
model = WorkOS::ConnectedAccountWriteResponse.new(fixture.to_json)
|
|
289
|
-
json = model.to_h
|
|
290
|
-
assert_kind_of Hash, json
|
|
291
|
-
assert_equal fixture["id"], json[:id]
|
|
292
|
-
assert_nil json[:account_identifier]
|
|
293
|
-
assert_nil json[:account_display_name]
|
|
294
|
-
assert_nil json[:user_id]
|
|
295
|
-
assert_nil json[:organization_id]
|
|
296
|
-
assert_equal fixture["created_at"], json[:created_at]
|
|
297
|
-
assert_equal fixture["updated_at"], json[:updated_at]
|
|
298
|
-
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
299
|
-
end
|
|
300
|
-
|
|
301
314
|
def test_data_integrations_list_response_round_trip
|
|
302
315
|
fixture = {
|
|
303
316
|
"object" => "list",
|
|
@@ -309,40 +322,6 @@ class PipesModelRoundTripTest < Minitest::Test
|
|
|
309
322
|
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
310
323
|
end
|
|
311
324
|
|
|
312
|
-
def test_connected_account_round_trip
|
|
313
|
-
fixture = {
|
|
314
|
-
"object" => "connected_account",
|
|
315
|
-
"id" => "stub",
|
|
316
|
-
"connection_role" => "stub",
|
|
317
|
-
"account_identifier" => nil,
|
|
318
|
-
"account_display_name" => nil,
|
|
319
|
-
"user_id" => nil,
|
|
320
|
-
"organization_id" => nil,
|
|
321
|
-
"scopes" => [],
|
|
322
|
-
"auth_method" => "stub",
|
|
323
|
-
"api_key_last_4" => nil,
|
|
324
|
-
"client_id" => nil,
|
|
325
|
-
"client_secret_last_4" => nil,
|
|
326
|
-
"config" => {},
|
|
327
|
-
"state" => "stub",
|
|
328
|
-
"established_by_user_id" => nil,
|
|
329
|
-
"state_reason" => nil,
|
|
330
|
-
"created_at" => "stub",
|
|
331
|
-
"updated_at" => "stub"
|
|
332
|
-
}
|
|
333
|
-
model = WorkOS::ConnectedAccount.new(fixture.to_json)
|
|
334
|
-
json = model.to_h
|
|
335
|
-
assert_kind_of Hash, json
|
|
336
|
-
assert_equal fixture["id"], json[:id]
|
|
337
|
-
assert_nil json[:account_identifier]
|
|
338
|
-
assert_nil json[:account_display_name]
|
|
339
|
-
assert_nil json[:user_id]
|
|
340
|
-
assert_nil json[:organization_id]
|
|
341
|
-
assert_equal fixture["created_at"], json[:created_at]
|
|
342
|
-
assert_equal fixture["updated_at"], json[:updated_at]
|
|
343
|
-
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
344
|
-
end
|
|
345
|
-
|
|
346
325
|
def test_data_integrations_list_response_data_round_trip
|
|
347
326
|
fixture = {
|
|
348
327
|
"object" => "data_provider",
|
|
@@ -375,18 +354,6 @@ class PipesModelRoundTripTest < Minitest::Test
|
|
|
375
354
|
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
376
355
|
end
|
|
377
356
|
|
|
378
|
-
def test_connected_account_write_response_warning_round_trip
|
|
379
|
-
fixture = {
|
|
380
|
-
"code" => "duplicate_account_display_name",
|
|
381
|
-
"message" => "stub"
|
|
382
|
-
}
|
|
383
|
-
model = WorkOS::ConnectedAccountWriteResponseWarning.new(fixture.to_json)
|
|
384
|
-
json = model.to_h
|
|
385
|
-
assert_kind_of Hash, json
|
|
386
|
-
assert_equal fixture["message"], json[:message]
|
|
387
|
-
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
388
|
-
end
|
|
389
|
-
|
|
390
357
|
def test_data_integration_access_token_response_access_token_round_trip
|
|
391
358
|
fixture = {
|
|
392
359
|
"object" => "access_token",
|
|
@@ -403,6 +370,18 @@ class PipesModelRoundTripTest < Minitest::Test
|
|
|
403
370
|
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
404
371
|
end
|
|
405
372
|
|
|
373
|
+
def test_connected_account_warning_round_trip
|
|
374
|
+
fixture = {
|
|
375
|
+
"code" => "duplicate_account_display_name",
|
|
376
|
+
"message" => "stub"
|
|
377
|
+
}
|
|
378
|
+
model = WorkOS::ConnectedAccountWarning.new(fixture.to_json)
|
|
379
|
+
json = model.to_h
|
|
380
|
+
assert_kind_of Hash, json
|
|
381
|
+
assert_equal fixture["message"], json[:message]
|
|
382
|
+
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
383
|
+
end
|
|
384
|
+
|
|
406
385
|
def test_data_integration_credential_round_trip
|
|
407
386
|
fixture = {
|
|
408
387
|
"type" => "stub",
|
|
@@ -468,42 +447,21 @@ class PipesModelRoundTripTest < Minitest::Test
|
|
|
468
447
|
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
469
448
|
end
|
|
470
449
|
|
|
471
|
-
def
|
|
450
|
+
def test_data_integrations_finish_connection_request_round_trip
|
|
472
451
|
fixture = {
|
|
473
|
-
"
|
|
474
|
-
"
|
|
475
|
-
"
|
|
476
|
-
"organization_id" => "stub",
|
|
477
|
-
"connection_owner" => "stub",
|
|
478
|
-
"secret" => "stub",
|
|
479
|
-
"connection_intent" => "add"
|
|
480
|
-
}
|
|
481
|
-
model = WorkOS::DataIntegrationsCreateApiKeyConnectionRequest.new(fixture.to_json)
|
|
482
|
-
json = model.to_h
|
|
483
|
-
assert_kind_of Hash, json
|
|
484
|
-
assert_equal fixture["user_id"], json[:user_id]
|
|
485
|
-
assert_equal fixture["secret"], json[:secret]
|
|
486
|
-
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
487
|
-
end
|
|
488
|
-
|
|
489
|
-
def test_data_integrations_upsert_api_key_request_round_trip
|
|
490
|
-
fixture = {
|
|
491
|
-
"account_display_name" => nil,
|
|
492
|
-
"account_identifier" => nil,
|
|
493
|
-
"user_id" => "stub",
|
|
494
|
-
"organization_id" => "stub",
|
|
495
|
-
"connection_owner" => "stub",
|
|
496
|
-
"secret" => "stub"
|
|
452
|
+
"connect_code" => "stub",
|
|
453
|
+
"code_verifier" => "stub",
|
|
454
|
+
"state" => "stub"
|
|
497
455
|
}
|
|
498
|
-
model = WorkOS::
|
|
456
|
+
model = WorkOS::DataIntegrationsFinishConnectionRequest.new(fixture.to_json)
|
|
499
457
|
json = model.to_h
|
|
500
458
|
assert_kind_of Hash, json
|
|
501
|
-
assert_equal fixture["
|
|
502
|
-
assert_equal fixture["
|
|
459
|
+
assert_equal fixture["connect_code"], json[:connect_code]
|
|
460
|
+
assert_equal fixture["code_verifier"], json[:code_verifier]
|
|
503
461
|
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
504
462
|
end
|
|
505
463
|
|
|
506
|
-
def
|
|
464
|
+
def test_data_integrations_create_api_key_connection_request_round_trip
|
|
507
465
|
fixture = {
|
|
508
466
|
"account_display_name" => nil,
|
|
509
467
|
"account_identifier" => nil,
|
|
@@ -511,19 +469,17 @@ class PipesModelRoundTripTest < Minitest::Test
|
|
|
511
469
|
"organization_id" => "stub",
|
|
512
470
|
"connection_owner" => "stub",
|
|
513
471
|
"secret" => "stub",
|
|
514
|
-
"connection_intent" => "
|
|
515
|
-
"connected_account_id" => "stub"
|
|
472
|
+
"connection_intent" => "add"
|
|
516
473
|
}
|
|
517
|
-
model = WorkOS::
|
|
474
|
+
model = WorkOS::DataIntegrationsCreateApiKeyConnectionRequest.new(fixture.to_json)
|
|
518
475
|
json = model.to_h
|
|
519
476
|
assert_kind_of Hash, json
|
|
520
477
|
assert_equal fixture["user_id"], json[:user_id]
|
|
521
478
|
assert_equal fixture["secret"], json[:secret]
|
|
522
|
-
assert_equal fixture["connected_account_id"], json[:connected_account_id]
|
|
523
479
|
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
524
480
|
end
|
|
525
481
|
|
|
526
|
-
def
|
|
482
|
+
def test_data_integrations_upsert_api_key_request_round_trip
|
|
527
483
|
fixture = {
|
|
528
484
|
"account_display_name" => nil,
|
|
529
485
|
"account_identifier" => nil,
|
|
@@ -531,14 +487,14 @@ class PipesModelRoundTripTest < Minitest::Test
|
|
|
531
487
|
"organization_id" => "stub",
|
|
532
488
|
"connection_owner" => "stub",
|
|
533
489
|
"secret" => "stub",
|
|
490
|
+
"connection_intent" => "reauthorize",
|
|
534
491
|
"connected_account_id" => "stub"
|
|
535
492
|
}
|
|
536
|
-
model = WorkOS::
|
|
493
|
+
model = WorkOS::DataIntegrationsUpsertApiKeyRequest.new(fixture.to_json)
|
|
537
494
|
json = model.to_h
|
|
538
495
|
assert_kind_of Hash, json
|
|
539
496
|
assert_equal fixture["user_id"], json[:user_id]
|
|
540
497
|
assert_equal fixture["secret"], json[:secret]
|
|
541
|
-
assert_equal fixture["connected_account_id"], json[:connected_account_id]
|
|
542
498
|
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
543
499
|
end
|
|
544
500
|
|
|
@@ -549,48 +505,16 @@ class PipesModelRoundTripTest < Minitest::Test
|
|
|
549
505
|
"organization_id" => "stub",
|
|
550
506
|
"connection_owner" => "stub",
|
|
551
507
|
"return_to" => "stub",
|
|
552
|
-
"
|
|
553
|
-
|
|
554
|
-
model = WorkOS::DataIntegrationsGetDataIntegrationAuthorizeUrlRequest.new(fixture.to_json)
|
|
555
|
-
json = model.to_h
|
|
556
|
-
assert_kind_of Hash, json
|
|
557
|
-
assert_equal fixture["user_id"], json[:user_id]
|
|
558
|
-
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
559
|
-
end
|
|
560
|
-
|
|
561
|
-
def test_add_data_integrations_get_data_integration_authorize_url_request_round_trip
|
|
562
|
-
fixture = {
|
|
563
|
-
"account_display_name" => nil,
|
|
564
|
-
"user_id" => "stub",
|
|
565
|
-
"organization_id" => "stub",
|
|
566
|
-
"connection_owner" => "stub",
|
|
567
|
-
"return_to" => "stub",
|
|
568
|
-
"config" => {},
|
|
569
|
-
"connection_intent" => "add"
|
|
570
|
-
}
|
|
571
|
-
model = WorkOS::AddDataIntegrationsGetDataIntegrationAuthorizeUrlRequest.new(fixture.to_json)
|
|
572
|
-
json = model.to_h
|
|
573
|
-
assert_kind_of Hash, json
|
|
574
|
-
assert_equal fixture["user_id"], json[:user_id]
|
|
575
|
-
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
576
|
-
end
|
|
577
|
-
|
|
578
|
-
def test_reauthorize_data_integrations_get_data_integration_authorize_url_request_round_trip
|
|
579
|
-
fixture = {
|
|
580
|
-
"account_display_name" => nil,
|
|
581
|
-
"user_id" => "stub",
|
|
582
|
-
"organization_id" => "stub",
|
|
583
|
-
"connection_owner" => "stub",
|
|
584
|
-
"return_to" => "stub",
|
|
508
|
+
"code_challenge" => "stub",
|
|
509
|
+
"code_challenge_method" => "S256",
|
|
585
510
|
"config" => {},
|
|
586
|
-
"connection_intent" => "
|
|
511
|
+
"connection_intent" => "stub",
|
|
587
512
|
"connected_account_id" => "stub"
|
|
588
513
|
}
|
|
589
|
-
model = WorkOS::
|
|
514
|
+
model = WorkOS::DataIntegrationsGetDataIntegrationAuthorizeUrlRequest.new(fixture.to_json)
|
|
590
515
|
json = model.to_h
|
|
591
516
|
assert_kind_of Hash, json
|
|
592
517
|
assert_equal fixture["user_id"], json[:user_id]
|
|
593
|
-
assert_equal fixture["connected_account_id"], json[:connected_account_id]
|
|
594
518
|
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
595
519
|
end
|
|
596
520
|
|
|
@@ -616,26 +540,6 @@ class PipesModelRoundTripTest < Minitest::Test
|
|
|
616
540
|
end
|
|
617
541
|
|
|
618
542
|
def test_data_integrations_upsert_client_credentials_request_round_trip
|
|
619
|
-
fixture = {
|
|
620
|
-
"account_display_name" => nil,
|
|
621
|
-
"account_identifier" => nil,
|
|
622
|
-
"user_id" => "stub",
|
|
623
|
-
"organization_id" => "stub",
|
|
624
|
-
"connection_owner" => "stub",
|
|
625
|
-
"client_id" => "stub",
|
|
626
|
-
"client_secret" => "stub",
|
|
627
|
-
"config" => {}
|
|
628
|
-
}
|
|
629
|
-
model = WorkOS::DataIntegrationsUpsertClientCredentialsRequest.new(fixture.to_json)
|
|
630
|
-
json = model.to_h
|
|
631
|
-
assert_kind_of Hash, json
|
|
632
|
-
assert_equal fixture["user_id"], json[:user_id]
|
|
633
|
-
assert_equal fixture["client_id"], json[:client_id]
|
|
634
|
-
assert_equal fixture["client_secret"], json[:client_secret]
|
|
635
|
-
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
636
|
-
end
|
|
637
|
-
|
|
638
|
-
def test_reauthorize_data_integrations_upsert_client_credentials_request_round_trip
|
|
639
543
|
fixture = {
|
|
640
544
|
"account_display_name" => nil,
|
|
641
545
|
"account_identifier" => nil,
|
|
@@ -648,35 +552,12 @@ class PipesModelRoundTripTest < Minitest::Test
|
|
|
648
552
|
"connection_intent" => "reauthorize",
|
|
649
553
|
"connected_account_id" => "stub"
|
|
650
554
|
}
|
|
651
|
-
model = WorkOS::
|
|
652
|
-
json = model.to_h
|
|
653
|
-
assert_kind_of Hash, json
|
|
654
|
-
assert_equal fixture["user_id"], json[:user_id]
|
|
655
|
-
assert_equal fixture["client_id"], json[:client_id]
|
|
656
|
-
assert_equal fixture["client_secret"], json[:client_secret]
|
|
657
|
-
assert_equal fixture["connected_account_id"], json[:connected_account_id]
|
|
658
|
-
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
659
|
-
end
|
|
660
|
-
|
|
661
|
-
def test_data_integrations_upsert_client_credentials_request_2_round_trip
|
|
662
|
-
fixture = {
|
|
663
|
-
"account_display_name" => nil,
|
|
664
|
-
"account_identifier" => nil,
|
|
665
|
-
"user_id" => "stub",
|
|
666
|
-
"organization_id" => "stub",
|
|
667
|
-
"connection_owner" => "stub",
|
|
668
|
-
"client_id" => "stub",
|
|
669
|
-
"client_secret" => "stub",
|
|
670
|
-
"config" => {},
|
|
671
|
-
"connected_account_id" => "stub"
|
|
672
|
-
}
|
|
673
|
-
model = WorkOS::DataIntegrationsUpsertClientCredentialsRequest2.new(fixture.to_json)
|
|
555
|
+
model = WorkOS::DataIntegrationsUpsertClientCredentialsRequest.new(fixture.to_json)
|
|
674
556
|
json = model.to_h
|
|
675
557
|
assert_kind_of Hash, json
|
|
676
558
|
assert_equal fixture["user_id"], json[:user_id]
|
|
677
559
|
assert_equal fixture["client_id"], json[:client_id]
|
|
678
560
|
assert_equal fixture["client_secret"], json[:client_secret]
|
|
679
|
-
assert_equal fixture["connected_account_id"], json[:connected_account_id]
|
|
680
561
|
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
681
562
|
end
|
|
682
563
|
|
|
@@ -730,6 +611,7 @@ class PipesModelRoundTripTest < Minitest::Test
|
|
|
730
611
|
"state_reason" => nil,
|
|
731
612
|
"created_at" => "stub",
|
|
732
613
|
"updated_at" => "stub",
|
|
614
|
+
"warnings" => [],
|
|
733
615
|
"userlandUserId" => nil
|
|
734
616
|
}
|
|
735
617
|
model = WorkOS::DataIntegrationsListResponseDataConnectedAccount.new(fixture.to_json)
|
|
@@ -745,4 +627,16 @@ class PipesModelRoundTripTest < Minitest::Test
|
|
|
745
627
|
assert_nil json[:userlandUserId]
|
|
746
628
|
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
747
629
|
end
|
|
630
|
+
|
|
631
|
+
def test_data_integrations_list_response_data_connected_account_warning_round_trip
|
|
632
|
+
fixture = {
|
|
633
|
+
"code" => "duplicate_account_display_name",
|
|
634
|
+
"message" => "stub"
|
|
635
|
+
}
|
|
636
|
+
model = WorkOS::DataIntegrationsListResponseDataConnectedAccountWarning.new(fixture.to_json)
|
|
637
|
+
json = model.to_h
|
|
638
|
+
assert_kind_of Hash, json
|
|
639
|
+
assert_equal fixture["message"], json[:message]
|
|
640
|
+
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
641
|
+
end
|
|
748
642
|
end
|