whio-api-sdk 1.0.192-bet-staging → 1.0.194-beta-staging
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 +17 -0
- package/dist/src/sdk/modules/agent.module.js +93 -0
- package/dist/src/sdk/modules/audio.module.d.ts +31 -0
- package/dist/src/sdk/modules/audio.module.js +147 -0
- package/dist/src/sdk/modules/auth.module.d.ts +9 -0
- package/dist/src/sdk/modules/auth.module.js +59 -0
- package/dist/src/sdk/modules/base-client.d.ts +25 -0
- package/dist/src/sdk/modules/base-client.js +183 -0
- package/dist/src/sdk/modules/debug.module.d.ts +20 -0
- package/dist/src/sdk/modules/debug.module.js +54 -0
- package/dist/src/sdk/modules/external-integration.module.d.ts +9 -0
- package/dist/src/sdk/modules/external-integration.module.js +38 -0
- package/dist/src/sdk/modules/log.module.d.ts +63 -0
- package/dist/src/sdk/modules/log.module.js +222 -0
- package/dist/src/sdk/modules/organization.module.d.ts +11 -0
- package/dist/src/sdk/modules/organization.module.js +50 -0
- package/dist/src/sdk/modules/session.module.d.ts +16 -0
- package/dist/src/sdk/modules/session.module.js +58 -0
- package/dist/src/sdk/modules/team.module.d.ts +13 -0
- package/dist/src/sdk/modules/team.module.js +72 -0
- package/dist/src/sdk/modules/template.module.d.ts +33 -0
- package/dist/src/sdk/modules/template.module.js +240 -0
- package/dist/src/sdk/modules/user.module.d.ts +17 -0
- package/dist/src/sdk/modules/user.module.js +104 -0
- package/dist/src/sdk/modules/workflow.module.d.ts +10 -0
- package/dist/src/sdk/modules/workflow.module.js +53 -0
- package/dist/src/sdk/sdk.d.ts +167 -206
- package/dist/src/sdk/sdk.js +375 -853
- package/dist/src/sdk/sdk.old.d.ts +222 -0
- package/dist/src/sdk/sdk.old.js +1238 -0
- package/dist/src/sdk/types/agent.types.d.ts +51 -0
- package/dist/src/sdk/types/agent.types.js +1 -0
- package/dist/src/sdk/types/audio.types.d.ts +72 -0
- package/dist/src/sdk/types/audio.types.js +8 -0
- package/dist/src/sdk/types/auth.types.d.ts +21 -0
- package/dist/src/sdk/types/auth.types.js +1 -0
- package/dist/src/sdk/types/common.types.d.ts +20 -0
- package/dist/src/sdk/types/common.types.js +9 -0
- package/dist/src/sdk/types/external-integration.types.d.ts +31 -0
- package/dist/src/sdk/types/external-integration.types.js +1 -0
- package/dist/src/sdk/types/index.d.ts +12 -0
- package/dist/src/sdk/types/index.js +13 -0
- package/dist/src/sdk/types/log.types.d.ts +61 -0
- package/dist/src/sdk/types/log.types.js +1 -0
- package/dist/src/sdk/types/organization.types.d.ts +42 -0
- package/dist/src/sdk/types/organization.types.js +6 -0
- package/dist/src/sdk/types/session.types.d.ts +54 -0
- package/dist/src/sdk/types/session.types.js +1 -0
- package/dist/src/sdk/types/team.types.d.ts +39 -0
- package/dist/src/sdk/types/team.types.js +1 -0
- package/dist/src/sdk/types/template.types.d.ts +118 -0
- package/dist/src/sdk/types/template.types.js +1 -0
- package/dist/src/sdk/types/user.types.d.ts +41 -0
- package/dist/src/sdk/types/user.types.js +1 -0
- package/dist/src/sdk/types/workflow.types.d.ts +19 -0
- package/dist/src/sdk/types/workflow.types.js +1 -0
- package/dist/src/sdk/types.d.ts +1 -517
- package/dist/src/sdk/types.js +2 -23
- package/dist/src/sdk/types.old.d.ts +517 -0
- package/dist/src/sdk/types.old.js +23 -0
- package/dist/src/sdk/urls.d.ts +1 -0
- package/dist/src/sdk/urls.js +2 -0
- package/package.json +1 -1
- package/src/sdk/modules/agent.module.ts +74 -0
- package/src/sdk/modules/audio.module.ts +131 -0
- package/src/sdk/modules/auth.module.ts +53 -0
- package/src/sdk/modules/base-client.ts +214 -0
- package/src/sdk/modules/debug.module.ts +44 -0
- package/src/sdk/modules/external-integration.module.ts +50 -0
- package/src/sdk/modules/log.module.ts +213 -0
- package/src/sdk/modules/organization.module.ts +35 -0
- package/src/sdk/modules/session.module.ts +41 -0
- package/src/sdk/modules/team.module.ts +55 -0
- package/src/sdk/modules/template.module.ts +242 -0
- package/src/sdk/modules/user.module.ts +89 -0
- package/src/sdk/modules/workflow.module.ts +39 -0
- package/src/sdk/sdk.old.ts +1312 -0
- package/src/sdk/sdk.ts +393 -1074
- package/src/sdk/types/agent.types.ts +65 -0
- package/src/sdk/types/audio.types.ts +89 -0
- package/src/sdk/types/auth.types.ts +29 -0
- package/src/sdk/types/common.types.ts +26 -0
- package/src/sdk/types/external-integration.types.ts +37 -0
- package/src/sdk/types/index.ts +13 -0
- package/src/sdk/types/log.types.ts +68 -0
- package/src/sdk/types/organization.types.ts +55 -0
- package/src/sdk/types/session.types.ts +63 -0
- package/src/sdk/types/team.types.ts +48 -0
- package/src/sdk/types/template.types.ts +142 -0
- package/src/sdk/types/user.types.ts +50 -0
- package/src/sdk/types/workflow.types.ts +26 -0
- package/src/sdk/types.old.ts +649 -0
- package/src/sdk/types.ts +2 -649
- package/src/sdk/urls.ts +3 -0
package/src/sdk/types.ts
CHANGED
|
@@ -1,649 +1,2 @@
|
|
|
1
|
-
// types
|
|
2
|
-
|
|
3
|
-
// Role type
|
|
4
|
-
export interface Role {
|
|
5
|
-
id: string;
|
|
6
|
-
name: string;
|
|
7
|
-
createdAt: string;
|
|
8
|
-
updatedAt: string;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
// Organization Role type
|
|
12
|
-
export interface OrganizationRole {
|
|
13
|
-
id: string;
|
|
14
|
-
name: string;
|
|
15
|
-
createdAt: string;
|
|
16
|
-
updatedAt: string;
|
|
17
|
-
organizationId: string;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
// User Role association
|
|
21
|
-
export interface UserRole {
|
|
22
|
-
userId: string;
|
|
23
|
-
roleId: string;
|
|
24
|
-
createdAt: string;
|
|
25
|
-
role: Role;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
// User Organization Role association
|
|
29
|
-
export interface UserOrganizationRole {
|
|
30
|
-
userId: string;
|
|
31
|
-
organizationRoleId: string;
|
|
32
|
-
createdAt: string;
|
|
33
|
-
organizationRole: OrganizationRole;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
// Organization type
|
|
37
|
-
export interface Organization {
|
|
38
|
-
id: string;
|
|
39
|
-
name: string;
|
|
40
|
-
description: string;
|
|
41
|
-
createdAt: string;
|
|
42
|
-
updatedAt: string;
|
|
43
|
-
|
|
44
|
-
users?: User[];
|
|
45
|
-
roles?: OrganizationRole[];
|
|
46
|
-
agents?: AgentOrganization[];
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
// User type
|
|
50
|
-
export interface User {
|
|
51
|
-
id: string;
|
|
52
|
-
email: string;
|
|
53
|
-
firstName: string;
|
|
54
|
-
lastName: string;
|
|
55
|
-
createdAt: string;
|
|
56
|
-
updatedAt: string;
|
|
57
|
-
organizationId: string;
|
|
58
|
-
organization: Organization;
|
|
59
|
-
roles: UserRole[];
|
|
60
|
-
organizationRoles: UserOrganizationRole[];
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
// Login response type
|
|
64
|
-
export interface LoginResponse {
|
|
65
|
-
access_token: string;
|
|
66
|
-
refresh_token: string;
|
|
67
|
-
user: User;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
// Login credentials type
|
|
71
|
-
export interface LoginCredentials {
|
|
72
|
-
email: string;
|
|
73
|
-
password: string;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
// SDK configuration type
|
|
77
|
-
export interface SDKConfig {
|
|
78
|
-
baseUrl?: string;
|
|
79
|
-
storage?: {
|
|
80
|
-
getItem: (key: string) => string | null | Promise<string | null>;
|
|
81
|
-
setItem: (key: string, value: string) => void | Promise<void>;
|
|
82
|
-
removeItem: (key: string) => void | Promise<void>;
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
// Team Role assignment DTO
|
|
87
|
-
export interface AssignTeamRoleDto {
|
|
88
|
-
userId: string;
|
|
89
|
-
teamId: string;
|
|
90
|
-
name: string;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Team creation DTO
|
|
94
|
-
export interface CreateTeamDto {
|
|
95
|
-
name: string;
|
|
96
|
-
description?: string;
|
|
97
|
-
organizationId: string;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
// Team update DTO
|
|
101
|
-
export interface UpdateTeamDto {
|
|
102
|
-
name?: string;
|
|
103
|
-
description?: string;
|
|
104
|
-
organizationId?: string;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
// Template creation DTO
|
|
108
|
-
export interface CreateTemplateDto {
|
|
109
|
-
title: string;
|
|
110
|
-
content: string;
|
|
111
|
-
isGlobal?: boolean;
|
|
112
|
-
organizationId: string;
|
|
113
|
-
categoryId: string;
|
|
114
|
-
createdById: string;
|
|
115
|
-
workflowId?: string;
|
|
116
|
-
agentId?: string;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
// Template update DTO
|
|
120
|
-
export interface UpdateTemplateDto {
|
|
121
|
-
title?: string;
|
|
122
|
-
content?: string;
|
|
123
|
-
isGlobal?: boolean;
|
|
124
|
-
organizationId: string;
|
|
125
|
-
categoryId?: string;
|
|
126
|
-
workflowId?: string;
|
|
127
|
-
agentId?: string;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
// Transcription summary generation DTO
|
|
131
|
-
export interface GenerateTranscriptionSummaryDto {
|
|
132
|
-
templateId: string;
|
|
133
|
-
userId?: string;
|
|
134
|
-
fromUserTemplate?: boolean;
|
|
135
|
-
sessionId: string; // Required session ID for linking to a session
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
// Transcription summary update DTO
|
|
139
|
-
export interface UpdateTranscriptionSummaryDto {
|
|
140
|
-
anonymisedTranscript?: string;
|
|
141
|
-
content?: string;
|
|
142
|
-
metadata?: Record<string, any>;
|
|
143
|
-
templateId?: string;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
// Organization role assignment DTO
|
|
147
|
-
export interface AssignOrganizationRoleDto {
|
|
148
|
-
userId: string;
|
|
149
|
-
organizationRoleId: string;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
// User template creation DTO
|
|
153
|
-
export interface CreateUserTemplateDto {
|
|
154
|
-
title: string;
|
|
155
|
-
content: string;
|
|
156
|
-
userId: string;
|
|
157
|
-
originalTemplateId?: string;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
// User template update DTO
|
|
161
|
-
export interface UpdateUserTemplateDto {
|
|
162
|
-
title?: string;
|
|
163
|
-
content?: string;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
// User creation DTO
|
|
167
|
-
export interface CreateUserDto {
|
|
168
|
-
email: string;
|
|
169
|
-
password: string;
|
|
170
|
-
firstName?: string;
|
|
171
|
-
lastName?: string;
|
|
172
|
-
organizationId?: string;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
// User update DTO
|
|
176
|
-
export interface UpdateUserDto {
|
|
177
|
-
email?: string;
|
|
178
|
-
password?: string;
|
|
179
|
-
firstName?: string;
|
|
180
|
-
lastName?: string;
|
|
181
|
-
organizationId?: string;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
export enum OrganizationRoleType {
|
|
185
|
-
ADMIN = 'ADMIN',
|
|
186
|
-
EDITOR = 'EDITOR',
|
|
187
|
-
DISABLED = 'DISABLED',
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
export interface AdminUser {
|
|
191
|
-
id: string;
|
|
192
|
-
email: string;
|
|
193
|
-
password_hash: string;
|
|
194
|
-
role: string;
|
|
195
|
-
created_at: Date;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
export interface TemplateCategory {
|
|
199
|
-
id: string;
|
|
200
|
-
name: string;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
export interface Template {
|
|
204
|
-
id: string;
|
|
205
|
-
title: string;
|
|
206
|
-
content: string;
|
|
207
|
-
createdAt: string;
|
|
208
|
-
updatesAt: string;
|
|
209
|
-
isGlobal: boolean;
|
|
210
|
-
organizationId?: string;
|
|
211
|
-
categoryId: string;
|
|
212
|
-
createdById: string;
|
|
213
|
-
workflowId?: string;
|
|
214
|
-
agentId?: string;
|
|
215
|
-
|
|
216
|
-
organization?: Organization;
|
|
217
|
-
category?: TemplateCategory;
|
|
218
|
-
createdBy?: User;
|
|
219
|
-
workflow?: Workflow;
|
|
220
|
-
agent?: Agent;
|
|
221
|
-
userTemplates?: UserTemplate[];
|
|
222
|
-
transcriptionSummaries?: TranscriptionSummary[];
|
|
223
|
-
teamTemplates?: TeamTemplate[];
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
export interface UserTemplate {
|
|
227
|
-
id: string;
|
|
228
|
-
title: string;
|
|
229
|
-
content: string;
|
|
230
|
-
createdAt: string;
|
|
231
|
-
updatesAt: string;
|
|
232
|
-
userId: string;
|
|
233
|
-
originalTemplateId?: string;
|
|
234
|
-
|
|
235
|
-
user?: User;
|
|
236
|
-
originalTemplate?: Template;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
export interface TranscriptionSummary {
|
|
240
|
-
id: string;
|
|
241
|
-
anonymisedTranscript?: string;
|
|
242
|
-
content: string;
|
|
243
|
-
metadata?: any;
|
|
244
|
-
createdAt: string;
|
|
245
|
-
updatesAt: string;
|
|
246
|
-
templateId: string;
|
|
247
|
-
userId: string;
|
|
248
|
-
|
|
249
|
-
template?: Template;
|
|
250
|
-
user?: User;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
export interface TeamTemplate {
|
|
254
|
-
teamId: string;
|
|
255
|
-
templateId: string;
|
|
256
|
-
createdAt: string;
|
|
257
|
-
|
|
258
|
-
team?: Team;
|
|
259
|
-
template?: Template;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
export interface TeamRole {
|
|
263
|
-
id: string;
|
|
264
|
-
name: string;
|
|
265
|
-
createdAt: string;
|
|
266
|
-
updatesAt: string;
|
|
267
|
-
userId: string;
|
|
268
|
-
teamId: string;
|
|
269
|
-
|
|
270
|
-
user?: User;
|
|
271
|
-
team?: Team;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
export interface Team {
|
|
275
|
-
id: string;
|
|
276
|
-
name: string;
|
|
277
|
-
description?: string;
|
|
278
|
-
createdAt: string;
|
|
279
|
-
updatesAt: string;
|
|
280
|
-
organizationId: string;
|
|
281
|
-
|
|
282
|
-
organization?: Organization;
|
|
283
|
-
teamRoles?: TeamRole[];
|
|
284
|
-
teamTemplates?: TeamTemplate[];
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
export interface TranscriptionAudioUploadResponse {
|
|
288
|
-
success: boolean;
|
|
289
|
-
transcription: string;
|
|
290
|
-
model_version: string;
|
|
291
|
-
metadata: any[];
|
|
292
|
-
duration: number;
|
|
293
|
-
log: string;
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
// Additional DTOs for missing functionality
|
|
297
|
-
export interface CreateOrganizationDto {
|
|
298
|
-
name: string;
|
|
299
|
-
description?: string;
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
export interface UpdateOrganizationDto {
|
|
303
|
-
name?: string;
|
|
304
|
-
description?: string;
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
export interface CreateTemplateCategoryDto {
|
|
308
|
-
name: string;
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
export interface UpdateTemplateCategoryDto {
|
|
312
|
-
name?: string;
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
export interface CreateTranscriptionSummaryDto {
|
|
316
|
-
userId: string;
|
|
317
|
-
templateId: string;
|
|
318
|
-
content: string;
|
|
319
|
-
anonymisedTranscript?: string;
|
|
320
|
-
metadata?: Record<string, any>;
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
export interface AssignTeamTemplateDto {
|
|
324
|
-
teamId: string;
|
|
325
|
-
templateId: string;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
// Enum for global role types to match API
|
|
329
|
-
export enum RoleType {
|
|
330
|
-
SUPERUSER = 'SUPERUSER',
|
|
331
|
-
ADMIN = 'ADMIN',
|
|
332
|
-
TRIAL = 'TRIAL',
|
|
333
|
-
PAID = 'PAID',
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
// Password change DTOs
|
|
337
|
-
export interface ChangePasswordDto {
|
|
338
|
-
currentPassword: string;
|
|
339
|
-
newPassword: string;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
export interface AdminChangePasswordDto {
|
|
343
|
-
userId: string;
|
|
344
|
-
newPassword: string;
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
export interface PasswordChangeResponse {
|
|
348
|
-
message: string;
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
// Session types
|
|
352
|
-
export interface Session {
|
|
353
|
-
id: string;
|
|
354
|
-
transcript: string;
|
|
355
|
-
medicalTranscription?: string;
|
|
356
|
-
culturalTranscription?: string;
|
|
357
|
-
dateTime: string;
|
|
358
|
-
startDateTime?: string;
|
|
359
|
-
stopDateTime?: string;
|
|
360
|
-
templateName?: string;
|
|
361
|
-
summary?: string;
|
|
362
|
-
sessionName?: string;
|
|
363
|
-
createdAt: string;
|
|
364
|
-
updatedAt: string;
|
|
365
|
-
templateId: string;
|
|
366
|
-
userId: string;
|
|
367
|
-
primaryTranscriptionSummaryId?: string;
|
|
368
|
-
|
|
369
|
-
// Derived fields (computed by API)
|
|
370
|
-
hasSummaryType?: boolean;
|
|
371
|
-
hasServerAudioFile?: boolean;
|
|
372
|
-
hasSummary?: boolean;
|
|
373
|
-
|
|
374
|
-
// Relationships (populated by API)
|
|
375
|
-
user?: User;
|
|
376
|
-
template?: Template;
|
|
377
|
-
transcriptionSummaries?: TranscriptionSummary[];
|
|
378
|
-
primaryTranscriptionSummary?: TranscriptionSummary;
|
|
379
|
-
audioFiles?: AudioFile[];
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
// Session DTOs
|
|
383
|
-
export interface CreateSessionDto {
|
|
384
|
-
transcript: string;
|
|
385
|
-
medicalTranscription?: string;
|
|
386
|
-
culturalTranscription?: string;
|
|
387
|
-
dateTime: string;
|
|
388
|
-
startDateTime?: string;
|
|
389
|
-
stopDateTime?: string;
|
|
390
|
-
templateId?: string;
|
|
391
|
-
templateName?: string;
|
|
392
|
-
summary?: string;
|
|
393
|
-
sessionName?: string;
|
|
394
|
-
primaryTranscriptionSummaryId?: string;
|
|
395
|
-
// userId will be auto-injected by API
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
export interface UpdateSessionDto {
|
|
399
|
-
transcript?: string;
|
|
400
|
-
medicalTranscription?: string;
|
|
401
|
-
culturalTranscription?: string;
|
|
402
|
-
dateTime?: string;
|
|
403
|
-
startDateTime?: string;
|
|
404
|
-
stopDateTime?: string;
|
|
405
|
-
templateId?: string;
|
|
406
|
-
templateName?: string;
|
|
407
|
-
summary?: string;
|
|
408
|
-
sessionName?: string;
|
|
409
|
-
primaryTranscriptionSummaryId?: string;
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
// Agent types
|
|
413
|
-
export interface Agent {
|
|
414
|
-
id: string;
|
|
415
|
-
name: string;
|
|
416
|
-
templateTextReplacement?: string;
|
|
417
|
-
createdAt: string;
|
|
418
|
-
updatedAt: string;
|
|
419
|
-
organizations?: AgentOrganization[];
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
// Agent Organization association
|
|
423
|
-
export interface AgentOrganization {
|
|
424
|
-
agentId: string;
|
|
425
|
-
organizationId: string;
|
|
426
|
-
createdAt: string;
|
|
427
|
-
agent?: Agent;
|
|
428
|
-
organization?: Organization;
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
// Agent DTOs
|
|
432
|
-
export interface CreateAgentDto {
|
|
433
|
-
name: string;
|
|
434
|
-
templateTextReplacement?: string;
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
export interface UpdateAgentDto {
|
|
438
|
-
name?: string;
|
|
439
|
-
templateTextReplacement?: string;
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
// Audio File types
|
|
443
|
-
export enum AudioFileStatus {
|
|
444
|
-
UPLOADED = 'UPLOADED',
|
|
445
|
-
PROCESSING = 'PROCESSING',
|
|
446
|
-
TRANSCRIBED = 'TRANSCRIBED',
|
|
447
|
-
FAILED = 'FAILED',
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
export interface AudioFile {
|
|
451
|
-
id: string;
|
|
452
|
-
originalName: string;
|
|
453
|
-
fileName: string;
|
|
454
|
-
filePath: string;
|
|
455
|
-
fileSize: number;
|
|
456
|
-
mimeType: string;
|
|
457
|
-
uploadId?: string;
|
|
458
|
-
transcriptionUrl?: string;
|
|
459
|
-
transcription?: string;
|
|
460
|
-
cultural_transcription?: string;
|
|
461
|
-
status: AudioFileStatus;
|
|
462
|
-
createdAt: string;
|
|
463
|
-
updatedAt: string;
|
|
464
|
-
sessionId: string;
|
|
465
|
-
userId: string;
|
|
466
|
-
|
|
467
|
-
// Relationships (populated by API)
|
|
468
|
-
session?: Session;
|
|
469
|
-
user?: User;
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
// Audio File DTOs
|
|
473
|
-
export interface CreateAudioFileDto {
|
|
474
|
-
originalName: string;
|
|
475
|
-
fileName: string;
|
|
476
|
-
filePath: string;
|
|
477
|
-
fileSize: number;
|
|
478
|
-
mimeType: string;
|
|
479
|
-
uploadId?: string;
|
|
480
|
-
sessionId: string;
|
|
481
|
-
// userId will be auto-injected by API
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
export interface UpdateAudioFileDto {
|
|
485
|
-
transcriptionUrl?: string;
|
|
486
|
-
transcription?: string;
|
|
487
|
-
cultural_transcription?: string;
|
|
488
|
-
status?: AudioFileStatus;
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
// Audio File Upload DTO (for transcription queue)
|
|
492
|
-
export interface UploadAudioFileDto {
|
|
493
|
-
cultural_transcription?: string;
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
// Agent Settings types
|
|
497
|
-
export interface AgentSettings {
|
|
498
|
-
id: string;
|
|
499
|
-
temperature: number;
|
|
500
|
-
topK: number;
|
|
501
|
-
topP: number;
|
|
502
|
-
repetitionPenalty: number;
|
|
503
|
-
createdAt: string;
|
|
504
|
-
updatedAt: string;
|
|
505
|
-
agentId: string;
|
|
506
|
-
organizationId: string;
|
|
507
|
-
|
|
508
|
-
// Relationships (populated by API)
|
|
509
|
-
agent?: Agent;
|
|
510
|
-
organization?: Organization;
|
|
511
|
-
}
|
|
512
|
-
|
|
513
|
-
// Agent Settings DTOs
|
|
514
|
-
export interface CreateAgentSettingsDto {
|
|
515
|
-
agentId: string;
|
|
516
|
-
organizationId: string;
|
|
517
|
-
temperature?: number;
|
|
518
|
-
topK?: number;
|
|
519
|
-
topP?: number;
|
|
520
|
-
repetitionPenalty?: number;
|
|
521
|
-
}
|
|
522
|
-
|
|
523
|
-
export interface UpdateAgentSettingsDto {
|
|
524
|
-
temperature?: number;
|
|
525
|
-
topK?: number;
|
|
526
|
-
topP?: number;
|
|
527
|
-
repetitionPenalty?: number;
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
// Workflow types
|
|
531
|
-
export interface Workflow {
|
|
532
|
-
id: string;
|
|
533
|
-
name: string;
|
|
534
|
-
createdAt: string;
|
|
535
|
-
updatedAt: string;
|
|
536
|
-
organizationId: string;
|
|
537
|
-
|
|
538
|
-
// Relationships (populated by API)
|
|
539
|
-
organization?: Organization;
|
|
540
|
-
templates?: Template[];
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
// Workflow DTOs
|
|
544
|
-
export interface CreateWorkflowDto {
|
|
545
|
-
name: string;
|
|
546
|
-
organizationId: string;
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
export interface UpdateWorkflowDto {
|
|
550
|
-
name?: string;
|
|
551
|
-
organizationId: string;
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
// Base64 Audio File types
|
|
555
|
-
export interface Base64AudioFile {
|
|
556
|
-
id: string;
|
|
557
|
-
sessionId: string;
|
|
558
|
-
audioChunks: string[];
|
|
559
|
-
createdAt: string;
|
|
560
|
-
updatedAt: string;
|
|
561
|
-
|
|
562
|
-
// Relationships (populated by API)
|
|
563
|
-
session?: Session;
|
|
564
|
-
}
|
|
565
|
-
|
|
566
|
-
// Base64 Audio File DTOs
|
|
567
|
-
export interface CreateBase64AudioFileDto {
|
|
568
|
-
sessionId: string;
|
|
569
|
-
audioChunks: string[];
|
|
570
|
-
}
|
|
571
|
-
|
|
572
|
-
export interface UpdateBase64AudioFileDto {
|
|
573
|
-
sessionId?: string;
|
|
574
|
-
audioChunks?: string[];
|
|
575
|
-
}
|
|
576
|
-
|
|
577
|
-
// Add chunk response
|
|
578
|
-
export interface AddBase64ChunkResponse {
|
|
579
|
-
count: number;
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
// Log types
|
|
583
|
-
export interface Log {
|
|
584
|
-
id: number;
|
|
585
|
-
level: string;
|
|
586
|
-
message: string;
|
|
587
|
-
meta: any;
|
|
588
|
-
timestamp: string;
|
|
589
|
-
}
|
|
590
|
-
|
|
591
|
-
export interface LogsResponse {
|
|
592
|
-
logs: Log[];
|
|
593
|
-
total: number;
|
|
594
|
-
limit: number;
|
|
595
|
-
offset: number;
|
|
596
|
-
hasMore: boolean;
|
|
597
|
-
}
|
|
598
|
-
|
|
599
|
-
export interface LogStats {
|
|
600
|
-
totalLogs: number;
|
|
601
|
-
errorLogs: number;
|
|
602
|
-
warnLogs: number;
|
|
603
|
-
infoLogs: number;
|
|
604
|
-
recentLogs: number;
|
|
605
|
-
}
|
|
606
|
-
|
|
607
|
-
export interface FilterLogsDto {
|
|
608
|
-
controller?: string;
|
|
609
|
-
userId?: string;
|
|
610
|
-
organizationId?: string;
|
|
611
|
-
level?: 'error' | 'warn' | 'info' | 'debug' | 'verbose';
|
|
612
|
-
role?: string;
|
|
613
|
-
organizationRole?: string;
|
|
614
|
-
teamRole?: string;
|
|
615
|
-
startDate?: string;
|
|
616
|
-
endDate?: string;
|
|
617
|
-
limit?: number;
|
|
618
|
-
offset?: number;
|
|
619
|
-
}
|
|
620
|
-
|
|
621
|
-
export interface CreateLogDto {
|
|
622
|
-
level: 'error' | 'warn' | 'info' | 'debug' | 'verbose';
|
|
623
|
-
message: string;
|
|
624
|
-
context?: string;
|
|
625
|
-
action?: string;
|
|
626
|
-
data?: any;
|
|
627
|
-
additionalMeta?: Record<string, any>;
|
|
628
|
-
}
|
|
629
|
-
|
|
630
|
-
// Debug types
|
|
631
|
-
export interface DebugSessionSummary {
|
|
632
|
-
id: string;
|
|
633
|
-
sessionName?: string;
|
|
634
|
-
dateTime: string;
|
|
635
|
-
createdAt: string;
|
|
636
|
-
user: {
|
|
637
|
-
id: string;
|
|
638
|
-
email: string;
|
|
639
|
-
firstName?: string;
|
|
640
|
-
lastName?: string;
|
|
641
|
-
organizationId?: string;
|
|
642
|
-
};
|
|
643
|
-
template?: {
|
|
644
|
-
id: string;
|
|
645
|
-
title: string;
|
|
646
|
-
};
|
|
647
|
-
hasMedicalTranscription: boolean;
|
|
648
|
-
hasPrimaryTranscriptionSummary: boolean;
|
|
649
|
-
}
|
|
1
|
+
// Re-export all types from the types directory for backward compatibility
|
|
2
|
+
export * from './types/index';
|