@breign/client 1.0.127 → 1.0.129

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.
Files changed (40) hide show
  1. package/dist/apis/ConversationsApi.d.ts +55 -1
  2. package/dist/apis/ConversationsApi.js +127 -0
  3. package/dist/apis/GuardiansApi.d.ts +15 -1
  4. package/dist/apis/GuardiansApi.js +34 -0
  5. package/dist/models/AgentPatchUio.d.ts +7 -0
  6. package/dist/models/AgentPatchUio.js +3 -0
  7. package/dist/models/AgentSandboxConfigurationUio.d.ts +58 -0
  8. package/dist/models/AgentSandboxConfigurationUio.js +62 -0
  9. package/dist/models/AgentSandboxNetworkConfigurationUio.d.ts +57 -0
  10. package/dist/models/AgentSandboxNetworkConfigurationUio.js +65 -0
  11. package/dist/models/AgentUio.d.ts +7 -0
  12. package/dist/models/AgentUio.js +3 -0
  13. package/dist/models/AnonymizationStatusUio.d.ts +27 -0
  14. package/dist/models/AnonymizationStatusUio.js +53 -0
  15. package/dist/models/AnonymizeRequestUio.d.ts +32 -0
  16. package/dist/models/AnonymizeRequestUio.js +50 -0
  17. package/dist/models/AnonymizeResponseUio.d.ts +32 -0
  18. package/dist/models/AnonymizeResponseUio.js +48 -0
  19. package/dist/models/ChatMessageUio.d.ts +12 -0
  20. package/dist/models/ChatMessageUio.js +4 -0
  21. package/dist/models/ConversationMessagesInnerUio.d.ts +6 -0
  22. package/dist/models/ConversationMessagesInnerUio.js +2 -0
  23. package/dist/models/GuardianPutRequestUio.d.ts +13 -0
  24. package/dist/models/GuardianPutRequestUio.js +5 -0
  25. package/dist/models/GuardianRoleUio.d.ts +1 -1
  26. package/dist/models/GuardianRoleUio.js +1 -1
  27. package/dist/models/GuardianUio.d.ts +13 -0
  28. package/dist/models/GuardianUio.js +5 -0
  29. package/dist/models/MessageAnonymizationUio.d.ts +93 -0
  30. package/dist/models/MessageAnonymizationUio.js +85 -0
  31. package/dist/models/RegexPatternUio.d.ts +56 -0
  32. package/dist/models/RegexPatternUio.js +66 -0
  33. package/dist/models/WorkspaceFileContentUio.d.ts +62 -0
  34. package/dist/models/WorkspaceFileContentUio.js +70 -0
  35. package/dist/models/WorkspaceFileEntryUio.d.ts +56 -0
  36. package/dist/models/WorkspaceFileEntryUio.js +66 -0
  37. package/dist/models/index.d.ts +9 -0
  38. package/dist/models/index.js +9 -0
  39. package/dist/openapi.json +494 -1
  40. package/package.json +1 -1
@@ -29,6 +29,7 @@ const EngineUio_1 = require("./EngineUio");
29
29
  const PromptInitUio_1 = require("./PromptInitUio");
30
30
  const SpeechToTextConfigUio_1 = require("./SpeechToTextConfigUio");
31
31
  const AgentMemoryConfigurationUio_1 = require("./AgentMemoryConfigurationUio");
32
+ const AgentSandboxConfigurationUio_1 = require("./AgentSandboxConfigurationUio");
32
33
  const AgentTypeUio_1 = require("./AgentTypeUio");
