Files
botpress--botpress/integrations/docusign/src/setup.ts
T
2026-07-13 13:34:48 +08:00

13 lines
453 B
TypeScript

import { refreshAccountState } from './docusign-api/auth-utils'
import { cleanupWebhooks, refreshWebhooks } from './docusign-api/utils'
import * as bp from '.botpress'
export const register: bp.Integration['register'] = async (props) => {
await refreshAccountState(props)
await refreshWebhooks(props, props.webhookUrl)
}
export const unregister: bp.Integration['unregister'] = async (props) => {
await cleanupWebhooks(props, props.webhookUrl)
}