{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloudinary/json-schema/cloudinary-info-schema.json",
  "title": "info",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudinary-platform-openapi.yml#/components/schemas/info",
  "type": "object",
  "properties": {
    "asset_id": {
      "$ref": "#/$defs/asset_id"
    },
    "public_id": {
      "type": "string"
    },
    "asset_folder": {
      "type": "string"
    },
    "display_name": {
      "type": "string"
    },
    "folder": {
      "type": "string",
      "x-speakeasy-deprecation-message": "Use asset_folder instead with folder decoupling."
    },
    "filename": {
      "type": "string"
    },
    "format": {
      "type": "string"
    },
    "version": {
      "type": "integer"
    },
    "resource_type": {
      "type": "string"
    },
    "type": {
      "$ref": "#/$defs/delivery_type_all"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "uploaded_at": {
      "type": "string",
      "format": "date-time"
    },
    "bytes": {
      "type": "integer"
    },
    "backup_bytes": {
      "type": "integer"
    },
    "width": {
      "type": [
        "integer",
        "null"
      ]
    },
    "height": {
      "type": [
        "integer",
        "null"
      ]
    },
    "aspect_ratio": {
      "type": [
        "number",
        "null"
      ]
    },
    "pixels": {
      "type": [
        "integer",
        "null"
      ]
    },
    "tags": {
      "allOf": [
        {
          "$ref": "#/$defs/tags_response"
        }
      ],
      "description": "Included if 'tags=true' parameter is used."
    },
    "context": {
      "allOf": [
        {
          "$ref": "#/$defs/context_full_response"
        }
      ],
      "description": "Included if 'context=true' parameter is used."
    },
    "metadata": {
      "type": "object",
      "additionalProperties": true
    },
    "moderation_kind": {
      "type": "string",
      "description": "The type of moderation applied to the asset."
    },
    "moderation_status": {
      "type": "string",
      "description": "The current status of the moderation process for the asset."
    },
    "moderation": {
      "type": "array",
      "description": "Included if 'moderations=true' parameter is used.",
      "items": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        }
      }
    },
    "backup": {
      "type": "boolean"
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "secure_url": {
      "type": "string",
      "format": "uri"
    },
    "status": {
      "type": "string"
    },
    "access_control": {
      "anyOf": [
        {
          "$ref": "#/$defs/access_control"
        },
        {
          "type": "null"
        }
      ]
    },
    "etag": {
      "type": "string"
    },
    "animated": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Whether the asset is animated (e.g., GIF, animated WebP). Null for non-animated assets."
    },
    "duration": {
      "type": [
        "number",
        "null"
      ],
      "description": "Duration in seconds for video/audio assets. Null for images."
    },
    "resource_subtype": {
      "type": [
        "string",
        "null"
      ],
      "description": "The subtype of the resource (e.g., for video). Null when not applicable."
    },
    "substatus": {
      "type": [
        "string",
        "null"
      ],
      "description": "The substatus of the resource. Null when not set."
    },
    "related_assets": {
      "type": [
        "array",
        "null"
      ],
      "description": "Related assets linked to this resource. Null when none linked.",
      "items": {
        "type": "object"
      }
    },
    "last_updated": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "access_control_updated_at": {
          "type": "string",
          "format": "date-time"
        },
        "context_updated_at": {
          "type": "string",
          "format": "date-time"
        },
        "metadata_updated_at": {
          "type": "string",
          "format": "date-time"
        },
        "public_id_updated_at": {
          "type": "string",
          "format": "date-time"
        },
        "tags_updated_at": {
          "type": "string",
          "format": "date-time"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "next_cursor": {
      "type": "string",
      "description": "Cursor for paginating derived assets."
    },
    "derived": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "transformation": {
            "type": "string"
          },
          "format": {
            "type": "string"
          },
          "bytes": {
            "type": "integer"
          },
          "id": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "secure_url": {
            "type": "string",
            "format": "uri"
          }
        }
      }
    },
    "faces": {
      "allOf": [
        {
          "$ref": "#/$defs/faces_response"
        }
      ],
      "description": "Detected face rectangles. Included if 'faces=true' parameter is used."
    },
    "coordinates": {
      "allOf": [
        {
          "$ref": "#/$defs/coordinates_response"
        }
      ],
      "description": "Face and custom coordinate data. Included if 'coordinates=true' parameter is used."
    },
    "illustration_score": {
      "type": "number"
    },
    "semi_transparent": {
      "type": "boolean"
    },
    "grayscale": {
      "type": "boolean"
    },
    "colors": {
      "type": "array",
      "items": {
        "type": "array"
      }
    },
    "predominant": {
      "type": "object",
      "additionalProperties": {
        "type": "array",
        "items": {
          "type": "array"
        }
      }
    },
    "versions": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "version_id": {
            "$ref": "#/$defs/version_id"
          },
          "version": {
            "type": "string"
          },
          "format": {
            "type": [
              "string",
              "null"
            ]
          },
          "size": {
            "type": "integer"
          },
          "time": {
            "type": "string",
            "format": "date-time"
          },
          "restorable": {
            "type": "boolean"
          }
        }
      }
    },
    "info": {
      "type": "object",
      "description": "Additional asset information (visual search, recognized people, etc.)"
    },
    "derivatives": {
      "type": [
        "array",
        "null"
      ],
      "description": "Included if 'derived=true' parameter is used. Null when no derivatives exist.",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The unique identifier of the derived resource."
          },
          "transformation": {
            "type": "string",
            "description": "The transformation string that was applied."
          },
          "transformation_signature": {
            "type": "string",
            "description": "The unique signature of the transformation."
          },
          "secure_url": {
            "type": "string",
            "format": "uri",
            "description": "The secure URL for accessing the derived resource."
          }
        }
      }
    }
  },
  "$defs": {
    "access_control": {
      "type": "array",
      "description": "Restricts access to the asset by specifying one or more access types.\nThe asset is restricted unless at least one listed access type is valid.\n",
      "items": {
        "$ref": "#/$defs/access_control_item"
      }
    },
    "access_control_item": {
      "type": "object",
      "description": "Access control rule that defines when and how the asset can be accessed.",
      "required": [
        "access_type"
      ],
      "properties": {
        "access_type": {
          "type": "string",
          "enum": [
            "token",
            "anonymous"
          ],
          "description": "The type of access control to apply to the asset."
        },
        "key": {
          "type": "string",
          "pattern": "^[a-zA-Z0-9]+$",
          "description": "The authentication key identifier for token-based access. Default key is used if not specified or if set to 'default'."
        },
        "start": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": "integer"
            }
          ],
          "description": "The start date and time when anonymous access becomes available. Accepts ISO 8601 string or Unix timestamp."
        },
        "end": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": "integer"
            }
          ],
          "description": "The end date and time when anonymous access expires. Accepts ISO 8601 string or Unix timestamp."
        }
      }
    },
    "asset_delivery_type": {
      "type": "string",
      "enum": [
        "asset"
      ],
      "description": "Static asset delivery type."
    },
    "asset_id": {
      "type": "string",
      "pattern": "^[0-9a-f]{32}$",
      "description": "A 32-character hexadecimal asset ID."
    },
    "context_full_response": {
      "type": [
        "object",
        "null"
      ],
      "description": "Contextual metadata grouped by kind. Custom user context appears under the 'custom' key. Other context kinds may also appear as additional keys.",
      "properties": {
        "custom": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "User-defined contextual metadata as key-value pairs."
        }
      },
      "additionalProperties": {
        "type": "object",
        "additionalProperties": {
          "type": "string"
        }
      }
    },
    "coordinates_response": {
      "type": [
        "object",
        "null"
      ],
      "description": "Coordinate data for faces and custom regions.",
      "properties": {
        "faces": {
          "type": "array",
          "description": "Detected face coordinate rectangles [x, y, width, height].",
          "items": {
            "type": "array",
            "items": {
              "type": "integer"
            }
          }
        },
        "custom": {
          "type": "array",
          "description": "Custom coordinate rectangles [x, y, width, height].",
          "items": {
            "type": "array",
            "items": {
              "type": "number"
            }
          }
        }
      }
    },
    "delivery_type_all": {
      "anyOf": [
        {
          "$ref": "#/$defs/managed_delivery_type"
        },
        {
          "$ref": "#/$defs/asset_delivery_type"
        },
        {
          "$ref": "#/$defs/fetch_delivery_type"
        },
        {
          "$ref": "#/$defs/social_delivery_type"
        },
        {
          "$ref": "#/$defs/generated_delivery_type"
        },
        {
          "type": "string",
          "enum": [
            "media_optimization"
          ]
        }
      ],
      "description": "All supported delivery types."
    },
    "faces_response": {
      "type": [
        "array",
        "null"
      ],
      "description": "Detected face coordinate rectangles [x, y, width, height].",
      "items": {
        "type": "array",
        "items": {
          "type": "integer"
        }
      }
    },
    "fetch_delivery_type": {
      "type": "string",
      "enum": [
        "fetch",
        "url2png"
      ],
      "description": "Fetch-based delivery types for assets retrieved from remote URLs."
    },
    "generated_delivery_type": {
      "type": "string",
      "enum": [
        "multi",
        "sprite",
        "text",
        "list"
      ],
      "description": "Delivery types for assets generated by Cloudinary operations."
    },
    "managed_delivery_type": {
      "type": "string",
      "enum": [
        "upload",
        "private",
        "authenticated"
      ],
      "description": "Managed delivery types for assets uploaded and stored by Cloudinary."
    },
    "social_delivery_type": {
      "type": "string",
      "enum": [
        "facebook",
        "twitter",
        "twitter_name",
        "instagram",
        "instagram_name",
        "gravatar",
        "youtube",
        "hulu",
        "vimeo",
        "animoto",
        "dailymotion",
        "worldstarhiphop"
      ],
      "description": "Delivery types for assets fetched from third-party platforms."
    },
    "tags_response": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      },
      "description": "Tag names assigned to the asset."
    },
    "version_id": {
      "type": "string",
      "pattern": "^([0-9a-f]{32})+$",
      "description": "Hexadecimal version ID; length is a positive multiple of 32 (typically 32 or 64)."
    }
  }
}