{
  "openapi": "3.0.1",
  "info": {
    "title": "naniaiexpert",
    "version": "1.0"
  },
  "paths": {
    "/api/ailiteracy/gemini-3-flash-preview/generate-content": {
      "post": {
        "tags": [
          "AiLiteracy"
        ],
        "summary": "使用 gemini-3-flash-preview 生成 AI 素養題目",
        "description": "整合 Google Gemini API，針對 AI 素養組卷需求自動生成題目內容。",
        "operationId": "GenerateAiLiteracyByGemini3Flash",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AiLiteracyGenerateContentRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AiLiteracyGenerateContentRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AiLiteracyGenerateContentRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/ailiteracy/gemini-3-flash-preview/generate-content/search": {
      "post": {
        "tags": [
          "AiLiteracy"
        ],
        "summary": "查詢 gemini-3-flash-preview 生成 AI 素養題目",
        "description": "查詢 AI 素養組卷需求自動生成題目內容。",
        "operationId": "SearchGenerateAiLiteracyByGemini3Flash",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AiLiteracySearchGenerateContentRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AiLiteracySearchGenerateContentRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AiLiteracySearchGenerateContentRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/cache/googlesheet/ai-model-config": {
      "post": {
        "tags": [
          "Cache"
        ],
        "summary": "同步 AI 模型參數設定",
        "description": "從 Google Sheet 同步 AI 模型參數設定（ProjectId、Model、Temperature 等）至 Cache 資料庫",
        "operationId": "SyncAIModelConfig",
        "requestBody": {
          "description": "AI 模型參數設定資料",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SyncAIModelConfigRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SyncAIModelConfigRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SyncAIModelConfigRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/cache/googlesheet/infinite-question/ai-model-config": {
      "post": {
        "tags": [
          "Cache"
        ],
        "summary": "同步無限出題 AI 模型參數設定",
        "description": "從 Google Sheet 同步無限出題使用的 AI 模型參數設定（ProjectId、Model、Temperature 等）至 Cache 資料庫",
        "operationId": "SyncInfiniteQuestionAIModelConfig",
        "requestBody": {
          "description": "無限出題 AI 模型參數設定資料",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SyncInfiniteQuestionAIModelConfigRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SyncInfiniteQuestionAIModelConfigRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SyncInfiniteQuestionAIModelConfigRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/cache/googlesheet/prompt-config": {
      "post": {
        "tags": [
          "Cache"
        ],
        "summary": "同步提示詞參數設定",
        "description": "從 Google Sheet 同步提示詞參數設定（學制、用途、提示詞）至 Cache 資料庫",
        "operationId": "SyncPromptConfig",
        "requestBody": {
          "description": "提示詞參數設定資料集合",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SyncPromptConfigRequestDto"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SyncPromptConfigRequestDto"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SyncPromptConfigRequestDto"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/cache/googlesheet/question-generation/summary": {
      "post": {
        "tags": [
          "Cache"
        ],
        "summary": "同步題目生成摘要資料",
        "description": "從 Google Sheet 同步題目生成的摘要資料至快取",
        "operationId": "SyncSummary",
        "requestBody": {
          "description": "同步摘要請求資料集合",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SyncSummaryAsyncRequestDto"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SyncSummaryAsyncRequestDto"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SyncSummaryAsyncRequestDto"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/cache/googlesheet/question-generation/content": {
      "post": {
        "tags": [
          "Cache"
        ],
        "summary": "同步題目生成內容資料",
        "description": "從 Google Sheet 同步題目生成的內容資料至快取",
        "operationId": "SyncContent",
        "requestBody": {
          "description": "同步內容請求資料集合",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SyncContentAsyncRequestDto"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SyncContentAsyncRequestDto"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SyncContentAsyncRequestDto"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/cache/googlesheet/ai_competency_based_questiongeneration/educontent": {
      "post": {
        "tags": [
          "Cache"
        ],
        "summary": "同步教育階段內容資料",
        "description": "從 Google Sheet 同步 AI 素養導向題目生成的教育階段內容資料至快取",
        "operationId": "SyncEduContent",
        "requestBody": {
          "description": "同步教育階段內容請求資料集合",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SyncEduContentAsyncRequestDto"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SyncEduContentAsyncRequestDto"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SyncEduContentAsyncRequestDto"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "Cache"
        ],
        "summary": "查詢教育階段內容",
        "description": "從快取中查詢 AI 素養導向題目生成的教育階段內容資料",
        "operationId": "GetEduContent",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/cache/googlesheet/ai_competency_based_questiongeneration/subjectcontent": {
      "post": {
        "tags": [
          "Cache"
        ],
        "summary": "同步科目內容資料",
        "description": "從 Google Sheet 同步 AI 素養導向題目生成的科目內容資料至快取",
        "operationId": "SyncSubjectContent",
        "requestBody": {
          "description": "同步科目內容請求資料集合",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SyncSubjectContentAsyncRequestDto"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SyncSubjectContentAsyncRequestDto"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SyncSubjectContentAsyncRequestDto"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "Cache"
        ],
        "summary": "查詢科目內容",
        "description": "從快取中查詢 AI 素養導向題目生成的科目內容資料",
        "operationId": "GetSubjectContent",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/cache/googlesheet/ai_competency_based_questiongeneration/volumecontent": {
      "post": {
        "tags": [
          "Cache"
        ],
        "summary": "同步冊別內容資料",
        "description": "從 Google Sheet 同步 AI 素養導向題目生成的冊別內容資料至快取",
        "operationId": "SyncVolumeContent",
        "requestBody": {
          "description": "同步冊別內容請求資料集合",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SyncVolumeContentAsyncRequestDto"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SyncVolumeContentAsyncRequestDto"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SyncVolumeContentAsyncRequestDto"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "Cache"
        ],
        "summary": "查詢冊別內容",
        "description": "從快取中查詢 AI 素養導向題目生成的冊別內容資料，可選擇性篩選教育階段科目",
        "operationId": "GetVolumeContent",
        "parameters": [
          {
            "name": "eduSubjectCode",
            "in": "query",
            "description": "教育階段科目代碼 (選填)",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/cache/googlesheet/ai_competency_based_questiongeneration/chaptercontent": {
      "post": {
        "tags": [
          "Cache"
        ],
        "summary": "同步章節內容資料",
        "description": "從 Google Sheet 同步 AI 素養導向題目生成的章節內容資料至快取",
        "operationId": "SyncChapterContent",
        "requestBody": {
          "description": "同步章節內容請求資料集合",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SyncChapterContentAsyncRequestDto"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SyncChapterContentAsyncRequestDto"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SyncChapterContentAsyncRequestDto"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "Cache"
        ],
        "summary": "查詢章節內容",
        "description": "從快取中查詢 AI 素養導向題目生成的章節內容資料，可選擇性篩選教育階段科目及冊別",
        "operationId": "GetChapterContent",
        "parameters": [
          {
            "name": "eduSubjectCode",
            "in": "query",
            "description": "教育階段科目代碼 (選填)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "volumeCode",
            "in": "query",
            "description": "冊別代碼 (選填)",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/cache/googlesheet/ai_competency_based_questiongeneration/subchaptercontent": {
      "post": {
        "tags": [
          "Cache"
        ],
        "summary": "同步子章節內容資料",
        "description": "從 Google Sheet 同步 AI 素養導向題目生成的子章節內容資料至快取",
        "operationId": "SyncSubChapterContent",
        "requestBody": {
          "description": "同步子章節內容請求資料集合",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SyncSubChapterContentAsyncRequestDto"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SyncSubChapterContentAsyncRequestDto"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SyncSubChapterContentAsyncRequestDto"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "Cache"
        ],
        "summary": "查詢子章節內容",
        "description": "從快取中查詢 AI 素養導向題目生成的子章節內容資料，可選擇性篩選教育階段科目、冊別及章節",
        "operationId": "GetSubChapterContent",
        "parameters": [
          {
            "name": "eduSubjectCode",
            "in": "query",
            "description": "教育階段科目代碼 (選填)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "volumeCode",
            "in": "query",
            "description": "冊別代碼 (選填)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "chapterCode",
            "in": "query",
            "description": "章節代碼 (選填)",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/cache/googlesheet/ai_competency_based_questiongeneration/literacycontent": {
      "post": {
        "tags": [
          "Cache"
        ],
        "summary": "同步素養內容資料",
        "description": "從 Google Sheet 同步 AI 素養導向題目生成的素養內容資料至快取",
        "operationId": "SyncLiteracyContent",
        "requestBody": {
          "description": "同步素養內容請求資料集合",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SyncLiteracyContentAsyncRequestDto"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SyncLiteracyContentAsyncRequestDto"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SyncLiteracyContentAsyncRequestDto"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "Cache"
        ],
        "summary": "查詢素養內容",
        "description": "從快取中查詢 AI 素養導向題目生成的素養內容資料",
        "operationId": "GetLiteracyContent",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/cache/googlesheet/ai_competency_based_questiongeneration/interdisciplinary_definition_content": {
      "post": {
        "tags": [
          "Cache"
        ],
        "summary": "同步跨學程定義內容資料",
        "description": "從 Google Sheet 同步 AI 素養導向題目生成的跨學程定義內容資料至快取",
        "operationId": "SynInterdisciplinaryDefinitionContent",
        "requestBody": {
          "description": "同步跨學程定義內容請求資料集合",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SynInterdisciplinaryDefinitionContentAsyncRequestDto"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SynInterdisciplinaryDefinitionContentAsyncRequestDto"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SynInterdisciplinaryDefinitionContentAsyncRequestDto"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/cache/googlesheet/ai_competency_based_questiongeneration/elementary_definition_content": {
      "post": {
        "tags": [
          "Cache"
        ],
        "summary": "同步國小定義內容資料",
        "description": "從 Google Sheet 同步 AI 素養導向題目生成的國小定義內容資料至快取",
        "operationId": "SynElementaryDefinitionContent",
        "requestBody": {
          "description": "同步國小定義內容請求資料集合",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SynElementaryDefinitionContentAsyncRequestDto"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SynElementaryDefinitionContentAsyncRequestDto"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SynElementaryDefinitionContentAsyncRequestDto"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/cache/googlesheet/ai_competency_based_questiongeneration/junior_definition_content": {
      "post": {
        "tags": [
          "Cache"
        ],
        "summary": "同步國中定義內容資料",
        "description": "從 Google Sheet 同步 AI 素養導向題目生成的國中定義內容資料至快取",
        "operationId": "SynJuniorDefinitionContent",
        "requestBody": {
          "description": "同步國中定義內容請求資料集合",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SynJuniorDefinitionContentAsyncRequestDto"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SynJuniorDefinitionContentAsyncRequestDto"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SynJuniorDefinitionContentAsyncRequestDto"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/cache/googlesheet/ai_competency_based_questiongeneration/senior_definition_content": {
      "post": {
        "tags": [
          "Cache"
        ],
        "summary": "同步高中定義內容資料",
        "description": "從 Google Sheet 同步 AI 素養導向題目生成的高中定義內容資料至快取",
        "operationId": "SynSeniorDefinitionContent",
        "requestBody": {
          "description": "同步高中定義內容請求資料集合",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SynSeniorDefinitionContentAsyncRequestDto"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SynSeniorDefinitionContentAsyncRequestDto"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SynSeniorDefinitionContentAsyncRequestDto"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/cache/googlesheet/ai_competency_based_questiongeneration/question_example": {
      "post": {
        "tags": [
          "Cache"
        ],
        "summary": "同步出題範例資料",
        "description": "從 Google Sheet 同步 AI 素養導向題目生成的出題範例資料至快取",
        "operationId": "SynQuestionExamp",
        "requestBody": {
          "description": "同步國中定義內容請求資料集合",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SynQuestionExampleAsyncRequestDto"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SynQuestionExampleAsyncRequestDto"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SynQuestionExampleAsyncRequestDto"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/cache/googlesheet/ai_competency_based_questiongeneration/all": {
      "get": {
        "tags": [
          "Cache"
        ],
        "summary": "查詢所有 AI 素養導向題目生成相關內容",
        "description": "從快取中查詢所有 AI 素養導向題目生成相關內容，包含教育階段、科目、冊別、章節、子章節及素養內容（所有物件皆不含 UID）",
        "operationId": "GetAllAICompetencyBasedContent",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AICompetencyBasedContentResponseDtoResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AICompetencyBasedContentResponseDtoResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AICompetencyBasedContentResponseDtoResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/chapter/querychapters/selection": {
      "get": {
        "tags": [
          "Chapter"
        ],
        "parameters": [
          {
            "name": "Year",
            "in": "query",
            "description": "學年度",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Edu",
            "in": "query",
            "description": "學制",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Subject",
            "in": "query",
            "description": "科目",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Version",
            "in": "query",
            "description": "版本",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Volume",
            "in": "query",
            "description": "冊",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/geminiai/chatgpt": {
      "post": {
        "tags": [
          "GeminiAI"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChatgptRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ChatgptRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ChatgptRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ChatgptRequestDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChatgptRequestDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChatgptRequestDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/geminiai/english-reading-test-question-generation": {
      "post": {
        "tags": [
          "GeminiAI"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetEnglishTestGenerationRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GetEnglishTestGenerationRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GetEnglishTestGenerationRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetEnglishTestGenerationRequestDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetEnglishTestGenerationRequestDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetEnglishTestGenerationRequestDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/geminiai/question-generation": {
      "post": {
        "tags": [
          "GeminiAI"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetQuestionGenerationRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GetQuestionGenerationRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GetQuestionGenerationRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetQuestionGenerationRequestDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetQuestionGenerationRequestDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetQuestionGenerationRequestDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/genai/generate-content": {
      "post": {
        "tags": [
          "GenAI"
        ],
        "summary": "使用 Google.GenAI SDK 生成內容",
        "description": "支援完整的參數配置，包括 response schema、system instruction 等。gemini-3-flash-preview。",
        "operationId": "GenerateContent",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateContentRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateContentRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateContentRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/infinitequestion/generate-content": {
      "post": {
        "tags": [
          "InfiniteQuestion"
        ],
        "summary": "使用 gemini AI 進行無限出題",
        "description": "整合 Google Gemini API，根據知識向度與冊次自動生成題目並排隊處理。",
        "operationId": "GenerateInfiniteQuestionByGeminiAI",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InfiniteQuestionGenerateContentRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/InfiniteQuestionGenerateContentRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/InfiniteQuestionGenerateContentRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/member/notify/token": {
      "get": {
        "tags": [
          "Member"
        ],
        "summary": "取得會員的通知服務 Token",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/member/userecords/ai-question-generation/count": {
      "get": {
        "tags": [
          "Member"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/member/userecords/ai-english-test-question-generation/count": {
      "get": {
        "tags": [
          "Member"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/member/userecords/checkuserusageperiod": {
      "post": {
        "tags": [
          "Member"
        ],
        "summary": "檢查使用者的使用期間並驗證並新增使用次數",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InsertUseRecordRequestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/InsertUseRecordRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/InsertUseRecordRequestDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/member/userecords/count": {
      "get": {
        "tags": [
          "Member"
        ],
        "summary": "取得使用者使用次數",
        "parameters": [
          {
            "name": "useType",
            "in": "query",
            "schema": {
              "enum": [
                "None",
                "AIQuestionGeneration",
                "AIEnglishReadingTestQuestionGeneration",
                "AI_Competency_based_QuestionGeneration"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/member/identity/teacher-or-editor/check": {
      "get": {
        "tags": [
          "Member"
        ],
        "summary": "驗證是否為教師或編輯身分",
        "description": "驗證目前登入者是否為南一會員中心／教育雲(OneClub)之教師或編輯身分，僅此身分可使用 AI 生成功能。",
        "operationId": "CheckTeacherOrEditor",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/resource/definition": {
      "get": {
        "tags": [
          "Resource"
        ],
        "summary": "查詢基本定義資料",
        "description": "讀取 GCS 上依環境區分的基本定義資料並原樣回傳；內容為浮動結構，不做欄位對應。",
        "operationId": "GetResourceDefinition",
        "parameters": [
          {
            "name": "refresh",
            "in": "query",
            "description": "true 時略過快取，直接向來源重新讀取",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/test/add/question-generation/count": {
      "get": {
        "tags": [
          "Test"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/test/add/english-reading-question-generation/count": {
      "get": {
        "tags": [
          "Test"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/test/remove/user/count": {
      "get": {
        "tags": [
          "Test"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/test/add/ai-literacy-generation/count": {
      "get": {
        "tags": [
          "Test"
        ],
        "summary": "測試用：不實際組卷，直接寫入指定筆數的AI素養出題(AiLiteracyController GenerateContent)UseRecord，\r\n供測試每日次數上限功能。",
        "parameters": [
          {
            "name": "count",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/test/add/infinite-question-generation/count": {
      "get": {
        "tags": [
          "Test"
        ],
        "summary": "測試用：不實際組卷，直接寫入指定筆數的無限出題(InfiniteQuestionController GenerateContent)UseRecord，\r\n供測試每日次數上限功能。",
        "parameters": [
          {
            "name": "count",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/test/clear/use-record": {
      "get": {
        "tags": [
          "Test"
        ],
        "summary": "清除UseRecord使用紀錄",
        "description": "測試用：清除UseRecord(及對應UsePeriod)，供重新測試每日次數上限。<br/>useType可選值: AIQuestionGeneration(AI無限出題) / AIEnglishReadingTestQuestionGeneration(AI英語閱讀測驗出題) / AI_Competency_based_QuestionGeneration(AI素養類題出題)；未指定則清除該使用者所有類型的紀錄。",
        "parameters": [
          {
            "name": "useType",
            "in": "query",
            "description": "使用類型，未指定則清除該使用者所有類型的紀錄。可選值:\r\nAIQuestionGeneration(AI無限出題) / AIEnglishReadingTestQuestionGeneration(AI英語閱讀測驗出題) / AI_Competency_based_QuestionGeneration(AI素養類題出題 )",
            "schema": {
              "enum": [
                "None",
                "AIQuestionGeneration",
                "AIEnglishReadingTestQuestionGeneration",
                "AI_Competency_based_QuestionGeneration"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObjectResponseDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/test/sentry-check": {
      "get": {
        "tags": [
          "Test"
        ],
        "parameters": [
          {
            "name": "test",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AICompetencyBasedChapterResponseDto": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "description": "章節回應 DTO (不含 UID、EduSubjectCode 和 VolumeCode，因為已在外層分組)"
      },
      "AICompetencyBasedContentResponseDto": {
        "type": "object",
        "properties": {
          "eduContent": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AICompetencyBasedEduResponseDto"
            },
            "description": "教育階段內容 (Array)"
          },
          "subjectContent": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AICompetencyBasedSubjectResponseDto"
              }
            },
            "description": "科目內容 (依照教育階段分組)\r\n外層 Key: 教育階段代碼 (E/J/H)\r\n內層: Array of 科目"
          },
          "volumeContent": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AICompetencyBasedVolumeResponseDto"
              }
            },
            "description": "冊別內容 (依照學制科目分組)\r\nKey: 學制科目代碼 (例如: ECH, EMA, JPC)\r\nValue: 該學制科目的所有冊別 (Array)"
          },
          "chapterContent": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AICompetencyBasedChapterResponseDto"
              }
            },
            "description": "章節內容 (依照學制科目+冊別分組)\r\nKey: 學制科目代碼_冊別代碼 (例如: ECH_B01, EMA_B02)\r\nValue: 該學制科目冊別的所有章節 (Array)"
          },
          "subChapterContent": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AICompetencyBasedSubChapterResponseDto"
              }
            },
            "description": "子章節內容 (依照學制科目+冊別+章節分組)\r\nKey: 學制科目代碼_冊別代碼_章節代碼 (例如: ECH_B01_C01)\r\nValue: 該章節的所有子章節 (Array)"
          }
        },
        "additionalProperties": false
      },
      "AICompetencyBasedContentResponseDtoResponseDto": {
        "type": "object",
        "properties": {
          "from": {
            "type": "string"
          },
          "error": {
            "type": "integer",
            "format": "int32"
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "data": {
            "$ref": "#/components/schemas/AICompetencyBasedContentResponseDto"
          },
          "token": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AICompetencyBasedEduResponseDto": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "description": "教育階段回應 DTO (不含 UID)"
      },
      "AICompetencyBasedSubChapterResponseDto": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "description": "子章節回應 DTO (不含 UID、EduSubjectCode、VolumeCode 和 ChapterCode，因為已在外層分組)"
      },
      "AICompetencyBasedSubjectResponseDto": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "description": "科目回應 DTO (不含 UID)"
      },
      "AICompetencyBasedVolumeResponseDto": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false,
        "description": "冊別回應 DTO (不含 UID 和 EduSubjectCode，因為已在外層分組)"
      },
      "AiLiteracyGenerateContentRequestDto": {
        "type": "object",
        "properties": {
          "educode": {
            "type": "string"
          },
          "subjectcode": {
            "type": "string"
          },
          "volumecode": {
            "type": "string"
          },
          "chaptercode": {
            "type": "string"
          },
          "subchaptercode": {
            "type": "string"
          },
          "customText": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AiLiteracySearchGenerateContentRequestDto": {
        "required": [
          "uid"
        ],
        "type": "object",
        "properties": {
          "uid": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "ChatgptRequestDto": {
        "required": [
          "prompt"
        ],
        "type": "object",
        "properties": {
          "temperature": {
            "type": "number",
            "description": "AI temperature 如果溫度參數較高，可能會生成多樣化或預料之外的結果 gemini-2.0-flash-001 建議範圍是 0~2",
            "format": "float",
            "nullable": true
          },
          "top_p": {
            "type": "number",
            "description": "AI top p Top-P 會影響模型選取輸出詞元的方式。模型會按照可能性最高到最低的順序選取詞元，直到所選詞元的可能性總和等於 Top-P 值。舉例來說，假設詞元 A、B 和 C 的可能性分別為 .3、.2 和 .1，而 Top-P 值為 .5，模型會依據溫度參數 (temperature) 選擇 A 或 B 做為下一個詞元。如要讓結果的變化性降到最低，請將 Top-P 設為 0。",
            "format": "float",
            "nullable": true
          },
          "prompt": {
            "type": "string",
            "description": "AI prompt"
          },
          "base64Image": {
            "type": "string",
            "description": "圖片 base64",
            "nullable": true
          },
          "mimeType": {
            "type": "string",
            "description": "圖片 mimeType 如 image/png",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GenerateContentRequestDto": {
        "required": [
          "contents",
          "model"
        ],
        "type": "object",
        "properties": {
          "model": {
            "type": "string",
            "description": "模型名稱，例如 \"gemini-3-flash-preview\""
          },
          "contents": {
            "type": "string",
            "description": "內容（可以是文字或包含圖片的內容）"
          },
          "base64Image": {
            "type": "string",
            "description": "圖片 base64（可選）",
            "nullable": true
          },
          "mimeType": {
            "type": "string",
            "description": "圖片 MIME 類型，例如 \"image/png\"（可選）",
            "nullable": true
          },
          "generationConfig": {
            "$ref": "#/components/schemas/GenerationConfigDto"
          },
          "systemInstruction": {
            "type": "string",
            "description": "系統指令（可選）\r\nInstructions for the model to steer it toward better performance. For example,\r\n\"Answer as concisely as possible\" or \"Don't use technical terms in your response\".",
            "nullable": true
          },
          "labels": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "計算 AI 帳單用的註記"
          },
          "aiModelConfigType": {
            "enum": [
              "AiLiteracy",
              "InfiniteQuestion"
            ],
            "type": "string",
            "description": "AI 模型參數設定來源\r\nAiLiteracy：AI 素養出題（讀取 AIModelConfig）\r\nInfiniteQuestion：無限出題（讀取 InfiniteQuestionAIModelConfig）"
          }
        },
        "additionalProperties": false,
        "description": "生成內容請求。gemini-3-flash-preview 。",
        "example": {
          "model": "gemini-3-flash-preview",
          "contents": "請分析以下文章的主題和關鍵字：\n\n人工智慧正在改變我們的生活，從自動駕駛汽車到智能助手，AI技術無處不在。",
          "base64Image": null,
          "mimeType": null,
          "generationConfig": {
            "temperature": 0.7,
            "topP": 0.9,
            "topK": 40,
            "maxOutputTokens": 500,
            "responseMimeType": "application/json",
            "responseSchema": {
              "type": "OBJECT",
              "title": "文章分析結果",
              "description": "文章的主題和關鍵字分析",
              "properties": {
                "topic": {
                  "type": "STRING",
                  "description": "文章主題"
                },
                "keywords": {
                  "type": "ARRAY",
                  "description": "關鍵字列表",
                  "items": {
                    "type": "STRING"
                  }
                },
                "summary": {
                  "type": "STRING",
                  "description": "文章摘要"
                }
              },
              "required": [
                "topic",
                "keywords",
                "summary"
              ],
              "propertyOrdering": [
                "topic",
                "keywords",
                "summary"
              ]
            },
            "thinkingConfig": {
              "thinkingLevel": "MINIMAL",
              "thinkingBudget": 1024
            }
          },
          "systemInstruction": "你是一位專業的AI助手，請用繁體中文回答。"
        }
      },
      "GenerationConfigDto": {
        "type": "object",
        "properties": {
          "temperature": {
            "type": "number",
            "description": "溫度參數（0-2），控制輸出的隨機性",
            "format": "float",
            "nullable": true
          },
          "topP": {
            "type": "number",
            "description": "Top-P 參數（0-1），控制詞元選擇的範圍",
            "format": "float",
            "nullable": true
          },
          "topK": {
            "type": "integer",
            "description": "Top-K 參數，限制候選詞元的數量",
            "format": "int32",
            "nullable": true
          },
          "maxOutputTokens": {
            "type": "integer",
            "description": "最大輸出 token 數",
            "format": "int32",
            "nullable": true
          },
          "responseMimeType": {
            "type": "string",
            "description": "回應 MIME 類型，例如 \"application/json\" 如果沒有 responseSchema 請選 text/plain",
            "nullable": true
          },
          "responseSchema": {
            "$ref": "#/components/schemas/ResponseSchemaDto"
          },
          "thinkingConfig": {
            "$ref": "#/components/schemas/ThinkingConfigDto"
          }
        },
        "additionalProperties": false,
        "description": "生成配置 DTO"
      },
      "GetEnglishTestGenerationRequestDto": {
        "required": [
          "prompt"
        ],
        "type": "object",
        "properties": {
          "temperature": {
            "type": "number",
            "description": "AI temperature 如果溫度參數較高，可能會生成多樣化或預料之外的結果 gemini-2.0-flash-001 建議範圍是 0~2",
            "format": "float",
            "nullable": true
          },
          "top_p": {
            "type": "number",
            "description": "AI top p Top-P 會影響模型選取輸出詞元的方式。模型會按照可能性最高到最低的順序選取詞元，直到所選詞元的可能性總和等於 Top-P 值。舉例來說，假設詞元 A、B 和 C 的可能性分別為 .3、.2 和 .1，而 Top-P 值為 .5，模型會依據溫度參數 (temperature) 選擇 A 或 B 做為下一個詞元。如要讓結果的變化性降到最低，請將 Top-P 設為 0。",
            "format": "float",
            "nullable": true
          },
          "prompt": {
            "type": "string",
            "description": "AI prompt"
          },
          "base64Image": {
            "type": "string",
            "description": "圖片 base64",
            "nullable": true
          },
          "mimeType": {
            "type": "string",
            "description": "圖片 mimeType 如 image/png",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetQuestionGenerationRequestDto": {
        "required": [
          "edu",
          "knowledges",
          "quantity",
          "subject",
          "volume"
        ],
        "type": "object",
        "properties": {
          "edu": {
            "type": "string",
            "description": "學制"
          },
          "subject": {
            "type": "string",
            "description": "科目"
          },
          "volume": {
            "type": "string",
            "description": "冊"
          },
          "chapter": {
            "type": "string",
            "description": "章節",
            "nullable": true
          },
          "section": {
            "type": "string",
            "description": "小節",
            "nullable": true
          },
          "knowledges": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "知識向度代碼"
          },
          "quantity": {
            "type": "integer",
            "description": "產題數量",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "InfiniteQuestionGenerateContentRequestDto": {
        "required": [
          "edu",
          "knowledges",
          "quantity",
          "subject",
          "volume"
        ],
        "type": "object",
        "properties": {
          "edu": {
            "type": "string",
            "description": "學制"
          },
          "subject": {
            "type": "string",
            "description": "科目"
          },
          "volume": {
            "type": "string",
            "description": "冊"
          },
          "chapter": {
            "type": "string",
            "description": "章節",
            "nullable": true
          },
          "section": {
            "type": "string",
            "description": "小節",
            "nullable": true
          },
          "knowledges": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "知識向度代碼"
          },
          "quantity": {
            "type": "integer",
            "description": "產題數量",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "InsertUseRecordRequestDto": {
        "type": "object",
        "properties": {
          "useType": {
            "enum": [
              "None",
              "AIQuestionGeneration",
              "AIEnglishReadingTestQuestionGeneration",
              "AI_Competency_based_QuestionGeneration"
            ],
            "type": "string"
          },
          "edu": {
            "type": "string"
          },
          "subject": {
            "type": "string"
          },
          "volume": {
            "type": "string"
          },
          "quantity": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "example": {
          "useType": 3,
          "Edu": "E",
          "Subject": "MA",
          "Volume": "B02",
          "Quantity": 1
        }
      },
      "ObjectResponseDto": {
        "type": "object",
        "properties": {
          "from": {
            "type": "string"
          },
          "error": {
            "type": "integer",
            "format": "int32"
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "data": {
            "nullable": true
          },
          "token": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ResponseSchemaDto": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "Schema 類型：OBJECT, STRING, INTEGER, NUMBER, BOOLEAN, ARRAY"
          },
          "title": {
            "type": "string",
            "description": "Schema 標題",
            "nullable": true
          },
          "properties": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/ResponseSchemaDto"
            },
            "description": "屬性定義（當 Type 為 OBJECT 時使用）",
            "nullable": true
          },
          "propertyOrdering": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "屬性順序（當 Type 為 OBJECT 時使用）",
            "nullable": true
          },
          "required": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "必填屬性列表（當 Type 為 OBJECT 時使用）",
            "nullable": true
          },
          "items": {
            "$ref": "#/components/schemas/ResponseSchemaDto"
          },
          "description": {
            "type": "string",
            "description": "描述",
            "nullable": true
          },
          "enum": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "列舉值限制（當需要限定字串可選值時使用）",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "回應 Schema DTO（對應 Google.GenAI.Schema）"
      },
      "SyncAIModelConfigRequestDto": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "publisher": {
            "type": "string"
          },
          "locationId": {
            "type": "string"
          },
          "model": {
            "type": "string"
          },
          "temperature": {
            "type": "string"
          },
          "topP": {
            "type": "string"
          },
          "maxOutputTokens": {
            "type": "string"
          },
          "includeThinking": {
            "type": "string"
          },
          "timeoutMs": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "SyncChapterContentAsyncRequestDto": {
        "type": "object",
        "properties": {
          "edusubjectcode": {
            "type": "string"
          },
          "volumecode": {
            "type": "string"
          },
          "chaptercode": {
            "type": "string"
          },
          "chaptername": {
            "type": "string"
          },
          "subchaptercode": {
            "type": "string"
          },
          "subchaptername": {
            "type": "string"
          },
          "learncontent": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "SyncContentAsyncRequestDto": {
        "type": "object",
        "properties": {
          "edu": {
            "type": "string"
          },
          "subject": {
            "type": "string"
          },
          "volume": {
            "type": "string"
          },
          "chapter": {
            "type": "string"
          },
          "section": {
            "type": "string"
          },
          "learn_content": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "SyncEduContentAsyncRequestDto": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "SyncInfiniteQuestionAIModelConfigRequestDto": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "publisher": {
            "type": "string"
          },
          "locationId": {
            "type": "string"
          },
          "model": {
            "type": "string"
          },
          "temperature": {
            "type": "string"
          },
          "topP": {
            "type": "string"
          },
          "maxOutputTokens": {
            "type": "string"
          },
          "includeThinking": {
            "type": "string"
          },
          "timeoutMs": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "SyncLiteracyContentAsyncRequestDto": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "SyncPromptConfigRequestDto": {
        "type": "object",
        "properties": {
          "eduCode": {
            "type": "string"
          },
          "usage": {
            "type": "string"
          },
          "prompt": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "SyncSubChapterContentAsyncRequestDto": {
        "type": "object",
        "properties": {
          "edusubjectcode": {
            "type": "string"
          },
          "volumecode": {
            "type": "string"
          },
          "chaptercode": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "SyncSubjectContentAsyncRequestDto": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "SyncSummaryAsyncRequestDto": {
        "type": "object",
        "properties": {
          "edu": {
            "type": "string"
          },
          "subject": {
            "type": "string"
          },
          "prompt": {
            "type": "string"
          },
          "temperature": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "SyncVolumeContentAsyncRequestDto": {
        "type": "object",
        "properties": {
          "edusubjectcode": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "SynElementaryDefinitionContentAsyncRequestDto": {
        "type": "object",
        "properties": {
          "subjectcode": {
            "type": "string"
          },
          "definitioncontent": {
            "type": "string"
          },
          "characteristiccontent": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "SynInterdisciplinaryDefinitionContentAsyncRequestDto": {
        "type": "object",
        "properties": {
          "educode": {
            "type": "string"
          },
          "definitioncontent": {
            "type": "string"
          },
          "corefeature": {
            "type": "string"
          },
          "coreConcept": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "SynJuniorDefinitionContentAsyncRequestDto": {
        "type": "object",
        "properties": {
          "subjectcode": {
            "type": "string"
          },
          "definitioncontent": {
            "type": "string"
          },
          "characteristiccontent": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "SynQuestionExampleAsyncRequestDto": {
        "type": "object",
        "properties": {
          "edusubjectcode": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "SynSeniorDefinitionContentAsyncRequestDto": {
        "type": "object",
        "properties": {
          "subjectcode": {
            "type": "string"
          },
          "definitioncontent": {
            "type": "string"
          },
          "characteristiccontent": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "ThinkingConfigDto": {
        "type": "object",
        "properties": {
          "thinkingLevel": {
            "type": "string",
            "description": "思考等級：LOW, MEDIUM, HIGH, MINIMAL\r\n注意：如果同時提供了 thinkingBudget，此參數將被忽略",
            "nullable": true
          },
          "thinkingBudget": {
            "type": "integer",
            "description": "思考預算（token 數）：\r\n-1: 動態思考（根據需要自動調整）\r\n0: 關閉思考\r\n正數: 指定思考預算（例如 1024）\r\n注意：如果同時提供了 thinkingLevel，此參數將優先使用（thinkingLevel 會被忽略）",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "思考配置 DTO\r\n注意：thinkingLevel 和 thinkingBudget 是互斥的參數，不能同時使用，必須二選一"
      }
    },
    "securitySchemes": {
      "Bearer": {
        "type": "apiKey",
        "description": "Authorization header. \r\n\r\n Enter your token in the text input below.",
        "name": "Authorization",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "Bearer": [ ]
    }
  ]
}