@instructure/athena-api-client 4.2.1 → 4.4.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 +7 -0
- package/dist/apis/AdminApi.d.ts +63 -5
- package/dist/apis/AdminApi.js +177 -4
- package/dist/esm/apis/AdminApi.d.ts +63 -5
- package/dist/esm/apis/AdminApi.js +178 -5
- package/dist/esm/models/AdminConceptDiagram.d.ts +6 -0
- package/dist/esm/models/AdminConceptDiagram.js +4 -0
- package/dist/esm/models/AdminConceptDiagramDetail.d.ts +6 -0
- package/dist/esm/models/AdminConceptDiagramDetail.js +4 -0
- package/dist/esm/models/AdminConceptImage.d.ts +6 -0
- package/dist/esm/models/AdminConceptImage.js +4 -0
- package/dist/esm/models/AdminConceptImageDetail.d.ts +6 -0
- package/dist/esm/models/AdminConceptImageDetail.js +4 -0
- package/dist/esm/models/AdminConceptMediaJob.d.ts +4 -3
- package/dist/esm/models/AdminConceptMediaJob.js +2 -1
- package/dist/esm/models/AdminReviseConceptDiagramRequest.d.ts +44 -0
- package/dist/esm/models/AdminReviseConceptDiagramRequest.js +47 -0
- package/dist/esm/models/AdminReviseConceptImageRequest.d.ts +38 -0
- package/dist/esm/models/AdminReviseConceptImageRequest.js +45 -0
- package/dist/esm/models/AdminShownConceptDiagram.d.ts +6 -0
- package/dist/esm/models/AdminShownConceptDiagram.js +4 -0
- package/dist/esm/models/AdminShownConceptImage.d.ts +6 -0
- package/dist/esm/models/AdminShownConceptImage.js +4 -0
- package/dist/esm/models/AdminTopConcept.d.ts +62 -0
- package/dist/esm/models/AdminTopConcept.js +63 -0
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.js +3 -0
- package/dist/models/AdminConceptDiagram.d.ts +6 -0
- package/dist/models/AdminConceptDiagram.js +4 -0
- package/dist/models/AdminConceptDiagramDetail.d.ts +6 -0
- package/dist/models/AdminConceptDiagramDetail.js +4 -0
- package/dist/models/AdminConceptImage.d.ts +6 -0
- package/dist/models/AdminConceptImage.js +4 -0
- package/dist/models/AdminConceptImageDetail.d.ts +6 -0
- package/dist/models/AdminConceptImageDetail.js +4 -0
- package/dist/models/AdminConceptMediaJob.d.ts +4 -3
- package/dist/models/AdminConceptMediaJob.js +2 -1
- package/dist/models/AdminReviseConceptDiagramRequest.d.ts +44 -0
- package/dist/models/AdminReviseConceptDiagramRequest.js +54 -0
- package/dist/models/AdminReviseConceptImageRequest.d.ts +38 -0
- package/dist/models/AdminReviseConceptImageRequest.js +52 -0
- package/dist/models/AdminShownConceptDiagram.d.ts +6 -0
- package/dist/models/AdminShownConceptDiagram.js +4 -0
- package/dist/models/AdminShownConceptImage.d.ts +6 -0
- package/dist/models/AdminShownConceptImage.js +4 -0
- package/dist/models/AdminTopConcept.d.ts +62 -0
- package/dist/models/AdminTopConcept.js +70 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/package.json +1 -1
|
@@ -21,7 +21,7 @@ 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, AdminConceptDiagramDetailFromJSON, AdminConceptImageDetailFromJSON, AdminConceptMediaJobFromJSON, AdminConceptSearchResultFromJSON, AdminGenerateConceptDiagramRequestToJSON, AdminGenerateConceptImageRequestToJSON, 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';
|
|
24
|
+
import { AdminChatFromJSON, AdminChatAnalysisFromJSON, AdminChatCanvasUsageFromJSON, AdminChatWithStatsFromJSON, AdminCohortStatsFromJSON, AdminConceptDiagramDetailFromJSON, AdminConceptImageDetailFromJSON, AdminConceptMediaJobFromJSON, AdminConceptSearchResultFromJSON, AdminGenerateConceptDiagramRequestToJSON, AdminGenerateConceptImageRequestToJSON, AdminPaginatedActiveStreaksFromJSON, AdminPaginatedChatsFromJSON, AdminPaginatedConceptDiagramsFromJSON, AdminPaginatedConceptImagesFromJSON, AdminPaginatedLastExchangesFromJSON, AdminPaginatedQuizParticipantSessionsFromJSON, AdminPaginatedQuizSessionsFromJSON, AdminPaginatedStudyObjectiveUserCountsFromJSON, AdminPaginatedStudyObjectivesFromJSON, AdminPaginatedTaxonomyEnrollmentsFromJSON, AdminRegenerateConceptDiagramRequestToJSON, AdminRegenerateConceptImageRequestToJSON, AdminResetLearningDataResponseFromJSON, AdminReviseConceptDiagramRequestToJSON, AdminReviseConceptImageRequestToJSON, AdminShowConceptMediaRequestToJSON, AdminShownConceptDiagramFromJSON, AdminShownConceptImageFromJSON, AdminStreakFromJSON, AdminStudyObjectiveSummaryFromJSON, AdminTopConceptFromJSON, AdminTriggerAnalysisResponseFromJSON, AdminUpdateChatRequestToJSON, AdminUserActivityFromJSON, AdminUserActivityTotalsFromJSON, AdminUserEngagementFromJSON, AdminUsersActivityRequestToJSON, AdminUsersActivityTotalsRequestToJSON, QuizSessionSummaryFromJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -356,6 +356,47 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
356
356
|
return yield response.value();
|
|
357
357
|
});
|
|
358
358
|
}
|
|
359
|
+
/**
|
|
360
|
+
* The concept with its count of non-deleted library images and diagrams, in the same shape as a concept search result.
|
|
361
|
+
* Get one concept with its media counts
|
|
362
|
+
*/
|
|
363
|
+
adminGetConceptRaw(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 adminGetConcept().');
|
|
367
|
+
}
|
|
368
|
+
if (requestParameters['id'] == null) {
|
|
369
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling adminGetConcept().');
|
|
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/concepts/{id}`;
|
|
380
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
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) => AdminConceptSearchResultFromJSON(jsonValue));
|
|
388
|
+
});
|
|
389
|
+
}
|
|
390
|
+
/**
|
|
391
|
+
* The concept with its count of non-deleted library images and diagrams, in the same shape as a concept search result.
|
|
392
|
+
* Get one concept with its media counts
|
|
393
|
+
*/
|
|
394
|
+
adminGetConcept(requestParameters, initOverrides) {
|
|
395
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
396
|
+
const response = yield this.adminGetConceptRaw(requestParameters, initOverrides);
|
|
397
|
+
return yield response.value();
|
|
398
|
+
});
|
|
399
|
+
}
|
|
359
400
|
/**
|
|
360
401
|
* One diagram, hidden or deleted included, with its brief and assembled HTML document and its revision lineage.
|
|
361
402
|
* Get a library concept diagram in any state
|
|
@@ -1322,6 +1363,46 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
1322
1363
|
return yield response.value();
|
|
1323
1364
|
});
|
|
1324
1365
|
}
|
|
1366
|
+
/**
|
|
1367
|
+
* Concepts ranked by how many distinct users hold a user concept for them (a user with several account users counts once), most first, then by name. Concepts no user holds are left out. Each comes with its count of non-deleted library images and diagrams, for choosing which concepts to pre-generate media for.
|
|
1368
|
+
* List the concepts the most users have
|
|
1369
|
+
*/
|
|
1370
|
+
adminListTopConceptsRaw(requestParameters, initOverrides) {
|
|
1371
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1372
|
+
if (requestParameters['xUserId'] == null) {
|
|
1373
|
+
throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling adminListTopConcepts().');
|
|
1374
|
+
}
|
|
1375
|
+
const queryParameters = {};
|
|
1376
|
+
if (requestParameters['limit'] != null) {
|
|
1377
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
1378
|
+
}
|
|
1379
|
+
const headerParameters = {};
|
|
1380
|
+
if (requestParameters['xUserId'] != null) {
|
|
1381
|
+
headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
|
|
1382
|
+
}
|
|
1383
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1384
|
+
headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
|
|
1385
|
+
}
|
|
1386
|
+
let urlPath = `/api/v1/admin/concepts/top`;
|
|
1387
|
+
const response = yield this.request({
|
|
1388
|
+
path: urlPath,
|
|
1389
|
+
method: 'GET',
|
|
1390
|
+
headers: headerParameters,
|
|
1391
|
+
query: queryParameters,
|
|
1392
|
+
}, initOverrides);
|
|
1393
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(AdminTopConceptFromJSON));
|
|
1394
|
+
});
|
|
1395
|
+
}
|
|
1396
|
+
/**
|
|
1397
|
+
* Concepts ranked by how many distinct users hold a user concept for them (a user with several account users counts once), most first, then by name. Concepts no user holds are left out. Each comes with its count of non-deleted library images and diagrams, for choosing which concepts to pre-generate media for.
|
|
1398
|
+
* List the concepts the most users have
|
|
1399
|
+
*/
|
|
1400
|
+
adminListTopConcepts(requestParameters, initOverrides) {
|
|
1401
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1402
|
+
const response = yield this.adminListTopConceptsRaw(requestParameters, initOverrides);
|
|
1403
|
+
return yield response.value();
|
|
1404
|
+
});
|
|
1405
|
+
}
|
|
1325
1406
|
/**
|
|
1326
1407
|
* List top N streaks across the account
|
|
1327
1408
|
*/
|
|
@@ -1361,7 +1442,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
1361
1442
|
});
|
|
1362
1443
|
}
|
|
1363
1444
|
/**
|
|
1364
|
-
* Returns 202 with a pending job at once; the generation runs in a background worker. Poll adminGetConceptMediaJob with the job id until status is succeeded (resultMediaId is the new draft) or failed (errorCode says why: off_topic, moderation_blocked, timeout, not_found, generation_failed, authoring_failed, save_failed, limit_reached, internal_error, delivery_failed). Each job runs its paid generation at most once: retry a failed job by enqueueing a new one. The new diagram is generated 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).
|
|
1445
|
+
* Returns 202 with a pending job at once; the generation runs in a background worker. Poll adminGetConceptMediaJob with the job id until status is succeeded (resultMediaId is the new draft) or failed (errorCode says why: off_topic, moderation_blocked, timeout, not_found, generation_failed, authoring_failed, save_failed, limit_reached, internal_error, delivery_failed). Each job runs its paid generation at most once: retry a failed job by enqueueing a new one. The new diagram is generated 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). To change only part of the diagram and keep the rest, use adminReviseConceptDiagram instead.
|
|
1365
1446
|
* Enqueue a hidden revision of a concept diagram
|
|
1366
1447
|
*/
|
|
1367
1448
|
adminRegenerateConceptDiagramRaw(requestParameters, initOverrides) {
|
|
@@ -1397,7 +1478,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
1397
1478
|
});
|
|
1398
1479
|
}
|
|
1399
1480
|
/**
|
|
1400
|
-
* Returns 202 with a pending job at once; the generation runs in a background worker. Poll adminGetConceptMediaJob with the job id until status is succeeded (resultMediaId is the new draft) or failed (errorCode says why: off_topic, moderation_blocked, timeout, not_found, generation_failed, authoring_failed, save_failed, limit_reached, internal_error, delivery_failed). Each job runs its paid generation at most once: retry a failed job by enqueueing a new one. The new diagram is generated 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).
|
|
1481
|
+
* Returns 202 with a pending job at once; the generation runs in a background worker. Poll adminGetConceptMediaJob with the job id until status is succeeded (resultMediaId is the new draft) or failed (errorCode says why: off_topic, moderation_blocked, timeout, not_found, generation_failed, authoring_failed, save_failed, limit_reached, internal_error, delivery_failed). Each job runs its paid generation at most once: retry a failed job by enqueueing a new one. The new diagram is generated 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). To change only part of the diagram and keep the rest, use adminReviseConceptDiagram instead.
|
|
1401
1482
|
* Enqueue a hidden revision of a concept diagram
|
|
1402
1483
|
*/
|
|
1403
1484
|
adminRegenerateConceptDiagram(requestParameters, initOverrides) {
|
|
@@ -1407,7 +1488,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
1407
1488
|
});
|
|
1408
1489
|
}
|
|
1409
1490
|
/**
|
|
1410
|
-
* Returns 202 with a pending job at once; the generation runs in a background worker. Poll adminGetConceptMediaJob with the job id until status is succeeded (resultMediaId is the new draft) or failed (errorCode says why: off_topic, moderation_blocked, timeout, not_found, generation_failed, authoring_failed, save_failed, limit_reached, internal_error, delivery_failed). Each job runs its paid generation at most once: retry a failed job by enqueueing a new one. The new image is generated 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).
|
|
1491
|
+
* Returns 202 with a pending job at once; the generation runs in a background worker. Poll adminGetConceptMediaJob with the job id until status is succeeded (resultMediaId is the new draft) or failed (errorCode says why: off_topic, moderation_blocked, timeout, not_found, generation_failed, authoring_failed, save_failed, limit_reached, internal_error, delivery_failed). Each job runs its paid generation at most once: retry a failed job by enqueueing a new one. The new image is generated 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). To change only part of the image and keep the rest, use adminReviseConceptImage instead.
|
|
1411
1492
|
* Enqueue a hidden revision of a concept image
|
|
1412
1493
|
*/
|
|
1413
1494
|
adminRegenerateConceptImageRaw(requestParameters, initOverrides) {
|
|
@@ -1443,7 +1524,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
1443
1524
|
});
|
|
1444
1525
|
}
|
|
1445
1526
|
/**
|
|
1446
|
-
* Returns 202 with a pending job at once; the generation runs in a background worker. Poll adminGetConceptMediaJob with the job id until status is succeeded (resultMediaId is the new draft) or failed (errorCode says why: off_topic, moderation_blocked, timeout, not_found, generation_failed, authoring_failed, save_failed, limit_reached, internal_error, delivery_failed). Each job runs its paid generation at most once: retry a failed job by enqueueing a new one. The new image is generated 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).
|
|
1527
|
+
* Returns 202 with a pending job at once; the generation runs in a background worker. Poll adminGetConceptMediaJob with the job id until status is succeeded (resultMediaId is the new draft) or failed (errorCode says why: off_topic, moderation_blocked, timeout, not_found, generation_failed, authoring_failed, save_failed, limit_reached, internal_error, delivery_failed). Each job runs its paid generation at most once: retry a failed job by enqueueing a new one. The new image is generated 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). To change only part of the image and keep the rest, use adminReviseConceptImage instead.
|
|
1447
1528
|
* Enqueue a hidden revision of a concept image
|
|
1448
1529
|
*/
|
|
1449
1530
|
adminRegenerateConceptImage(requestParameters, initOverrides) {
|
|
@@ -1575,6 +1656,98 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
1575
1656
|
return yield response.value();
|
|
1576
1657
|
});
|
|
1577
1658
|
}
|
|
1659
|
+
/**
|
|
1660
|
+
* Returns 202 with a pending job (operation revise) at once; the generation runs in a background worker. Poll adminGetConceptMediaJob with the job id until status is succeeded (resultMediaId is the new draft) or failed (errorCode says why, as for a regenerate). Each job runs its paid generation at most once. Unlike a regenerate, the admin sends only what should change: the authoring model gets the original diagram\'s HTML fragment and is asked to apply these changes and keep everything else. The stored brief is the original\'s with the changes appended. The changes are recorded on the new revision as revisionInstructions. The new diagram is 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).
|
|
1661
|
+
* Enqueue a hidden revision of a concept diagram with only the given changes
|
|
1662
|
+
*/
|
|
1663
|
+
adminReviseConceptDiagramRaw(requestParameters, initOverrides) {
|
|
1664
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1665
|
+
if (requestParameters['xUserId'] == null) {
|
|
1666
|
+
throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling adminReviseConceptDiagram().');
|
|
1667
|
+
}
|
|
1668
|
+
if (requestParameters['diagramId'] == null) {
|
|
1669
|
+
throw new runtime.RequiredError('diagramId', 'Required parameter "diagramId" was null or undefined when calling adminReviseConceptDiagram().');
|
|
1670
|
+
}
|
|
1671
|
+
if (requestParameters['adminReviseConceptDiagramRequest'] == null) {
|
|
1672
|
+
throw new runtime.RequiredError('adminReviseConceptDiagramRequest', 'Required parameter "adminReviseConceptDiagramRequest" was null or undefined when calling adminReviseConceptDiagram().');
|
|
1673
|
+
}
|
|
1674
|
+
const queryParameters = {};
|
|
1675
|
+
const headerParameters = {};
|
|
1676
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1677
|
+
if (requestParameters['xUserId'] != null) {
|
|
1678
|
+
headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
|
|
1679
|
+
}
|
|
1680
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1681
|
+
headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
|
|
1682
|
+
}
|
|
1683
|
+
let urlPath = `/api/v1/admin/concept-diagrams/{diagramId}/revise`;
|
|
1684
|
+
urlPath = urlPath.replace(`{${"diagramId"}}`, encodeURIComponent(String(requestParameters['diagramId'])));
|
|
1685
|
+
const response = yield this.request({
|
|
1686
|
+
path: urlPath,
|
|
1687
|
+
method: 'POST',
|
|
1688
|
+
headers: headerParameters,
|
|
1689
|
+
query: queryParameters,
|
|
1690
|
+
body: AdminReviseConceptDiagramRequestToJSON(requestParameters['adminReviseConceptDiagramRequest']),
|
|
1691
|
+
}, initOverrides);
|
|
1692
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AdminConceptMediaJobFromJSON(jsonValue));
|
|
1693
|
+
});
|
|
1694
|
+
}
|
|
1695
|
+
/**
|
|
1696
|
+
* Returns 202 with a pending job (operation revise) at once; the generation runs in a background worker. Poll adminGetConceptMediaJob with the job id until status is succeeded (resultMediaId is the new draft) or failed (errorCode says why, as for a regenerate). Each job runs its paid generation at most once. Unlike a regenerate, the admin sends only what should change: the authoring model gets the original diagram\'s HTML fragment and is asked to apply these changes and keep everything else. The stored brief is the original\'s with the changes appended. The changes are recorded on the new revision as revisionInstructions. The new diagram is 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).
|
|
1697
|
+
* Enqueue a hidden revision of a concept diagram with only the given changes
|
|
1698
|
+
*/
|
|
1699
|
+
adminReviseConceptDiagram(requestParameters, initOverrides) {
|
|
1700
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1701
|
+
const response = yield this.adminReviseConceptDiagramRaw(requestParameters, initOverrides);
|
|
1702
|
+
return yield response.value();
|
|
1703
|
+
});
|
|
1704
|
+
}
|
|
1705
|
+
/**
|
|
1706
|
+
* Returns 202 with a pending job (operation revise) at once; the generation runs in a background worker. Poll adminGetConceptMediaJob with the job id until status is succeeded (resultMediaId is the new draft) or failed (errorCode says why, as for a regenerate). Each job runs its paid generation at most once. Unlike a regenerate, the admin sends only what should change: the original image itself goes to the image model\'s edit endpoint as a reference, with instructions to apply these changes and keep everything else. The stored prompt is the original\'s with the changes appended. The changes are recorded on the new revision as revisionInstructions. The new image is 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).
|
|
1707
|
+
* Enqueue a hidden revision of a concept image with only the given changes
|
|
1708
|
+
*/
|
|
1709
|
+
adminReviseConceptImageRaw(requestParameters, initOverrides) {
|
|
1710
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1711
|
+
if (requestParameters['xUserId'] == null) {
|
|
1712
|
+
throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling adminReviseConceptImage().');
|
|
1713
|
+
}
|
|
1714
|
+
if (requestParameters['imageId'] == null) {
|
|
1715
|
+
throw new runtime.RequiredError('imageId', 'Required parameter "imageId" was null or undefined when calling adminReviseConceptImage().');
|
|
1716
|
+
}
|
|
1717
|
+
if (requestParameters['adminReviseConceptImageRequest'] == null) {
|
|
1718
|
+
throw new runtime.RequiredError('adminReviseConceptImageRequest', 'Required parameter "adminReviseConceptImageRequest" was null or undefined when calling adminReviseConceptImage().');
|
|
1719
|
+
}
|
|
1720
|
+
const queryParameters = {};
|
|
1721
|
+
const headerParameters = {};
|
|
1722
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1723
|
+
if (requestParameters['xUserId'] != null) {
|
|
1724
|
+
headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
|
|
1725
|
+
}
|
|
1726
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1727
|
+
headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
|
|
1728
|
+
}
|
|
1729
|
+
let urlPath = `/api/v1/admin/concept-images/{imageId}/revise`;
|
|
1730
|
+
urlPath = urlPath.replace(`{${"imageId"}}`, encodeURIComponent(String(requestParameters['imageId'])));
|
|
1731
|
+
const response = yield this.request({
|
|
1732
|
+
path: urlPath,
|
|
1733
|
+
method: 'POST',
|
|
1734
|
+
headers: headerParameters,
|
|
1735
|
+
query: queryParameters,
|
|
1736
|
+
body: AdminReviseConceptImageRequestToJSON(requestParameters['adminReviseConceptImageRequest']),
|
|
1737
|
+
}, initOverrides);
|
|
1738
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AdminConceptMediaJobFromJSON(jsonValue));
|
|
1739
|
+
});
|
|
1740
|
+
}
|
|
1741
|
+
/**
|
|
1742
|
+
* Returns 202 with a pending job (operation revise) at once; the generation runs in a background worker. Poll adminGetConceptMediaJob with the job id until status is succeeded (resultMediaId is the new draft) or failed (errorCode says why, as for a regenerate). Each job runs its paid generation at most once. Unlike a regenerate, the admin sends only what should change: the original image itself goes to the image model\'s edit endpoint as a reference, with instructions to apply these changes and keep everything else. The stored prompt is the original\'s with the changes appended. The changes are recorded on the new revision as revisionInstructions. The new image is 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).
|
|
1743
|
+
* Enqueue a hidden revision of a concept image with only the given changes
|
|
1744
|
+
*/
|
|
1745
|
+
adminReviseConceptImage(requestParameters, initOverrides) {
|
|
1746
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1747
|
+
const response = yield this.adminReviseConceptImageRaw(requestParameters, initOverrides);
|
|
1748
|
+
return yield response.value();
|
|
1749
|
+
});
|
|
1750
|
+
}
|
|
1578
1751
|
/**
|
|
1579
1752
|
* 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.
|
|
1580
1753
|
* Search the global concepts by name
|
|
@@ -149,6 +149,12 @@ export interface AdminConceptDiagram {
|
|
|
149
149
|
* @memberof AdminConceptDiagram
|
|
150
150
|
*/
|
|
151
151
|
revisesDiagramId: string | null;
|
|
152
|
+
/**
|
|
153
|
+
* The changes an admin asked for when this diagram was revised from the previous version (revisesDiagramId) by editing it, with everything else kept. Null for a fresh diagram and for a regeneration from a rewritten brief.
|
|
154
|
+
* @type {string}
|
|
155
|
+
* @memberof AdminConceptDiagram
|
|
156
|
+
*/
|
|
157
|
+
revisionInstructions: string | null;
|
|
152
158
|
/**
|
|
153
159
|
*
|
|
154
160
|
* @type {string}
|
|
@@ -76,6 +76,8 @@ export function instanceOfAdminConceptDiagram(value) {
|
|
|
76
76
|
return false;
|
|
77
77
|
if (!('revisesDiagramId' in value) || value['revisesDiagramId'] === undefined)
|
|
78
78
|
return false;
|
|
79
|
+
if (!('revisionInstructions' in value) || value['revisionInstructions'] === undefined)
|
|
80
|
+
return false;
|
|
79
81
|
if (!('title' in value) || value['title'] === undefined)
|
|
80
82
|
return false;
|
|
81
83
|
if (!('effort' in value) || value['effort'] === undefined)
|
|
@@ -112,6 +114,7 @@ export function AdminConceptDiagramFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
112
114
|
'costUsd': json['costUsd'],
|
|
113
115
|
'description': json['description'],
|
|
114
116
|
'revisesDiagramId': json['revisesDiagramId'],
|
|
117
|
+
'revisionInstructions': json['revisionInstructions'],
|
|
115
118
|
'title': json['title'],
|
|
116
119
|
'effort': json['effort'],
|
|
117
120
|
};
|
|
@@ -146,6 +149,7 @@ export function AdminConceptDiagramToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
146
149
|
'costUsd': value['costUsd'],
|
|
147
150
|
'description': value['description'],
|
|
148
151
|
'revisesDiagramId': value['revisesDiagramId'],
|
|
152
|
+
'revisionInstructions': value['revisionInstructions'],
|
|
149
153
|
'title': value['title'],
|
|
150
154
|
'effort': value['effort'],
|
|
151
155
|
};
|
|
@@ -151,6 +151,12 @@ export interface AdminConceptDiagramDetail {
|
|
|
151
151
|
* @memberof AdminConceptDiagramDetail
|
|
152
152
|
*/
|
|
153
153
|
revisesDiagramId: string | null;
|
|
154
|
+
/**
|
|
155
|
+
* The changes an admin asked for when this diagram was revised from the previous version (revisesDiagramId) by editing it, with everything else kept. Null for a fresh diagram and for a regeneration from a rewritten brief.
|
|
156
|
+
* @type {string}
|
|
157
|
+
* @memberof AdminConceptDiagramDetail
|
|
158
|
+
*/
|
|
159
|
+
revisionInstructions: string | null;
|
|
154
160
|
/**
|
|
155
161
|
*
|
|
156
162
|
* @type {string}
|
|
@@ -78,6 +78,8 @@ export function instanceOfAdminConceptDiagramDetail(value) {
|
|
|
78
78
|
return false;
|
|
79
79
|
if (!('revisesDiagramId' in value) || value['revisesDiagramId'] === undefined)
|
|
80
80
|
return false;
|
|
81
|
+
if (!('revisionInstructions' in value) || value['revisionInstructions'] === undefined)
|
|
82
|
+
return false;
|
|
81
83
|
if (!('title' in value) || value['title'] === undefined)
|
|
82
84
|
return false;
|
|
83
85
|
if (!('effort' in value) || value['effort'] === undefined)
|
|
@@ -126,6 +128,7 @@ export function AdminConceptDiagramDetailFromJSONTyped(json, ignoreDiscriminator
|
|
|
126
128
|
'costUsd': json['costUsd'],
|
|
127
129
|
'description': json['description'],
|
|
128
130
|
'revisesDiagramId': json['revisesDiagramId'],
|
|
131
|
+
'revisionInstructions': json['revisionInstructions'],
|
|
129
132
|
'title': json['title'],
|
|
130
133
|
'effort': json['effort'],
|
|
131
134
|
'brief': json['brief'],
|
|
@@ -166,6 +169,7 @@ export function AdminConceptDiagramDetailToJSONTyped(value, ignoreDiscriminator
|
|
|
166
169
|
'costUsd': value['costUsd'],
|
|
167
170
|
'description': value['description'],
|
|
168
171
|
'revisesDiagramId': value['revisesDiagramId'],
|
|
172
|
+
'revisionInstructions': value['revisionInstructions'],
|
|
169
173
|
'title': value['title'],
|
|
170
174
|
'effort': value['effort'],
|
|
171
175
|
'brief': value['brief'],
|
|
@@ -149,6 +149,12 @@ export interface AdminConceptImage {
|
|
|
149
149
|
* @memberof AdminConceptImage
|
|
150
150
|
*/
|
|
151
151
|
revisesImageId: string | null;
|
|
152
|
+
/**
|
|
153
|
+
* The changes an admin asked for when this image was revised from the previous version (revisesImageId) by editing it, with everything else kept. Null for a fresh image and for a regeneration from a rewritten prompt.
|
|
154
|
+
* @type {string}
|
|
155
|
+
* @memberof AdminConceptImage
|
|
156
|
+
*/
|
|
157
|
+
revisionInstructions: string | null;
|
|
152
158
|
/**
|
|
153
159
|
*
|
|
154
160
|
* @type {string}
|
|
@@ -76,6 +76,8 @@ export function instanceOfAdminConceptImage(value) {
|
|
|
76
76
|
return false;
|
|
77
77
|
if (!('revisesImageId' in value) || value['revisesImageId'] === undefined)
|
|
78
78
|
return false;
|
|
79
|
+
if (!('revisionInstructions' in value) || value['revisionInstructions'] === undefined)
|
|
80
|
+
return false;
|
|
79
81
|
if (!('quality' in value) || value['quality'] === undefined)
|
|
80
82
|
return false;
|
|
81
83
|
if (!('mimeType' in value) || value['mimeType'] === undefined)
|
|
@@ -118,6 +120,7 @@ export function AdminConceptImageFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
118
120
|
'costUsd': json['costUsd'],
|
|
119
121
|
'description': json['description'],
|
|
120
122
|
'revisesImageId': json['revisesImageId'],
|
|
123
|
+
'revisionInstructions': json['revisionInstructions'],
|
|
121
124
|
'quality': json['quality'],
|
|
122
125
|
'mimeType': json['mimeType'],
|
|
123
126
|
'width': json['width'],
|
|
@@ -155,6 +158,7 @@ export function AdminConceptImageToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
155
158
|
'costUsd': value['costUsd'],
|
|
156
159
|
'description': value['description'],
|
|
157
160
|
'revisesImageId': value['revisesImageId'],
|
|
161
|
+
'revisionInstructions': value['revisionInstructions'],
|
|
158
162
|
'quality': value['quality'],
|
|
159
163
|
'mimeType': value['mimeType'],
|
|
160
164
|
'width': value['width'],
|
|
@@ -151,6 +151,12 @@ export interface AdminConceptImageDetail {
|
|
|
151
151
|
* @memberof AdminConceptImageDetail
|
|
152
152
|
*/
|
|
153
153
|
revisesImageId: string | null;
|
|
154
|
+
/**
|
|
155
|
+
* The changes an admin asked for when this image was revised from the previous version (revisesImageId) by editing it, with everything else kept. Null for a fresh image and for a regeneration from a rewritten prompt.
|
|
156
|
+
* @type {string}
|
|
157
|
+
* @memberof AdminConceptImageDetail
|
|
158
|
+
*/
|
|
159
|
+
revisionInstructions: string | null;
|
|
154
160
|
/**
|
|
155
161
|
*
|
|
156
162
|
* @type {string}
|
|
@@ -78,6 +78,8 @@ export function instanceOfAdminConceptImageDetail(value) {
|
|
|
78
78
|
return false;
|
|
79
79
|
if (!('revisesImageId' in value) || value['revisesImageId'] === undefined)
|
|
80
80
|
return false;
|
|
81
|
+
if (!('revisionInstructions' in value) || value['revisionInstructions'] === undefined)
|
|
82
|
+
return false;
|
|
81
83
|
if (!('quality' in value) || value['quality'] === undefined)
|
|
82
84
|
return false;
|
|
83
85
|
if (!('mimeType' in value) || value['mimeType'] === undefined)
|
|
@@ -132,6 +134,7 @@ export function AdminConceptImageDetailFromJSONTyped(json, ignoreDiscriminator)
|
|
|
132
134
|
'costUsd': json['costUsd'],
|
|
133
135
|
'description': json['description'],
|
|
134
136
|
'revisesImageId': json['revisesImageId'],
|
|
137
|
+
'revisionInstructions': json['revisionInstructions'],
|
|
135
138
|
'quality': json['quality'],
|
|
136
139
|
'mimeType': json['mimeType'],
|
|
137
140
|
'width': json['width'],
|
|
@@ -175,6 +178,7 @@ export function AdminConceptImageDetailToJSONTyped(value, ignoreDiscriminator =
|
|
|
175
178
|
'costUsd': value['costUsd'],
|
|
176
179
|
'description': value['description'],
|
|
177
180
|
'revisesImageId': value['revisesImageId'],
|
|
181
|
+
'revisionInstructions': value['revisionInstructions'],
|
|
178
182
|
'quality': value['quality'],
|
|
179
183
|
'mimeType': value['mimeType'],
|
|
180
184
|
'width': value['width'],
|
|
@@ -29,7 +29,7 @@ export interface AdminConceptMediaJob {
|
|
|
29
29
|
*/
|
|
30
30
|
kind: AdminConceptMediaJobKindEnum;
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* generate: a new draft. regenerate: a revision from a rewritten prompt or brief. revise: a revision edited from the source row with only the requested changes applied.
|
|
33
33
|
* @type {string}
|
|
34
34
|
* @memberof AdminConceptMediaJob
|
|
35
35
|
*/
|
|
@@ -47,13 +47,13 @@ export interface AdminConceptMediaJob {
|
|
|
47
47
|
*/
|
|
48
48
|
concept: AdminConceptMediaConcept;
|
|
49
49
|
/**
|
|
50
|
-
* How the draft's concept (see concept) was chosen. selected: conceptId was given. For a conceptName: matched_exact, an existing concept with the same name (case-insensitive, normalized); matched_similar, the nearest existing concept within the dedup distance; created, no concept matched, so a new one was created. Null for a regenerate, which files under the revised row's concept.
|
|
50
|
+
* How the draft's concept (see concept) was chosen. selected: conceptId was given. For a conceptName: matched_exact, an existing concept with the same name (case-insensitive, normalized); matched_similar, the nearest existing concept within the dedup distance; created, no concept matched, so a new one was created. Null for a regenerate or revise, which files under the revised row's concept.
|
|
51
51
|
* @type {string}
|
|
52
52
|
* @memberof AdminConceptMediaJob
|
|
53
53
|
*/
|
|
54
54
|
conceptResolution: AdminConceptMediaJobConceptResolutionEnum | null;
|
|
55
55
|
/**
|
|
56
|
-
* For a regenerate, the image or diagram being revised
|
|
56
|
+
* For a regenerate or revise, the image or diagram being revised
|
|
57
57
|
* @type {string}
|
|
58
58
|
* @memberof AdminConceptMediaJob
|
|
59
59
|
*/
|
|
@@ -109,6 +109,7 @@ export type AdminConceptMediaJobKindEnum = typeof AdminConceptMediaJobKindEnum[k
|
|
|
109
109
|
export declare const AdminConceptMediaJobOperationEnum: {
|
|
110
110
|
readonly Generate: "generate";
|
|
111
111
|
readonly Regenerate: "regenerate";
|
|
112
|
+
readonly Revise: "revise";
|
|
112
113
|
};
|
|
113
114
|
export type AdminConceptMediaJobOperationEnum = typeof AdminConceptMediaJobOperationEnum[keyof typeof AdminConceptMediaJobOperationEnum];
|
|
114
115
|
/**
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Athena API
|
|
3
|
+
* REST API for the Athena system
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AdminReviseConceptDiagramRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface AdminReviseConceptDiagramRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Only what should change, in plain words. The new diagram is made from the revised diagram itself with these changes applied and everything else kept. Recorded on the new revision as revisionInstructions.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AdminReviseConceptDiagramRequest
|
|
22
|
+
*/
|
|
23
|
+
instructions: string;
|
|
24
|
+
/**
|
|
25
|
+
* Title for the new revision. Defaults to the original's.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AdminReviseConceptDiagramRequest
|
|
28
|
+
*/
|
|
29
|
+
title?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Description for the new revision. Defaults to the original's; set it when the changes make that inaccurate.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AdminReviseConceptDiagramRequest
|
|
34
|
+
*/
|
|
35
|
+
description?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the AdminReviseConceptDiagramRequest interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfAdminReviseConceptDiagramRequest(value: object): value is AdminReviseConceptDiagramRequest;
|
|
41
|
+
export declare function AdminReviseConceptDiagramRequestFromJSON(json: any): AdminReviseConceptDiagramRequest;
|
|
42
|
+
export declare function AdminReviseConceptDiagramRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminReviseConceptDiagramRequest;
|
|
43
|
+
export declare function AdminReviseConceptDiagramRequestToJSON(json: any): AdminReviseConceptDiagramRequest;
|
|
44
|
+
export declare function AdminReviseConceptDiagramRequestToJSONTyped(value?: AdminReviseConceptDiagramRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Athena API
|
|
5
|
+
* REST API for the Athena system
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the AdminReviseConceptDiagramRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfAdminReviseConceptDiagramRequest(value) {
|
|
18
|
+
if (!('instructions' in value) || value['instructions'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function AdminReviseConceptDiagramRequestFromJSON(json) {
|
|
23
|
+
return AdminReviseConceptDiagramRequestFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function AdminReviseConceptDiagramRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'instructions': json['instructions'],
|
|
31
|
+
'title': json['title'] == null ? undefined : json['title'],
|
|
32
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export function AdminReviseConceptDiagramRequestToJSON(json) {
|
|
36
|
+
return AdminReviseConceptDiagramRequestToJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
export function AdminReviseConceptDiagramRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
39
|
+
if (value == null) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'instructions': value['instructions'],
|
|
44
|
+
'title': value['title'],
|
|
45
|
+
'description': value['description'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Athena API
|
|
3
|
+
* REST API for the Athena system
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AdminReviseConceptImageRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface AdminReviseConceptImageRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Only what should change, in plain words. The new image is made from the revised image itself with these changes applied and everything else kept. Recorded on the new revision as revisionInstructions.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AdminReviseConceptImageRequest
|
|
22
|
+
*/
|
|
23
|
+
instructions: string;
|
|
24
|
+
/**
|
|
25
|
+
* Alt text for the new revision. Defaults to the original's; set it when the changes make that inaccurate.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AdminReviseConceptImageRequest
|
|
28
|
+
*/
|
|
29
|
+
description?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the AdminReviseConceptImageRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfAdminReviseConceptImageRequest(value: object): value is AdminReviseConceptImageRequest;
|
|
35
|
+
export declare function AdminReviseConceptImageRequestFromJSON(json: any): AdminReviseConceptImageRequest;
|
|
36
|
+
export declare function AdminReviseConceptImageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminReviseConceptImageRequest;
|
|
37
|
+
export declare function AdminReviseConceptImageRequestToJSON(json: any): AdminReviseConceptImageRequest;
|
|
38
|
+
export declare function AdminReviseConceptImageRequestToJSONTyped(value?: AdminReviseConceptImageRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Athena API
|
|
5
|
+
* REST API for the Athena system
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the AdminReviseConceptImageRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfAdminReviseConceptImageRequest(value) {
|
|
18
|
+
if (!('instructions' in value) || value['instructions'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function AdminReviseConceptImageRequestFromJSON(json) {
|
|
23
|
+
return AdminReviseConceptImageRequestFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function AdminReviseConceptImageRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'instructions': json['instructions'],
|
|
31
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function AdminReviseConceptImageRequestToJSON(json) {
|
|
35
|
+
return AdminReviseConceptImageRequestToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function AdminReviseConceptImageRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'instructions': value['instructions'],
|
|
43
|
+
'description': value['description'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
@@ -151,6 +151,12 @@ export interface AdminShownConceptDiagram {
|
|
|
151
151
|
* @memberof AdminShownConceptDiagram
|
|
152
152
|
*/
|
|
153
153
|
revisesDiagramId: string | null;
|
|
154
|
+
/**
|
|
155
|
+
* The changes an admin asked for when this diagram was revised from the previous version (revisesDiagramId) by editing it, with everything else kept. Null for a fresh diagram and for a regeneration from a rewritten brief.
|
|
156
|
+
* @type {string}
|
|
157
|
+
* @memberof AdminShownConceptDiagram
|
|
158
|
+
*/
|
|
159
|
+
revisionInstructions: string | null;
|
|
154
160
|
/**
|
|
155
161
|
*
|
|
156
162
|
* @type {string}
|