Skip to content

LoggedOutUser ​

Type: schema

TypeScript Definition ​

typescript
LoggedOutUser: {{
            /** @description The unique ID of the user. */
            id: $Read<string>;
            /** @description Indicates whether the user is anonymous. */
            is_anonymous: $Read<boolean>;
            /**
             * @description Indicates whether the user is currently logged in.
             * @constant
             */
            is_logged_in: $Read<false>;
            /** @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
             */
            is_email_verified: $Read<boolean>;
            /**
             * @description Boolean indicating whether the phone is verified.
             * @default false
             */
            is_phone_verified: $Read<boolean>;
            /** @description URL to the user's profile image. */
            profile_image_url: string | null;
            /** @description Always `null` after logout. */
            country_code: string | null;
            /** @description Always `null` after logout. */
            customer_id: string | null;
            /** @description Always `null` after logout. */
            customer_group_id: string | null;
            /**
             * Format: date-time
             * @description Always `null` after logout.
             */
            created_at: $Read<string | null>;
            /**
             * Format: date-time
             * @description Always `null` after logout.
             */
            modified_at: $Read<string | null>;
        };
        /** LotBatchDetail */
}

OpenAPI Schema ​

json
{
  "title": "LoggedOutUser",
  "type": "object",
  "externalDocs": {
    "url": "https://llm-docs.commercengine.io/storefront/schemas/LoggedOutUser",
    "description": "API reference for the LoggedOutUser schema"
  },
  "required": [
    "id",
    "is_anonymous",
    "is_logged_in",
    "first_name",
    "last_name",
    "phone",
    "email",
    "is_email_verified",
    "is_phone_verified",
    "profile_image_url",
    "country_code",
    "customer_id",
    "customer_group_id",
    "created_at",
    "modified_at"
  ],
  "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",
      "const": false,
      "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"
      ]
    },
    "country_code": {
      "description": "Always `null` after logout.",
      "type": [
        "string",
        "null"
      ]
    },
    "customer_id": {
      "description": "Always `null` after logout.",
      "type": [
        "string",
        "null"
      ]
    },
    "customer_group_id": {
      "description": "Always `null` after logout.",
      "type": [
        "string",
        "null"
      ]
    },
    "created_at": {
      "description": "Always `null` after logout.",
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "readOnly": true
    },
    "modified_at": {
      "description": "Always `null` after logout.",
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "readOnly": true
    }
  }
}

Auto-generated from OpenAPI spec and TypeScript definitions

Last updated: