@eka-care/ekascribe-ts-sdk 2.0.26 → 2.0.28
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 +33 -0
- package/dist/index.mjs +2125 -1602
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -8,11 +8,18 @@ declare enum CALLBACK_TYPE {
|
|
|
8
8
|
STORAGE_STATUS = "storage_status"
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
+
declare enum COMPATIBILITY_TEST_STATUS {
|
|
12
|
+
SUCCESS = "success",
|
|
13
|
+
ERROR = "error",
|
|
14
|
+
WARNING = "warning"
|
|
15
|
+
}
|
|
16
|
+
|
|
11
17
|
declare class EkaScribe {
|
|
12
18
|
private static instance;
|
|
13
19
|
private vadInstance;
|
|
14
20
|
private audioFileManagerInstance;
|
|
15
21
|
private audioBufferInstance;
|
|
22
|
+
private compatibilityManager;
|
|
16
23
|
private constructor();
|
|
17
24
|
static getInstance({ access_token, env, clientId, }: {
|
|
18
25
|
access_token?: string;
|
|
@@ -87,6 +94,13 @@ declare class EkaScribe {
|
|
|
87
94
|
uploadAudioWithPresignedUrl(request: TPostV1UploadAudioFilesRequest): Promise<TFullAudioUploadResponse>;
|
|
88
95
|
updateResultSummary(request: TPatchVoiceApiV3StatusRequest): Promise<TPatchVoiceApiV3StatusResponse>;
|
|
89
96
|
getConfigMyTemplates(): Promise<TGetConfigV2Response>;
|
|
97
|
+
/**
|
|
98
|
+
* Run system compatibility test
|
|
99
|
+
* @param callback - Callback function to receive test results as they complete
|
|
100
|
+
* @param workerUrl - Optional worker URL for SharedWorker test
|
|
101
|
+
* @returns Promise with test summary
|
|
102
|
+
*/
|
|
103
|
+
runSystemCompatibilityTest(callback: TCompatibilityCallback, workerUrl?: string): Promise<TCompatibilityTestSummary>;
|
|
90
104
|
}
|
|
91
105
|
|
|
92
106
|
declare enum ERROR_CODE {
|
|
@@ -138,6 +152,25 @@ declare type TAudioChunksInfo = {
|
|
|
138
152
|
audioFrames?: undefined;
|
|
139
153
|
});
|
|
140
154
|
|
|
155
|
+
declare type TCompatibilityCallback = (result: TCompatibilityTestResult) => void;
|
|
156
|
+
|
|
157
|
+
declare type TCompatibilityTestResult = {
|
|
158
|
+
test_type: string;
|
|
159
|
+
status: COMPATIBILITY_TEST_STATUS;
|
|
160
|
+
message: string;
|
|
161
|
+
data?: any;
|
|
162
|
+
timestamp: string;
|
|
163
|
+
error?: string;
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
declare type TCompatibilityTestSummary = {
|
|
167
|
+
allPassed: boolean;
|
|
168
|
+
results: TCompatibilityTestResult[];
|
|
169
|
+
totalTests: number;
|
|
170
|
+
passedTests: number;
|
|
171
|
+
failedTests: number;
|
|
172
|
+
};
|
|
173
|
+
|
|
141
174
|
declare type TConfigSettings = {
|
|
142
175
|
model_training_consent: {
|
|
143
176
|
value: boolean;
|