@instructure/athena-api-client 1.0.10 → 1.0.11

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 (162) hide show
  1. package/README.md +30 -7
  2. package/dist/apis/AccountsApi.d.ts +13 -5
  3. package/dist/apis/AccountsApi.js +38 -4
  4. package/dist/apis/ChatsApi.d.ts +8 -7
  5. package/dist/apis/ChatsApi.js +22 -13
  6. package/dist/apis/FeatureOverridesApi.d.ts +51 -0
  7. package/dist/apis/FeatureOverridesApi.js +131 -0
  8. package/dist/apis/FeaturesApi.d.ts +71 -0
  9. package/dist/apis/FeaturesApi.js +199 -0
  10. package/dist/apis/HealthApi.d.ts +3 -2
  11. package/dist/apis/HealthApi.js +4 -2
  12. package/dist/apis/LearningDaysApi.d.ts +1 -1
  13. package/dist/apis/LearningDaysApi.js +3 -3
  14. package/dist/apis/MessagesApi.d.ts +10 -10
  15. package/dist/apis/MessagesApi.js +18 -18
  16. package/dist/apis/PlansApi.d.ts +71 -0
  17. package/dist/apis/PlansApi.js +199 -0
  18. package/dist/apis/QuizSessionsApi.d.ts +4 -4
  19. package/dist/apis/QuizSessionsApi.js +12 -12
  20. package/dist/apis/QuizzesApi.d.ts +1 -1
  21. package/dist/apis/QuizzesApi.js +3 -3
  22. package/dist/apis/ServiceTokensApi.d.ts +0 -10
  23. package/dist/apis/ServiceTokensApi.js +0 -10
  24. package/dist/apis/TagsApi.d.ts +0 -2
  25. package/dist/apis/TagsApi.js +0 -2
  26. package/dist/apis/VotesApi.d.ts +5 -5
  27. package/dist/apis/VotesApi.js +7 -7
  28. package/dist/apis/index.d.ts +3 -0
  29. package/dist/apis/index.js +3 -0
  30. package/dist/esm/apis/AccountsApi.d.ts +13 -5
  31. package/dist/esm/apis/AccountsApi.js +39 -5
  32. package/dist/esm/apis/ChatsApi.d.ts +8 -7
  33. package/dist/esm/apis/ChatsApi.js +22 -13
  34. package/dist/esm/apis/FeatureOverridesApi.d.ts +51 -0
  35. package/dist/esm/apis/FeatureOverridesApi.js +127 -0
  36. package/dist/esm/apis/FeaturesApi.d.ts +71 -0
  37. package/dist/esm/apis/FeaturesApi.js +195 -0
  38. package/dist/esm/apis/HealthApi.d.ts +3 -2
  39. package/dist/esm/apis/HealthApi.js +4 -2
  40. package/dist/esm/apis/LearningDaysApi.d.ts +1 -1
  41. package/dist/esm/apis/LearningDaysApi.js +3 -3
  42. package/dist/esm/apis/MessagesApi.d.ts +10 -10
  43. package/dist/esm/apis/MessagesApi.js +19 -19
  44. package/dist/esm/apis/PlansApi.d.ts +71 -0
  45. package/dist/esm/apis/PlansApi.js +195 -0
  46. package/dist/esm/apis/QuizSessionsApi.d.ts +4 -4
  47. package/dist/esm/apis/QuizSessionsApi.js +12 -12
  48. package/dist/esm/apis/QuizzesApi.d.ts +1 -1
  49. package/dist/esm/apis/QuizzesApi.js +3 -3
  50. package/dist/esm/apis/ServiceTokensApi.d.ts +0 -10
  51. package/dist/esm/apis/ServiceTokensApi.js +0 -10
  52. package/dist/esm/apis/TagsApi.d.ts +0 -2
  53. package/dist/esm/apis/TagsApi.js +0 -2
  54. package/dist/esm/apis/VotesApi.d.ts +5 -5
  55. package/dist/esm/apis/VotesApi.js +8 -8
  56. package/dist/esm/apis/index.d.ts +3 -0
  57. package/dist/esm/apis/index.js +3 -0
  58. package/dist/esm/models/ChatRequest.d.ts +1 -1
  59. package/dist/esm/models/ChatRequest.js +3 -1
  60. package/dist/esm/models/CreateFeatureDto.d.ts +44 -0
  61. package/dist/esm/models/CreateFeatureDto.js +49 -0
  62. package/dist/esm/models/CreateMessagesRequestMessagesInner.d.ts +8 -4
  63. package/dist/esm/models/CreateMessagesResponse.d.ts +33 -0
  64. package/dist/esm/models/CreateMessagesResponse.js +44 -0
  65. package/dist/esm/models/CreatePlanDto.d.ts +38 -0
  66. package/dist/esm/models/CreatePlanDto.js +47 -0
  67. package/dist/esm/models/FeatureEntity.d.ts +62 -0
  68. package/dist/esm/models/FeatureEntity.js +61 -0
  69. package/dist/esm/models/FeatureOverrideEntity.d.ts +62 -0
  70. package/dist/esm/models/FeatureOverrideEntity.js +63 -0
  71. package/dist/esm/models/HealthCheck.d.ts +1 -8
  72. package/dist/esm/models/HealthCheck.js +0 -6
  73. package/dist/esm/models/LearningMoment.d.ts +3 -3
  74. package/dist/esm/models/LearningMoment.js +9 -3
  75. package/dist/esm/models/LearningStreakResponse.d.ts +2 -2
  76. package/dist/esm/models/LearningStreakResponse.js +6 -2
  77. package/dist/esm/models/Message.d.ts +6 -6
  78. package/dist/esm/models/Message.js +6 -6
  79. package/dist/esm/models/MessageAttachment.d.ts +61 -0
  80. package/dist/esm/models/MessageAttachment.js +61 -0
  81. package/dist/esm/models/MessagePart.d.ts +38 -0
  82. package/dist/esm/models/MessagePart.js +43 -0
  83. package/dist/esm/models/PaginatedMessages.d.ts +1 -1
  84. package/dist/esm/models/Plan.d.ts +56 -0
  85. package/dist/esm/models/Plan.js +59 -0
  86. package/dist/esm/models/QuizQuestion.d.ts +4 -4
  87. package/dist/esm/models/QuizQuestion.js +12 -4
  88. package/dist/esm/models/QuizResponse.d.ts +2 -2
  89. package/dist/esm/models/QuizResponse.js +6 -2
  90. package/dist/esm/models/QuizSessionSummary.d.ts +3 -3
  91. package/dist/esm/models/QuizSessionSummary.js +3 -3
  92. package/dist/esm/models/Score.d.ts +47 -0
  93. package/dist/esm/models/Score.js +53 -0
  94. package/dist/esm/models/UpdateAccountDto.d.ts +32 -0
  95. package/dist/esm/models/UpdateAccountDto.js +43 -0
  96. package/dist/esm/models/UpdateFeatureDto.d.ts +44 -0
  97. package/dist/esm/models/UpdateFeatureDto.js +45 -0
  98. package/dist/esm/models/UpdatePlanDto.d.ts +38 -0
  99. package/dist/esm/models/UpdatePlanDto.js +43 -0
  100. package/dist/esm/models/UploadUrlFile.d.ts +56 -0
  101. package/dist/esm/models/UploadUrlFile.js +59 -0
  102. package/dist/esm/models/UploadUrlResponse.d.ts +3 -3
  103. package/dist/esm/models/UploadUrlResponse.js +3 -3
  104. package/dist/esm/models/UpsertOverrideDto.d.ts +44 -0
  105. package/dist/esm/models/UpsertOverrideDto.js +51 -0
  106. package/dist/esm/models/VotesResponse.d.ts +33 -0
  107. package/dist/esm/models/VotesResponse.js +44 -0
  108. package/dist/esm/models/index.d.ts +16 -7
  109. package/dist/esm/models/index.js +16 -7
  110. package/dist/models/ChatRequest.d.ts +1 -1
  111. package/dist/models/ChatRequest.js +3 -1
  112. package/dist/models/CreateFeatureDto.d.ts +44 -0
  113. package/dist/models/CreateFeatureDto.js +56 -0
  114. package/dist/models/CreateMessagesRequestMessagesInner.d.ts +8 -4
  115. package/dist/models/CreateMessagesResponse.d.ts +33 -0
  116. package/dist/models/CreateMessagesResponse.js +51 -0
  117. package/dist/models/CreatePlanDto.d.ts +38 -0
  118. package/dist/models/CreatePlanDto.js +54 -0
  119. package/dist/models/FeatureEntity.d.ts +62 -0
  120. package/dist/models/FeatureEntity.js +68 -0
  121. package/dist/models/FeatureOverrideEntity.d.ts +62 -0
  122. package/dist/models/FeatureOverrideEntity.js +70 -0
  123. package/dist/models/HealthCheck.d.ts +1 -8
  124. package/dist/models/HealthCheck.js +0 -7
  125. package/dist/models/LearningMoment.d.ts +3 -3
  126. package/dist/models/LearningMoment.js +9 -3
  127. package/dist/models/LearningStreakResponse.d.ts +2 -2
  128. package/dist/models/LearningStreakResponse.js +6 -2
  129. package/dist/models/Message.d.ts +6 -6
  130. package/dist/models/Message.js +6 -6
  131. package/dist/models/MessageAttachment.d.ts +61 -0
  132. package/dist/models/MessageAttachment.js +69 -0
  133. package/dist/models/MessagePart.d.ts +38 -0
  134. package/dist/models/MessagePart.js +50 -0
  135. package/dist/models/PaginatedMessages.d.ts +1 -1
  136. package/dist/models/Plan.d.ts +56 -0
  137. package/dist/models/Plan.js +66 -0
  138. package/dist/models/QuizQuestion.d.ts +4 -4
  139. package/dist/models/QuizQuestion.js +12 -4
  140. package/dist/models/QuizResponse.d.ts +2 -2
  141. package/dist/models/QuizResponse.js +6 -2
  142. package/dist/models/QuizSessionSummary.d.ts +3 -3
  143. package/dist/models/QuizSessionSummary.js +3 -3
  144. package/dist/models/Score.d.ts +47 -0
  145. package/dist/models/Score.js +60 -0
  146. package/dist/models/UpdateAccountDto.d.ts +32 -0
  147. package/dist/models/UpdateAccountDto.js +50 -0
  148. package/dist/models/UpdateFeatureDto.d.ts +44 -0
  149. package/dist/models/UpdateFeatureDto.js +52 -0
  150. package/dist/models/UpdatePlanDto.d.ts +38 -0
  151. package/dist/models/UpdatePlanDto.js +50 -0
  152. package/dist/models/UploadUrlFile.d.ts +56 -0
  153. package/dist/models/UploadUrlFile.js +66 -0
  154. package/dist/models/UploadUrlResponse.d.ts +3 -3
  155. package/dist/models/UploadUrlResponse.js +3 -3
  156. package/dist/models/UpsertOverrideDto.d.ts +44 -0
  157. package/dist/models/UpsertOverrideDto.js +58 -0
  158. package/dist/models/VotesResponse.d.ts +33 -0
  159. package/dist/models/VotesResponse.js +51 -0
  160. package/dist/models/index.d.ts +16 -7
  161. package/dist/models/index.js +16 -7
  162. package/package.json +1 -1
