@minicode-dev/chat 0.1.10 → 0.1.11

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/index.d.ts CHANGED
@@ -122,7 +122,7 @@ export interface ChatCustomEmoji {
122
122
  }
123
123
 
124
124
  export type ChatEffectId = 'nudge' | 'pig-disco' | 'confetti';
125
- export interface ChatEffectEvent { effectId: ChatEffectId; id: string; sentAt: number; }
125
+ export interface ChatEffectEvent { effectId: ChatEffectId; id: string; sentAt: number; /** Countdown deadline, at most 24 hours after sentAt. */ endsAt?: number; sound?: boolean; }
126
126
  export interface ChatEffectDefinition {
127
127
  id: ChatEffectId;
128
128
  label: string;
@@ -151,7 +151,7 @@ export interface ChatEffectsConfig {
151
151
  export const EFFECT_CATALOG: readonly ChatEffectDefinition[];
152
152
  export function getChatEffect(id: string): ChatEffectDefinition | undefined;
153
153
  export const EFFECT_PREFIX: string;
154
- export function encodeEffect(event: { effectId: ChatEffectId; id?: string; sentAt?: number }): string;
154
+ export function encodeEffect(event: { effectId: ChatEffectId; id?: string; sentAt?: number; endsAt?: number; sound?: boolean }): string;
155
155
  export function decodeEffect(text: unknown): ChatEffectEvent | null;
156
156
 
157
157
  export interface ChatStorageAdapter {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minicode-dev/chat",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "private": false,
5
5
  "description": "LIRA real-time chat (WebSocket, media, games) as a React package.",
6
6
  "author": "Minicode",