Files
dify/e2e/support/tools.ts
Stephen Zhou a84c2d36a3 style: format with vp fmt (#38803)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-07-12 15:57:46 +00:00

23 lines
583 B
TypeScript

import { createApiContext, expectApiResponseOK } from './api'
export async function deleteBuiltinToolCredential(
provider: string,
credentialId: string,
): Promise<void> {
const ctx = await createApiContext()
try {
const response = await ctx.post(
`/console/api/workspaces/current/tool-provider/builtin/${provider}/delete`,
{
data: { credential_id: credentialId },
},
)
await expectApiResponseOK(
response,
`Delete built-in tool credential ${credentialId} for ${provider}`,
)
} finally {
await ctx.dispose()
}
}