changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "properties": {
+ "images": {
+ "description": "The images queued.",
+ "items": {
+ "properties": {
+ "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": {
+ "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",
+ "keep_metadata",
+ "width",
+ "height",
+ "scale"
+ ],
+ "type": "object"
+ },
+ "share_url": {
+ "description": "Its public page, once shared.",
+ "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",
+ "scan_id",
+ "share_url",
+ "created_at",
+ "updated_at"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "next": {
+ "type": "string"
+ },
+ "not_started": {
+ "description": "Addresses not fetched because the call ran out of time.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "not_started_note": {
+ "type": "string"
+ },
+ "refused": {
+ "description": "The sources refused, each with the reason.",
+ "items": {
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ },
+ "retry_after": {
+ "description": "Seconds to wait before sending it again.",
+ "type": "integer"
+ },
+ "source": {
+ "description": "The address, upload id or file name refused.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "source",
+ "message",
+ "code"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+}