@1interface/chat-core 0.23.0 → 0.24.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 +13 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -854,6 +854,19 @@ export declare type DocumentUploadFile = File | Blob | {
|
|
|
854
854
|
type: string;
|
|
855
855
|
};
|
|
856
856
|
|
|
857
|
+
export declare function downloadDocument(fileId: string, { conversationId, timeoutMs, onAuthExpired, }?: DownloadDocumentOptions): Promise<DownloadedDocument>;
|
|
858
|
+
|
|
859
|
+
export declare interface DownloadDocumentOptions {
|
|
860
|
+
conversationId?: string;
|
|
861
|
+
timeoutMs?: number;
|
|
862
|
+
onAuthExpired?: () => void;
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
export declare interface DownloadedDocument {
|
|
866
|
+
blob: Blob;
|
|
867
|
+
filename: string | null;
|
|
868
|
+
}
|
|
869
|
+
|
|
857
870
|
export declare const enqueueMessage: ActionCreatorWithOptionalPayload<QueuedMessage, "chat/enqueueMessage">;
|
|
858
871
|
|
|
859
872
|
export declare const ERROR_CODES: {
|