{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aura-historia-com/json-schema/aura-historia-com-watchlist-entry-data-schema.json",
  "title": "WatchlistEntryData",
  "description": "A user's watchlist entry.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aura-historia-com-watchlist-api-openapi.yml#/components/schemas/WatchlistEntryData",
  "type": "object",
  "required": [
    "userId",
    "productListingId",
    "notifications",
    "state"
  ],
  "properties": {
    "userId": {
      "type": "string",
      "description": "Identifier of the user who owns the entry."
    },
    "productListingId": {
      "type": "string",
      "description": "Canonical identifier of the watched product."
    },
    "notifications": {
      "type": "boolean",
      "description": "Whether notifications are enabled for this entry."
    },
    "state": {
      "$ref": "#/$defs/ResourceStateData"
    },
    "created": {
      "type": "string",
      "format": "date-time",
      "description": "When the entry was created, when available."
    },
    "updated": {
      "type": "string",
      "format": "date-time",
      "description": "When the entry was last updated, when available."
    }
  },
  "$defs": {
    "ResourceStateData": {
      "type": "string",
      "description": "Activation state of a stored user-owned resource such as a saved search filter.\n`ACTIVE` resources are eligible for their normal runtime behavior.\n`INACTIVE_BY_USER` resources were explicitly deactivated by the user.\n`INACTIVE_BY_RESTRICTED_PLAN` resources remain stored but are inactive because the user's current tier no longer allows them to stay active.\n",
      "enum": [
        "ACTIVE",
        "INACTIVE_BY_USER",
        "INACTIVE_BY_RESTRICTED_PLAN"
      ]
    }
  }
}