whio-api-sdk 1.0.169 → 1.0.171

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
  // ======================
@@ -284,6 +284,7 @@ export interface Session {
284
284
  template?: Template;
285
285
  transcriptionSummaries?: TranscriptionSummary[];
286
286
  primaryTranscriptionSummary?: TranscriptionSummary;
287
+ audioFiles?: AudioFile[];
287
288
  }
288
289
  export interface CreateSessionDto {
289
290
  transcript: string;
@@ -343,6 +344,12 @@ export interface AudioFile {
343
344
  uploadId?: string;
344
345
  transcriptionUrl?: string;
345
346
  status: AudioFileStatus;
347
+ taskId?: string;
348
+ uploadStatus?: string;
349
+ statusLink?: string;
350
+ cancelLink?: string;
351
+ downloadLink?: string;
352
+ progressPercent?: number;
346
353
  createdAt: string;
347
354
  updatedAt: string;
348
355
  sessionId: string;
@@ -362,4 +369,20 @@ export interface CreateAudioFileDto {
362
369
  export interface UpdateAudioFileDto {
363
370
  transcriptionUrl?: string;
364
371
  status?: AudioFileStatus;
372
+ taskId?: string;
373
+ uploadStatus?: string;
374
+ statusLink?: string;
375
+ cancelLink?: string;
376
+ downloadLink?: string;
377
+ progressPercent?: number;
378
+ }
379
+ export interface UploadedFileData {
380
+ task_id: string;
381
+ status: string;
382
+ links: {
383
+ status: string;
384
+ cancel: string;
385
+ download: string;
386
+ };
387
+ progress_percent: number;
365
388
  }
@@ -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.171",
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
@@ -361,6 +361,7 @@ export interface Session {
361
361
  template?: Template;
362
362
  transcriptionSummaries?: TranscriptionSummary[];
363
363
  primaryTranscriptionSummary?: TranscriptionSummary;
364
+ audioFiles?: AudioFile[];
364
365
  }
365
366
 
366
367
  // Session DTOs
@@ -434,6 +435,12 @@ export interface AudioFile {
434
435
  uploadId?: string;
435
436
  transcriptionUrl?: string;
436
437
  status: AudioFileStatus;
438
+ taskId?: string;
439
+ uploadStatus?: string;
440
+ statusLink?: string;
441
+ cancelLink?: string;
442
+ downloadLink?: string;
443
+ progressPercent?: number;
437
444
  createdAt: string;
438
445
  updatedAt: string;
439
446
  sessionId: string;
@@ -459,4 +466,22 @@ export interface CreateAudioFileDto {
459
466
  export interface UpdateAudioFileDto {
460
467
  transcriptionUrl?: string;
461
468
  status?: AudioFileStatus;
469
+ taskId?: string;
470
+ uploadStatus?: string;
471
+ statusLink?: string;
472
+ cancelLink?: string;
473
+ downloadLink?: string;
474
+ progressPercent?: number;
475
+ }
476
+
477
+ // UploadedFileData interface for the upload response
478
+ export interface UploadedFileData {
479
+ task_id: string;
480
+ status: string;
481
+ links: {
482
+ status: string;
483
+ cancel: string;
484
+ download: string;
485
+ };
486
+ progress_percent: number;
462
487
  }
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',