keplar-api 0.0.29 → 0.0.30

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 (135) hide show
  1. package/.openapi-generator/FILES +14 -12
  2. package/README.md +2 -2
  3. package/dist/apis/DefaultApi.d.ts +111 -53
  4. package/dist/apis/DefaultApi.js +610 -322
  5. package/dist/models/AnalyzeNotebook200Response.d.ts +45 -0
  6. package/dist/models/AnalyzeNotebook200Response.js +58 -0
  7. package/dist/models/AnalyzeNotebookRequest.d.ts +52 -0
  8. package/dist/models/AnalyzeNotebookRequest.js +63 -0
  9. package/dist/models/ApiInvitesIdResponsesResponseIdPutRequest.d.ts +1 -14
  10. package/dist/models/ApiInvitesIdResponsesResponseIdPutRequest.js +3 -6
  11. package/dist/models/ApiProjectsProjectIdSearchTranscriptsPostRequest.d.ts +0 -6
  12. package/dist/models/ApiProjectsProjectIdSearchTranscriptsPostRequest.js +0 -2
  13. package/dist/models/Artifact.d.ts +2 -2
  14. package/dist/models/Artifact.js +1 -3
  15. package/dist/models/ArtifactDataReport.d.ts +7 -0
  16. package/dist/models/ArtifactDataReport.js +3 -0
  17. package/dist/models/ArtifactDataReportProjectsInner.d.ts +44 -0
  18. package/dist/models/ArtifactDataReportProjectsInner.js +59 -0
  19. package/dist/models/ArtifactVersionGroup.d.ts +9 -2
  20. package/dist/models/ArtifactVersionGroup.js +4 -3
  21. package/dist/models/CreateArtifactRequest.d.ts +0 -20
  22. package/dist/models/CreateArtifactRequest.js +0 -8
  23. package/dist/models/CreateNotebookRequest.d.ts +44 -0
  24. package/dist/models/CreateNotebookRequest.js +57 -0
  25. package/dist/models/DeleteNotebookArtifactVersionGroup200Response.d.ts +38 -0
  26. package/dist/models/DeleteNotebookArtifactVersionGroup200Response.js +55 -0
  27. package/dist/models/FeatureConfig.d.ts +0 -6
  28. package/dist/models/FeatureConfig.js +0 -2
  29. package/dist/models/InviteResponse.d.ts +0 -7
  30. package/dist/models/InviteResponse.js +0 -3
  31. package/dist/models/InviteResponseMetadata.d.ts +0 -7
  32. package/dist/models/InviteResponseMetadata.js +0 -3
  33. package/dist/models/InviteResponseWithCallSummary.d.ts +0 -7
  34. package/dist/models/InviteResponseWithCallSummary.js +0 -3
  35. package/dist/models/Login200Response.d.ts +7 -0
  36. package/dist/models/Login200Response.js +3 -0
  37. package/dist/models/Notebook.d.ts +103 -0
  38. package/dist/models/Notebook.js +90 -0
  39. package/dist/models/NotebookArtifactVersionGroup.d.ts +77 -0
  40. package/dist/models/NotebookArtifactVersionGroup.js +76 -0
  41. package/dist/models/NotebookArtifactVersionGroupMetadata.d.ts +33 -0
  42. package/dist/models/NotebookArtifactVersionGroupMetadata.js +50 -0
  43. package/dist/models/NotebookArtifactVersionGroupVisibility.d.ts +25 -0
  44. package/dist/models/NotebookArtifactVersionGroupVisibility.js +51 -0
  45. package/dist/models/NotebookConfig.d.ts +52 -0
  46. package/dist/models/NotebookConfig.js +65 -0
  47. package/dist/models/NotebookMode.d.ts +25 -0
  48. package/dist/models/NotebookMode.js +51 -0
  49. package/dist/models/Thread.d.ts +13 -0
  50. package/dist/models/Thread.js +5 -0
  51. package/dist/models/UpdateNotebookRequest.d.ts +45 -0
  52. package/dist/models/UpdateNotebookRequest.js +54 -0
  53. package/dist/models/UpdateNotebookRequestConfig.d.ts +52 -0
  54. package/dist/models/UpdateNotebookRequestConfig.js +65 -0
  55. package/dist/models/UpdateNotebookSourcesRequest.d.ts +46 -0
  56. package/dist/models/UpdateNotebookSourcesRequest.js +63 -0
  57. package/dist/models/User.d.ts +7 -0
  58. package/dist/models/User.js +3 -0
  59. package/dist/models/UserData.d.ts +0 -6
  60. package/dist/models/UserData.js +0 -2
  61. package/dist/models/UserWithConfig.d.ts +7 -0
  62. package/dist/models/UserWithConfig.js +3 -0
  63. package/dist/models/Workspace.d.ts +7 -0
  64. package/dist/models/Workspace.js +3 -0
  65. package/dist/models/index.d.ts +14 -12
  66. package/dist/models/index.js +14 -12
  67. package/package.json +1 -1
  68. package/src/apis/DefaultApi.ts +513 -243
  69. package/src/models/AnalyzeNotebook200Response.ts +91 -0
  70. package/src/models/AnalyzeNotebookRequest.ts +93 -0
  71. package/src/models/ApiInvitesIdResponsesResponseIdPutRequest.ts +3 -25
  72. package/src/models/ApiProjectsProjectIdSearchTranscriptsPostRequest.ts +0 -8
  73. package/src/models/Artifact.ts +3 -4
  74. package/src/models/ArtifactDataReport.ts +16 -0
  75. package/src/models/ArtifactDataReportProjectsInner.ts +84 -0
  76. package/src/models/ArtifactVersionGroup.ts +18 -4
  77. package/src/models/CreateArtifactRequest.ts +0 -39
  78. package/src/models/CreateNotebookRequest.ts +83 -0
  79. package/src/models/DeleteNotebookArtifactVersionGroup200Response.ts +75 -0
  80. package/src/models/FeatureConfig.ts +0 -8
  81. package/src/models/InviteResponse.ts +0 -15
  82. package/src/models/InviteResponseMetadata.ts +0 -16
  83. package/src/models/InviteResponseWithCallSummary.ts +0 -15
  84. package/src/models/Login200Response.ts +15 -0
  85. package/src/models/Notebook.ts +196 -0
  86. package/src/models/NotebookArtifactVersionGroup.ts +148 -0
  87. package/src/models/NotebookArtifactVersionGroupMetadata.ts +75 -0
  88. package/src/models/NotebookArtifactVersionGroupVisibility.ts +53 -0
  89. package/src/models/NotebookConfig.ts +94 -0
  90. package/src/models/NotebookMode.ts +53 -0
  91. package/src/models/Thread.ts +23 -0
  92. package/src/models/UpdateNotebookRequest.ts +89 -0
  93. package/src/models/UpdateNotebookRequestConfig.ts +94 -0
  94. package/src/models/UpdateNotebookSourcesRequest.ts +86 -0
  95. package/src/models/User.ts +15 -0
  96. package/src/models/UserData.ts +0 -8
  97. package/src/models/UserWithConfig.ts +15 -0
  98. package/src/models/Workspace.ts +15 -0
  99. package/src/models/index.ts +14 -12
  100. package/dist/models/DummyUser.d.ts +0 -44
  101. package/dist/models/DummyUser.js +0 -59
  102. package/dist/models/ImpersonateUser200Response.d.ts +0 -39
  103. package/dist/models/ImpersonateUser200Response.js +0 -56
  104. package/dist/models/ImpersonateUserRequest.d.ts +0 -32
  105. package/dist/models/ImpersonateUserRequest.js +0 -51
  106. package/dist/models/ImpersonatedUser.d.ts +0 -44
  107. package/dist/models/ImpersonatedUser.js +0 -59
  108. package/dist/models/InviteResponseEvaluationEnum.d.ts +0 -27
  109. package/dist/models/InviteResponseEvaluationEnum.js +0 -53
  110. package/dist/models/InviteResponseEvaluationMetadata.d.ts +0 -72
  111. package/dist/models/InviteResponseEvaluationMetadata.js +0 -71
  112. package/dist/models/InviteUserRequest.d.ts +0 -38
  113. package/dist/models/InviteUserRequest.js +0 -55
  114. package/dist/models/SearchUsers200Response.d.ts +0 -33
  115. package/dist/models/SearchUsers200Response.js +0 -52
  116. package/dist/models/SearchUsersRequest.d.ts +0 -38
  117. package/dist/models/SearchUsersRequest.js +0 -53
  118. package/dist/models/UserOrg.d.ts +0 -38
  119. package/dist/models/UserOrg.js +0 -55
  120. package/dist/models/UserProject.d.ts +0 -38
  121. package/dist/models/UserProject.js +0 -55
  122. package/dist/models/UserSearchResult.d.ts +0 -83
  123. package/dist/models/UserSearchResult.js +0 -86
  124. package/src/models/DummyUser.ts +0 -84
  125. package/src/models/ImpersonateUser200Response.ts +0 -83
  126. package/src/models/ImpersonateUserRequest.ts +0 -66
  127. package/src/models/ImpersonatedUser.ts +0 -84
  128. package/src/models/InviteResponseEvaluationEnum.ts +0 -55
  129. package/src/models/InviteResponseEvaluationMetadata.ts +0 -126
  130. package/src/models/InviteUserRequest.ts +0 -75
  131. package/src/models/SearchUsers200Response.ts +0 -74
  132. package/src/models/SearchUsersRequest.ts +0 -74
  133. package/src/models/UserOrg.ts +0 -75
  134. package/src/models/UserProject.ts +0 -75
  135. package/src/models/UserSearchResult.ts +0 -162
