{ "swagger": "2.0", "info": { "title": "ADDP Service API", "contact": {}, "version": "1.0" }, "host": "localhost:8086", "basePath": "/api/v1/service", "paths": { "/api/gquery/{serviceName}": { "post": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "GraphQueryExecution" ], "summary": "执行图查询服务 | Execute graph query service", "parameters": [ { "type": "string", "description": "服务名称 | Service name", "name": "serviceName", "in": "path", "required": true }, { "description": "执行请求 | Execute request", "name": "request", "in": "body", "schema": { "$ref": "#/definitions/github_com_addp_service_internal_models.GraphQueryExecuteRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/github_com_addp_service_internal_models.GraphQueryResponse" } }, "400": { "description": "Bad Request", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "401": { "description": "Unauthorized", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "404": { "description": "Not Found", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "500": { "description": "Internal Server Error", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "public" } }, "/api/query/{serviceName}/query": { "post": { "description": "保护门禁拒绝返回 403、data_protection_required 和按类型细分的本地化原因及处理建议,不返回原始错误或数据 | Protection refusals return 403, data_protection_required and a typed localized reason with a suggested action, without raw errors or data\nCSV 中缺失字段及空值输出为空单元格,保留实际字符串与非空标量 | CSV encodes missing and null fields as empty cells while preserving literal strings and non-null scalars\nrequire_untransformed 仅用于当前用户的私有 JSON 查询;要求 select、expected_service_id、expected_service_version 和 1 或 2 行首屏。unknown 不交付数据。 | require_untransformed is for private JSON reads by the current user. Requires select, expected_service_id, expected_service_version, and a first page of one or two rows. Unknown delivers no data.", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "QueryExecution" ], "summary": "执行查询服务 | Execute query service", "parameters": [ { "type": "string", "description": "服务名称 | Service name", "name": "serviceName", "in": "path", "required": true }, { "enum": [ "query", "export" ], "type": "string", "default": "query", "description": "查询用途 | Query intent", "name": "X-ADDP-Query-Intent", "in": "header" }, { "description": "结构化查询请求 | Structured query request", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/github_com_addp_service_internal_models.QueryExecutionRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/github_com_addp_service_internal_models.QueryExecutionResult" }, "headers": { "Cache-Control": { "type": "string", "description": "no-store;查询结果及拒绝响应禁止缓存 | no-store; do not cache query results or refusals" } } }, "400": { "description": "Bad Request", "schema": { "type": "object", "additionalProperties": { "type": "string" } }, "headers": { "Cache-Control": { "type": "string", "description": "no-store;查询结果及拒绝响应禁止缓存 | no-store; do not cache query results or refusals" } } }, "401": { "description": "Unauthorized", "schema": { "type": "object", "additionalProperties": { "type": "string" } }, "headers": { "Cache-Control": { "type": "string", "description": "no-store;查询结果及拒绝响应禁止缓存 | no-store; do not cache query results or refusals" } } }, "403": { "description": "Forbidden", "schema": { "type": "object", "additionalProperties": { "type": "string" } }, "headers": { "Cache-Control": { "type": "string", "description": "no-store;查询结果及拒绝响应禁止缓存 | no-store; do not cache query results or refusals" } } }, "404": { "description": "Not Found", "schema": { "type": "object", "additionalProperties": { "type": "string" } }, "headers": { "Cache-Control": { "type": "string", "description": "no-store;查询结果及拒绝响应禁止缓存 | no-store; do not cache query results or refusals" } } }, "409": { "description": "脱敏选择已变更或不适用 | Masking selection changed or unavailable", "schema": { "type": "object", "additionalProperties": { "type": "string" } }, "headers": { "Cache-Control": { "type": "string", "description": "no-store;查询结果及拒绝响应禁止缓存 | no-store; do not cache query results or refusals" } } }, "500": { "description": "Internal Server Error", "schema": { "type": "object", "additionalProperties": { "type": "string" } }, "headers": { "Cache-Control": { "type": "string", "description": "no-store;查询结果及拒绝响应禁止缓存 | no-store; do not cache query results or refusals" } } }, "501": { "description": "REST 查询协议未启用 | REST query protocol is disabled", "schema": { "type": "object", "additionalProperties": { "type": "string" } }, "headers": { "Cache-Control": { "type": "string", "description": "no-store;查询结果及拒绝响应禁止缓存 | no-store; do not cache query results or refusals" } } }, "503": { "description": "查询服务未启用 | Query service is inactive", "schema": { "type": "object", "additionalProperties": { "type": "string" } }, "headers": { "Cache-Control": { "type": "string", "description": "no-store;查询结果及拒绝响应禁止缓存 | no-store; do not cache query results or refusals" } } } }, "x-addp-auth-mode": "public" } }, "/catalog-resources/changes": { "get": { "security": [ { "BearerAuth": [] } ], "description": "按不透明游标返回 QueryService 的最小检索摘要变化,仅供 Catalog 服务消费 | Return QueryService minimal-search-summary changes by opaque cursor for the Catalog service only", "produces": [ "application/json" ], "tags": [ "Catalog Integration" ], "summary": "拉取 QueryService 目录资源变化 | Pull QueryService catalog resource changes", "parameters": [ { "type": "string", "description": "上次成功提交的不透明游标,空值从历史起点开始 | Opaque cursor committed by the consumer; empty starts from the beginning", "name": "after_cursor", "in": "query" }, { "type": "integer", "description": "批大小,默认 200,最大 500 | Batch size, default 200 and maximum 500", "name": "limit", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/github_com_addp_service_internal_models.CatalogResourceChangesResponse" } }, "400": { "description": "无效游标或批大小 | Invalid cursor or batch size", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "401": { "description": "需要认证 | Authentication required", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "403": { "description": "非 Catalog 服务或权限不足 | Catalog service or permission required", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "500": { "description": "读取失败 | Read failed", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "service.catalog.read" ] } }, "/cleanup-executions/{execution_id}/result": { "get": { "security": [ { "BearerAuth": [] } ], "description": "仅第一方 unrestricted 租户用户;同时要求本模块专业结果权限、Cleanup公共读取权限及本人子执行归属。不返回SQL、凭据、对象路径或原始错误。 | First-party unrestricted tenant Users only; requires both professional and public Cleanup read permissions and ownership of the child execution. No SQL, credentials, object paths or raw errors.", "produces": [ "application/json" ], "tags": [ "Cleanup" ], "summary": "获取本模块资源回收专业结果 | Get module cleanup professional result", "parameters": [ { "type": "string", "description": "子执行UUID | Child execution UUID", "name": "execution_id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/cleanup.Result" } }, "400": { "description": "Bad Request", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "401": { "description": "Unauthorized", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "403": { "description": "Forbidden", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "404": { "description": "Not Found", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "409": { "description": "Conflict", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "503": { "description": "Service Unavailable", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "service.cleanup_result.read", "system.cleanup.read" ] } }, "/consumer/api-consumer-services": { "get": { "security": [ { "BearerAuth": [] } ], "produces": [ "application/json" ], "tags": [ "ServiceConsumer" ], "summary": "API 消费方可授权服务列表 | List services grantable to API consumers", "parameters": [ { "type": "string", "description": "搜索词 | Search", "name": "search", "in": "query" }, { "minimum": 1, "type": "integer", "default": 1, "description": "页码 | Page", "name": "page", "in": "query" }, { "maximum": 100, "minimum": 1, "type": "integer", "default": 20, "description": "每页数量 | Page size", "name": "page_size", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/github_com_addp_service_internal_models.ConsumerServiceListResponse" } }, "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" } } }, "500": { "description": "Internal Server Error", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "service.definition.read" ] } }, "/consumer/services": { "get": { "security": [ { "BearerAuth": [] } ], "produces": [ "application/json" ], "tags": [ "ServiceConsumer" ], "summary": "可消费服务列表 | List consumable services", "parameters": [ { "type": "string", "description": "搜索词 | Search", "name": "search", "in": "query" }, { "enum": [ "query", "graph", "tile", "registered" ], "type": "string", "description": "服务类型 | Service type", "name": "service_type", "in": "query" }, { "enum": [ "tabular", "spatial_tabular" ], "type": "string", "description": "输出类型 | Output kind", "name": "output_kind", "in": "query" }, { "minimum": 1, "type": "integer", "default": 1, "description": "页码 | Page", "name": "page", "in": "query" }, { "maximum": 100, "minimum": 1, "type": "integer", "default": 20, "description": "每页数量 | Page size", "name": "page_size", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/github_com_addp_service_internal_models.ConsumerServiceListResponse" } }, "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" } } }, "500": { "description": "Internal Server Error", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "service.data_read.execute" ] } }, "/consumer/services/{service_type}/{service_id}": { "get": { "security": [ { "BearerAuth": [] } ], "description": "指标服务的筛选字段从冻结计划输出投影,筛选只作用于计算结果。| Analytical service filter fields are projected from frozen plan outputs; filters apply only to computed results.", "produces": [ "application/json" ], "tags": [ "ServiceConsumer" ], "summary": "获取服务消费描述 | Get service consumer descriptor", "parameters": [ { "enum": [ "query", "graph", "tile", "registered" ], "type": "string", "description": "服务类型 | Service type", "name": "service_type", "in": "path", "required": true }, { "minimum": 1, "type": "integer", "description": "服务 ID | Service ID", "name": "service_id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/github_com_addp_service_internal_models.ConsumerDescriptor" } }, "400": { "description": "Bad Request", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "401": { "description": "Unauthorized", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "403": { "description": "Forbidden", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "404": { "description": "Not Found", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "500": { "description": "Internal Server Error", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "service.data_read.execute" ] } }, "/data/aggregate": { "post": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "DataService" ], "summary": "聚合查询 | Aggregate query", "parameters": [ { "description": "聚合请求 | Aggregation request", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/github_com_addp_service_internal_models.AggregationRequest" } } ], "responses": { "200": { "description": "聚合结果 | Aggregation result", "schema": { "$ref": "#/definitions/github_com_addp_service_internal_models.AggregationResponse" } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "service.definition.read" ] } }, "/data/query": { "post": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "DataService" ], "summary": "查询数据表 | Query data table", "parameters": [ { "description": "查询请求 | Query request", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/github_com_addp_service_internal_models.DataQueryRequest" } } ], "responses": { "200": { "description": "查询结果 | Query result", "schema": { "$ref": "#/definitions/github_com_addp_service_internal_models.DataQueryResponse" } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "service.definition.read" ] } }, "/data/structure": { "get": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "DataService" ], "summary": "获取表结构 | Get table structure", "parameters": [ { "type": "string", "description": "ResourceLocator,必须指向 table item | ResourceLocator pointing to table item", "name": "locator", "in": "query", "required": true } ], "responses": { "200": { "description": "表结构 | Table structure", "schema": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_service_internal_models.ColumnInfo" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "service.definition.read" ] } }, "/execution-read-scope": { "get": { "security": [ { "BearerAuth": [] } ], "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" } }, "/graph": { "get": { "security": [ { "BearerAuth": [] } ], "produces": [ "application/json" ], "tags": [ "GraphQueryService" ], "summary": "图查询服务列表 | List graph query services", "parameters": [ { "type": "integer", "default": 1, "description": "页码 | Page", "name": "page", "in": "query" }, { "type": "integer", "default": 20, "description": "每页数量 | Page size", "name": "page_size", "in": "query" }, { "type": "string", "description": "搜索词 | Search", "name": "search", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "Internal Server Error", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "service.definition.read" ] }, "post": { "security": [ { "BearerAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "GraphQueryService" ], "summary": "创建图查询服务 | Create graph query service", "parameters": [ { "description": "创建请求 | Create request", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/github_com_addp_service_internal_models.CreateGraphQueryServiceRequest" } } ], "responses": { "201": { "description": "Created", "schema": { "type": "object", "additionalProperties": true } }, "400": { "description": "Bad Request", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "service.definition.create" ] } }, "/graph/{id}": { "get": { "security": [ { "BearerAuth": [] } ], "produces": [ "application/json" ], "tags": [ "GraphQueryService" ], "summary": "获取图查询服务 | Get graph query service", "parameters": [ { "type": "integer", "description": "服务ID | Service ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "type": "object", "additionalProperties": true } }, "404": { "description": "Not Found", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "service.definition.read" ] }, "put": { "security": [ { "BearerAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "GraphQueryService" ], "summary": "更新图查询服务 | Update graph query service", "parameters": [ { "type": "integer", "description": "服务ID | Service ID", "name": "id", "in": "path", "required": true }, { "description": "更新请求 | Update request", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/github_com_addp_service_internal_models.UpdateGraphQueryServiceRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "type": "object", "additionalProperties": true } }, "400": { "description": "Bad Request", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "404": { "description": "Not Found", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "service.definition.update" ] }, "delete": { "security": [ { "BearerAuth": [] } ], "produces": [ "application/json" ], "tags": [ "GraphQueryService" ], "summary": "删除图查询服务 | Delete graph query service", "parameters": [ { "type": "integer", "description": "服务ID | Service ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "404": { "description": "Not Found", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "500": { "description": "Internal Server Error", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "service.definition.delete" ] } }, "/graphs/node-shapes": { "get": { "security": [ { "BearerAuth": [] } ], "produces": [ "application/json" ], "tags": [ "资源能力 | Resource Capabilities" ], "summary": "获取图节点形状 | Get graph node shapes", "parameters": [ { "type": "integer", "description": "引擎ID | Engine ID", "name": "engine_id", "in": "query", "required": true }, { "type": "string", "description": "数据库名 | Database name", "name": "database", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "$ref": "#/definitions/internal_api.graphNodeShapeOption" } } }, "400": { "description": "Bad Request", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "500": { "description": "Internal Server Error", "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": [ "service.definition.read" ] } }, "/ogc/features/{serviceName}": { "get": { "produces": [ "application/json" ], "tags": [ "OGC Features" ], "summary": "OGC API Features Landing Page | OGC API Features Landing Page", "parameters": [ { "type": "string", "description": "服务名称 | Service name", "name": "serviceName", "in": "path", "required": true } ], "responses": { "200": { "description": "Landing Page | Landing Page", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "Unauthorized", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "404": { "description": "Not Found", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "501": { "description": "Not Implemented", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "public" } }, "/ogc/features/{serviceName}/collections": { "get": { "produces": [ "application/json" ], "tags": [ "OGC Features" ], "summary": "OGC API Features Collections | OGC API Features Collections", "parameters": [ { "type": "string", "description": "服务名称 | Service name", "name": "serviceName", "in": "path", "required": true } ], "responses": { "200": { "description": "Collections | Collections", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "Unauthorized", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "404": { "description": "Not Found", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "501": { "description": "Not Implemented", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "public" } }, "/ogc/features/{serviceName}/collections/{collectionId}/items": { "get": { "description": "保护门禁拒绝返回 403 和 data_protection_required,并提供按类型细分的本地化原因及处理建议,不返回数据 | Protection refusals return 403 and data_protection_required with a typed localized reason and suggested action, without data", "produces": [ "application/json" ], "tags": [ "OGC Features" ], "summary": "OGC API Features Items | OGC API Features Items", "parameters": [ { "type": "string", "description": "服务名称 | Service name", "name": "serviceName", "in": "path", "required": true }, { "type": "string", "description": "集合ID | Collection ID", "name": "collectionId", "in": "path", "required": true }, { "type": "integer", "default": 10, "description": "返回数量 | Limit", "name": "limit", "in": "query" }, { "type": "string", "description": "查询游标 | Query cursor", "name": "cursor", "in": "query" }, { "type": "string", "description": "空间范围 | Bounding box", "name": "bbox", "in": "query" } ], "responses": { "200": { "description": "GeoJSON FeatureCollection | GeoJSON FeatureCollection", "schema": { "type": "object", "additionalProperties": true } }, "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": "脱敏选择已变更或不适用 | Masking selection changed or unavailable", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "500": { "description": "Internal Server Error", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "501": { "description": "Not Implemented", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "public" } }, "/ogc/features/{serviceName}/collections/{collectionId}/items/{featureId}": { "get": { "description": "保护门禁拒绝返回 403 和 data_protection_required,并提供按类型细分的本地化原因及处理建议,不返回数据 | Protection refusals return 403 and data_protection_required with a typed localized reason and suggested action, without data", "produces": [ "application/json" ], "tags": [ "OGC Features" ], "summary": "OGC API Features Item | OGC API Features Item", "parameters": [ { "type": "string", "description": "服务名称 | Service name", "name": "serviceName", "in": "path", "required": true }, { "type": "string", "description": "集合ID | Collection ID", "name": "collectionId", "in": "path", "required": true }, { "type": "string", "description": "要素ID | Feature ID", "name": "featureId", "in": "path", "required": true } ], "responses": { "200": { "description": "GeoJSON Feature | GeoJSON Feature", "schema": { "type": "object", "additionalProperties": true } }, "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": "脱敏选择已变更或不适用 | Masking selection changed or unavailable", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "500": { "description": "Internal Server Error", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "501": { "description": "Not Implemented", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "public" } }, "/ogc/features/{serviceName}/conformance": { "get": { "produces": [ "application/json" ], "tags": [ "OGC Features" ], "summary": "OGC API Features Conformance | OGC API Features Conformance", "parameters": [ { "type": "string", "description": "服务名称 | Service name", "name": "serviceName", "in": "path", "required": true } ], "responses": { "200": { "description": "Conformance declaration | Conformance declaration", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "Unauthorized", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "404": { "description": "Not Found", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "501": { "description": "Not Implemented", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "public" } }, "/ogc/tiles/{serviceName}": { "get": { "produces": [ "application/json" ], "tags": [ "OGC Tiles" ], "summary": "OGC Tiles API Landing Page | OGC Tiles API Landing Page", "parameters": [ { "type": "string", "description": "服务名称 | Service name", "name": "serviceName", "in": "path", "required": true } ], "responses": { "200": { "description": "Landing Page | Landing Page", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "需要认证 | Authentication required", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "403": { "description": "无权访问 | Access denied", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "public" } }, "/ogc/tiles/{serviceName}/conformance": { "get": { "produces": [ "application/json" ], "tags": [ "OGC Tiles" ], "summary": "OGC API Conformance | OGC API Conformance", "parameters": [ { "type": "string", "description": "服务名称 | Service name", "name": "serviceName", "in": "path", "required": true } ], "responses": { "200": { "description": "符合性声明 | Conformance declaration", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "需要认证 | Authentication required", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "403": { "description": "无权访问 | Access denied", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "public" } }, "/ogc/tiles/{serviceName}/tileMatrixSets": { "get": { "produces": [ "application/json" ], "tags": [ "OGC Tiles" ], "summary": "获取 Tile Matrix Sets | Get Tile Matrix Sets", "parameters": [ { "type": "string", "description": "服务名称 | Service name", "name": "serviceName", "in": "path", "required": true } ], "responses": { "200": { "description": "瓦片矩阵集列表 | Tile Matrix Set list", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "需要认证 | Authentication required", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "403": { "description": "无权访问 | Access denied", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "public" } }, "/ogc/tiles/{serviceName}/tileMatrixSets/{tileMatrixSetId}": { "get": { "produces": [ "application/json" ], "tags": [ "OGC Tiles" ], "summary": "获取单个 Tile Matrix Set | Get single Tile Matrix Set", "parameters": [ { "type": "string", "description": "服务名称 | Service name", "name": "serviceName", "in": "path", "required": true }, { "type": "string", "description": "瓦片矩阵集 ID | Tile Matrix Set ID", "name": "tileMatrixSetId", "in": "path", "required": true } ], "responses": { "200": { "description": "瓦片矩阵集详情 | Tile Matrix Set details", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "需要认证 | Authentication required", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "403": { "description": "无权访问 | Access denied", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "public" } }, "/ogc/tiles/{serviceName}/tiles": { "get": { "produces": [ "application/json" ], "tags": [ "OGC Tiles" ], "summary": "获取 Tilesets | Get Tilesets", "parameters": [ { "type": "string", "description": "服务名称 | Service name", "name": "serviceName", "in": "path", "required": true } ], "responses": { "200": { "description": "瓦片集列表 | Tileset list", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "需要认证 | Authentication required", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "403": { "description": "无权访问 | Access denied", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "public" } }, "/ogc/tiles/{serviceName}/tiles/{layer}/{tileMatrixSetId}/{tileMatrix}/{tileRow}/{tileCol}": { "get": { "produces": [ "application/vnd.mapbox-vector-tile" ], "tags": [ "OGC Tiles" ], "summary": "获取单个瓦片 | Get single tile", "parameters": [ { "type": "string", "description": "服务名称 | Service name", "name": "serviceName", "in": "path", "required": true }, { "type": "string", "description": "图层名称 | Layer name", "name": "layer", "in": "path", "required": true }, { "type": "string", "description": "瓦片矩阵集 ID | Tile Matrix Set ID", "name": "tileMatrixSetId", "in": "path", "required": true }, { "type": "string", "description": "瓦片矩阵(缩放级别)| Tile matrix (zoom level)", "name": "tileMatrix", "in": "path", "required": true }, { "type": "string", "description": "瓦片行 | Tile row", "name": "tileRow", "in": "path", "required": true }, { "type": "string", "description": "瓦片列 | Tile column", "name": "tileCol", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "type": "file" } }, "401": { "description": "需要认证 | Authentication required", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "403": { "description": "无权访问 | Access denied", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "public" } }, "/query": { "get": { "security": [ { "BearerAuth": [] } ], "produces": [ "application/json" ], "tags": [ "QueryService" ], "summary": "查询服务列表 | List query services", "parameters": [ { "type": "integer", "default": 1, "description": "页码 | Page", "name": "page", "in": "query" }, { "type": "integer", "default": 20, "description": "每页数量 | Limit", "name": "limit", "in": "query" }, { "type": "string", "description": "搜索词 | Search", "name": "search", "in": "query" }, { "minimum": 1, "type": "integer", "description": "指标实现 ID,须与修订 ID 同时提供 | Metric implementation ID, paired with revision ID", "name": "metric_implementation_id", "in": "query" }, { "minimum": 1, "type": "integer", "description": "精确修订 ID,须与实现 ID 同时提供 | Exact revision ID, paired with implementation ID", "name": "metric_revision_id", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "type": "object", "additionalProperties": true } }, "400": { "description": "Bad Request", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "500": { "description": "Internal Server Error", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "service.definition.read" ] }, "post": { "security": [ { "BearerAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "QueryService" ], "summary": "创建查询服务 | Create query service", "parameters": [ { "description": "创建请求 | Create request", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/github_com_addp_service_internal_models.CreateQueryServiceRequest" } } ], "responses": { "201": { "description": "Created", "schema": { "$ref": "#/definitions/github_com_addp_service_internal_models.QueryServiceDTO" } }, "400": { "description": "Bad Request", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "403": { "description": "角色资格或数据保护拒绝 | Role eligibility or data protection refusal", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "409": { "description": "脱敏选择已变更或不适用 | Masking selection changed or unavailable", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "service.definition.create" ] } }, "/query-engines/{id}/sample-query": { "get": { "security": [ { "BearerAuth": [] } ], "produces": [ "application/json" ], "tags": [ "资源能力 | Resource Capabilities" ], "summary": "获取查询服务 SQL 样例 | Get query service SQL sample", "parameters": [ { "type": "integer", "description": "查询引擎ID | Query engine ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "400": { "description": "Bad Request", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "401": { "description": "Unauthorized", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "403": { "description": "Forbidden", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "422": { "description": "Unprocessable Entity", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "500": { "description": "Internal Server Error", "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": [ "service.definition.create", "service.data_read.execute" ] } }, "/query-protection-options": { "post": { "security": [ { "BearerAuth": [] } ], "description": "返回当前第一方用户对原生单表、直接字段单表 SQL 或 PostgreSQL 直接字段两表 JOIN 的候选。SQL 只准备不执行,双表候选按来源列出对应输出列 | Lists options for the current first-party User for native tables, direct-field single-table SQL, or PostgreSQL two-table joins with direct output fields. Prepares SQL without executing it and lists output columns per joined source field", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "QueryService" ], "summary": "查询字段脱敏可选方式 | List selectable field masking methods", "parameters": [ { "description": "原生表或可证明来源的 SQL | Native table or SQL with provable sources", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/github_com_addp_service_internal_models.QueryProtectionOptionsRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/github_com_addp_service_internal_models.QueryProtectionOptionsResponse" } }, "400": { "description": "Bad Request", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "401": { "description": "Unauthorized", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "403": { "description": "Forbidden", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "409": { "description": "Conflict", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "503": { "description": "Service Unavailable", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "service.definition.read" ] } }, "/query/{id}": { "get": { "security": [ { "BearerAuth": [] } ], "produces": [ "application/json" ], "tags": [ "QueryService" ], "summary": "获取查询服务详情 | Get query service", "parameters": [ { "type": "integer", "description": "服务ID | Service ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/github_com_addp_service_internal_models.QueryServiceDTO" } }, "404": { "description": "Not Found", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "service.definition.read" ] }, "put": { "security": [ { "BearerAuth": [] } ], "description": "仅提交版本和停用状态时保留失效脱敏选择并允许停用,重新启用或任何其他配置更新仍核验当前角色方式 | A version and inactive-status-only update preserves invalid masking choices and permits deactivation; reactivation and all other configuration updates verify current role methods\nnamed_parameter_defaults 仅修改既有 SQL 可选参数默认值,其他参数声明和 SQL 不变。 | named_parameter_defaults changes only existing optional SQL defaults; declarations and SQL remain immutable.", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "QueryService" ], "summary": "更新查询服务 | Update query service", "parameters": [ { "type": "integer", "description": "服务ID | Service ID", "name": "id", "in": "path", "required": true }, { "description": "更新请求 | Update request", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/github_com_addp_service_internal_models.UpdateQueryServiceRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/github_com_addp_service_internal_models.QueryServiceDTO" } }, "400": { "description": "Bad Request", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "403": { "description": "角色资格或数据保护拒绝 | Role eligibility or data protection refusal", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "404": { "description": "Not Found", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "409": { "description": "资源版本冲突或脱敏选择已变更 | Resource version conflict or changed masking selection", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "service.definition.update" ] }, "delete": { "security": [ { "BearerAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "QueryService" ], "summary": "删除查询服务 | Delete query service", "parameters": [ { "type": "integer", "description": "服务ID | Service ID", "name": "id", "in": "path", "required": true }, { "description": "当前资源版本 | Current resource version", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/github_com_addp_service_internal_models.QueryServiceVersionRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "404": { "description": "Not Found", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "409": { "description": "资源版本冲突 | Resource version conflict", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "500": { "description": "Internal Server Error", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "service.definition.delete" ] } }, "/query/{id}/execution-query": { "post": { "security": [ { "BearerAuth": [] } ], "description": "按当前请求及绑定修订编译只读查询文本和参数,不执行数据库查询;停用服务也可查看 | Compile query text and parameters for the current request and bound revision without database execution; inactive services may also be inspected", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "QueryService" ], "summary": "查看指标执行查询 | Preview metric execution query", "parameters": [ { "type": "integer", "description": "服务 ID | Service ID", "name": "id", "in": "path", "required": true }, { "description": "当前测试条件 | Current test request", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/github_com_addp_service_internal_models.QueryExecutionRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/github_com_addp_service_internal_models.ExecutionQueryPreview" } }, "400": { "description": "Bad Request", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "401": { "description": "Unauthorized", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "403": { "description": "Forbidden", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "404": { "description": "Not Found", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "500": { "description": "Internal Server Error", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "service.definition.read" ] } }, "/query/{id}/metric-source": { "put": { "security": [ { "BearerAuth": [] } ], "description": "保留服务身份,校验资源 version 后原子替换计算契约并递增版本 | Preserve service identity and atomically replace the computation contract after checking and incrementing the resource version", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "QueryService" ], "summary": "切换指标来源修订 | Rebind metric source revision", "parameters": [ { "type": "integer", "description": "服务 ID | Service ID", "name": "id", "in": "path", "required": true }, { "description": "指标绑定与当前定义并发版本 | Metric binding and current definition concurrency version", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/github_com_addp_service_internal_models.RebindMetricSourceRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/github_com_addp_service_internal_models.QueryServiceDTO" } }, "400": { "description": "Bad Request", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "403": { "description": "角色资格或数据保护拒绝 | Role eligibility or data protection refusal", "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" } } }, "500": { "description": "Internal Server Error", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "service.definition.update" ] } }, "/query/{id}/refresh-source-snapshot": { "post": { "security": [ { "BearerAuth": [] } ], "description": "用 Meta 当前事实替换表模式查询服务已发布快照 | Replace a table-mode query service snapshot with current Meta facts", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "QueryService" ], "summary": "刷新查询服务依赖快照 | Refresh query service dependency snapshot", "parameters": [ { "type": "integer", "description": "服务ID | Service ID", "name": "id", "in": "path", "required": true }, { "description": "当前资源版本 | Current resource version", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/github_com_addp_service_internal_models.QueryServiceVersionRequest" } } ], "responses": { "200": { "description": "刷新后的查询服务 | Refreshed query service", "schema": { "$ref": "#/definitions/github_com_addp_service_internal_models.QueryServiceDTO" } }, "400": { "description": "请求错误 | Bad request", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "403": { "description": "角色资格或数据保护拒绝 | Role eligibility or data protection refusal", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "404": { "description": "服务不存在 | Service not found", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "409": { "description": "资源版本冲突或脱敏选择已变更 | Resource version conflict or changed masking selection", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "500": { "description": "刷新失败 | Refresh failed", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "service.definition.update" ] } }, "/query/{id}/source-snapshot-diff": { "get": { "security": [ { "BearerAuth": [] } ], "description": "仅在显式管理动作中读取 Meta 当前事实并与已发布快照比较 | Read current Meta facts only during an explicit management action and compare them with the published snapshot", "produces": [ "application/json" ], "tags": [ "QueryService" ], "summary": "检查查询服务依赖快照 | Check query service dependency snapshot", "parameters": [ { "type": "integer", "description": "服务ID | Service ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "快照差异 | Snapshot diff", "schema": { "$ref": "#/definitions/github_com_addp_service_internal_models.QueryServiceSnapshotDiff" } }, "400": { "description": "请求错误 | Bad request", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "404": { "description": "服务不存在 | Service not found", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "500": { "description": "检查失败 | Check failed", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "service.definition.read" ] } }, "/registered": { "get": { "security": [ { "BearerAuth": [] } ], "produces": [ "application/json" ], "tags": [ "RegisteredService" ], "summary": "注册服务列表 | List registered services", "parameters": [ { "type": "integer", "default": 1, "description": "页码 | Page", "name": "page", "in": "query" }, { "type": "integer", "default": 20, "description": "每页数量 | Limit", "name": "limit", "in": "query" }, { "type": "string", "description": "搜索词 | Search", "name": "search", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "Unauthorized", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "500": { "description": "Internal Server Error", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "service.external_registration.read" ] }, "post": { "security": [ { "BearerAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "RegisteredService" ], "summary": "创建注册服务 | Create registered service", "parameters": [ { "description": "创建请求 | Create request", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/github_com_addp_service_internal_models.CreateRegisteredServiceRequest" } } ], "responses": { "201": { "description": "Created", "schema": { "$ref": "#/definitions/github_com_addp_service_internal_models.RegisteredServiceDTO" } }, "400": { "description": "Bad Request", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "401": { "description": "Unauthorized", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "service.external_registration.create" ] } }, "/registered/{id}": { "get": { "security": [ { "BearerAuth": [] } ], "produces": [ "application/json" ], "tags": [ "RegisteredService" ], "summary": "获取注册服务详情 | Get registered service", "parameters": [ { "type": "integer", "description": "服务ID | Service ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/github_com_addp_service_internal_models.RegisteredServiceDTO" } }, "400": { "description": "Bad Request", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "404": { "description": "Not Found", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "service.external_registration.read" ] }, "put": { "security": [ { "BearerAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "RegisteredService" ], "summary": "更新注册服务 | Update registered service", "parameters": [ { "type": "integer", "description": "服务ID | Service ID", "name": "id", "in": "path", "required": true }, { "description": "更新请求 | Update request", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/github_com_addp_service_internal_models.UpdateRegisteredServiceRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/github_com_addp_service_internal_models.RegisteredServiceDTO" } }, "400": { "description": "Bad Request", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "404": { "description": "Not Found", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "service.external_registration.update" ] }, "delete": { "security": [ { "BearerAuth": [] } ], "produces": [ "application/json" ], "tags": [ "RegisteredService" ], "summary": "删除注册服务 | Delete registered service", "parameters": [ { "type": "integer", "description": "服务ID | Service ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "400": { "description": "Bad Request", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "404": { "description": "Not Found", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "500": { "description": "Internal Server Error", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "service.external_registration.delete" ] } }, "/registered/{id}/health": { "post": { "security": [ { "BearerAuth": [] } ], "produces": [ "application/json" ], "tags": [ "RegisteredService" ], "summary": "检查注册服务健康状态 | Check registered service health", "parameters": [ { "type": "integer", "description": "服务ID | Service ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/github_com_addp_service_internal_models.HealthCheckResult" } }, "400": { "description": "Bad Request", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "404": { "description": "Not Found", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "500": { "description": "Internal Server Error", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "service.external_registration.read" ] } }, "/registered/{id}/refresh": { "post": { "security": [ { "BearerAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "RegisteredService" ], "summary": "刷新注册服务元数据 | Refresh registered service metadata", "parameters": [ { "type": "integer", "description": "服务ID | Service ID", "name": "id", "in": "path", "required": true }, { "description": "刷新请求 | Refresh request", "name": "request", "in": "body", "schema": { "$ref": "#/definitions/github_com_addp_service_internal_models.RefreshMetadataRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "400": { "description": "Bad Request", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "404": { "description": "Not Found", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "500": { "description": "Internal Server Error", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "service.external_registration.update" ] } }, "/runtime/catalog-references/resolve": { "post": { "security": [ { "BearerAuth": [] } ], "description": "按请求顺序动态解析 1 到 200 个 QueryService 引用;跨 Tenant 与不存在统一 found=false,仅供 Catalog 服务消费 | Dynamically resolve 1 to 200 QueryService references in request order; cross-tenant and missing references both return found=false; Catalog service only", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Catalog Integration" ], "summary": "解析 QueryService 目录引用 | Resolve QueryService catalog references", "parameters": [ { "description": "QueryService 目录引用 | QueryService catalog references", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/github_com_addp_service_internal_models.ResolveCatalogReferencesRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/github_com_addp_service_internal_models.ResolveCatalogReferencesResponse" } }, "400": { "description": "请求无效 | Invalid request", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "401": { "description": "需要认证 | Authentication required", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "403": { "description": "非 Catalog 服务或权限不足 | Catalog service or permission required", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "500": { "description": "解析失败 | Resolution failed", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "service.catalog.read" ] } }, "/runtime/ontology-facts/{service_name}": { "post": { "security": [ { "BearerAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "QueryService" ], "summary": "读取已授权的单记录规则事实 | Read authorized single-record rule facts", "parameters": [ { "type": "string", "description": "固定查询服务名称 | Pinned query service name", "name": "service_name", "in": "path", "required": true }, { "description": "已发布规则的单记录绑定 | Single-record binding from a published rule", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/authorization.OntologyRuleFactRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/github_com_addp_service_internal_models.QueryExecutionResult" } }, "400": { "description": "Bad Request", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "401": { "description": "Unauthorized", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "403": { "description": "Forbidden", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "409": { "description": "Conflict", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "503": { "description": "Service Unavailable", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "service.ontology_fact.read" ] } }, "/settings/runtime-policy": { "get": { "security": [ { "BearerAuth": [] } ], "produces": [ "application/json" ], "tags": [ "配置管理 | Configuration Management" ], "summary": "获取服务运行策略 | Get service runtime policy", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/github_com_addp_service_internal_service.RuntimePolicyResponse" } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "service.configuration.read" ] }, "put": { "security": [ { "BearerAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "配置管理 | Configuration Management" ], "summary": "更新服务运行策略 | Update service runtime policy", "parameters": [ { "description": "服务运行策略 | Service runtime policy", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/github_com_addp_service_internal_service.UpdateRuntimePolicyInput" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/github_com_addp_service_internal_service.RuntimePolicyResponse" } }, "409": { "description": "Conflict", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "service.configuration.update" ] } }, "/sql/output-contract": { "post": { "security": [ { "BearerAuth": [] } ], "description": "普通 SQL 的驱动未报告可空性时,输出字段标为可空。 | For direct SQL, output fields are marked nullable when the driver does not report nullability.", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "资源能力 | Resource Capabilities" ], "summary": "获取 SQL 输出契约 | Get SQL output contract", "parameters": [ { "description": "SQL 输出契约请求 | SQL output contract request", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/github_com_addp_service_internal_models.SQLQueryOutputContractRequest" } } ], "responses": { "200": { "description": "输出契约 | Output contract", "schema": { "$ref": "#/definitions/github_com_addp_service_internal_models.QueryServiceOutputContract" } }, "400": { "description": "请求错误 | Bad request", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "500": { "description": "检测失败 | Detection failed", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "service.definition.read" ] } }, "/tile": { "get": { "produces": [ "application/json" ], "tags": [ "TileService" ], "summary": "列出瓦片服务 | List tile services", "parameters": [ { "type": "integer", "default": 0, "description": "偏移量 | Offset", "name": "offset", "in": "query" }, { "type": "integer", "default": 20, "description": "限制数量 | Limit", "name": "limit", "in": "query" } ], "responses": { "200": { "description": "瓦片服务列表 | Tile service list", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "service.definition.read" ] }, "post": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "TileService" ], "summary": "创建瓦片服务 | Create tile service", "parameters": [ { "description": "创建瓦片服务请求 | Create tile service request", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/github_com_addp_service_internal_models.CreateTileServiceRequest" } } ], "responses": { "201": { "description": "已创建的瓦片服务 | Created tile service", "schema": { "$ref": "#/definitions/github_com_addp_service_internal_models.TileServiceDTO" } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "service.definition.create" ] } }, "/tile-layers/{serviceId}": { "get": { "produces": [ "application/json" ], "tags": [ "TileService" ], "summary": "列出图层 | List layers", "parameters": [ { "type": "integer", "description": "服务 ID | Service ID", "name": "serviceId", "in": "path", "required": true } ], "responses": { "200": { "description": "图层列表 | Layer list", "schema": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_service_internal_models.TileServiceLayerDTO" } } }, "404": { "description": "当前租户中服务不存在 | Service not found in current tenant", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "service.definition.read" ] }, "post": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "TileService" ], "summary": "添加图层 | Add layer", "parameters": [ { "type": "integer", "description": "服务 ID | Service ID", "name": "serviceId", "in": "path", "required": true }, { "description": "创建图层请求 | Create layer request", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/github_com_addp_service_internal_models.CreateTileLayerRequest" } } ], "responses": { "201": { "description": "已创建的图层 | Created layer", "schema": { "$ref": "#/definitions/github_com_addp_service_internal_models.TileServiceLayerDTO" } }, "404": { "description": "当前租户中服务不存在 | Service not found in current tenant", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "service.definition.update" ] } }, "/tile-layers/{serviceId}/{layerId}": { "get": { "produces": [ "application/json" ], "tags": [ "TileService" ], "summary": "获取图层详情 | Get layer details", "parameters": [ { "type": "integer", "description": "服务 ID | Service ID", "name": "serviceId", "in": "path", "required": true }, { "type": "integer", "description": "图层 ID | Layer ID", "name": "layerId", "in": "path", "required": true } ], "responses": { "200": { "description": "图层详情 | Layer details", "schema": { "$ref": "#/definitions/github_com_addp_service_internal_models.TileServiceLayerDTO" } }, "404": { "description": "当前租户中图层不存在 | Layer not found in current tenant", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "service.definition.read" ] }, "put": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "TileService" ], "summary": "更新图层 | Update layer", "parameters": [ { "type": "integer", "description": "服务 ID | Service ID", "name": "serviceId", "in": "path", "required": true }, { "type": "integer", "description": "图层 ID | Layer ID", "name": "layerId", "in": "path", "required": true }, { "description": "更新图层请求 | Update layer request", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/github_com_addp_service_internal_models.UpdateTileLayerRequest" } } ], "responses": { "200": { "description": "已更新的图层 | Updated layer", "schema": { "$ref": "#/definitions/github_com_addp_service_internal_models.TileServiceLayerDTO" } }, "404": { "description": "当前租户中图层不存在 | Layer not found in current tenant", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "service.definition.update" ] }, "delete": { "produces": [ "application/json" ], "tags": [ "TileService" ], "summary": "删除图层 | Delete layer", "parameters": [ { "type": "integer", "description": "服务 ID | Service ID", "name": "serviceId", "in": "path", "required": true }, { "type": "integer", "description": "图层 ID | Layer ID", "name": "layerId", "in": "path", "required": true } ], "responses": { "204": { "description": "删除成功 | Deleted successfully" }, "404": { "description": "当前租户中图层不存在 | Layer not found in current tenant", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "service.definition.update" ] } }, "/tile/by-name/{serviceName}": { "get": { "produces": [ "application/json" ], "tags": [ "TileService" ], "summary": "根据名称获取瓦片服务 | Get tile service by name", "parameters": [ { "type": "string", "description": "服务名称 | Service name", "name": "serviceName", "in": "path", "required": true } ], "responses": { "200": { "description": "瓦片服务详情 | Tile service details", "schema": { "$ref": "#/definitions/github_com_addp_service_internal_models.TileServiceDTO" } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "service.definition.read" ] } }, "/tile/search": { "get": { "produces": [ "application/json" ], "tags": [ "TileService" ], "summary": "搜索瓦片服务 | Search tile services", "parameters": [ { "type": "string", "description": "搜索关键词 | Search keyword", "name": "keyword", "in": "query", "required": true }, { "type": "integer", "default": 0, "description": "偏移量 | Offset", "name": "offset", "in": "query" }, { "type": "integer", "default": 20, "description": "限制数量 | Limit", "name": "limit", "in": "query" } ], "responses": { "200": { "description": "搜索结果 | Search results", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "service.definition.read" ] } }, "/tile/{id}": { "get": { "produces": [ "application/json" ], "tags": [ "TileService" ], "summary": "获取瓦片服务详情 | Get tile service details", "parameters": [ { "type": "integer", "description": "服务 ID | Service ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "瓦片服务详情 | Tile service details", "schema": { "$ref": "#/definitions/github_com_addp_service_internal_models.TileServiceDTO" } }, "404": { "description": "当前租户中服务不存在 | Service not found in current tenant", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "service.definition.read" ] }, "put": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "TileService" ], "summary": "更新瓦片服务 | Update tile service", "parameters": [ { "type": "integer", "description": "服务 ID | Service ID", "name": "id", "in": "path", "required": true }, { "description": "更新瓦片服务请求 | Update tile service request", "name": "body", "in": "body", "required": true, "schema": { "$ref": "#/definitions/github_com_addp_service_internal_models.UpdateTileServiceRequest" } } ], "responses": { "200": { "description": "已更新的瓦片服务 | Updated tile service", "schema": { "$ref": "#/definitions/github_com_addp_service_internal_models.TileServiceDTO" } }, "404": { "description": "当前租户中服务不存在 | Service not found in current tenant", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "service.definition.update" ] }, "delete": { "produces": [ "application/json" ], "tags": [ "TileService" ], "summary": "删除瓦片服务 | Delete tile service", "parameters": [ { "type": "integer", "description": "服务 ID | Service ID", "name": "id", "in": "path", "required": true } ], "responses": { "204": { "description": "删除成功 | Deleted successfully" }, "404": { "description": "当前租户中服务不存在 | Service not found in current tenant", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "service.definition.delete" ] } }, "/tiles/{serviceName}/{layerName}/{z}/{x}/{y}.{format}": { "get": { "produces": [ "application/vnd.mapbox-vector-tile", "image/png", "image/jpeg" ], "tags": [ "Tiles" ], "summary": "获取 XYZ 瓦片 | Get XYZ tile", "parameters": [ { "type": "string", "description": "服务名称 | Service name", "name": "serviceName", "in": "path", "required": true }, { "type": "string", "description": "图层名称 | Layer name", "name": "layerName", "in": "path", "required": true }, { "type": "integer", "description": "缩放级别 | Zoom level", "name": "z", "in": "path", "required": true }, { "type": "integer", "description": "瓦片 X 坐标 | Tile X coordinate", "name": "x", "in": "path", "required": true }, { "type": "integer", "description": "瓦片 Y 坐标 | Tile Y coordinate", "name": "y", "in": "path", "required": true }, { "type": "string", "description": "瓦片格式 (mvt, png, jpg) | Tile format (mvt, png, jpg)", "name": "format", "in": "path", "required": true } ], "responses": { "200": { "description": "瓦片数据 | Tile data", "schema": { "type": "file" } }, "401": { "description": "需要认证 | Authentication required", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "403": { "description": "无权访问 | Access denied", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } }, "x-addp-auth-mode": "public" } }, "/wmts/{serviceName}": { "get": { "produces": [ "text/xml" ], "tags": [ "WMTS" ], "summary": "获取 WMTS Capabilities | Get WMTS Capabilities", "parameters": [ { "type": "string", "description": "服务名称 | Service name", "name": "serviceName", "in": "path", "required": true }, { "type": "string", "description": "请求类型 (GetCapabilities) | Request type (GetCapabilities)", "name": "request", "in": "query" } ], "responses": { "200": { "description": "WMTS Capabilities XML | WMTS Capabilities XML", "schema": { "$ref": "#/definitions/internal_api.Capabilities" } }, "401": { "description": "需要认证 | Authentication required", "schema": { "$ref": "#/definitions/internal_api.ExceptionReport" } }, "403": { "description": "无权访问 | Access denied", "schema": { "$ref": "#/definitions/internal_api.ExceptionReport" } } }, "x-addp-auth-mode": "public" } } }, "definitions": { "authorization.OntologyRuleCall": { "type": "object", "properties": { "agent_run_id": { "type": "string" }, "evaluation": { "$ref": "#/definitions/authorization.OntologyRuleEvaluation" }, "principal_id": { "type": "string" }, "tool_call_id": { "type": "string" } } }, "authorization.OntologyRuleEvaluation": { "type": "object", "properties": { "activation_version": { "type": "integer" }, "generation": { "type": "string" }, "object_id": { "type": "string" }, "ontology_id": { "type": "string" }, "revision": { "type": "integer" }, "rule_id": { "type": "string" } } }, "authorization.OntologyRuleFactRequest": { "type": "object", "properties": { "call": { "$ref": "#/definitions/authorization.OntologyRuleCall" }, "fields": { "type": "array", "items": { "type": "string" } }, "id_parameter": { "type": "string" }, "service_id": { "type": "integer" }, "service_version": { "type": "string" } } }, "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" } } }, "dataitem.ItemDescriptor": { "type": "object", "properties": { "dataType": { "$ref": "#/definitions/datatype.DataType" }, "format": { "type": "string" }, "layout": { "$ref": "#/definitions/format.Layout" }, "physicalPath": { "type": "string" }, "primaryContentPath": { "type": "string" }, "refs": { "type": "array", "items": { "$ref": "#/definitions/dataitem.ItemRef" } }, "scopePath": { "type": "string" }, "sizeBytes": { "type": "integer", "format": "int64" }, "storageBucket": { "type": "string" }, "storageName": { "type": "string" }, "storagePath": { "type": "string" } } }, "dataitem.ItemRef": { "type": "object", "properties": { "extension": { "type": "string" }, "path": { "type": "string" }, "primary": { "type": "boolean" }, "required": { "type": "boolean" }, "role": { "type": "string" } } }, "dataprotection.ResourceReference": { "type": "object", "properties": { "component_key": { "type": "string" }, "owner_module": { "type": "string" }, "resource_identity": { "type": "string" }, "resource_type": { "type": "string" } } }, "dataprotection.RoleOptionCandidate": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" } } }, "datatype.CRSDefinition": { "type": "object", "properties": { "definition": { "type": "string" }, "definition_encoding": { "type": "string" }, "id": { "type": "string" }, "source": { "type": "string" } } }, "datatype.CaptureLocation": { "type": "object", "properties": { "datum": { "type": "string" }, "latitude": { "type": "number" }, "longitude": { "type": "number" }, "srid": { "type": "integer" } } }, "datatype.DataType": { "type": "string", "enum": [ "unknown", "key_value", "table", "document", "media", "container", "graph", "cad", "model_3d", "point_cloud", "gaussian_splat" ], "x-enum-varnames": [ "Unknown", "KeyValue", "Table", "Document", "Media", "Container", "Graph", "CAD", "Model3D", "PointCloud", "GaussianSplat" ] }, "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.GeometryColumnInfo": { "type": "object", "properties": { "crs_ref": { "type": "string" }, "dimension": { "type": "integer" }, "geometry_type": { "type": "string" }, "name": { "type": "string" }, "nullable": { "type": "boolean" }, "srid": { "type": "integer" } } }, "datatype.SpatialInfo": { "type": "object", "properties": { "capture_location": { "$ref": "#/definitions/datatype.CaptureLocation" }, "crs_definitions": { "type": "array", "items": { "$ref": "#/definitions/datatype.CRSDefinition" } }, "crs_ref": { "type": "string" }, "extent": { "type": "array", "items": { "type": "number" } }, "geometry_columns": { "type": "array", "items": { "$ref": "#/definitions/datatype.GeometryColumnInfo" } }, "has_spatial_index": { "type": "boolean" }, "index_name": { "type": "string" }, "primary_geometry_column": { "type": "string" }, "srid": { "type": "integer" } } }, "datatype.TableInfo": { "type": "object", "properties": { "comment": { "type": "string" }, "created_at": { "type": "string" }, "estimated_row_count": { "type": "integer" }, "fields": { "type": "array", "items": { "$ref": "#/definitions/datatype.FieldInfo" } }, "kind": { "type": "string" }, "name": { "type": "string" }, "native": { "type": "object", "additionalProperties": true }, "primary_key": { "type": "array", "items": { "type": "string" } }, "row_count": { "type": "integer" }, "size_bytes": { "type": "integer" }, "updated_at": { "type": "string" } } }, "datatype.TemporalInfo": { "type": "object", "properties": { "timezone": { "type": "string" }, "unit": { "type": "string" } } }, "encoding_xml.Name": { "type": "object", "properties": { "local": { "type": "string" }, "space": { "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.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" } } }, "format.Layout": { "type": "string", "enum": [ "single", "multi", "whole" ], "x-enum-varnames": [ "LayoutSingle", "LayoutMulti", "LayoutWhole" ] }, "github_com_addp_service_internal_models.AggregateColumn": { "type": "object", "required": [ "column", "function" ], "properties": { "alias": { "description": "别名", "type": "string" }, "column": { "description": "列名", "type": "string" }, "function": { "description": "聚合函数", "type": "string", "enum": [ "count", "sum", "avg", "min", "max" ] } } }, "github_com_addp_service_internal_models.AggregationRequest": { "type": "object", "required": [ "locator" ], "properties": { "aggregates": { "description": "聚合列", "type": "array", "items": { "$ref": "#/definitions/github_com_addp_service_internal_models.AggregateColumn" } }, "filter": { "description": "WHERE 条件", "type": "string" }, "group_by": { "description": "分组字段", "type": "array", "items": { "type": "string" } }, "having": { "description": "HAVING 条件", "type": "string" }, "limit": { "description": "限制结果数", "type": "integer" }, "locator": { "type": "string" }, "order_by": { "description": "排序", "type": "string" } } }, "github_com_addp_service_internal_models.AggregationResponse": { "type": "object", "properties": { "columns": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_service_internal_models.ColumnInfo" } }, "count": { "type": "integer" }, "rows": { "type": "array", "items": { "type": "array", "items": {} } } } }, "github_com_addp_service_internal_models.CatalogReference": { "type": "object", "required": [ "source_identity", "source_type" ], "properties": { "source_identity": { "type": "string" }, "source_type": { "type": "string" } } }, "github_com_addp_service_internal_models.CatalogReferenceResolution": { "type": "object", "properties": { "detail_path": { "type": "string" }, "found": { "type": "boolean" }, "source_identity": { "type": "string" }, "source_type": { "type": "string" }, "status": { "type": "string" }, "summary": { "type": "object", "additionalProperties": {} }, "version": { "type": "integer" } } }, "github_com_addp_service_internal_models.CatalogResourceChange": { "type": "object", "properties": { "change_id": { "type": "string" }, "observed_at": { "type": "string" }, "operation": { "type": "string" }, "snapshot": { "type": "object", "additionalProperties": {} }, "source_identity": { "type": "string" }, "source_type": { "type": "string" }, "source_version": { "type": "string" } } }, "github_com_addp_service_internal_models.CatalogResourceChangesResponse": { "type": "object", "properties": { "changes": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_service_internal_models.CatalogResourceChange" } }, "has_more": { "type": "boolean" }, "next_cursor": { "type": "string" }, "schema_version": { "type": "string" } } }, "github_com_addp_service_internal_models.ColumnInfo": { "type": "object", "properties": { "name": { "type": "string" }, "nullable": { "type": "boolean" }, "type": { "type": "string" } } }, "github_com_addp_service_internal_models.ConsumerDescriptor": { "type": "object", "properties": { "access_mode": { "type": "string", "enum": [ "public", "private" ] }, "contract_fingerprint": { "type": "string" }, "description": { "type": "string" }, "input_contract": { "$ref": "#/definitions/github_com_addp_service_internal_models.StructuredQueryInputContract" }, "operations": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_service_internal_models.ConsumerOperation" } }, "output_contract": { "$ref": "#/definitions/github_com_addp_service_internal_models.TabularOutputContract" }, "ref": { "$ref": "#/definitions/github_com_addp_service_internal_models.ConsumerServiceReference" }, "schema_version": { "type": "string" }, "status": { "type": "string", "enum": [ "active" ] }, "title": { "type": "string" } } }, "github_com_addp_service_internal_models.ConsumerFilterContract": { "type": "object", "properties": { "combinators": { "type": "array", "items": { "type": "string" } }, "max_depth": { "type": "integer" }, "max_in_values": { "type": "integer" }, "max_nodes": { "type": "integer" } } }, "github_com_addp_service_internal_models.ConsumerGeometryField": { "type": "object", "properties": { "crs_ref": { "type": "string" }, "dimension": { "type": "integer" }, "geometry_type": { "type": "string" }, "name": { "type": "string" }, "srid": { "type": "integer" } } }, "github_com_addp_service_internal_models.ConsumerNamedParameter": { "type": "object", "properties": { "default": { "type": "object" }, "description": { "type": "string" }, "name": { "type": "string" }, "options": { "type": "array", "items": { "$ref": "#/definitions/query.ParameterOption" } }, "presentation": { "$ref": "#/definitions/query.ParameterPresentation" }, "required": { "type": "boolean" }, "type": { "$ref": "#/definitions/datatype.FieldType" } } }, "github_com_addp_service_internal_models.ConsumerOperation": { "type": "object", "properties": { "input_kind": { "type": "string", "enum": [ "structured_query" ] }, "key": { "type": "string", "enum": [ "query" ] }, "method": { "type": "string", "enum": [ "POST" ] }, "output_kind": { "type": "string", "enum": [ "tabular", "spatial_tabular" ] }, "path": { "type": "string" } } }, "github_com_addp_service_internal_models.ConsumerOrderContract": { "type": "object", "properties": { "directions": { "type": "array", "items": { "type": "string" } }, "stable_key": { "type": "array", "items": { "type": "string" } } } }, "github_com_addp_service_internal_models.ConsumerOutputField": { "type": "object", "properties": { "comment": { "type": "string" }, "element_type": { "$ref": "#/definitions/datatype.FieldType" }, "name": { "type": "string" }, "nullable": { "type": "boolean" }, "type": { "$ref": "#/definitions/datatype.FieldType" } } }, "github_com_addp_service_internal_models.ConsumerPageContract": { "type": "object", "properties": { "default_limit": { "type": "integer" }, "kind": { "type": "string", "enum": [ "cursor" ] }, "max_limit": { "type": "integer" } } }, "github_com_addp_service_internal_models.ConsumerQueryField": { "type": "object", "properties": { "element_type": { "$ref": "#/definitions/datatype.FieldType" }, "filterable": { "type": "boolean" }, "name": { "type": "string" }, "nullable": { "type": "boolean" }, "operators": { "type": "array", "items": { "type": "string" } }, "selectable": { "type": "boolean" }, "sortable": { "type": "boolean" }, "type": { "$ref": "#/definitions/datatype.FieldType" } } }, "github_com_addp_service_internal_models.ConsumerQueryIntent": { "type": "object", "properties": { "allowed_values": { "type": "array", "items": { "type": "string" } }, "default_value": { "type": "string" }, "header": { "type": "string" } } }, "github_com_addp_service_internal_models.ConsumerServiceListResponse": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_service_internal_models.ConsumerServiceSummary" } }, "page": { "type": "integer" }, "page_size": { "type": "integer" }, "total": { "type": "integer" }, "total_pages": { "type": "integer" } } }, "github_com_addp_service_internal_models.ConsumerServiceReference": { "type": "object", "properties": { "service_id": { "type": "integer" }, "service_type": { "type": "string", "enum": [ "query", "graph", "tile", "registered" ] } } }, "github_com_addp_service_internal_models.ConsumerServiceSummary": { "type": "object", "properties": { "access_mode": { "type": "string", "enum": [ "public", "private" ] }, "contract_fingerprint": { "type": "string" }, "description": { "type": "string" }, "output_kind": { "type": "string", "enum": [ "tabular", "spatial_tabular" ] }, "ref": { "$ref": "#/definitions/github_com_addp_service_internal_models.ConsumerServiceReference" }, "title": { "type": "string" } } }, "github_com_addp_service_internal_models.ConsumerSpatialContract": { "type": "object", "properties": { "crs_ref": { "type": "string" }, "geometry_fields": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_service_internal_models.ConsumerGeometryField" } }, "primary_geometry_field": { "type": "string" }, "srid": { "type": "integer" } } }, "github_com_addp_service_internal_models.CreateGraphQueryServiceRequest": { "type": "object", "required": [ "config_type", "engine_id", "service_name", "title" ], "properties": { "config_type": { "type": "string", "enum": [ "shape", "cypher" ] }, "cypher_query": { "type": "string" }, "data_config": { "type": "object", "additionalProperties": true }, "database_name": { "type": "string" }, "description": { "type": "string" }, "engine_id": { "type": "integer" }, "keywords": { "type": "array", "items": { "type": "string" } }, "max_records": { "type": "integer", "maximum": 5000, "minimum": 1 }, "node_labels": { "type": "array", "items": { "type": "string" } }, "node_shape": { "type": "string" }, "parameters": { "description": "cypher 模式下的参数定义(可选,不传则自动从 Cypher 中提取)", "type": "array", "items": { "$ref": "#/definitions/github_com_addp_service_internal_models.ParameterDef" } }, "public_access": { "type": "boolean" }, "service_name": { "type": "string" }, "title": { "type": "string" } } }, "github_com_addp_service_internal_models.CreateQueryServiceRequest": { "type": "object", "required": [ "config_type", "service_name", "title" ], "properties": { "config_type": { "description": "配置方式(table 或 sql)", "type": "string", "enum": [ "table", "sql", "analytical" ] }, "data_config": { "description": "数据配置。table 模式必须提供带 item_id 的 locator;原生单表可保存 protection_choices 字段身份引用。", "type": "object", "additionalProperties": true }, "description": { "type": "string" }, "engine_id": { "description": "Source Engine 与 Federated Query Runtime 显式互斥或组合,具体约束由 config_type 决定。", "type": "integer" }, "keywords": { "type": "array", "items": { "type": "string" } }, "max_features": { "type": "integer", "maximum": 10000, "minimum": 1 }, "metric_source": { "$ref": "#/definitions/github_com_addp_service_internal_models.MetricSourceRequest" }, "named_parameters": { "description": "SQL 中使用 :name 引用的强类型标量参数。", "type": "array", "items": { "$ref": "#/definitions/github_com_addp_service_internal_models.QueryServiceNamedParameter" } }, "output_contract": { "description": "SQL 模式检测得到的输出契约;快照时间和 hash 由 Service 生成。", "allOf": [ { "$ref": "#/definitions/github_com_addp_service_internal_models.QueryServiceOutputContract" } ] }, "protocols": { "description": "协议配置(可选,使用默认值)", "type": "object", "additionalProperties": true }, "public_access": { "description": "访问控制", "type": "boolean" }, "runtime_engine_id": { "type": "integer" }, "schema_name": { "description": "表配置字段由 data_config.locator 服务端派生,仅作为执行快照返回。", "type": "string" }, "service_name": { "type": "string" }, "sql_query": { "description": "SQL配置字段(config_type='sql'时需要)", "type": "string" }, "table_name": { "type": "string" }, "title": { "type": "string" } } }, "github_com_addp_service_internal_models.CreateRegisteredServiceRequest": { "type": "object", "required": [ "endpoint_url", "service_name", "service_type", "title" ], "properties": { "auth_config": { "type": "object", "additionalProperties": true }, "auth_type": { "description": "认证配置(可选)", "type": "string", "enum": [ "none", "basic", "bearer", "api_key" ] }, "auto_refresh_metadata": { "description": "是否自动刷新元数据", "type": "boolean" }, "description": { "type": "string" }, "endpoint_url": { "description": "服务端点", "type": "string" }, "health_check_url": { "description": "健康检查端点(可选)", "type": "string" }, "keywords": { "type": "array", "items": { "type": "string" } }, "service_name": { "type": "string" }, "service_type": { "description": "服务类型", "type": "string", "enum": [ "wms", "wfs", "wmts", "ogc_api", "xyz", "rest" ] }, "title": { "type": "string" } } }, "github_com_addp_service_internal_models.CreateTileLayerRequest": { "type": "object", "required": [ "layer_config", "layer_name", "layer_type", "title" ], "properties": { "description": { "type": "string" }, "layer_config": { "type": "object", "additionalProperties": true }, "layer_name": { "type": "string" }, "layer_type": { "description": "\"dynamic\" or \"static\"", "type": "string" }, "title": { "type": "string" } } }, "github_com_addp_service_internal_models.CreateTileServiceRequest": { "type": "object", "required": [ "first_layer", "service_name", "title" ], "properties": { "default_srid": { "description": "默认 3857", "type": "integer" }, "description": { "type": "string" }, "first_layer": { "description": "第一个图层(必需)", "allOf": [ { "$ref": "#/definitions/github_com_addp_service_internal_models.CreateTileLayerRequest" } ] }, "keywords": { "type": "array", "items": { "type": "string" } }, "protocols": { "type": "object", "additionalProperties": true }, "public_access": { "type": "boolean" }, "service_name": { "type": "string" }, "title": { "type": "string" } } }, "github_com_addp_service_internal_models.DataQueryRequest": { "type": "object", "required": [ "locator" ], "properties": { "columns": { "description": "指定列,为空表示全部列", "type": "array", "items": { "type": "string" } }, "filter": { "description": "WHERE 条件(需要防 SQL 注入)", "type": "string" }, "geometry": { "description": "是否包含几何字段", "type": "boolean" }, "geometry_type": { "description": "几何输出格式: 'geojson', 'wkt', 'wkb'", "type": "string" }, "locator": { "type": "string" }, "order_by": { "description": "排序字段", "type": "string" }, "page": { "description": "页码(从 1 开始)", "type": "integer" }, "page_size": { "description": "每页大小", "type": "integer" } } }, "github_com_addp_service_internal_models.DataQueryResponse": { "type": "object", "properties": { "columns": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_service_internal_models.ColumnInfo" } }, "has_more": { "type": "boolean" }, "page": { "type": "integer" }, "page_size": { "type": "integer" }, "rows": { "type": "array", "items": { "type": "array", "items": {} } }, "total_count": { "type": "integer" } } }, "github_com_addp_service_internal_models.ExecutionQueryParameter": { "type": "object", "properties": { "name": { "type": "string" }, "type": { "type": "string" }, "value": { "type": "string" } } }, "github_com_addp_service_internal_models.ExecutionQueryPreview": { "type": "object", "properties": { "engine_id": { "type": "integer" }, "engine_name": { "type": "string" }, "engine_type": { "type": "string" }, "implementation_id": { "type": "integer" }, "language": { "type": "string" }, "parameters": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_service_internal_models.ExecutionQueryParameter" } }, "query": { "type": "string" }, "result_kind": { "type": "string" }, "revision_id": { "type": "integer" }, "version": { "type": "integer" } } }, "github_com_addp_service_internal_models.GraphQueryExecuteRequest": { "type": "object", "properties": { "page": { "description": "分页(两种模式均支持)", "type": "integer" }, "page_size": { "type": "integer" }, "parameters": { "description": "Cypher 模式:用户提供的参数值(对应 $paramName 占位符)\nShape 模式:用于过滤的属性条件(属性名 → 值)", "type": "object", "additionalProperties": true } } }, "github_com_addp_service_internal_models.GraphQueryResponse": { "type": "object", "properties": { "columns": { "description": "表格格式(result_type = table | both)", "type": "array", "items": { "type": "string" } }, "graph_data": { "description": "图格式(result_type = graph | both)" }, "has_more": { "type": "boolean" }, "page": { "type": "integer" }, "page_size": { "type": "integer" }, "rows": { "type": "array", "items": { "type": "object", "additionalProperties": true } }, "rows_count": { "description": "通用", "type": "integer" }, "total_count": { "description": "分页(shape 模式提供)", "type": "integer" } } }, "github_com_addp_service_internal_models.HealthCheckResult": { "type": "object", "properties": { "checked_at": { "type": "string" }, "message": { "type": "string" }, "response_time": { "description": "响应时间(毫秒)", "type": "integer" }, "service_id": { "type": "integer" }, "service_name": { "type": "string" }, "status": { "description": "healthy, unhealthy, error", "type": "string" }, "status_code": { "type": "integer" } } }, "github_com_addp_service_internal_models.MetricSourceRequest": { "type": "object", "required": [ "implementation_id", "revision_id" ], "properties": { "implementation_id": { "type": "integer" }, "result_kind": { "type": "string", "enum": [ "details" ] }, "revision_id": { "type": "integer" } } }, "github_com_addp_service_internal_models.MetricSourceSnapshot": { "type": "object", "properties": { "dependency_hash": { "type": "string" }, "execution_plan": { "$ref": "#/definitions/plugin.AnalyticalPlanPackage" }, "implementation_id": { "type": "integer" }, "metric_definition_id": { "type": "integer" }, "metric_definition_revision_id": { "type": "integer" }, "parameter_labels": { "type": "object", "additionalProperties": { "type": "array", "items": { "$ref": "#/definitions/query.ParameterOption" } } }, "parameter_presentation": { "type": "object", "additionalProperties": { "$ref": "#/definitions/query.ParameterPresentation" } }, "result_kind": { "type": "string" }, "revision_id": { "type": "integer" } } }, "github_com_addp_service_internal_models.ParameterDef": { "type": "object", "properties": { "default": {}, "description": { "type": "string" }, "name": { "type": "string" }, "required": { "type": "boolean" }, "type": { "description": "string | integer | float | boolean", "type": "string" } } }, "github_com_addp_service_internal_models.QueryExecutionRequest": { "type": "object", "properties": { "expected_service_id": { "type": "integer" }, "expected_service_version": { "type": "string" }, "filter": { "$ref": "#/definitions/github_com_addp_service_internal_models.QueryFilter" }, "format": { "type": "string", "enum": [ "json", "csv", "geojson" ] }, "order_by": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_service_internal_models.QueryOrder" } }, "page": { "$ref": "#/definitions/github_com_addp_service_internal_models.QueryPageRequest" }, "parameters": { "type": "object" }, "require_untransformed": { "description": "RequireUntransformed 要求确认 select 中的字段未经保护变换。 | Require all selected fields to be free of protection transformations.", "type": "boolean" }, "select": { "type": "array", "items": { "type": "string" } } } }, "github_com_addp_service_internal_models.QueryExecutionResult": { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "object", "additionalProperties": true } }, "fact_status": { "description": "FactStatus 仅用于规则事实读取;unknown 不包含数据。 | Fact-read status; unknown carries no data.", "type": "string", "enum": [ "verified", "unknown" ] }, "page": { "$ref": "#/definitions/github_com_addp_service_internal_models.QueryPageResult" }, "service_version": { "type": "string" } } }, "github_com_addp_service_internal_models.QueryFilter": { "type": "object", "properties": { "and": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_service_internal_models.QueryFilter" } }, "field": { "type": "string" }, "not": { "$ref": "#/definitions/github_com_addp_service_internal_models.QueryFilter" }, "op": { "description": "Op 为已声明的筛选操作;contains 按字面子串区分大小写,无通配符。 | Declared filter operator; contains is a case-sensitive literal substring match without wildcards.", "type": "string", "enum": [ "eq", "ne", "lt", "lte", "gt", "gte", "in", "contains", "is_null", "is_not_null", "bbox_intersects" ] }, "or": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_service_internal_models.QueryFilter" } }, "value": { "type": "object" } } }, "github_com_addp_service_internal_models.QueryOrder": { "type": "object", "properties": { "direction": { "type": "string", "enum": [ "asc", "desc" ] }, "field": { "type": "string" } } }, "github_com_addp_service_internal_models.QueryPageRequest": { "type": "object", "properties": { "cursor": { "type": "string" }, "limit": { "type": "integer", "maximum": 10000, "minimum": 1 } } }, "github_com_addp_service_internal_models.QueryPageResult": { "type": "object", "properties": { "has_more": { "type": "boolean" }, "limit": { "type": "integer" }, "next_cursor": { "type": "string" } } }, "github_com_addp_service_internal_models.QueryProtectionFieldOptions": { "type": "object", "properties": { "assessment_revision": { "type": "integer" }, "component_key": { "type": "string" }, "options": { "type": "array", "items": { "$ref": "#/definitions/dataprotection.RoleOptionCandidate" } }, "output_fields": { "description": "Direct result column names for a two-table JOIN, for display only.", "type": "array", "items": { "type": "string" } }, "policy_id": { "type": "string" }, "policy_revision": { "type": "integer" }, "target": { "$ref": "#/definitions/dataprotection.ResourceReference" } } }, "github_com_addp_service_internal_models.QueryProtectionOptionsRequest": { "type": "object", "properties": { "config_type": { "type": "string" }, "engine_id": { "type": "integer" }, "parameters": { "type": "object" }, "sql": { "type": "string" }, "target_locator": { "type": "string" } } }, "github_com_addp_service_internal_models.QueryProtectionOptionsResponse": { "type": "object", "properties": { "fields": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_service_internal_models.QueryProtectionFieldOptions" } } } }, "github_com_addp_service_internal_models.QueryServiceDTO": { "type": "object", "properties": { "config_type": { "type": "string" }, "created_at": { "type": "string" }, "created_by": { "description": "审计", "type": "integer" }, "data_config": { "description": "配置", "type": "object", "additionalProperties": true }, "description": { "type": "string" }, "endpoints": { "description": "服务端点", "type": "object", "additionalProperties": { "type": "string" } }, "engine_id": { "type": "integer" }, "error_message": { "type": "string" }, "id": { "type": "integer" }, "keywords": { "type": "array", "items": { "type": "string" } }, "max_features": { "type": "integer" }, "named_parameters": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_service_internal_models.QueryServiceNamedParameter" } }, "output_contract": { "$ref": "#/definitions/github_com_addp_service_internal_models.QueryServiceOutputContract" }, "protocols": { "type": "object", "additionalProperties": true }, "public_access": { "description": "访问控制", "type": "boolean" }, "runtime_engine_id": { "type": "integer" }, "schema_name": { "description": "表配置", "type": "string" }, "service_name": { "type": "string" }, "service_version": { "type": "string" }, "sql_query": { "description": "SQL配置", "type": "string" }, "stable_key": { "type": "array", "items": { "type": "string" } }, "status": { "description": "状态", "type": "string" }, "table_name": { "type": "string" }, "tenant_id": { "type": "integer" }, "title": { "type": "string" }, "updated_at": { "type": "string" }, "version": { "type": "integer" } } }, "github_com_addp_service_internal_models.QueryServiceDependencySnapshot": { "type": "object", "properties": { "captured_at": { "type": "string" }, "dependency_hash": { "type": "string" }, "federated_object_tables": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": { "type": "string" } } }, "federated_source_engine_ids": { "type": "array", "items": { "type": "integer" } }, "metric_source": { "$ref": "#/definitions/github_com_addp_service_internal_models.MetricSourceSnapshot" }, "object_table": { "$ref": "#/definitions/dataitem.ItemDescriptor" }, "query_hash": { "type": "string" }, "source": { "$ref": "#/definitions/github_com_addp_service_internal_models.QueryServiceSourceRef" }, "spatial": { "$ref": "#/definitions/datatype.SpatialInfo" }, "table": { "$ref": "#/definitions/datatype.TableInfo" }, "verification_status": { "type": "string" } } }, "github_com_addp_service_internal_models.QueryServiceNamedParameter": { "type": "object", "properties": { "default": { "type": "object" }, "description": { "type": "string" }, "name": { "type": "string" }, "options": { "type": "array", "items": { "$ref": "#/definitions/query.ParameterOption" } }, "presentation": { "$ref": "#/definitions/query.ParameterPresentation" }, "required": { "type": "boolean" }, "type": { "$ref": "#/definitions/datatype.FieldType" } } }, "github_com_addp_service_internal_models.QueryServiceOutputContract": { "type": "object", "properties": { "spatial": { "$ref": "#/definitions/datatype.SpatialInfo" }, "table": { "$ref": "#/definitions/datatype.TableInfo" } } }, "github_com_addp_service_internal_models.QueryServiceSnapshotDiff": { "type": "object", "properties": { "current_dependency_hash": { "type": "string" }, "current_snapshot": { "$ref": "#/definitions/github_com_addp_service_internal_models.QueryServiceDependencySnapshot" }, "object_table_changed": { "type": "boolean" }, "published_dependency_hash": { "type": "string" }, "published_snapshot": { "$ref": "#/definitions/github_com_addp_service_internal_models.QueryServiceDependencySnapshot" }, "service_id": { "type": "integer" }, "source_changed": { "type": "boolean" }, "spatial_changed": { "type": "boolean" }, "status": { "type": "string" }, "table_changed": { "type": "boolean" } } }, "github_com_addp_service_internal_models.QueryServiceSourceRef": { "type": "object", "properties": { "data_updated_at": { "type": "string" }, "item_fingerprint": { "type": "string" }, "item_id": { "type": "integer" }, "scanned_at": { "type": "string" } } }, "github_com_addp_service_internal_models.QueryServiceVersionRequest": { "type": "object", "required": [ "version" ], "properties": { "version": { "type": "integer" } } }, "github_com_addp_service_internal_models.RebindMetricSourceRequest": { "type": "object", "required": [ "metric_source", "version" ], "properties": { "metric_source": { "$ref": "#/definitions/github_com_addp_service_internal_models.MetricSourceRequest" }, "version": { "type": "integer" } } }, "github_com_addp_service_internal_models.RefreshMetadataRequest": { "type": "object", "properties": { "force": { "description": "是否强制刷新(即使最近刚刷新过)", "type": "boolean" } } }, "github_com_addp_service_internal_models.RegisteredServiceDTO": { "type": "object", "properties": { "auth_type": { "description": "认证配置(不返回敏感信息)", "type": "string" }, "created_at": { "type": "string" }, "created_by": { "description": "审计", "type": "integer" }, "description": { "type": "string" }, "endpoint_url": { "type": "string" }, "endpoints": { "description": "服务端点", "type": "object", "additionalProperties": { "type": "string" } }, "error_message": { "type": "string" }, "has_auth_config": { "description": "是否配置了认证信息", "type": "boolean" }, "health_check_url": { "type": "string" }, "id": { "type": "integer" }, "keywords": { "type": "array", "items": { "type": "string" } }, "last_checked_at": { "type": "string" }, "layers": { "description": "图层信息", "type": "array", "items": { "$ref": "#/definitions/github_com_addp_service_internal_models.RegisteredServiceLayerDTO" } }, "metadata": { "description": "元数据", "type": "object", "additionalProperties": true }, "service_name": { "type": "string" }, "service_type": { "type": "string" }, "status": { "description": "状态", "type": "string" }, "tenant_id": { "type": "integer" }, "title": { "type": "string" }, "updated_at": { "type": "string" } } }, "github_com_addp_service_internal_models.RegisteredServiceLayerDTO": { "type": "object", "properties": { "bbox": { "type": "object", "additionalProperties": true }, "created_at": { "type": "string" }, "crs": { "type": "string" }, "description": { "type": "string" }, "display_name": { "type": "string" }, "enabled": { "type": "boolean" }, "geometry_type": { "type": "string" }, "id": { "type": "integer" }, "layer_name": { "type": "string" }, "metadata": { "type": "object", "additionalProperties": true }, "service_id": { "type": "integer" }, "updated_at": { "type": "string" } } }, "github_com_addp_service_internal_models.ResolveCatalogReferencesRequest": { "type": "object", "required": [ "references" ], "properties": { "references": { "type": "array", "maxItems": 200, "minItems": 1, "items": { "$ref": "#/definitions/github_com_addp_service_internal_models.CatalogReference" } } } }, "github_com_addp_service_internal_models.ResolveCatalogReferencesResponse": { "type": "object", "properties": { "results": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_service_internal_models.CatalogReferenceResolution" } } } }, "github_com_addp_service_internal_models.SQLQueryOutputContractRequest": { "type": "object", "required": [ "engine_id", "sql" ], "properties": { "engine_id": { "type": "integer" }, "parameters": { "type": "object" }, "sql": { "type": "string" } } }, "github_com_addp_service_internal_models.StructuredQueryInputContract": { "type": "object", "properties": { "default_selection": { "type": "array", "items": { "type": "string" } }, "fields": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_service_internal_models.ConsumerQueryField" } }, "filter": { "$ref": "#/definitions/github_com_addp_service_internal_models.ConsumerFilterContract" }, "formats": { "type": "array", "items": { "type": "string" } }, "intent": { "$ref": "#/definitions/github_com_addp_service_internal_models.ConsumerQueryIntent" }, "kind": { "type": "string", "enum": [ "structured_query" ] }, "named_parameters": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_service_internal_models.ConsumerNamedParameter" } }, "order": { "$ref": "#/definitions/github_com_addp_service_internal_models.ConsumerOrderContract" }, "page": { "$ref": "#/definitions/github_com_addp_service_internal_models.ConsumerPageContract" } } }, "github_com_addp_service_internal_models.TabularOutputContract": { "type": "object", "properties": { "fields": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_service_internal_models.ConsumerOutputField" } }, "kind": { "type": "string", "enum": [ "tabular", "spatial_tabular" ] }, "spatial": { "$ref": "#/definitions/github_com_addp_service_internal_models.ConsumerSpatialContract" } } }, "github_com_addp_service_internal_models.TileServiceDTO": { "type": "object", "properties": { "created_at": { "type": "string" }, "created_by": { "type": "integer" }, "default_srid": { "type": "integer" }, "description": { "type": "string" }, "endpoints": { "description": "服务端点 URL", "type": "object", "additionalProperties": { "type": "string" } }, "error_message": { "type": "string" }, "extent": {}, "id": { "type": "integer" }, "keywords": { "type": "array", "items": { "type": "string" } }, "layers": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_service_internal_models.TileServiceLayerDTO" } }, "protocols": {}, "public_access": { "type": "boolean" }, "service_name": { "type": "string" }, "status": { "type": "string" }, "tenant_id": { "type": "integer" }, "title": { "type": "string" }, "updated_at": { "type": "string" } } }, "github_com_addp_service_internal_models.TileServiceLayerDTO": { "type": "object", "properties": { "created_at": { "type": "string" }, "description": { "type": "string" }, "display_order": { "type": "integer" }, "enabled": { "type": "boolean" }, "id": { "type": "integer" }, "layer_config": {}, "layer_name": { "type": "string" }, "layer_type": { "type": "string" }, "service_id": { "type": "integer" }, "title": { "type": "string" }, "updated_at": { "type": "string" } } }, "github_com_addp_service_internal_models.UpdateGraphQueryServiceRequest": { "type": "object", "properties": { "cypher_query": { "type": "string" }, "data_config": { "type": "object", "additionalProperties": true }, "description": { "type": "string" }, "keywords": { "type": "array", "items": { "type": "string" } }, "max_records": { "type": "integer", "maximum": 5000, "minimum": 1 }, "public_access": { "type": "boolean" }, "status": { "type": "string", "enum": [ "active", "inactive", "error" ] }, "title": { "type": "string" } } }, "github_com_addp_service_internal_models.UpdateQueryServiceRequest": { "type": "object", "required": [ "version" ], "properties": { "data_config": { "description": "数据配置更新", "type": "object", "additionalProperties": true }, "description": { "type": "string" }, "keywords": { "type": "array", "items": { "type": "string" } }, "max_features": { "type": "integer", "maximum": 10000, "minimum": 1 }, "named_parameter_defaults": { "description": "仅修改已发布 SQL 可选参数的默认值,不更改参数声明 | Defaults of published optional SQL parameters only.", "type": "object", "additionalProperties": true }, "protocols": { "description": "协议配置更新", "type": "object", "additionalProperties": true }, "public_access": { "description": "访问控制更新", "type": "boolean" }, "status": { "description": "状态更新", "type": "string", "enum": [ "active", "inactive", "error" ] }, "title": { "type": "string" }, "version": { "type": "integer" } } }, "github_com_addp_service_internal_models.UpdateRegisteredServiceRequest": { "type": "object", "properties": { "auth_config": { "type": "object", "additionalProperties": true }, "auth_type": { "description": "认证配置更新", "type": "string", "enum": [ "none", "basic", "bearer", "api_key" ] }, "description": { "type": "string" }, "health_check_url": { "description": "健康检查URL更新", "type": "string" }, "keywords": { "type": "array", "items": { "type": "string" } }, "status": { "description": "状态更新", "type": "string", "enum": [ "active", "inactive", "error" ] }, "title": { "type": "string" } } }, "github_com_addp_service_internal_models.UpdateTileLayerRequest": { "type": "object", "properties": { "description": { "type": "string" }, "display_order": { "type": "integer" }, "enabled": { "type": "boolean" }, "layer_config": { "type": "object", "additionalProperties": true }, "title": { "type": "string" } } }, "github_com_addp_service_internal_models.UpdateTileServiceRequest": { "type": "object", "properties": { "description": { "type": "string" }, "keywords": { "type": "array", "items": { "type": "string" } }, "protocols": { "type": "object", "additionalProperties": true }, "public_access": { "type": "boolean" }, "status": { "type": "string" }, "title": { "type": "string" } } }, "github_com_addp_service_internal_service.RuntimePolicyResponse": { "type": "object", "properties": { "health_check_cron": { "type": "string" }, "metadata_refresh_cron": { "type": "string" }, "pending_restart": { "type": "boolean" }, "version": { "type": "integer" } } }, "github_com_addp_service_internal_service.UpdateRuntimePolicyInput": { "type": "object", "required": [ "health_check_cron", "metadata_refresh_cron" ], "properties": { "health_check_cron": { "type": "string" }, "metadata_refresh_cron": { "type": "string" }, "version": { "type": "integer" } } }, "internal_api.Capabilities": { "type": "object", "properties": { "contents": { "$ref": "#/definitions/internal_api.Contents" }, "operationsMetadata": { "$ref": "#/definitions/internal_api.OperationsMetadata" }, "ows": { "type": "string" }, "serviceIdentification": { "$ref": "#/definitions/internal_api.ServiceIdentification" }, "serviceProvider": { "$ref": "#/definitions/internal_api.ServiceProvider" }, "version": { "type": "string" }, "xlink": { "type": "string" }, "xmlname": { "$ref": "#/definitions/encoding_xml.Name" }, "xmlns": { "type": "string" } } }, "internal_api.Contents": { "type": "object", "properties": { "layers": { "type": "array", "items": { "$ref": "#/definitions/internal_api.Layer" } }, "tileMatrixSets": { "type": "array", "items": { "$ref": "#/definitions/internal_api.TileMatrixSet" } } } }, "internal_api.DCP": { "type": "object", "properties": { "http": { "$ref": "#/definitions/internal_api.HTTP" } } }, "internal_api.Exception": { "type": "object", "properties": { "exceptionCode": { "type": "string" }, "exceptionText": { "type": "string" } } }, "internal_api.ExceptionReport": { "type": "object", "properties": { "exception": { "$ref": "#/definitions/internal_api.Exception" }, "version": { "type": "string" }, "xmlname": { "$ref": "#/definitions/encoding_xml.Name" } } }, "internal_api.Get": { "type": "object", "properties": { "href": { "type": "string" } } }, "internal_api.HTTP": { "type": "object", "properties": { "get": { "$ref": "#/definitions/internal_api.Get" } } }, "internal_api.Layer": { "type": "object", "properties": { "abstract": { "type": "string" }, "format": { "type": "string" }, "identifier": { "type": "string" }, "resourceURL": { "$ref": "#/definitions/internal_api.ResourceURL" }, "style": { "$ref": "#/definitions/internal_api.Style" }, "tileMatrixSetLink": { "$ref": "#/definitions/internal_api.TileMatrixSetLink" }, "title": { "type": "string" }, "wgs84BoundingBox": { "$ref": "#/definitions/internal_api.WGS84BoundingBox" } } }, "internal_api.Operation": { "type": "object", "properties": { "dcp": { "$ref": "#/definitions/internal_api.DCP" }, "name": { "type": "string" } } }, "internal_api.OperationsMetadata": { "type": "object", "properties": { "operations": { "type": "array", "items": { "$ref": "#/definitions/internal_api.Operation" } } } }, "internal_api.ResourceURL": { "type": "object", "properties": { "format": { "type": "string" }, "resourceType": { "type": "string" }, "template": { "type": "string" } } }, "internal_api.ServiceIdentification": { "type": "object", "properties": { "abstract": { "type": "string" }, "keywords": { "type": "array", "items": { "type": "string" } }, "serviceType": { "type": "string" }, "title": { "type": "string" } } }, "internal_api.ServiceProvider": { "type": "object", "properties": { "providerName": { "type": "string" } } }, "internal_api.Style": { "type": "object", "properties": { "identifier": { "type": "string" }, "isDefault": { "type": "boolean" } } }, "internal_api.TileMatrix": { "type": "object", "properties": { "identifier": { "type": "string" }, "matrixHeight": { "type": "integer" }, "matrixWidth": { "type": "integer" }, "scaleDenominator": { "type": "number" }, "tileHeight": { "type": "integer" }, "tileWidth": { "type": "integer" }, "topLeftCorner": { "type": "string" } } }, "internal_api.TileMatrixSet": { "type": "object", "properties": { "identifier": { "type": "string" }, "supportedCRS": { "type": "string" }, "tileMatrices": { "type": "array", "items": { "$ref": "#/definitions/internal_api.TileMatrix" } } } }, "internal_api.TileMatrixSetLink": { "type": "object", "properties": { "tileMatrixSet": { "type": "string" } } }, "internal_api.WGS84BoundingBox": { "type": "object", "properties": { "lowerCorner": { "type": "string" }, "upperCorner": { "type": "string" } } }, "internal_api.graphNodeShapeOption": { "type": "object", "properties": { "count": { "type": "integer" }, "kind": { "type": "string" }, "labels": { "type": "array", "items": { "type": "string" } }, "name": { "type": "string" }, "properties": { "type": "array", "items": { "$ref": "#/definitions/datatype.FieldInfo" } } } }, "plan.Aggregate": { "type": "object", "properties": { "groups": { "type": "array", "items": { "$ref": "#/definitions/plan.Projection" } }, "input": { "type": "string" }, "measures": { "type": "array", "items": { "$ref": "#/definitions/plan.Measure" } } } }, "plan.Assertion": { "type": "object", "properties": { "code": { "type": "string" }, "violation": { "type": "string" } } }, "plan.ColumnRef": { "type": "object", "properties": { "input": { "type": "string" }, "name": { "type": "string" } } }, "plan.ConstantRows": { "type": "object", "properties": { "fields": { "type": "array", "items": { "$ref": "#/definitions/datatype.FieldInfo" } }, "rows": { "type": "array", "items": { "type": "array", "items": { "$ref": "#/definitions/plan.Literal" } } } } }, "plan.DateBuckets": { "type": "object", "properties": { "end": { "$ref": "#/definitions/plan.Expr" }, "max_months": { "type": "integer" }, "name": { "type": "string" }, "start": { "$ref": "#/definitions/plan.Expr" } } }, "plan.Expr": { "type": "object", "properties": { "args": { "type": "array", "items": { "$ref": "#/definitions/plan.Expr" } }, "column": { "$ref": "#/definitions/plan.ColumnRef" }, "literal": { "$ref": "#/definitions/plan.Literal" }, "op": { "type": "string" }, "parameter": { "type": "string" } } }, "plan.Filter": { "type": "object", "properties": { "input": { "type": "string" }, "predicate": { "$ref": "#/definitions/plan.Expr" } } }, "plan.Join": { "type": "object", "properties": { "kind": { "type": "string" }, "left": { "type": "string" }, "on": { "$ref": "#/definitions/plan.Expr" }, "right": { "type": "string" } } }, "plan.Limit": { "type": "object", "properties": { "count": { "type": "integer" }, "input": { "type": "string" } } }, "plan.Literal": { "type": "object", "properties": { "null": { "type": "boolean" }, "text": { "type": "string" }, "type": { "$ref": "#/definitions/datatype.FieldType" } } }, "plan.Measure": { "type": "object", "properties": { "name": { "type": "string" }, "op": { "type": "string" }, "value": { "$ref": "#/definitions/plan.Expr" } } }, "plan.Node": { "type": "object", "properties": { "aggregate": { "$ref": "#/definitions/plan.Aggregate" }, "constant_rows": { "$ref": "#/definitions/plan.ConstantRows" }, "date_buckets": { "$ref": "#/definitions/plan.DateBuckets" }, "distinct": { "$ref": "#/definitions/plan.Unary" }, "filter": { "$ref": "#/definitions/plan.Filter" }, "id": { "type": "string" }, "join": { "$ref": "#/definitions/plan.Join" }, "limit": { "$ref": "#/definitions/plan.Limit" }, "op": { "type": "string" }, "project": { "$ref": "#/definitions/plan.Project" }, "scan": { "$ref": "#/definitions/plan.Scan" }, "sort": { "$ref": "#/definitions/plan.Sort" }, "union_all": { "$ref": "#/definitions/plan.UnionAll" } } }, "plan.OutputContract": { "type": "object", "properties": { "fields": { "type": "array", "items": { "$ref": "#/definitions/datatype.FieldInfo" } }, "stable_key": { "type": "array", "items": { "type": "string" } } } }, "plan.Parameter": { "type": "object", "properties": { "allowed": { "type": "array", "items": { "$ref": "#/definitions/plan.Literal" } }, "name": { "type": "string" }, "required": { "type": "boolean" }, "type": { "$ref": "#/definitions/datatype.FieldType" } } }, "plan.Plan": { "type": "object", "properties": { "assertions": { "type": "array", "items": { "$ref": "#/definitions/plan.Assertion" } }, "nodes": { "type": "array", "items": { "$ref": "#/definitions/plan.Node" } }, "output": { "$ref": "#/definitions/plan.OutputContract" }, "parameters": { "type": "array", "items": { "$ref": "#/definitions/plan.Parameter" } }, "root": { "type": "string" }, "schema_version": { "type": "string" }, "semantic_profile": { "type": "string" } } }, "plan.Project": { "type": "object", "properties": { "columns": { "type": "array", "items": { "$ref": "#/definitions/plan.Projection" } }, "input": { "type": "string" } } }, "plan.Projection": { "type": "object", "properties": { "expr": { "$ref": "#/definitions/plan.Expr" }, "name": { "type": "string" } } }, "plan.Scan": { "type": "object", "properties": { "fields": { "type": "array", "items": { "$ref": "#/definitions/datatype.FieldInfo" } }, "source": { "type": "string" } } }, "plan.Sort": { "type": "object", "properties": { "input": { "type": "string" }, "keys": { "type": "array", "items": { "$ref": "#/definitions/plan.SortKey" } } } }, "plan.SortKey": { "type": "object", "properties": { "direction": { "type": "string" }, "name": { "type": "string" }, "nulls": { "type": "string" } } }, "plan.Unary": { "type": "object", "properties": { "input": { "type": "string" } } }, "plan.UnionAll": { "type": "object", "properties": { "inputs": { "type": "array", "items": { "type": "string" } } } }, "plugin.AnalyticalPlanPackage": { "type": "object", "properties": { "compiler": { "$ref": "#/definitions/plugin.CompilerIdentity" }, "engine_id": { "type": "integer" }, "package_hash": { "type": "string" }, "plan": { "$ref": "#/definitions/plan.Plan" }, "schema_version": { "type": "string" }, "sources": { "type": "array", "items": { "$ref": "#/definitions/plugin.SourceBinding" } } } }, "plugin.ColumnBinding": { "type": "object", "properties": { "column": { "type": "string" }, "field": { "$ref": "#/definitions/datatype.FieldInfo" } } }, "plugin.CompilerIdentity": { "type": "object", "properties": { "id": { "type": "string" }, "version": { "type": "string" } } }, "plugin.EngineCatalogPath": { "type": "object", "properties": { "engine_id": { "type": "integer" }, "segments": { "type": "array", "items": { "$ref": "#/definitions/plugin.EngineCatalogSegment" } }, "version": { "type": "string" } } }, "plugin.EngineCatalogSegment": { "type": "object", "properties": { "kind": { "type": "string" }, "name": { "type": "string" }, "term": { "type": "string" } } }, "plugin.SourceBinding": { "type": "object", "properties": { "columns": { "type": "array", "items": { "$ref": "#/definitions/plugin.ColumnBinding" } }, "path": { "$ref": "#/definitions/plugin.EngineCatalogPath" }, "source": { "type": "string" } } }, "query.ParameterOption": { "type": "object", "properties": { "labels": { "type": "object", "additionalProperties": { "type": "string" } }, "value": { "description": "Value 与参数声明类型一致的标量。| Scalar matching the declared parameter type." } } }, "query.ParameterPresentation": { "type": "object", "properties": { "descriptions": { "type": "object", "additionalProperties": { "type": "string" } }, "labels": { "type": "object", "additionalProperties": { "type": "string" } } } } }, "securityDefinitions": { "BearerAuth": { "type": "apiKey", "name": "Authorization", "in": "header" } } }