@instructure/athena-api-client 3.0.3 → 3.0.4

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 (134) hide show
  1. package/README.md +39 -0
  2. package/dist/apis/ChatsApi.d.ts +2 -0
  3. package/dist/apis/ChatsApi.js +6 -0
  4. package/dist/apis/DailyQuizApi.d.ts +1 -0
  5. package/dist/apis/DailyQuizApi.js +3 -0
  6. package/dist/apis/MessagesApi.d.ts +1 -0
  7. package/dist/apis/MessagesApi.js +3 -0
  8. package/dist/apis/PracticeQuizzesApi.d.ts +1 -0
  9. package/dist/apis/PracticeQuizzesApi.js +3 -0
  10. package/dist/apis/StudyObjectiveConceptsApi.d.ts +50 -0
  11. package/dist/apis/StudyObjectiveConceptsApi.js +133 -0
  12. package/dist/apis/StudyObjectivesApi.d.ts +127 -0
  13. package/dist/apis/StudyObjectivesApi.js +378 -0
  14. package/dist/apis/UserFilesApi.d.ts +90 -0
  15. package/dist/apis/UserFilesApi.js +246 -0
  16. package/dist/apis/index.d.ts +3 -0
  17. package/dist/apis/index.js +3 -0
  18. package/dist/esm/apis/ChatsApi.d.ts +2 -0
  19. package/dist/esm/apis/ChatsApi.js +6 -0
  20. package/dist/esm/apis/DailyQuizApi.d.ts +1 -0
  21. package/dist/esm/apis/DailyQuizApi.js +3 -0
  22. package/dist/esm/apis/MessagesApi.d.ts +1 -0
  23. package/dist/esm/apis/MessagesApi.js +3 -0
  24. package/dist/esm/apis/PracticeQuizzesApi.d.ts +1 -0
  25. package/dist/esm/apis/PracticeQuizzesApi.js +3 -0
  26. package/dist/esm/apis/StudyObjectiveConceptsApi.d.ts +50 -0
  27. package/dist/esm/apis/StudyObjectiveConceptsApi.js +129 -0
  28. package/dist/esm/apis/StudyObjectivesApi.d.ts +127 -0
  29. package/dist/esm/apis/StudyObjectivesApi.js +374 -0
  30. package/dist/esm/apis/UserFilesApi.d.ts +90 -0
  31. package/dist/esm/apis/UserFilesApi.js +242 -0
  32. package/dist/esm/apis/index.d.ts +3 -0
  33. package/dist/esm/apis/index.js +3 -0
  34. package/dist/esm/models/AssociateUserFileRequest.d.ts +48 -0
  35. package/dist/esm/models/AssociateUserFileRequest.js +56 -0
  36. package/dist/esm/models/CreateObjectiveResourceDto.d.ts +47 -0
  37. package/dist/esm/models/CreateObjectiveResourceDto.js +55 -0
  38. package/dist/esm/models/CreateStudyObjectiveDto.d.ts +57 -0
  39. package/dist/esm/models/CreateStudyObjectiveDto.js +54 -0
  40. package/dist/esm/models/CreateStudyObjectiveDtoCanvasDocumentsInner.d.ts +50 -0
  41. package/dist/esm/models/CreateStudyObjectiveDtoCanvasDocumentsInner.js +55 -0
  42. package/dist/esm/models/ObjectiveResource.d.ts +71 -0
  43. package/dist/esm/models/ObjectiveResource.js +71 -0
  44. package/dist/esm/models/PaginatedObjectiveResources.d.ts +39 -0
  45. package/dist/esm/models/PaginatedObjectiveResources.js +48 -0
  46. package/dist/esm/models/PaginatedStudyObjectives.d.ts +39 -0
  47. package/dist/esm/models/PaginatedStudyObjectives.js +48 -0
  48. package/dist/esm/models/StudyObjective.d.ts +88 -0
  49. package/dist/esm/models/StudyObjective.js +81 -0
  50. package/dist/esm/models/StudyObjectiveCanvasDocument.d.ts +50 -0
  51. package/dist/esm/models/StudyObjectiveCanvasDocument.js +55 -0
  52. package/dist/esm/models/StudyObjectiveConceptAttachment.d.ts +76 -0
  53. package/dist/esm/models/StudyObjectiveConceptAttachment.js +77 -0
  54. package/dist/esm/models/StudyObjectiveConceptAttachmentList.d.ts +33 -0
  55. package/dist/esm/models/StudyObjectiveConceptAttachmentList.js +44 -0
  56. package/dist/esm/models/StudyObjectiveConceptSummary.d.ts +56 -0
  57. package/dist/esm/models/StudyObjectiveConceptSummary.js +59 -0
  58. package/dist/esm/models/StudyObjectiveFileAttachment.d.ts +56 -0
  59. package/dist/esm/models/StudyObjectiveFileAttachment.js +59 -0
  60. package/dist/esm/models/TriggerStudyObjectiveConceptExtractionItemStatus.d.ts +50 -0
  61. package/dist/esm/models/TriggerStudyObjectiveConceptExtractionItemStatus.js +58 -0
  62. package/dist/esm/models/TriggerStudyObjectiveConceptExtractionRequest.d.ts +39 -0
  63. package/dist/esm/models/TriggerStudyObjectiveConceptExtractionRequest.js +48 -0
  64. package/dist/esm/models/TriggerStudyObjectiveConceptExtractionRequestItemsInner.d.ts +32 -0
  65. package/dist/esm/models/TriggerStudyObjectiveConceptExtractionRequestItemsInner.js +43 -0
  66. package/dist/esm/models/TriggerStudyObjectiveConceptExtractionResponse.d.ts +33 -0
  67. package/dist/esm/models/TriggerStudyObjectiveConceptExtractionResponse.js +44 -0
  68. package/dist/esm/models/UpdateStudyObjectiveDto.d.ts +51 -0
  69. package/dist/esm/models/UpdateStudyObjectiveDto.js +48 -0
  70. package/dist/esm/models/UserFile.d.ts +75 -0
  71. package/dist/esm/models/UserFile.js +72 -0
  72. package/dist/esm/models/UserFileAssociation.d.ts +60 -0
  73. package/dist/esm/models/UserFileAssociation.js +64 -0
  74. package/dist/esm/models/UserFileUploadUrlFile.d.ts +56 -0
  75. package/dist/esm/models/UserFileUploadUrlFile.js +59 -0
  76. package/dist/esm/models/UserFileUploadUrlRequest.d.ts +33 -0
  77. package/dist/esm/models/UserFileUploadUrlRequest.js +44 -0
  78. package/dist/esm/models/UserFileUploadUrlRequestFilesInner.d.ts +52 -0
  79. package/dist/esm/models/UserFileUploadUrlRequestFilesInner.js +58 -0
  80. package/dist/esm/models/UserFileUploadUrlResponse.d.ts +33 -0
  81. package/dist/esm/models/UserFileUploadUrlResponse.js +44 -0
  82. package/dist/esm/models/index.d.ts +24 -0
  83. package/dist/esm/models/index.js +24 -0
  84. package/dist/models/AssociateUserFileRequest.d.ts +48 -0
  85. package/dist/models/AssociateUserFileRequest.js +64 -0
  86. package/dist/models/CreateObjectiveResourceDto.d.ts +47 -0
  87. package/dist/models/CreateObjectiveResourceDto.js +63 -0
  88. package/dist/models/CreateStudyObjectiveDto.d.ts +57 -0
  89. package/dist/models/CreateStudyObjectiveDto.js +61 -0
  90. package/dist/models/CreateStudyObjectiveDtoCanvasDocumentsInner.d.ts +50 -0
  91. package/dist/models/CreateStudyObjectiveDtoCanvasDocumentsInner.js +62 -0
  92. package/dist/models/ObjectiveResource.d.ts +71 -0
  93. package/dist/models/ObjectiveResource.js +79 -0
  94. package/dist/models/PaginatedObjectiveResources.d.ts +39 -0
  95. package/dist/models/PaginatedObjectiveResources.js +55 -0
  96. package/dist/models/PaginatedStudyObjectives.d.ts +39 -0
  97. package/dist/models/PaginatedStudyObjectives.js +55 -0
  98. package/dist/models/StudyObjective.d.ts +88 -0
  99. package/dist/models/StudyObjective.js +88 -0
  100. package/dist/models/StudyObjectiveCanvasDocument.d.ts +50 -0
  101. package/dist/models/StudyObjectiveCanvasDocument.js +62 -0
  102. package/dist/models/StudyObjectiveConceptAttachment.d.ts +76 -0
  103. package/dist/models/StudyObjectiveConceptAttachment.js +85 -0
  104. package/dist/models/StudyObjectiveConceptAttachmentList.d.ts +33 -0
  105. package/dist/models/StudyObjectiveConceptAttachmentList.js +51 -0
  106. package/dist/models/StudyObjectiveConceptSummary.d.ts +56 -0
  107. package/dist/models/StudyObjectiveConceptSummary.js +66 -0
  108. package/dist/models/StudyObjectiveFileAttachment.d.ts +56 -0
  109. package/dist/models/StudyObjectiveFileAttachment.js +66 -0
  110. package/dist/models/TriggerStudyObjectiveConceptExtractionItemStatus.d.ts +50 -0
  111. package/dist/models/TriggerStudyObjectiveConceptExtractionItemStatus.js +66 -0
  112. package/dist/models/TriggerStudyObjectiveConceptExtractionRequest.d.ts +39 -0
  113. package/dist/models/TriggerStudyObjectiveConceptExtractionRequest.js +55 -0
  114. package/dist/models/TriggerStudyObjectiveConceptExtractionRequestItemsInner.d.ts +32 -0
  115. package/dist/models/TriggerStudyObjectiveConceptExtractionRequestItemsInner.js +50 -0
  116. package/dist/models/TriggerStudyObjectiveConceptExtractionResponse.d.ts +33 -0
  117. package/dist/models/TriggerStudyObjectiveConceptExtractionResponse.js +51 -0
  118. package/dist/models/UpdateStudyObjectiveDto.d.ts +51 -0
  119. package/dist/models/UpdateStudyObjectiveDto.js +55 -0
  120. package/dist/models/UserFile.d.ts +75 -0
  121. package/dist/models/UserFile.js +79 -0
  122. package/dist/models/UserFileAssociation.d.ts +60 -0
  123. package/dist/models/UserFileAssociation.js +72 -0
  124. package/dist/models/UserFileUploadUrlFile.d.ts +56 -0
  125. package/dist/models/UserFileUploadUrlFile.js +66 -0
  126. package/dist/models/UserFileUploadUrlRequest.d.ts +33 -0
  127. package/dist/models/UserFileUploadUrlRequest.js +51 -0
  128. package/dist/models/UserFileUploadUrlRequestFilesInner.d.ts +52 -0
  129. package/dist/models/UserFileUploadUrlRequestFilesInner.js +66 -0
  130. package/dist/models/UserFileUploadUrlResponse.d.ts +33 -0
  131. package/dist/models/UserFileUploadUrlResponse.js +51 -0
  132. package/dist/models/index.d.ts +24 -0
  133. package/dist/models/index.js +24 -0
  134. package/package.json +1 -1
