{"openapi":"3.1.0","info":{"title":"lookbook API","version":"2.0.0","description":"lookbook HTTP 계약의 단일 정본. 토큰(무계정 링크) 흐름과 세션(개인 라이브러리) 흐름이 한 스펙에 있고, 경로 접두사가 흐름을 가른다: `/api/*`(토큰·공개), `/api/*`(세션).\n\n룩북 v1 경계 — 제출별 capability token(무계정 링크) 흐름.\n상품 링크 접수 → 확인 게이트 승인 → 버전 선택·재생성 → 상태 프로브.\n\n- 이 스펙이 v1 HTTP 요청·응답의 단일 출처다. 생성 타입 `api.d.ts`를 커밋하고\n  `npm run openapi:check`가 최신성을, `v1-conformance.test.ts`가 실제 핸들러 응답과의\n  일치(선언 외 필드·미선언 상태/코드 거부)를 검사한다.\n- 상태 화면 `/status/{token}`·확인 화면 `/check/{token}`은 서버 렌더 페이지(Store 직접\n  소비)다. 기계용 상태 요약은 `GET /api/status/{token}` JSON으로 제공한다.\n- 오류 봉투는 `{error, reason?}` 기계 판독형이다. 표시 문구는 web이 소유한다.\n- 이메일은 받지 않는다(0006, JJO-399). POST 외 메서드는 405 `method_not_allowed`다.\n\n\n룩북 v2 경계 — 개인 사진 피팅·컬렉션·저장/공유와 크리에이터 룩북 합성.\n\n- v1(`/api/submit`·`/api/check/{token}/confirm`·`/api/status/{token}/select|regen`)은\n  제출별 capability token 계약이며 이 스펙의 대상이 아니다. v2는 개인 라이브러리\n  소유를 위한 별도 세션 주체를 쓴다.\n- 소유자(owner)는 항상 서버가 세션 쿠키에서 유도한다. 요청 본문·쿼리의 owner는 무시한다.\n- 개인 사진은 private 저장소에만 두고, 공유는 매 읽기 검사하는 프록시로만 노출한다.\n- 이메일 수집·발송은 없다.\n- 오류 봉투는 v1과 같은 `{error, reason?, detail?}` 형태다.\n"},"servers":[{"url":"https://vm1.tailb9aaa1.ts.net:8443","description":"운영(k3s lookbook-main)"}],"tags":[{"name":"session"},{"name":"account"},{"name":"entitlement"},{"name":"consent"},{"name":"media"},{"name":"garment"},{"name":"preference"},{"name":"draft"},{"name":"fit"},{"name":"composition"},{"name":"collection"},{"name":"developer"},{"name":"share"},{"name":"product"},{"name":"dashboard"}],"paths":{"/api/check/{token}/items":{"get":{"operationId":"v1CheckItems","summary":"한 룩의 아이템별 후보·최신 검토 크롭 조회","parameters":[{"$ref":"#/components/parameters/Token"}],"responses":{"200":{"description":"Ordered items; private snapshot URLs expire after one hour.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["items"],"properties":{"items":{"type":"array","maxItems":3,"items":{"type":"object","additionalProperties":false,"required":["id","position","productUrl","candidates","latestCrop"],"properties":{"id":{"type":"string"},"position":{"type":"integer","minimum":1},"productUrl":{"type":"string"},"candidates":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["sha256","snapshotUrl"],"properties":{"sha256":{"type":["string","null"]},"snapshotUrl":{"type":["string","null"]}}}},"latestCrop":{"oneOf":[{"$ref":"#/components/schemas/CropView"},{"type":"null"}]}}}}}}}}},"404":{"description":"Submission not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"410":{"description":"Submission expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Expired"}}}}}}},"/api/submit":{"post":{"operationId":"v1Submit","summary":"상품 링크·이미지 접수(용량 판정 + extract 잡 시드)","description":"접수는 생성 지원을 보장하지 않는다. 현재 comfyq 착장 스틸은 의류 1개(N=1)만\n지원한다. 같은 의류의 후보 사진(imageKeys) 여러 장은 다품목 입력이 아니다.\n2개 이상 품목은 현재 comfyq 구성에서 확인 단계에 409 conflict/garment_unavailable로\n거절되며, 용량 예약·generate 잡 적재는 하지 않는다.\n\n상점이 추출을 차단한 호스트(무신사 데스크톱 `www.musinsa.com` 상품 페이지)의 링크는\n400 bad_request/extract_blocked로 거절한다. 모바일 호스트로 바꿔 같은 상품 페이지를\n가져오는 정규화·폴백은 없다(JJO-991) — 호출자는 상품 이미지 업로드 경로를 안내한다.\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitRequest"}}}},"security":[{"sessionCookie":[]},{"apiKeyBearer":[]}],"responses":{"200":{"description":"접수됨 — 확인 게이트 링크 발급","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitAccepted"}}}},"400":{"description":"형식·동의·지원 도메인·모델 가용성 위반","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitBadRequest"}}}},"401":{"description":"API 키가 폐기·위조·만료됐다","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyInvalid"}}}},"402":{"description":"유료 구독 크레딧 부족 또는 결제 확인 필요(`past_due`) — 업그레이드·구독 관리 링크를 함께 돌려준다","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsufficientCredits"}}}},"403":{"description":"API 키에 write 스코프가 없다","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyScopeForbidden"}}}},"429":{"description":"익명 스로틀(분당 5회). 판정은 DB 원자 카운터(0030 `lookbook_rate_take`)이고 키는\n`ip:<sha256(분버킷:ip)>`다 — IP 원문은 저장하지 않으며 분이 바뀌면 연결되지 않는다.\nDB 오류는 허용이 아니라 거부로 닫는다(fail closed).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"500":{"description":"저장 실패","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}},"503":{"description":"접수 용량 닫힘","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CapacityClosed"}}}}}}},"/api/submit/image":{"post":{"operationId":"v1SubmitImage","summary":"상품 이미지를 스테이징에 올린다(직접 입력)","description":"상품 링크를 쓸 수 없는 사용자(403 쇼핑몰 등)를 위한 입력 경로다. 본문은 이미지\n바이트이고 content-type은 `image/jpeg` 또는 `image/png`다. 성공하면\n`staging/<uuid>.<ext>` 키를 돌려주고, 그 키를 `POST /api/submit`의 `imageKeys`로\n넘겨 접수한다(0052).\n\n이 경로는 이미지를 **해석하지 않는다** — 디코드·정립·EXIF/GPS 제거는 orch가 스냅숏을\n만들 때 수행한다. 저장 키는 uuid라 덮어쓸 수 없고, 미제출 객체는 TTL 스윕 대상이다.\n","parameters":[{"name":"batch","in":"query","required":false,"description":"다 SKU 배치 폼 표식(`1`). 배치 전용 업로드 버킷(10회/분, IP당)을 쓴다 —\n일반 업로드의 5회/분과 섞이지 않는다.\n","schema":{"type":"string","enum":["1"]}},{"name":"lookset","in":"query","required":false,"description":"룩 세트 폼 표식(`1`). 룩 세트 전용 업로드 버킷(`LOOK_SET_MAX`=6회/분, IP당)을 쓴다 —\n한 세트는 최대 6장을 올리고 접수는 1회라, 일반 업로드의 5회/분을 함께 쓰면\n5·6룩 세트가 업로드에서 막힌다.\n","schema":{"type":"string","enum":["1"]}}],"requestBody":{"required":true,"content":{"image/jpeg":{"schema":{"type":"string","format":"binary"}},"image/png":{"schema":{"type":"string","format":"binary"}}}},"responses":{"200":{"description":"스테이징 키","content":{"application/json":{"schema":{"type":"object","required":["key"],"properties":{"key":{"type":"string","description":"`staging/<uuid>.<ext>` 형식이다. 접수 본문의 `imageKeys`로 받을 때는\n각 세그먼트가 영숫자·`_`·`-`로 시작해야 한다(`..`·빈 세그먼트·절대 경로\n거부 — 위반은 invalid_image_key). 접수 RPC(0052)는 형식만 보고, 경로\n탈출 차단은 web 접수 경계와 orch 스토리지 키 가드가 집행한다.\n"}}}}}},"400":{"description":"빈 본문","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string","const":"invalid_image"}}}}}},"413":{"description":"크기 상한 초과(20MiB)","content":{"application/json":{"schema":{"type":"object","required":["error","maxBytes"],"properties":{"error":{"type":"string","const":"too_large"},"maxBytes":{"type":"integer","minimum":1}}}}}},"415":{"description":"허용하지 않는 MIME","content":{"application/json":{"schema":{"type":"object","required":["error","supported"],"properties":{"error":{"type":"string","const":"unsupported_media_type"},"supported":{"type":"array","items":{"type":"string"}}}}}}},"429":{"description":"같은 IP 버킷의 요청 상한 초과 — 일반 업로드는 제출과 같은 5회/분,\n`?batch=1`은 10회/분, `?lookset=1`은 6회/분이다.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"500":{"description":"스테이징 저장 실패","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}}}}},"/api/submit/mine":{"get":{"operationId":"v1SubmitMine","summary":"현재 익명 세션의 최근 제출·월 사용량·고정 페르소나 조회(ISR 홈 클라이언트 수화)","description":"`/` 정적/ISR(`revalidate = 60`) 캐시를 유지하기 위해 브라우저 마운트 및 세션 시작 직후\n`lb_session` 쿠키로 유효 세션 여부, 최근 v1 제출 목록(최대 5건), 이번 달 주체 사용량,\n고정 페르소나(0075)를 `Cache-Control: no-store`로 돌려준다(JJO-3009).\n쿠키가 없거나 만료·위조된 경우에도 200 `{session:false, submissions:[], listFailed:false, quota:null, pinnedModel:null}`을 반환한다.\n","security":[{"sessionCookie":[]}],"responses":{"200":{"description":"세션 유효 여부 및 내 제출 요약(no-store)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitMineResponse"}}}}}}},"/api/looks":{"post":{"operationId":"v1LookSetSubmit","summary":"공개 멀티룩(룩 세트) 접수 — 룩 2~6개를 한 룩북 릴로 묶는다","description":"2026-11-19 오너 승인(D3 개정, decisions/multi-look.md)으로 공개 폼에 룩 2~4개를 열었고,\nv7(2026-11-24 JJO-2895)이 상한을 6으로 넓혔다.\n룩 1개 = 제출 1건이고, 룩마다 기존 접수 경로(추출 → 의류 확인 → 장면 3 생성)를 그대로 쓴다.\n룩 세트는 이미 만들어진 제출들을 룩 번호로 묶는 행이다(0053).\n\n룩 1개와 7개 이상은 400 look_count_out_of_range다 — 단일 룩은 `POST /api/submit`이 소유하고,\n상한 6은 `look_sets.look_count` CHECK(0097, 2..6)와 같은 값이다. 룩마다 `productUrl` 또는\n업로드한 `imageKeys` 중 정확히 하나를 받는다(같은 세트에서 링크 룩과 이미지 룩을 섞을 수 있다).\n\n스타일은 접수 본문에 없다. 룩별 스타일 선택·기록은 확인 게이트(`?style=` 프리셀렉트 → POST confirm,\n0026)가 유일한 writer다 — 세트의 `style_preset`은 null이다.\n\n남용 방지는 새 계층을 만들지 않는다. 이 엔드포인트는 기존 익명 IP 스로틀 1회를 소모하고\n(단일 접수와 같은 계약), 주체(세션) 한도는 룩별 제출 RPC가 그대로 소비한다(0050 — 집행\n스위치가 켜진 환경에서 룩 수만큼 차감). 이미지 입력의 업로드는 **룩 세트 전용 버킷**\n(`POST /api/submit/image?lookset=1`, 6회/분 = `LOOK_SET_MAX`)을 쓴다 — 일반 업로드\n5회/분과 섞으면 5·6룩 이미지 세트가 업로드에서 막혀 접수에 도달하지 못한다. 접수는 일반\n버킷 1단위이므로 URL 세트는 1단위로 2~6건을 만든다(최대 6배 증폭) — 룩별 용량 판정·확인\n게이트·(켜져 있을 때) 주체 한도가 함께 막는 경계다. 비멱등이다 — 같은 요청의 재시도는\n제출·세트를 중복 생성한다.\n\n부분 실패: 룩 k에서 용량이 닫히면 이미 만든 1..k-1 룩은 원장대로 남고 세트는 결속하지 않는다.\n503 본문이 만든 룩의 토큰·확인 링크를 돌려주므로 호출자는 그 룩을 단일 룩으로 이어 쓸 수 있다.\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LookSetSubmitRequest"}}}},"security":[{"sessionCookie":[]},{"apiKeyBearer":[]}],"responses":{"200":{"description":"룩 세트 접수됨 — 세트 토큰·룩별 확인 링크·세트 상태 링크","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LookSetAccepted"}}}},"400":{"description":"형식·룩 수·입력 출처·이미지 키·모델·동의·도메인·차단 호스트 위반","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LookSetBadRequest"}}}},"401":{"description":"API 키가 폐기·위조·만료됐다","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyInvalid"}}}},"402":{"description":"유료 구독 크레딧 부족 또는 결제 확인 필요(`past_due`) — 세트 필요 크레딧과 업그레이드 링크를 돌려준다","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsufficientCredits"}}}},"403":{"description":"API 키에 write 스코프가 없다","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyScopeForbidden"}}}},"429":{"description":"익명 IP 스로틀 거부(단일 접수·업로드와 같은 버킷, 1회 소모 — 판정은 0030 RPC다).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}},"500":{"description":"저장 실패(이미 만든 룩은 남는다 — 원장)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}},"503":{"description":"접수 용량 닫힘 — 이미 만든 룩 수와 그 확인 링크를 함께 돌려준다","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LookSetCapacityClosed"}}}}}}},"/api/capacity":{"get":{"operationId":"v1Capacity","summary":"현재 접수·쿼터·큐 상태(공개 상태 프로브)","responses":{"200":{"description":"접수 가능 여부와 큐 적체","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Capacity"}}}}}}},"/api/status/{token}":{"get":{"operationId":"v1StatusSummary","summary":"제출 상태 JSON 요약(서명 URL 미포함)","parameters":[{"$ref":"#/components/parameters/Token"}],"responses":{"200":{"description":"제출 상태·버전 요약","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusSummary"}}}},"404":{"description":"없는 토큰","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/api/status/{token}/extend":{"post":{"operationId":"v1ExtendRetention","summary":"결과 보관 1회 연장(+7일)","description":"만료 전 한 번만 성공한다. 두 번째 요청은 409 conflict/already_extended, 만료 뒤 요청은\n410 expired다. 연장은 결과 열람·파일 보관만 늘리고 원장 행은 삭제하지 않는다.\n","parameters":[{"$ref":"#/components/parameters/Token"}],"responses":{"200":{"description":"연장 확정 — 새 유효 만료 시각","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetentionExtended"}}}},"404":{"description":"토큰 미발견","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"이미 연장했거나 결과가 아직 없음","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtendConflict"}}}},"410":{"description":"보관 기간 만료 — 연장 불가","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Expired"}}}}}}},"/api/status/{token}/events":{"get":{"operationId":"v1StatusEvents","summary":"진행률 SSE 스트림(큐·단계·버전 수)","description":"토큰 capability 단위 스트림이다 — 사용자끼리 상태를 공유하지 않는다. 첫 이벤트는 즉시,\n이후 3초마다 `event: status`로 `{status, generation, versions, failureCode, selectedVersionId}`를 보내고,\n종단(done·failed·만료·미발견) 또는 최대 90초에서 `event: end` 뒤 닫는다. 토큰·상품 URL·서명 URL은\n이벤트에 넣지 않는다.\n","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"Server-sent events (text/event-stream)","content":{"text/event-stream":{"schema":{"type":"string"}}}},"404":{"description":"Token shape invalid (not found)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/status/{token}/metadata":{"get":{"operationId":"v1ResultMetadata","summary":"결과 메타데이터(JSON) — AI·non-VTO 표시와 버전 출처","parameters":[{"$ref":"#/components/parameters/Token"}],"responses":{"200":{"description":"결과 메타데이터(토큰·서명 URL 미포함)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultMetadata"}}}},"404":{"description":"없는 토큰","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/api/status/{token}/packs":{"get":{"operationId":"v1StillPacks","summary":"스틸 팩·몰 규격 ZIP 다운로드(1시간 서명 URL)","description":"상세페이지(PDP)용 스틸 팩 ZIP과 쇼핑몰 규격 ZIP의 1시간 서명 URL·장수·규격을\n내려준다. 서명 URL은 공개 상태 요약(`GET /api/status/{token}`)에 섞지 않는다\n(그 요약은 서명 미디어 URL을 내보내지 않는다).\n\n팩이 아직 없거나 TTL 스윕으로 저장 키가 해제된 행은 200 `status=unavailable`다 —\n두 경우를 어댑터가 구분하지 않으므로 사유를 발명하지 않는다. 결과 링크\nTTL(7일)이 지난 제출은 미생성 판정보다 먼저 410이다.\n","parameters":[{"$ref":"#/components/parameters/Token"}],"responses":{"200":{"description":"팩 상태와 서명 다운로드 URL(미생성은 status=unavailable)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StillPacks"}}}},"404":{"description":"없는 토큰","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"410":{"description":"결과 링크 TTL 만료(원장 행은 보존)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Expired"}}}}}}},"/api/status/{token}/look-set":{"get":{"operationId":"v1LookSet","summary":"룩 세트 읽기 전용 열람(룩별 서명 URL·룩북 릴)","description":"제출 토큰으로 그 제출이 속한 룩 세트(2~6룩, 룩 1개 = 제출 1건)를 읽는다. 새 데이터\n모델·투영을 만들지 않고 0053 `look_sets`·`look_set_items`·`look_set_reels` 레코드를\n그대로 옮긴다 — `token`은 룩 세트 토큰이고, 룩별 `stillUrl`·`videoUrl`은 그 룩의\n대표 버전(대표 선택 우선, 없으면 첫 버전)의 1시간 서명 URL이다.\n\n**표면 플래그 `LOOKBOOK_API_LOOK_SET`(기본 off)** — off면 이 경로는 없는 표면과\n같은 404 `not_found`이고 MCP `lookbook_look_set` 도구도 노출되지 않는다. 룩 세트\n소속이 없는 단일 룩 제출도 404다. 세트 행이 아직 없으면 200 미생성\n(`looks: []`·`reel.ready=false`)이며, 결과 링크 TTL(7일) 만료는 410이다.\n","parameters":[{"$ref":"#/components/parameters/Token"}],"responses":{"200":{"description":"룩 세트(세트 행 미생성은 looks=[]·reel.ready=false)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LookSet"}}}},"404":{"description":"없는 토큰·룩 세트 소속 없음·표면 플래그 off","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"410":{"description":"결과 링크 TTL 만료(원장 행은 보존)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Expired"}}}}}}},"/api/batch":{"post":{"operationId":"v1BatchSubmit","summary":"여러 상품(링크·상품 이미지)을 한 번에 접수(최대 10, 부분 성공 허용)","description":"SKU 1건은 기존 v1 제출 1건이다 — 검증·스로틀·용량·원장 판정은 `/api/submit`과\n같은 핸들러·같은 `lookbook_submit` RPC가 집행하고, 이 경로는 묶음(배치) 기록만\n더한다(새 접수 경로 없음).\n\n입력은 상품 링크와 상품 이미지 스테이징 키(`/api/submit/image`가 돌려준\n`staging/<uuid>.<ext>`)의 합집합이며, 합계 10개까지다. 11개 이상은 400\n`items_limit`이고 아무것도 접수하지 않는다.\n\n공통 설정(페르소나·스타일·장소·포즈·구도)은 한 번만 받아 모든 SKU에 적용한다.\n스타일은 확인 화면 프리셀렉트(`/check/<token>?style=...`)로 전달되고, 칩은\n제출 직후 0080 `lookbook_set_scene_chips`로 각 제출 행에 기록된다 — 확인 게이트를\n우회하지 않는다(SKU마다 사용자가 확인해야 생성이 시작된다).\n\n한 배치는 레이트 리밋 1단위다(분당 1회). SKU별 제출은 그 티켓으로 통과한다 —\n10장 배치가 성립하도록 하는 대신 배치 밖 경로의 상한(분당 5회)은 그대로다.\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchRequest"}}}},"security":[{"sessionCookie":[]},{"apiKeyBearer":[]}],"responses":{"200":{"description":"배치 처리 결과(항목별 성공/실패, 부분 성공 허용)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchResponse"}}}},"400":{"description":"배치 형식 오류","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchBadRequest"}}}},"401":{"description":"API 키가 폐기·위조·만료됐다","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyInvalid"}}}},"402":{"description":"유료 구독 크레딧 부족 또는 결제 확인 필요(past_due)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsufficientCredits"}}}},"403":{"description":"API 키 스코프가 부족하다","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyScopeForbidden"}}}},"429":{"description":"배치 접수 레이트 리밋(분당 1회)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimited"}}}}}}},"/api/batch/{token}":{"get":{"operationId":"v1BatchStatus","summary":"배치의 SKU별 진행·컬렉션 ZIP 준비 상태","description":"배치 토큰의 묶음·SKU 목록·진행을 한 번에 돌려준다(그리드의 단일 근거).\n\n소유 규칙: 배치를 만든 세션(`lb_session`)과 다른 세션의 요청은 404다(존재 여부를\n흘리지 않는다). 쿠키 없이 만들어진 배치는 기존 v1과 같이 배치 토큰이 열쇠다.\n\n`collectionZipReady`는 접수된 SKU가 전부 종료(done|failed)되고 스틸 팩이 1개 이상\n있을 때만 true다. 진행 중인 SKU가 있으면 false이며, ZIP 경로는 409다.\n","parameters":[{"$ref":"#/components/parameters/BatchToken"}],"security":[{"sessionCookie":[]},{"apiKeyBearer":[]}],"responses":{"200":{"description":"배치 상태","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchStatus"}}}},"401":{"description":"API 키가 폐기·위조·만료됐다","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyInvalid"}}}},"403":{"description":"API 키 스코프가 부족하다","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyScopeForbidden"}}}},"404":{"description":"없는 배치이거나 다른 세션의 배치","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}}}}},"/api/batch/{token}/collection.zip":{"get":{"operationId":"v1BatchCollectionZip","summary":"완료된 배치의 SKU별 스틸 팩을 묶은 컬렉션 ZIP(재렌더 없음)","description":"SKU별 스틸 팩 ZIP(still_packs 객체)을 그대로 읽어 엔트리만 다시 묶는다 —\n이미지를 다시 만들지 않는다(공급자 호출 0, 재렌더 0). 엔트리는\n`<배치명>/<상품명>/<상품명>_버전<n>_<비율>.jpg`이고 루트에 `manifest.json`이 있다.\n\n응답은 스트리밍(ZIP)이다. 함수가 전부 버퍼링하지 않고 팩 1개씩 읽어 내보낸다 —\n10 SKU(약 3~6MB/팩)를 메모리에 동시에 올리지 않기 위한 선택이다.\n\n소유 판정은 `/api/batch/{token}`과 같다(다른 세션·무효 토큰은 404).\n접수된 SKU가 진행 중이거나 스틸 팩이 하나도 없으면 409다.\n","parameters":[{"$ref":"#/components/parameters/BatchToken"}],"security":[{"sessionCookie":[]},{"apiKeyBearer":[]}],"responses":{"200":{"description":"컬렉션 ZIP(application/zip)","headers":{"Cache-Control":{"schema":{"type":"string","const":"no-store"}}},"content":{"application/zip":{"schema":{"type":"string","format":"binary"}}}},"401":{"description":"API 키가 폐기·위조·만료됐다","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyInvalid"}}}},"403":{"description":"API 키 스코프가 부족하다","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyScopeForbidden"}}}},"404":{"description":"없는 배치이거나 다른 세션의 배치","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"아직 진행 중이거나 스틸 팩이 없다","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchCollectionConflict"}}}}}}},"/api/check/{token}/confirm":{"post":{"operationId":"v1Confirm","summary":"확인 게이트 승인(queued 전이·용량 예약·generate 잡 시드)","description":"지원 품목 수는 orch 하트비트의 confirm_garment_counts로 판정한다.\ncomfyq 착장 스틸은 N=1만 지원한다. N=2/3은 409 conflict/garment_unavailable로\n거절하며, 용량 예약·generate 잡 적재 전에 멈춘다. 능력이 없거나 하트비트가\n없거나 오래된 경우도 같은 사유로 거절한다. 입력·크롭·스타일 검사는 능력 검사보다 먼저다.\n","parameters":[{"$ref":"#/components/parameters/Token"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmRequest"}}}},"responses":{"200":{"description":"승인됨","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmAccepted"}}}},"400":{"description":"본문 형식·품질 강행 사유 위반","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmBadRequest"}}}},"404":{"description":"토큰 미발견","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"확인 대기 상태가 아니거나 자산·크롭 미준비·스냅숏 불일치·스타일 미선택·착장 형태 미확인·지원하지 않는 품목 수(garment_unavailable, comfyq는 N=1만 지원)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmConflict"}}}},"503":{"description":"용량 닫힘","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CapacityClosed"}}}}}}},"/api/check/{token}/crop":{"post":{"operationId":"v1Crop","summary":"원본 스냅숏 위 검토 크롭 요청(요청 1건 = 리비전 1개)","parameters":[{"$ref":"#/components/parameters/Token"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CropRequest"}}}},"responses":{"200":{"description":"크롭 요청 접수 또는 같은 요청의 readback(새 잡 없음)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CropAccepted"}}}},"400":{"description":"본문 형식·requestId·sourceSha256 형식 위반","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CropBadRequest"}}}},"404":{"description":"토큰 미발견","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFound"}}}},"409":{"description":"확인 대기 상태가 아니거나 요청 키 충돌·원본 불일치","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CropConflict"}}}},"422":{"description":"좌표 형식·정수·경계 위반(전 구간 단일 규칙)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CropInvalidCoordinates"}}}}}}},"/api/status/{token}/select":{"post":{"operationId":"v1Select","summary":"최신 세대 버전 1개 확정","parameters":[{"$ref":"#/components/parameters/Token"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SelectRequest"}}}},"responses":{"200":{"description":"확정됨","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SelectAccepted"}}}},"400":{"description":"본문 형식 위반","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SelectBadRequest"}}}},"404":{"description":"토큰 또는 버전 미발견","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SelectNotFound"}}}},"409":{"description":"완료 전이거나 이미 선택됨","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SelectConflict"}}}},"410":{"description":"보관 기간(7일) 만료","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Expired"}}}}}}},"/api/status/{token}/regen":{"post":{"operationId":"v1Regen","summary":"재생성(제출당 2회 상한) — 본문에 scene이 있으면 그 장면만 다시 만든다","description":"본문 `{reason}`은 세대 전체 재생성(새 버전 3개)이다. 본문에 `scene`이 있으면 현재 세대의 그 장면 1개만 다시 만든다(0081, 버전 반려) — 다른 장면의 버전 행·파일 키·sha256은 그대로 남고, 예산은 두 경로가 같은 regen_log 행 수 합계(제출당 REGEN_LIMIT)를 공유한다.\nscene 재생성은 `reasons`(색·패턴·소매/기장·얼굴·배경)를 1개 이상 요구한다. 없거나 빈 배열이면 400 `reasons_required`, 열거 밖·비문자열이면 400 `reasons_invalid`다.\n장면 재생성의 `status`는 `done` 그대로다(세대를 올리지 않는다). 같은 장면의 잡이 아직 살아 있으면 두 건을 적재하지 않고 409 `conflict/regen_in_flight`다.\n","parameters":[{"$ref":"#/components/parameters/Token"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegenRequest"}}}},"responses":{"200":{"description":"새 세대 큐 적재(장면 재생성은 그 장면 잡 1건)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegenAccepted"}}}},"400":{"description":"본문 형식 위반","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegenBadRequest"}}}},"404":{"description":"토큰 미발견(또는 그 세대에 그 장면 버전이 없음)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegenNotFound"}}}},"409":{"description":"완료 전이거나 재생성 상한 도달, 장면 재생성 진행 중, 또는 스냅숏 결속 없는 legacy 제출","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/RegenConflict"},{"$ref":"#/components/schemas/RegenLimit"},{"$ref":"#/components/schemas/RegenLegacyConflict"},{"$ref":"#/components/schemas/RegenSnapshotExpiredConflict"},{"$ref":"#/components/schemas/RegenInFlightConflict"}]}}}},"410":{"description":"보관 기간(7일) 만료","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Expired"}}}},"503":{"description":"용량 닫힘","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CapacityClosed"}}}}}}},"/api/health":{"get":{"operationId":"v1Health","summary":"표준 헬스체크 프로브(/api/healthz 별칭 + status:\"ok\", 조회 실패도 200 닫힘)","responses":{"200":{"description":"기동 정상. 용량 조회 실패는 open=false·reason=unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Health"}}}}}}},"/api/healthz":{"get":{"operationId":"v1Healthz","summary":"기동·접수 용량 프로브(조회 실패도 200 닫힘)","responses":{"200":{"description":"기동 정상. 용량 조회 실패는 open=false·reason=unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Healthz"}}}}}}},"/api/dashboard/looks":{"get":{"tags":["dashboard"],"operationId":"v1DashboardListLookSets","summary":"룩 세트 목록(DASHBOARD_TOKEN)","description":"최근 생성 순 최대 `limit`개. 룩 세트 토큰은 운영자 내비게이션 키다(화면 href와 동일).\n","security":[{"dashboardTokenHeader":[]},{"dashboardTokenCookie":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"룩 세트 목록","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardLookSetList"}}}},"401":{"description":"DASHBOARD_TOKEN 없음·불일치·env 미설정","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardUnauthorized"}}}},"500":{"description":"저장소 조회 실패(fail-loud — 빈 성공 금지)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardInternalError"}}}}}},"post":{"tags":["dashboard"],"operationId":"v1DashboardCreateLookSet","summary":"룩 세트 생성(DASHBOARD_TOKEN)","description":"룩 1개 = 제출 1건. 같은 요청을 재시도하면 제출·룩 세트가 중복 생성될 수 있다(비멱등).\n`Idempotency-Key`는 후속이다. 공개 제출과 같은 익명 IP 스로틀을 통과한다.\n룩마다 `productUrl` 또는 업로드한 `imageKeys` 중 정확히 하나를 받는다. URL 룩과 이미지 룩을 같은 세트에 섞을 수 있다. 이미지 키는 공개 업로드·접수와 같은 검증과 아이템 접수 경로를 쓴다. 모든 룩 접수 성공 후에만 세트를 결속한다. 부분 실패 시 이미 만든 제출은 남고 세트 생성 성공으로 보고하지 않는다.\n`bgmPreset`·`shutterSfx`는 룩북 릴 오디오 선택이다(JJO-2614). 생략하면 기존 동작 — 기본 프리셋(`am7-96`)·셔터 없음 — 이고, 모르는 프리셋은 400 `invalid_bgm_preset`이다. **형식이 틀린 값은 기본값으로 접지 않는다**: `bgmPreset`이 문자열이 아니면(숫자·배열·null) 400 `invalid_bgm_preset`, `shutterSfx`가 불리언이 아니면 400 `invalid_shutter_sfx`다.\n`locale`은 룩북 릴 고정 카피(POV 캡션·AI 고지 엔드카드·장면 라벨)의 언어다(JJO-2462). 생략·빈 문자열은 기본 `ko`이고, 지원하지 않는 값이나 문자열이 아닌 값은 400 `invalid_locale`이다 — 모르는 언어를 ko로 조용히 접지 않는다. 문구 정본은 orch 한 곳이다.\n","security":[{"dashboardTokenHeader":[]},{"dashboardTokenCookie":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardCreateLookSetRequest"}}}},"responses":{"200":{"description":"생성된 룩 세트(운영자 내비게이션 토큰 포함)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardLookSetCreated"}}}},"400":{"description":"본문·입력 출처·이미지 키·모델·동의·스타일 검증 실패","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardCreateLookSetBadRequest"}}}},"401":{"description":"DASHBOARD_TOKEN 없음·불일치·env 미설정","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardUnauthorized"}}}},"429":{"description":"익명 IP 스로틀 거부(공개 제출과 같은 버킷)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardRateLimited"}}}},"500":{"description":"저장 실패","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardInternalError"}}}},"503":{"description":"용량 닫힘(RPC 사유) — 이미 만든 룩 수를 함께 반환","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardCapacityClosed"}}}}}}},"/api/dashboard/looks/{token}":{"get":{"tags":["dashboard"],"operationId":"v1DashboardGetLookSet","summary":"룩 세트 단건(DASHBOARD_TOKEN)","description":"룩별 상태·장면 3버전과 룩북 릴 서명 URL. 서명 URL은 1시간 수명이며 모든 200은 no-store다.\n","security":[{"dashboardTokenHeader":[]},{"dashboardTokenCookie":[]}],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"룩 세트","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardLookSet"}}}},"401":{"description":"DASHBOARD_TOKEN 없음·불일치·env 미설정","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardUnauthorized"}}}},"404":{"description":"룩 세트 없음","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardNotFound"}}}},"500":{"description":"저장소 조회 실패(fail-loud)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardInternalError"}}}}}}},"/api/dashboard/submissions":{"get":{"tags":["dashboard"],"operationId":"v1DashboardListSubmissions","summary":"최근 제출 목록(DASHBOARD_TOKEN, 토큰 마스킹)","description":"최근 생성 순 최대 `limit`건. 토큰은 앞 8자 + `…`로만 반환하고 이메일은 읽지 않는다.\n","security":[{"dashboardTokenHeader":[]},{"dashboardTokenCookie":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":10}}],"responses":{"200":{"description":"최근 제출(마스킹)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardSubmissionList"}}}},"401":{"description":"DASHBOARD_TOKEN 없음·불일치·env 미설정","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardUnauthorized"}}}},"500":{"description":"PostgREST 조회 실패(fail-loud)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardInternalError"}}}}}}},"/api/dashboard/summary":{"get":{"tags":["dashboard"],"operationId":"v1DashboardSummary","summary":"운영 요약(DASHBOARD_TOKEN)","description":"용량(open·reason·heartbeatAt·provider) + 최근 100건 상태 집계 + 최근 10건 마스킹 + 지출 units 합계.\n`spend.units`는 numeric 원장이라 정수가 아니다.\n","security":[{"dashboardTokenHeader":[]},{"dashboardTokenCookie":[]}],"responses":{"200":{"description":"운영 요약","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardSummary"}}}},"401":{"description":"DASHBOARD_TOKEN 없음·불일치·env 미설정","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardUnauthorized"}}}},"500":{"description":"용량 RPC·PostgREST 조회 실패(fail-loud — 빈 성공 금지)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardInternalError"}}}}}}},"/api/dashboard/envelopes":{"get":{"tags":["dashboard"],"operationId":"v1DashboardEnvelopes","summary":"4봉투 수집 현황(DASHBOARD_TOKEN)","description":"status·ledger·workflow_runs·workflow_steps를 테이블당 최대 50행으로 반환한다.\nraw operator-only 데이터이며 봉투별 정렬은 서버 어댑터가 고정한다.\n","security":[{"dashboardTokenHeader":[]},{"dashboardTokenCookie":[]}],"responses":{"200":{"description":"4봉투","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardEnvelopes"}}}},"401":{"description":"DASHBOARD_TOKEN 없음·불일치·env 미설정","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardUnauthorized"}}}},"500":{"description":"봉투 조회 실패(fail-loud)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardInternalError"}}}}}}},"/api/dashboard/dance-reels":{"post":{"tags":["dashboard"],"operationId":"v1DashboardCreateDanceReel","summary":"댄스 릴 생성(DASHBOARD_TOKEN)","description":"완료된 룩 제출(`lookToken`)의 착장 스틸을 인물(person)로, `motionKey`의 모션 MP4를\n소스로 comfyq `wan22-animate-motion-transfer`에 제출해 3~5초 댄스 릴 1편을 만든다.\n얼굴·오디오는 전이하지 않는다(몸·손 동작만). 운영 대시보드 전용이며 공개 폼에는\n노출하지 않는다. 모션 업로드는 `POST /api/dashboard/dance-reels/motion`을 쓴다.\n","security":[{"dashboardTokenHeader":[]},{"dashboardTokenCookie":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardDanceReelRequest"}}}},"responses":{"201":{"description":"생성 접수","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardDanceReelCreated"}}}},"400":{"description":"요청 형식 오류(JSON·lookToken·motionKey·prompt)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardDanceReelBadRequest"}}}},"401":{"description":"DASHBOARD_TOKEN 없음·불일치·env 미설정","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardUnauthorized"}}}},"404":{"description":"룩 제출 없음","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardNotFound"}}}},"409":{"description":"룩 제출이 아직 완료(done)가 아님","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardDanceReelLookNotDone"}}}},"429":{"description":"같은 IP 버킷의 요청 상한 초과","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardRateLimited"}}}},"500":{"description":"저장소 조회·기록 실패(fail-loud)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardInternalError"}}}}}}},"/api/dashboard/dance-reels/motion":{"post":{"tags":["dashboard"],"operationId":"v1DashboardUploadDanceMotion","summary":"댄스 모션 MP4 스테이징 업로드(DASHBOARD_TOKEN)","description":"본문은 MP4 바이트(raw)이고 content-type은 `video/mp4`다. 성공하면\n`dance-staging/<uuid>.mp4` 키를 돌려주고, 그 키를 `POST /api/dashboard/dance-reels`의\n`motionKey`로 넘겨 접수한다. 이 경로는 영상을 해석하지 않는다 — 16fps·3~5초 정규화는\norch가 처리한다. 미제출 객체는 TTL 스윕 대상이다.\n","security":[{"dashboardTokenHeader":[]},{"dashboardTokenCookie":[]}],"requestBody":{"required":true,"content":{"video/mp4":{"schema":{"type":"string","format":"binary"}}}},"responses":{"200":{"description":"스테이징 키","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["key"],"properties":{"key":{"type":"string","maxLength":64,"pattern":"^dance-staging/[0-9a-f-]{36}\\.mp4$"}}}}}},"400":{"description":"빈 본문·MP4 시그니처 아님","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["error"],"properties":{"error":{"type":"string","const":"invalid_video"}}}}}},"401":{"description":"DASHBOARD_TOKEN 없음·불일치·env 미설정","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardUnauthorized"}}}},"413":{"description":"크기 상한 초과(32MiB)","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["error","maxBytes"],"properties":{"error":{"type":"string","const":"too_large"},"maxBytes":{"type":"integer","minimum":1}}}}}},"415":{"description":"허용하지 않는 MIME(video/mp4만)","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["error","supported"],"properties":{"error":{"type":"string","const":"unsupported_media_type"},"supported":{"type":"array","items":{"type":"string"}}}}}}},"429":{"description":"같은 IP 버킷의 요청 상한 초과","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardRateLimited"}}}},"500":{"description":"스테이징 저장 실패","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardInternalError"}}}}}}},"/api/dashboard/dance-reels/{token}":{"get":{"tags":["dashboard"],"operationId":"v1DashboardGetDanceReel","summary":"댄스 릴 상태·결과(DASHBOARD_TOKEN)","description":"status는 queued·generating·done·failed이고, done이면 reelUrl(1시간 서명 URL)이\n채워진다. 실패 사유는 failureCode다. 모든 200은 no-store다.\n","security":[{"dashboardTokenHeader":[]},{"dashboardTokenCookie":[]}],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"댄스 릴 상태","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardDanceReel"}}}},"401":{"description":"DASHBOARD_TOKEN 없음·불일치·env 미설정","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardUnauthorized"}}}},"404":{"description":"댄스 릴 없음","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardNotFound"}}}},"500":{"description":"저장소 조회 실패(fail-loud)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardInternalError"}}}}}}},"/api/sessions":{"post":{"tags":["session"],"operationId":"v2CreateSession","summary":"브라우저 범위 라이브러리 세션 발급","description":"서버가 고엔트로피 secret을 만들어 `Set-Cookie: lb_session=...; HttpOnly; Secure;\nSameSite=Lax`로만 내려준다. DB에는 해시만 저장하며 응답 본문에 secret을 넣지 않는다.\n이미 유효한 세션이 있으면 그 세션을 반환한다(중복 발급 0).\n","security":[],"responses":{"200":{"description":"기존 세션 재사용","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Session"}}}},"201":{"description":"새 세션","headers":{"Set-Cookie":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Session"}}}}}}},"/api/sessions/me":{"get":{"tags":["session"],"operationId":"v2GetSession","summary":"현재 세션·소유 라이브러리 요약","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Session"}}}},"401":{"$ref":"#/components/responses/Unauthorized"}},"security":[{"sessionCookie":[]}]}},"/api/sessions/refresh":{"post":{"tags":["session"],"operationId":"v2RefreshSession","summary":"secret 회전(owner 유지)","description":"회전 후 이전 secret은 즉시 무효다. owner는 바뀌지 않는다.","responses":{"200":{"headers":{"Set-Cookie":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Session"}}}},"401":{"$ref":"#/components/responses/Unauthorized"}},"security":[{"sessionCookie":[]}]}},"/api/consents":{"get":{"tags":["consent"],"operationId":"v2GetConsent","summary":"현재 유효한 개인 사진 처리 동의","description":"철회했거나 동의한 적이 없으면 404(`reason=consent_none`)다.","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Consent"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"sessionCookie":[]}]},"post":{"tags":["consent"],"operationId":"v2RecordConsent","summary":"개인 사진 처리 동의 기록","description":"`consentVersion`은 서버가 현재 보여 주는 동의문 버전과 같아야 한다(다르면 422\n`reason=consent_version_mismatch`). 서버는 그 버전 문구의 sha256을 함께 남긴다. 같은 버전을\n다시 보내면 기존 동의를 그대로 돌려주고, 새 버전은 이전 동의를 대체한다.\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["consentVersion"],"properties":{"consentVersion":{"type":"string","maxLength":64}}}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Consent"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"422":{"$ref":"#/components/responses/Unprocessable"}},"security":[{"sessionCookie":[]}]},"delete":{"tags":["consent"],"operationId":"v2WithdrawConsent","summary":"개인 사진 처리 동의 철회","description":"유효한 동의를 철회한다. 철회 후에는 개인 사진 처리를 받지 않는다. 동의가 없어도 204다(멱등).\n철회는 같은 트랜잭션에서 소유자의 개인 사진 행을 `deleted`로 바꾸므로 이후 미디어 열람·검증·\n서명 발급은 404이고, 저장 객체는 orch 스위퍼가 지운다.\n","responses":{"204":{"description":"철회됨(또는 철회할 동의 없음)"},"401":{"$ref":"#/components/responses/Unauthorized"}},"security":[{"sessionCookie":[]}]}},"/api/media/upload-url":{"post":{"tags":["media"],"operationId":"v2CreateUploadUrl","summary":"private quarantine 업로드 URL 발급","description":"유효한 개인 사진 처리 동의가 필요하다(없으면 403 `reason=consent_required`). 반환된 URL로\n`headers`를 붙여 PUT하면 비공개 격리 객체가 된다. URL과 업로드 창은 2시간(`expiresAt`)이고 검증 전\n객체는 공개 URL이 없다. `idempotencyKey`가 같으면 같은 mediaId에 새 URL을 주고 업로드 창을 다시 2시간으로\n늘린다. 그 사진이 이미 검증 단계로 넘어갔으면 409 `reason=already_submitted`, 업로드 창이 지났으면\n409 `reason=upload_expired`다. HEIC는 받지 않는다(415).\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["contentType","bytes"],"properties":{"contentType":{"type":"string","enum":["image/jpeg","image/png"]},"bytes":{"type":"integer","minimum":1,"maximum":20971520},"idempotencyKey":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,128}$"}}}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadTicket"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"415":{"$ref":"#/components/responses/UnsupportedMediaType"},"422":{"$ref":"#/components/responses/Unprocessable"}},"security":[{"sessionCookie":[]}]}},"/api/media/{mediaId}":{"get":{"tags":["media"],"operationId":"v2GetMedia","summary":"미디어 상태","description":"남의 사진·삭제된 사진은 존재를 드러내지 않도록 404다.","parameters":[{"$ref":"#/components/parameters/MediaId"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaObject"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"sessionCookie":[]}]},"delete":{"tags":["media"],"operationId":"v2DeleteMedia","summary":"미디어 삭제(객체 + 파생)","description":"저장(save)된 결과도 삭제한다. 진행 중 작업에는 tombstone을 남긴다.","parameters":[{"$ref":"#/components/parameters/MediaId"}],"responses":{"204":{"description":"삭제됨"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"sessionCookie":[]}]}},"/api/media/{mediaId}/validate":{"post":{"tags":["media"],"operationId":"v2ValidateMedia","summary":"격리 업로드 검증(1인 인물·형식·EXIF 제거)","description":"비동기다. 요청을 받으면 `validating`으로 바꾸고 202를 돌려주며, 결과는 `GET /api/media/{mediaId}`로\n확인한다. 통과하면 `validated`(EXIF/GPS를 제거한 정제본·썸네일 생성)이고, 거절되면 격리 원본을\n즉시 지우고 `rejected` + `rejectionReason`을 남긴다. 이미 `validating`이면 같은 202(멱등), 그 밖의\n확정 상태면 409 `reason=invalid_state`, 업로드 창이 지났으면 409 `reason=upload_expired`, 동의가\n없으면 403 `reason=consent_required`다.\n","parameters":[{"$ref":"#/components/parameters/MediaId"}],"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaObject"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"}},"security":[{"sessionCookie":[]}]}},"/api/media/{mediaId}/save":{"post":{"tags":["media"],"operationId":"v2SaveMedia","summary":"결과를 저장 상태로 전이(TTL 스위퍼 제외)","description":"저장 전이는 원자적이며, 미저장 결과는 기존 결과 TTL 정책(7일)을 따른다.\n\n`validated` 사진을 `saved`로 바꾼다. 저장된 사진은 만료 시각이 없고 TTL 스위퍼 대상이 아니며\n명시 삭제나 동의 철회로만 사라진다. 이미 `saved`면 같은 200(멱등). 보관 기한이 지나 `expired`이거나\n기한이 지났지만 아직 스위프되지 않은 `validated`면 410 `expired`(재업로드 필요)다. 검증 전\n(`quarantined`·`validating`)·거절(`rejected`)은 저장할 수 없어 409 `reason=invalid_state`, 동의가\n없으면 403 `reason=consent_required`, 남의 사진·삭제된 사진·없는 id는 404다. 저장과 스위퍼가\n동시에 실행되면 먼저 확정된 쪽이 이긴다 — 저장이 먼저면 스위퍼는 건너뛰고, 스위퍼가 먼저면 저장은 410이다.\n","parameters":[{"$ref":"#/components/parameters/MediaId"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaObject"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"410":{"$ref":"#/components/responses/Gone"}},"security":[{"sessionCookie":[]}]}},"/api/media/{mediaId}/signed":{"get":{"tags":["media"],"operationId":"v2GetMediaSignedUrl","summary":"단기 서명 읽기 URL(소유자 전용)","description":"소유자 본인 열람용이다. 공유는 이 URL이 아니라 share 프록시를 쓴다.\n수명은 10분 이하이며 `Cache-Control: no-store`다.\n\n`variant=source`(기본)는 EXIF/GPS를 제거한 정제본, `variant=thumb`은 목록용 썸네일이다.\n검증 전(`quarantined`·`validating`)·거절(`rejected`)은 파생물이 없어 404이고, 보관 TTL이\n지난 사진은 410 `expired`다. 동의를 철회하면 소유자의 사진 행이 `deleted`가 되어 재열람은\n404다. 사진 행이 남아 있는데 유효한 동의가 없으면 403 `consent_required`이고, 남의 사진·\n삭제된 사진·없는 id는 v2GetMedia처럼 404로 존재를 숨긴다.\n","parameters":[{"$ref":"#/components/parameters/MediaId"},{"name":"variant","in":"query","required":false,"description":"source(기본)는 정제본, thumb은 썸네일이다.","schema":{"type":"string","enum":["source","thumb"],"default":"source"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignedUrl"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"410":{"$ref":"#/components/responses/Gone"},"422":{"$ref":"#/components/responses/Unprocessable"}},"security":[{"sessionCookie":[]}]}},"/api/garments/extract":{"post":{"tags":["garment"],"operationId":"v2ExtractGarment","summary":"상품 링크에서 의류 이미지·정보 추출 접수","description":"**비동기다.** 요청을 받으면 `v2_garments` 1행을 `extracting`으로 만들고 `garment_extract`\n잡을 적재한 뒤 202를 돌려준다. 결과는 `GET /api/garments/{garmentId}`로 확인한다\n(`extracted`면 후보·해시가 있고 확인 게이트를 열 수 있고, `failed`면 `rejectionReason` 코드).\n같은 세션·같은 `productUrl`의 재요청은 새 행·새 잡을 만들지 않고 그 행을 그대로 돌려준다\n(202 멱등 — 이미 `extracted`·`confirmed`여도 202다).\n지원 목록에 있는 host만 접수한다. 준비 중·미지원·미등록 host는 `unsupported_shop`으로\n거절하며 행·잡을 만들지 않는다. web은 상품 페이지를 읽지 않는다(외부 전송 0) — 추출 실행은\norch `garment_extract` 소비자가 SSRF 가드와 상점 파서로 수행하고 바이트를 고정한다.\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["productUrl"],"properties":{"productUrl":{"type":"string","format":"uri","maxLength":2048}}}}}},"responses":{"202":{"description":"접수(또는 같은 링크의 기존 행) — `state`는 `extracting`·`extracted`·`confirmed` 중 하나다.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Garment"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"422":{"$ref":"#/components/responses/Unprocessable"}},"security":[{"sessionCookie":[]}]}},"/api/garments/{garmentId}":{"get":{"tags":["garment"],"operationId":"v2GetGarment","summary":"의류 추출 상태·후보 열람","description":"소유자(세션) 범위다. `extracting`은 아직 후보·해시가 없고(빈 `imageCandidates`),\n`extracted`·`confirmed`는 후보·스냅숏 해시를, `failed`는 `rejectionReason` 코드를 싣는다.\n남의 의류·없는 의류는 같은 404다(존재를 흘리지 않는다).\n","parameters":[{"$ref":"#/components/parameters/GarmentId"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Garment"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"sessionCookie":[]}]}},"/api/garments/{garmentId}/confirm":{"post":{"tags":["garment"],"operationId":"v2ConfirmGarment","summary":"추출 자산 확인 게이트 통과","description":"확인 전에는 생성 제출이 불가하다. 자산이 사라졌으면 409다.","parameters":[{"$ref":"#/components/parameters/GarmentId"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"garmentImageUrl":{"type":"string","format":"uri"},"coreInfoPatch":{"type":"object","additionalProperties":true}}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Garment"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"}},"security":[{"sessionCookie":[]}]}},"/api/profile/persona":{"get":{"tags":["preference"],"operationId":"v2GetPersonaPin","summary":"고정 페르소나 조회(없으면 persona null)","description":"무계정 세션(v2_sessions)에 고정된 합성 페르소나 1개. 고정값은 세션 id에 묶여\n복구 코드 교환(secret 회전) 뒤에도 유지된다. 세션 무효는 401이고 \"고정 없음\"과 구분한다.\n","responses":{"200":{"description":"현재 고정 상태","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonaPinState"}}}},"401":{"$ref":"#/components/responses/Unauthorized"}},"security":[{"sessionCookie":[]}]},"put":{"tags":["preference"],"operationId":"v2PutPersonaPin","summary":"내 브랜드 모델(페르소나) 고정 — 세션당 1개","description":"카탈로그(`MODEL_IDS`) 안의 모델만 고정할 수 있다. 고정이 있으면 제출\n(`/api/submit`·`/api/batch`·운영 룩 세트)은 `model`을 생략해도 이 값이 기본 적용되고,\n접수 행의 `model`에도 같은 id가 남는다. 이미 고정이 있으면 교체한다(append 아님).\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["model"],"properties":{"model":{"$ref":"#/components/schemas/Model"}}}}}},"responses":{"200":{"description":"고정됨","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonaPinState"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"422":{"$ref":"#/components/responses/Unprocessable"}},"security":[{"sessionCookie":[]}]},"delete":{"tags":["preference"],"operationId":"v2ClearPersonaPin","summary":"고정 해제(멱등)","responses":{"200":{"description":"고정 없음","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonaPinState"}}}},"401":{"$ref":"#/components/responses/Unauthorized"}},"security":[{"sessionCookie":[]}]}},"/api/profile/style":{"put":{"tags":["preference"],"operationId":"v2PutStylePreference","summary":"스타일·상황 태그 저장(치수 미저장)","description":"열거형 태그만 받는다. 키·몸무게·사이즈 같은 신체 치수 필드는 계약에 없다\n(사이즈 정확도를 주장하지 않는다). 빈 배열(미선택)은 서버 기본값 `daily` 1개로\n저장되며, 저장 전·미선택 상태의 생성 파라미터도 같은 기본값을 쓴다.\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["tags"],"properties":{"tags":{"type":"array","maxItems":8,"uniqueItems":true,"description":"미선택(빈 배열)이면 서버 기본값 [\"daily\"]가 저장된다.","items":{"$ref":"#/components/schemas/StyleTag"}}}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StylePreference"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"422":{"$ref":"#/components/responses/Unprocessable"}},"security":[{"sessionCookie":[]}]}},"/api/drafts":{"post":{"tags":["draft"],"operationId":"v2CreateDraft","summary":"제출 draft 생성","responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Draft"}}}},"401":{"$ref":"#/components/responses/Unauthorized"}},"security":[{"sessionCookie":[]}]}},"/api/drafts/{draftId}":{"get":{"tags":["draft"],"operationId":"v2GetDraft","summary":"draft 복구(새로고침 대응)","parameters":[{"$ref":"#/components/parameters/DraftId"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Draft"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"410":{"$ref":"#/components/responses/Gone"}},"security":[{"sessionCookie":[]}]},"patch":{"tags":["draft"],"operationId":"v2UpdateDraft","summary":"draft 갱신(입력 연결·확인 상태)","parameters":[{"$ref":"#/components/parameters/DraftId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"garmentId":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$"},"sourceMediaId":{"type":"string"},"styleTags":{"type":"array","maxItems":8,"items":{"$ref":"#/components/schemas/StyleTag"}}}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Draft"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"410":{"$ref":"#/components/responses/Gone"}},"security":[{"sessionCookie":[]}]}},"/api/drafts/{draftId}/submit":{"post":{"tags":["draft"],"operationId":"v2SubmitDraft","summary":"피팅 생성 제출(멱등)","description":"동의·소스 검증·의류 확인이 모두 끝난 draft만 제출된다. 같은 `idempotencyKey`의\n재전송은 새 잡을 만들지 않고 같은 fit을 돌려준다. 예산·용량이 닫혔으면 503이다.\n생성 잡 소비자가 배포되기 전에는 503 `generation_unavailable`이고 fit·잡·예약 행을\n만들지 않는다(멱등 재전송도 같은 503이다 — 만들 수 있는 작업이 없다).\n소유자 스코프 레이트 리밋(분당 5회, 0030 `lookbook_rate_take_owner`)을 넘으면 429다.\n","parameters":[{"$ref":"#/components/parameters/DraftId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["idempotencyKey"],"properties":{"idempotencyKey":{"type":"string","maxLength":128}}}}}},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Fit"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Unauthorized","description":"동의 누락 또는 소유 아님"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"410":{"$ref":"#/components/responses/Gone"},"429":{"$ref":"#/components/responses/TooManyRequests"},"503":{"$ref":"#/components/responses/CapacityClosed"}},"security":[{"sessionCookie":[]}]}},"/api/fits/{fitId}":{"get":{"tags":["fit"],"operationId":"v2GetFit","summary":"피팅 상태·버전","parameters":[{"$ref":"#/components/parameters/FitId"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Fit"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"sessionCookie":[]}]}},"/api/fits/{fitId}/select":{"post":{"tags":["fit"],"operationId":"v2SelectFitVersion","summary":"최신 세대 버전 1개 확정(원자)","parameters":[{"$ref":"#/components/parameters/FitId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["versionId"],"properties":{"versionId":{"type":"string","maxLength":64}}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Fit"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"410":{"$ref":"#/components/responses/Gone"}},"security":[{"sessionCookie":[]}]}},"/api/fits/{fitId}/regenerate":{"post":{"tags":["fit"],"operationId":"v2RegenerateFit","summary":"재생성(상한 집행)","description":"상한에 도달했으면 409 `regen_limit` + `used`다. 진행 중 재전송은 409다.\n생성 잡 소비자가 배포되기 전에는 503 `generation_unavailable`이고 잡·세대를 만들지 않는다.\n","parameters":[{"$ref":"#/components/parameters/FitId"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"reason":{"type":"string","maxLength":200}}}}}},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Fit"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"503":{"$ref":"#/components/responses/CapacityClosed"}},"security":[{"sessionCookie":[]}]}},"/api/compositions":{"post":{"tags":["composition"],"operationId":"v2CreateComposition","summary":"선택 결과를 릴로 합성하는 렌더 잡 제출","description":"기존 jobs 큐에 render kind로 적재한다(web은 orch를 직접 호출하지 않는다).\nrecipe digest가 고정값과 다르거나 입력이 사라졌으면 409/410이고 잡을 만들지 않는다.\n같은 `idempotencyKey`는 같은 composition을 돌려준다.\n입력 `mediaIds`는 **선택 결과의 `v2_media` mediaId**다(`v2_fits.id`가 아니다 —\n`GET /api/fits/{fitId}`의 `fitId`를 그대로 넣으면 410 `input_gone`이다).\n렌더 잡 소비자가 배포되기 전에는 503 `render_unavailable`이고 합성·잡 행을 만들지 않는다.\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["mediaIds","recipeId","recipeSha256","idempotencyKey"],"properties":{"mediaIds":{"type":"array","minItems":1,"maxItems":3,"items":{"type":"string"}},"recipeId":{"type":"string","maxLength":64},"recipeSha256":{"$ref":"#/components/schemas/Sha256"},"idempotencyKey":{"type":"string","maxLength":128}}}}}},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Composition"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"410":{"$ref":"#/components/responses/Gone"},"503":{"$ref":"#/components/responses/CapacityClosed"}},"security":[{"sessionCookie":[]}]}},"/api/compositions/{compositionId}":{"get":{"tags":["composition"],"operationId":"v2GetComposition","summary":"합성 상태·산출물","parameters":[{"$ref":"#/components/parameters/CompositionId"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Composition"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"sessionCookie":[]}]}},"/api/collections":{"post":{"tags":["collection"],"operationId":"v2CreateCollection","summary":"컬렉션 생성","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["title"],"properties":{"title":{"type":"string","minLength":1,"maxLength":80}}}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Collection"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"422":{"$ref":"#/components/responses/Unprocessable"}},"security":[{"sessionCookie":[]}]},"get":{"tags":["collection"],"operationId":"v2ListCollections","summary":"내 컬렉션 목록","responses":{"200":{"content":{"application/json":{"schema":{"type":"object","required":["collections"],"properties":{"collections":{"type":"array","items":{"$ref":"#/components/schemas/Collection"}}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"}},"security":[{"sessionCookie":[]}]}},"/api/collections/{collectionId}/items":{"post":{"tags":["collection"],"operationId":"v2AddCollectionItem","summary":"컬렉션 항목 추가(순서 유지)","parameters":[{"$ref":"#/components/parameters/CollectionId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["kind","refId"],"properties":{"kind":{"type":"string","enum":["fit","composition","product"]},"refId":{"type":"string","maxLength":64}}}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Collection"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"}},"security":[{"sessionCookie":[]}]}},"/api/collections/{collectionId}/items/{itemId}":{"delete":{"tags":["collection"],"operationId":"v2RemoveCollectionItem","summary":"컬렉션 항목 제거","parameters":[{"$ref":"#/components/parameters/CollectionId"},{"$ref":"#/components/parameters/ItemId"}],"responses":{"204":{"description":"제거됨"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"sessionCookie":[]}]}},"/api/shares":{"post":{"tags":["share"],"operationId":"v2CreateShare","summary":"선택 결과 공유 bearer 생성(철회 가능)","description":"공유 대상은 선택된 결과의 파생물만이다(원본 사진 제외). 반환된 token은 이후\n모든 읽기에서 매번 서버가 권한·철회 상태를 검사한다.\n\n같은 대상의 활성 공유는 1개다 — 이미 있으면 409 `share_exists`이고 token은\n다시 반환하지 않는다(철회 후 새로 만든다). token 원문은 이 응답에서 한 번만\n나가며 서버는 해시만 보관한다. `notice`는 다운로드 사본 회수 불가 고지다.\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["kind","refId"],"properties":{"kind":{"type":"string","enum":["fit","composition"]},"refId":{"type":"string","maxLength":64}}}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Share"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/Unprocessable"}},"security":[{"sessionCookie":[]}]}},"/api/shares/{shareRef}":{"delete":{"tags":["share"],"operationId":"v2RevokeShare","summary":"공유 철회(이후 모든 읽기 거절)","parameters":[{"$ref":"#/components/parameters/ShareRef"}],"responses":{"204":{"description":"철회됨"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"sessionCookie":[]}]}},"/api/shares/{shareRef}/media/{assetId}":{"get":{"tags":["share"],"operationId":"v2ReadSharedMedia","summary":"공유 미디어 프록시(매 읽기 검사)","description":"철회·삭제 시 즉시 거절한다. 장기 직접 저장소 URL을 노출하지 않으며\n`Cache-Control: no-store`다. 이미 내려받은 사본은 회수할 수 없다.\n\n무효·철회 토큰과 이 공유에 없는 assetId는 같은 404다(존재 여부를 흘리지 않는다).\n소유 세션이 만료된 공유(180일)도 같은 404다 — 공유 링크의 수명은 세션 수명이다.\n유효한 공유인데 대상이 삭제·만료되어 자산이 없으면 410이다.\n","security":[],"parameters":[{"$ref":"#/components/parameters/ShareRef"},{"$ref":"#/components/parameters/AssetId"}],"responses":{"200":{"description":"이미지·영상 바이트","headers":{"Cache-Control":{"schema":{"type":"string","const":"no-store"}}},"content":{"image/jpeg":{"schema":{"type":"string","format":"binary"}},"video/mp4":{"schema":{"type":"string","format":"binary"}}}},"404":{"$ref":"#/components/responses/NotFound"},"410":{"$ref":"#/components/responses/Gone"}}}},"/api/shares/{shareRef}/og":{"get":{"tags":["share"],"operationId":"v2ReadShareOg","summary":"공유 OG 이미지(파생물만)","description":"공유 대상의 파생 썸네일(v/<id>/thumb.jpg) 바이트를 그대로 중계한다. 원본\n격리 객체(q/<id>)는 참조하지 않으며, 무효·철회 토큰은 404다.\n","security":[],"parameters":[{"$ref":"#/components/parameters/ShareRef"}],"responses":{"200":{"description":"OG 이미지","headers":{"Cache-Control":{"schema":{"type":"string","const":"no-store"}}},"content":{"image/jpeg":{"schema":{"type":"string","format":"binary"}}}},"404":{"$ref":"#/components/responses/NotFound"},"410":{"$ref":"#/components/responses/Gone"}}}},"/api/products/{productId}":{"get":{"tags":["product"],"operationId":"v2GetProductCard","summary":"상품 카드·쿠폰·링크 고지(결제·제휴 없음)","parameters":[{"$ref":"#/components/parameters/ProductId"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductCard"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"sessionCookie":[]}]}},"/api/account":{"get":{"tags":["account"],"operationId":"v2GetAccount","summary":"현재 세션의 계정 상태(승격 여부·복구 코드 발급 시각)","description":"익명 세션이 복구 코드 계정으로 승격됐는지와 복구 코드 발급·회전 시각만 돌려준다.\n복구 코드 원문·해시는 어떤 응답에도 나오지 않는다(발급 시 1회만).\n","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Account"}}}},"401":{"$ref":"#/components/responses/Unauthorized"}},"security":[{"sessionCookie":[]}]},"post":{"tags":["account"],"operationId":"v2PromoteAccount","summary":"익명 세션을 복구 코드 계정으로 승격(코드 1회 발급)","description":"본문이 없다. 서버가 복구 코드(32바이트 난수 base64url)를 만들어 이 응답에서 한 번만\n돌려주고 DB에는 sha256만 남긴다. 이메일·비밀번호·전화번호를 받지 않는다.\n이미 승격된 세션은 409 `reason=already_promoted`이며 코드를 다시 주지 않는다 — 재발급은\n`POST /api/account/recovery/rotate`다. 코드를 잃으면 라이브러리를 복구할 수 없다(고지 문구 포함).\n","responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecoveryCodeIssue"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"409":{"$ref":"#/components/responses/Conflict"}},"security":[{"sessionCookie":[]}]}},"/api/account/recovery":{"post":{"tags":["account"],"operationId":"v2RedeemRecoveryCode","summary":"복구 코드로 세션 재발급(코드 1회용·회전)","description":"세션 쿠키를 잃었을 때 복구 코드만으로 같은 소유자의 세션을 되찾는다. 성공하면 같은\n세션 id에 새 secret을 결합하고(이전 쿠키는 즉시 무효) 만료를 180일로 늘린 뒤, 새 복구\n코드를 응답에 1회 발급한다(제시한 코드는 소비된다).\n\n오입력은 시도 제한에 포함된다 — 창(10분) 안 오입력 10회를 넘으면 429다. 코드가 틀렸다는\n사실 외에는 아무것도 흘리지 않는다(404). 이 경로는 이메일·비밀번호·PII를 받지 않는다.\n","security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["recoveryCode"],"properties":{"recoveryCode":{"type":"string","minLength":43,"maxLength":64}}}}}},"responses":{"201":{"description":"세션 재발급(Set-Cookie로 새 secret, 본문에 새 복구 코드)","headers":{"Set-Cookie":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecoveryRedemption"}}}},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/api/account/recovery/rotate":{"post":{"tags":["account"],"operationId":"v2RotateRecoveryCode","summary":"복구 코드 재발급(이전 코드 즉시 무효)","description":"유효한 세션 쿠키가 필요하다. 새 코드를 발급하고 이전 코드는 즉시 무효가 된다. 승격 전\n세션이면 409 `reason=not_promoted`다.\n","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecoveryCodeIssue"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"409":{"$ref":"#/components/responses/Conflict"}},"security":[{"sessionCookie":[]}]}},"/api/billing/status":{"get":{"tags":["billing"],"operationId":"v2BillingStatus","summary":"현재 플랜·구독 상태·잔여 크레딧(Paddle MoR)","description":"구독이 없는 세션은 `plan: null`·`status: none`·`credits`는 원장 합이다(무료 데모 경로는\n그대로다). 값은 표시이고, 결제 집행·크레딧 지급·차감 판정은 0103 SQL이 소유한다.\n","responses":{"200":{"description":"Billing status of the caller session","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingStatus"}}}},"401":{"$ref":"#/components/responses/Unauthorized"}},"security":[{"sessionCookie":[]}]}},"/api/billing/checkout":{"post":{"tags":["billing"],"operationId":"v2BillingCheckout","summary":"Paddle.js v2 체크아웃 세션(가격 id·환경·클라이언트 토큰)","description":"`PADDLE_DRY_RUN`이 켜져 있으면(기본) 실결제 흐름을 열지 않고 `test_preview`를 돌려준다.\n가격 env가 없으면 `503 unavailable`(`price_unset`)이다. 카드·결제 정보는 서버로 오지 않는다.\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingCheckoutRequest"}}}},"responses":{"200":{"description":"Checkout session (live or test preview)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingCheckoutSession"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"422":{"$ref":"#/components/responses/Unprocessable"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}},"security":[{"sessionCookie":[]}]}},"/api/entitlements":{"get":{"tags":["entitlement"],"operationId":"v2GetEntitlement","summary":"소유자 엔타이틀먼트(월 grant 잔여·사용·정정 원장)","description":"월 grant 기준은 `quota_config`(0024)의 KST 달력 월이며, 사용량에는 v2 피팅 제출 예약이\n포함된다. 소유자 정정은 추가 전용 원장 행이다(수정·삭제 없음). 값은 판정이 아니라 표시다 —\n입장 판정 정본은 `lookbook_v2_capacity_state()`다. 결제·가격은 이 표면에 없다.\n","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Entitlement"}}}},"401":{"$ref":"#/components/responses/Unauthorized"}},"security":[{"sessionCookie":[]}]}},"/api/keys":{"get":{"tags":["developer"],"operationId":"v2ListApiKeys","summary":"내 API 키 목록(원문 없음)","responses":{"200":{"description":"API keys without secrets","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["keys"],"properties":{"keys":{"type":"array","items":{"$ref":"#/components/schemas/ApiKey"}}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"}},"security":[{"sessionCookie":[]}]},"post":{"tags":["developer"],"operationId":"v2CreateApiKey","summary":"API 키 발급(원문은 응답 1회)","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyCreateRequest"}}}},"responses":{"201":{"description":"Issued key; the secret is shown once and never stored in plaintext","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyCreateResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"422":{"$ref":"#/components/responses/Unprocessable"}},"security":[{"sessionCookie":[]}]}},"/api/keys/{keyId}":{"delete":{"tags":["developer"],"operationId":"v2RevokeApiKey","summary":"API 키 폐기","parameters":[{"name":"keyId","in":"path","required":true,"schema":{"type":"string","maxLength":64}}],"responses":{"204":{"description":"Revoked"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"sessionCookie":[]}]}},"/api/webhooks":{"get":{"tags":["developer"],"operationId":"v2ListWebhooks","summary":"내 웹훅 엔드포인트 목록(최근 전달 5건)","responses":{"200":{"description":"Webhook endpoints with recent deliveries","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["endpoints"],"properties":{"endpoints":{"type":"array","items":{"$ref":"#/components/schemas/WebhookEndpoint"}}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"}},"security":[{"sessionCookie":[]}]},"post":{"tags":["developer"],"operationId":"v2CreateWebhook","summary":"웹훅 엔드포인트 등록(서명 시크릿은 응답 1회)","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookCreateRequest"}}}},"responses":{"201":{"description":"Registered endpoint; signing secret is shown once","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookCreateResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"422":{"$ref":"#/components/responses/Unprocessable"}},"security":[{"sessionCookie":[]}]}},"/api/webhooks/paddle":{"post":{"tags":["billing"],"operationId":"v2PaddleWebhook","summary":"Paddle 웹훅(HMAC-SHA256 서명·타임스탬프 리플레이 가드·event_id 멱등)","description":"인증은 세션 쿠키가 아니라 `Paddle-Signature`(ts·h1)다. 서명 검증에 실패한 요청은 아무것도 저장하지\n않는다. 같은 `event_id` 재전송은 `applied:false`로 수렴한다. `PADDLE_DRY_RUN`이 켜진 배포는 적용하지 않는다.\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"responses":{"200":{"description":"Event handled (applied true/false)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingWebhookResult"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"422":{"$ref":"#/components/responses/Unprocessable"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}},"security":[]}},"/api/webhooks/{webhookId}":{"delete":{"tags":["developer"],"operationId":"v2DeleteWebhook","summary":"웹훅 엔드포인트 삭제(전달 원장 포함)","parameters":[{"name":"webhookId","in":"path","required":true,"schema":{"type":"string","maxLength":64}}],"responses":{"204":{"description":"Deleted"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"sessionCookie":[]}]}},"/api/webhooks/{webhookId}/test":{"post":{"tags":["developer"],"operationId":"v2TestWebhook","summary":"테스트 전달 1건 적재(실제 POST는 orch 워커)","parameters":[{"name":"webhookId","in":"path","required":true,"schema":{"type":"string","maxLength":64}}],"responses":{"202":{"description":"Delivery queued","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["queued"],"properties":{"queued":{"type":"boolean","const":true}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"sessionCookie":[]}]}}},"components":{"pathItems":{"OrchHealthz":{"description":"Private orch port-forward endpoint /healthz; not a web /api route.","get":{"operationId":"orchHealthz","summary":"Private worker health and v2 admission snapshot","responses":{"200":{"description":"Process health; degraded is reported in the body.","content":{"application/json":{"schema":{"type":"object","required":["status","v2"],"properties":{"status":{"type":"string","enum":["ok","degraded"]},"v2":{"$ref":"#/components/schemas/V2WorkerHealth"}}}}}}}}}},"securitySchemes":{"sessionCookie":{"type":"apiKey","in":"cookie","name":"lb_session"},"apiKeyBearer":{"type":"http","scheme":"bearer","bearerFormat":"lbk_<secret>","description":"공개 API 키. 발급 원문은 1회만 노출되고 서버에는 sha256 해시만 남는다.\n`/api/submit`·`/api/looks`에서 제출 주체를 키 소유 세션으로 귀속한다.\n"},"dashboardTokenHeader":{"type":"apiKey","in":"header","name":"x-dashboard-token"},"dashboardTokenCookie":{"type":"apiKey","in":"cookie","name":"dashboard_token"}},"parameters":{"MediaId":{"name":"mediaId","in":"path","required":true,"schema":{"type":"string","maxLength":64}},"GarmentId":{"name":"garmentId","in":"path","required":true,"schema":{"type":"string","maxLength":64}},"DraftId":{"name":"draftId","in":"path","required":true,"schema":{"type":"string","maxLength":64}},"FitId":{"name":"fitId","in":"path","required":true,"schema":{"type":"string","maxLength":64}},"CompositionId":{"name":"compositionId","in":"path","required":true,"schema":{"type":"string","maxLength":64}},"CollectionId":{"name":"collectionId","in":"path","required":true,"schema":{"type":"string","maxLength":64}},"ItemId":{"name":"itemId","in":"path","required":true,"schema":{"type":"string","maxLength":64}},"ShareRef":{"name":"shareRef","in":"path","required":true,"description":"철회(DELETE)는 shareId, 공유 열람(GET media·og)은 공유 bearer token이다. 같은 세그먼트\n레벨을 공유하므로 파라미터 이름을 하나로 둔다(경로 형태·전송 값은 그대로).\n","schema":{"type":"string","maxLength":128}},"AssetId":{"name":"assetId","in":"path","required":true,"description":"fit 공유의 파생 자산 id — `source`(정제본 v/<id>/source.jpg) 또는\n`thumb`(썸네일 v/<id>/thumb.jpg). 그 밖의 값은 404다.\n","schema":{"type":"string","maxLength":64}},"ProductId":{"name":"productId","in":"path","required":true,"schema":{"type":"string","maxLength":64}},"Token":{"name":"token","in":"path","required":true,"description":"제출 capability token(무계정 링크의 유일 열쇠)","schema":{"type":"string"}},"BatchToken":{"name":"token","in":"path","required":true,"description":"배치 capability token(uuid — 묶음의 열쇠, 소유 세션이 있으면 일치 필요)","schema":{"type":"string","format":"uuid"}}},"responses":{"ServiceUnavailable":{"description":"Service unavailable (required configuration is missing)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unauthorized":{"description":"세션 없음·만료·위조","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Forbidden":{"description":"소유자가 아님","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"대상 없음(또는 소유자가 아니어서 숨김)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Gone":{"description":"만료·철회","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Conflict":{"description":"상태 충돌(중복·확인 누락·상한)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unprocessable":{"description":"입력 거절(사유 코드 포함)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"PayloadTooLarge":{"description":"업로드 크기 초과","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"UnsupportedMediaType":{"description":"지원하지 않는 형식","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"CapacityClosed":{"description":"예산·용량이 닫혔거나 새 작업을 수행할 소비자가 없어 받지 않음(503).\n`error`는 `capacity_closed`(월 grant·GPU 슬롯), `generation_unavailable`(생성 잡 소비자\n부재), `render_unavailable`(렌더 잡 소비자 부재) 중 하나다. 소비자 부재는 재시도로 풀리지\n않으며 세 경우 모두 **작업 행·슬롯을 만들지 않는다**(부분 저장 없음).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"TooManyRequests":{"description":"레이트 리밋 또는 복구 코드 시도 제한","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"UpstreamTimeout":{"description":"상품 페이지 응답 지연","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Internal":{"description":"내부 오류","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"schemas":{"BillingPlan":{"type":"string","enum":["starter","pro","studio"]},"BillingStatus":{"type":"object","additionalProperties":false,"required":["plan","status","credits","currentPeriodStart","currentPeriodEnd","cancelAtPeriodEnd","updatedAt"],"properties":{"plan":{"oneOf":[{"$ref":"#/components/schemas/BillingPlan"},{"type":"null"}]},"status":{"type":"string","enum":["none","active","trialing","past_due","paused","canceled"]},"credits":{"type":"integer","minimum":0},"currentPeriodStart":{"type":["string","null"]},"currentPeriodEnd":{"type":["string","null"]},"cancelAtPeriodEnd":{"type":"boolean"},"updatedAt":{"type":["string","null"]}}},"BillingCheckoutRequest":{"type":"object","additionalProperties":false,"required":["plan"],"properties":{"plan":{"$ref":"#/components/schemas/BillingPlan"}}},"BillingCheckoutSession":{"type":"object","additionalProperties":false,"required":["plan","mode","environment"],"properties":{"plan":{"$ref":"#/components/schemas/BillingPlan"},"mode":{"type":"string","enum":["live","test_preview","unavailable"]},"environment":{"type":"string","enum":["sandbox","production"]},"priceId":{"type":"string"},"clientToken":{"type":"string","description":"Paddle.js v2 initialize client token — public value."},"sessionHash":{"type":"string","pattern":"^[0-9a-f]{64}$"},"reason":{"type":"string"}}},"BillingWebhookResult":{"type":"object","additionalProperties":false,"required":["applied"],"properties":{"applied":{"type":"boolean"},"reason":{"type":["string","null"]}}},"ApiKeyScope":{"type":"string","enum":["read","write","webhooks"]},"ApiKey":{"type":"object","additionalProperties":false,"required":["id","name","prefix","scopes","createdAt","lastUsedAt","revokedAt"],"properties":{"id":{"type":"string"},"name":{"type":"string","minLength":1,"maxLength":60},"prefix":{"type":"string","pattern":"^lbk_[0-9a-f]{8}$"},"scopes":{"type":"array","minItems":1,"maxItems":3,"items":{"$ref":"#/components/schemas/ApiKeyScope"}},"createdAt":{"type":"string"},"lastUsedAt":{"type":["string","null"]},"revokedAt":{"type":["string","null"]}}},"ApiKeyCreateRequest":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","minLength":1,"maxLength":60},"scopes":{"type":"array","minItems":1,"maxItems":3,"items":{"$ref":"#/components/schemas/ApiKeyScope"}}}},"ApiKeyCreateResponse":{"type":"object","additionalProperties":false,"required":["key","secret"],"properties":{"key":{"$ref":"#/components/schemas/ApiKey"},"secret":{"type":"string","description":"Shown once; store it client-side. Never returned again."}}},"WebhookEvent":{"type":"string","enum":["submission.done","submission.failed","webhook.test"]},"WebhookDelivery":{"type":"object","additionalProperties":false,"required":["id","event","status","attempts","lastStatus","lastError","createdAt","deliveredAt"],"properties":{"id":{"type":"string"},"event":{"type":"string"},"status":{"type":"string","enum":["pending","delivering","delivered","failed"]},"attempts":{"type":"integer","minimum":0},"lastStatus":{"type":["integer","null"]},"lastError":{"type":["string","null"]},"createdAt":{"type":"string"},"deliveredAt":{"type":["string","null"]}}},"WebhookEndpoint":{"type":"object","additionalProperties":false,"required":["id","url","events","active","createdAt","recentDeliveries"],"properties":{"id":{"type":"string"},"url":{"type":"string"},"events":{"type":"array","items":{"$ref":"#/components/schemas/WebhookEvent"}},"active":{"type":"boolean"},"createdAt":{"type":"string"},"recentDeliveries":{"type":"array","maxItems":5,"items":{"$ref":"#/components/schemas/WebhookDelivery"}}}},"WebhookCreateRequest":{"type":"object","additionalProperties":false,"required":["url"],"properties":{"url":{"type":"string","maxLength":2048,"pattern":"^https://"},"events":{"type":"array","minItems":1,"items":{"$ref":"#/components/schemas/WebhookEvent"}}}},"WebhookCreateResponse":{"type":"object","additionalProperties":false,"required":["endpoint","secret"],"properties":{"endpoint":{"$ref":"#/components/schemas/WebhookEndpoint"},"secret":{"type":"string","description":"HMAC signing secret (whsec_…), shown once."}}},"V2WorkerHealth":{"type":"object","additionalProperties":false,"description":"Private orch healthz and status heartbeat v2 fit-consumer observation, not permission to open production v2 or a per-owner admission guarantee. remainingBudget is the scope-wide monthly submission allowance returned by lookbook_v2_capacity_state (reserve minus release ledger), NOT USD or GPU slots. Unknown/unreadable values are null, never zero or a guessed count. The v2 consumer does not reserve the v1 per-mission USD budget; no USD remaining amount is claimed. Public /api/healthz does not expose this block.","required":["accepting","reason","remainingBudget","budgetUnit"],"properties":{"accepting":{"type":"boolean"},"reason":{"type":["string","null"],"pattern":"^[a-z][a-z0-9_]*$"},"remainingBudget":{"type":["integer","null"],"minimum":0},"budgetUnit":{"type":"string","const":"monthly_submissions"}}},"Sha256":{"type":"string","pattern":"^[0-9a-f]{64}$"},"Error":{"type":"object","additionalProperties":false,"required":["error"],"properties":{"error":{"type":"string","description":"기계용 코드(예 not_found·conflict·capacity_closed)"},"reason":{"type":"string","description":"세부 사유(예 already_selected·regen_limit·unsupported_shop)"},"detail":{"type":"string"}}},"ApiKeyInvalid":{"type":"object","additionalProperties":false,"required":["error","reason"],"properties":{"error":{"type":"string","const":"unauthorized"},"reason":{"type":"string","const":"api_key_invalid"}}},"ApiKeyScopeForbidden":{"type":"object","additionalProperties":false,"required":["error","reason"],"properties":{"error":{"type":"string","const":"forbidden"},"reason":{"type":"string","const":"api_key_scope"}}},"GenerationRefusal":{"type":"string","description":"입장 거절 사유 정본 6종(decisions/generation-routing.md) — 잡·제출 행을 만들지 않고\n4xx `reason`으로 종결한다. 외부 전송·능력 판정이 먼저이므로 이 코드는\n`submissions.failure_code` CHECK(0027) 집합에 들어가지 않는다.\norch 정본은 `orch/internal/imagegen`의 `Reason*` 상수다.\n","enum":["external_image_disabled","personal_vto_unsupported","capability_unknown","provider_unavailable","budget_unavailable","pack_expired"]},"GenerationFailure":{"type":"string","description":"생성 잡 실패 사유 정본 3종 — 행이 존재하는 실패다. 저장 시\n`submissions.failure_code`로 접히고(`provider_error` → `provider`),\n저장 어휘는 web `FAILURE_CODES`·0027 CHECK와 같다. 표시 문구는 web이 소유한다.\n","enum":["invalid_asset","garment_unavailable","provider_error"]},"Session":{"type":"object","additionalProperties":false,"description":"세션 식별자·수명만 담는다. 라이브러리 개수 같은 파생 값은 그 테이블이 생기는\n이슈에서 필드로 추가한다(스펙이 구현보다 앞서 약속하지 않는다).\n","required":["sessionId","createdAt","expiresAt"],"properties":{"sessionId":{"type":"string","maxLength":64},"createdAt":{"type":"string","format":"date-time"},"expiresAt":{"type":"string","format":"date-time"}}},"Account":{"type":"object","additionalProperties":false,"description":"소유자 계정 표면(P4) — 승격 여부와 복구 코드 발급·회전 시각만 담는다. 이메일·\n비밀번호·전화번호 필드는 계약에 없다(수집하지 않는다).\n","required":["sessionId","createdAt","expiresAt","promoted"],"properties":{"sessionId":{"type":"string","maxLength":64},"createdAt":{"type":"string","format":"date-time"},"expiresAt":{"type":"string","format":"date-time"},"promoted":{"type":"boolean"},"promotedAt":{"type":"string","format":"date-time"},"recoveryIssuedAt":{"type":"string","format":"date-time"},"recoveryRotatedAt":{"type":"string","format":"date-time"}}},"RecoveryCodeIssue":{"type":"object","additionalProperties":false,"description":"복구 코드 발급 응답 — 코드 원문은 이 응답에서만 나가고 DB에는 sha256만 남는다.\n`notice`는 유실 고지 문구다(화면이 그대로 표시한다).\n","required":["recoveryCode","recoveryIssuedAt","notice"],"properties":{"recoveryCode":{"type":"string","minLength":43,"maxLength":64},"recoveryIssuedAt":{"type":"string","format":"date-time"},"notice":{"type":"string","maxLength":300}}},"RecoveryRedemption":{"type":"object","additionalProperties":false,"required":["session","recoveryCode","notice"],"properties":{"session":{"$ref":"#/components/schemas/Session"},"recoveryCode":{"type":"string","minLength":43,"maxLength":64},"notice":{"type":"string","maxLength":300}}},"EntitlementAdjustment":{"type":"object","additionalProperties":false,"description":"추가 전용 정정 원장 1행 — 수정·삭제 경로는 없다(정정은 신규 행).","required":["kind","units","period","createdAt"],"properties":{"kind":{"type":"string","enum":["grant","correction"]},"units":{"type":"integer"},"period":{"type":"string","format":"date"},"createdAt":{"type":"string","format":"date-time"}}},"Entitlement":{"type":"object","additionalProperties":false,"description":"소유자 엔타이틀먼트 표시값 — 월 grant(0024 KST 달력 월)·사용량(포함: v2 피팅 제출 예약)·\n슬롯·정정 원장. 판정 정본은 SQL이고 이 표면은 표시다.\n","required":["scope","periodStart","monthlyGrants","grantsUsed","availableSubmissions"],"properties":{"scope":{"type":"string","maxLength":32},"periodStart":{"type":"string","format":"date"},"monthlyGrants":{"type":"integer","minimum":0},"grantsUsed":{"type":"integer","minimum":0},"availableSubmissions":{"type":"integer","minimum":0},"gpuSlots":{"type":"integer","minimum":1},"inFlight":{"type":"integer","minimum":0},"adjustments":{"type":"array","maxItems":50,"items":{"$ref":"#/components/schemas/EntitlementAdjustment"}}}},"Consent":{"type":"object","additionalProperties":false,"required":["consentVersion","consentSha256","acceptedAt"],"properties":{"consentVersion":{"type":"string"},"consentSha256":{"$ref":"#/components/schemas/Sha256"},"acceptedAt":{"type":"string","format":"date-time"}}},"UploadTicket":{"type":"object","additionalProperties":false,"required":["mediaId","uploadUrl","method","expiresAt"],"properties":{"mediaId":{"type":"string"},"uploadUrl":{"type":"string","format":"uri"},"method":{"type":"string","const":"PUT"},"expiresAt":{"type":"string","format":"date-time"},"headers":{"type":"object","additionalProperties":{"type":"string"}}}},"MediaObject":{"type":"object","additionalProperties":false,"required":["mediaId","kind","state","createdAt"],"properties":{"mediaId":{"type":"string"},"kind":{"type":"string","enum":["source","derived","composition"]},"state":{"type":"string","enum":["quarantined","validating","validated","rejected","saved","expired","deleted"]},"mimeType":{"type":"string"},"bytes":{"type":"integer","minimum":0},"width":{"type":"integer","minimum":1},"height":{"type":"integer","minimum":1},"sha256":{"$ref":"#/components/schemas/Sha256"},"createdAt":{"type":"string","format":"date-time"},"expiresAt":{"type":"string","format":"date-time","description":"저장 전 미저장 TTL","저장 후에는 null":null},"savedUntil":{"type":"string","format":"date-time","description":"저장한 사진의 보관 만료(저장 시각 + 180일, 0038). `state=saved`일 때만 있고, 만료가\n지나면 스위퍼가 객체만 지우고 상태를 `expired`로 바꾸므로 그때는 없다.\n"},"rejectionReason":{"type":"string","enum":["face_none","face_multiple","unsupported_format","too_large","decode_failed","upload_missing","processing_failed","policy_rejected"]}}},"SignedUrl":{"type":"object","additionalProperties":false,"required":["url","expiresAt"],"properties":{"url":{"type":"string","format":"uri"},"expiresAt":{"type":"string","format":"date-time"}}},"StyleTag":{"type":"string","enum":["casual","street","minimal","classic","romantic","sporty","formal","office","date","travel","wedding_guest","daily"]},"StylePreference":{"type":"object","additionalProperties":false,"required":["tags","updatedAt"],"properties":{"tags":{"type":"array","items":{"$ref":"#/components/schemas/StyleTag"}},"updatedAt":{"type":"string","format":"date-time"}}},"PersonaPin":{"type":"object","additionalProperties":false,"required":["model","pinnedAt"],"properties":{"model":{"$ref":"#/components/schemas/Model"},"pinnedAt":{"type":"string","format":"date-time"}}},"PersonaPinState":{"type":"object","additionalProperties":false,"required":["persona"],"properties":{"persona":{"oneOf":[{"$ref":"#/components/schemas/PersonaPin"},{"type":"null"}]}}},"Garment":{"type":"object","additionalProperties":false,"required":["garmentId","state","imageCandidates"],"properties":{"garmentId":{"type":"string"},"state":{"type":"string","enum":["extracting","extracted","confirmed","failed"],"description":"`extracting`(orch 추출 진행 중 — 후보·해시 없음) → `extracted`(후보·스냅숏 해시 고정)\n→ `confirmed`(확인 게이트 통과). 추출 실패는 `failed`이고 `rejectionReason`을 싣는다.\n"},"store":{"type":"string","enum":["musinsa"]},"sourceUrl":{"type":"string","format":"uri"},"snapshotSha256":{"$ref":"#/components/schemas/Sha256","description":"orch가 고정한 대표 이미지 바이트의 sha256 — `extracted` 이후에만 있다."},"coreInfo":{"type":"object","additionalProperties":true},"imageCandidates":{"type":"array","description":"orch 순위(착샷 → 상품컷 → 대표 이미지, 최대 8) 그대로다 — `extracting`·`failed`는 빈 배열.","items":{"type":"object","additionalProperties":false,"required":["url","kind"],"properties":{"url":{"type":"string","format":"uri"},"kind":{"type":"string","enum":["fitshot","product_cut","main"]}}}},"defaultImageUrl":{"type":"string","format":"uri","description":"저장된 스냅숏 바이트의 출처다(오케스트레이터가 실제로 내려받은 이미지 URL). 확인 게이트는 이\nURL만 확정할 수 있고, 본문에서 `imageUrl`을 생략하면 이 값이 확정된다 — 확정 URL과 생성\n입력 바이트가 갈라지지 않게 한다(다른 후보는 재추출 전까지 409 `asset_gone`).\n"},"confirmedImageUrl":{"type":"string","format":"uri","description":"확인 게이트에서 고른 이미지"},"rejectionReason":{"type":"string","enum":["unsupported_shop","not_found","timeout","extract_blocked","invalid_asset","internal"],"description":"추출 실패 사유 코드(`failed`). `extract_blocked`는 상점이 추출을 차단했거나 이미지 URL이\n공개 주소가 아님(SSRF 가드), `invalid_asset`은 대표 이미지가 없거나 형식을 읽을 수 없음,\n`internal`은 재시도 소진·구성 오류다.\n"}}},"Draft":{"type":"object","additionalProperties":false,"required":["draftId","state","styleTags","createdAt","expiresAt"],"properties":{"draftId":{"type":"string"},"state":{"type":"string","enum":["collecting","ready","submitted","expired"]},"garmentId":{"type":"string"},"sourceMediaId":{"type":"string"},"styleTags":{"type":"array","items":{"$ref":"#/components/schemas/StyleTag"}},"consentAt":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"expiresAt":{"type":"string","format":"date-time"}}},"FitVersion":{"type":"object","additionalProperties":false,"required":["versionId","state","selected"],"properties":{"versionId":{"type":"string"},"state":{"type":"string","enum":["queued","generating","done","failed"]},"selected":{"type":"boolean"},"mediaId":{"type":"string"},"comparisonMediaId":{"type":"string"},"failureCode":{"type":"string"}}},"Fit":{"type":"object","additionalProperties":false,"required":["fitId","state","generation","regenUsed","versions"],"properties":{"fitId":{"type":"string"},"state":{"type":"string","enum":["queued","generating","done","failed"]},"generation":{"type":"integer","minimum":1},"regenUsed":{"type":"integer","minimum":0},"actualVersionCount":{"type":"integer","minimum":0,"maximum":3},"failureCode":{"type":"string"},"failureMessage":{"type":"string"},"versions":{"type":"array","items":{"$ref":"#/components/schemas/FitVersion"}}}},"CompositionOutput":{"type":"object","additionalProperties":false,"required":["mediaId","width","height","fps","durationS","sha256"],"properties":{"mediaId":{"type":"string"},"width":{"type":"integer"},"height":{"type":"integer"},"fps":{"type":"integer"},"durationS":{"type":"number"},"sha256":{"$ref":"#/components/schemas/Sha256"},"posterMediaId":{"type":"string"}}},"Composition":{"type":"object","additionalProperties":false,"required":["compositionId","state","recipeId","recipeSha256"],"properties":{"compositionId":{"type":"string"},"state":{"type":"string","enum":["queued","rendering","done","failed"]},"jobId":{"type":"string"},"recipeId":{"type":"string"},"recipeSha256":{"$ref":"#/components/schemas/Sha256"},"output":{"$ref":"#/components/schemas/CompositionOutput"},"failureCode":{"type":"string"}}},"CollectionItem":{"type":"object","additionalProperties":false,"required":["itemId","kind","refId"],"properties":{"itemId":{"type":"string"},"kind":{"type":"string","enum":["fit","composition","product"]},"refId":{"type":"string"},"placeholderReason":{"type":"string","description":"대상이 삭제된 경우의 안내 코드"}}},"Collection":{"type":"object","additionalProperties":false,"required":["collectionId","title","items","createdAt"],"properties":{"collectionId":{"type":"string"},"title":{"type":"string"},"items":{"type":"array","items":{"$ref":"#/components/schemas/CollectionItem"}},"createdAt":{"type":"string","format":"date-time"}}},"Share":{"type":"object","additionalProperties":false,"required":["shareId","token","kind","refId","createdAt"],"properties":{"shareId":{"type":"string"},"token":{"type":"string"},"kind":{"type":"string","enum":["fit","composition"]},"refId":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"revokedAt":{"type":"string","format":"date-time"},"notice":{"type":"string","description":"다운로드 사본 회수 불가 고지(생성 응답에서만)"}}},"ProductCard":{"type":"object","additionalProperties":false,"required":["productId","title","affiliateNotice","url"],"properties":{"productId":{"type":"string"},"title":{"type":"string"},"priceText":{"type":"string"},"couponText":{"type":"string"},"couponExpiresAt":{"type":"string","format":"date-time"},"affiliateNotice":{"type":"string"},"url":{"type":"string","format":"uri"},"unavailableReason":{"type":"string"}}},"Model":{"type":"string","enum":["male1","female1","female2"]},"StylePreset":{"type":"string","enum":["daily","clean","product_ad","product_ugc","street","office"],"description":"v1 스타일 프리셋 — assets/scenes/presets·submissions.style_preset CHECK와 같은 원문. 톤 선택이며 장소·상품 재현을 보장하지 않는다."},"ReelBgmPreset":{"type":"string","enum":["am7-96","f-110","dm-84"],"description":"룩북 릴 코드 합성 BGM 프리셋 id — orch reel.MusicPresetIDs()·look_sets.bgm_preset CHECK(0082)와 같은 원문. 외부·유료 음원이 아니라 코드가 결정론적으로 합성한 트랙이다(decisions/reel-audio.md)."},"ReelLocale":{"type":"string","enum":["ko","en"],"description":"룩북 릴 고정 카피 언어 — web REEL_LOCALES·look_sets.locale CHECK(0087)·orch reelCopyFor와 같은 원문(JJO-2462). 문구 정본은 orch이고 DB는 id만 갖는다. ko가 기본이며 기존 문구·바이트 그대로다."},"FailureCode":{"type":"string","enum":["capacity","moderation","provider","timeout","extract","invalid_asset","garment_unavailable","internal","quality_below_threshold","garment_fidelity_below_threshold"]},"SubmissionStatus":{"type":"string","enum":["pending_asset_check","queued","generating","done","failed"]},"JobStage":{"type":"string","enum":["starting","queued","processing","completed","failed"],"description":" 사용자·API가 보는 5단계 정규화 상태. `submissions.status` 5종을 web `modules/status`의 단일 매핑(starting←pending_asset_check, queued←queued, processing←generating, completed←done, failed←failed)으로 접는다. 경쟁 제품(FASHN)과 같은 어휘다."},"HoldReason":{"type":"string","enum":["input_check","queue"],"description":" 진행 중 상태의 보류 사유 코드. `input_check`는 상품 자산 확인 대기, `queue`는 생성 서버 앞 큐 대기다. 완료·실패는 null이고 실패 사유는 failureCode다."},"StatusProgress":{"type":"object","additionalProperties":false,"description":" 대기·진행 진행도. ETA = (이 제출보다 먼저 처리될 생성 작업 jobsAhead + 이 제출의 남은 작업) × 최근 실측 버전당 처리 간격 − 맨 앞 작업의 경과 시간이며 보장값이 아니다. 큐 전체 깊이(queueDepth)는 이 제출 뒤에 선 작업도 포함하므로 ETA에 쓰지 않는다. 표본이 없거나 순서를 읽지 못하면 etaSeconds·etaAt은 null이다(문구는 web copy가 소유).","required":["queueDepth","inFlight","jobsAhead","etaSeconds","etaAt","etaBasis","measuredJobSeconds","jobSamples"],"properties":{"queueDepth":{"type":["integer","null"],"minimum":0,"description":"미측정(null)과 0건을 구분한다."},"inFlight":{"type":["integer","null"],"minimum":0,"description":"미측정(null)과 0건을 구분한다."},"jobsAhead":{"type":["integer","null"],"minimum":0,"description":" 이 제출보다 먼저 처리될 대기·처리 중 생성 작업 수(버전 단위, 다른 제출만 센다). fal queue_position과 같은 축이다. 생성 대기·진행 중이 아니면 0, 순서를 읽지 못하면 null(측정 실패)이다."},"etaSeconds":{"type":["integer","null"],"minimum":0},"etaAt":{"type":["string","null"]},"etaBasis":{"type":"string","enum":["measured","measuring"]},"measuredJobSeconds":{"type":["number","null"],"minimum":0,"description":" 최근 완료된 version 잡의 평균 처리 간격(초). 잡마다 완료 시각 − max(직전 완료 시각, 그 잡의 적재 시각)이다 — 공유 GPU의 실제 처리 속도라 다른 제품의 작업·모델 교체 대기까지 반영한다."},"jobSamples":{"type":["integer","null"],"minimum":0,"description":" ETA 표본 수. 0은 아직 완료된 생성 잡이 없음(측정 중), null은 하트비트에서 표본 키를 읽지 못함(측정 실패)이다 — 장애를 측정 중으로 위장하지 않는다. 표본은 jobs.completed_at(0056)에서 계산하므로 워커 재시작과 무관하다."}}},"SubmitRequest":{"description":"Exactly one input source is accepted: a non-blank `productUrl`, or 1–3 valid `imageKeys`.\n`items` can structurally represent 1–3 distinct garments in original order; this is not\na generation capability promise. Current comfyq still supports ONE garment (N=1) only.\nN=2/3 confirmation is rejected with HTTP 409 conflict/garment_unavailable before\ncapacity reservation or generate job enqueue. Each item has exactly one source.\n`imageKeys` are candidate photographs of ONE item, not distinct garments. Items cannot\nbe mixed with scalar inputs. The scalar form explicitly submits one item through the\nsame item extraction and immutable binding path; malformed arrays never fall back.\nThe image form uses an empty `productUrl` string as the existing sentinel; the handler also\naccepts a whitespace-only string or an ignored non-string `productUrl` when image keys are\nsupplied. A non-blank string together with image keys is rejected as mixed input.\n\n`model` is optional: when omitted, a persona pinned to the caller's anonymous session\n(`PUT /api/profile/persona`) is applied and recorded as the submission's model. Without\na pin the request is rejected as `model_required`. An explicit `model` always wins.\n","oneOf":[{"type":"object","additionalProperties":false,"required":["items","consent"],"properties":{"items":{"type":"array","minItems":1,"maxItems":3,"uniqueItems":true,"items":{"$ref":"#/components/schemas/OutfitItemSource"}},"model":{"$ref":"#/components/schemas/Model"},"consent":{"type":"boolean","const":true}}},{"type":"object","required":["productUrl","consent"],"properties":{"productUrl":{"type":"string","pattern":"\\S","description":"Required for URL input and non-blank after trimming."},"model":{"$ref":"#/components/schemas/Model"},"consent":{"type":"boolean","const":true}},"not":{"anyOf":[{"required":["imageKeys"]},{"required":["items"]}]}},{"type":"object","required":["imageKeys","consent"],"properties":{"productUrl":{"description":"Optional for image input. Empty or whitespace-only strings are the existing sentinel;\nnon-string values are ignored. A non-blank string is rejected as mixed input sources.\n","oneOf":[{"type":"string","pattern":"^\\s*$"},{"type":["number","boolean","object","array","null"]}]},"imageKeys":{"type":"array","minItems":1,"maxItems":3,"items":{"type":"string","maxLength":200,"pattern":"^staging/[A-Za-z0-9_-][A-Za-z0-9._-]*(?:/[A-Za-z0-9_-][A-Za-z0-9._-]*)*$"}},"model":{"$ref":"#/components/schemas/Model"},"consent":{"type":"boolean","const":true}},"not":{"required":["items"]}}]},"SubmitAccepted":{"type":"object","additionalProperties":false,"required":["token","checkUrl","statusUrl"],"properties":{"token":{"type":"string"},"checkUrl":{"type":"string"},"statusUrl":{"type":"string"}}},"SubmitBadRequest":{"oneOf":[{"type":"object","additionalProperties":false,"required":["error","reason"],"properties":{"error":{"type":"string","const":"bad_request"},"reason":{"type":"string","enum":["invalid_json","product_url_required","invalid_image_key","mixed_input_sources","items_invalid","model_required","consent_required"]}}},{"type":"object","additionalProperties":false,"required":["error","reason","supported"],"properties":{"error":{"type":"string","const":"bad_request"},"reason":{"type":"string","const":"unsupported_domain"},"supported":{"type":"array","items":{"type":"string"}}}},{"type":"object","additionalProperties":false,"required":["error","reason"],"properties":{"error":{"type":"string","const":"bad_request"},"reason":{"type":"string","const":"extract_blocked"}}},{"type":"object","additionalProperties":false,"required":["error"],"properties":{"error":{"type":"string","const":"model_unavailable"}}}]},"RateLimited":{"type":"object","additionalProperties":false,"required":["error"],"properties":{"error":{"type":"string","const":"rate_limited"}}},"InternalError":{"type":"object","additionalProperties":false,"required":["error"],"properties":{"error":{"type":"string","const":"internal_error"}}},"CapacityClosed":{"type":"object","additionalProperties":false,"required":["error"],"properties":{"error":{"type":"string","const":"capacity_closed"},"reason":{"oneOf":[{"$ref":"#/components/schemas/CapacityReason"},{"type":"null"}],"description":" 접수 거절 사유 코드(heartbeat·운영 게이트 판정). 모르는 orch 사유는 null로 내보내고 표시 문구는 기본 안내로 떨어진다 — 사유를 발명하지 않는다. 월 쿼터 소진은 2026-11-11 오너 결정 O1로 제거됐다(0062) — 다시 열리는 시각을 아는 사유는 없어 `retryAt`을 내보내지 않는다."}}},"LookSetSubmitRequest":{"type":"object","additionalProperties":false,"required":["looks","model","consent"],"properties":{"looks":{"type":"array","minItems":2,"maxItems":6,"description":"룩 번호 순서(1..N). 원소마다 `productUrl` 또는 업로드한 `imageKeys` 중 정확히 하나다\n(같은 세트에서 섞을 수 있다). 상한 6은 look_sets.look_count CHECK(0097)와 같은 값이다.\n","items":{"$ref":"#/components/schemas/OutfitItemSource"}},"model":{"$ref":"#/components/schemas/Model"},"consent":{"type":"boolean","const":true}}},"LookSetAccepted":{"type":"object","additionalProperties":false,"required":["token","lookCount","submissionTokens","looks","statusUrl"],"properties":{"token":{"type":"string","description":"룩 세트 토큰(공개 상태 페이지 `/looks/<token>`의 열쇠)."},"lookCount":{"type":"integer","minimum":2,"description":"룩 수(2~6). 상한은 요청 `looks.maxItems`와 look_sets CHECK가 함께 강제한다."},"submissionTokens":{"type":"array","items":{"type":"string"}},"looks":{"type":"array","items":{"$ref":"#/components/schemas/LookSetAcceptedLook"}},"statusUrl":{"type":"string"}}},"LookSetAcceptedLook":{"type":"object","additionalProperties":false,"required":["lookIndex","submissionToken","checkUrl"],"properties":{"lookIndex":{"type":"integer","minimum":1},"submissionToken":{"type":"string"},"checkUrl":{"type":"string"}}},"LookSetCreatedLook":{"type":"object","additionalProperties":false,"required":["lookIndex","submissionToken"],"properties":{"lookIndex":{"type":"integer","minimum":1},"submissionToken":{"type":"string"}}},"LookSetBadRequest":{"oneOf":[{"type":"object","additionalProperties":false,"required":["error","reason"],"properties":{"error":{"type":"string","const":"bad_request"},"reason":{"type":"string","enum":["invalid_json","looks_invalid","look_count_out_of_range","product_url_required","mixed_input_sources","invalid_image_key","model_required","consent_required"]},"lookIndex":{"type":"integer","minimum":1}}},{"type":"object","additionalProperties":false,"required":["error","reason","supported"],"properties":{"error":{"type":"string","const":"bad_request"},"reason":{"type":"string","const":"unsupported_domain"},"supported":{"type":"array","items":{"type":"string"}},"lookIndex":{"type":"integer","minimum":1}}},{"type":"object","additionalProperties":false,"required":["error","reason"],"properties":{"error":{"type":"string","const":"bad_request"},"reason":{"type":"string","const":"extract_blocked"},"lookIndex":{"type":"integer","minimum":1}}},{"type":"object","additionalProperties":false,"required":["error"],"properties":{"error":{"type":"string","const":"model_unavailable"}}}]},"InsufficientCredits":{"type":"object","additionalProperties":false,"required":["error","reason","balance","required","plan","upgradeUrl","billingUrl"],"properties":{"error":{"type":"string","const":"insufficient_credits"},"reason":{"type":"string","enum":["insufficient_credits","subscription_past_due"]},"balance":{"type":"integer","minimum":0,"description":"현재 잔여 크레딧(원장 합계)"},"required":{"type":"integer","minimum":1,"description":"이번 요청에 필요한 크레딧 수"},"plan":{"oneOf":[{"type":"string","enum":["starter","pro","studio"]},{"type":"null"}]},"upgradeUrl":{"type":"string","description":"요금제 비교·업그레이드 경로"},"billingUrl":{"type":"string","description":"구독·결제 관리 경로"},"createdLooks":{"type":"integer","minimum":0,"description":"멀티룩 경합으로 부분 생성이 발생한 경우 이미 만들어진 룩 수"},"created":{"type":"array","items":{"$ref":"#/components/schemas/LookSetCreatedLook"}}}},"LookSetCapacityClosed":{"type":"object","additionalProperties":false,"required":["error","reason","createdLooks","created"],"properties":{"error":{"type":"string","const":"capacity_closed"},"reason":{"oneOf":[{"$ref":"#/components/schemas/CapacityReason"},{"type":"null"}]},"createdLooks":{"type":"integer","minimum":0,"description":"이번 요청이 이미 만든 룩 수 — 세트는 결속하지 않았다(부분 실패는 되돌리지 않는다)."},"created":{"type":"array","description":"이미 만든 룩의 토큰. 호출자는 `/check/<submissionToken>`으로 이어 쓸 수 있다.","items":{"$ref":"#/components/schemas/LookSetCreatedLook"}}}},"CapacityReason":{"type":"string","enum":["capacity","pack_expired","not_accepting","maintenance","garment_input_unavailable","no_heartbeat","stale_heartbeat","unavailable","no_persona","kling_unconfigured","disk","ffmpeg_missing","kling_capacity","worker_unavailable"]},"NotFound":{"type":"object","additionalProperties":false,"required":["error"],"properties":{"error":{"type":"string","const":"not_found"}}},"Expired":{"type":"object","additionalProperties":false,"required":["error"],"properties":{"error":{"type":"string","const":"expired"}}},"ConfirmRequest":{"description":"All submitted items must be confirmed in original order without dropping items.\nCurrent comfyq still supports N=1 only. For N=2/3, confirmation returns HTTP 409\nconflict/garment_unavailable before capacity reservation or generate job enqueue.\nOther still ports require explicit fresh confirm_garment_counts support; an absent,\nstale or unsupported capability is rejected with the same reason.\n","oneOf":[{"$ref":"#/components/schemas/SingleConfirmRequest"},{"type":"object","additionalProperties":false,"required":["items","stylePreset"],"properties":{"stylePreset":{"$ref":"#/components/schemas/StylePreset"},"scenePlace":{"oneOf":[{"$ref":"#/components/schemas/ScenePlace"},{"type":"null"}],"description":"확인 본문의 장소 칩(0080·0090). `null`은 기본(현재 장면)이다 — `cafe`는 기본값이 아니라\n실제 카페 배경 선택이다. 칩이 있으면 서버는 확인과 **같은 트랜잭션**의 래퍼 RPC\n(lookbook_confirm_scene_chips)로 제출 행에 기록한다 — 확인이 실패하면 칩도 되돌아간다.\n생략하면 기존 선택을 유지한다. 열거 밖 값은 400 `scene_chip_invalid`, 룩 2·3\n(플레이트 경로)의 실제 선택은 409 `scene_chip_not_applicable`이다.\n"},"scenePose":{"oneOf":[{"$ref":"#/components/schemas/ScenePose"},{"type":"null"}],"description":"포즈 칩 — null은 자동(버전별 변주)이다."},"sceneFraming":{"oneOf":[{"$ref":"#/components/schemas/SceneFraming"},{"type":"null"}],"description":"프레이밍 칩 — null은 자동이다."},"items":{"type":"array","minItems":1,"maxItems":3,"uniqueItems":true,"description":"All submitted items in original order, with exact reviewed snapshot hashes.","items":{"$ref":"#/components/schemas/OutfitItemConfirmation"}}}}]},"OutfitItemSource":{"oneOf":[{"type":"object","additionalProperties":false,"required":["productUrl"],"properties":{"productUrl":{"type":"string","pattern":"\\S"}}},{"type":"object","additionalProperties":false,"required":["imageKeys"],"properties":{"imageKeys":{"type":"array","minItems":1,"maxItems":3,"uniqueItems":true,"items":{"type":"string","pattern":"^staging/[A-Za-z0-9_-][A-Za-z0-9._-]*(?:/[A-Za-z0-9_-][A-Za-z0-9._-]*)*$"}}}}]},"OutfitItemConfirmation":{"type":"object","additionalProperties":false,"required":["itemId","garmentSnapshotId","sha256","kind","length","lengthSource"],"properties":{"itemId":{"type":"string","format":"uuid"},"garmentSnapshotId":{"type":"string","format":"uuid"},"sha256":{"type":"string","pattern":"^[0-9a-f]{64}$"},"kind":{"type":"string","enum":["top","outer","bottom","one_piece","set","accessory"]},"length":{"$ref":"#/components/schemas/GarmentLength"},"lengthSource":{"$ref":"#/components/schemas/GarmentLengthSource"},"qualityOverrideReason":{"type":"string","maxLength":300},"multiItemReason":{"type":"string","maxLength":300},"coreInfo":{"type":"object","description":"Per-item reviewed metadata patch, preserved with the immutable binding."}}},"SingleConfirmRequest":{"type":"object","description":"Explicit single-item form. It cannot confirm a multi-item submission.\n","not":{"required":["items"]},"required":["garmentSnapshotId","stylePreset","garmentType","garmentLength","garmentLengthSource"],"properties":{"coreInfo":{"type":"object","description":"확인 폼 수정값 — 원장 core_info에 병합한다"},"garmentSnapshotId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"최신 ready 크롭 스냅숏의 id — 0025 lookbook_confirm 결속"},"qualityOverrideReason":{"type":"string","maxLength":300,"description":"크롭 원본 후보가 500px 미만(poor)일 때 강행 사유"},"stylePreset":{"$ref":"#/components/schemas/StylePreset","description":"확인 폼의 실제 선택 — 없거나 열거 밖이면 크롭 검사 뒤 409 style_required(0026)"},"garmentType":{"$ref":"#/components/schemas/GarmentType","description":"확인 화면에서 확정한 착장 형태 — unknown 제안은 사용자가 골라야 한다(0058)"},"garmentLength":{"$ref":"#/components/schemas/GarmentLength","description":"착장 기장 — 상의·아우터·세트는 na, 하의는 na가 아니다"},"garmentLengthSource":{"$ref":"#/components/schemas/GarmentLengthSource","description":"기장 판정 출처 — 추출 제안(metadata·signal) 또는 사용자 확정(confirm)"},"multiItemReason":{"type":"string","maxLength":300,"description":"세트·다중 아이템(core_info.garmentMultiItem=true) 상품의 강행 사유 — 없으면 409 garment_shape_required"},"aiBadge":{"type":"boolean","default":true,"description":"다운로드 산출물(스틸·영상) 화면 안에 \"AI 생성\" 배지를 굽는지(0076).\n기본 true — 표시를 줄이는 것은 명시적 선택이다. 켜면 발행 스틸·영상\n프레임·릴에 배지가 구워지고, 끄면 배지 없는 버전을 발행한다(캐러셀 카드는\n원본 발행물의 배지를 그대로 쓴다). 메타데이터 표기(XMP DigitalSourceType·\n컨테이너 태그)는 이 값과 무관하게 항상 남는다.\n확인이 성공하는 트랜잭션에서 상태 전이와 함께 기록되고, 거절된 확인은 값을\n남기지 않는다. 생성이 시작된 뒤에는 바뀌지 않는다.\n"},"scenePlace":{"oneOf":[{"$ref":"#/components/schemas/ScenePlace"},{"type":"null"}],"description":"확인 본문의 장소 칩(0080). `null`은 기본(현재 장면)이다 — `cafe`는 기본값이 아니라\n실제 카페 배경 선택이다. 서버는 확인 RPC 전에 별도 RPC(lookbook_set_scene_chips)로\n제출 행에 기록한다 — 확인 RPC의 본문·시그니처는 바뀌지 않는다.\n생략하면 기존 선택을 유지한다.\n"},"scenePose":{"oneOf":[{"$ref":"#/components/schemas/ScenePose"},{"type":"null"}],"description":"포즈 칩 — null은 자동(버전별 변주)이다."},"sceneFraming":{"oneOf":[{"$ref":"#/components/schemas/SceneFraming"},{"type":"null"}],"description":"프레이밍 칩 — null은 자동이다."}}},"GarmentType":{"type":"string","enum":["one_piece","top","outer","bottom","set"]},"GarmentLength":{"type":"string","enum":["short","knee","long","na"]},"GarmentLengthSource":{"type":"string","enum":["metadata","signal","confirm"]},"ScenePlace":{"type":"string","description":"장소 칩(0080) — 3버전 공통 배경. 선택하지 않은 기본(`null`)이 지금의 장면 구성\n그대로이고, `cafe`는 실제 카페 배경을 만드는 선택값이다.\n스타일 프리셋의 `street`(톤)와 이름이 같지만 다른 축이다.\n","enum":["office_lobby","cafe","street","living_room","park"]},"ScenePose":{"type":"string","description":"포즈 칩(0080) — 선택하면 3버전 모두 같은 자세를 쓴다. null은 자동.","enum":["standing","walking_past","door_push","turn_back","leaning"]},"SceneFraming":{"type":"string","description":"프레이밍 칩(0080) — 선택하면 3버전 모두 같은 구도를 쓴다. null은 자동.","enum":["full","upper","detail"]},"ConfirmAccepted":{"type":"object","additionalProperties":false,"required":["token","statusUrl"],"properties":{"token":{"type":"string"},"statusUrl":{"type":"string"}}},"ConfirmBadRequest":{"oneOf":[{"type":"object","additionalProperties":false,"required":["error","reason"],"properties":{"error":{"type":"string","const":"bad_request"},"reason":{"type":"string","enum":["invalid_json","core_info_invalid","quality_override_reason_invalid","multi_item_reason_invalid","items_invalid","ai_badge_invalid"]}}},{"type":"object","additionalProperties":false,"required":["error"],"properties":{"error":{"type":"string","const":"quality_override_required"}}}]},"ConfirmConflict":{"type":"object","additionalProperties":false,"required":["error","reason"],"properties":{"error":{"type":"string","const":"conflict"},"reason":{"type":"string","description":"garment_unavailable includes unsupported garment counts (comfyq still supports N=1 only)\nand absent or stale still capability. No capacity is reserved and no generate job is enqueued.\nconfirm_unmapped is an unrecognized RPC rejection; its original reason is logged server-side only.\n","enum":["not_pending_asset_check","assets_not_ready","crop_not_ready","crop_source_mismatch","style_required","garment_shape_required","garment_unavailable","confirm_unmapped"]}}},"CropRequest":{"type":"object","required":["requestId","sourceSha256","rect"],"properties":{"itemId":{"type":"string","format":"uuid","description":"Required to address an item in a multi-item submission."},"requestId":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$","description":"클라이언트가 만드는 멱등 키 — 같은 키·같은 payload는 readback"},"sourceSha256":{"type":"string","pattern":"^[0-9a-f]{64}$","description":"원본 스냅숏 sha256 — 이 제출의 source 스냅숏이어야 한다"},"rect":{"$ref":"#/components/schemas/CropRect"}}},"CropRect":{"type":"object","additionalProperties":false,"required":["x","y","w","h"],"properties":{"x":{"type":"integer","minimum":0},"y":{"type":"integer","minimum":0},"w":{"type":"integer","minimum":1},"h":{"type":"integer","minimum":1}}},"CropView":{"type":"object","additionalProperties":false,"required":["requestId","revision","status"],"properties":{"requestId":{"type":"string"},"revision":{"type":"integer","minimum":1},"status":{"type":"string","enum":["pending","ready","failed"]},"reason":{"type":"string"},"snapshotId":{"type":"string"},"snapshotSha256":{"type":"string"},"previewUrl":{"type":"string"},"width":{"type":"integer","minimum":1},"height":{"type":"integer","minimum":1}}},"CropAccepted":{"type":"object","additionalProperties":false,"required":["crop"],"properties":{"crop":{"$ref":"#/components/schemas/CropView"}}},"CropBadRequest":{"type":"object","additionalProperties":false,"required":["error","reason"],"properties":{"error":{"type":"string","const":"bad_request"},"reason":{"type":"string","enum":["invalid_json","request_invalid"]}}},"CropConflict":{"type":"object","additionalProperties":false,"required":["error","reason"],"properties":{"error":{"type":"string","const":"conflict"},"reason":{"type":"string","enum":["not_pending_asset_check","crop_request_conflict","crop_source_mismatch"]}}},"CropInvalidCoordinates":{"type":"object","additionalProperties":false,"required":["error"],"properties":{"error":{"type":"string","const":"invalid_coordinates"}}},"SelectRequest":{"type":"object","required":["versionId"],"properties":{"versionId":{"type":"string"}}},"SelectAccepted":{"type":"object","additionalProperties":false,"required":["selected","mp4Url"],"properties":{"selected":{"type":"boolean","const":true},"mp4Url":{"type":["string","null"]}}},"SelectBadRequest":{"type":"object","additionalProperties":false,"required":["error","reason"],"properties":{"error":{"type":"string","const":"bad_request"},"reason":{"type":"string","enum":["invalid_json","version_id_required"]}}},"SelectNotFound":{"type":"object","additionalProperties":false,"required":["error"],"properties":{"error":{"type":"string","enum":["not_found","version_not_found"]}}},"SelectConflict":{"type":"object","additionalProperties":false,"required":["error","reason"],"properties":{"error":{"type":"string","const":"conflict"},"reason":{"type":"string","enum":["not_done","already_selected"]}}},"ExtendConflict":{"type":"object","additionalProperties":false,"required":["error","reason"],"properties":{"error":{"type":"string","const":"conflict"},"reason":{"type":"string","enum":["already_extended","not_done"]}}},"RetentionExtended":{"type":"object","additionalProperties":false,"required":["token","extended","expiresAt"],"properties":{"token":{"type":"string"},"extended":{"type":"boolean","const":true},"expiresAt":{"type":"string","description":"1회 연장이 반영된 유효 만료 시각(ISO 8601)."}}},"RegenRequest":{"type":"object","properties":{"reason":{"type":"string","description":"재생성 사유(regen_log 자유 텍스트)"},"scene":{"type":"string","enum":["scene_1","scene_2","scene_3"],"description":"있으면 그 장면 1개만 다시 만든다(0081 버전 반려) — 없으면 세대 전체 재생성이다."},"reasons":{"type":"array","maxItems":5,"description":"버전 반려 사유 칩(0081). scene이 있을 때 1개 이상 필요하다.","items":{"$ref":"#/components/schemas/RegenReason"}}}},"RegenReason":{"type":"string","description":"반려 사유 원문 — 0081 regen_log.reasons CHECK·web VERSION_REGEN_REASONS와 같다.","enum":["color","pattern","sleeve","face","background"]},"RegenAccepted":{"type":"object","additionalProperties":false,"required":["token","status","regenUsed","statusUrl"],"properties":{"token":{"type":"string"},"status":{"$ref":"#/components/schemas/SubmissionStatus"},"regenUsed":{"type":"integer","minimum":0},"statusUrl":{"type":"string"},"scene":{"type":"string","enum":["scene_1","scene_2","scene_3"],"description":"장면 재생성 응답에만 있다 — 세대 전체 재생성은 생략한다."}}},"RegenBadRequest":{"type":"object","additionalProperties":false,"required":["error","reason"],"properties":{"error":{"type":"string","const":"bad_request"},"reason":{"type":"string","enum":["invalid_json","reason_invalid","scene_invalid","reasons_required","reasons_invalid"]}}},"RegenNotFound":{"type":"object","additionalProperties":false,"required":["error"],"properties":{"error":{"type":"string","enum":["not_found","version_not_found"]}},"description":"재생성 404 — 토큰 없음 또는(장면 재생성) 그 세대에 그 장면 버전 없음."},"RegenInFlightConflict":{"type":"object","additionalProperties":false,"required":["error","reason"],"properties":{"error":{"type":"string","const":"conflict"},"reason":{"type":"string","const":"regen_in_flight"}}},"RegenConflict":{"type":"object","additionalProperties":false,"required":["error","reason"],"properties":{"error":{"type":"string","const":"conflict"},"reason":{"type":"string","const":"not_done"}}},"RegenLegacyConflict":{"type":"object","additionalProperties":false,"required":["error","reason"],"properties":{"error":{"type":"string","const":"conflict"},"reason":{"type":"string","const":"legacy_inputs_unsupported"}}},"RegenSnapshotExpiredConflict":{"type":"object","additionalProperties":false,"required":["error","reason"],"properties":{"error":{"type":"string","const":"conflict"},"reason":{"type":"string","const":"garment_snapshot_expired"}}},"RegenLimit":{"type":"object","additionalProperties":false,"required":["error","used"],"properties":{"error":{"type":"string","const":"regen_limit"},"used":{"type":"integer","minimum":0}}},"Capacity":{"type":"object","additionalProperties":false,"required":["open","reason","queued","inFlight","heartbeatAt"],"description":" 접수 게이트의 현재 상태(0062 — 월 생성 쿼터 제거). 수량(남은 수량·부여량·사용량)은 내보내지 않는다. `open`은 하트비트 신선도·수용 중단·팩 만료만 반영한다.","properties":{"open":{"type":"boolean"},"reason":{"type":["string","null"]},"queued":{"type":"integer","minimum":0},"inFlight":{"type":"integer","minimum":0},"heartbeatAt":{"type":["string","null"]}}},"StatusReel":{"type":"object","additionalProperties":false,"description":" 0034 파생 릴(숏폼 릴)의 세대·신선도. `generation`은 그 릴을 만든 세대이고, `stale`는 그 세대가 지금 공개된 버전 세대보다 뒤처졌다는 뜻이다 — 재생성 뒤 새 세대의 릴이 아직 없으면 화면은 '이전 버전 기준'을 표시한다(거짓 최신 금지). 릴 행이 없거나 TTL 스윕으로 저장 키가 해제된 행은 `generation: null`·`stale: false`다. 서명 URL은 싣지 않는다.","required":["generation","stale"],"properties":{"generation":{"type":["integer","null"],"minimum":1},"stale":{"type":"boolean"}}},"StatusSummary":{"type":"object","additionalProperties":false,"required":["status","stage","holdReason","progress","expired","failureCode","failureMessage","productUrl","model","createdAt","generation","reel","selectedScene","statusUrl","metadataUrl","expiresAt","retentionExtended","canExtendRetention","pdp","versions","sceneChips","regeneratingScenes"],"properties":{"status":{"$ref":"#/components/schemas/SubmissionStatus"},"stage":{"$ref":"#/components/schemas/JobStage"},"holdReason":{"oneOf":[{"$ref":"#/components/schemas/HoldReason"},{"type":"null"}]},"progress":{"$ref":"#/components/schemas/StatusProgress"},"expired":{"type":"boolean"},"failureCode":{"oneOf":[{"$ref":"#/components/schemas/FailureCode"},{"type":"null"}],"description":"Present for every response and may be null. `null` means every scene of the\nlatest generation succeeded. With `failed` it is the terminal cause. With\n`done` it is the dominant failure code of scenes missing from the latest\ngeneration — a partial result, see `versions` — while the stage itself\nremains completed.\n"},"failureMessage":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Present for every response. `null` only when `failureCode` is null (no failure).\nWhen orch stored a specific sentence it is returned verbatim; otherwise the\ncontract sentence for the code is used. `failureCode=extract` (shop blocked\nor the product page could not be read) always carries the upload guidance\n(`상품 이미지를 직접 업로드해주세요`) instead of `null` — blocked shops are not\nbypassed with a host rewrite (JJO-991, JJO-2582).\n"},"productUrl":{"type":"string","description":"Empty string when the submission used staged image keys."},"model":{"type":"string","enum":["male1","female1","female2"]},"createdAt":{"type":"string"},"generation":{"type":"integer","minimum":1},"reel":{"$ref":"#/components/schemas/StatusReel"},"selectedScene":{"type":["string","null"]},"statusUrl":{"type":"string"},"metadataUrl":{"type":"string"},"expiresAt":{"type":"string","description":"결과 파일의 유효 만료 시각(ISO 8601). 접수 + 7일이며, 1회 연장이 확정되면\n+7일이 더해진다. 원장 행은 삭제되지 않고 이 시각이 지나면 파일·서명 URL만 가려진다.\n"},"retentionExtended":{"type":"boolean","description":"이 제출이 1회 연장을 이미 사용했는지."},"canExtendRetention":{"type":"boolean","description":"지금 연장할 수 있는지 — `done`이고, 만료 전이고, 아직 연장하지 않았을 때만 true다.\n화면 판정이며 집행은 `POST /api/status/{token}/extend`가 다시 한다.\n"},"sceneChips":{"type":"object","additionalProperties":false,"description":"확인 전에 고른 장소·포즈·프레이밍 칩(0080). `null`은 기본값이다 — 장소는 지금의\n장면 구성(카페 기본), 포즈·구도는 버전마다 다른 자동이다. 3버전 공통 배경과\n버전별 자세·구도 변주는 확인 화면 문구가 설명한다.\n`applied`는 그 값이 실제 생성 문장에 들어갔는지다. 룩 2·3(플레이트 경로)은 룩 1\n스틸을 편집해 만들어 칩을 쓰지 않으므로 `false`다 — 화면은 적용되지 않았음을 보인다.\n","required":["place","pose","framing","applied"],"properties":{"place":{"oneOf":[{"$ref":"#/components/schemas/ScenePlace"},{"type":"null"}]},"pose":{"oneOf":[{"$ref":"#/components/schemas/ScenePose"},{"type":"null"}]},"framing":{"oneOf":[{"$ref":"#/components/schemas/SceneFraming"},{"type":"null"}]},"applied":{"type":"boolean"}}},"regeneratingScenes":{"type":"array","description":"0081 장면 재생성 진행 중인 장면들(현재 세대). 제출 상태는 `done` 그대로이고 그\n장면의 version 잡만 살아 있다 — 버전 카드의 '다시 만드는 중'과 완료까지의\n자동 새로고침 근거다.\n","items":{"type":"string"}},"pdp":{"type":["object","null"],"description":"Derived detail-page export (0085). `null` means it has not been rendered yet for\nthis generation, was expired, or is not applicable. `status=ready` means the\nthumbnail/cover/detail PNGs and a self-contained HTML export exist; `status=failed`\nmeans only this derived item failed — versions and videos are unaffected. Signed\nURLs are never included in this summary.\n","additionalProperties":false,"required":["status","failureCode","ratios"],"properties":{"status":{"type":"string","enum":["ready","failed"]},"failureCode":{"type":["string","null"]},"ratios":{"type":"array","description":"Ratio slots the export provides: the 5:6 body image (`body_5x6`) and the 1:1\ncover image (`cover_1x1`). Widths/heights are the stored artifact sizes, not a\nmarketplace specification claim; an unmeasured (0) artifact is omitted rather\nthan invented. Empty when `status=failed`. Signed URLs are never included.\n","items":{"type":"object","additionalProperties":false,"required":["kind","width","height"],"properties":{"kind":{"type":"string","enum":["body_5x6","cover_1x1"]},"width":{"type":"integer","minimum":1},"height":{"type":"integer","minimum":1}}}}}},"versions":{"type":"array","description":"A partial completion is represented by status `done` with fewer than three versions.\nEntries contain metadata only; per-version `id` and signed `mp4Url` are not returned.\n","items":{"type":"object","additionalProperties":false,"required":["sceneTemplate","selected","provider","width","height","durationS","bytes","editNote","qualitySheet"],"properties":{"sceneTemplate":{"type":"string"},"selected":{"type":"boolean"},"provider":{"type":["string","null"]},"width":{"type":["number","null"]},"height":{"type":["number","null"]},"durationS":{"type":["number","null"]},"bytes":{"type":["number","null"]},"editNote":{"type":["string","null"]},"qualitySheet":{"oneOf":[{"type":"object","additionalProperties":false,"required":["axisAvg","colorScore","fitScore","detailScore","logoScore","deductions","judgedBy","judgedAt"],"properties":{"axisAvg":{"type":"number"},"colorScore":{"type":"number"},"fitScore":{"type":"number"},"detailScore":{"type":"number"},"logoScore":{"type":"number"},"deductions":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["axis","note"],"properties":{"axis":{"type":"string","enum":["color","fit","detail","logo"]},"note":{"type":"string"}}}},"judgedBy":{"type":"string"},"judgedAt":{"type":"string"}}},{"type":"null"}]}}}}}},"StillPacks":{"type":"object","additionalProperties":false,"required":["generation","status","stillPack","mallPacks"],"properties":{"generation":{"type":"integer","minimum":1},"status":{"type":"string","enum":["ready","unavailable"],"description":"`ready`면 `stillPack`이 있다. `unavailable`은 팩이 아직 없거나 TTL 스윕으로\n저장 키가 해제된 행이다 — 어댑터가 둘을 구분하지 않으므로 사유를 나누지 않는다.\n"},"stillPack":{"oneOf":[{"$ref":"#/components/schemas/StillPack"},{"type":"null"}]},"mallPacks":{"type":"array","items":{"$ref":"#/components/schemas/MallPack"}}}},"StillPack":{"type":"object","additionalProperties":false,"required":["url","imageCount","bytes","sourceWidth","sourceHeight","resizeFilter","presets"],"properties":{"url":{"type":"string","description":"1시간 서명 URL(비공개 버킷)"},"imageCount":{"type":"integer","minimum":0},"bytes":{"type":"integer","minimum":0},"sourceWidth":{"type":["integer","null"]},"sourceHeight":{"type":["integer","null"]},"resizeFilter":{"type":["string","null"]},"presets":{"type":"array","items":{"$ref":"#/components/schemas/StillPackPreset"}}}},"StillPackPreset":{"type":"object","additionalProperties":false,"required":["id","ratio","width","height"],"properties":{"id":{"type":"string"},"ratio":{"type":"string"},"width":{"type":"integer","minimum":1},"height":{"type":"integer","minimum":1}}},"MallPack":{"type":"object","additionalProperties":false,"required":["id","name","url","bytes","imageCount","docUrl","verifiedOn","preset"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"url":{"type":"string","description":"1시간 서명 URL(비공개 버킷)"},"bytes":{"type":"integer","minimum":0},"imageCount":{"type":"integer","minimum":0},"docUrl":{"type":"string","description":"그 규격을 밝힌 몰 공식 문서 URL(출처 없는 항목은 어댑터가 노출하지 않는다)"},"verifiedOn":{"type":"string","description":"공식 문서 확인일(YYYY-MM-DD)"},"preset":{"$ref":"#/components/schemas/MallPackPreset"}}},"MallPackPreset":{"type":"object","additionalProperties":false,"required":["id","label","format","width","height","maxBytes"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"format":{"type":"string"},"width":{"type":"integer","minimum":1},"height":{"type":"integer","minimum":1},"maxBytes":{"type":"integer","minimum":1}}},"LookSet":{"type":"object","additionalProperties":false,"required":["version","token","generatedAt","reel","carousel","snsCopy","looks"],"properties":{"version":{"type":"integer","const":1,"description":"응답 표면 버전(1 = 최초 공개 계약)"},"token":{"type":"string","description":"룩 세트 토큰(요청에 쓴 제출 토큰이 아니다)"},"generatedAt":{"type":"string","description":"응답 생성 시각(ISO 8601)"},"reel":{"$ref":"#/components/schemas/LookSetReel"},"carousel":{"type":"array","description":"4:5 풀블리드 캐러셀 카드(v7 0100) — 룩 순서(MON..FRI). 미생성은 빈 배열.","items":{"$ref":"#/components/schemas/LookSetCarouselCard"}},"snsCopy":{"description":"게시용 SNS 캡션 패키지(v7 0101). 비상업 기본값이며 dmKeyword·affiliateUrl은 승인 때만 채워진다. 미생성은 null.","oneOf":[{"$ref":"#/components/schemas/LookSetSnsCopy"},{"type":"null"}]},"looks":{"type":"array","items":{"$ref":"#/components/schemas/LookSetLook"}}}},"LookSetReel":{"type":"object","additionalProperties":false,"required":["ready","url","noBgmUrl"],"properties":{"ready":{"type":"boolean","description":"릴 서명 URL이 있으면 true — 세트 행의 reelUrl 하나로 판정한다"},"url":{"type":["string","null"],"description":"룩북 릴의 1시간 서명 URL. 미생성·실패 룩 있음은 null"},"noBgmUrl":{"type":["string","null"],"description":"BGM 없는 짝 사본(reel_nobgm.mp4, v7 0099)의 1시간 서명 URL. 미생성·TTL 만료는 null"}}},"LookSetCarouselCard":{"type":"object","additionalProperties":false,"required":["url","label"],"properties":{"url":{"type":"string","description":"카드 1시간 서명 URL(1080×1350, 4대5 풀블리드)"},"label":{"type":"string","description":"MON~FRI + 의상 키워드(예: MON · 오프화이트 니트)"}}},"LookSetSnsCopy":{"type":"object","additionalProperties":false,"required":["hook","caption","hashtags","saveCta","dmKeyword","affiliateUrl","aiDisclosure"],"properties":{"hook":{"type":"string"},"caption":{"type":"string"},"hashtags":{"type":"array","items":{"type":"string"}},"saveCta":{"type":"string"},"dmKeyword":{"type":["string","null"],"description":"승인(LOOKBOOK_FUNNEL_MONETIZATION_APPROVED=on)과 실제 값이 둘 다 있을 때만 채워진다 — 기본 null(fail-closed)"},"affiliateUrl":{"type":["string","null"],"description":"제휴 링크 — 승인과 실제 값이 둘 다 있을 때만 채워진다(기본 null)"},"aiDisclosure":{"type":"string","description":"AI 생성 고지 문장"}}},"LookSetLook":{"type":"object","additionalProperties":false,"required":["index","status","stillUrl","videoUrl"],"properties":{"index":{"type":"integer","minimum":1,"description":"룩 번호(1..N) — 세트 항목 순서 그대로"},"status":{"description":"룩의 제출 상태(저장 어휘 그대로). 제출 행을 찾지 못하면 null","oneOf":[{"$ref":"#/components/schemas/SubmissionStatus"},{"type":"null"}]},"stillUrl":{"type":["string","null"],"description":"대표 버전의 착장 스틸 1시간 서명 URL. 스틸이 없는 경로·TTL 만료는 null"},"videoUrl":{"type":["string","null"],"description":"대표 버전 mp4의 1시간 서명 URL. 미생성·TTL 만료는 null"}}},"ResultMetadata":{"type":"object","additionalProperties":false,"required":["schema","generatedAt","status","model","productUrl","createdAt","expired","aiGenerated","nonVTO","labels","versions"],"properties":{"schema":{"type":"string","const":"lookbook.result_metadata.v1"},"generatedAt":{"type":"string"},"status":{"$ref":"#/components/schemas/SubmissionStatus"},"model":{"type":"string","enum":["male1","female1","female2"]},"productUrl":{"type":"string"},"createdAt":{"type":"string"},"expired":{"type":"boolean"},"generation":{"type":"integer","minimum":1},"failureCode":{"oneOf":[{"$ref":"#/components/schemas/FailureCode"},{"type":"null"}]},"stylePreset":{"type":["string","null"]},"garmentSha256":{"type":["string","null"]},"aiGenerated":{"type":"boolean","const":true},"nonVTO":{"type":"boolean","const":true},"garmentMode":{"description":"그 세대 생성에 실제로 쓰인 모드(0045). reference=공급자가 인물+의류 참조, vto=합성 착장, fitshot=상품 착용샷을 첫 프레임으로 씀. 0045 이전 제출은 null — 모드를 모르는 과거 행을 추정하지 않는다.","type":["string","null"],"enum":["reference","vto","fitshot",null]},"labels":{"type":"object","additionalProperties":true},"versions":{"type":"array","items":{"type":"object","additionalProperties":true}}}},"BatchRequest":{"type":"object","additionalProperties":false,"required":["consent","stylePreset"],"properties":{"productUrls":{"type":"array","minItems":0,"maxItems":10,"description":"상품 링크 SKU — 지원 도메인·추출 차단은 `/api/submit`과 같은 판정이다.","items":{"type":"string"}},"imageKeys":{"type":"array","minItems":0,"maxItems":10,"description":"상품 이미지 SKU — `/api/submit/image`가 돌려준 스테이징 키.","items":{"type":"string"}},"model":{"$ref":"#/components/schemas/Model","description":"Optional — omitted applies the caller session's pinned persona as the batch's common model and is left out of each per-item submit so every SKU applies the same pinned default; without a pin the request is rejected as model_required. An explicit model always wins."},"consent":{"type":"boolean","const":true},"template":{"type":"string","maxLength":64},"name":{"type":"string","maxLength":60,"description":"배치 이름 — 컬렉션 ZIP의 최상위 폴더. 비면 날짜 기반 기본값이다."},"stylePreset":{"type":"string","enum":["daily","clean","product_ad","product_ugc","street","office"]},"scenePlace":{"oneOf":[{"type":"string","enum":["office_lobby","cafe","street","living_room","park"]},{"type":"null"}]},"scenePose":{"oneOf":[{"type":"string","enum":["standing","walking_past","door_push","turn_back","leaning"]},{"type":"null"}]},"sceneFraming":{"oneOf":[{"type":"string","enum":["full","upper","detail"]},{"type":"null"}]}}},"BatchItem":{"type":"object","additionalProperties":false,"required":["ok","sourceKind","label"],"properties":{"productUrl":{"type":"string"},"sourceKind":{"type":"string","enum":["link","image"]},"label":{"type":"string"},"ok":{"type":"boolean"},"token":{"type":"string"},"checkUrl":{"type":"string"},"statusUrl":{"type":"string"},"status":{"type":"integer"},"reason":{"type":"string"},"template":{"type":"string"}}},"BatchResponse":{"type":"object","additionalProperties":false,"required":["results","accepted","rejected","batchToken","batchUrl"],"properties":{"batchToken":{"type":"string"},"batchUrl":{"type":"string"},"results":{"type":"array","items":{"$ref":"#/components/schemas/BatchItem"}},"accepted":{"type":"integer","minimum":0},"rejected":{"type":"integer","minimum":0}}},"BatchBadRequest":{"type":"object","additionalProperties":false,"required":["error","reason"],"properties":{"error":{"type":"string","const":"bad_request"},"reason":{"type":"string","enum":["invalid_json","items_required","items_limit","image_key_invalid","product_url_invalid","model_required","consent_required","style_required","scene_chip_invalid","name_invalid"]}}},"BatchSceneChips":{"type":"object","additionalProperties":false,"required":["place","pose","framing"],"properties":{"place":{"oneOf":[{"type":"string","enum":["office_lobby","cafe","street","living_room","park"]},{"type":"null"}]},"pose":{"oneOf":[{"type":"string","enum":["standing","walking_past","door_push","turn_back","leaning"]},{"type":"null"}]},"framing":{"oneOf":[{"type":"string","enum":["full","upper","detail"]},{"type":"null"}]}}},"BatchCounts":{"type":"object","additionalProperties":false,"required":["total","accepted","rejected","done","failed","inProgress","pendingReview"],"properties":{"total":{"type":"integer","minimum":0},"accepted":{"type":"integer","minimum":0},"rejected":{"type":"integer","minimum":0},"done":{"type":"integer","minimum":0},"failed":{"type":"integer","minimum":0},"inProgress":{"type":"integer","minimum":0},"pendingReview":{"type":"integer","minimum":0,"description":"상품 이미지 확인 대기(pending_asset_check) SKU 수."}}},"BatchStatusItem":{"type":"object","additionalProperties":false,"required":["position","sourceKind","label","accepted","reason","submissionToken","submissionStatus","failureCode","stillCount","versionCount","expired","checkUrl","statusUrl","thumbnailUrl","stillPackUrl"],"properties":{"position":{"type":"integer","minimum":1},"sourceKind":{"type":"string","enum":["link","image"]},"label":{"type":"string"},"accepted":{"type":"boolean"},"reason":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"접수 거절 사유 코드(capacity_closed 등) — 표시 문구는 web copy가 좁힌다."},"submissionToken":{"oneOf":[{"type":"string"},{"type":"null"}]},"submissionStatus":{"oneOf":[{"type":"string","enum":["pending_asset_check","queued","generating","done","failed"]},{"type":"null"}]},"failureCode":{"oneOf":[{"$ref":"#/components/schemas/FailureCode"},{"type":"null"}]},"stillCount":{"type":"integer","minimum":0},"versionCount":{"type":"integer","minimum":0},"expired":{"type":"boolean"},"checkUrl":{"oneOf":[{"type":"string"},{"type":"null"}]},"statusUrl":{"oneOf":[{"type":"string"},{"type":"null"}]},"thumbnailUrl":{"oneOf":[{"type":"string"},{"type":"null"}]},"stillPackUrl":{"oneOf":[{"type":"string"},{"type":"null"}]}}},"BatchStatus":{"type":"object","additionalProperties":false,"required":["token","name","model","stylePreset","sceneChips","createdAt","counts","allDone","collectionZipReady","collectionZipUrl","items"],"properties":{"token":{"type":"string"},"name":{"type":"string"},"model":{"type":"string","enum":["male1","female1","female2"]},"stylePreset":{"type":"string"},"sceneChips":{"$ref":"#/components/schemas/BatchSceneChips"},"createdAt":{"type":"string"},"counts":{"$ref":"#/components/schemas/BatchCounts"},"allDone":{"type":"boolean","description":"접수된 SKU가 모두 종료(done|failed)됐는가. 거절된 SKU는 종료로 본다."},"collectionZipReady":{"type":"boolean"},"collectionZipUrl":{"oneOf":[{"type":"string"},{"type":"null"}]},"items":{"type":"array","items":{"$ref":"#/components/schemas/BatchStatusItem"}}}},"BatchCollectionConflict":{"type":"object","additionalProperties":false,"required":["error","reason"],"properties":{"error":{"type":"string","const":"conflict"},"reason":{"type":"string","enum":["batch_in_progress","pack_not_ready"]}}},"Healthz":{"type":"object","additionalProperties":false,"required":["ok","capacity"],"properties":{"ok":{"type":"boolean","const":true},"capacity":{"oneOf":[{"type":"object","additionalProperties":false,"required":["open","heartbeatAt","stale"],"properties":{"open":{"type":"boolean","const":true},"queued":{"type":"integer","minimum":0},"inFlight":{"type":"integer","minimum":0},"heartbeatAt":{"type":["string","null"]},"stale":{"type":"boolean"}}},{"type":"object","additionalProperties":false,"required":["open","heartbeatAt","stale"],"description":"접수가 닫힌 상태. `reason`은 닫힌 사유다(있으면 그대로 노출한다 — 예: `pack_expired`,\n`garment_input_unavailable`). 용량 조회 자체가 실패하면 별도 변형이 `reason: unavailable`을\n필수로 싣는다. 0062 이후 수량 키(`submissionsAvailable`)는 없다.\n","properties":{"open":{"type":"boolean","const":false},"heartbeatAt":{"type":["string","null"]},"stale":{"type":"boolean"},"reason":{"type":"string","description":"닫힌 사유(orch 하트비트 reason 그대로 — not_accepting·stale_heartbeat·pack_expired·garment_input_unavailable·maintenance 등). 용량 조회 자체가 실패한 경우는 아래 별도 변형(reason: unavailable, heartbeatAt: null)이 정본이고, 이 변형은 그 값을 허용하지 않는다","not":{"const":"unavailable"}}}},{"type":"object","additionalProperties":false,"required":["open","heartbeatAt","stale","reason"],"description":"용량 조회 실패(healthz 라우트가 예외를 잡은 경로). 하트비트를 읽지 못했으므로\n`heartbeatAt`은 null이고 사유는 `unavailable` 하나뿐이다 — 위의 닫힘 변형과 겹치지 않는다.\n","properties":{"open":{"type":"boolean","const":false},"heartbeatAt":{"type":"null"},"stale":{"type":"boolean"},"reason":{"type":"string","const":"unavailable"}}}]}}},"Health":{"type":"object","additionalProperties":false,"required":["ok","status","capacity"],"properties":{"ok":{"type":"boolean","const":true},"status":{"type":"string","const":"ok"},"capacity":{"oneOf":[{"type":"object","additionalProperties":false,"required":["open","heartbeatAt","stale"],"properties":{"open":{"type":"boolean","const":true},"queued":{"type":"integer","minimum":0},"inFlight":{"type":"integer","minimum":0},"heartbeatAt":{"type":["string","null"]},"stale":{"type":"boolean"}}},{"type":"object","additionalProperties":false,"required":["open","heartbeatAt","stale"],"properties":{"open":{"type":"boolean","const":false},"heartbeatAt":{"type":["string","null"]},"stale":{"type":"boolean"},"reason":{"type":"string","not":{"const":"unavailable"}}}},{"type":"object","additionalProperties":false,"required":["open","heartbeatAt","stale","reason"],"properties":{"open":{"type":"boolean","const":false},"heartbeatAt":{"type":"null"},"stale":{"type":"boolean"},"reason":{"type":"string","const":"unavailable"}}}]}}},"SubmitMineSubmission":{"type":"object","additionalProperties":false,"required":["token","status","createdAt"],"properties":{"token":{"type":"string"},"status":{"$ref":"#/components/schemas/SubmissionStatus"},"createdAt":{"type":"string"}}},"SubmitMineQuota":{"type":"object","additionalProperties":false,"required":["used","grants","available","reason"],"properties":{"used":{"type":"integer","minimum":0},"grants":{"type":"integer","minimum":0},"available":{"type":"integer","minimum":0},"reason":{"type":["string","null"]}}},"SubmitMineResponse":{"type":"object","additionalProperties":false,"required":["session","submissions","listFailed","quota","pinnedModel"],"properties":{"session":{"type":"boolean"},"submissions":{"type":"array","items":{"$ref":"#/components/schemas/SubmitMineSubmission"}},"listFailed":{"type":"boolean"},"quota":{"oneOf":[{"$ref":"#/components/schemas/SubmitMineQuota"},{"type":"null"}]},"pinnedModel":{"oneOf":[{"$ref":"#/components/schemas/Model"},{"type":"null"}]}}},"DashboardUnauthorized":{"type":"object","additionalProperties":false,"required":["error"],"properties":{"error":{"type":"string","const":"unauthorized"}}},"DashboardNotFound":{"type":"object","additionalProperties":false,"required":["error"],"properties":{"error":{"type":"string","const":"not_found"}}},"DashboardRateLimited":{"type":"object","additionalProperties":false,"required":["error"],"properties":{"error":{"type":"string","const":"rate_limited"}}},"DashboardInternalError":{"type":"object","additionalProperties":false,"required":["error"],"properties":{"error":{"type":"string","const":"internal_error"}}},"DashboardDanceReelRequest":{"type":"object","additionalProperties":false,"required":["lookToken","motionKey"],"properties":{"lookToken":{"type":"string","maxLength":128,"pattern":"\\S"},"motionKey":{"type":"string","maxLength":64,"pattern":"^dance-staging/[0-9a-f-]{36}\\.mp4$"},"prompt":{"type":"string","maxLength":500,"pattern":"\\S"}}},"DashboardDanceReelCreated":{"type":"object","additionalProperties":false,"required":["token","statusUrl"],"properties":{"token":{"type":"string","maxLength":64,"pattern":"\\S"},"statusUrl":{"type":"string","maxLength":200,"pattern":"\\S"}}},"DashboardDanceReel":{"type":"object","additionalProperties":false,"required":["status","reelUrl","failureCode"],"properties":{"status":{"type":"string","enum":["queued","generating","done","failed"]},"reelUrl":{"oneOf":[{"type":"string"},{"type":"null"}]},"failureCode":{"oneOf":[{"type":"string"},{"type":"null"}]}}},"DashboardDanceReelBadRequest":{"type":"object","additionalProperties":false,"required":["error","reason"],"properties":{"error":{"type":"string","const":"bad_request"},"reason":{"type":"string","enum":["invalid_json","invalid_look_token","invalid_motion_key","invalid_prompt"]}}},"DashboardDanceReelLookNotDone":{"type":"object","additionalProperties":false,"required":["error"],"properties":{"error":{"type":"string","const":"look_not_done"}}},"DashboardCreateLookSetRequest":{"type":"object","additionalProperties":false,"required":["consent","looks"],"properties":{"model":{"$ref":"#/components/schemas/Model","description":"Optional — omitted applies the caller session's pinned persona; without a\npin the request is rejected as model_required. An explicit model always wins."},"consent":{"type":"boolean","const":true},"looks":{"type":"array","minItems":2,"maxItems":6,"items":{"description":"Exactly one source per look; imageKeys are candidate photographs of one product.","oneOf":[{"type":"object","additionalProperties":false,"required":["productUrl","stylePreset"],"properties":{"productUrl":{"type":"string","pattern":"\\S"},"stylePreset":{"$ref":"#/components/schemas/StylePreset"}}},{"type":"object","additionalProperties":false,"required":["imageKeys","stylePreset"],"properties":{"imageKeys":{"type":"array","minItems":1,"maxItems":3,"uniqueItems":true,"items":{"type":"string","maxLength":200,"pattern":"^staging/[A-Za-z0-9_-][A-Za-z0-9._-]*(?:/[A-Za-z0-9_-][A-Za-z0-9._-]*)*$"}},"stylePreset":{"$ref":"#/components/schemas/StylePreset"}}}]}},"bgmPreset":{"$ref":"#/components/schemas/ReelBgmPreset"},"shutterSfx":{"type":"boolean","default":false,"description":"컷 경계 셔터 효과음 — 생략하면 false(기존 동작)."},"locale":{"$ref":"#/components/schemas/ReelLocale"}}},"DashboardCreateLookSetBadRequest":{"oneOf":[{"type":"object","additionalProperties":false,"required":["error","reason"],"properties":{"error":{"type":"string","const":"bad_request"},"reason":{"type":"string","enum":["invalid_json","look_count_out_of_range","product_url_required","mixed_input_sources","invalid_image_key","unsupported_domain","extract_blocked","style_required","model_required","consent_required","invalid_bgm_preset","invalid_shutter_sfx","invalid_locale"]},"lookIndex":{"type":"integer","minimum":1}}},{"type":"object","additionalProperties":false,"required":["error"],"properties":{"error":{"type":"string","const":"model_unavailable"}}}]},"DashboardCapacityClosed":{"type":"object","additionalProperties":false,"required":["error","reason","createdLooks"],"properties":{"error":{"type":"string","const":"capacity_closed"},"reason":{"type":["string","null"]},"createdLooks":{"type":"integer","minimum":0}}},"DashboardCreatedLook":{"type":"object","additionalProperties":false,"required":["lookIndex","submissionToken","stylePreset"],"properties":{"lookIndex":{"type":"integer","minimum":1},"submissionToken":{"type":"string"},"stylePreset":{"$ref":"#/components/schemas/StylePreset"}}},"DashboardLookSetCreated":{"type":"object","additionalProperties":false,"required":["token","model","lookCount","submissionTokens","looks","dashboardUrl","bgmPreset","shutterSfx","locale"],"properties":{"token":{"type":"string"},"model":{"$ref":"#/components/schemas/Model"},"lookCount":{"type":"integer","minimum":2},"submissionTokens":{"type":"array","items":{"type":"string"}},"looks":{"type":"array","items":{"$ref":"#/components/schemas/DashboardCreatedLook"}},"dashboardUrl":{"type":"string"},"bgmPreset":{"$ref":"#/components/schemas/ReelBgmPreset"},"shutterSfx":{"type":"boolean"},"locale":{"$ref":"#/components/schemas/ReelLocale"}}},"DashboardLookSetStatus":{"type":"string","enum":["draft","generating","done","failed"]},"DashboardLookSetSummary":{"type":"object","additionalProperties":false,"required":["token","status","lookCount","createdAt","reelUrl"],"properties":{"token":{"type":"string"},"status":{"$ref":"#/components/schemas/DashboardLookSetStatus"},"lookCount":{"type":"integer"},"createdAt":{"type":"string"},"reelUrl":{"type":["string","null"]}}},"DashboardLookSetList":{"type":"object","additionalProperties":false,"required":["lookSets"],"properties":{"lookSets":{"type":"array","items":{"$ref":"#/components/schemas/DashboardLookSetSummary"}}}},"DashboardLookVersion":{"type":"object","additionalProperties":false,"required":["sceneTemplate","selected","provider","width","height","durationS","bytes","mp4Url","stillUrl"],"properties":{"sceneTemplate":{"type":"string"},"selected":{"type":"boolean"},"provider":{"type":["string","null"]},"width":{"type":["integer","null"]},"height":{"type":["integer","null"]},"durationS":{"type":["number","null"]},"bytes":{"type":["integer","null"]},"mp4Url":{"type":["string","null"]},"stillUrl":{"type":["string","null"]}}},"DashboardLookSubmission":{"type":"object","additionalProperties":false,"required":["status","model","stylePreset","failureCode","failureMessage","expired","versions"],"properties":{"status":{"$ref":"#/components/schemas/SubmissionStatus"},"model":{"$ref":"#/components/schemas/Model"},"stylePreset":{"type":["string","null"]},"failureCode":{"oneOf":[{"$ref":"#/components/schemas/FailureCode"},{"type":"null"}]},"failureMessage":{"type":["string","null"]},"expired":{"type":"boolean"},"versions":{"type":"array","items":{"$ref":"#/components/schemas/DashboardLookVersion"}}}},"DashboardLookItem":{"type":"object","additionalProperties":false,"required":["lookIndex","submissionToken","submission"],"properties":{"lookIndex":{"type":"integer","minimum":1},"submissionToken":{"type":"string"},"submission":{"oneOf":[{"$ref":"#/components/schemas/DashboardLookSubmission"},{"type":"null"}]}}},"DashboardLookSet":{"type":"object","additionalProperties":false,"required":["token","status","lookCount","stylePreset","bgmPreset","shutterSfx","locale","createdAt","reelUrl","reelNoBgmUrl","carousel","snsCopy","includedLooks","excludedLooks","excludedReason","looks"],"properties":{"token":{"type":"string"},"status":{"$ref":"#/components/schemas/DashboardLookSetStatus"},"lookCount":{"type":"integer"},"stylePreset":{"type":["string","null"]},"bgmPreset":{"$ref":"#/components/schemas/ReelBgmPreset"},"shutterSfx":{"type":"boolean"},"locale":{"$ref":"#/components/schemas/ReelLocale"},"createdAt":{"type":"string"},"reelUrl":{"type":["string","null"]},"reelNoBgmUrl":{"type":["string","null"],"description":"BGM 없는 짝 사본(reel_nobgm.mp4, v7 0099)의 1시간 서명 URL. 미생성·TTL 만료는 null"},"carousel":{"type":"array","description":"4:5 풀블리드 캐러셀 카드(v7 0100) — 미생성은 빈 배열","items":{"$ref":"#/components/schemas/LookSetCarouselCard"}},"snsCopy":{"description":"게시용 SNS 캡션 패키지(v7 0101) — 미생성은 null","oneOf":[{"$ref":"#/components/schemas/LookSetSnsCopy"},{"type":"null"}]},"includedLooks":{"description":"룩북 릴에 실제로 들어간 룩 번호(원래 look_index = LOOK 칩 번호).","type":"array","items":{"type":"integer"}},"excludedLooks":{"description":"부분 조립에서 릴에 빠진 룩 번호 — 비어 있으면 전 룩이 들어갔다.","type":"array","items":{"type":"integer"}},"excludedReason":{"description":"제외 사유의 사람용 요약(예: LOOK 2 실패). 없으면 null.","type":["string","null"]},"looks":{"type":"array","items":{"$ref":"#/components/schemas/DashboardLookItem"}}}},"DashboardRecentSubmission":{"type":"object","additionalProperties":false,"required":["token","status","createdAt"],"properties":{"token":{"type":"string","maxLength":9},"status":{"type":"string"},"createdAt":{"type":"string"}}},"DashboardSubmissionList":{"type":"object","additionalProperties":false,"required":["submissions"],"properties":{"submissions":{"type":"array","items":{"$ref":"#/components/schemas/DashboardRecentSubmission"}}}},"DashboardStatusCounts":{"type":"object","additionalProperties":false,"required":["pending_asset_check","queued","generating","done","failed"],"properties":{"pending_asset_check":{"type":"integer","minimum":0},"queued":{"type":"integer","minimum":0},"generating":{"type":"integer","minimum":0},"done":{"type":"integer","minimum":0},"failed":{"type":"integer","minimum":0}}},"DashboardSpend":{"type":"object","additionalProperties":false,"required":["units","rows","truncated"],"properties":{"units":{"type":"number","minimum":0},"rows":{"type":"integer","minimum":0},"truncated":{"type":"boolean"}}},"DashboardCapacity":{"type":"object","additionalProperties":false,"required":["open","reason","heartbeatAt"],"properties":{"open":{"type":"boolean"},"reason":{"type":["string","null"]},"heartbeatAt":{"type":["string","null"]},"provider":{"type":["string","null"]},"queued":{"type":"integer","minimum":0},"inFlight":{"type":"integer","minimum":0}}},"DashboardSummary":{"type":"object","additionalProperties":false,"required":["capacity","statusCounts","sampled","recent","spend","regen"],"properties":{"capacity":{"$ref":"#/components/schemas/DashboardCapacity"},"statusCounts":{"$ref":"#/components/schemas/DashboardStatusCounts"},"sampled":{"type":"integer","minimum":0},"recent":{"type":"array","items":{"$ref":"#/components/schemas/DashboardRecentSubmission"}},"spend":{"$ref":"#/components/schemas/DashboardSpend"},"regen":{"$ref":"#/components/schemas/DashboardRegen"}}},"DashboardRegen":{"type":"object","additionalProperties":false,"required":["sampled","sceneRegens","reasons"],"description":"0081 버전 반려(장면 재생성) 사유 집계 — 최근 regen_log 표본이다(AC-4).","properties":{"sampled":{"type":"integer","minimum":0,"description":"집계 표본 행 수(최근 순 상한까지)."},"sceneRegens":{"type":"integer","minimum":0,"description":"표본 중 장면 단위 재생성 건수."},"reasons":{"type":"object","additionalProperties":{"type":"integer","minimum":0},"description":"반려 사유 코드별 건수 — 한 요청이 여러 사유를 가지면 각각 +1."}}},"DashboardEnvelopeRow":{"type":"object","additionalProperties":true},"DashboardEnvelopes":{"type":"object","additionalProperties":false,"required":["status","ledger","workflow_runs","workflow_steps"],"properties":{"status":{"type":"array","items":{"$ref":"#/components/schemas/DashboardEnvelopeRow"}},"ledger":{"type":"array","items":{"$ref":"#/components/schemas/DashboardEnvelopeRow"}},"workflow_runs":{"type":"array","items":{"$ref":"#/components/schemas/DashboardEnvelopeRow"}},"workflow_steps":{"type":"array","items":{"$ref":"#/components/schemas/DashboardEnvelopeRow"}}}}}}}