@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
@@ -29,52 +29,42 @@ export interface UpdateServiceTokenRequest {
29
29
  */
30
30
  export declare class ServiceTokensApi extends runtime.BaseAPI {
31
31
  /**
32
- * Creates a new service token with the specified consumer name, role, and account ID (admin only). The generated token is only shown once.
33
32
  * Create a new service token
34
33
  */
35
34
  createServiceTokenRaw(requestParameters: CreateServiceTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateTokenResponse>>;
36
35
  /**
37
- * Creates a new service token with the specified consumer name, role, and account ID (admin only). The generated token is only shown once.
38
36
  * Create a new service token
39
37
  */
40
38
  createServiceToken(requestParameters: CreateServiceTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateTokenResponse>;
41
39
  /**
42
- * Permanently deletes a service token (admin only)
43
40
  * Delete service token
44
41
  */
45
42
  deleteServiceTokenRaw(requestParameters: DeleteServiceTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
46
43
  /**
47
- * Permanently deletes a service token (admin only)
48
44
  * Delete service token
49
45
  */
50
46
  deleteServiceToken(requestParameters: DeleteServiceTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
51
47
  /**
52
- * Retrieves details of a specific service token by its ID (admin only)
53
48
  * Get service token by ID
54
49
  */
55
50
  getServiceTokenRaw(requestParameters: GetServiceTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ServiceToken>>;
56
51
  /**
57
- * Retrieves details of a specific service token by its ID (admin only)
58
52
  * Get service token by ID
59
53
  */
60
54
  getServiceToken(requestParameters: GetServiceTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ServiceToken>;
61
55
  /**
62
- * Retrieves a list of all service tokens (admin only)
63
56
  * List all service tokens
64
57
  */
65
58
  listServiceTokensRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ServiceToken>>>;
66
59
  /**
67
- * Retrieves a list of all service tokens (admin only)
68
60
  * List all service tokens
69
61
  */
70
62
  listServiceTokens(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ServiceToken>>;
71
63
  /**
72
- * Updates the active status of a service token (admin only)
73
64
  * Update service token status
74
65
  */
75
66
  updateServiceTokenRaw(requestParameters: UpdateServiceTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UpdateTokenResponse>>;
76
67
  /**
77
- * Updates the active status of a service token (admin only)
78
68
  * Update service token status
79
69
  */
80
70
  updateServiceToken(requestParameters: UpdateServiceTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UpdateTokenResponse>;
@@ -27,7 +27,6 @@ import { CreateTokenRequestToJSON, CreateTokenResponseFromJSON, ServiceTokenFrom
27
27
  */
28
28
  export class ServiceTokensApi extends runtime.BaseAPI {
29
29
  /**
30
- * Creates a new service token with the specified consumer name, role, and account ID (admin only). The generated token is only shown once.
31
30
  * Create a new service token
32
31
  */
33
32
  createServiceTokenRaw(requestParameters, initOverrides) {
@@ -53,7 +52,6 @@ export class ServiceTokensApi extends runtime.BaseAPI {
53
52
  });
54
53
  }
55
54
  /**
56
- * Creates a new service token with the specified consumer name, role, and account ID (admin only). The generated token is only shown once.
57
55
  * Create a new service token
58
56
  */
59
57
  createServiceToken(requestParameters, initOverrides) {
@@ -63,7 +61,6 @@ export class ServiceTokensApi extends runtime.BaseAPI {
63
61
  });
64
62
  }
65
63
  /**
66
- * Permanently deletes a service token (admin only)
67
64
  * Delete service token
68
65
  */
69
66
  deleteServiceTokenRaw(requestParameters, initOverrides) {
@@ -88,7 +85,6 @@ export class ServiceTokensApi extends runtime.BaseAPI {
88
85
  });
89
86
  }
90
87
  /**
91
- * Permanently deletes a service token (admin only)
92
88
  * Delete service token
93
89
  */
94
90
  deleteServiceToken(requestParameters, initOverrides) {
@@ -97,7 +93,6 @@ export class ServiceTokensApi extends runtime.BaseAPI {
97
93
  });
98
94
  }
99
95
  /**
100
- * Retrieves details of a specific service token by its ID (admin only)
101
96
  * Get service token by ID
102
97
  */
103
98
  getServiceTokenRaw(requestParameters, initOverrides) {
@@ -122,7 +117,6 @@ export class ServiceTokensApi extends runtime.BaseAPI {
122
117
  });
123
118
  }
124
119
  /**
125
- * Retrieves details of a specific service token by its ID (admin only)
126
120
  * Get service token by ID
127
121
  */
128
122
  getServiceToken(requestParameters, initOverrides) {
@@ -132,7 +126,6 @@ export class ServiceTokensApi extends runtime.BaseAPI {
132
126
  });
133
127
  }
134
128
  /**
135
- * Retrieves a list of all service tokens (admin only)
136
129
  * List all service tokens
137
130
  */
138
131
  listServiceTokensRaw(initOverrides) {
@@ -153,7 +146,6 @@ export class ServiceTokensApi extends runtime.BaseAPI {
153
146
  });
154
147
  }
155
148
  /**
156
- * Retrieves a list of all service tokens (admin only)
157
149
  * List all service tokens
158
150
  */
159
151
  listServiceTokens(initOverrides) {
@@ -163,7 +155,6 @@ export class ServiceTokensApi extends runtime.BaseAPI {
163
155
  });
164
156
  }
165
157
  /**
166
- * Updates the active status of a service token (admin only)
167
158
  * Update service token status
168
159
  */
169
160
  updateServiceTokenRaw(requestParameters, initOverrides) {
@@ -193,7 +184,6 @@ export class ServiceTokensApi extends runtime.BaseAPI {
193
184
  });
194
185
  }
195
186
  /**
196
- * Updates the active status of a service token (admin only)
197
187
  * Update service token status
198
188
  */
199
189
  updateServiceToken(requestParameters, initOverrides) {
@@ -16,12 +16,10 @@ import type { Tag } from '../models/index';
16
16
  */
17
17
  export declare class TagsApi extends runtime.BaseAPI {
18
18
  /**
19
- * Retrieves a list of all available tags
20
19
  * List all tags
21
20
  */
22
21
  listTagsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Tag>>>;
23
22
  /**
24
- * Retrieves a list of all available tags
25
23
  * List all tags
26
24
  */
27
25
  listTags(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Tag>>;
@@ -27,7 +27,6 @@ import { TagFromJSON, } from '../models/index';
27
27
  */
28
28
  export class TagsApi extends runtime.BaseAPI {
29
29
  /**
30
- * Retrieves a list of all available tags
31
30
  * List all tags
32
31
  */
33
32
  listTagsRaw(initOverrides) {
@@ -45,7 +44,6 @@ export class TagsApi extends runtime.BaseAPI {
45
44
  });
46
45
  }
47
46
  /**
48
- * Retrieves a list of all available tags
49
47
  * List all tags
50
48
  */
51
49
  listTags(initOverrides) {
@@ -10,14 +10,14 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ListChatVotes200Response, UpsertVoteRequest, Vote } from '../models/index';
13
+ import type { UpsertVoteRequest, Vote, VotesResponse } from '../models/index';
14
14
  export interface ListChatVotesRequest {
15
- xUserId: string;
16
15
  chatId: string;
16
+ xUserId: string;
17
17
  }
18
18
  export interface UpsertChatVoteRequest {
19
- xUserId: string;
20
19
  chatId: string;
20
+ xUserId: string;
21
21
  upsertVoteRequest: UpsertVoteRequest;
22
22
  }
23
23
  /**
@@ -28,12 +28,12 @@ export declare class VotesApi extends runtime.BaseAPI {
28
28
  * Returns all votes for the specified chat belonging to the authenticated account user.
29
29
  * List votes for a chat
30
30
  */
31
- listChatVotesRaw(requestParameters: ListChatVotesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListChatVotes200Response>>;
31
+ listChatVotesRaw(requestParameters: ListChatVotesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VotesResponse>>;
32
32
  /**
33
33
  * Returns all votes for the specified chat belonging to the authenticated account user.
34
34
  * List votes for a chat
35
35
  */
36
- listChatVotes(requestParameters: ListChatVotesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListChatVotes200Response>;
36
+ listChatVotes(requestParameters: ListChatVotesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VotesResponse>;
37
37
  /**
38
38
  * Creates or updates a vote on a message in the specified chat. One vote per message is allowed.
39
39
  * Create or update a vote
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { ListChatVotes200ResponseFromJSON, UpsertVoteRequestToJSON, VoteFromJSON, } from '../models/index';
24
+ import { UpsertVoteRequestToJSON, VoteFromJSON, VotesResponseFromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -32,12 +32,12 @@ export class VotesApi extends runtime.BaseAPI {
32
32
  */
33
33
  listChatVotesRaw(requestParameters, initOverrides) {
34
34
  return __awaiter(this, void 0, void 0, function* () {
35
- if (requestParameters['xUserId'] == null) {
36
- throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling listChatVotes().');
37
- }
38
35
  if (requestParameters['chatId'] == null) {
39
36
  throw new runtime.RequiredError('chatId', 'Required parameter "chatId" was null or undefined when calling listChatVotes().');
40
37
  }
38
+ if (requestParameters['xUserId'] == null) {
39
+ throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling listChatVotes().');
40
+ }
41
41
  const queryParameters = {};
42
42
  const headerParameters = {};
43
43
  if (requestParameters['xUserId'] != null) {
@@ -54,7 +54,7 @@ export class VotesApi extends runtime.BaseAPI {
54
54
  headers: headerParameters,
55
55
  query: queryParameters,
56
56
  }, initOverrides);
57
- return new runtime.JSONApiResponse(response, (jsonValue) => ListChatVotes200ResponseFromJSON(jsonValue));
57
+ return new runtime.JSONApiResponse(response, (jsonValue) => VotesResponseFromJSON(jsonValue));
58
58
  });
59
59
  }
60
60
  /**
@@ -73,12 +73,12 @@ export class VotesApi extends runtime.BaseAPI {
73
73
  */
74
74
  upsertChatVoteRaw(requestParameters, initOverrides) {
75
75
  return __awaiter(this, void 0, void 0, function* () {
76
- if (requestParameters['xUserId'] == null) {
77
- throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling upsertChatVote().');
78
- }
79
76
  if (requestParameters['chatId'] == null) {
80
77
  throw new runtime.RequiredError('chatId', 'Required parameter "chatId" was null or undefined when calling upsertChatVote().');
81
78
  }
79
+ if (requestParameters['xUserId'] == null) {
80
+ throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling upsertChatVote().');
81
+ }
82
82
  if (requestParameters['upsertVoteRequest'] == null) {
83
83
  throw new runtime.RequiredError('upsertVoteRequest', 'Required parameter "upsertVoteRequest" was null or undefined when calling upsertChatVote().');
84
84
  }
@@ -1,11 +1,14 @@
1
1
  export * from './AccountsApi';
2
2
  export * from './ChatsApi';
3
+ export * from './FeatureOverridesApi';
4
+ export * from './FeaturesApi';
3
5
  export * from './FilesApi';
4
6
  export * from './HealthApi';
5
7
  export * from './LearningDaysApi';
6
8
  export * from './LearningMomentsApi';
7
9
  export * from './LearningStreakApi';
8
10
  export * from './MessagesApi';
11
+ export * from './PlansApi';
9
12
  export * from './QuizSessionsApi';
10
13
  export * from './QuizzesApi';
11
14
  export * from './ServiceTokensApi';
@@ -2,12 +2,15 @@
2
2
  /* eslint-disable */
3
3
  export * from './AccountsApi';
4
4
  export * from './ChatsApi';
5
+ export * from './FeatureOverridesApi';
6
+ export * from './FeaturesApi';
5
7
  export * from './FilesApi';
6
8
  export * from './HealthApi';
7
9
  export * from './LearningDaysApi';
8
10
  export * from './LearningMomentsApi';
9
11
  export * from './LearningStreakApi';
10
12
  export * from './MessagesApi';
13
+ export * from './PlansApi';
11
14
  export * from './QuizSessionsApi';
12
15
  export * from './QuizzesApi';
13
16
  export * from './ServiceTokensApi';
@@ -27,7 +27,7 @@ export interface ChatRequest {
27
27
  * @type {string}
28
28
  * @memberof ChatRequest
29
29
  */
30
- chatId?: string;
30
+ chatId: string;
31
31
  /**
32
32
  * File attachments to include with the message (max 10)
33
33
  * @type {Array<ChatRequestAttachmentsInner>}
@@ -18,6 +18,8 @@ import { ChatRequestAttachmentsInnerFromJSON, ChatRequestAttachmentsInnerToJSON,
18
18
  export function instanceOfChatRequest(value) {
19
19
  if (!('message' in value) || value['message'] === undefined)
20
20
  return false;
21
+ if (!('chatId' in value) || value['chatId'] === undefined)
22
+ return false;
21
23
  return true;
22
24
  }
23
25
  export function ChatRequestFromJSON(json) {
@@ -29,7 +31,7 @@ export function ChatRequestFromJSONTyped(json, ignoreDiscriminator) {
29
31
  }
30
32
  return {
31
33
  'message': json['message'],
32
- 'chatId': json['chatId'] == null ? undefined : json['chatId'],
34
+ 'chatId': json['chatId'],
33
35
  'attachments': json['attachments'] == null ? undefined : (json['attachments'].map(ChatRequestAttachmentsInnerFromJSON)),
34
36
  };
35
37
  }
@@ -0,0 +1,44 @@
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 CreateFeatureDto
16
+ */
17
+ export interface CreateFeatureDto {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CreateFeatureDto
22
+ */
23
+ name: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof CreateFeatureDto
28
+ */
29
+ description?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof CreateFeatureDto
34
+ */
35
+ planId: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the CreateFeatureDto interface.
39
+ */
40
+ export declare function instanceOfCreateFeatureDto(value: object): value is CreateFeatureDto;
41
+ export declare function CreateFeatureDtoFromJSON(json: any): CreateFeatureDto;
42
+ export declare function CreateFeatureDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateFeatureDto;
43
+ export declare function CreateFeatureDtoToJSON(json: any): CreateFeatureDto;
44
+ export declare function CreateFeatureDtoToJSONTyped(value?: CreateFeatureDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,49 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Athena API
5
+ * REST API for the Athena system
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the CreateFeatureDto interface.
16
+ */
17
+ export function instanceOfCreateFeatureDto(value) {
18
+ if (!('name' in value) || value['name'] === undefined)
19
+ return false;
20
+ if (!('planId' in value) || value['planId'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function CreateFeatureDtoFromJSON(json) {
25
+ return CreateFeatureDtoFromJSONTyped(json, false);
26
+ }
27
+ export function CreateFeatureDtoFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'name': json['name'],
33
+ 'description': json['description'] == null ? undefined : json['description'],
34
+ 'planId': json['planId'],
35
+ };
36
+ }
37
+ export function CreateFeatureDtoToJSON(json) {
38
+ return CreateFeatureDtoToJSONTyped(json, false);
39
+ }
40
+ export function CreateFeatureDtoToJSONTyped(value, ignoreDiscriminator = false) {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ return {
45
+ 'name': value['name'],
46
+ 'description': value['description'],
47
+ 'planId': value['planId'],
48
+ };
49
+ }
@@ -29,16 +29,20 @@ export interface CreateMessagesRequestMessagesInner {
29
29
  role: CreateMessagesRequestMessagesInnerRoleEnum;
30
30
  /**
31
31
  * Message content parts
32
- * @type {Array<object>}
32
+ * @type {Array<{ [key: string]: any; }>}
33
33
  * @memberof CreateMessagesRequestMessagesInner
34
34
  */
35
- parts: Array<object>;
35
+ parts: Array<{
36
+ [key: string]: any;
37
+ }>;
36
38
  /**
37
39
  * File attachments
38
- * @type {Array<object>}
40
+ * @type {Array<{ [key: string]: any; }>}
39
41
  * @memberof CreateMessagesRequestMessagesInner
40
42
  */
41
- attachments?: Array<object>;
43
+ attachments?: Array<{
44
+ [key: string]: any;
45
+ }>;
42
46
  /**
43
47
  * Message creation timestamp
44
48
  * @type {Date}
@@ -0,0 +1,33 @@
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
+ import type { Message } from './Message';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CreateMessagesResponse
17
+ */
18
+ export interface CreateMessagesResponse {
19
+ /**
20
+ *
21
+ * @type {Array<Message>}
22
+ * @memberof CreateMessagesResponse
23
+ */
24
+ data: Array<Message>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the CreateMessagesResponse interface.
28
+ */
29
+ export declare function instanceOfCreateMessagesResponse(value: object): value is CreateMessagesResponse;
30
+ export declare function CreateMessagesResponseFromJSON(json: any): CreateMessagesResponse;
31
+ export declare function CreateMessagesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateMessagesResponse;
32
+ export declare function CreateMessagesResponseToJSON(json: any): CreateMessagesResponse;
33
+ export declare function CreateMessagesResponseToJSONTyped(value?: CreateMessagesResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,44 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Athena API
5
+ * REST API for the Athena system
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { MessageFromJSON, MessageToJSON, } from './Message';
15
+ /**
16
+ * Check if a given object implements the CreateMessagesResponse interface.
17
+ */
18
+ export function instanceOfCreateMessagesResponse(value) {
19
+ if (!('data' in value) || value['data'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function CreateMessagesResponseFromJSON(json) {
24
+ return CreateMessagesResponseFromJSONTyped(json, false);
25
+ }
26
+ export function CreateMessagesResponseFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'data': (json['data'].map(MessageFromJSON)),
32
+ };
33
+ }
34
+ export function CreateMessagesResponseToJSON(json) {
35
+ return CreateMessagesResponseToJSONTyped(json, false);
36
+ }
37
+ export function CreateMessagesResponseToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'data': (value['data'].map(MessageToJSON)),
43
+ };
44
+ }
@@ -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,47 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Athena API
5
+ * REST API for the Athena system
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the CreatePlanDto interface.
16
+ */
17
+ export function instanceOfCreatePlanDto(value) {
18
+ if (!('name' in value) || value['name'] === undefined)
19
+ return false;
20
+ if (!('rank' in value) || value['rank'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function CreatePlanDtoFromJSON(json) {
25
+ return CreatePlanDtoFromJSONTyped(json, false);
26
+ }
27
+ export function CreatePlanDtoFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'name': json['name'],
33
+ 'rank': json['rank'],
34
+ };
35
+ }
36
+ export function CreatePlanDtoToJSON(json) {
37
+ return CreatePlanDtoToJSONTyped(json, false);
38
+ }
39
+ export function CreatePlanDtoToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'name': value['name'],
45
+ 'rank': value['rank'],
46
+ };
47
+ }
@@ -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;