@instructure/athena-api-client 4.5.2 → 4.6.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/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/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -0,0 +1,91 @@
|
|
|
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.AdminConceptMediaReviewKindStatsKindEnum = void 0;
|
|
17
|
+
exports.instanceOfAdminConceptMediaReviewKindStats = instanceOfAdminConceptMediaReviewKindStats;
|
|
18
|
+
exports.AdminConceptMediaReviewKindStatsFromJSON = AdminConceptMediaReviewKindStatsFromJSON;
|
|
19
|
+
exports.AdminConceptMediaReviewKindStatsFromJSONTyped = AdminConceptMediaReviewKindStatsFromJSONTyped;
|
|
20
|
+
exports.AdminConceptMediaReviewKindStatsToJSON = AdminConceptMediaReviewKindStatsToJSON;
|
|
21
|
+
exports.AdminConceptMediaReviewKindStatsToJSONTyped = AdminConceptMediaReviewKindStatsToJSONTyped;
|
|
22
|
+
const AdminConceptMediaReviewDurationStats_1 = require("./AdminConceptMediaReviewDurationStats");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.AdminConceptMediaReviewKindStatsKindEnum = {
|
|
27
|
+
Image: 'image',
|
|
28
|
+
Diagram: 'diagram'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the AdminConceptMediaReviewKindStats interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfAdminConceptMediaReviewKindStats(value) {
|
|
34
|
+
if (!('kind' in value) || value['kind'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('passed' in value) || value['passed'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('flagged' in value) || value['flagged'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('failed' in value) || value['failed'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('flagRate' in value) || value['flagRate'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('durationMs' in value) || value['durationMs'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('sinceCreatedMs' in value) || value['sinceCreatedMs'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('costUsd' in value) || value['costUsd'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
function AdminConceptMediaReviewKindStatsFromJSON(json) {
|
|
55
|
+
return AdminConceptMediaReviewKindStatsFromJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
function AdminConceptMediaReviewKindStatsFromJSONTyped(json, ignoreDiscriminator) {
|
|
58
|
+
if (json == null) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'kind': json['kind'],
|
|
63
|
+
'total': json['total'],
|
|
64
|
+
'passed': json['passed'],
|
|
65
|
+
'flagged': json['flagged'],
|
|
66
|
+
'failed': json['failed'],
|
|
67
|
+
'flagRate': json['flagRate'],
|
|
68
|
+
'durationMs': (0, AdminConceptMediaReviewDurationStats_1.AdminConceptMediaReviewDurationStatsFromJSON)(json['durationMs']),
|
|
69
|
+
'sinceCreatedMs': (0, AdminConceptMediaReviewDurationStats_1.AdminConceptMediaReviewDurationStatsFromJSON)(json['sinceCreatedMs']),
|
|
70
|
+
'costUsd': json['costUsd'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
function AdminConceptMediaReviewKindStatsToJSON(json) {
|
|
74
|
+
return AdminConceptMediaReviewKindStatsToJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
function AdminConceptMediaReviewKindStatsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
77
|
+
if (value == null) {
|
|
78
|
+
return value;
|
|
79
|
+
}
|
|
80
|
+
return {
|
|
81
|
+
'kind': value['kind'],
|
|
82
|
+
'total': value['total'],
|
|
83
|
+
'passed': value['passed'],
|
|
84
|
+
'flagged': value['flagged'],
|
|
85
|
+
'failed': value['failed'],
|
|
86
|
+
'flagRate': value['flagRate'],
|
|
87
|
+
'durationMs': (0, AdminConceptMediaReviewDurationStats_1.AdminConceptMediaReviewDurationStatsToJSON)(value['durationMs']),
|
|
88
|
+
'sinceCreatedMs': (0, AdminConceptMediaReviewDurationStats_1.AdminConceptMediaReviewDurationStatsToJSON)(value['sinceCreatedMs']),
|
|
89
|
+
'costUsd': value['costUsd'],
|
|
90
|
+
};
|
|
91
|
+
}
|