{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/revuo-ai/json-schema/revuo-ai-product-schema.json",
  "title": "Product",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/revuo-ai-openapi.json#/components/schemas/Product",
  "required": [
    "name",
    "slug",
    "websiteUrl"
  ],
  "type": "object",
  "properties": {
    "id": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true
    },
    "idCreated": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "slug": {
      "type": [
        "string",
        "null"
      ]
    },
    "name": {
      "type": [
        "string",
        "null"
      ]
    },
    "tagline": {
      "type": [
        "string",
        "null"
      ]
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "websiteUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "logoUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "screenshotUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "foundedYear": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "companyName": {
      "type": [
        "string",
        "null"
      ]
    },
    "companyHq": {
      "type": [
        "string",
        "null"
      ]
    },
    "pricingModel": {
      "$ref": "#/$defs/PricingModel"
    },
    "pricingStartsAt": {
      "type": [
        "string",
        "null"
      ]
    },
    "categoryIds": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      }
    },
    "status": {
      "$ref": "#/$defs/ProductStatus"
    },
    "claimedByVendorId": {
      "type": [
        "string",
        "null"
      ]
    },
    "claimedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "claimStatus": {
      "$ref": "#/$defs/ClaimStatus"
    },
    "claimVerifiedVia": {
      "$ref": "#/$defs/ClaimVerificationMethod"
    },
    "aiGeneratedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "day30AnalyticsEmailSentAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "tier": {
      "$ref": "#/$defs/ProductTier"
    },
    "tierAssignedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "stripeSubscriptionId": {
      "type": [
        "string",
        "null"
      ]
    },
    "tierGracePeriodEnd": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "analyticsGracePeriodEnd": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "lastClaimVerificationAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "websiteCheckFailures": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string",
        "format": "date-time"
      }
    },
    "genericityScore": {
      "type": [
        "number",
        "null"
      ],
      "format": "double"
    },
    "genericityScoredAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "genericPhrases": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      }
    },
    "backlinkVerified": {
      "type": "boolean"
    },
    "backlinkVerifiedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "ctaLabel": {
      "type": [
        "string",
        "null"
      ]
    },
    "ctaUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "badges": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/ProductBadge"
      }
    },
    "aiFieldConfidence": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": "number",
        "format": "double"
      }
    },
    "tldr": {
      "type": [
        "string",
        "null"
      ]
    },
    "ourTake": {
      "type": [
        "string",
        "null"
      ]
    },
    "prosAndCons": {
      "$ref": "#/$defs/ProsAndCons"
    },
    "knownLimitations": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/ProductLimitation"
      }
    },
    "currentScore": {
      "type": "number",
      "format": "double"
    },
    "previousScore": {
      "type": [
        "number",
        "null"
      ],
      "format": "double"
    },
    "scoreHistory": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/ScoreHistoryEntry"
      }
    },
    "excludedFromRanking": {
      "type": "boolean"
    },
    "excludedFromRankingReason": {
      "type": [
        "string",
        "null"
      ]
    },
    "competitorProductIds": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      }
    },
    "discoveredCompetitors": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/DiscoveredCompetitor"
      }
    },
    "isUnverified": {
      "type": "boolean",
      "readOnly": true
    },
    "houseProduct": {
      "type": "boolean",
      "readOnly": true
    },
    "claimEmailDomain": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true
    }
  },
  "additionalProperties": false,
  "$defs": {
    "ClaimStatus": {
      "enum": [
        "none",
        "pending",
        "approved"
      ],
      "type": "string"
    },
    "ClaimVerificationMethod": {
      "enum": [
        "none",
        "domainMatch",
        "workEmailCode",
        "websiteToken",
        "manual"
      ],
      "type": "string"
    },
    "DiscoveredCompetitor": {
      "required": [
        "name"
      ],
      "type": "object",
      "properties": {
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "url": {
          "type": [
            "string",
            "null"
          ]
        },
        "reason": {
          "type": [
            "string",
            "null"
          ]
        },
        "confidence": {
          "type": "number",
          "format": "double"
        },
        "matchedProductId": {
          "type": [
            "string",
            "null"
          ]
        },
        "isNsfw": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "LimitationSeverity": {
      "enum": [
        "minor",
        "notable",
        "significant"
      ],
      "type": "string"
    },
    "LimitationSource": {
      "enum": [
        "userReview",
        "editorial",
        "capabilityGap",
        "externalSource"
      ],
      "type": "string"
    },
    "PricingModel": {
      "enum": [
        "free",
        "freemium",
        "paid",
        "enterprise",
        "contactUs"
      ],
      "type": "string"
    },
    "ProductBadge": {
      "enum": [
        "verified",
        "editorsChoice",
        "topRated"
      ],
      "type": "string"
    },
    "ProductLimitation": {
      "required": [
        "evidenceUrl",
        "summary"
      ],
      "type": "object",
      "properties": {
        "summary": {
          "type": [
            "string",
            "null"
          ]
        },
        "detail": {
          "type": [
            "string",
            "null"
          ]
        },
        "evidenceUrl": {
          "type": [
            "string",
            "null"
          ]
        },
        "source": {
          "$ref": "#/$defs/LimitationSource"
        },
        "severity": {
          "$ref": "#/$defs/LimitationSeverity"
        },
        "addedAt": {
          "type": "string",
          "format": "date-time"
        }
      },
      "additionalProperties": false
    },
    "ProductStatus": {
      "enum": [
        "draft",
        "published",
        "archived",
        "rejected"
      ],
      "type": "string"
    },
    "ProductTier": {
      "enum": [
        "free",
        "verified",
        "featured"
      ],
      "type": "string"
    },
    "ProsAndCons": {
      "type": "object",
      "properties": {
        "pros": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "cons": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        }
      },
      "additionalProperties": false
    },
    "ScoreHistoryEntry": {
      "type": "object",
      "properties": {
        "date": {
          "type": "string",
          "format": "date-time"
        },
        "score": {
          "type": "number",
          "format": "double"
        },
        "breakdown": {
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": {
            "type": "number",
            "format": "double"
          }
        },
        "methodologyVersion": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    }
  }
}