@@ -0,0 +1,53 @@
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 NotebookArtifactVersionGroupVisibility = {
21
+ Starred: 'starred',
22
+ Archived: 'archived'
23
+ } as const;
24
+ export type NotebookArtifactVersionGroupVisibility = typeof NotebookArtifactVersionGroupVisibility[keyof typeof NotebookArtifactVersionGroupVisibility];
25
+
26
+
27
+ export function instanceOfNotebookArtifactVersionGroupVisibility(value: any): boolean {
28
+ for (const key in NotebookArtifactVersionGroupVisibility) {
29
+ if (Object.prototype.hasOwnProperty.call(NotebookArtifactVersionGroupVisibility, key)) {
30
+ if (NotebookArtifactVersionGroupVisibility[key as keyof typeof NotebookArtifactVersionGroupVisibility] === value) {
31
+ return true;
32
+ }
33
+ }
34
+ }
35
+ return false;
36
+ }
37
+
38
+ export function NotebookArtifactVersionGroupVisibilityFromJSON(json: any): NotebookArtifactVersionGroupVisibility {
39
+ return NotebookArtifactVersionGroupVisibilityFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function NotebookArtifactVersionGroupVisibilityFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotebookArtifactVersionGroupVisibility {
43
+ return json as NotebookArtifactVersionGroupVisibility;
44
+ }
45
+
46
+ export function NotebookArtifactVersionGroupVisibilityToJSON(value?: NotebookArtifactVersionGroupVisibility | null): any {
47
+ return value as any;
48
+ }
49
+
50
+ export function NotebookArtifactVersionGroupVisibilityToJSONTyped(value: any, ignoreDiscriminator: boolean): NotebookArtifactVersionGroupVisibility {
51
+ return value as NotebookArtifactVersionGroupVisibility;
52
+ }
53
+
@@ -0,0 +1,94 @@
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 NotebookConfig
20
+ */
21
+ export interface NotebookConfig {
22
+ /**
23
+ * Array of project IDs selected as sources
24
+ * @type {Array<string>}
25
+ * @memberof NotebookConfig
26
+ */
27
+ sources: Array<string>;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof NotebookConfig
32
+ */
33
+ mode: NotebookConfigModeEnum;
34
+ /**
35
+ * Additional settings for future extensibility
36
+ * @type {object}
37
+ * @memberof NotebookConfig
38
+ */
39
+ settings?: object;
40
+ }
41
+
42
+
43
+ /**
44
+ * @export
45
+ */
46
+ export const NotebookConfigModeEnum = {
47
+ Report: 'report',
48
+ Chat: 'chat'
49
+ } as const;
50
+ export type NotebookConfigModeEnum = typeof NotebookConfigModeEnum[keyof typeof NotebookConfigModeEnum];
51
+
52
+
53
+ /**
54
+ * Check if a given object implements the NotebookConfig interface.
55
+ */
56
+ export function instanceOfNotebookConfig(value: object): value is NotebookConfig {
57
+ if (!('sources' in value) || value['sources'] === undefined) return false;
58
+ if (!('mode' in value) || value['mode'] === undefined) return false;
59
+ return true;
60
+ }
61
+
62
+ export function NotebookConfigFromJSON(json: any): NotebookConfig {
63
+ return NotebookConfigFromJSONTyped(json, false);
64
+ }
65
+
66
+ export function NotebookConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotebookConfig {
67
+ if (json == null) {
68
+ return json;
69
+ }
70
+ return {
71
+
72
+ 'sources': json['sources'],
73
+ 'mode': json['mode'],
74
+ 'settings': json['settings'] == null ? undefined : json['settings'],
75
+ };
76
+ }
77
+
78
+ export function NotebookConfigToJSON(json: any): NotebookConfig {
79
+ return NotebookConfigToJSONTyped(json, false);
80
+ }
81
+
82
+ export function NotebookConfigToJSONTyped(value?: NotebookConfig | null, ignoreDiscriminator: boolean = false): any {
83
+ if (value == null) {
84
+ return value;
85
+ }
86
+
87
+ return {
88
+
89
+ 'sources': value['sources'],
90
+ 'mode': value['mode'],
91
+ 'settings': value['settings'],
92
+ };
93
+ }
94
+
@@ -0,0 +1,53 @@
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 NotebookMode = {
21
+ Report: 'report',
22
+ Chat: 'chat'
23
+ } as const;
24
+ export type NotebookMode = typeof NotebookMode[keyof typeof NotebookMode];
25
+
26
+
27
+ export function instanceOfNotebookMode(value: any): boolean {
28
+ for (const key in NotebookMode) {
29
+ if (Object.prototype.hasOwnProperty.call(NotebookMode, key)) {
30
+ if (NotebookMode[key as keyof typeof NotebookMode] === value) {
31
+ return true;
32
+ }
33
+ }
34
+ }
35
+ return false;
36
+ }
37
+
38
+ export function NotebookModeFromJSON(json: any): NotebookMode {
39
+ return NotebookModeFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function NotebookModeFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotebookMode {
43
+ return json as NotebookMode;
44
+ }
45
+
46
+ export function NotebookModeToJSON(value?: NotebookMode | null): any {
47
+ return value as any;
48
+ }
49
+
50
+ export function NotebookModeToJSONTyped(value: any, ignoreDiscriminator: boolean): NotebookMode {
51
+ return value as NotebookMode;
52
+ }
53
+
@@ -34,6 +34,13 @@ import {
34
34
  UserToJSON,
35
35
  UserToJSONTyped,
36
36
  } from './User';
37
+ import type { Notebook } from './Notebook';
38
+ import {
39
+ NotebookFromJSON,
40
+ NotebookFromJSONTyped,
41
+ NotebookToJSON,
42
+ NotebookToJSONTyped,
43
+ } from './Notebook';
37
44
  import type { ThreadMetadata } from './ThreadMetadata';
38
45
  import {
39
46
  ThreadMetadataFromJSON,
@@ -122,6 +129,12 @@ export interface Thread {
122
129
  * @memberof Thread
123
130
  */
124
131
  projectId?: string | null;
132
+ /**
133
+ *
134
+ * @type {string}
135
+ * @memberof Thread
136
+ */
137
+ notebookId?: string | null;
125
138
  /**
126
139
  *
127
140
  * @type {User}
@@ -140,6 +153,12 @@ export interface Thread {
140
153
  * @memberof Thread
141
154
  */
142
155
  project?: Project | null;
156
+ /**
157
+ *
158
+ * @type {Notebook}
159
+ * @memberof Thread
160
+ */
161
+ notebook?: Notebook | null;
143
162
  /**
144
163
  *
145
164
  * @type {Array<ThreadFile>}
@@ -183,9 +202,11 @@ export function ThreadFromJSONTyped(json: any, ignoreDiscriminator: boolean): Th
183
202
  'createdById': json['createdById'],
184
203
  'workspaceId': json['workspaceId'],
185
204
  'projectId': json['projectId'] == null ? undefined : json['projectId'],
205
+ 'notebookId': json['notebookId'] == null ? undefined : json['notebookId'],
186
206
  'createdBy': json['createdBy'] == null ? undefined : UserFromJSON(json['createdBy']),
187
207
  'workspace': json['workspace'] == null ? undefined : WorkspaceFromJSON(json['workspace']),
188
208
  'project': json['project'] == null ? undefined : ProjectFromJSON(json['project']),
209
+ 'notebook': json['notebook'] == null ? undefined : NotebookFromJSON(json['notebook']),
189
210
  'threadFiles': json['threadFiles'] == null ? undefined : ((json['threadFiles'] as Array<any>).map(ThreadFileFromJSON)),
190
211
  };
191
212
  }
@@ -211,9 +232,11 @@ export function ThreadToJSONTyped(value?: Thread | null, ignoreDiscriminator: bo
211
232
  'createdById': value['createdById'],
212
233
  'workspaceId': value['workspaceId'],
213
234
  'projectId': value['projectId'],
235
+ 'notebookId': value['notebookId'],
214
236
  'createdBy': UserToJSON(value['createdBy']),
215
237
  'workspace': WorkspaceToJSON(value['workspace']),
216
238
  'project': ProjectToJSON(value['project']),
239
+ 'notebook': NotebookToJSON(value['notebook']),
217
240
  'threadFiles': value['threadFiles'] == null ? undefined : ((value['threadFiles'] as Array<any>).map(ThreadFileToJSON)),
218
241
  };
219
242
  }
@@ -0,0 +1,89 @@
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
+ import type { UpdateNotebookRequestConfig } from './UpdateNotebookRequestConfig';
17
+ import {
18
+ UpdateNotebookRequestConfigFromJSON,
19
+ UpdateNotebookRequestConfigFromJSONTyped,
20
+ UpdateNotebookRequestConfigToJSON,
21
+ UpdateNotebookRequestConfigToJSONTyped,
22
+ } from './UpdateNotebookRequestConfig';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface UpdateNotebookRequest
28
+ */
29
+ export interface UpdateNotebookRequest {
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof UpdateNotebookRequest
34
+ */
35
+ name?: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof UpdateNotebookRequest
40
+ */
41
+ description?: string;
42
+ /**
43
+ *
44
+ * @type {UpdateNotebookRequestConfig}
45
+ * @memberof UpdateNotebookRequest
46
+ */
47
+ config?: UpdateNotebookRequestConfig;
48
+ }
49
+
50
+ /**
51
+ * Check if a given object implements the UpdateNotebookRequest interface.
52
+ */
53
+ export function instanceOfUpdateNotebookRequest(value: object): value is UpdateNotebookRequest {
54
+ return true;
55
+ }
56
+
57
+ export function UpdateNotebookRequestFromJSON(json: any): UpdateNotebookRequest {
58
+ return UpdateNotebookRequestFromJSONTyped(json, false);
59
+ }
60
+
61
+ export function UpdateNotebookRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateNotebookRequest {
62
+ if (json == null) {
63
+ return json;
64
+ }
65
+ return {
66
+
67
+ 'name': json['name'] == null ? undefined : json['name'],
68
+ 'description': json['description'] == null ? undefined : json['description'],
69
+ 'config': json['config'] == null ? undefined : UpdateNotebookRequestConfigFromJSON(json['config']),
70
+ };
71
+ }
72
+
73
+ export function UpdateNotebookRequestToJSON(json: any): UpdateNotebookRequest {
74
+ return UpdateNotebookRequestToJSONTyped(json, false);
75
+ }
76
+
77
+ export function UpdateNotebookRequestToJSONTyped(value?: UpdateNotebookRequest | null, ignoreDiscriminator: boolean = false): any {
78
+ if (value == null) {
79
+ return value;
80
+ }
81
+
82
+ return {
83
+
84
+ 'name': value['name'],
85
+ 'description': value['description'],
86
+ 'config': UpdateNotebookRequestConfigToJSON(value['config']),
87
+ };
88
+ }
89
+
@@ -0,0 +1,94 @@
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 UpdateNotebookRequestConfig
20
+ */
21
+ export interface UpdateNotebookRequestConfig {
22
+ /**
23
+ * Array of project IDs selected as sources
24
+ * @type {Array<string>}
25
+ * @memberof UpdateNotebookRequestConfig
26
+ */
27
+ sources: Array<string>;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof UpdateNotebookRequestConfig
32
+ */
33
+ mode: UpdateNotebookRequestConfigModeEnum;
34
+ /**
35
+ * Additional settings for future extensibility
36
+ * @type {object}
37
+ * @memberof UpdateNotebookRequestConfig
38
+ */
39
+ settings?: object;
40
+ }
41
+
42
+
43
+ /**
44
+ * @export
45
+ */
46
+ export const UpdateNotebookRequestConfigModeEnum = {
47
+ Report: 'report',
48
+ Chat: 'chat'
49
+ } as const;
50
+ export type UpdateNotebookRequestConfigModeEnum = typeof UpdateNotebookRequestConfigModeEnum[keyof typeof UpdateNotebookRequestConfigModeEnum];
51
+
52
+
53
+ /**
54
+ * Check if a given object implements the UpdateNotebookRequestConfig interface.
55
+ */
56
+ export function instanceOfUpdateNotebookRequestConfig(value: object): value is UpdateNotebookRequestConfig {
57
+ if (!('sources' in value) || value['sources'] === undefined) return false;
58
+ if (!('mode' in value) || value['mode'] === undefined) return false;
59
+ return true;
60
+ }
61
+
62
+ export function UpdateNotebookRequestConfigFromJSON(json: any): UpdateNotebookRequestConfig {
63
+ return UpdateNotebookRequestConfigFromJSONTyped(json, false);
64
+ }
65
+
66
+ export function UpdateNotebookRequestConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateNotebookRequestConfig {
67
+ if (json == null) {
68
+ return json;
69
+ }
70
+ return {
71
+
72
+ 'sources': json['sources'],
73
+ 'mode': json['mode'],
74
+ 'settings': json['settings'] == null ? undefined : json['settings'],
75
+ };
76
+ }
77
+
78
+ export function UpdateNotebookRequestConfigToJSON(json: any): UpdateNotebookRequestConfig {
79
+ return UpdateNotebookRequestConfigToJSONTyped(json, false);
80
+ }
81
+
82
+ export function UpdateNotebookRequestConfigToJSONTyped(value?: UpdateNotebookRequestConfig | null, ignoreDiscriminator: boolean = false): any {
83
+ if (value == null) {
84
+ return value;
85
+ }
86
+
87
+ return {
88
+
89
+ 'sources': value['sources'],
90
+ 'mode': value['mode'],
91
+ 'settings': value['settings'],
92
+ };
93
+ }
94
+
@@ -0,0 +1,86 @@
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 UpdateNotebookSourcesRequest
20
+ */
21
+ export interface UpdateNotebookSourcesRequest {
22
+ /**
23
+ *
24
+ * @type {Array<string>}
25
+ * @memberof UpdateNotebookSourcesRequest
26
+ */
27
+ projectIds: Array<string>;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof UpdateNotebookSourcesRequest
32
+ */
33
+ action: UpdateNotebookSourcesRequestActionEnum;
34
+ }
35
+
36
+
37
+ /**
38
+ * @export
39
+ */
40
+ export const UpdateNotebookSourcesRequestActionEnum = {
41
+ Add: 'add',
42
+ Remove: 'remove'
43
+ } as const;
44
+ export type UpdateNotebookSourcesRequestActionEnum = typeof UpdateNotebookSourcesRequestActionEnum[keyof typeof UpdateNotebookSourcesRequestActionEnum];
45
+
46
+
47
+ /**
48
+ * Check if a given object implements the UpdateNotebookSourcesRequest interface.
49
+ */
50
+ export function instanceOfUpdateNotebookSourcesRequest(value: object): value is UpdateNotebookSourcesRequest {
51
+ if (!('projectIds' in value) || value['projectIds'] === undefined) return false;
52
+ if (!('action' in value) || value['action'] === undefined) return false;
53
+ return true;
54
+ }
55
+
56
+ export function UpdateNotebookSourcesRequestFromJSON(json: any): UpdateNotebookSourcesRequest {
57
+ return UpdateNotebookSourcesRequestFromJSONTyped(json, false);
58
+ }
59
+
60
+ export function UpdateNotebookSourcesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateNotebookSourcesRequest {
61
+ if (json == null) {
62
+ return json;
63
+ }
64
+ return {
65
+
66
+ 'projectIds': json['projectIds'],
67
+ 'action': json['action'],
68
+ };
69
+ }
70
+
71
+ export function UpdateNotebookSourcesRequestToJSON(json: any): UpdateNotebookSourcesRequest {
72
+ return UpdateNotebookSourcesRequestToJSONTyped(json, false);
73
+ }
74
+
75
+ export function UpdateNotebookSourcesRequestToJSONTyped(value?: UpdateNotebookSourcesRequest | null, ignoreDiscriminator: boolean = false): any {
76
+ if (value == null) {
77
+ return value;
78
+ }
79
+
80
+ return {
81
+
82
+ 'projectIds': value['projectIds'],
83
+ 'action': value['action'],
84
+ };
85
+ }
86
+
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { Notebook } from './Notebook';
17
+ import {
18
+ NotebookFromJSON,
19
+ NotebookFromJSONTyped,
20
+ NotebookToJSON,
21
+ NotebookToJSONTyped,
22
+ } from './Notebook';
16
23
  import type { UserAccountStatus } from './UserAccountStatus';
17
24
  import {
18
25
  UserAccountStatusFromJSON,
@@ -305,6 +312,12 @@ export interface User {
305
312
  * @memberof User
306
313
  */
307
314
  Artifact?: Array<Artifact>;
315
+ /**
316
+ *
317
+ * @type {Array<Notebook>}
318
+ * @memberof User
319
+ */
320
+ notebooks?: Array<Notebook>;
308
321
  }
309
322
 
310
323
 
@@ -366,6 +379,7 @@ export function UserFromJSONTyped(json: any, ignoreDiscriminator: boolean): User
366
379
  'threads': json['threads'] == null ? undefined : ((json['threads'] as Array<any>).map(ThreadFromJSON)),
367
380
  'AttributeKindGroup': json['AttributeKindGroup'] == null ? undefined : ((json['AttributeKindGroup'] as Array<any>).map(AttributeKindGroupFromJSON)),
368
381
  'Artifact': json['Artifact'] == null ? undefined : ((json['Artifact'] as Array<any>).map(ArtifactFromJSON)),
382
+ 'notebooks': json['notebooks'] == null ? undefined : ((json['notebooks'] as Array<any>).map(NotebookFromJSON)),
369
383
  };
370
384
  }
371
385
 
@@ -410,6 +424,7 @@ export function UserToJSONTyped(value?: User | null, ignoreDiscriminator: boolea
410
424
  'threads': value['threads'] == null ? undefined : ((value['threads'] as Array<any>).map(ThreadToJSON)),
411
425
  'AttributeKindGroup': value['AttributeKindGroup'] == null ? undefined : ((value['AttributeKindGroup'] as Array<any>).map(AttributeKindGroupToJSON)),
412
426
  'Artifact': value['Artifact'] == null ? undefined : ((value['Artifact'] as Array<any>).map(ArtifactToJSON)),
427
+ 'notebooks': value['notebooks'] == null ? undefined : ((value['notebooks'] as Array<any>).map(NotebookToJSON)),
413
428
  };
414
429
  }
415
430
 
@@ -39,12 +39,6 @@ export interface UserData {
39
39
  * @memberof UserData
40
40
  */
41
41
  adminLevel?: UserAdminLevel | null;
42
- /**
43
- *
44
- * @type {boolean}
45
- * @memberof UserData
46
- */
47
- isDummy?: boolean;
48
42
  }
49
43
 
50
44
 
@@ -68,7 +62,6 @@ export function UserDataFromJSONTyped(json: any, ignoreDiscriminator: boolean):
68
62
 
69
63
  'launchTrial': json['launchTrial'] == null ? undefined : json['launchTrial'],
70
64
  'adminLevel': json['adminLevel'] == null ? undefined : UserAdminLevelFromJSON(json['adminLevel']),
71
- 'isDummy': json['isDummy'] == null ? undefined : json['isDummy'],
72
65
  };
73
66
  }
