/** * Generated by scripts/gen-events.ts — do not edit by hand. * Source: the @workos/openapi-spec package. Regenerate with: * npm run gen:events */ /** All WorkOS event names defined in the OpenAPI spec. */ export declare const EVENTS: { readonly actionAuthenticationDenied: 'action.authentication.denied'; readonly actionUserRegistrationDenied: 'action.user_registration.denied'; readonly agentBlueprintCreated: 'agent.blueprint.created'; readonly agentBlueprintDeleted: 'agent.blueprint.deleted'; readonly agentBlueprintUpdated: 'agent.blueprint.updated'; readonly agentInstanceCreated: 'agent.instance.created'; readonly agentInstanceDeleted: 'agent.instance.deleted'; readonly agentInstanceSessionCreated: 'agent.instance.session.created'; readonly agentInstanceSessionRevoked: 'agent.instance.session.revoked'; readonly agentRegistrationClaimAttemptCreated: 'agent.registration.claim.attempt.created'; readonly agentRegistrationClaimCompleted: 'agent.registration.claim.completed'; readonly agentRegistrationCreated: 'agent.registration.created'; readonly agentRegistrationCredentialIssued: 'agent.registration.credential.issued'; readonly agentRegistrationDeleted: 'agent.registration.deleted'; readonly agentRegistrationExpired: 'agent.registration.expired'; readonly agentRegistrationOrganizationSwitched: 'agent.registration.organization.switched'; readonly agentRegistrationRefreshed: 'agent.registration.refreshed'; readonly agentRegistrationRevoked: 'agent.registration.revoked'; readonly apiKeyCreated: 'api_key.created'; readonly apiKeyRevoked: 'api_key.revoked'; readonly apiKeyUpdated: 'api_key.updated'; readonly authenticationEmailVerificationFailed: 'authentication.email_verification_failed'; readonly authenticationEmailVerificationSucceeded: 'authentication.email_verification_succeeded'; readonly authenticationMagicAuthFailed: 'authentication.magic_auth_failed'; readonly authenticationMagicAuthSucceeded: 'authentication.magic_auth_succeeded'; readonly authenticationMfaFailed: 'authentication.mfa_failed'; readonly authenticationMfaSucceeded: 'authentication.mfa_succeeded'; readonly authenticationOauthFailed: 'authentication.oauth_failed'; readonly authenticationOauthSucceeded: 'authentication.oauth_succeeded'; readonly authenticationPasskeyFailed: 'authentication.passkey_failed'; readonly authenticationPasskeySucceeded: 'authentication.passkey_succeeded'; readonly authenticationPasswordFailed: 'authentication.password_failed'; readonly authenticationPasswordSucceeded: 'authentication.password_succeeded'; readonly authenticationRadarRiskDetected: 'authentication.radar_risk_detected'; readonly authenticationReauthenticationSucceeded: 'authentication.reauthentication_succeeded'; readonly authenticationSsoFailed: 'authentication.sso_failed'; readonly authenticationSsoStarted: 'authentication.sso_started'; readonly authenticationSsoSucceeded: 'authentication.sso_succeeded'; readonly authenticationSsoTimedOut: 'authentication.sso_timed_out'; readonly connectionActivated: 'connection.activated'; readonly connectionDeactivated: 'connection.deactivated'; readonly connectionDeleted: 'connection.deleted'; readonly connectionSamlCertificateRenewalRequired: 'connection.saml_certificate_renewal_required'; readonly connectionSamlCertificateRenewed: 'connection.saml_certificate_renewed'; readonly dsyncActivated: 'dsync.activated'; readonly dsyncDeleted: 'dsync.deleted'; readonly dsyncGroupCreated: 'dsync.group.created'; readonly dsyncGroupDeleted: 'dsync.group.deleted'; readonly dsyncGroupUpdated: 'dsync.group.updated'; readonly dsyncGroupUserAdded: 'dsync.group.user_added'; readonly dsyncGroupUserRemoved: 'dsync.group.user_removed'; readonly dsyncTokenCreated: 'dsync.token.created'; readonly dsyncTokenRevoked: 'dsync.token.revoked'; readonly dsyncUserCreated: 'dsync.user.created'; readonly dsyncUserDeleted: 'dsync.user.deleted'; readonly dsyncUserUpdated: 'dsync.user.updated'; readonly emailVerificationCreated: 'email_verification.created'; readonly featureFlagsFlagCreated: 'feature_flags.flag.created'; readonly featureFlagsFlagDeleted: 'feature_flags.flag.deleted'; readonly featureFlagsFlagUpdated: 'feature_flags.flag.updated'; readonly featureFlagsFlagRuleCreated: 'feature_flags.flag_rule.created'; readonly featureFlagsFlagRuleDeleted: 'feature_flags.flag_rule.deleted'; readonly featureFlagsFlagRuleUpdated: 'feature_flags.flag_rule.updated'; readonly featureFlagsFlagTargetCreated: 'feature_flags.flag_target.created'; readonly featureFlagsFlagTargetDeleted: 'feature_flags.flag_target.deleted'; readonly flagCreated: 'flag.created'; readonly flagDeleted: 'flag.deleted'; readonly flagRuleUpdated: 'flag.rule_updated'; readonly flagUpdated: 'flag.updated'; readonly groupCreated: 'group.created'; readonly groupDeleted: 'group.deleted'; readonly groupMemberAdded: 'group.member_added'; readonly groupMemberRemoved: 'group.member_removed'; readonly groupUpdated: 'group.updated'; readonly invitationAccepted: 'invitation.accepted'; readonly invitationCreated: 'invitation.created'; readonly invitationResent: 'invitation.resent'; readonly invitationRevoked: 'invitation.revoked'; readonly magicAuthCreated: 'magic_auth.created'; readonly organizationCreated: 'organization.created'; readonly organizationDeleted: 'organization.deleted'; readonly organizationUpdated: 'organization.updated'; readonly organizationDomainCreated: 'organization_domain.created'; readonly organizationDomainDeleted: 'organization_domain.deleted'; readonly organizationDomainUpdated: 'organization_domain.updated'; readonly organizationDomainVerificationFailed: 'organization_domain.verification_failed'; readonly organizationDomainVerified: 'organization_domain.verified'; readonly organizationMembershipCreated: 'organization_membership.created'; readonly organizationMembershipDeleted: 'organization_membership.deleted'; readonly organizationMembershipUpdated: 'organization_membership.updated'; readonly organizationRoleCreated: 'organization_role.created'; readonly organizationRoleDeleted: 'organization_role.deleted'; readonly organizationRoleUpdated: 'organization_role.updated'; readonly passwordResetCreated: 'password_reset.created'; readonly passwordResetSucceeded: 'password_reset.succeeded'; readonly permissionCreated: 'permission.created'; readonly permissionDeleted: 'permission.deleted'; readonly permissionUpdated: 'permission.updated'; readonly pipesAccountConnectionAddFailed: 'pipes.account_connection.add_failed'; readonly pipesAccountConnectionConnected: 'pipes.account_connection.connected'; readonly pipesAccountConnectionConnectionFailed: 'pipes.account_connection.connection_failed'; readonly pipesAccountConnectionDisconnected: 'pipes.account_connection.disconnected'; readonly pipesAccountConnectionReauthorizationNeeded: 'pipes.account_connection.reauthorization_needed'; readonly pipesConnectedAccountConnected: 'pipes.connected_account.connected'; readonly pipesConnectedAccountConnectionFailed: 'pipes.connected_account.connection_failed'; readonly pipesConnectedAccountDisconnected: 'pipes.connected_account.disconnected'; readonly pipesConnectedAccountReauthorizationNeeded: 'pipes.connected_account.reauthorization_needed'; readonly radarChallengeCreated: 'radar.challenge_created'; readonly resourceExportCompleted: 'resource_export.completed'; readonly resourceExportCreated: 'resource_export.created'; readonly resourceExportDownloaded: 'resource_export.downloaded'; readonly resourceExportFailed: 'resource_export.failed'; readonly roleCreated: 'role.created'; readonly roleDeleted: 'role.deleted'; readonly roleUpdated: 'role.updated'; readonly sessionCreated: 'session.created'; readonly sessionRevoked: 'session.revoked'; readonly userCreated: 'user.created'; readonly userDeleted: 'user.deleted'; readonly userUpdated: 'user.updated'; readonly vaultByokKeyDeleted: 'vault.byok_key.deleted'; readonly vaultByokKeyVerificationCompleted: 'vault.byok_key.verification_completed'; readonly vaultDataCreated: 'vault.data.created'; readonly vaultDataDeleted: 'vault.data.deleted'; readonly vaultDataRead: 'vault.data.read'; readonly vaultDataUpdated: 'vault.data.updated'; readonly vaultDekDecrypted: 'vault.dek.decrypted'; readonly vaultDekRead: 'vault.dek.read'; readonly vaultDekRekeyed: 'vault.dek.rekeyed'; readonly vaultKekCreated: 'vault.kek.created'; readonly vaultKekDeleted: 'vault.kek.deleted'; readonly vaultMetadataRead: 'vault.metadata.read'; readonly vaultNamesListed: 'vault.names.listed'; readonly waitlistUserApproved: 'waitlist_user.approved'; readonly waitlistUserCreated: 'waitlist_user.created'; readonly waitlistUserDenied: 'waitlist_user.denied'; }; export type WorkOSEventName = (typeof EVENTS)[keyof typeof EVENTS]; /** Event names subscribable via webhook endpoints (CreateWebhookEndpointDto). */ export declare const SUBSCRIBABLE_EVENTS: readonly WorkOSEventName[]; /** Payload shape shared by authentication.*_succeeded / *_failed events. */ export interface AuthenticationEventData { type: 'email_verification' | 'magic_auth' | 'mfa' | 'oauth' | 'passkey' | 'password' | 'reauthentication' | 'sso'; status: 'failed' | 'succeeded'; ip_address: string | null; user_agent: string | null; user_id: string | null; email: string | null; error?: { code: string; message: string; radar_detection_id?: string; }; provider?: string; sso?: { organization_id: string | null; connection_id: string | null; session_id: string | null; }; } /** Per-event payload requirements from the spec, for test assertions. */ export declare const EVENT_DATA_REQUIREMENTS: Record;