@1interface/chat-core 0.22.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 CHANGED
@@ -70,6 +70,7 @@ import { UnsubscribeListener } from '@reduxjs/toolkit';
70
70
  import { UserResponse } from '@1interface/shared-core';
71
71
  import { VerificationRequiredResult } from '@1interface/shared-core';
72
72
  import { VerifyEmailRequest } from '@1interface/shared-core';
73
+ import { VoiceTransport } from '@1interface/shared-core';
73
74
 
74
75
  export declare interface AdapterConfig {
75
76
  getAuthToken: () => string | null;
@@ -853,6 +854,19 @@ export declare type DocumentUploadFile = File | Blob | {
853
854
  type: string;
854
855
  };
855
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
+
856
870
  export declare const enqueueMessage: ActionCreatorWithOptionalPayload<QueuedMessage, "chat/enqueueMessage">;
857
871
 
858
872
  export declare const ERROR_CODES: {
@@ -5331,6 +5345,7 @@ export declare interface VoiceAgentConfig {
5331
5345
  enabled: boolean;
5332
5346
  show_customization_modal: boolean;
5333
5347
  assistant_starts_conversation: boolean;
5348
+ transport?: VoiceTransport;
5334
5349
  }
5335
5350
 
5336
5351
  export { }