Files
syops/docs/openapi/shipping_notice_tools.dify.json
T
hugo 1f3ecb87b7 feat(shipping_notice): 新增货代订单全流程业务模块及配套基建
本次提交新增货代订单处理全流程的完整业务能力、数据库迁移与测试用例:
1.  统一追加式审计事件体系,支持全链路不可篡改的业务追溯
2.  货代任务撤销、版本替代管控逻辑,规范已上传订单的合规版本更替
3.  订单抽取路由审计、模板自动冻结资格、路由计数等核心业务基建
4.  EML订单补充表解析契约与合并逻辑,完善订单补全能力
5.  Chatflow只读能力令牌校验机制,保障工具调用安全
6.  人工复核证据校验服务,规范人工审核的证据留存
所有变更均配套完整的单元测试与迁移契约测试,支持受控回退
2026-07-28 08:56:58 +08:00

108 lines
3.9 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"openapi": "3.0.0",
"info": {
"title": "Shipping Notice Tools",
"version": "1.0.0",
"description": "货代 Chatflow 仅作自然语言只读解释。所有写操作必须由 HXOPS 确认卡和后端状态机执行;本 OpenAPI 不包含改单、确认、冻结、库存、Excel 或上传接口。"
},
"servers": [
{
"url": "http://192.168.36.108:5052/api/shipping-notice"
}
],
"paths": {
"/tools/get_task_status": {
"post": {
"operationId": "get_task_status",
"summary": "查询任务当前状态与 human_options;响应含库存连接器独立字段与候选结构",
"description": "返回 inventory_source_code、inventory_connector_type、inventory_warehouse_id、inventory_source_status(unresolved|ambiguous|resolved|user_confirmed|invalid|conflicted)、inventory_source_method、inventory_source_config_version、inventory_routing_fingerprint、inventory_source_confirmed_by、inventory_source_confirmed_at,以及 step_payload.inventory_source_resolution.candidates。",
"parameters": [],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"task_id": {
"type": "string",
"description": "发货任务引用:技术任务号 SN-20260529-ABCD1234 或业务号 WYC26071501"
},
"conversation_id": {
"type": "string",
"description": "Dify 会话 ID"
},
"shipping_chat_capability_token": {
"type": "string",
"description": "HXOPS 每轮注入的短效只读能力令牌;必须原样透传"
}
},
"required": [
"task_id",
"shipping_chat_capability_token"
]
}
}
}
},
"responses": {
"200": {
"description": "Tool response (status: ok|running|needs_human|failed). May include checkpoint, human_options, action_buttons.",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
},
"/tools/get_batch_status": {
"post": {
"operationId": "get_batch_status",
"summary": "查询批次当前状态、任务列表与当前聚焦任务",
"description": "查询批次当前状态、任务列表与当前聚焦任务",
"parameters": [],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"batch_no": {
"type": "string",
"description": "发货批次编号(batch id),如 SB-20260617-ABCD1234"
},
"shipping_chat_capability_token": {
"type": "string",
"description": "HXOPS 每轮注入的短效只读能力令牌;必须原样透传"
}
},
"required": [
"batch_no",
"shipping_chat_capability_token"
]
}
}
}
},
"responses": {
"200": {
"description": "Tool response (status: ok|running|needs_human|failed). May include checkpoint, human_options, action_buttons.",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
}
}
}