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
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,117 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [10.6.0](https://github.com/workos/workos-ruby/compare/v10.5.0...v10.6.0) (2026-11-04)
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* Send Idempotency-Key on the first POST attempt ([#567](https://github.com/workos/workos-ruby/issues/567)) ([fc5fb6c](https://github.com/workos/workos-ruby/commit/fc5fb6cfab255969203a7285d1308053cb72998e))
|
|
8
|
+
|
|
9
|
+
* [#572](https://github.com/workos/workos-ruby/pull/572) feat(generated)!: regenerate from spec (5 changes)
|
|
10
|
+
|
|
11
|
+
**⚠️ Breaking**
|
|
12
|
+
* **[groups](https://workos.com/docs/reference/groups)**:
|
|
13
|
+
* Removed model `ReplaceGroupMemberships`
|
|
14
|
+
* Removed endpoint `PUT /organizations/{organizationId}/groups/{groupId}/organization-memberships`
|
|
15
|
+
* **[pipes](https://workos.com/docs/reference/pipes)**:
|
|
16
|
+
* Removed model `ConnectedAccountWriteResponse`
|
|
17
|
+
* Removed model `ConnectedAccountWriteResponseWarning`
|
|
18
|
+
* Removed enum `ConnectedAccountWriteResponseConnectionRole`
|
|
19
|
+
* Removed enum `ConnectedAccountWriteResponseAuthMethod`
|
|
20
|
+
* Removed enum `ConnectedAccountWriteResponseState`
|
|
21
|
+
* Removed model `ReauthorizeDataIntegrationsUpsertApiKeyRequest`
|
|
22
|
+
* Removed model `DataIntegrationsUpsertApiKeyRequest2`
|
|
23
|
+
* Removed model `AddDataIntegrationsGetDataIntegrationAuthorizeUrlRequest`
|
|
24
|
+
* Removed model `ReauthorizeDataIntegrationsGetDataIntegrationAuthorizeUrlRequest`
|
|
25
|
+
* Removed model `ReauthorizeDataIntegrationsUpsertClientCredentialsRequest`
|
|
26
|
+
* Removed model `DataIntegrationsUpsertClientCredentialsRequest2`
|
|
27
|
+
* Removed enum `ReauthorizeDataIntegrationsUpsertApiKeyRequestConnectionOwner`
|
|
28
|
+
* Removed enum `DataIntegrationsUpsertApiKeyRequest2ConnectionOwner`
|
|
29
|
+
* Removed enum `AddDataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionOwner`
|
|
30
|
+
* Removed enum `ReauthorizeDataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionOwner`
|
|
31
|
+
* Removed enum `ReauthorizeDataIntegrationsUpsertClientCredentialsRequestConnectionOwner`
|
|
32
|
+
* Removed enum `DataIntegrationsUpsertClientCredentialsRequest2ConnectionOwner`
|
|
33
|
+
|
|
34
|
+
**Features**
|
|
35
|
+
* **[admin_portal](https://workos.com/docs/reference/admin-portal)**:
|
|
36
|
+
* Added `action_denied` to `ErrorBodyCode`
|
|
37
|
+
* Added `group_membership_update_overlap` to `ErrorBodyCode`
|
|
38
|
+
* **[connect](https://workos.com/docs/reference/workos-connect/standalone)**:
|
|
39
|
+
* Added `cors_origins` to Connect models
|
|
40
|
+
* **[events](https://workos.com/docs/reference/events)**:
|
|
41
|
+
* Changed parameter `Events.list.range_start`
|
|
42
|
+
* Changed parameter `Events.list.range_end`
|
|
43
|
+
* **[groups](https://workos.com/docs/reference/groups)**:
|
|
44
|
+
* Added model `PatchGroupMemberships`
|
|
45
|
+
* Added endpoint `PATCH /organizations/{organizationId}/groups/{groupId}/organization-memberships`
|
|
46
|
+
* Added model `ReplaceGroupMemberships`
|
|
47
|
+
* Added endpoint `PUT /organizations/{organizationId}/groups/{groupId}/organization-memberships`
|
|
48
|
+
* **[organizations](https://workos.com/docs/reference/organization)**:
|
|
49
|
+
* Changed errors for endpoint `POST /organizations/{organization_id}/it_contacts/{contact_id}/invite`
|
|
50
|
+
* **[pipes](https://workos.com/docs/reference/pipes)**:
|
|
51
|
+
* Added model `DataIntegrationFinishConnectionResponse`
|
|
52
|
+
* Added model `DataIntegrationsFinishConnectionRequest`
|
|
53
|
+
* Added model `DataIntegrationsFinishConnectionError400`
|
|
54
|
+
* Added model `DataIntegrationsFinishConnectionError4002`
|
|
55
|
+
* Added model `DataIntegrationsFinishConnectionError403`
|
|
56
|
+
* Added model `DataIntegrationsGetDataIntegrationAuthorizeUrlError4002`
|
|
57
|
+
* Added `completion` to `DataIntegrationAuthorizeUrlResponse`
|
|
58
|
+
* Added `code_challenge` to `DataIntegrationsGetDataIntegrationAuthorizeUrlRequest`
|
|
59
|
+
* Added `code_challenge_method` to `DataIntegrationsGetDataIntegrationAuthorizeUrlRequest`
|
|
60
|
+
* Added `code` to `DataIntegrationsGetDataIntegrationAuthorizeUrlError400`
|
|
61
|
+
* Added enum `DataIntegrationsFinishConnectionError400Code`
|
|
62
|
+
* Added enum `DataIntegrationsGetDataIntegrationAuthorizeUrlError400Code`
|
|
63
|
+
* Added endpoint `POST /data-integrations/finish`
|
|
64
|
+
* Added model `ConnectedAccountWarning`
|
|
65
|
+
* Added model `DataIntegrationsListResponseDataConnectedAccountWarning`
|
|
66
|
+
* Added `warnings` to `ConnectedAccount`
|
|
67
|
+
* Added `warnings` to `DataIntegrationsListResponseDataConnectedAccount`
|
|
68
|
+
* Added `connection_intent` to `DataIntegrationsUpsertApiKeyRequest`
|
|
69
|
+
* Added `connected_account_id` to `DataIntegrationsUpsertApiKeyRequest`
|
|
70
|
+
* Added `connection_intent` to `DataIntegrationsGetDataIntegrationAuthorizeUrlRequest`
|
|
71
|
+
* Added `connected_account_id` to `DataIntegrationsGetDataIntegrationAuthorizeUrlRequest`
|
|
72
|
+
* Added `connection_intent` to `DataIntegrationsUpsertClientCredentialsRequest`
|
|
73
|
+
* Added `connected_account_id` to `DataIntegrationsUpsertClientCredentialsRequest`
|
|
74
|
+
* Added enum `DataIntegrationsGetDataIntegrationAuthorizeUrlRequestConnectionIntent`
|
|
75
|
+
* **[user_management](https://workos.com/docs/reference/authkit/user)**:
|
|
76
|
+
* Added model `SendVerificationEmail`
|
|
77
|
+
* Added `locale` to `CreateMagicCodeAndReturn`
|
|
78
|
+
* Added `locale` to `CreatePasswordResetToken`
|
|
79
|
+
* Added `locale` to `SendEmailChange`
|
|
80
|
+
* Added enum `CreateMagicCodeAndReturnLocale`
|
|
81
|
+
* Added enum `SendVerificationEmailLocale`
|
|
82
|
+
* Added enum `CreatePasswordResetTokenLocale`
|
|
83
|
+
* Added enum `SendEmailChangeLocale`
|
|
84
|
+
* **[widgets](https://workos.com/docs/reference/widgets)**:
|
|
85
|
+
* Added `widgets:user-api-keys:manage-self` to `WidgetSessionTokenScopes`
|
|
86
|
+
* Added `widgets:user-api-keys:manage-all` to `WidgetSessionTokenScopes`
|
|
87
|
+
|
|
88
|
+
**Fixes**
|
|
89
|
+
* **[organizations](https://workos.com/docs/reference/organization)**:
|
|
90
|
+
* Changed errors for endpoint `POST /organizations/{organization_id}/it_contacts/{contact_id}/invite`
|
|
91
|
+
* **[pipes](https://workos.com/docs/reference/pipes)**:
|
|
92
|
+
* Changed the type of `DataIntegrationsGetDataIntegrationAuthorizeUrlError400.message`
|
|
93
|
+
* Changed errors for endpoint `POST /data-integrations/{slug}/authorize`
|
|
94
|
+
* Changed response of `Pipes.createApiKeyConnection` from `ConnectedAccountWriteResponse` to `ConnectedAccount`
|
|
95
|
+
* Changed response of `Pipes.upsertApiKey` from `ConnectedAccountWriteResponse` to `ConnectedAccount`
|
|
96
|
+
* Changed response of `Pipes.createClientCredentialsConnection` from `ConnectedAccountWriteResponse` to `ConnectedAccount`
|
|
97
|
+
* Changed response of `Pipes.upsertClientCredentials` from `ConnectedAccountWriteResponse` to `ConnectedAccount`
|
|
98
|
+
* Changed response of `OrganizationsDataProviders.createOrganizationDataInstallation` from `ConnectedAccountWriteResponse` to `ConnectedAccount`
|
|
99
|
+
* Changed response of `OrganizationsDataProviders.updateOrganizationDataInstallation` from `ConnectedAccountWriteResponse` to `ConnectedAccount`
|
|
100
|
+
* Changed response of `UserManagementDataProviders.createUserDataInstallation` from `ConnectedAccountWriteResponse` to `ConnectedAccount`
|
|
101
|
+
* Changed response of `UserManagementDataProviders.updateUserDataInstallation` from `ConnectedAccountWriteResponse` to `ConnectedAccount`
|
|
102
|
+
* Changed request body for `Pipes.upsertApiKey`
|
|
103
|
+
* Changed request body for `Pipes.getDataIntegrationAuthorizeUrl`
|
|
104
|
+
* Changed request body for `Pipes.upsertClientCredentials`
|
|
105
|
+
* **[sso](https://workos.com/docs/reference/sso)**:
|
|
106
|
+
* Changed errors for endpoint `POST /sso/logout/authorize`
|
|
107
|
+
* **[user_management](https://workos.com/docs/reference/authkit/user)**:
|
|
108
|
+
* Changed errors for endpoint `POST /user_management/authenticate`
|
|
109
|
+
* Changed request body for `UserManagementUsers.sendVerificationEmail`
|
|
110
|
+
* Changed errors for endpoint `POST /user_management/users/{id}/email_verification/send`
|
|
111
|
+
* Changed errors for endpoint `POST /user_management/invitations`
|
|
112
|
+
* Changed errors for endpoint `POST /user_management/invitations/{id}/resend`
|
|
113
|
+
* Changed errors for endpoint `POST /user_management/waitlist_entries/{id}/approve`
|
|
114
|
+
|
|
3
115
|
## [10.5.0](https://github.com/workos/workos-ruby/compare/v10.4.0...v10.5.0) (2026-10-19)
|
|
4
116
|
|
|
5
117
|
* [#558](https://github.com/workos/workos-ruby/pull/558) feat(generated): regenerate from spec
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
workos (10.
|
|
4
|
+
workos (10.6.0)
|
|
5
5
|
jwt (~> 3.1)
|
|
6
6
|
logger (~> 1.7)
|
|
7
7
|
zeitwerk (~> 2.6)
|
|
@@ -153,7 +153,7 @@ CHECKSUMS
|
|
|
153
153
|
unicode-emoji (4.2.0) sha256=519e69150f75652e40bf736106cfbc8f0f73aa3fb6a65afe62fefa7f80b0f80f
|
|
154
154
|
webmock (3.26.2) sha256=774556f2ea6371846cca68c01769b2eac0d134492d21f6d0ab5dd643965a4c90
|
|
155
155
|
webrick (1.9.2) sha256=beb4a15fc474defed24a3bda4ffd88a490d517c9e4e6118c3edce59e45864131
|
|
156
|
-
workos (10.
|
|
156
|
+
workos (10.6.0)
|
|
157
157
|
yard (0.9.45) sha256=52e211493f7cb8a3ebf7e104a25a1e73937a3103092545d34cb88fafebb3dc51
|
|
158
158
|
yard-markdown (0.9.1) sha256=51adf55a814172f70ed81fbd1af4dc42c0e1a698915f7da33eff5a3bb527062d
|
|
159
159
|
zeitwerk (2.7.5) sha256=d8da92128c09ea6ec62c949011b00ed4a20242b255293dd66bf41545398f73dd
|
data/README.md
CHANGED
|
@@ -100,10 +100,10 @@ organization = WorkOS.client.organizations.get_organization(
|
|
|
100
100
|
)
|
|
101
101
|
```
|
|
102
102
|
|
|
103
|
-
`Idempotency-Key` is only sent on `POST`, `PUT`, and `PATCH` requests
|
|
103
|
+
`Idempotency-Key` is only sent on `POST`, `PUT`, and `PATCH` requests, and never on `GET` or `DELETE`. Every `POST` carries one: the key you provide in `request_options[:idempotency_key]`, or one the SDK generates before the first attempt and reuses on every retry. `PUT` and `PATCH` requests carry one when you provide it, or when the SDK retries them after a transient failure.
|
|
104
104
|
|
|
105
105
|
> [!NOTE]
|
|
106
|
-
> The WorkOS API currently honors `Idempotency-Key` only on the [Create Audit Log Event](https://workos.com/docs/reference/audit-logs/event) endpoint (`audit_logs.create_event`). Other endpoints accept the header but do not deduplicate requests, so a retried mutation elsewhere can still create a duplicate.
|
|
106
|
+
> The WorkOS API currently honors `Idempotency-Key` only on the [Create Audit Log Event](https://workos.com/docs/reference/audit-logs/event) endpoint (`audit_logs.create_event`) and on Pipes explicit adds (`pipes.create_data_integration_api_key`, `pipes.create_data_integration_client_credential`, and `pipes.create_user_connected_account` / `pipes.create_organization_connected_account` with `connection_intent: "add"`). Other endpoints accept the header but do not deduplicate requests, so a retried mutation elsewhere can still create a duplicate.
|
|
107
107
|
|
|
108
108
|
## Usage Examples
|
|
109
109
|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
module WorkOS
|
|
6
|
+
class ListMetadata < WorkOS::Types::BaseModel
|
|
7
|
+
HASH_ATTRS = {
|
|
8
|
+
after: :after,
|
|
9
|
+
before: :before
|
|
10
|
+
}.freeze
|
|
11
|
+
|
|
12
|
+
attr_accessor \
|
|
13
|
+
:after,
|
|
14
|
+
:before
|
|
15
|
+
|
|
16
|
+
def initialize(json)
|
|
17
|
+
hash = self.class.normalize(json)
|
|
18
|
+
@after = hash[:after]
|
|
19
|
+
@before = hash[:before]
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
module WorkOS
|
|
6
|
+
class ApiKeyDataIntegrationVendedCredential < WorkOS::Types::BaseModel
|
|
7
|
+
HASH_ATTRS = {
|
|
8
|
+
object: :object,
|
|
9
|
+
auth_method: :auth_method,
|
|
10
|
+
value: :value,
|
|
11
|
+
config: :config
|
|
12
|
+
}.freeze
|
|
13
|
+
|
|
14
|
+
attr_accessor \
|
|
15
|
+
:object,
|
|
16
|
+
:auth_method,
|
|
17
|
+
:value,
|
|
18
|
+
:config
|
|
19
|
+
|
|
20
|
+
def initialize(json)
|
|
21
|
+
hash = self.class.normalize(json)
|
|
22
|
+
@object = hash[:object]
|
|
23
|
+
@auth_method = hash[:auth_method]
|
|
24
|
+
@value = hash[:value]
|
|
25
|
+
@config = hash[:config] || {}
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
module WorkOS
|
|
6
|
+
class PatchGroupRoleAssignments < WorkOS::Types::BaseModel
|
|
7
|
+
HASH_ATTRS = {
|
|
8
|
+
add: :add,
|
|
9
|
+
remove: :remove
|
|
10
|
+
}.freeze
|
|
11
|
+
|
|
12
|
+
attr_accessor \
|
|
13
|
+
:add,
|
|
14
|
+
:remove
|
|
15
|
+
|
|
16
|
+
def initialize(json)
|
|
17
|
+
hash = self.class.normalize(json)
|
|
18
|
+
@add = (hash[:add] || []).map { |item| item ? WorkOS::ReplaceGroupRoleAssignmentEntry.new(item) : nil }
|
|
19
|
+
@remove = (hash[:remove] || []).map { |item| item ? WorkOS::ReplaceGroupRoleAssignmentEntry.new(item) : nil }
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
data/lib/workos/authorization.rb
CHANGED
|
@@ -160,6 +160,32 @@ module WorkOS
|
|
|
160
160
|
)
|
|
161
161
|
end
|
|
162
162
|
|
|
163
|
+
# Update role assignments for a group
|
|
164
|
+
# @param group_id [String] The ID of the group.
|
|
165
|
+
# @param add [Array<WorkOS::ReplaceGroupRoleAssignmentEntry>, nil] Role assignments to add to the group. Assignments that already exist are skipped.
|
|
166
|
+
# @param remove [Array<WorkOS::ReplaceGroupRoleAssignmentEntry>, nil] Role assignments to remove from the group. Entries that match no assignment are skipped.
|
|
167
|
+
# @param request_options [Hash] (see WorkOS::Types::RequestOptions)
|
|
168
|
+
# @return [void]
|
|
169
|
+
def patch_group_role_assignments(
|
|
170
|
+
group_id:,
|
|
171
|
+
add: nil,
|
|
172
|
+
remove: nil,
|
|
173
|
+
request_options: {}
|
|
174
|
+
)
|
|
175
|
+
body = {
|
|
176
|
+
"add" => add,
|
|
177
|
+
"remove" => remove
|
|
178
|
+
}.compact
|
|
179
|
+
@client.request(
|
|
180
|
+
method: :patch,
|
|
181
|
+
path: "/authorization/groups/#{WorkOS::Util.encode_path(group_id)}/role_assignments",
|
|
182
|
+
auth: true,
|
|
183
|
+
body: body,
|
|
184
|
+
request_options: request_options
|
|
185
|
+
)
|
|
186
|
+
nil
|
|
187
|
+
end
|
|
188
|
+
|
|
163
189
|
# Remove group role assignments by criteria
|
|
164
190
|
# @param group_id [String] The ID of the group.
|
|
165
191
|
# @param role_slug [String] The slug of the role to remove assignments for.
|
data/lib/workos/base_client.rb
CHANGED
|
@@ -73,6 +73,9 @@ module WorkOS
|
|
|
73
73
|
req.body = body.nil? ? "" : body.to_json
|
|
74
74
|
req["Content-Type"] = "application/json"
|
|
75
75
|
inject_idempotency_key(req, request_options)
|
|
76
|
+
# Keyed before the first attempt, so a retry after a lost response
|
|
77
|
+
# carries the key the server already saw.
|
|
78
|
+
req["Idempotency-Key"] ||= SecureRandom.uuid
|
|
76
79
|
req
|
|
77
80
|
end
|
|
78
81
|
|
|
@@ -15,6 +15,7 @@ module WorkOS
|
|
|
15
15
|
updated_at: :updated_at,
|
|
16
16
|
application_type: :application_type,
|
|
17
17
|
redirect_uris: :redirect_uris,
|
|
18
|
+
cors_origins: :cors_origins,
|
|
18
19
|
uses_pkce: :uses_pkce,
|
|
19
20
|
is_first_party: :is_first_party,
|
|
20
21
|
was_dynamically_registered: :was_dynamically_registered,
|
|
@@ -32,6 +33,7 @@ module WorkOS
|
|
|
32
33
|
:updated_at,
|
|
33
34
|
:application_type,
|
|
34
35
|
:redirect_uris,
|
|
36
|
+
:cors_origins,
|
|
35
37
|
:uses_pkce,
|
|
36
38
|
:is_first_party,
|
|
37
39
|
:was_dynamically_registered,
|
|
@@ -49,6 +51,7 @@ module WorkOS
|
|
|
49
51
|
@updated_at = hash[:updated_at]
|
|
50
52
|
@application_type = hash[:application_type]
|
|
51
53
|
@redirect_uris = (hash[:redirect_uris] || []).map { |item| item ? WorkOS::ConnectApplicationRedirectUri.new(item) : nil }
|
|
54
|
+
@cors_origins = hash[:cors_origins] || []
|
|
52
55
|
@uses_pkce = hash[:uses_pkce]
|
|
53
56
|
@is_first_party = hash[:is_first_party]
|
|
54
57
|
@was_dynamically_registered = hash[:was_dynamically_registered]
|
|
@@ -10,6 +10,7 @@ module WorkOS
|
|
|
10
10
|
description: :description,
|
|
11
11
|
scopes: :scopes,
|
|
12
12
|
redirect_uris: :redirect_uris,
|
|
13
|
+
cors_origins: :cors_origins,
|
|
13
14
|
uses_pkce: :uses_pkce,
|
|
14
15
|
is_first_party: :is_first_party,
|
|
15
16
|
organization_id: :organization_id
|
|
@@ -21,6 +22,7 @@ module WorkOS
|
|
|
21
22
|
:description,
|
|
22
23
|
:scopes,
|
|
23
24
|
:redirect_uris,
|
|
25
|
+
:cors_origins,
|
|
24
26
|
:uses_pkce,
|
|
25
27
|
:is_first_party,
|
|
26
28
|
:organization_id
|
|
@@ -32,6 +34,7 @@ module WorkOS
|
|
|
32
34
|
@description = hash[:description]
|
|
33
35
|
@scopes = hash[:scopes] || []
|
|
34
36
|
@redirect_uris = (hash[:redirect_uris] || []).map { |item| item ? WorkOS::RedirectUriInput.new(item) : nil }
|
|
37
|
+
@cors_origins = hash[:cors_origins] || []
|
|
35
38
|
@uses_pkce = hash[:uses_pkce]
|
|
36
39
|
@is_first_party = hash[:is_first_party]
|
|
37
40
|
@organization_id = hash[:organization_id]
|
|
@@ -8,14 +8,16 @@ module WorkOS
|
|
|
8
8
|
name: :name,
|
|
9
9
|
description: :description,
|
|
10
10
|
scopes: :scopes,
|
|
11
|
-
redirect_uris: :redirect_uris
|
|
11
|
+
redirect_uris: :redirect_uris,
|
|
12
|
+
cors_origins: :cors_origins
|
|
12
13
|
}.freeze
|
|
13
14
|
|
|
14
15
|
attr_accessor \
|
|
15
16
|
:name,
|
|
16
17
|
:description,
|
|
17
18
|
:scopes,
|
|
18
|
-
:redirect_uris
|
|
19
|
+
:redirect_uris,
|
|
20
|
+
:cors_origins
|
|
19
21
|
|
|
20
22
|
def initialize(json)
|
|
21
23
|
hash = self.class.normalize(json)
|
|
@@ -23,6 +25,7 @@ module WorkOS
|
|
|
23
25
|
@description = hash[:description]
|
|
24
26
|
@scopes = hash[:scopes] || []
|
|
25
27
|
@redirect_uris = (hash[:redirect_uris] || []).map { |item| item ? WorkOS::RedirectUriInput.new(item) : nil }
|
|
28
|
+
@cors_origins = hash[:cors_origins] || []
|
|
26
29
|
end
|
|
27
30
|
end
|
|
28
31
|
end
|
data/lib/workos/connect.rb
CHANGED
|
@@ -97,6 +97,7 @@ module WorkOS
|
|
|
97
97
|
# @param description [String, nil] A description for the application.
|
|
98
98
|
# @param scopes [Array<String>, nil] The OAuth scopes granted to the application.
|
|
99
99
|
# @param redirect_uris [Array<WorkOS::RedirectUriInput>, nil] Redirect URIs for the application.
|
|
100
|
+
# @param cors_origins [Array<String>, nil] Origins allowed to call the OAuth token endpoint for this application from a browser.
|
|
100
101
|
# @param uses_pkce [Boolean, nil] Whether the application uses PKCE (Proof Key for Code Exchange).
|
|
101
102
|
# @param is_first_party [Boolean, nil] Whether this is a first-party application. Third-party applications require an organization_id.
|
|
102
103
|
# @param organization_id [String, nil] The organization ID this application belongs to. Required when is_first_party is false.
|
|
@@ -108,6 +109,7 @@ module WorkOS
|
|
|
108
109
|
description: WorkOS::OMIT,
|
|
109
110
|
scopes: WorkOS::OMIT,
|
|
110
111
|
redirect_uris: WorkOS::OMIT,
|
|
112
|
+
cors_origins: WorkOS::OMIT,
|
|
111
113
|
uses_pkce: WorkOS::OMIT,
|
|
112
114
|
is_first_party: nil,
|
|
113
115
|
organization_id: WorkOS::OMIT,
|
|
@@ -121,6 +123,7 @@ module WorkOS
|
|
|
121
123
|
body["description"] = description unless description.equal?(WorkOS::OMIT)
|
|
122
124
|
body["scopes"] = scopes unless scopes.equal?(WorkOS::OMIT)
|
|
123
125
|
body["redirect_uris"] = redirect_uris unless redirect_uris.equal?(WorkOS::OMIT)
|
|
126
|
+
body["cors_origins"] = cors_origins unless cors_origins.equal?(WorkOS::OMIT)
|
|
124
127
|
body["uses_pkce"] = uses_pkce unless uses_pkce.equal?(WorkOS::OMIT)
|
|
125
128
|
body["organization_id"] = organization_id unless organization_id.equal?(WorkOS::OMIT)
|
|
126
129
|
response = @client.request(
|
|
@@ -231,6 +234,7 @@ module WorkOS
|
|
|
231
234
|
# @param description [String, nil] A description for the application.
|
|
232
235
|
# @param scopes [Array<String>, nil] The OAuth scopes granted to the application.
|
|
233
236
|
# @param redirect_uris [Array<WorkOS::RedirectUriInput>, nil] Updated redirect URIs for the application. OAuth applications only.
|
|
237
|
+
# @param cors_origins [Array<String>, nil] Updated origins allowed to call the OAuth token endpoint for this application from a browser. Replaces the existing list. OAuth applications only.
|
|
234
238
|
# @param request_options [Hash] (see WorkOS::Types::RequestOptions)
|
|
235
239
|
# @return [WorkOS::ConnectApplication]
|
|
236
240
|
def update_application(
|
|
@@ -239,6 +243,7 @@ module WorkOS
|
|
|
239
243
|
description: WorkOS::OMIT,
|
|
240
244
|
scopes: WorkOS::OMIT,
|
|
241
245
|
redirect_uris: WorkOS::OMIT,
|
|
246
|
+
cors_origins: WorkOS::OMIT,
|
|
242
247
|
request_options: {}
|
|
243
248
|
)
|
|
244
249
|
body = {
|
|
@@ -247,6 +252,7 @@ module WorkOS
|
|
|
247
252
|
body["description"] = description unless description.equal?(WorkOS::OMIT)
|
|
248
253
|
body["scopes"] = scopes unless scopes.equal?(WorkOS::OMIT)
|
|
249
254
|
body["redirect_uris"] = redirect_uris unless redirect_uris.equal?(WorkOS::OMIT)
|
|
255
|
+
body["cors_origins"] = cors_origins unless cors_origins.equal?(WorkOS::OMIT)
|
|
250
256
|
response = @client.request(
|
|
251
257
|
method: :put,
|
|
252
258
|
path: "/connect/applications/#{WorkOS::Util.encode_path(id)}",
|
data/lib/workos/events.rb
CHANGED
|
@@ -11,32 +11,26 @@ module WorkOS
|
|
|
11
11
|
end
|
|
12
12
|
|
|
13
13
|
# List events
|
|
14
|
-
# @param before [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`.
|
|
15
14
|
# @param after [String, nil] An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`.
|
|
16
15
|
# @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
|
|
17
|
-
# @param order [WorkOS::Types::PaginationOrder, nil] Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records).
|
|
18
16
|
# @param events [Array<String>] Filter events by one or more event types (e.g. `dsync.user.created`).
|
|
19
|
-
# @param range_start [String, nil] ISO
|
|
20
|
-
# @param range_end [String, nil] ISO
|
|
17
|
+
# @param range_start [String, nil] ISO 8601 UTC timestamp with a `Z` suffix to filter events created after this date. Timezone offsets such as `+00:00` are not accepted.
|
|
18
|
+
# @param range_end [String, nil] ISO 8601 UTC timestamp with a `Z` suffix to filter events created before this date. Timezone offsets such as `+00:00` are not accepted.
|
|
21
19
|
# @param organization_id [String, nil] Filter events by the [Organization](https://workos.com/docs/reference/organization) that the event is associated with.
|
|
22
20
|
# @param request_options [Hash] (see WorkOS::Types::RequestOptions)
|
|
23
21
|
# @return [WorkOS::Types::ListStruct<WorkOS::EventSchema>]
|
|
24
22
|
def list_events(
|
|
25
23
|
events:,
|
|
26
|
-
before: nil,
|
|
27
24
|
after: nil,
|
|
28
25
|
limit: 10,
|
|
29
|
-
order: "desc",
|
|
30
26
|
range_start: nil,
|
|
31
27
|
range_end: nil,
|
|
32
28
|
organization_id: nil,
|
|
33
29
|
request_options: {}
|
|
34
30
|
)
|
|
35
31
|
params = {
|
|
36
|
-
"before" => before,
|
|
37
32
|
"after" => after,
|
|
38
33
|
"limit" => limit,
|
|
39
|
-
"order" => order,
|
|
40
34
|
"events" => events,
|
|
41
35
|
"range_start" => range_start,
|
|
42
36
|
"range_end" => range_end,
|
|
@@ -51,10 +45,8 @@ module WorkOS
|
|
|
51
45
|
)
|
|
52
46
|
fetch_next = ->(cursor) {
|
|
53
47
|
list_events(
|
|
54
|
-
before: before,
|
|
55
48
|
after: cursor,
|
|
56
49
|
limit: limit,
|
|
57
|
-
order: order,
|
|
58
50
|
events: events,
|
|
59
51
|
range_start: range_start,
|
|
60
52
|
range_end: range_end,
|
|
@@ -65,7 +57,7 @@ module WorkOS
|
|
|
65
57
|
WorkOS::Types::ListStruct.from_response(
|
|
66
58
|
response,
|
|
67
59
|
model: WorkOS::EventSchema,
|
|
68
|
-
filters: {
|
|
60
|
+
filters: {limit: limit, events: events, range_start: range_start, range_end: range_end, organization_id: organization_id},
|
|
69
61
|
fetch_next: fetch_next
|
|
70
62
|
)
|
|
71
63
|
end
|
|
@@ -3,50 +3,5 @@
|
|
|
3
3
|
# This file is auto-generated by oagen. Do not edit.
|
|
4
4
|
|
|
5
5
|
module WorkOS
|
|
6
|
-
|
|
7
|
-
HASH_ATTRS = {
|
|
8
|
-
object: :object,
|
|
9
|
-
id: :id,
|
|
10
|
-
environment_id: :environment_id,
|
|
11
|
-
slug: :slug,
|
|
12
|
-
name: :name,
|
|
13
|
-
description: :description,
|
|
14
|
-
owner: :owner,
|
|
15
|
-
tags: :tags,
|
|
16
|
-
enabled: :enabled,
|
|
17
|
-
default_value: :default_value,
|
|
18
|
-
created_at: :created_at,
|
|
19
|
-
updated_at: :updated_at
|
|
20
|
-
}.freeze
|
|
21
|
-
|
|
22
|
-
attr_accessor \
|
|
23
|
-
:object,
|
|
24
|
-
:id,
|
|
25
|
-
:environment_id,
|
|
26
|
-
:slug,
|
|
27
|
-
:name,
|
|
28
|
-
:description,
|
|
29
|
-
:owner,
|
|
30
|
-
:tags,
|
|
31
|
-
:enabled,
|
|
32
|
-
:default_value,
|
|
33
|
-
:created_at,
|
|
34
|
-
:updated_at
|
|
35
|
-
|
|
36
|
-
def initialize(json)
|
|
37
|
-
hash = self.class.normalize(json)
|
|
38
|
-
@object = hash[:object]
|
|
39
|
-
@id = hash[:id]
|
|
40
|
-
@environment_id = hash[:environment_id]
|
|
41
|
-
@slug = hash[:slug]
|
|
42
|
-
@name = hash[:name]
|
|
43
|
-
@description = hash[:description]
|
|
44
|
-
@owner = hash[:owner] ? WorkOS::FlagCreatedDataOwner.new(hash[:owner]) : nil
|
|
45
|
-
@tags = hash[:tags] || []
|
|
46
|
-
@enabled = hash[:enabled]
|
|
47
|
-
@default_value = hash[:default_value]
|
|
48
|
-
@created_at = hash[:created_at]
|
|
49
|
-
@updated_at = hash[:updated_at]
|
|
50
|
-
end
|
|
51
|
-
end
|
|
6
|
+
FlagCreatedData = FeatureFlagsFlagCreatedData
|
|
52
7
|
end
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
module WorkOS
|
|
6
|
+
class FlagRule < WorkOS::Types::BaseModel
|
|
7
|
+
HASH_ATTRS = {
|
|
8
|
+
object: :object,
|
|
9
|
+
id: :id,
|
|
10
|
+
flag_id: :flag_id,
|
|
11
|
+
flag_slug: :flag_slug,
|
|
12
|
+
environment_id: :environment_id,
|
|
13
|
+
target_type: :target_type,
|
|
14
|
+
position: :position,
|
|
15
|
+
value_type: :value_type,
|
|
16
|
+
value: :value,
|
|
17
|
+
created_at: :created_at,
|
|
18
|
+
updated_at: :updated_at
|
|
19
|
+
}.freeze
|
|
20
|
+
|
|
21
|
+
attr_accessor \
|
|
22
|
+
:object,
|
|
23
|
+
:id,
|
|
24
|
+
:flag_id,
|
|
25
|
+
:flag_slug,
|
|
26
|
+
:environment_id,
|
|
27
|
+
:target_type,
|
|
28
|
+
:position,
|
|
29
|
+
:value_type,
|
|
30
|
+
:value,
|
|
31
|
+
:created_at,
|
|
32
|
+
:updated_at
|
|
33
|
+
|
|
34
|
+
def initialize(json)
|
|
35
|
+
hash = self.class.normalize(json)
|
|
36
|
+
@object = hash[:object]
|
|
37
|
+
@id = hash[:id]
|
|
38
|
+
@flag_id = hash[:flag_id]
|
|
39
|
+
@flag_slug = hash[:flag_slug]
|
|
40
|
+
@environment_id = hash[:environment_id]
|
|
41
|
+
@target_type = hash[:target_type]
|
|
42
|
+
@position = hash[:position]
|
|
43
|
+
@value_type = hash[:value_type]
|
|
44
|
+
@value = hash[:value]
|
|
45
|
+
@created_at = hash[:created_at]
|
|
46
|
+
@updated_at = hash[:updated_at]
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
module WorkOS
|
|
6
|
+
class FlagTarget < WorkOS::Types::BaseModel
|
|
7
|
+
HASH_ATTRS = {
|
|
8
|
+
object: :object,
|
|
9
|
+
id: :id,
|
|
10
|
+
flag_id: :flag_id,
|
|
11
|
+
flag_slug: :flag_slug,
|
|
12
|
+
environment_id: :environment_id,
|
|
13
|
+
target_type: :target_type,
|
|
14
|
+
target_id: :target_id,
|
|
15
|
+
created_at: :created_at,
|
|
16
|
+
updated_at: :updated_at,
|
|
17
|
+
rule_id: :rule_id,
|
|
18
|
+
value_type: :value_type,
|
|
19
|
+
value: :value
|
|
20
|
+
}.freeze
|
|
21
|
+
|
|
22
|
+
attr_accessor \
|
|
23
|
+
:object,
|
|
24
|
+
:id,
|
|
25
|
+
:flag_id,
|
|
26
|
+
:flag_slug,
|
|
27
|
+
:environment_id,
|
|
28
|
+
:target_type,
|
|
29
|
+
:target_id,
|
|
30
|
+
:created_at,
|
|
31
|
+
:updated_at,
|
|
32
|
+
:rule_id,
|
|
33
|
+
:value_type,
|
|
34
|
+
:value
|
|
35
|
+
|
|
36
|
+
def initialize(json)
|
|
37
|
+
hash = self.class.normalize(json)
|
|
38
|
+
@object = hash[:object]
|
|
39
|
+
@id = hash[:id]
|
|
40
|
+
@flag_id = hash[:flag_id]
|
|
41
|
+
@flag_slug = hash[:flag_slug]
|
|
42
|
+
@environment_id = hash[:environment_id]
|
|
43
|
+
@target_type = hash[:target_type]
|
|
44
|
+
@target_id = hash[:target_id]
|
|
45
|
+
@created_at = hash[:created_at]
|
|
46
|
+
@updated_at = hash[:updated_at]
|
|
47
|
+
@rule_id = hash[:rule_id]
|
|
48
|
+
@value_type = hash[:value_type]
|
|
49
|
+
@value = hash[:value]
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|