{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/huggingbay-xyz/json-schema/huggingbay-xyz-saved-search-digest-schema.json",
  "title": "SavedSearchDigest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/huggingbay-xyz-agents-api-openapi.yml#/components/schemas/SavedSearchDigest",
  "type": "object",
  "required": [
    "schemaVersion",
    "generatedAt",
    "search",
    "browserUrl",
    "apiUrl",
    "digestUrl",
    "summary",
    "rows",
    "newOrUpdated",
    "hosted",
    "requestable"
  ],
  "properties": {
    "schemaVersion": {
      "const": "hugging-bay.saved-search-digest.v1"
    },
    "generatedAt": {
      "type": "string"
    },
    "search": {
      "$ref": "https://huggingbay.xyz/api/schemas#/$defs/SavedSearch"
    },
    "browserUrl": {
      "type": "string"
    },
    "apiUrl": {
      "type": "string"
    },
    "digestUrl": {
      "type": "string"
    },
    "summary": {
      "type": "object",
      "required": [
        "totalMatches",
        "returnedMatches",
        "newOrUpdated",
        "hostedMatches",
        "requestableMatches",
        "topDownloads"
      ],
      "properties": {
        "totalMatches": {
          "type": "number"
        },
        "returnedMatches": {
          "type": "number"
        },
        "newOrUpdated": {
          "type": "number"
        },
        "hostedMatches": {
          "type": "number"
        },
        "requestableMatches": {
          "type": "number"
        },
        "topDownloads": {
          "type": "number"
        },
        "nextCursor": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": true
    },
    "rows": {
      "type": "array",
      "items": {
        "$ref": "https://huggingbay.xyz/api/schemas#/$defs/SavedSearchDigestRow"
      }
    },
    "newOrUpdated": {
      "type": "array",
      "items": {
        "$ref": "https://huggingbay.xyz/api/schemas#/$defs/SavedSearchDigestRow"
      }
    },
    "hosted": {
      "type": "array",
      "items": {
        "$ref": "https://huggingbay.xyz/api/schemas#/$defs/SavedSearchDigestRow"
      }
    },
    "requestable": {
      "type": "array",
      "items": {
        "$ref": "https://huggingbay.xyz/api/schemas#/$defs/SavedSearchDigestRow"
      }
    },
    "agentActions": {
      "type": "object",
      "additionalProperties": true
    },
    "policy": {
      "type": "object",
      "additionalProperties": true
    }
  },
  "additionalProperties": true
}