@gigabuddy/chat-sdk 0.1.12 → 0.1.14

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/lib/types.d.ts +10 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gigabuddy/chat-sdk",
3
- "version": "0.1.12",
3
+ "version": "0.1.14",
4
4
  "description": "Gigabuddy Chat SDK — embed AI-powered conversations in your app",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -30,8 +30,17 @@ export interface UserProfile {
30
30
  export type ConversationType = 'channel' | 'dm' | 'group_dm';
31
31
  export type ConversationVisibility = 'public' | 'private';
32
32
  export type MessageRole = 'member' | 'buddy' | 'operator' | 'system';
33
+ export interface FileContent {
34
+ type: 'file';
35
+ fileId: string;
36
+ url: string;
37
+ name: string;
38
+ contentType: string;
39
+ size: number;
40
+ text?: string;
41
+ }
33
42
  /** Rich message content — discriminated union */
34
- export type MessageContent = TextContent | GadgetContent | GadgetRefineContent | DataContent | SystemContent | CompositeContent;
43
+ export type MessageContent = TextContent | GadgetContent | GadgetRefineContent | DataContent | SystemContent | CompositeContent | FileContent;
35
44
  export interface TextContent {
36
45
  type: 'text';
37
46
  text: string;