# This file is auto-generated by oagen. Do not edit.

"""Enumeration of create webhook endpoint events values."""

from __future__ import annotations

from enum import Enum
from typing import Optional
from typing import Literal, TypeAlias


class CreateWebhookEndpointEvents(str, Enum):
    """Known values for CreateWebhookEndpointEvents."""

    AGENT_REGISTRATION_CREATED = "agent.registration.created"
    AGENT_REGISTRATION_CLAIM_ATTEMPT_CREATED = (
        "agent.registration.claim.attempt.created"
    )
    AGENT_REGISTRATION_CLAIM_COMPLETED = "agent.registration.claim.completed"
    AGENT_REGISTRATION_CREDENTIAL_ISSUED = "agent.registration.credential.issued"
    AGENT_REGISTRATION_DELETED = "agent.registration.deleted"
    AGENT_REGISTRATION_EXPIRED = "agent.registration.expired"
    AGENT_REGISTRATION_ORGANIZATION_SWITCHED = (
        "agent.registration.organization.switched"
    )
    AGENT_REGISTRATION_REVOKED = "agent.registration.revoked"
    AUTHENTICATION_EMAIL_VERIFICATION_SUCCEEDED = (
        "authentication.email_verification_succeeded"
    )
    AUTHENTICATION_MAGIC_AUTH_FAILED = "authentication.magic_auth_failed"
    AUTHENTICATION_MAGIC_AUTH_SUCCEEDED = "authentication.magic_auth_succeeded"
    AUTHENTICATION_MFA_SUCCEEDED = "authentication.mfa_succeeded"
    AUTHENTICATION_OAUTH_FAILED = "authentication.oauth_failed"
    AUTHENTICATION_OAUTH_SUCCEEDED = "authentication.oauth_succeeded"
    AUTHENTICATION_PASSWORD_FAILED = "authentication.password_failed"
    AUTHENTICATION_PASSWORD_SUCCEEDED = "authentication.password_succeeded"
    AUTHENTICATION_PASSKEY_FAILED = "authentication.passkey_failed"
    AUTHENTICATION_PASSKEY_SUCCEEDED = "authentication.passkey_succeeded"
    AUTHENTICATION_SSO_FAILED = "authentication.sso_failed"
    AUTHENTICATION_SSO_STARTED = "authentication.sso_started"
    AUTHENTICATION_SSO_SUCCEEDED = "authentication.sso_succeeded"
    AUTHENTICATION_SSO_TIMED_OUT = "authentication.sso_timed_out"
    RADAR_CHALLENGE_CREATED = "radar.challenge_created"
    AUTHENTICATION_RADAR_RISK_DETECTED = "authentication.radar_risk_detected"
    AUTHENTICATION_REAUTHENTICATION_SUCCEEDED = (
        "authentication.reauthentication_succeeded"
    )
    API_KEY_CREATED = "api_key.created"
    API_KEY_REVOKED = "api_key.revoked"
    API_KEY_UPDATED = "api_key.updated"
    CONNECTION_ACTIVATED = "connection.activated"
    CONNECTION_DEACTIVATED = "connection.deactivated"
    CONNECTION_SAML_CERTIFICATE_RENEWAL_REQUIRED = (
        "connection.saml_certificate_renewal_required"
    )
    CONNECTION_SAML_CERTIFICATE_RENEWED = "connection.saml_certificate_renewed"
    CONNECTION_DELETED = "connection.deleted"
    DSYNC_ACTIVATED = "dsync.activated"
    DSYNC_DELETED = "dsync.deleted"
    DSYNC_GROUP_CREATED = "dsync.group.created"
    DSYNC_GROUP_DELETED = "dsync.group.deleted"
    DSYNC_GROUP_UPDATED = "dsync.group.updated"
    DSYNC_GROUP_USER_ADDED = "dsync.group.user_added"
    DSYNC_GROUP_USER_REMOVED = "dsync.group.user_removed"
    DSYNC_USER_CREATED = "dsync.user.created"
    DSYNC_USER_DELETED = "dsync.user.deleted"
    DSYNC_USER_UPDATED = "dsync.user.updated"
    EMAIL_VERIFICATION_CREATED = "email_verification.created"
    GROUP_CREATED = "group.created"
    GROUP_DELETED = "group.deleted"
    GROUP_MEMBER_ADDED = "group.member_added"
    GROUP_MEMBER_REMOVED = "group.member_removed"
    GROUP_UPDATED = "group.updated"
    FLAG_CREATED = "flag.created"
    FLAG_DELETED = "flag.deleted"
    FLAG_UPDATED = "flag.updated"
    FLAG_RULE_UPDATED = "flag.rule_updated"
    INVITATION_ACCEPTED = "invitation.accepted"
    INVITATION_CREATED = "invitation.created"
    INVITATION_RESENT = "invitation.resent"
    INVITATION_REVOKED = "invitation.revoked"
    MAGIC_AUTH_CREATED = "magic_auth.created"
    ORGANIZATION_CREATED = "organization.created"
    ORGANIZATION_DELETED = "organization.deleted"
    ORGANIZATION_UPDATED = "organization.updated"
    ORGANIZATION_DOMAIN_CREATED = "organization_domain.created"
    ORGANIZATION_DOMAIN_DELETED = "organization_domain.deleted"
    ORGANIZATION_DOMAIN_UPDATED = "organization_domain.updated"
    ORGANIZATION_DOMAIN_VERIFIED = "organization_domain.verified"
    ORGANIZATION_DOMAIN_VERIFICATION_FAILED = "organization_domain.verification_failed"
    PASSWORD_RESET_CREATED = "password_reset.created"
    PASSWORD_RESET_SUCCEEDED = "password_reset.succeeded"
    USER_CREATED = "user.created"
    USER_UPDATED = "user.updated"
    USER_DELETED = "user.deleted"
    ORGANIZATION_MEMBERSHIP_CREATED = "organization_membership.created"
    ORGANIZATION_MEMBERSHIP_DELETED = "organization_membership.deleted"
    ORGANIZATION_MEMBERSHIP_UPDATED = "organization_membership.updated"
    ROLE_CREATED = "role.created"
    ROLE_DELETED = "role.deleted"
    ROLE_UPDATED = "role.updated"
    ORGANIZATION_ROLE_CREATED = "organization_role.created"
    ORGANIZATION_ROLE_DELETED = "organization_role.deleted"
    ORGANIZATION_ROLE_UPDATED = "organization_role.updated"
    PERMISSION_CREATED = "permission.created"
    PERMISSION_DELETED = "permission.deleted"
    PERMISSION_UPDATED = "permission.updated"
    PIPES_CONNECTED_ACCOUNT_CONNECTED = "pipes.connected_account.connected"
    PIPES_CONNECTED_ACCOUNT_CONNECTION_FAILED = (
        "pipes.connected_account.connection_failed"
    )
    PIPES_CONNECTED_ACCOUNT_DISCONNECTED = "pipes.connected_account.disconnected"
    PIPES_CONNECTED_ACCOUNT_REAUTHORIZATION_NEEDED = (
        "pipes.connected_account.reauthorization_needed"
    )
    SESSION_CREATED = "session.created"
    SESSION_REVOKED = "session.revoked"
    WAITLIST_USER_APPROVED = "waitlist_user.approved"
    WAITLIST_USER_CREATED = "waitlist_user.created"
    WAITLIST_USER_DENIED = "waitlist_user.denied"

    @classmethod
    def _missing_(cls, value: object) -> Optional["CreateWebhookEndpointEvents"]:
        if not isinstance(value, str):
            return None
        unknown = str.__new__(cls, value)
        unknown._name_ = value.upper()
        unknown._value_ = value
        return unknown


