@breign/client 1.0.112 → 1.0.114

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 (68) 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 +2 -2
  26. package/dist/models/AppCreateRequestEphemeralInstancesUio.js +6 -2
  27. package/dist/models/EphemeralInstancesMetricsResponseUio.d.ts +39 -0
  28. package/dist/models/EphemeralInstancesMetricsResponseUio.js +55 -0
  29. package/dist/models/EphemeralInstancesTimeSeriesPointUio.d.ts +44 -0
  30. package/dist/models/EphemeralInstancesTimeSeriesPointUio.js +58 -0
  31. package/dist/models/KnowledgeBaseConfigurationUio.d.ts +12 -0
  32. package/dist/models/KnowledgeBaseConfigurationUio.js +4 -0
  33. package/dist/models/MetricForDayInnerIdUio.d.ts +56 -0
  34. package/dist/models/MetricForDayInnerIdUio.js +56 -0
  35. package/dist/models/MetricForDayInnerUio.d.ts +51 -0
  36. package/dist/models/MetricForDayInnerUio.js +57 -0
  37. package/dist/models/MetricForVisitorByMonthInnerUio.d.ts +44 -0
  38. package/dist/models/MetricForVisitorByMonthInnerUio.js +58 -0
  39. package/dist/models/MetricUio.d.ts +6 -0
  40. package/dist/models/MetricUio.js +2 -0
  41. package/dist/models/MetricsBrainsAgentResponseUio.d.ts +51 -0
  42. package/dist/models/MetricsBrainsAgentResponseUio.js +63 -0
  43. package/dist/models/MetricsTopAgentsResponseInnerUio.d.ts +50 -0
  44. package/dist/models/MetricsTopAgentsResponseInnerUio.js +54 -0
  45. package/dist/models/MetricsTopAgentsUsageResponseInnerUio.d.ts +44 -0
  46. package/dist/models/MetricsTopAgentsUsageResponseInnerUio.js +58 -0
  47. package/dist/models/MetricsUsersResponseUio.d.ts +39 -0
  48. package/dist/models/MetricsUsersResponseUio.js +55 -0
  49. package/dist/models/OrgUsageMetricsResponseTotalUio.d.ts +38 -0
  50. package/dist/models/OrgUsageMetricsResponseTotalUio.js +54 -0
  51. package/dist/models/OrgUsageMetricsResponseUio.d.ts +40 -0
  52. package/dist/models/OrgUsageMetricsResponseUio.js +56 -0
  53. package/dist/models/OrgUsageTimeSeriesPointUio.d.ts +50 -0
  54. package/dist/models/OrgUsageTimeSeriesPointUio.js +62 -0
  55. package/dist/models/SearchKnowledgeBase200ResponseInnerUio.d.ts +6 -0
  56. package/dist/models/SearchKnowledgeBase200ResponseInnerUio.js +2 -0
  57. package/dist/models/SubscriptionAdditionalMetricUio.d.ts +44 -0
  58. package/dist/models/SubscriptionAdditionalMetricUio.js +58 -0
  59. package/dist/models/SubscriptionInteractionsMetricUio.d.ts +39 -0
  60. package/dist/models/SubscriptionInteractionsMetricUio.js +55 -0
  61. package/dist/models/SubscriptionMetricUio.d.ts +6 -5
  62. package/dist/models/SubscriptionMetricUio.js +12 -5
  63. package/dist/models/TotalTokensUsedByAgentUio.d.ts +38 -0
  64. package/dist/models/TotalTokensUsedByAgentUio.js +50 -0
  65. package/dist/models/index.d.ts +23 -0
  66. package/dist/models/index.js +23 -0
  67. package/dist/openapi.json +1069 -61
  68. package/package.json +1 -1
@@ -19,7 +19,14 @@ exports.AgentMetricsOverviewUioFromJSONTyped = AgentMetricsOverviewUioFromJSONTy
19
19
  exports.AgentMetricsOverviewUioToJSON = AgentMetricsOverviewUioToJSON;
20
20
  exports.AgentMetricsOverviewUioToJSONTyped = AgentMetricsOverviewUioToJSONTyped;
21
21
  const SubscriptionMetricUio_1 = require("./SubscriptionMetricUio");
