Skip to main content
Version: 0.14.0 (Latest)

🚀 Chat features

Chat features are SDK composers, not Express middleware; chatService mounts the Chat features with the required stores and drivers.

Inventory

FeatureComposed schema(s)Composed route(s)Purpose
createChannelFeaturecreateChatChannelSchemacreateChatChannelRouteCreate a channel.
getChannelFeaturegetChatChannelSchemagetChatChannelRouteGet one channel.
findChannelsFeaturefindChatChannelsSchemafindChatChannelsRouteList channels with pagination.
updateChannelFeatureupdateChatChannelSchemaupdateChatChannelRouteUpdate a channel and optional icon.
deleteChannelFeaturedeleteChatChannelSchemadeleteChatChannelRouteDelete a channel and optional icon.
getChannelMessagesFeaturegetChannelMessagesSchemagetChannelMessagesRouteList a subscribed channel's messages.
getChannelIconUploadUrlFeaturegetSignedImageUploadUrlSchemagetChatChannelIconUploadUrlRouteIssue a signed channel-icon upload URL.
createChatMessageFeaturecreateChatMessageSchemacreateChatMessageRouteCreate and normalize a message.
getChatMessageFeaturegetChatMessageSchemagetChatMessageRouteGet and normalize one message.
findChatMessagesFeaturefindChatMessagesSchemafindChatMessagesRouteList normalized messages with pagination.
updateChatMessageFeatureupdateChatMessageSchemaupdateChatMessageRouteUpdate an owned message.
deleteChatMessageFeaturedeleteChatMessageSchemadeleteChatMessageRouteDelete a message.
streamChatMessagesFeaturestreamChatMessagesSchemastreamChatMessagesRouteRegister the WebSocket message stream.
getChatMessageAttachmentUrlFeaturegetSignedFileUploadUrlSchemagetChatMessageAttachmentUploadUrlRouteIssue a signed attachment upload URL.
createChatMessageAttachmentFeaturecreateChatMessageAttachmentSchemacreateChatMessageAttachmentRouteAttach uploaded file metadata to a message.
deleteChatMessageAttachmentFeaturedeleteChatMessageAttachmentSchemadeleteChatMessageAttachmentRouteDelete attachment metadata and stored file.
createChatMessageTemplateFeaturecreateChatMessageTemplateSchemacreateChatMessageTemplateRouteCreate a message template.
getChatMessageTemplateFeaturegetChatMessageTemplateSchemagetChatMessageTemplateRouteGet one message template.
updateChatMessageTemplateFeatureupdateChatMessageTemplateSchemaupdateChatMessageTemplateRouteUpdate a message template.
deleteChatMessageTemplateFeaturedeleteChatMessageTemplateSchemadeleteChatMessageTemplateRouteDelete a message template.
findChatMessageTemplatesFeaturefindChatMessageTemplatesSchemafindChatMessageTemplatesRouteList all templates as a global admin.
findChatMessageTemplatesForOrganizationFeaturefindChatMessageTemplatesForOrganizationSchemafindChatMessageTemplatesForOrganizationRouteList templates for one organization.
upsertChatChannelReadStateFeatureupsertChatChannelReadStateSchemaupsertChatChannelReadStateRouteCreate or update a channel read state.
createChatSubscriptionFeaturecreateChatSubscriptionSchemacreateChatSubscriptionRouteSubscribe an identity to a channel.
getChatSubscriptionFeaturegetChatSubscriptionSchemagetChatSubscriptionRouteGet one subscription.
findChatSubscriptionsFeaturefindChatSubscriptionsSchemafindChatSubscriptionsRouteList subscriptions with pagination.
deleteChatSubscriptionFeaturedeleteChatSubscriptionSchemadeleteChatSubscriptionRouteDelete a subscription.

Details

Each feature is mounted by chatService. The source definitions below show the exact schema-to-route composition.

createChannelFeature

