@sendbird/ai-agent-messenger-react 1.30.0 → 1.31.1
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/cjs/DP95uu-Y.cjs +1 -0
- package/dist/es/ClXsn-JF.js +5 -0
- package/dist/index.cjs +98 -98
- package/dist/index.d.ts +111 -79
- package/dist/index.js +3652 -3630
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -476,19 +476,15 @@ declare interface AIAgentConfig_2 {
|
|
|
476
476
|
* */
|
|
477
477
|
senderAvatarEnabled: boolean;
|
|
478
478
|
/**
|
|
479
|
-
*
|
|
480
|
-
*
|
|
481
|
-
*
|
|
482
|
-
* @default 'default'
|
|
479
|
+
* Markdown elements whose rendering is deferred until their token is complete while streaming.
|
|
480
|
+
* Deferred elements stay hidden until fully streamed; others render partial markdown as-is.
|
|
481
|
+
* @default []
|
|
483
482
|
* */
|
|
484
|
-
|
|
485
|
-
/**
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
* @default 'default'
|
|
490
|
-
* */
|
|
491
|
-
markdownLinkRenderMode: MarkdownLinkRenderMode;
|
|
483
|
+
deferredMarkdownElements: DeferredMarkdownElement[];
|
|
484
|
+
/** @deprecated Use `deferredMarkdownElements` with `'image'` instead. */
|
|
485
|
+
markdownImageRenderMode?: 'default' | 'complete-only';
|
|
486
|
+
/** @deprecated Use `deferredMarkdownElements` with `'link'` instead. */
|
|
487
|
+
markdownLinkRenderMode?: 'default' | 'complete-only';
|
|
492
488
|
};
|
|
493
489
|
header: {
|
|
494
490
|
/**
|
|
@@ -1258,6 +1254,23 @@ declare interface AIAgentStringSet {
|
|
|
1258
1254
|
};
|
|
1259
1255
|
}
|
|
1260
1256
|
|
|
1257
|
+
declare type AnnouncementQueueMode = 'latestOnly' | 'ordered';
|
|
1258
|
+
|
|
1259
|
+
declare interface AnnounceOptions {
|
|
1260
|
+
/**
|
|
1261
|
+
* How to queue announcements while throttled.
|
|
1262
|
+
* - `latestOnly` (default): keep only the latest queued announcement within the throttle window
|
|
1263
|
+
* - `ordered`: preserve FIFO ordering for queued announcements within the throttle window
|
|
1264
|
+
*/
|
|
1265
|
+
mode?: AnnouncementQueueMode;
|
|
1266
|
+
/**
|
|
1267
|
+
* Event identity for dedup. When provided, ordered-mode dedup compares this key
|
|
1268
|
+
* (instead of speech text), so two distinct content-bearing events whose rendered
|
|
1269
|
+
* text happens to match are both heard. Undefined preserves the legacy text-based dedup.
|
|
1270
|
+
*/
|
|
1271
|
+
dedupeKey?: string;
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1261
1274
|
declare type AnonUserSessionData = { userId: string; authToken: string; expireAt: number };
|
|
1262
1275
|
|
|
1263
1276
|
export declare class AnonymousSessionInfo {
|
|
@@ -2091,10 +2104,16 @@ export declare type DateSeparatorProps = SBUFoundationProps<{
|
|
|
2091
2104
|
/**
|
|
2092
2105
|
* Recursively makes every property of T optional, including nested objects.
|
|
2093
2106
|
*/
|
|
2094
|
-
declare type DeepPartial<T> = T extends
|
|
2107
|
+
declare type DeepPartial<T> = T extends (infer U)[]
|
|
2108
|
+
? DeepPartial<U>[]
|
|
2109
|
+
: T extends object
|
|
2110
|
+
? { [K in keyof T]?: DeepPartial<T[K]> }
|
|
2111
|
+
: T;
|
|
2095
2112
|
|
|
2096
2113
|
export declare const DefaultMessenger: ForwardRefExoticComponent<MessengerProps & RefAttributes<MessengerSessionRef>>;
|
|
2097
2114
|
|
|
2115
|
+
declare type DeferredMarkdownElement = 'image' | 'link';
|
|
2116
|
+
|
|
2098
2117
|
export declare interface DeskClientInterface {
|
|
2099
2118
|
/** Gets a ticket by its ID. */
|
|
2100
2119
|
getTicket(id: number): Promise<DeskTicketInterface>;
|
|
@@ -2166,6 +2185,12 @@ declare interface Dispatcher {
|
|
|
2166
2185
|
): void;
|
|
2167
2186
|
}
|
|
2168
2187
|
|
|
2188
|
+
declare type ErrorAnnouncementParams =
|
|
2189
|
+
| { type: 'fileSizeExceeded'; maxSizeMB?: number }
|
|
2190
|
+
| { type: 'sendFailed' }
|
|
2191
|
+
| { type: 'csatFormError' }
|
|
2192
|
+
| { type: 'generic'; message: string };
|
|
2193
|
+
|
|
2169
2194
|
/**
|
|
2170
2195
|
* For better understanding: https://sendbird.atlassian.net/wiki/spaces/AA/pages/3075014695/Extended+Message+Payload+Spec
|
|
2171
2196
|
*/
|
|
@@ -2234,6 +2259,9 @@ export declare interface ExtendedMessagePayload {
|
|
|
2234
2259
|
form?: Form;
|
|
2235
2260
|
steward?: Steward;
|
|
2236
2261
|
|
|
2262
|
+
// safeguard
|
|
2263
|
+
flagged_types?: string[];
|
|
2264
|
+
|
|
2237
2265
|
// logs
|
|
2238
2266
|
groundedness: GroundednessInfo[];
|
|
2239
2267
|
manual: ActionbookInfo;
|
|
@@ -2364,8 +2392,7 @@ BaseMessageProps<{
|
|
|
2364
2392
|
isFeedbackEnabled?: boolean;
|
|
2365
2393
|
isFeedbackCommentEnabled?: boolean;
|
|
2366
2394
|
isSenderAvatarVisible?: boolean;
|
|
2367
|
-
|
|
2368
|
-
markdownLinkRenderMode?: MarkdownLinkRenderMode;
|
|
2395
|
+
deferredMarkdownElements?: DeferredMarkdownElement[];
|
|
2369
2396
|
|
|
2370
2397
|
// handlers
|
|
2371
2398
|
onGetCachedMessageTemplate?: (templateKey: string) => string | null;
|
|
@@ -2446,8 +2473,7 @@ export declare const IncomingMessageLayout: {
|
|
|
2446
2473
|
isFeedbackEnabled?: boolean;
|
|
2447
2474
|
isFeedbackCommentEnabled?: boolean;
|
|
2448
2475
|
isSenderAvatarVisible?: boolean;
|
|
2449
|
-
|
|
2450
|
-
markdownLinkRenderMode?: MarkdownLinkRenderMode;
|
|
2476
|
+
deferredMarkdownElements?: DeferredMarkdownElement[];
|
|
2451
2477
|
onGetCachedMessageTemplate?: (templateKey: string) => string | null;
|
|
2452
2478
|
onRequestMessageTemplate?: (templateKey: string) => Promise<string>;
|
|
2453
2479
|
onHandleTemplateInternalAction?: (action: Action) => void;
|
|
@@ -2525,8 +2551,7 @@ export declare const IncomingMessageLayout: {
|
|
|
2525
2551
|
isFeedbackEnabled?: boolean;
|
|
2526
2552
|
isFeedbackCommentEnabled?: boolean;
|
|
2527
2553
|
isSenderAvatarVisible?: boolean;
|
|
2528
|
-
|
|
2529
|
-
markdownLinkRenderMode?: MarkdownLinkRenderMode;
|
|
2554
|
+
deferredMarkdownElements?: DeferredMarkdownElement[];
|
|
2530
2555
|
onGetCachedMessageTemplate?: (templateKey: string) => string | null;
|
|
2531
2556
|
onRequestMessageTemplate?: (templateKey: string) => Promise<string>;
|
|
2532
2557
|
onHandleTemplateInternalAction?: (action: Action) => void;
|
|
@@ -2604,8 +2629,7 @@ export declare const IncomingMessageLayout: {
|
|
|
2604
2629
|
isFeedbackEnabled?: boolean;
|
|
2605
2630
|
isFeedbackCommentEnabled?: boolean;
|
|
2606
2631
|
isSenderAvatarVisible?: boolean;
|
|
2607
|
-
|
|
2608
|
-
markdownLinkRenderMode?: MarkdownLinkRenderMode;
|
|
2632
|
+
deferredMarkdownElements?: DeferredMarkdownElement[];
|
|
2609
2633
|
onGetCachedMessageTemplate?: (templateKey: string) => string | null;
|
|
2610
2634
|
onRequestMessageTemplate?: (templateKey: string) => Promise<string>;
|
|
2611
2635
|
onHandleTemplateInternalAction?: (action: Action) => void;
|
|
@@ -2679,8 +2703,7 @@ export declare const IncomingMessageLayout: {
|
|
|
2679
2703
|
isFeedbackEnabled?: boolean;
|
|
2680
2704
|
isFeedbackCommentEnabled?: boolean;
|
|
2681
2705
|
isSenderAvatarVisible?: boolean;
|
|
2682
|
-
|
|
2683
|
-
markdownLinkRenderMode?: MarkdownLinkRenderMode;
|
|
2706
|
+
deferredMarkdownElements?: DeferredMarkdownElement[];
|
|
2684
2707
|
onGetCachedMessageTemplate?: (templateKey: string) => string | null;
|
|
2685
2708
|
onRequestMessageTemplate?: (templateKey: string) => Promise<string>;
|
|
2686
2709
|
onHandleTemplateInternalAction?: (action: Action) => void;
|
|
@@ -2758,8 +2781,7 @@ export declare const IncomingMessageLayout: {
|
|
|
2758
2781
|
isFeedbackEnabled?: boolean;
|
|
2759
2782
|
isFeedbackCommentEnabled?: boolean;
|
|
2760
2783
|
isSenderAvatarVisible?: boolean;
|
|
2761
|
-
|
|
2762
|
-
markdownLinkRenderMode?: MarkdownLinkRenderMode;
|
|
2784
|
+
deferredMarkdownElements?: DeferredMarkdownElement[];
|
|
2763
2785
|
onGetCachedMessageTemplate?: (templateKey: string) => string | null;
|
|
2764
2786
|
onRequestMessageTemplate?: (templateKey: string) => Promise<string>;
|
|
2765
2787
|
onHandleTemplateInternalAction?: (action: Action) => void;
|
|
@@ -2837,8 +2859,7 @@ export declare const IncomingMessageLayout: {
|
|
|
2837
2859
|
isFeedbackEnabled?: boolean;
|
|
2838
2860
|
isFeedbackCommentEnabled?: boolean;
|
|
2839
2861
|
isSenderAvatarVisible?: boolean;
|
|
2840
|
-
|
|
2841
|
-
markdownLinkRenderMode?: MarkdownLinkRenderMode;
|
|
2862
|
+
deferredMarkdownElements?: DeferredMarkdownElement[];
|
|
2842
2863
|
onGetCachedMessageTemplate?: (templateKey: string) => string | null;
|
|
2843
2864
|
onRequestMessageTemplate?: (templateKey: string) => Promise<string>;
|
|
2844
2865
|
onHandleTemplateInternalAction?: (action: Action) => void;
|
|
@@ -2947,8 +2968,7 @@ export declare const IncomingMessageLayout: {
|
|
|
2947
2968
|
isFeedbackEnabled?: boolean;
|
|
2948
2969
|
isFeedbackCommentEnabled?: boolean;
|
|
2949
2970
|
isSenderAvatarVisible?: boolean;
|
|
2950
|
-
|
|
2951
|
-
markdownLinkRenderMode?: MarkdownLinkRenderMode;
|
|
2971
|
+
deferredMarkdownElements?: DeferredMarkdownElement[];
|
|
2952
2972
|
onGetCachedMessageTemplate?: (templateKey: string) => string | null;
|
|
2953
2973
|
onRequestMessageTemplate?: (templateKey: string) => Promise<string>;
|
|
2954
2974
|
onHandleTemplateInternalAction?: (action: Action) => void;
|
|
@@ -3026,8 +3046,7 @@ export declare const IncomingMessageLayout: {
|
|
|
3026
3046
|
isFeedbackEnabled?: boolean;
|
|
3027
3047
|
isFeedbackCommentEnabled?: boolean;
|
|
3028
3048
|
isSenderAvatarVisible?: boolean;
|
|
3029
|
-
|
|
3030
|
-
markdownLinkRenderMode?: MarkdownLinkRenderMode;
|
|
3049
|
+
deferredMarkdownElements?: DeferredMarkdownElement[];
|
|
3031
3050
|
onGetCachedMessageTemplate?: (templateKey: string) => string | null;
|
|
3032
3051
|
onRequestMessageTemplate?: (templateKey: string) => Promise<string>;
|
|
3033
3052
|
onHandleTemplateInternalAction?: (action: Action) => void;
|
|
@@ -3105,8 +3124,7 @@ export declare const IncomingMessageLayout: {
|
|
|
3105
3124
|
isFeedbackEnabled?: boolean;
|
|
3106
3125
|
isFeedbackCommentEnabled?: boolean;
|
|
3107
3126
|
isSenderAvatarVisible?: boolean;
|
|
3108
|
-
|
|
3109
|
-
markdownLinkRenderMode?: MarkdownLinkRenderMode;
|
|
3127
|
+
deferredMarkdownElements?: DeferredMarkdownElement[];
|
|
3110
3128
|
onGetCachedMessageTemplate?: (templateKey: string) => string | null;
|
|
3111
3129
|
onRequestMessageTemplate?: (templateKey: string) => Promise<string>;
|
|
3112
3130
|
onHandleTemplateInternalAction?: (action: Action) => void;
|
|
@@ -3180,8 +3198,7 @@ export declare const IncomingMessageLayout: {
|
|
|
3180
3198
|
isFeedbackEnabled?: boolean;
|
|
3181
3199
|
isFeedbackCommentEnabled?: boolean;
|
|
3182
3200
|
isSenderAvatarVisible?: boolean;
|
|
3183
|
-
|
|
3184
|
-
markdownLinkRenderMode?: MarkdownLinkRenderMode;
|
|
3201
|
+
deferredMarkdownElements?: DeferredMarkdownElement[];
|
|
3185
3202
|
onGetCachedMessageTemplate?: (templateKey: string) => string | null;
|
|
3186
3203
|
onRequestMessageTemplate?: (templateKey: string) => Promise<string>;
|
|
3187
3204
|
onHandleTemplateInternalAction?: (action: Action) => void;
|
|
@@ -3259,8 +3276,7 @@ export declare const IncomingMessageLayout: {
|
|
|
3259
3276
|
isFeedbackEnabled?: boolean;
|
|
3260
3277
|
isFeedbackCommentEnabled?: boolean;
|
|
3261
3278
|
isSenderAvatarVisible?: boolean;
|
|
3262
|
-
|
|
3263
|
-
markdownLinkRenderMode?: MarkdownLinkRenderMode;
|
|
3279
|
+
deferredMarkdownElements?: DeferredMarkdownElement[];
|
|
3264
3280
|
onGetCachedMessageTemplate?: (templateKey: string) => string | null;
|
|
3265
3281
|
onRequestMessageTemplate?: (templateKey: string) => Promise<string>;
|
|
3266
3282
|
onHandleTemplateInternalAction?: (action: Action) => void;
|
|
@@ -3338,8 +3354,7 @@ export declare const IncomingMessageLayout: {
|
|
|
3338
3354
|
isFeedbackEnabled?: boolean;
|
|
3339
3355
|
isFeedbackCommentEnabled?: boolean;
|
|
3340
3356
|
isSenderAvatarVisible?: boolean;
|
|
3341
|
-
|
|
3342
|
-
markdownLinkRenderMode?: MarkdownLinkRenderMode;
|
|
3357
|
+
deferredMarkdownElements?: DeferredMarkdownElement[];
|
|
3343
3358
|
onGetCachedMessageTemplate?: (templateKey: string) => string | null;
|
|
3344
3359
|
onRequestMessageTemplate?: (templateKey: string) => Promise<string>;
|
|
3345
3360
|
onHandleTemplateInternalAction?: (action: Action) => void;
|
|
@@ -3443,8 +3458,7 @@ export declare const IncomingMessageLayout: {
|
|
|
3443
3458
|
isFeedbackEnabled?: boolean;
|
|
3444
3459
|
isFeedbackCommentEnabled?: boolean;
|
|
3445
3460
|
isSenderAvatarVisible?: boolean;
|
|
3446
|
-
|
|
3447
|
-
markdownLinkRenderMode?: MarkdownLinkRenderMode;
|
|
3461
|
+
deferredMarkdownElements?: DeferredMarkdownElement[];
|
|
3448
3462
|
onGetCachedMessageTemplate?: (templateKey: string) => string | null;
|
|
3449
3463
|
onRequestMessageTemplate?: (templateKey: string) => Promise<string>;
|
|
3450
3464
|
onHandleTemplateInternalAction?: (action: Action) => void;
|
|
@@ -3522,8 +3536,7 @@ export declare const IncomingMessageLayout: {
|
|
|
3522
3536
|
isFeedbackEnabled?: boolean;
|
|
3523
3537
|
isFeedbackCommentEnabled?: boolean;
|
|
3524
3538
|
isSenderAvatarVisible?: boolean;
|
|
3525
|
-
|
|
3526
|
-
markdownLinkRenderMode?: MarkdownLinkRenderMode;
|
|
3539
|
+
deferredMarkdownElements?: DeferredMarkdownElement[];
|
|
3527
3540
|
onGetCachedMessageTemplate?: (templateKey: string) => string | null;
|
|
3528
3541
|
onRequestMessageTemplate?: (templateKey: string) => Promise<string>;
|
|
3529
3542
|
onHandleTemplateInternalAction?: (action: Action) => void;
|
|
@@ -3601,8 +3614,7 @@ export declare const IncomingMessageLayout: {
|
|
|
3601
3614
|
isFeedbackEnabled?: boolean;
|
|
3602
3615
|
isFeedbackCommentEnabled?: boolean;
|
|
3603
3616
|
isSenderAvatarVisible?: boolean;
|
|
3604
|
-
|
|
3605
|
-
markdownLinkRenderMode?: MarkdownLinkRenderMode;
|
|
3617
|
+
deferredMarkdownElements?: DeferredMarkdownElement[];
|
|
3606
3618
|
onGetCachedMessageTemplate?: (templateKey: string) => string | null;
|
|
3607
3619
|
onRequestMessageTemplate?: (templateKey: string) => Promise<string>;
|
|
3608
3620
|
onHandleTemplateInternalAction?: (action: Action) => void;
|
|
@@ -3676,8 +3688,7 @@ export declare const IncomingMessageLayout: {
|
|
|
3676
3688
|
isFeedbackEnabled?: boolean;
|
|
3677
3689
|
isFeedbackCommentEnabled?: boolean;
|
|
3678
3690
|
isSenderAvatarVisible?: boolean;
|
|
3679
|
-
|
|
3680
|
-
markdownLinkRenderMode?: MarkdownLinkRenderMode;
|
|
3691
|
+
deferredMarkdownElements?: DeferredMarkdownElement[];
|
|
3681
3692
|
onGetCachedMessageTemplate?: (templateKey: string) => string | null;
|
|
3682
3693
|
onRequestMessageTemplate?: (templateKey: string) => Promise<string>;
|
|
3683
3694
|
onHandleTemplateInternalAction?: (action: Action) => void;
|
|
@@ -3755,8 +3766,7 @@ export declare const IncomingMessageLayout: {
|
|
|
3755
3766
|
isFeedbackEnabled?: boolean;
|
|
3756
3767
|
isFeedbackCommentEnabled?: boolean;
|
|
3757
3768
|
isSenderAvatarVisible?: boolean;
|
|
3758
|
-
|
|
3759
|
-
markdownLinkRenderMode?: MarkdownLinkRenderMode;
|
|
3769
|
+
deferredMarkdownElements?: DeferredMarkdownElement[];
|
|
3760
3770
|
onGetCachedMessageTemplate?: (templateKey: string) => string | null;
|
|
3761
3771
|
onRequestMessageTemplate?: (templateKey: string) => Promise<string>;
|
|
3762
3772
|
onHandleTemplateInternalAction?: (action: Action) => void;
|
|
@@ -3834,8 +3844,7 @@ export declare const IncomingMessageLayout: {
|
|
|
3834
3844
|
isFeedbackEnabled?: boolean;
|
|
3835
3845
|
isFeedbackCommentEnabled?: boolean;
|
|
3836
3846
|
isSenderAvatarVisible?: boolean;
|
|
3837
|
-
|
|
3838
|
-
markdownLinkRenderMode?: MarkdownLinkRenderMode;
|
|
3847
|
+
deferredMarkdownElements?: DeferredMarkdownElement[];
|
|
3839
3848
|
onGetCachedMessageTemplate?: (templateKey: string) => string | null;
|
|
3840
3849
|
onRequestMessageTemplate?: (templateKey: string) => Promise<string>;
|
|
3841
3850
|
onHandleTemplateInternalAction?: (action: Action) => void;
|
|
@@ -3962,8 +3971,7 @@ export declare const IncomingMessageLayout: {
|
|
|
3962
3971
|
isFeedbackEnabled?: boolean;
|
|
3963
3972
|
isFeedbackCommentEnabled?: boolean;
|
|
3964
3973
|
isSenderAvatarVisible?: boolean;
|
|
3965
|
-
|
|
3966
|
-
markdownLinkRenderMode?: MarkdownLinkRenderMode;
|
|
3974
|
+
deferredMarkdownElements?: DeferredMarkdownElement[];
|
|
3967
3975
|
onGetCachedMessageTemplate?: (templateKey: string) => string | null;
|
|
3968
3976
|
onRequestMessageTemplate?: (templateKey: string) => Promise<string>;
|
|
3969
3977
|
onHandleTemplateInternalAction?: (action: Action) => void;
|
|
@@ -4041,8 +4049,7 @@ export declare const IncomingMessageLayout: {
|
|
|
4041
4049
|
isFeedbackEnabled?: boolean;
|
|
4042
4050
|
isFeedbackCommentEnabled?: boolean;
|
|
4043
4051
|
isSenderAvatarVisible?: boolean;
|
|
4044
|
-
|
|
4045
|
-
markdownLinkRenderMode?: MarkdownLinkRenderMode;
|
|
4052
|
+
deferredMarkdownElements?: DeferredMarkdownElement[];
|
|
4046
4053
|
onGetCachedMessageTemplate?: (templateKey: string) => string | null;
|
|
4047
4054
|
onRequestMessageTemplate?: (templateKey: string) => Promise<string>;
|
|
4048
4055
|
onHandleTemplateInternalAction?: (action: Action) => void;
|
|
@@ -4120,8 +4127,7 @@ export declare const IncomingMessageLayout: {
|
|
|
4120
4127
|
isFeedbackEnabled?: boolean;
|
|
4121
4128
|
isFeedbackCommentEnabled?: boolean;
|
|
4122
4129
|
isSenderAvatarVisible?: boolean;
|
|
4123
|
-
|
|
4124
|
-
markdownLinkRenderMode?: MarkdownLinkRenderMode;
|
|
4130
|
+
deferredMarkdownElements?: DeferredMarkdownElement[];
|
|
4125
4131
|
onGetCachedMessageTemplate?: (templateKey: string) => string | null;
|
|
4126
4132
|
onRequestMessageTemplate?: (templateKey: string) => Promise<string>;
|
|
4127
4133
|
onHandleTemplateInternalAction?: (action: Action) => void;
|
|
@@ -4197,8 +4203,7 @@ export declare const IncomingMessageLayout: {
|
|
|
4197
4203
|
isFeedbackEnabled?: boolean;
|
|
4198
4204
|
isFeedbackCommentEnabled?: boolean;
|
|
4199
4205
|
isSenderAvatarVisible?: boolean;
|
|
4200
|
-
|
|
4201
|
-
markdownLinkRenderMode?: MarkdownLinkRenderMode;
|
|
4206
|
+
deferredMarkdownElements?: DeferredMarkdownElement[];
|
|
4202
4207
|
onGetCachedMessageTemplate?: (templateKey: string) => string | null;
|
|
4203
4208
|
onRequestMessageTemplate?: (templateKey: string) => Promise<string>;
|
|
4204
4209
|
onHandleTemplateInternalAction?: (action: Action) => void;
|
|
@@ -4276,8 +4281,7 @@ export declare const IncomingMessageLayout: {
|
|
|
4276
4281
|
isFeedbackEnabled?: boolean;
|
|
4277
4282
|
isFeedbackCommentEnabled?: boolean;
|
|
4278
4283
|
isSenderAvatarVisible?: boolean;
|
|
4279
|
-
|
|
4280
|
-
markdownLinkRenderMode?: MarkdownLinkRenderMode;
|
|
4284
|
+
deferredMarkdownElements?: DeferredMarkdownElement[];
|
|
4281
4285
|
onGetCachedMessageTemplate?: (templateKey: string) => string | null;
|
|
4282
4286
|
onRequestMessageTemplate?: (templateKey: string) => Promise<string>;
|
|
4283
4287
|
onHandleTemplateInternalAction?: (action: Action) => void;
|
|
@@ -4355,8 +4359,7 @@ export declare const IncomingMessageLayout: {
|
|
|
4355
4359
|
isFeedbackEnabled?: boolean;
|
|
4356
4360
|
isFeedbackCommentEnabled?: boolean;
|
|
4357
4361
|
isSenderAvatarVisible?: boolean;
|
|
4358
|
-
|
|
4359
|
-
markdownLinkRenderMode?: MarkdownLinkRenderMode;
|
|
4362
|
+
deferredMarkdownElements?: DeferredMarkdownElement[];
|
|
4360
4363
|
onGetCachedMessageTemplate?: (templateKey: string) => string | null;
|
|
4361
4364
|
onRequestMessageTemplate?: (templateKey: string) => Promise<string>;
|
|
4362
4365
|
onHandleTemplateInternalAction?: (action: Action) => void;
|
|
@@ -4474,6 +4477,11 @@ declare type InternalExtraProps = {
|
|
|
4474
4477
|
testerMode?: boolean;
|
|
4475
4478
|
};
|
|
4476
4479
|
|
|
4480
|
+
declare type InternalExtraProps_2 = {
|
|
4481
|
+
announceStatus?: (params: StatusAnnouncementParams, options?: StatusAnnouncementOptions) => void;
|
|
4482
|
+
announceError?: (params: ErrorAnnouncementParams, focusTarget?: HTMLElement | null) => void;
|
|
4483
|
+
};
|
|
4484
|
+
|
|
4477
4485
|
declare interface InternalMessageTemplateVariables {
|
|
4478
4486
|
carousel_padding_left?: number;
|
|
4479
4487
|
carousel_padding_right?: number;
|
|
@@ -4560,10 +4568,6 @@ declare interface ManualSessionInfoParams {
|
|
|
4560
4568
|
sessionHandler: AIAgentSessionHandler;
|
|
4561
4569
|
}
|
|
4562
4570
|
|
|
4563
|
-
declare type MarkdownImageRenderMode = 'default' | 'complete-only';
|
|
4564
|
-
|
|
4565
|
-
declare type MarkdownLinkRenderMode = 'default' | 'complete-only';
|
|
4566
|
-
|
|
4567
4571
|
declare interface MemoryInfo {
|
|
4568
4572
|
enabled: boolean;
|
|
4569
4573
|
showIndicator: boolean;
|
|
@@ -4611,7 +4615,7 @@ export declare const MessageListUILayout: {
|
|
|
4611
4615
|
}) => null;
|
|
4612
4616
|
};
|
|
4613
4617
|
|
|
4614
|
-
export declare const MessageLogs: ({ actionbook, functionCalls, groundedness, agentMessageTemplates, onClickActionbook, onClickFunctionCall, onClickFunctionCallDetail, onClickGroundedness, onClickAgentMessageTemplate, topContent, bottomContent, renderCustomGroundednessIcon, style, }: Props_2) => JSX.Element;
|
|
4618
|
+
export declare const MessageLogs: ({ actionbook, functionCalls, groundedness, agentMessageTemplates, flaggedTypes, onClickActionbook, onClickFunctionCall, onClickFunctionCallDetail, onClickGroundedness, onClickAgentMessageTemplate, topContent, bottomContent, renderCustomGroundednessIcon, style, }: Props_2) => JSX.Element;
|
|
4615
4619
|
|
|
4616
4620
|
declare interface MessageTemplateCache {
|
|
4617
4621
|
set(key: string, value: string): void;
|
|
@@ -4736,7 +4740,7 @@ declare interface MessengerSessionContextValue extends AIAgentMessengerSessionCo
|
|
|
4736
4740
|
export declare interface MessengerSessionRef extends AIAgentMessengerSessionRef {
|
|
4737
4741
|
}
|
|
4738
4742
|
|
|
4739
|
-
declare interface MessengerSettingsResponse {
|
|
4743
|
+
export declare interface MessengerSettingsResponse {
|
|
4740
4744
|
active_channel: {
|
|
4741
4745
|
channel_url: string;
|
|
4742
4746
|
attachment_mode: 'always' | 'handed_off_only' | 'off';
|
|
@@ -5112,6 +5116,7 @@ declare type Props_2 = {
|
|
|
5112
5116
|
functionCalls?: FunctionCallsInfo[];
|
|
5113
5117
|
groundedness?: GroundednessInfo[];
|
|
5114
5118
|
agentMessageTemplates?: AgentMessageTemplateInfo[];
|
|
5119
|
+
flaggedTypes?: string[];
|
|
5115
5120
|
onClickActionbook?: (value: ActionbookInfo) => void;
|
|
5116
5121
|
onClickFunctionCall?: (value: FunctionCallsInfo) => void;
|
|
5117
5122
|
onClickFunctionCallDetail?: (value: FunctionCallsInfo) => void;
|
|
@@ -5155,7 +5160,7 @@ declare type Props_4 = PropsWithChildren<{
|
|
|
5155
5160
|
style?: CSSProperties;
|
|
5156
5161
|
}>;
|
|
5157
5162
|
|
|
5158
|
-
declare type ReactOnlyIconName = 'expand' | 'collapse' | 'chevron-right' | 'attach' | 'close-filled' | 'actionbook' | 'function' | 'confluence' | 'zendesk' | 'salesforce' | 'sprinklr' | 'website' | 'snippet' | 'template' | 'show' | 'mute';
|
|
5163
|
+
declare type ReactOnlyIconName = 'expand' | 'collapse' | 'chevron-right' | 'attach' | 'close-filled' | 'actionbook' | 'function' | 'confluence' | 'zendesk' | 'salesforce' | 'sprinklr' | 'website' | 'snippet' | 'template' | 'show' | 'mute' | 'activity';
|
|
5159
5164
|
|
|
5160
5165
|
declare type ReleaseDisabledByValue =
|
|
5161
5166
|
| 'unavailable'
|
|
@@ -5208,6 +5213,26 @@ declare type SingleSelectField = {
|
|
|
5208
5213
|
|
|
5209
5214
|
declare type StatsAppendCallback = (type: string, data: AIAgentStatPayload) => boolean;
|
|
5210
5215
|
|
|
5216
|
+
/** Per-event override for the platform `announceStatus` wrappers — same shape as `AnnounceOptions`. */
|
|
5217
|
+
declare type StatusAnnouncementOptions = AnnounceOptions;
|
|
5218
|
+
|
|
5219
|
+
declare type StatusAnnouncementParams =
|
|
5220
|
+
| {
|
|
5221
|
+
event: 'newMessage';
|
|
5222
|
+
senderName?: string;
|
|
5223
|
+
body?: string;
|
|
5224
|
+
time?: string;
|
|
5225
|
+
}
|
|
5226
|
+
| { event: 'typing'; agentName?: string }
|
|
5227
|
+
| { event: 'sendFailed' }
|
|
5228
|
+
| { event: 'agentConnected'; agentName?: string }
|
|
5229
|
+
| { event: 'conversationClosed' }
|
|
5230
|
+
| { event: 'csatDisplayed' }
|
|
5231
|
+
| { event: 'csatSubmitted'; submittedLabel: string }
|
|
5232
|
+
| { event: 'csatExpired' }
|
|
5233
|
+
| { event: 'emptyState' }
|
|
5234
|
+
| { event: 'inputDisabled' };
|
|
5235
|
+
|
|
5211
5236
|
declare interface Steward {
|
|
5212
5237
|
title: string;
|
|
5213
5238
|
description?: string;
|
|
@@ -5245,7 +5270,7 @@ declare enum StewardTaskStatus {
|
|
|
5245
5270
|
* StringSet type for React components
|
|
5246
5271
|
* Uses SNAKE_CASE keys for backward compatibility
|
|
5247
5272
|
*/
|
|
5248
|
-
declare type StringSet = {
|
|
5273
|
+
export declare type StringSet = {
|
|
5249
5274
|
PLACE_HOLDER__WRONG: string;
|
|
5250
5275
|
PLACE_HOLDER__NO_MESSAGES: string;
|
|
5251
5276
|
UNKNOWN__UNKNOWN_MESSAGE_TYPE: string;
|
|
@@ -5444,39 +5469,46 @@ declare type StringSet = {
|
|
|
5444
5469
|
|
|
5445
5470
|
declare type SystemBaseMessageProps<T> = T & BaseMessageProps<{}>;
|
|
5446
5471
|
|
|
5472
|
+
declare type SystemCSATMessageProps = SystemMessageProps & {
|
|
5473
|
+
announceStatus?: (params: StatusAnnouncementParams, options?: StatusAnnouncementOptions) => void;
|
|
5474
|
+
announceError?: (params: ErrorAnnouncementParams, focusTarget?: HTMLElement | null) => void;
|
|
5475
|
+
};
|
|
5476
|
+
|
|
5447
5477
|
export declare const SystemMessageLayout: {
|
|
5448
5478
|
(props: PropsWithChildren): ReactNode;
|
|
5449
5479
|
defaults: {
|
|
5450
|
-
template: ComponentType<
|
|
5480
|
+
template: ComponentType<SystemMessageTemplateProps>;
|
|
5451
5481
|
components: {
|
|
5452
5482
|
AdminMessage: (props: SystemMessageProps) => ReactNode;
|
|
5453
|
-
CSATMessage: (props:
|
|
5483
|
+
CSATMessage: (props: SystemCSATMessageProps) => ReactNode;
|
|
5454
5484
|
};
|
|
5455
5485
|
};
|
|
5456
5486
|
Template: ({ template, children }: {
|
|
5457
|
-
template?: ComponentType<
|
|
5487
|
+
template?: ComponentType<SystemMessageTemplateProps> | undefined;
|
|
5458
5488
|
children?: ReactNode;
|
|
5459
5489
|
}) => JSX.Element;
|
|
5460
|
-
Context: Context<LayoutContextValue<
|
|
5490
|
+
Context: Context<LayoutContextValue<SystemMessageTemplateProps, {
|
|
5461
5491
|
AdminMessage: (props: SystemMessageProps) => ReactNode;
|
|
5462
|
-
CSATMessage: (props:
|
|
5492
|
+
CSATMessage: (props: SystemCSATMessageProps) => ReactNode;
|
|
5463
5493
|
}>>;
|
|
5464
|
-
useContext: () => LayoutContextValue<
|
|
5494
|
+
useContext: () => LayoutContextValue<SystemMessageTemplateProps, {
|
|
5465
5495
|
AdminMessage: (props: SystemMessageProps) => ReactNode;
|
|
5466
|
-
CSATMessage: (props:
|
|
5496
|
+
CSATMessage: (props: SystemCSATMessageProps) => ReactNode;
|
|
5467
5497
|
}>;
|
|
5468
5498
|
} & {
|
|
5469
5499
|
AdminMessage: (props: {
|
|
5470
5500
|
component: (props: SystemMessageProps) => ReactNode;
|
|
5471
5501
|
}) => null;
|
|
5472
5502
|
CSATMessage: (props: {
|
|
5473
|
-
component: (props:
|
|
5503
|
+
component: (props: SystemCSATMessageProps) => ReactNode;
|
|
5474
5504
|
}) => null;
|
|
5475
5505
|
};
|
|
5476
5506
|
|
|
5477
5507
|
export declare type SystemMessageProps<T extends SystemMessageUnion['messageType'] = SystemMessageUnion['messageType']> =
|
|
5478
5508
|
PickMessageProps<SystemMessageUnion, T>;
|
|
5479
5509
|
|
|
5510
|
+
declare type SystemMessageTemplateProps = SystemMessageProps & Partial<InternalExtraProps_2>;
|
|
5511
|
+
|
|
5480
5512
|
declare type SystemMessageUnion =
|
|
5481
5513
|
| SystemBaseMessageProps<{
|
|
5482
5514
|
messageType: 'admin';
|