{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/EventStreamCloudEventUserCreatedCloudEvent",
  "title": "EventStreamCloudEventUserCreatedCloudEvent",
  "type": "object",
  "description": "Represents an event that occurs when a user 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/EventStreamCloudEventUserCreatedCloudEventTypeEnum"
    },
    "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/EventStreamCloudEventUserCreatedData"
    },
    "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"
    }
  }
}