{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/EventStreamCloudEventUserCreatedObject",
  "title": "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
    }
  }
}