@instructure/athena-api-client 1.0.12 → 1.0.13-rc.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 (38) hide show
  1. package/README.md +12 -0
  2. package/dist/apis/AdminApi.d.ts +92 -0
  3. package/dist/apis/AdminApi.js +271 -0
  4. package/dist/apis/index.d.ts +1 -0
  5. package/dist/apis/index.js +1 -0
  6. package/dist/esm/apis/AdminApi.d.ts +92 -0
  7. package/dist/esm/apis/AdminApi.js +267 -0
  8. package/dist/esm/apis/index.d.ts +1 -0
  9. package/dist/esm/apis/index.js +1 -0
  10. package/dist/esm/models/AdminChat.d.ts +112 -0
  11. package/dist/esm/models/AdminChat.js +98 -0
  12. package/dist/esm/models/AdminChatAnalysis.d.ts +68 -0
  13. package/dist/esm/models/AdminChatAnalysis.js +67 -0
  14. package/dist/esm/models/AdminChatWithStats.d.ts +62 -0
  15. package/dist/esm/models/AdminChatWithStats.js +63 -0
  16. package/dist/esm/models/AdminPaginatedChats.d.ts +39 -0
  17. package/dist/esm/models/AdminPaginatedChats.js +48 -0
  18. package/dist/esm/models/AdminStreak.d.ts +62 -0
  19. package/dist/esm/models/AdminStreak.js +63 -0
  20. package/dist/esm/models/AdminUserEngagement.d.ts +38 -0
  21. package/dist/esm/models/AdminUserEngagement.js +47 -0
  22. package/dist/esm/models/index.d.ts +6 -0
  23. package/dist/esm/models/index.js +6 -0
  24. package/dist/models/AdminChat.d.ts +112 -0
  25. package/dist/models/AdminChat.js +106 -0
  26. package/dist/models/AdminChatAnalysis.d.ts +68 -0
  27. package/dist/models/AdminChatAnalysis.js +74 -0
  28. package/dist/models/AdminChatWithStats.d.ts +62 -0
  29. package/dist/models/AdminChatWithStats.js +70 -0
  30. package/dist/models/AdminPaginatedChats.d.ts +39 -0
  31. package/dist/models/AdminPaginatedChats.js +55 -0
  32. package/dist/models/AdminStreak.d.ts +62 -0
  33. package/dist/models/AdminStreak.js +70 -0
  34. package/dist/models/AdminUserEngagement.d.ts +38 -0
  35. package/dist/models/AdminUserEngagement.js +54 -0
  36. package/dist/models/index.d.ts +6 -0
  37. package/dist/models/index.js +6 -0
  38. package/package.json +1 -1
