@breign/client 1.0.74 → 1.0.75
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/models/GuardianEngineUio.d.ts +27 -4
- package/dist/models/GuardianEngineUio.js +11 -4
- package/dist/models/GuardianPutRequestUio.d.ts +13 -0
- package/dist/models/GuardianPutRequestUio.js +5 -0
- package/dist/models/GuardianTypeUio.d.ts +2 -3
- package/dist/models/GuardianTypeUio.js +2 -3
- package/dist/models/GuardianUio.d.ts +1 -1
- package/dist/models/GuardianUio.js +3 -1
- package/dist/openapi.json +23 -6
- package/package.json +1 -1
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { ModelDefinitionUio } from './ModelDefinitionUio';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -17,12 +18,34 @@
|
|
|
17
18
|
export interface GuardianEngineUio {
|
|
18
19
|
/**
|
|
19
20
|
*
|
|
20
|
-
* @type {
|
|
21
|
+
* @type {string}
|
|
21
22
|
* @memberof GuardianEngineUio
|
|
22
23
|
*/
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
providerId?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof GuardianEngineUio
|
|
29
|
+
*/
|
|
30
|
+
model?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof GuardianEngineUio
|
|
35
|
+
*/
|
|
36
|
+
endpoint?: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof GuardianEngineUio
|
|
41
|
+
*/
|
|
42
|
+
apiKey?: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {ModelDefinitionUio}
|
|
46
|
+
* @memberof GuardianEngineUio
|
|
47
|
+
*/
|
|
48
|
+
resolvedModel?: ModelDefinitionUio;
|
|
26
49
|
}
|
|
27
50
|
/**
|
|
28
51
|
* Check if a given object implements the GuardianEngineUio interface.
|
|
@@ -18,12 +18,11 @@ exports.GuardianEngineUioFromJSON = GuardianEngineUioFromJSON;
|
|
|
18
18
|
exports.GuardianEngineUioFromJSONTyped = GuardianEngineUioFromJSONTyped;
|
|
19
19
|
exports.GuardianEngineUioToJSON = GuardianEngineUioToJSON;
|
|
20
20
|
exports.GuardianEngineUioToJSONTyped = GuardianEngineUioToJSONTyped;
|
|
21
|
+
const ModelDefinitionUio_1 = require("./ModelDefinitionUio");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the GuardianEngineUio interface.
|
|
23
24
|
*/
|
|
24
25
|
function instanceOfGuardianEngineUio(value) {
|
|
25
|
-
if (!('configuration' in value) || value['configuration'] === undefined)
|
|
26
|
-
return false;
|
|
27
26
|
return true;
|
|
28
27
|
}
|
|
29
28
|
function GuardianEngineUioFromJSON(json) {
|
|
@@ -34,7 +33,11 @@ function GuardianEngineUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
33
|
return json;
|
|
35
34
|
}
|
|
36
35
|
return {
|
|
37
|
-
'
|
|
36
|
+
'providerId': json['providerId'] == null ? undefined : json['providerId'],
|
|
37
|
+
'model': json['model'] == null ? undefined : json['model'],
|
|
38
|
+
'endpoint': json['endpoint'] == null ? undefined : json['endpoint'],
|
|
39
|
+
'apiKey': json['apiKey'] == null ? undefined : json['apiKey'],
|
|
40
|
+
'resolvedModel': json['resolvedModel'] == null ? undefined : (0, ModelDefinitionUio_1.ModelDefinitionUioFromJSON)(json['resolvedModel']),
|
|
38
41
|
};
|
|
39
42
|
}
|
|
40
43
|
function GuardianEngineUioToJSON(json) {
|
|
@@ -45,6 +48,10 @@ function GuardianEngineUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
45
48
|
return value;
|
|
46
49
|
}
|
|
47
50
|
return {
|
|
48
|
-
'
|
|
51
|
+
'providerId': value['providerId'],
|
|
52
|
+
'model': value['model'],
|
|
53
|
+
'endpoint': value['endpoint'],
|
|
54
|
+
'apiKey': value['apiKey'],
|
|
55
|
+
'resolvedModel': (0, ModelDefinitionUio_1.ModelDefinitionUioToJSON)(value['resolvedModel']),
|
|
49
56
|
};
|
|
50
57
|
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { GuardianRoleUio } from './GuardianRoleUio';
|
|
13
|
+
import type { GuardianEngineUio } from './GuardianEngineUio';
|
|
13
14
|
import type { GuardianTypeUio } from './GuardianTypeUio';
|
|
14
15
|
import type { GuardianPositionUio } from './GuardianPositionUio';
|
|
15
16
|
/**
|
|
@@ -62,6 +63,18 @@ export interface GuardianPutRequestUio {
|
|
|
62
63
|
* @memberof GuardianPutRequestUio
|
|
63
64
|
*/
|
|
64
65
|
position?: Array<GuardianPositionUio>;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {GuardianEngineUio}
|
|
69
|
+
* @memberof GuardianPutRequestUio
|
|
70
|
+
*/
|
|
71
|
+
engine?: GuardianEngineUio;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {Array<any>}
|
|
75
|
+
* @memberof GuardianPutRequestUio
|
|
76
|
+
*/
|
|
77
|
+
excludedAgents?: Array<any>;
|
|
65
78
|
}
|
|
66
79
|
/**
|
|
67
80
|
* Check if a given object implements the GuardianPutRequestUio interface.
|
|
@@ -19,6 +19,7 @@ exports.GuardianPutRequestUioFromJSONTyped = GuardianPutRequestUioFromJSONTyped;
|
|
|
19
19
|
exports.GuardianPutRequestUioToJSON = GuardianPutRequestUioToJSON;
|
|
20
20
|
exports.GuardianPutRequestUioToJSONTyped = GuardianPutRequestUioToJSONTyped;
|
|
21
21
|
const GuardianRoleUio_1 = require("./GuardianRoleUio");
|
|
22
|
+
const GuardianEngineUio_1 = require("./GuardianEngineUio");
|
|
22
23
|
const GuardianTypeUio_1 = require("./GuardianTypeUio");
|
|
23
24
|
const GuardianPositionUio_1 = require("./GuardianPositionUio");
|
|
24
25
|
/**
|
|
@@ -42,6 +43,8 @@ function GuardianPutRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
43
|
'forbiddenMessages': json['forbiddenMessages'] == null ? undefined : json['forbiddenMessages'],
|
|
43
44
|
'thresholds': json['thresholds'] == null ? undefined : json['thresholds'],
|
|
44
45
|
'position': json['position'] == null ? undefined : (json['position'].map(GuardianPositionUio_1.GuardianPositionUioFromJSON)),
|
|
46
|
+
'engine': json['engine'] == null ? undefined : (0, GuardianEngineUio_1.GuardianEngineUioFromJSON)(json['engine']),
|
|
47
|
+
'excludedAgents': json['excludedAgents'] == null ? undefined : json['excludedAgents'],
|
|
45
48
|
};
|
|
46
49
|
}
|
|
47
50
|
function GuardianPutRequestUioToJSON(json) {
|
|
@@ -59,5 +62,7 @@ function GuardianPutRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
59
62
|
'forbiddenMessages': value['forbiddenMessages'],
|
|
60
63
|
'thresholds': value['thresholds'],
|
|
61
64
|
'position': value['position'] == null ? undefined : (value['position'].map(GuardianPositionUio_1.GuardianPositionUioToJSON)),
|
|
65
|
+
'engine': (0, GuardianEngineUio_1.GuardianEngineUioToJSON)(value['engine']),
|
|
66
|
+
'excludedAgents': value['excludedAgents'],
|
|
62
67
|
};
|
|
63
68
|
}
|
|
@@ -14,9 +14,8 @@
|
|
|
14
14
|
* @export
|
|
15
15
|
*/
|
|
16
16
|
export declare const GuardianTypeUio: {
|
|
17
|
-
readonly
|
|
18
|
-
readonly
|
|
19
|
-
readonly Llmguards: "llmguards";
|
|
17
|
+
readonly ModerationApi: "moderationAPI";
|
|
18
|
+
readonly BreignGuardApi: "breignGuardAPI";
|
|
20
19
|
};
|
|
21
20
|
export type GuardianTypeUio = typeof GuardianTypeUio[keyof typeof GuardianTypeUio];
|
|
22
21
|
export declare function instanceOfGuardianTypeUio(value: any): boolean;
|
|
@@ -24,9 +24,8 @@ exports.GuardianTypeUioToJSONTyped = GuardianTypeUioToJSONTyped;
|
|
|
24
24
|
* @export
|
|
25
25
|
*/
|
|
26
26
|
exports.GuardianTypeUio = {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
Llmguards: 'llmguards'
|
|
27
|
+
ModerationApi: 'moderationAPI',
|
|
28
|
+
BreignGuardApi: 'breignGuardAPI'
|
|
30
29
|
};
|
|
31
30
|
function instanceOfGuardianTypeUio(value) {
|
|
32
31
|
for (const key in exports.GuardianTypeUio) {
|
|
@@ -30,6 +30,8 @@ function instanceOfGuardianUio(value) {
|
|
|
30
30
|
return false;
|
|
31
31
|
if (!('type' in value) || value['type'] === undefined)
|
|
32
32
|
return false;
|
|
33
|
+
if (!('organisationId' in value) || value['organisationId'] === undefined)
|
|
34
|
+
return false;
|
|
33
35
|
if (!('role' in value) || value['role'] === undefined)
|
|
34
36
|
return false;
|
|
35
37
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
@@ -52,7 +54,7 @@ function GuardianUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
54
|
'description': json['description'] == null ? undefined : json['description'],
|
|
53
55
|
'forbiddenMessages': json['forbiddenMessages'] == null ? undefined : json['forbiddenMessages'],
|
|
54
56
|
'agentId': json['agentId'] == null ? undefined : json['agentId'],
|
|
55
|
-
'organisationId': json['organisationId']
|
|
57
|
+
'organisationId': json['organisationId'],
|
|
56
58
|
'role': (0, GuardianRoleUio_1.GuardianRoleUioFromJSON)(json['role']),
|
|
57
59
|
'instanceId': json['instanceId'] == null ? undefined : json['instanceId'],
|
|
58
60
|
'createdAt': json['createdAt'],
|
package/dist/openapi.json
CHANGED
|
@@ -9348,7 +9348,7 @@
|
|
|
9348
9348
|
"type" : "array"
|
|
9349
9349
|
}
|
|
9350
9350
|
},
|
|
9351
|
-
"required" : [ "createdAt", "engine", "id", "role", "type" ],
|
|
9351
|
+
"required" : [ "createdAt", "engine", "id", "organisationId", "role", "type" ],
|
|
9352
9352
|
"type" : "object"
|
|
9353
9353
|
},
|
|
9354
9354
|
"GuardianCreateRequest" : {
|
|
@@ -9415,6 +9415,13 @@
|
|
|
9415
9415
|
"$ref" : "#/components/schemas/GuardianPosition"
|
|
9416
9416
|
},
|
|
9417
9417
|
"type" : "array"
|
|
9418
|
+
},
|
|
9419
|
+
"engine" : {
|
|
9420
|
+
"$ref" : "#/components/schemas/GuardianEngine"
|
|
9421
|
+
},
|
|
9422
|
+
"excludedAgents" : {
|
|
9423
|
+
"items" : { },
|
|
9424
|
+
"type" : "array"
|
|
9418
9425
|
}
|
|
9419
9426
|
},
|
|
9420
9427
|
"type" : "object"
|
|
@@ -10080,7 +10087,7 @@
|
|
|
10080
10087
|
"type" : "string"
|
|
10081
10088
|
},
|
|
10082
10089
|
"GuardianType" : {
|
|
10083
|
-
"enum" : [ "
|
|
10090
|
+
"enum" : [ "moderationAPI", "breignGuardAPI" ],
|
|
10084
10091
|
"type" : "string"
|
|
10085
10092
|
},
|
|
10086
10093
|
"GuardianRole" : {
|
|
@@ -10089,12 +10096,22 @@
|
|
|
10089
10096
|
},
|
|
10090
10097
|
"GuardianEngine" : {
|
|
10091
10098
|
"properties" : {
|
|
10092
|
-
"
|
|
10093
|
-
"
|
|
10094
|
-
|
|
10099
|
+
"providerId" : {
|
|
10100
|
+
"type" : "string"
|
|
10101
|
+
},
|
|
10102
|
+
"model" : {
|
|
10103
|
+
"type" : "string"
|
|
10104
|
+
},
|
|
10105
|
+
"endpoint" : {
|
|
10106
|
+
"type" : "string"
|
|
10107
|
+
},
|
|
10108
|
+
"apiKey" : {
|
|
10109
|
+
"type" : "string"
|
|
10110
|
+
},
|
|
10111
|
+
"resolvedModel" : {
|
|
10112
|
+
"$ref" : "#/components/schemas/ModelDefinition"
|
|
10095
10113
|
}
|
|
10096
10114
|
},
|
|
10097
|
-
"required" : [ "configuration" ],
|
|
10098
10115
|
"type" : "object"
|
|
10099
10116
|
},
|
|
10100
10117
|
"GuardianPosition" : {
|