@breign/client 1.0.111 → 1.0.113

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 (72) hide show
  1. package/dist/apis/AgentApi.d.ts +60 -10
  2. package/dist/apis/AgentApi.js +99 -7
  3. package/dist/apis/MetricsApi.d.ts +131 -7
  4. package/dist/apis/MetricsApi.js +269 -5
  5. package/dist/models/AgentFeedbackMetricsUio.d.ts +50 -0
  6. package/dist/models/AgentFeedbackMetricsUio.js +60 -0
  7. package/dist/models/AgentMetricsByAppUio.d.ts +56 -0
  8. package/dist/models/AgentMetricsByAppUio.js +64 -0
  9. package/dist/models/AgentMetricsOverviewUio.d.ts +79 -0
  10. package/dist/models/AgentMetricsOverviewUio.js +31 -0
  11. package/dist/models/AgentMetricsPeriodComparisonUio.d.ts +41 -0
  12. package/dist/models/AgentMetricsPeriodComparisonUio.js +55 -0
  13. package/dist/models/AgentMetricsPeriodSnapshotUio.d.ts +68 -0
  14. package/dist/models/AgentMetricsPeriodSnapshotUio.js +74 -0
  15. package/dist/models/AgentMetricsUnitsTypeUio.d.ts +1 -0
  16. package/dist/models/AgentMetricsUnitsTypeUio.js +2 -1
  17. package/dist/models/AgentTokenBreakdownUio.d.ts +44 -0
  18. package/dist/models/AgentTokenBreakdownUio.js +58 -0
  19. package/dist/models/AgentTokenUsageByTaskUio.d.ts +38 -0
  20. package/dist/models/AgentTokenUsageByTaskUio.js +54 -0
  21. package/dist/models/AgentTokenUsageMetricUio.d.ts +56 -0
  22. package/dist/models/AgentTokenUsageMetricUio.js +66 -0
  23. package/dist/models/AgentToolUsageMetricUio.d.ts +38 -0
  24. package/dist/models/AgentToolUsageMetricUio.js +54 -0
  25. package/dist/models/AppCreateRequestEphemeralInstancesUio.d.ts +38 -0
  26. package/dist/models/AppCreateRequestEphemeralInstancesUio.js +54 -0
  27. package/dist/models/AppCreateRequestUio.d.ts +7 -0
  28. package/dist/models/AppCreateRequestUio.js +3 -0
  29. package/dist/models/AppUio.d.ts +3 -3
  30. package/dist/models/AppUio.js +3 -3
  31. package/dist/models/AppUpdateRequestUio.d.ts +7 -0
  32. package/dist/models/AppUpdateRequestUio.js +3 -0
  33. package/dist/models/EphemeralInstancesMetricsResponseUio.d.ts +39 -0
  34. package/dist/models/EphemeralInstancesMetricsResponseUio.js +55 -0
  35. package/dist/models/EphemeralInstancesTimeSeriesPointUio.d.ts +44 -0
  36. package/dist/models/EphemeralInstancesTimeSeriesPointUio.js +58 -0
  37. package/dist/models/MetricForDayInnerIdUio.d.ts +56 -0
  38. package/dist/models/MetricForDayInnerIdUio.js +56 -0
  39. package/dist/models/MetricForDayInnerUio.d.ts +51 -0
  40. package/dist/models/MetricForDayInnerUio.js +57 -0
  41. package/dist/models/MetricForVisitorByMonthInnerUio.d.ts +44 -0
  42. package/dist/models/MetricForVisitorByMonthInnerUio.js +58 -0
  43. package/dist/models/MetricUio.d.ts +6 -0
  44. package/dist/models/MetricUio.js +2 -0
  45. package/dist/models/MetricsBrainsAgentResponseUio.d.ts +51 -0
  46. package/dist/models/MetricsBrainsAgentResponseUio.js +63 -0
  47. package/dist/models/MetricsTopAgentsResponseInnerUio.d.ts +50 -0
  48. package/dist/models/MetricsTopAgentsResponseInnerUio.js +54 -0
  49. package/dist/models/MetricsTopAgentsUsageResponseInnerUio.d.ts +44 -0
  50. package/dist/models/MetricsTopAgentsUsageResponseInnerUio.js +58 -0
  51. package/dist/models/MetricsUsersResponseUio.d.ts +39 -0
  52. package/dist/models/MetricsUsersResponseUio.js +55 -0
  53. package/dist/models/OrgUsageMetricsResponseTotalUio.d.ts +38 -0
  54. package/dist/models/OrgUsageMetricsResponseTotalUio.js +54 -0
  55. package/dist/models/OrgUsageMetricsResponseUio.d.ts +40 -0
  56. package/dist/models/OrgUsageMetricsResponseUio.js +56 -0
  57. package/dist/models/OrgUsageTimeSeriesPointUio.d.ts +50 -0
  58. package/dist/models/OrgUsageTimeSeriesPointUio.js +62 -0
  59. package/dist/models/SubscriptionAdditionalMetricUio.d.ts +44 -0
  60. package/dist/models/SubscriptionAdditionalMetricUio.js +58 -0
  61. package/dist/models/SubscriptionInteractionsMetricUio.d.ts +39 -0
  62. package/dist/models/SubscriptionInteractionsMetricUio.js +55 -0
  63. package/dist/models/SubscriptionMetricUio.d.ts +6 -5
  64. package/dist/models/SubscriptionMetricUio.js +12 -5
  65. package/dist/models/TotalTokensUsedByAgentUio.d.ts +38 -0
  66. package/dist/models/TotalTokensUsedByAgentUio.js +50 -0
  67. package/dist/models/index.d.ts +24 -1
  68. package/dist/models/index.js +24 -1
  69. package/dist/openapi.json +1069 -67
  70. package/package.json +1 -1
  71. package/dist/models/AppEphemeralInstancesUio.d.ts +0 -38
  72. package/dist/models/AppEphemeralInstancesUio.js +0 -50
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
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.instanceOfMetricForDayInnerUio = instanceOfMetricForDayInnerUio;
17
+ exports.MetricForDayInnerUioFromJSON = MetricForDayInnerUioFromJSON;
18
+ exports.MetricForDayInnerUioFromJSONTyped = MetricForDayInnerUioFromJSONTyped;
19
+ exports.MetricForDayInnerUioToJSON = MetricForDayInnerUioToJSON;
20
+ exports.MetricForDayInnerUioToJSONTyped = MetricForDayInnerUioToJSONTyped;
21
+ const MetricForDayInnerIdUio_1 = require("./MetricForDayInnerIdUio");
22
+ /**
23
+ * Check if a given object implements the MetricForDayInnerUio interface.
24
+ */
25
+ function instanceOfMetricForDayInnerUio(value) {
26
+ if (!('id' in value) || value['id'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function MetricForDayInnerUioFromJSON(json) {
31
+ return MetricForDayInnerUioFromJSONTyped(json, false);
32
+ }
33
+ function MetricForDayInnerUioFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'id': (0, MetricForDayInnerIdUio_1.MetricForDayInnerIdUioFromJSON)(json['_id']),
39
+ 'total': json['total'] == null ? undefined : json['total'],
40
+ 'count': json['count'] == null ? undefined : json['count'],
41
+ 'timestamp': json['timestamp'] == null ? undefined : (new Date(json['timestamp'])),
42
+ };
43
+ }
44
+ function MetricForDayInnerUioToJSON(json) {
45
+ return MetricForDayInnerUioToJSONTyped(json, false);
46
+ }
47
+ function MetricForDayInnerUioToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ '_id': (0, MetricForDayInnerIdUio_1.MetricForDayInnerIdUioToJSON)(value['id']),
53
+ 'total': value['total'],
54
+ 'count': value['count'],
55
+ 'timestamp': value['timestamp'] == null ? undefined : ((value['timestamp']).toISOString()),
56
+ };
57
+ }
@@ -0,0 +1,44 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
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 MetricForVisitorByMonthInnerUio
16
+ */
17
+ export interface MetricForVisitorByMonthInnerUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof MetricForVisitorByMonthInnerUio
22
+ */
23
+ date: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof MetricForVisitorByMonthInnerUio
28
+ */
29
+ label: string;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof MetricForVisitorByMonthInnerUio
34
+ */
35
+ users: number;
36
+ }
37
+ /**
38
+ * Check if a given object implements the MetricForVisitorByMonthInnerUio interface.
39
+ */
40
+ export declare function instanceOfMetricForVisitorByMonthInnerUio(value: object): value is MetricForVisitorByMonthInnerUio;
41
+ export declare function MetricForVisitorByMonthInnerUioFromJSON(json: any): MetricForVisitorByMonthInnerUio;
42
+ export declare function MetricForVisitorByMonthInnerUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): MetricForVisitorByMonthInnerUio;
43
+ export declare function MetricForVisitorByMonthInnerUioToJSON(json: any): MetricForVisitorByMonthInnerUio;
44
+ export declare function MetricForVisitorByMonthInnerUioToJSONTyped(value?: MetricForVisitorByMonthInnerUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
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.instanceOfMetricForVisitorByMonthInnerUio = instanceOfMetricForVisitorByMonthInnerUio;
17
+ exports.MetricForVisitorByMonthInnerUioFromJSON = MetricForVisitorByMonthInnerUioFromJSON;
18
+ exports.MetricForVisitorByMonthInnerUioFromJSONTyped = MetricForVisitorByMonthInnerUioFromJSONTyped;
19
+ exports.MetricForVisitorByMonthInnerUioToJSON = MetricForVisitorByMonthInnerUioToJSON;
20
+ exports.MetricForVisitorByMonthInnerUioToJSONTyped = MetricForVisitorByMonthInnerUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the MetricForVisitorByMonthInnerUio interface.
23
+ */
24
+ function instanceOfMetricForVisitorByMonthInnerUio(value) {
25
+ if (!('date' in value) || value['date'] === undefined)
26
+ return false;
27
+ if (!('label' in value) || value['label'] === undefined)
28
+ return false;
29
+ if (!('users' in value) || value['users'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function MetricForVisitorByMonthInnerUioFromJSON(json) {
34
+ return MetricForVisitorByMonthInnerUioFromJSONTyped(json, false);
35
+ }
36
+ function MetricForVisitorByMonthInnerUioFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'date': json['date'],
42
+ 'label': json['label'],
43
+ 'users': json['users'],
44
+ };
45
+ }
46
+ function MetricForVisitorByMonthInnerUioToJSON(json) {
47
+ return MetricForVisitorByMonthInnerUioToJSONTyped(json, false);
48
+ }
49
+ function MetricForVisitorByMonthInnerUioToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'date': value['date'],
55
+ 'label': value['label'],
56
+ 'users': value['users'],
57
+ };
58
+ }
@@ -34,6 +34,12 @@ export interface MetricUio {
34
34
  * @memberof MetricUio
35
35
  */
36
36
  count: number;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof MetricUio
41
+ */
42
+ timestamp?: string;
37
43
  }
38
44
  /**
39
45
  * Check if a given object implements the MetricUio interface.
@@ -42,6 +42,7 @@ function MetricUioFromJSONTyped(json, ignoreDiscriminator) {
42
42
  'identifier': (0, MetricIdentifierUio_1.MetricIdentifierUioFromJSON)(json['identifier']),
43
43
  'total': json['total'],
44
44
  'count': json['count'],
45
+ 'timestamp': json['timestamp'] == null ? undefined : json['timestamp'],
45
46
  };
46
47
  }
47
48
  function MetricUioToJSON(json) {
@@ -55,5 +56,6 @@ function MetricUioToJSONTyped(value, ignoreDiscriminator = false) {
55
56
  'identifier': (0, MetricIdentifierUio_1.MetricIdentifierUioToJSON)(value['identifier']),
56
57
  'total': value['total'],
57
58
  'count': value['count'],
59
+ 'timestamp': value['timestamp'],
58
60
  };
59
61
  }
@@ -0,0 +1,51 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
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 { TotalTokensUsedByAgentUio } from './TotalTokensUsedByAgentUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface MetricsBrainsAgentResponseUio
17
+ */
18
+ export interface MetricsBrainsAgentResponseUio {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof MetricsBrainsAgentResponseUio
23
+ */
24
+ conversationCount: number;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof MetricsBrainsAgentResponseUio
29
+ */
30
+ usersCount: number;
31
+ /**
32
+ *
33
+ * @type {TotalTokensUsedByAgentUio}
34
+ * @memberof MetricsBrainsAgentResponseUio
35
+ */
36
+ totalTokensUsedByAgent: TotalTokensUsedByAgentUio;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof MetricsBrainsAgentResponseUio
41
+ */
42
+ totalRequests: number;
43
+ }
44
+ /**
45
+ * Check if a given object implements the MetricsBrainsAgentResponseUio interface.
46
+ */
47
+ export declare function instanceOfMetricsBrainsAgentResponseUio(value: object): value is MetricsBrainsAgentResponseUio;
48
+ export declare function MetricsBrainsAgentResponseUioFromJSON(json: any): MetricsBrainsAgentResponseUio;
49
+ export declare function MetricsBrainsAgentResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): MetricsBrainsAgentResponseUio;
50
+ export declare function MetricsBrainsAgentResponseUioToJSON(json: any): MetricsBrainsAgentResponseUio;
51
+ export declare function MetricsBrainsAgentResponseUioToJSONTyped(value?: MetricsBrainsAgentResponseUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
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.instanceOfMetricsBrainsAgentResponseUio = instanceOfMetricsBrainsAgentResponseUio;
17
+ exports.MetricsBrainsAgentResponseUioFromJSON = MetricsBrainsAgentResponseUioFromJSON;
18
+ exports.MetricsBrainsAgentResponseUioFromJSONTyped = MetricsBrainsAgentResponseUioFromJSONTyped;
19
+ exports.MetricsBrainsAgentResponseUioToJSON = MetricsBrainsAgentResponseUioToJSON;
20
+ exports.MetricsBrainsAgentResponseUioToJSONTyped = MetricsBrainsAgentResponseUioToJSONTyped;
21
+ const TotalTokensUsedByAgentUio_1 = require("./TotalTokensUsedByAgentUio");
22
+ /**
23
+ * Check if a given object implements the MetricsBrainsAgentResponseUio interface.
24
+ */
25
+ function instanceOfMetricsBrainsAgentResponseUio(value) {
26
+ if (!('conversationCount' in value) || value['conversationCount'] === undefined)
27
+ return false;
28
+ if (!('usersCount' in value) || value['usersCount'] === undefined)
29
+ return false;
30
+ if (!('totalTokensUsedByAgent' in value) || value['totalTokensUsedByAgent'] === undefined)
31
+ return false;
32
+ if (!('totalRequests' in value) || value['totalRequests'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ function MetricsBrainsAgentResponseUioFromJSON(json) {
37
+ return MetricsBrainsAgentResponseUioFromJSONTyped(json, false);
38
+ }
39
+ function MetricsBrainsAgentResponseUioFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'conversationCount': json['conversationCount'],
45
+ 'usersCount': json['usersCount'],
46
+ 'totalTokensUsedByAgent': (0, TotalTokensUsedByAgentUio_1.TotalTokensUsedByAgentUioFromJSON)(json['totalTokensUsedByAgent']),
47
+ 'totalRequests': json['totalRequests'],
48
+ };
49
+ }
50
+ function MetricsBrainsAgentResponseUioToJSON(json) {
51
+ return MetricsBrainsAgentResponseUioToJSONTyped(json, false);
52
+ }
53
+ function MetricsBrainsAgentResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'conversationCount': value['conversationCount'],
59
+ 'usersCount': value['usersCount'],
60
+ 'totalTokensUsedByAgent': (0, TotalTokensUsedByAgentUio_1.TotalTokensUsedByAgentUioToJSON)(value['totalTokensUsedByAgent']),
61
+ 'totalRequests': value['totalRequests'],
62
+ };
63
+ }
@@ -0,0 +1,50 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
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 MetricsTopAgentsResponseInnerUio
16
+ */
17
+ export interface MetricsTopAgentsResponseInnerUio {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof MetricsTopAgentsResponseInnerUio
22
+ */
23
+ textConversationCount?: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof MetricsTopAgentsResponseInnerUio
28
+ */
29
+ errorConversationCount?: number;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof MetricsTopAgentsResponseInnerUio
34
+ */
35
+ agentId?: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof MetricsTopAgentsResponseInnerUio
40
+ */
41
+ agentName?: string;
42
+ }
43
+ /**
44
+ * Check if a given object implements the MetricsTopAgentsResponseInnerUio interface.
45
+ */
46
+ export declare function instanceOfMetricsTopAgentsResponseInnerUio(value: object): value is MetricsTopAgentsResponseInnerUio;
47
+ export declare function MetricsTopAgentsResponseInnerUioFromJSON(json: any): MetricsTopAgentsResponseInnerUio;
48
+ export declare function MetricsTopAgentsResponseInnerUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): MetricsTopAgentsResponseInnerUio;
49
+ export declare function MetricsTopAgentsResponseInnerUioToJSON(json: any): MetricsTopAgentsResponseInnerUio;
50
+ export declare function MetricsTopAgentsResponseInnerUioToJSONTyped(value?: MetricsTopAgentsResponseInnerUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
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.instanceOfMetricsTopAgentsResponseInnerUio = instanceOfMetricsTopAgentsResponseInnerUio;
17
+ exports.MetricsTopAgentsResponseInnerUioFromJSON = MetricsTopAgentsResponseInnerUioFromJSON;
18
+ exports.MetricsTopAgentsResponseInnerUioFromJSONTyped = MetricsTopAgentsResponseInnerUioFromJSONTyped;
19
+ exports.MetricsTopAgentsResponseInnerUioToJSON = MetricsTopAgentsResponseInnerUioToJSON;
20
+ exports.MetricsTopAgentsResponseInnerUioToJSONTyped = MetricsTopAgentsResponseInnerUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the MetricsTopAgentsResponseInnerUio interface.
23
+ */
24
+ function instanceOfMetricsTopAgentsResponseInnerUio(value) {
25
+ return true;
26
+ }
27
+ function MetricsTopAgentsResponseInnerUioFromJSON(json) {
28
+ return MetricsTopAgentsResponseInnerUioFromJSONTyped(json, false);
29
+ }
30
+ function MetricsTopAgentsResponseInnerUioFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'textConversationCount': json['textConversationCount'] == null ? undefined : json['textConversationCount'],
36
+ 'errorConversationCount': json['errorConversationCount'] == null ? undefined : json['errorConversationCount'],
37
+ 'agentId': json['agentId'] == null ? undefined : json['agentId'],
38
+ 'agentName': json['agentName'] == null ? undefined : json['agentName'],
39
+ };
40
+ }
41
+ function MetricsTopAgentsResponseInnerUioToJSON(json) {
42
+ return MetricsTopAgentsResponseInnerUioToJSONTyped(json, false);
43
+ }
44
+ function MetricsTopAgentsResponseInnerUioToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'textConversationCount': value['textConversationCount'],
50
+ 'errorConversationCount': value['errorConversationCount'],
51
+ 'agentId': value['agentId'],
52
+ 'agentName': value['agentName'],
53
+ };
54
+ }
@@ -0,0 +1,44 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
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 MetricsTopAgentsUsageResponseInnerUio
16
+ */
17
+ export interface MetricsTopAgentsUsageResponseInnerUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof MetricsTopAgentsUsageResponseInnerUio
22
+ */
23
+ agentId: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof MetricsTopAgentsUsageResponseInnerUio
28
+ */
29
+ agentName: string;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof MetricsTopAgentsUsageResponseInnerUio
34
+ */
35
+ usage: number;
36
+ }
37
+ /**
38
+ * Check if a given object implements the MetricsTopAgentsUsageResponseInnerUio interface.
39
+ */
40
+ export declare function instanceOfMetricsTopAgentsUsageResponseInnerUio(value: object): value is MetricsTopAgentsUsageResponseInnerUio;
41
+ export declare function MetricsTopAgentsUsageResponseInnerUioFromJSON(json: any): MetricsTopAgentsUsageResponseInnerUio;
42
+ export declare function MetricsTopAgentsUsageResponseInnerUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): MetricsTopAgentsUsageResponseInnerUio;
43
+ export declare function MetricsTopAgentsUsageResponseInnerUioToJSON(json: any): MetricsTopAgentsUsageResponseInnerUio;
44
+ export declare function MetricsTopAgentsUsageResponseInnerUioToJSONTyped(value?: MetricsTopAgentsUsageResponseInnerUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
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.instanceOfMetricsTopAgentsUsageResponseInnerUio = instanceOfMetricsTopAgentsUsageResponseInnerUio;
17
+ exports.MetricsTopAgentsUsageResponseInnerUioFromJSON = MetricsTopAgentsUsageResponseInnerUioFromJSON;
18
+ exports.MetricsTopAgentsUsageResponseInnerUioFromJSONTyped = MetricsTopAgentsUsageResponseInnerUioFromJSONTyped;
19
+ exports.MetricsTopAgentsUsageResponseInnerUioToJSON = MetricsTopAgentsUsageResponseInnerUioToJSON;
20
+ exports.MetricsTopAgentsUsageResponseInnerUioToJSONTyped = MetricsTopAgentsUsageResponseInnerUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the MetricsTopAgentsUsageResponseInnerUio interface.
23
+ */
24
+ function instanceOfMetricsTopAgentsUsageResponseInnerUio(value) {
25
+ if (!('agentId' in value) || value['agentId'] === undefined)
26
+ return false;
27
+ if (!('agentName' in value) || value['agentName'] === undefined)
28
+ return false;
29
+ if (!('usage' in value) || value['usage'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function MetricsTopAgentsUsageResponseInnerUioFromJSON(json) {
34
+ return MetricsTopAgentsUsageResponseInnerUioFromJSONTyped(json, false);
35
+ }
36
+ function MetricsTopAgentsUsageResponseInnerUioFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'agentId': json['agentId'],
42
+ 'agentName': json['agentName'],
43
+ 'usage': json['usage'],
44
+ };
45
+ }
46
+ function MetricsTopAgentsUsageResponseInnerUioToJSON(json) {
47
+ return MetricsTopAgentsUsageResponseInnerUioToJSONTyped(json, false);
48
+ }
49
+ function MetricsTopAgentsUsageResponseInnerUioToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'agentId': value['agentId'],
55
+ 'agentName': value['agentName'],
56
+ 'usage': value['usage'],
57
+ };
58
+ }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
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 { MetricForVisitorByMonthInnerUio } from './MetricForVisitorByMonthInnerUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface MetricsUsersResponseUio
17
+ */
18
+ export interface MetricsUsersResponseUio {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof MetricsUsersResponseUio
23
+ */
24
+ usersToday: number;
25
+ /**
26
+ *
27
+ * @type {Array<MetricForVisitorByMonthInnerUio>}
28
+ * @memberof MetricsUsersResponseUio
29
+ */
30
+ usersByMonth: Array<MetricForVisitorByMonthInnerUio>;
31
+ }
32
+ /**
33
+ * Check if a given object implements the MetricsUsersResponseUio interface.
34
+ */
35
+ export declare function instanceOfMetricsUsersResponseUio(value: object): value is MetricsUsersResponseUio;
36
+ export declare function MetricsUsersResponseUioFromJSON(json: any): MetricsUsersResponseUio;
37
+ export declare function MetricsUsersResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): MetricsUsersResponseUio;
38
+ export declare function MetricsUsersResponseUioToJSON(json: any): MetricsUsersResponseUio;
39
+ export declare function MetricsUsersResponseUioToJSONTyped(value?: MetricsUsersResponseUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
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.instanceOfMetricsUsersResponseUio = instanceOfMetricsUsersResponseUio;
17
+ exports.MetricsUsersResponseUioFromJSON = MetricsUsersResponseUioFromJSON;
18
+ exports.MetricsUsersResponseUioFromJSONTyped = MetricsUsersResponseUioFromJSONTyped;
19
+ exports.MetricsUsersResponseUioToJSON = MetricsUsersResponseUioToJSON;
20
+ exports.MetricsUsersResponseUioToJSONTyped = MetricsUsersResponseUioToJSONTyped;
21
+ const MetricForVisitorByMonthInnerUio_1 = require("./MetricForVisitorByMonthInnerUio");
22
+ /**
23
+ * Check if a given object implements the MetricsUsersResponseUio interface.
24
+ */
25
+ function instanceOfMetricsUsersResponseUio(value) {
26
+ if (!('usersToday' in value) || value['usersToday'] === undefined)
27
+ return false;
28
+ if (!('usersByMonth' in value) || value['usersByMonth'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function MetricsUsersResponseUioFromJSON(json) {
33
+ return MetricsUsersResponseUioFromJSONTyped(json, false);
34
+ }
35
+ function MetricsUsersResponseUioFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'usersToday': json['usersToday'],
41
+ 'usersByMonth': (json['usersByMonth'].map(MetricForVisitorByMonthInnerUio_1.MetricForVisitorByMonthInnerUioFromJSON)),
42
+ };
43
+ }
44
+ function MetricsUsersResponseUioToJSON(json) {
45
+ return MetricsUsersResponseUioToJSONTyped(json, false);
46
+ }
47
+ function MetricsUsersResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'usersToday': value['usersToday'],
53
+ 'usersByMonth': (value['usersByMonth'].map(MetricForVisitorByMonthInnerUio_1.MetricForVisitorByMonthInnerUioToJSON)),
54
+ };
55
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
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 OrgUsageMetricsResponseTotalUio
16
+ */
17
+ export interface OrgUsageMetricsResponseTotalUio {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof OrgUsageMetricsResponseTotalUio
22
+ */
23
+ requests: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof OrgUsageMetricsResponseTotalUio
28
+ */
29
+ tokens: number;
30
+ }
31
+ /**
32
+ * Check if a given object implements the OrgUsageMetricsResponseTotalUio interface.
33
+ */
34
+ export declare function instanceOfOrgUsageMetricsResponseTotalUio(value: object): value is OrgUsageMetricsResponseTotalUio;
35
+ export declare function OrgUsageMetricsResponseTotalUioFromJSON(json: any): OrgUsageMetricsResponseTotalUio;
36
+ export declare function OrgUsageMetricsResponseTotalUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrgUsageMetricsResponseTotalUio;
37
+ export declare function OrgUsageMetricsResponseTotalUioToJSON(json: any): OrgUsageMetricsResponseTotalUio;
38
+ export declare function OrgUsageMetricsResponseTotalUioToJSONTyped(value?: OrgUsageMetricsResponseTotalUio | null, ignoreDiscriminator?: boolean): any;