changedOutput schema / anyOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "attribution": {
- "description": "Credit the user must give when using the file.",
- "type": "string"
- },
- "bytes": {
- "minimum": 0,
- "type": "integer"
- },
- "contentType": {
- "type": "string"
- },
- "createdAt": {
- "type": "string"
- },
- "documentId": {
- "type": "string"
- },
- "downloadExpiresAt": {
- "type": "string"
- },
- "downloadUrl": {
- "type": "string"
- },
- "durationS": {
- "type": "number"
- },
- "expiresAt": {
- "description": "When an open upload stops accepting its PUT.",
- "type": "string"
- },
- "file": {
- "description": "media/<name>: the path scripts and the file tools use.",
- "type": "string"
- },
- "height": {
- "minimum": 0,
- "type": "integer"
- },
- "method": {
- "const": "PUT"
- },
- "mime": {
- "type": "string"
- },
- "note": {
- "description": "What to do with this result.",
- "type": "string"
- },
- "origin": {
- "enum": [
- "upload"
- ]
- },
- "sha256": {
- "type": "string"
- },
- "source": {
- "type": "string"
- },
- "status": {
- "enum": [
- "pending",
- "ready",
- "error"
- ]
- },
- "type": {
- "enum": [
- "image",
- "svg",
- "lottie",
- "rive",
- "audio",
- "font"
- ]
- },
- "uploadBytes": {
- "minimum": 1,
- "type": "integer"
- },
- "uri": {
- "type": "string"
- },
- "url": {
- "description": "Takes one PUT of exactly uploadBytes bytes with Content-Type contentType; the URL is the only credential, so do not add any.",
- "type": "string"
- },
- "warnings": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "width": {
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "file",
- "status",
- "origin",
- "documentId",
- "createdAt"
- ],
- "type": "object"
- },
- {
- "additionalProperties": true,
- "properties": {
- "error": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "type": "string"
- },
- "hint": {
- "description": "A short remedy, when one applies; also folded into message.",
- "type": "string"
- },
- "line": {
- "description": "1-based user-code line the error occurred on, when known.",
- "minimum": 1,
- "type": "integer"
- },
- "message": {
- "type": "string"
- },
- "retryable": {
- "type": "boolean"
- },
- "source": {
- "description": "The offending source line, trimmed to 160 characters.",
- "type": "string"
- }
- },
- "required": [
- "code",
- "message",
- "retryable"
- ],
- "type": "object"
- }
- },
- "required": [
- "error"
- ]
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "attribution": {
+ "description": "Credit the user must give when using the file.",
+ "type": "string"
+ },
+ "bytes": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "contentType": {
+ "type": "string"
+ },
+ "createdAt": {
+ "type": "string"
+ },
+ "documentId": {
+ "type": "string"
+ },
+ "downloadExpiresAt": {
+ "type": "string"
+ },
+ "downloadUrl": {
+ "type": "string"
+ },
+ "durationS": {
+ "type": "number"
+ },
+ "expiresAt": {
+ "description": "When an open upload stops accepting its PUT.",
+ "type": "string"
+ },
+ "file": {
+ "description": "media/<name>: the path scripts and the file tools use.",
+ "type": "string"
+ },
+ "height": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "kind": {
+ "enum": [
+ "image",
+ "vector",
+ "music",
+ "speech"
+ ]
+ },
+ "method": {
+ "const": "PUT"
+ },
+ "mime": {
+ "type": "string"
+ },
+ "model": {
+ "type": "string"
+ },
+ "note": {
+ "description": "What to do with this result.",
+ "type": "string"
+ },
+ "origin": {
+ "enum": [
+ "upload",
+ "generate"
+ ]
+ },
+ "prompt": {
+ "type": "string"
+ },
+ "provider": {
+ "type": "string"
+ },
+ "retryAfterS": {
+ "description": "0: call creator_download_file now, it waits for the result.",
+ "minimum": 0,
+ "type": "integer"
+ },
+ "sha256": {
+ "type": "string"
+ },
+ "source": {
+ "type": "string"
+ },
+ "status": {
+ "enum": [
+ "pending",
+ "generating",
+ "ready",
+ "error"
+ ]
+ },
+ "style": {
+ "type": "string"
+ },
+ "text": {
+ "type": "string"
+ },
+ "type": {
+ "enum": [
+ "image",
+ "svg",
+ "lottie",
+ "rive",
+ "audio",
+ "font"
+ ]
+ },
+ "uploadBytes": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "uri": {
+ "type": "string"
+ },
+ "url": {
+ "description": "Takes one PUT of exactly uploadBytes bytes with Content-Type contentType; the URL is the only credential, so do not add any.",
+ "type": "string"
+ },
+ "warnings": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "width": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "file",
+ "status",
+ "origin",
+ "documentId",
+ "createdAt"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": true,
+ "properties": {
+ "error": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "hint": {
+ "description": "A short remedy, when one applies; also folded into message.",
+ "type": "string"
+ },
+ "line": {
+ "description": "1-based user-code line the error occurred on, when known.",
+ "minimum": 1,
+ "type": "integer"
+ },
+ "message": {
+ "type": "string"
+ },
+ "retryable": {
+ "type": "boolean"
+ },
+ "source": {
+ "description": "The offending source line, trimmed to 160 characters.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message",
+ "retryable"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "error"
+ ]
+ }
+]