feat: Inegration with Chama AI

This commit is contained in:
Davidson Gomes
2023-08-19 10:42:41 -03:00
parent bf09a70096
commit a2cd57d9c6
14 changed files with 477 additions and 4 deletions

View File

@@ -1023,3 +1023,17 @@ export const proxySchema: JSONSchema7 = {
required: ['enabled', 'proxy'],
...isNotEmpty('enabled', 'proxy'),
};
export const chamaaiSchema: JSONSchema7 = {
$id: v4(),
type: 'object',
properties: {
enabled: { type: 'boolean', enum: [true, false] },
url: { type: 'string' },
token: { type: 'string' },
waNumber: { type: 'string' },
answerByAudio: { type: 'boolean', enum: [true, false] },
},
required: ['enabled', 'url', 'token', 'waNumber', 'answerByAudio'],
...isNotEmpty('enabled', 'url', 'token', 'waNumber', 'answerByAudio'),
};