diff --git a/.env.example b/.env.example index 425aa54..f7773e5 100644 --- a/.env.example +++ b/.env.example @@ -5,6 +5,13 @@ DATA_GO_KR_SERVICE_KEY= # 행사 수집(7일마다) 완료 알림 — Microsoft Teams Workflows 수신 webhook. 비우면 보내지 않는다. TEAMS_WEBHOOK_URL= +# 관리자 도구(admin/)가 카드뉴스를 올릴 때 쓰는 비밀값. 백엔드와 admin 이 같은 값을 쓴다. 비우면 관리자 API 는 막힌다. +ADMIN_API_KEY= +# 인스타그램 올리기 (프로페셔널 계정 + Meta 앱 'Instagram API with Instagram Login'). 비우면 '인스타에 올리기'가 막힌다. +INSTAGRAM_ACCESS_TOKEN= +INSTAGRAM_USER_ID= +# 인스타가 카드 이미지를 받아 갈 공개 주소 +PUBLIC_BASE_URL=https://weather.o2o.kr IMAGE_PROXY_HOSTS=tong.visitkorea.or.kr,www.culture.go.kr,culture.seoul.go.kr # ── 백엔드: DB·Redis (네이티브 실행 기준. compose 안에서는 compose.yaml 이 host·port 를 덮어쓴다) @@ -20,6 +27,8 @@ PORT=9810 # ── 백엔드: 로그인 토큰 서명 키. 비우면 로그인이 동작하지 않는다 # 생성: python -c "import secrets; print(secrets.token_urlsafe(48))" +# 구글 로그인 OAuth 클라이언트 ID (console.cloud.google.com/apis/credentials, 웹 애플리케이션) +GOOGLE_CLIENT_ID= JWT_ACCESS_SECRET= JWT_REFRESH_SECRET= diff --git a/.gitignore b/.gitignore index d98028b..e3895c2 100644 --- a/.gitignore +++ b/.gitignore @@ -15,6 +15,7 @@ venv/ # 생성물: python backend/scripts/export_openapi.py 로 다시 만든다 backend/openapi.json +backend/uploads/ # 도구 캐시·설정 (impeccable 디자인 도구) .impeccable/ diff --git a/PRODUCT.md b/PRODUCT.md new file mode 100644 index 0000000..eb2913a --- /dev/null +++ b/PRODUCT.md @@ -0,0 +1,25 @@ +# Product + + + +## Platform + +web + +## Users + +휴대폰으로 오늘·내일 뭘 할지 정하려는 2040 일반인. 아침이나 외출 전에 잠깐 열어 봐요. + +## Product Purpose + +동네(구) 날씨를 '빨래각·소맥각' 같은 활동 점수로 바꿔 보여 줘요. 피드로 훑어보고 친구에게 보내요. + +## Positioning + +날씨 숫자가 아니라 '지금 ○○하기 좋은지'를 알려 주고, 귀엽고 공유하고 싶은 카드로 보여 줘요. + +## Constraints + +- 모바일 웹 우선(토스 미니앱, 홈 화면 추가). +- 로그인은 글쓰기에만 요구해요. +- 화면 문구는 반말 없는 '해요'체예요. diff --git a/TODO.md b/TODO.md index 78986d4..db56ada 100644 --- a/TODO.md +++ b/TODO.md @@ -15,6 +15,63 @@ | [x] | 노을 판정 확인 방법·SEO 방식 — 추천안을 아래 [결정 필요] 행에 정리 | 출시 전 | | | [ ] | `release/launch-1008` → main 병합, 킹서버 배포, 시드 재적재·`feed:*` 캐시 삭제, 운영 JWT 비밀키 교체 (운영 영향, 확인 받고) | 출시 | `deploy.sh`, `backend/scripts/load_seed.py` | +## 월요일 논의 (받은 피드백) + +| 상태 | 할 일 | 이유 | 관련 파일 | +|---|---|---|---| +| [ ] | **[결정 필요]** 사용자 포스팅(인스타식) — 지금 포스트는 스케줄러가 만든 것만 있음. 정할 것: 올릴 수 있는 것(사진·글·각 점수 첨부), 로그인 필수 여부, 피드 노출 위치·순서, 신고·숨김, 사진 저장소 | 피드백. 기존 '커뮤니티' 행과 합쳐 논의 | `backend/services/feed_service.py`, `backend/services/reaction_service.py` | +| [ ] | **[결정 필요]** 로그인 없이 좋아요·댓글 — 지금은 좋아요·댓글·댓글 좋아요 모두 로그인 필수, 댓글 보기만 비로그인 가능. 정할 것: 중복 좋아요 막는 기준(기기 ID·IP), 비로그인 댓글 이름 표시(익명 n), 지우기 권한, 도배 방지 | 피드백 | `backend/router/v1/reaction/reaction.py:30`, `:71`, `:87` | +| [ ] | **[결정 필요]** 로그인하면 더 되는 것 정의 — 지금 로그인 전용은 저장(북마크)·닉네임·내 정보뿐. 위 두 건이 정해지면 후보: 포스팅, 내 글·댓글 모아 보기, 지역 기억(기기 바뀌어도), 알림 | 피드백 | `backend/router/v1/auth/account.py`, `backend/router/v1/reaction/reaction.py:40` | + +## 10/20 회의 (최미나 담당, `docs/meetings/2026-10-20.md`) + +| 상태 | 할 일 | 이유 | 관련 파일 | +|---|---|---|---| +| [x] | 오늘의 각을 일반 포스트 크기 카드로 + 공유 (금일 핵심) — 순위 5개 카드, 히어로도 포스트 틀, 보내기만 있음(좋아요·댓글은 서버에 포스트로 저장해야 붙음), TOP 5 띠 뺌 | 10/20 회의 결정 | `frontend/src/b/TodayPage.tsx`, `frontend/src/b/Sheets.tsx` | +| [ ] | '+' 버튼 포스팅 → 오늘 피드에 섞기. 이야기 탭 없앰, 피드 위 글쓰기 칸 상시, 사람 글은 운영 포스트 3개마다 1개(방금 쓴 글은 글쓰기 칸 아래). 남은 것: 이미지 올리기, 노출 방식 대표 보고(보고서 https://claude.ai/artifact/A7ELGoAy17cnZXzhuvdF5b 추천은 캐러셀) | 10/20 회의 결정 | `frontend/src/b/talk.tsx`, `frontend/src/b/TodayPage.tsx` | +| [x] | 피드 순서: 히어로 → 오늘의 각 → 포스트. 주말 날씨·행사·노을 앞으로, 각·공기·자외선·상식 뒤로 | 10/20 회의 | `backend/services/feed_service.py` | +| [ ] | 시간대 지정 각(야장·별보기)을 시간 밖에도 뒤쪽에 노출, 억새각 노출 조건 확인 | 10/20 회의 (담당 김성경 확인 필요) | `backend/services/index_service.py`, `backend/seed/index_definition.json` | +| [ ] | 단풍 지도·단풍 포스트, 새 각 — 야구각 문장(숫자 뺌)만 반영. 농구·배구·제철 수산물각 초안은 보류(scratchpad `new_gak_draft.json`) | 10/20 회의 | `backend/seed/index_definition.json`, `backend/seed/article.json` | +| [x] | 불쾌지수 항상 표시 | 10/20 회의 결정 (10/8도 결정) | `backend/services/hero_stats.py:70` | +| [x] | 나만의 각을 '이름+조건(기온·비·바람·미세먼지·습도·시간대 수치) 저장'으로 바꿈 — 섞기 방식 대체, 점수는 서버가 그 동네 예보로 계산(조건에서 멀수록 깎기), 받은 링크에 조건을 담아 친구 동네 점수로. 피드에 올려 좋아요는 아직 | 10/20 회의 결정 (조합 방식 대체) | `frontend/src/b/myGak.tsx` | +| [x] | 비로그인 좋아요·댓글·공유 허용, 포스팅만 로그인. 중복 막기는 IP 기준(사용자 결정 10/20). 댓글도 로그인 없이(10/21 회의 결정) — 아래 10/21 행으로 이어짐 | 10/20 회의 결정 | `backend/router/v1/reaction/reaction.py` | +| [ ] | 구글·토스 로그인, 앱인토스 정산 계좌 오류 토스 문의 — 구글 로그인 됨(`4e9b0ba`), 토스 문의 보냄(답변 대기). 남은 것은 아래 10/21 행 | 10/20 회의 결정 | `backend/router/v1/auth/account.py` | +| [ ] | 사람 글 사진 올리기 — 보여 주기(talk.image)는 됨, 올리기는 패키지 설치 확인 후(python-multipart·Pillow, 위치 정보 지우기) | 10/20 회의 결정 | `backend/router/v1/talk/talk.py`, `frontend/src/b/talk.tsx` | +| [ ] | 날씨 타로·오늘 날씨 코디 기획 (옷차림 [보류] 행과 합침). 타로는 운세 주제별 귀여운 각 이름으로 — 예: 애정 날씨 타로 → '다툼구름각' (사용자 10/21) | 10/20 회의 | | +| [ ] | **[결정 필요]** 피드 각 카드에서 빨래각 같은 평이한 각 빼기 — 피드 각 3개는 전체 순위로 골라 빨래각(priority 1)이 들어감. priority를 낮추면 히어로·각 탭 순위도 바뀜. priority 조정 vs 피드에선 is_fun 각 먼저 | 피드 순서 작업 중 발견 | `backend/seed/index_definition.json`, `backend/services/feed_service.py` | +| [ ] | 오늘의 각 카드 순위와 점수 순서가 다름(1위 83점, 2위 97점) — 순위에 중요도를 섞어서. 카드로 보이니 어색함 | 카드화 중 발견 | `backend/services/index_service.py` | +| [ ] | AdSense 게재 — 피드 포스트 사이 인피드 광고(포스트 틀, '광고' 표시, 몇 개마다 넣을지 결정). 게시자 ID(ca-pub-…) 받은 뒤 진행, `public/ads.txt`·`privacy.html` 광고 쿠키 고지·`docs/콘텐츠_설계서.md:11` '광고 없음' 수정 같이 | 사용자 결정 10/21, ID 없음 (https://adsense.google.com/start/) | `frontend/index.html`, `frontend/src/b/TodayPage.tsx` | +| [ ] | 테스트 실패 2건: `test_feed.py::test_feed_assembles_hero_stories_posts_and_bands`(각 57개, 기대 40 — 커밋 전 각 추가 영향), `test_weather_today.py:60`(날짜 따라 18시 아이콘 moon) | 피드 순서 작업 중 발견 | `backend/tests/` | + +## 10/21 회의 (`docs/meetings/2026-10-21.md`) + +| 상태 | 할 일 | 이유 | 관련 파일 | +|---|---|---|---| +| [x] | 공유에 링크 반드시 포함 — 공유창에 고정 URL을 url 칸으로 넘기고 링크도 클립보드에 복사(이미지만 받는 앱 대비) (금일 핵심) | 10/21 회의 결정 | `frontend/src/b/Sheets.tsx:564` | +| [x] | 히어로는 지금 형태 유지 + 좋아요·댓글 추가 (공유는 원래 있음). 서버에 히어로용 포스트(PostType.HERO)를 날마다 시도별로 만듦 | 10/21 회의 결정 | `frontend/src/b/TodayPage.tsx`, `backend/services/feed_service.py` | +| [x] | 오늘의 각부터 모든 카드에 좋아요·댓글·공유 — 오늘의 각 카드에 붙임(PostType.TODAY_GAK). 단풍 지도 카드는 아직 보내기만 (금일 핵심) | 10/21 회의 결정 | `frontend/src/b/TodayPage.tsx`, `backend/services/reaction_service.py` | +| [x] | 로그인은 포스팅할 때만, 댓글은 로그인 없이 — 이름 '마포구 익명'(사용자 결정 10/21), 링크·전화번호 막기, IP당 하루 20개, 지우기는 같은 IP (금일 핵심) | 10/21 회의 결정 | `backend/router/v1/reaction/reaction.py` | +| [x] | 웹 로그인 구글로 통일 — 로그인 창에서 아이디·비밀번호 칸 뺌. 서버 `/v1/auth/signup`·`/login`은 테스트 6개 파일이 계정 만들 때 써서 남김 (금일 핵심) | 10/21 회의 결정 | `frontend/src/b/Sheets.tsx`, `backend/router/v1/auth/account.py:25` | +| [ ] | 모바일에서 창이 닫히지 않는 오류 — 어느 창인지 확인 필요 (금일 핵심) | 10/21 회의 | `frontend/src/b/Sheets.tsx` | +| [x] | '내일 날씨' — 별도 카드 대신 히어로에 오늘/내일 스위치(사용자 결정 10/21). 내일은 시간대별 날씨 점수·기온, 최저·최고, 습도, 내일 1위 각 | 10/21 회의 결정 | `frontend/src/b/TodayPage.tsx` | +| [ ] | 넣을 수 있는 지역은 모두 날씨 페이지 추가 (지금 274개) | 10/21 회의 결정 | `backend/seed/region.csv` | +| [x] | 단풍 지도 UI 수정 — 단풍 그림 지도(Codex), 카카오처럼 단계 3개(단풍 전·첫 단풍·절정)와 단풍잎·은행잎 아이콘, 명소 65곳(단풍 39·은행 26) | 10/21 회의 후속, 사용자 10/21 | `frontend/src/b/foliageMap.tsx`, `frontend/seo/foliage_2026.json` | +| [ ] | 단풍 지도 '첫 단풍'은 절정 14일 전부터로 추정(발표에 시작일 없음). 예측 지점이 아닌 명소 32곳은 가장 가까운 예측 지점 날짜를 빌림(예: 남산공원·창덕궁 ← 수리산). 실제 관측과 다를 수 있음 | 사용자 결정 10/21 | `frontend/seo/foliage_2026.json` | +| [ ] | 토스 미니앱 최신 버전 재등록 — 웹이 바뀌면 자동 반영 안 됨 | 10/21 회의 | | +| [ ] | 유튜브 숏폼 자동화 진행 방안 협의 (김성경, 10/22) | 10/21 회의 | | +| [ ] | 인스타 운영 관리자 페이지(자동 게시 전 승인 메일) + 초기 이야기형 피드(각 100개·빨래각·소맥각·점수 산정법) | 10/21 회의 | | +| [ ] | 레이어 공유 아이디어 — 사용자 사진 위에 날씨각 정보를 얹어 공유(캐시워크식), 앱 기능으로 | 10/21 회의 (황 본부장 의견, 대표 방향) | | +| [ ] | iOS 개발자 계정 — 소장에게 기존 계정 확인, 어려우면 회사 계정 새로 만들기. 안드로이드 앱 계속 준비 | 10/21 회의 결정 | | +| [ ] | 앱인토스 정산 계좌 법인 계좌로 등록(대표) 후 토스 로그인 연동 가입 | 10/21 회의 결정 | | +| [ ] | '○○구 내일 날씨' 검색 태깅 — 스위치 뒤 내용은 눌러야 보여 구글이 읽는지 공식 문서로 확인 필요. 구 페이지(SEO)에 내일 기온·습도 넣는 안과 비교 | 10/21 회의 결정 | `backend/router/v1/seo/` | +| [x] | **운영 DB 반영(10/21 배포 때 init.sql로 적용 확인)** — 댓글 표 `user_id` NULL 허용, `ip_hash`·`region_name` 칸, `idx_comment_ip` (init.sql에 추가, 로컬만 적용). 배포 전에 운영에 ALTER 실행 (운영 영향, 확인 받고) | 익명 댓글 | `backend/postgres-init/init.sql` | +| [ ] | **[결정 필요]** 새 화면 문구 검토: '보냈어요. 링크도 복사해 뒀어요', '글쓰기는 로그인한 뒤에 할 수 있어요.', '오늘'/'내일', '내일 낮 날씨 점수', '내일은 ○○각!'/'내일은 쉬어 가요', '최저'/'최고'/'습도', 익명 이름 '마포구 익명', 단풍 지도 '단풍 전'/'첫 단풍'/'절정'/'단풍'/'은행', '가까운 예측 지점 날짜예요', '지금 절정 ○곳: … 외' | 화면 문구 규칙 | `frontend/src/b/TodayPage.tsx`, `frontend/src/b/Sheets.tsx` | +| [ ] | 단풍 지도 페이지(`/foliage`) 검색 등록 — 사이트맵 추가, 미리 그린 HTML(제목·설명), 공식 문서로 확인 후 | 페이지 따로 만든 이유(공유·검색), 사용자 10/23 | `backend/services/seo_service.py`, `frontend/src/b/FoliagePage.tsx` | +| [ ] | 단풍 지도 그림 고해상도로 다시(지금 1024px라 확대하면 흐림) — Codex | 단풍 지도 페이지 확대 | `frontend/public/foliage/korea-map.webp` | +| [ ] | **[결정 필요]** 단풍 지도 페이지 문구: '단풍 절정'/'은행 절정', '지도 크게 보기 ›', '지금 절정'/'곧 절정'/'아직'/'절정 지남', '전체'/'단풍'/'은행', '절정 예상'/'가까운 지점 날짜', '링크를 복사했어요' | 화면 문구 규칙 | `frontend/src/b/FoliagePage.tsx`, `frontend/src/b/foliageMap.tsx` | +| [ ] | 익명 댓글이 링크·하루 제한에 걸려도 '댓글을 올리지 못했어요'만 나옴 — 이유별 안내 | 익명 댓글 작업 중 발견 | `frontend/src/b/Sheets.tsx` | +| [ ] | 매일 대표에게 진행 보고 (미완료 포함) | 10/21 회의 결정 | | + ## 진행 순서 결정이 필요 없는 것부터, 사용자 눈에 틀린 정보가 보이는 것 → 기능 → 다듬기 순. @@ -120,6 +177,9 @@ | [x] | 히어로 두 칸을 상황별로 고름(비→미세먼지→자외선→일교차→체감→불쾌지수, 모자라면 기본값), 아이콘·색도 상태별 (시안 A, 사용자 결정). 히어로 내용 전체 다시 보기 — 아이콘이 뜻과 안 맞음: 불쾌지수에 온도계(불쾌지수는 기온+습도), '지금 비'는 비가 안 와도 우산. 칸마다 무엇을 보여줄지(불쾌지수가 필요한지 포함)부터 다시 정하기 | 사용자 지적 | `frontend/src/b/TodayPage.tsx` (`HeroStat`) | | [x] | 검색 노출 1단계: 메타는 `index.html` 하나로 유지 + canonical, `robots.txt`·`sitemap.xml`(메인 한 줄) 추가 — 탭별 HTML로 나누는 안은 효과(탭별 공유 미리보기·탭별 색인)가 작아 보류. 도메인 `weather.o2o.kr` 고정이라 바뀌면 두 파일도 수정 | 10/8 논의 | `frontend/index.html`, `frontend/public/robots.txt`, `frontend/public/sitemap.xml` | | [ ] | **[보류]** AEO·일반 검색어 유입 — 본문이 HTML에 없어 네이버 Yeti·AI 크롤러(GPTBot 등)는 메타만 읽고, 일반 검색어("세차하기 좋은 날씨" 등)는 메타만으로 순위에 못 듦. 지금 탭 내용은 지역별·매일 바뀌는 값이라 색인돼도 금방 틀림. 하려면 검색어용 페이지(각 기준·월별 노을 시간·노을 명소·계절 글·월별 행사)를 새로 만들어야 함 → 기획 결정 필요. 계절 이야기 글은 지역 무관이라 글마다 주소만 붙이면 바로 후보 | 10/8 논의 | [검색 유입 기획](https://claude.ai/artifact/SKz9SipYyguERGF8weUpZs), [검색어 리서치](https://claude.ai/artifact/Eu5ax3DbR9SdnhKdMRzE3p) | +| [ ] | 구로 나뉜 13개 시의 구마다 자기 주소(`/today/gyeonggi/seongnam/bundang`, 39장) — 운영 반영(`96cbd19`, 10/20). 남은 것: 서치 콘솔·서치어드바이저에 sitemap 다시 제출 | 구글 '분당구 오늘 날씨' 상위는 모두 구 단위 페이지, 우리는 성남시 한 장에 묶여 분당구 주소가 없었음 | `backend/scripts/gen_region_pages.py`, `frontend/vite.config.ts`, `frontend/nginx.conf`, `backend/router/v1/seo/seo.py` | +| [ ] | **[보류]** 날씨별 옷차림 콘텐츠 — 후보: ① `/outfit` 기온별 옷차림 고정 페이지 ② 지역 페이지·오늘 탭에 '오늘 옷차림' 한 줄. 형태 미정 | 구글 트렌드 '옷차림'≈'노을'(세차의 0.8배), 네이버 자동완성 '기온별 옷차림'·'20도 옷차림'·'서울 오늘 날씨 옷차림'. 지금은 주말 탭·히어로의 '겉옷' 팁뿐 | `docs/검색어_인기_리서치.md`, `backend/services/weekend_plan.py` | +| [ ] | 서치 콘솔: 홈 URL 검사(구조화 데이터 '날씨각' 인식 확인)·재크롤링 요청, 색인 생성 보고서에서 지역 페이지 몇 장 색인됐는지 확인 / 네이버 서치어드바이저: 주요 지역 페이지 수집 요청(네이버 색인 10/235) | 사이트 이름 '에이아이오투오' 표시, 지역 페이지 색인 부족 | `docs/구글_검색_정책_리서치.md` | | [x] | 구글 서치 콘솔·네이버 서치어드바이저에 사이트 등록, `sitemap.xml` 제출 — 배포 뒤 (둘 다 등록됨, 10/13 확인) | 등록·제출 없으면 새 도메인은 색인이 늦음 | https://search.google.com/search-console , https://searchadvisor.naver.com | | [x] | 세션 여러 개가 같은 테스트 DB·Redis를 쓰면 서로 지움 — `TEST_DB_NAME`·`TEST_REDIS_DB`로 폴더마다 다르게 줄 수 있게 함 | 테스트 충돌 (10/7 두 번) | `backend/tests/conftest.py` | | [x] | 피드 행사 카드·띠를 축제→팝업→전시→콘서트 차례로 돌아가며 고름 (사용자 결정). 피드 행사 카드(최대 3장)가 연주회로 채워짐 — 시작일이 오늘에 가까운 순이라 하루짜리 콘서트(서울 170건)가 위를 차지. 기획엔 "축제·행사"만 있고 콘서트·팝업을 어떻게 섞을지 없음. 안: 종류별 1장씩(축제·전시·팝업 우선) 또는 피드에서 콘서트 제외 | 사용자 지적 | `backend/services/week_service.py` (`events` 정렬), `backend/services/feed_service.py` (`PostType.EVENT`), `docs/피드_기획.html` | @@ -172,3 +232,45 @@ | [ ] | **[결정 필요]** 토스 연결 끊기 처리 — 지금은 UNLINK·탈퇴 모두 토큰만 무효로 함. 토스 탈퇴(`WITHDRAWAL_TOSS`·`WITHDRAWAL_TERMS`) 때 계정·댓글을 지울지 | 토스 로그인 구현(10/14) | `backend/services/auth_service.py` | | [ ] | 토스 로그인 문구 검토 — '토스로 로그인', '토스로 로그인했어요', '토스 로그인을 마치지 못했어요. 한 번 더 눌러 주세요.', 기본 닉네임 '토스1234'(userKey 끝 4자리) | 토스 로그인 구현(10/14) | `frontend/src/b/Sheets.tsx`, `backend/services/auth_service.py` | | [ ] | 댓글 신고·차단 — 앱인토스 필수 아님(신고·차단 필수는 채팅·만남·중고거래만, 서비스 오픈 정책·서비스별 주의사항). 만들지 않기로 함(10/14). 검수에서 요청이 오면 만든다 | 토스 로그인 구현(10/14) | | +| [x] | 각 늘리기 53→68 — 리서치로 고른 8개(한강·놀이공원·데이트·곱슬머리·보일러·선크림·모기·테니스) + 감성 7개(효도·감사·선물·파티·게임·셀카·센치), 아이콘 15개(Codex) | 사용자 요청 (10/20, 리서치 https://claude.ai/artifact/3ZQbtGKRLVZViRRC5voBzY) | `backend/seed/index_definition.json`, `frontend/public/icons/`, `frontend/src/b/lib.ts` | +| [ ] | **[결정 필요]** 한강각·놀이공원각이 강·놀이공원 없는 동네에도 나옴 — 각을 지역별로 가려 보여 주는 기능이 없음(한강밤바람각도 같음). 서울·한강 인접 구만 보일지 | 새 각 추가 중 발견 (10/20) | `backend/seed/index_definition.json`, `backend/services/index_service.py` | +| [ ] | **[결정 필요]** 기존 각과 겹침 — 센치↔감성노래, 게임↔넷플릭스·집콕, 곱슬머리↔화장붕괴, 효도↔트로트, 셀카↔사진산책. 둘 다 둘지 합칠지 | 새 각 추가 중 발견 (10/20) | `backend/seed/index_definition.json` | +| [ ] | 감사각은 '어제보다 날씨가 크게 바뀐 날'을 못 봄 — 지금은 덥거나 춥거나 비 오면 높음. 전날 대비 기온 변화 요소를 계산에 넣을지 | 새 각 추가 중 발견 (10/20) | `backend/services/calc/index_calc.py` | +| [ ] | 테스트 2개가 날짜·시각에 따라 깨짐 — `test_feed` 스토리 수 40 고정(10월엔 계절 각이 늘어 다름, 각 추가 전 42·후 57), `test_weather_today` 7번째 칸이 시각에 따라 노을/달 | 새 각 추가 중 테스트에서 발견 (10/20) | `backend/tests/test_feed.py:64`, `backend/tests/test_weather_today.py` | +| [x] | 내 각 만들기 '있는 각에서 불러오기' 문구 검토 — 그대로 쓰기로 확정 (10/21) | 각 불러오기 카로셀 추가 (10/21) | `frontend/src/b/myGak.tsx` | +| [ ] | 내 각 만들기 숫자 칸이 좁아 세 자리(습도 100)가 잘림 — 불러온 각에 100이 자주 나옴 | 각 불러오기 카로셀 확인 중 발견 (10/21) | `frontend/src/b/myGak.tsx` `Num` | +| [ ] | 불러온 각 점수가 공식 각과 다름 — 더울수록·멀수록·바람 셀수록·요일 같은 규칙은 내 각 조건으로 비슷하게만 옮기거나 뺌(파티·게임·감사각은 비 조건만 남음) | 각 불러오기 카로셀 추가 (10/21) | `backend/services/calc/my_gak_calc.py` `preset` | +| [x] | 피드에 사람 글이 6개까지만 보임 — 20개를 받고 운영 포스트 3개마다 1개씩만 끼움(포스트 18개 → 6개). 나머지 14개와 다음 페이지는 안 보임 | 피드 정렬 점검 (10/21) | `frontend/src/b/TodayPage.tsx:419`, `frontend/src/b/talkState.ts` | +| [x] | 방금 쓴 글을 지워도 글쓰기 칸 아래에 남음 — 화면에만 들고 있는 내 글 목록(`mine`)에서 빼지 않음 | 피드 정렬 점검 (10/21) | `frontend/src/b/TodayPage.tsx:366`, `frontend/src/b/talk.tsx:201` | +| [x] | 내가 쓴 글 모아 보기 없음 → 내 정보 창에 '내 글' 목록(10/21) — 새로고침하면 위 고정이 풀리고 전국 최신순에 섞여 6개 안에 못 들면 못 찾음. 내 정보 창에 '내 글' 목록을 둘지 | 피드 정렬 점검 (10/21) | `backend/crud/talk_crud.py`, `frontend/src/b/Sheets.tsx:870` | +| [x] | 사람 글 정렬이 전국 최신순뿐 → 같은 시도 글 12시간 앞당김, 같은 사람 연속 금지(10/21) — 우리 동네 글 우선 없음, 한 사람이 하루 5개 쓰면 피드 사람 글 칸을 거의 다 차지함 | 피드 정렬 점검 (10/21) | `backend/crud/talk_crud.py:27` | +| [ ] | **[결정 필요]** 내 글 문구 검토 — '내 글', '아직 쓴 글이 없어요', '더 보기'를 확인받지 않고 넣음 | 피드 정렬 개선 (10/21) | `frontend/src/b/talk.tsx` `MyTalks` | + +## 인스타 홍보 (10/20 기획) + +| 상태 | 할 일 | 이유 | 관련 파일 | +|---|---|---|---| +| [ ] | **[결정 필요]** 인스타 계정 이름·화자 — 토끼·곰 캐릭터를 말하는 사람으로 쓸지 | 인스타 홍보 기획 | `docs/인스타_홍보_기획.html` | +| [ ] | **[결정 필요]** '오늘의 각' 카드 기준 지역 — 서울만 / 서울·부산 2장 / 시도별 | 전국 계정인데 각은 동네마다 다름 | `docs/인스타_홍보_기획.html` | +| [ ] | **[결정 필요]** '화제 × 날씨'에 쓰지 않을 주제 목록과 올리기 전 검토 담당 | 역풍 위험 (사고·재난·정치·연예인 사생활) | `docs/인스타_홍보_기획.html` | +| [ ] | **[결정 필요]** 날씨 타로 카드 앞면 그림(날씨별 한 벌) 제작 담당 — 4주 실험, 보내기·저장·댓글이 계정 평균 못 넘으면 중단 | 운세 결합 판단 (10/20 띠별 대신 타로로 결정) | `docs/인스타_홍보_기획.html` | +| [ ] | **[결정 필요]** 인스타 카드 자동 생성 — 공유 이미지 카드를 4:5로 뽑는 기능을 만들지, 처음엔 사람이 만들지 | 매일 게시 비용 | `docs/인스타_홍보_기획.html` | +| [ ] | **[결정 필요]** 오늘의 OOTD(아침 카드 2장째) — 캐릭터 옷 그림을 기온 구간별로 한 벌 만들 담당과 구간 기준 (히어로 일교차 '아침엔 겉옷'·주말 옷차림 팁과 같은 기준을 쓸지) | 10/20 OOTD 추가 결정 | `docs/인스타_홍보_기획.html`, `backend/services/hero_stats.py`, `backend/services/weekend_plan.py` | +| [ ] | 인스타 매일 자동 생성 — `admin/`이 예보 갱신 직후 날씨각 API에서 각 순위·기온·OOTD 구간을 HTML 틀에 넣어 JPEG(4:5)로 저장, 그림은 미리 만든 한 벌 재사용 (10/20 사용자 결정: 자동 생성 + 승인 + 자동 게시, 저장소 안 관리자 프로젝트 `admin/`의 기능 하나, API는 공용) | 인스타 홍보 7장 | `admin/`, `docs/인스타_홍보_기획.html` | +| [ ] | `admin/` 관리자 화면 — (10/21 됨: 인스타 카드 미리보기·문구 수정·JPEG 내려받기, `npm run card` 대화용 명령, 템플릿 3종) 남은 것: 매일 자동 생성 저장·승인/반려·게시 결과, 관리자 로그인(지금은 로그인 없이 로컬에서만), 배포(compose). 10/21 추가로 됨: 지역 콘텐츠 제거(오늘의 각 템플릿 삭제, 서울 예보 기준), 코디 6명, Claude 주제 기획·피드백 재기획(웹·`npm run card --topic`) | 인스타 홍보 7장 | `admin/`, `docs/인스타_홍보_기획.html` | +| [ ] | `admin/` 인스타 API 자동 게시 — 승인된 게시물을 정한 시각에 게시, 승인 마감까지 승인 없으면 게시 안 함. 이미지는 공개 주소에 JPEG | 인스타 홍보 7장 | `docs/인스타_홍보_기획.html` | +| [ ] | **[결정 필요]** 매일 승인 담당자·승인 마감 시각·게시 시각, 프로페셔널 계정 전환과 Meta 앱 생성 담당(우리 계정만 쓸 때 앱 검수 필요한지 확인) | 인스타 홍보 7장 | `docs/인스타_홍보_기획.html` | +| [ ] | **[결정 필요]** 인스타 카드 기본 문구 검토 — 템플릿 3종(`admin/src/cards/templates.tsx` `defaults`)의 기본 문구와 OOTD 기온 구간·옷 이름(`admin/src/cards/ootd.ts`)이 아직 검토 전. 타로 결과 장 문장은 '각 요약 + ○○이 가장 좋아요'라 세 장이 비슷하게 나올 수 있음 | 관리자 프로젝트 첫 구현 (10/21) | `admin/src/cards/templates.tsx`, `admin/src/cards/ootd.ts` | +| [x] | OOTD 옷 그림 — 지금은 낮 최고 17~22도 구간 한 장만 있음, 나머지 6구간은 옷 이름만 나감. Codex로 구간별 플랫레이(사람·얼굴 없이) 생성 → 10/21 프롬프트 템플릿(`admin/image-prompts/ootd.json`) + `npm run gen-image`로 7구간 모두 생성, 그림이 있으면 카드에 자동으로 붙음 | 관리자 프로젝트 첫 구현 (10/21) | `admin/src/assets/`, `admin/src/cards/ootd.ts` | +| [ ] | 코디 그림 6명 × 7구간(42장) 중 7장만 있음 — 오늘 구간(12~16도) 5장은 Codex 사용 한도로 실패(10/21 14:36 이후 가능). `cd admin && npm run gen-image -- ootd missing` | 코디 6명 나누기 (10/21) | `admin/image-prompts/ootd.json`, `admin/src/assets/ootd/` | +| [ ] | 전국 노을 랭킹·주말 나들이 랭킹 템플릿 — 백엔드 API 있음(`/v1/sky/ranking`, `/v1/week/ranking`, 대표 30곳). 디자인은 Codex로, 그 시기에 뜨는 템플릿이 먼저 보이게 | 사용자 요청 (10/21) | `admin/src/cards/templates.tsx`, `backend/router/v1/sky/sky.py`, `backend/router/v1/week/week.py` | +| [ ] | **[결정 필요]** 전국 단풍 랭킹 — 백엔드에 전국 단풍 순위 데이터가 없음. 데이터 출처(산림청·기상청 단풍 시기, 단풍각 점수로 대표 30곳 계산 등) 결정 필요 | 사용자 요청 (10/21) | `backend/` | +| [ ] | 관리자 '날씨각·인스타에 올리기' 버튼 — 10/23 날씨각 쪽 됨: 카드뉴스 포스트 타입 16·`card_set`/`card_image` 테이블·`/v1/card` API(X-Admin-Key)·피드 이미지 슬라이드·관리자 '지금 올리기/승인 대기로 저장'·`npm run card --post/--post-wait`. 10/23 운영 반영: main 병합·킹서버 배포·`ADMIN_API_KEY` 설정, 관리자에서 로컬·킹서버 골라 올리기. 인스타는 토큰만 넣으면 됨(인스타 연결 행) | 사용자 요청 (10/21) | `admin/src/pages/CardsPage.tsx`, `backend/router/v1/feed/` | +| [ ] | 주제별 타로 카드 뒷면 5장(하트·동전·별·클로버·반짝이) — 프롬프트 템플릿 `admin/image-prompts/tarot.json` 준비됨, Codex 한도 풀리면(10/21 14:36~) `cd admin && npm run gen-image -- tarot missing`. 생기면 카드에 자동으로 붙음 | 주제 베리에이션 (10/21) | `admin/image-prompts/tarot.json`, `admin/src/assets/tarot/` | +| [ ] | 인스타 연결 — 계정 @nalssigak(프로페셔널 전환 됨, 10/23). 남은 것: ① https://developers.facebook.com/apps 에서 앱 만들기(유형 '기타' → '비즈니스') ② 제품 'Instagram' 추가 → 'Instagram API with Instagram Login' 설정 ③ 'Instagram 계정 추가'에 @nalssigak 로그인해 테스터로 추가 ④ '액세스 토큰 생성'으로 토큰 발급(권한 instagram_business_basic, instagram_business_content_publish, instagram_business_manage_insights) ⑤ 토큰·계정 ID(`GET https://graph.instagram.com/v24.0/me?fields=user_id&access_token=…`)를 킹서버 .env `INSTAGRAM_ACCESS_TOKEN`·`INSTAGRAM_USER_ID`에 넣기 ⑥ 토큰은 60일마다 갱신 필요(`/refresh_access_token`) — 자동 갱신은 추후. 코드는 10/23 준비됨(`POST /v1/card/{id}/instagram`, 관리자 '인스타에도 올리기') | 사용자 요청 (10/23) | `backend/services/external/instagram.py`, `backend/router/v1/card/card.py` | +| [ ] | **[결정 필요]** 인스타 카드 매일 자동화(서버) — 흐름: 매일 아침 서버가 Claude 기획(Claude Code 플랜, `claude setup-token` 토큰) → 카드 이미지까지 생성 → Teams 채널에 미리보기 카드(Workflows 웹훅 + Adaptive Card, 승인 / 고치기 버튼은 우리 서버 링크 — 그날 게시물에만 통하고 기한 지나면 막힘, 이미지는 공개 주소 필요) → 승인 시 정한 시각에 인스타·날씨각 업로드 → 성과 추적. 마감까지 승인 없으면 올리지 않음. 정할 것: 알림 받을 Teams 채널·Workflows 웹훅 만들 계정(만든 사람 소유라 공용 계정 권장)·생성/마감/게시 시각, 서버에 Claude Code CLI·Chrome·admin 설치(운영 변경, 확인 받고), 플랜 토큰을 서버 자동 실행에 쓰는 것이 약관상 괜찮은지 확인 | 사용자 제안 (10/21) | `admin/`, `backend/scheduler/` | +| [ ] | 기존 실패 테스트 2개 — `test_feed.py::test_feed_assembles_hero_stories_posts_and_bands`(stories 40 기대, 실제 42: 각 개수 늘어남), `test_weather_today.py::test_today_fetches_stores_and_returns_8_slots`(18시 칸 아이콘이 시각에 따라 sunset/moon). 카드뉴스 작업 전 코드에서도 같은 실패 | 카드뉴스 작업 중 발견 (10/23) | `backend/tests/test_feed.py`, `backend/tests/test_weather_today.py` | +| [ ] | 인스타 카드 서버 매일 자동 생성 + Teams 승인 — 서버에 Claude Code CLI(플랜 토큰)·Codex·Chrome·admin 설치, 매일 `npm run card -- tarot --post-wait` 후 Teams 웹훅(이미 있는 `backend/services/external/teams_webhook.py`)으로 미리보기·승인 링크. 운영 변경이라 확인 받고 | 인스타 홍보 7장 | `admin/scripts/card.mjs`, `backend/router/v1/card/card.py` | +| [x] | Playwright 끝까지 테스트 — 관리자(5175) → 연애·썸 → 만들기(Claude) → 지금 올리기 → 로컬 날씨각(9812 테스트 DB) 피드 2번째에 '날씨각 카드' 노출·이미지 로드 확인 (10/23 통과). 스크립트는 세션 임시 폴더에만 있음 | 사용자 요청 (10/23) | `admin/`, `frontend/src/b/Post.tsx` | +| [ ] | 로컬 Postgres(docker 5440) 반복 크래시 — 10/23 2시간에 4번 복구 모드, 10/20 로그에 'No space left on device'. 도커 VM 디스크 98G 중 46G 사용, 이미지 29G 중 19.8G·볼륨 15.9G 중 13.5G 정리 가능. 다른 프로젝트 공용이라 정리 전 확인 필요 | 테스트 중 발견 (10/23) | docker | +| [x] | 킹서버 반영 (10/23) — main 병합·배포 2회(카드뉴스 API·nginx 본문 한도 40m), `ADMIN_API_KEY` 설정, '오늘의 썸 타로' 카드 1 → 포스트 3337로 오늘 피드 2번째에 게시, 이미지 https://weather.o2o.kr/v1/card/1/1.jpg 확인 | 사용자 요청 | `deploy.sh`, `frontend/nginx.conf` | diff --git a/admin/.gitignore b/admin/.gitignore new file mode 100644 index 0000000..0e60994 --- /dev/null +++ b/admin/.gitignore @@ -0,0 +1,27 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? + +# npm run card 결과 +out diff --git a/admin/.oxlintrc.json b/admin/.oxlintrc.json new file mode 100644 index 0000000..6fa991d --- /dev/null +++ b/admin/.oxlintrc.json @@ -0,0 +1,8 @@ +{ + "$schema": "./node_modules/oxlint/configuration_schema.json", + "plugins": ["react", "typescript", "oxc"], + "rules": { + "react/rules-of-hooks": "error", + "react/only-export-components": ["warn", { "allowConstantExport": true }] + } +} diff --git a/admin/AGENTS.md b/admin/AGENTS.md new file mode 100644 index 0000000..b7a4921 --- /dev/null +++ b/admin/AGENTS.md @@ -0,0 +1,85 @@ +# 날씨각 관리자 (admin/) + +날씨각 운영용 관리자 웹앱. 지금 기능은 **인스타 카드 만들기** 하나다. 날씨 데이터는 날씨각 백엔드 API(`../backend`)를 그대로 쓴다. + +## 켜기 + +```bash +npm install +VITE_API_BASE_URL=http://localhost:9810 npm run dev # http://localhost:5175 +``` + +백엔드 주소가 다르면 `VITE_API_BASE_URL`만 바꾼다. 백엔드 API가 바뀌면 `npm run api`로 `src/api/client`를 다시 만든다. + +## 카드 만드는 흐름 + +1. **템플릿 고르기**: `tarot`(날씨 타로, 5장) · `ootd`(오늘의 코디, 6장). 코디는 주제·Claude 기획 대신 스타일(캐주얼·세미정장·정장·스트릿·꾸안꾸, copy의 `style`)을 고른다. 지역은 고르지 않는다. 모든 카드는 서울(중구) 오늘 예보로 만들고, 카드에 지역 이름은 넣지 않는다. +2. **기획**: 주제(예: 주식, 연애)를 주거나 비워 두면 Claude CLI(`claude -p`, 이 맥 로그인 사용)가 오늘 날씨 사실을 바탕으로 칸별 문구를 기획한다. 규칙은 `scripts/plan.mjs`의 `RULES`. +3. **고치기·피드백**: 칸을 직접 고치거나, 피드백을 주고 다시 기획한다. +4. **색**: 만들 때마다 6가지 테마(`src/cards/themes.ts`: 노을·하늘·민트·베리·레몬·라벤더) 중 하나가 무작위로 정해진다. 화면의 '색'이나 `--color`로 고를 수 있다. +5. **그리기**: 확정한 문구를 같은 템플릿에 넣어 1080×1350 JPEG로 만든다. + +관리자 화면은 열었을 때 아무것도 만들지 않는다. 관리자가 템플릿·주제(코디는 스타일)를 고르고 '만들기'를 눌러야 만든다. `npm run card -- tarot`는 Claude 기획부터 한다. + +템플릿마다 "어떻게 만드는지"(데이터·계산·문구 규칙)는 `src/cards/templates.tsx`의 `how`에 적고, 관리자 화면 '이 카드는 이렇게 만들어요'와 Claude 기획 요청에 같이 쓴다. + +## 날씨 타로 주제 + +주제는 `topics.json`의 대주제 > 소주제(연애: 썸·데이트·재회·이별·결혼 / 경제: 주식·재테크·취미·여행 / 일·공부 / 건강 / 관계)에서 고르거나 직접 쓴다. 대주제마다: + +- **꾸밈(skin)**: 반짝이·표지 장식 모양(연애 하트, 경제 동전, 건강 네잎클로버…, `src/cards/cards.css` 맨 아래). +- **질문**: 소주제마다 카드가 답할 질문(`questions`). +- **리딩 말투**: `scripts/plan.mjs`의 `TAROT_TONE`. 실제 타로 리더 말투(온도타로·타로하는 아율·가문비타로·알라딘타로 유튜브 설명란, 2026-10-23 조사)에서 뽑았다. 질문자 "님"·상대 "그 사람", 해요체+단정 한 문장, 겉과 속 대비 → 다만 → 행동 하나, 폰에서 보이는 디테일. "~이면 ~해요" 공식·같은 어미 반복·"~할 수 있어요" 남발·덕담은 AI 티라 금지. 예시 문구를 바꿀 때도 이 규칙으로. +- **카드**: 날씨각 각 카드(`../backend/seed/index_definition.json`, 53장). 오늘 점수가 높은 각 중 질문과 엮이는 3장을 고르고, 각 카드로 질문을 리딩한다. 카드 그림은 그 각의 아이콘. +- 대주제·소주제·아이콘을 늘리려면 `topics.json`만 고친다. 새 꾸밈 모양은 CSS와 `image-prompts/tarot.json`에 같이 더한다. + +## 대화로 만들 때 (Claude·Codex) + +사용자가 "오늘 주식 날씨 타로 만들어 줘"처럼 말하면 아래 명령을 실행한다. 관리자 화면(`npm run dev`)이 켜져 있어야 한다. + +```bash +VITE_API_BASE_URL=http://localhost:9810 npm run card -- tarot --topic 주식 [--color mint] +``` + +- 기획안(칸별 문구)이 먼저 출력된다. 사용자에게 보여 주고, 피드백이 오면 출력된 `--copy` 값과 함께 다시 실행한다: + `npm run card -- tarot --copy <값> --feedback "2번 더 웃기게"` +- 피드백 없이 그대로 그리려면 `--copy <값>`만. +- 결과: `out/<날짜>/<날짜>_<템플릿>_<장>.jpg` + +## 날씨각·인스타에 올리기 + +- 확인·내보내기 탭 '지금 올리기' → 날씨각 백엔드 `POST /v1/card`(이미지째 저장, 오늘 전국 피드에 게시). '승인 대기로 저장'은 저장만. +- 올린 뒤 '인스타(@nalssigak)에도 올리기' → `POST /v1/card//instagram`. 백엔드가 공개 주소(`PUBLIC_BASE_URL` + `/v1/card//.jpg`)로 캐러셀을 만들어 게시한다. 서버 `.env`에 `INSTAGRAM_ACCESS_TOKEN`·`INSTAGRAM_USER_ID`가 있어야 한다(발급 순서는 `TODO.md` 인스타 연결 행). +- '만든 카드' 탭에서 저장된 카드를 다시 내려받거나, 승인 대기 카드를 올리거나, 인스타에 올린다. +- 올릴 곳은 두 개: 로컬 백엔드(`VITE_API_BASE_URL` + `ADMIN_API_KEY`, 피드 주소 `LOCAL_SITE_URL`)와 킹서버(`KING_API_BASE_URL`(기본 https://weather.o2o.kr) + `KING_ADMIN_API_KEY`, `KING_SITE_URL`). 비밀값이 있는 곳만 화면에 나온다. 보통 로컬에서 만들어 둘 다에 올린다. +- 관리자 서버가 비밀값을 `/api/post`·`/api/cards`에서만 붙인다. 브라우저엔 안 나간다. 킹서버 키는 킹서버 `.env`의 `ADMIN_API_KEY`와 같은 값. +- 켜는 예: `VITE_API_BASE_URL=http://localhost:9810 ADMIN_API_KEY=… KING_ADMIN_API_KEY=… npm run dev` + +## 카드 그림 만들기 (Codex 이미지 생성) + +**그림은 그날 만드는 카드에 필요한 것만 그때 만든다.** 조합(기온 구간 × 스타일 × 사람, 타로 78장)을 미리 일괄로 만들지 않는다. Codex 사용량이 한정돼 있다. + +- 코디: 그날 기온 구간 × 고른 스타일의 6명. 타로는 날씨 아이콘을 써서 만들 그림이 없다. +- 관리자 화면: 그림이 없으면 미리보기 위에 'Codex로 그림 N장 만들기' 버튼이 나온다(한 장씩, 한 장에 1~2분). +- `npm run card`: 그리기 전에 빠진 그림을 자동으로 만든다(`--no-images`로 건너뜀). +- 한 번 만든 그림은 같은 조합에서 다시 쓴다. 새로 그리려면 화면의 '그림 다시 그리기'. +- 그림은 프롬프트 템플릿 `image-prompts/<종류>.json`(지금은 ootd)대로만 만든다. 바뀌는 칸(옷 목록, 카드 장면)만 다르고 나머지 문장은 같아서 모양이 통일된다. + +```bash +npm run gen-image -- ootd cool casual # 한 구간·한 스타일 6명 +npm run gen-image -- ootd cool-f20-casual --force # 한 장 다시 그리기 +``` + +- `codex` CLI(로그인 필요)와 `cwebp`가 있어야 한다. 그림 생성은 `gpt-6-luna`(가장 싼 모델)·추론 low 로 고정돼 있다(`CODEX_IMAGE_MODEL`로 바꿀 수 있음). Codex 기본 모델(gpt-6-astra·xhigh)을 쓰면 한도를 금방 소진한다. +- 결과는 `src/assets/ootd/<구간>-<사람>-<스타일>.webp`이고, 카드에 자동으로 붙는다(`src/cards/ootd.ts`). +- 옷 목록(`items`, 영어 프롬프트)과 카드 글자(`labels`·`outer`)는 `image-prompts/ootd.json` 한 파일에 같이 있다. 하나를 바꾸면 다른 쪽도 맞춘다. +- 유행: `styles.<스타일>.trends.<사람>`에 요즘 한국 유행(실루엣·색·소재)을, `bands.<구간>.layering`에 기온별 레이어링을 적어 프롬프트에 넣는다. 2026-10-23 조사(무신사·에이블리·29CM·W컨셉·지그재그·크림 기사·보그·엘르). 연령별 판매 자료는 거의 없어 플랫폼 주 고객층(에이블리·지그재그·W컨셉=2030 여성, 무신사·크림=2030 남성)으로 나눈 것이다. 철이 바뀌면 다시 조사해 고친다. +- 만든 그림은 직접 열어 사람·얼굴·글자가 없는지 확인한다. + +## 규칙 + +- 카드 모양은 `src/cards/templates.tsx`(템플릿)와 `src/cards/cards.css`(모양)에서만 정한다. 웹 화면과 `npm run card`가 같은 템플릿을 쓰므로, 한 번 바꾸면 둘 다 바뀐다. 포스트마다 따로 디자인하지 않는다. +- 새 포스트 종류(템플릿)의 디자인은 Codex에게 시켜 만든다. 결과를 `TEMPLATES`에 하나 더하고 `how`를 쓰고, `scripts/card.mjs`의 `SLIDES`에 장 수를 적는다. +- 카드 문구 기본값을 바꿀 때는 사용자에게 문구 목록을 먼저 검토받는다. +- 그림(타로 카드, 코디 옷)은 그날 필요한 것만 Codex로 만들고, 만든 파일(`src/assets`)은 다시 쓴다. 코디 옷 그림은 사람·얼굴 없이 옷만, +- 각 아이콘·캐릭터는 서비스와 같은 `../frontend/public/icons`를 쓴다. diff --git a/admin/image-prompts/gak-card.json b/admin/image-prompts/gak-card.json new file mode 100644 index 0000000..3e1149d --- /dev/null +++ b/admin/image-prompts/gak-card.json @@ -0,0 +1,6 @@ +{ + "about": "날씨 타로 각 카드 앞면 그림. 날씨각 각(backend/seed/index_definition.json)마다 이름·뜻으로 장면을 만들고 나머지 문장은 그대로 써서 모든 카드가 같은 모양으로 나오게 한다. 그날 뽑힌 카드만 Codex로 그리고 결과는 src/assets/gak-card/<각 code>.webp (다시 씀). 없으면 각 아이콘이 나온다.", + "deck": "gak", + "style": "Use case: stylized-concept. Asset type: text-free tarot-style card FRONT illustration for a playful Korean weather Instagram carousel. ONE portrait card, flat front-on orthographic view, ratio 2:3, filling the entire canvas edge to edge. The card represents the Korean weather-activity card '{name}' which means: {meaning}. Scene: {scene}. Tarot composition: one clear central scene with symbolic framing, a soft arch or rounded window shape behind the scene, small stars and clouds, sky color matching the activity's time of day. Characters, if any, are a cute white rabbit and a cute brown bear clay toys (simple dot eyes, no human faces), no humans. Style: tactile matte clay / soft vinyl 3D illustration, chunky rounded shapes, bright cheerful palette with warm orange #ff7a45, soft blue #4f97e3, ivory #f7fbff and deep ink #28304a accents, soft studio light. Rounded ivory card border with a thin orange double line. Everything inside the card, no mockup, no perspective, no hands holding the card. Text: none. Absolutely NO letters, words, numbers, roman numerals, labels, logos, watermark or pseudo-text anywhere.", + "scene": "the rabbit and/or bear happily doing the activity of '{name}' ({meaning}) in a cozy symbolic setting, with the activity's key object shown large like the 3D icon of this card" +} \ No newline at end of file diff --git a/admin/image-prompts/ootd.json b/admin/image-prompts/ootd.json new file mode 100644 index 0000000..61ecdf1 --- /dev/null +++ b/admin/image-prompts/ootd.json @@ -0,0 +1,2313 @@ +{ + "about": "오늘의 코디 옷 그림. 기온 구간(bands) × 스타일(styles: 캐주얼·세미정장·정장·스트릿·꾸안꾸) × 사람(personas)마다 옷 목록(items)만 바꾸고 나머지 문장(style)은 그대로 써서 모든 그림이 같은 모양으로 나오게 한다. labels·outer는 카드에 나가는 한국어. 그림은 src/assets/ootd/<구간>-<사람>-<스타일>.webp 유행: styles.<스타일>.trends.<사람>(2026 가을·겨울 무신사·에이블리·29CM·W컨셉 조사, 10/23), 기온별 레이어링: bands.layering. 조사 근거·출처는 admin/AGENTS.md.", + "style": "Use case: stylized-concept. Asset type: text-free clothing flat-lay image for a Korean weather Instagram card, styled for {persona}, {style}. View straight down at a tasteful arranged collection on a perfectly flat pale sky-blue background near #e9f3ff. The complete outfit is: {items}. Style these items in the current 2026 fall-winter Korean trend seen on Musinsa, Ably, 29CM and W Concept for this person: {trend} (keep the listed items, borrow the trend's silhouette, colors and materials). Layering for today's temperature: {layering}. Every item is a separate article, fully visible, elegantly spaced, naturally laid flat, no overlap hiding them. Balanced, compact product flat-lay. Each garment is empty and flattened, with sleeves spread. Square 1:1 composition, generous clean margin around all objects, complete silhouettes, nothing cropped. No extras beyond the listed items. Absolutely no people, human bodies, faces, hands, skin, legs, mannequins, models, ghosts, stuffed garments, or human-shaped assembly. NO TEXT anywhere: no lettering, labels, logos, brand marks, watermark, numbers, graphics printed on clothes. It is just the clothes and accessories, not a card layout. Style: bright, cheerful, premium 3D clay-toy illustration. Soft rounded shapes, matte clay/rubber-like texture, gentle sculpted folds and clean seams, believable clothing shapes, visually charming but no facial features. Palette accents: orange #ff7a45, warm ivory, soft beige, navy #28304a, soft studio shadows, beautiful diffused daylight. Crisp high quality product arrangement.", + "styles": { + "casual": { + "label": "캐주얼", + "prompt": "a relaxed everyday casual look", + "trends": { + "f20": "cropped short trench, deep V-neck knit, wide washed jeans, khaki field jacket, sneakers", + "f30": "camel suede jacket, curved barrel jeans, hairy mohair knit, loafers", + "f40": "lightweight quilted down vest, fine-gauge knit, straight jeans, leather sneakers", + "m20": "nylon windbreaker, oversized check shirt, wide jeans, retro sneakers", + "m30": "canvas work jacket, heavyweight tee, raw straight denim, boots", + "m40": "lightweight down jacket, cotton chinos, knit polo, leather sneakers" + } + }, + "semi": { + "label": "세미정장", + "prompt": "a neat smart-casual, semi-formal office look", + "trends": { + "f20": "high-neck double-button trench, satin midi skirt, fine knit, mid-heel pumps", + "f30": "cocoon-shoulder blazer, cinched waist belt, aubergine knit, knee-high boots", + "f40": "soft tailored blazer, velvet trousers, silk scarf, low block heels", + "m20": "navy knit polo, relaxed pleated trousers, suede blouson, loafers", + "m30": "suede trucker jacket, merino turtleneck, wool trousers, loafers", + "m40": "unstructured navy blazer, oxford shirt, wool trousers, suede loafers" + } + }, + "formal": { + "label": "정장", + "prompt": "a polished formal business suit look", + "trends": { + "f20": "cropped tailored jacket, matching midi skirt suit, sheer tights, slingback heels", + "f30": "structured skirt suit with nipped waist, charcoal grey wool, pointed pumps", + "f40": "classic camel wool coat, tailored grey trouser suit, leather tote", + "m20": "boxy single-breasted suit, open-collar shirt, black derby shoes", + "m30": "slim 1960s-style charcoal suit, knit tie, oxford shoes", + "m40": "classic charcoal suit, white shirt, single-breasted overcoat, oxford shoes" + } + }, + "street": { + "label": "스트릿", + "prompt": "a trendy oversized Korean streetwear look", + "trends": { + "f20": "hooded zip-up, oversized nylon windbreaker, balloon pants, chunky sneakers, red accent", + "f30": "utility work jacket, check balloon skirt, patterned tights, heavy boots", + "f40": "quilted short puffer, half-zip fleece, wide cargo pants, clean sneakers", + "m20": "padded vest over hoodie, balloon cargo pants, red accent beanie, chunky sneakers", + "m30": "buffalo-check overshirt, olive field jacket, fatigue pants, trail sneakers", + "m40": "faux-leather blouson, sweatshirt, tapered cargo pants, clean sneakers" + } + }, + "minimal": { + "label": "꾸안꾸", + "prompt": "an effortless minimal basic look with simple neutral pieces", + "trends": { + "f20": "oatmeal V-neck knit, mermaid midi skirt, ballet flats, soft beige and ivory", + "f30": "boucle cardigan, straight grey trousers, oversized wool scarf, muted taupe and burgundy", + "f40": "long cardigan layered over knit, wide slacks, loafers, ivory and grey tones", + "m20": "grey sweatshirt, straight chinos, short puffer, minimal white sneakers", + "m30": "corduroy duffle coat, cable knit, grey slacks, navy and cream tones", + "m40": "single-breasted trench, fine knit crewneck, grey slacks, muted earth tones" + } + } + }, + "personas": { + "f20": { + "label": "20대 여자", + "prompt": "a Korean woman in her 20s" + }, + "m20": { + "label": "20대 남자", + "prompt": "a Korean man in his 20s" + }, + "f30": { + "label": "30대 여자", + "prompt": "a Korean woman in her 30s" + }, + "m30": { + "label": "30대 남자", + "prompt": "a Korean man in his 30s" + }, + "f40": { + "label": "40대~ 여자", + "prompt": "a Korean woman in her 40s or 50s" + }, + "m40": { + "label": "40대~ 남자", + "prompt": "a Korean man in his 40s or 50s" + } + }, + "bands": [ + { + "id": "hot", + "from": 28, + "outfits": { + "casual": { + "f20": { + "items": "(1) a WHITE cropped short-sleeve T-shirt, (2) light-blue denim SHORTS, (3) a pair of chunky BEIGE platform SANDALS, (4) a small IVORY canvas tote bag", + "labels": [ + "크롭 티", + "데님 반바지", + "샌들", + "에코백" + ], + "outer": "얇은 셔츠" + }, + "m20": { + "items": "(1) a plain WHITE short-sleeve crewneck T-shirt, (2) light-blue denim SHORTS, (3) a pair of simple BEIGE strap SANDALS, (4) round tortoiseshell SUNGLASSES", + "labels": [ + "반팔 티", + "데님 반바지", + "샌들", + "선글라스" + ], + "outer": "얇은 셔츠" + }, + "f30": { + "items": "(1) an IVORY sleeveless linen BLOUSE, (2) BEIGE wide linen pants with two full legs, (3) a pair of flat TAN leather SANDALS, (4) a woven RATTAN handbag", + "labels": [ + "민소매 블라우스", + "린넨 팬츠", + "샌들", + "라탄백" + ], + "outer": "얇은 가디건" + }, + "m30": { + "items": "(1) a NAVY short-sleeve linen SHIRT, (2) BEIGE chino SHORTS, (3) a pair of plain WHITE low-top sneakers, (4) black SUNGLASSES", + "labels": [ + "린넨 셔츠", + "면 반바지", + "운동화", + "선글라스" + ], + "outer": "얇은 셔츠" + }, + "f40": { + "items": "(1) a LIGHT-BLUE short-sleeve cotton BLOUSE, (2) WHITE linen slacks with two full legs, (3) a pair of low BEIGE wedge SANDALS, (4) a wide-brim straw SUN HAT", + "labels": [ + "반팔 블라우스", + "린넨 슬랙스", + "샌들", + "챙 모자" + ], + "outer": "얇은 가디건" + }, + "m40": { + "items": "(1) a WHITE pique POLO shirt, (2) LIGHT GREY cotton pants with two full legs, (3) a pair of BROWN suede LOAFERS, (4) black SUNGLASSES", + "labels": [ + "피케 티", + "면바지", + "로퍼", + "선글라스" + ], + "outer": "얇은 셔츠" + } + }, + "semi": { + "f20": { + "items": "(1) an IVORY sleeveless linen BLOUSE, (2) BEIGE linen wide slacks with two full legs, (3) a pair of TAN leather slingback flats, (4) a small BLACK structured handbag", + "labels": [ + "린넨 블라우스", + "린넨 슬랙스", + "슬링백", + "핸드백" + ], + "outer": "린넨 셔츠" + }, + "m20": { + "items": "(1) a WHITE short-sleeve linen SHIRT, (2) LIGHT GREY cotton slacks with two full legs, (3) a pair of BROWN suede LOAFERS, (4) a BROWN leather BELT", + "labels": [ + "린넨 셔츠", + "면 슬랙스", + "로퍼", + "벨트" + ], + "outer": "린넨 셔츠" + }, + "f30": { + "items": "(1) an IVORY sleeveless linen BLOUSE, (2) BEIGE linen wide slacks with two full legs, (3) a pair of TAN leather slingback flats, (4) a small BLACK structured handbag", + "labels": [ + "린넨 블라우스", + "린넨 슬랙스", + "슬링백", + "핸드백" + ], + "outer": "린넨 셔츠" + }, + "m30": { + "items": "(1) a WHITE short-sleeve linen SHIRT, (2) LIGHT GREY cotton slacks with two full legs, (3) a pair of BROWN suede LOAFERS, (4) a BROWN leather BELT", + "labels": [ + "린넨 셔츠", + "면 슬랙스", + "로퍼", + "벨트" + ], + "outer": "린넨 셔츠" + }, + "f40": { + "items": "(1) an IVORY sleeveless linen BLOUSE, (2) BEIGE linen wide slacks with two full legs, (3) a pair of TAN leather slingback flats, (4) a small BLACK structured handbag", + "labels": [ + "린넨 블라우스", + "린넨 슬랙스", + "슬링백", + "핸드백" + ], + "outer": "린넨 셔츠" + }, + "m40": { + "items": "(1) a WHITE short-sleeve linen SHIRT, (2) LIGHT GREY cotton slacks with two full legs, (3) a pair of BROWN suede LOAFERS, (4) a BROWN leather BELT", + "labels": [ + "린넨 셔츠", + "면 슬랙스", + "로퍼", + "벨트" + ], + "outer": "린넨 셔츠" + } + }, + "formal": { + "f20": { + "items": "(1) an IVORY short-sleeve silk BLOUSE, (2) a LIGHT GREY linen SUIT JACKET, (3) matching LIGHT GREY suit trousers with two full legs, (4) a pair of NUDE PUMPS", + "labels": [ + "블라우스", + "린넨 재킷", + "정장 바지", + "펌프스" + ], + "outer": "린넨 재킷" + }, + "m20": { + "items": "(1) a WHITE dress SHIRT, (2) a LIGHT GREY summer SUIT JACKET, (3) matching LIGHT GREY suit trousers with two full legs, (4) a pair of BLACK oxford dress SHOES", + "labels": [ + "드레스 셔츠", + "여름 정장 재킷", + "정장 바지", + "구두" + ], + "outer": "여름 정장 재킷" + }, + "f30": { + "items": "(1) an IVORY short-sleeve silk BLOUSE, (2) a LIGHT GREY linen SUIT JACKET, (3) matching LIGHT GREY suit trousers with two full legs, (4) a pair of NUDE PUMPS", + "labels": [ + "블라우스", + "린넨 재킷", + "정장 바지", + "펌프스" + ], + "outer": "린넨 재킷" + }, + "m30": { + "items": "(1) a WHITE dress SHIRT, (2) a LIGHT GREY summer SUIT JACKET, (3) matching LIGHT GREY suit trousers with two full legs, (4) a pair of BLACK oxford dress SHOES", + "labels": [ + "드레스 셔츠", + "여름 정장 재킷", + "정장 바지", + "구두" + ], + "outer": "여름 정장 재킷" + }, + "f40": { + "items": "(1) an IVORY short-sleeve silk BLOUSE, (2) a LIGHT GREY linen SUIT JACKET, (3) matching LIGHT GREY suit trousers with two full legs, (4) a pair of NUDE PUMPS", + "labels": [ + "블라우스", + "린넨 재킷", + "정장 바지", + "펌프스" + ], + "outer": "린넨 재킷" + }, + "m40": { + "items": "(1) a WHITE dress SHIRT, (2) a LIGHT GREY summer SUIT JACKET, (3) matching LIGHT GREY suit trousers with two full legs, (4) a pair of BLACK oxford dress SHOES", + "labels": [ + "드레스 셔츠", + "여름 정장 재킷", + "정장 바지", + "구두" + ], + "outer": "여름 정장 재킷" + } + }, + "street": { + "f20": { + "items": "(1) a boxy BLACK short-sleeve T-shirt, (2) a KHAKI cargo MINI SKIRT, (3) a pair of chunky WHITE sneakers, (4) a plain BLACK baseball CAP", + "labels": [ + "박시 티", + "카고 스커트", + "어글리 슈즈", + "볼캡" + ], + "outer": "오버핏 셔츠" + }, + "m20": { + "items": "(1) an oversized BLACK short-sleeve T-shirt, (2) KHAKI cargo SHORTS, (3) a pair of chunky WHITE sneakers, (4) a plain BEIGE BUCKET HAT", + "labels": [ + "오버핏 티", + "카고 반바지", + "어글리 슈즈", + "버킷햇" + ], + "outer": "오버핏 셔츠" + }, + "f30": { + "items": "(1) a boxy BLACK short-sleeve T-shirt, (2) a KHAKI cargo MINI SKIRT, (3) a pair of chunky WHITE sneakers, (4) a plain BLACK baseball CAP", + "labels": [ + "박시 티", + "카고 스커트", + "어글리 슈즈", + "볼캡" + ], + "outer": "오버핏 셔츠" + }, + "m30": { + "items": "(1) an oversized BLACK short-sleeve T-shirt, (2) KHAKI cargo SHORTS, (3) a pair of chunky WHITE sneakers, (4) a plain BEIGE BUCKET HAT", + "labels": [ + "오버핏 티", + "카고 반바지", + "어글리 슈즈", + "버킷햇" + ], + "outer": "오버핏 셔츠" + }, + "f40": { + "items": "(1) a boxy BLACK short-sleeve T-shirt, (2) a KHAKI cargo MINI SKIRT, (3) a pair of chunky WHITE sneakers, (4) a plain BLACK baseball CAP", + "labels": [ + "박시 티", + "카고 스커트", + "어글리 슈즈", + "볼캡" + ], + "outer": "오버핏 셔츠" + }, + "m40": { + "items": "(1) an oversized BLACK short-sleeve T-shirt, (2) KHAKI cargo SHORTS, (3) a pair of chunky WHITE sneakers, (4) a plain BEIGE BUCKET HAT", + "labels": [ + "오버핏 티", + "카고 반바지", + "어글리 슈즈", + "버킷햇" + ], + "outer": "오버핏 셔츠" + } + }, + "minimal": { + "f20": { + "items": "(1) a plain WHITE cotton T-shirt, (2) BEIGE linen pants with two full legs, (3) a pair of simple TAN leather SANDALS, (4) an IVORY canvas tote bag", + "labels": [ + "흰 티", + "린넨 팬츠", + "샌들", + "에코백" + ], + "outer": "얇은 셔츠" + }, + "m20": { + "items": "(1) a plain WHITE cotton T-shirt, (2) BEIGE cotton SHORTS, (3) a pair of plain WHITE low-top sneakers, (4) an IVORY canvas tote bag", + "labels": [ + "흰 티", + "면 반바지", + "운동화", + "에코백" + ], + "outer": "얇은 셔츠" + }, + "f30": { + "items": "(1) a plain WHITE cotton T-shirt, (2) BEIGE linen pants with two full legs, (3) a pair of simple TAN leather SANDALS, (4) an IVORY canvas tote bag", + "labels": [ + "흰 티", + "린넨 팬츠", + "샌들", + "에코백" + ], + "outer": "얇은 셔츠" + }, + "m30": { + "items": "(1) a plain WHITE cotton T-shirt, (2) BEIGE cotton SHORTS, (3) a pair of plain WHITE low-top sneakers, (4) an IVORY canvas tote bag", + "labels": [ + "흰 티", + "면 반바지", + "운동화", + "에코백" + ], + "outer": "얇은 셔츠" + }, + "f40": { + "items": "(1) a plain WHITE cotton T-shirt, (2) BEIGE linen pants with two full legs, (3) a pair of simple TAN leather SANDALS, (4) an IVORY canvas tote bag", + "labels": [ + "흰 티", + "린넨 팬츠", + "샌들", + "에코백" + ], + "outer": "얇은 셔츠" + }, + "m40": { + "items": "(1) a plain WHITE cotton T-shirt, (2) BEIGE cotton SHORTS, (3) a pair of plain WHITE low-top sneakers, (4) an IVORY canvas tote bag", + "labels": [ + "흰 티", + "면 반바지", + "운동화", + "에코백" + ], + "outer": "얇은 셔츠" + } + } + }, + "layering": "sleeveless or short-sleeve linen/cotton top, shorts or light skirt, sandals, no outer layer" + }, + { + "id": "warm", + "from": 23, + "outfits": { + "casual": { + "f20": { + "items": "(1) a NAVY-and-white striped short-sleeve T-shirt, (2) a mid-blue denim MIDI SKIRT, (3) a pair of plain WHITE low-top sneakers, (4) a small IVORY crossbody bag", + "labels": [ + "반팔 티", + "데님 스커트", + "운동화", + "미니백" + ], + "outer": "얇은 셔츠" + }, + "m20": { + "items": "(1) a plain IVORY short-sleeve T-shirt, (2) a thin light-blue short-sleeve button SHIRT worn open, (3) BEIGE cotton chino pants with two full legs, (4) a pair of plain WHITE low-top sneakers", + "labels": [ + "반팔 티", + "반팔 셔츠", + "면바지", + "운동화" + ], + "outer": "반팔 셔츠" + }, + "f30": { + "items": "(1) an IVORY short-sleeve knit TOP, (2) BEIGE wide slacks with two full legs, (3) a pair of BLACK ballet FLATS, (4) a TAN leather tote bag", + "labels": [ + "반팔 니트", + "와이드 슬랙스", + "플랫슈즈", + "토트백" + ], + "outer": "얇은 가디건" + }, + "m30": { + "items": "(1) a WHITE short-sleeve oxford SHIRT, (2) NAVY chino pants with two full legs, (3) a pair of plain WHITE low-top sneakers, (4) a simple silver WRIST WATCH", + "labels": [ + "반팔 셔츠", + "면바지", + "운동화", + "시계" + ], + "outer": "얇은 셔츠" + }, + "f40": { + "items": "(1) a SAGE-GREEN short-sleeve BLOUSE, (2) NAVY wide slacks with two full legs, (3) a pair of BEIGE low MULES, (4) a small BLACK handbag", + "labels": [ + "블라우스", + "슬랙스", + "뮬", + "핸드백" + ], + "outer": "얇은 가디건" + }, + "m40": { + "items": "(1) a NAVY POLO shirt, (2) BEIGE chino pants with two full legs, (3) a pair of BROWN leather LOAFERS, (4) a BROWN leather BELT", + "labels": [ + "카라 티", + "면바지", + "로퍼", + "벨트" + ], + "outer": "얇은 셔츠" + } + }, + "semi": { + "f20": { + "items": "(1) a LIGHT-BLUE short-sleeve BLOUSE, (2) a NAVY pleated MIDI SKIRT, (3) a pair of BEIGE low-heel PUMPS, (4) a TAN leather tote bag", + "labels": [ + "반팔 블라우스", + "미디 스커트", + "펌프스", + "토트백" + ], + "outer": "얇은 가디건" + }, + "m20": { + "items": "(1) a NAVY knit POLO shirt, (2) BEIGE chino pants with two full legs, (3) a pair of BROWN leather LOAFERS, (4) a simple silver WRIST WATCH", + "labels": [ + "니트 폴로", + "치노 팬츠", + "로퍼", + "시계" + ], + "outer": "얇은 셔츠" + }, + "f30": { + "items": "(1) a LIGHT-BLUE short-sleeve BLOUSE, (2) a NAVY pleated MIDI SKIRT, (3) a pair of BEIGE low-heel PUMPS, (4) a TAN leather tote bag", + "labels": [ + "반팔 블라우스", + "미디 스커트", + "펌프스", + "토트백" + ], + "outer": "얇은 가디건" + }, + "m30": { + "items": "(1) a NAVY knit POLO shirt, (2) BEIGE chino pants with two full legs, (3) a pair of BROWN leather LOAFERS, (4) a simple silver WRIST WATCH", + "labels": [ + "니트 폴로", + "치노 팬츠", + "로퍼", + "시계" + ], + "outer": "얇은 셔츠" + }, + "f40": { + "items": "(1) a LIGHT-BLUE short-sleeve BLOUSE, (2) a NAVY pleated MIDI SKIRT, (3) a pair of BEIGE low-heel PUMPS, (4) a TAN leather tote bag", + "labels": [ + "반팔 블라우스", + "미디 스커트", + "펌프스", + "토트백" + ], + "outer": "얇은 가디건" + }, + "m40": { + "items": "(1) a NAVY knit POLO shirt, (2) BEIGE chino pants with two full legs, (3) a pair of BROWN leather LOAFERS, (4) a simple silver WRIST WATCH", + "labels": [ + "니트 폴로", + "치노 팬츠", + "로퍼", + "시계" + ], + "outer": "얇은 셔츠" + } + }, + "formal": { + "f20": { + "items": "(1) a WHITE BLOUSE, (2) a NAVY SUIT JACKET, (3) a NAVY pencil SKIRT, (4) a pair of BLACK PUMPS", + "labels": [ + "블라우스", + "정장 재킷", + "H라인 스커트", + "펌프스" + ], + "outer": "정장 재킷" + }, + "m20": { + "items": "(1) a WHITE dress SHIRT, (2) a NAVY SUIT JACKET, (3) matching NAVY suit trousers with two full legs, (4) a plain NAVY silk TIE", + "labels": [ + "드레스 셔츠", + "정장 재킷", + "정장 바지", + "넥타이" + ], + "outer": "정장 재킷" + }, + "f30": { + "items": "(1) a WHITE BLOUSE, (2) a NAVY SUIT JACKET, (3) a NAVY pencil SKIRT, (4) a pair of BLACK PUMPS", + "labels": [ + "블라우스", + "정장 재킷", + "H라인 스커트", + "펌프스" + ], + "outer": "정장 재킷" + }, + "m30": { + "items": "(1) a WHITE dress SHIRT, (2) a NAVY SUIT JACKET, (3) matching NAVY suit trousers with two full legs, (4) a plain NAVY silk TIE", + "labels": [ + "드레스 셔츠", + "정장 재킷", + "정장 바지", + "넥타이" + ], + "outer": "정장 재킷" + }, + "f40": { + "items": "(1) a WHITE BLOUSE, (2) a NAVY SUIT JACKET, (3) a NAVY pencil SKIRT, (4) a pair of BLACK PUMPS", + "labels": [ + "블라우스", + "정장 재킷", + "H라인 스커트", + "펌프스" + ], + "outer": "정장 재킷" + }, + "m40": { + "items": "(1) a WHITE dress SHIRT, (2) a NAVY SUIT JACKET, (3) matching NAVY suit trousers with two full legs, (4) a plain NAVY silk TIE", + "labels": [ + "드레스 셔츠", + "정장 재킷", + "정장 바지", + "넥타이" + ], + "outer": "정장 재킷" + } + }, + "street": { + "f20": { + "items": "(1) a fitted WHITE cropped baby T-shirt, (2) wide KHAKI cargo pants with two full legs, (3) a pair of WHITE platform sneakers, (4) a small BLACK nylon shoulder bag", + "labels": [ + "크롭 티", + "카고 팬츠", + "운동화", + "숄더백" + ], + "outer": "오버핏 셔츠" + }, + "m20": { + "items": "(1) an oversized LIGHT-BLUE short-sleeve SHIRT, (2) wide mid-blue denim JEANS with two full legs, (3) a pair of WHITE high-top sneakers, (4) a plain NAVY baseball CAP", + "labels": [ + "오버핏 셔츠", + "와이드 데님", + "하이탑", + "볼캡" + ], + "outer": "오버핏 셔츠" + }, + "f30": { + "items": "(1) a fitted WHITE cropped baby T-shirt, (2) wide KHAKI cargo pants with two full legs, (3) a pair of WHITE platform sneakers, (4) a small BLACK nylon shoulder bag", + "labels": [ + "크롭 티", + "카고 팬츠", + "운동화", + "숄더백" + ], + "outer": "오버핏 셔츠" + }, + "m30": { + "items": "(1) an oversized LIGHT-BLUE short-sleeve SHIRT, (2) wide mid-blue denim JEANS with two full legs, (3) a pair of WHITE high-top sneakers, (4) a plain NAVY baseball CAP", + "labels": [ + "오버핏 셔츠", + "와이드 데님", + "하이탑", + "볼캡" + ], + "outer": "오버핏 셔츠" + }, + "f40": { + "items": "(1) a fitted WHITE cropped baby T-shirt, (2) wide KHAKI cargo pants with two full legs, (3) a pair of WHITE platform sneakers, (4) a small BLACK nylon shoulder bag", + "labels": [ + "크롭 티", + "카고 팬츠", + "운동화", + "숄더백" + ], + "outer": "오버핏 셔츠" + }, + "m40": { + "items": "(1) an oversized LIGHT-BLUE short-sleeve SHIRT, (2) wide mid-blue denim JEANS with two full legs, (3) a pair of WHITE high-top sneakers, (4) a plain NAVY baseball CAP", + "labels": [ + "오버핏 셔츠", + "와이드 데님", + "하이탑", + "볼캡" + ], + "outer": "오버핏 셔츠" + } + }, + "minimal": { + "f20": { + "items": "(1) a NAVY-and-white STRIPED T-shirt, (2) mid-blue straight JEANS with two full legs, (3) a pair of plain WHITE low-top sneakers, (4) an IVORY canvas tote bag", + "labels": [ + "스트라이프 티", + "청바지", + "운동화", + "에코백" + ], + "outer": "얇은 셔츠" + }, + "m20": { + "items": "(1) a plain heather GREY T-shirt, (2) BEIGE chino pants with two full legs, (3) a pair of plain WHITE low-top sneakers, (4) an IVORY canvas tote bag", + "labels": [ + "회색 티", + "면바지", + "운동화", + "에코백" + ], + "outer": "얇은 셔츠" + }, + "f30": { + "items": "(1) a NAVY-and-white STRIPED T-shirt, (2) mid-blue straight JEANS with two full legs, (3) a pair of plain WHITE low-top sneakers, (4) an IVORY canvas tote bag", + "labels": [ + "스트라이프 티", + "청바지", + "운동화", + "에코백" + ], + "outer": "얇은 셔츠" + }, + "m30": { + "items": "(1) a plain heather GREY T-shirt, (2) BEIGE chino pants with two full legs, (3) a pair of plain WHITE low-top sneakers, (4) an IVORY canvas tote bag", + "labels": [ + "회색 티", + "면바지", + "운동화", + "에코백" + ], + "outer": "얇은 셔츠" + }, + "f40": { + "items": "(1) a NAVY-and-white STRIPED T-shirt, (2) mid-blue straight JEANS with two full legs, (3) a pair of plain WHITE low-top sneakers, (4) an IVORY canvas tote bag", + "labels": [ + "스트라이프 티", + "청바지", + "운동화", + "에코백" + ], + "outer": "얇은 셔츠" + }, + "m40": { + "items": "(1) a plain heather GREY T-shirt, (2) BEIGE chino pants with two full legs, (3) a pair of plain WHITE low-top sneakers, (4) an IVORY canvas tote bag", + "labels": [ + "회색 티", + "면바지", + "운동화", + "에코백" + ], + "outer": "얇은 셔츠" + } + } + }, + "layering": "short-sleeve tee or thin shirt, light cotton trousers or skirt, optional thin overshirt" + }, + { + "id": "mild", + "from": 17, + "outfits": { + "casual": { + "f20": { + "items": "(1) an IVORY long-sleeve T-shirt, (2) a soft PASTEL-YELLOW CARDIGAN, (3) light-blue wide JEANS with two full legs, (4) a pair of plain WHITE low-top sneakers", + "labels": [ + "긴팔 티", + "가디건", + "청바지", + "운동화" + ], + "outer": "가디건" + }, + "m20": { + "items": "(1) a LIGHT IVORY thin LONG-SLEEVE crewneck T-shirt, (2) a lightweight ORANGE zip-front windbreaker, (3) BEIGE cotton jogger pants, (4) a pair of plain WHITE low-top sneakers, (5) a SMALL NAVY crossbody bag", + "labels": [ + "얇은 긴팔", + "바람막이", + "면바지", + "운동화" + ], + "outer": "바람막이" + }, + "f30": { + "items": "(1) an IVORY long-sleeve BLOUSE, (2) a light BEIGE knit CARDIGAN, (3) BLACK straight slacks with two full legs, (4) a pair of BLACK leather LOAFERS", + "labels": [ + "블라우스", + "가디건", + "슬랙스", + "로퍼" + ], + "outer": "가디건" + }, + "m30": { + "items": "(1) a LIGHT-BLUE long-sleeve oxford SHIRT, (2) a light NAVY cotton JACKET, (3) GREY slacks with two full legs, (4) a pair of plain WHITE low-top sneakers", + "labels": [ + "옥스퍼드 셔츠", + "얇은 자켓", + "슬랙스", + "운동화" + ], + "outer": "얇은 자켓" + }, + "f40": { + "items": "(1) a soft IVORY knit TOP, (2) a light CAMEL CARDIGAN, (3) NAVY wide slacks with two full legs, (4) a pair of BEIGE ballet FLATS", + "labels": [ + "니트 탑", + "가디건", + "슬랙스", + "플랫슈즈" + ], + "outer": "가디건" + }, + "m40": { + "items": "(1) a LIGHT GREY long-sleeve POLO shirt, (2) a NAVY zip windbreaker, (3) BEIGE slacks with two full legs, (4) a pair of BROWN leather LOAFERS", + "labels": [ + "긴팔 카라 티", + "바람막이", + "슬랙스", + "로퍼" + ], + "outer": "바람막이" + } + }, + "semi": { + "f20": { + "items": "(1) an IVORY long-sleeve BLOUSE, (2) a light BEIGE cotton BLAZER, (3) BLACK straight slacks with two full legs, (4) a pair of BLACK leather LOAFERS", + "labels": [ + "블라우스", + "블레이저", + "슬랙스", + "로퍼" + ], + "outer": "블레이저" + }, + "m20": { + "items": "(1) a LIGHT-BLUE oxford SHIRT, (2) a NAVY unstructured BLAZER, (3) GREY slacks with two full legs, (4) a pair of BROWN leather LOAFERS", + "labels": [ + "옥스퍼드 셔츠", + "블레이저", + "슬랙스", + "로퍼" + ], + "outer": "블레이저" + }, + "f30": { + "items": "(1) an IVORY long-sleeve BLOUSE, (2) a light BEIGE cotton BLAZER, (3) BLACK straight slacks with two full legs, (4) a pair of BLACK leather LOAFERS", + "labels": [ + "블라우스", + "블레이저", + "슬랙스", + "로퍼" + ], + "outer": "블레이저" + }, + "m30": { + "items": "(1) a LIGHT-BLUE oxford SHIRT, (2) a NAVY unstructured BLAZER, (3) GREY slacks with two full legs, (4) a pair of BROWN leather LOAFERS", + "labels": [ + "옥스퍼드 셔츠", + "블레이저", + "슬랙스", + "로퍼" + ], + "outer": "블레이저" + }, + "f40": { + "items": "(1) an IVORY long-sleeve BLOUSE, (2) a light BEIGE cotton BLAZER, (3) BLACK straight slacks with two full legs, (4) a pair of BLACK leather LOAFERS", + "labels": [ + "블라우스", + "블레이저", + "슬랙스", + "로퍼" + ], + "outer": "블레이저" + }, + "m40": { + "items": "(1) a LIGHT-BLUE oxford SHIRT, (2) a NAVY unstructured BLAZER, (3) GREY slacks with two full legs, (4) a pair of BROWN leather LOAFERS", + "labels": [ + "옥스퍼드 셔츠", + "블레이저", + "슬랙스", + "로퍼" + ], + "outer": "블레이저" + } + }, + "formal": { + "f20": { + "items": "(1) an IVORY BLOUSE, (2) a CHARCOAL SUIT JACKET, (3) matching CHARCOAL suit trousers with two full legs, (4) a pair of BLACK PUMPS", + "labels": [ + "블라우스", + "정장 재킷", + "정장 바지", + "펌프스" + ], + "outer": "정장 재킷" + }, + "m20": { + "items": "(1) a LIGHT-BLUE dress SHIRT, (2) a CHARCOAL SUIT JACKET, (3) matching CHARCOAL suit trousers with two full legs, (4) a pair of BLACK oxford dress SHOES", + "labels": [ + "드레스 셔츠", + "정장 재킷", + "정장 바지", + "구두" + ], + "outer": "정장 재킷" + }, + "f30": { + "items": "(1) an IVORY BLOUSE, (2) a CHARCOAL SUIT JACKET, (3) matching CHARCOAL suit trousers with two full legs, (4) a pair of BLACK PUMPS", + "labels": [ + "블라우스", + "정장 재킷", + "정장 바지", + "펌프스" + ], + "outer": "정장 재킷" + }, + "m30": { + "items": "(1) a LIGHT-BLUE dress SHIRT, (2) a CHARCOAL SUIT JACKET, (3) matching CHARCOAL suit trousers with two full legs, (4) a pair of BLACK oxford dress SHOES", + "labels": [ + "드레스 셔츠", + "정장 재킷", + "정장 바지", + "구두" + ], + "outer": "정장 재킷" + }, + "f40": { + "items": "(1) an IVORY BLOUSE, (2) a CHARCOAL SUIT JACKET, (3) matching CHARCOAL suit trousers with two full legs, (4) a pair of BLACK PUMPS", + "labels": [ + "블라우스", + "정장 재킷", + "정장 바지", + "펌프스" + ], + "outer": "정장 재킷" + }, + "m40": { + "items": "(1) a LIGHT-BLUE dress SHIRT, (2) a CHARCOAL SUIT JACKET, (3) matching CHARCOAL suit trousers with two full legs, (4) a pair of BLACK oxford dress SHOES", + "labels": [ + "드레스 셔츠", + "정장 재킷", + "정장 바지", + "구두" + ], + "outer": "정장 재킷" + } + }, + "street": { + "f20": { + "items": "(1) a heather GREY ZIP HOODIE, (2) light-blue wide JEANS with two full legs, (3) a pair of chunky WHITE sneakers, (4) a plain BLACK baseball CAP", + "labels": [ + "집업 후드", + "와이드 데님", + "어글리 슈즈", + "볼캡" + ], + "outer": "집업 후드" + }, + "m20": { + "items": "(1) a plain IVORY SWEATSHIRT, (2) a NAVY nylon TRACK JACKET with white stripes on the sleeves, (3) wide KHAKI cargo pants with two full legs, (4) a pair of chunky WHITE sneakers", + "labels": [ + "맨투맨", + "트랙 재킷", + "카고 팬츠", + "어글리 슈즈" + ], + "outer": "트랙 재킷" + }, + "f30": { + "items": "(1) a heather GREY ZIP HOODIE, (2) light-blue wide JEANS with two full legs, (3) a pair of chunky WHITE sneakers, (4) a plain BLACK baseball CAP", + "labels": [ + "집업 후드", + "와이드 데님", + "어글리 슈즈", + "볼캡" + ], + "outer": "집업 후드" + }, + "m30": { + "items": "(1) a plain IVORY SWEATSHIRT, (2) a NAVY nylon TRACK JACKET with white stripes on the sleeves, (3) wide KHAKI cargo pants with two full legs, (4) a pair of chunky WHITE sneakers", + "labels": [ + "맨투맨", + "트랙 재킷", + "카고 팬츠", + "어글리 슈즈" + ], + "outer": "트랙 재킷" + }, + "f40": { + "items": "(1) a heather GREY ZIP HOODIE, (2) light-blue wide JEANS with two full legs, (3) a pair of chunky WHITE sneakers, (4) a plain BLACK baseball CAP", + "labels": [ + "집업 후드", + "와이드 데님", + "어글리 슈즈", + "볼캡" + ], + "outer": "집업 후드" + }, + "m40": { + "items": "(1) a plain IVORY SWEATSHIRT, (2) a NAVY nylon TRACK JACKET with white stripes on the sleeves, (3) wide KHAKI cargo pants with two full legs, (4) a pair of chunky WHITE sneakers", + "labels": [ + "맨투맨", + "트랙 재킷", + "카고 팬츠", + "어글리 슈즈" + ], + "outer": "트랙 재킷" + } + }, + "minimal": { + "f20": { + "items": "(1) a plain WHITE long-sleeve T-shirt, (2) a NAVY knit CARDIGAN, (3) mid-blue straight JEANS with two full legs, (4) a pair of plain WHITE low-top sneakers", + "labels": [ + "긴팔 티", + "가디건", + "청바지", + "운동화" + ], + "outer": "가디건" + }, + "m20": { + "items": "(1) a plain WHITE long-sleeve T-shirt, (2) a LIGHT GREY knit CARDIGAN, (3) mid-blue straight JEANS with two full legs, (4) a pair of plain WHITE low-top sneakers", + "labels": [ + "긴팔 티", + "가디건", + "청바지", + "운동화" + ], + "outer": "가디건" + }, + "f30": { + "items": "(1) a plain WHITE long-sleeve T-shirt, (2) a NAVY knit CARDIGAN, (3) mid-blue straight JEANS with two full legs, (4) a pair of plain WHITE low-top sneakers", + "labels": [ + "긴팔 티", + "가디건", + "청바지", + "운동화" + ], + "outer": "가디건" + }, + "m30": { + "items": "(1) a plain WHITE long-sleeve T-shirt, (2) a LIGHT GREY knit CARDIGAN, (3) mid-blue straight JEANS with two full legs, (4) a pair of plain WHITE low-top sneakers", + "labels": [ + "긴팔 티", + "가디건", + "청바지", + "운동화" + ], + "outer": "가디건" + }, + "f40": { + "items": "(1) a plain WHITE long-sleeve T-shirt, (2) a NAVY knit CARDIGAN, (3) mid-blue straight JEANS with two full legs, (4) a pair of plain WHITE low-top sneakers", + "labels": [ + "긴팔 티", + "가디건", + "청바지", + "운동화" + ], + "outer": "가디건" + }, + "m40": { + "items": "(1) a plain WHITE long-sleeve T-shirt, (2) a LIGHT GREY knit CARDIGAN, (3) mid-blue straight JEANS with two full legs, (4) a pair of plain WHITE low-top sneakers", + "labels": [ + "긴팔 티", + "가디건", + "청바지", + "운동화" + ], + "outer": "가디건" + } + } + }, + "layering": "long-sleeve tee or light sweatshirt or light knit, thin cardigan or overshirt, jeans" + }, + { + "id": "cool", + "from": 12, + "outfits": { + "casual": { + "f20": { + "items": "(1) a CREAM cropped KNIT sweater, (2) a light-blue DENIM JACKET, (3) a long BROWN pleated SKIRT, (4) a pair of plain WHITE low-top sneakers", + "labels": [ + "크롭 니트", + "청자켓", + "롱스커트", + "운동화" + ], + "outer": "청자켓" + }, + "m20": { + "items": "(1) a heather GREY HOODIE, (2) a NAVY nylon COACH JACKET, (3) mid-blue wide JEANS with two full legs, (4) a pair of plain WHITE low-top sneakers", + "labels": [ + "후드티", + "코치 자켓", + "청바지", + "운동화" + ], + "outer": "코치 자켓" + }, + "f30": { + "items": "(1) an IVORY crewneck KNIT sweater, (2) a BEIGE single-breasted BLAZER, (3) mid-blue straight JEANS with two full legs, (4) a pair of BLACK leather LOAFERS", + "labels": [ + "니트", + "블레이저", + "청바지", + "로퍼" + ], + "outer": "블레이저" + }, + "m30": { + "items": "(1) a soft OATMEAL crewneck KNIT sweater, (2) a NAVY casual cotton JACKET, (3) mid-blue straight JEANS with two full legs, (4) a pair of plain WHITE low-top sneakers", + "labels": [ + "니트", + "자켓", + "청바지", + "운동화" + ], + "outer": "자켓" + }, + "f40": { + "items": "(1) a CREAM thin turtleneck KNIT, (2) a long CAMEL knit CARDIGAN, (3) BLACK slacks with two full legs, (4) a pair of BLACK leather LOAFERS", + "labels": [ + "니트", + "롱 가디건", + "슬랙스", + "로퍼" + ], + "outer": "롱 가디건" + }, + "m40": { + "items": "(1) a LIGHT-BLUE long-sleeve button SHIRT, (2) a GREY crewneck KNIT sweater, (3) CHARCOAL slacks with two full legs, (4) a pair of BROWN leather LOAFERS", + "labels": [ + "셔츠", + "니트", + "슬랙스", + "로퍼" + ], + "outer": "니트" + } + }, + "semi": { + "f20": { + "items": "(1) a CREAM fine-knit SWEATER, (2) a CAMEL BLAZER, (3) CHARCOAL wide slacks with two full legs, (4) a pair of BLACK leather ANKLE BOOTS", + "labels": [ + "니트", + "블레이저", + "슬랙스", + "앵클부츠" + ], + "outer": "블레이저" + }, + "m20": { + "items": "(1) a WHITE button SHIRT, (2) a GREY crewneck KNIT sweater, (3) a NAVY BLAZER, (4) CHARCOAL slacks with two full legs", + "labels": [ + "셔츠", + "니트", + "블레이저", + "슬랙스" + ], + "outer": "블레이저" + }, + "f30": { + "items": "(1) a CREAM fine-knit SWEATER, (2) a CAMEL BLAZER, (3) CHARCOAL wide slacks with two full legs, (4) a pair of BLACK leather ANKLE BOOTS", + "labels": [ + "니트", + "블레이저", + "슬랙스", + "앵클부츠" + ], + "outer": "블레이저" + }, + "m30": { + "items": "(1) a WHITE button SHIRT, (2) a GREY crewneck KNIT sweater, (3) a NAVY BLAZER, (4) CHARCOAL slacks with two full legs", + "labels": [ + "셔츠", + "니트", + "블레이저", + "슬랙스" + ], + "outer": "블레이저" + }, + "f40": { + "items": "(1) a CREAM fine-knit SWEATER, (2) a CAMEL BLAZER, (3) CHARCOAL wide slacks with two full legs, (4) a pair of BLACK leather ANKLE BOOTS", + "labels": [ + "니트", + "블레이저", + "슬랙스", + "앵클부츠" + ], + "outer": "블레이저" + }, + "m40": { + "items": "(1) a WHITE button SHIRT, (2) a GREY crewneck KNIT sweater, (3) a NAVY BLAZER, (4) CHARCOAL slacks with two full legs", + "labels": [ + "셔츠", + "니트", + "블레이저", + "슬랙스" + ], + "outer": "블레이저" + } + }, + "formal": { + "f20": { + "items": "(1) a BLACK fine-knit TOP, (2) a GREY SUIT JACKET, (3) matching GREY suit trousers with two full legs, (4) a pair of BLACK leather LOAFERS", + "labels": [ + "니트", + "정장 재킷", + "정장 바지", + "로퍼" + ], + "outer": "정장 재킷" + }, + "m20": { + "items": "(1) a WHITE dress SHIRT, (2) a GREY SUIT JACKET, (3) matching GREY suit trousers with two full legs, (4) a plain BURGUNDY silk TIE", + "labels": [ + "드레스 셔츠", + "정장 재킷", + "정장 바지", + "넥타이" + ], + "outer": "정장 재킷" + }, + "f30": { + "items": "(1) a BLACK fine-knit TOP, (2) a GREY SUIT JACKET, (3) matching GREY suit trousers with two full legs, (4) a pair of BLACK leather LOAFERS", + "labels": [ + "니트", + "정장 재킷", + "정장 바지", + "로퍼" + ], + "outer": "정장 재킷" + }, + "m30": { + "items": "(1) a WHITE dress SHIRT, (2) a GREY SUIT JACKET, (3) matching GREY suit trousers with two full legs, (4) a plain BURGUNDY silk TIE", + "labels": [ + "드레스 셔츠", + "정장 재킷", + "정장 바지", + "넥타이" + ], + "outer": "정장 재킷" + }, + "f40": { + "items": "(1) a BLACK fine-knit TOP, (2) a GREY SUIT JACKET, (3) matching GREY suit trousers with two full legs, (4) a pair of BLACK leather LOAFERS", + "labels": [ + "니트", + "정장 재킷", + "정장 바지", + "로퍼" + ], + "outer": "정장 재킷" + }, + "m40": { + "items": "(1) a WHITE dress SHIRT, (2) a GREY SUIT JACKET, (3) matching GREY suit trousers with two full legs, (4) a plain BURGUNDY silk TIE", + "labels": [ + "드레스 셔츠", + "정장 재킷", + "정장 바지", + "넥타이" + ], + "outer": "정장 재킷" + } + }, + "street": { + "f20": { + "items": "(1) a heather GREY HOODIE, (2) a NAVY-and-ivory VARSITY JACKET with no letters or patches, (3) light-blue wide JEANS with two full legs, (4) a pair of chunky WHITE sneakers", + "labels": [ + "후드티", + "바시티 재킷", + "와이드 데님", + "어글리 슈즈" + ], + "outer": "바시티 재킷" + }, + "m20": { + "items": "(1) a BLACK HOODIE, (2) a KHAKI ANORAK windbreaker, (3) BLACK cargo pants with two full legs, (4) a pair of WHITE high-top sneakers", + "labels": [ + "후드티", + "아노락", + "카고 팬츠", + "하이탑" + ], + "outer": "아노락" + }, + "f30": { + "items": "(1) a heather GREY HOODIE, (2) a NAVY-and-ivory VARSITY JACKET with no letters or patches, (3) light-blue wide JEANS with two full legs, (4) a pair of chunky WHITE sneakers", + "labels": [ + "후드티", + "바시티 재킷", + "와이드 데님", + "어글리 슈즈" + ], + "outer": "바시티 재킷" + }, + "m30": { + "items": "(1) a BLACK HOODIE, (2) a KHAKI ANORAK windbreaker, (3) BLACK cargo pants with two full legs, (4) a pair of WHITE high-top sneakers", + "labels": [ + "후드티", + "아노락", + "카고 팬츠", + "하이탑" + ], + "outer": "아노락" + }, + "f40": { + "items": "(1) a heather GREY HOODIE, (2) a NAVY-and-ivory VARSITY JACKET with no letters or patches, (3) light-blue wide JEANS with two full legs, (4) a pair of chunky WHITE sneakers", + "labels": [ + "후드티", + "바시티 재킷", + "와이드 데님", + "어글리 슈즈" + ], + "outer": "바시티 재킷" + }, + "m40": { + "items": "(1) a BLACK HOODIE, (2) a KHAKI ANORAK windbreaker, (3) BLACK cargo pants with two full legs, (4) a pair of WHITE high-top sneakers", + "labels": [ + "후드티", + "아노락", + "카고 팬츠", + "하이탑" + ], + "outer": "아노락" + } + }, + "minimal": { + "f20": { + "items": "(1) a soft OATMEAL crewneck KNIT sweater, (2) mid-blue straight JEANS with two full legs, (3) a pair of plain WHITE low-top sneakers, (4) an IVORY canvas tote bag", + "labels": [ + "니트", + "청바지", + "운동화", + "에코백" + ], + "outer": "니트" + }, + "m20": { + "items": "(1) a NAVY crewneck KNIT sweater, (2) BEIGE chino pants with two full legs, (3) a pair of plain WHITE low-top sneakers, (4) an IVORY canvas tote bag", + "labels": [ + "니트", + "면바지", + "운동화", + "에코백" + ], + "outer": "니트" + }, + "f30": { + "items": "(1) a soft OATMEAL crewneck KNIT sweater, (2) mid-blue straight JEANS with two full legs, (3) a pair of plain WHITE low-top sneakers, (4) an IVORY canvas tote bag", + "labels": [ + "니트", + "청바지", + "운동화", + "에코백" + ], + "outer": "니트" + }, + "m30": { + "items": "(1) a NAVY crewneck KNIT sweater, (2) BEIGE chino pants with two full legs, (3) a pair of plain WHITE low-top sneakers, (4) an IVORY canvas tote bag", + "labels": [ + "니트", + "면바지", + "운동화", + "에코백" + ], + "outer": "니트" + }, + "f40": { + "items": "(1) a soft OATMEAL crewneck KNIT sweater, (2) mid-blue straight JEANS with two full legs, (3) a pair of plain WHITE low-top sneakers, (4) an IVORY canvas tote bag", + "labels": [ + "니트", + "청바지", + "운동화", + "에코백" + ], + "outer": "니트" + }, + "m40": { + "items": "(1) a NAVY crewneck KNIT sweater, (2) BEIGE chino pants with two full legs, (3) a pair of plain WHITE low-top sneakers, (4) an IVORY canvas tote bag", + "labels": [ + "니트", + "면바지", + "운동화", + "에코백" + ], + "outer": "니트" + } + } + }, + "layering": "thin layers, cardigan or light jacket (suede, denim, work jacket) over knit" + }, + { + "id": "chilly", + "from": 9, + "outfits": { + "casual": { + "f20": { + "items": "(1) a soft IVORY crewneck KNIT sweater, (2) a classic BEIGE belted TRENCH COAT, (3) mid-blue straight JEANS with two full legs, (4) a pair of BROWN leather LOAFERS", + "labels": [ + "니트", + "트렌치코트", + "청바지", + "로퍼" + ], + "outer": "트렌치코트" + }, + "m20": { + "items": "(1) a heather GREY HOODIE, (2) a KHAKI cotton FIELD JACKET, (3) BLACK straight pants with two full legs, (4) a pair of plain WHITE low-top sneakers", + "labels": [ + "후드티", + "야상", + "검정 바지", + "운동화" + ], + "outer": "야상" + }, + "f30": { + "items": "(1) a NAVY crewneck KNIT sweater, (2) a BEIGE belted TRENCH COAT, (3) BLACK slacks with two full legs, (4) a pair of BLACK leather ANKLE BOOTS", + "labels": [ + "니트", + "트렌치코트", + "슬랙스", + "앵클부츠" + ], + "outer": "트렌치코트" + }, + "m30": { + "items": "(1) a GREY crewneck SWEATSHIRT, (2) a NAVY short MAC COAT, (3) mid-blue straight JEANS with two full legs, (4) a pair of plain WHITE low-top sneakers", + "labels": [ + "맨투맨", + "하프코트", + "청바지", + "운동화" + ], + "outer": "하프코트" + }, + "f40": { + "items": "(1) a CREAM crewneck KNIT sweater, (2) a CAMEL belted TRENCH COAT, (3) NAVY wide slacks with two full legs, (4) a soft printless silk SCARF in orange", + "labels": [ + "니트", + "트렌치코트", + "슬랙스", + "스카프" + ], + "outer": "트렌치코트" + }, + "m40": { + "items": "(1) a WHITE long-sleeve button SHIRT, (2) a NAVY crewneck KNIT sweater, (3) a NAVY QUILTED JACKET, (4) GREY slacks with two full legs", + "labels": [ + "셔츠", + "니트", + "퀼팅 자켓", + "슬랙스" + ], + "outer": "퀼팅 자켓" + } + }, + "semi": { + "f20": { + "items": "(1) an IVORY TURTLENECK knit, (2) a BEIGE belted TRENCH COAT, (3) BLACK slacks with two full legs, (4) a pair of BLACK leather LOAFERS", + "labels": [ + "터틀넥", + "트렌치코트", + "슬랙스", + "로퍼" + ], + "outer": "트렌치코트" + }, + "m20": { + "items": "(1) a LIGHT-BLUE button SHIRT, (2) a GREY crewneck KNIT sweater, (3) a BEIGE TRENCH COAT, (4) NAVY slacks with two full legs", + "labels": [ + "셔츠", + "니트", + "트렌치코트", + "슬랙스" + ], + "outer": "트렌치코트" + }, + "f30": { + "items": "(1) an IVORY TURTLENECK knit, (2) a BEIGE belted TRENCH COAT, (3) BLACK slacks with two full legs, (4) a pair of BLACK leather LOAFERS", + "labels": [ + "터틀넥", + "트렌치코트", + "슬랙스", + "로퍼" + ], + "outer": "트렌치코트" + }, + "m30": { + "items": "(1) a LIGHT-BLUE button SHIRT, (2) a GREY crewneck KNIT sweater, (3) a BEIGE TRENCH COAT, (4) NAVY slacks with two full legs", + "labels": [ + "셔츠", + "니트", + "트렌치코트", + "슬랙스" + ], + "outer": "트렌치코트" + }, + "f40": { + "items": "(1) an IVORY TURTLENECK knit, (2) a BEIGE belted TRENCH COAT, (3) BLACK slacks with two full legs, (4) a pair of BLACK leather LOAFERS", + "labels": [ + "터틀넥", + "트렌치코트", + "슬랙스", + "로퍼" + ], + "outer": "트렌치코트" + }, + "m40": { + "items": "(1) a LIGHT-BLUE button SHIRT, (2) a GREY crewneck KNIT sweater, (3) a BEIGE TRENCH COAT, (4) NAVY slacks with two full legs", + "labels": [ + "셔츠", + "니트", + "트렌치코트", + "슬랙스" + ], + "outer": "트렌치코트" + } + }, + "formal": { + "f20": { + "items": "(1) a WHITE BLOUSE, (2) a BLACK SUIT JACKET, (3) matching BLACK suit trousers with two full legs, (4) a BEIGE belted TRENCH COAT", + "labels": [ + "블라우스", + "정장 재킷", + "정장 바지", + "트렌치코트" + ], + "outer": "트렌치코트" + }, + "m20": { + "items": "(1) a WHITE dress SHIRT, (2) a NAVY SUIT JACKET, (3) matching NAVY suit trousers with two full legs, (4) a BEIGE TRENCH COAT", + "labels": [ + "드레스 셔츠", + "정장 재킷", + "정장 바지", + "트렌치코트" + ], + "outer": "트렌치코트" + }, + "f30": { + "items": "(1) a WHITE BLOUSE, (2) a BLACK SUIT JACKET, (3) matching BLACK suit trousers with two full legs, (4) a BEIGE belted TRENCH COAT", + "labels": [ + "블라우스", + "정장 재킷", + "정장 바지", + "트렌치코트" + ], + "outer": "트렌치코트" + }, + "m30": { + "items": "(1) a WHITE dress SHIRT, (2) a NAVY SUIT JACKET, (3) matching NAVY suit trousers with two full legs, (4) a BEIGE TRENCH COAT", + "labels": [ + "드레스 셔츠", + "정장 재킷", + "정장 바지", + "트렌치코트" + ], + "outer": "트렌치코트" + }, + "f40": { + "items": "(1) a WHITE BLOUSE, (2) a BLACK SUIT JACKET, (3) matching BLACK suit trousers with two full legs, (4) a BEIGE belted TRENCH COAT", + "labels": [ + "블라우스", + "정장 재킷", + "정장 바지", + "트렌치코트" + ], + "outer": "트렌치코트" + }, + "m40": { + "items": "(1) a WHITE dress SHIRT, (2) a NAVY SUIT JACKET, (3) matching NAVY suit trousers with two full legs, (4) a BEIGE TRENCH COAT", + "labels": [ + "드레스 셔츠", + "정장 재킷", + "정장 바지", + "트렌치코트" + ], + "outer": "트렌치코트" + } + }, + "street": { + "f20": { + "items": "(1) a knit CREAM BEANIE, (2) a BLACK leather BIKER JACKET, (3) light-blue wide JEANS with two full legs, (4) a pair of BLACK lace-up COMBAT BOOTS", + "labels": [ + "비니", + "라이더 재킷", + "와이드 데님", + "워커" + ], + "outer": "라이더 재킷" + }, + "m20": { + "items": "(1) a heather GREY HOODIE, (2) an OLIVE MA-1 BOMBER JACKET, (3) BLACK cargo pants with two full legs, (4) a pair of chunky WHITE sneakers", + "labels": [ + "후드티", + "항공점퍼", + "카고 팬츠", + "어글리 슈즈" + ], + "outer": "항공점퍼" + }, + "f30": { + "items": "(1) a knit CREAM BEANIE, (2) a BLACK leather BIKER JACKET, (3) light-blue wide JEANS with two full legs, (4) a pair of BLACK lace-up COMBAT BOOTS", + "labels": [ + "비니", + "라이더 재킷", + "와이드 데님", + "워커" + ], + "outer": "라이더 재킷" + }, + "m30": { + "items": "(1) a heather GREY HOODIE, (2) an OLIVE MA-1 BOMBER JACKET, (3) BLACK cargo pants with two full legs, (4) a pair of chunky WHITE sneakers", + "labels": [ + "후드티", + "항공점퍼", + "카고 팬츠", + "어글리 슈즈" + ], + "outer": "항공점퍼" + }, + "f40": { + "items": "(1) a knit CREAM BEANIE, (2) a BLACK leather BIKER JACKET, (3) light-blue wide JEANS with two full legs, (4) a pair of BLACK lace-up COMBAT BOOTS", + "labels": [ + "비니", + "라이더 재킷", + "와이드 데님", + "워커" + ], + "outer": "라이더 재킷" + }, + "m40": { + "items": "(1) a heather GREY HOODIE, (2) an OLIVE MA-1 BOMBER JACKET, (3) BLACK cargo pants with two full legs, (4) a pair of chunky WHITE sneakers", + "labels": [ + "후드티", + "항공점퍼", + "카고 팬츠", + "어글리 슈즈" + ], + "outer": "항공점퍼" + } + }, + "minimal": { + "f20": { + "items": "(1) a plain heather GREY SWEATSHIRT, (2) a NAVY MAC COAT, (3) mid-blue straight JEANS with two full legs, (4) a pair of plain WHITE low-top sneakers", + "labels": [ + "맨투맨", + "맥코트", + "청바지", + "운동화" + ], + "outer": "맥코트" + }, + "m20": { + "items": "(1) a plain heather GREY SWEATSHIRT, (2) a KHAKI MAC COAT, (3) mid-blue straight JEANS with two full legs, (4) a pair of plain WHITE low-top sneakers", + "labels": [ + "맨투맨", + "맥코트", + "청바지", + "운동화" + ], + "outer": "맥코트" + }, + "f30": { + "items": "(1) a plain heather GREY SWEATSHIRT, (2) a NAVY MAC COAT, (3) mid-blue straight JEANS with two full legs, (4) a pair of plain WHITE low-top sneakers", + "labels": [ + "맨투맨", + "맥코트", + "청바지", + "운동화" + ], + "outer": "맥코트" + }, + "m30": { + "items": "(1) a plain heather GREY SWEATSHIRT, (2) a KHAKI MAC COAT, (3) mid-blue straight JEANS with two full legs, (4) a pair of plain WHITE low-top sneakers", + "labels": [ + "맨투맨", + "맥코트", + "청바지", + "운동화" + ], + "outer": "맥코트" + }, + "f40": { + "items": "(1) a plain heather GREY SWEATSHIRT, (2) a NAVY MAC COAT, (3) mid-blue straight JEANS with two full legs, (4) a pair of plain WHITE low-top sneakers", + "labels": [ + "맨투맨", + "맥코트", + "청바지", + "운동화" + ], + "outer": "맥코트" + }, + "m40": { + "items": "(1) a plain heather GREY SWEATSHIRT, (2) a KHAKI MAC COAT, (3) mid-blue straight JEANS with two full legs, (4) a pair of plain WHITE low-top sneakers", + "labels": [ + "맨투맨", + "맥코트", + "청바지", + "운동화" + ], + "outer": "맥코트" + } + } + }, + "layering": "trench coat or field jacket, knit, brushed trousers or tights, closed shoes" + }, + { + "id": "cold", + "from": 5, + "outfits": { + "casual": { + "f20": { + "items": "(1) a CREAM crewneck KNIT sweater, (2) a GREY wool SHORT COAT, (3) mid-blue straight JEANS with two full legs, (4) a pair of BLACK leather ANKLE BOOTS", + "labels": [ + "니트", + "숏코트", + "청바지", + "앵클부츠" + ], + "outer": "숏코트" + }, + "m20": { + "items": "(1) a heather GREY HOODIE, (2) an IVORY fleece ZIP JACKET, (3) mid-blue straight JEANS with two full legs, (4) a pair of plain WHITE low-top sneakers", + "labels": [ + "후드티", + "플리스", + "청바지", + "운동화" + ], + "outer": "플리스" + }, + "f30": { + "items": "(1) a long CAMEL wool overcoat, (2) a CREAM turtleneck knit sweater, (3) CHARCOAL wool slacks with two full legs, (4) a pair of BLACK chelsea boots", + "labels": [ + "롱코트", + "터틀넥", + "슬랙스", + "부츠" + ], + "outer": "롱코트" + }, + "m30": { + "items": "(1) a CHARCOAL turtleneck KNIT, (2) a NAVY wool overcoat, (3) GREY wool slacks with two full legs, (4) a pair of BLACK chelsea boots", + "labels": [ + "터틀넥", + "울코트", + "슬랙스", + "첼시부츠" + ], + "outer": "울코트" + }, + "f40": { + "items": "(1) a soft OATMEAL KNIT sweater, (2) a long GREY wool COAT, (3) a CAMEL wool MUFFLER, (4) BLACK slacks with two full legs", + "labels": [ + "니트", + "롱코트", + "머플러", + "슬랙스" + ], + "outer": "롱코트" + }, + "m40": { + "items": "(1) a GREY crewneck KNIT sweater, (2) a CHARCOAL wool overcoat, (3) GREY slacks with two full legs, (4) a pair of BROWN leather GLOVES", + "labels": [ + "니트", + "울코트", + "슬랙스", + "장갑" + ], + "outer": "울코트" + } + }, + "semi": { + "f20": { + "items": "(1) a soft GREY KNIT sweater, (2) a long CAMEL wool COAT, (3) BLACK slacks with two full legs, (4) a pair of BLACK leather ANKLE BOOTS", + "labels": [ + "니트", + "울 코트", + "슬랙스", + "앵클부츠" + ], + "outer": "울 코트" + }, + "m20": { + "items": "(1) a WHITE button SHIRT, (2) a NAVY crewneck KNIT sweater, (3) a CHARCOAL wool OVERCOAT, (4) GREY slacks with two full legs", + "labels": [ + "셔츠", + "니트", + "울 코트", + "슬랙스" + ], + "outer": "울 코트" + }, + "f30": { + "items": "(1) a soft GREY KNIT sweater, (2) a long CAMEL wool COAT, (3) BLACK slacks with two full legs, (4) a pair of BLACK leather ANKLE BOOTS", + "labels": [ + "니트", + "울 코트", + "슬랙스", + "앵클부츠" + ], + "outer": "울 코트" + }, + "m30": { + "items": "(1) a WHITE button SHIRT, (2) a NAVY crewneck KNIT sweater, (3) a CHARCOAL wool OVERCOAT, (4) GREY slacks with two full legs", + "labels": [ + "셔츠", + "니트", + "울 코트", + "슬랙스" + ], + "outer": "울 코트" + }, + "f40": { + "items": "(1) a soft GREY KNIT sweater, (2) a long CAMEL wool COAT, (3) BLACK slacks with two full legs, (4) a pair of BLACK leather ANKLE BOOTS", + "labels": [ + "니트", + "울 코트", + "슬랙스", + "앵클부츠" + ], + "outer": "울 코트" + }, + "m40": { + "items": "(1) a WHITE button SHIRT, (2) a NAVY crewneck KNIT sweater, (3) a CHARCOAL wool OVERCOAT, (4) GREY slacks with two full legs", + "labels": [ + "셔츠", + "니트", + "울 코트", + "슬랙스" + ], + "outer": "울 코트" + } + }, + "formal": { + "f20": { + "items": "(1) an IVORY BLOUSE, (2) a CHARCOAL SUIT JACKET, (3) matching CHARCOAL suit trousers with two full legs, (4) a long BLACK wool COAT", + "labels": [ + "블라우스", + "정장 재킷", + "정장 바지", + "롱코트" + ], + "outer": "롱코트" + }, + "m20": { + "items": "(1) a WHITE dress SHIRT, (2) a CHARCOAL SUIT JACKET, (3) matching CHARCOAL suit trousers with two full legs, (4) a NAVY wool OVERCOAT", + "labels": [ + "드레스 셔츠", + "정장 재킷", + "정장 바지", + "울 코트" + ], + "outer": "울 코트" + }, + "f30": { + "items": "(1) an IVORY BLOUSE, (2) a CHARCOAL SUIT JACKET, (3) matching CHARCOAL suit trousers with two full legs, (4) a long BLACK wool COAT", + "labels": [ + "블라우스", + "정장 재킷", + "정장 바지", + "롱코트" + ], + "outer": "롱코트" + }, + "m30": { + "items": "(1) a WHITE dress SHIRT, (2) a CHARCOAL SUIT JACKET, (3) matching CHARCOAL suit trousers with two full legs, (4) a NAVY wool OVERCOAT", + "labels": [ + "드레스 셔츠", + "정장 재킷", + "정장 바지", + "울 코트" + ], + "outer": "울 코트" + }, + "f40": { + "items": "(1) an IVORY BLOUSE, (2) a CHARCOAL SUIT JACKET, (3) matching CHARCOAL suit trousers with two full legs, (4) a long BLACK wool COAT", + "labels": [ + "블라우스", + "정장 재킷", + "정장 바지", + "롱코트" + ], + "outer": "롱코트" + }, + "m40": { + "items": "(1) a WHITE dress SHIRT, (2) a CHARCOAL SUIT JACKET, (3) matching CHARCOAL suit trousers with two full legs, (4) a NAVY wool OVERCOAT", + "labels": [ + "드레스 셔츠", + "정장 재킷", + "정장 바지", + "울 코트" + ], + "outer": "울 코트" + } + }, + "street": { + "f20": { + "items": "(1) a heather GREY HOODIE, (2) an IVORY fleece ZIP JACKET, (3) light-blue wide JEANS with two full legs, (4) a pair of BLACK lace-up COMBAT BOOTS", + "labels": [ + "후드티", + "플리스", + "와이드 데님", + "워커" + ], + "outer": "플리스" + }, + "m20": { + "items": "(1) a BLACK HOODIE, (2) a fuzzy CREAM sherpa BOA FLEECE jacket, (3) wide CHARCOAL pants with two full legs, (4) a pair of chunky WHITE sneakers", + "labels": [ + "후드티", + "뽀글이", + "와이드 팬츠", + "어글리 슈즈" + ], + "outer": "뽀글이" + }, + "f30": { + "items": "(1) a heather GREY HOODIE, (2) an IVORY fleece ZIP JACKET, (3) light-blue wide JEANS with two full legs, (4) a pair of BLACK lace-up COMBAT BOOTS", + "labels": [ + "후드티", + "플리스", + "와이드 데님", + "워커" + ], + "outer": "플리스" + }, + "m30": { + "items": "(1) a BLACK HOODIE, (2) a fuzzy CREAM sherpa BOA FLEECE jacket, (3) wide CHARCOAL pants with two full legs, (4) a pair of chunky WHITE sneakers", + "labels": [ + "후드티", + "뽀글이", + "와이드 팬츠", + "어글리 슈즈" + ], + "outer": "뽀글이" + }, + "f40": { + "items": "(1) a heather GREY HOODIE, (2) an IVORY fleece ZIP JACKET, (3) light-blue wide JEANS with two full legs, (4) a pair of BLACK lace-up COMBAT BOOTS", + "labels": [ + "후드티", + "플리스", + "와이드 데님", + "워커" + ], + "outer": "플리스" + }, + "m40": { + "items": "(1) a BLACK HOODIE, (2) a fuzzy CREAM sherpa BOA FLEECE jacket, (3) wide CHARCOAL pants with two full legs, (4) a pair of chunky WHITE sneakers", + "labels": [ + "후드티", + "뽀글이", + "와이드 팬츠", + "어글리 슈즈" + ], + "outer": "뽀글이" + } + }, + "minimal": { + "f20": { + "items": "(1) a CREAM crewneck KNIT sweater, (2) a GREY wool COAT, (3) mid-blue straight JEANS with two full legs, (4) a pair of plain WHITE low-top sneakers", + "labels": [ + "니트", + "울 코트", + "청바지", + "운동화" + ], + "outer": "울 코트" + }, + "m20": { + "items": "(1) a GREY crewneck KNIT sweater, (2) a NAVY wool COAT, (3) mid-blue straight JEANS with two full legs, (4) a pair of plain WHITE low-top sneakers", + "labels": [ + "니트", + "울 코트", + "청바지", + "운동화" + ], + "outer": "울 코트" + }, + "f30": { + "items": "(1) a CREAM crewneck KNIT sweater, (2) a GREY wool COAT, (3) mid-blue straight JEANS with two full legs, (4) a pair of plain WHITE low-top sneakers", + "labels": [ + "니트", + "울 코트", + "청바지", + "운동화" + ], + "outer": "울 코트" + }, + "m30": { + "items": "(1) a GREY crewneck KNIT sweater, (2) a NAVY wool COAT, (3) mid-blue straight JEANS with two full legs, (4) a pair of plain WHITE low-top sneakers", + "labels": [ + "니트", + "울 코트", + "청바지", + "운동화" + ], + "outer": "울 코트" + }, + "f40": { + "items": "(1) a CREAM crewneck KNIT sweater, (2) a GREY wool COAT, (3) mid-blue straight JEANS with two full legs, (4) a pair of plain WHITE low-top sneakers", + "labels": [ + "니트", + "울 코트", + "청바지", + "운동화" + ], + "outer": "울 코트" + }, + "m40": { + "items": "(1) a GREY crewneck KNIT sweater, (2) a NAVY wool COAT, (3) mid-blue straight JEANS with two full legs, (4) a pair of plain WHITE low-top sneakers", + "labels": [ + "니트", + "울 코트", + "청바지", + "운동화" + ], + "outer": "울 코트" + } + } + }, + "layering": "wool coat or leather jacket, thermal base layer, thick knit, boots" + }, + { + "id": "freezing", + "from": -99, + "outfits": { + "casual": { + "f20": { + "items": "(1) a WHITE short PUFFER jacket, (2) a CREAM knit BEANIE, (3) mid-blue fleece-lined JEANS with two full legs, (4) a pair of TAN shearling BOOTS", + "labels": [ + "숏패딩", + "비니", + "기모 청바지", + "털부츠" + ], + "outer": "숏패딩" + }, + "m20": { + "items": "(1) a BLACK short PUFFER jacket, (2) a heather GREY HOODIE, (3) dark GREY fleece-lined pants with two full legs, (4) a NAVY knit BEANIE", + "labels": [ + "숏패딩", + "후드티", + "기모 바지", + "비니" + ], + "outer": "숏패딩" + }, + "f30": { + "items": "(1) a long BEIGE down PADDED coat, (2) an IVORY KNIT sweater, (3) BLACK fleece-lined slacks with two full legs, (4) a chunky CAMEL knit MUFFLER", + "labels": [ + "롱패딩", + "니트", + "기모 슬랙스", + "머플러" + ], + "outer": "롱패딩" + }, + "m30": { + "items": "(1) a puffy NAVY long down PADDED parka, (2) a chunky ORANGE knit SCARF, (3) dark GREY fleece-lined pants with two full legs, (4) a pair of IVORY knit GLOVES", + "labels": [ + "롱패딩", + "목도리", + "기모 바지", + "장갑" + ], + "outer": "롱패딩" + }, + "f40": { + "items": "(1) a long BLACK down COAT, (2) a soft GREY cashmere MUFFLER, (3) CHARCOAL fleece-lined slacks with two full legs, (4) a pair of BLACK leather GLOVES", + "labels": [ + "롱패딩", + "머플러", + "기모 슬랙스", + "장갑" + ], + "outer": "롱패딩" + }, + "m40": { + "items": "(1) a CHARCOAL hip-length DOWN JACKET, (2) a NAVY crewneck KNIT sweater, (3) GREY fleece-lined slacks with two full legs, (4) a NAVY wool SCARF", + "labels": [ + "다운 자켓", + "니트", + "기모 바지", + "목도리" + ], + "outer": "다운 자켓" + } + }, + "semi": { + "f20": { + "items": "(1) a CREAM TURTLENECK knit, (2) a long BLACK belted DOWN COAT, (3) GREY wool slacks with two full legs, (4) a CAMEL cashmere MUFFLER", + "labels": [ + "터틀넥", + "롱 다운 코트", + "울 슬랙스", + "머플러" + ], + "outer": "롱 다운 코트" + }, + "m20": { + "items": "(1) a GREY TURTLENECK knit, (2) a long NAVY DOWN COAT, (3) CHARCOAL wool slacks with two full legs, (4) a pair of BLACK leather GLOVES", + "labels": [ + "터틀넥", + "롱 다운 코트", + "울 슬랙스", + "장갑" + ], + "outer": "롱 다운 코트" + }, + "f30": { + "items": "(1) a CREAM TURTLENECK knit, (2) a long BLACK belted DOWN COAT, (3) GREY wool slacks with two full legs, (4) a CAMEL cashmere MUFFLER", + "labels": [ + "터틀넥", + "롱 다운 코트", + "울 슬랙스", + "머플러" + ], + "outer": "롱 다운 코트" + }, + "m30": { + "items": "(1) a GREY TURTLENECK knit, (2) a long NAVY DOWN COAT, (3) CHARCOAL wool slacks with two full legs, (4) a pair of BLACK leather GLOVES", + "labels": [ + "터틀넥", + "롱 다운 코트", + "울 슬랙스", + "장갑" + ], + "outer": "롱 다운 코트" + }, + "f40": { + "items": "(1) a CREAM TURTLENECK knit, (2) a long BLACK belted DOWN COAT, (3) GREY wool slacks with two full legs, (4) a CAMEL cashmere MUFFLER", + "labels": [ + "터틀넥", + "롱 다운 코트", + "울 슬랙스", + "머플러" + ], + "outer": "롱 다운 코트" + }, + "m40": { + "items": "(1) a GREY TURTLENECK knit, (2) a long NAVY DOWN COAT, (3) CHARCOAL wool slacks with two full legs, (4) a pair of BLACK leather GLOVES", + "labels": [ + "터틀넥", + "롱 다운 코트", + "울 슬랙스", + "장갑" + ], + "outer": "롱 다운 코트" + } + }, + "formal": { + "f20": { + "items": "(1) a CREAM fine KNIT top, (2) a BLACK SUIT JACKET, (3) a long BLACK cashmere COAT, (4) a soft GREY MUFFLER", + "labels": [ + "니트", + "정장 재킷", + "캐시미어 코트", + "머플러" + ], + "outer": "캐시미어 코트" + }, + "m20": { + "items": "(1) a WHITE dress SHIRT, (2) a CHARCOAL SUIT JACKET, (3) a long BLACK cashmere OVERCOAT, (4) a soft GREY MUFFLER", + "labels": [ + "드레스 셔츠", + "정장 재킷", + "캐시미어 코트", + "머플러" + ], + "outer": "캐시미어 코트" + }, + "f30": { + "items": "(1) a CREAM fine KNIT top, (2) a BLACK SUIT JACKET, (3) a long BLACK cashmere COAT, (4) a soft GREY MUFFLER", + "labels": [ + "니트", + "정장 재킷", + "캐시미어 코트", + "머플러" + ], + "outer": "캐시미어 코트" + }, + "m30": { + "items": "(1) a WHITE dress SHIRT, (2) a CHARCOAL SUIT JACKET, (3) a long BLACK cashmere OVERCOAT, (4) a soft GREY MUFFLER", + "labels": [ + "드레스 셔츠", + "정장 재킷", + "캐시미어 코트", + "머플러" + ], + "outer": "캐시미어 코트" + }, + "f40": { + "items": "(1) a CREAM fine KNIT top, (2) a BLACK SUIT JACKET, (3) a long BLACK cashmere COAT, (4) a soft GREY MUFFLER", + "labels": [ + "니트", + "정장 재킷", + "캐시미어 코트", + "머플러" + ], + "outer": "캐시미어 코트" + }, + "m40": { + "items": "(1) a WHITE dress SHIRT, (2) a CHARCOAL SUIT JACKET, (3) a long BLACK cashmere OVERCOAT, (4) a soft GREY MUFFLER", + "labels": [ + "드레스 셔츠", + "정장 재킷", + "캐시미어 코트", + "머플러" + ], + "outer": "캐시미어 코트" + } + }, + "street": { + "f20": { + "items": "(1) a short glossy BLACK PUFFER jacket, (2) a knit GREY BEANIE, (3) fleece-lined wide JEANS with two full legs, (4) a pair of BLACK lace-up COMBAT BOOTS", + "labels": [ + "숏패딩", + "비니", + "기모 청바지", + "워커" + ], + "outer": "숏패딩" + }, + "m20": { + "items": "(1) an oversized short CREAM PUFFER jacket, (2) a BLACK HOODIE, (3) fleece-lined KHAKI cargo pants with two full legs, (4) a knit BLACK BEANIE", + "labels": [ + "숏패딩", + "후드티", + "기모 카고", + "비니" + ], + "outer": "숏패딩" + }, + "f30": { + "items": "(1) a short glossy BLACK PUFFER jacket, (2) a knit GREY BEANIE, (3) fleece-lined wide JEANS with two full legs, (4) a pair of BLACK lace-up COMBAT BOOTS", + "labels": [ + "숏패딩", + "비니", + "기모 청바지", + "워커" + ], + "outer": "숏패딩" + }, + "m30": { + "items": "(1) an oversized short CREAM PUFFER jacket, (2) a BLACK HOODIE, (3) fleece-lined KHAKI cargo pants with two full legs, (4) a knit BLACK BEANIE", + "labels": [ + "숏패딩", + "후드티", + "기모 카고", + "비니" + ], + "outer": "숏패딩" + }, + "f40": { + "items": "(1) a short glossy BLACK PUFFER jacket, (2) a knit GREY BEANIE, (3) fleece-lined wide JEANS with two full legs, (4) a pair of BLACK lace-up COMBAT BOOTS", + "labels": [ + "숏패딩", + "비니", + "기모 청바지", + "워커" + ], + "outer": "숏패딩" + }, + "m40": { + "items": "(1) an oversized short CREAM PUFFER jacket, (2) a BLACK HOODIE, (3) fleece-lined KHAKI cargo pants with two full legs, (4) a knit BLACK BEANIE", + "labels": [ + "숏패딩", + "후드티", + "기모 카고", + "비니" + ], + "outer": "숏패딩" + } + }, + "minimal": { + "f20": { + "items": "(1) a CREAM crewneck KNIT sweater, (2) a long IVORY down PADDED coat, (3) mid-blue straight JEANS with two full legs, (4) a chunky knit OATMEAL MUFFLER", + "labels": [ + "니트", + "롱패딩", + "청바지", + "머플러" + ], + "outer": "롱패딩" + }, + "m20": { + "items": "(1) a GREY crewneck KNIT sweater, (2) a long BLACK down PADDED coat, (3) mid-blue straight JEANS with two full legs, (4) a chunky knit GREY MUFFLER", + "labels": [ + "니트", + "롱패딩", + "청바지", + "머플러" + ], + "outer": "롱패딩" + }, + "f30": { + "items": "(1) a CREAM crewneck KNIT sweater, (2) a long IVORY down PADDED coat, (3) mid-blue straight JEANS with two full legs, (4) a chunky knit OATMEAL MUFFLER", + "labels": [ + "니트", + "롱패딩", + "청바지", + "머플러" + ], + "outer": "롱패딩" + }, + "m30": { + "items": "(1) a GREY crewneck KNIT sweater, (2) a long BLACK down PADDED coat, (3) mid-blue straight JEANS with two full legs, (4) a chunky knit GREY MUFFLER", + "labels": [ + "니트", + "롱패딩", + "청바지", + "머플러" + ], + "outer": "롱패딩" + }, + "f40": { + "items": "(1) a CREAM crewneck KNIT sweater, (2) a long IVORY down PADDED coat, (3) mid-blue straight JEANS with two full legs, (4) a chunky knit OATMEAL MUFFLER", + "labels": [ + "니트", + "롱패딩", + "청바지", + "머플러" + ], + "outer": "롱패딩" + }, + "m40": { + "items": "(1) a GREY crewneck KNIT sweater, (2) a long BLACK down PADDED coat, (3) mid-blue straight JEANS with two full legs, (4) a chunky knit GREY MUFFLER", + "labels": [ + "니트", + "롱패딩", + "청바지", + "머플러" + ], + "outer": "롱패딩" + } + } + }, + "layering": "puffer or heavy coat, scarf and beanie, fleece-lined pants, knit layering" + } + ] +} \ No newline at end of file diff --git a/admin/image-prompts/tarot-bg.json b/admin/image-prompts/tarot-bg.json new file mode 100644 index 0000000..9de06aa --- /dev/null +++ b/admin/image-prompts/tarot-bg.json @@ -0,0 +1,26 @@ +{ + "about": "날씨 타로 배경 그림. 대주제 꾸밈(skin)마다 한 장씩, 한 번 만들어 두고 내용(카드·글)만 갈아 끼운다. 결과는 src/assets/tarot-bg/.webp. 글이 올라갈 자리를 비워 둔 1080×1350 세로 배경.", + "style": "Use case: stylized-concept. Asset type: text-free BACKGROUND illustration for a Korean weather tarot Instagram card, portrait 4:5 (1080x1350), filling the canvas edge to edge. {motif}. Style: tactile matte clay / soft vinyl 3D illustration, chunky rounded shapes, very soft and airy, low contrast, desaturated pastel so dark text stays readable on top. Composition rule: the CENTER band (from 20% to 80% of the height) must be an almost plain, very light, smooth area (like soft fog) with no objects, because a card picture and text will be placed there later; decorative objects live only near the top and bottom edges and are small. No characters, no people, no faces, no hands. Text: none. Absolutely NO letters, numbers, logos, watermark or pseudo-text.", + "items": [ + { + "id": "heart", + "motif": "soft romantic scene: pastel pink and cream sky, a few floating 3D clay hearts, gentle sunset glow, tiny sparkles; mood: 연애·썸" + }, + { + "id": "coin", + "motif": "warm prosperous scene: soft gold and ivory sky, a few floating 3D clay coins and a tiny rising arrow shape (no numbers), sunrise glow; mood: 경제·돈" + }, + { + "id": "star", + "motif": "calm focused scene: pale blue and lavender sky, a few floating 3D clay stars and a small paper plane, early morning light; mood: 일·공부" + }, + { + "id": "clover", + "motif": "fresh healthy scene: mint and sage green sky, a few small floating 3D clay leaves and one little cloud, bright daylight; mood: 건강" + }, + { + "id": "sparkle", + "motif": "cozy friendly scene: peach and lilac sky, a few small floating 3D clay sparkles and round bubbles, soft afternoon light; mood: 관계·친구" + } + ] +} \ No newline at end of file diff --git a/admin/index.html b/admin/index.html new file mode 100644 index 0000000..6d1b820 --- /dev/null +++ b/admin/index.html @@ -0,0 +1,18 @@ + + + + + + + + + + + + 날씨각 관리자 + + +
+ + + diff --git a/admin/openapi-ts.config.ts b/admin/openapi-ts.config.ts new file mode 100644 index 0000000..2a866c2 --- /dev/null +++ b/admin/openapi-ts.config.ts @@ -0,0 +1,22 @@ +import { defineConfig } from '@hey-api/openapi-ts' + +export default defineConfig({ + input: process.env.OPENAPI_INPUT ?? 'http://localhost:9810/openapi.json', + output: 'src/api/client', + parser: { + patch: { + // FastAPI operationId("get_feed_v1_feed_get")에서 "_v1_" 앞만 camelCase로 → getFeed / getFeedOptions / addCommentMutation + operations: (_method, _path, operation) => { + const id = operation.operationId ?? '' + const base = id.split('_v1_')[0] || id + operation.operationId = base.replace(/_([a-z])/g, (_m, c: string) => c.toUpperCase()) + }, + }, + }, + plugins: [ + { name: '@hey-api/client-fetch', throwOnError: true }, + { name: '@hey-api/typescript', enums: 'javascript' }, + '@hey-api/sdk', + '@tanstack/react-query', + ], +}) diff --git a/admin/package-lock.json b/admin/package-lock.json new file mode 100644 index 0000000..805bfb0 --- /dev/null +++ b/admin/package-lock.json @@ -0,0 +1,2676 @@ +{ + "name": "admin", + "version": "0.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "admin", + "version": "0.0.0", + "dependencies": { + "@tailwindcss/vite": "^4.3.3", + "@tanstack/react-query": "^5.104.0", + "modern-screenshot": "^4.7.0", + "react": "^19.2.8", + "react-dom": "^19.2.8", + "react-router": "^8.4.0", + "tailwindcss": "^4.3.3" + }, + "devDependencies": { + "@hey-api/openapi-ts": "0.99.0", + "@types/node": "^24.13.3", + "@types/react": "^19.2.18", + "@types/react-dom": "^19.2.7", + "@vitejs/plugin-react": "^6.1.1", + "oxlint": "^1.81.0", + "typescript": "~6.0.2", + "vite": "^8.3.0" + } + }, + "node_modules/@hey-api/codegen-core": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/@hey-api/codegen-core/-/codegen-core-0.9.1.tgz", + "integrity": "sha512-s97jL1dgTMuiMHv2BZ1X4Tgd99Mf9GOvGdNqNcGwIMmnR+PgYNoraj4Zvp134MKsNCap/m7k0r0vKKnl56pj4w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@hey-api/types": "0.1.4", + "ansi-colors": "4.1.3", + "c12": "3.3.4", + "color-support": "1.1.3" + }, + "engines": { + "node": ">=22.18.0" + }, + "funding": { + "url": "https://github.com/sponsors/hey-api" + } + }, + "node_modules/@hey-api/json-schema-ref-parser": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/@hey-api/json-schema-ref-parser/-/json-schema-ref-parser-1.4.4.tgz", + "integrity": "sha512-otmd+zCxbYVBIp/mlMTnGkvlNYLkVKgs3VOIq0kSnenhB1+fRwLPQIeSwyWM6E51oXhUedkYjVsVpkVexeuJOA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jsdevtools/ono": "7.1.3", + "@types/json-schema": "7.0.15", + "js-yaml": "4.2.0" + }, + "engines": { + "node": ">=22.18.0" + }, + "funding": { + "url": "https://github.com/sponsors/hey-api" + } + }, + "node_modules/@hey-api/openapi-ts": { + "version": "0.99.0", + "resolved": "https://registry.npmjs.org/@hey-api/openapi-ts/-/openapi-ts-0.99.0.tgz", + "integrity": "sha512-SePU/5oEWWkvUBYmvzdYRctseoLuskyhs4ET0RvLIcmzc8yLQoA2R+KtBIQ8bPsoSUB0m4E5SmBnl6aGSA0szQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@hey-api/codegen-core": "0.9.1", + "@hey-api/json-schema-ref-parser": "1.4.4", + "@hey-api/shared": "0.5.0", + "@hey-api/spec-types": "0.2.0", + "@hey-api/types": "0.1.4", + "@lukeed/ms": "2.0.2", + "ansi-colors": "4.1.3", + "color-support": "1.1.3", + "commander": "15.0.0", + "get-tsconfig": "4.14.0" + }, + "bin": { + "openapi-ts": "bin/run.js" + }, + "engines": { + "node": ">=22.18.0" + }, + "funding": { + "url": "https://github.com/sponsors/hey-api" + }, + "peerDependencies": { + "typescript": ">=5.5.3 || >=6.0.0 || 6.0.1-rc" + } + }, + "node_modules/@hey-api/shared": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/@hey-api/shared/-/shared-0.5.0.tgz", + "integrity": "sha512-JN/j4Ebh4cJGYIQ5cwWuqe7GeSUyQoz7oC51WqyhKOcrejK6DKZMDkshc5d1eKTRuRL+rjozuRcoUaZZn2DGPw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@hey-api/codegen-core": "0.9.1", + "@hey-api/json-schema-ref-parser": "1.4.4", + "@hey-api/spec-types": "0.2.0", + "@hey-api/types": "0.1.4", + "ansi-colors": "4.1.3", + "cross-spawn": "7.0.6", + "open": "11.0.0", + "semver": "7.8.4" + }, + "engines": { + "node": ">=22.18.0" + }, + "funding": { + "url": "https://github.com/sponsors/hey-api" + } + }, + "node_modules/@hey-api/spec-types": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/@hey-api/spec-types/-/spec-types-0.2.0.tgz", + "integrity": "sha512-ibQ8Is7evMavzr8GNyJCcTg975d8DpaMUyLmOrQ85UBdy1l6t1KuRAwgChAbesJsIlNV6gjmlXruWyegDX18Fg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@hey-api/types": "0.1.4" + }, + "funding": { + "url": "https://github.com/sponsors/hey-api" + } + }, + "node_modules/@hey-api/types": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/@hey-api/types/-/types-0.1.4.tgz", + "integrity": "sha512-thWfawrDIP7wSI9ioT13I5soaaqB5vAPIiZmgD8PbeEVKNrkonc0N/Sjj97ezl7oQgusZmaNphGdMKipPO6IBg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/remapping": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", + "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz", + "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==", + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@jsdevtools/ono": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/@jsdevtools/ono/-/ono-7.1.3.tgz", + "integrity": "sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@lukeed/ms": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@lukeed/ms/-/ms-2.0.2.tgz", + "integrity": "sha512-9I2Zn6+NJLfaGoz9jN3lpwDgAYvfGeNYdbAIjJOqzs4Tpc+VU3Jqq4IofSUBKajiDS8k9fZIg18/z13mpk1bsA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/@oxc-project/types": { + "version": "0.154.0", + "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.154.0.tgz", + "integrity": "sha512-KYOUGQFlLWR+s4QMV2Q9ko38TZm7EdO87Qm7rvZLqk/webse/cDjtyxKhg/47l0byCbs/k46LT8qc4PKjAikzA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/oxc-project" + } + }, + "node_modules/@oxlint/binding-android-arm-eabi": { + "version": "1.89.0", + "resolved": "https://registry.npmjs.org/@oxlint/binding-android-arm-eabi/-/binding-android-arm-eabi-1.89.0.tgz", + "integrity": "sha512-Pflpba5F3gRAQ12sWglRxvWTHEdAusNDvmi4Y5N1T5SY1AGkM7AixOnET8qkrnLJ/F32qAlNokO6eCknT8tmnw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxlint/binding-android-arm64": { + "version": "1.89.0", + "resolved": "https://registry.npmjs.org/@oxlint/binding-android-arm64/-/binding-android-arm64-1.89.0.tgz", + "integrity": "sha512-dYmyD1x7LaPlb79vZWUcpTShk8dI9z1I+IubtqrBxWNJaDhQdPHwcsvg7q5StTU4xWyd9AwPfLaTYFZY8NZgtQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxlint/binding-darwin-arm64": { + "version": "1.89.0", + "resolved": "https://registry.npmjs.org/@oxlint/binding-darwin-arm64/-/binding-darwin-arm64-1.89.0.tgz", + "integrity": "sha512-Z/oxOPiIqiS7fItRdxaaOEC+6GD3OpGi0IxoR0dMefzQHolsKLzScw2DNcu/5gUPok3tv+G9mslvYB5bo3i0qg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxlint/binding-darwin-x64": { + "version": "1.89.0", + "resolved": "https://registry.npmjs.org/@oxlint/binding-darwin-x64/-/binding-darwin-x64-1.89.0.tgz", + "integrity": "sha512-eAjTkHSjAxrdCPJxO6y5sPQL5pYLKb2kvxZz9UU7tXnOZk9I/HLtkvx9S7GHY883k+AmL/eC7mqFt+w7WCwk0w==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxlint/binding-freebsd-x64": { + "version": "1.89.0", + "resolved": "https://registry.npmjs.org/@oxlint/binding-freebsd-x64/-/binding-freebsd-x64-1.89.0.tgz", + "integrity": "sha512-0lNCA9Tl1n1FKpqy2/9ckp0kIuSrtJ/l9bMRgaEhOtM7TsOHshFuwOcvW8oA9teXLMOJT61LjEKWiaHDFGxF/w==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxlint/binding-linux-arm-gnueabihf": { + "version": "1.89.0", + "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.89.0.tgz", + "integrity": "sha512-OTFEvi9W+JczaZD1Caj17SGCoW8H7TE+fvx0D7ATEWa1Lohn91UMxFQ6r145SiGy/yCxeIwptMys/RAM7gSVSQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxlint/binding-linux-arm-musleabihf": { + "version": "1.89.0", + "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-arm-musleabihf/-/binding-linux-arm-musleabihf-1.89.0.tgz", + "integrity": "sha512-fRxgNHvBLswj6MrhW2uBq5UDhPRQlCbHeq/Nf8yuG9zOxhDsXqX/mi2PX1axgsQxMm88el7HLiJAzglAnflYxw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxlint/binding-linux-arm64-gnu": { + "version": "1.89.0", + "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.89.0.tgz", + "integrity": "sha512-v9ENzHvwrQoYSWTtviH1pOYc7R9UovDxVofnck50cNmPihRRTcrg5X0UlRbLOZ7IVtxPOlh2hb7kDO+FpE8SfQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxlint/binding-linux-arm64-musl": { + "version": "1.89.0", + "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.89.0.tgz", + "integrity": "sha512-vfffe8mQ484AzVadlUOFpgL+JDwhvs9hrzxTgQP1FVfi4ZEUUYeffXlzC9dFV7Dgnu5s/KrNKvfmG6HxBd/ISQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxlint/binding-linux-ppc64-gnu": { + "version": "1.89.0", + "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.89.0.tgz", + "integrity": "sha512-Buonlp4hVS7RGNP5M7bPpGNQrenyzA2C64JcO/oz9C1c6dGOXJ7VEAnaiAMY7voou0JYyCJdvDVlFQc5DZX3DQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxlint/binding-linux-riscv64-gnu": { + "version": "1.89.0", + "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-riscv64-gnu/-/binding-linux-riscv64-gnu-1.89.0.tgz", + "integrity": "sha512-1eVwJJrJ3lYIPT+cm7BcBBZZXY6IQZP/oyonaruTor/MrVyWOpvnwt1oD5CLdsHg5aVBIxXodQSvt+1gK6ck5w==", + "cpu": [ + "riscv64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxlint/binding-linux-riscv64-musl": { + "version": "1.89.0", + "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-riscv64-musl/-/binding-linux-riscv64-musl-1.89.0.tgz", + "integrity": "sha512-fRQQsKUGShdEL5Fl9o9uhj3grkZbeXKLv0icQ5tspUCNYSDy8wzzEcP1WC2bKdTQ0rSszbKlO3iiHORxV22DLg==", + "cpu": [ + "riscv64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxlint/binding-linux-s390x-gnu": { + "version": "1.89.0", + "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.89.0.tgz", + "integrity": "sha512-dEtYjIy6+fHcjKklsmtmMkZRhwHr2UbzjmpvuPtQYSeN9awQ2hx5JLms5Wvri+8P/NZtD8v5hfgHALUql+/Ycg==", + "cpu": [ + "s390x" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxlint/binding-linux-x64-gnu": { + "version": "1.89.0", + "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.89.0.tgz", + "integrity": "sha512-hqjwIj5KOYM8Wjef/p7IruNi1iByLhSzbMBk62y22P/E8q7Jj0Pp+DeUTKTRYyZYCDtU1wEGlnWOnttHbyNIww==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxlint/binding-linux-x64-musl": { + "version": "1.89.0", + "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-x64-musl/-/binding-linux-x64-musl-1.89.0.tgz", + "integrity": "sha512-iAQN3e6o9UgUCcdGwqRx/jYcKbG3HK7ur3rH6lTqVcQeNGZ85AeWIg6cgn/edwFQ0ofEZZItMwkzyCVTahnvEA==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxlint/binding-openharmony-arm64": { + "version": "1.89.0", + "resolved": "https://registry.npmjs.org/@oxlint/binding-openharmony-arm64/-/binding-openharmony-arm64-1.89.0.tgz", + "integrity": "sha512-MNxjEByz3N/7Q4qFQuPWvc14TpN9LoD3pECEDsJTZbP/wyB7U+hduUXEl7QAbbgVezFwsb9sWtNUO6XVBndOhg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxlint/binding-win32-arm64-msvc": { + "version": "1.89.0", + "resolved": "https://registry.npmjs.org/@oxlint/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.89.0.tgz", + "integrity": "sha512-xxe+i9wfuFso/VnoL4mfj0UlzE+cfCFiUB06vkXCMyQdgVVmItF5FfAF4tATAktSU6uHruWR+FjqvAT9cHZZzg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxlint/binding-win32-ia32-msvc": { + "version": "1.89.0", + "resolved": "https://registry.npmjs.org/@oxlint/binding-win32-ia32-msvc/-/binding-win32-ia32-msvc-1.89.0.tgz", + "integrity": "sha512-saFy07cO94E664glwgLmKLI40HgTL1PY86y4T6+ud4niX4H0Kdqjcmqmjps7mQNdBytV5guGbXDdyQtRfeLbLA==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxlint/binding-win32-x64-msvc": { + "version": "1.89.0", + "resolved": "https://registry.npmjs.org/@oxlint/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.89.0.tgz", + "integrity": "sha512-hLFJ/o0f/dTJh/EW0vmcbREYSQO9tYgfiAAlsOkiLFiJuRRWvYtFELUXN5o2ijpSo/tlO1n+YlWN58tZwPG18A==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@remix-run/route-pattern": { + "version": "0.22.1", + "resolved": "https://registry.npmjs.org/@remix-run/route-pattern/-/route-pattern-0.22.1.tgz", + "integrity": "sha512-czdGJWh09Lapvcqt7Vb09KlrU2PhRJ8xQaI+AItTuD9aDJ5MAgxnS38lnys6Ll+6RJEqPiaUqTwIQhVLwFvv+w==", + "license": "MIT" + }, + "node_modules/@rolldown/binding-android-arm-eabi": { + "version": "1.2.14", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm-eabi/-/binding-android-arm-eabi-1.2.14.tgz", + "integrity": "sha512-aWR+XKH9+rW7m5fWq/5360J3mHycrx/o6xZM2DQFdJnTMdyP7/WzxPjhtLbVWdKo2y612/4U1bWqb3HQhiF7vg==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-android-arm64": { + "version": "1.2.14", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.2.14.tgz", + "integrity": "sha512-QiVxHofl6A8lQU7WAtOUY4QMVZXohxwz7WJJoeh8NBEUyKfIkMRKhYyq8az/1RypNiIXzNTtiS6KwHz0erxYRQ==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-darwin-arm64": { + "version": "1.2.14", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.2.14.tgz", + "integrity": "sha512-lTQOzHuBIooh3jIr5XINQkjPGEuGy+Dsy0meXDr6Sjty0b99kYgGh4uBC/8mJX1T0kC8d6S0aPP1Y+bHkh6aBw==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-darwin-x64": { + "version": "1.2.14", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.2.14.tgz", + "integrity": "sha512-hyMKEGatjmBYCs/Q4sbIcL/GqpFEqsX3wc+HYVQ/85A4rxc1o7rPm4DUI4GV4k/h0ITddwFSGpqQunI14GXjTA==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-freebsd-x64": { + "version": "1.2.14", + "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.2.14.tgz", + "integrity": "sha512-u371GbXoVXrEgP20PwzoGNOdAOqAMhzo19JzzY+V4YmmnC+DTOoqdbMu+O+54emM59Mik/UdrtWgcuEDKWRPKA==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm-gnueabihf": { + "version": "1.2.14", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.2.14.tgz", + "integrity": "sha512-BqwKsdZQf6EqVWr8fv2MrDYzAvOZ7+NYFSJESRGs87fkseEhs0TU9TXgRJTkZoRRkxTizyEg1LKUXfU3/78uqg==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm64-gnu": { + "version": "1.2.14", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.2.14.tgz", + "integrity": "sha512-SD9kY8M009x/7s57Z1dgUVlP5+uYBgKQK0Tkr1WIWngrtUJmRCW1RJFMY7QDla2khXhmg2i5Io7MUjcmZNZ/KQ==", + "cpu": [ + "arm64" + ], + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm64-musl": { + "version": "1.2.14", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.2.14.tgz", + "integrity": "sha512-BJ2CL19M6uuWesMgnqJzgxoI+N+eV7b0A9O9vLV42y+gitC41fNa8KElau1tHVzuLWX5GzEuxMPhAO0tQXQMkg==", + "cpu": [ + "arm64" + ], + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-ppc64-gnu": { + "version": "1.2.14", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.2.14.tgz", + "integrity": "sha512-4+Kl8daPV8NDHaD7mfCcc1pRM+Qg7ab8DyMm5FG5WoZgv4h2i3KFN1CybYBNbQqmuYm7ftJLvmMI1eHYJ22S/Q==", + "cpu": [ + "ppc64" + ], + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-s390x-gnu": { + "version": "1.2.14", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.2.14.tgz", + "integrity": "sha512-V/h8ePq1fKDrmtFMz6xcCN3DKvuvMRrwwD1q0PkBeeo4DpK64biaKvqWGVxqCeYKqeRk7gE7/iKPxLCn08O97A==", + "cpu": [ + "s390x" + ], + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-x64-gnu": { + "version": "1.2.14", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.2.14.tgz", + "integrity": "sha512-WxalXzgrLVpKC93xfpaJ3gCXUWzeCr+FRCbDVD2mUAy4L6Vo3lNVz0epUEUpxPWJkLNYUwM4OSIikv36OJ9mLg==", + "cpu": [ + "x64" + ], + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-x64-musl": { + "version": "1.2.14", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.2.14.tgz", + "integrity": "sha512-3G3tnAmTpdk9jO3GQtyHXqeFD2SlecfTws/Y3M2mmj9nMBwwuLT4kur8sZKeu7ENUHSpVO3cIsm5A52LEWWwlg==", + "cpu": [ + "x64" + ], + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-openharmony-arm64": { + "version": "1.2.14", + "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.2.14.tgz", + "integrity": "sha512-qyr5XiNGxm2ytx17vvtcJ9nXn6v1gENETi503bJx3OGwZ1tSonj7BosxbMa/xeAfSl5iS9X6KjEWYXLu6v1L7Q==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-win32-arm64-msvc": { + "version": "1.2.14", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.2.14.tgz", + "integrity": "sha512-oA4o5o0S2yB199YyYXDzKUv1Z56Rc+mgOjwm7Z/vJ9Z8igiDPYvoOuDyo6g7AK/ZaF09nPhDKVnGBcYHO11GXA==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-win32-x64-msvc": { + "version": "1.2.14", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.2.14.tgz", + "integrity": "sha512-9mE94bf2GZUaR/fUSXCMpBoWkctu421Mi0ORpm4zqfbkjKep7RxzPFa5etcGs5h+2KApoWBOA/hAJa/7saGgEQ==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/pluginutils": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.1.tgz", + "integrity": "sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==", + "license": "MIT" + }, + "node_modules/@tailwindcss/node": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.3.3.tgz", + "integrity": "sha512-/T8IKEsf9VTU6tLjgC7+sv2mOPtQxzE2jMw7u4Tt40Tx+QSZxpzh95/H6cMKoja9XuW7iMdLJYBB0o9G1CaAgg==", + "license": "MIT", + "dependencies": { + "@jridgewell/remapping": "^2.3.5", + "enhanced-resolve": "^5.24.1", + "jiti": "^2.7.0", + "lightningcss": "1.32.0", + "magic-string": "^0.30.21", + "source-map-js": "^1.2.1", + "tailwindcss": "4.3.3" + } + }, + "node_modules/@tailwindcss/oxide": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.3.3.tgz", + "integrity": "sha512-krXjAikiaFSPaK/FkAQT5UTx3VormQaiZ5hBFlJZ9UFQGB/rwg1MZIhHAG9smMQRTdyJxP6Qt5MwMtdyU5FWrA==", + "license": "MIT", + "engines": { + "node": ">= 20" + }, + "optionalDependencies": { + "@tailwindcss/oxide-android-arm64": "4.3.3", + "@tailwindcss/oxide-darwin-arm64": "4.3.3", + "@tailwindcss/oxide-darwin-x64": "4.3.3", + "@tailwindcss/oxide-freebsd-x64": "4.3.3", + "@tailwindcss/oxide-linux-arm-gnueabihf": "4.3.3", + "@tailwindcss/oxide-linux-arm64-gnu": "4.3.3", + "@tailwindcss/oxide-linux-arm64-musl": "4.3.3", + "@tailwindcss/oxide-linux-x64-gnu": "4.3.3", + "@tailwindcss/oxide-linux-x64-musl": "4.3.3", + "@tailwindcss/oxide-wasm32-wasi": "4.3.3", + "@tailwindcss/oxide-win32-arm64-msvc": "4.3.3", + "@tailwindcss/oxide-win32-x64-msvc": "4.3.3" + } + }, + "node_modules/@tailwindcss/oxide-android-arm64": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-android-arm64/-/oxide-android-arm64-4.3.3.tgz", + "integrity": "sha512-Y85A2gmPSkl5Ve5qR86GL4HT509cFqQh1aes9p3sSkyTPwt0Pppf3GkwGe4JPACcRYjgJIEhQgM6dBClnr0NYw==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-darwin-arm64": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-arm64/-/oxide-darwin-arm64-4.3.3.tgz", + "integrity": "sha512-BiaWatpBcERQFDlOjRDpIVXuFK5PJez5SA4JMg6VYZdBYU+qKfV/vqjcIs+IYmtitf1xYQZTwXvU/8y4lfZUGw==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-darwin-x64": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-x64/-/oxide-darwin-x64-4.3.3.tgz", + "integrity": "sha512-fAeUqfV5ndhxRwai8cXGzdLvul9utWOmeTkv69unv4ZXixjn61Z+p9lCWdwOwA3TYboG3BwdVuN/RDjhBRl0mw==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-freebsd-x64": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-freebsd-x64/-/oxide-freebsd-x64-4.3.3.tgz", + "integrity": "sha512-iyf5bV6+wnAlflVeEy7R25dupxTNECZN5QMI0qNT6eT+EgaGdZcKhGkr5SdoaWiLJ3spLqIY9VCeSGrwmtg4kw==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-arm-gnueabihf": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm-gnueabihf/-/oxide-linux-arm-gnueabihf-4.3.3.tgz", + "integrity": "sha512-aAYUprJAJQWWbRrPvtjdroZ56Md+JM8pMiopS6xGEwDfLhqj+2ver2p4nU4Mb3CRqcMmNBjo8KkUgcxhkzVQGQ==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-arm64-gnu": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-gnu/-/oxide-linux-arm64-gnu-4.3.3.tgz", + "integrity": "sha512-nDxldcEENOxZRzC2uu9jrutZdAAQtb+8WWDCSnWL1zvBk1+FN+x6MtDViPB5AJMfttVCUhehGWus3XBPgatM/w==", + "cpu": [ + "arm64" + ], + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-arm64-musl": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-musl/-/oxide-linux-arm64-musl-4.3.3.tgz", + "integrity": "sha512-Md44bD6veX/PC5iyF8cDVnw4HBIANZepRZZ7a8DQOvkfo5WUBwcp6iAuCUz23u+4SUkhJlD3eL7hNdW8ezd/kA==", + "cpu": [ + "arm64" + ], + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-x64-gnu": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-gnu/-/oxide-linux-x64-gnu-4.3.3.tgz", + "integrity": "sha512-tx7us1muwOKAKWao2v/GaafFeQboE6aj88vC6ziN2NCGcRm8gWUhwjzg+YdVB1e4boAtdtma4L43onunI6NS4w==", + "cpu": [ + "x64" + ], + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-x64-musl": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-musl/-/oxide-linux-x64-musl-4.3.3.tgz", + "integrity": "sha512-SJxX60smvHgasZoBy11dX6YRjXJFovwWBoedhbQPOBzgFWBHGB+TVPWB9BxzR7TTxU8FQZAI2AyiNCMzFm8Img==", + "cpu": [ + "x64" + ], + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-wasm32-wasi": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-wasm32-wasi/-/oxide-wasm32-wasi-4.3.3.tgz", + "integrity": "sha512-jx1+rPhY/5Ympkktd656HBWEBLxP7dH06losBLjjf5vgCODXvi9KhtftWcMIwTFIDqBr7cRnQkdLnAG+IOlGvQ==", + "bundleDependencies": [ + "@napi-rs/wasm-runtime", + "@emnapi/core", + "@emnapi/runtime", + "@tybys/wasm-util", + "@emnapi/wasi-threads", + "tslib" + ], + "cpu": [ + "wasm32" + ], + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/core": "^1.11.1", + "@emnapi/runtime": "^1.11.1", + "@emnapi/wasi-threads": "^1.2.2", + "@napi-rs/wasm-runtime": "^1.1.4", + "@tybys/wasm-util": "^0.10.2", + "tslib": "^2.8.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@tailwindcss/oxide-win32-arm64-msvc": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.3.3.tgz", + "integrity": "sha512-3rc292Ca2ceK6Ulcc/bAVnTs/3nDtoPhyEKlgPv+yQJQi/JS/AMJlqzxvlDacL1nekbrcf6bTqp/jV4qgnPxNQ==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-win32-x64-msvc": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-x64-msvc/-/oxide-win32-x64-msvc-4.3.3.tgz", + "integrity": "sha512-yJ0pwIVc/nYeGoV02WtsN8KYyLQv7kyI2wDnkezyJlGGjkd4QLwDGAwl47YpPJeuI0M0ObaXGSPjvWDPeTPggw==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/vite": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@tailwindcss/vite/-/vite-4.3.3.tgz", + "integrity": "sha512-yYU8cogLeSh/ms2jh8Fj7jaba/EWa7Ja6GoUqYZaraEuCI5YS6ms6ObZgjjedm+jm6XZjdNRWBpPP6Z86oOxcw==", + "license": "MIT", + "dependencies": { + "@tailwindcss/node": "4.3.3", + "@tailwindcss/oxide": "4.3.3", + "tailwindcss": "4.3.3" + }, + "peerDependencies": { + "vite": "^5.2.0 || ^6 || ^7 || ^8" + } + }, + "node_modules/@tanstack/query-core": { + "version": "5.104.5", + "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.104.5.tgz", + "integrity": "sha512-Q94gI8Opd+CbdVNOdj8ZCyV8WqLYitrDq1t96Xc8WZT6lY0r5iRnJLXYDxMex7EEf2v+mXvn4FcjaBKSxXZQ9A==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/tannerlinsley" + } + }, + "node_modules/@tanstack/react-query": { + "version": "5.104.5", + "resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.104.5.tgz", + "integrity": "sha512-RORgFe052U+93weaNuqg7qHq7vNVNzXN/VrXqD4bbAuQCWUqOl2lV5Ui9flWk5CVvMyL/Bh27QWhzwH0aaOx9g==", + "license": "MIT", + "dependencies": { + "@tanstack/query-core": "5.104.5" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/tannerlinsley" + }, + "peerDependencies": { + "@types/react": "^18 || ^19", + "react": "^18 || ^19" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/node": { + "version": "24.19.2", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.19.2.tgz", + "integrity": "sha512-93d49wCWJkCyN87MxLpNN6KXPCwFw7bVUg79mGUV1OS40JGWwVCr8n61DXCSqz7CV6/VfPkb7xec7uP2M+QHWQ==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "undici-types": ">=7.24.0 <7.24.7" + } + }, + "node_modules/@types/react": { + "version": "19.3.0", + "resolved": "https://registry.npmjs.org/@types/react/-/react-19.3.0.tgz", + "integrity": "sha512-N0rFCuH9YoxG9/m61l9MfpJKfmLOVU0em7ipIz6TRgSSkvReLB9vL85GB+yr8Bs5leqpvg96JSwF4ZS1s4viQg==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "csstype": "^3.2.2" + } + }, + "node_modules/@types/react-dom": { + "version": "19.3.0", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.3.0.tgz", + "integrity": "sha512-ZI7bU42mZXXKHn/qNLEw2IrbiINU7X5+vfgdixBHkCNpYWXjKgfQ/P+uyGb5CjOLB9UcnTeg3rylQtV2hym44Q==", + "devOptional": true, + "license": "MIT", + "peerDependencies": { + "@types/react": "^19.3.0" + } + }, + "node_modules/@vitejs/plugin-react": { + "version": "6.1.2", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-6.1.2.tgz", + "integrity": "sha512-fhJNGUdscQa4HkI0xFxwonWyhnVReCPDbXI7FH7jmzpnVCrFQI7PRrhWecO263610vOrs9tr2Y4xcf8uAdFxbw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@rolldown/pluginutils": "^1.0.1" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "peerDependencies": { + "@rolldown/plugin-babel": "^0.1.7 || ^0.2.0", + "babel-plugin-react-compiler": "^1.0.0", + "oxc-transform-react": "^0.152.0", + "vite": "^8.0.0" + }, + "peerDependenciesMeta": { + "@rolldown/plugin-babel": { + "optional": true + }, + "babel-plugin-react-compiler": { + "optional": true + }, + "oxc-transform-react": { + "optional": true + } + } + }, + "node_modules/ansi-colors": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz", + "integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true, + "license": "Python-2.0" + }, + "node_modules/bundle-name": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/bundle-name/-/bundle-name-4.1.1.tgz", + "integrity": "sha512-DdH81/zPLVS11EUgWq3tEu/xn+EzljlMYooDNdzWEnFha3R3NBMpMV1UqYIpjYHV/SgpFKMIX1Oh7o06SjM/oA==", + "dev": true, + "license": "MIT", + "dependencies": { + "run-applescript": "^7.0.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/c12": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/c12/-/c12-3.3.4.tgz", + "integrity": "sha512-cM0ApFQSBXuourJejzwv/AuPRvAxordTyParRVcHjjtXirtkzM0uK2L9TTn9s0cXZbG7E55jCivRQzoxYmRAlA==", + "dev": true, + "license": "MIT", + "dependencies": { + "chokidar": "^5.0.0", + "confbox": "^0.2.4", + "defu": "^6.1.6", + "dotenv": "^17.3.1", + "exsolve": "^1.0.8", + "giget": "^3.2.0", + "jiti": "^2.6.1", + "ohash": "^2.0.11", + "pathe": "^2.0.3", + "perfect-debounce": "^2.1.0", + "pkg-types": "^2.3.0", + "rc9": "^3.0.1" + }, + "peerDependencies": { + "magicast": "*" + }, + "peerDependenciesMeta": { + "magicast": { + "optional": true + } + } + }, + "node_modules/chokidar": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-5.0.0.tgz", + "integrity": "sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==", + "dev": true, + "license": "MIT", + "dependencies": { + "readdirp": "^5.0.0" + }, + "engines": { + "node": ">= 20.19.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/color-support": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz", + "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==", + "dev": true, + "license": "ISC", + "bin": { + "color-support": "bin.js" + } + }, + "node_modules/commander": { + "version": "15.0.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-15.0.0.tgz", + "integrity": "sha512-z67u4ZhzCL/Tydu1lJARtEZYWbWaN7oYLHbsuzocr6y4N6WZAagG3RQ4FW61V1/0+jImpj293XfrcYnd1qxtPg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=22.12.0" + } + }, + "node_modules/confbox": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.2.4.tgz", + "integrity": "sha512-ysOGlgTFbN2/Y6Cg3Iye8YKulHw+R2fNXHrgSmXISQdMnomY6eNDprVdW9R5xBguEqI954+S6709UyiO7B+6OQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/cookie-es": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/cookie-es/-/cookie-es-3.1.1.tgz", + "integrity": "sha512-UaXxwISYJPTr9hwQxMFYZ7kNhSXboMXP+Z3TRX6f1/NyaGPfuNUZOWP1pUEb75B2HjfklIYLVRfWiFZJyC6Npg==", + "license": "MIT" + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "dev": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/csstype": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", + "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", + "devOptional": true, + "license": "MIT" + }, + "node_modules/default-browser": { + "version": "5.5.1", + "resolved": "https://registry.npmjs.org/default-browser/-/default-browser-5.5.1.tgz", + "integrity": "sha512-m1pAzaJgZ/gssEqlOhJkPJp8Xly7QyW6xcrkUa2KKcDeDSEMP7X8xipU3snUcfisTQx0w1AGae+9UtJSfVnXGw==", + "dev": true, + "license": "MIT", + "dependencies": { + "bundle-name": "^4.1.0", + "default-browser-id": "^5.0.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/default-browser-id": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/default-browser-id/-/default-browser-id-5.0.1.tgz", + "integrity": "sha512-x1VCxdX4t+8wVfd1so/9w+vQ4vx7lKd2Qp5tDRutErwmR85OgmfX7RlLRMWafRMY7hbEiXIbudNrjOAPa/hL8Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/define-lazy-prop": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-3.0.0.tgz", + "integrity": "sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/defu": { + "version": "6.1.7", + "resolved": "https://registry.npmjs.org/defu/-/defu-6.1.7.tgz", + "integrity": "sha512-7z22QmUWiQ/2d0KkdYmANbRUVABpZ9SNYyH5vx6PZ+nE5bcC0l7uFvEfHlyld/HcGBFTL536ClDt3DEcSlEJAQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/destr": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/destr/-/destr-2.0.5.tgz", + "integrity": "sha512-ugFTXCtDZunbzasqBxrK93Ik/DRYsO6S/fedkWEMKqt04xZ4csmnmwGDBAb07QWNaGMAmnTIemsYZCksjATwsA==", + "dev": true, + "license": "MIT" + }, + "node_modules/detect-libc": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", + "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", + "license": "Apache-2.0", + "engines": { + "node": ">=8" + } + }, + "node_modules/dotenv": { + "version": "17.4.2", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-17.4.2.tgz", + "integrity": "sha512-nI4U3TottKAcAD9LLud4Cb7b2QztQMUEfHbvhTH09bqXTxnSie8WnjPALV/WMCrJZ6UV/qHJ6L03OqO3LcdYZw==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://dotenvx.com" + } + }, + "node_modules/enhanced-resolve": { + "version": "5.26.0", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.26.0.tgz", + "integrity": "sha512-9vhedylFonb2YGogzUKX6+Ja72gOJbN1QHAqdrvqLwhdl/QWbKopzoUC9EbQNVsAns/bx/4uyqalrQAoy1IByw==", + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.4", + "tapable": "^2.3.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/exsolve": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/exsolve/-/exsolve-1.1.3.tgz", + "integrity": "sha512-kuzL9zherLQoqDeQaS55AiiIg1kb4KYXaSusTtgZTPlvKP2gGCI82LNmBNh5RjDVUXIcmgx+/Mx7vPwRzBbhJA==", + "dev": true, + "license": "MIT" + }, + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/get-tsconfig": { + "version": "4.14.0", + "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.14.0.tgz", + "integrity": "sha512-yTb+8DXzDREzgvYmh6s9vHsSVCHeC0G3PI5bEXNBHtmshPnO+S5O7qgLEOn0I5QvMy6kpZN8K1NKGyilLb93wA==", + "dev": true, + "license": "MIT", + "dependencies": { + "resolve-pkg-maps": "^1.0.0" + }, + "funding": { + "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" + } + }, + "node_modules/giget": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/giget/-/giget-3.3.1.tgz", + "integrity": "sha512-r+mvuDjrjMpsdw46Kmeydb8bdHm7wOKw8wNBtTndkjbPjgAp5oUJUxRE76wZFknxIPokfWvep2qSXK37aXE6zg==", + "dev": true, + "license": "MIT", + "bin": { + "giget": "dist/cli.mjs" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "license": "ISC" + }, + "node_modules/is-docker": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-3.0.0.tgz", + "integrity": "sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==", + "dev": true, + "license": "MIT", + "bin": { + "is-docker": "cli.js" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-in-ssh": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-in-ssh/-/is-in-ssh-1.0.0.tgz", + "integrity": "sha512-jYa6Q9rH90kR1vKB6NM7qqd1mge3Fx4Dhw5TVlK1MUBqhEOuCagrEHMevNuCcbECmXZ0ThXkRm+Ymr51HwEPAw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-inside-container": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-inside-container/-/is-inside-container-1.0.0.tgz", + "integrity": "sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-docker": "^3.0.0" + }, + "bin": { + "is-inside-container": "cli.js" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-wsl": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-3.1.1.tgz", + "integrity": "sha512-e6rvdUCiQCAuumZslxRJWR/Doq4VpPR82kqclvcS0efgt430SlGIk05vdCN58+VrzgtIcfNODjozVielycD4Sw==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-inside-container": "^1.0.0" + }, + "engines": { + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true, + "license": "ISC" + }, + "node_modules/jiti": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.7.0.tgz", + "integrity": "sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==", + "license": "MIT", + "bin": { + "jiti": "lib/jiti-cli.mjs" + } + }, + "node_modules/js-yaml": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.2.0.tgz", + "integrity": "sha512-ePWsvanv0DWuDRsW8dnt+R4jQ31SCRCQ7hhNcPXZPsoBZiemuZNYGf7adZdqX2D86j6rvKp3RpCxVTSb8WQlOw==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/puzrin" + }, + { + "type": "github", + "url": "https://github.com/sponsors/nodeca" + } + ], + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/lightningcss": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.32.0.tgz", + "integrity": "sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==", + "license": "MPL-2.0", + "dependencies": { + "detect-libc": "^2.0.3" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "optionalDependencies": { + "lightningcss-android-arm64": "1.32.0", + "lightningcss-darwin-arm64": "1.32.0", + "lightningcss-darwin-x64": "1.32.0", + "lightningcss-freebsd-x64": "1.32.0", + "lightningcss-linux-arm-gnueabihf": "1.32.0", + "lightningcss-linux-arm64-gnu": "1.32.0", + "lightningcss-linux-arm64-musl": "1.32.0", + "lightningcss-linux-x64-gnu": "1.32.0", + "lightningcss-linux-x64-musl": "1.32.0", + "lightningcss-win32-arm64-msvc": "1.32.0", + "lightningcss-win32-x64-msvc": "1.32.0" + } + }, + "node_modules/lightningcss-android-arm64": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.32.0.tgz", + "integrity": "sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==", + "cpu": [ + "arm64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-arm64": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.32.0.tgz", + "integrity": "sha512-RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ==", + "cpu": [ + "arm64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-x64": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.32.0.tgz", + "integrity": "sha512-U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w==", + "cpu": [ + "x64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-freebsd-x64": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.32.0.tgz", + "integrity": "sha512-JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig==", + "cpu": [ + "x64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm-gnueabihf": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.32.0.tgz", + "integrity": "sha512-x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw==", + "cpu": [ + "arm" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-gnu": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.32.0.tgz", + "integrity": "sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==", + "cpu": [ + "arm64" + ], + "libc": [ + "glibc" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-musl": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.32.0.tgz", + "integrity": "sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==", + "cpu": [ + "arm64" + ], + "libc": [ + "musl" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-gnu": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.32.0.tgz", + "integrity": "sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==", + "cpu": [ + "x64" + ], + "libc": [ + "glibc" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-musl": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.32.0.tgz", + "integrity": "sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==", + "cpu": [ + "x64" + ], + "libc": [ + "musl" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-arm64-msvc": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.32.0.tgz", + "integrity": "sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==", + "cpu": [ + "arm64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-x64-msvc": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.32.0.tgz", + "integrity": "sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==", + "cpu": [ + "x64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/magic-string": { + "version": "0.30.21", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", + "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==", + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.5" + } + }, + "node_modules/modern-screenshot": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/modern-screenshot/-/modern-screenshot-4.7.0.tgz", + "integrity": "sha512-9YxN+ddPSMMlhylOv25VHzXrl9u67QRxoh7+SEewGtgUw7t6hHTrjptSDJUSne9oG4Xk/h2cwG15nIt4Hc9ujg==", + "license": "MIT" + }, + "node_modules/nanoid": { + "version": "3.3.20", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.20.tgz", + "integrity": "sha512-uKdg2G3GNCKQn9byYOpxbGqrT2fGO5KRt5J/8b3pok8rT6qxGWF6hxMyJiEYtAf+FVyYuD9hRaDqX5uPFYJ4ZQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/ohash": { + "version": "2.0.12", + "resolved": "https://registry.npmjs.org/ohash/-/ohash-2.0.12.tgz", + "integrity": "sha512-65S/5gk9YSsaRjcyf7Nfa6h/d3E8/1gslpXfI4W7Dxn/oap8IKRuNT5VXkLQ1YFKIEg4apRY4Pj6aiwFzrDdmw==", + "dev": true, + "license": "MIT" + }, + "node_modules/open": { + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/open/-/open-11.0.0.tgz", + "integrity": "sha512-smsWv2LzFjP03xmvFoJ331ss6h+jixfA4UUV/Bsiyuu4YJPfN+FIQGOIiv4w9/+MoHkfkJ22UIaQWRVFRfH6Vw==", + "dev": true, + "license": "MIT", + "dependencies": { + "default-browser": "^5.4.0", + "define-lazy-prop": "^3.0.0", + "is-in-ssh": "^1.0.0", + "is-inside-container": "^1.0.0", + "powershell-utils": "^0.1.0", + "wsl-utils": "^0.3.0" + }, + "engines": { + "node": ">=20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/oxlint": { + "version": "1.89.0", + "resolved": "https://registry.npmjs.org/oxlint/-/oxlint-1.89.0.tgz", + "integrity": "sha512-a25hkfo61okGPvJz432fRIPoxlKtNnOVy9w4rzrmGgNm4iVTPwpSQlmdqNWnp6p9QyyPVfAZRgnf5XvSBZFk/A==", + "dev": true, + "license": "MIT", + "bin": { + "oxlint": "bin/oxlint" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "funding": { + "url": "https://github.com/sponsors/oxc-project" + }, + "optionalDependencies": { + "@oxlint/binding-android-arm-eabi": "1.89.0", + "@oxlint/binding-android-arm64": "1.89.0", + "@oxlint/binding-darwin-arm64": "1.89.0", + "@oxlint/binding-darwin-x64": "1.89.0", + "@oxlint/binding-freebsd-x64": "1.89.0", + "@oxlint/binding-linux-arm-gnueabihf": "1.89.0", + "@oxlint/binding-linux-arm-musleabihf": "1.89.0", + "@oxlint/binding-linux-arm64-gnu": "1.89.0", + "@oxlint/binding-linux-arm64-musl": "1.89.0", + "@oxlint/binding-linux-ppc64-gnu": "1.89.0", + "@oxlint/binding-linux-riscv64-gnu": "1.89.0", + "@oxlint/binding-linux-riscv64-musl": "1.89.0", + "@oxlint/binding-linux-s390x-gnu": "1.89.0", + "@oxlint/binding-linux-x64-gnu": "1.89.0", + "@oxlint/binding-linux-x64-musl": "1.89.0", + "@oxlint/binding-openharmony-arm64": "1.89.0", + "@oxlint/binding-win32-arm64-msvc": "1.89.0", + "@oxlint/binding-win32-ia32-msvc": "1.89.0", + "@oxlint/binding-win32-x64-msvc": "1.89.0" + }, + "peerDependencies": { + "oxlint-tsgolint": ">=7.0.2003", + "vite-plus": "*" + }, + "peerDependenciesMeta": { + "oxlint-tsgolint": { + "optional": true + }, + "vite-plus": { + "optional": true + } + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/pathe": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", + "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", + "dev": true, + "license": "MIT" + }, + "node_modules/perfect-debounce": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/perfect-debounce/-/perfect-debounce-2.1.0.tgz", + "integrity": "sha512-LjgdTytVFXeUgtHZr9WYViYSM/g8MkcTPYDlPa3cDqMirHjKiSZPYd6DoL7pK8AJQr+uWkQvCjHNdiMqsrJs+g==", + "dev": true, + "license": "MIT" + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz", + "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pkg-types": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-2.4.0.tgz", + "integrity": "sha512-07Fys7iVx0X6TcviMOgogM1Lk33ZyqOezMnU79S+kffWqwolG/5W9V8EgQSeYCIfFTYVgssRbnH630Oa2+soBA==", + "dev": true, + "license": "MIT", + "dependencies": { + "confbox": "^0.3.1", + "exsolve": "^1.1.3", + "pathe": "^2.0.3" + } + }, + "node_modules/pkg-types/node_modules/confbox": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.3.1.tgz", + "integrity": "sha512-cKUSoKa8YxFZZSmraVi7onONx3amu77ngK3kGpsYHDH7drPwCRkQE1RYMPlLRrMtnciRj274XNRxcHxnKmDSnA==", + "dev": true, + "license": "MIT" + }, + "node_modules/postcss": { + "version": "8.5.31", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.31.tgz", + "integrity": "sha512-YUbWYCgErwnMAVkjUnYa+KlMBzGpHwiIt/DE7f0G33AuX2LH9UcTk6KgWxd3zRU+pN3u/C+Xl3EnMLM4Hea7Sg==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.20", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.2" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/powershell-utils": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/powershell-utils/-/powershell-utils-0.1.0.tgz", + "integrity": "sha512-dM0jVuXJPsDN6DvRpea484tCUaMiXWjuCn++HGTqUWzGDjv5tZkEZldAJ/UMlqRYGFrD/etByo4/xOuC/snX2A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/rc9": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/rc9/-/rc9-3.1.0.tgz", + "integrity": "sha512-ufjkNVzbRHKcCOmTahZkmVsyc3W+MSk3jY03m+a7tGHkIsdVMG9l10/3HvFbWkkKzY5VFp3pkRsIo/UYgmFL7Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "defu": "^6.1.7", + "destr": "^2.0.5" + } + }, + "node_modules/react": { + "version": "19.3.1", + "resolved": "https://registry.npmjs.org/react/-/react-19.3.1.tgz", + "integrity": "sha512-QNhWdt7nrgVWWQG58QuGsAR3jv3Hbe4mb4vz7w2csnHavciZJgda1CPNaldF6eVxv90ud3jUXpKlHL69gO38yw==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-dom": { + "version": "19.3.1", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.3.1.tgz", + "integrity": "sha512-Y0bARz53lhEC1NMCASs0/j+faB/zqt3R8hpvg1e8+61ZVJ4UL0UdC4cBbXfZMcIuhrfgeILTLe+ZeBCavQPtKQ==", + "license": "MIT", + "dependencies": { + "scheduler": "^0.28.0" + }, + "peerDependencies": { + "react": "^19.3.1" + } + }, + "node_modules/react-router": { + "version": "8.5.0", + "resolved": "https://registry.npmjs.org/react-router/-/react-router-8.5.0.tgz", + "integrity": "sha512-9nEd/deifcTJIIcUaNIyQGkyXD0D6QVB9XD2O5GgHpP3xu3U5RXm87YQ8++Wn8JQWgMBM/5+PjWPM/7n7O7WHA==", + "license": "MIT", + "dependencies": { + "@remix-run/route-pattern": "^0.22.1", + "cookie-es": "^3.1.1" + }, + "engines": { + "node": ">=22.22.0" + }, + "peerDependencies": { + "@types/react": ">=19.2.0", + "@types/react-dom": ">=19.2.0", + "react": ">=19.2.7", + "react-dom": ">=19.2.7" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + }, + "react-dom": { + "optional": true + } + } + }, + "node_modules/readdirp": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-5.1.1.tgz", + "integrity": "sha512-Kko+Y5XQ6fM+Ce3dq3m9YGxnacYZYl9cA1wZjaF3Vbry2L3i1qVg8+CAgNPsXRArPMUMCaOR7oa9Nqntc43JKA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 20.19.0" + }, + "funding": { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/resolve-pkg-maps": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", + "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" + } + }, + "node_modules/rolldown": { + "version": "1.2.14", + "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.2.14.tgz", + "integrity": "sha512-eTBTTqMR6uHKLgcUqpJP8ntzDI6V4LYA8negAMBEI7gkgVvOdrx6VsvS2Ym+83KhOPdLCHWJu0w7UQFJZhHKNw==", + "license": "MIT", + "dependencies": { + "@oxc-project/types": "=0.154.0", + "@rolldown/pluginutils": "^1.0.0" + }, + "bin": { + "rolldown": "bin/cli.mjs" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "optionalDependencies": { + "@rolldown/binding-android-arm-eabi": "1.2.14", + "@rolldown/binding-android-arm64": "1.2.14", + "@rolldown/binding-darwin-arm64": "1.2.14", + "@rolldown/binding-darwin-x64": "1.2.14", + "@rolldown/binding-freebsd-x64": "1.2.14", + "@rolldown/binding-linux-arm-gnueabihf": "1.2.14", + "@rolldown/binding-linux-arm64-gnu": "1.2.14", + "@rolldown/binding-linux-arm64-musl": "1.2.14", + "@rolldown/binding-linux-ppc64-gnu": "1.2.14", + "@rolldown/binding-linux-s390x-gnu": "1.2.14", + "@rolldown/binding-linux-x64-gnu": "1.2.14", + "@rolldown/binding-linux-x64-musl": "1.2.14", + "@rolldown/binding-openharmony-arm64": "1.2.14", + "@rolldown/binding-win32-arm64-msvc": "1.2.14", + "@rolldown/binding-win32-x64-msvc": "1.2.14" + } + }, + "node_modules/run-applescript": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/run-applescript/-/run-applescript-7.1.0.tgz", + "integrity": "sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/scheduler": { + "version": "0.28.0", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.28.0.tgz", + "integrity": "sha512-juorfCmIkIw8tT+p5BXSm6PJjQF/ycEYmKyzURCIt/RaZIhL+PulbQ9Yu2z1HdOJDdqDTlxA1+xKBmHXJsczAw==", + "license": "MIT" + }, + "node_modules/semver": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.4.tgz", + "integrity": "sha512-rUCObTnP32Q08R2uuIrt7r9PlEonuTmtuXYcW6s5kjdlj3xbnwe+21yXptAUYcMAABLkYYTtnmzb3w3EDZfueA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/source-map-js": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.2.tgz", + "integrity": "sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/tailwindcss": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.3.3.tgz", + "integrity": "sha512-gOhV3P7ufE62QDGg1zVaTgCR+EtPv92k2nIhVcVKcLmxT1sUBsQGhnZj175j+MqRt4zLF7ic+sCYjfhxMxj7YQ==", + "license": "MIT" + }, + "node_modules/tapable": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.3.3.tgz", + "integrity": "sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==", + "license": "MIT", + "engines": { + "node": ">=6" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/tinyglobby": { + "version": "0.2.17", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz", + "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==", + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.4" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/typescript": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz", + "integrity": "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/undici-types": { + "version": "7.24.6", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.24.6.tgz", + "integrity": "sha512-WRNW+sJgj5OBN4/0JpHFqtqzhpbnV0GuB+OozA9gCL7a993SmU+1JBZCzLNxYsbMfIeDL+lTsphD5jN5N+n0zg==", + "devOptional": true, + "license": "MIT" + }, + "node_modules/vite": { + "version": "8.3.4", + "resolved": "https://registry.npmjs.org/vite/-/vite-8.3.4.tgz", + "integrity": "sha512-IftLE8phJhdNRIGNEV4JCCvfNScoZQVfcXaN8TQropWGJtOHcu+iAB9pHcuGvmEb/kddw0LBe/jS8ztdC6xdiQ==", + "license": "MIT", + "dependencies": { + "lightningcss": "^1.33.0", + "picomatch": "^4.0.7", + "postcss": "^8.5.29", + "rolldown": "~1.2.12", + "tinyglobby": "^0.2.17" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^20.19.0 || >=22.12.0", + "@vitejs/devtools": "^0.7.1", + "esbuild": "^0.27.0 || ^0.28.0", + "jiti": ">=1.21.0", + "less": "^4.0.0", + "sass": "^1.70.0", + "sass-embedded": "^1.70.0", + "stylus": ">=0.54.8", + "sugarss": "^5.0.0", + "terser": "^5.16.0", + "tsx": "^4.8.1", + "yaml": "^2.4.2" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "@vitejs/devtools": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "jiti": { + "optional": true + }, + "less": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true + } + } + }, + "node_modules/vite/node_modules/lightningcss": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.33.0.tgz", + "integrity": "sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==", + "license": "MPL-2.0", + "dependencies": { + "detect-libc": "^2.0.3" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "optionalDependencies": { + "lightningcss-android-arm64": "1.33.0", + "lightningcss-darwin-arm64": "1.33.0", + "lightningcss-darwin-x64": "1.33.0", + "lightningcss-freebsd-x64": "1.33.0", + "lightningcss-linux-arm-gnueabihf": "1.33.0", + "lightningcss-linux-arm64-gnu": "1.33.0", + "lightningcss-linux-arm64-musl": "1.33.0", + "lightningcss-linux-x64-gnu": "1.33.0", + "lightningcss-linux-x64-musl": "1.33.0", + "lightningcss-win32-arm64-msvc": "1.33.0", + "lightningcss-win32-x64-msvc": "1.33.0" + } + }, + "node_modules/vite/node_modules/lightningcss-android-arm64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.33.0.tgz", + "integrity": "sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==", + "cpu": [ + "arm64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/vite/node_modules/lightningcss-darwin-arm64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.33.0.tgz", + "integrity": "sha512-Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg==", + "cpu": [ + "arm64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/vite/node_modules/lightningcss-darwin-x64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.33.0.tgz", + "integrity": "sha512-Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ==", + "cpu": [ + "x64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/vite/node_modules/lightningcss-freebsd-x64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.33.0.tgz", + "integrity": "sha512-QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg==", + "cpu": [ + "x64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/vite/node_modules/lightningcss-linux-arm-gnueabihf": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.33.0.tgz", + "integrity": "sha512-N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ==", + "cpu": [ + "arm" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/vite/node_modules/lightningcss-linux-arm64-gnu": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.33.0.tgz", + "integrity": "sha512-j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg==", + "cpu": [ + "arm64" + ], + "libc": [ + "glibc" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/vite/node_modules/lightningcss-linux-arm64-musl": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.33.0.tgz", + "integrity": "sha512-yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ==", + "cpu": [ + "arm64" + ], + "libc": [ + "musl" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/vite/node_modules/lightningcss-linux-x64-gnu": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.33.0.tgz", + "integrity": "sha512-ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg==", + "cpu": [ + "x64" + ], + "libc": [ + "glibc" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/vite/node_modules/lightningcss-linux-x64-musl": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.33.0.tgz", + "integrity": "sha512-RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw==", + "cpu": [ + "x64" + ], + "libc": [ + "musl" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/vite/node_modules/lightningcss-win32-arm64-msvc": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.33.0.tgz", + "integrity": "sha512-1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA==", + "cpu": [ + "arm64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/vite/node_modules/lightningcss-win32-x64-msvc": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.33.0.tgz", + "integrity": "sha512-OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA==", + "cpu": [ + "x64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/wsl-utils": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/wsl-utils/-/wsl-utils-0.3.1.tgz", + "integrity": "sha512-g/eziiSUNBSsdDJtCLB8bdYEUMj4jR7AGeUo96p/3dTafgjHhpF4RiCFPiRILwjQoDXx5MqkBr4fwWtR3Ky4Wg==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-wsl": "^3.1.0", + "powershell-utils": "^0.1.0" + }, + "engines": { + "node": ">=20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + } + } +} diff --git a/admin/package.json b/admin/package.json new file mode 100644 index 0000000..2776958 --- /dev/null +++ b/admin/package.json @@ -0,0 +1,34 @@ +{ + "name": "admin", + "private": true, + "version": "0.0.0", + "type": "module", + "scripts": { + "dev": "vite", + "build": "tsc -b && vite build", + "lint": "oxlint", + "preview": "vite preview", + "api": "openapi-ts", + "card": "node scripts/card.mjs", + "gen-image": "node scripts/gen-image.mjs" + }, + "dependencies": { + "@tailwindcss/vite": "^4.3.3", + "@tanstack/react-query": "^5.104.0", + "modern-screenshot": "^4.7.0", + "react": "^19.2.8", + "react-dom": "^19.2.8", + "react-router": "^8.4.0", + "tailwindcss": "^4.3.3" + }, + "devDependencies": { + "@hey-api/openapi-ts": "0.99.0", + "@types/node": "^24.13.3", + "@types/react": "^19.2.18", + "@types/react-dom": "^19.2.7", + "@vitejs/plugin-react": "^6.1.1", + "oxlint": "^1.81.0", + "typescript": "~6.0.2", + "vite": "^8.3.0" + } +} diff --git a/admin/scripts/card.mjs b/admin/scripts/card.mjs new file mode 100644 index 0000000..9b5827c --- /dev/null +++ b/admin/scripts/card.mjs @@ -0,0 +1,135 @@ +// 인스타 카드를 템플릿대로 JPEG로 만든다. 웹 화면(/render)을 헤드리스 Chrome으로 찍는다. +// 사용: npm run card -- [--topic 주제] [--feedback 피드백] [--copy <웹 화면 '대화로 만들기'의 값>] [--out <폴더>] +// --topic·--feedback 이 있으면 Claude가 먼저 문구를 기획하고(관리자 서버 /api/plan), 기획안을 출력한 뒤 그 문구로 그린다. +// 날씨 타로는 --copy 가 없으면 주제 없이도 Claude가 기획한다. --color <테마>로 색을 고르고, 없으면 무작위. +// 그리기 전에 그날 카드에 없는 그림만 Codex로 만든다 (--no-images 로 건너뜀). +// --post 면 다 그린 뒤 날씨각 오늘 피드에 바로 올리고, --post-wait 면 승인 대기로 저장한다 (관리자 서버 /api/post). +// 지역은 고르지 않는다. 카드는 서울 예보로 만들고 카드에 지역 이름은 나가지 않는다 (src/cards/data.ts BASE_REGION) +import { execFileSync } from 'node:child_process' +import { existsSync, mkdirSync, readFileSync, rmSync } from 'node:fs' +import { resolve } from 'node:path' + +const SLIDES = { tarot: 5, ootd: 6 } +// 기본 문구가 서비스 데이터 그대로라 Claude 기획이 꼭 필요한 템플릿 (src/cards/templates.tsx autoPlan) +const AUTO_PLAN = ['tarot'] +// src/cards/themes.ts THEMES 의 id +const THEMES = ['sunset', 'sky', 'mint', 'berry', 'lemon', 'lavender'] +const ADMIN_URL = process.env.ADMIN_URL ?? 'http://localhost:5175' +const API_URL = process.env.VITE_API_BASE_URL ?? 'http://localhost:9810' +const CHROME = process.env.CHROME_PATH ?? '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome' + +function fail(message) { + console.error(message) + process.exit(1) +} + +const args = process.argv.slice(2) +const flag = (name) => { + const i = args.indexOf(name) + if (i < 0) return null + const [, value] = args.splice(i, 2) + return value +} +let copy = flag('--copy') +const topic = flag('--topic') +const feedback = flag('--feedback') +const color = flag('--color') +const outArg = flag('--out') +const take = (name) => args.includes(name) && args.splice(args.indexOf(name), 1).length > 0 +const noImages = take('--no-images') +const postNow = take('--post') +const postWait = take('--post-wait') +const [template] = args + +if (!SLIDES[template]) fail(`사용: npm run card -- <${Object.keys(SLIDES).join('|')}> [--topic 주제] [--feedback 피드백] [--color ${THEMES.join('|')}] [--copy 값] [--out 폴더]`) +if (color && !THEMES.includes(color)) fail(`색은 ${THEMES.join(', ')} 중 하나예요.`) +if (!existsSync(CHROME)) fail(`Chrome을 찾지 못했어요: ${CHROME}\nCHROME_PATH 환경변수로 경로를 알려 주세요.`) + +await fetch(`${API_URL}/v1/region/list`).catch((e) => fail(`날씨각 API(${API_URL})에 연결하지 못했어요. 백엔드가 켜져 있는지 확인하세요. (${e.message})`)) +await fetch(ADMIN_URL).catch(() => fail(`관리자 화면(${ADMIN_URL})이 꺼져 있어요. admin 폴더에서 npm run dev 를 먼저 켜 주세요.`)) + +const decode = (value) => (value ? JSON.parse(Buffer.from(value, 'base64url').toString('utf8')) : {}) +if (topic !== null || feedback !== null || (!copy && AUTO_PLAN.includes(template))) { + const current = decode(copy) + console.log('Claude가 기획하는 중…') + const res = await fetch(`${ADMIN_URL}/api/plan`, { + method: 'POST', + headers: { 'Content-Type': 'application/json' }, + body: JSON.stringify({ template, topic: topic ?? '', feedback: feedback ?? '', current }), + }) + const body = await res.json() + if (!res.ok) fail(`기획하지 못했어요: ${body.error}`) + console.log(`주제: ${body.topic}`) + for (const [k, v] of Object.entries(body.copy)) console.log(` ${k}: ${v.replaceAll('\n', ' / ')}`) + copy = Buffer.from(JSON.stringify({ ...current, ...body.copy })).toString('base64url') +} + +{ + const current = decode(copy) + const theme = color ?? current.theme ?? THEMES[Math.floor(Math.random() * THEMES.length)] + copy = Buffer.from(JSON.stringify({ ...current, theme })).toString('base64url') + console.log(`색: ${theme}`) + console.log(`다시 그리거나 피드백할 때: --copy ${copy}`) +} + +// 그날 카드에 필요한 그림 중 없는 것만 Codex로 만든다 (관리자 서버 /api/gen-image, 한 장씩) +if (!noImages) { + const start = await fetch(`${ADMIN_URL}/api/gen-image`, { + method: 'POST', + headers: { 'Content-Type': 'application/json' }, + body: JSON.stringify({ template, copy: decode(copy) }), + }).then((r) => r.json()) + if (start.error) fail(`그림을 만들지 못했어요: ${start.error}`) + if (start.status === 'running') { + console.log(`그림 ${start.total}장 만드는 중 (Codex, 한 장에 1~2분)…`) + let state = start + while (state.status === 'running') { + await new Promise((r) => setTimeout(r, 5000)) + state = await fetch(`${ADMIN_URL}/api/gen-image`).then((r) => r.json()) + } + for (const line of state.log) console.log(` ${line}`) + if (state.status === 'failed') console.log('일부 그림을 못 만들어 그 장은 아이콘·옷 이름으로 나가요.') + // 새 그림이 화면에 반영될 시간 + await new Promise((r) => setTimeout(r, 3000)) + } +} + +const day = new Date(Date.now() + 9 * 3600_000).toISOString().slice(0, 10) +const outDir = resolve(outArg ?? `out/${day}`) +mkdirSync(outDir, { recursive: true }) + +const files = [] +for (let slide = 1; slide <= SLIDES[template]; slide++) { + const query = new URLSearchParams({ template, slide: String(slide) }) + if (copy) query.set('copy', copy) + const png = resolve(outDir, `${day}_${template}_${slide}.png`) + const jpg = png.replace(/\.png$/, '.jpg') + execFileSync(CHROME, [ + '--headless=new', + '--disable-gpu', + '--hide-scrollbars', + '--force-device-scale-factor=1', + '--window-size=1080,1350', + '--virtual-time-budget=20000', + `--screenshot=${png}`, + `${ADMIN_URL}/render?${query}`, + ], { stdio: 'ignore' }) + execFileSync('sips', ['-s', 'format', 'jpeg', '-s', 'formatOptions', '92', png, '--out', jpg], { stdio: 'ignore' }) + rmSync(png) + files.push(jpg) +} + +console.log(`${template} · ${files.length}장`) +for (const f of files) console.log(f) + +if (postNow || postWait) { + const images = files.map((f) => readFileSync(f).toString('base64')) + const res = await fetch(`${ADMIN_URL}/api/post`, { + method: 'POST', + headers: { 'Content-Type': 'application/json' }, + body: JSON.stringify({ template, texts: decode(copy), images, publish: postNow }), + }) + const body = await res.json() + if (!res.ok || body.result?.success === false) fail(`날씨각에 올리지 못했어요: ${body.error ?? body.result?.desc}`) + console.log(postNow ? `날씨각 오늘 피드에 올렸어요: 카드 ${body.card_id}, 포스트 ${body.post_id}` : `승인 대기로 저장했어요: 카드 ${body.card_id}`) +} diff --git a/admin/scripts/gen-image.mjs b/admin/scripts/gen-image.mjs new file mode 100644 index 0000000..10dd24e --- /dev/null +++ b/admin/scripts/gen-image.mjs @@ -0,0 +1,91 @@ +// 카드 그림을 프롬프트 템플릿(image-prompts/<종류>.json)대로 Codex 이미지 생성으로 만들어 src/assets/<종류>/.webp 에 넣는다. +// 넣은 그림은 카드에 자동으로 붙는다. 사용: npm run gen-image -- ootd <구간|스타일|구간-사람-스타일|missing> [스타일] [--force] +// 예: ootd cool casual (12~16도 캐주얼 6명) · ootd semi (세미정장 전 구간) · ootd cool-f20-casual · ootd missing formal +import { execFileSync } from 'node:child_process' +import { existsSync, mkdirSync, mkdtempSync, readFileSync, readdirSync, rmSync } from 'node:fs' +import { tmpdir } from 'node:os' +import { join, resolve } from 'node:path' + +const IMAGE_MODEL = process.env.CODEX_IMAGE_MODEL ?? 'gpt-6-luna' + +function fail(message) { + console.error(message) + process.exit(1) +} + +const args = process.argv.slice(2) +const force = args.includes('--force') +const [kind, target, ...more] = args.filter((a) => !a.startsWith('--')) +const styleFilter = more[0] +const promptFile = resolve(`image-prompts/${kind}.json`) +if (!kind || !target || !existsSync(promptFile)) fail('사용: npm run gen-image -- [--force]') + +const spec = JSON.parse(readFileSync(promptFile, 'utf8')) +// 각 카드는 그림 목록을 따로 적지 않고 서비스의 각 목록에서 만든다 +if (spec.deck === 'gak') { + const defs = JSON.parse(readFileSync(resolve('../backend/seed/index_definition.json'), 'utf8')) + spec.items = defs.map((g) => ({ id: g.code, motif: spec.scene.replaceAll('{name}', g.name).replaceAll('{meaning}', g.description), name: g.name, meaning: g.description })) +} +const outDir = resolve(`src/assets/${kind}`) +mkdirSync(outDir, { recursive: true }) +const outPath = (id) => join(outDir, `${id}.webp`) + +// 그림 한 장 = { id, 프롬프트 }. ootd 는 구간 × 스타일 × 사람, tarot 은 주제 꾸밈(skin)마다 +const jobs = spec.bands + ? spec.bands.flatMap((b) => + Object.entries(b.outfits).flatMap(([style, byPersona]) => + Object.entries(byPersona).map(([persona, outfit]) => ({ + id: `${b.id}-${persona}-${style}`, + band: b.id, + style, + prompt: spec.style + .replace('{items}', outfit.items) + .replace('{persona}', spec.personas[persona].prompt) + .replace('{style}', spec.styles[style].prompt) + .replace('{trend}', spec.styles[style].trends?.[persona] ?? '') + .replace('{layering}', b.layering ?? ''), + })), + ), + ) + : spec.items.map((it) => ({ + id: it.id, + band: it.id, + prompt: spec.style.replace('{motif}', it.motif).replace('{scene}', it.motif).replaceAll('{name}', it.name ?? '').replaceAll('{meaning}', it.meaning ?? '').replace('{card}', it.card ?? ''), + })) +// 카드에 필요한 그림만: 정확한 id 를 여러 개 받거나(npm run card·관리자 서버가 씀), 구간·스타일로 좁힌다 +const exact = [target, ...more].filter((t) => jobs.some((j) => j.id === t)) +const picked = + exact.length > 0 ? jobs.filter((j) => exact.includes(j.id)) + : target === 'missing' ? jobs.filter((j) => !existsSync(outPath(j.id))) + : jobs.filter((j) => j.id === target || j.band === target || j.style === target) +const bands = exact.length === 0 && styleFilter ? picked.filter((j) => j.style === styleFilter) : picked +if (bands.length === 0) fail(target === 'missing' ? '빠진 그림이 없어요.' : `'${target}' 은 ${promptFile} 에 없어요.${spec.bands ? ` 구간: ${spec.bands.map((b) => b.id).join(', ')} / 스타일: ${Object.keys(spec.styles).join(', ')} / 사람: ${Object.keys(spec.personas).join(', ')}` : ` id: ${spec.items.map((i) => i.id).join(', ')}`}`) + +for (const band of bands) { + if (existsSync(outPath(band.id)) && !force) { + console.log(`${band.id}: 이미 있어요 (다시 만들려면 --force)`) + continue + } + const prompt = band.prompt + const work = mkdtempSync(join(tmpdir(), `gen-${kind}-${band.id}-`)) + const task = [ + '내장 이미지 생성 도구로 아래 프롬프트 그대로 이미지를 만든다 (비율은 프롬프트를 따른다).', + '만든 이미지를 직접 열어 확인한다: 사람 얼굴·손·마네킹·글자·숫자·로고가 있거나, 프롬프트의 물건이 빠지거나 잘렸으면 한 번만 다시 만든다 (사용량을 아끼려고 최대 2장).', + `통과한 한 장만 이 폴더에 result.png 로 저장한다. 다른 파일은 만들지 않는다.`, + '', + prompt, + ].join('\n') + console.log(`${band.id}: Codex로 그리는 중…`) + try { + // 그림은 이미지 생성 도구가 만들고 Codex 는 도구를 부르고 결과를 한 번 보는 역할뿐이라 가장 싼 모델·낮은 추론으로 고정한다 (기본 설정의 gpt-6-astra·xhigh 를 쓰지 않는다) + execFileSync('codex', ['exec', '--skip-git-repo-check', '-C', work, '-s', 'workspace-write', '-m', IMAGE_MODEL, '-c', 'model_reasoning_effort="low"', task], { stdio: ['ignore', 'ignore', 'inherit'] }) + } catch (e) { + rmSync(work, { recursive: true, force: true }) + fail(`${band.id}: Codex 실행이 실패했어요 (${e.message}). 사용 한도나 로그인을 확인하세요.`) + } + const png = readdirSync(work).find((f) => f === 'result.png') ?? readdirSync(work).find((f) => f.endsWith('.png')) + if (!png) fail(`${band.id}: Codex가 그림을 저장하지 않았어요. 작업 폴더: ${work}`) + execFileSync('cwebp', ['-quiet', '-q', '88', '-resize', '1024', '0', join(work, png), '-o', outPath(band.id)]) + rmSync(work, { recursive: true, force: true }) + console.log(`${band.id}: ${outPath(band.id)}`) +} diff --git a/admin/scripts/plan.d.mts b/admin/scripts/plan.d.mts new file mode 100644 index 0000000..55b84b3 --- /dev/null +++ b/admin/scripts/plan.d.mts @@ -0,0 +1,7 @@ +export type PlanContext = { + template: { id: string; name: string; about: string; how: string[] } + fields: { key: string; label: string }[] + current: Record + weather: unknown +} +export function runPlan(ctx: PlanContext, opts?: { topic?: string; feedback?: string; fixed?: { question?: string; cards?: string[] } }): Promise<{ topic: string; copy: Record }> diff --git a/admin/scripts/plan.mjs b/admin/scripts/plan.mjs new file mode 100644 index 0000000..94c0e39 --- /dev/null +++ b/admin/scripts/plan.mjs @@ -0,0 +1,138 @@ +// 카드 문구 기획: 템플릿 칸·오늘 날씨·주제·피드백을 Claude CLI(claude -p)에 넘겨 칸별 문구를 받는다. +// 관리자 서버(/api/plan)와 npm run card --topic 이 같이 쓴다. API 키 없이 이 맥에 로그인된 Claude Code를 쓴다. +import { execFile } from 'node:child_process' +import { readdirSync, readFileSync } from 'node:fs' +import { tmpdir } from 'node:os' +import { resolve } from 'node:path' + +const pngNames = (dir) => + readdirSync(resolve(import.meta.dirname, dir)) + .filter((f) => f.endsWith('.png')) + .map((f) => f.replace(/\.png$/, '')) +// 서비스 각·날씨 아이콘 +const ICONS = pngNames('../../frontend/public/icons') +const TOPICS = JSON.parse(readFileSync(resolve(import.meta.dirname, '../topics.json'), 'utf8')).categories +const questionOf = (topic) => { + const c = categoryOf(topic) + if (!c) return null + const sub = c.subtopics.find((x) => topic.includes(x)) + return c.questions[sub ?? ''] ?? c.questions[''] +} +// 날씨 타로 카드 = 날씨각 각 카드 (서비스와 같은 각 목록) +const DECK = JSON.parse(readFileSync(resolve(import.meta.dirname, '../../backend/seed/index_definition.json'), 'utf8')).map((g) => ({ id: g.code, name: g.name, icon: g.icon, meaning: g.description })) +const categoryOf = (topic) => TOPICS.find((c) => topic.includes(c.name) || c.subtopics.some((s) => topic.includes(s))) + +const RULES = [ + '너는 한국 날씨 서비스 "날씨각"의 인스타그램 카드 문구 담당이다.', + '오늘 날씨 사실(아래 데이터)을 근거로, 주제와 엮어 재미있게 쓴다. 날씨 사실을 지어내지 않는다.', + '날씨를 모르는 사람도 바로 알아듣는 쉬운 말로 쓴다. 숫자만 나열하거나 전문 용어, 점수, 판정 이름을 쓰지 않는다.', + '좋은 말과 나쁜 말을 한 문장에 섞지 않는다. 뜻 없는 비교("더 나아요")를 쓰지 않는다.', + '카드에 들어가야 하니 칸마다 지금 문구와 비슷한 길이(최대 1.3배)로 쓴다(날씨 타로 리딩은 아래 길이 규칙을 따른다). 줄바꿈은 " ⏎ "로 표시하고, 개수를 지금 문구와 맞춘다.', + '강조할 말은 *별표*로 감싼다. 지금 문구에 별표가 있으면 같은 자리에 둔다.', + `아이콘 칸(i1·i2·i3)은 다음 중 하나의 파일 이름만 쓴다: ${ICONS.join(', ')}`, + '쓰지 않는 것: 투자 권유(종목, 매수·매도, 수익·손실 단정), 건강·의료 단정, 사고·재난·정치, 특정 집단 비하, 욕설.', + '"재미로"라는 말이 지금 문구에 있으면 남긴다.', + '주제가 있으면 제목·카드 이름·문장을 모두 그 주제의 말로 바꾼다. 오늘 날씨 사실은 주제에 빗대는 근거로만 쓴다.', + '날씨각의 각 요약 문장("오전 10시 14°, 바람 조금")을 그대로 옮기지 않는다. 날씨 사실은 쉬운 말로 다시 쓴다.', + '템플릿 설명(아래 ## 템플릿 목록)을 반드시 따른다.', +].join('\n') + +const isTarot = (ctx) => ctx.template.id === 'tarot' +// 각 카드(이름·그림)는 Claude가 쓰지 않고 고른 카드(card1~3)로 채운다 +const DECK_KEY = /^[cni]\d$/ + +// 실제 타로 리더(온도타로·타로하는 아율·가문비타로·알라딘타로 등 유튜브 설명란) 말투에서 뽑은 규칙. 2026-10-23 조사, admin/AGENTS.md 참고 +const TAROT_TONE = [ + '## 리딩 말투 (반드시)', + '진짜 타로 리더가 한 사람에게 말하듯 쓴다. 질문자는 "님"이라 부르거나 생략하고, 상대는 "그 사람"이라 부른다. "당신·그대"는 쓰지 않는다.', + '해요체가 기본이고, 단정할 땐 합니다체 한 문장을 섞는다("~하고 있습니다", "~꺼낼 겁니다"). 카드를 보는 중인 느낌으로 "~네요/~거든요/~죠" 같은 어미를 섞는다.', + '구조: ① 그 사람(또는 님)의 지금 상태를 겉모습과 속마음을 대비해서 한 문장("겉으론 평소랑 똑같이 굴어도 말 걸 타이밍만 재는 중이거든요") ② "다만/그런데"로 한 번 꺾기 ③ 오늘 할 행동 딱 하나, 타이밍과 함께. 각 카드의 활동(걷기·커피·바깥 자리)이 그 행동이 된다.', + '폰에서 확인할 수 있는 신호(답장 길이, 읽씹, 프사, 말끝 흐림)나 대사 한 줄("잠깐 걸을래?")처럼 구체적인 디테일을 하나 넣는다.', + '길이: 3문장, 전체 70~95자. 줄바꿈 없음. 별표 강조는 쓰지 않는다.', + '세 장이 같은 틀로 시작하지 않는다. "겉으론 ~ 속으론" 대비는 한 장에만, 다른 장은 상대의 상태 묘사·질문으로 붙잡기("요즘 답장 짧아졌죠?")·단정 한 줄 등으로 다르게 연다. "다만"도 세 장에 다 쓰지 않는다.', + '하지 않는 것: "~이면 ~해요/~하면 ~돼요" 공식, 모든 문장이 같은 어미("~해요"만 세 번), "~할 수 있어요/~일 수 있어요" 두 번 이상, "~것이 중요합니다", "도움이 되길", 명사 나열형 조언, 설명조("이 카드는 ~을 뜻해요"는 세 장 통틀어 한 번만), 이모지, 느낌표 두 개 이상, 리딩 본문에 기온·시각 숫자(숫자는 행운 포인트에만), 뻔한 덕담("기대해도 좋은 하루").', + '좋은 예: "오늘 그 사람, 님 생각보다 가까이 와 있어요. 겉으론 평소랑 똑같이 굴어도 말 걸 타이밍만 재는 중이거든요. 해 지고 선선해질 때 \'잠깐 걸을래?\' 한마디면 돼요."', + '나쁜 예(쓰지 말 것): "커피 한 잔이면 말문이 열려요. 아침 인사부터 먼저 건네요." / "걷다 보면 거리가 가까워져요. 저녁 산책을 먼저 제안해요."', + '키워드(k)는 4~8자 명사구("같이 걷는 시간", "먼저 보내는 한 줄"). 행운 포인트(l)는 시간·날씨·행동 한 줄 22자 이내("저녁 8시, 17도로 걷기 딱 좋아요").', +] + +function tarotSection(topic) { + return [ + '', + '## 각 카드 (이 목록에서만 고른다. card1·card2·card3에 서로 다른 code)', + questionOf(topic) ? `표지 질문(question)은 이것을 쓴다(피드백이 바꾸라고 하면 바꾼다): ${questionOf(topic)}` : '표지 질문(question)은 주제에 맞는 "오늘 ~할까요?" 꼴 질문 하나를 쓴다.', + '오늘 날씨 데이터의 오늘_각_점수에서 점수가 높은 각(오늘 실제로 하기 좋은 각) 가운데 질문과 엮을 수 있는 것을 고른다. 세 장은 서로 다른 답(하나는 긍정, 하나는 조건부, 하나는 기다리기 같은 식)이 되게 고르고, 되도록 아침·낮·저녁(밤) 각에서 하나씩 골라 세 장이 하루로 이어지게 한다.', + ...TAROT_TONE, + '', + ...DECK.map((c) => `- ${c.id}: ${c.name} — ${c.meaning}`), + ] +} + +function buildPrompt(ctx, { topic, feedback, fixed = {} }) { + // 줄바꿈은 ⏎ 로 보여 주고 받을 때 되돌린다 (JSON 안의 \\n 을 글자로 따라 쓰는 일을 막는다) + const fields = ctx.fields.map((f) => `- ${f.key} (${f.label}): ${String(ctx.current[f.key] ?? '').replaceAll('\n', ' ⏎ ')}`).join('\n') + return [ + RULES, + '', + `## 템플릿: ${ctx.template.name} — ${ctx.template.about}`, + ...ctx.template.how.map((h) => `- ${h}`), + '', + '## 오늘 날씨 (서울)', + JSON.stringify(ctx.weather, null, 1), + '', + '## 지금 문구 (칸 이름: 값)', + fields, + '', + topic ? `## 주제: ${topic}` : `## 주제: 없음 — 다음 대주제·소주제 중 오늘 날씨와 어울리는 것을 하나 골라 topic에 "대주제 소주제"로 적고 그 주제로 쓴다: ${TOPICS.map((c) => `${c.name}(${c.subtopics.join('·')})`).join(', ')}`, + feedback ? `## 피드백 (반드시 반영): ${feedback}` : '', + '', + ...(isTarot(ctx) ? tarotSection(topic) : []), + fixed.question ? `## 질문은 관리자가 정했다(그대로 쓴다): ${fixed.question}` : '', + fixed.cards?.length ? `## 카드는 관리자가 골랐다(card1·card2·card3 순서 그대로): ${fixed.cards.join(', ')}` : '', + '모든 칸을 채운 JSON으로만 답한다. topic에는 쓴 주제를 짧게 적는다.', + ].join('\n') +} + +function schema(ctx) { + const properties = { topic: { type: 'string' } } + for (const f of ctx.fields) if (!(isTarot(ctx) && DECK_KEY.test(f.key))) properties[f.key] = { type: 'string' } + if (isTarot(ctx)) for (const k of ['card1', 'card2', 'card3']) properties[k] = { type: 'string', enum: DECK.map((c) => c.id) } + return { type: 'object', properties, required: Object.keys(properties), additionalProperties: false } +} + +/** @returns {Promise<{ topic: string, copy: Record }>} */ +export function runPlan(ctx, { topic = '', feedback = '', fixed = {} } = {}) { + const args = ['-p', buildPrompt(ctx, { topic, feedback, fixed }), '--output-format', 'json', '--json-schema', JSON.stringify(schema(ctx)), '--tools', '', '--no-session-persistence', '--model', 'sonnet'] + return new Promise((done, fail) => { + execFile('claude', args, { cwd: tmpdir(), timeout: 180_000, maxBuffer: 10 * 1024 * 1024 }, (err, stdout) => { + if (err) return fail(new Error(`Claude CLI 실행 실패: ${err.message}. 터미널에서 claude 로그인 상태를 확인하세요.`)) + let out + try { + out = JSON.parse(stdout) + } catch { + return fail(new Error(`Claude 답을 읽지 못했어요: ${stdout.slice(0, 300)}`)) + } + const result = out.structured_output ?? (typeof out.result === 'string' ? JSON.parse(out.result) : null) + if (out.is_error || !result) return fail(new Error(`Claude가 기획안을 주지 못했어요: ${String(out.result ?? '').slice(0, 300)}`)) + const copy = {} + if (isTarot(ctx)) { + if (fixed.question) result.question = fixed.question + fixed.cards?.forEach((code, i) => (result[`card${i + 1}`] = code)) + ;['card1', 'card2', 'card3'].forEach((k, i) => { + const card = DECK.find((c) => c.id === result[k]) + if (card) Object.assign(result, { [`c${i + 1}`]: card.id, [`n${i + 1}`]: card.name, [`i${i + 1}`]: card.icon }) + }) + } + for (const f of ctx.fields) { + const value = String(result[f.key] ?? '').replace(/\s*⏎\s*/g, '\n').replace(/\\n/g, '\n').trim() + const badIcon = /^i\d$/.test(f.key) && !ICONS.includes(value) + copy[f.key] = value && !badIcon ? value : ctx.current[f.key] + } + const finalTopic = String(result.topic || topic) + copy.skin = categoryOf(finalTopic)?.skin ?? 'star' + // 각 카드 id·그림은 화면 칸이 아니라 덱에서 채운 값 그대로 + if (isTarot(ctx)) for (const k of ['c1', 'c2', 'c3', 'i1', 'i2', 'i3']) if (result[k]) copy[k] = result[k] + done({ topic: finalTopic, copy }) + }) + }) +} diff --git a/admin/src/App.tsx b/admin/src/App.tsx new file mode 100644 index 0000000..d21247e --- /dev/null +++ b/admin/src/App.tsx @@ -0,0 +1,21 @@ +import { BrowserRouter, Route, Routes } from 'react-router' +import { AdminLayout } from './pages/AdminLayout' +import { CardsPage } from './pages/CardsPage' +import { HistoryPage } from './pages/HistoryPage' +import { RenderPage } from './pages/RenderPage' + +export default function App() { + return ( + + + {/* npm run card 가 찍는 화면: 카드 한 장만, 1080×1350 */} + } /> + }> + } /> + } /> + } /> + + + + ) +} diff --git a/admin/src/api/client/@tanstack/react-query.gen.ts b/admin/src/api/client/@tanstack/react-query.gen.ts new file mode 100644 index 0000000..f98a1de --- /dev/null +++ b/admin/src/api/client/@tanstack/react-query.gen.ts @@ -0,0 +1,1296 @@ +// This file is auto-generated by @hey-api/openapi-ts + +import { type DefaultError, type InfiniteData, infiniteQueryOptions, queryOptions, type UseMutationOptions } from '@tanstack/react-query'; + +import { client } from '../client.gen'; +import { addComment, addMyGak, addTalk, authConfig, blockTalkAuthor, createCard, deleteComment, deleteMyGak, deleteTalk, getArticle, getCardImage, getFeed, getImage, getIndex, getPost, getSeasonWeek, getSky, getSkyRanking, getTalkImage, getTodayGuPage, getTodayPage, getTomorrowGuPage, getTomorrowPage, getWatchSummary, getWeatherNow, getWeatherToday, getWeek, getWeekRanking, googleLogin, healthzHealthzGet, likeComment, likePost, likeTalk, listArticles, listCards, listComments, listEvents, listIndices, listMyGak, listMyTalks, listPlaces, listPresets, listRegions, listSaved, listTalks, login, logout, me, nearestRegion, type Options, publishCard, refresh, rejectCard, reportTalk, savePost, scoreMyGak, signup, talkGroups, unlikeComment, unlikePost, unlikeTalk, unsavePost, updateMe, uploadTalkImage } from '../sdk.gen'; +import type { AddCommentData, AddCommentError, AddCommentResponse, AddMyGakData, AddMyGakError, AddMyGakResponse, AddTalkData, AddTalkError, AddTalkResponse, AuthConfigData, AuthConfigResponse, BlockTalkAuthorData, BlockTalkAuthorError, BlockTalkAuthorResponse, CreateCardData, CreateCardError, CreateCardResponse, DeleteCommentData, DeleteCommentError, DeleteCommentResponse, DeleteMyGakData, DeleteMyGakError, DeleteMyGakResponse, DeleteTalkData, DeleteTalkError, DeleteTalkResponse, GetArticleData, GetArticleError, GetArticleResponse, GetCardImageData, GetCardImageError, GetFeedData, GetFeedError, GetFeedResponse, GetImageData, GetImageError, GetIndexData, GetIndexError, GetIndexResponse, GetPostData, GetPostError, GetPostResponse, GetSeasonWeekData, GetSeasonWeekResponse, GetSkyData, GetSkyError, GetSkyRankingData, GetSkyRankingResponse, GetSkyResponse, GetTalkImageData, GetTalkImageError, GetTodayGuPageData, GetTodayGuPageError, GetTodayGuPageResponse, GetTodayPageData, GetTodayPageError, GetTodayPageResponse, GetTomorrowGuPageData, GetTomorrowGuPageError, GetTomorrowGuPageResponse, GetTomorrowPageData, GetTomorrowPageError, GetTomorrowPageResponse, GetWatchSummaryData, GetWatchSummaryError, GetWatchSummaryResponse, GetWeatherNowData, GetWeatherNowError, GetWeatherNowResponse, GetWeatherTodayData, GetWeatherTodayError, GetWeatherTodayResponse, GetWeekData, GetWeekError, GetWeekRankingData, GetWeekRankingResponse, GetWeekResponse, GoogleLoginData, GoogleLoginError, GoogleLoginResponse, HealthzHealthzGetData, HealthzHealthzGetResponse, LikeCommentData, LikeCommentError, LikeCommentResponse, LikePostData, LikePostError, LikePostResponse, LikeTalkData, LikeTalkError, LikeTalkResponse, ListArticlesData, ListArticlesError, ListArticlesResponse, ListCardsData, ListCardsError, ListCardsResponse, ListCommentsData, ListCommentsError, ListCommentsResponse, ListEventsData, ListEventsError, ListEventsResponse, ListIndicesData, ListIndicesError, ListIndicesResponse, ListMyGakData, ListMyGakError, ListMyGakResponse, ListMyTalksData, ListMyTalksError, ListMyTalksResponse, ListPlacesData, ListPlacesError, ListPlacesResponse, ListPresetsData, ListPresetsResponse, ListRegionsData, ListRegionsError, ListRegionsResponse, ListSavedData, ListSavedError, ListSavedResponse, ListTalksData, ListTalksError, ListTalksResponse, LoginData, LoginError, LoginResponse, LogoutData, LogoutError, LogoutResponse, MeData, MeError, MeResponse, NearestRegionData, NearestRegionError, NearestRegionResponse, PublishCardData, PublishCardError, PublishCardResponse, RefreshData, RefreshError, RefreshResponse, RejectCardData, RejectCardError, RejectCardResponse, ReportTalkData, ReportTalkError, ReportTalkResponse, SavePostData, SavePostError, SavePostResponse, ScoreMyGakData, ScoreMyGakError, ScoreMyGakResponse, SignupData, SignupError, SignupResponse, TalkGroupsData, TalkGroupsError, TalkGroupsResponse, UnlikeCommentData, UnlikeCommentError, UnlikeCommentResponse, UnlikePostData, UnlikePostError, UnlikePostResponse, UnlikeTalkData, UnlikeTalkError, UnlikeTalkResponse, UnsavePostData, UnsavePostError, UnsavePostResponse, UpdateMeData, UpdateMeError, UpdateMeResponse, UploadTalkImageData, UploadTalkImageError, UploadTalkImageResponse } from '../types.gen'; + +export type QueryKey = [ + Pick & { + _id: string; + _infinite?: boolean; + tags?: ReadonlyArray; + } +]; + +const createQueryKey = (id: string, options?: TOptions, infinite?: boolean, tags?: ReadonlyArray): [ + QueryKey[0] +] => { + const params: QueryKey[0] = { _id: id, baseUrl: options?.baseUrl || (options?.client ?? client).getConfig().baseUrl } as QueryKey[0]; + if (infinite) { + params._infinite = infinite; + } + if (tags) { + params.tags = tags; + } + if (options?.body) { + params.body = options.body; + } + if (options?.headers) { + params.headers = options.headers; + } + if (options?.path) { + params.path = options.path; + } + if (options?.query) { + params.query = options.query; + } + return [params]; +}; + +export const listRegionsQueryKey = (options?: Options) => createQueryKey('listRegions', options); + +/** + * 구 목록 + */ +export const listRegionsOptions = (options?: Options) => queryOptions>({ + queryFn: async ({ queryKey, signal }) => { + const { data } = await listRegions({ + ...options, + ...queryKey[0], + signal, + throwOnError: true + }); + return data; + }, + queryKey: listRegionsQueryKey(options) +}); + +export const nearestRegionQueryKey = (options: Options) => createQueryKey('nearestRegion', options); + +/** + * 위치에서 가장 가까운 구 + */ +export const nearestRegionOptions = (options: Options) => queryOptions>({ + queryFn: async ({ queryKey, signal }) => { + const { data } = await nearestRegion({ + ...options, + ...queryKey[0], + signal, + throwOnError: true + }); + return data; + }, + queryKey: nearestRegionQueryKey(options) +}); + +export const getWeatherTodayQueryKey = (options: Options) => createQueryKey('getWeatherToday', options); + +/** + * 오늘(또는 내일) 3시간 칸 날씨 + */ +export const getWeatherTodayOptions = (options: Options) => queryOptions>({ + queryFn: async ({ queryKey, signal }) => { + const { data } = await getWeatherToday({ + ...options, + ...queryKey[0], + signal, + throwOnError: true + }); + return data; + }, + queryKey: getWeatherTodayQueryKey(options) +}); + +export const getWeatherNowQueryKey = (options: Options) => createQueryKey('getWeatherNow', options); + +/** + * 지금 비 올까: 2시간 비, 내일 출퇴근, 미세먼지, 특보 + */ +export const getWeatherNowOptions = (options: Options) => queryOptions>({ + queryFn: async ({ queryKey, signal }) => { + const { data } = await getWeatherNow({ + ...options, + ...queryKey[0], + signal, + throwOnError: true + }); + return data; + }, + queryKey: getWeatherNowQueryKey(options) +}); + +export const getSkyQueryKey = (options: Options) => createQueryKey('getSky', options); + +/** + * 노을 결론(나가 볼 만한지·왜·언제 어디로), 시간표, 앞으로 3일, 가까운 명소 + */ +export const getSkyOptions = (options: Options) => queryOptions>({ + queryFn: async ({ queryKey, signal }) => { + const { data } = await getSky({ + ...options, + ...queryKey[0], + signal, + throwOnError: true + }); + return data; + }, + queryKey: getSkyQueryKey(options) +}); + +export const getSkyRankingQueryKey = (options?: Options) => createQueryKey('getSkyRanking', options); + +/** + * 전국 노을 순위 (대표 30곳) + */ +export const getSkyRankingOptions = (options?: Options) => queryOptions>({ + queryFn: async ({ queryKey, signal }) => { + const { data } = await getSkyRanking({ + ...options, + ...queryKey[0], + signal, + throwOnError: true + }); + return data; + }, + queryKey: getSkyRankingQueryKey(options) +}); + +export const listIndicesQueryKey = (options: Options) => createQueryKey('listIndices', options); + +/** + * 지수 목록 (지금 구간 점수순, 1~3위, 지금 날씨 점수) + */ +export const listIndicesOptions = (options: Options) => queryOptions>({ + queryFn: async ({ queryKey, signal }) => { + const { data } = await listIndices({ + ...options, + ...queryKey[0], + signal, + throwOnError: true + }); + return data; + }, + queryKey: listIndicesQueryKey(options) +}); + +export const getIndexQueryKey = (options: Options) => createQueryKey('getIndex', options); + +/** + * 지수 계산 근거 + */ +export const getIndexOptions = (options: Options) => queryOptions>({ + queryFn: async ({ queryKey, signal }) => { + const { data } = await getIndex({ + ...options, + ...queryKey[0], + signal, + throwOnError: true + }); + return data; + }, + queryKey: getIndexQueryKey(options) +}); + +export const getWeekQueryKey = (options: Options) => createQueryKey('getWeek', options); + +/** + * 7일 날씨와 그날 추천 + */ +export const getWeekOptions = (options: Options) => queryOptions>({ + queryFn: async ({ queryKey, signal }) => { + const { data } = await getWeek({ + ...options, + ...queryKey[0], + signal, + throwOnError: true + }); + return data; + }, + queryKey: getWeekQueryKey(options) +}); + +export const getWeekRankingQueryKey = (options?: Options) => createQueryKey('getWeekRanking', options); + +/** + * 이번 주말 전국 나들이 날씨 순위 (대표 30곳) + */ +export const getWeekRankingOptions = (options?: Options) => queryOptions>({ + queryFn: async ({ queryKey, signal }) => { + const { data } = await getWeekRanking({ + ...options, + ...queryKey[0], + signal, + throwOnError: true + }); + return data; + }, + queryKey: getWeekRankingQueryKey(options) +}); + +export const listPlacesQueryKey = (options: Options) => createQueryKey('listPlaces', options); + +/** + * 날씨 맞춤 데이트 명소 (구 중심 30km 안, 없으면 가장 가까운 곳) + */ +export const listPlacesOptions = (options: Options) => queryOptions>({ + queryFn: async ({ queryKey, signal }) => { + const { data } = await listPlaces({ + ...options, + ...queryKey[0], + signal, + throwOnError: true + }); + return data; + }, + queryKey: listPlacesQueryKey(options) +}); + +export const listEventsQueryKey = (options: Options) => createQueryKey('listEvents', options); + +/** + * 앞으로 30일 축제·행사 + */ +export const listEventsOptions = (options: Options) => queryOptions>({ + queryFn: async ({ queryKey, signal }) => { + const { data } = await listEvents({ + ...options, + ...queryKey[0], + signal, + throwOnError: true + }); + return data; + }, + queryKey: listEventsQueryKey(options) +}); + +export const getSeasonWeekQueryKey = (options?: Options) => createQueryKey('getSeasonWeek', options); + +/** + * 이번 주 계절 책: 시, 절기, 계절 소식 + */ +export const getSeasonWeekOptions = (options?: Options) => queryOptions>({ + queryFn: async ({ queryKey, signal }) => { + const { data } = await getSeasonWeek({ + ...options, + ...queryKey[0], + signal, + throwOnError: true + }); + return data; + }, + queryKey: getSeasonWeekQueryKey(options) +}); + +export const listArticlesQueryKey = (options?: Options) => createQueryKey('listArticles', options); + +/** + * 읽을거리 목록 + */ +export const listArticlesOptions = (options?: Options) => queryOptions>({ + queryFn: async ({ queryKey, signal }) => { + const { data } = await listArticles({ + ...options, + ...queryKey[0], + signal, + throwOnError: true + }); + return data; + }, + queryKey: listArticlesQueryKey(options) +}); + +export const getArticleQueryKey = (options: Options) => createQueryKey('getArticle', options); + +/** + * 읽을거리 본문 + */ +export const getArticleOptions = (options: Options) => queryOptions>({ + queryFn: async ({ queryKey, signal }) => { + const { data } = await getArticle({ + ...options, + ...queryKey[0], + signal, + throwOnError: true + }); + return data; + }, + queryKey: getArticleQueryKey(options) +}); + +export const getFeedQueryKey = (options: Options) => createQueryKey('getFeed', options); + +/** + * 메인 피드: 하늘 영역, 오늘의 각, 오늘 포스트 전부, 띠 + */ +export const getFeedOptions = (options: Options) => queryOptions>({ + queryFn: async ({ queryKey, signal }) => { + const { data } = await getFeed({ + ...options, + ...queryKey[0], + signal, + throwOnError: true + }); + return data; + }, + queryKey: getFeedQueryKey(options) +}); + +export const getPostQueryKey = (options: Options) => createQueryKey('getPost', options); + +/** + * 포스트 하나 (공유 링크로 들어왔을 때) + */ +export const getPostOptions = (options: Options) => queryOptions>({ + queryFn: async ({ queryKey, signal }) => { + const { data } = await getPost({ + ...options, + ...queryKey[0], + signal, + throwOnError: true + }); + return data; + }, + queryKey: getPostQueryKey(options) +}); + +/** + * 회원가입 (아이디 영문 소문자·숫자·_ 4~20자, 비밀번호 8자 이상, 닉네임 2~12자) + */ +export const signupMutation = (options?: Partial>): UseMutationOptions> => { + const mutationOptions: UseMutationOptions> = { + mutationFn: async (fnOptions) => { + const { data } = await signup({ + ...options, + ...fnOptions, + throwOnError: true + }); + return data; + } + }; + return mutationOptions; +}; + +/** + * 로그인 + */ +export const loginMutation = (options?: Partial>): UseMutationOptions> => { + const mutationOptions: UseMutationOptions> = { + mutationFn: async (fnOptions) => { + const { data } = await login({ + ...options, + ...fnOptions, + throwOnError: true + }); + return data; + } + }; + return mutationOptions; +}; + +/** + * 구글 로그인 (처음이면 자동 닉네임으로 가입) + */ +export const googleLoginMutation = (options?: Partial>): UseMutationOptions> => { + const mutationOptions: UseMutationOptions> = { + mutationFn: async (fnOptions) => { + const { data } = await googleLogin({ + ...options, + ...fnOptions, + throwOnError: true + }); + return data; + } + }; + return mutationOptions; +}; + +export const authConfigQueryKey = (options?: Options) => createQueryKey('authConfig', options); + +/** + * 로그인 화면 설정 (구글 클라이언트 ID) + */ +export const authConfigOptions = (options?: Options) => queryOptions>({ + queryFn: async ({ queryKey, signal }) => { + const { data } = await authConfig({ + ...options, + ...queryKey[0], + signal, + throwOnError: true + }); + return data; + }, + queryKey: authConfigQueryKey(options) +}); + +/** + * 토큰 재발급 + */ +export const refreshMutation = (options?: Partial>): UseMutationOptions> => { + const mutationOptions: UseMutationOptions> = { + mutationFn: async (fnOptions) => { + const { data } = await refresh({ + ...options, + ...fnOptions, + throwOnError: true + }); + return data; + } + }; + return mutationOptions; +}; + +/** + * 로그아웃 (모든 기기의 토큰 무효) + */ +export const logoutMutation = (options?: Partial>): UseMutationOptions> => { + const mutationOptions: UseMutationOptions> = { + mutationFn: async (fnOptions) => { + const { data } = await logout({ + ...options, + ...fnOptions, + throwOnError: true + }); + return data; + } + }; + return mutationOptions; +}; + +export const meQueryKey = (options?: Options) => createQueryKey('me', options); + +/** + * 내 정보 + */ +export const meOptions = (options?: Options) => queryOptions>({ + queryFn: async ({ queryKey, signal }) => { + const { data } = await me({ + ...options, + ...queryKey[0], + signal, + throwOnError: true + }); + return data; + }, + queryKey: meQueryKey(options) +}); + +/** + * 내 정보 바꾸기 (닉네임 2~12자, 캐릭터 rabbit·bear·dog·sun·moon·cloud, 배경색 orange·blue·green·purple·pink·brown, 기분 clear·partly·cloudy·rain·thunder·snow·fog·rainbow, 빈 문자열이면 지움) + */ +export const updateMeMutation = (options?: Partial>): UseMutationOptions> => { + const mutationOptions: UseMutationOptions> = { + mutationFn: async (fnOptions) => { + const { data } = await updateMe({ + ...options, + ...fnOptions, + throwOnError: true + }); + return data; + } + }; + return mutationOptions; +}; + +/** + * 좋아요 취소 + */ +export const unlikePostMutation = (options?: Partial>): UseMutationOptions> => { + const mutationOptions: UseMutationOptions> = { + mutationFn: async (fnOptions) => { + const { data } = await unlikePost({ + ...options, + ...fnOptions, + throwOnError: true + }); + return data; + } + }; + return mutationOptions; +}; + +/** + * 좋아요 (로그인 없으면 IP 당 한 번) + */ +export const likePostMutation = (options?: Partial>): UseMutationOptions> => { + const mutationOptions: UseMutationOptions> = { + mutationFn: async (fnOptions) => { + const { data } = await likePost({ + ...options, + ...fnOptions, + throwOnError: true + }); + return data; + } + }; + return mutationOptions; +}; + +/** + * 저장 취소 + */ +export const unsavePostMutation = (options?: Partial>): UseMutationOptions> => { + const mutationOptions: UseMutationOptions> = { + mutationFn: async (fnOptions) => { + const { data } = await unsavePost({ + ...options, + ...fnOptions, + throwOnError: true + }); + return data; + } + }; + return mutationOptions; +}; + +/** + * 저장 + */ +export const savePostMutation = (options?: Partial>): UseMutationOptions> => { + const mutationOptions: UseMutationOptions> = { + mutationFn: async (fnOptions) => { + const { data } = await savePost({ + ...options, + ...fnOptions, + throwOnError: true + }); + return data; + } + }; + return mutationOptions; +}; + +export const listSavedQueryKey = (options?: Options) => createQueryKey('listSaved', options); + +/** + * 내가 저장한 포스트 + */ +export const listSavedOptions = (options?: Options) => queryOptions>({ + queryFn: async ({ queryKey, signal }) => { + const { data } = await listSaved({ + ...options, + ...queryKey[0], + signal, + throwOnError: true + }); + return data; + }, + queryKey: listSavedQueryKey(options) +}); + +const createInfiniteParams = [0], 'body' | 'headers' | 'path' | 'query'>>(queryKey: QueryKey, page: K) => { + const params = { ...queryKey[0] }; + if (page.body) { + params.body = { + ...queryKey[0].body as any, + ...page.body as any + }; + } + if (page.headers) { + params.headers = { + ...queryKey[0].headers, + ...page.headers + }; + } + if (page.path) { + params.path = { + ...queryKey[0].path as any, + ...page.path as any + }; + } + if (page.query) { + params.query = { + ...queryKey[0].query as any, + ...page.query as any + }; + } + return params as unknown as typeof page; +}; + +export const listSavedInfiniteQueryKey = (options?: Options): QueryKey> => createQueryKey('listSaved', options, true); + +/** + * 내가 저장한 포스트 + */ +export const listSavedInfiniteOptions = (options?: Options) => { + const opts = infiniteQueryOptions, QueryKey>, number | null | Pick>[0], 'body' | 'headers' | 'path' | 'query'>>( + // @ts-ignore + { + queryFn: async ({ pageParam, queryKey, signal }) => { + // @ts-ignore + const page: Pick>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : { + query: { + cursor: pageParam + } + }; + const params = createInfiniteParams(queryKey, page); + const { data } = await listSaved({ + ...options, + ...params, + signal, + throwOnError: true + }); + return data; + }, + queryKey: listSavedInfiniteQueryKey(options) + }); + return opts as Omit; +}; + +export const listCommentsQueryKey = (options: Options) => createQueryKey('listComments', options); + +/** + * 댓글 목록 (로그인 없이 보기) + */ +export const listCommentsOptions = (options: Options) => queryOptions>({ + queryFn: async ({ queryKey, signal }) => { + const { data } = await listComments({ + ...options, + ...queryKey[0], + signal, + throwOnError: true + }); + return data; + }, + queryKey: listCommentsQueryKey(options) +}); + +export const listCommentsInfiniteQueryKey = (options: Options): QueryKey> => createQueryKey('listComments', options, true); + +/** + * 댓글 목록 (로그인 없이 보기) + */ +export const listCommentsInfiniteOptions = (options: Options) => { + const opts = infiniteQueryOptions, QueryKey>, number | null | Pick>[0], 'body' | 'headers' | 'path' | 'query'>>( + // @ts-ignore + { + queryFn: async ({ pageParam, queryKey, signal }) => { + // @ts-ignore + const page: Pick>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : { + query: { + cursor: pageParam + } + }; + const params = createInfiniteParams(queryKey, page); + const { data } = await listComments({ + ...options, + ...params, + signal, + throwOnError: true + }); + return data; + }, + queryKey: listCommentsInfiniteQueryKey(options) + }); + return opts as Omit; +}; + +/** + * 댓글 쓰기 (60자, 로그인 없으면 '동네 익명'으로 IP 당 하루 20개) + */ +export const addCommentMutation = (options?: Partial>): UseMutationOptions> => { + const mutationOptions: UseMutationOptions> = { + mutationFn: async (fnOptions) => { + const { data } = await addComment({ + ...options, + ...fnOptions, + throwOnError: true + }); + return data; + } + }; + return mutationOptions; +}; + +/** + * 내 댓글 지우기 (로그인 없이 쓴 댓글은 같은 IP 에서) + */ +export const deleteCommentMutation = (options?: Partial>): UseMutationOptions> => { + const mutationOptions: UseMutationOptions> = { + mutationFn: async (fnOptions) => { + const { data } = await deleteComment({ + ...options, + ...fnOptions, + throwOnError: true + }); + return data; + } + }; + return mutationOptions; +}; + +/** + * 댓글 좋아요 취소 + */ +export const unlikeCommentMutation = (options?: Partial>): UseMutationOptions> => { + const mutationOptions: UseMutationOptions> = { + mutationFn: async (fnOptions) => { + const { data } = await unlikeComment({ + ...options, + ...fnOptions, + throwOnError: true + }); + return data; + } + }; + return mutationOptions; +}; + +/** + * 댓글 좋아요 (로그인 없으면 IP 당 한 번) + */ +export const likeCommentMutation = (options?: Partial>): UseMutationOptions> => { + const mutationOptions: UseMutationOptions> = { + mutationFn: async (fnOptions) => { + const { data } = await likeComment({ + ...options, + ...fnOptions, + throwOnError: true + }); + return data; + } + }; + return mutationOptions; +}; + +export const listMyGakQueryKey = (options?: Options) => createQueryKey('listMyGak', options); + +/** + * 내 각 목록 (로그인하지 않았으면 빈 목록) + */ +export const listMyGakOptions = (options?: Options) => queryOptions>({ + queryFn: async ({ queryKey, signal }) => { + const { data } = await listMyGak({ + ...options, + ...queryKey[0], + signal, + throwOnError: true + }); + return data; + }, + queryKey: listMyGakQueryKey(options) +}); + +/** + * 이름과 날씨 조건으로 내 각 만들기 + */ +export const addMyGakMutation = (options?: Partial>): UseMutationOptions> => { + const mutationOptions: UseMutationOptions> = { + mutationFn: async (fnOptions) => { + const { data } = await addMyGak({ + ...options, + ...fnOptions, + throwOnError: true + }); + return data; + } + }; + return mutationOptions; +}; + +export const listPresetsQueryKey = (options?: Options) => createQueryKey('listPresets', options); + +/** + * 공식 각을 내 각 조건으로 옮긴 목록 (내 각 만들기에서 골라 채우기) + */ +export const listPresetsOptions = (options?: Options) => queryOptions>({ + queryFn: async ({ queryKey, signal }) => { + const { data } = await listPresets({ + ...options, + ...queryKey[0], + signal, + throwOnError: true + }); + return data; + }, + queryKey: listPresetsQueryKey(options) +}); + +/** + * 조건들의 그 동네 오늘 점수 (로그인 없이, 받은 링크의 각도) + */ +export const scoreMyGakMutation = (options?: Partial>): UseMutationOptions> => { + const mutationOptions: UseMutationOptions> = { + mutationFn: async (fnOptions) => { + const { data } = await scoreMyGak({ + ...options, + ...fnOptions, + throwOnError: true + }); + return data; + } + }; + return mutationOptions; +}; + +/** + * 내 각 지우기 + */ +export const deleteMyGakMutation = (options?: Partial>): UseMutationOptions> => { + const mutationOptions: UseMutationOptions> = { + mutationFn: async (fnOptions) => { + const { data } = await deleteMyGak({ + ...options, + ...fnOptions, + throwOnError: true + }); + return data; + } + }; + return mutationOptions; +}; + +export const talkGroupsQueryKey = (options?: Options) => createQueryKey('talkGroups', options); + +/** + * 오늘 피드 묶음 (동네 사람들 + 주제별, 가까운 동네·덜 지난 글 먼저, 한 사람 한 장) + */ +export const talkGroupsOptions = (options?: Options) => queryOptions>({ + queryFn: async ({ queryKey, signal }) => { + const { data } = await talkGroups({ + ...options, + ...queryKey[0], + signal, + throwOnError: true + }); + return data; + }, + queryKey: talkGroupsQueryKey(options) +}); + +export const listTalksQueryKey = (options?: Options) => createQueryKey('listTalks', options); + +/** + * 동네 이야기 (전국 최신순, 보는 동네와 같은 시도 글은 앞으로, 같은 사람 글은 띄움, 로그인 없이 보기) + */ +export const listTalksOptions = (options?: Options) => queryOptions>({ + queryFn: async ({ queryKey, signal }) => { + const { data } = await listTalks({ + ...options, + ...queryKey[0], + signal, + throwOnError: true + }); + return data; + }, + queryKey: listTalksQueryKey(options) +}); + +export const listTalksInfiniteQueryKey = (options?: Options): QueryKey> => createQueryKey('listTalks', options, true); + +/** + * 동네 이야기 (전국 최신순, 보는 동네와 같은 시도 글은 앞으로, 같은 사람 글은 띄움, 로그인 없이 보기) + */ +export const listTalksInfiniteOptions = (options?: Options) => { + const opts = infiniteQueryOptions, QueryKey>, string | null | Pick>[0], 'body' | 'headers' | 'path' | 'query'>>( + // @ts-ignore + { + queryFn: async ({ pageParam, queryKey, signal }) => { + // @ts-ignore + const page: Pick>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : { + query: { + cursor: pageParam + } + }; + const params = createInfiniteParams(queryKey, page); + const { data } = await listTalks({ + ...options, + ...params, + signal, + throwOnError: true + }); + return data; + }, + queryKey: listTalksInfiniteQueryKey(options) + }); + return opts as Omit; +}; + +export const listMyTalksQueryKey = (options?: Options) => createQueryKey('listMyTalks', options); + +/** + * 내가 쓴 글 (최신순) + */ +export const listMyTalksOptions = (options?: Options) => queryOptions>({ + queryFn: async ({ queryKey, signal }) => { + const { data } = await listMyTalks({ + ...options, + ...queryKey[0], + signal, + throwOnError: true + }); + return data; + }, + queryKey: listMyTalksQueryKey(options) +}); + +export const listMyTalksInfiniteQueryKey = (options?: Options): QueryKey> => createQueryKey('listMyTalks', options, true); + +/** + * 내가 쓴 글 (최신순) + */ +export const listMyTalksInfiniteOptions = (options?: Options) => { + const opts = infiniteQueryOptions, QueryKey>, string | null | Pick>[0], 'body' | 'headers' | 'path' | 'query'>>( + // @ts-ignore + { + queryFn: async ({ pageParam, queryKey, signal }) => { + // @ts-ignore + const page: Pick>[0], 'body' | 'headers' | 'path' | 'query'> = typeof pageParam === 'object' ? pageParam : { + query: { + cursor: pageParam + } + }; + const params = createInfiniteParams(queryKey, page); + const { data } = await listMyTalks({ + ...options, + ...params, + signal, + throwOnError: true + }); + return data; + }, + queryKey: listMyTalksInfiniteQueryKey(options) + }); + return opts as Omit; +}; + +/** + * 동네 이야기 쓰기 (링크·전화번호 불가, 하루 5개) + */ +export const addTalkMutation = (options?: Partial>): UseMutationOptions> => { + const mutationOptions: UseMutationOptions> = { + mutationFn: async (fnOptions) => { + const { data } = await addTalk({ + ...options, + ...fnOptions, + throwOnError: true + }); + return data; + } + }; + return mutationOptions; +}; + +/** + * 글에 붙일 사진 올리기 (10MB까지, 위치 정보를 지우고 1080px로 줄여 저장) + */ +export const uploadTalkImageMutation = (options?: Partial>): UseMutationOptions> => { + const mutationOptions: UseMutationOptions> = { + mutationFn: async (fnOptions) => { + const { data } = await uploadTalkImage({ + ...options, + ...fnOptions, + throwOnError: true + }); + return data; + } + }; + return mutationOptions; +}; + +export const getTalkImageQueryKey = (options: Options) => createQueryKey('getTalkImage', options); + +/** + * 올린 사진 + */ +export const getTalkImageOptions = (options: Options) => queryOptions>({ + queryFn: async ({ queryKey, signal }) => { + const { data } = await getTalkImage({ + ...options, + ...queryKey[0], + signal, + throwOnError: true + }); + return data; + }, + queryKey: getTalkImageQueryKey(options) +}); + +/** + * 내 이야기 지우기 + */ +export const deleteTalkMutation = (options?: Partial>): UseMutationOptions> => { + const mutationOptions: UseMutationOptions> = { + mutationFn: async (fnOptions) => { + const { data } = await deleteTalk({ + ...options, + ...fnOptions, + throwOnError: true + }); + return data; + } + }; + return mutationOptions; +}; + +/** + * 이야기 좋아요 취소 + */ +export const unlikeTalkMutation = (options?: Partial>): UseMutationOptions> => { + const mutationOptions: UseMutationOptions> = { + mutationFn: async (fnOptions) => { + const { data } = await unlikeTalk({ + ...options, + ...fnOptions, + throwOnError: true + }); + return data; + } + }; + return mutationOptions; +}; + +/** + * 이야기 좋아요 (로그인 없으면 IP 당 한 번) + */ +export const likeTalkMutation = (options?: Partial>): UseMutationOptions> => { + const mutationOptions: UseMutationOptions> = { + mutationFn: async (fnOptions) => { + const { data } = await likeTalk({ + ...options, + ...fnOptions, + throwOnError: true + }); + return data; + } + }; + return mutationOptions; +}; + +/** + * 이야기 신고 (서로 다른 3명이면 숨김) + */ +export const reportTalkMutation = (options?: Partial>): UseMutationOptions> => { + const mutationOptions: UseMutationOptions> = { + mutationFn: async (fnOptions) => { + const { data } = await reportTalk({ + ...options, + ...fnOptions, + throwOnError: true + }); + return data; + } + }; + return mutationOptions; +}; + +/** + * 이 글 쓴 사람의 글 안 보기 + */ +export const blockTalkAuthorMutation = (options?: Partial>): UseMutationOptions> => { + const mutationOptions: UseMutationOptions> = { + mutationFn: async (fnOptions) => { + const { data } = await blockTalkAuthor({ + ...options, + ...fnOptions, + throwOnError: true + }); + return data; + } + }; + return mutationOptions; +}; + +export const getWatchSummaryQueryKey = (options: Options) => createQueryKey('getWatchSummary', options); + +/** + * 워치 한 번에: 지금 날씨, 각 1~7위·내 각, 노을, 남은 3시간 칸, 컴플리케이션 시간표 + */ +export const getWatchSummaryOptions = (options: Options) => queryOptions>({ + queryFn: async ({ queryKey, signal }) => { + const { data } = await getWatchSummary({ + ...options, + ...queryKey[0], + signal, + throwOnError: true + }); + return data; + }, + queryKey: getWatchSummaryQueryKey(options) +}); + +export const getImageQueryKey = (options: Options) => createQueryKey('getImage', options); + +/** + * 행사 사진 대신 받기 (공유 이미지용, 허용한 호스트만) + */ +export const getImageOptions = (options: Options) => queryOptions>({ + queryFn: async ({ queryKey, signal }) => { + const { data } = await getImage({ + ...options, + ...queryKey[0], + signal, + throwOnError: true + }); + return data; + }, + queryKey: getImageQueryKey(options) +}); + +export const getTodayPageQueryKey = (options: Options) => createQueryKey('getTodayPage', options); + +/** + * 지역 검색 페이지: 정적 HTML 에 오늘 날씨·각을 채워 돌려준다 (nginx 가 /today/... 를 넘김) + */ +export const getTodayPageOptions = (options: Options) => queryOptions>({ + queryFn: async ({ queryKey, signal }) => { + const { data } = await getTodayPage({ + ...options, + ...queryKey[0], + signal, + throwOnError: true + }); + return data; + }, + queryKey: getTodayPageQueryKey(options) +}); + +export const getTodayGuPageQueryKey = (options: Options) => createQueryKey('getTodayGuPage', options); + +/** + * 구로 나뉜 시의 구 페이지 (/today/gyeonggi/seongnam/bundang) + */ +export const getTodayGuPageOptions = (options: Options) => queryOptions>({ + queryFn: async ({ queryKey, signal }) => { + const { data } = await getTodayGuPage({ + ...options, + ...queryKey[0], + signal, + throwOnError: true + }); + return data; + }, + queryKey: getTodayGuPageQueryKey(options) +}); + +export const getTomorrowPageQueryKey = (options: Options) => createQueryKey('getTomorrowPage', options); + +/** + * 지역 내일 날씨 페이지: 정적 HTML 에 내일 예보를 채운다 (nginx 가 /tomorrow/... 를 넘김) + */ +export const getTomorrowPageOptions = (options: Options) => queryOptions>({ + queryFn: async ({ queryKey, signal }) => { + const { data } = await getTomorrowPage({ + ...options, + ...queryKey[0], + signal, + throwOnError: true + }); + return data; + }, + queryKey: getTomorrowPageQueryKey(options) +}); + +export const getTomorrowGuPageQueryKey = (options: Options) => createQueryKey('getTomorrowGuPage', options); + +/** + * 구로 나뉜 시의 구 내일 날씨 페이지 + */ +export const getTomorrowGuPageOptions = (options: Options) => queryOptions>({ + queryFn: async ({ queryKey, signal }) => { + const { data } = await getTomorrowGuPage({ + ...options, + ...queryKey[0], + signal, + throwOnError: true + }); + return data; + }, + queryKey: getTomorrowGuPageQueryKey(options) +}); + +export const listCardsQueryKey = (options?: Options) => createQueryKey('listCards', options); + +/** + * 만든 카드뉴스 목록 (관리자). 다시 내려받거나 올릴 때 + */ +export const listCardsOptions = (options?: Options) => queryOptions>({ + queryFn: async ({ queryKey, signal }) => { + const { data } = await listCards({ + ...options, + ...queryKey[0], + signal, + throwOnError: true + }); + return data; + }, + queryKey: listCardsQueryKey(options) +}); + +/** + * 카드뉴스 저장 (관리자). publish 면 바로 그날 피드에 올린다 + */ +export const createCardMutation = (options?: Partial>): UseMutationOptions> => { + const mutationOptions: UseMutationOptions> = { + mutationFn: async (fnOptions) => { + const { data } = await createCard({ + ...options, + ...fnOptions, + throwOnError: true + }); + return data; + } + }; + return mutationOptions; +}; + +/** + * 승인 대기 카드뉴스를 그날 피드에 올리기 (관리자) + */ +export const publishCardMutation = (options?: Partial>): UseMutationOptions> => { + const mutationOptions: UseMutationOptions> = { + mutationFn: async (fnOptions) => { + const { data } = await publishCard({ + ...options, + ...fnOptions, + throwOnError: true + }); + return data; + } + }; + return mutationOptions; +}; + +/** + * 승인 대기 카드뉴스 반려 (관리자) + */ +export const rejectCardMutation = (options?: Partial>): UseMutationOptions> => { + const mutationOptions: UseMutationOptions> = { + mutationFn: async (fnOptions) => { + const { data } = await rejectCard({ + ...options, + ...fnOptions, + throwOnError: true + }); + return data; + } + }; + return mutationOptions; +}; + +export const getCardImageQueryKey = (options: Options) => createQueryKey('getCardImage', options); + +/** + * 카드뉴스 이미지 + */ +export const getCardImageOptions = (options: Options) => queryOptions>({ + queryFn: async ({ queryKey, signal }) => { + const { data } = await getCardImage({ + ...options, + ...queryKey[0], + signal, + throwOnError: true + }); + return data; + }, + queryKey: getCardImageQueryKey(options) +}); + +export const healthzHealthzGetQueryKey = (options?: Options) => createQueryKey('healthzHealthzGet', options); + +/** + * 헬스체크 + */ +export const healthzHealthzGetOptions = (options?: Options) => queryOptions>({ + queryFn: async ({ queryKey, signal }) => { + const { data } = await healthzHealthzGet({ + ...options, + ...queryKey[0], + signal, + throwOnError: true + }); + return data; + }, + queryKey: healthzHealthzGetQueryKey(options) +}); diff --git a/admin/src/api/client/client.gen.ts b/admin/src/api/client/client.gen.ts new file mode 100644 index 0000000..99565fb --- /dev/null +++ b/admin/src/api/client/client.gen.ts @@ -0,0 +1,16 @@ +// This file is auto-generated by @hey-api/openapi-ts + +import { type Client, type ClientOptions, type Config, createClient, createConfig } from './client'; +import type { ClientOptions as ClientOptions2 } from './types.gen'; + +/** + * The `createClientConfig()` function will be called on client initialization + * and the returned object will become the client's initial configuration. + * + * You may want to initialize your client this way instead of calling + * `setConfig()`. This is useful for example if you're using Next.js + * to ensure your client always has the correct values. + */ +export type CreateClientConfig = (override?: Config) => Config & T>; + +export const client: Client = createClient(createConfig({ throwOnError: true })); diff --git a/admin/src/api/client/client/client.gen.ts b/admin/src/api/client/client/client.gen.ts new file mode 100644 index 0000000..fc3f037 --- /dev/null +++ b/admin/src/api/client/client/client.gen.ts @@ -0,0 +1,277 @@ +// This file is auto-generated by @hey-api/openapi-ts + +import { createSseClient } from '../core/serverSentEvents.gen'; +import type { HttpMethod } from '../core/types.gen'; +import { getValidRequestBody } from '../core/utils.gen'; +import type { Client, Config, RequestOptions, ResolvedRequestOptions } from './types.gen'; +import { + buildUrl, + createConfig, + createInterceptors, + getParseAs, + mergeConfigs, + mergeHeaders, + setAuthParams, +} from './utils.gen'; + +type ReqInit = Omit & { + body?: any; + headers: ReturnType; +}; + +export const createClient = (config: Config = {}): Client => { + let _config = mergeConfigs(createConfig(), config); + + const getConfig = (): Config => ({ ..._config }); + + const setConfig = (config: Config): Config => { + _config = mergeConfigs(_config, config); + return getConfig(); + }; + + const interceptors = createInterceptors(); + + const beforeRequest = async < + TData = unknown, + TResponseStyle extends 'data' | 'fields' = 'fields', + ThrowOnError extends boolean = boolean, + Url extends string = string, + >( + options: RequestOptions, + ) => { + const opts = { + ..._config, + ...options, + fetch: options.fetch ?? _config.fetch ?? globalThis.fetch, + headers: mergeHeaders(_config.headers, options.headers), + serializedBody: undefined as string | undefined, + }; + + if (opts.security) { + await setAuthParams(opts); + } + + if (opts.requestValidator) { + await opts.requestValidator(opts); + } + + if (opts.body !== undefined && opts.bodySerializer) { + opts.serializedBody = opts.bodySerializer(opts.body) as string | undefined; + } + + // remove Content-Type header if body is empty to avoid sending invalid requests + if (opts.body === undefined || opts.serializedBody === '') { + opts.headers.delete('Content-Type'); + } + + const resolvedOpts = opts as typeof opts & + ResolvedRequestOptions; + const url = buildUrl(resolvedOpts); + + return { opts: resolvedOpts, url }; + }; + + const request: Client['request'] = async (options) => { + const throwOnError = options.throwOnError ?? _config.throwOnError; + const responseStyle = options.responseStyle ?? _config.responseStyle; + + let request: Request | undefined; + let response: Response | undefined; + + try { + const { opts, url } = await beforeRequest(options); + const requestInit: ReqInit = { + redirect: 'follow', + ...opts, + body: getValidRequestBody(opts), + }; + + request = new Request(url, requestInit); + + for (const fn of interceptors.request.fns) { + if (fn) { + request = await fn(request, opts); + } + } + + // fetch must be assigned here, otherwise it would throw the error: + // TypeError: Failed to execute 'fetch' on 'Window': Illegal invocation + const _fetch = opts.fetch!; + + response = await _fetch(request); + + for (const fn of interceptors.response.fns) { + if (fn) { + response = await fn(response, request, opts); + } + } + + const result = { + request, + response, + }; + + if (response.ok) { + const parseAs = + (opts.parseAs === 'auto' + ? getParseAs(response.headers.get('Content-Type')) + : opts.parseAs) ?? 'json'; + + if (response.status === 204 || response.headers.get('Content-Length') === '0') { + let emptyData: any; + switch (parseAs) { + case 'arrayBuffer': + case 'blob': + case 'text': + emptyData = await response[parseAs](); + break; + case 'formData': + emptyData = new FormData(); + break; + case 'stream': + emptyData = response.body; + break; + case 'json': + default: + emptyData = {}; + break; + } + return opts.responseStyle === 'data' + ? emptyData + : { + data: emptyData, + ...result, + }; + } + + let data: any; + switch (parseAs) { + case 'arrayBuffer': + case 'blob': + case 'formData': + case 'text': + data = await response[parseAs](); + break; + case 'json': { + // Some servers return 200 with no Content-Length and empty body. + // response.json() would throw; read as text and parse if non-empty. + const text = await response.text(); + data = text ? JSON.parse(text) : {}; + break; + } + case 'stream': + return opts.responseStyle === 'data' + ? response.body + : { + data: response.body, + ...result, + }; + } + + if (parseAs === 'json') { + if (opts.responseValidator) { + await opts.responseValidator(data); + } + + if (opts.responseTransformer) { + data = await opts.responseTransformer(data); + } + } + + return opts.responseStyle === 'data' + ? data + : { + data, + ...result, + }; + } + + const textError = await response.text(); + let jsonError: unknown; + + try { + jsonError = JSON.parse(textError); + } catch { + // noop + } + + throw jsonError ?? textError; + } catch (error) { + let finalError = error; + + for (const fn of interceptors.error.fns) { + if (fn) { + finalError = await fn(finalError, response, request, options as ResolvedRequestOptions); + } + } + + finalError = finalError || {}; + + if (throwOnError) { + throw finalError; + } + + // TODO: we probably want to return error and improve types + return responseStyle === 'data' + ? undefined + : { + error: finalError, + request, + response, + }; + } + }; + + const makeMethodFn = (method: Uppercase) => (options: RequestOptions) => + request({ ...options, method }); + + const makeSseFn = (method: Uppercase) => async (options: RequestOptions) => { + const { opts, url } = await beforeRequest(options); + return createSseClient({ + ...opts, + body: opts.body as BodyInit | null | undefined, + method, + onRequest: async (url, init) => { + let request = new Request(url, init); + for (const fn of interceptors.request.fns) { + if (fn) { + request = await fn(request, opts); + } + } + return request; + }, + serializedBody: getValidRequestBody(opts) as BodyInit | null | undefined, + url, + }); + }; + + const _buildUrl: Client['buildUrl'] = (options) => buildUrl({ ..._config, ...options }); + + return { + buildUrl: _buildUrl, + connect: makeMethodFn('CONNECT'), + delete: makeMethodFn('DELETE'), + get: makeMethodFn('GET'), + getConfig, + head: makeMethodFn('HEAD'), + interceptors, + options: makeMethodFn('OPTIONS'), + patch: makeMethodFn('PATCH'), + post: makeMethodFn('POST'), + put: makeMethodFn('PUT'), + request, + setConfig, + sse: { + connect: makeSseFn('CONNECT'), + delete: makeSseFn('DELETE'), + get: makeSseFn('GET'), + head: makeSseFn('HEAD'), + options: makeSseFn('OPTIONS'), + patch: makeSseFn('PATCH'), + post: makeSseFn('POST'), + put: makeSseFn('PUT'), + trace: makeSseFn('TRACE'), + }, + trace: makeMethodFn('TRACE'), + } as Client; +}; diff --git a/admin/src/api/client/client/index.ts b/admin/src/api/client/client/index.ts new file mode 100644 index 0000000..8c69331 --- /dev/null +++ b/admin/src/api/client/client/index.ts @@ -0,0 +1,27 @@ +// This file is auto-generated by @hey-api/openapi-ts + +export type { Auth } from '../core/auth.gen'; +export type { QuerySerializerOptions } from '../core/bodySerializer.gen'; +export { + formDataBodySerializer, + jsonBodySerializer, + urlSearchParamsBodySerializer, +} from '../core/bodySerializer.gen'; +export { buildClientParams } from '../core/params.gen'; +export { serializeQueryKeyValue } from '../core/queryKeySerializer.gen'; +export type { ServerSentEventsResult } from '../core/serverSentEvents.gen'; +export type { ClientMeta } from '../core/types.gen'; +export { createClient } from './client.gen'; +export type { + Client, + ClientOptions, + Config, + CreateClientConfig, + Options, + RequestOptions, + RequestResult, + ResolvedRequestOptions, + ResponseStyle, + TDataShape, +} from './types.gen'; +export { createConfig, mergeHeaders } from './utils.gen'; diff --git a/admin/src/api/client/client/types.gen.ts b/admin/src/api/client/client/types.gen.ts new file mode 100644 index 0000000..193646c --- /dev/null +++ b/admin/src/api/client/client/types.gen.ts @@ -0,0 +1,218 @@ +// This file is auto-generated by @hey-api/openapi-ts + +import type { Auth } from '../core/auth.gen'; +import type { + ServerSentEventsOptions, + ServerSentEventsResult, +} from '../core/serverSentEvents.gen'; +import type { Client as CoreClient, Config as CoreConfig } from '../core/types.gen'; +import type { Middleware } from './utils.gen'; + +export type ResponseStyle = 'data' | 'fields'; + +export interface Config + extends Omit, CoreConfig { + /** + * Base URL for all requests made by this client. + */ + baseUrl?: T['baseUrl']; + /** + * Fetch API implementation. You can use this option to provide a custom + * fetch instance. + * + * @default globalThis.fetch + */ + fetch?: typeof fetch; + /** + * Please don't use the Fetch client for Next.js applications. The `next` + * options won't have any effect. + * + * Install {@link https://www.npmjs.com/package/@hey-api/client-next `@hey-api/client-next`} instead. + */ + next?: never; + /** + * Return the response data parsed in a specified format. By default, `auto` + * will infer the appropriate method from the `Content-Type` response header. + * You can override this behavior with any of the {@link Body} methods. + * Select `stream` if you don't want to parse response data at all. + * + * @default 'auto' + */ + parseAs?: 'arrayBuffer' | 'auto' | 'blob' | 'formData' | 'json' | 'stream' | 'text'; + /** + * Should we return only data or multiple fields (data, error, response, etc.)? + * + * @default 'fields' + */ + responseStyle?: ResponseStyle; + /** + * Throw an error instead of returning it in the response? + * + * @default false + */ + throwOnError?: T['throwOnError']; +} + +export interface RequestOptions< + TData = unknown, + TResponseStyle extends ResponseStyle = 'fields', + ThrowOnError extends boolean = boolean, + Url extends string = string, +> + extends + Config<{ + responseStyle: TResponseStyle; + throwOnError: ThrowOnError; + }>, + Pick< + ServerSentEventsOptions, + | 'onRequest' + | 'onSseError' + | 'onSseEvent' + | 'sseDefaultRetryDelay' + | 'sseMaxRetryAttempts' + | 'sseMaxRetryDelay' + > { + /** + * Any body that you want to add to your request. + * + * {@link https://developer.mozilla.org/docs/Web/API/fetch#body} + */ + body?: unknown; + path?: Record; + query?: Record; + /** + * Security mechanism(s) to use for the request. + */ + security?: ReadonlyArray; + url: Url; +} + +export interface ResolvedRequestOptions< + TResponseStyle extends ResponseStyle = 'fields', + ThrowOnError extends boolean = boolean, + Url extends string = string, +> extends RequestOptions { + headers: Headers; + serializedBody?: string; +} + +export type RequestResult< + TData = unknown, + TError = unknown, + ThrowOnError extends boolean = boolean, + TResponseStyle extends ResponseStyle = 'fields', +> = ThrowOnError extends true + ? Promise< + TResponseStyle extends 'data' + ? TData extends Record + ? TData[keyof TData] + : TData + : { + data: TData extends Record ? TData[keyof TData] : TData; + request: Request; + response: Response; + } + > + : Promise< + TResponseStyle extends 'data' + ? (TData extends Record ? TData[keyof TData] : TData) | undefined + : ( + | { + data: TData extends Record ? TData[keyof TData] : TData; + error: undefined; + } + | { + data: undefined; + error: TError extends Record ? TError[keyof TError] : TError; + } + ) & { + /** request may be undefined, because error may be from building the request object itself */ + request?: Request; + /** response may be undefined, because error may be from building the request object itself or from a network error */ + response?: Response; + } + >; + +export interface ClientOptions { + baseUrl?: string; + responseStyle?: ResponseStyle; + throwOnError?: boolean; +} + +type MethodFn = < + TData = unknown, + TError = unknown, + ThrowOnError extends boolean = false, + TResponseStyle extends ResponseStyle = 'fields', +>( + options: Omit, 'method'>, +) => RequestResult; + +type SseFn = < + TData = unknown, + // eslint-disable-next-line @typescript-eslint/no-unused-vars + _TError = unknown, + ThrowOnError extends boolean = false, + TResponseStyle extends ResponseStyle = 'fields', +>( + options: Omit, 'method'>, +) => Promise>; + +type RequestFn = < + TData = unknown, + TError = unknown, + ThrowOnError extends boolean = false, + TResponseStyle extends ResponseStyle = 'fields', +>( + options: Omit, 'method'> & + Pick>, 'method'>, +) => RequestResult; + +type BuildUrlFn = < + TData extends { + body?: unknown; + path?: Record; + query?: Record; + url: string; + }, +>( + options: TData & Options, +) => string; + +export type Client = CoreClient & { + interceptors: Middleware; +}; + +/** + * The `createClientConfig()` function will be called on client initialization + * and the returned object will become the client's initial configuration. + * + * You may want to initialize your client this way instead of calling + * `setConfig()`. This is useful for example if you're using Next.js + * to ensure your client always has the correct values. + */ +export type CreateClientConfig = ( + override?: Config, +) => Config & T>; + +export interface TDataShape { + body?: unknown; + headers?: unknown; + path?: unknown; + query?: unknown; + url: string; +} + +type OmitKeys = Pick>; + +export type Options< + TData extends TDataShape = TDataShape, + ThrowOnError extends boolean = boolean, + TResponse = unknown, + TResponseStyle extends ResponseStyle = 'fields', +> = OmitKeys< + RequestOptions, + 'body' | 'path' | 'query' | 'url' +> & + ([TData] extends [never] ? unknown : Omit); diff --git a/admin/src/api/client/client/utils.gen.ts b/admin/src/api/client/client/utils.gen.ts new file mode 100644 index 0000000..d4a7284 --- /dev/null +++ b/admin/src/api/client/client/utils.gen.ts @@ -0,0 +1,316 @@ +// This file is auto-generated by @hey-api/openapi-ts + +import { getAuthToken } from '../core/auth.gen'; +import type { QuerySerializerOptions } from '../core/bodySerializer.gen'; +import { jsonBodySerializer } from '../core/bodySerializer.gen'; +import { + serializeArrayParam, + serializeObjectParam, + serializePrimitiveParam, +} from '../core/pathSerializer.gen'; +import { getUrl } from '../core/utils.gen'; +import type { Client, ClientOptions, Config, RequestOptions } from './types.gen'; + +export const createQuerySerializer = ({ + parameters = {}, + ...args +}: QuerySerializerOptions = {}): ((queryParams: T) => string) => { + const querySerializer = (queryParams: T): string => { + const search: string[] = []; + if (queryParams && typeof queryParams === 'object') { + for (const name in queryParams) { + const value = queryParams[name]; + + if (value === undefined || value === null) { + continue; + } + + const options = parameters[name] || args; + + if (Array.isArray(value)) { + const serializedArray = serializeArrayParam({ + allowReserved: options.allowReserved, + explode: true, + name, + style: 'form', + value, + ...options.array, + }); + if (serializedArray) search.push(serializedArray); + } else if (typeof value === 'object') { + const serializedObject = serializeObjectParam({ + allowReserved: options.allowReserved, + explode: true, + name, + style: 'deepObject', + value: value as Record, + ...options.object, + }); + if (serializedObject) search.push(serializedObject); + } else { + const serializedPrimitive = serializePrimitiveParam({ + allowReserved: options.allowReserved, + name, + value: value as string, + }); + if (serializedPrimitive) search.push(serializedPrimitive); + } + } + } + return search.join('&'); + }; + return querySerializer; +}; + +/** + * Infers parseAs value from provided Content-Type header. + */ +export const getParseAs = (contentType: string | null): Exclude => { + if (!contentType) { + // If no Content-Type header is provided, the best we can do is return the raw response body, + // which is effectively the same as the 'stream' option. + return 'stream'; + } + + const cleanContent = contentType.split(';')[0]?.trim(); + + if (!cleanContent) { + return; + } + + if (cleanContent.startsWith('application/json') || cleanContent.endsWith('+json')) { + return 'json'; + } + + if (cleanContent === 'multipart/form-data') { + return 'formData'; + } + + if ( + ['application/', 'audio/', 'image/', 'video/'].some((type) => cleanContent.startsWith(type)) + ) { + return 'blob'; + } + + if (cleanContent.startsWith('text/')) { + return 'text'; + } + + return; +}; + +const checkForExistence = ( + options: Pick & { + headers: Headers; + }, + name?: string, +): boolean => { + if (!name) { + return false; + } + if ( + options.headers.has(name) || + options.query?.[name] || + options.headers.get('Cookie')?.includes(`${name}=`) + ) { + return true; + } + return false; +}; + +export async function setAuthParams( + options: Pick & { + headers: Headers; + }, +): Promise { + for (const auth of options.security ?? []) { + if (checkForExistence(options, auth.name)) { + continue; + } + + const token = await getAuthToken(auth, options.auth); + + if (!token) { + continue; + } + + const name = auth.name ?? 'Authorization'; + + switch (auth.in) { + case 'query': + if (!options.query) { + options.query = {}; + } + options.query[name] = token; + break; + case 'cookie': + options.headers.append('Cookie', `${name}=${token}`); + break; + case 'header': + default: + options.headers.set(name, token); + break; + } + } +} + +export const buildUrl: Client['buildUrl'] = (options) => + getUrl({ + baseUrl: options.baseUrl as string, + path: options.path, + query: options.query, + querySerializer: + typeof options.querySerializer === 'function' + ? options.querySerializer + : createQuerySerializer(options.querySerializer), + url: options.url, + }); + +export const mergeConfigs = (a: Config, b: Config): Config => { + const config = { ...a, ...b }; + if (config.baseUrl?.endsWith('/')) { + config.baseUrl = config.baseUrl.substring(0, config.baseUrl.length - 1); + } + config.headers = mergeHeaders(a.headers, b.headers); + return config; +}; + +const headersEntries = (headers: Headers): Array<[string, string]> => { + const entries: Array<[string, string]> = []; + headers.forEach((value, key) => { + entries.push([key, value]); + }); + return entries; +}; + +export const mergeHeaders = ( + ...headers: Array['headers'] | undefined> +): Headers => { + const mergedHeaders = new Headers(); + for (const header of headers) { + if (!header) { + continue; + } + + const iterator = header instanceof Headers ? headersEntries(header) : Object.entries(header); + + for (const [key, value] of iterator) { + if (value === null) { + mergedHeaders.delete(key); + } else if (Array.isArray(value)) { + for (const v of value) { + mergedHeaders.append(key, v as string); + } + } else if (value !== undefined) { + // assume object headers are meant to be JSON stringified, i.e., their + // content value in OpenAPI specification is 'application/json' + mergedHeaders.set( + key, + typeof value === 'object' ? JSON.stringify(value) : (value as string), + ); + } + } + } + return mergedHeaders; +}; + +type ErrInterceptor = ( + error: Err, + /** response may be undefined due to a network error where no response object is produced */ + response: Res | undefined, + /** request may be undefined, because error may be from building the request object itself */ + request: Req | undefined, + options: Options, +) => Err | Promise; + +type ReqInterceptor = (request: Req, options: Options) => Req | Promise; + +type ResInterceptor = ( + response: Res, + request: Req, + options: Options, +) => Res | Promise; + +class Interceptors { + fns: Array = []; + + clear(): void { + this.fns = []; + } + + eject(id: number | Interceptor): void { + const index = this.getInterceptorIndex(id); + if (this.fns[index]) { + this.fns[index] = null; + } + } + + exists(id: number | Interceptor): boolean { + const index = this.getInterceptorIndex(id); + return Boolean(this.fns[index]); + } + + getInterceptorIndex(id: number | Interceptor): number { + if (typeof id === 'number') { + return this.fns[id] ? id : -1; + } + return this.fns.indexOf(id); + } + + update(id: number | Interceptor, fn: Interceptor): number | Interceptor | false { + const index = this.getInterceptorIndex(id); + if (this.fns[index]) { + this.fns[index] = fn; + return id; + } + return false; + } + + use(fn: Interceptor): number { + this.fns.push(fn); + return this.fns.length - 1; + } +} + +export interface Middleware { + error: Interceptors>; + request: Interceptors>; + response: Interceptors>; +} + +export const createInterceptors = (): Middleware< + Req, + Res, + Err, + Options +> => ({ + error: new Interceptors>(), + request: new Interceptors>(), + response: new Interceptors>(), +}); + +const defaultQuerySerializer = createQuerySerializer({ + allowReserved: false, + array: { + explode: true, + style: 'form', + }, + object: { + explode: true, + style: 'deepObject', + }, +}); + +const defaultHeaders = { + 'Content-Type': 'application/json', +}; + +export const createConfig = ( + override: Config & T> = {}, +): Config & T> => ({ + ...jsonBodySerializer, + headers: defaultHeaders, + parseAs: 'auto', + querySerializer: defaultQuerySerializer, + ...override, +}); diff --git a/admin/src/api/client/core/auth.gen.ts b/admin/src/api/client/core/auth.gen.ts new file mode 100644 index 0000000..c663664 --- /dev/null +++ b/admin/src/api/client/core/auth.gen.ts @@ -0,0 +1,48 @@ +// This file is auto-generated by @hey-api/openapi-ts + +export type AuthToken = string | undefined; + +export interface Auth { + /** + * Which part of the request do we use to send the auth? + * + * @default 'header' + */ + in?: 'header' | 'query' | 'cookie'; + /** + * A unique identifier for the security scheme. + * + * Defined only when there are multiple security schemes whose `Auth` + * shape would otherwise be identical. + */ + key?: string; + /** + * Header or query parameter name. + * + * @default 'Authorization' + */ + name?: string; + scheme?: 'basic' | 'bearer'; + type: 'apiKey' | 'http'; +} + +export const getAuthToken = async ( + auth: Auth, + callback: ((auth: Auth) => Promise | AuthToken) | AuthToken, +): Promise => { + const token = typeof callback === 'function' ? await callback(auth) : callback; + + if (!token) { + return; + } + + if (auth.scheme === 'bearer') { + return `Bearer ${token}`; + } + + if (auth.scheme === 'basic') { + return `Basic ${btoa(token)}`; + } + + return token; +}; diff --git a/admin/src/api/client/core/bodySerializer.gen.ts b/admin/src/api/client/core/bodySerializer.gen.ts new file mode 100644 index 0000000..67daca6 --- /dev/null +++ b/admin/src/api/client/core/bodySerializer.gen.ts @@ -0,0 +1,82 @@ +// This file is auto-generated by @hey-api/openapi-ts + +import type { ArrayStyle, ObjectStyle, SerializerOptions } from './pathSerializer.gen'; + +export type QuerySerializer = (query: Record) => string; + +export type BodySerializer = (body: unknown) => unknown; + +type QuerySerializerOptionsObject = { + allowReserved?: boolean; + array?: Partial>; + object?: Partial>; +}; + +export type QuerySerializerOptions = QuerySerializerOptionsObject & { + /** + * Per-parameter serialization overrides. When provided, these settings + * override the global array/object settings for specific parameter names. + */ + parameters?: Record; +}; + +const serializeFormDataPair = (data: FormData, key: string, value: unknown): void => { + if (typeof value === 'string' || value instanceof Blob) { + data.append(key, value); + } else if (value instanceof Date) { + data.append(key, value.toISOString()); + } else { + data.append(key, JSON.stringify(value)); + } +}; + +const serializeUrlSearchParamsPair = (data: URLSearchParams, key: string, value: unknown): void => { + if (typeof value === 'string') { + data.append(key, value); + } else { + data.append(key, JSON.stringify(value)); + } +}; + +export const formDataBodySerializer = { + bodySerializer: (body: unknown): FormData => { + const data = new FormData(); + + Object.entries(body as Record).forEach(([key, value]) => { + if (value === undefined || value === null) { + return; + } + if (Array.isArray(value)) { + value.forEach((v) => serializeFormDataPair(data, key, v)); + } else { + serializeFormDataPair(data, key, value); + } + }); + + return data; + }, +}; + +export const jsonBodySerializer = { + bodySerializer: (body: unknown): string => + JSON.stringify(body, (_key, value) => (typeof value === 'bigint' ? value.toString() : value)), +}; + +export const urlSearchParamsBodySerializer = { + bodySerializer: (body: unknown): string => { + const data = new URLSearchParams(); + + Object.entries(body as Record).forEach(([key, value]) => { + if (value === undefined || value === null) { + return; + } + if (Array.isArray(value)) { + value.forEach((v) => serializeUrlSearchParamsPair(data, key, v)); + } else { + serializeUrlSearchParamsPair(data, key, value); + } + }); + + return data.toString(); + }, +}; diff --git a/admin/src/api/client/core/params.gen.ts b/admin/src/api/client/core/params.gen.ts new file mode 100644 index 0000000..5e8908f --- /dev/null +++ b/admin/src/api/client/core/params.gen.ts @@ -0,0 +1,178 @@ +// This file is auto-generated by @hey-api/openapi-ts + +type Slot = 'body' | 'headers' | 'path' | 'query'; + +export type Field = + | { + in: Exclude; + /** + * Field name. This is the name we want the user to see and use. + */ + key: string; + /** + * Field mapped name. This is the name we want to use in the request. + * If omitted, we use the same value as `key`. + */ + map?: string; + } + | { + in: Extract; + /** + * Key isn't required for bodies. + */ + key?: string; + map?: string; + } + | { + /** + * Field name. This is the name we want the user to see and use. + */ + key: string; + /** + * Field mapped name. This is the name we want to use in the request. + * If `in` is omitted, `map` aliases `key` to the transport layer. + */ + map: Slot; + }; + +export interface Fields { + allowExtra?: Partial>; + args?: ReadonlyArray; +} + +export type FieldsConfig = ReadonlyArray; + +const extraPrefixesMap: Record = { + $body_: 'body', + $headers_: 'headers', + $path_: 'path', + $query_: 'query', +}; +const extraPrefixes = Object.entries(extraPrefixesMap); + +type KeyMap = Map< + string, + | { + in: Slot; + map?: string; + } + | { + in?: never; + map: Slot; + } +>; + +function buildKeyMap(fields: FieldsConfig, map?: KeyMap): KeyMap { + if (!map) { + map = new Map(); + } + + for (const config of fields) { + if ('in' in config) { + if (config.key) { + map.set(config.key, { + in: config.in, + map: config.map, + }); + } + } else if ('key' in config) { + map.set(config.key, { + map: config.map, + }); + } else if (config.args) { + buildKeyMap(config.args, map); + } + } + + return map; +} + +interface Params { + body?: unknown; + headers: Record; + path: Record; + query: Record; +} + +function stripEmptySlots(params: Params): void { + for (const [slot, value] of Object.entries(params)) { + if (slot === 'body') continue; + if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) { + delete params[slot as Slot]; + } + } +} + +export function buildClientParams(args: ReadonlyArray, fields: FieldsConfig): Params { + const params: Params = { + headers: Object.create(null), + path: Object.create(null), + query: Object.create(null), + }; + + const map = buildKeyMap(fields); + + function writeSlot(slot: Slot, key: string, value: unknown): void { + let record = params[slot] as Record | undefined; + if (record === undefined) { + record = Object.create(null) as Record; + params[slot] = record; + } + record[key] = value; + } + + let config: FieldsConfig[number] | undefined; + + for (const [index, arg] of args.entries()) { + if (fields[index]) { + config = fields[index]; + } + + if (!config) { + continue; + } + + if ('in' in config) { + if (config.key) { + const field = map.get(config.key)!; + const name = field.map || config.key; + if (field.in) { + writeSlot(field.in, name, arg); + } + } else { + params.body = arg; + } + } else { + for (const [key, value] of Object.entries(arg ?? {})) { + const field = map.get(key); + + if (field) { + if (field.in) { + const name = field.map || key; + writeSlot(field.in, name, value); + } else { + params[field.map] = value; + } + } else { + const extra = extraPrefixes.find(([prefix]) => key.startsWith(prefix)); + + if (extra) { + const [prefix, slot] = extra; + writeSlot(slot, key.slice(prefix.length), value); + } else if ('allowExtra' in config && config.allowExtra) { + for (const [slot, allowed] of Object.entries(config.allowExtra)) { + if (allowed) { + writeSlot(slot as Slot, key, value); + break; + } + } + } + } + } + } + } + + stripEmptySlots(params); + + return params; +} diff --git a/admin/src/api/client/core/pathSerializer.gen.ts b/admin/src/api/client/core/pathSerializer.gen.ts new file mode 100644 index 0000000..fab1ed4 --- /dev/null +++ b/admin/src/api/client/core/pathSerializer.gen.ts @@ -0,0 +1,171 @@ +// This file is auto-generated by @hey-api/openapi-ts + +interface SerializeOptions extends SerializePrimitiveOptions, SerializerOptions {} + +interface SerializePrimitiveOptions { + allowReserved?: boolean; + name: string; +} + +export interface SerializerOptions { + /** + * @default true + */ + explode: boolean; + style: T; +} + +export type ArrayStyle = 'form' | 'spaceDelimited' | 'pipeDelimited'; +export type ArraySeparatorStyle = ArrayStyle | MatrixStyle; +type MatrixStyle = 'label' | 'matrix' | 'simple'; +export type ObjectStyle = 'form' | 'deepObject'; +type ObjectSeparatorStyle = ObjectStyle | MatrixStyle; + +interface SerializePrimitiveParam extends SerializePrimitiveOptions { + value: string; +} + +export const separatorArrayExplode = (style: ArraySeparatorStyle): '.' | ';' | ',' | '&' => { + switch (style) { + case 'label': + return '.'; + case 'matrix': + return ';'; + case 'simple': + return ','; + default: + return '&'; + } +}; + +export const separatorArrayNoExplode = (style: ArraySeparatorStyle): ',' | '|' | '%20' => { + switch (style) { + case 'form': + return ','; + case 'pipeDelimited': + return '|'; + case 'spaceDelimited': + return '%20'; + default: + return ','; + } +}; + +export const separatorObjectExplode = (style: ObjectSeparatorStyle): '.' | ';' | ',' | '&' => { + switch (style) { + case 'label': + return '.'; + case 'matrix': + return ';'; + case 'simple': + return ','; + default: + return '&'; + } +}; + +export const serializeArrayParam = ({ + allowReserved, + explode, + name, + style, + value, +}: SerializeOptions & { + value: unknown[]; +}): string => { + if (!explode) { + const joinedValues = ( + allowReserved ? value : value.map((v) => encodeURIComponent(v as string)) + ).join(separatorArrayNoExplode(style)); + switch (style) { + case 'label': + return `.${joinedValues}`; + case 'matrix': + return `;${name}=${joinedValues}`; + case 'simple': + return joinedValues; + default: + return `${name}=${joinedValues}`; + } + } + + const separator = separatorArrayExplode(style); + const joinedValues = value + .map((v) => { + if (style === 'label' || style === 'simple') { + return allowReserved ? v : encodeURIComponent(v as string); + } + + return serializePrimitiveParam({ + allowReserved, + name, + value: v as string, + }); + }) + .join(separator); + return style === 'label' || style === 'matrix' ? separator + joinedValues : joinedValues; +}; + +export const serializePrimitiveParam = ({ + allowReserved, + name, + value, +}: SerializePrimitiveParam): string => { + if (value === undefined || value === null) { + return ''; + } + + if (typeof value === 'object') { + throw new Error( + 'Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.', + ); + } + + return `${name}=${allowReserved ? value : encodeURIComponent(value)}`; +}; + +export const serializeObjectParam = ({ + allowReserved, + explode, + name, + style, + value, + valueOnly, +}: SerializeOptions & { + value: Record | Date; + valueOnly?: boolean; +}): string => { + if (value instanceof Date) { + return valueOnly ? value.toISOString() : `${name}=${value.toISOString()}`; + } + + if (style !== 'deepObject' && !explode) { + let values: string[] = []; + Object.entries(value).forEach(([key, v]) => { + values = [...values, key, allowReserved ? (v as string) : encodeURIComponent(v as string)]; + }); + const joinedValues = values.join(','); + switch (style) { + case 'form': + return `${name}=${joinedValues}`; + case 'label': + return `.${joinedValues}`; + case 'matrix': + return `;${name}=${joinedValues}`; + default: + return joinedValues; + } + } + + const separator = separatorObjectExplode(style); + const joinedValues = Object.entries(value) + .map(([key, v]) => + serializePrimitiveParam({ + allowReserved, + name: style === 'deepObject' ? `${name}[${key}]` : key, + value: v as string, + }), + ) + .join(separator); + return style === 'label' || style === 'matrix' ? separator + joinedValues : joinedValues; +}; diff --git a/admin/src/api/client/core/queryKeySerializer.gen.ts b/admin/src/api/client/core/queryKeySerializer.gen.ts new file mode 100644 index 0000000..773b065 --- /dev/null +++ b/admin/src/api/client/core/queryKeySerializer.gen.ts @@ -0,0 +1,117 @@ +// This file is auto-generated by @hey-api/openapi-ts + +/** + * JSON-friendly union that mirrors what Pinia Colada can hash. + */ +export type JsonValue = + | null + | string + | number + | boolean + | JsonValue[] + | { [key: string]: JsonValue }; + +/** + * Replacer that converts non-JSON values (bigint, Date, etc.) to safe substitutes. + */ +export const queryKeyJsonReplacer = (_key: string, value: unknown): unknown | undefined => { + if (value === undefined || typeof value === 'function' || typeof value === 'symbol') { + return undefined; + } + if (typeof value === 'bigint') { + return value.toString(); + } + if (value instanceof Date) { + return value.toISOString(); + } + return value; +}; + +/** + * Safely stringifies a value and parses it back into a JsonValue. + */ +export const stringifyToJsonValue = (input: unknown): JsonValue | undefined => { + try { + const json = JSON.stringify(input, queryKeyJsonReplacer); + if (json === undefined) { + return undefined; + } + return JSON.parse(json) as JsonValue; + } catch { + return undefined; + } +}; + +/** + * Detects plain objects (including objects with a null prototype). + */ +const isPlainObject = (value: unknown): value is Record => { + if (value === null || typeof value !== 'object') { + return false; + } + const prototype = Object.getPrototypeOf(value as object); + return prototype === Object.prototype || prototype === null; +}; + +/** + * Turns URLSearchParams into a sorted JSON object for deterministic keys. + */ +const serializeSearchParams = (params: URLSearchParams): JsonValue => { + const entries = Array.from(params.entries()).sort(([a], [b]) => a.localeCompare(b)); + const result: Record = {}; + + for (const [key, value] of entries) { + const existing = result[key]; + if (existing === undefined) { + result[key] = value; + continue; + } + + if (Array.isArray(existing)) { + (existing as string[]).push(value); + } else { + result[key] = [existing, value]; + } + } + + return result; +}; + +/** + * Normalizes any accepted value into a JSON-friendly shape for query keys. + */ +export const serializeQueryKeyValue = (value: unknown): JsonValue | undefined => { + if (value === null) { + return null; + } + + if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean') { + return value; + } + + if (value === undefined || typeof value === 'function' || typeof value === 'symbol') { + return undefined; + } + + if (typeof value === 'bigint') { + return value.toString(); + } + + if (value instanceof Date) { + return value.toISOString(); + } + + if (Array.isArray(value)) { + return stringifyToJsonValue(value); + } + + if (typeof URLSearchParams !== 'undefined' && value instanceof URLSearchParams) { + return serializeSearchParams(value); + } + + if (isPlainObject(value)) { + return stringifyToJsonValue(value); + } + + return undefined; +}; diff --git a/admin/src/api/client/core/serverSentEvents.gen.ts b/admin/src/api/client/core/serverSentEvents.gen.ts new file mode 100644 index 0000000..ddf3c4d --- /dev/null +++ b/admin/src/api/client/core/serverSentEvents.gen.ts @@ -0,0 +1,242 @@ +// This file is auto-generated by @hey-api/openapi-ts + +import type { Config } from './types.gen'; + +export type ServerSentEventsOptions = Omit & + Pick & { + /** + * Fetch API implementation. You can use this option to provide a custom + * fetch instance. + * + * @default globalThis.fetch + */ + fetch?: typeof fetch; + /** + * Implementing clients can call request interceptors inside this hook. + */ + onRequest?: (url: string, init: RequestInit) => Promise; + /** + * Callback invoked when a network or parsing error occurs during streaming. + * + * This option applies only if the endpoint returns a stream of events. + * + * @param error The error that occurred. + */ + onSseError?: (error: unknown) => void; + /** + * Callback invoked when an event is streamed from the server. + * + * This option applies only if the endpoint returns a stream of events. + * + * @param event Event streamed from the server. + * @returns Nothing (void). + */ + onSseEvent?: (event: StreamEvent) => void; + serializedBody?: RequestInit['body']; + /** + * Default retry delay in milliseconds. + * + * This option applies only if the endpoint returns a stream of events. + * + * @default 3000 + */ + sseDefaultRetryDelay?: number; + /** + * Maximum number of retry attempts before giving up. + */ + sseMaxRetryAttempts?: number; + /** + * Maximum retry delay in milliseconds. + * + * Applies only when exponential backoff is used. + * + * This option applies only if the endpoint returns a stream of events. + * + * @default 30000 + */ + sseMaxRetryDelay?: number; + /** + * Optional sleep function for retry backoff. + * + * Defaults to using `setTimeout`. + */ + sseSleepFn?: (ms: number) => Promise; + url: string; + }; + +export interface StreamEvent { + data: TData; + event?: string; + id?: string; + retry?: number; +} + +export type ServerSentEventsResult = { + stream: AsyncGenerator< + TData extends Record ? TData[keyof TData] : TData, + TReturn, + TNext + >; +}; + +export function createSseClient({ + onRequest, + onSseError, + onSseEvent, + responseTransformer, + responseValidator, + sseDefaultRetryDelay, + sseMaxRetryAttempts, + sseMaxRetryDelay, + sseSleepFn, + url, + ...options +}: ServerSentEventsOptions): ServerSentEventsResult { + let lastEventId: string | undefined; + + const sleep = sseSleepFn ?? ((ms: number) => new Promise((resolve) => setTimeout(resolve, ms))); + + const createStream = async function* () { + let retryDelay: number = sseDefaultRetryDelay ?? 3000; + let attempt = 0; + const signal = options.signal ?? new AbortController().signal; + + while (true) { + if (signal.aborted) break; + + attempt++; + + const headers = + options.headers instanceof Headers + ? options.headers + : new Headers(options.headers as Record | undefined); + + if (lastEventId !== undefined) { + headers.set('Last-Event-ID', lastEventId); + } + + try { + const requestInit: RequestInit = { + redirect: 'follow', + ...options, + body: options.serializedBody, + headers, + signal, + }; + let request = new Request(url, requestInit); + if (onRequest) { + request = await onRequest(url, requestInit); + } + // fetch must be assigned here, otherwise it would throw the error: + // TypeError: Failed to execute 'fetch' on 'Window': Illegal invocation + const _fetch = options.fetch ?? globalThis.fetch; + const response = await _fetch(request); + + if (!response.ok) throw new Error(`SSE failed: ${response.status} ${response.statusText}`); + + if (!response.body) throw new Error('No body in SSE response'); + + const reader = response.body.pipeThrough(new TextDecoderStream()).getReader(); + + let buffer = ''; + + const abortHandler = () => { + try { + reader.cancel(); + } catch { + // noop + } + }; + + signal.addEventListener('abort', abortHandler); + + try { + while (true) { + const { done, value } = await reader.read(); + if (done) break; + buffer += value; + buffer = buffer.replace(/\r\n?/g, '\n'); // normalize line endings + + const chunks = buffer.split('\n\n'); + buffer = chunks.pop() ?? ''; + + for (const chunk of chunks) { + const lines = chunk.split('\n'); + const dataLines: Array = []; + let eventName: string | undefined; + + for (const line of lines) { + if (line.startsWith('data:')) { + dataLines.push(line.replace(/^data:\s*/, '')); + } else if (line.startsWith('event:')) { + eventName = line.replace(/^event:\s*/, ''); + } else if (line.startsWith('id:')) { + lastEventId = line.replace(/^id:\s*/, ''); + } else if (line.startsWith('retry:')) { + const parsed = Number.parseInt(line.replace(/^retry:\s*/, ''), 10); + if (!Number.isNaN(parsed)) { + retryDelay = parsed; + } + } + } + + let data: unknown; + let parsedJson = false; + + if (dataLines.length) { + const rawData = dataLines.join('\n'); + try { + data = JSON.parse(rawData); + parsedJson = true; + } catch { + data = rawData; + } + } + + if (parsedJson) { + if (responseValidator) { + await responseValidator(data); + } + + if (responseTransformer) { + data = await responseTransformer(data); + } + } + + onSseEvent?.({ + data, + event: eventName, + id: lastEventId, + retry: retryDelay, + }); + + if (dataLines.length) { + yield data as any; + } + } + } + } finally { + signal.removeEventListener('abort', abortHandler); + reader.releaseLock(); + } + + break; // exit loop on normal completion + } catch (error) { + // connection failed or aborted; retry after delay + onSseError?.(error); + + if (sseMaxRetryAttempts !== undefined && attempt >= sseMaxRetryAttempts) { + break; // stop after firing error + } + + // exponential backoff: double retry each attempt, cap at 30s + const backoff = Math.min(retryDelay * 2 ** (attempt - 1), sseMaxRetryDelay ?? 30000); + await sleep(backoff); + } + } + }; + + const stream = createStream(); + + return { stream }; +} diff --git a/admin/src/api/client/core/types.gen.ts b/admin/src/api/client/core/types.gen.ts new file mode 100644 index 0000000..c657c85 --- /dev/null +++ b/admin/src/api/client/core/types.gen.ts @@ -0,0 +1,110 @@ +// This file is auto-generated by @hey-api/openapi-ts + +import type { Auth, AuthToken } from './auth.gen'; +import type { BodySerializer, QuerySerializer, QuerySerializerOptions } from './bodySerializer.gen'; + +export type HttpMethod = + | 'connect' + | 'delete' + | 'get' + | 'head' + | 'options' + | 'patch' + | 'post' + | 'put' + | 'trace'; + +export type Client< + RequestFn = never, + Config = unknown, + MethodFn = never, + BuildUrlFn = never, + SseFn = never, +> = { + /** + * Returns the final request URL. + */ + buildUrl: BuildUrlFn; + getConfig: () => Config; + request: RequestFn; + setConfig: (config: Config) => Config; +} & { + [K in HttpMethod]: MethodFn; +} & ([SseFn] extends [never] ? { sse?: never } : { sse: { [K in HttpMethod]: SseFn } }); + +export interface Config { + /** + * Auth token or a function returning auth token. The resolved value will be + * added to the request payload as defined by its `security` array. + */ + auth?: ((auth: Auth) => Promise | AuthToken) | AuthToken; + /** + * A function for serializing request body parameter. By default, + * {@link JSON.stringify()} will be used. + */ + bodySerializer?: BodySerializer | null; + /** + * An object containing any HTTP headers that you want to pre-populate your + * `Headers` object with. + * + * {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more} + */ + headers?: + | RequestInit['headers'] + | Record< + string, + string | number | boolean | (string | number | boolean)[] | null | undefined | unknown + >; + /** + * The request method. + * + * {@link https://developer.mozilla.org/docs/Web/API/fetch#method See more} + */ + method?: Uppercase; + /** + * A function for serializing request query parameters. By default, arrays + * will be exploded in form style, objects will be exploded in deepObject + * style, and reserved characters are percent-encoded. + * + * This method will have no effect if the native `paramsSerializer()` Axios + * API function is used. + * + * {@link https://swagger.io/docs/specification/serialization/#query View examples} + */ + querySerializer?: QuerySerializer | QuerySerializerOptions; + /** + * A function validating request data. This is useful if you want to ensure + * the request conforms to the desired shape, so it can be safely sent to + * the server. + */ + requestValidator?: (data: unknown) => Promise; + /** + * A function transforming response data before it's returned. This is useful + * for post-processing data, e.g., converting ISO strings into Date objects. + */ + responseTransformer?: (data: unknown) => Promise; + /** + * A function validating response data. This is useful if you want to ensure + * the response conforms to the desired shape, so it can be safely passed to + * the transformers and returned to the user. + */ + responseValidator?: (data: unknown) => Promise; +} + +/** + * Arbitrary metadata passed through the `meta` request option. + */ +// eslint-disable-next-line @typescript-eslint/no-empty-object-type +export interface ClientMeta {} + +type IsExactlyNeverOrNeverUndefined = [T] extends [never] + ? true + : [T] extends [never | undefined] + ? [undefined] extends [T] + ? false + : true + : false; + +export type OmitNever> = { + [K in keyof T as IsExactlyNeverOrNeverUndefined extends true ? never : K]: T[K]; +}; diff --git a/admin/src/api/client/core/utils.gen.ts b/admin/src/api/client/core/utils.gen.ts new file mode 100644 index 0000000..af56e07 --- /dev/null +++ b/admin/src/api/client/core/utils.gen.ts @@ -0,0 +1,140 @@ +// This file is auto-generated by @hey-api/openapi-ts + +import type { BodySerializer, QuerySerializer } from './bodySerializer.gen'; +import { + type ArraySeparatorStyle, + serializeArrayParam, + serializeObjectParam, + serializePrimitiveParam, +} from './pathSerializer.gen'; + +export interface PathSerializer { + path: Record; + url: string; +} + +export const PATH_PARAM_RE: RegExp = /\{[^{}]+\}/g; + +export const defaultPathSerializer = ({ path, url: _url }: PathSerializer): string => { + let url = _url; + const matches = _url.match(PATH_PARAM_RE); + if (matches) { + for (const match of matches) { + let explode = false; + let name = match.substring(1, match.length - 1); + let style: ArraySeparatorStyle = 'simple'; + + if (name.endsWith('*')) { + explode = true; + name = name.substring(0, name.length - 1); + } + + if (name.startsWith('.')) { + name = name.substring(1); + style = 'label'; + } else if (name.startsWith(';')) { + name = name.substring(1); + style = 'matrix'; + } + + const value = path[name]; + + if (value === undefined || value === null) { + continue; + } + + if (Array.isArray(value)) { + url = url.replace(match, serializeArrayParam({ explode, name, style, value })); + continue; + } + + if (typeof value === 'object') { + url = url.replace( + match, + serializeObjectParam({ + explode, + name, + style, + value: value as Record, + valueOnly: true, + }), + ); + continue; + } + + if (style === 'matrix') { + url = url.replace( + match, + `;${serializePrimitiveParam({ + name, + value: value as string, + })}`, + ); + continue; + } + + const replaceValue = encodeURIComponent( + style === 'label' ? `.${value as string}` : (value as string), + ); + url = url.replace(match, replaceValue); + } + } + return url; +}; + +export const getUrl = ({ + baseUrl, + path, + query, + querySerializer, + url: _url, +}: { + baseUrl?: string; + path?: Record; + query?: Record; + querySerializer: QuerySerializer; + url: string; +}): string => { + const pathUrl = _url.startsWith('/') ? _url : `/${_url}`; + let url = (baseUrl ?? '') + pathUrl; + if (path) { + url = defaultPathSerializer({ path, url }); + } + let search = query ? querySerializer(query) : ''; + if (search.startsWith('?')) { + search = search.substring(1); + } + if (search) { + url += `?${search}`; + } + return url; +}; + +export function getValidRequestBody(options: { + body?: unknown; + bodySerializer?: BodySerializer | null; + serializedBody?: unknown; +}): unknown { + const hasBody = options.body !== undefined; + const isSerializedBody = hasBody && options.bodySerializer; + + if (isSerializedBody) { + if ('serializedBody' in options) { + const hasSerializedBody = + options.serializedBody !== undefined && options.serializedBody !== ''; + + return hasSerializedBody ? options.serializedBody : null; + } + + // not all clients implement a serializedBody property (i.e., client-axios) + return options.body !== '' ? options.body : null; + } + + // plain/text body + if (hasBody) { + return options.body; + } + + // no body was provided + return undefined; +} diff --git a/admin/src/api/client/index.ts b/admin/src/api/client/index.ts new file mode 100644 index 0000000..79a1a67 --- /dev/null +++ b/admin/src/api/client/index.ts @@ -0,0 +1,4 @@ +// This file is auto-generated by @hey-api/openapi-ts + +export { addComment, addMyGak, addTalk, authConfig, blockTalkAuthor, createCard, deleteComment, deleteMyGak, deleteTalk, getArticle, getCardImage, getFeed, getImage, getIndex, getPost, getSeasonWeek, getSky, getSkyRanking, getTalkImage, getTodayGuPage, getTodayPage, getTomorrowGuPage, getTomorrowPage, getWatchSummary, getWeatherNow, getWeatherToday, getWeek, getWeekRanking, googleLogin, healthzHealthzGet, likeComment, likePost, likeTalk, listArticles, listCards, listComments, listEvents, listIndices, listMyGak, listMyTalks, listPlaces, listPresets, listRegions, listSaved, listTalks, login, logout, me, nearestRegion, type Options, publishCard, refresh, rejectCard, reportTalk, savePost, scoreMyGak, signup, talkGroups, unlikeComment, unlikePost, unlikeTalk, unsavePost, updateMe, uploadTalkImage } from './sdk.gen'; +export { type AddCommentData, type AddCommentError, type AddCommentErrors, type AddCommentResponse, type AddCommentResponses, type AddMyGakData, type AddMyGakError, type AddMyGakErrors, type AddMyGakResponse, type AddMyGakResponses, type AddTalkData, type AddTalkError, type AddTalkErrors, type AddTalkResponse, type AddTalkResponses, type AirData, AirGrade, ArticleCategory, type ArticleSummary, type AuthConfigData, type AuthConfigResponse, type AuthConfigResponses, AuthProvider, type BandArticle, type BandEvent, type Bands, type BestTime, type BlockTalkAuthorData, type BlockTalkAuthorError, type BlockTalkAuthorErrors, type BlockTalkAuthorResponse, type BlockTalkAuthorResponses, type BodyUploadTalkImageV1TalkImagePost, type CardItem, CardStatus, type ClientOptions, type CommentData, type CommuteData, Confidence, type CreateCardData, type CreateCardError, type CreateCardErrors, type CreateCardResponse, type CreateCardResponses, type Cut, type DayData, type DeleteCommentData, type DeleteCommentError, type DeleteCommentErrors, type DeleteCommentResponse, type DeleteCommentResponses, type DeleteMyGakData, type DeleteMyGakError, type DeleteMyGakErrors, type DeleteMyGakResponse, type DeleteMyGakResponses, type DeleteTalkData, type DeleteTalkError, type DeleteTalkErrors, type DeleteTalkResponse, type DeleteTalkResponses, type ErrorInfo, type EventData, type Factor, type GakSlide, type GetArticleData, type GetArticleError, type GetArticleErrors, type GetArticleResponse, type GetArticleResponses, type GetCardImageData, type GetCardImageError, type GetCardImageErrors, type GetCardImageResponses, type GetFeedData, type GetFeedError, type GetFeedErrors, type GetFeedResponse, type GetFeedResponses, type GetImageData, type GetImageError, type GetImageErrors, type GetImageResponses, type GetIndexData, type GetIndexError, type GetIndexErrors, type GetIndexResponse, type GetIndexResponses, type GetPostData, type GetPostError, type GetPostErrors, type GetPostResponse, type GetPostResponses, type GetSeasonWeekData, type GetSeasonWeekResponse, type GetSeasonWeekResponses, type GetSkyData, type GetSkyError, type GetSkyErrors, type GetSkyRankingData, type GetSkyRankingResponse, type GetSkyRankingResponses, type GetSkyResponse, type GetSkyResponses, type GetTalkImageData, type GetTalkImageError, type GetTalkImageErrors, type GetTalkImageResponses, type GetTodayGuPageData, type GetTodayGuPageError, type GetTodayGuPageErrors, type GetTodayGuPageResponse, type GetTodayGuPageResponses, type GetTodayPageData, type GetTodayPageError, type GetTodayPageErrors, type GetTodayPageResponse, type GetTodayPageResponses, type GetTomorrowGuPageData, type GetTomorrowGuPageError, type GetTomorrowGuPageErrors, type GetTomorrowGuPageResponse, type GetTomorrowGuPageResponses, type GetTomorrowPageData, type GetTomorrowPageError, type GetTomorrowPageErrors, type GetTomorrowPageResponse, type GetTomorrowPageResponses, type GetWatchSummaryData, type GetWatchSummaryError, type GetWatchSummaryErrors, type GetWatchSummaryResponse, type GetWatchSummaryResponses, type GetWeatherNowData, type GetWeatherNowError, type GetWeatherNowErrors, type GetWeatherNowResponse, type GetWeatherNowResponses, type GetWeatherTodayData, type GetWeatherTodayError, type GetWeatherTodayErrors, type GetWeatherTodayResponse, type GetWeatherTodayResponses, type GetWeekData, type GetWeekError, type GetWeekErrors, type GetWeekRankingData, type GetWeekRankingResponse, type GetWeekRankingResponses, type GetWeekResponse, type GetWeekResponses, type GoogleLoginData, type GoogleLoginError, type GoogleLoginErrors, type GoogleLoginResponse, type GoogleLoginResponses, type HealthzHealthzGetData, type HealthzHealthzGetResponse, type HealthzHealthzGetResponses, type Hero, type HeroStat, type HeroTomorrow, type HourCell, type HoursSlide, type HttpValidationError, type ImageSlide, IndexCategory, type IndexSummary, type LikeCommentData, type LikeCommentError, type LikeCommentErrors, type LikeCommentResponse, type LikeCommentResponses, type LikePostData, type LikePostError, type LikePostErrors, type LikePostResponse, type LikePostResponses, type LikeTalkData, type LikeTalkError, type LikeTalkErrors, type LikeTalkResponse, type LikeTalkResponses, type ListArticlesData, type ListArticlesError, type ListArticlesErrors, type ListArticlesResponse, type ListArticlesResponses, type ListCardsData, type ListCardsError, type ListCardsErrors, type ListCardsResponse, type ListCardsResponses, type ListCommentsData, type ListCommentsError, type ListCommentsErrors, type ListCommentsResponse, type ListCommentsResponses, type ListEventsData, type ListEventsError, type ListEventsErrors, type ListEventsResponse, type ListEventsResponses, type ListIndicesData, type ListIndicesError, type ListIndicesErrors, type ListIndicesResponse, type ListIndicesResponses, type ListMyGakData, type ListMyGakError, type ListMyGakErrors, type ListMyGakResponse, type ListMyGakResponses, type ListMyTalksData, type ListMyTalksError, type ListMyTalksErrors, type ListMyTalksResponse, type ListMyTalksResponses, type ListPlacesData, type ListPlacesError, type ListPlacesErrors, type ListPlacesResponse, type ListPlacesResponses, type ListPresetsData, type ListPresetsResponse, type ListPresetsResponses, type ListRegionsData, type ListRegionsError, type ListRegionsErrors, type ListRegionsResponse, type ListRegionsResponses, type ListSavedData, type ListSavedError, type ListSavedErrors, type ListSavedResponse, type ListSavedResponses, type ListTalksData, type ListTalksError, type ListTalksErrors, type ListTalksResponse, type ListTalksResponses, type LoginData, type LoginError, type LoginErrors, type LoginResponse, type LoginResponses, type LogoutData, type LogoutError, type LogoutErrors, type LogoutResponse, type LogoutResponses, type Me, type MeData, type MeError, type MeErrors, type MeResponse, type MeResponses, type MyGakData, type MyGakPreset, type MyGakRule, type MyGakScore, type NearestRegionData, type NearestRegionError, type NearestRegionErrors, type NearestRegionResponse, type NearestRegionResponses, type PlaceData, type PlanSlide, type PlanSpot, type PlanStep, type PostData, type PostReaction, PostType, type PublishCardData, type PublishCardError, type PublishCardErrors, type PublishCardResponse, type PublishCardResponses, type Rain2h, type RainHourData, RainType, type RankData, type RefreshData, type RefreshError, type RefreshErrors, type RefreshResponse, type RefreshResponses, type RegionData, type RejectCardData, type RejectCardError, type RejectCardErrors, type RejectCardResponse, type RejectCardResponses, type ReportTalkData, type ReportTalkError, type ReportTalkErrors, type ReportTalkResponse, type ReportTalkResponses, type ReqCardCreate, type ReqComment, type ReqGoogle, type ReqLogin, type ReqMyGak, type ReqMyGakScore, type ReqRefresh, type ReqSignup, type ReqTalk, type ReqTalkReport, type ReqUpdateMe, type ResArticle, type ResArticleList, type ResAuth, type ResAuthConfig, type ResCard, type ResCardList, type ResComment, type ResCommentLike, type ResCommentList, type ResEventList, type ResFeed, type ResHealth, type ResIndexDetail, type ResIndexList, type ResLogout, type ResMe, type ResMyGak, type ResMyGakList, type ResMyGakPresets, type ResMyGakScore, type ResPlaceList, type ResPost, type ResPostLike, type ResPostSave, type ResRegion, type ResRegionList, type ResSavedList, type ResSeasonWeek, type ResSky, type ResSkyRanking, type ResTalk, type ResTalkGroups, type ResTalkImage, type ResTalkLike, type ResTalkList, type ResWatchSummary, type ResWeatherNow, type ResWeatherToday, type ResWebPacketProtocol, type ResWeek, type ResWeekRanking, type Row, type RowsSlide, type SavedPost, type SavePostData, type SavePostError, type SavePostErrors, type SavePostResponse, type SavePostResponses, type ScoreBand, type ScoreMyGakData, type ScoreMyGakError, type ScoreMyGakErrors, type ScoreMyGakResponse, type ScoreMyGakResponses, type SignupData, type SignupError, type SignupErrors, type SignupResponse, type SignupResponses, Sky, SkyGrade, type SkyPlanData, type SkyScoreData, SkySituation, SkyType, type SlotPoint, SlotTone, type SpotData, type SunsetSlide, type TalkData, type TalkGroup, type TalkGroupsData, type TalkGroupsError, type TalkGroupsErrors, type TalkGroupsResponse, type TalkGroupsResponses, TalkReport, TalkTopic, type TermData, type Tomorrow, type TopIndex, type TrendPoint, type UnlikeCommentData, type UnlikeCommentError, type UnlikeCommentErrors, type UnlikeCommentResponse, type UnlikeCommentResponses, type UnlikePostData, type UnlikePostError, type UnlikePostErrors, type UnlikePostResponse, type UnlikePostResponses, type UnlikeTalkData, type UnlikeTalkError, type UnlikeTalkErrors, type UnlikeTalkResponse, type UnlikeTalkResponses, type UnsavePostData, type UnsavePostError, type UnsavePostErrors, type UnsavePostResponse, type UnsavePostResponses, type UpdateMeData, type UpdateMeError, type UpdateMeErrors, type UpdateMeResponse, type UpdateMeResponses, type UploadTalkImageData, type UploadTalkImageError, type UploadTalkImageErrors, type UploadTalkImageResponse, type UploadTalkImageResponses, type ValidationError, type WarningData, WarningLevel, WarningType, type WatchEvent, type WatchNow, type WatchSlot, type WatchSunset, type WatchTimeline, type WeatherSlot, type WeatherWhy, type WeekDay, type WeekGak, type WeekRankDay, type WeekRankItem, type WeekSlide } from './types.gen'; diff --git a/admin/src/api/client/sdk.gen.ts b/admin/src/api/client/sdk.gen.ts new file mode 100644 index 0000000..a97b31e --- /dev/null +++ b/admin/src/api/client/sdk.gen.ts @@ -0,0 +1,419 @@ +// This file is auto-generated by @hey-api/openapi-ts + +import { type Client, type ClientMeta, formDataBodySerializer, type Options as Options2, type RequestResult, type TDataShape } from './client'; +import { client } from './client.gen'; +import type { AddCommentData, AddCommentErrors, AddCommentResponses, AddMyGakData, AddMyGakErrors, AddMyGakResponses, AddTalkData, AddTalkErrors, AddTalkResponses, AuthConfigData, AuthConfigResponses, BlockTalkAuthorData, BlockTalkAuthorErrors, BlockTalkAuthorResponses, CreateCardData, CreateCardErrors, CreateCardResponses, DeleteCommentData, DeleteCommentErrors, DeleteCommentResponses, DeleteMyGakData, DeleteMyGakErrors, DeleteMyGakResponses, DeleteTalkData, DeleteTalkErrors, DeleteTalkResponses, GetArticleData, GetArticleErrors, GetArticleResponses, GetCardImageData, GetCardImageErrors, GetCardImageResponses, GetFeedData, GetFeedErrors, GetFeedResponses, GetImageData, GetImageErrors, GetImageResponses, GetIndexData, GetIndexErrors, GetIndexResponses, GetPostData, GetPostErrors, GetPostResponses, GetSeasonWeekData, GetSeasonWeekResponses, GetSkyData, GetSkyErrors, GetSkyRankingData, GetSkyRankingResponses, GetSkyResponses, GetTalkImageData, GetTalkImageErrors, GetTalkImageResponses, GetTodayGuPageData, GetTodayGuPageErrors, GetTodayGuPageResponses, GetTodayPageData, GetTodayPageErrors, GetTodayPageResponses, GetTomorrowGuPageData, GetTomorrowGuPageErrors, GetTomorrowGuPageResponses, GetTomorrowPageData, GetTomorrowPageErrors, GetTomorrowPageResponses, GetWatchSummaryData, GetWatchSummaryErrors, GetWatchSummaryResponses, GetWeatherNowData, GetWeatherNowErrors, GetWeatherNowResponses, GetWeatherTodayData, GetWeatherTodayErrors, GetWeatherTodayResponses, GetWeekData, GetWeekErrors, GetWeekRankingData, GetWeekRankingResponses, GetWeekResponses, GoogleLoginData, GoogleLoginErrors, GoogleLoginResponses, HealthzHealthzGetData, HealthzHealthzGetResponses, LikeCommentData, LikeCommentErrors, LikeCommentResponses, LikePostData, LikePostErrors, LikePostResponses, LikeTalkData, LikeTalkErrors, LikeTalkResponses, ListArticlesData, ListArticlesErrors, ListArticlesResponses, ListCardsData, ListCardsErrors, ListCardsResponses, ListCommentsData, ListCommentsErrors, ListCommentsResponses, ListEventsData, ListEventsErrors, ListEventsResponses, ListIndicesData, ListIndicesErrors, ListIndicesResponses, ListMyGakData, ListMyGakErrors, ListMyGakResponses, ListMyTalksData, ListMyTalksErrors, ListMyTalksResponses, ListPlacesData, ListPlacesErrors, ListPlacesResponses, ListPresetsData, ListPresetsResponses, ListRegionsData, ListRegionsErrors, ListRegionsResponses, ListSavedData, ListSavedErrors, ListSavedResponses, ListTalksData, ListTalksErrors, ListTalksResponses, LoginData, LoginErrors, LoginResponses, LogoutData, LogoutErrors, LogoutResponses, MeData, MeErrors, MeResponses, NearestRegionData, NearestRegionErrors, NearestRegionResponses, PublishCardData, PublishCardErrors, PublishCardResponses, RefreshData, RefreshErrors, RefreshResponses, RejectCardData, RejectCardErrors, RejectCardResponses, ReportTalkData, ReportTalkErrors, ReportTalkResponses, SavePostData, SavePostErrors, SavePostResponses, ScoreMyGakData, ScoreMyGakErrors, ScoreMyGakResponses, SignupData, SignupErrors, SignupResponses, TalkGroupsData, TalkGroupsErrors, TalkGroupsResponses, UnlikeCommentData, UnlikeCommentErrors, UnlikeCommentResponses, UnlikePostData, UnlikePostErrors, UnlikePostResponses, UnlikeTalkData, UnlikeTalkErrors, UnlikeTalkResponses, UnsavePostData, UnsavePostErrors, UnsavePostResponses, UpdateMeData, UpdateMeErrors, UpdateMeResponses, UploadTalkImageData, UploadTalkImageErrors, UploadTalkImageResponses } from './types.gen'; + +export type Options = Options2 & { + /** + * You can provide a client instance returned by `createClient()` instead of + * individual options. This might be also useful if you want to implement a + * custom client. + */ + client?: Client; + /** + * You can pass arbitrary values through the `meta` object. This can be + * used to access values that aren't defined as part of the SDK function. + */ + meta?: keyof ClientMeta extends never ? Record : ClientMeta; +}; + +/** + * 구 목록 + */ +export const listRegions = (options?: Options): RequestResult => (options?.client ?? client).get({ url: '/v1/region/list', ...options }); + +/** + * 위치에서 가장 가까운 구 + */ +export const nearestRegion = (options: Options): RequestResult => (options.client ?? client).get({ url: '/v1/region/nearest', ...options }); + +/** + * 오늘(또는 내일) 3시간 칸 날씨 + */ +export const getWeatherToday = (options: Options): RequestResult => (options.client ?? client).get({ url: '/v1/weather/today', ...options }); + +/** + * 지금 비 올까: 2시간 비, 내일 출퇴근, 미세먼지, 특보 + */ +export const getWeatherNow = (options: Options): RequestResult => (options.client ?? client).get({ url: '/v1/weather/now', ...options }); + +/** + * 노을 결론(나가 볼 만한지·왜·언제 어디로), 시간표, 앞으로 3일, 가까운 명소 + */ +export const getSky = (options: Options): RequestResult => (options.client ?? client).get({ url: '/v1/sky', ...options }); + +/** + * 전국 노을 순위 (대표 30곳) + */ +export const getSkyRanking = (options?: Options): RequestResult => (options?.client ?? client).get({ url: '/v1/sky/ranking', ...options }); + +/** + * 지수 목록 (지금 구간 점수순, 1~3위, 지금 날씨 점수) + */ +export const listIndices = (options: Options): RequestResult => (options.client ?? client).get({ url: '/v1/index/list', ...options }); + +/** + * 지수 계산 근거 + */ +export const getIndex = (options: Options): RequestResult => (options.client ?? client).get({ url: '/v1/index/{index_id}', ...options }); + +/** + * 7일 날씨와 그날 추천 + */ +export const getWeek = (options: Options): RequestResult => (options.client ?? client).get({ url: '/v1/week', ...options }); + +/** + * 이번 주말 전국 나들이 날씨 순위 (대표 30곳) + */ +export const getWeekRanking = (options?: Options): RequestResult => (options?.client ?? client).get({ url: '/v1/week/ranking', ...options }); + +/** + * 날씨 맞춤 데이트 명소 (구 중심 30km 안, 없으면 가장 가까운 곳) + */ +export const listPlaces = (options: Options): RequestResult => (options.client ?? client).get({ url: '/v1/week/place/list', ...options }); + +/** + * 앞으로 30일 축제·행사 + */ +export const listEvents = (options: Options): RequestResult => (options.client ?? client).get({ url: '/v1/week/event/list', ...options }); + +/** + * 이번 주 계절 책: 시, 절기, 계절 소식 + */ +export const getSeasonWeek = (options?: Options): RequestResult => (options?.client ?? client).get({ url: '/v1/season/week', ...options }); + +/** + * 읽을거리 목록 + */ +export const listArticles = (options?: Options): RequestResult => (options?.client ?? client).get({ url: '/v1/season/article/list', ...options }); + +/** + * 읽을거리 본문 + */ +export const getArticle = (options: Options): RequestResult => (options.client ?? client).get({ url: '/v1/season/article/{article_id}', ...options }); + +/** + * 메인 피드: 하늘 영역, 오늘의 각, 오늘 포스트 전부, 띠 + */ +export const getFeed = (options: Options): RequestResult => (options.client ?? client).get({ url: '/v1/feed', ...options }); + +/** + * 포스트 하나 (공유 링크로 들어왔을 때) + */ +export const getPost = (options: Options): RequestResult => (options.client ?? client).get({ url: '/v1/feed/post/{post_id}', ...options }); + +/** + * 회원가입 (아이디 영문 소문자·숫자·_ 4~20자, 비밀번호 8자 이상, 닉네임 2~12자) + */ +export const signup = (options: Options): RequestResult => (options.client ?? client).post({ + url: '/v1/auth/signup', + ...options, + headers: { + 'Content-Type': 'application/json', + ...options.headers + } +}); + +/** + * 로그인 + */ +export const login = (options: Options): RequestResult => (options.client ?? client).post({ + url: '/v1/auth/login', + ...options, + headers: { + 'Content-Type': 'application/json', + ...options.headers + } +}); + +/** + * 구글 로그인 (처음이면 자동 닉네임으로 가입) + */ +export const googleLogin = (options: Options): RequestResult => (options.client ?? client).post({ + url: '/v1/auth/google', + ...options, + headers: { + 'Content-Type': 'application/json', + ...options.headers + } +}); + +/** + * 로그인 화면 설정 (구글 클라이언트 ID) + */ +export const authConfig = (options?: Options): RequestResult => (options?.client ?? client).get({ url: '/v1/auth/config', ...options }); + +/** + * 토큰 재발급 + */ +export const refresh = (options: Options): RequestResult => (options.client ?? client).post({ + url: '/v1/auth/refresh', + ...options, + headers: { + 'Content-Type': 'application/json', + ...options.headers + } +}); + +/** + * 로그아웃 (모든 기기의 토큰 무효) + */ +export const logout = (options?: Options): RequestResult => (options?.client ?? client).post({ url: '/v1/auth/logout', ...options }); + +/** + * 내 정보 + */ +export const me = (options?: Options): RequestResult => (options?.client ?? client).get({ url: '/v1/auth/me', ...options }); + +/** + * 내 정보 바꾸기 (닉네임 2~12자, 캐릭터 rabbit·bear·dog·sun·moon·cloud, 배경색 orange·blue·green·purple·pink·brown, 기분 clear·partly·cloudy·rain·thunder·snow·fog·rainbow, 빈 문자열이면 지움) + */ +export const updateMe = (options: Options): RequestResult => (options.client ?? client).patch({ + url: '/v1/auth/me', + ...options, + headers: { + 'Content-Type': 'application/json', + ...options.headers + } +}); + +/** + * 좋아요 취소 + */ +export const unlikePost = (options: Options): RequestResult => (options.client ?? client).delete({ url: '/v1/reaction/post/{post_id}/like', ...options }); + +/** + * 좋아요 (로그인 없으면 IP 당 한 번) + */ +export const likePost = (options: Options): RequestResult => (options.client ?? client).post({ url: '/v1/reaction/post/{post_id}/like', ...options }); + +/** + * 저장 취소 + */ +export const unsavePost = (options: Options): RequestResult => (options.client ?? client).delete({ url: '/v1/reaction/post/{post_id}/save', ...options }); + +/** + * 저장 + */ +export const savePost = (options: Options): RequestResult => (options.client ?? client).post({ url: '/v1/reaction/post/{post_id}/save', ...options }); + +/** + * 내가 저장한 포스트 + */ +export const listSaved = (options?: Options): RequestResult => (options?.client ?? client).get({ url: '/v1/reaction/save/list', ...options }); + +/** + * 댓글 목록 (로그인 없이 보기) + */ +export const listComments = (options: Options): RequestResult => (options.client ?? client).get({ url: '/v1/reaction/post/{post_id}/comment/list', ...options }); + +/** + * 댓글 쓰기 (60자, 로그인 없으면 '동네 익명'으로 IP 당 하루 20개) + */ +export const addComment = (options: Options): RequestResult => (options.client ?? client).post({ + url: '/v1/reaction/post/{post_id}/comment', + ...options, + headers: { + 'Content-Type': 'application/json', + ...options.headers + } +}); + +/** + * 내 댓글 지우기 (로그인 없이 쓴 댓글은 같은 IP 에서) + */ +export const deleteComment = (options: Options): RequestResult => (options.client ?? client).delete({ url: '/v1/reaction/comment/{comment_id}', ...options }); + +/** + * 댓글 좋아요 취소 + */ +export const unlikeComment = (options: Options): RequestResult => (options.client ?? client).delete({ url: '/v1/reaction/comment/{comment_id}/like', ...options }); + +/** + * 댓글 좋아요 (로그인 없으면 IP 당 한 번) + */ +export const likeComment = (options: Options): RequestResult => (options.client ?? client).post({ url: '/v1/reaction/comment/{comment_id}/like', ...options }); + +/** + * 내 각 목록 (로그인하지 않았으면 빈 목록) + */ +export const listMyGak = (options?: Options): RequestResult => (options?.client ?? client).get({ url: '/v1/my-gak', ...options }); + +/** + * 이름과 날씨 조건으로 내 각 만들기 + */ +export const addMyGak = (options: Options): RequestResult => (options.client ?? client).post({ + url: '/v1/my-gak', + ...options, + headers: { + 'Content-Type': 'application/json', + ...options.headers + } +}); + +/** + * 공식 각을 내 각 조건으로 옮긴 목록 (내 각 만들기에서 골라 채우기) + */ +export const listPresets = (options?: Options): RequestResult => (options?.client ?? client).get({ url: '/v1/my-gak/presets', ...options }); + +/** + * 조건들의 그 동네 오늘 점수 (로그인 없이, 받은 링크의 각도) + */ +export const scoreMyGak = (options: Options): RequestResult => (options.client ?? client).post({ + url: '/v1/my-gak/score', + ...options, + headers: { + 'Content-Type': 'application/json', + ...options.headers + } +}); + +/** + * 내 각 지우기 + */ +export const deleteMyGak = (options: Options): RequestResult => (options.client ?? client).delete({ url: '/v1/my-gak/{my_gak_id}', ...options }); + +/** + * 오늘 피드 묶음 (동네 사람들 + 주제별, 가까운 동네·덜 지난 글 먼저, 한 사람 한 장) + */ +export const talkGroups = (options?: Options): RequestResult => (options?.client ?? client).get({ url: '/v1/talk/groups', ...options }); + +/** + * 동네 이야기 (전국 최신순, 보는 동네와 같은 시도 글은 앞으로, 같은 사람 글은 띄움, 로그인 없이 보기) + */ +export const listTalks = (options?: Options): RequestResult => (options?.client ?? client).get({ url: '/v1/talk/list', ...options }); + +/** + * 내가 쓴 글 (최신순) + */ +export const listMyTalks = (options?: Options): RequestResult => (options?.client ?? client).get({ url: '/v1/talk/mine', ...options }); + +/** + * 동네 이야기 쓰기 (링크·전화번호 불가, 하루 5개) + */ +export const addTalk = (options: Options): RequestResult => (options.client ?? client).post({ + url: '/v1/talk', + ...options, + headers: { + 'Content-Type': 'application/json', + ...options.headers + } +}); + +/** + * 글에 붙일 사진 올리기 (10MB까지, 위치 정보를 지우고 1080px로 줄여 저장) + */ +export const uploadTalkImage = (options: Options): RequestResult => (options.client ?? client).post({ + ...formDataBodySerializer, + url: '/v1/talk/image', + ...options, + headers: { + 'Content-Type': null, + ...options.headers + } +}); + +/** + * 올린 사진 + */ +export const getTalkImage = (options: Options): RequestResult => (options.client ?? client).get({ url: '/v1/talk/image/{name}', ...options }); + +/** + * 내 이야기 지우기 + */ +export const deleteTalk = (options: Options): RequestResult => (options.client ?? client).delete({ url: '/v1/talk/{talk_id}', ...options }); + +/** + * 이야기 좋아요 취소 + */ +export const unlikeTalk = (options: Options): RequestResult => (options.client ?? client).delete({ url: '/v1/talk/{talk_id}/like', ...options }); + +/** + * 이야기 좋아요 (로그인 없으면 IP 당 한 번) + */ +export const likeTalk = (options: Options): RequestResult => (options.client ?? client).post({ url: '/v1/talk/{talk_id}/like', ...options }); + +/** + * 이야기 신고 (서로 다른 3명이면 숨김) + */ +export const reportTalk = (options: Options): RequestResult => (options.client ?? client).post({ + url: '/v1/talk/{talk_id}/report', + ...options, + headers: { + 'Content-Type': 'application/json', + ...options.headers + } +}); + +/** + * 이 글 쓴 사람의 글 안 보기 + */ +export const blockTalkAuthor = (options: Options): RequestResult => (options.client ?? client).post({ url: '/v1/talk/{talk_id}/block', ...options }); + +/** + * 워치 한 번에: 지금 날씨, 각 1~7위·내 각, 노을, 남은 3시간 칸, 컴플리케이션 시간표 + */ +export const getWatchSummary = (options: Options): RequestResult => (options.client ?? client).get({ url: '/v1/watch/summary', ...options }); + +/** + * 행사 사진 대신 받기 (공유 이미지용, 허용한 호스트만) + */ +export const getImage = (options: Options): RequestResult => (options.client ?? client).get({ url: '/v1/image', ...options }); + +/** + * 지역 검색 페이지: 정적 HTML 에 오늘 날씨·각을 채워 돌려준다 (nginx 가 /today/... 를 넘김) + */ +export const getTodayPage = (options: Options): RequestResult => (options.client ?? client).get({ url: '/v1/seo/today/{sido}/{place}', ...options }); + +/** + * 구로 나뉜 시의 구 페이지 (/today/gyeonggi/seongnam/bundang) + */ +export const getTodayGuPage = (options: Options): RequestResult => (options.client ?? client).get({ url: '/v1/seo/today/{sido}/{place}/{gu}', ...options }); + +/** + * 지역 내일 날씨 페이지: 정적 HTML 에 내일 예보를 채운다 (nginx 가 /tomorrow/... 를 넘김) + */ +export const getTomorrowPage = (options: Options): RequestResult => (options.client ?? client).get({ url: '/v1/seo/tomorrow/{sido}/{place}', ...options }); + +/** + * 구로 나뉜 시의 구 내일 날씨 페이지 + */ +export const getTomorrowGuPage = (options: Options): RequestResult => (options.client ?? client).get({ url: '/v1/seo/tomorrow/{sido}/{place}/{gu}', ...options }); + +/** + * 만든 카드뉴스 목록 (관리자). 다시 내려받거나 올릴 때 + */ +export const listCards = (options?: Options): RequestResult => (options?.client ?? client).get({ url: '/v1/card', ...options }); + +/** + * 카드뉴스 저장 (관리자). publish 면 바로 그날 피드에 올린다 + */ +export const createCard = (options: Options): RequestResult => (options.client ?? client).post({ + url: '/v1/card', + ...options, + headers: { + 'Content-Type': 'application/json', + ...options.headers + } +}); + +/** + * 승인 대기 카드뉴스를 그날 피드에 올리기 (관리자) + */ +export const publishCard = (options: Options): RequestResult => (options.client ?? client).post({ url: '/v1/card/{card_id}/publish', ...options }); + +/** + * 승인 대기 카드뉴스 반려 (관리자) + */ +export const rejectCard = (options: Options): RequestResult => (options.client ?? client).post({ url: '/v1/card/{card_id}/reject', ...options }); + +/** + * 카드뉴스 이미지 + */ +export const getCardImage = (options: Options): RequestResult => (options.client ?? client).get({ url: '/v1/card/{card_id}/{seq}.jpg', ...options }); + +/** + * 헬스체크 + */ +export const healthzHealthzGet = (options?: Options): RequestResult => (options?.client ?? client).get({ url: '/healthz', ...options }); diff --git a/admin/src/api/client/types.gen.ts b/admin/src/api/client/types.gen.ts new file mode 100644 index 0000000..028c79b --- /dev/null +++ b/admin/src/api/client/types.gen.ts @@ -0,0 +1,5772 @@ +// This file is auto-generated by @hey-api/openapi-ts + +export type ClientOptions = { + baseUrl: `${string}://${string}` | (string & {}); +}; + +/** + * AirData + */ +export type AirData = { + /** + * Station Name + */ + station_name: string; + /** + * Pm25 + */ + pm25?: number | null; + /** + * Pm10 + */ + pm10?: number | null; + grade?: AirGrade | null; + /** + * Measured At + */ + measured_at: string; + /** + * Text + */ + text?: string | null; +}; + +/** + * AirGrade + */ +export const AirGrade = { + /** + * GOOD + */ + GOOD: 1, + /** + * NORMAL + */ + NORMAL: 2, + /** + * BAD + */ + BAD: 3, + /** + * VERY_BAD + */ + VERY_BAD: 4 +} as const; + +/** + * AirGrade + */ +export type AirGrade = typeof AirGrade[keyof typeof AirGrade]; + +/** + * ArticleCategory + */ +export const ArticleCategory = { + /** + * SEASON + */ + SEASON: 1, + /** + * TIP + */ + TIP: 2, + /** + * GAK + */ + GAK: 3, + /** + * QUOTE + */ + QUOTE: 4 +} as const; + +/** + * ArticleCategory + */ +export type ArticleCategory = typeof ArticleCategory[keyof typeof ArticleCategory]; + +/** + * ArticleSummary + */ +export type ArticleSummary = { + /** + * Article Id + */ + article_id: number; + /** + * Code + */ + code: string; + category: ArticleCategory; + /** + * Title + */ + title: string; + /** + * Read Minutes + */ + read_minutes: number; + /** + * Icon + */ + icon: string; + /** + * Image + */ + image?: string | null; + /** + * Image Credit + */ + image_credit?: string | null; +}; + +/** + * AuthProvider + */ +export const AuthProvider = { /** + * LOCAL + */ + LOCAL: 1, /** + * GOOGLE + */ + GOOGLE: 2 } as const; + +/** + * AuthProvider + */ +export type AuthProvider = typeof AuthProvider[keyof typeof AuthProvider]; + +/** + * BandArticle + */ +export type BandArticle = { + /** + * Article Id + */ + article_id: number; + /** + * Title + */ + title: string; + /** + * Meta + */ + meta: string; + /** + * Icon + */ + icon: string; + /** + * Image + */ + image?: string | null; + /** + * Image Credit + */ + image_credit?: string | null; +}; + +/** + * BandEvent + */ +export type BandEvent = { + /** + * Event Id + */ + event_id: number; + /** + * Name + */ + name: string; + /** + * Status Label + */ + status_label: string; + /** + * Icon + */ + icon: string; + /** + * Image + */ + image?: string | null; + /** + * Image Credit + */ + image_credit?: string | null; +}; + +/** + * Bands + */ +export type Bands = { + /** + * Events + */ + events?: Array; + /** + * Top5 + */ + top5?: Array; + /** + * Season + */ + season?: Array; +}; + +/** + * BestTime + */ +export type BestTime = { + /** + * At + */ + at: string; + /** + * Kind + */ + kind: string; + /** + * Label + */ + label: string; + /** + * End + * + * 구간이면 끝 시각 (골든아워·블루아워) + */ + end?: string | null; +}; + +/** + * Body_upload_talk_image_v1_talk_image_post + */ +export type BodyUploadTalkImageV1TalkImagePost = { + /** + * File + */ + file: Blob | File; +}; + +/** + * CardItem + */ +export type CardItem = { + /** + * Card Id + */ + card_id: number; + /** + * Template + */ + template: string; + /** + * Topic + */ + topic?: string | null; + /** + * Title + */ + title: string; + status: CardStatus; + /** + * Post Id + */ + post_id?: number | null; + /** + * Created At + */ + created_at: string; + /** + * Published At + */ + published_at?: string | null; + /** + * Image Urls + */ + image_urls?: Array; +}; + +/** + * CardStatus + */ +export const CardStatus = { + /** + * WAITING + */ + WAITING: 1, + /** + * PUBLISHED + */ + PUBLISHED: 2, + /** + * REJECTED + */ + REJECTED: 3 +} as const; + +/** + * CardStatus + */ +export type CardStatus = typeof CardStatus[keyof typeof CardStatus]; + +/** + * CommentData + */ +export type CommentData = { + /** + * Comment Id + */ + comment_id: number; + /** + * Nickname + */ + nickname: string; + /** + * Character + */ + character: string; + /** + * Color + */ + color: string; + /** + * Mood + */ + mood?: string | null; + /** + * Body + */ + body: string; + /** + * Like Count + */ + like_count: number; + /** + * Liked + */ + liked: boolean; + /** + * Mine + */ + mine: boolean; + /** + * Created At + */ + created_at: string; +}; + +/** + * CommuteData + */ +export type CommuteData = { + /** + * Label + */ + label: string; + /** + * At + */ + at: string; + /** + * Icon + */ + icon: string; + /** + * Temp C + */ + temp_c?: number | null; + /** + * Text + */ + text: string; +}; + +/** + * Confidence + */ +export const Confidence = { + /** + * HIGH + */ + HIGH: 1, + /** + * NORMAL + */ + NORMAL: 2, + /** + * LOW + */ + LOW: 3 +} as const; + +/** + * Confidence + */ +export type Confidence = typeof Confidence[keyof typeof Confidence]; + +/** + * Cut + */ +export type Cut = { + /** + * At + */ + at: string; + /** + * Kind + */ + kind: string; + /** + * Label + */ + label: string; +}; + +/** + * DayData + */ +export type DayData = { + /** + * Day + */ + day: string; + /** + * Weekday + */ + weekday: string; + /** + * Holiday + */ + holiday?: string | null; + /** + * Icon + */ + icon: string; + /** + * Temp Min C + */ + temp_min_c?: number | null; + /** + * Temp Max C + */ + temp_max_c?: number | null; + /** + * Headline + */ + headline: string; + /** + * Summary + */ + summary: string; + /** + * Pick + */ + pick: string; + /** + * Rain Hours + */ + rain_hours?: Array | null; + /** + * Is Rainy + */ + is_rainy: boolean; +}; + +/** + * ErrorInfo + */ +export type ErrorInfo = { + /** + * Success + */ + success?: boolean; + /** + * Code + */ + code?: number; + /** + * Desc + */ + desc?: string; +}; + +/** + * EventData + */ +export type EventData = { + /** + * Event Id + */ + event_id: number; + /** + * Name + */ + name: string; + /** + * Place Name + */ + place_name: string; + /** + * Icon + */ + icon: string; + /** + * Start Date + */ + start_date: string; + /** + * End Date + */ + end_date: string; + /** + * Is Confirmed + */ + is_confirmed: boolean; + /** + * Status + */ + status: string; + /** + * Status Label + */ + status_label: string; + /** + * Fit + */ + fit?: string | null; + /** + * Image + */ + image?: string | null; + /** + * Image Credit + */ + image_credit?: string | null; +}; + +/** + * Factor + */ +export type Factor = { + /** + * Axis + */ + axis: string; + /** + * Label + */ + label: string; + /** + * Value + */ + value: number; + /** + * Weight + */ + weight: number; + /** + * Note + */ + note: string; +}; + +/** + * GakSlide + */ +export type GakSlide = { + /** + * Kind + */ + kind: 'gak'; + /** + * Index Id + */ + index_id: number; + /** + * Code + */ + code: string; + /** + * Name + */ + name: string; + /** + * Rank + */ + rank: number; + /** + * Score + */ + score: number; + /** + * Line + */ + line: string; + /** + * Summary + */ + summary: string; + /** + * Rows + * + * 점수 근거: 비중 큰 날씨 조건부터 네 개와 지금 값 (기온 · 체감 18°) + */ + rows?: Array; + /** + * Say + * + * 점수 구간 설명 문장 (seed sentences) + */ + say?: string | null; +}; + +/** + * HTTPValidationError + */ +export type HttpValidationError = { + /** + * Detail + */ + detail?: Array; +}; + +/** + * Hero + */ +export type Hero = { + /** + * Now At + */ + now_at: string; + /** + * Sky Mode + */ + sky_mode: 'morning' | 'day' | 'sunset' | 'night'; + /** + * Temp C + */ + temp_c?: number | null; + /** + * Feels C + */ + feels_c?: number | null; + /** + * Humidity + * + * 지금 습도 %. 히어로에 늘 보인다 + */ + humidity?: number | null; + /** + * Discomfort + * + * 지금 불쾌지수. 히어로에 늘 보인다 + */ + discomfort?: number | null; + /** + * Discomfort Label + */ + discomfort_label?: string | null; + /** + * Rain 2H Text + */ + rain_2h_text?: string | null; + /** + * Will Rain 2H + */ + will_rain_2h?: boolean | null; + /** + * Weather Score + */ + weather_score?: number | null; + /** + * Weather Slots + * + * 오늘 구간별 날씨 점수 {morning·day·evening·night: 점수} + */ + weather_slots?: { + [key: string]: number; + }; + /** + * Weather Why + * + * 구간별 날씨 점수 근거(조건·비중·조건 점수·지금 값). 키는 weather_slots 와 같다 + */ + weather_why?: { + [key: string]: Array; + }; + top1?: TopIndex | null; + /** + * Bubble + */ + bubble?: string | null; + /** + * Moon Name + * + * 오늘 밤 달 모양: 삭·초승달·상현달·차오르는 달·보름달·기우는 달·하현달·그믐달 + */ + moon_name?: string | null; + /** + * Moon Pct + * + * 달에서 빛나는 면의 비율 0~100 (모양 그림용, 밝기 아님) + */ + moon_pct?: number | null; + /** + * Stats + * + * 히어로 상황 칸 1개. 지금 챙길 것(비·미세먼지·자외선·일교차·체감) 먼저 + */ + stats?: Array; + /** + * Status + * + * 히어로 상태 한 줄: 습도·불쾌지수·자외선(밤 구간 빼고)·미세먼지 단계 이름. tone=warn 이면 조심(앱이 주황 글자로) + */ + status?: Array; + tomorrow?: HeroTomorrow | null; +}; + +/** + * HeroStat + */ +export type HeroStat = { + /** + * Icon + */ + icon: string; + /** + * Label + */ + label: string; + /** + * Value + */ + value: string; + /** + * Tone + * + * normal=기본, warn=조심(노랑), rain=비(파랑) + */ + tone: 'normal' | 'warn' | 'rain'; + /** + * Detail + * + * 단계 이름 밑의 실제 값 (예: 68%, 72, 2, 초미세먼지 15㎍/㎥). 상태 줄에만 + */ + detail?: string | null; +}; + +/** + * HeroTomorrow + * + * 히어로 '내일' 스위치. 3시간 칸 날씨는 /v1/weather/today?day=tomorrow 로 따로 받는다. + */ +export type HeroTomorrow = { + /** + * Day + */ + day: string; + /** + * Weather Slots + * + * 내일 구간별 날씨 점수 {morning·day·evening·night: 점수} + */ + weather_slots?: { + [key: string]: number; + }; + /** + * Weather Why + * + * 내일 구간별 날씨 점수 근거 + */ + weather_why?: { + [key: string]: Array; + }; + /** + * 내일 하루 점수로 1위인 각. score·summary 는 내일 값 + */ + top1?: TopIndex | null; +}; + +/** + * HourCell + */ +export type HourCell = { + /** + * Label + */ + label: string; + /** + * Icon + */ + icon: string; + /** + * Temp C + */ + temp_c?: number | null; + tone: SlotTone; +}; + +/** + * HoursSlide + */ +export type HoursSlide = { + /** + * Kind + */ + kind: 'hours'; + /** + * Eyebrow + */ + eyebrow: string; + /** + * Line + */ + line: string; + /** + * Hours + */ + hours: Array; +}; + +/** + * ImageSlide + * + * 카드뉴스 한 장 (1080×1350 JPEG). url 은 같은 서버의 /v1/card/... 경로. + */ +export type ImageSlide = { + /** + * Kind + */ + kind: 'image'; + /** + * Url + */ + url: string; + /** + * Alt + */ + alt?: string; +}; + +/** + * IndexCategory + */ +export const IndexCategory = { + /** + * OUTSIDE + */ + OUTSIDE: 1, + /** + * FOOD + */ + FOOD: 2, + /** + * HOME + */ + HOME: 3, + /** + * LIFE + */ + LIFE: 4 +} as const; + +/** + * IndexCategory + */ +export type IndexCategory = typeof IndexCategory[keyof typeof IndexCategory]; + +/** + * IndexSummary + */ +export type IndexSummary = { + /** + * Index Id + */ + index_id: number; + /** + * Code + */ + code: string; + /** + * Name + */ + name: string; + /** + * Icon + */ + icon: string; + category: IndexCategory; + /** + * Is Fun + */ + is_fun: boolean; + /** + * Is Core + */ + is_core: boolean; + /** + * Season + * + * 지금 제철이면 계절 이름(봄·여름·가을·겨울). 일 년 내내인 각은 없음 + */ + season?: string | null; + /** + * In Season + * + * false 면 제철이 아니라 순위 밖, 목록 맨 끝 + */ + in_season?: boolean; + /** + * Score + */ + score: number; + /** + * Rank + */ + rank: number; + /** + * Summary + */ + summary: string; + /** + * Trend + */ + trend?: Array; + /** + * Active + * + * 지금 구간이 이 각의 시간대와 겹침. false 면 순위 밖, score 는 하루 점수 + */ + active?: boolean; + /** + * Slot + * + * score 가 어느 구간 점수인지 (지금 구간) + */ + slot?: string | null; + /** + * Slots + * + * 오늘 구간별 점수. 각 시간대와 안 겹치는 구간은 없음 + */ + slots?: Array; +}; + +/** + * Me + */ +export type Me = { + /** + * Login Id + */ + login_id: string; + /** + * Nickname + */ + nickname: string; + /** + * Character + */ + character: string; + /** + * Color + */ + color: string; + /** + * Mood + */ + mood?: string | null; + provider: AuthProvider; +}; + +/** + * MyGakData + */ +export type MyGakData = { + /** + * My Gak Id + */ + my_gak_id: number; + /** + * Name + */ + name: string; + rule: MyGakRule; +}; + +/** + * MyGakPreset + */ +export type MyGakPreset = { + /** + * Code + */ + code: string; + /** + * Name + */ + name: string; + /** + * Icon + */ + icon: string; + /** + * 공식 각을 내 각 조건으로 비슷하게 옮긴 값. 점수는 공식 각과 다를 수 있음 + */ + rule: MyGakRule; +}; + +/** + * MyGakRule + */ +export type MyGakRule = { + /** + * Temp + * + * 체감온도 범위 [최저, 최고]° (-20~40) + */ + temp?: [ + number, + number + ] | null; + /** + * Rain + * + * dry: 비 안 와야 / wet: 비 와야 / 없으면 상관없음 + */ + rain?: 'dry' | 'wet' | null; + /** + * Wind Max + * + * 바람 상한 m/s + */ + wind_max?: number | null; + /** + * Air + * + * 미세먼지 허용 단계: good 좋음까지 / normal 보통까지 + */ + air?: 'good' | 'normal' | null; + /** + * Humidity + * + * 습도 범위 [최저, 최고]% + */ + humidity?: [ + number, + number + ] | null; + /** + * Slots + * + * 볼 시간대 + */ + slots?: Array<'morning' | 'day' | 'evening' | 'night'>; +}; + +/** + * MyGakScore + */ +export type MyGakScore = { + /** + * Score + * + * 지금 시간대 점수. 지금이 고른 시간대가 아니면 고른 시간대 중 가장 좋은 점수. 예보가 없으면 null + */ + score?: number | null; + /** + * Slot + * + * score 가 어느 시간대 점수인지 + */ + slot?: 'morning' | 'day' | 'evening' | 'night' | null; + /** + * Slots + * + * 고른 시간대별 점수 (아침·낮·저녁·밤 순) + */ + slots?: { + [key: string]: number; + }; + /** + * Reasons + * + * score 근거: 조건마다 그 시간대 실제 값 + */ + reasons?: Array; +}; + +/** + * PlaceData + */ +export type PlaceData = { + /** + * Place Id + */ + place_id: number; + /** + * Area + */ + area: string; + /** + * Name + */ + name: string; + /** + * Is Outdoor + */ + is_outdoor: boolean; + /** + * Icon + */ + icon: string; + /** + * Reason + */ + reason: string; + /** + * Best Time + */ + best_time: string; + /** + * Is Good + */ + is_good: boolean; + /** + * Distance Km + */ + distance_km: number; + /** + * Image + */ + image?: string | null; + /** + * Image Credit + */ + image_credit?: string | null; +}; + +/** + * PlanSlide + * + * 주말 플랜: 그날 시간대별 동선. + */ +export type PlanSlide = { + /** + * Kind + */ + kind: 'plan'; + /** + * Eyebrow + */ + eyebrow: string; + /** + * Line + */ + line: string; + /** + * Steps + */ + steps: Array; +}; + +/** + * PlanSpot + */ +export type PlanSpot = { + /** + * Name + */ + name: string; + /** + * Distance Km + */ + distance_km: number; +}; + +/** + * PlanStep + */ +export type PlanStep = { + /** + * Time + */ + time: string; + /** + * Icon + */ + icon: string; + /** + * Title + */ + title: string; + /** + * Sub + */ + sub: string; + /** + * Image + */ + image?: string | null; + /** + * Image Credit + */ + image_credit?: string | null; +}; + +/** + * PostData + */ +export type PostData = { + /** + * Post Id + */ + post_id: number; + post_type: PostType; + /** + * Title + */ + title: string; + /** + * Icon + */ + icon: string; + /** + * Caption + */ + caption: string; + /** + * Slides + */ + slides: Array; + /** + * Share Messages + */ + share_messages?: Array; + /** + * Like Count + */ + like_count: number; + /** + * Comment Count + */ + comment_count: number; + /** + * Published At + */ + published_at: string; + /** + * Size + */ + size?: 'full' | 'line'; + /** + * Liked + */ + liked?: boolean | null; + /** + * Saved + */ + saved?: boolean | null; +}; + +/** + * PostReaction + * + * 포스트 틀이 아닌 카드(히어로·오늘의 각·단풍 지도·띠)에 붙는 좋아요·댓글. + */ +export type PostReaction = { + /** + * Post Id + */ + post_id: number; + /** + * Like Count + */ + like_count: number; + /** + * Comment Count + */ + comment_count: number; + /** + * Liked + */ + liked?: boolean | null; +}; + +/** + * PostType + */ +export const PostType = { + /** + * WEATHER + */ + WEATHER: 1, + /** + * GAK + */ + GAK: 2, + /** + * SUNSET + */ + SUNSET: 3, + /** + * SEASON + */ + SEASON: 4, + /** + * EVENT + */ + EVENT: 5, + /** + * TIP + */ + TIP: 6, + /** + * WEEK + */ + WEEK: 7, + /** + * ALERT + */ + ALERT: 8, + /** + * TOMORROW + */ + TOMORROW: 9, + /** + * QUOTE + */ + QUOTE: 10, + /** + * WEEKEND_PLAN + */ + WEEKEND_PLAN: 11, + /** + * AIR + */ + AIR: 12, + /** + * DAY_TRIP + */ + DAY_TRIP: 13, + /** + * MOON + */ + MOON: 14, + /** + * UV + */ + UV: 15, + /** + * HERO + */ + HERO: 16, + /** + * TODAY_GAK + */ + TODAY_GAK: 17, + /** + * FOLIAGE + */ + FOLIAGE: 18, + /** + * EVENTS_BAND + */ + EVENTS_BAND: 19, + /** + * SEASON_BAND + */ + SEASON_BAND: 20, + /** + * CARD + */ + CARD: 21 +} as const; + +/** + * PostType + */ +export type PostType = typeof PostType[keyof typeof PostType]; + +/** + * Rain2h + */ +export type Rain2h = { + /** + * Will Rain + */ + will_rain: boolean; + /** + * Text + */ + text: string; + /** + * Hours + */ + hours?: Array; +}; + +/** + * RainHourData + */ +export type RainHourData = { + /** + * At + */ + at: string; + rain_type: RainType; + /** + * Rain Mm + */ + rain_mm: number; +}; + +/** + * RainType + */ +export const RainType = { + /** + * NONE + */ + NONE: 1, + /** + * RAIN + */ + RAIN: 2, + /** + * SLEET + */ + SLEET: 3, + /** + * SNOW + */ + SNOW: 4, + /** + * SHOWER + */ + SHOWER: 5 +} as const; + +/** + * RainType + */ +export type RainType = typeof RainType[keyof typeof RainType]; + +/** + * RankData + */ +export type RankData = { + /** + * Rank + */ + rank: number; + /** + * Region Code + */ + region_code: string; + /** + * Name + */ + name: string; + /** + * Note + */ + note?: string | null; + /** + * Score + */ + score: number; + grade: SkyGrade; + /** + * Situation Label + */ + situation_label?: string | null; +}; + +/** + * RegionData + */ +export type RegionData = { + /** + * Code + */ + code: string; + /** + * Name + */ + name: string; + /** + * Short Name + */ + short_name: string; + /** + * Lat + */ + lat: number; + /** + * Lon + */ + lon: number; +}; + +/** + * Req_CardCreate + */ +export type ReqCardCreate = { + /** + * Template + */ + template: string; + /** + * Topic + */ + topic?: string | null; + /** + * Title + * + * 피드 포스트 제목 + */ + title: string; + /** + * Caption + */ + caption?: string; + /** + * Texts + * + * 카드 문구 (다시 그릴 때 쓴다) + */ + texts?: { + [key: string]: unknown; + }; + /** + * Images + * + * 1080×1350 JPEG, base64. 슬라이드 순서대로 + */ + images: Array; + /** + * Publish + * + * true 면 만들자마자 그날 피드에 올린다. false 면 승인 대기 + */ + publish?: boolean; +}; + +/** + * Req_Comment + */ +export type ReqComment = { + /** + * Body + */ + body: string; + /** + * Region + * + * 로그인 없이 쓸 때 보고 있는 동네 코드. 이름이 '마포구 익명'으로 보인다 + */ + region?: string | null; +}; + +/** + * Req_Google + */ +export type ReqGoogle = { + /** + * Credential + * + * 구글 로그인 버튼이 준 ID 토큰 + */ + credential: string; +}; + +/** + * Req_Login + */ +export type ReqLogin = { + /** + * Login Id + */ + login_id: string; + /** + * Password + */ + password: string; +}; + +/** + * Req_MyGak + */ +export type ReqMyGak = { + /** + * Name + * + * 내 각 이름 (끝에 '각'이 없으면 붙인다) + */ + name: string; + rule: MyGakRule; +}; + +/** + * Req_MyGakScore + */ +export type ReqMyGakScore = { + /** + * Region Code + */ + region_code: string; + /** + * Rules + */ + rules: Array; +}; + +/** + * Req_Refresh + */ +export type ReqRefresh = { + /** + * Refresh Token + */ + refresh_token: string; +}; + +/** + * Req_Signup + */ +export type ReqSignup = { + /** + * Login Id + */ + login_id: string; + /** + * Password + */ + password: string; + /** + * Nickname + */ + nickname: string; +}; + +/** + * Req_Talk + */ +export type ReqTalk = { + /** + * Region Code + */ + region_code: string; + /** + * Body + * + * 공백을 줄인 뒤 100자까지 + */ + body: string; + /** + * Image + * + * 먼저 올린 사진 주소 (POST /v1/talk/image 결과) + */ + image?: string | null; + /** + * 글 주제. 안 고르면 동네 이야기 + */ + topic?: TalkTopic; +}; + +/** + * Req_TalkReport + */ +export type ReqTalkReport = { + reason: TalkReport; +}; + +/** + * Req_UpdateMe + */ +export type ReqUpdateMe = { + /** + * Nickname + */ + nickname?: string | null; + /** + * Character + */ + character?: string | null; + /** + * Color + */ + color?: string | null; + /** + * Mood + */ + mood?: string | null; +}; + +/** + * Res_Article + */ +export type ResArticle = { + result?: ErrorInfo; + /** + * Msg + */ + msg?: string | null; + article?: ArticleSummary | null; + /** + * Body + */ + body?: Array; +}; + +/** + * Res_ArticleList + */ +export type ResArticleList = { + result?: ErrorInfo; + /** + * Msg + */ + msg?: string | null; + /** + * Articles + */ + articles?: Array; +}; + +/** + * Res_Auth + */ +export type ResAuth = { + result?: ErrorInfo; + /** + * Msg + */ + msg?: string | null; + /** + * Access Token + */ + access_token?: string | null; + /** + * Refresh Token + */ + refresh_token?: string | null; + me?: Me | null; +}; + +/** + * Res_AuthConfig + */ +export type ResAuthConfig = { + result?: ErrorInfo; + /** + * Msg + */ + msg?: string | null; + /** + * Google Client Id + * + * 구글 로그인 버튼에 쓸 OAuth 클라이언트 ID. 없으면 구글 로그인을 숨긴다 + */ + google_client_id?: string | null; +}; + +/** + * Res_Card + */ +export type ResCard = { + result?: ErrorInfo; + /** + * Msg + */ + msg?: string | null; + /** + * Card Id + */ + card_id?: number | null; + status?: CardStatus | null; + /** + * Post Id + */ + post_id?: number | null; + /** + * Image Urls + */ + image_urls?: Array; +}; + +/** + * Res_CardList + */ +export type ResCardList = { + result?: ErrorInfo; + /** + * Msg + */ + msg?: string | null; + /** + * Items + */ + items?: Array; +}; + +/** + * Res_Comment + */ +export type ResComment = { + result?: ErrorInfo; + /** + * Msg + */ + msg?: string | null; + comment?: CommentData | null; +}; + +/** + * Res_CommentLike + */ +export type ResCommentLike = { + result?: ErrorInfo; + /** + * Msg + */ + msg?: string | null; + /** + * Liked + */ + liked?: boolean | null; + /** + * Like Count + */ + like_count?: number | null; +}; + +/** + * Res_CommentList + */ +export type ResCommentList = { + result?: ErrorInfo; + /** + * Msg + */ + msg?: string | null; + /** + * Comments + */ + comments?: Array; + /** + * Next Cursor + */ + next_cursor?: number | null; +}; + +/** + * Res_EventList + */ +export type ResEventList = { + result?: ErrorInfo; + /** + * Msg + */ + msg?: string | null; + /** + * Events + */ + events?: Array; +}; + +/** + * Res_Feed + */ +export type ResFeed = { + result?: ErrorInfo; + /** + * Msg + */ + msg?: string | null; + /** + * Region Code + */ + region_code?: string | null; + /** + * Region Name + */ + region_name?: string | null; + /** + * Slot + */ + slot?: 'morning' | 'day' | 'evening' | 'night' | null; + hero?: Hero | null; + /** + * Stories + */ + stories?: Array; + /** + * Posts + */ + posts?: Array; + hero_post?: PostReaction | null; + gak_post?: PostReaction | null; + foliage_post?: PostReaction | null; + events_post?: PostReaction | null; + season_post?: PostReaction | null; + bands?: Bands | null; +}; + +/** + * Res_Health + */ +export type ResHealth = { + result?: ErrorInfo; + /** + * Msg + */ + msg?: string | null; + /** + * Started At + */ + started_at: string; + /** + * Db + */ + db: boolean; + /** + * Redis + */ + redis: boolean; +}; + +/** + * Res_IndexDetail + */ +export type ResIndexDetail = { + result?: ErrorInfo; + /** + * Msg + */ + msg?: string | null; + index?: IndexSummary | null; + /** + * Description + */ + description?: string | null; + /** + * Factors + */ + factors?: Array; + /** + * Zero Rules + */ + zero_rules?: string | null; + /** + * Zero Reason + */ + zero_reason?: string | null; + /** + * Limit + */ + limit?: string | null; + /** + * Bands + * + * 점수 구간별 설명 (0~29, 30~59, 60~79, 80~100) + */ + bands?: Array; +}; + +/** + * Res_IndexList + */ +export type ResIndexList = { + result?: ErrorInfo; + /** + * Msg + */ + msg?: string | null; + /** + * Region Code + */ + region_code?: string | null; + /** + * Day + */ + day?: string | null; + /** + * Weather Score + * + * 지금 날씨 점수 (지금 구간 기준) + */ + weather_score?: number | null; + /** + * Top3 + */ + top3?: Array; + /** + * Items + */ + items?: Array; +}; + +/** + * Res_Logout + */ +export type ResLogout = { + result?: ErrorInfo; + /** + * Msg + */ + msg?: string | null; +}; + +/** + * Res_Me + */ +export type ResMe = { + result?: ErrorInfo; + /** + * Msg + */ + msg?: string | null; + me?: Me | null; +}; + +/** + * Res_MyGak + */ +export type ResMyGak = { + result?: ErrorInfo; + /** + * Msg + */ + msg?: string | null; + item?: MyGakData | null; +}; + +/** + * Res_MyGakList + */ +export type ResMyGakList = { + result?: ErrorInfo; + /** + * Msg + */ + msg?: string | null; + /** + * Items + * + * 내 각. 로그인하지 않았으면 비어 있음 + */ + items?: Array; +}; + +/** + * Res_MyGakPresets + */ +export type ResMyGakPresets = { + result?: ErrorInfo; + /** + * Msg + */ + msg?: string | null; + /** + * Items + */ + items?: Array; +}; + +/** + * Res_MyGakScore + */ +export type ResMyGakScore = { + result?: ErrorInfo; + /** + * Msg + */ + msg?: string | null; + /** + * Now Slot + */ + now_slot?: 'morning' | 'day' | 'evening' | 'night' | null; + /** + * Scores + */ + scores?: Array; +}; + +/** + * Res_PlaceList + */ +export type ResPlaceList = { + result?: ErrorInfo; + /** + * Msg + */ + msg?: string | null; + /** + * Areas + */ + areas?: Array; + /** + * Rainy + */ + rainy?: boolean | null; + /** + * Places + */ + places?: Array; +}; + +/** + * Res_Post + */ +export type ResPost = { + result?: ErrorInfo; + /** + * Msg + */ + msg?: string | null; + post?: PostData | null; +}; + +/** + * Res_PostLike + */ +export type ResPostLike = { + result?: ErrorInfo; + /** + * Msg + */ + msg?: string | null; + /** + * Liked + */ + liked?: boolean | null; + /** + * Like Count + */ + like_count?: number | null; +}; + +/** + * Res_PostSave + */ +export type ResPostSave = { + result?: ErrorInfo; + /** + * Msg + */ + msg?: string | null; + /** + * Saved + */ + saved?: boolean | null; +}; + +/** + * Res_Region + */ +export type ResRegion = { + result?: ErrorInfo; + /** + * Msg + */ + msg?: string | null; + region?: RegionData | null; +}; + +/** + * Res_RegionList + */ +export type ResRegionList = { + result?: ErrorInfo; + /** + * Msg + */ + msg?: string | null; + /** + * Regions + */ + regions?: Array; +}; + +/** + * Res_SavedList + */ +export type ResSavedList = { + result?: ErrorInfo; + /** + * Msg + */ + msg?: string | null; + /** + * Posts + */ + posts?: Array; + /** + * Next Cursor + */ + next_cursor?: number | null; +}; + +/** + * Res_SeasonWeek + */ +export type ResSeasonWeek = { + result?: ErrorInfo; + /** + * Msg + */ + msg?: string | null; + /** + * Year + */ + year?: number | null; + /** + * Week + */ + week?: number | null; + /** + * Start + */ + start?: string | null; + /** + * End + */ + end?: string | null; + /** + * Headline + */ + headline?: string | null; + /** + * Poem Lines + */ + poem_lines?: Array; + /** + * Author + */ + author?: string | null; + term_now?: TermData | null; + term_next?: TermData | null; + /** + * Progress + */ + progress?: number | null; + /** + * News + */ + news?: Array; +}; + +/** + * Res_Sky + */ +export type ResSky = { + result?: ErrorInfo; + /** + * Msg + */ + msg?: string | null; + /** + * Region Code + */ + region_code?: string | null; + /** + * Sunset Azimuth + */ + sunset_azimuth?: number | null; + sunset?: SkyScoreData | null; + sunrise?: SkyScoreData | null; + /** + * Days + */ + days?: Array; + /** + * Spots + */ + spots?: Array; + plan?: SkyPlanData | null; + /** + * Plans + * + * plan 과 같은 종류로 아직 안 끝난 날 최대 3일 (날짜 타일, 누르면 그날로) + */ + plans?: Array; +}; + +/** + * Res_SkyRanking + */ +export type ResSkyRanking = { + result?: ErrorInfo; + /** + * Msg + */ + msg?: string | null; + /** + * Day + */ + day?: string | null; + /** + * Summary + * + * 대부분 같은 하늘 상황인 날 한 줄 (예: 오늘은 전국이 맑아 대부분 짧게 끝나요) + */ + summary?: string | null; + /** + * Items + */ + items?: Array; +}; + +/** + * Res_Talk + */ +export type ResTalk = { + result?: ErrorInfo; + /** + * Msg + */ + msg?: string | null; + talk?: TalkData | null; +}; + +/** + * Res_TalkGroups + */ +export type ResTalkGroups = { + result?: ErrorInfo; + /** + * Msg + */ + msg?: string | null; + /** + * Groups + * + * 동네 사람들 묶음은 늘 있고(비어 있을 수 있음), 주제 묶음은 3장 이상일 때만 + */ + groups?: Array; +}; + +/** + * Res_TalkImage + */ +export type ResTalkImage = { + result?: ErrorInfo; + /** + * Msg + */ + msg?: string | null; + /** + * Image + * + * 글에 붙일 사진 주소 + */ + image?: string | null; +}; + +/** + * Res_TalkLike + */ +export type ResTalkLike = { + result?: ErrorInfo; + /** + * Msg + */ + msg?: string | null; + /** + * Liked + */ + liked?: boolean | null; + /** + * Like Count + */ + like_count?: number | null; +}; + +/** + * Res_TalkList + */ +export type ResTalkList = { + result?: ErrorInfo; + /** + * Msg + */ + msg?: string | null; + /** + * Talks + */ + talks?: Array; + /** + * Next Cursor + * + * 다음 페이지를 받을 때 그대로 cursor 로 보낸다 + */ + next_cursor?: string | null; +}; + +/** + * Res_WatchSummary + */ +export type ResWatchSummary = { + result?: ErrorInfo; + /** + * Msg + */ + msg?: string | null; + /** + * Region Code + */ + region_code?: string | null; + /** + * Region Name + */ + region_name?: string | null; + /** + * Issued At + */ + issued_at?: string | null; + /** + * Refresh At + */ + refresh_at?: string | null; + /** + * Mode + */ + mode?: 'morning' | 'day' | 'evening' | 'night' | null; + now?: WatchNow | null; + /** + * Warning + */ + warning?: string | null; + /** + * Top + */ + top?: Array; + /** + * Picks + */ + picks?: Array; + sunset?: WatchSunset | null; + /** + * Slots + */ + slots?: Array; + /** + * Timeline + */ + timeline?: Array; + /** + * Events + */ + events?: Array; +}; + +/** + * Res_WeatherNow + */ +export type ResWeatherNow = { + result?: ErrorInfo; + /** + * Msg + */ + msg?: string | null; + /** + * Region Code + */ + region_code?: string | null; + rain_2h?: Rain2h | null; + tomorrow?: Tomorrow | null; + air?: AirData | null; + /** + * Warnings + */ + warnings?: Array | null; +}; + +/** + * Res_WeatherToday + */ +export type ResWeatherToday = { + result?: ErrorInfo; + /** + * Msg + */ + msg?: string | null; + /** + * Region Code + */ + region_code?: string | null; + /** + * Region Name + */ + region_name?: string | null; + /** + * Day + */ + day?: string | null; + /** + * Issued At + */ + issued_at?: string | null; + /** + * Headline + */ + headline?: string | null; + /** + * Slots + */ + slots?: Array; +}; + +/** + * Res_WebPacketProtocol + */ +export type ResWebPacketProtocol = { + result?: ErrorInfo; + /** + * Msg + */ + msg?: string | null; +}; + +/** + * Res_Week + */ +export type ResWeek = { + result?: ErrorInfo; + /** + * Msg + */ + msg?: string | null; + /** + * Region Code + */ + region_code?: string | null; + /** + * Days + */ + days?: Array; +}; + +/** + * Res_WeekRanking + */ +export type ResWeekRanking = { + result?: ErrorInfo; + /** + * Msg + */ + msg?: string | null; + /** + * Days + */ + days?: Array; +}; + +/** + * Row + */ +export type Row = { + /** + * Label + */ + label: string; + /** + * Value + */ + value: string; + /** + * Place + * + * 위치가 정해진 장소면 지도에서 찾을 이름 (앱이 네이버 지도 링크를 건다) + */ + place?: string | null; + /** + * Level + * + * 자외선 단계 1 낮음 ~ 5 위험. 있으면 앱이 값을 단계 색 칩으로 그린다 + */ + level?: number | null; +}; + +/** + * RowsSlide + * + * 우산·미세먼지·계절 소식·행사·상식처럼 '한 줄 + 표' 모양. + */ +export type RowsSlide = { + /** + * Kind + */ + kind: 'rows'; + /** + * Eyebrow + */ + eyebrow: string; + /** + * Line + */ + line: string; + /** + * Icon + */ + icon: string; + /** + * Rows + */ + rows?: Array; + /** + * Image + */ + image?: string | null; + /** + * Image Credit + */ + image_credit?: string | null; +}; + +/** + * SavedPost + */ +export type SavedPost = { + /** + * Post Id + */ + post_id: number; + post_type: PostType; + /** + * Feed Date + */ + feed_date: string; + /** + * Saved At + */ + saved_at: string; +}; + +/** + * ScoreBand + */ +export type ScoreBand = { + /** + * Low + */ + low: number; + /** + * High + */ + high: number; + /** + * Text + * + * 이 점수 구간이면 어떤 날인지, 통통 튀는 말투 한 문장 + */ + text: string; + /** + * Current + * + * 오늘 점수가 이 구간에 있음 + */ + current: boolean; +}; + +/** + * Sky + */ +export const Sky = { + /** + * CLEAR + */ + CLEAR: 1, + /** + * PARTLY + */ + PARTLY: 2, + /** + * CLOUDY + */ + CLOUDY: 3 +} as const; + +/** + * Sky + */ +export type Sky = typeof Sky[keyof typeof Sky]; + +/** + * SkyGrade + */ +export const SkyGrade = { + /** + * GRAY + */ + GRAY: 1, + /** + * SOFT + */ + SOFT: 2, + /** + * GLOW + */ + GLOW: 3, + /** + * RED + */ + RED: 4 +} as const; + +/** + * SkyGrade + */ +export type SkyGrade = typeof SkyGrade[keyof typeof SkyGrade]; + +/** + * SkyPlanData + */ +export type SkyPlanData = { + /** + * Kind + * + * 다음에 오는 것: 해 뜨기 전·밤엔 일출, 그 사이엔 노을 + */ + kind: 'sunset' | 'sunrise'; + /** + * Title + * + * 하늘이 어떻게 보일지 한 문장 (오늘 노을은 물들긴 하는데 색이 흐릴 거예요). 히어로 제목 + */ + title: string; + /** + * Day + */ + day: string; + /** + * When + */ + when: string; + /** + * Verdict + */ + verdict: 'go' | 'maybe' | 'rest'; + /** + * Headline + */ + headline: string; + /** + * Reason + */ + reason: string; + /** + * Score + */ + score: number; + /** + * Grade Label + */ + grade_label: string; + /** + * Situation Label + */ + situation_label?: string | null; + /** + * Models Total + * + * 계산에 쓴 예보 모델 수 + */ + models_total?: number | null; + /** + * Models Agree + * + * 그중 같은 하늘 상황을 낸 모델 수 + */ + models_agree?: number | null; + /** + * Best At + */ + best_at?: string | null; + spot?: PlanSpot | null; + /** + * Timeline + */ + timeline?: Array; + /** + * Outlook + */ + outlook?: string; +}; + +/** + * SkyScoreData + */ +export type SkyScoreData = { + /** + * Day + */ + day: string; + sky_type: SkyType; + /** + * Score + */ + score: number; + grade: SkyGrade; + /** + * Grade Label + */ + grade_label: string; + confidence: Confidence; + /** + * Best Times + */ + best_times?: Array; + situation?: SkySituation | null; + /** + * Situation Label + * + * 하늘 상황 한 줄: 구름에 가려요 / 구름이 적어 짧게 끝나요 / 하늘이 넓게 물들 수 있어요 등 + */ + situation_label?: string | null; + /** + * Verdict + */ + verdict?: 'go' | 'maybe' | 'rest' | null; +}; + +/** + * SkySituation + * + * 노을·일출 하늘 상황. 구름 층으로 고른다 (sky_score.situation). + */ +export const SkySituation = { + /** + * COVERED + */ + COVERED: 1, + /** + * LOW_CLOUD + */ + LOW_CLOUD: 2, + /** + * FEW + */ + FEW: 3, + /** + * GLOW + */ + GLOW: 4, + /** + * THICK + */ + THICK: 5 +} as const; + +/** + * SkySituation + * + * 노을·일출 하늘 상황. 구름 층으로 고른다 (sky_score.situation). + */ +export type SkySituation = typeof SkySituation[keyof typeof SkySituation]; + +/** + * SkyType + */ +export const SkyType = { /** + * SUNSET + */ + SUNSET: 1, /** + * SUNRISE + */ + SUNRISE: 2 } as const; + +/** + * SkyType + */ +export type SkyType = typeof SkyType[keyof typeof SkyType]; + +/** + * SlotPoint + */ +export type SlotPoint = { + /** + * Slot + * + * morning / day / evening / night + */ + slot: string; + /** + * Label + * + * 아침 / 낮 / 저녁 / 밤 + */ + label: string; + /** + * Score + */ + score: number; +}; + +/** + * SlotTone + */ +export const SlotTone = { + /** + * DAY + */ + DAY: 1, + /** + * NIGHT + */ + NIGHT: 2, + /** + * SUNSET + */ + SUNSET: 3 +} as const; + +/** + * SlotTone + */ +export type SlotTone = typeof SlotTone[keyof typeof SlotTone]; + +/** + * SpotData + */ +export type SpotData = { + /** + * No + */ + no: number; + /** + * Name + */ + name: string; + /** + * Description + */ + description: string; + /** + * Lat + */ + lat: number; + /** + * Lon + */ + lon: number; + /** + * Distance Km + */ + distance_km: number; + /** + * Direction + * + * 내 구에서 본 방향 (16방위, 예: 북서) + */ + direction?: string; +}; + +/** + * SunsetSlide + */ +export type SunsetSlide = { + /** + * Kind + */ + kind: 'sunset'; + /** + * Eyebrow + */ + eyebrow: string; + /** + * Line + */ + line: string; + /** + * Score + */ + score: number; + /** + * Grade Label + */ + grade_label: string; + /** + * Cuts + */ + cuts: Array; + /** + * 하늘 상황. 앱이 카드 하늘 색을 고른다 + */ + situation?: SkySituation | null; + /** + * Headline + * + * 결론 (나가 볼 만해요 · 애매해요 · 쉬어요). 카드 맨 위에 크게 + */ + headline?: string | null; + /** + * Peak At + * + * 가장 붉을 때 + */ + peak_at?: string | null; +}; + +/** + * TalkData + */ +export type TalkData = { + /** + * Talk Id + */ + talk_id: number; + /** + * Nickname + */ + nickname: string; + /** + * Character + */ + character: string; + /** + * Color + */ + color: string; + /** + * Mood + */ + mood?: string | null; + /** + * Region Name + * + * 쓴 사람이 고른 동네 (성남시 분당구) + */ + region_name?: string | null; + /** + * Weather + * + * 쓸 때 그 동네 날씨 (18° 맑음) + */ + weather?: string | null; + /** + * Body + */ + body: string; + /** + * Image + * + * 올린 사진 주소 + */ + image?: string | null; + topic?: TalkTopic; + /** + * Like Count + */ + like_count: number; + /** + * Liked + */ + liked: boolean; + /** + * Mine + */ + mine: boolean; + /** + * Created At + */ + created_at: string; +}; + +/** + * TalkGroup + */ +export type TalkGroup = { + /** + * Topic + * + * 0 이면 '동네 사람들'(모든 주제), 아니면 TalkTopic + */ + topic: number; + /** + * Talks + */ + talks?: Array; +}; + +/** + * TalkReport + */ +export const TalkReport = { + /** + * ABUSE + */ + ABUSE: 1, + /** + * SPAM + */ + SPAM: 2, + /** + * PRIVACY + */ + PRIVACY: 3, + /** + * ETC + */ + ETC: 4 +} as const; + +/** + * TalkReport + */ +export type TalkReport = typeof TalkReport[keyof typeof TalkReport]; + +/** + * TalkTopic + * + * 사람 글 주제. 안 고르면 동네 이야기. 피드에서 같은 주제 포스트 옆에 묶어 보여 준다 + */ +export const TalkTopic = { + /** + * LOCAL + */ + LOCAL: 1, + /** + * SKY + */ + SKY: 2, + /** + * RAIN + */ + RAIN: 3, + /** + * FOLIAGE + */ + FOLIAGE: 4, + /** + * OUTFIT + */ + OUTFIT: 5 +} as const; + +/** + * TalkTopic + * + * 사람 글 주제. 안 고르면 동네 이야기. 피드에서 같은 주제 포스트 옆에 묶어 보여 준다 + */ +export type TalkTopic = typeof TalkTopic[keyof typeof TalkTopic]; + +/** + * TermData + */ +export type TermData = { + /** + * Name + */ + name: string; + /** + * Day + */ + day: string; +}; + +/** + * Tomorrow + */ +export type Tomorrow = { + /** + * Text + */ + text: string; + /** + * Rain From + */ + rain_from?: string | null; + /** + * Commute + */ + commute?: Array; +}; + +/** + * TopIndex + */ +export type TopIndex = { + /** + * Index Id + */ + index_id: number; + /** + * Code + */ + code: string; + /** + * Name + */ + name: string; + /** + * Icon + */ + icon: string; + /** + * Score + */ + score: number; + /** + * Rank + */ + rank: number; + /** + * Summary + */ + summary?: string | null; + /** + * Active + * + * 지금 구간이 이 각의 시간대와 겹침. false 면 순위 밖, score 는 하루 점수 + */ + active?: boolean; + /** + * Slots + * + * 오늘 구간별 점수 {morning·day·evening·night: 점수}. 각 시간대와 안 겹치는 구간은 없음 + */ + slots?: { + [key: string]: number; + }; + /** + * Slot Ranks + * + * 오늘 구간별 순위 (중요도 배율을 반영한 최종 표시 점수 내림차순, 동점이면 중요도 순) + */ + slot_ranks?: { + [key: string]: number; + }; +}; + +/** + * TrendPoint + */ +export type TrendPoint = { + /** + * Day + */ + day: string; + /** + * Label + * + * 칸 이름: 오늘 / 내일 / 토 10.10 + */ + label: string; + /** + * Score + */ + score: number; + /** + * Estimated + * + * 시간별 예보가 없어 중기예보로 낸 예상 점수 + */ + estimated: boolean; +}; + +/** + * ValidationError + */ +export type ValidationError = { + /** + * Location + */ + loc: Array; + /** + * Message + */ + msg: string; + /** + * Error Type + */ + type: string; + /** + * Input + */ + input?: unknown; + /** + * Context + */ + ctx?: { + [key: string]: unknown; + }; +}; + +/** + * WarningData + */ +export type WarningData = { + warning_type: WarningType; + level: WarningLevel; + /** + * Text + */ + text: string; +}; + +/** + * WarningLevel + */ +export const WarningLevel = { + /** + * ADVISORY + */ + ADVISORY: 1, + /** + * WARNING + */ + WARNING: 2, + /** + * SEVERE + */ + SEVERE: 3 +} as const; + +/** + * WarningLevel + */ +export type WarningLevel = typeof WarningLevel[keyof typeof WarningLevel]; + +/** + * WarningType + */ +export const WarningType = { + /** + * WIND + */ + WIND: 1, + /** + * RAIN + */ + RAIN: 2, + /** + * COLD + */ + COLD: 3, + /** + * DRY + */ + DRY: 4, + /** + * STORM_SURGE + */ + STORM_SURGE: 5, + /** + * HIGH_SEAS + */ + HIGH_SEAS: 6, + /** + * TYPHOON + */ + TYPHOON: 7, + /** + * SNOW + */ + SNOW: 8, + /** + * YELLOW_DUST + */ + YELLOW_DUST: 9, + /** + * HEAT + */ + HEAT: 12, + /** + * TROPICAL_NIGHT + */ + TROPICAL_NIGHT: 13 +} as const; + +/** + * WarningType + */ +export type WarningType = typeof WarningType[keyof typeof WarningType]; + +/** + * WatchEvent + */ +export type WatchEvent = { + /** + * Name + */ + name: string; + /** + * Place Name + */ + place_name: string; + /** + * Status Label + */ + status_label: string; + /** + * Fit + */ + fit?: string | null; +}; + +/** + * WatchNow + */ +export type WatchNow = { + /** + * Temp C + */ + temp_c?: number | null; + /** + * Icon + */ + icon?: string | null; + /** + * Rain 2H + */ + rain_2h?: boolean | null; + /** + * Thunder + */ + thunder?: boolean | null; + /** + * Text + */ + text?: string | null; +}; + +/** + * WatchSlot + */ +export type WatchSlot = { + /** + * At + */ + at: string; + /** + * Icon + */ + icon: string; + /** + * Temp C + */ + temp_c?: number | null; + /** + * Rain Prob + */ + rain_prob?: number | null; +}; + +/** + * WatchSunset + */ +export type WatchSunset = { + /** + * Is Today + */ + is_today: boolean; + /** + * Score + */ + score: number; + /** + * Grade Label + */ + grade_label: string; + /** + * Sunset At + */ + sunset_at: string; + /** + * Best At + */ + best_at: string; +}; + +/** + * WatchTimeline + */ +export type WatchTimeline = { + /** + * Start At + */ + start_at: string; + /** + * Kind + */ + kind: 'gak' | 'sunset'; +}; + +/** + * WeatherSlot + */ +export type WeatherSlot = { + /** + * At + */ + at: string; + /** + * Label + */ + label: string; + /** + * Temp C + */ + temp_c?: number | null; + /** + * Feels C + */ + feels_c?: number | null; + sky?: Sky | null; + rain_type?: RainType | null; + /** + * Rain Prob + */ + rain_prob?: number | null; + /** + * Humidity + */ + humidity?: number | null; + /** + * Icon + */ + icon: string; + tone: SlotTone; + /** + * Note + */ + note: string; +}; + +/** + * WeatherWhy + */ +export type WeatherWhy = { + /** + * Label + */ + label: string; + /** + * Weight + * + * 비중 % (합 100) + */ + weight: number; + /** + * Score + * + * 이 조건 점수 0~100 + */ + score: number; + /** + * Note + * + * 지금 값 (예: 체감 19°, 편한 범위 18~24° 안) + */ + note: string; +}; + +/** + * WeekDay + */ +export type WeekDay = { + /** + * Day + */ + day: string; + /** + * Weekday + */ + weekday: string; + /** + * Icon + */ + icon: string; + /** + * Text + */ + text: string; + /** + * Temp Min C + */ + temp_min_c?: number | null; + /** + * Temp Max C + */ + temp_max_c?: number | null; + /** + * Rain Prob + */ + rain_prob?: number | null; + /** + * Gaks + * + * 그날 대표 각 (중요도 배율을 반영한 최종 표시 점수 내림차순 3개, 동점이면 중요도 순). 각 점수가 아직 없는 날은 비어 있음 + */ + gaks?: Array; +}; + +/** + * WeekGak + */ +export type WeekGak = { + /** + * Index Id + */ + index_id: number; + /** + * Name + */ + name: string; + /** + * Icon + */ + icon: string; + /** + * Score + */ + score: number; +}; + +/** + * WeekRankDay + */ +export type WeekRankDay = { + /** + * Day + */ + day: string; + /** + * Weekday + */ + weekday: string; + /** + * Items + */ + items?: Array; +}; + +/** + * WeekRankItem + */ +export type WeekRankItem = { + /** + * Rank + */ + rank: number; + /** + * Region Code + */ + region_code: string; + /** + * Name + */ + name: string; + /** + * Score + */ + score: number; + /** + * Reason + */ + reason: string; + /** + * Icon + */ + icon: string; + /** + * Temp Min C + */ + temp_min_c?: number | null; + /** + * Temp Max C + */ + temp_max_c?: number | null; + /** + * Rain Prob + */ + rain_prob: number; + /** + * Estimated + */ + estimated: boolean; +}; + +/** + * WeekSlide + * + * 주말 예보: 토·일 비교 + 옷차림·우산 팁. + */ +export type WeekSlide = { + /** + * Kind + */ + kind: 'week'; + /** + * Eyebrow + */ + eyebrow: string; + /** + * Line + */ + line: string; + /** + * Days + */ + days: Array; + /** + * Tip + */ + tip?: string | null; +}; + +export type ListRegionsData = { + body?: never; + path?: never; + query?: { + /** + * Q + * + * 구 이름 검색어 + */ + q?: string | null; + }; + url: '/v1/region/list'; +}; + +export type ListRegionsErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type ListRegionsError = ListRegionsErrors[keyof ListRegionsErrors]; + +export type ListRegionsResponses = { + /** + * Successful Response + */ + 200: ResRegionList; +}; + +export type ListRegionsResponse = ListRegionsResponses[keyof ListRegionsResponses]; + +export type NearestRegionData = { + body?: never; + path?: never; + query: { + /** + * Lat + */ + lat: number; + /** + * Lon + */ + lon: number; + }; + url: '/v1/region/nearest'; +}; + +export type NearestRegionErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type NearestRegionError = NearestRegionErrors[keyof NearestRegionErrors]; + +export type NearestRegionResponses = { + /** + * Successful Response + */ + 200: ResRegion; +}; + +export type NearestRegionResponse = NearestRegionResponses[keyof NearestRegionResponses]; + +export type GetWeatherTodayData = { + body?: never; + path?: never; + query: { + /** + * Region + * + * 구 행정코드 + */ + region: string; + /** + * Day + * + * tomorrow 면 내일 칸 + */ + day?: 'today' | 'tomorrow'; + }; + url: '/v1/weather/today'; +}; + +export type GetWeatherTodayErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type GetWeatherTodayError = GetWeatherTodayErrors[keyof GetWeatherTodayErrors]; + +export type GetWeatherTodayResponses = { + /** + * Successful Response + */ + 200: ResWeatherToday; +}; + +export type GetWeatherTodayResponse = GetWeatherTodayResponses[keyof GetWeatherTodayResponses]; + +export type GetWeatherNowData = { + body?: never; + path?: never; + query: { + /** + * Region + * + * 구 행정코드 + */ + region: string; + }; + url: '/v1/weather/now'; +}; + +export type GetWeatherNowErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type GetWeatherNowError = GetWeatherNowErrors[keyof GetWeatherNowErrors]; + +export type GetWeatherNowResponses = { + /** + * Successful Response + */ + 200: ResWeatherNow; +}; + +export type GetWeatherNowResponse = GetWeatherNowResponses[keyof GetWeatherNowResponses]; + +export type GetSkyData = { + body?: never; + path?: never; + query: { + /** + * Region + * + * 구 행정코드 + */ + region: string; + }; + url: '/v1/sky'; +}; + +export type GetSkyErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type GetSkyError = GetSkyErrors[keyof GetSkyErrors]; + +export type GetSkyResponses = { + /** + * Successful Response + */ + 200: ResSky; +}; + +export type GetSkyResponse = GetSkyResponses[keyof GetSkyResponses]; + +export type GetSkyRankingData = { + body?: never; + path?: never; + query?: never; + url: '/v1/sky/ranking'; +}; + +export type GetSkyRankingResponses = { + /** + * Successful Response + */ + 200: ResSkyRanking; +}; + +export type GetSkyRankingResponse = GetSkyRankingResponses[keyof GetSkyRankingResponses]; + +export type ListIndicesData = { + body?: never; + path?: never; + query: { + /** + * Region + * + * 구 행정코드 + */ + region: string; + /** + * Category + */ + category?: IndexCategory | null; + /** + * Core + * + * 지금 제철인 각만 + */ + core?: boolean; + }; + url: '/v1/index/list'; +}; + +export type ListIndicesErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type ListIndicesError = ListIndicesErrors[keyof ListIndicesErrors]; + +export type ListIndicesResponses = { + /** + * Successful Response + */ + 200: ResIndexList; +}; + +export type ListIndicesResponse = ListIndicesResponses[keyof ListIndicesResponses]; + +export type GetIndexData = { + body?: never; + path: { + /** + * Index Id + */ + index_id: number; + }; + query: { + /** + * Region + * + * 구 행정코드 + */ + region: string; + }; + url: '/v1/index/{index_id}'; +}; + +export type GetIndexErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type GetIndexError = GetIndexErrors[keyof GetIndexErrors]; + +export type GetIndexResponses = { + /** + * Successful Response + */ + 200: ResIndexDetail; +}; + +export type GetIndexResponse = GetIndexResponses[keyof GetIndexResponses]; + +export type GetWeekData = { + body?: never; + path?: never; + query: { + /** + * Region + * + * 구 행정코드 + */ + region: string; + }; + url: '/v1/week'; +}; + +export type GetWeekErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type GetWeekError = GetWeekErrors[keyof GetWeekErrors]; + +export type GetWeekResponses = { + /** + * Successful Response + */ + 200: ResWeek; +}; + +export type GetWeekResponse = GetWeekResponses[keyof GetWeekResponses]; + +export type GetWeekRankingData = { + body?: never; + path?: never; + query?: never; + url: '/v1/week/ranking'; +}; + +export type GetWeekRankingResponses = { + /** + * Successful Response + */ + 200: ResWeekRanking; +}; + +export type GetWeekRankingResponse = GetWeekRankingResponses[keyof GetWeekRankingResponses]; + +export type ListPlacesData = { + body?: never; + path?: never; + query: { + /** + * Region + */ + region: string; + /** + * Day + * + * 기본은 오늘 + */ + day?: string | null; + /** + * Area + */ + area?: string | null; + }; + url: '/v1/week/place/list'; +}; + +export type ListPlacesErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type ListPlacesError = ListPlacesErrors[keyof ListPlacesErrors]; + +export type ListPlacesResponses = { + /** + * Successful Response + */ + 200: ResPlaceList; +}; + +export type ListPlacesResponse = ListPlacesResponses[keyof ListPlacesResponses]; + +export type ListEventsData = { + body?: never; + path?: never; + query: { + /** + * Region + */ + region: string; + /** + * Area + */ + area?: string | null; + }; + url: '/v1/week/event/list'; +}; + +export type ListEventsErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type ListEventsError = ListEventsErrors[keyof ListEventsErrors]; + +export type ListEventsResponses = { + /** + * Successful Response + */ + 200: ResEventList; +}; + +export type ListEventsResponse = ListEventsResponses[keyof ListEventsResponses]; + +export type GetSeasonWeekData = { + body?: never; + path?: never; + query?: never; + url: '/v1/season/week'; +}; + +export type GetSeasonWeekResponses = { + /** + * Successful Response + */ + 200: ResSeasonWeek; +}; + +export type GetSeasonWeekResponse = GetSeasonWeekResponses[keyof GetSeasonWeekResponses]; + +export type ListArticlesData = { + body?: never; + path?: never; + query?: { + /** + * Category + */ + category?: ArticleCategory | null; + }; + url: '/v1/season/article/list'; +}; + +export type ListArticlesErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type ListArticlesError = ListArticlesErrors[keyof ListArticlesErrors]; + +export type ListArticlesResponses = { + /** + * Successful Response + */ + 200: ResArticleList; +}; + +export type ListArticlesResponse = ListArticlesResponses[keyof ListArticlesResponses]; + +export type GetArticleData = { + body?: never; + path: { + /** + * Article Id + */ + article_id: number; + }; + query?: never; + url: '/v1/season/article/{article_id}'; +}; + +export type GetArticleErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type GetArticleError = GetArticleErrors[keyof GetArticleErrors]; + +export type GetArticleResponses = { + /** + * Successful Response + */ + 200: ResArticle; +}; + +export type GetArticleResponse = GetArticleResponses[keyof GetArticleResponses]; + +export type GetFeedData = { + body?: never; + headers?: { + /** + * Authorization + */ + authorization?: string | null; + }; + path?: never; + query: { + /** + * Region + * + * 구 행정코드 + */ + region: string; + }; + url: '/v1/feed'; +}; + +export type GetFeedErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type GetFeedError = GetFeedErrors[keyof GetFeedErrors]; + +export type GetFeedResponses = { + /** + * Successful Response + */ + 200: ResFeed; +}; + +export type GetFeedResponse = GetFeedResponses[keyof GetFeedResponses]; + +export type GetPostData = { + body?: never; + path: { + /** + * Post Id + */ + post_id: number; + }; + query: { + /** + * Region + */ + region: string; + }; + url: '/v1/feed/post/{post_id}'; +}; + +export type GetPostErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type GetPostError = GetPostErrors[keyof GetPostErrors]; + +export type GetPostResponses = { + /** + * Successful Response + */ + 200: ResPost; +}; + +export type GetPostResponse = GetPostResponses[keyof GetPostResponses]; + +export type SignupData = { + body: ReqSignup; + path?: never; + query?: never; + url: '/v1/auth/signup'; +}; + +export type SignupErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type SignupError = SignupErrors[keyof SignupErrors]; + +export type SignupResponses = { + /** + * Successful Response + */ + 200: ResAuth; +}; + +export type SignupResponse = SignupResponses[keyof SignupResponses]; + +export type LoginData = { + body: ReqLogin; + path?: never; + query?: never; + url: '/v1/auth/login'; +}; + +export type LoginErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type LoginError = LoginErrors[keyof LoginErrors]; + +export type LoginResponses = { + /** + * Successful Response + */ + 200: ResAuth; +}; + +export type LoginResponse = LoginResponses[keyof LoginResponses]; + +export type GoogleLoginData = { + body: ReqGoogle; + path?: never; + query?: never; + url: '/v1/auth/google'; +}; + +export type GoogleLoginErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type GoogleLoginError = GoogleLoginErrors[keyof GoogleLoginErrors]; + +export type GoogleLoginResponses = { + /** + * Successful Response + */ + 200: ResAuth; +}; + +export type GoogleLoginResponse = GoogleLoginResponses[keyof GoogleLoginResponses]; + +export type AuthConfigData = { + body?: never; + path?: never; + query?: never; + url: '/v1/auth/config'; +}; + +export type AuthConfigResponses = { + /** + * Successful Response + */ + 200: ResAuthConfig; +}; + +export type AuthConfigResponse = AuthConfigResponses[keyof AuthConfigResponses]; + +export type RefreshData = { + body: ReqRefresh; + path?: never; + query?: never; + url: '/v1/auth/refresh'; +}; + +export type RefreshErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type RefreshError = RefreshErrors[keyof RefreshErrors]; + +export type RefreshResponses = { + /** + * Successful Response + */ + 200: ResAuth; +}; + +export type RefreshResponse = RefreshResponses[keyof RefreshResponses]; + +export type LogoutData = { + body?: never; + headers?: { + /** + * Authorization + */ + authorization?: string | null; + }; + path?: never; + query?: never; + url: '/v1/auth/logout'; +}; + +export type LogoutErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type LogoutError = LogoutErrors[keyof LogoutErrors]; + +export type LogoutResponses = { + /** + * Successful Response + */ + 200: ResLogout; +}; + +export type LogoutResponse = LogoutResponses[keyof LogoutResponses]; + +export type MeData = { + body?: never; + headers?: { + /** + * Authorization + */ + authorization?: string | null; + }; + path?: never; + query?: never; + url: '/v1/auth/me'; +}; + +export type MeErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type MeError = MeErrors[keyof MeErrors]; + +export type MeResponses = { + /** + * Successful Response + */ + 200: ResMe; +}; + +export type MeResponse = MeResponses[keyof MeResponses]; + +export type UpdateMeData = { + body: ReqUpdateMe; + headers?: { + /** + * Authorization + */ + authorization?: string | null; + }; + path?: never; + query?: never; + url: '/v1/auth/me'; +}; + +export type UpdateMeErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type UpdateMeError = UpdateMeErrors[keyof UpdateMeErrors]; + +export type UpdateMeResponses = { + /** + * Successful Response + */ + 200: ResMe; +}; + +export type UpdateMeResponse = UpdateMeResponses[keyof UpdateMeResponses]; + +export type UnlikePostData = { + body?: never; + headers?: { + /** + * Authorization + */ + authorization?: string | null; + }; + path: { + /** + * Post Id + */ + post_id: number; + }; + query?: never; + url: '/v1/reaction/post/{post_id}/like'; +}; + +export type UnlikePostErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type UnlikePostError = UnlikePostErrors[keyof UnlikePostErrors]; + +export type UnlikePostResponses = { + /** + * Successful Response + */ + 200: ResPostLike; +}; + +export type UnlikePostResponse = UnlikePostResponses[keyof UnlikePostResponses]; + +export type LikePostData = { + body?: never; + headers?: { + /** + * Authorization + */ + authorization?: string | null; + }; + path: { + /** + * Post Id + */ + post_id: number; + }; + query?: never; + url: '/v1/reaction/post/{post_id}/like'; +}; + +export type LikePostErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type LikePostError = LikePostErrors[keyof LikePostErrors]; + +export type LikePostResponses = { + /** + * Successful Response + */ + 200: ResPostLike; +}; + +export type LikePostResponse = LikePostResponses[keyof LikePostResponses]; + +export type UnsavePostData = { + body?: never; + headers?: { + /** + * Authorization + */ + authorization?: string | null; + }; + path: { + /** + * Post Id + */ + post_id: number; + }; + query?: never; + url: '/v1/reaction/post/{post_id}/save'; +}; + +export type UnsavePostErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type UnsavePostError = UnsavePostErrors[keyof UnsavePostErrors]; + +export type UnsavePostResponses = { + /** + * Successful Response + */ + 200: ResPostSave; +}; + +export type UnsavePostResponse = UnsavePostResponses[keyof UnsavePostResponses]; + +export type SavePostData = { + body?: never; + headers?: { + /** + * Authorization + */ + authorization?: string | null; + }; + path: { + /** + * Post Id + */ + post_id: number; + }; + query?: never; + url: '/v1/reaction/post/{post_id}/save'; +}; + +export type SavePostErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type SavePostError = SavePostErrors[keyof SavePostErrors]; + +export type SavePostResponses = { + /** + * Successful Response + */ + 200: ResPostSave; +}; + +export type SavePostResponse = SavePostResponses[keyof SavePostResponses]; + +export type ListSavedData = { + body?: never; + headers?: { + /** + * Authorization + */ + authorization?: string | null; + }; + path?: never; + query?: { + /** + * Cursor + */ + cursor?: number | null; + }; + url: '/v1/reaction/save/list'; +}; + +export type ListSavedErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type ListSavedError = ListSavedErrors[keyof ListSavedErrors]; + +export type ListSavedResponses = { + /** + * Successful Response + */ + 200: ResSavedList; +}; + +export type ListSavedResponse = ListSavedResponses[keyof ListSavedResponses]; + +export type ListCommentsData = { + body?: never; + headers?: { + /** + * Authorization + */ + authorization?: string | null; + }; + path: { + /** + * Post Id + */ + post_id: number; + }; + query?: { + /** + * Cursor + */ + cursor?: number | null; + }; + url: '/v1/reaction/post/{post_id}/comment/list'; +}; + +export type ListCommentsErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type ListCommentsError = ListCommentsErrors[keyof ListCommentsErrors]; + +export type ListCommentsResponses = { + /** + * Successful Response + */ + 200: ResCommentList; +}; + +export type ListCommentsResponse = ListCommentsResponses[keyof ListCommentsResponses]; + +export type AddCommentData = { + body: ReqComment; + headers?: { + /** + * Authorization + */ + authorization?: string | null; + }; + path: { + /** + * Post Id + */ + post_id: number; + }; + query?: never; + url: '/v1/reaction/post/{post_id}/comment'; +}; + +export type AddCommentErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type AddCommentError = AddCommentErrors[keyof AddCommentErrors]; + +export type AddCommentResponses = { + /** + * Successful Response + */ + 200: ResComment; +}; + +export type AddCommentResponse = AddCommentResponses[keyof AddCommentResponses]; + +export type DeleteCommentData = { + body?: never; + headers?: { + /** + * Authorization + */ + authorization?: string | null; + }; + path: { + /** + * Comment Id + */ + comment_id: number; + }; + query?: never; + url: '/v1/reaction/comment/{comment_id}'; +}; + +export type DeleteCommentErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type DeleteCommentError = DeleteCommentErrors[keyof DeleteCommentErrors]; + +export type DeleteCommentResponses = { + /** + * Successful Response + */ + 200: ResWebPacketProtocol; +}; + +export type DeleteCommentResponse = DeleteCommentResponses[keyof DeleteCommentResponses]; + +export type UnlikeCommentData = { + body?: never; + headers?: { + /** + * Authorization + */ + authorization?: string | null; + }; + path: { + /** + * Comment Id + */ + comment_id: number; + }; + query?: never; + url: '/v1/reaction/comment/{comment_id}/like'; +}; + +export type UnlikeCommentErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type UnlikeCommentError = UnlikeCommentErrors[keyof UnlikeCommentErrors]; + +export type UnlikeCommentResponses = { + /** + * Successful Response + */ + 200: ResCommentLike; +}; + +export type UnlikeCommentResponse = UnlikeCommentResponses[keyof UnlikeCommentResponses]; + +export type LikeCommentData = { + body?: never; + headers?: { + /** + * Authorization + */ + authorization?: string | null; + }; + path: { + /** + * Comment Id + */ + comment_id: number; + }; + query?: never; + url: '/v1/reaction/comment/{comment_id}/like'; +}; + +export type LikeCommentErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type LikeCommentError = LikeCommentErrors[keyof LikeCommentErrors]; + +export type LikeCommentResponses = { + /** + * Successful Response + */ + 200: ResCommentLike; +}; + +export type LikeCommentResponse = LikeCommentResponses[keyof LikeCommentResponses]; + +export type ListMyGakData = { + body?: never; + headers?: { + /** + * Authorization + */ + authorization?: string | null; + }; + path?: never; + query?: never; + url: '/v1/my-gak'; +}; + +export type ListMyGakErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type ListMyGakError = ListMyGakErrors[keyof ListMyGakErrors]; + +export type ListMyGakResponses = { + /** + * Successful Response + */ + 200: ResMyGakList; +}; + +export type ListMyGakResponse = ListMyGakResponses[keyof ListMyGakResponses]; + +export type AddMyGakData = { + body: ReqMyGak; + headers?: { + /** + * Authorization + */ + authorization?: string | null; + }; + path?: never; + query?: never; + url: '/v1/my-gak'; +}; + +export type AddMyGakErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type AddMyGakError = AddMyGakErrors[keyof AddMyGakErrors]; + +export type AddMyGakResponses = { + /** + * Successful Response + */ + 200: ResMyGak; +}; + +export type AddMyGakResponse = AddMyGakResponses[keyof AddMyGakResponses]; + +export type ListPresetsData = { + body?: never; + path?: never; + query?: never; + url: '/v1/my-gak/presets'; +}; + +export type ListPresetsResponses = { + /** + * Successful Response + */ + 200: ResMyGakPresets; +}; + +export type ListPresetsResponse = ListPresetsResponses[keyof ListPresetsResponses]; + +export type ScoreMyGakData = { + body: ReqMyGakScore; + path?: never; + query?: never; + url: '/v1/my-gak/score'; +}; + +export type ScoreMyGakErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type ScoreMyGakError = ScoreMyGakErrors[keyof ScoreMyGakErrors]; + +export type ScoreMyGakResponses = { + /** + * Successful Response + */ + 200: ResMyGakScore; +}; + +export type ScoreMyGakResponse = ScoreMyGakResponses[keyof ScoreMyGakResponses]; + +export type DeleteMyGakData = { + body?: never; + headers?: { + /** + * Authorization + */ + authorization?: string | null; + }; + path: { + /** + * My Gak Id + */ + my_gak_id: number; + }; + query?: never; + url: '/v1/my-gak/{my_gak_id}'; +}; + +export type DeleteMyGakErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type DeleteMyGakError = DeleteMyGakErrors[keyof DeleteMyGakErrors]; + +export type DeleteMyGakResponses = { + /** + * Successful Response + */ + 200: ResWebPacketProtocol; +}; + +export type DeleteMyGakResponse = DeleteMyGakResponses[keyof DeleteMyGakResponses]; + +export type TalkGroupsData = { + body?: never; + headers?: { + /** + * Authorization + */ + authorization?: string | null; + }; + path?: never; + query?: { + /** + * Region + * + * 보는 사람의 구 행정코드 + */ + region?: string | null; + }; + url: '/v1/talk/groups'; +}; + +export type TalkGroupsErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type TalkGroupsError = TalkGroupsErrors[keyof TalkGroupsErrors]; + +export type TalkGroupsResponses = { + /** + * Successful Response + */ + 200: ResTalkGroups; +}; + +export type TalkGroupsResponse = TalkGroupsResponses[keyof TalkGroupsResponses]; + +export type ListTalksData = { + body?: never; + headers?: { + /** + * Authorization + */ + authorization?: string | null; + }; + path?: never; + query?: { + /** + * Region + * + * 보는 사람의 구 행정코드 + */ + region?: string | null; + /** + * Topic + * + * 이 주제 글만. 없으면 전체 + */ + topic?: TalkTopic | null; + /** + * Cursor + */ + cursor?: string | null; + }; + url: '/v1/talk/list'; +}; + +export type ListTalksErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type ListTalksError = ListTalksErrors[keyof ListTalksErrors]; + +export type ListTalksResponses = { + /** + * Successful Response + */ + 200: ResTalkList; +}; + +export type ListTalksResponse = ListTalksResponses[keyof ListTalksResponses]; + +export type ListMyTalksData = { + body?: never; + headers?: { + /** + * Authorization + */ + authorization?: string | null; + }; + path?: never; + query?: { + /** + * Cursor + */ + cursor?: string | null; + }; + url: '/v1/talk/mine'; +}; + +export type ListMyTalksErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type ListMyTalksError = ListMyTalksErrors[keyof ListMyTalksErrors]; + +export type ListMyTalksResponses = { + /** + * Successful Response + */ + 200: ResTalkList; +}; + +export type ListMyTalksResponse = ListMyTalksResponses[keyof ListMyTalksResponses]; + +export type AddTalkData = { + body: ReqTalk; + headers?: { + /** + * Authorization + */ + authorization?: string | null; + }; + path?: never; + query?: never; + url: '/v1/talk'; +}; + +export type AddTalkErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type AddTalkError = AddTalkErrors[keyof AddTalkErrors]; + +export type AddTalkResponses = { + /** + * Successful Response + */ + 200: ResTalk; +}; + +export type AddTalkResponse = AddTalkResponses[keyof AddTalkResponses]; + +export type UploadTalkImageData = { + body: BodyUploadTalkImageV1TalkImagePost; + headers?: { + /** + * Authorization + */ + authorization?: string | null; + }; + path?: never; + query?: never; + url: '/v1/talk/image'; +}; + +export type UploadTalkImageErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type UploadTalkImageError = UploadTalkImageErrors[keyof UploadTalkImageErrors]; + +export type UploadTalkImageResponses = { + /** + * Successful Response + */ + 200: ResTalkImage; +}; + +export type UploadTalkImageResponse = UploadTalkImageResponses[keyof UploadTalkImageResponses]; + +export type GetTalkImageData = { + body?: never; + path: { + /** + * Name + */ + name: string; + }; + query?: never; + url: '/v1/talk/image/{name}'; +}; + +export type GetTalkImageErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type GetTalkImageError = GetTalkImageErrors[keyof GetTalkImageErrors]; + +export type GetTalkImageResponses = { + /** + * Successful Response + */ + 200: unknown; +}; + +export type DeleteTalkData = { + body?: never; + headers?: { + /** + * Authorization + */ + authorization?: string | null; + }; + path: { + /** + * Talk Id + */ + talk_id: number; + }; + query?: never; + url: '/v1/talk/{talk_id}'; +}; + +export type DeleteTalkErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type DeleteTalkError = DeleteTalkErrors[keyof DeleteTalkErrors]; + +export type DeleteTalkResponses = { + /** + * Successful Response + */ + 200: ResWebPacketProtocol; +}; + +export type DeleteTalkResponse = DeleteTalkResponses[keyof DeleteTalkResponses]; + +export type UnlikeTalkData = { + body?: never; + headers?: { + /** + * Authorization + */ + authorization?: string | null; + }; + path: { + /** + * Talk Id + */ + talk_id: number; + }; + query?: never; + url: '/v1/talk/{talk_id}/like'; +}; + +export type UnlikeTalkErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type UnlikeTalkError = UnlikeTalkErrors[keyof UnlikeTalkErrors]; + +export type UnlikeTalkResponses = { + /** + * Successful Response + */ + 200: ResTalkLike; +}; + +export type UnlikeTalkResponse = UnlikeTalkResponses[keyof UnlikeTalkResponses]; + +export type LikeTalkData = { + body?: never; + headers?: { + /** + * Authorization + */ + authorization?: string | null; + }; + path: { + /** + * Talk Id + */ + talk_id: number; + }; + query?: never; + url: '/v1/talk/{talk_id}/like'; +}; + +export type LikeTalkErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type LikeTalkError = LikeTalkErrors[keyof LikeTalkErrors]; + +export type LikeTalkResponses = { + /** + * Successful Response + */ + 200: ResTalkLike; +}; + +export type LikeTalkResponse = LikeTalkResponses[keyof LikeTalkResponses]; + +export type ReportTalkData = { + body: ReqTalkReport; + headers?: { + /** + * Authorization + */ + authorization?: string | null; + }; + path: { + /** + * Talk Id + */ + talk_id: number; + }; + query?: never; + url: '/v1/talk/{talk_id}/report'; +}; + +export type ReportTalkErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type ReportTalkError = ReportTalkErrors[keyof ReportTalkErrors]; + +export type ReportTalkResponses = { + /** + * Successful Response + */ + 200: ResWebPacketProtocol; +}; + +export type ReportTalkResponse = ReportTalkResponses[keyof ReportTalkResponses]; + +export type BlockTalkAuthorData = { + body?: never; + headers?: { + /** + * Authorization + */ + authorization?: string | null; + }; + path: { + /** + * Talk Id + */ + talk_id: number; + }; + query?: never; + url: '/v1/talk/{talk_id}/block'; +}; + +export type BlockTalkAuthorErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type BlockTalkAuthorError = BlockTalkAuthorErrors[keyof BlockTalkAuthorErrors]; + +export type BlockTalkAuthorResponses = { + /** + * Successful Response + */ + 200: ResWebPacketProtocol; +}; + +export type BlockTalkAuthorResponse = BlockTalkAuthorResponses[keyof BlockTalkAuthorResponses]; + +export type GetWatchSummaryData = { + body?: never; + path?: never; + query: { + /** + * Region + * + * 구 행정코드 + */ + region: string; + /** + * Pick + * + * 내 각 코드, 쉼표로 최대 3개 (예: running,laundry) + */ + pick?: string | null; + }; + url: '/v1/watch/summary'; +}; + +export type GetWatchSummaryErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type GetWatchSummaryError = GetWatchSummaryErrors[keyof GetWatchSummaryErrors]; + +export type GetWatchSummaryResponses = { + /** + * Successful Response + */ + 200: ResWatchSummary; +}; + +export type GetWatchSummaryResponse = GetWatchSummaryResponses[keyof GetWatchSummaryResponses]; + +export type GetImageData = { + body?: never; + path?: never; + query: { + /** + * Url + * + * 원본 이미지 주소 + */ + url: string; + }; + url: '/v1/image'; +}; + +export type GetImageErrors = { + /** + * Bad Request + */ + 400: unknown; + /** + * Validation Error + */ + 422: HttpValidationError; + /** + * Bad Gateway + */ + 502: unknown; +}; + +export type GetImageError = GetImageErrors[keyof GetImageErrors]; + +export type GetImageResponses = { + /** + * Successful Response + */ + 200: unknown; +}; + +export type GetTodayPageData = { + body?: never; + path: { + /** + * Sido + */ + sido: string; + /** + * Place + */ + place: string; + }; + query?: never; + url: '/v1/seo/today/{sido}/{place}'; +}; + +export type GetTodayPageErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type GetTodayPageError = GetTodayPageErrors[keyof GetTodayPageErrors]; + +export type GetTodayPageResponses = { + /** + * Successful Response + */ + 200: string; +}; + +export type GetTodayPageResponse = GetTodayPageResponses[keyof GetTodayPageResponses]; + +export type GetTodayGuPageData = { + body?: never; + path: { + /** + * Sido + */ + sido: string; + /** + * Place + */ + place: string; + /** + * Gu + */ + gu: string; + }; + query?: never; + url: '/v1/seo/today/{sido}/{place}/{gu}'; +}; + +export type GetTodayGuPageErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type GetTodayGuPageError = GetTodayGuPageErrors[keyof GetTodayGuPageErrors]; + +export type GetTodayGuPageResponses = { + /** + * Successful Response + */ + 200: string; +}; + +export type GetTodayGuPageResponse = GetTodayGuPageResponses[keyof GetTodayGuPageResponses]; + +export type GetTomorrowPageData = { + body?: never; + path: { + /** + * Sido + */ + sido: string; + /** + * Place + */ + place: string; + }; + query?: never; + url: '/v1/seo/tomorrow/{sido}/{place}'; +}; + +export type GetTomorrowPageErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type GetTomorrowPageError = GetTomorrowPageErrors[keyof GetTomorrowPageErrors]; + +export type GetTomorrowPageResponses = { + /** + * Successful Response + */ + 200: string; +}; + +export type GetTomorrowPageResponse = GetTomorrowPageResponses[keyof GetTomorrowPageResponses]; + +export type GetTomorrowGuPageData = { + body?: never; + path: { + /** + * Sido + */ + sido: string; + /** + * Place + */ + place: string; + /** + * Gu + */ + gu: string; + }; + query?: never; + url: '/v1/seo/tomorrow/{sido}/{place}/{gu}'; +}; + +export type GetTomorrowGuPageErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type GetTomorrowGuPageError = GetTomorrowGuPageErrors[keyof GetTomorrowGuPageErrors]; + +export type GetTomorrowGuPageResponses = { + /** + * Successful Response + */ + 200: string; +}; + +export type GetTomorrowGuPageResponse = GetTomorrowGuPageResponses[keyof GetTomorrowGuPageResponses]; + +export type ListCardsData = { + body?: never; + headers?: { + /** + * X-Admin-Key + */ + 'x-admin-key'?: string | null; + }; + path?: never; + query?: { + /** + * Limit + */ + limit?: number; + }; + url: '/v1/card'; +}; + +export type ListCardsErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type ListCardsError = ListCardsErrors[keyof ListCardsErrors]; + +export type ListCardsResponses = { + /** + * Successful Response + */ + 200: ResCardList; +}; + +export type ListCardsResponse = ListCardsResponses[keyof ListCardsResponses]; + +export type CreateCardData = { + body: ReqCardCreate; + headers?: { + /** + * X-Admin-Key + */ + 'x-admin-key'?: string | null; + }; + path?: never; + query?: never; + url: '/v1/card'; +}; + +export type CreateCardErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type CreateCardError = CreateCardErrors[keyof CreateCardErrors]; + +export type CreateCardResponses = { + /** + * Successful Response + */ + 200: ResCard; +}; + +export type CreateCardResponse = CreateCardResponses[keyof CreateCardResponses]; + +export type PublishCardData = { + body?: never; + headers?: { + /** + * X-Admin-Key + */ + 'x-admin-key'?: string | null; + }; + path: { + /** + * Card Id + */ + card_id: number; + }; + query?: never; + url: '/v1/card/{card_id}/publish'; +}; + +export type PublishCardErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type PublishCardError = PublishCardErrors[keyof PublishCardErrors]; + +export type PublishCardResponses = { + /** + * Successful Response + */ + 200: ResCard; +}; + +export type PublishCardResponse = PublishCardResponses[keyof PublishCardResponses]; + +export type RejectCardData = { + body?: never; + headers?: { + /** + * X-Admin-Key + */ + 'x-admin-key'?: string | null; + }; + path: { + /** + * Card Id + */ + card_id: number; + }; + query?: never; + url: '/v1/card/{card_id}/reject'; +}; + +export type RejectCardErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type RejectCardError = RejectCardErrors[keyof RejectCardErrors]; + +export type RejectCardResponses = { + /** + * Successful Response + */ + 200: ResCard; +}; + +export type RejectCardResponse = RejectCardResponses[keyof RejectCardResponses]; + +export type GetCardImageData = { + body?: never; + path: { + /** + * Card Id + */ + card_id: number; + /** + * Seq + */ + seq: number; + }; + query?: never; + url: '/v1/card/{card_id}/{seq}.jpg'; +}; + +export type GetCardImageErrors = { + /** + * Not Found + */ + 404: unknown; + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type GetCardImageError = GetCardImageErrors[keyof GetCardImageErrors]; + +export type GetCardImageResponses = { + /** + * Successful Response + */ + 200: unknown; +}; + +export type HealthzHealthzGetData = { + body?: never; + path?: never; + query?: never; + url: '/healthz'; +}; + +export type HealthzHealthzGetResponses = { + /** + * Successful Response + */ + 200: ResHealth; +}; + +export type HealthzHealthzGetResponse = HealthzHealthzGetResponses[keyof HealthzHealthzGetResponses]; diff --git a/admin/src/api/setup.ts b/admin/src/api/setup.ts new file mode 100644 index 0000000..9f00620 --- /dev/null +++ b/admin/src/api/setup.ts @@ -0,0 +1,5 @@ +import { client } from './client/client.gen' + +export const API_BASE_URL: string = import.meta.env.VITE_API_BASE_URL ?? 'http://localhost:9810' + +client.setConfig({ baseUrl: API_BASE_URL, throwOnError: true }) diff --git a/admin/src/api/targets.ts b/admin/src/api/targets.ts new file mode 100644 index 0000000..f78a7ec --- /dev/null +++ b/admin/src/api/targets.ts @@ -0,0 +1,28 @@ +import { useQuery } from '@tanstack/react-query' + +/** 올릴 곳 (관리자 서버가 비밀값을 가진 곳만 나온다): 로컬 백엔드, 킹서버 */ +export type Target = { id: 'local' | 'king'; label: string; site: string; api: string } + +export function useTargets() { + return useQuery({ + queryKey: ['targets'], + queryFn: async () => (await (await fetch('/api/targets')).json()) as Target[], + staleTime: Infinity, + }) +} + +export type CardSummary = { card_id: number; status: 1 | 2 | 3; post_id?: number; ig_media_id?: string } + +export async function postCard(target: Target['id'], body: unknown): Promise { + const r = await fetch(`/api/post?target=${target}`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(body) }) + const res = await r.json() + if (!r.ok || res.result?.success === false) throw new Error(res.error ?? res.msg ?? res.result?.desc ?? `HTTP ${r.status}`) + return res +} + +export async function cardAction(target: Target['id'], id: number, what: 'publish' | 'reject' | 'instagram'): Promise { + const r = await fetch(`/api/cards/${id}/${what}?target=${target}`, { method: 'POST' }) + const res = await r.json() + if (!r.ok || res.result?.success === false) throw new Error(res.error ?? res.msg ?? res.result?.desc ?? `HTTP ${r.status}`) + return res +} diff --git a/admin/src/assets/gak-card/iced_hot.webp b/admin/src/assets/gak-card/iced_hot.webp new file mode 100644 index 0000000..4b8c234 Binary files /dev/null and b/admin/src/assets/gak-card/iced_hot.webp differ diff --git a/admin/src/assets/gak-card/walk.webp b/admin/src/assets/gak-card/walk.webp new file mode 100644 index 0000000..3c5428c Binary files /dev/null and b/admin/src/assets/gak-card/walk.webp differ diff --git a/admin/src/assets/gak-card/yajang.webp b/admin/src/assets/gak-card/yajang.webp new file mode 100644 index 0000000..688b1b4 Binary files /dev/null and b/admin/src/assets/gak-card/yajang.webp differ diff --git a/admin/src/assets/ootd/chilly-f20-casual.webp b/admin/src/assets/ootd/chilly-f20-casual.webp new file mode 100644 index 0000000..27e53d1 Binary files /dev/null and b/admin/src/assets/ootd/chilly-f20-casual.webp differ diff --git a/admin/src/assets/ootd/cold-f30-casual.webp b/admin/src/assets/ootd/cold-f30-casual.webp new file mode 100644 index 0000000..68b5e82 Binary files /dev/null and b/admin/src/assets/ootd/cold-f30-casual.webp differ diff --git a/admin/src/assets/ootd/cool-f20-casual.webp b/admin/src/assets/ootd/cool-f20-casual.webp new file mode 100644 index 0000000..5be610b Binary files /dev/null and b/admin/src/assets/ootd/cool-f20-casual.webp differ diff --git a/admin/src/assets/ootd/cool-f30-casual.webp b/admin/src/assets/ootd/cool-f30-casual.webp new file mode 100644 index 0000000..9dbf0b1 Binary files /dev/null and b/admin/src/assets/ootd/cool-f30-casual.webp differ diff --git a/admin/src/assets/ootd/cool-f40-casual.webp b/admin/src/assets/ootd/cool-f40-casual.webp new file mode 100644 index 0000000..26ce55e Binary files /dev/null and b/admin/src/assets/ootd/cool-f40-casual.webp differ diff --git a/admin/src/assets/ootd/cool-m20-casual.webp b/admin/src/assets/ootd/cool-m20-casual.webp new file mode 100644 index 0000000..a439388 Binary files /dev/null and b/admin/src/assets/ootd/cool-m20-casual.webp differ diff --git a/admin/src/assets/ootd/cool-m30-casual.webp b/admin/src/assets/ootd/cool-m30-casual.webp new file mode 100644 index 0000000..c8efebb Binary files /dev/null and b/admin/src/assets/ootd/cool-m30-casual.webp differ diff --git a/admin/src/assets/ootd/cool-m40-casual.webp b/admin/src/assets/ootd/cool-m40-casual.webp new file mode 100644 index 0000000..d704968 Binary files /dev/null and b/admin/src/assets/ootd/cool-m40-casual.webp differ diff --git a/admin/src/assets/ootd/freezing-m30-casual.webp b/admin/src/assets/ootd/freezing-m30-casual.webp new file mode 100644 index 0000000..ee5850b Binary files /dev/null and b/admin/src/assets/ootd/freezing-m30-casual.webp differ diff --git a/admin/src/assets/ootd/hot-f20-casual.webp b/admin/src/assets/ootd/hot-f20-casual.webp new file mode 100644 index 0000000..b3f986c Binary files /dev/null and b/admin/src/assets/ootd/hot-f20-casual.webp differ diff --git a/admin/src/assets/ootd/hot-f30-casual.webp b/admin/src/assets/ootd/hot-f30-casual.webp new file mode 100644 index 0000000..16f88e2 Binary files /dev/null and b/admin/src/assets/ootd/hot-f30-casual.webp differ diff --git a/admin/src/assets/ootd/hot-m20-casual.webp b/admin/src/assets/ootd/hot-m20-casual.webp new file mode 100644 index 0000000..e4b221f Binary files /dev/null and b/admin/src/assets/ootd/hot-m20-casual.webp differ diff --git a/admin/src/assets/ootd/mild-f20-casual.webp b/admin/src/assets/ootd/mild-f20-casual.webp new file mode 100644 index 0000000..ee458c2 Binary files /dev/null and b/admin/src/assets/ootd/mild-f20-casual.webp differ diff --git a/admin/src/assets/ootd/mild-f30-casual.webp b/admin/src/assets/ootd/mild-f30-casual.webp new file mode 100644 index 0000000..0fffd81 Binary files /dev/null and b/admin/src/assets/ootd/mild-f30-casual.webp differ diff --git a/admin/src/assets/ootd/mild-f40-casual.webp b/admin/src/assets/ootd/mild-f40-casual.webp new file mode 100644 index 0000000..a4f9ab4 Binary files /dev/null and b/admin/src/assets/ootd/mild-f40-casual.webp differ diff --git a/admin/src/assets/ootd/mild-m20-casual.webp b/admin/src/assets/ootd/mild-m20-casual.webp new file mode 100644 index 0000000..e362649 Binary files /dev/null and b/admin/src/assets/ootd/mild-m20-casual.webp differ diff --git a/admin/src/assets/ootd/mild-m30-casual.webp b/admin/src/assets/ootd/mild-m30-casual.webp new file mode 100644 index 0000000..a685acf Binary files /dev/null and b/admin/src/assets/ootd/mild-m30-casual.webp differ diff --git a/admin/src/assets/ootd/mild-m40-casual.webp b/admin/src/assets/ootd/mild-m40-casual.webp new file mode 100644 index 0000000..16c6aad Binary files /dev/null and b/admin/src/assets/ootd/mild-m40-casual.webp differ diff --git a/admin/src/assets/ootd/warm-m20-casual.webp b/admin/src/assets/ootd/warm-m20-casual.webp new file mode 100644 index 0000000..7fd390e Binary files /dev/null and b/admin/src/assets/ootd/warm-m20-casual.webp differ diff --git a/admin/src/assets/tarot-back.webp b/admin/src/assets/tarot-back.webp new file mode 100644 index 0000000..a66f0b3 Binary files /dev/null and b/admin/src/assets/tarot-back.webp differ diff --git a/admin/src/assets/tarot-bg/coin.webp b/admin/src/assets/tarot-bg/coin.webp new file mode 100644 index 0000000..1b42ae6 Binary files /dev/null and b/admin/src/assets/tarot-bg/coin.webp differ diff --git a/admin/src/assets/tarot-bg/heart.webp b/admin/src/assets/tarot-bg/heart.webp new file mode 100644 index 0000000..e2b39f7 Binary files /dev/null and b/admin/src/assets/tarot-bg/heart.webp differ diff --git a/admin/src/assets/tarot-bg/star.webp b/admin/src/assets/tarot-bg/star.webp new file mode 100644 index 0000000..bc6348f Binary files /dev/null and b/admin/src/assets/tarot-bg/star.webp differ diff --git a/admin/src/assets/tarot-front.webp b/admin/src/assets/tarot-front.webp new file mode 100644 index 0000000..620741f Binary files /dev/null and b/admin/src/assets/tarot-front.webp differ diff --git a/admin/src/cards/Frame.tsx b/admin/src/cards/Frame.tsx new file mode 100644 index 0000000..0787a05 --- /dev/null +++ b/admin/src/cards/Frame.tsx @@ -0,0 +1,32 @@ +import type { CSSProperties, ReactNode } from 'react' +import { themeVars } from './themes' + +/** 줄바꿈(\n)은 카드에서도 줄바꿈, *별표* 사이는 강조색 */ +export function Lines({ text }: { text: string }) { + return text.split('\n').map((line, i) => ( + + {line.split(/(\*[^*]+\*)/).map((part, j) => (part.startsWith('*') && part.endsWith('*') ? {part.slice(1, -1)} : part))} + + )) +} + +export function Frame({ page, total, theme, skin, className = '', style, children }: { page: number; total: number; theme?: string; skin?: string; className?: string; style?: CSSProperties; children: ReactNode }) { + return ( +
+
+
+