Implementation

This feature composes the schema and route linked in its inventory row; it is mounted by chatService or a compatible custom service context.

View complete source
export const createChannelFeature = compose(
createChatChannelSchema,
createChatChannelRoute
);

getChannelFeature

Implementation

This feature composes the schema and route linked in its inventory row; it is mounted by chatService or a compatible custom service context.

View complete source
export const getChannelFeature = compose(
getChatChannelSchema,
getChatChannelRoute
);

findChannelsFeature

Implementation

This feature composes the schema and route linked in its inventory row; it is mounted by chatService or a compatible custom service context.

View complete source
export const findChannelsFeature = compose(
findChatChannelsSchema,
findChatChannelsRoute
);

updateChannelFeature

Implementation

This feature composes the schema and route linked in its inventory row; it is mounted by chatService or a compatible custom service context.

View complete source
export const updateChannelFeature = compose(
updateChatChannelSchema,
updateChatChannelRoute
);

deleteChannelFeature

Implementation

This feature composes the schema and route linked in its inventory row; it is mounted by chatService or a compatible custom service context.

View complete source
export const deleteChannelFeature = compose(
deleteChatChannelSchema,
deleteChatChannelRoute
);

getChannelMessagesFeature

Implementation

This feature composes the schema and route linked in its inventory row; it is mounted by chatService or a compatible custom service context.

View complete source
export const getChannelMessagesFeature = compose(
getChannelMessagesSchema,
getChannelMessagesRoute
);

getChannelIconUploadUrlFeature

Implementation

This feature composes the schema and route linked in its inventory row; it is mounted by chatService or a compatible custom service context.

The route requires the optional fileStorageDriver supplied to chatService.

View complete source
export const getChannelIconUploadUrlFeature = compose(
getSignedImageUploadUrlSchema,
getChatChannelIconUploadUrlRoute
);

createChatMessageFeature

Implementation

This feature composes the schema and route linked in its inventory row; it is mounted by chatService or a compatible custom service context.

View complete source
export const createChatMessageFeature = compose(
createChatMessageSchema,
createChatMessageRoute
);

getChatMessageFeature

Implementation

This feature composes the schema and route linked in its inventory row; it is mounted by chatService or a compatible custom service context.

View complete source
export const getChatMessageFeature = compose(
getChatMessageSchema,
getChatMessageRoute
);

findChatMessagesFeature

Implementation

This feature composes the schema and route linked in its inventory row; it is mounted by chatService or a compatible custom service context.

View complete source
export const findChatMessagesFeature = compose(
findChatMessagesSchema,
findChatMessagesRoute
);

updateChatMessageFeature

Implementation

This feature composes the schema and route linked in its inventory row; it is mounted by chatService or a compatible custom service context.

View complete source
export const updateChatMessageFeature = compose(
updateChatMessageSchema,
updateChatMessageRoute
);

deleteChatMessageFeature

Implementation

This feature composes the schema and route linked in its inventory row; it is mounted by chatService or a compatible custom service context.

View complete source
export const deleteChatMessageFeature = compose(
deleteChatMessageSchema,
deleteChatMessageRoute
);

streamChatMessagesFeature

Implementation

This feature composes the schema and route linked in its inventory row; it is mounted by chatService or a compatible custom service context.

Requires webSocketServer in a custom composition; its route currently composes no active access validators.

View complete source
export const streamChatMessagesFeature = compose(
streamChatMessagesSchema,
streamChatMessagesRoute
);

getChatMessageAttachmentUrlFeature

Implementation

This feature composes the schema and route linked in its inventory row; it is mounted by chatService or a compatible custom service context.

The route requires the optional fileStorageDriver supplied to chatService.

View complete source
export const getChatMessageAttachmentUrlFeature = compose(
getSignedFileUploadUrlSchema,
getChatMessageAttachmentUploadUrlRoute
);

