@sendbird/ai-agent-messenger-react 1.21.2 → 1.21.3

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
@@ -954,6 +954,7 @@ declare interface AIAgentStringSet {
954
954
  conversation: {
955
955
  input_placeholder: string;
956
956
  input_placeholder_disabled: string;
957
+ input_placeholder_steward: string;
957
958
  input_placeholder_wait_ai_agent_response: string;
958
959
  input_placeholder_active_form: string;
959
960
  input_placeholder_reconnecting: string;
@@ -1028,6 +1029,13 @@ declare interface AIAgentStringSet {
1028
1029
  edit: string;
1029
1030
  remove: string;
1030
1031
  };
1032
+
1033
+ handoff: {
1034
+ confirm_title: string;
1035
+ confirm_description: string;
1036
+ confirm_cancel: string;
1037
+ confirm_handoff: string;
1038
+ };
1031
1039
  }
1032
1040
 
1033
1041
  declare type AnonUserSessionData = { userId: string; authToken: string; expireAt: number };
@@ -2112,7 +2120,7 @@ export declare interface ExtendedMessagePayload {
2112
2120
  url: string;
2113
2121
  };
2114
2122
  suggested_replies: string[];
2115
- user_input_disabled_by: 'suggested_replies';
2123
+ user_input_disabled_by: 'suggested_replies' | 'steward' | 'system';
2116
2124
  message_template: MessageTemplateShape;
2117
2125
  custom_message_templates: CustomMessageTemplateData[];
2118
2126
  csat: {
@@ -2167,6 +2175,7 @@ export declare interface ExtendedMessagePayload {
2167
2175
  citations?: CitationInfo[];
2168
2176
  feedback?: FeedbackInfo;
2169
2177
  form?: Form;
2178
+ steward?: Steward;
2170
2179
 
2171
2180
  // logs
2172
2181
  groundedness: GroundednessInfo[];
@@ -2282,6 +2291,9 @@ declare const icons: {
2282
2291
  readonly 'chevron-down': LazyExoticComponent<FC<SVGProps<SVGElement>>>;
2283
2292
  readonly 'chevron-right': LazyExoticComponent<FC<SVGProps<SVGElement>>>;
2284
2293
  readonly done: LazyExoticComponent<FC<SVGProps<SVGElement>>>;
2294
+ readonly 'done-circle': LazyExoticComponent<FC<SVGProps<SVGElement>>>;
2295
+ readonly stop: LazyExoticComponent<FC<SVGProps<SVGElement>>>;
2296
+ readonly 'stop-circle': LazyExoticComponent<FC<SVGProps<SVGElement>>>;
2285
2297
  readonly user: LazyExoticComponent<FC<SVGProps<SVGElement>>>;
2286
2298
  readonly 'file-document': LazyExoticComponent<FC<SVGProps<SVGElement>>>;
2287
2299
  readonly download: LazyExoticComponent<FC<SVGProps<SVGElement>>>;
@@ -3431,6 +3443,8 @@ declare type InputState = {
3431
3443
  | 'ai_responding'
3432
3444
  | 'conversation_closed'
3433
3445
  | 'suggested_replies'
3446
+ | 'steward'
3447
+ | 'system'
3434
3448
  | 'reconnecting'
3435
3449
  | 'handoff_pending'
3436
3450
  | (string & {});
@@ -4113,6 +4127,39 @@ declare type SingleSelectField = {
4113
4127
 
4114
4128
  declare type StatsAppendCallback = (type: string, data: AIAgentStatPayload) => boolean;
4115
4129
 
4130
+ declare interface Steward {
4131
+ title: string;
4132
+ description?: string;
4133
+ status?: StewardStatus;
4134
+ cancellation_option?: StewardCancellationOption;
4135
+ tasks: StewardTask[];
4136
+ }
4137
+
4138
+ declare interface StewardCancellationOption {
4139
+ title: string;
4140
+ description: string;
4141
+ positive_text: string;
4142
+ negative_text: string;
4143
+ }
4144
+
4145
+ declare enum StewardStatus {
4146
+ IN_PROGRESS = 'IN_PROGRESS',
4147
+ COMPLETED = 'COMPLETED',
4148
+ CANCELED = 'CANCELED',
4149
+ }
4150
+
4151
+ declare interface StewardTask {
4152
+ id: string;
4153
+ user_facing_title: string;
4154
+ status: StewardTaskStatus;
4155
+ }
4156
+
4157
+ declare enum StewardTaskStatus {
4158
+ IN_PROGRESS = 'IN_PROGRESS',
4159
+ COMPLETED = 'COMPLETED',
4160
+ CANCELED = 'CANCELED',
4161
+ }
4162
+
4116
4163
  /**
4117
4164
  * StringSet type for React components
4118
4165
  * Uses SNAKE_CASE keys for backward compatibility
@@ -4126,6 +4173,7 @@ declare type StringSet = {
4126
4173
  MESSAGE_INPUT__PLACE_HOLDER__WAIT_AI_AGENT_RESPONSE: string;
4127
4174
  MESSAGE_INPUT__PLACE_HOLDER__SUGGESTED_REPLIES: string;
4128
4175
  MESSAGE_INPUT__PLACE_HOLDER__DISABLED: string;
4176
+ MESSAGE_INPUT__PLACE_HOLDER__STEWARD: string;
4129
4177
  MESSAGE_INPUT__PLACE_HOLDER__RECONNECTING: string;
4130
4178
  BUTTON__CANCEL: string;
4131
4179
  BUTTON__SUBMIT: string;
@@ -4209,6 +4257,10 @@ declare type StringSet = {
4209
4257
  A11Y_IMAGE_VIEWER_DOWNLOAD: string;
4210
4258
  A11Y_ATTACH_FILE: string;
4211
4259
  SCROLL_TO_NEW_MESSAGES_LABEL: (messages: BaseMessage[]) => string;
4260
+ HANDOFF_CONFIRM__TITLE: string;
4261
+ HANDOFF_CONFIRM__DESCRIPTION: string;
4262
+ HANDOFF_CONFIRM__CANCEL: string;
4263
+ HANDOFF_CONFIRM__HANDOFF: string;
4212
4264
  /** @deprecated Please use DATE_FORMAT__DATE_SHORT instead. **/
4213
4265
  DATE_FORMAT__CONVERSATION_LIST__LIST_ITEM_TITLE: string;
4214
4266
  /** @deprecated Unused string **/