@instructure/athena-api-client 3.38.2 → 3.38.4
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 +18 -0
- package/dist/apis/AdminApi.d.ts +13 -1
- package/dist/apis/AdminApi.js +39 -0
- package/dist/esm/apis/AdminApi.d.ts +13 -1
- package/dist/esm/apis/AdminApi.js +40 -1
- package/dist/esm/models/AdminCanvasCall.d.ts +134 -0
- package/dist/esm/models/AdminCanvasCall.js +117 -0
- package/dist/esm/models/AdminCanvasCourse.d.ts +59 -0
- package/dist/esm/models/AdminCanvasCourse.js +60 -0
- package/dist/esm/models/AdminCanvasFile.d.ts +156 -0
- package/dist/esm/models/AdminCanvasFile.js +128 -0
- package/dist/esm/models/AdminCanvasFileAnalysis.d.ts +50 -0
- package/dist/esm/models/AdminCanvasFileAnalysis.js +55 -0
- package/dist/esm/models/AdminCanvasFileInContext.d.ts +44 -0
- package/dist/esm/models/AdminCanvasFileInContext.js +51 -0
- package/dist/esm/models/AdminCanvasFileModuleRef.d.ts +44 -0
- package/dist/esm/models/AdminCanvasFileModuleRef.js +51 -0
- package/dist/esm/models/AdminCanvasItem.d.ts +83 -0
- package/dist/esm/models/AdminCanvasItem.js +79 -0
- package/dist/esm/models/AdminCanvasItemId.d.ts +21 -0
- package/dist/esm/models/AdminCanvasItemId.js +43 -0
- package/dist/esm/models/AdminCanvasModule.d.ts +90 -0
- package/dist/esm/models/AdminCanvasModule.js +81 -0
- package/dist/esm/models/AdminCanvasModuleItem.d.ts +70 -0
- package/dist/esm/models/AdminCanvasModuleItem.js +67 -0
- package/dist/esm/models/AdminCanvasUsageFirstSeen.d.ts +44 -0
- package/dist/esm/models/AdminCanvasUsageFirstSeen.js +51 -0
- package/dist/esm/models/AdminCanvasUsageSummary.d.ts +74 -0
- package/dist/esm/models/AdminCanvasUsageSummary.js +71 -0
- package/dist/esm/models/AdminChatCanvasUsage.d.ts +81 -0
- package/dist/esm/models/AdminChatCanvasUsage.js +78 -0
- package/dist/esm/models/AdminQuizGeneration.d.ts +104 -0
- package/dist/esm/models/AdminQuizGeneration.js +94 -0
- package/dist/esm/models/AdminQuizGenerationInput.d.ts +64 -0
- package/dist/esm/models/AdminQuizGenerationInput.js +66 -0
- package/dist/esm/models/AdminQuizSourceFile.d.ts +83 -0
- package/dist/esm/models/AdminQuizSourceFile.js +82 -0
- package/dist/esm/models/AdminQuizSourceMaterial.d.ts +45 -0
- package/dist/esm/models/AdminQuizSourceMaterial.js +52 -0
- package/dist/esm/models/index.d.ts +17 -0
- package/dist/esm/models/index.js +17 -0
- package/dist/models/AdminCanvasCall.d.ts +134 -0
- package/dist/models/AdminCanvasCall.js +125 -0
- package/dist/models/AdminCanvasCourse.d.ts +59 -0
- package/dist/models/AdminCanvasCourse.js +67 -0
- package/dist/models/AdminCanvasFile.d.ts +156 -0
- package/dist/models/AdminCanvasFile.js +136 -0
- package/dist/models/AdminCanvasFileAnalysis.d.ts +50 -0
- package/dist/models/AdminCanvasFileAnalysis.js +62 -0
- package/dist/models/AdminCanvasFileInContext.d.ts +44 -0
- package/dist/models/AdminCanvasFileInContext.js +58 -0
- package/dist/models/AdminCanvasFileModuleRef.d.ts +44 -0
- package/dist/models/AdminCanvasFileModuleRef.js +58 -0
- package/dist/models/AdminCanvasItem.d.ts +83 -0
- package/dist/models/AdminCanvasItem.js +87 -0
- package/dist/models/AdminCanvasItemId.d.ts +21 -0
- package/dist/models/AdminCanvasItemId.js +49 -0
- package/dist/models/AdminCanvasModule.d.ts +90 -0
- package/dist/models/AdminCanvasModule.js +88 -0
- package/dist/models/AdminCanvasModuleItem.d.ts +70 -0
- package/dist/models/AdminCanvasModuleItem.js +74 -0
- package/dist/models/AdminCanvasUsageFirstSeen.d.ts +44 -0
- package/dist/models/AdminCanvasUsageFirstSeen.js +58 -0
- package/dist/models/AdminCanvasUsageSummary.d.ts +74 -0
- package/dist/models/AdminCanvasUsageSummary.js +78 -0
- package/dist/models/AdminChatCanvasUsage.d.ts +81 -0
- package/dist/models/AdminChatCanvasUsage.js +85 -0
- package/dist/models/AdminQuizGeneration.d.ts +104 -0
- package/dist/models/AdminQuizGeneration.js +102 -0
- package/dist/models/AdminQuizGenerationInput.d.ts +64 -0
- package/dist/models/AdminQuizGenerationInput.js +74 -0
- package/dist/models/AdminQuizSourceFile.d.ts +83 -0
- package/dist/models/AdminQuizSourceFile.js +90 -0
- package/dist/models/AdminQuizSourceMaterial.d.ts +45 -0
- package/dist/models/AdminQuizSourceMaterial.js +59 -0
- package/dist/models/index.d.ts +17 -0
- package/dist/models/index.js +17 -0
- package/package.json +1 -1
|
@@ -0,0 +1,71 @@
|
|
|
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 AdminCanvasUsageSummary interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfAdminCanvasUsageSummary(value) {
|
|
18
|
+
if (!('canvasCallCount' in value) || value['canvasCallCount'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('failedCanvasCallCount' in value) || value['failedCanvasCallCount'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('courseCount' in value) || value['courseCount'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('moduleCount' in value) || value['moduleCount'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('fileCount' in value) || value['fileCount'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('otherItemCount' in value) || value['otherItemCount'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('filesAnalyzedCount' in value) || value['filesAnalyzedCount'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('quizGenerationCount' in value) || value['quizGenerationCount'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
export function AdminCanvasUsageSummaryFromJSON(json) {
|
|
37
|
+
return AdminCanvasUsageSummaryFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function AdminCanvasUsageSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'canvasCallCount': json['canvasCallCount'],
|
|
45
|
+
'failedCanvasCallCount': json['failedCanvasCallCount'],
|
|
46
|
+
'courseCount': json['courseCount'],
|
|
47
|
+
'moduleCount': json['moduleCount'],
|
|
48
|
+
'fileCount': json['fileCount'],
|
|
49
|
+
'otherItemCount': json['otherItemCount'],
|
|
50
|
+
'filesAnalyzedCount': json['filesAnalyzedCount'],
|
|
51
|
+
'quizGenerationCount': json['quizGenerationCount'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
export function AdminCanvasUsageSummaryToJSON(json) {
|
|
55
|
+
return AdminCanvasUsageSummaryToJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
export function AdminCanvasUsageSummaryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
58
|
+
if (value == null) {
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'canvasCallCount': value['canvasCallCount'],
|
|
63
|
+
'failedCanvasCallCount': value['failedCanvasCallCount'],
|
|
64
|
+
'courseCount': value['courseCount'],
|
|
65
|
+
'moduleCount': value['moduleCount'],
|
|
66
|
+
'fileCount': value['fileCount'],
|
|
67
|
+
'otherItemCount': value['otherItemCount'],
|
|
68
|
+
'filesAnalyzedCount': value['filesAnalyzedCount'],
|
|
69
|
+
'quizGenerationCount': value['quizGenerationCount'],
|
|
70
|
+
};
|
|
71
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
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 { AdminCanvasCall } from './AdminCanvasCall';
|
|
13
|
+
import type { AdminCanvasCourse } from './AdminCanvasCourse';
|
|
14
|
+
import type { AdminCanvasItem } from './AdminCanvasItem';
|
|
15
|
+
import type { AdminCanvasFile } from './AdminCanvasFile';
|
|
16
|
+
import type { AdminCanvasModule } from './AdminCanvasModule';
|
|
17
|
+
import type { AdminCanvasUsageSummary } from './AdminCanvasUsageSummary';
|
|
18
|
+
import type { AdminQuizGeneration } from './AdminQuizGeneration';
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @export
|
|
22
|
+
* @interface AdminChatCanvasUsage
|
|
23
|
+
*/
|
|
24
|
+
export interface AdminChatCanvasUsage {
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof AdminChatCanvasUsage
|
|
29
|
+
*/
|
|
30
|
+
chatId: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {AdminCanvasUsageSummary}
|
|
34
|
+
* @memberof AdminChatCanvasUsage
|
|
35
|
+
*/
|
|
36
|
+
summary: AdminCanvasUsageSummary;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<AdminCanvasCall>}
|
|
40
|
+
* @memberof AdminChatCanvasUsage
|
|
41
|
+
*/
|
|
42
|
+
canvasCalls: Array<AdminCanvasCall>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<AdminCanvasCourse>}
|
|
46
|
+
* @memberof AdminChatCanvasUsage
|
|
47
|
+
*/
|
|
48
|
+
courses: Array<AdminCanvasCourse>;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {Array<AdminCanvasModule>}
|
|
52
|
+
* @memberof AdminChatCanvasUsage
|
|
53
|
+
*/
|
|
54
|
+
modules: Array<AdminCanvasModule>;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {Array<AdminCanvasFile>}
|
|
58
|
+
* @memberof AdminChatCanvasUsage
|
|
59
|
+
*/
|
|
60
|
+
files: Array<AdminCanvasFile>;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {Array<AdminCanvasItem>}
|
|
64
|
+
* @memberof AdminChatCanvasUsage
|
|
65
|
+
*/
|
|
66
|
+
otherItems: Array<AdminCanvasItem>;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {Array<AdminQuizGeneration>}
|
|
70
|
+
* @memberof AdminChatCanvasUsage
|
|
71
|
+
*/
|
|
72
|
+
quizGenerations: Array<AdminQuizGeneration>;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Check if a given object implements the AdminChatCanvasUsage interface.
|
|
76
|
+
*/
|
|
77
|
+
export declare function instanceOfAdminChatCanvasUsage(value: object): value is AdminChatCanvasUsage;
|
|
78
|
+
export declare function AdminChatCanvasUsageFromJSON(json: any): AdminChatCanvasUsage;
|
|
79
|
+
export declare function AdminChatCanvasUsageFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminChatCanvasUsage;
|
|
80
|
+
export declare function AdminChatCanvasUsageToJSON(json: any): AdminChatCanvasUsage;
|
|
81
|
+
export declare function AdminChatCanvasUsageToJSONTyped(value?: AdminChatCanvasUsage | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,78 @@
|
|
|
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 { AdminCanvasCallFromJSON, AdminCanvasCallToJSON, } from './AdminCanvasCall';
|
|
15
|
+
import { AdminCanvasCourseFromJSON, AdminCanvasCourseToJSON, } from './AdminCanvasCourse';
|
|
16
|
+
import { AdminCanvasItemFromJSON, AdminCanvasItemToJSON, } from './AdminCanvasItem';
|
|
17
|
+
import { AdminCanvasFileFromJSON, AdminCanvasFileToJSON, } from './AdminCanvasFile';
|
|
18
|
+
import { AdminCanvasModuleFromJSON, AdminCanvasModuleToJSON, } from './AdminCanvasModule';
|
|
19
|
+
import { AdminCanvasUsageSummaryFromJSON, AdminCanvasUsageSummaryToJSON, } from './AdminCanvasUsageSummary';
|
|
20
|
+
import { AdminQuizGenerationFromJSON, AdminQuizGenerationToJSON, } from './AdminQuizGeneration';
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AdminChatCanvasUsage interface.
|
|
23
|
+
*/
|
|
24
|
+
export function instanceOfAdminChatCanvasUsage(value) {
|
|
25
|
+
if (!('chatId' in value) || value['chatId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('summary' in value) || value['summary'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('canvasCalls' in value) || value['canvasCalls'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('courses' in value) || value['courses'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('modules' in value) || value['modules'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('files' in value) || value['files'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('otherItems' in value) || value['otherItems'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('quizGenerations' in value) || value['quizGenerations'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
export function AdminChatCanvasUsageFromJSON(json) {
|
|
44
|
+
return AdminChatCanvasUsageFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
export function AdminChatCanvasUsageFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'chatId': json['chatId'],
|
|
52
|
+
'summary': AdminCanvasUsageSummaryFromJSON(json['summary']),
|
|
53
|
+
'canvasCalls': (json['canvasCalls'].map(AdminCanvasCallFromJSON)),
|
|
54
|
+
'courses': (json['courses'].map(AdminCanvasCourseFromJSON)),
|
|
55
|
+
'modules': (json['modules'].map(AdminCanvasModuleFromJSON)),
|
|
56
|
+
'files': (json['files'].map(AdminCanvasFileFromJSON)),
|
|
57
|
+
'otherItems': (json['otherItems'].map(AdminCanvasItemFromJSON)),
|
|
58
|
+
'quizGenerations': (json['quizGenerations'].map(AdminQuizGenerationFromJSON)),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
export function AdminChatCanvasUsageToJSON(json) {
|
|
62
|
+
return AdminChatCanvasUsageToJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
export function AdminChatCanvasUsageToJSONTyped(value, ignoreDiscriminator = false) {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
'chatId': value['chatId'],
|
|
70
|
+
'summary': AdminCanvasUsageSummaryToJSON(value['summary']),
|
|
71
|
+
'canvasCalls': (value['canvasCalls'].map(AdminCanvasCallToJSON)),
|
|
72
|
+
'courses': (value['courses'].map(AdminCanvasCourseToJSON)),
|
|
73
|
+
'modules': (value['modules'].map(AdminCanvasModuleToJSON)),
|
|
74
|
+
'files': (value['files'].map(AdminCanvasFileToJSON)),
|
|
75
|
+
'otherItems': (value['otherItems'].map(AdminCanvasItemToJSON)),
|
|
76
|
+
'quizGenerations': (value['quizGenerations'].map(AdminQuizGenerationToJSON)),
|
|
77
|
+
};
|
|
78
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
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 { AdminCanvasFileInContext } from './AdminCanvasFileInContext';
|
|
13
|
+
import type { AdminQuizSourceMaterial } from './AdminQuizSourceMaterial';
|
|
14
|
+
import type { AdminQuizGenerationInput } from './AdminQuizGenerationInput';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface AdminQuizGeneration
|
|
19
|
+
*/
|
|
20
|
+
export interface AdminQuizGeneration {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof AdminQuizGeneration
|
|
25
|
+
*/
|
|
26
|
+
messageId: string;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof AdminQuizGeneration
|
|
31
|
+
*/
|
|
32
|
+
toolCallId: string;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {Date}
|
|
36
|
+
* @memberof AdminQuizGeneration
|
|
37
|
+
*/
|
|
38
|
+
at: Date;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {AdminQuizGenerationInput}
|
|
42
|
+
* @memberof AdminQuizGeneration
|
|
43
|
+
*/
|
|
44
|
+
input: AdminQuizGenerationInput;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof AdminQuizGeneration
|
|
49
|
+
*/
|
|
50
|
+
outcome: AdminQuizGenerationOutcomeEnum;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof AdminQuizGeneration
|
|
55
|
+
*/
|
|
56
|
+
quizId: string | null;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof AdminQuizGeneration
|
|
61
|
+
*/
|
|
62
|
+
sessionId: string | null;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof AdminQuizGeneration
|
|
67
|
+
*/
|
|
68
|
+
title: string | null;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {number}
|
|
72
|
+
* @memberof AdminQuizGeneration
|
|
73
|
+
*/
|
|
74
|
+
generatedQuestionCount: number | null;
|
|
75
|
+
/**
|
|
76
|
+
* Inferred: Canvas files the chat model had seen before this call. They are not passed to the quiz generator directly.
|
|
77
|
+
* @type {Array<AdminCanvasFileInContext>}
|
|
78
|
+
* @memberof AdminQuizGeneration
|
|
79
|
+
*/
|
|
80
|
+
canvasFilesInContext: Array<AdminCanvasFileInContext>;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {AdminQuizSourceMaterial}
|
|
84
|
+
* @memberof AdminQuizGeneration
|
|
85
|
+
*/
|
|
86
|
+
sourceMaterial: AdminQuizSourceMaterial;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* @export
|
|
90
|
+
*/
|
|
91
|
+
export declare const AdminQuizGenerationOutcomeEnum: {
|
|
92
|
+
readonly Success: "success";
|
|
93
|
+
readonly Error: "error";
|
|
94
|
+
readonly Incomplete: "incomplete";
|
|
95
|
+
};
|
|
96
|
+
export type AdminQuizGenerationOutcomeEnum = typeof AdminQuizGenerationOutcomeEnum[keyof typeof AdminQuizGenerationOutcomeEnum];
|
|
97
|
+
/**
|
|
98
|
+
* Check if a given object implements the AdminQuizGeneration interface.
|
|
99
|
+
*/
|
|
100
|
+
export declare function instanceOfAdminQuizGeneration(value: object): value is AdminQuizGeneration;
|
|
101
|
+
export declare function AdminQuizGenerationFromJSON(json: any): AdminQuizGeneration;
|
|
102
|
+
export declare function AdminQuizGenerationFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminQuizGeneration;
|
|
103
|
+
export declare function AdminQuizGenerationToJSON(json: any): AdminQuizGeneration;
|
|
104
|
+
export declare function AdminQuizGenerationToJSONTyped(value?: AdminQuizGeneration | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,94 @@
|
|
|
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 { AdminCanvasFileInContextFromJSON, AdminCanvasFileInContextToJSON, } from './AdminCanvasFileInContext';
|
|
15
|
+
import { AdminQuizSourceMaterialFromJSON, AdminQuizSourceMaterialToJSON, } from './AdminQuizSourceMaterial';
|
|
16
|
+
import { AdminQuizGenerationInputFromJSON, AdminQuizGenerationInputToJSON, } from './AdminQuizGenerationInput';
|
|
17
|
+
/**
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const AdminQuizGenerationOutcomeEnum = {
|
|
21
|
+
Success: 'success',
|
|
22
|
+
Error: 'error',
|
|
23
|
+
Incomplete: 'incomplete'
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the AdminQuizGeneration interface.
|
|
27
|
+
*/
|
|
28
|
+
export function instanceOfAdminQuizGeneration(value) {
|
|
29
|
+
if (!('messageId' in value) || value['messageId'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('toolCallId' in value) || value['toolCallId'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('at' in value) || value['at'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('input' in value) || value['input'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('outcome' in value) || value['outcome'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('quizId' in value) || value['quizId'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('sessionId' in value) || value['sessionId'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('title' in value) || value['title'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('generatedQuestionCount' in value) || value['generatedQuestionCount'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('canvasFilesInContext' in value) || value['canvasFilesInContext'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('sourceMaterial' in value) || value['sourceMaterial'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
return true;
|
|
52
|
+
}
|
|
53
|
+
export function AdminQuizGenerationFromJSON(json) {
|
|
54
|
+
return AdminQuizGenerationFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
export function AdminQuizGenerationFromJSONTyped(json, ignoreDiscriminator) {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'messageId': json['messageId'],
|
|
62
|
+
'toolCallId': json['toolCallId'],
|
|
63
|
+
'at': (new Date(json['at'])),
|
|
64
|
+
'input': AdminQuizGenerationInputFromJSON(json['input']),
|
|
65
|
+
'outcome': json['outcome'],
|
|
66
|
+
'quizId': json['quizId'],
|
|
67
|
+
'sessionId': json['sessionId'],
|
|
68
|
+
'title': json['title'],
|
|
69
|
+
'generatedQuestionCount': json['generatedQuestionCount'],
|
|
70
|
+
'canvasFilesInContext': (json['canvasFilesInContext'].map(AdminCanvasFileInContextFromJSON)),
|
|
71
|
+
'sourceMaterial': AdminQuizSourceMaterialFromJSON(json['sourceMaterial']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
export function AdminQuizGenerationToJSON(json) {
|
|
75
|
+
return AdminQuizGenerationToJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
export function AdminQuizGenerationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
78
|
+
if (value == null) {
|
|
79
|
+
return value;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
'messageId': value['messageId'],
|
|
83
|
+
'toolCallId': value['toolCallId'],
|
|
84
|
+
'at': value['at'].toISOString(),
|
|
85
|
+
'input': AdminQuizGenerationInputToJSON(value['input']),
|
|
86
|
+
'outcome': value['outcome'],
|
|
87
|
+
'quizId': value['quizId'],
|
|
88
|
+
'sessionId': value['sessionId'],
|
|
89
|
+
'title': value['title'],
|
|
90
|
+
'generatedQuestionCount': value['generatedQuestionCount'],
|
|
91
|
+
'canvasFilesInContext': (value['canvasFilesInContext'].map(AdminCanvasFileInContextToJSON)),
|
|
92
|
+
'sourceMaterial': AdminQuizSourceMaterialToJSON(value['sourceMaterial']),
|
|
93
|
+
};
|
|
94
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
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 AdminQuizGenerationInput
|
|
16
|
+
*/
|
|
17
|
+
export interface AdminQuizGenerationInput {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AdminQuizGenerationInput
|
|
22
|
+
*/
|
|
23
|
+
topic: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AdminQuizGenerationInput
|
|
28
|
+
*/
|
|
29
|
+
mode: AdminQuizGenerationInputModeEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof AdminQuizGenerationInput
|
|
34
|
+
*/
|
|
35
|
+
questionCount: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AdminQuizGenerationInput
|
|
40
|
+
*/
|
|
41
|
+
context: string | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Array<string>}
|
|
45
|
+
* @memberof AdminQuizGenerationInput
|
|
46
|
+
*/
|
|
47
|
+
keyConcepts: Array<string>;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export declare const AdminQuizGenerationInputModeEnum: {
|
|
53
|
+
readonly Quiz: "quiz";
|
|
54
|
+
readonly Flashcards: "flashcards";
|
|
55
|
+
};
|
|
56
|
+
export type AdminQuizGenerationInputModeEnum = typeof AdminQuizGenerationInputModeEnum[keyof typeof AdminQuizGenerationInputModeEnum];
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the AdminQuizGenerationInput interface.
|
|
59
|
+
*/
|
|
60
|
+
export declare function instanceOfAdminQuizGenerationInput(value: object): value is AdminQuizGenerationInput;
|
|
61
|
+
export declare function AdminQuizGenerationInputFromJSON(json: any): AdminQuizGenerationInput;
|
|
62
|
+
export declare function AdminQuizGenerationInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminQuizGenerationInput;
|
|
63
|
+
export declare function AdminQuizGenerationInputToJSON(json: any): AdminQuizGenerationInput;
|
|
64
|
+
export declare function AdminQuizGenerationInputToJSONTyped(value?: AdminQuizGenerationInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const AdminQuizGenerationInputModeEnum = {
|
|
18
|
+
Quiz: 'quiz',
|
|
19
|
+
Flashcards: 'flashcards'
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AdminQuizGenerationInput interface.
|
|
23
|
+
*/
|
|
24
|
+
export function instanceOfAdminQuizGenerationInput(value) {
|
|
25
|
+
if (!('topic' in value) || value['topic'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('mode' in value) || value['mode'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('questionCount' in value) || value['questionCount'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('context' in value) || value['context'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('keyConcepts' in value) || value['keyConcepts'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
export function AdminQuizGenerationInputFromJSON(json) {
|
|
38
|
+
return AdminQuizGenerationInputFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function AdminQuizGenerationInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'topic': json['topic'],
|
|
46
|
+
'mode': json['mode'],
|
|
47
|
+
'questionCount': json['questionCount'],
|
|
48
|
+
'context': json['context'],
|
|
49
|
+
'keyConcepts': json['keyConcepts'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export function AdminQuizGenerationInputToJSON(json) {
|
|
53
|
+
return AdminQuizGenerationInputToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
export function AdminQuizGenerationInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'topic': value['topic'],
|
|
61
|
+
'mode': value['mode'],
|
|
62
|
+
'questionCount': value['questionCount'],
|
|
63
|
+
'context': value['context'],
|
|
64
|
+
'keyConcepts': value['keyConcepts'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
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 AdminQuizSourceFile
|
|
16
|
+
*/
|
|
17
|
+
export interface AdminQuizSourceFile {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AdminQuizSourceFile
|
|
22
|
+
*/
|
|
23
|
+
origin: AdminQuizSourceFileOriginEnum;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AdminQuizSourceFile
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AdminQuizSourceFile
|
|
34
|
+
*/
|
|
35
|
+
mediaType: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof AdminQuizSourceFile
|
|
40
|
+
*/
|
|
41
|
+
sizeBytes: number | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof AdminQuizSourceFile
|
|
46
|
+
*/
|
|
47
|
+
included: boolean;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof AdminQuizSourceFile
|
|
52
|
+
*/
|
|
53
|
+
dropReason: AdminQuizSourceFileDropReasonEnum | null;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export declare const AdminQuizSourceFileOriginEnum: {
|
|
59
|
+
readonly StudyObjective: "study-objective";
|
|
60
|
+
readonly ChatAttachment: "chat-attachment";
|
|
61
|
+
};
|
|
62
|
+
export type AdminQuizSourceFileOriginEnum = typeof AdminQuizSourceFileOriginEnum[keyof typeof AdminQuizSourceFileOriginEnum];
|
|
63
|
+
/**
|
|
64
|
+
* @export
|
|
65
|
+
*/
|
|
66
|
+
export declare const AdminQuizSourceFileDropReasonEnum: {
|
|
67
|
+
readonly UnsupportedMediaType: "unsupported-media-type";
|
|
68
|
+
readonly Unreadable: "unreadable";
|
|
69
|
+
readonly IndeterminateSize: "indeterminate-size";
|
|
70
|
+
readonly PerFileBytes: "per-file-bytes";
|
|
71
|
+
readonly PerFileTokens: "per-file-tokens";
|
|
72
|
+
readonly MaxFiles: "max-files";
|
|
73
|
+
readonly TotalTokens: "total-tokens";
|
|
74
|
+
};
|
|
75
|
+
export type AdminQuizSourceFileDropReasonEnum = typeof AdminQuizSourceFileDropReasonEnum[keyof typeof AdminQuizSourceFileDropReasonEnum];
|
|
76
|
+
/**
|
|
77
|
+
* Check if a given object implements the AdminQuizSourceFile interface.
|
|
78
|
+
*/
|
|
79
|
+
export declare function instanceOfAdminQuizSourceFile(value: object): value is AdminQuizSourceFile;
|
|
80
|
+
export declare function AdminQuizSourceFileFromJSON(json: any): AdminQuizSourceFile;
|
|
81
|
+
export declare function AdminQuizSourceFileFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminQuizSourceFile;
|
|
82
|
+
export declare function AdminQuizSourceFileToJSON(json: any): AdminQuizSourceFile;
|
|
83
|
+
export declare function AdminQuizSourceFileToJSONTyped(value?: AdminQuizSourceFile | null, ignoreDiscriminator?: boolean): any;
|