changedOutput schema / anyOf
Previous value: -[
- {
- "$schema": "https://json-schema.org/draft/2020-12/schema",
- "additionalProperties": false,
- "properties": {
- "items": {
- "description": "One result per item, in input order.",
- "items": {
- "additionalProperties": false,
- "properties": {
- "error": {
- "additionalProperties": false,
- "description": "Why the item failed, or the last refusal it waited on.",
- "properties": {
- "code": {
- "type": "string"
- },
- "generationId": {
- "type": "string"
- },
- "message": {
- "type": "string"
- },
- "outcomeUnknown": {
- "const": true,
- "description": "The job may have started (no answer before the time limit, a lost connection or a server error). The item is in remaining; resending it with the same idempotencyKey is safe.",
- "type": "boolean"
- },
- "retryAfterMs": {
- "type": "number"
- },
- "status": {
- "type": "number"
- }
- },
- "required": [
- "message"
- ],
- "type": "object"
- },
- "id": {
- "description": "The started job’s id.",
- "type": "string"
- },
- "index": {
- "description": "The item’s position in items.",
- "type": "number"
- },
- "kind": {
- "description": "The job kind, for jobs_get-many.",
- "type": "string"
- },
- "status": {
- "enum": [
- "started",
- "failed",
- "not_started"
- ],
- "type": "string"
- }
- },
- "required": [
- "index",
- "status"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "jobs": {
- "description": "The started jobs, ready to pass as jobs to jobs_get-many.",
- "items": {
- "additionalProperties": false,
- "properties": {
- "id": {
- "type": "string"
- },
- "kind": {
- "type": "string"
- },
- "projectId": {
- "type": "string"
- },
- "videoAssetId": {
- "type": "string"
- }
- },
- "required": [
- "kind",
- "id"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "nextStep": {
- "description": "What to do next.",
- "type": "string"
- },
- "remaining": {
- "additionalProperties": false,
- "description": "Items to send again later as they are: those not started and those failed with outcomeUnknown.",
- "properties": {
- "idempotencyKey": {
- "type": "string"
- },
- "items": {
- "items": {
- "additionalProperties": {},
- "propertyNames": {
- "type": "string"
- },
- "type": "object"
- },
- "type": "array"
- },
- "tool": {
- "type": "string"
- }
- },
- "required": [
- "tool",
- "idempotencyKey",
- "items"
- ],
- "type": "object"
- },
- "summary": {
- "additionalProperties": false,
- "description": "How many items ended in each status.",
- "properties": {
- "failed": {
- "type": "number"
- },
- "notStarted": {
- "type": "number"
- },
- "started": {
- "type": "number"
- },
- "total": {
- "type": "number"
- }
- },
- "required": [
- "total",
- "started",
- "failed",
- "notStarted"
- ],
- "type": "object"
- },
- "tool": {
- "description": "The create tool that ran.",
- "type": "string"
- }
- },
- "required": [
- "tool",
- "summary",
- "items",
- "jobs",
- "nextStep"
- ],
- "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": {
+ "items": {
+ "description": "One result per item, in input order.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "error": {
+ "additionalProperties": false,
+ "description": "Why the item failed, or the last refusal it waited on.",
+ "properties": {
+ "billingUrl": {
+ "description": "Where a person manages billing for this organization.",
+ "type": "string"
+ },
+ "code": {
+ "type": "string"
+ },
+ "generationId": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ },
+ "nextAction": {
+ "additionalProperties": false,
+ "description": "The API’s next action for this refusal. Act on it before anything else.",
+ "properties": {
+ "requiredPlan": {
+ "description": "Plan that lifts the limit.",
+ "type": "string"
+ },
+ "retryAfterSeconds": {
+ "description": "Seconds to wait before sending the same request again.",
+ "minimum": 0,
+ "type": "number"
+ },
+ "type": {
+ "description": "What to do next, such as upgrade_plan or retry_later.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "url": {
+ "description": "Page where a person does it.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type"
+ ],
+ "type": "object"
+ },
+ "outcomeUnknown": {
+ "const": true,
+ "description": "The job may have started (no answer before the time limit, a lost connection or a server error). The item is in remaining; resending it with the same idempotencyKey is safe.",
+ "type": "boolean"
+ },
+ "requiredCredits": {
+ "description": "Credits this item needed; pass at least this as credits to billing-approval-links_create.",
+ "type": "number"
+ },
+ "requiredPlan": {
+ "description": "The plan that lifts this refusal; pass it as plan to billing-approval-links_create.",
+ "type": "string"
+ },
+ "retryAfterMs": {
+ "type": "number"
+ },
+ "status": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "message"
+ ],
+ "type": "object"
+ },
+ "id": {
+ "description": "The started job’s id.",
+ "type": "string"
+ },
+ "index": {
+ "description": "The item’s position in items.",
+ "type": "number"
+ },
+ "kind": {
+ "description": "The job kind, for jobs_get-many.",
+ "type": "string"
+ },
+ "status": {
+ "enum": [
+ "started",
+ "failed",
+ "not_started"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "index",
+ "status"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "jobs": {
+ "description": "The started jobs, ready to pass as jobs to jobs_get-many.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "kind": {
+ "type": "string"
+ },
+ "projectId": {
+ "type": "string"
+ },
+ "videoAssetId": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "id"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "nextStep": {
+ "description": "What to do next.",
+ "type": "string"
+ },
+ "remaining": {
+ "additionalProperties": false,
+ "description": "Items to send again later as they are: those not started and those failed with outcomeUnknown.",
+ "properties": {
+ "idempotencyKey": {
+ "type": "string"
+ },
+ "items": {
+ "items": {
+ "additionalProperties": {},
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "tool": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "tool",
+ "idempotencyKey",
+ "items"
+ ],
+ "type": "object"
+ },
+ "summary": {
+ "additionalProperties": false,
+ "description": "How many items ended in each status.",
+ "properties": {
+ "failed": {
+ "type": "number"
+ },
+ "notStarted": {
+ "type": "number"
+ },
+ "started": {
+ "type": "number"
+ },
+ "total": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "total",
+ "started",
+ "failed",
+ "notStarted"
+ ],
+ "type": "object"
+ },
+ "tool": {
+ "description": "The create tool that ran.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "tool",
+ "summary",
+ "items",
+ "jobs",
+ "nextStep"
+ ],
+ "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"
+ }
+]