changedOutput schema / anyOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "request": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "createdAt": {
- "type": "number"
- },
- "error": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "maxLength": 80,
- "type": "string"
- },
- "message": {
- "maxLength": 500,
- "type": "string"
- }
- },
- "required": [
- "code",
- "message"
- ],
- "type": "object"
- },
- "expiresAt": {
- "type": "number"
- },
- "id": {
- "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"
- },
- "kind": {
- "enum": [
- "drama",
- "creative"
- ],
- "type": "string"
- },
- "project": {
- "additionalProperties": false,
- "properties": {
- "id": {
- "maxLength": 128,
- "type": "string"
- },
- "title": {
- "maxLength": 200,
- "type": "string"
- }
- },
- "required": [
- "id",
- "title"
- ],
- "type": "object"
- },
- "prompt": {
- "additionalProperties": false,
- "properties": {
- "system": {
- "maxLength": 16000,
- "type": "string"
- },
- "user": {
- "maxLength": 48000,
- "type": "string"
- }
- },
- "required": [
- "system",
- "user"
- ],
- "type": "object"
- },
- "result": {
- "oneOf": [
- {
- "additionalProperties": false,
- "properties": {
- "script": {
- "additionalProperties": false,
- "properties": {
- "characters": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "description": {
- "maxLength": 2000,
- "type": "string"
- },
- "id": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- },
- "name": {
- "maxLength": 100,
- "type": "string"
- }
- },
- "required": [
- "id",
- "name",
- "description"
- ],
- "type": "object"
- },
- "maxItems": 8,
- "type": "array"
- },
- "logline": {
- "maxLength": 1200,
- "type": "string"
- },
- "shots": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "characterIds": {
- "items": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- },
- "maxItems": 8,
- "type": "array"
- },
- "description": {
- "maxLength": 2000,
- "type": "string"
- },
- "dialogue": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "characterId": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- },
- "text": {
- "maxLength": 500,
- "type": "string"
- }
- },
- "required": [
- "characterId",
- "text"
- ],
- "type": "object"
- },
- "maxItems": 20,
- "type": "array"
- },
- "durationSeconds": {
- "maximum": 120,
- "minimum": 1,
- "type": "number"
- },
- "id": {
- "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
- "type": "string"
- },
- "narration": {
- "maxLength": 2000,
- "type": "string"
- },
- "prompt": {
- "maxLength": 4000,
- "type": "string"
- },
- "title": {
- "maxLength": 120,
- "type": "string"
- }
- },
- "required": [
- "id",
- "title",
- "description",
- "prompt",
- "characterIds",
- "durationSeconds",
- "dialogue"
- ],
- "type": "object"
- },
- "maxItems": 24,
- "minItems": 1,
- "type": "array"
- },
- "style": {
- "maxLength": 1200,
- "type": "string"
- },
- "title": {
- "maxLength": 120,
- "type": "string"
- },
- "version": {
- "const": 1,
- "type": "number"
- }
- },
- "required": [
- "version",
- "title",
- "logline",
- "style",
- "characters",
- "shots"
- ],
- "type": "object"
- },
- "type": {
- "const": "drama",
- "type": "string"
- }
- },
- "required": [
- "type",
- "script"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "text": {
- "maxLength": 12000,
- "type": "string"
- },
- "type": {
- "const": "text",
- "type": "string"
- }
- },
- "required": [
- "type",
- "text"
- ],
- "type": "object"
- }
- ]
- },
- "status": {
- "enum": [
- "queued",
- "working",
- "completed",
- "failed",
- "cancelled"
- ],
- "type": "string"
- },
- "updatedAt": {
- "type": "number"
- }
- },
- "required": [
- "kind",
- "project",
- "prompt",
- "id",
- "status",
- "createdAt",
- "updatedAt",
- "expiresAt"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "request"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "error": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "code",
- "message"
- ],
- "type": "object"
- }
- },
- "required": [
- "error"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "message": {
+ "type": "string"
+ },
+ "request": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "createdAt": {
+ "type": "number"
+ },
+ "error": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "maxLength": 80,
+ "type": "string"
+ },
+ "message": {
+ "maxLength": 500,
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object"
+ },
+ "expiresAt": {
+ "type": "number"
+ },
+ "id": {
+ "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"
+ },
+ "kind": {
+ "enum": [
+ "drama",
+ "creative"
+ ],
+ "type": "string"
+ },
+ "project": {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "maxLength": 128,
+ "type": "string"
+ },
+ "title": {
+ "maxLength": 200,
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "title"
+ ],
+ "type": "object"
+ },
+ "prompt": {
+ "additionalProperties": false,
+ "properties": {
+ "system": {
+ "maxLength": 16000,
+ "type": "string"
+ },
+ "user": {
+ "maxLength": 48000,
+ "type": "string"
+ }
+ },
+ "required": [
+ "system",
+ "user"
+ ],
+ "type": "object"
+ },
+ "result": {
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "script": {
+ "additionalProperties": false,
+ "properties": {
+ "characters": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "description": {
+ "maxLength": 2000,
+ "type": "string"
+ },
+ "id": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "name": {
+ "maxLength": 100,
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "description"
+ ],
+ "type": "object"
+ },
+ "maxItems": 8,
+ "type": "array"
+ },
+ "logline": {
+ "maxLength": 1200,
+ "type": "string"
+ },
+ "shots": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "characterIds": {
+ "items": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "maxItems": 8,
+ "type": "array"
+ },
+ "description": {
+ "maxLength": 2000,
+ "type": "string"
+ },
+ "dialogue": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "characterId": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "text": {
+ "maxLength": 500,
+ "type": "string"
+ }
+ },
+ "required": [
+ "characterId",
+ "text"
+ ],
+ "type": "object"
+ },
+ "maxItems": 20,
+ "type": "array"
+ },
+ "durationSeconds": {
+ "maximum": 120,
+ "minimum": 1,
+ "type": "number"
+ },
+ "id": {
+ "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "narration": {
+ "maxLength": 2000,
+ "type": "string"
+ },
+ "prompt": {
+ "maxLength": 4000,
+ "type": "string"
+ },
+ "title": {
+ "maxLength": 120,
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "title",
+ "description",
+ "prompt",
+ "characterIds",
+ "durationSeconds",
+ "dialogue"
+ ],
+ "type": "object"
+ },
+ "maxItems": 24,
+ "minItems": 1,
+ "type": "array"
+ },
+ "style": {
+ "maxLength": 1200,
+ "type": "string"
+ },
+ "title": {
+ "maxLength": 120,
+ "type": "string"
+ },
+ "version": {
+ "const": 1,
+ "type": "number"
+ }
+ },
+ "required": [
+ "version",
+ "title",
+ "logline",
+ "style",
+ "characters",
+ "shots"
+ ],
+ "type": "object"
+ },
+ "type": {
+ "const": "drama",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "script"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "text": {
+ "maxLength": 12000,
+ "type": "string"
+ },
+ "type": {
+ "const": "text",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "text"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "status": {
+ "enum": [
+ "queued",
+ "working",
+ "completed",
+ "failed",
+ "cancelled"
+ ],
+ "type": "string"
+ },
+ "updatedAt": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "kind",
+ "project",
+ "prompt",
+ "id",
+ "status",
+ "createdAt",
+ "updatedAt",
+ "expiresAt"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "request"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "error": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "error"
+ ],
+ "type": "object"
+ }
+]