@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.
- package/dist/apis/AgentApi.d.ts +60 -10
- package/dist/apis/AgentApi.js +99 -7
- package/dist/apis/MetricsApi.d.ts +131 -7
- package/dist/apis/MetricsApi.js +269 -5
- package/dist/models/AgentFeedbackMetricsUio.d.ts +50 -0
- package/dist/models/AgentFeedbackMetricsUio.js +60 -0
- package/dist/models/AgentMetricsByAppUio.d.ts +56 -0
- package/dist/models/AgentMetricsByAppUio.js +64 -0
- package/dist/models/AgentMetricsOverviewUio.d.ts +79 -0
- package/dist/models/AgentMetricsOverviewUio.js +31 -0
- package/dist/models/AgentMetricsPeriodComparisonUio.d.ts +41 -0
- package/dist/models/AgentMetricsPeriodComparisonUio.js +55 -0
- package/dist/models/AgentMetricsPeriodSnapshotUio.d.ts +68 -0
- package/dist/models/AgentMetricsPeriodSnapshotUio.js +74 -0
- package/dist/models/AgentMetricsUnitsTypeUio.d.ts +1 -0
- package/dist/models/AgentMetricsUnitsTypeUio.js +2 -1
- package/dist/models/AgentTokenBreakdownUio.d.ts +44 -0
- package/dist/models/AgentTokenBreakdownUio.js +58 -0
- package/dist/models/AgentTokenUsageByTaskUio.d.ts +38 -0
- package/dist/models/AgentTokenUsageByTaskUio.js +54 -0
- package/dist/models/AgentTokenUsageMetricUio.d.ts +56 -0
- package/dist/models/AgentTokenUsageMetricUio.js +66 -0
- package/dist/models/AgentToolUsageMetricUio.d.ts +38 -0
- package/dist/models/AgentToolUsageMetricUio.js +54 -0
- package/dist/models/AppCreateRequestEphemeralInstancesUio.d.ts +38 -0
- package/dist/models/AppCreateRequestEphemeralInstancesUio.js +54 -0
- package/dist/models/AppCreateRequestUio.d.ts +7 -0
- package/dist/models/AppCreateRequestUio.js +3 -0
- package/dist/models/AppUio.d.ts +3 -3
- package/dist/models/AppUio.js +3 -3
- package/dist/models/AppUpdateRequestUio.d.ts +7 -0
- package/dist/models/AppUpdateRequestUio.js +3 -0
- package/dist/models/EphemeralInstancesMetricsResponseUio.d.ts +39 -0
- package/dist/models/EphemeralInstancesMetricsResponseUio.js +55 -0
- package/dist/models/EphemeralInstancesTimeSeriesPointUio.d.ts +44 -0
- package/dist/models/EphemeralInstancesTimeSeriesPointUio.js +58 -0
- package/dist/models/MetricForDayInnerIdUio.d.ts +56 -0
- package/dist/models/MetricForDayInnerIdUio.js +56 -0
- package/dist/models/MetricForDayInnerUio.d.ts +51 -0
- package/dist/models/MetricForDayInnerUio.js +57 -0
- package/dist/models/MetricForVisitorByMonthInnerUio.d.ts +44 -0
- package/dist/models/MetricForVisitorByMonthInnerUio.js +58 -0
- package/dist/models/MetricUio.d.ts +6 -0
- package/dist/models/MetricUio.js +2 -0
- package/dist/models/MetricsBrainsAgentResponseUio.d.ts +51 -0
- package/dist/models/MetricsBrainsAgentResponseUio.js +63 -0
- package/dist/models/MetricsTopAgentsResponseInnerUio.d.ts +50 -0
- package/dist/models/MetricsTopAgentsResponseInnerUio.js +54 -0
- package/dist/models/MetricsTopAgentsUsageResponseInnerUio.d.ts +44 -0
- package/dist/models/MetricsTopAgentsUsageResponseInnerUio.js +58 -0
- package/dist/models/MetricsUsersResponseUio.d.ts +39 -0
- package/dist/models/MetricsUsersResponseUio.js +55 -0
- package/dist/models/OrgUsageMetricsResponseTotalUio.d.ts +38 -0
- package/dist/models/OrgUsageMetricsResponseTotalUio.js +54 -0
- package/dist/models/OrgUsageMetricsResponseUio.d.ts +40 -0
- package/dist/models/OrgUsageMetricsResponseUio.js +56 -0
- package/dist/models/OrgUsageTimeSeriesPointUio.d.ts +50 -0
- package/dist/models/OrgUsageTimeSeriesPointUio.js +62 -0
- package/dist/models/SubscriptionAdditionalMetricUio.d.ts +44 -0
- package/dist/models/SubscriptionAdditionalMetricUio.js +58 -0
- package/dist/models/SubscriptionInteractionsMetricUio.d.ts +39 -0
- package/dist/models/SubscriptionInteractionsMetricUio.js +55 -0
- package/dist/models/SubscriptionMetricUio.d.ts +6 -5
- package/dist/models/SubscriptionMetricUio.js +12 -5
- package/dist/models/TotalTokensUsedByAgentUio.d.ts +38 -0
- package/dist/models/TotalTokensUsedByAgentUio.js +50 -0
- package/dist/models/index.d.ts +24 -1
- package/dist/models/index.js +24 -1
- package/dist/openapi.json +1069 -67
- package/package.json +1 -1
- package/dist/models/AppEphemeralInstancesUio.d.ts +0 -38
- package/dist/models/AppEphemeralInstancesUio.js +0 -50
|
@@ -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.instanceOfOrgUsageMetricsResponseTotalUio = instanceOfOrgUsageMetricsResponseTotalUio;
|
|
17
|
+
exports.OrgUsageMetricsResponseTotalUioFromJSON = OrgUsageMetricsResponseTotalUioFromJSON;
|
|
18
|
+
exports.OrgUsageMetricsResponseTotalUioFromJSONTyped = OrgUsageMetricsResponseTotalUioFromJSONTyped;
|
|
19
|
+
exports.OrgUsageMetricsResponseTotalUioToJSON = OrgUsageMetricsResponseTotalUioToJSON;
|
|
20
|
+
exports.OrgUsageMetricsResponseTotalUioToJSONTyped = OrgUsageMetricsResponseTotalUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the OrgUsageMetricsResponseTotalUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfOrgUsageMetricsResponseTotalUio(value) {
|
|
25
|
+
if (!('requests' in value) || value['requests'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('tokens' in value) || value['tokens'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function OrgUsageMetricsResponseTotalUioFromJSON(json) {
|
|
32
|
+
return OrgUsageMetricsResponseTotalUioFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function OrgUsageMetricsResponseTotalUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'requests': json['requests'],
|
|
40
|
+
'tokens': json['tokens'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function OrgUsageMetricsResponseTotalUioToJSON(json) {
|
|
44
|
+
return OrgUsageMetricsResponseTotalUioToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function OrgUsageMetricsResponseTotalUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'requests': value['requests'],
|
|
52
|
+
'tokens': value['tokens'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { OrgUsageTimeSeriesPointUio } from './OrgUsageTimeSeriesPointUio';
|
|
13
|
+
import type { OrgUsageMetricsResponseTotalUio } from './OrgUsageMetricsResponseTotalUio';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface OrgUsageMetricsResponseUio
|
|
18
|
+
*/
|
|
19
|
+
export interface OrgUsageMetricsResponseUio {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {OrgUsageMetricsResponseTotalUio}
|
|
23
|
+
* @memberof OrgUsageMetricsResponseUio
|
|
24
|
+
*/
|
|
25
|
+
total: OrgUsageMetricsResponseTotalUio;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<OrgUsageTimeSeriesPointUio>}
|
|
29
|
+
* @memberof OrgUsageMetricsResponseUio
|
|
30
|
+
*/
|
|
31
|
+
series: Array<OrgUsageTimeSeriesPointUio>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the OrgUsageMetricsResponseUio interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfOrgUsageMetricsResponseUio(value: object): value is OrgUsageMetricsResponseUio;
|
|
37
|
+
export declare function OrgUsageMetricsResponseUioFromJSON(json: any): OrgUsageMetricsResponseUio;
|
|
38
|
+
export declare function OrgUsageMetricsResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrgUsageMetricsResponseUio;
|
|
39
|
+
export declare function OrgUsageMetricsResponseUioToJSON(json: any): OrgUsageMetricsResponseUio;
|
|
40
|
+
export declare function OrgUsageMetricsResponseUioToJSONTyped(value?: OrgUsageMetricsResponseUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
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.instanceOfOrgUsageMetricsResponseUio = instanceOfOrgUsageMetricsResponseUio;
|
|
17
|
+
exports.OrgUsageMetricsResponseUioFromJSON = OrgUsageMetricsResponseUioFromJSON;
|
|
18
|
+
exports.OrgUsageMetricsResponseUioFromJSONTyped = OrgUsageMetricsResponseUioFromJSONTyped;
|
|
19
|
+
exports.OrgUsageMetricsResponseUioToJSON = OrgUsageMetricsResponseUioToJSON;
|
|
20
|
+
exports.OrgUsageMetricsResponseUioToJSONTyped = OrgUsageMetricsResponseUioToJSONTyped;
|
|
21
|
+
const OrgUsageTimeSeriesPointUio_1 = require("./OrgUsageTimeSeriesPointUio");
|
|
22
|
+
const OrgUsageMetricsResponseTotalUio_1 = require("./OrgUsageMetricsResponseTotalUio");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the OrgUsageMetricsResponseUio interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfOrgUsageMetricsResponseUio(value) {
|
|
27
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('series' in value) || value['series'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function OrgUsageMetricsResponseUioFromJSON(json) {
|
|
34
|
+
return OrgUsageMetricsResponseUioFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function OrgUsageMetricsResponseUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'total': (0, OrgUsageMetricsResponseTotalUio_1.OrgUsageMetricsResponseTotalUioFromJSON)(json['total']),
|
|
42
|
+
'series': (json['series'].map(OrgUsageTimeSeriesPointUio_1.OrgUsageTimeSeriesPointUioFromJSON)),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function OrgUsageMetricsResponseUioToJSON(json) {
|
|
46
|
+
return OrgUsageMetricsResponseUioToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function OrgUsageMetricsResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'total': (0, OrgUsageMetricsResponseTotalUio_1.OrgUsageMetricsResponseTotalUioToJSON)(value['total']),
|
|
54
|
+
'series': (value['series'].map(OrgUsageTimeSeriesPointUio_1.OrgUsageTimeSeriesPointUioToJSON)),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -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 OrgUsageTimeSeriesPointUio
|
|
16
|
+
*/
|
|
17
|
+
export interface OrgUsageTimeSeriesPointUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof OrgUsageTimeSeriesPointUio
|
|
22
|
+
*/
|
|
23
|
+
bucket: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof OrgUsageTimeSeriesPointUio
|
|
28
|
+
*/
|
|
29
|
+
label: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof OrgUsageTimeSeriesPointUio
|
|
34
|
+
*/
|
|
35
|
+
requests: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof OrgUsageTimeSeriesPointUio
|
|
40
|
+
*/
|
|
41
|
+
tokens: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the OrgUsageTimeSeriesPointUio interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfOrgUsageTimeSeriesPointUio(value: object): value is OrgUsageTimeSeriesPointUio;
|
|
47
|
+
export declare function OrgUsageTimeSeriesPointUioFromJSON(json: any): OrgUsageTimeSeriesPointUio;
|
|
48
|
+
export declare function OrgUsageTimeSeriesPointUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrgUsageTimeSeriesPointUio;
|
|
49
|
+
export declare function OrgUsageTimeSeriesPointUioToJSON(json: any): OrgUsageTimeSeriesPointUio;
|
|
50
|
+
export declare function OrgUsageTimeSeriesPointUioToJSONTyped(value?: OrgUsageTimeSeriesPointUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
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.instanceOfOrgUsageTimeSeriesPointUio = instanceOfOrgUsageTimeSeriesPointUio;
|
|
17
|
+
exports.OrgUsageTimeSeriesPointUioFromJSON = OrgUsageTimeSeriesPointUioFromJSON;
|
|
18
|
+
exports.OrgUsageTimeSeriesPointUioFromJSONTyped = OrgUsageTimeSeriesPointUioFromJSONTyped;
|
|
19
|
+
exports.OrgUsageTimeSeriesPointUioToJSON = OrgUsageTimeSeriesPointUioToJSON;
|
|
20
|
+
exports.OrgUsageTimeSeriesPointUioToJSONTyped = OrgUsageTimeSeriesPointUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the OrgUsageTimeSeriesPointUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfOrgUsageTimeSeriesPointUio(value) {
|
|
25
|
+
if (!('bucket' in value) || value['bucket'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('requests' in value) || value['requests'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('tokens' in value) || value['tokens'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function OrgUsageTimeSeriesPointUioFromJSON(json) {
|
|
36
|
+
return OrgUsageTimeSeriesPointUioFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function OrgUsageTimeSeriesPointUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'bucket': json['bucket'],
|
|
44
|
+
'label': json['label'],
|
|
45
|
+
'requests': json['requests'],
|
|
46
|
+
'tokens': json['tokens'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function OrgUsageTimeSeriesPointUioToJSON(json) {
|
|
50
|
+
return OrgUsageTimeSeriesPointUioToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function OrgUsageTimeSeriesPointUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'bucket': value['bucket'],
|
|
58
|
+
'label': value['label'],
|
|
59
|
+
'requests': value['requests'],
|
|
60
|
+
'tokens': value['tokens'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -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 SubscriptionAdditionalMetricUio
|
|
16
|
+
*/
|
|
17
|
+
export interface SubscriptionAdditionalMetricUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SubscriptionAdditionalMetricUio
|
|
22
|
+
*/
|
|
23
|
+
price: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SubscriptionAdditionalMetricUio
|
|
28
|
+
*/
|
|
29
|
+
amountForPrice: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SubscriptionAdditionalMetricUio
|
|
34
|
+
*/
|
|
35
|
+
currency: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the SubscriptionAdditionalMetricUio interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfSubscriptionAdditionalMetricUio(value: object): value is SubscriptionAdditionalMetricUio;
|
|
41
|
+
export declare function SubscriptionAdditionalMetricUioFromJSON(json: any): SubscriptionAdditionalMetricUio;
|
|
42
|
+
export declare function SubscriptionAdditionalMetricUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionAdditionalMetricUio;
|
|
43
|
+
export declare function SubscriptionAdditionalMetricUioToJSON(json: any): SubscriptionAdditionalMetricUio;
|
|
44
|
+
export declare function SubscriptionAdditionalMetricUioToJSONTyped(value?: SubscriptionAdditionalMetricUio | 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.instanceOfSubscriptionAdditionalMetricUio = instanceOfSubscriptionAdditionalMetricUio;
|
|
17
|
+
exports.SubscriptionAdditionalMetricUioFromJSON = SubscriptionAdditionalMetricUioFromJSON;
|
|
18
|
+
exports.SubscriptionAdditionalMetricUioFromJSONTyped = SubscriptionAdditionalMetricUioFromJSONTyped;
|
|
19
|
+
exports.SubscriptionAdditionalMetricUioToJSON = SubscriptionAdditionalMetricUioToJSON;
|
|
20
|
+
exports.SubscriptionAdditionalMetricUioToJSONTyped = SubscriptionAdditionalMetricUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SubscriptionAdditionalMetricUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfSubscriptionAdditionalMetricUio(value) {
|
|
25
|
+
if (!('price' in value) || value['price'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('amountForPrice' in value) || value['amountForPrice'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('currency' in value) || value['currency'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function SubscriptionAdditionalMetricUioFromJSON(json) {
|
|
34
|
+
return SubscriptionAdditionalMetricUioFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function SubscriptionAdditionalMetricUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'price': json['price'],
|
|
42
|
+
'amountForPrice': json['amountForPrice'],
|
|
43
|
+
'currency': json['currency'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function SubscriptionAdditionalMetricUioToJSON(json) {
|
|
47
|
+
return SubscriptionAdditionalMetricUioToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function SubscriptionAdditionalMetricUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'price': value['price'],
|
|
55
|
+
'amountForPrice': value['amountForPrice'],
|
|
56
|
+
'currency': value['currency'],
|
|
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 { SubscriptionAdditionalMetricUio } from './SubscriptionAdditionalMetricUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SubscriptionInteractionsMetricUio
|
|
17
|
+
*/
|
|
18
|
+
export interface SubscriptionInteractionsMetricUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof SubscriptionInteractionsMetricUio
|
|
23
|
+
*/
|
|
24
|
+
included: number;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {SubscriptionAdditionalMetricUio}
|
|
28
|
+
* @memberof SubscriptionInteractionsMetricUio
|
|
29
|
+
*/
|
|
30
|
+
additional: SubscriptionAdditionalMetricUio;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the SubscriptionInteractionsMetricUio interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfSubscriptionInteractionsMetricUio(value: object): value is SubscriptionInteractionsMetricUio;
|
|
36
|
+
export declare function SubscriptionInteractionsMetricUioFromJSON(json: any): SubscriptionInteractionsMetricUio;
|
|
37
|
+
export declare function SubscriptionInteractionsMetricUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionInteractionsMetricUio;
|
|
38
|
+
export declare function SubscriptionInteractionsMetricUioToJSON(json: any): SubscriptionInteractionsMetricUio;
|
|
39
|
+
export declare function SubscriptionInteractionsMetricUioToJSONTyped(value?: SubscriptionInteractionsMetricUio | 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.instanceOfSubscriptionInteractionsMetricUio = instanceOfSubscriptionInteractionsMetricUio;
|
|
17
|
+
exports.SubscriptionInteractionsMetricUioFromJSON = SubscriptionInteractionsMetricUioFromJSON;
|
|
18
|
+
exports.SubscriptionInteractionsMetricUioFromJSONTyped = SubscriptionInteractionsMetricUioFromJSONTyped;
|
|
19
|
+
exports.SubscriptionInteractionsMetricUioToJSON = SubscriptionInteractionsMetricUioToJSON;
|
|
20
|
+
exports.SubscriptionInteractionsMetricUioToJSONTyped = SubscriptionInteractionsMetricUioToJSONTyped;
|
|
21
|
+
const SubscriptionAdditionalMetricUio_1 = require("./SubscriptionAdditionalMetricUio");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the SubscriptionInteractionsMetricUio interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfSubscriptionInteractionsMetricUio(value) {
|
|
26
|
+
if (!('included' in value) || value['included'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('additional' in value) || value['additional'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function SubscriptionInteractionsMetricUioFromJSON(json) {
|
|
33
|
+
return SubscriptionInteractionsMetricUioFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function SubscriptionInteractionsMetricUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'included': json['included'],
|
|
41
|
+
'additional': (0, SubscriptionAdditionalMetricUio_1.SubscriptionAdditionalMetricUioFromJSON)(json['additional']),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function SubscriptionInteractionsMetricUioToJSON(json) {
|
|
45
|
+
return SubscriptionInteractionsMetricUioToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function SubscriptionInteractionsMetricUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'included': value['included'],
|
|
53
|
+
'additional': (0, SubscriptionAdditionalMetricUio_1.SubscriptionAdditionalMetricUioToJSON)(value['additional']),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { SubscriptionInteractionsMetricUio } from './SubscriptionInteractionsMetricUio';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -17,22 +18,22 @@
|
|
|
17
18
|
export interface SubscriptionMetricUio {
|
|
18
19
|
/**
|
|
19
20
|
*
|
|
20
|
-
* @type {
|
|
21
|
+
* @type {SubscriptionInteractionsMetricUio}
|
|
21
22
|
* @memberof SubscriptionMetricUio
|
|
22
23
|
*/
|
|
23
|
-
textInteractions
|
|
24
|
+
textInteractions: SubscriptionInteractionsMetricUio;
|
|
24
25
|
/**
|
|
25
26
|
*
|
|
26
|
-
* @type {
|
|
27
|
+
* @type {SubscriptionInteractionsMetricUio}
|
|
27
28
|
* @memberof SubscriptionMetricUio
|
|
28
29
|
*/
|
|
29
|
-
voiceInteractions
|
|
30
|
+
voiceInteractions: SubscriptionInteractionsMetricUio;
|
|
30
31
|
/**
|
|
31
32
|
*
|
|
32
33
|
* @type {boolean}
|
|
33
34
|
* @memberof SubscriptionMetricUio
|
|
34
35
|
*/
|
|
35
|
-
canGoBeyondIncluded
|
|
36
|
+
canGoBeyondIncluded: boolean;
|
|
36
37
|
/**
|
|
37
38
|
*
|
|
38
39
|
* @type {string}
|
|
@@ -18,10 +18,17 @@ exports.SubscriptionMetricUioFromJSON = SubscriptionMetricUioFromJSON;
|
|
|
18
18
|
exports.SubscriptionMetricUioFromJSONTyped = SubscriptionMetricUioFromJSONTyped;
|
|
19
19
|
exports.SubscriptionMetricUioToJSON = SubscriptionMetricUioToJSON;
|
|
20
20
|
exports.SubscriptionMetricUioToJSONTyped = SubscriptionMetricUioToJSONTyped;
|
|
21
|
+
const SubscriptionInteractionsMetricUio_1 = require("./SubscriptionInteractionsMetricUio");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the SubscriptionMetricUio interface.
|
|
23
24
|
*/
|
|
24
25
|
function instanceOfSubscriptionMetricUio(value) {
|
|
26
|
+
if (!('textInteractions' in value) || value['textInteractions'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('voiceInteractions' in value) || value['voiceInteractions'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('canGoBeyondIncluded' in value) || value['canGoBeyondIncluded'] === undefined)
|
|
31
|
+
return false;
|
|
25
32
|
return true;
|
|
26
33
|
}
|
|
27
34
|
function SubscriptionMetricUioFromJSON(json) {
|
|
@@ -32,9 +39,9 @@ function SubscriptionMetricUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
39
|
return json;
|
|
33
40
|
}
|
|
34
41
|
return {
|
|
35
|
-
'textInteractions':
|
|
36
|
-
'voiceInteractions':
|
|
37
|
-
'canGoBeyondIncluded': json['canGoBeyondIncluded']
|
|
42
|
+
'textInteractions': (0, SubscriptionInteractionsMetricUio_1.SubscriptionInteractionsMetricUioFromJSON)(json['textInteractions']),
|
|
43
|
+
'voiceInteractions': (0, SubscriptionInteractionsMetricUio_1.SubscriptionInteractionsMetricUioFromJSON)(json['voiceInteractions']),
|
|
44
|
+
'canGoBeyondIncluded': json['canGoBeyondIncluded'],
|
|
38
45
|
'startDate': json['startDate'] == null ? undefined : json['startDate'],
|
|
39
46
|
'endDate': json['endDate'] == null ? undefined : json['endDate'],
|
|
40
47
|
};
|
|
@@ -47,8 +54,8 @@ function SubscriptionMetricUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
47
54
|
return value;
|
|
48
55
|
}
|
|
49
56
|
return {
|
|
50
|
-
'textInteractions': value['textInteractions'],
|
|
51
|
-
'voiceInteractions': value['voiceInteractions'],
|
|
57
|
+
'textInteractions': (0, SubscriptionInteractionsMetricUio_1.SubscriptionInteractionsMetricUioToJSON)(value['textInteractions']),
|
|
58
|
+
'voiceInteractions': (0, SubscriptionInteractionsMetricUio_1.SubscriptionInteractionsMetricUioToJSON)(value['voiceInteractions']),
|
|
52
59
|
'canGoBeyondIncluded': value['canGoBeyondIncluded'],
|
|
53
60
|
'startDate': value['startDate'],
|
|
54
61
|
'endDate': value['endDate'],
|
|
@@ -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 TotalTokensUsedByAgentUio
|
|
16
|
+
*/
|
|
17
|
+
export interface TotalTokensUsedByAgentUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof TotalTokensUsedByAgentUio
|
|
22
|
+
*/
|
|
23
|
+
name?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof TotalTokensUsedByAgentUio
|
|
28
|
+
*/
|
|
29
|
+
totalTokens?: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the TotalTokensUsedByAgentUio interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfTotalTokensUsedByAgentUio(value: object): value is TotalTokensUsedByAgentUio;
|
|
35
|
+
export declare function TotalTokensUsedByAgentUioFromJSON(json: any): TotalTokensUsedByAgentUio;
|
|
36
|
+
export declare function TotalTokensUsedByAgentUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): TotalTokensUsedByAgentUio;
|
|
37
|
+
export declare function TotalTokensUsedByAgentUioToJSON(json: any): TotalTokensUsedByAgentUio;
|
|
38
|
+
export declare function TotalTokensUsedByAgentUioToJSONTyped(value?: TotalTokensUsedByAgentUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfTotalTokensUsedByAgentUio = instanceOfTotalTokensUsedByAgentUio;
|
|
17
|
+
exports.TotalTokensUsedByAgentUioFromJSON = TotalTokensUsedByAgentUioFromJSON;
|
|
18
|
+
exports.TotalTokensUsedByAgentUioFromJSONTyped = TotalTokensUsedByAgentUioFromJSONTyped;
|
|
19
|
+
exports.TotalTokensUsedByAgentUioToJSON = TotalTokensUsedByAgentUioToJSON;
|
|
20
|
+
exports.TotalTokensUsedByAgentUioToJSONTyped = TotalTokensUsedByAgentUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the TotalTokensUsedByAgentUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfTotalTokensUsedByAgentUio(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function TotalTokensUsedByAgentUioFromJSON(json) {
|
|
28
|
+
return TotalTokensUsedByAgentUioFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function TotalTokensUsedByAgentUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
36
|
+
'totalTokens': json['totalTokens'] == null ? undefined : json['totalTokens'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function TotalTokensUsedByAgentUioToJSON(json) {
|
|
40
|
+
return TotalTokensUsedByAgentUioToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function TotalTokensUsedByAgentUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'name': value['name'],
|
|
48
|
+
'totalTokens': value['totalTokens'],
|
|
49
|
+
};
|
|
50
|
+
}
|