changedOutput schema / anyOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "analysis": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "additionalProperties": false,
- "properties": {
- "analysis": {
- "additionalProperties": false,
- "properties": {
- "attributes": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "label": {
- "maxLength": 36,
- "type": "string"
- },
- "value": {
- "maxLength": 100,
- "type": "string"
- }
- },
- "required": [
- "label",
- "value"
- ],
- "type": "object"
- },
- "maxItems": 6,
- "type": "array"
- },
- "category": {
- "enum": [
- "fashion",
- "home",
- "beauty",
- "kids",
- "electronics",
- "sport",
- "pets",
- "hobby",
- "food",
- "auto",
- "garden",
- "construction",
- "stationery",
- "other"
- ]
- },
- "product_name": {
- "maxLength": 80,
- "type": "string"
- },
- "product_type": {
- "maxLength": 80,
- "type": "string"
- },
- "suggested_card_styles": {
- "items": {
- "type": "string"
- },
- "maxItems": 4,
- "type": "array"
- },
- "suggested_photoshoot_styles": {
- "items": {
- "type": "string"
- },
- "maxItems": 4,
- "type": "array"
- }
- },
- "required": [
- "category",
- "product_name",
- "product_type",
- "attributes",
- "suggested_card_styles",
- "suggested_photoshoot_styles"
- ],
- "type": "object"
- },
- "error": {
- "type": "string"
- },
- "status": {
- "enum": [
- "pending",
- "running",
- "complete",
- "failed",
- "unknown",
- "skipped"
- ]
- },
- "step_id": {
- "format": "uuid",
- "type": "string"
- }
- },
- "required": [
- "step_id",
- "status"
- ],
- "type": "object"
- }
- ]
- },
- "approval_url": {
- "type": "string"
- },
- "confirmation_reason": {
- "type": "string"
- },
- "credits_charged": {
- "minimum": 0,
- "type": "integer"
- },
- "description": {
- "anyOf": [
- {
- "type": "null"
- },
- {
- "additionalProperties": false,
- "properties": {
- "description": {
- "additionalProperties": false,
- "properties": {
- "bullets": {
- "items": {
- "maxLength": 220,
- "type": "string"
- },
- "maxItems": 8,
- "type": "array"
- },
- "summary": {
- "maxLength": 4008,
- "type": "string"
- },
- "title": {
- "maxLength": 140,
- "type": "string"
- }
- },
- "required": [
- "title",
- "summary",
- "bullets"
- ],
- "type": "object"
- },
- "error": {
- "type": "string"
- },
- "status": {
- "enum": [
- "pending",
- "running",
- "complete",
- "failed",
- "unknown",
- "skipped"
- ]
- },
- "step_id": {
- "format": "uuid",
- "type": "string"
- }
- },
- "required": [
- "step_id",
- "status"
- ],
- "type": "object"
- }
- ]
- },
- "frames": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "credits_charged": {
- "minimum": 0,
- "type": "integer"
- },
- "credits_refunded": {
- "minimum": 0,
- "type": "integer"
- },
- "error": {
- "type": "string"
- },
- "id": {
- "format": "uuid",
- "type": "string"
- },
- "image": {
- "type": "string"
- },
- "mime_type": {
- "enum": [
- "image/png",
- "image/jpeg",
- "image/webp"
- ]
- },
- "scene": {
- "enum": [
- "hero",
- "benefits",
- "lifestyle",
- "detail"
- ]
- },
- "status": {
- "enum": [
- "pending",
- "running",
- "complete",
- "failed",
- "unknown",
- "skipped"
- ]
- },
- "step_id": {
- "format": "uuid",
- "type": "string"
- },
- "url_expires_in_seconds": {
- "const": 3600
- }
- },
- "required": [
- "step_id",
- "status",
- "scene",
- "credits_charged",
- "credits_refunded"
- ],
- "type": "object"
- },
- "maxItems": 4,
- "type": "array"
- },
- "message": {
- "type": "string"
- },
- "next": {
- "const": "get_product_operation"
- },
- "poll_after_seconds": {
- "const": 5
- },
- "progress": {
- "additionalProperties": false,
- "properties": {
- "completed_frames": {
- "minimum": 0,
- "type": "integer"
- },
- "finished_steps": {
- "minimum": 0,
- "type": "integer"
- },
- "total_frames": {
- "minimum": 0,
- "type": "integer"
- },
- "total_steps": {
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "completed_frames",
- "total_frames",
- "finished_steps",
- "total_steps"
- ],
- "type": "object"
- },
- "quote": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "analysis_credits": {
- "const": 0
- },
- "aspect_ratio": {
- "enum": [
- "1:1",
- "16:9",
- "9:16",
- "4:3",
- "3:4"
- ]
- },
- "count": {
- "enum": [
- 1,
- 4
- ]
- },
- "currency": {
- "const": "ai_credits"
- },
- "description_credits": {
- "enum": [
- 0,
- 1
- ]
- },
- "free_photo_used": {
- "const": false
- },
- "maximum": {
- "minimum": 0,
- "type": "integer"
- },
- "model": {
- "enum": [
- "nano",
- "nano2",
- "nano-pro",
- "gemini",
- "seedream"
- ]
- },
- "per_image": {
- "minimum": 0,
- "type": "integer"
- },
- "quality": {
- "enum": [
- "standard",
- "high"
- ]
- }
- },
- "required": [
- "currency",
- "per_image",
- "maximum",
- "count",
- "model",
- "quality",
- "aspect_ratio",
- "description_credits",
- "analysis_credits",
- "free_photo_used"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "analysis_credits": {
- "const": 0
- },
- "currency": {
- "const": "ai_credits"
- },
- "description_credits": {
- "const": 1
- },
- "kind": {
- "const": "description"
- },
- "maximum": {
- "const": 1
- }
- },
- "required": [
- "kind",
- "currency",
- "maximum",
- "description_credits",
- "analysis_credits"
- ],
- "type": "object"
- }
- ]
- },
- "request_id": {
- "format": "uuid",
- "type": "string"
- },
- "status": {
- "enum": [
- "awaiting_confirmation",
- "approved",
- "denied",
- "running",
- "complete",
- "partial",
- "failed",
- "unknown"
- ]
- }
- },
- "required": [
- "request_id",
- "status",
- "progress",
- "frames",
- "description",
- "analysis",
- "credits_charged",
- "next",
- "poll_after_seconds"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "error": {
- "type": "string"
- }
- },
- "required": [
- "error"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "analysis": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "analysis": {
+ "additionalProperties": false,
+ "properties": {
+ "attributes": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "label": {
+ "maxLength": 36,
+ "type": "string"
+ },
+ "value": {
+ "maxLength": 100,
+ "type": "string"
+ }
+ },
+ "required": [
+ "label",
+ "value"
+ ],
+ "type": "object"
+ },
+ "maxItems": 6,
+ "type": "array"
+ },
+ "category": {
+ "enum": [
+ "fashion",
+ "home",
+ "beauty",
+ "kids",
+ "electronics",
+ "sport",
+ "pets",
+ "hobby",
+ "food",
+ "auto",
+ "garden",
+ "construction",
+ "stationery",
+ "other"
+ ]
+ },
+ "product_name": {
+ "maxLength": 80,
+ "type": "string"
+ },
+ "product_type": {
+ "maxLength": 80,
+ "type": "string"
+ },
+ "suggested_card_styles": {
+ "items": {
+ "type": "string"
+ },
+ "maxItems": 4,
+ "type": "array"
+ },
+ "suggested_photoshoot_styles": {
+ "items": {
+ "type": "string"
+ },
+ "maxItems": 4,
+ "type": "array"
+ }
+ },
+ "required": [
+ "category",
+ "product_name",
+ "product_type",
+ "attributes",
+ "suggested_card_styles",
+ "suggested_photoshoot_styles"
+ ],
+ "type": "object"
+ },
+ "error": {
+ "type": "string"
+ },
+ "status": {
+ "enum": [
+ "pending",
+ "running",
+ "complete",
+ "failed",
+ "unknown",
+ "skipped"
+ ]
+ },
+ "step_id": {
+ "format": "uuid",
+ "type": "string"
+ }
+ },
+ "required": [
+ "step_id",
+ "status"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "approval_url": {
+ "type": "string"
+ },
+ "confirmation_reason": {
+ "type": "string"
+ },
+ "credits_charged": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "description": {
+ "anyOf": [
+ {
+ "type": "null"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "description": {
+ "additionalProperties": false,
+ "properties": {
+ "bullets": {
+ "items": {
+ "maxLength": 220,
+ "type": "string"
+ },
+ "maxItems": 8,
+ "type": "array"
+ },
+ "summary": {
+ "maxLength": 4008,
+ "type": "string"
+ },
+ "title": {
+ "maxLength": 140,
+ "type": "string"
+ }
+ },
+ "required": [
+ "title",
+ "summary",
+ "bullets"
+ ],
+ "type": "object"
+ },
+ "error": {
+ "type": "string"
+ },
+ "status": {
+ "enum": [
+ "pending",
+ "running",
+ "complete",
+ "failed",
+ "unknown",
+ "skipped"
+ ]
+ },
+ "step_id": {
+ "format": "uuid",
+ "type": "string"
+ }
+ },
+ "required": [
+ "step_id",
+ "status"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "frames": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "credits_charged": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "credits_refunded": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "error": {
+ "type": "string"
+ },
+ "id": {
+ "format": "uuid",
+ "type": "string"
+ },
+ "image": {
+ "type": "string"
+ },
+ "mime_type": {
+ "enum": [
+ "image/png",
+ "image/jpeg",
+ "image/webp"
+ ]
+ },
+ "scene": {
+ "enum": [
+ "hero",
+ "benefits",
+ "lifestyle",
+ "detail"
+ ]
+ },
+ "status": {
+ "enum": [
+ "pending",
+ "running",
+ "complete",
+ "failed",
+ "unknown",
+ "skipped"
+ ]
+ },
+ "step_id": {
+ "format": "uuid",
+ "type": "string"
+ },
+ "url_expires_in_seconds": {
+ "const": 3600
+ }
+ },
+ "required": [
+ "step_id",
+ "status",
+ "scene",
+ "credits_charged",
+ "credits_refunded"
+ ],
+ "type": "object"
+ },
+ "maxItems": 4,
+ "type": "array"
+ },
+ "message": {
+ "type": "string"
+ },
+ "next": {
+ "const": "get_product_operation"
+ },
+ "poll_after_seconds": {
+ "const": 5
+ },
+ "progress": {
+ "additionalProperties": false,
+ "properties": {
+ "completed_frames": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "finished_steps": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "total_frames": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "total_steps": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "completed_frames",
+ "total_frames",
+ "finished_steps",
+ "total_steps"
+ ],
+ "type": "object"
+ },
+ "quote": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "analysis_credits": {
+ "const": 0
+ },
+ "aspect_ratio": {
+ "enum": [
+ "1:1",
+ "16:9",
+ "9:16",
+ "4:3",
+ "3:4"
+ ]
+ },
+ "count": {
+ "enum": [
+ 1,
+ 4
+ ]
+ },
+ "currency": {
+ "const": "ai_credits"
+ },
+ "description_credits": {
+ "enum": [
+ 0,
+ 1
+ ]
+ },
+ "free_photo_used": {
+ "const": false
+ },
+ "maximum": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "model": {
+ "enum": [
+ "nano",
+ "nano2",
+ "nano-pro",
+ "gemini",
+ "seedream",
+ "lite"
+ ]
+ },
+ "per_image": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "quality": {
+ "enum": [
+ "standard",
+ "high"
+ ]
+ }
+ },
+ "required": [
+ "currency",
+ "per_image",
+ "maximum",
+ "count",
+ "model",
+ "quality",
+ "aspect_ratio",
+ "description_credits",
+ "analysis_credits",
+ "free_photo_used"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "analysis_credits": {
+ "const": 0
+ },
+ "currency": {
+ "const": "ai_credits"
+ },
+ "description_credits": {
+ "const": 1
+ },
+ "kind": {
+ "const": "description"
+ },
+ "maximum": {
+ "const": 1
+ }
+ },
+ "required": [
+ "kind",
+ "currency",
+ "maximum",
+ "description_credits",
+ "analysis_credits"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "request_id": {
+ "format": "uuid",
+ "type": "string"
+ },
+ "status": {
+ "enum": [
+ "awaiting_confirmation",
+ "approved",
+ "denied",
+ "running",
+ "complete",
+ "partial",
+ "failed",
+ "unknown"
+ ]
+ }
+ },
+ "required": [
+ "request_id",
+ "status",
+ "progress",
+ "frames",
+ "description",
+ "analysis",
+ "credits_charged",
+ "next",
+ "poll_after_seconds"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "error": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "error"
+ ],
+ "type": "object"
+ }
+]