@easyedu/js-lsm-api 1.103.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 (98) hide show
  1. package/.openapi-generator/FILES +28 -0
  2. package/README.md +22 -2
  3. package/dist/apis/ChatApi.d.ts +98 -0
  4. package/dist/apis/ChatApi.js +255 -0
  5. package/dist/esm/apis/ChatApi.d.ts +98 -0
  6. package/dist/esm/apis/ChatApi.js +255 -0
  7. package/dist/esm/models/AdminChatMessage.d.ts +51 -0
  8. package/dist/esm/models/AdminChatMessage.js +54 -0
  9. package/dist/esm/models/AdminConversationDetail.d.ts +90 -0
  10. package/dist/esm/models/AdminConversationDetail.js +81 -0
  11. package/dist/esm/models/AdminConversationList.d.ts +57 -0
  12. package/dist/esm/models/AdminConversationList.js +60 -0
  13. package/dist/esm/models/AdminConversationSummary.d.ts +83 -0
  14. package/dist/esm/models/AdminConversationSummary.js +76 -0
  15. package/dist/esm/models/ChatDailyUsage.d.ts +39 -0
  16. package/dist/esm/models/ChatDailyUsage.js +48 -0
  17. package/dist/esm/models/ChatModelUsage.d.ts +68 -0
  18. package/dist/esm/models/ChatModelUsage.js +67 -0
  19. package/dist/esm/models/ChatQuota.d.ts +56 -0
  20. package/dist/esm/models/ChatQuota.js +59 -0
  21. package/dist/esm/models/ChatQuotaExceeded.d.ts +56 -0
  22. package/dist/esm/models/ChatQuotaExceeded.js +59 -0
  23. package/dist/esm/models/ChatTurnUsage.d.ts +82 -0
  24. package/dist/esm/models/ChatTurnUsage.js +78 -0
  25. package/dist/esm/models/ChatUsageTotals.d.ts +68 -0
  26. package/dist/esm/models/ChatUsageTotals.js +67 -0
  27. package/dist/esm/models/ChatUserIdentity.d.ts +50 -0
  28. package/dist/esm/models/ChatUserIdentity.js +55 -0
  29. package/dist/esm/models/GetChatSettings.d.ts +51 -0
  30. package/dist/esm/models/GetChatSettings.js +57 -0
  31. package/dist/esm/models/GetChatUsage.d.ts +59 -0
  32. package/dist/esm/models/GetChatUsage.js +62 -0
  33. package/dist/esm/models/PutChatSettings.d.ts +32 -0
  34. package/dist/esm/models/PutChatSettings.js +43 -0
  35. package/dist/esm/models/index.d.ts +14 -0
  36. package/dist/esm/models/index.js +14 -0
  37. package/dist/models/AdminChatMessage.d.ts +51 -0
  38. package/dist/models/AdminChatMessage.js +61 -0
  39. package/dist/models/AdminConversationDetail.d.ts +90 -0
  40. package/dist/models/AdminConversationDetail.js +88 -0
  41. package/dist/models/AdminConversationList.d.ts +57 -0
  42. package/dist/models/AdminConversationList.js +67 -0
  43. package/dist/models/AdminConversationSummary.d.ts +83 -0
  44. package/dist/models/AdminConversationSummary.js +83 -0
  45. package/dist/models/ChatDailyUsage.d.ts +39 -0
  46. package/dist/models/ChatDailyUsage.js +55 -0
  47. package/dist/models/ChatModelUsage.d.ts +68 -0
  48. package/dist/models/ChatModelUsage.js +74 -0
  49. package/dist/models/ChatQuota.d.ts +56 -0
  50. package/dist/models/ChatQuota.js +66 -0
  51. package/dist/models/ChatQuotaExceeded.d.ts +56 -0
  52. package/dist/models/ChatQuotaExceeded.js +66 -0
  53. package/dist/models/ChatTurnUsage.d.ts +82 -0
  54. package/dist/models/ChatTurnUsage.js +86 -0
  55. package/dist/models/ChatUsageTotals.d.ts +68 -0
  56. package/dist/models/ChatUsageTotals.js +74 -0
  57. package/dist/models/ChatUserIdentity.d.ts +50 -0
  58. package/dist/models/ChatUserIdentity.js +62 -0
  59. package/dist/models/GetChatSettings.d.ts +51 -0
  60. package/dist/models/GetChatSettings.js +65 -0
  61. package/dist/models/GetChatUsage.d.ts +59 -0
  62. package/dist/models/GetChatUsage.js +69 -0
  63. package/dist/models/PutChatSettings.d.ts +32 -0
  64. package/dist/models/PutChatSettings.js +50 -0
  65. package/dist/models/index.d.ts +14 -0
  66. package/dist/models/index.js +14 -0
  67. package/docs/AdminChatMessage.md +40 -0
  68. package/docs/AdminConversationDetail.md +52 -0
  69. package/docs/AdminConversationList.md +42 -0
  70. package/docs/AdminConversationSummary.md +50 -0
  71. package/docs/ChatApi.md +422 -0
  72. package/docs/ChatDailyUsage.md +36 -0
  73. package/docs/ChatModelUsage.md +46 -0
  74. package/docs/ChatQuota.md +42 -0
  75. package/docs/ChatQuotaExceeded.md +42 -0
  76. package/docs/ChatTurnUsage.md +48 -0
  77. package/docs/ChatUsageTotals.md +46 -0
  78. package/docs/ChatUserIdentity.md +40 -0
  79. package/docs/GetChatSettings.md +38 -0
  80. package/docs/GetChatUsage.md +42 -0
  81. package/docs/PutChatSettings.md +34 -0
  82. package/package.json +1 -1
  83. package/src/apis/ChatApi.ts +339 -0
  84. package/src/models/AdminChatMessage.ts +100 -0
  85. package/src/models/AdminConversationDetail.ts +175 -0
  86. package/src/models/AdminConversationList.ts +110 -0
  87. package/src/models/AdminConversationSummary.ts +159 -0
  88. package/src/models/ChatDailyUsage.ts +83 -0
  89. package/src/models/ChatModelUsage.ts +120 -0
  90. package/src/models/ChatQuota.ts +102 -0
  91. package/src/models/ChatQuotaExceeded.ts +102 -0
  92. package/src/models/ChatTurnUsage.ts +140 -0
  93. package/src/models/ChatUsageTotals.ts +120 -0
  94. package/src/models/ChatUserIdentity.ts +93 -0
  95. package/src/models/GetChatSettings.ts +94 -0
  96. package/src/models/GetChatUsage.ts +124 -0
  97. package/src/models/PutChatSettings.ts +66 -0
  98. package/src/models/index.ts +14 -0
