Files
2026-07-13 13:34:48 +08:00

16 lines
473 B
TypeScript

import { z } from '@botpress/sdk'
import { ActionDef } from './types'
export const untrashMessage = {
title: 'Untrash Message',
description: 'Removes the specified message from the trash and restores it to the inbox.',
input: {
schema: z.object({
id: z.string().title('Message ID').describe('The ID of the message to untrash.'),
}),
},
output: {
schema: z.object({}).title('Empty').describe('Empty output'),
},
} as const satisfies ActionDef