{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/huggingbay-xyz/json-schema/huggingbay-xyz-saved-artifact-schema.json",
  "title": "SavedArtifact",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/huggingbay-xyz-library-api-openapi.yml#/components/schemas/SavedArtifact",
  "type": "object",
  "required": [
    "id",
    "repo",
    "owner",
    "name",
    "type",
    "license",
    "summary",
    "hostingStatus",
    "sourceUrl",
    "savedAt"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "repo": {
      "type": "string"
    },
    "owner": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "type": {
      "type": "string"
    },
    "license": {
      "type": "string"
    },
    "summary": {
      "type": "string"
    },
    "hostingStatus": {
      "type": "string"
    },
    "sourceUrl": {
      "type": "string"
    },
    "savedAt": {
      "type": "string"
    },
    "collection": {
      "type": "string",
      "description": "Optional user-defined library collection name."
    },
    "note": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "object",
          "required": [
            "summary"
          ],
          "properties": {
            "summary": {
              "type": "string"
            },
            "downloadable": {
              "type": "boolean"
            }
          },
          "additionalProperties": false
        }
      ]
    },
    "noteMessage": {
      "type": "string",
      "description": "Original route note, when a public qualification occupies note."
    }
  },
  "additionalProperties": true
}