{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/getsocialclaw-com/json-schema/getsocialclaw-com-assets-response-schema.json",
  "title": "AssetsResponse",
  "description": "Asset list response.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/getsocialclaw-com-assets-and-media-delivery-api-openapi.yml#/components/schemas/AssetsResponse",
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "ok": {
      "const": true
    },
    "total": {
      "type": "integer",
      "description": "Total matching assets."
    },
    "limit": {
      "type": "integer",
      "description": "Page limit."
    },
    "offset": {
      "type": "integer",
      "description": "Page offset."
    },
    "assets": {
      "type": "array",
      "description": "Assets.",
      "items": {
        "$ref": "#/$defs/Asset"
      }
    }
  },
  "required": [
    "ok",
    "assets"
  ],
  "$defs": {
    "Asset": {
      "type": "object",
      "description": "SocialClaw-managed media asset.",
      "additionalProperties": true,
      "properties": {
        "id": {
          "type": "string",
          "description": "Asset id."
        },
        "tenantId": {
          "type": [
            "string",
            "null"
          ],
          "description": "Workspace id."
        },
        "storage": {
          "type": [
            "string",
            "null"
          ],
          "description": "Storage driver."
        },
        "objectKey": {
          "type": [
            "string",
            "null"
          ],
          "description": "Internal object key."
        },
        "originalFilename": {
          "type": [
            "string",
            "null"
          ],
          "description": "Original file name."
        },
        "mime": {
          "type": "string",
          "description": "MIME type."
        },
        "kind": {
          "type": "string",
          "enum": [
            "image",
            "video",
            "audio",
            "other"
          ]
        },
        "size": {
          "type": "integer",
          "description": "Size in bytes."
        },
        "status": {
          "type": [
            "string",
            "null"
          ],
          "description": "ready, uploading, draft, pending_delete, or provider-specific state."
        },
        "publicUrl": {
          "type": [
            "string",
            "null"
          ],
          "description": "Public delivery URL.",
          "format": "uri"
        },
        "preview": {
          "type": [
            "object",
            "null"
          ],
          "description": "Thumbnail, poster, or preview URLs."
        },
        "createdAt": {
          "type": [
            "string",
            "null"
          ],
          "description": "Creation time.",
          "format": "date-time"
        }
      },
      "required": [
        "id",
        "mime",
        "kind"
      ]
    }
  }
}