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

22 lines
612 B
TypeScript

import sdk, { z } from '@botpress/sdk'
export const states = {
credentials: {
type: 'integration',
schema: z.object({
accessToken: z
.string()
.title('Access Token')
.describe('The access token used to communicate with the Todoist API'),
}),
},
// TODO: This state is unused. Delete it in the next major version.
configuration: {
type: 'integration',
schema: z.object({
botUserId: z.string().optional().title('Bot User ID').describe('The ID of the bot user in Todoist'),
}),
},
} as const satisfies sdk.IntegrationDefinitionProps['states']