@@ -0,0 +1,61 @@
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 FeatureEntity interface.
16
+ */
17
+ export function instanceOfFeatureEntity(value) {
18
+ if (!('id' in value) || value['id'] === undefined)
19
+ return false;
20
+ if (!('name' in value) || value['name'] === undefined)
21
+ return false;
22
+ if (!('planId' in value) || value['planId'] === undefined)
23
+ return false;
24
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
25
+ return false;
26
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ export function FeatureEntityFromJSON(json) {
31
+ return FeatureEntityFromJSONTyped(json, false);
32
+ }
33
+ export function FeatureEntityFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'id': json['id'],
39
+ 'name': json['name'],
40
+ 'description': json['description'] == null ? undefined : json['description'],
41
+ 'planId': json['planId'],
42
+ 'createdAt': (new Date(json['createdAt'])),
43
+ 'updatedAt': (new Date(json['updatedAt'])),
44
+ };
45
+ }
46
+ export function FeatureEntityToJSON(json) {
47
+ return FeatureEntityToJSONTyped(json, false);
48
+ }
49
+ export function FeatureEntityToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'id': value['id'],
55
+ 'name': value['name'],
56
+ 'description': value['description'],
57
+ 'planId': value['planId'],
58
+ 'createdAt': value['createdAt'].toISOString(),
59
+ 'updatedAt': value['updatedAt'].toISOString(),
60
+ };
61
+ }
@@ -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 FeatureOverrideEntity
16
+ */
17
+ export interface FeatureOverrideEntity {
18
+ /**
19
+ * Unique identifier
20
+ * @type {string}
21
+ * @memberof FeatureOverrideEntity
22
+ */
23
+ id: string;
24
+ /**
25
+ * Account ID
26
+ * @type {string}
27
+ * @memberof FeatureOverrideEntity
28
+ */
29
+ accountId: string;
30
+ /**
31
+ * Feature ID
32
+ * @type {string}
33
+ * @memberof FeatureOverrideEntity
34
+ */
35
+ featureId: string;
36
+ /**
37
+ * Whether the feature is enabled for this account
38
+ * @type {boolean}
39
+ * @memberof FeatureOverrideEntity
40
+ */
41
+ enabled: boolean;
42
+ /**
43
+ * Creation timestamp
44
+ * @type {Date}
45
+ * @memberof FeatureOverrideEntity
46
+ */
47
+ createdAt: Date;
48
+ /**
49
+ * Last update timestamp
50
+ * @type {Date}
51
+ * @memberof FeatureOverrideEntity
52
+ */
53
+ updatedAt: Date;
54
+ }
55
+ /**
56
+ * Check if a given object implements the FeatureOverrideEntity interface.
57
+ */
58
+ export declare function instanceOfFeatureOverrideEntity(value: object): value is FeatureOverrideEntity;
59
+ export declare function FeatureOverrideEntityFromJSON(json: any): FeatureOverrideEntity;
60
+ export declare function FeatureOverrideEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): FeatureOverrideEntity;
61
+ export declare function FeatureOverrideEntityToJSON(json: any): FeatureOverrideEntity;
62
+ export declare function FeatureOverrideEntityToJSONTyped(value?: FeatureOverrideEntity | 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 FeatureOverrideEntity interface.
16
+ */
17
+ export function instanceOfFeatureOverrideEntity(value) {
18
+ if (!('id' in value) || value['id'] === undefined)
19
+ return false;
20
+ if (!('accountId' in value) || value['accountId'] === undefined)
21
+ return false;
22
+ if (!('featureId' in value) || value['featureId'] === undefined)
23
+ return false;
24
+ if (!('enabled' in value) || value['enabled'] === undefined)
25
+ return false;
26
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
27
+ return false;
28
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ export function FeatureOverrideEntityFromJSON(json) {
33
+ return FeatureOverrideEntityFromJSONTyped(json, false);
34
+ }
35
+ export function FeatureOverrideEntityFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'id': json['id'],
41
+ 'accountId': json['accountId'],
42
+ 'featureId': json['featureId'],
43
+ 'enabled': json['enabled'],
44
+ 'createdAt': (new Date(json['createdAt'])),
45
+ 'updatedAt': (new Date(json['updatedAt'])),
46
+ };
47
+ }
48
+ export function FeatureOverrideEntityToJSON(json) {
49
+ return FeatureOverrideEntityToJSONTyped(json, false);
50
+ }
51
+ export function FeatureOverrideEntityToJSONTyped(value, ignoreDiscriminator = false) {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'id': value['id'],
57
+ 'accountId': value['accountId'],
58
+ 'featureId': value['featureId'],
59
+ 'enabled': value['enabled'],
60
+ 'createdAt': value['createdAt'].toISOString(),
61
+ 'updatedAt': value['updatedAt'].toISOString(),
62
+ };
63
+ }
@@ -20,15 +20,8 @@ export interface HealthCheck {
20
20
  * @type {string}
21
21
  * @memberof HealthCheck
22
22
  */
23
- status: HealthCheckStatusEnum;
23
+ status: string;
24
24
  }
