@easyedu/js-lsm-api 1.102.0 → 1.104.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.
Files changed (118) hide show
  1. package/.openapi-generator/FILES +28 -0
  2. package/README.md +23 -3
  3. package/dist/apis/ChatApi.d.ts +98 -0
  4. package/dist/apis/ChatApi.js +255 -0
  5. package/dist/apis/ContentLibraryQuizApi.d.ts +3 -2
  6. package/dist/apis/ContentLibraryQuizApi.js +5 -2
  7. package/dist/apis/CourseApi.d.ts +4 -0
  8. package/dist/apis/CourseApi.js +12 -0
  9. package/dist/esm/apis/ChatApi.d.ts +98 -0
  10. package/dist/esm/apis/ChatApi.js +255 -0
  11. package/dist/esm/apis/ContentLibraryQuizApi.d.ts +3 -2
  12. package/dist/esm/apis/ContentLibraryQuizApi.js +5 -2
  13. package/dist/esm/apis/CourseApi.d.ts +4 -0
  14. package/dist/esm/apis/CourseApi.js +12 -0
  15. package/dist/esm/models/AdminChatMessage.d.ts +51 -0
  16. package/dist/esm/models/AdminChatMessage.js +54 -0
  17. package/dist/esm/models/AdminConversationDetail.d.ts +90 -0
  18. package/dist/esm/models/AdminConversationDetail.js +81 -0
  19. package/dist/esm/models/AdminConversationList.d.ts +57 -0
  20. package/dist/esm/models/AdminConversationList.js +60 -0
  21. package/dist/esm/models/AdminConversationSummary.d.ts +83 -0
  22. package/dist/esm/models/AdminConversationSummary.js +76 -0
  23. package/dist/esm/models/ChatDailyUsage.d.ts +39 -0
  24. package/dist/esm/models/ChatDailyUsage.js +48 -0
  25. package/dist/esm/models/ChatModelUsage.d.ts +68 -0
  26. package/dist/esm/models/ChatModelUsage.js +67 -0
  27. package/dist/esm/models/ChatQuota.d.ts +56 -0
  28. package/dist/esm/models/ChatQuota.js +59 -0
  29. package/dist/esm/models/ChatQuotaExceeded.d.ts +56 -0
  30. package/dist/esm/models/ChatQuotaExceeded.js +59 -0
  31. package/dist/esm/models/ChatTurnUsage.d.ts +82 -0
  32. package/dist/esm/models/ChatTurnUsage.js +78 -0
  33. package/dist/esm/models/ChatUsageTotals.d.ts +68 -0
  34. package/dist/esm/models/ChatUsageTotals.js +67 -0
  35. package/dist/esm/models/ChatUserIdentity.d.ts +50 -0
  36. package/dist/esm/models/ChatUserIdentity.js +55 -0
  37. package/dist/esm/models/GetChatSettings.d.ts +51 -0
  38. package/dist/esm/models/GetChatSettings.js +57 -0
  39. package/dist/esm/models/GetChatUsage.d.ts +59 -0
  40. package/dist/esm/models/GetChatUsage.js +62 -0
  41. package/dist/esm/models/GetCourseVersionProgression.d.ts +1 -1
  42. package/dist/esm/models/PostCourseVersionItemSession.d.ts +1 -1
  43. package/dist/esm/models/PutChatSettings.d.ts +32 -0
  44. package/dist/esm/models/PutChatSettings.js +43 -0
  45. package/dist/esm/models/index.d.ts +14 -0
  46. package/dist/esm/models/index.js +14 -0
  47. package/dist/models/AdminChatMessage.d.ts +51 -0
  48. package/dist/models/AdminChatMessage.js +61 -0
  49. package/dist/models/AdminConversationDetail.d.ts +90 -0
  50. package/dist/models/AdminConversationDetail.js +88 -0
  51. package/dist/models/AdminConversationList.d.ts +57 -0
  52. package/dist/models/AdminConversationList.js +67 -0
  53. package/dist/models/AdminConversationSummary.d.ts +83 -0
  54. package/dist/models/AdminConversationSummary.js +83 -0
  55. package/dist/models/ChatDailyUsage.d.ts +39 -0
  56. package/dist/models/ChatDailyUsage.js +55 -0
  57. package/dist/models/ChatModelUsage.d.ts +68 -0
  58. package/dist/models/ChatModelUsage.js +74 -0
  59. package/dist/models/ChatQuota.d.ts +56 -0
  60. package/dist/models/ChatQuota.js +66 -0
  61. package/dist/models/ChatQuotaExceeded.d.ts +56 -0
  62. package/dist/models/ChatQuotaExceeded.js +66 -0
  63. package/dist/models/ChatTurnUsage.d.ts +82 -0
  64. package/dist/models/ChatTurnUsage.js +86 -0
  65. package/dist/models/ChatUsageTotals.d.ts +68 -0
  66. package/dist/models/ChatUsageTotals.js +74 -0
  67. package/dist/models/ChatUserIdentity.d.ts +50 -0
  68. package/dist/models/ChatUserIdentity.js +62 -0
  69. package/dist/models/GetChatSettings.d.ts +51 -0
  70. package/dist/models/GetChatSettings.js +65 -0
  71. package/dist/models/GetChatUsage.d.ts +59 -0
  72. package/dist/models/GetChatUsage.js +69 -0
  73. package/dist/models/GetCourseVersionProgression.d.ts +1 -1
  74. package/dist/models/PostCourseVersionItemSession.d.ts +1 -1
  75. package/dist/models/PutChatSettings.d.ts +32 -0
  76. package/dist/models/PutChatSettings.js +50 -0
  77. package/dist/models/index.d.ts +14 -0
  78. package/dist/models/index.js +14 -0
  79. package/docs/AdminChatMessage.md +40 -0
  80. package/docs/AdminConversationDetail.md +52 -0
  81. package/docs/AdminConversationList.md +42 -0
  82. package/docs/AdminConversationSummary.md +50 -0
  83. package/docs/ChatApi.md +422 -0
  84. package/docs/ChatDailyUsage.md +36 -0
  85. package/docs/ChatModelUsage.md +46 -0
  86. package/docs/ChatQuota.md +42 -0
  87. package/docs/ChatQuotaExceeded.md +42 -0
  88. package/docs/ChatTurnUsage.md +48 -0
  89. package/docs/ChatUsageTotals.md +46 -0
  90. package/docs/ChatUserIdentity.md +40 -0
  91. package/docs/ContentLibraryQuizApi.md +7 -4
  92. package/docs/CourseApi.md +16 -4
  93. package/docs/GetChatSettings.md +38 -0
  94. package/docs/GetChatUsage.md +42 -0
  95. package/docs/GetCourseVersionProgression.md +1 -1
  96. package/docs/PostCourseVersionItemSession.md +1 -1
  97. package/docs/PutChatSettings.md +34 -0
  98. package/package.json +1 -1
  99. package/src/apis/ChatApi.ts +339 -0
  100. package/src/apis/ContentLibraryQuizApi.ts +7 -2
  101. package/src/apis/CourseApi.ts +20 -0
  102. package/src/models/AdminChatMessage.ts +100 -0
  103. package/src/models/AdminConversationDetail.ts +175 -0
  104. package/src/models/AdminConversationList.ts +110 -0
  105. package/src/models/AdminConversationSummary.ts +159 -0
  106. package/src/models/ChatDailyUsage.ts +83 -0
  107. package/src/models/ChatModelUsage.ts +120 -0
  108. package/src/models/ChatQuota.ts +102 -0
  109. package/src/models/ChatQuotaExceeded.ts +102 -0
  110. package/src/models/ChatTurnUsage.ts +140 -0
  111. package/src/models/ChatUsageTotals.ts +120 -0
  112. package/src/models/ChatUserIdentity.ts +93 -0
  113. package/src/models/GetChatSettings.ts +94 -0
  114. package/src/models/GetChatUsage.ts +124 -0
  115. package/src/models/GetCourseVersionProgression.ts +1 -1
  116. package/src/models/PostCourseVersionItemSession.ts +1 -1
  117. package/src/models/PutChatSettings.ts +66 -0
  118. package/src/models/index.ts +14 -0
