feat(platform): 实现工作流工具(workflow_list/stats/charge/detail)
- platform_workflow_list: 列出指定自建应用下的工作流(EASO) - platform_workflow_stats: 获取工作流统计信息(EASO) - platform_workflow_charge: 查询企业工作流用量配额(EASO) - platform_workflow_detail: 获取工作流详情(Piper) - 简化 EASO 客户端签名,移除冗余的 corpId 返回 - 更新 tsconfig.json 添加 types: ["node"] - 更新 README.md 工具清单
This commit is contained in:
1 parent
f9eb6a4844
commit
b7bdb39f56
6 files changed
+58
-39
No files matched your search
@@ -63,7 +63,6 @@ async function fetchEasoRealmToken(
|
||||
|
||||
export async function getEasoClient(corp: CorpConfig): Promise<{
|
||||
client: typeof ky;
|
||||
corpId: string;
|
||||
}> {
|
||||
const refreshTtl = corp.auth?.refreshTtl ?? 300;
|
||||
const cacheKey = `${corp.id}:easo`;
|
||||
@@ -81,7 +80,6 @@ export async function getEasoClient(corp: CorpConfig): Promise<{
|
||||
hoseaccesstoken: mem.hoseToken,
|
||||
},
|
||||
}),
|
||||
corpId: corp.credentials.corpId,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -119,6 +117,5 @@ export async function getEasoClient(corp: CorpConfig): Promise<{
|
||||
hoseaccesstoken: hoseToken,
|
||||
},
|
||||
}),
|
||||
corpId: corp.credentials.corpId,
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user