22
+ const AgentMetricsByAppUio_1 = require("./AgentMetricsByAppUio");
23
+ const AgentTokenUsageByTaskUio_1 = require("./AgentTokenUsageByTaskUio");
24
+ const AgentTokenBreakdownUio_1 = require("./AgentTokenBreakdownUio");
25
+ const AgentToolUsageMetricUio_1 = require("./AgentToolUsageMetricUio");
26
+ const AgentFeedbackMetricsUio_1 = require("./AgentFeedbackMetricsUio");
27
+ const AgentTokenUsageMetricUio_1 = require("./AgentTokenUsageMetricUio");
22
28
  const CostMetricUio_1 = require("./CostMetricUio");
29
+ const AgentMetricsPeriodComparisonUio_1 = require("./AgentMetricsPeriodComparisonUio");
23
30
  /**
24
31
  * Check if a given object implements the AgentMetricsOverviewUio interface.
25
32
  */
@@ -46,6 +53,18 @@ function AgentMetricsOverviewUioFromJSONTyped(json, ignoreDiscriminator) {
46
53
  'voiceConversationCount': json['voiceConversationCount'],
47
54
  'userTextMessagesCount': json['userTextMessagesCount'],
48
55
  'userVoiceMessagesCount': json['userVoiceMessagesCount'],
56
+ 'totalRequests': json['totalRequests'] == null ? undefined : json['totalRequests'],
57
+ 'totalTokensUsed': json['totalTokensUsed'] == null ? undefined : json['totalTokensUsed'],
58
+ 'ephemeralInstancesCreated': json['ephemeralInstancesCreated'] == null ? undefined : json['ephemeralInstancesCreated'],
59
+ 'uniqueUsersCount': json['uniqueUsersCount'] == null ? undefined : json['uniqueUsersCount'],
60
+ 'errorConversationCount': json['errorConversationCount'] == null ? undefined : json['errorConversationCount'],
61
+ 'tokenBreakdown': json['tokenBreakdown'] == null ? undefined : (0, AgentTokenBreakdownUio_1.AgentTokenBreakdownUioFromJSON)(json['tokenBreakdown']),
62
+ 'tokenUsageByTask': json['tokenUsageByTask'] == null ? undefined : (json['tokenUsageByTask'].map(AgentTokenUsageByTaskUio_1.AgentTokenUsageByTaskUioFromJSON)),
63
+ 'feedback': json['feedback'] == null ? undefined : (0, AgentFeedbackMetricsUio_1.AgentFeedbackMetricsUioFromJSON)(json['feedback']),
64
+ 'metricsByApp': json['metricsByApp'] == null ? undefined : (json['metricsByApp'].map(AgentMetricsByAppUio_1.AgentMetricsByAppUioFromJSON)),
65
+ 'topTools': json['topTools'] == null ? undefined : (json['topTools'].map(AgentToolUsageMetricUio_1.AgentToolUsageMetricUioFromJSON)),
66
+ 'periodComparison': json['periodComparison'] == null ? undefined : (0, AgentMetricsPeriodComparisonUio_1.AgentMetricsPeriodComparisonUioFromJSON)(json['periodComparison']),
67
+ 'tokenUsage': json['tokenUsage'] == null ? undefined : (json['tokenUsage'].map(AgentTokenUsageMetricUio_1.AgentTokenUsageMetricUioFromJSON)),
49
68
  'subscription': json['subscription'] == null ? undefined : (0, SubscriptionMetricUio_1.SubscriptionMetricUioFromJSON)(json['subscription']),
50
69
  'costs': json['costs'] == null ? undefined : (0, CostMetricUio_1.CostMetricUioFromJSON)(json['costs']),
51
70
  };
@@ -62,6 +81,18 @@ function AgentMetricsOverviewUioToJSONTyped(value, ignoreDiscriminator = false)
62
81
  'voiceConversationCount': value['voiceConversationCount'],
63
82
  'userTextMessagesCount': value['userTextMessagesCount'],
64
83
  'userVoiceMessagesCount': value['userVoiceMessagesCount'],
