med-scribe-alliance-ts-sdk 2.0.23 → 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 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
@@ -2014,6 +2014,9 @@ var ie = class {
2014
2014
  setAccessToken(e) {
2015
2015
  this.config.accessToken = e, this.transport.setAuthToken(e), this.recordingManager.updateAuthToken(e);
2016
2016
  }
2017
+ clearRecordingState() {
2018
+ this.recordingManager.isRecording() && this.recordingManager.forceStop(), this.recordingManager.reset(), this.sessionManager.clearCurrentSession();
2019
+ }
2017
2020
  async reset() {
2018
2021
  try {
2019
2022
  this.recordingManager.isRecording() && await this.recordingManager.stop();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "med-scribe-alliance-ts-sdk",
3
- "version": "2.0.23",
3
+ "version": "2.0.24",
4
4
  "description": "TypeScript SDK for the MedScribe Alliance Protocol",
5
5
  "main": "dist/index.mjs",
6
6
  "module": "dist/index.mjs",