changedOutput schema / anyOf
Previous value: -[
- {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "boundUri": {
- "type": "string"
- },
- "bytes": {
- "minimum": 0,
- "type": "integer"
- },
- "documentId": {
- "type": "string"
- },
- "downloadExpiresAt": {
- "type": "string"
- },
- "downloadUrl": {
- "type": "string"
- },
- "expiresAt": {
- "type": "string"
- },
- "file": {
- "type": "string"
- },
- "format": {
- "type": "string"
- },
- "height": {
- "minimum": 0,
- "type": "integer"
- },
- "jobId": {
- "description": "The export job that produced this file, on encoding, ready and error results alike; absent for files without a job, such as renders. Pass it as expectedJobId to creator_delete_file.",
- "type": "string"
- },
- "kind": {
- "enum": [
- "render",
- "export"
- ]
- },
- "mime": {
- "type": "string"
- },
- "note": {
- "description": "What to do with this result: how to use or share the link, or when to retry.",
- "type": "string"
- },
- "progress": {
- "type": "number"
- },
- "retryAfterS": {
- "minimum": 0,
- "type": "integer"
- },
- "revision": {
- "type": "string"
- },
- "state": {},
- "status": {
- "enum": [
- "encoding",
- "ready",
- "error"
- ]
- },
- "uri": {
- "type": "string"
- },
- "waiting": {
- "enum": [
- "quota"
- ]
- },
- "width": {
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "file",
- "status",
- "kind",
- "format",
- "mime",
- "documentId",
- "revision",
- "expiresAt"
- ],
- "type": "object"
- },
- {
- "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"
- }
- ],
- "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: +[
+ {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "boundUri": {
+ "type": "string"
+ },
+ "bytes": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "documentId": {
+ "type": "string"
+ },
+ "downloadExpiresAt": {
+ "type": "string"
+ },
+ "downloadUrl": {
+ "type": "string"
+ },
+ "expiresAt": {
+ "type": "string"
+ },
+ "file": {
+ "type": "string"
+ },
+ "format": {
+ "type": "string"
+ },
+ "height": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "jobId": {
+ "description": "The export job that produced this file, on encoding, ready and error results alike; absent for files without a job, such as renders. Pass it as expectedJobId to creator_delete_file.",
+ "type": "string"
+ },
+ "kind": {
+ "enum": [
+ "render",
+ "export"
+ ]
+ },
+ "mime": {
+ "type": "string"
+ },
+ "note": {
+ "description": "What to do with this result: how to use or share the link, or when to retry.",
+ "type": "string"
+ },
+ "progress": {
+ "type": "number"
+ },
+ "retryAfterS": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "revision": {
+ "type": "string"
+ },
+ "state": {},
+ "status": {
+ "enum": [
+ "encoding",
+ "ready",
+ "error"
+ ]
+ },
+ "uri": {
+ "type": "string"
+ },
+ "waiting": {
+ "enum": [
+ "quota"
+ ]
+ },
+ "width": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "file",
+ "status",
+ "kind",
+ "format",
+ "mime",
+ "documentId",
+ "revision",
+ "expiresAt"
+ ],
+ "type": "object"
+ },
+ {
+ "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"
+ }
+ ],
+ "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"
+ ]
+ }
+]