@easyedu/js-lsm-api 1.113.0 → 1.114.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.
@@ -33,6 +33,7 @@ docs/CertificateTemplateVersion.md
33
33
  docs/ChangelogApi.md
34
34
  docs/ChatApi.md
35
35
  docs/ChatDailyUsage.md
36
+ docs/ChatFeatureUsage.md
36
37
  docs/ChatModelUsage.md
37
38
  docs/ChatQuota.md
38
39
  docs/ChatQuotaExceeded.md
@@ -388,6 +389,7 @@ src/models/CertificateRenewalPolicy.ts
388
389
  src/models/CertificateTemplate.ts
389
390
  src/models/CertificateTemplateVersion.ts
390
391
  src/models/ChatDailyUsage.ts
392
+ src/models/ChatFeatureUsage.ts
391
393
  src/models/ChatModelUsage.ts
392
394
  src/models/ChatQuota.ts
393
395
  src/models/ChatQuotaExceeded.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @easyedu/js-lsm-api@1.113.0
1
+ # @easyedu/js-lsm-api@1.114.0
2
2
 
3
3
  A TypeScript SDK client for the sbzw93t49b.execute-api.us-east-2.amazonaws.com API.
4
4
 
@@ -408,6 +408,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
408
408
  - [CertificateTemplate](docs/CertificateTemplate.md)
409
409
  - [CertificateTemplateVersion](docs/CertificateTemplateVersion.md)
410
410
  - [ChatDailyUsage](docs/ChatDailyUsage.md)
411
+ - [ChatFeatureUsage](docs/ChatFeatureUsage.md)
411
412
  - [ChatModelUsage](docs/ChatModelUsage.md)
412
413
  - [ChatQuota](docs/ChatQuota.md)
413
414
  - [ChatQuotaExceeded](docs/ChatQuotaExceeded.md)
@@ -702,7 +703,7 @@ and is automatically generated by the
702
703
  [OpenAPI Generator](https://openapi-generator.tech) project:
703
704
 
704
705
  - API version: `1.0.0`
705
- - Package version: `1.113.0`
706
+ - Package version: `1.114.0`
706
707
  - Generator version: `7.22.0`
707
708
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
708
709
 
@@ -0,0 +1,47 @@
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 { ChatUsageTotals } from './ChatUsageTotals';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ChatFeatureUsage
17
+ */
18
+ export interface ChatFeatureUsage {
19
+ /**
20
+ *
21
+ * @type {ChatFeatureUsageFeatureEnum}
22
+ * @memberof ChatFeatureUsage
23
+ */
24
+ feature: ChatFeatureUsageFeatureEnum;
25
+ /**
26
+ *
27
+ * @type {ChatUsageTotals}
28
+ * @memberof ChatFeatureUsage
29
+ */
30
+ usage: ChatUsageTotals;
31
+ }
32
+ /**
33
+ * @export
34
+ */
35
+ export declare const ChatFeatureUsageFeatureEnum: {
36
+ readonly Chat: "chat";
37
+ readonly QuestionImport: "question_import";
38
+ };
39
+ export type ChatFeatureUsageFeatureEnum = typeof ChatFeatureUsageFeatureEnum[keyof typeof ChatFeatureUsageFeatureEnum];
40
+ /**
41
+ * Check if a given object implements the ChatFeatureUsage interface.
42
+ */
43
+ export declare function instanceOfChatFeatureUsage(value: object): value is ChatFeatureUsage;
44
+ export declare function ChatFeatureUsageFromJSON(json: any): ChatFeatureUsage;
45
+ export declare function ChatFeatureUsageFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatFeatureUsage;
46
+ export declare function ChatFeatureUsageToJSON(json: any): ChatFeatureUsage;
47
+ export declare function ChatFeatureUsageToJSONTyped(value?: ChatFeatureUsage | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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
+ import { ChatUsageTotalsFromJSON, ChatUsageTotalsToJSON, } from './ChatUsageTotals';
15
+ /**
16
+ * @export
17
+ */
18
+ export const ChatFeatureUsageFeatureEnum = {
19
+ Chat: 'chat',
20
+ QuestionImport: 'question_import'
21
+ };
22
+ /**
23
+ * Check if a given object implements the ChatFeatureUsage interface.
24
+ */
25
+ export function instanceOfChatFeatureUsage(value) {
26
+ if (!('feature' in value) || value['feature'] === undefined)
27
+ return false;
28
+ if (!('usage' in value) || value['usage'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ export function ChatFeatureUsageFromJSON(json) {
33
+ return ChatFeatureUsageFromJSONTyped(json, false);
34
+ }
35
+ export function ChatFeatureUsageFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'feature': json['feature'],
41
+ 'usage': ChatUsageTotalsFromJSON(json['usage']),
42
+ };
43
+ }
44
+ export function ChatFeatureUsageToJSON(json) {
45
+ return ChatFeatureUsageToJSONTyped(json, false);
46
+ }
47
+ export function ChatFeatureUsageToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'feature': value['feature'],
53
+ 'usage': ChatUsageTotalsToJSON(value['usage']),
54
+ };
55
+ }
@@ -12,6 +12,7 @@
12
12
  import type { ChatDailyUsage } from './ChatDailyUsage';
13
13
  import type { ChatModelUsage } from './ChatModelUsage';
14
14
  import type { ChatUsageTotals } from './ChatUsageTotals';
15
+ import type { ChatFeatureUsage } from './ChatFeatureUsage';
15
16
  /**
16
17
  *
17
18
  * @export
@@ -48,6 +49,12 @@ export interface GetChatUsage {
48
49
  * @memberof GetChatUsage
49
50
  */
50
51
  modelUsage: Array<ChatModelUsage>;
52
+ /**
53
+ *
54
+ * @type {Array<ChatFeatureUsage>}
55
+ * @memberof GetChatUsage
56
+ */
57
+ featureUsage: Array<ChatFeatureUsage>;
51
58
  }
