@instructure/athena-api-client 1.0.11 → 1.0.12

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.
@@ -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,6 @@
1
1
  export * from './Account';
2
2
  export * from './Chat';
3
+ export * from './ChatAnalysis';
3
4
  export * from './ChatRequest';
4
5
  export * from './ChatRequestAttachmentsInner';
5
6
  export * from './CreateAccountRequest';
@@ -48,6 +49,8 @@ export * from './UploadUrlRequest';
48
49
  export * from './UploadUrlRequestFilesInner';
49
50
  export * from './UploadUrlResponse';
50
51
  export * from './UpsertOverrideDto';
52
+ export * from './UpsertUserContextRequest';
51
53
  export * from './UpsertVoteRequest';
54
+ export * from './UserContext';
52
55
  export * from './Vote';
53
56
  export * from './VotesResponse';
@@ -18,6 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
18
18
  /* eslint-disable */
19
19
  __exportStar(require("./Account"), exports);
20
20
  __exportStar(require("./Chat"), exports);
21
+ __exportStar(require("./ChatAnalysis"), exports);
21
22
  __exportStar(require("./ChatRequest"), exports);
22
23
  __exportStar(require("./ChatRequestAttachmentsInner"), exports);
23
24
  __exportStar(require("./CreateAccountRequest"), exports);
@@ -66,6 +67,8 @@ __exportStar(require("./UploadUrlRequest"), exports);
66
67
  __exportStar(require("./UploadUrlRequestFilesInner"), exports);
67
68
  __exportStar(require("./UploadUrlResponse"), exports);
68
69
  __exportStar(require("./UpsertOverrideDto"), exports);
70
+ __exportStar(require("./UpsertUserContextRequest"), exports);
69
71
  __exportStar(require("./UpsertVoteRequest"), exports);
72
+ __exportStar(require("./UserContext"), exports);
70
73
  __exportStar(require("./Vote"), exports);
71
74
  __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.12",
5
5
  "description": "OpenAPI client for the Athena API",
6
6
  "author": "Instructure",
7
7
  "repository": {