@sendbird/ai-agent-messenger-react 1.42.0 → 1.43.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/README.md +1 -1
- package/dist/index.cjs +75 -75
- package/dist/index.d.ts +20 -0
- package/dist/index.js +2821 -2733
- package/package.json +6 -5
package/dist/index.d.ts
CHANGED
|
@@ -2899,6 +2899,10 @@ declare type CustomEvent_2 =
|
|
|
2899
2899
|
| {
|
|
2900
2900
|
type: 'user-action-requested';
|
|
2901
2901
|
data: UserActionRequestedData;
|
|
2902
|
+
}
|
|
2903
|
+
| {
|
|
2904
|
+
type: 'external-handoff-changed';
|
|
2905
|
+
data: ExternalHandoffChangedData;
|
|
2902
2906
|
};
|
|
2903
2907
|
export { CustomEvent_2 as CustomEvent }
|
|
2904
2908
|
|
|
@@ -3112,6 +3116,8 @@ export declare interface ExtendedMessagePayload {
|
|
|
3112
3116
|
// Whether this message is the last bubble in a multi-bubble turn.
|
|
3113
3117
|
// Sent as `true` only on the last bubble; omitted (undefined) on non-last bubbles.
|
|
3114
3118
|
// Only reliable once the server stream has completed (data.stream = false).
|
|
3119
|
+
// Not on the payload spec page yet — agreed in Slack:
|
|
3120
|
+
// https://sendbird.slack.com/archives/C0BLUB6G3RP/p1787219498878089
|
|
3115
3121
|
is_last_in_turn?: boolean;
|
|
3116
3122
|
cta_button: {
|
|
3117
3123
|
label: string;
|
|
@@ -3194,6 +3200,20 @@ declare type ExternalAuthTokenExpiredData = {
|
|
|
3194
3200
|
cpaKey: string;
|
|
3195
3201
|
};
|
|
3196
3202
|
|
|
3203
|
+
/**
|
|
3204
|
+
* A change to the external-service handoff the server records as channel metadata.
|
|
3205
|
+
*
|
|
3206
|
+
* Both fields carry the current state, not only the one the server just changed, so the newest
|
|
3207
|
+
* event supersedes the previous one rather than merging into it. Live only: not replayed on load
|
|
3208
|
+
* or after a reconnect, and the same state can arrive more than once, so handle it idempotently.
|
|
3209
|
+
*/
|
|
3210
|
+
export declare interface ExternalHandoffChangedData {
|
|
3211
|
+
/** The destination the server wrote, or `null` when this client has not seen the destination write. Server-defined and open-ended. */
|
|
3212
|
+
externalServiceType: string | null;
|
|
3213
|
+
/** Unix seconds, set once the external session ended. */
|
|
3214
|
+
endedAt: number | null;
|
|
3215
|
+
}
|
|
3216
|
+
|
|
3197
3217
|
export declare interface FeedbackInfo {
|
|
3198
3218
|
rating: 'good' | 'bad';
|
|
3199
3219
|
comment?: string;
|