@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
@@ -0,0 +1,86 @@
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.ChatTurnUsageStatusEnum = void 0;
17
+ exports.instanceOfChatTurnUsage = instanceOfChatTurnUsage;
18
+ exports.ChatTurnUsageFromJSON = ChatTurnUsageFromJSON;
19
+ exports.ChatTurnUsageFromJSONTyped = ChatTurnUsageFromJSONTyped;
20
+ exports.ChatTurnUsageToJSON = ChatTurnUsageToJSON;
21
+ exports.ChatTurnUsageToJSONTyped = ChatTurnUsageToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.ChatTurnUsageStatusEnum = {
26
+ Success: 'success',
27
+ Failure: 'failure'
28
+ };
29
+ /**
30
+ * Check if a given object implements the ChatTurnUsage interface.
31
+ */
32
+ function instanceOfChatTurnUsage(value) {
33
+ if (!('status' in value) || value['status'] === undefined)
34
+ return false;
35
+ if (!('provider' in value) || value['provider'] === undefined)
36
+ return false;
37
+ if (!('model' in value) || value['model'] === undefined)
38
+ return false;
39
+ if (!('providerRequestCount' in value) || value['providerRequestCount'] === undefined)
40
+ return false;
41
+ if (!('inputTokens' in value) || value['inputTokens'] === undefined)
42
+ return false;
43
+ if (!('outputTokens' in value) || value['outputTokens'] === undefined)
44
+ return false;
45
+ if (!('totalTokens' in value) || value['totalTokens'] === undefined)
46
+ return false;
47
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
48
+ return false;
49
+ return true;
50
+ }
51
+ function ChatTurnUsageFromJSON(json) {
52
+ return ChatTurnUsageFromJSONTyped(json, false);
53
+ }
54
+ function ChatTurnUsageFromJSONTyped(json, ignoreDiscriminator) {
55
+ if (json == null) {
56
+ return json;
57
+ }
58
+ return {
59
+ 'status': json['status'],
60
+ 'provider': json['provider'],
61
+ 'model': json['model'],
62
+ 'providerRequestCount': json['provider_request_count'],
63
+ 'inputTokens': json['input_tokens'],
64
+ 'outputTokens': json['output_tokens'],
65
+ 'totalTokens': json['total_tokens'],
66
+ 'createdAt': json['created_at'],
67
+ };
68
+ }
69
+ function ChatTurnUsageToJSON(json) {
70
+ return ChatTurnUsageToJSONTyped(json, false);
71
+ }
72
+ function ChatTurnUsageToJSONTyped(value, ignoreDiscriminator = false) {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+ return {
77
+ 'status': value['status'],
78
+ 'provider': value['provider'],
79
+ 'model': value['model'],
80
+ 'provider_request_count': value['providerRequestCount'],
81
+ 'input_tokens': value['inputTokens'],
82
+ 'output_tokens': value['outputTokens'],
83
+ 'total_tokens': value['totalTokens'],
84
+ 'created_at': value['createdAt'],
85
+ };
86
+ }
@@ -0,0 +1,68 @@
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 ChatUsageTotals
16
+ */
17
+ export interface ChatUsageTotals {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof ChatUsageTotals
22
+ */
23
+ acceptedRequests: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof ChatUsageTotals
28
+ */
29
+ successfulRequests: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof ChatUsageTotals
34
+ */
35
+ failedRequests: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof ChatUsageTotals
40
+ */
41
+ providerRequestCount: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof ChatUsageTotals
46
+ */
47
+ inputTokens: number;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof ChatUsageTotals
52
+ */
53
+ outputTokens: number;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof ChatUsageTotals
58
+ */
59
+ totalTokens: number;
60
+ }
61
+ /**
62
+ * Check if a given object implements the ChatUsageTotals interface.
63
+ */
64
+ export declare function instanceOfChatUsageTotals(value: object): value is ChatUsageTotals;
65
+ export declare function ChatUsageTotalsFromJSON(json: any): ChatUsageTotals;
66
+ export declare function ChatUsageTotalsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatUsageTotals;
67
+ export declare function ChatUsageTotalsToJSON(json: any): ChatUsageTotals;
68
+ export declare function ChatUsageTotalsToJSONTyped(value?: ChatUsageTotals | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,74 @@
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.instanceOfChatUsageTotals = instanceOfChatUsageTotals;
17
+ exports.ChatUsageTotalsFromJSON = ChatUsageTotalsFromJSON;
18
+ exports.ChatUsageTotalsFromJSONTyped = ChatUsageTotalsFromJSONTyped;
19
+ exports.ChatUsageTotalsToJSON = ChatUsageTotalsToJSON;
20
+ exports.ChatUsageTotalsToJSONTyped = ChatUsageTotalsToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ChatUsageTotals interface.
23
+ */
24
+ function instanceOfChatUsageTotals(value) {
25
+ if (!('acceptedRequests' in value) || value['acceptedRequests'] === undefined)
26
+ return false;
27
+ if (!('successfulRequests' in value) || value['successfulRequests'] === undefined)
28
+ return false;
29
+ if (!('failedRequests' in value) || value['failedRequests'] === undefined)
30
+ return false;
31
+ if (!('providerRequestCount' in value) || value['providerRequestCount'] === undefined)
32
+ return false;
33
+ if (!('inputTokens' in value) || value['inputTokens'] === undefined)
34
+ return false;
35
+ if (!('outputTokens' in value) || value['outputTokens'] === undefined)
36
+ return false;
37
+ if (!('totalTokens' in value) || value['totalTokens'] === undefined)
38
+ return false;
39
+ return true;
40
+ }
41
+ function ChatUsageTotalsFromJSON(json) {
42
+ return ChatUsageTotalsFromJSONTyped(json, false);
43
+ }
44
+ function ChatUsageTotalsFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'acceptedRequests': json['accepted_requests'],
50
+ 'successfulRequests': json['successful_requests'],
51
+ 'failedRequests': json['failed_requests'],
52
+ 'providerRequestCount': json['provider_request_count'],
53
+ 'inputTokens': json['input_tokens'],
54
+ 'outputTokens': json['output_tokens'],
55
+ 'totalTokens': json['total_tokens'],
56
+ };
57
+ }
58
+ function ChatUsageTotalsToJSON(json) {
59
+ return ChatUsageTotalsToJSONTyped(json, false);
60
+ }
61
+ function ChatUsageTotalsToJSONTyped(value, ignoreDiscriminator = false) {
62
+ if (value == null) {
63
+ return value;
64
+ }
65
+ return {
66
+ 'accepted_requests': value['acceptedRequests'],
67
+ 'successful_requests': value['successfulRequests'],
68
+ 'failed_requests': value['failedRequests'],
69
+ 'provider_request_count': value['providerRequestCount'],
70
+ 'input_tokens': value['inputTokens'],
71
+ 'output_tokens': value['outputTokens'],
72
+ 'total_tokens': value['totalTokens'],
73
+ };
74
+ }
@@ -0,0 +1,50 @@
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 ChatUserIdentity
16
+ */
17
+ export interface ChatUserIdentity {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ChatUserIdentity
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ChatUserIdentity
28
+ */
29
+ firstName: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ChatUserIdentity
34
+ */
35
+ lastName: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ChatUserIdentity
40
+ */
41
+ email: string;
42
+ }
43
+ /**
44
+ * Check if a given object implements the ChatUserIdentity interface.
45
+ */
46
+ export declare function instanceOfChatUserIdentity(value: object): value is ChatUserIdentity;
47
+ export declare function ChatUserIdentityFromJSON(json: any): ChatUserIdentity;
48
+ export declare function ChatUserIdentityFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatUserIdentity;
49
+ export declare function ChatUserIdentityToJSON(json: any): ChatUserIdentity;
50
+ export declare function ChatUserIdentityToJSONTyped(value?: ChatUserIdentity | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,62 @@
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.instanceOfChatUserIdentity = instanceOfChatUserIdentity;
17
+ exports.ChatUserIdentityFromJSON = ChatUserIdentityFromJSON;
18
+ exports.ChatUserIdentityFromJSONTyped = ChatUserIdentityFromJSONTyped;
19
+ exports.ChatUserIdentityToJSON = ChatUserIdentityToJSON;
20
+ exports.ChatUserIdentityToJSONTyped = ChatUserIdentityToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ChatUserIdentity interface.
23
+ */
24
+ function instanceOfChatUserIdentity(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('firstName' in value) || value['firstName'] === undefined)
28
+ return false;
29
+ if (!('lastName' in value) || value['lastName'] === undefined)
30
+ return false;
31
+ if (!('email' in value) || value['email'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function ChatUserIdentityFromJSON(json) {
36
+ return ChatUserIdentityFromJSONTyped(json, false);
37
+ }
38
+ function ChatUserIdentityFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'id': json['id'],
44
+ 'firstName': json['first_name'],
45
+ 'lastName': json['last_name'],
46
+ 'email': json['email'],
47
+ };
48
+ }
49
+ function ChatUserIdentityToJSON(json) {
50
+ return ChatUserIdentityToJSONTyped(json, false);
51
+ }
52
+ function ChatUserIdentityToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'id': value['id'],
58
+ 'first_name': value['firstName'],
59
+ 'last_name': value['lastName'],
60
+ 'email': value['email'],
61
+ };
62
+ }
@@ -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
+ /**
13
+ *
14
+ * @export
15
+ * @interface GetChatSettings
16
+ */
17
+ export interface GetChatSettings {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof GetChatSettings
22
+ */
23
+ learnerDailyMessageLimit: number;
24
+ /**
25
+ *
26
+ * @type {GetChatSettingsResetPolicyEnum}
27
+ * @memberof GetChatSettings
28
+ */
29
+ resetPolicy: GetChatSettingsResetPolicyEnum;
30
+ /**
31
+ * Unix timestamp for the last settings update
32
+ * @type {number}
33
+ * @memberof GetChatSettings
34
+ */
35
+ updatedAt: number;
36
+ }
37
+ /**
38
+ * @export
39
+ */
40
+ export declare const GetChatSettingsResetPolicyEnum: {
41
+ readonly UtcMidnight: "utc_midnight";
42
+ };
43
+ export type GetChatSettingsResetPolicyEnum = typeof GetChatSettingsResetPolicyEnum[keyof typeof GetChatSettingsResetPolicyEnum];
44
+ /**
45
+ * Check if a given object implements the GetChatSettings interface.
46
+ */
47
+ export declare function instanceOfGetChatSettings(value: object): value is GetChatSettings;
48
+ export declare function GetChatSettingsFromJSON(json: any): GetChatSettings;
49
+ export declare function GetChatSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetChatSettings;
50
+ export declare function GetChatSettingsToJSON(json: any): GetChatSettings;
51
+ export declare function GetChatSettingsToJSONTyped(value?: GetChatSettings | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,65 @@
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.GetChatSettingsResetPolicyEnum = void 0;
17
+ exports.instanceOfGetChatSettings = instanceOfGetChatSettings;
18
+ exports.GetChatSettingsFromJSON = GetChatSettingsFromJSON;
19
+ exports.GetChatSettingsFromJSONTyped = GetChatSettingsFromJSONTyped;
20
+ exports.GetChatSettingsToJSON = GetChatSettingsToJSON;
21
+ exports.GetChatSettingsToJSONTyped = GetChatSettingsToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.GetChatSettingsResetPolicyEnum = {
26
+ UtcMidnight: 'utc_midnight'
27
+ };
28
+ /**
29
+ * Check if a given object implements the GetChatSettings interface.
30
+ */
31
+ function instanceOfGetChatSettings(value) {
32
+ if (!('learnerDailyMessageLimit' in value) || value['learnerDailyMessageLimit'] === undefined)
33
+ return false;
34
+ if (!('resetPolicy' in value) || value['resetPolicy'] === undefined)
35
+ return false;
36
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
37
+ return false;
38
+ return true;
39
+ }
40
+ function GetChatSettingsFromJSON(json) {
41
+ return GetChatSettingsFromJSONTyped(json, false);
42
+ }
43
+ function GetChatSettingsFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ 'learnerDailyMessageLimit': json['learner_daily_message_limit'],
49
+ 'resetPolicy': json['reset_policy'],
50
+ 'updatedAt': json['updated_at'],
51
+ };
52
+ }
53
+ function GetChatSettingsToJSON(json) {
54
+ return GetChatSettingsToJSONTyped(json, false);
55
+ }
56
+ function GetChatSettingsToJSONTyped(value, ignoreDiscriminator = false) {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+ return {
61
+ 'learner_daily_message_limit': value['learnerDailyMessageLimit'],
62
+ 'reset_policy': value['resetPolicy'],
63
+ 'updated_at': value['updatedAt'],
64
+ };
65
+ }
@@ -0,0 +1,59 @@
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 { ChatDailyUsage } from './ChatDailyUsage';
13
+ import type { ChatModelUsage } from './ChatModelUsage';
14
+ import type { ChatUsageTotals } from './ChatUsageTotals';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface GetChatUsage
19
+ */
20
+ export interface GetChatUsage {
21
+ /**
22
+ *
23
+ * @type {number}
24
+ * @memberof GetChatUsage
25
+ */
26
+ from: number;
27
+ /**
28
+ *
29
+ * @type {number}
30
+ * @memberof GetChatUsage
31
+ */
32
+ to: number;
33
+ /**
34
+ *
35
+ * @type {ChatUsageTotals}
36
+ * @memberof GetChatUsage
37
+ */
38
+ totals: ChatUsageTotals;
39
+ /**
40
+ *
41
+ * @type {Array<ChatDailyUsage>}
42
+ * @memberof GetChatUsage
43
+ */
44
+ daily: Array<ChatDailyUsage>;
45
+ /**
46
+ *
47
+ * @type {Array<ChatModelUsage>}
48
+ * @memberof GetChatUsage
49
+ */
50
+ modelUsage: Array<ChatModelUsage>;
51
+ }
52
+ /**
53
+ * Check if a given object implements the GetChatUsage interface.
54
+ */
55
+ export declare function instanceOfGetChatUsage(value: object): value is GetChatUsage;
56
+ export declare function GetChatUsageFromJSON(json: any): GetChatUsage;
57
+ export declare function GetChatUsageFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetChatUsage;
58
+ export declare function GetChatUsageToJSON(json: any): GetChatUsage;
59
+ export declare function GetChatUsageToJSONTyped(value?: GetChatUsage | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,69 @@
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.instanceOfGetChatUsage = instanceOfGetChatUsage;
17
+ exports.GetChatUsageFromJSON = GetChatUsageFromJSON;
18
+ exports.GetChatUsageFromJSONTyped = GetChatUsageFromJSONTyped;
19
+ exports.GetChatUsageToJSON = GetChatUsageToJSON;
20
+ exports.GetChatUsageToJSONTyped = GetChatUsageToJSONTyped;
21
+ const ChatDailyUsage_1 = require("./ChatDailyUsage");
22
+ const ChatModelUsage_1 = require("./ChatModelUsage");
23
+ const ChatUsageTotals_1 = require("./ChatUsageTotals");
24
+ /**
25
+ * Check if a given object implements the GetChatUsage interface.
26
+ */
27
+ function instanceOfGetChatUsage(value) {
28
+ if (!('from' in value) || value['from'] === undefined)
29
+ return false;
30
+ if (!('to' in value) || value['to'] === undefined)
31
+ return false;
32
+ if (!('totals' in value) || value['totals'] === undefined)
33
+ return false;
34
+ if (!('daily' in value) || value['daily'] === undefined)
35
+ return false;
36
+ if (!('modelUsage' in value) || value['modelUsage'] === undefined)
37
+ return false;
38
+ return true;
39
+ }
40
+ function GetChatUsageFromJSON(json) {
41
+ return GetChatUsageFromJSONTyped(json, false);
42
+ }
43
+ function GetChatUsageFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ 'from': json['from'],
49
+ 'to': json['to'],
50
+ 'totals': (0, ChatUsageTotals_1.ChatUsageTotalsFromJSON)(json['totals']),
51
+ 'daily': (json['daily'].map(ChatDailyUsage_1.ChatDailyUsageFromJSON)),
52
+ 'modelUsage': (json['model_usage'].map(ChatModelUsage_1.ChatModelUsageFromJSON)),
53
+ };
54
+ }
55
+ function GetChatUsageToJSON(json) {
56
+ return GetChatUsageToJSONTyped(json, false);
57
+ }
58
+ function GetChatUsageToJSONTyped(value, ignoreDiscriminator = false) {
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+ return {
63
+ 'from': value['from'],
64
+ 'to': value['to'],
65
+ 'totals': (0, ChatUsageTotals_1.ChatUsageTotalsToJSON)(value['totals']),
66
+ 'daily': (value['daily'].map(ChatDailyUsage_1.ChatDailyUsageToJSON)),
67
+ 'model_usage': (value['modelUsage'].map(ChatModelUsage_1.ChatModelUsageToJSON)),
68
+ };
69
+ }
@@ -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,50 @@
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.instanceOfPutChatSettings = instanceOfPutChatSettings;
17
+ exports.PutChatSettingsFromJSON = PutChatSettingsFromJSON;
18
+ exports.PutChatSettingsFromJSONTyped = PutChatSettingsFromJSONTyped;
19
+ exports.PutChatSettingsToJSON = PutChatSettingsToJSON;
20
+ exports.PutChatSettingsToJSONTyped = PutChatSettingsToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the PutChatSettings interface.
23
+ */
24
+ function instanceOfPutChatSettings(value) {
25
+ if (!('learnerDailyMessageLimit' in value) || value['learnerDailyMessageLimit'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function PutChatSettingsFromJSON(json) {
30
+ return PutChatSettingsFromJSONTyped(json, false);
31
+ }
32
+ function PutChatSettingsFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'learnerDailyMessageLimit': json['learner_daily_message_limit'],
38
+ };
39
+ }
40
+ function PutChatSettingsToJSON(json) {
41
+ return PutChatSettingsToJSONTyped(json, false);
42
+ }
43
+ function PutChatSettingsToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'learner_daily_message_limit': value['learnerDailyMessageLimit'],
49
+ };
50
+ }