Implements

Constructors

HandlerAndValidators

createMessage: HandlerAndValidators<{
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
    isOwnMessage: undefined | Predicate;
    isUserOrganization: undefined | Predicate;
    validBody: undefined | Predicate;
} & Record<string, Predicate>>

Description

Create a message handler and validators

handler: createMessageHandler

validators:

createMessageTemplate: HandlerAndValidators<{
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
    organizationExists: undefined | Predicate;
    validBody: undefined | Predicate;
} & Record<string, Predicate>>

Description

Create a message template handler and validators

handler: createMessageTemplateHandler

validators:

createSubscription: HandlerAndValidators<{
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
    validBody: undefined | Predicate;
    verifySubscriptionNotExist: undefined | Predicate;
} & Record<string, Predicate>>

Description

Create a subscription handler and validators

handler: createSubscriptionHandler

validators:

createTopic: HandlerAndValidators<{
    authentication: undefined | Predicate;
    validBody: undefined | Predicate;
} & Record<string, Predicate>>

Description

Create a topic handler and validators

handler: createTopicHandler

validators:

createTopicAttachment: HandlerAndValidators<{
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
    topicExists: undefined | Predicate;
    validBody: undefined | Predicate;
} & Record<string, Predicate>>

Description

Create a topic attachment handler and validators

handler: createAttachmentHandler

validators:

deleteMessage: HandlerAndValidators<{
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
    messageExists: undefined | Predicate;
} & Record<string, Predicate>>

Description

Delete a message handler and validators

handler: deleteMessageHandler

validators:

deleteMessageTemplate: HandlerAndValidators<{
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
    checkMessageTemplatePermission: undefined | Predicate;
} & Record<string, Predicate>>

Description

Delete a message template handler and validators

handler: deleteMessageTemplate

validators:

deleteSubscription: HandlerAndValidators<{
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
    subscriptionExists: undefined | Predicate;
} & Record<string, Predicate>>

Description

Delete a subscription handler and validators

handler: deleteSubscriptionHandler

validators:

deleteTopic: HandlerAndValidators<{
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
    topicExists: undefined | Predicate;
} & Record<string, Predicate>>

Description

Delete a topic handler and validators

handler: deleteTopicHandler

validators:

deleteTopicAttachment: HandlerAndValidators<{
    attachmentBelongsToTopic: undefined | Predicate;
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
    topicExists: undefined | Predicate;
} & Record<string, Predicate>>

Description

Delete a topic attachment handler and validators

handler: deleteAttachmentHandler

validators:

getMessage: HandlerAndValidators<{
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
    userCanSeeReadStatus: undefined | Predicate;
} & Record<string, Predicate>>

Description

Get a message handler and validators

handler: getMessageHandler

validators:

getMessageTemplate: HandlerAndValidators<{
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
    checkMessageTemplatePermission: undefined | Predicate;
} & Record<string, Predicate>>

Description

Get a message template handler and validators

handler: getMessageTemplateHandler

validators:

getSubscription: HandlerAndValidators<{
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
} & Record<string, Predicate>>

Description

Get a subscription handler and validators

handler: getSubscriptionHandler

validators:

getTopic: HandlerAndValidators<{
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
    userCanSeeReadStatus: undefined | Predicate;
} & Record<string, Predicate>>

Description

Get a topic handler and validators

handler: getTopicHandler

validators:

getTopicAttachment: HandlerAndValidators<{
    attachmentBelongsToTopic: undefined | Predicate;
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
    topicExists: undefined | Predicate;
} & Record<string, Predicate>>

Description

Get one topic attachment handler and validators

handler: getAttachmentHandler

validators:

getTopicAttachmentUploadUrl: HandlerAndValidators<{
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
    topicExists: undefined | Predicate;
} & Record<string, Predicate>>

Description

Get attachment upload url handler and validators

handler: getAttachmentUploadUrlHandler

validators:

listMessageTemplates: HandlerAndValidators<{
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
} & Record<string, Predicate>>

Description

Get message templates handler and validators

handler: listMessageTemplatesHandler

validators:

listMessageTemplatesForOrganization: HandlerAndValidators<{
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
} & Record<string, Predicate>>

Description

Get organization message templates handler and validators

