2024-01-25 16:35:16 +01:00
|
|
|
import { option, AuthDefinition } from '@typebot.io/forge'
|
|
|
|
|
|
|
|
export const auth = {
|
|
|
|
type: 'encryptedCredentials',
|
|
|
|
name: 'Mistral account',
|
|
|
|
schema: option.object({
|
|
|
|
apiKey: option.string.layout({
|
|
|
|
label: 'API key',
|
|
|
|
isRequired: true,
|
|
|
|
inputType: 'password',
|
|
|
|
helperText:
|
2024-03-05 15:46:28 +01:00
|
|
|
'You can generate an API key [here](https://console.mistral.ai/api-keys).',
|
2024-03-15 14:28:12 +01:00
|
|
|
isDebounceDisabled: true,
|
2024-01-25 16:35:16 +01:00
|
|
|
}),
|
|
|
|
}),
|
|
|
|
} satisfies AuthDefinition
|