@instructure/athena-api-client 4.0.0 → 4.0.2

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 (102) hide show
  1. package/README.md +19 -0
  2. package/dist/apis/AdminApi.d.ts +14 -12
  3. package/dist/apis/AdminApi.js +14 -12
  4. package/dist/apis/ConceptDiagramsApi.d.ts +15 -1
  5. package/dist/apis/ConceptDiagramsApi.js +41 -0
  6. package/dist/apis/ConceptImagesApi.d.ts +15 -1
  7. package/dist/apis/ConceptImagesApi.js +41 -0
  8. package/dist/apis/StudyGuidesApi.d.ts +112 -0
  9. package/dist/apis/StudyGuidesApi.js +312 -0
  10. package/dist/apis/index.d.ts +1 -0
  11. package/dist/apis/index.js +1 -0
  12. package/dist/esm/apis/AdminApi.d.ts +14 -12
  13. package/dist/esm/apis/AdminApi.js +14 -12
  14. package/dist/esm/apis/ConceptDiagramsApi.d.ts +15 -1
  15. package/dist/esm/apis/ConceptDiagramsApi.js +42 -1
  16. package/dist/esm/apis/ConceptImagesApi.d.ts +15 -1
  17. package/dist/esm/apis/ConceptImagesApi.js +42 -1
  18. package/dist/esm/apis/StudyGuidesApi.d.ts +112 -0
  19. package/dist/esm/apis/StudyGuidesApi.js +308 -0
  20. package/dist/esm/apis/index.d.ts +1 -0
  21. package/dist/esm/apis/index.js +1 -0
  22. package/dist/esm/models/AdminConceptDiagram.d.ts +19 -1
  23. package/dist/esm/models/AdminConceptDiagram.js +12 -0
  24. package/dist/esm/models/AdminConceptDiagramDetail.d.ts +19 -1
  25. package/dist/esm/models/AdminConceptDiagramDetail.js +12 -0
  26. package/dist/esm/models/AdminConceptImage.d.ts +19 -1
  27. package/dist/esm/models/AdminConceptImage.js +12 -0
  28. package/dist/esm/models/AdminConceptImageDetail.d.ts +19 -1
  29. package/dist/esm/models/AdminConceptImageDetail.js +12 -0
  30. package/dist/esm/models/AdminShownConceptDiagram.d.ts +19 -1
  31. package/dist/esm/models/AdminShownConceptDiagram.js +12 -0
  32. package/dist/esm/models/AdminShownConceptImage.d.ts +19 -1
  33. package/dist/esm/models/AdminShownConceptImage.js +12 -0
  34. package/dist/esm/models/AssociateUserFileRequest.d.ts +1 -0
  35. package/dist/esm/models/AssociateUserFileRequest.js +2 -1
  36. package/dist/esm/models/ConceptMediaFlagResult.d.ts +32 -0
  37. package/dist/esm/models/ConceptMediaFlagResult.js +43 -0
  38. package/dist/esm/models/CreateStudyGuideQuizRequest.d.ts +46 -0
  39. package/dist/esm/models/CreateStudyGuideQuizRequest.js +50 -0
  40. package/dist/esm/models/CreateStudyGuideRequest.d.ts +74 -0
  41. package/dist/esm/models/CreateStudyGuideRequest.js +55 -0
  42. package/dist/esm/models/PaginatedStudyGuides.d.ts +39 -0
  43. package/dist/esm/models/PaginatedStudyGuides.js +48 -0
  44. package/dist/esm/models/RegenerateStudyGuideRequest.d.ts +38 -0
  45. package/dist/esm/models/RegenerateStudyGuideRequest.js +43 -0
  46. package/dist/esm/models/StudyGuide.d.ts +153 -0
  47. package/dist/esm/models/StudyGuide.js +127 -0
  48. package/dist/esm/models/StudyGuideConcept.d.ts +68 -0
  49. package/dist/esm/models/StudyGuideConcept.js +67 -0
  50. package/dist/esm/models/StudyGuideFile.d.ts +56 -0
  51. package/dist/esm/models/StudyGuideFile.js +59 -0
  52. package/dist/esm/models/StudyGuideListItem.d.ts +102 -0
  53. package/dist/esm/models/StudyGuideListItem.js +92 -0
  54. package/dist/esm/models/StudyGuideQuiz.d.ts +58 -0
  55. package/dist/esm/models/StudyGuideQuiz.js +62 -0
  56. package/dist/esm/models/StudyGuideSourceSummary.d.ts +56 -0
  57. package/dist/esm/models/StudyGuideSourceSummary.js +59 -0
  58. package/dist/esm/models/UserFileAssociation.d.ts +1 -0
  59. package/dist/esm/models/UserFileAssociation.js +2 -1
  60. package/dist/esm/models/index.d.ts +11 -0
  61. package/dist/esm/models/index.js +11 -0
  62. package/dist/models/AdminConceptDiagram.d.ts +19 -1
  63. package/dist/models/AdminConceptDiagram.js +12 -0
  64. package/dist/models/AdminConceptDiagramDetail.d.ts +19 -1
  65. package/dist/models/AdminConceptDiagramDetail.js +12 -0
  66. package/dist/models/AdminConceptImage.d.ts +19 -1
  67. package/dist/models/AdminConceptImage.js +12 -0
  68. package/dist/models/AdminConceptImageDetail.d.ts +19 -1
  69. package/dist/models/AdminConceptImageDetail.js +12 -0
  70. package/dist/models/AdminShownConceptDiagram.d.ts +19 -1
  71. package/dist/models/AdminShownConceptDiagram.js +12 -0
  72. package/dist/models/AdminShownConceptImage.d.ts +19 -1
  73. package/dist/models/AdminShownConceptImage.js +12 -0
  74. package/dist/models/AssociateUserFileRequest.d.ts +1 -0
  75. package/dist/models/AssociateUserFileRequest.js +2 -1
  76. package/dist/models/ConceptMediaFlagResult.d.ts +32 -0
  77. package/dist/models/ConceptMediaFlagResult.js +50 -0
  78. package/dist/models/CreateStudyGuideQuizRequest.d.ts +46 -0
  79. package/dist/models/CreateStudyGuideQuizRequest.js +58 -0
  80. package/dist/models/CreateStudyGuideRequest.d.ts +74 -0
  81. package/dist/models/CreateStudyGuideRequest.js +62 -0
  82. package/dist/models/PaginatedStudyGuides.d.ts +39 -0
  83. package/dist/models/PaginatedStudyGuides.js +55 -0
  84. package/dist/models/RegenerateStudyGuideRequest.d.ts +38 -0
  85. package/dist/models/RegenerateStudyGuideRequest.js +50 -0
  86. package/dist/models/StudyGuide.d.ts +153 -0
  87. package/dist/models/StudyGuide.js +135 -0
  88. package/dist/models/StudyGuideConcept.d.ts +68 -0
  89. package/dist/models/StudyGuideConcept.js +74 -0
  90. package/dist/models/StudyGuideFile.d.ts +56 -0
  91. package/dist/models/StudyGuideFile.js +66 -0
  92. package/dist/models/StudyGuideListItem.d.ts +102 -0
  93. package/dist/models/StudyGuideListItem.js +100 -0
  94. package/dist/models/StudyGuideQuiz.d.ts +58 -0
  95. package/dist/models/StudyGuideQuiz.js +70 -0
  96. package/dist/models/StudyGuideSourceSummary.d.ts +56 -0
  97. package/dist/models/StudyGuideSourceSummary.js +66 -0
  98. package/dist/models/UserFileAssociation.d.ts +1 -0
  99. package/dist/models/UserFileAssociation.js +2 -1
  100. package/dist/models/index.d.ts +11 -0
  101. package/dist/models/index.js +11 -0
  102. package/package.json +1 -1
