74 lines
1.6 KiB
YAML
74 lines
1.6 KiB
YAML
|
|
runtime: node
|
|||
|
|
entrypoint: scripts/index.cjs
|
|||
|
|
timeout: 60000
|
|||
|
|
|
|||
|
|
dependencies:
|
|||
|
|
system:
|
|||
|
|
- name: node
|
|||
|
|
check: "node --version"
|
|||
|
|
|
|||
|
|
env:
|
|||
|
|
- name: TYCM_CALLBACK_TIMEOUT_MS
|
|||
|
|
required: false
|
|||
|
|
default: "15000"
|
|||
|
|
description: HTTP请求超时时间,毫秒
|
|||
|
|
- name: TYCM_CALLBACK_RETRIES
|
|||
|
|
required: false
|
|||
|
|
default: "1"
|
|||
|
|
description: HTTP失败重试次数
|
|||
|
|
|
|||
|
|
interface:
|
|||
|
|
input:
|
|||
|
|
callbackUrl:
|
|||
|
|
type: string
|
|||
|
|
required: true
|
|||
|
|
description: TYCM回调地址;最终只会调用/agent-invoke-callback
|
|||
|
|
orderNo:
|
|||
|
|
type: string
|
|||
|
|
required: true
|
|||
|
|
description: 订单号或理赔单号
|
|||
|
|
status:
|
|||
|
|
type: string
|
|||
|
|
required: false
|
|||
|
|
default: failed
|
|||
|
|
description: approved、rejected、manual_review、failed;也兼容PASS、REJECT、MANUAL_REVIEW,缺失或无法识别时按failed回调
|
|||
|
|
reason:
|
|||
|
|
type: string
|
|||
|
|
required: false
|
|||
|
|
description: 审核原因或失败原因
|
|||
|
|
reportMarkdown:
|
|||
|
|
type: string
|
|||
|
|
required: false
|
|||
|
|
description: Markdown报告正文
|
|||
|
|
auditResult:
|
|||
|
|
type: object
|
|||
|
|
required: false
|
|||
|
|
description: 完整审核JSON
|
|||
|
|
dryRun:
|
|||
|
|
type: boolean
|
|||
|
|
required: false
|
|||
|
|
default: "false"
|
|||
|
|
timeoutMs:
|
|||
|
|
type: number
|
|||
|
|
required: false
|
|||
|
|
default: "15000"
|
|||
|
|
retries:
|
|||
|
|
type: number
|
|||
|
|
required: false
|
|||
|
|
default: "1"
|
|||
|
|
extra:
|
|||
|
|
type: object
|
|||
|
|
required: false
|
|||
|
|
description: 合并到回调body的额外字段
|
|||
|
|
output:
|
|||
|
|
success:
|
|||
|
|
type: boolean
|
|||
|
|
statusCode:
|
|||
|
|
type: number
|
|||
|
|
response:
|
|||
|
|
type: object
|
|||
|
|
request:
|
|||
|
|
type: object
|
|||
|
|
error:
|
|||
|
|
type: string
|