@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.
Files changed (90) hide show
  1. package/README.md +37 -0
  2. package/dist/apis/AdminApi.d.ts +296 -1
  3. package/dist/apis/AdminApi.js +809 -20
  4. package/dist/esm/apis/AdminApi.d.ts +296 -1
  5. package/dist/esm/apis/AdminApi.js +809 -20
  6. package/dist/esm/models/AdminConceptDiagram.d.ts +165 -0
  7. package/dist/esm/models/AdminConceptDiagram.js +136 -0
  8. package/dist/esm/models/AdminConceptDiagramDetail.d.ts +203 -0
  9. package/dist/esm/models/AdminConceptDiagramDetail.js +162 -0
  10. package/dist/esm/models/AdminConceptImage.d.ts +183 -0
  11. package/dist/esm/models/AdminConceptImage.js +148 -0
  12. package/dist/esm/models/AdminConceptImageDetail.d.ts +221 -0
  13. package/dist/esm/models/AdminConceptImageDetail.js +174 -0
  14. package/dist/esm/models/AdminConceptMediaActor.d.ts +38 -0
  15. package/dist/esm/models/AdminConceptMediaActor.js +47 -0
  16. package/dist/esm/models/AdminConceptMediaConcept.d.ts +38 -0
  17. package/dist/esm/models/AdminConceptMediaConcept.js +47 -0
  18. package/dist/esm/models/AdminConceptMediaHistoryEntry.d.ts +92 -0
  19. package/dist/esm/models/AdminConceptMediaHistoryEntry.js +87 -0
  20. package/dist/esm/models/AdminConceptMediaRevision.d.ts +67 -0
  21. package/dist/esm/models/AdminConceptMediaRevision.js +70 -0
  22. package/dist/esm/models/AdminConceptSearchResult.d.ts +56 -0
  23. package/dist/esm/models/AdminConceptSearchResult.js +59 -0
  24. package/dist/esm/models/AdminGenerateConceptDiagramRequest.d.ts +56 -0
  25. package/dist/esm/models/AdminGenerateConceptDiagramRequest.js +51 -0
  26. package/dist/esm/models/AdminGenerateConceptImageRequest.d.ts +50 -0
  27. package/dist/esm/models/AdminGenerateConceptImageRequest.js +49 -0
  28. package/dist/esm/models/AdminGeneratedConceptDiagram.d.ts +219 -0
  29. package/dist/esm/models/AdminGeneratedConceptDiagram.js +175 -0
  30. package/dist/esm/models/AdminGeneratedConceptImage.d.ts +237 -0
  31. package/dist/esm/models/AdminGeneratedConceptImage.js +187 -0
  32. package/dist/esm/models/AdminPaginatedConceptDiagrams.d.ts +39 -0
  33. package/dist/esm/models/AdminPaginatedConceptDiagrams.js +48 -0
  34. package/dist/esm/models/AdminPaginatedConceptImages.d.ts +39 -0
  35. package/dist/esm/models/AdminPaginatedConceptImages.js +48 -0
  36. package/dist/esm/models/AdminRegenerateConceptDiagramRequest.d.ts +44 -0
  37. package/dist/esm/models/AdminRegenerateConceptDiagramRequest.js +47 -0
  38. package/dist/esm/models/AdminRegenerateConceptImageRequest.d.ts +38 -0
  39. package/dist/esm/models/AdminRegenerateConceptImageRequest.js +45 -0
  40. package/dist/esm/models/AdminShowConceptMediaRequest.d.ts +32 -0
  41. package/dist/esm/models/AdminShowConceptMediaRequest.js +41 -0
  42. package/dist/esm/models/AdminShownConceptDiagram.d.ts +215 -0
  43. package/dist/esm/models/AdminShownConceptDiagram.js +170 -0
  44. package/dist/esm/models/AdminShownConceptImage.d.ts +233 -0
  45. package/dist/esm/models/AdminShownConceptImage.js +182 -0
  46. package/dist/esm/models/index.d.ts +20 -0
  47. package/dist/esm/models/index.js +20 -0
  48. package/dist/models/AdminConceptDiagram.d.ts +165 -0
  49. package/dist/models/AdminConceptDiagram.js +144 -0
  50. package/dist/models/AdminConceptDiagramDetail.d.ts +203 -0
  51. package/dist/models/AdminConceptDiagramDetail.js +170 -0
  52. package/dist/models/AdminConceptImage.d.ts +183 -0
  53. package/dist/models/AdminConceptImage.js +156 -0
  54. package/dist/models/AdminConceptImageDetail.d.ts +221 -0
  55. package/dist/models/AdminConceptImageDetail.js +182 -0
  56. package/dist/models/AdminConceptMediaActor.d.ts +38 -0
  57. package/dist/models/AdminConceptMediaActor.js +54 -0
  58. package/dist/models/AdminConceptMediaConcept.d.ts +38 -0
  59. package/dist/models/AdminConceptMediaConcept.js +54 -0
  60. package/dist/models/AdminConceptMediaHistoryEntry.d.ts +92 -0
  61. package/dist/models/AdminConceptMediaHistoryEntry.js +95 -0
  62. package/dist/models/AdminConceptMediaRevision.d.ts +67 -0
  63. package/dist/models/AdminConceptMediaRevision.js +78 -0
  64. package/dist/models/AdminConceptSearchResult.d.ts +56 -0
  65. package/dist/models/AdminConceptSearchResult.js +66 -0
  66. package/dist/models/AdminGenerateConceptDiagramRequest.d.ts +56 -0
  67. package/dist/models/AdminGenerateConceptDiagramRequest.js +58 -0
  68. package/dist/models/AdminGenerateConceptImageRequest.d.ts +50 -0
  69. package/dist/models/AdminGenerateConceptImageRequest.js +56 -0
  70. package/dist/models/AdminGeneratedConceptDiagram.d.ts +219 -0
  71. package/dist/models/AdminGeneratedConceptDiagram.js +183 -0
  72. package/dist/models/AdminGeneratedConceptImage.d.ts +237 -0
  73. package/dist/models/AdminGeneratedConceptImage.js +195 -0
  74. package/dist/models/AdminPaginatedConceptDiagrams.d.ts +39 -0
  75. package/dist/models/AdminPaginatedConceptDiagrams.js +55 -0
  76. package/dist/models/AdminPaginatedConceptImages.d.ts +39 -0
  77. package/dist/models/AdminPaginatedConceptImages.js +55 -0
  78. package/dist/models/AdminRegenerateConceptDiagramRequest.d.ts +44 -0
  79. package/dist/models/AdminRegenerateConceptDiagramRequest.js +54 -0
  80. package/dist/models/AdminRegenerateConceptImageRequest.d.ts +38 -0
  81. package/dist/models/AdminRegenerateConceptImageRequest.js +52 -0
  82. package/dist/models/AdminShowConceptMediaRequest.d.ts +32 -0
  83. package/dist/models/AdminShowConceptMediaRequest.js +48 -0
  84. package/dist/models/AdminShownConceptDiagram.d.ts +215 -0
  85. package/dist/models/AdminShownConceptDiagram.js +178 -0
  86. package/dist/models/AdminShownConceptImage.d.ts +233 -0
  87. package/dist/models/AdminShownConceptImage.js +190 -0
  88. package/dist/models/index.d.ts +20 -0
  89. package/dist/models/index.js +20 -0
  90. package/package.json +1 -1
