changedOutput schema / anyOf
Previous value: -[
- {
- "$schema": "https://json-schema.org/draft/2020-12/schema",
- "additionalProperties": false,
- "properties": {
- "created_at": {
- "type": "string"
- },
- "id": {
- "description": "The batch id; pass it to batches_get.",
- "type": "string"
- },
- "metrics": {
- "additionalProperties": {},
- "description": "Generation counts: total, succeeded, failed and still pending.",
- "properties": {
- "failed_count": {
- "type": "number"
- },
- "pending_count": {
- "type": "number"
- },
- "success_count": {
- "type": "number"
- },
- "total_generations": {
- "type": "number"
- }
- },
- "type": "object"
- },
- "outputUrl": {
- "description": "The JSONL result file once the batch finishes; empty while it runs.",
- "type": [
- "string",
- "null"
- ]
- },
- "results": {
- "description": "One row per item from the result file, once the batch finishes.",
- "items": {
- "additionalProperties": false,
- "properties": {
- "error": {},
- "generationId": {
- "description": "Read it with generations_get.",
- "type": "string"
- },
- "outputMediaUrl": {
- "description": "The finished video; return it verbatim.",
- "type": "string"
- },
- "requestId": {
- "type": "string"
- },
- "status": {
- "description": "The generation status: COMPLETED, FAILED or REJECTED.",
- "type": "string"
- }
- },
- "required": [
- "requestId",
- "status"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "resultsError": {
- "description": "Why the result file could not be read; the batch fields are still current.",
- "type": "string"
- },
- "status": {
- "description": "PENDING, JOBS_CREATED or PROCESSING while running (internal states also mean running); COMPLETED or FAILED when done.",
- "type": "string"
- },
- "webhookUrl": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "id",
- "status"
- ],
- "type": "object"
- },
- {
- "$schema": "https://json-schema.org/draft/2020-12/schema",
- "additionalProperties": false,
- "properties": {
- "error": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "type": "string"
- },
- "generationId": {
- "type": "string"
- },
- "importJobId": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "importStatus": {
- "enum": [
- "queued",
- "downloading",
- "processing",
- "completed",
- "failed"
- ],
- "type": "string"
- },
- "message": {
- "type": "string"
- },
- "progress": {
- "maximum": 100,
- "minimum": 0,
- "type": "number"
- },
- "retryAfterMs": {
- "type": "number"
- },
- "retryable": {
- "type": "boolean"
- },
- "status": {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- }
- },
- "required": [
- "message"
- ],
- "type": "object"
- }
- },
- "required": [
- "error"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "additionalProperties": false,
+ "properties": {
+ "created_at": {
+ "type": "string"
+ },
+ "id": {
+ "description": "The batch id; pass it to batches_get.",
+ "type": "string"
+ },
+ "metrics": {
+ "additionalProperties": {},
+ "description": "Generation counts: total, succeeded, failed and still pending.",
+ "properties": {
+ "failed_count": {
+ "type": "number"
+ },
+ "pending_count": {
+ "type": "number"
+ },
+ "success_count": {
+ "type": "number"
+ },
+ "total_generations": {
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ "outputUrl": {
+ "description": "The JSONL result file once the batch finishes; empty while it runs.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "results": {
+ "description": "One row per item from the result file, once the batch finishes.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "error": {},
+ "generationId": {
+ "description": "Read it with generations_get.",
+ "type": "string"
+ },
+ "outputMediaUrl": {
+ "description": "The finished video; return it verbatim. For NO_OP it is the unchanged input, not a lipsync result.",
+ "type": "string"
+ },
+ "requestId": {
+ "type": "string"
+ },
+ "status": {
+ "description": "The generation status: COMPLETED, NO_OP (finished but lip-synced no frame; error says why), FAILED or REJECTED.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "requestId",
+ "status"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "resultsError": {
+ "description": "Why the result file could not be read; the batch fields are still current.",
+ "type": "string"
+ },
+ "status": {
+ "description": "PENDING, JOBS_CREATED or PROCESSING while running (internal states also mean running); COMPLETED or FAILED when done.",
+ "type": "string"
+ },
+ "webhookUrl": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "status"
+ ],
+ "type": "object"
+ },
+ {
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "additionalProperties": false,
+ "properties": {
+ "error": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "generationId": {
+ "type": "string"
+ },
+ "importJobId": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "importStatus": {
+ "enum": [
+ "queued",
+ "downloading",
+ "processing",
+ "completed",
+ "failed"
+ ],
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ },
+ "progress": {
+ "maximum": 100,
+ "minimum": 0,
+ "type": "number"
+ },
+ "retryAfterMs": {
+ "type": "number"
+ },
+ "retryable": {
+ "type": "boolean"
+ },
+ "status": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "message"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "error"
+ ],
+ "type": "object"
+ }
+]