@linktr.ee/messaging-react 1.21.2 → 1.22.0-rc-1771556455

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -150,6 +150,8 @@ export declare interface ChannelViewProps {
150
150
  customChannelActions?: React.ReactNode;
151
151
  }
152
152
 
153
+ declare type DmAgentSystemType = 'SYSTEM_DM_AGENT_PAUSED' | 'SYSTEM_DM_AGENT_RESUMED';
154
+
153
155
  export declare interface Faq {
154
156
  id: string;
155
157
  question: string;
@@ -185,12 +187,14 @@ export declare interface FaqListProps {
185
187
  */
186
188
  export declare const formatRelativeTime: (date: Date) => string;
187
189
 
190
+ declare type MessageCustomType = 'MESSAGE_TIP' | 'MESSAGE_PAID' | 'MESSAGE_CHATBOT' | DmAgentSystemType;
191
+
188
192
  /**
189
193
  * Message metadata for paid messaging and chatbot flows.
190
194
  * Used to identify message types and payment status.
191
195
  */
192
196
  export declare interface MessageMetadata {
193
- custom_type?: 'MESSAGE_TIP' | 'MESSAGE_PAID' | 'MESSAGE_CHATBOT';
197
+ custom_type?: MessageCustomType;
194
198
  amount_text?: string;
195
199
  payment_status?: string;
196
200
  payment_intent_id?: string;
@@ -406,6 +410,11 @@ declare module 'stream-chat' {
406
410
  * Contains type and payment information.
407
411
  */
408
412
  metadata?: MessageMetadata;
413
+ /**
414
+ * DM Agent-specific system message type.
415
+ * Used as a fallback when metadata.custom_type is not available.
416
+ */
417
+ dm_agent_system_type?: DmAgentSystemType;
409
418
  }
410
419
  }
411
420