createChatMessageAttachmentFeature

Implementation

This feature composes the schema and route linked in its inventory row; it is mounted by chatService or a compatible custom service context.

View complete source
export const createChatMessageAttachmentFeature = compose(
createChatMessageAttachmentSchema,
createChatMessageAttachmentRoute
);

deleteChatMessageAttachmentFeature

Implementation

This feature composes the schema and route linked in its inventory row; it is mounted by chatService or a compatible custom service context.

View complete source
export const deleteChatMessageAttachmentFeature = compose(
deleteChatMessageAttachmentSchema,
deleteChatMessageAttachmentRoute
);

createChatMessageTemplateFeature

Implementation

This feature composes the schema and route linked in its inventory row; it is mounted by chatService or a compatible custom service context.

View complete source
export const createChatMessageTemplateFeature = compose(
createChatMessageTemplateSchema,
createChatMessageTemplateRoute
);

getChatMessageTemplateFeature

Implementation

This feature composes the schema and route linked in its inventory row; it is mounted by chatService or a compatible custom service context.

View complete source
export const getChatMessageTemplateFeature = compose(
getChatMessageTemplateSchema,
getChatMessageTemplateRoute
);

updateChatMessageTemplateFeature

Implementation

This feature composes the schema and route linked in its inventory row; it is mounted by chatService or a compatible custom service context.

View complete source
export const updateChatMessageTemplateFeature = compose(
updateChatMessageTemplateSchema,
updateChatMessageTemplateRoute
);

deleteChatMessageTemplateFeature

Implementation

This feature composes the schema and route linked in its inventory row; it is mounted by chatService or a compatible custom service context.

View complete source
export const deleteChatMessageTemplateFeature = compose(
deleteChatMessageTemplateSchema,
deleteChatMessageTemplateRoute
);

findChatMessageTemplatesFeature

Implementation

This feature composes the schema and route linked in its inventory row; it is mounted by chatService or a compatible custom service context.

View complete source
export const findChatMessageTemplatesFeature = compose(
findChatMessageTemplatesSchema,
findChatMessageTemplatesRoute
);

findChatMessageTemplatesForOrganizationFeature

Implementation

This feature composes the schema and route linked in its inventory row; it is mounted by chatService or a compatible custom service context.

View complete source
export const findChatMessageTemplatesForOrganizationFeature = compose(
findChatMessageTemplatesForOrganizationSchema,
findChatMessageTemplatesForOrganizationRoute
);

upsertChatChannelReadStateFeature

Implementation

This feature composes the schema and route linked in its inventory row; it is mounted by chatService or a compatible custom service context.

View complete source
export const upsertChatChannelReadStateFeature = compose(
upsertChatChannelReadStateSchema,
upsertChatChannelReadStateRoute
);

createChatSubscriptionFeature

Implementation

This feature composes the schema and route linked in its inventory row; it is mounted by chatService or a compatible custom service context.

View complete source
export const createChatSubscriptionFeature = compose(
createChatSubscriptionSchema,
createChatSubscriptionRoute
);

getChatSubscriptionFeature

Implementation

This feature composes the schema and route linked in its inventory row; it is mounted by chatService or a compatible custom service context.

View complete source
export const getChatSubscriptionFeature = compose(
getChatSubscriptionSchema,
getChatSubscriptionRoute
);

findChatSubscriptionsFeature

Implementation

This feature composes the schema and route linked in its inventory row; it is mounted by chatService or a compatible custom service context.

View complete source
export const findChatSubscriptionsFeature = compose(
findChatSubscriptionsSchema,
findChatSubscriptionsRoute
);

deleteChatSubscriptionFeature

Implementation

This feature composes the schema and route linked in its inventory row; it is mounted by chatService or a compatible custom service context.

View complete source
export const deleteChatSubscriptionFeature = compose(
deleteChatSubscriptionSchema,
deleteChatSubscriptionRoute
);