{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tintin-x-com/json-schema/tintin-x-com-src-nail-art-schemas-jobs-job-submit-request-schema.json",
  "title": "JobSubmitRequest",
  "description": "POST `/api/jobs/{id}/submit` body. Pins inputs onto the draft and\nruns the charge fan-out.\n\nEither presign-uploaded inputs (the route lists `apps/nail-art/{id}/inputs/`\nin S3 to discover them automatically) OR explicit keys/file_ids\npassed in this body. The explicit path is required when inputs came\nvia Platform Storage uploadFile (workspace-visible files) rather\nthan the per-app presign route.\n\nThe optional ``nail_shape`` / ``nail_length`` / ``shape_terms``\nfields let the user override the auto-detected shape from the\ncatalog. Auto-detect still runs as fallback; user override always\nwins. ``shape_terms`` is echoed VERBATIM into the harmonize prompt\nso the user's exact words (\"super short almond, round shape\")\nflow through without paraphrase — see pain-points doc §4.3.\n\n``output_aspect`` / ``output_max_kb`` / ``output_format`` apply as\na post-harmonize encode pass — the raw NB2 PNG is re-encoded to\nthe requested aspect + size budget. See §4.8.",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/tintin-x-com-api-openapi.json#/components/schemas/src__nail_art__schemas__jobs__JobSubmitRequest",
  "properties": {
    "nail_set_s3_key": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 512
        },
        {
          "type": "null"
        }
      ],
      "title": "Nail Set S3 Key"
    },
    "nail_set_label": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 255
        },
        {
          "type": "null"
        }
      ],
      "title": "Nail Set Label"
    },
    "hand_s3_keys": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array",
          "maxItems": 5
        },
        {
          "type": "null"
        }
      ],
      "title": "Hand S3 Keys"
    },
    "hand_template_ids": {
      "anyOf": [
        {
          "items": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "type": "array",
          "maxItems": 5
        },
        {
          "type": "null"
        }
      ],
      "title": "Hand Template Ids"
    },
    "harmonize_num_images": {
      "type": "integer",
      "maximum": 4.0,
      "minimum": 1.0,
      "title": "Harmonize Num Images",
      "default": 2
    },
    "nail_shape": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "almond",
            "square",
            "coffin",
            "round",
            "oval",
            "squoval",
            "stiletto"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Nail Shape"
    },
    "nail_length": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "super_short",
            "short",
            "medium",
            "long"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Nail Length"
    },
    "nail_size": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "slim",
            "full"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Nail Size"
    },
    "shape_terms": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 120
        },
        {
          "type": "null"
        }
      ],
      "title": "Shape Terms"
    },
    "output_aspect": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "auto",
            "21:9",
            "16:9",
            "3:2",
            "4:3",
            "5:4",
            "1:1",
            "4:5",
            "3:4",
            "2:3",
            "9:16",
            "4:1",
            "1:4",
            "8:1",
            "1:8"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Output Aspect"
    },
    "output_max_kb": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 10000.0,
          "minimum": 100.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Output Max Kb"
    },
    "output_format": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "png",
            "jpg",
            "webp"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Output Format"
    },
    "output_resolution": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "2K",
            "4K"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Output Resolution"
    },
    "collection_tag": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 40
        },
        {
          "type": "null"
        }
      ],
      "title": "Collection Tag"
    }
  },
  "type": "object"
}