mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-26 10:28:38 -06:00
feat: add support for splitMessages and timePerChar in JSON schema validation for EvolutionBot
This commit is contained in:
parent
cd2a687751
commit
41bb7582f2
@ -40,6 +40,8 @@ export const evolutionBotSchema: JSONSchema7 = {
|
||||
keepOpen: { type: 'boolean' },
|
||||
debounceTime: { type: 'integer' },
|
||||
ignoreJids: { type: 'array', items: { type: 'string' } },
|
||||
splitMessages: {type: 'boolean'},
|
||||
timePerChar: {type: 'integer'}
|
||||
},
|
||||
required: ['enabled', 'apiUrl', 'triggerType'],
|
||||
...isNotEmpty('enabled', 'apiUrl', 'triggerType'),
|
||||
@ -70,6 +72,8 @@ export const evolutionBotSettingSchema: JSONSchema7 = {
|
||||
debounceTime: { type: 'integer' },
|
||||
ignoreJids: { type: 'array', items: { type: 'string' } },
|
||||
botIdFallback: { type: 'string' },
|
||||
splitMessages: {type: 'boolean'},
|
||||
timePerChar: {type: 'integer'}
|
||||
},
|
||||
required: [
|
||||
'expire',
|
||||
@ -81,6 +85,8 @@ export const evolutionBotSettingSchema: JSONSchema7 = {
|
||||
'keepOpen',
|
||||
'debounceTime',
|
||||
'ignoreJids',
|
||||
'splitMessages',
|
||||
'timePerChar'
|
||||
],
|
||||
...isNotEmpty(
|
||||
'expire',
|
||||
@ -92,6 +98,8 @@ export const evolutionBotSettingSchema: JSONSchema7 = {
|
||||
'keepOpen',
|
||||
'debounceTime',
|
||||
'ignoreJids',
|
||||
'splitMessages',
|
||||
'timePerChar'
|
||||
),
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user