{ "swagger": "2.0", "info": { "title": "ADDP Meta API", "contact": {}, "version": "1.0" }, "host": "localhost:8082", "basePath": "/api/v1/meta", "paths": { "/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": [ "meta.cleanup_result.read", "system.cleanup.read" ] } }, "/data-items/changes": { "get": { "security": [ { "BearerAuth": [] } ], "description": "按不透明游标顺序返回当前租户的 DataItem 创建、摘要更新和失效变化,仅供 Catalog 模块消费 | Return ordered DataItem creation, summary update, and missing changes for the current tenant; Catalog service only", "produces": [ "application/json" ], "tags": [ "Meta" ], "summary": "拉取 DataItem 变化 | Pull DataItem 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": "DataItem 变化批次 | DataItem change batch", "schema": { "$ref": "#/definitions/github_com_addp_meta_internal_models.DataItemChangesResponse" } }, "400": { "description": "无效游标或批大小 | Invalid cursor or batch size", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "未认证 | Unauthorized", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "非 Catalog 服务或权限不足 | Catalog service or permission required", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "服务器内部错误 | Internal server error", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.catalog.read" ] } }, "/engines": { "get": { "security": [ { "BearerAuth": [] } ], "description": "获取当前租户 active 存储引擎选择项、标准能力声明、连接状态及统计信息;用户扫描统计仅计可见分支;非 online 项由前端展示并禁选 | Get active storage engine options with canonical capabilities, connection status, and statistics for the current tenant; User scan statistics include visible branches only; clients must show but disable non-online options", "produces": [ "application/json" ], "tags": [ "Meta" ], "summary": "获取引擎列表 | Get engine list", "responses": { "200": { "description": "引擎列表 | Engine list", "schema": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_meta_internal_models.ResourceWithStats" } } }, "401": { "description": "认证失效 | Invalid credential", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "无查询权限 | Query forbidden", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "服务器内部错误 | Internal server error", "schema": { "type": "object", "additionalProperties": true } }, "503": { "description": "授权核验不可用 | Authorization check unavailable", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.catalog.read" ] } }, "/engines/{engine_id}/items": { "get": { "security": [ { "BearerAuth": [] } ], "description": "获取指定引擎下已扫描的数据项,可按 catalog 第一层业务分支过滤 | List scanned metadata items for an engine, optionally filtered by catalog first business branch\n用户查询按当前 metadata_read/read 权限过滤,仅返回身份与结构,不含样本、源数据统计或原始 attributes;不可见单项与不存在均返回 404;受控机器事实查询保留既有契约 | User queries enforce current metadata_read/read visibility and return identity and structure only, without samples, source statistics or raw attributes; hidden and absent single targets both return 404; guarded machine facts retain their contract", "produces": [ "application/json" ], "tags": [ "Meta Query" ], "summary": "列出引擎数据项 | List engine items", "parameters": [ { "type": "integer", "description": "存储引擎ID | Engine ID", "name": "engine_id", "in": "path", "required": true }, { "type": "string", "description": "catalog 第一层业务分支名称 | Catalog first business branch name", "name": "branch", "in": "query" } ], "responses": { "200": { "description": "数据项列表 | Items", "schema": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_meta_internal_models.MetaItemLite" } } }, "400": { "description": "请求参数错误 | Bad request", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "认证失效 | Invalid credential", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "无查询权限 | Query forbidden", "schema": { "type": "object", "additionalProperties": true } }, "404": { "description": "目标不存在或不可见 | Target absent or hidden", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "服务器内部错误 | Internal server error", "schema": { "type": "object", "additionalProperties": true } }, "503": { "description": "授权核验不可用 | Authorization check unavailable", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.catalog.read" ] } }, "/engines/{engine_id}/tree": { "get": { "security": [ { "BearerAuth": [] } ], "description": "获取指定引擎的完整元数据树 | Get metadata tree for an engine\nPG 用户查询按当前 metadata_read/read 权限过滤,仅返回身份与结构,不含样本、源数据统计或原始 attributes;不可见单项与不存在均返回 404;受控机器事实查询保留既有契约 | PG user queries enforce current metadata_read/read visibility and return identity and structure only, without samples, source statistics or raw attributes; hidden and absent single targets both return 404; guarded machine facts retain their contract", "produces": [ "application/json" ], "tags": [ "Meta Query" ], "summary": "获取元数据树 | Get metadata tree", "parameters": [ { "type": "integer", "description": "存储引擎ID | Engine ID", "name": "engine_id", "in": "path", "required": true } ], "responses": { "200": { "description": "元数据树 | Metadata tree", "schema": { "$ref": "#/definitions/github_com_addp_meta_internal_models.MetadataTreeResponse" } }, "400": { "description": "请求参数错误 | Bad request", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "认证失效 | Invalid credential", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "无查询权限 | Query forbidden", "schema": { "type": "object", "additionalProperties": true } }, "404": { "description": "目标不存在或不可见 | Target absent or hidden", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "服务器内部错误 | Internal server error", "schema": { "type": "object", "additionalProperties": true } }, "503": { "description": "授权核验不可用 | Authorization check unavailable", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.catalog.read" ] } }, "/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/{execution_id}": { "get": { "security": [ { "BearerAuth": [] } ], "description": "当前租户 meta/scan 的安全扫描详情;任务历史按读取权限,一次性执行仅发起 User 可读 | Safe tenant meta/scan observation; permission covers task history, ad-hoc executions are initiator-only", "produces": [ "application/json" ], "tags": [ "Meta Scan" ], "summary": "获取执行详情 | Get execution", "parameters": [ { "type": "string", "description": "执行ID | Execution ID", "name": "execution_id", "in": "path", "required": true } ], "responses": { "200": { "description": "安全执行详情 | Safe execution detail", "schema": { "$ref": "#/definitions/github_com_addp_meta_internal_models.ScanExecutionResponse" } }, "400": { "description": "请求参数错误 | Bad request", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "用户身份或权限不允许 | User identity or permission denied", "schema": { "type": "object", "additionalProperties": true } }, "404": { "description": "执行不存在或不可读 | Execution absent or invisible", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "服务器内部错误 | Internal server error", "schema": { "type": "object", "additionalProperties": true } }, "503": { "description": "任务服务不可用 | Task service unavailable", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.scan_task.read" ] } }, "/executions/{execution_id}/cancel": { "post": { "security": [ { "BearerAuth": [] } ], "description": "需要独立取消权限及当前引擎管理范围。已放行枚举允许结束,下次枚举停止;返回当前执行状态,受理不代表运行体已停止,不关闭定时 | Requires independent cancel permission and current engine management scope. An admitted enumeration may finish, but the next is blocked. Acceptance does not mean the runner has stopped and does not disable scheduling", "produces": [ "application/json" ], "tags": [ "Meta Scan" ], "summary": "请求取消 PG basic 集中扫描 | Request cancellation of a centralized PG basic scan", "parameters": [ { "type": "string", "description": "执行 ID | Execution ID", "name": "execution_id", "in": "path", "required": true } ], "responses": { "202": { "description": "取消已受理或执行已结束 | Cancellation accepted or execution already ended", "schema": { "$ref": "#/definitions/github_com_addp_meta_internal_models.ScanExecutionResponse" } }, "400": { "description": "请求失败 | Request failed", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "请求失败 | Request failed", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "权限或管理范围拒绝,error_code=permission_denied | Permission or management scope denied, error_code=permission_denied", "schema": { "type": "object", "additionalProperties": true } }, "404": { "description": "请求失败 | Request failed", "schema": { "type": "object", "additionalProperties": true } }, "409": { "description": "请求失败 | Request failed", "schema": { "type": "object", "additionalProperties": true } }, "503": { "description": "请求失败 | Request failed", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.scan_task.cancel" ] } }, "/inspect": { "post": { "security": [ { "BearerAuth": [] } ], "description": "仅 Transfer Tenant Service 可在核验当前执行及私有来源后识别 Infra 文件 attributes,不写入 Meta item 或 node。| Only the Transfer Tenant Service may inspect Infra file attributes after verifying the current execution and private source; no Meta item or node is persisted.", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Meta" ], "summary": "动态识别标准 attributes | Inspect standard attributes without persistence", "parameters": [ { "description": "识别请求 | Inspect request", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/github_com_addp_meta_internal_service.InspectRequest" } } ], "responses": { "200": { "description": "识别结果 | Inspect result", "schema": { "$ref": "#/definitions/github_com_addp_meta_internal_service.InspectResult" } }, "400": { "description": "请求参数错误 | Bad request", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "机器身份或权限不满足要求 | Service identity or permission denied", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "服务器内部错误 | Internal server error", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.inspect.execute" ] } }, "/items/by-catalog-path": { "get": { "security": [ { "BearerAuth": [] } ], "description": "按引擎和 catalog path 查询数据项 | Query metadata item by engine and catalog path\nPG 用户查询按当前 metadata_read/read 权限过滤,仅返回身份与结构,不含样本、源数据统计或原始 attributes;不可见单项与不存在均返回 404;受控机器事实查询保留既有契约 | PG user queries enforce current metadata_read/read visibility and return identity and structure only, without samples, source statistics or raw attributes; hidden and absent single targets both return 404; guarded machine facts retain their contract", "produces": [ "application/json" ], "tags": [ "Meta Query" ], "summary": "按 catalog path 查询数据项 | Query item by catalog path", "parameters": [ { "type": "integer", "description": "存储引擎ID | Engine ID", "name": "engine_id", "in": "query", "required": true }, { "type": "string", "description": "Catalog path", "name": "catalog_path", "in": "query", "required": true } ], "responses": { "200": { "description": "数据项详情 | Item detail", "schema": { "$ref": "#/definitions/github_com_addp_meta_internal_models.MetaItemLite" } }, "400": { "description": "请求参数错误 | Bad request", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "认证失效 | Invalid credential", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "无查询权限 | Query forbidden", "schema": { "type": "object", "additionalProperties": true } }, "404": { "description": "数据项不存在 | Item not found", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "结构事实查询失败 | Structure facts query failed", "schema": { "type": "object", "additionalProperties": true } }, "503": { "description": "授权核验不可用 | Authorization check unavailable", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.catalog.read" ] } }, "/items/{item_id}": { "get": { "security": [ { "BearerAuth": [] } ], "description": "按数据项 ID 获取元数据项详情 | Get metadata item detail by ID\nPG 用户查询按当前 metadata_read/read 权限过滤,仅返回身份与结构,不含样本、源数据统计或原始 attributes;不可见单项与不存在均返回 404;受控机器事实查询保留既有契约 | PG user queries enforce current metadata_read/read visibility and return identity and structure only, without samples, source statistics or raw attributes; hidden and absent single targets both return 404; guarded machine facts retain their contract", "produces": [ "application/json" ], "tags": [ "Meta Query" ], "summary": "获取数据项详情 | Get item detail", "parameters": [ { "type": "integer", "description": "数据项ID | Item ID", "name": "item_id", "in": "path", "required": true } ], "responses": { "200": { "description": "数据项详情 | Item detail", "schema": { "$ref": "#/definitions/github_com_addp_meta_internal_models.MetaItemLite" } }, "400": { "description": "请求参数错误 | Bad request", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "认证失效 | Invalid credential", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "无查询权限 | Query forbidden", "schema": { "type": "object", "additionalProperties": true } }, "404": { "description": "数据项不存在 | Item not found", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "结构事实查询失败 | Structure facts query failed", "schema": { "type": "object", "additionalProperties": true } }, "503": { "description": "授权核验不可用 | Authorization check unavailable", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.catalog.read" ] } }, "/items/{item_id}/ancestors": { "get": { "security": [ { "BearerAuth": [] } ], "description": "按数据项 ID 获取数据项及 root 到其父节点的元数据节点链 | Get item and metadata node chain from root to its parent node by item ID\nPG 用户查询按当前 metadata_read/read 权限过滤,仅返回身份与结构,不含样本、源数据统计或原始 attributes;不可见单项与不存在均返回 404;受控机器事实查询保留既有契约 | PG user queries enforce current metadata_read/read visibility and return identity and structure only, without samples, source statistics or raw attributes; hidden and absent single targets both return 404; guarded machine facts retain their contract", "produces": [ "application/json" ], "tags": [ "Meta Query" ], "summary": "获取数据项祖先链 | Get item ancestor chain", "parameters": [ { "type": "integer", "description": "数据项ID | Item ID", "name": "item_id", "in": "path", "required": true } ], "responses": { "200": { "description": "数据项祖先链 | Item ancestor chain", "schema": { "$ref": "#/definitions/github_com_addp_meta_internal_models.MetaItemAncestorsResponse" } }, "400": { "description": "请求参数错误 | Bad request", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "认证失效 | Invalid credential", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "无查询权限 | Query forbidden", "schema": { "type": "object", "additionalProperties": true } }, "404": { "description": "祖先链不存在 | Ancestor chain not found", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "服务器内部错误 | Internal server error", "schema": { "type": "object", "additionalProperties": true } }, "503": { "description": "授权核验不可用 | Authorization check unavailable", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.catalog.read" ] } }, "/items/{item_id}/fields": { "get": { "security": [ { "BearerAuth": [] } ], "description": "按数据项 ID 获取字段详情 | Get item field details by item ID\n用户查询按当前 metadata_read/read 权限过滤,仅返回身份与结构,不含样本、源数据统计或原始 attributes;不可见单项与不存在均返回 404;受控机器事实查询保留既有契约 | User queries enforce current metadata_read/read visibility and return identity and structure only, without samples, source statistics or raw attributes; hidden and absent single targets both return 404; guarded machine facts retain their contract", "produces": [ "application/json" ], "tags": [ "Meta Query" ], "summary": "按 ID 获取数据项字段 | Get item fields by ID", "parameters": [ { "type": "integer", "description": "数据项ID | Item ID", "name": "item_id", "in": "path", "required": true } ], "responses": { "200": { "description": "字段详情 | Field details", "schema": { "type": "object", "additionalProperties": true } }, "400": { "description": "请求参数错误 | Bad request", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "认证失效 | Invalid credential", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "无查询权限 | Query forbidden", "schema": { "type": "object", "additionalProperties": true } }, "404": { "description": "数据项不存在 | Item not found", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "服务器内部错误 | Internal server error", "schema": { "type": "object", "additionalProperties": true } }, "503": { "description": "授权核验不可用 | Authorization check unavailable", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.catalog.read" ] } }, "/items/{item_id}/refresh": { "post": { "security": [ { "BearerAuth": [] } ], "description": "创建手动扫描执行并等待刷新完成;单个 CSV/TSV 表格可指定 encoding 和 has_header,成功后读取设置和结构一起生效,失败保留旧摘要 | Create a manual execution and wait for refresh; a single CSV/TSV table may specify encoding and has_header, applied with its schema only on success; failure preserves the prior snapshot", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Meta Scan" ], "summary": "刷新已知数据项 | Refresh known item", "parameters": [ { "type": "integer", "description": "数据项ID | Item ID", "name": "item_id", "in": "path", "required": true }, { "description": "刷新请求 | Refresh request", "name": "request", "in": "body", "schema": { "$ref": "#/definitions/github_com_addp_meta_internal_models.ScanRequest" } } ], "responses": { "200": { "description": "刷新结果 | Refresh result", "schema": { "$ref": "#/definitions/github_com_addp_meta_internal_models.ScanResponse" } }, "400": { "description": "请求参数错误 | Bad request", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "缺少当前用户来源 | Current User origin is required", "schema": { "type": "object", "additionalProperties": true } }, "409": { "description": "同范围扫描正在执行:scan_scope_active | Scan scope already active: scan_scope_active", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "服务器内部错误 | Internal server error", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.scan_task.execute" ] } }, "/items/{item_id}/spatial": { "get": { "security": [ { "BearerAuth": [] } ], "description": "按数据项 ID 获取空间元数据 | Get spatial metadata by item ID\nPG 用户查询按当前 metadata_read/read 权限过滤,仅返回身份与结构,不含样本、源数据统计或原始 attributes;不可见单项与不存在均返回 404;受控机器事实查询保留既有契约 | PG user queries enforce current metadata_read/read visibility and return identity and structure only, without samples, source statistics or raw attributes; hidden and absent single targets both return 404; guarded machine facts retain their contract", "produces": [ "application/json" ], "tags": [ "Meta Query" ], "summary": "按 ID 获取空间元数据 | Get spatial metadata by ID", "parameters": [ { "type": "integer", "description": "数据项ID | Item ID", "name": "item_id", "in": "path", "required": true } ], "responses": { "200": { "description": "空间元数据 | Spatial metadata", "schema": { "$ref": "#/definitions/github_com_addp_meta_internal_models.SpatialMetadataResponse" } }, "400": { "description": "请求参数错误 | Bad request", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "认证失效 | Invalid credential", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "无查询权限 | Query forbidden", "schema": { "type": "object", "additionalProperties": true } }, "404": { "description": "空间元数据不存在 | Spatial metadata not found", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "服务器内部错误 | Internal server error", "schema": { "type": "object", "additionalProperties": true } }, "503": { "description": "授权核验不可用 | Authorization check unavailable", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.catalog.read" ] } }, "/lineage/executions/{execution_id}/collect": { "post": { "security": [ { "BearerAuth": [] } ], "description": "采集指定终态执行中已确认提交的 lineage_facts;整体失败不撤销已提交产物;重复调用幂等 | Collect confirmed commit lineage_facts from a terminal execution; overall failure preserves committed outputs; repeated calls are idempotent", "produces": [ "application/json" ], "tags": [ "Meta Lineage" ], "summary": "采集单次执行血缘 | Collect execution lineage", "parameters": [ { "type": "string", "description": "执行 ID | Execution ID", "name": "execution_id", "in": "path", "required": true } ], "responses": { "200": { "description": "采集结果 | Collection result", "schema": { "$ref": "#/definitions/github_com_addp_meta_internal_models.LineageCollectionResult" } }, "400": { "description": "执行事实不可采集 | Execution facts cannot be collected", "schema": { "$ref": "#/definitions/github_com_addp_meta_internal_models.LineageErrorResponse" } }, "404": { "description": "执行不存在 | Execution not found", "schema": { "$ref": "#/definitions/github_com_addp_meta_internal_models.LineageErrorResponse" } }, "500": { "description": "采集失败 | Collection failed", "schema": { "$ref": "#/definitions/github_com_addp_meta_internal_models.LineageErrorResponse" } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.lineage.create" ] } }, "/lineage/graph": { "get": { "security": [ { "BearerAuth": [] } ], "description": "用户查询仅返回当前可见的数据项与字段;两端可见才展示关系,计数与截断只基于可见关系。permission_filtered 仅告知查询边界上存在因权限隐藏的关系,不返回隐藏身份或数量。服务起点拒绝,表达式与任意证据不返回 | User queries return currently visible items and fields only. Both endpoints must be visible; counts and truncation use visible relations only. permission_filtered indicates hidden relations at the query boundary without hidden identities or counts. Service roots are denied; expressions and arbitrary evidence are omitted\n按数据项、精确字段引用或已发布服务版本查询血缘关系;字段边只返回执行 ID、写入模式、字段状态和转换摘要,不重复整份 operation 字段映射 | Query lineage for a data item, exact field reference or published service revision; field edges expose execution ID, write mode, field status and transformation summaries without full operation mappings", "produces": [ "application/json" ], "tags": [ "Meta Lineage" ], "summary": "查询数据血缘图 | Get lineage graph", "parameters": [ { "type": "string", "description": "主体类型:data_item、field_ref 或 published_service | Subject kind: data_item, field_ref or published_service", "name": "subject_kind", "in": "query", "required": true }, { "type": "string", "description": "图粒度:item 或 field;数据项可一次查询全部字段,字段主体仅支持 field | Graph granularity: item or field; data items support all fields, field references require field", "name": "granularity", "in": "query" }, { "type": "string", "description": "精确字段名,field_ref 时必填 | Exact field name, required for field_ref", "name": "field_name", "in": "query" }, { "type": "string", "description": "字段粒度的结构快照 hash;省略时使用当前 Meta 结构,指定值需执行证据证明 | Schema snapshot hash for field granularity; defaults to current Meta schema; explicit hashes require execution evidence", "name": "schema_snapshot_hash", "in": "query" }, { "type": "integer", "description": "数据项 ID,data_item 或 field_ref 时必填 | Item ID, required for data_item or field_ref", "name": "item_id", "in": "query" }, { "type": "integer", "description": "服务 ID,subject_kind=published_service 时必填 | Service ID, required for published_service", "name": "service_id", "in": "query" }, { "type": "string", "description": "服务发布版本,subject_kind=published_service 时必填 | Published revision, required for published_service", "name": "revision", "in": "query" }, { "type": "string", "default": "both", "description": "方向:upstream、downstream 或两者有向遍历并集 both,不含旁系 | Direction: upstream, downstream or their directed union both; excludes sibling branches", "name": "direction", "in": "query" }, { "type": "integer", "default": 2, "description": "每条关系计一层,0 只显示主体或根结构字段,范围 0-20 | Each edge is one hop; 0 returns the subject or root schema fields; range 0-20", "name": "depth", "in": "query" }, { "type": "string", "description": "额外向上展开的 item ID,逗号分隔,最多100个 | Item IDs to expand upstream, comma separated, max 100", "name": "expand_upstream", "in": "query" }, { "type": "string", "description": "额外向下展开的 item ID,逗号分隔,最多100个 | Item IDs to expand downstream, comma separated, max 100", "name": "expand_downstream", "in": "query" }, { "type": "integer", "description": "节点和边分别计数的上限:item 默认100、范围1-500;field 默认5000、范围1-5000 | Separate node and edge limit: item defaults to 100, range 1-500; field defaults to 5000, range 1-5000", "name": "limit", "in": "query" }, { "type": "string", "description": "历史观察时间(RFC3339) | Historical observation time (RFC3339)", "name": "as_of", "in": "query" } ], "responses": { "200": { "description": "血缘图 | Lineage graph", "schema": { "$ref": "#/definitions/github_com_addp_meta_internal_models.LineageGraphResponse" } }, "400": { "description": "请求参数错误 | Bad request", "schema": { "$ref": "#/definitions/github_com_addp_meta_internal_models.LineageErrorResponse" } }, "403": { "description": "可见性核验拒绝或不可用 | Visibility denied or unavailable", "schema": { "$ref": "#/definitions/github_com_addp_meta_internal_models.LineageErrorResponse" } }, "404": { "description": "主体不存在 | Subject not found", "schema": { "$ref": "#/definitions/github_com_addp_meta_internal_models.LineageErrorResponse" } }, "500": { "description": "服务器内部错误 | Internal server error", "schema": { "$ref": "#/definitions/github_com_addp_meta_internal_models.LineageErrorResponse" } }, "503": { "description": "可见性核验拒绝或不可用 | Visibility denied or unavailable", "schema": { "$ref": "#/definitions/github_com_addp_meta_internal_models.LineageErrorResponse" } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.lineage.read" ] } }, "/lineage/services": { "post": { "security": [ { "BearerAuth": [] } ], "description": "Service 同步名称、更新时间与当前版本依赖;更新关闭旧版本,忽略过期通知 | Service publishes its name, update time and current revision dependencies; superseded revisions close and stale notifications are ignored", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Meta Lineage" ], "summary": "记录服务发布血缘事实 | Record service publication lineage", "parameters": [ { "description": "服务发布血缘事实 | Service publication lineage", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/github_com_addp_meta_internal_models.RecordServicePublicationRequest" } } ], "responses": { "204": { "description": "No Content" }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/github_com_addp_meta_internal_models.LineageErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/github_com_addp_meta_internal_models.LineageErrorResponse" } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.lineage.create" ] } }, "/nodes/by-catalog-path": { "get": { "security": [ { "BearerAuth": [] } ], "description": "按引擎和 catalog path 查询元数据节点 | Query metadata node by engine and catalog path\nPG 用户查询按当前 metadata_read/read 权限过滤,仅返回身份与结构,不含样本、源数据统计或原始 attributes;不可见单项与不存在均返回 404;受控机器事实查询保留既有契约 | PG user queries enforce current metadata_read/read visibility and return identity and structure only, without samples, source statistics or raw attributes; hidden and absent single targets both return 404; guarded machine facts retain their contract", "produces": [ "application/json" ], "tags": [ "Meta Query" ], "summary": "按 catalog path 查询节点 | Query node by catalog path", "parameters": [ { "type": "integer", "description": "存储引擎ID | Engine ID", "name": "engine_id", "in": "query", "required": true }, { "type": "string", "description": "Catalog path", "name": "catalog_path", "in": "query", "required": true } ], "responses": { "200": { "description": "节点详情 | Node detail", "schema": { "$ref": "#/definitions/github_com_addp_meta_internal_models.MetaNodeLite" } }, "400": { "description": "请求参数错误 | Bad request", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "认证失效 | Invalid credential", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "无查询权限 | Query forbidden", "schema": { "type": "object", "additionalProperties": true } }, "404": { "description": "节点不存在 | Node not found", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "服务器内部错误 | Internal server error", "schema": { "type": "object", "additionalProperties": true } }, "503": { "description": "授权核验不可用 | Authorization check unavailable", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.catalog.read" ] } }, "/nodes/{node_id}": { "get": { "security": [ { "BearerAuth": [] } ], "description": "按节点 ID 获取元数据节点详情 | Get metadata node detail by ID\nPG 用户查询按当前 metadata_read/read 权限过滤,仅返回身份与结构,不含样本、源数据统计或原始 attributes;不可见单项与不存在均返回 404;受控机器事实查询保留既有契约 | PG user queries enforce current metadata_read/read visibility and return identity and structure only, without samples, source statistics or raw attributes; hidden and absent single targets both return 404; guarded machine facts retain their contract", "produces": [ "application/json" ], "tags": [ "Meta Query" ], "summary": "获取节点详情 | Get node detail", "parameters": [ { "type": "integer", "description": "节点ID | Node ID", "name": "node_id", "in": "path", "required": true } ], "responses": { "200": { "description": "节点详情 | Node detail", "schema": { "$ref": "#/definitions/github_com_addp_meta_internal_models.MetaNodeLite" } }, "400": { "description": "请求参数错误 | Bad request", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "认证失效 | Invalid credential", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "无查询权限 | Query forbidden", "schema": { "type": "object", "additionalProperties": true } }, "404": { "description": "节点不存在 | Node not found", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "服务器内部错误 | Internal server error", "schema": { "type": "object", "additionalProperties": true } }, "503": { "description": "授权核验不可用 | Authorization check unavailable", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.catalog.read" ] } }, "/nodes/{node_id}/ancestors": { "get": { "security": [ { "BearerAuth": [] } ], "description": "按节点 ID 获取 root 到目标节点的元数据节点链,包含目标节点自身 | Get metadata node chain from root to target node, including the target node\nPG 用户查询按当前 metadata_read/read 权限过滤,仅返回身份与结构,不含样本、源数据统计或原始 attributes;不可见单项与不存在均返回 404;受控机器事实查询保留既有契约 | PG user queries enforce current metadata_read/read visibility and return identity and structure only, without samples, source statistics or raw attributes; hidden and absent single targets both return 404; guarded machine facts retain their contract", "produces": [ "application/json" ], "tags": [ "Meta Query" ], "summary": "获取节点祖先链 | Get node ancestor chain", "parameters": [ { "type": "integer", "description": "节点ID | Node ID", "name": "node_id", "in": "path", "required": true } ], "responses": { "200": { "description": "节点祖先链 | Node ancestor chain", "schema": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_meta_internal_models.MetaNodeLite" } } }, "400": { "description": "请求参数错误 | Bad request", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "认证失效 | Invalid credential", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "无查询权限 | Query forbidden", "schema": { "type": "object", "additionalProperties": true } }, "404": { "description": "祖先链不存在 | Ancestor chain not found", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "服务器内部错误 | Internal server error", "schema": { "type": "object", "additionalProperties": true } }, "503": { "description": "授权核验不可用 | Authorization check unavailable", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.catalog.read" ] } }, "/nodes/{node_id}/children": { "get": { "security": [ { "BearerAuth": [] } ], "description": "获取指定节点的直接子节点 | Get direct children of a metadata node\nPG 用户查询按当前 metadata_read/read 权限过滤,仅返回身份与结构,不含样本、源数据统计或原始 attributes;不可见单项与不存在均返回 404;受控机器事实查询保留既有契约 | PG user queries enforce current metadata_read/read visibility and return identity and structure only, without samples, source statistics or raw attributes; hidden and absent single targets both return 404; guarded machine facts retain their contract", "produces": [ "application/json" ], "tags": [ "Meta Query" ], "summary": "获取子节点 | Get node children", "parameters": [ { "type": "integer", "description": "节点ID | Node ID", "name": "node_id", "in": "path", "required": true } ], "responses": { "200": { "description": "子节点列表 | Children", "schema": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_meta_internal_models.MetaNodeLite" } } }, "400": { "description": "请求参数错误 | Bad request", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "认证失效 | Invalid credential", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "无查询权限 | Query forbidden", "schema": { "type": "object", "additionalProperties": true } }, "404": { "description": "目标不存在或不可见 | Target absent or hidden", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "服务器内部错误 | Internal server error", "schema": { "type": "object", "additionalProperties": true } }, "503": { "description": "授权核验不可用 | Authorization check unavailable", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.catalog.read" ] } }, "/nodes/{node_id}/items": { "get": { "security": [ { "BearerAuth": [] } ], "description": "获取指定节点下的数据项 | Get metadata items under a node\nPG 用户查询按当前 metadata_read/read 权限过滤,仅返回身份与结构,不含样本、源数据统计或原始 attributes;不可见单项与不存在均返回 404;受控机器事实查询保留既有契约 | PG user queries enforce current metadata_read/read visibility and return identity and structure only, without samples, source statistics or raw attributes; hidden and absent single targets both return 404; guarded machine facts retain their contract", "produces": [ "application/json" ], "tags": [ "Meta Query" ], "summary": "获取节点数据项 | Get node items", "parameters": [ { "type": "integer", "description": "节点ID | Node ID", "name": "node_id", "in": "path", "required": true } ], "responses": { "200": { "description": "数据项列表 | Items", "schema": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_meta_internal_models.MetaItemLite" } } }, "400": { "description": "请求参数错误 | Bad request", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "认证失效 | Invalid credential", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "无查询权限 | Query forbidden", "schema": { "type": "object", "additionalProperties": true } }, "404": { "description": "目标不存在或不可见 | Target absent or hidden", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "服务器内部错误 | Internal server error", "schema": { "type": "object", "additionalProperties": true } }, "503": { "description": "授权核验不可用 | Authorization check unavailable", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.catalog.read" ] } }, "/resource-tree/{engine_id}": { "get": { "security": [ { "BearerAuth": [] } ], "description": "用户仅见当前可见项、必要祖先及有效节点(包括空节点);现有委托工具只返回可见项与必要祖先;统计数量与搜索限额在过滤后计算,不返回样本或源内容统计 | Users receive visible items, necessary ancestors and authorized nodes including empty nodes; existing delegated tools receive visible items and necessary ancestors; counts and search limits apply after filtering, without samples or source content statistics\n获取指定引擎的标准资源树视图,返回 common/resourcetree.TreeNode | Get standard resource tree for an engine\n委托 resource.children.list 仅允许 expand_depth=1 且没有其他查询参数 | Delegated resource.children.list requires expand_depth=1 and no other query parameters", "produces": [ "application/json" ], "tags": [ "Meta Resource Tree" ], "summary": "获取标准资源树 | Get resource tree", "parameters": [ { "type": "integer", "description": "存储引擎ID | Engine ID", "name": "engine_id", "in": "path", "required": true }, { "type": "integer", "description": "展开深度,-1 表示全部展开 | Expand depth, -1 for full tree", "name": "expand_depth", "in": "query" } ], "responses": { "200": { "description": "资源树 | Resource tree", "schema": { "$ref": "#/definitions/resourcetree.TreeNode" } }, "400": { "description": "请求参数错误 | Bad request", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "无权访问 | Access denied", "schema": { "type": "object", "additionalProperties": true } }, "404": { "description": "资源不存在 | Resource not found", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "服务器内部错误 | Internal server error", "schema": { "type": "object", "additionalProperties": true } }, "503": { "description": "授权核验暂不可用 | Authorization check unavailable", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "delegated_tool", "x-addp-required-permissions": [ "meta.catalog.read" ] } }, "/resource-tree/{engine_id}/ancestors": { "get": { "security": [ { "BearerAuth": [] } ], "description": "用户仅见当前可见项、必要祖先及有效节点(包括空节点);现有委托工具只返回可见项与必要祖先;统计数量与搜索限额在过滤后计算,不返回样本或源内容统计 | Users receive visible items, necessary ancestors and authorized nodes including empty nodes; existing delegated tools receive visible items and necessary ancestors; counts and search limits apply after filtering, without samples or source content statistics\n按 locator 获取 root 到目标资源的标准资源树祖先链,并重写为当前 Meta 事实 locator | Get resource tree ancestor chain by locator and rewrite target locator from current Meta facts", "produces": [ "application/json" ], "tags": [ "Meta Resource Tree" ], "summary": "获取标准资源树祖先链 | Get resource tree ancestors", "parameters": [ { "type": "integer", "description": "存储引擎ID | Engine ID", "name": "engine_id", "in": "path", "required": true }, { "type": "string", "description": "ResourceLocator URI", "name": "locator", "in": "query", "required": true } ], "responses": { "200": { "description": "资源树祖先链 | Resource tree ancestors", "schema": { "$ref": "#/definitions/github_com_addp_meta_internal_models.ResourceTreeAncestorsResponse" } }, "400": { "description": "请求参数错误 | Bad request", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "无权访问 | Access denied", "schema": { "type": "object", "additionalProperties": true } }, "404": { "description": "资源不存在 | Resource not found", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "服务器内部错误 | Internal server error", "schema": { "type": "object", "additionalProperties": true } }, "503": { "description": "授权核验暂不可用 | Authorization check unavailable", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.catalog.read" ] } }, "/resource-tree/{engine_id}/node": { "get": { "security": [ { "BearerAuth": [] } ], "description": "用户仅见当前可见项、必要祖先及有效节点(包括空节点);现有委托工具只返回可见项与必要祖先;统计数量与搜索限额在过滤后计算,不返回样本或源内容统计 | Users receive visible items, necessary ancestors and authorized nodes including empty nodes; existing delegated tools receive visible items and necessary ancestors; counts and search limits apply after filtering, without samples or source content statistics\n按 locator 获取资源树节点及直接子级,返回 common/resourcetree.TreeNode | Get resource tree node and direct children by locator", "produces": [ "application/json" ], "tags": [ "Meta Resource Tree" ], "summary": "获取标准资源树节点 | Get resource tree node", "parameters": [ { "type": "integer", "description": "存储引擎ID | Engine ID", "name": "engine_id", "in": "path", "required": true }, { "type": "string", "description": "ResourceLocator URI", "name": "locator", "in": "query", "required": true } ], "responses": { "200": { "description": "资源树节点 | Resource tree node", "schema": { "$ref": "#/definitions/resourcetree.TreeNode" } }, "400": { "description": "请求参数错误 | Bad request", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "无权访问 | Access denied", "schema": { "type": "object", "additionalProperties": true } }, "404": { "description": "资源不存在 | Resource not found", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "服务器内部错误 | Internal server error", "schema": { "type": "object", "additionalProperties": true } }, "503": { "description": "授权核验暂不可用 | Authorization check unavailable", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.catalog.read" ] } }, "/resource-tree/{engine_id}/refresh": { "post": { "security": [ { "BearerAuth": [] } ], "description": "按普通 node locator 提交一次后台基础扫描,引擎根拒绝;run 为安全扫描观察,不包含配置、任意原始 metadata、授权或租约凭据 | Submit a background basic scan by ordinary node locator; engine roots are rejected. The run is a safe scan observation without config, arbitrary raw metadata, authorization or lease credentials", "produces": [ "application/json" ], "tags": [ "Meta Resource Tree" ], "summary": "刷新标准资源树节点 | Refresh resource tree node", "parameters": [ { "type": "integer", "description": "存储引擎ID | Engine ID", "name": "engine_id", "in": "path", "required": true }, { "type": "string", "description": "node ResourceLocator URI", "name": "locator", "in": "query", "required": true } ], "responses": { "202": { "description": "已提交的安全刷新运行 | Submitted safe refresh run", "schema": { "$ref": "#/definitions/github_com_addp_meta_internal_models.ResourceTreeRefreshEnvelope" } }, "400": { "description": "请求参数错误 | Bad request", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "未授权 | Unauthorized", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "无权访问 | Access denied", "schema": { "type": "object", "additionalProperties": true } }, "404": { "description": "资源不存在 | Resource not found", "schema": { "type": "object", "additionalProperties": true } }, "409": { "description": "同范围扫描正在执行:scan_scope_active | Scan scope already active: scan_scope_active", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "服务器内部错误 | Internal server error", "schema": { "type": "object", "additionalProperties": true } }, "503": { "description": "任务服务不可用 | Task service unavailable", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.scan_task.execute" ] } }, "/resource-tree/{engine_id}/search": { "get": { "security": [ { "BearerAuth": [] } ], "description": "用户仅见当前可见项、必要祖先及有效节点(包括空节点);现有委托工具只返回可见项与必要祖先;统计数量与搜索限额在过滤后计算,不返回样本或源内容统计 | Users receive visible items, necessary ancestors and authorized nodes including empty nodes; existing delegated tools receive visible items and necessary ancestors; counts and search limits apply after filtering, without samples or source content statistics\n在指定引擎的标准资源树中按关键词搜索节点 | Search nodes in a standard resource tree by keyword", "produces": [ "application/json" ], "tags": [ "Meta Resource Tree" ], "summary": "搜索标准资源树 | Search resource tree", "parameters": [ { "type": "integer", "description": "存储引擎ID | Engine ID", "name": "engine_id", "in": "path", "required": true }, { "type": "string", "description": "搜索关键词,至少 2 个字符 | Search keyword, at least 2 characters", "name": "q", "in": "query", "required": true }, { "type": "string", "description": "节点类型过滤,逗号分隔 | Node type filter, comma-separated", "name": "node_types", "in": "query" }, { "type": "integer", "description": "返回数量限制,默认 50,最大 100 | Result limit, default 50, max 100", "name": "limit", "in": "query" } ], "responses": { "200": { "description": "搜索结果 | Search results", "schema": { "$ref": "#/definitions/github_com_addp_meta_internal_models.ResourceTreeSearchResponse" } }, "400": { "description": "请求参数错误 | Bad request", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "无权访问 | Access denied", "schema": { "type": "object", "additionalProperties": true } }, "404": { "description": "资源不存在 | Resource not found", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "服务器内部错误 | Internal server error", "schema": { "type": "object", "additionalProperties": true } }, "503": { "description": "授权核验暂不可用 | Authorization check unavailable", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.catalog.read" ] } }, "/runtime/data-item-identities/query": { "post": { "security": [ { "BearerAuth": [] } ], "description": "仅供 addp-system Tenant Service 查询当前租户精确引擎内已识别数据项;返回最小身份及同快照的完整父节点链(最多128级),缺失或循环父链失败,不读取源内容、不扫描、不裁决权限。可按 PG/NFS/MinIO 类型化父节点只读直属项(whole 容器为外层目录的一项叶子),或按名称/路径搜索;先过滤再计数分页;最多 20000 个不重复指纹、每页最多 100 项,正文最多 2 MiB。include 空集合返回空结果 | Restricted to addp-system Tenant Service. Reads minimal identified DataItem identities with complete same-snapshot ancestry (at most 128 levels; missing or cyclic parents fail) for one engine in the current tenant, without source reads, scans or access decisions. An optional typed PG/NFS/MinIO parent restricts rows to direct children (whole containers appear once under their outer directory); literal search filters names and paths. Filters precede counting and pagination. At most 20000 unique fingerprints, 100 rows per page and 2 MiB body. Empty include means no matches", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Meta Runtime" ], "summary": "查询数据项身份清单 | Query DataItem identities", "parameters": [ { "description": "身份查询 | Identity query", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/authorizationfacts.IdentityQuery" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/authorizationfacts.IdentityPage" } }, "400": { "description": "查询失败 | Query failed", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "查询失败 | Query failed", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "查询失败 | Query failed", "schema": { "type": "object", "additionalProperties": true } }, "413": { "description": "查询失败 | Query failed", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "查询失败 | Query failed", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.data_item_identity.read" ] } }, "/runtime/data-items/authorization-facts/query": { "post": { "security": [ { "BearerAuth": [] } ], "description": "固定 System/Catalog/Manager Tenant Service 精确读取 1—64 个不重复指纹,正文最多 8 KiB、每项最多 128 KiB;按请求顺序返回,当前租户缺失项facts为null,故障整批失败。200不是许可,不扫描、不读源内容、不缓存 | Restricted to System/Catalog/Manager Tenant Services. Reads 1-64 unique exact fingerprints, at most 8 KiB request and 128 KiB per fact. Results retain request order; absent items have null facts, failures reject the entire query. HTTP 200 is not an Allow. No scans, source reads or caching", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Meta Runtime" ], "summary": "查询数据项授权资源事实 | Query DataItem authorization resource facts", "parameters": [ { "description": "精确事实查询 | Exact facts query", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/authorizationfacts.AuthorizationFactsQuery" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/authorizationfacts.AuthorizationFactsBatch" } }, "400": { "description": "查询失败 | Query failed", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "查询失败 | Query failed", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "查询失败 | Query failed", "schema": { "type": "object", "additionalProperties": true } }, "413": { "description": "查询失败 | Query failed", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "查询失败 | Query failed", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.authorization_facts.read" ] } }, "/runtime/data-items/authorization-facts/revision": { "get": { "security": [ { "BearerAuth": [] } ], "description": "仅 System Tenant Service 读取当前租户不透明依据版本,不返回身份或许可 | Only the System Tenant Service may read the current tenant basis revision; returns no identities or Allow", "produces": [ "application/json" ], "tags": [ "Meta Runtime" ], "summary": "读取授权事实提交版本 | Read committed authorization facts revision", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/authorizationfacts.Revision" } }, "400": { "description": "读取失败 | Read failed", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "读取失败 | Read failed", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "读取失败 | Read failed", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "读取失败 | Read failed", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.authorization_facts.read" ] } }, "/runtime/data-items/{fingerprint}/security-facts": { "get": { "security": [ { "BearerAuth": [] } ], "description": "仅供 addp-security 使用,按当前 Tenant 和精确 fingerprint 返回无原值的字段结构事实 | Restricted to addp-security; returns value-free field structure facts by current tenant and exact fingerprint", "produces": [ "application/json" ], "tags": [ "Meta Runtime" ], "summary": "获取单个 DataItem 的安全技术事实 | Get security technical facts for one DataItem", "parameters": [ { "type": "string", "description": "DataItem 指纹 | DataItem fingerprint", "name": "fingerprint", "in": "path", "required": true } ], "responses": { "200": { "description": "安全技术事实 | Security technical facts", "schema": { "$ref": "#/definitions/dataprotection.DataItemSecurityFacts" } }, "404": { "description": "DataItem 不存在 | DataItem not found", "schema": { "type": "object", "additionalProperties": true } }, "422": { "description": "结构事实不可用 | Structure facts unavailable", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "服务器内部错误 | Internal server error", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.security_facts.read" ] } }, "/runtime/data-items/{fingerprint}/security-sample": { "get": { "security": [ { "BearerAuth": [] } ], "description": "仅 addp-security 可按当前 Tenant 和确定 fingerprint 临时读取源文档的有界文本样本;样本不写入 Meta attributes | Only addp-security may transiently read a bounded source-document text sample for an exact fingerprint in the current tenant; the sample is not persisted in Meta attributes", "produces": [ "application/json" ], "tags": [ "Meta Runtime" ], "summary": "读取 DataItem 受控安全样本 | Read controlled DataItem security sample", "parameters": [ { "type": "string", "description": "DataItem fingerprint", "name": "fingerprint", "in": "path", "required": true } ], "responses": { "200": { "description": "受控样本 | Controlled sample", "schema": { "$ref": "#/definitions/dataprotection.DataItemSecuritySample" } }, "400": { "description": "fingerprint 无效 | Invalid fingerprint", "schema": { "type": "object", "additionalProperties": true } }, "503": { "description": "样本读取不可用 | Sample read unavailable", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.security_facts.read" ] } }, "/runtime/manager-uploads/{upload_id}/basic-scan": { "get": { "security": [ { "BearerAuth": [] } ], "description": "仅固定 System 运行身份;只读 Meta 既有扫描结果,不回源、不创建任务或授权 | Fixed System Runtime only. Reads existing Meta results without source reads, scan creation or Grants", "produces": [ "application/json" ], "tags": [ "Meta Scan" ], "summary": "读取上传首次识别事实 | Read first identification facts for an upload", "parameters": [ { "type": "string", "description": "上传 UUID | Upload UUID", "name": "upload_id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/client.MetaUploadIdentification" } }, "400": { "description": "Bad Request", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "Unauthorized", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "Forbidden", "schema": { "type": "object", "additionalProperties": true } }, "409": { "description": "Conflict", "schema": { "type": "object", "additionalProperties": true } }, "503": { "description": "Service Unavailable", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.task_provider.read" ] }, "post": { "security": [ { "BearerAuth": [] } ], "description": "仅固定 Manager 运行身份;反查同租户真实上传回执,不扩大父目录、不签发权限。重复调用返回原扫描 | Fixed Manager Runtime only. Resolves real same-tenant upload receipt; no parent enumeration or Grant. Replays return the original scan", "produces": [ "application/json" ], "tags": [ "Meta Scan" ], "summary": "识别成功上传的精确文件 | Identify exact committed upload files", "parameters": [ { "type": "string", "description": "上传 UUID | Upload UUID", "name": "upload_id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/client.MetaUploadIdentification" } }, "400": { "description": "Bad Request", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "Unauthorized", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "Forbidden", "schema": { "type": "object", "additionalProperties": true } }, "409": { "description": "Conflict", "schema": { "type": "object", "additionalProperties": true } }, "503": { "description": "Service Unavailable", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.scan_task.execute" ] } }, "/runtime/mosaic-scans/{execution_id}/result": { "get": { "security": [ { "BearerAuth": [] } ], "description": "仅允许 addp-manager,在当前父执行有效 lease/attempt 和精确目标绑定下读取专用子扫描状态及正式 whole item 身份;不返回配置、metadata、授权或原始错误 | Only addp-manager may read the dedicated scan status and whole item identity bound to the live parent lease, attempt and exact target; no configuration, metadata, authorization or raw errors", "produces": [ "application/json" ], "tags": [ "Meta Scan" ], "summary": "读取 Manager mosaic 扫描结果 | Read Manager mosaic scan result", "parameters": [ { "type": "string", "description": "扫描执行 UUID | Scan execution UUID", "name": "execution_id", "in": "path", "required": true }, { "type": "string", "description": "当前 Manager 父执行 UUID | Current Manager parent execution UUID", "name": "parent_execution_id", "in": "query", "required": true } ], "responses": { "200": { "description": "受限扫描结果 | Bound scan result", "schema": { "$ref": "#/definitions/client.MetaMosaicScanResult" } }, "400": { "description": "UUID 参数错误 | Invalid UUID", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "未认证 | Unauthenticated", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "服务或权限不匹配 | Client or Permission denied", "schema": { "type": "object", "additionalProperties": true } }, "404": { "description": "无有效父子绑定或正式结果 | No valid parent binding or formal result", "schema": { "type": "object", "additionalProperties": true } }, "503": { "description": "结果依赖不可用 | Result dependency unavailable", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.scan_task.execute" ] } }, "/runtime/node-identities/query": { "post": { "security": [ { "BearerAuth": [] } ], "description": "仅当前租户 addp-system Service 通过独立机器权限查询指定 PG server/schema、NFS root/directory 或 MinIO service/bucket/prefix 的直接子节点;不返回数据项、内容、属性、统计或权限裁决。分页最多100项,正文最多16KiB,不接受query或额外字段 | Fixed tenant addp-system Service with the node identity permission. Returns immediate PG, NFS or MinIO owner nodes only; no DataItems, content, attributes, statistics or access decisions. At most 100 nodes per page and 16KiB request body; query and extra fields are rejected", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Meta Runtime" ], "summary": "查询直接子节点身份 | Query immediate child node identities", "parameters": [ { "description": "节点查询及分页 | Node query and pagination", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/authorizationfacts.NodeIdentityPageQuery" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/authorizationfacts.NodeIdentityPage" } }, "400": { "description": "查询失败 | Query failed", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "查询失败 | Query failed", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "查询失败 | Query failed", "schema": { "type": "object", "additionalProperties": true } }, "413": { "description": "查询失败 | Query failed", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "查询失败 | Query failed", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.node_identity.read" ] } }, "/runtime/node-identities/resolve": { "post": { "security": [ { "BearerAuth": [] } ], "description": "仅 addp-system Tenant Service,以完整类型化路径读取当前租户精确引擎的 PG 根/schema、NFS 普通根/目录、MinIO service/bucket/普通 prefix 节点存在事实;不返回属性、内容或统计,不扫描、不签发 Grant。正文最多16KiB,不接受query或额外字段 | Fixed addp-system Tenant Service; resolves the existence of one PG root/schema, ordinary NFS root/directory or MinIO service/bucket/ordinary prefix node in the current tenant and exact engine by typed path. No attributes, content, statistics, scans or grants. Body is at most 16KiB; query and extra fields are rejected", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Meta Runtime" ], "summary": "核对节点身份事实 | Resolve node identity facts", "parameters": [ { "description": "节点身份查询 | Node identity query", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/authorizationfacts.NodeIdentityQuery" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/authorizationfacts.NodeIdentity" } }, "400": { "description": "核对失败 | Resolution failed", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "核对失败 | Resolution failed", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "核对失败 | Resolution failed", "schema": { "type": "object", "additionalProperties": true } }, "413": { "description": "核对失败 | Resolution failed", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "核对失败 | Resolution failed", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.node_identity.read" ] } }, "/runtime/productions/{producer_owner}/{execution_id}/{result_id}/basic-scan": { "get": { "security": [ { "BearerAuth": [] } ], "description": "仅 System Tenant Service;只读既有扫描及 Meta 身份,不回源、不创建扫描或 Grant | System Tenant Service only; reads existing scan and Meta identity without source IO, scan creation or Grants", "produces": [ "application/json" ], "tags": [ "Meta Scan" ], "summary": "读取原成果的新逻辑项识别事实 | Read logical new-item identification for a result", "parameters": [ { "type": "string", "description": "生产模块 | Producer module", "name": "producer_owner", "in": "path", "required": true }, { "type": "string", "description": "原执行 UUID | Original execution UUID", "name": "execution_id", "in": "path", "required": true }, { "type": "string", "description": "原独立成果 UUID | Original result UUID", "name": "result_id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/client.MetaProductionIdentification" } }, "400": { "description": "Bad Request", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "Unauthorized", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "Forbidden", "schema": { "type": "object", "additionalProperties": true } }, "409": { "description": "Conflict", "schema": { "type": "object", "additionalProperties": true } }, "503": { "description": "Service Unavailable", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.task_provider.read" ] }, "post": { "security": [ { "BearerAuth": [] } ], "description": "仅对应已注册生产者 Tenant Service;无正文和 query。反查原成果回执,仅识别完整精确目标。重复请求恢复原扫描,不复活失败执行,不授予用户权限 | Registered producer Tenant Service only; no body or query. Resolves original receipt and identifies exact committed objects. Replay recovers the original scan without reviving failed executions or granting user access", "produces": [ "application/json" ], "tags": [ "Meta Scan" ], "summary": "识别原已提交独立成果 | Identify an original committed result", "parameters": [ { "type": "string", "description": "生产模块 | Producer module", "name": "producer_owner", "in": "path", "required": true }, { "type": "string", "description": "原执行 UUID | Original execution UUID", "name": "execution_id", "in": "path", "required": true }, { "type": "string", "description": "原独立成果 UUID | Original result UUID", "name": "result_id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/client.MetaProductionIdentification" } }, "400": { "description": "Bad Request", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "Unauthorized", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "Forbidden", "schema": { "type": "object", "additionalProperties": true } }, "409": { "description": "Conflict", "schema": { "type": "object", "additionalProperties": true } }, "503": { "description": "Service Unavailable", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.scan_task.execute" ] } }, "/runtime/productions/{producer_owner}/{execution_id}/{result_id}/deep-scan": { "post": { "security": [ { "BearerAuth": [] } ], "description": "仅原已注册生产者 Tenant Service,无正文和 query。复用唯一 basic 身份识别并持久登记依赖它的唯一 deep 执行;basic 成功后才读取精确成果。重复请求不复活失败扫描,不等待或签发授权 | Registered producer Tenant Service only; no body or query. Reuses the unique basic identification and durably queues one dependent deep execution. Reads only the exact result after basic succeeds. Replay never revives failed scans or waits for or issues Grants", "produces": [ "application/json" ], "tags": [ "Meta Scan" ], "summary": "串接原已提交成果的自动深度扫描 | Chain automatic deep scanning of an original committed result", "parameters": [ { "type": "string", "description": "生产模块 | Producer module", "name": "producer_owner", "in": "path", "required": true }, { "type": "string", "description": "原执行 UUID | Original execution UUID", "name": "execution_id", "in": "path", "required": true }, { "type": "string", "description": "原独立成果 UUID | Original result UUID", "name": "result_id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/client.MetaProductionDeepScan" } }, "400": { "description": "Bad Request", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "Unauthorized", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "Forbidden", "schema": { "type": "object", "additionalProperties": true } }, "409": { "description": "Conflict", "schema": { "type": "object", "additionalProperties": true } }, "503": { "description": "Service Unavailable", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.scan_task.execute" ] } }, "/runtime/scan-executions/{execution_id}/authorization-facts": { "get": { "security": [ { "BearerAuth": [] } ], "description": "仅 addp-system Tenant Service 可读;200 仅表示计划事实,不是采集许可。不扫描、不读取源、不返回 Actor、连接、配置或 Grant。缺少真实冻结引擎版本时返回 409,不用当前版本补齐 | Restricted to addp-system Tenant Service. HTTP 200 contains facts, never an Allow. No scan, source I/O, Actor, connection, raw configuration or Grant. Returns 409 when the frozen engine version is missing; never substitutes the current version\n有任务的执行还须逐项匹配真实任务的引擎、深度、读取参数和范围;保留摘要却更换执行配置返回 409。任务已修改返回 needs_refresh,不签发许可 | Task-backed executions must also match the actual task engine, depth, read options and scope. Retaining the digest while changing execution configuration returns 409. A changed task returns needs_refresh, never a permit", "produces": [ "application/json" ], "tags": [ "Meta Runtime" ], "summary": "查询冻结扫描计划事实 | Read frozen scan plan facts", "parameters": [ { "type": "string", "description": "执行 UUID | Execution UUID", "name": "execution_id", "in": "path", "required": true } ], "responses": { "200": { "description": "冻结计划的最小事实 | Minimal frozen plan facts", "schema": { "$ref": "#/definitions/execution.MetaScanPlanFacts" } }, "400": { "description": "查询失败 | Query failed", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "查询失败 | Query failed", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "查询失败 | Query failed", "schema": { "type": "object", "additionalProperties": true } }, "404": { "description": "查询失败 | Query failed", "schema": { "type": "object", "additionalProperties": true } }, "409": { "description": "查询失败 | Query failed", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "查询失败 | Query failed", "schema": { "type": "object", "additionalProperties": true } }, "503": { "description": "查询失败 | Query failed", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.task_provider.read" ] } }, "/scan/run/manual": { "post": { "security": [ { "BearerAuth": [] } ], "description": "叶子 locator 仅扫描自身,root/branch 范围必须显式指定;Develop、Transfer 和 Manager 后台产物扫描仅允许对应服务携带父 execution,核对已保存产物和完整主体;Manager 还须验证当前 lease 和 attempt。Transfer 结构审批补扫改为核对已应用审批及有效领取,归属审批用户并创建独立执行。服务无来源请求拒绝 | Leaf locators scan only themselves; root and branch scopes must be explicit. Develop, Transfer and Manager output scans require the matching service, verified parent identity and persisted output; Manager also requires the current lease and attempt. Transfer schema approval scans instead verify the applied approval and active claim, attribute the independent execution to the approving user. Unowned service scans are rejected", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Meta Scan" ], "summary": "创建手动扫描运行 | Create manual scan run", "parameters": [ { "description": "扫描请求 | Scan request", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/github_com_addp_meta_internal_models.ScanRequest" } } ], "responses": { "201": { "description": "安全执行记录 | Safe execution", "schema": { "$ref": "#/definitions/github_com_addp_meta_internal_models.ScanExecutionResponse" } }, "400": { "description": "请求参数错误 | Bad request", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "未授权 | Unauthorized", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "不允许使用扫描来源 | Scan provenance is not permitted", "schema": { "type": "object", "additionalProperties": true } }, "404": { "description": "执行、产物或审批来源不可用 | Execution, output or approval provenance unavailable", "schema": { "type": "object", "additionalProperties": true } }, "409": { "description": "同范围扫描正在执行:scan_scope_active | Scan scope already active: scan_scope_active", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "服务器内部错误 | Internal server error", "schema": { "type": "object", "additionalProperties": true } }, "503": { "description": "任务服务不可用 | Task service unavailable", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.scan_task.execute" ] } }, "/scan/run/unscanned": { "post": { "security": [ { "BearerAuth": [] } ], "description": "为当前租户下尚未完成元数据扫描的存储引擎创建手动后台扫描运行;单个引擎提交失败不会中断后续引擎,响应包含 submission_failures | Create manual background scan runs for unscanned tenant engines; per-engine submission failures do not stop later engines and are returned in submission_failures", "produces": [ "application/json" ], "tags": [ "Meta Scan" ], "summary": "提交未扫描存储引擎后台扫描 | Submit background scans for unscanned engines", "responses": { "202": { "description": "已提交的扫描运行 | Submitted scan runs", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "未授权 | Unauthorized", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "服务器内部错误 | Internal server error", "schema": { "type": "object", "additionalProperties": true } }, "503": { "description": "任务服务不可用 | Task service unavailable", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.scan_task.execute" ] } }, "/scan/runs": { "get": { "security": [ { "BearerAuth": [] } ], "description": "当前租户 meta/scan 的安全运行记录;列表和总数仅包含可读任务历史及本人一次性执行 | Safe meta/scan executions; list and total contain readable task history and own ad-hoc executions only", "produces": [ "application/json" ], "tags": [ "Meta Scan" ], "summary": "列出扫描运行 | List scan runs", "parameters": [ { "type": "integer", "description": "任务ID | Task ID", "name": "task_id", "in": "query" }, { "type": "string", "description": "执行状态 | Execution status", "name": "status", "in": "query" }, { "type": "string", "description": "触发类型 | Trigger type", "name": "trigger_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": "安全分页执行记录 | Safe paged executions", "schema": { "$ref": "#/definitions/github_com_addp_meta_internal_models.ScanExecutionListResponse" } }, "400": { "description": "请求参数错误 | Bad request", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "用户身份或权限不允许 | User identity or permission denied", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "服务器内部错误 | Internal server error", "schema": { "type": "object", "additionalProperties": true } }, "503": { "description": "任务服务不可用 | Task service unavailable", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.scan_task.read" ] } }, "/scan/tasks": { "get": { "security": [ { "BearerAuth": [] } ], "description": "列出当前租户的扫描任务 | List scan tasks for current tenant", "produces": [ "application/json" ], "tags": [ "Meta Scan" ], "summary": "列出扫描任务 | List scan tasks", "parameters": [ { "type": "string", "description": "任务类型,固定为 scan | Task type, fixed to scan", "name": "task_type", "in": "query" } ], "responses": { "200": { "description": "扫描任务列表 | Scan tasks", "schema": { "type": "array", "items": { "type": "object", "additionalProperties": true } } }, "400": { "description": "不支持的任务类型 | Unsupported task type", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "当前身份、权限或目标范围不满足 | Current identity, permission or target scope rejected", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "权限或管理范围拒绝,error_code=permission_denied | Permission or management scope denied, error_code=permission_denied", "schema": { "type": "object", "additionalProperties": true } }, "404": { "description": "当前身份、权限或目标范围不满足 | Current identity, permission or target scope rejected", "schema": { "type": "object", "additionalProperties": true } }, "409": { "description": "当前身份、权限或目标范围不满足 | Current identity, permission or target scope rejected", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "服务器内部错误 | Internal server error", "schema": { "type": "object", "additionalProperties": true } }, "503": { "description": "任务服务不可用 | Task service unavailable", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.scan_task.read" ] }, "post": { "security": [ { "BearerAuth": [] } ], "description": "创建一个定时或手动扫描任务 | Create a scheduled or manual scan task", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Meta Scan" ], "summary": "创建扫描任务 | Create scan task", "parameters": [ { "description": "扫描任务请求 | Scan task request", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/github_com_addp_meta_internal_models.ScanTaskUpsertRequest" } } ], "responses": { "201": { "description": "扫描任务 | Scan task", "schema": { "type": "object", "additionalProperties": true } }, "400": { "description": "请求参数错误 | Bad request", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "当前身份、权限或目标范围不满足 | Current identity, permission or target scope rejected", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "权限或管理范围拒绝,error_code=permission_denied | Permission or management scope denied, error_code=permission_denied", "schema": { "type": "object", "additionalProperties": true } }, "404": { "description": "当前身份、权限或目标范围不满足 | Current identity, permission or target scope rejected", "schema": { "type": "object", "additionalProperties": true } }, "409": { "description": "当前身份、权限或目标范围不满足 | Current identity, permission or target scope rejected", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "服务器内部错误 | Internal server error", "schema": { "type": "object", "additionalProperties": true } }, "503": { "description": "任务服务不可用 | Task service unavailable", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.scan_task.create" ] } }, "/scan/tasks/engines/{engine_id}": { "put": { "security": [ { "BearerAuth": [] } ], "description": "为指定 engine 维护 Meta 扫描计划;PG 关闭定时保留配置与历史,不取消在途执行 | Maintain an engine scan plan; disabling PostgreSQL scheduling preserves the plan and history without cancelling in-flight executions", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Meta Scan" ], "summary": "维护 engine 扫描计划 | Upsert engine scan task", "parameters": [ { "type": "integer", "description": "引擎ID | Engine ID", "name": "engine_id", "in": "path", "required": true }, { "description": "engine 扫描计划 | Engine scan policy", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/github_com_addp_meta_internal_models.EngineScanTaskPolicyRequest" } } ], "responses": { "200": { "description": "扫描任务;无绑定任务时返回状态对象 | Scan task, or a status object when no bound task exists", "schema": { "$ref": "#/definitions/github_com_addp_meta_internal_models.ScanTask" } }, "400": { "description": "请求参数错误 | Bad request", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "当前身份、权限或目标范围不满足 | Current identity, permission or target scope rejected", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "权限或管理范围拒绝,error_code=permission_denied | Permission or management scope denied, error_code=permission_denied", "schema": { "type": "object", "additionalProperties": true } }, "404": { "description": "当前身份、权限或目标范围不满足 | Current identity, permission or target scope rejected", "schema": { "type": "object", "additionalProperties": true } }, "409": { "description": "当前身份、权限或目标范围不满足 | Current identity, permission or target scope rejected", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "服务器内部错误 | Internal server error", "schema": { "type": "object", "additionalProperties": true } }, "503": { "description": "任务服务不可用 | Task service unavailable", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.scan_task.update" ] }, "delete": { "security": [ { "BearerAuth": [] } ], "description": "删除指定 engine 绑定的 Meta 扫描计划 | Delete the Meta scan task bound to an engine", "produces": [ "application/json" ], "tags": [ "Meta Scan" ], "summary": "删除 engine 扫描计划 | Delete engine scan task", "parameters": [ { "type": "integer", "description": "引擎ID | Engine ID", "name": "engine_id", "in": "path", "required": true } ], "responses": { "200": { "description": "删除结果 | Delete result", "schema": { "type": "object", "additionalProperties": true } }, "400": { "description": "请求参数错误 | Bad request", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "当前身份、权限或目标范围不满足 | Current identity, permission or target scope rejected", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "权限或管理范围拒绝,error_code=permission_denied | Permission or management scope denied, error_code=permission_denied", "schema": { "type": "object", "additionalProperties": true } }, "404": { "description": "当前身份、权限或目标范围不满足 | Current identity, permission or target scope rejected", "schema": { "type": "object", "additionalProperties": true } }, "409": { "description": "当前身份、权限或目标范围不满足 | Current identity, permission or target scope rejected", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "服务器内部错误 | Internal server error", "schema": { "type": "object", "additionalProperties": true } }, "503": { "description": "任务服务不可用 | Task service unavailable", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.scan_task.delete" ] } }, "/scan/tasks/{task_id}": { "put": { "security": [ { "BearerAuth": [] } ], "description": "更新扫描任务配置 | Update scan task configuration", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Meta Scan" ], "summary": "更新扫描任务 | Update scan task", "parameters": [ { "type": "integer", "description": "任务ID | Task ID", "name": "task_id", "in": "path", "required": true }, { "description": "扫描任务请求 | Scan task request", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/github_com_addp_meta_internal_models.ScanTaskUpsertRequest" } } ], "responses": { "200": { "description": "扫描任务 | Scan task", "schema": { "type": "object", "additionalProperties": true } }, "400": { "description": "请求参数错误 | Bad request", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "当前身份、权限或目标范围不满足 | Current identity, permission or target scope rejected", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "权限或管理范围拒绝,error_code=permission_denied | Permission or management scope denied, error_code=permission_denied", "schema": { "type": "object", "additionalProperties": true } }, "404": { "description": "当前身份、权限或目标范围不满足 | Current identity, permission or target scope rejected", "schema": { "type": "object", "additionalProperties": true } }, "409": { "description": "当前身份、权限或目标范围不满足 | Current identity, permission or target scope rejected", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "服务器内部错误 | Internal server error", "schema": { "type": "object", "additionalProperties": true } }, "503": { "description": "任务服务不可用 | Task service unavailable", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.scan_task.update" ] }, "delete": { "security": [ { "BearerAuth": [] } ], "description": "删除指定扫描任务 | Delete scan task by ID", "produces": [ "application/json" ], "tags": [ "Meta Scan" ], "summary": "删除扫描任务 | Delete scan task", "parameters": [ { "type": "integer", "description": "任务ID | Task ID", "name": "task_id", "in": "path", "required": true } ], "responses": { "200": { "description": "删除结果 | Delete result", "schema": { "type": "object", "additionalProperties": true } }, "400": { "description": "请求参数错误 | Bad request", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "当前身份、权限或目标范围不满足 | Current identity, permission or target scope rejected", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "权限或管理范围拒绝,error_code=permission_denied | Permission or management scope denied, error_code=permission_denied", "schema": { "type": "object", "additionalProperties": true } }, "404": { "description": "当前身份、权限或目标范围不满足 | Current identity, permission or target scope rejected", "schema": { "type": "object", "additionalProperties": true } }, "409": { "description": "当前身份、权限或目标范围不满足 | Current identity, permission or target scope rejected", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "服务器内部错误 | Internal server error", "schema": { "type": "object", "additionalProperties": true } }, "503": { "description": "任务服务不可用 | Task service unavailable", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.scan_task.delete" ] } }, "/scan/tasks/{task_id}/trigger": { "post": { "security": [ { "BearerAuth": [] } ], "description": "立即触发指定扫描任务 | Trigger scan task immediately", "produces": [ "application/json" ], "tags": [ "Meta Scan" ], "summary": "触发扫描任务 | Trigger scan task", "parameters": [ { "type": "integer", "description": "任务ID | Task ID", "name": "task_id", "in": "path", "required": true } ], "responses": { "200": { "description": "安全执行记录 | Safe execution", "schema": { "$ref": "#/definitions/github_com_addp_meta_internal_models.ScanExecutionResponse" } }, "400": { "description": "请求参数错误 | Bad request", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "当前身份、权限或目标范围不满足 | Current identity, permission or target scope rejected", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "权限或管理范围拒绝,error_code=permission_denied | Permission or management scope denied, error_code=permission_denied", "schema": { "type": "object", "additionalProperties": true } }, "404": { "description": "当前身份、权限或目标范围不满足 | Current identity, permission or target scope rejected", "schema": { "type": "object", "additionalProperties": true } }, "409": { "description": "当前身份、权限或目标范围不满足 | Current identity, permission or target scope rejected", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "服务器内部错误 | Internal server error", "schema": { "type": "object", "additionalProperties": true } }, "503": { "description": "任务服务不可用 | Task service unavailable", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.scan_task.execute" ] } }, "/stats": { "get": { "security": [ { "BearerAuth": [] } ], "description": "获取当前租户有效元数据项数;用户仅统计当前可见数据项 | Count active tenant metadata items; User counts include only currently visible items", "produces": [ "application/json" ], "tags": [ "Meta" ], "summary": "获取元数据统计 | Get metadata stats", "responses": { "200": { "description": "统计信息 | Stats", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "认证失效 | Invalid credential", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "无查询权限 | Query forbidden", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "服务器内部错误 | Internal server error", "schema": { "type": "object", "additionalProperties": true } }, "503": { "description": "授权核验不可用 | Authorization check unavailable", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.catalog.read" ] } }, "/task-provider/executions/{execution_id}": { "get": { "security": [ { "BearerAuth": [] } ], "produces": [ "application/json" ], "tags": [ "Meta Scan" ], "summary": "获取 TaskProvider 扫描执行状态 | Get TaskProvider scan execution status", "parameters": [ { "type": "string", "description": "执行ID | Execution ID", "name": "execution_id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/taskprovider.ExecutionStatusResponse" } }, "400": { "description": "Bad Request", "schema": { "type": "object", "additionalProperties": true } }, "404": { "description": "Not Found", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "Internal Server Error", "schema": { "type": "object", "additionalProperties": true } }, "503": { "description": "Service Unavailable", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.task_provider.read" ] } }, "/task-provider/tasks": { "get": { "security": [ { "BearerAuth": [] } ], "description": "返回可供 Orchestrator 编排复用的 Meta ScanTask,task_type 固定为 scan。| List Meta ScanTasks exposed through TaskProvider; task_type is fixed to scan.", "produces": [ "application/json" ], "tags": [ "Meta Scan" ], "summary": "列出 TaskProvider 扫描任务 | List TaskProvider scan tasks", "parameters": [ { "type": "string", "description": "任务类型,固定为 scan | Task type, fixed to scan", "name": "task_type", "in": "query" }, { "type": "integer", "default": 1, "description": "页码 | Page", "name": "page", "in": "query" }, { "type": "integer", "default": 100, "description": "每页数量 | Page size", "name": "page_size", "in": "query" } ], "responses": { "200": { "description": "扫描任务列表 | Scan tasks", "schema": { "$ref": "#/definitions/github_com_addp_meta_internal_models.ListProviderScanTasksResponse" } }, "400": { "description": "不支持的任务类型 | Unsupported task type", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "当前身份、权限或目标范围不满足 | Current identity, permission or target scope rejected", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "权限或管理范围拒绝,error_code=permission_denied | Permission or management scope denied, error_code=permission_denied", "schema": { "type": "object", "additionalProperties": true } }, "404": { "description": "当前身份、权限或目标范围不满足 | Current identity, permission or target scope rejected", "schema": { "type": "object", "additionalProperties": true } }, "409": { "description": "当前身份、权限或目标范围不满足 | Current identity, permission or target scope rejected", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "服务器内部错误 | Internal server error", "schema": { "type": "object", "additionalProperties": true } }, "503": { "description": "任务服务不可用 | Task service unavailable", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.task_provider.read" ] } }, "/task-provider/tasks/{task_type}/{id}": { "get": { "security": [ { "BearerAuth": [] } ], "description": "按标准 TaskProvider 路径获取 Meta ScanTask 详情;task_type 仅支持 scan。| Get Meta ScanTask detail through the standard TaskProvider path; task_type only supports scan.", "produces": [ "application/json" ], "tags": [ "Meta Scan" ], "summary": "获取 TaskProvider 扫描任务详情 | Get TaskProvider scan task detail", "parameters": [ { "type": "string", "description": "任务类型,固定为 scan | Task type, fixed to scan", "name": "task_type", "in": "path", "required": true }, { "type": "integer", "description": "扫描任务ID | Scan task ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "扫描任务详情 | Scan task detail", "schema": { "$ref": "#/definitions/github_com_addp_meta_internal_models.ProviderScanTask" } }, "400": { "description": "请求参数错误 | Bad request", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "当前身份、权限或目标范围不满足 | Current identity, permission or target scope rejected", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "权限或管理范围拒绝,error_code=permission_denied | Permission or management scope denied, error_code=permission_denied", "schema": { "type": "object", "additionalProperties": true } }, "404": { "description": "当前身份、权限或目标范围不满足 | Current identity, permission or target scope rejected", "schema": { "type": "object", "additionalProperties": true } }, "409": { "description": "当前身份、权限或目标范围不满足 | Current identity, permission or target scope rejected", "schema": { "type": "object", "additionalProperties": true } }, "503": { "description": "任务服务不可用 | Task service unavailable", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.task_provider.read" ] } }, "/task-provider/tasks/{task_type}/{id}/execute": { "post": { "security": [ { "BearerAuth": [] } ], "description": "PG basic 本期拒绝编排触发。其他既有入口仅接受 addp-orchestrator 以父 execution 血缘触发;task_type 仅支持 scan,请求必须提供 source=orchestrator 和 parent_execution_id,parameters 当前不支持覆盖。| PG basic orchestration is rejected in this release. Other existing routes only accept addp-orchestrator execution-lineage invocation; task_type only supports scan, source=orchestrator and parent_execution_id are required, and parameters overrides are not supported.", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Meta Scan" ], "summary": "执行 TaskProvider 扫描任务 | Execute TaskProvider scan task", "parameters": [ { "type": "string", "description": "任务类型,固定为 scan | Task type, fixed to scan", "name": "task_type", "in": "path", "required": true }, { "type": "integer", "description": "扫描任务ID | Scan task ID", "name": "id", "in": "path", "required": true }, { "description": "TaskProvider 执行请求 | TaskProvider execution request", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/internal_api.taskProviderExecuteRequest" } } ], "responses": { "202": { "description": "执行记录 | Execution", "schema": { "$ref": "#/definitions/internal_api.taskProviderExecuteResponse" } }, "400": { "description": "请求参数错误 | Bad request", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "当前身份、权限或目标范围不满足 | Current identity, permission or target scope rejected", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "权限或管理范围拒绝,error_code=permission_denied | Permission or management scope denied, error_code=permission_denied", "schema": { "type": "object", "additionalProperties": true } }, "404": { "description": "当前身份、权限或目标范围不满足 | Current identity, permission or target scope rejected", "schema": { "type": "object", "additionalProperties": true } }, "409": { "description": "当前身份、权限或目标范围不满足 | Current identity, permission or target scope rejected", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "服务器内部错误 | Internal server error", "schema": { "type": "object", "additionalProperties": true } }, "503": { "description": "任务服务不可用 | Task service unavailable", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "meta.task_provider.execute" ] } } }, "definitions": { "authorization.MetadataRefreshQuery": { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "node", "item", "engine" ] }, "target": { "$ref": "#/definitions/plugin.EngineCatalogPath" } } }, "authorization.MetadataRefreshRange": { "type": "object", "properties": { "item": { "$ref": "#/definitions/authorizationfacts.Binding" }, "node": { "$ref": "#/definitions/authorization.SourceNodeScope" } } }, "authorization.MetadataRefreshScope": { "type": "object", "properties": { "engine_version": { "type": "string" }, "observed_at": { "type": "string" }, "operator": { "$ref": "#/definitions/authorization.SharingFulfillmentOperator" }, "query": { "$ref": "#/definitions/authorization.MetadataRefreshQuery" }, "ranges": { "type": "array", "items": { "$ref": "#/definitions/authorization.MetadataRefreshRange" } }, "tenant_id": { "type": "string", "example": "" } } }, "authorization.SharingFulfillmentOperator": { "type": "object", "properties": { "authorization_version": { "type": "string", "example": "" }, "principal_id": { "type": "string", "example": "" }, "tenant_membership_id": { "type": "string", "example": "" } } }, "authorization.SourceNodeScope": { "type": "object", "properties": { "recursive": { "type": "boolean" }, "target": { "$ref": "#/definitions/plugin.EngineCatalogPath" } } }, "authorizationfacts.AuthorizationBasisState": { "type": "string", "enum": [ "complete", "incomplete", "needs_refresh", "unsupported" ], "x-enum-varnames": [ "AuthorizationBasisComplete", "AuthorizationBasisIncomplete", "AuthorizationBasisNeedsRefresh", "AuthorizationBasisUnsupported" ] }, "authorizationfacts.AuthorizationBoundary": { "type": "object", "properties": { "file_composition": { "$ref": "#/definitions/authorizationfacts.FileCompositionBoundary" }, "layout": { "type": "string", "enum": [ "single", "multi", "whole" ] }, "metadata_target": { "$ref": "#/definitions/authorizationfacts.MetadataBoundary" }, "native_target": { "$ref": "#/definitions/plugin.EngineCatalogPath" }, "scope": { "$ref": "#/definitions/authorizationfacts.ScopeBoundary" } } }, "authorizationfacts.AuthorizationFacts": { "type": "object", "properties": { "after_delete_operation_id": { "type": "string", "format": "uuid" }, "basis_state": { "enum": [ "complete", "incomplete", "needs_refresh", "unsupported" ], "allOf": [ { "$ref": "#/definitions/authorizationfacts.AuthorizationBasisState" } ] }, "boundary": { "$ref": "#/definitions/authorizationfacts.AuthorizationBoundary" }, "boundary_hash": { "type": "string" }, "engine_id": { "type": "string", "example": "" }, "full_name": { "type": "string" }, "item_fingerprint": { "type": "string" }, "item_type": { "type": "string" }, "observed_at": { "type": "string" }, "schema_version": { "type": "string" }, "whole_table_read": { "$ref": "#/definitions/authorizationfacts.Binding" } } }, "authorizationfacts.AuthorizationFactsBatch": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/definitions/authorizationfacts.AuthorizationFactsResult" } } } }, "authorizationfacts.AuthorizationFactsQuery": { "type": "object", "properties": { "fingerprints": { "type": "array", "items": { "type": "string" } } } }, "authorizationfacts.AuthorizationFactsResult": { "type": "object", "properties": { "facts": { "$ref": "#/definitions/authorizationfacts.AuthorizationFacts" }, "item_fingerprint": { "type": "string" } } }, "authorizationfacts.Binding": { "type": "object", "properties": { "boundary_hash": { "type": "string" }, "file_composition": { "$ref": "#/definitions/authorizationfacts.FileCompositionBoundary" }, "item_fingerprint": { "type": "string" }, "metadata_target": { "$ref": "#/definitions/authorizationfacts.MetadataBoundary" }, "native_target": { "$ref": "#/definitions/plugin.EngineCatalogPath" }, "scope": { "$ref": "#/definitions/authorizationfacts.ScopeBoundary" } } }, "authorizationfacts.DataItemIdentity": { "type": "object", "properties": { "ancestors": { "type": "array", "items": { "$ref": "#/definitions/authorizationfacts.IdentityNode" } }, "engine_id": { "type": "integer" }, "full_name": { "type": "string" }, "item_fingerprint": { "type": "string" }, "item_type": { "type": "string" }, "name": { "type": "string" } } }, "authorizationfacts.FileCompositionBoundary": { "type": "object", "properties": { "format": { "type": "string" }, "refs": { "type": "array", "items": { "$ref": "#/definitions/authorizationfacts.FileCompositionRef" } }, "source_layout": { "description": "TIFF layout as observed by Meta, independent of its physical file count.", "type": "string" } } }, "authorizationfacts.FileCompositionRef": { "type": "object", "properties": { "primary": { "type": "boolean" }, "required": { "type": "boolean" }, "role": { "type": "string" }, "target": { "$ref": "#/definitions/plugin.EngineCatalogPath" } } }, "authorizationfacts.IdentityNode": { "type": "object", "properties": { "id": { "type": "string", "example": "0" }, "name": { "type": "string" }, "node_type": { "type": "string" } } }, "authorizationfacts.IdentityPage": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/definitions/authorizationfacts.DataItemIdentity" } }, "page": { "type": "integer" }, "page_size": { "type": "integer" }, "total": { "type": "integer" }, "total_pages": { "type": "integer" } } }, "authorizationfacts.IdentityQuery": { "type": "object", "properties": { "engine_id": { "type": "integer" }, "fingerprint_filter": { "type": "string", "enum": [ "include", "exclude" ] }, "fingerprints": { "type": "array", "items": { "type": "string" } }, "page": { "type": "integer" }, "page_size": { "type": "integer" }, "parent": { "$ref": "#/definitions/plugin.EngineCatalogPath" }, "search": { "type": "string" } } }, "authorizationfacts.MetadataBoundary": { "type": "object", "properties": { "composition_digest": { "type": "string" }, "data_type": { "type": "string" }, "format": { "type": "string" }, "layout": { "type": "string" }, "target": { "$ref": "#/definitions/plugin.EngineCatalogPath" } } }, "authorizationfacts.NodeIdentity": { "type": "object", "properties": { "exists": { "type": "boolean" }, "target": { "$ref": "#/definitions/plugin.EngineCatalogPath" }, "tenant_id": { "type": "integer" } } }, "authorizationfacts.NodeIdentityPage": { "type": "object", "properties": { "nodes": { "type": "array", "items": { "$ref": "#/definitions/authorizationfacts.NodeIdentity" } }, "page": { "type": "integer" }, "page_size": { "type": "integer" }, "parent": { "$ref": "#/definitions/authorizationfacts.NodeIdentity" }, "total": { "type": "integer" } } }, "authorizationfacts.NodeIdentityPageQuery": { "type": "object", "properties": { "page": { "type": "integer" }, "page_size": { "type": "integer" }, "target": { "$ref": "#/definitions/plugin.EngineCatalogPath" } } }, "authorizationfacts.NodeIdentityQuery": { "type": "object", "properties": { "target": { "$ref": "#/definitions/plugin.EngineCatalogPath" } } }, "authorizationfacts.Revision": { "type": "object", "properties": { "generation": { "type": "string" }, "schema_version": { "type": "string" }, "version": { "type": "string" } } }, "authorizationfacts.ScopeBoundary": { "type": "object", "properties": { "format": { "type": "string" }, "root": { "$ref": "#/definitions/plugin.EngineCatalogPath" }, "rule_version": { "type": "integer" } } }, "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.MetaMosaicOutput": { "type": "object", "properties": { "fingerprint": { "type": "string" }, "item_id": { "type": "integer" }, "locator": { "type": "string" } } }, "client.MetaMosaicScanResult": { "type": "object", "properties": { "execution_id": { "type": "string" }, "output": { "$ref": "#/definitions/client.MetaMosaicOutput" }, "parent_execution_id": { "type": "string" }, "status": { "type": "string" } } }, "client.MetaProductionDeepScan": { "type": "object", "properties": { "basic_scan_execution_id": { "type": "string" }, "engine_version": { "type": "string", "example": "" }, "reference": { "$ref": "#/definitions/production.Reference" }, "scan_execution_id": { "type": "string" }, "status": { "type": "string" }, "tenant_id": { "type": "string", "example": "" } } }, "client.MetaProductionIdentification": { "type": "object", "properties": { "binding": { "$ref": "#/definitions/authorizationfacts.Binding" }, "engine_version": { "type": "string", "example": "" }, "logical_item_state": { "type": "string" }, "reference": { "$ref": "#/definitions/production.Reference" }, "scan_execution_id": { "type": "string" }, "status": { "type": "string" }, "tenant_id": { "type": "string", "example": "" } } }, "client.MetaUploadIdentification": { "type": "object", "properties": { "new_items": { "type": "array", "items": { "$ref": "#/definitions/authorizationfacts.Binding" } }, "scan_execution_id": { "type": "string" }, "status": { "type": "string" }, "upload_id": { "type": "string" } } }, "dataprotection.DataItemSecurityFacts": { "type": "object", "properties": { "fields": { "type": "array", "items": { "$ref": "#/definitions/datatype.FieldInfo" } }, "item_fingerprint": { "type": "string" }, "item_type": { "type": "string" }, "observed_at": { "type": "string" }, "schema_version": { "type": "string" }, "source_snapshot_hash": { "type": "string" } } }, "dataprotection.DataItemSecuritySample": { "type": "object", "properties": { "item_fingerprint": { "type": "string" }, "item_type": { "type": "string" }, "observed_at": { "type": "string" }, "schema_version": { "type": "string" }, "source_snapshot_hash": { "type": "string" }, "text": { "type": "string" }, "truncated": { "type": "boolean" } } }, "datatype.CRSDefinition": { "type": "object", "properties": { "definition": { "type": "string" }, "definition_encoding": { "type": "string" }, "id": { "type": "string" }, "source": { "type": "string" } } }, "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.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.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.MetaScanPlanFacts": { "type": "object", "properties": { "basis_state": { "enum": [ "complete", "incomplete", "needs_refresh", "unsupported" ], "allOf": [ { "$ref": "#/definitions/authorizationfacts.AuthorizationBasisState" } ] }, "engine_id": { "type": "string", "example": "" }, "engine_version": { "type": "string" }, "execution_id": { "type": "string" }, "execution_plan_digest": { "type": "string" }, "read_options": { "$ref": "#/definitions/execution.MetaScanReadOptions" }, "refresh_scope": { "$ref": "#/definitions/authorization.MetadataRefreshScope" }, "scan_depth": { "type": "string", "enum": [ "basic", "deep" ] }, "schema_version": { "type": "string" }, "source_scope": { "$ref": "#/definitions/execution.MetaScanSourceScope" }, "task_definition_digest": { "type": "string" }, "task_id": { "type": "string" } } }, "execution.MetaScanReadOptions": { "type": "object", "properties": { "encoding": { "type": "string" }, "has_header": { "type": "boolean" } } }, "execution.MetaScanSourceScope": { "type": "object", "properties": { "anchors": { "type": "array", "items": { "$ref": "#/definitions/plugin.EngineCatalogPath" } }, "mode": { "type": "string", "enum": [ "exact", "full" ] } } }, "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" } } }, "execution.SchemaChangeScanSource": { "type": "object", "properties": { "claim_token": { "type": "string" }, "execution_id": { "type": "string" }, "request_id": { "type": "integer" } } }, "github_com_addp_common_models.JSONMap": { "type": "object", "additionalProperties": true }, "github_com_addp_meta_internal_models.DataItemChange": { "type": "object", "properties": { "change_id": { "type": "string" }, "observed_at": { "type": "string" }, "operation": { "type": "string" }, "snapshot": { "$ref": "#/definitions/github_com_addp_meta_internal_models.JSONMap" }, "source_identity": { "type": "string" }, "source_version": { "type": "string" } } }, "github_com_addp_meta_internal_models.DataItemChangesResponse": { "type": "object", "properties": { "changes": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_meta_internal_models.DataItemChange" } }, "has_more": { "type": "boolean" }, "next_cursor": { "type": "string" }, "schema_version": { "type": "string" } } }, "github_com_addp_meta_internal_models.EngineScanMVTPreprocessPlan": { "type": "object", "properties": { "concurrency": { "type": "integer" }, "max_zoom": { "type": "integer" }, "stop_threshold_kb": { "type": "number" }, "stop_threshold_sec": { "type": "number" } } }, "github_com_addp_meta_internal_models.EngineScanPolicy": { "type": "object", "properties": { "cron_expression": { "description": "Cron 表达式(schedule_mode=cron)", "type": "string" }, "enabled": { "description": "是否启用扫描(总开关)", "type": "boolean" }, "immediate_depth": { "description": "立即扫描深度:basic 或 deep", "type": "string" }, "immediate_scan": { "description": "注册或保存后立即扫描", "type": "boolean" }, "preprocessing": { "description": "扫描后预处理策略", "allOf": [ { "$ref": "#/definitions/github_com_addp_meta_internal_models.EngineScanPreprocessingPolicy" } ] }, "scan_depth": { "description": "默认扫描深度:basic 或 deep", "type": "string" }, "schedule_mode": { "description": "daily, weekly, monthly, cron", "type": "string" }, "schedule_time": { "description": "执行时间 HH:mm", "type": "string" }, "schedule_value": { "description": "周几(0-6)或月几(1-31)", "type": "array", "items": { "type": "integer" } }, "scheduled_scan": { "description": "是否启用定时扫描", "type": "boolean" } } }, "github_com_addp_meta_internal_models.EngineScanPreprocessingPolicy": { "type": "object", "properties": { "auto_trigger": { "type": "boolean" }, "enabled": { "type": "boolean" }, "mvt_config": { "$ref": "#/definitions/github_com_addp_meta_internal_models.EngineScanMVTPreprocessPlan" }, "types": { "type": "array", "items": { "type": "string" } } } }, "github_com_addp_meta_internal_models.EngineScanTaskPolicyRequest": { "type": "object", "properties": { "engine_name": { "type": "string" }, "scan_policy": { "$ref": "#/definitions/github_com_addp_meta_internal_models.EngineScanPolicy" } } }, "github_com_addp_meta_internal_models.ExtractionScanStats": { "type": "object", "properties": { "documents": { "type": "integer" }, "extracted": { "type": "integer" }, "failed": { "type": "integer" }, "index_failed": { "type": "integer" }, "indexed": { "type": "integer" }, "unsupported": { "type": "integer" } } }, "github_com_addp_meta_internal_models.JSONMap": { "type": "object", "additionalProperties": true }, "github_com_addp_meta_internal_models.LineageCollectionResult": { "type": "object", "properties": { "observed": { "type": "integer" }, "skipped": { "type": "integer" } } }, "github_com_addp_meta_internal_models.LineageEdge": { "type": "object", "properties": { "evidence": { "description": "字段边只返回执行 ID、写入模式、字段状态和转换摘要,不重复整份字段映射 | Field edges expose execution ID, write mode, field status and transformation summaries without full operation mappings.", "type": "object", "additionalProperties": true }, "granularity": { "type": "string" }, "last_observed_at": { "type": "string" }, "relation_kind": { "type": "string" }, "source": { "$ref": "#/definitions/github_com_addp_meta_internal_models.LineageNode" }, "status": { "type": "string" }, "target": { "$ref": "#/definitions/github_com_addp_meta_internal_models.LineageNode" }, "transformation": { "type": "string" } } }, "github_com_addp_meta_internal_models.LineageErrorResponse": { "type": "object", "properties": { "error": { "type": "string" }, "error_code": { "type": "string" } } }, "github_com_addp_meta_internal_models.LineageGraphResponse": { "type": "object", "properties": { "as_of": { "type": "string" }, "edges": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_meta_internal_models.LineageEdge" } }, "field_lineage_status": { "type": "string" }, "granularity": { "type": "string" }, "nodes": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_meta_internal_models.LineageNode" } }, "permission_filtered": { "description": "仅告知查询边界上存在因权限隐藏的关系,不返回身份或数量 | Indicates permission-hidden relations at the queried boundary without identities or counts.", "type": "boolean" }, "subject": { "$ref": "#/definitions/github_com_addp_meta_internal_models.LineageNode" }, "truncated": { "type": "boolean" } } }, "github_com_addp_meta_internal_models.LineageNode": { "type": "object", "properties": { "engine_id": { "type": "integer" }, "engine_name": { "type": "string" }, "field_lineage_status": { "type": "string" }, "field_name": { "type": "string" }, "full_name": { "type": "string" }, "hidden_downstream_count": { "type": "integer" }, "hidden_upstream_count": { "type": "integer" }, "item_fingerprint": { "type": "string" }, "item_id": { "type": "integer" }, "item_type": { "type": "string" }, "kind": { "type": "string" }, "name": { "type": "string" }, "published_revision": { "type": "string" }, "schema_snapshot_hash": { "type": "string" }, "service_id": { "type": "integer" } } }, "github_com_addp_meta_internal_models.LineageServiceDependencyInput": { "type": "object", "properties": { "dependency_fields": { "type": "object", "additionalProperties": true }, "dependency_kind": { "type": "string" }, "granularity": { "type": "string" }, "source_item_id": { "type": "integer" } } }, "github_com_addp_meta_internal_models.ListProviderScanTasksResponse": { "type": "object", "properties": { "items": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_meta_internal_models.ProviderScanTask" } }, "page": { "type": "integer" }, "page_size": { "type": "integer" }, "total": { "type": "integer" } } }, "github_com_addp_meta_internal_models.MetaItemAncestorsResponse": { "type": "object", "properties": { "ancestors": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_meta_internal_models.MetaNodeLite" } }, "item": { "$ref": "#/definitions/github_com_addp_meta_internal_models.MetaItemLite" } } }, "github_com_addp_meta_internal_models.MetaItemLite": { "type": "object", "properties": { "attributes": { "type": "object", "additionalProperties": true }, "data_updated_at": { "type": "string" }, "engine_id": { "type": "integer" }, "fingerprint": { "type": "string" }, "full_name": { "type": "string" }, "id": { "type": "integer" }, "item_type": { "type": "string" }, "name": { "type": "string" }, "node_id": { "type": "integer" }, "row_count": { "type": "integer" }, "scanned_at": { "type": "string" }, "scanned_depth": { "type": "string" }, "size_bytes": { "type": "integer" }, "tenant_id": { "type": "integer" } } }, "github_com_addp_meta_internal_models.MetaNodeLite": { "type": "object", "properties": { "attributes": { "type": "object", "additionalProperties": true }, "depth": { "type": "integer" }, "engine_id": { "type": "integer" }, "full_name": { "type": "string" }, "has_children": { "type": "boolean" }, "id": { "type": "integer" }, "item_count": { "description": "当前有效子树的逻辑数据项数量 | Active logical items in the current subtree", "type": "integer" }, "name": { "type": "string" }, "node_type": { "type": "string" }, "parent_node_id": { "type": "integer" }, "path": { "type": "string" }, "scan_status": { "type": "string" }, "scanned_at": { "type": "string" }, "scanned_depth": { "type": "string" }, "tenant_id": { "type": "integer" }, "total_size_bytes": { "description": "子树内已知数据项大小合计 | Sum of known item sizes in the subtree", "type": "integer" } } }, "github_com_addp_meta_internal_models.MetadataTreeResponse": { "type": "object", "properties": { "child_nodes": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_meta_internal_models.MetaNodeLite" } }, "items": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_meta_internal_models.MetaItemLite" } }, "top_nodes": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_meta_internal_models.MetaNodeLite" } } } }, "github_com_addp_meta_internal_models.ProviderScanTask": { "type": "object", "properties": { "created_at": { "type": "string" }, "created_by": { "type": "integer" }, "description": { "type": "string" }, "display_name": { "type": "string" }, "enabled": { "type": "boolean" }, "engine_id": { "type": "integer" }, "execution_contract": { "$ref": "#/definitions/taskprovider.ExecutionContract" }, "id": { "type": "integer" }, "last_execution_id": { "type": "string" }, "last_execution_status": { "type": "string" }, "last_run_at": { "type": "string" }, "name": { "type": "string" }, "next_run_at": { "type": "string" }, "owner_module": { "type": "string" }, "owner_ref": { "type": "string" }, "parameters": { "$ref": "#/definitions/github_com_addp_meta_internal_models.JSONMap" }, "schedule": { "type": "string" }, "scope": { "$ref": "#/definitions/github_com_addp_meta_internal_models.JSONMap" }, "task_type": { "type": "string" }, "tenant_id": { "type": "integer" }, "updated_at": { "type": "string" }, "updated_by": { "type": "integer" } } }, "github_com_addp_meta_internal_models.RecordServicePublicationRequest": { "type": "object", "properties": { "dependencies": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_meta_internal_models.LineageServiceDependencyInput" } }, "dependency_hash": { "type": "string" }, "published_revision": { "type": "string" }, "service_id": { "type": "integer" }, "service_name": { "type": "string" }, "service_updated_at": { "type": "string" } } }, "github_com_addp_meta_internal_models.ResourceTreeAncestorsResponse": { "type": "object", "properties": { "ancestors": { "type": "array", "items": { "$ref": "#/definitions/resourcetree.TreeNode" } }, "engine_id": { "type": "integer" }, "target_kind": { "type": "string" }, "target_locator": { "type": "string" } } }, "github_com_addp_meta_internal_models.ResourceTreeRefreshEnvelope": { "type": "object", "properties": { "data": { "$ref": "#/definitions/github_com_addp_meta_internal_models.ResourceTreeRefreshResponse" } } }, "github_com_addp_meta_internal_models.ResourceTreeRefreshResponse": { "type": "object", "properties": { "locator": { "type": "string" }, "run": { "$ref": "#/definitions/github_com_addp_meta_internal_models.ScanExecutionResponse" } } }, "github_com_addp_meta_internal_models.ResourceTreeSearchResponse": { "type": "object", "properties": { "keyword": { "type": "string" }, "results": { "type": "array", "items": { "$ref": "#/definitions/resourcetree.TreeNode" } }, "total": { "type": "integer" } } }, "github_com_addp_meta_internal_models.ResourceWithStats": { "type": "object", "properties": { "capabilities": { "type": "object" }, "catalog_leaf_i18n_key": { "type": "string" }, "catalog_leaf_term": { "type": "string" }, "catalog_root_term": { "type": "string" }, "catalog_top_i18n_key": { "type": "string" }, "catalog_top_term": { "type": "string" }, "check_message": { "description": "状态详情", "type": "string" }, "connection_status": { "description": "online/offline/unknown/checking", "type": "string" }, "engine_family": { "type": "string" }, "id": { "description": "前端期待 id", "type": "integer" }, "last_check_at": { "description": "最后检测时间", "type": "string" }, "lifecycle_state": { "description": "引擎生命周期:active/deleting/deleted/delete_failed", "type": "string" }, "name": { "description": "前端期待 name", "type": "string" }, "resource_type": { "type": "string" }, "scanned_at": { "type": "string" }, "scanned_catalog_nodes": { "type": "integer" }, "total_catalog_nodes": { "type": "integer" }, "unscanned_catalog_nodes": { "type": "integer" } } }, "github_com_addp_meta_internal_models.ScanExecutionContext": { "type": "object", "properties": { "engine_id": { "type": "integer" }, "scan_depth": { "type": "string" } } }, "github_com_addp_meta_internal_models.ScanExecutionListResponse": { "type": "object", "properties": { "items": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_meta_internal_models.ScanExecutionResponse" } }, "page": { "type": "integer" }, "page_size": { "type": "integer" }, "total": { "type": "integer" }, "total_pages": { "type": "integer" } } }, "github_com_addp_meta_internal_models.ScanExecutionResponse": { "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" }, "diagnostics_truncated": { "type": "boolean" }, "error_details": { "$ref": "#/definitions/github_com_addp_common_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/github_com_addp_common_models.JSONMap" }, "module": { "type": "string" }, "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" }, "scan_context": { "$ref": "#/definitions/github_com_addp_meta_internal_models.ScanExecutionContext" }, "scan_progress": { "$ref": "#/definitions/github_com_addp_meta_internal_models.ScanProgress" }, "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" }, "tenant_id": { "type": "integer" }, "trigger_type": { "type": "string" }, "triggered_by": { "type": "integer" }, "updated_at": { "type": "string" } } }, "github_com_addp_meta_internal_models.ScanProgress": { "type": "object", "properties": { "current_bytes_read": { "type": "integer" }, "current_bytes_total": { "type": "integer" }, "current_path": { "type": "string" }, "current_range_bytes_read": { "type": "integer" }, "current_ranges_read": { "type": "integer" }, "directories_discovered": { "type": "integer" }, "files_discovered": { "type": "integer" }, "files_total_known": { "type": "boolean" }, "index_cleanup_completed": { "type": "integer" }, "index_cleanup_failed": { "type": "integer" }, "index_cleanup_total": { "type": "integer" }, "items_completed": { "type": "integer" }, "items_failed": { "type": "integer" }, "items_planned": { "type": "integer" }, "items_succeeded": { "type": "integer" }, "items_total_known": { "type": "boolean" }, "last_progress_at": { "type": "string" }, "operation": { "type": "string", "enum": [ "listing", "identifying", "enriching", "hashing", "extracting", "saving", "indexing", "cleaning_index" ] }, "phase": { "type": "string", "enum": [ "discovering", "identifying", "processing", "finalizing" ] } } }, "github_com_addp_meta_internal_models.ScanRef": { "type": "object", "properties": { "path": { "type": "string" }, "primary": { "type": "boolean" }, "required": { "type": "boolean" }, "role": { "type": "string" } } }, "github_com_addp_meta_internal_models.ScanRefGroup": { "type": "object", "properties": { "primary": { "type": "string" }, "refs": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_meta_internal_models.ScanRef" } } } }, "github_com_addp_meta_internal_models.ScanRequest": { "type": "object", "properties": { "catalog_paths": { "description": "要扫描的 catalog 路径列表(空则全部)", "type": "array", "items": { "type": "string" } }, "encoding": { "description": "单个 CSV/TSV item 深度刷新编码 | Encoding for a single CSV/TSV item deep refresh", "type": "string", "enum": [ "utf-8", "gbk", "gb18030", "utf-16le", "utf-16be" ] }, "engine_id": { "description": "存储引擎 ID", "type": "integer" }, "force": { "description": "是否强制重新扫描", "type": "boolean" }, "has_header": { "description": "首行是否表头;省略保留已扫描模式 | First record is a header; omit to retain scanned mode", "type": "boolean" }, "item_id": { "description": "要扫描的数据项 ID", "type": "integer" }, "node_id": { "description": "要扫描的节点 ID", "type": "integer" }, "parent_execution_id": { "description": "后台产物扫描的直接父执行 UUID | Direct parent execution UUID for background output scans", "type": "string" }, "ref_groups": { "description": "内容引用组", "type": "array", "items": { "$ref": "#/definitions/github_com_addp_meta_internal_models.ScanRefGroup" } }, "scan_depth": { "description": "basic/deep", "type": "string" }, "schema_change_source": { "description": "已应用结构审批的来源关联 | Applied schema approval source", "allOf": [ { "$ref": "#/definitions/execution.SchemaChangeScanSource" } ] }, "source": { "description": "扫描来源", "type": "string" }, "targets": { "description": "完整且同引擎的 locator;叶子不展开父范围 | Complete same-engine locators; leaves never expand to parents", "type": "array", "items": { "type": "string" } }, "trigger_type": { "description": "manual;空值按 manual 处理", "type": "string" } } }, "github_com_addp_meta_internal_models.ScanResponse": { "type": "object", "properties": { "catalog_nodes_scanned": { "type": "integer" }, "duration_ms": { "type": "integer" }, "extraction": { "$ref": "#/definitions/github_com_addp_meta_internal_models.ExtractionScanStats" }, "fields_scanned": { "type": "integer" }, "items_scanned": { "type": "integer" }, "message": { "type": "string" }, "started_at": { "type": "string" }, "status": { "description": "success/failed", "type": "string" } } }, "github_com_addp_meta_internal_models.ScanTask": { "type": "object", "properties": { "created_at": { "type": "string" }, "created_by": { "type": "integer" }, "deleted_at": { "$ref": "#/definitions/gorm.DeletedAt" }, "description": { "type": "string" }, "enabled": { "type": "boolean" }, "engine_id": { "type": "integer" }, "id": { "type": "integer" }, "last_execution_id": { "type": "string" }, "last_execution_status": { "type": "string" }, "last_run_at": { "type": "string" }, "name": { "type": "string" }, "next_run_at": { "type": "string" }, "owner_module": { "description": "绑定对象所属模块", "type": "string" }, "owner_ref": { "description": "绑定对象在模块内的稳定引用", "type": "string" }, "parameters": { "description": "扫描参数,不表达范围", "allOf": [ { "$ref": "#/definitions/github_com_addp_meta_internal_models.JSONMap" } ] }, "schedule": { "type": "string" }, "scope": { "description": "结构化扫描范围", "allOf": [ { "$ref": "#/definitions/github_com_addp_meta_internal_models.JSONMap" } ] }, "tenant_id": { "type": "integer" }, "updated_at": { "type": "string" }, "updated_by": { "type": "integer" } } }, "github_com_addp_meta_internal_models.ScanTaskUpsertRequest": { "type": "object", "required": [ "engine_id", "name" ], "properties": { "catalog_paths": { "type": "array", "items": { "type": "string" } }, "description": { "type": "string" }, "enabled": { "type": "boolean" }, "engine_id": { "type": "integer" }, "force": { "type": "boolean" }, "name": { "type": "string" }, "scan_depth": { "type": "string" }, "schedule": { "description": "Cron 表达式,空字符串表示手动执行", "type": "string" }, "scope": { "$ref": "#/definitions/github_com_addp_meta_internal_models.JSONMap" } } }, "github_com_addp_meta_internal_models.SpatialMetadataResponse": { "type": "object", "properties": { "crs_definition": { "$ref": "#/definitions/datatype.CRSDefinition" }, "crs_ref": { "type": "string" }, "extent": { "description": "[minLng, minLat, maxLng, maxLat]", "type": "array", "items": { "type": "number" } }, "extent_srid": { "type": "integer" }, "fields": { "type": "array", "items": { "$ref": "#/definitions/datatype.FieldInfo" } }, "geometry_column": { "type": "string" }, "geometry_types": { "description": "几何类型列表,如 [\"MultiPolygon\"]", "type": "array", "items": { "type": "string" } }, "primary_key": { "type": "string" }, "row_count": { "description": "表记录数(从 meta_item.row_count 获取)", "type": "integer" }, "srid": { "type": "integer" } } }, "github_com_addp_meta_internal_service.InspectRequest": { "type": "object", "properties": { "locator": { "type": "string" }, "ref_groups": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_meta_internal_models.ScanRefGroup" } }, "scan_depth": { "type": "string" } } }, "github_com_addp_meta_internal_service.InspectResult": { "type": "object", "properties": { "attributes": { "$ref": "#/definitions/github_com_addp_meta_internal_models.JSONMap" }, "data_type": { "type": "string" }, "format": { "type": "string" }, "full_name": { "type": "string" }, "layout": { "type": "string" }, "name": { "type": "string" } } }, "gorm.DeletedAt": { "type": "object", "properties": { "time": { "type": "string" }, "valid": { "description": "Valid is true if Time is not NULL", "type": "boolean" } } }, "internal_api.taskProviderExecuteRequest": { "type": "object", "properties": { "parameters": { "type": "object", "additionalProperties": true }, "parent_execution_id": { "type": "string" }, "source": { "type": "string" }, "trigger_type": { "type": "string" } } }, "internal_api.taskProviderExecuteResponse": { "type": "object", "properties": { "execution_id": { "type": "string" }, "status": { "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" } } }, "production.Reference": { "type": "object", "properties": { "execution_id": { "type": "string" }, "owner": { "type": "string" }, "result_id": { "type": "string" } } }, "resourcetree.TreeNode": { "type": "object", "properties": { "children": { "description": "子节点", "type": "array", "items": { "$ref": "#/definitions/resourcetree.TreeNode" } }, "hasChildren": { "description": "是否有子节点(用于显示展开图标)", "type": "boolean" }, "icon": { "description": "图标名称", "type": "string" }, "id": { "description": "节点唯一标识(使用 locator 的值)", "type": "string" }, "label": { "description": "显示标签(节点名称)", "type": "string" }, "locator": { "description": "ResourceLocator URI (addp://engine/1/path/public/users?type=table)", "type": "string" }, "metadata": { "description": "展示元数据:Node 使用 node_id/item_count,DataItem 仅使用 item_id;展开仅由显式子级事实决定", "type": "object", "additionalProperties": true }, "type": { "description": "catalog 术语(如 server/schema/table/service/bucket/prefix/root/directory/file/object)", "type": "string" }, "typeLabel": { "description": "类型的 i18n key,如 \"engine.term.schema\"(前端查 i18n 字典展示)", "type": "string" } } }, "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/github_com_addp_common_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/github_com_addp_common_models.JSONMap" }, "module": { "type": "string" }, "outputs": { "$ref": "#/definitions/github_com_addp_common_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" } } }