@breign/client 1.0.154 → 1.0.155

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 (30) hide show
  1. package/dist/apis/OrganizationsApi.d.ts +140 -1
  2. package/dist/apis/OrganizationsApi.js +345 -0
  3. package/dist/models/AccessRoleCreateRequestUio.d.ts +45 -0
  4. package/dist/models/AccessRoleCreateRequestUio.js +55 -0
  5. package/dist/models/AccessRolePermissionsRequestUio.d.ts +33 -0
  6. package/dist/models/AccessRolePermissionsRequestUio.js +51 -0
  7. package/dist/models/AccessRoleUio.d.ts +75 -0
  8. package/dist/models/AccessRoleUio.js +75 -0
  9. package/dist/models/AccessRoleUpdateRequestUio.d.ts +38 -0
  10. package/dist/models/AccessRoleUpdateRequestUio.js +52 -0
  11. package/dist/models/OrganizationPermissionKeyUio.d.ts +63 -0
  12. package/dist/models/OrganizationPermissionKeyUio.js +89 -0
  13. package/dist/models/PermissionEntryUio.d.ts +39 -0
  14. package/dist/models/PermissionEntryUio.js +55 -0
  15. package/dist/models/UserAccessRolesRequestUio.d.ts +32 -0
  16. package/dist/models/UserAccessRolesRequestUio.js +50 -0
  17. package/dist/models/UserAccessUio.d.ts +39 -0
  18. package/dist/models/UserAccessUio.js +55 -0
  19. package/dist/models/UserAgentAccessAgentUio.d.ts +38 -0
  20. package/dist/models/UserAgentAccessAgentUio.js +54 -0
  21. package/dist/models/UserAgentAccessRequestUio.d.ts +38 -0
  22. package/dist/models/UserAgentAccessRequestUio.js +54 -0
  23. package/dist/models/UserAgentAccessUio.d.ts +45 -0
  24. package/dist/models/UserAgentAccessUio.js +59 -0
  25. package/dist/models/UserDirectPermissionsRequestUio.d.ts +33 -0
  26. package/dist/models/UserDirectPermissionsRequestUio.js +51 -0
  27. package/dist/models/index.d.ts +12 -0
  28. package/dist/models/index.js +12 -0
  29. package/dist/openapi.json +652 -0
  30. package/package.json +1 -1
