add send presence router

This commit is contained in:
Gabriel Pastori
2023-12-06 00:31:35 -03:00
parent 4c69b059d4
commit ee0f0f0be0
5 changed files with 76 additions and 0 deletions

View File

@@ -149,6 +149,16 @@ export const textMessageSchema: JSONSchema7 = {
required: ['textMessage', 'number'],
};
export const presenceSchema: JSONSchema7 = {
$id: v4(),
type: 'object',
properties: {
number: { ...numberDefinition },
options: { ...optionsSchema, required: ['presence', 'delay'] },
},
required: ['options', 'number'],
};
export const pollMessageSchema: JSONSchema7 = {
$id: v4(),
type: 'object',