@@ -0,0 +1,242 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Athena API
5
+ * REST API for the Athena system
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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import * as runtime from '../runtime';
24
+ import { AssociateUserFileRequestToJSON, UserFileFromJSON, UserFileAssociationFromJSON, UserFileUploadUrlRequestToJSON, UserFileUploadUrlResponseFromJSON, } from '../models/index';
25
+ /**
26
+ *
27
+ */
28
+ export class UserFilesApi extends runtime.BaseAPI {
29
+ /**
30
+ * Idempotent. Returns the existing association if (userFileId, kind, kindId) already exists.
31
+ * Attach a user file to a parent resource
32
+ */
33
+ createUserFileAssociationRaw(requestParameters, initOverrides) {
34
+ return __awaiter(this, void 0, void 0, function* () {
35
+ if (requestParameters['xUserId'] == null) {
36
+ throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling createUserFileAssociation().');
37
+ }
38
+ if (requestParameters['userFileId'] == null) {
39
+ throw new runtime.RequiredError('userFileId', 'Required parameter "userFileId" was null or undefined when calling createUserFileAssociation().');
40
+ }
41
+ if (requestParameters['associateUserFileRequest'] == null) {
42
+ throw new runtime.RequiredError('associateUserFileRequest', 'Required parameter "associateUserFileRequest" was null or undefined when calling createUserFileAssociation().');
43
+ }
44
+ const queryParameters = {};
45
+ const headerParameters = {};
46
+ headerParameters['Content-Type'] = 'application/json';
47
+ if (requestParameters['xUserId'] != null) {
48
+ headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
49
+ }
50
+ if (this.configuration && this.configuration.apiKey) {
51
+ headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
52
+ }
53
+ let urlPath = `/api/v1/user-files/{userFileId}/associations`;
54
+ urlPath = urlPath.replace(`{${"userFileId"}}`, encodeURIComponent(String(requestParameters['userFileId'])));
55
+ const response = yield this.request({
56
+ path: urlPath,
57
+ method: 'POST',
58
+ headers: headerParameters,
59
+ query: queryParameters,
60
+ body: AssociateUserFileRequestToJSON(requestParameters['associateUserFileRequest']),
61
+ }, initOverrides);
62
+ return new runtime.JSONApiResponse(response, (jsonValue) => UserFileAssociationFromJSON(jsonValue));
63
+ });
64
+ }
65
+ /**
66
+ * Idempotent. Returns the existing association if (userFileId, kind, kindId) already exists.
67
+ * Attach a user file to a parent resource
68
+ */
69
+ createUserFileAssociation(requestParameters, initOverrides) {
70
+ return __awaiter(this, void 0, void 0, function* () {
71
+ const response = yield this.createUserFileAssociationRaw(requestParameters, initOverrides);
72
+ return yield response.value();
73
+ });
74
+ }
75
+ /**
76
+ * Synchronously removes the S3 object and the user_files row (cascade clears remaining associations).
77
+ * Hard delete a user file
78
+ */
79
+ deleteUserFileRaw(requestParameters, initOverrides) {
80
+ return __awaiter(this, void 0, void 0, function* () {
81
+ if (requestParameters['xUserId'] == null) {
82
+ throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling deleteUserFile().');
83
+ }
84
+ if (requestParameters['userFileId'] == null) {
85
+ throw new runtime.RequiredError('userFileId', 'Required parameter "userFileId" was null or undefined when calling deleteUserFile().');
86
+ }
87
+ const queryParameters = {};
88
+ const headerParameters = {};
89
+ if (requestParameters['xUserId'] != null) {
90
+ headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
91
+ }
92
+ if (this.configuration && this.configuration.apiKey) {
93
+ headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
94
+ }
95
+ let urlPath = `/api/v1/user-files/{userFileId}`;
96
+ urlPath = urlPath.replace(`{${"userFileId"}}`, encodeURIComponent(String(requestParameters['userFileId'])));
97
+ const response = yield this.request({
98
+ path: urlPath,
99
+ method: 'DELETE',
100
+ headers: headerParameters,
101
+ query: queryParameters,
102
+ }, initOverrides);
103
+ return new runtime.VoidApiResponse(response);
104
+ });
105
+ }
106
+ /**
107
+ * Synchronously removes the S3 object and the user_files row (cascade clears remaining associations).
108
+ * Hard delete a user file
109
+ */
110
+ deleteUserFile(requestParameters, initOverrides) {
111
+ return __awaiter(this, void 0, void 0, function* () {
112
+ yield this.deleteUserFileRaw(requestParameters, initOverrides);
113
+ });
114
+ }
115
+ /**
116
+ * The file row and S3 object remain.
117
+ * Detach a user file from a parent resource
118
+ */
119
+ deleteUserFileAssociationRaw(requestParameters, initOverrides) {
120
+ return __awaiter(this, void 0, void 0, function* () {
121
+ if (requestParameters['xUserId'] == null) {
122
+ throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling deleteUserFileAssociation().');
123
+ }
124
+ if (requestParameters['userFileId'] == null) {
125
+ throw new runtime.RequiredError('userFileId', 'Required parameter "userFileId" was null or undefined when calling deleteUserFileAssociation().');
126
+ }
127
+ if (requestParameters['associationId'] == null) {
128
+ throw new runtime.RequiredError('associationId', 'Required parameter "associationId" was null or undefined when calling deleteUserFileAssociation().');
129
+ }
130
+ const queryParameters = {};
131
+ const headerParameters = {};
132
+ if (requestParameters['xUserId'] != null) {
133
+ headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
134
+ }
135
+ if (this.configuration && this.configuration.apiKey) {
136
+ headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
137
+ }
138
+ let urlPath = `/api/v1/user-files/{userFileId}/associations/{associationId}`;
139
+ urlPath = urlPath.replace(`{${"userFileId"}}`, encodeURIComponent(String(requestParameters['userFileId'])));
140
+ urlPath = urlPath.replace(`{${"associationId"}}`, encodeURIComponent(String(requestParameters['associationId'])));
141
+ const response = yield this.request({
142
+ path: urlPath,
143
+ method: 'DELETE',
144
+ headers: headerParameters,
145
+ query: queryParameters,
146
+ }, initOverrides);
147
+ return new runtime.VoidApiResponse(response);
148
+ });
149
+ }
150
+ /**
151
+ * The file row and S3 object remain.
152
+ * Detach a user file from a parent resource
153
+ */
154
+ deleteUserFileAssociation(requestParameters, initOverrides) {
155
+ return __awaiter(this, void 0, void 0, function* () {
156
+ yield this.deleteUserFileAssociationRaw(requestParameters, initOverrides);
157
+ });
158
+ }
159
+ /**
160
+ * Returns the file row with a freshly-signed previewUrl and the full association list.
161
+ * Get a user file by id
162
+ */
163
+ getUserFileRaw(requestParameters, initOverrides) {
164
+ return __awaiter(this, void 0, void 0, function* () {
165
+ if (requestParameters['xUserId'] == null) {
166
+ throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling getUserFile().');
167
+ }
168
+ if (requestParameters['userFileId'] == null) {
169
+ throw new runtime.RequiredError('userFileId', 'Required parameter "userFileId" was null or undefined when calling getUserFile().');
170
+ }
171
+ const queryParameters = {};
172
+ const headerParameters = {};
173
+ if (requestParameters['xUserId'] != null) {
174
+ headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
175
+ }
176
+ if (this.configuration && this.configuration.apiKey) {
177
+ headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
178
+ }
179
+ let urlPath = `/api/v1/user-files/{userFileId}`;
180
+ urlPath = urlPath.replace(`{${"userFileId"}}`, encodeURIComponent(String(requestParameters['userFileId'])));
181
+ const response = yield this.request({
182
+ path: urlPath,
183
+ method: 'GET',
184
+ headers: headerParameters,
185
+ query: queryParameters,
186
+ }, initOverrides);
187
+ return new runtime.JSONApiResponse(response, (jsonValue) => UserFileFromJSON(jsonValue));
188
+ });
189
+ }
190
+ /**
191
+ * Returns the file row with a freshly-signed previewUrl and the full association list.
192
+ * Get a user file by id
193
+ */
194
+ getUserFile(requestParameters, initOverrides) {
195
+ return __awaiter(this, void 0, void 0, function* () {
196
+ const response = yield this.getUserFileRaw(requestParameters, initOverrides);
197
+ return yield response.value();
198
+ });
199
+ }
200
+ /**
201
+ * Mints signed S3 PUT/GET/DELETE URLs and creates user_files rows owned by the caller. The returned userFileId is the durable handle clients pass to POST /api/v1/user-files/:userFileId/associations to attach the file to a parent resource.
202
+ * Get presigned upload URLs for user files
203
+ */
204
+ getUserFileUploadUrlsRaw(requestParameters, initOverrides) {
205
+ return __awaiter(this, void 0, void 0, function* () {
206
+ if (requestParameters['xUserId'] == null) {
207
+ throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling getUserFileUploadUrls().');
208
+ }
209
+ if (requestParameters['userFileUploadUrlRequest'] == null) {
210
+ throw new runtime.RequiredError('userFileUploadUrlRequest', 'Required parameter "userFileUploadUrlRequest" was null or undefined when calling getUserFileUploadUrls().');
211
+ }
212
+ const queryParameters = {};
213
+ const headerParameters = {};
214
+ headerParameters['Content-Type'] = 'application/json';
215
+ if (requestParameters['xUserId'] != null) {
216
+ headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
217
+ }
218
+ if (this.configuration && this.configuration.apiKey) {
219
+ headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
220
+ }
221
+ let urlPath = `/api/v1/user-files/upload-url`;
222
+ const response = yield this.request({
223
+ path: urlPath,
224
+ method: 'POST',
225
+ headers: headerParameters,
226
+ query: queryParameters,
227
+ body: UserFileUploadUrlRequestToJSON(requestParameters['userFileUploadUrlRequest']),
228
+ }, initOverrides);
229
+ return new runtime.JSONApiResponse(response, (jsonValue) => UserFileUploadUrlResponseFromJSON(jsonValue));
230
+ });
231
+ }
232
+ /**
233
+ * Mints signed S3 PUT/GET/DELETE URLs and creates user_files rows owned by the caller. The returned userFileId is the durable handle clients pass to POST /api/v1/user-files/:userFileId/associations to attach the file to a parent resource.
234
+ * Get presigned upload URLs for user files
235
+ */
236
+ getUserFileUploadUrls(requestParameters, initOverrides) {
237
+ return __awaiter(this, void 0, void 0, function* () {
238
+ const response = yield this.getUserFileUploadUrlsRaw(requestParameters, initOverrides);
239
+ return yield response.value();
240
+ });
241
+ }
242
+ }
@@ -18,11 +18,14 @@ export * from './PracticeQuizzesApi';
18
18
  export * from './QuizSessionsApi';
