@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
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AttachmentCreateRequestUio, AttachmentCreateResponseUio, AttachmentDetailsResponseUio, AttachmentProcessedRequestUio, BodyWithMessageUio, ContextLocationRequestUio, ContextUio, ConversationSummaryUio, CreateCustomVariable200ResponseUio, UpdateConversationTitleRequestUio } from '../models/index';
13
+ import type { AttachmentCreateRequestUio, AttachmentCreateResponseUio, AttachmentDetailsResponseUio, AttachmentProcessedRequestUio, BodyWithMessageUio, ContextLocationRequestUio, ContextUio, ConversationSummaryUio, CreateCustomVariable200ResponseUio, MessageAnonymizationUio, UpdateConversationTitleRequestUio, WorkspaceFileContentUio, WorkspaceFileEntryUio } from '../models/index';
14
14
  export interface ArchiveConversationByIdRequest {
15
15
  conversationId: string;
16
16
  }
@@ -35,6 +35,13 @@ export interface DeleteContextCustomVariableKeyRequest {
35
35
  conversationId: string;
36
36
  key: string;
37
37
  }
38
+ export interface DeleteConversationWorkspaceFileRequest {
39
+ conversationId: string;
40
+ path: string;
41
+ }
42
+ export interface GetAnonymizedMessagesRequest {
43
+ conversationId: string;
44
+ }
38
45
  export interface GetAttachmentRequest {
39
46
  conversationId: string;
40
47
  attachmentId: string;
@@ -45,6 +52,10 @@ export interface GetContextRequest {
45
52
  export interface GetContextCustomVariableRequest {
46
53
  conversationId: string;
47
54
  }
55
+ export interface GetConversationWorkspaceFileContentRequest {
56
+ conversationId: string;
57
+ path: string;
58
+ }
48
59
  export interface GetConversationsRequest {
49
60
  providerSource: GetConversationsProviderSourceEnum;
50
61
  organizationId?: string;
@@ -53,6 +64,9 @@ export interface GetConversationsRequest {
53
64
  period?: GetConversationsPeriodEnum;
54
65
  messageReaction?: GetConversationsMessageReactionEnum;
55
66
  }
67
+ export interface ListConversationWorkspaceFilesRequest {
68
+ conversationId: string;
69
+ }
56
70
  export interface MarkAttachmentProcessedRequest {
57
71
  conversationId: string;
58
72
  attachmentId: string;
@@ -140,6 +154,26 @@ export declare class ConversationsApi extends runtime.BaseAPI {
140
154
  * Delete a custom variable key from the context of a conversation
141
155
  */
142
156
  deleteContextCustomVariableKey(conversationId: string, key: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
157
+ /**
158
+ * Manual purge by the user. Deletes the path and, when it is a directory, everything below it. Any running sandbox session for this conversation is discarded at the same time, so the agent cannot write the file back from a stale in-memory copy.
159
+ * Delete a file from a conversation workspace
160
+ */
161
+ deleteConversationWorkspaceFileRaw(requestParameters: DeleteConversationWorkspaceFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
162
+ /**
163
+ * Manual purge by the user. Deletes the path and, when it is a directory, everything below it. Any running sandbox session for this conversation is discarded at the same time, so the agent cannot write the file back from a stale in-memory copy.
164
+ * Delete a file from a conversation workspace
165
+ */
166
+ deleteConversationWorkspaceFile(conversationId: string, path: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
167
+ /**
168
+ * Retrieve the list of anonymized messages for a given conversation.
169
+ * Get the anonymized messages of a conversation
170
+ */
171
+ getAnonymizedMessagesRaw(requestParameters: GetAnonymizedMessagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<MessageAnonymizationUio>>>;
172
+ /**
173
+ * Retrieve the list of anonymized messages for a given conversation.
174
+ * Get the anonymized messages of a conversation
175
+ */
176
+ getAnonymizedMessages(conversationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<MessageAnonymizationUio>>;
143
177
  /**
144
178
  * Get a specific attachment by its ID from the context of a conversation.
145
179
  * Retrieve an attachment from a conversation context
@@ -174,6 +208,16 @@ export declare class ConversationsApi extends runtime.BaseAPI {
174
208
  getContextCustomVariable(conversationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
175
209
  [key: string]: string;
176
210
  }>;
211
+ /**
212
+ * Returns the CURRENT state of the file, read straight from the store. There is no versioning, so consulting an older message still returns the file as it is now. The content is always UTF-8 text.
213
+ * Read the content of a conversation workspace file
214
+ */
215
+ getConversationWorkspaceFileContentRaw(requestParameters: GetConversationWorkspaceFileContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkspaceFileContentUio>>;
216
+ /**
217
+ * Returns the CURRENT state of the file, read straight from the store. There is no versioning, so consulting an older message still returns the file as it is now. The content is always UTF-8 text.
218
+ * Read the content of a conversation workspace file
219
+ */
220
+ getConversationWorkspaceFileContent(conversationId: string, path: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkspaceFileContentUio>;
177
221
  /**
178
222
  * Retrieve a list of conversations for the authenticated user.
179
223
  * List conversations
@@ -184,6 +228,16 @@ export declare class ConversationsApi extends runtime.BaseAPI {
184
228
  * List conversations
185
229
  */
186
230
  getConversations(providerSource: GetConversationsProviderSourceEnum, organizationId?: string, page?: number, limit?: number, period?: GetConversationsPeriodEnum, messageReaction?: GetConversationsMessageReactionEnum, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ConversationSummaryUio>>;
231
+ /**
232
+ * Reads the persisted workspace of the conversation directly from the store — no sandbox is started. The content is never returned here; use the content endpoint for that. Files whose name starts with a dot are persisted but hidden from this listing. The current usage is returned in the X-Workspace-File-Count and X-Workspace-Total-Bytes headers.
233
+ * List the files of a conversation workspace
234
+ */
235
+ listConversationWorkspaceFilesRaw(requestParameters: ListConversationWorkspaceFilesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<WorkspaceFileEntryUio>>>;
236
+ /**
237
+ * Reads the persisted workspace of the conversation directly from the store — no sandbox is started. The content is never returned here; use the content endpoint for that. Files whose name starts with a dot are persisted but hidden from this listing. The current usage is returned in the X-Workspace-File-Count and X-Workspace-Total-Bytes headers.
238
+ * List the files of a conversation workspace
239
+ */
240
+ listConversationWorkspaceFiles(conversationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<WorkspaceFileEntryUio>>;
187
241
  /**
188
242
  * Internal callback endpoint called when attachment processing is complete. Réservé au service de documents : tout autre appelant reçoit un 403. L\'attachment doit être en état `PROCESSING`.
189
243
  * Mark a conversation attachment as processed
@@ -239,6 +239,69 @@ class ConversationsApi extends runtime.BaseAPI {
239
239
  async deleteContextCustomVariableKey(conversationId, key, initOverrides) {
240
240
  await this.deleteContextCustomVariableKeyRaw({ conversationId: conversationId, key: key }, initOverrides);
241
241
  }
242
+ /**
243
+ * Manual purge by the user. Deletes the path and, when it is a directory, everything below it. Any running sandbox session for this conversation is discarded at the same time, so the agent cannot write the file back from a stale in-memory copy.
244
+ * Delete a file from a conversation workspace
245
+ */
246
+ async deleteConversationWorkspaceFileRaw(requestParameters, initOverrides) {
247
+ if (requestParameters['conversationId'] == null) {
248
+ throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling deleteConversationWorkspaceFile().');
249
+ }
250
+ if (requestParameters['path'] == null) {
251
+ throw new runtime.RequiredError('path', 'Required parameter "path" was null or undefined when calling deleteConversationWorkspaceFile().');
252
+ }
253
+ const queryParameters = {};
254
+ if (requestParameters['path'] != null) {
255
+ queryParameters['path'] = requestParameters['path'];
256
+ }
257
+ const headerParameters = {};
258
+ if (this.configuration && this.configuration.apiKey) {
259
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
260
+ }
261
+ const response = await this.request({
262
+ path: `/conversations/{conversationId}/workspace/files`.replace(`{${"conversationId"}}`, encodeURIComponent(String(requestParameters['conversationId']))),
263
+ method: 'DELETE',
264
+ headers: headerParameters,
265
+ query: queryParameters,
266
+ }, initOverrides);
267
+ return new runtime.VoidApiResponse(response);
268
+ }
269
+ /**
270
+ * Manual purge by the user. Deletes the path and, when it is a directory, everything below it. Any running sandbox session for this conversation is discarded at the same time, so the agent cannot write the file back from a stale in-memory copy.
271
+ * Delete a file from a conversation workspace
272
+ */
273
+ async deleteConversationWorkspaceFile(conversationId, path, initOverrides) {
274
+ await this.deleteConversationWorkspaceFileRaw({ conversationId: conversationId, path: path }, initOverrides);
275
+ }
276
+ /**
277
+ * Retrieve the list of anonymized messages for a given conversation.
278
+ * Get the anonymized messages of a conversation
279
+ */
280
+ async getAnonymizedMessagesRaw(requestParameters, initOverrides) {
281
+ if (requestParameters['conversationId'] == null) {
282
+ throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling getAnonymizedMessages().');
283
+ }
284
+ const queryParameters = {};
285
+ const headerParameters = {};
286
+ if (this.configuration && this.configuration.apiKey) {
287
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
288
+ }
289
+ const response = await this.request({
290
+ path: `/conversations/{conversationId}/anonymization`.replace(`{${"conversationId"}}`, encodeURIComponent(String(requestParameters['conversationId']))),
291
+ method: 'GET',
292
+ headers: headerParameters,
293
+ query: queryParameters,
294
+ }, initOverrides);
295
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.MessageAnonymizationUioFromJSON));
296
+ }
297
+ /**
298
+ * Retrieve the list of anonymized messages for a given conversation.
299
+ * Get the anonymized messages of a conversation
300
+ */
301
+ async getAnonymizedMessages(conversationId, initOverrides) {
302
+ const response = await this.getAnonymizedMessagesRaw({ conversationId: conversationId }, initOverrides);
303
+ return await response.value();
304
+ }
242
305
  /**
243
306
  * Get a specific attachment by its ID from the context of a conversation.
244
307
  * Retrieve an attachment from a conversation context
@@ -329,6 +392,41 @@ class ConversationsApi extends runtime.BaseAPI {
329
392
  const response = await this.getContextCustomVariableRaw({ conversationId: conversationId }, initOverrides);
330
393
  return await response.value();
331
394
  }
395
+ /**
396
+ * Returns the CURRENT state of the file, read straight from the store. There is no versioning, so consulting an older message still returns the file as it is now. The content is always UTF-8 text.
397
+ * Read the content of a conversation workspace file
398
+ */
399
+ async getConversationWorkspaceFileContentRaw(requestParameters, initOverrides) {
400
+ if (requestParameters['conversationId'] == null) {
401
+ throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling getConversationWorkspaceFileContent().');
402
+ }
403
+ if (requestParameters['path'] == null) {
404
+ throw new runtime.RequiredError('path', 'Required parameter "path" was null or undefined when calling getConversationWorkspaceFileContent().');
405
+ }
406
+ const queryParameters = {};
407
+ if (requestParameters['path'] != null) {
408
+ queryParameters['path'] = requestParameters['path'];
409
+ }
410
+ const headerParameters = {};
411
+ if (this.configuration && this.configuration.apiKey) {
412
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
413
+ }
414
+ const response = await this.request({
415
+ path: `/conversations/{conversationId}/workspace/files/content`.replace(`{${"conversationId"}}`, encodeURIComponent(String(requestParameters['conversationId']))),
416
+ method: 'GET',
417
+ headers: headerParameters,
418
+ query: queryParameters,
419
+ }, initOverrides);
420
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WorkspaceFileContentUioFromJSON)(jsonValue));
421
+ }
422
+ /**
423
+ * Returns the CURRENT state of the file, read straight from the store. There is no versioning, so consulting an older message still returns the file as it is now. The content is always UTF-8 text.
424
+ * Read the content of a conversation workspace file
425
+ */
426
+ async getConversationWorkspaceFileContent(conversationId, path, initOverrides) {
427
+ const response = await this.getConversationWorkspaceFileContentRaw({ conversationId: conversationId, path: path }, initOverrides);
428
+ return await response.value();
429
+ }
332
430
  /**
333
431
  * Retrieve a list of conversations for the authenticated user.
334
432
  * List conversations
@@ -376,6 +474,35 @@ class ConversationsApi extends runtime.BaseAPI {
376
474
  const response = await this.getConversationsRaw({ providerSource: providerSource, organizationId: organizationId, page: page, limit: limit, period: period, messageReaction: messageReaction }, initOverrides);
377
475
  return await response.value();
378
476
  }
477
+ /**
478
+ * Reads the persisted workspace of the conversation directly from the store — no sandbox is started. The content is never returned here; use the content endpoint for that. Files whose name starts with a dot are persisted but hidden from this listing. The current usage is returned in the X-Workspace-File-Count and X-Workspace-Total-Bytes headers.
479
+ * List the files of a conversation workspace
480
+ */
481
+ async listConversationWorkspaceFilesRaw(requestParameters, initOverrides) {
482
+ if (requestParameters['conversationId'] == null) {
483
+ throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling listConversationWorkspaceFiles().');
484
+ }
485
+ const queryParameters = {};
486
+ const headerParameters = {};
487
+ if (this.configuration && this.configuration.apiKey) {
488
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
489
+ }
490
+ const response = await this.request({
491
+ path: `/conversations/{conversationId}/workspace/files`.replace(`{${"conversationId"}}`, encodeURIComponent(String(requestParameters['conversationId']))),
492
+ method: 'GET',
493
+ headers: headerParameters,
494
+ query: queryParameters,
495
+ }, initOverrides);
496
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.WorkspaceFileEntryUioFromJSON));
497
+ }
498
+ /**
499
+ * Reads the persisted workspace of the conversation directly from the store — no sandbox is started. The content is never returned here; use the content endpoint for that. Files whose name starts with a dot are persisted but hidden from this listing. The current usage is returned in the X-Workspace-File-Count and X-Workspace-Total-Bytes headers.
500
+ * List the files of a conversation workspace
501
+ */
502
+ async listConversationWorkspaceFiles(conversationId, initOverrides) {
503
+ const response = await this.listConversationWorkspaceFilesRaw({ conversationId: conversationId }, initOverrides);
504
+ return await response.value();
505
+ }
379
506
  /**
380
507
  * Internal callback endpoint called when attachment processing is complete. Réservé au service de documents : tout autre appelant reçoit un 403. L\'attachment doit être en état `PROCESSING`.
381
508
  * Mark a conversation attachment as processed
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { BodyWithMessageUio, GuardianCreateRequestUio, GuardianPutRequestUio, GuardianUio } from '../models/index';
13
+ import type { AnonymizeRequestUio, AnonymizeResponseUio, BodyWithMessageUio, GuardianCreateRequestUio, GuardianPutRequestUio, GuardianUio } from '../models/index';
14
14
  export interface CreateGuardianForAgentRequest {
15
15
  agentId: string;
16
16
  guardianCreateRequestUio: GuardianCreateRequestUio;
@@ -31,6 +31,10 @@ export interface GetGuardiansForAgentRequest {
31
31
  export interface GetGuardiansForOrganizationRequest {
32
32
  organizationId: string;
33
33
  }
34
+ export interface TestAnonymizeRequest {
35
+ guardianId: string;
36
+ anonymizeRequestUio: AnonymizeRequestUio;
37
+ }
34
38
  export interface UpdateExcludedAgentsRequest {
35
39
  guardianId: string;
36
40
  requestBody: Array<string>;
@@ -99,6 +103,16 @@ export declare class GuardiansApi extends runtime.BaseAPI {
99
103
  * Get all guardians for an organization
100
104
  */
101
105
  getGuardiansForOrganization(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<GuardianUio>>;
106
+ /**
107
+ * Test the Anonymization of a guardian
108
+ * Test the Anonymization of a guardian
109
+ */
110
+ testAnonymizeRaw(requestParameters: TestAnonymizeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AnonymizeResponseUio>>;
111
+ /**
112
+ * Test the Anonymization of a guardian
113
+ * Test the Anonymization of a guardian
114
+ */
115
+ testAnonymize(guardianId: string, anonymizeRequestUio: AnonymizeRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AnonymizeResponseUio>;
102
116
  /**
103
117
  * Updates the excluded agents for a guardian
104
118
  * Update excluded agents for a guardian
@@ -232,6 +232,40 @@ class GuardiansApi extends runtime.BaseAPI {
232
232
  const response = await this.getGuardiansForOrganizationRaw({ organizationId: organizationId }, initOverrides);
233
233
  return await response.value();
234
234
  }
235
+ /**
236
+ * Test the Anonymization of a guardian
237
+ * Test the Anonymization of a guardian
238
+ */
239
+ async testAnonymizeRaw(requestParameters, initOverrides) {
240
+ if (requestParameters['guardianId'] == null) {
241
+ throw new runtime.RequiredError('guardianId', 'Required parameter "guardianId" was null or undefined when calling testAnonymize().');
242
+ }
243
+ if (requestParameters['anonymizeRequestUio'] == null) {
244
+ throw new runtime.RequiredError('anonymizeRequestUio', 'Required parameter "anonymizeRequestUio" was null or undefined when calling testAnonymize().');
245
+ }
246
+ const queryParameters = {};
247
+ const headerParameters = {};
248
+ headerParameters['Content-Type'] = 'application/json';
249
+ if (this.configuration && this.configuration.apiKey) {
250
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
251
+ }
252
+ const response = await this.request({
253
+ path: `/guardians/{guardianId}/anonymize`.replace(`{${"guardianId"}}`, encodeURIComponent(String(requestParameters['guardianId']))),
254
+ method: 'POST',
255
+ headers: headerParameters,
256
+ query: queryParameters,
257
+ body: (0, index_1.AnonymizeRequestUioToJSON)(requestParameters['anonymizeRequestUio']),
258
+ }, initOverrides);
259
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AnonymizeResponseUioFromJSON)(jsonValue));
260
+ }
261
+ /**
262
+ * Test the Anonymization of a guardian
263
+ * Test the Anonymization of a guardian
264
+ */
265
+ async testAnonymize(guardianId, anonymizeRequestUio, initOverrides) {
266
+ const response = await this.testAnonymizeRaw({ guardianId: guardianId, anonymizeRequestUio: anonymizeRequestUio }, initOverrides);
267
+ return await response.value();
268
+ }
235
269
  /**
236
270
  * Updates the excluded agents for a guardian
237
271
  * Update excluded agents for a guardian
@@ -16,6 +16,7 @@ import type { PromptInitUio } from './PromptInitUio';
16
16
  import type { SpeechToTextConfigUio } from './SpeechToTextConfigUio';
17
17
  import type { AgentMemoryConfigurationUio } from './AgentMemoryConfigurationUio';
18
18
  import type { AgentPatchEngineUio } from './AgentPatchEngineUio';
19
+ import type { AgentSandboxConfigurationUio } from './AgentSandboxConfigurationUio';
19
20
  import type { AgentTypeUio } from './AgentTypeUio';
20
21
  /**
21
22
  *
@@ -171,6 +172,12 @@ export interface AgentPatchUio {
171
172
  * @memberof AgentPatchUio
172
173
  */
173
174
  speechToText?: SpeechToTextConfigUio;
175
+ /**
176
+ *
177
+ * @type {AgentSandboxConfigurationUio}
178
+ * @memberof AgentPatchUio
179
+ */
180
+ sandboxConfiguration?: AgentSandboxConfigurationUio | null;
174
181
  }
175
182
  /**
176
183
  * Check if a given object implements the AgentPatchUio interface.
@@ -25,6 +25,7 @@ const PromptInitUio_1 = require("./PromptInitUio");
25
25
  const SpeechToTextConfigUio_1 = require("./SpeechToTextConfigUio");
26
26
  const AgentMemoryConfigurationUio_1 = require("./AgentMemoryConfigurationUio");
27
27
  const AgentPatchEngineUio_1 = require("./AgentPatchEngineUio");
28
+ const AgentSandboxConfigurationUio_1 = require("./AgentSandboxConfigurationUio");
28
29
  const AgentTypeUio_1 = require("./AgentTypeUio");
29
30
  /**
30
31
  * Check if a given object implements the AgentPatchUio interface.
@@ -64,6 +65,7 @@ function AgentPatchUioFromJSONTyped(json, ignoreDiscriminator) {
64
65
  'memoryConfiguration': json['memoryConfiguration'] == null ? undefined : (0, AgentMemoryConfigurationUio_1.AgentMemoryConfigurationUioFromJSON)(json['memoryConfiguration']),
65
66
  'contextualKnowledgeConversation': json['contextualKnowledgeConversation'] == null ? undefined : (0, ContextualKnowledgeConversationUio_1.ContextualKnowledgeConversationUioFromJSON)(json['contextualKnowledgeConversation']),
66
67
  'speechToText': json['speechToText'] == null ? undefined : (0, SpeechToTextConfigUio_1.SpeechToTextConfigUioFromJSON)(json['speechToText']),
68
+ 'sandboxConfiguration': json['sandboxConfiguration'] == null ? undefined : (0, AgentSandboxConfigurationUio_1.AgentSandboxConfigurationUioFromJSON)(json['sandboxConfiguration']),
67
69
  };
68
70
  }
69
71
  function AgentPatchUioToJSON(json) {
@@ -98,5 +100,6 @@ function AgentPatchUioToJSONTyped(value, ignoreDiscriminator = false) {
98
100
  'memoryConfiguration': (0, AgentMemoryConfigurationUio_1.AgentMemoryConfigurationUioToJSON)(value['memoryConfiguration']),
99
101
  'contextualKnowledgeConversation': (0, ContextualKnowledgeConversationUio_1.ContextualKnowledgeConversationUioToJSON)(value['contextualKnowledgeConversation']),
100
102
  'speechToText': (0, SpeechToTextConfigUio_1.SpeechToTextConfigUioToJSON)(value['speechToText']),
103
+ 'sandboxConfiguration': (0, AgentSandboxConfigurationUio_1.AgentSandboxConfigurationUioToJSON)(value['sandboxConfiguration']),
101
104
  };
102
105
  }
@@ -0,0 +1,58 @@
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 { AgentSandboxNetworkConfigurationUio } from './AgentSandboxNetworkConfigurationUio';
13
+ /**
14
+ * Per-agent activation of the bash sandbox and of its two risky capabilities. Three separate switches because the three risk surfaces are unrelated. The server configuration can only narrow this: an agent may enable, never widen.
15
+ * @export
16
+ * @interface AgentSandboxConfigurationUio
17
+ */
18
+ export interface AgentSandboxConfigurationUio {
19
+ /**
20
+ * Enables the Bash_exec tool for this agent.
21
+ * @type {boolean}
22
+ * @memberof AgentSandboxConfigurationUio
23
+ */
24
+ enabled?: boolean;
25
+ /**
26
+ * Enables python3 inside the sandbox. Also requires the server-side lock; the cost is arbitrary code execution.
27
+ * @type {boolean}
28
+ * @memberof AgentSandboxConfigurationUio
29
+ */
30
+ pythonEnabled?: boolean;
31
+ /**
32
+ *
33
+ * @type {AgentSandboxNetworkConfigurationUio}
34
+ * @memberof AgentSandboxConfigurationUio
35
+ */
36
+ network?: AgentSandboxNetworkConfigurationUio;
37
+ /**
38
+ * Scope of the persisted workspace. Defaults to conversation, which is the only value accepted today: storage supports an agent-and-user scope so enabling it later needs no migration, but the API keeps it closed until that path has run against real traffic.
39
+ * @type {string}
40
+ * @memberof AgentSandboxConfigurationUio
41
+ */
42
+ workspaceScope?: AgentSandboxConfigurationUioWorkspaceScopeEnum;
43
+ }
44
+ /**
45
+ * @export
46
+ */
47
+ export declare const AgentSandboxConfigurationUioWorkspaceScopeEnum: {
48
+ readonly Conversation: "conversation";
49
+ };
50
+ export type AgentSandboxConfigurationUioWorkspaceScopeEnum = typeof AgentSandboxConfigurationUioWorkspaceScopeEnum[keyof typeof AgentSandboxConfigurationUioWorkspaceScopeEnum];
51
+ /**
52
+ * Check if a given object implements the AgentSandboxConfigurationUio interface.
53
+ */
54
+ export declare function instanceOfAgentSandboxConfigurationUio(value: object): value is AgentSandboxConfigurationUio;
55
+ export declare function AgentSandboxConfigurationUioFromJSON(json: any): AgentSandboxConfigurationUio;
56
+ export declare function AgentSandboxConfigurationUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentSandboxConfigurationUio;
57
+ export declare function AgentSandboxConfigurationUioToJSON(json: any): AgentSandboxConfigurationUio;
58
+ export declare function AgentSandboxConfigurationUioToJSONTyped(value?: AgentSandboxConfigurationUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.AgentSandboxConfigurationUioWorkspaceScopeEnum = void 0;
17
+ exports.instanceOfAgentSandboxConfigurationUio = instanceOfAgentSandboxConfigurationUio;
18
+ exports.AgentSandboxConfigurationUioFromJSON = AgentSandboxConfigurationUioFromJSON;
19
+ exports.AgentSandboxConfigurationUioFromJSONTyped = AgentSandboxConfigurationUioFromJSONTyped;
20
+ exports.AgentSandboxConfigurationUioToJSON = AgentSandboxConfigurationUioToJSON;
21
+ exports.AgentSandboxConfigurationUioToJSONTyped = AgentSandboxConfigurationUioToJSONTyped;
22
+ const AgentSandboxNetworkConfigurationUio_1 = require("./AgentSandboxNetworkConfigurationUio");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.AgentSandboxConfigurationUioWorkspaceScopeEnum = {
27
+ Conversation: 'conversation'
28
+ };
29
+ /**
30
+ * Check if a given object implements the AgentSandboxConfigurationUio interface.
31
+ */
32
+ function instanceOfAgentSandboxConfigurationUio(value) {
33
+ return true;
34
+ }
35
+ function AgentSandboxConfigurationUioFromJSON(json) {
36
+ return AgentSandboxConfigurationUioFromJSONTyped(json, false);
37
+ }
38
+ function AgentSandboxConfigurationUioFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'enabled': json['enabled'] == null ? undefined : json['enabled'],
44
+ 'pythonEnabled': json['pythonEnabled'] == null ? undefined : json['pythonEnabled'],
45
+ 'network': json['network'] == null ? undefined : (0, AgentSandboxNetworkConfigurationUio_1.AgentSandboxNetworkConfigurationUioFromJSON)(json['network']),
46
+ 'workspaceScope': json['workspaceScope'] == null ? undefined : json['workspaceScope'],
47
+ };
48
+ }
49
+ function AgentSandboxConfigurationUioToJSON(json) {
50
+ return AgentSandboxConfigurationUioToJSONTyped(json, false);
51
+ }
52
+ function AgentSandboxConfigurationUioToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'enabled': value['enabled'],
58
+ 'pythonEnabled': value['pythonEnabled'],
59
+ 'network': (0, AgentSandboxNetworkConfigurationUio_1.AgentSandboxNetworkConfigurationUioToJSON)(value['network']),
60
+ 'workspaceScope': value['workspaceScope'],
61
+ };
62
+ }
@@ -0,0 +1,57 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Enables curl inside the sandbox. Without at least one entry in allowedUrlPrefixes the network stays cut. Private address ranges are always denied, server-side.
14
+ * @export
15
+ * @interface AgentSandboxNetworkConfigurationUio
16
+ */
17
+ export interface AgentSandboxNetworkConfigurationUio {
18
+ /**
19
+ *
20
+ * @type {boolean}
21
+ * @memberof AgentSandboxNetworkConfigurationUio
22
+ */
23
+ enabled?: boolean;
24
+ /**
25
+ *
26
+ * @type {Array<string>}
27
+ * @memberof AgentSandboxNetworkConfigurationUio
28
+ */
29
+ allowedUrlPrefixes?: Array<string>;
30
+ /**
31
+ *
32
+ * @type {Array<string>}
33
+ * @memberof AgentSandboxNetworkConfigurationUio
34
+ */
35
+ allowedMethods?: Array<AgentSandboxNetworkConfigurationUioAllowedMethodsEnum>;
36
+ }
37
+ /**
38
+ * @export
39
+ */
40
+ export declare const AgentSandboxNetworkConfigurationUioAllowedMethodsEnum: {
41
+ readonly Get: "GET";
42
+ readonly Head: "HEAD";
43
+ readonly Post: "POST";
44
+ readonly Put: "PUT";
45
+ readonly Delete: "DELETE";
46
+ readonly Patch: "PATCH";
47
+ readonly Options: "OPTIONS";
48
+ };
49
+ export type AgentSandboxNetworkConfigurationUioAllowedMethodsEnum = typeof AgentSandboxNetworkConfigurationUioAllowedMethodsEnum[keyof typeof AgentSandboxNetworkConfigurationUioAllowedMethodsEnum];
50
+ /**
51
+ * Check if a given object implements the AgentSandboxNetworkConfigurationUio interface.
52
+ */
53
+ export declare function instanceOfAgentSandboxNetworkConfigurationUio(value: object): value is AgentSandboxNetworkConfigurationUio;
54
+ export declare function AgentSandboxNetworkConfigurationUioFromJSON(json: any): AgentSandboxNetworkConfigurationUio;
55
+ export declare function AgentSandboxNetworkConfigurationUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentSandboxNetworkConfigurationUio;
56
+ export declare function AgentSandboxNetworkConfigurationUioToJSON(json: any): AgentSandboxNetworkConfigurationUio;
57
+ export declare function AgentSandboxNetworkConfigurationUioToJSONTyped(value?: AgentSandboxNetworkConfigurationUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.AgentSandboxNetworkConfigurationUioAllowedMethodsEnum = void 0;
17
+ exports.instanceOfAgentSandboxNetworkConfigurationUio = instanceOfAgentSandboxNetworkConfigurationUio;
18
+ exports.AgentSandboxNetworkConfigurationUioFromJSON = AgentSandboxNetworkConfigurationUioFromJSON;
19
+ exports.AgentSandboxNetworkConfigurationUioFromJSONTyped = AgentSandboxNetworkConfigurationUioFromJSONTyped;
20
+ exports.AgentSandboxNetworkConfigurationUioToJSON = AgentSandboxNetworkConfigurationUioToJSON;
21
+ exports.AgentSandboxNetworkConfigurationUioToJSONTyped = AgentSandboxNetworkConfigurationUioToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.AgentSandboxNetworkConfigurationUioAllowedMethodsEnum = {
26
+ Get: 'GET',
27
+ Head: 'HEAD',
28
+ Post: 'POST',
29
+ Put: 'PUT',
30
+ Delete: 'DELETE',
31
+ Patch: 'PATCH',
32
+ Options: 'OPTIONS'
33
+ };
34
+ /**
35
+ * Check if a given object implements the AgentSandboxNetworkConfigurationUio interface.
36
+ */
37
+ function instanceOfAgentSandboxNetworkConfigurationUio(value) {
38
+ return true;
39
+ }
40
+ function AgentSandboxNetworkConfigurationUioFromJSON(json) {
41
+ return AgentSandboxNetworkConfigurationUioFromJSONTyped(json, false);
42
+ }
43
+ function AgentSandboxNetworkConfigurationUioFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ 'enabled': json['enabled'] == null ? undefined : json['enabled'],
49
+ 'allowedUrlPrefixes': json['allowedUrlPrefixes'] == null ? undefined : json['allowedUrlPrefixes'],
50
+ 'allowedMethods': json['allowedMethods'] == null ? undefined : json['allowedMethods'],
51
+ };
52
+ }
53
+ function AgentSandboxNetworkConfigurationUioToJSON(json) {
54
+ return AgentSandboxNetworkConfigurationUioToJSONTyped(json, false);
55
+ }
56
+ function AgentSandboxNetworkConfigurationUioToJSONTyped(value, ignoreDiscriminator = false) {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+ return {
61
+ 'enabled': value['enabled'],
62
+ 'allowedUrlPrefixes': value['allowedUrlPrefixes'],
63
+ 'allowedMethods': value['allowedMethods'],
64
+ };
65
+ }
@@ -19,6 +19,7 @@ import type { EngineUio } from './EngineUio';
19
19
  import type { PromptInitUio } from './PromptInitUio';
20
20
  import type { SpeechToTextConfigUio } from './SpeechToTextConfigUio';
21
21
  import type { AgentMemoryConfigurationUio } from './AgentMemoryConfigurationUio';
22
+ import type { AgentSandboxConfigurationUio } from './AgentSandboxConfigurationUio';
22
23
  import type { AgentTypeUio } from './AgentTypeUio';
23
24
  /**
24
25
  *
@@ -192,6 +193,12 @@ export interface AgentUio {
192
193
  * @memberof AgentUio
193
194
  */
194
195
  speechToText?: SpeechToTextConfigUio;
196
+ /**
197
+ *
198
+ * @type {AgentSandboxConfigurationUio}
199
+ * @memberof AgentUio
200
+ */
201
+ sandboxConfiguration?: AgentSandboxConfigurationUio | null;
195
202
  /**
196
203
  *
197
204
  * @type {AgentCreatorUio}