Skip to content

AnonymousUser

Type: schema

TypeScript Definition

typescript
AnonymousUser: {{
            /** @description The unique ID of the user. */
            readonly id: string;
            /** @description Indicates whether the user is anonymous. */
            readonly is_anonymous: boolean;
            /** @description Indicates whether the user is currently logged in. */
            readonly is_logged_in: boolean;
            /** @description User’s first name. */
            first_name: string | null;
            /** @description User’s last name. */
            last_name: string | null;
            /** @description 10 digit phone number without country code. */
            phone: string | null;
            /** @description User’s email I’d. */
            email: string | null;
            /**
             * @description Boolean indicating whether the email is verified.
             * @default false
             */
            readonly is_email_verified: boolean;
            /**
             * @description Boolean indicating whether the phone is verified.
             * @default false
             */
            readonly is_phone_verified: boolean;
            /** @description URL to the user's profile image. */
            profile_image_url: string | null;
            /**
             * Format: datetime
             * @description Timestamps indicate when the user's account was created.
             */
            readonly created_at?: string;
            /**
             * Format: datetime
             * @description Timestamps indicating when the user account was last modified.
             */
            readonly modified_at?: string;
        };
}

OpenAPI Schema

json
{
  "title": "AnonymousUser",
  "type": "object",
  "externalDocs": {
    "url": "https://llm-docs.commercengine.io/storefront/schemas/AnonymousUser",
    "description": "API reference for the AnonymousUser schema"
  },
  "required": [
    "id",
    "is_anonymous",
    "is_logged_in",
    "first_name",
    "last_name",
    "phone",
    "email",
    "is_email_verified",
    "is_phone_verified",
    "profile_image_url"
  ],
  "properties": {
    "id": {
      "description": "The unique ID of the user.",
      "type": "string",
      "readOnly": true
    },
    "is_anonymous": {
      "description": "Indicates whether the user is anonymous.",
      "type": "boolean",
      "readOnly": true
    },
    "is_logged_in": {
      "description": "Indicates whether the user is currently logged in.",
      "type": "boolean",
      "readOnly": true
    },
    "first_name": {
      "description": "User’s first name.",
      "type": [
        "string",
        "null"
      ]
    },
    "last_name": {
      "description": "User’s last name.",
      "type": [
        "string",
        "null"
      ]
    },
    "phone": {
      "description": "10 digit phone number without country code.",
      "type": [
        "string",
        "null"
      ]
    },
    "email": {
      "description": "User’s email I’d.",
      "type": [
        "string",
        "null"
      ]
    },
    "is_email_verified": {
      "description": "Boolean indicating whether the email is verified.",
      "type": "boolean",
      "default": false,
      "readOnly": true
    },
    "is_phone_verified": {
      "description": "Boolean indicating whether the phone is verified.",
      "type": "boolean",
      "default": false,
      "readOnly": true
    },
    "profile_image_url": {
      "description": "URL to the user's profile image.",
      "type": [
        "string",
        "null"
      ]
    },
    "created_at": {
      "description": "Timestamps indicate when the user's account was created.",
      "type": "string",
      "format": "datetime",
      "readOnly": true
    },
    "modified_at": {
      "description": "Timestamps indicating when the user account was last modified.",
      "type": "string",
      "format": "datetime",
      "readOnly": true
    }
  }
}

Auto-generated from OpenAPI spec and TypeScript definitions

Last updated: