@eka-care/ekascribe-ts-sdk 3.0.32 → 3.0.33

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
@@ -17,6 +17,7 @@ import { RecordingOptions } from 'med-scribe-alliance-ts-sdk';
17
17
  import { ResolvedConfig } from 'med-scribe-alliance-ts-sdk';
18
18
  import { ScribeClient } from 'med-scribe-alliance-ts-sdk';
19
19
  import { SDKResult } from 'med-scribe-alliance-ts-sdk';
20
+ import { SessionUploadInfo } from 'med-scribe-alliance-ts-sdk';
20
21
 
21
22
  export declare enum API_STATUS {
22
23
  NOT_INITIALIZED = "na",
@@ -142,12 +143,13 @@ declare class EkaScribe {
142
143
  *
143
144
  * Client flow:
144
145
  * 1. createSession() — via sessions.createSession()
145
- * 2. processPreRecordedAudio(uploadUrl, audioFile, audioFileName) — this method
146
+ * 2. processPreRecordedAudio(upload, audioFile, audioFileName) — this method
146
147
  * 3. endSession — via sessions.endSession()
147
148
  */
148
149
  processPreRecordedAudio(request: {
149
- uploadUrl: string;
150
+ upload: SessionUploadInfo;
150
151
  audioFile: File | Blob;
152
+ audioFileName?: string;
151
153
  }): Promise<TStartRecordingResponse>;
152
154
  /** @deprecated Backward compatible */
153
155
  commitTransactionCall(): Promise<TEndRecordingResponse>;
@@ -205,7 +207,6 @@ export { EndSessionRequest }
205
207
  export { EndSessionResponse }
206
208
 
207
209
  export declare enum ERROR_CODE {
208
- MICROPHONE = "microphone",
209
210
  TXN_INIT_FAILED = "txn_init_failed",
210
211
  TXN_LIMIT_EXCEEDED = "txn_limit_exceeded",
211
212
  INTERNAL_SERVER_ERROR = "internal_server_error",
@@ -594,7 +595,7 @@ export declare type TGetV1SessionDetailsData = {
594
595
  wid: string;
595
596
  created_at: number;
596
597
  expires_at: number;
597
- upload_url: string;
598
+ upload_url: SessionUploadInfo;
598
599
  status: string;
599
600
  user_status: 'init' | 'recording_started' | 'commit' | string;
600
601
  transfer: string;
@@ -1054,7 +1055,7 @@ export declare type TStartRecordingForExistingSessionRequest = {
1054
1055
  txn_id: string;
1055
1056
  created_at: number;
1056
1057
  expires_at: string;
1057
- upload_url: string;
1058
+ upload_url: SessionUploadInfo;
1058
1059
  business_id?: string;
1059
1060
  microphoneID?: string;
1060
1061
  };