@instructure/athena-api-client 3.46.2 → 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
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Athena API
|
|
6
|
+
* REST API for the Athena system
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AdminConceptMediaRevisionOriginEnum = exports.AdminConceptMediaRevisionStateEnum = void 0;
|
|
17
|
+
exports.instanceOfAdminConceptMediaRevision = instanceOfAdminConceptMediaRevision;
|
|
18
|
+
exports.AdminConceptMediaRevisionFromJSON = AdminConceptMediaRevisionFromJSON;
|
|
19
|
+
exports.AdminConceptMediaRevisionFromJSONTyped = AdminConceptMediaRevisionFromJSONTyped;
|
|
20
|
+
exports.AdminConceptMediaRevisionToJSON = AdminConceptMediaRevisionToJSON;
|
|
21
|
+
exports.AdminConceptMediaRevisionToJSONTyped = AdminConceptMediaRevisionToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.AdminConceptMediaRevisionStateEnum = {
|
|
26
|
+
Visible: 'visible',
|
|
27
|
+
Hidden: 'hidden',
|
|
28
|
+
Deleted: 'deleted'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
exports.AdminConceptMediaRevisionOriginEnum = {
|
|
34
|
+
Chat: 'chat',
|
|
35
|
+
Admin: 'admin'
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the AdminConceptMediaRevision interface.
|
|
39
|
+
*/
|
|
40
|
+
function instanceOfAdminConceptMediaRevision(value) {
|
|
41
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('state' in value) || value['state'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('origin' in value) || value['origin'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
function AdminConceptMediaRevisionFromJSON(json) {
|
|
52
|
+
return AdminConceptMediaRevisionFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function AdminConceptMediaRevisionFromJSONTyped(json, ignoreDiscriminator) {
|
|
55
|
+
if (json == null) {
|
|
56
|
+
return json;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'id': json['id'],
|
|
60
|
+
'state': json['state'],
|
|
61
|
+
'origin': json['origin'],
|
|
62
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
function AdminConceptMediaRevisionToJSON(json) {
|
|
66
|
+
return AdminConceptMediaRevisionToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
function AdminConceptMediaRevisionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
'id': value['id'],
|
|
74
|
+
'state': value['state'],
|
|
75
|
+
'origin': value['origin'],
|
|
76
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
77
|
+
};
|
|
78
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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 AdminConceptSearchResult
|
|
16
|
+
*/
|
|
17
|
+
export interface AdminConceptSearchResult {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AdminConceptSearchResult
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AdminConceptSearchResult
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AdminConceptSearchResult
|
|
34
|
+
*/
|
|
35
|
+
description: string;
|
|
36
|
+
/**
|
|
37
|
+
* Library images of this concept that are not deleted
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof AdminConceptSearchResult
|
|
40
|
+
*/
|
|
41
|
+
imageCount: number;
|
|
42
|
+
/**
|
|
43
|
+
* Library diagrams of this concept that are not deleted
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof AdminConceptSearchResult
|
|
46
|
+
*/
|
|
47
|
+
diagramCount: number;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the AdminConceptSearchResult interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfAdminConceptSearchResult(value: object): value is AdminConceptSearchResult;
|
|
53
|
+
export declare function AdminConceptSearchResultFromJSON(json: any): AdminConceptSearchResult;
|
|
54
|
+
export declare function AdminConceptSearchResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminConceptSearchResult;
|
|
55
|
+
export declare function AdminConceptSearchResultToJSON(json: any): AdminConceptSearchResult;
|
|
56
|
+
export declare function AdminConceptSearchResultToJSONTyped(value?: AdminConceptSearchResult | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Athena API
|
|
6
|
+
* REST API for the Athena system
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAdminConceptSearchResult = instanceOfAdminConceptSearchResult;
|
|
17
|
+
exports.AdminConceptSearchResultFromJSON = AdminConceptSearchResultFromJSON;
|
|
18
|
+
exports.AdminConceptSearchResultFromJSONTyped = AdminConceptSearchResultFromJSONTyped;
|
|
19
|
+
exports.AdminConceptSearchResultToJSON = AdminConceptSearchResultToJSON;
|
|
20
|
+
exports.AdminConceptSearchResultToJSONTyped = AdminConceptSearchResultToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AdminConceptSearchResult interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAdminConceptSearchResult(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('imageCount' in value) || value['imageCount'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('diagramCount' in value) || value['diagramCount'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function AdminConceptSearchResultFromJSON(json) {
|
|
38
|
+
return AdminConceptSearchResultFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function AdminConceptSearchResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'id': json['id'],
|
|
46
|
+
'name': json['name'],
|
|
47
|
+
'description': json['description'],
|
|
48
|
+
'imageCount': json['imageCount'],
|
|
49
|
+
'diagramCount': json['diagramCount'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function AdminConceptSearchResultToJSON(json) {
|
|
53
|
+
return AdminConceptSearchResultToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function AdminConceptSearchResultToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'id': value['id'],
|
|
61
|
+
'name': value['name'],
|
|
62
|
+
'description': value['description'],
|
|
63
|
+
'imageCount': value['imageCount'],
|
|
64
|
+
'diagramCount': value['diagramCount'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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 AdminGenerateConceptDiagramRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface AdminGenerateConceptDiagramRequest {
|
|
18
|
+
/**
|
|
19
|
+
* The existing concept the diagram is filed under, as-is. Exactly one of conceptId and conceptName is required.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AdminGenerateConceptDiagramRequest
|
|
22
|
+
*/
|
|
23
|
+
conceptId?: string;
|
|
24
|
+
/**
|
|
25
|
+
* A concept name, resolved the way learner generation resolves one: an exact (case-insensitive, normalized) name match, else the nearest concept within the dedup distance, else a new concept. The diagram is then filed under that concept exactly as with conceptId; conceptResolution in the response says which happened. Exactly one of conceptId and conceptName is required.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AdminGenerateConceptDiagramRequest
|
|
28
|
+
*/
|
|
29
|
+
conceptName?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The brief the authoring model draws from
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AdminGenerateConceptDiagramRequest
|
|
34
|
+
*/
|
|
35
|
+
instructions: string;
|
|
36
|
+
/**
|
|
37
|
+
* Diagram title. Defaults to the concept's name.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AdminGenerateConceptDiagramRequest
|
|
40
|
+
*/
|
|
41
|
+
title?: string;
|
|
42
|
+
/**
|
|
43
|
+
* What the diagram shows, and what later library lookups match against. Defaults to the instructions.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof AdminGenerateConceptDiagramRequest
|
|
46
|
+
*/
|
|
47
|
+
description?: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the AdminGenerateConceptDiagramRequest interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfAdminGenerateConceptDiagramRequest(value: object): value is AdminGenerateConceptDiagramRequest;
|
|
53
|
+
export declare function AdminGenerateConceptDiagramRequestFromJSON(json: any): AdminGenerateConceptDiagramRequest;
|
|
54
|
+
export declare function AdminGenerateConceptDiagramRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminGenerateConceptDiagramRequest;
|
|
55
|
+
export declare function AdminGenerateConceptDiagramRequestToJSON(json: any): AdminGenerateConceptDiagramRequest;
|
|
56
|
+
export declare function AdminGenerateConceptDiagramRequestToJSONTyped(value?: AdminGenerateConceptDiagramRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Athena API
|
|
6
|
+
* REST API for the Athena system
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAdminGenerateConceptDiagramRequest = instanceOfAdminGenerateConceptDiagramRequest;
|
|
17
|
+
exports.AdminGenerateConceptDiagramRequestFromJSON = AdminGenerateConceptDiagramRequestFromJSON;
|
|
18
|
+
exports.AdminGenerateConceptDiagramRequestFromJSONTyped = AdminGenerateConceptDiagramRequestFromJSONTyped;
|
|
19
|
+
exports.AdminGenerateConceptDiagramRequestToJSON = AdminGenerateConceptDiagramRequestToJSON;
|
|
20
|
+
exports.AdminGenerateConceptDiagramRequestToJSONTyped = AdminGenerateConceptDiagramRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AdminGenerateConceptDiagramRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAdminGenerateConceptDiagramRequest(value) {
|
|
25
|
+
if (!('instructions' in value) || value['instructions'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function AdminGenerateConceptDiagramRequestFromJSON(json) {
|
|
30
|
+
return AdminGenerateConceptDiagramRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function AdminGenerateConceptDiagramRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'conceptId': json['conceptId'] == null ? undefined : json['conceptId'],
|
|
38
|
+
'conceptName': json['conceptName'] == null ? undefined : json['conceptName'],
|
|
39
|
+
'instructions': json['instructions'],
|
|
40
|
+
'title': json['title'] == null ? undefined : json['title'],
|
|
41
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function AdminGenerateConceptDiagramRequestToJSON(json) {
|
|
45
|
+
return AdminGenerateConceptDiagramRequestToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function AdminGenerateConceptDiagramRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'conceptId': value['conceptId'],
|
|
53
|
+
'conceptName': value['conceptName'],
|
|
54
|
+
'instructions': value['instructions'],
|
|
55
|
+
'title': value['title'],
|
|
56
|
+
'description': value['description'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Athena API
|
|
3
|
+
* REST API for the Athena system
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AdminGenerateConceptImageRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface AdminGenerateConceptImageRequest {
|
|
18
|
+
/**
|
|
19
|
+
* The existing concept the image is filed under, as-is. Exactly one of conceptId and conceptName is required.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AdminGenerateConceptImageRequest
|
|
22
|
+
*/
|
|
23
|
+
conceptId?: string;
|
|
24
|
+
/**
|
|
25
|
+
* A concept name, resolved the way learner generation resolves one: an exact (case-insensitive, normalized) name match, else the nearest concept within the dedup distance, else a new concept. The image is then filed under that concept exactly as with conceptId; conceptResolution in the response says which happened. Exactly one of conceptId and conceptName is required.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AdminGenerateConceptImageRequest
|
|
28
|
+
*/
|
|
29
|
+
conceptName?: string;
|
|
30
|
+
/**
|
|
31
|
+
* What the image should show. Sent to the image model after the fixed style preamble.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AdminGenerateConceptImageRequest
|
|
34
|
+
*/
|
|
35
|
+
instructions: string;
|
|
36
|
+
/**
|
|
37
|
+
* Alt text, and what later library lookups match against. Defaults to the instructions.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AdminGenerateConceptImageRequest
|
|
40
|
+
*/
|
|
41
|
+
description?: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the AdminGenerateConceptImageRequest interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfAdminGenerateConceptImageRequest(value: object): value is AdminGenerateConceptImageRequest;
|
|
47
|
+
export declare function AdminGenerateConceptImageRequestFromJSON(json: any): AdminGenerateConceptImageRequest;
|
|
48
|
+
export declare function AdminGenerateConceptImageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminGenerateConceptImageRequest;
|
|
49
|
+
export declare function AdminGenerateConceptImageRequestToJSON(json: any): AdminGenerateConceptImageRequest;
|
|
50
|
+
export declare function AdminGenerateConceptImageRequestToJSONTyped(value?: AdminGenerateConceptImageRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Athena API
|
|
6
|
+
* REST API for the Athena system
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAdminGenerateConceptImageRequest = instanceOfAdminGenerateConceptImageRequest;
|
|
17
|
+
exports.AdminGenerateConceptImageRequestFromJSON = AdminGenerateConceptImageRequestFromJSON;
|
|
18
|
+
exports.AdminGenerateConceptImageRequestFromJSONTyped = AdminGenerateConceptImageRequestFromJSONTyped;
|
|
19
|
+
exports.AdminGenerateConceptImageRequestToJSON = AdminGenerateConceptImageRequestToJSON;
|
|
20
|
+
exports.AdminGenerateConceptImageRequestToJSONTyped = AdminGenerateConceptImageRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AdminGenerateConceptImageRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAdminGenerateConceptImageRequest(value) {
|
|
25
|
+
if (!('instructions' in value) || value['instructions'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function AdminGenerateConceptImageRequestFromJSON(json) {
|
|
30
|
+
return AdminGenerateConceptImageRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function AdminGenerateConceptImageRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'conceptId': json['conceptId'] == null ? undefined : json['conceptId'],
|
|
38
|
+
'conceptName': json['conceptName'] == null ? undefined : json['conceptName'],
|
|
39
|
+
'instructions': json['instructions'],
|
|
40
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function AdminGenerateConceptImageRequestToJSON(json) {
|
|
44
|
+
return AdminGenerateConceptImageRequestToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function AdminGenerateConceptImageRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'conceptId': value['conceptId'],
|
|
52
|
+
'conceptName': value['conceptName'],
|
|
53
|
+
'instructions': value['instructions'],
|
|
54
|
+
'description': value['description'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Athena API
|
|
3
|
+
* REST API for the Athena system
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { AdminConceptMediaConcept } from './AdminConceptMediaConcept';
|
|
13
|
+
import type { AdminConceptMediaHistoryEntry } from './AdminConceptMediaHistoryEntry';
|
|
14
|
+
import type { AdminConceptMediaActor } from './AdminConceptMediaActor';
|
|
15
|
+
import type { AdminConceptMediaRevision } from './AdminConceptMediaRevision';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AdminGeneratedConceptDiagram
|
|
20
|
+
*/
|
|
21
|
+
export interface AdminGeneratedConceptDiagram {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AdminGeneratedConceptDiagram
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {AdminConceptMediaConcept}
|
|
31
|
+
* @memberof AdminGeneratedConceptDiagram
|
|
32
|
+
*/
|
|
33
|
+
concept: AdminConceptMediaConcept;
|
|
34
|
+
/**
|
|
35
|
+
* visible: served to learners. hidden: kept out of every learner read. deleted: soft-deleted, kept out of every learner read and out of the default admin list. A change applies to later reads only: an image URL already handed out stays valid until it expires (12 hours).
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof AdminGeneratedConceptDiagram
|
|
38
|
+
*/
|
|
39
|
+
state: AdminGeneratedConceptDiagramStateEnum;
|
|
40
|
+
/**
|
|
41
|
+
* chat: generated in a learner's tutor turn. admin: an admin draft or regeneration.
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof AdminGeneratedConceptDiagram
|
|
44
|
+
*/
|
|
45
|
+
origin: AdminGeneratedConceptDiagramOriginEnum;
|
|
46
|
+
/**
|
|
47
|
+
* Who generated it. Null when that account user was deleted or belongs to a different account (see creatorOutsideAccount).
|
|
48
|
+
* @type {AdminConceptMediaActor}
|
|
49
|
+
* @memberof AdminGeneratedConceptDiagram
|
|
50
|
+
*/
|
|
51
|
+
creator: AdminConceptMediaActor | null;
|
|
52
|
+
/**
|
|
53
|
+
* True when the creator exists but belongs to a different account, so their details are withheld.
|
|
54
|
+
* @type {boolean}
|
|
55
|
+
* @memberof AdminGeneratedConceptDiagram
|
|
56
|
+
*/
|
|
57
|
+
creatorOutsideAccount: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* The chat it was generated in. Null for admin drafts, once the chat is deleted, or when the creator is outside the caller's account.
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof AdminGeneratedConceptDiagram
|
|
62
|
+
*/
|
|
63
|
+
sourceChatId: string | null;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {Date}
|
|
67
|
+
* @memberof AdminGeneratedConceptDiagram
|
|
68
|
+
*/
|
|
69
|
+
createdAt: Date;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {Date}
|
|
73
|
+
* @memberof AdminGeneratedConceptDiagram
|
|
74
|
+
*/
|
|
75
|
+
hiddenAt: Date | null;
|
|
76
|
+
/**
|
|
77
|
+
* Who hid it, when that account user is in the caller's account.
|
|
78
|
+
* @type {AdminConceptMediaActor}
|
|
79
|
+
* @memberof AdminGeneratedConceptDiagram
|
|
80
|
+
*/
|
|
81
|
+
hiddenBy: AdminConceptMediaActor | null;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {Date}
|
|
85
|
+
* @memberof AdminGeneratedConceptDiagram
|
|
86
|
+
*/
|
|
87
|
+
deletedAt: Date | null;
|
|
88
|
+
/**
|
|
89
|
+
* Who deleted it, when that account user is in the caller's account.
|
|
90
|
+
* @type {AdminConceptMediaActor}
|
|
91
|
+
* @memberof AdminGeneratedConceptDiagram
|
|
92
|
+
*/
|
|
93
|
+
deletedBy: AdminConceptMediaActor | null;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {string}
|
|
97
|
+
* @memberof AdminGeneratedConceptDiagram
|
|
98
|
+
*/
|
|
99
|
+
model: string;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @type {number}
|
|
103
|
+
* @memberof AdminGeneratedConceptDiagram
|
|
104
|
+
*/
|
|
105
|
+
inputTokens: number | null;
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
* @type {number}
|
|
109
|
+
* @memberof AdminGeneratedConceptDiagram
|
|
110
|
+
*/
|
|
111
|
+
outputTokens: number | null;
|
|
112
|
+
/**
|
|
113
|
+
* Null when usage or price was missing; never estimated.
|
|
114
|
+
* @type {number}
|
|
115
|
+
* @memberof AdminGeneratedConceptDiagram
|
|
116
|
+
*/
|
|
117
|
+
costUsd: number | null;
|
|
118
|
+
/**
|
|
119
|
+
*
|
|
120
|
+
* @type {string}
|
|
121
|
+
* @memberof AdminGeneratedConceptDiagram
|
|
122
|
+
*/
|
|
123
|
+
description: string;
|
|
124
|
+
/**
|
|
125
|
+
* The diagram this one revises
|
|
126
|
+
* @type {string}
|
|
127
|
+
* @memberof AdminGeneratedConceptDiagram
|
|
128
|
+
*/
|
|
129
|
+
revisesDiagramId: string | null;
|
|
130
|
+
/**
|
|
131
|
+
*
|
|
132
|
+
* @type {string}
|
|
133
|
+
* @memberof AdminGeneratedConceptDiagram
|
|
134
|
+
*/
|
|
135
|
+
title: string;
|
|
136
|
+
/**
|
|
137
|
+
* The authoring model's effort level, when one was configured
|
|
138
|
+
* @type {string}
|
|
139
|
+
* @memberof AdminGeneratedConceptDiagram
|
|
140
|
+
*/
|
|
141
|
+
effort: string | null;
|
|
142
|
+
/**
|
|
143
|
+
* The brief the authoring model drew from: what to prefill for a regeneration
|
|
144
|
+
* @type {string}
|
|
145
|
+
* @memberof AdminGeneratedConceptDiagram
|
|
146
|
+
*/
|
|
147
|
+
brief: string;
|
|
148
|
+
/**
|
|
149
|
+
* The complete assembled HTML document, for a sandboxed iframe
|
|
150
|
+
* @type {string}
|
|
151
|
+
* @memberof AdminGeneratedConceptDiagram
|
|
152
|
+
*/
|
|
153
|
+
document: string;
|
|
154
|
+
/**
|
|
155
|
+
* The diagram this one revises, in any state; null if none or gone
|
|
156
|
+
* @type {AdminConceptMediaRevision}
|
|
157
|
+
* @memberof AdminGeneratedConceptDiagram
|
|
158
|
+
*/
|
|
159
|
+
parent: AdminConceptMediaRevision | null;
|
|
160
|
+
/**
|
|
161
|
+
* Diagrams that revise this one, oldest first, in any state
|
|
162
|
+
* @type {Array<AdminConceptMediaRevision>}
|
|
163
|
+
* @memberof AdminGeneratedConceptDiagram
|
|
164
|
+
*/
|
|
165
|
+
revisions: Array<AdminConceptMediaRevision>;
|
|
166
|
+
/**
|
|
167
|
+
* The whole revision family this row belongs to: its original (found by following revises links up until one ends) and every row that revises the original, directly or through other revisions, across all branches. Includes this row and rows in every state, deleted versions included. Oldest first by createdAt, then id. At most 100 rows; see historyTruncated.
|
|
168
|
+
* @type {Array<AdminConceptMediaHistoryEntry>}
|
|
169
|
+
* @memberof AdminGeneratedConceptDiagram
|
|
170
|
+
*/
|
|
171
|
+
history: Array<AdminConceptMediaHistoryEntry>;
|
|
172
|
+
/**
|
|
173
|
+
* True when the family has more rows than history can hold, so history is incomplete. This row and the rows it revises are always kept.
|
|
174
|
+
* @type {boolean}
|
|
175
|
+
* @memberof AdminGeneratedConceptDiagram
|
|
176
|
+
*/
|
|
177
|
+
historyTruncated: boolean;
|
|
178
|
+
/**
|
|
179
|
+
* 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.
|
|
180
|
+
* @type {string}
|
|
181
|
+
* @memberof AdminGeneratedConceptDiagram
|
|
182
|
+
*/
|
|
183
|
+
conceptResolution: AdminGeneratedConceptDiagramConceptResolutionEnum;
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* @export
|
|
187
|
+
*/
|
|
188
|
+
export declare const AdminGeneratedConceptDiagramStateEnum: {
|
|
189
|
+
readonly Visible: "visible";
|
|
190
|
+
readonly Hidden: "hidden";
|
|
191
|
+
readonly Deleted: "deleted";
|
|
192
|
+
};
|
|
193
|
+
export type AdminGeneratedConceptDiagramStateEnum = typeof AdminGeneratedConceptDiagramStateEnum[keyof typeof AdminGeneratedConceptDiagramStateEnum];
|
|
194
|
+
/**
|
|
195
|
+
* @export
|
|
196
|
+
*/
|
|
197
|
+
export declare const AdminGeneratedConceptDiagramOriginEnum: {
|
|
198
|
+
readonly Chat: "chat";
|
|
199
|
+
readonly Admin: "admin";
|
|
200
|
+
};
|
|
201
|
+
export type AdminGeneratedConceptDiagramOriginEnum = typeof AdminGeneratedConceptDiagramOriginEnum[keyof typeof AdminGeneratedConceptDiagramOriginEnum];
|
|
202
|
+
/**
|
|
203
|
+
* @export
|
|
204
|
+
*/
|
|
205
|
+
export declare const AdminGeneratedConceptDiagramConceptResolutionEnum: {
|
|
206
|
+
readonly Selected: "selected";
|
|
207
|
+
readonly MatchedExact: "matched_exact";
|
|
208
|
+
readonly MatchedSimilar: "matched_similar";
|
|
209
|
+
readonly Created: "created";
|
|
210
|
+
};
|
|
211
|
+
export type AdminGeneratedConceptDiagramConceptResolutionEnum = typeof AdminGeneratedConceptDiagramConceptResolutionEnum[keyof typeof AdminGeneratedConceptDiagramConceptResolutionEnum];
|
|
212
|
+
/**
|
|
213
|
+
* Check if a given object implements the AdminGeneratedConceptDiagram interface.
|
|
214
|
+
*/
|
|
215
|
+
export declare function instanceOfAdminGeneratedConceptDiagram(value: object): value is AdminGeneratedConceptDiagram;
|
|
216
|
+
export declare function AdminGeneratedConceptDiagramFromJSON(json: any): AdminGeneratedConceptDiagram;
|
|
217
|
+
export declare function AdminGeneratedConceptDiagramFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminGeneratedConceptDiagram;
|
|
218
|
+
export declare function AdminGeneratedConceptDiagramToJSON(json: any): AdminGeneratedConceptDiagram;
|
|
219
|
+
export declare function AdminGeneratedConceptDiagramToJSONTyped(value?: AdminGeneratedConceptDiagram | null, ignoreDiscriminator?: boolean): any;
|