@breign/client 1.0.154 → 1.0.156

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/apis/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/FileCreationResponseUio.d.ts +6 -0
  12. package/dist/models/FileCreationResponseUio.js +2 -0
  13. package/dist/models/FileStatusUio.d.ts +1 -0
  14. package/dist/models/FileStatusUio.js +2 -1
  15. package/dist/models/FileUio.d.ts +6 -0
  16. package/dist/models/FileUio.js +2 -0
  17. package/dist/models/FileWithDownloadUrlUio.d.ts +6 -0
  18. package/dist/models/FileWithDownloadUrlUio.js +2 -0
  19. package/dist/models/KnowledgeFileUio.d.ts +6 -0
  20. package/dist/models/KnowledgeFileUio.js +2 -0
  21. package/dist/models/OrganizationPermissionKeyUio.d.ts +63 -0
  22. package/dist/models/OrganizationPermissionKeyUio.js +89 -0
  23. package/dist/models/PermissionEntryUio.d.ts +39 -0
  24. package/dist/models/PermissionEntryUio.js +55 -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/index.d.ts +12 -0
  38. package/dist/models/index.js +12 -0
  39. package/dist/openapi.json +658 -1
  40. 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
+ }
@@ -120,6 +120,12 @@ export interface FileCreationResponseUio {
120
120
  * @memberof FileCreationResponseUio
121
121
  */
122
122
  status?: FileStatusUio;
123
+ /**
124
+ * Why the file ended in ERROR; null otherwise.
125
+ * @type {string}
126
+ * @memberof FileCreationResponseUio
127
+ */
128
+ error?: string | null;
123
129
  /**
124
130
  *
125
131
  * @type {boolean}
@@ -65,6 +65,7 @@ function FileCreationResponseUioFromJSONTyped(json, ignoreDiscriminator) {
65
65
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
66
66
  'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
67
67
  'status': json['status'] == null ? undefined : (0, FileStatusUio_1.FileStatusUioFromJSON)(json['status']),
68
+ 'error': json['error'] == null ? undefined : json['error'],
68
69
  'isActive': json['isActive'] == null ? undefined : json['isActive'],
69
70
  };
70
71
  }
@@ -93,6 +94,7 @@ function FileCreationResponseUioToJSONTyped(value, ignoreDiscriminator = false)
93
94
  'createdAt': value['createdAt'],
94
95
  'updatedAt': value['updatedAt'],
95
96
  'status': (0, FileStatusUio_1.FileStatusUioToJSON)(value['status']),
97
+ 'error': value['error'],
96
98
  'isActive': value['isActive'],
97
99
  };
98
100
  }
@@ -19,6 +19,7 @@ export declare const FileStatusUio: {
19
19
  readonly Uploaded: "UPLOADED";
20
20
  readonly Processing: "PROCESSING";
21
21
  readonly Indexed: "INDEXED";
22
+ readonly Error: "ERROR";
22
23
  };
23
24
  export type FileStatusUio = typeof FileStatusUio[keyof typeof FileStatusUio];
24
25
  export declare function instanceOfFileStatusUio(value: any): boolean;
@@ -28,7 +28,8 @@ exports.FileStatusUio = {
28
28
  Pending: 'PENDING',
29
29
  Uploaded: 'UPLOADED',
30
30
  Processing: 'PROCESSING',
31
- Indexed: 'INDEXED'
31
+ Indexed: 'INDEXED',
32
+ Error: 'ERROR'
32
33
  };
33
34
  function instanceOfFileStatusUio(value) {
34
35
  for (const key in exports.FileStatusUio) {
@@ -120,6 +120,12 @@ export interface FileUio {
120
120
  * @memberof FileUio
121
121
  */
122
122
  status?: FileStatusUio;
123
+ /**
124
+ * Why the file ended in ERROR; null otherwise.
125
+ * @type {string}
126
+ * @memberof FileUio
127
+ */
128
+ error?: string | null;
123
129
  /**
124
130
  *
125
131
  * @type {boolean}
@@ -61,6 +61,7 @@ function FileUioFromJSONTyped(json, ignoreDiscriminator) {
61
61
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
62
62
  'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
63
63
  'status': json['status'] == null ? undefined : (0, FileStatusUio_1.FileStatusUioFromJSON)(json['status']),
64
+ 'error': json['error'] == null ? undefined : json['error'],
64
65
  'isActive': json['isActive'] == null ? undefined : json['isActive'],
65
66
  };
66
67
  }
@@ -89,6 +90,7 @@ function FileUioToJSONTyped(value, ignoreDiscriminator = false) {
89
90
  'createdAt': value['createdAt'],
90
91
  'updatedAt': value['updatedAt'],
91
92
  'status': (0, FileStatusUio_1.FileStatusUioToJSON)(value['status']),
93
+ 'error': value['error'],
92
94
  'isActive': value['isActive'],
93
95
  };
94
96
  }
@@ -120,6 +120,12 @@ export interface FileWithDownloadUrlUio {
120
120
  * @memberof FileWithDownloadUrlUio
121
121
  */
122
122
  status?: FileStatusUio;
123
+ /**
124
+ * Why the file ended in ERROR; null otherwise.
125
+ * @type {string}
126
+ * @memberof FileWithDownloadUrlUio
127
+ */
128
+ error?: string | null;
123
129
  /**
124
130
  *
125
131
  * @type {boolean}
@@ -63,6 +63,7 @@ function FileWithDownloadUrlUioFromJSONTyped(json, ignoreDiscriminator) {
63
63
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
64
64
  'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
65
65
  'status': json['status'] == null ? undefined : (0, FileStatusUio_1.FileStatusUioFromJSON)(json['status']),
66
+ 'error': json['error'] == null ? undefined : json['error'],
66
67
  'isActive': json['isActive'] == null ? undefined : json['isActive'],
67
68
  'downloadURL': json['downloadURL'],
68
69
  };
@@ -92,6 +93,7 @@ function FileWithDownloadUrlUioToJSONTyped(value, ignoreDiscriminator = false) {
92
93
  'createdAt': value['createdAt'],
93
94
  'updatedAt': value['updatedAt'],
94
95
  'status': (0, FileStatusUio_1.FileStatusUioToJSON)(value['status']),
96
+ 'error': value['error'],
95
97
  'isActive': value['isActive'],
96
98
  'downloadURL': value['downloadURL'],
97
99
  };
@@ -120,6 +120,12 @@ export interface KnowledgeFileUio {
120
120
  * @memberof KnowledgeFileUio
121
121
  */
122
122
  status?: FileStatusUio;
123
+ /**
124
+ * Why the file ended in ERROR; null otherwise.
125
+ * @type {string}
126
+ * @memberof KnowledgeFileUio
127
+ */
128
+ error?: string | null;
123
129
  /**
124
130
  *
125
131
  * @type {boolean}
@@ -61,6 +61,7 @@ function KnowledgeFileUioFromJSONTyped(json, ignoreDiscriminator) {
61
61
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
62
62
  'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
63
63
  'status': json['status'] == null ? undefined : (0, FileStatusUio_1.FileStatusUioFromJSON)(json['status']),
64
+ 'error': json['error'] == null ? undefined : json['error'],
64
65
  'isActive': json['isActive'] == null ? undefined : json['isActive'],
65
66
  };
66
67
  }
@@ -89,6 +90,7 @@ function KnowledgeFileUioToJSONTyped(value, ignoreDiscriminator = false) {
89
90
  'createdAt': value['createdAt'],
90
91
  'updatedAt': value['updatedAt'],
91
92
  'status': (0, FileStatusUio_1.FileStatusUioToJSON)(value['status']),
93
+ 'error': value['error'],
92
94
  'isActive': value['isActive'],
93
95
  };
94
96
  }
@@ -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;