{ "swagger": "2.0", "info": { "title": "ADDP Develop API", "contact": {}, "version": "1.0" }, "host": "localhost:8185", "basePath": "/api/v1/develop", "paths": { "/approvals/{id}": { "get": { "description": "仅原申请用户可读取审批状态和最小请求摘要,不返回完整 workflow payload。| Only the requesting user can read the approval status and minimal request summary; the full workflow payload is not returned.", "produces": [ "application/json" ], "tags": [ "Tool Approval" ], "summary": "查询 Tool 审批 | Get Tool approval", "parameters": [ { "type": "string", "description": "审批 ID | Approval ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "审批详情 | Approval details", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ToolApprovalResponse" } }, "403": { "description": "无权访问审批 | Approval access denied", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ToolApprovalErrorResponse" } }, "404": { "description": "审批不存在 | Approval not found", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ToolApprovalErrorResponse" } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "develop.task.read" ] } }, "/approvals/{id}/decision": { "post": { "description": "仅原申请用户使用第一方或 OAuth User Access Token 提交 approved 或 rejected;委托令牌和内部身份不能作出决定。| Only the requesting user may submit approved or rejected with a first-party or OAuth user access token; delegated tokens and internal identities cannot decide.", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Tool Approval" ], "summary": "决定 Tool 审批 | Decide Tool approval", "parameters": [ { "type": "string", "description": "审批 ID | Approval ID", "name": "id", "in": "path", "required": true }, { "description": "审批决定 | Approval decision", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ToolApprovalDecisionRequest" } } ], "responses": { "200": { "description": "审批详情 | Approval details", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ToolApprovalResponse" } }, "400": { "description": "决定无效 | Invalid decision", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ToolApprovalErrorResponse" } }, "403": { "description": "无权决定审批 | Approval decision denied", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ToolApprovalErrorResponse" } }, "404": { "description": "审批不存在 | Approval not found", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ToolApprovalErrorResponse" } }, "409": { "description": "审批已处理 | Approval already decided", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ToolApprovalErrorResponse" } }, "410": { "description": "审批已过期 | Approval expired", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ToolApprovalErrorResponse" } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "develop.task.execute" ] } }, "/catalog-resources/changes": { "get": { "security": [ { "BearerAuth": [] } ], "description": "按不透明游标返回 Query / Workflow DevTask 的最小检索摘要变化,仅供 Catalog 服务消费 | Return minimal search-summary changes for Query / Workflow DevTasks by opaque cursor for the Catalog service only", "produces": [ "application/json" ], "tags": [ "Catalog Integration" ], "summary": "拉取 Develop 成果目录变化 | Pull Develop artifact catalog changes", "parameters": [ { "type": "string", "description": "上次成功提交的不透明游标,空值从历史起点开始 | Opaque cursor committed by the consumer; empty starts from the beginning", "name": "after_cursor", "in": "query" }, { "type": "integer", "description": "批大小,默认 200,最大 500 | Batch size, default 200 and maximum 500", "name": "limit", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.CatalogResourceChangesResponse" } }, "400": { "description": "无效游标或批大小 | Invalid cursor or batch size", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ErrorResponse" } }, "401": { "description": "需要认证 | Authentication required", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ErrorResponse" } }, "403": { "description": "非 Catalog 服务或权限不足 | Catalog service or permission required", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ErrorResponse" } }, "500": { "description": "读取失败 | Read failed", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ErrorResponse" } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "develop.catalog.read" ] } }, "/cleanup-executions/{execution_id}/result": { "get": { "security": [ { "BearerAuth": [] } ], "description": "仅第一方 unrestricted 租户用户;同时要求本模块专业结果权限、Cleanup公共读取权限及本人子执行归属。不返回SQL、凭据、对象路径或原始错误。 | First-party unrestricted tenant Users only; requires both professional and public Cleanup read permissions and ownership of the child execution. No SQL, credentials, object paths or raw errors.", "produces": [ "application/json" ], "tags": [ "Cleanup" ], "summary": "获取本模块资源回收专业结果 | Get module cleanup professional result", "parameters": [ { "type": "string", "description": "子执行UUID | Child execution UUID", "name": "execution_id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/cleanup.Result" } }, "400": { "description": "Bad Request", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "401": { "description": "Unauthorized", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "403": { "description": "Forbidden", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "404": { "description": "Not Found", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "409": { "description": "Conflict", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "503": { "description": "Service Unavailable", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "develop.cleanup_result.read", "system.cleanup.read" ] } }, "/engines": { "get": { "description": "返回 active 查询引擎;存储引擎须有当前用户有效元数据或读取来源,纯计算 Runtime 保持原能力规则;获权非 online 项禁选 | Return active query engines; storage engines require current User metadata or read sources, pure compute runtimes retain capability rules, and authorized non-online options are disabled", "produces": [ "application/json" ], "tags": [ "Engines" ], "summary": "获取查询工作台引擎选择项 | List engine options for the query workbench", "responses": { "200": { "description": "引擎运行时描述列表 | Engine runtime descriptor list", "schema": { "type": "array", "items": { "$ref": "#/definitions/models.EngineRuntimeDescriptor" } } }, "401": { "description": "核验失败 | Visibility check failed", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "403": { "description": "核验失败 | Visibility check failed", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "503": { "description": "核验失败 | Visibility check failed", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "develop.task.read" ] } }, "/engines/{id}/sample-query": { "get": { "security": [ { "BearerAuth": [] } ], "produces": [ "application/json" ], "tags": [ "Query" ], "summary": "获取查询模板 | Get query template", "parameters": [ { "type": "integer", "description": "引擎ID | Engine ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "所选数据项定位符;原生查询须属于当前引擎,联邦查询须属于受支持的来源引擎 | Selected data item locator; native queries require the selected engine, federated queries require a supported source engine", "name": "locator", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "type": "object", "additionalProperties": true } }, "400": { "description": "Bad Request", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "需要登录 | Authentication required", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "无执行或数据读取权限,或数据保护校验未通过 | Execution/data-read permission denied or data protection required", "schema": { "type": "object", "additionalProperties": true } }, "409": { "description": "授权状态冲突 | Authorization conflict", "schema": { "type": "object", "additionalProperties": true } }, "422": { "description": "所选数据项为空或当前业务库没有可用真实样例 | The selected data item is empty or no real sample data is available", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "Internal Server Error", "schema": { "type": "object", "additionalProperties": true } }, "503": { "description": "授权服务不可用 | Authorization service unavailable", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "develop.task.execute", "develop.data_read.execute" ] } }, "/execution-read-scope": { "get": { "security": [ { "BearerAuth": [] } ], "description": "仅第一方租户用户;范围由 Owner 的现有读取 Permission 裁决,任务历史与本人一次性执行使用不同条件。| First-party tenant users only; Owner permissions decide task history and own ad-hoc visibility.", "produces": [ "application/json" ], "tags": [ "Execution diagnostics" ], "summary": "获取任务执行读取范围 | Get execution read scope", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/execution.ReadScope" } }, "403": { "description": "Forbidden", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "authenticated" } }, "/executions": { "get": { "description": "专业读取仅本人执行,当前租户成员身份和授权版本须匹配;query/workflow 要求 data_read.execute,script 要求 notebook.read。| Professional reads require own execution, matching current membership and authorization version; query/workflow require data_read.execute and script require notebook.read.", "produces": [ "application/json" ], "tags": [ "Execution" ], "summary": "查询执行列表 | List executions", "parameters": [ { "type": "integer", "description": "页码 | Page number", "name": "page", "in": "query" }, { "type": "integer", "description": "每页数量 | Page size", "name": "page_size", "in": "query" }, { "type": "string", "description": "任务定义 ID 过滤 | Filter by source task ID", "name": "source_task_id", "in": "query" }, { "type": "string", "description": "Develop 内部类型过滤:query/workflow/script | Develop internal type filter: query/workflow/script", "name": "dev_type", "in": "query" }, { "type": "string", "description": "状态过滤 | Filter by status", "name": "status", "in": "query" }, { "type": "string", "description": "触发类型过滤 | Filter by trigger type", "name": "trigger_type", "in": "query" }, { "type": "string", "description": "开始日期 YYYY-MM-DD | Start date YYYY-MM-DD", "name": "start_date", "in": "query" }, { "type": "string", "description": "结束日期 YYYY-MM-DD | End date YYYY-MM-DD", "name": "end_date", "in": "query" } ], "responses": { "200": { "description": "执行列表 | Execution list", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ListExecutionsSwaggerResponse" } }, "403": { "description": "Forbidden", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "404": { "description": "Not Found", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-conditional-permissions": [ "develop.data_read.execute", "develop.notebook.read" ], "x-addp-required-permissions": [ "develop.task.read" ] }, "post": { "description": "第一方或 OAuth 用户提交 dev_type、trigger_type、content 和 execution_config 后直接执行。委托 workflow.run 首次提交相同执行内容并返回审批;批准后恢复请求只提交 approval_id 和 request_fingerprint。GeoPackage 文件工作流仅接收完整组成的来源,可含唯一 mode=fail 精确保存目标,并等待原单次批准;不支持委托执行。 | First-party or OAuth users submit dev_type, trigger_type, content, and execution_config for direct execution. A delegated workflow.run first submits the same execution content and receives an approval; after approval, the resume request contains only approval_id and request_fingerprint. GeoPackage workflows require complete sources, optionally one exact mode=fail save awaiting the original single-use approval, and do not support delegation.", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Execution" ], "summary": "执行临时内容 | Execute temporary content", "parameters": [ { "type": "string", "description": "首次提交时冻结;审批消费沿用最初语言 | Frozen at initial submission, retained through approval", "name": "Accept-Language", "in": "header" }, { "description": "执行请求 | Execution request", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.CreateExecutionSwaggerRequest" } } ], "responses": { "200": { "description": "执行已启动 | Execution started", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ExecutionStartedResponse" } }, "202": { "description": "需要在 Develop 完成审批 | Develop approval required", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ApprovalRequiredResponse" } }, "400": { "description": "请求无效 | Invalid request", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ToolApprovalErrorResponse" } }, "403": { "description": "审批身份无效 | Invalid approval identity", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ToolApprovalErrorResponse" } }, "409": { "description": "审批状态冲突 | Approval state conflict", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ToolApprovalErrorResponse" } }, "410": { "description": "审批已过期 | Approval expired", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ToolApprovalErrorResponse" } } }, "x-addp-auth-mode": "permission", "x-addp-conditional-permissions": [ "develop.data_read.execute", "develop.data_write.execute", "develop.data_ddl.execute", "develop.data_external_effect.execute", "develop.notebook.execute" ], "x-addp-required-permissions": [ "develop.task.execute" ] } }, "/executions/statistics": { "get": { "description": "专业读取仅本人执行,当前租户成员身份和授权版本须匹配;query/workflow 要求 data_read.execute,script 要求 notebook.read。| Professional reads require own execution, matching current membership and authorization version; query/workflow require data_read.execute and script require notebook.read.", "produces": [ "application/json" ], "tags": [ "Execution" ], "summary": "获取执行统计 | Get execution statistics", "parameters": [ { "type": "string", "description": "任务定义 ID | Source task ID", "name": "source_task_id", "in": "query" }, { "type": "string", "description": "开始日期 YYYY-MM-DD | Start date YYYY-MM-DD", "name": "start_date", "in": "query" }, { "type": "string", "description": "结束日期 YYYY-MM-DD | End date YYYY-MM-DD", "name": "end_date", "in": "query" } ], "responses": { "200": { "description": "执行统计 | Execution statistics", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ExecutionStatistics" } }, "403": { "description": "Forbidden", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "404": { "description": "Not Found", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-conditional-permissions": [ "develop.data_read.execute", "develop.notebook.read" ], "x-addp-required-permissions": [ "develop.task.read" ] } }, "/executions/{execution_id}": { "get": { "description": "专业读取仅本人执行,当前租户成员身份和授权版本须匹配;query/workflow 要求 data_read.execute,script 要求 notebook.read。| Professional reads require own execution, matching current membership and authorization version; query/workflow require data_read.execute and script require notebook.read.\n查询失败的 error_details.diagnostic 使用 schema_version=addp.execution-failure/v3、stage 和 reason 闭合码;可选 sql.object(kind/name) 与 sql.position(line/column) 仅含 Provider 确认的对象名及原查询位置,不返回原始错误正文。| Query failure error_details.diagnostic uses schema_version=addp.execution-failure/v3 and closed stage/reason codes; optional sql.object(kind/name) and sql.position(line/column) contain only provider-confirmed identifiers and original-source positions, without raw error text.\n工作流类型化参数错误使用同一受控诊断及operator上下文,仅含经冻结定义确认的节点序号、登记算子/参数和固定冲突字段;不回显原始Runtime错误。| Typed workflow input failures use the same controlled diagnostic with an operator context containing only a frozen-definition node index, registered operator/parameter and fixed conflicting field, without raw runtime errors.", "produces": [ "application/json" ], "tags": [ "Execution" ], "summary": "获取执行详情 | Get execution details", "parameters": [ { "type": "string", "description": "执行ID(UUID)| Execution ID (UUID)", "name": "execution_id", "in": "path", "required": true } ], "responses": { "200": { "description": "执行详情 | Execution details", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ExecutionWithDevTaskSwagger" } }, "403": { "description": "Forbidden", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "404": { "description": "Not Found", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-conditional-permissions": [ "develop.data_read.execute", "develop.notebook.read" ], "x-addp-required-permissions": [ "develop.task.read" ] } }, "/executions/{execution_id}/exports": { "post": { "description": "使用成功查询快照或完整当次工作流表格创建一次性 Transfer 导出;工作流下载不得超过原明细截止且逐次核验来源与保护。| Export a successful query snapshot or complete current workflow table through one-off Transfer execution; workflow delivery rechecks source access and protection and ends at the original result deadline.", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Execution" ], "summary": "导出全部当次结果 | Export all current results", "parameters": [ { "type": "string", "description": "本人查询或工作流执行 ID | Own query or workflow execution ID", "name": "execution_id", "in": "path", "required": true }, { "description": "导出格式与文件名 | Export format and file name", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.CreateQueryExportRequest" } } ], "responses": { "202": { "description": "Accepted", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.CreateQueryExportResponse" }, "headers": { "Cache-Control": { "type": "string", "description": "no-store;禁止缓存此响应 | no-store; do not cache this response" } } }, "400": { "description": "Bad Request", "schema": { "type": "object", "additionalProperties": { "type": "string" } }, "headers": { "Cache-Control": { "type": "string", "description": "no-store;禁止缓存此响应 | no-store; do not cache this response" } } }, "403": { "description": "缺少角色专用导出执行权限 | Missing role-specific export execution permissions", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ErrorResponse" }, "headers": { "Cache-Control": { "type": "string", "description": "no-store;禁止缓存此响应 | no-store; do not cache this response" } } }, "404": { "description": "Not Found", "schema": { "type": "object", "additionalProperties": { "type": "string" } }, "headers": { "Cache-Control": { "type": "string", "description": "no-store;禁止缓存此响应 | no-store; do not cache this response" } } }, "409": { "description": "query_protection_roles_unavailable:角色资格不可用;query_protection_choice_invalid:脱敏方式失效;export_protection_changed:保护已变化,请重新导出 | Role eligibility unavailable, masking method invalid, or export protection changed; export again", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ErrorResponse" }, "headers": { "Cache-Control": { "type": "string", "description": "no-store;禁止缓存此响应 | no-store; do not cache this response" } } }, "422": { "description": "当前引擎不支持完整查询结果导出 | Engine does not support full query result export", "schema": { "type": "object", "additionalProperties": { "type": "string" } }, "headers": { "Cache-Control": { "type": "string", "description": "no-store;禁止缓存此响应 | no-store; do not cache this response" } } }, "503": { "description": "Service Unavailable", "schema": { "type": "object", "additionalProperties": { "type": "string" } }, "headers": { "Cache-Control": { "type": "string", "description": "no-store;禁止缓存此响应 | no-store; do not cache this response" } } } }, "x-addp-auth-mode": "permission", "x-addp-conditional-permissions": [ "system.execution_authorization.create", "transfer.task.execute" ], "x-addp-required-permissions": [ "develop.task.read", "develop.task.execute", "develop.data_read.execute" ] } }, "/executions/{execution_id}/logs": { "get": { "description": "专业读取仅本人执行,当前租户成员身份和授权版本须匹配;query/workflow 要求 data_read.execute,script 要求 notebook.read。| Professional reads require own execution, matching current membership and authorization version; query/workflow require data_read.execute and script require notebook.read.", "produces": [ "application/json" ], "tags": [ "Execution" ], "summary": "获取执行日志 | Get execution logs", "parameters": [ { "type": "string", "description": "执行ID(UUID)| Execution ID (UUID)", "name": "execution_id", "in": "path", "required": true } ], "responses": { "200": { "description": "执行日志;无记录为空数组 | Recorded logs; empty array when none were recorded", "schema": { "$ref": "#/definitions/internal_api.ExecutionLogsResponse" } }, "403": { "description": "Forbidden", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "404": { "description": "Not Found", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "503": { "description": "日志不可用 | Logs unavailable", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-conditional-permissions": [ "develop.data_read.execute", "develop.notebook.read" ], "x-addp-required-permissions": [ "develop.task.read" ] } }, "/executions/{execution_id}/result": { "get": { "description": "仅本人查询;原值仅从有界进程内暂存按当前授权返回。历史详情始终脱敏;暂存失效后需重新查询。| Own queries only. Plaintext is reauthorized from bounded process memory; history stays protected and expired delivery requires a new query.\n共享 SQL Runtime 的结果含真实输出 fields;bigint/decimal 单元格以精确字符串表示。| Shared SQL Runtime results include native output fields; bigint/decimal cells use exact strings.\nMySQL/PostGIS 几何单元格统一为 {wkt,srid},保留原坐标、EMPTY 与 SQL NULL;脱敏文本不恢复几何。| MySQL/PostGIS geometry cells use {wkt,srid}, preserving coordinates, EMPTY and SQL NULL; masked text is never restored as geometry.\n只读私有工作流表格仅从有界进程内暂存交付,逐次检查本人权限、实际来源 read Grant 与数据保护;过期返回409,历史和编排只保留摘要。| Read-only private workflow tables are delivered from bounded process memory with current owner permissions, actual source read grants and data protection rechecked; expired delivery returns 409 and history/orchestration keep summaries.", "produces": [ "application/json" ], "tags": [ "Execution" ], "summary": "获取本人当次查询或工作流结果 | Get own current query or workflow result", "parameters": [ { "type": "string", "description": "执行ID(UUID)| Execution ID (UUID)", "name": "execution_id", "in": "path", "required": true } ], "responses": { "200": { "description": "当次结果 | Current result", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ExecutionWithDevTaskSwagger" } }, "403": { "description": "Forbidden", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "404": { "description": "Not Found", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "409": { "description": "脱敏方式失效或当次查询/工作流结果不可用 | Masking choice unavailable or current query/workflow result unavailable", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ErrorResponse" } } }, "x-addp-auth-mode": "permission", "x-addp-conditional-permissions": [ "develop.data_read.execute" ], "x-addp-required-permissions": [ "develop.task.read" ] } }, "/executions/{execution_id}/retry": { "post": { "description": "必须先具有本人原执行的专业读取权,再以当前执行授权重试。| Requires professional read access to own original execution before retrying with current execution authorization.", "tags": [ "Execution" ], "summary": "重试执行 | Retry execution", "parameters": [ { "type": "string", "description": "执行ID(UUID)| Execution ID (UUID)", "name": "execution_id", "in": "path", "required": true } ], "responses": { "200": { "description": "重试已启动 | Retry started", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-conditional-permissions": [ "develop.data_read.execute", "develop.data_write.execute", "develop.data_ddl.execute", "develop.data_external_effect.execute", "develop.notebook.execute" ], "x-addp-required-permissions": [ "develop.task.execute" ] } }, "/exports/{id}": { "get": { "description": "复核原 execution 的当前本人专业读取权。| Recheck current professional read access to the original own execution.", "produces": [ "application/json" ], "tags": [ "Execution" ], "summary": "获取查询导出会话 | Get query export session", "parameters": [ { "type": "integer", "description": "导出会话 ID | Export session ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.CreateQueryExportResponse" }, "headers": { "Cache-Control": { "type": "string", "description": "no-store;禁止缓存此响应 | no-store; do not cache this response" } } }, "404": { "description": "Not Found", "schema": { "type": "object", "additionalProperties": { "type": "string" } }, "headers": { "Cache-Control": { "type": "string", "description": "no-store;禁止缓存此响应 | no-store; do not cache this response" } } }, "409": { "description": "query_protection_roles_unavailable:角色资格不可用;query_protection_choice_invalid:脱敏方式失效;export_protection_changed:保护已变化,请重新导出 | Role eligibility unavailable, masking method invalid, or export protection changed; export again", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ErrorResponse" }, "headers": { "Cache-Control": { "type": "string", "description": "no-store;禁止缓存此响应 | no-store; do not cache this response" } } } }, "x-addp-auth-mode": "permission", "x-addp-conditional-permissions": [ "develop.data_read.execute", "transfer.task.execute" ], "x-addp-required-permissions": [ "develop.task.read" ] } }, "/exports/{id}/file": { "get": { "description": "路径绑定 Resource Ticket 验证后,仍复核原 execution 的当前本人专业读取权。| After route-bound Resource Ticket validation, recheck current professional read access to the original own execution.\n所有文件交付前复核 Transfer 当前保护状态,失效返回409/export_protection_changed并要求重新导出。角色专用文件同时核验当前 User 资格。| All artifacts recheck current Transfer protection; invalid protection returns 409/export_protection_changed and requires a fresh export. Role-specific files also verify the current User.", "produces": [ "application/octet-stream" ], "tags": [ "Execution" ], "summary": "下载查询导出文件 | Download query export file", "parameters": [ { "type": "integer", "description": "导出会话 ID | Export session ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "下载内容流 | Download content stream", "headers": { "Cache-Control": { "type": "string", "description": "no-store;禁止缓存此响应 | no-store; do not cache this response" } } }, "404": { "description": "Not Found", "schema": { "type": "object", "additionalProperties": { "type": "string" } }, "headers": { "Cache-Control": { "type": "string", "description": "no-store;禁止缓存此响应 | no-store; do not cache this response" } } }, "409": { "description": "query_protection_roles_unavailable:角色资格不可用;query_protection_choice_invalid:脱敏方式失效;query_export_not_ready:尚未完成;export_protection_changed:保护已变化,请重新导出 | Role eligibility unavailable, masking method invalid, export not ready, or protection changed; export again", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ErrorResponse" }, "headers": { "Cache-Control": { "type": "string", "description": "no-store;禁止缓存此响应 | no-store; do not cache this response" } } } }, "x-addp-auth-mode": "resource_ticket", "x-addp-required-permissions": [ "develop.task.read", "develop.data_read.execute" ] } }, "/notebook-copilot-sessions/{session_id}/generate": { "post": { "description": "未提交 selections 时返回当前 Session 内的数据源候选;提交每个角色确认的 selection 后重新验证 Catalog 与字段事实并生成代码。只返回代码,不执行。 | Without selections, returns data-source candidates inside the current Session. With one confirmed selection per role, revalidates Catalog and field facts before generating code. Returns code without executing it.", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Notebook" ], "summary": "生成 Notebook Python 单元 | Generate Notebook Python cell", "parameters": [ { "type": "string", "description": "Notebook 会话 ID | Notebook session ID", "name": "session_id", "in": "path", "required": true }, { "description": "自然语言与已确认数据源 | Natural language and confirmed data sources", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_service.NotebookCopilotRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_service.NotebookCopilotResponse" } }, "400": { "description": "Bad Request", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "401": { "description": "Unauthorized", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "403": { "description": "Forbidden", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "502": { "description": "Bad Gateway", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "develop.notebook.update", "develop.task.read" ] } }, "/notebook-engines": { "get": { "description": "返回 active 且支持 notebook 模式的注册 Script Engine;非 online 项由前端展示并禁选 | Return active registered Script Engines supporting notebook mode; clients must show but disable non-online options", "produces": [ "application/json" ], "tags": [ "Notebook" ], "summary": "列出 Notebook 引擎选择项 | List Notebook engine options", "responses": { "200": { "description": "Notebook引擎列表 | Notebook engine list", "schema": { "type": "array", "items": { "$ref": "#/definitions/models.EngineRuntimeDescriptor" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "develop.notebook.read" ] } }, "/notebook-engines/{id}/kernels": { "get": { "produces": [ "application/json" ], "tags": [ "Notebook" ], "summary": "按 Notebook 引擎列出 Kernel | List kernels by Notebook engine", "parameters": [ { "type": "integer", "description": "Notebook 引擎实例 ID | Notebook engine instance ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "Kernel列表 | Kernel list", "schema": { "$ref": "#/definitions/internal_api.ListKernelsResponse" } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "develop.notebook.read" ] } }, "/notebook-kernel-sessions/{session_id}/catalog/children": { "post": { "description": "仅接受当前隔离 Kernel 的短期 Notebook Kernel Capability;Develop 使用 Session 绑定的 Notebook Session Authorization 调用 System。 | Only accepts the isolated Kernel's short-lived Notebook Kernel Capability; Develop calls System with the Session-bound Notebook Session Authorization.", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Notebook" ], "summary": "获取 Notebook Kernel 实时 Catalog 子节点 | List live Catalog children for a Notebook Kernel", "parameters": [ { "type": "string", "description": "Notebook 会话 ID | Notebook session ID", "name": "session_id", "in": "path", "required": true }, { "description": "Engine 与 Catalog 路径 | Engine and Catalog path", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/internal_api.notebookEngineCatalogChildrenRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/client.EngineCatalogListChildrenResponse" } }, "400": { "description": "Bad Request", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "401": { "description": "Unauthorized", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "403": { "description": "Forbidden", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "404": { "description": "Not Found", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "422": { "description": "Unprocessable Entity", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "502": { "description": "Bad Gateway", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "503": { "description": "Service Unavailable", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "504": { "description": "Gateway Timeout", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "authenticated" } }, "/notebook-kernel-sessions/{session_id}/change-streams": { "post": { "consumes": [ "application/json" ], "produces": [ "application/x-ndjson" ], "tags": [ "Notebook" ], "summary": "流式读取 Notebook Kafka topic | Stream a Notebook Kafka topic", "parameters": [ { "type": "string", "description": "Notebook 会话 ID | Notebook session ID", "name": "session_id", "in": "path", "required": true }, { "description": "Topic 路径与起始位置 | Topic path and initial positions", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/internal_api.notebookChangeStreamRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "type": "file" } }, "400": { "description": "Bad Request", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "401": { "description": "Unauthorized", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "403": { "description": "Forbidden", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "422": { "description": "Unprocessable Entity", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "502": { "description": "Bad Gateway", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "503": { "description": "Service Unavailable", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "504": { "description": "Gateway Timeout", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "authenticated" } }, "/notebook-kernel-sessions/{session_id}/content-reads": { "post": { "consumes": [ "application/json" ], "produces": [ "application/octet-stream" ], "tags": [ "Notebook" ], "summary": "读取 Notebook 对象或文件内容 | Read Notebook object or file content", "parameters": [ { "type": "string", "description": "Notebook 会话 ID | Notebook session ID", "name": "session_id", "in": "path", "required": true }, { "description": "内容路径与可选范围 | Content path and optional range", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/internal_api.notebookContentReadRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "type": "file" } }, "400": { "description": "Bad Request", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "401": { "description": "Unauthorized", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "403": { "description": "Forbidden", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "422": { "description": "Unprocessable Entity", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "502": { "description": "Bad Gateway", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "503": { "description": "Service Unavailable", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "504": { "description": "Gateway Timeout", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "authenticated" } }, "/notebook-kernel-sessions/{session_id}/engine-descriptors": { "get": { "description": "仅接受 Develop 注入当前隔离 Kernel 的短期 Notebook Kernel Capability Bearer;Develop 使用 Session Authorization 调用 System 完成授权复核和数据引擎发现。 | Only accepts the short-lived Notebook Kernel Capability Bearer injected by Develop into the isolated Kernel; Develop uses the Session Authorization to let System review authorization and discover data engines.", "produces": [ "application/json" ], "tags": [ "Notebook" ], "summary": "获取 Notebook Kernel 可用数据引擎 | List data engines available to a Notebook Kernel", "parameters": [ { "type": "string", "description": "Notebook 会话 ID | Notebook session ID", "name": "session_id", "in": "path", "required": true } ], "responses": { "200": { "description": "脱敏数据引擎描述列表 | Masked data engine descriptor list", "schema": { "type": "array", "items": { "$ref": "#/definitions/models.EngineRuntimeDescriptor" } } }, "401": { "description": "会话能力无效或已过期 | Session capability is invalid or expired", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "502": { "description": "查询引擎发现失败 | Query engine discovery failed", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "authenticated" } }, "/notebook-kernel-sessions/{session_id}/graph-queries": { "post": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Notebook" ], "summary": "执行 Notebook 图查询 | Execute a Notebook graph query", "parameters": [ { "type": "string", "description": "Notebook 会话 ID | Notebook session ID", "name": "session_id", "in": "path", "required": true }, { "description": "Cypher 与执行边界 | Cypher and execution bounds", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/internal_api.notebookGraphQueryRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/plugin.GraphQueryResult" } }, "400": { "description": "Bad Request", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "401": { "description": "Unauthorized", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "403": { "description": "Forbidden", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "422": { "description": "Unprocessable Entity", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "502": { "description": "Bad Gateway", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "503": { "description": "Service Unavailable", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "504": { "description": "Gateway Timeout", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "authenticated" } }, "/notebook-kernel-sessions/{session_id}/graph-samples": { "post": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Notebook" ], "summary": "获取 Notebook 图样本 | Get a Notebook graph sample", "parameters": [ { "type": "string", "description": "Notebook 会话 ID | Notebook session ID", "name": "session_id", "in": "path", "required": true }, { "description": "图路径与样本边界 | Graph path and sample bounds", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/internal_api.notebookGraphSampleRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/plugin.GraphData" } }, "400": { "description": "Bad Request", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "401": { "description": "Unauthorized", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "403": { "description": "Forbidden", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "422": { "description": "Unprocessable Entity", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "502": { "description": "Bad Gateway", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "503": { "description": "Service Unavailable", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "504": { "description": "Gateway Timeout", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "authenticated" } }, "/notebook-kernel-sessions/{session_id}/queries": { "post": { "description": "打开 PostgreSQL 查询时一次核验原会话用户对全部来源的 read 授权;任一来源无权即拒绝整次查询。 | When a PostgreSQL query opens, all source read grants are checked once for the session user. A missing grant denies the entire query.\nlanguage 必须与引擎 QueryRuntimeProvider 声明一致;查询必须携带显式 max_rows 与 timeout。 | Language must match the engine QueryRuntimeProvider declaration; the query requires explicit max_rows and timeout.", "consumes": [ "application/json" ], "produces": [ "application/vnd.apache.arrow.stream" ], "tags": [ "Notebook" ], "summary": "执行 Notebook 有界只读查询 | Execute a bounded Notebook read query", "parameters": [ { "type": "string", "description": "Notebook 会话 ID | Notebook session ID", "name": "session_id", "in": "path", "required": true }, { "description": "查询与执行边界 | Query and execution boundary", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/internal_api.notebookQueryRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "type": "file" } }, "400": { "description": "Bad Request", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "401": { "description": "Unauthorized", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "403": { "description": "Forbidden", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "422": { "description": "Unprocessable Entity", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "502": { "description": "Bad Gateway", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "503": { "description": "Service Unavailable", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "504": { "description": "Gateway Timeout", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "authenticated" } }, "/notebook-kernel-sessions/{session_id}/record-scans": { "post": { "description": "每条动态 schema 文档以稳定 document JSON 字段传输,SDK 还原为原生记录。 | Each dynamic-schema document is transported in a stable document JSON field and restored by the SDK.", "consumes": [ "application/json" ], "produces": [ "application/vnd.apache.arrow.stream" ], "tags": [ "Notebook" ], "summary": "流式读取 Notebook collection | Stream a Notebook collection", "parameters": [ { "type": "string", "description": "Notebook 会话 ID | Notebook session ID", "name": "session_id", "in": "path", "required": true }, { "description": "Collection 路径与批大小 | Collection path and batch size", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/internal_api.notebookRecordScanRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "type": "file" } }, "400": { "description": "Bad Request", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "401": { "description": "Unauthorized", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "403": { "description": "Forbidden", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "422": { "description": "Unprocessable Entity", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "502": { "description": "Bad Gateway", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "503": { "description": "Service Unavailable", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "504": { "description": "Gateway Timeout", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "authenticated" } }, "/notebook-kernel-sessions/{session_id}/table-scans": { "post": { "description": "打开 PostgreSQL 扫描时一次核验原会话用户对已绑定表的 read 授权。撤销该 Grant 从下一次读取生效。 | When a PostgreSQL scan opens, the session user’s read grant is checked once for the bound table. Revocation applies to the next read.\n每次调用派生独立只读 Execution Authorization;连接只在 Develop 受控 Runtime 内使用。 | Each call derives an independent read-only Execution Authorization; connection details remain inside the controlled Develop runtime.", "consumes": [ "application/json" ], "produces": [ "application/vnd.apache.arrow.stream" ], "tags": [ "Notebook" ], "summary": "流式读取 Notebook 表 | Stream a Notebook table", "parameters": [ { "type": "string", "description": "Notebook 会话 ID | Notebook session ID", "name": "session_id", "in": "path", "required": true }, { "description": "表路径与批大小 | Table path and batch size", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/internal_api.notebookTableScanRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "type": "file" } }, "400": { "description": "Bad Request", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "401": { "description": "Unauthorized", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "403": { "description": "Forbidden", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "409": { "description": "Conflict", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "422": { "description": "Unprocessable Entity", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "502": { "description": "Bad Gateway", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "503": { "description": "Service Unavailable", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "504": { "description": "Gateway Timeout", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "authenticated" } }, "/notebooks": { "get": { "produces": [ "application/json" ], "tags": [ "Notebook" ], "summary": "列出 Notebooks | List Notebooks", "parameters": [ { "type": "integer", "default": 1, "description": "页码 | Page number", "name": "page", "in": "query" }, { "type": "integer", "default": 20, "description": "每页数量 | Page size", "name": "page_size", "in": "query" } ], "responses": { "200": { "description": "Notebook列表 | Notebook list", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ListDevTasksSwaggerResponse" } }, "500": { "description": "执行事实读取失败 | Execution facts read failed", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ErrorResponse" } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "develop.notebook.read" ] }, "post": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Notebook" ], "summary": "新建空白 Notebook | Create blank Notebook", "parameters": [ { "description": "Notebook 创建参数 | Notebook creation parameters", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.CreateNotebookSwaggerRequest" } } ], "responses": { "201": { "description": "已创建的 Notebook | Created Notebook", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.UploadNotebookSwaggerResponse" } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "develop.notebook.create" ] } }, "/notebooks/:id": { "delete": { "tags": [ "Notebook" ], "summary": "删除 Notebook | Delete Notebook", "parameters": [ { "type": "integer", "description": "DevTask ID | DevTask ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "删除成功 | Deleted successfully", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "develop.notebook.delete" ] } }, "/notebooks/:id/download": { "get": { "produces": [ "application/json" ], "tags": [ "Notebook" ], "summary": "下载 Notebook | Download Notebook", "parameters": [ { "type": "integer", "description": "DevTask ID | DevTask ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "Notebook文件 | Notebook file", "schema": { "type": "file" } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "develop.notebook.read" ] } }, "/notebooks/upload": { "post": { "consumes": [ "multipart/form-data" ], "produces": [ "application/json" ], "tags": [ "Notebook" ], "summary": "上传 Notebook | Upload Notebook", "parameters": [ { "type": "file", "description": "Notebook 文件 (.ipynb) | Notebook file (.ipynb)", "name": "file", "in": "formData", "required": true }, { "type": "string", "description": "Notebook 名称 | Notebook name", "name": "name", "in": "formData", "required": true }, { "type": "string", "description": "描述 | Description", "name": "description", "in": "formData" }, { "type": "string", "description": "参数 (JSON 对象) | Parameters (JSON object)", "name": "parameters", "in": "formData" }, { "type": "integer", "description": "Notebook 引擎实例 ID | Notebook engine instance ID", "name": "engine_id", "in": "formData", "required": true }, { "type": "string", "description": "Kernel 名称 | Kernel name", "name": "kernel", "in": "formData", "required": true } ], "responses": { "200": { "description": "已上传的Notebook | Uploaded Notebook", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.UploadNotebookSwaggerResponse" } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "develop.notebook.create" ] } }, "/notebooks/{id}/runtime-binding": { "put": { "description": "校验目标引擎和 Kernel 后更新原任务,仅影响后续执行,历史执行快照保持不变。| Validate the target engine and kernel, then update the original task for future executions only; historical execution snapshots remain unchanged.", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Notebook" ], "summary": "更换 Notebook 运行时绑定 | Replace Notebook runtime binding", "parameters": [ { "type": "integer", "description": "DevTask ID | DevTask ID", "name": "id", "in": "path", "required": true }, { "description": "运行时绑定 | Runtime binding", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.NotebookRuntimeBindingSwaggerRequest" } } ], "responses": { "200": { "description": "已更新的 Notebook | Updated Notebook", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.DevTaskSwagger" } }, "400": { "description": "请求参数错误 | Invalid request", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ErrorResponse" } }, "404": { "description": "Notebook 不存在 | Notebook not found", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ErrorResponse" } }, "422": { "description": "引擎、Kernel 或任务类型校验失败 | Engine, kernel, or task type validation failed", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ErrorResponse" } }, "500": { "description": "更新失败 | Update failed", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ErrorResponse" } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "develop.notebook.update" ] } }, "/notebooks/{id}/sessions": { "post": { "produces": [ "application/json" ], "tags": [ "Notebook" ], "summary": "创建 Notebook 交互会话 | Create Notebook interactive session", "parameters": [ { "type": "integer", "description": "DevTask ID | DevTask ID", "name": "id", "in": "path", "required": true } ], "responses": { "201": { "description": "Notebook 交互会话 | Notebook interactive session", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_service.NotebookSession" } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "develop.notebook.update", "develop.task.read" ] } }, "/notebooks/{id}/sessions/{session_id}": { "delete": { "tags": [ "Notebook" ], "summary": "关闭 Notebook 交互会话 | Close Notebook interactive session", "parameters": [ { "type": "integer", "description": "DevTask ID | DevTask ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "会话 ID | Session ID", "name": "session_id", "in": "path", "required": true } ], "responses": { "204": { "description": "No Content" } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "develop.notebook.update" ] } }, "/query-preflight": { "post": { "security": [ { "BearerAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Query" ], "summary": "查询执行预检 | Preflight a query", "parameters": [ { "description": "查询预检请求 | Query preflight request", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.QueryPreflightRequest" } } ], "responses": { "200": { "description": "预检结果 | Preflight result", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.QueryPreflightResponse" } }, "400": { "description": "查询语句无效 | Invalid query", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ErrorResponse" } }, "401": { "description": "需要登录 | Authentication required", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ErrorResponse" } }, "503": { "description": "查询分析服务不可用 | Query analysis unavailable", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ErrorResponse" } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "develop.task.execute" ] } }, "/query-protection-options": { "get": { "security": [ { "BearerAuth": [] } ], "produces": [ "application/json" ], "tags": [ "Query" ], "summary": "查询本人可选脱敏方式 | List my selectable masking methods", "parameters": [ { "type": "integer", "description": "引擎 ID | Engine ID", "name": "engine_id", "in": "query", "required": true }, { "type": "string", "description": "精确数据项定位符 | Exact data item locator", "name": "target_locator", "in": "query", "required": true } ], "responses": { "200": { "description": "字段可选方式 | Selectable field methods", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.QueryProtectionOptionsResponse" } }, "400": { "description": "无效来源 | Invalid source", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ErrorResponse" } }, "401": { "description": "需要本人登录 | Current user login required", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ErrorResponse" } }, "409": { "description": "角色或保护方式不可用 | Role or masking method unavailable", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ErrorResponse" } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "develop.task.execute", "develop.data_read.execute" ] } }, "/runtime/catalog-references/resolve": { "post": { "security": [ { "BearerAuth": [] } ], "description": "按请求顺序动态解析 1 到 200 个 DevTask 引用;跨 Tenant、不在接入范围和不存在统一 found=false,仅供 Catalog 服务消费 | Dynamically resolve 1 to 200 DevTask references in request order; cross-tenant, out-of-scope, and missing references all return found=false; Catalog service only", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Catalog Integration" ], "summary": "解析 Develop 成果目录引用 | Resolve Develop artifact catalog references", "parameters": [ { "description": "DevTask 目录引用 | DevTask catalog references", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ResolveCatalogReferencesRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ResolveCatalogReferencesResponse" } }, "400": { "description": "请求无效 | Invalid request", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ErrorResponse" } }, "401": { "description": "需要认证 | Authentication required", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ErrorResponse" } }, "403": { "description": "非 Catalog 服务或权限不足 | Catalog service or permission required", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ErrorResponse" } }, "500": { "description": "解析失败 | Resolution failed", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ErrorResponse" } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "develop.catalog.read" ] } }, "/runtime/export-sessions/{id}/execution-source": { "post": { "security": [ { "BearerAuth": [] } ], "description": "仅 Transfer 服务可核验租户内待执行导出会话的 UUID、请求摘要与发起用户;该事实不授予执行或数据访问权。| Only Transfer may verify the UUID, request digest and initiator of a pending tenant export session; these facts grant no execution or data access.", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Execution" ], "summary": "核验导出执行来源 | Verify export execution provenance", "parameters": [ { "type": "integer", "description": "导出会话 ID | Export session ID", "name": "id", "in": "path", "required": true }, { "description": "来源绑定 | Provenance binding", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/client.ExportExecutionSourceRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/client.ExportExecutionSource" } }, "400": { "description": "Bad Request", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "403": { "description": "Forbidden", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "404": { "description": "Not Found", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "503": { "description": "Service Unavailable", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "develop.export_provenance.read" ] } }, "/runtime/file-executions/{execution_id}": { "get": { "security": [ { "BearerAuth": [] } ], "description": "仅同租户 addp-system Service;返回原始配置、Intent、主体、绑定范围及已登记发布操作的最小事实。不返回连接、凭据、租约、Provider 私有回执或授权结论。 | Same-tenant addp-system Service only. Returns the original config, intent, actor, bound scope and minimal registered publication facts without connections, credentials, leases, private Provider receipts or permission decisions.", "produces": [ "application/json" ], "tags": [ "Execution authorization" ], "summary": "读取 Develop 冻结文件执行事实 | Read frozen Develop file execution facts", "parameters": [ { "type": "string", "description": "原执行 UUID | Original execution UUID", "name": "execution_id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/client.DevelopFileExecutionFacts" } }, "400": { "description": "Bad Request", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "401": { "description": "Unauthorized", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "403": { "description": "Forbidden", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "404": { "description": "Not Found", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "500": { "description": "Internal Server Error", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "develop.file_execution.read" ] } }, "/runtime/productions/{execution_id}/{result_id}/receipt": { "get": { "security": [ { "BearerAuth": [] } ], "description": "仅同租户 System 或 Meta Service;结果 UUID 是原发布 operation UUID。父任务失败不抹除已提交成果;不返回配置、Runtime manifest、Provider 私有状态、连接、凭据、lease 或授权结论。 | Same-tenant System or Meta Service only. The result UUID is the original publication operation UUID. Parent failure does not erase committed results. Returns no config, Runtime manifest, private Provider state, connection, credentials, lease or authorization verdict.", "produces": [ "application/json" ], "tags": [ "Execution authorization" ], "summary": "读取 Develop 最小成果回执 | Read minimal Develop production receipt", "parameters": [ { "type": "string", "description": "原执行 UUID | Original execution UUID", "name": "execution_id", "in": "path", "required": true }, { "type": "string", "description": "原发布 operation UUID | Original publication operation UUID", "name": "result_id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/production.Receipt" } }, "400": { "description": "Bad Request", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "401": { "description": "Unauthorized", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "403": { "description": "Forbidden", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "404": { "description": "Not Found", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "500": { "description": "Internal Server Error", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "develop.production_receipt.read" ] } }, "/settings/execution-policy": { "get": { "security": [ { "BearerAuth": [] } ], "produces": [ "application/json" ], "tags": [ "配置管理 | Configuration Management" ], "summary": "获取执行策略 | Get execution policy", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_service.ExecutionPolicyResponse" } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "develop.configuration.read" ] }, "put": { "security": [ { "BearerAuth": [] } ], "description": "平台维护并发、超时和预览策略;租户仅可覆盖默认超时。保存后并发热更新,新执行冻结超时和预览上限。 | Platform manages concurrency, timeout and preview limits; tenants override only the default timeout. Concurrency reloads without restart; new executions freeze their timeout and preview limits.", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "配置管理 | Configuration Management" ], "summary": "更新执行策略 | Update execution policy", "parameters": [ { "description": "执行策略 | Execution policy", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_service.UpdateExecutionPolicyInput" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_service.ExecutionPolicyResponse" } }, "409": { "description": "Conflict", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "develop.configuration.update" ] } }, "/source-engines": { "get": { "security": [ { "BearerAuth": [] } ], "description": "当前原用户的有效元数据或读取来源决定存储引擎可见性;仅返回无凭据运行描述,不授予连接或执行权 | Current original User metadata or read sources determine storage visibility. Returns credential-free runtime descriptors, not connection or execution authority", "produces": [ "application/json" ], "tags": [ "Engines" ], "summary": "获取当前可见查询来源引擎 | List currently visible query source engines", "responses": { "200": { "description": "当前可见来源 | Currently visible sources", "schema": { "type": "array", "items": { "$ref": "#/definitions/models.EngineRuntimeDescriptor" } } }, "401": { "description": "核验失败 | Visibility check failed", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "403": { "description": "核验失败 | Visibility check failed", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "503": { "description": "核验失败 | Visibility check failed", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "develop.task.read" ] } }, "/spark-runtimes": { "get": { "description": "返回 active 的 Spark 注册引擎及其连接状态;非 online 项由前端展示并禁选 | Return active registered Spark engines with connection status; clients must show but disable non-online options", "produces": [ "application/json" ], "tags": [ "Engines" ], "summary": "获取所有 Apache Spark 通用引擎资源列表 | List all Apache Spark general engine resources", "responses": { "200": { "description": "Spark通用引擎描述列表 | Spark general engine descriptor list", "schema": { "type": "array", "items": { "$ref": "#/definitions/models.EngineRuntimeDescriptor" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "develop.task.read" ] } }, "/task-definitions": { "get": { "produces": [ "application/json" ], "tags": [ "DevTask" ], "summary": "查询开发任务列表 | List development tasks", "parameters": [ { "type": "integer", "description": "页码 | Page number", "name": "page", "in": "query" }, { "type": "integer", "description": "每页数量 | Page size", "name": "page_size", "in": "query" }, { "type": "string", "description": "Develop 内部类型过滤:query/workflow/script | Develop internal type filter: query/workflow/script", "name": "dev_type", "in": "query" }, { "type": "string", "description": "状态过滤 | Filter by status", "name": "status", "in": "query" }, { "type": "integer", "description": "资源ID过滤 | Filter by engine ID", "name": "engine_id", "in": "query" }, { "type": "string", "description": "标签过滤 | Filter by tag", "name": "tag", "in": "query" }, { "type": "string", "description": "关键词搜索 | Keyword search", "name": "keyword", "in": "query" } ], "responses": { "200": { "description": "开发任务列表 | Development task list", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ListDevTasksSwaggerResponse" } }, "500": { "description": "执行事实读取失败 | Execution facts read failed", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ErrorResponse" } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "develop.task.read" ] }, "post": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "DevTask" ], "summary": "创建开发任务 | Create development task", "parameters": [ { "description": "创建请求 | Create request", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.CreateDevTaskSwaggerRequest" } } ], "responses": { "200": { "description": "已创建的开发任务 | Created development task", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.DevTaskSwagger" } }, "400": { "description": "请求、工作流参数或查询参数定义无效 | Invalid request, workflow parameters or query parameter definitions", "schema": { "$ref": "#/definitions/internal_api.WorkflowParametersErrorResponse" } }, "403": { "description": "缺少所选导出方式的执行权限 | Missing execution permissions for the selected export method", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ErrorResponse" } }, "409": { "description": "脱敏方式或当前角色资格不可用 | Masking method or current role eligibility unavailable", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ErrorResponse" } } }, "x-addp-auth-mode": "permission", "x-addp-conditional-permissions": [ "transfer.task.execute" ], "x-addp-required-permissions": [ "develop.task.create" ] } }, "/task-definitions/statistics": { "get": { "produces": [ "application/json" ], "tags": [ "DevTask" ], "summary": "获取开发任务统计 | Get development task statistics", "responses": { "200": { "description": "统计数据 | Statistics", "schema": { "type": "object", "additionalProperties": { "type": "integer", "format": "int64" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "develop.task.read" ] } }, "/task-definitions/{id}": { "get": { "description": "人员编辑读取保留原定义;执行契约不可用时返回 execution_contract_error 并阻断执行。| Editable reads retain the original definition; unavailable execution contracts return execution_contract_error and cannot execute.", "produces": [ "application/json" ], "tags": [ "DevTask" ], "summary": "获取开发任务详情 | Get development task details", "parameters": [ { "type": "integer", "description": "开发任务ID | Development task ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "开发任务详情 | Development task details", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.DevTaskDetailSwagger" } }, "404": { "description": "任务不存在 | Task not found", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ErrorResponse" } }, "500": { "description": "执行事实读取或执行契约不可用 | Execution facts read or execution contract unavailable", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ErrorResponse" } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "develop.task.read" ] }, "put": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "DevTask" ], "summary": "更新开发任务 | Update development task", "parameters": [ { "type": "integer", "description": "开发任务 ID | Development task ID", "name": "id", "in": "path", "required": true }, { "description": "更新请求 | Update request", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.UpdateDevTaskSwaggerRequest" } } ], "responses": { "200": { "description": "已更新的开发任务 | Updated development task", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.DevTaskSwagger" } }, "400": { "description": "请求、工作流参数或查询参数定义无效 | Invalid request, workflow parameters or query parameter definitions", "schema": { "$ref": "#/definitions/internal_api.WorkflowParametersErrorResponse" } }, "403": { "description": "缺少所选导出方式的执行权限 | Missing execution permissions for the selected export method", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ErrorResponse" } }, "409": { "description": "脱敏方式或当前角色资格不可用 | Masking method or current role eligibility unavailable", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ErrorResponse" } } }, "x-addp-auth-mode": "permission", "x-addp-conditional-permissions": [ "transfer.task.execute" ], "x-addp-required-permissions": [ "develop.task.update" ] }, "delete": { "tags": [ "DevTask" ], "summary": "删除开发任务 | Delete development task", "parameters": [ { "type": "integer", "description": "开发任务ID | Development task ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "删除成功 | Deleted successfully", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "develop.task.delete" ] } }, "/task-definitions/{id}/execute": { "post": { "description": "GeoPackage 文件工作流按可信 Meta 完整来源进入精确执行,可含唯一 mode=fail 的文件保存目标;保存等待原单次批准,混合来源与其他写入拒绝。 | GeoPackage workflows require complete trusted Meta sources and may include one exact mode=fail file save. Saves await the original single-use approval; mixed sources and other writes are rejected.", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Execution" ], "summary": "执行开发任务 | Execute development task", "parameters": [ { "type": "string", "description": "提交时冻结的执行显示语言 | Execution language frozen at submission", "name": "Accept-Language", "in": "header" }, { "type": "integer", "description": "开发任务 ID | Development task ID", "name": "id", "in": "path", "required": true }, { "description": "本次执行参数覆盖(可选)| Execution parameter overrides (optional)", "name": "body", "in": "body", "schema": { "$ref": "#/definitions/internal_api.executeDevTaskRequest" } } ], "responses": { "202": { "description": "执行已启动 | Execution started", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "400": { "description": "请求或执行参数无效 | Invalid request or execution parameters", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-conditional-permissions": [ "develop.data_read.execute", "develop.data_write.execute", "develop.data_ddl.execute", "develop.data_external_effect.execute", "develop.notebook.execute" ], "x-addp-required-permissions": [ "develop.task.execute" ] } }, "/task-definitions/{id}/storage-engine-bindings": { "get": { "description": "返回任务 content 中标准 ResourceLocator 的当前 Engine 引用、可用状态和兼容候选;不改变工作流运行引擎绑定。| Return current Engine references, availability, and compatible candidates for standard ResourceLocators in task content without changing the workflow runtime binding.", "produces": [ "application/json" ], "tags": [ "DevTask" ], "summary": "查询工作流存储引擎绑定 | List workflow storage engine bindings", "parameters": [ { "type": "integer", "description": "开发任务 ID | Development task ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "存储引擎绑定 | Storage engine bindings", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.WorkflowStorageEngineBindingsSwaggerResponse" } }, "400": { "description": "参数错误 | Invalid request", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ErrorResponse" } }, "404": { "description": "任务不存在 | Task not found", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ErrorResponse" } }, "422": { "description": "任务不是工作流 | Task is not a workflow", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ErrorResponse" } }, "503": { "description": "System 引擎发现不可用 | System engine discovery unavailable", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ErrorResponse" } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "develop.task.read" ] } }, "/task-definitions/{id}/storage-engine-bindings/{source_engine_id}": { "put": { "description": "原子替换任务 content 中指向旧 Engine 的全部标准 ResourceLocator,保留 path/type、清除旧 Meta ID,不改变 execution_config.engine_id。| Atomically replace all standard ResourceLocators in task content that reference the old Engine, preserve path/type, clear stale Meta IDs, and keep execution_config.engine_id unchanged.", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "DevTask" ], "summary": "重绑定工作流存储引擎 | Rebind workflow storage engine", "parameters": [ { "type": "integer", "description": "开发任务 ID | Development task ID", "name": "id", "in": "path", "required": true }, { "type": "integer", "description": "原存储引擎 ID | Source storage engine ID", "name": "source_engine_id", "in": "path", "required": true }, { "description": "目标存储引擎 | Target storage engine", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.RebindWorkflowStorageEngineSwaggerRequest" } } ], "responses": { "200": { "description": "重绑定结果 | Rebind result", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.RebindWorkflowStorageEngineSwaggerResponse" } }, "400": { "description": "参数错误 | Invalid request", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ErrorResponse" } }, "404": { "description": "任务或绑定不存在 | Task or binding not found", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ErrorResponse" } }, "409": { "description": "任务发生并发修改 | Task changed concurrently", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ErrorResponse" } }, "422": { "description": "任务类型、目标引擎状态或能力不合法 | Invalid task type, target engine state, or capability", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ErrorResponse" } }, "503": { "description": "System 引擎发现不可用 | System engine discovery unavailable", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ErrorResponse" } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "develop.task.update" ] } }, "/task-provider/executions/{execution_id}": { "get": { "security": [ { "BearerAuth": [] } ], "description": "仅 Orchestrator Service 可读取同租户、来源为 orchestrator 且父执行属于 Orchestrator 的子执行;只返回安全状态和稳定 outputs。| Orchestrator Service only; read same-tenant orchestrator-origin child executions with an Orchestrator parent; return safe status and stable outputs only.", "produces": [ "application/json" ], "tags": [ "Execution" ], "summary": "获取 TaskProvider 执行状态 | Get TaskProvider execution status", "parameters": [ { "type": "string", "description": "执行ID(UUID)| Execution ID (UUID)", "name": "execution_id", "in": "path", "required": true } ], "responses": { "200": { "description": "TaskProvider 执行状态 | TaskProvider execution status", "schema": { "$ref": "#/definitions/taskprovider.ExecutionStatusResponse" } }, "403": { "description": "Forbidden", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "404": { "description": "Not Found", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "develop.task_provider.read" ] } }, "/task-provider/tasks": { "get": { "security": [ { "BearerAuth": [] } ], "description": "返回可供 TaskProvider 编排复用的开发任务;task_type 是对外任务类型契约,映射到 Develop 内部 dev_type。| List active develop tasks exposed by TaskProvider; task_type is the external task contract mapped to Develop internal dev_type.", "produces": [ "application/json" ], "tags": [ "Develop" ], "summary": "列出可编排任务 | List orchestratable tasks", "parameters": [ { "type": "string", "description": "TaskProvider 任务类型:query/workflow/script | TaskProvider task type: query/workflow/script", "name": "task_type", "in": "query" }, { "type": "integer", "default": 1, "description": "页码 | Page", "name": "page", "in": "query" }, { "type": "integer", "default": 20, "description": "每页数量 | Page size", "name": "page_size", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ListProviderDevTasksSwaggerResponse" } }, "500": { "description": "Internal Server Error", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "develop.task_provider.read" ] } }, "/task-provider/tasks/{task_type}/{id}": { "get": { "security": [ { "BearerAuth": [] } ], "description": "按标准 TaskProvider 路径获取开发任务详情;task_type 是对外任务类型契约,映射到 Develop 内部 dev_type。| Get development task detail through the standard TaskProvider path; task_type is the external task contract mapped to Develop internal dev_type.", "produces": [ "application/json" ], "tags": [ "DevTask" ], "summary": "获取 TaskProvider 开发任务详情 | Get TaskProvider development task detail", "parameters": [ { "type": "string", "description": "TaskProvider 任务类型:query/workflow/script | TaskProvider task type: query/workflow/script", "name": "task_type", "in": "path", "required": true }, { "type": "integer", "description": "开发任务ID | Development task ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "开发任务详情 | Development task detail", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ProviderDevTaskSwagger" } }, "400": { "description": "参数错误 | Bad request", "schema": { "type": "object", "additionalProperties": true } }, "404": { "description": "任务不存在 | Task not found", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "执行事实读取失败 | Execution facts read failed", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ErrorResponse" } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "develop.task_provider.read" ] } }, "/task-provider/tasks/{task_type}/{id}/execute": { "post": { "security": [ { "BearerAuth": [] } ], "description": "按标准 TaskProvider 协议执行开发任务;task_type 是对外任务类型契约,映射到 Develop 内部 dev_type,parameters 会传入本次执行。| Execute a development task through the standard TaskProvider protocol; task_type is the external task contract mapped to Develop internal dev_type, and parameters are passed to this execution.", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Execution" ], "summary": "执行 TaskProvider 开发任务 | Execute TaskProvider development task", "parameters": [ { "type": "string", "description": "TaskProvider 任务类型:query/workflow/script | TaskProvider task type: query/workflow/script", "name": "task_type", "in": "path", "required": true }, { "type": "integer", "description": "开发任务ID | Development task ID", "name": "id", "in": "path", "required": true }, { "description": "TaskProvider 执行请求 | TaskProvider execution request", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/internal_api.providerExecuteDevRequest" } } ], "responses": { "202": { "description": "执行已启动 | Execution started", "schema": { "$ref": "#/definitions/internal_api.providerExecuteDevResponse" } }, "400": { "description": "参数错误 | Bad request", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "服务器错误 | Server error", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "develop.task_provider.execute" ] } }, "/test/{id}": { "get": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Query" ], "summary": "测试数据源连接 | Test data source connection", "parameters": [ { "type": "integer", "description": "资源ID | Resource ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "连接测试成功 | Connection test successful", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "400": { "description": "资源ID无效 | Invalid resource ID", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "需要登录 | Authentication required", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "无执行或数据读取权限 | Execution or data-read permission denied", "schema": { "type": "object", "additionalProperties": true } }, "409": { "description": "授权状态冲突 | Authorization conflict", "schema": { "type": "object", "additionalProperties": true } }, "502": { "description": "数据源连接失败 | Data source connection failed", "schema": { "type": "object", "additionalProperties": true } }, "503": { "description": "授权服务不可用 | Authorization service unavailable", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "develop.task.execute", "develop.data_read.execute" ] } }, "/workflow-engines": { "get": { "description": "返回 active 且声明 compute.workflow 能力的注册引擎;非 online 项由前端展示并禁选 | Return active registered engines declaring compute.workflow capability; clients must show but disable non-online options", "produces": [ "application/json" ], "tags": [ "Engines" ], "summary": "获取支持 workflow 的计算引擎列表 | List workflow-capable compute engines", "responses": { "200": { "description": "工作流引擎运行时描述列表 | Workflow engine runtime descriptor list", "schema": { "type": "array", "items": { "$ref": "#/definitions/models.EngineRuntimeDescriptor" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "develop.task.read" ] } }, "/workflow-engines/{id}/operators": { "get": { "security": [ { "BearerAuth": [] } ], "produces": [ "application/json" ], "tags": [ "Operator" ], "summary": "根据工作流引擎实例获取算子列表 | List operators by workflow engine instance", "parameters": [ { "type": "string", "description": "语言偏好(zh-cn 或 en) | Preferred language (zh-cn or en)", "name": "Accept-Language", "in": "header" }, { "type": "integer", "description": "工作流引擎实例ID | Workflow engine instance ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "算子列表 | Operator list", "schema": { "$ref": "#/definitions/internal_api.OperatorListResponse" } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "develop.task.read" ] } }, "/workflow-validations": { "post": { "security": [ { "BearerAuth": [] } ], "description": "按 addp.workflow/v1 基础结构和目标运行时 Public Operator Spec 校验候选工作流,不创建 execution | Validate a workflow candidate against addp.workflow/v1 and the target runtime Public Operator Spec without creating an execution", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Operator" ], "summary": "校验工作流定义 | Validate workflow definition", "parameters": [ { "description": "工作流校验请求 | Workflow validation request", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/internal_api.WorkflowValidationRequest" } } ], "responses": { "200": { "description": "校验结果 | Validation result", "schema": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_service.WorkflowValidationResult" } }, "400": { "description": "请求或工作流引擎错误 | Invalid request or workflow engine", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "未授权 | Unauthorized", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "develop.task.read" ] } } }, "definitions": { "cleanup.Result": { "type": "object", "properties": { "action": { "type": "string" }, "attempt": { "type": "integer" }, "cleanup_mode": { "type": "string" }, "execution_id": { "type": "string" }, "module": { "type": "string" }, "reason": { "type": "string" }, "request_id": { "type": "string" }, "schema": { "type": "string" }, "statistics": { "type": "object", "additionalProperties": { "type": "integer", "format": "int64" } }, "status": { "type": "string" }, "summary": { "$ref": "#/definitions/events.CleanupResultSummary" } } }, "client.DevelopFileExecutionActor": { "type": "object", "properties": { "authorization_version": { "type": "string" }, "principal_id": { "type": "string" }, "tenant_membership_id": { "type": "string" } } }, "client.DevelopFileExecutionFacts": { "type": "object", "properties": { "actor": { "$ref": "#/definitions/client.DevelopFileExecutionActor" }, "admission_state": { "type": "string" }, "authorization_id": { "type": "string" }, "bound_scope": { "$ref": "#/definitions/execution.DevelopBoundFileScope" }, "config_json": { "type": "array", "items": { "type": "integer" } }, "execution_id": { "type": "string" }, "intent": { "$ref": "#/definitions/execution.DevelopFileIntent" }, "publication": { "$ref": "#/definitions/client.DevelopFilePublicationFacts" }, "schema_version": { "type": "string" }, "scope_digest": { "type": "string" }, "tenant_id": { "type": "string" } } }, "client.DevelopFilePublicationFacts": { "type": "object", "properties": { "approval_id": { "type": "string" }, "preparation_digest": { "type": "string" }, "request": { "$ref": "#/definitions/plugin.NewFilePublicationRequest" } } }, "client.EngineCatalogEntry": { "type": "object", "properties": { "kind": { "type": "string" }, "leaf_count": { "type": "integer" }, "name": { "type": "string" }, "path": { "$ref": "#/definitions/client.EngineCatalogPath" }, "role": { "type": "string" }, "storage": { "$ref": "#/definitions/plugin.EngineCatalogStorageFacts" }, "table": { "$ref": "#/definitions/datatype.TableInfo" }, "term": { "type": "string" }, "updated_at": { "type": "string" } } }, "client.EngineCatalogListChildrenResponse": { "type": "object", "properties": { "nodes": { "type": "array", "items": { "$ref": "#/definitions/client.EngineCatalogEntry" } } } }, "client.EngineCatalogListOptions": { "type": "object", "properties": { "limit": { "type": "integer" }, "offset": { "type": "integer" }, "recursive": { "type": "boolean" } } }, "client.EngineCatalogPath": { "type": "object", "properties": { "engine_id": { "type": "integer" }, "segments": { "type": "array", "items": { "$ref": "#/definitions/client.EngineCatalogSegment" } }, "version": { "type": "string" } } }, "client.EngineCatalogSegment": { "type": "object", "properties": { "kind": { "type": "string" }, "name": { "type": "string" }, "term": { "type": "string" } } }, "client.ExportExecutionSource": { "type": "object", "properties": { "tenant_id": { "type": "integer" }, "user_id": { "type": "integer" } } }, "client.ExportExecutionSourceRequest": { "type": "object", "required": [ "execution_id", "request_digest" ], "properties": { "execution_id": { "type": "string" }, "request_digest": { "type": "string" } } }, "dataprotection.FieldRoleChoice": { "type": "object", "properties": { "component_key": { "type": "string" }, "selection": { "$ref": "#/definitions/dataprotection.RoleOptionSelection" }, "target": { "$ref": "#/definitions/dataprotection.ResourceReference" } } }, "dataprotection.FieldRoleOptions": { "type": "object", "properties": { "assessment_revision": { "type": "integer" }, "component_key": { "type": "string" }, "options": { "type": "array", "items": { "$ref": "#/definitions/dataprotection.RoleOptionCandidate" } }, "policy_id": { "type": "string" }, "policy_revision": { "type": "integer" }, "target": { "$ref": "#/definitions/dataprotection.ResourceReference" } } }, "dataprotection.ResourceReference": { "type": "object", "properties": { "component_key": { "type": "string" }, "owner_module": { "type": "string" }, "resource_identity": { "type": "string" }, "resource_type": { "type": "string" } } }, "dataprotection.RoleOptionCandidate": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" } } }, "dataprotection.RoleOptionSelection": { "type": "object", "properties": { "assessment_revision": { "type": "integer" }, "option_id": { "type": "string" }, "policy_id": { "type": "string" }, "policy_revision": { "type": "integer" } } }, "datatype.EnumInfo": { "type": "object", "properties": { "name": { "type": "string" }, "symbols": { "type": "array", "items": { "type": "string" } } } }, "datatype.FieldInfo": { "type": "object", "properties": { "comment": { "type": "string" }, "default_expression": { "type": "string" }, "element": { "$ref": "#/definitions/datatype.FieldInfo" }, "element_type": { "$ref": "#/definitions/datatype.FieldType" }, "enum": { "$ref": "#/definitions/datatype.EnumInfo" }, "fields": { "type": "array", "items": { "$ref": "#/definitions/datatype.FieldInfo" } }, "fixed": { "$ref": "#/definitions/datatype.FixedInfo" }, "generated": { "type": "boolean" }, "generation_expression": { "type": "string" }, "map_value": { "$ref": "#/definitions/datatype.FieldInfo" }, "name": { "type": "string" }, "native_type": { "type": "string" }, "nullable": { "type": "boolean" }, "ordinal_position": { "type": "integer" }, "path": { "type": "array", "items": { "type": "string" } }, "precision": { "type": "integer" }, "primary_key": { "type": "boolean" }, "scale": { "type": "integer" }, "size": { "type": "integer" }, "temporal": { "$ref": "#/definitions/datatype.TemporalInfo" }, "type": { "$ref": "#/definitions/datatype.FieldType" } } }, "datatype.FieldType": { "type": "string", "enum": [ "unknown", "string", "bool", "bytes", "mixed", "int", "bigint", "float", "double", "decimal", "date", "time", "timestamp", "json", "array", "uuid", "geometry" ], "x-enum-varnames": [ "FieldTypeUnknown", "FieldTypeString", "FieldTypeBool", "FieldTypeBytes", "FieldTypeMixed", "FieldTypeInt", "FieldTypeBigInt", "FieldTypeFloat", "FieldTypeDouble", "FieldTypeDecimal", "FieldTypeDate", "FieldTypeTime", "FieldTypeTimestamp", "FieldTypeJSON", "FieldTypeArray", "FieldTypeUUID", "FieldTypeGeometry" ] }, "datatype.FixedInfo": { "type": "object", "properties": { "name": { "type": "string" }, "size": { "type": "integer" } } }, "datatype.TableInfo": { "type": "object", "properties": { "comment": { "type": "string" }, "created_at": { "type": "string" }, "estimated_row_count": { "type": "integer" }, "fields": { "type": "array", "items": { "$ref": "#/definitions/datatype.FieldInfo" } }, "kind": { "type": "string" }, "name": { "type": "string" }, "native": { "type": "object", "additionalProperties": true }, "primary_key": { "type": "array", "items": { "type": "string" } }, "row_count": { "type": "integer" }, "size_bytes": { "type": "integer" }, "updated_at": { "type": "string" } } }, "datatype.TemporalInfo": { "type": "object", "properties": { "timezone": { "type": "string" }, "unit": { "type": "string" } } }, "events.CleanupResultSummary": { "type": "object", "properties": { "affected_records": { "type": "integer" }, "deleted_physical_artifacts": { "type": "integer" }, "deleted_task_definitions": { "type": "integer" }, "disabled_task_definitions": { "type": "integer" }, "error_count": { "type": "integer" }, "freed_bytes": { "type": "integer" }, "marked_missing_source": { "type": "integer" }, "marked_outdated": { "type": "integer" }, "risk_level": { "type": "string" }, "scanned_items": { "type": "integer" }, "skipped_items": { "type": "integer" } } }, "execution.DevelopBoundFileScope": { "type": "object", "properties": { "expected_attempt": { "type": "integer" }, "intent_digest": { "type": "string" }, "schema_version": { "type": "string" }, "sources": { "type": "array", "items": { "$ref": "#/definitions/execution.DevelopFileSourceReference" } }, "target": { "$ref": "#/definitions/execution.DevelopBoundFileTarget" }, "timeout_seconds": { "type": "integer" } } }, "execution.DevelopBoundFileTarget": { "type": "object", "properties": { "engine_version": { "type": "string" }, "mode": { "type": "string" }, "target": { "$ref": "#/definitions/plugin.EngineCatalogPath" } } }, "execution.DevelopFileIntent": { "type": "object", "properties": { "config_digest": { "type": "string" }, "expected_attempt": { "type": "integer" }, "parent": { "$ref": "#/definitions/execution.DevelopFileParent" }, "schema_version": { "type": "string" }, "sources": { "type": "array", "items": { "$ref": "#/definitions/execution.DevelopFileSourceIntent" } }, "target": { "$ref": "#/definitions/execution.DevelopFileTargetIntent" }, "timeout_seconds": { "type": "integer" } } }, "execution.DevelopFileParent": { "type": "object", "properties": { "attempt": { "type": "integer" }, "execution_id": { "type": "string" }, "lease_digest": { "type": "string" } } }, "execution.DevelopFileSourceIntent": { "type": "object", "properties": { "node_id": { "type": "string" }, "target": { "$ref": "#/definitions/plugin.EngineCatalogPath" } } }, "execution.DevelopFileSourceReference": { "type": "object", "properties": { "boundary_hash": { "type": "string" }, "engine_version": { "type": "string" }, "format": { "type": "string" }, "item_fingerprint": { "type": "string" }, "target": { "$ref": "#/definitions/plugin.EngineCatalogPath" } } }, "execution.DevelopFileTargetIntent": { "type": "object", "properties": { "mode": { "type": "string" }, "node_id": { "type": "string" }, "target": { "$ref": "#/definitions/plugin.EngineCatalogPath" } } }, "execution.DiagnosticStep": { "type": "object", "properties": { "duration": { "type": "integer" }, "ended_at": { "type": "string" }, "error_code": { "type": "string" }, "id": { "type": "string" }, "phase": { "type": "string" }, "started_at": { "type": "string" }, "status": { "type": "string" } } }, "execution.ReadGrant": { "type": "object", "properties": { "own_ad_hoc": { "type": "boolean" }, "task_history": { "type": "boolean" }, "task_type": { "type": "string" } } }, "execution.ReadScope": { "type": "object", "properties": { "grants": { "type": "array", "items": { "$ref": "#/definitions/execution.ReadGrant" } }, "module": { "type": "string" }, "principal_id": { "type": "integer" }, "tenant_id": { "type": "integer" } } }, "github_com_addp_develop_backend_internal_models.ApprovalRequiredResponse": { "type": "object", "properties": { "expires_at": { "type": "string" }, "interaction_id": { "type": "string" }, "open_url": { "type": "string" }, "request_fingerprint": { "type": "string" }, "request_summary": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.DevTaskContent" }, "status": { "type": "string" } } }, "github_com_addp_develop_backend_internal_models.CatalogReference": { "type": "object", "required": [ "source_identity", "source_type" ], "properties": { "source_identity": { "type": "string" }, "source_type": { "type": "string" } } }, "github_com_addp_develop_backend_internal_models.CatalogReferenceResolution": { "type": "object", "properties": { "detail_path": { "type": "string" }, "found": { "type": "boolean" }, "source_identity": { "type": "string" }, "source_type": { "type": "string" }, "status": { "type": "string" }, "summary": { "type": "object", "additionalProperties": {} }, "version": { "type": "integer" } } }, "github_com_addp_develop_backend_internal_models.CatalogResourceChange": { "type": "object", "properties": { "change_id": { "type": "string" }, "observed_at": { "type": "string" }, "operation": { "type": "string" }, "snapshot": { "type": "object", "additionalProperties": {} }, "source_identity": { "type": "string" }, "source_type": { "type": "string" }, "source_version": { "type": "string" } } }, "github_com_addp_develop_backend_internal_models.CatalogResourceChangesResponse": { "type": "object", "properties": { "changes": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.CatalogResourceChange" } }, "has_more": { "type": "boolean" }, "next_cursor": { "type": "string" }, "schema_version": { "type": "string" } } }, "github_com_addp_develop_backend_internal_models.CreateDevTaskSwaggerRequest": { "type": "object", "required": [ "content", "dev_type", "name" ], "properties": { "content": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.DevTaskContentSwagger" }, "description": { "type": "string", "example": "示例工作流" }, "dev_type": { "type": "string", "enum": [ "query", "workflow", "script" ], "example": "workflow" }, "display_name": { "type": "string", "example": "城市缓冲区工作流" }, "editor_layout": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.DAGEditorLayoutSwagger" }, "execution_config": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.DevTaskExecutionConfigSwagger" }, "name": { "type": "string", "example": "city_buffer_workflow" }, "tags": { "type": "array", "items": { "type": "string" } }, "timeout": { "type": "integer", "example": 300 } } }, "github_com_addp_develop_backend_internal_models.CreateExecutionSwaggerRequest": { "type": "object", "properties": { "approval_id": { "type": "string", "format": "uuid" }, "content": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.DevTaskContentSwagger" }, "dev_type": { "type": "string", "enum": [ "query", "workflow", "script" ], "example": "workflow" }, "execution_config": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.DevTaskExecutionConfigSwagger" }, "parameters": { "type": "object" }, "query_confirmation_token": { "type": "string", "example": "signed-short-lived-token" }, "request_fingerprint": { "type": "string", "example": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef" }, "timeout": { "type": "integer", "example": 300 }, "trigger_type": { "type": "string", "enum": [ "manual", "scheduled" ], "example": "manual" } } }, "github_com_addp_develop_backend_internal_models.CreateNotebookSwaggerRequest": { "type": "object", "required": [ "engine_id", "kernel", "name" ], "properties": { "description": { "type": "string", "example": "Exploratory analysis" }, "engine_id": { "type": "integer", "example": 10 }, "kernel": { "type": "string", "example": "python3" }, "name": { "type": "string", "example": "analysis" } } }, "github_com_addp_develop_backend_internal_models.CreateQueryExportRequest": { "type": "object", "required": [ "file_name" ], "properties": { "file_name": { "type": "string" }, "format": { "type": "string", "enum": [ "csv" ] } } }, "github_com_addp_develop_backend_internal_models.CreateQueryExportResponse": { "type": "object", "properties": { "created_at": { "type": "string" }, "download_url": { "type": "string" }, "error_message": { "type": "string" }, "file_name": { "type": "string" }, "format": { "type": "string" }, "id": { "type": "integer" }, "requires_current_user": { "type": "boolean" }, "status": { "type": "string" }, "transfer_execution_id": { "type": "string" }, "updated_at": { "type": "string" } } }, "github_com_addp_develop_backend_internal_models.DAGEditorLayoutSwagger": { "type": "object", "properties": { "nodes": { "type": "object", "additionalProperties": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.DAGEditorNodePositionSwagger" } } } }, "github_com_addp_develop_backend_internal_models.DAGEditorNodePositionSwagger": { "type": "object", "properties": { "x": { "type": "number", "example": 120 }, "y": { "type": "number", "example": 240 } } }, "github_com_addp_develop_backend_internal_models.DevTaskContent": { "type": "object", "additionalProperties": true }, "github_com_addp_develop_backend_internal_models.DevTaskContentSwagger": { "type": "object", "properties": { "export_protection_choices": { "type": "array", "items": { "$ref": "#/definitions/dataprotection.FieldRoleChoice" } }, "inputs": { "type": "object" }, "notebook_locator": { "type": "string", "example": "addp-infra://object/develop/tenant_7/notebooks/demo.ipynb?type=object" }, "parameters": { "type": "object" }, "protection_choices": { "type": "array", "items": { "$ref": "#/definitions/dataprotection.FieldRoleChoice" } }, "query": { "type": "string", "example": "SELECT * FROM source" }, "query_parameters": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.QueryParameterSwagger" } }, "query_type": { "type": "string", "enum": [ "sql", "mql", "cypher", "es_dsl" ], "example": "sql" }, "target_locator": { "type": "string", "example": "addp://engine/11/path/Outdoor/Persons?type=collection\u0026item_id=51657" }, "workflow_definition": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.WorkflowDefinitionSwagger" } } }, "github_com_addp_develop_backend_internal_models.DevTaskDetailSwagger": { "type": "object", "properties": { "content": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.DevTaskContentSwagger" }, "created_at": { "type": "string", "example": "2026-06-24T12:00:00Z" }, "created_by": { "type": "integer", "example": 1 }, "description": { "type": "string", "example": "示例工作流" }, "dev_type": { "type": "string", "enum": [ "query", "workflow", "script" ], "example": "workflow" }, "display_name": { "type": "string", "example": "城市缓冲区工作流" }, "editor_layout": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.DAGEditorLayoutSwagger" }, "execution_config": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.DevTaskExecutionConfigSwagger" }, "execution_contract": { "$ref": "#/definitions/taskprovider.ExecutionContract" }, "execution_contract_error": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ExecutionContractReadError" }, "id": { "type": "integer", "example": 1 }, "last_execution_id": { "type": "string", "example": "550e8400-e29b-41d4-a716-446655440000" }, "last_execution_status": { "type": "string", "example": "success" }, "last_run_at": { "type": "string", "example": "2026-06-24T12:00:00Z" }, "name": { "type": "string", "example": "city_buffer_workflow" }, "parameters": { "type": "object" }, "status": { "type": "string", "enum": [ "active", "inactive", "archived" ], "example": "active" }, "tags": { "type": "array", "items": { "type": "string" } }, "tenant_id": { "type": "integer", "example": 1 }, "timeout": { "type": "integer", "example": 300 }, "updated_at": { "type": "string", "example": "2026-06-24T12:00:00Z" }, "updated_by": { "type": "integer", "example": 1 } } }, "github_com_addp_develop_backend_internal_models.DevTaskExecutionConfigSwagger": { "type": "object", "properties": { "engine_id": { "type": "integer", "example": 12 }, "engine_specific": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.WorkflowEngineSpecificConfigSwagger" }, "type": { "type": "string", "example": "workflow" } } }, "github_com_addp_develop_backend_internal_models.DevTaskSwagger": { "type": "object", "properties": { "content": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.DevTaskContentSwagger" }, "created_at": { "type": "string", "example": "2026-06-24T12:00:00Z" }, "created_by": { "type": "integer", "example": 1 }, "description": { "type": "string", "example": "示例工作流" }, "dev_type": { "type": "string", "enum": [ "query", "workflow", "script" ], "example": "workflow" }, "display_name": { "type": "string", "example": "城市缓冲区工作流" }, "editor_layout": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.DAGEditorLayoutSwagger" }, "execution_config": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.DevTaskExecutionConfigSwagger" }, "id": { "type": "integer", "example": 1 }, "last_execution_id": { "type": "string", "example": "550e8400-e29b-41d4-a716-446655440000" }, "last_execution_status": { "type": "string", "example": "success" }, "last_run_at": { "type": "string", "example": "2026-06-24T12:00:00Z" }, "name": { "type": "string", "example": "city_buffer_workflow" }, "parameters": { "type": "object" }, "status": { "type": "string", "enum": [ "active", "inactive", "archived" ], "example": "active" }, "tags": { "type": "array", "items": { "type": "string" } }, "tenant_id": { "type": "integer", "example": 1 }, "timeout": { "type": "integer", "example": 300 }, "updated_at": { "type": "string", "example": "2026-06-24T12:00:00Z" }, "updated_by": { "type": "integer", "example": 1 } } }, "github_com_addp_develop_backend_internal_models.ErrorResponse": { "type": "object", "properties": { "error": { "type": "string", "example": "请求参数错误" }, "error_code": { "type": "string", "example": "invalid_query_parameter_definitions" } } }, "github_com_addp_develop_backend_internal_models.ExecutionContractReadError": { "type": "object", "properties": { "error": { "type": "string" }, "error_code": { "type": "string" } } }, "github_com_addp_develop_backend_internal_models.ExecutionStartedResponse": { "type": "object", "properties": { "execution_id": { "type": "string" }, "message": { "type": "string" } } }, "github_com_addp_develop_backend_internal_models.ExecutionStatistics": { "type": "object", "properties": { "avg_execution_time_ms": { "type": "number" }, "failed_count": { "type": "integer" }, "running_count": { "type": "integer" }, "success_count": { "type": "integer" }, "success_rate": { "type": "number" }, "total_executions": { "type": "integer" }, "total_rows_affected": { "type": "integer" } } }, "github_com_addp_develop_backend_internal_models.ExecutionWithDevTaskSwagger": { "type": "object", "properties": { "attempt": { "type": "integer" }, "bytes_read": { "type": "integer" }, "bytes_written": { "type": "integer" }, "completed_at": { "type": "string" }, "created_at": { "type": "string" }, "current_step": { "type": "string" }, "dev_task": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.DevTaskSwagger" }, "diagnostics_truncated": { "type": "boolean" }, "error_details": { "$ref": "#/definitions/models.JSONMap" }, "execution_boundary": { "type": "string" }, "execution_config": { "type": "object", "additionalProperties": true }, "execution_id": { "type": "string" }, "execution_time_ms": { "type": "integer" }, "id": { "type": "integer" }, "max_attempts": { "type": "integer" }, "metadata": { "$ref": "#/definitions/models.JSONMap" }, "module": { "type": "string" }, "outputs": { "$ref": "#/definitions/models.JSONMap" }, "parent_execution_id": { "type": "string" }, "progress": { "type": "integer" }, "records_read": { "type": "integer" }, "records_written": { "type": "integer" }, "retry_of_execution_id": { "type": "string" }, "rows_affected": { "type": "integer" }, "source": { "type": "string" }, "source_task_id": { "type": "string" }, "source_task_name": { "type": "string" }, "started_at": { "type": "string" }, "status": { "type": "string" }, "steps": { "type": "array", "items": { "$ref": "#/definitions/execution.DiagnosticStep" } }, "steps_attempt_unverified": { "type": "boolean" }, "steps_truncated": { "type": "boolean" }, "task_type": { "type": "string" }, "trigger_type": { "type": "string" }, "triggered_by": { "type": "integer" }, "updated_at": { "type": "string" } } }, "github_com_addp_develop_backend_internal_models.ListDevTasksSwaggerResponse": { "type": "object", "properties": { "items": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.DevTaskSwagger" } }, "page": { "type": "integer", "example": 1 }, "page_size": { "type": "integer", "example": 20 }, "total": { "type": "integer", "example": 1 } } }, "github_com_addp_develop_backend_internal_models.ListExecutionsSwaggerResponse": { "type": "object", "properties": { "executions": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ExecutionWithDevTaskSwagger" } }, "page": { "type": "integer", "example": 1 }, "page_size": { "type": "integer", "example": 20 }, "total": { "type": "integer", "example": 1 } } }, "github_com_addp_develop_backend_internal_models.ListProviderDevTasksSwaggerResponse": { "type": "object", "properties": { "items": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ProviderDevTaskSwagger" } }, "page": { "type": "integer", "example": 1 }, "page_size": { "type": "integer", "example": 20 }, "total": { "type": "integer", "example": 1 } } }, "github_com_addp_develop_backend_internal_models.NotebookRuntimeBindingSwaggerRequest": { "type": "object", "required": [ "engine_id", "kernel" ], "properties": { "engine_id": { "type": "integer", "example": 10 }, "kernel": { "type": "string", "example": "python3" } } }, "github_com_addp_develop_backend_internal_models.ProviderDevTaskSwagger": { "type": "object", "properties": { "content": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.DevTaskContentSwagger" }, "created_at": { "type": "string", "example": "2026-06-24T12:00:00Z" }, "created_by": { "type": "integer", "example": 1 }, "description": { "type": "string", "example": "示例工作流" }, "dev_type": { "type": "string", "enum": [ "query", "workflow", "script" ], "example": "workflow" }, "display_name": { "type": "string", "example": "城市缓冲区工作流" }, "editor_layout": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.DAGEditorLayoutSwagger" }, "execution_config": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.DevTaskExecutionConfigSwagger" }, "execution_contract": { "$ref": "#/definitions/taskprovider.ExecutionContract" }, "id": { "type": "integer", "example": 1 }, "last_execution_id": { "type": "string", "example": "550e8400-e29b-41d4-a716-446655440000" }, "last_execution_status": { "type": "string", "example": "success" }, "last_run_at": { "type": "string", "example": "2026-06-24T12:00:00Z" }, "name": { "type": "string", "example": "city_buffer_workflow" }, "parameters": { "type": "object" }, "status": { "type": "string", "enum": [ "active", "inactive", "archived" ], "example": "active" }, "tags": { "type": "array", "items": { "type": "string" } }, "task_type": { "type": "string", "enum": [ "query", "workflow", "script" ], "example": "workflow" }, "tenant_id": { "type": "integer", "example": 1 }, "timeout": { "type": "integer", "example": 300 }, "updated_at": { "type": "string", "example": "2026-06-24T12:00:00Z" }, "updated_by": { "type": "integer", "example": 1 } } }, "github_com_addp_develop_backend_internal_models.QueryParameterDefinition": { "type": "object", "properties": { "default": {}, "description": { "type": "string" }, "name": { "type": "string" }, "type": { "type": "string" } } }, "github_com_addp_develop_backend_internal_models.QueryParameterSwagger": { "type": "object", "properties": { "default": { "type": "string", "example": "Beijing" }, "description": { "type": "string", "example": "用于筛选目标城市" }, "name": { "type": "string", "example": "city_name" }, "type": { "type": "string", "enum": [ "relation", "string", "integer", "number", "boolean" ], "example": "string" } } }, "github_com_addp_develop_backend_internal_models.QueryPreflightRequest": { "type": "object", "required": [ "engine_id", "query" ], "properties": { "engine_id": { "type": "integer" }, "parameters": { "type": "object", "additionalProperties": true }, "query": { "type": "string" }, "query_parameters": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.QueryParameterDefinition" } }, "query_type": { "type": "string", "enum": [ "sql", "mql", "cypher", "es_dsl" ], "example": "sql" }, "target_locator": { "type": "string" } } }, "github_com_addp_develop_backend_internal_models.QueryPreflightResponse": { "type": "object", "properties": { "allowed": { "type": "boolean" }, "classification_confidence": { "type": "string" }, "confirmation_expires_at": { "type": "string" }, "confirmation_token": { "type": "string" }, "diagnostics": { "type": "array", "items": { "$ref": "#/definitions/plugin.QueryDiagnostic" } }, "effect": { "type": "string" }, "fingerprint": { "type": "string" }, "required_permission": { "type": "string" }, "requires_confirmation": { "type": "boolean" }, "risk_level": { "type": "string" }, "schema_coverage": { "type": "string" }, "statement": { "type": "string" }, "target_locator": { "type": "string" }, "target_objects": { "type": "array", "items": { "type": "string" } }, "warnings": { "type": "array", "items": { "type": "string" } } } }, "github_com_addp_develop_backend_internal_models.QueryProtectionOptionsResponse": { "type": "object", "properties": { "fields": { "type": "array", "items": { "$ref": "#/definitions/dataprotection.FieldRoleOptions" } } } }, "github_com_addp_develop_backend_internal_models.RebindWorkflowStorageEngineSwaggerRequest": { "type": "object", "required": [ "target_engine_id" ], "properties": { "target_engine_id": { "type": "integer", "example": 15 } } }, "github_com_addp_develop_backend_internal_models.RebindWorkflowStorageEngineSwaggerResponse": { "type": "object", "properties": { "replaced_locator_count": { "type": "integer", "example": 2 }, "source_engine_id": { "type": "integer", "example": 5 }, "target_engine_id": { "type": "integer", "example": 15 }, "task": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.DevTaskSwagger" } } }, "github_com_addp_develop_backend_internal_models.ResolveCatalogReferencesRequest": { "type": "object", "required": [ "references" ], "properties": { "references": { "type": "array", "maxItems": 200, "minItems": 1, "items": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.CatalogReference" } } } }, "github_com_addp_develop_backend_internal_models.ResolveCatalogReferencesResponse": { "type": "object", "properties": { "results": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.CatalogReferenceResolution" } } } }, "github_com_addp_develop_backend_internal_models.StorageEngineDescriptorSwagger": { "type": "object", "properties": { "connection_status": { "type": "string", "example": "connected" }, "engine_type": { "type": "string", "example": "doris" }, "id": { "type": "integer", "example": 15 }, "lifecycle_state": { "type": "string", "example": "active" }, "name": { "type": "string", "example": "Business Doris" } } }, "github_com_addp_develop_backend_internal_models.ToolApprovalDecisionRequest": { "type": "object", "required": [ "decision" ], "properties": { "decision": { "type": "string", "enum": [ "approved", "rejected" ] } } }, "github_com_addp_develop_backend_internal_models.ToolApprovalErrorBody": { "type": "object", "properties": { "code": { "type": "string" }, "message": { "type": "string" } } }, "github_com_addp_develop_backend_internal_models.ToolApprovalErrorResponse": { "type": "object", "properties": { "error": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.ToolApprovalErrorBody" } } }, "github_com_addp_develop_backend_internal_models.ToolApprovalResponse": { "type": "object", "properties": { "consumed_at": { "type": "string" }, "decided_at": { "type": "string" }, "execution_id": { "type": "string" }, "expires_at": { "type": "string" }, "id": { "type": "string" }, "request_fingerprint": { "type": "string" }, "request_summary": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.DevTaskContent" }, "requested_at": { "type": "string" }, "status": { "type": "string" }, "tool_name": { "type": "string" } } }, "github_com_addp_develop_backend_internal_models.UpdateDevTaskSwaggerRequest": { "type": "object", "properties": { "content": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.DevTaskContentSwagger" }, "description": { "type": "string", "example": "示例工作流" }, "display_name": { "type": "string", "example": "城市缓冲区工作流" }, "editor_layout": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.DAGEditorLayoutSwagger" }, "execution_config": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.DevTaskExecutionConfigSwagger" }, "name": { "type": "string", "example": "city_buffer_workflow" }, "status": { "type": "string", "enum": [ "active", "inactive", "archived" ], "example": "active" }, "tags": { "type": "array", "items": { "type": "string" } }, "timeout": { "type": "integer", "example": 300 } } }, "github_com_addp_develop_backend_internal_models.UploadNotebookSwaggerResponse": { "type": "object", "properties": { "dev_task": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.DevTaskSwagger" }, "message": { "type": "string", "example": "Notebook 上传成功" } } }, "github_com_addp_develop_backend_internal_models.WorkflowDefinitionSwagger": { "type": "object", "required": [ "tasks" ], "properties": { "tasks": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.WorkflowTaskDefinitionSwagger" } } } }, "github_com_addp_develop_backend_internal_models.WorkflowEngineSpecificConfigSwagger": { "type": "object", "properties": { "spark_cluster_id": { "type": "integer", "example": 34 } } }, "github_com_addp_develop_backend_internal_models.WorkflowStorageEngineBindingSwagger": { "type": "object", "properties": { "available": { "type": "boolean", "example": false }, "compatible_engine_ids": { "type": "array", "items": { "type": "integer" }, "example": [ 2, 15 ] }, "engine": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.StorageEngineDescriptorSwagger" }, "engine_id": { "type": "integer", "example": 5 }, "reference_count": { "type": "integer", "example": 2 }, "resource_types": { "type": "array", "items": { "type": "string" }, "example": [ "table", "database" ] } } }, "github_com_addp_develop_backend_internal_models.WorkflowStorageEngineBindingsSwaggerResponse": { "type": "object", "properties": { "candidate_engines": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.StorageEngineDescriptorSwagger" } }, "items": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_models.WorkflowStorageEngineBindingSwagger" } } } }, "github_com_addp_develop_backend_internal_models.WorkflowTaskDefinitionSwagger": { "type": "object", "required": [ "depends_on", "id", "operator", "params" ], "properties": { "depends_on": { "type": "array", "items": { "type": "string" }, "example": [ "load_1" ] }, "id": { "type": "string", "example": "load_1" }, "operator": { "type": "string", "example": "load" }, "params": { "type": "object" } } }, "github_com_addp_develop_backend_internal_service.ExecutionPolicyResponse": { "type": "object", "properties": { "default_query_timeout": { "type": "integer" }, "inherited": { "type": "boolean" }, "max_query_timeout": { "type": "integer" }, "notebook_concurrency": { "type": "integer" }, "query_concurrency": { "type": "integer" }, "query_per_engine_concurrency": { "type": "integer" }, "query_result_limit": { "type": "integer" }, "scope_type": { "type": "string" }, "tenant_id": { "type": "integer" }, "version": { "type": "integer" }, "workflow_concurrency": { "type": "integer" } } }, "github_com_addp_develop_backend_internal_service.KernelInfo": { "type": "object", "properties": { "display_name": { "type": "string" }, "language": { "type": "string" }, "name": { "type": "string" } } }, "github_com_addp_develop_backend_internal_service.NotebookCopilotCandidate": { "type": "object", "properties": { "candidate_id": { "type": "string" }, "engine_id": { "type": "integer" }, "engine_name": { "type": "string" }, "engine_type": { "type": "string" }, "kind": { "type": "string" }, "name": { "type": "string" }, "path": { "$ref": "#/definitions/client.EngineCatalogPath" }, "path_names": { "type": "array", "items": { "type": "string" } }, "recommendation_reason": { "type": "string" }, "recommended": { "type": "boolean" }, "role": { "type": "string" }, "term": { "type": "string" } } }, "github_com_addp_develop_backend_internal_service.NotebookCopilotRequest": { "type": "object", "properties": { "kernel": { "type": "string" }, "query": { "type": "string" }, "selections": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_service.NotebookCopilotSelection" } } } }, "github_com_addp_develop_backend_internal_service.NotebookCopilotResponse": { "type": "object", "properties": { "candidates": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_service.NotebookCopilotCandidate" } }, "clarification_reason": { "type": "string" }, "code": { "type": "string" }, "explanation": { "type": "string" }, "message": { "type": "string" }, "status": { "type": "string" }, "warnings": { "type": "array", "items": { "type": "string" } } } }, "github_com_addp_develop_backend_internal_service.NotebookCopilotSelection": { "type": "object", "properties": { "candidate_id": { "type": "string" }, "engine_id": { "type": "integer" }, "path": { "$ref": "#/definitions/client.EngineCatalogPath" }, "role": { "type": "string" } } }, "github_com_addp_develop_backend_internal_service.NotebookSession": { "type": "object", "properties": { "expires_at": { "type": "string" }, "id": { "type": "string" }, "task_id": { "type": "integer" }, "url": { "type": "string" } } }, "github_com_addp_develop_backend_internal_service.PublicOperatorDescriptor": { "type": "object", "properties": { "attributes": { "description": "引擎自定义扩展属性", "type": "object", "additionalProperties": true }, "brief_description": { "description": "简要描述(用于 AI 算子选择)", "type": "string" }, "category": { "description": "算子分类/分组 (格式转换/空间分析)", "type": "string" }, "category_path": { "description": "多级分组目录;无多级目录时必须显式为 [category]", "type": "array", "items": { "type": "string" } }, "description": { "description": "功能描述", "type": "string" }, "detailed_description": { "description": "详细描述(含 notes、workflow_example 等,用于 AI 工作流生成)", "type": "object", "additionalProperties": true }, "display_name": { "description": "中文显示名 (如 \"深度扫描\")", "type": "string" }, "effects": { "description": "read/write/ddl/external_effect", "type": "array", "items": { "type": "string" } }, "engine_type": { "description": "所属扩展引擎类型 (如 acme_geo_workflow)", "type": "string" }, "execution_modes": { "description": "workflow/direct", "type": "array", "items": { "type": "string" } }, "id": { "description": "算子唯一标识 (如 \"scan_deep\")", "type": "string" }, "inputs": { "description": "输入类型列表", "type": "array", "items": { "type": "string" } }, "name": { "description": "算子名称 (同ID)", "type": "string" }, "output_ports": { "description": "标准输出端口定义", "type": "array", "items": { "$ref": "#/definitions/models.OutputPortDescriptor" } }, "parameters": { "description": "参数定义", "type": "array", "items": { "$ref": "#/definitions/models.ParameterDescriptor" } }, "public_parameters": { "type": "array", "items": { "$ref": "#/definitions/models.ParameterDescriptor" } }, "type": { "description": "算子类型 (scan/transfer/spatial等)", "type": "string" } } }, "github_com_addp_develop_backend_internal_service.UpdateExecutionPolicyInput": { "type": "object", "required": [ "default_query_timeout" ], "properties": { "default_query_timeout": { "type": "integer" }, "max_query_timeout": { "type": "integer" }, "notebook_concurrency": { "type": "integer" }, "query_concurrency": { "type": "integer" }, "query_per_engine_concurrency": { "type": "integer" }, "query_result_limit": { "type": "integer" }, "version": { "type": "integer" }, "workflow_concurrency": { "type": "integer" } } }, "github_com_addp_develop_backend_internal_service.WorkflowValidationIssue": { "type": "object", "properties": { "code": { "type": "string" }, "message": { "type": "string" }, "path": { "type": "string" } } }, "github_com_addp_develop_backend_internal_service.WorkflowValidationResult": { "type": "object", "properties": { "errors": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_service.WorkflowValidationIssue" } }, "valid": { "type": "boolean" }, "warnings": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_service.WorkflowValidationIssue" } }, "workflow_engine_id": { "type": "integer" } } }, "internal_api.ExecutionLogsResponse": { "type": "object", "properties": { "execution_id": { "type": "string" }, "logs": { "type": "array", "items": { "$ref": "#/definitions/plugin.WorkflowExecutionLog" } } } }, "internal_api.ListKernelsResponse": { "type": "object", "properties": { "kernels": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_service.KernelInfo" } } } }, "internal_api.OperatorListResponse": { "type": "object", "properties": { "count": { "type": "integer" }, "operators": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_service.PublicOperatorDescriptor" } }, "status": { "type": "string" }, "workflow_engine_id": { "type": "integer" } } }, "internal_api.WorkflowParametersErrorResponse": { "type": "object", "properties": { "error": { "type": "string" }, "error_code": { "type": "string" }, "errors": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_develop_backend_internal_service.WorkflowValidationIssue" } } } }, "internal_api.WorkflowValidationRequest": { "type": "object", "required": [ "workflow_definition", "workflow_engine_id" ], "properties": { "workflow_definition": { "type": "object", "additionalProperties": true }, "workflow_engine_id": { "type": "integer" } } }, "internal_api.executeDevTaskRequest": { "type": "object", "properties": { "parameters": { "type": "object", "additionalProperties": true } } }, "internal_api.notebookByteRange": { "type": "object", "properties": { "length": { "type": "integer" }, "offset": { "type": "integer" } } }, "internal_api.notebookChangeStreamRequest": { "type": "object", "properties": { "batch_size": { "type": "integer" }, "engine_id": { "type": "integer" }, "initial_position": { "type": "string" }, "path": { "$ref": "#/definitions/client.EngineCatalogPath" }, "poll_timeout": { "type": "integer" }, "positions": { "type": "object", "additionalProperties": { "type": "integer", "format": "int64" } } } }, "internal_api.notebookContentReadRequest": { "type": "object", "properties": { "engine_id": { "type": "integer" }, "path": { "$ref": "#/definitions/client.EngineCatalogPath" }, "range": { "$ref": "#/definitions/internal_api.notebookByteRange" } } }, "internal_api.notebookEngineCatalogChildrenRequest": { "type": "object", "properties": { "engine_id": { "type": "integer" }, "options": { "$ref": "#/definitions/client.EngineCatalogListOptions" }, "path": { "$ref": "#/definitions/client.EngineCatalogPath" } } }, "internal_api.notebookGraphQueryRequest": { "type": "object", "properties": { "engine_id": { "type": "integer" }, "max_rows": { "type": "integer" }, "query": { "type": "string" }, "timeout": { "type": "integer" } } }, "internal_api.notebookGraphSampleRequest": { "type": "object", "properties": { "engine_id": { "type": "integer" }, "limit": { "type": "integer" }, "path": { "$ref": "#/definitions/client.EngineCatalogPath" }, "timeout": { "type": "integer" } } }, "internal_api.notebookQueryRequest": { "type": "object", "properties": { "engine_id": { "type": "integer" }, "language": { "type": "string" }, "max_rows": { "type": "integer" }, "params": { "type": "array", "items": {} }, "query": { "type": "string" }, "timeout": { "type": "integer" } } }, "internal_api.notebookRecordScanRequest": { "type": "object", "properties": { "batch_size": { "type": "integer" }, "engine_id": { "type": "integer" }, "max_rows": { "type": "integer" }, "path": { "$ref": "#/definitions/client.EngineCatalogPath" } } }, "internal_api.notebookTableScanRequest": { "type": "object", "properties": { "batch_size": { "type": "integer" }, "engine_id": { "type": "integer" }, "max_rows": { "type": "integer" }, "path": { "$ref": "#/definitions/client.EngineCatalogPath" } } }, "internal_api.providerExecuteDevRequest": { "type": "object", "properties": { "parameters": { "type": "object", "additionalProperties": true }, "parent_execution_id": { "type": "string" }, "source": { "type": "string" }, "trigger_type": { "type": "string" } } }, "internal_api.providerExecuteDevResponse": { "type": "object", "properties": { "execution_id": { "type": "string" }, "status": { "type": "string" } } }, "models.EngineRuntimeDescriptor": { "type": "object", "properties": { "capabilities": { "type": "string" }, "connection_status": { "type": "string" }, "description": { "type": "string" }, "engine_origin": { "type": "string" }, "engine_type": { "type": "string" }, "id": { "type": "integer" }, "is_builtin": { "type": "boolean" }, "lifecycle_state": { "type": "string" }, "name": { "type": "string" }, "runtime_endpoint": { "$ref": "#/definitions/models.EngineRuntimeEndpoint" } } }, "models.EngineRuntimeEndpoint": { "type": "object", "properties": { "host": { "type": "string" }, "port": { "type": "integer" }, "protocol": { "type": "string" } } }, "models.JSONMap": { "type": "object", "additionalProperties": true }, "models.OutputPortDescriptor": { "type": "object", "properties": { "description": { "description": "端口语义说明", "type": "string" }, "is_default": { "description": "是否为默认端口 (单输出时为true)", "type": "boolean" }, "name": { "description": "端口名称 (如 \"default\", \"large\", \"small\")", "type": "string" }, "type": { "description": "数据类型 (geodataframe, string, array等)", "type": "string" } } }, "models.ParameterDescriptor": { "type": "object", "properties": { "default": { "description": "默认值" }, "depends_on": { "description": "依赖的参数名 (动态显示)", "type": "string" }, "description": { "description": "参数说明", "type": "string" }, "display_name": { "description": "用户可见名称", "type": "string" }, "enum": { "description": "枚举值 (用于下拉选择)", "type": "array", "items": { "type": "string" } }, "item_type": { "description": "数组元素类型", "type": "string" }, "max": { "description": "最大值 (数值类型)", "type": "number" }, "min": { "description": "最小值 (数值类型)", "type": "number" }, "name": { "description": "稳定参数名", "type": "string" }, "notes": { "description": "注意事项/额外说明", "type": "string" }, "param_type": { "description": "参数角色 (input/output/param/ui)", "type": "string" }, "pattern": { "description": "正则校验 (字符串类型)", "type": "string" }, "properties": { "description": "对象属性定义", "type": "object", "additionalProperties": { "$ref": "#/definitions/models.ParameterDescriptor" } }, "required": { "description": "是否必填", "type": "boolean" }, "show_when": { "description": "显示条件 (格式: {param_name: value_or_list})", "type": "object", "additionalProperties": true }, "type": { "description": "类型 (string/integer/float/boolean/array/object)", "type": "string" }, "ui_config": { "description": "UI 组件配置参数", "type": "object", "additionalProperties": true }, "ui_type": { "description": "UI 组件类型 (resource_tree_picker 等)", "type": "string" } } }, "plugin.EngineCatalogPath": { "type": "object", "properties": { "engine_id": { "type": "integer" }, "segments": { "type": "array", "items": { "$ref": "#/definitions/plugin.EngineCatalogSegment" } }, "version": { "type": "string" } } }, "plugin.EngineCatalogSegment": { "type": "object", "properties": { "kind": { "type": "string" }, "name": { "type": "string" }, "term": { "type": "string" } } }, "plugin.EngineCatalogStorageFacts": { "type": "object", "properties": { "content_type": { "type": "string" }, "etag": { "type": "string" }, "extension": { "type": "string" }, "name": { "type": "string" }, "path": { "type": "string" }, "size_bytes": { "type": "integer" } } }, "plugin.GraphData": { "type": "object", "properties": { "nodes": { "type": "array", "items": { "$ref": "#/definitions/plugin.GraphNode" } }, "relationships": { "type": "array", "items": { "$ref": "#/definitions/plugin.GraphRelationship" } } } }, "plugin.GraphNode": { "type": "object", "properties": { "element_id": { "type": "string" }, "labels": { "type": "array", "items": { "type": "string" } }, "properties": { "type": "object", "additionalProperties": true } } }, "plugin.GraphQueryResult": { "type": "object", "properties": { "columns": { "description": "有序列名列表", "type": "array", "items": { "type": "string" } }, "fields": { "description": "Provider-owned output types, never source-field guesses.", "type": "array", "items": { "$ref": "#/definitions/datatype.FieldInfo" } }, "graph_data": { "$ref": "#/definitions/plugin.GraphData" }, "rows": { "description": "每行:列名 → 值", "type": "array", "items": { "type": "object", "additionalProperties": true } } } }, "plugin.GraphRelationship": { "type": "object", "properties": { "element_id": { "type": "string" }, "end_node_id": { "type": "string" }, "properties": { "type": "object", "additionalProperties": true }, "start_node_id": { "type": "string" }, "type": { "type": "string" } } }, "plugin.NewFilePublicationRequest": { "type": "object", "properties": { "operation_id": { "type": "string" }, "sha256": { "type": "string" }, "size_bytes": { "type": "integer" }, "target": { "$ref": "#/definitions/plugin.EngineCatalogPath" } } }, "plugin.QueryDiagnostic": { "type": "object", "properties": { "code": { "type": "string" }, "end": { "type": "integer" }, "parameters": { "type": "object", "additionalProperties": { "type": "string" } }, "phase": { "type": "string" }, "severity": { "type": "string" }, "start": { "type": "integer" } } }, "plugin.QueryReadSet": { "type": "object", "properties": { "paths": { "type": "array", "items": { "$ref": "#/definitions/plugin.EngineCatalogPath" } } } }, "plugin.WorkflowExecutionLog": { "type": "object", "required": [ "event", "level", "timestamp" ], "properties": { "event": { "type": "string", "enum": [ "workflow_started", "task_progress", "workflow_succeeded", "workflow_failed" ] }, "level": { "type": "string", "enum": [ "INFO", "ERROR" ] }, "progress": { "type": "integer" }, "task_id": { "type": "string" }, "timestamp": { "type": "string", "format": "date-time" } } }, "production.CommittedObject": { "type": "object", "properties": { "created": { "type": "boolean" }, "target": { "$ref": "#/definitions/plugin.EngineCatalogPath" } } }, "production.EngineVersion": { "type": "object", "properties": { "engine_id": { "type": "string", "example": "" }, "version": { "type": "string", "example": "" } } }, "production.PrivateUploadProof": { "type": "object", "properties": { "manifest_sha256": { "type": "string" }, "task_id": { "type": "string", "example": "" }, "upload_id": { "type": "string" }, "uploader_id": { "type": "string", "example": "" } } }, "production.Receipt": { "type": "object", "properties": { "attempt": { "type": "integer" }, "committed_at": { "type": "string" }, "objects": { "type": "array", "items": { "$ref": "#/definitions/production.CommittedObject" } }, "operation_id": { "type": "string" }, "origin": { "$ref": "#/definitions/production.UserOrigin" }, "primary": { "$ref": "#/definitions/plugin.EngineCatalogPath" }, "reference": { "$ref": "#/definitions/production.Reference" }, "retry_of_execution_id": { "type": "string" }, "sources": { "$ref": "#/definitions/production.SourceEvidence" }, "target_engine_version": { "type": "string", "example": "" }, "tenant_id": { "type": "string", "example": "" } } }, "production.Reference": { "type": "object", "properties": { "execution_id": { "type": "string" }, "owner": { "type": "string" }, "result_id": { "type": "string" } } }, "production.SourceEvidence": { "type": "object", "properties": { "engine_versions": { "type": "array", "items": { "$ref": "#/definitions/production.EngineVersion" } }, "kind": { "type": "string" }, "private_upload": { "$ref": "#/definitions/production.PrivateUploadProof" }, "read_set": { "$ref": "#/definitions/plugin.QueryReadSet" } } }, "production.UserOrigin": { "type": "object", "properties": { "authorization_version": { "type": "string", "example": "" }, "membership_id": { "type": "string", "example": "" }, "principal_id": { "type": "string", "example": "" } } }, "taskprovider.ExecutionContract": { "type": "object", "properties": { "input_defaults": { "type": "object", "additionalProperties": true }, "input_schema": { "type": "object", "additionalProperties": true }, "input_ui_schema": { "type": "object", "additionalProperties": true }, "output_schema": { "type": "object", "additionalProperties": true } } }, "taskprovider.ExecutionStatusResponse": { "type": "object", "required": [ "outputs" ], "properties": { "attempt": { "type": "integer" }, "bytes_read": { "type": "integer" }, "bytes_written": { "type": "integer" }, "completed_at": { "type": "string" }, "created_at": { "type": "string" }, "current_step": { "type": "string" }, "diagnostics_truncated": { "type": "boolean" }, "error_details": { "$ref": "#/definitions/models.JSONMap" }, "execution_boundary": { "type": "string" }, "execution_id": { "type": "string" }, "execution_time_ms": { "type": "integer" }, "id": { "type": "integer" }, "max_attempts": { "type": "integer" }, "metadata": { "$ref": "#/definitions/models.JSONMap" }, "module": { "type": "string" }, "outputs": { "$ref": "#/definitions/models.JSONMap" }, "parent_execution_id": { "type": "string" }, "progress": { "type": "integer" }, "records_read": { "type": "integer" }, "records_written": { "type": "integer" }, "retry_of_execution_id": { "type": "string" }, "rows_affected": { "type": "integer" }, "source": { "type": "string" }, "source_task_id": { "type": "string" }, "source_task_name": { "type": "string" }, "started_at": { "type": "string" }, "status": { "type": "string" }, "steps": { "type": "array", "items": { "$ref": "#/definitions/execution.DiagnosticStep" } }, "steps_attempt_unverified": { "type": "boolean" }, "steps_truncated": { "type": "boolean" }, "task_type": { "type": "string" }, "trigger_type": { "type": "string" }, "triggered_by": { "type": "integer" }, "updated_at": { "type": "string" } } } }, "securityDefinitions": { "BearerAuth": { "type": "apiKey", "name": "Authorization", "in": "header" } } }