@breign/client 1.0.150 → 1.0.152
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 +15 -1
- package/dist/apis/AgentApi.js +22 -3
- package/dist/models/AnonymizeResponseUio.d.ts +6 -0
- package/dist/models/AnonymizeResponseUio.js +2 -0
- package/dist/models/EntityModeUio.d.ts +26 -0
- package/dist/models/EntityModeUio.js +52 -0
- package/dist/models/EntityTypeRuleUio.d.ts +75 -0
- package/dist/models/EntityTypeRuleUio.js +71 -0
- package/dist/models/GuardianPutRequestUio.d.ts +3 -3
- package/dist/models/GuardianPutRequestUio.js +3 -3
- package/dist/models/GuardianUio.d.ts +3 -3
- package/dist/models/GuardianUio.js +3 -3
- package/dist/models/index.d.ts +2 -1
- package/dist/models/index.js +2 -1
- package/dist/openapi.json +63 -11
- package/package.json +1 -1
- package/dist/models/RegexPatternUio.d.ts +0 -56
- package/dist/models/RegexPatternUio.js +0 -66
package/dist/apis/AgentApi.d.ts
CHANGED
|
@@ -146,6 +146,9 @@ export interface ListOrganizationAgentsRequest {
|
|
|
146
146
|
organizationId: string;
|
|
147
147
|
isCreator?: boolean;
|
|
148
148
|
providerSource?: ListOrganizationAgentsProviderSourceEnum;
|
|
149
|
+
personal?: boolean;
|
|
150
|
+
includeOthersPersonal?: boolean;
|
|
151
|
+
visibility?: Array<ListOrganizationAgentsVisibilityEnum>;
|
|
149
152
|
}
|
|
150
153
|
export interface RemoveAgentProfileImageRequest {
|
|
151
154
|
agentId: string;
|
|
@@ -477,7 +480,7 @@ export declare class AgentApi extends runtime.BaseAPI {
|
|
|
477
480
|
/**
|
|
478
481
|
* List agents for an organization
|
|
479
482
|
*/
|
|
480
|
-
listOrganizationAgents(organizationId: string, isCreator?: boolean, providerSource?: ListOrganizationAgentsProviderSourceEnum, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AgentUio>>;
|
|
483
|
+
listOrganizationAgents(organizationId: string, isCreator?: boolean, providerSource?: ListOrganizationAgentsProviderSourceEnum, personal?: boolean, includeOthersPersonal?: boolean, visibility?: Array<ListOrganizationAgentsVisibilityEnum>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AgentUio>>;
|
|
481
484
|
/**
|
|
482
485
|
* Removes the profile image for an agent
|
|
483
486
|
* Remove agent profile image
|
|
@@ -643,3 +646,14 @@ export declare const ListOrganizationAgentsProviderSourceEnum: {
|
|
|
643
646
|
readonly Internal: "INTERNAL";
|
|
644
647
|
};
|
|
645
648
|
export type ListOrganizationAgentsProviderSourceEnum = typeof ListOrganizationAgentsProviderSourceEnum[keyof typeof ListOrganizationAgentsProviderSourceEnum];
|
|
649
|
+
/**
|
|
650
|
+
* @export
|
|
651
|
+
*/
|
|
652
|
+
export declare const ListOrganizationAgentsVisibilityEnum: {
|
|
653
|
+
readonly MyAgents: "myAgents";
|
|
654
|
+
readonly Public: "public";
|
|
655
|
+
readonly SharedWithMe: "sharedWithMe";
|
|
656
|
+
readonly Personal: "personal";
|
|
657
|
+
readonly OthersPersonal: "othersPersonal";
|
|
658
|
+
};
|
|
659
|
+
export type ListOrganizationAgentsVisibilityEnum = typeof ListOrganizationAgentsVisibilityEnum[keyof typeof ListOrganizationAgentsVisibilityEnum];
|
package/dist/apis/AgentApi.js
CHANGED
|
@@ -46,7 +46,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
46
46
|
};
|
|
47
47
|
})();
|
|
48
48
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
-
exports.ListOrganizationAgentsProviderSourceEnum = exports.GetConversationsForAgentMessageReactionEnum = exports.GetConversationsForAgentSortOrderEnum = exports.GetAgentsProviderSourceEnum = exports.GetAgentMetricsUsageGranularityEnum = exports.GetAgentMetricsEphemeralInstancesGranularityEnum = exports.ExportAgentFormatEnum = exports.AgentApi = void 0;
|
|
49
|
+
exports.ListOrganizationAgentsVisibilityEnum = exports.ListOrganizationAgentsProviderSourceEnum = exports.GetConversationsForAgentMessageReactionEnum = exports.GetConversationsForAgentSortOrderEnum = exports.GetAgentsProviderSourceEnum = exports.GetAgentMetricsUsageGranularityEnum = exports.GetAgentMetricsEphemeralInstancesGranularityEnum = exports.ExportAgentFormatEnum = exports.AgentApi = void 0;
|
|
50
50
|
const runtime = __importStar(require("../runtime"));
|
|
51
51
|
const index_1 = require("../models/index");
|
|
52
52
|
/**
|
|
@@ -1029,6 +1029,15 @@ class AgentApi extends runtime.BaseAPI {
|
|
|
1029
1029
|
if (requestParameters['providerSource'] != null) {
|
|
1030
1030
|
queryParameters['providerSource'] = requestParameters['providerSource'];
|
|
1031
1031
|
}
|
|
1032
|
+
if (requestParameters['personal'] != null) {
|
|
1033
|
+
queryParameters['personal'] = requestParameters['personal'];
|
|
1034
|
+
}
|
|
1035
|
+
if (requestParameters['includeOthersPersonal'] != null) {
|
|
1036
|
+
queryParameters['includeOthersPersonal'] = requestParameters['includeOthersPersonal'];
|
|
1037
|
+
}
|
|
1038
|
+
if (requestParameters['visibility'] != null) {
|
|
1039
|
+
queryParameters['visibility'] = requestParameters['visibility'];
|
|
1040
|
+
}
|
|
1032
1041
|
const headerParameters = {};
|
|
1033
1042
|
if (this.configuration && this.configuration.apiKey) {
|
|
1034
1043
|
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
@@ -1044,8 +1053,8 @@ class AgentApi extends runtime.BaseAPI {
|
|
|
1044
1053
|
/**
|
|
1045
1054
|
* List agents for an organization
|
|
1046
1055
|
*/
|
|
1047
|
-
async listOrganizationAgents(organizationId, isCreator, providerSource, initOverrides) {
|
|
1048
|
-
const response = await this.listOrganizationAgentsRaw({ organizationId: organizationId, isCreator: isCreator, providerSource: providerSource }, initOverrides);
|
|
1056
|
+
async listOrganizationAgents(organizationId, isCreator, providerSource, personal, includeOthersPersonal, visibility, initOverrides) {
|
|
1057
|
+
const response = await this.listOrganizationAgentsRaw({ organizationId: organizationId, isCreator: isCreator, providerSource: providerSource, personal: personal, includeOthersPersonal: includeOthersPersonal, visibility: visibility }, initOverrides);
|
|
1049
1058
|
return await response.value();
|
|
1050
1059
|
}
|
|
1051
1060
|
/**
|
|
@@ -1454,3 +1463,13 @@ exports.ListOrganizationAgentsProviderSourceEnum = {
|
|
|
1454
1463
|
External: 'EXTERNAL',
|
|
1455
1464
|
Internal: 'INTERNAL'
|
|
1456
1465
|
};
|
|
1466
|
+
/**
|
|
1467
|
+
* @export
|
|
1468
|
+
*/
|
|
1469
|
+
exports.ListOrganizationAgentsVisibilityEnum = {
|
|
1470
|
+
MyAgents: 'myAgents',
|
|
1471
|
+
Public: 'public',
|
|
1472
|
+
SharedWithMe: 'sharedWithMe',
|
|
1473
|
+
Personal: 'personal',
|
|
1474
|
+
OthersPersonal: 'othersPersonal'
|
|
1475
|
+
};
|
|
@@ -21,6 +21,12 @@ export interface AnonymizeResponseUio {
|
|
|
21
21
|
* @memberof AnonymizeResponseUio
|
|
22
22
|
*/
|
|
23
23
|
anonymizedPrompt?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof AnonymizeResponseUio
|
|
28
|
+
*/
|
|
29
|
+
blockedEntityTypes?: Array<string>;
|
|
24
30
|
}
|
|
25
31
|
/**
|
|
26
32
|
* Check if a given object implements the AnonymizeResponseUio interface.
|
|
@@ -33,6 +33,7 @@ function AnonymizeResponseUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
33
|
}
|
|
34
34
|
return {
|
|
35
35
|
'anonymizedPrompt': json['anonymizedPrompt'] == null ? undefined : json['anonymizedPrompt'],
|
|
36
|
+
'blockedEntityTypes': json['blockedEntityTypes'] == null ? undefined : json['blockedEntityTypes'],
|
|
36
37
|
};
|
|
37
38
|
}
|
|
38
39
|
function AnonymizeResponseUioToJSON(json) {
|
|
@@ -44,5 +45,6 @@ function AnonymizeResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
44
45
|
}
|
|
45
46
|
return {
|
|
46
47
|
'anonymizedPrompt': value['anonymizedPrompt'],
|
|
48
|
+
'blockedEntityTypes': value['blockedEntityTypes'],
|
|
47
49
|
};
|
|
48
50
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
*/
|
|
16
|
+
export declare const EntityModeUio: {
|
|
17
|
+
readonly Blocked: "BLOCKED";
|
|
18
|
+
readonly Ignored: "IGNORED";
|
|
19
|
+
readonly Anonymized: "ANONYMIZED";
|
|
20
|
+
};
|
|
21
|
+
export type EntityModeUio = typeof EntityModeUio[keyof typeof EntityModeUio];
|
|
22
|
+
export declare function instanceOfEntityModeUio(value: any): boolean;
|
|
23
|
+
export declare function EntityModeUioFromJSON(json: any): EntityModeUio;
|
|
24
|
+
export declare function EntityModeUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): EntityModeUio;
|
|
25
|
+
export declare function EntityModeUioToJSON(value?: EntityModeUio | null): any;
|
|
26
|
+
export declare function EntityModeUioToJSONTyped(value: any, ignoreDiscriminator: boolean): EntityModeUio;
|
|
@@ -0,0 +1,52 @@
|
|
|
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.EntityModeUio = void 0;
|
|
17
|
+
exports.instanceOfEntityModeUio = instanceOfEntityModeUio;
|
|
18
|
+
exports.EntityModeUioFromJSON = EntityModeUioFromJSON;
|
|
19
|
+
exports.EntityModeUioFromJSONTyped = EntityModeUioFromJSONTyped;
|
|
20
|
+
exports.EntityModeUioToJSON = EntityModeUioToJSON;
|
|
21
|
+
exports.EntityModeUioToJSONTyped = EntityModeUioToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.EntityModeUio = {
|
|
27
|
+
Blocked: 'BLOCKED',
|
|
28
|
+
Ignored: 'IGNORED',
|
|
29
|
+
Anonymized: 'ANONYMIZED'
|
|
30
|
+
};
|
|
31
|
+
function instanceOfEntityModeUio(value) {
|
|
32
|
+
for (const key in exports.EntityModeUio) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(exports.EntityModeUio, key)) {
|
|
34
|
+
if (exports.EntityModeUio[key] === value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
function EntityModeUioFromJSON(json) {
|
|
42
|
+
return EntityModeUioFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function EntityModeUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
function EntityModeUioToJSON(value) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
function EntityModeUioToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
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 { EntityModeUio } from './EntityModeUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface EntityTypeRuleUio
|
|
17
|
+
*/
|
|
18
|
+
export interface EntityTypeRuleUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof EntityTypeRuleUio
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof EntityTypeRuleUio
|
|
29
|
+
*/
|
|
30
|
+
entityType: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {boolean}
|
|
34
|
+
* @memberof EntityTypeRuleUio
|
|
35
|
+
*/
|
|
36
|
+
isDefault: boolean;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {EntityModeUio}
|
|
40
|
+
* @memberof EntityTypeRuleUio
|
|
41
|
+
*/
|
|
42
|
+
mode: EntityModeUio;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof EntityTypeRuleUio
|
|
47
|
+
*/
|
|
48
|
+
label?: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof EntityTypeRuleUio
|
|
53
|
+
*/
|
|
54
|
+
expression?: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof EntityTypeRuleUio
|
|
59
|
+
*/
|
|
60
|
+
score?: number;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {Array<string>}
|
|
64
|
+
* @memberof EntityTypeRuleUio
|
|
65
|
+
*/
|
|
66
|
+
context?: Array<string>;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Check if a given object implements the EntityTypeRuleUio interface.
|
|
70
|
+
*/
|
|
71
|
+
export declare function instanceOfEntityTypeRuleUio(value: object): value is EntityTypeRuleUio;
|
|
72
|
+
export declare function EntityTypeRuleUioFromJSON(json: any): EntityTypeRuleUio;
|
|
73
|
+
export declare function EntityTypeRuleUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): EntityTypeRuleUio;
|
|
74
|
+
export declare function EntityTypeRuleUioToJSON(json: any): EntityTypeRuleUio;
|
|
75
|
+
export declare function EntityTypeRuleUioToJSONTyped(value?: EntityTypeRuleUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,71 @@
|
|
|
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.instanceOfEntityTypeRuleUio = instanceOfEntityTypeRuleUio;
|
|
17
|
+
exports.EntityTypeRuleUioFromJSON = EntityTypeRuleUioFromJSON;
|
|
18
|
+
exports.EntityTypeRuleUioFromJSONTyped = EntityTypeRuleUioFromJSONTyped;
|
|
19
|
+
exports.EntityTypeRuleUioToJSON = EntityTypeRuleUioToJSON;
|
|
20
|
+
exports.EntityTypeRuleUioToJSONTyped = EntityTypeRuleUioToJSONTyped;
|
|
21
|
+
const EntityModeUio_1 = require("./EntityModeUio");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the EntityTypeRuleUio interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfEntityTypeRuleUio(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('entityType' in value) || value['entityType'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('isDefault' in value) || value['isDefault'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('mode' in value) || value['mode'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function EntityTypeRuleUioFromJSON(json) {
|
|
37
|
+
return EntityTypeRuleUioFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function EntityTypeRuleUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'id': json['id'],
|
|
45
|
+
'entityType': json['entityType'],
|
|
46
|
+
'isDefault': json['isDefault'],
|
|
47
|
+
'mode': (0, EntityModeUio_1.EntityModeUioFromJSON)(json['mode']),
|
|
48
|
+
'label': json['label'] == null ? undefined : json['label'],
|
|
49
|
+
'expression': json['expression'] == null ? undefined : json['expression'],
|
|
50
|
+
'score': json['score'] == null ? undefined : json['score'],
|
|
51
|
+
'context': json['context'] == null ? undefined : json['context'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function EntityTypeRuleUioToJSON(json) {
|
|
55
|
+
return EntityTypeRuleUioToJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
function EntityTypeRuleUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
58
|
+
if (value == null) {
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'id': value['id'],
|
|
63
|
+
'entityType': value['entityType'],
|
|
64
|
+
'isDefault': value['isDefault'],
|
|
65
|
+
'mode': (0, EntityModeUio_1.EntityModeUioToJSON)(value['mode']),
|
|
66
|
+
'label': value['label'],
|
|
67
|
+
'expression': value['expression'],
|
|
68
|
+
'score': value['score'],
|
|
69
|
+
'context': value['context'],
|
|
70
|
+
};
|
|
71
|
+
}
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { GuardianRoleUio } from './GuardianRoleUio';
|
|
13
13
|
import type { GuardianEngineUio } from './GuardianEngineUio';
|
|
14
|
-
import type { RegexPatternUio } from './RegexPatternUio';
|
|
15
14
|
import type { GuardianTypeUio } from './GuardianTypeUio';
|
|
15
|
+
import type { EntityTypeRuleUio } from './EntityTypeRuleUio';
|
|
16
16
|
import type { GuardianPositionUio } from './GuardianPositionUio';
|
|
17
17
|
/**
|
|
18
18
|
*
|
|
@@ -78,10 +78,10 @@ export interface GuardianPutRequestUio {
|
|
|
78
78
|
excludedAgents?: Array<any>;
|
|
79
79
|
/**
|
|
80
80
|
*
|
|
81
|
-
* @type {Array<
|
|
81
|
+
* @type {Array<EntityTypeRuleUio>}
|
|
82
82
|
* @memberof GuardianPutRequestUio
|
|
83
83
|
*/
|
|
84
|
-
|
|
84
|
+
entityTypeRules?: Array<EntityTypeRuleUio>;
|
|
85
85
|
/**
|
|
86
86
|
*
|
|
87
87
|
* @type {boolean}
|
|
@@ -20,8 +20,8 @@ exports.GuardianPutRequestUioToJSON = GuardianPutRequestUioToJSON;
|
|
|
20
20
|
exports.GuardianPutRequestUioToJSONTyped = GuardianPutRequestUioToJSONTyped;
|
|
21
21
|
const GuardianRoleUio_1 = require("./GuardianRoleUio");
|
|
22
22
|
const GuardianEngineUio_1 = require("./GuardianEngineUio");
|
|
23
|
-
const RegexPatternUio_1 = require("./RegexPatternUio");
|
|
24
23
|
const GuardianTypeUio_1 = require("./GuardianTypeUio");
|
|
24
|
+
const EntityTypeRuleUio_1 = require("./EntityTypeRuleUio");
|
|
25
25
|
const GuardianPositionUio_1 = require("./GuardianPositionUio");
|
|
26
26
|
/**
|
|
27
27
|
* Check if a given object implements the GuardianPutRequestUio interface.
|
|
@@ -46,7 +46,7 @@ function GuardianPutRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
46
|
'position': json['position'] == null ? undefined : (json['position'].map(GuardianPositionUio_1.GuardianPositionUioFromJSON)),
|
|
47
47
|
'engine': json['engine'] == null ? undefined : (0, GuardianEngineUio_1.GuardianEngineUioFromJSON)(json['engine']),
|
|
48
48
|
'excludedAgents': json['excludedAgents'] == null ? undefined : json['excludedAgents'],
|
|
49
|
-
'
|
|
49
|
+
'entityTypeRules': json['entityTypeRules'] == null ? undefined : (json['entityTypeRules'].map(EntityTypeRuleUio_1.EntityTypeRuleUioFromJSON)),
|
|
50
50
|
'useFaker': json['useFaker'] == null ? undefined : json['useFaker'],
|
|
51
51
|
};
|
|
52
52
|
}
|
|
@@ -67,7 +67,7 @@ function GuardianPutRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
67
67
|
'position': value['position'] == null ? undefined : (value['position'].map(GuardianPositionUio_1.GuardianPositionUioToJSON)),
|
|
68
68
|
'engine': (0, GuardianEngineUio_1.GuardianEngineUioToJSON)(value['engine']),
|
|
69
69
|
'excludedAgents': value['excludedAgents'],
|
|
70
|
-
'
|
|
70
|
+
'entityTypeRules': value['entityTypeRules'] == null ? undefined : (value['entityTypeRules'].map(EntityTypeRuleUio_1.EntityTypeRuleUioToJSON)),
|
|
71
71
|
'useFaker': value['useFaker'],
|
|
72
72
|
};
|
|
73
73
|
}
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { GuardianRoleUio } from './GuardianRoleUio';
|
|
13
13
|
import type { GuardianEngineUio } from './GuardianEngineUio';
|
|
14
|
-
import type { RegexPatternUio } from './RegexPatternUio';
|
|
15
14
|
import type { GuardianTypeUio } from './GuardianTypeUio';
|
|
15
|
+
import type { EntityTypeRuleUio } from './EntityTypeRuleUio';
|
|
16
16
|
import type { GuardianPositionUio } from './GuardianPositionUio';
|
|
17
17
|
/**
|
|
18
18
|
*
|
|
@@ -120,10 +120,10 @@ export interface GuardianUio {
|
|
|
120
120
|
useFaker?: boolean;
|
|
121
121
|
/**
|
|
122
122
|
*
|
|
123
|
-
* @type {Array<
|
|
123
|
+
* @type {Array<EntityTypeRuleUio>}
|
|
124
124
|
* @memberof GuardianUio
|
|
125
125
|
*/
|
|
126
|
-
|
|
126
|
+
entityTypeRules?: Array<EntityTypeRuleUio>;
|
|
127
127
|
}
|
|
128
128
|
/**
|
|
129
129
|
* Check if a given object implements the GuardianUio interface.
|
|
@@ -20,8 +20,8 @@ exports.GuardianUioToJSON = GuardianUioToJSON;
|
|
|
20
20
|
exports.GuardianUioToJSONTyped = GuardianUioToJSONTyped;
|
|
21
21
|
const GuardianRoleUio_1 = require("./GuardianRoleUio");
|
|
22
22
|
const GuardianEngineUio_1 = require("./GuardianEngineUio");
|
|
23
|
-
const RegexPatternUio_1 = require("./RegexPatternUio");
|
|
24
23
|
const GuardianTypeUio_1 = require("./GuardianTypeUio");
|
|
24
|
+
const EntityTypeRuleUio_1 = require("./EntityTypeRuleUio");
|
|
25
25
|
const GuardianPositionUio_1 = require("./GuardianPositionUio");
|
|
26
26
|
/**
|
|
27
27
|
* Check if a given object implements the GuardianUio interface.
|
|
@@ -65,7 +65,7 @@ function GuardianUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
65
65
|
'thresholds': json['thresholds'] == null ? undefined : json['thresholds'],
|
|
66
66
|
'excludedAgents': json['excludedAgents'] == null ? undefined : json['excludedAgents'],
|
|
67
67
|
'useFaker': json['useFaker'] == null ? undefined : json['useFaker'],
|
|
68
|
-
'
|
|
68
|
+
'entityTypeRules': json['entityTypeRules'] == null ? undefined : (json['entityTypeRules'].map(EntityTypeRuleUio_1.EntityTypeRuleUioFromJSON)),
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
71
|
function GuardianUioToJSON(json) {
|
|
@@ -92,6 +92,6 @@ function GuardianUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
92
92
|
'thresholds': value['thresholds'],
|
|
93
93
|
'excludedAgents': value['excludedAgents'],
|
|
94
94
|
'useFaker': value['useFaker'],
|
|
95
|
-
'
|
|
95
|
+
'entityTypeRules': value['entityTypeRules'] == null ? undefined : (value['entityTypeRules'].map(EntityTypeRuleUio_1.EntityTypeRuleUioToJSON)),
|
|
96
96
|
};
|
|
97
97
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -205,6 +205,8 @@ export * from './EmbeddingProviderModelsInnerUio';
|
|
|
205
205
|
export * from './EmbeddingProviderUio';
|
|
206
206
|
export * from './EngineOptionsUio';
|
|
207
207
|
export * from './EngineUio';
|
|
208
|
+
export * from './EntityModeUio';
|
|
209
|
+
export * from './EntityTypeRuleUio';
|
|
208
210
|
export * from './EphemeralInstanceUio';
|
|
209
211
|
export * from './EphemeralInstancesMetricsResponseUio';
|
|
210
212
|
export * from './EphemeralInstancesTimeSeriesPointUio';
|
|
@@ -352,7 +354,6 @@ export * from './ProviderCreateRequestUio';
|
|
|
352
354
|
export * from './ProviderTypeUio';
|
|
353
355
|
export * from './ProviderUio';
|
|
354
356
|
export * from './ProviderValiationRequestUio';
|
|
355
|
-
export * from './RegexPatternUio';
|
|
356
357
|
export * from './RevealTokenRequestUio';
|
|
357
358
|
export * from './RevealTokenResponseUio';
|
|
358
359
|
export * from './RoleCreateRequestUio';
|
package/dist/models/index.js
CHANGED
|
@@ -223,6 +223,8 @@ __exportStar(require("./EmbeddingProviderModelsInnerUio"), exports);
|
|
|
223
223
|
__exportStar(require("./EmbeddingProviderUio"), exports);
|
|
224
224
|
__exportStar(require("./EngineOptionsUio"), exports);
|
|
225
225
|
__exportStar(require("./EngineUio"), exports);
|
|
226
|
+
__exportStar(require("./EntityModeUio"), exports);
|
|
227
|
+
__exportStar(require("./EntityTypeRuleUio"), exports);
|
|
226
228
|
__exportStar(require("./EphemeralInstanceUio"), exports);
|
|
227
229
|
__exportStar(require("./EphemeralInstancesMetricsResponseUio"), exports);
|
|
228
230
|
__exportStar(require("./EphemeralInstancesTimeSeriesPointUio"), exports);
|
|
@@ -370,7 +372,6 @@ __exportStar(require("./ProviderCreateRequestUio"), exports);
|
|
|
370
372
|
__exportStar(require("./ProviderTypeUio"), exports);
|
|
371
373
|
__exportStar(require("./ProviderUio"), exports);
|
|
372
374
|
__exportStar(require("./ProviderValiationRequestUio"), exports);
|
|
373
|
-
__exportStar(require("./RegexPatternUio"), exports);
|
|
374
375
|
__exportStar(require("./RevealTokenRequestUio"), exports);
|
|
375
376
|
__exportStar(require("./RevealTokenResponseUio"), exports);
|
|
376
377
|
__exportStar(require("./RoleCreateRequestUio"), exports);
|
package/dist/openapi.json
CHANGED
|
@@ -278,6 +278,36 @@
|
|
|
278
278
|
"enum" : [ "EXTERNAL", "INTERNAL" ],
|
|
279
279
|
"type" : "string"
|
|
280
280
|
}
|
|
281
|
+
}, {
|
|
282
|
+
"description" : "If true, only personal agents. If false, only organization-shared (public) agents.\n",
|
|
283
|
+
"in" : "query",
|
|
284
|
+
"name" : "personal",
|
|
285
|
+
"required" : false,
|
|
286
|
+
"schema" : {
|
|
287
|
+
"type" : "boolean"
|
|
288
|
+
}
|
|
289
|
+
}, {
|
|
290
|
+
"description" : "If true, include personal agents created by other users. Organization admins only; other callers receive 403. Default listing hides those agents.\n",
|
|
291
|
+
"in" : "query",
|
|
292
|
+
"name" : "includeOthersPersonal",
|
|
293
|
+
"required" : false,
|
|
294
|
+
"schema" : {
|
|
295
|
+
"type" : "boolean"
|
|
296
|
+
}
|
|
297
|
+
}, {
|
|
298
|
+
"description" : "Visibility scopes to include (OR). Accepted values: myAgents, public, sharedWithMe, personal, othersPersonal. Comma-separated or repeated. othersPersonal requires org admin. When omitted, returns agents created by the caller or organization-shared agents.\n",
|
|
299
|
+
"explode" : true,
|
|
300
|
+
"in" : "query",
|
|
301
|
+
"name" : "visibility",
|
|
302
|
+
"required" : false,
|
|
303
|
+
"schema" : {
|
|
304
|
+
"items" : {
|
|
305
|
+
"enum" : [ "myAgents", "public", "sharedWithMe", "personal", "othersPersonal" ],
|
|
306
|
+
"type" : "string"
|
|
307
|
+
},
|
|
308
|
+
"type" : "array"
|
|
309
|
+
},
|
|
310
|
+
"style" : "form"
|
|
281
311
|
} ],
|
|
282
312
|
"responses" : {
|
|
283
313
|
"200" : {
|
|
@@ -19922,9 +19952,9 @@
|
|
|
19922
19952
|
"useFaker" : {
|
|
19923
19953
|
"type" : "boolean"
|
|
19924
19954
|
},
|
|
19925
|
-
"
|
|
19955
|
+
"entityTypeRules" : {
|
|
19926
19956
|
"items" : {
|
|
19927
|
-
"$ref" : "#/components/schemas/
|
|
19957
|
+
"$ref" : "#/components/schemas/EntityTypeRule"
|
|
19928
19958
|
},
|
|
19929
19959
|
"type" : "array"
|
|
19930
19960
|
}
|
|
@@ -19932,25 +19962,37 @@
|
|
|
19932
19962
|
"required" : [ "createdAt", "engine", "id", "organisationId", "role", "type" ],
|
|
19933
19963
|
"type" : "object"
|
|
19934
19964
|
},
|
|
19935
|
-
"
|
|
19965
|
+
"EntityTypeRule" : {
|
|
19936
19966
|
"properties" : {
|
|
19937
19967
|
"id" : {
|
|
19938
19968
|
"type" : "string"
|
|
19939
19969
|
},
|
|
19940
|
-
"
|
|
19970
|
+
"entityType" : {
|
|
19941
19971
|
"type" : "string"
|
|
19942
19972
|
},
|
|
19943
|
-
"
|
|
19973
|
+
"isDefault" : {
|
|
19974
|
+
"type" : "boolean"
|
|
19975
|
+
},
|
|
19976
|
+
"mode" : {
|
|
19977
|
+
"$ref" : "#/components/schemas/EntityMode"
|
|
19978
|
+
},
|
|
19979
|
+
"label" : {
|
|
19944
19980
|
"type" : "string"
|
|
19945
19981
|
},
|
|
19946
|
-
"
|
|
19982
|
+
"expression" : {
|
|
19947
19983
|
"type" : "string"
|
|
19948
19984
|
},
|
|
19949
|
-
"
|
|
19950
|
-
"type" : "
|
|
19985
|
+
"score" : {
|
|
19986
|
+
"type" : "number"
|
|
19987
|
+
},
|
|
19988
|
+
"context" : {
|
|
19989
|
+
"items" : {
|
|
19990
|
+
"type" : "string"
|
|
19991
|
+
},
|
|
19992
|
+
"type" : "array"
|
|
19951
19993
|
}
|
|
19952
19994
|
},
|
|
19953
|
-
"required" : [ "
|
|
19995
|
+
"required" : [ "entityType", "id", "isDefault", "mode" ],
|
|
19954
19996
|
"type" : "object"
|
|
19955
19997
|
},
|
|
19956
19998
|
"GuardianCreateRequest" : {
|
|
@@ -20025,9 +20067,9 @@
|
|
|
20025
20067
|
"items" : { },
|
|
20026
20068
|
"type" : "array"
|
|
20027
20069
|
},
|
|
20028
|
-
"
|
|
20070
|
+
"entityTypeRules" : {
|
|
20029
20071
|
"items" : {
|
|
20030
|
-
"$ref" : "#/components/schemas/
|
|
20072
|
+
"$ref" : "#/components/schemas/EntityTypeRule"
|
|
20031
20073
|
},
|
|
20032
20074
|
"type" : "array"
|
|
20033
20075
|
},
|
|
@@ -20050,6 +20092,12 @@
|
|
|
20050
20092
|
"properties" : {
|
|
20051
20093
|
"anonymizedPrompt" : {
|
|
20052
20094
|
"type" : "string"
|
|
20095
|
+
},
|
|
20096
|
+
"blockedEntityTypes" : {
|
|
20097
|
+
"items" : {
|
|
20098
|
+
"type" : "string"
|
|
20099
|
+
},
|
|
20100
|
+
"type" : "array"
|
|
20053
20101
|
}
|
|
20054
20102
|
},
|
|
20055
20103
|
"type" : "object"
|
|
@@ -23551,6 +23599,10 @@
|
|
|
23551
23599
|
"enum" : [ "entry", "exit" ],
|
|
23552
23600
|
"type" : "string"
|
|
23553
23601
|
},
|
|
23602
|
+
"EntityMode" : {
|
|
23603
|
+
"enum" : [ "BLOCKED", "IGNORED", "ANONYMIZED" ],
|
|
23604
|
+
"type" : "string"
|
|
23605
|
+
},
|
|
23554
23606
|
"EngineOptions" : {
|
|
23555
23607
|
"additionalProperties" : false,
|
|
23556
23608
|
"description" : "Advanced engine options for an organization.",
|
package/package.json
CHANGED
|
@@ -1,56 +0,0 @@
|
|
|
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 RegexPatternUio
|
|
16
|
-
*/
|
|
17
|
-
export interface RegexPatternUio {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof RegexPatternUio
|
|
22
|
-
*/
|
|
23
|
-
id: string;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof RegexPatternUio
|
|
28
|
-
*/
|
|
29
|
-
name: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof RegexPatternUio
|
|
34
|
-
*/
|
|
35
|
-
expression: string;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof RegexPatternUio
|
|
40
|
-
*/
|
|
41
|
-
entityType: string;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {boolean}
|
|
45
|
-
* @memberof RegexPatternUio
|
|
46
|
-
*/
|
|
47
|
-
enabled: boolean;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Check if a given object implements the RegexPatternUio interface.
|
|
51
|
-
*/
|
|
52
|
-
export declare function instanceOfRegexPatternUio(value: object): value is RegexPatternUio;
|
|
53
|
-
export declare function RegexPatternUioFromJSON(json: any): RegexPatternUio;
|
|
54
|
-
export declare function RegexPatternUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegexPatternUio;
|
|
55
|
-
export declare function RegexPatternUioToJSON(json: any): RegexPatternUio;
|
|
56
|
-
export declare function RegexPatternUioToJSONTyped(value?: RegexPatternUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,66 +0,0 @@
|
|
|
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.instanceOfRegexPatternUio = instanceOfRegexPatternUio;
|
|
17
|
-
exports.RegexPatternUioFromJSON = RegexPatternUioFromJSON;
|
|
18
|
-
exports.RegexPatternUioFromJSONTyped = RegexPatternUioFromJSONTyped;
|
|
19
|
-
exports.RegexPatternUioToJSON = RegexPatternUioToJSON;
|
|
20
|
-
exports.RegexPatternUioToJSONTyped = RegexPatternUioToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the RegexPatternUio interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfRegexPatternUio(value) {
|
|
25
|
-
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
if (!('expression' in value) || value['expression'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
if (!('entityType' in value) || value['entityType'] === undefined)
|
|
32
|
-
return false;
|
|
33
|
-
if (!('enabled' in value) || value['enabled'] === undefined)
|
|
34
|
-
return false;
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
function RegexPatternUioFromJSON(json) {
|
|
38
|
-
return RegexPatternUioFromJSONTyped(json, false);
|
|
39
|
-
}
|
|
40
|
-
function RegexPatternUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
-
if (json == null) {
|
|
42
|
-
return json;
|
|
43
|
-
}
|
|
44
|
-
return {
|
|
45
|
-
'id': json['id'],
|
|
46
|
-
'name': json['name'],
|
|
47
|
-
'expression': json['expression'],
|
|
48
|
-
'entityType': json['entityType'],
|
|
49
|
-
'enabled': json['enabled'],
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
function RegexPatternUioToJSON(json) {
|
|
53
|
-
return RegexPatternUioToJSONTyped(json, false);
|
|
54
|
-
}
|
|
55
|
-
function RegexPatternUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
-
if (value == null) {
|
|
57
|
-
return value;
|
|
58
|
-
}
|
|
59
|
-
return {
|
|
60
|
-
'id': value['id'],
|
|
61
|
-
'name': value['name'],
|
|
62
|
-
'expression': value['expression'],
|
|
63
|
-
'entityType': value['entityType'],
|
|
64
|
-
'enabled': value['enabled'],
|
|
65
|
-
};
|
|
66
|
-
}
|