@@ -1,3 +1,7 @@
1
+ export * from './AdminChatMessage';
2
+ export * from './AdminConversationDetail';
3
+ export * from './AdminConversationList';
4
+ export * from './AdminConversationSummary';
1
5
  export * from './ArtifactConflict';
2
6
  export * from './BadgeIssuer';
3
7
  export * from './Certificate';
@@ -20,6 +24,13 @@ export * from './CertificatePublic';
20
24
  export * from './CertificateRenewalPolicy';
21
25
  export * from './CertificateTemplate';
22
26
  export * from './CertificateTemplateVersion';
27
+ export * from './ChatDailyUsage';
28
+ export * from './ChatModelUsage';
29
+ export * from './ChatQuota';
30
+ export * from './ChatQuotaExceeded';
31
+ export * from './ChatTurnUsage';
32
+ export * from './ChatUsageTotals';
33
+ export * from './ChatUserIdentity';
23
34
  export * from './ContentLaunchMode';
24
35
  export * from './ContentLibraryVersionStatus';
25
36
  export * from './CourseCatalog';
@@ -39,6 +50,8 @@ export * from './GetCertificateTemplateList';
39
50
  export * from './GetChangelogEntry';
40
51
  export * from './GetChangelogList';
41
52
  export * from './GetChatMessage';
