keplar-api 0.0.13 → 0.0.14

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/.openapi-generator/FILES +17 -1
  2. package/README.md +2 -2
  3. package/dist/apis/DefaultApi.d.ts +137 -27
  4. package/dist/apis/DefaultApi.js +711 -139
  5. package/dist/models/AttributeKindGroup.d.ts +4 -4
  6. package/dist/models/AttributeKindGroup.js +6 -6
  7. package/dist/models/CreateProjectPreviewInvite201Response.d.ts +45 -0
  8. package/dist/models/CreateProjectPreviewInvite201Response.js +56 -0
  9. package/dist/models/CreateProjectPreviewInviteRequest.d.ts +44 -0
  10. package/dist/models/CreateProjectPreviewInviteRequest.js +53 -0
  11. package/dist/models/GetProjects200Response.d.ts +51 -0
  12. package/dist/models/{ApiProjectsGet200Response.js → GetProjects200Response.js} +13 -13
  13. package/dist/models/InviteStatus.d.ts +1 -0
  14. package/dist/models/InviteStatus.js +1 -0
  15. package/dist/models/Login200Response.d.ts +239 -0
  16. package/dist/models/Login200Response.js +154 -0
  17. package/dist/models/Login200ResponseAnyOf.d.ts +44 -0
  18. package/dist/models/Login200ResponseAnyOf.js +59 -0
  19. package/dist/models/Login400Response.d.ts +45 -0
  20. package/dist/models/Login400Response.js +58 -0
  21. package/dist/models/Login400ResponseAnyOf.d.ts +45 -0
  22. package/dist/models/Login400ResponseAnyOf.js +58 -0
  23. package/dist/models/Login400ResponseAnyOfError.d.ts +26 -0
  24. package/dist/models/Login400ResponseAnyOfError.js +39 -0
  25. package/dist/models/LoginRequest.d.ts +38 -0
  26. package/dist/models/LoginRequest.js +55 -0
  27. package/dist/models/ModelFile.d.ts +4 -4
  28. package/dist/models/ModelFile.js +6 -6
  29. package/dist/models/Moderator.d.ts +4 -4
  30. package/dist/models/Moderator.js +6 -6
  31. package/dist/models/Org.d.ts +3 -44
  32. package/dist/models/Org.js +3 -20
  33. package/dist/models/OrgData.d.ts +32 -0
  34. package/dist/models/OrgData.js +49 -0
  35. package/dist/models/Participant.d.ts +4 -4
  36. package/dist/models/Participant.js +6 -6
  37. package/dist/models/Project.d.ts +4 -4
  38. package/dist/models/Project.js +6 -6
  39. package/dist/models/ProjectAudience.d.ts +18 -0
  40. package/dist/models/ProjectAudience.js +6 -0
  41. package/dist/models/ProjectWithAnalytics.d.ts +4 -4
  42. package/dist/models/ProjectWithAnalytics.js +6 -6
  43. package/dist/models/ResetPasswordRequest.d.ts +38 -0
  44. package/dist/models/ResetPasswordRequest.js +55 -0
  45. package/dist/models/SignupRequest.d.ts +44 -0
  46. package/dist/models/SignupRequest.js +59 -0
  47. package/dist/models/Thread.d.ts +4 -4
  48. package/dist/models/Thread.js +6 -6
  49. package/dist/models/TokenKind.d.ts +26 -0
  50. package/dist/models/TokenKind.js +52 -0
  51. package/dist/models/User.d.ts +58 -7
  52. package/dist/models/User.js +27 -7
  53. package/dist/models/VerifyEmailRequest.d.ts +32 -0
  54. package/dist/models/VerifyEmailRequest.js +51 -0
  55. package/dist/models/Workspace.d.ts +106 -0
  56. package/dist/models/Workspace.js +87 -0
  57. package/dist/models/WorkspaceMember.d.ts +77 -0
  58. package/dist/models/WorkspaceMember.js +78 -0
  59. package/dist/models/WorkspaceMemberRole.d.ts +26 -0
  60. package/dist/models/WorkspaceMemberRole.js +52 -0
  61. package/dist/models/index.d.ts +17 -1
  62. package/dist/models/index.js +17 -1
  63. package/package.json +1 -1
  64. package/src/apis/DefaultApi.ts +661 -129
  65. package/src/models/AttributeKindGroup.ts +15 -15
  66. package/src/models/CreateProjectPreviewInvite201Response.ts +90 -0
  67. package/src/models/CreateProjectPreviewInviteRequest.ts +81 -0
  68. package/src/models/{ApiProjectsGet200Response.ts → GetProjects200Response.ts} +14 -14
  69. package/src/models/InviteStatus.ts +1 -0
  70. package/src/models/Login200Response.ts +456 -0
  71. package/src/models/Login200ResponseAnyOf.ts +84 -0
  72. package/src/models/Login400Response.ts +105 -0
  73. package/src/models/Login400ResponseAnyOf.ts +91 -0
  74. package/src/models/Login400ResponseAnyOfError.ts +46 -0
  75. package/src/models/LoginRequest.ts +75 -0
  76. package/src/models/ModelFile.ts +15 -15
  77. package/src/models/Moderator.ts +15 -15
  78. package/src/models/Org.ts +10 -93
  79. package/src/models/OrgData.ts +65 -0
  80. package/src/models/Participant.ts +15 -15
  81. package/src/models/Project.ts +15 -15
  82. package/src/models/ProjectAudience.ts +24 -0
  83. package/src/models/ProjectWithAnalytics.ts +15 -15
  84. package/src/models/ResetPasswordRequest.ts +75 -0
  85. package/src/models/SignupRequest.ts +84 -0
  86. package/src/models/Thread.ts +15 -15
  87. package/src/models/TokenKind.ts +54 -0
  88. package/src/models/User.ts +123 -38
  89. package/src/models/VerifyEmailRequest.ts +66 -0
  90. package/src/models/Workspace.ts +214 -0
  91. package/src/models/WorkspaceMember.ts +151 -0
  92. package/src/models/WorkspaceMemberRole.ts +54 -0
  93. package/src/models/index.ts +17 -1
  94. package/dist/models/ApiProjectsGet200Response.d.ts +0 -51
