HandlerAndValidators
createMessage
createMessage: HandlerAndValidators<{
authentication: undefined | Predicate;
authorization: undefined | Predicate;
isOwnMessage: undefined | Predicate;
isUserOrganization: undefined | Predicate;
validBody: undefined | Predicate;
} & Record<string, Predicate>>
createMessageTemplate
createMessageTemplate: HandlerAndValidators<{
authentication: undefined | Predicate;
authorization: undefined | Predicate;
organizationExists: undefined | Predicate;
validBody: undefined | Predicate;
} & Record<string, Predicate>>
createSubscription
createSubscription: HandlerAndValidators<{
authentication: undefined | Predicate;
authorization: undefined | Predicate;
validBody: undefined | Predicate;
verifySubscriptionNotExist: undefined | Predicate;
} & Record<string, Predicate>>
createTopic
createTopic: HandlerAndValidators<{
authentication: undefined | Predicate;
validBody: undefined | Predicate;
} & Record<string, Predicate>>
createTopicAttachment
createTopicAttachment: HandlerAndValidators<{
authentication: undefined | Predicate;
authorization: undefined | Predicate;
topicExists: undefined | Predicate;
validBody: undefined | Predicate;
} & Record<string, Predicate>>
deleteMessage
deleteMessage: HandlerAndValidators<{
authentication: undefined | Predicate;
authorization: undefined | Predicate;
messageExists: undefined | Predicate;
} & Record<string, Predicate>>
deleteMessageTemplate
deleteMessageTemplate: HandlerAndValidators<{
authentication: undefined | Predicate;
authorization: undefined | Predicate;
checkMessageTemplatePermission: undefined | Predicate;
} & Record<string, Predicate>>
deleteSubscription
deleteSubscription: HandlerAndValidators<{
authentication: undefined | Predicate;
authorization: undefined | Predicate;
subscriptionExists: undefined | Predicate;
} & Record<string, Predicate>>
deleteTopic
deleteTopic: HandlerAndValidators<{
authentication: undefined | Predicate;
authorization: undefined | Predicate;
topicExists: undefined | Predicate;
} & Record<string, Predicate>>
deleteTopicAttachment
deleteTopicAttachment: HandlerAndValidators<{
attachmentBelongsToTopic: undefined | Predicate;
authentication: undefined | Predicate;
authorization: undefined | Predicate;
topicExists: undefined | Predicate;
} & Record<string, Predicate>>
getMessage
getMessage: HandlerAndValidators<{
authentication: undefined | Predicate;
authorization: undefined | Predicate;
userCanSeeReadStatus: undefined | Predicate;
} & Record<string, Predicate>>
getMessageTemplate
getMessageTemplate: HandlerAndValidators<{
authentication: undefined | Predicate;
authorization: undefined | Predicate;
checkMessageTemplatePermission: undefined | Predicate;
} & Record<string, Predicate>>
getSubscription
getSubscription: HandlerAndValidators<{
authentication: undefined | Predicate;
authorization: undefined | Predicate;
} & Record<string, Predicate>>
getTopic
getTopic: HandlerAndValidators<{
authentication: undefined | Predicate;
authorization: undefined | Predicate;
userCanSeeReadStatus: undefined | Predicate;
} & Record<string, Predicate>>
getTopicAttachment
getTopicAttachment: HandlerAndValidators<{
attachmentBelongsToTopic: undefined | Predicate;
authentication: undefined | Predicate;
authorization: undefined | Predicate;
topicExists: undefined | Predicate;
} & Record<string, Predicate>>
getTopicAttachmentUploadUrl
getTopicAttachmentUploadUrl: HandlerAndValidators<{
authentication: undefined | Predicate;
authorization: undefined | Predicate;
topicExists: undefined | Predicate;
} & Record<string, Predicate>>
listMessageTemplates
listMessageTemplates: HandlerAndValidators<{
authentication: undefined | Predicate;
authorization: undefined | Predicate;
} & Record<string, Predicate>>
listMessageTemplatesForOrganization
listMessageTemplatesForOrganization: HandlerAndValidators<{
authentication: undefined | Predicate;
authorization: undefined | Predicate;
} & Record<string, Predicate>>
listMessages
listMessages: HandlerAndValidators<{
authentication: undefined | Predicate;
authorization: undefined | Predicate;
} & Record<string, Predicate>>
listMessagesForPublic
listMessagesForPublic: HandlerAndValidators<Record<string, Predicate>>
listMessagesForTopic
listMessagesForTopic: HandlerAndValidators<{
authentication: undefined | Predicate;
authorization: undefined | Predicate;
topicExists: undefined | Predicate;
userCanSeeReadStatus: undefined | Predicate;
} & Record<string, Predicate>>
listMessagesForUser
listMessagesForUser: HandlerAndValidators<{
authentication: undefined | Predicate;
authorization: undefined | Predicate;
} & Record<string, Predicate>>
listSubscriptions
listSubscriptions: HandlerAndValidators<{
authentication: undefined | Predicate;
authorization: undefined | Predicate;
} & Record<string, Predicate>>
listSubscriptionsForTopic
listSubscriptionsForTopic: HandlerAndValidators<{
authentication: undefined | Predicate;
authorization: undefined | Predicate;
topicExists: undefined | Predicate;
} & Record<string, Predicate>>
listTopicAttachments
listTopicAttachments: HandlerAndValidators<{
authentication: undefined | Predicate;
authorization: undefined | Predicate;
topicExists: undefined | Predicate;
} & Record<string, Predicate>>
listTopics
listTopics: HandlerAndValidators<{
authentication: undefined | Predicate;
authorization: undefined | Predicate;
} & Record<string, Predicate>>
listTopicsOwnedByOrganization
listTopicsOwnedByOrganization: HandlerAndValidators<{
authentication: undefined | Predicate;
authorization: undefined | Predicate;
} & Record<string, Predicate>>
listTopicsOwnedByUser
listTopicsOwnedByUser: HandlerAndValidators<{
authentication: undefined | Predicate;
authorization: undefined | Predicate;
} & Record<string, Predicate>>
listTopicsSubscribedByOrganization
listTopicsSubscribedByOrganization: HandlerAndValidators<{
authentication: undefined | Predicate;
authorization: undefined | Predicate;
userCanSeeReadStatus: undefined | Predicate;
} & Record<string, Predicate>>
listTopicsSubscribedByUser
listTopicsSubscribedByUser: HandlerAndValidators<{
authentication: undefined | Predicate;
authorization: undefined | Predicate;
} & Record<string, Predicate>>
updateMessage
updateMessage: HandlerAndValidators<{
authentication: undefined | Predicate;
authorization: undefined | Predicate;
messageExists: undefined | Predicate;
validBody: undefined | Predicate;
} & Record<string, Predicate>>
updateMessageReadStatus
updateMessageReadStatus: HandlerAndValidators<{
authentication: undefined | Predicate;
authorization: undefined | Predicate;
isSubscribedToTopic: undefined | Predicate;
messageExists: undefined | Predicate;
validBody: undefined | Predicate;
} & Record<string, Predicate>>
updateMessageTemplate
updateMessageTemplate: HandlerAndValidators<{
authentication: undefined | Predicate;
authorization: undefined | Predicate;
checkMessageTemplatePermission: undefined | Predicate;
validBody: undefined | Predicate;
} & Record<string, Predicate>>
updateTopic
updateTopic: HandlerAndValidators<{
authentication: undefined | Predicate;
authorization: undefined | Predicate;
isChannelTopic: undefined | Predicate;
topicExists: undefined | Predicate;
validBody: undefined | Predicate;
} & Record<string, Predicate>>
Description
Create a message handler and validators
handler: createMessageHandler
validators: