2
0
Files
bot/packages/forge/blocks/chatNode/auth.ts
2024-03-15 15:17:07 +01:00

18 lines
483 B
TypeScript

import { option, AuthDefinition } from '@typebot.io/forge'
export const auth = {
type: 'encryptedCredentials',
name: 'ChatNode account',
schema: option.object({
apiKey: option.string.layout({
label: 'API key',
isRequired: true,
helperText:
'You can generate an API key [here](https://go.chatnode.ai/typebot).',
inputType: 'password',
withVariableButton: false,
isDebounceDisabled: true,
}),
}),
} satisfies AuthDefinition