@breign/client 1.0.102 → 1.0.104

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 (58) hide show
  1. package/dist/apis/OrganizationsApi.d.ts +175 -1
  2. package/dist/apis/OrganizationsApi.js +433 -0
  3. package/dist/apis/ToolsApi.d.ts +28 -1
  4. package/dist/apis/ToolsApi.js +63 -0
  5. package/dist/models/AccessRoleCreateRequestUio.d.ts +45 -0
  6. package/dist/models/AccessRoleCreateRequestUio.js +55 -0
  7. package/dist/models/AccessRolePermissionsRequestUio.d.ts +33 -0
  8. package/dist/models/AccessRolePermissionsRequestUio.js +51 -0
  9. package/dist/models/AccessRoleUio.d.ts +75 -0
  10. package/dist/models/AccessRoleUio.js +75 -0
  11. package/dist/models/AccessRoleUpdateRequestUio.d.ts +38 -0
  12. package/dist/models/AccessRoleUpdateRequestUio.js +52 -0
  13. package/dist/models/AgentToolUio.d.ts +14 -0
  14. package/dist/models/AgentToolUio.js +10 -0
  15. package/dist/models/OrganizationMemberUio.d.ts +51 -0
  16. package/dist/models/OrganizationMemberUio.js +63 -0
  17. package/dist/models/OrganizationMemberUserUio.d.ts +32 -0
  18. package/dist/models/OrganizationMemberUserUio.js +50 -0
  19. package/dist/models/OrganizationPermissionKeyUio.d.ts +59 -0
  20. package/dist/models/OrganizationPermissionKeyUio.js +85 -0
  21. package/dist/models/OrganizationUserInviteRequestUio.d.ts +38 -0
  22. package/dist/models/OrganizationUserInviteRequestUio.js +52 -0
  23. package/dist/models/OrganizationUserInviteResponseUio.d.ts +32 -0
  24. package/dist/models/OrganizationUserInviteResponseUio.js +50 -0
  25. package/dist/models/PermissionEntryUio.d.ts +39 -0
  26. package/dist/models/PermissionEntryUio.js +55 -0
  27. package/dist/models/ProviderValiationRequestUio.d.ts +6 -0
  28. package/dist/models/ProviderValiationRequestUio.js +4 -0
  29. package/dist/models/ToolAllowedToolsRequestUio.d.ts +32 -0
  30. package/dist/models/ToolAllowedToolsRequestUio.js +50 -0
  31. package/dist/models/ToolAllowedToolsResponseUio.d.ts +32 -0
  32. package/dist/models/ToolAllowedToolsResponseUio.js +50 -0
  33. package/dist/models/ToolConnectionStatusResponseUio.d.ts +46 -0
  34. package/dist/models/ToolConnectionStatusResponseUio.js +62 -0
  35. package/dist/models/ToolCreateRequestUio.d.ts +14 -0
  36. package/dist/models/ToolCreateRequestUio.js +10 -0
  37. package/dist/models/ToolSecureUio.d.ts +14 -0
  38. package/dist/models/ToolSecureUio.js +10 -1
  39. package/dist/models/UserAccessRolesRequestUio.d.ts +32 -0
  40. package/dist/models/UserAccessRolesRequestUio.js +50 -0
  41. package/dist/models/UserAccessUio.d.ts +39 -0
  42. package/dist/models/UserAccessUio.js +55 -0
  43. package/dist/models/UserAgentAccessAgentUio.d.ts +38 -0
  44. package/dist/models/UserAgentAccessAgentUio.js +54 -0
  45. package/dist/models/UserAgentAccessRequestUio.d.ts +38 -0
  46. package/dist/models/UserAgentAccessRequestUio.js +54 -0
  47. package/dist/models/UserAgentAccessUio.d.ts +45 -0
  48. package/dist/models/UserAgentAccessUio.js +59 -0
  49. package/dist/models/UserDirectPermissionsRequestUio.d.ts +33 -0
  50. package/dist/models/UserDirectPermissionsRequestUio.js +51 -0
  51. package/dist/models/UserUio.d.ts +3 -3
  52. package/dist/models/UserUio.js +3 -3
  53. package/dist/models/index.d.ts +19 -1
  54. package/dist/models/index.js +19 -1
  55. package/dist/openapi.json +985 -30
  56. package/package.json +1 -1
  57. package/dist/models/UserUserUio.d.ts +0 -32
  58. package/dist/models/UserUserUio.js +0 -50
