@instructure/athena-api-client 3.38.3 → 3.38.5
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,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.instanceOfAdminCanvasUsageSummary = instanceOfAdminCanvasUsageSummary;
|
|
17
|
+
exports.AdminCanvasUsageSummaryFromJSON = AdminCanvasUsageSummaryFromJSON;
|
|
18
|
+
exports.AdminCanvasUsageSummaryFromJSONTyped = AdminCanvasUsageSummaryFromJSONTyped;
|
|
19
|
+
exports.AdminCanvasUsageSummaryToJSON = AdminCanvasUsageSummaryToJSON;
|
|
20
|
+
exports.AdminCanvasUsageSummaryToJSONTyped = AdminCanvasUsageSummaryToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AdminCanvasUsageSummary interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAdminCanvasUsageSummary(value) {
|
|
25
|
+
if (!('canvasCallCount' in value) || value['canvasCallCount'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('failedCanvasCallCount' in value) || value['failedCanvasCallCount'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('courseCount' in value) || value['courseCount'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('moduleCount' in value) || value['moduleCount'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('fileCount' in value) || value['fileCount'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('otherItemCount' in value) || value['otherItemCount'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('filesAnalyzedCount' in value) || value['filesAnalyzedCount'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('quizGenerationCount' in value) || value['quizGenerationCount'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function AdminCanvasUsageSummaryFromJSON(json) {
|
|
44
|
+
return AdminCanvasUsageSummaryFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function AdminCanvasUsageSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'canvasCallCount': json['canvasCallCount'],
|
|
52
|
+
'failedCanvasCallCount': json['failedCanvasCallCount'],
|
|
53
|
+
'courseCount': json['courseCount'],
|
|
54
|
+
'moduleCount': json['moduleCount'],
|
|
55
|
+
'fileCount': json['fileCount'],
|
|
56
|
+
'otherItemCount': json['otherItemCount'],
|
|
57
|
+
'filesAnalyzedCount': json['filesAnalyzedCount'],
|
|
58
|
+
'quizGenerationCount': json['quizGenerationCount'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function AdminCanvasUsageSummaryToJSON(json) {
|
|
62
|
+
return AdminCanvasUsageSummaryToJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
function AdminCanvasUsageSummaryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
'canvasCallCount': value['canvasCallCount'],
|
|
70
|
+
'failedCanvasCallCount': value['failedCanvasCallCount'],
|
|
71
|
+
'courseCount': value['courseCount'],
|
|
72
|
+
'moduleCount': value['moduleCount'],
|
|
73
|
+
'fileCount': value['fileCount'],
|
|
74
|
+
'otherItemCount': value['otherItemCount'],
|
|
75
|
+
'filesAnalyzedCount': value['filesAnalyzedCount'],
|
|
76
|
+
'quizGenerationCount': value['quizGenerationCount'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
@@ -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,85 @@
|
|
|
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.instanceOfAdminChatCanvasUsage = instanceOfAdminChatCanvasUsage;
|
|
17
|
+
exports.AdminChatCanvasUsageFromJSON = AdminChatCanvasUsageFromJSON;
|
|
18
|
+
exports.AdminChatCanvasUsageFromJSONTyped = AdminChatCanvasUsageFromJSONTyped;
|
|
19
|
+
exports.AdminChatCanvasUsageToJSON = AdminChatCanvasUsageToJSON;
|
|
20
|
+
exports.AdminChatCanvasUsageToJSONTyped = AdminChatCanvasUsageToJSONTyped;
|
|
21
|
+
const AdminCanvasCall_1 = require("./AdminCanvasCall");
|
|
22
|
+
const AdminCanvasCourse_1 = require("./AdminCanvasCourse");
|
|
23
|
+
const AdminCanvasItem_1 = require("./AdminCanvasItem");
|
|
24
|
+
const AdminCanvasFile_1 = require("./AdminCanvasFile");
|
|
25
|
+
const AdminCanvasModule_1 = require("./AdminCanvasModule");
|
|
26
|
+
const AdminCanvasUsageSummary_1 = require("./AdminCanvasUsageSummary");
|
|
27
|
+
const AdminQuizGeneration_1 = require("./AdminQuizGeneration");
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the AdminChatCanvasUsage interface.
|
|
30
|
+
*/
|
|
31
|
+
function instanceOfAdminChatCanvasUsage(value) {
|
|
32
|
+
if (!('chatId' in value) || value['chatId'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('summary' in value) || value['summary'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('canvasCalls' in value) || value['canvasCalls'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('courses' in value) || value['courses'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('modules' in value) || value['modules'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('files' in value) || value['files'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('otherItems' in value) || value['otherItems'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('quizGenerations' in value) || value['quizGenerations'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
function AdminChatCanvasUsageFromJSON(json) {
|
|
51
|
+
return AdminChatCanvasUsageFromJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function AdminChatCanvasUsageFromJSONTyped(json, ignoreDiscriminator) {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'chatId': json['chatId'],
|
|
59
|
+
'summary': (0, AdminCanvasUsageSummary_1.AdminCanvasUsageSummaryFromJSON)(json['summary']),
|
|
60
|
+
'canvasCalls': (json['canvasCalls'].map(AdminCanvasCall_1.AdminCanvasCallFromJSON)),
|
|
61
|
+
'courses': (json['courses'].map(AdminCanvasCourse_1.AdminCanvasCourseFromJSON)),
|
|
62
|
+
'modules': (json['modules'].map(AdminCanvasModule_1.AdminCanvasModuleFromJSON)),
|
|
63
|
+
'files': (json['files'].map(AdminCanvasFile_1.AdminCanvasFileFromJSON)),
|
|
64
|
+
'otherItems': (json['otherItems'].map(AdminCanvasItem_1.AdminCanvasItemFromJSON)),
|
|
65
|
+
'quizGenerations': (json['quizGenerations'].map(AdminQuizGeneration_1.AdminQuizGenerationFromJSON)),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
function AdminChatCanvasUsageToJSON(json) {
|
|
69
|
+
return AdminChatCanvasUsageToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
function AdminChatCanvasUsageToJSONTyped(value, ignoreDiscriminator = false) {
|
|
72
|
+
if (value == null) {
|
|
73
|
+
return value;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
'chatId': value['chatId'],
|
|
77
|
+
'summary': (0, AdminCanvasUsageSummary_1.AdminCanvasUsageSummaryToJSON)(value['summary']),
|
|
78
|
+
'canvasCalls': (value['canvasCalls'].map(AdminCanvasCall_1.AdminCanvasCallToJSON)),
|
|
79
|
+
'courses': (value['courses'].map(AdminCanvasCourse_1.AdminCanvasCourseToJSON)),
|
|
80
|
+
'modules': (value['modules'].map(AdminCanvasModule_1.AdminCanvasModuleToJSON)),
|
|
81
|
+
'files': (value['files'].map(AdminCanvasFile_1.AdminCanvasFileToJSON)),
|
|
82
|
+
'otherItems': (value['otherItems'].map(AdminCanvasItem_1.AdminCanvasItemToJSON)),
|
|
83
|
+
'quizGenerations': (value['quizGenerations'].map(AdminQuizGeneration_1.AdminQuizGenerationToJSON)),
|
|
84
|
+
};
|
|
85
|
+
}
|
|
@@ -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,102 @@
|
|
|
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.AdminQuizGenerationOutcomeEnum = void 0;
|
|
17
|
+
exports.instanceOfAdminQuizGeneration = instanceOfAdminQuizGeneration;
|
|
18
|
+
exports.AdminQuizGenerationFromJSON = AdminQuizGenerationFromJSON;
|
|
19
|
+
exports.AdminQuizGenerationFromJSONTyped = AdminQuizGenerationFromJSONTyped;
|
|
20
|
+
exports.AdminQuizGenerationToJSON = AdminQuizGenerationToJSON;
|
|
21
|
+
exports.AdminQuizGenerationToJSONTyped = AdminQuizGenerationToJSONTyped;
|
|
22
|
+
const AdminCanvasFileInContext_1 = require("./AdminCanvasFileInContext");
|
|
23
|
+
const AdminQuizSourceMaterial_1 = require("./AdminQuizSourceMaterial");
|
|
24
|
+
const AdminQuizGenerationInput_1 = require("./AdminQuizGenerationInput");
|
|
25
|
+
/**
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
exports.AdminQuizGenerationOutcomeEnum = {
|
|
29
|
+
Success: 'success',
|
|
30
|
+
Error: 'error',
|
|
31
|
+
Incomplete: 'incomplete'
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the AdminQuizGeneration interface.
|
|
35
|
+
*/
|
|
36
|
+
function instanceOfAdminQuizGeneration(value) {
|
|
37
|
+
if (!('messageId' in value) || value['messageId'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('toolCallId' in value) || value['toolCallId'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('at' in value) || value['at'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('input' in value) || value['input'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('outcome' in value) || value['outcome'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('quizId' in value) || value['quizId'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('sessionId' in value) || value['sessionId'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('title' in value) || value['title'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
if (!('generatedQuestionCount' in value) || value['generatedQuestionCount'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
if (!('canvasFilesInContext' in value) || value['canvasFilesInContext'] === undefined)
|
|
56
|
+
return false;
|
|
57
|
+
if (!('sourceMaterial' in value) || value['sourceMaterial'] === undefined)
|
|
58
|
+
return false;
|
|
59
|
+
return true;
|
|
60
|
+
}
|
|
61
|
+
function AdminQuizGenerationFromJSON(json) {
|
|
62
|
+
return AdminQuizGenerationFromJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
function AdminQuizGenerationFromJSONTyped(json, ignoreDiscriminator) {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
'messageId': json['messageId'],
|
|
70
|
+
'toolCallId': json['toolCallId'],
|
|
71
|
+
'at': (new Date(json['at'])),
|
|
72
|
+
'input': (0, AdminQuizGenerationInput_1.AdminQuizGenerationInputFromJSON)(json['input']),
|
|
73
|
+
'outcome': json['outcome'],
|
|
74
|
+
'quizId': json['quizId'],
|
|
75
|
+
'sessionId': json['sessionId'],
|
|
76
|
+
'title': json['title'],
|
|
77
|
+
'generatedQuestionCount': json['generatedQuestionCount'],
|
|
78
|
+
'canvasFilesInContext': (json['canvasFilesInContext'].map(AdminCanvasFileInContext_1.AdminCanvasFileInContextFromJSON)),
|
|
79
|
+
'sourceMaterial': (0, AdminQuizSourceMaterial_1.AdminQuizSourceMaterialFromJSON)(json['sourceMaterial']),
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
function AdminQuizGenerationToJSON(json) {
|
|
83
|
+
return AdminQuizGenerationToJSONTyped(json, false);
|
|
84
|
+
}
|
|
85
|
+
function AdminQuizGenerationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
86
|
+
if (value == null) {
|
|
87
|
+
return value;
|
|
88
|
+
}
|
|
89
|
+
return {
|
|
90
|
+
'messageId': value['messageId'],
|
|
91
|
+
'toolCallId': value['toolCallId'],
|
|
92
|
+
'at': value['at'].toISOString(),
|
|
93
|
+
'input': (0, AdminQuizGenerationInput_1.AdminQuizGenerationInputToJSON)(value['input']),
|
|
94
|
+
'outcome': value['outcome'],
|
|
95
|
+
'quizId': value['quizId'],
|
|
96
|
+
'sessionId': value['sessionId'],
|
|
97
|
+
'title': value['title'],
|
|
98
|
+
'generatedQuestionCount': value['generatedQuestionCount'],
|
|
99
|
+
'canvasFilesInContext': (value['canvasFilesInContext'].map(AdminCanvasFileInContext_1.AdminCanvasFileInContextToJSON)),
|
|
100
|
+
'sourceMaterial': (0, AdminQuizSourceMaterial_1.AdminQuizSourceMaterialToJSON)(value['sourceMaterial']),
|
|
101
|
+
};
|
|
102
|
+
}
|
|
@@ -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,74 @@
|
|
|
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.AdminQuizGenerationInputModeEnum = void 0;
|
|
17
|
+
exports.instanceOfAdminQuizGenerationInput = instanceOfAdminQuizGenerationInput;
|
|
18
|
+
exports.AdminQuizGenerationInputFromJSON = AdminQuizGenerationInputFromJSON;
|
|
19
|
+
exports.AdminQuizGenerationInputFromJSONTyped = AdminQuizGenerationInputFromJSONTyped;
|
|
20
|
+
exports.AdminQuizGenerationInputToJSON = AdminQuizGenerationInputToJSON;
|
|
21
|
+
exports.AdminQuizGenerationInputToJSONTyped = AdminQuizGenerationInputToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.AdminQuizGenerationInputModeEnum = {
|
|
26
|
+
Quiz: 'quiz',
|
|
27
|
+
Flashcards: 'flashcards'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the AdminQuizGenerationInput interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfAdminQuizGenerationInput(value) {
|
|
33
|
+
if (!('topic' in value) || value['topic'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('mode' in value) || value['mode'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('questionCount' in value) || value['questionCount'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('context' in value) || value['context'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('keyConcepts' in value) || value['keyConcepts'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
function AdminQuizGenerationInputFromJSON(json) {
|
|
46
|
+
return AdminQuizGenerationInputFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function AdminQuizGenerationInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'topic': json['topic'],
|
|
54
|
+
'mode': json['mode'],
|
|
55
|
+
'questionCount': json['questionCount'],
|
|
56
|
+
'context': json['context'],
|
|
57
|
+
'keyConcepts': json['keyConcepts'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function AdminQuizGenerationInputToJSON(json) {
|
|
61
|
+
return AdminQuizGenerationInputToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
function AdminQuizGenerationInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
'topic': value['topic'],
|
|
69
|
+
'mode': value['mode'],
|
|
70
|
+
'questionCount': value['questionCount'],
|
|
71
|
+
'context': value['context'],
|
|
72
|
+
'keyConcepts': value['keyConcepts'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
@@ -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;
|