workos 10.5.0 → 10.7.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 +415 -33
- data/.release-please-manifest.json +1 -1
- data/CHANGELOG.md +196 -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/audit_logs.rb +2 -2
- 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/client_api.rb +3 -3
- data/lib/workos/connect/connect_application.rb +3 -0
- data/lib/workos/connect/create_oauth_application.rb +3 -0
- data/lib/workos/connect/update_oauth_application.rb +5 -2
- data/lib/workos/connect.rb +6 -0
- data/lib/workos/directory_sync/directory_user_with_groups.rb +1 -1
- data/lib/workos/directory_sync.rb +160 -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_input.rb +3 -0
- data/lib/workos/pipes/{connected_account_write_response_warning.rb → connected_account_warning.rb} +1 -1
- data/lib/workos/pipes/create_connected_account.rb +6 -0
- data/lib/workos/pipes/create_organization_connected_account.rb +6 -0
- 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/organization_connected_account.rb +3 -0
- data/lib/workos/pipes.rb +80 -27
- data/lib/workos/pipes_provider.rb +12 -0
- data/lib/workos/session.rb +12 -0
- data/lib/workos/shared/access_denied_oauth_error_body.rb +22 -0
- data/lib/workos/shared/account_selection_required_error_body.rb +7 -0
- data/lib/workos/shared/agent_registration_claim_completed_data.rb +3 -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 +22 -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 +25 -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.rb +31 -0
- data/lib/workos/shared/sub_resource_scoped_role_not_allowed_error_body_with_role_slug.rb +25 -0
- data/lib/workos/shared/token_too_big_oauth_error_body.rb +22 -0
- data/lib/workos/shared/too_many_failed_verification_attempts_error_body_with_retry_after.rb +25 -0
- data/lib/workos/shared/too_many_requests_oauth_error_body.rb +22 -0
- data/lib/workos/shared/unauthorized_client_oauth_error_body.rb +22 -0
- data/lib/workos/shared/unauthorized_error_body.rb +18 -0
- data/lib/workos/shared/update_audit_logs_retention_with_retention_period.rb +18 -0
- data/lib/workos/shared/update_audit_logs_retention_with_retention_period_in_days.rb +26 -0
- data/lib/workos/shared/update_user_organization_membership_with_role_slug.rb +18 -0
- data/lib/workos/shared/update_user_organization_membership_with_role_slugs.rb +18 -0
- data/lib/workos/shared/verification_id_required_error_body.rb +22 -0
- data/lib/workos/sso/connection_could_not_be_verified_error_body.rb +22 -0
- data/lib/workos/sso/connection_creation_conflict_error_body.rb +22 -0
- data/lib/workos/sso/connection_creation_not_found_error_body.rb +22 -0
- data/lib/workos/sso/connection_finish_error_body.rb +22 -0
- data/lib/workos/sso/connection_type_not_updatable_error_body.rb +22 -0
- data/lib/workos/sso.rb +6 -2
- 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/connections_state.rb +14 -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/{connected_account_write_response_connection_role.rb → data_integration_vended_credential_auth_method.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 +182 -0
- data/lib/workos/types/feature_flags_flag_created_context_actor_source.rb +9 -0
- data/lib/workos/types/feature_flags_flag_deleted_context_actor_source.rb +9 -0
- data/lib/workos/types/feature_flags_flag_rule_created_context_actor_source.rb +9 -0
- data/lib/workos/types/feature_flags_flag_rule_deleted_context_actor_source.rb +9 -0
- data/lib/workos/types/feature_flags_flag_rule_updated_context_actor_source.rb +9 -0
- data/lib/workos/types/feature_flags_flag_target_created_context_actor_source.rb +9 -0
- data/lib/workos/types/feature_flags_flag_target_deleted_context_actor_source.rb +9 -0
- data/lib/workos/types/feature_flags_flag_updated_context_actor_source.rb +9 -0
- data/lib/workos/types/organization_connected_account_import_error_body_code.rb +14 -0
- data/lib/workos/types/pipes_ownership.rb +1 -1
- data/lib/workos/types/{connected_account_write_response_state.rb → pipes_provider_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/send_email_change_locale.rb +9 -0
- data/lib/workos/types/send_verification_email_locale.rb +9 -0
- data/lib/workos/types/update_audit_logs_retention_with_retention_period_retention_period.rb +9 -0
- data/lib/workos/types/user_connected_account_import_error_body_code.rb +15 -0
- data/lib/workos/types/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_email_verification_failed_data_error.rb +5 -2
- 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/authentication_radar_risk_detected_data.rb +5 -2
- 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/account_selection_required_error_body.rbi +9 -0
- data/rbi/workos/{connected_account_write_response_warning.rbi → action_denied_error_body.rbi} +1 -1
- data/rbi/workos/admin_portal.rbi +2 -2
- data/rbi/workos/agent_blueprint_invocable_by.rbi +1 -22
- data/rbi/workos/agent_blueprint_updated_data_invocable_by.rbi +1 -22
- data/rbi/workos/agent_blueprint_updated_data_session_setting.rbi +1 -28
- data/rbi/workos/agent_blueprints_create_request_session_setting.rbi +1 -28
- data/rbi/workos/agent_blueprints_update_request_invocable_by.rbi +1 -22
- data/rbi/workos/agent_registration_claim_completed_data.rbi +6 -0
- data/rbi/workos/agent_registration_expired_data.rbi +1 -16
- data/rbi/workos/agent_registration_refreshed_data.rbi +1 -16
- data/rbi/workos/agent_registration_revoked_data.rbi +1 -16
- 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_key_owner.rbi +1 -22
- data/rbi/workos/api_key_revoked_data.rbi +1 -70
- data/rbi/workos/api_key_revoked_data_owner.rbi +1 -22
- data/rbi/workos/api_key_updated_data_owner.rbi +1 -22
- data/rbi/workos/api_keys.rbi +5 -5
- data/rbi/workos/application_consent_required_error_body.rbi +30 -0
- data/rbi/workos/audit_log_event_target.rbi +1 -34
- data/rbi/workos/audit_log_schema_actor_input.rbi +1 -16
- data/rbi/workos/audit_log_schema_target_input.rbi +1 -22
- data/rbi/workos/audit_logs.rbi +10 -10
- data/rbi/workos/auth_method_mismatch_error_body.rbi +9 -0
- data/rbi/workos/authentication_email_verification_failed_data_error.rbi +6 -0
- data/rbi/workos/authentication_factor_sms.rbi +1 -16
- data/rbi/workos/authentication_magic_auth_failed_data_error.rbi +1 -22
- 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/authentication_mfa_failed_data_error.rbi +1 -22
- data/rbi/workos/authentication_oauth_failed_data_error.rbi +1 -22
- data/rbi/workos/authentication_passkey_failed_data_error.rbi +1 -22
- data/rbi/workos/authentication_password_failed_data_error.rbi +1 -22
- data/rbi/workos/authentication_radar_risk_detected_data.rbi +6 -0
- data/rbi/workos/authentication_sso_failed_data_error.rbi +1 -22
- data/rbi/workos/authentication_sso_started_data_sso.rbi +1 -28
- data/rbi/workos/authentication_sso_succeeded_data_sso.rbi +1 -28
- data/rbi/workos/authentication_sso_timed_out_data_error.rbi +1 -22
- data/rbi/workos/authentication_sso_timed_out_data_sso.rbi +1 -28
- data/rbi/workos/authorization.rbi +57 -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/claim_view_response_organization.rbi +1 -22
- 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/confirm_email_change.rbi +1 -16
- data/rbi/workos/connect.rbi +12 -10
- data/rbi/workos/connect_application.rbi +42 -0
- data/rbi/workos/connect_application_oauth.rbi +6 -0
- data/rbi/workos/connect_application_redirect_uri.rbi +30 -0
- data/rbi/workos/connected_account.rbi +6 -0
- data/rbi/workos/connected_account_input.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_deactivated_data_domain.rbi +1 -28
- data/rbi/workos/connection_domain.rbi +1 -28
- data/rbi/workos/connection_finish_error_body.rbi +30 -0
- data/rbi/workos/connection_saml_certificate_renewed_data_connection.rbi +1 -22
- data/rbi/workos/connection_type_not_updatable_error_body.rbi +30 -0
- data/rbi/workos/create_connected_account.rbi +12 -0
- data/rbi/workos/create_group_role_assignment.rbi +1 -34
- data/rbi/workos/create_magic_code_and_return.rbi +6 -0
- data/rbi/workos/create_oauth_application.rbi +6 -0
- data/rbi/workos/create_organization_connected_account.rbi +12 -0
- data/rbi/workos/create_password_reset_token.rbi +6 -0
- data/rbi/workos/create_role.rbi +1 -34
- 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 +9 -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 +9 -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/delete_group_role_assignments_by_criteria.rbi +1 -34
- data/rbi/workos/directory_sync.rbi +54 -8
- data/rbi/workos/directory_user_with_groups_email.rbi +1 -28
- data/rbi/workos/dsync_group_user_removed_data.rbi +1 -28
- data/rbi/workos/dsync_token_revoked_data.rbi +1 -46
- data/rbi/workos/dsync_user_updated_data_email.rbi +1 -28
- 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 +9 -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 +9 -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 +9 -0
- data/rbi/workos/feature_flags_flag_deleted_data_owner.rbi +9 -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 +9 -0
- data/rbi/workos/feature_flags_flag_updated_data.rbi +9 -0
- data/rbi/workos/feature_flags_flag_updated_data_owner.rbi +9 -0
- data/rbi/workos/flag.rbi +1 -76
- data/rbi/workos/flag_created_data.rbi +1 -82
- data/rbi/workos/flag_created_data_owner.rbi +1 -28
- data/rbi/workos/flag_deleted_data.rbi +1 -82
- data/rbi/workos/flag_deleted_data_owner.rbi +1 -28
- data/rbi/workos/flag_owner.rbi +1 -28
- data/rbi/workos/flag_rule.rbi +84 -0
- data/rbi/workos/flag_rule_updated_context_configured_target_organization.rbi +1 -22
- data/rbi/workos/flag_rule_updated_context_previous_attribute_context_configured_target.rbi +1 -22
- data/rbi/workos/flag_rule_updated_context_previous_attribute_context_configured_target_organization.rbi +1 -22
- data/rbi/workos/flag_rule_updated_context_previous_attribute_context_configured_target_user.rbi +1 -22
- data/rbi/workos/flag_rule_updated_data.rbi +1 -82
- data/rbi/workos/flag_rule_updated_data_owner.rbi +1 -28
- data/rbi/workos/flag_target.rbi +90 -0
- data/rbi/workos/flag_target_with_rule_id.rbi +78 -0
- data/rbi/workos/flag_target_with_value_type.rbi +84 -0
- data/rbi/workos/flag_updated_context_previous_attribute.rbi +1 -16
- data/rbi/workos/flag_updated_context_previous_attribute_data.rbi +1 -46
- data/rbi/workos/flag_updated_context_previous_attribute_data_owner.rbi +1 -28
- data/rbi/workos/flag_updated_data.rbi +1 -82
- data/rbi/workos/flag_updated_data_owner.rbi +1 -28
- data/rbi/workos/group_member_removed_data.rbi +1 -22
- 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_api_key_owner.rbi +1 -22
- data/rbi/workos/organization_api_key_with_value_owner.rbi +1 -22
- data/rbi/workos/organization_authentication_methods_required_oauth_error_body.rbi +30 -0
- data/rbi/workos/organization_connected_account.rbi +6 -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_role_deleted_data.rbi +1 -64
- data/rbi/workos/organization_role_updated_data.rbi +1 -64
- data/rbi/workos/organization_selection_required_error_body.rbi +30 -0
- data/rbi/workos/organization_selection_required_error_body_with_organization.rbi +9 -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_reset_succeeded_data.rbi +1 -46
- 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_connection_standard_attributes.rbi +1 -46
- data/rbi/workos/patch_group_memberships.rbi +30 -0
- data/rbi/workos/patch_group_role_assignments.rbi +30 -0
- data/rbi/workos/permission.rbi +1 -64
- data/rbi/workos/permission_created_data.rbi +1 -64
- data/rbi/workos/permission_deleted_data.rbi +1 -64
- data/rbi/workos/permission_updated_data.rbi +1 -64
- data/rbi/workos/phone_number_required_error_body.rbi +30 -0
- data/rbi/workos/pipes.rbi +57 -33
- data/rbi/workos/pipes_account_connection_connection_failed_data.rbi +1 -76
- data/rbi/workos/pipes_connected_account_connection_failed_data.rbi +1 -76
- data/rbi/workos/pipes_provider.rbi +4 -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 +36 -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/radar_standalone_update_radar_list_request.rbi +1 -16
- data/rbi/workos/rate_limit_exceeded_error_body_with_retry_after.rbi +36 -0
- data/rbi/workos/remove_role.rbi +1 -34
- data/rbi/workos/replace_group_role_assignment_entry.rbi +1 -34
- data/rbi/workos/role_deleted_data.rbi +1 -46
- data/rbi/workos/role_updated_data.rbi +1 -46
- data/rbi/workos/send_email_change.rbi +6 -0
- data/rbi/workos/send_verification_email.rbi +24 -0
- data/rbi/workos/send_verification_email_response.rbi +1 -16
- data/rbi/workos/session_created_data_impersonator.rbi +1 -22
- data/rbi/workos/session_revoked_data_impersonator.rbi +1 -22
- data/rbi/workos/sign_up_not_allowed_oauth_error_body.rbi +30 -0
- data/rbi/workos/slim_role.rbi +1 -16
- data/rbi/workos/slow_down_oauth_error_body.rbi +30 -0
- data/rbi/workos/sms_challenge_quota_reached_error_body.rbi +30 -0
- data/rbi/workos/sms_challenge_rate_limited_error_body.rbi +30 -0
- data/rbi/workos/sso.rbi +19 -18
- data/rbi/workos/sso_required_oauth_error_body_with_connection_ids_list_email.rbi +48 -0
- data/rbi/workos/sso_token_response_oauth_token.rbi +1 -40
- 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_group.rbi +1 -22
- data/rbi/workos/update_oauth_application.rbi +6 -0
- data/rbi/workos/update_organization_role.rbi +1 -22
- data/rbi/workos/update_role.rbi +1 -22
- 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.rbi +1 -94
- data/rbi/workos/user_api_key_owner.rbi +1 -28
- data/rbi/workos/user_api_key_revoked_data_owner.rbi +1 -28
- data/rbi/workos/user_api_key_updated_data_owner.rbi +1 -28
- data/rbi/workos/user_api_key_with_value_owner.rbi +1 -28
- data/rbi/workos/user_connected_account_import_error_body.rbi +30 -0
- data/rbi/workos/user_consent_options_not_supported_error_body.rbi +30 -0
- data/rbi/workos/user_creation_error_error_body_with_errors.rbi +36 -0
- data/rbi/workos/user_management.rbi +77 -61
- data/rbi/workos/user_mismatch_error_body.rbi +30 -0
- data/rbi/workos/user_role_assignment_resource.rbi +1 -28
- data/rbi/workos/user_role_assignment_source_group.rbi +1 -22
- data/rbi/workos/user_sessions_impersonator.rbi +1 -22
- data/rbi/workos/vault.rbi +11 -11
- data/rbi/workos/verification_id_required_error_body.rbi +30 -0
- data/rbi/workos/verify_email_address.rbi +1 -16
- data/rbi/workos/verify_email_response.rbi +1 -16
- 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 +9 -0
- data/rbi/workos/webhooks.rbi +4 -4
- data/rbi/workos/widget_session_token_response.rbi +1 -16
- 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_directory_sync.rb +32 -0
- data/test/workos/test_directory_sync_model_round_trip.rb +11 -11
- 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 +101 -201
- data/test/workos/test_session.rb +46 -1
- data/test/workos/test_shared_model_round_trip.rb +2046 -425
- data/test/workos/test_sso_model_round_trip.rb +60 -0
- data/test/workos/test_user_management_model_round_trip.rb +315 -12
- data/test/workos/test_vault_model_round_trip.rb +30 -0
- metadata +380 -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
|
@@ -121,7 +121,160 @@ module WorkOS
|
|
|
121
121
|
result
|
|
122
122
|
end
|
|
123
123
|
|
|
124
|
+
# List Groups for a Directory
|
|
125
|
+
# @param directory_id [String] Unique identifier of the Directory.
|
|
126
|
+
# @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"`.
|
|
127
|
+
# @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"`.
|
|
128
|
+
# @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
|
|
129
|
+
# @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).
|
|
130
|
+
# @param user [String, nil] Filter Directory Groups to those this Directory User belongs to.
|
|
131
|
+
# @param request_options [Hash] (see WorkOS::Types::RequestOptions)
|
|
132
|
+
# @return [WorkOS::Types::ListStruct<WorkOS::DirectoryGroup>]
|
|
133
|
+
def list_directory_groups(
|
|
134
|
+
directory_id:,
|
|
135
|
+
before: nil,
|
|
136
|
+
after: nil,
|
|
137
|
+
limit: 10,
|
|
138
|
+
order: "desc",
|
|
139
|
+
user: nil,
|
|
140
|
+
request_options: {}
|
|
141
|
+
)
|
|
142
|
+
params = {
|
|
143
|
+
"before" => before,
|
|
144
|
+
"after" => after,
|
|
145
|
+
"limit" => limit,
|
|
146
|
+
"order" => order,
|
|
147
|
+
"user" => user
|
|
148
|
+
}.compact
|
|
149
|
+
response = @client.request(
|
|
150
|
+
method: :get,
|
|
151
|
+
path: "/directories/#{WorkOS::Util.encode_path(directory_id)}/groups",
|
|
152
|
+
auth: true,
|
|
153
|
+
params: params,
|
|
154
|
+
request_options: request_options
|
|
155
|
+
)
|
|
156
|
+
fetch_next = ->(cursor) {
|
|
157
|
+
list_directory_groups(
|
|
158
|
+
directory_id: directory_id,
|
|
159
|
+
before: before,
|
|
160
|
+
after: cursor,
|
|
161
|
+
limit: limit,
|
|
162
|
+
order: order,
|
|
163
|
+
user: user,
|
|
164
|
+
request_options: request_options
|
|
165
|
+
)
|
|
166
|
+
}
|
|
167
|
+
WorkOS::Types::ListStruct.from_response(
|
|
168
|
+
response,
|
|
169
|
+
model: WorkOS::DirectoryGroup,
|
|
170
|
+
filters: {directory_id: directory_id, before: before, limit: limit, order: order, user: user},
|
|
171
|
+
fetch_next: fetch_next
|
|
172
|
+
)
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
# Get a Group for a Directory
|
|
176
|
+
# @param directory_id [String] Unique identifier of the Directory.
|
|
177
|
+
# @param group_id [String] Unique identifier for the Directory Group.
|
|
178
|
+
# @param request_options [Hash] (see WorkOS::Types::RequestOptions)
|
|
179
|
+
# @return [WorkOS::DirectoryGroup]
|
|
180
|
+
def get_directory_group(
|
|
181
|
+
directory_id:,
|
|
182
|
+
group_id:,
|
|
183
|
+
request_options: {}
|
|
184
|
+
)
|
|
185
|
+
response = @client.request(
|
|
186
|
+
method: :get,
|
|
187
|
+
path: "/directories/#{WorkOS::Util.encode_path(directory_id)}/groups/#{WorkOS::Util.encode_path(group_id)}",
|
|
188
|
+
auth: true,
|
|
189
|
+
request_options: request_options
|
|
190
|
+
)
|
|
191
|
+
result = WorkOS::DirectoryGroup.new(response.body)
|
|
192
|
+
result.last_response = WorkOS::Types::ApiResponse.new(http_status: response.code.to_i, http_headers: response.each_header.to_h, request_id: response["x-request-id"])
|
|
193
|
+
result
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
# List Users for a Directory
|
|
197
|
+
# @param directory_id [String] Unique identifier of the Directory.
|
|
198
|
+
# @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"`.
|
|
199
|
+
# @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"`.
|
|
200
|
+
# @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
|
|
201
|
+
# @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).
|
|
202
|
+
# @param group [String, nil] Filter Directory Users to the members of this Directory Group.
|
|
203
|
+
# @param idp_id [String, nil] Filter Directory Users by the identity provider's unique identifier (`idp_id`).
|
|
204
|
+
# @param email [String, nil] Filter Directory Users by their primary email address.
|
|
205
|
+
# @param request_options [Hash] (see WorkOS::Types::RequestOptions)
|
|
206
|
+
# @return [WorkOS::Types::ListStruct<WorkOS::DirectoryUser>]
|
|
207
|
+
def list_directory_users(
|
|
208
|
+
directory_id:,
|
|
209
|
+
before: nil,
|
|
210
|
+
after: nil,
|
|
211
|
+
limit: 10,
|
|
212
|
+
order: "desc",
|
|
213
|
+
group: nil,
|
|
214
|
+
idp_id: nil,
|
|
215
|
+
email: nil,
|
|
216
|
+
request_options: {}
|
|
217
|
+
)
|
|
218
|
+
params = {
|
|
219
|
+
"before" => before,
|
|
220
|
+
"after" => after,
|
|
221
|
+
"limit" => limit,
|
|
222
|
+
"order" => order,
|
|
223
|
+
"group" => group,
|
|
224
|
+
"idp_id" => idp_id,
|
|
225
|
+
"email" => email
|
|
226
|
+
}.compact
|
|
227
|
+
response = @client.request(
|
|
228
|
+
method: :get,
|
|
229
|
+
path: "/directories/#{WorkOS::Util.encode_path(directory_id)}/users",
|
|
230
|
+
auth: true,
|
|
231
|
+
params: params,
|
|
232
|
+
request_options: request_options
|
|
233
|
+
)
|
|
234
|
+
fetch_next = ->(cursor) {
|
|
235
|
+
list_directory_users(
|
|
236
|
+
directory_id: directory_id,
|
|
237
|
+
before: before,
|
|
238
|
+
after: cursor,
|
|
239
|
+
limit: limit,
|
|
240
|
+
order: order,
|
|
241
|
+
group: group,
|
|
242
|
+
idp_id: idp_id,
|
|
243
|
+
email: email,
|
|
244
|
+
request_options: request_options
|
|
245
|
+
)
|
|
246
|
+
}
|
|
247
|
+
WorkOS::Types::ListStruct.from_response(
|
|
248
|
+
response,
|
|
249
|
+
model: WorkOS::DirectoryUser,
|
|
250
|
+
filters: {directory_id: directory_id, before: before, limit: limit, order: order, group: group, idp_id: idp_id, email: email},
|
|
251
|
+
fetch_next: fetch_next
|
|
252
|
+
)
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
# Get a User for a Directory
|
|
256
|
+
# @param directory_id [String] Unique identifier of the Directory.
|
|
257
|
+
# @param user_id [String] Unique identifier for the Directory User.
|
|
258
|
+
# @param request_options [Hash] (see WorkOS::Types::RequestOptions)
|
|
259
|
+
# @return [WorkOS::DirectoryUser]
|
|
260
|
+
def get_directory_user(
|
|
261
|
+
directory_id:,
|
|
262
|
+
user_id:,
|
|
263
|
+
request_options: {}
|
|
264
|
+
)
|
|
265
|
+
response = @client.request(
|
|
266
|
+
method: :get,
|
|
267
|
+
path: "/directories/#{WorkOS::Util.encode_path(directory_id)}/users/#{WorkOS::Util.encode_path(user_id)}",
|
|
268
|
+
auth: true,
|
|
269
|
+
request_options: request_options
|
|
270
|
+
)
|
|
271
|
+
result = WorkOS::DirectoryUser.new(response.body)
|
|
272
|
+
result.last_response = WorkOS::Types::ApiResponse.new(http_status: response.code.to_i, http_headers: response.each_header.to_h, request_id: response["x-request-id"])
|
|
273
|
+
result
|
|
274
|
+
end
|
|
275
|
+
|
|
124
276
|
# List Directory Groups
|
|
277
|
+
# @deprecated
|
|
125
278
|
# @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"`.
|
|
126
279
|
# @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"`.
|
|
127
280
|
# @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
|
|
@@ -139,6 +292,7 @@ module WorkOS
|
|
|
139
292
|
user: nil,
|
|
140
293
|
request_options: {}
|
|
141
294
|
)
|
|
295
|
+
warn "[DEPRECATION] `list_groups` is deprecated.", uplevel: 1
|
|
142
296
|
params = {
|
|
143
297
|
"before" => before,
|
|
144
298
|
"after" => after,
|
|
@@ -174,6 +328,7 @@ module WorkOS
|
|
|
174
328
|
end
|
|
175
329
|
|
|
176
330
|
# Get a Directory Group
|
|
331
|
+
# @deprecated
|
|
177
332
|
# @param id [String] Unique identifier for the Directory Group.
|
|
178
333
|
# @param request_options [Hash] (see WorkOS::Types::RequestOptions)
|
|
179
334
|
# @return [WorkOS::DirectoryGroup]
|
|
@@ -181,6 +336,7 @@ module WorkOS
|
|
|
181
336
|
id:,
|
|
182
337
|
request_options: {}
|
|
183
338
|
)
|
|
339
|
+
warn "[DEPRECATION] `get_group` is deprecated.", uplevel: 1
|
|
184
340
|
response = @client.request(
|
|
185
341
|
method: :get,
|
|
186
342
|
path: "/directory_groups/#{WorkOS::Util.encode_path(id)}",
|
|
@@ -193,6 +349,7 @@ module WorkOS
|
|
|
193
349
|
end
|
|
194
350
|
|
|
195
351
|
# List Directory Users
|
|
352
|
+
# @deprecated
|
|
196
353
|
# @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"`.
|
|
197
354
|
# @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"`.
|
|
198
355
|
# @param limit [Integer, nil] Upper limit on the number of objects to return, between `1` and `100`.
|
|
@@ -214,6 +371,7 @@ module WorkOS
|
|
|
214
371
|
email: nil,
|
|
215
372
|
request_options: {}
|
|
216
373
|
)
|
|
374
|
+
warn "[DEPRECATION] `list_users` is deprecated.", uplevel: 1
|
|
217
375
|
params = {
|
|
218
376
|
"before" => before,
|
|
219
377
|
"after" => after,
|
|
@@ -253,6 +411,7 @@ module WorkOS
|
|
|
253
411
|
end
|
|
254
412
|
|
|
255
413
|
# Get a Directory User
|
|
414
|
+
# @deprecated
|
|
256
415
|
# @param id [String] Unique identifier for the Directory User.
|
|
257
416
|
# @param request_options [Hash] (see WorkOS::Types::RequestOptions)
|
|
258
417
|
# @return [WorkOS::DirectoryUserWithGroups]
|
|
@@ -260,6 +419,7 @@ module WorkOS
|
|
|
260
419
|
id:,
|
|
261
420
|
request_options: {}
|
|
262
421
|
)
|
|
422
|
+
warn "[DEPRECATION] `get_user` is deprecated.", uplevel: 1
|
|
263
423
|
response = @client.request(
|
|
264
424
|
method: :get,
|
|
265
425
|
path: "/directory_users/#{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
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
module WorkOS
|
|
6
|
+
class FlagTargetWithRuleId < 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
|
+
}.freeze
|
|
19
|
+
|
|
20
|
+
attr_accessor \
|
|
21
|
+
:object,
|
|
22
|
+
:id,
|
|
23
|
+
:flag_id,
|
|
24
|
+
:flag_slug,
|
|
25
|
+
:environment_id,
|
|
26
|
+
:target_type,
|
|
27
|
+
:target_id,
|
|
28
|
+
:created_at,
|
|
29
|
+
:updated_at,
|
|
30
|
+
:rule_id
|
|
31
|
+
|
|
32
|
+
def initialize(json)
|
|
33
|
+
hash = self.class.normalize(json)
|
|
34
|
+
@object = hash[:object]
|
|
35
|
+
@id = hash[:id]
|
|
36
|
+
@flag_id = hash[:flag_id]
|
|
37
|
+
@flag_slug = hash[:flag_slug]
|
|
38
|
+
@environment_id = hash[:environment_id]
|
|
39
|
+
@target_type = hash[:target_type]
|
|
40
|
+
@target_id = hash[:target_id]
|
|
41
|
+
@created_at = hash[:created_at]
|
|
42
|
+
@updated_at = hash[:updated_at]
|
|
43
|
+
@rule_id = hash[:rule_id]
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
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 FlagTargetWithValueType < 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
|
+
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
|
+
:target_id,
|
|
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
|
+
@target_id = hash[:target_id]
|
|
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
|
|
@@ -3,16 +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
|
-
data: :data
|
|
9
|
-
}.freeze
|
|
10
|
-
|
|
11
|
-
attr_accessor :data
|
|
12
|
-
|
|
13
|
-
def initialize(json)
|
|
14
|
-
hash = self.class.normalize(json)
|
|
15
|
-
@data = hash[:data] ? WorkOS::FlagUpdatedContextPreviousAttributeData.new(hash[:data]) : nil
|
|
16
|
-
end
|
|
17
|
-
end
|
|
6
|
+
FlagUpdatedContextPreviousAttribute = FeatureFlagsFlagUpdatedContextPreviousAttribute
|
|
18
7
|
end
|
|
@@ -3,32 +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
|
-
name: :name,
|
|
9
|
-
description: :description,
|
|
10
|
-
tags: :tags,
|
|
11
|
-
owner: :owner,
|
|
12
|
-
enabled: :enabled,
|
|
13
|
-
default_value: :default_value
|
|
14
|
-
}.freeze
|
|
15
|
-
|
|
16
|
-
attr_accessor \
|
|
17
|
-
:name,
|
|
18
|
-
:description,
|
|
19
|
-
:tags,
|
|
20
|
-
:owner,
|
|
21
|
-
:enabled,
|
|
22
|
-
:default_value
|
|
23
|
-
|
|
24
|
-
def initialize(json)
|
|
25
|
-
hash = self.class.normalize(json)
|
|
26
|
-
@name = hash[:name]
|
|
27
|
-
@description = hash[:description]
|
|
28
|
-
@tags = hash[:tags] || []
|
|
29
|
-
@owner = hash[:owner] ? WorkOS::FlagUpdatedContextPreviousAttributeDataOwner.new(hash[:owner]) : nil
|
|
30
|
-
@enabled = hash[:enabled]
|
|
31
|
-
@default_value = hash[:default_value]
|
|
32
|
-
end
|
|
33
|
-
end
|
|
6
|
+
FlagUpdatedContextPreviousAttributeData = FeatureFlagsFlagUpdatedContextPreviousAttributeData
|
|
34
7
|
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 PatchGroupMemberships < 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] || []
|
|
19
|
+
@remove = hash[:remove] || []
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
data/lib/workos/groups.rb
CHANGED
|
@@ -236,6 +236,34 @@ module WorkOS
|
|
|
236
236
|
result
|
|
237
237
|
end
|
|
238
238
|
|
|
239
|
+
# Update Group members
|
|
240
|
+
# @param organization_id [String] Unique identifier of the Organization.
|
|
241
|
+
# @param group_id [String] Unique identifier of the Group.
|
|
242
|
+
# @param add [Array<String>, nil] The IDs of the organization memberships to add to the group. Adding a membership that's already in the group has no effect.
|
|
243
|
+
# @param remove [Array<String>, nil] The IDs of the organization memberships to remove from the group. Removing a membership that isn't in the group has no effect.
|
|
244
|
+
# @param request_options [Hash] (see WorkOS::Types::RequestOptions)
|
|
245
|
+
# @return [void]
|
|
246
|
+
def update_group_organization_memberships(
|
|
247
|
+
organization_id:,
|
|
248
|
+
group_id:,
|
|
249
|
+
add: nil,
|
|
250
|
+
remove: nil,
|
|
251
|
+
request_options: {}
|
|
252
|
+
)
|
|
253
|
+
body = {
|
|
254
|
+
"add" => add,
|
|
255
|
+
"remove" => remove
|
|
256
|
+
}.compact
|
|
257
|
+
@client.request(
|
|
258
|
+
method: :patch,
|
|
259
|
+
path: "/organizations/#{WorkOS::Util.encode_path(organization_id)}/groups/#{WorkOS::Util.encode_path(group_id)}/organization-memberships",
|
|
260
|
+
auth: true,
|
|
261
|
+
body: body,
|
|
262
|
+
request_options: request_options
|
|
263
|
+
)
|
|
264
|
+
nil
|
|
265
|
+
end
|
|
266
|
+
|
|
239
267
|
# Remove a member from a Group
|
|
240
268
|
# @param organization_id [String] Unique identifier of the Organization.
|
|
241
269
|
# @param group_id [String] Unique identifier of the Group.
|