@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.
Files changed (58) hide show
  1. package/README.md +18 -0
  2. package/dist/apis/AdminApi.d.ts +92 -0
  3. package/dist/apis/AdminApi.js +271 -0
  4. package/dist/apis/ChatAnalysisApi.d.ts +32 -0
  5. package/dist/apis/ChatAnalysisApi.js +74 -0
  6. package/dist/apis/UserContextApi.d.ts +45 -0
  7. package/dist/apis/UserContextApi.js +112 -0
  8. package/dist/apis/index.d.ts +3 -0
  9. package/dist/apis/index.js +3 -0
  10. package/dist/esm/apis/AdminApi.d.ts +92 -0
  11. package/dist/esm/apis/AdminApi.js +267 -0
  12. package/dist/esm/apis/ChatAnalysisApi.d.ts +32 -0
  13. package/dist/esm/apis/ChatAnalysisApi.js +70 -0
  14. package/dist/esm/apis/UserContextApi.d.ts +45 -0
  15. package/dist/esm/apis/UserContextApi.js +108 -0
  16. package/dist/esm/apis/index.d.ts +3 -0
  17. package/dist/esm/apis/index.js +3 -0
  18. package/dist/esm/models/AdminChat.d.ts +112 -0
  19. package/dist/esm/models/AdminChat.js +98 -0
  20. package/dist/esm/models/AdminChatAnalysis.d.ts +68 -0
  21. package/dist/esm/models/AdminChatAnalysis.js +67 -0
  22. package/dist/esm/models/AdminChatWithStats.d.ts +62 -0
  23. package/dist/esm/models/AdminChatWithStats.js +63 -0
  24. package/dist/esm/models/AdminPaginatedChats.d.ts +39 -0
  25. package/dist/esm/models/AdminPaginatedChats.js +48 -0
  26. package/dist/esm/models/AdminStreak.d.ts +62 -0
  27. package/dist/esm/models/AdminStreak.js +63 -0
  28. package/dist/esm/models/AdminUserEngagement.d.ts +38 -0
  29. package/dist/esm/models/AdminUserEngagement.js +47 -0
  30. package/dist/esm/models/ChatAnalysis.d.ts +68 -0
  31. package/dist/esm/models/ChatAnalysis.js +67 -0
  32. package/dist/esm/models/UpsertUserContextRequest.d.ts +56 -0
  33. package/dist/esm/models/UpsertUserContextRequest.js +49 -0
  34. package/dist/esm/models/UserContext.d.ts +80 -0
  35. package/dist/esm/models/UserContext.js +75 -0
  36. package/dist/esm/models/index.d.ts +9 -0
  37. package/dist/esm/models/index.js +9 -0
  38. package/dist/models/AdminChat.d.ts +112 -0
  39. package/dist/models/AdminChat.js +106 -0
  40. package/dist/models/AdminChatAnalysis.d.ts +68 -0
  41. package/dist/models/AdminChatAnalysis.js +74 -0
  42. package/dist/models/AdminChatWithStats.d.ts +62 -0
  43. package/dist/models/AdminChatWithStats.js +70 -0
  44. package/dist/models/AdminPaginatedChats.d.ts +39 -0
  45. package/dist/models/AdminPaginatedChats.js +55 -0
  46. package/dist/models/AdminStreak.d.ts +62 -0
  47. package/dist/models/AdminStreak.js +70 -0
  48. package/dist/models/AdminUserEngagement.d.ts +38 -0
  49. package/dist/models/AdminUserEngagement.js +54 -0
  50. package/dist/models/ChatAnalysis.d.ts +68 -0
  51. package/dist/models/ChatAnalysis.js +74 -0
  52. package/dist/models/UpsertUserContextRequest.d.ts +56 -0
  53. package/dist/models/UpsertUserContextRequest.js +56 -0
  54. package/dist/models/UserContext.d.ts +80 -0
  55. package/dist/models/UserContext.js +82 -0
  56. package/dist/models/index.d.ts +9 -0
  57. package/dist/models/index.js +9 -0
  58. package/package.json +1 -1