@@ -0,0 +1,267 @@
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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import * as runtime from '../runtime';
24
+ import { AdminChatFromJSON, AdminChatAnalysisFromJSON, AdminChatWithStatsFromJSON, AdminPaginatedChatsFromJSON, AdminStreakFromJSON, AdminUserEngagementFromJSON, } from '../models/index';
25
+ /**
26
+ *
27
+ */
28
+ export class AdminApi extends runtime.BaseAPI {
29
+ /**
30
+ * Get any chat by ID within the account
31
+ */
32
+ adminGetChatRaw(requestParameters, initOverrides) {
33
+ return __awaiter(this, void 0, void 0, function* () {
34
+ if (requestParameters['xUserId'] == null) {
35
+ throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling adminGetChat().');
36
+ }
37
+ if (requestParameters['chatId'] == null) {
38
+ throw new runtime.RequiredError('chatId', 'Required parameter "chatId" was null or undefined when calling adminGetChat().');
39
+ }
40
+ const queryParameters = {};
41
+ const headerParameters = {};
42
+ if (requestParameters['xUserId'] != null) {
43
+ headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
44
+ }
45
+ if (this.configuration && this.configuration.apiKey) {
46
+ headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
47
+ }
48
+ let urlPath = `/api/v1/admin/chats/{chatId}`;
49
+ urlPath = urlPath.replace(`{${"chatId"}}`, encodeURIComponent(String(requestParameters['chatId'])));
50
+ const response = yield this.request({
51
+ path: urlPath,
52
+ method: 'GET',
53
+ headers: headerParameters,
54
+ query: queryParameters,
55
+ }, initOverrides);
56
+ return new runtime.JSONApiResponse(response, (jsonValue) => AdminChatFromJSON(jsonValue));
57
+ });
58
+ }
59
+ /**
60
+ * Get any chat by ID within the account
61
+ */
62
+ adminGetChat(requestParameters, initOverrides) {
63
+ return __awaiter(this, void 0, void 0, function* () {
64
+ const response = yield this.adminGetChatRaw(requestParameters, initOverrides);
65
+ return yield response.value();
66
+ });
67
+ }
68
+ /**
69
+ * Get chat analysis for any chat within the account
70
+ */
71
+ adminGetChatAnalysisRaw(requestParameters, initOverrides) {
72
+ return __awaiter(this, void 0, void 0, function* () {
73
+ if (requestParameters['xUserId'] == null) {
74
+ throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling adminGetChatAnalysis().');
75
+ }
76
+ if (requestParameters['chatId'] == null) {
77
+ throw new runtime.RequiredError('chatId', 'Required parameter "chatId" was null or undefined when calling adminGetChatAnalysis().');
78
+ }
79
+ const queryParameters = {};
80
+ const headerParameters = {};
81
+ if (requestParameters['xUserId'] != null) {
82
+ headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
83
+ }
84
+ if (this.configuration && this.configuration.apiKey) {
85
+ headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
86
+ }
87
+ let urlPath = `/api/v1/admin/chats/{chatId}/analysis`;
88
+ urlPath = urlPath.replace(`{${"chatId"}}`, encodeURIComponent(String(requestParameters['chatId'])));
89
+ const response = yield this.request({
90
+ path: urlPath,
91
+ method: 'GET',
92
+ headers: headerParameters,
93
+ query: queryParameters,
94
+ }, initOverrides);
95
+ return new runtime.JSONApiResponse(response, (jsonValue) => AdminChatAnalysisFromJSON(jsonValue));
96
+ });
97
+ }
98
+ /**
99
+ * Get chat analysis for any chat within the account
100
+ */
101
+ adminGetChatAnalysis(requestParameters, initOverrides) {
102
+ return __awaiter(this, void 0, void 0, function* () {
103
+ const response = yield this.adminGetChatAnalysisRaw(requestParameters, initOverrides);
104
+ return yield response.value();
105
+ });
106
+ }
107
+ /**
108
+ * Get chats with stats for a user
109
+ */
110
+ adminGetUserChatsRaw(requestParameters, initOverrides) {
111
+ return __awaiter(this, void 0, void 0, function* () {
112
+ if (requestParameters['xUserId'] == null) {
113
+ throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling adminGetUserChats().');
114
+ }
115
+ if (requestParameters['externalId'] == null) {
116
+ throw new runtime.RequiredError('externalId', 'Required parameter "externalId" was null or undefined when calling adminGetUserChats().');
117
+ }
118
+ const queryParameters = {};
119
+ const headerParameters = {};
120
+ if (requestParameters['xUserId'] != null) {
121
+ headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
122
+ }
123
+ if (this.configuration && this.configuration.apiKey) {
124
+ headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
125
+ }
126
+ let urlPath = `/api/v1/admin/users/{externalId}/chats`;
127
+ urlPath = urlPath.replace(`{${"externalId"}}`, encodeURIComponent(String(requestParameters['externalId'])));
128
+ const response = yield this.request({
129
+ path: urlPath,
130
+ method: 'GET',
131
+ headers: headerParameters,
132
+ query: queryParameters,
133
+ }, initOverrides);
134
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(AdminChatWithStatsFromJSON));
135
+ });
136
+ }
137
+ /**
138
+ * Get chats with stats for a user
139
+ */
140
+ adminGetUserChats(requestParameters, initOverrides) {
141
+ return __awaiter(this, void 0, void 0, function* () {
142
+ const response = yield this.adminGetUserChatsRaw(requestParameters, initOverrides);
143
+ return yield response.value();
144
+ });
145
+ }
146
+ /**
147
+ * Get engagement dates for a user
148
+ */
149
+ adminGetUserEngagementRaw(requestParameters, initOverrides) {
150
+ return __awaiter(this, void 0, void 0, function* () {
151
+ if (requestParameters['xUserId'] == null) {
152
+ throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling adminGetUserEngagement().');
153
+ }
154
+ if (requestParameters['externalId'] == null) {
155
+ throw new runtime.RequiredError('externalId', 'Required parameter "externalId" was null or undefined when calling adminGetUserEngagement().');
156
+ }
157
+ const queryParameters = {};
158
+ const headerParameters = {};
159
+ if (requestParameters['xUserId'] != null) {
160
+ headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
161
+ }
162
+ if (this.configuration && this.configuration.apiKey) {
163
+ headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
164
+ }
165
+ let urlPath = `/api/v1/admin/users/{externalId}/engagement`;
166
+ urlPath = urlPath.replace(`{${"externalId"}}`, encodeURIComponent(String(requestParameters['externalId'])));
167
+ const response = yield this.request({
168
+ path: urlPath,
169
+ method: 'GET',
170
+ headers: headerParameters,
171
+ query: queryParameters,
172
+ }, initOverrides);
173
+ return new runtime.JSONApiResponse(response, (jsonValue) => AdminUserEngagementFromJSON(jsonValue));
174
+ });
175
+ }
176
+ /**
177
+ * Get engagement dates for a user
178
+ */
179
+ adminGetUserEngagement(requestParameters, initOverrides) {
180
+ return __awaiter(this, void 0, void 0, function* () {
181
+ const response = yield this.adminGetUserEngagementRaw(requestParameters, initOverrides);
182
+ return yield response.value();
183
+ });
184
+ }
185
+ /**
186
+ * List recent chats across all account users
187
+ */
188
+ adminListChatsRaw(requestParameters, initOverrides) {
189
+ return __awaiter(this, void 0, void 0, function* () {
190
+ if (requestParameters['xUserId'] == null) {
191
+ throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling adminListChats().');
192
+ }
193
+ const queryParameters = {};
194
+ if (requestParameters['limit'] != null) {
195
+ queryParameters['limit'] = requestParameters['limit'];
196
+ }
197
+ if (requestParameters['cursor'] != null) {
198
+ queryParameters['cursor'] = requestParameters['cursor'];
199
+ }
200
+ if (requestParameters['chatType'] != null) {
201
+ queryParameters['chatType'] = requestParameters['chatType'];
202
+ }
203
+ const headerParameters = {};
204
+ if (requestParameters['xUserId'] != null) {
205
+ headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
206
+ }
207
+ if (this.configuration && this.configuration.apiKey) {
208
+ headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
209
+ }
210
+ let urlPath = `/api/v1/admin/chats`;
211
+ const response = yield this.request({
212
+ path: urlPath,
213
+ method: 'GET',
214
+ headers: headerParameters,
215
+ query: queryParameters,
216
+ }, initOverrides);
217
+ return new runtime.JSONApiResponse(response, (jsonValue) => AdminPaginatedChatsFromJSON(jsonValue));
218
+ });
219
+ }
220
+ /**
221
+ * List recent chats across all account users
222
+ */
223
+ adminListChats(requestParameters, initOverrides) {
224
+ return __awaiter(this, void 0, void 0, function* () {
225
+ const response = yield this.adminListChatsRaw(requestParameters, initOverrides);
226
+ return yield response.value();
227
+ });
228
+ }
229
+ /**
230
+ * List top N streaks across the account
231
+ */
232
+ adminListTopStreaksRaw(requestParameters, initOverrides) {
233
+ return __awaiter(this, void 0, void 0, function* () {
234
+ if (requestParameters['xUserId'] == null) {
235
+ throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling adminListTopStreaks().');
236
+ }
237
+ const queryParameters = {};
238
+ if (requestParameters['limit'] != null) {
239
+ queryParameters['limit'] = requestParameters['limit'];
240
+ }
241
+ const headerParameters = {};
242
+ if (requestParameters['xUserId'] != null) {
243
+ headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
244
+ }
245
+ if (this.configuration && this.configuration.apiKey) {
246
+ headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
247
+ }
248
+ let urlPath = `/api/v1/admin/streaks`;
249
+ const response = yield this.request({
250
+ path: urlPath,
251
+ method: 'GET',
252
+ headers: headerParameters,
253
+ query: queryParameters,
254
+ }, initOverrides);
255
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(AdminStreakFromJSON));
256
+ });
257
+ }
258
+ /**
259
+ * List top N streaks across the account
260
+ */
261
+ adminListTopStreaks(requestParameters, initOverrides) {
262
+ return __awaiter(this, void 0, void 0, function* () {
263
+ const response = yield this.adminListTopStreaksRaw(requestParameters, initOverrides);
264
+ return yield response.value();
265
+ });
266
+ }
267
+ }
@@ -1,4 +1,5 @@
1
1
  export * from './AccountsApi';
