Auth0 events API

The events API from Auth0 — 1 operation(s) for events.

OpenAPI Specification

auth0-events-api-openapi.yml Raw ↑
openapi: 3.0.0
info:
  title: Auth0 Authentication actions events API
  description: Auth0 Authentication API. Endpoints for authentication and authorization using OpenID Connect, OAuth 2.0, SAML, WS-Federation, and Passwordless flows.
  version: 1.0.0
servers:
- url: '{auth0_domain}'
  description: The Authentication API is served over HTTPS.
  variables:
    auth0_domain:
      description: Auth0 domain
      default: https://demo.us.auth0.com
tags:
- name: events
paths:
  /events:
    get:
      summary: Subscribe to Events Via Server-Sent Events (SSE)
      description: Subscribe to events via Server-Sent Events (SSE)
      tags:
      - events
      parameters:
      - name: from
        in: query
        description: Opaque token representing position in the stream. If not provided, stream will start from the latest events.
        schema:
          type: string
          maxLength: 1024
      - name: from_timestamp
        in: query
        description: RFC-3339 timestamp indicating where to start streaming events from. This should only be used on the initial query when a cursor may not be available. Subsequent requests should use the cursor (from) as it will be more accurate.
        schema:
          type: string
          maxLength: 20
      - name: event_type
        in: query
        description: Event type(s) to listen for. Specify multiple times for multiple types (e.g., ?event_type=user.created&event_type=user.updated). If not provided, all event types will be streamed.
        style: form
        explode: true
        schema:
          $ref: '#/components/schemas/EventStreamSubscribeEventsEventTypeParam'
      responses:
        '200':
          description: Event stream successfully established.
          content:
            text/event-stream:
              schema:
                $ref: '#/components/schemas/EventStreamSubscribeEventsResponseContent'
        '400':
          description: Invalid cursor format.
          x-description-1: Unsupported event type.
          x-description-2: Invalid request query string. The message will vary depending on the cause.
        '401':
          description: Invalid token.
          x-description-1: Invalid signature received for JSON Web Token validation.
          x-description-2: Client is not global.
        '403':
          description: Maximum concurrent event stream connections reached. Please close existing connections.
          x-description-1: 'Insufficient scope; expected any of: read:events.'
        '404':
          description: Not found
        '410':
          description: Cursor points to data no longer available in the stream.
        '429':
          description: Too many requests. Check the X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset headers.
      operationId: subscribe_events
      x-release-lifecycle: GA
      x-operation-name: subscribe
      x-operation-request-parameters-name: SubscribeEventsRequestParameters
      x-operation-group: events
      security:
      - bearerAuth: []
      - oAuth2ClientCredentials:
        - read:events