@@ -0,0 +1,70 @@
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.instanceOfAdminStreak = instanceOfAdminStreak;
17
+ exports.AdminStreakFromJSON = AdminStreakFromJSON;
18
+ exports.AdminStreakFromJSONTyped = AdminStreakFromJSONTyped;
19
+ exports.AdminStreakToJSON = AdminStreakToJSON;
20
+ exports.AdminStreakToJSONTyped = AdminStreakToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AdminStreak interface.
23
+ */
24
+ function instanceOfAdminStreak(value) {
25
+ if (!('userId' in value) || value['userId'] === undefined)
26
+ return false;
27
+ if (!('currentDays' in value) || value['currentDays'] === undefined)
28
+ return false;
29
+ if (!('longestDays' in value) || value['longestDays'] === undefined)
30
+ return false;
31
+ if (!('totalMissedDays' in value) || value['totalMissedDays'] === undefined)
32
+ return false;
33
+ if (!('missedDaysInCycle' in value) || value['missedDaysInCycle'] === undefined)
34
+ return false;
35
+ if (!('lastMomentDate' in value) || value['lastMomentDate'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ function AdminStreakFromJSON(json) {
40
+ return AdminStreakFromJSONTyped(json, false);
41
+ }
42
+ function AdminStreakFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'userId': json['userId'],
48
+ 'currentDays': json['currentDays'],
49
+ 'longestDays': json['longestDays'],
50
+ 'totalMissedDays': json['totalMissedDays'],
51
+ 'missedDaysInCycle': json['missedDaysInCycle'],
52
+ 'lastMomentDate': (json['lastMomentDate'] == null ? null : new Date(json['lastMomentDate'])),
53
+ };
54
+ }
55
+ function AdminStreakToJSON(json) {
56
+ return AdminStreakToJSONTyped(json, false);
57
+ }
58
+ function AdminStreakToJSONTyped(value, ignoreDiscriminator = false) {
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+ return {
63
+ 'userId': value['userId'],
64
+ 'currentDays': value['currentDays'],
65
+ 'longestDays': value['longestDays'],
66
+ 'totalMissedDays': value['totalMissedDays'],
67
+ 'missedDaysInCycle': value['missedDaysInCycle'],
68
+ 'lastMomentDate': value['lastMomentDate'] == null ? value['lastMomentDate'] : value['lastMomentDate'].toISOString().substring(0, 10),
69
+ };
70
+ }
@@ -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,54 @@
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.instanceOfAdminUserEngagement = instanceOfAdminUserEngagement;
17
+ exports.AdminUserEngagementFromJSON = AdminUserEngagementFromJSON;
18
+ exports.AdminUserEngagementFromJSONTyped = AdminUserEngagementFromJSONTyped;
19
+ exports.AdminUserEngagementToJSON = AdminUserEngagementToJSON;
20
+ exports.AdminUserEngagementToJSONTyped = AdminUserEngagementToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AdminUserEngagement interface.
23
+ */
24
+ function instanceOfAdminUserEngagement(value) {
25
+ if (!('lastViewedChatAt' in value) || value['lastViewedChatAt'] === undefined)
26
+ return false;
27
+ if (!('lastMessageCreatedAt' in value) || value['lastMessageCreatedAt'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function AdminUserEngagementFromJSON(json) {
32
+ return AdminUserEngagementFromJSONTyped(json, false);
33
+ }
34
+ function AdminUserEngagementFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'lastViewedChatAt': (json['lastViewedChatAt'] == null ? null : new Date(json['lastViewedChatAt'])),
40
+ 'lastMessageCreatedAt': (json['lastMessageCreatedAt'] == null ? null : new Date(json['lastMessageCreatedAt'])),
41
+ };
42
+ }
43
+ function AdminUserEngagementToJSON(json) {
44
+ return AdminUserEngagementToJSONTyped(json, false);
45
+ }
46
+ function AdminUserEngagementToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'lastViewedChatAt': value['lastViewedChatAt'] == null ? value['lastViewedChatAt'] : value['lastViewedChatAt'].toISOString(),
52
+ 'lastMessageCreatedAt': value['lastMessageCreatedAt'] == null ? value['lastMessageCreatedAt'] : value['lastMessageCreatedAt'].toISOString(),
53
+ };
54
+ }
@@ -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,74 @@
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.instanceOfChatAnalysis = instanceOfChatAnalysis;
17
+ exports.ChatAnalysisFromJSON = ChatAnalysisFromJSON;
18
+ exports.ChatAnalysisFromJSONTyped = ChatAnalysisFromJSONTyped;
19
+ exports.ChatAnalysisToJSON = ChatAnalysisToJSON;
20
+ exports.ChatAnalysisToJSONTyped = ChatAnalysisToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ChatAnalysis interface.
23
+ */
24
+ function instanceOfChatAnalysis(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('title' in value) || value['title'] === undefined)
28
+ return false;
29
+ if (!('summary' in value) || value['summary'] === undefined)
30
+ return false;
31
+ if (!('goal' in value) || value['goal'] === undefined)
32
+ return false;
33
+ if (!('goalAchieved' in value) || value['goalAchieved'] === undefined)
34
+ return false;
35
+ if (!('subject' in value) || value['subject'] === undefined)
36
+ return false;
37
+ if (!('concepts' in value) || value['concepts'] === undefined)
38
+ return false;
39
+ return true;
40
+ }
41
+ function ChatAnalysisFromJSON(json) {
42
+ return ChatAnalysisFromJSONTyped(json, false);
43
+ }
44
+ function ChatAnalysisFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'id': json['id'],
50
+ 'title': json['title'],
51
+ 'summary': json['summary'],
52
+ 'goal': json['goal'],
53
+ 'goalAchieved': json['goalAchieved'],
54
+ 'subject': json['subject'],
55
+ 'concepts': json['concepts'],
56
+ };
57
+ }
58
+ function ChatAnalysisToJSON(json) {
59
+ return ChatAnalysisToJSONTyped(json, false);
60
+ }
61
+ function ChatAnalysisToJSONTyped(value, ignoreDiscriminator = false) {
62
+ if (value == null) {
63
+ return value;
64
+ }
65
+ return {
66
+ 'id': value['id'],
67
+ 'title': value['title'],
68
+ 'summary': value['summary'],
69
+ 'goal': value['goal'],
70
+ 'goalAchieved': value['goalAchieved'],
71
+ 'subject': value['subject'],
72
+ 'concepts': value['concepts'],
73
+ };
74
+ }
@@ -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,56 @@
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.instanceOfUpsertUserContextRequest = instanceOfUpsertUserContextRequest;
17
+ exports.UpsertUserContextRequestFromJSON = UpsertUserContextRequestFromJSON;
18
+ exports.UpsertUserContextRequestFromJSONTyped = UpsertUserContextRequestFromJSONTyped;
19
+ exports.UpsertUserContextRequestToJSON = UpsertUserContextRequestToJSON;
20
+ exports.UpsertUserContextRequestToJSONTyped = UpsertUserContextRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the UpsertUserContextRequest interface.
23
+ */
24
+ function instanceOfUpsertUserContextRequest(value) {
25
+ return true;
26
+ }
27
+ function UpsertUserContextRequestFromJSON(json) {
28
+ return UpsertUserContextRequestFromJSONTyped(json, false);
29
+ }
30
+ function UpsertUserContextRequestFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'chatId': json['chatId'] == null ? undefined : json['chatId'],
36
+ 'preferredName': json['preferredName'] == null ? undefined : json['preferredName'],
37
+ 'summary': json['summary'] == null ? undefined : json['summary'],
38
+ 'courses': json['courses'] == null ? undefined : json['courses'],
39
+ 'topicsOfInterest': json['topicsOfInterest'] == null ? undefined : json['topicsOfInterest'],
40
+ };
41
+ }
42
+ function UpsertUserContextRequestToJSON(json) {
43
+ return UpsertUserContextRequestToJSONTyped(json, false);
44
+ }
45
+ function UpsertUserContextRequestToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'chatId': value['chatId'],
51
+ 'preferredName': value['preferredName'],
52
+ 'summary': value['summary'],
53
+ 'courses': value['courses'],
54
+ 'topicsOfInterest': value['topicsOfInterest'],
55
+ };
56
+ }
@@ -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,82 @@
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.instanceOfUserContext = instanceOfUserContext;
17
+ exports.UserContextFromJSON = UserContextFromJSON;
18
+ exports.UserContextFromJSONTyped = UserContextFromJSONTyped;
19
+ exports.UserContextToJSON = UserContextToJSON;
20
+ exports.UserContextToJSONTyped = UserContextToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the UserContext interface.
23
+ */
24
+ function instanceOfUserContext(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('userId' in value) || value['userId'] === undefined)
28
+ return false;
29
+ if (!('chatId' in value) || value['chatId'] === undefined)
30
+ return false;
31
+ if (!('preferredName' in value) || value['preferredName'] === undefined)
32
+ return false;
33
+ if (!('summary' in value) || value['summary'] === undefined)
34
+ return false;
35
+ if (!('courses' in value) || value['courses'] === undefined)
36
+ return false;
37
+ if (!('topicsOfInterest' in value) || value['topicsOfInterest'] === undefined)
38
+ return false;
39
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
40
+ return false;
41
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
42
+ return false;
43
+ return true;
44
+ }
45
+ function UserContextFromJSON(json) {
46
+ return UserContextFromJSONTyped(json, false);
47
+ }
48
+ function UserContextFromJSONTyped(json, ignoreDiscriminator) {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+ 'id': json['id'],
54
+ 'userId': json['userId'],
55
+ 'chatId': json['chatId'],
56
+ 'preferredName': json['preferredName'],
57
+ 'summary': json['summary'],
58
+ 'courses': json['courses'],
59
+ 'topicsOfInterest': json['topicsOfInterest'],
60
+ 'createdAt': (new Date(json['createdAt'])),
61
+ 'updatedAt': (new Date(json['updatedAt'])),
62
+ };
63
+ }
64
+ function UserContextToJSON(json) {
65
+ return UserContextToJSONTyped(json, false);
66
+ }
67
+ function UserContextToJSONTyped(value, ignoreDiscriminator = false) {
68
+ if (value == null) {
69
+ return value;
70
+ }
71
+ return {
72
+ 'id': value['id'],
73
+ 'userId': value['userId'],
74
+ 'chatId': value['chatId'],
75
+ 'preferredName': value['preferredName'],
76
+ 'summary': value['summary'],
77
+ 'courses': value['courses'],
78
+ 'topicsOfInterest': value['topicsOfInterest'],
79
+ 'createdAt': value['createdAt'].toISOString(),
80
+ 'updatedAt': value['updatedAt'].toISOString(),
81
+ };
82
+ }
@@ -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';
@@ -17,7 +17,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  /* tslint:disable */
18
18
  /* eslint-disable */
