Files
botpress--botpress/integrations/gmail/src/actions/untrash-thread.ts
T
2026-07-13 13:34:48 +08:00

15 lines
433 B
TypeScript

import { GoogleClient } from '../google-api/google-client'
import { wrapAction } from './action-wrapper'
export const untrashThread = wrapAction(
{ actionName: 'untrashThread', errorMessageWhenFailed: 'Failed to untrash thread' },
async (
{ googleClient }: { googleClient: Awaited<ReturnType<typeof GoogleClient.create>> },
{ id }: { id: string }
) => {
await googleClient.threads.untrash(id)
return {}
}
)