@breign/client 1.0.137 → 1.0.139

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 (65) hide show
  1. package/dist/apis/LibraryAgentsApi.d.ts +211 -0
  2. package/dist/apis/LibraryAgentsApi.js +537 -0
  3. package/dist/apis/OrganizationsApi.d.ts +58 -1
  4. package/dist/apis/OrganizationsApi.js +134 -0
  5. package/dist/apis/index.d.ts +1 -0
  6. package/dist/apis/index.js +1 -0
  7. package/dist/models/AgentBundleDiffUio.d.ts +79 -0
  8. package/dist/models/AgentBundleDiffUio.js +85 -0
  9. package/dist/models/AgentBundleListDiffUio.d.ts +44 -0
  10. package/dist/models/AgentBundleListDiffUio.js +58 -0
  11. package/dist/models/AgentLibraryLinkLatestVersionUio.d.ts +44 -0
  12. package/dist/models/AgentLibraryLinkLatestVersionUio.js +58 -0
  13. package/dist/models/AgentLibraryLinkUio.d.ts +81 -0
  14. package/dist/models/AgentLibraryLinkUio.js +79 -0
  15. package/dist/models/AgentLibraryLinkUpdateRequestUio.d.ts +38 -0
  16. package/dist/models/AgentLibraryLinkUpdateRequestUio.js +52 -0
  17. package/dist/models/AgentLibraryLinkUpdateResponseUio.d.ts +69 -0
  18. package/dist/models/AgentLibraryLinkUpdateResponseUio.js +75 -0
  19. package/dist/models/AgentLibraryLinksResponseUio.d.ts +33 -0
  20. package/dist/models/AgentLibraryLinksResponseUio.js +51 -0
  21. package/dist/models/AgentSandboxNetworkConfigurationUio.d.ts +2 -2
  22. package/dist/models/ChatMessageUio.d.ts +7 -0
  23. package/dist/models/ChatMessageUio.js +3 -0
  24. package/dist/models/ConversationMessageApprovalUio.d.ts +70 -0
  25. package/dist/models/ConversationMessageApprovalUio.js +74 -0
  26. package/dist/models/ConversationMessagesInnerUio.d.ts +7 -0
  27. package/dist/models/ConversationMessagesInnerUio.js +3 -0
  28. package/dist/models/CreateToolApprovalRequestUio.d.ts +53 -0
  29. package/dist/models/CreateToolApprovalRequestUio.js +67 -0
  30. package/dist/models/EditToolApprovalRequestUio.d.ts +47 -0
  31. package/dist/models/EditToolApprovalRequestUio.js +63 -0
  32. package/dist/models/LibraryAgentBundleSummaryUio.d.ts +56 -0
  33. package/dist/models/LibraryAgentBundleSummaryUio.js +66 -0
  34. package/dist/models/LibraryAgentDiffResponseUio.d.ts +46 -0
  35. package/dist/models/LibraryAgentDiffResponseUio.js +60 -0
  36. package/dist/models/LibraryAgentDiffVersionRefUio.d.ts +38 -0
  37. package/dist/models/LibraryAgentDiffVersionRefUio.js +54 -0
  38. package/dist/models/LibraryAgentEntryUio.d.ts +87 -0
  39. package/dist/models/LibraryAgentEntryUio.js +83 -0
  40. package/dist/models/LibraryAgentInstallRequestUio.d.ts +38 -0
  41. package/dist/models/LibraryAgentInstallRequestUio.js +52 -0
  42. package/dist/models/LibraryAgentInstallResponseUio.d.ts +75 -0
  43. package/dist/models/LibraryAgentInstallResponseUio.js +77 -0
  44. package/dist/models/LibraryAgentParseBundleRequestUio.d.ts +46 -0
  45. package/dist/models/LibraryAgentParseBundleRequestUio.js +62 -0
  46. package/dist/models/LibraryAgentPublishRequestUio.d.ts +68 -0
  47. package/dist/models/LibraryAgentPublishRequestUio.js +60 -0
  48. package/dist/models/LibraryAgentPublishVersionRequestUio.d.ts +62 -0
  49. package/dist/models/LibraryAgentPublishVersionRequestUio.js +58 -0
  50. package/dist/models/LibraryAgentVersionUio.d.ts +99 -0
  51. package/dist/models/LibraryAgentVersionUio.js +87 -0
  52. package/dist/models/LibraryAgentsPageUio.d.ts +63 -0
  53. package/dist/models/LibraryAgentsPageUio.js +71 -0
  54. package/dist/models/ToolApprovalUio.d.ts +85 -0
  55. package/dist/models/ToolApprovalUio.js +88 -0
  56. package/dist/models/ToolApprovalsResponseUio.d.ts +33 -0
  57. package/dist/models/ToolApprovalsResponseUio.js +51 -0
  58. package/dist/models/ToolCallResultRequestUio.d.ts +28 -0
  59. package/dist/models/ToolCallResultRequestUio.js +19 -1
  60. package/dist/models/ToolCallUio.d.ts +4 -4
  61. package/dist/models/ToolCallUio.js +2 -4
  62. package/dist/models/index.d.ts +23 -0
  63. package/dist/models/index.js +23 -0
  64. package/dist/openapi.json +6374 -4924
  65. package/package.json +1 -1
