@instructure/athena-api-client 4.9.5 → 4.10.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/dist/esm/models/StudyObjectiveAccess.d.ts +8 -1
- package/dist/esm/models/StudyObjectiveAccess.js +6 -1
- package/dist/esm/models/StudyObjectiveConceptAttachment.d.ts +2 -2
- package/dist/models/StudyObjectiveAccess.d.ts +8 -1
- package/dist/models/StudyObjectiveAccess.js +6 -1
- package/dist/models/StudyObjectiveConceptAttachment.d.ts +2 -2
- package/package.json +1 -1
|
@@ -118,11 +118,17 @@ export interface StudyObjectiveAccess {
|
|
|
118
118
|
*/
|
|
119
119
|
suggestedScope: Array<string> | null;
|
|
120
120
|
/**
|
|
121
|
-
* What built this item's topic list, decided from the text its extraction was given: 'text' (the item's own text, long enough to count as material), '
|
|
121
|
+
* What built this item's topic list, decided from the text its extraction was given: 'text' (the item's own text, long enough to count as material), 'module' (no item text that says what it covers, so the list was suggested from the name of the course module the item sits in and the names of the other items there), 'syllabus' (neither, so the list was inferred from the course syllabus) or 'title' (the course and item names, with no syllabus, subject-naming module or item text long enough to count). Files never feed the list, so a 'grounded' course can still have a 'title' list. Label an inferred list with its source: a 'title' list as Athena's best guess from the item's title, a 'module' list as Athena's best guess from its module, a 'syllabus' list as suggested from the syllabus; key that label on this field, not on `state`. A 'module' list never makes the scope known: only a syllabus assessment whose title pairs exactly (or nearly) with the item's can. Recorded when the list is extracted; for a list extracted before that record existed it is read from these facts by the same rule (item text means 'text', else a syllabus means 'syllabus', else 'title'), which can read as built from text a course gained after its list was built. A 'text' recorded before 'syllabus' existed is read the same way when these facts show a syllabus and no item text.
|
|
122
122
|
* @type {string}
|
|
123
123
|
* @memberof StudyObjectiveAccess
|
|
124
124
|
*/
|
|
125
125
|
rosterSource: StudyObjectiveAccessRosterSourceEnum;
|
|
126
|
+
/**
|
|
127
|
+
* Whether the extraction that built this item's topic list was also given the course syllabus. Label a 'module' list as Athena's best guess from its module and your syllabus only when this is true; false or null never claims a syllabus. Null when no list has been recorded with its source, or the list predates this record.
|
|
128
|
+
* @type {boolean}
|
|
129
|
+
* @memberof StudyObjectiveAccess
|
|
130
|
+
*/
|
|
131
|
+
rosterSyllabusSupplied: boolean | null;
|
|
126
132
|
}
|
|
127
133
|
/**
|
|
128
134
|
* @export
|
|
@@ -168,6 +174,7 @@ export declare const StudyObjectiveAccessRosterSourceEnum: {
|
|
|
168
174
|
readonly Title: "title";
|
|
169
175
|
readonly Text: "text";
|
|
170
176
|
readonly Syllabus: "syllabus";
|
|
177
|
+
readonly Module: "module";
|
|
171
178
|
};
|
|
172
179
|
export type StudyObjectiveAccessRosterSourceEnum = typeof StudyObjectiveAccessRosterSourceEnum[keyof typeof StudyObjectiveAccessRosterSourceEnum];
|
|
173
180
|
/**
|
|
@@ -50,7 +50,8 @@ export const StudyObjectiveAccessSyllabusSourceEnum = {
|
|
|
50
50
|
export const StudyObjectiveAccessRosterSourceEnum = {
|
|
51
51
|
Title: 'title',
|
|
52
52
|
Text: 'text',
|
|
53
|
-
Syllabus: 'syllabus'
|
|
53
|
+
Syllabus: 'syllabus',
|
|
54
|
+
Module: 'module'
|
|
54
55
|
};
|
|
55
56
|
/**
|
|
56
57
|
* Check if a given object implements the StudyObjectiveAccess interface.
|
|
@@ -92,6 +93,8 @@ export function instanceOfStudyObjectiveAccess(value) {
|
|
|
92
93
|
return false;
|
|
93
94
|
if (!('rosterSource' in value) || value['rosterSource'] === undefined)
|
|
94
95
|
return false;
|
|
96
|
+
if (!('rosterSyllabusSupplied' in value) || value['rosterSyllabusSupplied'] === undefined)
|
|
97
|
+
return false;
|
|
95
98
|
return true;
|
|
96
99
|
}
|
|
97
100
|
export function StudyObjectiveAccessFromJSON(json) {
|
|
@@ -120,6 +123,7 @@ export function StudyObjectiveAccessFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
120
123
|
'readAt': (new Date(json['readAt'])),
|
|
121
124
|
'suggestedScope': json['suggestedScope'] == null ? null : json['suggestedScope'],
|
|
122
125
|
'rosterSource': json['rosterSource'],
|
|
126
|
+
'rosterSyllabusSupplied': json['rosterSyllabusSupplied'],
|
|
123
127
|
};
|
|
124
128
|
}
|
|
125
129
|
export function StudyObjectiveAccessToJSON(json) {
|
|
@@ -148,5 +152,6 @@ export function StudyObjectiveAccessToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
148
152
|
'readAt': value['readAt'].toISOString(),
|
|
149
153
|
'suggestedScope': value['suggestedScope'],
|
|
150
154
|
'rosterSource': value['rosterSource'],
|
|
155
|
+
'rosterSyllabusSupplied': value['rosterSyllabusSupplied'],
|
|
151
156
|
};
|
|
152
157
|
}
|
|
@@ -35,13 +35,13 @@ export interface StudyObjectiveConceptAttachment {
|
|
|
35
35
|
*/
|
|
36
36
|
status: StudyObjectiveConceptAttachmentStatusEnum;
|
|
37
37
|
/**
|
|
38
|
-
* Last recorded error
|
|
38
|
+
* Last recorded error when status is `failed`: a fixed code, or `agent-failure:<error class>` for a model failure (never the provider's message, which can quote the prompt).
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @memberof StudyObjectiveConceptAttachment
|
|
41
41
|
*/
|
|
42
42
|
lastError: string | null;
|
|
43
43
|
/**
|
|
44
|
-
* Why the latest finished extraction left this Canvas item no concept list. `no-evidence`: nothing the extraction would read (title, description, supporting material, syllabus) names a subject, so the model was not asked. `agent-empty`: the model was asked and returned no concepts. Null when the item has concepts (a list a later empty run kept wins), while an extraction is due or in flight, and for custom objectives. Shared by every learner on the item: show `no-evidence` as the item naming nothing only when the objective's `titleNamesSubject` is false. A later fresh read or a rename that names a subject re-runs a `no-evidence` row.
|
|
44
|
+
* Why the latest finished extraction left this Canvas item no concept list. `no-evidence`: nothing the extraction could use names the item's topics — nothing it would read (title, description, supporting material, syllabus, the item's module) names a subject, so the model was not asked, or only the item's module did and the model found nothing there. `agent-empty`: the model was asked on evidence beyond the module and returned no concepts. Null when the item has concepts (a list a later empty run kept wins), while an extraction is due or in flight, and for custom objectives. Shared by every learner on the item: show `no-evidence` as the item naming nothing only when the objective's `titleNamesSubject` is false. A later fresh read or a rename that names a subject re-runs a `no-evidence` row.
|
|
45
45
|
* @type {string}
|
|
46
46
|
* @memberof StudyObjectiveConceptAttachment
|
|
47
47
|
*/
|
|
@@ -118,11 +118,17 @@ export interface StudyObjectiveAccess {
|
|
|
118
118
|
*/
|
|
119
119
|
suggestedScope: Array<string> | null;
|
|
120
120
|
/**
|
|
121
|
-
* What built this item's topic list, decided from the text its extraction was given: 'text' (the item's own text, long enough to count as material), '
|
|
121
|
+
* What built this item's topic list, decided from the text its extraction was given: 'text' (the item's own text, long enough to count as material), 'module' (no item text that says what it covers, so the list was suggested from the name of the course module the item sits in and the names of the other items there), 'syllabus' (neither, so the list was inferred from the course syllabus) or 'title' (the course and item names, with no syllabus, subject-naming module or item text long enough to count). Files never feed the list, so a 'grounded' course can still have a 'title' list. Label an inferred list with its source: a 'title' list as Athena's best guess from the item's title, a 'module' list as Athena's best guess from its module, a 'syllabus' list as suggested from the syllabus; key that label on this field, not on `state`. A 'module' list never makes the scope known: only a syllabus assessment whose title pairs exactly (or nearly) with the item's can. Recorded when the list is extracted; for a list extracted before that record existed it is read from these facts by the same rule (item text means 'text', else a syllabus means 'syllabus', else 'title'), which can read as built from text a course gained after its list was built. A 'text' recorded before 'syllabus' existed is read the same way when these facts show a syllabus and no item text.
|
|
122
122
|
* @type {string}
|
|
123
123
|
* @memberof StudyObjectiveAccess
|
|
124
124
|
*/
|
|
125
125
|
rosterSource: StudyObjectiveAccessRosterSourceEnum;
|
|
126
|
+
/**
|
|
127
|
+
* Whether the extraction that built this item's topic list was also given the course syllabus. Label a 'module' list as Athena's best guess from its module and your syllabus only when this is true; false or null never claims a syllabus. Null when no list has been recorded with its source, or the list predates this record.
|
|
128
|
+
* @type {boolean}
|
|
129
|
+
* @memberof StudyObjectiveAccess
|
|
130
|
+
*/
|
|
131
|
+
rosterSyllabusSupplied: boolean | null;
|
|
126
132
|
}
|
|
127
133
|
/**
|
|
128
134
|
* @export
|
|
@@ -168,6 +174,7 @@ export declare const StudyObjectiveAccessRosterSourceEnum: {
|
|
|
168
174
|
readonly Title: "title";
|
|
169
175
|
readonly Text: "text";
|
|
170
176
|
readonly Syllabus: "syllabus";
|
|
177
|
+
readonly Module: "module";
|
|
171
178
|
};
|
|
172
179
|
export type StudyObjectiveAccessRosterSourceEnum = typeof StudyObjectiveAccessRosterSourceEnum[keyof typeof StudyObjectiveAccessRosterSourceEnum];
|
|
173
180
|
/**
|
|
@@ -58,7 +58,8 @@ exports.StudyObjectiveAccessSyllabusSourceEnum = {
|
|
|
58
58
|
exports.StudyObjectiveAccessRosterSourceEnum = {
|
|
59
59
|
Title: 'title',
|
|
60
60
|
Text: 'text',
|
|
61
|
-
Syllabus: 'syllabus'
|
|
61
|
+
Syllabus: 'syllabus',
|
|
62
|
+
Module: 'module'
|
|
62
63
|
};
|
|
63
64
|
/**
|
|
64
65
|
* Check if a given object implements the StudyObjectiveAccess interface.
|
|
@@ -100,6 +101,8 @@ function instanceOfStudyObjectiveAccess(value) {
|
|
|
100
101
|
return false;
|
|
101
102
|
if (!('rosterSource' in value) || value['rosterSource'] === undefined)
|
|
102
103
|
return false;
|
|
104
|
+
if (!('rosterSyllabusSupplied' in value) || value['rosterSyllabusSupplied'] === undefined)
|
|
105
|
+
return false;
|
|
103
106
|
return true;
|
|
104
107
|
}
|
|
105
108
|
function StudyObjectiveAccessFromJSON(json) {
|
|
@@ -128,6 +131,7 @@ function StudyObjectiveAccessFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
128
131
|
'readAt': (new Date(json['readAt'])),
|
|
129
132
|
'suggestedScope': json['suggestedScope'] == null ? null : json['suggestedScope'],
|
|
130
133
|
'rosterSource': json['rosterSource'],
|
|
134
|
+
'rosterSyllabusSupplied': json['rosterSyllabusSupplied'],
|
|
131
135
|
};
|
|
132
136
|
}
|
|
133
137
|
function StudyObjectiveAccessToJSON(json) {
|
|
@@ -156,5 +160,6 @@ function StudyObjectiveAccessToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
156
160
|
'readAt': value['readAt'].toISOString(),
|
|
157
161
|
'suggestedScope': value['suggestedScope'],
|
|
158
162
|
'rosterSource': value['rosterSource'],
|
|
163
|
+
'rosterSyllabusSupplied': value['rosterSyllabusSupplied'],
|
|
159
164
|
};
|
|
160
165
|
}
|
|
@@ -35,13 +35,13 @@ export interface StudyObjectiveConceptAttachment {
|
|
|
35
35
|
*/
|
|
36
36
|
status: StudyObjectiveConceptAttachmentStatusEnum;
|
|
37
37
|
/**
|
|
38
|
-
* Last recorded error
|
|
38
|
+
* Last recorded error when status is `failed`: a fixed code, or `agent-failure:<error class>` for a model failure (never the provider's message, which can quote the prompt).
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @memberof StudyObjectiveConceptAttachment
|
|
41
41
|
*/
|
|
42
42
|
lastError: string | null;
|
|
43
43
|
/**
|
|
44
|
-
* Why the latest finished extraction left this Canvas item no concept list. `no-evidence`: nothing the extraction would read (title, description, supporting material, syllabus) names a subject, so the model was not asked. `agent-empty`: the model was asked and returned no concepts. Null when the item has concepts (a list a later empty run kept wins), while an extraction is due or in flight, and for custom objectives. Shared by every learner on the item: show `no-evidence` as the item naming nothing only when the objective's `titleNamesSubject` is false. A later fresh read or a rename that names a subject re-runs a `no-evidence` row.
|
|
44
|
+
* Why the latest finished extraction left this Canvas item no concept list. `no-evidence`: nothing the extraction could use names the item's topics — nothing it would read (title, description, supporting material, syllabus, the item's module) names a subject, so the model was not asked, or only the item's module did and the model found nothing there. `agent-empty`: the model was asked on evidence beyond the module and returned no concepts. Null when the item has concepts (a list a later empty run kept wins), while an extraction is due or in flight, and for custom objectives. Shared by every learner on the item: show `no-evidence` as the item naming nothing only when the objective's `titleNamesSubject` is false. A later fresh read or a rename that names a subject re-runs a `no-evidence` row.
|
|
45
45
|
* @type {string}
|
|
46
46
|
* @memberof StudyObjectiveConceptAttachment
|
|
47
47
|
*/
|