53
+ export * from './GetChatSettings';
54
+ export * from './GetChatUsage';
42
55
  export * from './GetContentLibraryVersion';
43
56
  export * from './GetConversation';
44
57
  export * from './GetConversationList';
@@ -218,6 +231,7 @@ export * from './PutBadgeIssuer';
218
231
  export * from './PutCertificateConfig';
219
232
  export * from './PutCertificateTemplate';
220
233
  export * from './PutCertificateTemplateDraft';
234
+ export * from './PutChatSettings';
221
235
  export * from './PutCourse';
222
236
  export * from './PutCourseCatalog';
223
237
  export * from './PutCourseEnrollment';
@@ -16,6 +16,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  /* tslint:disable */
18
18
  /* eslint-disable */
19
+ __exportStar(require("./AdminChatMessage"), exports);
20
+ __exportStar(require("./AdminConversationDetail"), exports);
21
+ __exportStar(require("./AdminConversationList"), exports);
22
+ __exportStar(require("./AdminConversationSummary"), exports);
19
23
  __exportStar(require("./ArtifactConflict"), exports);
20
24
  __exportStar(require("./BadgeIssuer"), exports);
21
25
  __exportStar(require("./Certificate"), exports);
@@ -38,6 +42,13 @@ __exportStar(require("./CertificatePublic"), exports);
38
42
  __exportStar(require("./CertificateRenewalPolicy"), exports);
39
43
  __exportStar(require("./CertificateTemplate"), exports);
40
44
  __exportStar(require("./CertificateTemplateVersion"), exports);
45
+ __exportStar(require("./ChatDailyUsage"), exports);
46
+ __exportStar(require("./ChatModelUsage"), exports);
47
+ __exportStar(require("./ChatQuota"), exports);
48
+ __exportStar(require("./ChatQuotaExceeded"), exports);
49
+ __exportStar(require("./ChatTurnUsage"), exports);
50
+ __exportStar(require("./ChatUsageTotals"), exports);
51
+ __exportStar(require("./ChatUserIdentity"), exports);
41
52
  __exportStar(require("./ContentLaunchMode"), exports);
42
53
  __exportStar(require("./ContentLibraryVersionStatus"), exports);
43
54
  __exportStar(require("./CourseCatalog"), exports);
@@ -57,6 +68,8 @@ __exportStar(require("./GetCertificateTemplateList"), exports);
57
68
  __exportStar(require("./GetChangelogEntry"), exports);
58
69
  __exportStar(require("./GetChangelogList"), exports);
59
70
  __exportStar(require("./GetChatMessage"), exports);
71
+ __exportStar(require("./GetChatSettings"), exports);
72
+ __exportStar(require("./GetChatUsage"), exports);
60
73
  __exportStar(require("./GetContentLibraryVersion"), exports);
61
74
  __exportStar(require("./GetConversation"), exports);
62
75
  __exportStar(require("./GetConversationList"), exports);
@@ -236,6 +249,7 @@ __exportStar(require("./PutBadgeIssuer"), exports);
236
249
  __exportStar(require("./PutCertificateConfig"), exports);
237
250
  __exportStar(require("./PutCertificateTemplate"), exports);
238
251
  __exportStar(require("./PutCertificateTemplateDraft"), exports);
252
+ __exportStar(require("./PutChatSettings"), exports);
239
253
  __exportStar(require("./PutCourse"), exports);
240
254
  __exportStar(require("./PutCourseCatalog"), exports);
241
255
  __exportStar(require("./PutCourseEnrollment"), exports);
