#970 #997 Fully integrate NocoDB. Added all API Functions: - List Table Records - Create Table Records - Update Table Records - Delete Table Records - Read Table Record - Count Table Records - List Linked Records - Link Records - Unlink Records Optional Todo: - Save responses of non-get requests in a variable (error validation try-catch is added and logged so i do not think so it is much needed) You are free to implement any extra validation/function :D --------- Co-authored-by: Baptiste Arnaud <baptiste.arnaud95@gmail.com>
40 lines
2.2 KiB
TypeScript
40 lines
2.2 KiB
TypeScript
import { anthropicBlock } from '@typebot.io/anthropic-block'
|
|
import { anthropicCredentialsSchema } from '@typebot.io/anthropic-block/schemas'
|
|
import { calComBlock } from '@typebot.io/cal-com-block'
|
|
import { calComCredentialsSchema } from '@typebot.io/cal-com-block/schemas'
|
|
import { chatNodeBlock } from '@typebot.io/chat-node-block'
|
|
import { chatNodeCredentialsSchema } from '@typebot.io/chat-node-block/schemas'
|
|
import { difyAiBlock } from '@typebot.io/dify-ai-block'
|
|
import { difyAiCredentialsSchema } from '@typebot.io/dify-ai-block/schemas'
|
|
import { elevenlabsBlock } from '@typebot.io/elevenlabs-block'
|
|
import { elevenlabsCredentialsSchema } from '@typebot.io/elevenlabs-block/schemas'
|
|
import { mistralBlock } from '@typebot.io/mistral-block'
|
|
import { mistralCredentialsSchema } from '@typebot.io/mistral-block/schemas'
|
|
import { openRouterBlock } from '@typebot.io/open-router-block'
|
|
import { openRouterCredentialsSchema } from '@typebot.io/open-router-block/schemas'
|
|
import { openAIBlock } from '@typebot.io/openai-block'
|
|
import { openAICredentialsSchema } from '@typebot.io/openai-block/schemas'
|
|
import { qrCodeBlock } from '@typebot.io/qrcode-block'
|
|
import { qrCodeCredentialsSchema } from '@typebot.io/qrcode-block/schemas'
|
|
import { togetherAiBlock } from '@typebot.io/together-ai-block'
|
|
import { togetherAiCredentialsSchema } from '@typebot.io/together-ai-block/schemas'
|
|
import { zemanticAiBlock } from '@typebot.io/zemantic-ai-block'
|
|
import { zemanticAiCredentialsSchema } from '@typebot.io/zemantic-ai-block/schemas'
|
|
import { nocodbBlock } from '@typebot.io/nocodb-block'
|
|
import { nocodbCredentialsSchema } from '@typebot.io/nocodb-block/schemas'
|
|
|
|
export const forgedCredentialsSchemas = {
|
|
[openAIBlock.id]: openAICredentialsSchema,
|
|
[zemanticAiBlock.id]: zemanticAiCredentialsSchema,
|
|
[calComBlock.id]: calComCredentialsSchema,
|
|
[chatNodeBlock.id]: chatNodeCredentialsSchema,
|
|
[qrCodeBlock.id]: qrCodeCredentialsSchema,
|
|
[difyAiBlock.id]: difyAiCredentialsSchema,
|
|
[mistralBlock.id]: mistralCredentialsSchema,
|
|
[elevenlabsBlock.id]: elevenlabsCredentialsSchema,
|
|
[anthropicBlock.id]: anthropicCredentialsSchema,
|
|
[togetherAiBlock.id]: togetherAiCredentialsSchema,
|
|
[openRouterBlock.id]: openRouterCredentialsSchema,
|
|
[nocodbBlock.id]: nocodbCredentialsSchema,
|
|
}
|