{
  "openapi": "3.1.1",
  "info": {
    "title": "Image Translation API",
    "description": "Translate the text inside images and creatives, create on-brand variants and adapt layouts, keeping the design.",
    "version": "1.0.0",
    "contact": {}
  },
  "servers": [
    {
      "url": "{{API_BASE_URL}}",
      "description": "Your API environment"
    }
  ],
  "tags": [
    {
      "name": "Translation jobs"
    },
    {
      "name": "Translations"
    },
    {
      "name": "Translation review"
    },
    {
      "name": "AI edits"
    },
    {
      "name": "Analysis versions"
    },
    {
      "name": "Overlay assets"
    },
    {
      "name": "Created images"
    },
    {
      "name": "Image collections"
    },
    {
      "name": "Brand kits"
    },
    {
      "name": "Layout adaptation"
    },
    {
      "name": "Adapted variants"
    },
    {
      "name": "DITA maps"
    }
  ],
  "paths": {
    "/v1/brand-kit": {
      "get": {
        "operationId": "list-brand-kits",
        "parameters": [
          {
            "name": "page",
            "required": false,
            "in": "query",
            "description": "Page number, from 1. Defaults to 1.",
            "schema": {
              "type": "number",
              "examples": [
                1
              ]
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "Kits per page, 1 to 100. Defaults to 20.",
            "schema": {
              "type": "number",
              "examples": [
                20
              ]
            }
          },
          {
            "name": "search",
            "required": false,
            "in": "query",
            "description": "Only kits whose name contains this text, ignoring case. Up to 200 characters are used.",
            "schema": {
              "type": "string",
              "examples": [
                "acme"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "One page of brand kits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrandKitListResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Brand kits"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `brand_kit:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "summary": "List brand kits",
        "description": "Page through your organization's brand kits, newest first. Use `search` to find kits by name.",
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "post": {
        "operationId": "create-a-brand-kit",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateBrandKitDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The new brand kit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SavedBrandKitDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, or `logoUploadKey` can't be used:\n\n- `The upload could not be found. Please try uploading the file again.`, `That upload was already used. Please upload the file again.`, `The upload did not complete. Please try uploading the file again.` or `That upload isn't a <file> this step takes.`: an upload key that is wrong, used, unfinished or signed for another `kind`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Brand kits"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `brand_kit:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "summary": "Create a brand kit",
        "description": "Save a brand identity for your organization: name, colors, fonts, tone of voice, visual style and an optional logo. To fill it in for you, call Extract a brand identity first and send what it returns. The kit is used when images are created in the Universe app's Quick Create. Send the logo as `logoUploadKey` after putting it in storage with Get an upload URL (`kind: logo`), or base64 in `logo`.",
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/brand-kit/{id}": {
      "get": {
        "operationId": "get-a-brand-kit",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the brand kit, as returned by Create a brand kit.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The brand kit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrandKitDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No brand kit with this `id` in your organization (`Brand kit not found.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. This includes an `id` that is not a UUID: it is not checked before the lookup.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Brand kits"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `brand_kit:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "summary": "Get a brand kit",
        "description": "Get one brand kit, with a fresh signed URL for its logo.",
        "x-orbitdocs-order": 4,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "patch": {
        "operationId": "update-a-brand-kit",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the brand kit, as returned by Create a brand kit.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateBrandKitDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The updated brand kit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SavedBrandKitDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, or `logoUploadKey` can't be used:\n\n- `The upload could not be found. Please try uploading the file again.`, `That upload was already used. Please upload the file again.`, `The upload did not complete. Please try uploading the file again.` or `That upload isn't a <file> this step takes.`: an upload key that is wrong, used, unfinished or signed for another `kind`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No brand kit with this `id` in your organization (`Brand kit not found.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. This includes an `id` that is not a UUID: it is not checked before the lookup.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Brand kits"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `brand_kit:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "summary": "Update a brand kit",
        "description": "Change a brand kit in place; its `id` stays the same. Only the fields you send change. Send `null` for `website`, `toneOfVoice`, `headingFont` or `bodyFont` to clear it, and `logo: null` to remove the logo. A new logo goes in `logoUploadKey` (Get an upload URL for a brand kit, `kind: logo`) or base64 in `logo`. `sourceUrl` cannot be changed. If a new logo cannot be stored, the other changes are still saved and `logoError` says why.",
        "x-orbitdocs-order": 5,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/brand-kit/{id}/fonts/{role}": {
      "get": {
        "operationId": "download-a-brand-font",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the brand kit, as returned by Create a brand kit.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f"
              ]
            }
          },
          {
            "name": "role",
            "required": true,
            "in": "path",
            "description": "Which font: `heading` or `body`.",
            "schema": {
              "enum": [
                "heading",
                "body"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The font file.",
            "content": {
              "font/ttf": {
                "schema": {}
              },
              "font/otf": {
                "schema": {}
              },
              "font/woff": {
                "schema": {}
              },
              "font/woff2": {
                "schema": {}
              }
            }
          },
          "400": {
            "description": "`role` is not `heading` or `body` (`Choose the heading or the body font.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No brand kit with this `id` in your organization, or no font uploaded for `role` (`Font not found.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. This includes an `id` that is not a UUID: it is not checked before the lookup.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Brand kits"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `brand_kit:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "summary": "Download a brand font",
        "description": "Download the font file uploaded as the kit’s heading or body font, with its font media type (`font/ttf`, `font/otf`, `font/woff` or `font/woff2`).",
        "x-orbitdocs-order": 9,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "post": {
        "operationId": "upload-a-brand-font",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the brand kit, as returned by Create a brand kit.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f"
              ]
            }
          },
          {
            "name": "role",
            "required": true,
            "in": "path",
            "description": "Which font: `heading` or `body`.",
            "schema": {
              "enum": [
                "heading",
                "body"
              ],
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/UploadBrandFontBodyDoc"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UploadBrandFontBodyDoc"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The brand kit, with the font and its styles in `fonts`, and `skippedFonts` when any file was left out.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UploadedBrandFontDto"
                }
              }
            }
          },
          "400": {
            "description": "The upload was refused, or `role` is wrong:\n\n- `That file isn't a font we can use. Upload TTF, OTF, WOFF or WOFF2 files, or a ZIP of them.`\n- `There are no fonts in that ZIP. Upload TTF, OTF, WOFF or WOFF2 files, or a ZIP of them.`\n- `That's 34 fonts — upload at most 30 styles of one family.`\n- `Choose a font file to upload.`\n- `Choose the heading or the body font.`\n- `The upload could not be found. Please try uploading the file again.`, `That upload was already used. Please upload the file again.`, `The upload did not complete. Please try uploading the file again.` or `That upload isn't a <file> this step takes.`: an upload key that is wrong, used, unfinished or signed for another `kind`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No brand kit with this `id` in your organization (`Brand kit not found.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "A font is larger than 5 MB, a ZIP larger than 40 MB, or the upload larger than 40 MB.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 413,
                      "message": "Payload Too Large"
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "A ZIP was refused for its size or shape (too many entries, or one that inflates too far).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 422,
                      "message": "Unprocessable Entity"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. This includes an `id` that is not a UUID: it is not checked before the lookup.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Brand kits"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `brand_kit:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "summary": "Upload a brand font",
        "description": "Upload the brand’s own font as its heading or body font (multipart/form-data, field `file`, repeatable): TTF, OTF, WOFF or WOFF2 files of up to 5 MB each, or ZIPs of them (up to 40 MB) — every style of one family, at most 30 styles and 40 MB in all. Each font’s format, weight, italic and width are read from the font itself; a ZIP’s other files are skipped. The family is `family` when given, else the one the fonts name. The kit’s `headingFont` or `bodyFont` becomes that family, so created images name it, and the role starts on the family’s Bold (heading) or Regular (body). Fonts of another family, and a second file for a style already there, are left out and listed in `skippedFonts`. Uploading again replaces the family. Instead of the form, put each file in storage first with Get an upload URL for a brand kit (`kind: font`) and send their keys as `uploadKeys` in a JSON body (with `family` if you like): the files then never pass through this API.",
        "x-orbitdocs-order": 7,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "patch": {
        "operationId": "choose-a-brand-font-s-weight",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the brand kit, as returned by Create a brand kit.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f"
              ]
            }
          },
          {
            "name": "role",
            "required": true,
            "in": "path",
            "description": "Which font: `heading` or `body`.",
            "schema": {
              "enum": [
                "heading",
                "body"
              ],
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetBrandFontWeightDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The updated brand kit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrandKitDto"
                }
              }
            }
          },
          "400": {
            "description": "The weight was refused, or `role` is wrong:\n\n- `That weight isn’t one of the uploaded styles.`\n- `This font has one style. Upload the other styles of its family to choose a weight.`\n- `Choose the heading or the body font.`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No brand kit with this `id` in your organization (`Brand kit not found.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. This includes an `id` that is not a UUID: it is not checked before the lookup.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Brand kits"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `brand_kit:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "summary": "Choose a brand font’s weight",
        "description": "Choose which weight of an uploaded family the heading or body font uses — one of the weights its styles have (see `fonts.<role>.faces`). Created images name it, and Download a brand font serves that style.",
        "x-orbitdocs-order": 8,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/brand-kit/{id}/fonts/{role}/faces/{faceId}": {
      "get": {
        "operationId": "download-a-brand-font-style",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the brand kit, as returned by Create a brand kit.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f"
              ]
            }
          },
          {
            "name": "role",
            "required": true,
            "in": "path",
            "description": "Which font: `heading` or `body`.",
            "schema": {
              "enum": [
                "heading",
                "body"
              ],
              "type": "string"
            }
          },
          {
            "name": "faceId",
            "required": true,
            "in": "path",
            "description": "The style’s `id`, from `fonts.<role>.faces`.",
            "schema": {
              "type": "string",
              "examples": [
                "7d0f7a52-5b4c-4d3e-9a51-0e2d6f1c8b33"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The font file.",
            "content": {
              "font/ttf": {
                "schema": {}
              },
              "font/otf": {
                "schema": {}
              },
              "font/woff": {
                "schema": {}
              },
              "font/woff2": {
                "schema": {}
              }
            }
          },
          "400": {
            "description": "`role` is not `heading` or `body` (`Choose the heading or the body font.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No brand kit with this `id` in your organization, or no such style for `role` (`Font not found.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. This includes an `id` that is not a UUID: it is not checked before the lookup.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Brand kits"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `brand_kit:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "summary": "Download a brand font style",
        "description": "Download one uploaded style of the heading or body font’s family (an `id` from `fonts.<role>.faces`), with its font media type.",
        "x-orbitdocs-order": 10,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/brand-kit/{id}/upload/presign": {
      "post": {
        "operationId": "get-an-upload-url-for-a-brand-kit",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the brand kit, as returned by Create a brand kit.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BrandKitUploadPresignDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Where to `PUT` the file (`uploadUrl`, with exactly `headers`, within `expiresInSeconds`), and the `uploadKey` to send once it is there.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StagedUploadTicketDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, or the file is not one `kind` takes: `The file is empty.`, `The logo is larger than the 2 MB limit.` (each `kind` has its limit) or `That isn't a font file this step takes (.ttf, .otf, .woff, .woff2, .zip).`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No brand kit with this `id` in your organization (`Brand kit not found.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many upload URLs in the last hour, or too many uploads not yet used (`Too many uploads in the last hour. Please wait and try again.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. This includes an `id` that is not a UUID: it is not checked before the lookup.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Brand kits"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `brand_kit:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "summary": "Get an upload URL for a brand kit",
        "description": "Get an upload URL for a file going to this kit: a new logo (`kind: logo`) for Update a brand kit, sent as `logoUploadKey`, or a font file (`kind: font`, one URL per file) for Upload a brand font, sent in `uploadKeys`. `PUT` the file to `uploadUrl` with exactly `size` bytes and the given `headers`, within 10 minutes.",
        "x-orbitdocs-order": 6,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/brand-kit/extract": {
      "post": {
        "operationId": "extract-a-brand-identity",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExtractBrandKitDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The brand identity found. It is not saved.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExtractedBrandIdentityDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, or the source could not be used (any credits charged are refunded):\n\n- `Provide a URL.`, `Provide at least one image.` or `Provide a PDF file.`: the field that `source` needs is missing.\n- `Unsupported image type \"<type>\". Use PNG, JPG, WebP, HEIC, HEIF.` or `Unsupported file — upload a PDF.`\n- `Enter a valid website URL.`, `Only http(s) URLs are supported.` or `Enter a public website address (https://…).`\n- `This website blocked our request (it protects against automated access). Try uploading a screenshot or PDF of the site instead.`, `Could not fetch the website (HTTP <status>).`, `That website took too long to respond. Try again.`, `That page is too large to analyze. …` or `Could not reach that website. …`\n- `The upload could not be found. Please try uploading the file again.`, `That upload was already used. Please upload the file again.`, `The upload did not complete. Please try uploading the file again.` or `That upload isn't a <file> this step takes.`: an upload key that is wrong, used, unfinished or signed for another `kind`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits for one extraction, or your organization owes credits. Nothing was analysed, and staged files can be sent again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "The files named by `imageUploadKeys` add up to more than 15 MB (`The files together are larger than the 15 MB limit.`). Nothing is charged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 413,
                      "message": "Payload Too Large"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The analysis failed (`Brand extraction failed. Please try again.`). Its credits are refunded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Brand kits"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `brand_kit:create`. An API key acts with the role of the member who created it.\n\n**Credits:** One extraction, charged before the source is read. Refunded in full if the extraction fails, including when the website cannot be fetched or a file is refused.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| Brand identity extraction | AI-extracting brand colors, fonts, tone and visual style from a URL, images, or a PDF. | 1000 credits |",
            "position": "after-description"
          }
        ],
        "summary": "Extract a brand identity",
        "description": "Read a brand identity from a public website, up to 6 images or a PDF brand book: name, colors, fonts, tone of voice and visual style. Nothing is saved: check the result, then pass it to Create a brand kit. The call waits for the analysis, usually 10 to 30 seconds. Fields that could not be found come back empty. Put images or a PDF in storage first with Get an upload URL (`kind: image` or `kind: pdf`) and send their keys as `imageUploadKeys` or `pdfUploadKey`, or send the files base64 in `images` or `pdf`: up to 15 MB in all.",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/brand-kit/upload/presign": {
      "post": {
        "operationId": "get-an-upload-url-2",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BrandKitUploadPresignDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Where to `PUT` the file (`uploadUrl`, with exactly `headers`, within `expiresInSeconds`), and the `uploadKey` to send once it is there.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StagedUploadTicketDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, or the file is not one `kind` takes: `The file is empty.`, `The logo is larger than the 2 MB limit.` (each `kind` has its limit) or `That isn't a font file this step takes (.ttf, .otf, .woff, .woff2, .zip).`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many upload URLs in the last hour, or too many uploads not yet used (`Too many uploads in the last hour. Please wait and try again.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Brand kits"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `brand_kit:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "summary": "Get an upload URL",
        "description": "For a file a brand kit request takes, so it never passes through this API: a logo (`kind: logo`), a font file (`kind: font`, one URL per file) or an image or PDF to extract a brand from (`kind: image`, `kind: pdf`). Returns a presigned `uploadUrl`: `PUT` the file to it with exactly `size` bytes and the given `headers`, within 10 minutes. Then send the `uploadKey` as `logoUploadKey` to Create a brand kit, in `uploadKeys` to Upload a brand font, or as `imageUploadKeys` / `pdfUploadKey` to Extract a brand identity. An upload not used within a day is deleted.",
        "x-orbitdocs-order": 0,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/adapt/{id}": {
      "get": {
        "operationId": "get-a-design",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the design (`designAssetId`).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "3f2b8c1d-6e4a-4b7f-9c2d-1a5e8f3b7c90"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The design.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetDesignAssetResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "An ID in the path is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No design with this `id` in your organization, or it was deleted (`Design asset not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get a design",
        "tags": [
          "Layout adaptation"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.design_agent:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Read a design with its variants and elements. `status` says where it is, and `designKnowledge` holds what the Pro analysis found: the texts, subjects, logos and other elements, whose IDs layout plans and reviews refer to.",
        "x-orbitdocs-order": 5,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/adapt/{id}/adapt": {
      "post": {
        "description": "Adapt a design to new formats: one variant per entry of `variants`, each with a `variantCategory` and a `targetConfig` with its `width` and `height` in pixels. Returns the new `variantId`s straight away; the work runs in the background, so poll each with Get a variant. **Pro** designs need a successful analysis: each variant gets a layout plan (`PLAN_PENDING`, with `layoutPlan` set once ready) for you to approve with Approve a layout plan, or revise with Revise a layout plan. **Flash** variants are rendered at once (`GENERATING` → `APPROVED`). A variant whose work fails becomes `FAILED` with `errorLog`, without stopping the others.",
        "operationId": "create-variants",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the design (`designAssetId`).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "3f2b8c1d-6e4a-4b7f-9c2d-1a5e8f3b7c90"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDesignVariantsDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The variants were created and their work started.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateVariantsResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "An ID in the path is not a UUID (`Validation failed (uuid is expected)`). Or nothing was created or charged because:\n\n- `Design asset has no extracted knowledge yet. Run analysis first.`: a Pro design whose analysis has not succeeded.\n- `At least one variant is required`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits, or your organization owes credits. Nothing was started.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No design with this `id` in your organization, or it was deleted (`Design asset not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Create variants",
        "tags": [
          "Layout adaptation"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.design_agent:create`. An API key acts with the role of the member who created it.\n\n**Credits:** Charged when the request starts, one unit per variant: a layout plan for each Pro variant (its image is charged when you approve the plan), or a render for each Flash variant. All or nothing: without enough credits for every variant, none is created. A variant whose plan or render fails is refunded; deleting the design keeps the charges.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| Design plan | Planning the layout for one adapted variant (Pro). Same planner as a re-plan. | 200 credits |\n| Variant generation | Generating one adapted variant of a design. Charged per variant produced. | 300 credits |",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 9,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/adapt/{id}/approve": {
      "post": {
        "operationId": "approve-a-design",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the design (`designAssetId`).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "3f2b8c1d-6e4a-4b7f-9c2d-1a5e8f3b7c90"
              ]
            }
          }
        ],
        "responses": {
          "201": {
            "description": "The design is approved.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApproveDesignAssetResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "An ID in the path is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No design with this `id` in your organization, or it was deleted (`Design asset not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Approve a design",
        "tags": [
          "Layout adaptation"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.design_agent:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Mark a design `APPROVED` after you have checked what its analysis found (`designKnowledge` on Get a design). Approving again changes nothing. Create variants needs a successful analysis, not this approval, so this step is for your own review flow.",
        "x-orbitdocs-order": 7,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/adapt/{id}/clean-background": {
      "post": {
        "operationId": "generate-a-clean-background",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the design (`designAssetId`).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "3f2b8c1d-6e4a-4b7f-9c2d-1a5e8f3b7c90"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDesignCleanBackgroundDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The clean background was generated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CleanBackgroundResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "An ID in the path is not a UUID (`Validation failed (uuid is expected)`). Or nothing was charged because:\n\n- `This action is only available on Pro tier assets`.\n- `Asset has no source image`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits, or your organization owes credits. Nothing was started.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No design with this `id` in your organization, or it was deleted (`Design asset not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Generating the image failed. The credits were refunded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Generate a clean background",
        "tags": [
          "Layout adaptation"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.design_agent:create`. An API key acts with the role of the member who created it.\n\n**Credits:** Charged when the request starts. Refunded if generating the image fails.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| Clean background | Generating a clean, text-free background for a design asset. | 300 credits |",
            "position": "after-description"
          }
        ],
        "description": "Make a copy of a Pro design's background with its texts and subjects removed. Reviews use it to spot gaps in a variant's background. The request waits for the image and returns its URL, also stored as `analysisMeta.cleanBackgroundUrl` on the design. Running it again replaces it.",
        "x-orbitdocs-order": 8,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/adapt/{id}/elements": {
      "get": {
        "operationId": "list-design-elements",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the design (`designAssetId`).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "3f2b8c1d-6e4a-4b7f-9c2d-1a5e8f3b7c90"
              ]
            }
          },
          {
            "name": "category",
            "required": false,
            "in": "query",
            "description": "Only elements of this `category`.",
            "schema": {
              "type": "string",
              "examples": [
                "logo"
              ]
            }
          },
          {
            "name": "variantId",
            "required": false,
            "in": "query",
            "description": "Only elements limited to this variant.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "7c1e4a9b-2d3f-4e5a-8b6c-9d0e1f2a3b4c"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The elements.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListDesignElementsResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "An ID in the path is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No design with this `id` in your organization, or it was deleted (`Design asset not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List design elements",
        "tags": [
          "Layout adaptation"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.design_agent:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "List the elements stored with a design, newest first. Filter by `category`, or by `variantId` for the elements of one variant.",
        "x-orbitdocs-order": 11,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "post": {
        "operationId": "add-a-design-element",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the design (`designAssetId`).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "3f2b8c1d-6e4a-4b7f-9c2d-1a5e8f3b7c90"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDesignElementDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The element was added.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DesignElementResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "An ID in the path is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No design with this `id` in your organization, or it was deleted (`Design asset not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Add a design element",
        "tags": [
          "Layout adaptation"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.design_agent:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Store an element with a design, such as a logo or product shot you uploaded, for the whole design or for one variant (`fk_designVariantId`). Elements are records you keep with the design: adding one does not change its analysis, plans or images.",
        "x-orbitdocs-order": 10,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/adapt/{id}/variants": {
      "get": {
        "operationId": "list-variants",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the design (`designAssetId`).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "3f2b8c1d-6e4a-4b7f-9c2d-1a5e8f3b7c90"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The variants.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListDesignVariantsResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "An ID in the path is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No design with this `id` in your organization, or it was deleted (`Design asset not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List variants",
        "tags": [
          "Adapted variants"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.design_agent:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "List the variants of a design, newest first, with their status, layout plan and current image. Use Get a variant for one variant with its active version.",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/adapt/assets": {
      "get": {
        "operationId": "list-designs",
        "parameters": [
          {
            "name": "view",
            "required": false,
            "in": "query",
            "description": "`summary` returns only `id`, `name`, `status`, `tier`, `language`, `sourceImageUrl`, `sourceImageMeta`, the owner, organization and project IDs, the timestamps and `variantsCount`: no `designKnowledge`, `analysisMeta`, token counts or `errorLog`. Any other value is ignored.",
            "schema": {
              "enum": [
                "summary"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The designs.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListDesignAssetsResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List designs",
        "tags": [
          "Layout adaptation"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.design_agent:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "List every design of your organization, newest first, each with its number of variants (`variantsCount`). The list is not paginated. Deleted designs are left out. Add `view=summary` to leave out the analysis and usage fields.",
        "x-orbitdocs-order": 4,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "post": {
        "description": "Create a design from an uploaded image (`designAssetId` and `objectKey` from Get a design upload URL; an image Check a design upload accepted is not checked again), or from an image your organization already has (`sourceKey`). Choose the `tier`. **Pro** (the default) analyzes the design before responding: it finds the texts, subjects, logos and other elements that layout plans and reviews refer to. The response says whether the analysis succeeded (`taskStatus`), and the design's `status` becomes `PROCESSED`; if it failed, the design stays `CREATED`, its credits are refunded, and Get a design task with `taskId` says why. **Flash** runs no analysis and is ready for variants at once (`APPROVED`).",
        "operationId": "create-a-design",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDesignAssetDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The design was created. For Pro, the analysis has already run; check `taskStatus`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateDesignAssetResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Nothing was created or charged. A field failed validation, or:\n\n- `Design asset id already exists`: a design with this `designAssetId` exists in your organization.\n- `That image does not belong to this org.`: `objectKey` or `sourceKey` is not a key of your organization.\n- `Could not find that image.`: there is no file at `sourceKey` or `objectKey`.\n- `That file isn't the image its name or type says it is.` or another upload check: the uploaded bytes were refused and deleted.\n- `Could not resolve that image.`: storage gave no URL for the image.\n- `Provide either sourceKey, or objectKey from a presign.`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits, or your organization owes credits. Nothing was started.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`projectId` is not a project of your organization (`Project not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Create a design",
        "tags": [
          "Layout adaptation"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.design_agent:create`. An API key acts with the role of the member who created it.\n\n**Credits:** Pro designs only: charged when the request starts, before the design is created. Refunded if the analysis fails. Flash designs are free to create.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| Design analysis | Analyzing a source design before adapting it. | 200 credits |",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/adapt/assets/{id}/project": {
      "patch": {
        "description": "File a design under one of your organization's projects. Pass `projectId: null` to unassign. Filing only organizes work; it never changes who can see the design.",
        "operationId": "move-a-design-to-a-project",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the design (`designAssetId`).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "3f2b8c1d-6e4a-4b7f-9c2d-1a5e8f3b7c90"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MoveDesignProjectBodyDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The design was moved.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MoveDesignProjectResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "An ID in the path is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No design with this `id` in your organization, or it was deleted (`Design asset not found`). Or `projectId` is not a project of your organization (`Project not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Move a design to a project",
        "tags": [
          "Layout adaptation"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.design_agent:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 13,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/adapt/assets/{id}/rename": {
      "post": {
        "operationId": "rename-a-design",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the design (`designAssetId`).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "3f2b8c1d-6e4a-4b7f-9c2d-1a5e8f3b7c90"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RenameDesignAssetDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The design was renamed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RenameDesignAssetResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "An ID in the path is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No design with this `id` in your organization, or it was deleted (`Design asset not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Rename a design",
        "tags": [
          "Layout adaptation"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.design_agent:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Change the display name of a design. A name of only spaces becomes `Untitled`.",
        "x-orbitdocs-order": 12,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/adapt/mask/upload/presign": {
      "post": {
        "operationId": "get-a-mask-upload-url",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateStagedUploadDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Where to upload the mask, and its key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StagedUploadTicketDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, the file is empty or over 20 MB, or it is not a `.png`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The member asked for too many upload URLs in the last hour, or has too many uploads not yet used.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get a mask upload URL",
        "tags": [
          "Adapted variants"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.design_agent:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "For the mask of Edit a variant: say which PNG you will upload (`fileName`, `contentType`, `size`; up to 20 MB). `PUT` it to `uploadUrl` with exactly `headers` within 10 minutes, then send its `uploadKey` as `maskImageKey` to Edit a variant. The mask never passes through the edit request. Charges nothing; an upload not used within a day is deleted.",
        "x-orbitdocs-order": 16,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/adapt/tasks/{taskId}": {
      "get": {
        "operationId": "get-a-design-task",
        "parameters": [
          {
            "name": "taskId",
            "required": true,
            "in": "path",
            "description": "ID of the task (`taskId` from Create a design).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "e9a1c3b5-7d2f-4e6a-9b8c-0d1e2f3a4b5c"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The task.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAgentTaskResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "An ID in the path is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No task with this `taskId` in your organization (`Agent task not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get a design task",
        "tags": [
          "Layout adaptation"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.design_agent:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Read one step of work on a design, such as its analysis, by the `taskId` from Create a design. When `status` is `FAILED`, `errorCode` and `errorLog` say why. Use it to find out why a Pro analysis failed.",
        "x-orbitdocs-order": 6,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/adapt/upload/check": {
      "post": {
        "description": "Optional step between the `PUT` and Create a design: check the uploaded image now, with the same checks Create a design makes, so a file that would be refused is refused before you start anything paid. Send the `designAssetId` and `objectKey` from Get a design upload URL. An accepted image is kept for that design, without its metadata (such as GPS position), and Create a design with the same `designAssetId` and `objectKey` uses it without checking it again. A refused file is deleted. Nothing is created or charged.",
        "operationId": "check-a-design-upload",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CheckDesignUploadDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The image was accepted and kept. What to send next.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DesignUploadCheckResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Nothing was created or charged. A field failed validation, or:\n\n- `That image does not belong to this org.`: `objectKey` is not a key of your organization.\n- `That upload is not for this design.`: `objectKey` is not the upload key Get a design upload URL gave for this `designAssetId`.\n- `Design asset id already exists`: a design with this `designAssetId` exists in your organization.\n- `The upload could not be found. Please try uploading the file again.`: nothing was uploaded to the URL, or it was checked already.\n- `That file isn't the image its name or type says it is.`, `That file isn't a picture we can use.` or another upload check: the uploaded bytes were refused and deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Check a design upload",
        "tags": [
          "Layout adaptation"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.design_agent:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/adapt/upload/presign": {
      "post": {
        "description": "First step of adapting a design: reserve a design ID and get a presigned URL to upload the source image to. `PUT` the image bytes to `uploadUrl` within 15 minutes, with the headers in `headers`, then call Create a design with `designAssetId` and `objectKey`. To find out whether the image will be accepted before you create the design, call Check a design upload first. JPEG, PNG and WebP images are accepted. Nothing is stored until you check the upload or create the design.",
        "operationId": "get-a-design-upload-url",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDesignUploadPresignDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Where to upload the image, and what to send next.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DesignUploadPresignResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation (for example, `contentType` is not `image/jpeg`, `image/png` or `image/webp`), or `Could not create an upload URL`: storage refused to sign the upload.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get a design upload URL",
        "tags": [
          "Layout adaptation"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.design_agent:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/adapt/variants/{variantId}": {
      "get": {
        "operationId": "get-a-variant",
        "parameters": [
          {
            "name": "variantId",
            "required": true,
            "in": "path",
            "description": "ID of the variant (`variantId` from Create variants).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "7c1e4a9b-2d3f-4e5a-8b6c-9d0e1f2a3b4c"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The variant.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetDesignVariantResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "An ID in the path is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No variant with this `variantId` in your organization (`Design variant not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get a variant",
        "tags": [
          "Adapted variants"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.design_agent:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Read a variant with its design and its active version. Poll it after Create variants and after each change: `status` says where the variant is, `layoutPlan` holds a Pro plan once it is ready, `generatedImageUrl` the current image and `reviewData` the latest review. A few seconds between polls is enough.",
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/adapt/variants/{variantId}/approve-plan": {
      "post": {
        "operationId": "approve-a-layout-plan",
        "parameters": [
          {
            "name": "variantId",
            "required": true,
            "in": "path",
            "description": "ID of the variant (`variantId` from Create variants).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "7c1e4a9b-2d3f-4e5a-8b6c-9d0e1f2a3b4c"
              ]
            }
          }
        ],
        "responses": {
          "201": {
            "description": "The variant after rendering: `REVIEW_PENDING`, or `FAILED`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DesignVariantResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "An ID in the path is not a UUID (`Validation failed (uuid is expected)`). Or nothing was charged because:\n\n- `No layout plan to approve`: the plan is still being made; poll Get a variant.\n- `Variant is in status <status>; only PLAN_PENDING can be approved`.\n- `Concurrent state change detected; refresh and retry`: the variant changed while the request started; nothing was charged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits, or your organization owes credits. Nothing was started.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No variant with this `variantId` in your organization (`Design variant not found`). Or its design was deleted (`Parent design asset not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "Another approval of this variant is starting (`This is already being started. Please wait for it to finish.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Approve a layout plan",
        "tags": [
          "Adapted variants"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.design_agent:create`. An API key acts with the role of the member who created it.\n\n**Credits:** Charged when the request starts. Refunded if the render fails.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| Variant generation | Generating one adapted variant of a design. Charged per variant produced. | 300 credits |",
            "position": "after-description"
          }
        ],
        "description": "Accept the layout plan of a Pro variant in `PLAN_PENDING` and render its image. The request waits for the render, which can take a minute or more. On success the variant is `REVIEW_PENDING` with a new active version; run Review a variant to check it. If rendering fails, the response is still `201` with the variant `FAILED` and `errorLog` saying why, and the credits are refunded; try again with Regenerate a variant image.",
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/adapt/variants/{variantId}/edit-mask": {
      "post": {
        "operationId": "edit-a-variant",
        "parameters": [
          {
            "name": "variantId",
            "required": true,
            "in": "path",
            "description": "ID of the variant (`variantId` from Create variants).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "7c1e4a9b-2d3f-4e5a-8b6c-9d0e1f2a3b4c"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EditVariantMaskDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The variant with the edited image as its active version.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DesignVariantResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "An ID in the path is not a UUID (`Validation failed (uuid is expected)`). Or `Variant has no generated image to edit`, or the `maskImageKey` upload can't be used (not found, already used, or not a mask upload). Nothing was charged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits, or your organization owes credits. Nothing was started.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No variant with this `variantId` in your organization (`Design variant not found`). Or its design was deleted (`Parent asset not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The edit failed. The credits were refunded and the active version is unchanged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Edit a variant",
        "tags": [
          "Adapted variants"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.design_agent:create`. An API key acts with the role of the member who created it.\n\n**Credits:** Charged when the request starts. Refunded if the edit fails.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| Variant mask edit | Masked inpaint edit of a variant, producing a new version. | 300 credits |",
            "position": "after-description"
          }
        ],
        "description": "Change the image of a variant with a `prompt` in plain words, limited to an area when you send a mask; without one the whole image is edited. Send the mask as an upload (`maskImageKey`, from Get a mask upload URL), or base64 in the body (`maskImageBase64`). Works on Flash and Pro variants that have an image. The request waits for the edit; the result becomes a new active version and the variant `APPROVED`.",
        "x-orbitdocs-order": 8,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/adapt/variants/{variantId}/export": {
      "get": {
        "operationId": "export-a-variant",
        "parameters": [
          {
            "name": "variantId",
            "required": true,
            "in": "path",
            "description": "ID of the variant (`variantId` from Create variants).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "7c1e4a9b-2d3f-4e5a-8b6c-9d0e1f2a3b4c"
              ]
            }
          },
          {
            "name": "format",
            "required": false,
            "in": "query",
            "description": "`png` (default) or `jpeg` (`jpg` works too). Any other value means `png`.",
            "schema": {
              "enum": [
                "png",
                "jpeg",
                "jpg"
              ],
              "type": "string"
            }
          },
          {
            "name": "mode",
            "required": false,
            "in": "query",
            "description": "`quality` (default) keeps the rendered size; `exact` resizes to the variant size. Any other value means `quality`.",
            "schema": {
              "enum": [
                "quality",
                "exact"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The image file.",
            "content": {
              "image/png": {
                "schema": {}
              },
              "image/jpeg": {
                "schema": {}
              }
            }
          },
          "400": {
            "description": "An ID in the path is not a UUID (`Validation failed (uuid is expected)`). Or:\n\n- `Variant has no generated image to export`.\n- `Variant has no target dimensions for exact export`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No variant with this `variantId` in your organization (`Design variant not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Export a variant",
        "tags": [
          "Adapted variants"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.design_agent:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Download the current image of a variant as a PNG or JPEG file. `mode=quality` (the default) keeps the size it was rendered at; `mode=exact` resizes it to the variant's `width` × `height`. The file name, in `Content-Disposition`, is the design name and the pixel size.",
        "x-orbitdocs-order": 13,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/adapt/variants/{variantId}/fix-issues": {
      "post": {
        "operationId": "fix-review-issues",
        "parameters": [
          {
            "name": "variantId",
            "required": true,
            "in": "path",
            "description": "ID of the variant (`variantId` from Create variants).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "7c1e4a9b-2d3f-4e5a-8b6c-9d0e1f2a3b4c"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FixVariantIssuesDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The variant with the fixed image as its active version.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DesignVariantResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "An ID in the path is not a UUID (`Validation failed (uuid is expected)`). Or nothing was charged because:\n\n- `Variant has no generated image to fix`.\n- `Variant is in status <status>; must be REVIEW_PENDING, NEEDS_REVIEW, or APPROVED to fix`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits, or your organization owes credits. Nothing was started.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No variant with this `variantId` in your organization (`Design variant not found`). Or its design was deleted (`Parent asset not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The fix failed. The credits were refunded and the active version is unchanged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Fix review issues",
        "tags": [
          "Adapted variants"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.design_agent:create`. An API key acts with the role of the member who created it.\n\n**Credits:** Charged when the request starts. Refunded if the fix fails.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| Variant issue fix | AI fix of detected issues on a variant. | 300 credits |",
            "position": "after-description"
          }
        ],
        "description": "Correct issues found by Review a variant. List them in `selectedIssueIds` by their IDs in `reviewData`, and add any instructions in `additionalPrompt`. Works when the variant is `REVIEW_PENDING`, `NEEDS_REVIEW` or `APPROVED`. The request waits for the edit; the result becomes a new active version and the variant `APPROVED`. Review it again if you want to check the fix.",
        "x-orbitdocs-order": 7,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/adapt/variants/{variantId}/recrop": {
      "post": {
        "operationId": "recrop-a-variant",
        "parameters": [
          {
            "name": "variantId",
            "required": true,
            "in": "path",
            "description": "ID of the variant (`variantId` from Create variants).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "7c1e4a9b-2d3f-4e5a-8b6c-9d0e1f2a3b4c"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecropVariantDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The variant with the recropped image as its active version.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DesignVariantResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "An ID in the path is not a UUID (`Validation failed (uuid is expected)`). Or nothing was charged because:\n\n- `Raw (pre-crop) output is unavailable for this version, so it cannot be re-cropped.`\n- `Variant has no target dimensions.`\n- `Invalid crop region.`: `width` or `height` is 0.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits, or your organization owes credits. Nothing was started.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No variant with this `variantId` in your organization (`Design variant not found`). Or its design was deleted (`Parent asset not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Recrop a variant",
        "tags": [
          "Adapted variants"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.design_agent:create`. An API key acts with the role of the member who created it.\n\n**Credits:** Charged when the request starts, at the same price as an edit. Refunded if the crop fails.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| Variant recrop | Re-cropping a variant from its raw output, producing a new version. | 300 credits |",
            "position": "after-description"
          }
        ],
        "description": "Choose a different crop of the raw render of the active version, before it was cropped to the variant format. The area you pick, in 0–1 fractions, becomes the new image as is (use Export a variant with `mode=exact` for exact pixel sizes). The result becomes a new active version and the variant `APPROVED`.",
        "x-orbitdocs-order": 9,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/adapt/variants/{variantId}/regenerate-image": {
      "post": {
        "operationId": "regenerate-a-variant-image",
        "parameters": [
          {
            "name": "variantId",
            "required": true,
            "in": "path",
            "description": "ID of the variant (`variantId` from Create variants).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "7c1e4a9b-2d3f-4e5a-8b6c-9d0e1f2a3b4c"
              ]
            }
          }
        ],
        "responses": {
          "201": {
            "description": "The variant after rendering: `REVIEW_PENDING`, or `FAILED`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DesignVariantResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "An ID in the path is not a UUID (`Validation failed (uuid is expected)`). Or nothing was charged because:\n\n- `No layout plan to regenerate from`.\n- `Variant is in status <status>; cannot regenerate from this state`: it is still planning or rendering.\n- `Concurrent state change detected; refresh and retry`: the variant changed while the request started; nothing was charged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits, or your organization owes credits. Nothing was started.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No variant with this `variantId` in your organization (`Design variant not found`). Or its design was deleted (`Parent design asset not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Regenerate a variant image",
        "tags": [
          "Adapted variants"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.design_agent:create`. An API key acts with the role of the member who created it.\n\n**Credits:** Charged when the request starts. Refunded if the render fails.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| Variant image regeneration | Re-rendering a variant's image from its approved plan. | 300 credits |",
            "position": "after-description"
          }
        ],
        "description": "Render the image of a variant again from its current layout plan, without planning again. Works when the variant is `REVIEW_PENDING`, `NEEDS_REVIEW`, `APPROVED` or `FAILED`. The request waits for the render; the new image becomes a new active version and the variant `REVIEW_PENDING`. If rendering fails, the response is still `201` with the variant `FAILED`, and the credits are refunded.",
        "x-orbitdocs-order": 5,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/adapt/variants/{variantId}/regenerate-plan": {
      "post": {
        "operationId": "revise-a-layout-plan",
        "parameters": [
          {
            "name": "variantId",
            "required": true,
            "in": "path",
            "description": "ID of the variant (`variantId` from Create variants).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "7c1e4a9b-2d3f-4e5a-8b6c-9d0e1f2a3b4c"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegenerateVariantPlanDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The variant with its new layout plan.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DesignVariantResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "An ID in the path is not a UUID (`Validation failed (uuid is expected)`). Or nothing was charged because:\n\n- `Variant is in status <status>; only PLAN_PENDING can be regenerated`.\n- `Unknown element_id in perElementNotes: <id>`: the ID is not in the current plan.\n- `A PLAN_LAYOUT task is already running for this variant`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits, or your organization owes credits. Nothing was started.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No variant with this `variantId` in your organization (`Design variant not found`). Or its design was deleted (`Parent design asset not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "A revision of this plan is already running (`The layout planner is already re-running for this variant.`). Nothing was charged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Planning failed. The credits were refunded; try again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Revise a layout plan",
        "tags": [
          "Adapted variants"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.design_agent:create`. An API key acts with the role of the member who created it.\n\n**Credits:** Charged when the request starts. Refunded if planning fails.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| Variant plan regeneration | Re-planning a variant's layout. | 200 credits |",
            "position": "after-description"
          }
        ],
        "description": "Make the layout plan of a Pro variant in `PLAN_PENDING` again, following your notes: a `generalNote` for the whole layout and `perElementNotes` for single elements, by their `element_id` in the current plan. The request waits for the new plan and returns the variant, still `PLAN_PENDING`. Approve it with Approve a layout plan.",
        "x-orbitdocs-order": 4,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/adapt/variants/{variantId}/review": {
      "post": {
        "operationId": "review-a-variant",
        "parameters": [
          {
            "name": "variantId",
            "required": true,
            "in": "path",
            "description": "ID of the variant (`variantId` from Create variants).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "7c1e4a9b-2d3f-4e5a-8b6c-9d0e1f2a3b4c"
              ]
            }
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewVariantBodyDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The variant with the review in `reviewData`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DesignVariantResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "An ID in the path is not a UUID (`Validation failed (uuid is expected)`). Or nothing was charged because:\n\n- `Variant has no generated image to review`.\n- `Parent asset or design knowledge not found`: the design has no analysis (Flash designs never do).\n- `Parent asset has no source image`.\n- `Auto review-fix loop is in progress; wait for it to finish before running a manual review`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits, or your organization owes credits. Nothing was started.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No variant with this `variantId` in your organization (`Design variant not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "A review of this variant is already running (`A review is already running for this variant.`). Nothing was charged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The review failed. The credits were refunded; try again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Review a variant",
        "tags": [
          "Adapted variants"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.design_agent:create`. An API key acts with the role of the member who created it.\n\n**Credits:** Charged when the request starts. Refunded if the review fails.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| Variant QA review | AI quality review of a generated variant. | 200 credits |",
            "position": "after-description"
          }
        ],
        "description": "Check the active image of a variant against the original design: are its texts right (`typo`, `missing`), and are its subjects, logos and other elements intact (`error`, `missing`)? Needs a design with a Pro analysis. The request waits for the review and returns the variant with the findings in `reviewData`: `APPROVED` when nothing is wrong, else `NEEDS_REVIEW`. Fix what it found with Fix review issues. A new review replaces the last one; it does not create a version.",
        "x-orbitdocs-order": 6,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/adapt/variants/{variantId}/save-to-drive": {
      "post": {
        "description": "Save the current image of a variant as a file in your organization's assets: in the design's project folder (or `adapt` when it has no project), or in the folder you choose with `folderId`. Every call makes a new file. Use the returned `assetId` with the Assets API.",
        "operationId": "save-a-variant-to-assets",
        "parameters": [
          {
            "name": "variantId",
            "required": true,
            "in": "path",
            "description": "ID of the variant (`variantId` from Create variants).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "7c1e4a9b-2d3f-4e5a-8b6c-9d0e1f2a3b4c"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveVariantToDriveDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The image was saved as a new file in your assets.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SaveVariantToDriveResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Nothing was saved:\n\n- `This variant has no image to save`: it has not been rendered yet.\n- `Files can only be saved into folders in the organization drive`, or `\"<name>\" is a system folder — files can't be saved into it`: pick another `folderId`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No variant with this ID in your organization (`Variant <variantId> not found`), or `folderId` is not one of your folders (`Folder not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Save a variant to assets",
        "tags": [
          "Adapted variants"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.design_agent:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 15,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/adapt/variants/{variantId}/versions": {
      "get": {
        "operationId": "list-variant-versions",
        "parameters": [
          {
            "name": "variantId",
            "required": true,
            "in": "path",
            "description": "ID of the variant (`variantId` from Create variants).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "7c1e4a9b-2d3f-4e5a-8b6c-9d0e1f2a3b4c"
              ]
            }
          },
          {
            "name": "include",
            "required": false,
            "in": "query",
            "description": "`full` adds `layoutPlan`, `reviewData` and `generationSteps` to each version. Any other value is ignored.",
            "schema": {
              "enum": [
                "full"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The versions.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListVariantVersionsResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "An ID in the path is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No variant with this `variantId` in your organization (`Design variant not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List variant versions",
        "tags": [
          "Adapted variants"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.design_agent:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "List every version of a variant, newest first. Each render, edit, fix and recrop makes one; `isActive` marks the one in use. Add `include=full` to get each version's layout plan, review and generation details too.",
        "x-orbitdocs-order": 10,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/adapt/variants/{variantId}/versions/{versionId}": {
      "get": {
        "operationId": "get-a-variant-version",
        "parameters": [
          {
            "name": "variantId",
            "required": true,
            "in": "path",
            "description": "ID of the variant (`variantId` from Create variants).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "7c1e4a9b-2d3f-4e5a-8b6c-9d0e1f2a3b4c"
              ]
            }
          },
          {
            "name": "versionId",
            "required": true,
            "in": "path",
            "description": "ID of a version of the variant, from List versions.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "b4d2f8e1-9a3c-4b5d-8e7f-1a2b3c4d5e6f"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The version.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetVariantVersionResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "An ID in the path is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No variant with this `variantId` in your organization (`Design variant not found`). Or the version is not one of this variant (`Design variant version not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get a variant version",
        "tags": [
          "Adapted variants"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.design_agent:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Read one version of a variant in full: its image, layout plan, review and how it was made.",
        "x-orbitdocs-order": 11,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/adapt/variants/{variantId}/versions/{versionId}/activate": {
      "post": {
        "operationId": "activate-a-variant-version",
        "parameters": [
          {
            "name": "variantId",
            "required": true,
            "in": "path",
            "description": "ID of the variant (`variantId` from Create variants).",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "7c1e4a9b-2d3f-4e5a-8b6c-9d0e1f2a3b4c"
              ]
            }
          },
          {
            "name": "versionId",
            "required": true,
            "in": "path",
            "description": "ID of a version of the variant, from List versions.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "b4d2f8e1-9a3c-4b5d-8e7f-1a2b3c4d5e6f"
              ]
            }
          }
        ],
        "responses": {
          "201": {
            "description": "The variant with the chosen version active.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DesignVariantResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "An ID in the path is not a UUID (`Validation failed (uuid is expected)`). Or:\n\n- `Cannot activate a version with status <status>`: the version is `GENERATING` or `FAILED`.\n- `Auto review-fix loop is in progress; wait for it to finish`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No variant with this `variantId` in your organization (`Design variant not found`). Or the version is not one of this variant (`Design variant version not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Activate a variant version",
        "tags": [
          "Adapted variants"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.design_agent:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Make an earlier (or later) version the variant's current image, for example to undo an edit. Nothing is rendered and no version is removed. The variant's `status` follows the version's: `APPROVED`, `NEEDS_REVIEW`, or else `REVIEW_PENDING`. Versions still `GENERATING` or `FAILED` cannot be activated.",
        "x-orbitdocs-order": 12,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/adapt/variants/export": {
      "post": {
        "operationId": "export-several-variants",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExportVariantsDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The exported images, and the variants that failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExportVariantsResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, for example `variantIds` is empty or holds an ID that is not a UUID.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Export several variants",
        "tags": [
          "Adapted variants"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.design_agent:export`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Export the current images of several variants in one request, as base64 in JSON, with the same `mode` and `format` options as Export a variant. Variants that cannot be exported, or are not in your organization, are listed in `failed` with the reason; the others are in `results`.",
        "x-orbitdocs-order": 14,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/dita-map/{id}/files": {
      "get": {
        "description": "Poll one language of a DITA map. `status` is the language's status and `summary` counts its files by status; `tree` is the ZIP as folders and files, where each translatable file carries a `childLogId`, its `status`, word count and `error`. Files appear with a `childLogId` once their language starts, since languages are translated one after another. When `status` is `COMPLETED`, build the translated ZIP. Poll every 5 to 30 seconds.",
        "operationId": "get-the-file-tree",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of one target language of a DITA map: an entry of `playgroundLogIds` from Upload a DITA map, or a `childProcesses[].id` from List DITA maps.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "7a1e4c2d-5b3f-4e6a-9c8d-1f2e3d4c5b6a"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The language with its file tree.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DitaFilesResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "`id` is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No language with this `id` in your organization (`Parent log not found.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get the file tree",
        "tags": [
          "DITA maps"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.dita_map:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/dita-map/{id}/generate-translation-zip": {
      "post": {
        "description": "Package one language as a ZIP with the same folders and files as the source, the translated files in place of the originals. Call it once the language's files have finished. It is not built while any file is still being translated, nor, by default, when a file failed: retry the failed files, or send `allowPartial: true` to copy them in the source language. In those cases the response has `success: false` and `statusCode: 412` (the HTTP status is still 201). When built, `data.url` is the ZIP. Build it again after a retry. Free.",
        "operationId": "build-the-translated-zip",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of one target language of a DITA map: an entry of `playgroundLogIds` from Upload a DITA map, or a `childProcesses[].id` from List DITA maps.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "7a1e4c2d-5b3f-4e6a-9c8d-1f2e3d4c5b6a"
              ]
            }
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateDitaZipBodyDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The ZIP was built (`success: true`), or why it was not (`success: false`, `statusCode: 412`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenerateDitaZipResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "`id` is not a UUID (`Validation failed (uuid is expected)`). Or the source ZIP of the map is missing (`Input ZIP URL is missing for this DITA Map process.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No language with this `id` in your organization (`DITA Map language parent log not found.`), or it has no files yet (`No file-level DITA logs found for this process.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The ZIP could not be stored (`Failed to upload translated ZIP.`). Try again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Build the translated ZIP",
        "tags": [
          "DITA maps"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.dita_map:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 4,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/dita-map/{id}/retry": {
      "post": {
        "description": "Translate again every file of one language that failed (or whose run stopped). The call waits until the retried files are done, then returns how many succeeded and failed again; the language becomes `COMPLETED` once no file has failed. Build the translated ZIP again afterwards. Each retried file is charged again: without enough credits, the API returns 402 and nothing is retried.",
        "operationId": "retry-failed-files",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of one target language of a DITA map: an entry of `playgroundLogIds` from Upload a DITA map, or a `childProcesses[].id` from List DITA maps.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "7a1e4c2d-5b3f-4e6a-9c8d-1f2e3d4c5b6a"
              ]
            }
          }
        ],
        "responses": {
          "201": {
            "description": "The retry finished.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RetryDitaFilesResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "`id` is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits for every retried file, or your organization owes credits. Nothing was retried.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No language with this `id` in your organization (`Parent log not found.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The failed files are already being retried (`These files are already being retried. Refresh to see their progress.`). Nothing was charged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Retry failed files",
        "tags": [
          "DITA maps"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.dita_map:create`. An API key acts with the role of the member who created it.\n\n**Credits:** Charged when the retry starts: each retried file's source words. A file that fails again is refunded.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| DITA map translation | Initializing + translating a DITA map and its topics. Charged per source word, per target language. | 0.5 credits per word |",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 6,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/dita-map/file/{id}/download": {
      "get": {
        "description": "Get one file of one language as text in `data.content`: the translation (default) or, with `variant=source`, the original. Use it to check single files before you build the ZIP. When the translation is not ready, the response has `success: false` and `statusCode: 412` (the HTTP status is still 200).",
        "operationId": "download-a-file",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of one file in one language: `childLogId` from Get the file tree.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "c4d5e6f7-a8b9-4c0d-8e1f-2a3b4c5d6e7f"
              ]
            }
          },
          {
            "name": "variant",
            "required": false,
            "in": "query",
            "description": "`translated` (default) for the translation, `source` for the original file. Any other value is treated as `translated`.",
            "schema": {
              "enum": [
                "translated",
                "source"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The file content, or why it is not available (`success: false`, `statusCode: 412`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DitaFileDownloadResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "`id` is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No file with this `id` in your organization (`DITA file log not found.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Download a file",
        "tags": [
          "DITA maps"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.dita_map:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 5,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/dita-map/file/{id}/retry": {
      "post": {
        "description": "Translate one failed file again. The call waits for the translation. A file that has not failed is not retried: the response has `success: false` and `statusCode: 412` (the HTTP status is still 201). Build the translated ZIP again afterwards. The file is charged again: without enough credits, the API returns 402 and nothing is retried.",
        "operationId": "retry-a-file",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of one file in one language: `childLogId` from Get the file tree.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "c4d5e6f7-a8b9-4c0d-8e1f-2a3b4c5d6e7f"
              ]
            }
          }
        ],
        "responses": {
          "201": {
            "description": "The file was translated (`success: true`), or it had not failed (`success: false`, `statusCode: 412`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RetryDitaFileResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "`id` is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits for the file, or your organization owes credits. Nothing was retried.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No file with this `id` in your organization (`DITA ZIP file log not found.`), or its language was deleted (`DITA language parent log not found.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "This file is already being retried (`This file is already being retried. Refresh to see its progress.`). Nothing was charged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The file failed again. It is marked `FAILED` and its credits are refunded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "The translation service failed. The file is marked `FAILED` and its credits are refunded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 502,
                      "message": "Error"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "The translation service is unavailable. The file is marked `FAILED` and its credits are refunded; try again later.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 503,
                      "message": "Error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Retry a file",
        "tags": [
          "DITA maps"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.dita_map:create`. An API key acts with the role of the member who created it.\n\n**Credits:** Charged when the retry starts: the file's source words. Refunded if it fails again.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| DITA map translation | Initializing + translating a DITA map and its topics. Charged per source word, per target language. | 0.5 credits per word |",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 7,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/dita-map/initialize": {
      "post": {
        "description": "Upload a ZIP of DITA content and translate it into one or more languages with a translation memory. The `.xml`, `.dita`, `.ditamap` and `.svg` files are translated; everything else is copied unchanged. Put the ZIP in storage first (Get a DITA map upload URL) and send its `uploadKey` with the other fields as JSON, or send `multipart/form-data` with the ZIP in `file` (up to 500 MB). Credits are charged when you upload: without enough, the API returns 402 and nothing is created. Returns straight away with one ID per target language in `data.playgroundLogIds`; the languages are then translated one after another in the background. Poll each with Get the file tree, then call Build the translated ZIP.",
        "operationId": "upload-a-dita-map",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "sourceLanguage",
                  "targetLanguages",
                  "tmId"
                ],
                "properties": {
                  "uploadKey": {
                    "type": "string",
                    "description": "The `uploadKey` from Get a DITA map upload URL, once the ZIP is in storage. Send it (JSON) instead of `file`."
                  },
                  "file": {
                    "contentMediaType": "application/octet-stream",
                    "description": "The ZIP to translate (`.zip`, up to 500 MB), when it is uploaded with the request (multipart). Folders inside it are kept."
                  },
                  "sourceLanguage": {
                    "type": "string",
                    "description": "Language key of the source text. Use the source language of the translation memory in `tmId`.",
                    "examples": [
                      "english_united_states"
                    ]
                  },
                  "targetLanguages": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Language keys to translate into: repeat the field, or send one value as a comma-separated list or a JSON array. None may equal `sourceLanguage`. Each language is translated, and charged, separately.",
                    "examples": [
                      [
                        "french_france",
                        "german_germany"
                      ]
                    ]
                  },
                  "tmId": {
                    "type": "string",
                    "format": "uuid",
                    "description": "ID of the translation memory to translate with. Its matches are reused and the new translations are stored back into it.",
                    "examples": [
                      "3e9b7c1d-2a4f-4b6e-8d0c-5f1a2b3c4d5e"
                    ]
                  },
                  "name": {
                    "type": "string",
                    "description": "Name for the DITA map. Defaults to the ZIP file name.",
                    "examples": [
                      "Q4-product-docs"
                    ]
                  },
                  "autoQe": {
                    "type": "boolean",
                    "default": false,
                    "description": "Run a QE report on each language once it is translated. Charged when the report starts, per source word; needs `aiqe:create`.",
                    "examples": [
                      false
                    ]
                  }
                }
              }
            },
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "required": [
                  "sourceLanguage",
                  "targetLanguages",
                  "tmId"
                ],
                "properties": {
                  "uploadKey": {
                    "type": "string",
                    "description": "The `uploadKey` from Get a DITA map upload URL, once the ZIP is in storage. Send it (JSON) instead of `file`."
                  },
                  "file": {
                    "contentMediaType": "application/octet-stream",
                    "description": "The ZIP to translate (`.zip`, up to 500 MB), when it is uploaded with the request (multipart). Folders inside it are kept."
                  },
                  "sourceLanguage": {
                    "type": "string",
                    "description": "Language key of the source text. Use the source language of the translation memory in `tmId`.",
                    "examples": [
                      "english_united_states"
                    ]
                  },
                  "targetLanguages": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Language keys to translate into: repeat the field, or send one value as a comma-separated list or a JSON array. None may equal `sourceLanguage`. Each language is translated, and charged, separately.",
                    "examples": [
                      [
                        "french_france",
                        "german_germany"
                      ]
                    ]
                  },
                  "tmId": {
                    "type": "string",
                    "format": "uuid",
                    "description": "ID of the translation memory to translate with. Its matches are reused and the new translations are stored back into it.",
                    "examples": [
                      "3e9b7c1d-2a4f-4b6e-8d0c-5f1a2b3c4d5e"
                    ]
                  },
                  "name": {
                    "type": "string",
                    "description": "Name for the DITA map. Defaults to the ZIP file name.",
                    "examples": [
                      "Q4-product-docs"
                    ]
                  },
                  "autoQe": {
                    "type": "boolean",
                    "default": false,
                    "description": "Run a QE report on each language once it is translated. Charged when the report starts, per source word; needs `aiqe:create`.",
                    "examples": [
                      false
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The DITA map was stored, its credits charged, and its languages queued.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InitializeDitaMapResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Nothing was created or charged. A field failed validation (for example `At least one target language is required`), or:\n\n- `Invalid file or missing file properties.`: neither `uploadKey` nor a file in `file` was sent.\n- `The upload could not be found. …`, `That upload was already used. …` or `That upload isn't a ZIP file this step takes.`: `uploadKey` can't be used.\n- `Only ZIP files (.zip) are supported.`\n- `Source language cannot be the same as any target language.`\n- `AI proofreading and AI back translation were replaced by the QE report. …`: `aiProofreading` or `aiBackTranslation` was sent; send `autoQe` instead.\n- `No translatable content found in the ZIP file. Make sure it contains XML/DITA/SVG files.`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits for every file in every language, or your organization owes credits. Nothing was created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "`autoQe` was sent by a member without the `aiqe:create` permission (`Auto QE report needs permission to run AI quality evaluations. …`). Nothing was created or charged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "The file is larger than 500 MB (`File too large`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 413,
                      "message": "Payload Too Large"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The ZIP could not be stored (`S3 upload failed.`). Everything charged is refunded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Upload a DITA map",
        "tags": [
          "DITA maps"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.dita_map:create`. An API key acts with the role of the member who created it.\n\n**Credits:** Charged when you upload: the source words of every translatable file, once per target language. A file whose translation fails is refunded when its language finishes; if the map cannot be started at all, everything is refunded. Deleting the map keeps the charge. With `autoQe`, each language's QE report is charged when it starts, once the language is translated, per source word.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| DITA map translation | Initializing + translating a DITA map and its topics. Charged per source word, per target language. | 0.5 credits per word |\n| AI QE report | AI quality evaluation (MQM) report over a translation. Charged per source word. | 4 credits per word |",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/dita-map/upload/presign": {
      "post": {
        "operationId": "get-a-dita-map-upload-url",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateStagedUploadDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Where to upload the ZIP, and its key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StagedUploadTicketDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, the file is empty or over 500 MB, or it is not a `.zip`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The member asked for too many upload URLs in the last hour, or has too many uploads not yet used.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get a DITA map upload URL",
        "tags": [
          "DITA maps"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.dita_map:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "For a DITA map ZIP up to 500 MB. Returns a presigned `uploadUrl`: `PUT` the ZIP to it with exactly `size` bytes and the given `headers`, within 10 minutes. Then send its `uploadKey` to Upload a DITA map (JSON) instead of the file. The file never passes through that request. Charges nothing; an upload not used within a day is deleted.",
        "x-orbitdocs-order": 0,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/dita-map/zip-logs": {
      "get": {
        "description": "Your organization's DITA maps, newest first, each with one entry per target language in `childProcesses`. Each entry has its status, file `progress`, word counts and, once built, the translated ZIP in `metadata.outputUrl`. Paginated with `page` and `size` (up to 100); filter with `search`, `status`, `sourceLanguage`, `targetLanguage` and `createdAt`.",
        "operationId": "list-dita-maps",
        "parameters": [
          {
            "name": "page",
            "required": false,
            "in": "query",
            "description": "Page number, from 1. Defaults to 1.",
            "schema": {
              "type": "number",
              "examples": [
                1
              ]
            }
          },
          {
            "name": "size",
            "required": false,
            "in": "query",
            "description": "DITA maps per page, 1 to 100. Defaults to 8.",
            "schema": {
              "type": "number",
              "examples": [
                20
              ]
            }
          },
          {
            "name": "sort",
            "required": false,
            "in": "query",
            "description": "`<field>_<asc|desc>`, where the field is `date` (upload time), `name` or `format`. Defaults to `date_desc`.",
            "schema": {
              "type": "string",
              "examples": [
                "date_desc"
              ]
            }
          },
          {
            "name": "search",
            "required": false,
            "in": "query",
            "description": "Case-insensitive match on the name of the DITA map.",
            "schema": {
              "type": "string",
              "examples": [
                "product-docs"
              ]
            }
          },
          {
            "name": "status",
            "required": false,
            "in": "query",
            "description": "Only DITA maps whose rolled-up `status` is this.",
            "schema": {
              "enum": [
                "SCHEDULED",
                "RUNNING",
                "COMPLETED",
                "FAILED",
                "TERMINATED"
              ],
              "type": "string"
            }
          },
          {
            "name": "sourceLanguage",
            "required": false,
            "in": "query",
            "description": "Only DITA maps with this source language key.",
            "schema": {
              "type": "string",
              "examples": [
                "english_united_states"
              ]
            }
          },
          {
            "name": "targetLanguage",
            "required": false,
            "in": "query",
            "description": "Only DITA maps with this target language key.",
            "schema": {
              "type": "string",
              "examples": [
                "french_france"
              ]
            }
          },
          {
            "name": "createdAt",
            "required": false,
            "in": "query",
            "description": "Upload-time range as JSON with `gte` and/or `lte` ISO dates. A value that is not valid JSON is ignored.",
            "schema": {
              "type": "string",
              "examples": [
                "{\"gte\":\"2026-10-01T00:00:00Z\",\"lte\":\"2026-10-31T23:59:59Z\"}"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "One page of DITA maps.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DitaMapListResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List DITA maps",
        "tags": [
          "DITA maps"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.dita_map:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/image-creator": {
      "get": {
        "operationId": "list-created-images",
        "parameters": [
          {
            "name": "page",
            "required": false,
            "in": "query",
            "description": "Page number, from 1. Defaults to 1.",
            "schema": {
              "type": "number",
              "examples": [
                1
              ]
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "Images per page, 1 to 100. Defaults to 20.",
            "schema": {
              "type": "number",
              "examples": [
                20
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "One page of created images.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreationListResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Created images"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.image_creator:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "summary": "List created images",
        "description": "Page through your organization's created images, newest first, including edits, failed images and images made in the Universe app. Each row has fresh signed URLs; a failed one has a `failure` that says why.",
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/image-creator/{id}/analyze": {
      "post": {
        "operationId": "detect-image-elements",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the created image, as returned by Generate an image.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "4f2b8c1e-6a3d-4b7e-9c2f-1a2b3c4d5e6f"
              ]
            }
          }
        ],
        "responses": {
          "201": {
            "description": "The elements in the image.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DetectElementsResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No image with this `id` in your organization (`Creation not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. This includes an `id` that is not a UUID: it is not checked before the lookup.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Created images"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.image_creator:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "summary": "Detect image elements",
        "description": "List the text, people and objects in a created image, so you can change one of them with `elementEdits` in Edit a created image. The result is saved with the image: calling again returns the same list without analysing the image again. Free.",
        "x-orbitdocs-order": 4,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/image-creator/{id}/edit": {
      "post": {
        "operationId": "edit-a-created-image",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the created image, as returned by Generate an image.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "4f2b8c1e-6a3d-4b7e-9c2f-1a2b3c4d5e6f"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EditImageDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The edited image, as a new created image.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EditedImageDto"
                }
              }
            }
          },
          "400": {
            "description": "Nothing was charged. A field failed validation, or:\n\n- `Provide instructions, a mask, an annotation, or an element change.`: the body asks for no change.\n- `This creation has no image to edit.`: the image has not been made, or failed.\n- `Could not load the source image.`: the original image could not be read.\n- `Attach up to 4 reference images.`: `referenceImages` and `referenceImageKeys` name more than 4.\n- An upload key is not an upload of this step for your organization (`The upload could not be found. Please try uploading the file again.`), was used already (`That upload was already used. Please upload the file again.`), or its `PUT` did not finish (`The upload did not complete. Please try uploading the file again.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits for one edit, or your organization owes credits. Nothing was created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No image with this `id` in your organization (`Creation not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The edit failed (`Failed to edit image`). Its credits are refunded. Also returned for an `id` that is not a UUID.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Created images"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.image_creator:create`. An API key acts with the role of the member who created it.\n\n**Credits:** One image edit, charged before the edit runs. Refunded in full if the edit fails.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| Image edit | Editing / regenerating a creation with instructions, a mask, and/or annotations. | 300 credits |",
            "position": "after-description"
          }
        ],
        "summary": "Edit a created image",
        "description": "Make a new image from an existing one with your changes. Describe them in `instructions`, pin them to points with `annotations`, limit them to an area with a mask, or change single elements with `elementEdits` (get the elements from Detect image elements). Send at least one of these. Add reference images for a style or content to follow. Send the mask and the reference images as base64 (`maskImageBase64`, `referenceImages`), or put them in storage first with Get an upload URL for an edit and send their keys (`maskImageKey`, `referenceImageKeys`). The original stays as it is; the call waits and returns the new image, with `editedFrom` set to the original.",
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/image-creator/{id}/retry": {
      "post": {
        "operationId": "retry-a-failed-image",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the created image, as returned by Generate an image.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "4f2b8c1e-6a3d-4b7e-9c2f-1a2b3c4d5e6f"
              ]
            }
          },
          {
            "name": "previewId",
            "required": false,
            "in": "query",
            "description": "Optional client-made UUID. While the image is drawn, rough preview frames are pushed to you on the Translate Photo live socket (`translate-photo:preview`) under this id — `<previewId>:<n>` per image when one request makes several. The response is the same either way.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "The new image.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatedImageDto"
                }
              }
            }
          },
          "400": {
            "description": "The image has not failed (`Only a failed generation can be retried.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits for one image, or your organization owes credits. Nothing was retried.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No image with this `id` in your organization (`Generation not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The image is still being made (`This generation is still running — try again in a few minutes.`), or another retry of it is running (`This generation is already being retried.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The retry failed too (`Failed to generate image`). Its credits are refunded and the image stays `FAILED`. Also returned for an `id` that is not a UUID.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Created images"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.image_creator:create`. An API key acts with the role of the member who created it.\n\n**Credits:** A retry is a new image generation, charged before it starts. Refunded in full if it fails too.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| Image generation | Generating one image from a prompt (one-shot or per Quick Create channel). | 300 credits |",
            "position": "after-description"
          }
        ],
        "summary": "Retry a failed image",
        "description": "Make a failed image again with the same prompt and settings. Only an image whose `status` is `FAILED` can be retried (or one stuck in `RUNNING` for more than five minutes). Like Generate an image, the call waits for the new image. It gets a new `id`; once it succeeds, the failed image is removed from your history.",
        "x-orbitdocs-order": 5,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/image-creator/{id}/save-to-drive": {
      "post": {
        "operationId": "save-an-image-to-assets",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the created image, as returned by Generate an image.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "4f2b8c1e-6a3d-4b7e-9c2f-1a2b3c4d5e6f"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveCreationToDriveDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The image was saved as a new asset.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SaveCreationResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Nothing was saved. A field failed validation, or:\n\n- `This creation has no image to save.`: the image has not been made, or failed.\n- `Files can only be saved into folders in the organization drive`: `folderId` is a project or task folder.\n- `\"<name>\" is a system folder — files can't be saved into it`: `folderId` is a folder managed by Universe.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No image with this `id` in your organization (`Creation not found`), `folderId` is not a folder in your organization (`Folder not found`), or the image could not be read (`Could not read the creation’s image.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. This includes an `id` that is not a UUID: it is not checked before the lookup.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Created images"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.image_creator:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "summary": "Save an image to assets",
        "description": "Add a created image to your organization's assets. Without a body it goes into the `image-creator` folder; send `folderId` to choose another folder, or your organization ID for the top level. Each call adds a new asset, named after the prompt and the time; the image's `fk_assetId` points to the latest one.",
        "x-orbitdocs-order": 6,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/image-creator/collections": {
      "get": {
        "operationId": "list-collections",
        "parameters": [],
        "responses": {
          "200": {
            "description": "The collections.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionListResponseDto"
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Image collections"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.image_creator:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "summary": "List collections",
        "description": "List every collection in your organization, newest first, with how many images each holds and a preview of the latest one. Not paginated.",
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "post": {
        "operationId": "create-a-collection",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCollectionDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The new collection.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionSummaryDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Image collections"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.image_creator:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "summary": "Create a collection",
        "description": "Create a named collection to group created images, optionally with images in it straight away. An image can be in several collections; adding it does not move or copy it.",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/image-creator/collections/{id}": {
      "get": {
        "operationId": "get-a-collection",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the collection, as returned by Create a collection.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The collection and its images.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionDetailDto"
                }
              }
            }
          },
          "400": {
            "description": "A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No collection with this `id` in your organization (`Collection not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Image collections"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.image_creator:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "summary": "Get a collection",
        "description": "Get a collection with all its images, most recently added first, each with fresh signed URLs.",
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "put": {
        "operationId": "update-a-collection",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the collection, as returned by Create a collection.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCollectionDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The updated collection.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionSummaryDto"
                }
              }
            }
          },
          "400": {
            "description": "A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No collection with this `id` in your organization (`Collection not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Image collections"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.image_creator:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "summary": "Update a collection",
        "description": "Change the title or description of a collection. Fields you leave out keep their value.",
        "x-orbitdocs-order": 4,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/image-creator/collections/{id}/items": {
      "post": {
        "operationId": "add-images-to-a-collection",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "ID of the collection, as returned by Create a collection.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CollectionItemsDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The images were added.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionItemsAddedDto"
                }
              }
            }
          },
          "400": {
            "description": "A path ID is not a UUID (`Validation failed (uuid is expected)`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No collection with this `id` in your organization (`Collection not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Image collections"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.image_creator:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "summary": "Add images to a collection",
        "description": "Add up to 200 created images to a collection. Images already in it, and IDs not found in your organization, are skipped; `added` says how many were added.",
        "x-orbitdocs-order": 5,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/image-creator/generate": {
      "post": {
        "operationId": "generate-an-image",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateImageDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The image was made.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatedImageDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits for one image, or your organization owes credits. Nothing was created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The image could not be made (`Failed to generate image`), for example because the prompt was blocked by the content safety filter. Its credits are refunded, and the failed image shows in List created images with a `failure` that says why. You can retry it with Retry a failed image.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Created images"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.image_creator:create`. An API key acts with the role of the member who created it.\n\n**Credits:** One image generation, charged before the image is made. Refunded in full if the image cannot be made.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| Image generation | Generating one image from a prompt (one-shot or per Quick Create channel). | 300 credits |",
            "position": "after-description"
          }
        ],
        "summary": "Generate an image",
        "description": "Create one image from a text prompt. The call waits until the image exists, usually 10 to 60 seconds, and returns it with a signed `url` and its storage `key`. Credits are charged before the image is made: without enough, the API returns 402 and nothing is created. The image is kept in your history (List created images) but is not added to your assets until you call Save an image to assets.",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/image-creator/translation-sources": {
      "post": {
        "operationId": "prepare-images-for-translation",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TranslationSourcesDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The images, in the order you sent.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationSourcesResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Created images"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.image_creator:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "summary": "Prepare images for translation",
        "description": "Turn up to 25 created images into sources for image translation: each comes back with its storage `key` (send it as `sourceKey` when you start an image translation), a preview `url` and a file `name`. Images that cannot be translated, because they are deleted, failed, still being made or not in your organization, are listed in `skipped`.",
        "x-orbitdocs-order": 7,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/image-creator/upload/presign": {
      "post": {
        "operationId": "get-an-upload-url-for-an-edit",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ImageCreatorUploadPresignDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Where to `PUT` the file, and the key to send.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StagedUploadTicketDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, or the file is empty (`The file is empty.`), larger than 25 MB (`The picture is larger than the 25 MB limit.`), not a PNG, JPEG or WebP (`That isn't a picture this step takes (.png, .jpg, .jpeg, .webp).`), or a program (`Files of this type (.exe) can't be uploaded.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many uploads: 300 in an hour, or 5 GB waiting to be used, per member (`Too many uploads in the last hour. Please wait and try again.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Created images"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.image_creator:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "summary": "Get an upload URL for an edit",
        "description": "Put a mask or a reference image for Edit a created image in storage instead of sending it as base64. Send the file name, its type and its exact size in bytes: PNG, JPEG or WebP, up to 25 MB. `PUT` the file to the returned `uploadUrl` with exactly the returned `headers` and without your API key, within `expiresInSeconds`. Then send the `uploadKey` as `maskImageKey` or in `referenceImageKeys`. A key can be used once, and an upload not used within a day is deleted. Free.",
        "x-orbitdocs-order": 8,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/image-translator/{id}": {
      "get": {
        "operationId": "get-a-job",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Job ID (`jobId`), returned by Translate an image or Analyze an image.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "e7b9d10a-f259-460b-98c5-4c1efc8f4491"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The job.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetImageJobResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No job with this ID in your organization (`Image translation job <id> not found`). If the key's role only sees its own jobs, a job it did not start and is not assigned to also returns 404 (`Process not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get a job",
        "tags": [
          "Translation jobs"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.image_translator:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "One job: its image, languages, translation memory, project and your own `data`. For the analysis, use Get the analysis; for the rendered images, List translations.",
        "x-orbitdocs-order": 8,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "put": {
        "operationId": "update-a-job",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Job ID (`jobId`), returned by Translate an image or Analyze an image.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "e7b9d10a-f259-460b-98c5-4c1efc8f4491"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateImageJobBodyDoc"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The job was updated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateImageJobResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No job with this ID in your organization (`Image translation job <id> not found`). If the key's role only sees its own jobs, a job it did not start and is not assigned to also returns 404 (`Process not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Update a job",
        "tags": [
          "Translation jobs"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.image_translator:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Rename a job, or replace your own context in `data`. Send only what you want to change.",
        "x-orbitdocs-order": 9,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/image-translator/{id}/annotation-edit": {
      "post": {
        "description": "Change a translation by pointing at the image: each annotation is a point (`x`, `y` in percent) and what to change there. The translation's own image is edited, so its translated text and earlier edits stay, and the result keeps the image's size. The result is a new translation, ready when this call returns. An image of your own to edit (unsaved layers baked in) can go as `file`, or in storage first with Get an upload URL (`kind: canvas`) and be sent as `uploadKey` (JSON body).",
        "operationId": "edit-by-point-annotations",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Job ID (`jobId`), returned by Translate an image or Analyze an image.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "e7b9d10a-f259-460b-98c5-4c1efc8f4491"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/AnnotationEditBodyDoc"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AnnotationEditBodyDoc"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The edit is done: a new translation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EditedTranslationResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "`annotations` is missing, is not valid JSON, or has no point with `feedback` (`At least one annotation (x, y and feedback) is required`). Or `uploadKey` (or `maskKey`) is not an upload of this step for your organization (`The upload could not be found. Please try uploading the file again.`), was used already (`That upload was already used. Please upload the file again.`), or its `PUT` did not finish (`The upload did not complete. Please try uploading the file again.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits, or your organization owes credits. Nothing was started.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No job with this ID in your organization (`Image translation job <id> not found`). If the key's role only sees its own jobs, a job it did not start and is not assigned to also returns 404 (`Process not found`). Also when `translationVersionId` does not exist (`Translation version <id> not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "The multipart `file` is larger than 10 MB (`File too large`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 413,
                      "message": "Payload Too Large"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The edit failed on our side, for example the AI returned no image. The charge is refunded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Edit by point annotations",
        "tags": [
          "AI edits"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.image_translator:create`. An API key acts with the role of the member who created it.\n\n**Credits:** Charged when the request starts. Refunded if the edit fails.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| Element edit | AI edit of a single detected element in a translated image. | 300 credits |",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/image-translator/{id}/area-edit": {
      "post": {
        "description": "Change one area of a translation: send a mask of the area and whether to `remove`, `add` or `replace` what is there. Only the masked pixels change; the rest of the image and its translated text stay as they are. The result is a new translation, ready when this call returns. The mask can go in `areaSelection` as base64, or in storage first with Get an upload URL (`kind: mask`) and be sent as `maskKey` (JSON body); an image of your own to edit, as `file` or as `uploadKey` (`kind: canvas`).",
        "operationId": "edit-a-masked-area",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Job ID (`jobId`), returned by Translate an image or Analyze an image.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "e7b9d10a-f259-460b-98c5-4c1efc8f4491"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/AreaEditBodyDoc"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AreaEditBodyDoc"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The edit is done: a new translation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EditedTranslationResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "`areaSelection` is missing, is not valid JSON, or has no `mask` (or `maskKey`) or `action` (`A valid areaSelection (mask + action) is required`). Or `uploadKey` (or `maskKey`) is not an upload of this step for your organization (`The upload could not be found. Please try uploading the file again.`), was used already (`That upload was already used. Please upload the file again.`), or its `PUT` did not finish (`The upload did not complete. Please try uploading the file again.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits, or your organization owes credits. Nothing was started.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No job with this ID in your organization (`Image translation job <id> not found`). If the key's role only sees its own jobs, a job it did not start and is not assigned to also returns 404 (`Process not found`). Also when `translationVersionId` does not exist (`Translation version <id> not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "The multipart `file` is larger than 10 MB (`File too large`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 413,
                      "message": "Payload Too Large"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The edit failed on our side, for example the AI returned no image. The charge is refunded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Edit a masked area",
        "tags": [
          "AI edits"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.image_translator:create`. An API key acts with the role of the member who created it.\n\n**Credits:** Charged when the request starts. Refunded if the edit fails.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| Brush image edit | Brush / area-select inpaint edit of a translated image, producing a new version. | 300 credits |",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/image-translator/{id}/asset-compose": {
      "post": {
        "operationId": "add-an-image-to-the-design",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Job ID (`jobId`), returned by Translate an image or Analyze an image.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "e7b9d10a-f259-460b-98c5-4c1efc8f4491"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/AssetComposeBodyDoc"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AssetComposeBodyDoc"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The image was added. With `translationVersionId`: a new translation (`translationVersionId`). Without: a new analysis version (`versionId`).",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/EditedTranslationResponseDto"
                    },
                    {
                      "$ref": "#/components/schemas/EditedAnalysisResponseDto"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "`assetUrl` could not be used: it must be a public `https://` address of an image (`The asset image link must be a public https:// address.`). Or `uploadKey` (or `maskKey`) is not an upload of this step for your organization (`The upload could not be found. Please try uploading the file again.`), was used already (`That upload was already used. Please upload the file again.`), or its `PUT` did not finish (`The upload did not complete. Please try uploading the file again.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits, or your organization owes credits. Nothing was started.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No job with this ID in your organization (`Image translation job <id> not found`). If the key's role only sees its own jobs, a job it did not start and is not assigned to also returns 404 (`Process not found`). Also when the job has no analysis version yet (`No version found for this job`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "The multipart `file` is larger than 10 MB (`File too large`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 413,
                      "message": "Payload Too Large"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "It failed on our side; any charge is refunded. A request without `prompt` or `assetUrl` also fails this way (`Prompt is required`, `Asset URL is required`), with nothing charged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Add an image to the design",
        "tags": [
          "AI edits"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.image_translator:create`. An API key acts with the role of the member who created it.\n\n**Credits:** Charged when the request starts. Refunded if it fails.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| Asset compose | Compositing an uploaded asset into the image via the model. | 300 credits |",
            "position": "after-description"
          }
        ],
        "description": "Place another image, such as a logo, badge or product shot, into the design, guided by a prompt. With `translationVersionId`, the result is a new translation, ready when this call returns. Without it, the image goes into the current analysis image: the result is a new analysis version, analyzed again before you translate. To compose into an image of your own instead, send it as `file` (multipart) or as the `uploadKey` from Get an upload URL (`kind: canvas`, JSON body).",
        "x-orbitdocs-order": 4,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/image-translator/{id}/element-edit": {
      "post": {
        "operationId": "edit-elements-with-instructions",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Job ID (`jobId`), returned by Translate an image or Analyze an image.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "e7b9d10a-f259-460b-98c5-4c1efc8f4491"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/ElementEditBodyDoc"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ElementEditBodyDoc"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The edit is done. With `translationVersionId`: a new translation (`translationVersionId`). Without: a new analysis version (`versionId`).",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/EditedTranslationResponseDto"
                    },
                    {
                      "$ref": "#/components/schemas/EditedAnalysisResponseDto"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Nothing was started. `uploadKey` (or `maskKey`) is not an upload of this step for your organization (`The upload could not be found. Please try uploading the file again.`), was used already (`That upload was already used. Please upload the file again.`), or its `PUT` did not finish (`The upload did not complete. Please try uploading the file again.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits, or your organization owes credits. Nothing was started.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No job with this ID in your organization (`Image translation job <id> not found`). If the key's role only sees its own jobs, a job it did not start and is not assigned to also returns 404 (`Process not found`). Also when the job has no analysis version yet (`No version found for this job`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "The multipart `file` is larger than 10 MB (`File too large`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 413,
                      "message": "Payload Too Large"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The edit failed on our side, for example the AI returned no image. The charge is refunded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Edit elements with instructions",
        "tags": [
          "AI edits"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.image_translator:create` and `translate_photo.image_translator:update`. An API key acts with the role of the member who created it.\n\n**Credits:** Charged when the request starts, once per request (also with several `edits`). Refunded if the edit fails.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| Element edit | AI edit of a single detected element in a translated image. | 300 credits |",
            "position": "after-description"
          }
        ],
        "description": "Describe an element and how to change it, such as \"make the red banner dark blue\". Only that element changes, and the text keeps its wording. Send several changes at once in `edits`. With `translationVersionId`, the result is a new translation, ready when this call returns. Without it, the current analysis image is edited: the result is a new analysis version, analyzed again before you translate. To edit an image of your own instead, send it as `file` (multipart) or as the `uploadKey` from Get an upload URL (`kind: canvas`, JSON body).",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/image-translator/{id}/master-prompt": {
      "post": {
        "description": "Apply one change across the whole image of a translation, such as \"change the background to a beach at sunset\". The text stays exactly as it is: this changes the picture, not the translation. The result is a new translation, ready when this call returns. To change an image of your own instead, send it as `file` (multipart) or as the `uploadKey` from Get an upload URL (`kind: canvas`, JSON body).",
        "operationId": "regenerate-with-a-prompt",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Job ID (`jobId`), returned by Translate an image or Analyze an image.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "e7b9d10a-f259-460b-98c5-4c1efc8f4491"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/MasterPromptBodyDoc"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MasterPromptBodyDoc"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The change is done: a new translation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EditedTranslationResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "`prompt` is missing or empty (`A prompt is required`). Or `uploadKey` (or `maskKey`) is not an upload of this step for your organization (`The upload could not be found. Please try uploading the file again.`), was used already (`That upload was already used. Please upload the file again.`), or its `PUT` did not finish (`The upload did not complete. Please try uploading the file again.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits, or your organization owes credits. Nothing was started.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No job with this ID in your organization (`Image translation job <id> not found`). If the key's role only sees its own jobs, a job it did not start and is not assigned to also returns 404 (`Process not found`). Also when `translationVersionId` does not exist (`Translation version <id> not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "The multipart `file` is larger than 10 MB (`File too large`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 413,
                      "message": "Payload Too Large"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The edit failed on our side, for example the AI returned no image. The charge is refunded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Regenerate with a prompt",
        "tags": [
          "AI edits"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.image_translator:create`. An API key acts with the role of the member who created it.\n\n**Credits:** Charged when the request starts. Refunded if the edit fails.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| Master image prompt | Whole-image regenerate from a free-form prompt (e.g. \"change background\"), producing a new version. | 300 credits |",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/image-translator/{id}/project": {
      "patch": {
        "description": "File a job under a project. Pass `projectId: null` to unassign. Only the job moves: files already saved to your assets stay where they are, and later saves follow the new project.",
        "operationId": "move-a-job-to-a-project",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Job ID (`jobId`), returned by Translate an image or Analyze an image.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "e7b9d10a-f259-460b-98c5-4c1efc8f4491"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MoveProcessProjectDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The job was moved.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MoveImageJobResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No job with this ID in your organization (`Image translation job <id> not found`). If the key's role only sees its own jobs, a job it did not start and is not assigned to also returns 404 (`Process not found`). Also when `projectId` is not a project in your organization (`Project not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Move a job to a project",
        "tags": [
          "Translation jobs"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.image_translator:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 10,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/image-translator/{id}/reanalyze": {
      "post": {
        "operationId": "re-run-the-analysis",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Job ID (`jobId`), returned by Translate an image or Analyze an image.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "e7b9d10a-f259-460b-98c5-4c1efc8f4491"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/ReanalyzeBodyDoc"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReanalyzeBodyDoc"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The new analysis version was created and is being analyzed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReanalyzeResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Nothing was started. `uploadKey` (or `maskKey`) is not an upload of this step for your organization (`The upload could not be found. Please try uploading the file again.`), was used already (`That upload was already used. Please upload the file again.`), or its `PUT` did not finish (`The upload did not complete. Please try uploading the file again.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits, or your organization owes credits. Nothing was started.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No job with this ID in your organization (`Image translation job <id> not found`). If the key's role only sees its own jobs, a job it did not start and is not assigned to also returns 404 (`Process not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "The multipart `file` is larger than 64 MB (`File too large`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 413,
                      "message": "Payload Too Large"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Re-run the analysis",
        "tags": [
          "AI edits"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.image_translator:create`. An API key acts with the role of the member who created it.\n\n**Credits:** Charged when it starts: a re-analysis, or an element edit when you send `annotations`, or an area edit when you send `areaSelection`. Refunded if it fails.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| Image re-analysis | Re-running detection / analysis on an existing image job. | 50 credits |\n| Element edit | AI edit of a single detected element in a translated image. | 300 credits |\n| Brush image edit | Brush / area-select inpaint edit of a translated image, producing a new version. | 300 credits |",
            "position": "after-description"
          }
        ],
        "description": "Analyze the job again as a new analysis version, which becomes current. Add a `prompt` to guide it, `annotations` or an `areaSelection` to edit the image first, or a `file` to analyze a different image (multipart, or its `uploadKey` from Get an upload URL with `kind: flattened` in a JSON body; an area edit's mask can be sent the same way, as `maskKey`). Runs in the background: poll Get the analysis, then translate again.",
        "x-orbitdocs-order": 6,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/image-translator/{id}/resize": {
      "post": {
        "description": "Recreate the current analysis image in a new shape, such as `9:16` for stories, keeping its content and text. The result is a new analysis version: it becomes current and is analyzed again, so poll Get the analysis and then translate it.",
        "operationId": "change-the-aspect-ratio",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Job ID (`jobId`), returned by Translate an image or Analyze an image.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "e7b9d10a-f259-460b-98c5-4c1efc8f4491"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResizeImageBodyDoc"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The resized image is a new analysis version, being analyzed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResizeImageResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits, or your organization owes credits. Nothing was started.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No job with this ID in your organization (`Image translation job <id> not found`). If the key's role only sees its own jobs, a job it did not start and is not assigned to also returns 404 (`Process not found`). Also when the job has no analysis version yet (`No version found for this job`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The resize failed on our side, for example the AI returned no image. The charge is refunded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Change the aspect ratio",
        "tags": [
          "AI edits"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.image_translator:create`. An API key acts with the role of the member who created it.\n\n**Credits:** Charged when the request starts. Refunded if it fails. The new analysis is free.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| Image resize | Resizing / re-aspecting a translated image via the model. | 300 credits |",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 5,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/image-translator/{id}/retry": {
      "post": {
        "description": "Re-run what failed: the analysis if it failed, otherwise the newest failed translation of each language. It runs on the same analysis version or translation, so no new version appears. Returns once the work is queued; poll Get the analysis or Get a translation as before.",
        "operationId": "retry-a-failed-job",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Job ID (`jobId`), returned by Translate an image or Analyze an image.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "e7b9d10a-f259-460b-98c5-4c1efc8f4491"
              ]
            }
          }
        ],
        "responses": {
          "201": {
            "description": "The retry is queued.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RetryJobResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Nothing was retried:\n\n- `Nothing to retry — this image translation has not failed.`\n- `This translation can't be retried because it was made without an analysis. Start a new translation of the image instead.`: a job from Translate an image.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits, or your organization owes credits. Nothing was started.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No job with this ID in your organization (`Image translation job <id> not found`). If the key's role only sees its own jobs, a job it did not start and is not assigned to also returns 404 (`Process not found`). Also when there is no finished analysis to render from (`No completed analysis found for this job`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "A retry of this job is already running (`This translation is already being retried.` or `This analysis is already being retried.`). Nothing was charged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 409,
                      "message": "Conflict",
                      "error": "Conflict"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Retry a failed job",
        "tags": [
          "Translation jobs"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.image_translator:create`. An API key acts with the role of the member who created it.\n\n**Credits:** Charged again at the rate of the step being re-run, because the failed run was refunded. Refunded if this run fails too.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| Image analysis | Analyzing an uploaded image — detecting text and building the translation plan. | 50 credits |\n| Image re-analysis | Re-running detection / analysis on an existing image job. | 50 credits |\n| Image translation | Translating the text in an image and rendering the target-language result. | 300 credits |",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 6,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/image-translator/{id}/translate": {
      "post": {
        "description": "Render the translated image from a finished analysis. Send `targetLanguages` to render several languages at once. Change wording with `overrides`, swap logos with `logoReplacements`, and choose the shape with `aspectRatio`. The render runs in the background: poll Get a translation with the `translationVersionId` (one per language, in `translations`). Calling it again for a language makes a new translation of that language.",
        "operationId": "translate-an-analyzed-image",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Job ID (`jobId`), returned by Translate an image or Analyze an image.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "e7b9d10a-f259-460b-98c5-4c1efc8f4491"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TranslateImageBodyDoc"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The render started. Poll Get a translation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslateImageResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, or `targetLanguages` held no language (`Pick at least one target language.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits, or your organization owes credits. Nothing was started.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "`autoQe` was sent by a member without the `aiqe:create` permission (`Auto QE report needs permission to run AI quality evaluations. …`). Nothing was created or charged.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No job with this ID in your organization (`Image translation job <id> not found`). If the key's role only sees its own jobs, a job it did not start and is not assigned to also returns 404 (`Process not found`). Also when the analysis has not finished, or failed (`No completed analysis found for this job`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Translate an analyzed image",
        "tags": [
          "Translation jobs"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.image_translator:create`. An API key acts with the role of the member who created it.\n\n**Credits:** One render per language, charged when it starts; all languages are charged together, or none. Refunded if a render fails. Renders already paid for in fast mode are not charged again. With `autoQe`, each language's QE report is charged when it starts, once that language has rendered, per source word.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| Image translation | Translating the text in an image and rendering the target-language result. | 300 credits |",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 5,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/image-translator/{id}/translations": {
      "get": {
        "operationId": "list-translations",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Job ID (`jobId`), returned by Translate an image or Analyze an image.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "e7b9d10a-f259-460b-98c5-4c1efc8f4491"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The job’s translations.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationVersionListResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No job with this ID in your organization (`Image translation job <id> not found`). If the key's role only sees its own jobs, a job it did not start and is not assigned to also returns 404 (`Process not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List translations",
        "tags": [
          "Translations"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.image_translator:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Every translation of a job, newest first: one per render or AI edit, in any language. A member assigned to review only some languages sees only those.",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/image-translator/{id}/translations/{translationVersionId}": {
      "get": {
        "description": "One translation: its state, its image once rendered, and the source and translated text of every region. Poll it every 5 to 15 seconds after Translate an image or Translate an analyzed image, until `status` is `COMPLETED` or `FAILED`.",
        "operationId": "get-a-translation",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Job ID (`jobId`), returned by Translate an image or Analyze an image.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "e7b9d10a-f259-460b-98c5-4c1efc8f4491"
              ]
            }
          },
          {
            "name": "translationVersionId",
            "required": true,
            "in": "path",
            "description": "Translation ID (`translationVersionId`): one rendered image of the job in one language.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "b2d4f6a8-2345-4bcd-8ef0-123456789abc"
              ]
            }
          },
          {
            "name": "X-Client-Source",
            "required": false,
            "in": "header",
            "schema": {
              "type": "string",
              "enum": [
                "agent"
              ],
              "examples": [
                "agent"
              ]
            },
            "description": "Optional. Send `agent` to get HTTP 200 for every outcome, with errors in the body (`success: false`). Only for AI-agent frameworks that cannot handle other status codes."
          }
        ],
        "responses": {
          "200": {
            "description": "The translation. With `X-Client-Source: agent`, a failed request also answers 200, with the error body.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/TranslationResultResponseDto"
                    },
                    {
                      "$ref": "#/components/schemas/AgentModeErrorDto"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No job with this ID in your organization (`Image translation job <id> not found`). If the key's role only sees its own jobs, a job it did not start and is not assigned to also returns 404 (`Process not found`). Also when the translation is not one of this job’s, or the key’s member may not see its language (`Translation version <translationVersionId> not found for job <id>`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get a translation",
        "tags": [
          "Translations"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.image_translator:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/image-translator/{id}/translations/{translationVersionId}/bulk-region-status": {
      "put": {
        "operationId": "set-the-status-of-several-regions",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Job ID (`jobId`), returned by Translate an image or Analyze an image.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "e7b9d10a-f259-460b-98c5-4c1efc8f4491"
              ]
            }
          },
          {
            "name": "translationVersionId",
            "required": true,
            "in": "path",
            "description": "Translation ID (`translationVersionId`): one rendered image of the job in one language.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "b2d4f6a8-2345-4bcd-8ef0-123456789abc"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkRegionStatusBodyDoc"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The statuses were saved.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RegionsUpdatedResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No job with this ID in your organization (`Image translation job <id> not found`). If the key's role only sees its own jobs, a job it did not start and is not assigned to also returns 404 (`Process not found`). Also when the translation is not one of this job’s (`Translation version <translationVersionId> not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Set the status of several regions",
        "tags": [
          "Translation review"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.image_translator:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Give several text regions of a translation the same status in one call, such as approving every region you checked. Region IDs the translation does not have are skipped.",
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/image-translator/{id}/translations/{translationVersionId}/download": {
      "get": {
        "description": "The translated image file of one finished translation, to store on your side. Each download is recorded in your organization’s audit log.",
        "operationId": "download-a-translation",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Job ID (`jobId`), returned by Translate an image or Analyze an image.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "e7b9d10a-f259-460b-98c5-4c1efc8f4491"
              ]
            }
          },
          {
            "name": "translationVersionId",
            "required": true,
            "in": "path",
            "description": "Translation ID (`translationVersionId`): one rendered image of the job in one language.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "b2d4f6a8-2345-4bcd-8ef0-123456789abc"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The image file. `Content-Disposition` gives its file name; `Content-Type` its format.",
            "content": {
              "image/png": {
                "schema": {}
              },
              "image/jpeg": {
                "schema": {}
              },
              "image/webp": {
                "schema": {}
              }
            }
          },
          "400": {
            "description": "The translation has no image yet: it is still rendering, or it failed (`This version has no translated image`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No job with this ID in your organization (`Image translation job <id> not found`). If the key's role only sees its own jobs, a job it did not start and is not assigned to also returns 404 (`Process not found`). Also when the translation is not one of this job’s (`Translation version not found for this job`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Download a translation",
        "tags": [
          "Translations"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.image_translator:export`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/image-translator/{id}/translations/{translationVersionId}/region-status": {
      "put": {
        "operationId": "set-a-region-s-status",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Job ID (`jobId`), returned by Translate an image or Analyze an image.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "e7b9d10a-f259-460b-98c5-4c1efc8f4491"
              ]
            }
          },
          {
            "name": "translationVersionId",
            "required": true,
            "in": "path",
            "description": "Translation ID (`translationVersionId`): one rendered image of the job in one language.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "b2d4f6a8-2345-4bcd-8ef0-123456789abc"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateRegionStatusBodyDoc"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The status was saved.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RegionUpdatedResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No job with this ID in your organization (`Image translation job <id> not found`). If the key's role only sees its own jobs, a job it did not start and is not assigned to also returns 404 (`Process not found`). Also when the translation is not one of this job’s (`Translation version <translationVersionId> not found`), or it has no region `regionId` (`Region <regionId> not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Set a region's status",
        "tags": [
          "Translation review"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.image_translator:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Mark one text region of a translation as unverified (`u`), verified (`v`) or approved (`a`). The status goes to the translation memory with Sync a translation to the TM.",
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/image-translator/{id}/translations/{translationVersionId}/region-text": {
      "put": {
        "description": "Change the stored translation of one text region. The image is not rendered again: to show the new wording in the image, call Translate an analyzed image with it in `overrides`. To keep it for next time, use Sync a translation to the TM.",
        "operationId": "edit-a-region-s-text",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Job ID (`jobId`), returned by Translate an image or Analyze an image.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "e7b9d10a-f259-460b-98c5-4c1efc8f4491"
              ]
            }
          },
          {
            "name": "translationVersionId",
            "required": true,
            "in": "path",
            "description": "Translation ID (`translationVersionId`): one rendered image of the job in one language.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "b2d4f6a8-2345-4bcd-8ef0-123456789abc"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateRegionTextBodyDoc"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The text was saved.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RegionUpdatedResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No job with this ID in your organization (`Image translation job <id> not found`). If the key's role only sees its own jobs, a job it did not start and is not assigned to also returns 404 (`Process not found`). Also when the translation is not one of this job’s (`Translation version <translationVersionId> not found`), or it has no region `regionId` (`Region <regionId> not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Edit a region's text",
        "tags": [
          "Translation review"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.image_translator:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/image-translator/{id}/translations/{translationVersionId}/sync-from-tm": {
      "put": {
        "description": "The reverse of Sync a translation to the TM: every region the job’s translation memory has a translation for takes the memory’s text and status, even if you changed it. Regions the memory does not know stay as they are. The image is not rendered again.",
        "operationId": "update-a-translation-from-the-tm",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Job ID (`jobId`), returned by Translate an image or Analyze an image.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "e7b9d10a-f259-460b-98c5-4c1efc8f4491"
              ]
            }
          },
          {
            "name": "translationVersionId",
            "required": true,
            "in": "path",
            "description": "Translation ID (`translationVersionId`): one rendered image of the job in one language.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "b2d4f6a8-2345-4bcd-8ef0-123456789abc"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The regions were updated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SyncTranslationFromTmResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "The job has no translation memory (`No translation memory linked to this job`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No job with this ID in your organization (`Image translation job <id> not found`). If the key's role only sees its own jobs, a job it did not start and is not assigned to also returns 404 (`Process not found`). Also when the translation is not one of this job’s (`Translation version <translationVersionId> not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Update a translation from the TM",
        "tags": [
          "Translation review"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.image_translator:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 5,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/image-translator/{id}/translations/{translationVersionId}/sync-to-tm": {
      "put": {
        "description": "Write the text of a translation to the job’s translation memory: every region with both a source and a translation, with its review status. Regions kept in the source language are skipped. The memory then reuses this wording in later translations.",
        "operationId": "sync-a-translation-to-the-tm",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Job ID (`jobId`), returned by Translate an image or Analyze an image.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "e7b9d10a-f259-460b-98c5-4c1efc8f4491"
              ]
            }
          },
          {
            "name": "translationVersionId",
            "required": true,
            "in": "path",
            "description": "Translation ID (`translationVersionId`): one rendered image of the job in one language.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "b2d4f6a8-2345-4bcd-8ef0-123456789abc"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The regions were written. `synced` is 0 when there was nothing to write.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SyncTranslationToTmResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "The job has no translation memory (`No translation memory linked to this job`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No job with this ID in your organization (`Image translation job <id> not found`). If the key's role only sees its own jobs, a job it did not start and is not assigned to also returns 404 (`Process not found`). Also when the translation is not one of this job’s (`Translation version <translationVersionId> not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Sync a translation to the TM",
        "tags": [
          "Translation review"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.image_translator:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 4,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/image-translator/{id}/translations/{translationVersionId}/usage": {
      "get": {
        "description": "The credits one translation has cost, after refunds: its render, and any AI edit that made it.",
        "operationId": "get-a-translation-s-credit-usage",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Job ID (`jobId`), returned by Translate an image or Analyze an image.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "e7b9d10a-f259-460b-98c5-4c1efc8f4491"
              ]
            }
          },
          {
            "name": "translationVersionId",
            "required": true,
            "in": "path",
            "description": "Translation ID (`translationVersionId`): one rendered image of the job in one language.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "b2d4f6a8-2345-4bcd-8ef0-123456789abc"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "What the translation has cost.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VersionUsageResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No job with this ID in your organization (`Image translation job <id> not found`). If the key's role only sees its own jobs, a job it did not start and is not assigned to also returns 404 (`Process not found`). Also when the translation is not one of this job’s (`Version <id> not found for job <jobId>`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get a translation's credit usage",
        "tags": [
          "Translations"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.image_translator:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 5,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/image-translator/{id}/usage": {
      "get": {
        "description": "The credits a job has cost, after refunds, in total and per operation.",
        "operationId": "get-a-job-s-credit-usage",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Job ID (`jobId`), returned by Translate an image or Analyze an image.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "e7b9d10a-f259-460b-98c5-4c1efc8f4491"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "What the job has cost.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobUsageResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No job with this ID in your organization (`Image translation job <id> not found`). If the key's role only sees its own jobs, a job it did not start and is not assigned to also returns 404 (`Process not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get a job's credit usage",
        "tags": [
          "Translation jobs"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.image_translator:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 11,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/image-translator/{id}/versions": {
      "get": {
        "operationId": "list-analysis-versions",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Job ID (`jobId`), returned by Translate an image or Analyze an image.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "e7b9d10a-f259-460b-98c5-4c1efc8f4491"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The job’s analysis versions.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AnalysisVersionListResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No job with this ID in your organization (`Image translation job <id> not found`). If the key's role only sees its own jobs, a job it did not start and is not assigned to also returns 404 (`Process not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List analysis versions",
        "tags": [
          "Analysis versions"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.image_translator:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Every analysis version of a job, newest first, and which one is current. A job gets a new analysis version when you re-run the analysis, resize it, or edit it without a `translationVersionId`.",
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/image-translator/{id}/versions/{versionId}/activate": {
      "put": {
        "operationId": "make-an-analysis-version-current",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Job ID (`jobId`), returned by Translate an image or Analyze an image.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "e7b9d10a-f259-460b-98c5-4c1efc8f4491"
              ]
            }
          },
          {
            "name": "versionId",
            "required": true,
            "in": "path",
            "description": "Analysis version ID (`versionId`), from List analysis versions.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "a1c3e5f7-1234-4abc-9def-0123456789ab"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The version is now current.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActivateAnalysisVersionResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No job with this ID in your organization (`Image translation job <id> not found`). If the key's role only sees its own jobs, a job it did not start and is not assigned to also returns 404 (`Process not found`). Also when the version is not one of this job’s (`Version <versionId> not found for job <id>`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Make an analysis version current",
        "tags": [
          "Analysis versions"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.image_translator:update`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Go back to (or forward to) another analysis version. Get the analysis then returns it, and edits, resizes and re-analyses start from its image. Translations do not follow it: the job’s first translation, and any language already translated, use the newest finished analysis version; a language added later uses the same one as the job’s first translation.",
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/image-translator/{id}/versions/{versionId}/usage": {
      "get": {
        "description": "The credits one analysis version has cost, after refunds: its analysis, or the edit or resize that made it.",
        "operationId": "get-an-analysis-version-s-credit-usage",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Job ID (`jobId`), returned by Translate an image or Analyze an image.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "e7b9d10a-f259-460b-98c5-4c1efc8f4491"
              ]
            }
          },
          {
            "name": "versionId",
            "required": true,
            "in": "path",
            "description": "Analysis version ID (`versionId`), from List analysis versions.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "a1c3e5f7-1234-4abc-9def-0123456789ab"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "What the analysis version has cost.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VersionUsageResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No job with this ID in your organization (`Image translation job <id> not found`). If the key's role only sees its own jobs, a job it did not start and is not assigned to also returns 404 (`Process not found`). Also when the version is not one of this job’s (`Version <id> not found for job <jobId>`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get an analysis version's credit usage",
        "tags": [
          "Analysis versions"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.image_translator:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/image-translator/analyze": {
      "post": {
        "description": "Start a job that you can check before it renders. Send the image as `file` (multipart), as the `uploadKey` of one put in storage with Get an upload URL (`kind: image`, JSON body), or as `sourceUrl` or `sourceKey`. The analysis finds the text and the visual elements and plans the translation, in the background: poll Get the analysis with the `jobId`, then call Translate an analyzed image. With several `targetLanguages`, one analysis serves them all. With `fastMode=true`, every language renders as soon as the analysis finishes, with no further call.",
        "operationId": "analyze-an-image",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/AnalyzeImageBodyDoc"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AnalyzeImageBodyDoc"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The job was created and its analysis started. Poll Get the analysis.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AnalyzeImageResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Nothing was started. A field failed validation (for example, more than 20 `targetLanguages`), or:\n\n- `Provide an image file or a sourceUrl to analyze`: none of `file`, `uploadKey`, `sourceUrl` or `sourceKey` was sent.\n- `The source image link must be a public https:// address.`, or the link could not be fetched or is not an image.\n- `That image does not belong to this org.`: `sourceKey` is not one of your organization’s files.\n- `uploadKey` (or `maskKey`) is not an upload of this step for your organization (`The upload could not be found. Please try uploading the file again.`), was used already (`That upload was already used. Please upload the file again.`), or its `PUT` did not finish (`The upload did not complete. Please try uploading the file again.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits, or your organization owes credits. Nothing was started.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`projectId` is not a project in your organization (`Project not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "The multipart `file` is larger than 10 MB (`File too large`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 413,
                      "message": "Payload Too Large"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Analyze an image",
        "tags": [
          "Translation jobs"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.image_translator:create`. An API key acts with the role of the member who created it.\n\n**Credits:** Charged when the job starts: one analysis, plus one render per target language in fast mode. Refunded if the analysis fails (in fast mode, the renders too).\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| Image analysis | Analyzing an uploaded image — detecting text and building the translation plan. | 50 credits |\n| Image translation | Translating the text in an image and rendering the target-language result. | 300 credits |",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/image-translator/analyze/estimate": {
      "get": {
        "description": "What analyzing a batch of images will cost, before you start it: `images` × `languages`. Returns the credits charged when you start (every analysis, plus every render in fast mode), what the renders you start later will cost, your balance, and whether it covers the start. Nothing is charged. Prices are your organization’s own rates.",
        "operationId": "estimate-credits",
        "parameters": [
          {
            "name": "images",
            "required": true,
            "in": "query",
            "description": "How many images you will analyze: one job each, from 1 to 25.",
            "schema": {
              "minimum": 1,
              "maximum": 25,
              "type": "number",
              "examples": [
                3
              ]
            }
          },
          {
            "name": "languages",
            "required": true,
            "in": "query",
            "description": "How many target languages each image gets, from 1 to 20.",
            "schema": {
              "minimum": 1,
              "maximum": 20,
              "type": "number",
              "examples": [
                2
              ]
            }
          },
          {
            "name": "fastMode",
            "required": false,
            "in": "query",
            "description": "Price fast mode, where every language is rendered right after the analysis, so the renders are charged when you start. `true` or `false` (default).",
            "schema": {
              "type": "boolean",
              "examples": [
                false
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "What the batch will cost, against your balance.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AnalyzeEstimateDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Estimate credits",
        "tags": [
          "Translation jobs"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.image_translator:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/image-translator/assets": {
      "get": {
        "description": "Your organization’s library of overlay images, such as logos, stickers and icons, newest first. Use an asset’s `url` as `assetUrl` in Add an image to the design, or as a logo replacement when you translate.",
        "operationId": "list-library-assets",
        "parameters": [],
        "responses": {
          "200": {
            "description": "The library.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LibraryAssetListResponseDto"
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List library assets",
        "tags": [
          "Overlay assets"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.image_translator:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 1,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      },
      "post": {
        "description": "Add an image to your organization’s library, such as a logo, sticker or icon. It is also saved to your organization’s assets, and every job can use it. Send it as `file` (multipart), or put it in storage first with Get an upload URL (`kind: asset`) and send its `uploadKey` in a JSON body.",
        "operationId": "upload-a-library-asset",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/UploadLibraryAssetBodyDoc"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UploadLibraryAssetBodyDoc"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The image was added to the library.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LibraryAssetResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "`uploadKey` (or `maskKey`) is not an upload of this step for your organization (`The upload could not be found. Please try uploading the file again.`), was used already (`That upload was already used. Please upload the file again.`), or its `PUT` did not finish (`The upload did not complete. Please try uploading the file again.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No `file` or `uploadKey` was sent (`Asset file is required`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "The multipart `file` is larger than 5 MB (`File too large`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 413,
                      "message": "Payload Too Large"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Upload a library asset",
        "tags": [
          "Overlay assets"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.image_translator:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/image-translator/assets/from-drive": {
      "post": {
        "description": "Copy an image that is already in your organization’s assets into the library. The file is copied, so the library asset keeps working if the original is later moved, renamed or deleted.",
        "operationId": "add-a-library-asset-from-your-assets",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CopyDriveAssetBodyDoc"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The image was copied into the library.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LibraryAssetResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`assetId` is not one of your organization’s assets (`Asset not found`), or its file could not be read (`Asset could not be read`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Add a library asset from your assets",
        "tags": [
          "Overlay assets"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.image_translator:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 3,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/image-translator/direct-translate": {
      "post": {
        "description": "The quickest way to translate one image into one language, with no analysis step to check. Send the image as `file` (multipart), or as the `uploadKey` of one put in storage with Get an upload URL (`kind: image`, JSON body); you get a `jobId` and a `translationVersionId` back straight away. Poll Get a translation until `status` is `COMPLETED`, then Download a translation. To translate into several languages, or to check and change the plan first, use Analyze an image instead.",
        "operationId": "translate-an-image",
        "parameters": [
          {
            "name": "X-Client-Source",
            "required": false,
            "in": "header",
            "schema": {
              "type": "string",
              "enum": [
                "agent"
              ],
              "examples": [
                "agent"
              ]
            },
            "description": "Optional. Send `agent` to get HTTP 200 for every outcome, with errors in the body (`success: false`). Only for AI-agent frameworks that cannot handle other status codes."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/DirectTranslateBodyDoc"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DirectTranslateBodyDoc"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Only with `X-Client-Source: agent`: the request failed. `originalStatus` is the status you would have got otherwise.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentModeErrorDto"
                }
              }
            }
          },
          "202": {
            "description": "The job was created and the translation is rendering. Poll Get a translation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DirectTranslateResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Nothing was started. A field failed validation, or `uploadKey` (or `maskKey`) is not an upload of this step for your organization (`The upload could not be found. Please try uploading the file again.`), was used already (`That upload was already used. Please upload the file again.`), or its `PUT` did not finish (`The upload did not complete. Please try uploading the file again.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Not enough credits, or your organization owes credits. Nothing was started.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsufficientCreditsErrorDto"
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "`projectId` is not a project in your organization (`Project not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "The multipart `file` is larger than 10 MB (`File too large`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 413,
                      "message": "Payload Too Large"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side; any charge is refunded. A request without `file` or `uploadKey` also fails this way.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Translate an image",
        "tags": [
          "Translation jobs"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.image_translator:create`. An API key acts with the role of the member who created it.\n\n**Credits:** Charged when the job starts. Refunded if the translation fails.\n\n| Rate | What it covers | Price |\n| --- | --- | --- |\n| Direct image translation | One-shot analyze + translate of an image. | 350 credits |",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 2,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/image-translator/jobs/list": {
      "get": {
        "operationId": "list-jobs",
        "parameters": [
          {
            "name": "page",
            "required": false,
            "in": "query",
            "description": "Page number, from 1.",
            "schema": {
              "default": 1,
              "type": "number",
              "examples": [
                1
              ]
            }
          },
          {
            "name": "size",
            "required": false,
            "in": "query",
            "description": "Jobs per page.",
            "schema": {
              "default": 10,
              "type": "number",
              "examples": [
                10
              ]
            }
          },
          {
            "name": "sort",
            "required": false,
            "in": "query",
            "description": "`date_desc` (newest first, default), `date_asc`, `name_asc` or `name_desc`. The `name` sorts compare the image URL.",
            "schema": {
              "default": "date_desc",
              "type": "string",
              "examples": [
                "date_desc"
              ]
            }
          },
          {
            "name": "search",
            "required": false,
            "in": "query",
            "description": "Text to look for in the job's image URL (case-insensitive). It does not search the job name.",
            "schema": {
              "type": "string",
              "examples": [
                "summer-sale"
              ]
            }
          },
          {
            "name": "status",
            "required": false,
            "in": "query",
            "description": "Only jobs with a translation in this state: `SCHEDULED`, `RUNNING`, `COMPLETED` or `FAILED` (their `translationVersions` then hold only the matching translations); or `ANALYZED`: jobs analysed and not translated yet.",
            "schema": {
              "type": "string",
              "examples": [
                "COMPLETED"
              ]
            }
          },
          {
            "name": "sourceLanguage",
            "required": false,
            "in": "query",
            "description": "Only jobs with this source language key.",
            "schema": {
              "type": "string",
              "examples": [
                "english_united_states"
              ]
            }
          },
          {
            "name": "targetLanguage",
            "required": false,
            "in": "query",
            "description": "Only jobs with a translation in this language key. Their `translationVersions` then hold only translations in it.",
            "schema": {
              "type": "string",
              "examples": [
                "french_france"
              ]
            }
          },
          {
            "name": "createdAt",
            "required": false,
            "in": "query",
            "description": "Only jobs created in this range: JSON with `from` and/or `to` dates. A value that is not valid JSON is ignored.",
            "schema": {
              "type": "string",
              "examples": [
                "{\"from\":\"2026-01-01\",\"to\":\"2026-01-31\"}"
              ]
            }
          },
          {
            "name": "scope",
            "required": false,
            "in": "query",
            "description": "`personal`: only jobs the key's member started or is assigned to. `org` (default): every job in your organization. Always `personal` when the member's role only sees its own work.",
            "schema": {
              "type": "string",
              "enum": [
                "personal",
                "org"
              ],
              "examples": [
                "org"
              ]
            }
          },
          {
            "name": "projectId",
            "required": false,
            "in": "query",
            "description": "Only jobs in this project. `none` for jobs in no project. Leave it out for every job.",
            "schema": {
              "type": "string",
              "examples": [
                "7d1e2f3a-4b5c-4d6e-8f90-a1b2c3d4e5f6"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "One page of jobs, and how many match in all.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListImageTranslationJobsResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "List jobs",
        "tags": [
          "Translation jobs"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.image_translator:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Your organization’s image translation jobs, newest first, a page at a time, each with its translations and analysis versions. Filter by status, language, project or creation date.",
        "x-orbitdocs-order": 7,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/image-translator/result/{jobId}": {
      "get": {
        "operationId": "get-the-analysis",
        "parameters": [
          {
            "name": "jobId",
            "required": true,
            "in": "path",
            "description": "Job ID (`jobId`), returned by Translate an image or Analyze an image.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "e7b9d10a-f259-460b-98c5-4c1efc8f4491"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The current analysis.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AnalysisResultResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: a field failed validation, or a parameter is malformed (for example, an ID that is not a UUID).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No job with this ID in your organization (`Image translation job <id> not found`). If the key's role only sees its own jobs, a job it did not start and is not assigned to also returns 404 (`Process not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get the analysis",
        "tags": [
          "Translation jobs"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.image_translator:read`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "The state of a job’s current analysis and, once `status` is `COMPLETED`, its plan in `data`: every piece of text found (`text_regions`) and the visual elements (`elements`). Poll every 3 to 10 seconds until `status` is `COMPLETED` or `FAILED`. Use region IDs as keys in `overrides`, and the IDs of `logo` elements in `logoReplacements`, when you translate.",
        "x-orbitdocs-order": 4,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/image-translator/upload/presign": {
      "post": {
        "operationId": "get-an-upload-url",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateImageTranslatorUploadDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Where to `PUT` the file, and the key to send.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StagedUploadTicketDto"
                }
              }
            }
          },
          "400": {
            "description": "A field failed validation, or the file is empty (`The file is empty.`), larger than its `kind` takes (`The picture is larger than the 10 MB limit.`), not a type it takes (`That isn't a picture this step takes (.png, .jpg, .jpeg, .webp, .gif).`), or a program (`Files of this type (.exe) can't be uploaded.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Your plan's storage is full (`PlanLimitReached`). Only for a library asset (`kind: asset`), which counts toward your storage.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 402,
                      "message": "Error"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many uploads: 300 in an hour, or 5 GB waiting to be used, per member (`Too many uploads in the last hour. Please wait and try again.`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Get an upload URL",
        "tags": [
          "Translation jobs"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.image_translator:create`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "description": "Step 1 of sending an image without putting it in the request. Send the file name, its type, its exact size in bytes and its `kind` (what it is for). `PUT` the file to the returned `uploadUrl` with exactly the returned `headers` and without your API key, within `expiresInSeconds`. Then send the `uploadKey` to the step it is for, in a JSON body: as `uploadKey` instead of `file`, or as `maskKey` for an area edit's mask. A key can be used once, and an upload not used within a day is deleted.",
        "x-orbitdocs-order": 0,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    },
    "/v1/galaxy/translate-photo/image-translator/versions/{versionId}/save-to-drive": {
      "post": {
        "description": "Save the image of a finished translation as a file in your organization’s assets: in the `image-translator` folder, or the folder you choose. Every call makes a new file. Use the returned `assetId` with the Assets API.",
        "operationId": "save-a-translation-to-assets",
        "parameters": [
          {
            "name": "versionId",
            "required": true,
            "in": "path",
            "description": "Translation ID (`translationVersionId`): one rendered image of the job in one language.",
            "schema": {
              "format": "uuid",
              "type": "string",
              "examples": [
                "b2d4f6a8-2345-4bcd-8ef0-123456789abc"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveToDriveDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The image was saved as a new file in your assets.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SaveTranslationToDriveResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Nothing was saved:\n\n- `This version has no translated image to save`: it is still rendering, or it failed.\n- `Files can only be saved into folders in the organization drive`, or `\"<name>\" is a system folder — files can't be saved into it`: pick another `folderId`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 400,
                      "message": [
                        "email must be an email"
                      ],
                      "error": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The `x-api-key` header is missing, or the key is invalid, expired or deleted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 401,
                      "message": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 403,
                      "message": "Forbidden resource",
                      "error": "Forbidden"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No translation with this ID in your organization (`Translation version <versionId> not found`), or `folderId` is not one of your folders (`Folder not found`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 404,
                      "message": "Not Found"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests for this key. Wait the number of seconds in `Retry-After`, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 429,
                      "message": "ThrottlerException: Too Many Requests"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "default": {
                    "value": {
                      "statusCode": 500,
                      "message": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Save a translation to assets",
        "tags": [
          "Translations"
        ],
        "x-orbitdocs-content": [
          {
            "markdown": "**Permission:** `translate_photo.image_translator:export`. An API key acts with the role of the member who created it.",
            "position": "after-description"
          }
        ],
        "x-orbitdocs-order": 4,
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key",
        "description": "Your organization API key (starts with `uvk_`). Create one in the Universe app under Settings → API keys."
      }
    },
    "schemas": {
      "ActivateAnalysisVersionResponseDto": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "description": "Always `200`.",
            "examples": [
              200
            ]
          },
          "message": {
            "type": "string",
            "description": "What happened, in plain words.",
            "examples": [
              "Switched to version 2"
            ]
          },
          "versionNumber": {
            "type": "number",
            "description": "Number of the version that is now current.",
            "examples": [
              2
            ]
          }
        },
        "required": [
          "statusCode",
          "message",
          "versionNumber"
        ]
      },
      "AgentModeErrorDto": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "description": "Always `200` in agent mode.",
            "examples": [
              200
            ]
          },
          "success": {
            "type": "boolean",
            "description": "Always `false`: the request failed.",
            "examples": [
              false
            ]
          },
          "message": {
            "type": "string",
            "description": "Why it failed.",
            "examples": [
              "Translation version b2d4f6a8-2345-4bcd-8ef0-123456789abc not found for job e7b9d10a-f259-460b-98c5-4c1efc8f4491"
            ]
          },
          "code": {
            "type": "string",
            "description": "The kind of error, such as `NOTFOUND` or `BADREQUEST`.",
            "examples": [
              "NOTFOUND"
            ]
          },
          "originalStatus": {
            "type": "number",
            "description": "The HTTP status the request would have returned otherwise.",
            "examples": [
              404
            ]
          }
        },
        "required": [
          "statusCode",
          "success",
          "message",
          "code",
          "originalStatus"
        ]
      },
      "AgentTaskDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the task.",
            "examples": [
              "e9a1c3b5-7d2f-4e6a-9b8c-0d1e2f3a4b5c"
            ]
          },
          "taskType": {
            "type": "string",
            "enum": [
              "EXTRACT_KNOWLEDGE",
              "REVIEW_VARIANT",
              "EXTRACT_CONTEXT",
              "EXTRACT_TEXT",
              "EXTRACT_SUBJECT",
              "EXTRACT_DESIGN",
              "EXTRACT_ENVIRONMENT",
              "RECONCILE",
              "PLAN_LAYOUT",
              "GENERATE_VARIANT_IMAGE",
              "GENERATE_CLEAN_BACKGROUND",
              "EDIT_INPAINT",
              "REVIEW_TEXT",
              "REVIEW_VISUAL",
              "REVIEW_FIX_LOOP",
              "FIX_VARIANT"
            ],
            "description": "What the task does, such as `EXTRACT_KNOWLEDGE` (design analysis), `PLAN_LAYOUT`, `GENERATE_VARIANT_IMAGE` or `GENERATE_CLEAN_BACKGROUND`.",
            "examples": [
              "EXTRACT_KNOWLEDGE"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "SCHEDULED",
              "RUNNING",
              "COMPLETED",
              "FAILED",
              "TERMINATED"
            ],
            "description": "`SCHEDULED`, `RUNNING`, `COMPLETED`, `FAILED` or `TERMINATED`.",
            "examples": [
              "COMPLETED"
            ]
          },
          "genConfig": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "description": "Model settings the task used, when recorded.",
            "examples": [
              null
            ]
          },
          "inputParams": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "description": "What the task was asked to do.",
            "examples": [
              {
                "source": "api",
                "trigger": "create_design_asset"
              }
            ]
          },
          "agentOutput": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "description": "Raw output of the model, when kept.",
            "examples": [
              null
            ]
          },
          "taskOutput": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "description": "Result of the task. For an analysis: the `designKnowledge` it produced.",
            "examples": [
              {
                "designKnowledge": {
                  "text_elements": []
                }
              }
            ]
          },
          "creditConsumption": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "description": "Tokens the task used.",
            "examples": [
              {
                "totalTokens": 6360
              }
            ]
          },
          "parentTaskId": {
            "type": [
              "object",
              "null"
            ],
            "format": "uuid",
            "description": "Task this one is part of, if any.",
            "examples": [
              null
            ]
          },
          "attempt": {
            "type": "number",
            "description": "Attempt number, from 1.",
            "examples": [
              1
            ]
          },
          "startedAt": {
            "type": [
              "object",
              "null"
            ],
            "format": "date-time",
            "description": "When the task started.",
            "examples": [
              "2026-10-04T09:30:00.000Z"
            ]
          },
          "completedAt": {
            "type": [
              "object",
              "null"
            ],
            "format": "date-time",
            "description": "When the task completed.",
            "examples": [
              "2026-10-04T09:30:00.000Z"
            ]
          },
          "failedAt": {
            "type": [
              "object",
              "null"
            ],
            "format": "date-time",
            "description": "When the task failed.",
            "examples": [
              null
            ]
          },
          "errorCode": {
            "type": [
              "object",
              "null"
            ],
            "description": "Error code when the task failed, such as `EXTRACT_KNOWLEDGE_FAILED`.",
            "examples": [
              null
            ]
          },
          "errorLog": {
            "type": [
              "object",
              "null"
            ],
            "description": "Why the task failed.",
            "examples": [
              null
            ]
          },
          "fk_designAssetId": {
            "type": [
              "object",
              "null"
            ],
            "format": "uuid",
            "description": "Design the task belongs to.",
            "examples": [
              "3f2b8c1d-6e4a-4b7f-9c2d-1a5e8f3b7c90"
            ]
          },
          "fk_designVariantId": {
            "type": [
              "object",
              "null"
            ],
            "format": "uuid",
            "description": "Variant the task belongs to, if any.",
            "examples": [
              null
            ]
          },
          "fk_designVariantVersionId": {
            "type": [
              "object",
              "null"
            ],
            "format": "uuid",
            "description": "Version the task produced, if any.",
            "examples": [
              null
            ]
          },
          "fk_ownerId": {
            "type": "string",
            "format": "uuid",
            "description": "Member who started the task.",
            "examples": [
              "8f7e6d5c-4b3a-4291-8f0e-1d2c3b4a5f6e"
            ]
          },
          "fk_orgId": {
            "type": "string",
            "format": "uuid",
            "description": "Your organization ID.",
            "examples": [
              "1d2e3f4a-5b6c-4d7e-8f9a-0b1c2d3e4f5a"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the task was created.",
            "examples": [
              "2026-10-04T09:30:00.000Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the task last changed.",
            "examples": [
              "2026-10-04T09:30:00.000Z"
            ]
          },
          "deletedAt": {
            "type": [
              "object",
              "null"
            ],
            "format": "date-time",
            "description": "Always `null`.",
            "examples": [
              null
            ]
          }
        },
        "required": [
          "id",
          "taskType",
          "status",
          "genConfig",
          "inputParams",
          "agentOutput",
          "taskOutput",
          "creditConsumption",
          "parentTaskId",
          "attempt",
          "startedAt",
          "completedAt",
          "failedAt",
          "errorCode",
          "errorLog",
          "fk_designAssetId",
          "fk_designVariantId",
          "fk_designVariantVersionId",
          "fk_ownerId",
          "fk_orgId",
          "createdAt",
          "updatedAt",
          "deletedAt"
        ]
      },
      "AnalysisElementDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "ID of the element. Use the ID of a `logo` element as the key in `logoReplacements`.",
            "examples": [
              "el_3"
            ]
          },
          "category": {
            "type": "string",
            "enum": [
              "person",
              "logo",
              "product",
              "background",
              "signage",
              "asset",
              "decoration",
              "ui_element"
            ],
            "description": "What kind of element it is.",
            "examples": [
              "logo"
            ]
          },
          "label": {
            "type": "string",
            "description": "A short name for it.",
            "examples": [
              "Brand logo"
            ]
          },
          "description": {
            "type": "string",
            "description": "A description of it.",
            "examples": [
              "White wordmark in the top-left corner."
            ]
          },
          "bbox_norm": {
            "description": "Where it is: `[x1, y1, x2, y2]` as fractions (0 to 1) of the image width and height, from the top-left corner.",
            "type": "array",
            "items": {
              "type": "number"
            },
            "examples": [
              [
                0.05,
                0.04,
                0.25,
                0.14
              ]
            ]
          },
          "rotation_deg": {
            "type": "number",
            "description": "Clockwise rotation in degrees, 0 to 359.",
            "examples": [
              0
            ]
          },
          "protection": {
            "description": "How freely it may change.",
            "allOf": [
              {
                "$ref": "#/components/schemas/ElementProtectionDto"
              }
            ]
          },
          "visual_properties": {
            "type": "object",
            "additionalProperties": true,
            "description": "Its main colors and style.",
            "examples": [
              {
                "dominant_colors": [
                  "#FFFFFF"
                ],
                "style": "flat"
              }
            ]
          }
        },
        "required": [
          "id",
          "category",
          "label",
          "description",
          "protection"
        ]
      },
      "AnalysisOperationMetaDto": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string",
            "description": "A label for the step that made this version.",
            "examples": [
              "Initial analysis"
            ]
          },
          "type": {
            "type": "string",
            "enum": [
              "analyze",
              "reanalyze",
              "element-edit",
              "asset-compose",
              "resize",
              "finalize",
              "direct-translate"
            ],
            "description": "The step that made this version.",
            "examples": [
              "analyze"
            ]
          },
          "prompt": {
            "type": "string",
            "description": "The prompt, for a re-analysis.",
            "examples": [
              "Treat the price tag as text to translate."
            ]
          },
          "aspectRatio": {
            "type": "string",
            "description": "The aspect ratio, for a resize.",
            "examples": [
              "9:16"
            ]
          }
        },
        "required": [
          "label",
          "type"
        ]
      },
      "AnalysisPlanDto": {
        "type": "object",
        "properties": {
          "schema_version": {
            "type": "string",
            "description": "Version of the plan format.",
            "examples": [
              "1.0"
            ]
          },
          "detected_source_language": {
            "type": [
              "string",
              "null"
            ],
            "description": "The language the analysis found in the image.",
            "examples": [
              "English"
            ]
          },
          "text_regions": {
            "description": "Every piece of text found in the image.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TextRegionDto"
            }
          },
          "elements": {
            "description": "The visual elements found: logos, people, products and so on.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AnalysisElementDto"
            }
          },
          "people_localization": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true
            },
            "description": "People in the image and how they look.",
            "examples": [
              [
                {
                  "element_id": "el_5",
                  "label": "Model",
                  "description": "Woman smiling."
                }
              ]
            ]
          },
          "rebuild_plan": {
            "type": "object",
            "additionalProperties": true,
            "description": "Instructions the renderer uses. The contents may change; do not depend on them.",
            "examples": [
              {
                "preserve_composition": true,
                "preserve_lighting": true
              }
            ]
          },
          "quality_checks": {
            "description": "How confident the analysis is.",
            "allOf": [
              {
                "$ref": "#/components/schemas/QualityChecksDto"
              }
            ]
          }
        },
        "required": [
          "schema_version",
          "text_regions",
          "elements",
          "people_localization",
          "rebuild_plan",
          "quality_checks"
        ]
      },
      "AnalysisResultResponseDto": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "description": "Always `200`.",
            "examples": [
              200
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "SCHEDULED",
              "RUNNING",
              "COMPLETED",
              "FAILED",
              "direct-translate"
            ],
            "description": "`SCHEDULED` or `RUNNING` (keep polling), `COMPLETED` (`data` holds the plan) or `FAILED`. `direct-translate` for a job made with Translate an image, which has no analysis.",
            "examples": [
              "COMPLETED"
            ]
          },
          "message": {
            "type": "string",
            "description": "Only with `direct-translate`: why there is no plan.",
            "examples": [
              "This job was translated directly via API. Open the Review page to see the result."
            ]
          },
          "imageUrl": {
            "type": "string",
            "description": "The image the current analysis version works on. After a resize or an edit, this is the edited image.",
            "examples": [
              "{{STORAGE_BASE_URL}}/3f8b2c1d-9e7a-4b6c-8d5e-1a2b3c4d5e6f/image-translator/compressed/8e2f4a6b.jpg"
            ]
          },
          "originalSourceUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "The original image, which never changes.",
            "examples": [
              "{{STORAGE_BASE_URL}}/3f8b2c1d-9e7a-4b6c-8d5e-1a2b3c4d5e6f/image-translator/uploads/5b7c9d1e.png"
            ]
          },
          "analysisResultUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "URL of the plan as a JSON file. Null until it is ready.",
            "examples": [
              "{{STORAGE_BASE_URL}}/3f8b2c1d-9e7a-4b6c-8d5e-1a2b3c4d5e6f/image-translator/analysis-output/4d6f8a0c.json"
            ]
          },
          "sourceLanguage": {
            "type": [
              "string",
              "null"
            ],
            "description": "Language of the text in the image.",
            "examples": [
              "english_united_states"
            ]
          },
          "targetLanguage": {
            "type": [
              "string",
              "null"
            ],
            "description": "The first (or only) target language.",
            "examples": [
              "french_france"
            ]
          },
          "targetLanguages": {
            "description": "Every target language, when the job was started with several. Null for one.",
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "french_france",
                "hindi_india"
              ]
            ]
          },
          "tmId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The translation memory the job uses. Null without one.",
            "examples": [
              "550e8400-e29b-41d4-a716-446655440000"
            ]
          },
          "data": {
            "description": "The plan: the text found and what to do with it. Null until `status` is `COMPLETED`.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/AnalysisPlanDto"
              }
            ]
          },
          "userEdits": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "description": "Unsaved edits the web editor keeps on this version. Usually null.",
            "examples": [
              null
            ]
          },
          "aspectRatio": {
            "type": [
              "string",
              "null"
            ],
            "description": "Aspect ratio of this version after a resize, such as `9:16`.",
            "examples": [
              null
            ]
          },
          "versionNumber": {
            "type": "number",
            "description": "Number of the current analysis version.",
            "examples": [
              1
            ]
          },
          "versionId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "ID of the current analysis version.",
            "examples": [
              "a1c3e5f7-1234-4abc-9def-0123456789ab"
            ]
          },
          "totalVersions": {
            "type": "number",
            "description": "How many analysis versions the job has.",
            "examples": [
              1
            ]
          },
          "consumed": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "description": "An older per-step tally kept for the web app. It is not what was charged: use Get a job's credit usage.",
            "examples": [
              {
                "totalConsumedInConfigure": 50,
                "totalConsumedInReview": 0
              }
            ]
          },
          "assets": {
            "description": "Images attached to the job in the editor.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/JobAssetDto"
            }
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Name of the job.",
            "examples": [
              "summer-sale"
            ]
          },
          "viewerLanguageRestricted": {
            "type": "boolean",
            "description": "True when the caller is assigned to review only some languages of a job someone else started.",
            "examples": [
              false
            ]
          },
          "source": {
            "type": "string",
            "enum": [
              "translate-photo",
              "hyper-local"
            ],
            "description": "Where the job came from.",
            "examples": [
              "translate-photo"
            ]
          },
          "origin": {
            "type": [
              "object",
              "null"
            ],
            "description": "The picture this job was opened from to edit, when another feature handed it over — `{ kind: \"playground_document_image\", logId, imageId, label? }` for a picture of a Playground document translation. Null otherwise.",
            "examples": [
              null
            ]
          }
        },
        "required": [
          "statusCode",
          "status",
          "imageUrl",
          "originalSourceUrl",
          "analysisResultUrl",
          "sourceLanguage",
          "targetLanguage",
          "targetLanguages",
          "tmId",
          "data",
          "userEdits",
          "aspectRatio",
          "versionNumber",
          "versionId",
          "totalVersions",
          "consumed",
          "assets",
          "name",
          "viewerLanguageRestricted",
          "source",
          "origin"
        ]
      },
      "AnalysisVersionDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the analysis version.",
            "examples": [
              "a1c3e5f7-1234-4abc-9def-0123456789ab"
            ]
          },
          "versionNumber": {
            "type": "number",
            "description": "Its number, from 1.",
            "examples": [
              1
            ]
          },
          "analysisStatus": {
            "type": "string",
            "enum": [
              "SCHEDULED",
              "RUNNING",
              "COMPLETED",
              "FAILED"
            ],
            "description": "State of its analysis. Only a `COMPLETED` version can be translated.",
            "examples": [
              "COMPLETED"
            ]
          },
          "sourceImageUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "The image this version works on.",
            "examples": [
              "{{STORAGE_BASE_URL}}/3f8b2c1d-9e7a-4b6c-8d5e-1a2b3c4d5e6f/image-translator/compressed/8e2f4a6b.jpg"
            ]
          },
          "prompt": {
            "type": [
              "string",
              "null"
            ],
            "description": "The prompt of a re-analysis. Null otherwise.",
            "examples": [
              null
            ]
          },
          "operationMeta": {
            "description": "What made this version.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/AnalysisOperationMetaDto"
              }
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it was created.",
            "examples": [
              "2026-06-12T18:30:00.000Z"
            ]
          }
        },
        "required": [
          "id",
          "versionNumber",
          "analysisStatus",
          "sourceImageUrl",
          "prompt",
          "operationMeta",
          "createdAt"
        ]
      },
      "AnalysisVersionListItemDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the analysis version.",
            "examples": [
              "a1c3e5f7-1234-4abc-9def-0123456789ab"
            ]
          },
          "versionNumber": {
            "type": "number",
            "description": "Its number, from 1.",
            "examples": [
              1
            ]
          },
          "analysisStatus": {
            "type": "string",
            "enum": [
              "SCHEDULED",
              "RUNNING",
              "COMPLETED",
              "FAILED"
            ],
            "description": "State of its analysis.",
            "examples": [
              "COMPLETED"
            ]
          },
          "sourceImageUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "The image it works on.",
            "examples": [
              "{{STORAGE_BASE_URL}}/3f8b2c1d-9e7a-4b6c-8d5e-1a2b3c4d5e6f/image-translator/compressed/8e2f4a6b.jpg"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it was created.",
            "examples": [
              "2026-06-12T18:30:00.000Z"
            ]
          }
        },
        "required": [
          "id",
          "versionNumber",
          "analysisStatus",
          "createdAt"
        ]
      },
      "AnalysisVersionListResponseDto": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "description": "Always `200`.",
            "examples": [
              200
            ]
          },
          "currentVersionId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The current analysis version.",
            "examples": [
              "a1c3e5f7-1234-4abc-9def-0123456789ab"
            ]
          },
          "versions": {
            "description": "Every analysis version of the job, newest first.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AnalysisVersionDto"
            }
          }
        },
        "required": [
          "statusCode",
          "currentVersionId",
          "versions"
        ]
      },
      "AnalyzeEstimateDto": {
        "type": "object",
        "properties": {
          "images": {
            "type": "number",
            "description": "The `images` you asked about.",
            "examples": [
              3
            ]
          },
          "languages": {
            "type": "number",
            "description": "The `languages` you asked about.",
            "examples": [
              2
            ]
          },
          "fastMode": {
            "type": "boolean",
            "description": "Whether this is priced as fast mode.",
            "examples": [
              false
            ]
          },
          "analyzeUnit": {
            "type": "number",
            "description": "Credits for one image analysis, at your organization's rate.",
            "examples": [
              50
            ]
          },
          "translateUnit": {
            "type": "number",
            "description": "Credits for rendering one image in one language.",
            "examples": [
              300
            ]
          },
          "dueNow": {
            "type": "number",
            "description": "Credits charged when you start: every analysis, plus every render in fast mode.",
            "examples": [
              150
            ]
          },
          "dueLater": {
            "type": "number",
            "description": "Credits for the renders you start later with Translate an analyzed image (0 in fast mode).",
            "examples": [
              1800
            ]
          },
          "balance": {
            "type": "number",
            "description": "Credits your organization can spend now.",
            "examples": [
              5000
            ]
          },
          "sufficient": {
            "type": "boolean",
            "description": "Whether `balance` covers `dueNow`.",
            "examples": [
              true
            ]
          }
        },
        "required": [
          "images",
          "languages",
          "fastMode",
          "analyzeUnit",
          "translateUnit",
          "dueNow",
          "dueLater",
          "balance",
          "sufficient"
        ]
      },
      "AnalyzeImageBodyDoc": {
        "type": "object",
        "properties": {
          "file": {
            "contentMediaType": "application/octet-stream",
            "description": "The image to translate, up to 10 MB (multipart). Send this, `uploadKey`, `sourceUrl` or `sourceKey`; when several are sent, `file` wins, then `uploadKey`, then `sourceKey`."
          },
          "uploadKey": {
            "type": "string",
            "description": "Instead of `file`: the `uploadKey` from Get an upload URL (`kind: image`), once the image is in storage. Send it in a JSON body with the other fields."
          },
          "sourceUrl": {
            "type": "string",
            "description": "A public `https://` URL of the image, fetched by the server instead of an upload (up to 64 MB).",
            "examples": [
              "https://example.com/campaign/summer-sale.png"
            ]
          },
          "sourceKey": {
            "type": "string",
            "description": "Storage key of an image your organization already holds, such as an Image Creator result. It must start with your organization's ID.",
            "examples": [
              "3f8b2c1d-9e7a-4b6c-8d5e-1a2b3c4d5e6f/image-creator/output/1a2b3c4d.png"
            ]
          },
          "sourceLanguage": {
            "type": "string",
            "description": "Language of the text in the image. A language key such as `english_united_states`, not an ISO code. With `tmId`, use the languages of that translation memory.",
            "examples": [
              "english_united_states"
            ]
          },
          "targetLanguage": {
            "type": "string",
            "description": "The language to translate into. With several languages, this is the first of `targetLanguages`. A language key such as `english_united_states`, not an ISO code. With `tmId`, use the languages of that translation memory.",
            "examples": [
              "french_france"
            ]
          },
          "targetLanguages": {
            "type": "string",
            "description": "Every language to translate into, comma-separated (up to 20). The first must equal `targetLanguage`. Leave it out for one language.",
            "examples": [
              "french_france,hindi_india"
            ]
          },
          "tmId": {
            "type": "string",
            "description": "Translation memory to use. Its approved translations are reused, and new ones are stored back.",
            "format": "uuid",
            "examples": [
              "550e8400-e29b-41d4-a716-446655440000"
            ]
          },
          "fastMode": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ],
            "description": "Fast mode: `true` renders every target language as soon as the analysis finishes, with no Translate an analyzed image call. Its renders are charged now, with the analysis.",
            "examples": [
              "false"
            ]
          },
          "projectId": {
            "type": "string",
            "description": "Project to file this job under; omit for none. See List projects.",
            "format": "uuid",
            "examples": [
              "7d1e2f3a-4b5c-4d6e-8f90-a1b2c3d4e5f6"
            ]
          },
          "data": {
            "type": "string",
            "description": "Your own context for the job, as a JSON object in a string. It is stored on the job and returned as `data` by Get a job.",
            "examples": [
              "{\"campaign\":\"summer-2026\",\"market\":\"FR\"}"
            ]
          }
        },
        "required": [
          "sourceLanguage",
          "targetLanguage"
        ]
      },
      "AnalyzeImageResponseDto": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "description": "Always `202`: the analysis runs in the background.",
            "examples": [
              202
            ]
          },
          "jobId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the new job. Poll Get the analysis with it.",
            "examples": [
              "e7b9d10a-f259-460b-98c5-4c1efc8f4491"
            ]
          }
        },
        "required": [
          "statusCode",
          "jobId"
        ]
      },
      "AnnotationEditBodyDoc": {
        "type": "object",
        "properties": {
          "translationVersionId": {
            "type": "string",
            "format": "uuid",
            "description": "The translation to edit.",
            "examples": [
              "b2d4f6a8-2345-4bcd-8ef0-123456789abc"
            ]
          },
          "annotations": {
            "type": "string",
            "description": "The point edits to make, as a JSON array in a string (or an array in a JSON body). Each has `x` and `y` (percent from the top-left, 0 to 100) and `feedback` (what to change there).",
            "examples": [
              "[{\"x\":72.5,\"y\":18,\"feedback\":\"Make this text white\"}]"
            ]
          },
          "file": {
            "contentMediaType": "application/octet-stream",
            "description": "Optional. An image to edit instead of the stored one, up to 10 MB (multipart). Or send `uploadKey` instead."
          },
          "uploadKey": {
            "type": "string",
            "description": "Optional, instead of `file`: the `uploadKey` from Get an upload URL (`kind: canvas`) of the image to edit, in a JSON body."
          }
        },
        "required": [
          "translationVersionId",
          "annotations"
        ]
      },
      "ApproveDesignAssetDataDto": {
        "type": "object",
        "properties": {
          "designAssetId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the design.",
            "examples": [
              "3f2b8c1d-6e4a-4b7f-9c2d-1a5e8f3b7c90"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "APPROVED"
            ],
            "description": "Always `APPROVED`.",
            "examples": [
              "APPROVED"
            ]
          }
        },
        "required": [
          "designAssetId",
          "status"
        ]
      },
      "ApproveDesignAssetResponseDto": {
        "type": "object",
        "properties": {
          "data": {
            "description": "The result.",
            "allOf": [
              {
                "$ref": "#/components/schemas/ApproveDesignAssetDataDto"
              }
            ]
          }
        },
        "required": [
          "data"
        ]
      },
      "AreaEditBodyDoc": {
        "type": "object",
        "properties": {
          "translationVersionId": {
            "type": "string",
            "format": "uuid",
            "description": "The translation to edit.",
            "examples": [
              "b2d4f6a8-2345-4bcd-8ef0-123456789abc"
            ]
          },
          "areaSelection": {
            "type": "string",
            "description": "The area and what to do with it, as a JSON object in a string (or an object in a JSON body): `mask` (A base64-encoded PNG, without a `data:` prefix, the same size as the image: white marks the area to change, black the rest. Or leave it out and send the PNG as `maskKey`), `action` (`remove`, `add` or `replace`) and `prompt` (what to put there, in words).",
            "examples": [
              "{\"mask\":\"iVBORw0KGgoAAAANSUhEUgAA…\",\"action\":\"remove\",\"prompt\":\"Remove the price sticker\"}"
            ]
          },
          "maskKey": {
            "type": "string",
            "description": "Instead of `mask` in `areaSelection`: the `uploadKey` from Get an upload URL (`kind: mask`) of the mask PNG."
          },
          "file": {
            "contentMediaType": "application/octet-stream",
            "description": "Optional. An image to edit instead of the stored one, up to 10 MB (multipart). Or send `uploadKey` instead."
          },
          "uploadKey": {
            "type": "string",
            "description": "Optional, instead of `file`: the `uploadKey` from Get an upload URL (`kind: canvas`) of the image to edit, in a JSON body."
          }
        },
        "required": [
          "translationVersionId",
          "areaSelection"
        ]
      },
      "AssetComposeBodyDoc": {
        "type": "object",
        "properties": {
          "assetUrl": {
            "type": "string",
            "description": "Public `https://` URL of the image to add, for example a `url` from List library assets.",
            "examples": [
              "{{STORAGE_BASE_URL}}/3f8b2c1d-9e7a-4b6c-8d5e-1a2b3c4d5e6f/image-translator/library/6f8a0c2e.png"
            ]
          },
          "prompt": {
            "type": "string",
            "description": "Where and how to place it, in words.",
            "examples": [
              "Place the logo in the bottom-right corner, small"
            ]
          },
          "translationVersionId": {
            "type": "string",
            "format": "uuid",
            "description": "Compose into this translation and save a new translation. Leave it out to compose into the current analysis image: that makes a new analysis version, which is analyzed again for free.",
            "examples": [
              "b2d4f6a8-2345-4bcd-8ef0-123456789abc"
            ]
          },
          "file": {
            "contentMediaType": "application/octet-stream",
            "description": "Optional. An image to edit instead of the stored one, up to 10 MB (multipart). Or send `uploadKey` instead."
          },
          "uploadKey": {
            "type": "string",
            "description": "Optional, instead of `file`: the `uploadKey` from Get an upload URL (`kind: canvas`) of the image to edit, in a JSON body."
          }
        },
        "required": [
          "assetUrl",
          "prompt"
        ]
      },
      "BrandKitDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the brand kit.",
            "examples": [
              "6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f"
            ]
          },
          "name": {
            "type": "string",
            "description": "Name of the brand.",
            "examples": [
              "Acme Corporation"
            ]
          },
          "sourceUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "The address the kit was made from, as sent when it was created. It cannot be changed.",
            "examples": [
              "https://www.acme.com"
            ]
          },
          "website": {
            "type": [
              "string",
              "null"
            ],
            "description": "The brand's website. `null` when not set.",
            "examples": [
              "https://www.acme.com"
            ]
          },
          "toneOfVoice": {
            "type": [
              "string",
              "null"
            ],
            "description": "How the brand speaks. `null` when not set.",
            "examples": [
              "Confident, warm, and a little playful."
            ]
          },
          "headingFont": {
            "type": [
              "string",
              "null"
            ],
            "description": "Font for headings. `null` when not set.",
            "examples": [
              "Poppins"
            ]
          },
          "bodyFont": {
            "type": [
              "string",
              "null"
            ],
            "description": "Font for body text. `null` when not set.",
            "examples": [
              "Inter"
            ]
          },
          "primaryColors": {
            "description": "Brand colors as hex codes, main color first. 1 to 5.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "#8143FD",
                "#1A1A1A"
              ]
            ]
          },
          "visualStyles": {
            "description": "Words that describe the visual style. Can be empty.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "minimal",
                "modern"
              ]
            ]
          },
          "logoUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "Signed URL of the logo. It expires, so read the kit again when you need it later. `null` when the kit has no logo.",
            "examples": [
              "{{STORAGE_BASE_URL}}/0c9d8e7f/brand-kit/3e4f5a6b.png?X-Amz-Expires=3600&X-Amz-Signature=…"
            ]
          },
          "fonts": {
            "description": "Font files uploaded to the kit, by role. Empty when none were uploaded. Download one with Download a brand font.",
            "allOf": [
              {
                "$ref": "#/components/schemas/BrandKitFontsDto"
              }
            ],
            "examples": [
              {
                "heading": {
                  "family": "Acme Sans",
                  "format": "woff2"
                }
              }
            ]
          },
          "source": {
            "type": "string",
            "enum": [
              "manual",
              "url_extraction"
            ],
            "description": "How the kit was made. Kits created with Create a brand kit are `manual`, including kits filled in from Extract a brand identity.",
            "examples": [
              "manual"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the kit was created.",
            "examples": [
              "2026-10-01T08:00:00.000Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the kit was last changed.",
            "examples": [
              "2026-10-04T09:30:00.000Z"
            ]
          }
        },
        "required": [
          "id",
          "name",
          "sourceUrl",
          "website",
          "toneOfVoice",
          "headingFont",
          "bodyFont",
          "primaryColors",
          "visualStyles",
          "logoUrl",
          "fonts",
          "source",
          "createdAt",
          "updatedAt"
        ]
      },
      "BrandKitFontDto": {
        "type": "object",
        "properties": {
          "family": {
            "type": "string",
            "description": "The font family. It is also the kit’s `headingFont` or `bodyFont` when it was uploaded.",
            "examples": [
              "Acme Sans"
            ]
          },
          "format": {
            "type": "string",
            "enum": [
              "ttf",
              "otf",
              "woff",
              "woff2"
            ],
            "description": "The format of the role’s main style (the one Download a brand font serves), read from the file itself.",
            "examples": [
              "woff2"
            ]
          },
          "weight": {
            "type": "number",
            "description": "The weight the role uses. Absent for a font uploaded as one file before families.",
            "examples": [
              700
            ]
          },
          "faces": {
            "description": "Every uploaded style of the family. Absent for a font uploaded as one file before families: that file stands for every weight.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BrandKitFontStyleDto"
            }
          }
        },
        "required": [
          "family",
          "format"
        ]
      },
      "BrandKitFontsDto": {
        "type": "object",
        "properties": {
          "heading": {
            "description": "The uploaded heading font. Absent when none was uploaded.",
            "allOf": [
              {
                "$ref": "#/components/schemas/BrandKitFontDto"
              }
            ]
          },
          "body": {
            "description": "The uploaded body font. Absent when none was uploaded.",
            "allOf": [
              {
                "$ref": "#/components/schemas/BrandKitFontDto"
              }
            ]
          }
        }
      },
      "BrandKitFontStyleDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Names the style in Download a brand font style.",
            "examples": [
              "7d0f7a52-5b4c-4d3e-9a51-0e2d6f1c8b33"
            ]
          },
          "weight": {
            "description": "The weight (100–900), or `[min, max]` for a variable font.",
            "oneOf": [
              {
                "type": "number"
              },
              {
                "type": "array",
                "items": {
                  "type": "number"
                },
                "minItems": 2,
                "maxItems": 2
              }
            ],
            "examples": [
              700
            ]
          },
          "style": {
            "type": "string",
            "enum": [
              "normal",
              "italic"
            ],
            "examples": [
              "normal"
            ]
          },
          "stretch": {
            "description": "The width as a CSS `font-stretch` percent (100 = normal, 75 = condensed), or `[min, max]` for a variable font.",
            "oneOf": [
              {
                "type": "number"
              },
              {
                "type": "array",
                "items": {
                  "type": "number"
                },
                "minItems": 2,
                "maxItems": 2
              }
            ],
            "examples": [
              100
            ]
          },
          "format": {
            "type": "string",
            "enum": [
              "ttf",
              "otf",
              "woff",
              "woff2"
            ],
            "examples": [
              "woff2"
            ]
          },
          "name": {
            "type": "string",
            "description": "The style’s own name.",
            "examples": [
              "Bold"
            ]
          }
        },
        "required": [
          "id",
          "weight",
          "style",
          "stretch",
          "format",
          "name"
        ]
      },
      "BrandKitListResponseDto": {
        "type": "object",
        "properties": {
          "count": {
            "type": "number",
            "description": "Number of brand kits that match, across all pages.",
            "examples": [
              3
            ]
          },
          "rows": {
            "description": "This page of brand kits, newest first.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BrandKitDto"
            }
          }
        },
        "required": [
          "count",
          "rows"
        ]
      },
      "BrandKitLogoDto": {
        "type": "object",
        "properties": {
          "mimeType": {
            "type": "string",
            "description": "MIME type of the logo: PNG, JPG or SVG.",
            "enum": [
              "image/png",
              "image/jpeg",
              "image/svg+xml"
            ],
            "examples": [
              "image/png"
            ]
          },
          "data": {
            "type": "string",
            "description": "The logo file, base64-encoded, without a `data:` prefix. Up to 2 MB before encoding.",
            "examples": [
              "iVBORw0KGgoAAAANSUhEUgAA…"
            ]
          }
        },
        "required": [
          "mimeType",
          "data"
        ]
      },
      "BrandKitUploadPresignDto": {
        "type": "object",
        "properties": {
          "fileName": {
            "type": "string",
            "description": "Name of the file you will upload. Its extension must be one this step takes.",
            "examples": [
              "catalogue.csv"
            ]
          },
          "contentType": {
            "type": "string",
            "description": "The file's type, sent again as the `Content-Type` of the `PUT` (the URL is signed over it). `application/octet-stream` is accepted when the type is unknown.",
            "examples": [
              "text/csv"
            ]
          },
          "size": {
            "type": "number",
            "description": "Exact size of the file in bytes. It is part of the signed URL: storage refuses a `PUT` of any other length.",
            "examples": [
              524288
            ]
          },
          "kind": {
            "type": "string",
            "enum": [
              "logo",
              "font",
              "image",
              "pdf"
            ],
            "description": "What the file is for. `logo`: a PNG, JPG or SVG logo up to 2 MB, sent as `logoUploadKey`. `font`: a TTF, OTF, WOFF or WOFF2 font up to 5 MB, or a ZIP of them up to 40 MB, sent in `uploadKeys` (one URL per file). `image` (PNG, JPG, WebP, HEIC or HEIF) or `pdf`: a source for Extract a brand identity, sent as `imageUploadKeys` or `pdfUploadKey`, up to 15 MB in all.",
            "examples": [
              "logo"
            ]
          }
        },
        "required": [
          "fileName",
          "contentType",
          "size",
          "kind"
        ]
      },
      "BulkRegionStatusBodyDoc": {
        "type": "object",
        "properties": {
          "regionIds": {
            "description": "The regions to change: keys of `translationData`. Unknown IDs are skipped.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "tr_1",
                "tr_3"
              ]
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "u",
              "v",
              "a"
            ],
            "description": "The new review status: `u` unverified, `v` verified, `a` approved (`a` is used when your organization has a three-step review).",
            "examples": [
              "v"
            ]
          }
        },
        "required": [
          "regionIds",
          "status"
        ]
      },
      "CheckDesignUploadDto": {
        "type": "object",
        "properties": {
          "designAssetId": {
            "type": "string",
            "description": "The `designAssetId` from Get a design upload URL.",
            "examples": [
              "3f2b8c1d-6e4a-4b7f-9c2d-1a5e8f3b7c90"
            ]
          },
          "objectKey": {
            "type": "string",
            "description": "The `objectKey` from Get a design upload URL, for that `designAssetId`.",
            "examples": [
              "1d2e3f4a-5b6c-4d7e-8f9a-0b1c2d3e4f5a/adapt/3f2b8c1d-6e4a-4b7f-9c2d-1a5e8f3b7c90/incoming/summer-sale.png"
            ]
          }
        },
        "required": [
          "designAssetId",
          "objectKey"
        ]
      },
      "CleanBackgroundDataDto": {
        "type": "object",
        "properties": {
          "designAssetId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the design.",
            "examples": [
              "3f2b8c1d-6e4a-4b7f-9c2d-1a5e8f3b7c90"
            ]
          },
          "cleanBackgroundUrl": {
            "type": "string",
            "description": "URL of the background without text or subjects. Also stored as `analysisMeta.cleanBackgroundUrl`.",
            "examples": [
              "{{CDN_BASE_URL}}/1d2e3f4a-5b6c-4d7e-8f9a-0b1c2d3e4f5a/adapt/3f2b8c1d-6e4a-4b7f-9c2d-1a5e8f3b7c90/clean-background/clean-1759572000000.jpg"
            ]
          }
        },
        "required": [
          "designAssetId",
          "cleanBackgroundUrl"
        ]
      },
      "CleanBackgroundResponseDto": {
        "type": "object",
        "properties": {
          "data": {
            "description": "The result.",
            "allOf": [
              {
                "$ref": "#/components/schemas/CleanBackgroundDataDto"
              }
            ]
          }
        },
        "required": [
          "data"
        ]
      },
      "CollectionDetailDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the collection.",
            "examples": [
              "5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d"
            ]
          },
          "title": {
            "type": "string",
            "description": "Title of the collection.",
            "examples": [
              "Diwali campaign"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Description of the collection. `null` when it has none.",
            "examples": [
              "Hero images for the October social posts."
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the collection was created.",
            "examples": [
              "2026-10-01T08:00:00.000Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the collection was last changed.",
            "examples": [
              "2026-10-04T09:30:00.000Z"
            ]
          },
          "itemCount": {
            "type": "number",
            "description": "Number of images in `images`.",
            "examples": [
              12
            ]
          },
          "images": {
            "description": "The images in the collection, most recently added first. Deleted images are left out.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CreationRecordDto"
            }
          }
        },
        "required": [
          "id",
          "title",
          "description",
          "createdAt",
          "updatedAt",
          "itemCount",
          "images"
        ]
      },
      "CollectionItemsAddedDto": {
        "type": "object",
        "properties": {
          "added": {
            "type": "number",
            "description": "Number of images added. Images already in the collection, and IDs not found in your organization, are skipped.",
            "examples": [
              3
            ]
          }
        },
        "required": [
          "added"
        ]
      },
      "CollectionItemsDto": {
        "type": "object",
        "properties": {
          "generationIds": {
            "description": "IDs of created images to add. 1 to 200. Images already in the collection, and IDs not found in your organization, are skipped.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "4f2b8c1e-6a3d-4b7e-9c2f-1a2b3c4d5e6f"
              ]
            ]
          }
        },
        "required": [
          "generationIds"
        ]
      },
      "CollectionListItemDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the collection.",
            "examples": [
              "5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d"
            ]
          },
          "title": {
            "type": "string",
            "description": "Title of the collection.",
            "examples": [
              "Diwali campaign"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Description of the collection. `null` when it has none.",
            "examples": [
              "Hero images for the October social posts."
            ]
          },
          "itemCount": {
            "type": "number",
            "description": "Number of images in the collection. List collections counts only images that still exist; Create a collection and Update a collection also count images deleted since they were added.",
            "examples": [
              12
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the collection was created.",
            "examples": [
              "2026-10-01T08:00:00.000Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the collection was last changed.",
            "examples": [
              "2026-10-04T09:30:00.000Z"
            ]
          },
          "coverImageUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "Signed URL of a preview of the most recently added image. `null` for an empty collection.",
            "examples": [
              "{{STORAGE_BASE_URL}}/0c9d8e7f/image-creator/7d1e2f3a.png?X-Amz-Expires=3600&X-Amz-Signature=…"
            ]
          }
        },
        "required": [
          "id",
          "title",
          "description",
          "itemCount",
          "createdAt",
          "updatedAt",
          "coverImageUrl"
        ]
      },
      "CollectionListResponseDto": {
        "type": "object",
        "properties": {
          "rows": {
            "description": "Every collection in your organization, newest first.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CollectionListItemDto"
            }
          }
        },
        "required": [
          "rows"
        ]
      },
      "CollectionSummaryDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the collection.",
            "examples": [
              "5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d"
            ]
          },
          "title": {
            "type": "string",
            "description": "Title of the collection.",
            "examples": [
              "Diwali campaign"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Description of the collection. `null` when it has none.",
            "examples": [
              "Hero images for the October social posts."
            ]
          },
          "itemCount": {
            "type": "number",
            "description": "Number of images in the collection. List collections counts only images that still exist; Create a collection and Update a collection also count images deleted since they were added.",
            "examples": [
              12
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the collection was created.",
            "examples": [
              "2026-10-01T08:00:00.000Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the collection was last changed.",
            "examples": [
              "2026-10-04T09:30:00.000Z"
            ]
          }
        },
        "required": [
          "id",
          "title",
          "description",
          "itemCount",
          "createdAt",
          "updatedAt"
        ]
      },
      "CopyDriveAssetBodyDoc": {
        "type": "object",
        "properties": {
          "assetId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of an image in your organization’s assets (see the Assets API). Its file is copied, so the library keeps working if the asset is later moved or deleted.",
            "examples": [
              "8b9c0d1e-2f3a-4b5c-9d6e-7f8091a2b3c4"
            ]
          }
        },
        "required": [
          "assetId"
        ]
      },
      "CreateBrandKitDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the brand. Up to 160 characters.",
            "examples": [
              "Acme Corporation"
            ]
          },
          "sourceUrl": {
            "type": "string",
            "description": "The address the kit is based on, such as the website you extracted it from. Required; it cannot be changed later.",
            "examples": [
              "https://www.acme.com"
            ]
          },
          "website": {
            "type": "string",
            "description": "The brand's website.",
            "examples": [
              "https://www.acme.com"
            ]
          },
          "toneOfVoice": {
            "type": "string",
            "description": "How the brand speaks. Up to 10,000 characters.",
            "examples": [
              "Confident, warm, and a little playful."
            ]
          },
          "headingFont": {
            "type": "string",
            "description": "Font for headings.",
            "examples": [
              "Poppins"
            ]
          },
          "bodyFont": {
            "type": "string",
            "description": "Font for body text.",
            "examples": [
              "Inter"
            ]
          },
          "primaryColors": {
            "description": "Brand colors as hex codes, main color first. 1 to 5.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "#8143FD",
                "#1A1A1A"
              ]
            ]
          },
          "visualStyles": {
            "description": "Words that describe the visual style. Up to 20, each up to 60 characters.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "minimal",
                "modern"
              ]
            ]
          },
          "logo": {
            "description": "The logo, base64. If it cannot be stored, the kit is still created, without a logo, and `logoError` in the response says why. Prefer `logoUploadKey`.",
            "allOf": [
              {
                "$ref": "#/components/schemas/BrandKitLogoDto"
              }
            ]
          },
          "logoUploadKey": {
            "type": "string",
            "description": "The logo, put in storage first: the `uploadKey` from Get an upload URL (`kind: logo`), once the `PUT` has finished. The file then never passes through this API. Used instead of `logo` when both are sent.",
            "examples": [
              "1f0c…/staged-uploads/7b9e….png"
            ]
          }
        },
        "required": [
          "name",
          "sourceUrl",
          "primaryColors"
        ]
      },
      "CreateCollectionDto": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "Title of the collection. Up to 200 characters.",
            "examples": [
              "Diwali campaign"
            ]
          },
          "description": {
            "type": "string",
            "description": "What the collection is for. Up to 2000 characters.",
            "examples": [
              "Hero images for the October social posts."
            ]
          },
          "generationIds": {
            "description": "IDs of created images to add straight away. Up to 200. IDs not found in your organization are skipped.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "4f2b8c1e-6a3d-4b7e-9c2f-1a2b3c4d5e6f"
              ]
            ]
          }
        },
        "required": [
          "title"
        ]
      },
      "CreateDesignAssetDto": {
        "type": "object",
        "properties": {
          "designAssetId": {
            "type": "string",
            "description": "The `designAssetId` from Get an upload URL. Any new UUID v4 works when you send `sourceKey` instead.",
            "examples": [
              "3f2b8c1d-6e4a-4b7f-9c2d-1a5e8f3b7c90"
            ]
          },
          "name": {
            "type": "string",
            "description": "Display name of the design.",
            "examples": [
              "Summer sale banner"
            ]
          },
          "objectKey": {
            "type": "string",
            "description": "The `objectKey` from Get an upload URL. Required unless you send `sourceKey`.",
            "examples": [
              "1d2e3f4a-5b6c-4d7e-8f9a-0b1c2d3e4f5a/adapt/3f2b8c1d-6e4a-4b7f-9c2d-1a5e8f3b7c90/incoming/summer-sale.png"
            ]
          },
          "objectUrl": {
            "type": "string",
            "description": "The `objectUrl` from Get an upload URL. Optional: the image is read from `objectKey`, and its URL is worked out by Vitra.",
            "examples": [
              "{{CDN_BASE_URL}}/1d2e3f4a-5b6c-4d7e-8f9a-0b1c2d3e4f5a/adapt/3f2b8c1d-6e4a-4b7f-9c2d-1a5e8f3b7c90/incoming/summer-sale.png"
            ]
          },
          "sourceKey": {
            "type": "string",
            "description": "Storage key of an image your organization already has, such as a created image, to use instead of an upload. Leave out `objectKey` and `objectUrl` when you send it. The key must belong to your organization.",
            "examples": [
              "1d2e3f4a-5b6c-4d7e-8f9a-0b1c2d3e4f5a/image-creator/0b1c2d3e-4f5a-4b6c-8d7e-9f0a1b2c3d4e.png"
            ]
          },
          "tier": {
            "type": "string",
            "enum": [
              "FLASH",
              "PRO"
            ],
            "default": "PRO",
            "description": "`PRO` analyzes the design (charged), then plans each variant for you to approve, and offers QA review. `FLASH` skips analysis: the design is approved at once and variants are rendered straight away.",
            "examples": [
              "PRO"
            ]
          },
          "language": {
            "type": "string",
            "description": "Language of the text in the design. Stored as sent and copied to each variant.",
            "examples": [
              "english_united_states"
            ]
          },
          "sourceImageMeta": {
            "type": "object",
            "description": "Facts about the image you want stored with it, such as its width, height and type. Stored as sent in `sourceImageMeta`.",
            "examples": [
              {
                "width": 1200,
                "height": 628,
                "mime": "image/png"
              }
            ]
          },
          "projectId": {
            "type": "string",
            "description": "Project to file this design under; omit for none. See List projects. Projects only organize work here: filing never changes who can see the design.",
            "format": "uuid",
            "examples": [
              "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f"
            ]
          }
        },
        "required": [
          "designAssetId",
          "name"
        ]
      },
      "CreateDesignAssetResponseDto": {
        "type": "object",
        "properties": {
          "designAssetId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the new design.",
            "examples": [
              "3f2b8c1d-6e4a-4b7f-9c2d-1a5e8f3b7c90"
            ]
          },
          "taskId": {
            "type": [
              "object",
              "null"
            ],
            "format": "uuid",
            "description": "ID of the analysis task (Pro). `null` for Flash, which runs no analysis. Read it with Get a task.",
            "examples": [
              "e9a1c3b5-7d2f-4e6a-9b8c-0d1e2f3a4b5c"
            ]
          },
          "taskStatus": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "COMPLETED",
              "FAILED"
            ],
            "description": "Result of the analysis, which runs before the response is sent: `COMPLETED` or `FAILED`. `null` for Flash.",
            "examples": [
              "COMPLETED"
            ]
          },
          "assetStatus": {
            "type": "string",
            "enum": [
              "CREATED",
              "PROCESSED",
              "APPROVED"
            ],
            "description": "Status of the design: `APPROVED` for Flash, `PROCESSED` after a successful Pro analysis, `CREATED` if the analysis failed.",
            "examples": [
              "PROCESSED"
            ]
          }
        },
        "required": [
          "designAssetId",
          "taskId",
          "taskStatus",
          "assetStatus"
        ]
      },
      "CreateDesignCleanBackgroundDto": {
        "type": "object",
        "properties": {
          "useDynamicMask": {
            "type": "boolean",
            "default": false,
            "description": "Mask only the areas of the elements the analysis found, instead of the default mask.",
            "examples": [
              false
            ]
          }
        }
      },
      "CreateDesignElementDto": {
        "type": "object",
        "properties": {
          "category": {
            "type": "string",
            "description": "Kind of element, in your own words, such as `text`, `logo` or `photo`.",
            "examples": [
              "logo"
            ]
          },
          "source": {
            "type": "string",
            "enum": [
              "EXTRACTED",
              "UPLOADED",
              "GENERATED"
            ],
            "description": "Where the element came from. Use `UPLOADED` for your own files. Not checked against the list.",
            "examples": [
              "UPLOADED"
            ]
          },
          "status": {
            "type": "string",
            "description": "`ACTIVE` (the default) or `ARCHIVED`.",
            "examples": [
              "ACTIVE"
            ]
          },
          "fk_designVariantId": {
            "type": "string",
            "description": "Limit the element to one variant of the design. Leave it out for the whole design.",
            "examples": [
              "7c1e4a9b-2d3f-4e5a-8b6c-9d0e1f2a3b4c"
            ]
          },
          "assetUrl": {
            "type": "string",
            "description": "URL of the element image, if it has one.",
            "examples": [
              "https://cdn.example.com/brand/logo.png"
            ]
          },
          "bbox": {
            "type": "object",
            "description": "Where the element is on the design, in 0–1 fractions.",
            "examples": [
              {
                "x": 0.05,
                "y": 0.05,
                "width": 0.2,
                "height": 0.1
              }
            ]
          },
          "mask": {
            "type": "object",
            "description": "Shape mask of the element, in any form you like.",
            "examples": [
              {
                "type": "polygon",
                "points": [
                  [
                    0.05,
                    0.05
                  ],
                  [
                    0.25,
                    0.05
                  ],
                  [
                    0.25,
                    0.15
                  ]
                ]
              }
            ]
          },
          "metadata": {
            "type": "object",
            "description": "Any extra data to store with the element.",
            "examples": [
              {
                "uploadedBy": "brand-team"
              }
            ]
          },
          "payload": {
            "type": "object",
            "description": "Data that depends on the category, such as the text or a colour palette.",
            "examples": [
              {
                "label": "Primary logo"
              }
            ]
          }
        },
        "required": [
          "category",
          "source"
        ]
      },
      "CreateDesignUploadPresignDto": {
        "type": "object",
        "properties": {
          "fileName": {
            "type": "string",
            "description": "File name of the image. Characters other than letters, digits, `.`, `_` and `-` become `_`.",
            "examples": [
              "summer-sale.png"
            ]
          },
          "contentType": {
            "type": "string",
            "enum": [
              "image/jpeg",
              "image/png",
              "image/webp"
            ],
            "description": "Type of the image. Send the same value as `Content-Type` with the `PUT`.",
            "examples": [
              "image/png"
            ]
          },
          "size": {
            "type": "number",
            "description": "Size of the image in bytes, up to 25 MB. When sent, the upload URL accepts exactly this many bytes; send the same value as `Content-Length` with the `PUT`.",
            "examples": [
              482133
            ]
          },
          "name": {
            "type": "string",
            "description": "Not used: the name of the design is the `name` you send to Create a design.",
            "examples": [
              "Summer sale banner"
            ]
          }
        },
        "required": [
          "fileName",
          "contentType"
        ]
      },
      "CreateDesignVariantsDto": {
        "type": "object",
        "properties": {
          "variants": {
            "description": "The formats to create, one variant each. At least one.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DesignVariantInputDto"
            }
          },
          "modelConfig": {
            "description": "Model overrides for every variant in the request. Usually left out.",
            "allOf": [
              {
                "$ref": "#/components/schemas/ModelConfigDto"
              }
            ]
          }
        },
        "required": [
          "variants"
        ]
      },
      "CreatedImageDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the new created image.",
            "examples": [
              "4f2b8c1e-6a3d-4b7e-9c2f-1a2b3c4d5e6f"
            ]
          },
          "prompt": {
            "type": "string",
            "description": "The prompt the image was made from. For an edit, the full instruction it ran with: your instructions, annotations and element changes composed into one.",
            "examples": [
              "A minimalist sale banner with a red gift box, festive vibe"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "COMPLETED"
            ],
            "description": "Always `COMPLETED`: the call returns once the image exists.",
            "examples": [
              "COMPLETED"
            ]
          },
          "channel": {
            "type": [
              "string",
              "null"
            ],
            "description": "Output channel the image was made for. `null` for an image generated from a prompt.",
            "examples": [
              null
            ]
          },
          "aspectRatio": {
            "type": [
              "string",
              "null"
            ],
            "description": "Aspect ratio the image was rendered at, such as `1:1`. `null` when none was set, and always for an edit.",
            "examples": [
              null
            ]
          },
          "assetId": {
            "type": [
              "string",
              "null"
            ],
            "description": "Always `null`: a new image is not in your assets until you call Save an image to assets.",
            "examples": [
              null
            ]
          },
          "savedToDrive": {
            "type": "boolean",
            "description": "Always `false` for a new image.",
            "examples": [
              false
            ]
          },
          "key": {
            "type": "string",
            "description": "Storage key of the image in your organization's storage. Pass it as `sourceKey` to translate the image.",
            "examples": [
              "0c9d8e7f-6a5b-4c3d-8e2f-1a0b9c8d7e6f/image-creator/7d1e2f3a-4b5c-4d6e-8f9a-0b1c2d3e4f5a.png"
            ]
          },
          "url": {
            "type": "string",
            "description": "Signed URL to download the image. It expires, so fetch a fresh one with List created images when you need it later.",
            "examples": [
              "{{STORAGE_BASE_URL}}/0c9d8e7f/image-creator/7d1e2f3a.png?X-Amz-Expires=3600&X-Amz-Signature=…"
            ]
          },
          "mimeType": {
            "type": "string",
            "description": "MIME type of the image.",
            "examples": [
              "image/png"
            ]
          },
          "size": {
            "type": "number",
            "description": "Size of the image in bytes.",
            "examples": [
              1482113
            ]
          }
        },
        "required": [
          "id",
          "prompt",
          "status",
          "channel",
          "aspectRatio",
          "assetId",
          "savedToDrive",
          "key",
          "url",
          "mimeType",
          "size"
        ]
      },
      "CreatedVariantDto": {
        "type": "object",
        "properties": {
          "variantId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the new variant. Poll it with Get a variant.",
            "examples": [
              "7c1e4a9b-2d3f-4e5a-8b6c-9d0e1f2a3b4c"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "GENERATING",
              "PLAN_PENDING",
              "PLAN_APPROVED"
            ],
            "description": "Starting status: `GENERATING` (Flash), `PLAN_PENDING` (Pro; the plan is being made) or `PLAN_APPROVED` (`targetConfig.generateBackgroundFirst`).",
            "examples": [
              "PLAN_PENDING"
            ]
          },
          "layoutPlan": {
            "description": "`null` for Pro (the plan arrives on the variant later); a placeholder plan for Flash.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/LayoutPlanDto"
              }
            ]
          }
        },
        "required": [
          "variantId",
          "status",
          "layoutPlan"
        ]
      },
      "CreateImageTranslatorUploadDto": {
        "type": "object",
        "properties": {
          "fileName": {
            "type": "string",
            "description": "Name of the file you will upload. Its extension must be one this step takes.",
            "examples": [
              "catalogue.csv"
            ]
          },
          "contentType": {
            "type": "string",
            "description": "The file's type, sent again as the `Content-Type` of the `PUT` (the URL is signed over it). `application/octet-stream` is accepted when the type is unknown.",
            "examples": [
              "text/csv"
            ]
          },
          "size": {
            "type": "number",
            "description": "Exact size of the file in bytes. It is part of the signed URL: storage refuses a `PUT` of any other length.",
            "examples": [
              524288
            ]
          },
          "kind": {
            "type": "string",
            "enum": [
              "image",
              "canvas",
              "flattened",
              "mask",
              "asset"
            ],
            "description": "What the file is for. `image`: the picture to translate (Analyze an image, Translate an image), up to 10 MB. `canvas`: the image an AI edit starts from (Edit elements with instructions, Edit a masked area, Regenerate with a prompt, Add an image to the design), up to 10 MB. `flattened`: an image to analyze instead of the current one (Re-run the analysis), up to 64 MB. `mask`: the mask of an area edit, a PNG up to 10 MB. `asset`: a library asset (Upload a library asset), up to 5 MB. PNG, JPEG, WebP or GIF; a library asset may also be AVIF or SVG.",
            "examples": [
              "image"
            ]
          }
        },
        "required": [
          "fileName",
          "contentType",
          "size",
          "kind"
        ]
      },
      "CreateStagedUploadDto": {
        "type": "object",
        "properties": {
          "fileName": {
            "type": "string",
            "description": "Name of the file you will upload. Its extension must be one this step takes.",
            "examples": [
              "catalogue.csv"
            ]
          },
          "contentType": {
            "type": "string",
            "description": "The file's type, sent again as the `Content-Type` of the `PUT` (the URL is signed over it). `application/octet-stream` is accepted when the type is unknown.",
            "examples": [
              "text/csv"
            ]
          },
          "size": {
            "type": "number",
            "description": "Exact size of the file in bytes. It is part of the signed URL: storage refuses a `PUT` of any other length.",
            "examples": [
              524288
            ]
          }
        },
        "required": [
          "fileName",
          "contentType",
          "size"
        ]
      },
      "CreateVariantsDataDto": {
        "type": "object",
        "properties": {
          "designAssetId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the design.",
            "examples": [
              "3f2b8c1d-6e4a-4b7f-9c2d-1a5e8f3b7c90"
            ]
          },
          "variants": {
            "description": "One entry per variant you asked for, in the same order.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CreatedVariantDto"
            }
          }
        },
        "required": [
          "designAssetId",
          "variants"
        ]
      },
      "CreateVariantsResponseDto": {
        "type": "object",
        "properties": {
          "data": {
            "description": "The result.",
            "allOf": [
              {
                "$ref": "#/components/schemas/CreateVariantsDataDto"
              }
            ]
          }
        },
        "required": [
          "data"
        ]
      },
      "CreationFailureDto": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "enum": [
              "content_blocked",
              "invalid_input",
              "timeout",
              "no_image",
              "error"
            ],
            "description": "`content_blocked` (the safety filter refused the prompt), `invalid_input` (the input could not be read), `timeout`, `no_image` (no image came back) or `error`.",
            "examples": [
              "content_blocked"
            ]
          },
          "message": {
            "type": "string",
            "description": "A sentence you can show your users as is.",
            "examples": [
              "This request was blocked by the content safety filter. Try rewording your prompt."
            ]
          },
          "retryable": {
            "type": "boolean",
            "description": "Whether retrying the same request could succeed. `false` only for `invalid_input`.",
            "examples": [
              true
            ]
          }
        },
        "required": [
          "code",
          "message",
          "retryable"
        ]
      },
      "CreationListItemDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the created image.",
            "examples": [
              "4f2b8c1e-6a3d-4b7e-9c2f-1a2b3c4d5e6f"
            ]
          },
          "prompt": {
            "type": "string",
            "description": "The prompt the image was generated from. For an edit, the composed edit instruction.",
            "examples": [
              "A minimalist sale banner with a red gift box, festive vibe"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "RUNNING",
              "COMPLETED",
              "FAILED"
            ],
            "description": "`RUNNING` while the image is being made, `COMPLETED` when it exists, `FAILED` when it could not be made. In List created images, an image still `RUNNING` five minutes after it was requested is reported as `FAILED`.",
            "examples": [
              "COMPLETED"
            ]
          },
          "outputKey": {
            "type": [
              "string",
              "null"
            ],
            "description": "Storage key of the image. Pass it as `sourceKey` to translate the image. `null` until the image exists.",
            "examples": [
              "0c9d8e7f-6a5b-4c3d-8e2f-1a0b9c8d7e6f/image-creator/7d1e2f3a-4b5c-4d6e-8f9a-0b1c2d3e4f5a.png"
            ]
          },
          "mimeType": {
            "type": [
              "string",
              "null"
            ],
            "description": "MIME type of the image. `null` until the image exists.",
            "examples": [
              "image/png"
            ]
          },
          "size": {
            "type": [
              "string",
              "null"
            ],
            "description": "Size of the image in bytes, as a string of digits. `null` until the image exists.",
            "examples": [
              "1482113"
            ]
          },
          "fk_assetId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "ID of the asset the image was last saved as with Save an image to assets. `null` when it was never saved.",
            "examples": [
              null
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "description": "How the image was made. May hold `aspectRatio`, `referenceImageCount`, `editedFrom` (the image it was edited from), `croppedFrom`, `editType` and `detectedElements` (the cached result of Detect image elements).",
            "examples": [
              {
                "aspectRatio": null,
                "referenceImageCount": 0
              }
            ]
          },
          "fk_threadId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "ID of the Universe app chat the image was made in. `null` for an image generated from a prompt.",
            "examples": [
              null
            ]
          },
          "channel": {
            "type": [
              "string",
              "null"
            ],
            "description": "Output channel the image was made for, such as `instagram_square`. `null` for an image generated from a prompt.",
            "examples": [
              null
            ]
          },
          "fk_memberId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the member who created the image.",
            "examples": [
              "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e"
            ]
          },
          "fk_orgId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of your organization.",
            "examples": [
              "0c9d8e7f-6a5b-4c3d-8e2f-1a0b9c8d7e6f"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the image was requested.",
            "examples": [
              "2026-10-04T09:30:00.000Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the image last changed.",
            "examples": [
              "2026-10-04T09:30:12.000Z"
            ]
          },
          "deletedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Always `null`: deleted images are not returned.",
            "examples": [
              null
            ]
          },
          "thumbnailUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "Signed URL of a preview: the low-resolution thumbnail once the image is saved to your assets, otherwise the image itself. `null` when there is no image.",
            "examples": [
              "{{STORAGE_BASE_URL}}/0c9d8e7f/image-creator/7d1e2f3a.png?X-Amz-Expires=3600&X-Amz-Signature=…"
            ]
          },
          "url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Signed URL of the full image. It expires. `null` when there is no image.",
            "examples": [
              "{{STORAGE_BASE_URL}}/0c9d8e7f/image-creator/7d1e2f3a.png?X-Amz-Expires=3600&X-Amz-Signature=…"
            ]
          },
          "savedToDrive": {
            "type": "boolean",
            "description": "Whether the image has been saved to your assets.",
            "examples": [
              false
            ]
          },
          "failure": {
            "description": "Why the image failed. `null` unless `status` is `failed`.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/CreationFailureDto"
              }
            ],
            "examples": [
              null
            ]
          }
        },
        "required": [
          "id",
          "prompt",
          "status",
          "outputKey",
          "mimeType",
          "size",
          "fk_assetId",
          "metadata",
          "fk_threadId",
          "channel",
          "fk_memberId",
          "fk_orgId",
          "createdAt",
          "updatedAt",
          "deletedAt",
          "thumbnailUrl",
          "url",
          "savedToDrive",
          "failure"
        ]
      },
      "CreationListResponseDto": {
        "type": "object",
        "properties": {
          "count": {
            "type": "number",
            "description": "Total number of created images in your organization.",
            "examples": [
              42
            ]
          },
          "rows": {
            "description": "This page of created images, newest first.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CreationListItemDto"
            }
          }
        },
        "required": [
          "count",
          "rows"
        ]
      },
      "CreationRecordDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the created image.",
            "examples": [
              "4f2b8c1e-6a3d-4b7e-9c2f-1a2b3c4d5e6f"
            ]
          },
          "prompt": {
            "type": "string",
            "description": "The prompt the image was generated from. For an edit, the composed edit instruction.",
            "examples": [
              "A minimalist sale banner with a red gift box, festive vibe"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "RUNNING",
              "COMPLETED",
              "FAILED"
            ],
            "description": "`RUNNING` while the image is being made, `COMPLETED` when it exists, `FAILED` when it could not be made. In List created images, an image still `RUNNING` five minutes after it was requested is reported as `FAILED`.",
            "examples": [
              "COMPLETED"
            ]
          },
          "outputKey": {
            "type": [
              "string",
              "null"
            ],
            "description": "Storage key of the image. Pass it as `sourceKey` to translate the image. `null` until the image exists.",
            "examples": [
              "0c9d8e7f-6a5b-4c3d-8e2f-1a0b9c8d7e6f/image-creator/7d1e2f3a-4b5c-4d6e-8f9a-0b1c2d3e4f5a.png"
            ]
          },
          "mimeType": {
            "type": [
              "string",
              "null"
            ],
            "description": "MIME type of the image. `null` until the image exists.",
            "examples": [
              "image/png"
            ]
          },
          "size": {
            "type": [
              "string",
              "null"
            ],
            "description": "Size of the image in bytes, as a string of digits. `null` until the image exists.",
            "examples": [
              "1482113"
            ]
          },
          "fk_assetId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "ID of the asset the image was last saved as with Save an image to assets. `null` when it was never saved.",
            "examples": [
              null
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "description": "How the image was made. May hold `aspectRatio`, `referenceImageCount`, `editedFrom` (the image it was edited from), `croppedFrom`, `editType` and `detectedElements` (the cached result of Detect image elements).",
            "examples": [
              {
                "aspectRatio": null,
                "referenceImageCount": 0
              }
            ]
          },
          "fk_threadId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "ID of the Universe app chat the image was made in. `null` for an image generated from a prompt.",
            "examples": [
              null
            ]
          },
          "channel": {
            "type": [
              "string",
              "null"
            ],
            "description": "Output channel the image was made for, such as `instagram_square`. `null` for an image generated from a prompt.",
            "examples": [
              null
            ]
          },
          "fk_memberId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the member who created the image.",
            "examples": [
              "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e"
            ]
          },
          "fk_orgId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of your organization.",
            "examples": [
              "0c9d8e7f-6a5b-4c3d-8e2f-1a0b9c8d7e6f"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the image was requested.",
            "examples": [
              "2026-10-04T09:30:00.000Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the image last changed.",
            "examples": [
              "2026-10-04T09:30:12.000Z"
            ]
          },
          "deletedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Always `null`: deleted images are not returned.",
            "examples": [
              null
            ]
          },
          "thumbnailUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "Signed URL of a preview: the low-resolution thumbnail once the image is saved to your assets, otherwise the image itself. `null` when there is no image.",
            "examples": [
              "{{STORAGE_BASE_URL}}/0c9d8e7f/image-creator/7d1e2f3a.png?X-Amz-Expires=3600&X-Amz-Signature=…"
            ]
          },
          "url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Signed URL of the full image. It expires. `null` when there is no image.",
            "examples": [
              "{{STORAGE_BASE_URL}}/0c9d8e7f/image-creator/7d1e2f3a.png?X-Amz-Expires=3600&X-Amz-Signature=…"
            ]
          },
          "savedToDrive": {
            "type": "boolean",
            "description": "Whether the image has been saved to your assets.",
            "examples": [
              false
            ]
          }
        },
        "required": [
          "id",
          "prompt",
          "status",
          "outputKey",
          "mimeType",
          "size",
          "fk_assetId",
          "metadata",
          "fk_threadId",
          "channel",
          "fk_memberId",
          "fk_orgId",
          "createdAt",
          "updatedAt",
          "deletedAt",
          "thumbnailUrl",
          "url",
          "savedToDrive"
        ]
      },
      "CropRectDto": {
        "type": "object",
        "properties": {
          "x": {
            "type": "number",
            "minimum": 0,
            "maximum": 1,
            "description": "Left edge, as a fraction (0–1) of the raw image width.",
            "examples": [
              0.1
            ]
          },
          "y": {
            "type": "number",
            "minimum": 0,
            "maximum": 1,
            "description": "Top edge, as a fraction (0–1) of the raw image height.",
            "examples": [
              0.05
            ]
          },
          "width": {
            "type": "number",
            "minimum": 0,
            "maximum": 1,
            "description": "Width, as a fraction (0–1) of the raw image width.",
            "examples": [
              0.8
            ]
          },
          "height": {
            "type": "number",
            "minimum": 0,
            "maximum": 1,
            "description": "Height, as a fraction (0–1) of the raw image height.",
            "examples": [
              0.9
            ]
          }
        },
        "required": [
          "x",
          "y",
          "width",
          "height"
        ]
      },
      "DesignAssetDetailDto": {
        "type": "object",
        "properties": {
          "promptTokens": {
            "type": "number",
            "description": "Model input tokens used so far. For reporting only.",
            "examples": [
              5120
            ]
          },
          "completionTokens": {
            "type": "number",
            "description": "Model output tokens used so far. For reporting only.",
            "examples": [
              830
            ]
          },
          "thoughtsTokens": {
            "type": "number",
            "description": "Model reasoning tokens used so far. For reporting only.",
            "examples": [
              410
            ]
          },
          "totalTokens": {
            "type": "number",
            "description": "Sum of all tokens used so far. For reporting only.",
            "examples": [
              6360
            ]
          },
          "tokensByModel": {
            "type": "object",
            "additionalProperties": true,
            "description": "Token totals split by the model that used them.",
            "examples": [
              {}
            ]
          },
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the design.",
            "examples": [
              "3f2b8c1d-6e4a-4b7f-9c2d-1a5e8f3b7c90"
            ]
          },
          "name": {
            "type": "string",
            "description": "Display name.",
            "examples": [
              "Summer sale banner"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "CREATED",
              "PROCESSED",
              "APPROVED",
              "ARCHIVED"
            ],
            "description": "`CREATED` (uploaded, not analyzed), `PROCESSED` (analysis finished), `APPROVED` (ready for variants) or `ARCHIVED`.",
            "examples": [
              "PROCESSED"
            ]
          },
          "tier": {
            "type": "string",
            "enum": [
              "FLASH",
              "PRO"
            ],
            "description": "`PRO` (analysis, layout plans you approve, QA review) or `FLASH` (no analysis; variants are rendered straight away).",
            "examples": [
              "PRO"
            ]
          },
          "language": {
            "type": [
              "object",
              "null"
            ],
            "description": "Language of the text in the design, if you sent one.",
            "examples": [
              "english_united_states"
            ]
          },
          "sourceImageUrl": {
            "type": "string",
            "description": "URL of the source image.",
            "examples": [
              "{{CDN_BASE_URL}}/1d2e3f4a-5b6c-4d7e-8f9a-0b1c2d3e4f5a/adapt/3f2b8c1d-6e4a-4b7f-9c2d-1a5e8f3b7c90/source/summer-sale.png"
            ]
          },
          "sourceThumbnailUrl": {
            "type": [
              "object",
              "null"
            ],
            "description": "URL of a small copy of the source image (WebP, longest side 512 px, uncropped). Null until it is made, shortly after upload.",
            "examples": [
              null
            ]
          },
          "sourceImageMeta": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "description": "What you sent in `sourceImageMeta`, plus the storage `objectKey` (and `adoptedFrom` when the design reuses an existing image).",
            "examples": [
              {
                "width": 1200,
                "height": 628,
                "mime": "image/png",
                "objectKey": "1d2e3f4a-5b6c-4d7e-8f9a-0b1c2d3e4f5a/adapt/3f2b8c1d-6e4a-4b7f-9c2d-1a5e8f3b7c90/source/summer-sale.png"
              }
            ]
          },
          "designKnowledge": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "description": "What the Pro analysis found: `text_elements`, `subjects`, `design_elements`, `brand_identity` (each with an `id` and a `box`) and `environment`. The `id`s are the `element_id`s of layout plans and the `original_id`s of reviews. `null` until analysis succeeds, and always for Flash.",
            "examples": [
              {
                "text_elements": [
                  {
                    "id": "text_1",
                    "category": "headline",
                    "raw_text": "Summer Sale",
                    "box": [
                      80,
                      120,
                      220,
                      880
                    ]
                  }
                ],
                "subjects": [],
                "design_elements": [],
                "brand_identity": [],
                "environment": {}
              }
            ]
          },
          "analysisMeta": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "description": "Analysis details. `cleanBackgroundUrl` is set once Generate a clean background has run.",
            "examples": [
              {
                "phase": "analysis_complete",
                "completedAt": "2026-10-04T09:30:00.000Z",
                "cleanBackgroundUrl": "{{CDN_BASE_URL}}/1d2e3f4a-5b6c-4d7e-8f9a-0b1c2d3e4f5a/adapt/3f2b8c1d-6e4a-4b7f-9c2d-1a5e8f3b7c90/clean-background/clean-1759572000000.jpg"
              }
            ]
          },
          "consumed": {
            "type": "object",
            "additionalProperties": true,
            "description": "Internal usage counters. Usually empty.",
            "examples": [
              {}
            ]
          },
          "tokens": {
            "type": "object",
            "additionalProperties": true,
            "description": "Internal token map. Usually empty.",
            "examples": [
              {}
            ]
          },
          "errorLog": {
            "type": [
              "object",
              "null"
            ],
            "description": "Last error on the design, if any.",
            "examples": [
              null
            ]
          },
          "fk_ownerId": {
            "type": "string",
            "format": "uuid",
            "description": "Member who created the design.",
            "examples": [
              "8f7e6d5c-4b3a-4291-8f0e-1d2c3b4a5f6e"
            ]
          },
          "fk_orgId": {
            "type": "string",
            "format": "uuid",
            "description": "Your organization ID.",
            "examples": [
              "1d2e3f4a-5b6c-4d7e-8f9a-0b1c2d3e4f5a"
            ]
          },
          "fk_projectId": {
            "type": [
              "object",
              "null"
            ],
            "format": "uuid",
            "description": "Project the design is filed in, or `null` for none.",
            "examples": [
              "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the design was created.",
            "examples": [
              "2026-10-04T09:30:00.000Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the design last changed.",
            "examples": [
              "2026-10-04T09:30:00.000Z"
            ]
          },
          "deletedAt": {
            "type": [
              "object",
              "null"
            ],
            "format": "date-time",
            "description": "Always `null`: deleted designs are not returned.",
            "examples": [
              null
            ]
          },
          "variants": {
            "description": "Variants of the design.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DesignVariantDto"
            }
          },
          "elements": {
            "description": "Elements attached to the design.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DesignElementDto"
            }
          }
        },
        "required": [
          "promptTokens",
          "completionTokens",
          "thoughtsTokens",
          "totalTokens",
          "tokensByModel",
          "id",
          "name",
          "status",
          "tier",
          "language",
          "sourceImageUrl",
          "sourceImageMeta",
          "designKnowledge",
          "analysisMeta",
          "consumed",
          "tokens",
          "errorLog",
          "fk_ownerId",
          "fk_orgId",
          "fk_projectId",
          "createdAt",
          "updatedAt",
          "deletedAt",
          "variants",
          "elements"
        ]
      },
      "DesignAssetListItemDto": {
        "type": "object",
        "properties": {
          "promptTokens": {
            "type": "number",
            "description": "Model input tokens used so far. For reporting only.",
            "examples": [
              5120
            ]
          },
          "completionTokens": {
            "type": "number",
            "description": "Model output tokens used so far. For reporting only.",
            "examples": [
              830
            ]
          },
          "thoughtsTokens": {
            "type": "number",
            "description": "Model reasoning tokens used so far. For reporting only.",
            "examples": [
              410
            ]
          },
          "totalTokens": {
            "type": "number",
            "description": "Sum of all tokens used so far. For reporting only.",
            "examples": [
              6360
            ]
          },
          "tokensByModel": {
            "type": "object",
            "additionalProperties": true,
            "description": "Token totals split by the model that used them.",
            "examples": [
              {}
            ]
          },
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the design.",
            "examples": [
              "3f2b8c1d-6e4a-4b7f-9c2d-1a5e8f3b7c90"
            ]
          },
          "name": {
            "type": "string",
            "description": "Display name.",
            "examples": [
              "Summer sale banner"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "CREATED",
              "PROCESSED",
              "APPROVED",
              "ARCHIVED"
            ],
            "description": "`CREATED` (uploaded, not analyzed), `PROCESSED` (analysis finished), `APPROVED` (ready for variants) or `ARCHIVED`.",
            "examples": [
              "PROCESSED"
            ]
          },
          "tier": {
            "type": "string",
            "enum": [
              "FLASH",
              "PRO"
            ],
            "description": "`PRO` (analysis, layout plans you approve, QA review) or `FLASH` (no analysis; variants are rendered straight away).",
            "examples": [
              "PRO"
            ]
          },
          "language": {
            "type": [
              "object",
              "null"
            ],
            "description": "Language of the text in the design, if you sent one.",
            "examples": [
              "english_united_states"
            ]
          },
          "sourceImageUrl": {
            "type": "string",
            "description": "URL of the source image.",
            "examples": [
              "{{CDN_BASE_URL}}/1d2e3f4a-5b6c-4d7e-8f9a-0b1c2d3e4f5a/adapt/3f2b8c1d-6e4a-4b7f-9c2d-1a5e8f3b7c90/source/summer-sale.png"
            ]
          },
          "sourceThumbnailUrl": {
            "type": [
              "object",
              "null"
            ],
            "description": "URL of a small copy of the source image (WebP, longest side 512 px, uncropped). Null until it is made, shortly after upload.",
            "examples": [
              null
            ]
          },
          "sourceImageMeta": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "description": "What you sent in `sourceImageMeta`, plus the storage `objectKey` (and `adoptedFrom` when the design reuses an existing image).",
            "examples": [
              {
                "width": 1200,
                "height": 628,
                "mime": "image/png",
                "objectKey": "1d2e3f4a-5b6c-4d7e-8f9a-0b1c2d3e4f5a/adapt/3f2b8c1d-6e4a-4b7f-9c2d-1a5e8f3b7c90/source/summer-sale.png"
              }
            ]
          },
          "designKnowledge": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "description": "What the Pro analysis found: `text_elements`, `subjects`, `design_elements`, `brand_identity` (each with an `id` and a `box`) and `environment`. The `id`s are the `element_id`s of layout plans and the `original_id`s of reviews. `null` until analysis succeeds, and always for Flash.",
            "examples": [
              {
                "text_elements": [
                  {
                    "id": "text_1",
                    "category": "headline",
                    "raw_text": "Summer Sale",
                    "box": [
                      80,
                      120,
                      220,
                      880
                    ]
                  }
                ],
                "subjects": [],
                "design_elements": [],
                "brand_identity": [],
                "environment": {}
              }
            ]
          },
          "analysisMeta": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "description": "Analysis details. `cleanBackgroundUrl` is set once Generate a clean background has run.",
            "examples": [
              {
                "phase": "analysis_complete",
                "completedAt": "2026-10-04T09:30:00.000Z",
                "cleanBackgroundUrl": "{{CDN_BASE_URL}}/1d2e3f4a-5b6c-4d7e-8f9a-0b1c2d3e4f5a/adapt/3f2b8c1d-6e4a-4b7f-9c2d-1a5e8f3b7c90/clean-background/clean-1759572000000.jpg"
              }
            ]
          },
          "consumed": {
            "type": "object",
            "additionalProperties": true,
            "description": "Internal usage counters. Usually empty.",
            "examples": [
              {}
            ]
          },
          "tokens": {
            "type": "object",
            "additionalProperties": true,
            "description": "Internal token map. Usually empty.",
            "examples": [
              {}
            ]
          },
          "errorLog": {
            "type": [
              "object",
              "null"
            ],
            "description": "Last error on the design, if any.",
            "examples": [
              null
            ]
          },
          "fk_ownerId": {
            "type": "string",
            "format": "uuid",
            "description": "Member who created the design.",
            "examples": [
              "8f7e6d5c-4b3a-4291-8f0e-1d2c3b4a5f6e"
            ]
          },
          "fk_orgId": {
            "type": "string",
            "format": "uuid",
            "description": "Your organization ID.",
            "examples": [
              "1d2e3f4a-5b6c-4d7e-8f9a-0b1c2d3e4f5a"
            ]
          },
          "fk_projectId": {
            "type": [
              "object",
              "null"
            ],
            "format": "uuid",
            "description": "Project the design is filed in, or `null` for none.",
            "examples": [
              "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the design was created.",
            "examples": [
              "2026-10-04T09:30:00.000Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the design last changed.",
            "examples": [
              "2026-10-04T09:30:00.000Z"
            ]
          },
          "deletedAt": {
            "type": [
              "object",
              "null"
            ],
            "format": "date-time",
            "description": "Always `null`: deleted designs are not returned.",
            "examples": [
              null
            ]
          },
          "variantsCount": {
            "type": "number",
            "description": "Number of variants created from the design.",
            "examples": [
              4
            ]
          }
        },
        "required": [
          "promptTokens",
          "completionTokens",
          "thoughtsTokens",
          "totalTokens",
          "tokensByModel",
          "id",
          "name",
          "status",
          "tier",
          "language",
          "sourceImageUrl",
          "sourceImageMeta",
          "designKnowledge",
          "analysisMeta",
          "consumed",
          "tokens",
          "errorLog",
          "fk_ownerId",
          "fk_orgId",
          "fk_projectId",
          "createdAt",
          "updatedAt",
          "deletedAt",
          "variantsCount"
        ]
      },
      "DesignElementDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the element.",
            "examples": [
              "5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d"
            ]
          },
          "category": {
            "type": "string",
            "description": "Kind of element, such as `text`, `logo` or `photo`.",
            "examples": [
              "logo"
            ]
          },
          "source": {
            "type": "string",
            "enum": [
              "EXTRACTED",
              "UPLOADED",
              "GENERATED"
            ],
            "description": "Where the element came from.",
            "examples": [
              "UPLOADED"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "ACTIVE",
              "ARCHIVED"
            ],
            "description": "`ACTIVE` or `ARCHIVED`.",
            "examples": [
              "ACTIVE"
            ]
          },
          "payload": {
            "type": "object",
            "additionalProperties": true,
            "description": "Data that depends on the category, such as the text or colours.",
            "examples": [
              {
                "label": "Primary logo"
              }
            ]
          },
          "assetUrl": {
            "type": [
              "object",
              "null"
            ],
            "description": "URL of the element image, if any.",
            "examples": [
              "https://cdn.example.com/brand/logo.png"
            ]
          },
          "bbox": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "description": "Bounding box on the design, in 0–1 fractions.",
            "examples": [
              {
                "x": 0.05,
                "y": 0.05,
                "width": 0.2,
                "height": 0.1
              }
            ]
          },
          "mask": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "description": "Shape mask of the element, if any.",
            "examples": [
              null
            ]
          },
          "metadata": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "description": "Any extra data you stored.",
            "examples": [
              {
                "uploadedBy": "brand-team"
              }
            ]
          },
          "fk_designAssetId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the design.",
            "examples": [
              "3f2b8c1d-6e4a-4b7f-9c2d-1a5e8f3b7c90"
            ]
          },
          "fk_designVariantId": {
            "type": [
              "object",
              "null"
            ],
            "format": "uuid",
            "description": "Variant the element is limited to, or `null` for the whole design.",
            "examples": [
              null
            ]
          },
          "fk_ownerId": {
            "type": "string",
            "format": "uuid",
            "description": "Member who added the element.",
            "examples": [
              "8f7e6d5c-4b3a-4291-8f0e-1d2c3b4a5f6e"
            ]
          },
          "fk_orgId": {
            "type": "string",
            "format": "uuid",
            "description": "Your organization ID.",
            "examples": [
              "1d2e3f4a-5b6c-4d7e-8f9a-0b1c2d3e4f5a"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the element was added.",
            "examples": [
              "2026-10-04T09:30:00.000Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the element last changed.",
            "examples": [
              "2026-10-04T09:30:00.000Z"
            ]
          },
          "deletedAt": {
            "type": [
              "object",
              "null"
            ],
            "format": "date-time",
            "description": "Always `null` (not returned by Add an element).",
            "examples": [
              null
            ]
          }
        },
        "required": [
          "id",
          "category",
          "source",
          "status",
          "payload",
          "assetUrl",
          "bbox",
          "mask",
          "metadata",
          "fk_designAssetId",
          "fk_designVariantId",
          "fk_ownerId",
          "fk_orgId",
          "createdAt",
          "updatedAt"
        ]
      },
      "DesignElementResponseDto": {
        "type": "object",
        "properties": {
          "data": {
            "description": "The new element.",
            "allOf": [
              {
                "$ref": "#/components/schemas/DesignElementDto"
              }
            ]
          }
        },
        "required": [
          "data"
        ]
      },
      "DesignUploadCheckResponseDto": {
        "type": "object",
        "properties": {
          "designAssetId": {
            "type": "string",
            "format": "uuid",
            "description": "The design ID the image was checked for. Pass it as `designAssetId` to Create a design.",
            "examples": [
              "3f2b8c1d-6e4a-4b7f-9c2d-1a5e8f3b7c90"
            ]
          },
          "objectKey": {
            "type": "string",
            "description": "The upload key, unchanged. Pass it as `objectKey` to Create a design, which uses the checked image without checking it again.",
            "examples": [
              "1d2e3f4a-5b6c-4d7e-8f9a-0b1c2d3e4f5a/adapt/3f2b8c1d-6e4a-4b7f-9c2d-1a5e8f3b7c90/incoming/summer-sale.png"
            ]
          }
        },
        "required": [
          "designAssetId",
          "objectKey"
        ]
      },
      "DesignUploadPresignResponseDto": {
        "type": "object",
        "properties": {
          "designAssetId": {
            "type": "string",
            "format": "uuid",
            "description": "ID reserved for the new design. Pass it as `designAssetId` to Create a design.",
            "examples": [
              "3f2b8c1d-6e4a-4b7f-9c2d-1a5e8f3b7c90"
            ]
          },
          "uploadUrl": {
            "type": "string",
            "description": "Presigned URL. `PUT` the image bytes to it within 15 minutes, with the headers in `headers`.",
            "examples": [
              "{{PRESIGNED_URL}}"
            ]
          },
          "objectKey": {
            "type": "string",
            "description": "Storage key of the upload. Pass it as `objectKey` to Create a design, which keeps the image at a key of its own.",
            "examples": [
              "1d2e3f4a-5b6c-4d7e-8f9a-0b1c2d3e4f5a/adapt/3f2b8c1d-6e4a-4b7f-9c2d-1a5e8f3b7c90/incoming/summer-sale.png"
            ]
          },
          "objectUrl": {
            "type": "string",
            "description": "URL of the upload. Pass it as `objectUrl` to Create a design.",
            "examples": [
              "{{CDN_BASE_URL}}/1d2e3f4a-5b6c-4d7e-8f9a-0b1c2d3e4f5a/adapt/3f2b8c1d-6e4a-4b7f-9c2d-1a5e8f3b7c90/incoming/summer-sale.png"
            ]
          },
          "headers": {
            "description": "Headers to send with the `PUT`.",
            "allOf": [
              {
                "$ref": "#/components/schemas/PresignHeadersDto"
              }
            ]
          }
        },
        "required": [
          "designAssetId",
          "uploadUrl",
          "objectKey",
          "objectUrl",
          "headers"
        ]
      },
      "DesignVariantDetailDto": {
        "type": "object",
        "properties": {
          "promptTokens": {
            "type": "number",
            "description": "Model input tokens used so far. For reporting only.",
            "examples": [
              5120
            ]
          },
          "completionTokens": {
            "type": "number",
            "description": "Model output tokens used so far. For reporting only.",
            "examples": [
              830
            ]
          },
          "thoughtsTokens": {
            "type": "number",
            "description": "Model reasoning tokens used so far. For reporting only.",
            "examples": [
              410
            ]
          },
          "totalTokens": {
            "type": "number",
            "description": "Sum of all tokens used so far. For reporting only.",
            "examples": [
              6360
            ]
          },
          "tokensByModel": {
            "type": "object",
            "additionalProperties": true,
            "description": "Token totals split by the model that used them.",
            "examples": [
              {}
            ]
          },
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the variant.",
            "examples": [
              "7c1e4a9b-2d3f-4e5a-8b6c-9d0e1f2a3b4c"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "PLAN_PENDING",
              "PLAN_APPROVED",
              "PLAN_REJECTED",
              "GENERATING",
              "REVIEW_PENDING",
              "NEEDS_REVIEW",
              "AUTO_REVIEWING",
              "AUTO_FIXING",
              "APPROVED",
              "REJECTED",
              "FAILED",
              "ARCHIVED"
            ],
            "description": "Where the variant is. Pro: `PLAN_PENDING` (plan ready to approve, or still being made while `layoutPlan` is `null`) → `GENERATING` → `REVIEW_PENDING`, then `NEEDS_REVIEW` or `APPROVED` after a review. Flash: `GENERATING` → `APPROVED`. `FAILED` when rendering failed (see `errorLog`).",
            "examples": [
              "PLAN_PENDING"
            ]
          },
          "variantCategory": {
            "type": "string",
            "description": "The `variantCategory` you sent.",
            "examples": [
              "Instagram Story"
            ]
          },
          "language": {
            "type": [
              "object",
              "null"
            ],
            "description": "Language of the variant; the design's when you sent none.",
            "examples": [
              "english_united_states"
            ]
          },
          "targetConfig": {
            "type": "object",
            "additionalProperties": true,
            "description": "The `targetConfig` you sent (`width`, `height`, …), plus the `modelConfig` in use.",
            "examples": [
              {
                "width": 1080,
                "height": 1920,
                "platform": "instagram",
                "modelConfig": {}
              }
            ]
          },
          "layoutPlan": {
            "description": "The layout plan. `null` while a Pro plan is being made; Flash variants carry a placeholder plan.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/LayoutPlanDto"
              }
            ]
          },
          "generationConfig": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "description": "Generation settings: what you sent in `generationConfig`, plus defaults.",
            "examples": [
              {
                "generateBackgroundFirst": false,
                "steps": {}
              }
            ]
          },
          "generatedImageUrl": {
            "type": [
              "object",
              "null"
            ],
            "description": "URL of the image of the active version. `null` until the first image is rendered.",
            "examples": [
              "{{CDN_BASE_URL}}/1d2e3f4a-5b6c-4d7e-8f9a-0b1c2d3e4f5a/adapt/3f2b8c1d-6e4a-4b7f-9c2d-1a5e8f3b7c90/variants/7c1e4a9b-2d3f-4e5a-8b6c-9d0e1f2a3b4c/final-1759572000000.jpg"
            ]
          },
          "previewImageUrl": {
            "type": [
              "object",
              "null"
            ],
            "description": "URL of a smaller preview, when one exists.",
            "examples": [
              null
            ]
          },
          "thumbnailUrl": {
            "type": [
              "object",
              "null"
            ],
            "description": "URL of a small copy of the image (WebP, longest side 512 px, uncropped) for lists and cards. Null until it is made, shortly after the image.",
            "examples": [
              null
            ]
          },
          "fk_assetId": {
            "type": [
              "object",
              "null"
            ],
            "format": "uuid",
            "description": "ID of the asset in your organization's Assets, when the image was saved there.",
            "examples": [
              null
            ]
          },
          "variantKnowledge": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "description": "Extra knowledge for this variant. Usually `null`.",
            "examples": [
              null
            ]
          },
          "reviewData": {
            "description": "Result of the latest review (Review a variant). `null` until one has run.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewDataDto"
              }
            ]
          },
          "errorLog": {
            "type": [
              "object",
              "null"
            ],
            "description": "Why the last render failed, when `status` is `FAILED`.",
            "examples": [
              null
            ]
          },
          "fk_activeVersionId": {
            "type": [
              "object",
              "null"
            ],
            "format": "uuid",
            "description": "ID of the active version. `null` until the first image is rendered.",
            "examples": [
              "b4d2f8e1-9a3c-4b5d-8e7f-1a2b3c4d5e6f"
            ]
          },
          "fk_designAssetId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the design the variant belongs to.",
            "examples": [
              "3f2b8c1d-6e4a-4b7f-9c2d-1a5e8f3b7c90"
            ]
          },
          "fk_ownerId": {
            "type": "string",
            "format": "uuid",
            "description": "Member who created the variant.",
            "examples": [
              "8f7e6d5c-4b3a-4291-8f0e-1d2c3b4a5f6e"
            ]
          },
          "fk_orgId": {
            "type": "string",
            "format": "uuid",
            "description": "Your organization ID.",
            "examples": [
              "1d2e3f4a-5b6c-4d7e-8f9a-0b1c2d3e4f5a"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the variant was created.",
            "examples": [
              "2026-10-04T09:30:00.000Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the variant last changed. Poll on it.",
            "examples": [
              "2026-10-04T09:30:00.000Z"
            ]
          },
          "deletedAt": {
            "type": [
              "object",
              "null"
            ],
            "format": "date-time",
            "description": "Always `null`.",
            "examples": [
              null
            ]
          },
          "designAsset": {
            "description": "The design the variant belongs to. `null` if it was deleted.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/VariantParentDesignDto"
              }
            ]
          },
          "activeVersion": {
            "description": "The active version (without `isActive`). `null` until the first image is rendered.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/DesignVariantVersionDto"
              }
            ]
          }
        },
        "required": [
          "promptTokens",
          "completionTokens",
          "thoughtsTokens",
          "totalTokens",
          "tokensByModel",
          "id",
          "status",
          "variantCategory",
          "language",
          "targetConfig",
          "layoutPlan",
          "generationConfig",
          "generatedImageUrl",
          "previewImageUrl",
          "fk_assetId",
          "variantKnowledge",
          "reviewData",
          "errorLog",
          "fk_activeVersionId",
          "fk_designAssetId",
          "fk_ownerId",
          "fk_orgId",
          "createdAt",
          "updatedAt",
          "deletedAt",
          "designAsset",
          "activeVersion"
        ]
      },
      "DesignVariantDto": {
        "type": "object",
        "properties": {
          "promptTokens": {
            "type": "number",
            "description": "Model input tokens used so far. For reporting only.",
            "examples": [
              5120
            ]
          },
          "completionTokens": {
            "type": "number",
            "description": "Model output tokens used so far. For reporting only.",
            "examples": [
              830
            ]
          },
          "thoughtsTokens": {
            "type": "number",
            "description": "Model reasoning tokens used so far. For reporting only.",
            "examples": [
              410
            ]
          },
          "totalTokens": {
            "type": "number",
            "description": "Sum of all tokens used so far. For reporting only.",
            "examples": [
              6360
            ]
          },
          "tokensByModel": {
            "type": "object",
            "additionalProperties": true,
            "description": "Token totals split by the model that used them.",
            "examples": [
              {}
            ]
          },
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the variant.",
            "examples": [
              "7c1e4a9b-2d3f-4e5a-8b6c-9d0e1f2a3b4c"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "PLAN_PENDING",
              "PLAN_APPROVED",
              "PLAN_REJECTED",
              "GENERATING",
              "REVIEW_PENDING",
              "NEEDS_REVIEW",
              "AUTO_REVIEWING",
              "AUTO_FIXING",
              "APPROVED",
              "REJECTED",
              "FAILED",
              "ARCHIVED"
            ],
            "description": "Where the variant is. Pro: `PLAN_PENDING` (plan ready to approve, or still being made while `layoutPlan` is `null`) → `GENERATING` → `REVIEW_PENDING`, then `NEEDS_REVIEW` or `APPROVED` after a review. Flash: `GENERATING` → `APPROVED`. `FAILED` when rendering failed (see `errorLog`).",
            "examples": [
              "PLAN_PENDING"
            ]
          },
          "variantCategory": {
            "type": "string",
            "description": "The `variantCategory` you sent.",
            "examples": [
              "Instagram Story"
            ]
          },
          "language": {
            "type": [
              "object",
              "null"
            ],
            "description": "Language of the variant; the design's when you sent none.",
            "examples": [
              "english_united_states"
            ]
          },
          "targetConfig": {
            "type": "object",
            "additionalProperties": true,
            "description": "The `targetConfig` you sent (`width`, `height`, …), plus the `modelConfig` in use.",
            "examples": [
              {
                "width": 1080,
                "height": 1920,
                "platform": "instagram",
                "modelConfig": {}
              }
            ]
          },
          "layoutPlan": {
            "description": "The layout plan. `null` while a Pro plan is being made; Flash variants carry a placeholder plan.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/LayoutPlanDto"
              }
            ]
          },
          "generationConfig": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "description": "Generation settings: what you sent in `generationConfig`, plus defaults.",
            "examples": [
              {
                "generateBackgroundFirst": false,
                "steps": {}
              }
            ]
          },
          "generatedImageUrl": {
            "type": [
              "object",
              "null"
            ],
            "description": "URL of the image of the active version. `null` until the first image is rendered.",
            "examples": [
              "{{CDN_BASE_URL}}/1d2e3f4a-5b6c-4d7e-8f9a-0b1c2d3e4f5a/adapt/3f2b8c1d-6e4a-4b7f-9c2d-1a5e8f3b7c90/variants/7c1e4a9b-2d3f-4e5a-8b6c-9d0e1f2a3b4c/final-1759572000000.jpg"
            ]
          },
          "previewImageUrl": {
            "type": [
              "object",
              "null"
            ],
            "description": "URL of a smaller preview, when one exists.",
            "examples": [
              null
            ]
          },
          "thumbnailUrl": {
            "type": [
              "object",
              "null"
            ],
            "description": "URL of a small copy of the image (WebP, longest side 512 px, uncropped) for lists and cards. Null until it is made, shortly after the image.",
            "examples": [
              null
            ]
          },
          "fk_assetId": {
            "type": [
              "object",
              "null"
            ],
            "format": "uuid",
            "description": "ID of the asset in your organization's Assets, when the image was saved there.",
            "examples": [
              null
            ]
          },
          "variantKnowledge": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "description": "Extra knowledge for this variant. Usually `null`.",
            "examples": [
              null
            ]
          },
          "reviewData": {
            "description": "Result of the latest review (Review a variant). `null` until one has run.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewDataDto"
              }
            ]
          },
          "errorLog": {
            "type": [
              "object",
              "null"
            ],
            "description": "Why the last render failed, when `status` is `FAILED`.",
            "examples": [
              null
            ]
          },
          "fk_activeVersionId": {
            "type": [
              "object",
              "null"
            ],
            "format": "uuid",
            "description": "ID of the active version. `null` until the first image is rendered.",
            "examples": [
              "b4d2f8e1-9a3c-4b5d-8e7f-1a2b3c4d5e6f"
            ]
          },
          "fk_designAssetId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the design the variant belongs to.",
            "examples": [
              "3f2b8c1d-6e4a-4b7f-9c2d-1a5e8f3b7c90"
            ]
          },
          "fk_ownerId": {
            "type": "string",
            "format": "uuid",
            "description": "Member who created the variant.",
            "examples": [
              "8f7e6d5c-4b3a-4291-8f0e-1d2c3b4a5f6e"
            ]
          },
          "fk_orgId": {
            "type": "string",
            "format": "uuid",
            "description": "Your organization ID.",
            "examples": [
              "1d2e3f4a-5b6c-4d7e-8f9a-0b1c2d3e4f5a"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the variant was created.",
            "examples": [
              "2026-10-04T09:30:00.000Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the variant last changed. Poll on it.",
            "examples": [
              "2026-10-04T09:30:00.000Z"
            ]
          },
          "deletedAt": {
            "type": [
              "object",
              "null"
            ],
            "format": "date-time",
            "description": "Always `null`.",
            "examples": [
              null
            ]
          }
        },
        "required": [
          "promptTokens",
          "completionTokens",
          "thoughtsTokens",
          "totalTokens",
          "tokensByModel",
          "id",
          "status",
          "variantCategory",
          "language",
          "targetConfig",
          "layoutPlan",
          "generationConfig",
          "generatedImageUrl",
          "previewImageUrl",
          "fk_assetId",
          "variantKnowledge",
          "reviewData",
          "errorLog",
          "fk_activeVersionId",
          "fk_designAssetId",
          "fk_ownerId",
          "fk_orgId",
          "createdAt",
          "updatedAt",
          "deletedAt"
        ]
      },
      "DesignVariantInputDto": {
        "type": "object",
        "properties": {
          "variantCategory": {
            "type": "string",
            "description": "Name of the format, in your own words. Shown with the variant.",
            "examples": [
              "Instagram Story"
            ]
          },
          "targetConfig": {
            "type": "object",
            "description": "The format to adapt to. `width` and `height` (pixels) are required; add any other keys you want stored, such as `platform`.",
            "examples": [
              {
                "width": 1080,
                "height": 1920,
                "platform": "instagram"
              }
            ]
          },
          "generationConfig": {
            "type": "object",
            "description": "Generation settings for this variant, stored with it. Usually left out.",
            "examples": [
              {
                "steps": {}
              }
            ]
          },
          "language": {
            "type": "string",
            "description": "Language of the variant. Leave it out to use the language of the design.",
            "examples": [
              "english_united_states"
            ]
          }
        },
        "required": [
          "variantCategory",
          "targetConfig"
        ]
      },
      "DesignVariantResponseDto": {
        "type": "object",
        "properties": {
          "data": {
            "description": "The variant.",
            "allOf": [
              {
                "$ref": "#/components/schemas/DesignVariantDto"
              }
            ]
          }
        },
        "required": [
          "data"
        ]
      },
      "DesignVariantVersionDto": {
        "type": "object",
        "properties": {
          "promptTokens": {
            "type": "number",
            "description": "Model input tokens used so far. For reporting only.",
            "examples": [
              5120
            ]
          },
          "completionTokens": {
            "type": "number",
            "description": "Model output tokens used so far. For reporting only.",
            "examples": [
              830
            ]
          },
          "thoughtsTokens": {
            "type": "number",
            "description": "Model reasoning tokens used so far. For reporting only.",
            "examples": [
              410
            ]
          },
          "totalTokens": {
            "type": "number",
            "description": "Sum of all tokens used so far. For reporting only.",
            "examples": [
              6360
            ]
          },
          "tokensByModel": {
            "type": "object",
            "additionalProperties": true,
            "description": "Token totals split by the model that used them.",
            "examples": [
              {}
            ]
          },
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the version.",
            "examples": [
              "b4d2f8e1-9a3c-4b5d-8e7f-1a2b3c4d5e6f"
            ]
          },
          "versionNumber": {
            "type": "number",
            "description": "Number of the version, from 1, in the order they were made.",
            "examples": [
              2
            ]
          },
          "fk_parentVersionId": {
            "type": [
              "object",
              "null"
            ],
            "format": "uuid",
            "description": "Version this one was made from (edits and fixes).",
            "examples": [
              "0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d"
            ]
          },
          "originTaskType": {
            "type": "string",
            "enum": [
              "INITIAL",
              "AUTO_FIX",
              "USER_FIX",
              "MIGRATED_LEGACY"
            ],
            "description": "What made the version: `INITIAL` (a render), `USER_FIX` (an edit, fix or recrop), `AUTO_FIX` or `MIGRATED_LEGACY`.",
            "examples": [
              "USER_FIX"
            ]
          },
          "originLabel": {
            "type": [
              "object",
              "null"
            ],
            "description": "Label of the change, such as `Mask edit`, `User fix` or `Recrop`.",
            "examples": [
              "Mask edit"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "GENERATING",
              "REVIEW_PENDING",
              "NEEDS_REVIEW",
              "APPROVED",
              "FAILED"
            ],
            "description": "`GENERATING`, `REVIEW_PENDING`, `NEEDS_REVIEW`, `APPROVED` or `FAILED`. Only versions that are not `GENERATING` or `FAILED` can be activated.",
            "examples": [
              "APPROVED"
            ]
          },
          "generatedImageUrl": {
            "type": [
              "object",
              "null"
            ],
            "description": "URL of the image of this version.",
            "examples": [
              "{{CDN_BASE_URL}}/1d2e3f4a-5b6c-4d7e-8f9a-0b1c2d3e4f5a/adapt/3f2b8c1d-6e4a-4b7f-9c2d-1a5e8f3b7c90/variants/7c1e4a9b-2d3f-4e5a-8b6c-9d0e1f2a3b4c/final-1759572000000.jpg"
            ]
          },
          "previewImageUrl": {
            "type": [
              "object",
              "null"
            ],
            "description": "URL of a smaller preview, when one exists.",
            "examples": [
              null
            ]
          },
          "thumbnailUrl": {
            "type": [
              "object",
              "null"
            ],
            "description": "URL of a small copy of the image (WebP, longest side 512 px, uncropped) for lists and cards. Null until it is made, shortly after the image.",
            "examples": [
              null
            ]
          },
          "score": {
            "type": [
              "object",
              "null"
            ],
            "description": "QA score. `null` when no review scored it.",
            "examples": [
              null
            ]
          },
          "errorLog": {
            "type": [
              "object",
              "null"
            ],
            "description": "Why the version failed, when `status` is `FAILED`.",
            "examples": [
              null
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the version was created.",
            "examples": [
              "2026-10-04T09:30:00.000Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the version last changed.",
            "examples": [
              "2026-10-04T09:30:00.000Z"
            ]
          },
          "isActive": {
            "type": "boolean",
            "description": "Whether this is the active version of the variant.",
            "examples": [
              true
            ]
          },
          "fk_designVariantId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the variant.",
            "examples": [
              "7c1e4a9b-2d3f-4e5a-8b6c-9d0e1f2a3b4c"
            ]
          },
          "fk_designAssetId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the design.",
            "examples": [
              "3f2b8c1d-6e4a-4b7f-9c2d-1a5e8f3b7c90"
            ]
          },
          "fk_ownerId": {
            "type": "string",
            "format": "uuid",
            "description": "Member who made the version.",
            "examples": [
              "8f7e6d5c-4b3a-4291-8f0e-1d2c3b4a5f6e"
            ]
          },
          "fk_orgId": {
            "type": "string",
            "format": "uuid",
            "description": "Your organization ID.",
            "examples": [
              "1d2e3f4a-5b6c-4d7e-8f9a-0b1c2d3e4f5a"
            ]
          },
          "layoutPlan": {
            "description": "Layout plan the version was rendered from.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/LayoutPlanDto"
              }
            ]
          },
          "reviewData": {
            "description": "Review of this version, if one has run.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewDataDto"
              }
            ]
          },
          "generationSteps": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "description": "How the image was made (prompt, crop, sizes, `uncroppedUrl`).",
            "examples": [
              {
                "prompt": "Make the headline yellow",
                "hasMask": true,
                "uncroppedUrl": "{{CDN_BASE_URL}}/1d2e3f4a-5b6c-4d7e-8f9a-0b1c2d3e4f5a/adapt/3f2b8c1d-6e4a-4b7f-9c2d-1a5e8f3b7c90/variants/7c1e4a9b-2d3f-4e5a-8b6c-9d0e1f2a3b4c/mask-edit-1759572000000-uncropped.jpg",
                "finalDimensions": {
                  "width": 1080,
                  "height": 1920
                }
              }
            ]
          },
          "deletedAt": {
            "type": [
              "object",
              "null"
            ],
            "format": "date-time",
            "description": "Always `null`.",
            "examples": [
              null
            ]
          }
        },
        "required": [
          "promptTokens",
          "completionTokens",
          "thoughtsTokens",
          "totalTokens",
          "tokensByModel",
          "id",
          "versionNumber",
          "fk_parentVersionId",
          "originTaskType",
          "originLabel",
          "status",
          "generatedImageUrl",
          "previewImageUrl",
          "score",
          "errorLog",
          "createdAt",
          "updatedAt",
          "isActive",
          "fk_designVariantId",
          "fk_designAssetId",
          "fk_ownerId",
          "fk_orgId",
          "layoutPlan",
          "reviewData",
          "generationSteps",
          "deletedAt"
        ]
      },
      "DetectedElementDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "ID of the element within this image, such as `text-0`.",
            "examples": [
              "text-0"
            ]
          },
          "category": {
            "type": "string",
            "enum": [
              "text",
              "people",
              "objects"
            ],
            "description": "Kind of element.",
            "examples": [
              "text"
            ]
          },
          "name": {
            "type": "string",
            "description": "Short label for the element. Use it as `label` in `elementEdits` when you edit the image.",
            "examples": [
              "Headline"
            ]
          },
          "content": {
            "type": "string",
            "description": "What the element shows: the words of a text element, a description of a person or an object.",
            "examples": [
              "MEGA SALE 50% OFF"
            ]
          }
        },
        "required": [
          "id",
          "category",
          "name",
          "content"
        ]
      },
      "DetectElementsResponseDto": {
        "type": "object",
        "properties": {
          "elements": {
            "description": "Text, then people, then objects. Empty when the image has no file or nothing could be detected.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DetectedElementDto"
            }
          }
        },
        "required": [
          "elements"
        ]
      },
      "DirectTranslateBodyDoc": {
        "type": "object",
        "properties": {
          "file": {
            "contentMediaType": "application/octet-stream",
            "description": "The image to translate, up to 10 MB (multipart). Send this or `uploadKey`."
          },
          "uploadKey": {
            "type": "string",
            "description": "Instead of `file`: the `uploadKey` from Get an upload URL (`kind: image`), once the image is in storage. Send it in a JSON body with the other fields."
          },
          "sourceLanguage": {
            "type": "string",
            "description": "Language of the text in the image, or `auto` to detect it. A language key such as `english_united_states`, not an ISO code. With `tmId`, use the languages of that translation memory.",
            "examples": [
              "english_united_states"
            ]
          },
          "targetLanguage": {
            "type": "string",
            "description": "The language to translate into. A language key such as `english_united_states`, not an ISO code. With `tmId`, use the languages of that translation memory.",
            "examples": [
              "french_france"
            ]
          },
          "tmId": {
            "type": "string",
            "description": "Translation memory to use. Its approved translations are reused, and new ones are stored back.",
            "format": "uuid",
            "examples": [
              "550e8400-e29b-41d4-a716-446655440000"
            ]
          },
          "projectId": {
            "type": "string",
            "description": "Project to file this job under; omit for none. See List projects.",
            "format": "uuid",
            "examples": [
              "7d1e2f3a-4b5c-4d6e-8f90-a1b2c3d4e5f6"
            ]
          }
        },
        "required": [
          "sourceLanguage",
          "targetLanguage"
        ]
      },
      "DirectTranslateResponseDto": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Always `true` here.",
            "examples": [
              true
            ]
          },
          "message": {
            "type": "string",
            "description": "What happened, in plain words.",
            "examples": [
              "Translation request accepted. Poll resultUrl for completion."
            ]
          },
          "statusCode": {
            "type": "number",
            "description": "Always `202`.",
            "examples": [
              202
            ]
          },
          "jobId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the new job.",
            "examples": [
              "e7b9d10a-f259-460b-98c5-4c1efc8f4491"
            ]
          },
          "translationVersionId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the translation being rendered. Poll Get a translation with it.",
            "examples": [
              "b2d4f6a8-2345-4bcd-8ef0-123456789abc"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "RUNNING"
            ],
            "description": "Always `RUNNING`.",
            "examples": [
              "RUNNING"
            ]
          },
          "resultUrl": {
            "type": "string",
            "description": "A path to poll. It omits the `/galaxy/translate-photo` part of the real path, so build the Get a translation URL from `jobId` and `translationVersionId` instead.",
            "examples": [
              "/v1/image-translator/e7b9d10a-f259-460b-98c5-4c1efc8f4491/translations/b2d4f6a8-2345-4bcd-8ef0-123456789abc"
            ]
          }
        },
        "required": [
          "success",
          "message",
          "statusCode",
          "jobId",
          "translationVersionId",
          "status",
          "resultUrl"
        ]
      },
      "DitaFileContentDto": {
        "type": "object",
        "properties": {
          "childLogId": {
            "type": "string",
            "format": "uuid",
            "description": "The file ID.",
            "examples": [
              "c4d5e6f7-a8b9-4c0d-8e1f-2a3b4c5d6e7f"
            ]
          },
          "filePath": {
            "type": "string",
            "description": "Path of the file inside the ZIP.",
            "examples": [
              "topics/install.dita"
            ]
          },
          "variant": {
            "type": "string",
            "enum": [
              "source",
              "translated"
            ],
            "description": "Which version you got.",
            "examples": [
              "translated"
            ]
          },
          "fileName": {
            "type": "string",
            "description": "Suggested file name. A translated file has the target language key added before the extension.",
            "examples": [
              "install-french_france.dita"
            ]
          },
          "mimeType": {
            "type": "string",
            "description": "Media type of the file: `application/xml`, `application/dita+xml` or `image/svg+xml`.",
            "examples": [
              "application/dita+xml"
            ]
          },
          "content": {
            "type": "string",
            "description": "The whole file, as text.",
            "examples": [
              "<?xml version=\"1.0\" encoding=\"UTF-8\"?><topic id=\"install\"><title>Installer le produit</title></topic>"
            ]
          },
          "sourceLanguage": {
            "type": "string",
            "description": "Source language key.",
            "examples": [
              "english_united_states"
            ]
          },
          "targetLanguage": {
            "type": "string",
            "description": "Target language key.",
            "examples": [
              "french_france"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the file last changed.",
            "examples": [
              "2026-10-04T10:14:52.000Z"
            ]
          }
        },
        "required": [
          "childLogId",
          "filePath",
          "variant",
          "fileName",
          "mimeType",
          "content",
          "sourceLanguage",
          "targetLanguage",
          "updatedAt"
        ]
      },
      "DitaFileDownloadResponseDto": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "description": "`true` with the content, `false` when it is not available.",
            "examples": [
              true
            ]
          },
          "statusCode": {
            "type": "number",
            "enum": [
              200,
              412
            ],
            "description": "`200` with the content. `412` when it is not available: the translation is not ready yet, the file is empty, or it is not an XML, DITA, DITA map or SVG file. The HTTP status is `200` either way, so check this field.",
            "examples": [
              200
            ]
          },
          "message": {
            "type": "string",
            "description": "What happened, in plain words.",
            "examples": [
              "DITA file download content fetched successfully."
            ]
          },
          "data": {
            "description": "The file. Absent when `statusCode` is `412`.",
            "allOf": [
              {
                "$ref": "#/components/schemas/DitaFileContentDto"
              }
            ]
          }
        },
        "required": [
          "success",
          "statusCode",
          "message"
        ]
      },
      "DitaFilesResponseDto": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Always `true`.",
            "examples": [
              true
            ]
          },
          "statusCode": {
            "type": "number",
            "description": "Always `200`.",
            "examples": [
              200
            ]
          },
          "parentLogId": {
            "type": "string",
            "format": "uuid",
            "description": "The language ID you asked for.",
            "examples": [
              "7a1e4c2d-5b3f-4e6a-9c8d-1f2e3d4c5b6a"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "SCHEDULED",
              "RUNNING",
              "COMPLETED",
              "FAILED",
              "TERMINATED"
            ],
            "description": "Status of the language: `SCHEDULED` (queued; languages are translated one after another), `RUNNING`, `COMPLETED` (every file finished; some may have failed) or `FAILED` (every file failed).",
            "examples": [
              "COMPLETED"
            ]
          },
          "summary": {
            "description": "File counts by status.",
            "allOf": [
              {
                "$ref": "#/components/schemas/DitaFilesSummaryDto"
              }
            ]
          },
          "tree": {
            "description": "The ZIP as a tree of folders and files, with the status of each translatable file.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DitaFileTreeNodeDto"
            }
          }
        },
        "required": [
          "success",
          "statusCode",
          "parentLogId",
          "status",
          "summary",
          "tree"
        ]
      },
      "DitaFilesSummaryDto": {
        "type": "object",
        "properties": {
          "total": {
            "type": "number",
            "description": "Files created for this language so far (0 until the language starts).",
            "examples": [
              42
            ]
          },
          "done": {
            "type": "number",
            "description": "Files translated.",
            "examples": [
              40
            ]
          },
          "failed": {
            "type": "number",
            "description": "Files that failed.",
            "examples": [
              2
            ]
          },
          "inProgress": {
            "type": "number",
            "description": "Files being translated.",
            "examples": [
              0
            ]
          }
        },
        "required": [
          "total",
          "done",
          "failed",
          "inProgress"
        ]
      },
      "DitaFileTreeNodeDto": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "file",
              "folder"
            ],
            "description": "Whether this is a file or a folder of the ZIP.",
            "examples": [
              "file"
            ]
          },
          "name": {
            "type": "string",
            "description": "File or folder name.",
            "examples": [
              "install.dita"
            ]
          },
          "path": {
            "type": "string",
            "description": "Full path inside the ZIP.",
            "examples": [
              "topics/install.dita"
            ]
          },
          "children": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DitaFileTreeNodeDto"
            },
            "description": "On a folder: what it contains.",
            "examples": [
              []
            ]
          },
          "childLogId": {
            "type": "string",
            "format": "uuid",
            "description": "On a translatable file whose language has started: the ID to download or retry the file with. Files that are not translated (images, for example) have no ID.",
            "examples": [
              "c4d5e6f7-a8b9-4c0d-8e1f-2a3b4c5d6e7f"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "SCHEDULED",
              "RUNNING",
              "COMPLETED",
              "FAILED",
              "TERMINATED"
            ],
            "description": "With `childLogId`: `RUNNING`, `COMPLETED` or `FAILED`.",
            "examples": [
              "COMPLETED"
            ]
          },
          "wordCount": {
            "type": "number",
            "description": "With `childLogId`: words in the file.",
            "examples": [
              320
            ]
          },
          "error": {
            "type": [
              "object",
              "null"
            ],
            "description": "With `childLogId`: why the file failed, or `null`.",
            "examples": [
              null
            ]
          },
          "translationType": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "ditamap",
              "svg"
            ],
            "description": "With `childLogId`: `svg` for an SVG file, `ditamap` for XML, DITA and DITA map files.",
            "examples": [
              "ditamap"
            ]
          }
        },
        "required": [
          "type",
          "name",
          "path"
        ]
      },
      "DitaMapInfoDto": {
        "type": "object",
        "properties": {
          "totalWords": {
            "type": "number",
            "description": "Translatable source words in the ZIP.",
            "examples": [
              12450
            ]
          },
          "xmlFileCount": {
            "type": "number",
            "description": "Translatable files, SVG included (same as `translatableFileCount`).",
            "examples": [
              42
            ]
          },
          "svgFileCount": {
            "type": "number",
            "description": "Translatable SVG files.",
            "examples": [
              3
            ]
          },
          "translatableFileCount": {
            "type": "number",
            "description": "Files that are translated (`.xml`, `.dita`, `.ditamap`, `.svg`).",
            "examples": [
              42
            ]
          },
          "totalFiles": {
            "type": "number",
            "description": "Every file in the ZIP, translatable or not.",
            "examples": [
              57
            ]
          },
          "folderCount": {
            "type": "number",
            "description": "Folders in the ZIP.",
            "examples": [
              6
            ]
          },
          "fileSize": {
            "type": "number",
            "description": "Size of the ZIP in bytes.",
            "examples": [
              2483712
            ]
          },
          "originalName": {
            "type": "string",
            "description": "File name of the uploaded ZIP.",
            "examples": [
              "product-docs.zip"
            ]
          },
          "files": {
            "type": "array",
            "description": "Each translatable file with its source word count.",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "description": "Path of the file inside the ZIP.",
                  "examples": [
                    "topics/install.dita"
                  ]
                },
                "words": {
                  "type": "number",
                  "description": "Source words in the file.",
                  "examples": [
                    320
                  ]
                }
              }
            },
            "examples": [
              [
                {
                  "name": "topics/install.dita",
                  "words": 320
                }
              ]
            ]
          },
          "allFiles": {
            "description": "Path of every file in the ZIP.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "map.ditamap",
                "topics/install.dita",
                "images/logo.png"
              ]
            ]
          }
        },
        "required": [
          "totalWords",
          "xmlFileCount",
          "svgFileCount",
          "translatableFileCount",
          "totalFiles",
          "folderCount",
          "fileSize",
          "originalName",
          "files",
          "allFiles"
        ]
      },
      "DitaMapLanguageDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the row.",
            "examples": [
              "0f3c2b1a-9d8e-4c7b-a6f5-e4d3c2b1a090"
            ]
          },
          "name": {
            "type": "string",
            "description": "Name of the DITA map (the `name` you sent, or the ZIP file name). A language row adds the language in brackets.",
            "examples": [
              "Q4-product-docs"
            ]
          },
          "format": {
            "type": "string",
            "enum": [
              "ditamap_zip",
              "ditamap"
            ],
            "description": "`ditamap_zip` for the DITA map, `ditamap` for one of its languages.",
            "examples": [
              "ditamap_zip"
            ]
          },
          "sourceLanguage": {
            "type": "string",
            "description": "Source language key.",
            "examples": [
              "english_united_states"
            ]
          },
          "targetLanguage": {
            "type": "string",
            "description": "Target language key. On the DITA map, every target language joined with `, `.",
            "examples": [
              "french_france, german_germany"
            ]
          },
          "suite": {
            "type": "string",
            "description": "Always `OFFICE`.",
            "examples": [
              "OFFICE"
            ]
          },
          "fk_tmId": {
            "type": [
              "object",
              "null"
            ],
            "format": "uuid",
            "description": "ID of the translation memory the map uses.",
            "examples": [
              "3e9b7c1d-2a4f-4b6e-8d0c-5f1a2b3c4d5e"
            ]
          },
          "tmName": {
            "type": [
              "object",
              "null"
            ],
            "description": "Name of that translation memory (`TM linked` when it no longer exists).",
            "examples": [
              "Product docs EN-FR"
            ]
          },
          "consumed": {
            "description": "Words processed, summed over the files.",
            "allOf": [
              {
                "$ref": "#/components/schemas/DitaMapWordsDto"
              }
            ]
          },
          "wordCount": {
            "type": "number",
            "description": "Same as `consumed.total_words`.",
            "examples": [
              12450
            ]
          },
          "creditsConsumed": {
            "type": "number",
            "description": "Same number as `wordCount`. A word count, not an amount of credits.",
            "examples": [
              12450
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "SCHEDULED",
              "RUNNING",
              "COMPLETED",
              "FAILED",
              "TERMINATED"
            ],
            "description": "On a language: `SCHEDULED` (queued), `RUNNING`, `COMPLETED` (every file finished; some may have failed, see `metadata.failedFileCount`) or `FAILED` (every file failed). On the DITA map, rolled up from its languages: `FAILED` if any failed, else `RUNNING` if any is running, else `SCHEDULED` if any is queued, else `COMPLETED`.",
            "examples": [
              "COMPLETED"
            ]
          },
          "progress": {
            "description": "File counts by status.",
            "allOf": [
              {
                "$ref": "#/components/schemas/DitaMapProgressDto"
              }
            ]
          },
          "metadata": {
            "description": "Details of the upload and of the translated ZIP. More internal keys may appear; rely only on those listed.",
            "allOf": [
              {
                "$ref": "#/components/schemas/DitaMapMetadataDto"
              }
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the DITA map was uploaded.",
            "examples": [
              "2026-10-04T10:02:11.000Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the row last changed.",
            "examples": [
              "2026-10-04T10:21:07.000Z"
            ]
          }
        },
        "required": [
          "id",
          "name",
          "format",
          "sourceLanguage",
          "targetLanguage",
          "suite",
          "fk_tmId",
          "tmName",
          "consumed",
          "wordCount",
          "creditsConsumed",
          "status",
          "progress",
          "metadata",
          "createdAt",
          "updatedAt"
        ]
      },
      "DitaMapListResponseDto": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "description": "Normally `200`. If the listing fails, the HTTP status is still `200` but this is `500`, `success` is `false`, `message` says why and there is no `data`.",
            "examples": [
              200
            ]
          },
          "success": {
            "type": "boolean",
            "description": "Present (`false`) only when the listing failed.",
            "examples": [
              false
            ]
          },
          "message": {
            "type": "string",
            "description": "What happened, in plain words.",
            "examples": [
              "DITA Map ZIP grouped logs fetched successfully"
            ]
          },
          "data": {
            "description": "One page of DITA maps, each with its languages.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DitaMapSummaryDto"
            }
          },
          "totalLogs": {
            "type": "number",
            "description": "DITA maps that match the filters, across all pages.",
            "examples": [
              14
            ]
          }
        },
        "required": [
          "statusCode",
          "message",
          "data",
          "totalLogs"
        ]
      },
      "DitaMapMetadataDto": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "Always `DITAMAP`.",
            "examples": [
              "DITAMAP"
            ]
          },
          "ditaMapGroupId": {
            "type": "string",
            "description": "Internal group label shared by the map and its languages.",
            "examples": [
              "ditamap-1759572000000-1a2b3c4d"
            ]
          },
          "inputUrl": {
            "type": [
              "object",
              "null"
            ],
            "description": "URL of the uploaded source ZIP.",
            "examples": [
              "{{STORAGE_BASE_URL}}/0b6f/dita-map/0f3c2b1a/input/product-docs.zip"
            ]
          },
          "outputUrl": {
            "type": [
              "object",
              "null"
            ],
            "description": "URL of the translated ZIP, once Build the translated ZIP has run for a language; `null` when it has not, or when a retry changed a file since (build it again).",
            "examples": [
              "{{STORAGE_BASE_URL}}/0b6f/dita-map/7a1e4c2d/output/translated/product-docs-french_france.zip"
            ]
          },
          "targetLanguages": {
            "description": "On the DITA map: every target language of the map. Absent on a language.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "french_france",
                "german_germany"
              ]
            ]
          },
          "failedFileCount": {
            "type": "number",
            "description": "Files of this language whose translation failed.",
            "examples": [
              2
            ]
          },
          "translationZipDirty": {
            "type": "boolean",
            "description": "On a language: `true` when a file changed after the translated ZIP was last built, so the ZIP should be built again.",
            "examples": [
              false
            ]
          },
          "translationZipPartial": {
            "type": "boolean",
            "description": "On a language: `true` when the last translated ZIP was built with failed files left in the source language.",
            "examples": [
              false
            ]
          },
          "translationZipGeneratedAt": {
            "type": "string",
            "format": "date-time",
            "description": "On a language: when the translated ZIP was last built.",
            "examples": [
              "2026-10-04T10:21:07.000Z"
            ]
          },
          "error": {
            "type": [
              "object",
              "null"
            ],
            "description": "Why the language failed, for example when every file failed. `null` otherwise.",
            "examples": [
              null
            ]
          },
          "autoBackTranslation": {
            "type": "boolean",
            "description": "On a language: whether AI back-translation runs on each file once it is translated (set at upload).",
            "examples": [
              false
            ]
          },
          "autoProofreading": {
            "type": "boolean",
            "description": "On a language: whether AI proofreading runs on each file once it is translated (set at upload).",
            "examples": [
              false
            ]
          },
          "ditaMapInfo": {
            "description": "What the uploaded ZIP contains.",
            "allOf": [
              {
                "$ref": "#/components/schemas/DitaMapInfoDto"
              }
            ]
          }
        },
        "required": [
          "type",
          "ditaMapGroupId",
          "ditaMapInfo"
        ]
      },
      "DitaMapProgressDto": {
        "type": "object",
        "properties": {
          "total": {
            "type": "number",
            "description": "Files to translate. For a DITA map, the files of all its languages.",
            "examples": [
              42
            ]
          },
          "done": {
            "type": "number",
            "description": "Files translated (`COMPLETED`).",
            "examples": [
              40
            ]
          },
          "inProgress": {
            "type": "number",
            "description": "Files being translated (`RUNNING`).",
            "examples": [
              0
            ]
          },
          "failed": {
            "type": "number",
            "description": "Files whose translation failed (`FAILED`).",
            "examples": [
              2
            ]
          },
          "pending": {
            "type": "number",
            "description": "Files not started yet, including files of a language that has not started.",
            "examples": [
              0
            ]
          },
          "percent": {
            "type": "number",
            "description": "`done` as a percentage of `total`, rounded.",
            "examples": [
              95
            ]
          }
        },
        "required": [
          "total",
          "done",
          "inProgress",
          "failed",
          "pending",
          "percent"
        ]
      },
      "DitaMapSummaryDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the row.",
            "examples": [
              "0f3c2b1a-9d8e-4c7b-a6f5-e4d3c2b1a090"
            ]
          },
          "name": {
            "type": "string",
            "description": "Name of the DITA map (the `name` you sent, or the ZIP file name). A language row adds the language in brackets.",
            "examples": [
              "Q4-product-docs"
            ]
          },
          "format": {
            "type": "string",
            "enum": [
              "ditamap_zip",
              "ditamap"
            ],
            "description": "`ditamap_zip` for the DITA map, `ditamap` for one of its languages.",
            "examples": [
              "ditamap_zip"
            ]
          },
          "sourceLanguage": {
            "type": "string",
            "description": "Source language key.",
            "examples": [
              "english_united_states"
            ]
          },
          "targetLanguage": {
            "type": "string",
            "description": "Target language key. On the DITA map, every target language joined with `, `.",
            "examples": [
              "french_france, german_germany"
            ]
          },
          "suite": {
            "type": "string",
            "description": "Always `OFFICE`.",
            "examples": [
              "OFFICE"
            ]
          },
          "fk_tmId": {
            "type": [
              "object",
              "null"
            ],
            "format": "uuid",
            "description": "ID of the translation memory the map uses.",
            "examples": [
              "3e9b7c1d-2a4f-4b6e-8d0c-5f1a2b3c4d5e"
            ]
          },
          "tmName": {
            "type": [
              "object",
              "null"
            ],
            "description": "Name of that translation memory (`TM linked` when it no longer exists).",
            "examples": [
              "Product docs EN-FR"
            ]
          },
          "consumed": {
            "description": "Words processed, summed over the files.",
            "allOf": [
              {
                "$ref": "#/components/schemas/DitaMapWordsDto"
              }
            ]
          },
          "wordCount": {
            "type": "number",
            "description": "Same as `consumed.total_words`.",
            "examples": [
              12450
            ]
          },
          "creditsConsumed": {
            "type": "number",
            "description": "Same number as `wordCount`. A word count, not an amount of credits.",
            "examples": [
              12450
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "SCHEDULED",
              "RUNNING",
              "COMPLETED",
              "FAILED",
              "TERMINATED"
            ],
            "description": "On a language: `SCHEDULED` (queued), `RUNNING`, `COMPLETED` (every file finished; some may have failed, see `metadata.failedFileCount`) or `FAILED` (every file failed). On the DITA map, rolled up from its languages: `FAILED` if any failed, else `RUNNING` if any is running, else `SCHEDULED` if any is queued, else `COMPLETED`.",
            "examples": [
              "COMPLETED"
            ]
          },
          "progress": {
            "description": "File counts by status.",
            "allOf": [
              {
                "$ref": "#/components/schemas/DitaMapProgressDto"
              }
            ]
          },
          "metadata": {
            "description": "Details of the upload and of the translated ZIP. More internal keys may appear; rely only on those listed.",
            "allOf": [
              {
                "$ref": "#/components/schemas/DitaMapMetadataDto"
              }
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the DITA map was uploaded.",
            "examples": [
              "2026-10-04T10:02:11.000Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the row last changed.",
            "examples": [
              "2026-10-04T10:21:07.000Z"
            ]
          },
          "childProcesses": {
            "description": "One entry per target language, newest first.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DitaMapLanguageDto"
            }
          }
        },
        "required": [
          "id",
          "name",
          "format",
          "sourceLanguage",
          "targetLanguage",
          "suite",
          "fk_tmId",
          "tmName",
          "consumed",
          "wordCount",
          "creditsConsumed",
          "status",
          "progress",
          "metadata",
          "createdAt",
          "updatedAt",
          "childProcesses"
        ]
      },
      "DitaMapWordsDto": {
        "type": "object",
        "properties": {
          "playground_words": {
            "type": "number",
            "description": "Source words translated.",
            "examples": [
              12450
            ]
          },
          "ai_pr_words": {
            "type": "number",
            "description": "Words run through AI proofreading.",
            "examples": [
              0
            ]
          },
          "ai_tr_words": {
            "type": "number",
            "description": "Words run through AI transcreation.",
            "examples": [
              0
            ]
          },
          "ai_bt_words": {
            "type": "number",
            "description": "Words run through AI back-translation.",
            "examples": [
              0
            ]
          },
          "ai_qc_words": {
            "type": "number",
            "description": "Words run through an AI quality check.",
            "examples": [
              0
            ]
          },
          "total_words": {
            "type": "number",
            "description": "Sum of the counts above.",
            "examples": [
              12450
            ]
          }
        },
        "required": [
          "playground_words",
          "ai_pr_words",
          "ai_tr_words",
          "ai_bt_words",
          "ai_qc_words",
          "total_words"
        ]
      },
      "EditAnnotationDto": {
        "type": "object",
        "properties": {
          "x": {
            "type": "number",
            "description": "Horizontal position, as a percentage (0–100) of the image width from the left edge.",
            "examples": [
              42.5
            ]
          },
          "y": {
            "type": "number",
            "description": "Vertical position, as a percentage (0–100) of the image height from the top edge.",
            "examples": [
              18
            ]
          },
          "feedback": {
            "type": "string",
            "description": "What to change at this point. Annotations with empty feedback are ignored.",
            "examples": [
              "Replace the logo here with a gold star"
            ]
          }
        },
        "required": [
          "x",
          "y",
          "feedback"
        ]
      },
      "EditedAnalysisResponseDto": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "description": "Always `200`.",
            "examples": [
              200
            ]
          },
          "jobId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the job.",
            "examples": [
              "e7b9d10a-f259-460b-98c5-4c1efc8f4491"
            ]
          },
          "versionId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the new analysis version. It is now current and is being analyzed: poll Get the analysis before you translate.",
            "examples": [
              "a1c3e5f7-1234-4abc-9def-0123456789ab"
            ]
          },
          "versionNumber": {
            "type": "number",
            "description": "Its number among the job’s analysis versions.",
            "examples": [
              2
            ]
          },
          "imageUrl": {
            "type": "string",
            "description": "The edited image.",
            "examples": [
              "{{STORAGE_BASE_URL}}/3f8b2c1d-9e7a-4b6c-8d5e-1a2b3c4d5e6f/image-translator/edited/9a1b3c5d.png"
            ]
          }
        },
        "required": [
          "statusCode",
          "jobId",
          "versionId",
          "versionNumber",
          "imageUrl"
        ]
      },
      "EditedImageDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the new created image.",
            "examples": [
              "4f2b8c1e-6a3d-4b7e-9c2f-1a2b3c4d5e6f"
            ]
          },
          "prompt": {
            "type": "string",
            "description": "The prompt the image was made from. For an edit, the full instruction it ran with: your instructions, annotations and element changes composed into one.",
            "examples": [
              "A minimalist sale banner with a red gift box, festive vibe"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "COMPLETED"
            ],
            "description": "Always `COMPLETED`: the call returns once the image exists.",
            "examples": [
              "COMPLETED"
            ]
          },
          "channel": {
            "type": [
              "string",
              "null"
            ],
            "description": "Output channel the image was made for. `null` for an image generated from a prompt.",
            "examples": [
              null
            ]
          },
          "aspectRatio": {
            "type": [
              "string",
              "null"
            ],
            "description": "Aspect ratio the image was rendered at, such as `1:1`. `null` when none was set, and always for an edit.",
            "examples": [
              null
            ]
          },
          "assetId": {
            "type": [
              "string",
              "null"
            ],
            "description": "Always `null`: a new image is not in your assets until you call Save an image to assets.",
            "examples": [
              null
            ]
          },
          "savedToDrive": {
            "type": "boolean",
            "description": "Always `false` for a new image.",
            "examples": [
              false
            ]
          },
          "key": {
            "type": "string",
            "description": "Storage key of the image in your organization's storage. Pass it as `sourceKey` to translate the image.",
            "examples": [
              "0c9d8e7f-6a5b-4c3d-8e2f-1a0b9c8d7e6f/image-creator/7d1e2f3a-4b5c-4d6e-8f9a-0b1c2d3e4f5a.png"
            ]
          },
          "url": {
            "type": "string",
            "description": "Signed URL to download the image. It expires, so fetch a fresh one with List created images when you need it later.",
            "examples": [
              "{{STORAGE_BASE_URL}}/0c9d8e7f/image-creator/7d1e2f3a.png?X-Amz-Expires=3600&X-Amz-Signature=…"
            ]
          },
          "mimeType": {
            "type": "string",
            "description": "MIME type of the image.",
            "examples": [
              "image/png"
            ]
          },
          "size": {
            "type": "number",
            "description": "Size of the image in bytes.",
            "examples": [
              1482113
            ]
          },
          "editedFrom": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the image you edited. It is left unchanged.",
            "examples": [
              "1e2d3c4b-5a69-4788-9a0b-1c2d3e4f5a6b"
            ]
          }
        },
        "required": [
          "id",
          "prompt",
          "status",
          "channel",
          "aspectRatio",
          "assetId",
          "savedToDrive",
          "key",
          "url",
          "mimeType",
          "size",
          "editedFrom"
        ]
      },
      "EditedTranslationResponseDto": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "description": "Always `200`.",
            "examples": [
              200
            ]
          },
          "jobId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the job.",
            "examples": [
              "e7b9d10a-f259-460b-98c5-4c1efc8f4491"
            ]
          },
          "translationVersionId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the new translation, already finished.",
            "examples": [
              "b2d4f6a8-2345-4bcd-8ef0-123456789abc"
            ]
          },
          "versionNumber": {
            "type": "number",
            "description": "Its number among the job’s translations.",
            "examples": [
              2
            ]
          },
          "imageUrl": {
            "type": "string",
            "description": "The edited image.",
            "examples": [
              "{{STORAGE_BASE_URL}}/3f8b2c1d-9e7a-4b6c-8d5e-1a2b3c4d5e6f/image-translator/edited/9a1b3c5d.png"
            ]
          }
        },
        "required": [
          "statusCode",
          "jobId",
          "translationVersionId",
          "versionNumber",
          "imageUrl"
        ]
      },
      "EditImageDto": {
        "type": "object",
        "properties": {
          "instructions": {
            "type": "string",
            "description": "What to change in the image, in plain words.",
            "examples": [
              "Make the background deep blue and keep everything else as it is."
            ]
          },
          "maskImageBase64": {
            "type": "string",
            "description": "A mask the same size as the image, base64-encoded without a `data:` prefix. Painted areas mark where the edit may change the image.",
            "examples": [
              "iVBORw0KGgoAAAANSUhEUgAA…"
            ]
          },
          "maskImageMimeType": {
            "type": "string",
            "description": "MIME type of the mask. Defaults to `image/png`.",
            "examples": [
              "image/png"
            ]
          },
          "maskImageKey": {
            "type": "string",
            "description": "The mask as an upload, instead of `maskImageBase64`: the `uploadKey` from Get an upload URL for an edit (PNG, JPEG or WebP)."
          },
          "annotations": {
            "description": "Changes pinned to points on the image. Up to 10.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EditAnnotationDto"
            }
          },
          "elementEdits": {
            "description": "Changes to elements found by Detect image elements, one per element.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ElementEditDto"
            }
          },
          "referenceImages": {
            "description": "Images whose style or content the edit should follow. Up to 4.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EditReferenceImageDto"
            }
          },
          "referenceImageKeys": {
            "description": "Reference images as uploads: `uploadKey`s from Get an upload URL for an edit (PNG, JPEG or WebP). Up to 4 together with `referenceImages`.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "previewId": {
            "type": "string",
            "description": "Optional client-made UUID. While the image is drawn, rough preview frames are pushed to you on the Translate Photo live socket (`translate-photo:preview`) under this id — `<previewId>:<n>` per image when one request makes several. The response is the same either way."
          }
        }
      },
      "EditReferenceImageDto": {
        "type": "object",
        "properties": {
          "mimeType": {
            "type": "string",
            "description": "MIME type of the reference image.",
            "examples": [
              "image/jpeg"
            ]
          },
          "data": {
            "type": "string",
            "description": "The image bytes, base64-encoded, without a `data:` prefix.",
            "examples": [
              "/9j/4AAQSkZJRgABAQAAAQABAAD…"
            ]
          }
        },
        "required": [
          "mimeType",
          "data"
        ]
      },
      "EditVariantMaskDto": {
        "type": "object",
        "properties": {
          "prompt": {
            "type": "string",
            "description": "What to change, in plain words.",
            "examples": [
              "Make the headline yellow"
            ]
          },
          "maskImageKey": {
            "type": "string",
            "description": "Mask of the area to change, as an upload: the `uploadKey` from Get a mask upload URL, once the PNG is in storage. Use it instead of `maskImageBase64`. Leave both out to edit the whole image.",
            "examples": [
              "1f0c…/staged-uploads/7b9e….png"
            ]
          },
          "maskImageBase64": {
            "type": "string",
            "description": "Mask of the area to change, as a base64 PNG without a `data:` prefix. Prefer `maskImageKey`; when both are sent, this one is used. Leave both out to edit the whole image.",
            "examples": [
              "iVBORw0KGgoAAAANSUhEUgAA…"
            ]
          },
          "maskImageMimeType": {
            "type": "string",
            "description": "Type of the mask image.",
            "examples": [
              "image/png"
            ]
          },
          "modelConfig": {
            "type": "object",
            "description": "Image model override, as `{ \"imageModel\": \"…\" }`. Usually left out.",
            "examples": [
              {
                "imageModel": "gemini-3-pro-image"
              }
            ]
          }
        },
        "required": [
          "prompt"
        ]
      },
      "ElementEditBodyDoc": {
        "type": "object",
        "properties": {
          "elementDescription": {
            "type": "string",
            "description": "The element to change, described in words. Required unless you send `edits`.",
            "examples": [
              "the red banner behind the headline"
            ]
          },
          "instruction": {
            "type": "string",
            "description": "What to change about it. Required unless you send `edits`.",
            "examples": [
              "make it dark blue"
            ]
          },
          "edits": {
            "type": "string",
            "description": "Several edits applied in one pass (one charge, one new version), as a JSON array of `{ elementDescription, instruction }` in a string. Replaces the two fields above.",
            "examples": [
              "[{\"elementDescription\":\"the red banner behind the headline\",\"instruction\":\"make it dark blue\"}]"
            ]
          },
          "translationVersionId": {
            "type": "string",
            "format": "uuid",
            "description": "Edit this translation and save the result as a new translation. Leave it out to edit the current analysis image instead: that makes a new analysis version, which is analyzed again for free.",
            "examples": [
              "b2d4f6a8-2345-4bcd-8ef0-123456789abc"
            ]
          },
          "file": {
            "contentMediaType": "application/octet-stream",
            "description": "Optional. An image to edit instead of the stored one, up to 10 MB (multipart). Or send `uploadKey` instead."
          },
          "uploadKey": {
            "type": "string",
            "description": "Optional, instead of `file`: the `uploadKey` from Get an upload URL (`kind: canvas`) of the image to edit, in a JSON body."
          }
        }
      },
      "ElementEditDto": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string",
            "description": "Label of the element to change, such as the `name` returned by Detect image elements.",
            "examples": [
              "Headline"
            ]
          },
          "content": {
            "type": "string",
            "description": "What the element shows now, such as its current words.",
            "examples": [
              "MEGA SALE 50% OFF"
            ]
          },
          "instruction": {
            "type": "string",
            "description": "The change to make to this element. Element changes with an empty instruction are ignored.",
            "examples": [
              "Change the text to \"FESTIVE SALE 40% OFF\""
            ]
          }
        },
        "required": [
          "label",
          "instruction"
        ]
      },
      "ElementProtectionDto": {
        "type": "object",
        "properties": {
          "level": {
            "type": "string",
            "enum": [
              "immutable",
              "protected",
              "review_required",
              "editable"
            ],
            "description": "How freely the element may change. Text on an `immutable` element is kept unless an override says otherwise.",
            "examples": [
              "protected"
            ]
          },
          "reason": {
            "type": "string",
            "description": "Why the element has this level.",
            "examples": [
              "Brand logo must not change."
            ]
          }
        },
        "required": [
          "level",
          "reason"
        ]
      },
      "ErrorResponse": {
        "type": "object",
        "description": "Error body returned for every 4xx and 5xx response.",
        "required": [
          "statusCode",
          "message"
        ],
        "properties": {
          "statusCode": {
            "type": "integer",
            "description": "HTTP status code, repeated in the body.",
            "examples": [
              404
            ]
          },
          "message": {
            "description": "What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.",
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ],
            "examples": [
              "Booking not found"
            ]
          },
          "error": {
            "type": "string",
            "description": "Short name of the status.",
            "examples": [
              "Not Found"
            ]
          }
        }
      },
      "ExportedVariantDto": {
        "type": "object",
        "properties": {
          "variantId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the variant.",
            "examples": [
              "7c1e4a9b-2d3f-4e5a-8b6c-9d0e1f2a3b4c"
            ]
          },
          "filename": {
            "type": "string",
            "description": "Suggested file name: design name and pixel size.",
            "examples": [
              "Summer_sale_banner-1080x1920.png"
            ]
          },
          "contentType": {
            "type": "string",
            "enum": [
              "image/png",
              "image/jpeg"
            ],
            "description": "Type of the image.",
            "examples": [
              "image/png"
            ]
          },
          "base64": {
            "type": "string",
            "description": "The image, base64-encoded.",
            "examples": [
              "iVBORw0KGgoAAAANSUhEUgAA…"
            ]
          }
        },
        "required": [
          "variantId",
          "filename",
          "contentType",
          "base64"
        ]
      },
      "ExportVariantsDataDto": {
        "type": "object",
        "properties": {
          "results": {
            "description": "The variants that were exported.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ExportedVariantDto"
            }
          },
          "failed": {
            "description": "The variants that could not be exported.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FailedExportDto"
            }
          }
        },
        "required": [
          "results",
          "failed"
        ]
      },
      "ExportVariantsDto": {
        "type": "object",
        "properties": {
          "variantIds": {
            "description": "IDs of the variants to export. Duplicates are ignored.",
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "examples": [
              [
                "7c1e4a9b-2d3f-4e5a-8b6c-9d0e1f2a3b4c"
              ]
            ]
          },
          "mode": {
            "type": "string",
            "enum": [
              "quality",
              "exact"
            ],
            "default": "quality",
            "description": "`quality` keeps the size the image was rendered at; `exact` resizes it to the variant’s `width` × `height`.",
            "examples": [
              "exact"
            ]
          },
          "format": {
            "type": "string",
            "enum": [
              "png",
              "jpeg",
              "jpg"
            ],
            "default": "png",
            "description": "File format. `jpg` is the same as `jpeg`.",
            "examples": [
              "png"
            ]
          }
        },
        "required": [
          "variantIds"
        ]
      },
      "ExportVariantsResponseDto": {
        "type": "object",
        "properties": {
          "data": {
            "description": "The result.",
            "allOf": [
              {
                "$ref": "#/components/schemas/ExportVariantsDataDto"
              }
            ]
          }
        },
        "required": [
          "data"
        ]
      },
      "ExtractBrandKitDto": {
        "type": "object",
        "properties": {
          "source": {
            "type": "string",
            "enum": [
              "url",
              "images",
              "pdf"
            ],
            "description": "What to read the brand from: `url` (a public website, sent in `url`), `images` (sent in `images`) or `pdf` (a brand book, sent in `pdf`).",
            "examples": [
              "images"
            ]
          },
          "brandName": {
            "type": "string",
            "description": "Name of the brand, if you know it. It is used as the `name` of the result.",
            "examples": [
              "Northwind Coffee"
            ]
          },
          "url": {
            "type": "string",
            "description": "A public website address, required when `source` is `url`. `http://` is fetched as `https://`.",
            "examples": [
              "https://www.acme.com"
            ]
          },
          "images": {
            "description": "Images that show the brand, such as screenshots or ads, base64. Up to 6. When `source` is `images`, send these or `imageUploadKeys`.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ExtractFileDto"
            }
          },
          "imageUploadKeys": {
            "description": "The images, put in storage first: the `uploadKey`s from Get an upload URL (`kind: image`), one per image, up to 6 and 15 MB in all. The files then never pass through this API. Used instead of `images` when both are sent.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "1f0c…/staged-uploads/7b9e….png"
              ]
            ]
          },
          "pdf": {
            "description": "A brand book or style guide as a PDF, base64. When `source` is `pdf`, send this or `pdfUploadKey`.",
            "allOf": [
              {
                "$ref": "#/components/schemas/ExtractFileDto"
              }
            ]
          },
          "pdfUploadKey": {
            "type": "string",
            "description": "The PDF, put in storage first: the `uploadKey` from Get an upload URL (`kind: pdf`), up to 15 MB. The file then never passes through this API. Used instead of `pdf` when both are sent.",
            "examples": [
              "1f0c…/staged-uploads/7b9e….pdf"
            ]
          }
        },
        "required": [
          "source"
        ]
      },
      "ExtractedBrandIdentityDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the brand: your `brandName` when you sent one, otherwise the name found. Empty when none was found.",
            "examples": [
              "Northwind Coffee"
            ]
          },
          "website": {
            "type": "string",
            "description": "The brand's website, as found or, for `url`, the address you sent. Empty when unknown.",
            "examples": [
              "https://www.northwindcoffee.com"
            ]
          },
          "toneOfVoice": {
            "type": "string",
            "description": "How the brand speaks. Empty when unknown.",
            "examples": [
              "Friendly and down to earth, with a love of craft."
            ]
          },
          "headingFont": {
            "type": "string",
            "description": "Font for headings. Empty when unknown.",
            "examples": [
              "Playfair Display"
            ]
          },
          "bodyFont": {
            "type": "string",
            "description": "Font for body text. Empty when unknown.",
            "examples": [
              "Source Sans Pro"
            ]
          },
          "primaryColors": {
            "description": "Brand colors as upper-case hex codes, main color first. Up to 5; can be empty.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "#3B2416",
                "#E8D5B7"
              ]
            ]
          },
          "visualStyles": {
            "description": "Words that describe the visual style. Up to 20.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "warm",
                "artisanal"
              ]
            ]
          },
          "source": {
            "type": "string",
            "enum": [
              "url",
              "images",
              "pdf"
            ],
            "description": "The `source` you sent.",
            "examples": [
              "url"
            ]
          }
        },
        "required": [
          "name",
          "website",
          "toneOfVoice",
          "headingFont",
          "bodyFont",
          "primaryColors",
          "visualStyles",
          "source"
        ]
      },
      "ExtractFileDto": {
        "type": "object",
        "properties": {
          "mimeType": {
            "type": "string",
            "description": "MIME type of the file. Images: PNG, JPG, WebP, HEIC or HEIF. A PDF: `application/pdf`.",
            "examples": [
              "image/png"
            ]
          },
          "data": {
            "type": "string",
            "description": "The file, base64-encoded, without a `data:` prefix.",
            "examples": [
              "iVBORw0KGgoAAAANSUhEUgAA…"
            ]
          }
        },
        "required": [
          "mimeType",
          "data"
        ]
      },
      "FailedExportDto": {
        "type": "object",
        "properties": {
          "variantId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the variant that could not be exported.",
            "examples": [
              "9d8c7b6a-5f4e-4d3c-8b2a-1f0e9d8c7b6a"
            ]
          },
          "error": {
            "type": "string",
            "description": "Why, such as `Variant not found` or `Variant has no generated image to export`.",
            "examples": [
              "Variant has no generated image to export"
            ]
          }
        },
        "required": [
          "variantId",
          "error"
        ]
      },
      "FixVariantIssuesDto": {
        "type": "object",
        "properties": {
          "selectedIssueIds": {
            "description": "Issues to fix, from the variant’s `reviewData`: the `original_id` of a text marked `typo` or `missing` or of a visual marked `error` or `missing`, or `__hallucination_<n>` for the `n`th box of `hallucinated_text_boxes`.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "text_1",
                "__hallucination_0"
              ]
            ]
          },
          "additionalPrompt": {
            "type": "string",
            "description": "Extra instructions for the fix, in plain words.",
            "examples": [
              "Keep the logo exactly as in the original."
            ]
          },
          "modelConfig": {
            "type": "object",
            "description": "Not used by this route.",
            "examples": [
              {}
            ]
          }
        },
        "required": [
          "selectedIssueIds"
        ]
      },
      "GenerateDitaZipBodyDto": {
        "type": "object",
        "properties": {
          "allowPartial": {
            "type": "boolean",
            "description": "Build the ZIP even if some files failed: failed files are copied in the source language. Defaults to `false`, which refuses while any file has failed.",
            "default": false,
            "examples": [
              false
            ]
          }
        }
      },
      "GenerateDitaZipDataDto": {
        "type": "object",
        "properties": {
          "playgroundLogId": {
            "type": "string",
            "format": "uuid",
            "description": "When built: the language ID.",
            "examples": [
              "7a1e4c2d-5b3f-4e6a-9c8d-1f2e3d4c5b6a"
            ]
          },
          "url": {
            "type": "string",
            "description": "When built: URL of the translated ZIP.",
            "examples": [
              "{{STORAGE_BASE_URL}}/0b6f/dita-map/7a1e4c2d/output/translated/product-docs-french_france.zip"
            ]
          },
          "failedFileCount": {
            "type": "number",
            "description": "Files whose translation failed.",
            "examples": [
              0
            ]
          },
          "totalFiles": {
            "type": "number",
            "description": "Translatable files in this language.",
            "examples": [
              42
            ]
          },
          "inProgressCount": {
            "type": "number",
            "description": "When not built because files are still running: how many.",
            "examples": [
              3
            ]
          },
          "requiresConfirmation": {
            "type": "boolean",
            "description": "When not built because files failed: always `true`. Send `allowPartial: true` to build anyway.",
            "examples": [
              true
            ]
          },
          "canGeneratePartial": {
            "type": "boolean",
            "description": "When not built because files failed: always `true`.",
            "examples": [
              true
            ]
          },
          "xmlFilesWritten": {
            "type": "number",
            "description": "When built: same as `translatableFilesWritten`.",
            "examples": [
              42
            ]
          },
          "translatableFilesWritten": {
            "type": "number",
            "description": "When built: translatable files written into the ZIP.",
            "examples": [
              42
            ]
          },
          "generatedWithFailures": {
            "type": "boolean",
            "description": "When built: `true` when failed files were copied in the source language.",
            "examples": [
              false
            ]
          },
          "originalFallbackCount": {
            "type": "number",
            "description": "When built: translatable files copied in the source language because they had no translation.",
            "examples": [
              0
            ]
          }
        }
      },
      "GenerateDitaZipResponseDto": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "description": "`true` when the ZIP was built, `false` when it was not.",
            "examples": [
              true
            ]
          },
          "statusCode": {
            "type": "number",
            "enum": [
              200,
              412
            ],
            "description": "`200` when built. `412` when it was not: files are still being translated, files failed and `allowPartial` was not set, or no file has a translation yet. The HTTP status is `201` either way, so check this field.",
            "examples": [
              200
            ]
          },
          "message": {
            "type": "string",
            "description": "What happened, in plain words.",
            "examples": [
              "Translated ZIP generated successfully."
            ]
          },
          "data": {
            "description": "The result. Absent when no file has a translation yet.",
            "allOf": [
              {
                "$ref": "#/components/schemas/GenerateDitaZipDataDto"
              }
            ]
          }
        },
        "required": [
          "success",
          "statusCode",
          "message"
        ]
      },
      "GenerateImageDto": {
        "type": "object",
        "properties": {
          "prompt": {
            "type": "string",
            "description": "Text prompt describing the image to generate.",
            "examples": [
              "A minimalist sale banner with a red gift box, festive vibe"
            ]
          },
          "previewId": {
            "type": "string",
            "description": "Optional client-made UUID. While the image is drawn, rough preview frames are pushed to you on the Translate Photo live socket (`translate-photo:preview`) under this id — `<previewId>:<n>` per image when one request makes several. The response is the same either way."
          }
        },
        "required": [
          "prompt"
        ]
      },
      "GetAgentTaskResponseDto": {
        "type": "object",
        "properties": {
          "data": {
            "description": "The task.",
            "allOf": [
              {
                "$ref": "#/components/schemas/AgentTaskDto"
              }
            ]
          }
        },
        "required": [
          "data"
        ]
      },
      "GetDesignAssetResponseDto": {
        "type": "object",
        "properties": {
          "data": {
            "description": "The design, with its variants and elements.",
            "allOf": [
              {
                "$ref": "#/components/schemas/DesignAssetDetailDto"
              }
            ]
          }
        },
        "required": [
          "data"
        ]
      },
      "GetDesignVariantResponseDto": {
        "type": "object",
        "properties": {
          "data": {
            "description": "The variant, with its design and active version.",
            "allOf": [
              {
                "$ref": "#/components/schemas/DesignVariantDetailDto"
              }
            ]
          }
        },
        "required": [
          "data"
        ]
      },
      "GetImageJobResponseDto": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "description": "Always `200`.",
            "examples": [
              200
            ]
          },
          "data": {
            "description": "The job.",
            "allOf": [
              {
                "$ref": "#/components/schemas/ImageJobDto"
              }
            ]
          }
        },
        "required": [
          "statusCode",
          "data"
        ]
      },
      "GetVariantVersionResponseDto": {
        "type": "object",
        "properties": {
          "data": {
            "description": "The version, with `isActive`.",
            "allOf": [
              {
                "$ref": "#/components/schemas/DesignVariantVersionDto"
              }
            ]
          }
        },
        "required": [
          "data"
        ]
      },
      "HallucinatedIdsDto": {
        "type": "object",
        "properties": {
          "text": {
            "description": "Text IDs the reviewer reported that the design does not have; dropped from the review.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              []
            ]
          },
          "visual": {
            "description": "Visual IDs the reviewer reported that the design does not have; dropped from the review.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              []
            ]
          }
        },
        "required": [
          "text",
          "visual"
        ]
      },
      "ImageCreatorUploadPresignDto": {
        "type": "object",
        "properties": {
          "fileName": {
            "type": "string",
            "description": "Name of the file you will upload. Its extension must be one this step takes.",
            "examples": [
              "catalogue.csv"
            ]
          },
          "contentType": {
            "type": "string",
            "description": "The file's type, sent again as the `Content-Type` of the `PUT` (the URL is signed over it). `application/octet-stream` is accepted when the type is unknown.",
            "examples": [
              "text/csv"
            ]
          },
          "size": {
            "type": "number",
            "description": "Exact size of the file in bytes. It is part of the signed URL: storage refuses a `PUT` of any other length.",
            "examples": [
              524288
            ]
          },
          "kind": {
            "type": "string",
            "enum": [
              "picture",
              "document"
            ],
            "default": "picture",
            "description": "`picture` (the default): a mask or a reference image for Edit a created image, a crop, or an image for a Quick Create turn: PNG, JPEG or WebP, up to 25 MB. `document`: a document for a Quick Create turn (PDF, Word, PowerPoint, Excel, CSV, text), up to 8 MB."
          }
        },
        "required": [
          "fileName",
          "contentType",
          "size"
        ]
      },
      "ImageJobDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the job.",
            "examples": [
              "e7b9d10a-f259-460b-98c5-4c1efc8f4491"
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Name of the job, from the uploaded file name unless renamed.",
            "examples": [
              "summer-sale"
            ]
          },
          "sourceUrl": {
            "type": "string",
            "description": "URL of the original image.",
            "examples": [
              "{{STORAGE_BASE_URL}}/3f8b2c1d-9e7a-4b6c-8d5e-1a2b3c4d5e6f/image-translator/uploads/5b7c9d1e.png"
            ]
          },
          "compressedUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "URL of a smaller copy used for analysis, when the original is over 2 MB.",
            "examples": [
              "{{STORAGE_BASE_URL}}/3f8b2c1d-9e7a-4b6c-8d5e-1a2b3c4d5e6f/image-translator/compressed/8e2f4a6b.jpg"
            ]
          },
          "sourceLanguage": {
            "type": "string",
            "description": "Language of the text in the image.",
            "examples": [
              "english_united_states"
            ]
          },
          "targetLanguage": {
            "type": "string",
            "description": "The first (or only) target language.",
            "examples": [
              "french_france"
            ]
          },
          "targetLanguages": {
            "description": "Every target language, when the job was started with several. Null for one language.",
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "french_france",
                "hindi_india"
              ]
            ]
          },
          "currentVersionId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The current analysis version: the one the next translation is built from.",
            "examples": [
              "a1c3e5f7-1234-4abc-9def-0123456789ab"
            ]
          },
          "source": {
            "type": "string",
            "enum": [
              "translate-photo",
              "hyper-local"
            ],
            "description": "Where the job came from: `translate-photo` (this API and the app) or `hyper-local` (Hyperlocal templates).",
            "examples": [
              "translate-photo"
            ]
          },
          "data": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "description": "Your own context, from `data` when you started the job.",
            "examples": [
              {
                "campaign": "summer-2026",
                "market": "FR"
              }
            ]
          },
          "assets": {
            "description": "Images attached to the job in the editor. Often null.",
            "type": [
              "array",
              "null"
            ],
            "items": {
              "$ref": "#/components/schemas/JobAssetDto"
            }
          },
          "consumed": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "description": "An older per-step tally kept for the web app. It is not what was charged: use Get a job's credit usage.",
            "examples": [
              {
                "configure": [
                  {
                    "analyze": 50,
                    "ts": "2026-06-12T18:30:00.000Z"
                  }
                ],
                "review": [],
                "totalConsumedInConfigure": 50,
                "totalConsumedInReview": 0,
                "fastMode": false
              }
            ]
          },
          "fk_tmId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The translation memory the job uses. Null without one.",
            "examples": [
              "550e8400-e29b-41d4-a716-446655440000"
            ]
          },
          "fk_projectId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The project the job is filed under. Null when unassigned.",
            "examples": [
              "7d1e2f3a-4b5c-4d6e-8f90-a1b2c3d4e5f6"
            ]
          },
          "fk_memberId": {
            "type": "string",
            "format": "uuid",
            "description": "The member who started the job.",
            "examples": [
              "1b2c3d4e-5f60-4a7b-8c9d-0e1f2a3b4c5d"
            ]
          },
          "fk_orgId": {
            "type": "string",
            "format": "uuid",
            "description": "Your organization.",
            "examples": [
              "3f8b2c1d-9e7a-4b6c-8d5e-1a2b3c4d5e6f"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the job was created.",
            "examples": [
              "2026-06-12T18:30:00.000Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the job last changed.",
            "examples": [
              "2026-06-12T18:38:00.000Z"
            ]
          },
          "deletedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Always null: deleted jobs are not returned.",
            "examples": [
              null
            ]
          }
        },
        "required": [
          "id",
          "name",
          "sourceUrl",
          "compressedUrl",
          "sourceLanguage",
          "targetLanguage",
          "targetLanguages",
          "currentVersionId",
          "source",
          "data",
          "assets",
          "consumed",
          "fk_tmId",
          "fk_projectId",
          "fk_memberId",
          "fk_orgId",
          "createdAt",
          "updatedAt",
          "deletedAt"
        ]
      },
      "ImageTranslationJobListItemDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the job.",
            "examples": [
              "e7b9d10a-f259-460b-98c5-4c1efc8f4491"
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Name of the job.",
            "examples": [
              "summer-sale"
            ]
          },
          "projectId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The project it is filed under. Null when unassigned.",
            "examples": [
              null
            ]
          },
          "sourceUrl": {
            "type": "string",
            "description": "URL of the original image.",
            "examples": [
              "{{STORAGE_BASE_URL}}/3f8b2c1d-9e7a-4b6c-8d5e-1a2b3c4d5e6f/image-translator/uploads/5b7c9d1e.png"
            ]
          },
          "sourceLanguage": {
            "type": "string",
            "description": "Language of the text in the image.",
            "examples": [
              "english_united_states"
            ]
          },
          "targetLanguage": {
            "type": "string",
            "description": "The first (or only) target language.",
            "examples": [
              "french_france"
            ]
          },
          "compressedUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "URL of a smaller copy, when the original is over 2 MB.",
            "examples": [
              null
            ]
          },
          "source": {
            "type": "string",
            "enum": [
              "translate-photo",
              "hyper-local"
            ],
            "description": "Where the job came from.",
            "examples": [
              "translate-photo"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the job was created.",
            "examples": [
              "2026-06-12T18:30:00.000Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it last changed.",
            "examples": [
              "2026-06-12T18:38:00.000Z"
            ]
          },
          "tmName": {
            "type": [
              "string",
              "null"
            ],
            "description": "Name of its translation memory. Null without one.",
            "examples": [
              "Retail EN-FR"
            ]
          },
          "totalCredits": {
            "type": "number",
            "description": "An older tally kept for the web app, not what was charged. Use Get a job's credit usage.",
            "examples": [
              0
            ]
          },
          "fastMode": {
            "type": "boolean",
            "description": "Whether it was started in fast mode.",
            "examples": [
              false
            ]
          },
          "latestAnalysisStatus": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "SCHEDULED",
              "RUNNING",
              "COMPLETED",
              "FAILED"
            ],
            "description": "State of its newest analysis version.",
            "examples": [
              "COMPLETED"
            ]
          },
          "versionCount": {
            "type": "number",
            "description": "How many versions it has: analysis versions (except in fast mode) plus translations.",
            "examples": [
              2
            ]
          },
          "translationVersions": {
            "description": "Its translations, newest first.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TranslationVersionListItemDto"
            }
          },
          "analysisVersions": {
            "description": "Its analysis versions, newest first.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AnalysisVersionListItemDto"
            }
          },
          "assignees": {
            "description": "Members assigned to it.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/JobAssigneeDto"
            }
          }
        },
        "required": [
          "id",
          "name",
          "projectId",
          "sourceUrl",
          "sourceLanguage",
          "targetLanguage",
          "source",
          "createdAt",
          "updatedAt",
          "totalCredits",
          "fastMode",
          "versionCount",
          "translationVersions",
          "analysisVersions",
          "assignees"
        ]
      },
      "InitializeDitaMapDataDto": {
        "type": "object",
        "properties": {
          "groupPlaygroundLogId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the DITA map as a whole (the uploaded ZIP). It is the `id` of the row in List DITA maps.",
            "examples": [
              "0f3c2b1a-9d8e-4c7b-a6f5-e4d3c2b1a090"
            ]
          },
          "playgroundLogIds": {
            "description": "One ID per target language, in the order of `targetLanguages`. Use these with Get the file tree, Build the translated ZIP and Retry failed files.",
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "examples": [
              [
                "7a1e4c2d-5b3f-4e6a-9c8d-1f2e3d4c5b6a"
              ]
            ]
          },
          "ditaMapGroupId": {
            "type": "string",
            "description": "Internal group label shared by the map and its languages.",
            "examples": [
              "ditamap-1759572000000-1a2b3c4d"
            ]
          },
          "wordCount": {
            "type": "number",
            "description": "Translatable source words in the ZIP, counted once (not multiplied by the number of languages).",
            "examples": [
              12450
            ]
          },
          "xmlFileCount": {
            "type": "number",
            "description": "Translatable files in the ZIP. Despite the name it counts SVG files too, so it equals `translatableFileCount`.",
            "examples": [
              42
            ]
          },
          "svgFileCount": {
            "type": "number",
            "description": "SVG files in the ZIP whose text is translated.",
            "examples": [
              3
            ]
          },
          "translatableFileCount": {
            "type": "number",
            "description": "Files that are translated: `.xml`, `.dita`, `.ditamap` and `.svg`. Every other file is copied into the translated ZIP unchanged.",
            "examples": [
              42
            ]
          },
          "targetLanguages": {
            "description": "The target languages you sent, without duplicates.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "french_france",
                "german_germany"
              ]
            ]
          }
        },
        "required": [
          "groupPlaygroundLogId",
          "playgroundLogIds",
          "ditaMapGroupId",
          "wordCount",
          "xmlFileCount",
          "svgFileCount",
          "translatableFileCount",
          "targetLanguages"
        ]
      },
      "InitializeDitaMapResponseDto": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Always `true`.",
            "examples": [
              true
            ]
          },
          "statusCode": {
            "type": "number",
            "description": "Always `202`: the translation was queued. (The HTTP status of the response is `201`.)",
            "examples": [
              202
            ]
          },
          "message": {
            "type": "string",
            "description": "What happened, in plain words.",
            "examples": [
              "DITA Map auto-translation queued for 2 language(s). Review/edit files, then generate the translated ZIP when ready."
            ]
          },
          "data": {
            "description": "The IDs of the new DITA map and of each of its languages.",
            "allOf": [
              {
                "$ref": "#/components/schemas/InitializeDitaMapDataDto"
              }
            ]
          }
        },
        "required": [
          "success",
          "statusCode",
          "message",
          "data"
        ]
      },
      "InsufficientCreditsErrorDto": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "description": "HTTP status code.",
            "examples": [
              402
            ]
          },
          "error": {
            "type": "string",
            "description": "Always `InsufficientCredits`.",
            "examples": [
              "InsufficientCredits"
            ]
          },
          "message": {
            "type": "string",
            "description": "What happened, in plain words.",
            "examples": [
              "You don't have enough credits to start this. It needs 120; you have 45."
            ]
          },
          "required": {
            "type": "number",
            "description": "Credits this request needs.",
            "examples": [
              120
            ]
          },
          "available": {
            "type": "number",
            "description": "Credits your organization can spend now.",
            "examples": [
              45
            ]
          },
          "owed": {
            "type": "number",
            "description": "Credits your organization owes from earlier jobs (0 when nothing is owed). While anything is owed, every paid request is refused until it is repaid.",
            "examples": [
              0
            ]
          }
        },
        "required": [
          "statusCode",
          "error",
          "message",
          "required",
          "available",
          "owed"
        ]
      },
      "JobAssetDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the asset.",
            "examples": [
              "c3e5a7b9-3456-4cde-9f01-23456789abcd"
            ]
          },
          "name": {
            "type": "string",
            "description": "Its name, from the uploaded file name.",
            "examples": [
              "logo"
            ]
          },
          "url": {
            "type": "string",
            "description": "URL of the image.",
            "examples": [
              "{{STORAGE_BASE_URL}}/3f8b2c1d-9e7a-4b6c-8d5e-1a2b3c4d5e6f/image-translator/library/6f8a0c2e.png"
            ]
          }
        },
        "required": [
          "id",
          "name",
          "url"
        ]
      },
      "JobAssigneeDto": {
        "type": "object",
        "properties": {
          "memberId": {
            "type": "string",
            "format": "uuid",
            "description": "The assigned member.",
            "examples": [
              "1b2c3d4e-5f60-4a7b-8c9d-0e1f2a3b4c5d"
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Their name.",
            "examples": [
              "Priya Sharma"
            ]
          },
          "image": {
            "type": [
              "string",
              "null"
            ],
            "description": "URL of their profile picture.",
            "examples": [
              null
            ]
          },
          "languages": {
            "description": "The languages they cover on this job. `[\"*\"]` for the whole job.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "french_france"
              ]
            ]
          }
        },
        "required": [
          "memberId",
          "name",
          "image",
          "languages"
        ]
      },
      "JobUsageResponseDto": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "description": "Always `200`.",
            "examples": [
              200
            ]
          },
          "totalCredits": {
            "type": "number",
            "description": "Credits the job cost in total, after refunds.",
            "examples": [
              350
            ]
          },
          "creditsRefunded": {
            "type": "number",
            "description": "Credits given back for runs that failed on our side.",
            "examples": [
              0
            ]
          },
          "creditsAdjusted": {
            "type": "number",
            "description": "Credits moved by later corrections to a charge.",
            "examples": [
              0
            ]
          },
          "operations": {
            "description": "The cost per operation.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UsageOperationDto"
            }
          }
        },
        "required": [
          "statusCode",
          "totalCredits",
          "creditsRefunded",
          "creditsAdjusted",
          "operations"
        ]
      },
      "LayoutPlacementDto": {
        "type": "object",
        "properties": {
          "element_id": {
            "type": "string",
            "description": "ID of the element from the design analysis. Use it in `perElementNotes` of Revise a layout plan.",
            "examples": [
              "text_1"
            ]
          },
          "action": {
            "type": "string",
            "enum": [
              "keep",
              "move",
              "resize",
              "restyle",
              "remove"
            ],
            "description": "What the plan does with the element.",
            "examples": [
              "move"
            ]
          },
          "layout": {
            "description": "Where the element goes on the new canvas.",
            "allOf": [
              {
                "$ref": "#/components/schemas/PlacementLayoutDto"
              }
            ]
          },
          "target_html_representation": {
            "type": "string",
            "description": "Restyled text as HTML, when the plan restyles a text.",
            "examples": [
              "<b>Summer Sale</b>"
            ]
          },
          "notes": {
            "type": "string",
            "description": "Planner notes on the element.",
            "examples": [
              "Moved up to stay clear of the story UI."
            ]
          }
        },
        "required": [
          "element_id",
          "action",
          "layout"
        ]
      },
      "LayoutPlanBodyDto": {
        "type": "object",
        "properties": {
          "reasoning": {
            "type": "string",
            "description": "Why the planner chose this layout.",
            "examples": [
              "The tall format leaves room to stack the headline above the product."
            ]
          },
          "safe_zone_strategy": {
            "type": "string",
            "description": "How the plan keeps content inside safe margins.",
            "examples": [
              "Keep text 10% away from the top and bottom edges."
            ]
          },
          "placements": {
            "description": "One placement per element of the design.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LayoutPlacementDto"
            }
          },
          "final_image_prompt": {
            "type": "string",
            "description": "Prompt the image is rendered from. For Flash variants it is a fixed placeholder.",
            "examples": [
              "A 1080x1920 summer sale story: headline \"Summer Sale\" at the top…"
            ]
          }
        },
        "required": [
          "final_image_prompt"
        ]
      },
      "LayoutPlanDto": {
        "type": "object",
        "properties": {
          "plan": {
            "description": "The plan itself.",
            "allOf": [
              {
                "$ref": "#/components/schemas/LayoutPlanBodyDto"
              }
            ]
          },
          "warnings": {
            "description": "Problems found when checking the plan (Pro only).",
            "allOf": [
              {
                "$ref": "#/components/schemas/LayoutPlanWarningsDto"
              }
            ]
          },
          "generatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the plan was made (Pro only).",
            "examples": [
              "2026-10-04T09:30:00.000Z"
            ]
          }
        },
        "required": [
          "plan"
        ]
      },
      "LayoutPlanWarningsDto": {
        "type": "object",
        "properties": {
          "unknownIds": {
            "description": "Element IDs the planner used that the design does not have.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              []
            ]
          },
          "outOfRangeBoxes": {
            "description": "Element IDs whose box fell outside the canvas.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              []
            ]
          }
        },
        "required": [
          "unknownIds",
          "outOfRangeBoxes"
        ]
      },
      "LibraryAssetDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the library asset.",
            "examples": [
              "c3e5a7b9-3456-4cde-9f01-23456789abcd"
            ]
          },
          "name": {
            "type": "string",
            "description": "Its name, from the file name.",
            "examples": [
              "brand-logo"
            ]
          },
          "url": {
            "type": "string",
            "description": "URL of the image. Use it as `assetUrl` or as a logo replacement `url`.",
            "examples": [
              "{{STORAGE_BASE_URL}}/3f8b2c1d-9e7a-4b6c-8d5e-1a2b3c4d5e6f/image-translator/library/6f8a0c2e.png"
            ]
          },
          "mimeType": {
            "type": [
              "string",
              "null"
            ],
            "description": "Its media type. Not returned by Upload a library asset.",
            "examples": [
              "image/png"
            ]
          }
        },
        "required": [
          "id",
          "name",
          "url"
        ]
      },
      "LibraryAssetListResponseDto": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "description": "Always `200`.",
            "examples": [
              200
            ]
          },
          "assets": {
            "description": "Every asset in your organization’s library, newest first.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LibraryAssetDto"
            }
          }
        },
        "required": [
          "statusCode",
          "assets"
        ]
      },
      "LibraryAssetResponseDto": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "description": "Always `200`.",
            "examples": [
              200
            ]
          },
          "asset": {
            "description": "The new asset.",
            "allOf": [
              {
                "$ref": "#/components/schemas/LibraryAssetDto"
              }
            ]
          }
        },
        "required": [
          "statusCode",
          "asset"
        ]
      },
      "ListDesignAssetsResponseDto": {
        "type": "object",
        "properties": {
          "data": {
            "description": "Your organization's designs, newest first.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DesignAssetListItemDto"
            }
          },
          "total": {
            "type": "number",
            "description": "Number of designs returned.",
            "examples": [
              12
            ]
          }
        },
        "required": [
          "data",
          "total"
        ]
      },
      "ListDesignElementsResponseDto": {
        "type": "object",
        "properties": {
          "data": {
            "description": "Elements of the design, newest first.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DesignElementDto"
            }
          },
          "total": {
            "type": "number",
            "description": "Number of elements returned.",
            "examples": [
              2
            ]
          }
        },
        "required": [
          "data",
          "total"
        ]
      },
      "ListDesignVariantsResponseDto": {
        "type": "object",
        "properties": {
          "data": {
            "description": "Variants of the design, newest first.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DesignVariantDto"
            }
          },
          "total": {
            "type": "number",
            "description": "Number of variants returned.",
            "examples": [
              4
            ]
          }
        },
        "required": [
          "data",
          "total"
        ]
      },
      "ListImageTranslationJobsResponseDto": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "description": "Always `200`.",
            "examples": [
              200
            ]
          },
          "message": {
            "type": "string",
            "description": "What happened, in plain words.",
            "examples": [
              "Image translation jobs fetched successfully"
            ]
          },
          "data": {
            "description": "This page of jobs.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ImageTranslationJobListItemDto"
            }
          },
          "total": {
            "type": "number",
            "description": "How many jobs match, across every page.",
            "examples": [
              42
            ]
          }
        },
        "required": [
          "statusCode",
          "message",
          "data",
          "total"
        ]
      },
      "ListVariantVersionsResponseDto": {
        "type": "object",
        "properties": {
          "data": {
            "description": "Versions of the variant, newest first.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VariantVersionSummaryDto"
            }
          }
        },
        "required": [
          "data"
        ]
      },
      "LogoReplacementDoc": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "Public `https://` URL of the new logo, for example a `url` from List library assets.",
            "examples": [
              "{{STORAGE_BASE_URL}}/3f8b2c1d-9e7a-4b6c-8d5e-1a2b3c4d5e6f/image-translator/library/6f8a0c2e.png"
            ]
          },
          "bbox": {
            "description": "Where the old logo sits, as `[x1, y1, x2, y2]` fractions (0 to 1) of the image. Leave it out to use the position the analysis found.",
            "type": "array",
            "items": {
              "type": "number"
            },
            "examples": [
              [
                0.05,
                0.04,
                0.25,
                0.14
              ]
            ]
          },
          "rect": {
            "description": "Exact placement for the new logo, as `[x1, y1, x2, y2]` fractions of the image. Used as given, instead of fitting it to the old logo.",
            "type": "array",
            "items": {
              "type": "number"
            },
            "examples": [
              [
                0.05,
                0.04,
                0.22,
                0.12
              ]
            ]
          },
          "rotationDeg": {
            "type": "number",
            "description": "Clockwise rotation of the slot in degrees, 0 to 359.",
            "examples": [
              0
            ]
          },
          "label": {
            "type": "string",
            "description": "A name for the logo, for your reference.",
            "examples": [
              "Brand logo (FR)"
            ]
          }
        },
        "required": [
          "url"
        ]
      },
      "MasterPromptBodyDoc": {
        "type": "object",
        "properties": {
          "translationVersionId": {
            "type": "string",
            "format": "uuid",
            "description": "The translation to change.",
            "examples": [
              "b2d4f6a8-2345-4bcd-8ef0-123456789abc"
            ]
          },
          "prompt": {
            "type": "string",
            "description": "The change to make across the whole image. Its text stays exactly as it is.",
            "examples": [
              "Change the background to a beach at sunset"
            ]
          },
          "file": {
            "contentMediaType": "application/octet-stream",
            "description": "Optional. An image to edit instead of the stored one, up to 10 MB (multipart). Or send `uploadKey` instead."
          },
          "uploadKey": {
            "type": "string",
            "description": "Optional, instead of `file`: the `uploadKey` from Get an upload URL (`kind: canvas`) of the image to edit, in a JSON body."
          }
        },
        "required": [
          "translationVersionId",
          "prompt"
        ]
      },
      "ModelConfigBodyDto": {
        "type": "object",
        "properties": {
          "reasoningModel": {
            "type": "string",
            "description": "Reasoning model override. Leave it out to use the default, which suits most designs.",
            "examples": [
              "gemini-3-flash-preview"
            ]
          },
          "imageModel": {
            "type": "string",
            "description": "Image model override. Leave it out to use the default, which suits most designs.",
            "examples": [
              "gemini-3-pro-image"
            ]
          }
        }
      },
      "ModelConfigDto": {
        "type": "object",
        "properties": {
          "reasoningModel": {
            "type": "string",
            "description": "Planning model override. Leave it out to use the default.",
            "examples": [
              "gemini-3-flash-preview"
            ]
          },
          "imageModel": {
            "type": "string",
            "description": "Image model override. Leave it out to use the default.",
            "examples": [
              "gemini-3-pro-image"
            ]
          }
        }
      },
      "MoveDesignProjectBodyDto": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": [
              "object",
              "null"
            ],
            "format": "uuid",
            "description": "Project to file the design under. Pass `null` to unassign. See List projects.",
            "examples": [
              "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f"
            ]
          }
        },
        "required": [
          "projectId"
        ]
      },
      "MoveDesignProjectDataDto": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": [
              "object",
              "null"
            ],
            "format": "uuid",
            "description": "Project the design is now in, or `null` for none.",
            "examples": [
              "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f"
            ]
          }
        },
        "required": [
          "projectId"
        ]
      },
      "MoveDesignProjectResponseDto": {
        "type": "object",
        "properties": {
          "data": {
            "description": "The result.",
            "allOf": [
              {
                "$ref": "#/components/schemas/MoveDesignProjectDataDto"
              }
            ]
          }
        },
        "required": [
          "data"
        ]
      },
      "MovedProjectDto": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The project the run is in now. Null when it is in none.",
            "examples": [
              "6d5c4b3a-2e1f-4a0b-9c8d-7e6f5a4b3c2d"
            ]
          }
        },
        "required": [
          "projectId"
        ]
      },
      "MoveImageJobResponseDto": {
        "type": "object",
        "properties": {
          "data": {
            "description": "Where the job is now.",
            "allOf": [
              {
                "$ref": "#/components/schemas/MovedProjectDto"
              }
            ]
          }
        },
        "required": [
          "data"
        ]
      },
      "MoveProcessProjectDto": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": [
              "string",
              "null"
            ],
            "description": "Project to file this process under. Pass `null` to take it out of its project (Unassigned).",
            "format": "uuid",
            "examples": [
              "3ad094a0-4b21-4cf3-a789-dd9bad5fa27e"
            ]
          }
        },
        "required": [
          "projectId"
        ]
      },
      "PerElementNoteDto": {
        "type": "object",
        "properties": {
          "element_id": {
            "type": "string",
            "description": "An `element_id` from `layoutPlan.plan.placements` of the variant.",
            "examples": [
              "text_1"
            ]
          },
          "note": {
            "type": "string",
            "description": "What to change for that element.",
            "examples": [
              "Put the headline at the bottom."
            ]
          }
        },
        "required": [
          "element_id",
          "note"
        ]
      },
      "PlacementLayoutDto": {
        "type": "object",
        "properties": {
          "top": {
            "type": "number",
            "description": "Distance from the top of the canvas, in % (0–100).",
            "examples": [
              8
            ]
          },
          "left": {
            "type": "number",
            "description": "Distance from the left of the canvas, in % (0–100).",
            "examples": [
              10
            ]
          },
          "width": {
            "type": "number",
            "description": "Width, in % of the canvas.",
            "examples": [
              80
            ]
          },
          "height": {
            "type": "number",
            "description": "Height, in % of the canvas.",
            "examples": [
              12
            ]
          }
        },
        "required": [
          "top",
          "left",
          "width",
          "height"
        ]
      },
      "PresignHeadersDto": {
        "type": "object",
        "properties": {
          "Content-Type": {
            "type": "string",
            "description": "Send this `Content-Type` header with the `PUT`. It must match the `contentType` you asked for.",
            "examples": [
              "image/png"
            ]
          }
        },
        "required": [
          "Content-Type"
        ]
      },
      "QualityChecksDto": {
        "type": "object",
        "properties": {
          "overall_confidence": {
            "type": "number",
            "description": "How sure the analysis is overall, from 0 to 1.",
            "examples": [
              0.92
            ]
          },
          "needs_review": {
            "type": "boolean",
            "description": "Whether a person should check the plan before translating.",
            "examples": [
              false
            ]
          },
          "review_reasons": {
            "description": "Why it needs review, when it does.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              []
            ]
          }
        },
        "required": [
          "overall_confidence",
          "needs_review",
          "review_reasons"
        ]
      },
      "ReanalyzeBodyDoc": {
        "type": "object",
        "properties": {
          "prompt": {
            "type": "string",
            "description": "Extra guidance for the analysis, in words.",
            "examples": [
              "Treat the price tag as text to translate."
            ]
          },
          "annotations": {
            "type": "string",
            "description": "Point edits to make before analyzing, as a JSON array in a string. Each has `x` and `y` (percent from the top-left, 0 to 100) and `feedback` (what to change there). Priced as an element edit.",
            "examples": [
              "[{\"x\":72.5,\"y\":18,\"feedback\":\"Remove the watermark\"}]"
            ]
          },
          "areaSelection": {
            "type": "string",
            "description": "A masked edit to make before analyzing, as a JSON object in a string (or an object in a JSON body): `mask` (A base64-encoded PNG, without a `data:` prefix, the same size as the image: white marks the area to change, black the rest. Or leave it out and send the PNG as `maskKey`), `action` (`remove`, `add` or `replace`) and `prompt`. Priced as an area edit.",
            "examples": [
              "{\"mask\":\"iVBORw0KGgoAAAANSUhEUgAA…\",\"action\":\"remove\",\"prompt\":\"Remove the price sticker\"}"
            ]
          },
          "maskKey": {
            "type": "string",
            "description": "Instead of `mask` in `areaSelection`: the `uploadKey` from Get an upload URL (`kind: mask`) of the mask PNG."
          },
          "file": {
            "contentMediaType": "application/octet-stream",
            "description": "Optional. An image to analyze instead of the current one, up to 64 MB (multipart). Or send `uploadKey` instead."
          },
          "uploadKey": {
            "type": "string",
            "description": "Optional, instead of `file`: the `uploadKey` from Get an upload URL (`kind: flattened`) of the image to analyze, in a JSON body."
          }
        }
      },
      "ReanalyzeResponseDto": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "description": "Always `202`: the analysis runs in the background.",
            "examples": [
              202
            ]
          },
          "jobId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the job.",
            "examples": [
              "e7b9d10a-f259-460b-98c5-4c1efc8f4491"
            ]
          },
          "versionId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the new analysis version, now current. Poll Get the analysis.",
            "examples": [
              "a1c3e5f7-1234-4abc-9def-0123456789ab"
            ]
          },
          "versionNumber": {
            "type": "number",
            "description": "Its number among the job’s analysis versions.",
            "examples": [
              2
            ]
          }
        },
        "required": [
          "statusCode",
          "jobId",
          "versionId",
          "versionNumber"
        ]
      },
      "RecropVariantDto": {
        "type": "object",
        "properties": {
          "crop": {
            "description": "Area of the raw, uncropped render to keep. It becomes the image as is; it is not resized to the variant size.",
            "allOf": [
              {
                "$ref": "#/components/schemas/CropRectDto"
              }
            ]
          }
        },
        "required": [
          "crop"
        ]
      },
      "RegenerateVariantPlanDto": {
        "type": "object",
        "properties": {
          "generalNote": {
            "type": "string",
            "description": "What to change in the whole layout, in plain words.",
            "examples": [
              "Leave more space around the product."
            ]
          },
          "perElementNotes": {
            "description": "Changes for single elements.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PerElementNoteDto"
            }
          }
        }
      },
      "RegionOverrideDoc": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "translate",
              "keep"
            ],
            "description": "`keep` leaves the source text unchanged in the image; `translate` translates it even if the analysis marked it to keep. Leave it out to follow the analysis.",
            "examples": [
              "translate"
            ]
          },
          "editedText": {
            "type": "string",
            "description": "Your own wording for this text. It is used as is, instead of a machine or memory translation.",
            "examples": [
              "Soldes d’été : -50 %"
            ]
          },
          "sourceText": {
            "type": "string",
            "description": "The region's source text. Used to match the override when the region's ID changed after a re-analysis.",
            "examples": [
              "Summer sale: 50% off"
            ]
          }
        }
      },
      "RegionsUpdatedResponseDto": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "description": "Always `200`.",
            "examples": [
              200
            ]
          },
          "message": {
            "type": "string",
            "description": "What happened, in plain words.",
            "examples": [
              "Region statuses updated"
            ]
          },
          "updated": {
            "type": "number",
            "description": "How many region IDs you sent (including any that were skipped).",
            "examples": [
              2
            ]
          }
        },
        "required": [
          "statusCode",
          "message",
          "updated"
        ]
      },
      "RegionUpdatedResponseDto": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "description": "Always `200`.",
            "examples": [
              200
            ]
          },
          "message": {
            "type": "string",
            "description": "What happened, in plain words.",
            "examples": [
              "Region text updated"
            ]
          }
        },
        "required": [
          "statusCode",
          "message"
        ]
      },
      "RenameDesignAssetDataDto": {
        "type": "object",
        "properties": {
          "designAssetId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the design.",
            "examples": [
              "3f2b8c1d-6e4a-4b7f-9c2d-1a5e8f3b7c90"
            ]
          },
          "name": {
            "type": "string",
            "description": "The new name. `Untitled` when you sent only spaces.",
            "examples": [
              "Summer sale banner – EU"
            ]
          }
        },
        "required": [
          "designAssetId",
          "name"
        ]
      },
      "RenameDesignAssetDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "New name of the design. Spaces around it are trimmed.",
            "examples": [
              "Summer sale banner – EU"
            ]
          }
        },
        "required": [
          "name"
        ]
      },
      "RenameDesignAssetResponseDto": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Always `true`.",
            "examples": [
              true
            ]
          },
          "data": {
            "description": "The result.",
            "allOf": [
              {
                "$ref": "#/components/schemas/RenameDesignAssetDataDto"
              }
            ]
          }
        },
        "required": [
          "success",
          "data"
        ]
      },
      "ResizeImageBodyDoc": {
        "type": "object",
        "properties": {
          "aspectRatio": {
            "type": "string",
            "description": "The new shape: `1:1`, `3:4`, `4:3`, `9:16`, `16:9`, `3:2` or `2:3`. `Original` keeps the closest of these to the current image.",
            "examples": [
              "9:16"
            ]
          }
        },
        "required": [
          "aspectRatio"
        ]
      },
      "ResizeImageResponseDto": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "description": "Always `200`.",
            "examples": [
              200
            ]
          },
          "jobId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the job.",
            "examples": [
              "e7b9d10a-f259-460b-98c5-4c1efc8f4491"
            ]
          },
          "versionId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the new analysis version. It is now current and is being analyzed: poll Get the analysis before you translate.",
            "examples": [
              "a1c3e5f7-1234-4abc-9def-0123456789ab"
            ]
          },
          "versionNumber": {
            "type": "number",
            "description": "Its number among the job’s analysis versions.",
            "examples": [
              2
            ]
          },
          "imageUrl": {
            "type": "string",
            "description": "The edited image.",
            "examples": [
              "{{STORAGE_BASE_URL}}/3f8b2c1d-9e7a-4b6c-8d5e-1a2b3c4d5e6f/image-translator/edited/9a1b3c5d.png"
            ]
          },
          "aspectRatio": {
            "type": "string",
            "description": "The aspect ratio it was resized to.",
            "examples": [
              "9:16"
            ]
          }
        },
        "required": [
          "statusCode",
          "jobId",
          "versionId",
          "versionNumber",
          "imageUrl",
          "aspectRatio"
        ]
      },
      "RetriedStepDto": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "analysis",
              "translation"
            ],
            "description": "`analysis` when the analysis failed (it is retried first), otherwise `translation`.",
            "examples": [
              "translation"
            ]
          },
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the analysis version or translation being re-run. Poll it as before.",
            "examples": [
              "b2d4f6a8-2345-4bcd-8ef0-123456789abc"
            ]
          },
          "versionNumber": {
            "type": "number",
            "description": "Its version number.",
            "examples": [
              1
            ]
          },
          "targetLanguage": {
            "type": "string",
            "description": "The language of the translation. Only for `translation`.",
            "examples": [
              "french_france"
            ]
          }
        },
        "required": [
          "kind",
          "id",
          "versionNumber"
        ]
      },
      "RetryDitaFileDataDto": {
        "type": "object",
        "properties": {
          "childLogId": {
            "type": "string",
            "format": "uuid",
            "description": "The file ID.",
            "examples": [
              "c4d5e6f7-a8b9-4c0d-8e1f-2a3b4c5d6e7f"
            ]
          },
          "parentLogId": {
            "type": "string",
            "format": "uuid",
            "description": "When retried: the language ID the file belongs to.",
            "examples": [
              "7a1e4c2d-5b3f-4e6a-9c8d-1f2e3d4c5b6a"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "SCHEDULED",
              "RUNNING",
              "COMPLETED",
              "FAILED",
              "TERMINATED"
            ],
            "description": "Status of the file: `COMPLETED` after a successful retry, or the current status when it could not be retried.",
            "examples": [
              "COMPLETED"
            ]
          },
          "remainingFailedFileCount": {
            "type": "number",
            "description": "When retried: files of this language still failed.",
            "examples": [
              0
            ]
          },
          "translationZipDirty": {
            "type": "boolean",
            "description": "When retried: always `true`. Build the translated ZIP again to include the file.",
            "examples": [
              true
            ]
          }
        },
        "required": [
          "childLogId",
          "status"
        ]
      },
      "RetryDitaFileResponseDto": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "description": "`true` when the file was retried and translated, `false` when it could not be retried.",
            "examples": [
              true
            ]
          },
          "statusCode": {
            "type": "number",
            "enum": [
              200,
              412
            ],
            "description": "`200` when translated. `412` when the file had not failed, so it was not retried (`Only FAILED DITA ZIP file logs can be retried.`). The HTTP status is `201` either way, so check this field.",
            "examples": [
              200
            ]
          },
          "message": {
            "type": "string",
            "description": "What happened, in plain words.",
            "examples": [
              "Failed DITA ZIP file retried successfully."
            ]
          },
          "data": {
            "description": "The file.",
            "allOf": [
              {
                "$ref": "#/components/schemas/RetryDitaFileDataDto"
              }
            ]
          }
        },
        "required": [
          "success",
          "statusCode",
          "message",
          "data"
        ]
      },
      "RetryDitaFilesResponseDto": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Always `true`.",
            "examples": [
              true
            ]
          },
          "statusCode": {
            "type": "number",
            "description": "Always `200`.",
            "examples": [
              200
            ]
          },
          "message": {
            "type": "string",
            "description": "What happened: `No failed files to retry.`, or how many retried files succeeded.",
            "examples": [
              "Retry complete. 2/2 file(s) succeeded."
            ]
          },
          "succeeded": {
            "type": "number",
            "description": "Retried files that are now translated. Absent when there was nothing to retry.",
            "examples": [
              2
            ]
          },
          "failed": {
            "type": "number",
            "description": "Retried files that failed again. Absent when there was nothing to retry.",
            "examples": [
              0
            ]
          }
        },
        "required": [
          "success",
          "statusCode",
          "message"
        ]
      },
      "RetryJobResponseDto": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "description": "Always `202`: the retry runs in the background.",
            "examples": [
              202
            ]
          },
          "jobId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the job.",
            "examples": [
              "e7b9d10a-f259-460b-98c5-4c1efc8f4491"
            ]
          },
          "retried": {
            "description": "What is being re-run: the failed analysis, or the newest failed translation of each language.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RetriedStepDto"
            }
          }
        },
        "required": [
          "statusCode",
          "jobId",
          "retried"
        ]
      },
      "ReviewDataDto": {
        "type": "object",
        "properties": {
          "textReview": {
            "description": "Text review.",
            "allOf": [
              {
                "$ref": "#/components/schemas/TextReviewDto"
              }
            ]
          },
          "visualReview": {
            "description": "Visual review.",
            "allOf": [
              {
                "$ref": "#/components/schemas/VisualReviewDto"
              }
            ]
          },
          "hallucinated_ids": {
            "description": "IDs removed from the review because they do not exist.",
            "allOf": [
              {
                "$ref": "#/components/schemas/HallucinatedIdsDto"
              }
            ]
          },
          "textUsage": {
            "type": "object",
            "additionalProperties": true,
            "description": "Tokens used by the text review.",
            "examples": [
              {
                "totalTokens": 2100
              }
            ]
          },
          "visualUsage": {
            "type": "object",
            "additionalProperties": true,
            "description": "Tokens used by the visual review.",
            "examples": [
              {
                "totalTokens": 2400
              }
            ]
          },
          "usage": {
            "type": "object",
            "additionalProperties": true,
            "description": "Tokens used by the whole review.",
            "examples": [
              {
                "totalTokens": 4500
              }
            ]
          },
          "model": {
            "type": "string",
            "description": "Model that ran the review.",
            "examples": [
              "gemini-3-flash-preview"
            ]
          }
        },
        "required": [
          "textReview",
          "visualReview"
        ]
      },
      "ReviewVariantBodyDto": {
        "type": "object",
        "properties": {
          "modelConfig": {
            "description": "Optional model overrides. Usually left out.",
            "allOf": [
              {
                "$ref": "#/components/schemas/ModelConfigBodyDto"
              }
            ]
          }
        }
      },
      "SaveCreationResponseDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the created image.",
            "examples": [
              "4f2b8c1e-6a3d-4b7e-9c2f-1a2b3c4d5e6f"
            ]
          },
          "assetId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the new asset in your organization’s assets.",
            "examples": [
              "8e9f0a1b-2c3d-4e5f-8a6b-7c8d9e0f1a2b"
            ]
          },
          "savedToDrive": {
            "type": "boolean",
            "description": "Always `true`.",
            "examples": [
              true
            ]
          }
        },
        "required": [
          "id",
          "assetId",
          "savedToDrive"
        ]
      },
      "SaveCreationToDriveDto": {
        "type": "object",
        "properties": {
          "folderId": {
            "type": "string",
            "description": "Drive folder to save into. Pass the organization id for the drive root (\"My Drive\"). Must belong to the caller’s organization and sit outside system folders (the default `image-creator` folder is allowed). Omit to use the default folder.",
            "examples": [
              "123e4567-e89b-12d3-a456-426614174000"
            ]
          }
        }
      },
      "SavedBrandKitDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the brand kit.",
            "examples": [
              "6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f"
            ]
          },
          "name": {
            "type": "string",
            "description": "Name of the brand.",
            "examples": [
              "Acme Corporation"
            ]
          },
          "sourceUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "The address the kit was made from, as sent when it was created. It cannot be changed.",
            "examples": [
              "https://www.acme.com"
            ]
          },
          "website": {
            "type": [
              "string",
              "null"
            ],
            "description": "The brand's website. `null` when not set.",
            "examples": [
              "https://www.acme.com"
            ]
          },
          "toneOfVoice": {
            "type": [
              "string",
              "null"
            ],
            "description": "How the brand speaks. `null` when not set.",
            "examples": [
              "Confident, warm, and a little playful."
            ]
          },
          "headingFont": {
            "type": [
              "string",
              "null"
            ],
            "description": "Font for headings. `null` when not set.",
            "examples": [
              "Poppins"
            ]
          },
          "bodyFont": {
            "type": [
              "string",
              "null"
            ],
            "description": "Font for body text. `null` when not set.",
            "examples": [
              "Inter"
            ]
          },
          "primaryColors": {
            "description": "Brand colors as hex codes, main color first. 1 to 5.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "#8143FD",
                "#1A1A1A"
              ]
            ]
          },
          "visualStyles": {
            "description": "Words that describe the visual style. Can be empty.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "minimal",
                "modern"
              ]
            ]
          },
          "logoUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "Signed URL of the logo. It expires, so read the kit again when you need it later. `null` when the kit has no logo.",
            "examples": [
              "{{STORAGE_BASE_URL}}/0c9d8e7f/brand-kit/3e4f5a6b.png?X-Amz-Expires=3600&X-Amz-Signature=…"
            ]
          },
          "fonts": {
            "description": "Font files uploaded to the kit, by role. Empty when none were uploaded. Download one with Download a brand font.",
            "allOf": [
              {
                "$ref": "#/components/schemas/BrandKitFontsDto"
              }
            ],
            "examples": [
              {
                "heading": {
                  "family": "Acme Sans",
                  "format": "woff2"
                }
              }
            ]
          },
          "source": {
            "type": "string",
            "enum": [
              "manual",
              "url_extraction"
            ],
            "description": "How the kit was made. Kits created with Create a brand kit are `manual`, including kits filled in from Extract a brand identity.",
            "examples": [
              "manual"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the kit was created.",
            "examples": [
              "2026-10-01T08:00:00.000Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the kit was last changed.",
            "examples": [
              "2026-10-04T09:30:00.000Z"
            ]
          },
          "logoError": {
            "type": "string",
            "description": "Why the `logo` you sent was not saved. Present only then: the rest of the kit is saved, and on an edit the previous logo is kept.",
            "examples": [
              "The logo is not a PNG, JPG or SVG image, so it was not saved."
            ]
          }
        },
        "required": [
          "id",
          "name",
          "sourceUrl",
          "website",
          "toneOfVoice",
          "headingFont",
          "bodyFont",
          "primaryColors",
          "visualStyles",
          "logoUrl",
          "fonts",
          "source",
          "createdAt",
          "updatedAt"
        ]
      },
      "SaveToDriveDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "A file name for the asset, with or without the extension. A timestamp is added. Leave it out to name it after the job, language and version.",
            "maxLength": 255,
            "examples": [
              "sale-banner-hindi"
            ]
          },
          "folderId": {
            "type": "string",
            "description": "The assets folder to save into, or your organization ID for the top level. It must be one of your organization’s folders and not a system folder. Leave it out to use the `image-translator` folder.",
            "examples": [
              "123e4567-e89b-12d3-a456-426614174000"
            ]
          }
        }
      },
      "SaveTranslationToDriveResponseDto": {
        "type": "object",
        "properties": {
          "assetId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the new asset. Every save makes a new one; use it with the Assets API.",
            "examples": [
              "c3e5a7b9-3456-4cde-9f01-23456789abcd"
            ]
          },
          "alreadySaved": {
            "type": "boolean",
            "description": "Always `false`.",
            "examples": [
              false
            ]
          },
          "name": {
            "type": "string",
            "description": "The file name it was saved under, with a timestamp added.",
            "examples": [
              "sale-banner-french-20260612-183812044.png"
            ]
          }
        },
        "required": [
          "assetId",
          "alreadySaved",
          "name"
        ]
      },
      "SaveVariantToDriveDto": {
        "type": "object",
        "properties": {
          "folderId": {
            "type": "string",
            "description": "Folder of your organization's assets to save into, or your organization ID for the top level. It can't be a system folder. Leave it out to use the design's project folder, or else the `adapt` folder.",
            "examples": [
              "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e6f"
            ]
          }
        }
      },
      "SaveVariantToDriveResponseDto": {
        "type": "object",
        "properties": {
          "assetId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the new asset. Use it with the Assets API.",
            "examples": [
              "5e6f7a8b-9c0d-4e1f-8a2b-3c4d5e6f7a8b"
            ]
          },
          "alreadySaved": {
            "type": "boolean",
            "description": "Always `false`: every call saves another copy, even when the variant was saved before.",
            "examples": [
              false
            ]
          }
        },
        "required": [
          "assetId",
          "alreadySaved"
        ]
      },
      "SetBrandFontWeightDto": {
        "type": "object",
        "properties": {
          "weight": {
            "type": "number",
            "description": "The weight the role uses: one of the weights of the uploaded styles (100–900; any whole hundred a variable font covers).",
            "examples": [
              700
            ]
          }
        },
        "required": [
          "weight"
        ]
      },
      "StagedUploadTicketDto": {
        "type": "object",
        "properties": {
          "uploadUrl": {
            "type": "string",
            "description": "Presigned URL. `PUT` the file bytes to it within `expiresInSeconds`, with exactly the headers in `headers`, without your API key."
          },
          "uploadKey": {
            "type": "string",
            "description": "The upload key. Send it as `uploadKey` to the step the file is for once the `PUT` has finished. It can be used once, and an upload not used within a day is deleted.",
            "examples": [
              "1f0c…/staged-uploads/7b9e….csv"
            ]
          },
          "headers": {
            "type": "object",
            "description": "Headers the `PUT` must send exactly (the URL is signed over them).",
            "examples": [
              {
                "Content-Type": "text/csv",
                "Content-Disposition": "attachment"
              }
            ]
          },
          "expiresInSeconds": {
            "type": "number",
            "description": "Seconds the URL stays valid for starting the `PUT`.",
            "examples": [
              600
            ]
          },
          "maxBytes": {
            "type": "number",
            "description": "The largest file this step takes, in bytes.",
            "examples": [
              26214400
            ]
          }
        },
        "required": [
          "uploadUrl",
          "uploadKey",
          "headers",
          "expiresInSeconds",
          "maxBytes"
        ]
      },
      "StartedTranslationDto": {
        "type": "object",
        "properties": {
          "targetLanguage": {
            "type": "string",
            "description": "The language of this translation.",
            "examples": [
              "hindi_india"
            ]
          },
          "translationVersionId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the translation. Poll Get a translation with it.",
            "examples": [
              "b2d4f6a8-2345-4bcd-8ef0-123456789abc"
            ]
          },
          "versionNumber": {
            "type": "number",
            "description": "Its number among the job’s translations.",
            "examples": [
              2
            ]
          }
        },
        "required": [
          "targetLanguage",
          "translationVersionId",
          "versionNumber"
        ]
      },
      "SyncTranslationFromTmResponseDto": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "description": "Always `200`.",
            "examples": [
              200
            ]
          },
          "message": {
            "type": "string",
            "description": "What happened, in plain words.",
            "examples": [
              "Updated 3 regions from translation memory"
            ]
          },
          "pulled": {
            "type": "number",
            "description": "How many regions took the translation memory’s text and status.",
            "examples": [
              3
            ]
          },
          "skipped": {
            "type": "number",
            "description": "How many regions were left as they were, because the memory has no entry for them.",
            "examples": [
              1
            ]
          }
        },
        "required": [
          "statusCode",
          "message",
          "pulled",
          "skipped"
        ]
      },
      "SyncTranslationToTmResponseDto": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "description": "Always `200`.",
            "examples": [
              200
            ]
          },
          "message": {
            "type": "string",
            "description": "What happened, in plain words.",
            "examples": [
              "Synced 3 regions to translation memory"
            ]
          },
          "synced": {
            "type": "number",
            "description": "How many regions were written to the translation memory.",
            "examples": [
              3
            ]
          }
        },
        "required": [
          "statusCode",
          "message",
          "synced"
        ]
      },
      "TextRegionDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "ID of the text region. Use it as the key in `overrides` when you translate.",
            "examples": [
              "tr_1"
            ]
          },
          "element_id": {
            "type": "string",
            "description": "The element this text belongs to (see `elements`).",
            "examples": [
              "el_1"
            ]
          },
          "source_text": {
            "type": "string",
            "description": "The text found in the image.",
            "examples": [
              "Summer sale: 50% off"
            ]
          },
          "action": {
            "type": "string",
            "enum": [
              "translate",
              "keep"
            ],
            "description": "What the analysis plans for it: `translate`, or `keep` (such as a brand name).",
            "examples": [
              "translate"
            ]
          },
          "localized_text": {
            "type": "string",
            "description": "A first translation suggested by the analysis. The translation step may replace it.",
            "examples": [
              "Soldes d’été : -50 %"
            ]
          },
          "typography": {
            "description": "How the text looks.",
            "allOf": [
              {
                "$ref": "#/components/schemas/TypographyDto"
              }
            ]
          },
          "bbox_norm": {
            "description": "Where the text is: `[x1, y1, x2, y2]` as fractions (0 to 1) of the image width and height, from the top-left corner.",
            "type": "array",
            "items": {
              "type": "number"
            },
            "examples": [
              [
                0.1,
                0.62,
                0.9,
                0.74
              ]
            ]
          },
          "ocr_confidence": {
            "type": "number",
            "description": "How sure the text recognition is, from 0 to 1.",
            "examples": [
              0.97
            ]
          }
        },
        "required": [
          "id",
          "element_id",
          "source_text",
          "action",
          "localized_text",
          "typography",
          "bbox_norm",
          "ocr_confidence"
        ]
      },
      "TextReviewDto": {
        "type": "object",
        "properties": {
          "mapped_text": {
            "description": "Each text of the design, matched in the variant.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TextReviewItemDto"
            }
          },
          "hallucinated_text_boxes": {
            "type": "array",
            "items": {
              "type": "array",
              "items": {
                "type": "number"
              }
            },
            "description": "Boxes of stray text in the variant that is not in the design. Fix the box at index `n` with the issue ID `__hallucination_<n>`.",
            "examples": [
              [
                [
                  900,
                  40,
                  960,
                  300
                ]
              ]
            ]
          }
        },
        "required": [
          "mapped_text",
          "hallucinated_text_boxes"
        ]
      },
      "TextReviewItemDto": {
        "type": "object",
        "properties": {
          "original_id": {
            "type": "string",
            "description": "ID of the text element in the design. Pass it in `selectedIssueIds` to Fix review issues.",
            "examples": [
              "text_1"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "perfect",
              "typo",
              "missing"
            ],
            "description": "`typo` and `missing` are issues you can fix.",
            "examples": [
              "typo"
            ]
          },
          "detected_text": {
            "type": "string",
            "description": "Text read in the variant.",
            "examples": [
              "Sumer Sale"
            ]
          },
          "variant_box": {
            "description": "Where the text is in the variant: `[ymin, xmin, ymax, xmax]` on a 0–1000 scale. `null` if missing.",
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "number"
            },
            "examples": [
              [
                80,
                120,
                220,
                880
              ]
            ]
          },
          "suggested_correction": {
            "type": "string",
            "description": "The correction to make.",
            "examples": [
              "Summer Sale"
            ]
          }
        },
        "required": [
          "original_id",
          "status",
          "detected_text",
          "variant_box",
          "suggested_correction"
        ]
      },
      "TranslateImageBodyDoc": {
        "type": "object",
        "properties": {
          "targetLanguage": {
            "type": "string",
            "description": "The language to render. Leave it out to use the job's `targetLanguage`. A language key such as `english_united_states`, not an ISO code. With `tmId`, use the languages of that translation memory.",
            "examples": [
              "french_france"
            ]
          },
          "targetLanguages": {
            "description": "Several languages in one call: one translation starts per language, each charged on its own. Use instead of `targetLanguage`.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "french_france",
                "hindi_india"
              ]
            ]
          },
          "aspectRatio": {
            "type": "string",
            "description": "Shape of the result: `Original` (default) or one of `1:1`, `3:4`, `4:3`, `9:16`, `16:9`, `3:2`, `2:3`.",
            "examples": [
              "Original"
            ]
          },
          "overrides": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/RegionOverrideDoc"
            },
            "description": "Changes per text region, keyed by the region `id` from Get the analysis (`data.text_regions[].id`).",
            "examples": [
              {
                "tr_1": {
                  "action": "translate",
                  "editedText": "Soldes d’été : -50 %"
                },
                "tr_2": {
                  "action": "keep"
                }
              }
            ]
          },
          "logoReplacements": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/LogoReplacementDoc"
            },
            "description": "Logos to replace, keyed by the element `id` of a `logo` element from Get the analysis (`data.elements[].id`).",
            "examples": [
              {
                "el_3": {
                  "url": "{{STORAGE_BASE_URL}}/3f8b2c1d-9e7a-4b6c-8d5e-1a2b3c4d5e6f/image-translator/library/6f8a0c2e.png",
                  "bbox": [
                    0.05,
                    0.04,
                    0.25,
                    0.14
                  ]
                }
              }
            ]
          },
          "logoApplyMode": {
            "type": "string",
            "enum": [
              "flatten",
              "layer"
            ],
            "description": "`flatten` (default) draws the new logos into the image. `layer` only removes the old logos, so you can place the new ones yourself.",
            "examples": [
              "flatten"
            ]
          },
          "operationLabel": {
            "type": "string",
            "description": "A label for this translation, shown in its `operationMeta.userLabel`.",
            "examples": [
              "Spring campaign, FR"
            ]
          },
          "autoQe": {
            "type": "boolean",
            "description": "Run the QE report on each language once it has rendered, so you do not have to start it yourself. It needs the job to have a translation memory and the `aiqe:create` permission, and it is charged on its own when it starts. What became of it is in the translation's `operationMeta.autoQe`.",
            "examples": [
              true
            ]
          },
          "qeScope": {
            "type": "string",
            "enum": [
              "all",
              "unverified"
            ],
            "description": "With `autoQe`: which text regions the QE report checks. `all` (default) or `unverified`.",
            "examples": [
              "all"
            ]
          },
          "requestId": {
            "type": "string",
            "description": "Your id for this one render (8 to 100 letters, digits, `-` or `_`; a UUID works). Sending it again, for up to a day, returns the translation the first request made, whatever its status, and charges nothing: safe to retry. Ignored with `targetLanguages`.",
            "examples": [
              "3f2b8c1e-7a4d-4f0e-9b1c-2d5e6f7a8b9c"
            ]
          }
        }
      },
      "TranslateImageResponseDto": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "description": "Always `200`.",
            "examples": [
              200
            ]
          },
          "jobId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the job.",
            "examples": [
              "e7b9d10a-f259-460b-98c5-4c1efc8f4491"
            ]
          },
          "translationVersionId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the translation (the first one, with several languages). Poll Get a translation with it.",
            "examples": [
              "b2d4f6a8-2345-4bcd-8ef0-123456789abc"
            ]
          },
          "versionNumber": {
            "type": "number",
            "description": "Its number among the job’s translations.",
            "examples": [
              1
            ]
          },
          "translatedImageUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "Null while it renders. Get a translation returns the image once it has finished.",
            "examples": [
              null
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "RUNNING",
              "COMPLETED",
              "FAILED"
            ],
            "description": "`RUNNING` for a new render. In fast mode, a render already running for the language is returned with its own status instead of a second one.",
            "examples": [
              "RUNNING"
            ]
          },
          "translations": {
            "description": "Only when you sent several `targetLanguages`: every translation started, in the order you asked for them.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StartedTranslationDto"
            }
          }
        },
        "required": [
          "statusCode",
          "jobId",
          "translationVersionId",
          "versionNumber",
          "translatedImageUrl",
          "status"
        ]
      },
      "TranslationOperationMetaDto": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string",
            "description": "A label for the step that made this translation.",
            "examples": [
              "Translate: french_france"
            ]
          },
          "type": {
            "type": "string",
            "enum": [
              "translate",
              "retranslate",
              "direct-translate",
              "element-edit",
              "asset-compose",
              "finalize"
            ],
            "description": "The step that made it: a first translation, a re-translation, Translate an image, an AI edit (`element-edit` also covers masked-area edits and prompt regenerations), an asset composition, or edits saved in the web editor (`finalize`).",
            "examples": [
              "translate"
            ]
          },
          "targetLanguage": {
            "type": "string",
            "description": "The language of the translation.",
            "examples": [
              "french_france"
            ]
          },
          "userLabel": {
            "type": "string",
            "description": "The label you sent as `operationLabel`.",
            "examples": [
              "Spring campaign, FR"
            ]
          },
          "lockedRegionIds": {
            "description": "Regions kept unchanged with an `action: keep` override.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "tr_2"
              ]
            ]
          }
        },
        "required": [
          "label",
          "type"
        ]
      },
      "TranslationRegionDto": {
        "type": "object",
        "properties": {
          "source": {
            "type": "string",
            "description": "The text in the source image.",
            "examples": [
              "Summer sale: 50% off"
            ]
          },
          "translated": {
            "type": "string",
            "description": "Its translation, as rendered in this image.",
            "examples": [
              "Soldes d’été : -50 %"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "u",
              "v",
              "a"
            ],
            "description": "Review status: `u` unverified, `v` verified, `a` approved (`a` is used when your organization has a three-step review).",
            "examples": [
              "u"
            ]
          },
          "dirty": {
            "type": "boolean",
            "description": "True after a status change: the web app shows the region as not yet synced to the translation memory.",
            "examples": [
              false
            ]
          },
          "kept": {
            "type": "boolean",
            "description": "True when the text was kept in the source language (such as a brand name). Kept regions are never synced to the translation memory.",
            "examples": [
              false
            ]
          }
        },
        "required": [
          "source",
          "translated",
          "status"
        ]
      },
      "TranslationResultResponseDto": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Always `true` here.",
            "examples": [
              true
            ]
          },
          "message": {
            "type": "string",
            "description": "What happened, in plain words.",
            "examples": [
              "Translation status fetched."
            ]
          },
          "statusCode": {
            "type": "number",
            "description": "Always `200`.",
            "examples": [
              200
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "SCHEDULED",
              "RUNNING",
              "COMPLETED",
              "FAILED"
            ],
            "description": "`SCHEDULED` or `RUNNING`: keep polling. `COMPLETED`: `translatedImageUrl` is ready. `FAILED`: see `errorCode` and `failureReason`, then Retry a failed job.",
            "examples": [
              "COMPLETED"
            ]
          },
          "translatedImageUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "The translated image. Null until `status` is `COMPLETED`. To get the file, use Download a translation.",
            "examples": [
              "{{STORAGE_BASE_URL}}/3f8b2c1d-9e7a-4b6c-8d5e-1a2b3c4d5e6f/image-translator/translated/2c4e6a8b.png"
            ]
          },
          "sourceImageUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "The image it was rendered from.",
            "examples": [
              "{{STORAGE_BASE_URL}}/3f8b2c1d-9e7a-4b6c-8d5e-1a2b3c4d5e6f/image-translator/compressed/8e2f4a6b.jpg"
            ]
          },
          "targetLanguage": {
            "type": "string",
            "description": "Its language.",
            "examples": [
              "french_france"
            ]
          },
          "aspectRatio": {
            "type": [
              "string",
              "null"
            ],
            "description": "Its aspect ratio: `Original` or a ratio such as `9:16`.",
            "examples": [
              "Original"
            ]
          },
          "translationData": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {
              "$ref": "#/components/schemas/TranslationRegionDto"
            },
            "description": "Every text region with its source and translation, keyed by region ID. Null until `status` is `COMPLETED`.",
            "examples": [
              {
                "tr_1": {
                  "source": "Summer sale: 50% off",
                  "translated": "Soldes d’été : -50 %",
                  "status": "u"
                },
                "tr_2": {
                  "source": "Vitra",
                  "translated": "Vitra",
                  "status": "u",
                  "kept": true
                }
              }
            ]
          },
          "fullGenerationJson": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "description": "The full recipe the image was rendered from. The contents may change; do not depend on them.",
            "examples": [
              {
                "aspectRatio": "Original",
                "targetLanguage": "french_france"
              }
            ]
          },
          "renderSpec": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "description": "What the web editor changed in this version, used to compare versions. Usually null.",
            "examples": [
              null
            ]
          },
          "errorCode": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "AI_NO_IMAGE",
              "AI_SAFETY_BLOCK",
              "AI_TIMEOUT",
              "AI_QUOTA",
              "AI_ERROR",
              "S3_FETCH_FAILED",
              "S3_UPLOAD_FAILED",
              "ANALYSIS_PLAN_MISSING",
              "JSON_PARSE_FAILED",
              "CREDITS_INSUFFICIENT",
              "UNKNOWN"
            ],
            "description": "Why it failed, when `status` is `FAILED`. `CREDITS_INSUFFICIENT` means your balance ran out; the `AI_*` codes are usually worth a retry.",
            "examples": [
              null
            ]
          },
          "failureReason": {
            "type": [
              "string",
              "null"
            ],
            "description": "Details of the failure, when `status` is `FAILED`.",
            "examples": [
              null
            ]
          },
          "versionNumber": {
            "type": "number",
            "description": "Its number among the job’s translations.",
            "examples": [
              1
            ]
          },
          "versionId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the translation.",
            "examples": [
              "b2d4f6a8-2345-4bcd-8ef0-123456789abc"
            ]
          },
          "savedToDrive": {
            "type": "boolean",
            "description": "Whether it has been saved to your assets.",
            "examples": [
              false
            ]
          },
          "assetId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The asset it was last saved to. Null if never saved.",
            "examples": [
              null
            ]
          }
        },
        "required": [
          "success",
          "message",
          "statusCode",
          "status",
          "translatedImageUrl",
          "sourceImageUrl",
          "targetLanguage",
          "aspectRatio",
          "translationData",
          "fullGenerationJson",
          "renderSpec",
          "errorCode",
          "failureReason",
          "versionNumber",
          "versionId",
          "savedToDrive",
          "assetId"
        ]
      },
      "TranslationSourceDto": {
        "type": "object",
        "properties": {
          "generationId": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the created image.",
            "examples": [
              "4f2b8c1e-6a3d-4b7e-9c2f-1a2b3c4d5e6f"
            ]
          },
          "key": {
            "type": "string",
            "description": "Storage key of the image. Send it as `sourceKey` to start an image translation.",
            "examples": [
              "0c9d8e7f-6a5b-4c3d-8e2f-1a0b9c8d7e6f/image-creator/7d1e2f3a-4b5c-4d6e-8f9a-0b1c2d3e4f5a.png"
            ]
          },
          "url": {
            "type": "string",
            "description": "Signed URL to preview the image. It expires.",
            "examples": [
              "{{STORAGE_BASE_URL}}/0c9d8e7f/image-creator/7d1e2f3a.png?X-Amz-Expires=3600&X-Amz-Signature=…"
            ]
          },
          "name": {
            "type": "string",
            "description": "A short file name for the image: its channel (or `creation`) and the start of its ID.",
            "examples": [
              "creation-4f2b8c.png"
            ]
          }
        },
        "required": [
          "generationId",
          "key",
          "url",
          "name"
        ]
      },
      "TranslationSourcesDto": {
        "type": "object",
        "properties": {
          "generationIds": {
            "description": "IDs of created images to prepare for translation, in the order you want them back. 1 to 25.",
            "maxItems": 25,
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "4f2b8c1e-6a3d-4b7e-9c2f-1a2b3c4d5e6f"
              ]
            ]
          }
        },
        "required": [
          "generationIds"
        ]
      },
      "TranslationSourcesResponseDto": {
        "type": "object",
        "properties": {
          "sources": {
            "description": "The images that can be translated, in the order you sent.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TranslationSourceDto"
            }
          },
          "skipped": {
            "description": "IDs left out: not in your organization, deleted, still being made or failed.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d"
              ]
            ]
          }
        },
        "required": [
          "sources",
          "skipped"
        ]
      },
      "TranslationVersionDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the translation (`translationVersionId`).",
            "examples": [
              "b2d4f6a8-2345-4bcd-8ef0-123456789abc"
            ]
          },
          "versionNumber": {
            "type": "number",
            "description": "Its number among the job’s translations, from 1.",
            "examples": [
              1
            ]
          },
          "analysisVersionId": {
            "type": "string",
            "format": "uuid",
            "description": "The analysis version it was built from.",
            "examples": [
              "a1c3e5f7-1234-4abc-9def-0123456789ab"
            ]
          },
          "sourceImageUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "The image it was rendered from.",
            "examples": [
              "{{STORAGE_BASE_URL}}/3f8b2c1d-9e7a-4b6c-8d5e-1a2b3c4d5e6f/image-translator/compressed/8e2f4a6b.jpg"
            ]
          },
          "translatedImageUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "The translated image. Null until it has rendered.",
            "examples": [
              "{{STORAGE_BASE_URL}}/3f8b2c1d-9e7a-4b6c-8d5e-1a2b3c4d5e6f/image-translator/translated/2c4e6a8b.png"
            ]
          },
          "targetLanguage": {
            "type": "string",
            "description": "Its language.",
            "examples": [
              "french_france"
            ]
          },
          "aspectRatio": {
            "type": [
              "string",
              "null"
            ],
            "description": "Its aspect ratio: `Original` or a ratio such as `9:16`.",
            "examples": [
              "Original"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "SCHEDULED",
              "RUNNING",
              "COMPLETED",
              "FAILED"
            ],
            "description": "Its state. Get a translation reports the same state as `SCHEDULED`, `RUNNING`, `COMPLETED` or `FAILED`.",
            "examples": [
              "COMPLETED"
            ]
          },
          "operationMeta": {
            "description": "What made it.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/TranslationOperationMetaDto"
              }
            ]
          },
          "fk_assetId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The asset it was last saved to with Save a translation to assets. Null if never saved.",
            "examples": [
              null
            ]
          },
          "savedToDrive": {
            "type": "boolean",
            "description": "Whether it has been saved to your assets.",
            "examples": [
              false
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it was created.",
            "examples": [
              "2026-06-12T18:38:00.000Z"
            ]
          }
        },
        "required": [
          "id",
          "versionNumber",
          "analysisVersionId",
          "sourceImageUrl",
          "translatedImageUrl",
          "targetLanguage",
          "aspectRatio",
          "status",
          "operationMeta",
          "fk_assetId",
          "savedToDrive",
          "createdAt"
        ]
      },
      "TranslationVersionListItemDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the translation (`translationVersionId`).",
            "examples": [
              "b2d4f6a8-2345-4bcd-8ef0-123456789abc"
            ]
          },
          "versionNumber": {
            "type": "number",
            "description": "Its number among the job’s translations.",
            "examples": [
              1
            ]
          },
          "targetLanguage": {
            "type": "string",
            "description": "Its language.",
            "examples": [
              "french_france"
            ]
          },
          "translatedImageUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "The translated image. Null until it has rendered.",
            "examples": [
              "{{STORAGE_BASE_URL}}/3f8b2c1d-9e7a-4b6c-8d5e-1a2b3c4d5e6f/image-translator/translated/2c4e6a8b.png"
            ]
          },
          "sourceImageUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "The image it was rendered from.",
            "examples": [
              "{{STORAGE_BASE_URL}}/3f8b2c1d-9e7a-4b6c-8d5e-1a2b3c4d5e6f/image-translator/compressed/8e2f4a6b.jpg"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "SCHEDULED",
              "RUNNING",
              "COMPLETED",
              "FAILED"
            ],
            "description": "Its state.",
            "examples": [
              "COMPLETED"
            ]
          },
          "operationMeta": {
            "description": "What made it.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/TranslationVersionOperationMetaDto"
              }
            ]
          },
          "regionCount": {
            "type": "number",
            "description": "How many text regions it has.",
            "examples": [
              4
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When it was created.",
            "examples": [
              "2026-06-12T18:38:00.000Z"
            ]
          }
        },
        "required": [
          "id",
          "versionNumber",
          "targetLanguage",
          "status",
          "regionCount",
          "createdAt"
        ]
      },
      "TranslationVersionListResponseDto": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "description": "Always `200`.",
            "examples": [
              200
            ]
          },
          "versions": {
            "description": "The job’s translations, newest first. A reviewer assigned to some languages only sees those.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TranslationVersionDto"
            }
          }
        },
        "required": [
          "statusCode",
          "versions"
        ]
      },
      "TranslationVersionOperationMetaDto": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string",
            "description": "A label for the step that made this translation.",
            "examples": [
              "Translate: french_france"
            ]
          },
          "type": {
            "type": "string",
            "enum": [
              "translate",
              "retranslate",
              "direct-translate",
              "element-edit",
              "asset-compose",
              "finalize"
            ],
            "description": "The step that made it.",
            "examples": [
              "translate"
            ]
          },
          "targetLanguage": {
            "type": "string",
            "description": "The language of the translation.",
            "examples": [
              "french_france"
            ]
          },
          "fastMode": {
            "type": "boolean",
            "description": "True when it was rendered automatically in fast mode.",
            "examples": [
              false
            ]
          }
        }
      },
      "TypographyDto": {
        "type": "object",
        "properties": {
          "font_family_guess": {
            "type": "string",
            "description": "The closest font family, as guessed by the analysis.",
            "examples": [
              "Montserrat"
            ]
          },
          "font_style": {
            "type": "string",
            "description": "Font style.",
            "examples": [
              "normal"
            ]
          },
          "font_weight": {
            "type": "string",
            "description": "Font weight.",
            "examples": [
              "bold"
            ]
          },
          "font_size_estimate": {
            "type": "string",
            "description": "Estimated font size.",
            "examples": [
              "large"
            ]
          },
          "alignment": {
            "type": "string",
            "description": "Text alignment.",
            "examples": [
              "center"
            ]
          },
          "color": {
            "type": "string",
            "description": "Text color.",
            "examples": [
              "#FFFFFF"
            ]
          },
          "rotation_deg": {
            "type": "number",
            "description": "Clockwise rotation of the text in degrees, 0 to 359. Absent for horizontal text.",
            "examples": [
              0
            ]
          }
        },
        "required": [
          "font_family_guess",
          "font_style",
          "font_weight",
          "alignment",
          "color"
        ]
      },
      "UpdateBrandKitDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the brand. Up to 160 characters.",
            "examples": [
              "Acme Corporation"
            ]
          },
          "website": {
            "type": "string",
            "description": "The brand's website.",
            "examples": [
              "https://www.acme.com"
            ]
          },
          "toneOfVoice": {
            "type": "string",
            "description": "How the brand speaks. Up to 10,000 characters.",
            "examples": [
              "Confident, warm, and a little playful."
            ]
          },
          "headingFont": {
            "type": "string",
            "description": "Font for headings.",
            "examples": [
              "Poppins"
            ]
          },
          "bodyFont": {
            "type": "string",
            "description": "Font for body text.",
            "examples": [
              "Inter"
            ]
          },
          "primaryColors": {
            "description": "Brand colors as hex codes, main color first. 1 to 5.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "#8143FD",
                "#1A1A1A"
              ]
            ]
          },
          "visualStyles": {
            "description": "Words that describe the visual style. Up to 20, each up to 60 characters.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "minimal",
                "modern"
              ]
            ]
          },
          "logoUploadKey": {
            "type": "string",
            "description": "The logo, put in storage first: the `uploadKey` from Get an upload URL (`kind: logo`), once the `PUT` has finished. The file then never passes through this API. Used instead of `logo` when both are sent.",
            "examples": [
              "1f0c…/staged-uploads/7b9e….png"
            ]
          },
          "logo": {
            "description": "A new logo to replace the current one, or `null` to remove it. Leave out to keep it.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/BrandKitLogoDto"
              }
            ]
          }
        }
      },
      "UpdateCollectionDto": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "New title. Up to 200 characters. Leave out to keep it.",
            "examples": [
              "Diwali campaign 2026"
            ]
          },
          "description": {
            "type": "string",
            "description": "New description. Up to 2000 characters. An empty string removes it; leave out to keep it.",
            "examples": [
              "Final picks for the October social posts."
            ]
          }
        }
      },
      "UpdateImageJobBodyDoc": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "A new name for the job.",
            "examples": [
              "Summer sale banner"
            ]
          },
          "data": {
            "type": "object",
            "additionalProperties": true,
            "description": "Your own context for the job. Replaces what's stored in `data`.",
            "examples": [
              {
                "campaign": "summer-2026",
                "market": "FR"
              }
            ]
          }
        }
      },
      "UpdateImageJobResponseDto": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "description": "Always `200`.",
            "examples": [
              200
            ]
          },
          "message": {
            "type": "string",
            "description": "What happened, in plain words.",
            "examples": [
              "Image Translator entry updated!"
            ]
          },
          "data": {
            "description": "The job after the change.",
            "allOf": [
              {
                "$ref": "#/components/schemas/ImageJobDto"
              }
            ]
          }
        },
        "required": [
          "statusCode",
          "message",
          "data"
        ]
      },
      "UpdateRegionStatusBodyDoc": {
        "type": "object",
        "properties": {
          "regionId": {
            "type": "string",
            "description": "The region to change: a key of `translationData`.",
            "examples": [
              "tr_1"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "u",
              "v",
              "a"
            ],
            "description": "The new review status: `u` unverified, `v` verified, `a` approved (`a` is used when your organization has a three-step review).",
            "examples": [
              "v"
            ]
          }
        },
        "required": [
          "regionId",
          "status"
        ]
      },
      "UpdateRegionTextBodyDoc": {
        "type": "object",
        "properties": {
          "regionId": {
            "type": "string",
            "description": "The region to change: a key of `translationData`.",
            "examples": [
              "tr_1"
            ]
          },
          "translated": {
            "type": "string",
            "description": "The new translation. Leading and trailing spaces are removed.",
            "examples": [
              "Soldes d’été : jusqu’à -50 %"
            ]
          }
        },
        "required": [
          "regionId",
          "translated"
        ]
      },
      "UploadBrandFontBodyDoc": {
        "type": "object",
        "properties": {
          "family": {
            "type": "string",
            "description": "The font family to name it by, up to 120 characters. Defaults to the family the fonts name themselves, else the file name without its extension and style words: `Acme_Sans-Bold.ttf` becomes `Acme Sans`.",
            "examples": [
              "Acme Sans"
            ]
          },
          "uploadKeys": {
            "description": "The files, put in storage first: the `uploadKey`s from Get an upload URL for a brand kit (`kind: font`), one per file, at most 30 and 40 MB in all. Send them in a JSON body instead of the multipart form: the files then never pass through this API.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "1f0c…/staged-uploads/7b9e….zip"
              ]
            ]
          },
          "file": {
            "contentMediaType": "application/octet-stream",
            "description": "A font file (TTF, OTF, WOFF or WOFF2, up to 5 MB) or a ZIP of a family’s fonts (up to 40 MB). Repeat the field for several files: at most 30 styles and 40 MB in all.",
            "examples": [
              "AcmeSans.zip"
            ]
          }
        },
        "required": [
          "file"
        ]
      },
      "UploadedBrandFontDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the brand kit.",
            "examples": [
              "6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f"
            ]
          },
          "name": {
            "type": "string",
            "description": "Name of the brand.",
            "examples": [
              "Acme Corporation"
            ]
          },
          "sourceUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "The address the kit was made from, as sent when it was created. It cannot be changed.",
            "examples": [
              "https://www.acme.com"
            ]
          },
          "website": {
            "type": [
              "string",
              "null"
            ],
            "description": "The brand's website. `null` when not set.",
            "examples": [
              "https://www.acme.com"
            ]
          },
          "toneOfVoice": {
            "type": [
              "string",
              "null"
            ],
            "description": "How the brand speaks. `null` when not set.",
            "examples": [
              "Confident, warm, and a little playful."
            ]
          },
          "headingFont": {
            "type": [
              "string",
              "null"
            ],
            "description": "Font for headings. `null` when not set.",
            "examples": [
              "Poppins"
            ]
          },
          "bodyFont": {
            "type": [
              "string",
              "null"
            ],
            "description": "Font for body text. `null` when not set.",
            "examples": [
              "Inter"
            ]
          },
          "primaryColors": {
            "description": "Brand colors as hex codes, main color first. 1 to 5.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "#8143FD",
                "#1A1A1A"
              ]
            ]
          },
          "visualStyles": {
            "description": "Words that describe the visual style. Can be empty.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "minimal",
                "modern"
              ]
            ]
          },
          "logoUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "Signed URL of the logo. It expires, so read the kit again when you need it later. `null` when the kit has no logo.",
            "examples": [
              "{{STORAGE_BASE_URL}}/0c9d8e7f/brand-kit/3e4f5a6b.png?X-Amz-Expires=3600&X-Amz-Signature=…"
            ]
          },
          "fonts": {
            "description": "Font files uploaded to the kit, by role. Empty when none were uploaded. Download one with Download a brand font.",
            "allOf": [
              {
                "$ref": "#/components/schemas/BrandKitFontsDto"
              }
            ],
            "examples": [
              {
                "heading": {
                  "family": "Acme Sans",
                  "format": "woff2"
                }
              }
            ]
          },
          "source": {
            "type": "string",
            "enum": [
              "manual",
              "url_extraction"
            ],
            "description": "How the kit was made. Kits created with Create a brand kit are `manual`, including kits filled in from Extract a brand identity.",
            "examples": [
              "manual"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the kit was created.",
            "examples": [
              "2026-10-01T08:00:00.000Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the kit was last changed.",
            "examples": [
              "2026-10-04T09:30:00.000Z"
            ]
          },
          "skippedFonts": {
            "description": "Files left out of the family: fonts of another family, or a second file for a style already uploaded. Present only then.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "examples": [
              [
                "OtherBrand-Regular.ttf"
              ]
            ]
          }
        },
        "required": [
          "id",
          "name",
          "sourceUrl",
          "website",
          "toneOfVoice",
          "headingFont",
          "bodyFont",
          "primaryColors",
          "visualStyles",
          "logoUrl",
          "fonts",
          "source",
          "createdAt",
          "updatedAt"
        ]
      },
      "UploadLibraryAssetBodyDoc": {
        "type": "object",
        "properties": {
          "file": {
            "contentMediaType": "application/octet-stream",
            "description": "The image to add, such as a logo, sticker or icon, up to 5 MB. Its file name, without the extension, becomes its `name`."
          },
          "uploadKey": {
            "type": "string",
            "description": "Instead of `file`: the `uploadKey` from Get an upload URL (`kind: asset`), once the image is in storage. PNG, JPEG, WebP, GIF, AVIF or SVG, up to 5 MB."
          }
        }
      },
      "UsageOperationDto": {
        "type": "object",
        "properties": {
          "operation": {
            "type": "string",
            "enum": [
              "analyze",
              "translate",
              "direct_translate",
              "reanalyze",
              "refresh_analysis",
              "element_edit",
              "area_edit",
              "master_prompt",
              "asset_compose",
              "resize"
            ],
            "description": "The charged operation.",
            "examples": [
              "translate"
            ]
          },
          "label": {
            "type": "string",
            "description": "A name for it.",
            "examples": [
              "Translation"
            ]
          },
          "credits": {
            "type": "number",
            "description": "Credits it cost, after refunds.",
            "examples": [
              300
            ]
          },
          "count": {
            "type": "number",
            "description": "How many times it ran.",
            "examples": [
              1
            ]
          }
        },
        "required": [
          "operation",
          "label",
          "credits",
          "count"
        ]
      },
      "VariantParentDesignDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the design.",
            "examples": [
              "3f2b8c1d-6e4a-4b7f-9c2d-1a5e8f3b7c90"
            ]
          },
          "name": {
            "type": "string",
            "description": "Name of the design.",
            "examples": [
              "Summer sale banner"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "CREATED",
              "PROCESSED",
              "APPROVED",
              "ARCHIVED"
            ],
            "description": "Status of the design.",
            "examples": [
              "APPROVED"
            ]
          },
          "tier": {
            "type": "string",
            "enum": [
              "FLASH",
              "PRO"
            ],
            "description": "Tier of the design.",
            "examples": [
              "PRO"
            ]
          },
          "sourceImageUrl": {
            "type": "string",
            "description": "URL of the source image.",
            "examples": [
              "{{CDN_BASE_URL}}/1d2e3f4a-5b6c-4d7e-8f9a-0b1c2d3e4f5a/adapt/3f2b8c1d-6e4a-4b7f-9c2d-1a5e8f3b7c90/source/summer-sale.png"
            ]
          },
          "sourceThumbnailUrl": {
            "type": [
              "object",
              "null"
            ],
            "description": "URL of a small copy of the source image (WebP, longest side 512 px, uncropped). Null until it is made, shortly after upload.",
            "examples": [
              null
            ]
          },
          "sourceImageMeta": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "description": "Size and type of the source image, as on Get a design.",
            "examples": [
              {
                "width": 1200,
                "height": 628,
                "mime": "image/png"
              }
            ]
          },
          "designKnowledge": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "description": "What the analysis found, as on Get a design.",
            "examples": [
              {
                "text_elements": [],
                "subjects": []
              }
            ]
          },
          "analysisMeta": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "description": "Analysis details, as on Get a design.",
            "examples": [
              {
                "phase": "analysis_complete"
              }
            ]
          }
        },
        "required": [
          "id",
          "name",
          "status",
          "tier",
          "sourceImageUrl",
          "sourceImageMeta",
          "designKnowledge",
          "analysisMeta"
        ]
      },
      "VariantVersionSummaryDto": {
        "type": "object",
        "properties": {
          "promptTokens": {
            "type": "number",
            "description": "Model input tokens used so far. For reporting only.",
            "examples": [
              5120
            ]
          },
          "completionTokens": {
            "type": "number",
            "description": "Model output tokens used so far. For reporting only.",
            "examples": [
              830
            ]
          },
          "thoughtsTokens": {
            "type": "number",
            "description": "Model reasoning tokens used so far. For reporting only.",
            "examples": [
              410
            ]
          },
          "totalTokens": {
            "type": "number",
            "description": "Sum of all tokens used so far. For reporting only.",
            "examples": [
              6360
            ]
          },
          "tokensByModel": {
            "type": "object",
            "additionalProperties": true,
            "description": "Token totals split by the model that used them.",
            "examples": [
              {}
            ]
          },
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "ID of the version.",
            "examples": [
              "b4d2f8e1-9a3c-4b5d-8e7f-1a2b3c4d5e6f"
            ]
          },
          "versionNumber": {
            "type": "number",
            "description": "Number of the version, from 1, in the order they were made.",
            "examples": [
              2
            ]
          },
          "fk_parentVersionId": {
            "type": [
              "object",
              "null"
            ],
            "format": "uuid",
            "description": "Version this one was made from (edits and fixes).",
            "examples": [
              "0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d"
            ]
          },
          "originTaskType": {
            "type": "string",
            "enum": [
              "INITIAL",
              "AUTO_FIX",
              "USER_FIX",
              "MIGRATED_LEGACY"
            ],
            "description": "What made the version: `INITIAL` (a render), `USER_FIX` (an edit, fix or recrop), `AUTO_FIX` or `MIGRATED_LEGACY`.",
            "examples": [
              "USER_FIX"
            ]
          },
          "originLabel": {
            "type": [
              "object",
              "null"
            ],
            "description": "Label of the change, such as `Mask edit`, `User fix` or `Recrop`.",
            "examples": [
              "Mask edit"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "GENERATING",
              "REVIEW_PENDING",
              "NEEDS_REVIEW",
              "APPROVED",
              "FAILED"
            ],
            "description": "`GENERATING`, `REVIEW_PENDING`, `NEEDS_REVIEW`, `APPROVED` or `FAILED`. Only versions that are not `GENERATING` or `FAILED` can be activated.",
            "examples": [
              "APPROVED"
            ]
          },
          "generatedImageUrl": {
            "type": [
              "object",
              "null"
            ],
            "description": "URL of the image of this version.",
            "examples": [
              "{{CDN_BASE_URL}}/1d2e3f4a-5b6c-4d7e-8f9a-0b1c2d3e4f5a/adapt/3f2b8c1d-6e4a-4b7f-9c2d-1a5e8f3b7c90/variants/7c1e4a9b-2d3f-4e5a-8b6c-9d0e1f2a3b4c/final-1759572000000.jpg"
            ]
          },
          "previewImageUrl": {
            "type": [
              "object",
              "null"
            ],
            "description": "URL of a smaller preview, when one exists.",
            "examples": [
              null
            ]
          },
          "thumbnailUrl": {
            "type": [
              "object",
              "null"
            ],
            "description": "URL of a small copy of the image (WebP, longest side 512 px, uncropped) for lists and cards. Null until it is made, shortly after the image.",
            "examples": [
              null
            ]
          },
          "score": {
            "type": [
              "object",
              "null"
            ],
            "description": "QA score. `null` when no review scored it.",
            "examples": [
              null
            ]
          },
          "errorLog": {
            "type": [
              "object",
              "null"
            ],
            "description": "Why the version failed, when `status` is `FAILED`.",
            "examples": [
              null
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the version was created.",
            "examples": [
              "2026-10-04T09:30:00.000Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the version last changed.",
            "examples": [
              "2026-10-04T09:30:00.000Z"
            ]
          },
          "isActive": {
            "type": "boolean",
            "description": "Whether this is the active version of the variant.",
            "examples": [
              true
            ]
          },
          "layoutPlan": {
            "description": "Layout plan the version was rendered from. Only with `include=full`.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/LayoutPlanDto"
              }
            ]
          },
          "reviewData": {
            "description": "Review of this version. Only with `include=full`.",
            "type": [
              "object",
              "null"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/ReviewDataDto"
              }
            ]
          },
          "generationSteps": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "description": "How the image was made (prompt, crop, sizes, `uncroppedUrl`). Only with `include=full`.",
            "examples": [
              {
                "prompt": "Make the headline yellow",
                "hasMask": true,
                "uncroppedUrl": "{{CDN_BASE_URL}}/1d2e3f4a-5b6c-4d7e-8f9a-0b1c2d3e4f5a/adapt/3f2b8c1d-6e4a-4b7f-9c2d-1a5e8f3b7c90/variants/7c1e4a9b-2d3f-4e5a-8b6c-9d0e1f2a3b4c/mask-edit-1759572000000-uncropped.jpg",
                "finalDimensions": {
                  "width": 1080,
                  "height": 1920
                }
              }
            ]
          }
        },
        "required": [
          "promptTokens",
          "completionTokens",
          "thoughtsTokens",
          "totalTokens",
          "tokensByModel",
          "id",
          "versionNumber",
          "fk_parentVersionId",
          "originTaskType",
          "originLabel",
          "status",
          "generatedImageUrl",
          "previewImageUrl",
          "score",
          "errorLog",
          "createdAt",
          "updatedAt",
          "isActive"
        ]
      },
      "VersionUsageResponseDto": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "description": "Always `200`.",
            "examples": [
              200
            ]
          },
          "totalCredits": {
            "type": "number",
            "description": "Credits the job cost in total, after refunds.",
            "examples": [
              350
            ]
          },
          "creditsRefunded": {
            "type": "number",
            "description": "Credits given back for runs that failed on our side.",
            "examples": [
              0
            ]
          },
          "creditsAdjusted": {
            "type": "number",
            "description": "Credits moved by later corrections to a charge.",
            "examples": [
              0
            ]
          },
          "operations": {
            "description": "The cost per operation.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UsageOperationDto"
            }
          },
          "versionId": {
            "type": "string",
            "format": "uuid",
            "description": "The translation or analysis version you asked about.",
            "examples": [
              "b2d4f6a8-2345-4bcd-8ef0-123456789abc"
            ]
          },
          "versionNumber": {
            "type": "number",
            "description": "Its version number.",
            "examples": [
              1
            ]
          }
        },
        "required": [
          "statusCode",
          "totalCredits",
          "creditsRefunded",
          "creditsAdjusted",
          "operations",
          "versionId",
          "versionNumber"
        ]
      },
      "VisualReviewDto": {
        "type": "object",
        "properties": {
          "mapped_visuals": {
            "description": "Each visual element of the design, matched in the variant.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VisualReviewItemDto"
            }
          }
        },
        "required": [
          "mapped_visuals"
        ]
      },
      "VisualReviewItemDto": {
        "type": "object",
        "properties": {
          "original_id": {
            "type": "string",
            "description": "ID of the visual element in the design. Pass it in `selectedIssueIds` to Fix review issues.",
            "examples": [
              "subject_1"
            ]
          },
          "element_type": {
            "type": "string",
            "enum": [
              "subject",
              "brand_identity",
              "design_element"
            ],
            "description": "Kind of element.",
            "examples": [
              "subject"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "warning",
              "error",
              "missing"
            ],
            "description": "`error` and `missing` are issues you can fix.",
            "examples": [
              "error"
            ]
          },
          "factual_observation": {
            "type": "string",
            "description": "What the reviewer saw.",
            "examples": [
              "The product is cut off at the right edge."
            ]
          },
          "variant_box": {
            "description": "Where the element is in the variant: `[ymin, xmin, ymax, xmax]` on a 0–1000 scale. `null` if missing.",
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "number"
            },
            "examples": [
              [
                300,
                500,
                900,
                1000
              ]
            ]
          },
          "suggested_correction": {
            "type": "string",
            "description": "The correction to make.",
            "examples": [
              "Show the whole product inside the frame."
            ]
          }
        },
        "required": [
          "original_id",
          "element_type",
          "status",
          "factual_observation",
          "variant_box",
          "suggested_correction"
        ]
      }
    }
  },
  "security": [
    {
      "ApiKeyAuth": []
    }
  ]
}