19
19
  export * from './QuizzesApi';
20
20
  export * from './ServiceTokensApi';
21
+ export * from './StudyObjectiveConceptsApi';
22
+ export * from './StudyObjectivesApi';
21
23
  export * from './StudyPrepApi';
22
24
  export * from './TagsApi';
23
25
  export * from './TaxonomiesApi';
24
26
  export * from './TaxonomyEnrollmentsApi';
25
27
  export * from './UserConceptsApi';
26
28
  export * from './UserContextApi';
29
+ export * from './UserFilesApi';
27
30
  export * from './UsersApi';
28
31
  export * from './VotesApi';
@@ -20,11 +20,14 @@ export * from './PracticeQuizzesApi';
20
20
  export * from './QuizSessionsApi';
21
21
  export * from './QuizzesApi';
22
22
  export * from './ServiceTokensApi';
23
+ export * from './StudyObjectiveConceptsApi';
24
+ export * from './StudyObjectivesApi';
23
25
  export * from './StudyPrepApi';
24
26
  export * from './TagsApi';
25
27
  export * from './TaxonomiesApi';
26
28
  export * from './TaxonomyEnrollmentsApi';
27
29
  export * from './UserConceptsApi';
28
30
  export * from './UserContextApi';
31
+ export * from './UserFilesApi';
29
32
  export * from './UsersApi';
