@breign/client 1.0.128 → 1.0.130
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apis/AdminApi.d.ts +103 -0
- package/dist/apis/AdminApi.js +267 -0
- package/dist/apis/ConversationsApi.d.ts +14 -1
- package/dist/apis/ConversationsApi.js +29 -0
- package/dist/apis/GuardiansApi.d.ts +15 -1
- package/dist/apis/GuardiansApi.js +34 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AnonymizationStatusUio.d.ts +27 -0
- package/dist/models/AnonymizationStatusUio.js +53 -0
- package/dist/models/AnonymizeRequestUio.d.ts +32 -0
- package/dist/models/AnonymizeRequestUio.js +50 -0
- package/dist/models/AnonymizeResponseUio.d.ts +32 -0
- package/dist/models/AnonymizeResponseUio.js +48 -0
- package/dist/models/ChatMessageUio.d.ts +6 -0
- package/dist/models/ChatMessageUio.js +2 -0
- package/dist/models/GuardianPutRequestUio.d.ts +13 -0
- package/dist/models/GuardianPutRequestUio.js +5 -0
- package/dist/models/GuardianRoleUio.d.ts +1 -1
- package/dist/models/GuardianRoleUio.js +1 -1
- package/dist/models/GuardianUio.d.ts +13 -0
- package/dist/models/GuardianUio.js +5 -0
- package/dist/models/MessageAnonymizationUio.d.ts +93 -0
- package/dist/models/MessageAnonymizationUio.js +85 -0
- package/dist/models/RegexPatternUio.d.ts +56 -0
- package/dist/models/RegexPatternUio.js +66 -0
- package/dist/models/ToolPresetCreateRequestUio.d.ts +118 -0
- package/dist/models/ToolPresetCreateRequestUio.js +86 -0
- package/dist/models/ToolPresetDeleteAllResponseUio.d.ts +32 -0
- package/dist/models/ToolPresetDeleteAllResponseUio.js +50 -0
- package/dist/models/ToolPresetImportItemUio.d.ts +136 -0
- package/dist/models/ToolPresetImportItemUio.js +92 -0
- package/dist/models/ToolPresetImportRequestUio.d.ts +33 -0
- package/dist/models/ToolPresetImportRequestUio.js +51 -0
- package/dist/models/ToolPresetImportResponseUio.d.ts +38 -0
- package/dist/models/ToolPresetImportResponseUio.js +54 -0
- package/dist/models/ToolPresetOAuthRegistrationUio.d.ts +26 -0
- package/dist/models/ToolPresetOAuthRegistrationUio.js +52 -0
- package/dist/models/ToolPresetPageUio.d.ts +63 -0
- package/dist/models/ToolPresetPageUio.js +71 -0
- package/dist/models/ToolPresetTransportUio.d.ts +25 -0
- package/dist/models/ToolPresetTransportUio.js +51 -0
- package/dist/models/ToolPresetUio.d.ts +136 -0
- package/dist/models/ToolPresetUio.js +112 -0
- package/dist/models/ToolPresetUpdateRequestUio.d.ts +118 -0
- package/dist/models/ToolPresetUpdateRequestUio.js +78 -0
- package/dist/models/index.d.ts +15 -0
- package/dist/models/index.js +15 -0
- package/dist/openapi.json +938 -109
- package/package.json +1 -1
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* brain-client
|
|
6
|
+
* Api ands models for brain-app and brain-app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAnonymizeRequestUio = instanceOfAnonymizeRequestUio;
|
|
17
|
+
exports.AnonymizeRequestUioFromJSON = AnonymizeRequestUioFromJSON;
|
|
18
|
+
exports.AnonymizeRequestUioFromJSONTyped = AnonymizeRequestUioFromJSONTyped;
|
|
19
|
+
exports.AnonymizeRequestUioToJSON = AnonymizeRequestUioToJSON;
|
|
20
|
+
exports.AnonymizeRequestUioToJSONTyped = AnonymizeRequestUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AnonymizeRequestUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAnonymizeRequestUio(value) {
|
|
25
|
+
if (!('prompt' in value) || value['prompt'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function AnonymizeRequestUioFromJSON(json) {
|
|
30
|
+
return AnonymizeRequestUioFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function AnonymizeRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'prompt': json['prompt'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function AnonymizeRequestUioToJSON(json) {
|
|
41
|
+
return AnonymizeRequestUioToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function AnonymizeRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'prompt': value['prompt'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brain-client
|
|
3
|
+
* Api ands models for brain-app and brain-app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AnonymizeResponseUio
|
|
16
|
+
*/
|
|
17
|
+
export interface AnonymizeResponseUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AnonymizeResponseUio
|
|
22
|
+
*/
|
|
23
|
+
anonymizedPrompt?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the AnonymizeResponseUio interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfAnonymizeResponseUio(value: object): value is AnonymizeResponseUio;
|
|
29
|
+
export declare function AnonymizeResponseUioFromJSON(json: any): AnonymizeResponseUio;
|
|
30
|
+
export declare function AnonymizeResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnonymizeResponseUio;
|
|
31
|
+
export declare function AnonymizeResponseUioToJSON(json: any): AnonymizeResponseUio;
|
|
32
|
+
export declare function AnonymizeResponseUioToJSONTyped(value?: AnonymizeResponseUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
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.instanceOfAnonymizeResponseUio = instanceOfAnonymizeResponseUio;
|
|
17
|
+
exports.AnonymizeResponseUioFromJSON = AnonymizeResponseUioFromJSON;
|
|
18
|
+
exports.AnonymizeResponseUioFromJSONTyped = AnonymizeResponseUioFromJSONTyped;
|
|
19
|
+
exports.AnonymizeResponseUioToJSON = AnonymizeResponseUioToJSON;
|
|
20
|
+
exports.AnonymizeResponseUioToJSONTyped = AnonymizeResponseUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AnonymizeResponseUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAnonymizeResponseUio(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function AnonymizeResponseUioFromJSON(json) {
|
|
28
|
+
return AnonymizeResponseUioFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function AnonymizeResponseUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'anonymizedPrompt': json['anonymizedPrompt'] == null ? undefined : json['anonymizedPrompt'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function AnonymizeResponseUioToJSON(json) {
|
|
39
|
+
return AnonymizeResponseUioToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function AnonymizeResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'anonymizedPrompt': value['anonymizedPrompt'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -61,6 +61,7 @@ function ChatMessageUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
61
61
|
'content': json['content'],
|
|
62
62
|
'reaction': json['reaction'] == null ? undefined : json['reaction'],
|
|
63
63
|
'askConfirmation': json['askConfirmation'] == null ? undefined : json['askConfirmation'],
|
|
64
|
+
'anonymizedContent': json['anonymizedContent'] == null ? undefined : json['anonymizedContent'],
|
|
64
65
|
'confirmationLink': json['confirmationLink'] == null ? undefined : json['confirmationLink'],
|
|
65
66
|
'toolResults': json['toolResults'] == null ? undefined : (json['toolResults'].map(ToolResultsUio_1.ToolResultsUioFromJSON)),
|
|
66
67
|
'suggestions': json['suggestions'] == null ? undefined : (json['suggestions'].map(SuggestionUio_1.SuggestionUioFromJSON)),
|
|
@@ -92,6 +93,7 @@ function ChatMessageUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
92
93
|
'content': value['content'],
|
|
93
94
|
'reaction': value['reaction'],
|
|
94
95
|
'askConfirmation': value['askConfirmation'],
|
|
96
|
+
'anonymizedContent': value['anonymizedContent'],
|
|
95
97
|
'confirmationLink': value['confirmationLink'],
|
|
96
98
|
'toolResults': value['toolResults'] == null ? undefined : (value['toolResults'].map(ToolResultsUio_1.ToolResultsUioToJSON)),
|
|
97
99
|
'suggestions': value['suggestions'] == null ? undefined : (value['suggestions'].map(SuggestionUio_1.SuggestionUioToJSON)),
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { GuardianRoleUio } from './GuardianRoleUio';
|
|
13
13
|
import type { GuardianEngineUio } from './GuardianEngineUio';
|
|
14
|
+
import type { RegexPatternUio } from './RegexPatternUio';
|
|
14
15
|
import type { GuardianTypeUio } from './GuardianTypeUio';
|
|
15
16
|
import type { GuardianPositionUio } from './GuardianPositionUio';
|
|
16
17
|
/**
|
|
@@ -75,6 +76,18 @@ export interface GuardianPutRequestUio {
|
|
|
75
76
|
* @memberof GuardianPutRequestUio
|
|
76
77
|
*/
|
|
77
78
|
excludedAgents?: Array<any>;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {Array<RegexPatternUio>}
|
|
82
|
+
* @memberof GuardianPutRequestUio
|
|
83
|
+
*/
|
|
84
|
+
regexPatterns?: Array<RegexPatternUio>;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {boolean}
|
|
88
|
+
* @memberof GuardianPutRequestUio
|
|
89
|
+
*/
|
|
90
|
+
useFaker?: boolean;
|
|
78
91
|
}
|
|
79
92
|
/**
|
|
80
93
|
* Check if a given object implements the GuardianPutRequestUio interface.
|
|
@@ -20,6 +20,7 @@ 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");
|
|
23
24
|
const GuardianTypeUio_1 = require("./GuardianTypeUio");
|
|
24
25
|
const GuardianPositionUio_1 = require("./GuardianPositionUio");
|
|
25
26
|
/**
|
|
@@ -45,6 +46,8 @@ function GuardianPutRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
46
|
'position': json['position'] == null ? undefined : (json['position'].map(GuardianPositionUio_1.GuardianPositionUioFromJSON)),
|
|
46
47
|
'engine': json['engine'] == null ? undefined : (0, GuardianEngineUio_1.GuardianEngineUioFromJSON)(json['engine']),
|
|
47
48
|
'excludedAgents': json['excludedAgents'] == null ? undefined : json['excludedAgents'],
|
|
49
|
+
'regexPatterns': json['regexPatterns'] == null ? undefined : (json['regexPatterns'].map(RegexPatternUio_1.RegexPatternUioFromJSON)),
|
|
50
|
+
'useFaker': json['useFaker'] == null ? undefined : json['useFaker'],
|
|
48
51
|
};
|
|
49
52
|
}
|
|
50
53
|
function GuardianPutRequestUioToJSON(json) {
|
|
@@ -64,5 +67,7 @@ function GuardianPutRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
64
67
|
'position': value['position'] == null ? undefined : (value['position'].map(GuardianPositionUio_1.GuardianPositionUioToJSON)),
|
|
65
68
|
'engine': (0, GuardianEngineUio_1.GuardianEngineUioToJSON)(value['engine']),
|
|
66
69
|
'excludedAgents': value['excludedAgents'],
|
|
70
|
+
'regexPatterns': value['regexPatterns'] == null ? undefined : (value['regexPatterns'].map(RegexPatternUio_1.RegexPatternUioToJSON)),
|
|
71
|
+
'useFaker': value['useFaker'],
|
|
67
72
|
};
|
|
68
73
|
}
|
|
@@ -18,7 +18,7 @@ export declare const GuardianRoleUio: {
|
|
|
18
18
|
readonly Wordcheck: "WORDCHECK";
|
|
19
19
|
readonly Intentioncheck: "INTENTIONCHECK";
|
|
20
20
|
readonly Attackcheck: "ATTACKCHECK";
|
|
21
|
-
readonly
|
|
21
|
+
readonly Anonymize: "ANONYMIZE";
|
|
22
22
|
};
|
|
23
23
|
export type GuardianRoleUio = typeof GuardianRoleUio[keyof typeof GuardianRoleUio];
|
|
24
24
|
export declare function instanceOfGuardianRoleUio(value: any): boolean;
|
|
@@ -28,7 +28,7 @@ exports.GuardianRoleUio = {
|
|
|
28
28
|
Wordcheck: 'WORDCHECK',
|
|
29
29
|
Intentioncheck: 'INTENTIONCHECK',
|
|
30
30
|
Attackcheck: 'ATTACKCHECK',
|
|
31
|
-
|
|
31
|
+
Anonymize: 'ANONYMIZE'
|
|
32
32
|
};
|
|
33
33
|
function instanceOfGuardianRoleUio(value) {
|
|
34
34
|
for (const key in exports.GuardianRoleUio) {
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { GuardianRoleUio } from './GuardianRoleUio';
|
|
13
13
|
import type { GuardianEngineUio } from './GuardianEngineUio';
|
|
14
|
+
import type { RegexPatternUio } from './RegexPatternUio';
|
|
14
15
|
import type { GuardianTypeUio } from './GuardianTypeUio';
|
|
15
16
|
import type { GuardianPositionUio } from './GuardianPositionUio';
|
|
16
17
|
/**
|
|
@@ -111,6 +112,18 @@ export interface GuardianUio {
|
|
|
111
112
|
* @memberof GuardianUio
|
|
112
113
|
*/
|
|
113
114
|
excludedAgents?: Array<string>;
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* @type {boolean}
|
|
118
|
+
* @memberof GuardianUio
|
|
119
|
+
*/
|
|
120
|
+
useFaker?: boolean;
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* @type {Array<RegexPatternUio>}
|
|
124
|
+
* @memberof GuardianUio
|
|
125
|
+
*/
|
|
126
|
+
regexPatterns?: Array<RegexPatternUio>;
|
|
114
127
|
}
|
|
115
128
|
/**
|
|
116
129
|
* Check if a given object implements the GuardianUio interface.
|
|
@@ -20,6 +20,7 @@ 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");
|
|
23
24
|
const GuardianTypeUio_1 = require("./GuardianTypeUio");
|
|
24
25
|
const GuardianPositionUio_1 = require("./GuardianPositionUio");
|
|
25
26
|
/**
|
|
@@ -63,6 +64,8 @@ function GuardianUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
63
64
|
'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
|
|
64
65
|
'thresholds': json['thresholds'] == null ? undefined : json['thresholds'],
|
|
65
66
|
'excludedAgents': json['excludedAgents'] == null ? undefined : json['excludedAgents'],
|
|
67
|
+
'useFaker': json['useFaker'] == null ? undefined : json['useFaker'],
|
|
68
|
+
'regexPatterns': json['regexPatterns'] == null ? undefined : (json['regexPatterns'].map(RegexPatternUio_1.RegexPatternUioFromJSON)),
|
|
66
69
|
};
|
|
67
70
|
}
|
|
68
71
|
function GuardianUioToJSON(json) {
|
|
@@ -88,5 +91,7 @@ function GuardianUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
88
91
|
'updatedAt': value['updatedAt'],
|
|
89
92
|
'thresholds': value['thresholds'],
|
|
90
93
|
'excludedAgents': value['excludedAgents'],
|
|
94
|
+
'useFaker': value['useFaker'],
|
|
95
|
+
'regexPatterns': value['regexPatterns'] == null ? undefined : (value['regexPatterns'].map(RegexPatternUio_1.RegexPatternUioToJSON)),
|
|
91
96
|
};
|
|
92
97
|
}
|
|
@@ -0,0 +1,93 @@
|
|
|
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 { AnonymizationStatusUio } from './AnonymizationStatusUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface MessageAnonymizationUio
|
|
17
|
+
*/
|
|
18
|
+
export interface MessageAnonymizationUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof MessageAnonymizationUio
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof MessageAnonymizationUio
|
|
29
|
+
*/
|
|
30
|
+
conversationId: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof MessageAnonymizationUio
|
|
35
|
+
*/
|
|
36
|
+
messageId: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof MessageAnonymizationUio
|
|
41
|
+
*/
|
|
42
|
+
guardianId: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof MessageAnonymizationUio
|
|
47
|
+
*/
|
|
48
|
+
originalContent: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof MessageAnonymizationUio
|
|
53
|
+
*/
|
|
54
|
+
anonymizedContent?: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof MessageAnonymizationUio
|
|
59
|
+
*/
|
|
60
|
+
deanonymizedContent?: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof MessageAnonymizationUio
|
|
65
|
+
*/
|
|
66
|
+
anonymizedReasoning?: string;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {AnonymizationStatusUio}
|
|
70
|
+
* @memberof MessageAnonymizationUio
|
|
71
|
+
*/
|
|
72
|
+
status: AnonymizationStatusUio;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {Date}
|
|
76
|
+
* @memberof MessageAnonymizationUio
|
|
77
|
+
*/
|
|
78
|
+
createdAt: Date;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {Date}
|
|
82
|
+
* @memberof MessageAnonymizationUio
|
|
83
|
+
*/
|
|
84
|
+
updatedAt: Date;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Check if a given object implements the MessageAnonymizationUio interface.
|
|
88
|
+
*/
|
|
89
|
+
export declare function instanceOfMessageAnonymizationUio(value: object): value is MessageAnonymizationUio;
|
|
90
|
+
export declare function MessageAnonymizationUioFromJSON(json: any): MessageAnonymizationUio;
|
|
91
|
+
export declare function MessageAnonymizationUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): MessageAnonymizationUio;
|
|
92
|
+
export declare function MessageAnonymizationUioToJSON(json: any): MessageAnonymizationUio;
|
|
93
|
+
export declare function MessageAnonymizationUioToJSONTyped(value?: MessageAnonymizationUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,85 @@
|
|
|
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.instanceOfMessageAnonymizationUio = instanceOfMessageAnonymizationUio;
|
|
17
|
+
exports.MessageAnonymizationUioFromJSON = MessageAnonymizationUioFromJSON;
|
|
18
|
+
exports.MessageAnonymizationUioFromJSONTyped = MessageAnonymizationUioFromJSONTyped;
|
|
19
|
+
exports.MessageAnonymizationUioToJSON = MessageAnonymizationUioToJSON;
|
|
20
|
+
exports.MessageAnonymizationUioToJSONTyped = MessageAnonymizationUioToJSONTyped;
|
|
21
|
+
const AnonymizationStatusUio_1 = require("./AnonymizationStatusUio");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the MessageAnonymizationUio interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfMessageAnonymizationUio(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('conversationId' in value) || value['conversationId'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('messageId' in value) || value['messageId'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('guardianId' in value) || value['guardianId'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('originalContent' in value) || value['originalContent'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
function MessageAnonymizationUioFromJSON(json) {
|
|
45
|
+
return MessageAnonymizationUioFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function MessageAnonymizationUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'id': json['id'],
|
|
53
|
+
'conversationId': json['conversationId'],
|
|
54
|
+
'messageId': json['messageId'],
|
|
55
|
+
'guardianId': json['guardianId'],
|
|
56
|
+
'originalContent': json['originalContent'],
|
|
57
|
+
'anonymizedContent': json['anonymizedContent'] == null ? undefined : json['anonymizedContent'],
|
|
58
|
+
'deanonymizedContent': json['deanonymizedContent'] == null ? undefined : json['deanonymizedContent'],
|
|
59
|
+
'anonymizedReasoning': json['anonymizedReasoning'] == null ? undefined : json['anonymizedReasoning'],
|
|
60
|
+
'status': (0, AnonymizationStatusUio_1.AnonymizationStatusUioFromJSON)(json['status']),
|
|
61
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
62
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
function MessageAnonymizationUioToJSON(json) {
|
|
66
|
+
return MessageAnonymizationUioToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
function MessageAnonymizationUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
'id': value['id'],
|
|
74
|
+
'conversationId': value['conversationId'],
|
|
75
|
+
'messageId': value['messageId'],
|
|
76
|
+
'guardianId': value['guardianId'],
|
|
77
|
+
'originalContent': value['originalContent'],
|
|
78
|
+
'anonymizedContent': value['anonymizedContent'],
|
|
79
|
+
'deanonymizedContent': value['deanonymizedContent'],
|
|
80
|
+
'anonymizedReasoning': value['anonymizedReasoning'],
|
|
81
|
+
'status': (0, AnonymizationStatusUio_1.AnonymizationStatusUioToJSON)(value['status']),
|
|
82
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
83
|
+
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
84
|
+
};
|
|
85
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brain-client
|
|
3
|
+
* Api ands models for brain-app and brain-app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface 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;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* brain-client
|
|
6
|
+
* Api ands models for brain-app and brain-app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.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
|
+
}
|