handler: listMessageTemplatesForOrganizationHandler

validators:

listMessages: HandlerAndValidators<{
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
} & Record<string, Predicate>>

Description

Get messages handler and validators

handler: listMessagesHandler

validators:

listMessagesForPublic: HandlerAndValidators<Record<string, Predicate>>

Description

Get public messages handler and validators

handler: adapter.notFoundHandler

validators: {}

listMessagesForTopic: HandlerAndValidators<{
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
    topicExists: undefined | Predicate;
    userCanSeeReadStatus: undefined | Predicate;
} & Record<string, Predicate>>

Description

Get topic messages handler and validators

handler: listMessagesForTopicHandler

validators:

listMessagesForUser: HandlerAndValidators<{
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
} & Record<string, Predicate>>

Description

Get user messages handler and validators

handler: listMessagesForUserHandler

validators:

listSubscriptions: HandlerAndValidators<{
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
} & Record<string, Predicate>>

Description

Get subscriptions handler and validators

handler: listSubscriptionsHandler

validators:

listSubscriptionsForTopic: HandlerAndValidators<{
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
    topicExists: undefined | Predicate;
} & Record<string, Predicate>>

Description

Get topic subscriptions handler and validators

handler: listSubscriptionsForTopicHandler

validators:

listTopicAttachments: HandlerAndValidators<{
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
    topicExists: undefined | Predicate;
} & Record<string, Predicate>>

Description

Get topic attachments handler and validators

handler: getAttachmentsByOwnerHandler

validators:

listTopics: HandlerAndValidators<{
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
} & Record<string, Predicate>>

Description

Get topics handler and validators

handler: listTopicsHandler

validators:

listTopicsOwnedByOrganization: HandlerAndValidators<{
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
} & Record<string, Predicate>>

Description

Get topics owned by an organization handler and validators

handler: listTopicsOwnedByOrganizationHandler

validators:

listTopicsOwnedByUser: HandlerAndValidators<{
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
} & Record<string, Predicate>>

Description

Get user owned topics handler and validators

handler: listTopicsOwnedByUserHandler

validators:

listTopicsSubscribedByOrganization: HandlerAndValidators<{
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
    userCanSeeReadStatus: undefined | Predicate;
} & Record<string, Predicate>>

Description

Get user subscribed topics handler and validators

handler: listTopicsSubscribedByUserHandler

validators:

listTopicsSubscribedByUser: HandlerAndValidators<{
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
} & Record<string, Predicate>>

Description

Get user subscribed topics handler and validators

handler: listTopicsSubscribedByUserHandler

validators:

updateMessage: HandlerAndValidators<{
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
    messageExists: undefined | Predicate;
    validBody: undefined | Predicate;
} & Record<string, Predicate>>

Description

Update a message handler and validators

handler: updateMessageHandler

validators:

updateMessageReadStatus: HandlerAndValidators<{
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
    isSubscribedToTopic: undefined | Predicate;
    messageExists: undefined | Predicate;
    validBody: undefined | Predicate;
} & Record<string, Predicate>>

Description

Mark message read handler and validators

handler: updateMessageReadStatusHandler

validators:

updateMessageTemplate: HandlerAndValidators<{
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
    checkMessageTemplatePermission: undefined | Predicate;
    validBody: undefined | Predicate;
} & Record<string, Predicate>>

Description

Update a message template handler and validators

handler: updateMessageTemplateHandler

validators:

updateTopic: HandlerAndValidators<{
    authentication: undefined | Predicate;
    authorization: undefined | Predicate;
    isChannelTopic: undefined | Predicate;
    topicExists: undefined | Predicate;
    validBody: undefined | Predicate;
} & Record<string, Predicate>>

Description

Update a topic handler and validators

handler: updateTopicHandler

validators:

Properties

adapterName: string = ADAPTER_NAME
authSecrets: AuthSecrets
dataServices: {
    attachment: AttachmentDefaultService;
    chat: ChatDataService;
}

Type declaration

opts: Required<Omit<ChatDefaultAdapterOptions, "customFields" | (keyof AuthSecrets)> & {
    customFields: Required<{
        message?: CustomField[];
        subscription?: CustomField[];
        topic?: CustomField[];
    }>;
}>

Generated using TypeDoc