33
34
  /**
34
35
  * @export
@@ -97,6 +98,7 @@ function AgentUioFromJSONTyped(json, ignoreDiscriminator) {
97
98
  'memoryConfiguration': json['memoryConfiguration'] == null ? undefined : (0, AgentMemoryConfigurationUio_1.AgentMemoryConfigurationUioFromJSON)(json['memoryConfiguration']),
98
99
  'contextualKnowledgeConversation': json['contextualKnowledgeConversation'] == null ? undefined : (0, ContextualKnowledgeConversationUio_1.ContextualKnowledgeConversationUioFromJSON)(json['contextualKnowledgeConversation']),
99
100
  'speechToText': json['speechToText'] == null ? undefined : (0, SpeechToTextConfigUio_1.SpeechToTextConfigUioFromJSON)(json['speechToText']),
101
+ 'sandboxConfiguration': json['sandboxConfiguration'] == null ? undefined : (0, AgentSandboxConfigurationUio_1.AgentSandboxConfigurationUioFromJSON)(json['sandboxConfiguration']),
100
102
  'creator': json['creator'] == null ? undefined : (0, AgentCreatorUio_1.AgentCreatorUioFromJSON)(json['creator']),
101
103
  'engineSource': json['engineSource'] == null ? undefined : json['engineSource'],
102
104
  'providerSource': json['providerSource'] == null ? undefined : json['providerSource'],
@@ -138,6 +140,7 @@ function AgentUioToJSONTyped(value, ignoreDiscriminator = false) {
138
140
  'memoryConfiguration': (0, AgentMemoryConfigurationUio_1.AgentMemoryConfigurationUioToJSON)(value['memoryConfiguration']),
139
141
  'contextualKnowledgeConversation': (0, ContextualKnowledgeConversationUio_1.ContextualKnowledgeConversationUioToJSON)(value['contextualKnowledgeConversation']),
140
142
  'speechToText': (0, SpeechToTextConfigUio_1.SpeechToTextConfigUioToJSON)(value['speechToText']),
143
+ 'sandboxConfiguration': (0, AgentSandboxConfigurationUio_1.AgentSandboxConfigurationUioToJSON)(value['sandboxConfiguration']),
141
144
  'creator': (0, AgentCreatorUio_1.AgentCreatorUioToJSON)(value['creator']),
142
145
  'engineSource': value['engineSource'],
143
146
  'providerSource': value['providerSource'],
@@ -0,0 +1,27 @@
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 AnonymizationStatusUio: {
17
+ readonly Pending: "pending";
18
+ readonly Anonymized: "anonymized";
19
+ readonly Deanonymized: "deanonymized";
20
+ readonly Error: "error";
21
+ };
22
+ export type AnonymizationStatusUio = typeof AnonymizationStatusUio[keyof typeof AnonymizationStatusUio];
23
+ export declare function instanceOfAnonymizationStatusUio(value: any): boolean;
24
+ export declare function AnonymizationStatusUioFromJSON(json: any): AnonymizationStatusUio;
25
+ export declare function AnonymizationStatusUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnonymizationStatusUio;
26
+ export declare function AnonymizationStatusUioToJSON(value?: AnonymizationStatusUio | null): any;
27
+ export declare function AnonymizationStatusUioToJSONTyped(value: any, ignoreDiscriminator: boolean): AnonymizationStatusUio;
@@ -0,0 +1,53 @@
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.AnonymizationStatusUio = void 0;
17
+ exports.instanceOfAnonymizationStatusUio = instanceOfAnonymizationStatusUio;
18
+ exports.AnonymizationStatusUioFromJSON = AnonymizationStatusUioFromJSON;
19
+ exports.AnonymizationStatusUioFromJSONTyped = AnonymizationStatusUioFromJSONTyped;
20
+ exports.AnonymizationStatusUioToJSON = AnonymizationStatusUioToJSON;
21
+ exports.AnonymizationStatusUioToJSONTyped = AnonymizationStatusUioToJSONTyped;
22
+ /**
23
+ *
24
+ * @export
25
+ */
26
+ exports.AnonymizationStatusUio = {
27
+ Pending: 'pending',
28
+ Anonymized: 'anonymized',
29
+ Deanonymized: 'deanonymized',
30
+ Error: 'error'
31
+ };
32
+ function instanceOfAnonymizationStatusUio(value) {
33
+ for (const key in exports.AnonymizationStatusUio) {
34
+ if (Object.prototype.hasOwnProperty.call(exports.AnonymizationStatusUio, key)) {
35
+ if (exports.AnonymizationStatusUio[key] === value) {
36
+ return true;
37
+ }
38
+ }
39
+ }
40
+ return false;
41
+ }
42
+ function AnonymizationStatusUioFromJSON(json) {
43
+ return AnonymizationStatusUioFromJSONTyped(json, false);
44
+ }
45
+ function AnonymizationStatusUioFromJSONTyped(json, ignoreDiscriminator) {
46
+ return json;
47
+ }
48
+ function AnonymizationStatusUioToJSON(value) {
49
+ return value;
50
+ }
51
+ function AnonymizationStatusUioToJSONTyped(value, ignoreDiscriminator) {
52
+ return value;
53
+ }
@@ -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 AnonymizeRequestUio
16
+ */
17
+ export interface AnonymizeRequestUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AnonymizeRequestUio
22
+ */
23
+ prompt: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the AnonymizeRequestUio interface.
27
+ */
28
+ export declare function instanceOfAnonymizeRequestUio(value: object): value is AnonymizeRequestUio;
29
+ export declare function AnonymizeRequestUioFromJSON(json: any): AnonymizeRequestUio;
30
+ export declare function AnonymizeRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnonymizeRequestUio;
31
+ export declare function AnonymizeRequestUioToJSON(json: any): AnonymizeRequestUio;
32
+ export declare function AnonymizeRequestUioToJSONTyped(value?: AnonymizeRequestUio | null, ignoreDiscriminator?: boolean): any;
@@ -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
+ }
@@ -53,6 +53,12 @@ export interface ChatMessageUio {
53
53
  * @memberof ChatMessageUio
54
54
  */
55
55
  askConfirmation?: boolean;
56
+ /**
57
+ *
58
+ * @type {string}
59
+ * @memberof ChatMessageUio
60
+ */
61
+ anonymizedContent?: string;
56
62
  /**
57
63
  *
58
64
  * @type {string}
@@ -71,6 +77,12 @@ export interface ChatMessageUio {
71
77
  * @memberof ChatMessageUio
72
78
  */
73
79
  suggestions?: Array<SuggestionUio>;
80
+ /**
81
+ * Workspace paths written or deleted during the turn that produced this message. Granularity is the turn, not the tool call. Only the last state of a file is kept, so the file reads as it is now, not as it was at this message.
82
+ * @type {Array<string>}
83
+ * @memberof ChatMessageUio
84
+ */
85
+ workspaceFiles?: Array<string>;
74
86
  /**
75
87
  *
76
88
  * @type {string}
@@ -61,9 +61,11 @@ 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)),
68
+ 'workspaceFiles': json['workspaceFiles'] == null ? undefined : json['workspaceFiles'],
67
69
  'flowNode': json['flowNode'] == null ? undefined : json['flowNode'],
68
70
  'flowNodeRequirementsChecked': json['flowNodeRequirementsChecked'] == null ? undefined : json['flowNodeRequirementsChecked'],
69
71
  'flowNodeRequirementsMet': json['flowNodeRequirementsMet'] == null ? undefined : json['flowNodeRequirementsMet'],
@@ -91,9 +93,11 @@ function ChatMessageUioToJSONTyped(value, ignoreDiscriminator = false) {
91
93
  'content': value['content'],
92
94
  'reaction': value['reaction'],
93
95
  'askConfirmation': value['askConfirmation'],
96
+ 'anonymizedContent': value['anonymizedContent'],
94
97
  'confirmationLink': value['confirmationLink'],
95
98
  'toolResults': value['toolResults'] == null ? undefined : (value['toolResults'].map(ToolResultsUio_1.ToolResultsUioToJSON)),
96
99
  'suggestions': value['suggestions'] == null ? undefined : (value['suggestions'].map(SuggestionUio_1.SuggestionUioToJSON)),
100
+ 'workspaceFiles': value['workspaceFiles'],
97
101
  'flowNode': value['flowNode'],
98
102
  'flowNodeRequirementsChecked': value['flowNodeRequirementsChecked'],
99
103
  'flowNodeRequirementsMet': value['flowNodeRequirementsMet'],
@@ -82,6 +82,12 @@ export interface ConversationMessagesInnerUio {
82
82
  * @memberof ConversationMessagesInnerUio
83
83
  */
84
84
  toolResults?: Array<ToolResultsUio>;
85
+ /**
86
+ *
87
+ * @type {Array<string>}
88
+ * @memberof ConversationMessagesInnerUio
89
+ */
90
+ workspaceFiles?: Array<string>;
85
91
  }
