{
 "openapi": "3.1.1",
 "info": {
  "title": "루첼라 API — 중국관",
  "version": "2026-10-21",
  "description": "숨표AI · 중국관. 인증은 머리말 X-Lucela-API-Key 하나, 성공·오류는 같은 네 칸 봉투(status · data · error · meta)."
 },
 "servers": [
  {
   "url": "https://apis.lucela.kr"
  }
 ],
 "tags": [
  {
   "name": "메뉴 · 중국관",
   "description": "중국관"
  }
 ],
 "paths": {
  "/v1/svc/cn/taiyi": {
   "post": {
    "tags": [
     "메뉴 · 중국관"
    ],
    "summary": "태을신수 계산",
    "description": "太乙神數 · 태을로 보는 올해의 결",
    "operationId": "svc__cn__taiyi",
    "security": [
     {
      "ApiKey": []
     }
    ],
    "x-lucela-mcp-tool": "soompyo_calculate_taiyi",
    "x-lucela-tradition": "lifehub_cn",
    "x-implementation-status": "SANDBOX_ONLY",
    "x-lucela-billing-unit": "성공 계산 1",
    "x-lucela-unit-weight": 1,
    "x-lucela-menu": {
     "id": "cn.taiyi",
     "operation": "POST /v1/lifehub/compute",
     "fixed": {
      "experience_id": "taiyi"
     },
     "mcp": {
      "bundle": "/mcp/svc/cn",
      "tool": "soompyo_calculate_taiyi",
      "aliases": [
       "cn__taiyi"
      ]
     }
    },
    "parameters": [
     {
      "name": "Idempotency-Key",
      "in": "header",
      "required": true,
      "schema": {
       "type": "string",
       "pattern": "^[A-Za-z0-9_-]{16,128}$"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "date": {
          "type": "string",
          "description": "기준일 — 오늘 · 그 해 · 그 달을 정하는 날(서버 시계를 읽지 않는다)",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
         },
         "select": {
          "type": "string",
          "description": "고르기 — 이 메뉴의 갈래",
          "enum": [
           "0",
           "1",
           "2",
           "3"
          ]
         },
         "birth": {
          "$ref": "#/components/schemas/MenuIn_birth_1"
         },
         "options": {
          "$ref": "#/components/schemas/MenuIn_options_1"
         }
        },
        "additionalProperties": false,
        "required": [
         "date",
         "birth"
        ]
       },
       "example": {
        "date": "2026-10-29",
        "birth": {
         "calendar": "solar",
         "date": "1990-01-15",
         "time": "09:30",
         "sex_basis": "male",
         "birth_place": {
          "tz": "Asia/Seoul",
          "longitude": 127.0
         }
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "성공 — 봉투 한 모양(밑 연산의 data · 보기가 있으면 그 칸만 · meta.menu)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Envelope"
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/E400"
     },
     "401": {
      "$ref": "#/components/responses/E401"
     },
     "403": {
      "$ref": "#/components/responses/E403"
     },
     "404": {
      "$ref": "#/components/responses/E404"
     },
     "409": {
      "$ref": "#/components/responses/E409"
     },
     "413": {
      "$ref": "#/components/responses/E413"
     },
     "422": {
      "$ref": "#/components/responses/E422"
     },
     "429": {
      "$ref": "#/components/responses/E429"
     },
     "502": {
      "$ref": "#/components/responses/E502"
     },
     "503": {
      "$ref": "#/components/responses/E503"
     }
    }
   }
  },
  "/v1/svc/cn/iching": {
   "post": {
    "tags": [
     "메뉴 · 중국관"
    ],
    "summary": "주역 뽑기",
    "description": "周易 · 동전으로 묻고 답하다",
    "operationId": "svc__cn__iching",
    "security": [
     {
      "ApiKey": []
     }
    ],
    "x-lucela-mcp-tool": "soompyo_draw_iching",
    "x-lucela-tradition": "lifehub_cn",
    "x-implementation-status": "SANDBOX_ONLY",
    "x-lucela-billing-unit": "성공 계산 1",
    "x-lucela-unit-weight": 1,
    "x-lucela-menu": {
     "id": "cn.iching",
     "operation": "POST /v1/lifehub/draw",
     "fixed": {
      "experience_id": "iching"
     },
     "mcp": {
      "bundle": "/mcp/svc/cn",
      "tool": "soompyo_draw_iching",
      "aliases": [
       "cn__iching"
      ]
     }
    },
    "parameters": [
     {
      "name": "Idempotency-Key",
      "in": "header",
      "required": true,
      "schema": {
       "type": "string",
       "pattern": "^[A-Za-z0-9_-]{16,128}$"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "date": {
          "type": "string",
          "description": "기준일 — 오늘 · 그 해 · 그 달을 정하는 날(서버 시계를 읽지 않는다)",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
         },
         "seed": {
          "type": "string",
          "description": "시드 — 같은 날 같은 시드면 같은 뽑기",
          "pattern": "^[A-Za-z0-9_-]{1,64}$"
         },
         "options": {
          "$ref": "#/components/schemas/MenuIn_options_2"
         }
        },
        "additionalProperties": false,
        "required": [
         "date"
        ]
       },
       "example": {
        "date": "2026-10-29",
        "seed": "sandbox-1"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "성공 — 봉투 한 모양(밑 연산의 data · 보기가 있으면 그 칸만 · meta.menu)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Envelope"
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/E400"
     },
     "401": {
      "$ref": "#/components/responses/E401"
     },
     "403": {
      "$ref": "#/components/responses/E403"
     },
     "404": {
      "$ref": "#/components/responses/E404"
     },
     "409": {
      "$ref": "#/components/responses/E409"
     },
     "413": {
      "$ref": "#/components/responses/E413"
     },
     "422": {
      "$ref": "#/components/responses/E422"
     },
     "429": {
      "$ref": "#/components/responses/E429"
     },
     "502": {
      "$ref": "#/components/responses/E502"
     },
     "503": {
      "$ref": "#/components/responses/E503"
     }
    }
   }
  },
  "/v1/svc/cn/jamidusu": {
   "post": {
    "tags": [
     "메뉴 · 중국관"
    ],
    "summary": "자미두수 계산",
    "description": "紫微斗數 · 별자리 명반(자미두수)",
    "operationId": "svc__cn__jamidusu",
    "security": [
     {
      "ApiKey": []
     }
    ],
    "x-lucela-mcp-tool": "soompyo_calculate_jamidusu",
    "x-lucela-tradition": "lifehub_cn",
    "x-implementation-status": "SANDBOX_ONLY",
    "x-lucela-billing-unit": "성공 계산 1",
    "x-lucela-unit-weight": 1,
    "x-lucela-menu": {
     "id": "cn.jamidusu",
     "operation": "POST /v1/lifehub/compute",
     "fixed": {
      "experience_id": "jamidusu"
     },
     "mcp": {
      "bundle": "/mcp/svc/cn",
      "tool": "soompyo_calculate_jamidusu",
      "aliases": [
       "cn__jamidusu"
      ]
     }
    },
    "parameters": [
     {
      "name": "Idempotency-Key",
      "in": "header",
      "required": true,
      "schema": {
       "type": "string",
       "pattern": "^[A-Za-z0-9_-]{16,128}$"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "date": {
          "type": "string",
          "description": "기준일 — 오늘 · 그 해 · 그 달을 정하는 날(서버 시계를 읽지 않는다)",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
         },
         "select": {
          "type": "string",
          "description": "고르기 — 이 메뉴의 갈래",
          "enum": [
           "tonghaeng",
           "jungju",
           "ipchun",
           "jungju-earth",
           "jungju-human",
           "leap-next",
           "leap-this",
           "jaja-current"
          ]
         },
         "birth": {
          "$ref": "#/components/schemas/MenuIn_birth_1"
         },
         "options": {
          "$ref": "#/components/schemas/MenuIn_options_1"
         }
        },
        "additionalProperties": false,
        "required": [
         "date",
         "birth"
        ]
       },
       "example": {
        "date": "2026-10-29",
        "birth": {
         "calendar": "solar",
         "date": "1990-01-15",
         "time": "09:30",
         "sex_basis": "male",
         "birth_place": {
          "tz": "Asia/Seoul",
          "longitude": 127.0
         }
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "성공 — 봉투 한 모양(밑 연산의 data · 보기가 있으면 그 칸만 · meta.menu)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Envelope"
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/E400"
     },
     "401": {
      "$ref": "#/components/responses/E401"
     },
     "403": {
      "$ref": "#/components/responses/E403"
     },
     "404": {
      "$ref": "#/components/responses/E404"
     },
     "409": {
      "$ref": "#/components/responses/E409"
     },
     "413": {
      "$ref": "#/components/responses/E413"
     },
     "422": {
      "$ref": "#/components/responses/E422"
     },
     "429": {
      "$ref": "#/components/responses/E429"
     },
     "502": {
      "$ref": "#/components/responses/E502"
     },
     "503": {
      "$ref": "#/components/responses/E503"
     }
    }
   }
  },
  "/v1/svc/cn/gimun": {
   "post": {
    "tags": [
     "메뉴 · 중국관"
    ],
    "summary": "기문둔갑 계산",
    "description": "奇門遁甲 · 때와 방위의 판",
    "operationId": "svc__cn__gimun",
    "security": [
     {
      "ApiKey": []
     }
    ],
    "x-lucela-mcp-tool": "soompyo_calculate_gimun",
    "x-lucela-tradition": "lifehub_cn",
    "x-implementation-status": "SANDBOX_ONLY",
    "x-lucela-billing-unit": "성공 계산 1",
    "x-lucela-unit-weight": 1,
    "x-lucela-menu": {
     "id": "cn.gimun",
     "operation": "POST /v1/lifehub/compute",
     "fixed": {
      "experience_id": "gimun"
     },
     "mcp": {
      "bundle": "/mcp/svc/cn",
      "tool": "soompyo_calculate_gimun",
      "aliases": [
       "cn__gimun"
      ]
     }
    },
    "parameters": [
     {
      "name": "Idempotency-Key",
      "in": "header",
      "required": true,
      "schema": {
       "type": "string",
       "pattern": "^[A-Za-z0-9_-]{16,128}$"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "date": {
          "type": "string",
          "description": "기준일 — 오늘 · 그 해 · 그 달을 정하는 날(서버 시계를 읽지 않는다)",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
         },
         "birth": {
          "$ref": "#/components/schemas/MenuIn_birth_1"
         },
         "options": {
          "$ref": "#/components/schemas/MenuIn_options_1"
         }
        },
        "additionalProperties": false,
        "required": [
         "date",
         "birth"
        ]
       },
       "example": {
        "date": "2026-10-29",
        "birth": {
         "calendar": "solar",
         "date": "1990-01-15",
         "time": "09:30",
         "sex_basis": "male",
         "birth_place": {
          "tz": "Asia/Seoul",
          "longitude": 127.0
         }
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "성공 — 봉투 한 모양(밑 연산의 data · 보기가 있으면 그 칸만 · meta.menu)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Envelope"
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/E400"
     },
     "401": {
      "$ref": "#/components/responses/E401"
     },
     "403": {
      "$ref": "#/components/responses/E403"
     },
     "404": {
      "$ref": "#/components/responses/E404"
     },
     "409": {
      "$ref": "#/components/responses/E409"
     },
     "413": {
      "$ref": "#/components/responses/E413"
     },
     "422": {
      "$ref": "#/components/responses/E422"
     },
     "429": {
      "$ref": "#/components/responses/E429"
     },
     "502": {
      "$ref": "#/components/responses/E502"
     },
     "503": {
      "$ref": "#/components/responses/E503"
     }
    }
   }
  },
  "/v1/svc/cn/maehwa": {
   "post": {
    "tags": [
     "메뉴 · 중국관"
    ],
    "summary": "매화역수 계산",
    "description": "梅花易數 · 숫자·시간의 괘",
    "operationId": "svc__cn__maehwa",
    "security": [
     {
      "ApiKey": []
     }
    ],
    "x-lucela-mcp-tool": "soompyo_calculate_maehwa",
    "x-lucela-tradition": "lifehub_cn",
    "x-implementation-status": "SANDBOX_ONLY",
    "x-lucela-billing-unit": "성공 계산 1",
    "x-lucela-unit-weight": 1,
    "x-lucela-menu": {
     "id": "cn.maehwa",
     "operation": "POST /v1/lifehub/compute",
     "fixed": {
      "experience_id": "maehwa"
     },
     "mcp": {
      "bundle": "/mcp/svc/cn",
      "tool": "soompyo_calculate_maehwa",
      "aliases": [
       "cn__maehwa"
      ]
     }
    },
    "parameters": [
     {
      "name": "Idempotency-Key",
      "in": "header",
      "required": true,
      "schema": {
       "type": "string",
       "pattern": "^[A-Za-z0-9_-]{16,128}$"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "date": {
          "type": "string",
          "description": "기준일 — 오늘 · 그 해 · 그 달을 정하는 날(서버 시계를 읽지 않는다)",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
         },
         "birth": {
          "$ref": "#/components/schemas/MenuIn_birth_1"
         },
         "options": {
          "$ref": "#/components/schemas/MenuIn_options_1"
         }
        },
        "additionalProperties": false,
        "required": [
         "date",
         "birth"
        ]
       },
       "example": {
        "date": "2026-10-29",
        "birth": {
         "calendar": "solar",
         "date": "1990-01-15",
         "time": "09:30",
         "sex_basis": "male",
         "birth_place": {
          "tz": "Asia/Seoul",
          "longitude": 127.0
         }
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "성공 — 봉투 한 모양(밑 연산의 data · 보기가 있으면 그 칸만 · meta.menu)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Envelope"
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/E400"
     },
     "401": {
      "$ref": "#/components/responses/E401"
     },
     "403": {
      "$ref": "#/components/responses/E403"
     },
     "404": {
      "$ref": "#/components/responses/E404"
     },
     "409": {
      "$ref": "#/components/responses/E409"
     },
     "413": {
      "$ref": "#/components/responses/E413"
     },
     "422": {
      "$ref": "#/components/responses/E422"
     },
     "429": {
      "$ref": "#/components/responses/E429"
     },
     "502": {
      "$ref": "#/components/responses/E502"
     },
     "503": {
      "$ref": "#/components/responses/E503"
     }
    }
   }
  },
  "/v1/svc/cn/cezi": {
   "post": {
    "tags": [
     "메뉴 · 중국관"
    ],
    "summary": "측자 뽑기",
    "description": "測字 · 오늘의 한 글자",
    "operationId": "svc__cn__cezi",
    "security": [
     {
      "ApiKey": []
     }
    ],
    "x-lucela-mcp-tool": "soompyo_draw_cezi",
    "x-lucela-tradition": "lifehub_cn",
    "x-implementation-status": "SANDBOX_ONLY",
    "x-lucela-billing-unit": "성공 계산 1",
    "x-lucela-unit-weight": 1,
    "x-lucela-menu": {
     "id": "cn.cezi",
     "operation": "POST /v1/lifehub/draw",
     "fixed": {
      "experience_id": "cezi"
     },
     "mcp": {
      "bundle": "/mcp/svc/cn",
      "tool": "soompyo_draw_cezi",
      "aliases": [
       "cn__cezi"
      ]
     }
    },
    "parameters": [
     {
      "name": "Idempotency-Key",
      "in": "header",
      "required": true,
      "schema": {
       "type": "string",
       "pattern": "^[A-Za-z0-9_-]{16,128}$"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "date": {
          "type": "string",
          "description": "기준일 — 오늘 · 그 해 · 그 달을 정하는 날(서버 시계를 읽지 않는다)",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
         },
         "seed": {
          "type": "string",
          "description": "시드 — 같은 날 같은 시드면 같은 뽑기",
          "pattern": "^[A-Za-z0-9_-]{1,64}$"
         },
         "birth": {
          "$ref": "#/components/schemas/MenuIn_birth_2"
         },
         "options": {
          "$ref": "#/components/schemas/MenuIn_options_1"
         }
        },
        "additionalProperties": false,
        "required": [
         "date"
        ]
       },
       "example": {
        "date": "2026-10-29",
        "seed": "sandbox-1"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "성공 — 봉투 한 모양(밑 연산의 data · 보기가 있으면 그 칸만 · meta.menu)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Envelope"
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/E400"
     },
     "401": {
      "$ref": "#/components/responses/E401"
     },
     "403": {
      "$ref": "#/components/responses/E403"
     },
     "404": {
      "$ref": "#/components/responses/E404"
     },
     "409": {
      "$ref": "#/components/responses/E409"
     },
     "413": {
      "$ref": "#/components/responses/E413"
     },
     "422": {
      "$ref": "#/components/responses/E422"
     },
     "429": {
      "$ref": "#/components/responses/E429"
     },
     "502": {
      "$ref": "#/components/responses/E502"
     },
     "503": {
      "$ref": "#/components/responses/E503"
     }
    }
   }
  },
  "/v1/svc/cn/qizheng": {
   "post": {
    "tags": [
     "메뉴 · 중국관"
    ],
    "summary": "칠정사여 계산",
    "description": "七政四餘 · 일곱 별과 네 그림자",
    "operationId": "svc__cn__qizheng",
    "security": [
     {
      "ApiKey": []
     }
    ],
    "x-lucela-mcp-tool": "soompyo_calculate_qizheng",
    "x-lucela-tradition": "lifehub_cn",
    "x-implementation-status": "SANDBOX_ONLY",
    "x-lucela-billing-unit": "성공 계산 1",
    "x-lucela-unit-weight": 1,
    "x-lucela-menu": {
     "id": "cn.qizheng",
     "operation": "POST /v1/lifehub/compute",
     "fixed": {
      "experience_id": "qizheng"
     },
     "mcp": {
      "bundle": "/mcp/svc/cn",
      "tool": "soompyo_calculate_qizheng",
      "aliases": [
       "cn__qizheng"
      ]
     }
    },
    "parameters": [
     {
      "name": "Idempotency-Key",
      "in": "header",
      "required": true,
      "schema": {
       "type": "string",
       "pattern": "^[A-Za-z0-9_-]{16,128}$"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "date": {
          "type": "string",
          "description": "기준일 — 오늘 · 그 해 · 그 달을 정하는 날(서버 시계를 읽지 않는다)",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
         },
         "birth": {
          "$ref": "#/components/schemas/MenuIn_birth_1"
         },
         "options": {
          "$ref": "#/components/schemas/MenuIn_options_1"
         }
        },
        "additionalProperties": false,
        "required": [
         "date",
         "birth"
        ]
       },
       "example": {
        "date": "2026-10-29",
        "birth": {
         "calendar": "solar",
         "date": "1990-01-15",
         "time": "09:30",
         "sex_basis": "male",
         "birth_place": {
          "tz": "Asia/Seoul",
          "longitude": 127.0
         }
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "성공 — 봉투 한 모양(밑 연산의 data · 보기가 있으면 그 칸만 · meta.menu)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Envelope"
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/E400"
     },
     "401": {
      "$ref": "#/components/responses/E401"
     },
     "403": {
      "$ref": "#/components/responses/E403"
     },
     "404": {
      "$ref": "#/components/responses/E404"
     },
     "409": {
      "$ref": "#/components/responses/E409"
     },
     "413": {
      "$ref": "#/components/responses/E413"
     },
     "422": {
      "$ref": "#/components/responses/E422"
     },
     "429": {
      "$ref": "#/components/responses/E429"
     },
     "502": {
      "$ref": "#/components/responses/E502"
     },
     "503": {
      "$ref": "#/components/responses/E503"
     }
    }
   }
  }
 },
 "components": {
  "securitySchemes": {
   "ApiKey": {
    "type": "apiKey",
    "in": "header",
    "name": "X-Lucela-API-Key"
   },
   "LucelaDelegation": {
    "type": "oauth2",
    "description": "손님 위임 토큰 — 인가 코드 + PKCE(S256). 개인 자료는 이 토큰으로만 엽니다.",
    "flows": {
     "authorizationCode": {
      "authorizationUrl": "https://auth.lucela.kr/realms/lucela/protocol/openid-connect/auth",
      "tokenUrl": "https://auth.lucela.kr/realms/lucela/protocol/openid-connect/token",
      "refreshUrl": "https://auth.lucela.kr/realms/lucela/protocol/openid-connect/token",
      "scopes": {
       "openid": "회원번호(이 앱 전용)",
       "lucela.name.read": "이름",
       "email": "이메일",
       "soompyo.birth.read": "출생 연월일 · 태어난 시 · 양력/음력 · 성별"
      }
     }
    }
   },
   "AtelierProductToken": {
    "type": "http",
    "scheme": "bearer",
    "bearerFormat": "lcpt_",
    "description": "아틀리에 상품등록 토큰 — 범위: atelier.products:read · atelier.products:write · atelier.products:submit · atelier.catalog:review · atelier.catalog:publish · atelier.purchases:read · atelier.purchases:write · atelier.library:download"
   },
   "DirectDelegation": {
    "type": "http",
    "scheme": "bearer",
    "bearerFormat": "lcdd.",
    "description": "루첼라 다이렉트 연결 토큰 — https://direct.lucela.kr/connections 에서 발급 · 실제 키(X-Lucela-API-Key)와 함께 보낸다"
   }
  },
  "schemas": {
   "Envelope": {
    "type": "object",
    "required": [
     "status",
     "data",
     "error",
     "meta"
    ],
    "properties": {
     "status": {
      "const": "ok"
     },
     "data": {},
     "error": {
      "type": "null"
     },
     "meta": {
      "type": "object",
      "properties": {
       "request_id": {
        "type": "string"
       },
       "environment": {
        "enum": [
         "SANDBOX",
         "LIVE"
        ]
       },
       "synthetic": {
        "type": "boolean"
       },
       "schema_version": {
        "type": "string"
       },
       "warnings": {
        "type": "array",
        "items": {}
       }
      }
     }
    }
   },
   "ErrorEnvelope": {
    "type": "object",
    "required": [
     "status",
     "data",
     "error",
     "meta"
    ],
    "properties": {
     "status": {
      "const": "error"
     },
     "data": {
      "type": "null"
     },
     "error": {
      "type": "object",
      "required": [
       "code",
       "title",
       "status",
       "type",
       "detail",
       "instance"
      ],
      "properties": {
       "code": {
        "enum": [
         "ambiguous_birth_place",
         "approval_required",
         "birth_place_required",
         "birth_time_required",
         "consent_required",
         "contract_required",
         "delegation_required",
         "dependency_unavailable",
         "dpa_required",
         "engine_unavailable",
         "environment_mismatch",
         "idempotency_conflict",
         "insufficient_scope",
         "invalid_answers",
         "invalid_credential",
         "invalid_date",
         "invalid_features",
         "invalid_longitude",
         "invalid_time",
         "malformed_request",
         "media_not_ready",
         "method_not_allowed",
         "not_owner",
         "payload_too_large",
         "precondition_required",
         "processing_timeout",
         "provision_ack_required",
         "purpose_not_allowed",
         "quota_exhausted",
         "rate_limited",
         "resource_expired",
         "resource_not_found",
         "rights_denied",
         "sandbox_requires_fixture",
         "scale_version_mismatch",
         "scope_required",
         "service_paused",
         "source_failed",
         "state_conflict",
         "subject_age_not_supported",
         "time_nonexistent",
         "unknown_city_code",
         "unsafe_content",
         "unsupported_calendar",
         "unsupported_capability",
         "unsupported_jasi_method",
         "unsupported_lunar_basis",
         "unsupported_ruleset",
         "unsupported_timezone",
         "validation_blocked",
         "version_conflict"
        ]
       },
       "title": {
        "type": "string"
       },
       "status": {
        "type": "integer"
       },
       "type": {
        "type": "string"
       },
       "detail": {
        "type": "string"
       },
       "instance": {
        "type": "string",
        "format": "uri"
       },
       "field": {
        "type": "string"
       }
      }
     },
     "meta": {
      "type": "object",
      "properties": {
       "request_id": {
        "type": "string"
       }
      }
     }
    }
   },
   "MenuIn_birth_1": {
    "type": "object",
    "properties": {
     "date": {
      "type": "string",
      "description": "생년월일 — 양력 또는 음력 날짜",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
     },
     "calendar": {
      "type": "string",
      "description": "달력 — 생년월일의 달력",
      "enum": [
       "solar",
       "lunar"
      ]
     },
     "is_leap_month": {
      "type": "boolean",
      "description": "윤달 — 음력 윤달 여부"
     },
     "time": {
      "type": "string",
      "description": "태어난 시각 — 없으면 시각이 필요한 칸을 빼고 계산",
      "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
     },
     "birth_place": {
      "type": "object",
      "description": "출생지 — 시간대와 경도, 또는 내장 도시 코드"
     },
     "sex_basis": {
      "type": "string",
      "description": "성별 기준 — 대운 순행·역행 기준",
      "enum": [
       "male",
       "female"
      ]
     }
    },
    "additionalProperties": false,
    "required": [
     "date",
     "birth_place"
    ]
   },
   "MenuIn_options_1": {
    "type": "object",
    "properties": {
     "jasi_method": {
      "type": "string",
      "description": "자시 기준 — 자시(23~01시)를 하루로 묶는 방식",
      "enum": [
       "unified",
       "split"
      ]
     },
     "lunar_basis": {
      "type": "string",
      "description": "음력 기준 — 음력 표의 기준 기관",
      "enum": [
       "kasi",
       "china"
      ]
     },
     "addressee": {
      "type": "string",
      "description": "호칭 — 문장 속 부르는 말",
      "enum": [
       "none",
       "customer",
       "name"
      ]
     },
     "tone": {
      "type": "string",
      "description": "어조 — 문장의 결",
      "enum": [
       "warm",
       "neutral"
      ]
     }
    },
    "additionalProperties": false
   },
   "MenuIn_birth_2": {
    "type": "object",
    "properties": {
     "date": {
      "type": "string",
      "description": "생년월일 — 양력 또는 음력 날짜",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
     },
     "calendar": {
      "type": "string",
      "description": "달력 — 생년월일의 달력",
      "enum": [
       "solar",
       "lunar"
      ]
     },
     "is_leap_month": {
      "type": "boolean",
      "description": "윤달 — 음력 윤달 여부"
     },
     "time": {
      "type": "string",
      "description": "태어난 시각 — 없으면 시각이 필요한 칸을 빼고 계산",
      "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
     },
     "birth_place": {
      "type": "object",
      "description": "출생지 — 시간대와 경도, 또는 내장 도시 코드"
     },
     "sex_basis": {
      "type": "string",
      "description": "성별 기준 — 대운 순행·역행 기준",
      "enum": [
       "male",
       "female"
      ]
     }
    },
    "additionalProperties": false
   },
   "MenuIn_options_2": {
    "type": "object",
    "properties": {
     "addressee": {
      "type": "string",
      "description": "호칭 — 문장 속 부르는 말",
      "enum": [
       "none",
       "customer",
       "name"
      ]
     },
     "tone": {
      "type": "string",
      "description": "어조 — 문장의 결",
      "enum": [
       "warm",
       "neutral"
      ]
     }
    },
    "additionalProperties": false
   }
  },
  "responses": {
   "E400": {
    "description": "malformed_request: 요청 형식이 맞지 않습니다 · provision_ack_required: 제공 개시 확인이 필요합니다",
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/ErrorEnvelope"
      }
     }
    }
   },
   "E401": {
    "description": "invalid_credential: 인증할 수 없습니다",
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/ErrorEnvelope"
      }
     }
    }
   },
   "E403": {
    "description": "scope_required: 이 키로는 쓸 수 없는 기능입니다 · contract_required: 이용 계약이 필요합니다 · rights_denied: 제공할 수 없는 자료입니다 · environment_mismatch: 환경이 맞지 않습니다 · dpa_required: 처리 위탁 문서 동의가 필요합니다 · delegation_required: 손님 위임 토큰이 필요합니다 · insufficient_scope: 허락받지 않은 범위입니다 · not_owner: 이 자료의 주인이 아닙니다 · approval_required: 사람 승인이 필요합니다",
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/ErrorEnvelope"
      }
     }
    }
   },
   "E404": {
    "description": "resource_not_found: 찾을 수 없습니다",
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/ErrorEnvelope"
      }
     }
    }
   },
   "E409": {
    "description": "idempotency_conflict: 같은 멱등 키로 다른 요청이 왔습니다 · version_conflict: 다른 변경이 먼저 반영됐습니다 · state_conflict: 지금 상태에서는 할 수 없습니다 · media_not_ready: 미디어 처리가 끝나지 않았습니다 · scale_version_mismatch: 척도 판이 맞지 않습니다",
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/ErrorEnvelope"
      }
     }
    }
   },
   "E413": {
    "description": "payload_too_large: 요청이 너무 큽니다",
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/ErrorEnvelope"
      }
     }
    }
   },
   "E422": {
    "description": "invalid_date: 날짜가 올바르지 않습니다 · invalid_time: 시각이 올바르지 않습니다 · unsupported_calendar: 지원하지 않는 달력입니다 · unsupported_timezone: 지원하지 않는 시간대입니다 · time_nonexistent: 존재하지 않는 시각입니다 · birth_time_required: 출생 시각이 필요합니다 · birth_place_required: 출생지가 필요합니다 · unknown_city_code: 알 수 없는 도시입니다 · ambiguous_birth_place: 출생지가 하나로 정해지지 않습니다 · invalid_longitude: 경도가 올바르지 않습니다 · unsupported_jasi_method: 지원하지 않는 자시 규칙입니다 · unsupported_lunar_basis: 지원하지 않는 음력 기준입니다 · unsupported_ruleset: 지원하지 않는 규칙입니다 · unsupported_capability: 지원하지 않는 기능입니다 · sandbox_requires_fixture: 샌드박스 키는 시험 입력만 받습니다 · invalid_answers: 응답 값이 올바르지 않습니다 · invalid_features: 특징 코드가 올바르지 않습니다 · consent_required: 이용자 동의 확인이 필요합니다 · purpose_not_allowed: 허용되지 않는 이용 목적입니다 · subject_age_not_supported: 지원하지 않는 이용자 연령입니다 · validation_blocked: 막힌 칸이 있습니다 · unsafe_content: 허용하지 않는 내용입니다",
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/ErrorEnvelope"
      }
     }
    }
   },
   "E429": {
    "description": "rate_limited: 요청이 너무 잦습니다 · quota_exhausted: 포함량을 모두 썼습니다",
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/ErrorEnvelope"
      }
     }
    }
   },
   "E502": {
    "description": "source_failed: 원천 응답에 문제가 있습니다",
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/ErrorEnvelope"
      }
     }
    }
   },
   "E503": {
    "description": "engine_unavailable: 계산 엔진을 쓸 수 없습니다 · dependency_unavailable: 지금은 처리할 수 없습니다 · service_paused: 서비스가 잠시 멈춰 있습니다",
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/ErrorEnvelope"
      }
     }
    }
   }
  }
 }
}
