@sendbird/ai-agent-messenger-react-native 1.9.0 → 1.10.0

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
@@ -420,6 +420,9 @@ declare interface AIAgentInterface {
420
420
  /** The context object for AI Agent */
421
421
  context?: Record<string, string>;
422
422
 
423
+ /** @internal Agent version for conversation initialization */
424
+ agentVersion?: number;
425
+
423
426
  /** @internal Stats trackers for performance monitoring */
424
427
  readonly statsTrackers: {
425
428
  initialRender: ConversationInitialRenderStatsTracker;
@@ -447,6 +450,9 @@ declare interface AIAgentInterface {
447
450
  /** @internal Refreshes the active channel by re-requesting messenger settings */
448
451
  refreshActiveChannel: (options?: { useKnownActiveChannelUrl?: boolean }) => Promise<string>;
449
452
 
453
+ /** @internal Initializes a conversation on the channel if needed (AI Agent channel without conversation). */
454
+ initConversationIfNeeded: (channel: GroupChannel) => Promise<void>;
455
+
450
456
  /** Disposes all resources held by this instance (WebSocket, desk auth, event handlers). */
451
457
  dispose: () => void;
452
458
 
@@ -2092,6 +2098,7 @@ BaseMessageProps<{
2092
2098
  nickname: string;
2093
2099
  profileUrl?: string;
2094
2100
  };
2101
+ thinkingMessage?: string;
2095
2102
 
2096
2103
  // flags
2097
2104
  suggestedRepliesVisible?: boolean;
@@ -2144,7 +2151,7 @@ export declare const IncomingMessageLayout: {
2144
2151
  containerStyle?: ViewStyle;
2145
2152
  }) => JSX.Element | null;
2146
2153
  MessageBody: (props: IncomingMessageBodyProps) => JSX.Element;
2147
- TypingIndicator: ({ customStyle, containerStyle }: IncomingMessageProps & {
2154
+ TypingIndicator: ({ thinkingMessage, customStyle, containerStyle }: IncomingMessageProps & {
2148
2155
  containerStyle?: ViewStyle;
2149
2156
  customStyle?: {
2150
2157
  bubbleContentColor?: string;
@@ -2168,6 +2175,7 @@ export declare const IncomingMessageLayout: {
2168
2175
  nickname: string;
2169
2176
  profileUrl?: string;
2170
2177
  };
2178
+ thinkingMessage?: string;
2171
2179
  suggestedRepliesVisible?: boolean;
2172
2180
  suggestedRepliesDirection?: "vertical" | "horizontal";
2173
2181
  isBotMessage?: boolean;
@@ -2240,6 +2248,7 @@ export declare const IncomingMessageLayout: {
2240
2248
  nickname: string;
2241
2249
  profileUrl?: string;
2242
2250
  };
2251
+ thinkingMessage?: string;
2243
2252
  suggestedRepliesVisible?: boolean;
2244
2253
  suggestedRepliesDirection?: "vertical" | "horizontal";
2245
2254
  isBotMessage?: boolean;
@@ -2312,6 +2321,7 @@ export declare const IncomingMessageLayout: {
2312
2321
  nickname: string;
2313
2322
  profileUrl?: string;
2314
2323
  };
2324
+ thinkingMessage?: string;
2315
2325
  suggestedRepliesVisible?: boolean;
2316
2326
  suggestedRepliesDirection?: "vertical" | "horizontal";
2317
2327
  isBotMessage?: boolean;
@@ -2393,7 +2403,7 @@ export declare const IncomingMessageLayout: {
2393
2403
  containerStyle?: ViewStyle;
2394
2404
  }) => JSX.Element | null;
2395
2405
  MessageBody: (props: IncomingMessageBodyProps) => JSX.Element;
2396
- TypingIndicator: ({ customStyle, containerStyle }: IncomingMessageProps & {
2406
+ TypingIndicator: ({ thinkingMessage, customStyle, containerStyle }: IncomingMessageProps & {
2397
2407
  containerStyle?: ViewStyle;
2398
2408
  customStyle?: {
2399
2409
  bubbleContentColor?: string;
@@ -2417,6 +2427,7 @@ export declare const IncomingMessageLayout: {
2417
2427
  nickname: string;
2418
2428
  profileUrl?: string;
2419
2429
  };
2430
+ thinkingMessage?: string;
2420
2431
  suggestedRepliesVisible?: boolean;
2421
2432
  suggestedRepliesDirection?: "vertical" | "horizontal";
2422
2433
  isBotMessage?: boolean;
@@ -2489,6 +2500,7 @@ export declare const IncomingMessageLayout: {
2489
2500
  nickname: string;
2490
2501
  profileUrl?: string;
2491
2502
  };
2503
+ thinkingMessage?: string;
2492
2504
  suggestedRepliesVisible?: boolean;
2493
2505
  suggestedRepliesDirection?: "vertical" | "horizontal";
2494
2506
  isBotMessage?: boolean;
@@ -2561,6 +2573,7 @@ export declare const IncomingMessageLayout: {
2561
2573
  nickname: string;
2562
2574
  profileUrl?: string;
2563
2575
  };
2576
+ thinkingMessage?: string;
2564
2577
  suggestedRepliesVisible?: boolean;
2565
2578
  suggestedRepliesDirection?: "vertical" | "horizontal";
2566
2579
  isBotMessage?: boolean;
@@ -2637,7 +2650,7 @@ export declare const IncomingMessageLayout: {
2637
2650
  containerStyle?: ViewStyle;
2638
2651
  }) => JSX.Element | null;
2639
2652
  MessageBody: (props: IncomingMessageBodyProps) => JSX.Element;
2640
- TypingIndicator: ({ customStyle, containerStyle }: IncomingMessageProps & {
2653
+ TypingIndicator: ({ thinkingMessage, customStyle, containerStyle }: IncomingMessageProps & {
2641
2654
  containerStyle?: ViewStyle;
2642
2655
  customStyle?: {
2643
2656
  bubbleContentColor?: string;
@@ -2661,6 +2674,7 @@ export declare const IncomingMessageLayout: {
2661
2674
  nickname: string;
2662
2675
  profileUrl?: string;
2663
2676
  };
2677
+ thinkingMessage?: string;
2664
2678
  suggestedRepliesVisible?: boolean;
2665
2679
  suggestedRepliesDirection?: "vertical" | "horizontal";
2666
2680
  isBotMessage?: boolean;
@@ -2733,6 +2747,7 @@ export declare const IncomingMessageLayout: {
2733
2747
  nickname: string;
2734
2748
  profileUrl?: string;
2735
2749
  };
2750
+ thinkingMessage?: string;
2736
2751
  suggestedRepliesVisible?: boolean;
2737
2752
  suggestedRepliesDirection?: "vertical" | "horizontal";
2738
2753
  isBotMessage?: boolean;
@@ -2805,6 +2820,7 @@ export declare const IncomingMessageLayout: {
2805
2820
  nickname: string;
2806
2821
  profileUrl?: string;
2807
2822
  };
2823
+ thinkingMessage?: string;
2808
2824
  suggestedRepliesVisible?: boolean;
2809
2825
  suggestedRepliesDirection?: "vertical" | "horizontal";
2810
2826
  isBotMessage?: boolean;
@@ -2890,7 +2906,7 @@ export declare const IncomingMessageLayout: {
2890
2906
  component: (props: IncomingMessageBodyProps) => JSX.Element;
2891
2907
  }) => null;
2892
2908
  TypingIndicator: (props: {
2893
- component: ({ customStyle, containerStyle }: IncomingMessageProps & {
2909
+ component: ({ thinkingMessage, customStyle, containerStyle }: IncomingMessageProps & {
2894
2910
  containerStyle?: ViewStyle;
2895
2911
  customStyle?: {
2896
2912
  bubbleContentColor?: string;
@@ -2920,6 +2936,7 @@ export declare const IncomingMessageLayout: {
2920
2936
  nickname: string;
2921
2937
  profileUrl?: string;
2922
2938
  };
2939
+ thinkingMessage?: string;
2923
2940
  suggestedRepliesVisible?: boolean;
2924
2941
  suggestedRepliesDirection?: "vertical" | "horizontal";
2925
2942
  isBotMessage?: boolean;
@@ -2992,6 +3009,7 @@ export declare const IncomingMessageLayout: {
2992
3009
  nickname: string;
2993
3010
  profileUrl?: string;
2994
3011
  };
3012
+ thinkingMessage?: string;
2995
3013
  suggestedRepliesVisible?: boolean;
2996
3014
  suggestedRepliesDirection?: "vertical" | "horizontal";
2997
3015
  isBotMessage?: boolean;
@@ -3064,6 +3082,7 @@ export declare const IncomingMessageLayout: {
3064
3082
  nickname: string;
3065
3083
  profileUrl?: string;
3066
3084
  };
3085
+ thinkingMessage?: string;
3067
3086
  suggestedRepliesVisible?: boolean;
3068
3087
  suggestedRepliesDirection?: "vertical" | "horizontal";
3069
3088
  isBotMessage?: boolean;
@@ -3179,6 +3198,7 @@ declare type InputState = {
3179
3198
  | 'conversation_closed'
3180
3199
  | 'suggested_replies'
3181
3200
  | 'reconnecting'
3201
+ | 'handoff_pending'
3182
3202
  | (string & {});
3183
3203
  };
3184
3204