med-scribe-alliance-ts-sdk 2.0.34 → 2.0.35

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 CHANGED
@@ -291,7 +291,7 @@ if (!session.success) return;
291
291
  // 2. Upload the file to storage using the session's upload_url
292
292
  const upload = await client.uploadAudioFile(
293
293
  myAudioFile,
294
- 'audio_0.mp3', // storage object name
294
+ '1.mp3', // storage object name
295
295
  session.data.upload_url
296
296
  );
297
297
  if (!upload.success) {
package/dist/index.d.ts CHANGED
@@ -799,9 +799,8 @@ export declare class ScribeClient {
799
799
  /**
800
800
  * Upload a single pre-recorded audio file to storage.
801
801
  * @param file - The audio file/blob to upload.
802
+ * @param fileName - Storage object name, e.g. "1.mp3".
802
803
  * @param upload - The `upload_url` payload from the create-session response.
803
- * @param options.fileName - Storage object name. Defaults to the File's name,
804
- * else `audio_0.<ext>` derived from the MIME type.
805
804
  */
806
805
  uploadAudioFile(file: Blob, fileName: string, upload: SessionUploadInfo): Promise<SDKResult<UploadAudioFileResult>>;
807
806
  /**
package/dist/index.mjs CHANGED
@@ -1121,7 +1121,7 @@ var pe = {
1121
1121
  };
1122
1122
  }
1123
1123
  getNextFileName() {
1124
- return `audio_${this.chunks.length + 1}.mp3`;
1124
+ return `${this.chunks.length + 1}.mp3`;
1125
1125
  }
1126
1126
  addChunk(e) {
1127
1127
  return this.chunks.push(e), this.chunks.length - 1;
@@ -1603,7 +1603,7 @@ var Se = class {
1603
1603
  totalFiles: 0
1604
1604
  };
1605
1605
  try {
1606
- let e = await this.stopMediaRecorder(), t = `audio_0.${this.getFileExtension()}`;
1606
+ let e = await this.stopMediaRecorder(), t = `1.${this.getFileExtension()}`;
1607
1607
  try {
1608
1608
  return await Y(this.transport, {
1609
1609
  fileName: t,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "med-scribe-alliance-ts-sdk",
3
- "version": "2.0.34",
3
+ "version": "2.0.35",
4
4
  "description": "TypeScript SDK for the MedScribe Alliance Protocol",
5
5
  "main": "dist/index.mjs",
6
6
  "module": "dist/index.mjs",