84
+ 'totalRequests': value['totalRequests'],
85
+ 'totalTokensUsed': value['totalTokensUsed'],
86
+ 'ephemeralInstancesCreated': value['ephemeralInstancesCreated'],
87
+ 'uniqueUsersCount': value['uniqueUsersCount'],
88
+ 'errorConversationCount': value['errorConversationCount'],
89
+ 'tokenBreakdown': (0, AgentTokenBreakdownUio_1.AgentTokenBreakdownUioToJSON)(value['tokenBreakdown']),
90
+ 'tokenUsageByTask': value['tokenUsageByTask'] == null ? undefined : (value['tokenUsageByTask'].map(AgentTokenUsageByTaskUio_1.AgentTokenUsageByTaskUioToJSON)),
91
+ 'feedback': (0, AgentFeedbackMetricsUio_1.AgentFeedbackMetricsUioToJSON)(value['feedback']),
92
+ 'metricsByApp': value['metricsByApp'] == null ? undefined : (value['metricsByApp'].map(AgentMetricsByAppUio_1.AgentMetricsByAppUioToJSON)),
93
+ 'topTools': value['topTools'] == null ? undefined : (value['topTools'].map(AgentToolUsageMetricUio_1.AgentToolUsageMetricUioToJSON)),
94
+ 'periodComparison': (0, AgentMetricsPeriodComparisonUio_1.AgentMetricsPeriodComparisonUioToJSON)(value['periodComparison']),
95
+ 'tokenUsage': value['tokenUsage'] == null ? undefined : (value['tokenUsage'].map(AgentTokenUsageMetricUio_1.AgentTokenUsageMetricUioToJSON)),
65
96
  'subscription': (0, SubscriptionMetricUio_1.SubscriptionMetricUioToJSON)(value['subscription']),
66
97
  'costs': (0, CostMetricUio_1.CostMetricUioToJSON)(value['costs']),
67
98
  };