@@ -0,0 +1,178 @@
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.AdminShownConceptDiagramOriginEnum = exports.AdminShownConceptDiagramStateEnum = void 0;
17
+ exports.instanceOfAdminShownConceptDiagram = instanceOfAdminShownConceptDiagram;
18
+ exports.AdminShownConceptDiagramFromJSON = AdminShownConceptDiagramFromJSON;
19
+ exports.AdminShownConceptDiagramFromJSONTyped = AdminShownConceptDiagramFromJSONTyped;
20
+ exports.AdminShownConceptDiagramToJSON = AdminShownConceptDiagramToJSON;
21
+ exports.AdminShownConceptDiagramToJSONTyped = AdminShownConceptDiagramToJSONTyped;
22
+ const AdminConceptMediaConcept_1 = require("./AdminConceptMediaConcept");
23
+ const AdminConceptMediaHistoryEntry_1 = require("./AdminConceptMediaHistoryEntry");
24
+ const AdminConceptMediaActor_1 = require("./AdminConceptMediaActor");
25
+ const AdminConceptMediaRevision_1 = require("./AdminConceptMediaRevision");
26
+ /**
27
+ * @export
28
+ */
29
+ exports.AdminShownConceptDiagramStateEnum = {
30
+ Visible: 'visible',
31
+ Hidden: 'hidden',
32
+ Deleted: 'deleted'
33
+ };
34
+ /**
35
+ * @export
36
+ */
37
+ exports.AdminShownConceptDiagramOriginEnum = {
38
+ Chat: 'chat',
39
+ Admin: 'admin'
40
+ };
41
+ /**
42
+ * Check if a given object implements the AdminShownConceptDiagram interface.
43
+ */
44
+ function instanceOfAdminShownConceptDiagram(value) {
45
+ if (!('id' in value) || value['id'] === undefined)
46
+ return false;
47
+ if (!('concept' in value) || value['concept'] === undefined)
48
+ return false;
49
+ if (!('state' in value) || value['state'] === undefined)
50
+ return false;
51
+ if (!('origin' in value) || value['origin'] === undefined)
52
+ return false;
53
+ if (!('creator' in value) || value['creator'] === undefined)
54
+ return false;
55
+ if (!('creatorOutsideAccount' in value) || value['creatorOutsideAccount'] === undefined)
56
+ return false;
57
+ if (!('sourceChatId' in value) || value['sourceChatId'] === undefined)
58
+ return false;
59
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
60
+ return false;
61
+ if (!('hiddenAt' in value) || value['hiddenAt'] === undefined)
62
+ return false;
63
+ if (!('hiddenBy' in value) || value['hiddenBy'] === undefined)
64
+ return false;
65
+ if (!('deletedAt' in value) || value['deletedAt'] === undefined)
66
+ return false;
67
+ if (!('deletedBy' in value) || value['deletedBy'] === undefined)
68
+ return false;
69
+ if (!('model' in value) || value['model'] === undefined)
70
+ return false;
71
+ if (!('inputTokens' in value) || value['inputTokens'] === undefined)
72
+ return false;
73
+ if (!('outputTokens' in value) || value['outputTokens'] === undefined)
74
+ return false;
75
+ if (!('costUsd' in value) || value['costUsd'] === undefined)
76
+ return false;
77
+ if (!('description' in value) || value['description'] === undefined)
78
+ return false;
79
+ if (!('revisesDiagramId' in value) || value['revisesDiagramId'] === undefined)
80
+ return false;
81
+ if (!('title' in value) || value['title'] === undefined)
82
+ return false;
83
+ if (!('effort' in value) || value['effort'] === undefined)
84
+ return false;
85
+ if (!('brief' in value) || value['brief'] === undefined)
86
+ return false;
87
+ if (!('document' in value) || value['document'] === undefined)
88
+ return false;
89
+ if (!('parent' in value) || value['parent'] === undefined)
90
+ return false;
91
+ if (!('revisions' in value) || value['revisions'] === undefined)
92
+ return false;
93
+ if (!('history' in value) || value['history'] === undefined)
94
+ return false;
95
+ if (!('historyTruncated' in value) || value['historyTruncated'] === undefined)
96
+ return false;
97
+ if (!('hiddenVersionIds' in value) || value['hiddenVersionIds'] === undefined)
98
+ return false;
99
+ if (!('hiddenVersionsTruncated' in value) || value['hiddenVersionsTruncated'] === undefined)
100
+ return false;
101
+ return true;
102
+ }
103
+ function AdminShownConceptDiagramFromJSON(json) {
104
+ return AdminShownConceptDiagramFromJSONTyped(json, false);
105
+ }
106
+ function AdminShownConceptDiagramFromJSONTyped(json, ignoreDiscriminator) {
107
+ if (json == null) {
108
+ return json;
109
+ }
110
+ return {
111
+ 'id': json['id'],
112
+ 'concept': (0, AdminConceptMediaConcept_1.AdminConceptMediaConceptFromJSON)(json['concept']),
113
+ 'state': json['state'],
114
+ 'origin': json['origin'],
115
+ 'creator': (0, AdminConceptMediaActor_1.AdminConceptMediaActorFromJSON)(json['creator']),
116
+ 'creatorOutsideAccount': json['creatorOutsideAccount'],
117
+ 'sourceChatId': json['sourceChatId'],
118
+ 'createdAt': (new Date(json['createdAt'])),
119
+ 'hiddenAt': (json['hiddenAt'] == null ? null : new Date(json['hiddenAt'])),
120
+ 'hiddenBy': (0, AdminConceptMediaActor_1.AdminConceptMediaActorFromJSON)(json['hiddenBy']),
121
+ 'deletedAt': (json['deletedAt'] == null ? null : new Date(json['deletedAt'])),
122
+ 'deletedBy': (0, AdminConceptMediaActor_1.AdminConceptMediaActorFromJSON)(json['deletedBy']),
123
+ 'model': json['model'],
124
+ 'inputTokens': json['inputTokens'],
125
+ 'outputTokens': json['outputTokens'],
126
+ 'costUsd': json['costUsd'],
127
+ 'description': json['description'],
128
+ 'revisesDiagramId': json['revisesDiagramId'],
129
+ 'title': json['title'],
130
+ 'effort': json['effort'],
131
+ 'brief': json['brief'],
132
+ 'document': json['document'],
133
+ 'parent': (0, AdminConceptMediaRevision_1.AdminConceptMediaRevisionFromJSON)(json['parent']),
134
+ 'revisions': (json['revisions'].map(AdminConceptMediaRevision_1.AdminConceptMediaRevisionFromJSON)),
135
+ 'history': (json['history'].map(AdminConceptMediaHistoryEntry_1.AdminConceptMediaHistoryEntryFromJSON)),
136
+ 'historyTruncated': json['historyTruncated'],
137
+ 'hiddenVersionIds': json['hiddenVersionIds'],
138
+ 'hiddenVersionsTruncated': json['hiddenVersionsTruncated'],
139
+ };
140
+ }
141
+ function AdminShownConceptDiagramToJSON(json) {
142
+ return AdminShownConceptDiagramToJSONTyped(json, false);
143
+ }
144
+ function AdminShownConceptDiagramToJSONTyped(value, ignoreDiscriminator = false) {
145
+ if (value == null) {
146
+ return value;
147
+ }
148
+ return {
149
+ 'id': value['id'],
150
+ 'concept': (0, AdminConceptMediaConcept_1.AdminConceptMediaConceptToJSON)(value['concept']),
151
+ 'state': value['state'],
152
+ 'origin': value['origin'],
153
+ 'creator': (0, AdminConceptMediaActor_1.AdminConceptMediaActorToJSON)(value['creator']),
154
+ 'creatorOutsideAccount': value['creatorOutsideAccount'],
155
+ 'sourceChatId': value['sourceChatId'],
156
+ 'createdAt': value['createdAt'].toISOString(),
157
+ 'hiddenAt': value['hiddenAt'] == null ? value['hiddenAt'] : value['hiddenAt'].toISOString(),
158
+ 'hiddenBy': (0, AdminConceptMediaActor_1.AdminConceptMediaActorToJSON)(value['hiddenBy']),
159
+ 'deletedAt': value['deletedAt'] == null ? value['deletedAt'] : value['deletedAt'].toISOString(),
160
+ 'deletedBy': (0, AdminConceptMediaActor_1.AdminConceptMediaActorToJSON)(value['deletedBy']),
161
+ 'model': value['model'],
162
+ 'inputTokens': value['inputTokens'],
163
+ 'outputTokens': value['outputTokens'],
164
+ 'costUsd': value['costUsd'],
165
+ 'description': value['description'],
166
+ 'revisesDiagramId': value['revisesDiagramId'],
167
+ 'title': value['title'],
168
+ 'effort': value['effort'],
169
+ 'brief': value['brief'],
170
+ 'document': value['document'],
171
+ 'parent': (0, AdminConceptMediaRevision_1.AdminConceptMediaRevisionToJSON)(value['parent']),
172
+ 'revisions': (value['revisions'].map(AdminConceptMediaRevision_1.AdminConceptMediaRevisionToJSON)),
173
+ 'history': (value['history'].map(AdminConceptMediaHistoryEntry_1.AdminConceptMediaHistoryEntryToJSON)),
174
+ 'historyTruncated': value['historyTruncated'],
175
+ 'hiddenVersionIds': value['hiddenVersionIds'],
176
+ 'hiddenVersionsTruncated': value['hiddenVersionsTruncated'],
177
+ };
178
+ }
@@ -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,190 @@
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.AdminShownConceptImageOriginEnum = exports.AdminShownConceptImageStateEnum = void 0;
17
+ exports.instanceOfAdminShownConceptImage = instanceOfAdminShownConceptImage;
18
+ exports.AdminShownConceptImageFromJSON = AdminShownConceptImageFromJSON;
19
+ exports.AdminShownConceptImageFromJSONTyped = AdminShownConceptImageFromJSONTyped;
20
+ exports.AdminShownConceptImageToJSON = AdminShownConceptImageToJSON;
21
+ exports.AdminShownConceptImageToJSONTyped = AdminShownConceptImageToJSONTyped;
22
+ const AdminConceptMediaConcept_1 = require("./AdminConceptMediaConcept");
23
+ const AdminConceptMediaHistoryEntry_1 = require("./AdminConceptMediaHistoryEntry");
24
+ const AdminConceptMediaActor_1 = require("./AdminConceptMediaActor");
25
+ const AdminConceptMediaRevision_1 = require("./AdminConceptMediaRevision");
26
+ /**
27
+ * @export
28
+ */
29
+ exports.AdminShownConceptImageStateEnum = {
30
+ Visible: 'visible',
31
+ Hidden: 'hidden',
32
+ Deleted: 'deleted'
33
+ };
34
+ /**
35
+ * @export
36
+ */
37
+ exports.AdminShownConceptImageOriginEnum = {
38
+ Chat: 'chat',
39
+ Admin: 'admin'
40
+ };
41
+ /**
42
+ * Check if a given object implements the AdminShownConceptImage interface.
43
+ */
44
+ function instanceOfAdminShownConceptImage(value) {
45
+ if (!('id' in value) || value['id'] === undefined)
46
+ return false;
47
+ if (!('concept' in value) || value['concept'] === undefined)
48
+ return false;
49
+ if (!('state' in value) || value['state'] === undefined)
50
+ return false;
51
+ if (!('origin' in value) || value['origin'] === undefined)
52
+ return false;
53
+ if (!('creator' in value) || value['creator'] === undefined)
54
+ return false;
55
+ if (!('creatorOutsideAccount' in value) || value['creatorOutsideAccount'] === undefined)
56
+ return false;
57
+ if (!('sourceChatId' in value) || value['sourceChatId'] === undefined)
58
+ return false;
59
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
60
+ return false;
61
+ if (!('hiddenAt' in value) || value['hiddenAt'] === undefined)
62
+ return false;
63
+ if (!('hiddenBy' in value) || value['hiddenBy'] === undefined)
64
+ return false;
65
+ if (!('deletedAt' in value) || value['deletedAt'] === undefined)
66
+ return false;
67
+ if (!('deletedBy' in value) || value['deletedBy'] === undefined)
68
+ return false;
69
+ if (!('model' in value) || value['model'] === undefined)
70
+ return false;
71
+ if (!('inputTokens' in value) || value['inputTokens'] === undefined)
72
+ return false;
73
+ if (!('outputTokens' in value) || value['outputTokens'] === undefined)
74
+ return false;
75
+ if (!('costUsd' in value) || value['costUsd'] === undefined)
76
+ return false;
77
+ if (!('description' in value) || value['description'] === undefined)
78
+ return false;
79
+ if (!('revisesImageId' in value) || value['revisesImageId'] === undefined)
80
+ return false;
81
+ if (!('quality' in value) || value['quality'] === undefined)
82
+ return false;
83
+ if (!('mimeType' in value) || value['mimeType'] === undefined)
84
+ return false;
85
+ if (!('width' in value) || value['width'] === undefined)
86
+ return false;
87
+ if (!('height' in value) || value['height'] === undefined)
88
+ return false;
89
+ if (!('url' in value) || value['url'] === undefined)
90
+ return false;
91
+ if (!('prompt' in value) || value['prompt'] === undefined)
92
+ return false;
93
+ if (!('modelPrompt' in value) || value['modelPrompt'] === undefined)
94
+ return false;
95
+ if (!('parent' in value) || value['parent'] === undefined)
96
+ return false;
97
+ if (!('revisions' in value) || value['revisions'] === undefined)
98
+ return false;
99
+ if (!('history' in value) || value['history'] === undefined)
100
+ return false;
101
+ if (!('historyTruncated' in value) || value['historyTruncated'] === undefined)
102
+ return false;
103
+ if (!('hiddenVersionIds' in value) || value['hiddenVersionIds'] === undefined)
104
+ return false;
105
+ if (!('hiddenVersionsTruncated' in value) || value['hiddenVersionsTruncated'] === undefined)
106
+ return false;
107
+ return true;
108
+ }
109
+ function AdminShownConceptImageFromJSON(json) {
110
+ return AdminShownConceptImageFromJSONTyped(json, false);
111
+ }
112
+ function AdminShownConceptImageFromJSONTyped(json, ignoreDiscriminator) {
113
+ if (json == null) {
114
+ return json;
115
+ }
116
+ return {
117
+ 'id': json['id'],
118
+ 'concept': (0, AdminConceptMediaConcept_1.AdminConceptMediaConceptFromJSON)(json['concept']),
119
+ 'state': json['state'],
120
+ 'origin': json['origin'],
121
+ 'creator': (0, AdminConceptMediaActor_1.AdminConceptMediaActorFromJSON)(json['creator']),
122
+ 'creatorOutsideAccount': json['creatorOutsideAccount'],
123
+ 'sourceChatId': json['sourceChatId'],
124
+ 'createdAt': (new Date(json['createdAt'])),
125
+ 'hiddenAt': (json['hiddenAt'] == null ? null : new Date(json['hiddenAt'])),
126
+ 'hiddenBy': (0, AdminConceptMediaActor_1.AdminConceptMediaActorFromJSON)(json['hiddenBy']),
127
+ 'deletedAt': (json['deletedAt'] == null ? null : new Date(json['deletedAt'])),
128
+ 'deletedBy': (0, AdminConceptMediaActor_1.AdminConceptMediaActorFromJSON)(json['deletedBy']),
129
+ 'model': json['model'],
130
+ 'inputTokens': json['inputTokens'],
131
+ 'outputTokens': json['outputTokens'],
132
+ 'costUsd': json['costUsd'],
133
+ 'description': json['description'],
134
+ 'revisesImageId': json['revisesImageId'],
135
+ 'quality': json['quality'],
136
+ 'mimeType': json['mimeType'],
137
+ 'width': json['width'],
138
+ 'height': json['height'],
139
+ 'url': json['url'],
140
+ 'prompt': json['prompt'],
141
+ 'modelPrompt': json['modelPrompt'],
142
+ 'parent': (0, AdminConceptMediaRevision_1.AdminConceptMediaRevisionFromJSON)(json['parent']),
143
+ 'revisions': (json['revisions'].map(AdminConceptMediaRevision_1.AdminConceptMediaRevisionFromJSON)),
144
+ 'history': (json['history'].map(AdminConceptMediaHistoryEntry_1.AdminConceptMediaHistoryEntryFromJSON)),
145
+ 'historyTruncated': json['historyTruncated'],
146
+ 'hiddenVersionIds': json['hiddenVersionIds'],
147
+ 'hiddenVersionsTruncated': json['hiddenVersionsTruncated'],
148
+ };
149
+ }
150
+ function AdminShownConceptImageToJSON(json) {
151
+ return AdminShownConceptImageToJSONTyped(json, false);
152
+ }
153
+ function AdminShownConceptImageToJSONTyped(value, ignoreDiscriminator = false) {
154
+ if (value == null) {
155
+ return value;
156
+ }
157
+ return {
158
+ 'id': value['id'],
159
+ 'concept': (0, AdminConceptMediaConcept_1.AdminConceptMediaConceptToJSON)(value['concept']),
160
+ 'state': value['state'],
161
+ 'origin': value['origin'],
162
+ 'creator': (0, AdminConceptMediaActor_1.AdminConceptMediaActorToJSON)(value['creator']),
163
+ 'creatorOutsideAccount': value['creatorOutsideAccount'],
164
+ 'sourceChatId': value['sourceChatId'],
165
+ 'createdAt': value['createdAt'].toISOString(),
166
+ 'hiddenAt': value['hiddenAt'] == null ? value['hiddenAt'] : value['hiddenAt'].toISOString(),
167
+ 'hiddenBy': (0, AdminConceptMediaActor_1.AdminConceptMediaActorToJSON)(value['hiddenBy']),
168
+ 'deletedAt': value['deletedAt'] == null ? value['deletedAt'] : value['deletedAt'].toISOString(),
169
+ 'deletedBy': (0, AdminConceptMediaActor_1.AdminConceptMediaActorToJSON)(value['deletedBy']),
170
+ 'model': value['model'],
171
+ 'inputTokens': value['inputTokens'],
172
+ 'outputTokens': value['outputTokens'],
173
+ 'costUsd': value['costUsd'],
174
+ 'description': value['description'],
175
+ 'revisesImageId': value['revisesImageId'],
176
+ 'quality': value['quality'],
177
+ 'mimeType': value['mimeType'],
178
+ 'width': value['width'],
179
+ 'height': value['height'],
180
+ 'url': value['url'],
181
+ 'prompt': value['prompt'],
182
+ 'modelPrompt': value['modelPrompt'],
183
+ 'parent': (0, AdminConceptMediaRevision_1.AdminConceptMediaRevisionToJSON)(value['parent']),
184
+ 'revisions': (value['revisions'].map(AdminConceptMediaRevision_1.AdminConceptMediaRevisionToJSON)),
185
+ 'history': (value['history'].map(AdminConceptMediaHistoryEntry_1.AdminConceptMediaHistoryEntryToJSON)),
186
+ 'historyTruncated': value['historyTruncated'],
187
+ 'hiddenVersionIds': value['hiddenVersionIds'],
188
+ 'hiddenVersionsTruncated': value['hiddenVersionsTruncated'],
189
+ };
190
+ }
@@ -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';