removedOutput schema / properties / images
Removed value: -{
- "description": "The images the scan found, newest first.",
- "items": {
- "properties": {
- "alt_text": {
- "description": "The AI alt text, or null when none was asked for.",
- "properties": {
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "status": {
- "description": "pending: being written, a few seconds after the image is completed or already-optimized; it waits for a retry while the image is failed or cancelled. written: ready. failed: ask again with write_alt_text. skipped: the day's AI alt texts were used up.",
- "enum": [
- "pending",
- "written",
- "failed",
- "skipped"
- ],
- "type": "string"
- },
- "suggested_name": {
- "description": "A descriptive file name without an extension, for rename_image.",
- "type": [
- "string",
- "null"
- ]
- },
- "text": {
- "description": "One sentence for the image's alt attribute, once written.",
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "status",
- "text",
- "language",
- "suggested_name"
- ],
- "type": [
- "object",
- "null"
- ]
- },
- "created_at": {
- "type": [
- "string",
- "null"
- ]
- },
- "hint": {
- "description": "What to do next, when the status alone does not say.",
- "type": "string"
- },
- "id": {
- "description": "The image's id.",
- "type": "string"
- },
- "name": {
- "description": "The name the optimized copy downloads under.",
- "type": "string"
- },
- "optimized": {
- "description": "Null until the image has finished.",
- "properties": {
- "download_url": {
- "description": "Works without a token for an hour.",
- "type": "string"
- },
- "format": {
- "type": "string"
- },
- "height": {
- "type": "integer"
- },
- "name": {
- "type": "string"
- },
- "size": {
- "description": "Bytes.",
- "type": "integer"
- },
- "width": {
- "type": "integer"
- }
- },
- "required": [
- "name",
- "format",
- "size",
- "width",
- "height",
- "download_url"
- ],
- "type": [
- "object",
- "null"
- ]
- },
- "original": {
- "properties": {
- "download_url": {
- "description": "Works without a token for an hour.",
- "type": "string"
- },
- "format": {
- "type": "string"
- },
- "height": {
- "type": "integer"
- },
- "name": {
- "type": "string"
- },
- "size": {
- "description": "Bytes.",
- "type": "integer"
- },
- "width": {
- "type": "integer"
- }
- },
- "required": [
- "name",
- "format",
- "size",
- "width",
- "height",
- "download_url"
- ],
- "type": "object"
- },
- "saved_bytes": {
- "description": "Negative when the optimized copy is larger.",
- "type": [
- "integer",
- "null"
- ]
- },
- "saved_percent": {
- "type": [
- "number",
- "null"
- ]
- },
- "scan_id": {
- "description": "The page scan that found it, if one did.",
- "type": [
- "string",
- "null"
- ]
- },
- "settings": {
- "properties": {
- "format": {
- "description": "The format asked for, or null when none was sent. auto stays auto after the image finishes.",
- "enum": [
- "auto",
- "webp",
- "avif",
- "png",
- "jpg",
- null
- ],
- "type": [
- "string",
- "null"
- ]
- },
- "height": {
- "type": [
- "integer",
- "null"
- ]
- },
- "keep_metadata": {
- "type": "boolean"
- },
- "level": {
- "enum": [
- "none",
- "lossless",
- "ultra",
- "smart",
- null
- ],
- "type": [
- "string",
- "null"
- ]
- },
- "scale": {
- "type": [
- "integer",
- "null"
- ]
- },
- "width": {
- "type": [
- "integer",
- "null"
- ]
- }
- },
- "required": [
- "level",
- "format",
- "keep_metadata",
- "width",
- "height",
- "scale"
- ],
- "type": "object"
- },
- "share_url": {
- "description": "Its public page, once shared.",
- "type": [
- "string",
- "null"
- ]
- },
- "source_url": {
- "description": "The address it was fetched from: its address on the scanned page, or the url it was sent as. Null for a file.",
- "type": [
- "string",
- "null"
- ]
- },
- "status": {
- "enum": [
- "queued",
- "optimizing",
- "completed",
- "failed",
- "already-optimized",
- "cancelled"
- ],
- "type": "string"
- },
- "updated_at": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "id",
- "status",
- "name",
- "original",
- "optimized",
- "saved_bytes",
- "saved_percent",
- "settings",
- "alt_text",
- "scan_id",
- "source_url",
- "share_url",
- "created_at",
- "updated_at"
- ],
- "type": "object"
- },
- "type": "array"
-}