@instructure/athena-api-client 1.0.11 → 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.
- package/README.md +18 -0
- package/dist/apis/AdminApi.d.ts +92 -0
- package/dist/apis/AdminApi.js +271 -0
- package/dist/apis/ChatAnalysisApi.d.ts +32 -0
- package/dist/apis/ChatAnalysisApi.js +74 -0
- package/dist/apis/UserContextApi.d.ts +45 -0
- package/dist/apis/UserContextApi.js +112 -0
- package/dist/apis/index.d.ts +3 -0
- package/dist/apis/index.js +3 -0
- package/dist/esm/apis/AdminApi.d.ts +92 -0
- package/dist/esm/apis/AdminApi.js +267 -0
- package/dist/esm/apis/ChatAnalysisApi.d.ts +32 -0
- package/dist/esm/apis/ChatAnalysisApi.js +70 -0
- package/dist/esm/apis/UserContextApi.d.ts +45 -0
- package/dist/esm/apis/UserContextApi.js +108 -0
- package/dist/esm/apis/index.d.ts +3 -0
- package/dist/esm/apis/index.js +3 -0
- package/dist/esm/models/AdminChat.d.ts +112 -0
- package/dist/esm/models/AdminChat.js +98 -0
- package/dist/esm/models/AdminChatAnalysis.d.ts +68 -0
- package/dist/esm/models/AdminChatAnalysis.js +67 -0
- package/dist/esm/models/AdminChatWithStats.d.ts +62 -0
- package/dist/esm/models/AdminChatWithStats.js +63 -0
- package/dist/esm/models/AdminPaginatedChats.d.ts +39 -0
- package/dist/esm/models/AdminPaginatedChats.js +48 -0
- package/dist/esm/models/AdminStreak.d.ts +62 -0
- package/dist/esm/models/AdminStreak.js +63 -0
- package/dist/esm/models/AdminUserEngagement.d.ts +38 -0
- package/dist/esm/models/AdminUserEngagement.js +47 -0
- package/dist/esm/models/ChatAnalysis.d.ts +68 -0
- package/dist/esm/models/ChatAnalysis.js +67 -0
- package/dist/esm/models/UpsertUserContextRequest.d.ts +56 -0
- package/dist/esm/models/UpsertUserContextRequest.js +49 -0
- package/dist/esm/models/UserContext.d.ts +80 -0
- package/dist/esm/models/UserContext.js +75 -0
- package/dist/esm/models/index.d.ts +9 -0
- package/dist/esm/models/index.js +9 -0
- package/dist/models/AdminChat.d.ts +112 -0
- package/dist/models/AdminChat.js +106 -0
- package/dist/models/AdminChatAnalysis.d.ts +68 -0
- package/dist/models/AdminChatAnalysis.js +74 -0
- package/dist/models/AdminChatWithStats.d.ts +62 -0
- package/dist/models/AdminChatWithStats.js +70 -0
- package/dist/models/AdminPaginatedChats.d.ts +39 -0
- package/dist/models/AdminPaginatedChats.js +55 -0
- package/dist/models/AdminStreak.d.ts +62 -0
- package/dist/models/AdminStreak.js +70 -0
- package/dist/models/AdminUserEngagement.d.ts +38 -0
- package/dist/models/AdminUserEngagement.js +54 -0
- package/dist/models/ChatAnalysis.d.ts +68 -0
- package/dist/models/ChatAnalysis.js +74 -0
- package/dist/models/UpsertUserContextRequest.d.ts +56 -0
- package/dist/models/UpsertUserContextRequest.js +56 -0
- package/dist/models/UserContext.d.ts +80 -0
- package/dist/models/UserContext.js +82 -0
- package/dist/models/index.d.ts +9 -0
- package/dist/models/index.js +9 -0
- package/package.json +1 -1
|
@@ -0,0 +1,48 @@
|
|
|
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 { AdminChatFromJSON, AdminChatToJSON, } from './AdminChat';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the AdminPaginatedChats interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfAdminPaginatedChats(value) {
|
|
19
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('nextCursor' in value) || value['nextCursor'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function AdminPaginatedChatsFromJSON(json) {
|
|
26
|
+
return AdminPaginatedChatsFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function AdminPaginatedChatsFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'data': (json['data'].map(AdminChatFromJSON)),
|
|
34
|
+
'nextCursor': json['nextCursor'],
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function AdminPaginatedChatsToJSON(json) {
|
|
38
|
+
return AdminPaginatedChatsToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function AdminPaginatedChatsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'data': (value['data'].map(AdminChatToJSON)),
|
|
46
|
+
'nextCursor': value['nextCursor'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -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 AdminStreak
|
|
16
|
+
*/
|
|
17
|
+
export interface AdminStreak {
|
|
18
|
+
/**
|
|
19
|
+
* External user ID
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AdminStreak
|
|
22
|
+
*/
|
|
23
|
+
userId: string | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof AdminStreak
|
|
28
|
+
*/
|
|
29
|
+
currentDays: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof AdminStreak
|
|
34
|
+
*/
|
|
35
|
+
longestDays: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof AdminStreak
|
|
40
|
+
*/
|
|
41
|
+
totalMissedDays: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Array<number>}
|
|
45
|
+
* @memberof AdminStreak
|
|
46
|
+
*/
|
|
47
|
+
missedDaysInCycle: Array<number>;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Date}
|
|
51
|
+
* @memberof AdminStreak
|
|
52
|
+
*/
|
|
53
|
+
lastMomentDate: Date | null;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the AdminStreak interface.
|
|
57
|
+
*/
|
|
58
|
+
export declare function instanceOfAdminStreak(value: object): value is AdminStreak;
|
|
59
|
+
export declare function AdminStreakFromJSON(json: any): AdminStreak;
|
|
60
|
+
export declare function AdminStreakFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminStreak;
|
|
61
|
+
export declare function AdminStreakToJSON(json: any): AdminStreak;
|
|
62
|
+
export declare function AdminStreakToJSONTyped(value?: AdminStreak | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
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 AdminStreak interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfAdminStreak(value) {
|
|
18
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('currentDays' in value) || value['currentDays'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('longestDays' in value) || value['longestDays'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('totalMissedDays' in value) || value['totalMissedDays'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('missedDaysInCycle' in value) || value['missedDaysInCycle'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('lastMomentDate' in value) || value['lastMomentDate'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
export function AdminStreakFromJSON(json) {
|
|
33
|
+
return AdminStreakFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function AdminStreakFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'userId': json['userId'],
|
|
41
|
+
'currentDays': json['currentDays'],
|
|
42
|
+
'longestDays': json['longestDays'],
|
|
43
|
+
'totalMissedDays': json['totalMissedDays'],
|
|
44
|
+
'missedDaysInCycle': json['missedDaysInCycle'],
|
|
45
|
+
'lastMomentDate': (json['lastMomentDate'] == null ? null : new Date(json['lastMomentDate'])),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
export function AdminStreakToJSON(json) {
|
|
49
|
+
return AdminStreakToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
export function AdminStreakToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'userId': value['userId'],
|
|
57
|
+
'currentDays': value['currentDays'],
|
|
58
|
+
'longestDays': value['longestDays'],
|
|
59
|
+
'totalMissedDays': value['totalMissedDays'],
|
|
60
|
+
'missedDaysInCycle': value['missedDaysInCycle'],
|
|
61
|
+
'lastMomentDate': value['lastMomentDate'] == null ? value['lastMomentDate'] : value['lastMomentDate'].toISOString().substring(0, 10),
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 AdminUserEngagement
|
|
16
|
+
*/
|
|
17
|
+
export interface AdminUserEngagement {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Date}
|
|
21
|
+
* @memberof AdminUserEngagement
|
|
22
|
+
*/
|
|
23
|
+
lastViewedChatAt: Date | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Date}
|
|
27
|
+
* @memberof AdminUserEngagement
|
|
28
|
+
*/
|
|
29
|
+
lastMessageCreatedAt: Date | null;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the AdminUserEngagement interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfAdminUserEngagement(value: object): value is AdminUserEngagement;
|
|
35
|
+
export declare function AdminUserEngagementFromJSON(json: any): AdminUserEngagement;
|
|
36
|
+
export declare function AdminUserEngagementFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminUserEngagement;
|
|
37
|
+
export declare function AdminUserEngagementToJSON(json: any): AdminUserEngagement;
|
|
38
|
+
export declare function AdminUserEngagementToJSONTyped(value?: AdminUserEngagement | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
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 AdminUserEngagement interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfAdminUserEngagement(value) {
|
|
18
|
+
if (!('lastViewedChatAt' in value) || value['lastViewedChatAt'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('lastMessageCreatedAt' in value) || value['lastMessageCreatedAt'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function AdminUserEngagementFromJSON(json) {
|
|
25
|
+
return AdminUserEngagementFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function AdminUserEngagementFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'lastViewedChatAt': (json['lastViewedChatAt'] == null ? null : new Date(json['lastViewedChatAt'])),
|
|
33
|
+
'lastMessageCreatedAt': (json['lastMessageCreatedAt'] == null ? null : new Date(json['lastMessageCreatedAt'])),
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function AdminUserEngagementToJSON(json) {
|
|
37
|
+
return AdminUserEngagementToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function AdminUserEngagementToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'lastViewedChatAt': value['lastViewedChatAt'] == null ? value['lastViewedChatAt'] : value['lastViewedChatAt'].toISOString(),
|
|
45
|
+
'lastMessageCreatedAt': value['lastMessageCreatedAt'] == null ? value['lastMessageCreatedAt'] : value['lastMessageCreatedAt'].toISOString(),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -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 ChatAnalysis
|
|
16
|
+
*/
|
|
17
|
+
export interface ChatAnalysis {
|
|
18
|
+
/**
|
|
19
|
+
* Chat identifier
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ChatAnalysis
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* Chat title
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ChatAnalysis
|
|
28
|
+
*/
|
|
29
|
+
title: string;
|
|
30
|
+
/**
|
|
31
|
+
* AI-generated summary of the chat
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ChatAnalysis
|
|
34
|
+
*/
|
|
35
|
+
summary: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* Inferred goal of the chat
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ChatAnalysis
|
|
40
|
+
*/
|
|
41
|
+
goal: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* Whether the goal was achieved
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof ChatAnalysis
|
|
46
|
+
*/
|
|
47
|
+
goalAchieved: boolean | null;
|
|
48
|
+
/**
|
|
49
|
+
* Subject name associated with the chat
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof ChatAnalysis
|
|
52
|
+
*/
|
|
53
|
+
subject: string | null;
|
|
54
|
+
/**
|
|
55
|
+
* Concept names extracted from the chat
|
|
56
|
+
* @type {Array<string>}
|
|
57
|
+
* @memberof ChatAnalysis
|
|
58
|
+
*/
|
|
59
|
+
concepts: Array<string>;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the ChatAnalysis interface.
|
|
63
|
+
*/
|
|
64
|
+
export declare function instanceOfChatAnalysis(value: object): value is ChatAnalysis;
|
|
65
|
+
export declare function ChatAnalysisFromJSON(json: any): ChatAnalysis;
|
|
66
|
+
export declare function ChatAnalysisFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatAnalysis;
|
|
67
|
+
export declare function ChatAnalysisToJSON(json: any): ChatAnalysis;
|
|
68
|
+
export declare function ChatAnalysisToJSONTyped(value?: ChatAnalysis | 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 ChatAnalysis interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfChatAnalysis(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 (!('summary' in value) || value['summary'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('goal' in value) || value['goal'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('goalAchieved' in value) || value['goalAchieved'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('subject' in value) || value['subject'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('concepts' in value) || value['concepts'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
export function ChatAnalysisFromJSON(json) {
|
|
35
|
+
return ChatAnalysisFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function ChatAnalysisFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'id': json['id'],
|
|
43
|
+
'title': json['title'],
|
|
44
|
+
'summary': json['summary'],
|
|
45
|
+
'goal': json['goal'],
|
|
46
|
+
'goalAchieved': json['goalAchieved'],
|
|
47
|
+
'subject': json['subject'],
|
|
48
|
+
'concepts': json['concepts'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
export function ChatAnalysisToJSON(json) {
|
|
52
|
+
return ChatAnalysisToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
export function ChatAnalysisToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'id': value['id'],
|
|
60
|
+
'title': value['title'],
|
|
61
|
+
'summary': value['summary'],
|
|
62
|
+
'goal': value['goal'],
|
|
63
|
+
'goalAchieved': value['goalAchieved'],
|
|
64
|
+
'subject': value['subject'],
|
|
65
|
+
'concepts': value['concepts'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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 UpsertUserContextRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface UpsertUserContextRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UpsertUserContextRequest
|
|
22
|
+
*/
|
|
23
|
+
chatId?: string | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof UpsertUserContextRequest
|
|
28
|
+
*/
|
|
29
|
+
preferredName?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UpsertUserContextRequest
|
|
34
|
+
*/
|
|
35
|
+
summary?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof UpsertUserContextRequest
|
|
40
|
+
*/
|
|
41
|
+
courses?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof UpsertUserContextRequest
|
|
46
|
+
*/
|
|
47
|
+
topicsOfInterest?: string | null;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the UpsertUserContextRequest interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfUpsertUserContextRequest(value: object): value is UpsertUserContextRequest;
|
|
53
|
+
export declare function UpsertUserContextRequestFromJSON(json: any): UpsertUserContextRequest;
|
|
54
|
+
export declare function UpsertUserContextRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpsertUserContextRequest;
|
|
55
|
+
export declare function UpsertUserContextRequestToJSON(json: any): UpsertUserContextRequest;
|
|
56
|
+
export declare function UpsertUserContextRequestToJSONTyped(value?: UpsertUserContextRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
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 UpsertUserContextRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfUpsertUserContextRequest(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function UpsertUserContextRequestFromJSON(json) {
|
|
21
|
+
return UpsertUserContextRequestFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function UpsertUserContextRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'chatId': json['chatId'] == null ? undefined : json['chatId'],
|
|
29
|
+
'preferredName': json['preferredName'] == null ? undefined : json['preferredName'],
|
|
30
|
+
'summary': json['summary'] == null ? undefined : json['summary'],
|
|
31
|
+
'courses': json['courses'] == null ? undefined : json['courses'],
|
|
32
|
+
'topicsOfInterest': json['topicsOfInterest'] == null ? undefined : json['topicsOfInterest'],
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export function UpsertUserContextRequestToJSON(json) {
|
|
36
|
+
return UpsertUserContextRequestToJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
export function UpsertUserContextRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
39
|
+
if (value == null) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'chatId': value['chatId'],
|
|
44
|
+
'preferredName': value['preferredName'],
|
|
45
|
+
'summary': value['summary'],
|
|
46
|
+
'courses': value['courses'],
|
|
47
|
+
'topicsOfInterest': value['topicsOfInterest'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
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 UserContext
|
|
16
|
+
*/
|
|
17
|
+
export interface UserContext {
|
|
18
|
+
/**
|
|
19
|
+
* Unique identifier
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UserContext
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* External user ID (matches the X-User-Id header value)
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof UserContext
|
|
28
|
+
*/
|
|
29
|
+
userId: string;
|
|
30
|
+
/**
|
|
31
|
+
* Chat ID that generated this context (e.g. onboarding chat)
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UserContext
|
|
34
|
+
*/
|
|
35
|
+
chatId: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* User's preferred name
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof UserContext
|
|
40
|
+
*/
|
|
41
|
+
preferredName: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* Summary of user preferences and background
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof UserContext
|
|
46
|
+
*/
|
|
47
|
+
summary: string | null;
|
|
48
|
+
/**
|
|
49
|
+
* User's courses
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof UserContext
|
|
52
|
+
*/
|
|
53
|
+
courses: string | null;
|
|
54
|
+
/**
|
|
55
|
+
* User's topics of interest
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof UserContext
|
|
58
|
+
*/
|
|
59
|
+
topicsOfInterest: string | null;
|
|
60
|
+
/**
|
|
61
|
+
* Creation timestamp
|
|
62
|
+
* @type {Date}
|
|
63
|
+
* @memberof UserContext
|
|
64
|
+
*/
|
|
65
|
+
createdAt: Date;
|
|
66
|
+
/**
|
|
67
|
+
* Last update timestamp
|
|
68
|
+
* @type {Date}
|
|
69
|
+
* @memberof UserContext
|
|
70
|
+
*/
|
|
71
|
+
updatedAt: Date;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Check if a given object implements the UserContext interface.
|
|
75
|
+
*/
|
|
76
|
+
export declare function instanceOfUserContext(value: object): value is UserContext;
|
|
77
|
+
export declare function UserContextFromJSON(json: any): UserContext;
|
|
78
|
+
export declare function UserContextFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserContext;
|
|
79
|
+
export declare function UserContextToJSON(json: any): UserContext;
|
|
80
|
+
export declare function UserContextToJSONTyped(value?: UserContext | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,75 @@
|
|
|
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 UserContext interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfUserContext(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('chatId' in value) || value['chatId'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('preferredName' in value) || value['preferredName'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('summary' in value) || value['summary'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('courses' in value) || value['courses'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('topicsOfInterest' in value) || value['topicsOfInterest'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
export function UserContextFromJSON(json) {
|
|
39
|
+
return UserContextFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function UserContextFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'id': json['id'],
|
|
47
|
+
'userId': json['userId'],
|
|
48
|
+
'chatId': json['chatId'],
|
|
49
|
+
'preferredName': json['preferredName'],
|
|
50
|
+
'summary': json['summary'],
|
|
51
|
+
'courses': json['courses'],
|
|
52
|
+
'topicsOfInterest': json['topicsOfInterest'],
|
|
53
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
54
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
export function UserContextToJSON(json) {
|
|
58
|
+
return UserContextToJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
export function UserContextToJSONTyped(value, ignoreDiscriminator = false) {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'id': value['id'],
|
|
66
|
+
'userId': value['userId'],
|
|
67
|
+
'chatId': value['chatId'],
|
|
68
|
+
'preferredName': value['preferredName'],
|
|
69
|
+
'summary': value['summary'],
|
|
70
|
+
'courses': value['courses'],
|
|
71
|
+
'topicsOfInterest': value['topicsOfInterest'],
|
|
72
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
73
|
+
'updatedAt': value['updatedAt'].toISOString(),
|
|
74
|
+
};
|
|
75
|
+
}
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
export * from './Account';
|
|
2
|
+
export * from './AdminChat';
|
|
3
|
+
export * from './AdminChatAnalysis';
|
|
4
|
+
export * from './AdminChatWithStats';
|
|
5
|
+
export * from './AdminPaginatedChats';
|
|
6
|
+
export * from './AdminStreak';
|
|
7
|
+
export * from './AdminUserEngagement';
|
|
2
8
|
export * from './Chat';
|
|
9
|
+
export * from './ChatAnalysis';
|
|
3
10
|
export * from './ChatRequest';
|
|
4
11
|
export * from './ChatRequestAttachmentsInner';
|
|
5
12
|
export * from './CreateAccountRequest';
|
|
@@ -48,6 +55,8 @@ export * from './UploadUrlRequest';
|
|
|
48
55
|
export * from './UploadUrlRequestFilesInner';
|
|
49
56
|
export * from './UploadUrlResponse';
|
|
50
57
|
export * from './UpsertOverrideDto';
|
|
58
|
+
export * from './UpsertUserContextRequest';
|
|
51
59
|
export * from './UpsertVoteRequest';
|
|
60
|
+
export * from './UserContext';
|
|
52
61
|
export * from './Vote';
|
|
53
62
|
export * from './VotesResponse';
|