@@ -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.ToolConnectionStatusResponseUioScopeEnum = void 0;
17
+ exports.instanceOfToolConnectionStatusResponseUio = instanceOfToolConnectionStatusResponseUio;
18
+ exports.ToolConnectionStatusResponseUioFromJSON = ToolConnectionStatusResponseUioFromJSON;
19
+ exports.ToolConnectionStatusResponseUioFromJSONTyped = ToolConnectionStatusResponseUioFromJSONTyped;
20
+ exports.ToolConnectionStatusResponseUioToJSON = ToolConnectionStatusResponseUioToJSON;
21
+ exports.ToolConnectionStatusResponseUioToJSONTyped = ToolConnectionStatusResponseUioToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.ToolConnectionStatusResponseUioScopeEnum = {
26
+ Organization: 'organization',
27
+ User: 'user'
28
+ };
29
+ /**
30
+ * Check if a given object implements the ToolConnectionStatusResponseUio interface.
31
+ */
32
+ function instanceOfToolConnectionStatusResponseUio(value) {
33
+ if (!('scope' in value) || value['scope'] === undefined)
34
+ return false;
35
+ if (!('connected' in value) || value['connected'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ function ToolConnectionStatusResponseUioFromJSON(json) {
40
+ return ToolConnectionStatusResponseUioFromJSONTyped(json, false);
41
+ }
42
+ function ToolConnectionStatusResponseUioFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'scope': json['scope'],
48
+ 'connected': json['connected'],
49
+ };
50
+ }
51
+ function ToolConnectionStatusResponseUioToJSON(json) {
52
+ return ToolConnectionStatusResponseUioToJSONTyped(json, false);
53
+ }
54
+ function ToolConnectionStatusResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
55
+ if (value == null) {
56
+ return value;
57
+ }
58
+ return {
59
+ 'scope': value['scope'],
60
+ 'connected': value['connected'],
61
+ };
62
+ }
@@ -39,6 +39,12 @@ export interface ToolCreateRequestUio {
39
39
  * @memberof ToolCreateRequestUio
40
40
  */
41
41
  type: string;
42
+ /**
43
+ * Credentials scope. organization = one shared connection; user = each user connects their own account. Immutable after creation.
44
+ * @type {string}
45
+ * @memberof ToolCreateRequestUio
46
+ */
47
+ scope?: ToolCreateRequestUioScopeEnum;
42
48
  /**
43
49
  *
44
50
  * @type {{ [key: string]: any; }}
@@ -64,6 +70,14 @@ export interface ToolCreateRequestUio {
64
70
  [key: string]: any;
65
71
  };
66
72
  }
73
+ /**
74
+ * @export
75
+ */
76
+ export declare const ToolCreateRequestUioScopeEnum: {
77
+ readonly Organization: "organization";
78
+ readonly User: "user";
79
+ };
80
+ export type ToolCreateRequestUioScopeEnum = typeof ToolCreateRequestUioScopeEnum[keyof typeof ToolCreateRequestUioScopeEnum];
67
81
  /**
68
82
  * Check if a given object implements the ToolCreateRequestUio interface.
69
83
  */
@@ -13,11 +13,19 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ToolCreateRequestUioScopeEnum = void 0;
16
17
  exports.instanceOfToolCreateRequestUio = instanceOfToolCreateRequestUio;
17
18
  exports.ToolCreateRequestUioFromJSON = ToolCreateRequestUioFromJSON;
18
19
  exports.ToolCreateRequestUioFromJSONTyped = ToolCreateRequestUioFromJSONTyped;
19
20
  exports.ToolCreateRequestUioToJSON = ToolCreateRequestUioToJSON;
20
21
  exports.ToolCreateRequestUioToJSONTyped = ToolCreateRequestUioToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.ToolCreateRequestUioScopeEnum = {
26
+ Organization: 'organization',
27
+ User: 'user'
28
+ };
21
29
  /**
22
30
  * Check if a given object implements the ToolCreateRequestUio interface.
23
31
  */
@@ -44,6 +52,7 @@ function ToolCreateRequestUioFromJSONTyped(json, ignoreDiscriminator) {
44
52
  'orgId': json['orgId'],
45
53
  'description': json['description'] == null ? undefined : json['description'],
46
54
  'type': json['type'],
55
+ 'scope': json['scope'] == null ? undefined : json['scope'],
47
56
  'configuration': json['configuration'],
48
57
  'manifest': json['manifest'] == null ? undefined : json['manifest'],
49
58
  'mcp': json['mcp'] == null ? undefined : json['mcp'],
@@ -61,6 +70,7 @@ function ToolCreateRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
61
70
  'orgId': value['orgId'],
62
71
  'description': value['description'],
63
72
  'type': value['type'],
73
+ 'scope': value['scope'],
64
74
  'configuration': value['configuration'],
65
75
  'manifest': value['manifest'],
66
76
  'mcp': value['mcp'],
@@ -49,6 +49,12 @@ export interface ToolSecureUio {
49
49
  * @memberof ToolSecureUio
50
50
  */
51
51
  type: ToolSecureUioTypeEnum;
52
+ /**
53
+ * Credentials scope. Defaults to organization for legacy tools.
54
+ * @type {string}
55
+ * @memberof ToolSecureUio
56
+ */
57
+ scope?: ToolSecureUioScopeEnum;
52
58
  /**
53
59
  *
54
60
  * @type {ToolSecureConfigurationUio}
@@ -82,6 +88,14 @@ export declare const ToolSecureUioTypeEnum: {
82
88
  readonly Mcp: "mcp";
83
89
  };
84
90
  export type ToolSecureUioTypeEnum = typeof ToolSecureUioTypeEnum[keyof typeof ToolSecureUioTypeEnum];
91
+ /**
92
+ * @export
93
+ */
94
+ export declare const ToolSecureUioScopeEnum: {
95
+ readonly Organization: "organization";
96
+ readonly User: "user";
97
+ };
98
+ export type ToolSecureUioScopeEnum = typeof ToolSecureUioScopeEnum[keyof typeof ToolSecureUioScopeEnum];
85
99
  /**
86
100
  * Check if a given object implements the ToolSecureUio interface.
87
101
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.ToolSecureUioTypeEnum = void 0;
16
+ exports.ToolSecureUioScopeEnum = exports.ToolSecureUioTypeEnum = void 0;
17
17
  exports.instanceOfToolSecureUio = instanceOfToolSecureUio;
18
18
  exports.ToolSecureUioFromJSON = ToolSecureUioFromJSON;
19
19
  exports.ToolSecureUioFromJSONTyped = ToolSecureUioFromJSONTyped;
@@ -29,6 +29,13 @@ exports.ToolSecureUioTypeEnum = {
29
29
  ToolApi: 'tool_api',
30
30
  Mcp: 'mcp'
31
31
  };
32
+ /**
33
+ * @export
34
+ */
35
+ exports.ToolSecureUioScopeEnum = {
36
+ Organization: 'organization',
37
+ User: 'user'
38
+ };
32
39
  /**
33
40
  * Check if a given object implements the ToolSecureUio interface.
34
41
  */
@@ -59,6 +66,7 @@ function ToolSecureUioFromJSONTyped(json, ignoreDiscriminator) {
59
66
  'name': json['name'],
60
67
  'description': json['description'] == null ? undefined : json['description'],
61
68
  'type': json['type'],
69
+ 'scope': json['scope'] == null ? undefined : json['scope'],
62
70
  'configuration': (0, ToolSecureConfigurationUio_1.ToolSecureConfigurationUioFromJSON)(json['configuration']),
63
71
  'manifest': json['manifest'] == null ? undefined : (0, ToolSecureManifestUio_1.ToolSecureManifestUioFromJSON)(json['manifest']),
64
72
  'mcp': json['mcp'] == null ? undefined : (0, ToolSecureMcpUio_1.ToolSecureMcpUioFromJSON)(json['mcp']),
@@ -79,6 +87,7 @@ function ToolSecureUioToJSONTyped(value, ignoreDiscriminator = false) {
79
87
  'name': value['name'],
80
88
  'description': value['description'],
81
89
  'type': value['type'],
90
+ 'scope': value['scope'],
82
91
  'configuration': (0, ToolSecureConfigurationUio_1.ToolSecureConfigurationUioToJSON)(value['configuration']),
83
92
  'manifest': (0, ToolSecureManifestUio_1.ToolSecureManifestUioToJSON)(value['manifest']),
84
93
  'mcp': (0, ToolSecureMcpUio_1.ToolSecureMcpUioToJSON)(value['mcp']),
@@ -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;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfUserAccessRolesRequestUio = instanceOfUserAccessRolesRequestUio;
17
+ exports.UserAccessRolesRequestUioFromJSON = UserAccessRolesRequestUioFromJSON;
18
+ exports.UserAccessRolesRequestUioFromJSONTyped = UserAccessRolesRequestUioFromJSONTyped;
19
+ exports.UserAccessRolesRequestUioToJSON = UserAccessRolesRequestUioToJSON;
20
+ exports.UserAccessRolesRequestUioToJSONTyped = UserAccessRolesRequestUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the UserAccessRolesRequestUio interface.
23
+ */
24
+ function instanceOfUserAccessRolesRequestUio(value) {
25
+ if (!('roleIds' in value) || value['roleIds'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function UserAccessRolesRequestUioFromJSON(json) {
30
+ return UserAccessRolesRequestUioFromJSONTyped(json, false);
31
+ }
32
+ function UserAccessRolesRequestUioFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'roleIds': json['roleIds'],
38
+ };
39
+ }
40
+ function UserAccessRolesRequestUioToJSON(json) {
41
+ return UserAccessRolesRequestUioToJSONTyped(json, false);
42
+ }
43
+ function UserAccessRolesRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'roleIds': value['roleIds'],
49
+ };
50
+ }
@@ -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 { PermissionEntryUio } from './PermissionEntryUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface UserAccessUio
17
+ */
18
+ export interface UserAccessUio {
19
+ /**
20
+ *
21
+ * @type {Array<string>}
22
+ * @memberof UserAccessUio
23
+ */
24
+ roleIds: Array<string>;
25
+ /**
26
+ *
27
+ * @type {Array<PermissionEntryUio>}
28
+ * @memberof UserAccessUio
29
+ */
30
+ directPermissions: Array<PermissionEntryUio>;
31
+ }
32
+ /**
33
+ * Check if a given object implements the UserAccessUio interface.
34
+ */
35
+ export declare function instanceOfUserAccessUio(value: object): value is UserAccessUio;
36
+ export declare function UserAccessUioFromJSON(json: any): UserAccessUio;
37
+ export declare function UserAccessUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserAccessUio;
38
+ export declare function UserAccessUioToJSON(json: any): UserAccessUio;
39
+ export declare function UserAccessUioToJSONTyped(value?: UserAccessUio | 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.instanceOfUserAccessUio = instanceOfUserAccessUio;
17
+ exports.UserAccessUioFromJSON = UserAccessUioFromJSON;
18
+ exports.UserAccessUioFromJSONTyped = UserAccessUioFromJSONTyped;
19
+ exports.UserAccessUioToJSON = UserAccessUioToJSON;
20
+ exports.UserAccessUioToJSONTyped = UserAccessUioToJSONTyped;
21
+ const PermissionEntryUio_1 = require("./PermissionEntryUio");
22
+ /**
23
+ * Check if a given object implements the UserAccessUio interface.
24
+ */
25
+ function instanceOfUserAccessUio(value) {
26
+ if (!('roleIds' in value) || value['roleIds'] === undefined)
27
+ return false;
28
+ if (!('directPermissions' in value) || value['directPermissions'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function UserAccessUioFromJSON(json) {
33
+ return UserAccessUioFromJSONTyped(json, false);
34
+ }
35
+ function UserAccessUioFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'roleIds': json['roleIds'],
41
+ 'directPermissions': (json['directPermissions'].map(PermissionEntryUio_1.PermissionEntryUioFromJSON)),
42
+ };
43
+ }
44
+ function UserAccessUioToJSON(json) {
45
+ return UserAccessUioToJSONTyped(json, false);
46
+ }
47
+ function UserAccessUioToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'roleIds': value['roleIds'],
53
+ 'directPermissions': (value['directPermissions'].map(PermissionEntryUio_1.PermissionEntryUioToJSON)),
54
+ };
55
+ }
@@ -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 UserAgentAccessAgentUio
16
+ */
17
+ export interface UserAgentAccessAgentUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof UserAgentAccessAgentUio
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof UserAgentAccessAgentUio
28
+ */
29
+ name: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the UserAgentAccessAgentUio interface.
33
+ */
34
+ export declare function instanceOfUserAgentAccessAgentUio(value: object): value is UserAgentAccessAgentUio;
35
+ export declare function UserAgentAccessAgentUioFromJSON(json: any): UserAgentAccessAgentUio;
36
+ export declare function UserAgentAccessAgentUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserAgentAccessAgentUio;
37
+ export declare function UserAgentAccessAgentUioToJSON(json: any): UserAgentAccessAgentUio;
38
+ export declare function UserAgentAccessAgentUioToJSONTyped(value?: UserAgentAccessAgentUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
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.instanceOfUserAgentAccessAgentUio = instanceOfUserAgentAccessAgentUio;
17
+ exports.UserAgentAccessAgentUioFromJSON = UserAgentAccessAgentUioFromJSON;
18
+ exports.UserAgentAccessAgentUioFromJSONTyped = UserAgentAccessAgentUioFromJSONTyped;
19
+ exports.UserAgentAccessAgentUioToJSON = UserAgentAccessAgentUioToJSON;
20
+ exports.UserAgentAccessAgentUioToJSONTyped = UserAgentAccessAgentUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the UserAgentAccessAgentUio interface.
23
+ */
24
+ function instanceOfUserAgentAccessAgentUio(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('name' in value) || value['name'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function UserAgentAccessAgentUioFromJSON(json) {
32
+ return UserAgentAccessAgentUioFromJSONTyped(json, false);
33
+ }
34
+ function UserAgentAccessAgentUioFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'id': json['id'],
40
+ 'name': json['name'],
41
+ };
42
+ }
43
+ function UserAgentAccessAgentUioToJSON(json) {
44
+ return UserAgentAccessAgentUioToJSONTyped(json, false);
45
+ }
46
+ function UserAgentAccessAgentUioToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'id': value['id'],
52
+ 'name': value['name'],
53
+ };
54
+ }
@@ -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 UserAgentAccessRequestUio
16
+ */
17
+ export interface UserAgentAccessRequestUio {
18
+ /**
19
+ *
20
+ * @type {boolean}
21
+ * @memberof UserAgentAccessRequestUio
22
+ */
23
+ scoped: boolean;
24
+ /**
25
+ *
26
+ * @type {Array<string>}
27
+ * @memberof UserAgentAccessRequestUio
28
+ */
29
+ agentIds: Array<string>;
30
+ }
31
+ /**
32
+ * Check if a given object implements the UserAgentAccessRequestUio interface.
33
+ */
34
+ export declare function instanceOfUserAgentAccessRequestUio(value: object): value is UserAgentAccessRequestUio;
35
+ export declare function UserAgentAccessRequestUioFromJSON(json: any): UserAgentAccessRequestUio;
36
+ export declare function UserAgentAccessRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserAgentAccessRequestUio;
37
+ export declare function UserAgentAccessRequestUioToJSON(json: any): UserAgentAccessRequestUio;
38
+ export declare function UserAgentAccessRequestUioToJSONTyped(value?: UserAgentAccessRequestUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
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.instanceOfUserAgentAccessRequestUio = instanceOfUserAgentAccessRequestUio;
17
+ exports.UserAgentAccessRequestUioFromJSON = UserAgentAccessRequestUioFromJSON;
18
+ exports.UserAgentAccessRequestUioFromJSONTyped = UserAgentAccessRequestUioFromJSONTyped;
19
+ exports.UserAgentAccessRequestUioToJSON = UserAgentAccessRequestUioToJSON;
20
+ exports.UserAgentAccessRequestUioToJSONTyped = UserAgentAccessRequestUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the UserAgentAccessRequestUio interface.
23
+ */
24
+ function instanceOfUserAgentAccessRequestUio(value) {
25
+ if (!('scoped' in value) || value['scoped'] === undefined)
26
+ return false;
27
+ if (!('agentIds' in value) || value['agentIds'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function UserAgentAccessRequestUioFromJSON(json) {
32
+ return UserAgentAccessRequestUioFromJSONTyped(json, false);
33
+ }
34
+ function UserAgentAccessRequestUioFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'scoped': json['scoped'],
40
+ 'agentIds': json['agentIds'],
41
+ };
42
+ }
43
+ function UserAgentAccessRequestUioToJSON(json) {
44
+ return UserAgentAccessRequestUioToJSONTyped(json, false);
45
+ }
46
+ function UserAgentAccessRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'scoped': value['scoped'],
52
+ 'agentIds': value['agentIds'],
53
+ };
54
+ }
@@ -0,0 +1,45 @@
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 { UserAgentAccessAgentUio } from './UserAgentAccessAgentUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface UserAgentAccessUio
17
+ */
18
+ export interface UserAgentAccessUio {
19
+ /**
20
+ * When true, only listed agents are accessible (org-wide agent.read is ignored for listing).
21
+ * @type {boolean}
22
+ * @memberof UserAgentAccessUio
23
+ */
24
+ scoped: boolean;
25
+ /**
26
+ *
27
+ * @type {Array<string>}
28
+ * @memberof UserAgentAccessUio
29
+ */
30
+ agentIds: Array<string>;
31
+ /**
32
+ *
33
+ * @type {Array<UserAgentAccessAgentUio>}
34
+ * @memberof UserAgentAccessUio
35
+ */
36
+ availableAgents: Array<UserAgentAccessAgentUio>;
37
+ }
38
+ /**
39
+ * Check if a given object implements the UserAgentAccessUio interface.
40
+ */
41
+ export declare function instanceOfUserAgentAccessUio(value: object): value is UserAgentAccessUio;
42
+ export declare function UserAgentAccessUioFromJSON(json: any): UserAgentAccessUio;
43
+ export declare function UserAgentAccessUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserAgentAccessUio;
44
+ export declare function UserAgentAccessUioToJSON(json: any): UserAgentAccessUio;
45
+ export declare function UserAgentAccessUioToJSONTyped(value?: UserAgentAccessUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,59 @@
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.instanceOfUserAgentAccessUio = instanceOfUserAgentAccessUio;
17
+ exports.UserAgentAccessUioFromJSON = UserAgentAccessUioFromJSON;
18
+ exports.UserAgentAccessUioFromJSONTyped = UserAgentAccessUioFromJSONTyped;
19
+ exports.UserAgentAccessUioToJSON = UserAgentAccessUioToJSON;
20
+ exports.UserAgentAccessUioToJSONTyped = UserAgentAccessUioToJSONTyped;
21
+ const UserAgentAccessAgentUio_1 = require("./UserAgentAccessAgentUio");
22
+ /**
23
+ * Check if a given object implements the UserAgentAccessUio interface.
24
+ */
25
+ function instanceOfUserAgentAccessUio(value) {
26
+ if (!('scoped' in value) || value['scoped'] === undefined)
27
+ return false;
28
+ if (!('agentIds' in value) || value['agentIds'] === undefined)
29
+ return false;
30
+ if (!('availableAgents' in value) || value['availableAgents'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ function UserAgentAccessUioFromJSON(json) {
35
+ return UserAgentAccessUioFromJSONTyped(json, false);
36
+ }
37
+ function UserAgentAccessUioFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'scoped': json['scoped'],
43
+ 'agentIds': json['agentIds'],
44
+ 'availableAgents': (json['availableAgents'].map(UserAgentAccessAgentUio_1.UserAgentAccessAgentUioFromJSON)),
45
+ };
46
+ }
47
+ function UserAgentAccessUioToJSON(json) {
48
+ return UserAgentAccessUioToJSONTyped(json, false);
49
+ }
50
+ function UserAgentAccessUioToJSONTyped(value, ignoreDiscriminator = false) {
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'scoped': value['scoped'],
56
+ 'agentIds': value['agentIds'],
57
+ 'availableAgents': (value['availableAgents'].map(UserAgentAccessAgentUio_1.UserAgentAccessAgentUioToJSON)),
58
+ };
59
+ }