@instructure/athena-api-client 4.5.2 → 4.7.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 +10 -0
- package/dist/apis/AdminApi.d.ts +29 -1
- package/dist/apis/AdminApi.js +79 -0
- package/dist/esm/apis/AdminApi.d.ts +29 -1
- package/dist/esm/apis/AdminApi.js +80 -1
- package/dist/esm/models/AdminClaimConceptMediaReviewNotificationsRequest.d.ts +32 -0
- package/dist/esm/models/AdminClaimConceptMediaReviewNotificationsRequest.js +41 -0
- package/dist/esm/models/AdminConceptDiagram.d.ts +15 -2
- package/dist/esm/models/AdminConceptDiagram.js +9 -0
- package/dist/esm/models/AdminConceptDiagramDetail.d.ts +15 -2
- package/dist/esm/models/AdminConceptDiagramDetail.js +9 -0
- package/dist/esm/models/AdminConceptImage.d.ts +15 -2
- package/dist/esm/models/AdminConceptImage.js +9 -0
- package/dist/esm/models/AdminConceptImageDetail.d.ts +15 -2
- package/dist/esm/models/AdminConceptImageDetail.js +9 -0
- package/dist/esm/models/AdminConceptMediaAgentReview.d.ts +131 -0
- package/dist/esm/models/AdminConceptMediaAgentReview.js +117 -0
- package/dist/esm/models/AdminConceptMediaReviewDurationStats.d.ts +50 -0
- package/dist/esm/models/AdminConceptMediaReviewDurationStats.js +55 -0
- package/dist/esm/models/AdminConceptMediaReviewKindStats.d.ts +89 -0
- package/dist/esm/models/AdminConceptMediaReviewKindStats.js +83 -0
- package/dist/esm/models/AdminConceptMediaReviewNotification.d.ts +123 -0
- package/dist/esm/models/AdminConceptMediaReviewNotification.js +111 -0
- package/dist/esm/models/AdminConceptMediaReviewNotifications.d.ts +33 -0
- package/dist/esm/models/AdminConceptMediaReviewNotifications.js +44 -0
- package/dist/esm/models/AdminConceptMediaReviewStats.d.ts +51 -0
- package/dist/esm/models/AdminConceptMediaReviewStats.js +56 -0
- package/dist/esm/models/AdminShownConceptDiagram.d.ts +15 -2
- package/dist/esm/models/AdminShownConceptDiagram.js +9 -0
- package/dist/esm/models/AdminShownConceptImage.d.ts +15 -2
- package/dist/esm/models/AdminShownConceptImage.js +9 -0
- package/dist/esm/models/ConceptMediaFlagResult.d.ts +16 -0
- package/dist/esm/models/ConceptMediaFlagResult.js +13 -0
- package/dist/esm/models/ConceptMediaReviewIssue.d.ts +64 -0
- package/dist/esm/models/ConceptMediaReviewIssue.js +69 -0
- package/dist/esm/models/StudyObjective.d.ts +6 -0
- package/dist/esm/models/StudyObjective.js +4 -0
- package/dist/esm/models/StudyObjectiveConceptAttachment.d.ts +14 -0
- package/dist/esm/models/StudyObjectiveConceptAttachment.js +11 -0
- package/dist/esm/models/UpcomingStudyObjective.d.ts +6 -0
- package/dist/esm/models/UpcomingStudyObjective.js +4 -0
- package/dist/esm/models/index.d.ts +8 -0
- package/dist/esm/models/index.js +8 -0
- package/dist/models/AdminClaimConceptMediaReviewNotificationsRequest.d.ts +32 -0
- package/dist/models/AdminClaimConceptMediaReviewNotificationsRequest.js +48 -0
- package/dist/models/AdminConceptDiagram.d.ts +15 -2
- package/dist/models/AdminConceptDiagram.js +9 -0
- package/dist/models/AdminConceptDiagramDetail.d.ts +15 -2
- package/dist/models/AdminConceptDiagramDetail.js +9 -0
- package/dist/models/AdminConceptImage.d.ts +15 -2
- package/dist/models/AdminConceptImage.js +9 -0
- package/dist/models/AdminConceptImageDetail.d.ts +15 -2
- package/dist/models/AdminConceptImageDetail.js +9 -0
- package/dist/models/AdminConceptMediaAgentReview.d.ts +131 -0
- package/dist/models/AdminConceptMediaAgentReview.js +125 -0
- package/dist/models/AdminConceptMediaReviewDurationStats.d.ts +50 -0
- package/dist/models/AdminConceptMediaReviewDurationStats.js +62 -0
- package/dist/models/AdminConceptMediaReviewKindStats.d.ts +89 -0
- package/dist/models/AdminConceptMediaReviewKindStats.js +91 -0
- package/dist/models/AdminConceptMediaReviewNotification.d.ts +123 -0
- package/dist/models/AdminConceptMediaReviewNotification.js +119 -0
- package/dist/models/AdminConceptMediaReviewNotifications.d.ts +33 -0
- package/dist/models/AdminConceptMediaReviewNotifications.js +51 -0
- package/dist/models/AdminConceptMediaReviewStats.d.ts +51 -0
- package/dist/models/AdminConceptMediaReviewStats.js +63 -0
- package/dist/models/AdminShownConceptDiagram.d.ts +15 -2
- package/dist/models/AdminShownConceptDiagram.js +9 -0
- package/dist/models/AdminShownConceptImage.d.ts +15 -2
- package/dist/models/AdminShownConceptImage.js +9 -0
- package/dist/models/ConceptMediaFlagResult.d.ts +16 -0
- package/dist/models/ConceptMediaFlagResult.js +14 -0
- package/dist/models/ConceptMediaReviewIssue.d.ts +64 -0
- package/dist/models/ConceptMediaReviewIssue.js +77 -0
- package/dist/models/StudyObjective.d.ts +6 -0
- package/dist/models/StudyObjective.js +4 -0
- package/dist/models/StudyObjectiveConceptAttachment.d.ts +14 -0
- package/dist/models/StudyObjectiveConceptAttachment.js +12 -1
- package/dist/models/UpcomingStudyObjective.d.ts +6 -0
- package/dist/models/UpcomingStudyObjective.js +4 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/package.json +1 -1
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { AdminConceptMediaAgentReview } from './AdminConceptMediaAgentReview';
|
|
12
13
|
import type { AdminConceptMediaConcept } from './AdminConceptMediaConcept';
|
|
13
14
|
import type { AdminConceptMediaActor } from './AdminConceptMediaActor';
|
|
14
15
|
/**
|
|
@@ -78,7 +79,7 @@ export interface AdminConceptImage {
|
|
|
78
79
|
*/
|
|
79
80
|
hiddenBy: AdminConceptMediaActor | null;
|
|
80
81
|
/**
|
|
81
|
-
* True when the current hide came from a learner's thumbs-down
|
|
82
|
+
* True when the current hide came from a flag (a learner's thumbs-down, or the reviewer agent's; see flaggedByAgent) rather than an admin. False when visible or hidden by an admin. List these with state=flagged.
|
|
82
83
|
* @type {boolean}
|
|
83
84
|
* @memberof AdminConceptImage
|
|
84
85
|
*/
|
|
@@ -96,7 +97,19 @@ export interface AdminConceptImage {
|
|
|
96
97
|
*/
|
|
97
98
|
approvedBy: AdminConceptMediaActor | null;
|
|
98
99
|
/**
|
|
99
|
-
*
|
|
100
|
+
* True while a concept media reviewer agent flag awaits an admin's review: the flag hid the row (hiddenByFlag), queued an approved row for re-review (flaggedAfterApprovalAt), or found the row hidden and unapproved (e.g. an admin draft) and left it hidden. Such rows list under state=flagged; agentReview carries the reason. hiddenBy is null for an agent hide. Cleared by show, hide, and showing another version with hideOtherVersions; restore keeps it on a row that stays hidden. Never set on a row a learner's flag hid.
|
|
101
|
+
* @type {boolean}
|
|
102
|
+
* @memberof AdminConceptImage
|
|
103
|
+
*/
|
|
104
|
+
flaggedByAgent: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* The reviewer agent's latest review of this row; null when none has run (the review is off, or still pending).
|
|
107
|
+
* @type {AdminConceptMediaAgentReview}
|
|
108
|
+
* @memberof AdminConceptImage
|
|
109
|
+
*/
|
|
110
|
+
agentReview: AdminConceptMediaAgentReview | null;
|
|
111
|
+
/**
|
|
112
|
+
* When a learner (or the reviewer agent, see flaggedByAgent) first flagged it after an admin approved it. The flag leaves an approved row visible, so this is what puts it back in state=flagged for re-review. Null when no flag has come in since the last admin show or hide; cleared by show, hide, restore, and by showing another version with hideOtherVersions.
|
|
100
113
|
* @type {Date}
|
|
101
114
|
* @memberof AdminConceptImage
|
|
102
115
|
*/
|
|
@@ -19,6 +19,7 @@ exports.AdminConceptImageFromJSON = AdminConceptImageFromJSON;
|
|
|
19
19
|
exports.AdminConceptImageFromJSONTyped = AdminConceptImageFromJSONTyped;
|
|
20
20
|
exports.AdminConceptImageToJSON = AdminConceptImageToJSON;
|
|
21
21
|
exports.AdminConceptImageToJSONTyped = AdminConceptImageToJSONTyped;
|
|
22
|
+
const AdminConceptMediaAgentReview_1 = require("./AdminConceptMediaAgentReview");
|
|
22
23
|
const AdminConceptMediaConcept_1 = require("./AdminConceptMediaConcept");
|
|
23
24
|
const AdminConceptMediaActor_1 = require("./AdminConceptMediaActor");
|
|
24
25
|
/**
|
|
@@ -66,6 +67,10 @@ function instanceOfAdminConceptImage(value) {
|
|
|
66
67
|
return false;
|
|
67
68
|
if (!('approvedBy' in value) || value['approvedBy'] === undefined)
|
|
68
69
|
return false;
|
|
70
|
+
if (!('flaggedByAgent' in value) || value['flaggedByAgent'] === undefined)
|
|
71
|
+
return false;
|
|
72
|
+
if (!('agentReview' in value) || value['agentReview'] === undefined)
|
|
73
|
+
return false;
|
|
69
74
|
if (!('flaggedAfterApprovalAt' in value) || value['flaggedAfterApprovalAt'] === undefined)
|
|
70
75
|
return false;
|
|
71
76
|
if (!('deletedAt' in value) || value['deletedAt'] === undefined)
|
|
@@ -119,6 +124,8 @@ function AdminConceptImageFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
119
124
|
'hiddenByFlag': json['hiddenByFlag'],
|
|
120
125
|
'approvedAt': (json['approvedAt'] == null ? null : new Date(json['approvedAt'])),
|
|
121
126
|
'approvedBy': (0, AdminConceptMediaActor_1.AdminConceptMediaActorFromJSON)(json['approvedBy']),
|
|
127
|
+
'flaggedByAgent': json['flaggedByAgent'],
|
|
128
|
+
'agentReview': (0, AdminConceptMediaAgentReview_1.AdminConceptMediaAgentReviewFromJSON)(json['agentReview']),
|
|
122
129
|
'flaggedAfterApprovalAt': (json['flaggedAfterApprovalAt'] == null ? null : new Date(json['flaggedAfterApprovalAt'])),
|
|
123
130
|
'deletedAt': (json['deletedAt'] == null ? null : new Date(json['deletedAt'])),
|
|
124
131
|
'deletedBy': (0, AdminConceptMediaActor_1.AdminConceptMediaActorFromJSON)(json['deletedBy']),
|
|
@@ -157,6 +164,8 @@ function AdminConceptImageToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
157
164
|
'hiddenByFlag': value['hiddenByFlag'],
|
|
158
165
|
'approvedAt': value['approvedAt'] == null ? value['approvedAt'] : value['approvedAt'].toISOString(),
|
|
159
166
|
'approvedBy': (0, AdminConceptMediaActor_1.AdminConceptMediaActorToJSON)(value['approvedBy']),
|
|
167
|
+
'flaggedByAgent': value['flaggedByAgent'],
|
|
168
|
+
'agentReview': (0, AdminConceptMediaAgentReview_1.AdminConceptMediaAgentReviewToJSON)(value['agentReview']),
|
|
160
169
|
'flaggedAfterApprovalAt': value['flaggedAfterApprovalAt'] == null ? value['flaggedAfterApprovalAt'] : value['flaggedAfterApprovalAt'].toISOString(),
|
|
161
170
|
'deletedAt': value['deletedAt'] == null ? value['deletedAt'] : value['deletedAt'].toISOString(),
|
|
162
171
|
'deletedBy': (0, AdminConceptMediaActor_1.AdminConceptMediaActorToJSON)(value['deletedBy']),
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { AdminConceptMediaAgentReview } from './AdminConceptMediaAgentReview';
|
|
12
13
|
import type { AdminConceptMediaConcept } from './AdminConceptMediaConcept';
|
|
13
14
|
import type { AdminConceptMediaHistoryEntry } from './AdminConceptMediaHistoryEntry';
|
|
14
15
|
import type { AdminConceptMediaActor } from './AdminConceptMediaActor';
|
|
@@ -80,7 +81,7 @@ export interface AdminConceptImageDetail {
|
|
|
80
81
|
*/
|
|
81
82
|
hiddenBy: AdminConceptMediaActor | null;
|
|
82
83
|
/**
|
|
83
|
-
* True when the current hide came from a learner's thumbs-down
|
|
84
|
+
* True when the current hide came from a flag (a learner's thumbs-down, or the reviewer agent's; see flaggedByAgent) rather than an admin. False when visible or hidden by an admin. List these with state=flagged.
|
|
84
85
|
* @type {boolean}
|
|
85
86
|
* @memberof AdminConceptImageDetail
|
|
86
87
|
*/
|
|
@@ -98,7 +99,19 @@ export interface AdminConceptImageDetail {
|
|
|
98
99
|
*/
|
|
99
100
|
approvedBy: AdminConceptMediaActor | null;
|
|
100
101
|
/**
|
|
101
|
-
*
|
|
102
|
+
* True while a concept media reviewer agent flag awaits an admin's review: the flag hid the row (hiddenByFlag), queued an approved row for re-review (flaggedAfterApprovalAt), or found the row hidden and unapproved (e.g. an admin draft) and left it hidden. Such rows list under state=flagged; agentReview carries the reason. hiddenBy is null for an agent hide. Cleared by show, hide, and showing another version with hideOtherVersions; restore keeps it on a row that stays hidden. Never set on a row a learner's flag hid.
|
|
103
|
+
* @type {boolean}
|
|
104
|
+
* @memberof AdminConceptImageDetail
|
|
105
|
+
*/
|
|
106
|
+
flaggedByAgent: boolean;
|
|
107
|
+
/**
|
|
108
|
+
* The reviewer agent's latest review of this row; null when none has run (the review is off, or still pending).
|
|
109
|
+
* @type {AdminConceptMediaAgentReview}
|
|
110
|
+
* @memberof AdminConceptImageDetail
|
|
111
|
+
*/
|
|
112
|
+
agentReview: AdminConceptMediaAgentReview | null;
|
|
113
|
+
/**
|
|
114
|
+
* When a learner (or the reviewer agent, see flaggedByAgent) first flagged it after an admin approved it. The flag leaves an approved row visible, so this is what puts it back in state=flagged for re-review. Null when no flag has come in since the last admin show or hide; cleared by show, hide, restore, and by showing another version with hideOtherVersions.
|
|
102
115
|
* @type {Date}
|
|
103
116
|
* @memberof AdminConceptImageDetail
|
|
104
117
|
*/
|
|
@@ -19,6 +19,7 @@ exports.AdminConceptImageDetailFromJSON = AdminConceptImageDetailFromJSON;
|
|
|
19
19
|
exports.AdminConceptImageDetailFromJSONTyped = AdminConceptImageDetailFromJSONTyped;
|
|
20
20
|
exports.AdminConceptImageDetailToJSON = AdminConceptImageDetailToJSON;
|
|
21
21
|
exports.AdminConceptImageDetailToJSONTyped = AdminConceptImageDetailToJSONTyped;
|
|
22
|
+
const AdminConceptMediaAgentReview_1 = require("./AdminConceptMediaAgentReview");
|
|
22
23
|
const AdminConceptMediaConcept_1 = require("./AdminConceptMediaConcept");
|
|
23
24
|
const AdminConceptMediaHistoryEntry_1 = require("./AdminConceptMediaHistoryEntry");
|
|
24
25
|
const AdminConceptMediaActor_1 = require("./AdminConceptMediaActor");
|
|
@@ -68,6 +69,10 @@ function instanceOfAdminConceptImageDetail(value) {
|
|
|
68
69
|
return false;
|
|
69
70
|
if (!('approvedBy' in value) || value['approvedBy'] === undefined)
|
|
70
71
|
return false;
|
|
72
|
+
if (!('flaggedByAgent' in value) || value['flaggedByAgent'] === undefined)
|
|
73
|
+
return false;
|
|
74
|
+
if (!('agentReview' in value) || value['agentReview'] === undefined)
|
|
75
|
+
return false;
|
|
71
76
|
if (!('flaggedAfterApprovalAt' in value) || value['flaggedAfterApprovalAt'] === undefined)
|
|
72
77
|
return false;
|
|
73
78
|
if (!('deletedAt' in value) || value['deletedAt'] === undefined)
|
|
@@ -133,6 +138,8 @@ function AdminConceptImageDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
133
138
|
'hiddenByFlag': json['hiddenByFlag'],
|
|
134
139
|
'approvedAt': (json['approvedAt'] == null ? null : new Date(json['approvedAt'])),
|
|
135
140
|
'approvedBy': (0, AdminConceptMediaActor_1.AdminConceptMediaActorFromJSON)(json['approvedBy']),
|
|
141
|
+
'flaggedByAgent': json['flaggedByAgent'],
|
|
142
|
+
'agentReview': (0, AdminConceptMediaAgentReview_1.AdminConceptMediaAgentReviewFromJSON)(json['agentReview']),
|
|
136
143
|
'flaggedAfterApprovalAt': (json['flaggedAfterApprovalAt'] == null ? null : new Date(json['flaggedAfterApprovalAt'])),
|
|
137
144
|
'deletedAt': (json['deletedAt'] == null ? null : new Date(json['deletedAt'])),
|
|
138
145
|
'deletedBy': (0, AdminConceptMediaActor_1.AdminConceptMediaActorFromJSON)(json['deletedBy']),
|
|
@@ -177,6 +184,8 @@ function AdminConceptImageDetailToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
177
184
|
'hiddenByFlag': value['hiddenByFlag'],
|
|
178
185
|
'approvedAt': value['approvedAt'] == null ? value['approvedAt'] : value['approvedAt'].toISOString(),
|
|
179
186
|
'approvedBy': (0, AdminConceptMediaActor_1.AdminConceptMediaActorToJSON)(value['approvedBy']),
|
|
187
|
+
'flaggedByAgent': value['flaggedByAgent'],
|
|
188
|
+
'agentReview': (0, AdminConceptMediaAgentReview_1.AdminConceptMediaAgentReviewToJSON)(value['agentReview']),
|
|
180
189
|
'flaggedAfterApprovalAt': value['flaggedAfterApprovalAt'] == null ? value['flaggedAfterApprovalAt'] : value['flaggedAfterApprovalAt'].toISOString(),
|
|
181
190
|
'deletedAt': value['deletedAt'] == null ? value['deletedAt'] : value['deletedAt'].toISOString(),
|
|
182
191
|
'deletedBy': (0, AdminConceptMediaActor_1.AdminConceptMediaActorToJSON)(value['deletedBy']),
|
|
@@ -0,0 +1,131 @@
|
|
|
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 { ConceptMediaReviewIssue } from './ConceptMediaReviewIssue';
|
|
13
|
+
/**
|
|
14
|
+
* The concept media reviewer agent's latest review of a library row, run in the background after the row was created.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AdminConceptMediaAgentReview
|
|
17
|
+
*/
|
|
18
|
+
export interface AdminConceptMediaAgentReview {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AdminConceptMediaAgentReview
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
* passed: nothing worth flagging. flagged: the agent flagged the row (see flagOutcome for what that did). failed: the review call errored or timed out, and nothing was flagged.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof AdminConceptMediaAgentReview
|
|
29
|
+
*/
|
|
30
|
+
status: AdminConceptMediaAgentReviewStatusEnum;
|
|
31
|
+
/**
|
|
32
|
+
* Set when flagged: the closest of the reasons learners flag with.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof AdminConceptMediaAgentReview
|
|
35
|
+
*/
|
|
36
|
+
reason: AdminConceptMediaAgentReviewReasonEnum | null;
|
|
37
|
+
/**
|
|
38
|
+
* The agent's explanation for an admin: what is wrong and where. Always set when flagged; may be set on a pass.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof AdminConceptMediaAgentReview
|
|
41
|
+
*/
|
|
42
|
+
details: string | null;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<ConceptMediaReviewIssue>}
|
|
46
|
+
* @memberof AdminConceptMediaAgentReview
|
|
47
|
+
*/
|
|
48
|
+
issues: Array<ConceptMediaReviewIssue>;
|
|
49
|
+
/**
|
|
50
|
+
* The reviewing model
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof AdminConceptMediaAgentReview
|
|
53
|
+
*/
|
|
54
|
+
model: string;
|
|
55
|
+
/**
|
|
56
|
+
* The reviewing model's reasoning effort
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof AdminConceptMediaAgentReview
|
|
59
|
+
*/
|
|
60
|
+
effort: string | null;
|
|
61
|
+
/**
|
|
62
|
+
* Wall-clock duration of the review model call
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof AdminConceptMediaAgentReview
|
|
65
|
+
*/
|
|
66
|
+
durationMs: number;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {Date}
|
|
70
|
+
* @memberof AdminConceptMediaAgentReview
|
|
71
|
+
*/
|
|
72
|
+
startedAt: Date;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {Date}
|
|
76
|
+
* @memberof AdminConceptMediaAgentReview
|
|
77
|
+
*/
|
|
78
|
+
completedAt: Date;
|
|
79
|
+
/**
|
|
80
|
+
* Null when usage or price was missing; never estimated.
|
|
81
|
+
* @type {number}
|
|
82
|
+
* @memberof AdminConceptMediaAgentReview
|
|
83
|
+
*/
|
|
84
|
+
costUsd: number | null;
|
|
85
|
+
/**
|
|
86
|
+
* Set when flagged: what the flag did. hidden: it hid the row. flagged_again: the row is admin-approved, so it stayed visible and was queued for re-review. already_hidden: already hidden or deleted (admin drafts start hidden). already_flagged: already queued for re-review. not_found: the row was gone.
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof AdminConceptMediaAgentReview
|
|
89
|
+
*/
|
|
90
|
+
flagOutcome: AdminConceptMediaAgentReviewFlagOutcomeEnum | null;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* @export
|
|
94
|
+
*/
|
|
95
|
+
export declare const AdminConceptMediaAgentReviewStatusEnum: {
|
|
96
|
+
readonly Passed: "passed";
|
|
97
|
+
readonly Flagged: "flagged";
|
|
98
|
+
readonly Failed: "failed";
|
|
99
|
+
};
|
|
100
|
+
export type AdminConceptMediaAgentReviewStatusEnum = typeof AdminConceptMediaAgentReviewStatusEnum[keyof typeof AdminConceptMediaAgentReviewStatusEnum];
|
|
101
|
+
/**
|
|
102
|
+
* @export
|
|
103
|
+
*/
|
|
104
|
+
export declare const AdminConceptMediaAgentReviewReasonEnum: {
|
|
105
|
+
readonly Inaccurate: "inaccurate";
|
|
106
|
+
readonly HardToRead: "hard_to_read";
|
|
107
|
+
readonly Irrelevant: "irrelevant";
|
|
108
|
+
readonly Inappropriate: "inappropriate";
|
|
109
|
+
readonly NotHelpful: "not_helpful";
|
|
110
|
+
readonly Other: "other";
|
|
111
|
+
};
|
|
112
|
+
export type AdminConceptMediaAgentReviewReasonEnum = typeof AdminConceptMediaAgentReviewReasonEnum[keyof typeof AdminConceptMediaAgentReviewReasonEnum];
|
|
113
|
+
/**
|
|
114
|
+
* @export
|
|
115
|
+
*/
|
|
116
|
+
export declare const AdminConceptMediaAgentReviewFlagOutcomeEnum: {
|
|
117
|
+
readonly Hidden: "hidden";
|
|
118
|
+
readonly AlreadyHidden: "already_hidden";
|
|
119
|
+
readonly FlaggedAgain: "flagged_again";
|
|
120
|
+
readonly AlreadyFlagged: "already_flagged";
|
|
121
|
+
readonly NotFound: "not_found";
|
|
122
|
+
};
|
|
123
|
+
export type AdminConceptMediaAgentReviewFlagOutcomeEnum = typeof AdminConceptMediaAgentReviewFlagOutcomeEnum[keyof typeof AdminConceptMediaAgentReviewFlagOutcomeEnum];
|
|
124
|
+
/**
|
|
125
|
+
* Check if a given object implements the AdminConceptMediaAgentReview interface.
|
|
126
|
+
*/
|
|
127
|
+
export declare function instanceOfAdminConceptMediaAgentReview(value: object): value is AdminConceptMediaAgentReview;
|
|
128
|
+
export declare function AdminConceptMediaAgentReviewFromJSON(json: any): AdminConceptMediaAgentReview;
|
|
129
|
+
export declare function AdminConceptMediaAgentReviewFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminConceptMediaAgentReview;
|
|
130
|
+
export declare function AdminConceptMediaAgentReviewToJSON(json: any): AdminConceptMediaAgentReview;
|
|
131
|
+
export declare function AdminConceptMediaAgentReviewToJSONTyped(value?: AdminConceptMediaAgentReview | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,125 @@
|
|
|
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.AdminConceptMediaAgentReviewFlagOutcomeEnum = exports.AdminConceptMediaAgentReviewReasonEnum = exports.AdminConceptMediaAgentReviewStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfAdminConceptMediaAgentReview = instanceOfAdminConceptMediaAgentReview;
|
|
18
|
+
exports.AdminConceptMediaAgentReviewFromJSON = AdminConceptMediaAgentReviewFromJSON;
|
|
19
|
+
exports.AdminConceptMediaAgentReviewFromJSONTyped = AdminConceptMediaAgentReviewFromJSONTyped;
|
|
20
|
+
exports.AdminConceptMediaAgentReviewToJSON = AdminConceptMediaAgentReviewToJSON;
|
|
21
|
+
exports.AdminConceptMediaAgentReviewToJSONTyped = AdminConceptMediaAgentReviewToJSONTyped;
|
|
22
|
+
const ConceptMediaReviewIssue_1 = require("./ConceptMediaReviewIssue");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.AdminConceptMediaAgentReviewStatusEnum = {
|
|
27
|
+
Passed: 'passed',
|
|
28
|
+
Flagged: 'flagged',
|
|
29
|
+
Failed: 'failed'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
exports.AdminConceptMediaAgentReviewReasonEnum = {
|
|
35
|
+
Inaccurate: 'inaccurate',
|
|
36
|
+
HardToRead: 'hard_to_read',
|
|
37
|
+
Irrelevant: 'irrelevant',
|
|
38
|
+
Inappropriate: 'inappropriate',
|
|
39
|
+
NotHelpful: 'not_helpful',
|
|
40
|
+
Other: 'other'
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* @export
|
|
44
|
+
*/
|
|
45
|
+
exports.AdminConceptMediaAgentReviewFlagOutcomeEnum = {
|
|
46
|
+
Hidden: 'hidden',
|
|
47
|
+
AlreadyHidden: 'already_hidden',
|
|
48
|
+
FlaggedAgain: 'flagged_again',
|
|
49
|
+
AlreadyFlagged: 'already_flagged',
|
|
50
|
+
NotFound: 'not_found'
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the AdminConceptMediaAgentReview interface.
|
|
54
|
+
*/
|
|
55
|
+
function instanceOfAdminConceptMediaAgentReview(value) {
|
|
56
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
57
|
+
return false;
|
|
58
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
59
|
+
return false;
|
|
60
|
+
if (!('reason' in value) || value['reason'] === undefined)
|
|
61
|
+
return false;
|
|
62
|
+
if (!('details' in value) || value['details'] === undefined)
|
|
63
|
+
return false;
|
|
64
|
+
if (!('issues' in value) || value['issues'] === undefined)
|
|
65
|
+
return false;
|
|
66
|
+
if (!('model' in value) || value['model'] === undefined)
|
|
67
|
+
return false;
|
|
68
|
+
if (!('effort' in value) || value['effort'] === undefined)
|
|
69
|
+
return false;
|
|
70
|
+
if (!('durationMs' in value) || value['durationMs'] === undefined)
|
|
71
|
+
return false;
|
|
72
|
+
if (!('startedAt' in value) || value['startedAt'] === undefined)
|
|
73
|
+
return false;
|
|
74
|
+
if (!('completedAt' in value) || value['completedAt'] === undefined)
|
|
75
|
+
return false;
|
|
76
|
+
if (!('costUsd' in value) || value['costUsd'] === undefined)
|
|
77
|
+
return false;
|
|
78
|
+
if (!('flagOutcome' in value) || value['flagOutcome'] === undefined)
|
|
79
|
+
return false;
|
|
80
|
+
return true;
|
|
81
|
+
}
|
|
82
|
+
function AdminConceptMediaAgentReviewFromJSON(json) {
|
|
83
|
+
return AdminConceptMediaAgentReviewFromJSONTyped(json, false);
|
|
84
|
+
}
|
|
85
|
+
function AdminConceptMediaAgentReviewFromJSONTyped(json, ignoreDiscriminator) {
|
|
86
|
+
if (json == null) {
|
|
87
|
+
return json;
|
|
88
|
+
}
|
|
89
|
+
return {
|
|
90
|
+
'id': json['id'],
|
|
91
|
+
'status': json['status'],
|
|
92
|
+
'reason': json['reason'],
|
|
93
|
+
'details': json['details'],
|
|
94
|
+
'issues': (json['issues'].map(ConceptMediaReviewIssue_1.ConceptMediaReviewIssueFromJSON)),
|
|
95
|
+
'model': json['model'],
|
|
96
|
+
'effort': json['effort'],
|
|
97
|
+
'durationMs': json['durationMs'],
|
|
98
|
+
'startedAt': (new Date(json['startedAt'])),
|
|
99
|
+
'completedAt': (new Date(json['completedAt'])),
|
|
100
|
+
'costUsd': json['costUsd'],
|
|
101
|
+
'flagOutcome': json['flagOutcome'],
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
function AdminConceptMediaAgentReviewToJSON(json) {
|
|
105
|
+
return AdminConceptMediaAgentReviewToJSONTyped(json, false);
|
|
106
|
+
}
|
|
107
|
+
function AdminConceptMediaAgentReviewToJSONTyped(value, ignoreDiscriminator = false) {
|
|
108
|
+
if (value == null) {
|
|
109
|
+
return value;
|
|
110
|
+
}
|
|
111
|
+
return {
|
|
112
|
+
'id': value['id'],
|
|
113
|
+
'status': value['status'],
|
|
114
|
+
'reason': value['reason'],
|
|
115
|
+
'details': value['details'],
|
|
116
|
+
'issues': (value['issues'].map(ConceptMediaReviewIssue_1.ConceptMediaReviewIssueToJSON)),
|
|
117
|
+
'model': value['model'],
|
|
118
|
+
'effort': value['effort'],
|
|
119
|
+
'durationMs': value['durationMs'],
|
|
120
|
+
'startedAt': value['startedAt'].toISOString(),
|
|
121
|
+
'completedAt': value['completedAt'].toISOString(),
|
|
122
|
+
'costUsd': value['costUsd'],
|
|
123
|
+
'flagOutcome': value['flagOutcome'],
|
|
124
|
+
};
|
|
125
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
* Wall-clock duration of review model calls, in milliseconds.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AdminConceptMediaReviewDurationStats
|
|
16
|
+
*/
|
|
17
|
+
export interface AdminConceptMediaReviewDurationStats {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof AdminConceptMediaReviewDurationStats
|
|
22
|
+
*/
|
|
23
|
+
avgMs: number | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof AdminConceptMediaReviewDurationStats
|
|
28
|
+
*/
|
|
29
|
+
p50Ms: number | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof AdminConceptMediaReviewDurationStats
|
|
34
|
+
*/
|
|
35
|
+
p95Ms: number | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof AdminConceptMediaReviewDurationStats
|
|
40
|
+
*/
|
|
41
|
+
maxMs: number | null;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the AdminConceptMediaReviewDurationStats interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfAdminConceptMediaReviewDurationStats(value: object): value is AdminConceptMediaReviewDurationStats;
|
|
47
|
+
export declare function AdminConceptMediaReviewDurationStatsFromJSON(json: any): AdminConceptMediaReviewDurationStats;
|
|
48
|
+
export declare function AdminConceptMediaReviewDurationStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminConceptMediaReviewDurationStats;
|
|
49
|
+
export declare function AdminConceptMediaReviewDurationStatsToJSON(json: any): AdminConceptMediaReviewDurationStats;
|
|
50
|
+
export declare function AdminConceptMediaReviewDurationStatsToJSONTyped(value?: AdminConceptMediaReviewDurationStats | 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.instanceOfAdminConceptMediaReviewDurationStats = instanceOfAdminConceptMediaReviewDurationStats;
|
|
17
|
+
exports.AdminConceptMediaReviewDurationStatsFromJSON = AdminConceptMediaReviewDurationStatsFromJSON;
|
|
18
|
+
exports.AdminConceptMediaReviewDurationStatsFromJSONTyped = AdminConceptMediaReviewDurationStatsFromJSONTyped;
|
|
19
|
+
exports.AdminConceptMediaReviewDurationStatsToJSON = AdminConceptMediaReviewDurationStatsToJSON;
|
|
20
|
+
exports.AdminConceptMediaReviewDurationStatsToJSONTyped = AdminConceptMediaReviewDurationStatsToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AdminConceptMediaReviewDurationStats interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAdminConceptMediaReviewDurationStats(value) {
|
|
25
|
+
if (!('avgMs' in value) || value['avgMs'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('p50Ms' in value) || value['p50Ms'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('p95Ms' in value) || value['p95Ms'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('maxMs' in value) || value['maxMs'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function AdminConceptMediaReviewDurationStatsFromJSON(json) {
|
|
36
|
+
return AdminConceptMediaReviewDurationStatsFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function AdminConceptMediaReviewDurationStatsFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'avgMs': json['avgMs'],
|
|
44
|
+
'p50Ms': json['p50Ms'],
|
|
45
|
+
'p95Ms': json['p95Ms'],
|
|
46
|
+
'maxMs': json['maxMs'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function AdminConceptMediaReviewDurationStatsToJSON(json) {
|
|
50
|
+
return AdminConceptMediaReviewDurationStatsToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function AdminConceptMediaReviewDurationStatsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'avgMs': value['avgMs'],
|
|
58
|
+
'p50Ms': value['p50Ms'],
|
|
59
|
+
'p95Ms': value['p95Ms'],
|
|
60
|
+
'maxMs': value['maxMs'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
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 { AdminConceptMediaReviewDurationStats } from './AdminConceptMediaReviewDurationStats';
|
|
13
|
+
/**
|
|
14
|
+
* Reviewer agent stats for one media kind.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AdminConceptMediaReviewKindStats
|
|
17
|
+
*/
|
|
18
|
+
export interface AdminConceptMediaReviewKindStats {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AdminConceptMediaReviewKindStats
|
|
23
|
+
*/
|
|
24
|
+
kind: AdminConceptMediaReviewKindStatsKindEnum;
|
|
25
|
+
/**
|
|
26
|
+
* Reviews of every status
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof AdminConceptMediaReviewKindStats
|
|
29
|
+
*/
|
|
30
|
+
total: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof AdminConceptMediaReviewKindStats
|
|
35
|
+
*/
|
|
36
|
+
passed: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof AdminConceptMediaReviewKindStats
|
|
41
|
+
*/
|
|
42
|
+
flagged: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof AdminConceptMediaReviewKindStats
|
|
47
|
+
*/
|
|
48
|
+
failed: number;
|
|
49
|
+
/**
|
|
50
|
+
* flagged / (passed + flagged): failed reviews left out. Null with no completed review.
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof AdminConceptMediaReviewKindStats
|
|
53
|
+
*/
|
|
54
|
+
flagRate: number | null;
|
|
55
|
+
/**
|
|
56
|
+
* Over every review in the window, failed ones included
|
|
57
|
+
* @type {AdminConceptMediaReviewDurationStats}
|
|
58
|
+
* @memberof AdminConceptMediaReviewKindStats
|
|
59
|
+
*/
|
|
60
|
+
durationMs: AdminConceptMediaReviewDurationStats;
|
|
61
|
+
/**
|
|
62
|
+
* From the media row's creation to its review's completion, so it includes queueing before the model call
|
|
63
|
+
* @type {AdminConceptMediaReviewDurationStats}
|
|
64
|
+
* @memberof AdminConceptMediaReviewKindStats
|
|
65
|
+
*/
|
|
66
|
+
sinceCreatedMs: AdminConceptMediaReviewDurationStats;
|
|
67
|
+
/**
|
|
68
|
+
* Sum of known review costs in USD; unpriced reviews add 0
|
|
69
|
+
* @type {number}
|
|
70
|
+
* @memberof AdminConceptMediaReviewKindStats
|
|
71
|
+
*/
|
|
72
|
+
costUsd: number;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* @export
|
|
76
|
+
*/
|
|
77
|
+
export declare const AdminConceptMediaReviewKindStatsKindEnum: {
|
|
78
|
+
readonly Image: "image";
|
|
79
|
+
readonly Diagram: "diagram";
|
|
80
|
+
};
|
|
81
|
+
export type AdminConceptMediaReviewKindStatsKindEnum = typeof AdminConceptMediaReviewKindStatsKindEnum[keyof typeof AdminConceptMediaReviewKindStatsKindEnum];
|
|
82
|
+
/**
|
|
83
|
+
* Check if a given object implements the AdminConceptMediaReviewKindStats interface.
|
|
84
|
+
*/
|
|
85
|
+
export declare function instanceOfAdminConceptMediaReviewKindStats(value: object): value is AdminConceptMediaReviewKindStats;
|
|
86
|
+
export declare function AdminConceptMediaReviewKindStatsFromJSON(json: any): AdminConceptMediaReviewKindStats;
|
|
87
|
+
export declare function AdminConceptMediaReviewKindStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminConceptMediaReviewKindStats;
|
|
88
|
+
export declare function AdminConceptMediaReviewKindStatsToJSON(json: any): AdminConceptMediaReviewKindStats;
|
|
89
|
+
export declare function AdminConceptMediaReviewKindStatsToJSONTyped(value?: AdminConceptMediaReviewKindStats | null, ignoreDiscriminator?: boolean): any;
|