@breign/client 1.0.102 → 1.0.103

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 (44) hide show
  1. package/dist/apis/OrganizationsApi.d.ts +175 -1
  2. package/dist/apis/OrganizationsApi.js +433 -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/OrganizationMemberUio.d.ts +51 -0
  12. package/dist/models/OrganizationMemberUio.js +63 -0
  13. package/dist/models/OrganizationMemberUserUio.d.ts +32 -0
  14. package/dist/models/OrganizationMemberUserUio.js +50 -0
  15. package/dist/models/OrganizationPermissionKeyUio.d.ts +59 -0
  16. package/dist/models/OrganizationPermissionKeyUio.js +85 -0
  17. package/dist/models/OrganizationUserInviteRequestUio.d.ts +38 -0
  18. package/dist/models/OrganizationUserInviteRequestUio.js +52 -0
  19. package/dist/models/OrganizationUserInviteResponseUio.d.ts +32 -0
  20. package/dist/models/OrganizationUserInviteResponseUio.js +50 -0
  21. package/dist/models/PermissionEntryUio.d.ts +39 -0
  22. package/dist/models/PermissionEntryUio.js +55 -0
  23. package/dist/models/ProviderValiationRequestUio.d.ts +6 -0
  24. package/dist/models/ProviderValiationRequestUio.js +4 -0
  25. package/dist/models/UserAccessRolesRequestUio.d.ts +32 -0
  26. package/dist/models/UserAccessRolesRequestUio.js +50 -0
  27. package/dist/models/UserAccessUio.d.ts +39 -0
  28. package/dist/models/UserAccessUio.js +55 -0
  29. package/dist/models/UserAgentAccessAgentUio.d.ts +38 -0
  30. package/dist/models/UserAgentAccessAgentUio.js +54 -0
  31. package/dist/models/UserAgentAccessRequestUio.d.ts +38 -0
  32. package/dist/models/UserAgentAccessRequestUio.js +54 -0
  33. package/dist/models/UserAgentAccessUio.d.ts +45 -0
  34. package/dist/models/UserAgentAccessUio.js +59 -0
  35. package/dist/models/UserDirectPermissionsRequestUio.d.ts +33 -0
  36. package/dist/models/UserDirectPermissionsRequestUio.js +51 -0
  37. package/dist/models/UserUio.d.ts +3 -3
  38. package/dist/models/UserUio.js +3 -3
  39. package/dist/models/index.d.ts +16 -1
  40. package/dist/models/index.js +16 -1
  41. package/dist/openapi.json +824 -11
  42. package/package.json +1 -1
  43. package/dist/models/UserUserUio.d.ts +0 -32
  44. package/dist/models/UserUserUio.js +0 -50
@@ -0,0 +1,32 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface OrganizationUserInviteResponseUio
16
+ */
17
+ export interface OrganizationUserInviteResponseUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof OrganizationUserInviteResponseUio
22
+ */
23
+ userId: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the OrganizationUserInviteResponseUio interface.
27
+ */
28
+ export declare function instanceOfOrganizationUserInviteResponseUio(value: object): value is OrganizationUserInviteResponseUio;
29
+ export declare function OrganizationUserInviteResponseUioFromJSON(json: any): OrganizationUserInviteResponseUio;
30
+ export declare function OrganizationUserInviteResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrganizationUserInviteResponseUio;
31
+ export declare function OrganizationUserInviteResponseUioToJSON(json: any): OrganizationUserInviteResponseUio;
32
+ export declare function OrganizationUserInviteResponseUioToJSONTyped(value?: OrganizationUserInviteResponseUio | 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.instanceOfOrganizationUserInviteResponseUio = instanceOfOrganizationUserInviteResponseUio;
17
+ exports.OrganizationUserInviteResponseUioFromJSON = OrganizationUserInviteResponseUioFromJSON;
18
+ exports.OrganizationUserInviteResponseUioFromJSONTyped = OrganizationUserInviteResponseUioFromJSONTyped;
19
+ exports.OrganizationUserInviteResponseUioToJSON = OrganizationUserInviteResponseUioToJSON;
20
+ exports.OrganizationUserInviteResponseUioToJSONTyped = OrganizationUserInviteResponseUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the OrganizationUserInviteResponseUio interface.
23
+ */
24
+ function instanceOfOrganizationUserInviteResponseUio(value) {
25
+ if (!('userId' in value) || value['userId'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function OrganizationUserInviteResponseUioFromJSON(json) {
30
+ return OrganizationUserInviteResponseUioFromJSONTyped(json, false);
31
+ }
32
+ function OrganizationUserInviteResponseUioFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'userId': json['userId'],
38
+ };
39
+ }
40
+ function OrganizationUserInviteResponseUioToJSON(json) {
41
+ return OrganizationUserInviteResponseUioToJSONTyped(json, false);
42
+ }
43
+ function OrganizationUserInviteResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'userId': value['userId'],
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 { 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
+ }
@@ -15,6 +15,12 @@
15
15
  * @interface ProviderValiationRequestUio
16
16
  */
17
17
  export interface ProviderValiationRequestUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ProviderValiationRequestUio
22
+ */
23
+ organizationId: string;
18
24
  /**
19
25
  *
20
26
  * @type {string}
@@ -22,6 +22,8 @@ exports.ProviderValiationRequestUioToJSONTyped = ProviderValiationRequestUioToJS
22
22
  * Check if a given object implements the ProviderValiationRequestUio interface.
23
23
  */
24
24
  function instanceOfProviderValiationRequestUio(value) {
25
+ if (!('organizationId' in value) || value['organizationId'] === undefined)
26
+ return false;
25
27
  if (!('providerType' in value) || value['providerType'] === undefined)
26
28
  return false;
27
29
  if (!('apiKey' in value) || value['apiKey'] === undefined)
@@ -36,6 +38,7 @@ function ProviderValiationRequestUioFromJSONTyped(json, ignoreDiscriminator) {
36
38
  return json;
37
39
  }
38
40
  return {
41
+ 'organizationId': json['organizationId'],
39
42
  'providerType': json['providerType'],
40
43
  'apiKey': json['apiKey'],
41
44
  };
@@ -48,6 +51,7 @@ function ProviderValiationRequestUioToJSONTyped(value, ignoreDiscriminator = fal
48
51
  return value;
49
52
  }
50
53
  return {
54
+ 'organizationId': value['organizationId'],
51
55
  'providerType': value['providerType'],
52
56
  'apiKey': value['apiKey'],
53
57
  };
@@ -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;