19
19
  __exportStar(require("./Account"), exports);
20
+ __exportStar(require("./AdminChat"), exports);
21
+ __exportStar(require("./AdminChatAnalysis"), exports);
22
+ __exportStar(require("./AdminChatWithStats"), exports);
23
+ __exportStar(require("./AdminPaginatedChats"), exports);
24
+ __exportStar(require("./AdminStreak"), exports);
25
+ __exportStar(require("./AdminUserEngagement"), exports);
20
26
  __exportStar(require("./Chat"), exports);
27
+ __exportStar(require("./ChatAnalysis"), exports);
21
28
  __exportStar(require("./ChatRequest"), exports);
22
29
  __exportStar(require("./ChatRequestAttachmentsInner"), exports);
23
30
  __exportStar(require("./CreateAccountRequest"), exports);
@@ -66,6 +73,8 @@ __exportStar(require("./UploadUrlRequest"), exports);
66
73
  __exportStar(require("./UploadUrlRequestFilesInner"), exports);
67
74
  __exportStar(require("./UploadUrlResponse"), exports);
68
75
  __exportStar(require("./UpsertOverrideDto"), exports);
76
+ __exportStar(require("./UpsertUserContextRequest"), exports);
69
77
  __exportStar(require("./UpsertVoteRequest"), exports);
78
+ __exportStar(require("./UserContext"), exports);
70
79
  __exportStar(require("./Vote"), exports);
71
80
  __exportStar(require("./VotesResponse"), exports);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@instructure/athena-api-client",
3
3
  "private": false,
4
- "version": "1.0.11",
4
+ "version": "1.0.13-rc.0",
5
5
  "description": "OpenAPI client for the Athena API",
6
6
  "author": "Instructure",
7
7
  "repository": {