@@ -20,13 +20,6 @@ import {
20
20
  UserToJSON,
21
21
  UserToJSONTyped,
22
22
  } from './User';
23
- import type { Org } from './Org';
24
- import {
25
- OrgFromJSON,
26
- OrgFromJSONTyped,
27
- OrgToJSON,
28
- OrgToJSONTyped,
29
- } from './Org';
30
23
  import type { ProjectFile } from './ProjectFile';
31
24
  import {
32
25
  ProjectFileFromJSON,
@@ -104,6 +97,13 @@ import {
104
97
  InviteToJSON,
105
98
  InviteToJSONTyped,
106
99
  } from './Invite';
100
+ import type { Workspace } from './Workspace';
101
+ import {
102
+ WorkspaceFromJSON,
103
+ WorkspaceFromJSONTyped,
104
+ WorkspaceToJSON,
105
+ WorkspaceToJSONTyped,
106
+ } from './Workspace';
107
107
 
108
108
  /**
109
109
  *
@@ -158,7 +158,7 @@ export interface Project {
158
158
  * @type {string}
159
159
  * @memberof Project
160
160
  */
161
- orgId: string;
161
+ workspaceId: string;
162
162
  /**
163
163
  *
164
164
  * @type {string}
@@ -191,10 +191,10 @@ export interface Project {
191
191
  createdBy?: User;
192
192
  /**
193
193
  *
194
- * @type {Org}
194
+ * @type {Workspace}
195
195
  * @memberof Project
196
196
  */
197
- org?: Org;
197
+ workspace?: Workspace;
198
198
  /**
199
199
  *
200
200
  * @type {Moderator}
@@ -251,7 +251,7 @@ export function instanceOfProject(value: object): value is Project {
251
251
  if (!('name' in value) || value['name'] === undefined) return false;
252
252
  if (!('status' in value) || value['status'] === undefined) return false;
253
253
  if (!('createdById' in value) || value['createdById'] === undefined) return false;
254
- if (!('orgId' in value) || value['orgId'] === undefined) return false;
254
+ if (!('workspaceId' in value) || value['workspaceId'] === undefined) return false;
255
255
  if (!('moderatorId' in value) || value['moderatorId'] === undefined) return false;
256
256
  if (!('config' in value) || value['config'] === undefined) return false;
257
257
  if (!('conversationConfig' in value) || value['conversationConfig'] === undefined) return false;
@@ -275,13 +275,13 @@ export function ProjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): P
275
275
  'description': json['description'] == null ? undefined : json['description'],
276
276
  'status': ProjectStatusFromJSON(json['status']),
277
277
  'createdById': json['createdById'],
278
- 'orgId': json['orgId'],
278
+ 'workspaceId': json['workspaceId'],
279
279
  'moderatorId': json['moderatorId'],
280
280
  'config': ProjectConfigFromJSON(json['config']),
281
281
  'conversationConfig': ProjectConversationConfigFromJSON(json['conversationConfig']),
282
282
  'analysis': json['analysis'] == null ? undefined : ProjectAnalysisFromJSON(json['analysis']),
283
283
  'createdBy': json['createdBy'] == null ? undefined : UserFromJSON(json['createdBy']),
284
- 'org': json['org'] == null ? undefined : OrgFromJSON(json['org']),
284
+ 'workspace': json['workspace'] == null ? undefined : WorkspaceFromJSON(json['workspace']),
285
285
  'moderator': json['moderator'] == null ? undefined : ModeratorFromJSON(json['moderator']),
286
286
  'invites': json['invites'] == null ? undefined : ((json['invites'] as Array<any>).map(InviteFromJSON)),
287
287
  'chatSessions': json['chatSessions'] == null ? undefined : ((json['chatSessions'] as Array<any>).map(ChatSessionFromJSON)),
@@ -310,13 +310,13 @@ export function ProjectToJSONTyped(value?: Project | null, ignoreDiscriminator:
310
310
  'description': value['description'],
311
311
  'status': ProjectStatusToJSON(value['status']),
312
312
  'createdById': value['createdById'],
313
- 'orgId': value['orgId'],
313
+ 'workspaceId': value['workspaceId'],
314
314
  'moderatorId': value['moderatorId'],
315
315
  'config': ProjectConfigToJSON(value['config']),
316
316
  'conversationConfig': ProjectConversationConfigToJSON(value['conversationConfig']),
317
317
  'analysis': ProjectAnalysisToJSON(value['analysis']),
318
318
  'createdBy': UserToJSON(value['createdBy']),
319
- 'org': OrgToJSON(value['org']),
319
+ 'workspace': WorkspaceToJSON(value['workspace']),
320
320
  'moderator': ModeratorToJSON(value['moderator']),
321
321
  'invites': value['invites'] == null ? undefined : ((value['invites'] as Array<any>).map(InviteToJSON)),
322
322
  'chatSessions': value['chatSessions'] == null ? undefined : ((value['chatSessions'] as Array<any>).map(ChatSessionToJSON)),
@@ -40,6 +40,18 @@ export interface ProjectAudience {
40
40
  * @memberof ProjectAudience
41
41
  */
42
42
  sampleSize: number;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof ProjectAudience
47
+ */
48
+ inviteTitle?: string;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof ProjectAudience
53
+ */
54
+ inviteDescription?: string;
43
55
  /**
44
56
  *
45
57
  * @type {Array<ParticipantCreate>}
@@ -52,6 +64,12 @@ export interface ProjectAudience {
52
64
  * @memberof ProjectAudience
53
65
  */
54
66
  panelSettings?: PanelSettings | null;
67
+ /**
68
+ *
69
+ * @type {boolean}
70
+ * @memberof ProjectAudience
71
+ */
72
+ usePublicLink?: boolean;
55
73
  }
