@instructure/athena-api-client 3.0.5 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -95,6 +95,7 @@ All URIs are relative to *http://localhost:3000*
95
95
  *LearningMomentsApi* | [**getLearningMomentsCount**](docs/LearningMomentsApi.md#getlearningmomentscount) | **GET** /api/v1/learning-moments/count | Get learning moments count
96
96
  *LearningMomentsApi* | [**listLearningMoments**](docs/LearningMomentsApi.md#listlearningmoments) | **GET** /api/v1/learning-moments | List learning moments
97
97
  *LearningSessionEvaluationsApi* | [**listLearningSessionEvaluations**](docs/LearningSessionEvaluationsApi.md#listlearningsessionevaluations) | **GET** /api/v1/chats/{chatId}/learning-session-evaluations | List learning session evaluations for a chat
98
+ *LearningSessionEvaluationsApi* | [**listLearningSessionEvaluationsForConcept**](docs/LearningSessionEvaluationsApi.md#listlearningsessionevaluationsforconcept) | **GET** /api/v1/user-concepts/{conceptId}/learning-session-evaluations | List learning session evaluations for a concept
98
99
  *LearningStreakApi* | [**getLearningStreak**](docs/LearningStreakApi.md#getlearningstreak) | **GET** /api/v1/learning-streak | Get learning streak
99
100
  *MessagesApi* | [**createChatMessages**](docs/MessagesApi.md#createchatmessages) | **POST** /api/v1/chats/{chatId}/messages | Save messages to a chat
100
101
  *MessagesApi* | [**deleteMessages**](docs/MessagesApi.md#deletemessages) | **DELETE** /api/v1/chats/{chatId}/messages | Delete messages from timestamp
@@ -15,6 +15,10 @@ export interface ListLearningSessionEvaluationsRequest {
15
15
  chatId: string;
16
16
  xUserId: string;
17
17
  }
18
+ export interface ListLearningSessionEvaluationsForConceptRequest {
19
+ conceptId: string;
20
+ xUserId: string;
21
+ }
18
22
  /**
19
23
  *
20
24
  */
@@ -29,4 +33,14 @@ export declare class LearningSessionEvaluationsApi extends runtime.BaseAPI {
29
33
  * List learning session evaluations for a chat
30
34
  */
31
35
  listLearningSessionEvaluations(requestParameters: ListLearningSessionEvaluationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<LearningSessionEvaluation>>;
36
+ /**
37
+ * Returns every per-turn evaluator signal (the learning evidence) across all of the authenticated account user\'s learning-session chats (chatType \'level-up\' or \'quick-practice\') where the supplied concept is the chat\'s primary concept. Aggregates a concept\'s evidence across sessions; each row carries its chatId so callers can group by session. Account-user-scoped — only the caller\'s own chats are considered, never another user\'s. Rows are returned in (createdAt, id) ascending order — a chronological evidence stream. Returns an empty array when the caller has no primary-concept session for the concept (the normal \'no evidence yet\' signal); it intentionally does not assert that the concept exists.
38
+ * List learning session evaluations for a concept
39
+ */
40
+ listLearningSessionEvaluationsForConceptRaw(requestParameters: ListLearningSessionEvaluationsForConceptRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<LearningSessionEvaluation>>>;
41
+ /**
42
+ * Returns every per-turn evaluator signal (the learning evidence) across all of the authenticated account user\'s learning-session chats (chatType \'level-up\' or \'quick-practice\') where the supplied concept is the chat\'s primary concept. Aggregates a concept\'s evidence across sessions; each row carries its chatId so callers can group by session. Account-user-scoped — only the caller\'s own chats are considered, never another user\'s. Rows are returned in (createdAt, id) ascending order — a chronological evidence stream. Returns an empty array when the caller has no primary-concept session for the concept (the normal \'no evidence yet\' signal); it intentionally does not assert that the concept exists.
43
+ * List learning session evaluations for a concept
44
+ */
45
+ listLearningSessionEvaluationsForConcept(requestParameters: ListLearningSessionEvaluationsForConceptRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<LearningSessionEvaluation>>;
32
46
  }
@@ -70,5 +70,46 @@ class LearningSessionEvaluationsApi extends runtime.BaseAPI {
70
70
  return yield response.value();
71
71
  });
72
72
  }
73
+ /**
74
+ * Returns every per-turn evaluator signal (the learning evidence) across all of the authenticated account user\'s learning-session chats (chatType \'level-up\' or \'quick-practice\') where the supplied concept is the chat\'s primary concept. Aggregates a concept\'s evidence across sessions; each row carries its chatId so callers can group by session. Account-user-scoped — only the caller\'s own chats are considered, never another user\'s. Rows are returned in (createdAt, id) ascending order — a chronological evidence stream. Returns an empty array when the caller has no primary-concept session for the concept (the normal \'no evidence yet\' signal); it intentionally does not assert that the concept exists.
75
+ * List learning session evaluations for a concept
76
+ */
77
+ listLearningSessionEvaluationsForConceptRaw(requestParameters, initOverrides) {
78
+ return __awaiter(this, void 0, void 0, function* () {
79
+ if (requestParameters['conceptId'] == null) {
80
+ throw new runtime.RequiredError('conceptId', 'Required parameter "conceptId" was null or undefined when calling listLearningSessionEvaluationsForConcept().');
81
+ }
82
+ if (requestParameters['xUserId'] == null) {
83
+ throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling listLearningSessionEvaluationsForConcept().');
84
+ }
85
+ const queryParameters = {};
86
+ const headerParameters = {};
87
+ if (requestParameters['xUserId'] != null) {
88
+ headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
89
+ }
90
+ if (this.configuration && this.configuration.apiKey) {
91
+ headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
92
+ }
93
+ let urlPath = `/api/v1/user-concepts/{conceptId}/learning-session-evaluations`;
94
+ urlPath = urlPath.replace(`{${"conceptId"}}`, encodeURIComponent(String(requestParameters['conceptId'])));
95
+ const response = yield this.request({
96
+ path: urlPath,
97
+ method: 'GET',
98
+ headers: headerParameters,
99
+ query: queryParameters,
100
+ }, initOverrides);
101
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.LearningSessionEvaluationFromJSON));
102
+ });
103
+ }
104
+ /**
105
+ * Returns every per-turn evaluator signal (the learning evidence) across all of the authenticated account user\'s learning-session chats (chatType \'level-up\' or \'quick-practice\') where the supplied concept is the chat\'s primary concept. Aggregates a concept\'s evidence across sessions; each row carries its chatId so callers can group by session. Account-user-scoped — only the caller\'s own chats are considered, never another user\'s. Rows are returned in (createdAt, id) ascending order — a chronological evidence stream. Returns an empty array when the caller has no primary-concept session for the concept (the normal \'no evidence yet\' signal); it intentionally does not assert that the concept exists.
106
+ * List learning session evaluations for a concept
107
+ */
108
+ listLearningSessionEvaluationsForConcept(requestParameters, initOverrides) {
109
+ return __awaiter(this, void 0, void 0, function* () {
110
+ const response = yield this.listLearningSessionEvaluationsForConceptRaw(requestParameters, initOverrides);
111
+ return yield response.value();
112
+ });
113
+ }
73
114
  }
74
115
  exports.LearningSessionEvaluationsApi = LearningSessionEvaluationsApi;
@@ -15,6 +15,10 @@ export interface ListLearningSessionEvaluationsRequest {
15
15
  chatId: string;
16
16
  xUserId: string;
17
17
  }
18
+ export interface ListLearningSessionEvaluationsForConceptRequest {
19
+ conceptId: string;
20
+ xUserId: string;
21
+ }
18
22
  /**
19
23
  *
20
24
  */
@@ -29,4 +33,14 @@ export declare class LearningSessionEvaluationsApi extends runtime.BaseAPI {
29
33
  * List learning session evaluations for a chat
30
34
  */
31
35
  listLearningSessionEvaluations(requestParameters: ListLearningSessionEvaluationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<LearningSessionEvaluation>>;
36
+ /**
37
+ * Returns every per-turn evaluator signal (the learning evidence) across all of the authenticated account user\'s learning-session chats (chatType \'level-up\' or \'quick-practice\') where the supplied concept is the chat\'s primary concept. Aggregates a concept\'s evidence across sessions; each row carries its chatId so callers can group by session. Account-user-scoped — only the caller\'s own chats are considered, never another user\'s. Rows are returned in (createdAt, id) ascending order — a chronological evidence stream. Returns an empty array when the caller has no primary-concept session for the concept (the normal \'no evidence yet\' signal); it intentionally does not assert that the concept exists.
38
+ * List learning session evaluations for a concept
39
+ */
40
+ listLearningSessionEvaluationsForConceptRaw(requestParameters: ListLearningSessionEvaluationsForConceptRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<LearningSessionEvaluation>>>;
41
+ /**
42
+ * Returns every per-turn evaluator signal (the learning evidence) across all of the authenticated account user\'s learning-session chats (chatType \'level-up\' or \'quick-practice\') where the supplied concept is the chat\'s primary concept. Aggregates a concept\'s evidence across sessions; each row carries its chatId so callers can group by session. Account-user-scoped — only the caller\'s own chats are considered, never another user\'s. Rows are returned in (createdAt, id) ascending order — a chronological evidence stream. Returns an empty array when the caller has no primary-concept session for the concept (the normal \'no evidence yet\' signal); it intentionally does not assert that the concept exists.
43
+ * List learning session evaluations for a concept
44
+ */
45
+ listLearningSessionEvaluationsForConcept(requestParameters: ListLearningSessionEvaluationsForConceptRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<LearningSessionEvaluation>>;
32
46
  }
@@ -67,4 +67,45 @@ export class LearningSessionEvaluationsApi extends runtime.BaseAPI {
67
67
  return yield response.value();
68
68
  });
69
69
  }
70
+ /**
71
+ * Returns every per-turn evaluator signal (the learning evidence) across all of the authenticated account user\'s learning-session chats (chatType \'level-up\' or \'quick-practice\') where the supplied concept is the chat\'s primary concept. Aggregates a concept\'s evidence across sessions; each row carries its chatId so callers can group by session. Account-user-scoped — only the caller\'s own chats are considered, never another user\'s. Rows are returned in (createdAt, id) ascending order — a chronological evidence stream. Returns an empty array when the caller has no primary-concept session for the concept (the normal \'no evidence yet\' signal); it intentionally does not assert that the concept exists.
72
+ * List learning session evaluations for a concept
73
+ */
74
+ listLearningSessionEvaluationsForConceptRaw(requestParameters, initOverrides) {
75
+ return __awaiter(this, void 0, void 0, function* () {
76
+ if (requestParameters['conceptId'] == null) {
77
+ throw new runtime.RequiredError('conceptId', 'Required parameter "conceptId" was null or undefined when calling listLearningSessionEvaluationsForConcept().');
78
+ }
79
+ if (requestParameters['xUserId'] == null) {
80
+ throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling listLearningSessionEvaluationsForConcept().');
81
+ }
82
+ const queryParameters = {};
83
+ const headerParameters = {};
84
+ if (requestParameters['xUserId'] != null) {
85
+ headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
86
+ }
87
+ if (this.configuration && this.configuration.apiKey) {
88
+ headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
89
+ }
90
+ let urlPath = `/api/v1/user-concepts/{conceptId}/learning-session-evaluations`;
91
+ urlPath = urlPath.replace(`{${"conceptId"}}`, encodeURIComponent(String(requestParameters['conceptId'])));
92
+ const response = yield this.request({
93
+ path: urlPath,
94
+ method: 'GET',
95
+ headers: headerParameters,
96
+ query: queryParameters,
97
+ }, initOverrides);
98
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(LearningSessionEvaluationFromJSON));
99
+ });
100
+ }
101
+ /**
102
+ * Returns every per-turn evaluator signal (the learning evidence) across all of the authenticated account user\'s learning-session chats (chatType \'level-up\' or \'quick-practice\') where the supplied concept is the chat\'s primary concept. Aggregates a concept\'s evidence across sessions; each row carries its chatId so callers can group by session. Account-user-scoped — only the caller\'s own chats are considered, never another user\'s. Rows are returned in (createdAt, id) ascending order — a chronological evidence stream. Returns an empty array when the caller has no primary-concept session for the concept (the normal \'no evidence yet\' signal); it intentionally does not assert that the concept exists.
103
+ * List learning session evaluations for a concept
104
+ */
105
+ listLearningSessionEvaluationsForConcept(requestParameters, initOverrides) {
106
+ return __awaiter(this, void 0, void 0, function* () {
107
+ const response = yield this.listLearningSessionEvaluationsForConceptRaw(requestParameters, initOverrides);
108
+ return yield response.value();
109
+ });
110
+ }
70
111
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@instructure/athena-api-client",
3
3
  "private": false,
4
- "version": "3.0.5",
4
+ "version": "3.1.0",
5
5
  "description": "OpenAPI client for the Athena API",
6
6
  "author": "Instructure",
7
7
  "repository": {