52
59
  /**
53
60
  * Check if a given object implements the GetChatUsage interface.
@@ -14,6 +14,7 @@
14
14
  import { ChatDailyUsageFromJSON, ChatDailyUsageToJSON, } from './ChatDailyUsage';
15
15
  import { ChatModelUsageFromJSON, ChatModelUsageToJSON, } from './ChatModelUsage';
16
16
  import { ChatUsageTotalsFromJSON, ChatUsageTotalsToJSON, } from './ChatUsageTotals';
17
+ import { ChatFeatureUsageFromJSON, ChatFeatureUsageToJSON, } from './ChatFeatureUsage';
17
18
  /**
18
19
  * Check if a given object implements the GetChatUsage interface.
19
20
  */
@@ -28,6 +29,8 @@ export function instanceOfGetChatUsage(value) {
28
29
  return false;
29
30
  if (!('modelUsage' in value) || value['modelUsage'] === undefined)
30
31
  return false;
32
+ if (!('featureUsage' in value) || value['featureUsage'] === undefined)
33
+ return false;
31
34
  return true;
32
35
  }
33
36
  export function GetChatUsageFromJSON(json) {
@@ -43,6 +46,7 @@ export function GetChatUsageFromJSONTyped(json, ignoreDiscriminator) {
43
46
  'totals': ChatUsageTotalsFromJSON(json['totals']),
44
47
  'daily': (json['daily'].map(ChatDailyUsageFromJSON)),
45
48
  'modelUsage': (json['model_usage'].map(ChatModelUsageFromJSON)),
49
+ 'featureUsage': (json['feature_usage'].map(ChatFeatureUsageFromJSON)),
46
50
  };
47
51
  }
48
52
  export function GetChatUsageToJSON(json) {
@@ -58,5 +62,6 @@ export function GetChatUsageToJSONTyped(value, ignoreDiscriminator = false) {
58
62
  'totals': ChatUsageTotalsToJSON(value['totals']),
59
63
  'daily': (value['daily'].map(ChatDailyUsageToJSON)),
60
64
  'model_usage': (value['modelUsage'].map(ChatModelUsageToJSON)),
65
+ 'feature_usage': (value['featureUsage'].map(ChatFeatureUsageToJSON)),
61
66
  };
62
67
  }
@@ -25,6 +25,7 @@ export * from './CertificateRenewalPolicy';
25
25
  export * from './CertificateTemplate';
