{ "components": { "schemas": { "AccessContextResponse": { "properties": { "is_system_admin": { "title": "Is System Admin", "type": "boolean" }, "permissions": { "items": { "type": "string" }, "title": "Permissions", "type": "array" }, "project_id": { "anyOf": [ { "format": "uuid", "type": "string" }, { "type": "null" } ], "title": "Project Id" }, "project_role": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Project Role" }, "system_role": { "title": "System Role", "type": "string" }, "user_id": { "format": "uuid", "title": "User Id", "type": "string" }, "username": { "title": "Username", "type": "string" } }, "required": [ "user_id", "username", "system_role", "is_system_admin", "permissions" ], "title": "AccessContextResponse", "type": "object" }, "ActionDecisionCommand": { "additionalProperties": false, "properties": { "comment": { "anyOf": [ { "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Comment" }, "decision": { "enum": [ "approved", "rejected" ], "title": "Decision", "type": "string" }, "expected_version": { "minimum": 1.0, "title": "Expected Version", "type": "integer" }, "request_id": { "format": "uuid", "title": "Request Id", "type": "string" } }, "required": [ "request_id", "expected_version", "decision" ], "title": "ActionDecisionCommand", "type": "object" }, "ActionExecuteCommand": { "additionalProperties": false, "properties": { "expected_version": { "minimum": 1.0, "title": "Expected Version", "type": "integer" }, "request_id": { "format": "uuid", "title": "Request Id", "type": "string" } }, "required": [ "request_id", "expected_version" ], "title": "ActionExecuteCommand", "type": "object" }, "ActionProposalCommand": { "additionalProperties": false, "properties": { "evidence_refs": { "items": { "minLength": 1, "type": "string" }, "title": "Evidence Refs", "type": "array" }, "kind": { "enum": [ "create_work_order", "issue_command" ], "title": "Kind", "type": "string" }, "node_id": { "anyOf": [ { "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Node Id" }, "payload": { "anyOf": [ { "$ref": "#/components/schemas/CreateWorkOrderPayload" }, { "$ref": "#/components/schemas/IssueCommandPayload" } ], "title": "Payload" }, "reason": { "minLength": 1, "title": "Reason", "type": "string" }, "request_id": { "format": "uuid", "title": "Request Id", "type": "string" } }, "required": [ "request_id", "kind", "reason", "payload" ], "title": "ActionProposalCommand", "type": "object" }, "ActionReceipt": { "additionalProperties": false, "properties": { "adapter": { "minLength": 1, "title": "Adapter", "type": "string" }, "completed_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "Completed At" }, "detail": { "minLength": 1, "title": "Detail", "type": "string" }, "external_status": { "minLength": 1, "title": "External Status", "type": "string" }, "receipt_id": { "minLength": 1, "title": "Receipt Id", "type": "string" }, "submitted_at": { "format": "date-time", "title": "Submitted At", "type": "string" } }, "required": [ "adapter", "receipt_id", "submitted_at", "external_status", "detail" ], "title": "ActionReceipt", "type": "object" }, "ActionReconcileCommand": { "additionalProperties": false, "properties": { "expected_version": { "minimum": 1.0, "title": "Expected Version", "type": "integer" }, "request_id": { "format": "uuid", "title": "Request Id", "type": "string" } }, "required": [ "request_id", "expected_version" ], "title": "ActionReconcileCommand", "type": "object" }, "AdminProjectCreateRequest": { "properties": { "code": { "maxLength": 50, "minLength": 1, "title": "Code", "type": "string" }, "description": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Description" }, "gs_workspace": { "maxLength": 100, "minLength": 1, "title": "Gs Workspace", "type": "string" }, "map_extent": { "anyOf": [ { "type": "object" }, { "type": "null" } ], "title": "Map Extent" }, "name": { "maxLength": 100, "minLength": 1, "title": "Name", "type": "string" }, "status": { "default": "active", "enum": [ "active", "inactive", "archived" ], "title": "Status", "type": "string" } }, "required": [ "name", "code", "gs_workspace" ], "title": "AdminProjectCreateRequest", "type": "object" }, "AdminProjectResponse": { "properties": { "code": { "title": "Code", "type": "string" }, "created_at": { "format": "date-time", "title": "Created At", "type": "string" }, "description": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Description" }, "gs_workspace": { "title": "Gs Workspace", "type": "string" }, "map_extent": { "anyOf": [ { "type": "object" }, { "type": "null" } ], "title": "Map Extent" }, "name": { "title": "Name", "type": "string" }, "project_id": { "format": "uuid", "title": "Project Id", "type": "string" }, "status": { "title": "Status", "type": "string" }, "updated_at": { "format": "date-time", "title": "Updated At", "type": "string" } }, "required": [ "project_id", "name", "code", "gs_workspace", "status", "created_at", "updated_at" ], "title": "AdminProjectResponse", "type": "object" }, "AdminProjectUpdateRequest": { "properties": { "code": { "anyOf": [ { "maxLength": 50, "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Code" }, "description": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Description" }, "gs_workspace": { "anyOf": [ { "maxLength": 100, "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Gs Workspace" }, "map_extent": { "anyOf": [ { "type": "object" }, { "type": "null" } ], "title": "Map Extent" }, "name": { "anyOf": [ { "maxLength": 100, "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Name" }, "status": { "anyOf": [ { "enum": [ "active", "inactive", "archived" ], "type": "string" }, { "type": "null" } ], "title": "Status" } }, "title": "AdminProjectUpdateRequest", "type": "object" }, "AgentArtifactsCommand": { "additionalProperties": false, "properties": { "evidence": { "items": { "$ref": "#/components/schemas/EvidenceInput" }, "maxItems": 100, "title": "Evidence", "type": "array" }, "plan": { "anyOf": [ { "$ref": "#/components/schemas/ExecutionPlanInput" }, { "type": "null" } ] }, "report": { "anyOf": [ { "$ref": "#/components/schemas/InvestigationReportInput" }, { "type": "null" } ] }, "request_id": { "format": "uuid", "title": "Request Id", "type": "string" }, "run_id": { "anyOf": [ { "format": "uuid", "type": "string" }, { "type": "null" } ], "title": "Run Id" }, "source_session_id": { "minLength": 1, "title": "Source Session Id", "type": "string" } }, "required": [ "request_id", "source_session_id" ], "title": "AgentArtifactsCommand", "type": "object" }, "AgentArtifactsResult": { "additionalProperties": false, "properties": { "plan_revision": { "anyOf": [ { "minimum": 1.0, "type": "integer" }, { "type": "null" } ], "title": "Plan Revision" }, "report_revision": { "anyOf": [ { "minimum": 1.0, "type": "integer" }, { "type": "null" } ], "title": "Report Revision" }, "task": { "$ref": "#/components/schemas/OperationalTaskDetail" } }, "required": [ "task", "plan_revision", "report_revision" ], "title": "AgentArtifactsResult", "type": "object" }, "AgentAuthContextResponse": { "properties": { "is_superuser": { "title": "Is Superuser", "type": "boolean" }, "keycloak_sub": { "title": "Keycloak Sub", "type": "string" }, "network": { "title": "Network", "type": "string" }, "permissions": { "items": { "type": "string" }, "title": "Permissions", "type": "array" }, "project_id": { "title": "Project Id", "type": "string" }, "project_role": { "title": "Project Role", "type": "string" }, "role": { "title": "Role", "type": "string" }, "token_expires_at": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Token Expires At" }, "user_id": { "title": "User Id", "type": "string" }, "username": { "title": "Username", "type": "string" } }, "required": [ "user_id", "keycloak_sub", "username", "role", "is_superuser", "project_id", "network", "project_role", "permissions" ], "title": "AgentAuthContextResponse", "type": "object" }, "AgentRunCancelCommand": { "additionalProperties": false, "properties": { "expected_revision": { "minimum": 1.0, "title": "Expected Revision", "type": "integer" }, "reason": { "minLength": 1, "title": "Reason", "type": "string" }, "request_id": { "format": "uuid", "title": "Request Id", "type": "string" } }, "required": [ "request_id", "expected_revision", "reason" ], "title": "AgentRunCancelCommand", "type": "object" }, "AgentRunCommand": { "additionalProperties": false, "properties": { "expected_revision": { "minimum": 1.0, "title": "Expected Revision", "type": "integer" }, "request_id": { "format": "uuid", "title": "Request Id", "type": "string" }, "source_session_id": { "minLength": 1, "title": "Source Session Id", "type": "string" } }, "required": [ "request_id", "expected_revision", "source_session_id" ], "title": "AgentRunCommand", "type": "object" }, "AgentRunDispatchFailureCommand": { "additionalProperties": false, "properties": { "expected_revision": { "minimum": 1.0, "title": "Expected Revision", "type": "integer" }, "failure_code": { "minLength": 1, "title": "Failure Code", "type": "string" }, "failure_detail": { "minLength": 1, "title": "Failure Detail", "type": "string" }, "request_id": { "format": "uuid", "title": "Request Id", "type": "string" }, "retryable": { "default": true, "title": "Retryable", "type": "boolean" } }, "required": [ "request_id", "expected_revision", "failure_code", "failure_detail" ], "title": "AgentRunDispatchFailureCommand", "type": "object" }, "AgentRunFailureCommand": { "additionalProperties": false, "properties": { "expected_revision": { "minimum": 1.0, "title": "Expected Revision", "type": "integer" }, "failure_code": { "minLength": 1, "title": "Failure Code", "type": "string" }, "failure_detail": { "minLength": 1, "title": "Failure Detail", "type": "string" }, "request_id": { "format": "uuid", "title": "Request Id", "type": "string" }, "source_session_id": { "minLength": 1, "title": "Source Session Id", "type": "string" } }, "required": [ "request_id", "expected_revision", "source_session_id", "failure_code", "failure_detail" ], "title": "AgentRunFailureCommand", "type": "object" }, "AgentTaskContext": { "additionalProperties": false, "properties": { "approved_data_scopes": { "items": { "minLength": 1, "type": "string" }, "title": "Approved Data Scopes", "type": "array" }, "task": { "$ref": "#/components/schemas/OperationalTaskDetail" } }, "required": [ "task", "approved_data_scopes" ], "title": "AgentTaskContext", "type": "object" }, "AuditLogResponse": { "description": "审计日志响应", "properties": { "action": { "title": "Action", "type": "string" }, "id": { "format": "uuid", "title": "Id", "type": "string" }, "ip_address": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Ip Address" }, "project_id": { "anyOf": [ { "format": "uuid", "type": "string" }, { "type": "null" } ], "title": "Project Id" }, "request_data": { "anyOf": [ { "type": "object" }, { "type": "null" } ], "title": "Request Data" }, "request_method": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Request Method" }, "request_path": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Request Path" }, "resource_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Resource Id" }, "resource_type": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Resource Type" }, "response_status": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Response Status" }, "timestamp": { "format": "date-time", "title": "Timestamp", "type": "string" }, "user_id": { "anyOf": [ { "format": "uuid", "type": "string" }, { "type": "null" } ], "title": "User Id" } }, "required": [ "id", "user_id", "project_id", "action", "resource_type", "resource_id", "ip_address", "request_method", "request_path", "request_data", "response_status", "timestamp" ], "title": "AuditLogResponse", "type": "object" }, "Body_patch_admin_projects_project_id_model_imports": { "properties": { "file": { "description": "桌面端导出的 INP 模型文件", "format": "binary", "title": "File", "type": "string" } }, "required": [ "file" ], "title": "Body_patch_admin_projects_project_id_model_imports", "type": "object" }, "Body_post_admin_project_provisions": { "properties": { "code": { "maxLength": 50, "minLength": 1, "title": "Code", "type": "string" }, "description": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Description" }, "file": { "description": "EPANET INP 模型文件", "format": "binary", "title": "File", "type": "string" }, "gs_workspace": { "anyOf": [ { "maxLength": 100, "type": "string" }, { "type": "null" } ], "title": "Gs Workspace" }, "map_zoom": { "default": 14, "maximum": 22.0, "minimum": 1.0, "title": "Map Zoom", "type": "integer" }, "name": { "maxLength": 100, "minLength": 1, "title": "Name", "type": "string" } }, "required": [ "name", "code", "file" ], "title": "Body_post_admin_project_provisions", "type": "object" }, "Body_post_admin_projects_project_id_model_imports": { "properties": { "file": { "description": "桌面端导出的 INP 模型文件", "format": "binary", "title": "File", "type": "string" } }, "required": [ "file" ], "title": "Body_post_admin_projects_project_id_model_imports", "type": "object" }, "Body_post_timeseries_realtime_simulation_results": { "properties": { "link_result_list": { "description": "管道模拟结果列表", "items": { "type": "object" }, "title": "Link Result List", "type": "array" }, "node_result_list": { "description": "节点模拟结果列表", "items": { "type": "object" }, "title": "Node Result List", "type": "array" } }, "required": [ "node_result_list", "link_result_list" ], "title": "Body_post_timeseries_realtime_simulation_results", "type": "object" }, "BurstDetectionRequestRest": { "properties": { "data_source": { "default": "monitoring", "description": "数据来源:monitoring(监测)或simulation(模拟)", "title": "Data Source", "type": "string" }, "iforest_params": { "anyOf": [ { "type": "object" }, { "type": "null" } ], "description": "隔离森林算法参数", "title": "Iforest Params" }, "mu": { "default": 100, "description": "异常值检测的参数", "title": "Mu", "type": "integer" }, "observed_pressure_data": { "anyOf": [ { "additionalProperties": { "items": {}, "type": "array" }, "type": "object" }, { "items": { "type": "object" }, "type": "array" }, { "items": { "items": {}, "type": "array" }, "type": "array" }, { "type": "null" } ], "description": "压力观测数据。支持列式字典 {sensor_id: [values,...]}、逐时刻对象数组 [{sensor_id: value,...}, ...]、或二维数组 [[t1_s1, t1_s2], [t2_s1, t2_s2], ...]。", "title": "Observed Pressure Data" }, "points_per_day": { "default": 1440, "description": "每天的数据点数", "title": "Points Per Day", "type": "integer" }, "sampling_interval_minutes": { "anyOf": [ { "maximum": 1440.0, "minimum": 1.0, "type": "integer" }, { "type": "null" } ], "description": "采样间隔(分钟);为空时根据压力 SCADA 传输频率自动推断", "title": "Sampling Interval Minutes" }, "scada_end": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "description": "SCADA数据结束时间", "title": "Scada End" }, "scada_start": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "description": "SCADA数据起始时间", "title": "Scada Start" }, "scheme_name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "方案名称", "title": "Scheme Name" }, "sensor_nodes": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "description": "传感器节点列表", "title": "Sensor Nodes" }, "simulation_run_id": { "anyOf": [ { "format": "uuid", "type": "string" }, { "type": "null" } ], "description": "分析模拟运行 ID", "title": "Simulation Run Id" }, "target_time": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "description": "目标侦测时刻;为空时自动使用最近一个完整的监测时刻", "title": "Target Time" } }, "title": "BurstDetectionRequestRest", "type": "object" }, "BurstLocationRequestRest": { "properties": { "basic_pressure": { "default": 10.0, "description": "基准压力(bar)", "title": "Basic Pressure", "type": "number" }, "burst_flow": { "anyOf": [ { "additionalProperties": { "type": "number" }, "type": "object" }, { "items": { "type": "object" }, "type": "array" }, { "type": "null" } ], "description": "爆管时的流量数据", "title": "Burst Flow" }, "burst_leakage": { "description": "爆管时的漏水量", "title": "Burst Leakage", "type": "number" }, "burst_pressure": { "anyOf": [ { "additionalProperties": { "type": "number" }, "type": "object" }, { "items": { "type": "object" }, "type": "array" }, { "type": "null" } ], "description": "爆管时的压力数据", "title": "Burst Pressure" }, "data_source": { "default": "monitoring", "description": "数据来源:monitoring(监测)或simulation(模拟)", "enum": [ "monitoring", "simulation" ], "title": "Data Source", "type": "string" }, "flow_scada_ids": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "description": "流量SCADA传感器ID列表", "title": "Flow Scada Ids" }, "min_dpressure": { "default": 2.0, "description": "最小压力差(bar)", "title": "Min Dpressure", "type": "number" }, "normal_flow": { "anyOf": [ { "additionalProperties": { "type": "number" }, "type": "object" }, { "items": { "type": "object" }, "type": "array" }, { "type": "null" } ], "description": "正常时的流量数据", "title": "Normal Flow" }, "normal_pressure": { "anyOf": [ { "additionalProperties": { "type": "number" }, "type": "object" }, { "items": { "type": "object" }, "type": "array" }, { "type": "null" } ], "description": "正常时的压力数据", "title": "Normal Pressure" }, "pressure_scada_ids": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "description": "压力SCADA传感器ID列表", "title": "Pressure Scada Ids" }, "scada_burst_end": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "description": "爆管/模拟方案结束时间", "title": "Scada Burst End" }, "scada_burst_start": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "description": "爆管/模拟方案开始时间", "title": "Scada Burst Start" }, "scada_normal_end": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "description": "监测数据正常工况结束时间", "title": "Scada Normal End" }, "scada_normal_start": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "description": "监测数据正常工况开始时间", "title": "Scada Normal Start" }, "scheme_name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "爆管定位运行名称", "title": "Scheme Name" }, "simulation_run_id": { "anyOf": [ { "format": "uuid", "type": "string" }, { "type": "null" } ], "description": "分析模拟运行 ID", "title": "Simulation Run Id" }, "use_scada_flow": { "default": false, "description": "是否使用SCADA流量数据", "title": "Use Scada Flow", "type": "boolean" } }, "required": [ "burst_leakage" ], "title": "BurstLocationRequestRest", "type": "object" }, "CommandTarget": { "additionalProperties": false, "properties": { "id": { "minLength": 1, "title": "Id", "type": "string" }, "kind": { "minLength": 1, "title": "Kind", "type": "string" } }, "required": [ "kind", "id" ], "title": "CommandTarget", "type": "object" }, "CreateWorkOrderPayload": { "additionalProperties": false, "properties": { "assignee": { "anyOf": [ { "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Assignee" }, "description": { "minLength": 1, "title": "Description", "type": "string" }, "location": { "anyOf": [ { "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Location" }, "priority": { "default": "normal", "enum": [ "normal", "urgent" ], "title": "Priority", "type": "string" }, "scheduled_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "Scheduled At" }, "title": { "minLength": 1, "title": "Title", "type": "string" }, "work_order_type": { "minLength": 1, "title": "Work Order Type", "type": "string" } }, "required": [ "title", "description", "work_order_type" ], "title": "CreateWorkOrderPayload", "type": "object" }, "DispatchDueSchedulesCommand": { "additionalProperties": false, "properties": { "limit": { "default": 20, "maximum": 100.0, "minimum": 1.0, "title": "Limit", "type": "integer" } }, "title": "DispatchDueSchedulesCommand", "type": "object" }, "DispatchDueSchedulesResult": { "additionalProperties": false, "properties": { "dispatched_at": { "format": "date-time", "title": "Dispatched At", "type": "string" }, "task_ids": { "items": { "format": "uuid", "type": "string" }, "title": "Task Ids", "type": "array" } }, "required": [ "task_ids", "dispatched_at" ], "title": "DispatchDueSchedulesResult", "type": "object" }, "ElementGisProperties": { "additionalProperties": false, "properties": { "element_id": { "title": "Element Id", "type": "string" }, "element_type": { "enum": [ "pipes", "junctions", "valves", "reservoirs", "pumps", "tanks", "scada" ], "title": "Element Type", "type": "string" }, "groups": { "items": { "$ref": "#/components/schemas/GisAttributeGroup" }, "title": "Groups", "type": "array" } }, "required": [ "element_type", "element_id" ], "title": "ElementGisProperties", "type": "object" }, "ElementHistoryQuery": { "properties": { "elements": { "items": { "$ref": "#/components/schemas/ElementHistoryTarget" }, "maxItems": 200, "minItems": 1, "title": "Elements", "type": "array" }, "end_time": { "format": "date-time", "title": "End Time", "type": "string" }, "mode": { "$ref": "#/components/schemas/HistoryMode", "default": "observed" }, "run_id": { "anyOf": [ { "format": "uuid", "type": "string" }, { "type": "null" } ], "title": "Run Id" }, "start_time": { "format": "date-time", "title": "Start Time", "type": "string" } }, "required": [ "start_time", "end_time", "elements" ], "title": "ElementHistoryQuery", "type": "object" }, "ElementHistoryResponse": { "properties": { "series": { "items": { "$ref": "#/components/schemas/ElementHistorySeries" }, "title": "Series", "type": "array" } }, "required": [ "series" ], "title": "ElementHistoryResponse", "type": "object" }, "ElementHistorySeries": { "properties": { "device_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Device Id" }, "display_unit": { "description": "Recommended UI display unit", "title": "Display Unit", "type": "string" }, "element_id": { "title": "Element Id", "type": "string" }, "element_type": { "$ref": "#/components/schemas/HistoryElementType" }, "metric": { "$ref": "#/components/schemas/HistoryMetric" }, "points": { "items": { "$ref": "#/components/schemas/HistoryPoint" }, "title": "Points", "type": "array" }, "source": { "$ref": "#/components/schemas/HistorySource" }, "source_unit": { "description": "Unit used by the returned point values", "title": "Source Unit", "type": "string" }, "unit_inferred": { "default": false, "title": "Unit Inferred", "type": "boolean" } }, "required": [ "element_id", "element_type", "metric", "source", "source_unit", "display_unit", "points" ], "title": "ElementHistorySeries", "type": "object" }, "ElementHistoryTarget": { "properties": { "device_ids": { "anyOf": [ { "items": { "type": "string" }, "maxItems": 100, "type": "array" }, { "type": "null" } ], "title": "Device Ids" }, "element_id": { "maxLength": 128, "minLength": 1, "title": "Element Id", "type": "string" }, "element_type": { "$ref": "#/components/schemas/HistoryElementType" } }, "required": [ "element_id", "element_type" ], "title": "ElementHistoryTarget", "type": "object" }, "EvidenceInput": { "additionalProperties": false, "properties": { "evidence_id": { "minLength": 1, "title": "Evidence Id", "type": "string" }, "kind": { "enum": [ "system_data", "external_feedback", "human_input", "synthetic" ], "title": "Kind", "type": "string" }, "observed_at": { "format": "date-time", "title": "Observed At", "type": "string" }, "source_label": { "minLength": 1, "title": "Source Label", "type": "string" }, "source_ref": { "anyOf": [ { "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Source Ref" }, "summary": { "minLength": 1, "title": "Summary", "type": "string" } }, "required": [ "evidence_id", "kind", "summary", "source_label", "observed_at" ], "title": "EvidenceInput", "type": "object" }, "EvidenceRecord": { "additionalProperties": false, "properties": { "evidence_id": { "minLength": 1, "title": "Evidence Id", "type": "string" }, "has_snapshot": { "default": false, "title": "Has Snapshot", "type": "boolean" }, "kind": { "enum": [ "system_data", "external_feedback", "human_input", "synthetic" ], "title": "Kind", "type": "string" }, "observed_at": { "format": "date-time", "title": "Observed At", "type": "string" }, "recorded_at": { "format": "date-time", "title": "Recorded At", "type": "string" }, "recorded_by": { "minLength": 1, "title": "Recorded By", "type": "string" }, "source_label": { "minLength": 1, "title": "Source Label", "type": "string" }, "source_ref": { "anyOf": [ { "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Source Ref" }, "summary": { "minLength": 1, "title": "Summary", "type": "string" } }, "required": [ "evidence_id", "kind", "summary", "source_label", "observed_at", "recorded_at", "recorded_by" ], "title": "EvidenceRecord", "type": "object" }, "ExecutionPlanEdge": { "additionalProperties": false, "properties": { "condition": { "anyOf": [ { "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Condition" }, "from": { "minLength": 1, "title": "From", "type": "string" }, "id": { "anyOf": [ { "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Id" }, "to": { "minLength": 1, "title": "To", "type": "string" } }, "required": [ "from", "to" ], "title": "ExecutionPlanEdge", "type": "object" }, "ExecutionPlanInput": { "additionalProperties": false, "properties": { "edges": { "items": { "$ref": "#/components/schemas/ExecutionPlanEdge" }, "maxItems": 300, "title": "Edges", "type": "array" }, "nodes": { "items": { "$ref": "#/components/schemas/ExecutionPlanNode" }, "maxItems": 100, "minItems": 1, "title": "Nodes", "type": "array" }, "reason": { "minLength": 1, "title": "Reason", "type": "string" }, "schema": { "enum": [ "execution-plan@1", "execution-plan@2" ], "title": "Schema", "type": "string" }, "title": { "minLength": 1, "title": "Title", "type": "string" } }, "required": [ "schema", "title", "reason", "nodes" ], "title": "ExecutionPlanInput", "type": "object" }, "ExecutionPlanNode": { "additionalProperties": false, "properties": { "action_refs": { "items": { "format": "uuid", "type": "string" }, "title": "Action Refs", "type": "array" }, "detail": { "minLength": 1, "title": "Detail", "type": "string" }, "evidence_refs": { "items": { "minLength": 1, "type": "string" }, "title": "Evidence Refs", "type": "array" }, "gate_ref": { "anyOf": [ { "format": "uuid", "type": "string" }, { "type": "null" } ], "title": "Gate Ref" }, "id": { "minLength": 1, "title": "Id", "type": "string" }, "kind": { "anyOf": [ { "enum": [ "activity", "decision", "parallel_split", "parallel_join", "gate" ], "type": "string" }, { "type": "null" } ], "title": "Kind" }, "owner": { "enum": [ "agent", "human" ], "title": "Owner", "type": "string" }, "revisits_node_id": { "anyOf": [ { "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Revisits Node Id" }, "selected_edge_id": { "anyOf": [ { "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Selected Edge Id" }, "status": { "enum": [ "pending", "waiting", "running", "completed", "failed", "skipped", "cancelled" ], "title": "Status", "type": "string" }, "title": { "minLength": 1, "title": "Title", "type": "string" } }, "required": [ "id", "title", "owner", "status", "detail" ], "title": "ExecutionPlanNode", "type": "object" }, "ExecutionPlanSnapshot": { "additionalProperties": false, "properties": { "execution_generation": { "anyOf": [ { "minimum": 1.0, "type": "integer" }, { "type": "null" } ], "title": "Execution Generation" }, "plan": { "$ref": "#/components/schemas/ExecutionPlanInput" }, "published_at": { "format": "date-time", "title": "Published At", "type": "string" }, "published_by": { "minLength": 1, "title": "Published By", "type": "string" }, "revision": { "minimum": 1.0, "title": "Revision", "type": "integer" }, "source_session_id": { "minLength": 1, "title": "Source Session Id", "type": "string" } }, "required": [ "revision", "source_session_id", "published_at", "published_by", "plan" ], "title": "ExecutionPlanSnapshot", "type": "object" }, "ExternalFeedbackCommand": { "additionalProperties": false, "properties": { "detail": { "minLength": 1, "title": "Detail", "type": "string" }, "evidence": { "anyOf": [ { "$ref": "#/components/schemas/ExternalFeedbackEvidence" }, { "type": "null" } ] }, "occurred_at": { "format": "date-time", "title": "Occurred At", "type": "string" }, "request_id": { "format": "uuid", "title": "Request Id", "type": "string" }, "source_event_id": { "minLength": 1, "title": "Source Event Id", "type": "string" }, "source_revision": { "minimum": 1.0, "title": "Source Revision", "type": "integer" }, "status": { "enum": [ "scheduled", "assigned", "in_progress", "awaiting_feedback", "completed", "cancelled", "failed" ], "title": "Status", "type": "string" }, "work_order_snapshot": { "anyOf": [ { "$ref": "#/components/schemas/ExternalWorkOrderSnapshot" }, { "type": "null" } ] } }, "required": [ "request_id", "source_event_id", "source_revision", "status", "occurred_at", "detail" ], "title": "ExternalFeedbackCommand", "type": "object" }, "ExternalFeedbackEvidence": { "additionalProperties": false, "properties": { "evidence_id": { "minLength": 1, "title": "Evidence Id", "type": "string" }, "kind": { "default": "external_feedback", "enum": [ "external_feedback", "synthetic" ], "title": "Kind", "type": "string" }, "observed_at": { "format": "date-time", "title": "Observed At", "type": "string" }, "source_label": { "minLength": 1, "title": "Source Label", "type": "string" }, "source_ref": { "anyOf": [ { "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Source Ref" }, "summary": { "minLength": 1, "title": "Summary", "type": "string" } }, "required": [ "evidence_id", "summary", "source_label", "observed_at" ], "title": "ExternalFeedbackEvidence", "type": "object" }, "ExternalFeedbackResult": { "additionalProperties": false, "properties": { "accepted_at": { "format": "date-time", "title": "Accepted At", "type": "string" }, "source_event_id": { "minLength": 1, "title": "Source Event Id", "type": "string" }, "source_revision": { "minimum": 1.0, "title": "Source Revision", "type": "integer" }, "task": { "$ref": "#/components/schemas/OperationalTaskDetail" } }, "required": [ "task", "source_event_id", "source_revision", "accepted_at" ], "title": "ExternalFeedbackResult", "type": "object" }, "ExternalSourceWithdrawalCommand": { "additionalProperties": false, "properties": { "request_id": { "format": "uuid", "title": "Request Id", "type": "string" }, "source_event_id": { "minLength": 1, "title": "Source Event Id", "type": "string" } }, "required": [ "request_id", "source_event_id" ], "title": "ExternalSourceWithdrawalCommand", "type": "object" }, "ExternalWorkOrderSnapshot": { "additionalProperties": false, "properties": { "activity": { "items": { "$ref": "#/components/schemas/WorkOrderActivity" }, "title": "Activity", "type": "array" }, "assignee": { "anyOf": [ { "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Assignee" }, "feedback_requirements": { "items": { "minLength": 1, "type": "string" }, "title": "Feedback Requirements", "type": "array" }, "location": { "anyOf": [ { "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Location" }, "origin": { "const": "synthetic", "title": "Origin", "type": "string" }, "priority": { "enum": [ "low", "normal", "high", "urgent" ], "title": "Priority", "type": "string" }, "revision": { "minimum": 1.0, "title": "Revision", "type": "integer" }, "scenario_code": { "anyOf": [ { "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Scenario Code" }, "scheduled_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "Scheduled At" }, "status": { "enum": [ "draft", "open", "in_progress", "awaiting_reply", "completed", "cancelled" ], "title": "Status", "type": "string" }, "summary": { "minLength": 1, "title": "Summary", "type": "string" }, "title": { "minLength": 1, "title": "Title", "type": "string" }, "updated_at": { "format": "date-time", "title": "Updated At", "type": "string" }, "work_order_id": { "format": "uuid", "title": "Work Order Id", "type": "string" }, "work_order_type": { "default": "general", "enum": [ "general", "water_quality_complaint", "burst_report" ], "title": "Work Order Type", "type": "string" } }, "required": [ "work_order_id", "revision", "title", "summary", "status", "priority", "origin", "updated_at" ], "title": "ExternalWorkOrderSnapshot", "type": "object" }, "GisAttributeGroup": { "additionalProperties": false, "properties": { "attributes": { "title": "Attributes", "type": "object" }, "dataset_key": { "title": "Dataset Key", "type": "string" }, "dataset_title": { "title": "Dataset Title", "type": "string" }, "layer_key": { "title": "Layer Key", "type": "string" }, "layer_name": { "title": "Layer Name", "type": "string" }, "match_distance_m": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Match Distance M" }, "match_method": { "enum": [ "node_pair", "geometry", "source" ], "title": "Match Method", "type": "string" }, "source_date": { "format": "date", "title": "Source Date", "type": "string" }, "source_fid": { "title": "Source Fid", "type": "integer" } }, "required": [ "dataset_key", "dataset_title", "source_date", "layer_key", "layer_name", "source_fid", "match_method" ], "title": "GisAttributeGroup", "type": "object" }, "HistoryElementType": { "enum": [ "pipe", "junction" ], "title": "HistoryElementType", "type": "string" }, "HistoryMetric": { "enum": [ "flow", "pressure" ], "title": "HistoryMetric", "type": "string" }, "HistoryMode": { "enum": [ "observed", "realtime_comparison", "analysis_comparison" ], "title": "HistoryMode", "type": "string" }, "HistoryPoint": { "properties": { "time": { "format": "date-time", "title": "Time", "type": "string" }, "value": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Value" } }, "required": [ "time", "value" ], "title": "HistoryPoint", "type": "object" }, "HistorySource": { "enum": [ "scada_raw", "scada_cleaned", "realtime_simulation", "analysis_simulation" ], "title": "HistorySource", "type": "string" }, "HumanApprovalAction": { "additionalProperties": false, "properties": { "action_id": { "format": "uuid", "title": "Action Id", "type": "string" }, "approval_status": { "enum": [ "pending", "approved", "rejected" ], "title": "Approval Status", "type": "string" }, "decided_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "Decided At" }, "decided_by": { "anyOf": [ { "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Decided By" }, "decision_comment": { "anyOf": [ { "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Decision Comment" }, "edited_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "Edited At" }, "edited_by": { "anyOf": [ { "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Edited By" }, "evidence_refs": { "items": { "minLength": 1, "type": "string" }, "title": "Evidence Refs", "type": "array" }, "executed_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "Executed At" }, "executed_by": { "anyOf": [ { "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Executed By" }, "execution_detail": { "anyOf": [ { "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Execution Detail" }, "execution_request_id": { "anyOf": [ { "format": "uuid", "type": "string" }, { "type": "null" } ], "title": "Execution Request Id" }, "execution_status": { "enum": [ "not_submitted", "submitted", "succeeded", "failed", "unsupported", "unknown" ], "title": "Execution Status", "type": "string" }, "kind": { "enum": [ "create_work_order", "issue_command" ], "title": "Kind", "type": "string" }, "node_id": { "anyOf": [ { "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Node Id" }, "payload": { "anyOf": [ { "$ref": "#/components/schemas/CreateWorkOrderPayload" }, { "$ref": "#/components/schemas/IssueCommandPayload" } ], "title": "Payload" }, "proposed_at": { "format": "date-time", "title": "Proposed At", "type": "string" }, "proposed_by": { "minLength": 1, "title": "Proposed By", "type": "string" }, "reason": { "minLength": 1, "title": "Reason", "type": "string" }, "receipt": { "anyOf": [ { "$ref": "#/components/schemas/ActionReceipt" }, { "type": "null" } ] }, "required_approval_permission": { "minLength": 1, "title": "Required Approval Permission", "type": "string" }, "required_execution_permission": { "minLength": 1, "title": "Required Execution Permission", "type": "string" }, "task_id": { "format": "uuid", "title": "Task Id", "type": "string" }, "version": { "minimum": 1.0, "title": "Version", "type": "integer" } }, "required": [ "action_id", "task_id", "version", "kind", "reason", "payload", "evidence_refs", "required_approval_permission", "required_execution_permission", "approval_status", "execution_status", "proposed_by", "proposed_at" ], "title": "HumanApprovalAction", "type": "object" }, "HumanEvidenceCommand": { "additionalProperties": false, "properties": { "evidence": { "$ref": "#/components/schemas/EvidenceInput" }, "request_id": { "format": "uuid", "title": "Request Id", "type": "string" } }, "required": [ "request_id", "evidence" ], "title": "HumanEvidenceCommand", "type": "object" }, "InvestigationReportInput": { "additionalProperties": false, "properties": { "conclusion_boundary": { "minLength": 1, "title": "Conclusion Boundary", "type": "string" }, "current_conclusion": { "minLength": 1, "title": "Current Conclusion", "type": "string" }, "evidence_refs": { "items": { "minLength": 1, "type": "string" }, "title": "Evidence Refs", "type": "array" }, "pending_items": { "items": { "minLength": 1, "type": "string" }, "title": "Pending Items", "type": "array" }, "recommendations": { "items": { "minLength": 1, "type": "string" }, "title": "Recommendations", "type": "array" }, "title": { "minLength": 1, "title": "Title", "type": "string" } }, "required": [ "title", "current_conclusion", "conclusion_boundary" ], "title": "InvestigationReportInput", "type": "object" }, "InvestigationReportRevision": { "additionalProperties": false, "properties": { "execution_generation": { "anyOf": [ { "minimum": 1.0, "type": "integer" }, { "type": "null" } ], "title": "Execution Generation" }, "published_at": { "format": "date-time", "title": "Published At", "type": "string" }, "published_by": { "minLength": 1, "title": "Published By", "type": "string" }, "report": { "$ref": "#/components/schemas/InvestigationReportInput" }, "revision": { "minimum": 1.0, "title": "Revision", "type": "integer" }, "source_session_id": { "minLength": 1, "title": "Source Session Id", "type": "string" } }, "required": [ "revision", "source_session_id", "published_at", "published_by", "report" ], "title": "InvestigationReportRevision", "type": "object" }, "IssueCommandPayload": { "additionalProperties": false, "properties": { "command_type": { "minLength": 1, "title": "Command Type", "type": "string" }, "expires_at": { "format": "date-time", "title": "Expires At", "type": "string" }, "impact_summary": { "minLength": 1, "title": "Impact Summary", "type": "string" }, "parameters": { "additionalProperties": { "$ref": "#/components/schemas/JsonValue" }, "title": "Parameters", "type": "object" }, "preconditions": { "items": { "minLength": 1, "type": "string" }, "minItems": 1, "title": "Preconditions", "type": "array" }, "target": { "$ref": "#/components/schemas/CommandTarget" } }, "required": [ "command_type", "target", "parameters", "impact_summary", "preconditions", "expires_at" ], "title": "IssueCommandPayload", "type": "object" }, "JsonValue": {}, "LeakageIdentifyRequestRest": { "properties": { "dma_count": { "anyOf": [ { "minimum": 1.0, "type": "integer" }, { "type": "null" } ], "description": "DMA区域数量", "title": "Dma Count" }, "duration": { "default": 24, "description": "持续时间(小时)", "exclusiveMinimum": 0.0, "maximum": 168.0, "title": "Duration", "type": "number" }, "max_gen": { "default": 100, "description": "最大代数", "maximum": 1000.0, "minimum": 1.0, "title": "Max Gen", "type": "integer" }, "n_workers": { "default": 4, "description": "工作进程数", "maximum": 4.0, "minimum": 1.0, "title": "N Workers", "type": "integer" }, "observed_pressure_data": { "anyOf": [ { "additionalProperties": { "items": {}, "type": "array" }, "type": "object" }, { "items": { "type": "object" }, "type": "array" }, { "type": "null" } ], "description": "观测的压力数据;文件路径不属于公共 API 输入", "title": "Observed Pressure Data" }, "output_flow_unit": { "default": "m3/s", "description": "输出流量单位", "title": "Output Flow Unit", "type": "string" }, "pop_size": { "default": 50, "description": "种群大小", "maximum": 1000.0, "minimum": 2.0, "title": "Pop Size", "type": "integer" }, "q_sum": { "default": 0.2, "description": "总流量(m3/s)", "minimum": 0.0, "title": "Q Sum", "type": "number" }, "q_sum_unit": { "default": "m3/s", "description": "流量单位", "title": "Q Sum Unit", "type": "string" }, "scada_end": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "description": "SCADA数据结束时间", "title": "Scada End" }, "scada_start": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "description": "SCADA数据起始时间", "title": "Scada Start" }, "scheme_name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "方案名称", "title": "Scheme Name" }, "sensor_nodes": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "description": "传感器节点列表", "title": "Sensor Nodes" }, "start_time": { "default": 0, "description": "起始时间(小时)", "minimum": 0.0, "title": "Start Time", "type": "number" }, "timestep": { "default": 5, "description": "时间步长(分钟)", "exclusiveMinimum": 0.0, "maximum": 1440.0, "title": "Timestep", "type": "number" } }, "title": "LeakageIdentifyRequestRest", "type": "object" }, "MetadataUserResponse": { "properties": { "created_at": { "format": "date-time", "title": "Created At", "type": "string" }, "email": { "title": "Email", "type": "string" }, "id": { "format": "uuid", "title": "Id", "type": "string" }, "is_active": { "title": "Is Active", "type": "boolean" }, "is_superuser": { "title": "Is Superuser", "type": "boolean" }, "keycloak_id": { "format": "uuid", "title": "Keycloak Id", "type": "string" }, "last_login_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "Last Login At" }, "role": { "title": "Role", "type": "string" }, "updated_at": { "format": "date-time", "title": "Updated At", "type": "string" }, "username": { "title": "Username", "type": "string" } }, "required": [ "id", "keycloak_id", "username", "email", "role", "is_active", "is_superuser", "created_at", "updated_at" ], "title": "MetadataUserResponse", "type": "object" }, "MetadataUserSyncRequest": { "properties": { "email": { "maxLength": 100, "minLength": 1, "title": "Email", "type": "string" }, "is_active": { "default": true, "title": "Is Active", "type": "boolean" }, "keycloak_id": { "format": "uuid", "title": "Keycloak Id", "type": "string" }, "role": { "default": "user", "enum": [ "admin", "service", "user" ], "title": "Role", "type": "string" }, "username": { "maxLength": 50, "minLength": 1, "title": "Username", "type": "string" } }, "required": [ "keycloak_id", "username", "email" ], "title": "MetadataUserSyncRequest", "type": "object" }, "MetadataUserSyncResult": { "properties": { "error": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Error" }, "keycloak_id": { "format": "uuid", "title": "Keycloak Id", "type": "string" }, "success": { "title": "Success", "type": "boolean" }, "user": { "anyOf": [ { "$ref": "#/components/schemas/MetadataUserResponse" }, { "type": "null" } ] } }, "required": [ "keycloak_id", "success" ], "title": "MetadataUserSyncResult", "type": "object" }, "MetadataUserUpdateRequest": { "properties": { "is_active": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Is Active" }, "role": { "anyOf": [ { "enum": [ "admin", "service", "user" ], "type": "string" }, { "type": "null" } ], "title": "Role" } }, "title": "MetadataUserUpdateRequest", "type": "object" }, "MetadataUsersBatchSyncRequest": { "properties": { "users": { "items": { "$ref": "#/components/schemas/MetadataUserSyncRequest" }, "maxItems": 500, "minItems": 1, "title": "Users", "type": "array" } }, "required": [ "users" ], "title": "MetadataUsersBatchSyncRequest", "type": "object" }, "NotificationAcknowledgeCommand": { "additionalProperties": false, "properties": { "expected_version": { "minimum": 1.0, "title": "Expected Version", "type": "integer" }, "request_id": { "format": "uuid", "title": "Request Id", "type": "string" } }, "required": [ "request_id", "expected_version" ], "title": "NotificationAcknowledgeCommand", "type": "object" }, "OperationalTaskCreate": { "additionalProperties": false, "properties": { "agent_session_id": { "anyOf": [ { "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Agent Session Id" }, "priority": { "default": "normal", "enum": [ "normal", "urgent" ], "title": "Priority", "type": "string" }, "request_id": { "format": "uuid", "title": "Request Id", "type": "string" }, "scheduled_for": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "Scheduled For" }, "source": { "$ref": "#/components/schemas/TaskSource" }, "summary": { "minLength": 1, "title": "Summary", "type": "string" }, "task_type": { "enum": [ "scheduled_flow", "external_work_order", "event_investigation" ], "title": "Task Type", "type": "string" }, "title": { "minLength": 1, "title": "Title", "type": "string" }, "trigger": { "$ref": "#/components/schemas/TaskTrigger" }, "workflow": { "minLength": 1, "title": "Workflow", "type": "string" } }, "required": [ "request_id", "task_type", "workflow", "title", "summary", "source", "trigger" ], "title": "OperationalTaskCreate", "type": "object" }, "OperationalTaskDetail": { "additionalProperties": false, "properties": { "access_requests": { "items": { "$ref": "#/components/schemas/TaskAccessRequest" }, "title": "Access Requests", "type": "array" }, "actions": { "items": { "$ref": "#/components/schemas/HumanApprovalAction" }, "title": "Actions", "type": "array" }, "active_run": { "anyOf": [ { "$ref": "#/components/schemas/OperationalTaskRun" }, { "type": "null" } ] }, "agent_lease_expires_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "Agent Lease Expires At" }, "agent_session_id": { "anyOf": [ { "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Agent Session Id" }, "created_at": { "format": "date-time", "title": "Created At", "type": "string" }, "current_plan_revision": { "anyOf": [ { "minimum": 1.0, "type": "integer" }, { "type": "null" } ], "title": "Current Plan Revision" }, "current_report_revision": { "anyOf": [ { "minimum": 1.0, "type": "integer" }, { "type": "null" } ], "title": "Current Report Revision" }, "evidence": { "items": { "$ref": "#/components/schemas/EvidenceRecord" }, "title": "Evidence", "type": "array" }, "execution_generation": { "minimum": 1.0, "title": "Execution Generation", "type": "integer" }, "execution_request_id": { "format": "uuid", "title": "Execution Request Id", "type": "string" }, "latest_plan": { "anyOf": [ { "$ref": "#/components/schemas/ExecutionPlanSnapshot" }, { "type": "null" } ] }, "latest_report": { "anyOf": [ { "$ref": "#/components/schemas/InvestigationReportRevision" }, { "type": "null" } ] }, "lifecycle_status": { "default": "open", "enum": [ "open", "waiting_human", "completed", "failed", "cancelled" ], "title": "Lifecycle Status", "type": "string" }, "permissions": { "$ref": "#/components/schemas/OperationalTaskPermissions" }, "priority": { "enum": [ "normal", "urgent" ], "title": "Priority", "type": "string" }, "project_id": { "format": "uuid", "title": "Project Id", "type": "string" }, "revision": { "minimum": 1.0, "title": "Revision", "type": "integer" }, "scheduled_for": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "Scheduled For" }, "source": { "$ref": "#/components/schemas/TaskSource" }, "status": { "enum": [ "queued", "running", "waiting_human", "completed", "failed", "cancelled" ], "title": "Status", "type": "string" }, "summary": { "minLength": 1, "title": "Summary", "type": "string" }, "task_id": { "format": "uuid", "title": "Task Id", "type": "string" }, "task_type": { "enum": [ "scheduled_flow", "external_work_order", "event_investigation" ], "title": "Task Type", "type": "string" }, "title": { "minLength": 1, "title": "Title", "type": "string" }, "trigger": { "$ref": "#/components/schemas/TaskTrigger" }, "updated_at": { "format": "date-time", "title": "Updated At", "type": "string" }, "work_order_snapshot": { "anyOf": [ { "$ref": "#/components/schemas/ExternalWorkOrderSnapshot" }, { "type": "null" } ] }, "workflow": { "minLength": 1, "title": "Workflow", "type": "string" } }, "required": [ "project_id", "task_id", "task_type", "workflow", "status", "priority", "revision", "execution_generation", "execution_request_id", "title", "summary", "source", "trigger", "scheduled_for", "agent_session_id", "agent_lease_expires_at", "current_plan_revision", "current_report_revision", "created_at", "updated_at", "latest_plan", "latest_report", "evidence", "actions", "permissions" ], "title": "OperationalTaskDetail", "type": "object" }, "OperationalTaskNotification": { "additionalProperties": false, "properties": { "created_at": { "format": "date-time", "title": "Created At", "type": "string" }, "description": { "minLength": 1, "title": "Description", "type": "string" }, "kind": { "enum": [ "task_created", "action_pending", "report_updated", "task_completed", "task_failed", "run_delivery_degraded", "access_approval_pending", "action_approval_pending", "human_input_required", "external_coordination_failed" ], "title": "Kind", "type": "string" }, "lifecycle_status": { "default": "active", "enum": [ "active", "resolved" ], "title": "Lifecycle Status", "type": "string" }, "notification_id": { "format": "uuid", "title": "Notification Id", "type": "string" }, "read_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "Read At" }, "read_by": { "anyOf": [ { "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Read By" }, "required_permission": { "anyOf": [ { "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Required Permission" }, "resolution_reason": { "anyOf": [ { "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Resolution Reason" }, "resolved_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "Resolved At" }, "status": { "enum": [ "unread", "read" ], "title": "Status", "type": "string" }, "subject_id": { "anyOf": [ { "format": "uuid", "type": "string" }, { "type": "null" } ], "title": "Subject Id" }, "subject_type": { "default": "task", "enum": [ "task", "run", "access_request", "action" ], "title": "Subject Type", "type": "string" }, "task_id": { "format": "uuid", "title": "Task Id", "type": "string" }, "title": { "minLength": 1, "title": "Title", "type": "string" }, "version": { "minimum": 1.0, "title": "Version", "type": "integer" } }, "required": [ "notification_id", "task_id", "kind", "title", "description", "status", "version", "created_at" ], "title": "OperationalTaskNotification", "type": "object" }, "OperationalTaskNotificationPage": { "additionalProperties": false, "properties": { "items": { "items": { "$ref": "#/components/schemas/OperationalTaskNotification" }, "title": "Items", "type": "array" }, "limit": { "minimum": 1.0, "title": "Limit", "type": "integer" }, "next_offset": { "anyOf": [ { "minimum": 0.0, "type": "integer" }, { "type": "null" } ], "title": "Next Offset" }, "offset": { "minimum": 0.0, "title": "Offset", "type": "integer" } }, "required": [ "items", "limit", "offset" ], "title": "OperationalTaskNotificationPage", "type": "object" }, "OperationalTaskPage": { "additionalProperties": false, "properties": { "items": { "items": { "$ref": "#/components/schemas/OperationalTaskSummary" }, "title": "Items", "type": "array" }, "limit": { "minimum": 1.0, "title": "Limit", "type": "integer" }, "next_offset": { "anyOf": [ { "minimum": 0.0, "type": "integer" }, { "type": "null" } ], "title": "Next Offset" }, "offset": { "minimum": 0.0, "title": "Offset", "type": "integer" } }, "required": [ "items", "limit", "offset" ], "title": "OperationalTaskPage", "type": "object" }, "OperationalTaskPermissions": { "additionalProperties": false, "properties": { "can_decide_access": { "default": false, "title": "Can Decide Access", "type": "boolean" }, "can_decide_commands": { "title": "Can Decide Commands", "type": "boolean" }, "can_decide_work_orders": { "title": "Can Decide Work Orders", "type": "boolean" }, "can_execute_commands": { "title": "Can Execute Commands", "type": "boolean" }, "can_execute_work_orders": { "title": "Can Execute Work Orders", "type": "boolean" }, "can_propose_actions": { "title": "Can Propose Actions", "type": "boolean" }, "can_publish_artifacts": { "title": "Can Publish Artifacts", "type": "boolean" }, "can_sync_external_feedback": { "title": "Can Sync External Feedback", "type": "boolean" } }, "required": [ "can_publish_artifacts", "can_propose_actions", "can_sync_external_feedback", "can_decide_work_orders", "can_execute_work_orders", "can_decide_commands", "can_execute_commands" ], "title": "OperationalTaskPermissions", "type": "object" }, "OperationalTaskRetryCommand": { "additionalProperties": false, "properties": { "reason": { "minLength": 1, "title": "Reason", "type": "string" }, "request_id": { "format": "uuid", "title": "Request Id", "type": "string" } }, "required": [ "request_id", "reason" ], "title": "OperationalTaskRetryCommand", "type": "object" }, "OperationalTaskRun": { "additionalProperties": false, "properties": { "agent_session_id": { "anyOf": [ { "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Agent Session Id" }, "created_at": { "format": "date-time", "title": "Created At", "type": "string" }, "dispatch_attempts": { "default": 0, "minimum": 0.0, "title": "Dispatch Attempts", "type": "integer" }, "execution_request_id": { "format": "uuid", "title": "Execution Request Id", "type": "string" }, "failure_code": { "anyOf": [ { "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Failure Code" }, "failure_detail": { "anyOf": [ { "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Failure Detail" }, "finished_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "Finished At" }, "generation": { "minimum": 1.0, "title": "Generation", "type": "integer" }, "heartbeat_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "Heartbeat At" }, "lease_expires_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "Lease Expires At" }, "next_dispatch_at": { "format": "date-time", "title": "Next Dispatch At", "type": "string" }, "revision": { "minimum": 1.0, "title": "Revision", "type": "integer" }, "run_id": { "format": "uuid", "title": "Run Id", "type": "string" }, "started_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "Started At" }, "status": { "enum": [ "queued", "claimed", "running", "succeeded", "failed", "timed_out", "cancelled" ], "title": "Status", "type": "string" }, "task_id": { "format": "uuid", "title": "Task Id", "type": "string" }, "updated_at": { "format": "date-time", "title": "Updated At", "type": "string" } }, "required": [ "run_id", "task_id", "generation", "execution_request_id", "status", "revision", "next_dispatch_at", "created_at", "updated_at" ], "title": "OperationalTaskRun", "type": "object" }, "OperationalTaskRunPage": { "additionalProperties": false, "properties": { "items": { "items": { "$ref": "#/components/schemas/OperationalTaskRun" }, "title": "Items", "type": "array" }, "next_cursor": { "anyOf": [ { "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Next Cursor" } }, "required": [ "items" ], "title": "OperationalTaskRunPage", "type": "object" }, "OperationalTaskSchedule": { "additionalProperties": false, "properties": { "created_at": { "format": "date-time", "title": "Created At", "type": "string" }, "enabled": { "title": "Enabled", "type": "boolean" }, "interval_seconds": { "maximum": 31536000.0, "minimum": 60.0, "title": "Interval Seconds", "type": "integer" }, "next_run_at": { "format": "date-time", "title": "Next Run At", "type": "string" }, "priority": { "enum": [ "normal", "urgent" ], "title": "Priority", "type": "string" }, "schedule_id": { "format": "uuid", "title": "Schedule Id", "type": "string" }, "schedule_key": { "minLength": 1, "title": "Schedule Key", "type": "string" }, "summary": { "minLength": 1, "title": "Summary", "type": "string" }, "title": { "minLength": 1, "title": "Title", "type": "string" }, "updated_at": { "format": "date-time", "title": "Updated At", "type": "string" }, "version": { "minimum": 1.0, "title": "Version", "type": "integer" } }, "required": [ "schedule_id", "schedule_key", "title", "summary", "interval_seconds", "next_run_at", "priority", "enabled", "version", "created_at", "updated_at" ], "title": "OperationalTaskSchedule", "type": "object" }, "OperationalTaskScheduleCreate": { "additionalProperties": false, "properties": { "interval_seconds": { "maximum": 31536000.0, "minimum": 60.0, "title": "Interval Seconds", "type": "integer" }, "next_run_at": { "format": "date-time", "title": "Next Run At", "type": "string" }, "priority": { "default": "normal", "enum": [ "normal", "urgent" ], "title": "Priority", "type": "string" }, "request_id": { "format": "uuid", "title": "Request Id", "type": "string" }, "schedule_key": { "minLength": 1, "title": "Schedule Key", "type": "string" }, "summary": { "minLength": 1, "title": "Summary", "type": "string" }, "title": { "minLength": 1, "title": "Title", "type": "string" } }, "required": [ "request_id", "schedule_key", "title", "summary", "interval_seconds", "next_run_at" ], "title": "OperationalTaskScheduleCreate", "type": "object" }, "OperationalTaskSchedulePage": { "additionalProperties": false, "properties": { "items": { "items": { "$ref": "#/components/schemas/OperationalTaskSchedule" }, "title": "Items", "type": "array" } }, "required": [ "items" ], "title": "OperationalTaskSchedulePage", "type": "object" }, "OperationalTaskScheduleUpdate": { "additionalProperties": false, "properties": { "enabled": { "title": "Enabled", "type": "boolean" }, "expected_version": { "minimum": 1.0, "title": "Expected Version", "type": "integer" }, "request_id": { "format": "uuid", "title": "Request Id", "type": "string" } }, "required": [ "request_id", "expected_version", "enabled" ], "title": "OperationalTaskScheduleUpdate", "type": "object" }, "OperationalTaskSummary": { "additionalProperties": false, "properties": { "active_run": { "anyOf": [ { "$ref": "#/components/schemas/OperationalTaskRun" }, { "type": "null" } ] }, "agent_lease_expires_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "Agent Lease Expires At" }, "agent_session_id": { "anyOf": [ { "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Agent Session Id" }, "created_at": { "format": "date-time", "title": "Created At", "type": "string" }, "current_plan_revision": { "anyOf": [ { "minimum": 1.0, "type": "integer" }, { "type": "null" } ], "title": "Current Plan Revision" }, "current_report_revision": { "anyOf": [ { "minimum": 1.0, "type": "integer" }, { "type": "null" } ], "title": "Current Report Revision" }, "execution_generation": { "minimum": 1.0, "title": "Execution Generation", "type": "integer" }, "execution_request_id": { "format": "uuid", "title": "Execution Request Id", "type": "string" }, "lifecycle_status": { "default": "open", "enum": [ "open", "waiting_human", "completed", "failed", "cancelled" ], "title": "Lifecycle Status", "type": "string" }, "priority": { "enum": [ "normal", "urgent" ], "title": "Priority", "type": "string" }, "project_id": { "format": "uuid", "title": "Project Id", "type": "string" }, "revision": { "minimum": 1.0, "title": "Revision", "type": "integer" }, "scheduled_for": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "Scheduled For" }, "source": { "$ref": "#/components/schemas/TaskSource" }, "status": { "enum": [ "queued", "running", "waiting_human", "completed", "failed", "cancelled" ], "title": "Status", "type": "string" }, "summary": { "minLength": 1, "title": "Summary", "type": "string" }, "task_id": { "format": "uuid", "title": "Task Id", "type": "string" }, "task_type": { "enum": [ "scheduled_flow", "external_work_order", "event_investigation" ], "title": "Task Type", "type": "string" }, "title": { "minLength": 1, "title": "Title", "type": "string" }, "trigger": { "$ref": "#/components/schemas/TaskTrigger" }, "updated_at": { "format": "date-time", "title": "Updated At", "type": "string" }, "workflow": { "minLength": 1, "title": "Workflow", "type": "string" } }, "required": [ "project_id", "task_id", "task_type", "workflow", "status", "priority", "revision", "execution_generation", "execution_request_id", "title", "summary", "source", "trigger", "scheduled_for", "agent_session_id", "agent_lease_expires_at", "current_plan_revision", "current_report_revision", "created_at", "updated_at" ], "title": "OperationalTaskSummary", "type": "object" }, "Page_AdminProjectResponse_": { "properties": { "items": { "items": { "$ref": "#/components/schemas/AdminProjectResponse" }, "title": "Items", "type": "array" }, "limit": { "title": "Limit", "type": "integer" }, "offset": { "title": "Offset", "type": "integer" }, "total": { "title": "Total", "type": "integer" } }, "required": [ "items", "total", "limit", "offset" ], "title": "Page[AdminProjectResponse]", "type": "object" }, "Page_AuditLogResponse_": { "properties": { "items": { "items": { "$ref": "#/components/schemas/AuditLogResponse" }, "title": "Items", "type": "array" }, "limit": { "title": "Limit", "type": "integer" }, "offset": { "title": "Offset", "type": "integer" }, "total": { "title": "Total", "type": "integer" } }, "required": [ "items", "total", "limit", "offset" ], "title": "Page[AuditLogResponse]", "type": "object" }, "Page_MetadataUserResponse_": { "properties": { "items": { "items": { "$ref": "#/components/schemas/MetadataUserResponse" }, "title": "Items", "type": "array" }, "limit": { "title": "Limit", "type": "integer" }, "offset": { "title": "Offset", "type": "integer" }, "total": { "title": "Total", "type": "integer" } }, "required": [ "items", "total", "limit", "offset" ], "title": "Page[MetadataUserResponse]", "type": "object" }, "Page_MetadataUserSyncResult_": { "properties": { "items": { "items": { "$ref": "#/components/schemas/MetadataUserSyncResult" }, "title": "Items", "type": "array" }, "limit": { "title": "Limit", "type": "integer" }, "offset": { "title": "Offset", "type": "integer" }, "total": { "title": "Total", "type": "integer" } }, "required": [ "items", "total", "limit", "offset" ], "title": "Page[MetadataUserSyncResult]", "type": "object" }, "Page_ProjectDatabaseResponse_": { "properties": { "items": { "items": { "$ref": "#/components/schemas/ProjectDatabaseResponse" }, "title": "Items", "type": "array" }, "limit": { "title": "Limit", "type": "integer" }, "offset": { "title": "Offset", "type": "integer" }, "total": { "title": "Total", "type": "integer" } }, "required": [ "items", "total", "limit", "offset" ], "title": "Page[ProjectDatabaseResponse]", "type": "object" }, "Page_ProjectMemberResponse_": { "properties": { "items": { "items": { "$ref": "#/components/schemas/ProjectMemberResponse" }, "title": "Items", "type": "array" }, "limit": { "title": "Limit", "type": "integer" }, "offset": { "title": "Offset", "type": "integer" }, "total": { "title": "Total", "type": "integer" } }, "required": [ "items", "total", "limit", "offset" ], "title": "Page[ProjectMemberResponse]", "type": "object" }, "Page_ProjectSummaryResponse_": { "properties": { "items": { "items": { "$ref": "#/components/schemas/ProjectSummaryResponse" }, "title": "Items", "type": "array" }, "limit": { "title": "Limit", "type": "integer" }, "offset": { "title": "Offset", "type": "integer" }, "total": { "title": "Total", "type": "integer" } }, "required": [ "items", "total", "limit", "offset" ], "title": "Page[ProjectSummaryResponse]", "type": "object" }, "Page_ScadaDeviceResponse_": { "properties": { "items": { "items": { "$ref": "#/components/schemas/ScadaDeviceResponse" }, "title": "Items", "type": "array" }, "limit": { "title": "Limit", "type": "integer" }, "offset": { "title": "Offset", "type": "integer" }, "total": { "title": "Total", "type": "integer" } }, "required": [ "items", "total", "limit", "offset" ], "title": "Page[ScadaDeviceResponse]", "type": "object" }, "Page_SensorPlacementSchemeResponse_": { "properties": { "items": { "items": { "$ref": "#/components/schemas/SensorPlacementSchemeResponse" }, "title": "Items", "type": "array" }, "limit": { "title": "Limit", "type": "integer" }, "offset": { "title": "Offset", "type": "integer" }, "total": { "title": "Total", "type": "integer" } }, "required": [ "items", "total", "limit", "offset" ], "title": "Page[SensorPlacementSchemeResponse]", "type": "object" }, "Page_dict_str__Any__": { "properties": { "items": { "items": { "type": "object" }, "title": "Items", "type": "array" }, "limit": { "title": "Limit", "type": "integer" }, "offset": { "title": "Offset", "type": "integer" }, "total": { "title": "Total", "type": "integer" } }, "required": [ "items", "total", "limit", "offset" ], "title": "Page[dict[str, Any]]", "type": "object" }, "Page_str_": { "properties": { "items": { "items": { "type": "string" }, "title": "Items", "type": "array" }, "limit": { "title": "Limit", "type": "integer" }, "offset": { "title": "Offset", "type": "integer" }, "total": { "title": "Total", "type": "integer" } }, "required": [ "items", "total", "limit", "offset" ], "title": "Page[str]", "type": "object" }, "PressureRegulationRest": { "properties": { "duration": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": 900, "description": "持续时间 (秒)", "title": "Duration" }, "pump_control": { "description": "泵控制策略", "title": "Pump Control", "type": "object" }, "scheme_name": { "description": "方案名称", "minLength": 1, "title": "Scheme Name", "type": "string" }, "start_time": { "description": "开始时间", "title": "Start Time", "type": "string" }, "tank_init_level": { "anyOf": [ { "type": "object" }, { "type": "null" } ], "description": "水箱初始水位", "title": "Tank Init Level" } }, "required": [ "start_time", "pump_control", "scheme_name" ], "title": "PressureRegulationRest", "type": "object" }, "ProblemDetails": { "description": "RFC 9457 compatible error response used by the REST contract.", "properties": { "code": { "title": "Code", "type": "string" }, "detail": { "title": "Detail", "type": "string" }, "errors": { "items": { "type": "object" }, "title": "Errors", "type": "array" }, "instance": { "title": "Instance", "type": "string" }, "recovery_action": { "default": "none", "title": "Recovery Action", "type": "string" }, "related_refs": { "items": {}, "title": "Related Refs", "type": "array" }, "retry_after_seconds": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Retry After Seconds" }, "retryable": { "default": false, "title": "Retryable", "type": "boolean" }, "status": { "title": "Status", "type": "integer" }, "title": { "title": "Title", "type": "string" }, "trace_id": { "title": "Trace Id", "type": "string" }, "type": { "title": "Type", "type": "string" } }, "required": [ "type", "title", "status", "detail", "instance", "code", "trace_id" ], "title": "ProblemDetails", "type": "object" }, "ProjectDatabaseHealthRequest": { "properties": { "dsn": { "anyOf": [ { "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Dsn" } }, "title": "ProjectDatabaseHealthRequest", "type": "object" }, "ProjectDatabaseHealthResponse": { "properties": { "db_role": { "title": "Db Role", "type": "string" }, "db_type": { "title": "Db Type", "type": "string" }, "detail": { "title": "Detail", "type": "string" }, "ok": { "title": "Ok", "type": "boolean" }, "project_id": { "format": "uuid", "title": "Project Id", "type": "string" } }, "required": [ "project_id", "db_role", "db_type", "ok", "detail" ], "title": "ProjectDatabaseHealthResponse", "type": "object" }, "ProjectDatabaseResponse": { "properties": { "db_role": { "title": "Db Role", "type": "string" }, "db_type": { "title": "Db Type", "type": "string" }, "has_dsn": { "title": "Has Dsn", "type": "boolean" }, "id": { "format": "uuid", "title": "Id", "type": "string" }, "pool_max_size": { "title": "Pool Max Size", "type": "integer" }, "pool_min_size": { "title": "Pool Min Size", "type": "integer" }, "project_id": { "format": "uuid", "title": "Project Id", "type": "string" } }, "required": [ "id", "project_id", "db_role", "db_type", "pool_min_size", "pool_max_size", "has_dsn" ], "title": "ProjectDatabaseResponse", "type": "object" }, "ProjectDatabaseUpsertRequest": { "properties": { "db_role": { "enum": [ "biz_data", "iot_data" ], "title": "Db Role", "type": "string" }, "dsn": { "anyOf": [ { "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Dsn" }, "pool_max_size": { "default": 10, "minimum": 1.0, "title": "Pool Max Size", "type": "integer" }, "pool_min_size": { "default": 2, "minimum": 1.0, "title": "Pool Min Size", "type": "integer" } }, "required": [ "db_role" ], "title": "ProjectDatabaseUpsertRequest", "type": "object" }, "ProjectMemberCreateRequest": { "properties": { "project_role": { "default": "viewer", "enum": [ "member", "viewer" ], "title": "Project Role", "type": "string" }, "user_id": { "format": "uuid", "title": "User Id", "type": "string" } }, "required": [ "user_id" ], "title": "ProjectMemberCreateRequest", "type": "object" }, "ProjectMemberResponse": { "properties": { "email": { "title": "Email", "type": "string" }, "id": { "format": "uuid", "title": "Id", "type": "string" }, "is_active": { "title": "Is Active", "type": "boolean" }, "project_id": { "format": "uuid", "title": "Project Id", "type": "string" }, "project_role": { "title": "Project Role", "type": "string" }, "user_id": { "format": "uuid", "title": "User Id", "type": "string" }, "username": { "title": "Username", "type": "string" } }, "required": [ "id", "user_id", "project_id", "project_role", "username", "email", "is_active" ], "title": "ProjectMemberResponse", "type": "object" }, "ProjectMemberUpdateRequest": { "properties": { "project_role": { "enum": [ "member", "viewer" ], "title": "Project Role", "type": "string" } }, "required": [ "project_role" ], "title": "ProjectMemberUpdateRequest", "type": "object" }, "ProjectMetaResponse": { "properties": { "code": { "title": "Code", "type": "string" }, "description": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Description" }, "gs_workspace": { "title": "Gs Workspace", "type": "string" }, "map_extent": { "anyOf": [ { "type": "object" }, { "type": "null" } ], "title": "Map Extent" }, "name": { "title": "Name", "type": "string" }, "project_id": { "format": "uuid", "title": "Project Id", "type": "string" }, "project_role": { "title": "Project Role", "type": "string" }, "status": { "title": "Status", "type": "string" } }, "required": [ "project_id", "name", "code", "gs_workspace", "status", "project_role" ], "title": "ProjectMetaResponse", "type": "object" }, "ProjectProvisionResponse": { "properties": { "business_database": { "title": "Business Database", "type": "string" }, "geoserver_layers": { "items": { "type": "string" }, "title": "Geoserver Layers", "type": "array" }, "geoserver_workspace": { "title": "Geoserver Workspace", "type": "string" }, "model_template_database": { "title": "Model Template Database", "type": "string" }, "project": { "$ref": "#/components/schemas/AdminProjectResponse" }, "timescale_database": { "title": "Timescale Database", "type": "string" } }, "required": [ "project", "business_database", "model_template_database", "timescale_database", "geoserver_workspace", "geoserver_layers" ], "title": "ProjectProvisionResponse", "type": "object" }, "ProjectSummaryResponse": { "properties": { "code": { "title": "Code", "type": "string" }, "description": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Description" }, "gs_workspace": { "title": "Gs Workspace", "type": "string" }, "name": { "title": "Name", "type": "string" }, "project_id": { "format": "uuid", "title": "Project Id", "type": "string" }, "project_role": { "title": "Project Role", "type": "string" }, "status": { "title": "Status", "type": "string" } }, "required": [ "project_id", "name", "code", "gs_workspace", "status", "project_role" ], "title": "ProjectSummaryResponse", "type": "object" }, "RealtimeLinkBatchItem": { "properties": { "flow": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Flow" }, "friction": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Friction" }, "headloss": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Headloss" }, "id": { "title": "Id", "type": "string" }, "quality": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Quality" }, "reaction": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Reaction" }, "setting": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Setting" }, "status": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Status" }, "time": { "format": "date-time", "title": "Time", "type": "string" }, "velocity": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Velocity" } }, "required": [ "time", "id" ], "title": "RealtimeLinkBatchItem", "type": "object" }, "RealtimeNodeBatchItem": { "properties": { "actual_demand": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Actual Demand" }, "id": { "title": "Id", "type": "string" }, "pressure": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Pressure" }, "quality": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Quality" }, "time": { "format": "date-time", "title": "Time", "type": "string" }, "total_head": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Total Head" } }, "required": [ "time", "id" ], "title": "RealtimeNodeBatchItem", "type": "object" }, "RecoverExpiredLeasesCommand": { "additionalProperties": false, "properties": { "limit": { "default": 20, "maximum": 100.0, "minimum": 1.0, "title": "Limit", "type": "integer" } }, "title": "RecoverExpiredLeasesCommand", "type": "object" }, "RecoverExpiredLeasesResult": { "additionalProperties": false, "properties": { "recovered_at": { "format": "date-time", "title": "Recovered At", "type": "string" }, "task_ids": { "items": { "format": "uuid", "type": "string" }, "title": "Task Ids", "type": "array" } }, "required": [ "task_ids", "recovered_at" ], "title": "RecoverExpiredLeasesResult", "type": "object" }, "RunSimulationManuallyByDateRest": { "properties": { "duration": { "description": "持续时间 (分钟)", "exclusiveMinimum": 0.0, "title": "Duration", "type": "integer" }, "start_time": { "description": "开始时间 (ISO 8601 / RFC3339,必须显式带时区)", "title": "Start Time", "type": "string" } }, "required": [ "start_time", "duration" ], "title": "RunSimulationManuallyByDateRest", "type": "object" }, "ScadaDeviceResponse": { "description": "Project SCADA metadata keyed by the canonical device identifier.", "properties": { "api_query_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Api Query Id" }, "device_id": { "title": "Device Id", "type": "string" }, "device_type": { "title": "Device Type", "type": "string" }, "latitude": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Latitude" }, "link_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Link Id" }, "longitude": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Longitude" }, "measurement_unit": { "title": "Measurement Unit", "type": "string" }, "node_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Node Id" }, "reliability": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Reliability" }, "transmission_frequency": { "title": "Transmission Frequency", "type": "string" }, "transmission_mode": { "title": "Transmission Mode", "type": "string" }, "x": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "X" }, "y": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Y" } }, "required": [ "device_id", "device_type", "measurement_unit", "transmission_mode", "transmission_frequency" ], "title": "ScadaDeviceResponse", "type": "object" }, "ScadaReadingBatchItem": { "properties": { "cleaned_value": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Cleaned Value" }, "device_id": { "minLength": 1, "title": "Device Id", "type": "string" }, "monitored_value": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Monitored Value" }, "time": { "format": "date-time", "title": "Time", "type": "string" } }, "required": [ "time", "device_id" ], "title": "ScadaReadingBatchItem", "type": "object" }, "SensorPlacementExportRequest": { "properties": { "adjustment_status": { "additionalProperties": { "enum": [ "current", "original", "added", "replaced" ], "type": "string" }, "maxProperties": 200, "title": "Adjustment Status", "type": "object" }, "sensor_locations": { "items": { "type": "string" }, "maxItems": 200, "minItems": 1, "title": "Sensor Locations", "type": "array" } }, "required": [ "sensor_locations" ], "title": "SensorPlacementExportRequest", "type": "object" }, "SensorPlacementOptimizeRequestRest": { "properties": { "method": { "enum": [ "sensitivity", "kmeans" ], "title": "Method", "type": "string" }, "min_diameter": { "default": 0, "minimum": 0.0, "title": "Min Diameter", "type": "integer" }, "run_name": { "maxLength": 64, "minLength": 1, "title": "Run Name", "type": "string" }, "sensor_count": { "exclusiveMinimum": 0.0, "maximum": 200.0, "title": "Sensor Count", "type": "integer" }, "sensor_type": { "enum": [ "pressure", "water_quality" ], "title": "Sensor Type", "type": "string" } }, "required": [ "run_name", "sensor_type", "method", "sensor_count" ], "title": "SensorPlacementOptimizeRequestRest", "type": "object" }, "SensorPlacementSchemeResponse": { "properties": { "can_edit": { "default": false, "title": "Can Edit", "type": "boolean" }, "created_at": { "format": "date-time", "title": "Created At", "type": "string" }, "created_by": { "title": "Created By", "type": "string" }, "method": { "anyOf": [ { "enum": [ "sensitivity", "kmeans" ], "type": "string" }, { "type": "null" } ], "title": "Method" }, "min_diameter": { "title": "Min Diameter", "type": "integer" }, "name": { "title": "Name", "type": "string" }, "run_id": { "format": "uuid", "title": "Run Id", "type": "string" }, "sensor_count": { "title": "Sensor Count", "type": "integer" }, "sensor_locations": { "items": { "type": "string" }, "title": "Sensor Locations", "type": "array" }, "sensor_points": { "items": { "$ref": "#/components/schemas/SensorPointResponse" }, "title": "Sensor Points", "type": "array" }, "sensor_type": { "default": "pressure", "enum": [ "pressure", "water_quality" ], "title": "Sensor Type", "type": "string" }, "status": { "title": "Status", "type": "string" } }, "required": [ "run_id", "name", "sensor_count", "min_diameter", "created_by", "created_at", "status", "sensor_locations", "sensor_points" ], "title": "SensorPlacementSchemeResponse", "type": "object" }, "SensorPlacementUpdateRequest": { "properties": { "expected_sensor_locations": { "items": { "type": "string" }, "maxItems": 200, "minItems": 1, "title": "Expected Sensor Locations", "type": "array" }, "sensor_locations": { "items": { "type": "string" }, "maxItems": 200, "minItems": 1, "title": "Sensor Locations", "type": "array" } }, "required": [ "expected_sensor_locations", "sensor_locations" ], "title": "SensorPlacementUpdateRequest", "type": "object" }, "SensorPointResponse": { "properties": { "elevation": { "title": "Elevation", "type": "number" }, "latitude": { "title": "Latitude", "type": "number" }, "longitude": { "title": "Longitude", "type": "number" }, "map_x": { "title": "Map X", "type": "number" }, "map_y": { "title": "Map Y", "type": "number" }, "max_pipe_diameter": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "description": "节点关联管道的最大管径,单位:毫米", "title": "Max Pipe Diameter" }, "node_id": { "title": "Node Id", "type": "string" }, "project_x": { "title": "Project X", "type": "number" }, "project_y": { "title": "Project Y", "type": "number" } }, "required": [ "node_id", "max_pipe_diameter", "project_x", "project_y", "map_x", "map_y", "longitude", "latitude", "elevation" ], "title": "SensorPointResponse", "type": "object" }, "SessionAuditEventRequest": { "properties": { "event": { "enum": [ "login", "logout" ], "title": "Event", "type": "string" } }, "required": [ "event" ], "title": "SessionAuditEventRequest", "type": "object" }, "SourceGisFeatureProperties": { "additionalProperties": false, "properties": { "group": { "$ref": "#/components/schemas/GisAttributeGroup" }, "layer_key": { "title": "Layer Key", "type": "string" }, "source_fid": { "title": "Source Fid", "type": "integer" } }, "required": [ "layer_key", "source_fid", "group" ], "title": "SourceGisFeatureProperties", "type": "object" }, "TaskAccessRequest": { "additionalProperties": false, "properties": { "access_request_id": { "format": "uuid", "title": "Access Request Id", "type": "string" }, "approved_scopes": { "items": { "enum": [ "workbench_runtime", "scada_devices", "scada_readings", "peripheral_points", "peripheral_work_orders", "peripheral_observations", "peripheral_test_data" ], "type": "string" }, "title": "Approved Scopes", "type": "array" }, "comment": { "anyOf": [ { "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Comment" }, "decided_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "Decided At" }, "decided_by": { "anyOf": [ { "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Decided By" }, "node_id": { "minLength": 1, "title": "Node Id", "type": "string" }, "reason": { "minLength": 1, "title": "Reason", "type": "string" }, "requested_at": { "format": "date-time", "title": "Requested At", "type": "string" }, "requested_by": { "minLength": 1, "title": "Requested By", "type": "string" }, "scopes": { "items": { "enum": [ "workbench_runtime", "scada_devices", "scada_readings", "peripheral_points", "peripheral_work_orders", "peripheral_observations", "peripheral_test_data" ], "type": "string" }, "title": "Scopes", "type": "array" }, "status": { "enum": [ "pending", "approved", "rejected" ], "title": "Status", "type": "string" }, "task_id": { "format": "uuid", "title": "Task Id", "type": "string" }, "version": { "minimum": 1.0, "title": "Version", "type": "integer" } }, "required": [ "access_request_id", "task_id", "node_id", "scopes", "reason", "status", "approved_scopes", "version", "requested_by", "requested_at" ], "title": "TaskAccessRequest", "type": "object" }, "TaskAccessRequestCreate": { "additionalProperties": false, "properties": { "node_id": { "minLength": 1, "title": "Node Id", "type": "string" }, "reason": { "minLength": 1, "title": "Reason", "type": "string" }, "request_id": { "format": "uuid", "title": "Request Id", "type": "string" }, "scopes": { "items": { "enum": [ "workbench_runtime", "scada_devices", "scada_readings", "peripheral_points", "peripheral_work_orders", "peripheral_observations", "peripheral_test_data" ], "type": "string" }, "maxItems": 7, "minItems": 1, "title": "Scopes", "type": "array" }, "source_session_id": { "minLength": 1, "title": "Source Session Id", "type": "string" } }, "required": [ "request_id", "source_session_id", "node_id", "scopes", "reason" ], "title": "TaskAccessRequestCreate", "type": "object" }, "TaskAccessRequestDecision": { "additionalProperties": false, "properties": { "approved_scopes": { "items": { "enum": [ "workbench_runtime", "scada_devices", "scada_readings", "peripheral_points", "peripheral_work_orders", "peripheral_observations", "peripheral_test_data" ], "type": "string" }, "title": "Approved Scopes", "type": "array" }, "comment": { "anyOf": [ { "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Comment" }, "decision": { "enum": [ "approved", "rejected" ], "title": "Decision", "type": "string" }, "expected_version": { "minimum": 1.0, "title": "Expected Version", "type": "integer" }, "request_id": { "format": "uuid", "title": "Request Id", "type": "string" } }, "required": [ "request_id", "expected_version", "decision" ], "title": "TaskAccessRequestDecision", "type": "object" }, "TaskAlertCommand": { "additionalProperties": false, "properties": { "alert_id": { "minLength": 1, "title": "Alert Id", "type": "string" }, "condition_id": { "anyOf": [ { "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Condition Id" }, "description": { "minLength": 1, "title": "Description", "type": "string" }, "event_id": { "format": "uuid", "title": "Event Id", "type": "string" }, "event_type": { "enum": [ "raised", "acknowledged", "resolved" ], "title": "Event Type", "type": "string" }, "occurred_at": { "format": "date-time", "title": "Occurred At", "type": "string" }, "severity": { "enum": [ "warning", "critical" ], "title": "Severity", "type": "string" }, "source": { "$ref": "#/components/schemas/WorkbenchAlertSource" }, "title": { "minLength": 1, "title": "Title", "type": "string" } }, "required": [ "event_id", "alert_id", "event_type", "occurred_at", "condition_id", "source", "title", "description", "severity" ], "title": "TaskAlertCommand", "type": "object" }, "TaskAlertState": { "additionalProperties": false, "properties": { "alert_id": { "minLength": 1, "title": "Alert Id", "type": "string" }, "condition_id": { "anyOf": [ { "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Condition Id" }, "description": { "minLength": 1, "title": "Description", "type": "string" }, "occurred_at": { "format": "date-time", "title": "Occurred At", "type": "string" }, "producer_id": { "minLength": 1, "title": "Producer Id", "type": "string" }, "revision": { "minimum": 1.0, "title": "Revision", "type": "integer" }, "severity": { "enum": [ "warning", "critical" ], "title": "Severity", "type": "string" }, "source": { "$ref": "#/components/schemas/WorkbenchAlertSource" }, "status": { "enum": [ "active", "acknowledged", "resolved" ], "title": "Status", "type": "string" }, "title": { "minLength": 1, "title": "Title", "type": "string" }, "updated_at": { "format": "date-time", "title": "Updated At", "type": "string" } }, "required": [ "alert_id", "revision", "producer_id", "condition_id", "source", "title", "description", "occurred_at", "severity", "status", "updated_at" ], "title": "TaskAlertState", "type": "object" }, "TaskDataQuery": { "additionalProperties": false, "properties": { "device_ids": { "items": { "minLength": 1, "type": "string" }, "maxItems": 20, "title": "Device Ids", "type": "array" }, "end": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "End" }, "point_id": { "anyOf": [ { "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Point Id" }, "source": { "enum": [ "workbench_runtime", "scada_devices", "scada_readings", "peripheral_points", "peripheral_work_orders", "peripheral_observations", "peripheral_test_data" ], "title": "Source", "type": "string" }, "start": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "Start" } }, "required": [ "source" ], "title": "TaskDataQuery", "type": "object" }, "TaskDataQueryResult": { "additionalProperties": false, "properties": { "evidence": { "$ref": "#/components/schemas/EvidenceRecord" }, "snapshot": { "$ref": "#/components/schemas/TaskDataSnapshot" } }, "required": [ "evidence", "snapshot" ], "title": "TaskDataQueryResult", "type": "object" }, "TaskDataSnapshot": { "additionalProperties": false, "properties": { "data": { "$ref": "#/components/schemas/JsonValue" }, "origin": { "enum": [ "system_data", "synthetic" ], "title": "Origin", "type": "string" }, "queried_at": { "format": "date-time", "title": "Queried At", "type": "string" }, "source": { "enum": [ "workbench_runtime", "scada_devices", "scada_readings", "peripheral_points", "peripheral_work_orders", "peripheral_observations", "peripheral_test_data" ], "title": "Source", "type": "string" }, "source_ref": { "minLength": 1, "title": "Source Ref", "type": "string" }, "truncated": { "title": "Truncated", "type": "boolean" } }, "required": [ "source", "source_ref", "queried_at", "origin", "data", "truncated" ], "title": "TaskDataSnapshot", "type": "object" }, "TaskSource": { "additionalProperties": false, "properties": { "deleted_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "Deleted At" }, "event_kind": { "anyOf": [ { "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Event Kind" }, "external_id": { "anyOf": [ { "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "External Id" }, "external_revision": { "anyOf": [ { "minimum": 1.0, "type": "integer" }, { "type": "null" } ], "title": "External Revision" }, "kind": { "enum": [ "schedule", "external_system", "operator", "agent" ], "title": "Kind", "type": "string" } }, "required": [ "kind" ], "title": "TaskSource", "type": "object" }, "TaskTrigger": { "additionalProperties": false, "properties": { "detail": { "minLength": 1, "title": "Detail", "type": "string" }, "kind": { "enum": [ "schedule", "external_sync", "event", "manual" ], "title": "Kind", "type": "string" }, "occurred_at": { "format": "date-time", "title": "Occurred At", "type": "string" } }, "required": [ "kind", "occurred_at", "detail" ], "title": "TaskTrigger", "type": "object" }, "TiandituGeocodeRequest": { "properties": { "keyword": { "description": "地理编码地址关键字", "minLength": 1, "title": "Keyword", "type": "string" } }, "required": [ "keyword" ], "title": "TiandituGeocodeRequest", "type": "object" }, "WebSearchRequest": { "properties": { "count": { "default": 10, "description": "返回结果数量", "maximum": 50.0, "minimum": 1.0, "title": "Count", "type": "integer" }, "exclude": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "description": "排除搜索域名", "title": "Exclude" }, "freshness": { "anyOf": [ { "enum": [ "noLimit", "oneDay", "oneWeek", "oneMonth", "oneYear" ], "type": "string" }, { "type": "string" } ], "default": "noLimit", "description": "时间范围:noLimit、oneDay、oneWeek、oneMonth、oneYear 或日期范围", "title": "Freshness" }, "include": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "description": "限定搜索域名", "title": "Include" }, "query": { "description": "搜索关键词", "minLength": 1, "title": "Query", "type": "string" }, "summary": { "default": true, "description": "是否返回网页摘要", "title": "Summary", "type": "boolean" } }, "required": [ "query" ], "title": "WebSearchRequest", "type": "object" }, "WorkOrderActivity": { "additionalProperties": false, "properties": { "actor": { "minLength": 1, "title": "Actor", "type": "string" }, "detail": { "minLength": 1, "title": "Detail", "type": "string" }, "kind": { "enum": [ "created", "updated", "feedback" ], "title": "Kind", "type": "string" }, "occurred_at": { "format": "date-time", "title": "Occurred At", "type": "string" }, "sequence": { "minimum": 1.0, "title": "Sequence", "type": "integer" }, "title": { "minLength": 1, "title": "Title", "type": "string" } }, "required": [ "sequence", "occurred_at", "actor", "kind", "title", "detail" ], "title": "WorkOrderActivity", "type": "object" }, "WorkOrderConfirmDispatchCommand": { "additionalProperties": false, "properties": { "expected_version": { "minimum": 1.0, "title": "Expected Version", "type": "integer" }, "request_id": { "format": "uuid", "title": "Request Id", "type": "string" } }, "required": [ "request_id", "expected_version" ], "title": "WorkOrderConfirmDispatchCommand", "type": "object" }, "WorkOrderDraftUpdateCommand": { "additionalProperties": false, "properties": { "expected_version": { "minimum": 1.0, "title": "Expected Version", "type": "integer" }, "payload": { "$ref": "#/components/schemas/CreateWorkOrderPayload" }, "request_id": { "format": "uuid", "title": "Request Id", "type": "string" } }, "required": [ "request_id", "expected_version", "payload" ], "title": "WorkOrderDraftUpdateCommand", "type": "object" }, "WorkbenchAlertSource": { "additionalProperties": false, "properties": { "run_id": { "minLength": 1, "title": "Run Id", "type": "string" }, "task_id": { "minLength": 1, "title": "Task Id", "type": "string" }, "task_type": { "enum": [ "scheduled_task", "analysis_task", "other_task" ], "title": "Task Type", "type": "string" } }, "required": [ "task_type", "task_id", "run_id" ], "title": "WorkbenchAlertSource", "type": "object" }, "WorkbenchAnalysisHistoryItem": { "additionalProperties": false, "properties": { "created_at": { "format": "date-time", "title": "Created At", "type": "string" }, "created_by": { "minLength": 1, "title": "Created By", "type": "string" }, "has_results": { "title": "Has Results", "type": "boolean" }, "name": { "minLength": 1, "title": "Name", "type": "string" }, "run_id": { "minLength": 1, "title": "Run Id", "type": "string" }, "run_type": { "minLength": 1, "title": "Run Type", "type": "string" }, "run_type_label": { "minLength": 1, "title": "Run Type Label", "type": "string" }, "started_at": { "format": "date-time", "title": "Started At", "type": "string" }, "status": { "minLength": 1, "title": "Status", "type": "string" }, "status_label": { "minLength": 1, "title": "Status Label", "type": "string" } }, "required": [ "run_id", "name", "run_type", "run_type_label", "status", "status_label", "created_by", "created_at", "started_at", "has_results" ], "title": "WorkbenchAnalysisHistoryItem", "type": "object" }, "WorkbenchAnalysisHistoryPage": { "additionalProperties": false, "properties": { "items": { "items": { "$ref": "#/components/schemas/WorkbenchAnalysisHistoryItem" }, "title": "Items", "type": "array" }, "limit": { "minimum": 1.0, "title": "Limit", "type": "integer" }, "next_offset": { "anyOf": [ { "minimum": 0.0, "type": "integer" }, { "type": "null" } ], "title": "Next Offset" }, "offset": { "minimum": 0.0, "title": "Offset", "type": "integer" } }, "required": [ "items", "limit", "offset", "next_offset" ], "title": "WorkbenchAnalysisHistoryPage", "type": "object" }, "WorkbenchRuntimeAlert": { "additionalProperties": false, "properties": { "condition_id": { "anyOf": [ { "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Condition Id" }, "description": { "minLength": 1, "title": "Description", "type": "string" }, "id": { "minLength": 1, "title": "Id", "type": "string" }, "occurred_at": { "format": "date-time", "title": "Occurred At", "type": "string" }, "severity": { "enum": [ "warning", "critical" ], "title": "Severity", "type": "string" }, "source": { "$ref": "#/components/schemas/WorkbenchAlertSource" }, "title": { "minLength": 1, "title": "Title", "type": "string" } }, "required": [ "id", "condition_id", "source", "title", "description", "occurred_at", "severity" ], "title": "WorkbenchRuntimeAlert", "type": "object" }, "WorkbenchRuntimeAnalysisFact": { "additionalProperties": false, "properties": { "label": { "minLength": 1, "title": "Label", "type": "string" }, "value": { "minLength": 1, "title": "Value", "type": "string" } }, "required": [ "label", "value" ], "title": "WorkbenchRuntimeAnalysisFact", "type": "object" }, "WorkbenchRuntimeAnalysisResult": { "additionalProperties": false, "properties": { "created_at": { "format": "date-time", "title": "Created At", "type": "string" }, "facts": { "items": { "$ref": "#/components/schemas/WorkbenchRuntimeAnalysisFact" }, "title": "Facts", "type": "array" }, "result_type": { "minLength": 1, "title": "Result Type", "type": "string" } }, "required": [ "result_type", "created_at", "facts" ], "title": "WorkbenchRuntimeAnalysisResult", "type": "object" }, "WorkbenchRuntimeCondition": { "additionalProperties": false, "properties": { "detail": { "minLength": 1, "title": "Detail", "type": "string" }, "evidence": { "items": { "minLength": 1, "type": "string" }, "title": "Evidence", "type": "array" }, "id": { "minLength": 1, "title": "Id", "type": "string" }, "model_name": { "const": "TJWater scheduler", "title": "Model Name", "type": "string" }, "recommendation": { "anyOf": [ { "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Recommendation" }, "risk_level": { "enum": [ "normal", "attention", "critical" ], "title": "Risk Level", "type": "string" }, "scheduled_at": { "format": "date-time", "title": "Scheduled At", "type": "string" }, "session_id": { "minLength": 1, "title": "Session Id", "type": "string" }, "status": { "enum": [ "pending", "running", "completed", "warning", "error" ], "title": "Status", "type": "string" }, "summary": { "minLength": 1, "title": "Summary", "type": "string" }, "task_id": { "const": "backend-schedule", "title": "Task Id", "type": "string" }, "title": { "minLength": 1, "title": "Title", "type": "string" }, "updated_at": { "format": "date-time", "title": "Updated At", "type": "string" } }, "required": [ "id", "task_id", "session_id", "title", "summary", "status", "risk_level", "scheduled_at", "updated_at", "detail", "recommendation", "evidence", "model_name" ], "title": "WorkbenchRuntimeCondition", "type": "object" }, "WorkbenchRuntimeLatestAnalysis": { "additionalProperties": false, "properties": { "created_at": { "format": "date-time", "title": "Created At", "type": "string" }, "created_by": { "minLength": 1, "title": "Created By", "type": "string" }, "map_payload": { "anyOf": [ { "additionalProperties": { "$ref": "#/components/schemas/JsonValue" }, "type": "object" }, { "type": "null" } ], "title": "Map Payload" }, "name": { "minLength": 1, "title": "Name", "type": "string" }, "results": { "items": { "$ref": "#/components/schemas/WorkbenchRuntimeAnalysisResult" }, "title": "Results", "type": "array" }, "run_id": { "minLength": 1, "title": "Run Id", "type": "string" }, "run_type": { "minLength": 1, "title": "Run Type", "type": "string" }, "run_type_label": { "minLength": 1, "title": "Run Type Label", "type": "string" }, "started_at": { "format": "date-time", "title": "Started At", "type": "string" }, "status": { "minLength": 1, "title": "Status", "type": "string" }, "status_label": { "minLength": 1, "title": "Status Label", "type": "string" } }, "required": [ "run_id", "name", "run_type", "run_type_label", "status", "status_label", "created_by", "created_at", "started_at", "results", "map_payload" ], "title": "WorkbenchRuntimeLatestAnalysis", "type": "object" }, "WorkbenchRuntimeScenario": { "additionalProperties": false, "properties": { "created_at": { "format": "date-time", "title": "Created At", "type": "string" }, "description": { "minLength": 1, "title": "Description", "type": "string" }, "id": { "minLength": 1, "title": "Id", "type": "string" }, "name": { "minLength": 1, "title": "Name", "type": "string" }, "run_id": { "minLength": 1, "title": "Run Id", "type": "string" }, "run_status": { "minLength": 1, "title": "Run Status", "type": "string" }, "run_type": { "minLength": 1, "title": "Run Type", "type": "string" }, "run_type_label": { "minLength": 1, "title": "Run Type Label", "type": "string" }, "status": { "enum": [ "draft", "active", "review" ], "title": "Status", "type": "string" } }, "required": [ "id", "run_id", "name", "description", "status", "run_type", "run_type_label", "run_status", "created_at" ], "title": "WorkbenchRuntimeScenario", "type": "object" }, "WorkbenchRuntimeSnapshot": { "additionalProperties": false, "properties": { "alert_availability": { "enum": [ "ready", "not_configured", "degraded" ], "title": "Alert Availability", "type": "string" }, "alerts": { "items": { "$ref": "#/components/schemas/WorkbenchRuntimeAlert" }, "title": "Alerts", "type": "array" }, "artifact_availability": { "enum": [ "ready", "not_configured", "degraded" ], "title": "Artifact Availability", "type": "string" }, "availability": { "enum": [ "ready", "not_configured", "degraded" ], "title": "Availability", "type": "string" }, "conditions": { "items": { "$ref": "#/components/schemas/WorkbenchRuntimeCondition" }, "title": "Conditions", "type": "array" }, "generated_at": { "format": "date-time", "title": "Generated At", "type": "string" }, "latest_analysis": { "anyOf": [ { "$ref": "#/components/schemas/WorkbenchRuntimeLatestAnalysis" }, { "type": "null" } ] }, "scenario_availability": { "enum": [ "ready", "not_configured", "degraded" ], "title": "Scenario Availability", "type": "string" }, "scenarios": { "items": { "$ref": "#/components/schemas/WorkbenchRuntimeScenario" }, "title": "Scenarios", "type": "array" }, "schedule_availability": { "enum": [ "ready", "not_configured", "degraded" ], "title": "Schedule Availability", "type": "string" }, "source": { "enum": [ "none", "scheduled_tasks" ], "title": "Source", "type": "string" }, "work_order_availability": { "enum": [ "ready", "not_configured", "degraded" ], "title": "Work Order Availability", "type": "string" }, "work_orders": { "items": { "$ref": "#/components/schemas/WorkbenchRuntimeWorkOrder" }, "title": "Work Orders", "type": "array" } }, "required": [ "availability", "source", "scenario_availability", "artifact_availability", "schedule_availability", "work_order_availability", "alert_availability", "generated_at", "conditions", "alerts", "scenarios", "latest_analysis", "work_orders" ], "title": "WorkbenchRuntimeSnapshot", "type": "object" }, "WorkbenchRuntimeWorkOrder": { "additionalProperties": false, "properties": { "activity": { "items": { "$ref": "#/components/schemas/WorkOrderActivity" }, "title": "Activity", "type": "array" }, "assignee": { "anyOf": [ { "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Assignee" }, "code": { "minLength": 1, "title": "Code", "type": "string" }, "detail": { "minLength": 1, "title": "Detail", "type": "string" }, "dispatcher": { "minLength": 1, "title": "Dispatcher", "type": "string" }, "duration_minutes": { "minimum": 1.0, "title": "Duration Minutes", "type": "integer" }, "feedback_requirements": { "items": { "minLength": 1, "type": "string" }, "title": "Feedback Requirements", "type": "array" }, "id": { "minLength": 1, "title": "Id", "type": "string" }, "location": { "anyOf": [ { "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Location" }, "priority": { "enum": [ "normal", "urgent" ], "title": "Priority", "type": "string" }, "recommendation": { "anyOf": [ { "minLength": 1, "type": "string" }, { "type": "null" } ], "title": "Recommendation" }, "risk_level": { "enum": [ "normal", "attention", "critical" ], "title": "Risk Level", "type": "string" }, "scheduled_at": { "format": "date-time", "title": "Scheduled At", "type": "string" }, "source": { "minLength": 1, "title": "Source", "type": "string" }, "status": { "enum": [ "pending", "running", "awaiting_reply", "completed" ], "title": "Status", "type": "string" }, "summary": { "minLength": 1, "title": "Summary", "type": "string" }, "title": { "minLength": 1, "title": "Title", "type": "string" }, "updated_at": { "format": "date-time", "title": "Updated At", "type": "string" } }, "required": [ "id", "code", "scheduled_at", "title", "summary", "status", "risk_level", "updated_at", "detail", "recommendation", "duration_minutes", "source", "dispatcher", "priority" ], "title": "WorkbenchRuntimeWorkOrder", "type": "object" }, "WorkbenchSyncSnapshot": { "additionalProperties": false, "properties": { "event_cursor": { "minimum": 0.0, "title": "Event Cursor", "type": "integer" }, "generated_at": { "format": "date-time", "title": "Generated At", "type": "string" }, "notifications": { "items": { "$ref": "#/components/schemas/OperationalTaskNotification" }, "title": "Notifications", "type": "array" }, "runtime": { "$ref": "#/components/schemas/WorkbenchRuntimeSnapshot" }, "schema": { "const": "workbench-sync-snapshot@1", "title": "Schema", "type": "string" }, "tasks": { "items": { "$ref": "#/components/schemas/OperationalTaskSummary" }, "title": "Tasks", "type": "array" } }, "required": [ "schema", "event_cursor", "runtime", "tasks", "notifications", "generated_at" ], "title": "WorkbenchSyncSnapshot", "type": "object" } }, "securitySchemes": { "OAuth2PasswordBearer": { "flows": { "password": { "scopes": {}, "tokenUrl": "keycloak" } }, "type": "oauth2" } } }, "info": { "description": "TJWater Server - 供水管网智能管理系统", "title": "TJWater Server", "version": "1.0.0" }, "openapi": "3.1.0", "paths": { "/api/v1/access-context": { "get": { "operationId": "get_access_context", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "X-Project-Id" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AccessContextResponse" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Get Access Context", "tags": [ "Access Control" ] } }, "/api/v1/admin/project-provisions": { "post": { "operationId": "post_admin_project_provisions", "requestBody": { "content": { "multipart/form-data": { "schema": { "$ref": "#/components/schemas/Body_post_admin_project_provisions" } } }, "required": true }, "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProjectProvisionResponse" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "创建完整供水项目", "tags": [ "Model Administration" ] } }, "/api/v1/admin/projects": { "get": { "operationId": "get_admin_projects", "parameters": [ { "in": "query", "name": "limit", "required": false, "schema": { "default": 100, "maximum": 1000, "minimum": 1, "title": "Limit", "type": "integer" } }, { "in": "query", "name": "offset", "required": false, "schema": { "default": 0, "minimum": 0, "title": "Offset", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Page_AdminProjectResponse_" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "List Admin Projects", "tags": [ "Metadata Admin" ] }, "post": { "description": "仅用于登记已经由外部流程完整创建的资源。新项目应调用 POST /admin/project-provisions。", "operationId": "post_admin_projects", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AdminProjectCreateRequest" } } }, "required": true }, "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AdminProjectResponse" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "仅登记已有项目元数据", "tags": [ "Metadata Admin" ] } }, "/api/v1/admin/projects/{project_id}": { "patch": { "operationId": "patch_admin_projects_project_id", "parameters": [ { "in": "path", "name": "project_id", "required": true, "schema": { "format": "uuid", "title": "Project Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AdminProjectUpdateRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AdminProjectResponse" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Update Admin Project", "tags": [ "Metadata Admin" ] } }, "/api/v1/admin/projects/{project_id}/databases": { "get": { "operationId": "get_admin_projects_project_id_databases", "parameters": [ { "in": "path", "name": "project_id", "required": true, "schema": { "format": "uuid", "title": "Project Id", "type": "string" } }, { "in": "query", "name": "limit", "required": false, "schema": { "default": 100, "maximum": 1000, "minimum": 1, "title": "Limit", "type": "integer" } }, { "in": "query", "name": "offset", "required": false, "schema": { "default": 0, "minimum": 0, "title": "Offset", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Page_ProjectDatabaseResponse_" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "List Project Databases", "tags": [ "Metadata Admin" ] }, "put": { "operationId": "put_admin_projects_project_id_databases", "parameters": [ { "in": "path", "name": "project_id", "required": true, "schema": { "format": "uuid", "title": "Project Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProjectDatabaseUpsertRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProjectDatabaseResponse" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Upsert Project Database", "tags": [ "Metadata Admin" ] } }, "/api/v1/admin/projects/{project_id}/databases/{db_role}": { "delete": { "operationId": "delete_admin_projects_project_id_databases_db_role", "parameters": [ { "in": "path", "name": "project_id", "required": true, "schema": { "format": "uuid", "title": "Project Id", "type": "string" } }, { "in": "path", "name": "db_role", "required": true, "schema": { "enum": [ "biz_data", "iot_data" ], "title": "Db Role", "type": "string" } } ], "responses": { "204": { "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Delete Project Database", "tags": [ "Metadata Admin" ] } }, "/api/v1/admin/projects/{project_id}/databases/{db_role}/health-checks": { "post": { "operationId": "post_admin_projects_project_id_databases_db_role_health_checks", "parameters": [ { "in": "path", "name": "project_id", "required": true, "schema": { "format": "uuid", "title": "Project Id", "type": "string" } }, { "in": "path", "name": "db_role", "required": true, "schema": { "enum": [ "biz_data", "iot_data" ], "title": "Db Role", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "anyOf": [ { "$ref": "#/components/schemas/ProjectDatabaseHealthRequest" }, { "type": "null" } ], "title": "Payload" } } } }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProjectDatabaseHealthResponse" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Check Project Database Health", "tags": [ "Metadata Admin" ] } }, "/api/v1/admin/projects/{project_id}/members": { "get": { "operationId": "get_admin_projects_project_id_members", "parameters": [ { "in": "path", "name": "project_id", "required": true, "schema": { "format": "uuid", "title": "Project Id", "type": "string" } }, { "in": "query", "name": "limit", "required": false, "schema": { "default": 100, "maximum": 1000, "minimum": 1, "title": "Limit", "type": "integer" } }, { "in": "query", "name": "offset", "required": false, "schema": { "default": 0, "minimum": 0, "title": "Offset", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Page_ProjectMemberResponse_" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "List Project Members", "tags": [ "Metadata Admin" ] }, "post": { "operationId": "post_admin_projects_project_id_members", "parameters": [ { "in": "path", "name": "project_id", "required": true, "schema": { "format": "uuid", "title": "Project Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProjectMemberCreateRequest" } } }, "required": true }, "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProjectMemberResponse" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Add Project Member", "tags": [ "Metadata Admin" ] } }, "/api/v1/admin/projects/{project_id}/members/{user_id}": { "delete": { "operationId": "delete_admin_projects_project_id_members_user_id", "parameters": [ { "in": "path", "name": "project_id", "required": true, "schema": { "format": "uuid", "title": "Project Id", "type": "string" } }, { "in": "path", "name": "user_id", "required": true, "schema": { "format": "uuid", "title": "User Id", "type": "string" } } ], "responses": { "204": { "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Remove Project Member", "tags": [ "Metadata Admin" ] }, "patch": { "operationId": "patch_admin_projects_project_id_members_user_id", "parameters": [ { "in": "path", "name": "project_id", "required": true, "schema": { "format": "uuid", "title": "Project Id", "type": "string" } }, { "in": "path", "name": "user_id", "required": true, "schema": { "format": "uuid", "title": "User Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProjectMemberUpdateRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProjectMemberResponse" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Update Project Member", "tags": [ "Metadata Admin" ] } }, "/api/v1/admin/projects/{project_id}/model-imports": { "patch": { "operationId": "patch_admin_projects_project_id_model_imports", "parameters": [ { "in": "path", "name": "project_id", "required": true, "schema": { "format": "uuid", "title": "Project Id", "type": "string" } } ], "requestBody": { "content": { "multipart/form-data": { "schema": { "$ref": "#/components/schemas/Body_patch_admin_projects_project_id_model_imports" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Patch Admin Projects Project Id Model Imports", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "更新桌面端水力模型", "tags": [ "Model Administration" ] }, "post": { "operationId": "post_admin_projects_project_id_model_imports", "parameters": [ { "in": "path", "name": "project_id", "required": true, "schema": { "format": "uuid", "title": "Project Id", "type": "string" } } ], "requestBody": { "content": { "multipart/form-data": { "schema": { "$ref": "#/components/schemas/Body_post_admin_projects_project_id_model_imports" } } }, "required": true }, "responses": { "201": { "content": { "application/json": { "schema": { "title": "Response Post Admin Projects Project Id Model Imports", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "导入桌面端水力模型", "tags": [ "Model Administration" ] } }, "/api/v1/admin/user-syncs": { "post": { "operationId": "post_admin_user_syncs", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MetadataUserSyncRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MetadataUserResponse" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Sync Metadata User", "tags": [ "Metadata Admin" ] } }, "/api/v1/admin/user-syncs/batches": { "post": { "operationId": "post_admin_user_syncs_batches", "parameters": [ { "in": "query", "name": "limit", "required": false, "schema": { "default": 100, "maximum": 1000, "minimum": 1, "title": "Limit", "type": "integer" } }, { "in": "query", "name": "offset", "required": false, "schema": { "default": 0, "minimum": 0, "title": "Offset", "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MetadataUsersBatchSyncRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Page_MetadataUserSyncResult_" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Sync Metadata Users Batch", "tags": [ "Metadata Admin" ] } }, "/api/v1/admin/users": { "get": { "operationId": "get_admin_users", "parameters": [ { "in": "query", "name": "skip", "required": false, "schema": { "default": 0, "minimum": 0, "title": "Skip", "type": "integer" } }, { "in": "query", "name": "limit", "required": false, "schema": { "default": 100, "maximum": 1000, "minimum": 1, "title": "Limit", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Page_MetadataUserResponse_" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "List Metadata Users", "tags": [ "Metadata Admin" ] } }, "/api/v1/admin/users/me": { "get": { "operationId": "get_admin_users_me", "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MetadataUserResponse" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Get Metadata Admin Me", "tags": [ "Metadata Admin" ] } }, "/api/v1/admin/users/{user_id}": { "get": { "operationId": "get_admin_users_user_id", "parameters": [ { "in": "path", "name": "user_id", "required": true, "schema": { "format": "uuid", "title": "User Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MetadataUserResponse" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Get Metadata User", "tags": [ "Metadata Admin" ] }, "patch": { "operationId": "patch_admin_users_user_id", "parameters": [ { "in": "path", "name": "user_id", "required": true, "schema": { "format": "uuid", "title": "User Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MetadataUserUpdateRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MetadataUserResponse" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Update Metadata User", "tags": [ "Metadata Admin" ] } }, "/api/v1/agent-auth-context": { "get": { "operationId": "get_agent_auth_context", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentAuthContextResponse" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Get Agent Auth Context", "tags": [ "Agent Auth" ] } }, "/api/v1/all-scada-properties": { "get": { "description": "获取指定水网中所有SCADA点的属性信息", "operationId": "get_all_scada_properties", "parameters": [ { "in": "query", "name": "limit", "required": false, "schema": { "default": 100, "maximum": 1000, "minimum": 1, "title": "Limit", "type": "integer" } }, { "in": "query", "name": "offset", "required": false, "schema": { "default": 0, "minimum": 0, "title": "Offset", "type": "integer" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Page_dict_str__Any__" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取所有SCADA点属性", "tags": [ "Network General" ] } }, "/api/v1/all-vertices": { "get": { "description": "获取网络中的所有图形元素详细信息", "operationId": "get_all_vertices", "parameters": [ { "in": "query", "name": "limit", "required": false, "schema": { "default": 100, "maximum": 1000, "minimum": 1, "title": "Limit", "type": "integer" } }, { "in": "query", "name": "offset", "required": false, "schema": { "default": 0, "minimum": 0, "title": "Offset", "type": "integer" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "text/plain": { "schema": { "type": "string" } } }, "description": "Successful Response" }, "401": { "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取所有图形元素", "tags": [ "Visuals" ] } }, "/api/v1/analysis/runs": { "get": { "description": "分页返回当前项目的持久分析运行。", "operationId": "get_analysis_runs", "parameters": [ { "in": "query", "name": "limit", "required": false, "schema": { "default": 100, "maximum": 100, "minimum": 1, "title": "Limit", "type": "integer" } }, { "in": "query", "name": "offset", "required": false, "schema": { "default": 0, "minimum": 0, "title": "Offset", "type": "integer" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取分析运行列表", "tags": [ "Project Data" ] } }, "/api/v1/analysis/runs/{run_id}": { "get": { "description": "返回当前项目的一条持久分析运行。", "operationId": "get_analysis_runs_run_id", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "format": "uuid", "title": "Run Id", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取分析运行", "tags": [ "Project Data" ] } }, "/api/v1/analysis/runs/{run_id}/results": { "get": { "description": "分页返回一条分析运行的持久结果。", "operationId": "get_analysis_runs_run_id_results", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "format": "uuid", "title": "Run Id", "type": "string" } }, { "description": "结果类型", "in": "query", "name": "result_type", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "结果类型", "title": "Result Type" } }, { "in": "query", "name": "limit", "required": false, "schema": { "default": 100, "maximum": 500, "minimum": 1, "title": "Limit", "type": "integer" } }, { "in": "query", "name": "offset", "required": false, "schema": { "default": 0, "minimum": 0, "title": "Offset", "type": "integer" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取分析结果", "tags": [ "Project Data" ] } }, "/api/v1/audit-events": { "post": { "operationId": "post_audit_events", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SessionAuditEventRequest" } } }, "required": true }, "responses": { "204": { "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Record Session Event", "tags": [ "Audit Logs" ] } }, "/api/v1/audit-logs": { "get": { "description": "查询审计日志(仅管理员)", "operationId": "get_audit_logs", "parameters": [ { "description": "按用户ID过滤", "in": "query", "name": "user_id", "required": false, "schema": { "anyOf": [ { "format": "uuid", "type": "string" }, { "type": "null" } ], "description": "按用户ID过滤", "title": "User Id" } }, { "description": "按项目ID过滤", "in": "query", "name": "project_id", "required": false, "schema": { "anyOf": [ { "format": "uuid", "type": "string" }, { "type": "null" } ], "description": "按项目ID过滤", "title": "Project Id" } }, { "description": "按操作类型过滤", "in": "query", "name": "action", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "按操作类型过滤", "title": "Action" } }, { "description": "按资源类型过滤", "in": "query", "name": "resource_type", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "按资源类型过滤", "title": "Resource Type" } }, { "description": "开始时间", "in": "query", "name": "start_time", "required": false, "schema": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "description": "开始时间", "title": "Start Time" } }, { "description": "结束时间", "in": "query", "name": "end_time", "required": false, "schema": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "description": "结束时间", "title": "End Time" } }, { "description": "跳过记录数", "in": "query", "name": "skip", "required": false, "schema": { "default": 0, "description": "跳过记录数", "minimum": 0, "title": "Skip", "type": "integer" } }, { "description": "限制记录数", "in": "query", "name": "limit", "required": false, "schema": { "default": 100, "description": "限制记录数", "maximum": 1000, "minimum": 1, "title": "Limit", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Page_AuditLogResponse_" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "查询审计日志", "tags": [ "Audit Logs" ] } }, "/api/v1/audit-logs/count": { "get": { "description": "获取审计日志总数(仅管理员)", "operationId": "get_audit_logs_count", "parameters": [ { "description": "按用户ID过滤", "in": "query", "name": "user_id", "required": false, "schema": { "anyOf": [ { "format": "uuid", "type": "string" }, { "type": "null" } ], "description": "按用户ID过滤", "title": "User Id" } }, { "description": "按项目ID过滤", "in": "query", "name": "project_id", "required": false, "schema": { "anyOf": [ { "format": "uuid", "type": "string" }, { "type": "null" } ], "description": "按项目ID过滤", "title": "Project Id" } }, { "description": "按操作类型过滤", "in": "query", "name": "action", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "按操作类型过滤", "title": "Action" } }, { "description": "按资源类型过滤", "in": "query", "name": "resource_type", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "按资源类型过滤", "title": "Resource Type" } }, { "description": "开始时间", "in": "query", "name": "start_time", "required": false, "schema": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "description": "开始时间", "title": "Start Time" } }, { "description": "结束时间", "in": "query", "name": "end_time", "required": false, "schema": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "description": "结束时间", "title": "End Time" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Audit Logs Count", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取审计日志总数", "tags": [ "Audit Logs" ] } }, "/api/v1/audit-logs/mine": { "get": { "description": "查询当前用户的审计日志", "operationId": "get_audit_logs_mine", "parameters": [ { "description": "按操作类型过滤", "in": "query", "name": "action", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "按操作类型过滤", "title": "Action" } }, { "description": "开始时间", "in": "query", "name": "start_time", "required": false, "schema": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "description": "开始时间", "title": "Start Time" } }, { "description": "结束时间", "in": "query", "name": "end_time", "required": false, "schema": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "description": "结束时间", "title": "End Time" } }, { "description": "跳过记录数", "in": "query", "name": "skip", "required": false, "schema": { "default": 0, "description": "跳过记录数", "minimum": 0, "title": "Skip", "type": "integer" } }, { "description": "限制记录数", "in": "query", "name": "limit", "required": false, "schema": { "default": 100, "description": "限制记录数", "maximum": 1000, "minimum": 1, "title": "Limit", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Page_AuditLogResponse_" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "查询我的审计日志", "tags": [ "Audit Logs" ] } }, "/api/v1/backdrops/properties": { "get": { "description": "获取指定网络的背景属性信息", "operationId": "get_backdrops_properties", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Backdrops Properties", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取背景属性", "tags": [ "Visuals" ] }, "patch": { "description": "更新指定网络的背景属性", "operationId": "patch_backdrops_properties", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "title": "Payload", "type": "object" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置背景属性", "tags": [ "Visuals" ] } }, "/api/v1/burst-analyses": { "post": { "description": "高级版本的爆管分析,支持在指定时间点修改泵控制模式和阀门开度,以分析这些改变对爆管影响的作用。支持固定泵和变速泵的独立控制。", "operationId": "post_burst_analyses", "parameters": [ { "description": "模式修改开始时间(ISO 8601格式)", "in": "query", "name": "modify_pattern_start_time", "required": true, "schema": { "description": "模式修改开始时间(ISO 8601格式)", "title": "Modify Pattern Start Time", "type": "string" } }, { "description": "爆管节点/管段ID列表", "in": "query", "name": "burst_id", "required": true, "schema": { "description": "爆管节点/管段ID列表", "items": { "type": "string" }, "minItems": 1, "title": "Burst Id", "type": "array" } }, { "description": "对应各爆管点的爆管流量大小列表(L/s)", "in": "query", "name": "burst_size", "required": true, "schema": { "description": "对应各爆管点的爆管流量大小列表(L/s)", "items": { "type": "number" }, "minItems": 1, "title": "Burst Size", "type": "array" } }, { "description": "模拟总时长(秒)", "in": "query", "name": "modify_total_duration", "required": true, "schema": { "description": "模拟总时长(秒)", "exclusiveMinimum": 0, "title": "Modify Total Duration", "type": "integer" } }, { "description": "分析方案名称", "in": "query", "name": "scheme_name", "required": true, "schema": { "description": "分析方案名称", "minLength": 1, "title": "Scheme Name", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Post Burst Analyses", "type": "string" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "爆管分析(高级)", "tags": [ "Simulation Control" ] } }, "/api/v1/burst-detections": { "post": { "description": "基于压力观测数据和其他参数执行爆管检测分析", "operationId": "post_burst_detections", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BurstDetectionRequestRest", "description": "爆管检测请求数据" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Post Burst Detections", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "执行爆管检测", "tags": [ "Burst Detection" ] } }, "/api/v1/burst-locations": { "post": { "description": "基于压力和流量数据定位管网中的爆管位置", "operationId": "post_burst_locations", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BurstLocationRequestRest", "description": "爆管定位请求数据" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Post Burst Locations", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "执行爆管定位", "tags": [ "Burst Location" ] } }, "/api/v1/contaminant-simulations": { "post": { "description": "对管网中的污染物扩散进行模拟,评估污染源对管网的影响范围和浓度分布。支持指定污染源位置、污染浓度和扩散模式。", "operationId": "post_contaminant_simulations", "parameters": [ { "description": "污染开始时间(ISO 8601格式)", "in": "query", "name": "start_time", "required": true, "schema": { "description": "污染开始时间(ISO 8601格式)", "title": "Start Time", "type": "string" } }, { "description": "污染源节点ID", "in": "query", "name": "source", "required": true, "schema": { "description": "污染源节点ID", "title": "Source", "type": "string" } }, { "description": "污染浓度(mg/L)", "in": "query", "name": "concentration", "required": true, "schema": { "description": "污染浓度(mg/L)", "title": "Concentration", "type": "number" } }, { "description": "模拟持续时间(秒)", "in": "query", "name": "duration", "required": true, "schema": { "description": "模拟持续时间(秒)", "title": "Duration", "type": "integer" } }, { "description": "模拟方案名称", "in": "query", "name": "scheme_name", "required": true, "schema": { "description": "模拟方案名称", "title": "Scheme Name", "type": "string" } }, { "description": "污染源模式ID(可选)", "in": "query", "name": "pattern", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "污染源模式ID(可选)", "title": "Pattern" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "text/plain": { "schema": { "type": "string" } } }, "description": "Successful Response" }, "401": { "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "污染物模拟", "tags": [ "Simulation Control" ] } }, "/api/v1/controls/properties": { "get": { "description": "获取指定网络中的控制属性信息", "operationId": "get_controls_properties", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Controls Properties", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取控制属性", "tags": [ "Controls & Rules" ] }, "patch": { "description": "更新指定网络中的控制属性", "operationId": "patch_controls_properties", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "title": "Payload", "type": "object" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置控制属性", "tags": [ "Controls & Rules" ] } }, "/api/v1/curves": { "delete": { "description": "从网络中删除指定的曲线", "operationId": "delete_curves", "parameters": [ { "description": "曲线ID", "in": "query", "name": "curve", "required": true, "schema": { "description": "曲线ID", "title": "Curve", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "204": { "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "删除曲线", "tags": [ "Curves" ] }, "get": { "description": "获取网络中的所有曲线列表", "operationId": "get_curves", "parameters": [ { "in": "query", "name": "limit", "required": false, "schema": { "default": 100, "maximum": 1000, "minimum": 1, "title": "Limit", "type": "integer" } }, { "in": "query", "name": "offset", "required": false, "schema": { "default": 0, "minimum": 0, "title": "Offset", "type": "integer" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Page_str_" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取所有曲线", "tags": [ "Curves" ] }, "post": { "description": "在网络中添加一条新的曲线", "operationId": "post_curves", "parameters": [ { "description": "曲线ID", "in": "query", "name": "curve", "required": true, "schema": { "description": "曲线ID", "title": "Curve", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "title": "Payload", "type": "object" } } }, "required": true }, "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "添加曲线", "tags": [ "Curves" ] } }, "/api/v1/curves/existence": { "get": { "description": "检查指定的曲线是否存在", "operationId": "get_curves_existence", "parameters": [ { "description": "曲线ID", "in": "query", "name": "curve", "required": true, "schema": { "description": "曲线ID", "title": "Curve", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Curves Existence", "type": "boolean" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "检查曲线存在性", "tags": [ "Curves" ] } }, "/api/v1/curves/properties": { "get": { "description": "获取指定曲线的属性信息", "operationId": "get_curves_properties", "parameters": [ { "description": "曲线ID", "in": "query", "name": "curve", "required": true, "schema": { "description": "曲线ID", "title": "Curve", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Curves Properties", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取曲线属性", "tags": [ "Curves" ] }, "patch": { "description": "更新指定曲线的属性", "operationId": "patch_curves_properties", "parameters": [ { "description": "曲线ID", "in": "query", "name": "curve", "required": true, "schema": { "description": "曲线ID", "title": "Curve", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "title": "Payload", "type": "object" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置曲线属性", "tags": [ "Curves" ] } }, "/api/v1/demands/properties": { "get": { "description": "获取指定水网中节点的需水量属性信息", "operationId": "get_demands_properties", "parameters": [ { "description": "节点ID", "in": "query", "name": "junction", "required": true, "schema": { "description": "节点ID", "title": "Junction", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Demands Properties", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取需水量属性", "tags": [ "Demands" ] }, "patch": { "description": "设置指定水网中节点的需水量属性信息", "operationId": "patch_demands_properties", "parameters": [ { "description": "节点ID", "in": "query", "name": "junction", "required": true, "schema": { "description": "节点ID", "title": "Junction", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "title": "Payload", "type": "object" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置需水量属性", "tags": [ "Demands" ] } }, "/api/v1/demands/to-network": { "post": { "description": "将需水量均匀分配到整个水网的所有需水节点", "operationId": "post_demands_to_network", "parameters": [ { "description": "总需水量(m³/h)", "in": "query", "name": "demand", "required": true, "schema": { "description": "总需水量(m³/h)", "exclusiveMinimum": 0.0, "title": "Demand", "type": "number" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": { "type": "number" }, "title": "Response Post Demands To Network", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "计算需水量到整网分配", "tags": [ "Demands" ] } }, "/api/v1/demands/to-nodes": { "post": { "description": "将总需水量按指定方式分配到多个节点", "operationId": "post_demands_to_nodes", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "title": "Payload", "type": "object" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": { "type": "number" }, "title": "Response Post Demands To Nodes", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "计算需水量到节点分配", "tags": [ "Demands" ] } }, "/api/v1/demands/to-region": { "post": { "description": "将总需水量按区域特征分配到该区域内的节点", "operationId": "post_demands_to_region", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "title": "Payload", "type": "object" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": { "type": "number" }, "title": "Response Post Demands To Region", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "计算需水量到区域分配", "tags": [ "Demands" ] } }, "/api/v1/element-properties": { "get": { "description": "获取指定元素的属性信息", "operationId": "get_element_properties", "parameters": [ { "description": "元素ID", "in": "query", "name": "element", "required": true, "schema": { "description": "元素ID", "title": "Element", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Element Properties", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取元素属性", "tags": [ "Network General" ] } }, "/api/v1/element-properties-with-types": { "get": { "description": "获取指定类型的元素属性信息", "operationId": "get_element_properties_with_types", "parameters": [ { "description": "元素类型", "in": "query", "name": "elementtype", "required": true, "schema": { "description": "元素类型", "title": "Elementtype", "type": "string" } }, { "description": "元素ID", "in": "query", "name": "element", "required": true, "schema": { "description": "元素ID", "title": "Element", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Element Properties With Types", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取指定类型元素属性", "tags": [ "Network General" ] } }, "/api/v1/element-type-values": { "get": { "description": "获取指定元素的类型数值标识", "operationId": "get_element_type_values", "parameters": [ { "description": "元素ID", "in": "query", "name": "element", "required": true, "schema": { "description": "元素ID", "title": "Element", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Element Type Values", "type": "integer" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取元素类型值", "tags": [ "Network General" ] } }, "/api/v1/element-types": { "get": { "description": "获取指定元素的类型(节点或管线)", "operationId": "get_element_types", "parameters": [ { "description": "元素ID", "in": "query", "name": "element", "required": true, "schema": { "description": "元素ID", "title": "Element", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Element Types", "type": "string" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取元素类型", "tags": [ "Network General" ] } }, "/api/v1/elements/{element_type}/{element_id}/gis-properties": { "get": { "description": "Return source GIS records linked to one current-project map element.", "operationId": "get_elements_element_type_element_id_gis_properties", "parameters": [ { "in": "path", "name": "element_type", "required": true, "schema": { "enum": [ "pipes", "junctions", "valves", "reservoirs", "pumps", "tanks", "scada" ], "title": "Element Type", "type": "string" } }, { "in": "path", "name": "element_id", "required": true, "schema": { "title": "Element Id", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ElementGisProperties" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取元素 GIS 台账属性", "tags": [ "Project Data" ] } }, "/api/v1/emitters/properties": { "get": { "description": "获取指定连接点的发射器属性信息", "operationId": "get_emitters_properties", "parameters": [ { "description": "连接点ID", "in": "query", "name": "junction", "required": true, "schema": { "description": "连接点ID", "title": "Junction", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Emitters Properties", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取发射器属性", "tags": [ "Quality" ] }, "patch": { "description": "更新指定连接点的发射器属性", "operationId": "patch_emitters_properties", "parameters": [ { "description": "连接点ID", "in": "query", "name": "junction", "required": true, "schema": { "description": "连接点ID", "title": "Junction", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "title": "Payload", "type": "object" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置发射器属性", "tags": [ "Quality" ] } }, "/api/v1/energy-properties": { "patch": { "description": "更新指定网络中的能耗选项属性", "operationId": "patch_energy_properties", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "title": "Payload", "type": "object" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置能耗选项属性", "tags": [ "Options" ] } }, "/api/v1/flushing-analyses": { "post": { "description": "高级版本的冲洗分析,支持按状态和设置值控制多个可选阀门,指定排污节点,并设置固定的冲洗流量。返回纯文本格式的分析结果。", "operationId": "post_flushing_analyses", "parameters": [ { "description": "冲洗开始时间(ISO 8601格式)", "in": "query", "name": "start_time", "required": true, "schema": { "description": "冲洗开始时间(ISO 8601格式)", "title": "Start Time", "type": "string" } }, { "description": "参与控制的阀门ID列表(可选)", "in": "query", "name": "valves", "required": false, "schema": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "description": "参与控制的阀门ID列表(可选)", "title": "Valves" } }, { "description": "对应各阀门的开度列表(0-1,可选,与valves同时提供)", "in": "query", "name": "valves_k", "required": false, "schema": { "anyOf": [ { "items": { "type": "number" }, "type": "array" }, { "type": "null" } ], "description": "对应各阀门的开度列表(0-1,可选,与valves同时提供)", "title": "Valves K" } }, { "description": "对应各阀门的开关状态列表(OPEN、CLOSED或ACTIVE,可选)", "in": "query", "name": "valve_statuses", "required": false, "schema": { "anyOf": [ { "items": { "enum": [ "OPEN", "CLOSED", "ACTIVE" ], "type": "string" }, "type": "array" }, { "type": "null" } ], "description": "对应各阀门的开关状态列表(OPEN、CLOSED或ACTIVE,可选)", "title": "Valve Statuses" } }, { "description": "对应各阀门的设置值列表(ACTIVE状态下必填)", "in": "query", "name": "valve_settings", "required": false, "schema": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "description": "对应各阀门的设置值列表(ACTIVE状态下必填)", "title": "Valve Settings" } }, { "description": "排污节点ID", "in": "query", "name": "drainage_node_id", "required": true, "schema": { "description": "排污节点ID", "title": "Drainage Node Id", "type": "string" } }, { "description": "冲洗流量(L/s),0表示自动计算", "in": "query", "name": "flush_flow", "required": false, "schema": { "default": 0, "description": "冲洗流量(L/s),0表示自动计算", "title": "Flush Flow", "type": "number" } }, { "description": "模拟持续时间(秒),默认900秒", "in": "query", "name": "duration", "required": false, "schema": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "description": "模拟持续时间(秒),默认900秒", "title": "Duration" } }, { "description": "冲洗方案名称", "in": "query", "name": "scheme_name", "required": true, "schema": { "description": "冲洗方案名称", "title": "Scheme Name", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "text/plain": { "schema": { "type": "string" } } }, "description": "Successful Response" }, "401": { "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "冲洗分析(高级)", "tags": [ "Simulation Control" ] } }, "/api/v1/geocoding-requests": { "post": { "description": "调用天地图地理编码服务,将结构化地址转换为经纬度", "operationId": "post_geocoding_requests", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TiandituGeocodeRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Post Geocoding Requests", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Tianditu Geocoding", "tags": [ "Geocoding" ] } }, "/api/v1/junctions": { "delete": { "description": "从供水网络中删除指定的节点。", "operationId": "delete_junctions", "parameters": [ { "description": "节点 ID", "in": "query", "name": "junction", "required": true, "schema": { "description": "节点 ID", "title": "Junction", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "204": { "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "删除节点", "tags": [ "Junctions" ] }, "get": { "description": "获取指定项目中所有节点的属性信息。", "operationId": "get_junctions", "parameters": [ { "in": "query", "name": "limit", "required": false, "schema": { "default": 100, "maximum": 1000, "minimum": 1, "title": "Limit", "type": "integer" } }, { "in": "query", "name": "offset", "required": false, "schema": { "default": 0, "minimum": 0, "title": "Offset", "type": "integer" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Page_dict_str__Any__" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取所有节点属性", "tags": [ "Junctions" ] }, "post": { "description": "在供水网络中添加新的节点,指定节点ID和空间坐标。", "operationId": "post_junctions", "parameters": [ { "description": "节点 ID", "in": "query", "name": "junction", "required": true, "schema": { "description": "节点 ID", "title": "Junction", "type": "string" } }, { "description": "X 坐标", "in": "query", "name": "x", "required": true, "schema": { "description": "X 坐标", "title": "X", "type": "number" } }, { "description": "Y 坐标", "in": "query", "name": "y", "required": true, "schema": { "description": "Y 坐标", "title": "Y", "type": "number" } }, { "description": "标高(海拔高度)", "in": "query", "name": "z", "required": true, "schema": { "description": "标高(海拔高度)", "title": "Z", "type": "number" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "添加节点", "tags": [ "Junctions" ] } }, "/api/v1/junctions/coord": { "get": { "description": "获取指定节点的 X 和 Y 坐标。", "operationId": "get_junctions_coord", "parameters": [ { "description": "节点 ID", "in": "query", "name": "junction", "required": true, "schema": { "description": "节点 ID", "title": "Junction", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": { "type": "number" }, "title": "Response Get Junctions Coord", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取节点坐标", "tags": [ "Junctions" ] }, "patch": { "description": "设置指定节点的 X 和 Y 坐标。", "operationId": "patch_junctions_coord", "parameters": [ { "description": "节点 ID", "in": "query", "name": "junction", "required": true, "schema": { "description": "节点 ID", "title": "Junction", "type": "string" } }, { "description": "X 坐标值", "in": "query", "name": "x", "required": true, "schema": { "description": "X 坐标值", "title": "X", "type": "number" } }, { "description": "Y 坐标值", "in": "query", "name": "y", "required": true, "schema": { "description": "Y 坐标值", "title": "Y", "type": "number" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置节点坐标", "tags": [ "Junctions" ] } }, "/api/v1/junctions/demand": { "get": { "description": "获取指定节点的需水量。", "operationId": "get_junctions_demand", "parameters": [ { "description": "节点 ID", "in": "query", "name": "junction", "required": true, "schema": { "description": "节点 ID", "title": "Junction", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Junctions Demand", "type": "number" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取节点需水量", "tags": [ "Junctions" ] }, "patch": { "description": "设置指定节点的需水量。", "operationId": "patch_junctions_demand", "parameters": [ { "description": "节点 ID", "in": "query", "name": "junction", "required": true, "schema": { "description": "节点 ID", "title": "Junction", "type": "string" } }, { "description": "需水量值", "in": "query", "name": "demand", "required": true, "schema": { "description": "需水量值", "title": "Demand", "type": "number" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置节点需水量", "tags": [ "Junctions" ] } }, "/api/v1/junctions/elevation": { "get": { "description": "获取指定节点的标高(海拔高度)。", "operationId": "get_junctions_elevation", "parameters": [ { "description": "节点 ID", "in": "query", "name": "junction", "required": true, "schema": { "description": "节点 ID", "title": "Junction", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Junctions Elevation", "type": "number" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取节点标高", "tags": [ "Junctions" ] }, "patch": { "description": "设置指定节点的标高值。", "operationId": "patch_junctions_elevation", "parameters": [ { "description": "节点 ID", "in": "query", "name": "junction", "required": true, "schema": { "description": "节点 ID", "title": "Junction", "type": "string" } }, { "description": "标高(海拔高度)", "in": "query", "name": "elevation", "required": true, "schema": { "description": "标高(海拔高度)", "title": "Elevation", "type": "number" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置节点标高", "tags": [ "Junctions" ] } }, "/api/v1/junctions/existence": { "get": { "description": "检查指定ID是否为水网中的接点(需求点)", "operationId": "get_junctions_existence", "parameters": [ { "description": "节点ID", "in": "query", "name": "node", "required": true, "schema": { "description": "节点ID", "title": "Node", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Junctions Existence", "type": "boolean" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "检查是否为接点", "tags": [ "Network General" ] } }, "/api/v1/junctions/pattern": { "get": { "description": "获取指定节点的需水模式标识。", "operationId": "get_junctions_pattern", "parameters": [ { "description": "节点 ID", "in": "query", "name": "junction", "required": true, "schema": { "description": "节点 ID", "title": "Junction", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Junctions Pattern", "type": "string" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取节点需水模式", "tags": [ "Junctions" ] }, "patch": { "description": "设置指定节点的需水模式标识。", "operationId": "patch_junctions_pattern", "parameters": [ { "description": "节点 ID", "in": "query", "name": "junction", "required": true, "schema": { "description": "节点 ID", "title": "Junction", "type": "string" } }, { "description": "需水模式标识", "in": "query", "name": "pattern", "required": true, "schema": { "description": "需水模式标识", "title": "Pattern", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置节点需水模式", "tags": [ "Junctions" ] } }, "/api/v1/junctions/properties": { "get": { "description": "获取指定节点的所有属性信息。", "operationId": "get_junctions_properties", "parameters": [ { "description": "节点 ID", "in": "query", "name": "junction", "required": true, "schema": { "description": "节点 ID", "title": "Junction", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Junctions Properties", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取节点属性", "tags": [ "Junctions" ] }, "patch": { "description": "批量设置指定节点的多个属性。", "operationId": "patch_junctions_properties", "parameters": [ { "description": "节点 ID", "in": "query", "name": "junction", "required": true, "schema": { "description": "节点 ID", "title": "Junction", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "title": "Payload", "type": "object" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "批量设置节点属性", "tags": [ "Junctions" ] } }, "/api/v1/junctions/x": { "get": { "description": "获取指定节点的 X 坐标值。", "operationId": "get_junctions_x", "parameters": [ { "description": "节点 ID", "in": "query", "name": "junction", "required": true, "schema": { "description": "节点 ID", "title": "Junction", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Junctions X", "type": "number" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取节点 X 坐标", "tags": [ "Junctions" ] }, "patch": { "description": "设置指定节点的 X 坐标值。", "operationId": "patch_junctions_x", "parameters": [ { "description": "节点 ID", "in": "query", "name": "junction", "required": true, "schema": { "description": "节点 ID", "title": "Junction", "type": "string" } }, { "description": "X 坐标值", "in": "query", "name": "x", "required": true, "schema": { "description": "X 坐标值", "title": "X", "type": "number" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置节点 X 坐标", "tags": [ "Junctions" ] } }, "/api/v1/junctions/y": { "get": { "description": "获取指定节点的 Y 坐标值。", "operationId": "get_junctions_y", "parameters": [ { "description": "节点 ID", "in": "query", "name": "junction", "required": true, "schema": { "description": "节点 ID", "title": "Junction", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Junctions Y", "type": "number" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取节点 Y 坐标", "tags": [ "Junctions" ] }, "patch": { "description": "设置指定节点的 Y 坐标值。", "operationId": "patch_junctions_y", "parameters": [ { "description": "节点 ID", "in": "query", "name": "junction", "required": true, "schema": { "description": "节点 ID", "title": "Junction", "type": "string" } }, { "description": "Y 坐标值", "in": "query", "name": "y", "required": true, "schema": { "description": "Y 坐标值", "title": "Y", "type": "number" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置节点 Y 坐标", "tags": [ "Junctions" ] } }, "/api/v1/labels": { "delete": { "description": "从网络中删除指定的标签", "operationId": "delete_labels", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "title": "Payload", "type": "object" } } }, "required": true }, "responses": { "204": { "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "删除标签", "tags": [ "Visuals" ] }, "post": { "description": "在网络中添加一个新的标签", "operationId": "post_labels", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "title": "Payload", "type": "object" } } }, "required": true }, "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "添加标签", "tags": [ "Visuals" ] } }, "/api/v1/labels/properties": { "get": { "description": "获取指定坐标处的标签属性信息", "operationId": "get_labels_properties", "parameters": [ { "description": "X坐标", "in": "query", "name": "x", "required": true, "schema": { "description": "X坐标", "title": "X", "type": "number" } }, { "description": "Y坐标", "in": "query", "name": "y", "required": true, "schema": { "description": "Y坐标", "title": "Y", "type": "number" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Labels Properties", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取标签属性", "tags": [ "Visuals" ] }, "patch": { "description": "更新指定标签的属性", "operationId": "patch_labels_properties", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "title": "Payload", "type": "object" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置标签属性", "tags": [ "Visuals" ] } }, "/api/v1/leakage-identifications": { "post": { "description": "基于压力观测数据和遗传算法识别管网中的漏损位置和大小", "operationId": "post_leakage_identifications", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LeakageIdentifyRequestRest", "description": "漏损识别请求数据" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Post Leakage Identifications", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "执行漏损识别", "tags": [ "Leakage" ] } }, "/api/v1/link-properties": { "get": { "description": "获取指定管线的所有属性信息", "operationId": "get_link_properties", "parameters": [ { "description": "管线ID", "in": "query", "name": "link", "required": true, "schema": { "description": "管线ID", "title": "Link", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Link Properties", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取管线属性", "tags": [ "Network General" ] } }, "/api/v1/link-types": { "get": { "description": "获取指定管线的类型(管道/泵/阀门)", "operationId": "get_link_types", "parameters": [ { "description": "管线ID", "in": "query", "name": "link", "required": true, "schema": { "description": "管线ID", "title": "Link", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Link Types", "type": "string" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取管线类型", "tags": [ "Network General" ] } }, "/api/v1/links": { "delete": { "description": "删除指定的管线(管道/泵/阀门)", "operationId": "delete_links", "parameters": [ { "description": "管线ID", "in": "query", "name": "link", "required": true, "schema": { "description": "管线ID", "title": "Link", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "204": { "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "删除管线", "tags": [ "Network General" ] }, "get": { "description": "获取指定水网中的所有管线ID列表", "operationId": "get_links", "parameters": [ { "in": "query", "name": "limit", "required": false, "schema": { "default": 100, "maximum": 1000, "minimum": 1, "title": "Limit", "type": "integer" } }, { "in": "query", "name": "offset", "required": false, "schema": { "default": 0, "minimum": 0, "title": "Offset", "type": "integer" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Page_str_" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取所有管线", "tags": [ "Network General" ] } }, "/api/v1/links/existence": { "get": { "description": "检查指定ID是否为水网中的有效管线", "operationId": "get_links_existence", "parameters": [ { "description": "管线ID", "in": "query", "name": "link", "required": true, "schema": { "description": "管线ID", "title": "Link", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Links Existence", "type": "boolean" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "检查管线有效性", "tags": [ "Network General" ] } }, "/api/v1/major-pipe-nodes": { "get": { "description": "获取直径大于等于指定值的管道的节点ID", "operationId": "get_major_pipe_nodes", "parameters": [ { "description": "最小直径(mm)", "in": "query", "name": "diameter", "required": true, "schema": { "description": "最小直径(mm)", "exclusiveMinimum": 0, "title": "Diameter", "type": "integer" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "title": "Response Get Major Pipe Nodes" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取主要管道节点", "tags": [ "Geometry & Coordinates" ] } }, "/api/v1/majornode-coords": { "get": { "description": "获取直径大于等于指定值的节点坐标", "operationId": "get_majornode_coords", "parameters": [ { "description": "最小直径(mm)", "in": "query", "name": "diameter", "required": true, "schema": { "description": "最小直径(mm)", "exclusiveMinimum": 0, "title": "Diameter", "type": "integer" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": { "additionalProperties": { "type": "number" }, "type": "object" }, "title": "Response Get Majornode Coords", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取主要节点坐标", "tags": [ "Geometry & Coordinates" ] } }, "/api/v1/mixing-configurations": { "delete": { "description": "从网络中删除指定的混合", "operationId": "delete_mixing_configurations", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "title": "Payload", "type": "object" } } }, "required": true }, "responses": { "204": { "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "删除混合", "tags": [ "Quality" ] }, "patch": { "description": "更新指定水池的混合属性", "operationId": "patch_mixing_configurations", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "title": "Payload", "type": "object" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置混合属性", "tags": [ "Quality" ] }, "post": { "description": "在网络中添加一个新的混合", "operationId": "post_mixing_configurations", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "title": "Payload", "type": "object" } } }, "required": true }, "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "添加混合", "tags": [ "Quality" ] } }, "/api/v1/mixing-configurations/detail": { "get": { "description": "获取指定水池的混合属性信息", "operationId": "get_mixing_configurations_detail", "parameters": [ { "description": "水池ID", "in": "query", "name": "tank", "required": true, "schema": { "description": "水池ID", "title": "Tank", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Mixing Configurations Detail", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取混合属性", "tags": [ "Quality" ] } }, "/api/v1/network-in-extents": { "get": { "description": "获取指定地理范围内的网络节点和管线", "operationId": "get_network_in_extents", "parameters": [ { "description": "范围左下角X坐标", "in": "query", "name": "x1", "required": true, "schema": { "description": "范围左下角X坐标", "title": "X1", "type": "number" } }, { "description": "范围左下角Y坐标", "in": "query", "name": "y1", "required": true, "schema": { "description": "范围左下角Y坐标", "title": "Y1", "type": "number" } }, { "description": "范围右上角X坐标", "in": "query", "name": "x2", "required": true, "schema": { "description": "范围右上角X坐标", "title": "X2", "type": "number" } }, { "description": "范围右上角Y坐标", "in": "query", "name": "y2", "required": true, "schema": { "description": "范围右上角Y坐标", "title": "Y2", "type": "number" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Network In Extents", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取范围内的网络元素", "tags": [ "Geometry & Coordinates" ] } }, "/api/v1/network-link-nodes": { "get": { "description": "获取指定水网所有管线的起点和终点节点", "operationId": "get_network_link_nodes", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "title": "Response Get Network Link Nodes" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取网络管线节点", "tags": [ "Geometry & Coordinates" ] } }, "/api/v1/network-options": { "get": { "description": "获取指定网络中的选项属性信息", "operationId": "get_network_options", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Network Options", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取选项属性", "tags": [ "Options" ] }, "patch": { "description": "更新指定网络中的选项属性", "operationId": "patch_network_options", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "title": "Payload", "type": "object" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置选项属性", "tags": [ "Options" ] } }, "/api/v1/network-options/energy": { "get": { "description": "获取指定网络中的能耗选项属性信息", "operationId": "get_network_options_energy", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Network Options Energy", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取能耗选项属性", "tags": [ "Options" ] } }, "/api/v1/network-options/pump-energy": { "get": { "description": "获取指定泵的能耗属性信息", "operationId": "get_network_options_pump_energy", "parameters": [ { "description": "泵ID", "in": "query", "name": "pump", "required": true, "schema": { "description": "泵ID", "title": "Pump", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Network Options Pump Energy", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取泵能耗属性", "tags": [ "Options" ] }, "patch": { "description": "更新指定泵的能耗属性", "operationId": "patch_network_options_pump_energy", "parameters": [ { "description": "泵ID", "in": "query", "name": "pump", "required": true, "schema": { "description": "泵ID", "title": "Pump", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "title": "Payload", "type": "object" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置泵能耗属性", "tags": [ "Options" ] } }, "/api/v1/network-options/time": { "get": { "description": "获取指定网络中的时间选项属性信息", "operationId": "get_network_options_time", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Network Options Time", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取时间选项属性", "tags": [ "Options" ] } }, "/api/v1/network-schemas/backdrop": { "get": { "description": "获取网络中背景对象的架构定义", "operationId": "get_network_schemas_backdrop", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": { "type": "object" }, "title": "Response Get Network Schemas Backdrop", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取背景架构", "tags": [ "Visuals" ] } }, "/api/v1/network-schemas/control": { "get": { "description": "获取网络中控制对象的架构定义", "operationId": "get_network_schemas_control", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": { "type": "object" }, "title": "Response Get Network Schemas Control", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取控制架构", "tags": [ "Controls & Rules" ] } }, "/api/v1/network-schemas/curve": { "get": { "description": "获取网络中曲线对象的架构定义", "operationId": "get_network_schemas_curve", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": { "type": "object" }, "title": "Response Get Network Schemas Curve", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取曲线架构", "tags": [ "Curves" ] } }, "/api/v1/network-schemas/demand": { "get": { "description": "获取指定水网中需水量(Demand)的属性架构定义", "operationId": "get_network_schemas_demand", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": { "type": "object" }, "title": "Response Get Network Schemas Demand", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取需水量属性架构", "tags": [ "Demands" ] } }, "/api/v1/network-schemas/emitter": { "get": { "description": "获取网络中发射器对象的架构定义", "operationId": "get_network_schemas_emitter", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": { "type": "object" }, "title": "Response Get Network Schemas Emitter", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取发射器架构", "tags": [ "Quality" ] } }, "/api/v1/network-schemas/energy": { "get": { "description": "获取网络中能耗选项的架构定义", "operationId": "get_network_schemas_energy", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": { "type": "object" }, "title": "Response Get Network Schemas Energy", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取能耗选项架构", "tags": [ "Options" ] } }, "/api/v1/network-schemas/junction": { "get": { "description": "获取指定项目的节点属性架构和数据类型定义。", "operationId": "get_network_schemas_junction", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": { "type": "object" }, "title": "Response Get Network Schemas Junction", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取节点架构", "tags": [ "Junctions" ] } }, "/api/v1/network-schemas/label": { "get": { "description": "获取网络中标签对象的架构定义", "operationId": "get_network_schemas_label", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": { "type": "object" }, "title": "Response Get Network Schemas Label", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取标签架构", "tags": [ "Visuals" ] } }, "/api/v1/network-schemas/mixing": { "get": { "description": "获取网络中混合对象的架构定义", "operationId": "get_network_schemas_mixing", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": { "type": "object" }, "title": "Response Get Network Schemas Mixing", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取混合架构", "tags": [ "Quality" ] } }, "/api/v1/network-schemas/option": { "get": { "description": "获取网络中选项对象的架构定义", "operationId": "get_network_schemas_option", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": { "type": "object" }, "title": "Response Get Network Schemas Option", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取选项架构", "tags": [ "Options" ] } }, "/api/v1/network-schemas/pattern": { "get": { "description": "获取网络中模式对象的架构定义", "operationId": "get_network_schemas_pattern", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": { "type": "object" }, "title": "Response Get Network Schemas Pattern", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取模式架构", "tags": [ "Patterns" ] } }, "/api/v1/network-schemas/pipe": { "get": { "description": "获取管道对象的模式定义,包含所有可用字段及其类型", "operationId": "get_network_schemas_pipe", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": { "type": "object" }, "title": "Response Get Network Schemas Pipe", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取管道模式", "tags": [ "Pipes" ] } }, "/api/v1/network-schemas/pipe-reaction": { "get": { "description": "获取网络中管道反应对象的架构定义", "operationId": "get_network_schemas_pipe_reaction", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": { "type": "object" }, "title": "Response Get Network Schemas Pipe Reaction", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取管道反应架构", "tags": [ "Quality" ] } }, "/api/v1/network-schemas/pump": { "get": { "description": "获取水泵对象的模式定义,包含所有可用字段及其类型", "operationId": "get_network_schemas_pump", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": { "type": "object" }, "title": "Response Get Network Schemas Pump", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取水泵模式", "tags": [ "Pumps" ] } }, "/api/v1/network-schemas/pump-energy": { "get": { "description": "获取网络中泵能耗选项的架构定义", "operationId": "get_network_schemas_pump_energy", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": { "type": "object" }, "title": "Response Get Network Schemas Pump Energy", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取泵能耗选项架构", "tags": [ "Options" ] } }, "/api/v1/network-schemas/quality": { "get": { "description": "获取网络中水质对象的架构定义", "operationId": "get_network_schemas_quality", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": { "type": "object" }, "title": "Response Get Network Schemas Quality", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取水质架构", "tags": [ "Quality" ] } }, "/api/v1/network-schemas/reaction": { "get": { "description": "获取网络中反应对象的架构定义", "operationId": "get_network_schemas_reaction", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": { "type": "object" }, "title": "Response Get Network Schemas Reaction", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取反应架构", "tags": [ "Quality" ] } }, "/api/v1/network-schemas/region": { "get": { "operationId": "get_network_schemas_region", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": { "type": "object" }, "title": "Response Get Network Schemas Region", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取区域属性架构", "tags": [ "Regions & DMAs" ] } }, "/api/v1/network-schemas/reservoir": { "get": { "description": "获取指定供水网络中所有水库的模式/属性字段定义", "operationId": "get_network_schemas_reservoir", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": { "type": "object" }, "title": "Response Get Network Schemas Reservoir", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取水库模式", "tags": [ "Reservoirs" ] } }, "/api/v1/network-schemas/scada-device": { "get": { "operationId": "get_network_schemas_scada_device", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": { "type": "object" }, "title": "Response Get Network Schemas Scada Device", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取 SCADA 设备结构", "tags": [ "SCADA Metadata" ] } }, "/api/v1/network-schemas/source": { "get": { "description": "获取网络中水源对象的架构定义", "operationId": "get_network_schemas_source", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": { "type": "object" }, "title": "Response Get Network Schemas Source", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取水源架构", "tags": [ "Quality" ] } }, "/api/v1/network-schemas/tag": { "get": { "description": "获取指定水网的标签(Tag)属性架构定义", "operationId": "get_network_schemas_tag", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": { "type": "object" }, "title": "Response Get Network Schemas Tag", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取标签属性架构", "tags": [ "Tags" ] } }, "/api/v1/network-schemas/tank": { "get": { "description": "获取指定网络的水箱数据结构模式定义", "operationId": "get_network_schemas_tank", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": { "type": "object" }, "title": "Response Get Network Schemas Tank", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取水箱模式", "tags": [ "Tanks" ] } }, "/api/v1/network-schemas/tank-reaction": { "get": { "description": "获取网络中水池反应对象的架构定义", "operationId": "get_network_schemas_tank_reaction", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": { "type": "object" }, "title": "Response Get Network Schemas Tank Reaction", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取水池反应架构", "tags": [ "Quality" ] } }, "/api/v1/network-schemas/time": { "get": { "description": "获取网络中时间选项的架构定义", "operationId": "get_network_schemas_time", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": { "type": "object" }, "title": "Response Get Network Schemas Time", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取时间选项架构", "tags": [ "Options" ] } }, "/api/v1/network-schemas/valve": { "get": { "description": "获取指定水网中所有阀门的架构和字段定义", "operationId": "get_network_schemas_valve", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": { "type": "object" }, "title": "Response Get Network Schemas Valve", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取阀门架构", "tags": [ "Valves" ] } }, "/api/v1/network-schemas/vertex": { "get": { "description": "获取网络中图形元素对象的架构定义", "operationId": "get_network_schemas_vertex", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": { "type": "object" }, "title": "Response Get Network Schemas Vertex", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取图形元素架构", "tags": [ "Visuals" ] } }, "/api/v1/node-coords": { "get": { "description": "获取指定节点的地理坐标(X, Y)", "operationId": "get_node_coords", "parameters": [ { "description": "节点ID", "in": "query", "name": "node", "required": true, "schema": { "description": "节点ID", "title": "Node", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "anyOf": [ { "additionalProperties": { "type": "number" }, "type": "object" }, { "type": "null" } ], "title": "Response Get Node Coords" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取节点坐标", "tags": [ "Geometry & Coordinates" ] } }, "/api/v1/node-links": { "get": { "description": "获取指定节点连接的所有管线ID列表", "operationId": "get_node_links", "parameters": [ { "description": "节点ID", "in": "query", "name": "node", "required": true, "schema": { "description": "节点ID", "title": "Node", "type": "string" } }, { "in": "query", "name": "limit", "required": false, "schema": { "default": 100, "maximum": 1000, "minimum": 1, "title": "Limit", "type": "integer" } }, { "in": "query", "name": "offset", "required": false, "schema": { "default": 0, "minimum": 0, "title": "Offset", "type": "integer" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Page_str_" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取节点的关联管线", "tags": [ "Network General" ] } }, "/api/v1/node-properties": { "get": { "description": "获取指定节点的所有属性信息", "operationId": "get_node_properties", "parameters": [ { "description": "节点ID", "in": "query", "name": "node", "required": true, "schema": { "description": "节点ID", "title": "Node", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Node Properties", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取节点属性", "tags": [ "Network General" ] } }, "/api/v1/node-types": { "get": { "description": "获取指定节点的类型(接点/水源/蓄水池)", "operationId": "get_node_types", "parameters": [ { "description": "节点ID", "in": "query", "name": "node", "required": true, "schema": { "description": "节点ID", "title": "Node", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Node Types", "type": "string" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取节点类型", "tags": [ "Network General" ] } }, "/api/v1/nodes": { "delete": { "description": "删除指定的节点(接点/水源/蓄水池)", "operationId": "delete_nodes", "parameters": [ { "description": "节点ID", "in": "query", "name": "node", "required": true, "schema": { "description": "节点ID", "title": "Node", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "204": { "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "删除节点", "tags": [ "Network General" ] }, "get": { "description": "获取指定水网中的所有节点ID列表", "operationId": "get_nodes", "parameters": [ { "in": "query", "name": "limit", "required": false, "schema": { "default": 100, "maximum": 1000, "minimum": 1, "title": "Limit", "type": "integer" } }, { "in": "query", "name": "offset", "required": false, "schema": { "default": 0, "minimum": 0, "title": "Offset", "type": "integer" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Page_str_" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取所有节点", "tags": [ "Network General" ] } }, "/api/v1/nodes/existence": { "get": { "description": "检查指定ID是否为水网中的有效节点", "operationId": "get_nodes_existence", "parameters": [ { "description": "节点ID", "in": "query", "name": "node", "required": true, "schema": { "description": "节点ID", "title": "Node", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Nodes Existence", "type": "boolean" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "检查节点有效性", "tags": [ "Network General" ] } }, "/api/v1/operational-task-notifications": { "get": { "operationId": "get_operational_task_notifications", "parameters": [ { "in": "query", "name": "unread_only", "required": false, "schema": { "default": false, "title": "Unread Only", "type": "boolean" } }, { "in": "query", "name": "limit", "required": false, "schema": { "default": 50, "maximum": 100, "minimum": 1, "title": "Limit", "type": "integer" } }, { "in": "query", "name": "offset", "required": false, "schema": { "default": 0, "minimum": 0, "title": "Offset", "type": "integer" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OperationalTaskNotificationPage" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "List Operational Task Notifications", "tags": [ "Operational Tasks" ] } }, "/api/v1/operational-task-notifications/{notification_id}/acknowledge": { "post": { "operationId": "post_operational_task_notifications_notification_id_acknowledge", "parameters": [ { "in": "path", "name": "notification_id", "required": true, "schema": { "format": "uuid", "title": "Notification Id", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NotificationAcknowledgeCommand" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OperationalTaskNotification" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Acknowledge Operational Task Notification", "tags": [ "Operational Tasks" ] } }, "/api/v1/operational-task-runs": { "get": { "operationId": "get_operational_task_runs", "parameters": [ { "in": "query", "name": "status", "required": false, "schema": { "anyOf": [ { "enum": [ "queued", "claimed", "running", "succeeded", "failed", "timed_out", "cancelled" ], "type": "string" }, { "type": "null" } ], "title": "Status" } }, { "in": "query", "name": "limit", "required": false, "schema": { "default": 50, "maximum": 100, "minimum": 1, "title": "Limit", "type": "integer" } }, { "in": "query", "name": "cursor", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Cursor" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OperationalTaskRunPage" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "List Operational Task Runs", "tags": [ "Operational Tasks" ] } }, "/api/v1/operational-tasks": { "get": { "operationId": "get_operational_tasks", "parameters": [ { "in": "query", "name": "task_type", "required": false, "schema": { "anyOf": [ { "enum": [ "scheduled_flow", "external_work_order", "event_investigation" ], "type": "string" }, { "type": "null" } ], "title": "Task Type" } }, { "in": "query", "name": "status", "required": false, "schema": { "anyOf": [ { "enum": [ "queued", "running", "waiting_human", "completed", "failed", "cancelled" ], "type": "string" }, { "type": "null" } ], "title": "Status" } }, { "in": "query", "name": "limit", "required": false, "schema": { "default": 50, "maximum": 100, "minimum": 1, "title": "Limit", "type": "integer" } }, { "in": "query", "name": "offset", "required": false, "schema": { "default": 0, "minimum": 0, "title": "Offset", "type": "integer" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OperationalTaskPage" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "List Operational Tasks", "tags": [ "Operational Tasks" ] }, "post": { "operationId": "post_operational_tasks", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OperationalTaskCreate" } } }, "required": true }, "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OperationalTaskDetail" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Create Operational Task", "tags": [ "Operational Tasks" ] } }, "/api/v1/operational-tasks/leases/recover": { "post": { "operationId": "post_operational_tasks_leases_recover", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RecoverExpiredLeasesCommand" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RecoverExpiredLeasesResult" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Recover Operational Task Leases", "tags": [ "Operational Tasks" ] } }, "/api/v1/operational-tasks/schedules": { "get": { "operationId": "get_operational_tasks_schedules", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OperationalTaskSchedulePage" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "List Operational Schedules", "tags": [ "Operational Tasks" ] }, "post": { "operationId": "post_operational_tasks_schedules", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OperationalTaskScheduleCreate" } } }, "required": true }, "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OperationalTaskSchedule" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Create Operational Schedule", "tags": [ "Operational Tasks" ] } }, "/api/v1/operational-tasks/schedules/dispatch-due": { "post": { "operationId": "post_operational_tasks_schedules_dispatch_due", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DispatchDueSchedulesCommand" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DispatchDueSchedulesResult" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Dispatch Due Operational Schedules", "tags": [ "Operational Tasks" ] } }, "/api/v1/operational-tasks/schedules/{schedule_id}": { "patch": { "operationId": "patch_operational_tasks_schedules_schedule_id", "parameters": [ { "in": "path", "name": "schedule_id", "required": true, "schema": { "format": "uuid", "title": "Schedule Id", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OperationalTaskScheduleUpdate" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OperationalTaskSchedule" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Update Operational Schedule", "tags": [ "Operational Tasks" ] } }, "/api/v1/operational-tasks/{task_id}": { "get": { "operationId": "get_operational_tasks_task_id", "parameters": [ { "in": "path", "name": "task_id", "required": true, "schema": { "format": "uuid", "title": "Task Id", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OperationalTaskDetail" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Get Operational Task", "tags": [ "Operational Tasks" ] } }, "/api/v1/operational-tasks/{task_id}/access-requests": { "post": { "operationId": "post_operational_tasks_task_id_access_requests", "parameters": [ { "in": "path", "name": "task_id", "required": true, "schema": { "format": "uuid", "title": "Task Id", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TaskAccessRequestCreate" } } }, "required": true }, "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TaskAccessRequest" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Request Operational Task Access", "tags": [ "Operational Tasks" ] } }, "/api/v1/operational-tasks/{task_id}/access-requests/{access_request_id}/decision": { "post": { "operationId": "post_operational_tasks_task_id_access_requests_access_request_id_decision", "parameters": [ { "in": "path", "name": "task_id", "required": true, "schema": { "format": "uuid", "title": "Task Id", "type": "string" } }, { "in": "path", "name": "access_request_id", "required": true, "schema": { "format": "uuid", "title": "Access Request Id", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TaskAccessRequestDecision" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TaskAccessRequest" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Decide Operational Task Access", "tags": [ "Operational Tasks" ] } }, "/api/v1/operational-tasks/{task_id}/actions": { "post": { "operationId": "post_operational_tasks_task_id_actions", "parameters": [ { "in": "path", "name": "task_id", "required": true, "schema": { "format": "uuid", "title": "Task Id", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ActionProposalCommand" } } }, "required": true }, "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HumanApprovalAction" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Propose Operational Task Action", "tags": [ "Operational Tasks" ] } }, "/api/v1/operational-tasks/{task_id}/actions/{action_id}/confirm-dispatch": { "post": { "operationId": "post_operational_tasks_task_id_actions_action_id_confirm_dispatch", "parameters": [ { "in": "path", "name": "task_id", "required": true, "schema": { "format": "uuid", "title": "Task Id", "type": "string" } }, { "in": "path", "name": "action_id", "required": true, "schema": { "format": "uuid", "title": "Action Id", "type": "string" } }, { "in": "header", "name": "Authorization", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WorkOrderConfirmDispatchCommand" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HumanApprovalAction" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Confirm Operational Work Order Dispatch", "tags": [ "Operational Tasks" ] } }, "/api/v1/operational-tasks/{task_id}/actions/{action_id}/decision": { "post": { "operationId": "post_operational_tasks_task_id_actions_action_id_decision", "parameters": [ { "in": "path", "name": "task_id", "required": true, "schema": { "format": "uuid", "title": "Task Id", "type": "string" } }, { "in": "path", "name": "action_id", "required": true, "schema": { "format": "uuid", "title": "Action Id", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ActionDecisionCommand" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HumanApprovalAction" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Decide Operational Task Action", "tags": [ "Operational Tasks" ] } }, "/api/v1/operational-tasks/{task_id}/actions/{action_id}/draft": { "patch": { "operationId": "patch_operational_tasks_task_id_actions_action_id_draft", "parameters": [ { "in": "path", "name": "task_id", "required": true, "schema": { "format": "uuid", "title": "Task Id", "type": "string" } }, { "in": "path", "name": "action_id", "required": true, "schema": { "format": "uuid", "title": "Action Id", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WorkOrderDraftUpdateCommand" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HumanApprovalAction" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Update Operational Work Order Draft", "tags": [ "Operational Tasks" ] } }, "/api/v1/operational-tasks/{task_id}/actions/{action_id}/execute": { "post": { "operationId": "post_operational_tasks_task_id_actions_action_id_execute", "parameters": [ { "in": "path", "name": "task_id", "required": true, "schema": { "format": "uuid", "title": "Task Id", "type": "string" } }, { "in": "path", "name": "action_id", "required": true, "schema": { "format": "uuid", "title": "Action Id", "type": "string" } }, { "in": "header", "name": "Authorization", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ActionExecuteCommand" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HumanApprovalAction" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Execute Operational Task Action", "tags": [ "Operational Tasks" ] } }, "/api/v1/operational-tasks/{task_id}/actions/{action_id}/reconcile": { "post": { "operationId": "post_operational_tasks_task_id_actions_action_id_reconcile", "parameters": [ { "in": "path", "name": "task_id", "required": true, "schema": { "format": "uuid", "title": "Task Id", "type": "string" } }, { "in": "path", "name": "action_id", "required": true, "schema": { "format": "uuid", "title": "Action Id", "type": "string" } }, { "in": "header", "name": "Authorization", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ActionReconcileCommand" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HumanApprovalAction" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Reconcile Operational Task Action", "tags": [ "Operational Tasks" ] } }, "/api/v1/operational-tasks/{task_id}/agent-artifacts": { "post": { "operationId": "post_operational_tasks_task_id_agent_artifacts", "parameters": [ { "in": "path", "name": "task_id", "required": true, "schema": { "format": "uuid", "title": "Task Id", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentArtifactsCommand" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentArtifactsResult" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Publish Operational Task Artifacts", "tags": [ "Operational Tasks" ] } }, "/api/v1/operational-tasks/{task_id}/agent-context": { "get": { "operationId": "get_operational_tasks_task_id_agent_context", "parameters": [ { "in": "path", "name": "task_id", "required": true, "schema": { "format": "uuid", "title": "Task Id", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentTaskContext" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Get Operational Task Agent Context", "tags": [ "Operational Tasks" ] } }, "/api/v1/operational-tasks/{task_id}/data-query": { "post": { "operationId": "post_operational_tasks_task_id_data_query", "parameters": [ { "in": "path", "name": "task_id", "required": true, "schema": { "format": "uuid", "title": "Task Id", "type": "string" } }, { "in": "header", "name": "Authorization", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TaskDataQuery" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TaskDataQueryResult" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Query Operational Task Data", "tags": [ "Operational Tasks" ] } }, "/api/v1/operational-tasks/{task_id}/evidence/{evidence_id}/snapshot": { "get": { "operationId": "get_operational_tasks_task_id_evidence_evidence_id_snapshot", "parameters": [ { "in": "path", "name": "task_id", "required": true, "schema": { "format": "uuid", "title": "Task Id", "type": "string" } }, { "in": "path", "name": "evidence_id", "required": true, "schema": { "title": "Evidence Id", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TaskDataSnapshot" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Get Operational Task Data Snapshot", "tags": [ "Operational Tasks" ] } }, "/api/v1/operational-tasks/{task_id}/external-feedback": { "post": { "operationId": "post_operational_tasks_task_id_external_feedback", "parameters": [ { "in": "path", "name": "task_id", "required": true, "schema": { "format": "uuid", "title": "Task Id", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExternalFeedbackCommand" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExternalFeedbackResult" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Synchronize Operational Task Feedback", "tags": [ "Operational Tasks" ] } }, "/api/v1/operational-tasks/{task_id}/human-evidence": { "post": { "operationId": "post_operational_tasks_task_id_human_evidence", "parameters": [ { "in": "path", "name": "task_id", "required": true, "schema": { "format": "uuid", "title": "Task Id", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HumanEvidenceCommand" } } }, "required": true }, "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OperationalTaskDetail" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Add Operational Task Human Evidence", "tags": [ "Operational Tasks" ] } }, "/api/v1/operational-tasks/{task_id}/retry": { "post": { "operationId": "post_operational_tasks_task_id_retry", "parameters": [ { "in": "path", "name": "task_id", "required": true, "schema": { "format": "uuid", "title": "Task Id", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OperationalTaskRetryCommand" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OperationalTaskDetail" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Retry Operational Task", "tags": [ "Operational Tasks" ] } }, "/api/v1/operational-tasks/{task_id}/runs/{run_id}/cancel": { "post": { "operationId": "post_operational_tasks_task_id_runs_run_id_cancel", "parameters": [ { "in": "path", "name": "task_id", "required": true, "schema": { "format": "uuid", "title": "Task Id", "type": "string" } }, { "in": "path", "name": "run_id", "required": true, "schema": { "format": "uuid", "title": "Run Id", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentRunCancelCommand" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OperationalTaskDetail" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Cancel Operational Task Run", "tags": [ "Operational Tasks" ] } }, "/api/v1/operational-tasks/{task_id}/runs/{run_id}/claim": { "post": { "operationId": "post_operational_tasks_task_id_runs_run_id_claim", "parameters": [ { "in": "path", "name": "task_id", "required": true, "schema": { "format": "uuid", "title": "Task Id", "type": "string" } }, { "in": "path", "name": "run_id", "required": true, "schema": { "format": "uuid", "title": "Run Id", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentRunCommand" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OperationalTaskRun" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Claim Operational Task Run", "tags": [ "Operational Tasks" ] } }, "/api/v1/operational-tasks/{task_id}/runs/{run_id}/complete": { "post": { "operationId": "post_operational_tasks_task_id_runs_run_id_complete", "parameters": [ { "in": "path", "name": "task_id", "required": true, "schema": { "format": "uuid", "title": "Task Id", "type": "string" } }, { "in": "path", "name": "run_id", "required": true, "schema": { "format": "uuid", "title": "Run Id", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentRunCommand" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OperationalTaskDetail" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Complete Operational Task Run", "tags": [ "Operational Tasks" ] } }, "/api/v1/operational-tasks/{task_id}/runs/{run_id}/dispatch-failure": { "post": { "operationId": "post_operational_tasks_task_id_runs_run_id_dispatch_failure", "parameters": [ { "in": "path", "name": "task_id", "required": true, "schema": { "format": "uuid", "title": "Task Id", "type": "string" } }, { "in": "path", "name": "run_id", "required": true, "schema": { "format": "uuid", "title": "Run Id", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentRunDispatchFailureCommand" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OperationalTaskRun" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Record Operational Task Run Dispatch Failure", "tags": [ "Operational Tasks" ] } }, "/api/v1/operational-tasks/{task_id}/runs/{run_id}/fail": { "post": { "operationId": "post_operational_tasks_task_id_runs_run_id_fail", "parameters": [ { "in": "path", "name": "task_id", "required": true, "schema": { "format": "uuid", "title": "Task Id", "type": "string" } }, { "in": "path", "name": "run_id", "required": true, "schema": { "format": "uuid", "title": "Run Id", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentRunFailureCommand" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OperationalTaskDetail" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Fail Operational Task Run", "tags": [ "Operational Tasks" ] } }, "/api/v1/operational-tasks/{task_id}/runs/{run_id}/heartbeat": { "post": { "operationId": "post_operational_tasks_task_id_runs_run_id_heartbeat", "parameters": [ { "in": "path", "name": "task_id", "required": true, "schema": { "format": "uuid", "title": "Task Id", "type": "string" } }, { "in": "path", "name": "run_id", "required": true, "schema": { "format": "uuid", "title": "Run Id", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentRunCommand" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OperationalTaskRun" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Heartbeat Operational Task Run", "tags": [ "Operational Tasks" ] } }, "/api/v1/operational-tasks/{task_id}/withdraw-external-source": { "post": { "operationId": "post_operational_tasks_task_id_withdraw_external_source", "parameters": [ { "in": "path", "name": "task_id", "required": true, "schema": { "format": "uuid", "title": "Task Id", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExternalSourceWithdrawalCommand" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OperationalTaskDetail" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Withdraw Operational Task External Source", "tags": [ "Operational Tasks" ] } }, "/api/v1/patterns": { "delete": { "description": "从网络中删除指定的模式", "operationId": "delete_patterns", "parameters": [ { "description": "模式ID", "in": "query", "name": "pattern", "required": true, "schema": { "description": "模式ID", "title": "Pattern", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "204": { "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "删除模式", "tags": [ "Patterns" ] }, "get": { "description": "获取网络中的所有模式列表", "operationId": "get_patterns", "parameters": [ { "in": "query", "name": "limit", "required": false, "schema": { "default": 100, "maximum": 1000, "minimum": 1, "title": "Limit", "type": "integer" } }, { "in": "query", "name": "offset", "required": false, "schema": { "default": 0, "minimum": 0, "title": "Offset", "type": "integer" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Page_str_" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取所有模式", "tags": [ "Patterns" ] }, "post": { "description": "在网络中添加一个新的模式", "operationId": "post_patterns", "parameters": [ { "description": "模式ID", "in": "query", "name": "pattern", "required": true, "schema": { "description": "模式ID", "title": "Pattern", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "title": "Payload", "type": "object" } } }, "required": true }, "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "添加模式", "tags": [ "Patterns" ] } }, "/api/v1/patterns/existence": { "get": { "description": "检查指定的模式是否存在", "operationId": "get_patterns_existence", "parameters": [ { "description": "模式ID", "in": "query", "name": "pattern", "required": true, "schema": { "description": "模式ID", "title": "Pattern", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Patterns Existence", "type": "boolean" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "检查模式存在性", "tags": [ "Patterns" ] } }, "/api/v1/patterns/properties": { "get": { "description": "获取指定模式的属性信息", "operationId": "get_patterns_properties", "parameters": [ { "description": "模式ID", "in": "query", "name": "pattern", "required": true, "schema": { "description": "模式ID", "title": "Pattern", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Patterns Properties", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取模式属性", "tags": [ "Patterns" ] }, "patch": { "description": "更新指定模式的属性", "operationId": "patch_patterns_properties", "parameters": [ { "description": "模式ID", "in": "query", "name": "pattern", "required": true, "schema": { "description": "模式ID", "title": "Pattern", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "title": "Payload", "type": "object" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置模式属性", "tags": [ "Patterns" ] } }, "/api/v1/pipe-reactions": { "patch": { "description": "更新指定管道的反应属性", "operationId": "patch_pipe_reactions", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "title": "Payload", "type": "object" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置管道反应属性", "tags": [ "Quality" ] } }, "/api/v1/pipe-reactions/detail": { "get": { "description": "获取指定管道的反应属性信息", "operationId": "get_pipe_reactions_detail", "parameters": [ { "description": "管道ID", "in": "query", "name": "pipe", "required": true, "schema": { "description": "管道ID", "title": "Pipe", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Pipe Reactions Detail", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取管道反应属性", "tags": [ "Quality" ] } }, "/api/v1/pipeline-health-predictions": { "get": { "description": "预测管道健康状况\n\n根据管网名称和当前时间,查询管道信息和实时数据,\n使用随机生存森林模型预测管道的生存概率。\n\nArgs:\n query_time: 查询时间\n timescale_conn: TimescaleDB连接\n\nReturns:\n 预测结果列表,每个元素包含 link_id 和对应的生存函数\n\nRaises:\n HTTPException: 当模型文件不存在返回404错误,其他错误返回400或500错误", "operationId": "get_pipeline_health_predictions", "parameters": [ { "description": "查询时间", "in": "query", "name": "query_time", "required": true, "schema": { "description": "查询时间", "format": "date-time", "title": "Query Time", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "预测管道健康状况", "tags": [ "TimescaleDB - Composite" ] } }, "/api/v1/pipes": { "delete": { "description": "从网络中删除指定的管道", "operationId": "delete_pipes", "parameters": [ { "description": "要删除的管道ID", "in": "query", "name": "pipe", "required": true, "schema": { "description": "要删除的管道ID", "title": "Pipe", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "204": { "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "删除管道", "tags": [ "Pipes" ] }, "get": { "description": "获取网络中所有管道的属性信息列表", "operationId": "get_pipes", "parameters": [ { "in": "query", "name": "limit", "required": false, "schema": { "default": 100, "maximum": 1000, "minimum": 1, "title": "Limit", "type": "integer" } }, { "in": "query", "name": "offset", "required": false, "schema": { "default": 0, "minimum": 0, "title": "Offset", "type": "integer" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Page_dict_str__Any__" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取所有管道属性", "tags": [ "Pipes" ] }, "post": { "description": "向网络中添加新的管道,需要提供管道的基本参数如长度、管径、粗糙度等", "operationId": "post_pipes", "parameters": [ { "description": "管道标识符", "in": "query", "name": "pipe", "required": true, "schema": { "description": "管道标识符", "title": "Pipe", "type": "string" } }, { "description": "管道起始节点ID", "in": "query", "name": "node1", "required": true, "schema": { "description": "管道起始节点ID", "title": "Node1", "type": "string" } }, { "description": "管道终止节点ID", "in": "query", "name": "node2", "required": true, "schema": { "description": "管道终止节点ID", "title": "Node2", "type": "string" } }, { "description": "管道长度(单位:米)", "in": "query", "name": "length", "required": false, "schema": { "default": 0, "description": "管道长度(单位:米)", "title": "Length", "type": "number" } }, { "description": "管道管径(单位:毫米)", "in": "query", "name": "diameter", "required": false, "schema": { "default": 0, "description": "管道管径(单位:毫米)", "title": "Diameter", "type": "number" } }, { "description": "管道粗糙度", "in": "query", "name": "roughness", "required": false, "schema": { "default": 0, "description": "管道粗糙度", "title": "Roughness", "type": "number" } }, { "description": "管道局部阻力系数", "in": "query", "name": "minor_loss", "required": false, "schema": { "default": 0, "description": "管道局部阻力系数", "title": "Minor Loss", "type": "number" } }, { "description": "管道状态(开启/关闭)", "in": "query", "name": "status", "required": false, "schema": { "default": "OPEN", "description": "管道状态(开启/关闭)", "title": "Status", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "添加管道", "tags": [ "Pipes" ] } }, "/api/v1/pipes/diameter": { "get": { "description": "获取指定管道的管径", "operationId": "get_pipes_diameter", "parameters": [ { "description": "管道ID", "in": "query", "name": "pipe", "required": true, "schema": { "description": "管道ID", "title": "Pipe", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Response Get Pipes Diameter" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取管道管径", "tags": [ "Pipes" ] }, "patch": { "description": "设置指定管道的管径", "operationId": "patch_pipes_diameter", "parameters": [ { "description": "管道ID", "in": "query", "name": "pipe", "required": true, "schema": { "description": "管道ID", "title": "Pipe", "type": "string" } }, { "description": "新的管道管径(单位:毫米)", "in": "query", "name": "diameter", "required": true, "schema": { "description": "新的管道管径(单位:毫米)", "title": "Diameter", "type": "number" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置管道管径", "tags": [ "Pipes" ] } }, "/api/v1/pipes/existence": { "get": { "description": "检查指定ID是否为水网中的管道", "operationId": "get_pipes_existence", "parameters": [ { "description": "管线ID", "in": "query", "name": "link", "required": true, "schema": { "description": "管线ID", "title": "Link", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Pipes Existence", "type": "boolean" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "检查是否为管道", "tags": [ "Network General" ] } }, "/api/v1/pipes/length": { "get": { "description": "获取指定管道的长度", "operationId": "get_pipes_length", "parameters": [ { "description": "管道ID", "in": "query", "name": "pipe", "required": true, "schema": { "description": "管道ID", "title": "Pipe", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Response Get Pipes Length" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取管道长度", "tags": [ "Pipes" ] }, "patch": { "description": "设置指定管道的长度", "operationId": "patch_pipes_length", "parameters": [ { "description": "管道ID", "in": "query", "name": "pipe", "required": true, "schema": { "description": "管道ID", "title": "Pipe", "type": "string" } }, { "description": "新的管道长度(单位:米)", "in": "query", "name": "length", "required": true, "schema": { "description": "新的管道长度(单位:米)", "title": "Length", "type": "number" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置管道长度", "tags": [ "Pipes" ] } }, "/api/v1/pipes/minor-loss": { "get": { "description": "获取指定管道的局部阻力系数", "operationId": "get_pipes_minor_loss", "parameters": [ { "description": "管道ID", "in": "query", "name": "pipe", "required": true, "schema": { "description": "管道ID", "title": "Pipe", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Response Get Pipes Minor Loss" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取管道局部阻力系数", "tags": [ "Pipes" ] }, "patch": { "description": "设置指定管道的局部阻力系数", "operationId": "patch_pipes_minor_loss", "parameters": [ { "description": "管道ID", "in": "query", "name": "pipe", "required": true, "schema": { "description": "管道ID", "title": "Pipe", "type": "string" } }, { "description": "新的局部阻力系数值", "in": "query", "name": "minor_loss", "required": true, "schema": { "description": "新的局部阻力系数值", "title": "Minor Loss", "type": "number" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置管道局部阻力系数", "tags": [ "Pipes" ] } }, "/api/v1/pipes/node1": { "get": { "description": "获取指定管道的起始节点ID", "operationId": "get_pipes_node1", "parameters": [ { "description": "管道ID", "in": "query", "name": "pipe", "required": true, "schema": { "description": "管道ID", "title": "Pipe", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Response Get Pipes Node1" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取管道起始节点", "tags": [ "Pipes" ] }, "patch": { "description": "设置指定管道的起始节点", "operationId": "patch_pipes_node1", "parameters": [ { "description": "管道ID", "in": "query", "name": "pipe", "required": true, "schema": { "description": "管道ID", "title": "Pipe", "type": "string" } }, { "description": "新的起始节点ID", "in": "query", "name": "node1", "required": true, "schema": { "description": "新的起始节点ID", "title": "Node1", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置管道起始节点", "tags": [ "Pipes" ] } }, "/api/v1/pipes/node2": { "get": { "description": "获取指定管道的终止节点ID", "operationId": "get_pipes_node2", "parameters": [ { "description": "管道ID", "in": "query", "name": "pipe", "required": true, "schema": { "description": "管道ID", "title": "Pipe", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Response Get Pipes Node2" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取管道终止节点", "tags": [ "Pipes" ] }, "patch": { "description": "设置指定管道的终止节点", "operationId": "patch_pipes_node2", "parameters": [ { "description": "管道ID", "in": "query", "name": "pipe", "required": true, "schema": { "description": "管道ID", "title": "Pipe", "type": "string" } }, { "description": "新的终止节点ID", "in": "query", "name": "node2", "required": true, "schema": { "description": "新的终止节点ID", "title": "Node2", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置管道终止节点", "tags": [ "Pipes" ] } }, "/api/v1/pipes/properties": { "get": { "description": "获取指定管道的所有属性信息", "operationId": "get_pipes_properties", "parameters": [ { "description": "管道ID", "in": "query", "name": "pipe", "required": true, "schema": { "description": "管道ID", "title": "Pipe", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Pipes Properties", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取管道属性", "tags": [ "Pipes" ] }, "patch": { "description": "批量设置指定管道的多个属性", "operationId": "patch_pipes_properties", "parameters": [ { "description": "管道ID", "in": "query", "name": "pipe", "required": true, "schema": { "description": "管道ID", "title": "Pipe", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "title": "Payload", "type": "object" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置管道属性", "tags": [ "Pipes" ] } }, "/api/v1/pipes/roughness": { "get": { "description": "获取指定管道的粗糙度", "operationId": "get_pipes_roughness", "parameters": [ { "description": "管道ID", "in": "query", "name": "pipe", "required": true, "schema": { "description": "管道ID", "title": "Pipe", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Response Get Pipes Roughness" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取管道粗糙度", "tags": [ "Pipes" ] }, "patch": { "description": "设置指定管道的粗糙度", "operationId": "patch_pipes_roughness", "parameters": [ { "description": "管道ID", "in": "query", "name": "pipe", "required": true, "schema": { "description": "管道ID", "title": "Pipe", "type": "string" } }, { "description": "新的管道粗糙度值", "in": "query", "name": "roughness", "required": true, "schema": { "description": "新的管道粗糙度值", "title": "Roughness", "type": "number" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置管道粗糙度", "tags": [ "Pipes" ] } }, "/api/v1/pipes/status": { "get": { "description": "获取指定管道的状态(开启或关闭)", "operationId": "get_pipes_status", "parameters": [ { "description": "管道ID", "in": "query", "name": "pipe", "required": true, "schema": { "description": "管道ID", "title": "Pipe", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Response Get Pipes Status" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取管道状态", "tags": [ "Pipes" ] }, "patch": { "description": "设置指定管道的状态(开启或关闭)", "operationId": "patch_pipes_status", "parameters": [ { "description": "管道ID", "in": "query", "name": "pipe", "required": true, "schema": { "description": "管道ID", "title": "Pipe", "type": "string" } }, { "description": "新的管道状态(开启/关闭)", "in": "query", "name": "status", "required": true, "schema": { "description": "新的管道状态(开启/关闭)", "title": "Status", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置管道状态", "tags": [ "Pipes" ] } }, "/api/v1/pressure-regulation-analyses": { "post": { "description": "高级版本的压力调节分析,通过JSON请求体提供详细的控制参数,包括固定泵和变速泵的独立控制、水箱初始水位等。", "operationId": "post_pressure_regulation_analyses", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PressureRegulationRest", "description": "压力调节控制参数" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Post Pressure Regulation Analyses", "type": "string" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "压力调节(高级)", "tags": [ "Simulation Control" ] } }, "/api/v1/project-return-dict-runs": { "post": { "description": "基于指定的管网项目运行标准水力模拟,返回JSON格式的字典,包含输出数据和报告文本。", "operationId": "post_project_return_dict_runs", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Post Project Return Dict Runs", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "运行项目模拟(返回字典)", "tags": [ "Simulation Control" ] } }, "/api/v1/project-runs": { "post": { "description": "基于指定的管网项目运行标准水力模拟,返回纯文本格式的模拟报告。", "operationId": "post_project_runs", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "text/plain": { "schema": { "type": "string" } } }, "description": "Successful Response" }, "401": { "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "运行项目模拟", "tags": [ "Simulation Control" ] } }, "/api/v1/projects": { "get": { "description": "获取当前用户有权限的所有项目列表", "operationId": "get_projects", "parameters": [ { "in": "query", "name": "limit", "required": false, "schema": { "default": 100, "maximum": 1000, "minimum": 1, "title": "Limit", "type": "integer" } }, { "in": "query", "name": "offset", "required": false, "schema": { "default": 0, "minimum": 0, "title": "Offset", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Page_ProjectSummaryResponse_" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "列出用户项目", "tags": [ "Metadata" ] } }, "/api/v1/projects/current": { "get": { "description": "从数据库获取项目的详细信息,包括地图范围等。", "operationId": "get_projects_current", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProjectMetaResponse" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取项目信息", "tags": [ "Project" ] } }, "/api/v1/projects/current/database-health": { "get": { "description": "检查项目数据库连接的健康状况", "operationId": "get_projects_current_database_health", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "检查数据库健康状态", "tags": [ "Metadata" ] } }, "/api/v1/projects/current/exports/change-set": { "get": { "description": "导出项目的变更集 (ChangeSet),包含顶点、SCADA 元素、DMA、SA、VD 等信息。", "operationId": "get_projects_current_exports_change_set", "parameters": [ { "description": "版本号 (通常用于增量更新)", "in": "query", "name": "version", "required": true, "schema": { "description": "版本号 (通常用于增量更新)", "title": "Version", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "导出项目为 ChangeSet", "tags": [ "Project" ] } }, "/api/v1/projects/current/metadata": { "get": { "description": "获取当前项目的元数据和配置信息", "operationId": "get_projects_current_metadata", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProjectMetaResponse" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取项目元数据", "tags": [ "Metadata" ] } }, "/api/v1/pumps": { "delete": { "description": "从网络中删除指定的水泵", "operationId": "delete_pumps", "parameters": [ { "description": "要删除的水泵ID", "in": "query", "name": "pump", "required": true, "schema": { "description": "要删除的水泵ID", "title": "Pump", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "204": { "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "删除水泵", "tags": [ "Pumps" ] }, "get": { "description": "获取网络中所有水泵的属性信息列表", "operationId": "get_pumps", "parameters": [ { "in": "query", "name": "limit", "required": false, "schema": { "default": 100, "maximum": 1000, "minimum": 1, "title": "Limit", "type": "integer" } }, { "in": "query", "name": "offset", "required": false, "schema": { "default": 0, "minimum": 0, "title": "Offset", "type": "integer" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Page_dict_str__Any__" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取所有水泵属性", "tags": [ "Pumps" ] }, "post": { "description": "向网络中添加新的水泵,需要提供水泵的基本参数如功率等", "operationId": "post_pumps", "parameters": [ { "description": "水泵标识符", "in": "query", "name": "pump", "required": true, "schema": { "description": "水泵标识符", "title": "Pump", "type": "string" } }, { "description": "水泵起始节点ID", "in": "query", "name": "node1", "required": true, "schema": { "description": "水泵起始节点ID", "title": "Node1", "type": "string" } }, { "description": "水泵终止节点ID", "in": "query", "name": "node2", "required": true, "schema": { "description": "水泵终止节点ID", "title": "Node2", "type": "string" } }, { "description": "水泵功率(单位:千瓦)", "in": "query", "name": "power", "required": false, "schema": { "default": 0.0, "description": "水泵功率(单位:千瓦)", "title": "Power", "type": "number" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "添加水泵", "tags": [ "Pumps" ] } }, "/api/v1/pumps/existence": { "get": { "description": "检查指定ID是否为水网中的泵", "operationId": "get_pumps_existence", "parameters": [ { "description": "管线ID", "in": "query", "name": "link", "required": true, "schema": { "description": "管线ID", "title": "Link", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Pumps Existence", "type": "boolean" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "检查是否为泵", "tags": [ "Network General" ] } }, "/api/v1/pumps/node1": { "get": { "description": "获取指定水泵的起始节点ID", "operationId": "get_pumps_node1", "parameters": [ { "description": "水泵ID", "in": "query", "name": "pump", "required": true, "schema": { "description": "水泵ID", "title": "Pump", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Response Get Pumps Node1" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取水泵起始节点", "tags": [ "Pumps" ] }, "patch": { "description": "设置指定水泵的起始节点", "operationId": "patch_pumps_node1", "parameters": [ { "description": "水泵ID", "in": "query", "name": "pump", "required": true, "schema": { "description": "水泵ID", "title": "Pump", "type": "string" } }, { "description": "新的起始节点ID", "in": "query", "name": "node1", "required": true, "schema": { "description": "新的起始节点ID", "title": "Node1", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置水泵起始节点", "tags": [ "Pumps" ] } }, "/api/v1/pumps/node2": { "get": { "description": "获取指定水泵的终止节点ID", "operationId": "get_pumps_node2", "parameters": [ { "description": "水泵ID", "in": "query", "name": "pump", "required": true, "schema": { "description": "水泵ID", "title": "Pump", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Response Get Pumps Node2" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取水泵终止节点", "tags": [ "Pumps" ] }, "patch": { "description": "设置指定水泵的终止节点", "operationId": "patch_pumps_node2", "parameters": [ { "description": "水泵ID", "in": "query", "name": "pump", "required": true, "schema": { "description": "水泵ID", "title": "Pump", "type": "string" } }, { "description": "新的终止节点ID", "in": "query", "name": "node2", "required": true, "schema": { "description": "新的终止节点ID", "title": "Node2", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置水泵终止节点", "tags": [ "Pumps" ] } }, "/api/v1/pumps/properties": { "get": { "description": "获取指定水泵的所有属性信息", "operationId": "get_pumps_properties", "parameters": [ { "description": "水泵ID", "in": "query", "name": "pump", "required": true, "schema": { "description": "水泵ID", "title": "Pump", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Pumps Properties", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取水泵属性", "tags": [ "Pumps" ] }, "patch": { "description": "批量设置指定水泵的多个属性", "operationId": "patch_pumps_properties", "parameters": [ { "description": "水泵ID", "in": "query", "name": "pump", "required": true, "schema": { "description": "水泵ID", "title": "Pump", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "title": "Payload", "type": "object" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置水泵属性", "tags": [ "Pumps" ] } }, "/api/v1/quality-configurations/properties": { "get": { "description": "获取指定节点的水质属性信息", "operationId": "get_quality_configurations_properties", "parameters": [ { "description": "节点ID", "in": "query", "name": "node", "required": true, "schema": { "description": "节点ID", "title": "Node", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Quality Configurations Properties", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取水质属性", "tags": [ "Quality" ] }, "patch": { "description": "更新指定节点的水质属性", "operationId": "patch_quality_configurations_properties", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "title": "Payload", "type": "object" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置水质属性", "tags": [ "Quality" ] } }, "/api/v1/reactions": { "patch": { "description": "更新指定网络中的反应属性", "operationId": "patch_reactions", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "title": "Payload", "type": "object" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置反应属性", "tags": [ "Quality" ] } }, "/api/v1/reactions/detail": { "get": { "description": "获取指定网络中的反应属性信息", "operationId": "get_reactions_detail", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Reactions Detail", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取反应属性", "tags": [ "Quality" ] } }, "/api/v1/regions": { "delete": { "operationId": "delete_regions", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "title": "Payload", "type": "object" } } }, "required": true }, "responses": { "204": { "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "删除区域", "tags": [ "Regions & DMAs" ] }, "get": { "operationId": "get_regions", "parameters": [ { "in": "query", "name": "limit", "required": false, "schema": { "default": 100, "maximum": 1000, "minimum": 1, "title": "Limit", "type": "integer" } }, { "in": "query", "name": "offset", "required": false, "schema": { "default": 0, "minimum": 0, "title": "Offset", "type": "integer" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Page_dict_str__Any__" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取区域列表", "tags": [ "Regions & DMAs" ] }, "patch": { "operationId": "patch_regions", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "title": "Payload", "type": "object" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "修改区域", "tags": [ "Regions & DMAs" ] }, "post": { "operationId": "post_regions", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "title": "Payload", "type": "object" } } }, "required": true }, "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "添加区域", "tags": [ "Regions & DMAs" ] } }, "/api/v1/regions/detail": { "get": { "operationId": "get_regions_detail", "parameters": [ { "description": "区域 ID", "in": "query", "name": "id", "required": true, "schema": { "description": "区域 ID", "title": "Id", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Regions Detail", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取区域信息", "tags": [ "Regions & DMAs" ] } }, "/api/v1/regions/nodes": { "get": { "operationId": "get_regions_nodes", "parameters": [ { "description": "区域 ID", "in": "query", "name": "id", "required": true, "schema": { "description": "区域 ID", "title": "Id", "type": "string" } }, { "in": "query", "name": "limit", "required": false, "schema": { "default": 100, "maximum": 1000, "minimum": 1, "title": "Limit", "type": "integer" } }, { "in": "query", "name": "offset", "required": false, "schema": { "default": 0, "minimum": 0, "title": "Offset", "type": "integer" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Page_str_" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取区域节点", "tags": [ "Regions & DMAs" ] } }, "/api/v1/reservoirs": { "delete": { "description": "从指定供水网络中删除指定的水库/水源节点", "operationId": "delete_reservoirs", "parameters": [ { "description": "要删除的水库的唯一标识符", "in": "query", "name": "reservoir", "required": true, "schema": { "description": "要删除的水库的唯一标识符", "title": "Reservoir", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "204": { "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "删除水库", "tags": [ "Reservoirs" ] }, "get": { "description": "获取指定供水网络中所有水库的属性", "operationId": "get_reservoirs", "parameters": [ { "in": "query", "name": "limit", "required": false, "schema": { "default": 100, "maximum": 1000, "minimum": 1, "title": "Limit", "type": "integer" } }, { "in": "query", "name": "offset", "required": false, "schema": { "default": 0, "minimum": 0, "title": "Offset", "type": "integer" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Page_dict_str__Any__" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取所有水库属性", "tags": [ "Reservoirs" ] }, "post": { "description": "在指定供水网络中添加新的水库/水源节点", "operationId": "post_reservoirs", "parameters": [ { "description": "水库的唯一标识符", "in": "query", "name": "reservoir", "required": true, "schema": { "description": "水库的唯一标识符", "title": "Reservoir", "type": "string" } }, { "description": "水库的X坐标", "in": "query", "name": "x", "required": true, "schema": { "description": "水库的X坐标", "title": "X", "type": "number" } }, { "description": "水库的Y坐标", "in": "query", "name": "y", "required": true, "schema": { "description": "水库的Y坐标", "title": "Y", "type": "number" } }, { "description": "水库的水头/总水头(米)", "in": "query", "name": "head", "required": true, "schema": { "description": "水库的水头/总水头(米)", "title": "Head", "type": "number" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "添加水库", "tags": [ "Reservoirs" ] } }, "/api/v1/reservoirs/coord": { "get": { "description": "获取指定水库的平面坐标(X和Y坐标)", "operationId": "get_reservoirs_coord", "parameters": [ { "description": "水库的唯一标识符", "in": "query", "name": "reservoir", "required": true, "schema": { "description": "水库的唯一标识符", "title": "Reservoir", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "anyOf": [ { "additionalProperties": { "type": "number" }, "type": "object" }, { "type": "null" } ], "title": "Response Get Reservoirs Coord" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取水库坐标", "tags": [ "Reservoirs" ] }, "patch": { "description": "更新指定水库的平面坐标(X和Y坐标)", "operationId": "patch_reservoirs_coord", "parameters": [ { "description": "水库的唯一标识符", "in": "query", "name": "reservoir", "required": true, "schema": { "description": "水库的唯一标识符", "title": "Reservoir", "type": "string" } }, { "description": "新的X坐标值", "in": "query", "name": "x", "required": true, "schema": { "description": "新的X坐标值", "title": "X", "type": "number" } }, { "description": "新的Y坐标值", "in": "query", "name": "y", "required": true, "schema": { "description": "新的Y坐标值", "title": "Y", "type": "number" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置水库坐标", "tags": [ "Reservoirs" ] } }, "/api/v1/reservoirs/existence": { "get": { "description": "检查指定ID是否为水网中的水源(水库/河流)", "operationId": "get_reservoirs_existence", "parameters": [ { "description": "节点ID", "in": "query", "name": "node", "required": true, "schema": { "description": "节点ID", "title": "Node", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Reservoirs Existence", "type": "boolean" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "检查是否为水源", "tags": [ "Network General" ] } }, "/api/v1/reservoirs/head": { "get": { "description": "获取指定水库的供水水头/总水头值", "operationId": "get_reservoirs_head", "parameters": [ { "description": "水库的唯一标识符", "in": "query", "name": "reservoir", "required": true, "schema": { "description": "水库的唯一标识符", "title": "Reservoir", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Response Get Reservoirs Head" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取水库水头", "tags": [ "Reservoirs" ] }, "patch": { "description": "更新指定水库的供水水头/总水头值", "operationId": "patch_reservoirs_head", "parameters": [ { "description": "水库的唯一标识符", "in": "query", "name": "reservoir", "required": true, "schema": { "description": "水库的唯一标识符", "title": "Reservoir", "type": "string" } }, { "description": "新的水头值(米)", "in": "query", "name": "head", "required": true, "schema": { "description": "新的水头值(米)", "title": "Head", "type": "number" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置水库水头", "tags": [ "Reservoirs" ] } }, "/api/v1/reservoirs/pattern": { "get": { "description": "获取指定水库的运行模式/供水模式", "operationId": "get_reservoirs_pattern", "parameters": [ { "description": "水库的唯一标识符", "in": "query", "name": "reservoir", "required": true, "schema": { "description": "水库的唯一标识符", "title": "Reservoir", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Response Get Reservoirs Pattern" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取水库模式", "tags": [ "Reservoirs" ] }, "patch": { "description": "更新指定水库的运行模式/供水模式", "operationId": "patch_reservoirs_pattern", "parameters": [ { "description": "水库的唯一标识符", "in": "query", "name": "reservoir", "required": true, "schema": { "description": "水库的唯一标识符", "title": "Reservoir", "type": "string" } }, { "description": "新的运行模式", "in": "query", "name": "pattern", "required": true, "schema": { "description": "新的运行模式", "title": "Pattern", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置水库模式", "tags": [ "Reservoirs" ] } }, "/api/v1/reservoirs/properties": { "get": { "description": "获取指定水库的所有属性", "operationId": "get_reservoirs_properties", "parameters": [ { "description": "水库的唯一标识符", "in": "query", "name": "reservoir", "required": true, "schema": { "description": "水库的唯一标识符", "title": "Reservoir", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Reservoirs Properties", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取水库属性", "tags": [ "Reservoirs" ] }, "patch": { "description": "批量更新指定水库的多个属性", "operationId": "patch_reservoirs_properties", "parameters": [ { "description": "水库的唯一标识符", "in": "query", "name": "reservoir", "required": true, "schema": { "description": "水库的唯一标识符", "title": "Reservoir", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "title": "Payload", "type": "object" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置水库属性", "tags": [ "Reservoirs" ] } }, "/api/v1/reservoirs/x": { "get": { "description": "获取指定水库的X坐标位置", "operationId": "get_reservoirs_x", "parameters": [ { "description": "水库的唯一标识符", "in": "query", "name": "reservoir", "required": true, "schema": { "description": "水库的唯一标识符", "title": "Reservoir", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "anyOf": [ { "additionalProperties": { "type": "number" }, "type": "object" }, { "type": "null" } ], "title": "Response Get Reservoirs X" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取水库X坐标", "tags": [ "Reservoirs" ] }, "patch": { "description": "更新指定水库的X坐标位置", "operationId": "patch_reservoirs_x", "parameters": [ { "description": "水库的唯一标识符", "in": "query", "name": "reservoir", "required": true, "schema": { "description": "水库的唯一标识符", "title": "Reservoir", "type": "string" } }, { "description": "新的X坐标值", "in": "query", "name": "x", "required": true, "schema": { "description": "新的X坐标值", "title": "X", "type": "number" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置水库X坐标", "tags": [ "Reservoirs" ] } }, "/api/v1/reservoirs/y": { "get": { "description": "获取指定水库的Y坐标位置", "operationId": "get_reservoirs_y", "parameters": [ { "description": "水库的唯一标识符", "in": "query", "name": "reservoir", "required": true, "schema": { "description": "水库的唯一标识符", "title": "Reservoir", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "anyOf": [ { "additionalProperties": { "type": "number" }, "type": "object" }, { "type": "null" } ], "title": "Response Get Reservoirs Y" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取水库Y坐标", "tags": [ "Reservoirs" ] }, "patch": { "description": "更新指定水库的Y坐标位置", "operationId": "patch_reservoirs_y", "parameters": [ { "description": "水库的唯一标识符", "in": "query", "name": "reservoir", "required": true, "schema": { "description": "水库的唯一标识符", "title": "Reservoir", "type": "string" } }, { "description": "新的Y坐标值", "in": "query", "name": "y", "required": true, "schema": { "description": "新的Y坐标值", "title": "Y", "type": "number" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置水库Y坐标", "tags": [ "Reservoirs" ] } }, "/api/v1/rule-properties": { "get": { "description": "获取指定网络中的规则属性信息", "operationId": "get_rule_properties", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Rule Properties", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取规则属性", "tags": [ "Controls & Rules" ] }, "patch": { "description": "更新指定网络中的规则属性", "operationId": "patch_rule_properties", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "title": "Payload", "type": "object" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置规则属性", "tags": [ "Controls & Rules" ] } }, "/api/v1/rule-schemas": { "get": { "description": "获取网络中规则对象的架构定义", "operationId": "get_rule_schemas", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": { "type": "object" }, "title": "Response Get Rule Schemas", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取规则架构", "tags": [ "Controls & Rules" ] } }, "/api/v1/scada-devices": { "get": { "operationId": "get_scada_devices", "parameters": [ { "in": "query", "name": "limit", "required": false, "schema": { "default": 100, "maximum": 1000, "minimum": 1, "title": "Limit", "type": "integer" } }, { "in": "query", "name": "offset", "required": false, "schema": { "default": 0, "minimum": 0, "title": "Offset", "type": "integer" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Page_ScadaDeviceResponse_" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取 SCADA 设备列表", "tags": [ "SCADA Metadata" ] } }, "/api/v1/scada-devices/{device_id}": { "get": { "operationId": "get_scada_devices_device_id", "parameters": [ { "in": "path", "name": "device_id", "required": true, "schema": { "title": "Device Id", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ScadaDeviceResponse" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取 SCADA 设备", "tags": [ "SCADA Metadata" ] } }, "/api/v1/scada-properties": { "get": { "description": "获取指定SCADA点的属性信息", "operationId": "get_scada_properties", "parameters": [ { "description": "SCADA点ID", "in": "query", "name": "scada", "required": true, "schema": { "description": "SCADA点ID", "title": "Scada", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Scada Properties", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取SCADA点属性", "tags": [ "Network General" ] } }, "/api/v1/sensor-placement-candidates/{node_id}": { "get": { "operationId": "get_sensor_placement_candidates_node_id", "parameters": [ { "in": "path", "name": "node_id", "required": true, "schema": { "maxLength": 32, "minLength": 1, "title": "Node Id", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SensorPointResponse" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取监测点候选节点详情", "tags": [ "Sensor Placement" ] } }, "/api/v1/sensor-placement-runs": { "get": { "operationId": "get_sensor_placement_runs", "parameters": [ { "in": "query", "name": "limit", "required": false, "schema": { "default": 100, "maximum": 1000, "minimum": 1, "title": "Limit", "type": "integer" } }, { "in": "query", "name": "offset", "required": false, "schema": { "default": 0, "minimum": 0, "title": "Offset", "type": "integer" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Page_SensorPlacementSchemeResponse_" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取监测点优化运行", "tags": [ "Sensor Placement" ] }, "post": { "operationId": "post_sensor_placement_runs", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SensorPlacementOptimizeRequestRest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SensorPlacementSchemeResponse" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "创建并返回监测点优化方案", "tags": [ "Sensor Placement" ] } }, "/api/v1/sensor-placement-runs/{run_id}": { "get": { "operationId": "get_sensor_placement_runs_run_id", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "format": "uuid", "title": "Run Id", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SensorPlacementSchemeResponse" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取监测点方案详情", "tags": [ "Sensor Placement" ] }, "put": { "operationId": "put_sensor_placement_runs_run_id", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "format": "uuid", "title": "Run Id", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SensorPlacementUpdateRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SensorPlacementSchemeResponse" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "覆盖保存监测点方案", "tags": [ "Sensor Placement" ] } }, "/api/v1/sensor-placement-runs/{run_id}/exports/excel": { "post": { "operationId": "post_sensor_placement_runs_run_id_exports_excel", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "format": "uuid", "title": "Run Id", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SensorPlacementExportRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "导出监测点工程清单", "tags": [ "Sensor Placement" ] } }, "/api/v1/simulation-runs": { "post": { "description": "根据指定的开始时间和持续时间,手动运行水力模拟。开始时间必须是显式带时区的 ISO 8601 / RFC3339 时间。", "operationId": "post_simulation_runs", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RunSimulationManuallyByDateRest", "description": "模拟运行参数" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": { "type": "string" }, "title": "Response Post Simulation Runs", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "手动运行日期指定模拟", "tags": [ "Simulation Control" ] } }, "/api/v1/source-gis/layers/{layer_key}/features/{source_fid}/properties": { "get": { "operationId": "get_source_gis_layers_layer_key_features_source_fid_properties", "parameters": [ { "in": "path", "name": "layer_key", "required": true, "schema": { "title": "Layer Key", "type": "string" } }, { "in": "path", "name": "source_fid", "required": true, "schema": { "title": "Source Fid", "type": "integer" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SourceGisFeatureProperties" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取源 GIS 要素台账属性", "tags": [ "Project Data" ] } }, "/api/v1/sources": { "delete": { "description": "从网络中删除指定节点的水源", "operationId": "delete_sources", "parameters": [ { "description": "节点ID", "in": "query", "name": "node", "required": true, "schema": { "description": "节点ID", "title": "Node", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "204": { "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "删除水源", "tags": [ "Quality" ] }, "patch": { "description": "更新指定节点的水源属性", "operationId": "patch_sources", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "title": "Payload", "type": "object" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置水源属性", "tags": [ "Quality" ] }, "post": { "description": "在网络中添加一个新的水源", "operationId": "post_sources", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "title": "Payload", "type": "object" } } }, "required": true }, "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "添加水源", "tags": [ "Quality" ] } }, "/api/v1/sources/detail": { "get": { "description": "获取指定节点的水源属性信息", "operationId": "get_sources_detail", "parameters": [ { "description": "节点ID", "in": "query", "name": "node", "required": true, "schema": { "description": "节点ID", "title": "Node", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Sources Detail", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取水源属性", "tags": [ "Quality" ] } }, "/api/v1/status": { "get": { "description": "获取指定管线的状态信息", "operationId": "get_status", "parameters": [ { "description": "管线ID", "in": "query", "name": "link", "required": true, "schema": { "description": "管线ID", "title": "Link", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Status", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取管线状态", "tags": [ "Network General" ] } }, "/api/v1/status-properties": { "patch": { "description": "设置指定管线的状态信息", "operationId": "patch_status_properties", "parameters": [ { "description": "管线ID", "in": "query", "name": "link", "required": true, "schema": { "description": "管线ID", "title": "Link", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "title": "Payload", "type": "object" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置管线状态", "tags": [ "Network General" ] } }, "/api/v1/status-schemas": { "get": { "description": "获取指定水网的状态(Status)属性架构定义", "operationId": "get_status_schemas", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": { "type": "object" }, "title": "Response Get Status Schemas", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取状态属性架构", "tags": [ "Network General" ] } }, "/api/v1/tags": { "get": { "description": "获取指定水网中的所有标签信息", "operationId": "get_tags", "parameters": [ { "in": "query", "name": "limit", "required": false, "schema": { "default": 100, "maximum": 1000, "minimum": 1, "title": "Limit", "type": "integer" } }, { "in": "query", "name": "offset", "required": false, "schema": { "default": 0, "minimum": 0, "title": "Offset", "type": "integer" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Page_dict_str__Any__" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取所有标签", "tags": [ "Tags" ] }, "patch": { "description": "为指定元素设置或修改标签信息", "operationId": "patch_tags", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "title": "Payload", "type": "object" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置标签", "tags": [ "Tags" ] } }, "/api/v1/tags/detail": { "get": { "description": "获取指定类型和ID的标签信息", "operationId": "get_tags_detail", "parameters": [ { "description": "标签类型", "in": "query", "name": "t_type", "required": true, "schema": { "description": "标签类型", "title": "T Type", "type": "string" } }, { "description": "元素ID", "in": "query", "name": "id", "required": true, "schema": { "description": "元素ID", "title": "Id", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Tags Detail", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取标签信息", "tags": [ "Tags" ] } }, "/api/v1/tank-reactions": { "patch": { "description": "更新指定水池的反应属性", "operationId": "patch_tank_reactions", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "title": "Payload", "type": "object" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置水池反应属性", "tags": [ "Quality" ] } }, "/api/v1/tank-reactions/detail": { "get": { "description": "获取指定水池的反应属性信息", "operationId": "get_tank_reactions_detail", "parameters": [ { "description": "水池ID", "in": "query", "name": "tank", "required": true, "schema": { "description": "水池ID", "title": "Tank", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Tank Reactions Detail", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取水池反应属性", "tags": [ "Quality" ] } }, "/api/v1/tanks": { "delete": { "description": "删除指定网络中的水箱", "operationId": "delete_tanks", "parameters": [ { "description": "水箱ID", "in": "query", "name": "tank", "required": true, "schema": { "description": "水箱ID", "title": "Tank", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "204": { "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "删除水箱", "tags": [ "Tanks" ] }, "get": { "description": "获取指定网络中所有水箱的属性", "operationId": "get_tanks", "parameters": [ { "in": "query", "name": "limit", "required": false, "schema": { "default": 100, "maximum": 1000, "minimum": 1, "title": "Limit", "type": "integer" } }, { "in": "query", "name": "offset", "required": false, "schema": { "default": 0, "minimum": 0, "title": "Offset", "type": "integer" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Page_dict_str__Any__" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取所有水箱属性", "tags": [ "Tanks" ] }, "post": { "description": "向指定网络中新增一个水箱", "operationId": "post_tanks", "parameters": [ { "description": "水箱ID", "in": "query", "name": "tank", "required": true, "schema": { "description": "水箱ID", "title": "Tank", "type": "string" } }, { "description": "X坐标", "in": "query", "name": "x", "required": true, "schema": { "description": "X坐标", "title": "X", "type": "number" } }, { "description": "Y坐标", "in": "query", "name": "y", "required": true, "schema": { "description": "Y坐标", "title": "Y", "type": "number" } }, { "description": "标高", "in": "query", "name": "elevation", "required": true, "schema": { "description": "标高", "title": "Elevation", "type": "number" } }, { "description": "初始水位", "in": "query", "name": "init_level", "required": false, "schema": { "default": 0, "description": "初始水位", "title": "Init Level", "type": "number" } }, { "description": "最小水位", "in": "query", "name": "min_level", "required": false, "schema": { "default": 0, "description": "最小水位", "title": "Min Level", "type": "number" } }, { "description": "最大水位", "in": "query", "name": "max_level", "required": false, "schema": { "default": 0, "description": "最大水位", "title": "Max Level", "type": "number" } }, { "description": "直径", "in": "query", "name": "diameter", "required": false, "schema": { "default": 0, "description": "直径", "title": "Diameter", "type": "number" } }, { "description": "最小体积", "in": "query", "name": "min_vol", "required": false, "schema": { "default": 0, "description": "最小体积", "title": "Min Vol", "type": "number" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "新增水箱", "tags": [ "Tanks" ] } }, "/api/v1/tanks/coord": { "get": { "description": "获取指定水箱的X和Y坐标", "operationId": "get_tanks_coord", "parameters": [ { "description": "水箱ID", "in": "query", "name": "tank", "required": true, "schema": { "description": "水箱ID", "title": "Tank", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": { "type": "number" }, "title": "Response Get Tanks Coord", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取水箱坐标", "tags": [ "Tanks" ] }, "patch": { "description": "设置指定水箱的X和Y坐标", "operationId": "patch_tanks_coord", "parameters": [ { "description": "水箱ID", "in": "query", "name": "tank", "required": true, "schema": { "description": "水箱ID", "title": "Tank", "type": "string" } }, { "description": "新的X坐标值", "in": "query", "name": "x", "required": true, "schema": { "description": "新的X坐标值", "title": "X", "type": "number" } }, { "description": "新的Y坐标值", "in": "query", "name": "y", "required": true, "schema": { "description": "新的Y坐标值", "title": "Y", "type": "number" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置水箱坐标", "tags": [ "Tanks" ] } }, "/api/v1/tanks/diameter": { "get": { "description": "获取指定水箱的直径值", "operationId": "get_tanks_diameter", "parameters": [ { "description": "水箱ID", "in": "query", "name": "tank", "required": true, "schema": { "description": "水箱ID", "title": "Tank", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Response Get Tanks Diameter" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取水箱直径", "tags": [ "Tanks" ] }, "patch": { "description": "设置指定水箱的直径值", "operationId": "patch_tanks_diameter", "parameters": [ { "description": "水箱ID", "in": "query", "name": "tank", "required": true, "schema": { "description": "水箱ID", "title": "Tank", "type": "string" } }, { "description": "新的直径值", "in": "query", "name": "diameter", "required": true, "schema": { "description": "新的直径值", "title": "Diameter", "type": "number" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置水箱直径", "tags": [ "Tanks" ] } }, "/api/v1/tanks/elevation": { "get": { "description": "获取指定水箱的标高值", "operationId": "get_tanks_elevation", "parameters": [ { "description": "水箱ID", "in": "query", "name": "tank", "required": true, "schema": { "description": "水箱ID", "title": "Tank", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Response Get Tanks Elevation" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取水箱标高", "tags": [ "Tanks" ] }, "patch": { "description": "设置指定水箱的标高值", "operationId": "patch_tanks_elevation", "parameters": [ { "description": "水箱ID", "in": "query", "name": "tank", "required": true, "schema": { "description": "水箱ID", "title": "Tank", "type": "string" } }, { "description": "新的标高值", "in": "query", "name": "elevation", "required": true, "schema": { "description": "新的标高值", "title": "Elevation", "type": "number" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置水箱标高", "tags": [ "Tanks" ] } }, "/api/v1/tanks/existence": { "get": { "description": "检查指定ID是否为水网中的蓄水池", "operationId": "get_tanks_existence", "parameters": [ { "description": "节点ID", "in": "query", "name": "node", "required": true, "schema": { "description": "节点ID", "title": "Node", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Tanks Existence", "type": "boolean" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "检查是否为蓄水池", "tags": [ "Network General" ] } }, "/api/v1/tanks/init-level": { "get": { "description": "获取指定水箱的初始水位值", "operationId": "get_tanks_init_level", "parameters": [ { "description": "水箱ID", "in": "query", "name": "tank", "required": true, "schema": { "description": "水箱ID", "title": "Tank", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Response Get Tanks Init Level" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取水箱初始水位", "tags": [ "Tanks" ] }, "patch": { "description": "设置指定水箱的初始水位值", "operationId": "patch_tanks_init_level", "parameters": [ { "description": "水箱ID", "in": "query", "name": "tank", "required": true, "schema": { "description": "水箱ID", "title": "Tank", "type": "string" } }, { "description": "新的初始水位值", "in": "query", "name": "init_level", "required": true, "schema": { "description": "新的初始水位值", "title": "Init Level", "type": "number" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置水箱初始水位", "tags": [ "Tanks" ] } }, "/api/v1/tanks/max-level": { "get": { "description": "获取指定水箱的最大水位值", "operationId": "get_tanks_max_level", "parameters": [ { "description": "水箱ID", "in": "query", "name": "tank", "required": true, "schema": { "description": "水箱ID", "title": "Tank", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Response Get Tanks Max Level" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取水箱最大水位", "tags": [ "Tanks" ] }, "patch": { "description": "设置指定水箱的最大水位值", "operationId": "patch_tanks_max_level", "parameters": [ { "description": "水箱ID", "in": "query", "name": "tank", "required": true, "schema": { "description": "水箱ID", "title": "Tank", "type": "string" } }, { "description": "新的最大水位值", "in": "query", "name": "max_level", "required": true, "schema": { "description": "新的最大水位值", "title": "Max Level", "type": "number" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置水箱最大水位", "tags": [ "Tanks" ] } }, "/api/v1/tanks/min-level": { "get": { "description": "获取指定水箱的最小水位值", "operationId": "get_tanks_min_level", "parameters": [ { "description": "水箱ID", "in": "query", "name": "tank", "required": true, "schema": { "description": "水箱ID", "title": "Tank", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Response Get Tanks Min Level" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取水箱最小水位", "tags": [ "Tanks" ] }, "patch": { "description": "设置指定水箱的最小水位值", "operationId": "patch_tanks_min_level", "parameters": [ { "description": "水箱ID", "in": "query", "name": "tank", "required": true, "schema": { "description": "水箱ID", "title": "Tank", "type": "string" } }, { "description": "新的最小水位值", "in": "query", "name": "min_level", "required": true, "schema": { "description": "新的最小水位值", "title": "Min Level", "type": "number" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置水箱最小水位", "tags": [ "Tanks" ] } }, "/api/v1/tanks/min-vol": { "get": { "description": "获取指定水箱的最小体积值", "operationId": "get_tanks_min_vol", "parameters": [ { "description": "水箱ID", "in": "query", "name": "tank", "required": true, "schema": { "description": "水箱ID", "title": "Tank", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Response Get Tanks Min Vol" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取水箱最小体积", "tags": [ "Tanks" ] }, "patch": { "description": "设置指定水箱的最小体积值", "operationId": "patch_tanks_min_vol", "parameters": [ { "description": "水箱ID", "in": "query", "name": "tank", "required": true, "schema": { "description": "水箱ID", "title": "Tank", "type": "string" } }, { "description": "新的最小体积值", "in": "query", "name": "min_vol", "required": true, "schema": { "description": "新的最小体积值", "title": "Min Vol", "type": "number" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置水箱最小体积", "tags": [ "Tanks" ] } }, "/api/v1/tanks/overflow": { "get": { "description": "获取指定水箱的溢流口配置", "operationId": "get_tanks_overflow", "parameters": [ { "description": "水箱ID", "in": "query", "name": "tank", "required": true, "schema": { "description": "水箱ID", "title": "Tank", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Response Get Tanks Overflow" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取水箱溢流口", "tags": [ "Tanks" ] }, "patch": { "description": "设置指定水箱的溢流口配置", "operationId": "patch_tanks_overflow", "parameters": [ { "description": "水箱ID", "in": "query", "name": "tank", "required": true, "schema": { "description": "水箱ID", "title": "Tank", "type": "string" } }, { "description": "新的溢流口配置", "in": "query", "name": "overflow", "required": true, "schema": { "description": "新的溢流口配置", "title": "Overflow", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置水箱溢流口", "tags": [ "Tanks" ] } }, "/api/v1/tanks/properties": { "get": { "description": "获取指定水箱的所有属性", "operationId": "get_tanks_properties", "parameters": [ { "description": "水箱ID", "in": "query", "name": "tank", "required": true, "schema": { "description": "水箱ID", "title": "Tank", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Tanks Properties", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取水箱属性", "tags": [ "Tanks" ] }, "patch": { "description": "批量设置指定水箱的多个属性", "operationId": "patch_tanks_properties", "parameters": [ { "description": "水箱ID", "in": "query", "name": "tank", "required": true, "schema": { "description": "水箱ID", "title": "Tank", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "title": "Payload", "type": "object" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置水箱属性", "tags": [ "Tanks" ] } }, "/api/v1/tanks/vol-curve": { "get": { "description": "获取指定水箱的容积曲线标识", "operationId": "get_tanks_vol_curve", "parameters": [ { "description": "水箱ID", "in": "query", "name": "tank", "required": true, "schema": { "description": "水箱ID", "title": "Tank", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Response Get Tanks Vol Curve" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取水箱容积曲线", "tags": [ "Tanks" ] }, "patch": { "description": "设置指定水箱的容积曲线标识", "operationId": "patch_tanks_vol_curve", "parameters": [ { "description": "水箱ID", "in": "query", "name": "tank", "required": true, "schema": { "description": "水箱ID", "title": "Tank", "type": "string" } }, { "description": "新的容积曲线标识", "in": "query", "name": "vol_curve", "required": true, "schema": { "description": "新的容积曲线标识", "title": "Vol Curve", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置水箱容积曲线", "tags": [ "Tanks" ] } }, "/api/v1/tanks/x": { "get": { "description": "获取指定水箱的X坐标值", "operationId": "get_tanks_x", "parameters": [ { "description": "水箱ID", "in": "query", "name": "tank", "required": true, "schema": { "description": "水箱ID", "title": "Tank", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Tanks X", "type": "number" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取水箱X坐标", "tags": [ "Tanks" ] }, "patch": { "description": "设置指定水箱的X坐标值", "operationId": "patch_tanks_x", "parameters": [ { "description": "水箱ID", "in": "query", "name": "tank", "required": true, "schema": { "description": "水箱ID", "title": "Tank", "type": "string" } }, { "description": "新的X坐标值", "in": "query", "name": "x", "required": true, "schema": { "description": "新的X坐标值", "title": "X", "type": "number" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置水箱X坐标", "tags": [ "Tanks" ] } }, "/api/v1/tanks/y": { "get": { "description": "获取指定水箱的Y坐标值", "operationId": "get_tanks_y", "parameters": [ { "description": "水箱ID", "in": "query", "name": "tank", "required": true, "schema": { "description": "水箱ID", "title": "Tank", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Tanks Y", "type": "number" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取水箱Y坐标", "tags": [ "Tanks" ] }, "patch": { "description": "设置指定水箱的Y坐标值", "operationId": "patch_tanks_y", "parameters": [ { "description": "水箱ID", "in": "query", "name": "tank", "required": true, "schema": { "description": "水箱ID", "title": "Tank", "type": "string" } }, { "description": "新的Y坐标值", "in": "query", "name": "y", "required": true, "schema": { "description": "新的Y坐标值", "title": "Y", "type": "number" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置水箱Y坐标", "tags": [ "Tanks" ] } }, "/api/v1/time-properties": { "patch": { "description": "更新指定网络中的时间选项属性", "operationId": "patch_time_properties", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "title": "Payload", "type": "object" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置时间选项属性", "tags": [ "Options" ] } }, "/api/v1/timeseries/analysis/runs/{run_id}/links/{link_id}": { "get": { "operationId": "get_timeseries_analysis_runs_run_id_links_link_id", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "format": "uuid", "title": "Run Id", "type": "string" } }, { "in": "path", "name": "link_id", "required": true, "schema": { "title": "Link Id", "type": "string" } }, { "in": "query", "name": "start_time", "required": true, "schema": { "format": "date-time", "title": "Start Time", "type": "string" } }, { "in": "query", "name": "end_time", "required": true, "schema": { "format": "date-time", "title": "End Time", "type": "string" } }, { "in": "query", "name": "field", "required": true, "schema": { "title": "Field", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Get Analysis Link Series", "tags": [ "TimescaleDB - Analysis" ] } }, "/api/v1/timeseries/analysis/runs/{run_id}/nodes/{node_id}": { "get": { "operationId": "get_timeseries_analysis_runs_run_id_nodes_node_id", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "format": "uuid", "title": "Run Id", "type": "string" } }, { "in": "path", "name": "node_id", "required": true, "schema": { "title": "Node Id", "type": "string" } }, { "in": "query", "name": "start_time", "required": true, "schema": { "format": "date-time", "title": "Start Time", "type": "string" } }, { "in": "query", "name": "end_time", "required": true, "schema": { "format": "date-time", "title": "End Time", "type": "string" } }, { "in": "query", "name": "field", "required": true, "schema": { "title": "Field", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Get Analysis Node Series", "tags": [ "TimescaleDB - Analysis" ] } }, "/api/v1/timeseries/analysis/runs/{run_id}/values": { "get": { "operationId": "get_timeseries_analysis_runs_run_id_values", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "format": "uuid", "title": "Run Id", "type": "string" } }, { "in": "query", "name": "result_time", "required": true, "schema": { "format": "date-time", "title": "Result Time", "type": "string" } }, { "in": "query", "name": "element_type", "required": true, "schema": { "pattern": "^(node|link)$", "title": "Element Type", "type": "string" } }, { "in": "query", "name": "field", "required": true, "schema": { "title": "Field", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Get Analysis Values At Time", "tags": [ "TimescaleDB - Analysis" ] } }, "/api/v1/timeseries/realtime/links": { "delete": { "description": "按时间范围删除实时管道数据。start_time 和 end_time 必须显式带时区;允许传 UTC+8,服务端按请求中的绝对时间删除对应 UTC 数据。", "operationId": "delete_timeseries_realtime_links", "parameters": [ { "description": "时间范围开始时间。ISO 8601 / RFC 3339 时间,必须显式带时区;可直接传 UTC+8,服务端会先转换为 UTC 再处理。", "in": "query", "name": "start_time", "required": true, "schema": { "description": "时间范围开始时间。ISO 8601 / RFC 3339 时间,必须显式带时区;可直接传 UTC+8,服务端会先转换为 UTC 再处理。", "format": "date-time", "title": "Start Time", "type": "string" } }, { "description": "时间范围结束时间。ISO 8601 / RFC 3339 时间,必须显式带时区;可直接传 UTC+8,服务端会先转换为 UTC 再处理。", "in": "query", "name": "end_time", "required": true, "schema": { "description": "时间范围结束时间。ISO 8601 / RFC 3339 时间,必须显式带时区;可直接传 UTC+8,服务端会先转换为 UTC 再处理。", "format": "date-time", "title": "End Time", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "204": { "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "删除实时管道数据", "tags": [ "TimescaleDB - Realtime" ] }, "get": { "description": "按时间范围查询实时管道数据。start_time 和 end_time 必须显式带时区;允许传 UTC+8,服务端会先归一化为 UTC 再执行查询。", "operationId": "get_timeseries_realtime_links", "parameters": [ { "description": "时间范围开始时间。ISO 8601 / RFC 3339 时间,必须显式带时区;可直接传 UTC+8,服务端会先转换为 UTC 再处理。", "in": "query", "name": "start_time", "required": true, "schema": { "description": "时间范围开始时间。ISO 8601 / RFC 3339 时间,必须显式带时区;可直接传 UTC+8,服务端会先转换为 UTC 再处理。", "format": "date-time", "title": "Start Time", "type": "string" } }, { "description": "时间范围结束时间。ISO 8601 / RFC 3339 时间,必须显式带时区;可直接传 UTC+8,服务端会先转换为 UTC 再处理。", "in": "query", "name": "end_time", "required": true, "schema": { "description": "时间范围结束时间。ISO 8601 / RFC 3339 时间,必须显式带时区;可直接传 UTC+8,服务端会先转换为 UTC 再处理。", "format": "date-time", "title": "End Time", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "查询实时管道数据", "tags": [ "TimescaleDB - Realtime" ] } }, "/api/v1/timeseries/realtime/links/batches": { "post": { "description": "批量插入实时管道数据\n\n将管道的实时监测数据批量插入时间序列数据库。\n\nArgs:\n data: 管道数据列表\n \nReturns:\n 插入成功的记录数", "operationId": "post_timeseries_realtime_links_batches", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "description": "同一时间点的管道快照数据", "items": { "$ref": "#/components/schemas/RealtimeLinkBatchItem" }, "title": "Data", "type": "array" } } }, "required": true }, "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "批量插入实时管道数据", "tags": [ "TimescaleDB - Realtime" ] } }, "/api/v1/timeseries/realtime/links/{link_id}/field": { "patch": { "description": "更新指定管道的字段值\n\n更新实时管道在特定时间的某个字段数据。\n\nArgs:\n link_id: 管道ID\n time: 数据时间戳\n field: 字段名称\n value: 字段新值\n \nReturns:\n 更新结果信息\n \nRaises:\n HTTPException: 当字段不存在或更新失败时返回400错误", "operationId": "patch_timeseries_realtime_links_link_id_field", "parameters": [ { "description": "管道ID", "in": "path", "name": "link_id", "required": true, "schema": { "description": "管道ID", "title": "Link Id", "type": "string" } }, { "description": "要更新记录的时间戳。ISO 8601 / RFC 3339 时间,必须显式带时区;可直接传 UTC+8,服务端会先转换为 UTC 再处理。", "in": "query", "name": "time", "required": true, "schema": { "description": "要更新记录的时间戳。ISO 8601 / RFC 3339 时间,必须显式带时区;可直接传 UTC+8,服务端会先转换为 UTC 再处理。", "format": "date-time", "title": "Time", "type": "string" } }, { "description": "要更新的字段名称", "in": "query", "name": "field", "required": true, "schema": { "description": "要更新的字段名称", "title": "Field", "type": "string" } }, { "description": "更新的字段值", "in": "query", "name": "value", "required": true, "schema": { "description": "更新的字段值", "title": "Value", "type": "number" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "更新实时管道字段", "tags": [ "TimescaleDB - Realtime" ] } }, "/api/v1/timeseries/realtime/nodes": { "delete": { "description": "按时间范围删除实时节点数据。start_time 和 end_time 必须显式带时区;允许传 UTC+8,服务端按请求中的绝对时间删除对应 UTC 数据。", "operationId": "delete_timeseries_realtime_nodes", "parameters": [ { "description": "时间范围开始时间。ISO 8601 / RFC 3339 时间,必须显式带时区;可直接传 UTC+8,服务端会先转换为 UTC 再处理。", "in": "query", "name": "start_time", "required": true, "schema": { "description": "时间范围开始时间。ISO 8601 / RFC 3339 时间,必须显式带时区;可直接传 UTC+8,服务端会先转换为 UTC 再处理。", "format": "date-time", "title": "Start Time", "type": "string" } }, { "description": "时间范围结束时间。ISO 8601 / RFC 3339 时间,必须显式带时区;可直接传 UTC+8,服务端会先转换为 UTC 再处理。", "in": "query", "name": "end_time", "required": true, "schema": { "description": "时间范围结束时间。ISO 8601 / RFC 3339 时间,必须显式带时区;可直接传 UTC+8,服务端会先转换为 UTC 再处理。", "format": "date-time", "title": "End Time", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "204": { "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "删除实时节点数据", "tags": [ "TimescaleDB - Realtime" ] }, "get": { "description": "按时间范围查询实时节点数据。start_time 和 end_time 必须显式带时区;允许传 UTC+8,服务端会先归一化为 UTC 再执行查询。", "operationId": "get_timeseries_realtime_nodes", "parameters": [ { "description": "时间范围开始时间。ISO 8601 / RFC 3339 时间,必须显式带时区;可直接传 UTC+8,服务端会先转换为 UTC 再处理。", "in": "query", "name": "start_time", "required": true, "schema": { "description": "时间范围开始时间。ISO 8601 / RFC 3339 时间,必须显式带时区;可直接传 UTC+8,服务端会先转换为 UTC 再处理。", "format": "date-time", "title": "Start Time", "type": "string" } }, { "description": "时间范围结束时间。ISO 8601 / RFC 3339 时间,必须显式带时区;可直接传 UTC+8,服务端会先转换为 UTC 再处理。", "in": "query", "name": "end_time", "required": true, "schema": { "description": "时间范围结束时间。ISO 8601 / RFC 3339 时间,必须显式带时区;可直接传 UTC+8,服务端会先转换为 UTC 再处理。", "format": "date-time", "title": "End Time", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "查询实时节点数据", "tags": [ "TimescaleDB - Realtime" ] } }, "/api/v1/timeseries/realtime/nodes/batches": { "post": { "description": "批量插入实时节点数据\n\n将节点的实时监测数据批量插入时间序列数据库。\n\nArgs:\n data: 节点数据列表\n \nReturns:\n 插入成功的记录数", "operationId": "post_timeseries_realtime_nodes_batches", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "description": "同一时间点的节点快照数据", "items": { "$ref": "#/components/schemas/RealtimeNodeBatchItem" }, "title": "Data", "type": "array" } } }, "required": true }, "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "批量插入实时节点数据", "tags": [ "TimescaleDB - Realtime" ] } }, "/api/v1/timeseries/realtime/records": { "get": { "description": "查询指定时间点的实时属性值。query_time 必须显式带时区;允许传 UTC+8,服务端会先归一化为 UTC 再执行查询。", "operationId": "get_timeseries_realtime_records", "parameters": [ { "description": "查询时间。ISO 8601 / RFC 3339 时间,必须显式带时区;可直接传 UTC+8,服务端会先转换为 UTC 再处理。", "in": "query", "name": "query_time", "required": true, "schema": { "description": "查询时间。ISO 8601 / RFC 3339 时间,必须显式带时区;可直接传 UTC+8,服务端会先转换为 UTC 再处理。", "title": "Query Time", "type": "string" } }, { "description": "数据类型,pipe(管道)或 junction(节点)", "in": "query", "name": "type", "required": true, "schema": { "description": "数据类型,pipe(管道)或 junction(节点)", "title": "Type", "type": "string" } }, { "description": "要查询的属性名称", "in": "query", "name": "property", "required": true, "schema": { "description": "要查询的属性名称", "title": "Property", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "按时间和属性查询实时数据", "tags": [ "TimescaleDB - Realtime" ] } }, "/api/v1/timeseries/realtime/simulation-results": { "get": { "description": "查询指定元素在某一时间点的实时模拟结果。query_time 必须显式带时区;允许传 UTC+8,服务端会先归一化为 UTC 再执行查询。", "operationId": "get_timeseries_realtime_simulation_results", "parameters": [ { "description": "元素ID(管道ID或节点ID)", "in": "query", "name": "id", "required": true, "schema": { "description": "元素ID(管道ID或节点ID)", "title": "Id", "type": "string" } }, { "description": "元素类型,pipe(管道)或 junction(节点)", "in": "query", "name": "type", "required": true, "schema": { "description": "元素类型,pipe(管道)或 junction(节点)", "title": "Type", "type": "string" } }, { "description": "查询时间。ISO 8601 / RFC 3339 时间,必须显式带时区;可直接传 UTC+8,服务端会先转换为 UTC 再处理。", "in": "query", "name": "query_time", "required": true, "schema": { "description": "查询时间。ISO 8601 / RFC 3339 时间,必须显式带时区;可直接传 UTC+8,服务端会先转换为 UTC 再处理。", "title": "Query Time", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "按ID和时间查询实时模拟数据", "tags": [ "TimescaleDB - Realtime" ] }, "post": { "description": "存储实时模拟结果到时间序列数据库\n\n将节点和管道的实时模拟计算结果批量存储到TimescaleDB数据库。\n\nArgs:\n node_result_list: 节点模拟结果列表\n link_result_list: 管道模拟结果列表\n result_start_time: 模拟结果对应的起始时间\n \nReturns:\n 存储结果信息", "operationId": "post_timeseries_realtime_simulation_results", "parameters": [ { "description": "模拟结果开始时间。ISO 8601 / RFC 3339 时间,必须显式带时区;可直接传 UTC+8,服务端会先转换为 UTC 再处理。", "in": "query", "name": "result_start_time", "required": true, "schema": { "description": "模拟结果开始时间。ISO 8601 / RFC 3339 时间,必须显式带时区;可直接传 UTC+8,服务端会先转换为 UTC 再处理。", "title": "Result Start Time", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Body_post_timeseries_realtime_simulation_results" } } }, "required": true }, "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "存储实时模拟结果", "tags": [ "TimescaleDB - Realtime" ] } }, "/api/v1/timeseries/scada-cleaning-runs": { "post": { "description": "清洗SCADA监测数据\n\n根据device_ids查询monitored_value,清洗后更新cleaned_value。\n支持清洗指定设备或所有设备的数据。\n\nArgs:\n device_ids: 设备ID列表,用逗号分隔,或 'all' 表示清洗所有设备\n start_time: 清洗数据的开始时间\n end_time: 清洗数据的结束时间\n timescale_conn: TimescaleDB连接\n postgres_conn: PostgreSQL连接\n \nReturns:\n 清洗结果信息\n \nRaises:\n HTTPException: 当清洗过程出现错误时返回400错误", "operationId": "post_timeseries_scada_cleaning_runs", "parameters": [ { "description": "设备ID列表或 'all' 表示清洗所有设备", "in": "query", "name": "device_ids", "required": true, "schema": { "description": "设备ID列表或 'all' 表示清洗所有设备", "title": "Device Ids", "type": "string" } }, { "description": "清洗数据的开始时间", "in": "query", "name": "start_time", "required": true, "schema": { "description": "清洗数据的开始时间", "format": "date-time", "title": "Start Time", "type": "string" } }, { "description": "清洗数据的结束时间", "in": "query", "name": "end_time", "required": true, "schema": { "description": "清洗数据的结束时间", "format": "date-time", "title": "End Time", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "清洗SCADA监测数据", "tags": [ "TimescaleDB - Composite" ] } }, "/api/v1/timeseries/scada-readings": { "delete": { "description": "删除指定设备和时间范围内的SCADA数据\n\n删除在指定时间范围内的特定设备监测数据。\n\nArgs:\n device_id: 设备ID\n start_time: 删除开始时间\n end_time: 删除结束时间\n\nReturns:\n 删除结果信息", "operationId": "delete_timeseries_scada_readings", "parameters": [ { "description": "设备ID", "in": "query", "name": "device_id", "required": true, "schema": { "description": "设备ID", "title": "Device Id", "type": "string" } }, { "description": "删除开始时间", "in": "query", "name": "start_time", "required": true, "schema": { "description": "删除开始时间", "format": "date-time", "title": "Start Time", "type": "string" } }, { "description": "删除结束时间", "in": "query", "name": "end_time", "required": true, "schema": { "description": "删除结束时间", "format": "date-time", "title": "End Time", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "204": { "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "按设备ID和时间范围删除SCADA数据", "tags": [ "TimescaleDB - SCADA" ] }, "get": { "description": "按设备ID和时间范围查询SCADA监测数据\n\n查询多个设备在指定时间范围内的所有监测数据。\n\nArgs:\n start_time: 查询开始时间\n end_time: 查询结束时间\n device_ids: 设备ID列表,用逗号分隔\n\nReturns:\n SCADA监测数据列表", "operationId": "get_timeseries_scada_readings", "parameters": [ { "description": "查询开始时间", "in": "query", "name": "start_time", "required": true, "schema": { "description": "查询开始时间", "format": "date-time", "title": "Start Time", "type": "string" } }, { "description": "查询结束时间", "in": "query", "name": "end_time", "required": true, "schema": { "description": "查询结束时间", "format": "date-time", "title": "End Time", "type": "string" } }, { "description": "设备ID列表,逗号分隔,如 'device1,device2,device3'", "in": "query", "name": "device_ids", "required": true, "schema": { "description": "设备ID列表,逗号分隔,如 'device1,device2,device3'", "title": "Device Ids", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "按设备ID和时间范围查询SCADA数据", "tags": [ "TimescaleDB - SCADA" ] } }, "/api/v1/timeseries/scada-readings/batches": { "post": { "description": "批量插入SCADA监测数据\n\n将多个设备的实时监测数据批量插入时间序列数据库。\n\nArgs:\n data: SCADA设备监测数据列表,每项包含device_id、时间戳和监测值等信息\n\nReturns:\n 插入成功的记录数", "operationId": "post_timeseries_scada_readings_batches", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "description": "SCADA设备监测数据列表", "items": { "$ref": "#/components/schemas/ScadaReadingBatchItem" }, "maxItems": 10000, "minItems": 1, "title": "Data", "type": "array" } } }, "required": true }, "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "批量插入SCADA监测数据", "tags": [ "TimescaleDB - SCADA" ] } }, "/api/v1/timeseries/scada-readings/fields": { "get": { "description": "按设备ID、字段和时间范围查询特定SCADA数据\n\n查询多个设备在指定时间范围内的特定字段监测数据。\n\nArgs:\n start_time: 查询开始时间\n end_time: 查询结束时间\n field: 字段名称\n device_ids: 设备ID列表,用逗号分隔\n\nReturns:\n SCADA字段数据列表\n\nRaises:\n HTTPException: 当字段不存在或查询参数无效时返回400错误", "operationId": "get_timeseries_scada_readings_fields", "parameters": [ { "description": "查询开始时间", "in": "query", "name": "start_time", "required": true, "schema": { "description": "查询开始时间", "format": "date-time", "title": "Start Time", "type": "string" } }, { "description": "查询结束时间", "in": "query", "name": "end_time", "required": true, "schema": { "description": "查询结束时间", "format": "date-time", "title": "End Time", "type": "string" } }, { "description": "要查询的字段名称", "in": "query", "name": "field", "required": true, "schema": { "description": "要查询的字段名称", "title": "Field", "type": "string" } }, { "description": "设备ID列表,逗号分隔,如 'device1,device2,device3'", "in": "query", "name": "device_ids", "required": true, "schema": { "description": "设备ID列表,逗号分隔,如 'device1,device2,device3'", "title": "Device Ids", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "按设备ID、字段和时间范围查询SCADA数据", "tags": [ "TimescaleDB - SCADA" ] } }, "/api/v1/timeseries/scada-readings/{device_id}/field": { "patch": { "description": "更新指定设备的字段值\n\n更新SCADA设备在特定时间的某个字段监测数据。\n\nArgs:\n device_id: 设备ID\n time: 数据时间戳\n field: 字段名称\n value: 字段新值\n\nReturns:\n 更新结果信息\n\nRaises:\n HTTPException: 当字段不存在或更新失败时返回400错误", "operationId": "patch_timeseries_scada_readings_device_id_field", "parameters": [ { "description": "设备ID", "in": "path", "name": "device_id", "required": true, "schema": { "description": "设备ID", "title": "Device Id", "type": "string" } }, { "description": "更新数据的时间戳", "in": "query", "name": "time", "required": true, "schema": { "description": "更新数据的时间戳", "format": "date-time", "title": "Time", "type": "string" } }, { "description": "要更新的字段名称", "in": "query", "name": "field", "required": true, "schema": { "description": "要更新的字段名称", "title": "Field", "type": "string" } }, { "description": "更新的字段值", "in": "query", "name": "value", "required": true, "schema": { "description": "更新的字段值", "title": "Value", "type": "number" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "更新SCADA设备字段", "tags": [ "TimescaleDB - SCADA" ] } }, "/api/v1/timeseries/views/element-history/query": { "post": { "operationId": "post_timeseries_views_element_history_query", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ElementHistoryQuery" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ElementHistoryResponse" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "批量查询管网元素历史数据", "tags": [ "TimescaleDB - Composite" ] } }, "/api/v1/title-schemas": { "get": { "description": "获取指定水网的标题(标题)属性架构定义", "operationId": "get_title_schemas", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": { "type": "object" }, "title": "Response Get Title Schemas", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取标题属性架构", "tags": [ "Network General" ] } }, "/api/v1/titles": { "get": { "description": "获取指定水网的标题(Title)信息", "operationId": "get_titles", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Titles", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取水网标题属性", "tags": [ "Network General" ] }, "patch": { "description": "设置指定水网的标题(Title)信息", "operationId": "patch_titles", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "title": "Payload", "type": "object" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置水网标题属性", "tags": [ "Network General" ] } }, "/api/v1/valve-closure-analyses": { "post": { "description": "高级版本的阀门关闭分析,支持同时关闭多个阀门,并在指定持续时间内进行模拟。返回纯文本格式的分析结果。", "operationId": "post_valve_closure_analyses", "parameters": [ { "description": "阀门关闭开始时间(ISO 8601格式)", "in": "query", "name": "start_time", "required": true, "schema": { "description": "阀门关闭开始时间(ISO 8601格式)", "title": "Start Time", "type": "string" } }, { "description": "要关闭的阀门ID列表", "in": "query", "name": "valves", "required": true, "schema": { "description": "要关闭的阀门ID列表", "items": { "type": "string" }, "title": "Valves", "type": "array" } }, { "description": "模拟持续时间(秒),默认900秒", "in": "query", "name": "duration", "required": false, "schema": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "description": "模拟持续时间(秒),默认900秒", "title": "Duration" } }, { "description": "阀门关闭方案名称", "in": "query", "name": "scheme_name", "required": true, "schema": { "description": "阀门关闭方案名称", "title": "Scheme Name", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "text/plain": { "schema": { "type": "string" } } }, "description": "Successful Response" }, "401": { "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "阀门关闭分析(高级)", "tags": [ "Simulation Control" ] } }, "/api/v1/valve-isolation-analyses": { "post": { "description": "分析当发生突发事件时,通过关闭指定阀门进行隔离,确定哪些阀门必须关闭、哪些可选关闭,以及隔离的可行性。", "operationId": "post_valve_isolation_analyses", "parameters": [ { "description": "发生事故的管段/节点ID列表", "in": "query", "name": "accident_element", "required": true, "schema": { "description": "发生事故的管段/节点ID列表", "items": { "type": "string" }, "title": "Accident Element", "type": "array" } }, { "description": "已故障的阀门ID列表(可选)", "in": "query", "name": "disabled_valves", "required": false, "schema": { "description": "已故障的阀门ID列表(可选)", "items": { "type": "string" }, "title": "Disabled Valves", "type": "array" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "阀门隔离分析", "tags": [ "Simulation Control" ] } }, "/api/v1/valves": { "delete": { "description": "从指定的水网中删除指定的阀门", "operationId": "delete_valves", "parameters": [ { "description": "阀门ID", "in": "query", "name": "valve", "required": true, "schema": { "description": "阀门ID", "title": "Valve", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "204": { "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "删除阀门", "tags": [ "Valves" ] }, "get": { "description": "获取指定水网中所有阀门的属性", "operationId": "get_valves", "parameters": [ { "in": "query", "name": "limit", "required": false, "schema": { "default": 100, "maximum": 1000, "minimum": 1, "title": "Limit", "type": "integer" } }, { "in": "query", "name": "offset", "required": false, "schema": { "default": 0, "minimum": 0, "title": "Offset", "type": "integer" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Page_dict_str__Any__" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取所有阀门属性", "tags": [ "Valves" ] }, "post": { "description": "在指定的水网中添加新的阀门", "operationId": "post_valves", "parameters": [ { "description": "阀门ID", "in": "query", "name": "valve", "required": true, "schema": { "description": "阀门ID", "title": "Valve", "type": "string" } }, { "description": "起点节点ID", "in": "query", "name": "node1", "required": true, "schema": { "description": "起点节点ID", "title": "Node1", "type": "string" } }, { "description": "终点节点ID", "in": "query", "name": "node2", "required": true, "schema": { "description": "终点节点ID", "title": "Node2", "type": "string" } }, { "description": "阀门直径(mm)", "in": "query", "name": "diameter", "required": false, "schema": { "default": 0, "description": "阀门直径(mm)", "title": "Diameter", "type": "number" } }, { "description": "阀门类型", "in": "query", "name": "v_type", "required": false, "schema": { "default": "PRV", "description": "阀门类型", "title": "V Type", "type": "string" } }, { "description": "阀门开度/设置值", "in": "query", "name": "setting", "required": false, "schema": { "default": 0, "description": "阀门开度/设置值", "title": "Setting", "type": "number" } }, { "description": "损失系数", "in": "query", "name": "minor_loss", "required": false, "schema": { "default": 0, "description": "损失系数", "title": "Minor Loss", "type": "number" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "添加阀门", "tags": [ "Valves" ] } }, "/api/v1/valves/diameter": { "get": { "description": "获取指定阀门的直径", "operationId": "get_valves_diameter", "parameters": [ { "description": "阀门ID", "in": "query", "name": "valve", "required": true, "schema": { "description": "阀门ID", "title": "Valve", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Response Get Valves Diameter" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取阀门直径", "tags": [ "Valves" ] }, "patch": { "description": "设置指定阀门的直径", "operationId": "patch_valves_diameter", "parameters": [ { "description": "阀门ID", "in": "query", "name": "valve", "required": true, "schema": { "description": "阀门ID", "title": "Valve", "type": "string" } }, { "description": "新的直径值(mm)", "in": "query", "name": "diameter", "required": true, "schema": { "description": "新的直径值(mm)", "title": "Diameter", "type": "number" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置阀门直径", "tags": [ "Valves" ] } }, "/api/v1/valves/existence": { "get": { "description": "检查指定ID是否为水网中的阀门", "operationId": "get_valves_existence", "parameters": [ { "description": "管线ID", "in": "query", "name": "link", "required": true, "schema": { "description": "管线ID", "title": "Link", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Valves Existence", "type": "boolean" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "检查是否为阀门", "tags": [ "Network General" ] } }, "/api/v1/valves/minor-loss": { "get": { "description": "获取指定阀门的损失系数", "operationId": "get_valves_minor_loss", "parameters": [ { "description": "阀门ID", "in": "query", "name": "valve", "required": true, "schema": { "description": "阀门ID", "title": "Valve", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Response Get Valves Minor Loss" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取阀门损失系数", "tags": [ "Valves" ] } }, "/api/v1/valves/node1": { "get": { "description": "获取指定阀门连接的起点节点ID", "operationId": "get_valves_node1", "parameters": [ { "description": "阀门ID", "in": "query", "name": "valve", "required": true, "schema": { "description": "阀门ID", "title": "Valve", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Response Get Valves Node1" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取阀门起点节点", "tags": [ "Valves" ] }, "patch": { "description": "设置指定阀门的起点节点", "operationId": "patch_valves_node1", "parameters": [ { "description": "阀门ID", "in": "query", "name": "valve", "required": true, "schema": { "description": "阀门ID", "title": "Valve", "type": "string" } }, { "description": "新的起点节点ID", "in": "query", "name": "node1", "required": true, "schema": { "description": "新的起点节点ID", "title": "Node1", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置阀门起点节点", "tags": [ "Valves" ] } }, "/api/v1/valves/node2": { "get": { "description": "获取指定阀门连接的终点节点ID", "operationId": "get_valves_node2", "parameters": [ { "description": "阀门ID", "in": "query", "name": "valve", "required": true, "schema": { "description": "阀门ID", "title": "Valve", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Response Get Valves Node2" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取阀门终点节点", "tags": [ "Valves" ] }, "patch": { "description": "设置指定阀门的终点节点", "operationId": "patch_valves_node2", "parameters": [ { "description": "阀门ID", "in": "query", "name": "valve", "required": true, "schema": { "description": "阀门ID", "title": "Valve", "type": "string" } }, { "description": "新的终点节点ID", "in": "query", "name": "node2", "required": true, "schema": { "description": "新的终点节点ID", "title": "Node2", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置阀门终点节点", "tags": [ "Valves" ] } }, "/api/v1/valves/properties": { "get": { "description": "获取指定阀门的所有属性", "operationId": "get_valves_properties", "parameters": [ { "description": "阀门ID", "in": "query", "name": "valve", "required": true, "schema": { "description": "阀门ID", "title": "Valve", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Valves Properties", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取阀门所有属性", "tags": [ "Valves" ] }, "patch": { "description": "批量设置指定阀门的多个属性", "operationId": "patch_valves_properties", "parameters": [ { "description": "阀门ID", "in": "query", "name": "valve", "required": true, "schema": { "description": "阀门ID", "title": "Valve", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "title": "Payload", "type": "object" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "批量设置阀门属性", "tags": [ "Valves" ] } }, "/api/v1/valves/setting": { "get": { "description": "获取指定阀门的开度/设置值", "operationId": "get_valves_setting", "parameters": [ { "description": "阀门ID", "in": "query", "name": "valve", "required": true, "schema": { "description": "阀门ID", "title": "Valve", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Response Get Valves Setting" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取阀门开度", "tags": [ "Valves" ] }, "patch": { "description": "设置指定阀门的开度/设置值", "operationId": "patch_valves_setting", "parameters": [ { "description": "阀门ID", "in": "query", "name": "valve", "required": true, "schema": { "description": "阀门ID", "title": "Valve", "type": "string" } }, { "description": "新的开度值", "in": "query", "name": "setting", "required": true, "schema": { "description": "新的开度值", "title": "Setting", "type": "number" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置阀门开度", "tags": [ "Valves" ] } }, "/api/v1/valves/type": { "get": { "description": "获取指定阀门的类型", "operationId": "get_valves_type", "parameters": [ { "description": "阀门ID", "in": "query", "name": "valve", "required": true, "schema": { "description": "阀门ID", "title": "Valve", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Response Get Valves Type" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取阀门类型", "tags": [ "Valves" ] }, "patch": { "description": "设置指定阀门的类型", "operationId": "patch_valves_type", "parameters": [ { "description": "阀门ID", "in": "query", "name": "valve", "required": true, "schema": { "description": "阀门ID", "title": "Valve", "type": "string" } }, { "description": "新的阀门类型", "in": "query", "name": "type", "required": true, "schema": { "description": "新的阀门类型", "title": "Type", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置阀门类型", "tags": [ "Valves" ] } }, "/api/v1/visual-elements": { "delete": { "description": "从网络中删除指定的图形元素", "operationId": "delete_visual_elements", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "title": "Payload", "type": "object" } } }, "required": true }, "responses": { "204": { "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "删除图形元素", "tags": [ "Visuals" ] }, "post": { "description": "在网络中添加一个新的图形元素", "operationId": "post_visual_elements", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "title": "Payload", "type": "object" } } }, "required": true }, "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "添加图形元素", "tags": [ "Visuals" ] } }, "/api/v1/visual-elements/links": { "get": { "description": "获取网络中的所有图形元素链接列表", "operationId": "get_visual_elements_links", "parameters": [ { "in": "query", "name": "limit", "required": false, "schema": { "default": 100, "maximum": 1000, "minimum": 1, "title": "Limit", "type": "integer" } }, { "in": "query", "name": "offset", "required": false, "schema": { "default": 0, "minimum": 0, "title": "Offset", "type": "integer" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "text/plain": { "schema": { "type": "string" } } }, "description": "Successful Response" }, "401": { "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取所有图形元素链接", "tags": [ "Visuals" ] } }, "/api/v1/visual-elements/properties": { "get": { "description": "获取指定图形元素的属性信息", "operationId": "get_visual_elements_properties", "parameters": [ { "description": "图形元素链接", "in": "query", "name": "link", "required": true, "schema": { "description": "图形元素链接", "title": "Link", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Get Visual Elements Properties", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "获取图形元素属性", "tags": [ "Visuals" ] }, "patch": { "description": "更新指定图形元素的属性", "operationId": "patch_visual_elements_properties", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "title": "Payload", "type": "object" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "设置图形元素属性", "tags": [ "Visuals" ] } }, "/api/v1/web-searches": { "post": { "description": "调用 Bocha Web Search API 获取实时网页搜索结果", "operationId": "post_web_searches", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WebSearchRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "title": "Response Post Web Searches", "type": "object" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Web Search", "tags": [ "Web Search" ] } }, "/api/v1/workbench/analysis-runs": { "get": { "description": "Return a bounded, sanitized analysis history page for the workbench.", "operationId": "get_workbench_analysis_runs", "parameters": [ { "in": "query", "name": "limit", "required": false, "schema": { "default": 20, "maximum": 100, "minimum": 1, "title": "Limit", "type": "integer" } }, { "in": "query", "name": "offset", "required": false, "schema": { "default": 0, "minimum": 0, "title": "Offset", "type": "integer" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WorkbenchAnalysisHistoryPage" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Workbench Analysis Runs", "tags": [ "Workbench Runtime" ] } }, "/api/v1/workbench/analysis-runs/{run_id}": { "get": { "description": "Return one authorized project's analysis run as a typed workbench artifact.", "operationId": "get_workbench_analysis_runs_run_id", "parameters": [ { "in": "path", "name": "run_id", "required": true, "schema": { "format": "uuid", "title": "Run Id", "type": "string" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WorkbenchRuntimeLatestAnalysis" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Workbench Analysis Run", "tags": [ "Workbench Runtime" ] } }, "/api/v1/workbench/events": { "get": { "operationId": "get_workbench_events", "parameters": [ { "in": "query", "name": "after", "required": false, "schema": { "anyOf": [ { "minimum": 0, "type": "integer" }, { "type": "null" } ], "title": "After" } }, { "in": "header", "name": "Last-Event-ID", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Last-Event-Id" } }, { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JsonValue" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Workbench Events", "tags": [ "Workbench Events" ] } }, "/api/v1/workbench/runtime": { "get": { "operationId": "get_workbench_runtime", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WorkbenchRuntimeSnapshot" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Workbench Runtime", "tags": [ "Workbench Runtime" ] } }, "/api/v1/workbench/sync-snapshot": { "get": { "operationId": "get_workbench_sync_snapshot", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WorkbenchSyncSnapshot" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Workbench Sync Snapshot", "tags": [ "Workbench Events" ] } }, "/api/v1/workbench/task-alert-events": { "post": { "operationId": "post_workbench_task_alert_events", "parameters": [ { "in": "header", "name": "X-Project-Id", "required": true, "schema": { "title": "X-Project-Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TaskAlertCommand" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TaskAlertState" } } }, "description": "Successful Response" }, "401": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Authentication required" }, "403": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Insufficient permission" }, "404": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource not found" }, "409": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Resource conflict" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Validation error" }, "503": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } }, "description": "Dependency unavailable" } }, "security": [ { "OAuth2PasswordBearer": [] } ], "summary": "Push Task Alert Event", "tags": [ "Workbench Runtime" ] } } } }