@breign/client 1.0.159 → 1.0.160

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.
@@ -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
+ }
@@ -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;
@@ -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.instanceOfPromptRateLimitResponseUio = instanceOfPromptRateLimitResponseUio;
17
+ exports.PromptRateLimitResponseUioFromJSON = PromptRateLimitResponseUioFromJSON;
18
+ exports.PromptRateLimitResponseUioFromJSONTyped = PromptRateLimitResponseUioFromJSONTyped;
19
+ exports.PromptRateLimitResponseUioToJSON = PromptRateLimitResponseUioToJSON;
20
+ exports.PromptRateLimitResponseUioToJSONTyped = PromptRateLimitResponseUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the PromptRateLimitResponseUio interface.
23
+ */
24
+ function instanceOfPromptRateLimitResponseUio(value) {
25
+ if (!('limit' in value) || value['limit'] === undefined)
26
+ return false;
27
+ if (!('used' in value) || value['used'] === undefined)
28
+ return false;
29
+ if (!('remaining' in value) || value['remaining'] === undefined)
30
+ return false;
31
+ if (!('resetSeconds' in value) || value['resetSeconds'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function PromptRateLimitResponseUioFromJSON(json) {
36
+ return PromptRateLimitResponseUioFromJSONTyped(json, false);
37
+ }
38
+ function PromptRateLimitResponseUioFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'limit': json['limit'],
44
+ 'used': json['used'],
45
+ 'remaining': json['remaining'],
46
+ 'resetSeconds': json['resetSeconds'],
47
+ };
48
+ }
49
+ function PromptRateLimitResponseUioToJSON(json) {
50
+ return PromptRateLimitResponseUioToJSONTyped(json, false);
51
+ }
52
+ function PromptRateLimitResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'limit': value['limit'],
58
+ 'used': value['used'],
59
+ 'remaining': value['remaining'],
60
+ 'resetSeconds': value['resetSeconds'],
61
+ };
62
+ }
@@ -54,6 +54,8 @@ export * from './AgentModuleTypeUio';
54
54
  export * from './AgentModuleUio';
55
55
  export * from './AgentPatchEngineUio';
56
56
  export * from './AgentPatchUio';
57
+ export * from './AgentRateLimitSettingsUio';
58
+ export * from './AgentRateLimitSettingsUpdateRequestUio';
57
59
  export * from './AgentRefUio';
58
60
  export * from './AgentRequestUio';
59
61
  export * from './AgentRoleDetailsUio';
@@ -79,7 +81,10 @@ export * from './AiGatewayErrorUio';
79
81
  export * from './AiGatewayMessageUio';
80
82
  export * from './AiGatewayModelListDataInnerUio';
81
83
  export * from './AiGatewayModelListUio';
84
+ export * from './AiGatewayModelTokenQuotaUio';
82
85
  export * from './AiGatewayModelUio';
86
+ export * from './AiGatewaySettingsUio';
87
+ export * from './AiGatewaySettingsUpdateRequestUio';
83
88
  export * from './AiGatewayUsageBreakdownItemUio';
84
89
  export * from './AiGatewayUsagePointUio';
85
90
  export * from './AiGatewayUsageTotalUio';
@@ -389,6 +394,7 @@ export * from './PromptCreateResponseUio';
389
394
  export * from './PromptFlowCreateRequestUio';
390
395
  export * from './PromptFlowCreateResponseUio';
391
396
  export * from './PromptInitUio';
397
+ export * from './PromptRateLimitResponseUio';
392
398
  export * from './ProviderCreateRequestUio';
393
399
  export * from './ProviderTypeUio';
394
400
  export * from './ProviderUio';
@@ -72,6 +72,8 @@ __exportStar(require("./AgentModuleTypeUio"), exports);
72
72
  __exportStar(require("./AgentModuleUio"), exports);
73
73
  __exportStar(require("./AgentPatchEngineUio"), exports);
74
74
  __exportStar(require("./AgentPatchUio"), exports);
75
+ __exportStar(require("./AgentRateLimitSettingsUio"), exports);
76
+ __exportStar(require("./AgentRateLimitSettingsUpdateRequestUio"), exports);
75
77
  __exportStar(require("./AgentRefUio"), exports);
76
78
  __exportStar(require("./AgentRequestUio"), exports);
77
79
  __exportStar(require("./AgentRoleDetailsUio"), exports);
@@ -97,7 +99,10 @@ __exportStar(require("./AiGatewayErrorUio"), exports);
97
99
  __exportStar(require("./AiGatewayMessageUio"), exports);
98
100
  __exportStar(require("./AiGatewayModelListDataInnerUio"), exports);
99
101
  __exportStar(require("./AiGatewayModelListUio"), exports);
102
+ __exportStar(require("./AiGatewayModelTokenQuotaUio"), exports);
100
103
  __exportStar(require("./AiGatewayModelUio"), exports);
104
+ __exportStar(require("./AiGatewaySettingsUio"), exports);
105
+ __exportStar(require("./AiGatewaySettingsUpdateRequestUio"), exports);
101
106
  __exportStar(require("./AiGatewayUsageBreakdownItemUio"), exports);
102
107
  __exportStar(require("./AiGatewayUsagePointUio"), exports);
103
108
  __exportStar(require("./AiGatewayUsageTotalUio"), exports);
@@ -407,6 +412,7 @@ __exportStar(require("./PromptCreateResponseUio"), exports);
407
412
  __exportStar(require("./PromptFlowCreateRequestUio"), exports);
408
413
  __exportStar(require("./PromptFlowCreateResponseUio"), exports);
409
414
  __exportStar(require("./PromptInitUio"), exports);
415
+ __exportStar(require("./PromptRateLimitResponseUio"), exports);
410
416
  __exportStar(require("./ProviderCreateRequestUio"), exports);
411
417
  __exportStar(require("./ProviderTypeUio"), exports);
412
418
  __exportStar(require("./ProviderUio"), exports);