@alxxsck/ai-assistant 3.4.0 → 3.4.2
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/{Avatar-BNNzmt88.js → Avatar-KB7fiXTT.js} +1 -1
- package/dist/{ChatWidgetContent-DSWsoPbu.js → ChatWidgetContent-BK1Po0Bb.js} +1742 -1655
- package/dist/api/messages.api.d.ts +3 -0
- package/dist/api/messages.api.types.d.ts +3 -0
- package/dist/bridge-ai-chat-widget.es.js +2 -2
- package/dist/config/assistant-ui-version.d.ts +2 -0
- package/dist/{index-DhJtrjs7.js → index-BdLdThTz.js} +38 -38
- package/dist/{mount-CAjO8nWS.js → mount-eQG3ZeqK.js} +19469 -19379
- package/dist/ui/AssistantUi.d.ts +2 -0
- package/dist/ui/active/AssistantUiPresentation.d.ts +1 -0
- package/dist/ui/components/ChatWidget.d.ts +29 -1
- package/dist/ui/hooks/useMessageHistoryRecovery.d.ts +7 -0
- package/dist/ui/hooks/useVisibleMessageReceipts.d.ts +12 -0
- package/dist/ui/new/AssistantUiPresentation.d.ts +1 -0
- package/dist/ui/new/NewAssistantUiPresentation.d.ts +2 -0
- package/package.json +4 -2
|
@@ -32,7 +32,10 @@ export declare const normalizeChatAttachment: (candidate: unknown) => ChatAttach
|
|
|
32
32
|
export declare const normalizeChatAttachments: (values: readonly unknown[] | undefined) => ChatAttachment[];
|
|
33
33
|
export declare const normalizeMessageForSession: (message: RawMessageData, interactionSessionId: string) => MessageData;
|
|
34
34
|
export declare const listConversations: (config: WidgetConfig, api: AppApi, cursor?: string, signal?: AbortSignal) => Promise<VersionedCursorPage<ConversationData>>;
|
|
35
|
+
export declare const acknowledgeConversationMessageRead: (config: WidgetConfig, api: AppApi, conversationId: string, messageId: string, readProof: string, signal?: AbortSignal) => Promise<void>;
|
|
35
36
|
export declare const listConversationMessages: (config: WidgetConfig, api: AppApi, conversationId: string, cursor?: string, signal?: AbortSignal) => Promise<CursorPage<MessageData>>;
|
|
37
|
+
/** Fill every ordinal gap after a disconnect, including gaps larger than one page. */
|
|
38
|
+
export declare const catchUpConversationMessages: (config: WidgetConfig, api: AppApi, conversationId: string, knownOrdinal: number, signal?: AbortSignal) => Promise<CursorPage<MessageData>>;
|
|
36
39
|
export declare const createConversation: (config: WidgetConfig, api: AppApi, signal?: AbortSignal) => Promise<ConversationData>;
|
|
37
40
|
export declare const selectConversation: (config: WidgetConfig, api: AppApi, conversationId: string, signal?: AbortSignal) => Promise<ConversationData>;
|
|
38
41
|
export declare const getConversation: (config: WidgetConfig, api: AppApi, conversationId: string, signal?: AbortSignal) => Promise<ConversationData>;
|
|
@@ -26,6 +26,7 @@ export type MessageDelivery = {
|
|
|
26
26
|
status: "PENDING" | "DELIVERING" | "DELIVERED" | "READ" | "FAILED" | "CANCELLED";
|
|
27
27
|
/** Omitted by realtime delivery claims; present in authoritative history. */
|
|
28
28
|
acceptedAt?: string;
|
|
29
|
+
readAt?: string | null;
|
|
29
30
|
interactionSessionId?: string | null;
|
|
30
31
|
};
|
|
31
32
|
export declare enum MessageStatus {
|
|
@@ -68,6 +69,7 @@ export type MessageData = {
|
|
|
68
69
|
forwardCount: number;
|
|
69
70
|
ordinal?: number;
|
|
70
71
|
delivery?: MessageDelivery;
|
|
72
|
+
readProof?: string;
|
|
71
73
|
clientMessageId?: string | null;
|
|
72
74
|
};
|
|
73
75
|
/**
|
|
@@ -135,6 +137,7 @@ export type RawMessageData = {
|
|
|
135
137
|
author?: unknown;
|
|
136
138
|
attachments?: unknown[];
|
|
137
139
|
delivery?: MessageDelivery;
|
|
140
|
+
readProof?: string;
|
|
138
141
|
createdAt: string;
|
|
139
142
|
updatedAt: string;
|
|
140
143
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { C as A, E as e, S as s, d as E,
|
|
1
|
+
import { C as A, E as e, S as s, d as E, b as n } from "./index-BdLdThTz.js";
|
|
2
2
|
export {
|
|
3
3
|
A as ChatWidgetInstance,
|
|
4
4
|
e as EXTERNALLY_AVAILABLE_ACTIONS,
|
|
5
5
|
s as SUPPORTED_LOCALES,
|
|
6
6
|
E as createMockAttachmentTransport,
|
|
7
|
-
|
|
7
|
+
n as isExternallyAvailableAction
|
|
8
8
|
};
|