25
- /**
26
- * @export
27
- */
28
- export declare const HealthCheckStatusEnum: {
29
- readonly Ok: "ok";
30
- };
31
- export type HealthCheckStatusEnum = typeof HealthCheckStatusEnum[keyof typeof HealthCheckStatusEnum];
32
25
  /**
33
26
  * Check if a given object implements the HealthCheck interface.
34
27
  */
@@ -11,12 +11,6 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- /**
15
- * @export
16
- */
17
- export const HealthCheckStatusEnum = {
18
- Ok: 'ok'
19
- };
20
14
  /**
21
15
  * Check if a given object implements the HealthCheck interface.
22
16
  */
@@ -44,19 +44,19 @@ export interface LearningMoment {
44
44
  * @type {string}
45
45
  * @memberof LearningMoment
46
46
  */
47
- label?: string | null;
47
+ label: string | null;
48
48
  /**
49
49
  * Confidence score (0.00 - 1.00)
50
50
  * @type {string}
51
51
  * @memberof LearningMoment
52
52
  */
53
- confidence?: string | null;
53
+ confidence: string | null;
54
54
  /**
55
55
  * Explanation for the learning moment
56
56
  * @type {string}
57
57
  * @memberof LearningMoment
58
58
  */
59
- reason?: string | null;
59
+ reason: string | null;
60
60
  /**
61
61
  * Date the learning moment occurred
62
62
  * @type {Date}
@@ -23,6 +23,12 @@ export function instanceOfLearningMoment(value) {
23
23
  return false;
24
24
  if (!('messageId' in value) || value['messageId'] === undefined)
25
25
  return false;
26
+ if (!('label' in value) || value['label'] === undefined)
27
+ return false;
28
+ if (!('confidence' in value) || value['confidence'] === undefined)
29
+ return false;
30
+ if (!('reason' in value) || value['reason'] === undefined)
31
+ return false;
26
32
  if (!('occurredOn' in value) || value['occurredOn'] === undefined)
27
33
  return false;
28
34
  if (!('createdAt' in value) || value['createdAt'] === undefined)
@@ -43,9 +49,9 @@ export function LearningMomentFromJSONTyped(json, ignoreDiscriminator) {
43
49
  'accountUserId': json['accountUserId'],
44
50
  'chatId': json['chatId'],
45
51
  'messageId': json['messageId'],
46
- 'label': json['label'] == null ? undefined : json['label'],
47
- 'confidence': json['confidence'] == null ? undefined : json['confidence'],
48
- 'reason': json['reason'] == null ? undefined : json['reason'],
52
+ 'label': json['label'],
53
+ 'confidence': json['confidence'],
54
+ 'reason': json['reason'],
49
55
  'occurredOn': (new Date(json['occurredOn'])),
50
56
  'createdAt': (new Date(json['createdAt'])),
51
57
  'updatedAt': (new Date(json['updatedAt'])),
@@ -32,7 +32,7 @@ export interface LearningStreakResponse {
32
32
  * @type {Date}
33
33
  * @memberof LearningStreakResponse
34
34
  */
35
- lastMomentDate?: Date | null;
35
+ lastMomentDate: Date | null;
36
36
  /**
37
37
  *
38
38
  * @type {number}
@@ -50,7 +50,7 @@ export interface LearningStreakResponse {
50
50
  * @type {Date}
51
51
  * @memberof LearningStreakResponse
52
52
  */
53
- lastEvaluatedAt?: Date | null;
53
+ lastEvaluatedAt: Date | null;
54
54
  /**
55
55
  *
56
56
  * @type {Date}
@@ -19,10 +19,14 @@ export function instanceOfLearningStreakResponse(value) {
19
19
  return false;
20
20
  if (!('longestDays' in value) || value['longestDays'] === undefined)
21
21
  return false;
22
+ if (!('lastMomentDate' in value) || value['lastMomentDate'] === undefined)
23
+ return false;
22
24
  if (!('totalMissedDays' in value) || value['totalMissedDays'] === undefined)
23
25
  return false;
24
26
  if (!('missedDaysInCycle' in value) || value['missedDaysInCycle'] === undefined)
25
27
  return false;
28
+ if (!('lastEvaluatedAt' in value) || value['lastEvaluatedAt'] === undefined)
29
+ return false;
26
30
  if (!('createdAt' in value) || value['createdAt'] === undefined)
27
31
  return false;
28
32
  if (!('updatedAt' in value) || value['updatedAt'] === undefined)
@@ -39,10 +43,10 @@ export function LearningStreakResponseFromJSONTyped(json, ignoreDiscriminator) {
39
43
  return {
40
44
  'currentDays': json['currentDays'],
41
45
  'longestDays': json['longestDays'],
42
- 'lastMomentDate': json['lastMomentDate'] == null ? undefined : (new Date(json['lastMomentDate'])),
46
+ 'lastMomentDate': (json['lastMomentDate'] == null ? null : new Date(json['lastMomentDate'])),
43
47
  'totalMissedDays': json['totalMissedDays'],
44
48
  'missedDaysInCycle': json['missedDaysInCycle'],
45
- 'lastEvaluatedAt': json['lastEvaluatedAt'] == null ? undefined : (new Date(json['lastEvaluatedAt'])),
49
+ 'lastEvaluatedAt': (json['lastEvaluatedAt'] == null ? null : new Date(json['lastEvaluatedAt'])),
46
50
  'createdAt': (new Date(json['createdAt'])),
47
51
  'updatedAt': (new Date(json['updatedAt'])),
48
52
  };
@@ -9,8 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { MessageAttachmentsInner } from './MessageAttachmentsInner';
13
- import type { MessagePartsInner } from './MessagePartsInner';
12
+ import type { MessageAttachment } from './MessageAttachment';
13
+ import type { MessagePart } from './MessagePart';
14
14
  /**
15
15
  *
16
16
  * @export
@@ -37,16 +37,16 @@ export interface Message {
37
37
  role: string;
38
38
  /**
39
39
  * Message content parts
40
- * @type {Array<MessagePartsInner>}
40
+ * @type {Array<MessagePart>}
41
41
  * @memberof Message
42
42
  */
43
- parts: Array<MessagePartsInner>;
43
+ parts: Array<MessagePart>;
44
44
  /**
45
45
  * Message attachments with fresh signed GET URLs
46
- * @type {Array<MessageAttachmentsInner>}
46
+ * @type {Array<MessageAttachment>}
47
47
  * @memberof Message
48
48
  */
49
- attachments: Array<MessageAttachmentsInner>;
49
+ attachments: Array<MessageAttachment>;
50
50
  /**
51
51
  * Creation timestamp
52
52
  * @type {Date}
@@ -11,8 +11,8 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- import { MessageAttachmentsInnerFromJSON, MessageAttachmentsInnerToJSON, } from './MessageAttachmentsInner';
15
- import { MessagePartsInnerFromJSON, MessagePartsInnerToJSON, } from './MessagePartsInner';
14
+ import { MessageAttachmentFromJSON, MessageAttachmentToJSON, } from './MessageAttachment';
15
+ import { MessagePartFromJSON, MessagePartToJSON, } from './MessagePart';
16
16
  /**
17
17
  * Check if a given object implements the Message interface.
18
18
  */
@@ -42,8 +42,8 @@ export function MessageFromJSONTyped(json, ignoreDiscriminator) {
42
42
  'id': json['id'],
43
43
  'chatId': json['chatId'],
44
44
  'role': json['role'],
45
- 'parts': (json['parts'].map(MessagePartsInnerFromJSON)),
46
- 'attachments': (json['attachments'].map(MessageAttachmentsInnerFromJSON)),
45
+ 'parts': (json['parts'].map(MessagePartFromJSON)),
46
+ 'attachments': (json['attachments'].map(MessageAttachmentFromJSON)),
47
47
  'createdAt': (new Date(json['createdAt'])),
48
48
  'isLearningMoment': json['isLearningMoment'] == null ? undefined : json['isLearningMoment'],
49
49
  };
@@ -59,8 +59,8 @@ export function MessageToJSONTyped(value, ignoreDiscriminator = false) {
59
59
  'id': value['id'],
60
60
  'chatId': value['chatId'],
61
61
  'role': value['role'],
62
- 'parts': (value['parts'].map(MessagePartsInnerToJSON)),
63
- 'attachments': (value['attachments'].map(MessageAttachmentsInnerToJSON)),
62
+ 'parts': (value['parts'].map(MessagePartToJSON)),
63
+ 'attachments': (value['attachments'].map(MessageAttachmentToJSON)),
64
64
  'createdAt': value['createdAt'].toISOString(),
65
65
  'isLearningMoment': value['isLearningMoment'],
66
66
  };
@@ -0,0 +1,61 @@
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 MessageAttachment
16
+ */
17
+ export interface MessageAttachment {
18
+ /**
19
+ * File ID returned from the upload-url endpoint. Absent for legacy attachments.
20
+ * @type {string}
21
+ * @memberof MessageAttachment
22
+ */
23
+ fileId?: string;
24
+ /**
25
+ * MIME type of the file
26
+ * @type {string}
27
+ * @memberof MessageAttachment
28
+ */
29
+ mimeType: MessageAttachmentMimeTypeEnum;
30
+ /**
31
+ * Original filename of the uploaded file
32
+ * @type {string}
33
+ * @memberof MessageAttachment
34
+ */
35
+ name: string;
36
+ /**
37
+ * Fresh signed GET URL (expires in 30 minutes). Absent for legacy attachments without a fileId.
38
+ * @type {string}
39
+ * @memberof MessageAttachment
40
+ */
41
+ url?: string;
42
+ }
43
+ /**
44
+ * @export
45
+ */
46
+ export declare const MessageAttachmentMimeTypeEnum: {
47
+ readonly ImageJpeg: "image/jpeg";
48
+ readonly ImageJpg: "image/jpg";
49
+ readonly ImagePng: "image/png";
50
+ readonly ImageWebp: "image/webp";
51
+ readonly ApplicationPdf: "application/pdf";
52
+ };
53
+ export type MessageAttachmentMimeTypeEnum = typeof MessageAttachmentMimeTypeEnum[keyof typeof MessageAttachmentMimeTypeEnum];
54
+ /**
55
+ * Check if a given object implements the MessageAttachment interface.
56
+ */
57
+ export declare function instanceOfMessageAttachment(value: object): value is MessageAttachment;
58
+ export declare function MessageAttachmentFromJSON(json: any): MessageAttachment;
59
+ export declare function MessageAttachmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): MessageAttachment;
60
+ export declare function MessageAttachmentToJSON(json: any): MessageAttachment;
61
+ export declare function MessageAttachmentToJSONTyped(value?: MessageAttachment | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,61 @@
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 MessageAttachmentMimeTypeEnum = {
18
+ ImageJpeg: 'image/jpeg',
19
+ ImageJpg: 'image/jpg',
20
+ ImagePng: 'image/png',
21
+ ImageWebp: 'image/webp',
22
+ ApplicationPdf: 'application/pdf'
23
+ };
24
+ /**
25
+ * Check if a given object implements the MessageAttachment interface.
26
+ */
27
+ export function instanceOfMessageAttachment(value) {
28
+ if (!('mimeType' in value) || value['mimeType'] === undefined)
29
+ return false;
30
+ if (!('name' in value) || value['name'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ export function MessageAttachmentFromJSON(json) {
35
+ return MessageAttachmentFromJSONTyped(json, false);
36
+ }
37
+ export function MessageAttachmentFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'fileId': json['fileId'] == null ? undefined : json['fileId'],
43
+ 'mimeType': json['mimeType'],
44
+ 'name': json['name'],
45
+ 'url': json['url'] == null ? undefined : json['url'],
46
+ };
47
+ }
48
+ export function MessageAttachmentToJSON(json) {
49
+ return MessageAttachmentToJSONTyped(json, false);
50
+ }
51
+ export function MessageAttachmentToJSONTyped(value, ignoreDiscriminator = false) {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'fileId': value['fileId'],
57
+ 'mimeType': value['mimeType'],
58
+ 'name': value['name'],
59
+ 'url': value['url'],
60
+ };
61
+ }
@@ -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 MessagePart
16
+ */
17
+ export interface MessagePart {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof MessagePart
22
+ */
23
+ type?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof MessagePart
28
+ */
29
+ text?: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the MessagePart interface.
33
+ */
34
+ export declare function instanceOfMessagePart(value: object): value is MessagePart;
35
+ export declare function MessagePartFromJSON(json: any): MessagePart;
36
+ export declare function MessagePartFromJSONTyped(json: any, ignoreDiscriminator: boolean): MessagePart;
37
+ export declare function MessagePartToJSON(json: any): MessagePart;
38
+ export declare function MessagePartToJSONTyped(value?: MessagePart | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,43 @@
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 MessagePart interface.
16
+ */
17
+ export function instanceOfMessagePart(value) {
18
+ return true;
19
+ }
20
+ export function MessagePartFromJSON(json) {
21
+ return MessagePartFromJSONTyped(json, false);
22
+ }
23
+ export function MessagePartFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'type': json['type'] == null ? undefined : json['type'],
29
+ 'text': json['text'] == null ? undefined : json['text'],
30
+ };
31
+ }
32
+ export function MessagePartToJSON(json) {
33
+ return MessagePartToJSONTyped(json, false);
34
+ }
35
+ export function MessagePartToJSONTyped(value, ignoreDiscriminator = false) {
36
+ if (value == null) {
37
+ return value;
38
+ }
39
+ return {
40
+ 'type': value['type'],
41
+ 'text': value['text'],
42
+ };
43
+ }
@@ -17,7 +17,7 @@ import type { Message } from './Message';
17
17
  */
18
18
  export interface PaginatedMessages {
19
19
  /**
20
- *
20
+ * Array of message objects
21
21
  * @type {Array<Message>}
22
22
  * @memberof PaginatedMessages
23
23
  */
@@ -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 Plan
16
+ */
17
+ export interface Plan {
18
+ /**
19
+ * Unique identifier
20
+ * @type {string}
21
+ * @memberof Plan
22
+ */
23
+ id: string;
24
+ /**
25
+ * Plan name
26
+ * @type {string}
27
+ * @memberof Plan
28
+ */
29
+ name: string;
30
+ /**
31
+ * Plan rank (higher = better)
32
+ * @type {number}
33
+ * @memberof Plan
34
+ */
35
+ rank: number;
36
+ /**
37
+ * Creation timestamp
38
+ * @type {Date}
39
+ * @memberof Plan
40
+ */
41
+ createdAt: Date;
42
+ /**
43
+ * Last update timestamp
44
+ * @type {Date}
45
+ * @memberof Plan
46
+ */
47
+ updatedAt: Date;
48
+ }
49
+ /**
50
+ * Check if a given object implements the Plan interface.
51
+ */
52
+ export declare function instanceOfPlan(value: object): value is Plan;
53
+ export declare function PlanFromJSON(json: any): Plan;
54
+ export declare function PlanFromJSONTyped(json: any, ignoreDiscriminator: boolean): Plan;
55
+ export declare function PlanToJSON(json: any): Plan;
56
+ export declare function PlanToJSONTyped(value?: Plan | null, ignoreDiscriminator?: boolean): any;