26
26
  export * from './CertificateTemplateVersion';
27
27
  export * from './ChatDailyUsage';
28
+ export * from './ChatFeatureUsage';
28
29
  export * from './ChatModelUsage';
29
30
  export * from './ChatQuota';
30
31
  export * from './ChatQuotaExceeded';
@@ -27,6 +27,7 @@ export * from './CertificateRenewalPolicy';
27
27
  export * from './CertificateTemplate';
28
28
  export * from './CertificateTemplateVersion';
29
29
  export * from './ChatDailyUsage';
30
+ export * from './ChatFeatureUsage';
30
31
  export * from './ChatModelUsage';
31
32
  export * from './ChatQuota';
32
33
  export * from './ChatQuotaExceeded';
@@ -0,0 +1,47 @@
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 { ChatUsageTotals } from './ChatUsageTotals';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ChatFeatureUsage
17
+ */
18
+ export interface ChatFeatureUsage {
19
+ /**
20
+ *
21
+ * @type {ChatFeatureUsageFeatureEnum}
22
+ * @memberof ChatFeatureUsage
23
+ */
24
+ feature: ChatFeatureUsageFeatureEnum;
25
+ /**
26
+ *
27
+ * @type {ChatUsageTotals}
28
+ * @memberof ChatFeatureUsage
29
+ */
30
+ usage: ChatUsageTotals;
31
+ }
32
+ /**
33
+ * @export
34
+ */
35
+ export declare const ChatFeatureUsageFeatureEnum: {
36
+ readonly Chat: "chat";
37
+ readonly QuestionImport: "question_import";
38
+ };
39
+ export type ChatFeatureUsageFeatureEnum = typeof ChatFeatureUsageFeatureEnum[keyof typeof ChatFeatureUsageFeatureEnum];
40
+ /**
41
+ * Check if a given object implements the ChatFeatureUsage interface.
42
+ */
43
+ export declare function instanceOfChatFeatureUsage(value: object): value is ChatFeatureUsage;
44
+ export declare function ChatFeatureUsageFromJSON(json: any): ChatFeatureUsage;
45
+ export declare function ChatFeatureUsageFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatFeatureUsage;
46
+ export declare function ChatFeatureUsageToJSON(json: any): ChatFeatureUsage;
47
+ export declare function ChatFeatureUsageToJSONTyped(value?: ChatFeatureUsage | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,63 @@
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.ChatFeatureUsageFeatureEnum = void 0;
17
+ exports.instanceOfChatFeatureUsage = instanceOfChatFeatureUsage;
18
+ exports.ChatFeatureUsageFromJSON = ChatFeatureUsageFromJSON;
19
+ exports.ChatFeatureUsageFromJSONTyped = ChatFeatureUsageFromJSONTyped;
20
+ exports.ChatFeatureUsageToJSON = ChatFeatureUsageToJSON;
21
+ exports.ChatFeatureUsageToJSONTyped = ChatFeatureUsageToJSONTyped;
22
+ const ChatUsageTotals_1 = require("./ChatUsageTotals");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.ChatFeatureUsageFeatureEnum = {
27
+ Chat: 'chat',
28
+ QuestionImport: 'question_import'
29
+ };
30
+ /**
31
+ * Check if a given object implements the ChatFeatureUsage interface.
32
+ */
33
+ function instanceOfChatFeatureUsage(value) {
34
+ if (!('feature' in value) || value['feature'] === undefined)
35
+ return false;
36
+ if (!('usage' in value) || value['usage'] === undefined)
37
+ return false;
38
+ return true;
39
+ }
40
+ function ChatFeatureUsageFromJSON(json) {
41
+ return ChatFeatureUsageFromJSONTyped(json, false);
42
+ }
43
+ function ChatFeatureUsageFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ 'feature': json['feature'],
49
+ 'usage': (0, ChatUsageTotals_1.ChatUsageTotalsFromJSON)(json['usage']),
50
+ };
51
+ }
52
+ function ChatFeatureUsageToJSON(json) {
53
+ return ChatFeatureUsageToJSONTyped(json, false);
54
+ }
55
+ function ChatFeatureUsageToJSONTyped(value, ignoreDiscriminator = false) {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'feature': value['feature'],
61
+ 'usage': (0, ChatUsageTotals_1.ChatUsageTotalsToJSON)(value['usage']),
62
+ };
63
+ }
@@ -12,6 +12,7 @@
12
12
  import type { ChatDailyUsage } from './ChatDailyUsage';
