feat: Added Typebot integration

This commit is contained in:
Davidson Gomes
2023-08-07 15:43:57 -03:00
parent a16b5f4644
commit 7c5d94c19e
11 changed files with 140 additions and 63 deletions

View File

@@ -983,11 +983,24 @@ export const typebotSchema: JSONSchema7 = {
url: { type: 'string' },
typebot: { type: 'string' },
expire: { type: 'integer' },
delay_message: { type: 'integer' },
unknown_message: { type: 'string' },
},
required: ['enabled', 'url', 'typebot', 'expire'],
...isNotEmpty('enabled', 'url', 'typebot', 'expire'),
};
export const typebotStatusSchema: JSONSchema7 = {
$id: v4(),
type: 'object',
properties: {
remoteJid: { type: 'string' },
status: { type: 'string', enum: ['opened', 'closed', 'paused'] },
},
required: ['remoteJid', 'status'],
...isNotEmpty('remoteJid', 'status'),
};
export const proxySchema: JSONSchema7 = {
$id: v4(),
type: 'object',