@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,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 CreatePlanDto
16
+ */
17
+ export interface CreatePlanDto {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CreatePlanDto
22
+ */
23
+ name: string;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof CreatePlanDto
28
+ */
29
+ rank: number;
30
+ }
31
+ /**
32
+ * Check if a given object implements the CreatePlanDto interface.
33
+ */
34
+ export declare function instanceOfCreatePlanDto(value: object): value is CreatePlanDto;
35
+ export declare function CreatePlanDtoFromJSON(json: any): CreatePlanDto;
36
+ export declare function CreatePlanDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatePlanDto;
37
+ export declare function CreatePlanDtoToJSON(json: any): CreatePlanDto;
38
+ export declare function CreatePlanDtoToJSONTyped(value?: CreatePlanDto | 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.instanceOfCreatePlanDto = instanceOfCreatePlanDto;
17
+ exports.CreatePlanDtoFromJSON = CreatePlanDtoFromJSON;
18
+ exports.CreatePlanDtoFromJSONTyped = CreatePlanDtoFromJSONTyped;
19
+ exports.CreatePlanDtoToJSON = CreatePlanDtoToJSON;
20
+ exports.CreatePlanDtoToJSONTyped = CreatePlanDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the CreatePlanDto interface.
23
+ */
24
+ function instanceOfCreatePlanDto(value) {
25
+ if (!('name' in value) || value['name'] === undefined)
26
+ return false;
27
+ if (!('rank' in value) || value['rank'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function CreatePlanDtoFromJSON(json) {
32
+ return CreatePlanDtoFromJSONTyped(json, false);
33
+ }
34
+ function CreatePlanDtoFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'name': json['name'],
40
+ 'rank': json['rank'],
41
+ };
42
+ }
43
+ function CreatePlanDtoToJSON(json) {
44
+ return CreatePlanDtoToJSONTyped(json, false);
45
+ }
46
+ function CreatePlanDtoToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'name': value['name'],
52
+ 'rank': value['rank'],
53
+ };
54
+ }
@@ -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 FeatureEntity
16
+ */
17
+ export interface FeatureEntity {
18
+ /**
19
+ * Unique identifier
20
+ * @type {string}
21
+ * @memberof FeatureEntity
22
+ */
23
+ id: string;
24
+ /**
25
+ * Feature name
26
+ * @type {string}
27
+ * @memberof FeatureEntity
28
+ */
29
+ name: string;
30
+ /**
31
+ * Feature description
32
+ * @type {string}
33
+ * @memberof FeatureEntity
34
+ */
35
+ description?: string | null;
36
+ /**
37
+ * ID of the plan this feature belongs to
38
+ * @type {string}
39
+ * @memberof FeatureEntity
40
+ */
41
+ planId: string;
42
+ /**
43
+ * Creation timestamp
44
+ * @type {Date}
45
+ * @memberof FeatureEntity
46
+ */
47
+ createdAt: Date;
48
+ /**
49
+ * Last update timestamp
50
+ * @type {Date}
51
+ * @memberof FeatureEntity
52
+ */
53
+ updatedAt: Date;
54
+ }
55
+ /**
56
+ * Check if a given object implements the FeatureEntity interface.
57
+ */
58
+ export declare function instanceOfFeatureEntity(value: object): value is FeatureEntity;
59
+ export declare function FeatureEntityFromJSON(json: any): FeatureEntity;
60
+ export declare function FeatureEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): FeatureEntity;
61
+ export declare function FeatureEntityToJSON(json: any): FeatureEntity;
62
+ export declare function FeatureEntityToJSONTyped(value?: FeatureEntity | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,68 @@
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.instanceOfFeatureEntity = instanceOfFeatureEntity;
17
+ exports.FeatureEntityFromJSON = FeatureEntityFromJSON;
18
+ exports.FeatureEntityFromJSONTyped = FeatureEntityFromJSONTyped;
19
+ exports.FeatureEntityToJSON = FeatureEntityToJSON;
20
+ exports.FeatureEntityToJSONTyped = FeatureEntityToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the FeatureEntity interface.
23
+ */
24
+ function instanceOfFeatureEntity(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('name' in value) || value['name'] === undefined)
28
+ return false;
29
+ if (!('planId' in value) || value['planId'] === undefined)
30
+ return false;
31
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
32
+ return false;
33
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function FeatureEntityFromJSON(json) {
38
+ return FeatureEntityFromJSONTyped(json, false);
39
+ }
40
+ function FeatureEntityFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'id': json['id'],
46
+ 'name': json['name'],
47
+ 'description': json['description'] == null ? undefined : json['description'],
48
+ 'planId': json['planId'],
49
+ 'createdAt': (new Date(json['createdAt'])),
50
+ 'updatedAt': (new Date(json['updatedAt'])),
51
+ };
52
+ }
53
+ function FeatureEntityToJSON(json) {
54
+ return FeatureEntityToJSONTyped(json, false);
55
+ }
56
+ function FeatureEntityToJSONTyped(value, ignoreDiscriminator = false) {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+ return {
61
+ 'id': value['id'],
62
+ 'name': value['name'],
63
+ 'description': value['description'],
64
+ 'planId': value['planId'],
65
+ 'createdAt': value['createdAt'].toISOString(),
66
+ 'updatedAt': value['updatedAt'].toISOString(),
67
+ };
68
+ }
@@ -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,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.instanceOfFeatureOverrideEntity = instanceOfFeatureOverrideEntity;
17
+ exports.FeatureOverrideEntityFromJSON = FeatureOverrideEntityFromJSON;
18
+ exports.FeatureOverrideEntityFromJSONTyped = FeatureOverrideEntityFromJSONTyped;
19
+ exports.FeatureOverrideEntityToJSON = FeatureOverrideEntityToJSON;
20
+ exports.FeatureOverrideEntityToJSONTyped = FeatureOverrideEntityToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the FeatureOverrideEntity interface.
23
+ */
24
+ function instanceOfFeatureOverrideEntity(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('accountId' in value) || value['accountId'] === undefined)
28
+ return false;
29
+ if (!('featureId' in value) || value['featureId'] === undefined)
30
+ return false;
31
+ if (!('enabled' in value) || value['enabled'] === undefined)
32
+ return false;
33
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
34
+ return false;
35
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ function FeatureOverrideEntityFromJSON(json) {
40
+ return FeatureOverrideEntityFromJSONTyped(json, false);
41
+ }
42
+ function FeatureOverrideEntityFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'id': json['id'],
48
+ 'accountId': json['accountId'],
49
+ 'featureId': json['featureId'],
50
+ 'enabled': json['enabled'],
51
+ 'createdAt': (new Date(json['createdAt'])),
52
+ 'updatedAt': (new Date(json['updatedAt'])),
53
+ };
54
+ }
55
+ function FeatureOverrideEntityToJSON(json) {
56
+ return FeatureOverrideEntityToJSONTyped(json, false);
57
+ }
58
+ function FeatureOverrideEntityToJSONTyped(value, ignoreDiscriminator = false) {
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+ return {
63
+ 'id': value['id'],
64
+ 'accountId': value['accountId'],
65
+ 'featureId': value['featureId'],
66
+ 'enabled': value['enabled'],
67
+ 'createdAt': value['createdAt'].toISOString(),
68
+ 'updatedAt': value['updatedAt'].toISOString(),
69
+ };
70
+ }
@@ -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
  */