@@ -0,0 +1,40 @@
1
+
2
+ # ChatUserIdentity
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | string
10
+ `firstName` | string
11
+ `lastName` | string
12
+ `email` | string
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { ChatUserIdentity } from '@easyedu/js-lsm-api'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "id": null,
22
+ "firstName": null,
23
+ "lastName": null,
24
+ "email": null,
25
+ } satisfies ChatUserIdentity
26
+
27
+ console.log(example)
28
+
29
+ // Convert the instance to a JSON string
30
+ const exampleJSON: string = JSON.stringify(example)
31
+ console.log(exampleJSON)
32
+
33
+ // Parse the JSON string back to an object
34
+ const exampleParsed = JSON.parse(exampleJSON) as ChatUserIdentity
35
+ console.log(exampleParsed)
36
+ ```
37
+
38
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
39
+
40
+
@@ -15,7 +15,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
15
15
  | [**getLibraryQuizSessionResults**](ContentLibraryQuizApi.md#getlibraryquizsessionresults) | **GET** /quiz/sessions/{sessionId}/results | Get reusable quiz session results |
16
16
  | [**getLibraryQuizUsage**](ContentLibraryQuizApi.md#getlibraryquizusage) | **GET** /content-library/quizzes/{quizId}/usage | Get course and learner usage for a reusable quiz |
17
17
  | [**getLibraryQuizVersion**](ContentLibraryQuizApi.md#getlibraryquizversion) | **GET** /content-library/quizzes/{quizId}/versions/{versionId} | Get a reusable quiz version |
18
- | [**postCourseLibraryQuizSession**](ContentLibraryQuizApi.md#postcourselibraryquizsession) | **POST** /courses/{courseId}/versions/{courseVersionId}/items/{itemId}/quiz-sessions | Start or resume a live attempt for a course-pinned quiz version |
18
+ | [**postCourseLibraryQuizSession**](ContentLibraryQuizApi.md#postcourselibraryquizsession) | **POST** /courses/{courseId}/versions/{courseVersionId}/items/{itemId}/quiz-sessions | Start or resume a live or sandbox-preview attempt for a course-pinned quiz version |
19
19
  | [**postLibraryQuiz**](ContentLibraryQuizApi.md#postlibraryquiz) | **POST** /content-library/quizzes | Create a reusable quiz and its first draft version |
20
20
  | [**postLibraryQuizArchive**](ContentLibraryQuizApi.md#postlibraryquizarchive) | **POST** /content-library/quizzes/{quizId}/archive | Archive a reusable quiz |
21
21
  | [**postLibraryQuizCriteriaPreview**](ContentLibraryQuizApi.md#postlibraryquizcriteriapreview) | **POST** /content-library/quizzes/{quizId}/versions/{versionId}/criteria/preview | Preview questions matching unsaved quiz-selection criteria |
@@ -810,9 +810,9 @@ No authorization required
810
810
 
811
811
  ## postCourseLibraryQuizSession
812
812
 
813
- > GetLibraryQuizSession postCourseLibraryQuizSession(courseId, courseVersionId, itemId, postCourseLibraryQuizSession)
813
+ > GetLibraryQuizSession postCourseLibraryQuizSession(courseId, courseVersionId, itemId, preview, postCourseLibraryQuizSession)
814
814
 
815
- Start or resume a live attempt for a course-pinned quiz version
815
+ Start or resume a live or sandbox-preview attempt for a course-pinned quiz version
816
816
 
817
817
  ### Example
818
818
 
@@ -834,6 +834,8 @@ async function example() {
834
834
  courseVersionId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
835
835
  // string
836
836
  itemId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
837
+ // boolean | Start or resume an isolated sandbox quiz attempt for course preview. (optional)
838
+ preview: true,
837
839
  // PostCourseLibraryQuizSession (optional)
838
840
  postCourseLibraryQuizSession: ...,
839
841
  } satisfies PostCourseLibraryQuizSessionRequest;
@@ -858,6 +860,7 @@ example().catch(console.error);
858
860
  | **courseId** | `string` | | [Defaults to `undefined`] |
859
861
  | **courseVersionId** | `string` | | [Defaults to `undefined`] |
860
862
  | **itemId** | `string` | | [Defaults to `undefined`] |
863
+ | **preview** | `boolean` | Start or resume an isolated sandbox quiz attempt for course preview. | [Optional] [Defaults to `false`] |
861
864
  | **postCourseLibraryQuizSession** | [PostCourseLibraryQuizSession](PostCourseLibraryQuizSession.md) | | [Optional] |
862
865
 
863
866
  ### Return type
@@ -877,7 +880,7 @@ No authorization required
877
880
  ### HTTP response details
878
881
  | Status code | Description | Response headers |
879
882
  |-------------|-------------|------------------|
880
- | **200** | Current or newly created live quiz session | - |
883
+ | **200** | Current or newly created live or sandbox-preview quiz session | - |
881
884
  | **403** | Learner is not assigned to the pinned course version | - |
882
885
  | **409** | Maximum attempts reached | - |
883
886
 
package/docs/CourseApi.md CHANGED
@@ -1107,7 +1107,7 @@ No authorization required
1107
1107
 
1108
1108
  ## getCourseVersion
1109
1109
 
1110
- > GetCourseVersion getCourseVersion(courseId, courseVersionId)
1110
+ > GetCourseVersion getCourseVersion(courseId, courseVersionId, preview)
1111
1111
 
1112
1112
  Get one immutable course version or preview the owned draft
1113
1113
 
@@ -1129,6 +1129,8 @@ async function example() {
1129
1129
  courseId: courseId_example,
1130
1130
  // string
1131
1131
  courseVersionId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
1132
+ // boolean | Return the owning portal\'s draft or historical version with student visibility rules applied. (optional)
1133
+ preview: true,
1132
1134
  } satisfies GetCourseVersionRequest;
1133
1135
 
1134
1136
  try {
@@ -1150,6 +1152,7 @@ example().catch(console.error);
1150
1152
  |------------- | ------------- | ------------- | -------------|
1151
1153
  | **courseId** | `string` | | [Defaults to `undefined`] |
1152
1154
  | **courseVersionId** | `string` | | [Defaults to `undefined`] |
1155
+ | **preview** | `boolean` | Return the owning portal\'s draft or historical version with student visibility rules applied. | [Optional] [Defaults to `false`] |
1153
1156
 
1154
1157
  ### Return type
1155
1158
 
@@ -1176,7 +1179,7 @@ No authorization required
1176
1179
 
1177
1180
  ## getCourseVersionItemLaunch
1178
1181
 
1179
- > GetCourseVersionItemLaunch getCourseVersionItemLaunch(courseId, courseVersionId, itemId)
1182
+ > GetCourseVersionItemLaunch getCourseVersionItemLaunch(courseId, courseVersionId, itemId, preview)
1180
1183
 
1181
1184
  Resolve the exact immutable resource launch selected by a course version
1182
1185
 
@@ -1200,6 +1203,8 @@ async function example() {
1200
1203
  courseVersionId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
1201
1204
  // string
1202
1205
  itemId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
1206
+ // boolean | Resolve this placement in isolated student-view preview mode. (optional)
1207
+ preview: true,
1203
1208
  } satisfies GetCourseVersionItemLaunchRequest;
1204
1209
 
1205
1210
  try {
@@ -1222,6 +1227,7 @@ example().catch(console.error);
1222
1227
  | **courseId** | `string` | | [Defaults to `undefined`] |
1223
1228
  | **courseVersionId** | `string` | | [Defaults to `undefined`] |
1224
1229
  | **itemId** | `string` | | [Defaults to `undefined`] |
1230
+ | **preview** | `boolean` | Resolve this placement in isolated student-view preview mode. | [Optional] [Defaults to `false`] |
1225
1231
 
1226
1232
  ### Return type
1227
1233
 
@@ -1314,7 +1320,7 @@ No authorization required
1314
1320
 
1315
1321
  ## getCourseVersionProgression
1316
1322
 
1317
- > GetCourseVersionProgression getCourseVersionProgression(courseId, courseVersionId)
1323
+ > GetCourseVersionProgression getCourseVersionProgression(courseId, courseVersionId, preview)
1318
1324
 
1319
1325
  Get learner-specific completion and section lock state
1320
1326
 
@@ -1336,6 +1342,8 @@ async function example() {
1336
1342
  courseId: courseId_example,
1337
1343
  // string
1338
1344
  courseVersionId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
1345
+ // boolean | Read isolated sandbox progress while previewing an owned draft or historical version. (optional)
1346
+ preview: true,
1339
1347
  } satisfies GetCourseVersionProgressionRequest;
1340
1348
 
1341
1349
  try {
@@ -1357,6 +1365,7 @@ example().catch(console.error);
1357
1365
  |------------- | ------------- | ------------- | -------------|
1358
1366
  | **courseId** | `string` | | [Defaults to `undefined`] |
1359
1367
  | **courseVersionId** | `string` | | [Defaults to `undefined`] |
1368
+ | **preview** | `boolean` | Read isolated sandbox progress while previewing an owned draft or historical version. | [Optional] [Defaults to `false`] |
1360
1369
 
1361
1370
  ### Return type
1362
1371
 
@@ -2085,7 +2094,7 @@ No authorization required
2085
2094
 
2086
2095
  ## postCourseVersionItemSession
2087
2096
 
2088
- > GetCourseVersionItemSession postCourseVersionItemSession(courseId, courseVersionId, itemId, postCourseVersionItemSession)
2097
+ > GetCourseVersionItemSession postCourseVersionItemSession(courseId, courseVersionId, itemId, preview, postCourseVersionItemSession)
2089
2098
 
2090
2099
  Start or resume a version-pinned resource attempt
2091
2100
 
@@ -2109,6 +2118,8 @@ async function example() {
2109
2118
  courseVersionId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
2110
2119
  // string
2111
2120
  itemId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
2121
+ // boolean | Start or resume an isolated sandbox attempt for course preview. (optional)
2122
+ preview: true,
2112
2123
  // PostCourseVersionItemSession (optional)
2113
2124
  postCourseVersionItemSession: ...,
2114
2125
  } satisfies PostCourseVersionItemSessionRequest;
@@ -2133,6 +2144,7 @@ example().catch(console.error);
2133
2144
  | **courseId** | `string` | | [Defaults to `undefined`] |
2134
2145
  | **courseVersionId** | `string` | | [Defaults to `undefined`] |
2135
2146
  | **itemId** | `string` | | [Defaults to `undefined`] |
2147
+ | **preview** | `boolean` | Start or resume an isolated sandbox attempt for course preview. | [Optional] [Defaults to `false`] |
2136
2148
  | **postCourseVersionItemSession** | [PostCourseVersionItemSession](PostCourseVersionItemSession.md) | | [Optional] |
2137
2149
 
2138
2150
  ### Return type
@@ -0,0 +1,38 @@
1
+
2
+ # GetChatSettings
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `learnerDailyMessageLimit` | number
10
+ `resetPolicy` | string
11
+ `updatedAt` | number
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { GetChatSettings } from '@easyedu/js-lsm-api'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "learnerDailyMessageLimit": null,
21
+ "resetPolicy": null,
22
+ "updatedAt": null,
23
+ } satisfies GetChatSettings
24
+
25
+ console.log(example)
26
+
27
+ // Convert the instance to a JSON string
28
+ const exampleJSON: string = JSON.stringify(example)
29
+ console.log(exampleJSON)
30
+
31
+ // Parse the JSON string back to an object
32
+ const exampleParsed = JSON.parse(exampleJSON) as GetChatSettings
33
+ console.log(exampleParsed)
34
+ ```
35
+
36
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
37
+
38
+
@@ -0,0 +1,42 @@
1
+
2
+ # GetChatUsage
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `from` | number
10
+ `to` | number
11
+ `totals` | [ChatUsageTotals](ChatUsageTotals.md)
12
+ `daily` | [Array<ChatDailyUsage>](ChatDailyUsage.md)
13
+ `modelUsage` | [Array<ChatModelUsage>](ChatModelUsage.md)
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import type { GetChatUsage } from '@easyedu/js-lsm-api'
19
+
20
+ // TODO: Update the object below with actual values
21
+ const example = {
22
+ "from": null,
23
+ "to": null,
24
+ "totals": null,
25
+ "daily": null,
26
+ "modelUsage": null,
27
+ } satisfies GetChatUsage
28
+
29
+ console.log(example)
30
+
31
+ // Convert the instance to a JSON string
32
+ const exampleJSON: string = JSON.stringify(example)
33
+ console.log(exampleJSON)
34
+
35
+ // Parse the JSON string back to an object
36
+ const exampleParsed = JSON.parse(exampleJSON) as GetChatUsage
37
+ console.log(exampleParsed)
38
+ ```
39
+
40
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
41
+
42
+
@@ -1,7 +1,7 @@
1
1
 
2
2
  # GetCourseVersionProgression
3
3
 
4
- Learner-specific completion and lock state for an enrollment-pinned course version.
4
+ Learner-specific live completion state, or isolated sandbox completion state during an authorized course preview.
5
5
 
6
6
  ## Properties
7
7
 
@@ -1,7 +1,7 @@
1
1
 
2
2
  # PostCourseVersionItemSession
3
3
 
4
- Start or resume a learner attempt for an exact course resource version.
4
+ Start or resume a learner attempt, or an isolated sandbox preview attempt, for an exact course resource version.
5
5
 
6
6
  ## Properties
7
7
 
@@ -0,0 +1,34 @@
1
+
2
+ # PutChatSettings
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `learnerDailyMessageLimit` | number
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { PutChatSettings } from '@easyedu/js-lsm-api'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "learnerDailyMessageLimit": null,
19
+ } satisfies PutChatSettings
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as PutChatSettings
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyedu/js-lsm-api",
3
- "version": "1.102.0",
3
+ "version": "1.104.0",
4
4
  "description": "OpenAPI client for @easyedu/js-lsm-api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {