@eka-care/ekascribe-ts-sdk 2.0.46 → 2.0.48
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 +4 -6
- package/dist/index.mjs +1249 -1290
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -21,18 +21,17 @@ declare class EkaScribe {
|
|
|
21
21
|
private audioBufferInstance;
|
|
22
22
|
private compatibilityManager;
|
|
23
23
|
private constructor();
|
|
24
|
-
static getInstance({ access_token, env, clientId,
|
|
24
|
+
static getInstance({ access_token, env, clientId, }: {
|
|
25
25
|
access_token?: string;
|
|
26
26
|
env?: 'PROD' | 'DEV';
|
|
27
27
|
clientId?: string;
|
|
28
|
-
clientEndpoint?: string;
|
|
29
28
|
}): EkaScribe;
|
|
30
29
|
resetInstance(): void;
|
|
31
30
|
getEkascribeConfig(): Promise<TGetConfigV2Response>;
|
|
32
31
|
updateAuthTokens({ access_token }: {
|
|
33
32
|
access_token: string;
|
|
34
33
|
}): void;
|
|
35
|
-
initTransaction(request: TPostTransactionInitRequest): Promise<TStartRecordingResponse>;
|
|
34
|
+
initTransaction(request: TPostTransactionInitRequest, sharedWorkerUrl?: string): Promise<TStartRecordingResponse>;
|
|
36
35
|
startRecording(): Promise<TStartRecordingResponse>;
|
|
37
36
|
reinitializeVad(): void;
|
|
38
37
|
destroyVad(): void;
|
|
@@ -97,7 +96,7 @@ declare class EkaScribe {
|
|
|
97
96
|
uploadAudioWithPresignedUrl(request: TPostV1UploadAudioFilesRequest): Promise<TFullAudioUploadResponse>;
|
|
98
97
|
updateResultSummary(request: TPatchVoiceApiV3StatusRequest): Promise<TPatchVoiceApiV3StatusResponse>;
|
|
99
98
|
getConfigMyTemplates(): Promise<TGetConfigV2Response>;
|
|
100
|
-
runSystemCompatibilityTest(callback: TCompatibilityCallback,
|
|
99
|
+
runSystemCompatibilityTest(callback: TCompatibilityCallback, sharedWorker?: SharedWorker): Promise<TCompatibilityTestSummary>;
|
|
101
100
|
}
|
|
102
101
|
|
|
103
102
|
declare enum ERROR_CODE {
|
|
@@ -122,11 +121,10 @@ declare enum ERROR_CODE {
|
|
|
122
121
|
|
|
123
122
|
declare type Gender = 'M' | 'F' | 'O';
|
|
124
123
|
|
|
125
|
-
export declare const getEkaScribeInstance: ({ access_token, env, clientId,
|
|
124
|
+
export declare const getEkaScribeInstance: ({ access_token, env, clientId, }: {
|
|
126
125
|
access_token?: string;
|
|
127
126
|
env?: "PROD" | "DEV";
|
|
128
127
|
clientId?: string;
|
|
129
|
-
clientEndpoint?: string;
|
|
130
128
|
}) => EkaScribe;
|
|
131
129
|
|
|
132
130
|
declare type TAudioChunksInfo = {
|