2
+ export * from './AdminApi';
2
3
  export * from './ChatAnalysisApi';
3
4
  export * from './ChatsApi';
4
5
  export * from './FeatureOverridesApi';
@@ -1,6 +1,7 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export * from './AccountsApi';
4
+ export * from './AdminApi';
4
5
  export * from './ChatAnalysisApi';
5
6
  export * from './ChatsApi';
6
7
  export * from './FeatureOverridesApi';
@@ -0,0 +1,112 @@
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
+ *
14
+ * @export
15
+ * @interface AdminChat
16
+ */
17
+ export interface AdminChat {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AdminChat
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {Date}
27
+ * @memberof AdminChat
28
+ */
29
+ createdAt: Date;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof AdminChat
34
+ */
35
+ title: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof AdminChat
40
+ */
41
+ chatType: string | null;
42
+ /**
43
+ *
44
+ * @type {Date}
45
+ * @memberof AdminChat
46
+ */
47
+ lastViewedAt: Date | null;
48
+ /**
49
+ * External user ID (externalId), null if not set
50
+ * @type {string}
51
+ * @memberof AdminChat
52
+ */
53
+ userId: string | null;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof AdminChat
58
+ */
59
+ visibility: AdminChatVisibilityEnum;
60
+ /**
61
+ *
62
+ * @type {string}
63
+ * @memberof AdminChat
64
+ */
65
+ subjectId: string | null;
66
+ /**
67
+ *
68
+ * @type {string}
69
+ * @memberof AdminChat
70
+ */
71
+ latestJobId: string | null;
72
+ /**
73
+ *
74
+ * @type {Date}
75
+ * @memberof AdminChat
76
+ */
77
+ analysisScheduledFor: Date | null;
78
+ /**
79
+ *
80
+ * @type {string}
81
+ * @memberof AdminChat
82
+ */
83
+ goal: string | null;
84
+ /**
85
+ *
86
+ * @type {boolean}
87
+ * @memberof AdminChat
88
+ */
89
+ goalAchieved: boolean | null;
90
+ /**
91
+ *
92
+ * @type {boolean}
93
+ * @memberof AdminChat
94
+ */
95
+ forReview: boolean;
96
+ }
97
+ /**
98
+ * @export
99
+ */
100
+ export declare const AdminChatVisibilityEnum: {
101
+ readonly Public: "public";
102
+ readonly Private: "private";
103
+ };
104
+ export type AdminChatVisibilityEnum = typeof AdminChatVisibilityEnum[keyof typeof AdminChatVisibilityEnum];
105
+ /**
106
+ * Check if a given object implements the AdminChat interface.
107
+ */
108
+ export declare function instanceOfAdminChat(value: object): value is AdminChat;
109
+ export declare function AdminChatFromJSON(json: any): AdminChat;
110
+ export declare function AdminChatFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminChat;
111
+ export declare function AdminChatToJSON(json: any): AdminChat;
112
+ export declare function AdminChatToJSONTyped(value?: AdminChat | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,98 @@
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
+ /**
15
+ * @export
16
+ */
17
+ export const AdminChatVisibilityEnum = {
18
+ Public: 'public',
19
+ Private: 'private'
20
+ };
21
+ /**
22
+ * Check if a given object implements the AdminChat interface.
23
+ */
24
+ export function instanceOfAdminChat(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
28
+ return false;
29
+ if (!('title' in value) || value['title'] === undefined)
30
+ return false;
31
+ if (!('chatType' in value) || value['chatType'] === undefined)
32
+ return false;
33
+ if (!('lastViewedAt' in value) || value['lastViewedAt'] === undefined)
34
+ return false;
35
+ if (!('userId' in value) || value['userId'] === undefined)
36
+ return false;
37
+ if (!('visibility' in value) || value['visibility'] === undefined)
38
+ return false;
39
+ if (!('subjectId' in value) || value['subjectId'] === undefined)
40
+ return false;
41
+ if (!('latestJobId' in value) || value['latestJobId'] === undefined)
42
+ return false;
43
+ if (!('analysisScheduledFor' in value) || value['analysisScheduledFor'] === undefined)
44
+ return false;
45
+ if (!('goal' in value) || value['goal'] === undefined)
46
+ return false;
47
+ if (!('goalAchieved' in value) || value['goalAchieved'] === undefined)
48
+ return false;
49
+ if (!('forReview' in value) || value['forReview'] === undefined)
50
+ return false;
51
+ return true;
52
+ }
53
+ export function AdminChatFromJSON(json) {
54
+ return AdminChatFromJSONTyped(json, false);
55
+ }
56
+ export function AdminChatFromJSONTyped(json, ignoreDiscriminator) {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+ 'id': json['id'],
62
+ 'createdAt': (new Date(json['createdAt'])),
63
+ 'title': json['title'],
64
+ 'chatType': json['chatType'],
65
+ 'lastViewedAt': (json['lastViewedAt'] == null ? null : new Date(json['lastViewedAt'])),
66
+ 'userId': json['userId'],
67
+ 'visibility': json['visibility'],
68
+ 'subjectId': json['subjectId'],
69
+ 'latestJobId': json['latestJobId'],
70
+ 'analysisScheduledFor': (json['analysisScheduledFor'] == null ? null : new Date(json['analysisScheduledFor'])),
71
+ 'goal': json['goal'],
72
+ 'goalAchieved': json['goalAchieved'],
73
+ 'forReview': json['forReview'],
74
+ };
75
+ }
76
+ export function AdminChatToJSON(json) {
77
+ return AdminChatToJSONTyped(json, false);
78
+ }
79
+ export function AdminChatToJSONTyped(value, ignoreDiscriminator = false) {
80
+ if (value == null) {
81
+ return value;
82
+ }
83
+ return {
84
+ 'id': value['id'],
85
+ 'createdAt': value['createdAt'].toISOString(),
86
+ 'title': value['title'],
87
+ 'chatType': value['chatType'],
88
+ 'lastViewedAt': value['lastViewedAt'] == null ? value['lastViewedAt'] : value['lastViewedAt'].toISOString(),
89
+ 'userId': value['userId'],
90
+ 'visibility': value['visibility'],
91
+ 'subjectId': value['subjectId'],
92
+ 'latestJobId': value['latestJobId'],
93
+ 'analysisScheduledFor': value['analysisScheduledFor'] == null ? value['analysisScheduledFor'] : value['analysisScheduledFor'].toISOString(),
94
+ 'goal': value['goal'],
95
+ 'goalAchieved': value['goalAchieved'],
96
+ 'forReview': value['forReview'],
97
+ };
98
+ }
@@ -0,0 +1,68 @@
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
+ *
14
+ * @export
15
+ * @interface AdminChatAnalysis
16
+ */
17
+ export interface AdminChatAnalysis {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AdminChatAnalysis
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof AdminChatAnalysis
28
+ */
29
+ title: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof AdminChatAnalysis
34
+ */
35
+ goal: string | null;
36
+ /**
37
+ *
38
+ * @type {boolean}
39
+ * @memberof AdminChatAnalysis
40
+ */
41
+ goalAchieved: boolean | null;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof AdminChatAnalysis
46
+ */
47
+ subject: string | null;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof AdminChatAnalysis
52
+ */
53
+ summary: string | null;
54
+ /**
55
+ *
56
+ * @type {Array<string>}
57
+ * @memberof AdminChatAnalysis
58
+ */
59
+ concepts: Array<string>;
60
+ }
61
+ /**
62
+ * Check if a given object implements the AdminChatAnalysis interface.
63
+ */
64
+ export declare function instanceOfAdminChatAnalysis(value: object): value is AdminChatAnalysis;
65
+ export declare function AdminChatAnalysisFromJSON(json: any): AdminChatAnalysis;
66
+ export declare function AdminChatAnalysisFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminChatAnalysis;
67
+ export declare function AdminChatAnalysisToJSON(json: any): AdminChatAnalysis;
68
+ export declare function AdminChatAnalysisToJSONTyped(value?: AdminChatAnalysis | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,67 @@
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
+ /**
15
+ * Check if a given object implements the AdminChatAnalysis interface.
16
+ */
17
+ export function instanceOfAdminChatAnalysis(value) {
18
+ if (!('id' in value) || value['id'] === undefined)
19
+ return false;
20
+ if (!('title' in value) || value['title'] === undefined)
21
+ return false;
22
+ if (!('goal' in value) || value['goal'] === undefined)
23
+ return false;
24
+ if (!('goalAchieved' in value) || value['goalAchieved'] === undefined)
25
+ return false;
26
+ if (!('subject' in value) || value['subject'] === undefined)
27
+ return false;
28
+ if (!('summary' in value) || value['summary'] === undefined)
29
+ return false;
30
+ if (!('concepts' in value) || value['concepts'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ export function AdminChatAnalysisFromJSON(json) {
35
+ return AdminChatAnalysisFromJSONTyped(json, false);
36
+ }
37
+ export function AdminChatAnalysisFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'id': json['id'],
43
+ 'title': json['title'],
44
+ 'goal': json['goal'],
45
+ 'goalAchieved': json['goalAchieved'],
46
+ 'subject': json['subject'],
47
+ 'summary': json['summary'],
48
+ 'concepts': json['concepts'],
49
+ };
50
+ }
51
+ export function AdminChatAnalysisToJSON(json) {
52
+ return AdminChatAnalysisToJSONTyped(json, false);
53
+ }
54
+ export function AdminChatAnalysisToJSONTyped(value, ignoreDiscriminator = false) {
55
+ if (value == null) {
56
+ return value;
57
+ }
58
+ return {
59
+ 'id': value['id'],
60
+ 'title': value['title'],
61
+ 'goal': value['goal'],
62
+ 'goalAchieved': value['goalAchieved'],
63
+ 'subject': value['subject'],
64
+ 'summary': value['summary'],
65
+ 'concepts': value['concepts'],
66
+ };
67
+ }
@@ -0,0 +1,62 @@
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
+ *
14
+ * @export
15
+ * @interface AdminChatWithStats
16
+ */
17
+ export interface AdminChatWithStats {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AdminChatWithStats
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof AdminChatWithStats
28
+ */
29
+ title: string;
30
+ /**
31
+ *
32
+ * @type {Date}
33
+ * @memberof AdminChatWithStats
34
+ */
35
+ createdAt: Date;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof AdminChatWithStats
40
+ */
41
+ messageCount: number;
42
+ /**
43
+ *
44
+ * @type {Date}
45
+ * @memberof AdminChatWithStats
46
+ */
47
+ lastMessageAt: Date | null;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof AdminChatWithStats
52
+ */
53
+ subjectName: string | null;
54
+ }
55
+ /**
56
+ * Check if a given object implements the AdminChatWithStats interface.
57
+ */
58
+ export declare function instanceOfAdminChatWithStats(value: object): value is AdminChatWithStats;
59
+ export declare function AdminChatWithStatsFromJSON(json: any): AdminChatWithStats;
60
+ export declare function AdminChatWithStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminChatWithStats;
61
+ export declare function AdminChatWithStatsToJSON(json: any): AdminChatWithStats;
62
+ export declare function AdminChatWithStatsToJSONTyped(value?: AdminChatWithStats | null, ignoreDiscriminator?: boolean): any;