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