@instructure/athena-api-client 3.46.1 → 3.47.0
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.
- package/README.md +37 -0
- package/dist/apis/AdminApi.d.ts +296 -1
- package/dist/apis/AdminApi.js +809 -20
- package/dist/esm/apis/AdminApi.d.ts +296 -1
- package/dist/esm/apis/AdminApi.js +809 -20
- package/dist/esm/models/AdminConceptDiagram.d.ts +165 -0
- package/dist/esm/models/AdminConceptDiagram.js +136 -0
- package/dist/esm/models/AdminConceptDiagramDetail.d.ts +203 -0
- package/dist/esm/models/AdminConceptDiagramDetail.js +162 -0
- package/dist/esm/models/AdminConceptImage.d.ts +183 -0
- package/dist/esm/models/AdminConceptImage.js +148 -0
- package/dist/esm/models/AdminConceptImageDetail.d.ts +221 -0
- package/dist/esm/models/AdminConceptImageDetail.js +174 -0
- package/dist/esm/models/AdminConceptMediaActor.d.ts +38 -0
- package/dist/esm/models/AdminConceptMediaActor.js +47 -0
- package/dist/esm/models/AdminConceptMediaConcept.d.ts +38 -0
- package/dist/esm/models/AdminConceptMediaConcept.js +47 -0
- package/dist/esm/models/AdminConceptMediaHistoryEntry.d.ts +92 -0
- package/dist/esm/models/AdminConceptMediaHistoryEntry.js +87 -0
- package/dist/esm/models/AdminConceptMediaRevision.d.ts +67 -0
- package/dist/esm/models/AdminConceptMediaRevision.js +70 -0
- package/dist/esm/models/AdminConceptSearchResult.d.ts +56 -0
- package/dist/esm/models/AdminConceptSearchResult.js +59 -0
- package/dist/esm/models/AdminGenerateConceptDiagramRequest.d.ts +56 -0
- package/dist/esm/models/AdminGenerateConceptDiagramRequest.js +51 -0
- package/dist/esm/models/AdminGenerateConceptImageRequest.d.ts +50 -0
- package/dist/esm/models/AdminGenerateConceptImageRequest.js +49 -0
- package/dist/esm/models/AdminGeneratedConceptDiagram.d.ts +219 -0
- package/dist/esm/models/AdminGeneratedConceptDiagram.js +175 -0
- package/dist/esm/models/AdminGeneratedConceptImage.d.ts +237 -0
- package/dist/esm/models/AdminGeneratedConceptImage.js +187 -0
- package/dist/esm/models/AdminPaginatedConceptDiagrams.d.ts +39 -0
- package/dist/esm/models/AdminPaginatedConceptDiagrams.js +48 -0
- package/dist/esm/models/AdminPaginatedConceptImages.d.ts +39 -0
- package/dist/esm/models/AdminPaginatedConceptImages.js +48 -0
- package/dist/esm/models/AdminRegenerateConceptDiagramRequest.d.ts +44 -0
- package/dist/esm/models/AdminRegenerateConceptDiagramRequest.js +47 -0
- package/dist/esm/models/AdminRegenerateConceptImageRequest.d.ts +38 -0
- package/dist/esm/models/AdminRegenerateConceptImageRequest.js +45 -0
- package/dist/esm/models/AdminShowConceptMediaRequest.d.ts +32 -0
- package/dist/esm/models/AdminShowConceptMediaRequest.js +41 -0
- package/dist/esm/models/AdminShownConceptDiagram.d.ts +215 -0
- package/dist/esm/models/AdminShownConceptDiagram.js +170 -0
- package/dist/esm/models/AdminShownConceptImage.d.ts +233 -0
- package/dist/esm/models/AdminShownConceptImage.js +182 -0
- package/dist/esm/models/index.d.ts +20 -0
- package/dist/esm/models/index.js +20 -0
- package/dist/models/AdminConceptDiagram.d.ts +165 -0
- package/dist/models/AdminConceptDiagram.js +144 -0
- package/dist/models/AdminConceptDiagramDetail.d.ts +203 -0
- package/dist/models/AdminConceptDiagramDetail.js +170 -0
- package/dist/models/AdminConceptImage.d.ts +183 -0
- package/dist/models/AdminConceptImage.js +156 -0
- package/dist/models/AdminConceptImageDetail.d.ts +221 -0
- package/dist/models/AdminConceptImageDetail.js +182 -0
- package/dist/models/AdminConceptMediaActor.d.ts +38 -0
- package/dist/models/AdminConceptMediaActor.js +54 -0
- package/dist/models/AdminConceptMediaConcept.d.ts +38 -0
- package/dist/models/AdminConceptMediaConcept.js +54 -0
- package/dist/models/AdminConceptMediaHistoryEntry.d.ts +92 -0
- package/dist/models/AdminConceptMediaHistoryEntry.js +95 -0
- package/dist/models/AdminConceptMediaRevision.d.ts +67 -0
- package/dist/models/AdminConceptMediaRevision.js +78 -0
- package/dist/models/AdminConceptSearchResult.d.ts +56 -0
- package/dist/models/AdminConceptSearchResult.js +66 -0
- package/dist/models/AdminGenerateConceptDiagramRequest.d.ts +56 -0
- package/dist/models/AdminGenerateConceptDiagramRequest.js +58 -0
- package/dist/models/AdminGenerateConceptImageRequest.d.ts +50 -0
- package/dist/models/AdminGenerateConceptImageRequest.js +56 -0
- package/dist/models/AdminGeneratedConceptDiagram.d.ts +219 -0
- package/dist/models/AdminGeneratedConceptDiagram.js +183 -0
- package/dist/models/AdminGeneratedConceptImage.d.ts +237 -0
- package/dist/models/AdminGeneratedConceptImage.js +195 -0
- package/dist/models/AdminPaginatedConceptDiagrams.d.ts +39 -0
- package/dist/models/AdminPaginatedConceptDiagrams.js +55 -0
- package/dist/models/AdminPaginatedConceptImages.d.ts +39 -0
- package/dist/models/AdminPaginatedConceptImages.js +55 -0
- package/dist/models/AdminRegenerateConceptDiagramRequest.d.ts +44 -0
- package/dist/models/AdminRegenerateConceptDiagramRequest.js +54 -0
- package/dist/models/AdminRegenerateConceptImageRequest.d.ts +38 -0
- package/dist/models/AdminRegenerateConceptImageRequest.js +52 -0
- package/dist/models/AdminShowConceptMediaRequest.d.ts +32 -0
- package/dist/models/AdminShowConceptMediaRequest.js +48 -0
- package/dist/models/AdminShownConceptDiagram.d.ts +215 -0
- package/dist/models/AdminShownConceptDiagram.js +178 -0
- package/dist/models/AdminShownConceptImage.d.ts +233 -0
- package/dist/models/AdminShownConceptImage.js +190 -0
- package/dist/models/index.d.ts +20 -0
- package/dist/models/index.js +20 -0
- package/package.json +1 -1
|
@@ -21,11 +21,177 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { AdminChatFromJSON, AdminChatAnalysisFromJSON, AdminChatCanvasUsageFromJSON, AdminChatWithStatsFromJSON, AdminCohortStatsFromJSON, AdminPaginatedActiveStreaksFromJSON, AdminPaginatedChatsFromJSON, AdminPaginatedLastExchangesFromJSON, AdminPaginatedQuizParticipantSessionsFromJSON, AdminPaginatedQuizSessionsFromJSON, AdminPaginatedStudyObjectiveUserCountsFromJSON, AdminPaginatedStudyObjectivesFromJSON, AdminPaginatedTaxonomyEnrollmentsFromJSON, AdminResetLearningDataResponseFromJSON, AdminStreakFromJSON, AdminStudyObjectiveSummaryFromJSON, AdminTriggerAnalysisResponseFromJSON, AdminUpdateChatRequestToJSON, AdminUserActivityFromJSON, AdminUserActivityTotalsFromJSON, AdminUserEngagementFromJSON, AdminUsersActivityRequestToJSON, AdminUsersActivityTotalsRequestToJSON, QuizSessionSummaryFromJSON, } from '../models/index';
|
|
24
|
+
import { AdminChatFromJSON, AdminChatAnalysisFromJSON, AdminChatCanvasUsageFromJSON, AdminChatWithStatsFromJSON, AdminCohortStatsFromJSON, AdminConceptDiagramDetailFromJSON, AdminConceptImageDetailFromJSON, AdminConceptSearchResultFromJSON, AdminGenerateConceptDiagramRequestToJSON, AdminGenerateConceptImageRequestToJSON, AdminGeneratedConceptDiagramFromJSON, AdminGeneratedConceptImageFromJSON, AdminPaginatedActiveStreaksFromJSON, AdminPaginatedChatsFromJSON, AdminPaginatedConceptDiagramsFromJSON, AdminPaginatedConceptImagesFromJSON, AdminPaginatedLastExchangesFromJSON, AdminPaginatedQuizParticipantSessionsFromJSON, AdminPaginatedQuizSessionsFromJSON, AdminPaginatedStudyObjectiveUserCountsFromJSON, AdminPaginatedStudyObjectivesFromJSON, AdminPaginatedTaxonomyEnrollmentsFromJSON, AdminRegenerateConceptDiagramRequestToJSON, AdminRegenerateConceptImageRequestToJSON, AdminResetLearningDataResponseFromJSON, AdminShowConceptMediaRequestToJSON, AdminShownConceptDiagramFromJSON, AdminShownConceptImageFromJSON, AdminStreakFromJSON, AdminStudyObjectiveSummaryFromJSON, AdminTriggerAnalysisResponseFromJSON, AdminUpdateChatRequestToJSON, AdminUserActivityFromJSON, AdminUserActivityTotalsFromJSON, AdminUserEngagementFromJSON, AdminUsersActivityRequestToJSON, AdminUsersActivityTotalsRequestToJSON, QuizSessionSummaryFromJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
28
|
export class AdminApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* Removes the diagram from every learner read and from the default admin list. The row is kept. Idempotent. Applies to later reads only: a diagram already rendered in an open chat stays until the chat is reloaded.
|
|
31
|
+
* Soft-delete a concept diagram
|
|
32
|
+
*/
|
|
33
|
+
adminDeleteConceptDiagramRaw(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 adminDeleteConceptDiagram().');
|
|
37
|
+
}
|
|
38
|
+
if (requestParameters['diagramId'] == null) {
|
|
39
|
+
throw new runtime.RequiredError('diagramId', 'Required parameter "diagramId" was null or undefined when calling adminDeleteConceptDiagram().');
|
|
40
|
+
}
|
|
41
|
+
const queryParameters = {};
|
|
42
|
+
const headerParameters = {};
|
|
43
|
+
if (requestParameters['xUserId'] != null) {
|
|
44
|
+
headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
|
|
45
|
+
}
|
|
46
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
47
|
+
headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
|
|
48
|
+
}
|
|
49
|
+
let urlPath = `/api/v1/admin/concept-diagrams/{diagramId}/delete`;
|
|
50
|
+
urlPath = urlPath.replace(`{${"diagramId"}}`, encodeURIComponent(String(requestParameters['diagramId'])));
|
|
51
|
+
const response = yield this.request({
|
|
52
|
+
path: urlPath,
|
|
53
|
+
method: 'POST',
|
|
54
|
+
headers: headerParameters,
|
|
55
|
+
query: queryParameters,
|
|
56
|
+
}, initOverrides);
|
|
57
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AdminConceptDiagramDetailFromJSON(jsonValue));
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Removes the diagram from every learner read and from the default admin list. The row is kept. Idempotent. Applies to later reads only: a diagram already rendered in an open chat stays until the chat is reloaded.
|
|
62
|
+
* Soft-delete a concept diagram
|
|
63
|
+
*/
|
|
64
|
+
adminDeleteConceptDiagram(requestParameters, initOverrides) {
|
|
65
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
66
|
+
const response = yield this.adminDeleteConceptDiagramRaw(requestParameters, initOverrides);
|
|
67
|
+
return yield response.value();
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Removes the image from every learner read and from the default admin list. The row and its stored image bytes are kept. Idempotent. Applies to later reads only: a signed URL already handed out stays valid until it expires (12 hours).
|
|
72
|
+
* Soft-delete a concept image
|
|
73
|
+
*/
|
|
74
|
+
adminDeleteConceptImageRaw(requestParameters, initOverrides) {
|
|
75
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
76
|
+
if (requestParameters['xUserId'] == null) {
|
|
77
|
+
throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling adminDeleteConceptImage().');
|
|
78
|
+
}
|
|
79
|
+
if (requestParameters['imageId'] == null) {
|
|
80
|
+
throw new runtime.RequiredError('imageId', 'Required parameter "imageId" was null or undefined when calling adminDeleteConceptImage().');
|
|
81
|
+
}
|
|
82
|
+
const queryParameters = {};
|
|
83
|
+
const headerParameters = {};
|
|
84
|
+
if (requestParameters['xUserId'] != null) {
|
|
85
|
+
headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
|
|
86
|
+
}
|
|
87
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
88
|
+
headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
|
|
89
|
+
}
|
|
90
|
+
let urlPath = `/api/v1/admin/concept-images/{imageId}/delete`;
|
|
91
|
+
urlPath = urlPath.replace(`{${"imageId"}}`, encodeURIComponent(String(requestParameters['imageId'])));
|
|
92
|
+
const response = yield this.request({
|
|
93
|
+
path: urlPath,
|
|
94
|
+
method: 'POST',
|
|
95
|
+
headers: headerParameters,
|
|
96
|
+
query: queryParameters,
|
|
97
|
+
}, initOverrides);
|
|
98
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AdminConceptImageDetailFromJSON(jsonValue));
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Removes the image from every learner read and from the default admin list. The row and its stored image bytes are kept. Idempotent. Applies to later reads only: a signed URL already handed out stays valid until it expires (12 hours).
|
|
103
|
+
* Soft-delete a concept image
|
|
104
|
+
*/
|
|
105
|
+
adminDeleteConceptImage(requestParameters, initOverrides) {
|
|
106
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
107
|
+
const response = yield this.adminDeleteConceptImageRaw(requestParameters, initOverrides);
|
|
108
|
+
return yield response.value();
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Generates a new diagram filed under exactly one concept: conceptId as-is, or conceptName resolved first (exact normalized name match, else the nearest concept within the dedup distance, else a new concept, which stays even if generation then fails). conceptResolution in the response says which. Exactly one of conceptId and conceptName is required. The diagram is attributed to the calling account user with no source chat. It is stored hidden for review and never matched to an existing diagram. Counts against the caller\'s admin limit (ADMIN_CONCEPT_DIAGRAM_DAILY_LIMIT per rolling 24 hours), not the learner limit.
|
|
113
|
+
* Generate a hidden draft diagram for a concept
|
|
114
|
+
*/
|
|
115
|
+
adminGenerateConceptDiagramRaw(requestParameters, initOverrides) {
|
|
116
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
117
|
+
if (requestParameters['xUserId'] == null) {
|
|
118
|
+
throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling adminGenerateConceptDiagram().');
|
|
119
|
+
}
|
|
120
|
+
if (requestParameters['adminGenerateConceptDiagramRequest'] == null) {
|
|
121
|
+
throw new runtime.RequiredError('adminGenerateConceptDiagramRequest', 'Required parameter "adminGenerateConceptDiagramRequest" was null or undefined when calling adminGenerateConceptDiagram().');
|
|
122
|
+
}
|
|
123
|
+
const queryParameters = {};
|
|
124
|
+
const headerParameters = {};
|
|
125
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
126
|
+
if (requestParameters['xUserId'] != null) {
|
|
127
|
+
headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
|
|
128
|
+
}
|
|
129
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
130
|
+
headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
|
|
131
|
+
}
|
|
132
|
+
let urlPath = `/api/v1/admin/concept-diagrams`;
|
|
133
|
+
const response = yield this.request({
|
|
134
|
+
path: urlPath,
|
|
135
|
+
method: 'POST',
|
|
136
|
+
headers: headerParameters,
|
|
137
|
+
query: queryParameters,
|
|
138
|
+
body: AdminGenerateConceptDiagramRequestToJSON(requestParameters['adminGenerateConceptDiagramRequest']),
|
|
139
|
+
}, initOverrides);
|
|
140
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AdminGeneratedConceptDiagramFromJSON(jsonValue));
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Generates a new diagram filed under exactly one concept: conceptId as-is, or conceptName resolved first (exact normalized name match, else the nearest concept within the dedup distance, else a new concept, which stays even if generation then fails). conceptResolution in the response says which. Exactly one of conceptId and conceptName is required. The diagram is attributed to the calling account user with no source chat. It is stored hidden for review and never matched to an existing diagram. Counts against the caller\'s admin limit (ADMIN_CONCEPT_DIAGRAM_DAILY_LIMIT per rolling 24 hours), not the learner limit.
|
|
145
|
+
* Generate a hidden draft diagram for a concept
|
|
146
|
+
*/
|
|
147
|
+
adminGenerateConceptDiagram(requestParameters, initOverrides) {
|
|
148
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
149
|
+
const response = yield this.adminGenerateConceptDiagramRaw(requestParameters, initOverrides);
|
|
150
|
+
return yield response.value();
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Generates a new image filed under exactly one concept: conceptId as-is, or conceptName resolved first (exact normalized name match, else the nearest concept within the dedup distance, else a new concept, which stays even if generation then fails). conceptResolution in the response says which. Exactly one of conceptId and conceptName is required. The image is attributed to the calling account user with no source chat. It is stored hidden for review and never matched to an existing image. Counts against the caller\'s admin limit (ADMIN_CONCEPT_IMAGE_DAILY_LIMIT per rolling 24 hours), not the learner limit.
|
|
155
|
+
* Generate a hidden draft image for a concept
|
|
156
|
+
*/
|
|
157
|
+
adminGenerateConceptImageRaw(requestParameters, initOverrides) {
|
|
158
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
159
|
+
if (requestParameters['xUserId'] == null) {
|
|
160
|
+
throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling adminGenerateConceptImage().');
|
|
161
|
+
}
|
|
162
|
+
if (requestParameters['adminGenerateConceptImageRequest'] == null) {
|
|
163
|
+
throw new runtime.RequiredError('adminGenerateConceptImageRequest', 'Required parameter "adminGenerateConceptImageRequest" was null or undefined when calling adminGenerateConceptImage().');
|
|
164
|
+
}
|
|
165
|
+
const queryParameters = {};
|
|
166
|
+
const headerParameters = {};
|
|
167
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
168
|
+
if (requestParameters['xUserId'] != null) {
|
|
169
|
+
headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
|
|
170
|
+
}
|
|
171
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
172
|
+
headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
|
|
173
|
+
}
|
|
174
|
+
let urlPath = `/api/v1/admin/concept-images`;
|
|
175
|
+
const response = yield this.request({
|
|
176
|
+
path: urlPath,
|
|
177
|
+
method: 'POST',
|
|
178
|
+
headers: headerParameters,
|
|
179
|
+
query: queryParameters,
|
|
180
|
+
body: AdminGenerateConceptImageRequestToJSON(requestParameters['adminGenerateConceptImageRequest']),
|
|
181
|
+
}, initOverrides);
|
|
182
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AdminGeneratedConceptImageFromJSON(jsonValue));
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Generates a new image filed under exactly one concept: conceptId as-is, or conceptName resolved first (exact normalized name match, else the nearest concept within the dedup distance, else a new concept, which stays even if generation then fails). conceptResolution in the response says which. Exactly one of conceptId and conceptName is required. The image is attributed to the calling account user with no source chat. It is stored hidden for review and never matched to an existing image. Counts against the caller\'s admin limit (ADMIN_CONCEPT_IMAGE_DAILY_LIMIT per rolling 24 hours), not the learner limit.
|
|
187
|
+
* Generate a hidden draft image for a concept
|
|
188
|
+
*/
|
|
189
|
+
adminGenerateConceptImage(requestParameters, initOverrides) {
|
|
190
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
191
|
+
const response = yield this.adminGenerateConceptImageRaw(requestParameters, initOverrides);
|
|
192
|
+
return yield response.value();
|
|
193
|
+
});
|
|
194
|
+
}
|
|
29
195
|
/**
|
|
30
196
|
* Get any chat by ID within the account
|
|
31
197
|
*/
|
|
@@ -190,6 +356,88 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
190
356
|
return yield response.value();
|
|
191
357
|
});
|
|
192
358
|
}
|
|
359
|
+
/**
|
|
360
|
+
* One diagram, hidden or deleted included, with its brief and assembled HTML document and its revision lineage.
|
|
361
|
+
* Get a library concept diagram in any state
|
|
362
|
+
*/
|
|
363
|
+
adminGetConceptDiagramRaw(requestParameters, initOverrides) {
|
|
364
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
365
|
+
if (requestParameters['xUserId'] == null) {
|
|
366
|
+
throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling adminGetConceptDiagram().');
|
|
367
|
+
}
|
|
368
|
+
if (requestParameters['diagramId'] == null) {
|
|
369
|
+
throw new runtime.RequiredError('diagramId', 'Required parameter "diagramId" was null or undefined when calling adminGetConceptDiagram().');
|
|
370
|
+
}
|
|
371
|
+
const queryParameters = {};
|
|
372
|
+
const headerParameters = {};
|
|
373
|
+
if (requestParameters['xUserId'] != null) {
|
|
374
|
+
headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
|
|
375
|
+
}
|
|
376
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
377
|
+
headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
|
|
378
|
+
}
|
|
379
|
+
let urlPath = `/api/v1/admin/concept-diagrams/{diagramId}`;
|
|
380
|
+
urlPath = urlPath.replace(`{${"diagramId"}}`, encodeURIComponent(String(requestParameters['diagramId'])));
|
|
381
|
+
const response = yield this.request({
|
|
382
|
+
path: urlPath,
|
|
383
|
+
method: 'GET',
|
|
384
|
+
headers: headerParameters,
|
|
385
|
+
query: queryParameters,
|
|
386
|
+
}, initOverrides);
|
|
387
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AdminConceptDiagramDetailFromJSON(jsonValue));
|
|
388
|
+
});
|
|
389
|
+
}
|
|
390
|
+
/**
|
|
391
|
+
* One diagram, hidden or deleted included, with its brief and assembled HTML document and its revision lineage.
|
|
392
|
+
* Get a library concept diagram in any state
|
|
393
|
+
*/
|
|
394
|
+
adminGetConceptDiagram(requestParameters, initOverrides) {
|
|
395
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
396
|
+
const response = yield this.adminGetConceptDiagramRaw(requestParameters, initOverrides);
|
|
397
|
+
return yield response.value();
|
|
398
|
+
});
|
|
399
|
+
}
|
|
400
|
+
/**
|
|
401
|
+
* One image, hidden or deleted included, with its prompt (and the editable prompt without the style preamble) and its revision lineage.
|
|
402
|
+
* Get a library concept image in any state
|
|
403
|
+
*/
|
|
404
|
+
adminGetConceptImageRaw(requestParameters, initOverrides) {
|
|
405
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
406
|
+
if (requestParameters['xUserId'] == null) {
|
|
407
|
+
throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling adminGetConceptImage().');
|
|
408
|
+
}
|
|
409
|
+
if (requestParameters['imageId'] == null) {
|
|
410
|
+
throw new runtime.RequiredError('imageId', 'Required parameter "imageId" was null or undefined when calling adminGetConceptImage().');
|
|
411
|
+
}
|
|
412
|
+
const queryParameters = {};
|
|
413
|
+
const headerParameters = {};
|
|
414
|
+
if (requestParameters['xUserId'] != null) {
|
|
415
|
+
headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
|
|
416
|
+
}
|
|
417
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
418
|
+
headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
|
|
419
|
+
}
|
|
420
|
+
let urlPath = `/api/v1/admin/concept-images/{imageId}`;
|
|
421
|
+
urlPath = urlPath.replace(`{${"imageId"}}`, encodeURIComponent(String(requestParameters['imageId'])));
|
|
422
|
+
const response = yield this.request({
|
|
423
|
+
path: urlPath,
|
|
424
|
+
method: 'GET',
|
|
425
|
+
headers: headerParameters,
|
|
426
|
+
query: queryParameters,
|
|
427
|
+
}, initOverrides);
|
|
428
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AdminConceptImageDetailFromJSON(jsonValue));
|
|
429
|
+
});
|
|
430
|
+
}
|
|
431
|
+
/**
|
|
432
|
+
* One image, hidden or deleted included, with its prompt (and the editable prompt without the style preamble) and its revision lineage.
|
|
433
|
+
* Get a library concept image in any state
|
|
434
|
+
*/
|
|
435
|
+
adminGetConceptImage(requestParameters, initOverrides) {
|
|
436
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
437
|
+
const response = yield this.adminGetConceptImageRaw(requestParameters, initOverrides);
|
|
438
|
+
return yield response.value();
|
|
439
|
+
});
|
|
440
|
+
}
|
|
193
441
|
/**
|
|
194
442
|
* Returns the session summary (quiz details, questions, responses, score) for any quiz session belonging to a user within the caller\'s account. Intended for admin-style views in calling applications; authorization on whether the calling user is allowed to act as an admin is the calling application\'s responsibility - this endpoint only enforces account isolation. Unlike the per-user `getQuizSessionSummary` endpoint, this endpoint does not gate on the `enhanced-quizzing` feature flag; an admin can read any historical session in their account regardless of whether the chat owner currently has the feature.
|
|
195
443
|
* Get quiz session summary for any session within the account
|
|
@@ -430,13 +678,184 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
430
678
|
return yield response.value();
|
|
431
679
|
});
|
|
432
680
|
}
|
|
681
|
+
/**
|
|
682
|
+
* 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.
|
|
683
|
+
* Hide a concept diagram from learners
|
|
684
|
+
*/
|
|
685
|
+
adminHideConceptDiagramRaw(requestParameters, initOverrides) {
|
|
686
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
687
|
+
if (requestParameters['xUserId'] == null) {
|
|
688
|
+
throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling adminHideConceptDiagram().');
|
|
689
|
+
}
|
|
690
|
+
if (requestParameters['diagramId'] == null) {
|
|
691
|
+
throw new runtime.RequiredError('diagramId', 'Required parameter "diagramId" was null or undefined when calling adminHideConceptDiagram().');
|
|
692
|
+
}
|
|
693
|
+
const queryParameters = {};
|
|
694
|
+
const headerParameters = {};
|
|
695
|
+
if (requestParameters['xUserId'] != null) {
|
|
696
|
+
headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
|
|
697
|
+
}
|
|
698
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
699
|
+
headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
|
|
700
|
+
}
|
|
701
|
+
let urlPath = `/api/v1/admin/concept-diagrams/{diagramId}/hide`;
|
|
702
|
+
urlPath = urlPath.replace(`{${"diagramId"}}`, encodeURIComponent(String(requestParameters['diagramId'])));
|
|
703
|
+
const response = yield this.request({
|
|
704
|
+
path: urlPath,
|
|
705
|
+
method: 'POST',
|
|
706
|
+
headers: headerParameters,
|
|
707
|
+
query: queryParameters,
|
|
708
|
+
}, initOverrides);
|
|
709
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AdminConceptDiagramDetailFromJSON(jsonValue));
|
|
710
|
+
});
|
|
711
|
+
}
|
|
712
|
+
/**
|
|
713
|
+
* 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.
|
|
714
|
+
* Hide a concept diagram from learners
|
|
715
|
+
*/
|
|
716
|
+
adminHideConceptDiagram(requestParameters, initOverrides) {
|
|
717
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
718
|
+
const response = yield this.adminHideConceptDiagramRaw(requestParameters, initOverrides);
|
|
719
|
+
return yield response.value();
|
|
720
|
+
});
|
|
721
|
+
}
|
|
722
|
+
/**
|
|
723
|
+
* 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).
|
|
724
|
+
* Hide a concept image from learners
|
|
725
|
+
*/
|
|
726
|
+
adminHideConceptImageRaw(requestParameters, initOverrides) {
|
|
727
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
728
|
+
if (requestParameters['xUserId'] == null) {
|
|
729
|
+
throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling adminHideConceptImage().');
|
|
730
|
+
}
|
|
731
|
+
if (requestParameters['imageId'] == null) {
|
|
732
|
+
throw new runtime.RequiredError('imageId', 'Required parameter "imageId" was null or undefined when calling adminHideConceptImage().');
|
|
733
|
+
}
|
|
734
|
+
const queryParameters = {};
|
|
735
|
+
const headerParameters = {};
|
|
736
|
+
if (requestParameters['xUserId'] != null) {
|
|
737
|
+
headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
|
|
738
|
+
}
|
|
739
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
740
|
+
headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
|
|
741
|
+
}
|
|
742
|
+
let urlPath = `/api/v1/admin/concept-images/{imageId}/hide`;
|
|
743
|
+
urlPath = urlPath.replace(`{${"imageId"}}`, encodeURIComponent(String(requestParameters['imageId'])));
|
|
744
|
+
const response = yield this.request({
|
|
745
|
+
path: urlPath,
|
|
746
|
+
method: 'POST',
|
|
747
|
+
headers: headerParameters,
|
|
748
|
+
query: queryParameters,
|
|
749
|
+
}, initOverrides);
|
|
750
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AdminConceptImageDetailFromJSON(jsonValue));
|
|
751
|
+
});
|
|
752
|
+
}
|
|
753
|
+
/**
|
|
754
|
+
* 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).
|
|
755
|
+
* Hide a concept image from learners
|
|
756
|
+
*/
|
|
757
|
+
adminHideConceptImage(requestParameters, initOverrides) {
|
|
758
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
759
|
+
const response = yield this.adminHideConceptImageRaw(requestParameters, initOverrides);
|
|
760
|
+
return yield response.value();
|
|
761
|
+
});
|
|
762
|
+
}
|
|
763
|
+
/**
|
|
764
|
+
* List all active streaks (currentDays > 0) across the account, paginated
|
|
765
|
+
*/
|
|
766
|
+
adminListActiveStreaksRaw(requestParameters, initOverrides) {
|
|
767
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
768
|
+
if (requestParameters['xUserId'] == null) {
|
|
769
|
+
throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling adminListActiveStreaks().');
|
|
770
|
+
}
|
|
771
|
+
const queryParameters = {};
|
|
772
|
+
if (requestParameters['limit'] != null) {
|
|
773
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
774
|
+
}
|
|
775
|
+
if (requestParameters['cursor'] != null) {
|
|
776
|
+
queryParameters['cursor'] = requestParameters['cursor'];
|
|
777
|
+
}
|
|
778
|
+
const headerParameters = {};
|
|
779
|
+
if (requestParameters['xUserId'] != null) {
|
|
780
|
+
headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
|
|
781
|
+
}
|
|
782
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
783
|
+
headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
|
|
784
|
+
}
|
|
785
|
+
let urlPath = `/api/v1/admin/streaks/active`;
|
|
786
|
+
const response = yield this.request({
|
|
787
|
+
path: urlPath,
|
|
788
|
+
method: 'GET',
|
|
789
|
+
headers: headerParameters,
|
|
790
|
+
query: queryParameters,
|
|
791
|
+
}, initOverrides);
|
|
792
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AdminPaginatedActiveStreaksFromJSON(jsonValue));
|
|
793
|
+
});
|
|
794
|
+
}
|
|
433
795
|
/**
|
|
434
796
|
* List all active streaks (currentDays > 0) across the account, paginated
|
|
435
797
|
*/
|
|
436
|
-
|
|
798
|
+
adminListActiveStreaks(requestParameters, initOverrides) {
|
|
799
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
800
|
+
const response = yield this.adminListActiveStreaksRaw(requestParameters, initOverrides);
|
|
801
|
+
return yield response.value();
|
|
802
|
+
});
|
|
803
|
+
}
|
|
804
|
+
/**
|
|
805
|
+
* List recent chats across all account users
|
|
806
|
+
*/
|
|
807
|
+
adminListChatsRaw(requestParameters, initOverrides) {
|
|
808
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
809
|
+
if (requestParameters['xUserId'] == null) {
|
|
810
|
+
throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling adminListChats().');
|
|
811
|
+
}
|
|
812
|
+
const queryParameters = {};
|
|
813
|
+
if (requestParameters['limit'] != null) {
|
|
814
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
815
|
+
}
|
|
816
|
+
if (requestParameters['cursor'] != null) {
|
|
817
|
+
queryParameters['cursor'] = requestParameters['cursor'];
|
|
818
|
+
}
|
|
819
|
+
if (requestParameters['chatType'] != null) {
|
|
820
|
+
queryParameters['chatType'] = requestParameters['chatType'];
|
|
821
|
+
}
|
|
822
|
+
if (requestParameters['forReview'] != null) {
|
|
823
|
+
queryParameters['forReview'] = requestParameters['forReview'];
|
|
824
|
+
}
|
|
825
|
+
const headerParameters = {};
|
|
826
|
+
if (requestParameters['xUserId'] != null) {
|
|
827
|
+
headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
|
|
828
|
+
}
|
|
829
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
830
|
+
headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
|
|
831
|
+
}
|
|
832
|
+
let urlPath = `/api/v1/admin/chats`;
|
|
833
|
+
const response = yield this.request({
|
|
834
|
+
path: urlPath,
|
|
835
|
+
method: 'GET',
|
|
836
|
+
headers: headerParameters,
|
|
837
|
+
query: queryParameters,
|
|
838
|
+
}, initOverrides);
|
|
839
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AdminPaginatedChatsFromJSON(jsonValue));
|
|
840
|
+
});
|
|
841
|
+
}
|
|
842
|
+
/**
|
|
843
|
+
* List recent chats across all account users
|
|
844
|
+
*/
|
|
845
|
+
adminListChats(requestParameters, initOverrides) {
|
|
846
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
847
|
+
const response = yield this.adminListChatsRaw(requestParameters, initOverrides);
|
|
848
|
+
return yield response.value();
|
|
849
|
+
});
|
|
850
|
+
}
|
|
851
|
+
/**
|
|
852
|
+
* Every persisted concept diagram, newest first, filtered by concept, creator, origin, and state. Deleted diagrams are left out unless state is deleted or all. Omits the HTML document; fetch one diagram to get it.
|
|
853
|
+
* List library concept diagrams in any state
|
|
854
|
+
*/
|
|
855
|
+
adminListConceptDiagramsRaw(requestParameters, initOverrides) {
|
|
437
856
|
return __awaiter(this, void 0, void 0, function* () {
|
|
438
857
|
if (requestParameters['xUserId'] == null) {
|
|
439
|
-
throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling
|
|
858
|
+
throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling adminListConceptDiagrams().');
|
|
440
859
|
}
|
|
441
860
|
const queryParameters = {};
|
|
442
861
|
if (requestParameters['limit'] != null) {
|
|
@@ -445,6 +864,24 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
445
864
|
if (requestParameters['cursor'] != null) {
|
|
446
865
|
queryParameters['cursor'] = requestParameters['cursor'];
|
|
447
866
|
}
|
|
867
|
+
if (requestParameters['conceptId'] != null) {
|
|
868
|
+
queryParameters['conceptId'] = requestParameters['conceptId'];
|
|
869
|
+
}
|
|
870
|
+
if (requestParameters['conceptQuery'] != null) {
|
|
871
|
+
queryParameters['conceptQuery'] = requestParameters['conceptQuery'];
|
|
872
|
+
}
|
|
873
|
+
if (requestParameters['creatorAccountUserId'] != null) {
|
|
874
|
+
queryParameters['creatorAccountUserId'] = requestParameters['creatorAccountUserId'];
|
|
875
|
+
}
|
|
876
|
+
if (requestParameters['creatorUserId'] != null) {
|
|
877
|
+
queryParameters['creatorUserId'] = requestParameters['creatorUserId'];
|
|
878
|
+
}
|
|
879
|
+
if (requestParameters['state'] != null) {
|
|
880
|
+
queryParameters['state'] = requestParameters['state'];
|
|
881
|
+
}
|
|
882
|
+
if (requestParameters['origin'] != null) {
|
|
883
|
+
queryParameters['origin'] = requestParameters['origin'];
|
|
884
|
+
}
|
|
448
885
|
const headerParameters = {};
|
|
449
886
|
if (requestParameters['xUserId'] != null) {
|
|
450
887
|
headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
|
|
@@ -452,32 +889,34 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
452
889
|
if (this.configuration && this.configuration.apiKey) {
|
|
453
890
|
headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
|
|
454
891
|
}
|
|
455
|
-
let urlPath = `/api/v1/admin/
|
|
892
|
+
let urlPath = `/api/v1/admin/concept-diagrams`;
|
|
456
893
|
const response = yield this.request({
|
|
457
894
|
path: urlPath,
|
|
458
895
|
method: 'GET',
|
|
459
896
|
headers: headerParameters,
|
|
460
897
|
query: queryParameters,
|
|
461
898
|
}, initOverrides);
|
|
462
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
899
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AdminPaginatedConceptDiagramsFromJSON(jsonValue));
|
|
463
900
|
});
|
|
464
901
|
}
|
|
465
902
|
/**
|
|
466
|
-
*
|
|
903
|
+
* Every persisted concept diagram, newest first, filtered by concept, creator, origin, and state. Deleted diagrams are left out unless state is deleted or all. Omits the HTML document; fetch one diagram to get it.
|
|
904
|
+
* List library concept diagrams in any state
|
|
467
905
|
*/
|
|
468
|
-
|
|
906
|
+
adminListConceptDiagrams(requestParameters, initOverrides) {
|
|
469
907
|
return __awaiter(this, void 0, void 0, function* () {
|
|
470
|
-
const response = yield this.
|
|
908
|
+
const response = yield this.adminListConceptDiagramsRaw(requestParameters, initOverrides);
|
|
471
909
|
return yield response.value();
|
|
472
910
|
});
|
|
473
911
|
}
|
|
474
912
|
/**
|
|
475
|
-
*
|
|
913
|
+
* Every persisted concept image, newest first, filtered by concept, creator, origin, and state. Deleted images are left out unless state is deleted or all. Each item carries a freshly signed read URL.
|
|
914
|
+
* List library concept images in any state
|
|
476
915
|
*/
|
|
477
|
-
|
|
916
|
+
adminListConceptImagesRaw(requestParameters, initOverrides) {
|
|
478
917
|
return __awaiter(this, void 0, void 0, function* () {
|
|
479
918
|
if (requestParameters['xUserId'] == null) {
|
|
480
|
-
throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling
|
|
919
|
+
throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling adminListConceptImages().');
|
|
481
920
|
}
|
|
482
921
|
const queryParameters = {};
|
|
483
922
|
if (requestParameters['limit'] != null) {
|
|
@@ -486,11 +925,23 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
486
925
|
if (requestParameters['cursor'] != null) {
|
|
487
926
|
queryParameters['cursor'] = requestParameters['cursor'];
|
|
488
927
|
}
|
|
489
|
-
if (requestParameters['
|
|
490
|
-
queryParameters['
|
|
928
|
+
if (requestParameters['conceptId'] != null) {
|
|
929
|
+
queryParameters['conceptId'] = requestParameters['conceptId'];
|
|
491
930
|
}
|
|
492
|
-
if (requestParameters['
|
|
493
|
-
queryParameters['
|
|
931
|
+
if (requestParameters['conceptQuery'] != null) {
|
|
932
|
+
queryParameters['conceptQuery'] = requestParameters['conceptQuery'];
|
|
933
|
+
}
|
|
934
|
+
if (requestParameters['creatorAccountUserId'] != null) {
|
|
935
|
+
queryParameters['creatorAccountUserId'] = requestParameters['creatorAccountUserId'];
|
|
936
|
+
}
|
|
937
|
+
if (requestParameters['creatorUserId'] != null) {
|
|
938
|
+
queryParameters['creatorUserId'] = requestParameters['creatorUserId'];
|
|
939
|
+
}
|
|
940
|
+
if (requestParameters['state'] != null) {
|
|
941
|
+
queryParameters['state'] = requestParameters['state'];
|
|
942
|
+
}
|
|
943
|
+
if (requestParameters['origin'] != null) {
|
|
944
|
+
queryParameters['origin'] = requestParameters['origin'];
|
|
494
945
|
}
|
|
495
946
|
const headerParameters = {};
|
|
496
947
|
if (requestParameters['xUserId'] != null) {
|
|
@@ -499,22 +950,23 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
499
950
|
if (this.configuration && this.configuration.apiKey) {
|
|
500
951
|
headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
|
|
501
952
|
}
|
|
502
|
-
let urlPath = `/api/v1/admin/
|
|
953
|
+
let urlPath = `/api/v1/admin/concept-images`;
|
|
503
954
|
const response = yield this.request({
|
|
504
955
|
path: urlPath,
|
|
505
956
|
method: 'GET',
|
|
506
957
|
headers: headerParameters,
|
|
507
958
|
query: queryParameters,
|
|
508
959
|
}, initOverrides);
|
|
509
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
960
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AdminPaginatedConceptImagesFromJSON(jsonValue));
|
|
510
961
|
});
|
|
511
962
|
}
|
|
512
963
|
/**
|
|
513
|
-
*
|
|
964
|
+
* Every persisted concept image, newest first, filtered by concept, creator, origin, and state. Deleted images are left out unless state is deleted or all. Each item carries a freshly signed read URL.
|
|
965
|
+
* List library concept images in any state
|
|
514
966
|
*/
|
|
515
|
-
|
|
967
|
+
adminListConceptImages(requestParameters, initOverrides) {
|
|
516
968
|
return __awaiter(this, void 0, void 0, function* () {
|
|
517
|
-
const response = yield this.
|
|
969
|
+
const response = yield this.adminListConceptImagesRaw(requestParameters, initOverrides);
|
|
518
970
|
return yield response.value();
|
|
519
971
|
});
|
|
520
972
|
}
|
|
@@ -867,6 +1319,98 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
867
1319
|
return yield response.value();
|
|
868
1320
|
});
|
|
869
1321
|
}
|
|
1322
|
+
/**
|
|
1323
|
+
* Generates a new diagram from an edited brief, linked to the original by revisesDiagramId even when the original is hidden or deleted, filed under the original\'s concept, attributed to the caller, and stored hidden. The original is left as it is. Counts against the caller\'s admin limit (ADMIN_CONCEPT_DIAGRAM_DAILY_LIMIT per rolling 24 hours).
|
|
1324
|
+
* Generate a hidden revision of a concept diagram
|
|
1325
|
+
*/
|
|
1326
|
+
adminRegenerateConceptDiagramRaw(requestParameters, initOverrides) {
|
|
1327
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1328
|
+
if (requestParameters['xUserId'] == null) {
|
|
1329
|
+
throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling adminRegenerateConceptDiagram().');
|
|
1330
|
+
}
|
|
1331
|
+
if (requestParameters['diagramId'] == null) {
|
|
1332
|
+
throw new runtime.RequiredError('diagramId', 'Required parameter "diagramId" was null or undefined when calling adminRegenerateConceptDiagram().');
|
|
1333
|
+
}
|
|
1334
|
+
if (requestParameters['adminRegenerateConceptDiagramRequest'] == null) {
|
|
1335
|
+
throw new runtime.RequiredError('adminRegenerateConceptDiagramRequest', 'Required parameter "adminRegenerateConceptDiagramRequest" was null or undefined when calling adminRegenerateConceptDiagram().');
|
|
1336
|
+
}
|
|
1337
|
+
const queryParameters = {};
|
|
1338
|
+
const headerParameters = {};
|
|
1339
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1340
|
+
if (requestParameters['xUserId'] != null) {
|
|
1341
|
+
headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
|
|
1342
|
+
}
|
|
1343
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1344
|
+
headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
|
|
1345
|
+
}
|
|
1346
|
+
let urlPath = `/api/v1/admin/concept-diagrams/{diagramId}/regenerate`;
|
|
1347
|
+
urlPath = urlPath.replace(`{${"diagramId"}}`, encodeURIComponent(String(requestParameters['diagramId'])));
|
|
1348
|
+
const response = yield this.request({
|
|
1349
|
+
path: urlPath,
|
|
1350
|
+
method: 'POST',
|
|
1351
|
+
headers: headerParameters,
|
|
1352
|
+
query: queryParameters,
|
|
1353
|
+
body: AdminRegenerateConceptDiagramRequestToJSON(requestParameters['adminRegenerateConceptDiagramRequest']),
|
|
1354
|
+
}, initOverrides);
|
|
1355
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AdminConceptDiagramDetailFromJSON(jsonValue));
|
|
1356
|
+
});
|
|
1357
|
+
}
|
|
1358
|
+
/**
|
|
1359
|
+
* Generates a new diagram from an edited brief, linked to the original by revisesDiagramId even when the original is hidden or deleted, filed under the original\'s concept, attributed to the caller, and stored hidden. The original is left as it is. Counts against the caller\'s admin limit (ADMIN_CONCEPT_DIAGRAM_DAILY_LIMIT per rolling 24 hours).
|
|
1360
|
+
* Generate a hidden revision of a concept diagram
|
|
1361
|
+
*/
|
|
1362
|
+
adminRegenerateConceptDiagram(requestParameters, initOverrides) {
|
|
1363
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1364
|
+
const response = yield this.adminRegenerateConceptDiagramRaw(requestParameters, initOverrides);
|
|
1365
|
+
return yield response.value();
|
|
1366
|
+
});
|
|
1367
|
+
}
|
|
1368
|
+
/**
|
|
1369
|
+
* Generates a new image from an edited prompt, linked to the original by revisesImageId even when the original is hidden or deleted, filed under the original\'s concept, attributed to the caller, and stored hidden. The original is left as it is. Counts against the caller\'s admin limit (ADMIN_CONCEPT_IMAGE_DAILY_LIMIT per rolling 24 hours).
|
|
1370
|
+
* Generate a hidden revision of a concept image
|
|
1371
|
+
*/
|
|
1372
|
+
adminRegenerateConceptImageRaw(requestParameters, initOverrides) {
|
|
1373
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1374
|
+
if (requestParameters['xUserId'] == null) {
|
|
1375
|
+
throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling adminRegenerateConceptImage().');
|
|
1376
|
+
}
|
|
1377
|
+
if (requestParameters['imageId'] == null) {
|
|
1378
|
+
throw new runtime.RequiredError('imageId', 'Required parameter "imageId" was null or undefined when calling adminRegenerateConceptImage().');
|
|
1379
|
+
}
|
|
1380
|
+
if (requestParameters['adminRegenerateConceptImageRequest'] == null) {
|
|
1381
|
+
throw new runtime.RequiredError('adminRegenerateConceptImageRequest', 'Required parameter "adminRegenerateConceptImageRequest" was null or undefined when calling adminRegenerateConceptImage().');
|
|
1382
|
+
}
|
|
1383
|
+
const queryParameters = {};
|
|
1384
|
+
const headerParameters = {};
|
|
1385
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1386
|
+
if (requestParameters['xUserId'] != null) {
|
|
1387
|
+
headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
|
|
1388
|
+
}
|
|
1389
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1390
|
+
headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
|
|
1391
|
+
}
|
|
1392
|
+
let urlPath = `/api/v1/admin/concept-images/{imageId}/regenerate`;
|
|
1393
|
+
urlPath = urlPath.replace(`{${"imageId"}}`, encodeURIComponent(String(requestParameters['imageId'])));
|
|
1394
|
+
const response = yield this.request({
|
|
1395
|
+
path: urlPath,
|
|
1396
|
+
method: 'POST',
|
|
1397
|
+
headers: headerParameters,
|
|
1398
|
+
query: queryParameters,
|
|
1399
|
+
body: AdminRegenerateConceptImageRequestToJSON(requestParameters['adminRegenerateConceptImageRequest']),
|
|
1400
|
+
}, initOverrides);
|
|
1401
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AdminConceptImageDetailFromJSON(jsonValue));
|
|
1402
|
+
});
|
|
1403
|
+
}
|
|
1404
|
+
/**
|
|
1405
|
+
* Generates a new image from an edited prompt, linked to the original by revisesImageId even when the original is hidden or deleted, filed under the original\'s concept, attributed to the caller, and stored hidden. The original is left as it is. Counts against the caller\'s admin limit (ADMIN_CONCEPT_IMAGE_DAILY_LIMIT per rolling 24 hours).
|
|
1406
|
+
* Generate a hidden revision of a concept image
|
|
1407
|
+
*/
|
|
1408
|
+
adminRegenerateConceptImage(requestParameters, initOverrides) {
|
|
1409
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1410
|
+
const response = yield this.adminRegenerateConceptImageRaw(requestParameters, initOverrides);
|
|
1411
|
+
return yield response.value();
|
|
1412
|
+
});
|
|
1413
|
+
}
|
|
870
1414
|
/**
|
|
871
1415
|
* Wipes all per-user learning data (chats, quizzes, flashcards, study objectives, concepts, streaks, files, etc.) for the target user while preserving their account-user and user records — and therefore their external identity and Canvas connection. Does not re-seed any demo data. Intended for single-account demo/test users: learning streaks are keyed on the user (not the account), so a user who belongs to multiple accounts has their streak cleared everywhere.
|
|
872
1416
|
* Reset a user\'s Athena learning data to a blank slate
|
|
@@ -908,6 +1452,217 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
908
1452
|
return yield response.value();
|
|
909
1453
|
});
|
|
910
1454
|
}
|
|
1455
|
+
/**
|
|
1456
|
+
* 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.
|
|
1457
|
+
* Restore a soft-deleted concept diagram
|
|
1458
|
+
*/
|
|
1459
|
+
adminRestoreConceptDiagramRaw(requestParameters, initOverrides) {
|
|
1460
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1461
|
+
if (requestParameters['xUserId'] == null) {
|
|
1462
|
+
throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling adminRestoreConceptDiagram().');
|
|
1463
|
+
}
|
|
1464
|
+
if (requestParameters['diagramId'] == null) {
|
|
1465
|
+
throw new runtime.RequiredError('diagramId', 'Required parameter "diagramId" was null or undefined when calling adminRestoreConceptDiagram().');
|
|
1466
|
+
}
|
|
1467
|
+
const queryParameters = {};
|
|
1468
|
+
const headerParameters = {};
|
|
1469
|
+
if (requestParameters['xUserId'] != null) {
|
|
1470
|
+
headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
|
|
1471
|
+
}
|
|
1472
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1473
|
+
headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
|
|
1474
|
+
}
|
|
1475
|
+
let urlPath = `/api/v1/admin/concept-diagrams/{diagramId}/restore`;
|
|
1476
|
+
urlPath = urlPath.replace(`{${"diagramId"}}`, encodeURIComponent(String(requestParameters['diagramId'])));
|
|
1477
|
+
const response = yield this.request({
|
|
1478
|
+
path: urlPath,
|
|
1479
|
+
method: 'POST',
|
|
1480
|
+
headers: headerParameters,
|
|
1481
|
+
query: queryParameters,
|
|
1482
|
+
}, initOverrides);
|
|
1483
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AdminConceptDiagramDetailFromJSON(jsonValue));
|
|
1484
|
+
});
|
|
1485
|
+
}
|
|
1486
|
+
/**
|
|
1487
|
+
* 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.
|
|
1488
|
+
* Restore a soft-deleted concept diagram
|
|
1489
|
+
*/
|
|
1490
|
+
adminRestoreConceptDiagram(requestParameters, initOverrides) {
|
|
1491
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1492
|
+
const response = yield this.adminRestoreConceptDiagramRaw(requestParameters, initOverrides);
|
|
1493
|
+
return yield response.value();
|
|
1494
|
+
});
|
|
1495
|
+
}
|
|
1496
|
+
/**
|
|
1497
|
+
* 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.
|
|
1498
|
+
* Restore a soft-deleted concept image
|
|
1499
|
+
*/
|
|
1500
|
+
adminRestoreConceptImageRaw(requestParameters, initOverrides) {
|
|
1501
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1502
|
+
if (requestParameters['xUserId'] == null) {
|
|
1503
|
+
throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling adminRestoreConceptImage().');
|
|
1504
|
+
}
|
|
1505
|
+
if (requestParameters['imageId'] == null) {
|
|
1506
|
+
throw new runtime.RequiredError('imageId', 'Required parameter "imageId" was null or undefined when calling adminRestoreConceptImage().');
|
|
1507
|
+
}
|
|
1508
|
+
const queryParameters = {};
|
|
1509
|
+
const headerParameters = {};
|
|
1510
|
+
if (requestParameters['xUserId'] != null) {
|
|
1511
|
+
headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
|
|
1512
|
+
}
|
|
1513
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1514
|
+
headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
|
|
1515
|
+
}
|
|
1516
|
+
let urlPath = `/api/v1/admin/concept-images/{imageId}/restore`;
|
|
1517
|
+
urlPath = urlPath.replace(`{${"imageId"}}`, encodeURIComponent(String(requestParameters['imageId'])));
|
|
1518
|
+
const response = yield this.request({
|
|
1519
|
+
path: urlPath,
|
|
1520
|
+
method: 'POST',
|
|
1521
|
+
headers: headerParameters,
|
|
1522
|
+
query: queryParameters,
|
|
1523
|
+
}, initOverrides);
|
|
1524
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AdminConceptImageDetailFromJSON(jsonValue));
|
|
1525
|
+
});
|
|
1526
|
+
}
|
|
1527
|
+
/**
|
|
1528
|
+
* 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.
|
|
1529
|
+
* Restore a soft-deleted concept image
|
|
1530
|
+
*/
|
|
1531
|
+
adminRestoreConceptImage(requestParameters, initOverrides) {
|
|
1532
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1533
|
+
const response = yield this.adminRestoreConceptImageRaw(requestParameters, initOverrides);
|
|
1534
|
+
return yield response.value();
|
|
1535
|
+
});
|
|
1536
|
+
}
|
|
1537
|
+
/**
|
|
1538
|
+
* Concepts whose name contains the query (case-insensitive), exact and prefix matches first, each with its count of non-deleted library images and diagrams. For picking the concept an admin-generated image or diagram is filed under. Without a query, concepts by name.
|
|
1539
|
+
* Search the global concepts by name
|
|
1540
|
+
*/
|
|
1541
|
+
adminSearchConceptsRaw(requestParameters, initOverrides) {
|
|
1542
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1543
|
+
if (requestParameters['xUserId'] == null) {
|
|
1544
|
+
throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling adminSearchConcepts().');
|
|
1545
|
+
}
|
|
1546
|
+
const queryParameters = {};
|
|
1547
|
+
if (requestParameters['query'] != null) {
|
|
1548
|
+
queryParameters['query'] = requestParameters['query'];
|
|
1549
|
+
}
|
|
1550
|
+
if (requestParameters['limit'] != null) {
|
|
1551
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
1552
|
+
}
|
|
1553
|
+
const headerParameters = {};
|
|
1554
|
+
if (requestParameters['xUserId'] != null) {
|
|
1555
|
+
headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
|
|
1556
|
+
}
|
|
1557
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1558
|
+
headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
|
|
1559
|
+
}
|
|
1560
|
+
let urlPath = `/api/v1/admin/concepts`;
|
|
1561
|
+
const response = yield this.request({
|
|
1562
|
+
path: urlPath,
|
|
1563
|
+
method: 'GET',
|
|
1564
|
+
headers: headerParameters,
|
|
1565
|
+
query: queryParameters,
|
|
1566
|
+
}, initOverrides);
|
|
1567
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(AdminConceptSearchResultFromJSON));
|
|
1568
|
+
});
|
|
1569
|
+
}
|
|
1570
|
+
/**
|
|
1571
|
+
* Concepts whose name contains the query (case-insensitive), exact and prefix matches first, each with its count of non-deleted library images and diagrams. For picking the concept an admin-generated image or diagram is filed under. Without a query, concepts by name.
|
|
1572
|
+
* Search the global concepts by name
|
|
1573
|
+
*/
|
|
1574
|
+
adminSearchConcepts(requestParameters, initOverrides) {
|
|
1575
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1576
|
+
const response = yield this.adminSearchConceptsRaw(requestParameters, initOverrides);
|
|
1577
|
+
return yield response.value();
|
|
1578
|
+
});
|
|
1579
|
+
}
|
|
1580
|
+
/**
|
|
1581
|
+
* 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.
|
|
1582
|
+
* Show a hidden concept diagram to learners
|
|
1583
|
+
*/
|
|
1584
|
+
adminShowConceptDiagramRaw(requestParameters, initOverrides) {
|
|
1585
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1586
|
+
if (requestParameters['xUserId'] == null) {
|
|
1587
|
+
throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling adminShowConceptDiagram().');
|
|
1588
|
+
}
|
|
1589
|
+
if (requestParameters['diagramId'] == null) {
|
|
1590
|
+
throw new runtime.RequiredError('diagramId', 'Required parameter "diagramId" was null or undefined when calling adminShowConceptDiagram().');
|
|
1591
|
+
}
|
|
1592
|
+
const queryParameters = {};
|
|
1593
|
+
const headerParameters = {};
|
|
1594
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1595
|
+
if (requestParameters['xUserId'] != null) {
|
|
1596
|
+
headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
|
|
1597
|
+
}
|
|
1598
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1599
|
+
headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
|
|
1600
|
+
}
|
|
1601
|
+
let urlPath = `/api/v1/admin/concept-diagrams/{diagramId}/show`;
|
|
1602
|
+
urlPath = urlPath.replace(`{${"diagramId"}}`, encodeURIComponent(String(requestParameters['diagramId'])));
|
|
1603
|
+
const response = yield this.request({
|
|
1604
|
+
path: urlPath,
|
|
1605
|
+
method: 'POST',
|
|
1606
|
+
headers: headerParameters,
|
|
1607
|
+
query: queryParameters,
|
|
1608
|
+
body: AdminShowConceptMediaRequestToJSON(requestParameters['adminShowConceptMediaRequest']),
|
|
1609
|
+
}, initOverrides);
|
|
1610
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AdminShownConceptDiagramFromJSON(jsonValue));
|
|
1611
|
+
});
|
|
1612
|
+
}
|
|
1613
|
+
/**
|
|
1614
|
+
* 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.
|
|
1615
|
+
* Show a hidden concept diagram to learners
|
|
1616
|
+
*/
|
|
1617
|
+
adminShowConceptDiagram(requestParameters, initOverrides) {
|
|
1618
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1619
|
+
const response = yield this.adminShowConceptDiagramRaw(requestParameters, initOverrides);
|
|
1620
|
+
return yield response.value();
|
|
1621
|
+
});
|
|
1622
|
+
}
|
|
1623
|
+
/**
|
|
1624
|
+
* 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).
|
|
1625
|
+
* Show a hidden concept image to learners
|
|
1626
|
+
*/
|
|
1627
|
+
adminShowConceptImageRaw(requestParameters, initOverrides) {
|
|
1628
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1629
|
+
if (requestParameters['xUserId'] == null) {
|
|
1630
|
+
throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling adminShowConceptImage().');
|
|
1631
|
+
}
|
|
1632
|
+
if (requestParameters['imageId'] == null) {
|
|
1633
|
+
throw new runtime.RequiredError('imageId', 'Required parameter "imageId" was null or undefined when calling adminShowConceptImage().');
|
|
1634
|
+
}
|
|
1635
|
+
const queryParameters = {};
|
|
1636
|
+
const headerParameters = {};
|
|
1637
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1638
|
+
if (requestParameters['xUserId'] != null) {
|
|
1639
|
+
headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
|
|
1640
|
+
}
|
|
1641
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1642
|
+
headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
|
|
1643
|
+
}
|
|
1644
|
+
let urlPath = `/api/v1/admin/concept-images/{imageId}/show`;
|
|
1645
|
+
urlPath = urlPath.replace(`{${"imageId"}}`, encodeURIComponent(String(requestParameters['imageId'])));
|
|
1646
|
+
const response = yield this.request({
|
|
1647
|
+
path: urlPath,
|
|
1648
|
+
method: 'POST',
|
|
1649
|
+
headers: headerParameters,
|
|
1650
|
+
query: queryParameters,
|
|
1651
|
+
body: AdminShowConceptMediaRequestToJSON(requestParameters['adminShowConceptMediaRequest']),
|
|
1652
|
+
}, initOverrides);
|
|
1653
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AdminShownConceptImageFromJSON(jsonValue));
|
|
1654
|
+
});
|
|
1655
|
+
}
|
|
1656
|
+
/**
|
|
1657
|
+
* 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).
|
|
1658
|
+
* Show a hidden concept image to learners
|
|
1659
|
+
*/
|
|
1660
|
+
adminShowConceptImage(requestParameters, initOverrides) {
|
|
1661
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1662
|
+
const response = yield this.adminShowConceptImageRaw(requestParameters, initOverrides);
|
|
1663
|
+
return yield response.value();
|
|
1664
|
+
});
|
|
1665
|
+
}
|
|
911
1666
|
/**
|
|
912
1667
|
* Trigger re-analysis for a chat
|
|
913
1668
|
*/
|
|
@@ -992,6 +1747,40 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
992
1747
|
});
|
|
993
1748
|
}
|
|
994
1749
|
}
|
|
1750
|
+
/**
|
|
1751
|
+
* @export
|
|
1752
|
+
*/
|
|
1753
|
+
export const AdminListConceptDiagramsStateEnum = {
|
|
1754
|
+
NotDeleted: 'not_deleted',
|
|
1755
|
+
Visible: 'visible',
|
|
1756
|
+
Hidden: 'hidden',
|
|
1757
|
+
Deleted: 'deleted',
|
|
1758
|
+
All: 'all'
|
|
1759
|
+
};
|
|
1760
|
+
/**
|
|
1761
|
+
* @export
|
|
1762
|
+
*/
|
|
1763
|
+
export const AdminListConceptDiagramsOriginEnum = {
|
|
1764
|
+
Chat: 'chat',
|
|
1765
|
+
Admin: 'admin'
|
|
1766
|
+
};
|
|
1767
|
+
/**
|
|
1768
|
+
* @export
|
|
1769
|
+
*/
|
|
1770
|
+
export const AdminListConceptImagesStateEnum = {
|
|
1771
|
+
NotDeleted: 'not_deleted',
|
|
1772
|
+
Visible: 'visible',
|
|
1773
|
+
Hidden: 'hidden',
|
|
1774
|
+
Deleted: 'deleted',
|
|
1775
|
+
All: 'all'
|
|
1776
|
+
};
|
|
1777
|
+
/**
|
|
1778
|
+
* @export
|
|
1779
|
+
*/
|
|
1780
|
+
export const AdminListConceptImagesOriginEnum = {
|
|
1781
|
+
Chat: 'chat',
|
|
1782
|
+
Admin: 'admin'
|
|
1783
|
+
};
|
|
995
1784
|
/**
|
|
996
1785
|
* @export
|
|
997
1786
|
*/
|