2
0
Files
bot/packages/forge/blocks/chatNode/auth.ts
Baptiste Arnaud 65f4fb0d7a 📝 Add Contribute docs
2024-01-03 16:29:41 +01:00

17 lines
451 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,
}),
}),
} satisfies AuthDefinition