components:
  schemas:
    EventStreamCloudEventOrgConnectionAddedCloudEventTypeEnum:
      type: string
      description: The type of the event which has happened.
      enum:
      - organization.connection.added
    EventStreamCloudEventOrgConnectionAddedObjectConnection:
      type: object
      additionalProperties: false
      required:
      - id
      properties:
        id:
          type: string
          description: The ID of the connection.
          pattern: con_[a-zA-Z0-9]{16}
    EventStreamCloudEventUserDeletedTypeEnum:
      type: string
      description: The event type (injected from the SSE event field).
      enum:
      - user.deleted
    EventStreamCloudEventOrgCreatedCloudEvent:
      type: object
      description: Represents an event that occurs when an organization is created.
      additionalProperties: false
      required:
      - specversion
      - type
      - source
      - id
      - time
      - data
      - a0tenant
      - a0stream
      properties:
        specversion:
          type: string
          description: The version of the CloudEvents specification which the event uses.
        type:
          $ref: '#/components/schemas/EventStreamCloudEventOrgCreatedCloudEventTypeEnum'
        source:
          type: string
          description: The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.
        id:
          type: string
          description: A unique identifier for the event.
          pattern: evt_[a-zA-Z0-9]{16}
        time:
          type: string
          description: An ISO-8601 timestamp indicating when the event physically occurred.
          format: date-time
        data:
          $ref: '#/components/schemas/EventStreamCloudEventOrgCreatedData'
        a0tenant:
          type: string
          description: The auth0 tenant ID to which the event is associated.
          minLength: 3
          maxLength: 63
          pattern: '[a-z0-9][-a-z0-9]{1,62}[a-z0-9]'
        a0stream:
          type: string
          description: The auth0 event stream ID of the stream the event was delivered on.
          pattern: est_[a-zA-Z0-9]{16}
        a0purpose:
          $ref: '#/components/schemas/EventStreamCloudEventA0PurposeEnum'
    EventStreamCloudEventUserDeletedObjectIdentitiesItemDatabaseUserId:
      description: The IDP-specific identifer for the user.
      anyOf:
      - type: string
      - type: integer
    EventStreamCloudEventUserCreatedObject:
      type: object
      description: The event content.
      additionalProperties: true
      required:
      - user_id
      - created_at
      - updated_at
      - identities
      properties:
        user_id:
          type: string
          description: ID of the user which can be used when interacting with other APIs.
        email:
          type: string
          description: Email address of this user.
          format: email
        email_verified:
          type: boolean
          description: Whether this email address is verified (true) or unverified (false).
        username:
          type: string
          description: Username of this user.
          minLength: 1
          maxLength: 128
          pattern: ^[a-zA-Z0-9_+\-.!#\$\^`~@']*$
        phone_number:
          type: string
          description: Phone number of this user.
          pattern: ^\+[0-9]{1,15}$
        phone_verified:
          type: boolean
          description: Whether this phone number has been verified (true) or not (false).
        created_at:
          type: string
          description: Date and time when this entity was created (ISO_8601 format).
          format: date-time
        updated_at:
          type: string
          description: Date and time when this entity was last updated/modified (ISO_8601 format).
          format: date-time
        identities:
          type: array
          description: Array of user identity objects when accounts are linked.
          items:
            $ref: '#/components/schemas/EventStreamCloudEventUserCreatedObjectIdentitiesItem'
        app_metadata:
          $ref: '#/components/schemas/EventStreamCloudEventUserCreatedObjectAppMetadata'
        user_metadata:
          $ref: '#/components/schemas/EventStreamCloudEventUserCreatedObjectUserMetadata'
        picture:
          type: string
          description: URL to picture, photo, or avatar of this user.
          format: uri
        name:
          type: string
          description: Name of this user.
          minLength: 1
          maxLength: 300
        nickname:
          type: string
          description: Preferred nickname or alias of this user.
          minLength: 1
          maxLength: 300
        multifactor:
          type: array
          description: List of multi-factor authentication providers with which this user has enrolled.
          items:
            type: string
        last_ip:
          type: string
          description: Last IP address from which this user logged in.
        last_login:
          type: string
          description: Last date and time this user logged in (ISO_8601 format).
          format: date-time
        logins_count:
          type: integer
          description: Total number of logins this user has performed.
        blocked:
          type: boolean
          description: Whether this user was blocked by an administrator (true) or is not (false).
        given_name:
          type: string
          description: Given name/first name/forename of this user.
          minLength: 1
          maxLength: 150
        family_name:
          type: string
          description: Family name/last name/surname of this user.
          minLength: 1
          maxLength: 150
    EventStreamCloudEventGroupMemberAddedData:
      type: object
      description: The event payload.
      additionalProperties: false
      required:
      - object
      properties:
        object:
          $ref: '#/components/schemas/EventStreamCloudEventGroupMemberAddedObject'
        context:
          $ref: '#/components/schemas/EventStreamCloudEventContext'
    EventStreamCloudEventGroupUpdatedCloudEvent:
      type: object
      description: Represents an event that occurs when a group is updated.
      additionalProperties: false
      required:
      - specversion
      - type
      - source
      - id
      - time
      - data
      - a0tenant
      - a0stream
      properties:
        specversion:
          type: string
          description: The version of the CloudEvents specification which the event uses.
        type:
          $ref: '#/components/schemas/EventStreamCloudEventGroupUpdatedCloudEventTypeEnum'
        source:
          type: string
          description: The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.
        id:
          type: string
          description: A unique identifier for the event.
          pattern: evt_[a-zA-Z0-9]{16}
        time:
          type: string
          description: An ISO-8601 timestamp indicating when the event physically occurred.
          format: date-time
        data:
          $ref: '#/components/schemas/EventStreamCloudEventGroupUpdatedData'
        a0tenant:
          type: string
          description: The auth0 tenant ID to which the event is associated.
          minLength: 3
          maxLength: 63
          pattern: '[a-z0-9][-a-z0-9]{1,62}[a-z0-9]'
        a0stream:
          type: string
          description: The auth0 event stream ID of the stream the event was delivered on.
          pattern: est_[a-zA-Z0-9]{16}
        a0purpose:
          $ref: '#/components/schemas/EventStreamCloudEventA0PurposeEnum'
    EventStreamCloudEventOrgCreatedObjectMetadata:
      type: object
      description: The metadata associated with the organization.
      additionalProperties: true
      properties: {}
    EventStreamCloudEventOrgCreated:
      type: object
      description: SSE message for organization.created.
      additionalProperties: false
      required:
      - type
      - offset
      - event
      properties:
        type:
          $ref: '#/components/schemas/EventStreamCloudEventOrgCreatedTypeEnum'
        offset:
          type: string
          description: Opaque cursor representing position in the stream. Pass as the `from` query parameter to resume.
        event:
          $ref: '#/components/schemas/EventStreamCloudEventOrgCreatedCloudEvent'
    EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessProviderEnum:
      type: string
      description: List of passwordless identity providers.
      enum:
      - email
      - sms
    EventStreamCloudEventUserUpdatedObjectIdentitiesItemCustomProviderEnum:
      type: string
      description: List of custom identity providers.
      enum:
      - custom
    EventStreamCloudEventGroupDeleted:
      type: object
      description: SSE message for group.deleted.
      additionalProperties: false
      required:
      - type
      - offset
      - event
      properties:
        type:
          $ref: '#/components/schemas/EventStreamCloudEventGroupDeletedTypeEnum'
        offset:
          type: string
          description: Opaque cursor representing position in the stream. Pass as the `from` query parameter to resume.
        event:
          $ref: '#/components/schemas/EventStreamCloudEventGroupDeletedCloudEvent'
    EventStreamCloudEventOrgUpdatedObject:
      type: object
      description: The event content.
      additionalProperties: false
      required:
      - id
      properties:
        name:
          type: string
          description: The human-readable identifier for the organization that will be used by end-users to direct them to their organization in your application..
          pattern: ^(?:(?!org_))[a-z0-9]([a-z0-9-_]*[a-z0-9])?$
        id:
          type: string
          description: ID of the organization.
          pattern: org_[a-zA-Z0-9]{16}
        display_name:
          type: string
          description: If set, the name that will be displayed to end-users for this organization in any interaction with them.
        metadata:
          $ref: '#/components/schemas/EventStreamCloudEventOrgUpdatedObjectMetadata'
        branding:
          $ref: '#/components/schemas/EventStreamCloudEventOrgUpdatedObjectBranding'
    EventStreamCloudEventGroupMemberAddedObjectMember1:
      type: object
      description: A group member of member_type group
      additionalProperties: false
      required:
      - member_type
      - id
      - type
      - connection_id
      properties:
        member_type:
          $ref: '#/components/schemas/EventStreamCloudEventGroupMemberAddedObjectMember1MemberTypeEnum'
        id:
          type: string
          description: The connection member's unique identifier
        type:
          type: string
          description: The type of the connection
        connection_id:
          type: string
          description: Connection ID associated with the member
          pattern: con_[a-zA-Z0-9]{16}
    EventStreamCloudEventA0PurposeEnum:
      type: string
      description: 'The purpose of this event. This field will typically appear only in special cases

        such as sending a test event. For normal events, this field will be omitted.'
      enum:
      - test
    EventStreamCloudEventUserCreated:
      type: object
      description: SSE message for user.created.
      additionalProperties: false
      required:
      - type
      - offset
      - event
      properties:
        type:
          $ref: '#/components/schemas/EventStreamCloudEventUserCreatedTypeEnum'
        offset:
          type: string
          description: Opaque cursor representing position in the stream. Pass as the `from` query parameter to resume.
        event:
          $ref: '#/components/schemas/EventStreamCloudEventUserCreatedCloudEvent'
    EventStreamCloudEventUserUpdatedCloudEventTypeEnum:
      type: string
      description: The type of the event which has happened.
      enum:
      - user.updated
    EventStreamCloudEventGroupDeletedObject0TypeEnum:
      type: string
      description: The type of the group.
      enum:
      - connection
    EventStreamCloudEventUserDeletedObjectIdentitiesItemEnterpriseProfileData:
      type: object
      description: Profile data for the user.
      additionalProperties: true
      properties:
        email:
          type: string
          description: Email address of this user.
          format: email
        email_verified:
          type: boolean
          description: Whether this email address is verified (true) or unverified (false).
        name:
          type: string
          description: Name of this user.
          minLength: 1
          maxLength: 300
        username:
          type: string
          description: Username of this user.
          minLength: 1
          maxLength: 128
          pattern: ^[a-zA-Z0-9_+\-.!#\$\^`~@']*$
        given_name:
          type: string
          description: Given name/first name/forename of this user.
          minLength: 1
          maxLength: 150
        family_name:
          type: string
          description: Family name/last name/surname of this user.
          minLength: 1
          maxLength: 150
        phone_number:
          type: string
          description: Phone number of this user.
          pattern: ^\+[0-9]{1,15}$
        phone_verified:
          type: boolean
          description: Whether this phone number has been verified (true) or not (false).
    EventStreamCloudEventGroupMemberAddedObjectMember0MemberTypeEnum:
      type: string
      description: Type discriminator for user members
      enum:
      - user
    EventStreamCloudEventUserUpdatedCloudEvent:
      type: object
      description: Represents an event that occurs when a user is updated.
      additionalProperties: false
      required:
      - specversion
      - type
      - source
      - id
      - time
      - data
      - a0tenant
      - a0stream
      properties:
        specversion:
          type: string
          description: The version of the CloudEvents specification which the event uses.
        type:
          $ref: '#/components/schemas/EventStreamCloudEventUserUpdatedCloudEventTypeEnum'
        source:
          type: string
          description: The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.
        id:
          type: string
          description: A unique identifier for the event.
          pattern: evt_[a-zA-Z0-9]{16}
        time:
          type: string
          description: An ISO-8601 timestamp indicating when the event physically occurred.
          format: date-time
        data:
          $ref: '#/components/schemas/EventStreamCloudEventUserUpdatedData'
        a0tenant:
          type: string
          description: The auth0 tenant ID to which the event is associated.
          minLength: 3
          maxLength: 63
          pattern: '[a-z0-9][-a-z0-9]{1,62}[a-z0-9]'
        a0stream:
          type: string
          description: The auth0 event stream ID of the stream the event was delivered on.
          pattern: est_[a-zA-Z0-9]{16}
        a0purpose:
          $ref: '#/components/schemas/EventStreamCloudEventA0PurposeEnum'
    EventStreamCloudEventOrgMemberRoleDeletedData:
      type: object
      description: The event payload.
      additionalProperties: false
      required:
      - object
      properties:
        object:
          $ref: '#/components/schemas/EventStreamCloudEventOrgMemberRoleDeletedObject'
        context:
          $ref: '#/components/schemas/EventStreamCloudEventContext'
    EventStreamCloudEventOrgUpdatedData:
      type: object
      description: The event payload.
      additionalProperties: false
      required:
      - object
      properties:
        object:
          $ref: '#/components/schemas/EventStreamCloudEventOrgUpdatedObject'
        context:
          $ref: '#/components/schemas/EventStreamCloudEventContext'
    EventStreamCloudEventOrgGroupRoleAssignedObjectGroup1:
      type: object
      description: Reference to an organization group
      additionalProperties: false
      required:
      - id
      - type
      - organization_id
      properties:
        id:
          type: string
          description: The unique identifier for the group.
          pattern: grp_[1-9a-km-zA-HJ-NP-Z]{14,22}
        external_id:
          type: string
          description: The external identifier for the group.
        type:
          $ref: '#/components/schemas/EventStreamCloudEventOrgGroupRoleAssignedObjectGroup1TypeEnum'
        organization_id:
          type: string
          description: The organization ID associated with the group.
          pattern: org_[a-zA-Z0-9]{16}
    EventStreamCloudEventOrgGroupRoleAssignedObjectGroup2:
      type: object
      description: Reference to a tenant group
      additionalProperties: false
      required:
      - id
      - type
      properties:
        id:
          type: string
          description: The unique identifier for the group.
          pattern: grp_[1-9a-km-zA-HJ-NP-Z]{14,22}
        external_id:
          type: string
          description: The external identifier for the group.
        type:
          $ref: '#/components/schemas/EventStreamCloudEventOrgGroupRoleAssignedObjectGroup2TypeEnum'
    EventStreamCloudEventUserUpdatedObjectIdentitiesItemEnterpriseProfileData:
      type: object
      description: Profile data for the user.
      additionalProperties: true
      properties:
        email:
          type: string
          description: Email address of this user.
          format: email
        email_verified:
          type: boolean
          description: Whether this email address is verified (true) or unverified (false).
        name:
          type: string
          description: Name of this user.
          minLength: 1
          maxLength: 300
        username:
          type: string
          description: Username of this user.
          minLength: 1
          maxLength: 128
          pattern: ^[a-zA-Z0-9_+\-.!#\$\^`~@']*$
        given_name:
          type: string
          description: Given name/first name/forename of this user.
          minLength: 1
          maxLength: 150
        family_name:
          type: string
          description: Family name/last name/surname of this user.
          minLength: 1
          maxLength: 150
        phone_number:
          type: string
          description: Phone number of this user.
          pattern: ^\+[0-9]{1,15}$
        phone_verified:
          type: boolean
          description: Whether this phone number has been verified (true) or not (false).
    EventStreamCloudEventOrgMemberRoleAssignedObjectUser:
      type: object
      description: The user that is a member of the organization.
      additionalProperties: true
      required:
      - user_id
      properties:
        user_id:
          type: string
          description: ID of the user which can be used when interacting with other APIs.
    EventStreamCloudEventOrgDeleted:
      type: object
      description: SSE message for organization.deleted.
      additionalProperties: false
      required:
      - type
      - offset
      - event
      properties:
        type:
          $ref: '#/components/schemas/EventStreamCloudEventOrgDeletedTypeEnum'
        offset:
          type: string
          description: Opaque cursor representing position in the stream. Pass as the `from` query parameter to resume.
        event:
          $ref: '#/components/schemas/EventStreamCloudEventOrgDeletedCloudEvent'
    EventStreamCloudEventUserDeletedObjectIdentitiesItemPasswordlessProfileData:
      type: object
      description: Profile data for the user.
      additionalProperties: true
      properties:
        email:
          type: string
          description: Email address of this user.
          format: email
        email_verified:
          type: boolean
          description: Whether this email address is verified (true) or unverified (false).
        name:
          type: string
          description: Name of this user.
          minLength: 1
          maxLength: 300
        username:
          type: string
          description: Username of this user.
          minLength: 1
          maxLength: 128
          pattern: ^[a-zA-Z0-9_+\-.!#\$\^`~@']*$
        given_name:
          type: string
          description: Given name/first name/forename of this user.
          minLength: 1
          maxLength: 150
        family_name:
          type: string
          description: Family name/last name/surname of this user.
          minLength: 1
          maxLength: 150
        phone_number:
          type: string
          description: Phone number of this user.
          pattern: ^\+[0-9]{1,15}$
        phone_verified:
          type: boolean
          description: Whether this phone number has been verified (true) or not (false).
    EventStreamCloudEventContextConnection:
      type: object
      description: The Auth0 Connection used for the authentication transaction that generated the event.
      additionalProperties: false
      required:
      - id
      - name
      - strategy
      properties:
        id:
          type: string
          description: The ID of the connection.
          pattern: con_[a-zA-Z0-9]{16}
        name:
          type: string
          description: The name of the connection.
          pattern: ^[a-zA-Z0-9](-[a-zA-Z0-9]|[a-zA-Z0-9])*$
        strategy:
          type: string
          description: The auth strategy implemented by the connection.
    EventStreamCloudEventGroupRoleDeletedObject:
      type: object
      description: The event content.
      additionalProperties: false
      required:
      - group
      - role
      - deleted_at
      properties:
        group:
          $ref: '#/components/schemas/EventStreamCloudEventGroupRoleDeletedObjectGroup'
        role:
          $ref: '#/components/schemas/EventStreamCloudEventGroupRoleDeletedObjectRole'
        deleted_at:
          type: string
          description: The time at which the role was removed from the group.
          format: date-time
    EventStreamCloudEventUserCreatedObjectIdentitiesItemEnterpriseProfileData:
      type: object
      description: Profile data for the user.
      additionalProperties: true
      properties:
        email:
          type: string
          description: Email address of this user.
          format: email
        email_verified:
          type: boolean
          description: Whether this email address is verified (true) or unverified (false).
        name:
          type: string
          description: Name of this user.
          minLength: 1
          maxLength: 300
        username:
          type: string
          description: Username of this user.
          minLength: 1
          maxLength: 128
          pattern: ^[a-zA-Z0-9_+\-.!#\$\^`~@']*$
        given_name:
          type: string
          description: Given name/first name/forename of this user.
          minLength: 1
          maxLength: 150
        family_name:
          type: string
          description: Family name/last name/surname of this user.
          minLength: 1
          maxLength: 150
        phone_number:
          type: string
          description: Phone number of this user.
          pattern: ^\+[0-9]{1,15}$
        phone_verified:
          type: boolean
          description: Whether this phone number has been verified (true) or not (false).
    EventStreamCloudEventGroupDeletedObject2:
      type: object
      description: Tenant group with updated_at timestamp
      additionalProperties: false
      required:
      - id
      - name
      - created_at
      - type
      - updated_at
      properties:
        id:
          type: string
          description: The unique identifier for the group.
          pattern: grp_[1-9a-km-zA-HJ-NP-Z]{14,22}
        name:
          type: string
          description: The name of the group.
        external_id:
          type: string
          description: The external identifier for the group.
        created_at:
          type: string
          description: Date and time when this entity was created (ISO_8601 format).
          format: date-time
        type:
          $ref: '#/components/schemas/EventStreamCloudEventGroupDeletedObject2TypeEnum'
        updated_at:
          type: string
          description: Date and time when this entity was last updated/modified (ISO_8601 format).
          format: date-time
    EventStreamCloudEventOrgMemberRoleAssignedObjectOrganization:
      type: object
      description: The organization the member belongs to.
      additionalProperties: false
      required:
      - id
      properties:
        id:
          type: string
          description: ID of the organization.
          pattern: org_[a-zA-Z0-9]{16}
    EventStreamCloudEventGroupDeletedCloudEventTypeEnum:
      type: string
      description: The type of the event which has happened.
      enum:
      - group.deleted
    EventStreamCloudEventOrgUpdatedCloudEvent:
      type: object
      description: Represents an event that occurs when an organization is updated.
      additionalProperties: false
      required:
      - specversion
      - type
      - source
      - id
      - time
      - data
      - a0tenant
      - a0stream
      properties:
        specversion:
          type: string
          description: The version of the CloudEvents specification which the event uses.
        type:
          $ref: '#/components/schemas/EventStreamCloudEventOrgUpdatedCloudEventTypeEnum'
        source:
          type: string
          description: The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.
        id:
          type: string
          description: A unique identifier for the event.
          pattern: evt_[a-zA-Z0-9]{16}
        time:
          type: string
          description: An ISO-8601 timestamp indicating when the event physically occurred.
          format: date-time
        data:
          $ref: '#/components/schemas/EventStreamCloudEventOrgUpdatedData'
        a0tenant:
          type: string
          description: The auth0 tenant ID to which the event is associated.
          minLength: 3
          maxLength: 63
          pattern: '[a-z0-9][-a-z0-9]{1,62}[a-z0-9]'
        a0stream:
          type: string
          description: The auth0 event stream ID of the stream the event was delivered on.
          pattern: est_[a-zA-Z0-9]{16}
        a0purpose:
          $ref: '#/components/schemas/EventStreamCloudEventA0PurposeEnum'
    EventStreamCloudEventGroupDeletedData:
      type: object
      description: The event payload.
      additionalProperties: false
      required:
      - object
      properties:
        object:
          $ref: '#/components/schemas/EventStreamCloudEventGroupDeletedObject'
        context:
          $ref: '#/components/schemas/EventStreamCloudEventContext'
    EventStreamCloudEventOrgGroupRoleDeletedTypeEnum:
      type: string
      description: The event type (injected from the SSE event field).
      enum:
      - organization.group.role.deleted
    EventStreamCloudEventGroupMemberDeletedTypeEnum:
      type: string
      description: The event type (injected from the SSE event field).
      enum:
      - group.member.deleted
    EventStreamCloudEventGroupRoleAssignedTypeEnum:
      type: string
      description: The event type (injected from the SSE event field).
      enum:
      - group.role.assigned
    EventStreamCloudEventOrgUpdatedTypeEnum:
      type: string
      description: The event type (injected from the SSE event field).
      enum:
      - organization.updated
    EventStreamCloudEventOrgDeletedCloudEvent:
      type: object
      description: Represents an event that occurs when an organization is deleted.
      additionalProperties: false
      required:
      - specversion
      - type
      - source
      - id
      - time
      - data
      - a0tenant
      - a0stream
      properties:
        specversion:
          type: string
          description: The version of the CloudEvents specification which the event uses.
        type:
          $ref: '#/components/schemas/EventStreamCloudEventOrgDeletedCloudEventTypeEnum'
        source:
          type: string
          description: The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.
        id:
          type: string
          description: A unique identifier for the event.
          pattern: evt_[a-zA-Z0-9]{16}
        time:
          type: string
          description: An ISO-8601 timestamp indicating when the event physically occurred.
          format: date-time
        data:
          $ref: '#/components/schemas/EventStreamCloudEventOrgDeletedData'
        a0tenant:
          type: string
          description: The auth0 tenant ID to which the event is associated.
          minLength: 3
          maxLength: 63
          pattern: '[a-z0-9][-a-z0-9]{1,62}[a-z0-9]'
        a0stream:
          type: string
          description: The auth0 event stream ID of the stream the event was delivered on.
          pattern: est_[a-zA-Z0-9]{16}
        a0purpose:
          $ref: '#/components/schemas/EventStreamCloudEventA0PurposeEnum'
    EventStreamCloudEventOrgMemberRoleDeleted:
      type: object
      description: SSE message for organization.member.role.deleted.
      additionalProperties: false
      required:
      - type
      - offset
      - event
      properties:
        type:
          $ref: '#/components/schemas/E

# --- truncated at 32 KB (188 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/auth0/refs/heads/main/openapi/auth0-events-api-openapi.yml