86
92
  /**
87
93
  * Check if a given object implements the ConversationMessagesInnerUio interface.
@@ -55,6 +55,7 @@ function ConversationMessagesInnerUioFromJSONTyped(json, ignoreDiscriminator) {
55
55
  'audio': json['audio'] == null ? undefined : (json['audio'].map(ChatMessageAudioInnerUio_1.ChatMessageAudioInnerUioFromJSON)),
56
56
  'usage': json['usage'] == null ? undefined : (0, TokenUsageUio_1.TokenUsageUioFromJSON)(json['usage']),
57
57
  'toolResults': json['toolResults'] == null ? undefined : (json['toolResults'].map(ToolResultsUio_1.ToolResultsUioFromJSON)),
58
+ 'workspaceFiles': json['workspaceFiles'] == null ? undefined : json['workspaceFiles'],
58
59
  };
59
60
  }
60
61
  function ConversationMessagesInnerUioToJSON(json) {
@@ -75,5 +76,6 @@ function ConversationMessagesInnerUioToJSONTyped(value, ignoreDiscriminator = fa
75
76
  'audio': value['audio'] == null ? undefined : (value['audio'].map(ChatMessageAudioInnerUio_1.ChatMessageAudioInnerUioToJSON)),
76
77
  'usage': (0, TokenUsageUio_1.TokenUsageUioToJSON)(value['usage']),
77
78
  'toolResults': value['toolResults'] == null ? undefined : (value['toolResults'].map(ToolResultsUio_1.ToolResultsUioToJSON)),
79
+ 'workspaceFiles': value['workspaceFiles'],
78
80
  };
79
81
  }
@@ -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 Anonimize: "ANONIMIZE";
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
- Anonimize: 'ANONIMIZE'
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
+ }