13
13
  import type { ChatModelUsage } from './ChatModelUsage';
14
14
  import type { ChatUsageTotals } from './ChatUsageTotals';
15
+ import type { ChatFeatureUsage } from './ChatFeatureUsage';
15
16
  /**
16
17
  *
17
18
  * @export
@@ -48,6 +49,12 @@ export interface GetChatUsage {
48
49
  * @memberof GetChatUsage
49
50
  */
50
51
  modelUsage: Array<ChatModelUsage>;
52
+ /**
53
+ *
54
+ * @type {Array<ChatFeatureUsage>}
55
+ * @memberof GetChatUsage
56
+ */
57
+ featureUsage: Array<ChatFeatureUsage>;
51
58
  }
52
59
  /**
53
60
  * Check if a given object implements the GetChatUsage interface.
@@ -21,6 +21,7 @@ exports.GetChatUsageToJSONTyped = GetChatUsageToJSONTyped;
21
21
  const ChatDailyUsage_1 = require("./ChatDailyUsage");
22
22
  const ChatModelUsage_1 = require("./ChatModelUsage");
23
23
  const ChatUsageTotals_1 = require("./ChatUsageTotals");
24
+ const ChatFeatureUsage_1 = require("./ChatFeatureUsage");
24
25
  /**
25
26
  * Check if a given object implements the GetChatUsage interface.
26
27
  */
@@ -35,6 +36,8 @@ function instanceOfGetChatUsage(value) {
35
36
  return false;
36
37
  if (!('modelUsage' in value) || value['modelUsage'] === undefined)
37
38
  return false;
39
+ if (!('featureUsage' in value) || value['featureUsage'] === undefined)
40
+ return false;
38
41
  return true;
39
42
  }
40
43
  function GetChatUsageFromJSON(json) {
@@ -50,6 +53,7 @@ function GetChatUsageFromJSONTyped(json, ignoreDiscriminator) {
50
53
  'totals': (0, ChatUsageTotals_1.ChatUsageTotalsFromJSON)(json['totals']),
51
54
  'daily': (json['daily'].map(ChatDailyUsage_1.ChatDailyUsageFromJSON)),
52
55
  'modelUsage': (json['model_usage'].map(ChatModelUsage_1.ChatModelUsageFromJSON)),
56
+ 'featureUsage': (json['feature_usage'].map(ChatFeatureUsage_1.ChatFeatureUsageFromJSON)),
53
57
  };
54
58
  }
55
59
  function GetChatUsageToJSON(json) {
@@ -65,5 +69,6 @@ function GetChatUsageToJSONTyped(value, ignoreDiscriminator = false) {
65
69
  'totals': (0, ChatUsageTotals_1.ChatUsageTotalsToJSON)(value['totals']),
66
70
  'daily': (value['daily'].map(ChatDailyUsage_1.ChatDailyUsageToJSON)),
67
71
  'model_usage': (value['modelUsage'].map(ChatModelUsage_1.ChatModelUsageToJSON)),
72
+ 'feature_usage': (value['featureUsage'].map(ChatFeatureUsage_1.ChatFeatureUsageToJSON)),
68
73
  };
69
74
  }
@@ -25,6 +25,7 @@ export * from './CertificateRenewalPolicy';
25
25
  export * from './CertificateTemplate';
26
26
  export * from './CertificateTemplateVersion';
27
27
  export * from './ChatDailyUsage';
28
+ export * from './ChatFeatureUsage';
28
29
  export * from './ChatModelUsage';
29
30
  export * from './ChatQuota';
30
31
  export * from './ChatQuotaExceeded';
@@ -43,6 +43,7 @@ __exportStar(require("./CertificateRenewalPolicy"), exports);
43
43
  __exportStar(require("./CertificateTemplate"), exports);
44
44
  __exportStar(require("./CertificateTemplateVersion"), exports);
