@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
|
@@ -0,0 +1,39 @@
|
|
|
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 { AdminConceptImage } from './AdminConceptImage';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AdminPaginatedConceptImages
|
|
17
|
+
*/
|
|
18
|
+
export interface AdminPaginatedConceptImages {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<AdminConceptImage>}
|
|
22
|
+
* @memberof AdminPaginatedConceptImages
|
|
23
|
+
*/
|
|
24
|
+
data: Array<AdminConceptImage>;
|
|
25
|
+
/**
|
|
26
|
+
* Opaque cursor for fetching the next page. Null when there are no more results.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof AdminPaginatedConceptImages
|
|
29
|
+
*/
|
|
30
|
+
nextCursor: string | null;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the AdminPaginatedConceptImages interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfAdminPaginatedConceptImages(value: object): value is AdminPaginatedConceptImages;
|
|
36
|
+
export declare function AdminPaginatedConceptImagesFromJSON(json: any): AdminPaginatedConceptImages;
|
|
37
|
+
export declare function AdminPaginatedConceptImagesFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminPaginatedConceptImages;
|
|
38
|
+
export declare function AdminPaginatedConceptImagesToJSON(json: any): AdminPaginatedConceptImages;
|
|
39
|
+
export declare function AdminPaginatedConceptImagesToJSONTyped(value?: AdminPaginatedConceptImages | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Athena API
|
|
5
|
+
* REST API for the Athena system
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { AdminConceptImageFromJSON, AdminConceptImageToJSON, } from './AdminConceptImage';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the AdminPaginatedConceptImages interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfAdminPaginatedConceptImages(value) {
|
|
19
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('nextCursor' in value) || value['nextCursor'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function AdminPaginatedConceptImagesFromJSON(json) {
|
|
26
|
+
return AdminPaginatedConceptImagesFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function AdminPaginatedConceptImagesFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'data': (json['data'].map(AdminConceptImageFromJSON)),
|
|
34
|
+
'nextCursor': json['nextCursor'],
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function AdminPaginatedConceptImagesToJSON(json) {
|
|
38
|
+
return AdminPaginatedConceptImagesToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function AdminPaginatedConceptImagesToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'data': (value['data'].map(AdminConceptImageToJSON)),
|
|
46
|
+
'nextCursor': value['nextCursor'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -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 AdminRegenerateConceptDiagramRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface AdminRegenerateConceptDiagramRequest {
|
|
18
|
+
/**
|
|
19
|
+
* The edited brief (prefill from the original's brief)
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AdminRegenerateConceptDiagramRequest
|
|
22
|
+
*/
|
|
23
|
+
brief: string;
|
|
24
|
+
/**
|
|
25
|
+
* Title for the new revision. Defaults to the original's.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AdminRegenerateConceptDiagramRequest
|
|
28
|
+
*/
|
|
29
|
+
title?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Description for the new revision. Defaults to the original's.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AdminRegenerateConceptDiagramRequest
|
|
34
|
+
*/
|
|
35
|
+
description?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the AdminRegenerateConceptDiagramRequest interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfAdminRegenerateConceptDiagramRequest(value: object): value is AdminRegenerateConceptDiagramRequest;
|
|
41
|
+
export declare function AdminRegenerateConceptDiagramRequestFromJSON(json: any): AdminRegenerateConceptDiagramRequest;
|
|
42
|
+
export declare function AdminRegenerateConceptDiagramRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminRegenerateConceptDiagramRequest;
|
|
43
|
+
export declare function AdminRegenerateConceptDiagramRequestToJSON(json: any): AdminRegenerateConceptDiagramRequest;
|
|
44
|
+
export declare function AdminRegenerateConceptDiagramRequestToJSONTyped(value?: AdminRegenerateConceptDiagramRequest | 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 AdminRegenerateConceptDiagramRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfAdminRegenerateConceptDiagramRequest(value) {
|
|
18
|
+
if (!('brief' in value) || value['brief'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function AdminRegenerateConceptDiagramRequestFromJSON(json) {
|
|
23
|
+
return AdminRegenerateConceptDiagramRequestFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function AdminRegenerateConceptDiagramRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'brief': json['brief'],
|
|
31
|
+
'title': json['title'] == null ? undefined : json['title'],
|
|
32
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export function AdminRegenerateConceptDiagramRequestToJSON(json) {
|
|
36
|
+
return AdminRegenerateConceptDiagramRequestToJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
export function AdminRegenerateConceptDiagramRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
39
|
+
if (value == null) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'brief': value['brief'],
|
|
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 AdminRegenerateConceptImageRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface AdminRegenerateConceptImageRequest {
|
|
18
|
+
/**
|
|
19
|
+
* The edited prompt, without the style preamble (prefill from modelPrompt). A prompt that still carries the preamble is accepted and not doubled.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AdminRegenerateConceptImageRequest
|
|
22
|
+
*/
|
|
23
|
+
prompt: string;
|
|
24
|
+
/**
|
|
25
|
+
* Alt text for the new revision. Defaults to the original's.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AdminRegenerateConceptImageRequest
|
|
28
|
+
*/
|
|
29
|
+
description?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the AdminRegenerateConceptImageRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfAdminRegenerateConceptImageRequest(value: object): value is AdminRegenerateConceptImageRequest;
|
|
35
|
+
export declare function AdminRegenerateConceptImageRequestFromJSON(json: any): AdminRegenerateConceptImageRequest;
|
|
36
|
+
export declare function AdminRegenerateConceptImageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminRegenerateConceptImageRequest;
|
|
37
|
+
export declare function AdminRegenerateConceptImageRequestToJSON(json: any): AdminRegenerateConceptImageRequest;
|
|
38
|
+
export declare function AdminRegenerateConceptImageRequestToJSONTyped(value?: AdminRegenerateConceptImageRequest | 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 AdminRegenerateConceptImageRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfAdminRegenerateConceptImageRequest(value) {
|
|
18
|
+
if (!('prompt' in value) || value['prompt'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function AdminRegenerateConceptImageRequestFromJSON(json) {
|
|
23
|
+
return AdminRegenerateConceptImageRequestFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function AdminRegenerateConceptImageRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'prompt': json['prompt'],
|
|
31
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function AdminRegenerateConceptImageRequestToJSON(json) {
|
|
35
|
+
return AdminRegenerateConceptImageRequestToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function AdminRegenerateConceptImageRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'prompt': value['prompt'],
|
|
43
|
+
'description': value['description'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 AdminShowConceptMediaRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface AdminShowConceptMediaRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Also hide every other currently visible version in this row's revision family (the rows the detail's history lists), in the same transaction, recording the caller as their hider. Hidden and deleted versions are left as they are. Defaults to false: only this row changes.
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof AdminShowConceptMediaRequest
|
|
22
|
+
*/
|
|
23
|
+
hideOtherVersions?: boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the AdminShowConceptMediaRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfAdminShowConceptMediaRequest(value: object): value is AdminShowConceptMediaRequest;
|
|
29
|
+
export declare function AdminShowConceptMediaRequestFromJSON(json: any): AdminShowConceptMediaRequest;
|
|
30
|
+
export declare function AdminShowConceptMediaRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminShowConceptMediaRequest;
|
|
31
|
+
export declare function AdminShowConceptMediaRequestToJSON(json: any): AdminShowConceptMediaRequest;
|
|
32
|
+
export declare function AdminShowConceptMediaRequestToJSONTyped(value?: AdminShowConceptMediaRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,41 @@
|
|
|
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 AdminShowConceptMediaRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfAdminShowConceptMediaRequest(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function AdminShowConceptMediaRequestFromJSON(json) {
|
|
21
|
+
return AdminShowConceptMediaRequestFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function AdminShowConceptMediaRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'hideOtherVersions': json['hideOtherVersions'] == null ? undefined : json['hideOtherVersions'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export function AdminShowConceptMediaRequestToJSON(json) {
|
|
32
|
+
return AdminShowConceptMediaRequestToJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function AdminShowConceptMediaRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
35
|
+
if (value == null) {
|
|
36
|
+
return value;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'hideOtherVersions': value['hideOtherVersions'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
@@ -0,0 +1,215 @@
|
|
|
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 AdminShownConceptDiagram
|
|
20
|
+
*/
|
|
21
|
+
export interface AdminShownConceptDiagram {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AdminShownConceptDiagram
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {AdminConceptMediaConcept}
|
|
31
|
+
* @memberof AdminShownConceptDiagram
|
|
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 AdminShownConceptDiagram
|
|
38
|
+
*/
|
|
39
|
+
state: AdminShownConceptDiagramStateEnum;
|
|
40
|
+
/**
|
|
41
|
+
* chat: generated in a learner's tutor turn. admin: an admin draft or regeneration.
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof AdminShownConceptDiagram
|
|
44
|
+
*/
|
|
45
|
+
origin: AdminShownConceptDiagramOriginEnum;
|
|
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 AdminShownConceptDiagram
|
|
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 AdminShownConceptDiagram
|
|
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 AdminShownConceptDiagram
|
|
62
|
+
*/
|
|
63
|
+
sourceChatId: string | null;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {Date}
|
|
67
|
+
* @memberof AdminShownConceptDiagram
|
|
68
|
+
*/
|
|
69
|
+
createdAt: Date;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {Date}
|
|
73
|
+
* @memberof AdminShownConceptDiagram
|
|
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 AdminShownConceptDiagram
|
|
80
|
+
*/
|
|
81
|
+
hiddenBy: AdminConceptMediaActor | null;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {Date}
|
|
85
|
+
* @memberof AdminShownConceptDiagram
|
|
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 AdminShownConceptDiagram
|
|
92
|
+
*/
|
|
93
|
+
deletedBy: AdminConceptMediaActor | null;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {string}
|
|
97
|
+
* @memberof AdminShownConceptDiagram
|
|
98
|
+
*/
|
|
99
|
+
model: string;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @type {number}
|
|
103
|
+
* @memberof AdminShownConceptDiagram
|
|
104
|
+
*/
|
|
105
|
+
inputTokens: number | null;
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
* @type {number}
|
|
109
|
+
* @memberof AdminShownConceptDiagram
|
|
110
|
+
*/
|
|
111
|
+
outputTokens: number | null;
|
|
112
|
+
/**
|
|
113
|
+
* Null when usage or price was missing; never estimated.
|
|
114
|
+
* @type {number}
|
|
115
|
+
* @memberof AdminShownConceptDiagram
|
|
116
|
+
*/
|
|
117
|
+
costUsd: number | null;
|
|
118
|
+
/**
|
|
119
|
+
*
|
|
120
|
+
* @type {string}
|
|
121
|
+
* @memberof AdminShownConceptDiagram
|
|
122
|
+
*/
|
|
123
|
+
description: string;
|
|
124
|
+
/**
|
|
125
|
+
* The diagram this one revises
|
|
126
|
+
* @type {string}
|
|
127
|
+
* @memberof AdminShownConceptDiagram
|
|
128
|
+
*/
|
|
129
|
+
revisesDiagramId: string | null;
|
|
130
|
+
/**
|
|
131
|
+
*
|
|
132
|
+
* @type {string}
|
|
133
|
+
* @memberof AdminShownConceptDiagram
|
|
134
|
+
*/
|
|
135
|
+
title: string;
|
|
136
|
+
/**
|
|
137
|
+
* The authoring model's effort level, when one was configured
|
|
138
|
+
* @type {string}
|
|
139
|
+
* @memberof AdminShownConceptDiagram
|
|
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 AdminShownConceptDiagram
|
|
146
|
+
*/
|
|
147
|
+
brief: string;
|
|
148
|
+
/**
|
|
149
|
+
* The complete assembled HTML document, for a sandboxed iframe
|
|
150
|
+
* @type {string}
|
|
151
|
+
* @memberof AdminShownConceptDiagram
|
|
152
|
+
*/
|
|
153
|
+
document: string;
|
|
154
|
+
/**
|
|
155
|
+
* The diagram this one revises, in any state; null if none or gone
|
|
156
|
+
* @type {AdminConceptMediaRevision}
|
|
157
|
+
* @memberof AdminShownConceptDiagram
|
|
158
|
+
*/
|
|
159
|
+
parent: AdminConceptMediaRevision | null;
|
|
160
|
+
/**
|
|
161
|
+
* Diagrams that revise this one, oldest first, in any state
|
|
162
|
+
* @type {Array<AdminConceptMediaRevision>}
|
|
163
|
+
* @memberof AdminShownConceptDiagram
|
|
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 AdminShownConceptDiagram
|
|
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 AdminShownConceptDiagram
|
|
176
|
+
*/
|
|
177
|
+
historyTruncated: boolean;
|
|
178
|
+
/**
|
|
179
|
+
* With hideOtherVersions, the other versions in this row's revision family that were visible and are now hidden by this call, oldest first by createdAt, then id. Empty without the flag, or when no other version was visible. Versions that were already hidden or deleted are left as they were and are not listed.
|
|
180
|
+
* @type {Array<string>}
|
|
181
|
+
* @memberof AdminShownConceptDiagram
|
|
182
|
+
*/
|
|
183
|
+
hiddenVersionIds: Array<string>;
|
|
184
|
+
/**
|
|
185
|
+
* True when hideOtherVersions was set and the revision family has more rows than the 100-row history cap, so only visible versions within the capped set (the same rows history lists) were hidden and others may still be visible. Always false without the flag.
|
|
186
|
+
* @type {boolean}
|
|
187
|
+
* @memberof AdminShownConceptDiagram
|
|
188
|
+
*/
|
|
189
|
+
hiddenVersionsTruncated: boolean;
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* @export
|
|
193
|
+
*/
|
|
194
|
+
export declare const AdminShownConceptDiagramStateEnum: {
|
|
195
|
+
readonly Visible: "visible";
|
|
196
|
+
readonly Hidden: "hidden";
|
|
197
|
+
readonly Deleted: "deleted";
|
|
198
|
+
};
|
|
199
|
+
export type AdminShownConceptDiagramStateEnum = typeof AdminShownConceptDiagramStateEnum[keyof typeof AdminShownConceptDiagramStateEnum];
|
|
200
|
+
/**
|
|
201
|
+
* @export
|
|
202
|
+
*/
|
|
203
|
+
export declare const AdminShownConceptDiagramOriginEnum: {
|
|
204
|
+
readonly Chat: "chat";
|
|
205
|
+
readonly Admin: "admin";
|
|
206
|
+
};
|
|
207
|
+
export type AdminShownConceptDiagramOriginEnum = typeof AdminShownConceptDiagramOriginEnum[keyof typeof AdminShownConceptDiagramOriginEnum];
|
|
208
|
+
/**
|
|
209
|
+
* Check if a given object implements the AdminShownConceptDiagram interface.
|
|
210
|
+
*/
|
|
211
|
+
export declare function instanceOfAdminShownConceptDiagram(value: object): value is AdminShownConceptDiagram;
|
|
212
|
+
export declare function AdminShownConceptDiagramFromJSON(json: any): AdminShownConceptDiagram;
|
|
213
|
+
export declare function AdminShownConceptDiagramFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminShownConceptDiagram;
|
|
214
|
+
export declare function AdminShownConceptDiagramToJSON(json: any): AdminShownConceptDiagram;
|
|
215
|
+
export declare function AdminShownConceptDiagramToJSONTyped(value?: AdminShownConceptDiagram | null, ignoreDiscriminator?: boolean): any;
|