@breign/client 1.0.159 → 1.0.161
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/AiGatewayApi.d.ts +28 -1
- package/dist/apis/AiGatewayApi.js +63 -0
- package/dist/apis/PromptsApi.d.ts +41 -1
- package/dist/apis/PromptsApi.js +92 -0
- package/dist/models/AgentRateLimitSettingsUio.d.ts +80 -0
- package/dist/models/AgentRateLimitSettingsUio.js +80 -0
- package/dist/models/AgentRateLimitSettingsUpdateRequestUio.d.ts +50 -0
- package/dist/models/AgentRateLimitSettingsUpdateRequestUio.js +54 -0
- package/dist/models/AiGatewayModelTokenQuotaUio.d.ts +64 -0
- package/dist/models/AiGatewayModelTokenQuotaUio.js +72 -0
- package/dist/models/AiGatewaySettingsUio.d.ts +57 -0
- package/dist/models/AiGatewaySettingsUio.js +65 -0
- package/dist/models/AiGatewaySettingsUpdateRequestUio.d.ts +39 -0
- package/dist/models/AiGatewaySettingsUpdateRequestUio.js +51 -0
- package/dist/models/ChunkContentCreateUio.d.ts +16 -1
- package/dist/models/ChunkContentCreateUio.js +9 -0
- package/dist/models/FileAttachmentUploadResponseUio.d.ts +16 -1
- package/dist/models/FileAttachmentUploadResponseUio.js +9 -0
- package/dist/models/FileCreationResponseUio.d.ts +17 -2
- package/dist/models/FileCreationResponseUio.js +9 -0
- package/dist/models/ImageAttachmentUploadResponseUio.d.ts +16 -1
- package/dist/models/ImageAttachmentUploadResponseUio.js +9 -0
- package/dist/models/PromptRateLimitResponseUio.d.ts +50 -0
- package/dist/models/PromptRateLimitResponseUio.js +62 -0
- package/dist/models/S3UploadBodyUio.d.ts +17 -2
- package/dist/models/S3UploadBodyUio.js +9 -0
- package/dist/models/UploadImageToKnowledgeBaseLibrary200ResponseUio.d.ts +3 -4
- package/dist/models/UploadImageToKnowledgeBaseLibrary200ResponseUio.js +3 -2
- package/dist/models/UploadMethodUio.d.ts +25 -0
- package/dist/models/UploadMethodUio.js +51 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/dist/openapi.json +418 -3
- package/package.json +1 -1
|
@@ -0,0 +1,72 @@
|
|
|
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.AiGatewayModelTokenQuotaUioPeriodEnum = void 0;
|
|
17
|
+
exports.instanceOfAiGatewayModelTokenQuotaUio = instanceOfAiGatewayModelTokenQuotaUio;
|
|
18
|
+
exports.AiGatewayModelTokenQuotaUioFromJSON = AiGatewayModelTokenQuotaUioFromJSON;
|
|
19
|
+
exports.AiGatewayModelTokenQuotaUioFromJSONTyped = AiGatewayModelTokenQuotaUioFromJSONTyped;
|
|
20
|
+
exports.AiGatewayModelTokenQuotaUioToJSON = AiGatewayModelTokenQuotaUioToJSON;
|
|
21
|
+
exports.AiGatewayModelTokenQuotaUioToJSONTyped = AiGatewayModelTokenQuotaUioToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.AiGatewayModelTokenQuotaUioPeriodEnum = {
|
|
26
|
+
Day: 'day',
|
|
27
|
+
Month: 'month'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the AiGatewayModelTokenQuotaUio interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfAiGatewayModelTokenQuotaUio(value) {
|
|
33
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('model' in value) || value['model'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('limit' in value) || value['limit'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('period' in value) || value['period'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function AiGatewayModelTokenQuotaUioFromJSON(json) {
|
|
44
|
+
return AiGatewayModelTokenQuotaUioFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function AiGatewayModelTokenQuotaUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'userId': json['userId'],
|
|
52
|
+
'model': json['model'],
|
|
53
|
+
'providerId': json['providerId'] == null ? undefined : json['providerId'],
|
|
54
|
+
'limit': json['limit'],
|
|
55
|
+
'period': json['period'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function AiGatewayModelTokenQuotaUioToJSON(json) {
|
|
59
|
+
return AiGatewayModelTokenQuotaUioToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
function AiGatewayModelTokenQuotaUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'userId': value['userId'],
|
|
67
|
+
'model': value['model'],
|
|
68
|
+
'providerId': value['providerId'],
|
|
69
|
+
'limit': value['limit'],
|
|
70
|
+
'period': value['period'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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 { AiGatewayModelTokenQuotaUio } from './AiGatewayModelTokenQuotaUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AiGatewaySettingsUio
|
|
17
|
+
*/
|
|
18
|
+
export interface AiGatewaySettingsUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AiGatewaySettingsUio
|
|
23
|
+
*/
|
|
24
|
+
organizationId: string;
|
|
25
|
+
/**
|
|
26
|
+
* Max requests per minute per subject; null means unlimited
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof AiGatewaySettingsUio
|
|
29
|
+
*/
|
|
30
|
+
gatewayRpm: number | null;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {Array<AiGatewayModelTokenQuotaUio>}
|
|
34
|
+
* @memberof AiGatewaySettingsUio
|
|
35
|
+
*/
|
|
36
|
+
modelTokenQuotas: Array<AiGatewayModelTokenQuotaUio>;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Date}
|
|
40
|
+
* @memberof AiGatewaySettingsUio
|
|
41
|
+
*/
|
|
42
|
+
updatedAt: Date;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof AiGatewaySettingsUio
|
|
47
|
+
*/
|
|
48
|
+
updatedBy?: string | null;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the AiGatewaySettingsUio interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfAiGatewaySettingsUio(value: object): value is AiGatewaySettingsUio;
|
|
54
|
+
export declare function AiGatewaySettingsUioFromJSON(json: any): AiGatewaySettingsUio;
|
|
55
|
+
export declare function AiGatewaySettingsUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewaySettingsUio;
|
|
56
|
+
export declare function AiGatewaySettingsUioToJSON(json: any): AiGatewaySettingsUio;
|
|
57
|
+
export declare function AiGatewaySettingsUioToJSONTyped(value?: AiGatewaySettingsUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,65 @@
|
|
|
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.instanceOfAiGatewaySettingsUio = instanceOfAiGatewaySettingsUio;
|
|
17
|
+
exports.AiGatewaySettingsUioFromJSON = AiGatewaySettingsUioFromJSON;
|
|
18
|
+
exports.AiGatewaySettingsUioFromJSONTyped = AiGatewaySettingsUioFromJSONTyped;
|
|
19
|
+
exports.AiGatewaySettingsUioToJSON = AiGatewaySettingsUioToJSON;
|
|
20
|
+
exports.AiGatewaySettingsUioToJSONTyped = AiGatewaySettingsUioToJSONTyped;
|
|
21
|
+
const AiGatewayModelTokenQuotaUio_1 = require("./AiGatewayModelTokenQuotaUio");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AiGatewaySettingsUio interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAiGatewaySettingsUio(value) {
|
|
26
|
+
if (!('organizationId' in value) || value['organizationId'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('gatewayRpm' in value) || value['gatewayRpm'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('modelTokenQuotas' in value) || value['modelTokenQuotas'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function AiGatewaySettingsUioFromJSON(json) {
|
|
37
|
+
return AiGatewaySettingsUioFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function AiGatewaySettingsUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'organizationId': json['organizationId'],
|
|
45
|
+
'gatewayRpm': json['gatewayRpm'],
|
|
46
|
+
'modelTokenQuotas': (json['modelTokenQuotas'].map(AiGatewayModelTokenQuotaUio_1.AiGatewayModelTokenQuotaUioFromJSON)),
|
|
47
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
48
|
+
'updatedBy': json['updatedBy'] == null ? undefined : json['updatedBy'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function AiGatewaySettingsUioToJSON(json) {
|
|
52
|
+
return AiGatewaySettingsUioToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function AiGatewaySettingsUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'organizationId': value['organizationId'],
|
|
60
|
+
'gatewayRpm': value['gatewayRpm'],
|
|
61
|
+
'modelTokenQuotas': (value['modelTokenQuotas'].map(AiGatewayModelTokenQuotaUio_1.AiGatewayModelTokenQuotaUioToJSON)),
|
|
62
|
+
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
63
|
+
'updatedBy': value['updatedBy'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
@@ -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 { AiGatewayModelTokenQuotaUio } from './AiGatewayModelTokenQuotaUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AiGatewaySettingsUpdateRequestUio
|
|
17
|
+
*/
|
|
18
|
+
export interface AiGatewaySettingsUpdateRequestUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof AiGatewaySettingsUpdateRequestUio
|
|
23
|
+
*/
|
|
24
|
+
gatewayRpm?: number | null;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Array<AiGatewayModelTokenQuotaUio>}
|
|
28
|
+
* @memberof AiGatewaySettingsUpdateRequestUio
|
|
29
|
+
*/
|
|
30
|
+
modelTokenQuotas?: Array<AiGatewayModelTokenQuotaUio>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the AiGatewaySettingsUpdateRequestUio interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfAiGatewaySettingsUpdateRequestUio(value: object): value is AiGatewaySettingsUpdateRequestUio;
|
|
36
|
+
export declare function AiGatewaySettingsUpdateRequestUioFromJSON(json: any): AiGatewaySettingsUpdateRequestUio;
|
|
37
|
+
export declare function AiGatewaySettingsUpdateRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewaySettingsUpdateRequestUio;
|
|
38
|
+
export declare function AiGatewaySettingsUpdateRequestUioToJSON(json: any): AiGatewaySettingsUpdateRequestUio;
|
|
39
|
+
export declare function AiGatewaySettingsUpdateRequestUioToJSONTyped(value?: AiGatewaySettingsUpdateRequestUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.instanceOfAiGatewaySettingsUpdateRequestUio = instanceOfAiGatewaySettingsUpdateRequestUio;
|
|
17
|
+
exports.AiGatewaySettingsUpdateRequestUioFromJSON = AiGatewaySettingsUpdateRequestUioFromJSON;
|
|
18
|
+
exports.AiGatewaySettingsUpdateRequestUioFromJSONTyped = AiGatewaySettingsUpdateRequestUioFromJSONTyped;
|
|
19
|
+
exports.AiGatewaySettingsUpdateRequestUioToJSON = AiGatewaySettingsUpdateRequestUioToJSON;
|
|
20
|
+
exports.AiGatewaySettingsUpdateRequestUioToJSONTyped = AiGatewaySettingsUpdateRequestUioToJSONTyped;
|
|
21
|
+
const AiGatewayModelTokenQuotaUio_1 = require("./AiGatewayModelTokenQuotaUio");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AiGatewaySettingsUpdateRequestUio interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAiGatewaySettingsUpdateRequestUio(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function AiGatewaySettingsUpdateRequestUioFromJSON(json) {
|
|
29
|
+
return AiGatewaySettingsUpdateRequestUioFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function AiGatewaySettingsUpdateRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'gatewayRpm': json['gatewayRpm'] == null ? undefined : json['gatewayRpm'],
|
|
37
|
+
'modelTokenQuotas': json['modelTokenQuotas'] == null ? undefined : (json['modelTokenQuotas'].map(AiGatewayModelTokenQuotaUio_1.AiGatewayModelTokenQuotaUioFromJSON)),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function AiGatewaySettingsUpdateRequestUioToJSON(json) {
|
|
41
|
+
return AiGatewaySettingsUpdateRequestUioToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function AiGatewaySettingsUpdateRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'gatewayRpm': value['gatewayRpm'],
|
|
49
|
+
'modelTokenQuotas': value['modelTokenQuotas'] == null ? undefined : (value['modelTokenQuotas'].map(AiGatewayModelTokenQuotaUio_1.AiGatewayModelTokenQuotaUioToJSON)),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { UploadMethodUio } from './UploadMethodUio';
|
|
12
13
|
import type { FileStatusUio } from './FileStatusUio';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
@@ -17,13 +18,27 @@ import type { FileStatusUio } from './FileStatusUio';
|
|
|
17
18
|
*/
|
|
18
19
|
export interface ChunkContentCreateUio {
|
|
19
20
|
/**
|
|
20
|
-
*
|
|
21
|
+
* Upload URL, to call with `method` despite its name.
|
|
21
22
|
* @type {string}
|
|
22
23
|
* @memberof ChunkContentCreateUio
|
|
23
24
|
*/
|
|
24
25
|
postURL: string;
|
|
25
26
|
/**
|
|
26
27
|
*
|
|
28
|
+
* @type {UploadMethodUio}
|
|
29
|
+
* @memberof ChunkContentCreateUio
|
|
30
|
+
*/
|
|
31
|
+
method: UploadMethodUio;
|
|
32
|
+
/**
|
|
33
|
+
* Headers to send with the upload request. Empty for POST.
|
|
34
|
+
* @type {{ [key: string]: string; }}
|
|
35
|
+
* @memberof ChunkContentCreateUio
|
|
36
|
+
*/
|
|
37
|
+
headers: {
|
|
38
|
+
[key: string]: string;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Form fields of a POST upload. Empty for PUT.
|
|
27
42
|
* @type {{ [key: string]: any; }}
|
|
28
43
|
* @memberof ChunkContentCreateUio
|
|
29
44
|
*/
|
|
@@ -18,6 +18,7 @@ exports.ChunkContentCreateUioFromJSON = ChunkContentCreateUioFromJSON;
|
|
|
18
18
|
exports.ChunkContentCreateUioFromJSONTyped = ChunkContentCreateUioFromJSONTyped;
|
|
19
19
|
exports.ChunkContentCreateUioToJSON = ChunkContentCreateUioToJSON;
|
|
20
20
|
exports.ChunkContentCreateUioToJSONTyped = ChunkContentCreateUioToJSONTyped;
|
|
21
|
+
const UploadMethodUio_1 = require("./UploadMethodUio");
|
|
21
22
|
const FileStatusUio_1 = require("./FileStatusUio");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the ChunkContentCreateUio interface.
|
|
@@ -25,6 +26,10 @@ const FileStatusUio_1 = require("./FileStatusUio");
|
|
|
25
26
|
function instanceOfChunkContentCreateUio(value) {
|
|
26
27
|
if (!('postURL' in value) || value['postURL'] === undefined)
|
|
27
28
|
return false;
|
|
29
|
+
if (!('method' in value) || value['method'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('headers' in value) || value['headers'] === undefined)
|
|
32
|
+
return false;
|
|
28
33
|
if (!('formData' in value) || value['formData'] === undefined)
|
|
29
34
|
return false;
|
|
30
35
|
if (!('fileName' in value) || value['fileName'] === undefined)
|
|
@@ -48,6 +53,8 @@ function ChunkContentCreateUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
53
|
}
|
|
49
54
|
return {
|
|
50
55
|
'postURL': json['postURL'],
|
|
56
|
+
'method': (0, UploadMethodUio_1.UploadMethodUioFromJSON)(json['method']),
|
|
57
|
+
'headers': json['headers'],
|
|
51
58
|
'formData': json['formData'],
|
|
52
59
|
'fileName': json['fileName'],
|
|
53
60
|
'contentType': json['contentType'],
|
|
@@ -66,6 +73,8 @@ function ChunkContentCreateUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
66
73
|
}
|
|
67
74
|
return {
|
|
68
75
|
'postURL': value['postURL'],
|
|
76
|
+
'method': (0, UploadMethodUio_1.UploadMethodUioToJSON)(value['method']),
|
|
77
|
+
'headers': value['headers'],
|
|
69
78
|
'formData': value['formData'],
|
|
70
79
|
'fileName': value['fileName'],
|
|
71
80
|
'contentType': value['contentType'],
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { UploadMethodUio } from './UploadMethodUio';
|
|
12
13
|
import type { AttachmentTypeUio } from './AttachmentTypeUio';
|
|
13
14
|
import type { FileAttachmentProcessedUio } from './FileAttachmentProcessedUio';
|
|
14
15
|
import type { FileAttachmentStatusUio } from './FileAttachmentStatusUio';
|
|
@@ -103,13 +104,27 @@ export interface FileAttachmentUploadResponseUio {
|
|
|
103
104
|
*/
|
|
104
105
|
processed?: FileAttachmentProcessedUio;
|
|
105
106
|
/**
|
|
106
|
-
*
|
|
107
|
+
* Upload URL, to call with `method` despite its name.
|
|
107
108
|
* @type {string}
|
|
108
109
|
* @memberof FileAttachmentUploadResponseUio
|
|
109
110
|
*/
|
|
110
111
|
postURL: string;
|
|
111
112
|
/**
|
|
112
113
|
*
|
|
114
|
+
* @type {UploadMethodUio}
|
|
115
|
+
* @memberof FileAttachmentUploadResponseUio
|
|
116
|
+
*/
|
|
117
|
+
method: UploadMethodUio;
|
|
118
|
+
/**
|
|
119
|
+
* Headers to send with the upload request. Empty for POST.
|
|
120
|
+
* @type {{ [key: string]: string; }}
|
|
121
|
+
* @memberof FileAttachmentUploadResponseUio
|
|
122
|
+
*/
|
|
123
|
+
headers: {
|
|
124
|
+
[key: string]: string;
|
|
125
|
+
};
|
|
126
|
+
/**
|
|
127
|
+
* Form fields of a POST upload. Empty for PUT.
|
|
113
128
|
* @type {{ [key: string]: any; }}
|
|
114
129
|
* @memberof FileAttachmentUploadResponseUio
|
|
115
130
|
*/
|
|
@@ -19,6 +19,7 @@ exports.FileAttachmentUploadResponseUioFromJSON = FileAttachmentUploadResponseUi
|
|
|
19
19
|
exports.FileAttachmentUploadResponseUioFromJSONTyped = FileAttachmentUploadResponseUioFromJSONTyped;
|
|
20
20
|
exports.FileAttachmentUploadResponseUioToJSON = FileAttachmentUploadResponseUioToJSON;
|
|
21
21
|
exports.FileAttachmentUploadResponseUioToJSONTyped = FileAttachmentUploadResponseUioToJSONTyped;
|
|
22
|
+
const UploadMethodUio_1 = require("./UploadMethodUio");
|
|
22
23
|
const AttachmentTypeUio_1 = require("./AttachmentTypeUio");
|
|
23
24
|
const FileAttachmentProcessedUio_1 = require("./FileAttachmentProcessedUio");
|
|
24
25
|
const FileAttachmentStatusUio_1 = require("./FileAttachmentStatusUio");
|
|
@@ -50,6 +51,10 @@ function instanceOfFileAttachmentUploadResponseUio(value) {
|
|
|
50
51
|
return false;
|
|
51
52
|
if (!('postURL' in value) || value['postURL'] === undefined)
|
|
52
53
|
return false;
|
|
54
|
+
if (!('method' in value) || value['method'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if (!('headers' in value) || value['headers'] === undefined)
|
|
57
|
+
return false;
|
|
53
58
|
if (!('formData' in value) || value['formData'] === undefined)
|
|
54
59
|
return false;
|
|
55
60
|
return true;
|
|
@@ -77,6 +82,8 @@ function FileAttachmentUploadResponseUioFromJSONTyped(json, ignoreDiscriminator)
|
|
|
77
82
|
'maxTokens': json['maxTokens'] == null ? undefined : json['maxTokens'],
|
|
78
83
|
'processed': json['processed'] == null ? undefined : (0, FileAttachmentProcessedUio_1.FileAttachmentProcessedUioFromJSON)(json['processed']),
|
|
79
84
|
'postURL': json['postURL'],
|
|
85
|
+
'method': (0, UploadMethodUio_1.UploadMethodUioFromJSON)(json['method']),
|
|
86
|
+
'headers': json['headers'],
|
|
80
87
|
'formData': json['formData'],
|
|
81
88
|
};
|
|
82
89
|
}
|
|
@@ -103,6 +110,8 @@ function FileAttachmentUploadResponseUioToJSONTyped(value, ignoreDiscriminator =
|
|
|
103
110
|
'maxTokens': value['maxTokens'],
|
|
104
111
|
'processed': (0, FileAttachmentProcessedUio_1.FileAttachmentProcessedUioToJSON)(value['processed']),
|
|
105
112
|
'postURL': value['postURL'],
|
|
113
|
+
'method': (0, UploadMethodUio_1.UploadMethodUioToJSON)(value['method']),
|
|
114
|
+
'headers': value['headers'],
|
|
106
115
|
'formData': value['formData'],
|
|
107
116
|
};
|
|
108
117
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { UploadMethodUio } from './UploadMethodUio';
|
|
12
13
|
import type { FileStatusUio } from './FileStatusUio';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
@@ -89,13 +90,13 @@ export interface FileCreationResponseUio {
|
|
|
89
90
|
*/
|
|
90
91
|
size?: number;
|
|
91
92
|
/**
|
|
92
|
-
*
|
|
93
|
+
* Upload URL, to call with `method` despite its name.
|
|
93
94
|
* @type {string}
|
|
94
95
|
* @memberof FileCreationResponseUio
|
|
95
96
|
*/
|
|
96
97
|
postURL: string;
|
|
97
98
|
/**
|
|
98
|
-
*
|
|
99
|
+
* Form fields of a POST upload. Empty for PUT.
|
|
99
100
|
* @type {{ [key: string]: any; }}
|
|
100
101
|
* @memberof FileCreationResponseUio
|
|
101
102
|
*/
|
|
@@ -132,6 +133,20 @@ export interface FileCreationResponseUio {
|
|
|
132
133
|
* @memberof FileCreationResponseUio
|
|
133
134
|
*/
|
|
134
135
|
isActive?: boolean;
|
|
136
|
+
/**
|
|
137
|
+
*
|
|
138
|
+
* @type {UploadMethodUio}
|
|
139
|
+
* @memberof FileCreationResponseUio
|
|
140
|
+
*/
|
|
141
|
+
method: UploadMethodUio;
|
|
142
|
+
/**
|
|
143
|
+
* Headers to send with the upload request. Empty for POST.
|
|
144
|
+
* @type {{ [key: string]: string; }}
|
|
145
|
+
* @memberof FileCreationResponseUio
|
|
146
|
+
*/
|
|
147
|
+
headers: {
|
|
148
|
+
[key: string]: string;
|
|
149
|
+
};
|
|
135
150
|
}
|
|
136
151
|
/**
|
|
137
152
|
* @export
|
|
@@ -19,6 +19,7 @@ exports.FileCreationResponseUioFromJSON = FileCreationResponseUioFromJSON;
|
|
|
19
19
|
exports.FileCreationResponseUioFromJSONTyped = FileCreationResponseUioFromJSONTyped;
|
|
20
20
|
exports.FileCreationResponseUioToJSON = FileCreationResponseUioToJSON;
|
|
21
21
|
exports.FileCreationResponseUioToJSONTyped = FileCreationResponseUioToJSONTyped;
|
|
22
|
+
const UploadMethodUio_1 = require("./UploadMethodUio");
|
|
22
23
|
const FileStatusUio_1 = require("./FileStatusUio");
|
|
23
24
|
/**
|
|
24
25
|
* @export
|
|
@@ -38,6 +39,10 @@ function instanceOfFileCreationResponseUio(value) {
|
|
|
38
39
|
return false;
|
|
39
40
|
if (!('formData' in value) || value['formData'] === undefined)
|
|
40
41
|
return false;
|
|
42
|
+
if (!('method' in value) || value['method'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('headers' in value) || value['headers'] === undefined)
|
|
45
|
+
return false;
|
|
41
46
|
return true;
|
|
42
47
|
}
|
|
43
48
|
function FileCreationResponseUioFromJSON(json) {
|
|
@@ -67,6 +72,8 @@ function FileCreationResponseUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
67
72
|
'status': json['status'] == null ? undefined : (0, FileStatusUio_1.FileStatusUioFromJSON)(json['status']),
|
|
68
73
|
'error': json['error'] == null ? undefined : json['error'],
|
|
69
74
|
'isActive': json['isActive'] == null ? undefined : json['isActive'],
|
|
75
|
+
'method': (0, UploadMethodUio_1.UploadMethodUioFromJSON)(json['method']),
|
|
76
|
+
'headers': json['headers'],
|
|
70
77
|
};
|
|
71
78
|
}
|
|
72
79
|
function FileCreationResponseUioToJSON(json) {
|
|
@@ -96,5 +103,7 @@ function FileCreationResponseUioToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
96
103
|
'status': (0, FileStatusUio_1.FileStatusUioToJSON)(value['status']),
|
|
97
104
|
'error': value['error'],
|
|
98
105
|
'isActive': value['isActive'],
|
|
106
|
+
'method': (0, UploadMethodUio_1.UploadMethodUioToJSON)(value['method']),
|
|
107
|
+
'headers': value['headers'],
|
|
99
108
|
};
|
|
100
109
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { UploadMethodUio } from './UploadMethodUio';
|
|
12
13
|
import type { FileAttachmentStatusUio } from './FileAttachmentStatusUio';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
@@ -77,13 +78,27 @@ export interface ImageAttachmentUploadResponseUio {
|
|
|
77
78
|
*/
|
|
78
79
|
status: FileAttachmentStatusUio;
|
|
79
80
|
/**
|
|
80
|
-
*
|
|
81
|
+
* Upload URL, to call with `method` despite its name.
|
|
81
82
|
* @type {string}
|
|
82
83
|
* @memberof ImageAttachmentUploadResponseUio
|
|
83
84
|
*/
|
|
84
85
|
postURL: string;
|
|
85
86
|
/**
|
|
86
87
|
*
|
|
88
|
+
* @type {UploadMethodUio}
|
|
89
|
+
* @memberof ImageAttachmentUploadResponseUio
|
|
90
|
+
*/
|
|
91
|
+
method: UploadMethodUio;
|
|
92
|
+
/**
|
|
93
|
+
* Headers to send with the upload request. Empty for POST.
|
|
94
|
+
* @type {{ [key: string]: string; }}
|
|
95
|
+
* @memberof ImageAttachmentUploadResponseUio
|
|
96
|
+
*/
|
|
97
|
+
headers: {
|
|
98
|
+
[key: string]: string;
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* Form fields of a POST upload. Empty for PUT.
|
|
87
102
|
* @type {{ [key: string]: any; }}
|
|
88
103
|
* @memberof ImageAttachmentUploadResponseUio
|
|
89
104
|
*/
|
|
@@ -19,6 +19,7 @@ exports.ImageAttachmentUploadResponseUioFromJSON = ImageAttachmentUploadResponse
|
|
|
19
19
|
exports.ImageAttachmentUploadResponseUioFromJSONTyped = ImageAttachmentUploadResponseUioFromJSONTyped;
|
|
20
20
|
exports.ImageAttachmentUploadResponseUioToJSON = ImageAttachmentUploadResponseUioToJSON;
|
|
21
21
|
exports.ImageAttachmentUploadResponseUioToJSONTyped = ImageAttachmentUploadResponseUioToJSONTyped;
|
|
22
|
+
const UploadMethodUio_1 = require("./UploadMethodUio");
|
|
22
23
|
const FileAttachmentStatusUio_1 = require("./FileAttachmentStatusUio");
|
|
23
24
|
/**
|
|
24
25
|
* @export
|
|
@@ -48,6 +49,10 @@ function instanceOfImageAttachmentUploadResponseUio(value) {
|
|
|
48
49
|
return false;
|
|
49
50
|
if (!('postURL' in value) || value['postURL'] === undefined)
|
|
50
51
|
return false;
|
|
52
|
+
if (!('method' in value) || value['method'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('headers' in value) || value['headers'] === undefined)
|
|
55
|
+
return false;
|
|
51
56
|
if (!('formData' in value) || value['formData'] === undefined)
|
|
52
57
|
return false;
|
|
53
58
|
return true;
|
|
@@ -71,6 +76,8 @@ function ImageAttachmentUploadResponseUioFromJSONTyped(json, ignoreDiscriminator
|
|
|
71
76
|
'inlineDataUrl': json['inlineDataUrl'] == null ? undefined : json['inlineDataUrl'],
|
|
72
77
|
'status': (0, FileAttachmentStatusUio_1.FileAttachmentStatusUioFromJSON)(json['status']),
|
|
73
78
|
'postURL': json['postURL'],
|
|
79
|
+
'method': (0, UploadMethodUio_1.UploadMethodUioFromJSON)(json['method']),
|
|
80
|
+
'headers': json['headers'],
|
|
74
81
|
'formData': json['formData'],
|
|
75
82
|
};
|
|
76
83
|
}
|
|
@@ -93,6 +100,8 @@ function ImageAttachmentUploadResponseUioToJSONTyped(value, ignoreDiscriminator
|
|
|
93
100
|
'inlineDataUrl': value['inlineDataUrl'],
|
|
94
101
|
'status': (0, FileAttachmentStatusUio_1.FileAttachmentStatusUioToJSON)(value['status']),
|
|
95
102
|
'postURL': value['postURL'],
|
|
103
|
+
'method': (0, UploadMethodUio_1.UploadMethodUioToJSON)(value['method']),
|
|
104
|
+
'headers': value['headers'],
|
|
96
105
|
'formData': value['formData'],
|
|
97
106
|
};
|
|
98
107
|
}
|
|
@@ -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
|
+
* Current prompt rate-limit usage for the calling subject on an agent
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PromptRateLimitResponseUio
|
|
16
|
+
*/
|
|
17
|
+
export interface PromptRateLimitResponseUio {
|
|
18
|
+
/**
|
|
19
|
+
* Max prompts allowed in the sliding window
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof PromptRateLimitResponseUio
|
|
22
|
+
*/
|
|
23
|
+
limit: number;
|
|
24
|
+
/**
|
|
25
|
+
* Prompts already consumed in the current window
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof PromptRateLimitResponseUio
|
|
28
|
+
*/
|
|
29
|
+
used: number;
|
|
30
|
+
/**
|
|
31
|
+
* Prompts left before rate limiting
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof PromptRateLimitResponseUio
|
|
34
|
+
*/
|
|
35
|
+
remaining: number;
|
|
36
|
+
/**
|
|
37
|
+
* Seconds until the oldest event in the window expires
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof PromptRateLimitResponseUio
|
|
40
|
+
*/
|
|
41
|
+
resetSeconds: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the PromptRateLimitResponseUio interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfPromptRateLimitResponseUio(value: object): value is PromptRateLimitResponseUio;
|
|
47
|
+
export declare function PromptRateLimitResponseUioFromJSON(json: any): PromptRateLimitResponseUio;
|
|
48
|
+
export declare function PromptRateLimitResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): PromptRateLimitResponseUio;
|
|
49
|
+
export declare function PromptRateLimitResponseUioToJSON(json: any): PromptRateLimitResponseUio;
|
|
50
|
+
export declare function PromptRateLimitResponseUioToJSONTyped(value?: PromptRateLimitResponseUio | null, ignoreDiscriminator?: boolean): any;
|