|
| 1 | +<?php |
| 2 | + |
| 3 | +namespace WorkOS; |
| 4 | + |
| 5 | +/** |
| 6 | + * Common event types for IDE autocomplete. |
| 7 | + * This list is NOT exhaustive - the API accepts additional values. |
| 8 | + * @see https://workos.com/docs/events |
| 9 | + */ |
| 10 | +class EventTypes |
| 11 | +{ |
| 12 | + // Authentication Events |
| 13 | + public const AUTHENTICATION_EMAIL_VERIFICATION_SUCCEEDED = 'authentication.email_verification_succeeded'; |
| 14 | + public const AUTHENTICATION_MAGIC_AUTH_FAILED = 'authentication.magic_auth_failed'; |
| 15 | + public const AUTHENTICATION_MAGIC_AUTH_SUCCEEDED = 'authentication.magic_auth_succeeded'; |
| 16 | + public const AUTHENTICATION_MFA_FAILED = 'authentication.mfa_failed'; |
| 17 | + public const AUTHENTICATION_MFA_SUCCEEDED = 'authentication.mfa_succeeded'; |
| 18 | + public const AUTHENTICATION_OAUTH_FAILED = 'authentication.oauth_failed'; |
| 19 | + public const AUTHENTICATION_OAUTH_SUCCEEDED = 'authentication.oauth_succeeded'; |
| 20 | + public const AUTHENTICATION_PASSWORD_FAILED = 'authentication.password_failed'; |
| 21 | + public const AUTHENTICATION_PASSWORD_SUCCEEDED = 'authentication.password_succeeded'; |
| 22 | + public const AUTHENTICATION_PASSKEY_FAILED = 'authentication.passkey_failed'; |
| 23 | + public const AUTHENTICATION_PASSKEY_SUCCEEDED = 'authentication.passkey_succeeded'; |
| 24 | + public const AUTHENTICATION_SSO_FAILED = 'authentication.sso_failed'; |
| 25 | + public const AUTHENTICATION_SSO_SUCCEEDED = 'authentication.sso_succeeded'; |
| 26 | + public const AUTHENTICATION_RADAR_RISK_DETECTED = 'authentication.radar_risk_detected'; |
| 27 | + |
| 28 | + // Connection Events |
| 29 | + public const CONNECTION_ACTIVATED = 'connection.activated'; |
| 30 | + public const CONNECTION_DEACTIVATED = 'connection.deactivated'; |
| 31 | + public const CONNECTION_DELETED = 'connection.deleted'; |
| 32 | + public const CONNECTION_SAML_CERTIFICATE_RENEWED = 'connection.saml_certificate_renewed'; |
| 33 | + public const CONNECTION_SAML_CERTIFICATE_RENEWAL_REQUIRED = 'connection.saml_certificate_renewal_required'; |
| 34 | + |
| 35 | + // DSync Events |
| 36 | + public const DSYNC_ACTIVATED = 'dsync.activated'; |
| 37 | + public const DSYNC_DELETED = 'dsync.deleted'; |
| 38 | + public const DSYNC_GROUP_CREATED = 'dsync.group.created'; |
| 39 | + public const DSYNC_GROUP_DELETED = 'dsync.group.deleted'; |
| 40 | + public const DSYNC_GROUP_UPDATED = 'dsync.group.updated'; |
| 41 | + public const DSYNC_GROUP_USER_ADDED = 'dsync.group.user_added'; |
| 42 | + public const DSYNC_GROUP_USER_REMOVED = 'dsync.group.user_removed'; |
| 43 | + public const DSYNC_USER_CREATED = 'dsync.user.created'; |
| 44 | + public const DSYNC_USER_DELETED = 'dsync.user.deleted'; |
| 45 | + public const DSYNC_USER_UPDATED = 'dsync.user.updated'; |
| 46 | + |
| 47 | + // Email Verification Events |
| 48 | + public const EMAIL_VERIFICATION_CREATED = 'email_verification.created'; |
| 49 | + |
| 50 | + // Flag Events |
| 51 | + public const FLAG_CREATED = 'flag.created'; |
| 52 | + public const FLAG_UPDATED = 'flag.updated'; |
| 53 | + public const FLAG_DELETED = 'flag.deleted'; |
| 54 | + public const FLAG_RULE_UPDATED = 'flag.rule_updated'; |
| 55 | + |
| 56 | + // Invitation Events |
| 57 | + public const INVITATION_ACCEPTED = 'invitation.accepted'; |
| 58 | + public const INVITATION_CREATED = 'invitation.created'; |
| 59 | + public const INVITATION_REVOKED = 'invitation.revoked'; |
| 60 | + |
| 61 | + // Organization Events |
| 62 | + public const ORGANIZATION_CREATED = 'organization.created'; |
| 63 | + public const ORGANIZATION_UPDATED = 'organization.updated'; |
| 64 | + public const ORGANIZATION_DELETED = 'organization.deleted'; |
| 65 | + public const ORGANIZATION_DOMAIN_CREATED = 'organization_domain.created'; |
| 66 | + public const ORGANIZATION_DOMAIN_UPDATED = 'organization_domain.updated'; |
| 67 | + public const ORGANIZATION_DOMAIN_DELETED = 'organization_domain.deleted'; |
| 68 | + public const ORGANIZATION_DOMAIN_VERIFIED = 'organization_domain.verified'; |
| 69 | + public const ORGANIZATION_DOMAIN_VERIFICATION_FAILED = 'organization_domain.verification_failed'; |
| 70 | + public const ORGANIZATION_MEMBERSHIP_CREATED = 'organization_membership.created'; |
| 71 | + public const ORGANIZATION_MEMBERSHIP_DELETED = 'organization_membership.deleted'; |
| 72 | + public const ORGANIZATION_MEMBERSHIP_UPDATED = 'organization_membership.updated'; |
| 73 | + |
| 74 | + // Password Reset Events |
| 75 | + public const PASSWORD_RESET_CREATED = 'password_reset.created'; |
| 76 | + public const PASSWORD_RESET_SUCCEEDED = 'password_reset.succeeded'; |
| 77 | + |
| 78 | + // Role Events |
| 79 | + public const ROLE_CREATED = 'role.created'; |
| 80 | + public const ROLE_DELETED = 'role.deleted'; |
| 81 | + public const ROLE_UPDATED = 'role.updated'; |
| 82 | + |
| 83 | + // Session Events |
| 84 | + public const SESSION_CREATED = 'session.created'; |
| 85 | + public const SESSION_REVOKED = 'session.revoked'; |
| 86 | + |
| 87 | + // User Events |
| 88 | + public const USER_CREATED = 'user.created'; |
| 89 | + public const USER_DELETED = 'user.deleted'; |
| 90 | + public const USER_UPDATED = 'user.updated'; |
| 91 | +} |
0 commit comments