CreateWebhookEndpointEventsLiteral: TypeAlias = Literal[
    "agent.registration.created",
    "agent.registration.claim.attempt.created",
    "agent.registration.claim.completed",
    "agent.registration.credential.issued",
    "agent.registration.deleted",
    "agent.registration.expired",
    "agent.registration.organization.switched",
    "agent.registration.revoked",
    "authentication.email_verification_succeeded",
    "authentication.magic_auth_failed",
    "authentication.magic_auth_succeeded",
    "authentication.mfa_succeeded",
    "authentication.oauth_failed",
    "authentication.oauth_succeeded",
    "authentication.password_failed",
    "authentication.password_succeeded",
    "authentication.passkey_failed",
    "authentication.passkey_succeeded",
    "authentication.sso_failed",
    "authentication.sso_started",
    "authentication.sso_succeeded",
    "authentication.sso_timed_out",
    "radar.challenge_created",
    "authentication.radar_risk_detected",
    "authentication.reauthentication_succeeded",
    "api_key.created",
    "api_key.revoked",
    "api_key.updated",
    "connection.activated",
    "connection.deactivated",
    "connection.saml_certificate_renewal_required",
    "connection.saml_certificate_renewed",
    "connection.deleted",
    "dsync.activated",
    "dsync.deleted",
    "dsync.group.created",
    "dsync.group.deleted",
    "dsync.group.updated",
    "dsync.group.user_added",
    "dsync.group.user_removed",
    "dsync.user.created",
    "dsync.user.deleted",
    "dsync.user.updated",
    "email_verification.created",
    "group.created",
    "group.deleted",
    "group.member_added",
    "group.member_removed",
    "group.updated",
    "flag.created",
    "flag.deleted",
    "flag.updated",
    "flag.rule_updated",
    "invitation.accepted",
    "invitation.created",
    "invitation.resent",
    "invitation.revoked",
    "magic_auth.created",
    "organization.created",
    "organization.deleted",
    "organization.updated",
    "organization_domain.created",
    "organization_domain.deleted",
    "organization_domain.updated",
    "organization_domain.verified",
    "organization_domain.verification_failed",
    "password_reset.created",
    "password_reset.succeeded",
    "user.created",
    "user.updated",
    "user.deleted",
    "organization_membership.created",
    "organization_membership.deleted",
    "organization_membership.updated",
    "role.created",
    "role.deleted",
    "role.updated",
    "organization_role.created",
    "organization_role.deleted",
    "organization_role.updated",
    "permission.created",
    "permission.deleted",
    "permission.updated",
    "pipes.connected_account.connected",
    "pipes.connected_account.connection_failed",
    "pipes.connected_account.disconnected",
    "pipes.connected_account.reauthorization_needed",
    "session.created",
    "session.revoked",
    "waitlist_user.approved",
    "waitlist_user.created",
    "waitlist_user.denied",
]