@@ -0,0 +1,79 @@
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.instanceOfAgentLibraryLinkUio = instanceOfAgentLibraryLinkUio;
17
+ exports.AgentLibraryLinkUioFromJSON = AgentLibraryLinkUioFromJSON;
18
+ exports.AgentLibraryLinkUioFromJSONTyped = AgentLibraryLinkUioFromJSONTyped;
19
+ exports.AgentLibraryLinkUioToJSON = AgentLibraryLinkUioToJSON;
20
+ exports.AgentLibraryLinkUioToJSONTyped = AgentLibraryLinkUioToJSONTyped;
21
+ const AgentLibraryLinkLatestVersionUio_1 = require("./AgentLibraryLinkLatestVersionUio");
22
+ /**
23
+ * Check if a given object implements the AgentLibraryLinkUio interface.
24
+ */
25
+ function instanceOfAgentLibraryLinkUio(value) {
26
+ if (!('agentId' in value) || value['agentId'] === undefined)
27
+ return false;
28
+ if (!('librarySlug' in value) || value['librarySlug'] === undefined)
29
+ return false;
30
+ if (!('libraryVersionId' in value) || value['libraryVersionId'] === undefined)
31
+ return false;
32
+ if (!('libraryVersion' in value) || value['libraryVersion'] === undefined)
33
+ return false;
34
+ if (!('installedAt' in value) || value['installedAt'] === undefined)
35
+ return false;
36
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
37
+ return false;
38
+ if (!('updateAvailable' in value) || value['updateAvailable'] === undefined)
39
+ return false;
40
+ return true;
41
+ }
42
+ function AgentLibraryLinkUioFromJSON(json) {
43
+ return AgentLibraryLinkUioFromJSONTyped(json, false);
44
+ }
45
+ function AgentLibraryLinkUioFromJSONTyped(json, ignoreDiscriminator) {
46
+ if (json == null) {
47
+ return json;
48
+ }
49
+ return {
50
+ 'agentId': json['agentId'],
51
+ 'librarySlug': json['librarySlug'],
52
+ 'libraryVersionId': json['libraryVersionId'],
53
+ 'libraryVersion': json['libraryVersion'],
54
+ 'installedAt': (new Date(json['installedAt'])),
55
+ 'updatedAt': (new Date(json['updatedAt'])),
56
+ 'entryName': json['entryName'] == null ? undefined : json['entryName'],
57
+ 'latestVersion': json['latestVersion'] == null ? undefined : (0, AgentLibraryLinkLatestVersionUio_1.AgentLibraryLinkLatestVersionUioFromJSON)(json['latestVersion']),
58
+ 'updateAvailable': json['updateAvailable'],
59
+ };
60
+ }
61
+ function AgentLibraryLinkUioToJSON(json) {
62
+ return AgentLibraryLinkUioToJSONTyped(json, false);
63
+ }
64
+ function AgentLibraryLinkUioToJSONTyped(value, ignoreDiscriminator = false) {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+ return {
69
+ 'agentId': value['agentId'],
70
+ 'librarySlug': value['librarySlug'],
71
+ 'libraryVersionId': value['libraryVersionId'],
72
+ 'libraryVersion': value['libraryVersion'],
73
+ 'installedAt': ((value['installedAt']).toISOString()),
74
+ 'updatedAt': ((value['updatedAt']).toISOString()),
75
+ 'entryName': value['entryName'],
76
+ 'latestVersion': (0, AgentLibraryLinkLatestVersionUio_1.AgentLibraryLinkLatestVersionUioToJSON)(value['latestVersion']),
77
+ 'updateAvailable': value['updateAvailable'],
78
+ };
79
+ }
@@ -0,0 +1,38 @@
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 AgentLibraryLinkUpdateRequestUio
16
+ */
17
+ export interface AgentLibraryLinkUpdateRequestUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AgentLibraryLinkUpdateRequestUio
22
+ */
23
+ organizationId: string;
24
+ /**
25
+ * Target version. Defaults to the latest published version of the linked entry.
26
+ * @type {string}
27
+ * @memberof AgentLibraryLinkUpdateRequestUio
28
+ */
29
+ versionId?: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the AgentLibraryLinkUpdateRequestUio interface.
33
+ */
34
+ export declare function instanceOfAgentLibraryLinkUpdateRequestUio(value: object): value is AgentLibraryLinkUpdateRequestUio;
35
+ export declare function AgentLibraryLinkUpdateRequestUioFromJSON(json: any): AgentLibraryLinkUpdateRequestUio;
36
+ export declare function AgentLibraryLinkUpdateRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentLibraryLinkUpdateRequestUio;
37
+ export declare function AgentLibraryLinkUpdateRequestUioToJSON(json: any): AgentLibraryLinkUpdateRequestUio;
38
+ export declare function AgentLibraryLinkUpdateRequestUioToJSONTyped(value?: AgentLibraryLinkUpdateRequestUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfAgentLibraryLinkUpdateRequestUio = instanceOfAgentLibraryLinkUpdateRequestUio;
17
+ exports.AgentLibraryLinkUpdateRequestUioFromJSON = AgentLibraryLinkUpdateRequestUioFromJSON;
18
+ exports.AgentLibraryLinkUpdateRequestUioFromJSONTyped = AgentLibraryLinkUpdateRequestUioFromJSONTyped;
19
+ exports.AgentLibraryLinkUpdateRequestUioToJSON = AgentLibraryLinkUpdateRequestUioToJSON;
20
+ exports.AgentLibraryLinkUpdateRequestUioToJSONTyped = AgentLibraryLinkUpdateRequestUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AgentLibraryLinkUpdateRequestUio interface.
23
+ */
24
+ function instanceOfAgentLibraryLinkUpdateRequestUio(value) {
25
+ if (!('organizationId' in value) || value['organizationId'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function AgentLibraryLinkUpdateRequestUioFromJSON(json) {
30
+ return AgentLibraryLinkUpdateRequestUioFromJSONTyped(json, false);
31
+ }
32
+ function AgentLibraryLinkUpdateRequestUioFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'organizationId': json['organizationId'],
38
+ 'versionId': json['versionId'] == null ? undefined : json['versionId'],
39
+ };
40
+ }
41
+ function AgentLibraryLinkUpdateRequestUioToJSON(json) {
42
+ return AgentLibraryLinkUpdateRequestUioToJSONTyped(json, false);
43
+ }
44
+ function AgentLibraryLinkUpdateRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'organizationId': value['organizationId'],
50
+ 'versionId': value['versionId'],
51
+ };
52
+ }
@@ -0,0 +1,69 @@
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 { AgentImportReportUio } from './AgentImportReportUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AgentLibraryLinkUpdateResponseUio
17
+ */
18
+ export interface AgentLibraryLinkUpdateResponseUio {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof AgentLibraryLinkUpdateResponseUio
23
+ */
24
+ agentId: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof AgentLibraryLinkUpdateResponseUio
29
+ */
30
+ agentName: string;
31
+ /**
32
+ * True when everything was linked as-is; false when the UI should show the import recap.
33
+ * @type {boolean}
34
+ * @memberof AgentLibraryLinkUpdateResponseUio
35
+ */
36
+ clean: boolean;
37
+ /**
38
+ *
39
+ * @type {AgentImportReportUio}
40
+ * @memberof AgentLibraryLinkUpdateResponseUio
41
+ */
42
+ report: AgentImportReportUio;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof AgentLibraryLinkUpdateResponseUio
47
+ */
48
+ librarySlug: string;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof AgentLibraryLinkUpdateResponseUio
53
+ */
54
+ libraryVersionId: string;
55
+ /**
56
+ *
57
+ * @type {string}
58
+ * @memberof AgentLibraryLinkUpdateResponseUio
59
+ */
60
+ libraryVersion: string;
61
+ }
62
+ /**
63
+ * Check if a given object implements the AgentLibraryLinkUpdateResponseUio interface.
64
+ */
65
+ export declare function instanceOfAgentLibraryLinkUpdateResponseUio(value: object): value is AgentLibraryLinkUpdateResponseUio;
66
+ export declare function AgentLibraryLinkUpdateResponseUioFromJSON(json: any): AgentLibraryLinkUpdateResponseUio;
67
+ export declare function AgentLibraryLinkUpdateResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentLibraryLinkUpdateResponseUio;
68
+ export declare function AgentLibraryLinkUpdateResponseUioToJSON(json: any): AgentLibraryLinkUpdateResponseUio;
69
+ export declare function AgentLibraryLinkUpdateResponseUioToJSONTyped(value?: AgentLibraryLinkUpdateResponseUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,75 @@
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.instanceOfAgentLibraryLinkUpdateResponseUio = instanceOfAgentLibraryLinkUpdateResponseUio;
17
+ exports.AgentLibraryLinkUpdateResponseUioFromJSON = AgentLibraryLinkUpdateResponseUioFromJSON;
18
+ exports.AgentLibraryLinkUpdateResponseUioFromJSONTyped = AgentLibraryLinkUpdateResponseUioFromJSONTyped;
19
+ exports.AgentLibraryLinkUpdateResponseUioToJSON = AgentLibraryLinkUpdateResponseUioToJSON;
20
+ exports.AgentLibraryLinkUpdateResponseUioToJSONTyped = AgentLibraryLinkUpdateResponseUioToJSONTyped;
21
+ const AgentImportReportUio_1 = require("./AgentImportReportUio");
22
+ /**
23
+ * Check if a given object implements the AgentLibraryLinkUpdateResponseUio interface.
24
+ */
25
+ function instanceOfAgentLibraryLinkUpdateResponseUio(value) {
26
+ if (!('agentId' in value) || value['agentId'] === undefined)
27
+ return false;
28
+ if (!('agentName' in value) || value['agentName'] === undefined)
29
+ return false;
30
+ if (!('clean' in value) || value['clean'] === undefined)
31
+ return false;
32
+ if (!('report' in value) || value['report'] === undefined)
33
+ return false;
34
+ if (!('librarySlug' in value) || value['librarySlug'] === undefined)
35
+ return false;
36
+ if (!('libraryVersionId' in value) || value['libraryVersionId'] === undefined)
37
+ return false;
38
+ if (!('libraryVersion' in value) || value['libraryVersion'] === undefined)
39
+ return false;
40
+ return true;
41
+ }
42
+ function AgentLibraryLinkUpdateResponseUioFromJSON(json) {
43
+ return AgentLibraryLinkUpdateResponseUioFromJSONTyped(json, false);
44
+ }
45
+ function AgentLibraryLinkUpdateResponseUioFromJSONTyped(json, ignoreDiscriminator) {
46
+ if (json == null) {
47
+ return json;
48
+ }
49
+ return {
50
+ 'agentId': json['agentId'],
51
+ 'agentName': json['agentName'],
52
+ 'clean': json['clean'],
53
+ 'report': (0, AgentImportReportUio_1.AgentImportReportUioFromJSON)(json['report']),
54
+ 'librarySlug': json['librarySlug'],
55
+ 'libraryVersionId': json['libraryVersionId'],
56
+ 'libraryVersion': json['libraryVersion'],
57
+ };
58
+ }
59
+ function AgentLibraryLinkUpdateResponseUioToJSON(json) {
60
+ return AgentLibraryLinkUpdateResponseUioToJSONTyped(json, false);
61
+ }
62
+ function AgentLibraryLinkUpdateResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+ return {
67
+ 'agentId': value['agentId'],
68
+ 'agentName': value['agentName'],
69
+ 'clean': value['clean'],
70
+ 'report': (0, AgentImportReportUio_1.AgentImportReportUioToJSON)(value['report']),
71
+ 'librarySlug': value['librarySlug'],
72
+ 'libraryVersionId': value['libraryVersionId'],
73
+ 'libraryVersion': value['libraryVersion'],
74
+ };
75
+ }
@@ -0,0 +1,33 @@
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 { AgentLibraryLinkUio } from './AgentLibraryLinkUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AgentLibraryLinksResponseUio
17
+ */
18
+ export interface AgentLibraryLinksResponseUio {
19
+ /**
20
+ *
21
+ * @type {Array<AgentLibraryLinkUio>}
22
+ * @memberof AgentLibraryLinksResponseUio
23
+ */
24
+ data: Array<AgentLibraryLinkUio>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the AgentLibraryLinksResponseUio interface.
28
+ */
29
+ export declare function instanceOfAgentLibraryLinksResponseUio(value: object): value is AgentLibraryLinksResponseUio;
30
+ export declare function AgentLibraryLinksResponseUioFromJSON(json: any): AgentLibraryLinksResponseUio;
31
+ export declare function AgentLibraryLinksResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentLibraryLinksResponseUio;
32
+ export declare function AgentLibraryLinksResponseUioToJSON(json: any): AgentLibraryLinksResponseUio;
33
+ export declare function AgentLibraryLinksResponseUioToJSONTyped(value?: AgentLibraryLinksResponseUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
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.instanceOfAgentLibraryLinksResponseUio = instanceOfAgentLibraryLinksResponseUio;
17
+ exports.AgentLibraryLinksResponseUioFromJSON = AgentLibraryLinksResponseUioFromJSON;
18
+ exports.AgentLibraryLinksResponseUioFromJSONTyped = AgentLibraryLinksResponseUioFromJSONTyped;
19
+ exports.AgentLibraryLinksResponseUioToJSON = AgentLibraryLinksResponseUioToJSON;
20
+ exports.AgentLibraryLinksResponseUioToJSONTyped = AgentLibraryLinksResponseUioToJSONTyped;
21
+ const AgentLibraryLinkUio_1 = require("./AgentLibraryLinkUio");
22
+ /**
23
+ * Check if a given object implements the AgentLibraryLinksResponseUio interface.
24
+ */
25
+ function instanceOfAgentLibraryLinksResponseUio(value) {
26
+ if (!('data' in value) || value['data'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function AgentLibraryLinksResponseUioFromJSON(json) {
31
+ return AgentLibraryLinksResponseUioFromJSONTyped(json, false);
32
+ }
33
+ function AgentLibraryLinksResponseUioFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'data': (json['data'].map(AgentLibraryLinkUio_1.AgentLibraryLinkUioFromJSON)),
39
+ };
40
+ }
41
+ function AgentLibraryLinksResponseUioToJSON(json) {
42
+ return AgentLibraryLinksResponseUioToJSONTyped(json, false);
43
+ }
44
+ function AgentLibraryLinksResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'data': (value['data'].map(AgentLibraryLinkUio_1.AgentLibraryLinkUioToJSON)),
50
+ };
51
+ }
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
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.
13
+ * Enables curl inside the sandbox. allowedUrlPrefixes is optional and normally empty: an address that is not listed is submitted to the user, who allows or refuses it in the conversation. It only stays useful where nobody can be asked — an app or a widget — since the network is cut there without a pre-approved entry. Private address ranges are always denied, server-side.
14
14
  * @export
15
15
  * @interface AgentSandboxNetworkConfigurationUio
16
16
  */
@@ -22,7 +22,7 @@ export interface AgentSandboxNetworkConfigurationUio {
22
22
  */
23
23
  enabled?: boolean;
24
24
  /**
25
- *
25
+ * Addresses that need no confirmation. Not editable from the agent settings screen: an empty list is the nominal setup, and what the user approves in conversation is stored separately and revoked from the organisation settings.
26
26
  * @type {Array<string>}
27
27
  * @memberof AgentSandboxNetworkConfigurationUio
28
28
  */
@@ -15,6 +15,7 @@ import type { SuggestionUio } from './SuggestionUio';
15
15
  import type { ChatMessageRoleUio } from './ChatMessageRoleUio';
16
16
  import type { FileAttachmentUio } from './FileAttachmentUio';
17
17
  import type { ChatMessageAudioInnerUio } from './ChatMessageAudioInnerUio';
18
+ import type { ConversationMessageApprovalUio } from './ConversationMessageApprovalUio';
18
19
  import type { ToolResultsUio } from './ToolResultsUio';
19
20
  import type { TokenUsageUio } from './TokenUsageUio';
20
21
  /**
@@ -71,6 +72,12 @@ export interface ChatMessageUio {
71
72
  * @memberof ChatMessageUio
72
73
  */
73
74
  toolResults?: Array<ToolResultsUio>;
75
+ /**
76
+ *
77
+ * @type {Array<ConversationMessageApprovalUio>}
78
+ * @memberof ChatMessageUio
79
+ */
80
+ approvals?: Array<ConversationMessageApprovalUio>;
74
81
  /**
75
82
  *
76
83
  * @type {Array<SuggestionUio>}
@@ -25,6 +25,7 @@ const SuggestionUio_1 = require("./SuggestionUio");
25
25
  const ChatMessageRoleUio_1 = require("./ChatMessageRoleUio");
26
26
  const FileAttachmentUio_1 = require("./FileAttachmentUio");
27
27
  const ChatMessageAudioInnerUio_1 = require("./ChatMessageAudioInnerUio");
28
+ const ConversationMessageApprovalUio_1 = require("./ConversationMessageApprovalUio");
28
29
  const ToolResultsUio_1 = require("./ToolResultsUio");
29
30
  const TokenUsageUio_1 = require("./TokenUsageUio");
30
31
  /**
@@ -64,6 +65,7 @@ function ChatMessageUioFromJSONTyped(json, ignoreDiscriminator) {
64
65
  'anonymizedContent': json['anonymizedContent'] == null ? undefined : json['anonymizedContent'],
65
66
  'confirmationLink': json['confirmationLink'] == null ? undefined : json['confirmationLink'],
66
67
  'toolResults': json['toolResults'] == null ? undefined : (json['toolResults'].map(ToolResultsUio_1.ToolResultsUioFromJSON)),
68
+ 'approvals': json['approvals'] == null ? undefined : (json['approvals'].map(ConversationMessageApprovalUio_1.ConversationMessageApprovalUioFromJSON)),
67
69
  'suggestions': json['suggestions'] == null ? undefined : (json['suggestions'].map(SuggestionUio_1.SuggestionUioFromJSON)),
68
70
  'workspaceFiles': json['workspaceFiles'] == null ? undefined : json['workspaceFiles'],
69
71
  'flowNode': json['flowNode'] == null ? undefined : json['flowNode'],
@@ -96,6 +98,7 @@ function ChatMessageUioToJSONTyped(value, ignoreDiscriminator = false) {
96
98
  'anonymizedContent': value['anonymizedContent'],
97
99
  'confirmationLink': value['confirmationLink'],
98
100
  'toolResults': value['toolResults'] == null ? undefined : (value['toolResults'].map(ToolResultsUio_1.ToolResultsUioToJSON)),
101
+ 'approvals': value['approvals'] == null ? undefined : (value['approvals'].map(ConversationMessageApprovalUio_1.ConversationMessageApprovalUioToJSON)),
99
102
  'suggestions': value['suggestions'] == null ? undefined : (value['suggestions'].map(SuggestionUio_1.SuggestionUioToJSON)),
100
103
  'workspaceFiles': value['workspaceFiles'],
101
104
  'flowNode': value['flowNode'],
@@ -0,0 +1,70 @@
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
+ * One authorisation decision taken during this message: which tool, over what, by whom, when. Carried by the message so the history reads as it stands, with no extra request. For a decision granted once it is the only lasting trace there is — a one-off creates no standing approval. Deliberately beside toolResults rather than inside it: toolResults is replayed to the model every turn, and a one-off appearing there would later suggest a right that has expired.
14
+ * @export
15
+ * @interface ConversationMessageApprovalUio
16
+ */
17
+ export interface ConversationMessageApprovalUio {
18
+ /**
19
+ * The tool whose use was submitted for approval. It also says which family the decision belongs to: bash_network_approval an address, bash_python_approval a command.
20
+ * @type {string}
21
+ * @memberof ConversationMessageApprovalUio
22
+ */
23
+ tool: string;
24
+ /**
25
+ * Refusals are kept too — deciding not to allow is worth reading back.
26
+ * @type {boolean}
27
+ * @memberof ConversationMessageApprovalUio
28
+ */
29
+ granted: boolean;
30
+ /**
31
+ * What was granted, or on a refusal what had been asked for. An address is the prefix, never the full URL, which can carry a token.
32
+ * @type {string}
33
+ * @memberof ConversationMessageApprovalUio
34
+ */
35
+ resource: string;
36
+ /**
37
+ * How far the yes reached. once — this reply only, nothing stored, asked about again next time. agentUser — this agent, for this user, in every conversation, until revoked. Absent on a refusal, which grants nothing.
38
+ * @type {string}
39
+ * @memberof ConversationMessageApprovalUio
40
+ */
41
+ scope?: ConversationMessageApprovalUioScopeEnum;
42
+ /**
43
+ * Name or email of the person who decided, as it stood when they decided.
44
+ * @type {string}
45
+ * @memberof ConversationMessageApprovalUio
46
+ */
47
+ approvedBy?: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof ConversationMessageApprovalUio
52
+ */
53
+ at: string;
54
+ }
55
+ /**
56
+ * @export
57
+ */
58
+ export declare const ConversationMessageApprovalUioScopeEnum: {
59
+ readonly Once: "once";
60
+ readonly AgentUser: "agentUser";
61
+ };
62
+ export type ConversationMessageApprovalUioScopeEnum = typeof ConversationMessageApprovalUioScopeEnum[keyof typeof ConversationMessageApprovalUioScopeEnum];
63
+ /**
64
+ * Check if a given object implements the ConversationMessageApprovalUio interface.
65
+ */
66
+ export declare function instanceOfConversationMessageApprovalUio(value: object): value is ConversationMessageApprovalUio;
67
+ export declare function ConversationMessageApprovalUioFromJSON(json: any): ConversationMessageApprovalUio;
68
+ export declare function ConversationMessageApprovalUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationMessageApprovalUio;
69
+ export declare function ConversationMessageApprovalUioToJSON(json: any): ConversationMessageApprovalUio;
70
+ export declare function ConversationMessageApprovalUioToJSONTyped(value?: ConversationMessageApprovalUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,74 @@
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.ConversationMessageApprovalUioScopeEnum = void 0;
17
+ exports.instanceOfConversationMessageApprovalUio = instanceOfConversationMessageApprovalUio;
18
+ exports.ConversationMessageApprovalUioFromJSON = ConversationMessageApprovalUioFromJSON;
19
+ exports.ConversationMessageApprovalUioFromJSONTyped = ConversationMessageApprovalUioFromJSONTyped;
20
+ exports.ConversationMessageApprovalUioToJSON = ConversationMessageApprovalUioToJSON;
21
+ exports.ConversationMessageApprovalUioToJSONTyped = ConversationMessageApprovalUioToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.ConversationMessageApprovalUioScopeEnum = {
26
+ Once: 'once',
27
+ AgentUser: 'agentUser'
28
+ };
29
+ /**
30
+ * Check if a given object implements the ConversationMessageApprovalUio interface.
31
+ */
32
+ function instanceOfConversationMessageApprovalUio(value) {
33
+ if (!('tool' in value) || value['tool'] === undefined)
34
+ return false;
35
+ if (!('granted' in value) || value['granted'] === undefined)
36
+ return false;
37
+ if (!('resource' in value) || value['resource'] === undefined)
38
+ return false;
39
+ if (!('at' in value) || value['at'] === undefined)
40
+ return false;
41
+ return true;
42
+ }
43
+ function ConversationMessageApprovalUioFromJSON(json) {
44
+ return ConversationMessageApprovalUioFromJSONTyped(json, false);
45
+ }
46
+ function ConversationMessageApprovalUioFromJSONTyped(json, ignoreDiscriminator) {
47
+ if (json == null) {
48
+ return json;
49
+ }
50
+ return {
51
+ 'tool': json['tool'],
52
+ 'granted': json['granted'],
53
+ 'resource': json['resource'],
54
+ 'scope': json['scope'] == null ? undefined : json['scope'],
55
+ 'approvedBy': json['approvedBy'] == null ? undefined : json['approvedBy'],
56
+ 'at': json['at'],
57
+ };
58
+ }
59
+ function ConversationMessageApprovalUioToJSON(json) {
60
+ return ConversationMessageApprovalUioToJSONTyped(json, false);
61
+ }
62
+ function ConversationMessageApprovalUioToJSONTyped(value, ignoreDiscriminator = false) {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+ return {
67
+ 'tool': value['tool'],
68
+ 'granted': value['granted'],
69
+ 'resource': value['resource'],
70
+ 'scope': value['scope'],
71
+ 'approvedBy': value['approvedBy'],
72
+ 'at': value['at'],
73
+ };
74
+ }
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import type { ConversationMessagesInnerSuggestionsInnerUio } from './ConversationMessagesInnerSuggestionsInnerUio';
13
13
  import type { ChatMessageAudioInnerUio } from './ChatMessageAudioInnerUio';
14
+ import type { ConversationMessageApprovalUio } from './ConversationMessageApprovalUio';
14
15
  import type { ConversationMessagesInnerFlowNodeUio } from './ConversationMessagesInnerFlowNodeUio';
15
16
  import type { ToolResultsUio } from './ToolResultsUio';
16
17
  import type { TokenUsageUio } from './TokenUsageUio';
@@ -82,6 +83,12 @@ export interface ConversationMessagesInnerUio {
82
83
  * @memberof ConversationMessagesInnerUio
83
84
  */
84
85
  toolResults?: Array<ToolResultsUio>;
86
+ /**
87
+ *
88
+ * @type {Array<ConversationMessageApprovalUio>}
89
+ * @memberof ConversationMessagesInnerUio
90
+ */
91
+ approvals?: Array<ConversationMessageApprovalUio>;
85
92
  /**
86
93
  *
87
94
  * @type {Array<string>}
@@ -20,6 +20,7 @@ exports.ConversationMessagesInnerUioToJSON = ConversationMessagesInnerUioToJSON;
20
20
  exports.ConversationMessagesInnerUioToJSONTyped = ConversationMessagesInnerUioToJSONTyped;
21
21
  const ConversationMessagesInnerSuggestionsInnerUio_1 = require("./ConversationMessagesInnerSuggestionsInnerUio");
22
22
  const ChatMessageAudioInnerUio_1 = require("./ChatMessageAudioInnerUio");
23
+ const ConversationMessageApprovalUio_1 = require("./ConversationMessageApprovalUio");
23
24
  const ConversationMessagesInnerFlowNodeUio_1 = require("./ConversationMessagesInnerFlowNodeUio");
24
25
  const ToolResultsUio_1 = require("./ToolResultsUio");
25
26
  const TokenUsageUio_1 = require("./TokenUsageUio");
@@ -55,6 +56,7 @@ function ConversationMessagesInnerUioFromJSONTyped(json, ignoreDiscriminator) {
55
56
  'audio': json['audio'] == null ? undefined : (json['audio'].map(ChatMessageAudioInnerUio_1.ChatMessageAudioInnerUioFromJSON)),
56
57
  'usage': json['usage'] == null ? undefined : (0, TokenUsageUio_1.TokenUsageUioFromJSON)(json['usage']),
57
58
  'toolResults': json['toolResults'] == null ? undefined : (json['toolResults'].map(ToolResultsUio_1.ToolResultsUioFromJSON)),
59
+ 'approvals': json['approvals'] == null ? undefined : (json['approvals'].map(ConversationMessageApprovalUio_1.ConversationMessageApprovalUioFromJSON)),
58
60
  'workspaceFiles': json['workspaceFiles'] == null ? undefined : json['workspaceFiles'],
59
61
  };
60
62
  }
@@ -76,6 +78,7 @@ function ConversationMessagesInnerUioToJSONTyped(value, ignoreDiscriminator = fa
76
78
  'audio': value['audio'] == null ? undefined : (value['audio'].map(ChatMessageAudioInnerUio_1.ChatMessageAudioInnerUioToJSON)),
77
79
  'usage': (0, TokenUsageUio_1.TokenUsageUioToJSON)(value['usage']),
78
80
  'toolResults': value['toolResults'] == null ? undefined : (value['toolResults'].map(ToolResultsUio_1.ToolResultsUioToJSON)),
81
+ 'approvals': value['approvals'] == null ? undefined : (value['approvals'].map(ConversationMessageApprovalUio_1.ConversationMessageApprovalUioToJSON)),
79
82
  'workspaceFiles': value['workspaceFiles'],
80
83
  };
81
84
  }