{ "components": { "schemas": { "AccountData": { "additionalProperties": false, "description": "verifier와 세션 정보 없이 관리자 화면에 공개할 계정 상태를 표현한다.", "properties": { "active": { "title": "Active", "type": "boolean" }, "created_at": { "format": "date-time", "title": "Created At", "type": "string" }, "deactivated_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "Deactivated At" }, "deleted_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "Deleted At" }, "role": { "enum": [ "analyst", "admin" ], "title": "Role", "type": "string" }, "subject": { "format": "uuid", "title": "Subject", "type": "string" }, "updated_at": { "format": "date-time", "title": "Updated At", "type": "string" }, "username": { "title": "Username", "type": "string" } }, "required": [ "subject", "username", "role", "active", "created_at", "updated_at" ], "title": "AccountData", "type": "object" }, "AccountListData": { "additionalProperties": false, "description": "계정 목록과 1-based pagination 위치 및 전체 건수를 함께 반환한다.", "properties": { "items": { "items": { "$ref": "#/components/schemas/AccountData" }, "title": "Items", "type": "array" }, "page": { "minimum": 1.0, "title": "Page", "type": "integer" }, "page_size": { "maximum": 100.0, "minimum": 1.0, "title": "Page Size", "type": "integer" }, "total": { "minimum": 0.0, "title": "Total", "type": "integer" } }, "required": [ "items", "page", "page_size", "total" ], "title": "AccountListData", "type": "object" }, "AccountListResponse": { "additionalProperties": false, "description": "계정 목록 결과를 공통 추적 메타데이터와 함께 반환한다.", "properties": { "data": { "$ref": "#/components/schemas/AccountListData" }, "error": { "title": "Error", "type": "null" }, "meta": { "$ref": "#/components/schemas/ResponseMeta" } }, "required": [ "data", "meta" ], "title": "AccountListResponse", "type": "object" }, "AccountResponse": { "additionalProperties": false, "description": "단일 계정 변경 결과를 공통 추적 메타데이터와 함께 반환한다.", "properties": { "data": { "$ref": "#/components/schemas/AccountData" }, "error": { "title": "Error", "type": "null" }, "meta": { "$ref": "#/components/schemas/ResponseMeta" } }, "required": [ "data", "meta" ], "title": "AccountResponse", "type": "object" }, "AgentTaskProgress": { "additionalProperties": false, "description": "Supervisor가 확정한 Agent별 작업 목적과 현재 실행 상태를 공개한다.", "properties": { "agent": { "enum": [ "ANALYSIS_WORKFLOW", "INTERNAL_GUIDELINE", "ML_PREDICTION" ], "title": "Agent", "type": "string" }, "objective": { "maxLength": 240, "minLength": 1, "title": "Objective", "type": "string" }, "status": { "enum": [ "PENDING", "RUNNING", "SUCCEEDED", "FAILED", "CANCELLED" ], "title": "Status", "type": "string" } }, "required": [ "agent", "objective", "status" ], "title": "AgentTaskProgress", "type": "object" }, "AnalysisArtifactLifecycleResponse": { "additionalProperties": false, "description": "비파괴 보관·복원 후 Artifact ID와 현재 owner-scoped 상태를 반환한다.", "properties": { "archived": { "title": "Archived", "type": "boolean" }, "archived_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "Archived At" }, "archived_by": { "anyOf": [ { "format": "uuid", "type": "string" }, { "type": "null" } ], "title": "Archived By" }, "artifact_id": { "format": "uuid", "title": "Artifact Id", "type": "string" } }, "required": [ "artifact_id", "archived" ], "title": "AnalysisArtifactLifecycleResponse", "type": "object" }, "AnalysisData": { "additionalProperties": false, "description": "현재 상태, 전이 이력, 선택 경로, 게이트, 결과와 산출물 참조를 분석 응답 본문에 담는다.", "properties": { "artifact": { "anyOf": [ { "$ref": "#/components/schemas/ArtifactReference" }, { "type": "null" } ] }, "disambiguation_options": { "default": [], "items": { "$ref": "#/components/schemas/DisambiguationOption" }, "title": "Disambiguation Options", "type": "array" }, "evidence": { "anyOf": [ { "$ref": "#/components/schemas/Evidence" }, { "type": "null" } ] }, "gates": { "anyOf": [ { "$ref": "#/components/schemas/GateRequirements" }, { "type": "null" } ] }, "repair_count": { "default": 0, "maximum": 1.0, "minimum": 0.0, "title": "Repair Count", "type": "integer" }, "result": { "anyOf": [ { "$ref": "#/components/schemas/AnalysisResult" }, { "type": "null" } ] }, "route": { "anyOf": [ { "$ref": "#/components/schemas/RouteType" }, { "type": "null" } ] }, "status": { "$ref": "#/components/schemas/AnalysisStatus" }, "template_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Template Id" }, "trace": { "default": [], "items": { "$ref": "#/components/schemas/TraceStep" }, "title": "Trace", "type": "array" }, "transitions": { "items": { "$ref": "#/components/schemas/AnalysisStatus" }, "title": "Transitions", "type": "array" } }, "required": [ "status", "transitions" ], "title": "AnalysisData", "type": "object" }, "AnalysisDefinitionListResponse": { "additionalProperties": false, "description": "동일 계약 버전으로 직렬화된 승인 분석 정의 목록을 반환한다.", "properties": { "contract_version": { "default": "ANALYSIS-PERSISTENCE-v1.0.0-DRAFT", "title": "Contract Version", "type": "string" }, "items": { "items": { "$ref": "#/components/schemas/AnalysisDefinitionResponse" }, "title": "Items", "type": "array" } }, "required": [ "items" ], "title": "AnalysisDefinitionListResponse", "type": "object" }, "AnalysisDefinitionResponse": { "additionalProperties": false, "description": "승인된 분석 정의의 버전, 질문, 매개변수 형식과 구조화 의미 요청을 조회 결과로 제공한다.", "properties": { "contract_version": { "default": "ANALYSIS-PERSISTENCE-v1.0.0-DRAFT", "title": "Contract Version", "type": "string" }, "created_at": { "format": "date-time", "title": "Created At", "type": "string" }, "definition_id": { "format": "uuid", "title": "Definition Id", "type": "string" }, "parameter_schema": { "additionalProperties": { "type": "string" }, "title": "Parameter Schema", "type": "object" }, "parameter_types": { "additionalProperties": { "enum": [ "string", "boolean", "number", "null" ], "type": "string" }, "title": "Parameter Types", "type": "object" }, "question": { "title": "Question", "type": "string" }, "semantic_request": { "additionalProperties": true, "title": "Semantic Request", "type": "object" }, "status": { "const": "approved", "title": "Status", "type": "string" }, "title": { "title": "Title", "type": "string" }, "version": { "title": "Version", "type": "integer" } }, "required": [ "definition_id", "version", "status", "title", "question", "parameter_types", "semantic_request", "parameter_schema", "created_at" ], "title": "AnalysisDefinitionResponse", "type": "object" }, "AnalysisProgressData": { "additionalProperties": false, "description": "진행 조회 시 실행 식별자, 시작 시각, 경과 시간, 취소 요청과 누적 추적을 반환한다.", "properties": { "agent_tasks": { "default": [], "items": { "$ref": "#/components/schemas/AgentTaskProgress" }, "maxItems": 3, "title": "Agent Tasks", "type": "array" }, "cancel_requested": { "title": "Cancel Requested", "type": "boolean" }, "elapsed_seconds": { "minimum": 0.0, "title": "Elapsed Seconds", "type": "number" }, "request_id": { "format": "uuid", "title": "Request Id", "type": "string" }, "started_at": { "format": "date-time", "title": "Started At", "type": "string" }, "status": { "$ref": "#/components/schemas/AnalysisStatus" }, "trace": { "default": [], "items": { "$ref": "#/components/schemas/TraceStep" }, "title": "Trace", "type": "array" }, "trace_id": { "title": "Trace Id", "type": "string" } }, "required": [ "trace_id", "request_id", "status", "started_at", "elapsed_seconds", "cancel_requested" ], "title": "AnalysisProgressData", "type": "object" }, "AnalysisProgressPollResponse": { "additionalProperties": false, "description": "대화 라우팅 중 아직 분석이 시작되지 않은 경우까지 오류 없이 polling한다.", "properties": { "data": { "anyOf": [ { "$ref": "#/components/schemas/AnalysisProgressData" }, { "type": "null" } ] }, "error": { "anyOf": [ { "$ref": "#/components/schemas/ErrorBody" }, { "type": "null" } ] }, "meta": { "$ref": "#/components/schemas/ResponseMeta" } }, "required": [ "meta" ], "title": "AnalysisProgressPollResponse", "type": "object" }, "AnalysisProgressResponse": { "additionalProperties": false, "description": "비동기 분석의 현재 진행 정보와 공통 메타데이터, 선택적 오류를 반환한다.", "properties": { "data": { "$ref": "#/components/schemas/AnalysisProgressData" }, "error": { "anyOf": [ { "$ref": "#/components/schemas/ErrorBody" }, { "type": "null" } ] }, "meta": { "$ref": "#/components/schemas/ResponseMeta" } }, "required": [ "data", "meta" ], "title": "AnalysisProgressResponse", "type": "object" }, "AnalysisRequest": { "additionalProperties": false, "description": "자연어 질문과 선택적 템플릿·스칼라 매개변수를 수신하며 빈 질문과 잘못된 기간을 거부한다.", "properties": { "parameters": { "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "integer" }, { "type": "number" }, { "type": "boolean" }, { "type": "null" } ] }, "title": "Parameters", "type": "object" }, "question": { "maxLength": 1000, "minLength": 1, "title": "Question", "type": "string" }, "resolved_slots": { "anyOf": [ { "$ref": "#/components/schemas/ResolvedSlots" }, { "type": "null" } ] }, "template_id": { "anyOf": [ { "maxLength": 128, "type": "string" }, { "type": "null" } ], "title": "Template Id" } }, "required": [ "question" ], "title": "AnalysisRequest", "type": "object" }, "AnalysisResponse": { "additionalProperties": false, "description": "분석 상태·결과 본문과 공통 메타데이터, 선택적 구조화 오류를 반환한다.", "properties": { "data": { "$ref": "#/components/schemas/AnalysisData" }, "error": { "anyOf": [ { "$ref": "#/components/schemas/ErrorBody" }, { "type": "null" } ] }, "meta": { "$ref": "#/components/schemas/ResponseMeta" } }, "required": [ "data", "meta" ], "title": "AnalysisResponse", "type": "object" }, "AnalysisResult": { "additionalProperties": false, "description": "요약과 선택적 지표·표·차트를 필수 실행 증거와 결합한 최종 분석 산출물이다.", "properties": { "chart": { "anyOf": [ { "$ref": "#/components/schemas/ChartSpec" }, { "type": "null" } ] }, "evidence": { "$ref": "#/components/schemas/Evidence" }, "metrics": { "default": [], "items": { "$ref": "#/components/schemas/MetricValue" }, "title": "Metrics", "type": "array" }, "summary": { "title": "Summary", "type": "string" }, "table": { "anyOf": [ { "$ref": "#/components/schemas/TableResult" }, { "type": "null" } ] } }, "required": [ "summary", "evidence" ], "title": "AnalysisResult", "type": "object" }, "AnalysisRunArtifactResponse": { "additionalProperties": false, "description": "성공 또는 부분 성공 실행의 표·차트·지표·증거를 산출물 및 쿼리 ID와 SHA-256에 결속한다.", "properties": { "artifact_checksum": { "pattern": "^[0-9a-f]{64}$", "title": "Artifact Checksum", "type": "string" }, "artifact_id": { "format": "uuid", "title": "Artifact Id", "type": "string" }, "chart": { "anyOf": [ { "$ref": "#/components/schemas/ChartSpec" }, { "type": "null" } ] }, "contract_version": { "default": "ANALYSIS-PERSISTENCE-v1.0.0-DRAFT", "title": "Contract Version", "type": "string" }, "evidence": { "$ref": "#/components/schemas/Evidence" }, "metrics": { "default": [], "items": { "$ref": "#/components/schemas/MetricValue" }, "title": "Metrics", "type": "array" }, "query_id": { "title": "Query Id", "type": "string" }, "question": { "title": "Question", "type": "string" }, "request_id": { "format": "uuid", "title": "Request Id", "type": "string" }, "status": { "enum": [ "SUCCEEDED", "PARTIAL" ], "title": "Status", "type": "string" }, "summary": { "title": "Summary", "type": "string" }, "table": { "$ref": "#/components/schemas/TableResult" }, "trace_id": { "title": "Trace Id", "type": "string" } }, "required": [ "request_id", "trace_id", "status", "question", "summary", "table", "evidence", "artifact_id", "query_id", "artifact_checksum" ], "title": "AnalysisRunArtifactResponse", "type": "object" }, "AnalysisRunListResponse": { "additionalProperties": false, "description": "분석 재실행 이력 항목들을 영속 계약 버전과 함께 목록으로 반환한다.", "properties": { "contract_version": { "default": "ANALYSIS-PERSISTENCE-v1.0.0-DRAFT", "title": "Contract Version", "type": "string" }, "items": { "items": { "$ref": "#/components/schemas/AnalysisRunResponse" }, "title": "Items", "type": "array" } }, "required": [ "items" ], "title": "AnalysisRunListResponse", "type": "object" }, "AnalysisRunResponse": { "additionalProperties": false, "description": "정의 버전별 재실행 상태, 시간 근거, 추적·쿼리·산출물 ID와 완료 시각을 반환한다.", "properties": { "artifact_archived": { "default": false, "title": "Artifact Archived", "type": "boolean" }, "artifact_archived_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "Artifact Archived At" }, "artifact_archived_by": { "anyOf": [ { "format": "uuid", "type": "string" }, { "type": "null" } ], "title": "Artifact Archived By" }, "artifact_id": { "anyOf": [ { "format": "uuid", "type": "string" }, { "type": "null" } ], "title": "Artifact Id" }, "as_of": { "format": "date", "title": "As Of", "type": "string" }, "completed_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "Completed At" }, "contract_version": { "default": "ANALYSIS-PERSISTENCE-v1.0.0-DRAFT", "title": "Contract Version", "type": "string" }, "definition_id": { "format": "uuid", "title": "Definition Id", "type": "string" }, "definition_version": { "title": "Definition Version", "type": "integer" }, "error_type": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Error Type" }, "period_end_exclusive": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "title": "Period End Exclusive" }, "period_start": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "title": "Period Start" }, "query_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Query Id" }, "question": { "title": "Question", "type": "string" }, "request_id": { "format": "uuid", "title": "Request Id", "type": "string" }, "snapshot_cutoff": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "title": "Snapshot Cutoff" }, "snapshot_selection": { "anyOf": [ { "const": "max_source_value_lt_as_of", "type": "string" }, { "type": "null" } ], "title": "Snapshot Selection" }, "started_at": { "format": "date-time", "title": "Started At", "type": "string" }, "status": { "enum": [ "RECEIVED", "CLARIFYING", "SUCCEEDED", "PARTIAL", "FAILED", "BLOCKED", "CANCELLED" ], "title": "Status", "type": "string" }, "timezone": { "title": "Timezone", "type": "string" }, "trace_id": { "title": "Trace Id", "type": "string" } }, "required": [ "request_id", "definition_id", "definition_version", "status", "as_of", "timezone", "trace_id", "started_at", "question" ], "title": "AnalysisRunResponse", "type": "object" }, "AnalysisStatus": { "description": "분석 요청의 수신부터 성공·차단·실패·취소까지 외부에 노출할 수명주기를 열거한다.", "enum": [ "RECEIVED", "ROUTED", "SUCCEEDED", "BLOCKED", "PARTIAL", "FAILED", "CANCELLED", "CLARIFICATION_REQUIRED" ], "title": "AnalysisStatus", "type": "string" }, "ApproveReportVersionRequest": { "additionalProperties": false, "description": "보고서 버전 승인 시각과 선택적 최종 페이지 방향을 서버에 전달한다.", "properties": { "approved_at": { "format": "date-time", "title": "Approved At", "type": "string" }, "orientation": { "anyOf": [ { "enum": [ "portrait", "landscape" ], "type": "string" }, { "type": "null" } ], "title": "Orientation" } }, "required": [ "approved_at" ], "title": "ApproveReportVersionRequest", "type": "object" }, "ArtifactReference": { "additionalProperties": false, "description": "저장된 분석 산출물을 실행 쿼리와 승인된 문맥 해시에 결속하는 참조다.", "properties": { "artifact_id": { "format": "uuid", "title": "Artifact Id", "type": "string" }, "context_hash": { "title": "Context Hash", "type": "string" }, "query_id": { "title": "Query Id", "type": "string" } }, "required": [ "artifact_id", "query_id", "context_hash" ], "title": "ArtifactReference", "type": "object" }, "AuditActorData": { "additionalProperties": false, "description": "계정 verifier나 세션 없이 감사 수행자의 공개 식별 정보만 표현한다.", "properties": { "display_name": { "title": "Display Name", "type": "string" }, "role": { "title": "Role", "type": "string" }, "subject": { "anyOf": [ { "format": "uuid", "type": "string" }, { "type": "null" } ], "title": "Subject" } }, "required": [ "subject", "display_name", "role" ], "title": "AuditActorData", "type": "object" }, "AuditCorrelationData": { "additionalProperties": false, "description": "여러 append-only 이벤트를 하나의 작업 이력으로 묶은 서버 기준을 표현한다.", "properties": { "id": { "title": "Id", "type": "string" }, "type": { "title": "Type", "type": "string" } }, "required": [ "type", "id" ], "title": "AuditCorrelationData", "type": "object" }, "AuditEventData": { "additionalProperties": false, "description": "append-only 감사 이벤트에서 자격 증명을 제외한 관리 조회 필드만 투영한다.", "properties": { "action_code": { "title": "Action Code", "type": "string" }, "actor_subject": { "anyOf": [ { "format": "uuid", "type": "string" }, { "type": "null" } ], "title": "Actor Subject" }, "details": { "additionalProperties": true, "title": "Details", "type": "object" }, "event_id": { "format": "uuid", "title": "Event Id", "type": "string" }, "occurred_at": { "format": "date-time", "title": "Occurred At", "type": "string" }, "result": { "title": "Result", "type": "string" }, "target_id": { "title": "Target Id", "type": "string" }, "target_type": { "title": "Target Type", "type": "string" } }, "required": [ "event_id", "occurred_at", "actor_subject", "action_code", "target_type", "target_id", "result", "details" ], "title": "AuditEventData", "type": "object" }, "AuditEventListData": { "additionalProperties": false, "description": "감사 이벤트 목록과 1-based pagination 위치 및 전체 건수를 반환한다.", "properties": { "items": { "items": { "$ref": "#/components/schemas/AuditEventData" }, "title": "Items", "type": "array" }, "page": { "minimum": 1.0, "title": "Page", "type": "integer" }, "page_size": { "maximum": 100.0, "minimum": 1.0, "title": "Page Size", "type": "integer" }, "total": { "minimum": 0.0, "title": "Total", "type": "integer" } }, "required": [ "items", "page", "page_size", "total" ], "title": "AuditEventListData", "type": "object" }, "AuditEventListResponse": { "additionalProperties": false, "description": "감사 이벤트 목록을 공통 추적 메타데이터와 함께 반환한다.", "properties": { "data": { "$ref": "#/components/schemas/AuditEventListData" }, "error": { "title": "Error", "type": "null" }, "meta": { "$ref": "#/components/schemas/ResponseMeta" } }, "required": [ "data", "meta" ], "title": "AuditEventListResponse", "type": "object" }, "AuditEvidenceData": { "additionalProperties": false, "description": "감사 이벤트와 실행·정책·산출물을 연결하는 비밀정보 없는 식별자를 표현한다.", "properties": { "artifact_id": { "anyOf": [ { "format": "uuid", "type": "string" }, { "type": "null" } ], "title": "Artifact Id" }, "context_release_id": { "anyOf": [ { "format": "uuid", "type": "string" }, { "type": "null" } ], "title": "Context Release Id" }, "model_version_id": { "anyOf": [ { "format": "uuid", "type": "string" }, { "type": "null" } ], "title": "Model Version Id" }, "query_execution_id": { "anyOf": [ { "format": "uuid", "type": "string" }, { "type": "null" } ], "title": "Query Execution Id" }, "query_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Query Id" }, "report_run_id": { "anyOf": [ { "format": "uuid", "type": "string" }, { "type": "null" } ], "title": "Report Run Id" }, "request_id": { "anyOf": [ { "format": "uuid", "type": "string" }, { "type": "null" } ], "title": "Request Id" }, "sql_policy_version": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Sql Policy Version" }, "trace_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Trace Id" } }, "required": [ "request_id", "trace_id", "query_execution_id", "query_id", "artifact_id", "report_run_id", "context_release_id", "model_version_id", "sql_policy_version" ], "title": "AuditEvidenceData", "type": "object" }, "AuditObjectData": { "additionalProperties": false, "description": "감사 이벤트가 직접 다룬 객체의 종류와 불변 식별자를 표현한다.", "properties": { "id": { "title": "Id", "type": "string" }, "type": { "title": "Type", "type": "string" } }, "required": [ "type", "id" ], "title": "AuditObjectData", "type": "object" }, "AuditTrailDetailData": { "additionalProperties": false, "description": "선택한 trail의 시간 범위와 발생 순서대로 정렬된 이벤트를 반환한다.", "properties": { "ended_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "Ended At" }, "events": { "items": { "$ref": "#/components/schemas/AuditTrailEventData" }, "title": "Events", "type": "array" }, "headline": { "title": "Headline", "type": "string" }, "outcome": { "enum": [ "SUCCEEDED", "FAILED", "DENIED", "CANCELLED", "IN_PROGRESS", "CLARIFICATION_REQUIRED", "UNKNOWN" ], "title": "Outcome", "type": "string" }, "started_at": { "format": "date-time", "title": "Started At", "type": "string" }, "trail_id": { "title": "Trail Id", "type": "string" } }, "required": [ "trail_id", "headline", "started_at", "ended_at", "outcome", "events" ], "title": "AuditTrailDetailData", "type": "object" }, "AuditTrailDetailResponse": { "additionalProperties": false, "description": "단일 감사 trail 상세를 공통 요청 추적 메타데이터와 함께 반환한다.", "properties": { "data": { "$ref": "#/components/schemas/AuditTrailDetailData" }, "error": { "title": "Error", "type": "null" }, "meta": { "$ref": "#/components/schemas/ResponseMeta" } }, "required": [ "data", "meta" ], "title": "AuditTrailDetailResponse", "type": "object" }, "AuditTrailEventData": { "additionalProperties": false, "description": "단일 trail 안의 순서와 redacted 기술 근거가 검증된 이벤트를 표현한다.", "properties": { "action_code": { "title": "Action Code", "type": "string" }, "action_label": { "title": "Action Label", "type": "string" }, "actor": { "$ref": "#/components/schemas/AuditActorData" }, "details_redacted": { "additionalProperties": true, "title": "Details Redacted", "type": "object" }, "event_id": { "format": "uuid", "title": "Event Id", "type": "string" }, "evidence": { "$ref": "#/components/schemas/AuditEvidenceData" }, "object": { "$ref": "#/components/schemas/AuditObjectData" }, "occurred_at": { "format": "date-time", "title": "Occurred At", "type": "string" }, "outcome": { "enum": [ "SUCCEEDED", "FAILED", "DENIED", "CANCELLED", "IN_PROGRESS", "CLARIFICATION_REQUIRED", "UNKNOWN" ], "title": "Outcome", "type": "string" }, "sequence": { "minimum": 0.0, "title": "Sequence", "type": "integer" }, "summary": { "title": "Summary", "type": "string" } }, "required": [ "event_id", "occurred_at", "sequence", "action_code", "action_label", "summary", "outcome", "actor", "object", "evidence", "details_redacted" ], "title": "AuditTrailEventData", "type": "object" }, "AuditTrailPageData": { "additionalProperties": false, "description": "감사 trail 요약과 다음 keyset 위치를 나타내는 불투명 cursor를 반환한다.", "properties": { "items": { "items": { "$ref": "#/components/schemas/AuditTrailSummaryData" }, "title": "Items", "type": "array" }, "next_cursor": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Next Cursor" } }, "required": [ "items", "next_cursor" ], "title": "AuditTrailPageData", "type": "object" }, "AuditTrailPageResponse": { "additionalProperties": false, "description": "감사 trail 목록을 공통 요청 추적 메타데이터와 함께 반환한다.", "properties": { "data": { "$ref": "#/components/schemas/AuditTrailPageData" }, "error": { "title": "Error", "type": "null" }, "meta": { "$ref": "#/components/schemas/ResponseMeta" } }, "required": [ "data", "meta" ], "title": "AuditTrailPageResponse", "type": "object" }, "AuditTrailSummaryData": { "additionalProperties": false, "description": "최신순 감사 trail 목록에서 선택에 필요한 요약 필드만 표현한다.", "properties": { "actor": { "$ref": "#/components/schemas/AuditActorData" }, "correlation": { "$ref": "#/components/schemas/AuditCorrelationData" }, "ended_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "Ended At" }, "event_count": { "minimum": 1.0, "title": "Event Count", "type": "integer" }, "headline": { "title": "Headline", "type": "string" }, "outcome": { "enum": [ "SUCCEEDED", "FAILED", "DENIED", "CANCELLED", "IN_PROGRESS", "CLARIFICATION_REQUIRED", "UNKNOWN" ], "title": "Outcome", "type": "string" }, "primary_object": { "$ref": "#/components/schemas/AuditObjectData" }, "started_at": { "format": "date-time", "title": "Started At", "type": "string" }, "trail_id": { "title": "Trail Id", "type": "string" } }, "required": [ "trail_id", "headline", "started_at", "ended_at", "outcome", "event_count", "actor", "primary_object", "correlation" ], "title": "AuditTrailSummaryData", "type": "object" }, "BlockFailureCode": { "description": "블록 재실행 실패를 인증·문맥·모델·SQL·쿼리·증거·계약 범주로 안정적으로 분류한다.", "enum": [ "AUTHENTICATION_REQUIRED", "ACCESS_DENIED", "CONTEXT_INCOMPLETE", "CONTEXT_SOURCE_FAILED", "SEMANTIC_CONTRACT_INVALID", "DATA_ASSET_NOT_FOUND", "MODEL_CONTRACT_INVALID", "MODEL_TIMEOUT", "SQL_POLICY_BLOCKED", "SQL_REPAIR_FAILED", "TRINO_CONNECTION_FAILED", "QUERY_TIMEOUT", "QUERY_SOURCE_FAILED", "RESULT_VALIDATION_FAILED", "RESULT_EVIDENCE_MISSING", "ARTIFACT_PERSIST_FAILED", "PARTIAL_FAILURE", "INSUFFICIENT_EVIDENCE", "RATE_LIMITED", "REQUEST_CANCELLED", "CONTRACT_VERSION_MISMATCH", "SCHEMA_VERSION_MISMATCH", "DEFINITION_NOT_FOUND", "REPLAY_UNAVAILABLE", "INTERNAL_ERROR" ], "title": "BlockFailureCode", "type": "string" }, "Capability": { "description": "역할 이름과 분리해 API·데이터·보고서 경계가 검사할 수 있는 서비스 권한이다.", "enum": [ "analysis.run", "analysis.read", "report.draft", "report.manage", "data.manage", "system.manage" ], "title": "Capability", "type": "string" }, "ChartSpec": { "additionalProperties": false, "description": "검증된 표 결과를 그릴 차트 유형, X축 필드와 하나 이상의 Y축 필드만 전달한다.", "properties": { "chart_type": { "title": "Chart Type", "type": "string" }, "x_field": { "title": "X Field", "type": "string" }, "y_fields": { "items": { "type": "string" }, "title": "Y Fields", "type": "array" } }, "required": [ "chart_type", "x_field", "y_fields" ], "title": "ChartSpec", "type": "object" }, "ClarificationType": { "description": "사용자에게 추가로 확인해야 할 정보가 지표인지 조회 기간인지 지정한다.", "enum": [ "metric", "period" ], "title": "ClarificationType", "type": "string" }, "ConnectionData": { "additionalProperties": false, "description": "승인된 고정 dependency의 공개 이름·상태·지연시간만 노출한다.", "properties": { "checked_at": { "format": "date-time", "title": "Checked At", "type": "string" }, "id": { "title": "Id", "type": "string" }, "kind": { "title": "Kind", "type": "string" }, "latency_ms": { "minimum": 0.0, "title": "Latency Ms", "type": "integer" }, "name": { "title": "Name", "type": "string" }, "status": { "enum": [ "ready", "down", "paused" ], "title": "Status", "type": "string" } }, "required": [ "id", "name", "kind", "status", "latency_ms", "checked_at" ], "title": "ConnectionData", "type": "object" }, "ConnectionListData": { "additionalProperties": false, "description": "한 번의 관리자 점검에서 확인한 고정 dependency 상태 목록을 담는다.", "properties": { "items": { "items": { "$ref": "#/components/schemas/ConnectionData" }, "title": "Items", "type": "array" } }, "required": [ "items" ], "title": "ConnectionListData", "type": "object" }, "ConnectionListResponse": { "additionalProperties": false, "description": "연결 상태 목록을 공통 추적 메타데이터와 함께 반환한다.", "properties": { "data": { "$ref": "#/components/schemas/ConnectionListData" }, "error": { "title": "Error", "type": "null" }, "meta": { "$ref": "#/components/schemas/ResponseMeta" } }, "required": [ "data", "meta" ], "title": "ConnectionListResponse", "type": "object" }, "ConversationCommandRequest": { "additionalProperties": false, "description": "head를 변경하는 모든 command가 명시해야 하는 client 입력이다.\n\n첫 턴도 ``expected_head_turn_id: null``을 보내야 한다. 필드 생략과 서버가 확인한 빈 head를\n구분해 오래된 client가 CAS를 우회하지 못하게 한다.", "properties": { "expected_head_turn_id": { "anyOf": [ { "format": "uuid", "type": "string" }, { "type": "null" } ], "title": "Expected Head Turn Id" }, "idempotency_key": { "maxLength": 128, "minLength": 1, "title": "Idempotency Key", "type": "string" }, "inherit_previous_context": { "default": false, "title": "Inherit Previous Context", "type": "boolean" }, "ml_prediction": { "anyOf": [ { "$ref": "#/components/schemas/MLPredictionAction" }, { "type": "null" } ] }, "presentation_type": { "anyOf": [ { "enum": [ "SUMMARY", "TABLE", "BAR", "LINE", "PIE", "HORIZONTAL_BAR", "DONUT" ], "type": "string" }, { "type": "null" } ], "title": "Presentation Type" }, "requested_route": { "anyOf": [ { "enum": [ "ANALYSIS", "PRESENTATION", "REPORT_ACTION", "INTERNAL_GUIDELINE", "ML_PREDICTION" ], "type": "string" }, { "type": "null" } ], "title": "Requested Route" }, "user_message": { "maxLength": 1000, "minLength": 1, "title": "User Message", "type": "string" } }, "required": [ "user_message", "idempotency_key", "expected_head_turn_id" ], "title": "ConversationCommandRequest", "type": "object" }, "CreateAccountRequest": { "additionalProperties": false, "description": "login ID, 초기 비밀번호와 분석 사용자·관리자 Role만 계정 생성에 허용한다.", "properties": { "password": { "format": "password", "maxLength": 128, "minLength": 12, "title": "Password", "type": "string", "writeOnly": true }, "role": { "default": "analyst", "enum": [ "analyst", "admin" ], "title": "Role", "type": "string" }, "username": { "maxLength": 64, "minLength": 3, "pattern": "^[a-z0-9._-]+$", "title": "Username", "type": "string" } }, "required": [ "username", "password" ], "title": "CreateAccountRequest", "type": "object" }, "CreateAnalysisDefinitionRequest": { "additionalProperties": false, "description": "기존 분석 요청을 재사용 가능한 정의로 저장할 때 제목과 원본 요청 ID만 수신한다.", "properties": { "source_request_id": { "format": "uuid", "title": "Source Request Id", "type": "string" }, "title": { "maxLength": 255, "minLength": 1, "title": "Title", "type": "string" } }, "required": [ "title", "source_request_id" ], "title": "CreateAnalysisDefinitionRequest", "type": "object" }, "CreateManualRunRequest": { "additionalProperties": false, "description": "보고서 정의 버전과 멱등 키만 받아 서버 기준일의 수동 실행을 등록한다.", "properties": { "definition_id": { "minLength": 1, "title": "Definition Id", "type": "string" }, "idempotency_key": { "minLength": 1, "title": "Idempotency Key", "type": "string" }, "version": { "minimum": 1.0, "title": "Version", "type": "integer" } }, "required": [ "definition_id", "version", "idempotency_key" ], "title": "CreateManualRunRequest", "type": "object" }, "CreateReportAssistantSessionRequest": { "additionalProperties": false, "description": "보고서 초안과 대표·추가 승인 Artifact 최대 다섯 개를 Assistant 세션에 결속한다.", "properties": { "additional_artifact_ids": { "default": [], "items": { "format": "uuid", "type": "string" }, "maxItems": 4, "title": "Additional Artifact Ids", "type": "array" }, "artifact_id": { "format": "uuid", "title": "Artifact Id", "type": "string" }, "definition_id": { "format": "uuid", "title": "Definition Id", "type": "string" }, "definition_version": { "minimum": 1.0, "title": "Definition Version", "type": "integer" } }, "required": [ "definition_id", "definition_version", "artifact_id" ], "title": "CreateReportAssistantSessionRequest", "type": "object" }, "CreateReportDefinitionRequest": { "additionalProperties": false, "description": "새 보고서 정의의 식별자·제목·블록과 페이지 방향·통화 표시 단위를 입력받는다.", "properties": { "blocks": { "items": { "$ref": "#/components/schemas/ReportBlockRequest" }, "maxItems": 100, "title": "Blocks", "type": "array" }, "currency_display_unit": { "default": "auto", "enum": [ "auto", "one", "thousand", "million", "hundredMillion", "billion" ], "title": "Currency Display Unit", "type": "string" }, "definition_id": { "minLength": 1, "title": "Definition Id", "type": "string" }, "orientation": { "default": "portrait", "enum": [ "portrait", "landscape" ], "title": "Orientation", "type": "string" }, "title": { "maxLength": 255, "minLength": 1, "title": "Title", "type": "string" } }, "required": [ "definition_id", "title" ], "title": "CreateReportDefinitionRequest", "type": "object" }, "CreateReportFromArtifactRequest": { "additionalProperties": false, "description": "기존 분석 산출물 ID와 사용자 제목으로 첫 보고서 정의를 생성하도록 요청한다.", "properties": { "artifact_id": { "format": "uuid", "title": "Artifact Id", "type": "string" }, "preferred_view": { "anyOf": [ { "enum": [ "summary", "kpi", "chart", "table" ], "type": "string" }, { "type": "null" } ], "title": "Preferred View" }, "title": { "maxLength": 255, "minLength": 1, "title": "Title", "type": "string" } }, "required": [ "artifact_id", "title" ], "title": "CreateReportFromArtifactRequest", "type": "object" }, "CreateReportScheduleRequest": { "additionalProperties": false, "description": "승인 정의 버전에 대한 일·주·월 주기와 offset 포함 다음 실행 시각을 등록한다.", "properties": { "cadence": { "enum": [ "daily", "weekly", "monthly" ], "title": "Cadence", "type": "string" }, "definition_id": { "format": "uuid", "title": "Definition Id", "type": "string" }, "next_run_at": { "format": "date-time", "title": "Next Run At", "type": "string" }, "schedule_id": { "format": "uuid", "title": "Schedule Id", "type": "string" }, "timezone": { "const": "Asia/Seoul", "default": "Asia/Seoul", "title": "Timezone", "type": "string" }, "version": { "minimum": 1.0, "title": "Version", "type": "integer" } }, "required": [ "schedule_id", "definition_id", "version", "cadence", "next_run_at" ], "title": "CreateReportScheduleRequest", "type": "object" }, "DisambiguationOption": { "additionalProperties": false, "description": "모호성 해소를 위해 사용자에게 제시하는 구조화된 선택지 계약이다.", "properties": { "clarification_type": { "$ref": "#/components/schemas/ClarificationType" }, "description": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Description" }, "label": { "title": "Label", "type": "string" }, "metric_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Metric Id" }, "period_end_exclusive": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Period End Exclusive" }, "period_start": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Period Start" }, "value": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Value" } }, "required": [ "label", "clarification_type" ], "title": "DisambiguationOption", "type": "object" }, "EmptyData": { "additionalProperties": false, "description": "오류 응답에서도 data 필드를 객체로 유지하기 위한 필드 없는 계약 모델이다.", "properties": {}, "title": "EmptyData", "type": "object" }, "ErrorBody": { "additionalProperties": false, "description": "안정적인 오류 코드, 사용자 메시지, 보완 요구사항과 추적 식별자를 API 실패로 전달한다.", "properties": { "clarification_type": { "anyOf": [ { "$ref": "#/components/schemas/ClarificationType" }, { "type": "null" } ] }, "code": { "$ref": "#/components/schemas/ErrorCode" }, "disambiguation_options": { "default": [], "items": { "$ref": "#/components/schemas/DisambiguationOption" }, "title": "Disambiguation Options", "type": "array" }, "exact_page_count": { "anyOf": [ { "maximum": 20.0, "minimum": 1.0, "type": "integer" }, { "type": "null" } ], "title": "Exact Page Count" }, "message": { "title": "Message", "type": "string" }, "missing_requirements": { "default": [], "items": { "type": "string" }, "title": "Missing Requirements", "type": "array" }, "required_action": { "$ref": "#/components/schemas/RequiredAction", "default": "NONE" }, "retryable": { "default": false, "title": "Retryable", "type": "boolean" }, "suggestions": { "default": [], "items": { "type": "string" }, "title": "Suggestions", "type": "array" }, "trace_id": { "default": "", "title": "Trace Id", "type": "string" }, "verified_page_count": { "anyOf": [ { "minimum": 1.0, "type": "integer" }, { "type": "null" } ], "title": "Verified Page Count" } }, "required": [ "code", "message" ], "title": "ErrorBody", "type": "object" }, "ErrorCode": { "description": "인증, 문맥, 모델, SQL, 쿼리, 증거, 의존성 실패를 안정적인 API 코드로 분류한다.", "enum": [ "CONTEXT_INCOMPLETE", "CONTEXT_SOURCE_FAILED", "SEMANTIC_CONTRACT_INVALID", "DATA_ASSET_NOT_FOUND", "OUT_OF_DATA_RANGE", "SOURCE_NOT_READY", "GRAIN_VIOLATION", "FILTER_VALUE_NOT_FOUND", "METRIC_NOT_AVAILABLE", "AUTHENTICATION_REQUIRED", "ACCESS_DENIED", "MODEL_CONTRACT_INVALID", "MODEL_TIMEOUT", "MODEL_ENDPOINT_UNAVAILABLE", "MODEL_OUTPUT_UNGROUNDED", "REPORT_ASSISTANT_MODEL_AUTHENTICATION_FAILED", "REPORT_ASSISTANT_MODEL_RATE_LIMITED", "REPORT_ASSISTANT_MODEL_REQUEST_REJECTED", "REPORT_ASSISTANT_MODEL_TIMEOUT", "REPORT_ASSISTANT_MODEL_TRANSPORT_FAILED", "REPORT_ASSISTANT_MODEL_CONTRACT_INVALID", "REPORT_ASSISTANT_MODEL_CONFIGURATION_INVALID", "EXTERNAL_TRANSFER_OUTCOME_UNKNOWN", "REPORT_ASSISTANT_TURN_MODEL_FAILED", "REPORT_ASSISTANT_TURN_MODEL_INVALID", "REPORT_ASSISTANT_PAGE_CONSTRAINT_UNSATISFIED", "REPORT_ASSISTANT_PAGE_RENDER_FAILED", "CIRCUIT_OPEN", "INSUFFICIENT_CONTEXT", "UNREPAIRABLE", "SQL_POLICY_BLOCKED", "SQL_REPAIR_FAILED", "TRINO_CONNECTION_FAILED", "QUERY_TIMEOUT", "QUERY_SOURCE_FAILED", "EMPTY_RESULT", "PRESENTATION_NOT_SUPPORTED", "RESULT_VALIDATION_FAILED", "RESULT_EVIDENCE_MISSING", "ARTIFACT_PERSIST_FAILED", "PARTIAL_FAILURE", "INSUFFICIENT_EVIDENCE", "RATE_LIMITED", "REQUEST_CANCELLED", "CONTRACT_VERSION_MISMATCH", "SCHEMA_VERSION_MISMATCH", "RESOURCE_NOT_FOUND", "RESOURCE_CONFLICT", "LAST_ADMIN_REQUIRED", "CONVERSATION_CONFLICT", "CONVERSATION_BUSY", "CONVERSATION_ARCHIVED", "IDEMPOTENCY_CONFLICT", "REPORT_DRAFT_CONFLICT", "DEPENDENCY_UNAVAILABLE", "INTERNAL_ERROR" ], "title": "ErrorCode", "type": "string" }, "ErrorResponse": { "additionalProperties": false, "description": "정상 데이터가 없는 실패를 빈 data 객체, 공통 메타데이터와 필수 오류 본문으로 전달한다.", "properties": { "data": { "$ref": "#/components/schemas/EmptyData" }, "error": { "$ref": "#/components/schemas/ErrorBody" }, "meta": { "$ref": "#/components/schemas/ResponseMeta" } }, "required": [ "meta", "error" ], "title": "ErrorResponse", "type": "object" }, "Evidence": { "additionalProperties": false, "description": "기준일·필터·자산·지표·정책·모델·게이트·샘플링을 묶어 결과의 계보를 증명한다.", "properties": { "artifact_id": { "anyOf": [ { "format": "uuid", "type": "string" }, { "type": "null" } ], "title": "Artifact Id" }, "as_of": { "format": "date", "title": "As Of", "type": "string" }, "cached": { "default": false, "title": "Cached", "type": "boolean" }, "comparison_period": { "anyOf": [ { "$ref": "#/components/schemas/PeriodEvidence" }, { "type": "null" } ] }, "context_release": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Context Release" }, "evidence_cutoff": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "title": "Evidence Cutoff" }, "execution": { "$ref": "#/components/schemas/QueryExecutionEvidence" }, "filters": { "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "integer" }, { "type": "number" }, { "type": "boolean" }, { "type": "null" } ] }, "title": "Filters", "type": "object" }, "gate_history": { "anyOf": [ { "$ref": "#/components/schemas/GateHistoryEvidence" }, { "type": "null" } ] }, "gates": { "anyOf": [ { "$ref": "#/components/schemas/GateEvidence" }, { "type": "null" } ] }, "masking": { "$ref": "#/components/schemas/MaskingEvidence" }, "metric_values": { "default": [], "items": { "$ref": "#/components/schemas/MetricValue" }, "title": "Metric Values", "type": "array" }, "metrics": { "default": [], "items": { "$ref": "#/components/schemas/MetricReference" }, "title": "Metrics", "type": "array" }, "model_version": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Model Version" }, "models": { "default": [], "items": { "$ref": "#/components/schemas/ModelInvocationEvidence" }, "title": "Models", "type": "array" }, "period": { "anyOf": [ { "$ref": "#/components/schemas/PeriodEvidence" }, { "type": "null" } ] }, "permission_snapshot_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Permission Snapshot Id" }, "policy_version": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Policy Version" }, "product_release_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Product Release Id" }, "query_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Query Id" }, "sampling": { "$ref": "#/components/schemas/SamplingEvidence" }, "semantic_release_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Semantic Release Id" }, "snapshot": { "anyOf": [ { "$ref": "#/components/schemas/SnapshotEvidence" }, { "type": "null" } ] }, "sources": { "default": [], "items": { "$ref": "#/components/schemas/SourceReference" }, "title": "Sources", "type": "array" }, "timezone": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Timezone" } }, "required": [ "as_of" ], "title": "Evidence", "type": "object" }, "GateEvidence": { "additionalProperties": false, "description": "문맥, SQL, 결과 검증 게이트의 최종 판정을 G1·G2·G3 순서로 제공한다.", "properties": { "g1": { "$ref": "#/components/schemas/StageOutcome" }, "g2": { "$ref": "#/components/schemas/StageOutcome" }, "g3": { "$ref": "#/components/schemas/StageOutcome" } }, "required": [ "g1", "g2", "g3" ], "title": "GateEvidence", "type": "object" }, "GateHistoryEvidence": { "additionalProperties": false, "description": "복구 시도를 포함해 각 검증 게이트에서 발생한 판정 이력을 순서대로 보존한다.", "properties": { "g1": { "items": { "$ref": "#/components/schemas/StageOutcome" }, "title": "G1", "type": "array" }, "g2": { "items": { "$ref": "#/components/schemas/StageOutcome" }, "title": "G2", "type": "array" }, "g3": { "items": { "$ref": "#/components/schemas/StageOutcome" }, "title": "G3", "type": "array" } }, "required": [ "g1", "g2", "g3" ], "title": "GateHistoryEvidence", "type": "object" }, "GateRequirements": { "additionalProperties": false, "description": "선택된 라우트에서 문맥 게이트와 SQL 게이트의 수행 필요 여부를 클라이언트에 알린다.", "properties": { "g1_required": { "title": "G1 Required", "type": "boolean" }, "g2_required": { "title": "G2 Required", "type": "boolean" } }, "required": [ "g1_required", "g2_required" ], "title": "GateRequirements", "type": "object" }, "HTTPValidationError": { "properties": { "detail": { "items": { "$ref": "#/components/schemas/ValidationError" }, "title": "Detail", "type": "array" } }, "title": "HTTPValidationError", "type": "object" }, "HealthData": { "additionalProperties": false, "description": "프로세스 생존 여부를 나타내는 최소 상태 문자열을 health 응답에 제공한다.", "properties": { "status": { "title": "Status", "type": "string" } }, "required": [ "status" ], "title": "HealthData", "type": "object" }, "HealthResponse": { "additionalProperties": false, "description": "프로세스 health 본문을 공통 응답 메타데이터 및 선택적 오류와 감싼다.", "properties": { "data": { "$ref": "#/components/schemas/HealthData" }, "error": { "anyOf": [ { "$ref": "#/components/schemas/ErrorBody" }, { "type": "null" } ] }, "meta": { "$ref": "#/components/schemas/ResponseMeta" } }, "required": [ "data", "meta" ], "title": "HealthResponse", "type": "object" }, "LoginData": { "additionalProperties": false, "description": "로그인 성공 시 확정된 세션 상태와 역할을 SessionData 형식으로 반환한다.", "properties": { "capabilities": { "default": [], "items": { "$ref": "#/components/schemas/Capability" }, "title": "Capabilities", "type": "array" }, "enabled_features": { "default": [], "items": { "$ref": "#/components/schemas/RuntimeFeature" }, "title": "Enabled Features", "type": "array" }, "role": { "anyOf": [ { "enum": [ "analyst", "admin" ], "type": "string" }, { "type": "null" } ], "title": "Role" }, "status": { "default": "authenticated", "title": "Status", "type": "string" } }, "title": "LoginData", "type": "object" }, "LoginRequest": { "additionalProperties": false, "description": "허용 문자와 길이가 제한된 사용자명 및 비밀번호를 로그인 경계에서 검증한다.", "properties": { "password": { "maxLength": 128, "minLength": 8, "title": "Password", "type": "string" }, "username": { "maxLength": 64, "minLength": 3, "pattern": "^[a-z0-9._-]+$", "title": "Username", "type": "string" } }, "required": [ "username", "password" ], "title": "LoginRequest", "type": "object" }, "LoginResponse": { "additionalProperties": false, "description": "로그인 결과 세션을 공통 메타데이터와 선택적 구조화 오류로 반환한다.", "properties": { "data": { "$ref": "#/components/schemas/LoginData" }, "error": { "anyOf": [ { "$ref": "#/components/schemas/ErrorBody" }, { "type": "null" } ] }, "meta": { "$ref": "#/components/schemas/ResponseMeta" } }, "required": [ "data", "meta" ], "title": "LoginResponse", "type": "object" }, "MLDailyForecast": { "additionalProperties": false, "description": "한 영업일의 객실 수요·잔여·점유율 예측을 동일 capacity에 결속한다.", "properties": { "predicted_available_rooms": { "minimum": 0.0, "title": "Predicted Available Rooms", "type": "number" }, "predicted_occupancy_rate": { "maximum": 1.0, "minimum": 0.0, "title": "Predicted Occupancy Rate", "type": "number" }, "predicted_occupied_rooms": { "minimum": 0.0, "title": "Predicted Occupied Rooms", "type": "number" }, "target_date": { "format": "date", "title": "Target Date", "type": "string" }, "total_available_rooms": { "exclusiveMinimum": 0.0, "title": "Total Available Rooms", "type": "number" } }, "required": [ "target_date", "total_available_rooms", "predicted_occupied_rooms", "predicted_available_rooms", "predicted_occupancy_rate" ], "title": "MLDailyForecast", "type": "object" }, "MLHistorySourceCapability": { "additionalProperties": false, "description": "Runtime 시작 시 검증된 history source의 최소 영수증이다.", "properties": { "continuity_query_id": { "maxLength": 256, "minLength": 1, "title": "Continuity Query Id", "type": "string" }, "max_date": { "format": "date", "title": "Max Date", "type": "string" }, "min_date": { "format": "date", "title": "Min Date", "type": "string" }, "property_count": { "minimum": 1.0, "title": "Property Count", "type": "integer" }, "row_count": { "minimum": 1.0, "title": "Row Count", "type": "integer" }, "series_count": { "minimum": 1.0, "title": "Series Count", "type": "integer" }, "summary_query_id": { "maxLength": 256, "minLength": 1, "title": "Summary Query Id", "type": "string" }, "synthetic_only": { "title": "Synthetic Only", "type": "boolean" }, "table": { "maxLength": 256, "minLength": 5, "pattern": "^[A-Za-z_][A-Za-z0-9_]*\\.[A-Za-z_][A-Za-z0-9_]*\\.[A-Za-z_][A-Za-z0-9_]*$", "title": "Table", "type": "string" } }, "required": [ "table", "row_count", "property_count", "series_count", "min_date", "max_date", "synthetic_only", "summary_query_id", "continuity_query_id" ], "title": "MLHistorySourceCapability", "type": "object" }, "MLPredictionAction": { "additionalProperties": false, "description": "클라이언트가 명시적으로 요청하는 객실 수요 예측의 typed 입력이다.", "properties": { "as_of": { "format": "date", "title": "As Of", "type": "string" }, "horizon_days": { "maximum": 366.0, "minimum": 1.0, "title": "Horizon Days", "type": "integer" }, "property_id": { "maxLength": 64, "minLength": 1, "pattern": "^[A-Za-z0-9_-]+$", "title": "Property Id", "type": "string" } }, "required": [ "property_id", "as_of", "horizon_days" ], "title": "MLPredictionAction", "type": "object" }, "MLPredictionProvenance": { "additionalProperties": false, "description": "예측값이 승인 history 조회와 요청 기준일에서 생성됐음을 증명한다.", "properties": { "feature_as_of": { "format": "date", "title": "Feature As Of", "type": "string" }, "history_table": { "maxLength": 256, "minLength": 5, "pattern": "^[A-Za-z_][A-Za-z0-9_]*\\.[A-Za-z_][A-Za-z0-9_]*\\.[A-Za-z_][A-Za-z0-9_]*$", "title": "History Table", "type": "string" }, "rag_called": { "const": false, "title": "Rag Called", "type": "boolean" }, "request_as_of": { "format": "date", "title": "Request As Of", "type": "string" }, "source": { "const": "TRINO_HISTORICAL_DAILY_FACTS", "title": "Source", "type": "string" }, "trino_query_id": { "maxLength": 256, "minLength": 1, "title": "Trino Query Id", "type": "string" } }, "required": [ "source", "history_table", "trino_query_id", "feature_as_of", "request_as_of", "rag_called" ], "title": "MLPredictionProvenance", "type": "object" }, "MLPropertyCapability": { "additionalProperties": false, "description": "한 호텔의 예측 가능 기준일과 읽힌 history 범위를 고정한다.", "properties": { "feature_max_as_of": { "format": "date", "title": "Feature Max As Of", "type": "string" }, "history_rows": { "minimum": 1.0, "title": "History Rows", "type": "integer" }, "max_as_of": { "format": "date", "title": "Max As Of", "type": "string" }, "min_as_of": { "format": "date", "title": "Min As Of", "type": "string" }, "property_id": { "maxLength": 64, "minLength": 1, "pattern": "^[A-Za-z0-9_-]+$", "title": "Property Id", "type": "string" } }, "required": [ "property_id", "min_as_of", "max_as_of", "feature_max_as_of", "history_rows" ], "title": "MLPropertyCapability", "type": "object" }, "MLRoomDemandPrediction": { "additionalProperties": false, "description": "Runtime의 전체 room-demand prediction wire contract를 검증한다.", "properties": { "as_of": { "format": "date", "title": "As Of", "type": "string" }, "daily_forecasts": { "items": { "$ref": "#/components/schemas/MLDailyForecast" }, "minItems": 1, "title": "Daily Forecasts", "type": "array" }, "execution_id": { "format": "uuid", "title": "Execution Id", "type": "string" }, "feature_as_of": { "format": "date", "title": "Feature As Of", "type": "string" }, "feature_contract_sha256": { "pattern": "^[0-9a-f]{64}$", "title": "Feature Contract Sha256", "type": "string" }, "horizon_days": { "maximum": 366.0, "minimum": 1.0, "title": "Horizon Days", "type": "integer" }, "model_hash": { "pattern": "^[0-9a-f]{64}$", "title": "Model Hash", "type": "string" }, "model_version": { "maxLength": 160, "minLength": 1, "title": "Model Version", "type": "string" }, "property_id": { "maxLength": 64, "minLength": 1, "pattern": "^[A-Za-z0-9_-]+$", "title": "Property Id", "type": "string" }, "provenance": { "$ref": "#/components/schemas/MLPredictionProvenance" }, "room_type_forecasts": { "items": { "$ref": "#/components/schemas/MLRoomTypeForecast" }, "minItems": 1, "title": "Room Type Forecasts", "type": "array" }, "schema_version": { "const": "MLRoomDemandPrediction.v1", "title": "Schema Version", "type": "string" }, "status": { "const": "SUCCEEDED", "title": "Status", "type": "string" } }, "required": [ "schema_version", "status", "execution_id", "property_id", "as_of", "feature_as_of", "horizon_days", "model_version", "model_hash", "feature_contract_sha256", "daily_forecasts", "room_type_forecasts", "provenance" ], "title": "MLRoomDemandPrediction", "type": "object" }, "MLRoomTypeForecast": { "additionalProperties": false, "description": "일자·객실 유형별 raw·capacity-clipped 예측값을 보존한다.", "properties": { "available_rooms": { "exclusiveMinimum": 0.0, "title": "Available Rooms", "type": "number" }, "occupancy_rate": { "maximum": 1.0, "minimum": 0.0, "title": "Occupancy Rate", "type": "number" }, "predicted_rooms": { "minimum": 0.0, "title": "Predicted Rooms", "type": "number" }, "predicted_rooms_raw": { "title": "Predicted Rooms Raw", "type": "number" }, "room_type_code": { "maxLength": 64, "minLength": 1, "title": "Room Type Code", "type": "string" }, "target_date": { "format": "date", "title": "Target Date", "type": "string" } }, "required": [ "target_date", "room_type_code", "available_rooms", "predicted_rooms_raw", "predicted_rooms", "occupancy_rate" ], "title": "MLRoomTypeForecast", "type": "object" }, "MLRuntimeCapability": { "additionalProperties": false, "description": "Backend가 호출할 수 있는 객실 수요 Runtime의 release receipt다.", "properties": { "approval": { "enum": [ "APPROVED", "CONDITIONAL_PASS" ], "title": "Approval", "type": "string" }, "approval_status": { "maxLength": 64, "minLength": 1, "pattern": "^[A-Z][A-Z0-9_]*$", "title": "Approval Status", "type": "string" }, "estimator_type": { "maxLength": 160, "minLength": 1, "title": "Estimator Type", "type": "string" }, "feature_contract_sha256": { "pattern": "^[0-9a-f]{64}$", "title": "Feature Contract Sha256", "type": "string" }, "history_source": { "$ref": "#/components/schemas/MLHistorySourceCapability" }, "max_horizon_days": { "maximum": 366.0, "minimum": 1.0, "title": "Max Horizon Days", "type": "integer" }, "min_horizon_days": { "maximum": 366.0, "minimum": 1.0, "title": "Min Horizon Days", "type": "integer" }, "model_hash": { "pattern": "^[0-9a-f]{64}$", "title": "Model Hash", "type": "string" }, "model_max_horizon_days": { "maximum": 366.0, "minimum": 1.0, "title": "Model Max Horizon Days", "type": "integer" }, "model_type": { "maxLength": 160, "minLength": 1, "title": "Model Type", "type": "string" }, "model_version": { "maxLength": 160, "minLength": 1, "title": "Model Version", "type": "string" }, "prediction_contract_version": { "const": "MLRoomDemandPrediction.v1", "title": "Prediction Contract Version", "type": "string" }, "properties": { "items": { "$ref": "#/components/schemas/MLPropertyCapability" }, "minItems": 1, "title": "Properties", "type": "array" }, "query_id": { "maxLength": 256, "minLength": 1, "title": "Query Id", "type": "string" }, "schema_version": { "const": "MLRuntimeCapability.v2", "title": "Schema Version", "type": "string" }, "synthetic_training_data": { "title": "Synthetic Training Data", "type": "boolean" } }, "required": [ "schema_version", "prediction_contract_version", "model_version", "model_hash", "feature_contract_sha256", "model_type", "estimator_type", "approval", "approval_status", "min_horizon_days", "max_horizon_days", "model_max_horizon_days", "properties", "synthetic_training_data", "history_source", "query_id" ], "title": "MLRuntimeCapability", "type": "object" }, "MLRuntimeErrorDetail": { "additionalProperties": false, "description": "ML 기능·배포 정책·runtime 실패의 공개 가능한 코드와 안내 사유다.", "properties": { "code": { "maxLength": 96, "minLength": 1, "pattern": "^[A-Z][A-Z0-9_]*$", "title": "Code", "type": "string" }, "reason": { "maxLength": 500, "minLength": 1, "title": "Reason", "type": "string" } }, "required": [ "code", "reason" ], "title": "MLRuntimeErrorDetail", "type": "object" }, "MLRuntimeErrorResponse": { "additionalProperties": false, "description": "FastAPI HTTPException이 반환하는 ML 오류 envelope다.", "properties": { "detail": { "$ref": "#/components/schemas/MLRuntimeErrorDetail" } }, "required": [ "detail" ], "title": "MLRuntimeErrorResponse", "type": "object" }, "ManualRunCommandResponse": { "additionalProperties": false, "description": "수동 실행 명령의 멱등 키, 대상 정의, 기준 시각, 상태와 생성된 실행 ID를 반환한다.", "properties": { "as_of": { "format": "date-time", "title": "As Of", "type": "string" }, "command_id": { "title": "Command Id", "type": "string" }, "contract_version": { "title": "Contract Version", "type": "string" }, "definition_id": { "title": "Definition Id", "type": "string" }, "idempotency_key": { "title": "Idempotency Key", "type": "string" }, "run_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Run Id" }, "status": { "enum": [ "queued", "running", "success", "partial", "failed", "cancelled" ], "title": "Status", "type": "string" }, "version": { "title": "Version", "type": "integer" } }, "required": [ "contract_version", "command_id", "definition_id", "version", "as_of", "idempotency_key", "status" ], "title": "ManualRunCommandResponse", "type": "object" }, "MaskingEvidence": { "additionalProperties": false, "description": "민감 필드 마스킹 적용 여부와 가려진 필드 목록을 응답 소비자에게 공개한다.", "properties": { "applied": { "default": false, "title": "Applied", "type": "boolean" }, "fields": { "default": [], "items": { "type": "string" }, "title": "Fields", "type": "array" } }, "title": "MaskingEvidence", "type": "object" }, "MetricReference": { "additionalProperties": false, "description": "거버넌스 지표 ID를 결과 열, 표시명, 정의와 선택적 단위에 연결한다.", "properties": { "definition": { "title": "Definition", "type": "string" }, "display_label": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Display Label" }, "display_unit": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Display Unit" }, "label": { "title": "Label", "type": "string" }, "metric_id": { "title": "Metric Id", "type": "string" }, "result_field": { "title": "Result Field", "type": "string" }, "unit": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Unit" } }, "required": [ "metric_id", "result_field", "label", "definition" ], "title": "MetricReference", "type": "object" }, "MetricValue": { "additionalProperties": false, "description": "지표 정의와 실제 스칼라 결과값을 함께 제공해 값의 의미를 독립적으로 해석하게 한다.", "properties": { "definition": { "title": "Definition", "type": "string" }, "display_label": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Display Label" }, "display_unit": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Display Unit" }, "label": { "title": "Label", "type": "string" }, "metric_id": { "title": "Metric Id", "type": "string" }, "result_field": { "title": "Result Field", "type": "string" }, "unit": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Unit" }, "value": { "anyOf": [ { "type": "string" }, { "type": "integer" }, { "type": "number" }, { "type": "boolean" }, { "type": "null" } ], "title": "Value" } }, "required": [ "metric_id", "result_field", "label", "definition", "value" ], "title": "MetricValue", "type": "object" }, "ModelInvocationEvidence": { "additionalProperties": false, "description": "각 AI 노드가 사용한 모델과 프롬프트의 식별자·버전을 실행 증거로 고정한다.", "properties": { "model_version": { "title": "Model Version", "type": "string" }, "node": { "title": "Node", "type": "string" }, "prompt_id": { "title": "Prompt Id", "type": "string" }, "prompt_version": { "title": "Prompt Version", "type": "string" } }, "required": [ "node", "model_version", "prompt_id", "prompt_version" ], "title": "ModelInvocationEvidence", "type": "object" }, "PeriodEvidence": { "additionalProperties": false, "description": "실행 SQL에 적용된 반개구간 조회 기간을 시작일과 미포함 종료일로 기록한다.", "properties": { "end_exclusive": { "format": "date", "title": "End Exclusive", "type": "string" }, "start": { "format": "date", "title": "Start", "type": "string" } }, "required": [ "start", "end_exclusive" ], "title": "PeriodEvidence", "type": "object" }, "PipelineStage": { "description": "추적 로그에서 라우팅, 문맥 구성, 정책 게이트, 실행, 증거 저장 단계를 식별한다.", "enum": [ "ROUTER", "CONTROLLER", "CONTEXT", "G1", "MODEL", "G2", "REPAIR", "QUERY", "G3", "ARTIFACT" ], "title": "PipelineStage", "type": "string" }, "QueryExecutionEvidence": { "additionalProperties": false, "description": "Trino가 보고한 누적 처리량과 공개 가능한 warning 건수를 실행 근거로 남긴다.", "properties": { "critical_warning_count": { "default": 0, "minimum": 0.0, "title": "Critical Warning Count", "type": "integer" }, "processed_rows": { "default": 0, "minimum": 0.0, "title": "Processed Rows", "type": "integer" }, "scan_bytes": { "default": 0, "minimum": 0.0, "title": "Scan Bytes", "type": "integer" }, "warning_count": { "default": 0, "minimum": 0.0, "title": "Warning Count", "type": "integer" } }, "title": "QueryExecutionEvidence", "type": "object" }, "RagQueryRequest": { "additionalProperties": false, "description": "내부 매뉴얼 검색에 허용되는 질문과 대화 문맥 입력을 제한한다.", "properties": { "conversation_id": { "anyOf": [ { "format": "uuid", "type": "string" }, { "type": "null" } ], "title": "Conversation Id" }, "expected_head_turn_id": { "anyOf": [ { "format": "uuid", "type": "string" }, { "type": "null" } ], "title": "Expected Head Turn Id" }, "inherit_previous_context": { "default": false, "title": "Inherit Previous Context", "type": "boolean" }, "mode": { "default": "DOCUMENT_ONLY", "enum": [ "AUTO", "DOCUMENT_ONLY" ], "title": "Mode", "type": "string" }, "question": { "maxLength": 500, "minLength": 2, "title": "Question", "type": "string" } }, "required": [ "question" ], "title": "RagQueryRequest", "type": "object" }, "ReadinessData": { "additionalProperties": false, "description": "서비스 준비 상태와 각 외부 의존성의 점검 결과를 readiness 응답으로 제공한다.", "properties": { "dependencies": { "additionalProperties": { "type": "string" }, "title": "Dependencies", "type": "object" }, "status": { "title": "Status", "type": "string" } }, "required": [ "status", "dependencies" ], "title": "ReadinessData", "type": "object" }, "ReadinessResponse": { "additionalProperties": false, "description": "의존성 readiness 본문을 공통 응답 메타데이터 및 선택적 오류와 감싼다.", "properties": { "data": { "$ref": "#/components/schemas/ReadinessData" }, "error": { "anyOf": [ { "$ref": "#/components/schemas/ErrorBody" }, { "type": "null" } ] }, "meta": { "$ref": "#/components/schemas/ResponseMeta" } }, "required": [ "data", "meta" ], "title": "ReadinessResponse", "type": "object" }, "ReplaceReportBlocksRequest": { "additionalProperties": false, "description": "초안의 제목·전체 블록 배열·페이지 방향·통화 단위를 한 저장 요청으로 변경한다.", "properties": { "blocks": { "items": { "$ref": "#/components/schemas/ReportBlockRequest" }, "maxItems": 100, "title": "Blocks", "type": "array" }, "currency_display_unit": { "anyOf": [ { "enum": [ "auto", "one", "thousand", "million", "hundredMillion", "billion" ], "type": "string" }, { "type": "null" } ], "title": "Currency Display Unit" }, "expected_draft_revision": { "minimum": 1.0, "title": "Expected Draft Revision", "type": "integer" }, "orientation": { "anyOf": [ { "enum": [ "portrait", "landscape" ], "type": "string" }, { "type": "null" } ], "title": "Orientation" }, "title": { "anyOf": [ { "maxLength": 255, "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Title" } }, "required": [ "blocks", "expected_draft_revision" ], "title": "ReplaceReportBlocksRequest", "type": "object" }, "ReplayAnalysisRequest": { "additionalProperties": false, "description": "정의 재실행의 멱등 키와 허용된 스칼라 매개변수만 받아 중복 실행을 통제한다.\n\n기준일은 인증된 요청의 서버 소유 ``RequestContext``에서만 가져오며 일반 replay에\n역사 시점 주입 통로를 만들지 않는다.", "properties": { "idempotency_key": { "maxLength": 128, "minLength": 1, "title": "Idempotency Key", "type": "string" }, "parameters": { "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "integer" }, { "type": "number" }, { "type": "boolean" }, { "type": "null" } ] }, "title": "Parameters", "type": "object" } }, "required": [ "idempotency_key" ], "title": "ReplayAnalysisRequest", "type": "object" }, "ReportArtifactResponse": { "additionalProperties": false, "description": "보고서가 렌더링할 분석 내용과 공개 가능한 증거만 반환한다.\n\nquery ID와 checksum은 저장소 내부 lineage 검증에만 사용하며 브라우저 계약에는 넣지 않는다.", "properties": { "artifact_id": { "format": "uuid", "title": "Artifact Id", "type": "string" }, "chart": { "anyOf": [ { "$ref": "#/components/schemas/ChartSpec" }, { "type": "null" } ] }, "contract_version": { "title": "Contract Version", "type": "string" }, "evidence": { "$ref": "#/components/schemas/Evidence" }, "metrics": { "default": [], "items": { "$ref": "#/components/schemas/MetricValue" }, "title": "Metrics", "type": "array" }, "summary": { "title": "Summary", "type": "string" }, "table": { "$ref": "#/components/schemas/TableResult" }, "title": { "title": "Title", "type": "string" } }, "required": [ "contract_version", "artifact_id", "title", "summary", "table", "evidence" ], "title": "ReportArtifactResponse", "type": "object" }, "ReportArtifactVersionResponse": { "additionalProperties": false, "description": "승인 문서가 사용한 분석 산출물과 쿼리를 64자리 checksum에 결속해 재현성을 증명한다.", "properties": { "artifact_checksum": { "pattern": "^[0-9a-f]{64}$", "title": "Artifact Checksum", "type": "string" }, "artifact_id": { "format": "uuid", "title": "Artifact Id", "type": "string" }, "query_id": { "title": "Query Id", "type": "string" } }, "required": [ "artifact_id", "artifact_checksum", "query_id" ], "title": "ReportArtifactVersionResponse", "type": "object" }, "ReportAssistantAnalysisPlan": { "additionalProperties": false, "description": "새 데이터 실행 전에 질문·이유·범위를 request ID와 함께 고정한다.", "properties": { "question": { "maxLength": 1000, "minLength": 1, "title": "Question", "type": "string" }, "reason": { "maxLength": 500, "minLength": 1, "title": "Reason", "type": "string" }, "request_id": { "format": "uuid", "title": "Request Id", "type": "string" }, "scope": { "$ref": "#/components/schemas/ReportAssistantAnalysisScope" } }, "required": [ "request_id", "question", "reason", "scope" ], "title": "ReportAssistantAnalysisPlan", "type": "object" }, "ReportAssistantAnalysisScope": { "additionalProperties": false, "description": "승인 전에 사용자에게 공개할 조회 기간·지표·분석 범위를 제한된 문자열로 표현한다.", "properties": { "dimensions": { "default": [], "items": { "type": "string" }, "maxItems": 10, "title": "Dimensions", "type": "array" }, "metrics": { "items": { "type": "string" }, "maxItems": 10, "minItems": 1, "title": "Metrics", "type": "array" }, "period": { "maxLength": 255, "minLength": 1, "title": "Period", "type": "string" } }, "required": [ "period", "metrics" ], "title": "ReportAssistantAnalysisScope", "type": "object" }, "ReportAssistantApprovalRequest": { "additionalProperties": false, "description": "현재 승인 대기 계획에 대한 사용자의 승인 또는 거절 한 번만 입력받는다.", "properties": { "approved": { "title": "Approved", "type": "boolean" }, "request_id": { "format": "uuid", "title": "Request Id", "type": "string" } }, "required": [ "request_id", "approved" ], "title": "ReportAssistantApprovalRequest", "type": "object" }, "ReportAssistantEvaluationResponse": { "additionalProperties": false, "description": "원문 prompt·SQL 없이 한 Assistant 요청의 모델·승인·Revision 결과를 연결한다.", "properties": { "approval_decision": { "enum": [ "approved", "rejected", "pending" ], "title": "Approval Decision", "type": "string" }, "artifact_id": { "anyOf": [ { "format": "uuid", "type": "string" }, { "type": "null" } ], "title": "Artifact Id" }, "assistant_request_id": { "format": "uuid", "title": "Assistant Request Id", "type": "string" }, "contract_valid": { "title": "Contract Valid", "type": "boolean" }, "cost_is_estimate": { "title": "Cost Is Estimate", "type": "boolean" }, "data_request_id": { "anyOf": [ { "format": "uuid", "type": "string" }, { "type": "null" } ], "title": "Data Request Id" }, "definition_id": { "anyOf": [ { "format": "uuid", "type": "string" }, { "type": "null" } ], "title": "Definition Id" }, "definition_version": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Definition Version" }, "duplicate_revision_prevented": { "title": "Duplicate Revision Prevented", "type": "boolean" }, "error_code": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Error Code" }, "estimated_cost": { "anyOf": [ { "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", "type": "string" }, { "type": "null" } ], "title": "Estimated Cost" }, "evaluated_at": { "format": "date-time", "title": "Evaluated At", "type": "string" }, "evaluation_id": { "format": "uuid", "title": "Evaluation Id", "type": "string" }, "final_phase": { "title": "Final Phase", "type": "string" }, "input_tokens": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Input Tokens" }, "latency_ms": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Latency Ms" }, "model_attempts": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Model Attempts" }, "model_version": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Model Version" }, "operation_types": { "default": [], "items": { "type": "string" }, "title": "Operation Types", "type": "array" }, "output_tokens": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Output Tokens" }, "patch_request_id": { "anyOf": [ { "format": "uuid", "type": "string" }, { "type": "null" } ], "title": "Patch Request Id" }, "prompt_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Prompt Id" }, "prompt_version": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Prompt Version" }, "revision_created": { "title": "Revision Created", "type": "boolean" }, "route": { "anyOf": [ { "enum": [ "existing_artifact", "new_data" ], "type": "string" }, { "type": "null" } ], "title": "Route" } }, "required": [ "evaluation_id", "assistant_request_id", "contract_valid", "approval_decision", "final_phase", "revision_created", "duplicate_revision_prevented", "cost_is_estimate", "evaluated_at" ], "title": "ReportAssistantEvaluationResponse", "type": "object" }, "ReportAssistantExternalTransferConsentRequest": { "additionalProperties": false, "description": "서버 생성 공개문 식별자·hash에 대한 명시적 수락만 입력받는다.", "properties": { "accepted": { "const": true, "title": "Accepted", "type": "boolean" }, "disclosure_hash": { "pattern": "^[0-9a-f]{64}$", "title": "Disclosure Hash", "type": "string" }, "disclosure_id": { "format": "uuid", "title": "Disclosure Id", "type": "string" } }, "required": [ "disclosure_id", "disclosure_hash", "accepted" ], "title": "ReportAssistantExternalTransferConsentRequest", "type": "object" }, "ReportAssistantExternalTransferConsentResponse": { "additionalProperties": false, "description": "현재 owner·세션·route·scope에 결속된 append-only 동의 receipt를 반환한다.", "properties": { "assistant_request_id": { "format": "uuid", "title": "Assistant Request Id", "type": "string" }, "consent_id": { "format": "uuid", "title": "Consent Id", "type": "string" }, "consented_at": { "format": "date-time", "title": "Consented At", "type": "string" }, "data_scopes": { "items": { "enum": [ "user_instruction", "assistant_turn_history", "report_metadata_layout", "report_block_content", "selected_artifact_metadata", "selected_artifact_narrative", "selected_artifact_metrics", "selected_artifact_chart_spec", "selected_artifact_table_snapshot", "pending_patch", "approved_new_analysis_artifact" ], "type": "string" }, "maxItems": 11, "minItems": 1, "title": "Data Scopes", "type": "array" }, "policy_version": { "maxLength": 96, "minLength": 1, "title": "Policy Version", "type": "string" }, "provider_routes": { "items": { "$ref": "#/components/schemas/ReportAssistantProviderRoute" }, "maxItems": 3, "minItems": 1, "title": "Provider Routes", "type": "array" } }, "required": [ "consent_id", "assistant_request_id", "policy_version", "provider_routes", "data_scopes", "consented_at" ], "title": "ReportAssistantExternalTransferConsentResponse", "type": "object" }, "ReportAssistantExternalTransferDisclosureResponse": { "additionalProperties": false, "description": "외부 provider 전송 전에 서버가 확정한 route·데이터 범위 공개문이다.", "properties": { "assistant_request_id": { "format": "uuid", "title": "Assistant Request Id", "type": "string" }, "consent_required": { "title": "Consent Required", "type": "boolean" }, "content_warning": { "maxLength": 500, "minLength": 1, "title": "Content Warning", "type": "string" }, "data_scopes": { "items": { "enum": [ "user_instruction", "assistant_turn_history", "report_metadata_layout", "report_block_content", "selected_artifact_metadata", "selected_artifact_narrative", "selected_artifact_metrics", "selected_artifact_chart_spec", "selected_artifact_table_snapshot", "pending_patch", "approved_new_analysis_artifact" ], "type": "string" }, "maxItems": 11, "minItems": 1, "title": "Data Scopes", "type": "array" }, "disclosure_hash": { "pattern": "^[0-9a-f]{64}$", "title": "Disclosure Hash", "type": "string" }, "disclosure_id": { "format": "uuid", "title": "Disclosure Id", "type": "string" }, "excluded_data": { "items": { "type": "string" }, "maxItems": 10, "minItems": 1, "title": "Excluded Data", "type": "array" }, "expires_at": { "format": "date-time", "title": "Expires At", "type": "string" }, "policy_version": { "maxLength": 96, "minLength": 1, "title": "Policy Version", "type": "string" }, "provider_routes": { "items": { "$ref": "#/components/schemas/ReportAssistantProviderRoute" }, "maxItems": 3, "minItems": 1, "title": "Provider Routes", "type": "array" } }, "required": [ "disclosure_id", "assistant_request_id", "policy_version", "provider_routes", "data_scopes", "excluded_data", "content_warning", "disclosure_hash", "expires_at", "consent_required" ], "title": "ReportAssistantExternalTransferDisclosureResponse", "type": "object" }, "ReportAssistantExternalTransferError": { "additionalProperties": false, "description": "428에서 동의 dialog 복구에 필요한 서버 공개문만 구조화해 반환한다.", "properties": { "assistant_request_id": { "format": "uuid", "title": "Assistant Request Id", "type": "string" }, "code": { "const": "EXTERNAL_TRANSFER_CONSENT_REQUIRED", "title": "Code", "type": "string" }, "disclosure": { "$ref": "#/components/schemas/ReportAssistantExternalTransferDisclosureResponse" }, "message": { "title": "Message", "type": "string" }, "required_action": { "const": "REVIEW_EXTERNAL_TRANSFER", "title": "Required Action", "type": "string" }, "retryable": { "const": false, "default": false, "title": "Retryable", "type": "boolean" }, "trace_id": { "default": "", "title": "Trace Id", "type": "string" } }, "required": [ "code", "message", "assistant_request_id", "disclosure", "required_action" ], "title": "ReportAssistantExternalTransferError", "type": "object" }, "ReportAssistantExternalTransferErrorResponse": { "additionalProperties": false, "description": "공통 meta와 외부 전송 공개문을 결합한 전용 428 error envelope다.", "properties": { "data": { "$ref": "#/components/schemas/EmptyData" }, "error": { "$ref": "#/components/schemas/ReportAssistantExternalTransferError" }, "meta": { "$ref": "#/components/schemas/ResponseMeta" } }, "required": [ "meta", "error" ], "title": "ReportAssistantExternalTransferErrorResponse", "type": "object" }, "ReportAssistantFailureListResponse": { "additionalProperties": false, "description": "관리자에게 bounded 기간의 안전한 실패 평가만 반환한다.", "properties": { "items": { "items": { "$ref": "#/components/schemas/ReportAssistantEvaluationResponse" }, "title": "Items", "type": "array" }, "period_end": { "format": "date-time", "title": "Period End", "type": "string" }, "period_start": { "format": "date-time", "title": "Period Start", "type": "string" } }, "required": [ "period_start", "period_end", "items" ], "title": "ReportAssistantFailureListResponse", "type": "object" }, "ReportAssistantMessageRequest": { "additionalProperties": false, "description": "새 요청 또는 현재 patch를 교체할 500자 이하의 보고서 변경 지시를 제출한다.", "properties": { "expected_patch_request_id": { "anyOf": [ { "format": "uuid", "type": "string" }, { "type": "null" } ], "title": "Expected Patch Request Id" }, "instruction": { "maxLength": 500, "minLength": 1, "title": "Instruction", "type": "string" }, "operation_scope": { "default": "full_report", "enum": [ "full_report", "report_title" ], "title": "Operation Scope", "type": "string" }, "selected_block_id": { "anyOf": [ { "maxLength": 255, "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Selected Block Id" } }, "required": [ "instruction" ], "title": "ReportAssistantMessageRequest", "type": "object" }, "ReportAssistantOperationsSummaryResponse": { "additionalProperties": false, "description": "관리자용 기간·분모와 nullable 품질·비용 집계를 반환한다.", "properties": { "approval_rate": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Approval Rate" }, "average_model_attempts": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Average Model Attempts" }, "average_model_latency_ms": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Average Model Latency Ms" }, "contract_success_rate": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Contract Success Rate" }, "denominator": { "title": "Denominator", "type": "integer" }, "duplicate_revision_prevention_rate": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Duplicate Revision Prevention Rate" }, "estimated_cost_total": { "anyOf": [ { "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", "type": "string" }, { "type": "null" } ], "title": "Estimated Cost Total" }, "failure_rate_by_error_code": { "additionalProperties": { "type": "number" }, "title": "Failure Rate By Error Code", "type": "object" }, "p95_model_latency_ms": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "P95 Model Latency Ms" }, "patch_validation_success_rate": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Patch Validation Success Rate" }, "period_end": { "format": "date-time", "title": "Period End", "type": "string" }, "period_start": { "format": "date-time", "title": "Period Start", "type": "string" }, "rejection_rate": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Rejection Rate" }, "revision_success_rate": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Revision Success Rate" }, "total_input_tokens": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Total Input Tokens" }, "total_output_tokens": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Total Output Tokens" }, "total_requests": { "title": "Total Requests", "type": "integer" } }, "required": [ "period_start", "period_end", "denominator", "total_requests", "failure_rate_by_error_code" ], "title": "ReportAssistantOperationsSummaryResponse", "type": "object" }, "ReportAssistantPatchApprovalRequest": { "additionalProperties": false, "description": "patch 승인 시 선택할 0-based operation 인덱스를 정렬된 고유 목록으로 받는다.", "properties": { "approved": { "title": "Approved", "type": "boolean" }, "operation_indexes": { "anyOf": [ { "items": { "type": "integer" }, "maxItems": 12, "minItems": 1, "type": "array" }, { "type": "null" } ], "title": "Operation Indexes" }, "request_id": { "format": "uuid", "title": "Request Id", "type": "string" } }, "required": [ "request_id", "approved" ], "title": "ReportAssistantPatchApprovalRequest", "type": "object" }, "ReportAssistantPatchPreviewItem": { "additionalProperties": false, "description": "식별자·SQL 없이 승인 전 변경과 nullable 1-based renderer 페이지를 반환한다.", "properties": { "after": { "anyOf": [ { "maxLength": 4000, "type": "string" }, { "type": "null" } ], "title": "After" }, "before": { "anyOf": [ { "maxLength": 4000, "type": "string" }, { "type": "null" } ], "title": "Before" }, "depends_on_indexes": { "default": [], "items": { "type": "integer" }, "maxItems": 11, "title": "Depends On Indexes", "type": "array" }, "evidence_count": { "maximum": 16.0, "minimum": 0.0, "title": "Evidence Count", "type": "integer" }, "evidence_required": { "title": "Evidence Required", "type": "boolean" }, "impact_category": { "enum": [ "CONTENT", "LAYOUT", "DESTRUCTIVE" ], "title": "Impact Category", "type": "string" }, "index": { "maximum": 11.0, "minimum": 0.0, "title": "Index", "type": "integer" }, "operation": { "enum": [ "set_report_title", "set_report_orientation", "set_currency_display_unit", "compact_report_layout", "add_report_page", "update_block_title", "resize_block", "update_chart_settings", "update_table_settings", "set_block_size_mode", "add_text", "update_text", "add_artifact_view", "reposition_block", "remove_block", "duplicate_block", "restore_previous_revision" ], "title": "Operation", "type": "string" }, "page_index": { "anyOf": [ { "minimum": 1.0, "type": "integer" }, { "type": "null" } ], "title": "Page Index" }, "target": { "maxLength": 255, "minLength": 1, "title": "Target", "type": "string" } }, "required": [ "index", "operation", "target", "impact_category", "evidence_required", "evidence_count" ], "title": "ReportAssistantPatchPreviewItem", "type": "object" }, "ReportAssistantProposalResponse": { "additionalProperties": false, "description": "검증된 변경 종류·사용자 메시지와 저장된 서버 세션 상태를 함께 반환한다.", "properties": { "change_kind": { "enum": [ "clarification", "existing_artifact", "new_data" ], "title": "Change Kind", "type": "string" }, "message": { "maxLength": 1000, "minLength": 1, "title": "Message", "type": "string" }, "session": { "$ref": "#/components/schemas/ReportAssistantSessionResponse" }, "suggestions": { "default": [], "items": { "type": "string" }, "maxItems": 3, "title": "Suggestions", "type": "array" } }, "required": [ "change_kind", "message", "session" ], "title": "ReportAssistantProposalResponse", "type": "object" }, "ReportAssistantProviderRoute": { "additionalProperties": false, "description": "credential·원문 endpoint를 제외하고 사용자에게 공개할 실제 모델 route다.", "properties": { "data_boundary": { "enum": [ "external", "internal" ], "title": "Data Boundary", "type": "string" }, "destination_origin": { "pattern": "^https://[^/?#]+$", "title": "Destination Origin", "type": "string" }, "model": { "maxLength": 255, "minLength": 1, "title": "Model", "type": "string" }, "node": { "enum": [ "report_assistant", "report_assistant_turn", "report_assistant_review" ], "title": "Node", "type": "string" }, "provider": { "maxLength": 64, "minLength": 1, "title": "Provider", "type": "string" }, "route_id": { "maxLength": 64, "minLength": 1, "title": "Route Id", "type": "string" }, "route_label": { "maxLength": 96, "minLength": 1, "title": "Route Label", "type": "string" } }, "required": [ "node", "route_id", "route_label", "provider", "model", "data_boundary", "destination_origin" ], "title": "ReportAssistantProviderRoute", "type": "object" }, "ReportAssistantRequiredAction": { "description": "실패한 Assistant 세션에서 사용자가 수행할 수 있는 안전한 다음 조치다.", "enum": [ "NONE", "RETRY", "REFRESH", "REAUTHENTICATE", "REOPEN_LATEST_REPORT", "CONTACT_ADMIN", "REVIEW_EXTERNAL_TRANSFER" ], "title": "ReportAssistantRequiredAction", "type": "string" }, "ReportAssistantReviewFinding": { "additionalProperties": false, "description": "현재 보고서를 저장하지 않고 발견한 품질 문제와 사용자가 선택할 수정 지시다.", "properties": { "block_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Block Id" }, "category": { "enum": [ "duplicate_text", "verbose_summary", "title_mismatch", "inconsistent_metric_expression", "unsupported_claim" ], "title": "Category", "type": "string" }, "detail": { "maxLength": 1000, "minLength": 1, "title": "Detail", "type": "string" }, "evidence_refs": { "default": [], "items": { "type": "string" }, "maxItems": 16, "title": "Evidence Refs", "type": "array" }, "severity": { "enum": [ "info", "warning" ], "title": "Severity", "type": "string" }, "suggested_instruction": { "maxLength": 500, "minLength": 1, "title": "Suggested Instruction", "type": "string" }, "title": { "maxLength": 255, "minLength": 1, "title": "Title", "type": "string" } }, "required": [ "category", "severity", "title", "detail", "suggested_instruction" ], "title": "ReportAssistantReviewFinding", "type": "object" }, "ReportAssistantReviewRequest": { "additionalProperties": false, "description": "비저장 품질 검토가 참고할 현재 편집기 선택 블록을 선택적으로 지정한다.", "properties": { "selected_block_id": { "anyOf": [ { "maxLength": 255, "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Selected Block Id" } }, "title": "ReportAssistantReviewRequest", "type": "object" }, "ReportAssistantReviewResponse": { "additionalProperties": false, "description": "세션 상태나 Report revision을 바꾸지 않는 bounded 품질 검토 결과다.", "properties": { "assistant_request_id": { "format": "uuid", "title": "Assistant Request Id", "type": "string" }, "findings": { "items": { "$ref": "#/components/schemas/ReportAssistantReviewFinding" }, "maxItems": 10, "title": "Findings", "type": "array" }, "suggestions": { "default": [], "items": { "type": "string" }, "maxItems": 3, "title": "Suggestions", "type": "array" }, "summary": { "maxLength": 1000, "minLength": 1, "title": "Summary", "type": "string" }, "trace": { "$ref": "#/components/schemas/ReportAssistantTraceResponse" } }, "required": [ "assistant_request_id", "summary", "findings", "trace" ], "title": "ReportAssistantReviewResponse", "type": "object" }, "ReportAssistantSessionResponse": { "additionalProperties": false, "description": "서버가 소유하는 Assistant phase와 승인 대기 계획 및 revision 결과를 반환한다.", "properties": { "analysis_plan": { "anyOf": [ { "$ref": "#/components/schemas/ReportAssistantAnalysisPlan" }, { "type": "null" } ] }, "approved_operation_indexes": { "default": [], "items": { "type": "integer" }, "title": "Approved Operation Indexes", "type": "array" }, "artifact_id": { "format": "uuid", "title": "Artifact Id", "type": "string" }, "artifact_ids": { "description": "대표 artifact_id가 첫 번째인 중복 없는 결속 목록. 최초 선택 최대 5개와 새 데이터 결과 1개를 포함할 수 있습니다.", "items": { "format": "uuid", "type": "string" }, "maxItems": 6, "minItems": 1, "title": "Artifact Ids", "type": "array", "uniqueItems": true }, "assistant_request_id": { "format": "uuid", "title": "Assistant Request Id", "type": "string" }, "base_revision": { "title": "Base Revision", "type": "integer" }, "definition_id": { "format": "uuid", "title": "Definition Id", "type": "string" }, "definition_version": { "title": "Definition Version", "type": "integer" }, "error_code": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Error Code" }, "exact_page_count": { "anyOf": [ { "maximum": 20.0, "minimum": 1.0, "type": "integer" }, { "type": "null" } ], "title": "Exact Page Count" }, "operation_scope": { "enum": [ "full_report", "report_title" ], "title": "Operation Scope", "type": "string" }, "patch_evidence_refs": { "default": [], "items": { "type": "string" }, "title": "Patch Evidence Refs", "type": "array" }, "patch_operations": { "default": [], "items": { "enum": [ "set_report_title", "set_report_orientation", "set_currency_display_unit", "compact_report_layout", "add_report_page", "update_block_title", "resize_block", "update_chart_settings", "update_table_settings", "set_block_size_mode", "add_text", "update_text", "add_artifact_view", "reposition_block", "remove_block", "duplicate_block", "restore_previous_revision" ], "type": "string" }, "title": "Patch Operations", "type": "array" }, "patch_preview": { "default": [], "items": { "$ref": "#/components/schemas/ReportAssistantPatchPreviewItem" }, "title": "Patch Preview", "type": "array" }, "patch_request_id": { "anyOf": [ { "format": "uuid", "type": "string" }, { "type": "null" } ], "title": "Patch Request Id" }, "patch_summary": { "anyOf": [ { "maxLength": 1000, "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Patch Summary" }, "phase": { "enum": [ "ready", "waiting_patch_approval", "waiting_approval", "running_data_agent", "waiting_artifact", "saving_revision", "completed", "failed", "cancelled" ], "title": "Phase", "type": "string" }, "required_action": { "$ref": "#/components/schemas/ReportAssistantRequiredAction", "default": "NONE" }, "result_artifact_id": { "anyOf": [ { "format": "uuid", "type": "string" }, { "type": "null" } ], "title": "Result Artifact Id" }, "result_revision": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Result Revision" }, "retry_of_assistant_request_id": { "anyOf": [ { "format": "uuid", "type": "string" }, { "type": "null" } ], "title": "Retry Of Assistant Request Id" }, "retryable": { "default": false, "title": "Retryable", "type": "boolean" }, "turn_history": { "default": [], "items": { "$ref": "#/components/schemas/ReportAssistantTurnMessage" }, "maxItems": 12, "title": "Turn History", "type": "array" }, "verified_page_count": { "anyOf": [ { "minimum": 1.0, "type": "integer" }, { "type": "null" } ], "title": "Verified Page Count" } }, "required": [ "assistant_request_id", "phase", "operation_scope", "definition_id", "definition_version", "base_revision", "artifact_id", "artifact_ids" ], "title": "ReportAssistantSessionResponse", "type": "object" }, "ReportAssistantTraceResponse": { "additionalProperties": false, "description": "AI 초안에 사용한 모델·프롬프트 버전과 해시, 시도 횟수·지연 시간을 감사 증거로 반환한다.", "properties": { "attempts": { "title": "Attempts", "type": "integer" }, "duration_ms": { "title": "Duration Ms", "type": "number" }, "model_version": { "title": "Model Version", "type": "string" }, "prompt_hash": { "title": "Prompt Hash", "type": "string" }, "prompt_id": { "title": "Prompt Id", "type": "string" }, "prompt_version": { "title": "Prompt Version", "type": "string" } }, "required": [ "model_version", "prompt_id", "prompt_version", "prompt_hash", "attempts", "duration_ms" ], "title": "ReportAssistantTraceResponse", "type": "object" }, "ReportAssistantTurnMessage": { "additionalProperties": false, "description": "새로고침 시 복구할 bounded 사용자·Assistant 대화 한 건을 반환한다.", "properties": { "content": { "maxLength": 1000, "minLength": 1, "title": "Content", "type": "string" }, "role": { "enum": [ "user", "assistant" ], "title": "Role", "type": "string" } }, "required": [ "role", "content" ], "title": "ReportAssistantTurnMessage", "type": "object" }, "ReportBlockRequest": { "additionalProperties": false, "description": "12열 격자에 배치할 표·차트·산출물·텍스트 블록의 위치, 크기와 데이터 참조를 입력받는다.", "properties": { "artifact_id": { "anyOf": [ { "maxLength": 255, "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Artifact Id" }, "block_id": { "maxLength": 128, "minLength": 1, "title": "Block Id", "type": "string" }, "columns": { "anyOf": [ { "maximum": 12.0, "minimum": 1.0, "type": "integer" }, { "type": "null" } ], "title": "Columns" }, "content": { "default": "", "maxLength": 4000, "title": "Content", "type": "string" }, "evidence_refs": { "default": [], "items": { "type": "string" }, "maxItems": 16, "title": "Evidence Refs", "type": "array" }, "h": { "default": 1, "maximum": 18.0, "minimum": 1.0, "title": "H", "type": "integer" }, "query_id": { "anyOf": [ { "maxLength": 255, "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Query Id" }, "title": { "maxLength": 255, "minLength": 1, "title": "Title", "type": "string" }, "type": { "default": "table", "enum": [ "table", "chart", "artifact", "text", "page_break" ], "title": "Type", "type": "string" }, "view_spec_id": { "anyOf": [ { "maxLength": 255, "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "View Spec Id" }, "w": { "anyOf": [ { "maximum": 12.0, "minimum": 1.0, "type": "integer" }, { "type": "null" } ], "title": "W" }, "x": { "default": 0, "maximum": 11.0, "minimum": 0.0, "title": "X", "type": "integer" }, "y": { "default": 0, "exclusiveMaximum": 1800.0, "minimum": 0.0, "title": "Y", "type": "integer" } }, "required": [ "block_id", "title" ], "title": "ReportBlockRequest", "type": "object" }, "ReportBlockResponse": { "additionalProperties": false, "description": "정규화된 블록 유형·격자 좌표·크기·내용과 분석 산출물 참조를 응답으로 반환한다.", "properties": { "artifact_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Artifact Id" }, "block_id": { "title": "Block Id", "type": "string" }, "columns": { "title": "Columns", "type": "integer" }, "content": { "title": "Content", "type": "string" }, "evidence_refs": { "default": [], "items": { "type": "string" }, "title": "Evidence Refs", "type": "array" }, "h": { "title": "H", "type": "integer" }, "title": { "title": "Title", "type": "string" }, "type": { "enum": [ "table", "chart", "artifact", "text", "page_break" ], "title": "Type", "type": "string" }, "view_spec_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "View Spec Id" }, "w": { "title": "W", "type": "integer" }, "x": { "title": "X", "type": "integer" }, "y": { "title": "Y", "type": "integer" } }, "required": [ "block_id", "title", "artifact_id", "columns", "view_spec_id", "type", "x", "y", "w", "h", "content" ], "title": "ReportBlockResponse", "type": "object" }, "ReportBlockRunResponse": { "additionalProperties": false, "description": "개별 블록 실행의 성공·부분·실패 상태와 산출물 증거 또는 구조화 실패 사유를 반환한다.", "properties": { "artifact_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Artifact Id" }, "block_id": { "title": "Block Id", "type": "string" }, "failure_code": { "anyOf": [ { "$ref": "#/components/schemas/BlockFailureCode" }, { "type": "null" } ] }, "failure_message": { "anyOf": [ { "maxLength": 300, "type": "string" }, { "type": "null" } ], "title": "Failure Message" }, "query_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Query Id" }, "request_id": { "anyOf": [ { "format": "uuid", "type": "string" }, { "type": "null" } ], "title": "Request Id" }, "snapshot_checksum": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Snapshot Checksum" }, "status": { "enum": [ "success", "partial", "failed", "cancelled" ], "title": "Status", "type": "string" } }, "required": [ "block_id", "artifact_id", "query_id", "snapshot_checksum", "status" ], "title": "ReportBlockRunResponse", "type": "object" }, "ReportDefinitionLifecycleResponse": { "additionalProperties": false, "description": "비파괴 보관·복원 후 정의 ID와 현재 lifecycle metadata를 반환한다.", "properties": { "archived": { "title": "Archived", "type": "boolean" }, "archived_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "Archived At" }, "archived_by": { "anyOf": [ { "format": "uuid", "type": "string" }, { "type": "null" } ], "title": "Archived By" }, "definition_id": { "format": "uuid", "title": "Definition Id", "type": "string" } }, "required": [ "definition_id", "archived" ], "title": "ReportDefinitionLifecycleResponse", "type": "object" }, "ReportDefinitionListResponse": { "additionalProperties": false, "description": "계약 버전과 함께 접근 가능한 보고서 정의 버전 목록을 반환한다.", "properties": { "contract_version": { "title": "Contract Version", "type": "string" }, "items": { "items": { "$ref": "#/components/schemas/ReportDefinitionResponse" }, "title": "Items", "type": "array" } }, "required": [ "contract_version", "items" ], "title": "ReportDefinitionListResponse", "type": "object" }, "ReportDefinitionPermanentDeleteResponse": { "additionalProperties": false, "description": "휴지통 보고서 영구삭제 후 대상과 복원 불가 상태를 확인한다.", "properties": { "contract_version": { "title": "Contract Version", "type": "string" }, "definition_id": { "format": "uuid", "title": "Definition Id", "type": "string" }, "permanently_deleted": { "const": true, "title": "Permanently Deleted", "type": "boolean" } }, "required": [ "contract_version", "definition_id", "permanently_deleted" ], "title": "ReportDefinitionPermanentDeleteResponse", "type": "object" }, "ReportDefinitionResponse": { "additionalProperties": false, "description": "보고서 정의 버전의 초안·승인 상태, 블록, 승인 시각과 문서 표시 설정을 반환한다.", "properties": { "approved_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "Approved At" }, "archived_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "Archived At" }, "archived_by": { "anyOf": [ { "format": "uuid", "type": "string" }, { "type": "null" } ], "title": "Archived By" }, "blocks": { "items": { "$ref": "#/components/schemas/ReportBlockResponse" }, "maxItems": 100, "title": "Blocks", "type": "array" }, "contract_version": { "title": "Contract Version", "type": "string" }, "currency_display_unit": { "enum": [ "auto", "one", "thousand", "million", "hundredMillion", "billion" ], "title": "Currency Display Unit", "type": "string" }, "definition_id": { "title": "Definition Id", "type": "string" }, "draft_revision": { "minimum": 1.0, "title": "Draft Revision", "type": "integer" }, "orientation": { "enum": [ "portrait", "landscape" ], "title": "Orientation", "type": "string" }, "status": { "enum": [ "draft", "approved" ], "title": "Status", "type": "string" }, "title": { "title": "Title", "type": "string" }, "version": { "title": "Version", "type": "integer" } }, "required": [ "contract_version", "definition_id", "version", "status", "title", "blocks", "approved_at", "orientation", "currency_display_unit", "draft_revision" ], "title": "ReportDefinitionResponse", "type": "object" }, "ReportDocumentResponse": { "additionalProperties": false, "description": "승인된 보고서 문서의 렌더러, 원본·HTML·PDF checksum과 사용 산출물 버전을 반환한다.", "properties": { "artifact_versions": { "items": { "$ref": "#/components/schemas/ReportArtifactVersionResponse" }, "title": "Artifact Versions", "type": "array" }, "confirmed_at": { "format": "date-time", "title": "Confirmed At", "type": "string" }, "currency_display_unit": { "enum": [ "auto", "one", "thousand", "million", "hundredMillion", "billion" ], "title": "Currency Display Unit", "type": "string" }, "definition_id": { "format": "uuid", "title": "Definition Id", "type": "string" }, "definition_version": { "title": "Definition Version", "type": "integer" }, "html_checksum": { "pattern": "^[0-9a-f]{64}$", "title": "Html Checksum", "type": "string" }, "orientation": { "enum": [ "portrait", "landscape" ], "title": "Orientation", "type": "string" }, "pdf_checksum": { "pattern": "^[0-9a-f]{64}$", "title": "Pdf Checksum", "type": "string" }, "renderer_version": { "title": "Renderer Version", "type": "string" }, "source_checksum": { "pattern": "^[0-9a-f]{64}$", "title": "Source Checksum", "type": "string" } }, "required": [ "definition_id", "definition_version", "orientation", "currency_display_unit", "renderer_version", "source_checksum", "html_checksum", "pdf_checksum", "artifact_versions", "confirmed_at" ], "title": "ReportDocumentResponse", "type": "object" }, "ReportRunListResponse": { "additionalProperties": false, "description": "동일 보고서 계약 버전으로 직렬화된 실행 이력 목록을 반환한다.", "properties": { "contract_version": { "title": "Contract Version", "type": "string" }, "items": { "items": { "$ref": "#/components/schemas/ReportRunResponse" }, "title": "Items", "type": "array" } }, "required": [ "contract_version", "items" ], "title": "ReportRunListResponse", "type": "object" }, "ReportRunResponse": { "additionalProperties": false, "description": "보고서 실행의 정의 버전, 기준 시각, 정책·문맥·watermark와 블록별 결과를 반환한다.", "properties": { "as_of": { "format": "date-time", "title": "As Of", "type": "string" }, "blocks": { "items": { "$ref": "#/components/schemas/ReportBlockRunResponse" }, "title": "Blocks", "type": "array" }, "context_hash": { "title": "Context Hash", "type": "string" }, "contract_version": { "title": "Contract Version", "type": "string" }, "definition_id": { "title": "Definition Id", "type": "string" }, "definition_version": { "title": "Definition Version", "type": "integer" }, "policy_version": { "title": "Policy Version", "type": "string" }, "run_id": { "title": "Run Id", "type": "string" }, "status": { "enum": [ "queued", "running", "success", "partial", "failed", "cancelled" ], "title": "Status", "type": "string" }, "watermark": { "additionalProperties": { "type": "string" }, "title": "Watermark", "type": "object" } }, "required": [ "contract_version", "run_id", "definition_id", "definition_version", "as_of", "policy_version", "context_hash", "watermark", "status", "blocks" ], "title": "ReportRunResponse", "type": "object" }, "ReportScheduleListResponse": { "additionalProperties": false, "description": "조회 권한 범위 안의 보고서 스케줄들을 배열로 반환한다.", "properties": { "items": { "items": { "$ref": "#/components/schemas/ReportScheduleResponse" }, "title": "Items", "type": "array" } }, "required": [ "items" ], "title": "ReportScheduleListResponse", "type": "object" }, "ReportScheduleResponse": { "additionalProperties": false, "description": "스케줄 식별자, 대상 정의 버전, 주기, 다음 실행, 활성 여부와 마지막 실행을 반환한다.", "properties": { "cadence": { "enum": [ "daily", "weekly", "monthly" ], "title": "Cadence", "type": "string" }, "definition_id": { "format": "uuid", "title": "Definition Id", "type": "string" }, "enabled": { "title": "Enabled", "type": "boolean" }, "last_run_id": { "anyOf": [ { "format": "uuid", "type": "string" }, { "type": "null" } ], "title": "Last Run Id" }, "next_run_at": { "format": "date-time", "title": "Next Run At", "type": "string" }, "schedule_id": { "format": "uuid", "title": "Schedule Id", "type": "string" }, "timezone": { "const": "Asia/Seoul", "title": "Timezone", "type": "string" }, "version": { "title": "Version", "type": "integer" } }, "required": [ "schedule_id", "definition_id", "version", "cadence", "next_run_at", "timezone", "enabled" ], "title": "ReportScheduleResponse", "type": "object" }, "RequiredAction": { "description": "오류를 해소하기 위해 클라이언트가 재시도·인증·권한 요청 등 무엇을 해야 하는지 명시한다.", "enum": [ "NONE", "RETRY", "AUTHENTICATE", "REQUEST_ACCESS", "PROVIDE_CONTEXT", "MODIFY_REQUEST", "CONTACT_SUPPORT", "CONTACT_ADMIN" ], "title": "RequiredAction", "type": "string" }, "ResetPasswordRequest": { "additionalProperties": false, "description": "관리자가 지정 계정에 발급할 새 비밀번호를 길이 제한과 함께 수신한다.", "properties": { "password": { "format": "password", "maxLength": 128, "minLength": 12, "title": "Password", "type": "string", "writeOnly": true } }, "required": [ "password" ], "title": "ResetPasswordRequest", "type": "object" }, "ResolvedSlots": { "additionalProperties": false, "description": "멀티턴 대화에서 이전 턴의 슬롯을 구조화된 형태로 상속할 때 사용한다.\n\n지표가 확정된 슬롯은 MetricResolver의 pre-resolved fast-path로 전달해 Node 1\n재해석을 생략하고, 지표가 비어 있는 슬롯은 직전 기간·결과 형태만 Node 1의 typed\n대화 컨텍스트로 제공한다. 두 경로 모두 active governance 대조 검증을 유지한다.", "properties": { "analysis_operation": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Analysis Operation" }, "analysis_time_bucket": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Analysis Time Bucket" }, "comparison_period_end_exclusive": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Comparison Period End Exclusive" }, "comparison_period_start": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Comparison Period Start" }, "dimension_ids": { "default": [], "items": { "type": "string" }, "title": "Dimension Ids", "type": "array" }, "metric_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Metric Id" }, "metric_ids": { "default": [], "items": { "type": "string" }, "title": "Metric Ids", "type": "array" }, "period_end_exclusive": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Period End Exclusive" }, "period_start": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Period Start" }, "result_limit": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Result Limit" }, "user_filters": { "default": [], "items": { "additionalProperties": { "type": "string" }, "type": "object" }, "title": "User Filters", "type": "array" } }, "title": "ResolvedSlots", "type": "object" }, "ResponseMeta": { "additionalProperties": false, "description": "모든 API 응답에 요청·추적 ID, 분석 기준일, 계약 버전과 UTC 생성 시각을 부착한다.", "properties": { "as_of": { "format": "date", "title": "As Of", "type": "string" }, "contract_version": { "title": "Contract Version", "type": "string" }, "request_id": { "format": "uuid", "title": "Request Id", "type": "string" }, "timestamp": { "format": "date-time", "title": "Timestamp", "type": "string" }, "trace_id": { "title": "Trace Id", "type": "string" } }, "required": [ "request_id", "trace_id", "as_of", "contract_version" ], "title": "ResponseMeta", "type": "object" }, "RoomDemandRequest": { "additionalProperties": false, "description": "지원 대상·기준일·일 단위 horizon을 runtime capability 검증에 전달한다.", "properties": { "as_of": { "format": "date", "title": "As Of", "type": "string" }, "horizon_days": { "default": 7, "maximum": 366.0, "minimum": 1.0, "title": "Horizon Days", "type": "integer" }, "property_id": { "maxLength": 64, "minLength": 1, "pattern": "^[A-Za-z0-9_-]+$", "title": "Property Id", "type": "string" } }, "required": [ "property_id", "as_of" ], "title": "RoomDemandRequest", "type": "object" }, "RouteType": { "description": "질문을 동적 일반 분석으로 처리할지 승인된 템플릿 정의로 처리할지 표시한다.", "enum": [ "GENERAL", "TEMPLATE" ], "title": "RouteType", "type": "string" }, "RunDueReportScheduleResponse": { "additionalProperties": false, "description": "스케줄 평가 결과와 실제 실행 여부, 실행된 경우 생성된 보고서 실행을 함께 반환한다.", "properties": { "executed": { "title": "Executed", "type": "boolean" }, "run": { "anyOf": [ { "$ref": "#/components/schemas/ReportRunResponse" }, { "type": "null" } ] }, "schedule": { "$ref": "#/components/schemas/ReportScheduleResponse" } }, "required": [ "schedule", "executed" ], "title": "RunDueReportScheduleResponse", "type": "object" }, "RuntimeFeature": { "description": "인증 세션이 UI에 공개할 수 있는 서버 활성 선택 기능 집합이다.", "enum": [ "internal_guideline", "ml_prediction" ], "title": "RuntimeFeature", "type": "string" }, "SamplingEvidence": { "additionalProperties": false, "description": "결과 샘플링 여부와 반환 행 수, 확인 가능한 경우 전체 행 수를 증거로 남긴다.", "properties": { "applied": { "default": false, "title": "Applied", "type": "boolean" }, "returned_rows": { "default": 0, "minimum": 0.0, "title": "Returned Rows", "type": "integer" }, "total_rows": { "anyOf": [ { "minimum": 0.0, "type": "integer" }, { "type": "null" } ], "title": "Total Rows" } }, "title": "SamplingEvidence", "type": "object" }, "SessionData": { "additionalProperties": false, "description": "현재 인증 세션 상태와 서버가 확인한 역할·Capability를 반환한다.", "properties": { "capabilities": { "default": [], "items": { "$ref": "#/components/schemas/Capability" }, "title": "Capabilities", "type": "array" }, "enabled_features": { "default": [], "items": { "$ref": "#/components/schemas/RuntimeFeature" }, "title": "Enabled Features", "type": "array" }, "role": { "anyOf": [ { "enum": [ "analyst", "admin" ], "type": "string" }, { "type": "null" } ], "title": "Role" }, "status": { "default": "authenticated", "title": "Status", "type": "string" } }, "title": "SessionData", "type": "object" }, "SessionResponse": { "additionalProperties": false, "description": "현재 세션 인증 상태와 서버 확인 역할을 공통 응답 봉투로 반환한다.", "properties": { "data": { "$ref": "#/components/schemas/SessionData" }, "error": { "anyOf": [ { "$ref": "#/components/schemas/ErrorBody" }, { "type": "null" } ] }, "meta": { "$ref": "#/components/schemas/ResponseMeta" } }, "required": [ "data", "meta" ], "title": "SessionResponse", "type": "object" }, "SnapshotEvidence": { "additionalProperties": false, "description": "기준일 전에 source의 최신 스냅샷을 선택했다는 실행 규칙을 기록한다.", "properties": { "cutoff": { "format": "date", "title": "Cutoff", "type": "string" }, "selection": { "const": "max_source_value_lt_as_of", "title": "Selection", "type": "string" } }, "required": [ "cutoff", "selection" ], "title": "SnapshotEvidence", "type": "object" }, "SourceReference": { "additionalProperties": false, "description": "분석에 사용한 데이터 자산을 URN·FQN과 스키마·시드 버전으로 재현 가능하게 식별한다.", "properties": { "fqn": { "title": "Fqn", "type": "string" }, "name": { "title": "Name", "type": "string" }, "schema_version": { "title": "Schema Version", "type": "string" }, "seed_version": { "title": "Seed Version", "type": "string" }, "synthetic": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Synthetic" }, "urn": { "title": "Urn", "type": "string" } }, "required": [ "urn", "fqn", "name", "schema_version", "seed_version" ], "title": "SourceReference", "type": "object" }, "StageOutcome": { "description": "각 파이프라인 단계가 통과했는지 정책상 차단됐는지 실행 실패했는지 구분한다.", "enum": [ "PASSED", "BLOCKED", "FAILED" ], "title": "StageOutcome", "type": "string" }, "TableResult": { "additionalProperties": false, "description": "열 순서와 스칼라 행 집합을 분리해 분석 결과 표의 직렬화 형태를 고정한다.", "properties": { "columns": { "items": { "type": "string" }, "title": "Columns", "type": "array" }, "rows": { "items": { "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "integer" }, { "type": "number" }, { "type": "boolean" }, { "type": "null" } ] }, "type": "object" }, "title": "Rows", "type": "array" } }, "required": [ "columns", "rows" ], "title": "TableResult", "type": "object" }, "TraceStep": { "additionalProperties": false, "description": "파이프라인 단계별 판정과 공개 가능한 상세 사유를 시간 순서 추적으로 표현한다.", "properties": { "detail": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Detail" }, "outcome": { "$ref": "#/components/schemas/StageOutcome" }, "stage": { "$ref": "#/components/schemas/PipelineStage" } }, "required": [ "stage", "outcome" ], "title": "TraceStep", "type": "object" }, "UpdateAccountRequest": { "additionalProperties": false, "description": "username·Role·활성 상태 중 명시적으로 전달된 필드만 변경한다.", "properties": { "active": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Active" }, "role": { "anyOf": [ { "enum": [ "analyst", "admin" ], "type": "string" }, { "type": "null" } ], "title": "Role" }, "username": { "anyOf": [ { "maxLength": 64, "minLength": 3, "pattern": "^[a-z0-9._-]+$", "type": "string" }, { "type": "null" } ], "title": "Username" } }, "title": "UpdateAccountRequest", "type": "object" }, "UpdateReportScheduleRequest": { "additionalProperties": false, "description": "기존 스케줄의 활성화 여부만 변경하도록 제한된 입력을 받는다.", "properties": { "enabled": { "title": "Enabled", "type": "boolean" } }, "required": [ "enabled" ], "title": "UpdateReportScheduleRequest", "type": "object" }, "ValidationError": { "properties": { "ctx": { "title": "Context", "type": "object" }, "input": { "title": "Input" }, "loc": { "items": { "anyOf": [ { "type": "string" }, { "type": "integer" } ] }, "title": "Location", "type": "array" }, "msg": { "title": "Message", "type": "string" }, "type": { "title": "Error Type", "type": "string" } }, "required": [ "loc", "msg", "type" ], "title": "ValidationError", "type": "object" } }, "securitySchemes": { "BearerAuth": { "description": "서버가 AUTH_PRINCIPALS_FILE의 SHA-256 digest로 검증하는 Bearer token", "scheme": "bearer", "type": "http" } } }, "info": { "title": "Answervice Control Plane", "version": "OPENAPI-v1.1.0-DRAFT" }, "openapi": "3.1.0", "paths": { "/admin/accounts": { "get": { "description": "삭제되지 않은 서비스 계정을 login ID로 검색해 페이지 단위로 반환한다.", "operationId": "listAdminAccounts", "parameters": [ { "in": "query", "name": "page", "required": false, "schema": { "default": 1, "minimum": 1, "title": "Page", "type": "integer" } }, { "in": "query", "name": "page_size", "required": false, "schema": { "default": 50, "maximum": 100, "minimum": 1, "title": "Page Size", "type": "integer" } }, { "in": "query", "name": "search", "required": false, "schema": { "default": "", "maxLength": 128, "title": "Search", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AccountListResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "List Accounts", "tags": [ "admin" ] }, "post": { "description": "현재 허용 Role의 계정을 생성하고 verifier 원문 없이 단일 상태만 반환한다.", "operationId": "createAdminAccount", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateAccountRequest" } } }, "required": true }, "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AccountResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "Create Account", "tags": [ "admin" ] } }, "/admin/accounts/{subject}": { "delete": { "description": "마지막 활성 관리자 보호 후 계정을 soft-delete하고 모든 session을 폐기한다.", "operationId": "deleteAdminAccount", "parameters": [ { "in": "path", "name": "subject", "required": true, "schema": { "format": "uuid", "title": "Subject", "type": "string" } } ], "responses": { "204": { "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "Delete Account", "tags": [ "admin" ] }, "patch": { "description": "username·Role·활성 상태를 변경하고 권한 변경 session을 즉시 폐기한다.", "operationId": "updateAdminAccount", "parameters": [ { "in": "path", "name": "subject", "required": true, "schema": { "format": "uuid", "title": "Subject", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateAccountRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AccountResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "Update Account", "tags": [ "admin" ] } }, "/admin/accounts/{subject}/password": { "post": { "description": "새 PBKDF2 verifier로 비밀번호를 교체하고 대상의 모든 기존 session을 폐기한다.", "operationId": "resetAdminAccountPassword", "parameters": [ { "in": "path", "name": "subject", "required": true, "schema": { "format": "uuid", "title": "Subject", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ResetPasswordRequest" } } }, "required": true }, "responses": { "204": { "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "Reset Account Password", "tags": [ "admin" ] } }, "/admin/audit-events": { "get": { "description": "append-only 감사 로그를 action·대상·actor·결과로 검색해 최신순 반환한다.", "operationId": "listAdminAuditEvents", "parameters": [ { "in": "query", "name": "page", "required": false, "schema": { "default": 1, "minimum": 1, "title": "Page", "type": "integer" } }, { "in": "query", "name": "page_size", "required": false, "schema": { "default": 50, "maximum": 100, "minimum": 1, "title": "Page Size", "type": "integer" } }, { "in": "query", "name": "search", "required": false, "schema": { "default": "", "maxLength": 128, "title": "Search", "type": "string" } }, { "in": "query", "name": "result", "required": false, "schema": { "default": "", "pattern": "^(|SUCCESS|SUCCEEDED|FAILED|DENIED|UNKNOWN)$", "title": "Result", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AuditEventListResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "List Audit Events", "tags": [ "admin" ] } }, "/admin/audit-trails": { "get": { "description": "append-only 이벤트를 서버 correlation 기준으로 묶어 최신 trail부터 반환한다.", "operationId": "listAdminAuditTrails", "parameters": [ { "in": "query", "name": "cursor", "required": false, "schema": { "default": "", "maxLength": 1024, "title": "Cursor", "type": "string" } }, { "in": "query", "name": "limit", "required": false, "schema": { "default": 30, "maximum": 100, "minimum": 1, "title": "Limit", "type": "integer" } }, { "in": "query", "name": "query", "required": false, "schema": { "default": "", "maxLength": 128, "title": "Query", "type": "string" } }, { "in": "query", "name": "outcome", "required": false, "schema": { "default": "", "pattern": "^(|SUCCEEDED|FAILED|DENIED|CANCELLED|IN_PROGRESS|CLARIFICATION_REQUIRED|UNKNOWN)$", "title": "Outcome", "type": "string" } }, { "in": "query", "name": "action", "required": false, "schema": { "default": "", "maxLength": 96, "title": "Action", "type": "string" } }, { "in": "query", "name": "from", "required": false, "schema": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "title": "From" } }, { "in": "query", "name": "to", "required": false, "schema": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "title": "To" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AuditTrailPageResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "List Audit Trails", "tags": [ "admin" ] } }, "/admin/audit-trails/{trail_id}": { "get": { "description": "선택한 서버 grouping trail의 redacted 이벤트와 근거 식별자를 순서대로 반환한다.", "operationId": "getAdminAuditTrail", "parameters": [ { "in": "path", "name": "trail_id", "required": true, "schema": { "maxLength": 256, "minLength": 3, "title": "Trail Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AuditTrailDetailResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "Get Audit Trail", "tags": [ "admin" ] } }, "/admin/connections": { "get": { "description": "고정 dependency 중 활성 대상을 probe하고 URL 없는 결과를 감사한 뒤 반환한다.", "operationId": "listAdminConnections", "parameters": [ { "in": "query", "name": "paused", "required": false, "schema": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "title": "Paused" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ConnectionListResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "List Connections", "tags": [ "admin" ] } }, "/analysis": { "post": { "description": "호텔 분석가의 질문을 동시 실행 한도 안에서 라우팅·분석·영속화한다.\n\n진행 상태와 취소 신호를 pipeline에 전달하고, artifact 저장 실패는 성공 응답으로\n덮지 않으며 재시도 가능한 typed 503으로 반환한다.", "operationId": "submitAnalysis", "parameters": [ { "in": "header", "name": "X-Trace-Id", "required": true, "schema": { "title": "X-Trace-Id", "type": "string" } }, { "in": "header", "name": "X-Timezone", "required": true, "schema": { "title": "X-Timezone", "type": "string" } }, { "in": "header", "name": "X-Contract-Version", "required": true, "schema": { "title": "X-Contract-Version", "type": "string" } } ], "requestBody": { "content": { "application/json": { "examples": { "general": { "summary": "일반 분석 질문", "value": { "question": "승인된 기간의 선택 지표를 분석해 주세요" } }, "template": { "summary": "승인 Template 요청", "value": { "parameters": { "period_end_exclusive": "2041-04-01", "period_start": "2041-03-01" }, "question": "승인된 Template을 실행해 주세요", "template_id": "approved-analysis-template" } } }, "schema": { "$ref": "#/components/schemas/AnalysisRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "examples": { "cached": { "summary": "cached", "value": { "data": { "artifact": { "artifact_id": "00000000-0000-0000-0000-000000000258", "context_hash": "fixture-context-cached", "query_id": "fixture-query-cached" }, "disambiguation_options": [], "gates": { "g1_required": true, "g2_required": true }, "repair_count": 0, "result": { "chart": { "chart_type": "line", "x_field": "bucket_start", "y_fields": [ "measure_value" ] }, "evidence": { "artifact_id": "00000000-0000-0000-0000-000000000258", "as_of": "2041-04-02", "cached": true, "context_release": "context-v1", "execution": { "critical_warning_count": 0, "processed_rows": 0, "scan_bytes": 0, "warning_count": 0 }, "filters": { "scope_code": "example" }, "masking": { "applied": true, "fields": [ "subject_identifier" ] }, "metric_values": [], "metrics": [], "models": [], "period": { "end_exclusive": "2041-04-01", "start": "2041-03-01" }, "policy_version": "policy-v1", "query_id": "fixture-query-cached", "sampling": { "applied": false, "returned_rows": 0, "total_rows": 0 }, "sources": [ { "fqn": "catalog_alpha.schema_beta.fact_observations", "name": "Governed observations", "schema_version": "1.0.0", "seed_version": "example-release-v1", "synthetic": true, "urn": "urn:example:dataset:catalog-alpha:fact-observations" } ] }, "metrics": [], "summary": "문서 예시 계약에 맞는 분석 결과입니다.", "table": { "columns": [ "bucket_start", "measure_value" ], "rows": [] } }, "route": "GENERAL", "status": "SUCCEEDED", "trace": [ { "outcome": "PASSED", "stage": "ROUTER" }, { "outcome": "PASSED", "stage": "CONTROLLER" }, { "outcome": "PASSED", "stage": "CONTEXT" }, { "outcome": "PASSED", "stage": "G1" }, { "outcome": "PASSED", "stage": "MODEL" }, { "outcome": "PASSED", "stage": "G2" }, { "outcome": "PASSED", "stage": "QUERY" }, { "outcome": "PASSED", "stage": "G3" }, { "outcome": "PASSED", "stage": "ARTIFACT" } ], "transitions": [ "RECEIVED", "ROUTED", "SUCCEEDED" ] }, "meta": { "as_of": "2041-04-02", "contract_version": "OPENAPI-v1.0.0", "request_id": "00000000-0000-0000-0000-000000000100", "timestamp": "2041-04-02T00:00:00Z", "trace_id": "fixture-cached" } } }, "cancelled": { "summary": "cancelled", "value": { "data": { "disambiguation_options": [], "gates": { "g1_required": true, "g2_required": true }, "repair_count": 0, "route": "GENERAL", "status": "CANCELLED", "trace": [ { "outcome": "PASSED", "stage": "ROUTER" }, { "outcome": "PASSED", "stage": "CONTROLLER" }, { "outcome": "PASSED", "stage": "CONTEXT" }, { "outcome": "PASSED", "stage": "G1" }, { "outcome": "PASSED", "stage": "MODEL" }, { "outcome": "PASSED", "stage": "G2" }, { "outcome": "PASSED", "stage": "QUERY" }, { "outcome": "PASSED", "stage": "G3" }, { "outcome": "PASSED", "stage": "ARTIFACT" } ], "transitions": [ "RECEIVED", "ROUTED", "CANCELLED" ] }, "error": { "code": "REQUEST_CANCELLED", "disambiguation_options": [], "message": "요청이 취소되었습니다.", "missing_requirements": [], "required_action": "NONE", "retryable": false, "suggestions": [], "trace_id": "fixture-cancelled" }, "meta": { "as_of": "2041-04-02", "contract_version": "OPENAPI-v1.0.0", "request_id": "00000000-0000-0000-0000-000000000100", "timestamp": "2041-04-02T00:00:00Z", "trace_id": "fixture-cancelled" } } }, "empty": { "summary": "empty", "value": { "data": { "artifact": { "artifact_id": "00000000-0000-0000-0000-00000000022f", "context_hash": "fixture-context-empty", "query_id": "fixture-query-empty" }, "disambiguation_options": [], "gates": { "g1_required": true, "g2_required": true }, "repair_count": 0, "result": { "chart": { "chart_type": "line", "x_field": "bucket_start", "y_fields": [ "measure_value" ] }, "evidence": { "artifact_id": "00000000-0000-0000-0000-00000000022f", "as_of": "2041-04-02", "cached": false, "context_release": "context-v1", "execution": { "critical_warning_count": 0, "processed_rows": 0, "scan_bytes": 0, "warning_count": 0 }, "filters": { "scope_code": "example" }, "masking": { "applied": true, "fields": [ "subject_identifier" ] }, "metric_values": [], "metrics": [], "models": [], "period": { "end_exclusive": "2041-04-01", "start": "2041-03-01" }, "policy_version": "policy-v1", "query_id": "fixture-query-empty", "sampling": { "applied": false, "returned_rows": 0, "total_rows": 0 }, "sources": [ { "fqn": "catalog_alpha.schema_beta.fact_observations", "name": "Governed observations", "schema_version": "1.0.0", "seed_version": "example-release-v1", "synthetic": true, "urn": "urn:example:dataset:catalog-alpha:fact-observations" } ] }, "metrics": [], "summary": "문서 예시 계약에 맞는 분석 결과입니다.", "table": { "columns": [ "bucket_start", "measure_value" ], "rows": [] } }, "route": "GENERAL", "status": "SUCCEEDED", "trace": [ { "outcome": "PASSED", "stage": "ROUTER" }, { "outcome": "PASSED", "stage": "CONTROLLER" }, { "outcome": "PASSED", "stage": "CONTEXT" }, { "outcome": "PASSED", "stage": "G1" }, { "outcome": "PASSED", "stage": "MODEL" }, { "outcome": "PASSED", "stage": "G2" }, { "outcome": "PASSED", "stage": "QUERY" }, { "outcome": "PASSED", "stage": "G3" }, { "outcome": "PASSED", "stage": "ARTIFACT" } ], "transitions": [ "RECEIVED", "ROUTED", "SUCCEEDED" ] }, "meta": { "as_of": "2041-04-02", "contract_version": "OPENAPI-v1.0.0", "request_id": "00000000-0000-0000-0000-000000000100", "timestamp": "2041-04-02T00:00:00Z", "trace_id": "fixture-empty" } } }, "g1_clarification": { "summary": "g1 clarification", "value": { "data": { "disambiguation_options": [], "gates": { "g1_required": true, "g2_required": true }, "repair_count": 0, "route": "GENERAL", "status": "BLOCKED", "trace": [ { "outcome": "PASSED", "stage": "ROUTER" }, { "outcome": "PASSED", "stage": "CONTROLLER" }, { "outcome": "PASSED", "stage": "CONTEXT" }, { "outcome": "PASSED", "stage": "G1" }, { "outcome": "PASSED", "stage": "MODEL" }, { "outcome": "PASSED", "stage": "G2" }, { "outcome": "PASSED", "stage": "QUERY" }, { "outcome": "PASSED", "stage": "G3" }, { "outcome": "PASSED", "stage": "ARTIFACT" } ], "transitions": [ "RECEIVED", "BLOCKED" ] }, "error": { "code": "CONTEXT_INCOMPLETE", "disambiguation_options": [], "message": "분석 기간을 입력해 주세요.", "missing_requirements": [], "required_action": "PROVIDE_CONTEXT", "retryable": false, "suggestions": [], "trace_id": "fixture-g1-clarification" }, "meta": { "as_of": "2041-04-02", "contract_version": "OPENAPI-v1.0.0", "request_id": "00000000-0000-0000-0000-000000000100", "timestamp": "2041-04-02T00:00:00Z", "trace_id": "fixture-g1-clarification" } } }, "g2_blocked": { "summary": "g2 blocked", "value": { "data": { "disambiguation_options": [], "gates": { "g1_required": true, "g2_required": true }, "repair_count": 0, "route": "GENERAL", "status": "BLOCKED", "trace": [ { "outcome": "PASSED", "stage": "ROUTER" }, { "outcome": "PASSED", "stage": "CONTROLLER" }, { "outcome": "PASSED", "stage": "CONTEXT" }, { "outcome": "PASSED", "stage": "G1" }, { "outcome": "PASSED", "stage": "MODEL" }, { "outcome": "PASSED", "stage": "G2" }, { "outcome": "PASSED", "stage": "QUERY" }, { "outcome": "PASSED", "stage": "G3" }, { "outcome": "PASSED", "stage": "ARTIFACT" } ], "transitions": [ "RECEIVED", "ROUTED", "BLOCKED" ] }, "error": { "code": "SQL_POLICY_BLOCKED", "disambiguation_options": [], "message": "허용된 조회 범위에서 질문을 수정해 주세요.", "missing_requirements": [], "required_action": "MODIFY_REQUEST", "retryable": false, "suggestions": [], "trace_id": "fixture-g2-blocked" }, "meta": { "as_of": "2041-04-02", "contract_version": "OPENAPI-v1.0.0", "request_id": "00000000-0000-0000-0000-000000000100", "timestamp": "2041-04-02T00:00:00Z", "trace_id": "fixture-g2-blocked" } } }, "g3_failed": { "summary": "g3 failed", "value": { "data": { "disambiguation_options": [], "gates": { "g1_required": true, "g2_required": true }, "repair_count": 0, "route": "GENERAL", "status": "FAILED", "trace": [ { "outcome": "PASSED", "stage": "ROUTER" }, { "outcome": "PASSED", "stage": "CONTROLLER" }, { "outcome": "PASSED", "stage": "CONTEXT" }, { "outcome": "PASSED", "stage": "G1" }, { "outcome": "PASSED", "stage": "MODEL" }, { "outcome": "PASSED", "stage": "G2" }, { "outcome": "PASSED", "stage": "QUERY" }, { "outcome": "PASSED", "stage": "G3" }, { "outcome": "PASSED", "stage": "ARTIFACT" } ], "transitions": [ "RECEIVED", "ROUTED", "FAILED" ] }, "error": { "code": "RESULT_EVIDENCE_MISSING", "disambiguation_options": [], "message": "결과 근거가 충분하지 않아 설명을 생성하지 않았습니다.", "missing_requirements": [], "required_action": "NONE", "retryable": false, "suggestions": [], "trace_id": "fixture-g3-failed" }, "meta": { "as_of": "2041-04-02", "contract_version": "OPENAPI-v1.0.0", "request_id": "00000000-0000-0000-0000-000000000100", "timestamp": "2041-04-02T00:00:00Z", "trace_id": "fixture-g3-failed" } } }, "partial": { "summary": "partial", "value": { "data": { "artifact": { "artifact_id": "00000000-0000-0000-0000-0000000002ed", "context_hash": "fixture-context-partial", "query_id": "fixture-query-partial" }, "disambiguation_options": [], "gates": { "g1_required": true, "g2_required": true }, "repair_count": 0, "result": { "chart": { "chart_type": "line", "x_field": "bucket_start", "y_fields": [ "measure_value" ] }, "evidence": { "artifact_id": "00000000-0000-0000-0000-0000000002ed", "as_of": "2041-04-02", "cached": false, "context_release": "context-v1", "execution": { "critical_warning_count": 0, "processed_rows": 0, "scan_bytes": 0, "warning_count": 0 }, "filters": { "scope_code": "example" }, "masking": { "applied": true, "fields": [ "subject_identifier" ] }, "metric_values": [], "metrics": [], "models": [], "period": { "end_exclusive": "2041-04-01", "start": "2041-03-01" }, "policy_version": "policy-v1", "query_id": "fixture-query-partial", "sampling": { "applied": false, "returned_rows": 0, "total_rows": 0 }, "sources": [ { "fqn": "catalog_alpha.schema_beta.fact_observations", "name": "Governed observations", "schema_version": "1.0.0", "seed_version": "example-release-v1", "synthetic": true, "urn": "urn:example:dataset:catalog-alpha:fact-observations" } ] }, "metrics": [], "summary": "문서 예시 계약에 맞는 분석 결과입니다.", "table": { "columns": [ "bucket_start", "measure_value" ], "rows": [] } }, "route": "GENERAL", "status": "PARTIAL", "trace": [ { "outcome": "PASSED", "stage": "ROUTER" }, { "outcome": "PASSED", "stage": "CONTROLLER" }, { "outcome": "PASSED", "stage": "CONTEXT" }, { "outcome": "PASSED", "stage": "G1" }, { "outcome": "PASSED", "stage": "MODEL" }, { "outcome": "PASSED", "stage": "G2" }, { "outcome": "PASSED", "stage": "QUERY" }, { "outcome": "PASSED", "stage": "G3" }, { "outcome": "PASSED", "stage": "ARTIFACT" } ], "transitions": [ "RECEIVED", "ROUTED", "PARTIAL" ] }, "error": { "code": "PARTIAL_FAILURE", "disambiguation_options": [], "message": "일부 데이터 소스를 조회하지 못했습니다.", "missing_requirements": [], "required_action": "RETRY", "retryable": true, "suggestions": [], "trace_id": "fixture-partial" }, "meta": { "as_of": "2041-04-02", "contract_version": "OPENAPI-v1.0.0", "request_id": "00000000-0000-0000-0000-000000000100", "timestamp": "2041-04-02T00:00:00Z", "trace_id": "fixture-partial" } } }, "repaired": { "summary": "repaired", "value": { "data": { "artifact": { "artifact_id": "00000000-0000-0000-0000-00000000034c", "context_hash": "fixture-context-repaired", "query_id": "fixture-query-repaired" }, "disambiguation_options": [], "gates": { "g1_required": true, "g2_required": true }, "repair_count": 1, "result": { "chart": { "chart_type": "line", "x_field": "bucket_start", "y_fields": [ "measure_value" ] }, "evidence": { "artifact_id": "00000000-0000-0000-0000-00000000034c", "as_of": "2041-04-02", "cached": false, "context_release": "context-v1", "execution": { "critical_warning_count": 0, "processed_rows": 0, "scan_bytes": 0, "warning_count": 0 }, "filters": { "scope_code": "example" }, "masking": { "applied": true, "fields": [ "subject_identifier" ] }, "metric_values": [], "metrics": [], "models": [], "period": { "end_exclusive": "2041-04-01", "start": "2041-03-01" }, "policy_version": "policy-v1", "query_id": "fixture-query-repaired", "sampling": { "applied": false, "returned_rows": 1, "total_rows": 1 }, "sources": [ { "fqn": "catalog_alpha.schema_beta.fact_observations", "name": "Governed observations", "schema_version": "1.0.0", "seed_version": "example-release-v1", "synthetic": true, "urn": "urn:example:dataset:catalog-alpha:fact-observations" } ] }, "metrics": [], "summary": "문서 예시 계약에 맞는 분석 결과입니다.", "table": { "columns": [ "bucket_start", "measure_value" ], "rows": [ { "bucket_start": "2041-03-01", "measure_value": 120 } ] } }, "route": "GENERAL", "status": "SUCCEEDED", "trace": [ { "outcome": "PASSED", "stage": "ROUTER" }, { "outcome": "PASSED", "stage": "CONTROLLER" }, { "outcome": "PASSED", "stage": "CONTEXT" }, { "outcome": "PASSED", "stage": "G1" }, { "outcome": "PASSED", "stage": "MODEL" }, { "outcome": "BLOCKED", "stage": "G2" }, { "outcome": "PASSED", "stage": "REPAIR" }, { "outcome": "PASSED", "stage": "G2" }, { "outcome": "PASSED", "stage": "QUERY" }, { "outcome": "PASSED", "stage": "G3" }, { "outcome": "PASSED", "stage": "ARTIFACT" } ], "transitions": [ "RECEIVED", "ROUTED", "SUCCEEDED" ] }, "meta": { "as_of": "2041-04-02", "contract_version": "OPENAPI-v1.0.0", "request_id": "00000000-0000-0000-0000-000000000100", "timestamp": "2041-04-02T00:00:00Z", "trace_id": "fixture-repaired" } } }, "success": { "summary": "success", "value": { "data": { "artifact": { "artifact_id": "00000000-0000-0000-0000-0000000002f9", "context_hash": "fixture-context-success", "query_id": "fixture-query-success" }, "disambiguation_options": [], "gates": { "g1_required": true, "g2_required": true }, "repair_count": 0, "result": { "chart": { "chart_type": "line", "x_field": "bucket_start", "y_fields": [ "measure_value" ] }, "evidence": { "artifact_id": "00000000-0000-0000-0000-0000000002f9", "as_of": "2041-04-02", "cached": false, "context_release": "context-v1", "execution": { "critical_warning_count": 0, "processed_rows": 0, "scan_bytes": 0, "warning_count": 0 }, "filters": { "scope_code": "example" }, "masking": { "applied": true, "fields": [ "subject_identifier" ] }, "metric_values": [], "metrics": [], "models": [], "period": { "end_exclusive": "2041-04-01", "start": "2041-03-01" }, "policy_version": "policy-v1", "query_id": "fixture-query-success", "sampling": { "applied": false, "returned_rows": 1, "total_rows": 1 }, "sources": [ { "fqn": "catalog_alpha.schema_beta.fact_observations", "name": "Governed observations", "schema_version": "1.0.0", "seed_version": "example-release-v1", "synthetic": true, "urn": "urn:example:dataset:catalog-alpha:fact-observations" } ] }, "metrics": [], "summary": "문서 예시 계약에 맞는 분석 결과입니다.", "table": { "columns": [ "bucket_start", "measure_value" ], "rows": [ { "bucket_start": "2041-03-01", "measure_value": 120 } ] } }, "route": "GENERAL", "status": "SUCCEEDED", "trace": [ { "outcome": "PASSED", "stage": "ROUTER" }, { "outcome": "PASSED", "stage": "CONTROLLER" }, { "outcome": "PASSED", "stage": "CONTEXT" }, { "outcome": "PASSED", "stage": "G1" }, { "outcome": "PASSED", "stage": "MODEL" }, { "outcome": "PASSED", "stage": "G2" }, { "outcome": "PASSED", "stage": "QUERY" }, { "outcome": "PASSED", "stage": "G3" }, { "outcome": "PASSED", "stage": "ARTIFACT" } ], "transitions": [ "RECEIVED", "ROUTED", "SUCCEEDED" ] }, "meta": { "as_of": "2041-04-02", "contract_version": "OPENAPI-v1.0.0", "request_id": "00000000-0000-0000-0000-000000000100", "timestamp": "2041-04-02T00:00:00Z", "trace_id": "fixture-success" } } }, "timeout": { "summary": "timeout", "value": { "data": { "disambiguation_options": [], "gates": { "g1_required": true, "g2_required": true }, "repair_count": 0, "route": "GENERAL", "status": "FAILED", "trace": [ { "outcome": "PASSED", "stage": "ROUTER" }, { "outcome": "PASSED", "stage": "CONTROLLER" }, { "outcome": "PASSED", "stage": "CONTEXT" }, { "outcome": "PASSED", "stage": "G1" }, { "outcome": "PASSED", "stage": "MODEL" }, { "outcome": "PASSED", "stage": "G2" }, { "outcome": "FAILED", "stage": "QUERY" } ], "transitions": [ "RECEIVED", "ROUTED", "FAILED" ] }, "error": { "code": "QUERY_TIMEOUT", "disambiguation_options": [], "message": "조회 시간이 초과되었습니다.", "missing_requirements": [], "required_action": "RETRY", "retryable": true, "suggestions": [], "trace_id": "fixture-timeout" }, "meta": { "as_of": "2041-04-02", "contract_version": "OPENAPI-v1.0.0", "request_id": "00000000-0000-0000-0000-000000000100", "timestamp": "2041-04-02T00:00:00Z", "trace_id": "fixture-timeout" } } } }, "schema": { "$ref": "#/components/schemas/AnalysisResponse" } } }, "description": "분석 요청 처리 결과" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } }, "description": "인증 정보 누락" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } }, "description": "역할 또는 접근 권한 거부" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } }, "description": "계약 버전 불일치" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } }, "description": "요청 Context 또는 body 오류" }, "429": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } }, "description": "동시 실행 제한" }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } }, "description": "안전하게 정규화된 내부 오류" } }, "security": [ { "BearerAuth": [] } ], "summary": "Analysis" } }, "/analysis/artifacts/{artifact_id}/archive": { "post": { "description": "소유한 승인 Artifact를 비파괴 보관하며 진행 중 Assistant 충돌은 409로 닫는다.", "operationId": "analysisArchiveArtifact", "parameters": [ { "in": "path", "name": "artifact_id", "required": true, "schema": { "format": "uuid", "title": "Artifact Id", "type": "string" } }, { "in": "header", "name": "X-Trace-Id", "required": true, "schema": { "title": "X-Trace-Id", "type": "string" } }, { "in": "header", "name": "X-Timezone", "required": true, "schema": { "title": "X-Timezone", "type": "string" } }, { "in": "header", "name": "X-Contract-Version", "required": true, "schema": { "title": "X-Contract-Version", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AnalysisArtifactLifecycleResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "Archive Analysis Artifact" } }, "/analysis/artifacts/{artifact_id}/restore": { "post": { "description": "소유한 보관 Artifact를 active 목록과 신규 보고서 결속에 다시 노출한다.", "operationId": "analysisRestoreArtifact", "parameters": [ { "in": "path", "name": "artifact_id", "required": true, "schema": { "format": "uuid", "title": "Artifact Id", "type": "string" } }, { "in": "header", "name": "X-Trace-Id", "required": true, "schema": { "title": "X-Trace-Id", "type": "string" } }, { "in": "header", "name": "X-Timezone", "required": true, "schema": { "title": "X-Timezone", "type": "string" } }, { "in": "header", "name": "X-Contract-Version", "required": true, "schema": { "title": "X-Contract-Version", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AnalysisArtifactLifecycleResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "Restore Analysis Artifact" } }, "/analysis/definitions": { "get": { "description": "현재 분석 주체가 저장한 definition만 생성 시각 역순으로 반환한다.", "operationId": "analysisListDefinitions", "parameters": [ { "in": "header", "name": "X-Trace-Id", "required": true, "schema": { "title": "X-Trace-Id", "type": "string" } }, { "in": "header", "name": "X-Timezone", "required": true, "schema": { "title": "X-Timezone", "type": "string" } }, { "in": "header", "name": "X-Contract-Version", "required": true, "schema": { "title": "X-Contract-Version", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AnalysisDefinitionListResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "List Analysis Definitions" }, "post": { "description": "소유한 완료 run을 source로 지정 title의 재실행 가능한 분석 definition을 저장한다.\n\nsource request의 존재·소유권·artifact 계약과 중복 여부는 repository transaction에서\n검증되며, 공통 repository 오류 매핑을 거친 definition 응답을 반환한다.", "operationId": "analysisCreateDefinition", "parameters": [ { "in": "header", "name": "X-Trace-Id", "required": true, "schema": { "title": "X-Trace-Id", "type": "string" } }, { "in": "header", "name": "X-Timezone", "required": true, "schema": { "title": "X-Timezone", "type": "string" } }, { "in": "header", "name": "X-Contract-Version", "required": true, "schema": { "title": "X-Contract-Version", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateAnalysisDefinitionRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AnalysisDefinitionResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "Create Analysis Definition" } }, "/analysis/definitions/{definition_id}": { "get": { "description": "definition ID로 인증 주체가 조회할 수 있는 저장 분석과 재실행 계약을 반환한다.\n\nrepository가 소유권 범위를 적용하며 미존재·비소유 결과는 공통 404 응답으로 닫힌다.", "operationId": "analysisGetDefinition", "parameters": [ { "in": "path", "name": "definition_id", "required": true, "schema": { "format": "uuid", "title": "Definition Id", "type": "string" } }, { "in": "header", "name": "X-Trace-Id", "required": true, "schema": { "title": "X-Trace-Id", "type": "string" } }, { "in": "header", "name": "X-Timezone", "required": true, "schema": { "title": "X-Timezone", "type": "string" } }, { "in": "header", "name": "X-Contract-Version", "required": true, "schema": { "title": "X-Contract-Version", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AnalysisDefinitionResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "Get Analysis Definition" } }, "/analysis/definitions/{definition_id}/runs": { "post": { "description": "저장된 분석 정의를 현재 권한·Context release에서 새로운 run으로 재실행한다.\n\n활성 release가 달라졌거나 미선언 parameter가 들어오면 실행 전에 거부하고,\nidempotency key로 생성된 run만 controller에 전달한다.", "operationId": "analysisReplayDefinition", "parameters": [ { "in": "path", "name": "definition_id", "required": true, "schema": { "format": "uuid", "title": "Definition Id", "type": "string" } }, { "in": "header", "name": "X-Trace-Id", "required": true, "schema": { "title": "X-Trace-Id", "type": "string" } }, { "in": "header", "name": "X-Timezone", "required": true, "schema": { "title": "X-Timezone", "type": "string" } }, { "in": "header", "name": "X-Contract-Version", "required": true, "schema": { "title": "X-Contract-Version", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReplayAnalysisRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AnalysisRunResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "Replay Analysis Definition" } }, "/analysis/ml": { "post": { "description": "허용된 사용자 요청만 예측하고 provenance 감사 이벤트를 저장한다.", "operationId": "createMlAnalysis", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RoomDemandRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MLRoomDemandPrediction" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" }, "502": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MLRuntimeErrorResponse" } } }, "description": "ML runtime 응답 계약 오류" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MLRuntimeErrorResponse" } } }, "description": "ML 기능 또는 승인 runtime 사용 불가" } }, "security": [ { "BearerAuth": [] } ], "summary": "Create Ml Analysis", "tags": [ "ml" ] } }, "/analysis/progress/{trace_id}": { "get": { "description": "인증 사용자의 유일한 trace 실행 snapshot을 API metadata와 함께 반환한다.\n\ntrace 재사용으로 실행이 모호하면 request ID 사용을 요구하는 409를, 소유 실행이 없거나\n만료됐으면 자원 존재를 노출하지 않는 404를 반환한다.", "operationId": "getAnalysisProgress", "parameters": [ { "in": "path", "name": "trace_id", "required": true, "schema": { "title": "Trace Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AnalysisProgressResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "Get Analysis Progress" } }, "/analysis/progress/{trace_id}/cancel": { "post": { "description": "인증 사용자의 유일한 trace 실행에 협력적 취소 event를 설정해 snapshot을 반환한다.\n\n모호한 trace는 409로 request ID 취소를 요구하고, 미존재는 404, 이미 종단 상태인 실행은\n새 취소가 불가능하므로 409로 변환한다.", "operationId": "cancelAnalysisProgress", "parameters": [ { "in": "path", "name": "trace_id", "required": true, "schema": { "title": "Trace Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AnalysisProgressResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "Cancel Analysis Progress" } }, "/analysis/progress/{trace_id}/poll": { "get": { "description": "대화 명령의 라우팅과 분석 등록 사이에는 빈 진행 상태를 정상 응답한다.\n\n소유 분석이 시작되면 strict progress와 같은 snapshot을 반환한다. 미등록 trace와\n다른 사용자 소유 trace는 모두 ``data: null``로 처리해 자원 존재를 노출하지 않는다.\n동일 소유자의 trace가 모호한 경우에는 request ID 조회를 요구하는 409를 유지한다.", "operationId": "pollAnalysisProgress", "parameters": [ { "in": "path", "name": "trace_id", "required": true, "schema": { "title": "Trace Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AnalysisProgressPollResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "Poll Analysis Progress" } }, "/analysis/requests/{request_id}/cancel": { "post": { "description": "인증 사용자 소유 request에 취소 event를 설정하고 반영된 진행 snapshot을 반환한다.\n\n미존재·타 사용자 요청은 404로 감추고 이미 종단 상태인 요청은 409로 거부한다.", "operationId": "cancelAnalysisProgressByRequest", "parameters": [ { "in": "path", "name": "request_id", "required": true, "schema": { "format": "uuid", "title": "Request Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AnalysisProgressResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "Cancel Analysis Progress By Request" } }, "/analysis/requests/{request_id}/progress": { "get": { "description": "request ID가 인증 사용자에게 속할 때만 진행 snapshot과 응답 metadata를 반환한다.\n\n레지스트리에 없거나 다른 사용자 소유인 요청은 모두 404로 처리한다.", "operationId": "getAnalysisProgressByRequest", "parameters": [ { "in": "path", "name": "request_id", "required": true, "schema": { "format": "uuid", "title": "Request Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AnalysisProgressResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "Get Analysis Progress By Request" } }, "/analysis/runs": { "get": { "description": "현재 분석 주체의 active 또는 명시한 archived run을 시작 시각 역순으로 반환한다.", "operationId": "analysisListRuns", "parameters": [ { "in": "query", "name": "limit", "required": false, "schema": { "default": 100, "maximum": 100, "minimum": 1, "title": "Limit", "type": "integer" } }, { "in": "query", "name": "approved_only", "required": false, "schema": { "default": false, "title": "Approved Only", "type": "boolean" } }, { "in": "query", "name": "archived", "required": false, "schema": { "default": false, "title": "Archived", "type": "boolean" } }, { "in": "header", "name": "X-Trace-Id", "required": true, "schema": { "title": "X-Trace-Id", "type": "string" } }, { "in": "header", "name": "X-Timezone", "required": true, "schema": { "title": "X-Timezone", "type": "string" } }, { "in": "header", "name": "X-Contract-Version", "required": true, "schema": { "title": "X-Contract-Version", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AnalysisRunListResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "List Analysis Runs" } }, "/analysis/runs/{request_id}": { "get": { "description": "request ID로 인증 주체 소유 run의 상태·query·lineage evidence를 반환한다.\n\n저장소가 사용자 범위를 강제하며 조회할 수 없는 run은 공통 404로 변환된다.", "operationId": "analysisGetRun", "parameters": [ { "in": "path", "name": "request_id", "required": true, "schema": { "format": "uuid", "title": "Request Id", "type": "string" } }, { "in": "header", "name": "X-Trace-Id", "required": true, "schema": { "title": "X-Trace-Id", "type": "string" } }, { "in": "header", "name": "X-Timezone", "required": true, "schema": { "title": "X-Timezone", "type": "string" } }, { "in": "header", "name": "X-Contract-Version", "required": true, "schema": { "title": "X-Contract-Version", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AnalysisRunResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "Get Analysis Run" } }, "/analysis/runs/{request_id}/artifact": { "get": { "description": "인증 주체 소유 run의 승인 artifact snapshot과 checksum 근거를 반환한다.\n\nartifact가 없거나 request가 다른 사용자에게 속하면 repository 오류 매핑을 통해 404로\n닫아 분석 결과의 존재 여부를 노출하지 않는다.", "operationId": "analysisGetRunArtifact", "parameters": [ { "in": "path", "name": "request_id", "required": true, "schema": { "format": "uuid", "title": "Request Id", "type": "string" } }, { "in": "header", "name": "X-Trace-Id", "required": true, "schema": { "title": "X-Trace-Id", "type": "string" } }, { "in": "header", "name": "X-Timezone", "required": true, "schema": { "title": "X-Timezone", "type": "string" } }, { "in": "header", "name": "X-Contract-Version", "required": true, "schema": { "title": "X-Contract-Version", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AnalysisRunArtifactResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "Get Analysis Run Artifact" } }, "/auth/login": { "post": { "description": "계정 자격 증명을 검증하고 revocation 가능한 서버 세션을 등록한다.\n\n원문 token은 secure 정책이 적용된 HTTP-only cookie로만 전달하며 인증 저장소 장애는\n정상 로그인으로 가장하지 않고 dependency 오류로 변환한다.", "operationId": "createAuthenticatedSession", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LoginRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LoginResponse" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } }, "description": "아이디 또는 비밀번호 불일치" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Login" } }, "/auth/logout": { "post": { "description": "현재 세션을 서버 저장소에서 먼저 폐기한 뒤 브라우저 cookie를 삭제한다.", "operationId": "deleteAuthenticatedSession", "responses": { "204": { "description": "Successful Response" } }, "security": [ { "BearerAuth": [] } ], "summary": "Logout" } }, "/auth/session": { "get": { "description": "검증된 세션의 role만 공개하며 자격 증명이 없을 때는 anonymous 상태를 반환한다.", "operationId": "getAuthenticatedSession", "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SessionResponse" } } }, "description": "Successful Response" } }, "security": [ { "BearerAuth": [] } ], "summary": "Authenticated Session" } }, "/conversations": { "post": { "description": "새로운 분석 대화방을 생성한다.", "operationId": "createConversation", "requestBody": { "content": { "application/json": { "schema": { "additionalProperties": true, "title": "Payload", "type": "object" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": true, "title": "Response Createconversation", "type": "object" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "Create Conversation" } }, "/conversations/{conversation_id}/commands": { "post": { "description": "대화방에서 분석·표현·보고서·내부지침 명령을 수행한다.", "operationId": "executeConversationCommand", "parameters": [ { "in": "path", "name": "conversation_id", "required": true, "schema": { "format": "uuid", "title": "Conversation Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ConversationCommandRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": true, "title": "Response Executeconversationcommand", "type": "object" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "Execute Conversation Command" } }, "/conversations/{conversation_id}/turns": { "get": { "description": "대화방의 불변 턴 목록을 순서대로 조회해 프론트엔드 상태를 수화(Hydration)한다.", "operationId": "getConversationTurns", "parameters": [ { "in": "path", "name": "conversation_id", "required": true, "schema": { "format": "uuid", "title": "Conversation Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": true, "title": "Response Getconversationturns", "type": "object" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "Get Conversation Turns" } }, "/health": { "get": { "description": "모듈의 외부 의존성 도달 가능성과 최소 응답 계약을 점검한다.", "operationId": "getHealth", "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HealthResponse" } } }, "description": "Successful Response" } }, "summary": "Health" } }, "/mcp": { "delete": { "description": "2026-07-28에서 제거된 protocol session 종료 요청을 405로 닫는다.", "operationId": "mcpDelete", "responses": { "405": { "description": "DELETE is not supported by stateless MCP" } }, "security": [ { "BearerAuth": [] } ], "summary": "Mcp Delete" }, "get": { "description": "2026-07-28에서 제거된 standalone GET stream을 405로 닫는다.", "operationId": "mcpGet", "responses": { "405": { "description": "GET is not supported by stateless MCP" } }, "security": [ { "BearerAuth": [] } ], "summary": "Mcp Get" }, "post": { "description": "MCP JSON-RPC 요청의 origin·버전·header·도구 권한을 검증해 한 건을 실행한다.\n\n현재 주체에게 승인된 exact registry Tool만 실행하며 성공·거부·실패를 모두\ntool audit에 남긴다. 프로토콜 위반은 JSON-RPC 오류로, 저장소·runtime 장애는\n도구 실행 오류로 닫힌다.", "operationId": "mcpPost", "parameters": [ { "in": "header", "name": "Accept", "required": true, "schema": { "example": "application/json, text/event-stream", "type": "string" } }, { "in": "header", "name": "MCP-Protocol-Version", "required": true, "schema": { "const": "2026-07-28", "type": "string" } }, { "in": "header", "name": "Mcp-Method", "required": true, "schema": { "type": "string" } }, { "in": "header", "name": "Mcp-Name", "required": false, "schema": { "type": "string" } }, { "deprecated": true, "description": "2026-07-28 stateless transport ignores this legacy header.", "in": "header", "name": "Mcp-Session-Id", "required": false, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "oneOf": [ { "additionalProperties": true, "properties": { "id": { "oneOf": [ { "type": "string" }, { "type": "integer" } ] }, "jsonrpc": { "const": "2.0", "type": "string" }, "method": { "const": "server/discover", "type": "string" }, "params": { "additionalProperties": false, "properties": { "_meta": { "additionalProperties": true, "properties": { "io.modelcontextprotocol/clientCapabilities": { "type": "object" }, "io.modelcontextprotocol/clientInfo": { "additionalProperties": true, "properties": { "name": { "minLength": 1, "type": "string" }, "version": { "minLength": 1, "type": "string" } }, "required": [ "name", "version" ], "type": "object" }, "io.modelcontextprotocol/protocolVersion": { "const": "2026-07-28", "type": "string" } }, "required": [ "io.modelcontextprotocol/protocolVersion", "io.modelcontextprotocol/clientCapabilities" ], "type": "object" } }, "required": [ "_meta" ], "type": "object" } }, "required": [ "jsonrpc", "id", "method", "params" ], "type": "object" }, { "additionalProperties": true, "properties": { "id": { "oneOf": [ { "type": "string" }, { "type": "integer" } ] }, "jsonrpc": { "const": "2.0", "type": "string" }, "method": { "const": "tools/list", "type": "string" }, "params": { "additionalProperties": false, "properties": { "_meta": { "additionalProperties": true, "properties": { "io.modelcontextprotocol/clientCapabilities": { "type": "object" }, "io.modelcontextprotocol/clientInfo": { "additionalProperties": true, "properties": { "name": { "minLength": 1, "type": "string" }, "version": { "minLength": 1, "type": "string" } }, "required": [ "name", "version" ], "type": "object" }, "io.modelcontextprotocol/protocolVersion": { "const": "2026-07-28", "type": "string" } }, "required": [ "io.modelcontextprotocol/protocolVersion", "io.modelcontextprotocol/clientCapabilities" ], "type": "object" } }, "required": [ "_meta" ], "type": "object" } }, "required": [ "jsonrpc", "id", "method", "params" ], "type": "object" }, { "additionalProperties": true, "properties": { "id": { "oneOf": [ { "type": "string" }, { "type": "integer" } ] }, "jsonrpc": { "const": "2.0", "type": "string" }, "method": { "const": "tools/call", "type": "string" }, "params": { "additionalProperties": false, "properties": { "_meta": { "additionalProperties": true, "properties": { "io.modelcontextprotocol/clientCapabilities": { "type": "object" }, "io.modelcontextprotocol/clientInfo": { "additionalProperties": true, "properties": { "name": { "minLength": 1, "type": "string" }, "version": { "minLength": 1, "type": "string" } }, "required": [ "name", "version" ], "type": "object" }, "io.modelcontextprotocol/protocolVersion": { "const": "2026-07-28", "type": "string" } }, "required": [ "io.modelcontextprotocol/protocolVersion", "io.modelcontextprotocol/clientCapabilities" ], "type": "object" }, "arguments": { "type": "object" }, "name": { "minLength": 1, "type": "string" } }, "required": [ "_meta", "name" ], "type": "object" } }, "required": [ "jsonrpc", "id", "method", "params" ], "type": "object" } ] } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "oneOf": [ { "additionalProperties": false, "properties": { "id": { "oneOf": [ { "type": "string" }, { "type": "integer" } ] }, "jsonrpc": { "const": "2.0", "type": "string" }, "result": { "properties": { "_meta": { "type": "object" }, "resultType": { "const": "complete", "type": "string" } }, "required": [ "resultType", "_meta" ], "type": "object" } }, "required": [ "jsonrpc", "id", "result" ], "type": "object" }, { "additionalProperties": false, "properties": { "error": { "additionalProperties": false, "properties": { "code": { "type": "integer" }, "data": {}, "message": { "type": "string" } }, "required": [ "code", "message" ], "type": "object" }, "id": { "oneOf": [ { "type": "string" }, { "type": "integer" } ] }, "jsonrpc": { "const": "2.0", "type": "string" } }, "required": [ "jsonrpc", "error" ], "type": "object" } ] } } }, "description": "JSON-RPC result or Tool-level error" }, "400": { "content": { "application/json": { "schema": { "oneOf": [ { "additionalProperties": false, "properties": { "id": { "oneOf": [ { "type": "string" }, { "type": "integer" } ] }, "jsonrpc": { "const": "2.0", "type": "string" }, "result": { "properties": { "_meta": { "type": "object" }, "resultType": { "const": "complete", "type": "string" } }, "required": [ "resultType", "_meta" ], "type": "object" } }, "required": [ "jsonrpc", "id", "result" ], "type": "object" }, { "additionalProperties": false, "properties": { "error": { "additionalProperties": false, "properties": { "code": { "type": "integer" }, "data": {}, "message": { "type": "string" } }, "required": [ "code", "message" ], "type": "object" }, "id": { "oneOf": [ { "type": "string" }, { "type": "integer" } ] }, "jsonrpc": { "const": "2.0", "type": "string" } }, "required": [ "jsonrpc", "error" ], "type": "object" } ] } } }, "description": "Malformed JSON-RPC request or mirrored-header mismatch" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } }, "description": "Bearer authentication required" }, "403": { "content": { "application/json": { "schema": { "oneOf": [ { "additionalProperties": false, "properties": { "error": { "additionalProperties": false, "properties": { "code": { "type": "integer" }, "data": {}, "message": { "type": "string" } }, "required": [ "code", "message" ], "type": "object" }, "id": { "oneOf": [ { "type": "string" }, { "type": "integer" } ] }, "jsonrpc": { "const": "2.0", "type": "string" } }, "required": [ "jsonrpc", "error" ], "type": "object" }, { "$ref": "#/components/schemas/ErrorResponse" } ] } } }, "description": "Origin or authorization denied" }, "404": { "content": { "application/json": { "schema": { "oneOf": [ { "additionalProperties": false, "properties": { "id": { "oneOf": [ { "type": "string" }, { "type": "integer" } ] }, "jsonrpc": { "const": "2.0", "type": "string" }, "result": { "properties": { "_meta": { "type": "object" }, "resultType": { "const": "complete", "type": "string" } }, "required": [ "resultType", "_meta" ], "type": "object" } }, "required": [ "jsonrpc", "id", "result" ], "type": "object" }, { "additionalProperties": false, "properties": { "error": { "additionalProperties": false, "properties": { "code": { "type": "integer" }, "data": {}, "message": { "type": "string" } }, "required": [ "code", "message" ], "type": "object" }, "id": { "oneOf": [ { "type": "string" }, { "type": "integer" } ] }, "jsonrpc": { "const": "2.0", "type": "string" } }, "required": [ "jsonrpc", "error" ], "type": "object" } ] } } }, "description": "JSON-RPC method not found" }, "406": { "content": { "application/json": { "schema": { "oneOf": [ { "additionalProperties": false, "properties": { "id": { "oneOf": [ { "type": "string" }, { "type": "integer" } ] }, "jsonrpc": { "const": "2.0", "type": "string" }, "result": { "properties": { "_meta": { "type": "object" }, "resultType": { "const": "complete", "type": "string" } }, "required": [ "resultType", "_meta" ], "type": "object" } }, "required": [ "jsonrpc", "id", "result" ], "type": "object" }, { "additionalProperties": false, "properties": { "error": { "additionalProperties": false, "properties": { "code": { "type": "integer" }, "data": {}, "message": { "type": "string" } }, "required": [ "code", "message" ], "type": "object" }, "id": { "oneOf": [ { "type": "string" }, { "type": "integer" } ] }, "jsonrpc": { "const": "2.0", "type": "string" } }, "required": [ "jsonrpc", "error" ], "type": "object" } ] } } }, "description": "Required response media types are not accepted" }, "415": { "content": { "application/json": { "schema": { "oneOf": [ { "additionalProperties": false, "properties": { "id": { "oneOf": [ { "type": "string" }, { "type": "integer" } ] }, "jsonrpc": { "const": "2.0", "type": "string" }, "result": { "properties": { "_meta": { "type": "object" }, "resultType": { "const": "complete", "type": "string" } }, "required": [ "resultType", "_meta" ], "type": "object" } }, "required": [ "jsonrpc", "id", "result" ], "type": "object" }, { "additionalProperties": false, "properties": { "error": { "additionalProperties": false, "properties": { "code": { "type": "integer" }, "data": {}, "message": { "type": "string" } }, "required": [ "code", "message" ], "type": "object" }, "id": { "oneOf": [ { "type": "string" }, { "type": "integer" } ] }, "jsonrpc": { "const": "2.0", "type": "string" } }, "required": [ "jsonrpc", "error" ], "type": "object" } ] } } }, "description": "Request body is not application/json" }, "429": { "content": { "application/json": { "schema": { "oneOf": [ { "additionalProperties": false, "properties": { "id": { "oneOf": [ { "type": "string" }, { "type": "integer" } ] }, "jsonrpc": { "const": "2.0", "type": "string" }, "result": { "properties": { "_meta": { "type": "object" }, "resultType": { "const": "complete", "type": "string" } }, "required": [ "resultType", "_meta" ], "type": "object" } }, "required": [ "jsonrpc", "id", "result" ], "type": "object" }, { "additionalProperties": false, "properties": { "error": { "additionalProperties": false, "properties": { "code": { "type": "integer" }, "data": {}, "message": { "type": "string" } }, "required": [ "code", "message" ], "type": "object" }, "id": { "oneOf": [ { "type": "string" }, { "type": "integer" } ] }, "jsonrpc": { "const": "2.0", "type": "string" } }, "required": [ "jsonrpc", "error" ], "type": "object" } ] } } }, "description": "Tool call rate limited", "headers": { "Cache-Control": { "schema": { "const": "no-store", "type": "string" } }, "Retry-After": { "schema": { "minimum": 1, "type": "integer" } } } }, "500": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } }, "description": "Unhandled server failure" }, "503": { "content": { "application/json": { "schema": { "oneOf": [ { "additionalProperties": false, "properties": { "error": { "additionalProperties": false, "properties": { "code": { "type": "integer" }, "data": {}, "message": { "type": "string" } }, "required": [ "code", "message" ], "type": "object" }, "id": { "oneOf": [ { "type": "string" }, { "type": "integer" } ] }, "jsonrpc": { "const": "2.0", "type": "string" } }, "required": [ "jsonrpc", "error" ], "type": "object" }, { "$ref": "#/components/schemas/ErrorResponse" } ] } } }, "description": "Authentication, MCP registry, quota, Tool, or audit unavailable" } }, "security": [ { "BearerAuth": [] } ], "summary": "Mcp Post" } }, "/ml/capabilities": { "get": { "description": "현재 역할과 feature flag를 확인한 뒤 runtime capability를 반환한다.", "operationId": "getMlCapabilities", "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MLRuntimeCapability" } } }, "description": "Successful Response" }, "502": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MLRuntimeErrorResponse" } } }, "description": "ML runtime 응답 계약 오류" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MLRuntimeErrorResponse" } } }, "description": "ML 기능 또는 승인 runtime 사용 불가" } }, "security": [ { "BearerAuth": [] } ], "summary": "Ml Capabilities", "tags": [ "ml" ] } }, "/rag/documents": { "get": { "description": "현재 역할이 열람할 수 있는 승인 문서 목록을 동적으로 반환한다.", "operationId": "listInternalManuals", "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": true, "title": "Response Listinternalmanuals", "type": "object" } } }, "description": "Successful Response" } }, "security": [ { "BearerAuth": [] } ], "summary": "List Internal Manuals" } }, "/rag/documents/{manual_id}/preview": { "get": { "description": "승인된 PDF는 그대로, DOCX는 안전한 HTML로 변환해 화면 내 열람을 제공한다.", "operationId": "previewInternalManual", "parameters": [ { "in": "path", "name": "manual_id", "required": true, "schema": { "title": "Manual Id", "type": "string" } } ], "responses": { "200": { "content": { "application/pdf": {}, "text/html": {} }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "Get Internal Manual Preview" } }, "/rag/documents/{manual_id}/source": { "get": { "description": "요청 주체가 열람할 수 있는 PDF 또는 DOCX 원문을 형식 그대로 중계한다.", "operationId": "getInternalManualSource", "parameters": [ { "in": "path", "name": "manual_id", "required": true, "schema": { "title": "Manual Id", "type": "string" } } ], "responses": { "200": { "content": { "application/pdf": {}, "application/vnd.openxmlformats-officedocument.wordprocessingml.document": {} }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "Get Internal Manual Source" } }, "/rag/documents/{manual_id}/source.pdf": { "get": { "description": "요청 주체가 열람할 수 있는 내부 매뉴얼 PDF만 중계한다.", "operationId": "getInternalManualPdf", "parameters": [ { "in": "path", "name": "manual_id", "required": true, "schema": { "title": "Manual Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "Get Internal Manual Pdf" } }, "/rag/query": { "post": { "description": "사용자 권한과 대화 head를 확인해 내부 매뉴얼 검색 결과를 반환한다.", "operationId": "queryInternalManual", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RagQueryRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": true, "title": "Response Queryinternalmanual", "type": "object" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "Query Internal Manual" } }, "/readiness": { "get": { "description": "필수 운영 의존성을 probe하고 하나라도 준비되지 않으면 typed 503으로 닫는다.", "operationId": "getReadiness", "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReadinessResponse" } } }, "description": "Successful Response" } }, "summary": "Ready" } }, "/reports/assistant/drafts": { "post": { "deprecated": true, "description": "승인 경계를 우회하던 단발성 초안 API를 모델·저장소 접근 전에 영구 거부한다.", "operationId": "reportAssistantLegacyDraftGone", "parameters": [ { "in": "header", "name": "X-Trace-Id", "required": true, "schema": { "title": "X-Trace-Id", "type": "string" } }, { "in": "header", "name": "X-Timezone", "required": true, "schema": { "title": "X-Timezone", "type": "string" } }, { "in": "header", "name": "X-Contract-Version", "required": true, "schema": { "title": "X-Contract-Version", "type": "string" } } ], "responses": { "410": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } }, "description": "외부 전송 동의와 단계별 승인을 우회하던 단발성 API는 폐기되었습니다. 세션 기반 Report Assistant API를 사용해야 합니다." }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "Retired Assistant Draft" } }, "/reports/assistant/operations/failures": { "get": { "description": "관리자에게만 raw prompt·SQL·trace가 제거된 실패 평가를 반환한다.", "operationId": "reportAssistantOperationsFailures", "parameters": [ { "in": "query", "name": "start_at", "required": false, "schema": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "Start At" } }, { "in": "query", "name": "end_at", "required": false, "schema": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "End At" } }, { "in": "header", "name": "X-Trace-Id", "required": true, "schema": { "title": "X-Trace-Id", "type": "string" } }, { "in": "header", "name": "X-Timezone", "required": true, "schema": { "title": "X-Timezone", "type": "string" } }, { "in": "header", "name": "X-Contract-Version", "required": true, "schema": { "title": "X-Contract-Version", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReportAssistantFailureListResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "Get Assistant Operation Failures" } }, "/reports/assistant/operations/summary": { "get": { "description": "관리자에게만 기간·분모가 포함된 Assistant 품질·비용 집계를 반환한다.", "operationId": "reportAssistantOperationsSummary", "parameters": [ { "in": "query", "name": "start_at", "required": false, "schema": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "Start At" } }, { "in": "query", "name": "end_at", "required": false, "schema": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "End At" } }, { "in": "header", "name": "X-Trace-Id", "required": true, "schema": { "title": "X-Trace-Id", "type": "string" } }, { "in": "header", "name": "X-Timezone", "required": true, "schema": { "title": "X-Timezone", "type": "string" } }, { "in": "header", "name": "X-Contract-Version", "required": true, "schema": { "title": "X-Contract-Version", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReportAssistantOperationsSummaryResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "Get Assistant Operations Summary" } }, "/reports/assistant/sessions": { "post": { "description": "현재 draft와 그 안의 승인 artifact를 검증해 복구 가능한 Assistant 세션을 연다.", "operationId": "reportAssistantCreateSession", "parameters": [ { "in": "header", "name": "X-Trace-Id", "required": true, "schema": { "title": "X-Trace-Id", "type": "string" } }, { "in": "header", "name": "X-Timezone", "required": true, "schema": { "title": "X-Timezone", "type": "string" } }, { "in": "header", "name": "X-Contract-Version", "required": true, "schema": { "title": "X-Contract-Version", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateReportAssistantSessionRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReportAssistantSessionResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "Create Assistant Session" } }, "/reports/assistant/sessions/{assistant_request_id}": { "get": { "description": "새로고침 후에도 서버에 저장된 현재 Assistant phase와 승인 계획을 복구한다.", "operationId": "reportAssistantGetSession", "parameters": [ { "in": "path", "name": "assistant_request_id", "required": true, "schema": { "title": "Assistant Request Id", "type": "string" } }, { "in": "header", "name": "X-Trace-Id", "required": true, "schema": { "title": "X-Trace-Id", "type": "string" } }, { "in": "header", "name": "X-Timezone", "required": true, "schema": { "title": "X-Timezone", "type": "string" } }, { "in": "header", "name": "X-Contract-Version", "required": true, "schema": { "title": "X-Contract-Version", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReportAssistantSessionResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "Get Assistant Session" } }, "/reports/assistant/sessions/{assistant_request_id}/approval": { "post": { "description": "대기 계획을 멱등 승인·거절하고 최초 승인만 기존 분석 경계에서 Artifact까지 실행한다.\n\n승인 전 owner·request·phase·권한을 검증한다. 거절은 분석을 호출하지 않고 ready로 돌아가며,\n승인 성공은 반환 Artifact lineage를 재검증해 CAS 기반 새 draft revision까지 완료한다.", "operationId": "reportAssistantDecidePlan", "parameters": [ { "in": "path", "name": "assistant_request_id", "required": true, "schema": { "title": "Assistant Request Id", "type": "string" } }, { "in": "header", "name": "X-Trace-Id", "required": true, "schema": { "title": "X-Trace-Id", "type": "string" } }, { "in": "header", "name": "X-Timezone", "required": true, "schema": { "title": "X-Timezone", "type": "string" } }, { "in": "header", "name": "X-Contract-Version", "required": true, "schema": { "title": "X-Contract-Version", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReportAssistantApprovalRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReportAssistantSessionResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" }, "428": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReportAssistantExternalTransferErrorResponse" } } }, "description": "새 분석 Artifact 외부 전송 명시 동의 필요" } }, "security": [ { "BearerAuth": [] } ], "summary": "Decide Assistant Plan" } }, "/reports/assistant/sessions/{assistant_request_id}/cancel": { "post": { "description": "대기 중인 소유자 세션만 취소하고 실행·Revision 저장 중인 요청은 그대로 둔다.", "operationId": "reportAssistantCancelSession", "parameters": [ { "in": "path", "name": "assistant_request_id", "required": true, "schema": { "title": "Assistant Request Id", "type": "string" } }, { "in": "header", "name": "X-Trace-Id", "required": true, "schema": { "title": "X-Trace-Id", "type": "string" } }, { "in": "header", "name": "X-Timezone", "required": true, "schema": { "title": "X-Timezone", "type": "string" } }, { "in": "header", "name": "X-Contract-Version", "required": true, "schema": { "title": "X-Contract-Version", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReportAssistantSessionResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "Cancel Assistant Session" } }, "/reports/assistant/sessions/{assistant_request_id}/evaluation": { "get": { "description": "분석가는 자신의 평가만, 관리자는 전체 평가를 안전한 계약으로 조회한다.", "operationId": "reportAssistantGetEvaluation", "parameters": [ { "in": "path", "name": "assistant_request_id", "required": true, "schema": { "title": "Assistant Request Id", "type": "string" } }, { "in": "header", "name": "X-Trace-Id", "required": true, "schema": { "title": "X-Trace-Id", "type": "string" } }, { "in": "header", "name": "X-Timezone", "required": true, "schema": { "title": "X-Timezone", "type": "string" } }, { "in": "header", "name": "X-Contract-Version", "required": true, "schema": { "title": "X-Contract-Version", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReportAssistantEvaluationResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "Get Assistant Evaluation" } }, "/reports/assistant/sessions/{assistant_request_id}/external-transfer-consent": { "post": { "description": "기본 미동의 공개문을 현재 세션 결속과 재검증한 뒤 명시 수락 receipt로 저장한다.", "operationId": "reportAssistantAcceptExternalTransfer", "parameters": [ { "in": "path", "name": "assistant_request_id", "required": true, "schema": { "title": "Assistant Request Id", "type": "string" } }, { "in": "header", "name": "X-Trace-Id", "required": true, "schema": { "title": "X-Trace-Id", "type": "string" } }, { "in": "header", "name": "X-Timezone", "required": true, "schema": { "title": "X-Timezone", "type": "string" } }, { "in": "header", "name": "X-Contract-Version", "required": true, "schema": { "title": "X-Contract-Version", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReportAssistantExternalTransferConsentRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReportAssistantExternalTransferConsentResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "Accept Assistant External Transfer Consent" } }, "/reports/assistant/sessions/{assistant_request_id}/external-transfer-disclosure": { "get": { "description": "새로고침 뒤 현재 owner 세션의 최신 미만료 외부 전송 공개문을 복구한다.", "operationId": "reportAssistantGetExternalTransferDisclosure", "parameters": [ { "in": "path", "name": "assistant_request_id", "required": true, "schema": { "title": "Assistant Request Id", "type": "string" } }, { "in": "header", "name": "X-Trace-Id", "required": true, "schema": { "title": "X-Trace-Id", "type": "string" } }, { "in": "header", "name": "X-Timezone", "required": true, "schema": { "title": "X-Timezone", "type": "string" } }, { "in": "header", "name": "X-Contract-Version", "required": true, "schema": { "title": "X-Contract-Version", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReportAssistantExternalTransferDisclosureResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "Get Assistant External Transfer Disclosure" } }, "/reports/assistant/sessions/{assistant_request_id}/messages": { "post": { "description": "새 지시 또는 승인 대기 patch 재수정을 strict 모델 계약으로 처리한다.\n\n모델 호출 전 세션과 artifact 소유권을 확인하며, 이 경계에서는 분석 controller나 데이터\nplatform을 호출하지 않는다. 동시 요청으로 phase가 바뀌면 기존 계획을 덮지 않고 409다.", "operationId": "reportAssistantSubmitMessage", "parameters": [ { "in": "path", "name": "assistant_request_id", "required": true, "schema": { "title": "Assistant Request Id", "type": "string" } }, { "in": "header", "name": "X-Trace-Id", "required": true, "schema": { "title": "X-Trace-Id", "type": "string" } }, { "in": "header", "name": "X-Timezone", "required": true, "schema": { "title": "X-Timezone", "type": "string" } }, { "in": "header", "name": "X-Contract-Version", "required": true, "schema": { "title": "X-Contract-Version", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReportAssistantMessageRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReportAssistantProposalResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" }, "428": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReportAssistantExternalTransferErrorResponse" } } }, "description": "외부 모델 전송 명시 동의 필요" } }, "security": [ { "BearerAuth": [] } ], "summary": "Submit Assistant Message" } }, "/reports/assistant/sessions/{assistant_request_id}/patch-approval": { "post": { "description": "기존 Artifact patch를 멱등 승인·취소하고 승인된 경우에만 CAS revision을 저장한다.", "operationId": "reportAssistantDecidePatch", "parameters": [ { "in": "path", "name": "assistant_request_id", "required": true, "schema": { "title": "Assistant Request Id", "type": "string" } }, { "in": "header", "name": "X-Trace-Id", "required": true, "schema": { "title": "X-Trace-Id", "type": "string" } }, { "in": "header", "name": "X-Timezone", "required": true, "schema": { "title": "X-Timezone", "type": "string" } }, { "in": "header", "name": "X-Contract-Version", "required": true, "schema": { "title": "X-Contract-Version", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReportAssistantPatchApprovalRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReportAssistantSessionResponse" } } }, "description": "Successful Response" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } }, "description": "페이지 수 제약 불일치 또는 Assistant 세션 상태 충돌" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" }, "502": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } }, "description": "후보 보고서 페이지 renderer 실패" } }, "security": [ { "BearerAuth": [] } ], "summary": "Decide Assistant Patch" } }, "/reports/assistant/sessions/{assistant_request_id}/retry": { "post": { "description": "재시도 가능한 실패를 동일 근거의 새 ``ready`` 세션으로만 이어 간다.\n\n원본 실패·승인·요청 ID를 변경하거나 복사하지 않으며 Report revision과 승인 Artifact\nlineage를 다시 확인한다. 이 요청은 모델, 분석 controller, Revision 저장을 호출하지 않는다.", "operationId": "reportAssistantRetrySession", "parameters": [ { "in": "path", "name": "assistant_request_id", "required": true, "schema": { "title": "Assistant Request Id", "type": "string" } }, { "in": "header", "name": "X-Trace-Id", "required": true, "schema": { "title": "X-Trace-Id", "type": "string" } }, { "in": "header", "name": "X-Timezone", "required": true, "schema": { "title": "X-Timezone", "type": "string" } }, { "in": "header", "name": "X-Contract-Version", "required": true, "schema": { "title": "X-Contract-Version", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReportAssistantSessionResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "Retry Assistant Session" } }, "/reports/assistant/sessions/{assistant_request_id}/review": { "post": { "description": "현재 Report와 승인 Artifact를 읽기만 하고 typed 품질 finding을 반환한다.", "operationId": "reportAssistantReview", "parameters": [ { "in": "path", "name": "assistant_request_id", "required": true, "schema": { "title": "Assistant Request Id", "type": "string" } }, { "in": "header", "name": "X-Trace-Id", "required": true, "schema": { "title": "X-Trace-Id", "type": "string" } }, { "in": "header", "name": "X-Timezone", "required": true, "schema": { "title": "X-Timezone", "type": "string" } }, { "in": "header", "name": "X-Contract-Version", "required": true, "schema": { "title": "X-Contract-Version", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "anyOf": [ { "$ref": "#/components/schemas/ReportAssistantReviewRequest" }, { "type": "null" } ], "title": "Payload" } } } }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReportAssistantReviewResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" }, "428": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReportAssistantExternalTransferErrorResponse" } } }, "description": "외부 모델 전송 명시 동의 필요" } }, "security": [ { "BearerAuth": [] } ], "summary": "Review Assistant Report" } }, "/reports/definitions": { "get": { "description": "기본 active 목록 또는 명시한 archived 목록을 역할 범위와 소유권에 맞게 반환한다.", "operationId": "reportListDefinitions", "parameters": [ { "in": "query", "name": "archived", "required": false, "schema": { "default": false, "title": "Archived", "type": "boolean" } }, { "in": "header", "name": "X-Trace-Id", "required": true, "schema": { "title": "X-Trace-Id", "type": "string" } }, { "in": "header", "name": "X-Timezone", "required": true, "schema": { "title": "X-Timezone", "type": "string" } }, { "in": "header", "name": "X-Contract-Version", "required": true, "schema": { "title": "X-Contract-Version", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReportDefinitionListResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "List Definitions" }, "post": { "description": "검증된 title·block grid·표시 설정으로 소유자 범위의 version 1 draft를 저장한다.\n\n도메인 필드 오류와 저장 상태 충돌은 ``_call``을 통해 공개 가능한 HTTP 오류로 변환한다.", "operationId": "reportCreateDefinition", "parameters": [ { "in": "header", "name": "X-Trace-Id", "required": true, "schema": { "title": "X-Trace-Id", "type": "string" } }, { "in": "header", "name": "X-Timezone", "required": true, "schema": { "title": "X-Timezone", "type": "string" } }, { "in": "header", "name": "X-Contract-Version", "required": true, "schema": { "title": "X-Contract-Version", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateReportDefinitionRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReportDefinitionResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "Create Definition" } }, "/reports/definitions/{definition_id}": { "delete": { "description": "휴지통의 권한 범위 보고서만 복원 불가능하게 제거하고 최소 감사 이벤트를 남긴다.", "operationId": "reportPermanentlyDeleteDefinition", "parameters": [ { "in": "path", "name": "definition_id", "required": true, "schema": { "title": "Definition Id", "type": "string" } }, { "in": "header", "name": "X-Trace-Id", "required": true, "schema": { "title": "X-Trace-Id", "type": "string" } }, { "in": "header", "name": "X-Timezone", "required": true, "schema": { "title": "X-Timezone", "type": "string" } }, { "in": "header", "name": "X-Contract-Version", "required": true, "schema": { "title": "X-Contract-Version", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReportDefinitionPermanentDeleteResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "Permanently Delete Definition" } }, "/reports/definitions/{definition_id}/archive": { "post": { "description": "권한 범위의 보고서를 비파괴 보관하고 진행 중 실행·Assistant가 있으면 409로 거부한다.", "operationId": "reportArchiveDefinition", "parameters": [ { "in": "path", "name": "definition_id", "required": true, "schema": { "title": "Definition Id", "type": "string" } }, { "in": "header", "name": "X-Trace-Id", "required": true, "schema": { "title": "X-Trace-Id", "type": "string" } }, { "in": "header", "name": "X-Timezone", "required": true, "schema": { "title": "X-Timezone", "type": "string" } }, { "in": "header", "name": "X-Contract-Version", "required": true, "schema": { "title": "X-Contract-Version", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReportDefinitionLifecycleResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "Archive Definition" } }, "/reports/definitions/{definition_id}/restore": { "post": { "description": "권한 범위의 보고서를 복원하되 보관 시 비활성화한 schedule은 자동으로 다시 켜지 않는다.", "operationId": "reportRestoreDefinition", "parameters": [ { "in": "path", "name": "definition_id", "required": true, "schema": { "title": "Definition Id", "type": "string" } }, { "in": "header", "name": "X-Trace-Id", "required": true, "schema": { "title": "X-Trace-Id", "type": "string" } }, { "in": "header", "name": "X-Timezone", "required": true, "schema": { "title": "X-Timezone", "type": "string" } }, { "in": "header", "name": "X-Contract-Version", "required": true, "schema": { "title": "X-Contract-Version", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReportDefinitionLifecycleResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "Restore Definition" } }, "/reports/definitions/{definition_id}/versions/{version}": { "get": { "description": "사용자 역할 범위에서 definition ID와 version이 일치하는 보고서 계약을 반환한다.\n\n저장소가 소유권 필터를 적용하며 조회할 수 없는 대상은 404로 정규화한다.", "operationId": "reportGetDefinitionVersion", "parameters": [ { "in": "path", "name": "definition_id", "required": true, "schema": { "title": "Definition Id", "type": "string" } }, { "in": "path", "name": "version", "required": true, "schema": { "title": "Version", "type": "integer" } }, { "in": "header", "name": "X-Trace-Id", "required": true, "schema": { "title": "X-Trace-Id", "type": "string" } }, { "in": "header", "name": "X-Timezone", "required": true, "schema": { "title": "X-Timezone", "type": "string" } }, { "in": "header", "name": "X-Contract-Version", "required": true, "schema": { "title": "X-Contract-Version", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReportDefinitionResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "Get Version" } }, "/reports/definitions/{definition_id}/versions/{version}/approve": { "post": { "description": "관리자가 지정한 draft를 승인 시각에 불변 HTML·PDF 문서와 함께 확정한다.\n\n저장 orientation 불일치, 비-DRAFT 상태, 미존재 및 renderer 실패는 지원 계층의 구분된\n409·404·503 응답으로 반환되고 실패 시 승인 write는 남지 않는다.", "operationId": "reportApproveVersion", "parameters": [ { "in": "path", "name": "definition_id", "required": true, "schema": { "title": "Definition Id", "type": "string" } }, { "in": "path", "name": "version", "required": true, "schema": { "title": "Version", "type": "integer" } }, { "in": "header", "name": "X-Trace-Id", "required": true, "schema": { "title": "X-Trace-Id", "type": "string" } }, { "in": "header", "name": "X-Timezone", "required": true, "schema": { "title": "X-Timezone", "type": "string" } }, { "in": "header", "name": "X-Contract-Version", "required": true, "schema": { "title": "X-Contract-Version", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApproveReportVersionRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReportDefinitionResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "Approve Version" } }, "/reports/definitions/{definition_id}/versions/{version}/artifacts/{artifact_id}": { "get": { "description": "definition version이 참조하고 사용자가 열람 가능한 분석 artifact만 전송 계약으로 반환한다.\n\n저장소가 definition·version·artifact 연결과 소유권을 함께 검사하며 부재는 404로 닫힌다.", "operationId": "reportGetArtifact", "parameters": [ { "in": "path", "name": "definition_id", "required": true, "schema": { "title": "Definition Id", "type": "string" } }, { "in": "path", "name": "version", "required": true, "schema": { "title": "Version", "type": "integer" } }, { "in": "path", "name": "artifact_id", "required": true, "schema": { "title": "Artifact Id", "type": "string" } }, { "in": "header", "name": "X-Trace-Id", "required": true, "schema": { "title": "X-Trace-Id", "type": "string" } }, { "in": "header", "name": "X-Timezone", "required": true, "schema": { "title": "X-Timezone", "type": "string" } }, { "in": "header", "name": "X-Contract-Version", "required": true, "schema": { "title": "X-Contract-Version", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReportArtifactResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "Get Report Artifact" } }, "/reports/definitions/{definition_id}/versions/{version}/blocks": { "put": { "description": "draft 제목·blocks·표시 설정을 현재 상태와 충돌 확인 후 원자적으로 반영한다.", "operationId": "reportReplaceDraftBlocks", "parameters": [ { "in": "path", "name": "definition_id", "required": true, "schema": { "title": "Definition Id", "type": "string" } }, { "in": "path", "name": "version", "required": true, "schema": { "title": "Version", "type": "integer" } }, { "in": "header", "name": "X-Trace-Id", "required": true, "schema": { "title": "X-Trace-Id", "type": "string" } }, { "in": "header", "name": "X-Timezone", "required": true, "schema": { "title": "X-Timezone", "type": "string" } }, { "in": "header", "name": "X-Contract-Version", "required": true, "schema": { "title": "X-Contract-Version", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReplaceReportBlocksRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReportDefinitionResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "Replace Draft Blocks" } }, "/reports/definitions/{definition_id}/versions/{version}/document": { "get": { "description": "열람 권한이 있는 승인 version의 renderer·source·HTML·PDF checksum metadata를 반환한다.\n\n문서 bytes는 포함하지 않으며 저장소에서 찾을 수 없거나 비소유인 대상은 404로 처리한다.", "operationId": "reportGetFinalDocument", "parameters": [ { "in": "path", "name": "definition_id", "required": true, "schema": { "title": "Definition Id", "type": "string" } }, { "in": "path", "name": "version", "required": true, "schema": { "title": "Version", "type": "integer" } }, { "in": "header", "name": "X-Trace-Id", "required": true, "schema": { "title": "X-Trace-Id", "type": "string" } }, { "in": "header", "name": "X-Timezone", "required": true, "schema": { "title": "X-Timezone", "type": "string" } }, { "in": "header", "name": "X-Contract-Version", "required": true, "schema": { "title": "X-Contract-Version", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReportDocumentResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "Get Final Document" } }, "/reports/definitions/{definition_id}/versions/{version}/document.html": { "get": { "description": "승인 version의 저장 HTML snapshot을 checksum ETag·CSP가 포함된 응답으로 반환한다.\n\nrepository가 definition 소유권과 문서 존재를 검증하며 동적 재렌더링은 수행하지 않는다.", "operationId": "reportGetFinalHtml", "parameters": [ { "in": "path", "name": "definition_id", "required": true, "schema": { "title": "Definition Id", "type": "string" } }, { "in": "path", "name": "version", "required": true, "schema": { "title": "Version", "type": "integer" } }, { "in": "header", "name": "X-Trace-Id", "required": true, "schema": { "title": "X-Trace-Id", "type": "string" } }, { "in": "header", "name": "X-Timezone", "required": true, "schema": { "title": "X-Timezone", "type": "string" } }, { "in": "header", "name": "X-Contract-Version", "required": true, "schema": { "title": "X-Contract-Version", "type": "string" } } ], "responses": { "200": { "content": { "text/html": { "schema": { "type": "string" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "Get Final Html" } }, "/reports/definitions/{definition_id}/versions/{version}/document.pdf": { "get": { "description": "승인 version에 영속된 PDF/A bytes를 checksum ETag와 version 파일명으로 반환한다.\n\n요청 시점에 문서를 다시 만들지 않으며 미존재·비소유 대상은 공통 repository 404로 닫힌다.", "operationId": "reportGetFinalPdf", "parameters": [ { "in": "path", "name": "definition_id", "required": true, "schema": { "title": "Definition Id", "type": "string" } }, { "in": "path", "name": "version", "required": true, "schema": { "title": "Version", "type": "integer" } }, { "in": "header", "name": "X-Trace-Id", "required": true, "schema": { "title": "X-Trace-Id", "type": "string" } }, { "in": "header", "name": "X-Timezone", "required": true, "schema": { "title": "X-Timezone", "type": "string" } }, { "in": "header", "name": "X-Contract-Version", "required": true, "schema": { "title": "X-Contract-Version", "type": "string" } } ], "responses": { "200": { "content": { "application/pdf": { "schema": { "format": "binary", "type": "string" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "Get Final Pdf" } }, "/reports/definitions/{definition_id}/versions/{version}/drafts": { "post": { "description": "소유한 승인 version을 복제해 다음 번호의 편집 가능한 draft를 원자 생성한다.\n\n대상 부재는 404, 비승인 기준본이나 동시 version 충돌은 409로 변환한다.", "operationId": "reportCreateNextDraft", "parameters": [ { "in": "path", "name": "definition_id", "required": true, "schema": { "title": "Definition Id", "type": "string" } }, { "in": "path", "name": "version", "required": true, "schema": { "title": "Version", "type": "integer" } }, { "in": "header", "name": "X-Trace-Id", "required": true, "schema": { "title": "X-Trace-Id", "type": "string" } }, { "in": "header", "name": "X-Timezone", "required": true, "schema": { "title": "X-Timezone", "type": "string" } }, { "in": "header", "name": "X-Contract-Version", "required": true, "schema": { "title": "X-Contract-Version", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReportDefinitionResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "Create Next Draft" } }, "/reports/drafts/from-analysis-artifact": { "post": { "description": "분석 산출물 입력의 소유권과 필드를 검증해 draft 산출물을 생성한다.", "operationId": "reportCreateDraftFromAnalysisArtifact", "parameters": [ { "in": "header", "name": "X-Trace-Id", "required": true, "schema": { "title": "X-Trace-Id", "type": "string" } }, { "in": "header", "name": "X-Timezone", "required": true, "schema": { "title": "X-Timezone", "type": "string" } }, { "in": "header", "name": "X-Contract-Version", "required": true, "schema": { "title": "X-Contract-Version", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateReportFromArtifactRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReportDefinitionResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "Create Draft From Analysis Artifact" } }, "/reports/runs": { "get": { "description": "관리 권한 범위의 report run을 선택한 definition ID로 좁혀 생성 순서대로 반환한다.", "operationId": "reportListRuns", "parameters": [ { "in": "query", "name": "definition_id", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Definition Id" } }, { "in": "header", "name": "X-Trace-Id", "required": true, "schema": { "title": "X-Trace-Id", "type": "string" } }, { "in": "header", "name": "X-Timezone", "required": true, "schema": { "title": "X-Timezone", "type": "string" } }, { "in": "header", "name": "X-Contract-Version", "required": true, "schema": { "title": "X-Contract-Version", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReportRunListResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "List Runs" } }, "/reports/runs/manual": { "post": { "description": "관리자의 definition version·멱등 키를 서버 기준일의 수동 실행 명령으로 등록한다.\n\nclaim 가능한 영속 repository에서는 같은 멱등 키의 중복 실행을 막고 완료 run ID와 상태를\n응답한다. 일반 replay에는 client 기준일 입력을 허용하지 않으며, 입력·미존재·상태 충돌은\nrouter의 422·404·409 계약을 따른다.", "operationId": "reportCreateManualRunCommand", "parameters": [ { "in": "header", "name": "X-Trace-Id", "required": true, "schema": { "title": "X-Trace-Id", "type": "string" } }, { "in": "header", "name": "X-Timezone", "required": true, "schema": { "title": "X-Timezone", "type": "string" } }, { "in": "header", "name": "X-Contract-Version", "required": true, "schema": { "title": "X-Contract-Version", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateManualRunRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ManualRunCommandResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "Create Manual Run Command" } }, "/reports/runs/{run_id}": { "get": { "description": "관리 권한 범위에서 run ID에 해당하는 실행 상태와 block별 evidence를 반환한다.\n\n조회할 수 없는 run은 저장소의 ``KeyError``를 404로 변환해 존재 여부를 숨긴다.", "operationId": "reportGetRun", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "title": "Run Id", "type": "string" } }, { "in": "header", "name": "X-Trace-Id", "required": true, "schema": { "title": "X-Trace-Id", "type": "string" } }, { "in": "header", "name": "X-Timezone", "required": true, "schema": { "title": "X-Timezone", "type": "string" } }, { "in": "header", "name": "X-Contract-Version", "required": true, "schema": { "title": "X-Contract-Version", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReportRunResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "Get Run" } }, "/reports/schedules": { "get": { "description": "관리 권한 범위의 report schedule과 next-run 상태를 생성 순서대로 반환한다.", "operationId": "reportListSchedules", "parameters": [ { "in": "header", "name": "X-Trace-Id", "required": true, "schema": { "title": "X-Trace-Id", "type": "string" } }, { "in": "header", "name": "X-Timezone", "required": true, "schema": { "title": "X-Timezone", "type": "string" } }, { "in": "header", "name": "X-Contract-Version", "required": true, "schema": { "title": "X-Contract-Version", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReportScheduleListResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "List Schedules" }, "post": { "description": "관리자가 지정한 definition version·cadence·timezone·최초 실행 시각을 일정으로 저장한다.\n\nrepository transaction이 대상 version과 schedule ID 고유성을 검증하며 오류는 404 또는\n422로 매핑된다.", "operationId": "reportCreateSchedule", "parameters": [ { "in": "header", "name": "X-Trace-Id", "required": true, "schema": { "title": "X-Trace-Id", "type": "string" } }, { "in": "header", "name": "X-Timezone", "required": true, "schema": { "title": "X-Timezone", "type": "string" } }, { "in": "header", "name": "X-Contract-Version", "required": true, "schema": { "title": "X-Contract-Version", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateReportScheduleRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReportScheduleResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "Create Schedule" } }, "/reports/schedules/{schedule_id}": { "put": { "description": "스케줄 변경을 현재 상태와 충돌 여부를 확인한 뒤 원자적으로 반영한다.", "operationId": "reportUpdateSchedule", "parameters": [ { "in": "path", "name": "schedule_id", "required": true, "schema": { "title": "Schedule Id", "type": "string" } }, { "in": "header", "name": "X-Trace-Id", "required": true, "schema": { "title": "X-Trace-Id", "type": "string" } }, { "in": "header", "name": "X-Timezone", "required": true, "schema": { "title": "X-Timezone", "type": "string" } }, { "in": "header", "name": "X-Contract-Version", "required": true, "schema": { "title": "X-Contract-Version", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateReportScheduleRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReportScheduleResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "Update Schedule" } }, "/reports/schedules/{schedule_id}/run-due": { "post": { "description": "관리자가 지정한 schedule이 현재 DUE일 때만 한 번 실행하고 갱신 상태를 반환한다.\n\n저장소의 next-run claim과 실행 service를 같은 요청에서 사용해 중복 실행을 막으며,\n아직 DUE가 아니면 새 run을 만들지 않고 ``executed=false``로 응답한다.", "operationId": "reportRunDueSchedule", "parameters": [ { "in": "path", "name": "schedule_id", "required": true, "schema": { "title": "Schedule Id", "type": "string" } }, { "in": "header", "name": "X-Trace-Id", "required": true, "schema": { "title": "X-Trace-Id", "type": "string" } }, { "in": "header", "name": "X-Timezone", "required": true, "schema": { "title": "X-Timezone", "type": "string" } }, { "in": "header", "name": "X-Contract-Version", "required": true, "schema": { "title": "X-Contract-Version", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RunDueReportScheduleResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "BearerAuth": [] } ], "summary": "Run Due Schedule" } } } }