whio-api-sdk 1.0.193-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.
Files changed (94) hide show
  1. package/dist/src/sdk/modules/agent.module.d.ts +17 -0
  2. package/dist/src/sdk/modules/agent.module.js +93 -0
  3. package/dist/src/sdk/modules/audio.module.d.ts +31 -0
  4. package/dist/src/sdk/modules/audio.module.js +147 -0
  5. package/dist/src/sdk/modules/auth.module.d.ts +9 -0
  6. package/dist/src/sdk/modules/auth.module.js +59 -0
  7. package/dist/src/sdk/modules/base-client.d.ts +25 -0
  8. package/dist/src/sdk/modules/base-client.js +183 -0
  9. package/dist/src/sdk/modules/debug.module.d.ts +20 -0
  10. package/dist/src/sdk/modules/debug.module.js +54 -0
  11. package/dist/src/sdk/modules/external-integration.module.d.ts +9 -0
  12. package/dist/src/sdk/modules/external-integration.module.js +38 -0
  13. package/dist/src/sdk/modules/log.module.d.ts +63 -0
  14. package/dist/src/sdk/modules/log.module.js +222 -0
  15. package/dist/src/sdk/modules/organization.module.d.ts +11 -0
  16. package/dist/src/sdk/modules/organization.module.js +50 -0
  17. package/dist/src/sdk/modules/session.module.d.ts +16 -0
  18. package/dist/src/sdk/modules/session.module.js +58 -0
  19. package/dist/src/sdk/modules/team.module.d.ts +13 -0
  20. package/dist/src/sdk/modules/team.module.js +72 -0
  21. package/dist/src/sdk/modules/template.module.d.ts +33 -0
  22. package/dist/src/sdk/modules/template.module.js +240 -0
  23. package/dist/src/sdk/modules/user.module.d.ts +17 -0
  24. package/dist/src/sdk/modules/user.module.js +104 -0
  25. package/dist/src/sdk/modules/workflow.module.d.ts +10 -0
  26. package/dist/src/sdk/modules/workflow.module.js +53 -0
  27. package/dist/src/sdk/sdk.d.ts +167 -211
  28. package/dist/src/sdk/sdk.js +375 -869
  29. package/dist/src/sdk/sdk.old.d.ts +222 -0
  30. package/dist/src/sdk/sdk.old.js +1238 -0
  31. package/dist/src/sdk/types/agent.types.d.ts +51 -0
  32. package/dist/src/sdk/types/agent.types.js +1 -0
  33. package/dist/src/sdk/types/audio.types.d.ts +72 -0
  34. package/dist/src/sdk/types/audio.types.js +8 -0
  35. package/dist/src/sdk/types/auth.types.d.ts +21 -0
  36. package/dist/src/sdk/types/auth.types.js +1 -0
  37. package/dist/src/sdk/types/common.types.d.ts +20 -0
  38. package/dist/src/sdk/types/common.types.js +9 -0
  39. package/dist/src/sdk/types/external-integration.types.d.ts +31 -0
  40. package/dist/src/sdk/types/external-integration.types.js +1 -0
  41. package/dist/src/sdk/types/index.d.ts +12 -0
  42. package/dist/src/sdk/types/index.js +13 -0
  43. package/dist/src/sdk/types/log.types.d.ts +61 -0
  44. package/dist/src/sdk/types/log.types.js +1 -0
  45. package/dist/src/sdk/types/organization.types.d.ts +42 -0
  46. package/dist/src/sdk/types/organization.types.js +6 -0
  47. package/dist/src/sdk/types/session.types.d.ts +54 -0
  48. package/dist/src/sdk/types/session.types.js +1 -0
  49. package/dist/src/sdk/types/team.types.d.ts +39 -0
  50. package/dist/src/sdk/types/team.types.js +1 -0
  51. package/dist/src/sdk/types/template.types.d.ts +118 -0
  52. package/dist/src/sdk/types/template.types.js +1 -0
  53. package/dist/src/sdk/types/user.types.d.ts +41 -0
  54. package/dist/src/sdk/types/user.types.js +1 -0
  55. package/dist/src/sdk/types/workflow.types.d.ts +19 -0
  56. package/dist/src/sdk/types/workflow.types.js +1 -0
  57. package/dist/src/sdk/types.d.ts +1 -517
  58. package/dist/src/sdk/types.js +2 -23
  59. package/dist/src/sdk/types.old.d.ts +517 -0
  60. package/dist/src/sdk/types.old.js +23 -0
  61. package/dist/src/sdk/urls.d.ts +1 -0
  62. package/dist/src/sdk/urls.js +2 -0
  63. package/package.json +1 -1
  64. package/src/sdk/modules/agent.module.ts +74 -0
  65. package/src/sdk/modules/audio.module.ts +131 -0
  66. package/src/sdk/modules/auth.module.ts +53 -0
  67. package/src/sdk/modules/base-client.ts +214 -0
  68. package/src/sdk/modules/debug.module.ts +44 -0
  69. package/src/sdk/modules/external-integration.module.ts +50 -0
  70. package/src/sdk/modules/log.module.ts +213 -0
  71. package/src/sdk/modules/organization.module.ts +35 -0
  72. package/src/sdk/modules/session.module.ts +41 -0
  73. package/src/sdk/modules/team.module.ts +55 -0
  74. package/src/sdk/modules/template.module.ts +242 -0
  75. package/src/sdk/modules/user.module.ts +89 -0
  76. package/src/sdk/modules/workflow.module.ts +39 -0
  77. package/src/sdk/sdk.old.ts +1312 -0
  78. package/src/sdk/sdk.ts +393 -1089
  79. package/src/sdk/types/agent.types.ts +65 -0
  80. package/src/sdk/types/audio.types.ts +89 -0
  81. package/src/sdk/types/auth.types.ts +29 -0
  82. package/src/sdk/types/common.types.ts +26 -0
  83. package/src/sdk/types/external-integration.types.ts +37 -0
  84. package/src/sdk/types/index.ts +13 -0
  85. package/src/sdk/types/log.types.ts +68 -0
  86. package/src/sdk/types/organization.types.ts +55 -0
  87. package/src/sdk/types/session.types.ts +63 -0
  88. package/src/sdk/types/team.types.ts +48 -0
  89. package/src/sdk/types/template.types.ts +142 -0
  90. package/src/sdk/types/user.types.ts +50 -0
  91. package/src/sdk/types/workflow.types.ts +26 -0
  92. package/src/sdk/types.old.ts +649 -0
  93. package/src/sdk/types.ts +2 -649
  94. package/src/sdk/urls.ts +3 -0