45
45
  __exportStar(require("./ChatDailyUsage"), exports);
46
+ __exportStar(require("./ChatFeatureUsage"), exports);
46
47
  __exportStar(require("./ChatModelUsage"), exports);
47
48
  __exportStar(require("./ChatQuota"), exports);
48
49
  __exportStar(require("./ChatQuotaExceeded"), exports);
@@ -0,0 +1,36 @@
1
+
2
+ # ChatFeatureUsage
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `feature` | string
10
+ `usage` | [ChatUsageTotals](ChatUsageTotals.md)
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { ChatFeatureUsage } from '@easyedu/js-lsm-api'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "feature": null,
20
+ "usage": null,
21
+ } satisfies ChatFeatureUsage
22
+
23
+ console.log(example)
24
+
25
+ // Convert the instance to a JSON string
26
+ const exampleJSON: string = JSON.stringify(example)
27
+ console.log(exampleJSON)
28
+
29
+ // Parse the JSON string back to an object
30
+ const exampleParsed = JSON.parse(exampleJSON) as ChatFeatureUsage
31
+ console.log(exampleParsed)
32
+ ```
33
+
34
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
+
36
+
@@ -11,6 +11,7 @@ Name | Type
11
11
  `totals` | [ChatUsageTotals](ChatUsageTotals.md)
12
12
  `daily` | [Array&lt;ChatDailyUsage&gt;](ChatDailyUsage.md)
13
13
  `modelUsage` | [Array&lt;ChatModelUsage&gt;](ChatModelUsage.md)
14
+ `featureUsage` | [Array&lt;ChatFeatureUsage&gt;](ChatFeatureUsage.md)
14
15
 
15
16
  ## Example
16
17
 
@@ -24,6 +25,7 @@ const example = {
24
25
  "totals": null,
25
26
  "daily": null,
26
27
  "modelUsage": null,
28
+ "featureUsage": null,
27
29
  } satisfies GetChatUsage
28
30
 
29
31
  console.log(example)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyedu/js-lsm-api",
3
- "version": "1.113.0",
3
+ "version": "1.114.0",
4
4
  "description": "OpenAPI client for @easyedu/js-lsm-api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -0,0 +1,94 @@
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
+ import { mapValues } from '../runtime';
16
+ import type { ChatUsageTotals } from './ChatUsageTotals';
17
+ import {
18
+ ChatUsageTotalsFromJSON,
19
+ ChatUsageTotalsFromJSONTyped,
20
+ ChatUsageTotalsToJSON,
21
+ ChatUsageTotalsToJSONTyped,
22
+ } from './ChatUsageTotals';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ChatFeatureUsage
28
+ */
29
+ export interface ChatFeatureUsage {
30
+ /**
31
+ *
32
+ * @type {ChatFeatureUsageFeatureEnum}
33
+ * @memberof ChatFeatureUsage
34
+ */
35
+ feature: ChatFeatureUsageFeatureEnum;
36
+ /**
37
+ *
38
+ * @type {ChatUsageTotals}
39
+ * @memberof ChatFeatureUsage
40
+ */
41
+ usage: ChatUsageTotals;
42
+ }
43
+
44
+
45
+ /**
46
+ * @export
47
+ */
48
+ export const ChatFeatureUsageFeatureEnum = {
49
+ Chat: 'chat',
50
+ QuestionImport: 'question_import'
51
+ } as const;
52
+ export type ChatFeatureUsageFeatureEnum = typeof ChatFeatureUsageFeatureEnum[keyof typeof ChatFeatureUsageFeatureEnum];
53
+
54
+
55
+ /**
56
+ * Check if a given object implements the ChatFeatureUsage interface.
57
+ */
58
+ export function instanceOfChatFeatureUsage(value: object): value is ChatFeatureUsage {
59
+ if (!('feature' in value) || value['feature'] === undefined) return false;
60
+ if (!('usage' in value) || value['usage'] === undefined) return false;
61
+ return true;
62
+ }
63
+
64
+ export function ChatFeatureUsageFromJSON(json: any): ChatFeatureUsage {
65
+ return ChatFeatureUsageFromJSONTyped(json, false);
66
+ }
67
+
68
+ export function ChatFeatureUsageFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatFeatureUsage {
69
+ if (json == null) {
70
+ return json;
71
+ }
72
+ return {
73
+
74
+ 'feature': json['feature'],
75
+ 'usage': ChatUsageTotalsFromJSON(json['usage']),
76
+ };
77
+ }
78
+
79
+ export function ChatFeatureUsageToJSON(json: any): ChatFeatureUsage {
80
+ return ChatFeatureUsageToJSONTyped(json, false);
81
+ }
82
+
83
+ export function ChatFeatureUsageToJSONTyped(value?: ChatFeatureUsage | null, ignoreDiscriminator: boolean = false): any {
84
+ if (value == null) {
85
+ return value;
86
+ }
87
+
88
+ return {
89
+
90
+ 'feature': value['feature'],
91
+ 'usage': ChatUsageTotalsToJSON(value['usage']),
92
+ };
93
+ }
94
+
@@ -34,6 +34,13 @@ import {
34
34
  ChatUsageTotalsToJSON,
35
35
  ChatUsageTotalsToJSONTyped,
36
36
  } from './ChatUsageTotals';
37
+ import type { ChatFeatureUsage } from './ChatFeatureUsage';
38
+ import {
39
+ ChatFeatureUsageFromJSON,
40
+ ChatFeatureUsageFromJSONTyped,
41
+ ChatFeatureUsageToJSON,
42
+ ChatFeatureUsageToJSONTyped,
43
+ } from './ChatFeatureUsage';
37
44
 
38
45
  /**
39
46
  *
@@ -71,6 +78,12 @@ export interface GetChatUsage {
71
78
  * @memberof GetChatUsage
72
79
  */
73
80
  modelUsage: Array<ChatModelUsage>;
81
+ /**
82
+ *
83
+ * @type {Array<ChatFeatureUsage>}
84
+ * @memberof GetChatUsage
85
+ */
86
+ featureUsage: Array<ChatFeatureUsage>;
74
87
  }
75
88
 
76
89
  /**
@@ -82,6 +95,7 @@ export function instanceOfGetChatUsage(value: object): value is GetChatUsage {
82
95
  if (!('totals' in value) || value['totals'] === undefined) return false;
83
96
  if (!('daily' in value) || value['daily'] === undefined) return false;
84
97
  if (!('modelUsage' in value) || value['modelUsage'] === undefined) return false;
98
+ if (!('featureUsage' in value) || value['featureUsage'] === undefined) return false;
85
99
  return true;
86
100
  }
87
101
 
@@ -100,6 +114,7 @@ export function GetChatUsageFromJSONTyped(json: any, ignoreDiscriminator: boolea
100
114
  'totals': ChatUsageTotalsFromJSON(json['totals']),
101
115
  'daily': ((json['daily'] as Array<any>).map(ChatDailyUsageFromJSON)),
102
116
  'modelUsage': ((json['model_usage'] as Array<any>).map(ChatModelUsageFromJSON)),
117
+ 'featureUsage': ((json['feature_usage'] as Array<any>).map(ChatFeatureUsageFromJSON)),
103
118
  };
104
119
  }
105
120
 
@@ -119,6 +134,7 @@ export function GetChatUsageToJSONTyped(value?: GetChatUsage | null, ignoreDiscr
119
134
  'totals': ChatUsageTotalsToJSON(value['totals']),
120
135
  'daily': ((value['daily'] as Array<any>).map(ChatDailyUsageToJSON)),
121
136
  'model_usage': ((value['modelUsage'] as Array<any>).map(ChatModelUsageToJSON)),
137
+ 'feature_usage': ((value['featureUsage'] as Array<any>).map(ChatFeatureUsageToJSON)),
122
138
  };
123
139
  }
124
140
 
@@ -27,6 +27,7 @@ export * from './CertificateRenewalPolicy';
27
27
  export * from './CertificateTemplate';
28
28
  export * from './CertificateTemplateVersion';
29
29
  export * from './ChatDailyUsage';
30
+ export * from './ChatFeatureUsage';
30
31
  export * from './ChatModelUsage';
31
32
  export * from './ChatQuota';
32
33
  export * from './ChatQuotaExceeded';