74
67
 
@@ -85,7 +78,6 @@ export function UserDataToJSONTyped(value?: UserData | null, ignoreDiscriminator
85
78
 
86
79
  'launchTrial': value['launchTrial'],
87
80
  'adminLevel': UserAdminLevelToJSON(value['adminLevel']),
88
- 'isDummy': value['isDummy'],
89
81
  };
90
82
  }
91
83
 
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { Notebook } from './Notebook';
17
+ import {
18
+ NotebookFromJSON,
19
+ NotebookFromJSONTyped,
20
+ NotebookToJSON,
21
+ NotebookToJSONTyped,
22
+ } from './Notebook';
16
23
  import type { UserAccountStatus } from './UserAccountStatus';
17
24
  import {
18
25
  UserAccountStatusFromJSON,
@@ -312,6 +319,12 @@ export interface UserWithConfig {
312
319
  * @memberof UserWithConfig
313
320
  */
314
321
  Artifact?: Array<Artifact>;
322
+ /**
323
+ *
324
+ * @type {Array<Notebook>}
325
+ * @memberof UserWithConfig
326
+ */
327
+ notebooks?: Array<Notebook>;
315
328
  /**
316
329
  *
317
330
  * @type {FeatureConfig}
@@ -379,6 +392,7 @@ export function UserWithConfigFromJSONTyped(json: any, ignoreDiscriminator: bool
379
392
  'threads': json['threads'] == null ? undefined : ((json['threads'] as Array<any>).map(ThreadFromJSON)),
380
393
  'AttributeKindGroup': json['AttributeKindGroup'] == null ? undefined : ((json['AttributeKindGroup'] as Array<any>).map(AttributeKindGroupFromJSON)),
381
394
  'Artifact': json['Artifact'] == null ? undefined : ((json['Artifact'] as Array<any>).map(ArtifactFromJSON)),
395
+ 'notebooks': json['notebooks'] == null ? undefined : ((json['notebooks'] as Array<any>).map(NotebookFromJSON)),
382
396
  'featureConfig': json['featureConfig'] == null ? undefined : FeatureConfigFromJSON(json['featureConfig']),
383
397
  };
384
398
  }
@@ -424,6 +438,7 @@ export function UserWithConfigToJSONTyped(value?: UserWithConfig | null, ignoreD
424
438
  'threads': value['threads'] == null ? undefined : ((value['threads'] as Array<any>).map(ThreadToJSON)),
425
439
  'AttributeKindGroup': value['AttributeKindGroup'] == null ? undefined : ((value['AttributeKindGroup'] as Array<any>).map(AttributeKindGroupToJSON)),
426
440
  'Artifact': value['Artifact'] == null ? undefined : ((value['Artifact'] as Array<any>).map(ArtifactToJSON)),
441
+ 'notebooks': value['notebooks'] == null ? undefined : ((value['notebooks'] as Array<any>).map(NotebookToJSON)),
427
442
  'featureConfig': FeatureConfigToJSON(value['featureConfig']),
428
443
  };
429
444
  }
@@ -34,6 +34,13 @@ import {
34
34
  UserToJSON,
35
35
  UserToJSONTyped,
36
36
  } from './User';
37
+ import type { Notebook } from './Notebook';
38
+ import {
39
+ NotebookFromJSON,
40
+ NotebookFromJSONTyped,
41
+ NotebookToJSON,
42
+ NotebookToJSONTyped,
43
+ } from './Notebook';
37
44
  import type { Participant } from './Participant';
38
45
  import {
39
46
  ParticipantFromJSON,
@@ -142,6 +149,12 @@ export interface Workspace {
142
149
  * @memberof Workspace
143
150
  */
144
151
  workspaceMembers?: Array<WorkspaceMember>;
152
+ /**
153
+ *
154
+ * @type {Array<Notebook>}
155
+ * @memberof Workspace
156
+ */
157
+ notebooks?: Array<Notebook>;
145
158
  /**
146
159
  *
147
160
  * @type {Array<User>}
@@ -182,6 +195,7 @@ export function WorkspaceFromJSONTyped(json: any, ignoreDiscriminator: boolean):
182
195
  'threads': json['threads'] == null ? undefined : ((json['threads'] as Array<any>).map(ThreadFromJSON)),
183
196
  'attributeKindGroups': json['attributeKindGroups'] == null ? undefined : ((json['attributeKindGroups'] as Array<any>).map(AttributeKindGroupFromJSON)),
184
197
  'workspaceMembers': json['workspaceMembers'] == null ? undefined : ((json['workspaceMembers'] as Array<any>).map(WorkspaceMemberFromJSON)),
198
+ 'notebooks': json['notebooks'] == null ? undefined : ((json['notebooks'] as Array<any>).map(NotebookFromJSON)),
185
199
  'defaultForUsers': json['defaultForUsers'] == null ? undefined : ((json['defaultForUsers'] as Array<any>).map(UserFromJSON)),
186
200
  };
187
201
  }
@@ -208,6 +222,7 @@ export function WorkspaceToJSONTyped(value?: Workspace | null, ignoreDiscriminat
208
222
  'threads': value['threads'] == null ? undefined : ((value['threads'] as Array<any>).map(ThreadToJSON)),
209
223
  'attributeKindGroups': value['attributeKindGroups'] == null ? undefined : ((value['attributeKindGroups'] as Array<any>).map(AttributeKindGroupToJSON)),
210
224
  'workspaceMembers': value['workspaceMembers'] == null ? undefined : ((value['workspaceMembers'] as Array<any>).map(WorkspaceMemberToJSON)),
225
+ 'notebooks': value['notebooks'] == null ? undefined : ((value['notebooks'] as Array<any>).map(NotebookToJSON)),
211
226
  'defaultForUsers': value['defaultForUsers'] == null ? undefined : ((value['defaultForUsers'] as Array<any>).map(UserToJSON)),
212
227
  };
213
228
  }