30
33
  export * from './VotesApi';
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Athena API
3
+ * REST API for the Athena system
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface AssociateUserFileRequest
16
+ */
17
+ export interface AssociateUserFileRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AssociateUserFileRequest
22
+ */
23
+ kind: AssociateUserFileRequestKindEnum;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof AssociateUserFileRequest
28
+ */
29
+ kindId: string;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const AssociateUserFileRequestKindEnum: {
35
+ readonly Chat: "chat";
36
+ readonly Message: "message";
37
+ readonly StudyObjective: "study_objective";
38
+ readonly ObjectiveResource: "objective_resource";
39
+ };
40
+ export type AssociateUserFileRequestKindEnum = typeof AssociateUserFileRequestKindEnum[keyof typeof AssociateUserFileRequestKindEnum];
41
+ /**
42
+ * Check if a given object implements the AssociateUserFileRequest interface.
43
+ */
44
+ export declare function instanceOfAssociateUserFileRequest(value: object): value is AssociateUserFileRequest;
45
+ export declare function AssociateUserFileRequestFromJSON(json: any): AssociateUserFileRequest;
46
+ export declare function AssociateUserFileRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssociateUserFileRequest;
47
+ export declare function AssociateUserFileRequestToJSON(json: any): AssociateUserFileRequest;
48
+ export declare function AssociateUserFileRequestToJSONTyped(value?: AssociateUserFileRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,56 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Athena API
5
+ * REST API for the Athena system
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
+ * @export
16
+ */
17
+ export const AssociateUserFileRequestKindEnum = {
18
+ Chat: 'chat',
19
+ Message: 'message',
20
+ StudyObjective: 'study_objective',
21
+ ObjectiveResource: 'objective_resource'
22
+ };
23
+ /**
24
+ * Check if a given object implements the AssociateUserFileRequest interface.
25
+ */
26
+ export function instanceOfAssociateUserFileRequest(value) {
27
+ if (!('kind' in value) || value['kind'] === undefined)
28
+ return false;
29
+ if (!('kindId' in value) || value['kindId'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ export function AssociateUserFileRequestFromJSON(json) {
34
+ return AssociateUserFileRequestFromJSONTyped(json, false);
35
+ }
36
+ export function AssociateUserFileRequestFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'kind': json['kind'],
42
+ 'kindId': json['kindId'],
43
+ };
44
+ }
45
+ export function AssociateUserFileRequestToJSON(json) {
46
+ return AssociateUserFileRequestToJSONTyped(json, false);
47
+ }
48
+ export function AssociateUserFileRequestToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'kind': value['kind'],
54
+ 'kindId': value['kindId'],
55
+ };
56
+ }
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Athena API
3
+ * REST API for the Athena system
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface CreateObjectiveResourceDto
16
+ */
17
+ export interface CreateObjectiveResourceDto {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CreateObjectiveResourceDto
22
+ */
23
+ chatId: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof CreateObjectiveResourceDto
28
+ */
29
+ resourceType: CreateObjectiveResourceDtoResourceTypeEnum;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const CreateObjectiveResourceDtoResourceTypeEnum: {
35
+ readonly Chat: "chat";
36
+ readonly Quiz: "quiz";
37
+ readonly Flashcard: "flashcard";
38
+ };
39
+ export type CreateObjectiveResourceDtoResourceTypeEnum = typeof CreateObjectiveResourceDtoResourceTypeEnum[keyof typeof CreateObjectiveResourceDtoResourceTypeEnum];
40
+ /**
41
+ * Check if a given object implements the CreateObjectiveResourceDto interface.
42
+ */
43
+ export declare function instanceOfCreateObjectiveResourceDto(value: object): value is CreateObjectiveResourceDto;
44
+ export declare function CreateObjectiveResourceDtoFromJSON(json: any): CreateObjectiveResourceDto;
45
+ export declare function CreateObjectiveResourceDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateObjectiveResourceDto;
46
+ export declare function CreateObjectiveResourceDtoToJSON(json: any): CreateObjectiveResourceDto;
47
+ export declare function CreateObjectiveResourceDtoToJSONTyped(value?: CreateObjectiveResourceDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Athena API
5
+ * REST API for the Athena system
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
+ * @export
16
+ */
17
+ export const CreateObjectiveResourceDtoResourceTypeEnum = {
18
+ Chat: 'chat',
19
+ Quiz: 'quiz',
20
+ Flashcard: 'flashcard'
21
+ };
22
+ /**
23
+ * Check if a given object implements the CreateObjectiveResourceDto interface.
24
+ */
25
+ export function instanceOfCreateObjectiveResourceDto(value) {
26
+ if (!('chatId' in value) || value['chatId'] === undefined)
27
+ return false;
28
+ if (!('resourceType' in value) || value['resourceType'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ export function CreateObjectiveResourceDtoFromJSON(json) {
33
+ return CreateObjectiveResourceDtoFromJSONTyped(json, false);
34
+ }
35
+ export function CreateObjectiveResourceDtoFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'chatId': json['chatId'],
41
+ 'resourceType': json['resourceType'],
42
+ };
43
+ }
44
+ export function CreateObjectiveResourceDtoToJSON(json) {
45
+ return CreateObjectiveResourceDtoToJSONTyped(json, false);
46
+ }
47
+ export function CreateObjectiveResourceDtoToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'chatId': value['chatId'],
53
+ 'resourceType': value['resourceType'],
54
+ };
55
+ }
@@ -0,0 +1,57 @@
1
+ /**
2
+ * Athena API
3
+ * REST API for the Athena system
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { CreateStudyObjectiveDtoCanvasDocumentsInner } from './CreateStudyObjectiveDtoCanvasDocumentsInner';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CreateStudyObjectiveDto
17
+ */
18
+ export interface CreateStudyObjectiveDto {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof CreateStudyObjectiveDto
23
+ */
24
+ title: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof CreateStudyObjectiveDto
29
+ */
30
+ notes?: string | null;
31
+ /**
32
+ *
33
+ * @type {Array<CreateStudyObjectiveDtoCanvasDocumentsInner>}
34
+ * @memberof CreateStudyObjectiveDto
35
+ */
36
+ canvasDocuments?: Array<CreateStudyObjectiveDtoCanvasDocumentsInner>;
37
+ /**
38
+ *
39
+ * @type {Date}
40
+ * @memberof CreateStudyObjectiveDto
41
+ */
42
+ dueAt?: Date | null;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof CreateStudyObjectiveDto
47
+ */
48
+ courseId: string;
49
+ }
50
+ /**
51
+ * Check if a given object implements the CreateStudyObjectiveDto interface.
52
+ */
53
+ export declare function instanceOfCreateStudyObjectiveDto(value: object): value is CreateStudyObjectiveDto;
54
+ export declare function CreateStudyObjectiveDtoFromJSON(json: any): CreateStudyObjectiveDto;
55
+ export declare function CreateStudyObjectiveDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateStudyObjectiveDto;
56
+ export declare function CreateStudyObjectiveDtoToJSON(json: any): CreateStudyObjectiveDto;
57
+ export declare function CreateStudyObjectiveDtoToJSONTyped(value?: CreateStudyObjectiveDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Athena API
5
+ * REST API for the Athena system
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
+ import { CreateStudyObjectiveDtoCanvasDocumentsInnerFromJSON, CreateStudyObjectiveDtoCanvasDocumentsInnerToJSON, } from './CreateStudyObjectiveDtoCanvasDocumentsInner';
15
+ /**
16
+ * Check if a given object implements the CreateStudyObjectiveDto interface.
17
+ */
18
+ export function instanceOfCreateStudyObjectiveDto(value) {
19
+ if (!('title' in value) || value['title'] === undefined)
20
+ return false;
21
+ if (!('courseId' in value) || value['courseId'] === undefined)
22
+ return false;
23
+ return true;
24
+ }
25
+ export function CreateStudyObjectiveDtoFromJSON(json) {
26
+ return CreateStudyObjectiveDtoFromJSONTyped(json, false);
27
+ }
28
+ export function CreateStudyObjectiveDtoFromJSONTyped(json, ignoreDiscriminator) {
29
+ if (json == null) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'title': json['title'],
34
+ 'notes': json['notes'] == null ? undefined : json['notes'],
35
+ 'canvasDocuments': json['canvasDocuments'] == null ? undefined : (json['canvasDocuments'].map(CreateStudyObjectiveDtoCanvasDocumentsInnerFromJSON)),
36
+ 'dueAt': json['dueAt'] == null ? undefined : (new Date(json['dueAt'])),
37
+ 'courseId': json['courseId'],
38
+ };
39
+ }
40
+ export function CreateStudyObjectiveDtoToJSON(json) {
41
+ return CreateStudyObjectiveDtoToJSONTyped(json, false);
42
+ }
43
+ export function CreateStudyObjectiveDtoToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'title': value['title'],
49
+ 'notes': value['notes'],
50
+ 'canvasDocuments': value['canvasDocuments'] == null ? undefined : (value['canvasDocuments'].map(CreateStudyObjectiveDtoCanvasDocumentsInnerToJSON)),
51
+ 'dueAt': value['dueAt'] == null ? value['dueAt'] : value['dueAt'].toISOString(),
52
+ 'courseId': value['courseId'],
53
+ };
54
+ }
@@ -0,0 +1,50 @@
1
+ /**
2
+ * Athena API
3
+ * REST API for the Athena system
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface CreateStudyObjectiveDtoCanvasDocumentsInner
16
+ */
17
+ export interface CreateStudyObjectiveDtoCanvasDocumentsInner {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CreateStudyObjectiveDtoCanvasDocumentsInner
22
+ */
23
+ canonicalId: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof CreateStudyObjectiveDtoCanvasDocumentsInner
28
+ */
29
+ displayName: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof CreateStudyObjectiveDtoCanvasDocumentsInner
34
+ */
35
+ filename: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof CreateStudyObjectiveDtoCanvasDocumentsInner
40
+ */
41
+ contentType: string;
42
+ }
43
+ /**
44
+ * Check if a given object implements the CreateStudyObjectiveDtoCanvasDocumentsInner interface.
45
+ */
46
+ export declare function instanceOfCreateStudyObjectiveDtoCanvasDocumentsInner(value: object): value is CreateStudyObjectiveDtoCanvasDocumentsInner;
47
+ export declare function CreateStudyObjectiveDtoCanvasDocumentsInnerFromJSON(json: any): CreateStudyObjectiveDtoCanvasDocumentsInner;
48
+ export declare function CreateStudyObjectiveDtoCanvasDocumentsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateStudyObjectiveDtoCanvasDocumentsInner;
49
+ export declare function CreateStudyObjectiveDtoCanvasDocumentsInnerToJSON(json: any): CreateStudyObjectiveDtoCanvasDocumentsInner;
50
+ export declare function CreateStudyObjectiveDtoCanvasDocumentsInnerToJSONTyped(value?: CreateStudyObjectiveDtoCanvasDocumentsInner | null, ignoreDiscriminator?: boolean): any;