@@ -0,0 +1,51 @@
1
+ import { Organization } from './organization.types';
2
+ export interface Agent {
3
+ id: string;
4
+ name: string;
5
+ templateTextReplacement?: string;
6
+ createdAt: string;
7
+ updatedAt: string;
8
+ organizations?: AgentOrganization[];
9
+ }
10
+ export interface AgentOrganization {
11
+ agentId: string;
12
+ organizationId: string;
13
+ createdAt: string;
14
+ agent?: Agent;
15
+ organization?: Organization;
16
+ }
17
+ export interface CreateAgentDto {
18
+ name: string;
19
+ templateTextReplacement?: string;
20
+ }
21
+ export interface UpdateAgentDto {
22
+ name?: string;
23
+ templateTextReplacement?: string;
24
+ }
25
+ export interface AgentSettings {
26
+ id: string;
27
+ temperature: number;
28
+ topK: number;
29
+ topP: number;
30
+ repetitionPenalty: number;
31
+ createdAt: string;
32
+ updatedAt: string;
33
+ agentId: string;
34
+ organizationId: string;
35
+ agent?: Agent;
36
+ organization?: Organization;
37
+ }
38
+ export interface CreateAgentSettingsDto {
39
+ agentId: string;
40
+ organizationId: string;
41
+ temperature?: number;
42
+ topK?: number;
43
+ topP?: number;
44
+ repetitionPenalty?: number;
45
+ }
46
+ export interface UpdateAgentSettingsDto {
47
+ temperature?: number;
48
+ topK?: number;
49
+ topP?: number;
50
+ repetitionPenalty?: number;
51
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,72 @@
1
+ import { Session } from './session.types';
2
+ import { User } from './user.types';
3
+ export declare enum AudioFileStatus {
4
+ UPLOADED = "UPLOADED",
5
+ PROCESSING = "PROCESSING",
6
+ TRANSCRIBED = "TRANSCRIBED",
7
+ FAILED = "FAILED"
8
+ }
9
+ export interface AudioFile {
10
+ id: string;
11
+ originalName: string;
12
+ fileName: string;
13
+ filePath: string;
14
+ fileSize: number;
15
+ mimeType: string;
16
+ uploadId?: string;
17
+ transcriptionUrl?: string;
18
+ transcription?: string;
19
+ cultural_transcription?: string;
20
+ status: AudioFileStatus;
21
+ createdAt: string;
22
+ updatedAt: string;
23
+ sessionId: string;
24
+ userId: string;
25
+ session?: Session;
26
+ user?: User;
27
+ }
28
+ export interface CreateAudioFileDto {
29
+ originalName: string;
30
+ fileName: string;
31
+ filePath: string;
32
+ fileSize: number;
33
+ mimeType: string;
34
+ uploadId?: string;
35
+ sessionId: string;
36
+ }
37
+ export interface UpdateAudioFileDto {
38
+ transcriptionUrl?: string;
39
+ transcription?: string;
40
+ cultural_transcription?: string;
41
+ status?: AudioFileStatus;
42
+ }
43
+ export interface UploadAudioFileDto {
44
+ cultural_transcription?: string;
45
+ }
46
+ export interface TranscriptionAudioUploadResponse {
47
+ success: boolean;
48
+ transcription: string;
49
+ model_version: string;
50
+ metadata: any[];
51
+ duration: number;
52
+ log: string;
53
+ }
54
+ export interface Base64AudioFile {
55
+ id: string;
56
+ sessionId: string;
57
+ audioChunks: string[];
58
+ createdAt: string;
59
+ updatedAt: string;
60
+ session?: Session;
61
+ }
62
+ export interface CreateBase64AudioFileDto {
63
+ sessionId: string;
64
+ audioChunks: string[];
65
+ }
66
+ export interface UpdateBase64AudioFileDto {
67
+ sessionId?: string;
68
+ audioChunks?: string[];
69
+ }
70
+ export interface AddBase64ChunkResponse {
71
+ count: number;
72
+ }
@@ -0,0 +1,8 @@
1
+ // Audio File types
2
+ export var AudioFileStatus;
3
+ (function (AudioFileStatus) {
4
+ AudioFileStatus["UPLOADED"] = "UPLOADED";
5
+ AudioFileStatus["PROCESSING"] = "PROCESSING";
6
+ AudioFileStatus["TRANSCRIBED"] = "TRANSCRIBED";
7
+ AudioFileStatus["FAILED"] = "FAILED";
8
+ })(AudioFileStatus || (AudioFileStatus = {}));
@@ -0,0 +1,21 @@
1
+ import { User } from './user.types';
2
+ export interface LoginResponse {
3
+ access_token: string;
4
+ refresh_token: string;
5
+ user: User;
6
+ }
7
+ export interface LoginCredentials {
8
+ email: string;
9
+ password: string;
10
+ }
11
+ export interface ChangePasswordDto {
12
+ currentPassword: string;
13
+ newPassword: string;
14
+ }
15
+ export interface AdminChangePasswordDto {
16
+ userId: string;
17
+ newPassword: string;
18
+ }
19
+ export interface PasswordChangeResponse {
20
+ message: string;
21
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,20 @@
1
+ export interface SDKConfig {
2
+ baseUrl?: string;
3
+ storage?: {
4
+ getItem: (key: string) => string | null | Promise<string | null>;
5
+ setItem: (key: string, value: string) => void | Promise<void>;
6
+ removeItem: (key: string) => void | Promise<void>;
7
+ };
8
+ }
9
+ export interface Role {
10
+ id: string;
11
+ name: string;
12
+ createdAt: string;
13
+ updatedAt: string;
14
+ }
15
+ export declare enum RoleType {
16
+ SUPERUSER = "SUPERUSER",
17
+ ADMIN = "ADMIN",
18
+ TRIAL = "TRIAL",
19
+ PAID = "PAID"
20
+ }
@@ -0,0 +1,9 @@
1
+ // Common types used across the SDK
2
+ // Enum for global role types to match API
3
+ export var RoleType;
4
+ (function (RoleType) {
5
+ RoleType["SUPERUSER"] = "SUPERUSER";
6
+ RoleType["ADMIN"] = "ADMIN";
7
+ RoleType["TRIAL"] = "TRIAL";
8
+ RoleType["PAID"] = "PAID";
9
+ })(RoleType || (RoleType = {}));
@@ -0,0 +1,31 @@
1
+ export interface ExternalIntegration {
2
+ id: string;
3
+ name: string;
4
+ getUserEndpoint: string;
5
+ getPatientDataEndpoint: string;
6
+ saveSummaryEndpoint: string;
7
+ apiKey: string;
8
+ headerName: string;
9
+ createdAt: string;
10
+ updatedAt: string;
11
+ organizations?: Array<{
12
+ id: string;
13
+ name: string;
14
+ }>;
15
+ }
16
+ export interface CreateExternalIntegrationDto {
17
+ name: string;
18
+ getUserEndpoint: string;
19
+ getPatientDataEndpoint: string;
20
+ saveSummaryEndpoint: string;
21
+ apiKey: string;
22
+ headerName: string;
23
+ }
24
+ export interface UpdateExternalIntegrationDto {
25
+ name?: string;
26
+ getUserEndpoint?: string;
27
+ getPatientDataEndpoint?: string;
28
+ saveSummaryEndpoint?: string;
29
+ apiKey?: string;
30
+ headerName?: string;
31
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,12 @@
1
+ export * from './common.types';
2
+ export * from './auth.types';
3
+ export * from './user.types';
4
+ export * from './organization.types';
5
+ export * from './team.types';
6
+ export * from './template.types';
7
+ export * from './agent.types';
8
+ export * from './session.types';
9
+ export * from './audio.types';
10
+ export * from './workflow.types';
11
+ export * from './log.types';
12
+ export * from './external-integration.types';
@@ -0,0 +1,13 @@
1
+ // Barrel export for all types
2
+ export * from './common.types';
3
+ export * from './auth.types';
4
+ export * from './user.types';
5
+ export * from './organization.types';
6
+ export * from './team.types';
7
+ export * from './template.types';
8
+ export * from './agent.types';
9
+ export * from './session.types';
10
+ export * from './audio.types';
11
+ export * from './workflow.types';
12
+ export * from './log.types';
13
+ export * from './external-integration.types';
@@ -0,0 +1,61 @@
1
+ export interface Log {
2
+ id: number;
3
+ level: string;
4
+ message: string;
5
+ meta: any;
6
+ timestamp: string;
7
+ }
8
+ export interface LogsResponse {
9
+ logs: Log[];
10
+ total: number;
11
+ limit: number;
12
+ offset: number;
13
+ hasMore: boolean;
14
+ }
15
+ export interface LogStats {
16
+ totalLogs: number;
17
+ errorLogs: number;
18
+ warnLogs: number;
19
+ infoLogs: number;
20
+ recentLogs: number;
21
+ }
22
+ export interface FilterLogsDto {
23
+ controller?: string;
24
+ userId?: string;
25
+ organizationId?: string;
26
+ level?: 'error' | 'warn' | 'info' | 'debug' | 'verbose';
27
+ role?: string;
28
+ organizationRole?: string;
29
+ teamRole?: string;
30
+ startDate?: string;
31
+ endDate?: string;
32
+ limit?: number;
33
+ offset?: number;
34
+ }
35
+ export interface CreateLogDto {
36
+ level: 'error' | 'warn' | 'info' | 'debug' | 'verbose';
37
+ message: string;
38
+ context?: string;
39
+ action?: string;
40
+ data?: any;
41
+ additionalMeta?: Record<string, any>;
42
+ }
43
+ export interface DebugSessionSummary {
44
+ id: string;
45
+ sessionName?: string;
46
+ dateTime: string;
47
+ createdAt: string;
48
+ user: {
49
+ id: string;
50
+ email: string;
51
+ firstName?: string;
52
+ lastName?: string;
53
+ organizationId?: string;
54
+ };
55
+ template?: {
56
+ id: string;
57
+ title: string;
58
+ };
59
+ hasMedicalTranscription: boolean;
60
+ hasPrimaryTranscriptionSummary: boolean;
61
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,42 @@
1
+ import { User } from './user.types';
2
+ import { AgentOrganization } from './agent.types';
3
+ export interface OrganizationRole {
4
+ id: string;
5
+ name: string;
6
+ createdAt: string;
7
+ updatedAt: string;
8
+ organizationId: string;
9
+ }
10
+ export declare enum OrganizationRoleType {
11
+ ADMIN = "ADMIN",
12
+ EDITOR = "EDITOR",
13
+ DISABLED = "DISABLED"
14
+ }
15
+ export interface UserOrganizationRole {
16
+ userId: string;
17
+ organizationRoleId: string;
18
+ createdAt: string;
19
+ organizationRole: OrganizationRole;
20
+ }
21
+ export interface Organization {
22
+ id: string;
23
+ name: string;
24
+ description: string;
25
+ createdAt: string;
26
+ updatedAt: string;
27
+ users?: User[];
28
+ roles?: OrganizationRole[];
29
+ agents?: AgentOrganization[];
30
+ }
31
+ export interface CreateOrganizationDto {
32
+ name: string;
33
+ description?: string;
34
+ }
35
+ export interface UpdateOrganizationDto {
36
+ name?: string;
37
+ description?: string;
38
+ }
39
+ export interface AssignOrganizationRoleDto {
40
+ userId: string;
41
+ organizationRoleId: string;
42
+ }
@@ -0,0 +1,6 @@
1
+ export var OrganizationRoleType;
2
+ (function (OrganizationRoleType) {
3
+ OrganizationRoleType["ADMIN"] = "ADMIN";
4
+ OrganizationRoleType["EDITOR"] = "EDITOR";
5
+ OrganizationRoleType["DISABLED"] = "DISABLED";
6
+ })(OrganizationRoleType || (OrganizationRoleType = {}));
@@ -0,0 +1,54 @@
1
+ import { User } from './user.types';
2
+ import { Template, TranscriptionSummary } from './template.types';
3
+ import { AudioFile } from './audio.types';
4
+ export interface Session {
5
+ id: string;
6
+ transcript: string;
7
+ medicalTranscription?: string;
8
+ culturalTranscription?: string;
9
+ dateTime: string;
10
+ startDateTime?: string;
11
+ stopDateTime?: string;
12
+ templateName?: string;
13
+ summary?: string;
14
+ sessionName?: string;
15
+ createdAt: string;
16
+ updatedAt: string;
17
+ templateId: string;
18
+ userId: string;
19
+ primaryTranscriptionSummaryId?: string;
20
+ hasSummaryType?: boolean;
21
+ hasServerAudioFile?: boolean;
22
+ hasSummary?: boolean;
23
+ user?: User;
24
+ template?: Template;
25
+ transcriptionSummaries?: TranscriptionSummary[];
26
+ primaryTranscriptionSummary?: TranscriptionSummary;
27
+ audioFiles?: AudioFile[];
28
+ }
29
+ export interface CreateSessionDto {
30
+ transcript: string;
31
+ medicalTranscription?: string;
32
+ culturalTranscription?: string;
33
+ dateTime: string;
34
+ startDateTime?: string;
35
+ stopDateTime?: string;
36
+ templateId?: string;
37
+ templateName?: string;
38
+ summary?: string;
39
+ sessionName?: string;
40
+ primaryTranscriptionSummaryId?: string;
41
+ }
42
+ export interface UpdateSessionDto {
43
+ transcript?: string;
44
+ medicalTranscription?: string;
45
+ culturalTranscription?: string;
46
+ dateTime?: string;
47
+ startDateTime?: string;
48
+ stopDateTime?: string;
49
+ templateId?: string;
50
+ templateName?: string;
51
+ summary?: string;
52
+ sessionName?: string;
53
+ primaryTranscriptionSummaryId?: string;
54
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,39 @@
1
+ import { Organization } from './organization.types';
2
+ import { User } from './user.types';
3
+ import { TeamTemplate } from './template.types';
4
+ export interface TeamRole {
5
+ id: string;
6
+ name: string;
7
+ createdAt: string;
8
+ updatesAt: string;
9
+ userId: string;
10
+ teamId: string;
11
+ user?: User;
12
+ team?: Team;
13
+ }
14
+ export interface Team {
15
+ id: string;
16
+ name: string;
17
+ description?: string;
18
+ createdAt: string;
19
+ updatesAt: string;
20
+ organizationId: string;
21
+ organization?: Organization;
22
+ teamRoles?: TeamRole[];
23
+ teamTemplates?: TeamTemplate[];
24
+ }
25
+ export interface CreateTeamDto {
26
+ name: string;
27
+ description?: string;
28
+ organizationId: string;
29
+ }
30
+ export interface UpdateTeamDto {
31
+ name?: string;
32
+ description?: string;
33
+ organizationId?: string;
34
+ }
35
+ export interface AssignTeamRoleDto {
36
+ userId: string;
37
+ teamId: string;
38
+ name: string;
39
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,118 @@
1
+ import { Organization } from './organization.types';
2
+ import { User } from './user.types';
3
+ import { Workflow } from './workflow.types';
4
+ import { Agent } from './agent.types';
5
+ import { Team } from './team.types';
6
+ export interface TemplateCategory {
7
+ id: string;
8
+ name: string;
9
+ }
10
+ export interface Template {
11
+ id: string;
12
+ title: string;
13
+ content: string;
14
+ createdAt: string;
15
+ updatesAt: string;
16
+ isGlobal: boolean;
17
+ organizationId?: string;
18
+ categoryId: string;
19
+ createdById: string;
20
+ workflowId?: string;
21
+ agentId?: string;
22
+ organization?: Organization;
23
+ category?: TemplateCategory;
24
+ createdBy?: User;
25
+ workflow?: Workflow;
26
+ agent?: Agent;
27
+ userTemplates?: UserTemplate[];
28
+ transcriptionSummaries?: TranscriptionSummary[];
29
+ teamTemplates?: TeamTemplate[];
30
+ }
31
+ export interface UserTemplate {
32
+ id: string;
33
+ title: string;
34
+ content: string;
35
+ createdAt: string;
36
+ updatesAt: string;
37
+ userId: string;
38
+ originalTemplateId?: string;
39
+ user?: User;
40
+ originalTemplate?: Template;
41
+ }
42
+ export interface TranscriptionSummary {
43
+ id: string;
44
+ anonymisedTranscript?: string;
45
+ content: string;
46
+ metadata?: any;
47
+ createdAt: string;
48
+ updatesAt: string;
49
+ templateId: string;
50
+ userId: string;
51
+ template?: Template;
52
+ user?: User;
53
+ }
54
+ export interface TeamTemplate {
55
+ teamId: string;
56
+ templateId: string;
57
+ createdAt: string;
58
+ team?: Team;
59
+ template?: Template;
60
+ }
61
+ export interface CreateTemplateDto {
62
+ title: string;
63
+ content: string;
64
+ isGlobal?: boolean;
65
+ organizationId: string;
66
+ categoryId: string;
67
+ createdById: string;
68
+ workflowId?: string;
69
+ agentId?: string;
70
+ }
71
+ export interface UpdateTemplateDto {
72
+ title?: string;
73
+ content?: string;
74
+ isGlobal?: boolean;
75
+ organizationId: string;
76
+ categoryId?: string;
77
+ workflowId?: string;
78
+ agentId?: string;
79
+ }
80
+ export interface CreateTemplateCategoryDto {
81
+ name: string;
82
+ }
83
+ export interface UpdateTemplateCategoryDto {
84
+ name?: string;
85
+ }
86
+ export interface CreateUserTemplateDto {
87
+ title: string;
88
+ content: string;
89
+ userId: string;
90
+ originalTemplateId?: string;
91
+ }
92
+ export interface UpdateUserTemplateDto {
93
+ title?: string;
94
+ content?: string;
95
+ }
96
+ export interface AssignTeamTemplateDto {
97
+ teamId: string;
98
+ templateId: string;
99
+ }
100
+ export interface GenerateTranscriptionSummaryDto {
101
+ templateId: string;
102
+ userId?: string;
103
+ fromUserTemplate?: boolean;
104
+ sessionId: string;
105
+ }
106
+ export interface CreateTranscriptionSummaryDto {
107
+ userId: string;
108
+ templateId: string;
109
+ content: string;
110
+ anonymisedTranscript?: string;
111
+ metadata?: Record<string, any>;
112
+ }
113
+ export interface UpdateTranscriptionSummaryDto {
114
+ anonymisedTranscript?: string;
115
+ content?: string;
116
+ metadata?: Record<string, any>;
117
+ templateId?: string;
118
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,41 @@
1
+ import { Organization, UserOrganizationRole } from './organization.types';
2
+ import { Role } from './common.types';
3
+ export interface UserRole {
4
+ userId: string;
5
+ roleId: string;
6
+ createdAt: string;
7
+ role: Role;
8
+ }
9
+ export interface User {
10
+ id: string;
11
+ email: string;
12
+ firstName: string;
13
+ lastName: string;
14
+ createdAt: string;
15
+ updatedAt: string;
16
+ organizationId: string;
17
+ organization: Organization;
18
+ roles: UserRole[];
19
+ organizationRoles: UserOrganizationRole[];
20
+ }
21
+ export interface CreateUserDto {
22
+ email: string;
23
+ password: string;
24
+ firstName?: string;
25
+ lastName?: string;
26
+ organizationId?: string;
27
+ }
28
+ export interface UpdateUserDto {
29
+ email?: string;
30
+ password?: string;
31
+ firstName?: string;
32
+ lastName?: string;
33
+ organizationId?: string;
34
+ }
35
+ export interface AdminUser {
36
+ id: string;
37
+ email: string;
38
+ password_hash: string;
39
+ role: string;
40
+ created_at: Date;
41
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,19 @@
1
+ import { Organization } from './organization.types';
2
+ import { Template } from './template.types';
3
+ export interface Workflow {
4
+ id: string;
5
+ name: string;
6
+ createdAt: string;
7
+ updatedAt: string;
8
+ organizationId: string;
9
+ organization?: Organization;
10
+ templates?: Template[];
11
+ }
12
+ export interface CreateWorkflowDto {
13
+ name: string;
14
+ organizationId: string;
15
+ }
16
+ export interface UpdateWorkflowDto {
17
+ name?: string;
18
+ organizationId: string;
19
+ }
@@ -0,0 +1 @@
1
+ export {};