{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://hose-use.local/specs/hose-close-api/schemas/workflow-snapshot.schema.json", "title": "Workflow snapshot", "description": "工作流快照。前端使用 GET /api/easo/pipelines/snapshot/{snapshotId};代码还兼容 /api/easo/snapshots/{id} 与 /api/easo/pipelines/{pipelineId}/snapshots/{id}。", "x-source": [ "code-derived: src/domains/platform/workflow/types.ts:286 (WorkflowSnapshotSchema)", "reference: _tmp-captured/raw/GET-api-easo-pipelines-snapshot-id.json" ], "type": "object", "required": ["id", "pipelineId"], "properties": { "id": { "type": "string" }, "pipelineId": { "type": "string" }, "corporationId": { "type": "string" }, "platformId": { "type": "string" }, "triggerKey": { "type": "string", "description": "触发类型,例如 clock。" }, "label": { "type": "string" }, "tasks": { "type": ["array", "null"], "description": "快照时刻的任务节点树,结构同 WorkflowDetail.tasks。", "items": { "type": "object", "additionalProperties": true } }, "inputs": { "oneOf": [ { "type": "string", "description": "JSON 编码字符串。" }, { "type": "array", "items": {} } ] }, "outputs": { "oneOf": [ { "type": "string", "description": "JSON 编码字符串。" }, { "type": "array", "items": {} } ] }, "retry": { "type": "number" }, "state": { "type": "number" }, "debugState": { "type": "number" }, "staffId": { "type": ["string", "null"] }, "staffName": { "type": ["string", "null"] }, "createTime": { "type": "string" }, "updateTime": { "type": "string" }, "version": { "type": "string" } }, "additionalProperties": true }