56
74
 
57
75
  /**
@@ -73,8 +91,11 @@ export function ProjectAudienceFromJSONTyped(json: any, ignoreDiscriminator: boo
73
91
  return {
74
92
 
75
93
  'sampleSize': json['sampleSize'],
94
+ 'inviteTitle': json['inviteTitle'] == null ? undefined : json['inviteTitle'],
95
+ 'inviteDescription': json['inviteDescription'] == null ? undefined : json['inviteDescription'],
76
96
  'participants': json['participants'] == null ? undefined : ((json['participants'] as Array<any>).map(ParticipantCreateFromJSON)),
77
97
  'panelSettings': json['panelSettings'] == null ? undefined : PanelSettingsFromJSON(json['panelSettings']),
98
+ 'usePublicLink': json['usePublicLink'] == null ? undefined : json['usePublicLink'],
78
99
  };
79
100
  }
80
101
 
@@ -90,8 +111,11 @@ export function ProjectAudienceToJSONTyped(value?: ProjectAudience | null, ignor
90
111
  return {
91
112
 
92
113
  'sampleSize': value['sampleSize'],
114
+ 'inviteTitle': value['inviteTitle'],
115
+ 'inviteDescription': value['inviteDescription'],
93
116
  'participants': value['participants'] == null ? undefined : ((value['participants'] as Array<any>).map(ParticipantCreateToJSON)),
94
117
  'panelSettings': PanelSettingsToJSON(value['panelSettings']),
118
+ 'usePublicLink': value['usePublicLink'],
95
119
  };
96
120
  }
97
121
 
@@ -27,13 +27,6 @@ import {
27
27
  UserToJSON,
28
28
  UserToJSONTyped,
29
29
  } from './User';
30
- import type { Org } from './Org';
31
- import {
32
- OrgFromJSON,
33
- OrgFromJSONTyped,
34
- OrgToJSON,
35
- OrgToJSONTyped,
36
- } from './Org';
37
30
  import type { ProjectFile } from './ProjectFile';
38
31
  import {
39
32
  ProjectFileFromJSON,
@@ -104,6 +97,13 @@ import {
104
97
  AttributeKindGroupToJSON,
105
98
  AttributeKindGroupToJSONTyped,
106
99
  } from './AttributeKindGroup';
100
+ import type { Workspace } from './Workspace';
101
+ import {
102
+ WorkspaceFromJSON,
103
+ WorkspaceFromJSONTyped,
104
+ WorkspaceToJSON,
105
+ WorkspaceToJSONTyped,
106
+ } from './Workspace';
107
107
 
108
108
  /**
109
109
  *
@@ -158,7 +158,7 @@ export interface ProjectWithAnalytics {
158
158
  * @type {string}
159
159
  * @memberof ProjectWithAnalytics
160
160
  */
