med-scribe-alliance-ts-sdk 2.0.21 → 2.0.24
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 +9 -0
- package/dist/index.mjs +8 -6
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -770,6 +770,15 @@ export declare class ScribeClient {
|
|
|
770
770
|
* Update the Bearer token. Propagates to transport, active recorder, and worker.
|
|
771
771
|
*/
|
|
772
772
|
setAccessToken(token: string): void;
|
|
773
|
+
/**
|
|
774
|
+
* Lightweight cleanup between back-to-back sessions.
|
|
775
|
+
*
|
|
776
|
+
* Stops any active recording, resets the recording pipeline (VAD, mic,
|
|
777
|
+
* buffers, worker), and clears the current session reference. Does NOT
|
|
778
|
+
* touch callbacks, discovery cache, transport, or initialization state —
|
|
779
|
+
* use `reset()` for a full teardown.
|
|
780
|
+
*/
|
|
781
|
+
clearRecordingState(): void;
|
|
773
782
|
/**
|
|
774
783
|
* Full reset — stops recording if active, clears all caches and state.
|
|
775
784
|
*/
|
package/dist/index.mjs
CHANGED
|
@@ -165,7 +165,7 @@ var r = "/.well-known/medscribealliance", i = 3600 * 1e3, a = /* @__PURE__ */ fu
|
|
|
165
165
|
session_mode: e.string().optional(),
|
|
166
166
|
patient_details: e.object({
|
|
167
167
|
name: e.string().optional(),
|
|
168
|
-
age: e.string().optional(),
|
|
168
|
+
age: e.union([e.string(), e.number()]).optional(),
|
|
169
169
|
gender: e.string().optional(),
|
|
170
170
|
mobile: e.number().optional()
|
|
171
171
|
}).optional(),
|
|
@@ -178,7 +178,7 @@ var r = "/.well-known/medscribealliance", i = 3600 * 1e3, a = /* @__PURE__ */ fu
|
|
|
178
178
|
processing_status: e.string().optional(),
|
|
179
179
|
patient_details: e.object({
|
|
180
180
|
name: e.string().optional(),
|
|
181
|
-
age: e.string().optional(),
|
|
181
|
+
age: e.union([e.string(), e.number()]).optional(),
|
|
182
182
|
gender: e.string().optional(),
|
|
183
183
|
mobile: e.number().optional()
|
|
184
184
|
}).optional(),
|
|
@@ -194,7 +194,7 @@ var r = "/.well-known/medscribealliance", i = 3600 * 1e3, a = /* @__PURE__ */ fu
|
|
|
194
194
|
upload_url: e.string().min(1, "upload_url is required"),
|
|
195
195
|
patient_details: e.object({
|
|
196
196
|
name: e.string().optional(),
|
|
197
|
-
age: e.string().optional(),
|
|
197
|
+
age: e.union([e.string(), e.number()]).optional(),
|
|
198
198
|
gender: e.string().optional(),
|
|
199
199
|
mobile: e.number().optional()
|
|
200
200
|
}).nullable().optional()
|
|
@@ -209,14 +209,13 @@ var r = "/.well-known/medscribealliance", i = 3600 * 1e3, a = /* @__PURE__ */ fu
|
|
|
209
209
|
status: e.string(),
|
|
210
210
|
created_at: e.string(),
|
|
211
211
|
expires_at: e.string().nullish(),
|
|
212
|
-
expired_at: e.string().nullish(),
|
|
213
212
|
completed_at: e.string().nullish(),
|
|
214
213
|
model_used: e.string().nullish(),
|
|
215
214
|
language_detected: e.string().nullish(),
|
|
216
215
|
audio_files_received: e.number().int(),
|
|
217
216
|
audio_files: e.array(e.string()),
|
|
218
217
|
audio_files_processed: e.number().int().optional(),
|
|
219
|
-
additional_data: e.record(e.string(), e.any()),
|
|
218
|
+
additional_data: e.record(e.string(), e.any()).optional(),
|
|
220
219
|
templates: e.array(e.record(e.string(), e.any())).optional(),
|
|
221
220
|
transcript: e.string().nullable().optional(),
|
|
222
221
|
processing_errors: e.array(e.object({
|
|
@@ -231,7 +230,7 @@ var r = "/.well-known/medscribealliance", i = 3600 * 1e3, a = /* @__PURE__ */ fu
|
|
|
231
230
|
}).optional(),
|
|
232
231
|
patient_details: e.object({
|
|
233
232
|
name: e.string().optional(),
|
|
234
|
-
age: e.string().optional(),
|
|
233
|
+
age: e.union([e.string(), e.number()]).optional(),
|
|
235
234
|
gender: e.string().optional(),
|
|
236
235
|
mobile: e.number().optional()
|
|
237
236
|
}).nullable().optional(),
|
|
@@ -2015,6 +2014,9 @@ var ie = class {
|
|
|
2015
2014
|
setAccessToken(e) {
|
|
2016
2015
|
this.config.accessToken = e, this.transport.setAuthToken(e), this.recordingManager.updateAuthToken(e);
|
|
2017
2016
|
}
|
|
2017
|
+
clearRecordingState() {
|
|
2018
|
+
this.recordingManager.isRecording() && this.recordingManager.forceStop(), this.recordingManager.reset(), this.sessionManager.clearCurrentSession();
|
|
2019
|
+
}
|
|
2018
2020
|
async reset() {
|
|
2019
2021
|
try {
|
|
2020
2022
|
this.recordingManager.isRecording() && await this.recordingManager.stop();
|