@@ -0,0 +1,41 @@
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 { AgentMetricsPeriodSnapshotUio } from './AgentMetricsPeriodSnapshotUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AgentMetricsPeriodComparisonUio
17
+ */
18
+ export interface AgentMetricsPeriodComparisonUio {
19
+ /**
20
+ *
21
+ * @type {AgentMetricsPeriodSnapshotUio}
22
+ * @memberof AgentMetricsPeriodComparisonUio
23
+ */
24
+ previous: AgentMetricsPeriodSnapshotUio;
25
+ /**
26
+ *
27
+ * @type {{ [key: string]: number | null; }}
28
+ * @memberof AgentMetricsPeriodComparisonUio
29
+ */
30
+ deltaPercent: {
31
+ [key: string]: number | null;
32
+ };
33
+ }
34
+ /**
35
+ * Check if a given object implements the AgentMetricsPeriodComparisonUio interface.
36
+ */
37
+ export declare function instanceOfAgentMetricsPeriodComparisonUio(value: object): value is AgentMetricsPeriodComparisonUio;
38
+ export declare function AgentMetricsPeriodComparisonUioFromJSON(json: any): AgentMetricsPeriodComparisonUio;
39
+ export declare function AgentMetricsPeriodComparisonUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentMetricsPeriodComparisonUio;
40
+ export declare function AgentMetricsPeriodComparisonUioToJSON(json: any): AgentMetricsPeriodComparisonUio;
41
+ export declare function AgentMetricsPeriodComparisonUioToJSONTyped(value?: AgentMetricsPeriodComparisonUio | 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.instanceOfAgentMetricsPeriodComparisonUio = instanceOfAgentMetricsPeriodComparisonUio;
17
+ exports.AgentMetricsPeriodComparisonUioFromJSON = AgentMetricsPeriodComparisonUioFromJSON;
18
+ exports.AgentMetricsPeriodComparisonUioFromJSONTyped = AgentMetricsPeriodComparisonUioFromJSONTyped;
19
+ exports.AgentMetricsPeriodComparisonUioToJSON = AgentMetricsPeriodComparisonUioToJSON;
20
+ exports.AgentMetricsPeriodComparisonUioToJSONTyped = AgentMetricsPeriodComparisonUioToJSONTyped;
21
+ const AgentMetricsPeriodSnapshotUio_1 = require("./AgentMetricsPeriodSnapshotUio");
22
+ /**
23
+ * Check if a given object implements the AgentMetricsPeriodComparisonUio interface.
24
+ */
25
+ function instanceOfAgentMetricsPeriodComparisonUio(value) {
26
+ if (!('previous' in value) || value['previous'] === undefined)
27
+ return false;
28
+ if (!('deltaPercent' in value) || value['deltaPercent'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function AgentMetricsPeriodComparisonUioFromJSON(json) {
33
+ return AgentMetricsPeriodComparisonUioFromJSONTyped(json, false);
34
+ }
35
+ function AgentMetricsPeriodComparisonUioFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'previous': (0, AgentMetricsPeriodSnapshotUio_1.AgentMetricsPeriodSnapshotUioFromJSON)(json['previous']),
41
+ 'deltaPercent': json['deltaPercent'],
42
+ };
43
+ }
44
+ function AgentMetricsPeriodComparisonUioToJSON(json) {
45
+ return AgentMetricsPeriodComparisonUioToJSONTyped(json, false);
46
+ }
47
+ function AgentMetricsPeriodComparisonUioToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'previous': (0, AgentMetricsPeriodSnapshotUio_1.AgentMetricsPeriodSnapshotUioToJSON)(value['previous']),
53
+ 'deltaPercent': value['deltaPercent'],
54
+ };
55
+ }
@@ -0,0 +1,68 @@
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 AgentMetricsPeriodSnapshotUio
16
+ */
17
+ export interface AgentMetricsPeriodSnapshotUio {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof AgentMetricsPeriodSnapshotUio
22
+ */
23
+ totalRequests: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof AgentMetricsPeriodSnapshotUio
28
+ */
29
+ totalTokensUsed: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof AgentMetricsPeriodSnapshotUio
34
+ */
35
+ conversations: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof AgentMetricsPeriodSnapshotUio
40
+ */
41
+ uniqueUsersCount: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof AgentMetricsPeriodSnapshotUio
46
+ */
47
+ ephemeralInstancesCreated: number;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof AgentMetricsPeriodSnapshotUio
52
+ */
53
+ errorConversationCount: number;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof AgentMetricsPeriodSnapshotUio
58
+ */
59
+ feedbackPositive: number;
60
+ }
61
+ /**
62
+ * Check if a given object implements the AgentMetricsPeriodSnapshotUio interface.
63
+ */
64
+ export declare function instanceOfAgentMetricsPeriodSnapshotUio(value: object): value is AgentMetricsPeriodSnapshotUio;
65
+ export declare function AgentMetricsPeriodSnapshotUioFromJSON(json: any): AgentMetricsPeriodSnapshotUio;
66
+ export declare function AgentMetricsPeriodSnapshotUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentMetricsPeriodSnapshotUio;
67
+ export declare function AgentMetricsPeriodSnapshotUioToJSON(json: any): AgentMetricsPeriodSnapshotUio;
68
+ export declare function AgentMetricsPeriodSnapshotUioToJSONTyped(value?: AgentMetricsPeriodSnapshotUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,74 @@
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.instanceOfAgentMetricsPeriodSnapshotUio = instanceOfAgentMetricsPeriodSnapshotUio;
17
+ exports.AgentMetricsPeriodSnapshotUioFromJSON = AgentMetricsPeriodSnapshotUioFromJSON;
18
+ exports.AgentMetricsPeriodSnapshotUioFromJSONTyped = AgentMetricsPeriodSnapshotUioFromJSONTyped;
19
+ exports.AgentMetricsPeriodSnapshotUioToJSON = AgentMetricsPeriodSnapshotUioToJSON;
20
+ exports.AgentMetricsPeriodSnapshotUioToJSONTyped = AgentMetricsPeriodSnapshotUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AgentMetricsPeriodSnapshotUio interface.
23
+ */
24
+ function instanceOfAgentMetricsPeriodSnapshotUio(value) {
25
+ if (!('totalRequests' in value) || value['totalRequests'] === undefined)
26
+ return false;
27
+ if (!('totalTokensUsed' in value) || value['totalTokensUsed'] === undefined)
28
+ return false;
29
+ if (!('conversations' in value) || value['conversations'] === undefined)
30
+ return false;
31
+ if (!('uniqueUsersCount' in value) || value['uniqueUsersCount'] === undefined)
32
+ return false;
33
+ if (!('ephemeralInstancesCreated' in value) || value['ephemeralInstancesCreated'] === undefined)
34
+ return false;
35
+ if (!('errorConversationCount' in value) || value['errorConversationCount'] === undefined)
36
+ return false;
37
+ if (!('feedbackPositive' in value) || value['feedbackPositive'] === undefined)
38
+ return false;
39
+ return true;
40
+ }
41
+ function AgentMetricsPeriodSnapshotUioFromJSON(json) {
42
+ return AgentMetricsPeriodSnapshotUioFromJSONTyped(json, false);
43
+ }
44
+ function AgentMetricsPeriodSnapshotUioFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'totalRequests': json['totalRequests'],
50
+ 'totalTokensUsed': json['totalTokensUsed'],
51
+ 'conversations': json['conversations'],
52
+ 'uniqueUsersCount': json['uniqueUsersCount'],
53
+ 'ephemeralInstancesCreated': json['ephemeralInstancesCreated'],
54
+ 'errorConversationCount': json['errorConversationCount'],
55
+ 'feedbackPositive': json['feedbackPositive'],
56
+ };
57
+ }
58
+ function AgentMetricsPeriodSnapshotUioToJSON(json) {
59
+ return AgentMetricsPeriodSnapshotUioToJSONTyped(json, false);
60
+ }
61
+ function AgentMetricsPeriodSnapshotUioToJSONTyped(value, ignoreDiscriminator = false) {
62
+ if (value == null) {
63
+ return value;
64
+ }
65
+ return {
66
+ 'totalRequests': value['totalRequests'],
67
+ 'totalTokensUsed': value['totalTokensUsed'],
68
+ 'conversations': value['conversations'],
69
+ 'uniqueUsersCount': value['uniqueUsersCount'],
70
+ 'ephemeralInstancesCreated': value['ephemeralInstancesCreated'],
71
+ 'errorConversationCount': value['errorConversationCount'],
72
+ 'feedbackPositive': value['feedbackPositive'],
73
+ };
74
+ }
@@ -18,6 +18,7 @@ export declare const AgentMetricsUnitsTypeUio: {
18
18
  readonly Currency: "CURRENCY";
19
19
  readonly Milliseconds: "MILLISECONDS";
20
20
  readonly Characters: "CHARACTERS";
21
+ readonly Count: "COUNT";
21
22
  };
