@breign/client 1.0.129 → 1.0.131
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/AdminApi.d.ts +103 -0
- package/dist/apis/AdminApi.js +267 -0
- package/dist/apis/AiGatewayApi.d.ts +26 -1
- package/dist/apis/AiGatewayApi.js +47 -1
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AiGatewayUsageBreakdownItemUio.d.ts +62 -0
- package/dist/models/AiGatewayUsageBreakdownItemUio.js +70 -0
- package/dist/models/AiGatewayUsagePointUio.d.ts +56 -0
- package/dist/models/AiGatewayUsagePointUio.js +66 -0
- package/dist/models/AiGatewayUsageTotalUio.d.ts +62 -0
- package/dist/models/AiGatewayUsageTotalUio.js +70 -0
- package/dist/models/AiGatewayUsageUio.d.ts +59 -0
- package/dist/models/AiGatewayUsageUio.js +69 -0
- package/dist/models/ToolPresetCreateRequestUio.d.ts +118 -0
- package/dist/models/ToolPresetCreateRequestUio.js +86 -0
- package/dist/models/ToolPresetDeleteAllResponseUio.d.ts +32 -0
- package/dist/models/ToolPresetDeleteAllResponseUio.js +50 -0
- package/dist/models/ToolPresetImportItemUio.d.ts +136 -0
- package/dist/models/ToolPresetImportItemUio.js +92 -0
- package/dist/models/ToolPresetImportRequestUio.d.ts +33 -0
- package/dist/models/ToolPresetImportRequestUio.js +51 -0
- package/dist/models/ToolPresetImportResponseUio.d.ts +38 -0
- package/dist/models/ToolPresetImportResponseUio.js +54 -0
- package/dist/models/ToolPresetOAuthRegistrationUio.d.ts +26 -0
- package/dist/models/ToolPresetOAuthRegistrationUio.js +52 -0
- package/dist/models/ToolPresetPageUio.d.ts +63 -0
- package/dist/models/ToolPresetPageUio.js +71 -0
- package/dist/models/ToolPresetTransportUio.d.ts +25 -0
- package/dist/models/ToolPresetTransportUio.js +51 -0
- package/dist/models/ToolPresetUio.d.ts +136 -0
- package/dist/models/ToolPresetUio.js +112 -0
- package/dist/models/ToolPresetUpdateRequestUio.d.ts +118 -0
- package/dist/models/ToolPresetUpdateRequestUio.js +78 -0
- package/dist/models/index.d.ts +14 -0
- package/dist/models/index.js +14 -0
- package/dist/openapi.json +1771 -965
- package/package.json +1 -1
|
@@ -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 AiGatewayUsagePointUio
|
|
16
|
+
*/
|
|
17
|
+
export interface AiGatewayUsagePointUio {
|
|
18
|
+
/**
|
|
19
|
+
* Clé de regroupement temporel, dépendante de la granularité demandée
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AiGatewayUsagePointUio
|
|
22
|
+
*/
|
|
23
|
+
bucket: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AiGatewayUsagePointUio
|
|
28
|
+
*/
|
|
29
|
+
label: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof AiGatewayUsagePointUio
|
|
34
|
+
*/
|
|
35
|
+
requests: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof AiGatewayUsagePointUio
|
|
40
|
+
*/
|
|
41
|
+
inputTokens: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof AiGatewayUsagePointUio
|
|
46
|
+
*/
|
|
47
|
+
outputTokens: number;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the AiGatewayUsagePointUio interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfAiGatewayUsagePointUio(value: object): value is AiGatewayUsagePointUio;
|
|
53
|
+
export declare function AiGatewayUsagePointUioFromJSON(json: any): AiGatewayUsagePointUio;
|
|
54
|
+
export declare function AiGatewayUsagePointUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewayUsagePointUio;
|
|
55
|
+
export declare function AiGatewayUsagePointUioToJSON(json: any): AiGatewayUsagePointUio;
|
|
56
|
+
export declare function AiGatewayUsagePointUioToJSONTyped(value?: AiGatewayUsagePointUio | 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.instanceOfAiGatewayUsagePointUio = instanceOfAiGatewayUsagePointUio;
|
|
17
|
+
exports.AiGatewayUsagePointUioFromJSON = AiGatewayUsagePointUioFromJSON;
|
|
18
|
+
exports.AiGatewayUsagePointUioFromJSONTyped = AiGatewayUsagePointUioFromJSONTyped;
|
|
19
|
+
exports.AiGatewayUsagePointUioToJSON = AiGatewayUsagePointUioToJSON;
|
|
20
|
+
exports.AiGatewayUsagePointUioToJSONTyped = AiGatewayUsagePointUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AiGatewayUsagePointUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAiGatewayUsagePointUio(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 (!('inputTokens' in value) || value['inputTokens'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('outputTokens' in value) || value['outputTokens'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function AiGatewayUsagePointUioFromJSON(json) {
|
|
38
|
+
return AiGatewayUsagePointUioFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function AiGatewayUsagePointUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'bucket': json['bucket'],
|
|
46
|
+
'label': json['label'],
|
|
47
|
+
'requests': json['requests'],
|
|
48
|
+
'inputTokens': json['inputTokens'],
|
|
49
|
+
'outputTokens': json['outputTokens'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function AiGatewayUsagePointUioToJSON(json) {
|
|
53
|
+
return AiGatewayUsagePointUioToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function AiGatewayUsagePointUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'bucket': value['bucket'],
|
|
61
|
+
'label': value['label'],
|
|
62
|
+
'requests': value['requests'],
|
|
63
|
+
'inputTokens': value['inputTokens'],
|
|
64
|
+
'outputTokens': value['outputTokens'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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 AiGatewayUsageTotalUio
|
|
16
|
+
*/
|
|
17
|
+
export interface AiGatewayUsageTotalUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof AiGatewayUsageTotalUio
|
|
22
|
+
*/
|
|
23
|
+
requests: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof AiGatewayUsageTotalUio
|
|
28
|
+
*/
|
|
29
|
+
inputTokens: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof AiGatewayUsageTotalUio
|
|
34
|
+
*/
|
|
35
|
+
outputTokens: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof AiGatewayUsageTotalUio
|
|
40
|
+
*/
|
|
41
|
+
reasoningTokens: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof AiGatewayUsageTotalUio
|
|
46
|
+
*/
|
|
47
|
+
totalTokens: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof AiGatewayUsageTotalUio
|
|
52
|
+
*/
|
|
53
|
+
uniqueUsers: number;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the AiGatewayUsageTotalUio interface.
|
|
57
|
+
*/
|
|
58
|
+
export declare function instanceOfAiGatewayUsageTotalUio(value: object): value is AiGatewayUsageTotalUio;
|
|
59
|
+
export declare function AiGatewayUsageTotalUioFromJSON(json: any): AiGatewayUsageTotalUio;
|
|
60
|
+
export declare function AiGatewayUsageTotalUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewayUsageTotalUio;
|
|
61
|
+
export declare function AiGatewayUsageTotalUioToJSON(json: any): AiGatewayUsageTotalUio;
|
|
62
|
+
export declare function AiGatewayUsageTotalUioToJSONTyped(value?: AiGatewayUsageTotalUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,70 @@
|
|
|
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.instanceOfAiGatewayUsageTotalUio = instanceOfAiGatewayUsageTotalUio;
|
|
17
|
+
exports.AiGatewayUsageTotalUioFromJSON = AiGatewayUsageTotalUioFromJSON;
|
|
18
|
+
exports.AiGatewayUsageTotalUioFromJSONTyped = AiGatewayUsageTotalUioFromJSONTyped;
|
|
19
|
+
exports.AiGatewayUsageTotalUioToJSON = AiGatewayUsageTotalUioToJSON;
|
|
20
|
+
exports.AiGatewayUsageTotalUioToJSONTyped = AiGatewayUsageTotalUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AiGatewayUsageTotalUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAiGatewayUsageTotalUio(value) {
|
|
25
|
+
if (!('requests' in value) || value['requests'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('inputTokens' in value) || value['inputTokens'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('outputTokens' in value) || value['outputTokens'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('reasoningTokens' in value) || value['reasoningTokens'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('totalTokens' in value) || value['totalTokens'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('uniqueUsers' in value) || value['uniqueUsers'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function AiGatewayUsageTotalUioFromJSON(json) {
|
|
40
|
+
return AiGatewayUsageTotalUioFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function AiGatewayUsageTotalUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'requests': json['requests'],
|
|
48
|
+
'inputTokens': json['inputTokens'],
|
|
49
|
+
'outputTokens': json['outputTokens'],
|
|
50
|
+
'reasoningTokens': json['reasoningTokens'],
|
|
51
|
+
'totalTokens': json['totalTokens'],
|
|
52
|
+
'uniqueUsers': json['uniqueUsers'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function AiGatewayUsageTotalUioToJSON(json) {
|
|
56
|
+
return AiGatewayUsageTotalUioToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function AiGatewayUsageTotalUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'requests': value['requests'],
|
|
64
|
+
'inputTokens': value['inputTokens'],
|
|
65
|
+
'outputTokens': value['outputTokens'],
|
|
66
|
+
'reasoningTokens': value['reasoningTokens'],
|
|
67
|
+
'totalTokens': value['totalTokens'],
|
|
68
|
+
'uniqueUsers': value['uniqueUsers'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
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 { AiGatewayUsageTotalUio } from './AiGatewayUsageTotalUio';
|
|
13
|
+
import type { AiGatewayUsagePointUio } from './AiGatewayUsagePointUio';
|
|
14
|
+
import type { AiGatewayUsageBreakdownItemUio } from './AiGatewayUsageBreakdownItemUio';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface AiGatewayUsageUio
|
|
19
|
+
*/
|
|
20
|
+
export interface AiGatewayUsageUio {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {AiGatewayUsageTotalUio}
|
|
24
|
+
* @memberof AiGatewayUsageUio
|
|
25
|
+
*/
|
|
26
|
+
total: AiGatewayUsageTotalUio;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {Array<AiGatewayUsagePointUio>}
|
|
30
|
+
* @memberof AiGatewayUsageUio
|
|
31
|
+
*/
|
|
32
|
+
series: Array<AiGatewayUsagePointUio>;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {Array<AiGatewayUsageBreakdownItemUio>}
|
|
36
|
+
* @memberof AiGatewayUsageUio
|
|
37
|
+
*/
|
|
38
|
+
byModel: Array<AiGatewayUsageBreakdownItemUio>;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {Array<AiGatewayUsageBreakdownItemUio>}
|
|
42
|
+
* @memberof AiGatewayUsageUio
|
|
43
|
+
*/
|
|
44
|
+
byProvider: Array<AiGatewayUsageBreakdownItemUio>;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {Array<AiGatewayUsageBreakdownItemUio>}
|
|
48
|
+
* @memberof AiGatewayUsageUio
|
|
49
|
+
*/
|
|
50
|
+
byUser: Array<AiGatewayUsageBreakdownItemUio>;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the AiGatewayUsageUio interface.
|
|
54
|
+
*/
|
|
55
|
+
export declare function instanceOfAiGatewayUsageUio(value: object): value is AiGatewayUsageUio;
|
|
56
|
+
export declare function AiGatewayUsageUioFromJSON(json: any): AiGatewayUsageUio;
|
|
57
|
+
export declare function AiGatewayUsageUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewayUsageUio;
|
|
58
|
+
export declare function AiGatewayUsageUioToJSON(json: any): AiGatewayUsageUio;
|
|
59
|
+
export declare function AiGatewayUsageUioToJSONTyped(value?: AiGatewayUsageUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,69 @@
|
|
|
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.instanceOfAiGatewayUsageUio = instanceOfAiGatewayUsageUio;
|
|
17
|
+
exports.AiGatewayUsageUioFromJSON = AiGatewayUsageUioFromJSON;
|
|
18
|
+
exports.AiGatewayUsageUioFromJSONTyped = AiGatewayUsageUioFromJSONTyped;
|
|
19
|
+
exports.AiGatewayUsageUioToJSON = AiGatewayUsageUioToJSON;
|
|
20
|
+
exports.AiGatewayUsageUioToJSONTyped = AiGatewayUsageUioToJSONTyped;
|
|
21
|
+
const AiGatewayUsageTotalUio_1 = require("./AiGatewayUsageTotalUio");
|
|
22
|
+
const AiGatewayUsagePointUio_1 = require("./AiGatewayUsagePointUio");
|
|
23
|
+
const AiGatewayUsageBreakdownItemUio_1 = require("./AiGatewayUsageBreakdownItemUio");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the AiGatewayUsageUio interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfAiGatewayUsageUio(value) {
|
|
28
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('series' in value) || value['series'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('byModel' in value) || value['byModel'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('byProvider' in value) || value['byProvider'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('byUser' in value) || value['byUser'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
function AiGatewayUsageUioFromJSON(json) {
|
|
41
|
+
return AiGatewayUsageUioFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function AiGatewayUsageUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'total': (0, AiGatewayUsageTotalUio_1.AiGatewayUsageTotalUioFromJSON)(json['total']),
|
|
49
|
+
'series': (json['series'].map(AiGatewayUsagePointUio_1.AiGatewayUsagePointUioFromJSON)),
|
|
50
|
+
'byModel': (json['byModel'].map(AiGatewayUsageBreakdownItemUio_1.AiGatewayUsageBreakdownItemUioFromJSON)),
|
|
51
|
+
'byProvider': (json['byProvider'].map(AiGatewayUsageBreakdownItemUio_1.AiGatewayUsageBreakdownItemUioFromJSON)),
|
|
52
|
+
'byUser': (json['byUser'].map(AiGatewayUsageBreakdownItemUio_1.AiGatewayUsageBreakdownItemUioFromJSON)),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function AiGatewayUsageUioToJSON(json) {
|
|
56
|
+
return AiGatewayUsageUioToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function AiGatewayUsageUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'total': (0, AiGatewayUsageTotalUio_1.AiGatewayUsageTotalUioToJSON)(value['total']),
|
|
64
|
+
'series': (value['series'].map(AiGatewayUsagePointUio_1.AiGatewayUsagePointUioToJSON)),
|
|
65
|
+
'byModel': (value['byModel'].map(AiGatewayUsageBreakdownItemUio_1.AiGatewayUsageBreakdownItemUioToJSON)),
|
|
66
|
+
'byProvider': (value['byProvider'].map(AiGatewayUsageBreakdownItemUio_1.AiGatewayUsageBreakdownItemUioToJSON)),
|
|
67
|
+
'byUser': (value['byUser'].map(AiGatewayUsageBreakdownItemUio_1.AiGatewayUsageBreakdownItemUioToJSON)),
|
|
68
|
+
};
|
|
69
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
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 { ToolPresetTransportUio } from './ToolPresetTransportUio';
|
|
13
|
+
import type { ToolPresetOAuthRegistrationUio } from './ToolPresetOAuthRegistrationUio';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface ToolPresetCreateRequestUio
|
|
18
|
+
*/
|
|
19
|
+
export interface ToolPresetCreateRequestUio {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof ToolPresetCreateRequestUio
|
|
24
|
+
*/
|
|
25
|
+
slug: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof ToolPresetCreateRequestUio
|
|
30
|
+
*/
|
|
31
|
+
name: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof ToolPresetCreateRequestUio
|
|
36
|
+
*/
|
|
37
|
+
descriptionEn?: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof ToolPresetCreateRequestUio
|
|
42
|
+
*/
|
|
43
|
+
descriptionFr?: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof ToolPresetCreateRequestUio
|
|
48
|
+
*/
|
|
49
|
+
url: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof ToolPresetCreateRequestUio
|
|
54
|
+
*/
|
|
55
|
+
logoUrl?: string | null;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {ToolPresetTransportUio}
|
|
59
|
+
* @memberof ToolPresetCreateRequestUio
|
|
60
|
+
*/
|
|
61
|
+
transport?: ToolPresetTransportUio;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {Array<string>}
|
|
65
|
+
* @memberof ToolPresetCreateRequestUio
|
|
66
|
+
*/
|
|
67
|
+
authMethods?: Array<string>;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {ToolPresetOAuthRegistrationUio}
|
|
71
|
+
* @memberof ToolPresetCreateRequestUio
|
|
72
|
+
*/
|
|
73
|
+
oauthRegistration?: ToolPresetOAuthRegistrationUio | null;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof ToolPresetCreateRequestUio
|
|
78
|
+
*/
|
|
79
|
+
category: string;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof ToolPresetCreateRequestUio
|
|
84
|
+
*/
|
|
85
|
+
categoryLabelEn?: string;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {string}
|
|
89
|
+
* @memberof ToolPresetCreateRequestUio
|
|
90
|
+
*/
|
|
91
|
+
categoryLabelFr?: string;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {string}
|
|
95
|
+
* @memberof ToolPresetCreateRequestUio
|
|
96
|
+
*/
|
|
97
|
+
categoryDescriptionEn?: string;
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @type {string}
|
|
101
|
+
* @memberof ToolPresetCreateRequestUio
|
|
102
|
+
*/
|
|
103
|
+
categoryDescriptionFr?: string;
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @type {boolean}
|
|
107
|
+
* @memberof ToolPresetCreateRequestUio
|
|
108
|
+
*/
|
|
109
|
+
isActive?: boolean;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Check if a given object implements the ToolPresetCreateRequestUio interface.
|
|
113
|
+
*/
|
|
114
|
+
export declare function instanceOfToolPresetCreateRequestUio(value: object): value is ToolPresetCreateRequestUio;
|
|
115
|
+
export declare function ToolPresetCreateRequestUioFromJSON(json: any): ToolPresetCreateRequestUio;
|
|
116
|
+
export declare function ToolPresetCreateRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ToolPresetCreateRequestUio;
|
|
117
|
+
export declare function ToolPresetCreateRequestUioToJSON(json: any): ToolPresetCreateRequestUio;
|
|
118
|
+
export declare function ToolPresetCreateRequestUioToJSONTyped(value?: ToolPresetCreateRequestUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,86 @@
|
|
|
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.instanceOfToolPresetCreateRequestUio = instanceOfToolPresetCreateRequestUio;
|
|
17
|
+
exports.ToolPresetCreateRequestUioFromJSON = ToolPresetCreateRequestUioFromJSON;
|
|
18
|
+
exports.ToolPresetCreateRequestUioFromJSONTyped = ToolPresetCreateRequestUioFromJSONTyped;
|
|
19
|
+
exports.ToolPresetCreateRequestUioToJSON = ToolPresetCreateRequestUioToJSON;
|
|
20
|
+
exports.ToolPresetCreateRequestUioToJSONTyped = ToolPresetCreateRequestUioToJSONTyped;
|
|
21
|
+
const ToolPresetTransportUio_1 = require("./ToolPresetTransportUio");
|
|
22
|
+
const ToolPresetOAuthRegistrationUio_1 = require("./ToolPresetOAuthRegistrationUio");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the ToolPresetCreateRequestUio interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfToolPresetCreateRequestUio(value) {
|
|
27
|
+
if (!('slug' in value) || value['slug'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('url' in value) || value['url'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('category' in value) || value['category'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function ToolPresetCreateRequestUioFromJSON(json) {
|
|
38
|
+
return ToolPresetCreateRequestUioFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function ToolPresetCreateRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'slug': json['slug'],
|
|
46
|
+
'name': json['name'],
|
|
47
|
+
'descriptionEn': json['descriptionEn'] == null ? undefined : json['descriptionEn'],
|
|
48
|
+
'descriptionFr': json['descriptionFr'] == null ? undefined : json['descriptionFr'],
|
|
49
|
+
'url': json['url'],
|
|
50
|
+
'logoUrl': json['logoUrl'] == null ? undefined : json['logoUrl'],
|
|
51
|
+
'transport': json['transport'] == null ? undefined : (0, ToolPresetTransportUio_1.ToolPresetTransportUioFromJSON)(json['transport']),
|
|
52
|
+
'authMethods': json['authMethods'] == null ? undefined : json['authMethods'],
|
|
53
|
+
'oauthRegistration': json['oauthRegistration'] == null ? undefined : (0, ToolPresetOAuthRegistrationUio_1.ToolPresetOAuthRegistrationUioFromJSON)(json['oauthRegistration']),
|
|
54
|
+
'category': json['category'],
|
|
55
|
+
'categoryLabelEn': json['categoryLabelEn'] == null ? undefined : json['categoryLabelEn'],
|
|
56
|
+
'categoryLabelFr': json['categoryLabelFr'] == null ? undefined : json['categoryLabelFr'],
|
|
57
|
+
'categoryDescriptionEn': json['categoryDescriptionEn'] == null ? undefined : json['categoryDescriptionEn'],
|
|
58
|
+
'categoryDescriptionFr': json['categoryDescriptionFr'] == null ? undefined : json['categoryDescriptionFr'],
|
|
59
|
+
'isActive': json['isActive'] == null ? undefined : json['isActive'],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
function ToolPresetCreateRequestUioToJSON(json) {
|
|
63
|
+
return ToolPresetCreateRequestUioToJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
function ToolPresetCreateRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
66
|
+
if (value == null) {
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
'slug': value['slug'],
|
|
71
|
+
'name': value['name'],
|
|
72
|
+
'descriptionEn': value['descriptionEn'],
|
|
73
|
+
'descriptionFr': value['descriptionFr'],
|
|
74
|
+
'url': value['url'],
|
|
75
|
+
'logoUrl': value['logoUrl'],
|
|
76
|
+
'transport': (0, ToolPresetTransportUio_1.ToolPresetTransportUioToJSON)(value['transport']),
|
|
77
|
+
'authMethods': value['authMethods'],
|
|
78
|
+
'oauthRegistration': (0, ToolPresetOAuthRegistrationUio_1.ToolPresetOAuthRegistrationUioToJSON)(value['oauthRegistration']),
|
|
79
|
+
'category': value['category'],
|
|
80
|
+
'categoryLabelEn': value['categoryLabelEn'],
|
|
81
|
+
'categoryLabelFr': value['categoryLabelFr'],
|
|
82
|
+
'categoryDescriptionEn': value['categoryDescriptionEn'],
|
|
83
|
+
'categoryDescriptionFr': value['categoryDescriptionFr'],
|
|
84
|
+
'isActive': value['isActive'],
|
|
85
|
+
};
|
|
86
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 ToolPresetDeleteAllResponseUio
|
|
16
|
+
*/
|
|
17
|
+
export interface ToolPresetDeleteAllResponseUio {
|
|
18
|
+
/**
|
|
19
|
+
* Number of presets removed from the library
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof ToolPresetDeleteAllResponseUio
|
|
22
|
+
*/
|
|
23
|
+
deleted: number;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the ToolPresetDeleteAllResponseUio interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfToolPresetDeleteAllResponseUio(value: object): value is ToolPresetDeleteAllResponseUio;
|
|
29
|
+
export declare function ToolPresetDeleteAllResponseUioFromJSON(json: any): ToolPresetDeleteAllResponseUio;
|
|
30
|
+
export declare function ToolPresetDeleteAllResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ToolPresetDeleteAllResponseUio;
|
|
31
|
+
export declare function ToolPresetDeleteAllResponseUioToJSON(json: any): ToolPresetDeleteAllResponseUio;
|
|
32
|
+
export declare function ToolPresetDeleteAllResponseUioToJSONTyped(value?: ToolPresetDeleteAllResponseUio | 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.instanceOfToolPresetDeleteAllResponseUio = instanceOfToolPresetDeleteAllResponseUio;
|
|
17
|
+
exports.ToolPresetDeleteAllResponseUioFromJSON = ToolPresetDeleteAllResponseUioFromJSON;
|
|
18
|
+
exports.ToolPresetDeleteAllResponseUioFromJSONTyped = ToolPresetDeleteAllResponseUioFromJSONTyped;
|
|
19
|
+
exports.ToolPresetDeleteAllResponseUioToJSON = ToolPresetDeleteAllResponseUioToJSON;
|
|
20
|
+
exports.ToolPresetDeleteAllResponseUioToJSONTyped = ToolPresetDeleteAllResponseUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ToolPresetDeleteAllResponseUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfToolPresetDeleteAllResponseUio(value) {
|
|
25
|
+
if (!('deleted' in value) || value['deleted'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function ToolPresetDeleteAllResponseUioFromJSON(json) {
|
|
30
|
+
return ToolPresetDeleteAllResponseUioFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function ToolPresetDeleteAllResponseUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'deleted': json['deleted'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function ToolPresetDeleteAllResponseUioToJSON(json) {
|
|
41
|
+
return ToolPresetDeleteAllResponseUioToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function ToolPresetDeleteAllResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'deleted': value['deleted'],
|
|
49
|
+
};
|
|
50
|
+
}
|