{ "swagger": "2.0", "info": { "title": "ADDP Workbench API", "contact": {}, "version": "1.0" }, "host": "localhost:8193", "basePath": "/api/v1/workbench", "paths": { "/catalog-resources/changes": { "get": { "security": [ { "BearerAuth": [] } ], "description": "按不透明游标返回已首次发布 Data Application 的最小检索摘要变化,仅供 Catalog 服务消费 | Return minimal-search-summary changes for Data Applications that have been published at least once, for the Catalog service only", "produces": [ "application/json" ], "tags": [ "Catalog Integration" ], "summary": "拉取数据应用目录资源变化 | Pull Data Application 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_workbench_internal_models.CatalogResourceChangesResponse" } }, "400": { "description": "无效游标或批大小 | Invalid cursor or batch size", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "需要认证 | Authentication required", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "非 Catalog 服务或权限不足 | Catalog service or permission required", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "读取失败 | Read failed", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "workbench.catalog.read" ] } }, "/data_applications": { "get": { "security": [ { "BearerAuth": [] } ], "description": "只返回当前 Tenant 和当前 User 拥有的数据应用草稿摘要 | Return only data application draft summaries owned by the current User in the current Tenant", "produces": [ "application/json" ], "tags": [ "Workbench Data Applications" ], "summary": "列出数据应用 | List data applications", "parameters": [ { "type": "integer", "description": "页码,默认 1 | Page number, default 1", "name": "page", "in": "query" }, { "type": "integer", "description": "每页数量,默认 20,最大 100 | Page size, default 20 and maximum 100", "name": "page_size", "in": "query" } ], "responses": { "200": { "description": "数据应用分页结果 | Paginated data applications", "schema": { "$ref": "#/definitions/api.PaginatedResponse" } }, "400": { "description": "请求参数无效 | Invalid request", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "未认证 | Unauthorized", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "权限不足 | Forbidden", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "服务器内部错误 | Internal server error", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "workbench.data_application.read" ] }, "post": { "security": [ { "BearerAuth": [] } ], "description": "逐一重新校验 Component 的 Service 契约,并使用当前权威指纹归一化完整应用草稿 | Revalidate every Component Service contract and normalize the complete application draft with authoritative current fingerprints\nrenderer_config.field_presentations 可配置 value_labels:最多 32 个 string 或 bool 原值到显示名称的映射,不改变查询和原始结果 | renderer_config.field_presentations accepts value_labels: up to 32 typed string or bool value-label pairs for display only, without changing queries or original results\nChart 的 total_as_value=true 要求期间维度、1–4 个显式精度度量,全期显示唯一完整行的数字卡片,按月仍显示图表 | Chart total_as_value=true requires a period dimension and 1–4 explicitly precise measures; full-period results use single-complete-row value cards, monthly results remain charts\nChart 可选 result_name_field 必须是已选中的 string 输出字段,完整结果名称一致时用于显示当前查询对象名称 | Optional Chart result_name_field must be a selected string output field; a consistent name across complete results identifies the queried subject\nTable/Chart 的 date 字段支持 temporal_format=period,period 中的 grain_parameter/start_parameter/end_parameter 显式引用必填命名参数,类型依次为 total/month 枚举 string、date、date;只改变显示 | Table/Chart date fields accept temporal_format=period with explicit period grain_parameter/start_parameter/end_parameter references to required named parameters of types total/month enum string, date and date; presentation only", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Workbench Data Applications" ], "summary": "创建数据应用 | Create a data application", "parameters": [ { "description": "数据应用名称和完整草稿 | Data application name and complete draft", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/github_com_addp_workbench_internal_models.DataApplicationCreateRequest" } } ], "responses": { "201": { "description": "新建数据应用 | Created data application", "schema": { "$ref": "#/definitions/github_com_addp_workbench_internal_models.DataApplicationResponse" } }, "400": { "description": "配置无效 | Invalid configuration", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "未认证 | Unauthorized", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "Workbench 或 Service 权限不足 | Insufficient Workbench or Service permission", "schema": { "type": "object", "additionalProperties": true } }, "503": { "description": "Service 不可用 | Service unavailable", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "workbench.data_application.create" ] } }, "/data_applications/{id}": { "get": { "security": [ { "BearerAuth": [] } ], "produces": [ "application/json" ], "tags": [ "Workbench Data Applications" ], "summary": "获取数据应用 | Get a data application", "parameters": [ { "type": "string", "description": "Data Application UUID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "数据应用草稿 | Data application draft", "schema": { "$ref": "#/definitions/github_com_addp_workbench_internal_models.DataApplicationResponse" } }, "400": { "description": "ID 无效 | Invalid ID", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "未认证 | Unauthorized", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "权限不足 | Forbidden", "schema": { "type": "object", "additionalProperties": true } }, "404": { "description": "数据应用不存在 | Data application not found", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "workbench.data_application.read" ] }, "put": { "security": [ { "BearerAuth": [] } ], "description": "允许增删改 Component;使用正整数 version 乐观并发,并逐一重新校验所有 Service 契约 | Allow adding, removing, and editing Components; use positive version optimistic concurrency and revalidate every Service contract\n字段 value_labels 随草稿及发布修订保存;拒绝重复原值、类型不符和空标签 | Field value_labels are saved with drafts and published revisions; duplicate values, type mismatches and empty labels are rejected\nChart 的 total_as_value 同步保存并校验期间维度、1–4 个度量与显式精度 | Chart total_as_value persists and validates its period dimension, 1–4 measures, and explicit precision\n统计期间展示绑定随草稿和发布修订保存;拒绝不存在、类型不匹配或开始结束相同的参数绑定 | Period presentation bindings persist in drafts and revisions; unknown, mismatched or identical start/end parameter bindings are rejected", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Workbench Data Applications" ], "summary": "更新数据应用草稿 | Update a data application draft", "parameters": [ { "type": "string", "description": "Data Application UUID", "name": "id", "in": "path", "required": true }, { "description": "完整草稿和当前 version | Complete draft and current version", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/github_com_addp_workbench_internal_models.DataApplicationUpdateRequest" } } ], "responses": { "200": { "description": "更新后的数据应用 | Updated data application", "schema": { "$ref": "#/definitions/github_com_addp_workbench_internal_models.DataApplicationResponse" } }, "400": { "description": "配置无效 | Invalid configuration", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "未认证 | Unauthorized", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "Workbench 或 Service 权限不足 | Insufficient Workbench or Service permission", "schema": { "type": "object", "additionalProperties": true } }, "404": { "description": "数据应用不存在 | Data application not found", "schema": { "type": "object", "additionalProperties": true } }, "409": { "description": "版本冲突 | Version conflict", "schema": { "type": "object", "additionalProperties": true } }, "503": { "description": "Service 不可用 | Service unavailable", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "workbench.data_application.update" ] }, "delete": { "security": [ { "BearerAuth": [] } ], "description": "只有从未产生 Application Revision 的应用可删除;请求必须携带当前 version | Only applications that never produced an Application Revision can be deleted; the current version is required", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Workbench Data Applications" ], "summary": "删除未发布数据应用 | Delete an unpublished data application", "parameters": [ { "type": "string", "description": "Data Application UUID", "name": "id", "in": "path", "required": true }, { "description": "当前 version | Current version", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/github_com_addp_workbench_internal_models.DataApplicationVersionRequest" } } ], "responses": { "200": { "description": "删除成功 | Deleted", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "400": { "description": "请求无效 | Invalid request", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "未认证 | Unauthorized", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "权限不足 | Forbidden", "schema": { "type": "object", "additionalProperties": true } }, "404": { "description": "数据应用不存在 | Data application not found", "schema": { "type": "object", "additionalProperties": true } }, "409": { "description": "版本冲突或应用已发布 | Version conflict or application already published", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "workbench.data_application.delete" ] } }, "/data_applications/{id}/offline": { "post": { "security": [ { "BearerAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Workbench Data Applications" ], "summary": "下线数据应用 | Take a data application offline", "parameters": [ { "type": "string", "description": "Data Application UUID", "name": "id", "in": "path", "required": true }, { "description": "当前 version | Current version", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/github_com_addp_workbench_internal_models.DataApplicationVersionRequest" } } ], "responses": { "200": { "description": "已下线数据应用 | Offline data application", "schema": { "$ref": "#/definitions/github_com_addp_workbench_internal_models.DataApplicationResponse" } }, "400": { "description": "请求无效 | Invalid request", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "未认证 | Unauthorized", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "权限不足 | Forbidden", "schema": { "type": "object", "additionalProperties": true } }, "404": { "description": "数据应用不存在 | Data application not found", "schema": { "type": "object", "additionalProperties": true } }, "409": { "description": "版本冲突或尚未发布 | Version conflict or unpublished application", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "workbench.data_application.publish" ] } }, "/data_applications/{id}/publish": { "post": { "security": [ { "BearerAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Workbench Data Applications" ], "summary": "发布数据应用 | Publish a data application", "parameters": [ { "type": "string", "description": "Data Application UUID", "name": "id", "in": "path", "required": true }, { "description": "当前 version | Current version", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/github_com_addp_workbench_internal_models.DataApplicationVersionRequest" } } ], "responses": { "200": { "description": "已发布数据应用 | Published data application", "schema": { "$ref": "#/definitions/github_com_addp_workbench_internal_models.DataApplicationResponse" } }, "400": { "description": "请求无效 | Invalid request", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "未认证 | Unauthorized", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "Workbench 或 Service 权限不足 | Insufficient Workbench or Service permission", "schema": { "type": "object", "additionalProperties": true } }, "404": { "description": "数据应用不存在 | Data application not found", "schema": { "type": "object", "additionalProperties": true } }, "409": { "description": "版本冲突 | Version conflict", "schema": { "type": "object", "additionalProperties": true } }, "503": { "description": "Service 不可用 | Service unavailable", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "workbench.data_application.publish" ] } }, "/data_applications/{id}/runtime": { "get": { "security": [ { "BearerAuth": [] } ], "description": "创建者或持有生效 Resource Grant 的 User 可读取当前 published Revision;真实数据仍由浏览器以当前 User Bearer 调用各 Service | The owner or a User with an effective Resource Grant may read the current published Revision; the browser still calls every Service with the current User Bearer", "produces": [ "application/json" ], "tags": [ "Workbench Data Applications" ], "summary": "获取数据应用运行快照 | Get a data application runtime snapshot", "parameters": [ { "type": "string", "description": "Data Application UUID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "不可变运行快照 | Immutable runtime snapshot", "schema": { "$ref": "#/definitions/github_com_addp_workbench_internal_models.DataApplicationRuntimeResponse" } }, "400": { "description": "ID 无效 | Invalid ID", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "未认证 | Unauthorized", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "权限不足 | Forbidden", "schema": { "type": "object", "additionalProperties": true } }, "409": { "description": "尚未发布或已下线 | Unpublished or offline", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "workbench.data_application.execute" ] } }, "/runtime/catalog-references/resolve": { "post": { "security": [ { "BearerAuth": [] } ], "description": "按请求顺序动态解析 1 到 200 个已首次发布的数据应用引用;跨 Tenant、不存在和从未发布统一 found=false,仅供 Catalog 服务消费 | Dynamically resolve 1 to 200 Data Application references that have been published at least once; cross-tenant, missing, and never-published references all return found=false; Catalog service only", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Catalog Integration" ], "summary": "解析数据应用目录引用 | Resolve Data Application catalog references", "parameters": [ { "description": "数据应用目录引用 | Data Application catalog references", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/github_com_addp_workbench_internal_models.ResolveCatalogReferencesRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/github_com_addp_workbench_internal_models.ResolveCatalogReferencesResponse" } }, "400": { "description": "请求无效 | Invalid request", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "需要认证 | Authentication required", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "非 Catalog 服务或权限不足 | Catalog service or permission required", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "解析失败 | Resolution failed", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "workbench.catalog.read" ] } }, "/runtime/resource-grants/{source_identity}": { "put": { "security": [ { "BearerAuth": [] } ], "description": "使用 Asset Authorization ID 作为幂等来源,为指定 User 建立 Data Application execute Allow Rule;只允许 addp-asset | Use the Asset Authorization ID as the idempotent source and create a Data Application execute Allow Rule for one User; restricted to addp-asset", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Workbench Resource Grants" ], "summary": "履约 Asset 资源授权 | Fulfill an Asset resource grant", "parameters": [ { "type": "string", "description": "Asset Authorization ID", "name": "source_identity", "in": "path", "required": true }, { "description": "完整授权目标 | Complete grant target", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/github_com_addp_workbench_internal_models.AssetResourceGrantRequest" } } ], "responses": { "200": { "description": "已生效授权 | Effective grant", "schema": { "$ref": "#/definitions/github_com_addp_workbench_internal_models.AssetResourceGrantResponse" } }, "400": { "description": "请求无效 | Invalid request", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "未认证 | Unauthorized", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "非 addp-asset 或权限不足 | Wrong client or insufficient permission", "schema": { "type": "object", "additionalProperties": true } }, "409": { "description": "来源身份冲突或已撤销 | Source identity conflict or already revoked", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "workbench.resource_grant.create" ] }, "delete": { "security": [ { "BearerAuth": [] } ], "description": "使用完整授权目标写入可重放撤销墓碑,阻止延迟的旧履约重新放开访问;只允许 addp-asset | Persist a replayable revocation tombstone from the complete target so delayed fulfillment cannot reopen access; restricted to addp-asset", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Workbench Resource Grants" ], "summary": "撤销 Asset 资源授权 | Revoke an Asset resource grant", "parameters": [ { "type": "string", "description": "Asset Authorization ID", "name": "source_identity", "in": "path", "required": true }, { "description": "完整授权目标 | Complete grant target", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/github_com_addp_workbench_internal_models.AssetResourceGrantRequest" } } ], "responses": { "200": { "description": "已撤销授权 | Revoked grant", "schema": { "$ref": "#/definitions/github_com_addp_workbench_internal_models.AssetResourceGrantResponse" } }, "400": { "description": "请求无效 | Invalid request", "schema": { "type": "object", "additionalProperties": true } }, "401": { "description": "未认证 | Unauthorized", "schema": { "type": "object", "additionalProperties": true } }, "403": { "description": "非 addp-asset 或权限不足 | Wrong client or insufficient permission", "schema": { "type": "object", "additionalProperties": true } }, "409": { "description": "来源身份冲突 | Source identity conflict", "schema": { "type": "object", "additionalProperties": true } } }, "x-addp-auth-mode": "permission", "x-addp-required-permissions": [ "workbench.resource_grant.revoke" ] } } }, "definitions": { "api.PaginatedResponse": { "type": "object", "properties": { "data": {}, "page": { "type": "integer" }, "page_size": { "type": "integer" }, "total": { "type": "integer" }, "total_pages": { "type": "integer" } } }, "github_com_addp_workbench_internal_models.ApplicationParameterDisplaySource": { "type": "object", "required": [ "label_field", "source_component_id" ], "properties": { "label_field": { "type": "string" }, "source_component_id": { "type": "string" } } }, "github_com_addp_workbench_internal_models.AssetResourceGrantRequest": { "type": "object", "required": [ "permission", "resource_id", "resource_type", "subject_id", "subject_type" ], "properties": { "expires_at": { "type": "string" }, "permission": { "type": "string", "enum": [ "workbench.data_application.execute" ] }, "resource_id": { "type": "string" }, "resource_type": { "type": "string", "enum": [ "data_application" ] }, "subject_id": { "type": "string" }, "subject_type": { "type": "string", "enum": [ "user" ] } } }, "github_com_addp_workbench_internal_models.AssetResourceGrantResponse": { "type": "object", "properties": { "expires_at": { "type": "string" }, "id": { "type": "string" }, "revoked_at": { "type": "string" }, "source_identity": { "type": "string" }, "status": { "type": "string", "enum": [ "effective", "revoked" ] } } }, "github_com_addp_workbench_internal_models.CatalogReference": { "type": "object", "required": [ "source_identity", "source_type" ], "properties": { "source_identity": { "type": "string" }, "source_type": { "type": "string" } } }, "github_com_addp_workbench_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_workbench_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_workbench_internal_models.CatalogResourceChangesResponse": { "type": "object", "properties": { "changes": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_workbench_internal_models.CatalogResourceChange" } }, "has_more": { "type": "boolean" }, "next_cursor": { "type": "string" }, "schema_version": { "type": "string" } } }, "github_com_addp_workbench_internal_models.ComponentNamedParameterBinding": { "type": "object", "properties": { "name": { "type": "string" }, "parameter_key": { "type": "string" } } }, "github_com_addp_workbench_internal_models.ComponentParameterDefinition": { "type": "object", "properties": { "control_type": { "type": "string" }, "key": { "type": "string" }, "label": { "type": "string" }, "required": { "type": "boolean" } } }, "github_com_addp_workbench_internal_models.ComponentParameterFilter": { "type": "object", "properties": { "field": { "type": "string" }, "operator": { "type": "string" }, "parameter_key": { "type": "string" } } }, "github_com_addp_workbench_internal_models.ComponentQueryTemplate": { "type": "object", "properties": { "fixed_filter": { "$ref": "#/definitions/github_com_addp_workbench_internal_models.QueryFilter" }, "format": { "type": "string" }, "named_parameter_bindings": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_workbench_internal_models.ComponentNamedParameterBinding" } }, "order_by": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_workbench_internal_models.QueryOrder" } }, "page_limit": { "type": "integer" }, "parameter_filters": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_workbench_internal_models.ComponentParameterFilter" } }, "select": { "type": "array", "items": { "type": "string" } } } }, "github_com_addp_workbench_internal_models.DataApplicationComponent": { "type": "object", "required": [ "contract_fingerprint", "id", "query_template", "renderer_config", "renderer_type", "service_ref", "title" ], "properties": { "contract_fingerprint": { "type": "string" }, "default_parameter_values": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "integer", "format": "int32" } } }, "description": { "type": "string" }, "id": { "type": "string" }, "parameter_definitions": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_workbench_internal_models.ComponentParameterDefinition" } }, "query_template": { "$ref": "#/definitions/github_com_addp_workbench_internal_models.ComponentQueryTemplate" }, "renderer_config": { "type": "object" }, "renderer_type": { "type": "string", "enum": [ "table", "chart", "map", "value" ] }, "service_ref": { "$ref": "#/definitions/github_com_addp_workbench_internal_models.ServiceReference" }, "title": { "type": "string" } } }, "github_com_addp_workbench_internal_models.DataApplicationComponentLayout": { "type": "object", "required": [ "component_id", "height", "width" ], "properties": { "component_id": { "type": "string" }, "height": { "type": "integer" }, "width": { "type": "integer" }, "x": { "type": "integer" }, "y": { "type": "integer" } } }, "github_com_addp_workbench_internal_models.DataApplicationCreateRequest": { "type": "object", "required": [ "name", "snapshot" ], "properties": { "description": { "type": "string" }, "name": { "type": "string" }, "snapshot": { "$ref": "#/definitions/github_com_addp_workbench_internal_models.DataApplicationSnapshot" } } }, "github_com_addp_workbench_internal_models.DataApplicationPage": { "type": "object", "required": [ "display_mode", "id", "placements", "refresh_interval_seconds", "title", "visible_sections" ], "properties": { "display_mode": { "type": "string", "enum": [ "desktop", "wallboard" ] }, "id": { "type": "string" }, "placements": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_workbench_internal_models.DataApplicationComponentLayout" } }, "refresh_interval_seconds": { "type": "integer", "enum": [ 0, 30, 60, 300 ] }, "title": { "type": "string" }, "visible_sections": { "type": "array", "items": { "type": "string", "enum": [ "title", "parameters", "query_actions" ] } } } }, "github_com_addp_workbench_internal_models.DataApplicationParameter": { "type": "object", "required": [ "control_type", "key", "label" ], "properties": { "control_type": { "type": "string" }, "default_value": { "type": "object" }, "display_source": { "$ref": "#/definitions/github_com_addp_workbench_internal_models.ApplicationParameterDisplaySource" }, "key": { "type": "string" }, "label": { "type": "string" }, "required": { "type": "boolean" } } }, "github_com_addp_workbench_internal_models.DataApplicationParameterBinding": { "type": "object", "required": [ "application_parameter_key", "component_id", "component_parameter_key" ], "properties": { "application_parameter_key": { "type": "string" }, "component_id": { "type": "string" }, "component_parameter_key": { "type": "string" } } }, "github_com_addp_workbench_internal_models.DataApplicationParameterPreset": { "type": "object", "required": [ "key", "name", "parameter_values" ], "properties": { "key": { "type": "string" }, "name": { "type": "string" }, "parameter_values": { "type": "object" } } }, "github_com_addp_workbench_internal_models.DataApplicationResponse": { "type": "object", "properties": { "created_at": { "type": "string" }, "current_revision_number": { "type": "integer" }, "description": { "type": "string" }, "has_unpublished_changes": { "type": "boolean" }, "id": { "type": "string" }, "name": { "type": "string" }, "owner_user_id": { "type": "integer" }, "publication_status": { "type": "string", "enum": [ "unpublished", "published", "offline" ] }, "snapshot": { "$ref": "#/definitions/github_com_addp_workbench_internal_models.DataApplicationSnapshot" }, "tenant_id": { "type": "integer" }, "updated_at": { "type": "string" }, "version": { "type": "integer" } } }, "github_com_addp_workbench_internal_models.DataApplicationRuntimeResponse": { "type": "object", "properties": { "description": { "type": "string" }, "id": { "type": "string" }, "name": { "type": "string" }, "published_at": { "type": "string" }, "revision_number": { "type": "integer" }, "snapshot": { "$ref": "#/definitions/github_com_addp_workbench_internal_models.DataApplicationSnapshot" } } }, "github_com_addp_workbench_internal_models.DataApplicationSelectionAssignment": { "type": "object", "required": [ "application_parameter_key", "source_field" ], "properties": { "application_parameter_key": { "type": "string" }, "source_field": { "type": "string" } } }, "github_com_addp_workbench_internal_models.DataApplicationSelectionBinding": { "type": "object", "required": [ "assignments", "source_component_id" ], "properties": { "assignments": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_workbench_internal_models.DataApplicationSelectionAssignment" } }, "source_component_id": { "type": "string" } } }, "github_com_addp_workbench_internal_models.DataApplicationSnapshot": { "type": "object", "required": [ "components", "page", "schema_version" ], "properties": { "components": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_workbench_internal_models.DataApplicationComponent" } }, "page": { "$ref": "#/definitions/github_com_addp_workbench_internal_models.DataApplicationPage" }, "parameter_bindings": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_workbench_internal_models.DataApplicationParameterBinding" } }, "parameter_presets": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_workbench_internal_models.DataApplicationParameterPreset" } }, "parameters": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_workbench_internal_models.DataApplicationParameter" } }, "schema_version": { "type": "string" }, "selection_bindings": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_workbench_internal_models.DataApplicationSelectionBinding" } } } }, "github_com_addp_workbench_internal_models.DataApplicationUpdateRequest": { "type": "object", "required": [ "name", "snapshot", "version" ], "properties": { "description": { "type": "string" }, "name": { "type": "string" }, "snapshot": { "$ref": "#/definitions/github_com_addp_workbench_internal_models.DataApplicationSnapshot" }, "version": { "type": "integer" } } }, "github_com_addp_workbench_internal_models.DataApplicationVersionRequest": { "type": "object", "required": [ "version" ], "properties": { "version": { "type": "integer" } } }, "github_com_addp_workbench_internal_models.QueryFilter": { "type": "object", "properties": { "and": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_workbench_internal_models.QueryFilter" } }, "field": { "type": "string" }, "not": { "$ref": "#/definitions/github_com_addp_workbench_internal_models.QueryFilter" }, "op": { "type": "string" }, "or": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_workbench_internal_models.QueryFilter" } }, "value": { "type": "object" } } }, "github_com_addp_workbench_internal_models.QueryOrder": { "type": "object", "properties": { "direction": { "type": "string" }, "field": { "type": "string" } } }, "github_com_addp_workbench_internal_models.ResolveCatalogReferencesRequest": { "type": "object", "required": [ "references" ], "properties": { "references": { "type": "array", "maxItems": 200, "minItems": 1, "items": { "$ref": "#/definitions/github_com_addp_workbench_internal_models.CatalogReference" } } } }, "github_com_addp_workbench_internal_models.ResolveCatalogReferencesResponse": { "type": "object", "properties": { "results": { "type": "array", "items": { "$ref": "#/definitions/github_com_addp_workbench_internal_models.CatalogReferenceResolution" } } } }, "github_com_addp_workbench_internal_models.ServiceReference": { "type": "object", "required": [ "service_id", "service_type" ], "properties": { "service_id": { "type": "integer" }, "service_type": { "type": "string", "enum": [ "query" ] } } } }, "securityDefinitions": { "BearerAuth": { "type": "apiKey", "name": "Authorization", "in": "header" } } }