@@ -0,0 +1,312 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Athena API
6
+ * REST API for the Athena system
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.StudyGuidesApi = void 0;
26
+ const runtime = require("../runtime");
27
+ const index_1 = require("../models/index");
28
+ /**
29
+ *
30
+ */
31
+ class StudyGuidesApi extends runtime.BaseAPI {
32
+ /**
33
+ * Creates a study guide for one assessment and starts generation in the background; the row comes back in status \'generating\' and the client polls GET /api/v1/study-guides/{studyGuideId}. Generation reads the linked Canvas assessment and course syllabus (with Canvas credentials), the linked study objective\'s notes, attachments and extracted concepts, the learner\'s own context, and any attached user files. It refuses (\'needs-context\') when none of that says what the assessment covers.
34
+ * Create a study guide and start generating it
35
+ */
36
+ createStudyGuideRaw(requestParameters, initOverrides) {
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ if (requestParameters['xUserId'] == null) {
39
+ throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling createStudyGuide().');
40
+ }
41
+ if (requestParameters['createStudyGuideRequest'] == null) {
42
+ throw new runtime.RequiredError('createStudyGuideRequest', 'Required parameter "createStudyGuideRequest" was null or undefined when calling createStudyGuide().');
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 (requestParameters['xCanvasDomain'] != null) {
51
+ headerParameters['X-Canvas-Domain'] = String(requestParameters['xCanvasDomain']);
52
+ }
53
+ if (requestParameters['xCanvasToken'] != null) {
54
+ headerParameters['X-Canvas-Token'] = String(requestParameters['xCanvasToken']);
55
+ }
56
+ if (this.configuration && this.configuration.apiKey) {
57
+ headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
58
+ }
59
+ let urlPath = `/api/v1/study-guides`;
60
+ const response = yield this.request({
61
+ path: urlPath,
62
+ method: 'POST',
63
+ headers: headerParameters,
64
+ query: queryParameters,
65
+ body: (0, index_1.CreateStudyGuideRequestToJSON)(requestParameters['createStudyGuideRequest']),
66
+ }, initOverrides);
67
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.StudyGuideFromJSON)(jsonValue));
68
+ });
69
+ }
70
+ /**
71
+ * Creates a study guide for one assessment and starts generation in the background; the row comes back in status \'generating\' and the client polls GET /api/v1/study-guides/{studyGuideId}. Generation reads the linked Canvas assessment and course syllabus (with Canvas credentials), the linked study objective\'s notes, attachments and extracted concepts, the learner\'s own context, and any attached user files. It refuses (\'needs-context\') when none of that says what the assessment covers.
72
+ * Create a study guide and start generating it
73
+ */
74
+ createStudyGuide(requestParameters, initOverrides) {
75
+ return __awaiter(this, void 0, void 0, function* () {
76
+ const response = yield this.createStudyGuideRaw(requestParameters, initOverrides);
77
+ return yield response.value();
78
+ });
79
+ }
80
+ /**
81
+ * Generates and persists a quiz (or flashcard deck) from the guide\'s concepts, at least one question per concept, with every question bound to its concept id. Omit conceptIds for the whole guide. Synchronous: the response carries the quiz id to open a session on.
82
+ * Build a quiz or flashcard deck from a study guide
83
+ */
84
+ createStudyGuideQuizRaw(requestParameters, initOverrides) {
85
+ return __awaiter(this, void 0, void 0, function* () {
86
+ if (requestParameters['xUserId'] == null) {
87
+ throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling createStudyGuideQuiz().');
88
+ }
89
+ if (requestParameters['studyGuideId'] == null) {
90
+ throw new runtime.RequiredError('studyGuideId', 'Required parameter "studyGuideId" was null or undefined when calling createStudyGuideQuiz().');
91
+ }
92
+ if (requestParameters['createStudyGuideQuizRequest'] == null) {
93
+ throw new runtime.RequiredError('createStudyGuideQuizRequest', 'Required parameter "createStudyGuideQuizRequest" was null or undefined when calling createStudyGuideQuiz().');
94
+ }
95
+ const queryParameters = {};
96
+ const headerParameters = {};
97
+ headerParameters['Content-Type'] = 'application/json';
98
+ if (requestParameters['xUserId'] != null) {
99
+ headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
100
+ }
101
+ if (this.configuration && this.configuration.apiKey) {
102
+ headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
103
+ }
104
+ let urlPath = `/api/v1/study-guides/{studyGuideId}/quizzes`;
105
+ urlPath = urlPath.replace(`{${"studyGuideId"}}`, encodeURIComponent(String(requestParameters['studyGuideId'])));
106
+ const response = yield this.request({
107
+ path: urlPath,
108
+ method: 'POST',
109
+ headers: headerParameters,
110
+ query: queryParameters,
111
+ body: (0, index_1.CreateStudyGuideQuizRequestToJSON)(requestParameters['createStudyGuideQuizRequest']),
112
+ }, initOverrides);
113
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.StudyGuideQuizFromJSON)(jsonValue));
114
+ });
115
+ }
116
+ /**
117
+ * Generates and persists a quiz (or flashcard deck) from the guide\'s concepts, at least one question per concept, with every question bound to its concept id. Omit conceptIds for the whole guide. Synchronous: the response carries the quiz id to open a session on.
118
+ * Build a quiz or flashcard deck from a study guide
119
+ */
120
+ createStudyGuideQuiz(requestParameters, initOverrides) {
121
+ return __awaiter(this, void 0, void 0, function* () {
122
+ const response = yield this.createStudyGuideQuizRaw(requestParameters, initOverrides);
123
+ return yield response.value();
124
+ });
125
+ }
126
+ /**
127
+ * Removes the guide and its concept list. Attached user files are detached, not deleted; quizzes built from the guide remain.
128
+ * Delete a study guide
129
+ */
130
+ deleteStudyGuideRaw(requestParameters, initOverrides) {
131
+ return __awaiter(this, void 0, void 0, function* () {
132
+ if (requestParameters['xUserId'] == null) {
133
+ throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling deleteStudyGuide().');
134
+ }
135
+ if (requestParameters['studyGuideId'] == null) {
136
+ throw new runtime.RequiredError('studyGuideId', 'Required parameter "studyGuideId" was null or undefined when calling deleteStudyGuide().');
137
+ }
138
+ const queryParameters = {};
139
+ const headerParameters = {};
140
+ if (requestParameters['xUserId'] != null) {
141
+ headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
142
+ }
143
+ if (this.configuration && this.configuration.apiKey) {
144
+ headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
145
+ }
146
+ let urlPath = `/api/v1/study-guides/{studyGuideId}`;
147
+ urlPath = urlPath.replace(`{${"studyGuideId"}}`, encodeURIComponent(String(requestParameters['studyGuideId'])));
148
+ const response = yield this.request({
149
+ path: urlPath,
150
+ method: 'DELETE',
151
+ headers: headerParameters,
152
+ query: queryParameters,
153
+ }, initOverrides);
154
+ return new runtime.VoidApiResponse(response);
155
+ });
156
+ }
157
+ /**
158
+ * Removes the guide and its concept list. Attached user files are detached, not deleted; quizzes built from the guide remain.
159
+ * Delete a study guide
160
+ */
161
+ deleteStudyGuide(requestParameters, initOverrides) {
162
+ return __awaiter(this, void 0, void 0, function* () {
163
+ yield this.deleteStudyGuideRaw(requestParameters, initOverrides);
164
+ });
165
+ }
166
+ /**
167
+ * Returns the guide, its concepts in display order, its attached files, and its generation status. Poll while status is \'generating\'.
168
+ * Get a study guide with its concepts
169
+ */
170
+ getStudyGuideRaw(requestParameters, initOverrides) {
171
+ return __awaiter(this, void 0, void 0, function* () {
172
+ if (requestParameters['xUserId'] == null) {
173
+ throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling getStudyGuide().');
174
+ }
175
+ if (requestParameters['studyGuideId'] == null) {
176
+ throw new runtime.RequiredError('studyGuideId', 'Required parameter "studyGuideId" was null or undefined when calling getStudyGuide().');
177
+ }
178
+ const queryParameters = {};
179
+ const headerParameters = {};
180
+ if (requestParameters['xUserId'] != null) {
181
+ headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
182
+ }
183
+ if (this.configuration && this.configuration.apiKey) {
184
+ headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
185
+ }
186
+ let urlPath = `/api/v1/study-guides/{studyGuideId}`;
187
+ urlPath = urlPath.replace(`{${"studyGuideId"}}`, encodeURIComponent(String(requestParameters['studyGuideId'])));
188
+ const response = yield this.request({
189
+ path: urlPath,
190
+ method: 'GET',
191
+ headers: headerParameters,
192
+ query: queryParameters,
193
+ }, initOverrides);
194
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.StudyGuideFromJSON)(jsonValue));
195
+ });
196
+ }
197
+ /**
198
+ * Returns the guide, its concepts in display order, its attached files, and its generation status. Poll while status is \'generating\'.
199
+ * Get a study guide with its concepts
200
+ */
201
+ getStudyGuide(requestParameters, initOverrides) {
202
+ return __awaiter(this, void 0, void 0, function* () {
203
+ const response = yield this.getStudyGuideRaw(requestParameters, initOverrides);
204
+ return yield response.value();
205
+ });
206
+ }
207
+ /**
208
+ * Newest first, with a concept count per guide. Optionally scoped to a study space, study objective, or Canvas course.
209
+ * List the learner\'s study guides
210
+ */
211
+ listStudyGuidesRaw(requestParameters, initOverrides) {
212
+ return __awaiter(this, void 0, void 0, function* () {
213
+ if (requestParameters['xUserId'] == null) {
214
+ throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling listStudyGuides().');
215
+ }
216
+ const queryParameters = {};
217
+ if (requestParameters['limit'] != null) {
218
+ queryParameters['limit'] = requestParameters['limit'];
219
+ }
220
+ if (requestParameters['cursor'] != null) {
221
+ queryParameters['cursor'] = requestParameters['cursor'];
222
+ }
223
+ if (requestParameters['studySpaceId'] != null) {
224
+ queryParameters['studySpaceId'] = requestParameters['studySpaceId'];
225
+ }
226
+ if (requestParameters['studyObjectiveId'] != null) {
227
+ queryParameters['studyObjectiveId'] = requestParameters['studyObjectiveId'];
228
+ }
229
+ if (requestParameters['courseId'] != null) {
230
+ queryParameters['courseId'] = requestParameters['courseId'];
231
+ }
232
+ const headerParameters = {};
233
+ if (requestParameters['xUserId'] != null) {
234
+ headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
235
+ }
236
+ if (this.configuration && this.configuration.apiKey) {
237
+ headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
238
+ }
239
+ let urlPath = `/api/v1/study-guides`;
240
+ const response = yield this.request({
241
+ path: urlPath,
242
+ method: 'GET',
243
+ headers: headerParameters,
244
+ query: queryParameters,
245
+ }, initOverrides);
246
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PaginatedStudyGuidesFromJSON)(jsonValue));
247
+ });
248
+ }
249
+ /**
250
+ * Newest first, with a concept count per guide. Optionally scoped to a study space, study objective, or Canvas course.
251
+ * List the learner\'s study guides
252
+ */
253
+ listStudyGuides(requestParameters, initOverrides) {
254
+ return __awaiter(this, void 0, void 0, function* () {
255
+ const response = yield this.listStudyGuidesRaw(requestParameters, initOverrides);
256
+ return yield response.value();
257
+ });
258
+ }
259
+ /**
260
+ * Appends the learner\'s additional context and files, then generates again. This is how a \'needs-context\' guide becomes a ready one. A ready guide can also be regenerated to refine it.
261
+ * Regenerate a study guide with more context
262
+ */
263
+ regenerateStudyGuideRaw(requestParameters, initOverrides) {
264
+ return __awaiter(this, void 0, void 0, function* () {
265
+ if (requestParameters['xUserId'] == null) {
266
+ throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling regenerateStudyGuide().');
267
+ }
268
+ if (requestParameters['studyGuideId'] == null) {
269
+ throw new runtime.RequiredError('studyGuideId', 'Required parameter "studyGuideId" was null or undefined when calling regenerateStudyGuide().');
270
+ }
271
+ if (requestParameters['regenerateStudyGuideRequest'] == null) {
272
+ throw new runtime.RequiredError('regenerateStudyGuideRequest', 'Required parameter "regenerateStudyGuideRequest" was null or undefined when calling regenerateStudyGuide().');
273
+ }
274
+ const queryParameters = {};
275
+ const headerParameters = {};
276
+ headerParameters['Content-Type'] = 'application/json';
277
+ if (requestParameters['xUserId'] != null) {
278
+ headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
279
+ }
280
+ if (requestParameters['xCanvasDomain'] != null) {
281
+ headerParameters['X-Canvas-Domain'] = String(requestParameters['xCanvasDomain']);
282
+ }
283
+ if (requestParameters['xCanvasToken'] != null) {
284
+ headerParameters['X-Canvas-Token'] = String(requestParameters['xCanvasToken']);
285
+ }
286
+ if (this.configuration && this.configuration.apiKey) {
287
+ headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
288
+ }
289
+ let urlPath = `/api/v1/study-guides/{studyGuideId}/regenerate`;
290
+ urlPath = urlPath.replace(`{${"studyGuideId"}}`, encodeURIComponent(String(requestParameters['studyGuideId'])));
291
+ const response = yield this.request({
292
+ path: urlPath,
293
+ method: 'POST',
294
+ headers: headerParameters,
295
+ query: queryParameters,
296
+ body: (0, index_1.RegenerateStudyGuideRequestToJSON)(requestParameters['regenerateStudyGuideRequest']),
297
+ }, initOverrides);
298
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.StudyGuideFromJSON)(jsonValue));
299
+ });
300
+ }
301
+ /**
302
+ * Appends the learner\'s additional context and files, then generates again. This is how a \'needs-context\' guide becomes a ready one. A ready guide can also be regenerated to refine it.
303
+ * Regenerate a study guide with more context
304
+ */
305
+ regenerateStudyGuide(requestParameters, initOverrides) {
306
+ return __awaiter(this, void 0, void 0, function* () {
307
+ const response = yield this.regenerateStudyGuideRaw(requestParameters, initOverrides);
308
+ return yield response.value();
309
+ });
310
+ }
311
+ }
312
+ exports.StudyGuidesApi = StudyGuidesApi;
@@ -23,6 +23,7 @@ export * from './QuizzesApi';
23
23
  export * from './ResourcesApi';
