@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.
- package/.openapi-generator/FILES +28 -0
- package/README.md +22 -2
- package/dist/apis/ChatApi.d.ts +98 -0
- package/dist/apis/ChatApi.js +255 -0
- package/dist/esm/apis/ChatApi.d.ts +98 -0
- package/dist/esm/apis/ChatApi.js +255 -0
- package/dist/esm/models/AdminChatMessage.d.ts +51 -0
- package/dist/esm/models/AdminChatMessage.js +54 -0
- package/dist/esm/models/AdminConversationDetail.d.ts +90 -0
- package/dist/esm/models/AdminConversationDetail.js +81 -0
- package/dist/esm/models/AdminConversationList.d.ts +57 -0
- package/dist/esm/models/AdminConversationList.js +60 -0
- package/dist/esm/models/AdminConversationSummary.d.ts +83 -0
- package/dist/esm/models/AdminConversationSummary.js +76 -0
- package/dist/esm/models/ChatDailyUsage.d.ts +39 -0
- package/dist/esm/models/ChatDailyUsage.js +48 -0
- package/dist/esm/models/ChatModelUsage.d.ts +68 -0
- package/dist/esm/models/ChatModelUsage.js +67 -0
- package/dist/esm/models/ChatQuota.d.ts +56 -0
- package/dist/esm/models/ChatQuota.js +59 -0
- package/dist/esm/models/ChatQuotaExceeded.d.ts +56 -0
- package/dist/esm/models/ChatQuotaExceeded.js +59 -0
- package/dist/esm/models/ChatTurnUsage.d.ts +82 -0
- package/dist/esm/models/ChatTurnUsage.js +78 -0
- package/dist/esm/models/ChatUsageTotals.d.ts +68 -0
- package/dist/esm/models/ChatUsageTotals.js +67 -0
- package/dist/esm/models/ChatUserIdentity.d.ts +50 -0
- package/dist/esm/models/ChatUserIdentity.js +55 -0
- package/dist/esm/models/GetChatSettings.d.ts +51 -0
- package/dist/esm/models/GetChatSettings.js +57 -0
- package/dist/esm/models/GetChatUsage.d.ts +59 -0
- package/dist/esm/models/GetChatUsage.js +62 -0
- package/dist/esm/models/PutChatSettings.d.ts +32 -0
- package/dist/esm/models/PutChatSettings.js +43 -0
- package/dist/esm/models/index.d.ts +14 -0
- package/dist/esm/models/index.js +14 -0
- package/dist/models/AdminChatMessage.d.ts +51 -0
- package/dist/models/AdminChatMessage.js +61 -0
- package/dist/models/AdminConversationDetail.d.ts +90 -0
- package/dist/models/AdminConversationDetail.js +88 -0
- package/dist/models/AdminConversationList.d.ts +57 -0
- package/dist/models/AdminConversationList.js +67 -0
- package/dist/models/AdminConversationSummary.d.ts +83 -0
- package/dist/models/AdminConversationSummary.js +83 -0
- package/dist/models/ChatDailyUsage.d.ts +39 -0
- package/dist/models/ChatDailyUsage.js +55 -0
- package/dist/models/ChatModelUsage.d.ts +68 -0
- package/dist/models/ChatModelUsage.js +74 -0
- package/dist/models/ChatQuota.d.ts +56 -0
- package/dist/models/ChatQuota.js +66 -0
- package/dist/models/ChatQuotaExceeded.d.ts +56 -0
- package/dist/models/ChatQuotaExceeded.js +66 -0
- package/dist/models/ChatTurnUsage.d.ts +82 -0
- package/dist/models/ChatTurnUsage.js +86 -0
- package/dist/models/ChatUsageTotals.d.ts +68 -0
- package/dist/models/ChatUsageTotals.js +74 -0
- package/dist/models/ChatUserIdentity.d.ts +50 -0
- package/dist/models/ChatUserIdentity.js +62 -0
- package/dist/models/GetChatSettings.d.ts +51 -0
- package/dist/models/GetChatSettings.js +65 -0
- package/dist/models/GetChatUsage.d.ts +59 -0
- package/dist/models/GetChatUsage.js +69 -0
- package/dist/models/PutChatSettings.d.ts +32 -0
- package/dist/models/PutChatSettings.js +50 -0
- package/dist/models/index.d.ts +14 -0
- package/dist/models/index.js +14 -0
- package/docs/AdminChatMessage.md +40 -0
- package/docs/AdminConversationDetail.md +52 -0
- package/docs/AdminConversationList.md +42 -0
- package/docs/AdminConversationSummary.md +50 -0
- package/docs/ChatApi.md +422 -0
- package/docs/ChatDailyUsage.md +36 -0
- package/docs/ChatModelUsage.md +46 -0
- package/docs/ChatQuota.md +42 -0
- package/docs/ChatQuotaExceeded.md +42 -0
- package/docs/ChatTurnUsage.md +48 -0
- package/docs/ChatUsageTotals.md +46 -0
- package/docs/ChatUserIdentity.md +40 -0
- package/docs/GetChatSettings.md +38 -0
- package/docs/GetChatUsage.md +42 -0
- package/docs/PutChatSettings.md +34 -0
- package/package.json +1 -1
- package/src/apis/ChatApi.ts +339 -0
- package/src/models/AdminChatMessage.ts +100 -0
- package/src/models/AdminConversationDetail.ts +175 -0
- package/src/models/AdminConversationList.ts +110 -0
- package/src/models/AdminConversationSummary.ts +159 -0
- package/src/models/ChatDailyUsage.ts +83 -0
- package/src/models/ChatModelUsage.ts +120 -0
- package/src/models/ChatQuota.ts +102 -0
- package/src/models/ChatQuotaExceeded.ts +102 -0
- package/src/models/ChatTurnUsage.ts +140 -0
- package/src/models/ChatUsageTotals.ts +120 -0
- package/src/models/ChatUserIdentity.ts +93 -0
- package/src/models/GetChatSettings.ts +94 -0
- package/src/models/GetChatUsage.ts +124 -0
- package/src/models/PutChatSettings.ts +66 -0
- package/src/models/index.ts +14 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
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 PutChatSettings
|
|
16
|
+
*/
|
|
17
|
+
export interface PutChatSettings {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof PutChatSettings
|
|
22
|
+
*/
|
|
23
|
+
learnerDailyMessageLimit: number;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the PutChatSettings interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfPutChatSettings(value: object): value is PutChatSettings;
|
|
29
|
+
export declare function PutChatSettingsFromJSON(json: any): PutChatSettings;
|
|
30
|
+
export declare function PutChatSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutChatSettings;
|
|
31
|
+
export declare function PutChatSettingsToJSON(json: any): PutChatSettings;
|
|
32
|
+
export declare function PutChatSettingsToJSONTyped(value?: PutChatSettings | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
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 PutChatSettings interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPutChatSettings(value) {
|
|
18
|
+
if (!('learnerDailyMessageLimit' in value) || value['learnerDailyMessageLimit'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function PutChatSettingsFromJSON(json) {
|
|
23
|
+
return PutChatSettingsFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function PutChatSettingsFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'learnerDailyMessageLimit': json['learner_daily_message_limit'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function PutChatSettingsToJSON(json) {
|
|
34
|
+
return PutChatSettingsToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function PutChatSettingsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'learner_daily_message_limit': value['learnerDailyMessageLimit'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -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';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export * from './AdminChatMessage';
|
|
4
|
+
export * from './AdminConversationDetail';
|
|
5
|
+
export * from './AdminConversationList';
|
|
6
|
+
export * from './AdminConversationSummary';
|
|
3
7
|
export * from './ArtifactConflict';
|
|
4
8
|
export * from './BadgeIssuer';
|
|
5
9
|
export * from './Certificate';
|
|
@@ -22,6 +26,13 @@ export * from './CertificatePublic';
|
|
|
22
26
|
export * from './CertificateRenewalPolicy';
|
|
23
27
|
export * from './CertificateTemplate';
|
|
24
28
|
export * from './CertificateTemplateVersion';
|
|
29
|
+
export * from './ChatDailyUsage';
|
|
30
|
+
export * from './ChatModelUsage';
|
|
31
|
+
export * from './ChatQuota';
|
|
32
|
+
export * from './ChatQuotaExceeded';
|
|
33
|
+
export * from './ChatTurnUsage';
|
|
34
|
+
export * from './ChatUsageTotals';
|
|
35
|
+
export * from './ChatUserIdentity';
|
|
25
36
|
export * from './ContentLaunchMode';
|
|
26
37
|
export * from './ContentLibraryVersionStatus';
|
|
27
38
|
export * from './CourseCatalog';
|
|
@@ -41,6 +52,8 @@ export * from './GetCertificateTemplateList';
|
|
|
41
52
|
export * from './GetChangelogEntry';
|
|
42
53
|
export * from './GetChangelogList';
|
|
43
54
|
export * from './GetChatMessage';
|
|
55
|
+
export * from './GetChatSettings';
|
|
56
|
+
export * from './GetChatUsage';
|
|
44
57
|
export * from './GetContentLibraryVersion';
|
|
45
58
|
export * from './GetConversation';
|
|
46
59
|
export * from './GetConversationList';
|
|
@@ -220,6 +233,7 @@ export * from './PutBadgeIssuer';
|
|
|
220
233
|
export * from './PutCertificateConfig';
|
|
221
234
|
export * from './PutCertificateTemplate';
|
|
222
235
|
export * from './PutCertificateTemplateDraft';
|
|
236
|
+
export * from './PutChatSettings';
|
|
223
237
|
export * from './PutCourse';
|
|
224
238
|
export * from './PutCourseCatalog';
|
|
225
239
|
export * from './PutCourseEnrollment';
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
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 { ChatTurnUsage } from './ChatTurnUsage';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AdminChatMessage
|
|
17
|
+
*/
|
|
18
|
+
export interface AdminChatMessage {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AdminChatMessage
|
|
23
|
+
*/
|
|
24
|
+
role: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof AdminChatMessage
|
|
29
|
+
*/
|
|
30
|
+
content: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof AdminChatMessage
|
|
35
|
+
*/
|
|
36
|
+
createdAt: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {ChatTurnUsage}
|
|
40
|
+
* @memberof AdminChatMessage
|
|
41
|
+
*/
|
|
42
|
+
usage?: ChatTurnUsage | null;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the AdminChatMessage interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfAdminChatMessage(value: object): value is AdminChatMessage;
|
|
48
|
+
export declare function AdminChatMessageFromJSON(json: any): AdminChatMessage;
|
|
49
|
+
export declare function AdminChatMessageFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminChatMessage;
|
|
50
|
+
export declare function AdminChatMessageToJSON(json: any): AdminChatMessage;
|
|
51
|
+
export declare function AdminChatMessageToJSONTyped(value?: AdminChatMessage | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
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.instanceOfAdminChatMessage = instanceOfAdminChatMessage;
|
|
17
|
+
exports.AdminChatMessageFromJSON = AdminChatMessageFromJSON;
|
|
18
|
+
exports.AdminChatMessageFromJSONTyped = AdminChatMessageFromJSONTyped;
|
|
19
|
+
exports.AdminChatMessageToJSON = AdminChatMessageToJSON;
|
|
20
|
+
exports.AdminChatMessageToJSONTyped = AdminChatMessageToJSONTyped;
|
|
21
|
+
const ChatTurnUsage_1 = require("./ChatTurnUsage");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AdminChatMessage interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAdminChatMessage(value) {
|
|
26
|
+
if (!('role' in value) || value['role'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('content' in value) || value['content'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
function AdminChatMessageFromJSON(json) {
|
|
35
|
+
return AdminChatMessageFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function AdminChatMessageFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'role': json['role'],
|
|
43
|
+
'content': json['content'],
|
|
44
|
+
'createdAt': json['created_at'],
|
|
45
|
+
'usage': json['usage'] == null ? undefined : (0, ChatTurnUsage_1.ChatTurnUsageFromJSON)(json['usage']),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function AdminChatMessageToJSON(json) {
|
|
49
|
+
return AdminChatMessageToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function AdminChatMessageToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'role': value['role'],
|
|
57
|
+
'content': value['content'],
|
|
58
|
+
'created_at': value['createdAt'],
|
|
59
|
+
'usage': (0, ChatTurnUsage_1.ChatTurnUsageToJSON)(value['usage']),
|
|
60
|
+
};
|
|
61
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
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 { ChatModelUsage } from './ChatModelUsage';
|
|
13
|
+
import type { ChatUsageTotals } from './ChatUsageTotals';
|
|
14
|
+
import type { ChatUserIdentity } from './ChatUserIdentity';
|
|
15
|
+
import type { AdminChatMessage } from './AdminChatMessage';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AdminConversationDetail
|
|
20
|
+
*/
|
|
21
|
+
export interface AdminConversationDetail {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AdminConversationDetail
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {ChatUserIdentity}
|
|
31
|
+
* @memberof AdminConversationDetail
|
|
32
|
+
*/
|
|
33
|
+
user: ChatUserIdentity;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof AdminConversationDetail
|
|
38
|
+
*/
|
|
39
|
+
title?: string | null;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof AdminConversationDetail
|
|
44
|
+
*/
|
|
45
|
+
createdAt: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof AdminConversationDetail
|
|
50
|
+
*/
|
|
51
|
+
updatedAt: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof AdminConversationDetail
|
|
56
|
+
*/
|
|
57
|
+
messageCount: number;
|
|
58
|
+
/**
|
|
59
|
+
* The deployed model used by the conversation, or mixed-model when turns used multiple models
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof AdminConversationDetail
|
|
62
|
+
*/
|
|
63
|
+
model: string | null;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {ChatUsageTotals}
|
|
67
|
+
* @memberof AdminConversationDetail
|
|
68
|
+
*/
|
|
69
|
+
usage: ChatUsageTotals;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {Array<ChatModelUsage>}
|
|
73
|
+
* @memberof AdminConversationDetail
|
|
74
|
+
*/
|
|
75
|
+
modelUsage: Array<ChatModelUsage>;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {Array<AdminChatMessage>}
|
|
79
|
+
* @memberof AdminConversationDetail
|
|
80
|
+
*/
|
|
81
|
+
messages: Array<AdminChatMessage>;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Check if a given object implements the AdminConversationDetail interface.
|
|
85
|
+
*/
|
|
86
|
+
export declare function instanceOfAdminConversationDetail(value: object): value is AdminConversationDetail;
|
|
87
|
+
export declare function AdminConversationDetailFromJSON(json: any): AdminConversationDetail;
|
|
88
|
+
export declare function AdminConversationDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminConversationDetail;
|
|
89
|
+
export declare function AdminConversationDetailToJSON(json: any): AdminConversationDetail;
|
|
90
|
+
export declare function AdminConversationDetailToJSONTyped(value?: AdminConversationDetail | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
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.instanceOfAdminConversationDetail = instanceOfAdminConversationDetail;
|
|
17
|
+
exports.AdminConversationDetailFromJSON = AdminConversationDetailFromJSON;
|
|
18
|
+
exports.AdminConversationDetailFromJSONTyped = AdminConversationDetailFromJSONTyped;
|
|
19
|
+
exports.AdminConversationDetailToJSON = AdminConversationDetailToJSON;
|
|
20
|
+
exports.AdminConversationDetailToJSONTyped = AdminConversationDetailToJSONTyped;
|
|
21
|
+
const ChatModelUsage_1 = require("./ChatModelUsage");
|
|
22
|
+
const ChatUsageTotals_1 = require("./ChatUsageTotals");
|
|
23
|
+
const ChatUserIdentity_1 = require("./ChatUserIdentity");
|
|
24
|
+
const AdminChatMessage_1 = require("./AdminChatMessage");
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the AdminConversationDetail interface.
|
|
27
|
+
*/
|
|
28
|
+
function instanceOfAdminConversationDetail(value) {
|
|
29
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('user' in value) || value['user'] === 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
|
+
if (!('messageCount' in value) || value['messageCount'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('model' in value) || value['model'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('usage' in value) || value['usage'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('modelUsage' in value) || value['modelUsage'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('messages' in value) || value['messages'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
function AdminConversationDetailFromJSON(json) {
|
|
50
|
+
return AdminConversationDetailFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function AdminConversationDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
53
|
+
if (json == null) {
|
|
54
|
+
return json;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'id': json['id'],
|
|
58
|
+
'user': (0, ChatUserIdentity_1.ChatUserIdentityFromJSON)(json['user']),
|
|
59
|
+
'title': json['title'] == null ? undefined : json['title'],
|
|
60
|
+
'createdAt': json['created_at'],
|
|
61
|
+
'updatedAt': json['updated_at'],
|
|
62
|
+
'messageCount': json['message_count'],
|
|
63
|
+
'model': json['model'],
|
|
64
|
+
'usage': (0, ChatUsageTotals_1.ChatUsageTotalsFromJSON)(json['usage']),
|
|
65
|
+
'modelUsage': (json['model_usage'].map(ChatModelUsage_1.ChatModelUsageFromJSON)),
|
|
66
|
+
'messages': (json['messages'].map(AdminChatMessage_1.AdminChatMessageFromJSON)),
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
function AdminConversationDetailToJSON(json) {
|
|
70
|
+
return AdminConversationDetailToJSONTyped(json, false);
|
|
71
|
+
}
|
|
72
|
+
function AdminConversationDetailToJSONTyped(value, ignoreDiscriminator = false) {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
'id': value['id'],
|
|
78
|
+
'user': (0, ChatUserIdentity_1.ChatUserIdentityToJSON)(value['user']),
|
|
79
|
+
'title': value['title'],
|
|
80
|
+
'created_at': value['createdAt'],
|
|
81
|
+
'updated_at': value['updatedAt'],
|
|
82
|
+
'message_count': value['messageCount'],
|
|
83
|
+
'model': value['model'],
|
|
84
|
+
'usage': (0, ChatUsageTotals_1.ChatUsageTotalsToJSON)(value['usage']),
|
|
85
|
+
'model_usage': (value['modelUsage'].map(ChatModelUsage_1.ChatModelUsageToJSON)),
|
|
86
|
+
'messages': (value['messages'].map(AdminChatMessage_1.AdminChatMessageToJSON)),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
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 { AdminConversationSummary } from './AdminConversationSummary';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AdminConversationList
|
|
17
|
+
*/
|
|
18
|
+
export interface AdminConversationList {
|
|
19
|
+
/**
|
|
20
|
+
* The current page number
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof AdminConversationList
|
|
23
|
+
*/
|
|
24
|
+
page: number;
|
|
25
|
+
/**
|
|
26
|
+
* The number of items per page
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof AdminConversationList
|
|
29
|
+
*/
|
|
30
|
+
pageSize: number;
|
|
31
|
+
/**
|
|
32
|
+
* The total number of pages
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof AdminConversationList
|
|
35
|
+
*/
|
|
36
|
+
totalPages: number;
|
|
37
|
+
/**
|
|
38
|
+
* The total number of items
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof AdminConversationList
|
|
41
|
+
*/
|
|
42
|
+
totalItems: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<AdminConversationSummary>}
|
|
46
|
+
* @memberof AdminConversationList
|
|
47
|
+
*/
|
|
48
|
+
items: Array<AdminConversationSummary>;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the AdminConversationList interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfAdminConversationList(value: object): value is AdminConversationList;
|
|
54
|
+
export declare function AdminConversationListFromJSON(json: any): AdminConversationList;
|
|
55
|
+
export declare function AdminConversationListFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminConversationList;
|
|
56
|
+
export declare function AdminConversationListToJSON(json: any): AdminConversationList;
|
|
57
|
+
export declare function AdminConversationListToJSONTyped(value?: AdminConversationList | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
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.instanceOfAdminConversationList = instanceOfAdminConversationList;
|
|
17
|
+
exports.AdminConversationListFromJSON = AdminConversationListFromJSON;
|
|
18
|
+
exports.AdminConversationListFromJSONTyped = AdminConversationListFromJSONTyped;
|
|
19
|
+
exports.AdminConversationListToJSON = AdminConversationListToJSON;
|
|
20
|
+
exports.AdminConversationListToJSONTyped = AdminConversationListToJSONTyped;
|
|
21
|
+
const AdminConversationSummary_1 = require("./AdminConversationSummary");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AdminConversationList interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAdminConversationList(value) {
|
|
26
|
+
if (!('page' in value) || value['page'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('pageSize' in value) || value['pageSize'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('totalPages' in value) || value['totalPages'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('totalItems' in value) || value['totalItems'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function AdminConversationListFromJSON(json) {
|
|
39
|
+
return AdminConversationListFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function AdminConversationListFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'page': json['page'],
|
|
47
|
+
'pageSize': json['pageSize'],
|
|
48
|
+
'totalPages': json['totalPages'],
|
|
49
|
+
'totalItems': json['totalItems'],
|
|
50
|
+
'items': (json['items'].map(AdminConversationSummary_1.AdminConversationSummaryFromJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function AdminConversationListToJSON(json) {
|
|
54
|
+
return AdminConversationListToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function AdminConversationListToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'page': value['page'],
|
|
62
|
+
'pageSize': value['pageSize'],
|
|
63
|
+
'totalPages': value['totalPages'],
|
|
64
|
+
'totalItems': value['totalItems'],
|
|
65
|
+
'items': (value['items'].map(AdminConversationSummary_1.AdminConversationSummaryToJSON)),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
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 { ChatModelUsage } from './ChatModelUsage';
|
|
13
|
+
import type { ChatUsageTotals } from './ChatUsageTotals';
|
|
14
|
+
import type { ChatUserIdentity } from './ChatUserIdentity';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface AdminConversationSummary
|
|
19
|
+
*/
|
|
20
|
+
export interface AdminConversationSummary {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof AdminConversationSummary
|
|
25
|
+
*/
|
|
26
|
+
id: string;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {ChatUserIdentity}
|
|
30
|
+
* @memberof AdminConversationSummary
|
|
31
|
+
*/
|
|
32
|
+
user: ChatUserIdentity;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof AdminConversationSummary
|
|
37
|
+
*/
|
|
38
|
+
title?: string | null;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {number}
|
|
42
|
+
* @memberof AdminConversationSummary
|
|
43
|
+
*/
|
|
44
|
+
createdAt: number;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {number}
|
|
48
|
+
* @memberof AdminConversationSummary
|
|
49
|
+
*/
|
|
50
|
+
updatedAt: number;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {number}
|
|
54
|
+
* @memberof AdminConversationSummary
|
|
55
|
+
*/
|
|
56
|
+
messageCount: number;
|
|
57
|
+
/**
|
|
58
|
+
* The deployed model used by the conversation, or mixed-model when turns used multiple models
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof AdminConversationSummary
|
|
61
|
+
*/
|
|
62
|
+
model: string | null;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {ChatUsageTotals}
|
|
66
|
+
* @memberof AdminConversationSummary
|
|
67
|
+
*/
|
|
68
|
+
usage: ChatUsageTotals;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {Array<ChatModelUsage>}
|
|
72
|
+
* @memberof AdminConversationSummary
|
|
73
|
+
*/
|
|
74
|
+
modelUsage: Array<ChatModelUsage>;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Check if a given object implements the AdminConversationSummary interface.
|
|
78
|
+
*/
|
|
79
|
+
export declare function instanceOfAdminConversationSummary(value: object): value is AdminConversationSummary;
|
|
80
|
+
export declare function AdminConversationSummaryFromJSON(json: any): AdminConversationSummary;
|
|
81
|
+
export declare function AdminConversationSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminConversationSummary;
|
|
82
|
+
export declare function AdminConversationSummaryToJSON(json: any): AdminConversationSummary;
|
|
83
|
+
export declare function AdminConversationSummaryToJSONTyped(value?: AdminConversationSummary | null, ignoreDiscriminator?: boolean): any;
|