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.
- package/dist/src/sdk/sdk.d.ts +1 -0
- package/dist/src/sdk/sdk.js +5 -0
- package/dist/src/sdk/types.d.ts +23 -0
- package/dist/src/sdk/urls.d.ts +1 -0
- package/dist/src/sdk/urls.js +1 -0
- package/package.json +1 -1
- package/src/sdk/sdk.ts +5 -0
- package/src/sdk/types.ts +25 -0
- package/src/sdk/urls.ts +1 -0
package/dist/src/sdk/sdk.d.ts
CHANGED
|
@@ -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>;
|
package/dist/src/sdk/sdk.js
CHANGED
|
@@ -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
|
// ======================
|
package/dist/src/sdk/types.d.ts
CHANGED
|
@@ -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
|
}
|
package/dist/src/sdk/urls.d.ts
CHANGED
package/dist/src/sdk/urls.js
CHANGED
package/package.json
CHANGED
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
|
}
|