@instructure/athena-api-client 3.35.1 → 3.36.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 +1 -0
- package/dist/esm/models/ChatRequest.d.ts +7 -0
- package/dist/esm/models/ChatRequest.js +3 -0
- package/dist/esm/models/ChatRequestQuizSettings.d.ts +54 -0
- package/dist/esm/models/ChatRequestQuizSettings.js +54 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/ChatRequest.d.ts +7 -0
- package/dist/models/ChatRequest.js +3 -0
- package/dist/models/ChatRequestQuizSettings.d.ts +54 -0
- package/dist/models/ChatRequestQuizSettings.js +62 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -237,6 +237,7 @@ All URIs are relative to *http://localhost:3000*
|
|
|
237
237
|
- [ChatRequestQuizContext](docs/ChatRequestQuizContext.md)
|
|
238
238
|
- [ChatRequestQuizContextAnswerState](docs/ChatRequestQuizContextAnswerState.md)
|
|
239
239
|
- [ChatRequestQuizContextCurrentQuestion](docs/ChatRequestQuizContextCurrentQuestion.md)
|
|
240
|
+
- [ChatRequestQuizSettings](docs/ChatRequestQuizSettings.md)
|
|
240
241
|
- [ChatStudyPlanActivity](docs/ChatStudyPlanActivity.md)
|
|
241
242
|
- [ConceptAssessmentEntity](docs/ConceptAssessmentEntity.md)
|
|
242
243
|
- [ConceptChange](docs/ConceptChange.md)
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { ChatRequestExternalFileUrl } from './ChatRequestExternalFileUrl';
|
|
13
13
|
import type { ChatRequestMessageMetadata } from './ChatRequestMessageMetadata';
|
|
14
|
+
import type { ChatRequestQuizSettings } from './ChatRequestQuizSettings';
|
|
14
15
|
import type { ChatRequestAttachmentsInner } from './ChatRequestAttachmentsInner';
|
|
15
16
|
import type { ChatRequestQuizContext } from './ChatRequestQuizContext';
|
|
16
17
|
/**
|
|
@@ -55,6 +56,12 @@ export interface ChatRequest {
|
|
|
55
56
|
* @memberof ChatRequest
|
|
56
57
|
*/
|
|
57
58
|
quizContext?: ChatRequestQuizContext;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {ChatRequestQuizSettings}
|
|
62
|
+
* @memberof ChatRequest
|
|
63
|
+
*/
|
|
64
|
+
quizSettings?: ChatRequestQuizSettings;
|
|
58
65
|
/**
|
|
59
66
|
* When true, extract text from every PDF attachment up front and send it as text instead of as page-rendered file parts. Set by the client when retrying after a pdf_context_overflow failure. Acts as the loop guard: a textOnly request is never auto-retried again.
|
|
60
67
|
* @type {boolean}
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
import { ChatRequestExternalFileUrlFromJSON, ChatRequestExternalFileUrlToJSON, } from './ChatRequestExternalFileUrl';
|
|
15
15
|
import { ChatRequestMessageMetadataFromJSON, ChatRequestMessageMetadataToJSON, } from './ChatRequestMessageMetadata';
|
|
16
|
+
import { ChatRequestQuizSettingsFromJSON, ChatRequestQuizSettingsToJSON, } from './ChatRequestQuizSettings';
|
|
16
17
|
import { ChatRequestAttachmentsInnerFromJSON, ChatRequestAttachmentsInnerToJSON, } from './ChatRequestAttachmentsInner';
|
|
17
18
|
import { ChatRequestQuizContextFromJSON, ChatRequestQuizContextToJSON, } from './ChatRequestQuizContext';
|
|
18
19
|
/**
|
|
@@ -45,6 +46,7 @@ export function ChatRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
46
|
'attachments': json['attachments'] == null ? undefined : (json['attachments'].map(ChatRequestAttachmentsInnerFromJSON)),
|
|
46
47
|
'externalFileUrl': json['externalFileUrl'] == null ? undefined : ChatRequestExternalFileUrlFromJSON(json['externalFileUrl']),
|
|
47
48
|
'quizContext': json['quizContext'] == null ? undefined : ChatRequestQuizContextFromJSON(json['quizContext']),
|
|
49
|
+
'quizSettings': json['quizSettings'] == null ? undefined : ChatRequestQuizSettingsFromJSON(json['quizSettings']),
|
|
48
50
|
'textOnly': json['textOnly'] == null ? undefined : json['textOnly'],
|
|
49
51
|
'taxonomyId': json['taxonomyId'] == null ? undefined : json['taxonomyId'],
|
|
50
52
|
'trigger': json['trigger'] == null ? undefined : json['trigger'],
|
|
@@ -65,6 +67,7 @@ export function ChatRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
65
67
|
'attachments': value['attachments'] == null ? undefined : (value['attachments'].map(ChatRequestAttachmentsInnerToJSON)),
|
|
66
68
|
'externalFileUrl': ChatRequestExternalFileUrlToJSON(value['externalFileUrl']),
|
|
67
69
|
'quizContext': ChatRequestQuizContextToJSON(value['quizContext']),
|
|
70
|
+
'quizSettings': ChatRequestQuizSettingsToJSON(value['quizSettings']),
|
|
68
71
|
'textOnly': value['textOnly'],
|
|
69
72
|
'taxonomyId': value['taxonomyId'],
|
|
70
73
|
'trigger': value['trigger'],
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
* Optional learner-chosen settings for a quiz generated during this turn (question formats, count, free-text focus). Applies to this request only and requires the enhanced-quizzing feature; without it the field is ignored.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ChatRequestQuizSettings
|
|
16
|
+
*/
|
|
17
|
+
export interface ChatRequestQuizSettings {
|
|
18
|
+
/**
|
|
19
|
+
* Question formats the quiz may use. Every generated question is one of these; omit to let Athena choose the default active-recall mix. Duplicates are ignored. Only applies to quiz mode.
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof ChatRequestQuizSettings
|
|
22
|
+
*/
|
|
23
|
+
questionTypes?: Array<ChatRequestQuizSettingsQuestionTypesEnum>;
|
|
24
|
+
/**
|
|
25
|
+
* Exact number of questions to generate. Overrides whatever count the conversation would otherwise settle on.
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof ChatRequestQuizSettings
|
|
28
|
+
*/
|
|
29
|
+
questionCount?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Free-text notes from the learner about what the quiz should cover, emphasize, or how hard it should be. Steers content only; it cannot change the formats or the count above.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ChatRequestQuizSettings
|
|
34
|
+
*/
|
|
35
|
+
instructions?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const ChatRequestQuizSettingsQuestionTypesEnum: {
|
|
41
|
+
readonly Mcq: "mcq";
|
|
42
|
+
readonly FillBlank: "fill-blank";
|
|
43
|
+
readonly SpotError: "spot-error";
|
|
44
|
+
readonly TeachBack: "teach-back";
|
|
45
|
+
};
|
|
46
|
+
export type ChatRequestQuizSettingsQuestionTypesEnum = typeof ChatRequestQuizSettingsQuestionTypesEnum[keyof typeof ChatRequestQuizSettingsQuestionTypesEnum];
|
|
47
|
+
/**
|
|
48
|
+
* Check if a given object implements the ChatRequestQuizSettings interface.
|
|
49
|
+
*/
|
|
50
|
+
export declare function instanceOfChatRequestQuizSettings(value: object): value is ChatRequestQuizSettings;
|
|
51
|
+
export declare function ChatRequestQuizSettingsFromJSON(json: any): ChatRequestQuizSettings;
|
|
52
|
+
export declare function ChatRequestQuizSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatRequestQuizSettings;
|
|
53
|
+
export declare function ChatRequestQuizSettingsToJSON(json: any): ChatRequestQuizSettings;
|
|
54
|
+
export declare function ChatRequestQuizSettingsToJSONTyped(value?: ChatRequestQuizSettings | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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 ChatRequestQuizSettingsQuestionTypesEnum = {
|
|
18
|
+
Mcq: 'mcq',
|
|
19
|
+
FillBlank: 'fill-blank',
|
|
20
|
+
SpotError: 'spot-error',
|
|
21
|
+
TeachBack: 'teach-back'
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the ChatRequestQuizSettings interface.
|
|
25
|
+
*/
|
|
26
|
+
export function instanceOfChatRequestQuizSettings(value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
export function ChatRequestQuizSettingsFromJSON(json) {
|
|
30
|
+
return ChatRequestQuizSettingsFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
export function ChatRequestQuizSettingsFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'questionTypes': json['questionTypes'] == null ? undefined : json['questionTypes'],
|
|
38
|
+
'questionCount': json['questionCount'] == null ? undefined : json['questionCount'],
|
|
39
|
+
'instructions': json['instructions'] == null ? undefined : json['instructions'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function ChatRequestQuizSettingsToJSON(json) {
|
|
43
|
+
return ChatRequestQuizSettingsToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function ChatRequestQuizSettingsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'questionTypes': value['questionTypes'],
|
|
51
|
+
'questionCount': value['questionCount'],
|
|
52
|
+
'instructions': value['instructions'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -49,6 +49,7 @@ export * from './ChatRequestMessageMetadata';
|
|
|
49
49
|
export * from './ChatRequestQuizContext';
|
|
50
50
|
export * from './ChatRequestQuizContextAnswerState';
|
|
51
51
|
export * from './ChatRequestQuizContextCurrentQuestion';
|
|
52
|
+
export * from './ChatRequestQuizSettings';
|
|
52
53
|
export * from './ChatStudyPlanActivity';
|
|
53
54
|
export * from './ConceptAssessmentEntity';
|
|
54
55
|
export * from './ConceptChange';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -51,6 +51,7 @@ export * from './ChatRequestMessageMetadata';
|
|
|
51
51
|
export * from './ChatRequestQuizContext';
|
|
52
52
|
export * from './ChatRequestQuizContextAnswerState';
|
|
53
53
|
export * from './ChatRequestQuizContextCurrentQuestion';
|
|
54
|
+
export * from './ChatRequestQuizSettings';
|
|
54
55
|
export * from './ChatStudyPlanActivity';
|
|
55
56
|
export * from './ConceptAssessmentEntity';
|
|
56
57
|
export * from './ConceptChange';
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { ChatRequestExternalFileUrl } from './ChatRequestExternalFileUrl';
|
|
13
13
|
import type { ChatRequestMessageMetadata } from './ChatRequestMessageMetadata';
|
|
14
|
+
import type { ChatRequestQuizSettings } from './ChatRequestQuizSettings';
|
|
14
15
|
import type { ChatRequestAttachmentsInner } from './ChatRequestAttachmentsInner';
|
|
15
16
|
import type { ChatRequestQuizContext } from './ChatRequestQuizContext';
|
|
16
17
|
/**
|
|
@@ -55,6 +56,12 @@ export interface ChatRequest {
|
|
|
55
56
|
* @memberof ChatRequest
|
|
56
57
|
*/
|
|
57
58
|
quizContext?: ChatRequestQuizContext;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {ChatRequestQuizSettings}
|
|
62
|
+
* @memberof ChatRequest
|
|
63
|
+
*/
|
|
64
|
+
quizSettings?: ChatRequestQuizSettings;
|
|
58
65
|
/**
|
|
59
66
|
* When true, extract text from every PDF attachment up front and send it as text instead of as page-rendered file parts. Set by the client when retrying after a pdf_context_overflow failure. Acts as the loop guard: a textOnly request is never auto-retried again.
|
|
60
67
|
* @type {boolean}
|
|
@@ -21,6 +21,7 @@ exports.ChatRequestToJSON = ChatRequestToJSON;
|
|
|
21
21
|
exports.ChatRequestToJSONTyped = ChatRequestToJSONTyped;
|
|
22
22
|
const ChatRequestExternalFileUrl_1 = require("./ChatRequestExternalFileUrl");
|
|
23
23
|
const ChatRequestMessageMetadata_1 = require("./ChatRequestMessageMetadata");
|
|
24
|
+
const ChatRequestQuizSettings_1 = require("./ChatRequestQuizSettings");
|
|
24
25
|
const ChatRequestAttachmentsInner_1 = require("./ChatRequestAttachmentsInner");
|
|
25
26
|
const ChatRequestQuizContext_1 = require("./ChatRequestQuizContext");
|
|
26
27
|
/**
|
|
@@ -53,6 +54,7 @@ function ChatRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
54
|
'attachments': json['attachments'] == null ? undefined : (json['attachments'].map(ChatRequestAttachmentsInner_1.ChatRequestAttachmentsInnerFromJSON)),
|
|
54
55
|
'externalFileUrl': json['externalFileUrl'] == null ? undefined : (0, ChatRequestExternalFileUrl_1.ChatRequestExternalFileUrlFromJSON)(json['externalFileUrl']),
|
|
55
56
|
'quizContext': json['quizContext'] == null ? undefined : (0, ChatRequestQuizContext_1.ChatRequestQuizContextFromJSON)(json['quizContext']),
|
|
57
|
+
'quizSettings': json['quizSettings'] == null ? undefined : (0, ChatRequestQuizSettings_1.ChatRequestQuizSettingsFromJSON)(json['quizSettings']),
|
|
56
58
|
'textOnly': json['textOnly'] == null ? undefined : json['textOnly'],
|
|
57
59
|
'taxonomyId': json['taxonomyId'] == null ? undefined : json['taxonomyId'],
|
|
58
60
|
'trigger': json['trigger'] == null ? undefined : json['trigger'],
|
|
@@ -73,6 +75,7 @@ function ChatRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
73
75
|
'attachments': value['attachments'] == null ? undefined : (value['attachments'].map(ChatRequestAttachmentsInner_1.ChatRequestAttachmentsInnerToJSON)),
|
|
74
76
|
'externalFileUrl': (0, ChatRequestExternalFileUrl_1.ChatRequestExternalFileUrlToJSON)(value['externalFileUrl']),
|
|
75
77
|
'quizContext': (0, ChatRequestQuizContext_1.ChatRequestQuizContextToJSON)(value['quizContext']),
|
|
78
|
+
'quizSettings': (0, ChatRequestQuizSettings_1.ChatRequestQuizSettingsToJSON)(value['quizSettings']),
|
|
76
79
|
'textOnly': value['textOnly'],
|
|
77
80
|
'taxonomyId': value['taxonomyId'],
|
|
78
81
|
'trigger': value['trigger'],
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
* Optional learner-chosen settings for a quiz generated during this turn (question formats, count, free-text focus). Applies to this request only and requires the enhanced-quizzing feature; without it the field is ignored.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ChatRequestQuizSettings
|
|
16
|
+
*/
|
|
17
|
+
export interface ChatRequestQuizSettings {
|
|
18
|
+
/**
|
|
19
|
+
* Question formats the quiz may use. Every generated question is one of these; omit to let Athena choose the default active-recall mix. Duplicates are ignored. Only applies to quiz mode.
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof ChatRequestQuizSettings
|
|
22
|
+
*/
|
|
23
|
+
questionTypes?: Array<ChatRequestQuizSettingsQuestionTypesEnum>;
|
|
24
|
+
/**
|
|
25
|
+
* Exact number of questions to generate. Overrides whatever count the conversation would otherwise settle on.
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof ChatRequestQuizSettings
|
|
28
|
+
*/
|
|
29
|
+
questionCount?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Free-text notes from the learner about what the quiz should cover, emphasize, or how hard it should be. Steers content only; it cannot change the formats or the count above.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ChatRequestQuizSettings
|
|
34
|
+
*/
|
|
35
|
+
instructions?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const ChatRequestQuizSettingsQuestionTypesEnum: {
|
|
41
|
+
readonly Mcq: "mcq";
|
|
42
|
+
readonly FillBlank: "fill-blank";
|
|
43
|
+
readonly SpotError: "spot-error";
|
|
44
|
+
readonly TeachBack: "teach-back";
|
|
45
|
+
};
|
|
46
|
+
export type ChatRequestQuizSettingsQuestionTypesEnum = typeof ChatRequestQuizSettingsQuestionTypesEnum[keyof typeof ChatRequestQuizSettingsQuestionTypesEnum];
|
|
47
|
+
/**
|
|
48
|
+
* Check if a given object implements the ChatRequestQuizSettings interface.
|
|
49
|
+
*/
|
|
50
|
+
export declare function instanceOfChatRequestQuizSettings(value: object): value is ChatRequestQuizSettings;
|
|
51
|
+
export declare function ChatRequestQuizSettingsFromJSON(json: any): ChatRequestQuizSettings;
|
|
52
|
+
export declare function ChatRequestQuizSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatRequestQuizSettings;
|
|
53
|
+
export declare function ChatRequestQuizSettingsToJSON(json: any): ChatRequestQuizSettings;
|
|
54
|
+
export declare function ChatRequestQuizSettingsToJSONTyped(value?: ChatRequestQuizSettings | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
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.ChatRequestQuizSettingsQuestionTypesEnum = void 0;
|
|
17
|
+
exports.instanceOfChatRequestQuizSettings = instanceOfChatRequestQuizSettings;
|
|
18
|
+
exports.ChatRequestQuizSettingsFromJSON = ChatRequestQuizSettingsFromJSON;
|
|
19
|
+
exports.ChatRequestQuizSettingsFromJSONTyped = ChatRequestQuizSettingsFromJSONTyped;
|
|
20
|
+
exports.ChatRequestQuizSettingsToJSON = ChatRequestQuizSettingsToJSON;
|
|
21
|
+
exports.ChatRequestQuizSettingsToJSONTyped = ChatRequestQuizSettingsToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.ChatRequestQuizSettingsQuestionTypesEnum = {
|
|
26
|
+
Mcq: 'mcq',
|
|
27
|
+
FillBlank: 'fill-blank',
|
|
28
|
+
SpotError: 'spot-error',
|
|
29
|
+
TeachBack: 'teach-back'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ChatRequestQuizSettings interface.
|
|
33
|
+
*/
|
|
34
|
+
function instanceOfChatRequestQuizSettings(value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function ChatRequestQuizSettingsFromJSON(json) {
|
|
38
|
+
return ChatRequestQuizSettingsFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function ChatRequestQuizSettingsFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'questionTypes': json['questionTypes'] == null ? undefined : json['questionTypes'],
|
|
46
|
+
'questionCount': json['questionCount'] == null ? undefined : json['questionCount'],
|
|
47
|
+
'instructions': json['instructions'] == null ? undefined : json['instructions'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function ChatRequestQuizSettingsToJSON(json) {
|
|
51
|
+
return ChatRequestQuizSettingsToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function ChatRequestQuizSettingsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'questionTypes': value['questionTypes'],
|
|
59
|
+
'questionCount': value['questionCount'],
|
|
60
|
+
'instructions': value['instructions'],
|
|
61
|
+
};
|
|
62
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -49,6 +49,7 @@ export * from './ChatRequestMessageMetadata';
|
|
|
49
49
|
export * from './ChatRequestQuizContext';
|
|
50
50
|
export * from './ChatRequestQuizContextAnswerState';
|
|
51
51
|
export * from './ChatRequestQuizContextCurrentQuestion';
|
|
52
|
+
export * from './ChatRequestQuizSettings';
|
|
52
53
|
export * from './ChatStudyPlanActivity';
|
|
53
54
|
export * from './ConceptAssessmentEntity';
|
|
54
55
|
export * from './ConceptChange';
|
package/dist/models/index.js
CHANGED
|
@@ -67,6 +67,7 @@ __exportStar(require("./ChatRequestMessageMetadata"), exports);
|
|
|
67
67
|
__exportStar(require("./ChatRequestQuizContext"), exports);
|
|
68
68
|
__exportStar(require("./ChatRequestQuizContextAnswerState"), exports);
|
|
69
69
|
__exportStar(require("./ChatRequestQuizContextCurrentQuestion"), exports);
|
|
70
|
+
__exportStar(require("./ChatRequestQuizSettings"), exports);
|
|
70
71
|
__exportStar(require("./ChatStudyPlanActivity"), exports);
|
|
71
72
|
__exportStar(require("./ConceptAssessmentEntity"), exports);
|
|
72
73
|
__exportStar(require("./ConceptChange"), exports);
|