@eka-care/ekascribe-ts-sdk 3.0.23 → 3.0.25
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/README.md +763 -1220
- package/dist/index.d.ts +19 -3
- package/dist/index.mjs +4348 -2920
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { CallbackMap } from 'med-scribe-alliance-ts-sdk';
|
|
2
|
-
import { CallbackName as CallbackName_2 } from 'med-scribe-alliance-ts-sdk';
|
|
3
2
|
import { CreateSessionRequest } from 'med-scribe-alliance-ts-sdk';
|
|
4
3
|
import { CreateSessionResponse } from 'med-scribe-alliance-ts-sdk';
|
|
5
4
|
import { createWorkerBlobUrl } from 'med-scribe-alliance-ts-sdk';
|
|
@@ -13,6 +12,7 @@ import { PatchSessionRequest } from 'med-scribe-alliance-ts-sdk';
|
|
|
13
12
|
import { PatchSessionResponse } from 'med-scribe-alliance-ts-sdk';
|
|
14
13
|
import { PollOptions } from 'med-scribe-alliance-ts-sdk';
|
|
15
14
|
import { ProcessTemplateResponse } from 'med-scribe-alliance-ts-sdk';
|
|
15
|
+
import { RecordingOptions } from 'med-scribe-alliance-ts-sdk';
|
|
16
16
|
import { ResolvedConfig } from 'med-scribe-alliance-ts-sdk';
|
|
17
17
|
import { ScribeClient } from 'med-scribe-alliance-ts-sdk';
|
|
18
18
|
import { SDKResult } from 'med-scribe-alliance-ts-sdk';
|
|
@@ -84,6 +84,13 @@ declare class DocumentManager {
|
|
|
84
84
|
publishDocument({ session_id, document_id, }: TPostV1DocumentRequest): Promise<TPostV1DocumentResponse>;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
+
/** Consumer-facing callback map: overrides onTokenRequired to expect a token return */
|
|
88
|
+
export declare interface EkaCallbackMap extends Omit<CallbackMap, 'onTokenRequired'> {
|
|
89
|
+
onTokenRequired: () => Promise<string> | string;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export declare type EkaCallbackName = keyof EkaCallbackMap;
|
|
93
|
+
|
|
87
94
|
declare type EkaHosts = {
|
|
88
95
|
voiceV1: string;
|
|
89
96
|
voiceV2: string;
|
|
@@ -110,7 +117,13 @@ declare class EkaScribe {
|
|
|
110
117
|
static getInstance(config: EkaScribeConfig): EkaScribe;
|
|
111
118
|
/** @deprecated Backward compatible */
|
|
112
119
|
initTransaction(request: TPostTransactionInitRequest): Promise<TStartRecordingResponse>;
|
|
120
|
+
/** @deprecated Backward compatible */
|
|
113
121
|
startRecording(microphoneID?: string): Promise<TStartRecordingResponse>;
|
|
122
|
+
/**
|
|
123
|
+
* Creates a session and starts recording in one step.
|
|
124
|
+
* This is the recommended method for new integrations.
|
|
125
|
+
*/
|
|
126
|
+
startRecordingV2(options: RecordingOptions): Promise<TStartRecordingResponse>;
|
|
114
127
|
startRecordingForExistingSession(request: TStartRecordingForExistingSessionRequest): Promise<TStartRecordingResponse>;
|
|
115
128
|
pauseRecording(): TPauseRecordingResponse;
|
|
116
129
|
resumeRecording(): TPauseRecordingResponse;
|
|
@@ -155,8 +168,8 @@ declare class EkaScribe {
|
|
|
155
168
|
dlp?: boolean;
|
|
156
169
|
onPartialResultCb?: TPartialResultCallback;
|
|
157
170
|
}): Promise<TPollingResponse>;
|
|
158
|
-
registerCallback<K extends
|
|
159
|
-
removeCallback<K extends
|
|
171
|
+
registerCallback<K extends EkaCallbackName>(name: K, handler: EkaCallbackMap[K]): void;
|
|
172
|
+
removeCallback<K extends EkaCallbackName>(name: K, handler: EkaCallbackMap[K]): void;
|
|
160
173
|
/** @future Rename to setAccessToken(token: string) once existing clients migrate */
|
|
161
174
|
updateAuthTokens({ access_token }: {
|
|
162
175
|
access_token: string;
|
|
@@ -235,6 +248,8 @@ export declare enum PROCESSING_STATUS {
|
|
|
235
248
|
|
|
236
249
|
export { ProcessTemplateResponse }
|
|
237
250
|
|
|
251
|
+
export { RecordingOptions }
|
|
252
|
+
|
|
238
253
|
export { ResolvedConfig }
|
|
239
254
|
|
|
240
255
|
export declare enum RESULT_STATUS {
|
|
@@ -263,6 +278,7 @@ declare class SessionUtils {
|
|
|
263
278
|
getSuggestedMedications(txnId: string): Promise<TSuggestedMedicationResponse>;
|
|
264
279
|
addSessionContext({ txn_id, context, }: TPatchSessionContextRequest): Promise<TPatchSessionContextResponse>;
|
|
265
280
|
removeSessionContext({ txn_id, context, }: TPatchSessionContextRequest): Promise<TPatchSessionContextResponse>;
|
|
281
|
+
/** @deprecated Backward compatible */
|
|
266
282
|
updateResultSummary({ txnId, data, }: TPatchVoiceApiV3StatusRequest): Promise<TPatchVoiceApiV3StatusResponse>;
|
|
267
283
|
getConfig(): Promise<TGetConfigV2Response>;
|
|
268
284
|
getConfigMyTemplates(): Promise<TGetConfigV2Response>;
|