mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-26 18:38:39 -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' },
|
keepOpen: { type: 'boolean' },
|
||||||
debounceTime: { type: 'integer' },
|
debounceTime: { type: 'integer' },
|
||||||
ignoreJids: { type: 'array', items: { type: 'string' } },
|
ignoreJids: { type: 'array', items: { type: 'string' } },
|
||||||
|
splitMessages: {type: 'boolean'},
|
||||||
|
timePerChar: {type: 'integer'}
|
||||||
},
|
},
|
||||||
required: ['enabled', 'apiUrl', 'triggerType'],
|
required: ['enabled', 'apiUrl', 'triggerType'],
|
||||||
...isNotEmpty('enabled', 'apiUrl', 'triggerType'),
|
...isNotEmpty('enabled', 'apiUrl', 'triggerType'),
|
||||||
@ -70,6 +72,8 @@ export const evolutionBotSettingSchema: JSONSchema7 = {
|
|||||||
debounceTime: { type: 'integer' },
|
debounceTime: { type: 'integer' },
|
||||||
ignoreJids: { type: 'array', items: { type: 'string' } },
|
ignoreJids: { type: 'array', items: { type: 'string' } },
|
||||||
botIdFallback: { type: 'string' },
|
botIdFallback: { type: 'string' },
|
||||||
|
splitMessages: {type: 'boolean'},
|
||||||
|
timePerChar: {type: 'integer'}
|
||||||
},
|
},
|
||||||
required: [
|
required: [
|
||||||
'expire',
|
'expire',
|
||||||
@ -81,6 +85,8 @@ export const evolutionBotSettingSchema: JSONSchema7 = {
|
|||||||
'keepOpen',
|
'keepOpen',
|
||||||
'debounceTime',
|
'debounceTime',
|
||||||
'ignoreJids',
|
'ignoreJids',
|
||||||
|
'splitMessages',
|
||||||
|
'timePerChar'
|
||||||
],
|
],
|
||||||
...isNotEmpty(
|
...isNotEmpty(
|
||||||
'expire',
|
'expire',
|
||||||
@ -92,6 +98,8 @@ export const evolutionBotSettingSchema: JSONSchema7 = {
|
|||||||
'keepOpen',
|
'keepOpen',
|
||||||
'debounceTime',
|
'debounceTime',
|
||||||
'ignoreJids',
|
'ignoreJids',
|
||||||
|
'splitMessages',
|
||||||
|
'timePerChar'
|
||||||
),
|
),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user