whio-api-sdk 1.0.169 → 1.0.170

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.
@@ -89,6 +89,7 @@ export declare class ApiSDK {
89
89
  updateSession(id: string, sessionData: UpdateSessionDto): Promise<Session>;
90
90
  deleteSession(id: string): Promise<void>;
91
91
  setPrimaryTranscriptionSummary(sessionId: string, summaryId: string): Promise<Session>;
92
+ getPapareoTranscriptionStatus(sessionId: string): Promise<Session>;
92
93
  createAgent(name: string): Promise<Agent>;
93
94
  getAgents(): Promise<Agent[]>;
94
95
  getAgent(id: string): Promise<Agent>;
@@ -678,6 +678,11 @@ export class ApiSDK {
678
678
  return this.request(`${urls.sessions}/${sessionId}/primary-summary/${summaryId}`, 'PATCH');
679
679
  });
680
680
  }
681
+ getPapareoTranscriptionStatus(sessionId) {
682
+ return __awaiter(this, void 0, void 0, function* () {
683
+ return this.request(`${urls.getPapareoTranscriptionStatus}/${sessionId}`, 'GET');
684
+ });
685
+ }
681
686
  // ======================
682
687
  // AGENT METHODS
683
688
  // ======================
@@ -343,6 +343,12 @@ export interface AudioFile {
343
343
  uploadId?: string;
344
344
  transcriptionUrl?: string;
345
345
  status: AudioFileStatus;
346
+ taskId?: string;
347
+ uploadStatus?: string;
348
+ statusLink?: string;
349
+ cancelLink?: string;
350
+ downloadLink?: string;
351
+ progressPercent?: number;
346
352
  createdAt: string;
347
353
  updatedAt: string;
348
354
  sessionId: string;
@@ -362,4 +368,20 @@ export interface CreateAudioFileDto {
362
368
  export interface UpdateAudioFileDto {
363
369
  transcriptionUrl?: string;
364
370
  status?: AudioFileStatus;
371
+ taskId?: string;
372
+ uploadStatus?: string;
373
+ statusLink?: string;
374
+ cancelLink?: string;
375
+ downloadLink?: string;
376
+ progressPercent?: number;
377
+ }
378
+ export interface UploadedFileData {
379
+ task_id: string;
380
+ status: string;
381
+ links: {
382
+ status: string;
383
+ cancel: string;
384
+ download: string;
385
+ };
386
+ progress_percent: number;
365
387
  }
@@ -25,6 +25,7 @@ declare const urls: {
25
25
  roles: string;
26
26
  userRoles: string;
27
27
  sessions: string;
28
+ getPapareoTranscriptionStatus: string;
28
29
  agents: string;
29
30
  audioFiles: string;
30
31
  };
@@ -33,6 +33,7 @@ const urls = {
33
33
  userRoles: '/user-roles',
34
34
  // Sessions
35
35
  sessions: '/sessions',
36
+ getPapareoTranscriptionStatus: '/sessions/get-papareo-server-transcription-status',
36
37
  // Agents
37
38
  agents: '/agents',
38
39
  // Audio Files
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whio-api-sdk",
3
- "version": "1.0.169",
3
+ "version": "1.0.170",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
package/src/sdk/sdk.ts CHANGED
@@ -44,6 +44,7 @@ import {
44
44
  AudioFileStatus,
45
45
  CreateAudioFileDto,
46
46
  UpdateAudioFileDto,
47
+ UploadedFileData,
47
48
  } from './types';
48
49
  import urls from './urls';
49
50
  import { jwtDecode } from 'jwt-decode';
@@ -754,6 +755,10 @@ export class ApiSDK {
754
755
  return this.request<Session>(`${urls.sessions}/${sessionId}/primary-summary/${summaryId}`, 'PATCH');
755
756
  }
756
757
 
758
+ public async getPapareoTranscriptionStatus(sessionId: string): Promise<Session> {
759
+ return this.request<Session>(`${urls.getPapareoTranscriptionStatus}/${sessionId}`, 'GET');
760
+ }
761
+
757
762
  // ======================
758
763
  // AGENT METHODS
759
764
  // ======================
package/src/sdk/types.ts CHANGED
@@ -434,6 +434,12 @@ export interface AudioFile {
434
434
  uploadId?: string;
435
435
  transcriptionUrl?: string;
436
436
  status: AudioFileStatus;
437
+ taskId?: string;
438
+ uploadStatus?: string;
439
+ statusLink?: string;
440
+ cancelLink?: string;
441
+ downloadLink?: string;
442
+ progressPercent?: number;
437
443
  createdAt: string;
438
444
  updatedAt: string;
439
445
  sessionId: string;
@@ -459,4 +465,22 @@ export interface CreateAudioFileDto {
459
465
  export interface UpdateAudioFileDto {
460
466
  transcriptionUrl?: string;
461
467
  status?: AudioFileStatus;
468
+ taskId?: string;
469
+ uploadStatus?: string;
470
+ statusLink?: string;
471
+ cancelLink?: string;
472
+ downloadLink?: string;
473
+ progressPercent?: number;
474
+ }
475
+
476
+ // UploadedFileData interface for the upload response
477
+ export interface UploadedFileData {
478
+ task_id: string;
479
+ status: string;
480
+ links: {
481
+ status: string;
482
+ cancel: string;
483
+ download: string;
484
+ };
485
+ progress_percent: number;
462
486
  }
package/src/sdk/urls.ts CHANGED
@@ -40,6 +40,7 @@ const urls = {
40
40
 
41
41
  // Sessions
42
42
  sessions: '/sessions',
43
+ getPapareoTranscriptionStatus: '/sessions/get-papareo-server-transcription-status',
43
44
 
44
45
  // Agents
45
46
  agents: '/agents',