whio-api-sdk 1.1.28 → 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 +4 -10
- 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 +8 -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
|
@@ -13,51 +13,112 @@ import urls from '../../urls';
|
|
|
13
13
|
* Session module for regular users - provides access to own sessions only
|
|
14
14
|
*/
|
|
15
15
|
export class SessionModule extends BaseClient {
|
|
16
|
+
/**
|
|
17
|
+
* Create a new session.
|
|
18
|
+
*
|
|
19
|
+
* @param sessionData - The session payload to create.
|
|
20
|
+
* @returns The created session.
|
|
21
|
+
*/
|
|
16
22
|
createSession(sessionData) {
|
|
17
23
|
return __awaiter(this, void 0, void 0, function* () {
|
|
18
24
|
return this.request(urls.sessions, 'POST', sessionData);
|
|
19
25
|
});
|
|
20
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* Retrieve the authenticated user's own sessions.
|
|
29
|
+
*
|
|
30
|
+
* @returns The current user's sessions.
|
|
31
|
+
*/
|
|
21
32
|
getSessions() {
|
|
22
33
|
return __awaiter(this, void 0, void 0, function* () {
|
|
23
34
|
return this.request(`${urls.sessions}/my-sessions`, 'GET');
|
|
24
35
|
});
|
|
25
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* Retrieve a single session by its id.
|
|
39
|
+
*
|
|
40
|
+
* @param id - UUID of the session to fetch.
|
|
41
|
+
* @returns The requested session.
|
|
42
|
+
*/
|
|
26
43
|
getSession(id) {
|
|
27
44
|
return __awaiter(this, void 0, void 0, function* () {
|
|
28
45
|
return this.request(`${urls.sessions}/${id}`, 'GET');
|
|
29
46
|
});
|
|
30
47
|
}
|
|
48
|
+
/**
|
|
49
|
+
* Update a session.
|
|
50
|
+
*
|
|
51
|
+
* @param id - UUID of the session to update.
|
|
52
|
+
* @param sessionData - Fields to update on the session.
|
|
53
|
+
* @returns The updated session.
|
|
54
|
+
*/
|
|
31
55
|
updateSession(id, sessionData) {
|
|
32
56
|
return __awaiter(this, void 0, void 0, function* () {
|
|
33
57
|
return this.request(`${urls.sessions}/${id}`, 'PATCH', sessionData);
|
|
34
58
|
});
|
|
35
59
|
}
|
|
60
|
+
/**
|
|
61
|
+
* Delete a session.
|
|
62
|
+
*
|
|
63
|
+
* @param id - UUID of the session to delete.
|
|
64
|
+
* @returns The deleted session.
|
|
65
|
+
*/
|
|
36
66
|
deleteSession(id) {
|
|
37
67
|
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
-
|
|
68
|
+
return this.request(`${urls.sessions}/${id}`, 'DELETE');
|
|
39
69
|
});
|
|
40
70
|
}
|
|
71
|
+
/**
|
|
72
|
+
* Set the primary transcription summary for a session.
|
|
73
|
+
*
|
|
74
|
+
* @param sessionId - UUID of the session.
|
|
75
|
+
* @param summaryId - UUID of the transcription summary to mark as primary.
|
|
76
|
+
* @returns The updated session.
|
|
77
|
+
*/
|
|
41
78
|
setPrimaryTranscriptionSummary(sessionId, summaryId) {
|
|
42
79
|
return __awaiter(this, void 0, void 0, function* () {
|
|
43
80
|
return this.request(`${urls.sessions}/${sessionId}/primary-summary/${summaryId}`, 'PATCH');
|
|
44
81
|
});
|
|
45
82
|
}
|
|
83
|
+
/**
|
|
84
|
+
* Re-run transcription for a session.
|
|
85
|
+
*
|
|
86
|
+
* @param sessionId - UUID of the session to re-transcribe.
|
|
87
|
+
* @returns A confirmation message with the session id.
|
|
88
|
+
*/
|
|
46
89
|
rerunTranscription(sessionId) {
|
|
47
90
|
return __awaiter(this, void 0, void 0, function* () {
|
|
48
91
|
return this.request(`${urls.sessions}/${sessionId}/rerun-transcription`, 'POST');
|
|
49
92
|
});
|
|
50
93
|
}
|
|
94
|
+
/**
|
|
95
|
+
* Update the audio stream status of a session.
|
|
96
|
+
*
|
|
97
|
+
* @param data - The session id and the new audio stream status.
|
|
98
|
+
* @returns The updated session.
|
|
99
|
+
*/
|
|
51
100
|
setAudioStreamStatus(data) {
|
|
52
101
|
return __awaiter(this, void 0, void 0, function* () {
|
|
53
102
|
return this.request(`${urls.sessions}/set-audio-stream-status`, 'PATCH', data);
|
|
54
103
|
});
|
|
55
104
|
}
|
|
105
|
+
/**
|
|
106
|
+
* Forward a session to Tiaki.
|
|
107
|
+
*
|
|
108
|
+
* @param sessionId - UUID of the session to forward.
|
|
109
|
+
* @returns A response containing a status message.
|
|
110
|
+
*/
|
|
56
111
|
forwardToTiaki(sessionId) {
|
|
57
112
|
return __awaiter(this, void 0, void 0, function* () {
|
|
58
113
|
return this.request(`${urls.sessions}/forward-to-tiaki/${sessionId}`, 'POST');
|
|
59
114
|
});
|
|
60
115
|
}
|
|
116
|
+
/**
|
|
117
|
+
* Search the authenticated user's sessions using the provided filters.
|
|
118
|
+
*
|
|
119
|
+
* @param filters - Optional search filters (date range, user, template, pagination, etc.).
|
|
120
|
+
* @returns A paginated search response of matching sessions.
|
|
121
|
+
*/
|
|
61
122
|
searchSessions(filters = {}) {
|
|
62
123
|
return __awaiter(this, void 0, void 0, function* () {
|
|
63
124
|
const params = this.buildSearchParams(filters);
|
|
@@ -86,6 +147,8 @@ export class SessionModule extends BaseClient {
|
|
|
86
147
|
params.append('hasSummary', filters.hasSummary.toString());
|
|
87
148
|
if (filters.includeTranscriptions !== undefined)
|
|
88
149
|
params.append('includeTranscriptions', filters.includeTranscriptions.toString());
|
|
150
|
+
if (filters.includeArchived !== undefined)
|
|
151
|
+
params.append('includeArchived', filters.includeArchived.toString());
|
|
89
152
|
if (filters.limit !== undefined)
|
|
90
153
|
params.append('limit', filters.limit.toString());
|
|
91
154
|
if (filters.offset !== undefined)
|
|
@@ -4,12 +4,57 @@ import { Session, SessionsResponse, UpdateSessionDto, SearchSessionsDto, SearchS
|
|
|
4
4
|
* Session module for superusers - provides access to all sessions across the system
|
|
5
5
|
*/
|
|
6
6
|
export declare class SuperuserSessionModule extends BaseClient {
|
|
7
|
+
/**
|
|
8
|
+
* Retrieve all sessions belonging to a specific user.
|
|
9
|
+
*
|
|
10
|
+
* @param userId - UUID of the user whose sessions to fetch.
|
|
11
|
+
* @returns The user's sessions.
|
|
12
|
+
*/
|
|
7
13
|
getSessionsByUser(userId: string): Promise<Session[]>;
|
|
14
|
+
/**
|
|
15
|
+
* Retrieve a paginated list of sessions for the organization.
|
|
16
|
+
*
|
|
17
|
+
* @param limit - Maximum number of sessions to return (default 100).
|
|
18
|
+
* @param offset - Number of sessions to skip for pagination (default 0).
|
|
19
|
+
* @returns A paginated sessions response.
|
|
20
|
+
*/
|
|
8
21
|
getSessionsByOrganization(limit?: number, offset?: number): Promise<SessionsResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Search sessions using the provided filters.
|
|
24
|
+
*
|
|
25
|
+
* @param filters - Optional search filters (date range, user, template, pagination, etc.).
|
|
26
|
+
* @returns A paginated search response of matching sessions.
|
|
27
|
+
*/
|
|
9
28
|
searchSessions(filters?: SearchSessionsDto): Promise<SearchSessionsResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* Update a session.
|
|
31
|
+
*
|
|
32
|
+
* @param id - UUID of the session to update.
|
|
33
|
+
* @param sessionData - Fields to update on the session.
|
|
34
|
+
* @returns The updated session.
|
|
35
|
+
*/
|
|
10
36
|
updateSession(id: string, sessionData: UpdateSessionDto): Promise<Session>;
|
|
11
|
-
|
|
37
|
+
/**
|
|
38
|
+
* Delete a session.
|
|
39
|
+
*
|
|
40
|
+
* @param id - UUID of the session to delete.
|
|
41
|
+
* @returns The deleted session.
|
|
42
|
+
*/
|
|
43
|
+
deleteSession(id: string): Promise<Session>;
|
|
44
|
+
/**
|
|
45
|
+
* Set the primary transcription summary for a session.
|
|
46
|
+
*
|
|
47
|
+
* @param sessionId - UUID of the session.
|
|
48
|
+
* @param summaryId - UUID of the transcription summary to mark as primary.
|
|
49
|
+
* @returns The updated session.
|
|
50
|
+
*/
|
|
12
51
|
setPrimaryTranscriptionSummary(sessionId: string, summaryId: string): Promise<Session>;
|
|
52
|
+
/**
|
|
53
|
+
* Retrieve a single session by its id.
|
|
54
|
+
*
|
|
55
|
+
* @param id - UUID of the session to fetch.
|
|
56
|
+
* @returns The requested session.
|
|
57
|
+
*/
|
|
13
58
|
getSession(id: string): Promise<Session>;
|
|
14
59
|
private buildSearchParams;
|
|
15
60
|
}
|
|
@@ -13,11 +13,24 @@ import urls from '../../urls';
|
|
|
13
13
|
* Session module for superusers - provides access to all sessions across the system
|
|
14
14
|
*/
|
|
15
15
|
export class SuperuserSessionModule extends BaseClient {
|
|
16
|
+
/**
|
|
17
|
+
* Retrieve all sessions belonging to a specific user.
|
|
18
|
+
*
|
|
19
|
+
* @param userId - UUID of the user whose sessions to fetch.
|
|
20
|
+
* @returns The user's sessions.
|
|
21
|
+
*/
|
|
16
22
|
getSessionsByUser(userId) {
|
|
17
23
|
return __awaiter(this, void 0, void 0, function* () {
|
|
18
|
-
return this.request(`${urls.sessions}/
|
|
24
|
+
return this.request(`${urls.sessions}/user/${userId}`, 'GET');
|
|
19
25
|
});
|
|
20
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* Retrieve a paginated list of sessions for the organization.
|
|
29
|
+
*
|
|
30
|
+
* @param limit - Maximum number of sessions to return (default 100).
|
|
31
|
+
* @param offset - Number of sessions to skip for pagination (default 0).
|
|
32
|
+
* @returns A paginated sessions response.
|
|
33
|
+
*/
|
|
21
34
|
getSessionsByOrganization(limit = 100, offset = 0) {
|
|
22
35
|
return __awaiter(this, void 0, void 0, function* () {
|
|
23
36
|
const params = new URLSearchParams();
|
|
@@ -26,29 +39,61 @@ export class SuperuserSessionModule extends BaseClient {
|
|
|
26
39
|
return this.request(`${urls.sessions}/organization?${params.toString()}`, 'GET');
|
|
27
40
|
});
|
|
28
41
|
}
|
|
42
|
+
/**
|
|
43
|
+
* Search sessions using the provided filters.
|
|
44
|
+
*
|
|
45
|
+
* @param filters - Optional search filters (date range, user, template, pagination, etc.).
|
|
46
|
+
* @returns A paginated search response of matching sessions.
|
|
47
|
+
*/
|
|
29
48
|
searchSessions(filters = {}) {
|
|
30
49
|
return __awaiter(this, void 0, void 0, function* () {
|
|
31
50
|
const params = this.buildSearchParams(filters);
|
|
32
51
|
const queryString = params.toString();
|
|
33
|
-
const url = queryString ? `${urls.sessions}/
|
|
52
|
+
const url = queryString ? `${urls.sessions}/search?${queryString}` : `${urls.sessions}/search`;
|
|
34
53
|
return this.request(url, 'GET');
|
|
35
54
|
});
|
|
36
55
|
}
|
|
56
|
+
/**
|
|
57
|
+
* Update a session.
|
|
58
|
+
*
|
|
59
|
+
* @param id - UUID of the session to update.
|
|
60
|
+
* @param sessionData - Fields to update on the session.
|
|
61
|
+
* @returns The updated session.
|
|
62
|
+
*/
|
|
37
63
|
updateSession(id, sessionData) {
|
|
38
64
|
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
-
return this.request(`${urls.sessions}
|
|
65
|
+
return this.request(`${urls.sessions}/${id}`, 'PATCH', sessionData);
|
|
40
66
|
});
|
|
41
67
|
}
|
|
68
|
+
/**
|
|
69
|
+
* Delete a session.
|
|
70
|
+
*
|
|
71
|
+
* @param id - UUID of the session to delete.
|
|
72
|
+
* @returns The deleted session.
|
|
73
|
+
*/
|
|
42
74
|
deleteSession(id) {
|
|
43
75
|
return __awaiter(this, void 0, void 0, function* () {
|
|
44
|
-
|
|
76
|
+
return this.request(`${urls.sessions}/${id}`, 'DELETE');
|
|
45
77
|
});
|
|
46
78
|
}
|
|
79
|
+
/**
|
|
80
|
+
* Set the primary transcription summary for a session.
|
|
81
|
+
*
|
|
82
|
+
* @param sessionId - UUID of the session.
|
|
83
|
+
* @param summaryId - UUID of the transcription summary to mark as primary.
|
|
84
|
+
* @returns The updated session.
|
|
85
|
+
*/
|
|
47
86
|
setPrimaryTranscriptionSummary(sessionId, summaryId) {
|
|
48
87
|
return __awaiter(this, void 0, void 0, function* () {
|
|
49
|
-
return this.request(`${urls.sessions}
|
|
88
|
+
return this.request(`${urls.sessions}/${sessionId}/primary-summary/${summaryId}`, 'PATCH');
|
|
50
89
|
});
|
|
51
90
|
}
|
|
91
|
+
/**
|
|
92
|
+
* Retrieve a single session by its id.
|
|
93
|
+
*
|
|
94
|
+
* @param id - UUID of the session to fetch.
|
|
95
|
+
* @returns The requested session.
|
|
96
|
+
*/
|
|
52
97
|
getSession(id) {
|
|
53
98
|
return __awaiter(this, void 0, void 0, function* () {
|
|
54
99
|
return this.request(`${urls.sessions}/${id}`, 'GET');
|
|
@@ -74,6 +119,8 @@ export class SuperuserSessionModule extends BaseClient {
|
|
|
74
119
|
params.append('hasSummary', filters.hasSummary.toString());
|
|
75
120
|
if (filters.includeTranscriptions !== undefined)
|
|
76
121
|
params.append('includeTranscriptions', filters.includeTranscriptions.toString());
|
|
122
|
+
if (filters.includeArchived !== undefined)
|
|
123
|
+
params.append('includeArchived', filters.includeArchived.toString());
|
|
77
124
|
if (filters.limit !== undefined)
|
|
78
125
|
params.append('limit', filters.limit.toString());
|
|
79
126
|
if (filters.offset !== undefined)
|
|
@@ -1,30 +1,169 @@
|
|
|
1
1
|
import { BaseClient } from './base-client';
|
|
2
2
|
import { Session, SessionsResponse, CreateSessionDto, UpdateSessionDto, SetAudioStreamStatusDto, ForwardToTiakiResponse, SearchSessionsDto, SearchSessionsResponse } from '../types';
|
|
3
3
|
export declare class SessionModule extends BaseClient {
|
|
4
|
+
/**
|
|
5
|
+
* Create a new session.
|
|
6
|
+
*
|
|
7
|
+
* @param sessionData - The session payload to create.
|
|
8
|
+
* @returns The created session.
|
|
9
|
+
*/
|
|
4
10
|
createSession(sessionData: CreateSessionDto): Promise<Session>;
|
|
11
|
+
/**
|
|
12
|
+
* Retrieve the authenticated user's own sessions.
|
|
13
|
+
*
|
|
14
|
+
* @returns The current user's sessions.
|
|
15
|
+
*/
|
|
5
16
|
getSessions(): Promise<Session[]>;
|
|
17
|
+
/**
|
|
18
|
+
* Retrieve a single session by its id.
|
|
19
|
+
*
|
|
20
|
+
* @param id - UUID of the session to fetch.
|
|
21
|
+
* @returns The requested session.
|
|
22
|
+
*/
|
|
6
23
|
getSession(id: string): Promise<Session>;
|
|
24
|
+
/**
|
|
25
|
+
* Update a session.
|
|
26
|
+
*
|
|
27
|
+
* @param id - UUID of the session to update.
|
|
28
|
+
* @param sessionData - Fields to update on the session.
|
|
29
|
+
* @returns The updated session.
|
|
30
|
+
*/
|
|
7
31
|
updateSession(id: string, sessionData: UpdateSessionDto): Promise<Session>;
|
|
8
|
-
|
|
32
|
+
/**
|
|
33
|
+
* Delete a session.
|
|
34
|
+
*
|
|
35
|
+
* @param id - UUID of the session to delete.
|
|
36
|
+
* @returns The deleted session.
|
|
37
|
+
*/
|
|
38
|
+
deleteSession(id: string): Promise<Session>;
|
|
39
|
+
/**
|
|
40
|
+
* Set the primary transcription summary for a session.
|
|
41
|
+
*
|
|
42
|
+
* @param sessionId - UUID of the session.
|
|
43
|
+
* @param summaryId - UUID of the transcription summary to mark as primary.
|
|
44
|
+
* @returns The updated session.
|
|
45
|
+
*/
|
|
9
46
|
setPrimaryTranscriptionSummary(sessionId: string, summaryId: string): Promise<Session>;
|
|
47
|
+
/**
|
|
48
|
+
* Re-run transcription for a session.
|
|
49
|
+
*
|
|
50
|
+
* @param sessionId - UUID of the session to re-transcribe.
|
|
51
|
+
* @returns A confirmation message with the session id.
|
|
52
|
+
*/
|
|
10
53
|
rerunTranscription(sessionId: string): Promise<{
|
|
11
54
|
message: string;
|
|
12
55
|
sessionId: string;
|
|
13
56
|
}>;
|
|
57
|
+
/**
|
|
58
|
+
* Update the audio stream status of a session.
|
|
59
|
+
*
|
|
60
|
+
* @param data - The session id and the new audio stream status.
|
|
61
|
+
* @returns The updated session.
|
|
62
|
+
*/
|
|
14
63
|
setAudioStreamStatus(data: SetAudioStreamStatusDto): Promise<Session>;
|
|
64
|
+
/**
|
|
65
|
+
* Forward a session to Tiaki.
|
|
66
|
+
*
|
|
67
|
+
* @param sessionId - UUID of the session to forward.
|
|
68
|
+
* @returns A response containing a status message.
|
|
69
|
+
*/
|
|
15
70
|
forwardToTiaki(sessionId: string): Promise<ForwardToTiakiResponse>;
|
|
71
|
+
/**
|
|
72
|
+
* Search the authenticated user's sessions using the provided filters.
|
|
73
|
+
*
|
|
74
|
+
* @param filters - Optional search filters (date range, user, template, pagination, etc.).
|
|
75
|
+
* @returns A paginated search response of matching sessions.
|
|
76
|
+
*/
|
|
16
77
|
searchSessions(filters?: SearchSessionsDto): Promise<SearchSessionsResponse>;
|
|
78
|
+
/**
|
|
79
|
+
* Retrieve all sessions belonging to a specific user (superuser scope).
|
|
80
|
+
*
|
|
81
|
+
* @param userId - UUID of the user whose sessions to fetch.
|
|
82
|
+
* @returns The user's sessions.
|
|
83
|
+
*/
|
|
17
84
|
superuserGetSessionsByUser(userId: string): Promise<Session[]>;
|
|
85
|
+
/**
|
|
86
|
+
* Retrieve a paginated list of sessions for the organization (superuser scope).
|
|
87
|
+
*
|
|
88
|
+
* @param limit - Maximum number of sessions to return (default 100).
|
|
89
|
+
* @param offset - Number of sessions to skip for pagination (default 0).
|
|
90
|
+
* @returns A paginated sessions response.
|
|
91
|
+
*/
|
|
18
92
|
superuserGetSessionsByOrganization(limit?: number, offset?: number): Promise<SessionsResponse>;
|
|
93
|
+
/**
|
|
94
|
+
* Search sessions using the provided filters (superuser scope).
|
|
95
|
+
*
|
|
96
|
+
* @param filters - Optional search filters (date range, user, template, pagination, etc.).
|
|
97
|
+
* @returns A paginated search response of matching sessions.
|
|
98
|
+
*/
|
|
19
99
|
superuserSearchSessions(filters?: SearchSessionsDto): Promise<SearchSessionsResponse>;
|
|
100
|
+
/**
|
|
101
|
+
* Update a session (superuser scope).
|
|
102
|
+
*
|
|
103
|
+
* @param id - UUID of the session to update.
|
|
104
|
+
* @param sessionData - Fields to update on the session.
|
|
105
|
+
* @returns The updated session.
|
|
106
|
+
*/
|
|
20
107
|
superuserUpdateSession(id: string, sessionData: UpdateSessionDto): Promise<Session>;
|
|
21
|
-
|
|
108
|
+
/**
|
|
109
|
+
* Delete a session (superuser scope).
|
|
110
|
+
*
|
|
111
|
+
* @param id - UUID of the session to delete.
|
|
112
|
+
* @returns The deleted session.
|
|
113
|
+
*/
|
|
114
|
+
superuserDeleteSession(id: string): Promise<Session>;
|
|
115
|
+
/**
|
|
116
|
+
* Set the primary transcription summary for a session (superuser scope).
|
|
117
|
+
*
|
|
118
|
+
* @param sessionId - UUID of the session.
|
|
119
|
+
* @param summaryId - UUID of the transcription summary to mark as primary.
|
|
120
|
+
* @returns The updated session.
|
|
121
|
+
*/
|
|
22
122
|
superuserSetPrimaryTranscriptionSummary(sessionId: string, summaryId: string): Promise<Session>;
|
|
123
|
+
/**
|
|
124
|
+
* Retrieve all sessions belonging to a specific user (org admin scope).
|
|
125
|
+
*
|
|
126
|
+
* @param userId - UUID of the user whose sessions to fetch.
|
|
127
|
+
* @returns The user's sessions.
|
|
128
|
+
*/
|
|
23
129
|
orgAdminGetSessionsByUser(userId: string): Promise<Session[]>;
|
|
130
|
+
/**
|
|
131
|
+
* Retrieve a paginated list of sessions for the organization (org admin scope).
|
|
132
|
+
*
|
|
133
|
+
* @param limit - Maximum number of sessions to return (default 100).
|
|
134
|
+
* @param offset - Number of sessions to skip for pagination (default 0).
|
|
135
|
+
* @returns A paginated sessions response.
|
|
136
|
+
*/
|
|
24
137
|
orgAdminGetSessionsByOrganization(limit?: number, offset?: number): Promise<SessionsResponse>;
|
|
138
|
+
/**
|
|
139
|
+
* Search sessions using the provided filters (org admin scope).
|
|
140
|
+
*
|
|
141
|
+
* @param filters - Optional search filters (date range, user, template, pagination, etc.).
|
|
142
|
+
* @returns A paginated search response of matching sessions.
|
|
143
|
+
*/
|
|
25
144
|
orgAdminSearchSessions(filters?: SearchSessionsDto): Promise<SearchSessionsResponse>;
|
|
145
|
+
/**
|
|
146
|
+
* Update a session (org admin scope).
|
|
147
|
+
*
|
|
148
|
+
* @param id - UUID of the session to update.
|
|
149
|
+
* @param sessionData - Fields to update on the session.
|
|
150
|
+
* @returns The updated session.
|
|
151
|
+
*/
|
|
26
152
|
orgAdminUpdateSession(id: string, sessionData: UpdateSessionDto): Promise<Session>;
|
|
27
|
-
|
|
153
|
+
/**
|
|
154
|
+
* Delete a session (org admin scope).
|
|
155
|
+
*
|
|
156
|
+
* @param id - UUID of the session to delete.
|
|
157
|
+
* @returns The deleted session.
|
|
158
|
+
*/
|
|
159
|
+
orgAdminDeleteSession(id: string): Promise<Session>;
|
|
160
|
+
/**
|
|
161
|
+
* Set the primary transcription summary for a session (org admin scope).
|
|
162
|
+
*
|
|
163
|
+
* @param sessionId - UUID of the session.
|
|
164
|
+
* @param summaryId - UUID of the transcription summary to mark as primary.
|
|
165
|
+
* @returns The updated session.
|
|
166
|
+
*/
|
|
28
167
|
orgAdminSetPrimaryTranscriptionSummary(sessionId: string, summaryId: string): Promise<Session>;
|
|
29
168
|
private buildSearchParams;
|
|
30
169
|
}
|