🚀 Chat features
Chat features are SDK composers, not Express middleware; chatService mounts the Chat features with the required stores and drivers.
Inventory
| Feature | Composed schema(s) | Composed route(s) | Purpose |
|---|---|---|---|
createChannelFeature | createChatChannelSchema | createChatChannelRoute | Create a channel. |
getChannelFeature | getChatChannelSchema | getChatChannelRoute | Get one channel. |
findChannelsFeature | findChatChannelsSchema | findChatChannelsRoute | List channels with pagination. |
updateChannelFeature | updateChatChannelSchema | updateChatChannelRoute | Update a channel and optional icon. |
deleteChannelFeature | deleteChatChannelSchema | deleteChatChannelRoute | Delete a channel and optional icon. |
getChannelMessagesFeature | getChannelMessagesSchema | getChannelMessagesRoute | List a subscribed channel's messages. |
getChannelIconUploadUrlFeature | getSignedImageUploadUrlSchema | getChatChannelIconUploadUrlRoute | Issue a signed channel-icon upload URL. |
createChatMessageFeature | createChatMessageSchema | createChatMessageRoute | Create and normalize a message. |
getChatMessageFeature | getChatMessageSchema | getChatMessageRoute | Get and normalize one message. |
findChatMessagesFeature | findChatMessagesSchema | findChatMessagesRoute | List normalized messages with pagination. |
updateChatMessageFeature | updateChatMessageSchema | updateChatMessageRoute | Update an owned message. |
deleteChatMessageFeature | deleteChatMessageSchema | deleteChatMessageRoute | Delete a message. |
streamChatMessagesFeature | streamChatMessagesSchema | streamChatMessagesRoute | Register the WebSocket message stream. |
getChatMessageAttachmentUrlFeature | getSignedFileUploadUrlSchema | getChatMessageAttachmentUploadUrlRoute | Issue a signed attachment upload URL. |
createChatMessageAttachmentFeature | createChatMessageAttachmentSchema | createChatMessageAttachmentRoute | Attach uploaded file metadata to a message. |
deleteChatMessageAttachmentFeature | deleteChatMessageAttachmentSchema | deleteChatMessageAttachmentRoute | Delete attachment metadata and stored file. |
createChatMessageTemplateFeature | createChatMessageTemplateSchema | createChatMessageTemplateRoute | Create a message template. |
getChatMessageTemplateFeature | getChatMessageTemplateSchema | getChatMessageTemplateRoute | Get one message template. |
updateChatMessageTemplateFeature | updateChatMessageTemplateSchema | updateChatMessageTemplateRoute | Update a message template. |
deleteChatMessageTemplateFeature | deleteChatMessageTemplateSchema | deleteChatMessageTemplateRoute | Delete a message template. |
findChatMessageTemplatesFeature | findChatMessageTemplatesSchema | findChatMessageTemplatesRoute | List all templates as a global admin. |
findChatMessageTemplatesForOrganizationFeature | findChatMessageTemplatesForOrganizationSchema | findChatMessageTemplatesForOrganizationRoute | List templates for one organization. |
upsertChatChannelReadStateFeature | upsertChatChannelReadStateSchema | upsertChatChannelReadStateRoute | Create or update a channel read state. |
createChatSubscriptionFeature | createChatSubscriptionSchema | createChatSubscriptionRoute | Subscribe an identity to a channel. |
getChatSubscriptionFeature | getChatSubscriptionSchema | getChatSubscriptionRoute | Get one subscription. |
findChatSubscriptionsFeature | findChatSubscriptionsSchema | findChatSubscriptionsRoute | List subscriptions with pagination. |
deleteChatSubscriptionFeature | deleteChatSubscriptionSchema | deleteChatSubscriptionRoute | Delete 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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