@eka-care/ekascribe-ts-sdk 3.0.34 → 3.0.36

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,7 +17,6 @@ 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';
21
20
 
22
21
  export declare enum API_STATUS {
23
22
  NOT_INITIALIZED = "na",
@@ -143,13 +142,12 @@ declare class EkaScribe {
143
142
  *
144
143
  * Client flow:
145
144
  * 1. createSession() — via sessions.createSession()
146
- * 2. processPreRecordedAudio(upload, audioFile, audioFileName) — this method
145
+ * 2. processPreRecordedAudio(uploadUrl, audioFile, audioFileName) — this method
147
146
  * 3. endSession — via sessions.endSession()
148
147
  */
149
148
  processPreRecordedAudio(request: {
150
- upload: SessionUploadInfo;
149
+ uploadUrl: string;
151
150
  audioFile: File | Blob;
152
- audioFileName?: string;
153
151
  }): Promise<TStartRecordingResponse>;
154
152
  /** @deprecated Backward compatible */
155
153
  commitTransactionCall(): Promise<TEndRecordingResponse>;
@@ -207,6 +205,7 @@ export { EndSessionRequest }
207
205
  export { EndSessionResponse }
208
206
 
209
207
  export declare enum ERROR_CODE {
208
+ MICROPHONE = "microphone",
210
209
  TXN_INIT_FAILED = "txn_init_failed",
211
210
  TXN_LIMIT_EXCEEDED = "txn_limit_exceeded",
212
211
  INTERNAL_SERVER_ERROR = "internal_server_error",
@@ -217,8 +216,7 @@ export declare enum ERROR_CODE {
217
216
  NETWORK_ERROR = "network_error",
218
217
  UNKNOWN_ERROR = "unknown_error",
219
218
  UNAUTHORIZED = "unauthorized",
220
- FORBIDDEN = "forbidden",
221
- START_RECORDING_FAILED = "start_recording_failed"
219
+ FORBIDDEN = "forbidden"
222
220
  }
223
221
 
224
222
  declare type Gender = 'M' | 'F' | 'O';
@@ -595,7 +593,7 @@ export declare type TGetV1SessionDetailsData = {
595
593
  wid: string;
596
594
  created_at: number;
597
595
  expires_at: number;
598
- upload_url: SessionUploadInfo;
596
+ upload_url: string;
599
597
  status: string;
600
598
  user_status: 'init' | 'recording_started' | 'commit' | string;
601
599
  transfer: string;
@@ -615,10 +613,6 @@ export declare type TGetV1SessionDetailsData = {
615
613
  patient_oid?: string;
616
614
  }>;
617
615
  };
618
- input_language: string[];
619
- request_templates: Record<string, []>;
620
- consultation_mode: string;
621
- model_type: string;
622
616
  };
623
617
 
624
618
  export declare type TGetV1SessionDetailsRequest = {
@@ -1059,7 +1053,7 @@ export declare type TStartRecordingForExistingSessionRequest = {
1059
1053
  txn_id: string;
1060
1054
  created_at: number;
1061
1055
  expires_at: string;
1062
- upload_url: SessionUploadInfo;
1056
+ upload_url: string;
1063
1057
  business_id?: string;
1064
1058
  microphoneID?: string;
1065
1059
  };