{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dotsy-ai/json-schema/dotsy-ai-bulk-put-assets-response-schema.json",
  "title": "BulkPutAssetsResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dotsy-ai-assets-api-openapi.yml#/components/schemas/BulkPutAssetsResponse",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean",
      "enum": [
        true
      ]
    },
    "applied": {
      "type": "integer",
      "description": "How many items were stored."
    },
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "description": "The stored key. For a raster image this is the WebP key, which can differ from the key you sent."
          },
          "originalKey": {
            "type": "string",
            "description": "The key you sent, when the image is stored under another one. `/assets/{originalKey}` keeps serving it, and published pages that reference it are pointed at the stored image. Use `key` in new references."
          },
          "hint": {
            "type": "string",
            "description": "Present when `{name}.webp` already held another image, so this one was stored as `{name}-{ext}.webp` (in `key`). Published pages that use the name you sent still show it; CSS and JS must use `key`."
          },
          "created": {
            "type": "boolean",
            "description": "True when the asset did not exist before."
          },
          "size": {
            "type": "integer",
            "description": "Stored size in bytes."
          },
          "contentType": {
            "type": "string"
          },
          "sha256": {
            "type": "string",
            "description": "SHA-256 of the STORED bytes. For JS, CSS and SVG it matches the upload; a raster image is re-encoded to WebP, so it may not."
          },
          "width": {
            "type": "integer",
            "description": "Pixel width, for a processed raster image."
          },
          "height": {
            "type": "integer",
            "description": "Pixel height, for a processed raster image."
          },
          "suggestedSrcset": {
            "type": "string",
            "description": "A ready-made `srcset` for the image and its smaller variant."
          },
          "variants": {
            "type": "object",
            "properties": {
              "sm": {
                "type": "string"
              }
            },
            "required": [
              "sm"
            ],
            "description": "Keys of the extra sizes stored next to the image."
          },
          "processed": {
            "type": "boolean",
            "description": "True when the image was optimized on upload."
          },
          "skippedReencode": {
            "type": "boolean",
            "description": "True when the image was already small enough to keep as is."
          },
          "optimized": {
            "type": "boolean",
            "enum": [
              false
            ],
            "description": "Present as false when a raster image was stored exactly as sent instead of re-encoded; `reason` says why."
          },
          "reason": {
            "type": "string",
            "enum": [
              "daily_image_budget",
              "optimize_off",
              "animated_gif"
            ],
            "description": "Why `optimized` is false: the daily image-processing budget was used up (`daily_image_budget`), you sent `optimize: false` (`optimize_off`), or the file is an animated GIF, which keeps its frames (`animated_gif`)."
          },
          "etag": {
            "type": "string",
            "description": "The stored file's content fingerprint (MD5 hex)."
          }
        },
        "required": [
          "key",
          "created",
          "size",
          "contentType",
          "sha256",
          "etag"
        ]
      },
      "description": "One entry per item, in request order."
    }
  },
  "required": [
    "ok",
    "applied",
    "items"
  ]
}