@@ -13,18 +13,11 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.HealthCheckStatusEnum = void 0;
17
16
  exports.instanceOfHealthCheck = instanceOfHealthCheck;
18
17
  exports.HealthCheckFromJSON = HealthCheckFromJSON;
19
18
  exports.HealthCheckFromJSONTyped = HealthCheckFromJSONTyped;
20
19
  exports.HealthCheckToJSON = HealthCheckToJSON;
21
20
  exports.HealthCheckToJSONTyped = HealthCheckToJSONTyped;
22
- /**
23
- * @export
24
- */
25
- exports.HealthCheckStatusEnum = {
26
- Ok: 'ok'
27
- };
28
21
  /**
29
22
  * Check if a given object implements the HealthCheck interface.
30
23
  */
@@ -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}
@@ -30,6 +30,12 @@ function instanceOfLearningMoment(value) {
30
30
  return false;
31
31
  if (!('messageId' in value) || value['messageId'] === undefined)
32
32
  return false;
33
+ if (!('label' in value) || value['label'] === undefined)
34
+ return false;
35
+ if (!('confidence' in value) || value['confidence'] === undefined)
36
+ return false;
37
+ if (!('reason' in value) || value['reason'] === undefined)
38
+ return false;
33
39
  if (!('occurredOn' in value) || value['occurredOn'] === undefined)
34
40
  return false;
35
41
  if (!('createdAt' in value) || value['createdAt'] === undefined)
@@ -50,9 +56,9 @@ function LearningMomentFromJSONTyped(json, ignoreDiscriminator) {
50
56
  'accountUserId': json['accountUserId'],
51
57
  'chatId': json['chatId'],
52
58
  'messageId': json['messageId'],
53
- 'label': json['label'] == null ? undefined : json['label'],
54
- 'confidence': json['confidence'] == null ? undefined : json['confidence'],
55
- 'reason': json['reason'] == null ? undefined : json['reason'],
59
+ 'label': json['label'],
60
+ 'confidence': json['confidence'],
61
+ 'reason': json['reason'],
56
62
  'occurredOn': (new Date(json['occurredOn'])),
57
63
  'createdAt': (new Date(json['createdAt'])),
58
64
  '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}
@@ -26,10 +26,14 @@ function instanceOfLearningStreakResponse(value) {
26
26
  return false;
27
27
  if (!('longestDays' in value) || value['longestDays'] === undefined)
28
28
  return false;
29
+ if (!('lastMomentDate' in value) || value['lastMomentDate'] === undefined)
30
+ return false;
29
31
  if (!('totalMissedDays' in value) || value['totalMissedDays'] === undefined)
30
32
  return false;
31
33
  if (!('missedDaysInCycle' in value) || value['missedDaysInCycle'] === undefined)
32
34
  return false;
35
+ if (!('lastEvaluatedAt' in value) || value['lastEvaluatedAt'] === undefined)
36
+ return false;
33
37
  if (!('createdAt' in value) || value['createdAt'] === undefined)
34
38
  return false;
35
39
  if (!('updatedAt' in value) || value['updatedAt'] === undefined)
@@ -46,10 +50,10 @@ function LearningStreakResponseFromJSONTyped(json, ignoreDiscriminator) {
46
50
  return {
47
51
  'currentDays': json['currentDays'],
48
52
  'longestDays': json['longestDays'],
49
- 'lastMomentDate': json['lastMomentDate'] == null ? undefined : (new Date(json['lastMomentDate'])),
53
+ 'lastMomentDate': (json['lastMomentDate'] == null ? null : new Date(json['lastMomentDate'])),
50
54
  'totalMissedDays': json['totalMissedDays'],
51
55
  'missedDaysInCycle': json['missedDaysInCycle'],
52
- 'lastEvaluatedAt': json['lastEvaluatedAt'] == null ? undefined : (new Date(json['lastEvaluatedAt'])),
56
+ 'lastEvaluatedAt': (json['lastEvaluatedAt'] == null ? null : new Date(json['lastEvaluatedAt'])),
53
57
  'createdAt': (new Date(json['createdAt'])),
54
58
  'updatedAt': (new Date(json['updatedAt'])),
55
59
  };
@@ -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}
@@ -18,8 +18,8 @@ exports.MessageFromJSON = MessageFromJSON;
18
18
  exports.MessageFromJSONTyped = MessageFromJSONTyped;
19
19
  exports.MessageToJSON = MessageToJSON;
20
20
  exports.MessageToJSONTyped = MessageToJSONTyped;
21
- const MessageAttachmentsInner_1 = require("./MessageAttachmentsInner");
22
- const MessagePartsInner_1 = require("./MessagePartsInner");
21
+ const MessageAttachment_1 = require("./MessageAttachment");
22
+ const MessagePart_1 = require("./MessagePart");
23
23
  /**
24
24
  * Check if a given object implements the Message interface.
25
25
  */
@@ -49,8 +49,8 @@ function MessageFromJSONTyped(json, ignoreDiscriminator) {
49
49
  'id': json['id'],
50
50
  'chatId': json['chatId'],
51
51
  'role': json['role'],
52
- 'parts': (json['parts'].map(MessagePartsInner_1.MessagePartsInnerFromJSON)),
53
- 'attachments': (json['attachments'].map(MessageAttachmentsInner_1.MessageAttachmentsInnerFromJSON)),
52
+ 'parts': (json['parts'].map(MessagePart_1.MessagePartFromJSON)),
53
+ 'attachments': (json['attachments'].map(MessageAttachment_1.MessageAttachmentFromJSON)),
54
54
  'createdAt': (new Date(json['createdAt'])),
55
55
  'isLearningMoment': json['isLearningMoment'] == null ? undefined : json['isLearningMoment'],
56
56
  };
@@ -66,8 +66,8 @@ function MessageToJSONTyped(value, ignoreDiscriminator = false) {
66
66
  'id': value['id'],
67
67
  'chatId': value['chatId'],
68
68
  'role': value['role'],
69
- 'parts': (value['parts'].map(MessagePartsInner_1.MessagePartsInnerToJSON)),
70
- 'attachments': (value['attachments'].map(MessageAttachmentsInner_1.MessageAttachmentsInnerToJSON)),
69
+ 'parts': (value['parts'].map(MessagePart_1.MessagePartToJSON)),
70
+ 'attachments': (value['attachments'].map(MessageAttachment_1.MessageAttachmentToJSON)),
71
71
  'createdAt': value['createdAt'].toISOString(),
72
72
  'isLearningMoment': value['isLearningMoment'],
73
73
  };
@@ -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;