22
23
  export type AgentMetricsUnitsTypeUio = typeof AgentMetricsUnitsTypeUio[keyof typeof AgentMetricsUnitsTypeUio];
23
24
  export declare function instanceOfAgentMetricsUnitsTypeUio(value: any): boolean;
@@ -27,7 +27,8 @@ exports.AgentMetricsUnitsTypeUio = {
27
27
  Tokens: 'TOKENS',
28
28
  Currency: 'CURRENCY',
29
29
  Milliseconds: 'MILLISECONDS',
30
- Characters: 'CHARACTERS'
30
+ Characters: 'CHARACTERS',
31
+ Count: 'COUNT'
31
32
  };
32
33
  function instanceOfAgentMetricsUnitsTypeUio(value) {
33
34
  for (const key in exports.AgentMetricsUnitsTypeUio) {
@@ -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 AgentTokenBreakdownUio
16
+ */
17
+ export interface AgentTokenBreakdownUio {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof AgentTokenBreakdownUio
22
+ */
23
+ inputTokens: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof AgentTokenBreakdownUio
28
+ */
29
+ outputTokens: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof AgentTokenBreakdownUio
34
+ */
35
+ reasoningTokens: number;
36
+ }
37
+ /**
38
+ * Check if a given object implements the AgentTokenBreakdownUio interface.
39
+ */
40
+ export declare function instanceOfAgentTokenBreakdownUio(value: object): value is AgentTokenBreakdownUio;
41
+ export declare function AgentTokenBreakdownUioFromJSON(json: any): AgentTokenBreakdownUio;
42
+ export declare function AgentTokenBreakdownUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentTokenBreakdownUio;
43
+ export declare function AgentTokenBreakdownUioToJSON(json: any): AgentTokenBreakdownUio;
44
+ export declare function AgentTokenBreakdownUioToJSONTyped(value?: AgentTokenBreakdownUio | 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.instanceOfAgentTokenBreakdownUio = instanceOfAgentTokenBreakdownUio;
17
+ exports.AgentTokenBreakdownUioFromJSON = AgentTokenBreakdownUioFromJSON;
18
+ exports.AgentTokenBreakdownUioFromJSONTyped = AgentTokenBreakdownUioFromJSONTyped;
19
+ exports.AgentTokenBreakdownUioToJSON = AgentTokenBreakdownUioToJSON;
20
+ exports.AgentTokenBreakdownUioToJSONTyped = AgentTokenBreakdownUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AgentTokenBreakdownUio interface.
23
+ */
24
+ function instanceOfAgentTokenBreakdownUio(value) {
25
+ if (!('inputTokens' in value) || value['inputTokens'] === undefined)
26
+ return false;
27
+ if (!('outputTokens' in value) || value['outputTokens'] === undefined)
28
+ return false;
29
+ if (!('reasoningTokens' in value) || value['reasoningTokens'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function AgentTokenBreakdownUioFromJSON(json) {
34
+ return AgentTokenBreakdownUioFromJSONTyped(json, false);
35
+ }
36
+ function AgentTokenBreakdownUioFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'inputTokens': json['inputTokens'],
42
+ 'outputTokens': json['outputTokens'],
43
+ 'reasoningTokens': json['reasoningTokens'],
44
+ };
45
+ }
46
+ function AgentTokenBreakdownUioToJSON(json) {
47
+ return AgentTokenBreakdownUioToJSONTyped(json, false);
48
+ }
49
+ function AgentTokenBreakdownUioToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'inputTokens': value['inputTokens'],
55
+ 'outputTokens': value['outputTokens'],
56
+ 'reasoningTokens': value['reasoningTokens'],
57
+ };
58
+ }
@@ -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 AgentTokenUsageByTaskUio
16
+ */
17
+ export interface AgentTokenUsageByTaskUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AgentTokenUsageByTaskUio
22
+ */
23
+ task: string;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof AgentTokenUsageByTaskUio
28
+ */
29
+ total: number;
30
+ }
31
+ /**
32
+ * Check if a given object implements the AgentTokenUsageByTaskUio interface.
33
+ */
34
+ export declare function instanceOfAgentTokenUsageByTaskUio(value: object): value is AgentTokenUsageByTaskUio;
35
+ export declare function AgentTokenUsageByTaskUioFromJSON(json: any): AgentTokenUsageByTaskUio;
36
+ export declare function AgentTokenUsageByTaskUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentTokenUsageByTaskUio;
37
+ export declare function AgentTokenUsageByTaskUioToJSON(json: any): AgentTokenUsageByTaskUio;
38
+ export declare function AgentTokenUsageByTaskUioToJSONTyped(value?: AgentTokenUsageByTaskUio | 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.instanceOfAgentTokenUsageByTaskUio = instanceOfAgentTokenUsageByTaskUio;
17
+ exports.AgentTokenUsageByTaskUioFromJSON = AgentTokenUsageByTaskUioFromJSON;
18
+ exports.AgentTokenUsageByTaskUioFromJSONTyped = AgentTokenUsageByTaskUioFromJSONTyped;
19
+ exports.AgentTokenUsageByTaskUioToJSON = AgentTokenUsageByTaskUioToJSON;
20
+ exports.AgentTokenUsageByTaskUioToJSONTyped = AgentTokenUsageByTaskUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AgentTokenUsageByTaskUio interface.
23
+ */
24
+ function instanceOfAgentTokenUsageByTaskUio(value) {
25
+ if (!('task' in value) || value['task'] === undefined)
26
+ return false;
27
+ if (!('total' in value) || value['total'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function AgentTokenUsageByTaskUioFromJSON(json) {
32
+ return AgentTokenUsageByTaskUioFromJSONTyped(json, false);
33
+ }
34
+ function AgentTokenUsageByTaskUioFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'task': json['task'],
40
+ 'total': json['total'],
41
+ };
42
+ }
43
+ function AgentTokenUsageByTaskUioToJSON(json) {
44
+ return AgentTokenUsageByTaskUioToJSONTyped(json, false);
45
+ }
46
+ function AgentTokenUsageByTaskUioToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'task': value['task'],
52
+ 'total': value['total'],
53
+ };
54
+ }
@@ -0,0 +1,56 @@
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 AgentTokenUsageMetricUio
16
+ */
17
+ export interface AgentTokenUsageMetricUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AgentTokenUsageMetricUio
22
+ */
23
+ provider: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof AgentTokenUsageMetricUio
28
+ */
29
+ model: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof AgentTokenUsageMetricUio
34
+ */
35
+ type: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof AgentTokenUsageMetricUio
40
+ */
41
+ units: string;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof AgentTokenUsageMetricUio
46
+ */
47
+ total: number;
48
+ }
49
+ /**
50
+ * Check if a given object implements the AgentTokenUsageMetricUio interface.
51
+ */
52
+ export declare function instanceOfAgentTokenUsageMetricUio(value: object): value is AgentTokenUsageMetricUio;
53
+ export declare function AgentTokenUsageMetricUioFromJSON(json: any): AgentTokenUsageMetricUio;
54
+ export declare function AgentTokenUsageMetricUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentTokenUsageMetricUio;
55
+ export declare function AgentTokenUsageMetricUioToJSON(json: any): AgentTokenUsageMetricUio;
56
+ export declare function AgentTokenUsageMetricUioToJSONTyped(value?: AgentTokenUsageMetricUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,66 @@
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.instanceOfAgentTokenUsageMetricUio = instanceOfAgentTokenUsageMetricUio;
17
+ exports.AgentTokenUsageMetricUioFromJSON = AgentTokenUsageMetricUioFromJSON;
18
+ exports.AgentTokenUsageMetricUioFromJSONTyped = AgentTokenUsageMetricUioFromJSONTyped;
19
+ exports.AgentTokenUsageMetricUioToJSON = AgentTokenUsageMetricUioToJSON;
20
+ exports.AgentTokenUsageMetricUioToJSONTyped = AgentTokenUsageMetricUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AgentTokenUsageMetricUio interface.
23
+ */
24
+ function instanceOfAgentTokenUsageMetricUio(value) {
25
+ if (!('provider' in value) || value['provider'] === undefined)
26
+ return false;
27
+ if (!('model' in value) || value['model'] === undefined)
28
+ return false;
29
+ if (!('type' in value) || value['type'] === undefined)
30
+ return false;
31
+ if (!('units' in value) || value['units'] === undefined)
32
+ return false;
33
+ if (!('total' in value) || value['total'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function AgentTokenUsageMetricUioFromJSON(json) {
38
+ return AgentTokenUsageMetricUioFromJSONTyped(json, false);
39
+ }
40
+ function AgentTokenUsageMetricUioFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'provider': json['provider'],
46
+ 'model': json['model'],
47
+ 'type': json['type'],
48
+ 'units': json['units'],
49
+ 'total': json['total'],
50
+ };
51
+ }
52
+ function AgentTokenUsageMetricUioToJSON(json) {
53
+ return AgentTokenUsageMetricUioToJSONTyped(json, false);
54
+ }
55
+ function AgentTokenUsageMetricUioToJSONTyped(value, ignoreDiscriminator = false) {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'provider': value['provider'],
61
+ 'model': value['model'],
62
+ 'type': value['type'],
63
+ 'units': value['units'],
64
+ 'total': value['total'],
65
+ };
66
+ }
@@ -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 AgentToolUsageMetricUio
16
+ */
17
+ export interface AgentToolUsageMetricUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AgentToolUsageMetricUio
22
+ */
23
+ toolName: string;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof AgentToolUsageMetricUio
28
+ */
29
+ count: number;
30
+ }
31
+ /**
32
+ * Check if a given object implements the AgentToolUsageMetricUio interface.
33
+ */
34
+ export declare function instanceOfAgentToolUsageMetricUio(value: object): value is AgentToolUsageMetricUio;
35
+ export declare function AgentToolUsageMetricUioFromJSON(json: any): AgentToolUsageMetricUio;
36
+ export declare function AgentToolUsageMetricUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentToolUsageMetricUio;
37
+ export declare function AgentToolUsageMetricUioToJSON(json: any): AgentToolUsageMetricUio;
38
+ export declare function AgentToolUsageMetricUioToJSONTyped(value?: AgentToolUsageMetricUio | null, ignoreDiscriminator?: boolean): any;