whio-api-sdk 1.0.185-bet-staging → 1.0.186-bet-staging

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.
@@ -130,6 +130,9 @@ export declare class ApiSDK {
130
130
  updateBase64AudioFile(id: string, updates: UpdateBase64AudioFileDto): Promise<Base64AudioFile>;
131
131
  deleteBase64AudioFile(id: string): Promise<void>;
132
132
  addBase64Chunk(sessionId: string, base64Chunk: string): Promise<AddBase64ChunkResponse>;
133
+ queueSessionBase64AudioForTranscription(sessionId: string): Promise<{
134
+ success: boolean;
135
+ }>;
133
136
  createWorkflow(name: string, organizationId?: string): Promise<Workflow>;
134
137
  getWorkflows(organizationId?: string): Promise<Workflow[]>;
135
138
  getWorkflow(id: string): Promise<Workflow>;
@@ -918,6 +918,11 @@ export class ApiSDK {
918
918
  return this.request(`${urls.audioFiles}/base64/add-chunk/${sessionId}`, 'POST', { base64Chunk });
919
919
  });
920
920
  }
921
+ queueSessionBase64AudioForTranscription(sessionId) {
922
+ return __awaiter(this, void 0, void 0, function* () {
923
+ return this.request(`${urls.audioFiles}/session/${sessionId}/transcribe`, 'POST');
924
+ });
925
+ }
921
926
  // ======================
922
927
  // WORKFLOW METHODS
923
928
  // ======================
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whio-api-sdk",
3
- "version": "1.0.185-bet-staging",
3
+ "version": "1.0.186-bet-staging",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
package/src/sdk/sdk.ts CHANGED
@@ -984,6 +984,10 @@ export class ApiSDK {
984
984
  return this.request<AddBase64ChunkResponse>(`${urls.audioFiles}/base64/add-chunk/${sessionId}`, 'POST', { base64Chunk });
985
985
  }
986
986
 
987
+ public async queueSessionBase64AudioForTranscription(sessionId: string): Promise<{ success: boolean }> {
988
+ return this.request<{ success: boolean }>(`${urls.audioFiles}/session/${sessionId}/transcribe`, 'POST');
989
+ }
990
+
987
991
  // ======================
988
992
  // WORKFLOW METHODS
989
993
  // ======================