whio-api-sdk 1.1.27 → 1.1.29
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/modules/agent.module.d.ts +90 -5
- package/dist/src/sdk/modules/agent.module.js +87 -2
- package/dist/src/sdk/modules/audio.module.d.ts +143 -2
- package/dist/src/sdk/modules/audio.module.js +144 -5
- package/dist/src/sdk/modules/auth.module.d.ts +43 -0
- package/dist/src/sdk/modules/auth.module.js +43 -0
- package/dist/src/sdk/modules/data-strategy.module.d.ts +45 -7
- package/dist/src/sdk/modules/data-strategy.module.js +39 -1
- package/dist/src/sdk/modules/external-integration.module.d.ts +30 -0
- package/dist/src/sdk/modules/external-integration.module.js +30 -0
- package/dist/src/sdk/modules/integration-action.module.d.ts +39 -0
- package/dist/src/sdk/modules/integration-action.module.js +39 -0
- package/dist/src/sdk/modules/log.module.d.ts +4 -4
- package/dist/src/sdk/modules/organization.module.d.ts +62 -3
- package/dist/src/sdk/modules/organization.module.js +61 -2
- package/dist/src/sdk/modules/patient.module.d.ts +5 -2
- package/dist/src/sdk/modules/patient.module.js +5 -2
- package/dist/src/sdk/modules/reports.module.d.ts +4 -4
- package/dist/src/sdk/modules/reports.module.js +6 -6
- package/dist/src/sdk/modules/session/orgadmin-session.module.d.ts +46 -1
- package/dist/src/sdk/modules/session/orgadmin-session.module.js +53 -6
- package/dist/src/sdk/modules/session/session.module.d.ts +62 -1
- package/dist/src/sdk/modules/session/session.module.js +64 -1
- package/dist/src/sdk/modules/session/superuser-session.module.d.ts +46 -1
- package/dist/src/sdk/modules/session/superuser-session.module.js +52 -5
- package/dist/src/sdk/modules/session.module.d.ts +142 -3
- package/dist/src/sdk/modules/session.module.js +153 -12
- package/dist/src/sdk/modules/team.module.d.ts +56 -4
- package/dist/src/sdk/modules/team.module.js +54 -6
- package/dist/src/sdk/modules/template.module.d.ts +96 -4
- package/dist/src/sdk/modules/template.module.js +95 -24
- package/dist/src/sdk/modules/transcription-summary.module.d.ts +60 -3
- package/dist/src/sdk/modules/transcription-summary.module.js +60 -7
- package/dist/src/sdk/modules/user.module.d.ts +106 -0
- package/dist/src/sdk/modules/user.module.js +107 -1
- package/dist/src/sdk/modules/websocket.module.d.ts +25 -8
- package/dist/src/sdk/modules/websocket.module.js +23 -6
- package/dist/src/sdk/modules/workflow.module.d.ts +39 -0
- package/dist/src/sdk/modules/workflow.module.js +39 -0
- package/dist/src/sdk/sdk.d.ts +19 -29
- package/dist/src/sdk/sdk.js +1 -44
- package/dist/src/sdk/types/agent.types.d.ts +3 -0
- package/dist/src/sdk/types/audio.types.d.ts +8 -9
- package/dist/src/sdk/types/data-strategy.types.d.ts +3 -0
- package/dist/src/sdk/types/external-integration.types.d.ts +6 -0
- package/dist/src/sdk/types/log.types.d.ts +2 -21
- package/dist/src/sdk/types/patient.types.d.ts +2 -3
- package/dist/src/sdk/types/reports.types.d.ts +1 -1
- package/dist/src/sdk/types/session.types.d.ts +8 -8
- package/dist/src/sdk/types/team.types.d.ts +4 -3
- package/dist/src/sdk/types/template.types.d.ts +15 -7
- package/dist/src/sdk/types/user.types.d.ts +6 -0
- package/dist/src/sdk/types/websocket.types.d.ts +5 -7
- package/dist/src/sdk/urls.d.ts +0 -4
- package/dist/src/sdk/urls.js +0 -5
- package/dist/src/sdk/whio-orgadmin-sdk.d.ts +7 -7
- package/dist/src/sdk/whio-sdk.d.ts +11 -8
- package/dist/src/sdk/whio-sdk.js +34 -18
- package/dist/src/sdk/whio-superuser-sdk.d.ts +12 -16
- package/dist/src/sdk/whio-superuser-sdk.js +1 -16
- package/dist/src/sdk/whio-teamadmin-sdk.d.ts +4 -8
- package/dist/src/sdk/whio-teamadmin-sdk.js +1 -18
- package/package.json +1 -1
- package/src/sdk/modules/agent.module.ts +94 -9
- package/src/sdk/modules/audio.module.ts +146 -8
- package/src/sdk/modules/auth.module.ts +43 -0
- package/src/sdk/modules/data-strategy.module.ts +51 -13
- package/src/sdk/modules/external-integration.module.ts +30 -0
- package/src/sdk/modules/integration-action.module.ts +39 -0
- package/src/sdk/modules/log.module.ts +4 -4
- package/src/sdk/modules/organization.module.ts +64 -5
- package/src/sdk/modules/patient.module.ts +5 -2
- package/src/sdk/modules/reports.module.ts +6 -6
- package/src/sdk/modules/session/orgadmin-session.module.ts +53 -7
- package/src/sdk/modules/session/session.module.ts +64 -2
- package/src/sdk/modules/session/superuser-session.module.ts +52 -6
- package/src/sdk/modules/session.module.ts +155 -15
- package/src/sdk/modules/team.module.ts +58 -9
- package/src/sdk/modules/template.module.ts +95 -32
- package/src/sdk/modules/transcription-summary.module.ts +62 -8
- package/src/sdk/modules/user.module.ts +108 -2
- package/src/sdk/modules/websocket.module.ts +26 -8
- package/src/sdk/modules/workflow.module.ts +39 -0
- package/src/sdk/sdk.ts +1 -37
- package/src/sdk/types/agent.types.ts +5 -0
- package/src/sdk/types/audio.types.ts +8 -10
- package/src/sdk/types/data-strategy.types.ts +3 -0
- package/src/sdk/types/external-integration.types.ts +6 -0
- package/src/sdk/types/log.types.ts +4 -23
- package/src/sdk/types/patient.types.ts +2 -3
- package/src/sdk/types/reports.types.ts +1 -1
- package/src/sdk/types/session.types.ts +8 -8
- package/src/sdk/types/team.types.ts +5 -3
- package/src/sdk/types/template.types.ts +18 -7
- package/src/sdk/types/user.types.ts +6 -0
- package/src/sdk/types/websocket.types.ts +12 -7
- package/src/sdk/urls.ts +0 -7
- package/src/sdk/whio-sdk.ts +29 -16
- package/src/sdk/whio-superuser-sdk.ts +1 -16
- package/src/sdk/whio-teamadmin-sdk.ts +1 -16
- package/tsconfig.json +1 -1
- package/src/sdk/modules/debug.module.ts +0 -44
package/dist/src/sdk/sdk.js
CHANGED
|
@@ -20,7 +20,6 @@ import { AudioModule } from './modules/audio.module';
|
|
|
20
20
|
import { WorkflowModule } from './modules/workflow.module';
|
|
21
21
|
import { IntegrationActionModule } from './modules/integration-action.module';
|
|
22
22
|
import { LogModule } from './modules/log.module';
|
|
23
|
-
import { DebugModule } from './modules/debug.module';
|
|
24
23
|
import { ExternalIntegrationModule } from './modules/external-integration.module';
|
|
25
24
|
import { WebSocketModule } from './modules/websocket.module';
|
|
26
25
|
import { ReportsModule } from './modules/reports.module';
|
|
@@ -49,7 +48,6 @@ export class ApiSDK extends BaseClient {
|
|
|
49
48
|
this.workflows = new WorkflowModule(config);
|
|
50
49
|
this.integrationActions = new IntegrationActionModule(config);
|
|
51
50
|
this.logs = new LogModule(config);
|
|
52
|
-
this.debug = new DebugModule(config);
|
|
53
51
|
this.externalIntegrations = new ExternalIntegrationModule(config);
|
|
54
52
|
this.websocket = config.skipWebsocket ? null : new WebSocketModule(config);
|
|
55
53
|
this.reports = new ReportsModule(config);
|
|
@@ -62,7 +60,7 @@ export class ApiSDK extends BaseClient {
|
|
|
62
60
|
this.modules = [
|
|
63
61
|
this.auth, this.users, this.organizations, this.teams, this.templates,
|
|
64
62
|
this.transcriptionSummaries, this.sessions, this.agents, this.audio,
|
|
65
|
-
this.workflows, this.integrationActions, this.logs, this.
|
|
63
|
+
this.workflows, this.integrationActions, this.logs, this.externalIntegrations,
|
|
66
64
|
this.reports, this.patients, this.dataStrategies, this.systemSnapshots, this.ratings,
|
|
67
65
|
this.tiaki,
|
|
68
66
|
...(this.websocket ? [this.websocket] : [])
|
|
@@ -319,11 +317,6 @@ export class ApiSDK extends BaseClient {
|
|
|
319
317
|
return this.teams.deleteTeam(...args);
|
|
320
318
|
});
|
|
321
319
|
}
|
|
322
|
-
removeUserFromTeamFixed(...args) {
|
|
323
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
324
|
-
return this.teams.removeUserFromTeamFixed(...args);
|
|
325
|
-
});
|
|
326
|
-
}
|
|
327
320
|
// Template methods
|
|
328
321
|
createTemplate(...args) {
|
|
329
322
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -420,21 +413,6 @@ export class ApiSDK extends BaseClient {
|
|
|
420
413
|
return this.transcriptionSummaries.deleteTranscriptionSummary(...args);
|
|
421
414
|
});
|
|
422
415
|
}
|
|
423
|
-
uploadLargeAudioFile(...args) {
|
|
424
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
425
|
-
return this.templates.uploadLargeAudioFile(...args);
|
|
426
|
-
});
|
|
427
|
-
}
|
|
428
|
-
uploadAudioFile(...args) {
|
|
429
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
430
|
-
return this.templates.uploadAudioFile(...args);
|
|
431
|
-
});
|
|
432
|
-
}
|
|
433
|
-
transcribeBase64Audio(...args) {
|
|
434
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
435
|
-
return this.templates.transcribeBase64Audio(...args);
|
|
436
|
-
});
|
|
437
|
-
}
|
|
438
416
|
// Session methods (user - own sessions only)
|
|
439
417
|
createSession(...args) {
|
|
440
418
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -847,27 +825,6 @@ export class ApiSDK extends BaseClient {
|
|
|
847
825
|
return this.logs.cleanupOldLogs(...args);
|
|
848
826
|
});
|
|
849
827
|
}
|
|
850
|
-
// Debug methods
|
|
851
|
-
getSessionsWithoutMedicalTranscriptions(...args) {
|
|
852
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
853
|
-
return this.debug.getSessionsWithoutMedicalTranscriptions(...args);
|
|
854
|
-
});
|
|
855
|
-
}
|
|
856
|
-
downloadSessionAsZip(...args) {
|
|
857
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
858
|
-
return this.debug.downloadSessionAsZip(...args);
|
|
859
|
-
});
|
|
860
|
-
}
|
|
861
|
-
downloadSessionAsZipUrl(...args) {
|
|
862
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
863
|
-
return this.debug.downloadSessionAsZipUrl(...args);
|
|
864
|
-
});
|
|
865
|
-
}
|
|
866
|
-
downloadSessionAndTriggerDownload(...args) {
|
|
867
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
868
|
-
return this.debug.downloadSessionAndTriggerDownload(...args);
|
|
869
|
-
});
|
|
870
|
-
}
|
|
871
828
|
// External Integration methods
|
|
872
829
|
createExternalIntegration(...args) {
|
|
873
830
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -14,6 +14,9 @@ export interface AgentOrganization {
|
|
|
14
14
|
agent?: Agent;
|
|
15
15
|
organization?: Organization;
|
|
16
16
|
}
|
|
17
|
+
export interface AgentWithOrganizations extends Agent {
|
|
18
|
+
organizations: AgentOrganization[];
|
|
19
|
+
}
|
|
17
20
|
export interface CreateAgentDto {
|
|
18
21
|
name: string;
|
|
19
22
|
templateTextReplacement?: string;
|
|
@@ -10,13 +10,17 @@ export interface AudioFile {
|
|
|
10
10
|
id: string;
|
|
11
11
|
originalName: string;
|
|
12
12
|
fileName: string;
|
|
13
|
-
filePath
|
|
14
|
-
fileSize
|
|
13
|
+
filePath?: string;
|
|
14
|
+
fileSize?: number;
|
|
15
15
|
mimeType: string;
|
|
16
16
|
uploadId?: string;
|
|
17
17
|
transcriptionUrl?: string;
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
taskId?: string;
|
|
19
|
+
uploadStatus?: string;
|
|
20
|
+
statusLink?: string;
|
|
21
|
+
cancelLink?: string;
|
|
22
|
+
downloadLink?: string;
|
|
23
|
+
progressPercent?: number;
|
|
20
24
|
status: AudioFileStatus;
|
|
21
25
|
createdAt: string;
|
|
22
26
|
updatedAt: string;
|
|
@@ -36,13 +40,8 @@ export interface CreateAudioFileDto {
|
|
|
36
40
|
}
|
|
37
41
|
export interface UpdateAudioFileDto {
|
|
38
42
|
transcriptionUrl?: string;
|
|
39
|
-
transcription?: string;
|
|
40
|
-
cultural_transcription?: string;
|
|
41
43
|
status?: AudioFileStatus;
|
|
42
44
|
}
|
|
43
|
-
export interface UploadAudioFileDto {
|
|
44
|
-
cultural_transcription?: string;
|
|
45
|
-
}
|
|
46
45
|
export interface Base64AudioFile {
|
|
47
46
|
id: string;
|
|
48
47
|
sessionId: string;
|
|
@@ -10,6 +10,9 @@ export interface DataStrategy {
|
|
|
10
10
|
organizationId: string;
|
|
11
11
|
organization?: Organization;
|
|
12
12
|
}
|
|
13
|
+
export type DataStrategyWithOrganization = DataStrategy & {
|
|
14
|
+
organization: Organization;
|
|
15
|
+
};
|
|
13
16
|
export interface CreateDataStrategyDto {
|
|
14
17
|
organizationId: string;
|
|
15
18
|
daysToKeepTranscriptions?: number | null;
|
|
@@ -4,6 +4,12 @@ export interface ExternalIntegration {
|
|
|
4
4
|
getUserEndpoint: string;
|
|
5
5
|
getPatientDataEndpoint: string;
|
|
6
6
|
saveSummaryEndpoint: string;
|
|
7
|
+
/**
|
|
8
|
+
* The integration's API key.
|
|
9
|
+
*
|
|
10
|
+
* Sent as plaintext on write (create/update), stored encrypted at rest by the API,
|
|
11
|
+
* and returned MASKED on read (e.g. `****abcd`) — never the full plaintext value.
|
|
12
|
+
*/
|
|
7
13
|
apiKey: string;
|
|
8
14
|
headerName: string;
|
|
9
15
|
createdAt: string;
|
|
@@ -2,7 +2,7 @@ export interface Log {
|
|
|
2
2
|
id: number;
|
|
3
3
|
level: string;
|
|
4
4
|
message: string;
|
|
5
|
-
meta:
|
|
5
|
+
meta: Record<string, unknown>;
|
|
6
6
|
timestamp: string;
|
|
7
7
|
}
|
|
8
8
|
export interface LogsResponse {
|
|
@@ -38,7 +38,7 @@ export interface CreateLogDto {
|
|
|
38
38
|
message: string;
|
|
39
39
|
context?: string;
|
|
40
40
|
action?: string;
|
|
41
|
-
data?:
|
|
41
|
+
data?: Record<string, unknown>;
|
|
42
42
|
additionalMeta?: Record<string, any>;
|
|
43
43
|
}
|
|
44
44
|
export interface LogCleanupResponse {
|
|
@@ -46,22 +46,3 @@ export interface LogCleanupResponse {
|
|
|
46
46
|
cutoffDate: string;
|
|
47
47
|
message: string;
|
|
48
48
|
}
|
|
49
|
-
export interface DebugSessionSummary {
|
|
50
|
-
id: string;
|
|
51
|
-
sessionName?: string;
|
|
52
|
-
dateTime: string;
|
|
53
|
-
createdAt: string;
|
|
54
|
-
user: {
|
|
55
|
-
id: string;
|
|
56
|
-
email: string;
|
|
57
|
-
firstName?: string;
|
|
58
|
-
lastName?: string;
|
|
59
|
-
organizationId?: string;
|
|
60
|
-
};
|
|
61
|
-
template?: {
|
|
62
|
-
id: string;
|
|
63
|
-
title: string;
|
|
64
|
-
};
|
|
65
|
-
hasMedicalTranscription: boolean;
|
|
66
|
-
hasPrimaryTranscriptionSummary: boolean;
|
|
67
|
-
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface SafePatient {
|
|
2
2
|
id: number;
|
|
3
3
|
first_name: string;
|
|
4
4
|
last_name: string;
|
|
5
|
-
nationalid: string;
|
|
6
5
|
}
|
|
7
|
-
export type PatientsFromIntegrationResponse =
|
|
6
|
+
export type PatientsFromIntegrationResponse = SafePatient[];
|
|
@@ -15,8 +15,8 @@ export interface Session {
|
|
|
15
15
|
summary?: string;
|
|
16
16
|
sessionName?: string;
|
|
17
17
|
patientName?: string;
|
|
18
|
-
integrationMeta?:
|
|
19
|
-
generationMeta?:
|
|
18
|
+
integrationMeta?: Record<string, unknown> | null;
|
|
19
|
+
generationMeta?: Record<string, unknown> | null;
|
|
20
20
|
summaryStatus: SummaryStatus;
|
|
21
21
|
audioStreamStatus: AudioStreamStatus;
|
|
22
22
|
createdAt: string;
|
|
@@ -62,8 +62,8 @@ export interface UpdateSessionDto {
|
|
|
62
62
|
summary?: string;
|
|
63
63
|
sessionName?: string;
|
|
64
64
|
patientName?: string;
|
|
65
|
-
integrationMeta?:
|
|
66
|
-
generationMeta?:
|
|
65
|
+
integrationMeta?: Record<string, unknown> | null;
|
|
66
|
+
generationMeta?: Record<string, unknown> | null;
|
|
67
67
|
summaryStatus?: SummaryStatus;
|
|
68
68
|
audioStreamStatus?: AudioStreamStatus;
|
|
69
69
|
primaryTranscriptionSummaryId?: string;
|
|
@@ -73,8 +73,7 @@ export interface SetAudioStreamStatusDto {
|
|
|
73
73
|
audioStreamStatus: AudioStreamStatus;
|
|
74
74
|
}
|
|
75
75
|
export interface ForwardToTiakiResponse {
|
|
76
|
-
|
|
77
|
-
message?: string;
|
|
76
|
+
message: string;
|
|
78
77
|
}
|
|
79
78
|
export interface SessionsResponse {
|
|
80
79
|
sessions: Session[];
|
|
@@ -93,6 +92,7 @@ export interface SearchSessionsDto {
|
|
|
93
92
|
templateId?: string;
|
|
94
93
|
hasSummary?: boolean;
|
|
95
94
|
includeTranscriptions?: boolean;
|
|
95
|
+
includeArchived?: boolean;
|
|
96
96
|
limit?: number;
|
|
97
97
|
offset?: number;
|
|
98
98
|
}
|
|
@@ -107,8 +107,8 @@ export interface SearchSessionResult {
|
|
|
107
107
|
audioStreamStatus: AudioStreamStatus;
|
|
108
108
|
medicalTranscription: string | null;
|
|
109
109
|
culturalTranscription: string | null;
|
|
110
|
-
integrationMeta?:
|
|
111
|
-
generationMeta?:
|
|
110
|
+
integrationMeta?: Record<string, unknown> | null;
|
|
111
|
+
generationMeta?: Record<string, unknown> | null;
|
|
112
112
|
templateId?: string;
|
|
113
113
|
userId: string;
|
|
114
114
|
primaryTranscriptionSummaryId?: string;
|
|
@@ -4,7 +4,7 @@ export interface TeamRole {
|
|
|
4
4
|
id: string;
|
|
5
5
|
name: string;
|
|
6
6
|
createdAt: string;
|
|
7
|
-
|
|
7
|
+
updatedAt: string;
|
|
8
8
|
userId: string;
|
|
9
9
|
teamId: string;
|
|
10
10
|
user?: User;
|
|
@@ -15,7 +15,7 @@ export interface Team {
|
|
|
15
15
|
name: string;
|
|
16
16
|
description?: string;
|
|
17
17
|
createdAt: string;
|
|
18
|
-
|
|
18
|
+
updatedAt: string;
|
|
19
19
|
organizationId: string;
|
|
20
20
|
organization?: Organization;
|
|
21
21
|
teamRoles?: TeamRole[];
|
|
@@ -30,8 +30,9 @@ export interface UpdateTeamDto {
|
|
|
30
30
|
description?: string;
|
|
31
31
|
organizationId?: string;
|
|
32
32
|
}
|
|
33
|
+
export type TeamRoleName = 'member' | 'editor' | 'contributor' | 'lead';
|
|
33
34
|
export interface AssignTeamRoleDto {
|
|
34
35
|
userId: string;
|
|
35
36
|
teamId: string;
|
|
36
|
-
name:
|
|
37
|
+
name: TeamRoleName;
|
|
37
38
|
}
|
|
@@ -16,7 +16,7 @@ export interface Template {
|
|
|
16
16
|
title: string;
|
|
17
17
|
content: string;
|
|
18
18
|
createdAt: string;
|
|
19
|
-
|
|
19
|
+
updatedAt: string;
|
|
20
20
|
isGlobal: boolean;
|
|
21
21
|
organizationId?: string;
|
|
22
22
|
categoryId: string;
|
|
@@ -36,9 +36,9 @@ export interface TranscriptionSummary {
|
|
|
36
36
|
id: string;
|
|
37
37
|
anonymisedTranscript?: string;
|
|
38
38
|
content: string;
|
|
39
|
-
metadata?:
|
|
39
|
+
metadata?: Record<string, unknown>;
|
|
40
40
|
createdAt: string;
|
|
41
|
-
|
|
41
|
+
updatedAt: string;
|
|
42
42
|
templateId: string;
|
|
43
43
|
userId: string;
|
|
44
44
|
template?: Template;
|
|
@@ -76,18 +76,26 @@ export interface GenerateTranscriptionSummaryDto {
|
|
|
76
76
|
userId?: string;
|
|
77
77
|
sessionId: string;
|
|
78
78
|
}
|
|
79
|
+
export interface GenerateSummaryQueuedResponse {
|
|
80
|
+
message: string;
|
|
81
|
+
jobId: string | undefined;
|
|
82
|
+
sessionId: string;
|
|
83
|
+
}
|
|
84
|
+
export interface TemplateUpdatedResponse {
|
|
85
|
+
message: string;
|
|
86
|
+
sessionId: string;
|
|
87
|
+
}
|
|
88
|
+
export type GenerateSummaryResponse = GenerateSummaryQueuedResponse | TemplateUpdatedResponse;
|
|
79
89
|
export interface CreateTranscriptionSummaryDto {
|
|
80
|
-
userId
|
|
90
|
+
userId: string;
|
|
81
91
|
templateId: string;
|
|
82
92
|
content: string;
|
|
83
|
-
sessionId
|
|
93
|
+
sessionId?: string;
|
|
84
94
|
anonymisedTranscript?: string;
|
|
85
|
-
metadata?: Record<string, any>;
|
|
86
95
|
}
|
|
87
96
|
export interface UpdateTranscriptionSummaryDto {
|
|
88
97
|
anonymisedTranscript?: string;
|
|
89
98
|
content?: string;
|
|
90
|
-
metadata?: Record<string, any>;
|
|
91
99
|
templateId?: string;
|
|
92
100
|
}
|
|
93
101
|
export interface CloneTranscriptionSummaryDto {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Organization, UserOrganizationRole } from './organization.types';
|
|
2
2
|
import { Role } from './common.types';
|
|
3
|
+
import { TeamRole } from './team.types';
|
|
3
4
|
export interface UserRole {
|
|
4
5
|
userId: string;
|
|
5
6
|
roleId: string;
|
|
@@ -11,12 +12,15 @@ export interface User {
|
|
|
11
12
|
email: string;
|
|
12
13
|
firstName: string;
|
|
13
14
|
lastName: string;
|
|
15
|
+
isActive: boolean;
|
|
16
|
+
customFields: Record<string, unknown> | null;
|
|
14
17
|
createdAt: string;
|
|
15
18
|
updatedAt: string;
|
|
16
19
|
organizationId: string;
|
|
17
20
|
organization: Organization;
|
|
18
21
|
roles: UserRole[];
|
|
19
22
|
organizationRoles: UserOrganizationRole[];
|
|
23
|
+
teamRoles: TeamRole[];
|
|
20
24
|
}
|
|
21
25
|
export interface CreateUserDto {
|
|
22
26
|
email: string;
|
|
@@ -24,6 +28,7 @@ export interface CreateUserDto {
|
|
|
24
28
|
firstName?: string;
|
|
25
29
|
lastName?: string;
|
|
26
30
|
organizationId?: string;
|
|
31
|
+
customFields?: Record<string, unknown>;
|
|
27
32
|
}
|
|
28
33
|
export interface UpdateUserDto {
|
|
29
34
|
email?: string;
|
|
@@ -31,6 +36,7 @@ export interface UpdateUserDto {
|
|
|
31
36
|
firstName?: string;
|
|
32
37
|
lastName?: string;
|
|
33
38
|
organizationId?: string;
|
|
39
|
+
customFields?: Record<string, unknown>;
|
|
34
40
|
}
|
|
35
41
|
export interface UpdateUserNamesDto {
|
|
36
42
|
firstName?: string;
|
|
@@ -33,13 +33,15 @@ export interface WebSocketEvents {
|
|
|
33
33
|
disconnected: (reason: string) => void;
|
|
34
34
|
'audio-chunk-received': (data: {
|
|
35
35
|
sessionId: string;
|
|
36
|
-
chunkCount
|
|
36
|
+
chunkCount?: number;
|
|
37
|
+
bufferedDuration?: number;
|
|
37
38
|
timestamp: string;
|
|
38
39
|
lastSequenceId?: number;
|
|
39
40
|
}) => void;
|
|
40
41
|
'transcription-queued': (data: {
|
|
41
42
|
sessionId: string;
|
|
42
|
-
|
|
43
|
+
duration?: number;
|
|
44
|
+
isFinalChunk: boolean;
|
|
43
45
|
timestamp: string;
|
|
44
46
|
}) => void;
|
|
45
47
|
'transcription-complete': (data: {
|
|
@@ -54,11 +56,7 @@ export interface WebSocketEvents {
|
|
|
54
56
|
sessionId: string;
|
|
55
57
|
timestamp: string;
|
|
56
58
|
}) => void;
|
|
57
|
-
'
|
|
58
|
-
sessionId: string;
|
|
59
|
-
timestamp: string;
|
|
60
|
-
}) => void;
|
|
61
|
-
'audio-stopped': (data: {
|
|
59
|
+
'summary-failed': (data: {
|
|
62
60
|
sessionId: string;
|
|
63
61
|
timestamp: string;
|
|
64
62
|
}) => void;
|
package/dist/src/sdk/urls.d.ts
CHANGED
|
@@ -18,9 +18,6 @@ declare const urls: {
|
|
|
18
18
|
transcriptionSummaries: string;
|
|
19
19
|
transcriptionSummaryCreate: string;
|
|
20
20
|
transcriptionSummary: string;
|
|
21
|
-
uploadAudioLarge: string;
|
|
22
|
-
uploadAudio: string;
|
|
23
|
-
transcribeBase64Audio: string;
|
|
24
21
|
roles: string;
|
|
25
22
|
userRoles: string;
|
|
26
23
|
sessions: string;
|
|
@@ -30,7 +27,6 @@ declare const urls: {
|
|
|
30
27
|
workflows: string;
|
|
31
28
|
integrationActions: string;
|
|
32
29
|
logs: string;
|
|
33
|
-
debug: string;
|
|
34
30
|
externalIntegrations: string;
|
|
35
31
|
reports: string;
|
|
36
32
|
patients: string;
|
package/dist/src/sdk/urls.js
CHANGED
|
@@ -24,9 +24,6 @@ const urls = {
|
|
|
24
24
|
transcriptionSummaries: '/transcription-summaries',
|
|
25
25
|
transcriptionSummaryCreate: '/transcription-summaries/create',
|
|
26
26
|
transcriptionSummary: '/transcription-summaries/generate',
|
|
27
|
-
uploadAudioLarge: '/transcription-summaries/upload-audio-large',
|
|
28
|
-
uploadAudio: '/transcription-summaries/upload-audio',
|
|
29
|
-
transcribeBase64Audio: '/transcription-summaries/transcribe-base64',
|
|
30
27
|
// Roles
|
|
31
28
|
roles: '/roles',
|
|
32
29
|
userRoles: '/user-roles',
|
|
@@ -44,8 +41,6 @@ const urls = {
|
|
|
44
41
|
integrationActions: '/integration-actions',
|
|
45
42
|
// Logs
|
|
46
43
|
logs: '/logs',
|
|
47
|
-
// Debug
|
|
48
|
-
debug: '/debug',
|
|
49
44
|
// External Integrations
|
|
50
45
|
externalIntegrations: '/external-integrations',
|
|
51
46
|
// Reports
|
|
@@ -51,7 +51,7 @@ export declare class WhioOrgAdminSDK extends BaseClient {
|
|
|
51
51
|
getSessionsByOrganization(...args: Parameters<OrgAdminSessionModule['getSessionsByOrganization']>): Promise<import("./types").SessionsResponse>;
|
|
52
52
|
searchSessions(...args: Parameters<OrgAdminSessionModule['searchSessions']>): Promise<import("./types").SearchSessionsResponse>;
|
|
53
53
|
updateSession(...args: Parameters<OrgAdminSessionModule['updateSession']>): Promise<import("./types").Session>;
|
|
54
|
-
deleteSession(...args: Parameters<OrgAdminSessionModule['deleteSession']>): Promise<
|
|
54
|
+
deleteSession(...args: Parameters<OrgAdminSessionModule['deleteSession']>): Promise<import("./types").Session>;
|
|
55
55
|
setPrimaryTranscriptionSummary(...args: Parameters<OrgAdminSessionModule['setPrimaryTranscriptionSummary']>): Promise<import("./types").Session>;
|
|
56
56
|
getSession(...args: Parameters<OrgAdminSessionModule['getSession']>): Promise<import("./types").Session>;
|
|
57
57
|
createUser(...args: Parameters<UserModule['createUser']>): Promise<User>;
|
|
@@ -66,16 +66,16 @@ export declare class WhioOrgAdminSDK extends BaseClient {
|
|
|
66
66
|
removeRoleFromUser(...args: Parameters<UserModule['removeRoleFromUser']>): Promise<void>;
|
|
67
67
|
getOrganization(...args: Parameters<OrganizationModule['getOrganization']>): Promise<import("./types").Organization>;
|
|
68
68
|
updateOrganization(...args: Parameters<OrganizationModule['updateOrganization']>): Promise<import("./types").Organization>;
|
|
69
|
-
addUserToOrganization(...args: Parameters<OrganizationModule['addUserToOrganization']>): Promise<
|
|
70
|
-
removeUserFromOrganization(...args: Parameters<OrganizationModule['removeUserFromOrganization']>): Promise<
|
|
69
|
+
addUserToOrganization(...args: Parameters<OrganizationModule['addUserToOrganization']>): Promise<User>;
|
|
70
|
+
removeUserFromOrganization(...args: Parameters<OrganizationModule['removeUserFromOrganization']>): Promise<User>;
|
|
71
71
|
createTeam(...args: Parameters<TeamModule['createTeam']>): Promise<import("./types").Team>;
|
|
72
72
|
getTeams(...args: Parameters<TeamModule['getTeams']>): Promise<import("./types").Team[]>;
|
|
73
73
|
getTeam(...args: Parameters<TeamModule['getTeam']>): Promise<import("./types").Team>;
|
|
74
74
|
getTeamsByOrganization(...args: Parameters<TeamModule['getTeamsByOrganization']>): Promise<import("./types").Team[]>;
|
|
75
75
|
updateTeam(...args: Parameters<TeamModule['updateTeam']>): Promise<import("./types").Team>;
|
|
76
76
|
deleteTeam(...args: Parameters<TeamModule['deleteTeam']>): Promise<void>;
|
|
77
|
-
addUserToTeam(...args: Parameters<TeamModule['addUserToTeam']>): Promise<
|
|
78
|
-
removeUserFromTeam(...args: Parameters<TeamModule['removeUserFromTeam']>): Promise<
|
|
77
|
+
addUserToTeam(...args: Parameters<TeamModule['addUserToTeam']>): Promise<import("./types").TeamRole>;
|
|
78
|
+
removeUserFromTeam(...args: Parameters<TeamModule['removeUserFromTeam']>): Promise<import("./types").TeamRole>;
|
|
79
79
|
createTemplate(...args: Parameters<TemplateModule['createTemplate']>): Promise<import("./types").Template>;
|
|
80
80
|
getTemplates(...args: Parameters<TemplateModule['getTemplates']>): Promise<import("./types").Template[]>;
|
|
81
81
|
getTemplate(...args: Parameters<TemplateModule['getTemplate']>): Promise<import("./types").Template>;
|
|
@@ -97,8 +97,8 @@ export declare class WhioOrgAdminSDK extends BaseClient {
|
|
|
97
97
|
getWorkflowsByOrganization(...args: Parameters<WorkflowModule['getWorkflowsByOrganization']>): Promise<import("./types").Workflow[]>;
|
|
98
98
|
updateWorkflow(...args: Parameters<WorkflowModule['updateWorkflow']>): Promise<import("./types").Workflow>;
|
|
99
99
|
deleteWorkflow(...args: Parameters<WorkflowModule['deleteWorkflow']>): Promise<void>;
|
|
100
|
-
getAgents(...args: Parameters<AgentModule['getAgents']>): Promise<import("./types").
|
|
101
|
-
getAgent(...args: Parameters<AgentModule['getAgent']>): Promise<import("./types").
|
|
100
|
+
getAgents(...args: Parameters<AgentModule['getAgents']>): Promise<import("./types").AgentWithOrganizations[]>;
|
|
101
|
+
getAgent(...args: Parameters<AgentModule['getAgent']>): Promise<import("./types").AgentWithOrganizations>;
|
|
102
102
|
getCompanyDailyReportCsv(...args: Parameters<ReportsModule['getCompanyDailyReportCsv']>): Promise<string>;
|
|
103
103
|
downloadCompanyDailyReport(...args: Parameters<ReportsModule['downloadCompanyDailyReport']>): Promise<Blob>;
|
|
104
104
|
}
|
|
@@ -8,6 +8,7 @@ import { SessionModule } from './modules/session/session.module';
|
|
|
8
8
|
import { AgentModule } from './modules/agent.module';
|
|
9
9
|
import { AudioModule } from './modules/audio.module';
|
|
10
10
|
import { WorkflowModule } from './modules/workflow.module';
|
|
11
|
+
import { IntegrationActionModule } from './modules/integration-action.module';
|
|
11
12
|
import { PatientModule } from './modules/patient.module';
|
|
12
13
|
import { RatingModule } from './modules/rating.module';
|
|
13
14
|
import { TiakiModule } from './modules/tiaki.module';
|
|
@@ -28,7 +29,6 @@ export declare class WhioSDK extends BaseClient {
|
|
|
28
29
|
private readonly workflowsModule;
|
|
29
30
|
private readonly integrationActionsModule;
|
|
30
31
|
private readonly logsModule;
|
|
31
|
-
private readonly debugModule;
|
|
32
32
|
private readonly externalIntegrationsModule;
|
|
33
33
|
private readonly websocketModule;
|
|
34
34
|
private readonly reportsModule;
|
|
@@ -56,7 +56,7 @@ export declare class WhioSDK extends BaseClient {
|
|
|
56
56
|
getSessions(...args: Parameters<SessionModule['getSessions']>): Promise<import("./types").Session[]>;
|
|
57
57
|
getSession(...args: Parameters<SessionModule['getSession']>): Promise<import("./types").Session>;
|
|
58
58
|
updateSession(...args: Parameters<SessionModule['updateSession']>): Promise<import("./types").Session>;
|
|
59
|
-
deleteSession(...args: Parameters<SessionModule['deleteSession']>): Promise<
|
|
59
|
+
deleteSession(...args: Parameters<SessionModule['deleteSession']>): Promise<import("./types").Session>;
|
|
60
60
|
searchSessions(...args: Parameters<SessionModule['searchSessions']>): Promise<import("./types").SearchSessionsResponse>;
|
|
61
61
|
setPrimaryTranscriptionSummary(...args: Parameters<SessionModule['setPrimaryTranscriptionSummary']>): Promise<import("./types").Session>;
|
|
62
62
|
rerunTranscription(...args: Parameters<SessionModule['rerunTranscription']>): Promise<{
|
|
@@ -75,15 +75,12 @@ export declare class WhioSDK extends BaseClient {
|
|
|
75
75
|
getTemplatesByOrganization(...args: Parameters<TemplateModule['getTemplatesByOrganization']>): Promise<import("./types").Template[]>;
|
|
76
76
|
getTemplateCategories(...args: Parameters<TemplateModule['getTemplateCategories']>): Promise<import("./types").TemplateCategory[]>;
|
|
77
77
|
getTemplateCategory(...args: Parameters<TemplateModule['getTemplateCategory']>): Promise<import("./types").TemplateCategory>;
|
|
78
|
-
generateTranscriptionSummary(...args: Parameters<TranscriptionSummaryModule['generateTranscriptionSummary']>): Promise<import("./types").
|
|
78
|
+
generateTranscriptionSummary(...args: Parameters<TranscriptionSummaryModule['generateTranscriptionSummary']>): Promise<import("./types").GenerateSummaryResponse>;
|
|
79
79
|
updateTranscriptionSummary(...args: Parameters<TranscriptionSummaryModule['updateTranscriptionSummary']>): Promise<import("./types").TranscriptionSummary>;
|
|
80
80
|
getTranscriptionSummaries(...args: Parameters<TranscriptionSummaryModule['getTranscriptionSummaries']>): Promise<import("./types").TranscriptionSummary[]>;
|
|
81
81
|
getTranscriptionSummary(...args: Parameters<TranscriptionSummaryModule['getTranscriptionSummary']>): Promise<import("./types").TranscriptionSummary>;
|
|
82
82
|
cloneTranscriptionSummary(...args: Parameters<TranscriptionSummaryModule['cloneTranscriptionSummary']>): Promise<import("./types").TranscriptionSummary>;
|
|
83
83
|
deleteTranscriptionSummary(...args: Parameters<TranscriptionSummaryModule['deleteTranscriptionSummary']>): Promise<void>;
|
|
84
|
-
uploadAudioFile(...args: Parameters<TemplateModule['uploadAudioFile']>): Promise<import("./types").TranscriptionAudioUploadResponse | null>;
|
|
85
|
-
uploadLargeAudioFile(...args: Parameters<TemplateModule['uploadLargeAudioFile']>): Promise<string>;
|
|
86
|
-
transcribeBase64Audio(...args: Parameters<TemplateModule['transcribeBase64Audio']>): Promise<string>;
|
|
87
84
|
uploadAudioFileToSession(...args: Parameters<AudioModule['uploadAudioFileToSession']>): Promise<import("./types").AudioFile>;
|
|
88
85
|
getMyAudioFiles(...args: Parameters<AudioModule['getMyAudioFiles']>): Promise<import("./types").AudioFile[]>;
|
|
89
86
|
getAudioFilesBySession(...args: Parameters<AudioModule['getAudioFilesBySession']>): Promise<import("./types").AudioFile[]>;
|
|
@@ -93,10 +90,16 @@ export declare class WhioSDK extends BaseClient {
|
|
|
93
90
|
getWorkflows(...args: Parameters<WorkflowModule['getWorkflows']>): Promise<import("./types").Workflow[]>;
|
|
94
91
|
getWorkflow(...args: Parameters<WorkflowModule['getWorkflow']>): Promise<import("./types").Workflow>;
|
|
95
92
|
getWorkflowsByOrganization(...args: Parameters<WorkflowModule['getWorkflowsByOrganization']>): Promise<import("./types").Workflow[]>;
|
|
96
|
-
getAgents(...args: Parameters<AgentModule['getAgents']>): Promise<import("./types").
|
|
97
|
-
getAgent(...args: Parameters<AgentModule['getAgent']>): Promise<import("./types").
|
|
93
|
+
getAgents(...args: Parameters<AgentModule['getAgents']>): Promise<import("./types").AgentWithOrganizations[]>;
|
|
94
|
+
getAgent(...args: Parameters<AgentModule['getAgent']>): Promise<import("./types").AgentWithOrganizations>;
|
|
98
95
|
createRating(...args: Parameters<RatingModule['createRating']>): Promise<import("./types").SummaryRating>;
|
|
99
96
|
getRatingsBySession(...args: Parameters<RatingModule['getRatingsBySession']>): Promise<import("./types").SummaryRatingsResponse>;
|
|
100
97
|
createTiakiCalendarEvent(...args: Parameters<TiakiModule['createCalendarEvent']>): Promise<import("./types").TiakiCalendarEventResponse>;
|
|
101
98
|
getPatientsFromIntegration(...args: Parameters<PatientModule['getPatientsFromIntegration']>): Promise<import("./types").PatientsFromIntegrationResponse>;
|
|
99
|
+
createIntegrationAction(...args: Parameters<IntegrationActionModule['createIntegrationAction']>): Promise<import("./types").IntegrationAction>;
|
|
100
|
+
getIntegrationActions(...args: Parameters<IntegrationActionModule['getIntegrationActions']>): Promise<import("./types").IntegrationAction[]>;
|
|
101
|
+
getIntegrationAction(...args: Parameters<IntegrationActionModule['getIntegrationAction']>): Promise<import("./types").IntegrationAction>;
|
|
102
|
+
getIntegrationActionsByOrganization(...args: Parameters<IntegrationActionModule['getIntegrationActionsByOrganization']>): Promise<import("./types").IntegrationAction[]>;
|
|
103
|
+
updateIntegrationAction(...args: Parameters<IntegrationActionModule['updateIntegrationAction']>): Promise<import("./types").IntegrationAction>;
|
|
104
|
+
deleteIntegrationAction(...args: Parameters<IntegrationActionModule['deleteIntegrationAction']>): Promise<void>;
|
|
102
105
|
}
|
package/dist/src/sdk/whio-sdk.js
CHANGED
|
@@ -20,7 +20,6 @@ import { AudioModule } from './modules/audio.module';
|
|
|
20
20
|
import { WorkflowModule } from './modules/workflow.module';
|
|
21
21
|
import { IntegrationActionModule } from './modules/integration-action.module';
|
|
22
22
|
import { LogModule } from './modules/log.module';
|
|
23
|
-
import { DebugModule } from './modules/debug.module';
|
|
24
23
|
import { ExternalIntegrationModule } from './modules/external-integration.module';
|
|
25
24
|
import { WebSocketModule } from './modules/websocket.module';
|
|
26
25
|
import { ReportsModule } from './modules/reports.module';
|
|
@@ -50,7 +49,6 @@ export class WhioSDK extends BaseClient {
|
|
|
50
49
|
this.workflowsModule = new WorkflowModule(config);
|
|
51
50
|
this.integrationActionsModule = new IntegrationActionModule(config);
|
|
52
51
|
this.logsModule = new LogModule(config);
|
|
53
|
-
this.debugModule = new DebugModule(config);
|
|
54
52
|
this.externalIntegrationsModule = new ExternalIntegrationModule(config);
|
|
55
53
|
this.websocketModule = config.skipWebsocket ? null : new WebSocketModule(config);
|
|
56
54
|
this.reportsModule = new ReportsModule(config);
|
|
@@ -63,7 +61,7 @@ export class WhioSDK extends BaseClient {
|
|
|
63
61
|
this.modules = [
|
|
64
62
|
this.authModule, this.usersModule, this.organizationsModule, this.teamsModule, this.templatesModule,
|
|
65
63
|
this.transcriptionSummariesModule, this.sessionsModule, this.agentsModule, this.audioModule,
|
|
66
|
-
this.workflowsModule, this.integrationActionsModule, this.logsModule, this.
|
|
64
|
+
this.workflowsModule, this.integrationActionsModule, this.logsModule, this.externalIntegrationsModule,
|
|
67
65
|
this.reportsModule, this.patientsModule, this.dataStrategiesModule, this.systemSnapshotsModule, this.ratingsModule,
|
|
68
66
|
this.tiakiModule,
|
|
69
67
|
...(this.websocketModule ? [this.websocketModule] : [])
|
|
@@ -281,21 +279,6 @@ export class WhioSDK extends BaseClient {
|
|
|
281
279
|
// ======================
|
|
282
280
|
// AUDIO METHODS
|
|
283
281
|
// ======================
|
|
284
|
-
uploadAudioFile(...args) {
|
|
285
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
286
|
-
return this.templatesModule.uploadAudioFile(...args);
|
|
287
|
-
});
|
|
288
|
-
}
|
|
289
|
-
uploadLargeAudioFile(...args) {
|
|
290
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
291
|
-
return this.templatesModule.uploadLargeAudioFile(...args);
|
|
292
|
-
});
|
|
293
|
-
}
|
|
294
|
-
transcribeBase64Audio(...args) {
|
|
295
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
296
|
-
return this.templatesModule.transcribeBase64Audio(...args);
|
|
297
|
-
});
|
|
298
|
-
}
|
|
299
282
|
uploadAudioFileToSession(...args) {
|
|
300
283
|
return __awaiter(this, void 0, void 0, function* () {
|
|
301
284
|
return this.audioModule.uploadAudioFileToSession(...args);
|
|
@@ -386,4 +369,37 @@ export class WhioSDK extends BaseClient {
|
|
|
386
369
|
return this.patientsModule.getPatientsFromIntegration(...args);
|
|
387
370
|
});
|
|
388
371
|
}
|
|
372
|
+
// ======================
|
|
373
|
+
// INTEGRATION ACTION METHODS
|
|
374
|
+
// ======================
|
|
375
|
+
createIntegrationAction(...args) {
|
|
376
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
377
|
+
return this.integrationActionsModule.createIntegrationAction(...args);
|
|
378
|
+
});
|
|
379
|
+
}
|
|
380
|
+
getIntegrationActions(...args) {
|
|
381
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
382
|
+
return this.integrationActionsModule.getIntegrationActions(...args);
|
|
383
|
+
});
|
|
384
|
+
}
|
|
385
|
+
getIntegrationAction(...args) {
|
|
386
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
387
|
+
return this.integrationActionsModule.getIntegrationAction(...args);
|
|
388
|
+
});
|
|
389
|
+
}
|
|
390
|
+
getIntegrationActionsByOrganization(...args) {
|
|
391
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
392
|
+
return this.integrationActionsModule.getIntegrationActionsByOrganization(...args);
|
|
393
|
+
});
|
|
394
|
+
}
|
|
395
|
+
updateIntegrationAction(...args) {
|
|
396
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
397
|
+
return this.integrationActionsModule.updateIntegrationAction(...args);
|
|
398
|
+
});
|
|
399
|
+
}
|
|
400
|
+
deleteIntegrationAction(...args) {
|
|
401
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
402
|
+
return this.integrationActionsModule.deleteIntegrationAction(...args);
|
|
403
|
+
});
|
|
404
|
+
}
|
|
389
405
|
}
|