@instructure/athena-api-client 3.46.2 → 3.47.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 +37 -0
- package/dist/apis/AdminApi.d.ts +296 -1
- package/dist/apis/AdminApi.js +809 -20
- package/dist/esm/apis/AdminApi.d.ts +296 -1
- package/dist/esm/apis/AdminApi.js +809 -20
- package/dist/esm/models/AdminConceptDiagram.d.ts +165 -0
- package/dist/esm/models/AdminConceptDiagram.js +136 -0
- package/dist/esm/models/AdminConceptDiagramDetail.d.ts +203 -0
- package/dist/esm/models/AdminConceptDiagramDetail.js +162 -0
- package/dist/esm/models/AdminConceptImage.d.ts +183 -0
- package/dist/esm/models/AdminConceptImage.js +148 -0
- package/dist/esm/models/AdminConceptImageDetail.d.ts +221 -0
- package/dist/esm/models/AdminConceptImageDetail.js +174 -0
- package/dist/esm/models/AdminConceptMediaActor.d.ts +38 -0
- package/dist/esm/models/AdminConceptMediaActor.js +47 -0
- package/dist/esm/models/AdminConceptMediaConcept.d.ts +38 -0
- package/dist/esm/models/AdminConceptMediaConcept.js +47 -0
- package/dist/esm/models/AdminConceptMediaHistoryEntry.d.ts +92 -0
- package/dist/esm/models/AdminConceptMediaHistoryEntry.js +87 -0
- package/dist/esm/models/AdminConceptMediaRevision.d.ts +67 -0
- package/dist/esm/models/AdminConceptMediaRevision.js +70 -0
- package/dist/esm/models/AdminConceptSearchResult.d.ts +56 -0
- package/dist/esm/models/AdminConceptSearchResult.js +59 -0
- package/dist/esm/models/AdminGenerateConceptDiagramRequest.d.ts +56 -0
- package/dist/esm/models/AdminGenerateConceptDiagramRequest.js +51 -0
- package/dist/esm/models/AdminGenerateConceptImageRequest.d.ts +50 -0
- package/dist/esm/models/AdminGenerateConceptImageRequest.js +49 -0
- package/dist/esm/models/AdminGeneratedConceptDiagram.d.ts +219 -0
- package/dist/esm/models/AdminGeneratedConceptDiagram.js +175 -0
- package/dist/esm/models/AdminGeneratedConceptImage.d.ts +237 -0
- package/dist/esm/models/AdminGeneratedConceptImage.js +187 -0
- package/dist/esm/models/AdminPaginatedConceptDiagrams.d.ts +39 -0
- package/dist/esm/models/AdminPaginatedConceptDiagrams.js +48 -0
- package/dist/esm/models/AdminPaginatedConceptImages.d.ts +39 -0
- package/dist/esm/models/AdminPaginatedConceptImages.js +48 -0
- package/dist/esm/models/AdminRegenerateConceptDiagramRequest.d.ts +44 -0
- package/dist/esm/models/AdminRegenerateConceptDiagramRequest.js +47 -0
- package/dist/esm/models/AdminRegenerateConceptImageRequest.d.ts +38 -0
- package/dist/esm/models/AdminRegenerateConceptImageRequest.js +45 -0
- package/dist/esm/models/AdminShowConceptMediaRequest.d.ts +32 -0
- package/dist/esm/models/AdminShowConceptMediaRequest.js +41 -0
- package/dist/esm/models/AdminShownConceptDiagram.d.ts +215 -0
- package/dist/esm/models/AdminShownConceptDiagram.js +170 -0
- package/dist/esm/models/AdminShownConceptImage.d.ts +233 -0
- package/dist/esm/models/AdminShownConceptImage.js +182 -0
- package/dist/esm/models/index.d.ts +20 -0
- package/dist/esm/models/index.js +20 -0
- package/dist/models/AdminConceptDiagram.d.ts +165 -0
- package/dist/models/AdminConceptDiagram.js +144 -0
- package/dist/models/AdminConceptDiagramDetail.d.ts +203 -0
- package/dist/models/AdminConceptDiagramDetail.js +170 -0
- package/dist/models/AdminConceptImage.d.ts +183 -0
- package/dist/models/AdminConceptImage.js +156 -0
- package/dist/models/AdminConceptImageDetail.d.ts +221 -0
- package/dist/models/AdminConceptImageDetail.js +182 -0
- package/dist/models/AdminConceptMediaActor.d.ts +38 -0
- package/dist/models/AdminConceptMediaActor.js +54 -0
- package/dist/models/AdminConceptMediaConcept.d.ts +38 -0
- package/dist/models/AdminConceptMediaConcept.js +54 -0
- package/dist/models/AdminConceptMediaHistoryEntry.d.ts +92 -0
- package/dist/models/AdminConceptMediaHistoryEntry.js +95 -0
- package/dist/models/AdminConceptMediaRevision.d.ts +67 -0
- package/dist/models/AdminConceptMediaRevision.js +78 -0
- package/dist/models/AdminConceptSearchResult.d.ts +56 -0
- package/dist/models/AdminConceptSearchResult.js +66 -0
- package/dist/models/AdminGenerateConceptDiagramRequest.d.ts +56 -0
- package/dist/models/AdminGenerateConceptDiagramRequest.js +58 -0
- package/dist/models/AdminGenerateConceptImageRequest.d.ts +50 -0
- package/dist/models/AdminGenerateConceptImageRequest.js +56 -0
- package/dist/models/AdminGeneratedConceptDiagram.d.ts +219 -0
- package/dist/models/AdminGeneratedConceptDiagram.js +183 -0
- package/dist/models/AdminGeneratedConceptImage.d.ts +237 -0
- package/dist/models/AdminGeneratedConceptImage.js +195 -0
- package/dist/models/AdminPaginatedConceptDiagrams.d.ts +39 -0
- package/dist/models/AdminPaginatedConceptDiagrams.js +55 -0
- package/dist/models/AdminPaginatedConceptImages.d.ts +39 -0
- package/dist/models/AdminPaginatedConceptImages.js +55 -0
- package/dist/models/AdminRegenerateConceptDiagramRequest.d.ts +44 -0
- package/dist/models/AdminRegenerateConceptDiagramRequest.js +54 -0
- package/dist/models/AdminRegenerateConceptImageRequest.d.ts +38 -0
- package/dist/models/AdminRegenerateConceptImageRequest.js +52 -0
- package/dist/models/AdminShowConceptMediaRequest.d.ts +32 -0
- package/dist/models/AdminShowConceptMediaRequest.js +48 -0
- package/dist/models/AdminShownConceptDiagram.d.ts +215 -0
- package/dist/models/AdminShownConceptDiagram.js +178 -0
- package/dist/models/AdminShownConceptImage.d.ts +233 -0
- package/dist/models/AdminShownConceptImage.js +190 -0
- package/dist/models/index.d.ts +20 -0
- package/dist/models/index.js +20 -0
- package/package.json +1 -1
|
@@ -0,0 +1,170 @@
|
|
|
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
|
+
import { AdminConceptMediaConceptFromJSON, AdminConceptMediaConceptToJSON, } from './AdminConceptMediaConcept';
|
|
15
|
+
import { AdminConceptMediaHistoryEntryFromJSON, AdminConceptMediaHistoryEntryToJSON, } from './AdminConceptMediaHistoryEntry';
|
|
16
|
+
import { AdminConceptMediaActorFromJSON, AdminConceptMediaActorToJSON, } from './AdminConceptMediaActor';
|
|
17
|
+
import { AdminConceptMediaRevisionFromJSON, AdminConceptMediaRevisionToJSON, } from './AdminConceptMediaRevision';
|
|
18
|
+
/**
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
export const AdminShownConceptDiagramStateEnum = {
|
|
22
|
+
Visible: 'visible',
|
|
23
|
+
Hidden: 'hidden',
|
|
24
|
+
Deleted: 'deleted'
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* @export
|
|
28
|
+
*/
|
|
29
|
+
export const AdminShownConceptDiagramOriginEnum = {
|
|
30
|
+
Chat: 'chat',
|
|
31
|
+
Admin: 'admin'
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the AdminShownConceptDiagram interface.
|
|
35
|
+
*/
|
|
36
|
+
export function instanceOfAdminShownConceptDiagram(value) {
|
|
37
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('concept' in value) || value['concept'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('state' in value) || value['state'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('origin' in value) || value['origin'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('creator' in value) || value['creator'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('creatorOutsideAccount' in value) || value['creatorOutsideAccount'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('sourceChatId' in value) || value['sourceChatId'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
if (!('hiddenAt' in value) || value['hiddenAt'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
if (!('hiddenBy' in value) || value['hiddenBy'] === undefined)
|
|
56
|
+
return false;
|
|
57
|
+
if (!('deletedAt' in value) || value['deletedAt'] === undefined)
|
|
58
|
+
return false;
|
|
59
|
+
if (!('deletedBy' in value) || value['deletedBy'] === undefined)
|
|
60
|
+
return false;
|
|
61
|
+
if (!('model' in value) || value['model'] === undefined)
|
|
62
|
+
return false;
|
|
63
|
+
if (!('inputTokens' in value) || value['inputTokens'] === undefined)
|
|
64
|
+
return false;
|
|
65
|
+
if (!('outputTokens' in value) || value['outputTokens'] === undefined)
|
|
66
|
+
return false;
|
|
67
|
+
if (!('costUsd' in value) || value['costUsd'] === undefined)
|
|
68
|
+
return false;
|
|
69
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
70
|
+
return false;
|
|
71
|
+
if (!('revisesDiagramId' in value) || value['revisesDiagramId'] === undefined)
|
|
72
|
+
return false;
|
|
73
|
+
if (!('title' in value) || value['title'] === undefined)
|
|
74
|
+
return false;
|
|
75
|
+
if (!('effort' in value) || value['effort'] === undefined)
|
|
76
|
+
return false;
|
|
77
|
+
if (!('brief' in value) || value['brief'] === undefined)
|
|
78
|
+
return false;
|
|
79
|
+
if (!('document' in value) || value['document'] === undefined)
|
|
80
|
+
return false;
|
|
81
|
+
if (!('parent' in value) || value['parent'] === undefined)
|
|
82
|
+
return false;
|
|
83
|
+
if (!('revisions' in value) || value['revisions'] === undefined)
|
|
84
|
+
return false;
|
|
85
|
+
if (!('history' in value) || value['history'] === undefined)
|
|
86
|
+
return false;
|
|
87
|
+
if (!('historyTruncated' in value) || value['historyTruncated'] === undefined)
|
|
88
|
+
return false;
|
|
89
|
+
if (!('hiddenVersionIds' in value) || value['hiddenVersionIds'] === undefined)
|
|
90
|
+
return false;
|
|
91
|
+
if (!('hiddenVersionsTruncated' in value) || value['hiddenVersionsTruncated'] === undefined)
|
|
92
|
+
return false;
|
|
93
|
+
return true;
|
|
94
|
+
}
|
|
95
|
+
export function AdminShownConceptDiagramFromJSON(json) {
|
|
96
|
+
return AdminShownConceptDiagramFromJSONTyped(json, false);
|
|
97
|
+
}
|
|
98
|
+
export function AdminShownConceptDiagramFromJSONTyped(json, ignoreDiscriminator) {
|
|
99
|
+
if (json == null) {
|
|
100
|
+
return json;
|
|
101
|
+
}
|
|
102
|
+
return {
|
|
103
|
+
'id': json['id'],
|
|
104
|
+
'concept': AdminConceptMediaConceptFromJSON(json['concept']),
|
|
105
|
+
'state': json['state'],
|
|
106
|
+
'origin': json['origin'],
|
|
107
|
+
'creator': AdminConceptMediaActorFromJSON(json['creator']),
|
|
108
|
+
'creatorOutsideAccount': json['creatorOutsideAccount'],
|
|
109
|
+
'sourceChatId': json['sourceChatId'],
|
|
110
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
111
|
+
'hiddenAt': (json['hiddenAt'] == null ? null : new Date(json['hiddenAt'])),
|
|
112
|
+
'hiddenBy': AdminConceptMediaActorFromJSON(json['hiddenBy']),
|
|
113
|
+
'deletedAt': (json['deletedAt'] == null ? null : new Date(json['deletedAt'])),
|
|
114
|
+
'deletedBy': AdminConceptMediaActorFromJSON(json['deletedBy']),
|
|
115
|
+
'model': json['model'],
|
|
116
|
+
'inputTokens': json['inputTokens'],
|
|
117
|
+
'outputTokens': json['outputTokens'],
|
|
118
|
+
'costUsd': json['costUsd'],
|
|
119
|
+
'description': json['description'],
|
|
120
|
+
'revisesDiagramId': json['revisesDiagramId'],
|
|
121
|
+
'title': json['title'],
|
|
122
|
+
'effort': json['effort'],
|
|
123
|
+
'brief': json['brief'],
|
|
124
|
+
'document': json['document'],
|
|
125
|
+
'parent': AdminConceptMediaRevisionFromJSON(json['parent']),
|
|
126
|
+
'revisions': (json['revisions'].map(AdminConceptMediaRevisionFromJSON)),
|
|
127
|
+
'history': (json['history'].map(AdminConceptMediaHistoryEntryFromJSON)),
|
|
128
|
+
'historyTruncated': json['historyTruncated'],
|
|
129
|
+
'hiddenVersionIds': json['hiddenVersionIds'],
|
|
130
|
+
'hiddenVersionsTruncated': json['hiddenVersionsTruncated'],
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
export function AdminShownConceptDiagramToJSON(json) {
|
|
134
|
+
return AdminShownConceptDiagramToJSONTyped(json, false);
|
|
135
|
+
}
|
|
136
|
+
export function AdminShownConceptDiagramToJSONTyped(value, ignoreDiscriminator = false) {
|
|
137
|
+
if (value == null) {
|
|
138
|
+
return value;
|
|
139
|
+
}
|
|
140
|
+
return {
|
|
141
|
+
'id': value['id'],
|
|
142
|
+
'concept': AdminConceptMediaConceptToJSON(value['concept']),
|
|
143
|
+
'state': value['state'],
|
|
144
|
+
'origin': value['origin'],
|
|
145
|
+
'creator': AdminConceptMediaActorToJSON(value['creator']),
|
|
146
|
+
'creatorOutsideAccount': value['creatorOutsideAccount'],
|
|
147
|
+
'sourceChatId': value['sourceChatId'],
|
|
148
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
149
|
+
'hiddenAt': value['hiddenAt'] == null ? value['hiddenAt'] : value['hiddenAt'].toISOString(),
|
|
150
|
+
'hiddenBy': AdminConceptMediaActorToJSON(value['hiddenBy']),
|
|
151
|
+
'deletedAt': value['deletedAt'] == null ? value['deletedAt'] : value['deletedAt'].toISOString(),
|
|
152
|
+
'deletedBy': AdminConceptMediaActorToJSON(value['deletedBy']),
|
|
153
|
+
'model': value['model'],
|
|
154
|
+
'inputTokens': value['inputTokens'],
|
|
155
|
+
'outputTokens': value['outputTokens'],
|
|
156
|
+
'costUsd': value['costUsd'],
|
|
157
|
+
'description': value['description'],
|
|
158
|
+
'revisesDiagramId': value['revisesDiagramId'],
|
|
159
|
+
'title': value['title'],
|
|
160
|
+
'effort': value['effort'],
|
|
161
|
+
'brief': value['brief'],
|
|
162
|
+
'document': value['document'],
|
|
163
|
+
'parent': AdminConceptMediaRevisionToJSON(value['parent']),
|
|
164
|
+
'revisions': (value['revisions'].map(AdminConceptMediaRevisionToJSON)),
|
|
165
|
+
'history': (value['history'].map(AdminConceptMediaHistoryEntryToJSON)),
|
|
166
|
+
'historyTruncated': value['historyTruncated'],
|
|
167
|
+
'hiddenVersionIds': value['hiddenVersionIds'],
|
|
168
|
+
'hiddenVersionsTruncated': value['hiddenVersionsTruncated'],
|
|
169
|
+
};
|
|
170
|
+
}
|
|
@@ -0,0 +1,233 @@
|
|
|
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 { AdminConceptMediaConcept } from './AdminConceptMediaConcept';
|
|
13
|
+
import type { AdminConceptMediaHistoryEntry } from './AdminConceptMediaHistoryEntry';
|
|
14
|
+
import type { AdminConceptMediaActor } from './AdminConceptMediaActor';
|
|
15
|
+
import type { AdminConceptMediaRevision } from './AdminConceptMediaRevision';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AdminShownConceptImage
|
|
20
|
+
*/
|
|
21
|
+
export interface AdminShownConceptImage {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AdminShownConceptImage
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {AdminConceptMediaConcept}
|
|
31
|
+
* @memberof AdminShownConceptImage
|
|
32
|
+
*/
|
|
33
|
+
concept: AdminConceptMediaConcept;
|
|
34
|
+
/**
|
|
35
|
+
* visible: served to learners. hidden: kept out of every learner read. deleted: soft-deleted, kept out of every learner read and out of the default admin list. A change applies to later reads only: an image URL already handed out stays valid until it expires (12 hours).
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof AdminShownConceptImage
|
|
38
|
+
*/
|
|
39
|
+
state: AdminShownConceptImageStateEnum;
|
|
40
|
+
/**
|
|
41
|
+
* chat: generated in a learner's tutor turn. admin: an admin draft or regeneration.
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof AdminShownConceptImage
|
|
44
|
+
*/
|
|
45
|
+
origin: AdminShownConceptImageOriginEnum;
|
|
46
|
+
/**
|
|
47
|
+
* Who generated it. Null when that account user was deleted or belongs to a different account (see creatorOutsideAccount).
|
|
48
|
+
* @type {AdminConceptMediaActor}
|
|
49
|
+
* @memberof AdminShownConceptImage
|
|
50
|
+
*/
|
|
51
|
+
creator: AdminConceptMediaActor | null;
|
|
52
|
+
/**
|
|
53
|
+
* True when the creator exists but belongs to a different account, so their details are withheld.
|
|
54
|
+
* @type {boolean}
|
|
55
|
+
* @memberof AdminShownConceptImage
|
|
56
|
+
*/
|
|
57
|
+
creatorOutsideAccount: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* The chat it was generated in. Null for admin drafts, once the chat is deleted, or when the creator is outside the caller's account.
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof AdminShownConceptImage
|
|
62
|
+
*/
|
|
63
|
+
sourceChatId: string | null;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {Date}
|
|
67
|
+
* @memberof AdminShownConceptImage
|
|
68
|
+
*/
|
|
69
|
+
createdAt: Date;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {Date}
|
|
73
|
+
* @memberof AdminShownConceptImage
|
|
74
|
+
*/
|
|
75
|
+
hiddenAt: Date | null;
|
|
76
|
+
/**
|
|
77
|
+
* Who hid it, when that account user is in the caller's account.
|
|
78
|
+
* @type {AdminConceptMediaActor}
|
|
79
|
+
* @memberof AdminShownConceptImage
|
|
80
|
+
*/
|
|
81
|
+
hiddenBy: AdminConceptMediaActor | null;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {Date}
|
|
85
|
+
* @memberof AdminShownConceptImage
|
|
86
|
+
*/
|
|
87
|
+
deletedAt: Date | null;
|
|
88
|
+
/**
|
|
89
|
+
* Who deleted it, when that account user is in the caller's account.
|
|
90
|
+
* @type {AdminConceptMediaActor}
|
|
91
|
+
* @memberof AdminShownConceptImage
|
|
92
|
+
*/
|
|
93
|
+
deletedBy: AdminConceptMediaActor | null;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {string}
|
|
97
|
+
* @memberof AdminShownConceptImage
|
|
98
|
+
*/
|
|
99
|
+
model: string;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @type {number}
|
|
103
|
+
* @memberof AdminShownConceptImage
|
|
104
|
+
*/
|
|
105
|
+
inputTokens: number | null;
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
* @type {number}
|
|
109
|
+
* @memberof AdminShownConceptImage
|
|
110
|
+
*/
|
|
111
|
+
outputTokens: number | null;
|
|
112
|
+
/**
|
|
113
|
+
* Null when usage or price was missing; never estimated.
|
|
114
|
+
* @type {number}
|
|
115
|
+
* @memberof AdminShownConceptImage
|
|
116
|
+
*/
|
|
117
|
+
costUsd: number | null;
|
|
118
|
+
/**
|
|
119
|
+
*
|
|
120
|
+
* @type {string}
|
|
121
|
+
* @memberof AdminShownConceptImage
|
|
122
|
+
*/
|
|
123
|
+
description: string;
|
|
124
|
+
/**
|
|
125
|
+
* The image this one revises
|
|
126
|
+
* @type {string}
|
|
127
|
+
* @memberof AdminShownConceptImage
|
|
128
|
+
*/
|
|
129
|
+
revisesImageId: string | null;
|
|
130
|
+
/**
|
|
131
|
+
*
|
|
132
|
+
* @type {string}
|
|
133
|
+
* @memberof AdminShownConceptImage
|
|
134
|
+
*/
|
|
135
|
+
quality: string;
|
|
136
|
+
/**
|
|
137
|
+
*
|
|
138
|
+
* @type {string}
|
|
139
|
+
* @memberof AdminShownConceptImage
|
|
140
|
+
*/
|
|
141
|
+
mimeType: string;
|
|
142
|
+
/**
|
|
143
|
+
*
|
|
144
|
+
* @type {number}
|
|
145
|
+
* @memberof AdminShownConceptImage
|
|
146
|
+
*/
|
|
147
|
+
width: number;
|
|
148
|
+
/**
|
|
149
|
+
*
|
|
150
|
+
* @type {number}
|
|
151
|
+
* @memberof AdminShownConceptImage
|
|
152
|
+
*/
|
|
153
|
+
height: number;
|
|
154
|
+
/**
|
|
155
|
+
* Signed read URL, valid for 12 hours, for any state (admins preview hidden and deleted images). Null when the URL could not be signed.
|
|
156
|
+
* @type {string}
|
|
157
|
+
* @memberof AdminShownConceptImage
|
|
158
|
+
*/
|
|
159
|
+
url: string | null;
|
|
160
|
+
/**
|
|
161
|
+
* The full prompt sent to the image model, style preamble included
|
|
162
|
+
* @type {string}
|
|
163
|
+
* @memberof AdminShownConceptImage
|
|
164
|
+
*/
|
|
165
|
+
prompt: string;
|
|
166
|
+
/**
|
|
167
|
+
* The prompt without the fixed style preamble: what to prefill for a regeneration. The preamble is added back when generating.
|
|
168
|
+
* @type {string}
|
|
169
|
+
* @memberof AdminShownConceptImage
|
|
170
|
+
*/
|
|
171
|
+
modelPrompt: string;
|
|
172
|
+
/**
|
|
173
|
+
* The image this one revises, in any state; null if none or gone
|
|
174
|
+
* @type {AdminConceptMediaRevision}
|
|
175
|
+
* @memberof AdminShownConceptImage
|
|
176
|
+
*/
|
|
177
|
+
parent: AdminConceptMediaRevision | null;
|
|
178
|
+
/**
|
|
179
|
+
* Images that revise this one, oldest first, in any state
|
|
180
|
+
* @type {Array<AdminConceptMediaRevision>}
|
|
181
|
+
* @memberof AdminShownConceptImage
|
|
182
|
+
*/
|
|
183
|
+
revisions: Array<AdminConceptMediaRevision>;
|
|
184
|
+
/**
|
|
185
|
+
* The whole revision family this row belongs to: its original (found by following revises links up until one ends) and every row that revises the original, directly or through other revisions, across all branches. Includes this row and rows in every state, deleted versions included. Oldest first by createdAt, then id. At most 100 rows; see historyTruncated.
|
|
186
|
+
* @type {Array<AdminConceptMediaHistoryEntry>}
|
|
187
|
+
* @memberof AdminShownConceptImage
|
|
188
|
+
*/
|
|
189
|
+
history: Array<AdminConceptMediaHistoryEntry>;
|
|
190
|
+
/**
|
|
191
|
+
* True when the family has more rows than history can hold, so history is incomplete. This row and the rows it revises are always kept.
|
|
192
|
+
* @type {boolean}
|
|
193
|
+
* @memberof AdminShownConceptImage
|
|
194
|
+
*/
|
|
195
|
+
historyTruncated: boolean;
|
|
196
|
+
/**
|
|
197
|
+
* With hideOtherVersions, the other versions in this row's revision family that were visible and are now hidden by this call, oldest first by createdAt, then id. Empty without the flag, or when no other version was visible. Versions that were already hidden or deleted are left as they were and are not listed.
|
|
198
|
+
* @type {Array<string>}
|
|
199
|
+
* @memberof AdminShownConceptImage
|
|
200
|
+
*/
|
|
201
|
+
hiddenVersionIds: Array<string>;
|
|
202
|
+
/**
|
|
203
|
+
* True when hideOtherVersions was set and the revision family has more rows than the 100-row history cap, so only visible versions within the capped set (the same rows history lists) were hidden and others may still be visible. Always false without the flag.
|
|
204
|
+
* @type {boolean}
|
|
205
|
+
* @memberof AdminShownConceptImage
|
|
206
|
+
*/
|
|
207
|
+
hiddenVersionsTruncated: boolean;
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* @export
|
|
211
|
+
*/
|
|
212
|
+
export declare const AdminShownConceptImageStateEnum: {
|
|
213
|
+
readonly Visible: "visible";
|
|
214
|
+
readonly Hidden: "hidden";
|
|
215
|
+
readonly Deleted: "deleted";
|
|
216
|
+
};
|
|
217
|
+
export type AdminShownConceptImageStateEnum = typeof AdminShownConceptImageStateEnum[keyof typeof AdminShownConceptImageStateEnum];
|
|
218
|
+
/**
|
|
219
|
+
* @export
|
|
220
|
+
*/
|
|
221
|
+
export declare const AdminShownConceptImageOriginEnum: {
|
|
222
|
+
readonly Chat: "chat";
|
|
223
|
+
readonly Admin: "admin";
|
|
224
|
+
};
|
|
225
|
+
export type AdminShownConceptImageOriginEnum = typeof AdminShownConceptImageOriginEnum[keyof typeof AdminShownConceptImageOriginEnum];
|
|
226
|
+
/**
|
|
227
|
+
* Check if a given object implements the AdminShownConceptImage interface.
|
|
228
|
+
*/
|
|
229
|
+
export declare function instanceOfAdminShownConceptImage(value: object): value is AdminShownConceptImage;
|
|
230
|
+
export declare function AdminShownConceptImageFromJSON(json: any): AdminShownConceptImage;
|
|
231
|
+
export declare function AdminShownConceptImageFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminShownConceptImage;
|
|
232
|
+
export declare function AdminShownConceptImageToJSON(json: any): AdminShownConceptImage;
|
|
233
|
+
export declare function AdminShownConceptImageToJSONTyped(value?: AdminShownConceptImage | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,182 @@
|
|
|
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
|
+
import { AdminConceptMediaConceptFromJSON, AdminConceptMediaConceptToJSON, } from './AdminConceptMediaConcept';
|
|
15
|
+
import { AdminConceptMediaHistoryEntryFromJSON, AdminConceptMediaHistoryEntryToJSON, } from './AdminConceptMediaHistoryEntry';
|
|
16
|
+
import { AdminConceptMediaActorFromJSON, AdminConceptMediaActorToJSON, } from './AdminConceptMediaActor';
|
|
17
|
+
import { AdminConceptMediaRevisionFromJSON, AdminConceptMediaRevisionToJSON, } from './AdminConceptMediaRevision';
|
|
18
|
+
/**
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
export const AdminShownConceptImageStateEnum = {
|
|
22
|
+
Visible: 'visible',
|
|
23
|
+
Hidden: 'hidden',
|
|
24
|
+
Deleted: 'deleted'
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* @export
|
|
28
|
+
*/
|
|
29
|
+
export const AdminShownConceptImageOriginEnum = {
|
|
30
|
+
Chat: 'chat',
|
|
31
|
+
Admin: 'admin'
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the AdminShownConceptImage interface.
|
|
35
|
+
*/
|
|
36
|
+
export function instanceOfAdminShownConceptImage(value) {
|
|
37
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('concept' in value) || value['concept'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('state' in value) || value['state'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('origin' in value) || value['origin'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('creator' in value) || value['creator'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('creatorOutsideAccount' in value) || value['creatorOutsideAccount'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('sourceChatId' in value) || value['sourceChatId'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
if (!('hiddenAt' in value) || value['hiddenAt'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
if (!('hiddenBy' in value) || value['hiddenBy'] === undefined)
|
|
56
|
+
return false;
|
|
57
|
+
if (!('deletedAt' in value) || value['deletedAt'] === undefined)
|
|
58
|
+
return false;
|
|
59
|
+
if (!('deletedBy' in value) || value['deletedBy'] === undefined)
|
|
60
|
+
return false;
|
|
61
|
+
if (!('model' in value) || value['model'] === undefined)
|
|
62
|
+
return false;
|
|
63
|
+
if (!('inputTokens' in value) || value['inputTokens'] === undefined)
|
|
64
|
+
return false;
|
|
65
|
+
if (!('outputTokens' in value) || value['outputTokens'] === undefined)
|
|
66
|
+
return false;
|
|
67
|
+
if (!('costUsd' in value) || value['costUsd'] === undefined)
|
|
68
|
+
return false;
|
|
69
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
70
|
+
return false;
|
|
71
|
+
if (!('revisesImageId' in value) || value['revisesImageId'] === undefined)
|
|
72
|
+
return false;
|
|
73
|
+
if (!('quality' in value) || value['quality'] === undefined)
|
|
74
|
+
return false;
|
|
75
|
+
if (!('mimeType' in value) || value['mimeType'] === undefined)
|
|
76
|
+
return false;
|
|
77
|
+
if (!('width' in value) || value['width'] === undefined)
|
|
78
|
+
return false;
|
|
79
|
+
if (!('height' in value) || value['height'] === undefined)
|
|
80
|
+
return false;
|
|
81
|
+
if (!('url' in value) || value['url'] === undefined)
|
|
82
|
+
return false;
|
|
83
|
+
if (!('prompt' in value) || value['prompt'] === undefined)
|
|
84
|
+
return false;
|
|
85
|
+
if (!('modelPrompt' in value) || value['modelPrompt'] === undefined)
|
|
86
|
+
return false;
|
|
87
|
+
if (!('parent' in value) || value['parent'] === undefined)
|
|
88
|
+
return false;
|
|
89
|
+
if (!('revisions' in value) || value['revisions'] === undefined)
|
|
90
|
+
return false;
|
|
91
|
+
if (!('history' in value) || value['history'] === undefined)
|
|
92
|
+
return false;
|
|
93
|
+
if (!('historyTruncated' in value) || value['historyTruncated'] === undefined)
|
|
94
|
+
return false;
|
|
95
|
+
if (!('hiddenVersionIds' in value) || value['hiddenVersionIds'] === undefined)
|
|
96
|
+
return false;
|
|
97
|
+
if (!('hiddenVersionsTruncated' in value) || value['hiddenVersionsTruncated'] === undefined)
|
|
98
|
+
return false;
|
|
99
|
+
return true;
|
|
100
|
+
}
|
|
101
|
+
export function AdminShownConceptImageFromJSON(json) {
|
|
102
|
+
return AdminShownConceptImageFromJSONTyped(json, false);
|
|
103
|
+
}
|
|
104
|
+
export function AdminShownConceptImageFromJSONTyped(json, ignoreDiscriminator) {
|
|
105
|
+
if (json == null) {
|
|
106
|
+
return json;
|
|
107
|
+
}
|
|
108
|
+
return {
|
|
109
|
+
'id': json['id'],
|
|
110
|
+
'concept': AdminConceptMediaConceptFromJSON(json['concept']),
|
|
111
|
+
'state': json['state'],
|
|
112
|
+
'origin': json['origin'],
|
|
113
|
+
'creator': AdminConceptMediaActorFromJSON(json['creator']),
|
|
114
|
+
'creatorOutsideAccount': json['creatorOutsideAccount'],
|
|
115
|
+
'sourceChatId': json['sourceChatId'],
|
|
116
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
117
|
+
'hiddenAt': (json['hiddenAt'] == null ? null : new Date(json['hiddenAt'])),
|
|
118
|
+
'hiddenBy': AdminConceptMediaActorFromJSON(json['hiddenBy']),
|
|
119
|
+
'deletedAt': (json['deletedAt'] == null ? null : new Date(json['deletedAt'])),
|
|
120
|
+
'deletedBy': AdminConceptMediaActorFromJSON(json['deletedBy']),
|
|
121
|
+
'model': json['model'],
|
|
122
|
+
'inputTokens': json['inputTokens'],
|
|
123
|
+
'outputTokens': json['outputTokens'],
|
|
124
|
+
'costUsd': json['costUsd'],
|
|
125
|
+
'description': json['description'],
|
|
126
|
+
'revisesImageId': json['revisesImageId'],
|
|
127
|
+
'quality': json['quality'],
|
|
128
|
+
'mimeType': json['mimeType'],
|
|
129
|
+
'width': json['width'],
|
|
130
|
+
'height': json['height'],
|
|
131
|
+
'url': json['url'],
|
|
132
|
+
'prompt': json['prompt'],
|
|
133
|
+
'modelPrompt': json['modelPrompt'],
|
|
134
|
+
'parent': AdminConceptMediaRevisionFromJSON(json['parent']),
|
|
135
|
+
'revisions': (json['revisions'].map(AdminConceptMediaRevisionFromJSON)),
|
|
136
|
+
'history': (json['history'].map(AdminConceptMediaHistoryEntryFromJSON)),
|
|
137
|
+
'historyTruncated': json['historyTruncated'],
|
|
138
|
+
'hiddenVersionIds': json['hiddenVersionIds'],
|
|
139
|
+
'hiddenVersionsTruncated': json['hiddenVersionsTruncated'],
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
export function AdminShownConceptImageToJSON(json) {
|
|
143
|
+
return AdminShownConceptImageToJSONTyped(json, false);
|
|
144
|
+
}
|
|
145
|
+
export function AdminShownConceptImageToJSONTyped(value, ignoreDiscriminator = false) {
|
|
146
|
+
if (value == null) {
|
|
147
|
+
return value;
|
|
148
|
+
}
|
|
149
|
+
return {
|
|
150
|
+
'id': value['id'],
|
|
151
|
+
'concept': AdminConceptMediaConceptToJSON(value['concept']),
|
|
152
|
+
'state': value['state'],
|
|
153
|
+
'origin': value['origin'],
|
|
154
|
+
'creator': AdminConceptMediaActorToJSON(value['creator']),
|
|
155
|
+
'creatorOutsideAccount': value['creatorOutsideAccount'],
|
|
156
|
+
'sourceChatId': value['sourceChatId'],
|
|
157
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
158
|
+
'hiddenAt': value['hiddenAt'] == null ? value['hiddenAt'] : value['hiddenAt'].toISOString(),
|
|
159
|
+
'hiddenBy': AdminConceptMediaActorToJSON(value['hiddenBy']),
|
|
160
|
+
'deletedAt': value['deletedAt'] == null ? value['deletedAt'] : value['deletedAt'].toISOString(),
|
|
161
|
+
'deletedBy': AdminConceptMediaActorToJSON(value['deletedBy']),
|
|
162
|
+
'model': value['model'],
|
|
163
|
+
'inputTokens': value['inputTokens'],
|
|
164
|
+
'outputTokens': value['outputTokens'],
|
|
165
|
+
'costUsd': value['costUsd'],
|
|
166
|
+
'description': value['description'],
|
|
167
|
+
'revisesImageId': value['revisesImageId'],
|
|
168
|
+
'quality': value['quality'],
|
|
169
|
+
'mimeType': value['mimeType'],
|
|
170
|
+
'width': value['width'],
|
|
171
|
+
'height': value['height'],
|
|
172
|
+
'url': value['url'],
|
|
173
|
+
'prompt': value['prompt'],
|
|
174
|
+
'modelPrompt': value['modelPrompt'],
|
|
175
|
+
'parent': AdminConceptMediaRevisionToJSON(value['parent']),
|
|
176
|
+
'revisions': (value['revisions'].map(AdminConceptMediaRevisionToJSON)),
|
|
177
|
+
'history': (value['history'].map(AdminConceptMediaHistoryEntryToJSON)),
|
|
178
|
+
'historyTruncated': value['historyTruncated'],
|
|
179
|
+
'hiddenVersionIds': value['hiddenVersionIds'],
|
|
180
|
+
'hiddenVersionsTruncated': value['hiddenVersionsTruncated'],
|
|
181
|
+
};
|
|
182
|
+
}
|
|
@@ -17,11 +17,26 @@ export * from './AdminChatAnalysis';
|
|
|
17
17
|
export * from './AdminChatCanvasUsage';
|
|
18
18
|
export * from './AdminChatWithStats';
|
|
19
19
|
export * from './AdminCohortStats';
|
|
20
|
+
export * from './AdminConceptDiagram';
|
|
21
|
+
export * from './AdminConceptDiagramDetail';
|
|
22
|
+
export * from './AdminConceptImage';
|
|
23
|
+
export * from './AdminConceptImageDetail';
|
|
24
|
+
export * from './AdminConceptMediaActor';
|
|
25
|
+
export * from './AdminConceptMediaConcept';
|
|
26
|
+
export * from './AdminConceptMediaHistoryEntry';
|
|
27
|
+
export * from './AdminConceptMediaRevision';
|
|
28
|
+
export * from './AdminConceptSearchResult';
|
|
20
29
|
export * from './AdminExchangeChat';
|
|
21
30
|
export * from './AdminExchangeMessage';
|
|
31
|
+
export * from './AdminGenerateConceptDiagramRequest';
|
|
32
|
+
export * from './AdminGenerateConceptImageRequest';
|
|
33
|
+
export * from './AdminGeneratedConceptDiagram';
|
|
34
|
+
export * from './AdminGeneratedConceptImage';
|
|
22
35
|
export * from './AdminLastExchange';
|
|
23
36
|
export * from './AdminPaginatedActiveStreaks';
|
|
24
37
|
export * from './AdminPaginatedChats';
|
|
38
|
+
export * from './AdminPaginatedConceptDiagrams';
|
|
39
|
+
export * from './AdminPaginatedConceptImages';
|
|
25
40
|
export * from './AdminPaginatedLastExchanges';
|
|
26
41
|
export * from './AdminPaginatedQuizParticipantSessions';
|
|
27
42
|
export * from './AdminPaginatedQuizSessions';
|
|
@@ -36,7 +51,12 @@ export * from './AdminQuizSessionListItem';
|
|
|
36
51
|
export * from './AdminQuizSessionScore';
|
|
37
52
|
export * from './AdminQuizSourceFile';
|
|
38
53
|
export * from './AdminQuizSourceMaterial';
|
|
54
|
+
export * from './AdminRegenerateConceptDiagramRequest';
|
|
55
|
+
export * from './AdminRegenerateConceptImageRequest';
|
|
39
56
|
export * from './AdminResetLearningDataResponse';
|
|
57
|
+
export * from './AdminShowConceptMediaRequest';
|
|
58
|
+
export * from './AdminShownConceptDiagram';
|
|
59
|
+
export * from './AdminShownConceptImage';
|
|
40
60
|
export * from './AdminStreak';
|
|
41
61
|
export * from './AdminStudyObjectiveCanvasTypeCount';
|
|
42
62
|
export * from './AdminStudyObjectiveListItem';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -19,11 +19,26 @@ export * from './AdminChatAnalysis';
|
|
|
19
19
|
export * from './AdminChatCanvasUsage';
|
|
20
20
|
export * from './AdminChatWithStats';
|
|
21
21
|
export * from './AdminCohortStats';
|
|
22
|
+
export * from './AdminConceptDiagram';
|
|
23
|
+
export * from './AdminConceptDiagramDetail';
|
|
24
|
+
export * from './AdminConceptImage';
|
|
25
|
+
export * from './AdminConceptImageDetail';
|
|
26
|
+
export * from './AdminConceptMediaActor';
|
|
27
|
+
export * from './AdminConceptMediaConcept';
|
|
28
|
+
export * from './AdminConceptMediaHistoryEntry';
|
|
29
|
+
export * from './AdminConceptMediaRevision';
|
|
30
|
+
export * from './AdminConceptSearchResult';
|
|
22
31
|
export * from './AdminExchangeChat';
|
|
23
32
|
export * from './AdminExchangeMessage';
|
|
33
|
+
export * from './AdminGenerateConceptDiagramRequest';
|
|
34
|
+
export * from './AdminGenerateConceptImageRequest';
|
|
35
|
+
export * from './AdminGeneratedConceptDiagram';
|
|
36
|
+
export * from './AdminGeneratedConceptImage';
|
|
24
37
|
export * from './AdminLastExchange';
|
|
25
38
|
export * from './AdminPaginatedActiveStreaks';
|
|
26
39
|
export * from './AdminPaginatedChats';
|
|
40
|
+
export * from './AdminPaginatedConceptDiagrams';
|
|
41
|
+
export * from './AdminPaginatedConceptImages';
|
|
27
42
|
export * from './AdminPaginatedLastExchanges';
|
|
28
43
|
export * from './AdminPaginatedQuizParticipantSessions';
|
|
29
44
|
export * from './AdminPaginatedQuizSessions';
|
|
@@ -38,7 +53,12 @@ export * from './AdminQuizSessionListItem';
|
|
|
38
53
|
export * from './AdminQuizSessionScore';
|
|
39
54
|
export * from './AdminQuizSourceFile';
|
|
40
55
|
export * from './AdminQuizSourceMaterial';
|
|
56
|
+
export * from './AdminRegenerateConceptDiagramRequest';
|
|
57
|
+
export * from './AdminRegenerateConceptImageRequest';
|
|
41
58
|
export * from './AdminResetLearningDataResponse';
|
|
59
|
+
export * from './AdminShowConceptMediaRequest';
|
|
60
|
+
export * from './AdminShownConceptDiagram';
|
|
61
|
+
export * from './AdminShownConceptImage';
|
|
42
62
|
export * from './AdminStreak';
|
|
43
63
|
export * from './AdminStudyObjectiveCanvasTypeCount';
|
|
44
64
|
export * from './AdminStudyObjectiveListItem';
|