@@ -0,0 +1,40 @@
1
+
2
+ # AdminChatMessage
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `role` | string
10
+ `content` | string
11
+ `createdAt` | number
12
+ `usage` | [ChatTurnUsage](ChatTurnUsage.md)
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { AdminChatMessage } from '@easyedu/js-lsm-api'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "role": null,
22
+ "content": null,
23
+ "createdAt": null,
24
+ "usage": null,
25
+ } satisfies AdminChatMessage
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 AdminChatMessage
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
+
@@ -0,0 +1,52 @@
1
+
2
+ # AdminConversationDetail
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | string
10
+ `user` | [ChatUserIdentity](ChatUserIdentity.md)
11
+ `title` | string
12
+ `createdAt` | number
13
+ `updatedAt` | number
14
+ `messageCount` | number
15
+ `model` | string
16
+ `usage` | [ChatUsageTotals](ChatUsageTotals.md)
17
+ `modelUsage` | [Array<ChatModelUsage>](ChatModelUsage.md)
18
+ `messages` | [Array<AdminChatMessage>](AdminChatMessage.md)
19
+
20
+ ## Example
21
+
22
+ ```typescript
23
+ import type { AdminConversationDetail } from '@easyedu/js-lsm-api'
24
+
25
+ // TODO: Update the object below with actual values
26
+ const example = {
27
+ "id": null,
28
+ "user": null,
29
+ "title": null,
30
+ "createdAt": null,
31
+ "updatedAt": null,
32
+ "messageCount": null,
33
+ "model": null,
34
+ "usage": null,
35
+ "modelUsage": null,
36
+ "messages": null,
37
+ } satisfies AdminConversationDetail
38
+
39
+ console.log(example)
40
+
41
+ // Convert the instance to a JSON string
42
+ const exampleJSON: string = JSON.stringify(example)
43
+ console.log(exampleJSON)
44
+
45
+ // Parse the JSON string back to an object
46
+ const exampleParsed = JSON.parse(exampleJSON) as AdminConversationDetail
47
+ console.log(exampleParsed)
48
+ ```
49
+
50
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
51
+
52
+
@@ -0,0 +1,42 @@
1
+
2
+ # AdminConversationList
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `page` | number
10
+ `pageSize` | number
11
+ `totalPages` | number
12
+ `totalItems` | number
13
+ `items` | [Array<AdminConversationSummary>](AdminConversationSummary.md)
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import type { AdminConversationList } from '@easyedu/js-lsm-api'
19
+
20
+ // TODO: Update the object below with actual values
21
+ const example = {
22
+ "page": null,
23
+ "pageSize": null,
24
+ "totalPages": null,
25
+ "totalItems": null,
26
+ "items": null,
27
+ } satisfies AdminConversationList
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 AdminConversationList
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
+
@@ -0,0 +1,50 @@
1
+
2
+ # AdminConversationSummary
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | string
10
+ `user` | [ChatUserIdentity](ChatUserIdentity.md)
11
+ `title` | string
12
+ `createdAt` | number
13
+ `updatedAt` | number
14
+ `messageCount` | number
15
+ `model` | string
16
+ `usage` | [ChatUsageTotals](ChatUsageTotals.md)
17
+ `modelUsage` | [Array<ChatModelUsage>](ChatModelUsage.md)
18
+
19
+ ## Example
20
+
21
+ ```typescript
22
+ import type { AdminConversationSummary } from '@easyedu/js-lsm-api'
23
+
24
+ // TODO: Update the object below with actual values
25
+ const example = {
26
+ "id": null,
27
+ "user": null,
28
+ "title": null,
29
+ "createdAt": null,
30
+ "updatedAt": null,
31
+ "messageCount": null,
32
+ "model": null,
33
+ "usage": null,
34
+ "modelUsage": null,
35
+ } satisfies AdminConversationSummary
36
+
37
+ console.log(example)
38
+
39
+ // Convert the instance to a JSON string
40
+ const exampleJSON: string = JSON.stringify(example)
41
+ console.log(exampleJSON)
42
+
43
+ // Parse the JSON string back to an object
44
+ const exampleParsed = JSON.parse(exampleJSON) as AdminConversationSummary
45
+ console.log(exampleParsed)
46
+ ```
47
+
48
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
49
+
50
+