161
- orgId: string;
161
+ workspaceId: string;
162
162
  /**
163
163
  *
164
164
  * @type {string}
@@ -191,10 +191,10 @@ export interface ProjectWithAnalytics {
191
191
  createdBy?: User;
192
192
  /**
193
193
  *
194
- * @type {Org}
194
+ * @type {Workspace}
195
195
  * @memberof ProjectWithAnalytics
196
196
  */
197
- org?: Org;
197
+ workspace?: Workspace;
198
198
  /**
199
199
  *
200
200
  * @type {Moderator}
@@ -251,7 +251,7 @@ export function instanceOfProjectWithAnalytics(value: object): value is ProjectW
251
251
  if (!('name' in value) || value['name'] === undefined) return false;
252
252
  if (!('status' in value) || value['status'] === undefined) return false;
253
253
  if (!('createdById' in value) || value['createdById'] === undefined) return false;
254
- if (!('orgId' in value) || value['orgId'] === undefined) return false;
254
+ if (!('workspaceId' in value) || value['workspaceId'] === undefined) return false;
255
255
  if (!('moderatorId' in value) || value['moderatorId'] === undefined) return false;
256
256
  if (!('config' in value) || value['config'] === undefined) return false;
257
257
  if (!('conversationConfig' in value) || value['conversationConfig'] === undefined) return false;
@@ -276,13 +276,13 @@ export function ProjectWithAnalyticsFromJSONTyped(json: any, ignoreDiscriminator
276
276
  'description': json['description'] == null ? undefined : json['description'],
277
277
  'status': ProjectStatusFromJSON(json['status']),
278
278
  'createdById': json['createdById'],
279
- 'orgId': json['orgId'],
279
+ 'workspaceId': json['workspaceId'],
280
280
  'moderatorId': json['moderatorId'],
281
281
  'config': ProjectConfigFromJSON(json['config']),
282
282
  'conversationConfig': ProjectConversationConfigFromJSON(json['conversationConfig']),
283
283
  'analysis': json['analysis'] == null ? undefined : ProjectAnalysisFromJSON(json['analysis']),
284
284
  'createdBy': json['createdBy'] == null ? undefined : UserFromJSON(json['createdBy']),
285
- 'org': json['org'] == null ? undefined : OrgFromJSON(json['org']),
285
+ 'workspace': json['workspace'] == null ? undefined : WorkspaceFromJSON(json['workspace']),
286
286
  'moderator': json['moderator'] == null ? undefined : ModeratorFromJSON(json['moderator']),
287
287
  'invites': ((json['invites'] as Array<any>).map(InviteWithAnalyticsFromJSON)),
288
288
  'chatSessions': json['chatSessions'] == null ? undefined : ((json['chatSessions'] as Array<any>).map(ChatSessionFromJSON)),
@@ -311,13 +311,13 @@ export function ProjectWithAnalyticsToJSONTyped(value?: ProjectWithAnalytics | n
311
311
  'description': value['description'],
312
312
  'status': ProjectStatusToJSON(value['status']),
313
313
  'createdById': value['createdById'],
314
- 'orgId': value['orgId'],
314
+ 'workspaceId': value['workspaceId'],
315
315
  'moderatorId': value['moderatorId'],
316
316
  'config': ProjectConfigToJSON(value['config']),
317
317
  'conversationConfig': ProjectConversationConfigToJSON(value['conversationConfig']),
318
318
  'analysis': ProjectAnalysisToJSON(value['analysis']),
319
319
  'createdBy': UserToJSON(value['createdBy']),
320
- 'org': OrgToJSON(value['org']),
320
+ 'workspace': WorkspaceToJSON(value['workspace']),
321
321
  'moderator': ModeratorToJSON(value['moderator']),
322
322
  'invites': ((value['invites'] as Array<any>).map(InviteWithAnalyticsToJSON)),
323
323
  'chatSessions': value['chatSessions'] == null ? undefined : ((value['chatSessions'] as Array<any>).map(ChatSessionToJSON)),
@@ -0,0 +1,75 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Fastify Template API
5
+ * API documentation using Swagger
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ResetPasswordRequest
20
+ */
21
+ export interface ResetPasswordRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ResetPasswordRequest
26
+ */
27
+ token: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ResetPasswordRequest
32
+ */
33
+ newPassword: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the ResetPasswordRequest interface.
38
+ */
39
+ export function instanceOfResetPasswordRequest(value: object): value is ResetPasswordRequest {
40
+ if (!('token' in value) || value['token'] === undefined) return false;
41
+ if (!('newPassword' in value) || value['newPassword'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function ResetPasswordRequestFromJSON(json: any): ResetPasswordRequest {
46
+ return ResetPasswordRequestFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function ResetPasswordRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResetPasswordRequest {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'token': json['token'],
56
+ 'newPassword': json['newPassword'],
57
+ };
58
+ }
59
+
60
+ export function ResetPasswordRequestToJSON(json: any): ResetPasswordRequest {
61
+ return ResetPasswordRequestToJSONTyped(json, false);
62
+ }
63
+
64
+ export function ResetPasswordRequestToJSONTyped(value?: ResetPasswordRequest | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'token': value['token'],
72
+ 'newPassword': value['newPassword'],
73
+ };
74
+ }
75
+
@@ -0,0 +1,84 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Fastify Template API
5
+ * API documentation using Swagger
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface SignupRequest
20
+ */
21
+ export interface SignupRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof SignupRequest
26
+ */
27
+ email: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof SignupRequest
32
+ */
33
+ password: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof SignupRequest
38
+ */
39
+ name: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the SignupRequest interface.
44
+ */
45
+ export function instanceOfSignupRequest(value: object): value is SignupRequest {
46
+ if (!('email' in value) || value['email'] === undefined) return false;
47
+ if (!('password' in value) || value['password'] === undefined) return false;
48
+ if (!('name' in value) || value['name'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function SignupRequestFromJSON(json: any): SignupRequest {
53
+ return SignupRequestFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function SignupRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SignupRequest {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'email': json['email'],
63
+ 'password': json['password'],
64
+ 'name': json['name'],
65
+ };
66
+ }
67
+
68
+ export function SignupRequestToJSON(json: any): SignupRequest {
69
+ return SignupRequestToJSONTyped(json, false);
70
+ }
71
+
72
+ export function SignupRequestToJSONTyped(value?: SignupRequest | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'email': value['email'],
80
+ 'password': value['password'],
81
+ 'name': value['name'],
82
+ };
83
+ }
84
+
@@ -34,13 +34,6 @@ import {
34
34
  UserToJSON,
35
35
  UserToJSONTyped,
36
36
  } from './User';
37
- import type { Org } from './Org';
38
- import {
39
- OrgFromJSON,
40
- OrgFromJSONTyped,
41
- OrgToJSON,
42
- OrgToJSONTyped,
43
- } from './Org';
44
37
  import type { ThreadMetadata } from './ThreadMetadata';
45
38
  import {
46
39
  ThreadMetadataFromJSON,
@@ -55,6 +48,13 @@ import {
55
48
  ThreadFileToJSON,
56
49
  ThreadFileToJSONTyped,
57
50
  } from './ThreadFile';
51
+ import type { Workspace } from './Workspace';
52
+ import {
53
+ WorkspaceFromJSON,
54
+ WorkspaceFromJSONTyped,
55
+ WorkspaceToJSON,
56
+ WorkspaceToJSONTyped,
57
+ } from './Workspace';
58
58
 
59
59
  /**
60
60
  *
@@ -115,7 +115,7 @@ export interface Thread {
115
115
  * @type {string}
116
116
  * @memberof Thread
117
117
  */
118
- orgId: string;
118
+ workspaceId: string;
119
119
  /**
120
120
  *
121
121
  * @type {string}
@@ -130,10 +130,10 @@ export interface Thread {
130
130
  createdBy?: User;
131
131
  /**
132
132
  *
133
- * @type {Org}
133
+ * @type {Workspace}
134
134
  * @memberof Thread
135
135
  */
136
- org?: Org;
136
+ workspace?: Workspace;
137
137
  /**
138
138
  *
139
139
  * @type {Project}
@@ -159,7 +159,7 @@ export function instanceOfThread(value: object): value is Thread {
159
159
  if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
160
160
  if (!('name' in value) || value['name'] === undefined) return false;
161
161
  if (!('createdById' in value) || value['createdById'] === undefined) return false;
162
- if (!('orgId' in value) || value['orgId'] === undefined) return false;
162
+ if (!('workspaceId' in value) || value['workspaceId'] === undefined) return false;
163
163
  return true;
164
164
  }
165
165
 
@@ -181,10 +181,10 @@ export function ThreadFromJSONTyped(json: any, ignoreDiscriminator: boolean): Th
181
181
  'description': json['description'] == null ? undefined : json['description'],
182
182
  'metadata': json['metadata'] == null ? undefined : ThreadMetadataFromJSON(json['metadata']),
183
183
  'createdById': json['createdById'],
184
- 'orgId': json['orgId'],
184
+ 'workspaceId': json['workspaceId'],
185
185
  'projectId': json['projectId'] == null ? undefined : json['projectId'],
186
186
  'createdBy': json['createdBy'] == null ? undefined : UserFromJSON(json['createdBy']),
187
- 'org': json['org'] == null ? undefined : OrgFromJSON(json['org']),
187
+ 'workspace': json['workspace'] == null ? undefined : WorkspaceFromJSON(json['workspace']),
188
188
  'project': json['project'] == null ? undefined : ProjectFromJSON(json['project']),
189
189
  'threadFiles': json['threadFiles'] == null ? undefined : ((json['threadFiles'] as Array<any>).map(ThreadFileFromJSON)),
190
190
  };
@@ -209,10 +209,10 @@ export function ThreadToJSONTyped(value?: Thread | null, ignoreDiscriminator: bo
209
209
  'description': value['description'],
210
210
  'metadata': ThreadMetadataToJSON(value['metadata']),
211
211
  'createdById': value['createdById'],
212
- 'orgId': value['orgId'],
212
+ 'workspaceId': value['workspaceId'],
213
213
  'projectId': value['projectId'],
214
214
  'createdBy': UserToJSON(value['createdBy']),
215
- 'org': OrgToJSON(value['org']),
215
+ 'workspace': WorkspaceToJSON(value['workspace']),
216
216
  'project': ProjectToJSON(value['project']),
217
217
  'threadFiles': value['threadFiles'] == null ? undefined : ((value['threadFiles'] as Array<any>).map(ThreadFileToJSON)),
218
218
  };
@@ -0,0 +1,54 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Fastify Template API
5
+ * API documentation using Swagger
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ /**
17
+ *
18
+ * @export
19
+ */
20
+ export const TokenKind = {
21
+ EmailVerification: 'email_verification',
22
+ MagicLink: 'magic_link',
23
+ PasswordReset: 'password_reset'
24
+ } as const;
25
+ export type TokenKind = typeof TokenKind[keyof typeof TokenKind];
26
+
27
+
28
+ export function instanceOfTokenKind(value: any): boolean {
29
+ for (const key in TokenKind) {
30
+ if (Object.prototype.hasOwnProperty.call(TokenKind, key)) {
31
+ if (TokenKind[key as keyof typeof TokenKind] === value) {
32
+ return true;
33
+ }
34
+ }
35
+ }
36
+ return false;
37
+ }
38
+
39
+ export function TokenKindFromJSON(json: any): TokenKind {
40
+ return TokenKindFromJSONTyped(json, false);
41
+ }
42
+
43
+ export function TokenKindFromJSONTyped(json: any, ignoreDiscriminator: boolean): TokenKind {
44
+ return json as TokenKind;
45
+ }
46
+
47
+ export function TokenKindToJSON(value?: TokenKind | null): any {
48
+ return value as any;
49
+ }
50
+
51
+ export function TokenKindToJSONTyped(value: any, ignoreDiscriminator: boolean): TokenKind {
52
+ return value as TokenKind;
53
+ }
54
+