24
24
  export * from './ServiceTokensApi';
25
25
  export * from './SharedQuizzesApi';
26
+ export * from './StudyGuidesApi';
26
27
  export * from './StudyObjectiveConceptsApi';
27
28
  export * from './StudyObjectivesApi';
28
29
  export * from './StudyPlansApi';
@@ -41,6 +41,7 @@ __exportStar(require("./QuizzesApi"), exports);
41
41
  __exportStar(require("./ResourcesApi"), exports);
42
42
  __exportStar(require("./ServiceTokensApi"), exports);
43
43
  __exportStar(require("./SharedQuizzesApi"), exports);
44
+ __exportStar(require("./StudyGuidesApi"), exports);
44
45
  __exportStar(require("./StudyObjectiveConceptsApi"), exports);
45
46
  __exportStar(require("./StudyObjectivesApi"), exports);
46
47
  __exportStar(require("./StudyPlansApi"), exports);
@@ -381,22 +381,22 @@ export declare class AdminApi extends runtime.BaseAPI {
381
381
  */
382
382
  adminGetUsersActivityTotals(requestParameters: AdminGetUsersActivityTotalsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AdminUserActivityTotals>>;
383
383
  /**
384
- * Keeps the diagram out of every learner read. Idempotent: an already hidden diagram keeps its original hide time and actor. Applies to later reads only: a diagram already rendered in an open chat stays until the chat is reloaded.
384
+ * Keeps the diagram out of every learner read and clears any approval (approvedAt), so a later show re-approves it. Idempotent: a diagram an admin already hid keeps its original hide time and actor. A diagram hidden by a learner flag becomes an admin hide (hiddenByFlag false, with this call\'s time and actor). Applies to later reads only: a diagram already rendered in an open chat stays until the chat is reloaded.
385
385
  * Hide a concept diagram from learners
386
386
  */
387
387
  adminHideConceptDiagramRaw(requestParameters: AdminHideConceptDiagramRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AdminConceptDiagramDetail>>;
388
388
  /**
389
- * Keeps the diagram out of every learner read. Idempotent: an already hidden diagram keeps its original hide time and actor. Applies to later reads only: a diagram already rendered in an open chat stays until the chat is reloaded.
389
+ * Keeps the diagram out of every learner read and clears any approval (approvedAt), so a later show re-approves it. Idempotent: a diagram an admin already hid keeps its original hide time and actor. A diagram hidden by a learner flag becomes an admin hide (hiddenByFlag false, with this call\'s time and actor). Applies to later reads only: a diagram already rendered in an open chat stays until the chat is reloaded.
390
390
  * Hide a concept diagram from learners
391
391
  */
392
392
  adminHideConceptDiagram(requestParameters: AdminHideConceptDiagramRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdminConceptDiagramDetail>;
393
393
  /**
394
- * Keeps the image out of every learner read. Idempotent: an already hidden image keeps its original hide time and actor. Applies to later reads only: a signed URL already handed out stays valid until it expires (12 hours).
394
+ * Keeps the image out of every learner read and clears any approval (approvedAt), so a later show re-approves it. Idempotent: an image an admin already hid keeps its original hide time and actor. An image hidden by a learner flag becomes an admin hide (hiddenByFlag false, with this call\'s time and actor). Applies to later reads only: a signed URL already handed out stays valid until it expires (12 hours).
395
395
  * Hide a concept image from learners
396
396
  */
397
397
  adminHideConceptImageRaw(requestParameters: AdminHideConceptImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AdminConceptImageDetail>>;
398
398
  /**
399
- * Keeps the image out of every learner read. Idempotent: an already hidden image keeps its original hide time and actor. Applies to later reads only: a signed URL already handed out stays valid until it expires (12 hours).
399
+ * Keeps the image out of every learner read and clears any approval (approvedAt), so a later show re-approves it. Idempotent: an image an admin already hid keeps its original hide time and actor. An image hidden by a learner flag becomes an admin hide (hiddenByFlag false, with this call\'s time and actor). Applies to later reads only: a signed URL already handed out stays valid until it expires (12 hours).
400
400
  * Hide a concept image from learners
401
401
  */
402
402
  adminHideConceptImage(requestParameters: AdminHideConceptImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdminConceptImageDetail>;
@@ -533,22 +533,22 @@ export declare class AdminApi extends runtime.BaseAPI {
533
533
  */
534
534
  adminResetUserLearningData(requestParameters: AdminResetUserLearningDataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdminResetLearningDataResponse>;
535
535
  /**
536
- * Clears the deletion and leaves the diagram hidden for review; show it to serve it to learners again. A diagram that is not deleted is unchanged.
536
+ * Clears the deletion and any approval and leaves the diagram hidden for review (a diagram already hidden keeps its hide); show it to serve it to learners again. A diagram that is not deleted is unchanged.
537
537
  * Restore a soft-deleted concept diagram
538
538
  */
539
539
  adminRestoreConceptDiagramRaw(requestParameters: AdminRestoreConceptDiagramRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AdminConceptDiagramDetail>>;
540
540
  /**
541
- * Clears the deletion and leaves the diagram hidden for review; show it to serve it to learners again. A diagram that is not deleted is unchanged.
541
+ * Clears the deletion and any approval and leaves the diagram hidden for review (a diagram already hidden keeps its hide); show it to serve it to learners again. A diagram that is not deleted is unchanged.
542
542
  * Restore a soft-deleted concept diagram
543
543
  */
544
544
  adminRestoreConceptDiagram(requestParameters: AdminRestoreConceptDiagramRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdminConceptDiagramDetail>;
545
545
  /**
546
- * Clears the deletion and leaves the image hidden for review; show it to serve it to learners again. A image that is not deleted is unchanged.
546
+ * Clears the deletion and any approval and leaves the image hidden for review (an image already hidden keeps its hide); show it to serve it to learners again. An image that is not deleted is unchanged.
547
547
  * Restore a soft-deleted concept image
548
548
  */
549
549
  adminRestoreConceptImageRaw(requestParameters: AdminRestoreConceptImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AdminConceptImageDetail>>;
550
550
  /**
551
- * Clears the deletion and leaves the image hidden for review; show it to serve it to learners again. A image that is not deleted is unchanged.
551
+ * Clears the deletion and any approval and leaves the image hidden for review (an image already hidden keeps its hide); show it to serve it to learners again. An image that is not deleted is unchanged.
552
552
  * Restore a soft-deleted concept image
553
553
  */
554
554
  adminRestoreConceptImage(requestParameters: AdminRestoreConceptImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdminConceptImageDetail>;
@@ -563,22 +563,22 @@ export declare class AdminApi extends runtime.BaseAPI {
563
563
  */
564
564
  adminSearchConcepts(requestParameters: AdminSearchConceptsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AdminConceptSearchResult>>;
565
565
  /**
566
- * Clears the hide so learners can be served the diagram again. A deleted diagram must be restored first (409, and nothing changes). The body is optional; without it, or with hideOtherVersions false, only this diagram changes. With hideOtherVersions true, every other visible version in its revision family (the rows history lists) is hidden in the same transaction, with the caller recorded as hider; hidden and deleted versions are left as they are. hiddenVersionIds lists what was hidden, and hiddenVersionsTruncated says when the family exceeded the history cap so only the capped set was checked. Learner reads are unaffected beyond the rows hidden, and only for later reads.
566
+ * Clears the hide so learners can be served the diagram again, and records the caller\'s approval (approvedAt, approvedBy): a learner flag never hides an approved diagram. Showing a visible diagram approves it too. A deleted diagram must be restored first (409, and nothing changes). The body is optional; without it, or with hideOtherVersions false, only this diagram changes. With hideOtherVersions true, every other visible version in its revision family (the rows history lists) is hidden in the same transaction, with the caller recorded as hider and their approval cleared; hidden and deleted versions are left as they are. hiddenVersionIds lists what was hidden, and hiddenVersionsTruncated says when the family exceeded the history cap so only the capped set was checked. Learner reads are unaffected beyond the rows hidden, and only for later reads.
567
567
  * Show a hidden concept diagram to learners
568
568
  */
569
569
  adminShowConceptDiagramRaw(requestParameters: AdminShowConceptDiagramRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AdminShownConceptDiagram>>;
570
570
  /**
571
- * Clears the hide so learners can be served the diagram again. A deleted diagram must be restored first (409, and nothing changes). The body is optional; without it, or with hideOtherVersions false, only this diagram changes. With hideOtherVersions true, every other visible version in its revision family (the rows history lists) is hidden in the same transaction, with the caller recorded as hider; hidden and deleted versions are left as they are. hiddenVersionIds lists what was hidden, and hiddenVersionsTruncated says when the family exceeded the history cap so only the capped set was checked. Learner reads are unaffected beyond the rows hidden, and only for later reads.
571
+ * Clears the hide so learners can be served the diagram again, and records the caller\'s approval (approvedAt, approvedBy): a learner flag never hides an approved diagram. Showing a visible diagram approves it too. A deleted diagram must be restored first (409, and nothing changes). The body is optional; without it, or with hideOtherVersions false, only this diagram changes. With hideOtherVersions true, every other visible version in its revision family (the rows history lists) is hidden in the same transaction, with the caller recorded as hider and their approval cleared; hidden and deleted versions are left as they are. hiddenVersionIds lists what was hidden, and hiddenVersionsTruncated says when the family exceeded the history cap so only the capped set was checked. Learner reads are unaffected beyond the rows hidden, and only for later reads.
572
572
  * Show a hidden concept diagram to learners
573
573
  */
574
574
  adminShowConceptDiagram(requestParameters: AdminShowConceptDiagramRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdminShownConceptDiagram>;
575
575
  /**
576
- * Clears the hide so learners can be served the image again. A deleted image must be restored first (409, and nothing changes). The body is optional; without it, or with hideOtherVersions false, only this image changes. With hideOtherVersions true, every other visible version in its revision family (the rows history lists) is hidden in the same transaction, with the caller recorded as hider; hidden and deleted versions are left as they are. hiddenVersionIds lists what was hidden, and hiddenVersionsTruncated says when the family exceeded the history cap so only the capped set was checked. Learner reads are unaffected beyond the rows hidden, and only for later reads (a signed URL already handed out stays valid until it expires, 12 hours).
576
+ * Clears the hide so learners can be served the image again, and records the caller\'s approval (approvedAt, approvedBy): a learner flag never hides an approved image. Showing a visible image approves it too. A deleted image must be restored first (409, and nothing changes). The body is optional; without it, or with hideOtherVersions false, only this image changes. With hideOtherVersions true, every other visible version in its revision family (the rows history lists) is hidden in the same transaction, with the caller recorded as hider and their approval cleared; hidden and deleted versions are left as they are. hiddenVersionIds lists what was hidden, and hiddenVersionsTruncated says when the family exceeded the history cap so only the capped set was checked. Learner reads are unaffected beyond the rows hidden, and only for later reads (a signed URL already handed out stays valid until it expires, 12 hours).
577
577
  * Show a hidden concept image to learners
578
578
  */
579
579
  adminShowConceptImageRaw(requestParameters: AdminShowConceptImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AdminShownConceptImage>>;
580
580
  /**
581
- * Clears the hide so learners can be served the image again. A deleted image must be restored first (409, and nothing changes). The body is optional; without it, or with hideOtherVersions false, only this image changes. With hideOtherVersions true, every other visible version in its revision family (the rows history lists) is hidden in the same transaction, with the caller recorded as hider; hidden and deleted versions are left as they are. hiddenVersionIds lists what was hidden, and hiddenVersionsTruncated says when the family exceeded the history cap so only the capped set was checked. Learner reads are unaffected beyond the rows hidden, and only for later reads (a signed URL already handed out stays valid until it expires, 12 hours).
581
+ * Clears the hide so learners can be served the image again, and records the caller\'s approval (approvedAt, approvedBy): a learner flag never hides an approved image. Showing a visible image approves it too. A deleted image must be restored first (409, and nothing changes). The body is optional; without it, or with hideOtherVersions false, only this image changes. With hideOtherVersions true, every other visible version in its revision family (the rows history lists) is hidden in the same transaction, with the caller recorded as hider and their approval cleared; hidden and deleted versions are left as they are. hiddenVersionIds lists what was hidden, and hiddenVersionsTruncated says when the family exceeded the history cap so only the capped set was checked. Learner reads are unaffected beyond the rows hidden, and only for later reads (a signed URL already handed out stays valid until it expires, 12 hours).
582
582
  * Show a hidden concept image to learners
583
583
  */
584
584
  adminShowConceptImage(requestParameters: AdminShowConceptImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdminShownConceptImage>;
@@ -606,6 +606,7 @@ export declare const AdminListConceptDiagramsStateEnum: {
606
606
  readonly NotDeleted: "not_deleted";
607
607
  readonly Visible: "visible";
608
608
  readonly Hidden: "hidden";
609
+ readonly Flagged: "flagged";
609
610
  readonly Deleted: "deleted";
610
611
  readonly All: "all";
611
612
  };
@@ -625,6 +626,7 @@ export declare const AdminListConceptImagesStateEnum: {
625
626
  readonly NotDeleted: "not_deleted";
626
627
  readonly Visible: "visible";
627
628
  readonly Hidden: "hidden";
629
+ readonly Flagged: "flagged";
628
630
  readonly Deleted: "deleted";
629
631
  readonly All: "all";
630
632
  };
@@ -720,7 +720,7 @@ export class AdminApi extends runtime.BaseAPI {
720
720
  });
721
721
  }
722
722
  /**
723
- * Keeps the diagram out of every learner read. Idempotent: an already hidden diagram keeps its original hide time and actor. Applies to later reads only: a diagram already rendered in an open chat stays until the chat is reloaded.
723
+ * Keeps the diagram out of every learner read and clears any approval (approvedAt), so a later show re-approves it. Idempotent: a diagram an admin already hid keeps its original hide time and actor. A diagram hidden by a learner flag becomes an admin hide (hiddenByFlag false, with this call\'s time and actor). Applies to later reads only: a diagram already rendered in an open chat stays until the chat is reloaded.
724
724
  * Hide a concept diagram from learners
725
725
  */
726
726
  adminHideConceptDiagramRaw(requestParameters, initOverrides) {
@@ -751,7 +751,7 @@ export class AdminApi extends runtime.BaseAPI {
751
751
  });
752
752
  }
753
753
  /**
754
- * Keeps the diagram out of every learner read. Idempotent: an already hidden diagram keeps its original hide time and actor. Applies to later reads only: a diagram already rendered in an open chat stays until the chat is reloaded.
754
+ * Keeps the diagram out of every learner read and clears any approval (approvedAt), so a later show re-approves it. Idempotent: a diagram an admin already hid keeps its original hide time and actor. A diagram hidden by a learner flag becomes an admin hide (hiddenByFlag false, with this call\'s time and actor). Applies to later reads only: a diagram already rendered in an open chat stays until the chat is reloaded.
755
755
  * Hide a concept diagram from learners
756
756
  */
757
757
  adminHideConceptDiagram(requestParameters, initOverrides) {
@@ -761,7 +761,7 @@ export class AdminApi extends runtime.BaseAPI {
761
761
  });
762
762
  }
763
763
  /**
764
- * Keeps the image out of every learner read. Idempotent: an already hidden image keeps its original hide time and actor. Applies to later reads only: a signed URL already handed out stays valid until it expires (12 hours).
764
+ * Keeps the image out of every learner read and clears any approval (approvedAt), so a later show re-approves it. Idempotent: an image an admin already hid keeps its original hide time and actor. An image hidden by a learner flag becomes an admin hide (hiddenByFlag false, with this call\'s time and actor). Applies to later reads only: a signed URL already handed out stays valid until it expires (12 hours).
765
765
  * Hide a concept image from learners
766
766
  */
767
767
  adminHideConceptImageRaw(requestParameters, initOverrides) {
@@ -792,7 +792,7 @@ export class AdminApi extends runtime.BaseAPI {
792
792
  });
793
793
  }
794
794
  /**
795
- * Keeps the image out of every learner read. Idempotent: an already hidden image keeps its original hide time and actor. Applies to later reads only: a signed URL already handed out stays valid until it expires (12 hours).
795
+ * Keeps the image out of every learner read and clears any approval (approvedAt), so a later show re-approves it. Idempotent: an image an admin already hid keeps its original hide time and actor. An image hidden by a learner flag becomes an admin hide (hiddenByFlag false, with this call\'s time and actor). Applies to later reads only: a signed URL already handed out stays valid until it expires (12 hours).
796
796
  * Hide a concept image from learners
797
797
  */
798
798
  adminHideConceptImage(requestParameters, initOverrides) {
@@ -1494,7 +1494,7 @@ export class AdminApi extends runtime.BaseAPI {
1494
1494
  });
1495
1495
  }
1496
1496
  /**
1497
- * Clears the deletion and leaves the diagram hidden for review; show it to serve it to learners again. A diagram that is not deleted is unchanged.
1497
+ * Clears the deletion and any approval and leaves the diagram hidden for review (a diagram already hidden keeps its hide); show it to serve it to learners again. A diagram that is not deleted is unchanged.
1498
1498
  * Restore a soft-deleted concept diagram
1499
1499
  */
1500
1500
  adminRestoreConceptDiagramRaw(requestParameters, initOverrides) {
@@ -1525,7 +1525,7 @@ export class AdminApi extends runtime.BaseAPI {
1525
1525
  });
1526
1526
  }
1527
1527
  /**
1528
- * Clears the deletion and leaves the diagram hidden for review; show it to serve it to learners again. A diagram that is not deleted is unchanged.
1528
+ * Clears the deletion and any approval and leaves the diagram hidden for review (a diagram already hidden keeps its hide); show it to serve it to learners again. A diagram that is not deleted is unchanged.
1529
1529
  * Restore a soft-deleted concept diagram
1530
1530
  */
1531
1531
  adminRestoreConceptDiagram(requestParameters, initOverrides) {
@@ -1535,7 +1535,7 @@ export class AdminApi extends runtime.BaseAPI {
1535
1535
  });
1536
1536
  }
1537
1537
  /**
1538
- * Clears the deletion and leaves the image hidden for review; show it to serve it to learners again. A image that is not deleted is unchanged.
1538
+ * Clears the deletion and any approval and leaves the image hidden for review (an image already hidden keeps its hide); show it to serve it to learners again. An image that is not deleted is unchanged.
1539
1539
  * Restore a soft-deleted concept image
1540
1540
  */
1541
1541
  adminRestoreConceptImageRaw(requestParameters, initOverrides) {
@@ -1566,7 +1566,7 @@ export class AdminApi extends runtime.BaseAPI {
1566
1566
  });
1567
1567
  }
1568
1568
  /**
1569
- * Clears the deletion and leaves the image hidden for review; show it to serve it to learners again. A image that is not deleted is unchanged.
1569
+ * Clears the deletion and any approval and leaves the image hidden for review (an image already hidden keeps its hide); show it to serve it to learners again. An image that is not deleted is unchanged.
1570
1570
  * Restore a soft-deleted concept image
1571
1571
  */
1572
1572
  adminRestoreConceptImage(requestParameters, initOverrides) {
@@ -1619,7 +1619,7 @@ export class AdminApi extends runtime.BaseAPI {
1619
1619
  });
1620
1620
  }
1621
1621
  /**
1622
- * Clears the hide so learners can be served the diagram again. A deleted diagram must be restored first (409, and nothing changes). The body is optional; without it, or with hideOtherVersions false, only this diagram changes. With hideOtherVersions true, every other visible version in its revision family (the rows history lists) is hidden in the same transaction, with the caller recorded as hider; hidden and deleted versions are left as they are. hiddenVersionIds lists what was hidden, and hiddenVersionsTruncated says when the family exceeded the history cap so only the capped set was checked. Learner reads are unaffected beyond the rows hidden, and only for later reads.
1622
+ * Clears the hide so learners can be served the diagram again, and records the caller\'s approval (approvedAt, approvedBy): a learner flag never hides an approved diagram. Showing a visible diagram approves it too. A deleted diagram must be restored first (409, and nothing changes). The body is optional; without it, or with hideOtherVersions false, only this diagram changes. With hideOtherVersions true, every other visible version in its revision family (the rows history lists) is hidden in the same transaction, with the caller recorded as hider and their approval cleared; hidden and deleted versions are left as they are. hiddenVersionIds lists what was hidden, and hiddenVersionsTruncated says when the family exceeded the history cap so only the capped set was checked. Learner reads are unaffected beyond the rows hidden, and only for later reads.
1623
1623
  * Show a hidden concept diagram to learners
1624
1624
  */
1625
1625
  adminShowConceptDiagramRaw(requestParameters, initOverrides) {
@@ -1652,7 +1652,7 @@ export class AdminApi extends runtime.BaseAPI {
1652
1652
  });
1653
1653
  }
1654
1654
  /**
1655
- * Clears the hide so learners can be served the diagram again. A deleted diagram must be restored first (409, and nothing changes). The body is optional; without it, or with hideOtherVersions false, only this diagram changes. With hideOtherVersions true, every other visible version in its revision family (the rows history lists) is hidden in the same transaction, with the caller recorded as hider; hidden and deleted versions are left as they are. hiddenVersionIds lists what was hidden, and hiddenVersionsTruncated says when the family exceeded the history cap so only the capped set was checked. Learner reads are unaffected beyond the rows hidden, and only for later reads.
1655
+ * Clears the hide so learners can be served the diagram again, and records the caller\'s approval (approvedAt, approvedBy): a learner flag never hides an approved diagram. Showing a visible diagram approves it too. A deleted diagram must be restored first (409, and nothing changes). The body is optional; without it, or with hideOtherVersions false, only this diagram changes. With hideOtherVersions true, every other visible version in its revision family (the rows history lists) is hidden in the same transaction, with the caller recorded as hider and their approval cleared; hidden and deleted versions are left as they are. hiddenVersionIds lists what was hidden, and hiddenVersionsTruncated says when the family exceeded the history cap so only the capped set was checked. Learner reads are unaffected beyond the rows hidden, and only for later reads.
1656
1656
  * Show a hidden concept diagram to learners
1657
1657
  */
1658
1658
  adminShowConceptDiagram(requestParameters, initOverrides) {
@@ -1662,7 +1662,7 @@ export class AdminApi extends runtime.BaseAPI {
1662
1662
  });
1663
1663
  }
1664
1664
  /**
1665
- * Clears the hide so learners can be served the image again. A deleted image must be restored first (409, and nothing changes). The body is optional; without it, or with hideOtherVersions false, only this image changes. With hideOtherVersions true, every other visible version in its revision family (the rows history lists) is hidden in the same transaction, with the caller recorded as hider; hidden and deleted versions are left as they are. hiddenVersionIds lists what was hidden, and hiddenVersionsTruncated says when the family exceeded the history cap so only the capped set was checked. Learner reads are unaffected beyond the rows hidden, and only for later reads (a signed URL already handed out stays valid until it expires, 12 hours).
1665
+ * Clears the hide so learners can be served the image again, and records the caller\'s approval (approvedAt, approvedBy): a learner flag never hides an approved image. Showing a visible image approves it too. A deleted image must be restored first (409, and nothing changes). The body is optional; without it, or with hideOtherVersions false, only this image changes. With hideOtherVersions true, every other visible version in its revision family (the rows history lists) is hidden in the same transaction, with the caller recorded as hider and their approval cleared; hidden and deleted versions are left as they are. hiddenVersionIds lists what was hidden, and hiddenVersionsTruncated says when the family exceeded the history cap so only the capped set was checked. Learner reads are unaffected beyond the rows hidden, and only for later reads (a signed URL already handed out stays valid until it expires, 12 hours).
1666
1666
  * Show a hidden concept image to learners
1667
1667
  */
1668
1668
  adminShowConceptImageRaw(requestParameters, initOverrides) {
@@ -1695,7 +1695,7 @@ export class AdminApi extends runtime.BaseAPI {
1695
1695
  });
1696
1696
  }
1697
1697
  /**
1698
- * Clears the hide so learners can be served the image again. A deleted image must be restored first (409, and nothing changes). The body is optional; without it, or with hideOtherVersions false, only this image changes. With hideOtherVersions true, every other visible version in its revision family (the rows history lists) is hidden in the same transaction, with the caller recorded as hider; hidden and deleted versions are left as they are. hiddenVersionIds lists what was hidden, and hiddenVersionsTruncated says when the family exceeded the history cap so only the capped set was checked. Learner reads are unaffected beyond the rows hidden, and only for later reads (a signed URL already handed out stays valid until it expires, 12 hours).
1698
+ * Clears the hide so learners can be served the image again, and records the caller\'s approval (approvedAt, approvedBy): a learner flag never hides an approved image. Showing a visible image approves it too. A deleted image must be restored first (409, and nothing changes). The body is optional; without it, or with hideOtherVersions false, only this image changes. With hideOtherVersions true, every other visible version in its revision family (the rows history lists) is hidden in the same transaction, with the caller recorded as hider and their approval cleared; hidden and deleted versions are left as they are. hiddenVersionIds lists what was hidden, and hiddenVersionsTruncated says when the family exceeded the history cap so only the capped set was checked. Learner reads are unaffected beyond the rows hidden, and only for later reads (a signed URL already handed out stays valid until it expires, 12 hours).
1699
1699
  * Show a hidden concept image to learners
1700
1700
  */
1701
1701
  adminShowConceptImage(requestParameters, initOverrides) {
@@ -1795,6 +1795,7 @@ export const AdminListConceptDiagramsStateEnum = {
1795
1795
  NotDeleted: 'not_deleted',
1796
1796
  Visible: 'visible',
1797
1797
  Hidden: 'hidden',
1798
+ Flagged: 'flagged',
1798
1799
  Deleted: 'deleted',
1799
1800
  All: 'all'
1800
1801
  };
@@ -1812,6 +1813,7 @@ export const AdminListConceptImagesStateEnum = {
1812
1813
  NotDeleted: 'not_deleted',
1813
1814
  Visible: 'visible',
1814
1815
  Hidden: 'hidden',
1816
+ Flagged: 'flagged',
1815
1817
  Deleted: 'deleted',
1816
1818
  All: 'all'
1817
1819
  };
@@ -10,7 +10,11 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ConceptDiagramDetail, PaginatedConceptDiagrams } from '../models/index';
13
+ import type { ConceptDiagramDetail, ConceptMediaFlagResult, PaginatedConceptDiagrams } from '../models/index';
14
+ export interface FlagConceptDiagramRequest {
15
+ xUserId: string;
16
+ diagramId: string;
17
+ }
14
18
  export interface GetMyConceptDiagramRequest {
15
19
  xUserId: string;
16
20
  diagramId: string;
@@ -24,6 +28,16 @@ export interface ListMyConceptDiagramsRequest {
24
28
  *
25
29
  */
26
30
  export declare class ConceptDiagramsApi extends runtime.BaseAPI {
31
+ /**
32
+ * Acts on a learner\'s thumbs-down on a shared concept diagram. A visible diagram that no admin has approved is hidden at once, from every learner, until an admin shows it again or shows a revision of it. Any authenticated learner may flag any diagram id; the calling client is expected to check that the diagram was shown to this learner. Idempotent: a diagram that is already hidden or deleted is left as it is (the first hide keeps its time and actor), and an admin-approved diagram stays visible. hidden says whether learners are kept from it after the call. Applies to later reads only: a diagram already rendered in an open chat stays until the chat is reloaded.
33
+ * Flag a concept diagram so learners stop being shown it
34
+ */
35
+ flagConceptDiagramRaw(requestParameters: FlagConceptDiagramRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConceptMediaFlagResult>>;
36
+ /**
37
+ * Acts on a learner\'s thumbs-down on a shared concept diagram. A visible diagram that no admin has approved is hidden at once, from every learner, until an admin shows it again or shows a revision of it. Any authenticated learner may flag any diagram id; the calling client is expected to check that the diagram was shown to this learner. Idempotent: a diagram that is already hidden or deleted is left as it is (the first hide keeps its time and actor), and an admin-approved diagram stays visible. hidden says whether learners are kept from it after the call. Applies to later reads only: a diagram already rendered in an open chat stays until the chat is reloaded.
38
+ * Flag a concept diagram so learners stop being shown it
39
+ */
40
+ flagConceptDiagram(requestParameters: FlagConceptDiagramRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConceptMediaFlagResult>;
27
41
  /**
28
42
  * Returns one non-hidden diagram the authenticated user authored, including its assembled HTML document.
29
43
  * Get a concept diagram the user authored