2023-12-13 10:22:02 +01:00
|
|
|
// Do not edit this file manually
|
2024-03-01 15:33:22 +01:00
|
|
|
import { togetherAi } from '@typebot.io/together-ai-block'
|
2024-02-07 17:43:11 +01:00
|
|
|
import { elevenlabs } from '@typebot.io/elevenlabs-block'
|
2024-01-29 13:52:29 +04:00
|
|
|
import { difyAi } from '@typebot.io/dify-ai-block'
|
2024-01-25 16:35:16 +01:00
|
|
|
import { mistral } from '@typebot.io/mistral-block'
|
2024-01-11 12:39:58 +05:30
|
|
|
import { qrCode } from '@typebot.io/qrcode-block'
|
2023-12-13 10:22:02 +01:00
|
|
|
import { chatNode } from '@typebot.io/chat-node-block'
|
|
|
|
|
import { calCom } from '@typebot.io/cal-com-block'
|
|
|
|
|
import { zemanticAi } from '@typebot.io/zemantic-ai-block'
|
|
|
|
|
import { openAIBlock } from '@typebot.io/openai-block'
|
|
|
|
|
import {
|
|
|
|
|
BlockDefinition,
|
|
|
|
|
parseBlockCredentials,
|
|
|
|
|
parseBlockSchema,
|
|
|
|
|
} from '@typebot.io/forge'
|
|
|
|
|
import { enabledBlocks } from '@typebot.io/forge-repository'
|
|
|
|
|
import { z } from '@typebot.io/forge/zod'
|
|
|
|
|
|
|
|
|
|
export const forgedBlocks = [
|
|
|
|
|
openAIBlock,
|
|
|
|
|
zemanticAi,
|
|
|
|
|
calCom,
|
|
|
|
|
chatNode,
|
2024-01-11 12:39:58 +05:30
|
|
|
qrCode,
|
2024-01-29 13:52:29 +04:00
|
|
|
difyAi,
|
2024-02-07 17:43:11 +01:00
|
|
|
mistral,
|
|
|
|
|
elevenlabs,
|
2024-03-01 15:33:22 +01:00
|
|
|
togetherAi,
|
2023-12-13 10:22:02 +01:00
|
|
|
] as BlockDefinition<(typeof enabledBlocks)[number], any, any>[]
|
|
|
|
|
|
|
|
|
|
export type ForgedBlockDefinition = (typeof forgedBlocks)[number]
|
|
|
|
|
|
|
|
|
|
export const forgedBlockSchemas = forgedBlocks.map(parseBlockSchema)
|
|
|
|
|
export type ForgedBlock = z.infer<(typeof forgedBlockSchemas)[number]>
|
|
|
|
|
|
|
|
|
|
export const forgedCredentialsSchemas = forgedBlocks
|
|
|
|
|
.filter((b) => b.auth)
|
|
|
|
|
.map(parseBlockCredentials)
|