17 lines
468 B
TypeScript
17 lines
468 B
TypeScript
|
|
import { option, AuthDefinition } from '@typebot.io/forge'
|
||
|
|
|
||
|
|
export const auth = {
|
||
|
|
type: 'encryptedCredentials',
|
||
|
|
name: 'Segment account',
|
||
|
|
schema: option.object({
|
||
|
|
apiKey: option.string.layout({
|
||
|
|
label: 'Write Key',
|
||
|
|
isRequired: true,
|
||
|
|
inputType: 'password',
|
||
|
|
helperText: 'You can find your Write Key in your Segment source settings.',
|
||
|
|
withVariableButton: false,
|
||
|
|
isDebounceDisabled: true,
|
||
|
|
})
|
||
|
|
}),
|
||
|
|
} satisfies AuthDefinition
|