@@ -0,0 +1,55 @@
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.instanceOfAccessRoleCreateRequestUio = instanceOfAccessRoleCreateRequestUio;
17
+ exports.AccessRoleCreateRequestUioFromJSON = AccessRoleCreateRequestUioFromJSON;
18
+ exports.AccessRoleCreateRequestUioFromJSONTyped = AccessRoleCreateRequestUioFromJSONTyped;
19
+ exports.AccessRoleCreateRequestUioToJSON = AccessRoleCreateRequestUioToJSON;
20
+ exports.AccessRoleCreateRequestUioToJSONTyped = AccessRoleCreateRequestUioToJSONTyped;
21
+ const PermissionEntryUio_1 = require("./PermissionEntryUio");
22
+ /**
23
+ * Check if a given object implements the AccessRoleCreateRequestUio interface.
24
+ */
25
+ function instanceOfAccessRoleCreateRequestUio(value) {
26
+ if (!('name' in value) || value['name'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function AccessRoleCreateRequestUioFromJSON(json) {
31
+ return AccessRoleCreateRequestUioFromJSONTyped(json, false);
32
+ }
33
+ function AccessRoleCreateRequestUioFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'name': json['name'],
39
+ 'description': json['description'] == null ? undefined : json['description'],
40
+ 'permissions': json['permissions'] == null ? undefined : (json['permissions'].map(PermissionEntryUio_1.PermissionEntryUioFromJSON)),
41
+ };
42
+ }
43
+ function AccessRoleCreateRequestUioToJSON(json) {
44
+ return AccessRoleCreateRequestUioToJSONTyped(json, false);
45
+ }
46
+ function AccessRoleCreateRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'name': value['name'],
52
+ 'description': value['description'],
53
+ 'permissions': value['permissions'] == null ? undefined : (value['permissions'].map(PermissionEntryUio_1.PermissionEntryUioToJSON)),
54
+ };
55
+ }
@@ -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 { PermissionEntryUio } from './PermissionEntryUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AccessRolePermissionsRequestUio
17
+ */
18
+ export interface AccessRolePermissionsRequestUio {
19
+ /**
20
+ *
21
+ * @type {Array<PermissionEntryUio>}
22
+ * @memberof AccessRolePermissionsRequestUio
23
+ */
24
+ permissions: Array<PermissionEntryUio>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the AccessRolePermissionsRequestUio interface.
28
+ */
29
+ export declare function instanceOfAccessRolePermissionsRequestUio(value: object): value is AccessRolePermissionsRequestUio;
30
+ export declare function AccessRolePermissionsRequestUioFromJSON(json: any): AccessRolePermissionsRequestUio;
31
+ export declare function AccessRolePermissionsRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccessRolePermissionsRequestUio;
32
+ export declare function AccessRolePermissionsRequestUioToJSON(json: any): AccessRolePermissionsRequestUio;
33
+ export declare function AccessRolePermissionsRequestUioToJSONTyped(value?: AccessRolePermissionsRequestUio | 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.instanceOfAccessRolePermissionsRequestUio = instanceOfAccessRolePermissionsRequestUio;
17
+ exports.AccessRolePermissionsRequestUioFromJSON = AccessRolePermissionsRequestUioFromJSON;
18
+ exports.AccessRolePermissionsRequestUioFromJSONTyped = AccessRolePermissionsRequestUioFromJSONTyped;
19
+ exports.AccessRolePermissionsRequestUioToJSON = AccessRolePermissionsRequestUioToJSON;
20
+ exports.AccessRolePermissionsRequestUioToJSONTyped = AccessRolePermissionsRequestUioToJSONTyped;
21
+ const PermissionEntryUio_1 = require("./PermissionEntryUio");
22
+ /**
23
+ * Check if a given object implements the AccessRolePermissionsRequestUio interface.
24
+ */
25
+ function instanceOfAccessRolePermissionsRequestUio(value) {
26
+ if (!('permissions' in value) || value['permissions'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function AccessRolePermissionsRequestUioFromJSON(json) {
31
+ return AccessRolePermissionsRequestUioFromJSONTyped(json, false);
32
+ }
33
+ function AccessRolePermissionsRequestUioFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'permissions': (json['permissions'].map(PermissionEntryUio_1.PermissionEntryUioFromJSON)),
39
+ };
40
+ }
41
+ function AccessRolePermissionsRequestUioToJSON(json) {
42
+ return AccessRolePermissionsRequestUioToJSONTyped(json, false);
43
+ }
44
+ function AccessRolePermissionsRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'permissions': (value['permissions'].map(PermissionEntryUio_1.PermissionEntryUioToJSON)),
50
+ };
51
+ }
@@ -0,0 +1,75 @@
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 { PermissionEntryUio } from './PermissionEntryUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AccessRoleUio
17
+ */
18
+ export interface AccessRoleUio {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof AccessRoleUio
23
+ */
24
+ id: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof AccessRoleUio
29
+ */
30
+ organizationId: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof AccessRoleUio
35
+ */
36
+ name: string;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof AccessRoleUio
41
+ */
42
+ description: string;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof AccessRoleUio
47
+ */
48
+ slug?: string | null;
49
+ /**
50
+ *
51
+ * @type {boolean}
52
+ * @memberof AccessRoleUio
53
+ */
54
+ isSystem?: boolean;
55
+ /**
56
+ *
57
+ * @type {string}
58
+ * @memberof AccessRoleUio
59
+ */
60
+ createdAt: string;
61
+ /**
62
+ *
63
+ * @type {Array<PermissionEntryUio>}
64
+ * @memberof AccessRoleUio
65
+ */
66
+ permissions: Array<PermissionEntryUio>;
67
+ }
68
+ /**
69
+ * Check if a given object implements the AccessRoleUio interface.
70
+ */
71
+ export declare function instanceOfAccessRoleUio(value: object): value is AccessRoleUio;
72
+ export declare function AccessRoleUioFromJSON(json: any): AccessRoleUio;
73
+ export declare function AccessRoleUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccessRoleUio;
74
+ export declare function AccessRoleUioToJSON(json: any): AccessRoleUio;
75
+ export declare function AccessRoleUioToJSONTyped(value?: AccessRoleUio | 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.instanceOfAccessRoleUio = instanceOfAccessRoleUio;
17
+ exports.AccessRoleUioFromJSON = AccessRoleUioFromJSON;
18
+ exports.AccessRoleUioFromJSONTyped = AccessRoleUioFromJSONTyped;
19
+ exports.AccessRoleUioToJSON = AccessRoleUioToJSON;
20
+ exports.AccessRoleUioToJSONTyped = AccessRoleUioToJSONTyped;
21
+ const PermissionEntryUio_1 = require("./PermissionEntryUio");
22
+ /**
23
+ * Check if a given object implements the AccessRoleUio interface.
24
+ */
25
+ function instanceOfAccessRoleUio(value) {
26
+ if (!('id' in value) || value['id'] === undefined)
27
+ return false;
28
+ if (!('organizationId' in value) || value['organizationId'] === undefined)
29
+ return false;
30
+ if (!('name' in value) || value['name'] === undefined)
31
+ return false;
32
+ if (!('description' in value) || value['description'] === undefined)
33
+ return false;
34
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
35
+ return false;
36
+ if (!('permissions' in value) || value['permissions'] === undefined)
37
+ return false;
38
+ return true;
39
+ }
40
+ function AccessRoleUioFromJSON(json) {
41
+ return AccessRoleUioFromJSONTyped(json, false);
42
+ }
43
+ function AccessRoleUioFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ 'id': json['id'],
49
+ 'organizationId': json['organizationId'],
50
+ 'name': json['name'],
51
+ 'description': json['description'],
52
+ 'slug': json['slug'] == null ? undefined : json['slug'],
53
+ 'isSystem': json['isSystem'] == null ? undefined : json['isSystem'],
54
+ 'createdAt': json['createdAt'],
55
+ 'permissions': (json['permissions'].map(PermissionEntryUio_1.PermissionEntryUioFromJSON)),
56
+ };
57
+ }
58
+ function AccessRoleUioToJSON(json) {
59
+ return AccessRoleUioToJSONTyped(json, false);
60
+ }
61
+ function AccessRoleUioToJSONTyped(value, ignoreDiscriminator = false) {
62
+ if (value == null) {
63
+ return value;
64
+ }
65
+ return {
66
+ 'id': value['id'],
67
+ 'organizationId': value['organizationId'],
68
+ 'name': value['name'],
69
+ 'description': value['description'],
70
+ 'slug': value['slug'],
71
+ 'isSystem': value['isSystem'],
72
+ 'createdAt': value['createdAt'],
73
+ 'permissions': (value['permissions'].map(PermissionEntryUio_1.PermissionEntryUioToJSON)),
74
+ };
75
+ }
@@ -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 AccessRoleUpdateRequestUio
16
+ */
17
+ export interface AccessRoleUpdateRequestUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AccessRoleUpdateRequestUio
22
+ */
23
+ name: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof AccessRoleUpdateRequestUio
28
+ */
29
+ description?: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the AccessRoleUpdateRequestUio interface.
33
+ */
34
+ export declare function instanceOfAccessRoleUpdateRequestUio(value: object): value is AccessRoleUpdateRequestUio;
35
+ export declare function AccessRoleUpdateRequestUioFromJSON(json: any): AccessRoleUpdateRequestUio;
36
+ export declare function AccessRoleUpdateRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccessRoleUpdateRequestUio;
37
+ export declare function AccessRoleUpdateRequestUioToJSON(json: any): AccessRoleUpdateRequestUio;
38
+ export declare function AccessRoleUpdateRequestUioToJSONTyped(value?: AccessRoleUpdateRequestUio | 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.instanceOfAccessRoleUpdateRequestUio = instanceOfAccessRoleUpdateRequestUio;
17
+ exports.AccessRoleUpdateRequestUioFromJSON = AccessRoleUpdateRequestUioFromJSON;
18
+ exports.AccessRoleUpdateRequestUioFromJSONTyped = AccessRoleUpdateRequestUioFromJSONTyped;
19
+ exports.AccessRoleUpdateRequestUioToJSON = AccessRoleUpdateRequestUioToJSON;
20
+ exports.AccessRoleUpdateRequestUioToJSONTyped = AccessRoleUpdateRequestUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AccessRoleUpdateRequestUio interface.
23
+ */
24
+ function instanceOfAccessRoleUpdateRequestUio(value) {
25
+ if (!('name' in value) || value['name'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function AccessRoleUpdateRequestUioFromJSON(json) {
30
+ return AccessRoleUpdateRequestUioFromJSONTyped(json, false);
31
+ }
32
+ function AccessRoleUpdateRequestUioFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'name': json['name'],
38
+ 'description': json['description'] == null ? undefined : json['description'],
39
+ };
40
+ }
41
+ function AccessRoleUpdateRequestUioToJSON(json) {
42
+ return AccessRoleUpdateRequestUioToJSONTyped(json, false);
43
+ }
44
+ function AccessRoleUpdateRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'name': value['name'],
50
+ 'description': value['description'],
51
+ };
52
+ }
@@ -0,0 +1,63 @@
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 OrganizationPermissionKeyUio: {
17
+ readonly OrgRead: "org.read";
18
+ readonly AgentRead: "agent.read";
19
+ readonly AgentUpdate: "agent.update";
20
+ readonly AgentDelete: "agent.delete";
21
+ readonly AgentChat: "agent.chat";
22
+ readonly AppRead: "app.read";
23
+ readonly KnowledgeRead: "knowledge.read";
24
+ readonly KnowledgeCreate: "knowledge.create";
25
+ readonly KnowledgeUpdate: "knowledge.update";
26
+ readonly KnowledgeDelete: "knowledge.delete";
27
+ readonly KnowledgeFileAdd: "knowledge.file.add";
28
+ readonly KnowledgeFileDelete: "knowledge.file.delete";
29
+ readonly KnowledgeFileDownload: "knowledge.file.download";
30
+ readonly SkillRead: "skill.read";
31
+ readonly SkillCreate: "skill.create";
32
+ readonly SkillUpdate: "skill.update";
33
+ readonly SkillDelete: "skill.delete";
34
+ readonly SkillFileAdd: "skill.file.add";
35
+ readonly SkillFileDelete: "skill.file.delete";
36
+ readonly ModerationRead: "moderation.read";
37
+ readonly ModerationCreate: "moderation.create";
38
+ readonly ModerationUpdate: "moderation.update";
39
+ readonly ModerationDelete: "moderation.delete";
40
+ readonly UserRead: "user.read";
41
+ readonly UserCreate: "user.create";
42
+ readonly UserUpdate: "user.update";
43
+ readonly UserDelete: "user.delete";
44
+ readonly AccessManage: "access.manage";
45
+ readonly EngineRead: "engine.read";
46
+ readonly EngineCreate: "engine.create";
47
+ readonly EngineUpdate: "engine.update";
48
+ readonly EngineDelete: "engine.delete";
49
+ readonly ToolRead: "tool.read";
50
+ readonly ToolCreate: "tool.create";
51
+ readonly ToolUpdate: "tool.update";
52
+ readonly ToolDelete: "tool.delete";
53
+ readonly FlowRead: "flow.read";
54
+ readonly AiGatewayUse: "aiGateway.use";
55
+ readonly AiGatewayMetrics: "aiGateway.metrics";
56
+ readonly MetricsRead: "metrics.read";
57
+ };
58
+ export type OrganizationPermissionKeyUio = typeof OrganizationPermissionKeyUio[keyof typeof OrganizationPermissionKeyUio];
59
+ export declare function instanceOfOrganizationPermissionKeyUio(value: any): boolean;
60
+ export declare function OrganizationPermissionKeyUioFromJSON(json: any): OrganizationPermissionKeyUio;
61
+ export declare function OrganizationPermissionKeyUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrganizationPermissionKeyUio;
62
+ export declare function OrganizationPermissionKeyUioToJSON(value?: OrganizationPermissionKeyUio | null): any;
63
+ export declare function OrganizationPermissionKeyUioToJSONTyped(value: any, ignoreDiscriminator: boolean): OrganizationPermissionKeyUio;
@@ -0,0 +1,89 @@
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.OrganizationPermissionKeyUio = void 0;
17
+ exports.instanceOfOrganizationPermissionKeyUio = instanceOfOrganizationPermissionKeyUio;
18
+ exports.OrganizationPermissionKeyUioFromJSON = OrganizationPermissionKeyUioFromJSON;
19
+ exports.OrganizationPermissionKeyUioFromJSONTyped = OrganizationPermissionKeyUioFromJSONTyped;
20
+ exports.OrganizationPermissionKeyUioToJSON = OrganizationPermissionKeyUioToJSON;
21
+ exports.OrganizationPermissionKeyUioToJSONTyped = OrganizationPermissionKeyUioToJSONTyped;
22
+ /**
23
+ *
24
+ * @export
25
+ */
26
+ exports.OrganizationPermissionKeyUio = {
27
+ OrgRead: 'org.read',
28
+ AgentRead: 'agent.read',
29
+ AgentUpdate: 'agent.update',
30
+ AgentDelete: 'agent.delete',
31
+ AgentChat: 'agent.chat',
32
+ AppRead: 'app.read',
33
+ KnowledgeRead: 'knowledge.read',
34
+ KnowledgeCreate: 'knowledge.create',
35
+ KnowledgeUpdate: 'knowledge.update',
36
+ KnowledgeDelete: 'knowledge.delete',
37
+ KnowledgeFileAdd: 'knowledge.file.add',
38
+ KnowledgeFileDelete: 'knowledge.file.delete',
39
+ KnowledgeFileDownload: 'knowledge.file.download',
40
+ SkillRead: 'skill.read',
41
+ SkillCreate: 'skill.create',
42
+ SkillUpdate: 'skill.update',
43
+ SkillDelete: 'skill.delete',
44
+ SkillFileAdd: 'skill.file.add',
45
+ SkillFileDelete: 'skill.file.delete',
46
+ ModerationRead: 'moderation.read',
47
+ ModerationCreate: 'moderation.create',
48
+ ModerationUpdate: 'moderation.update',
49
+ ModerationDelete: 'moderation.delete',
50
+ UserRead: 'user.read',
51
+ UserCreate: 'user.create',
52
+ UserUpdate: 'user.update',
53
+ UserDelete: 'user.delete',
54
+ AccessManage: 'access.manage',
55
+ EngineRead: 'engine.read',
56
+ EngineCreate: 'engine.create',
57
+ EngineUpdate: 'engine.update',
58
+ EngineDelete: 'engine.delete',
59
+ ToolRead: 'tool.read',
60
+ ToolCreate: 'tool.create',
61
+ ToolUpdate: 'tool.update',
62
+ ToolDelete: 'tool.delete',
63
+ FlowRead: 'flow.read',
64
+ AiGatewayUse: 'aiGateway.use',
65
+ AiGatewayMetrics: 'aiGateway.metrics',
66
+ MetricsRead: 'metrics.read'
67
+ };
68
+ function instanceOfOrganizationPermissionKeyUio(value) {
69
+ for (const key in exports.OrganizationPermissionKeyUio) {
70
+ if (Object.prototype.hasOwnProperty.call(exports.OrganizationPermissionKeyUio, key)) {
71
+ if (exports.OrganizationPermissionKeyUio[key] === value) {
72
+ return true;
73
+ }
74
+ }
75
+ }
76
+ return false;
77
+ }
78
+ function OrganizationPermissionKeyUioFromJSON(json) {
79
+ return OrganizationPermissionKeyUioFromJSONTyped(json, false);
80
+ }
81
+ function OrganizationPermissionKeyUioFromJSONTyped(json, ignoreDiscriminator) {
82
+ return json;
83
+ }
84
+ function OrganizationPermissionKeyUioToJSON(value) {
85
+ return value;
86
+ }
87
+ function OrganizationPermissionKeyUioToJSONTyped(value, ignoreDiscriminator) {
88
+ return value;
89
+ }
@@ -0,0 +1,39 @@
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 { OrganizationPermissionKeyUio } from './OrganizationPermissionKeyUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PermissionEntryUio
17
+ */
18
+ export interface PermissionEntryUio {
19
+ /**
20
+ *
21
+ * @type {OrganizationPermissionKeyUio}
22
+ * @memberof PermissionEntryUio
23
+ */
24
+ permission: OrganizationPermissionKeyUio;
25
+ /**
26
+ *
27
+ * @type {boolean}
28
+ * @memberof PermissionEntryUio
29
+ */
30
+ allowed: boolean;
31
+ }
32
+ /**
33
+ * Check if a given object implements the PermissionEntryUio interface.
34
+ */
35
+ export declare function instanceOfPermissionEntryUio(value: object): value is PermissionEntryUio;
36
+ export declare function PermissionEntryUioFromJSON(json: any): PermissionEntryUio;
37
+ export declare function PermissionEntryUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): PermissionEntryUio;
38
+ export declare function PermissionEntryUioToJSON(json: any): PermissionEntryUio;
39
+ export declare function PermissionEntryUioToJSONTyped(value?: PermissionEntryUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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.instanceOfPermissionEntryUio = instanceOfPermissionEntryUio;
17
+ exports.PermissionEntryUioFromJSON = PermissionEntryUioFromJSON;
18
+ exports.PermissionEntryUioFromJSONTyped = PermissionEntryUioFromJSONTyped;
19
+ exports.PermissionEntryUioToJSON = PermissionEntryUioToJSON;
20
+ exports.PermissionEntryUioToJSONTyped = PermissionEntryUioToJSONTyped;
21
+ const OrganizationPermissionKeyUio_1 = require("./OrganizationPermissionKeyUio");
22
+ /**
23
+ * Check if a given object implements the PermissionEntryUio interface.
24
+ */
25
+ function instanceOfPermissionEntryUio(value) {
26
+ if (!('permission' in value) || value['permission'] === undefined)
27
+ return false;
28
+ if (!('allowed' in value) || value['allowed'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function PermissionEntryUioFromJSON(json) {
33
+ return PermissionEntryUioFromJSONTyped(json, false);
34
+ }
35
+ function PermissionEntryUioFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'permission': (0, OrganizationPermissionKeyUio_1.OrganizationPermissionKeyUioFromJSON)(json['permission']),
41
+ 'allowed': json['allowed'],
42
+ };
43
+ }
44
+ function PermissionEntryUioToJSON(json) {
45
+ return PermissionEntryUioToJSONTyped(json, false);
46
+ }
47
+ function PermissionEntryUioToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'permission': (0, OrganizationPermissionKeyUio_1.OrganizationPermissionKeyUioToJSON)(value['permission']),
53
+ 'allowed': value['allowed'],
54
+ };
55
+ }
@@ -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 UserAccessRolesRequestUio
16
+ */
17
+ export interface UserAccessRolesRequestUio {
18
+ /**
19
+ *
20
+ * @type {Array<string>}
21
+ * @memberof UserAccessRolesRequestUio
22
+ */
23
+ roleIds: Array<string>;
24
+ }
25
+ /**
26
+ * Check if a given object implements the UserAccessRolesRequestUio interface.
27
+ */
28
+ export declare function instanceOfUserAccessRolesRequestUio(value: object): value is UserAccessRolesRequestUio;
29
+ export declare function UserAccessRolesRequestUioFromJSON(json: any): UserAccessRolesRequestUio;
30
+ export declare function UserAccessRolesRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserAccessRolesRequestUio;
31
+ export declare function UserAccessRolesRequestUioToJSON(json: any): UserAccessRolesRequestUio;
32
+ export declare function UserAccessRolesRequestUioToJSONTyped(value?: UserAccessRolesRequestUio | null, ignoreDiscriminator?: boolean): any;