@breign/client 1.0.136 → 1.0.138

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 (62) hide show
  1. package/dist/apis/LibraryAgentsApi.d.ts +211 -0
  2. package/dist/apis/LibraryAgentsApi.js +537 -0
  3. package/dist/apis/index.d.ts +1 -0
  4. package/dist/apis/index.js +1 -0
  5. package/dist/models/AgentBundleDiffUio.d.ts +79 -0
  6. package/dist/models/AgentBundleDiffUio.js +85 -0
  7. package/dist/models/AgentBundleListDiffUio.d.ts +44 -0
  8. package/dist/models/AgentBundleListDiffUio.js +58 -0
  9. package/dist/models/AgentLibraryLinkLatestVersionUio.d.ts +44 -0
  10. package/dist/models/AgentLibraryLinkLatestVersionUio.js +58 -0
  11. package/dist/models/AgentLibraryLinkUio.d.ts +81 -0
  12. package/dist/models/AgentLibraryLinkUio.js +79 -0
  13. package/dist/models/AgentLibraryLinkUpdateRequestUio.d.ts +38 -0
  14. package/dist/models/AgentLibraryLinkUpdateRequestUio.js +52 -0
  15. package/dist/models/AgentLibraryLinkUpdateResponseUio.d.ts +69 -0
  16. package/dist/models/AgentLibraryLinkUpdateResponseUio.js +75 -0
  17. package/dist/models/AgentLibraryLinksResponseUio.d.ts +33 -0
  18. package/dist/models/AgentLibraryLinksResponseUio.js +51 -0
  19. package/dist/models/FileAttachmentCreateRequestUio.d.ts +6 -0
  20. package/dist/models/FileAttachmentCreateRequestUio.js +2 -0
  21. package/dist/models/FileAttachmentDetailsResponseUio.d.ts +6 -0
  22. package/dist/models/FileAttachmentDetailsResponseUio.js +2 -0
  23. package/dist/models/FileAttachmentUio.d.ts +6 -0
  24. package/dist/models/FileAttachmentUio.js +2 -0
  25. package/dist/models/FileAttachmentUploadResponseUio.d.ts +6 -0
  26. package/dist/models/FileAttachmentUploadResponseUio.js +2 -0
  27. package/dist/models/FileCreationResponseUio.d.ts +6 -0
  28. package/dist/models/FileCreationResponseUio.js +2 -0
  29. package/dist/models/FileUio.d.ts +6 -0
  30. package/dist/models/FileUio.js +2 -0
  31. package/dist/models/FileWithDownloadUrlUio.d.ts +6 -0
  32. package/dist/models/FileWithDownloadUrlUio.js +2 -0
  33. package/dist/models/KnowledgeFileCreationRequestUio.d.ts +6 -0
  34. package/dist/models/KnowledgeFileCreationRequestUio.js +2 -0
  35. package/dist/models/KnowledgeFileUio.d.ts +6 -0
  36. package/dist/models/KnowledgeFileUio.js +2 -0
  37. package/dist/models/LibraryAgentBundleSummaryUio.d.ts +56 -0
  38. package/dist/models/LibraryAgentBundleSummaryUio.js +66 -0
  39. package/dist/models/LibraryAgentDiffResponseUio.d.ts +46 -0
  40. package/dist/models/LibraryAgentDiffResponseUio.js +60 -0
  41. package/dist/models/LibraryAgentDiffVersionRefUio.d.ts +38 -0
  42. package/dist/models/LibraryAgentDiffVersionRefUio.js +54 -0
  43. package/dist/models/LibraryAgentEntryUio.d.ts +87 -0
  44. package/dist/models/LibraryAgentEntryUio.js +83 -0
  45. package/dist/models/LibraryAgentInstallRequestUio.d.ts +38 -0
  46. package/dist/models/LibraryAgentInstallRequestUio.js +52 -0
  47. package/dist/models/LibraryAgentInstallResponseUio.d.ts +75 -0
  48. package/dist/models/LibraryAgentInstallResponseUio.js +77 -0
  49. package/dist/models/LibraryAgentParseBundleRequestUio.d.ts +46 -0
  50. package/dist/models/LibraryAgentParseBundleRequestUio.js +62 -0
  51. package/dist/models/LibraryAgentPublishRequestUio.d.ts +68 -0
  52. package/dist/models/LibraryAgentPublishRequestUio.js +60 -0
  53. package/dist/models/LibraryAgentPublishVersionRequestUio.d.ts +62 -0
  54. package/dist/models/LibraryAgentPublishVersionRequestUio.js +58 -0
  55. package/dist/models/LibraryAgentVersionUio.d.ts +99 -0
  56. package/dist/models/LibraryAgentVersionUio.js +87 -0
  57. package/dist/models/LibraryAgentsPageUio.d.ts +63 -0
  58. package/dist/models/LibraryAgentsPageUio.js +71 -0
  59. package/dist/models/index.d.ts +18 -0
  60. package/dist/models/index.js +18 -0
  61. package/dist/openapi.json +6035 -4919
  62. package/package.json +1 -1
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfAgentLibraryLinkUpdateResponseUio = instanceOfAgentLibraryLinkUpdateResponseUio;
17
+ exports.AgentLibraryLinkUpdateResponseUioFromJSON = AgentLibraryLinkUpdateResponseUioFromJSON;
18
+ exports.AgentLibraryLinkUpdateResponseUioFromJSONTyped = AgentLibraryLinkUpdateResponseUioFromJSONTyped;
19
+ exports.AgentLibraryLinkUpdateResponseUioToJSON = AgentLibraryLinkUpdateResponseUioToJSON;
20
+ exports.AgentLibraryLinkUpdateResponseUioToJSONTyped = AgentLibraryLinkUpdateResponseUioToJSONTyped;
21
+ const AgentImportReportUio_1 = require("./AgentImportReportUio");
22
+ /**
23
+ * Check if a given object implements the AgentLibraryLinkUpdateResponseUio interface.
24
+ */
25
+ function instanceOfAgentLibraryLinkUpdateResponseUio(value) {
26
+ if (!('agentId' in value) || value['agentId'] === undefined)
27
+ return false;
28
+ if (!('agentName' in value) || value['agentName'] === undefined)
29
+ return false;
30
+ if (!('clean' in value) || value['clean'] === undefined)
31
+ return false;
32
+ if (!('report' in value) || value['report'] === undefined)
33
+ return false;
34
+ if (!('librarySlug' in value) || value['librarySlug'] === undefined)
35
+ return false;
36
+ if (!('libraryVersionId' in value) || value['libraryVersionId'] === undefined)
37
+ return false;
38
+ if (!('libraryVersion' in value) || value['libraryVersion'] === undefined)
39
+ return false;
40
+ return true;
41
+ }
42
+ function AgentLibraryLinkUpdateResponseUioFromJSON(json) {
43
+ return AgentLibraryLinkUpdateResponseUioFromJSONTyped(json, false);
44
+ }
45
+ function AgentLibraryLinkUpdateResponseUioFromJSONTyped(json, ignoreDiscriminator) {
46
+ if (json == null) {
47
+ return json;
48
+ }
49
+ return {
50
+ 'agentId': json['agentId'],
51
+ 'agentName': json['agentName'],
52
+ 'clean': json['clean'],
53
+ 'report': (0, AgentImportReportUio_1.AgentImportReportUioFromJSON)(json['report']),
54
+ 'librarySlug': json['librarySlug'],
55
+ 'libraryVersionId': json['libraryVersionId'],
56
+ 'libraryVersion': json['libraryVersion'],
57
+ };
58
+ }
59
+ function AgentLibraryLinkUpdateResponseUioToJSON(json) {
60
+ return AgentLibraryLinkUpdateResponseUioToJSONTyped(json, false);
61
+ }
62
+ function AgentLibraryLinkUpdateResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+ return {
67
+ 'agentId': value['agentId'],
68
+ 'agentName': value['agentName'],
69
+ 'clean': value['clean'],
70
+ 'report': (0, AgentImportReportUio_1.AgentImportReportUioToJSON)(value['report']),
71
+ 'librarySlug': value['librarySlug'],
72
+ 'libraryVersionId': value['libraryVersionId'],
73
+ 'libraryVersion': value['libraryVersion'],
74
+ };
75
+ }
@@ -0,0 +1,33 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { AgentLibraryLinkUio } from './AgentLibraryLinkUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AgentLibraryLinksResponseUio
17
+ */
18
+ export interface AgentLibraryLinksResponseUio {
19
+ /**
20
+ *
21
+ * @type {Array<AgentLibraryLinkUio>}
22
+ * @memberof AgentLibraryLinksResponseUio
23
+ */
24
+ data: Array<AgentLibraryLinkUio>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the AgentLibraryLinksResponseUio interface.
28
+ */
29
+ export declare function instanceOfAgentLibraryLinksResponseUio(value: object): value is AgentLibraryLinksResponseUio;
30
+ export declare function AgentLibraryLinksResponseUioFromJSON(json: any): AgentLibraryLinksResponseUio;
31
+ export declare function AgentLibraryLinksResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentLibraryLinksResponseUio;
32
+ export declare function AgentLibraryLinksResponseUioToJSON(json: any): AgentLibraryLinksResponseUio;
33
+ export declare function AgentLibraryLinksResponseUioToJSONTyped(value?: AgentLibraryLinksResponseUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfAgentLibraryLinksResponseUio = instanceOfAgentLibraryLinksResponseUio;
17
+ exports.AgentLibraryLinksResponseUioFromJSON = AgentLibraryLinksResponseUioFromJSON;
18
+ exports.AgentLibraryLinksResponseUioFromJSONTyped = AgentLibraryLinksResponseUioFromJSONTyped;
19
+ exports.AgentLibraryLinksResponseUioToJSON = AgentLibraryLinksResponseUioToJSON;
20
+ exports.AgentLibraryLinksResponseUioToJSONTyped = AgentLibraryLinksResponseUioToJSONTyped;
21
+ const AgentLibraryLinkUio_1 = require("./AgentLibraryLinkUio");
22
+ /**
23
+ * Check if a given object implements the AgentLibraryLinksResponseUio interface.
24
+ */
25
+ function instanceOfAgentLibraryLinksResponseUio(value) {
26
+ if (!('data' in value) || value['data'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function AgentLibraryLinksResponseUioFromJSON(json) {
31
+ return AgentLibraryLinksResponseUioFromJSONTyped(json, false);
32
+ }
33
+ function AgentLibraryLinksResponseUioFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'data': (json['data'].map(AgentLibraryLinkUio_1.AgentLibraryLinkUioFromJSON)),
39
+ };
40
+ }
41
+ function AgentLibraryLinksResponseUioToJSON(json) {
42
+ return AgentLibraryLinksResponseUioToJSONTyped(json, false);
43
+ }
44
+ function AgentLibraryLinksResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'data': (value['data'].map(AgentLibraryLinkUio_1.AgentLibraryLinkUioToJSON)),
50
+ };
51
+ }
@@ -45,6 +45,12 @@ export interface FileAttachmentCreateRequestUio {
45
45
  * @memberof FileAttachmentCreateRequestUio
46
46
  */
47
47
  size: number;
48
+ /**
49
+ * Run the OCR pre-pass before parsing the attachment
50
+ * @type {boolean}
51
+ * @memberof FileAttachmentCreateRequestUio
52
+ */
53
+ ocr?: boolean;
48
54
  }
49
55
  /**
50
56
  * @export
@@ -54,6 +54,7 @@ function FileAttachmentCreateRequestUioFromJSONTyped(json, ignoreDiscriminator)
54
54
  'mimeType': json['mimeType'],
55
55
  'ext': json['ext'],
56
56
  'size': json['size'],
57
+ 'ocr': json['ocr'] == null ? undefined : json['ocr'],
57
58
  };
58
59
  }
59
60
  function FileAttachmentCreateRequestUioToJSON(json) {
@@ -69,5 +70,6 @@ function FileAttachmentCreateRequestUioToJSONTyped(value, ignoreDiscriminator =
69
70
  'mimeType': value['mimeType'],
70
71
  'ext': value['ext'],
71
72
  'size': value['size'],
73
+ 'ocr': value['ocr'],
72
74
  };
73
75
  }
@@ -72,6 +72,12 @@ export interface FileAttachmentDetailsResponseUio {
72
72
  * @memberof FileAttachmentDetailsResponseUio
73
73
  */
74
74
  status: FileAttachmentStatusUio;
75
+ /**
76
+ * Whether the OCR pre-pass runs before parsing this attachment
77
+ * @type {boolean}
78
+ * @memberof FileAttachmentDetailsResponseUio
79
+ */
80
+ ocr?: boolean;
75
81
  /**
76
82
  * Machine-readable error code when status is ERROR (e.g. ATTACHMENT_TOO_LARGE)
77
83
  * @type {string}
@@ -67,6 +67,7 @@ function FileAttachmentDetailsResponseUioFromJSONTyped(json, ignoreDiscriminator
67
67
  'key': json['key'],
68
68
  'url': json['url'] == null ? undefined : json['url'],
69
69
  'status': (0, FileAttachmentStatusUio_1.FileAttachmentStatusUioFromJSON)(json['status']),
70
+ 'ocr': json['ocr'] == null ? undefined : json['ocr'],
70
71
  'errorCode': json['errorCode'] == null ? undefined : json['errorCode'],
71
72
  'estimatedTokens': json['estimatedTokens'] == null ? undefined : json['estimatedTokens'],
72
73
  'maxTokens': json['maxTokens'] == null ? undefined : json['maxTokens'],
@@ -90,6 +91,7 @@ function FileAttachmentDetailsResponseUioToJSONTyped(value, ignoreDiscriminator
90
91
  'key': value['key'],
91
92
  'url': value['url'],
92
93
  'status': (0, FileAttachmentStatusUio_1.FileAttachmentStatusUioToJSON)(value['status']),
94
+ 'ocr': value['ocr'],
93
95
  'errorCode': value['errorCode'],
94
96
  'estimatedTokens': value['estimatedTokens'],
95
97
  'maxTokens': value['maxTokens'],
@@ -72,6 +72,12 @@ export interface FileAttachmentUio {
72
72
  * @memberof FileAttachmentUio
73
73
  */
74
74
  status: FileAttachmentStatusUio;
75
+ /**
76
+ * Whether the OCR pre-pass runs before parsing this attachment
77
+ * @type {boolean}
78
+ * @memberof FileAttachmentUio
79
+ */
80
+ ocr?: boolean;
75
81
  /**
76
82
  * Machine-readable error code when status is ERROR (e.g. ATTACHMENT_TOO_LARGE)
77
83
  * @type {string}
@@ -67,6 +67,7 @@ function FileAttachmentUioFromJSONTyped(json, ignoreDiscriminator) {
67
67
  'key': json['key'],
68
68
  'url': json['url'] == null ? undefined : json['url'],
69
69
  'status': (0, FileAttachmentStatusUio_1.FileAttachmentStatusUioFromJSON)(json['status']),
70
+ 'ocr': json['ocr'] == null ? undefined : json['ocr'],
70
71
  'errorCode': json['errorCode'] == null ? undefined : json['errorCode'],
71
72
  'estimatedTokens': json['estimatedTokens'] == null ? undefined : json['estimatedTokens'],
72
73
  'maxTokens': json['maxTokens'] == null ? undefined : json['maxTokens'],
@@ -90,6 +91,7 @@ function FileAttachmentUioToJSONTyped(value, ignoreDiscriminator = false) {
90
91
  'key': value['key'],
91
92
  'url': value['url'],
92
93
  'status': (0, FileAttachmentStatusUio_1.FileAttachmentStatusUioToJSON)(value['status']),
94
+ 'ocr': value['ocr'],
93
95
  'errorCode': value['errorCode'],
94
96
  'estimatedTokens': value['estimatedTokens'],
95
97
  'maxTokens': value['maxTokens'],
@@ -72,6 +72,12 @@ export interface FileAttachmentUploadResponseUio {
72
72
  * @memberof FileAttachmentUploadResponseUio
73
73
  */
74
74
  status: FileAttachmentStatusUio;
75
+ /**
76
+ * Whether the OCR pre-pass runs before parsing this attachment
77
+ * @type {boolean}
78
+ * @memberof FileAttachmentUploadResponseUio
79
+ */
80
+ ocr?: boolean;
75
81
  /**
76
82
  * Machine-readable error code when status is ERROR (e.g. ATTACHMENT_TOO_LARGE)
77
83
  * @type {string}
@@ -71,6 +71,7 @@ function FileAttachmentUploadResponseUioFromJSONTyped(json, ignoreDiscriminator)
71
71
  'key': json['key'],
72
72
  'url': json['url'] == null ? undefined : json['url'],
73
73
  'status': (0, FileAttachmentStatusUio_1.FileAttachmentStatusUioFromJSON)(json['status']),
74
+ 'ocr': json['ocr'] == null ? undefined : json['ocr'],
74
75
  'errorCode': json['errorCode'] == null ? undefined : json['errorCode'],
75
76
  'estimatedTokens': json['estimatedTokens'] == null ? undefined : json['estimatedTokens'],
76
77
  'maxTokens': json['maxTokens'] == null ? undefined : json['maxTokens'],
@@ -96,6 +97,7 @@ function FileAttachmentUploadResponseUioToJSONTyped(value, ignoreDiscriminator =
96
97
  'key': value['key'],
97
98
  'url': value['url'],
98
99
  'status': (0, FileAttachmentStatusUio_1.FileAttachmentStatusUioToJSON)(value['status']),
100
+ 'ocr': value['ocr'],
99
101
  'errorCode': value['errorCode'],
100
102
  'estimatedTokens': value['estimatedTokens'],
101
103
  'maxTokens': value['maxTokens'],
@@ -46,6 +46,12 @@ export interface FileCreationResponseUio {
46
46
  * @memberof FileCreationResponseUio
47
47
  */
48
48
  isFAQ?: boolean;
49
+ /**
50
+ *
51
+ * @type {boolean}
52
+ * @memberof FileCreationResponseUio
53
+ */
54
+ ocr?: boolean;
49
55
  /**
50
56
  *
51
57
  * @type {string}
@@ -53,6 +53,7 @@ function FileCreationResponseUioFromJSONTyped(json, ignoreDiscriminator) {
53
53
  'knowledgeBaseId': json['knowledgeBaseId'] == null ? undefined : json['knowledgeBaseId'],
54
54
  'knowledgeType': json['knowledgeType'] == null ? undefined : json['knowledgeType'],
55
55
  'isFAQ': json['isFAQ'] == null ? undefined : json['isFAQ'],
56
+ 'ocr': json['ocr'] == null ? undefined : json['ocr'],
56
57
  'uploadId': json['uploadId'] == null ? undefined : json['uploadId'],
57
58
  'hash': json['hash'] == null ? undefined : json['hash'],
58
59
  'contentType': json['contentType'] == null ? undefined : json['contentType'],
@@ -80,6 +81,7 @@ function FileCreationResponseUioToJSONTyped(value, ignoreDiscriminator = false)
80
81
  'knowledgeBaseId': value['knowledgeBaseId'],
81
82
  'knowledgeType': value['knowledgeType'],
82
83
  'isFAQ': value['isFAQ'],
84
+ 'ocr': value['ocr'],
83
85
  'uploadId': value['uploadId'],
84
86
  'hash': value['hash'],
85
87
  'contentType': value['contentType'],
@@ -46,6 +46,12 @@ export interface FileUio {
46
46
  * @memberof FileUio
47
47
  */
48
48
  isFAQ?: boolean;
49
+ /**
50
+ *
51
+ * @type {boolean}
52
+ * @memberof FileUio
53
+ */
54
+ ocr?: boolean;
49
55
  /**
50
56
  *
51
57
  * @type {string}
@@ -49,6 +49,7 @@ function FileUioFromJSONTyped(json, ignoreDiscriminator) {
49
49
  'knowledgeBaseId': json['knowledgeBaseId'] == null ? undefined : json['knowledgeBaseId'],
50
50
  'knowledgeType': json['knowledgeType'] == null ? undefined : json['knowledgeType'],
51
51
  'isFAQ': json['isFAQ'] == null ? undefined : json['isFAQ'],
52
+ 'ocr': json['ocr'] == null ? undefined : json['ocr'],
52
53
  'uploadId': json['uploadId'] == null ? undefined : json['uploadId'],
53
54
  'hash': json['hash'] == null ? undefined : json['hash'],
54
55
  'contentType': json['contentType'] == null ? undefined : json['contentType'],
@@ -76,6 +77,7 @@ function FileUioToJSONTyped(value, ignoreDiscriminator = false) {
76
77
  'knowledgeBaseId': value['knowledgeBaseId'],
77
78
  'knowledgeType': value['knowledgeType'],
78
79
  'isFAQ': value['isFAQ'],
80
+ 'ocr': value['ocr'],
79
81
  'uploadId': value['uploadId'],
80
82
  'hash': value['hash'],
81
83
  'contentType': value['contentType'],
@@ -46,6 +46,12 @@ export interface FileWithDownloadUrlUio {
46
46
  * @memberof FileWithDownloadUrlUio
47
47
  */
48
48
  isFAQ?: boolean;
49
+ /**
50
+ *
51
+ * @type {boolean}
52
+ * @memberof FileWithDownloadUrlUio
53
+ */
54
+ ocr?: boolean;
49
55
  /**
50
56
  *
51
57
  * @type {string}
@@ -51,6 +51,7 @@ function FileWithDownloadUrlUioFromJSONTyped(json, ignoreDiscriminator) {
51
51
  'knowledgeBaseId': json['knowledgeBaseId'] == null ? undefined : json['knowledgeBaseId'],
52
52
  'knowledgeType': json['knowledgeType'] == null ? undefined : json['knowledgeType'],
53
53
  'isFAQ': json['isFAQ'] == null ? undefined : json['isFAQ'],
54
+ 'ocr': json['ocr'] == null ? undefined : json['ocr'],
54
55
  'uploadId': json['uploadId'] == null ? undefined : json['uploadId'],
55
56
  'hash': json['hash'] == null ? undefined : json['hash'],
56
57
  'contentType': json['contentType'] == null ? undefined : json['contentType'],
@@ -79,6 +80,7 @@ function FileWithDownloadUrlUioToJSONTyped(value, ignoreDiscriminator = false) {
79
80
  'knowledgeBaseId': value['knowledgeBaseId'],
80
81
  'knowledgeType': value['knowledgeType'],
81
82
  'isFAQ': value['isFAQ'],
83
+ 'ocr': value['ocr'],
82
84
  'uploadId': value['uploadId'],
83
85
  'hash': value['hash'],
84
86
  'contentType': value['contentType'],
@@ -57,6 +57,12 @@ export interface KnowledgeFileCreationRequestUio {
57
57
  * @memberof KnowledgeFileCreationRequestUio
58
58
  */
59
59
  isFAQ?: boolean;
60
+ /**
61
+ * Run the OCR pre-pass before parsing the document
62
+ * @type {boolean}
63
+ * @memberof KnowledgeFileCreationRequestUio
64
+ */
65
+ ocr?: boolean;
60
66
  }
61
67
  /**
62
68
  * Check if a given object implements the KnowledgeFileCreationRequestUio interface.
@@ -43,6 +43,7 @@ function KnowledgeFileCreationRequestUioFromJSONTyped(json, ignoreDiscriminator)
43
43
  'size': json['size'],
44
44
  'isActive': json['isActive'] == null ? undefined : json['isActive'],
45
45
  'isFAQ': json['isFAQ'] == null ? undefined : json['isFAQ'],
46
+ 'ocr': json['ocr'] == null ? undefined : json['ocr'],
46
47
  };
47
48
  }
48
49
  function KnowledgeFileCreationRequestUioToJSON(json) {
@@ -60,5 +61,6 @@ function KnowledgeFileCreationRequestUioToJSONTyped(value, ignoreDiscriminator =
60
61
  'size': value['size'],
61
62
  'isActive': value['isActive'],
62
63
  'isFAQ': value['isFAQ'],
64
+ 'ocr': value['ocr'],
63
65
  };
64
66
  }
@@ -46,6 +46,12 @@ export interface KnowledgeFileUio {
46
46
  * @memberof KnowledgeFileUio
47
47
  */
48
48
  isFAQ?: boolean;
49
+ /**
50
+ *
51
+ * @type {boolean}
52
+ * @memberof KnowledgeFileUio
53
+ */
54
+ ocr?: boolean;
49
55
  /**
50
56
  *
51
57
  * @type {string}
@@ -49,6 +49,7 @@ function KnowledgeFileUioFromJSONTyped(json, ignoreDiscriminator) {
49
49
  'knowledgeBaseId': json['knowledgeBaseId'] == null ? undefined : json['knowledgeBaseId'],
50
50
  'knowledgeType': json['knowledgeType'] == null ? undefined : json['knowledgeType'],
51
51
  'isFAQ': json['isFAQ'] == null ? undefined : json['isFAQ'],
52
+ 'ocr': json['ocr'] == null ? undefined : json['ocr'],
52
53
  'uploadId': json['uploadId'] == null ? undefined : json['uploadId'],
53
54
  'hash': json['hash'] == null ? undefined : json['hash'],
54
55
  'contentType': json['contentType'] == null ? undefined : json['contentType'],
@@ -76,6 +77,7 @@ function KnowledgeFileUioToJSONTyped(value, ignoreDiscriminator = false) {
76
77
  'knowledgeBaseId': value['knowledgeBaseId'],
77
78
  'knowledgeType': value['knowledgeType'],
78
79
  'isFAQ': value['isFAQ'],
80
+ 'ocr': value['ocr'],
79
81
  'uploadId': value['uploadId'],
80
82
  'hash': value['hash'],
81
83
  'contentType': value['contentType'],
@@ -0,0 +1,56 @@
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
+ * Content overview of a published agent bundle (computed at publish time).
14
+ * @export
15
+ * @interface LibraryAgentBundleSummaryUio
16
+ */
17
+ export interface LibraryAgentBundleSummaryUio {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof LibraryAgentBundleSummaryUio
22
+ */
23
+ skills: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof LibraryAgentBundleSummaryUio
28
+ */
29
+ tools: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof LibraryAgentBundleSummaryUio
34
+ */
35
+ knowledgeBases: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof LibraryAgentBundleSummaryUio
40
+ */
41
+ apps: number;
42
+ /**
43
+ *
44
+ * @type {boolean}
45
+ * @memberof LibraryAgentBundleSummaryUio
46
+ */
47
+ hasFlow: boolean;
48
+ }
49
+ /**
50
+ * Check if a given object implements the LibraryAgentBundleSummaryUio interface.
51
+ */
52
+ export declare function instanceOfLibraryAgentBundleSummaryUio(value: object): value is LibraryAgentBundleSummaryUio;
53
+ export declare function LibraryAgentBundleSummaryUioFromJSON(json: any): LibraryAgentBundleSummaryUio;
54
+ export declare function LibraryAgentBundleSummaryUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): LibraryAgentBundleSummaryUio;
55
+ export declare function LibraryAgentBundleSummaryUioToJSON(json: any): LibraryAgentBundleSummaryUio;
56
+ export declare function LibraryAgentBundleSummaryUioToJSONTyped(value?: LibraryAgentBundleSummaryUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,66 @@
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.instanceOfLibraryAgentBundleSummaryUio = instanceOfLibraryAgentBundleSummaryUio;
17
+ exports.LibraryAgentBundleSummaryUioFromJSON = LibraryAgentBundleSummaryUioFromJSON;
18
+ exports.LibraryAgentBundleSummaryUioFromJSONTyped = LibraryAgentBundleSummaryUioFromJSONTyped;
19
+ exports.LibraryAgentBundleSummaryUioToJSON = LibraryAgentBundleSummaryUioToJSON;
20
+ exports.LibraryAgentBundleSummaryUioToJSONTyped = LibraryAgentBundleSummaryUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the LibraryAgentBundleSummaryUio interface.
23
+ */
24
+ function instanceOfLibraryAgentBundleSummaryUio(value) {
25
+ if (!('skills' in value) || value['skills'] === undefined)
26
+ return false;
27
+ if (!('tools' in value) || value['tools'] === undefined)
28
+ return false;
29
+ if (!('knowledgeBases' in value) || value['knowledgeBases'] === undefined)
30
+ return false;
31
+ if (!('apps' in value) || value['apps'] === undefined)
32
+ return false;
33
+ if (!('hasFlow' in value) || value['hasFlow'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function LibraryAgentBundleSummaryUioFromJSON(json) {
38
+ return LibraryAgentBundleSummaryUioFromJSONTyped(json, false);
39
+ }
40
+ function LibraryAgentBundleSummaryUioFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'skills': json['skills'],
46
+ 'tools': json['tools'],
47
+ 'knowledgeBases': json['knowledgeBases'],
48
+ 'apps': json['apps'],
49
+ 'hasFlow': json['hasFlow'],
50
+ };
51
+ }
52
+ function LibraryAgentBundleSummaryUioToJSON(json) {
53
+ return LibraryAgentBundleSummaryUioToJSONTyped(json, false);
54
+ }
55
+ function LibraryAgentBundleSummaryUioToJSONTyped(value, ignoreDiscriminator = false) {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'skills': value['skills'],
61
+ 'tools': value['tools'],
62
+ 'knowledgeBases': value['knowledgeBases'],
63
+ 'apps': value['apps'],
64
+ 'hasFlow': value['hasFlow'],
65
+ };
66
+ }
@@ -0,0 +1,46 @@
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 { AgentBundleDiffUio } from './AgentBundleDiffUio';
13
+ import type { LibraryAgentDiffVersionRefUio } from './LibraryAgentDiffVersionRefUio';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface LibraryAgentDiffResponseUio
18
+ */
19
+ export interface LibraryAgentDiffResponseUio {
20
+ /**
21
+ *
22
+ * @type {LibraryAgentDiffVersionRefUio}
23
+ * @memberof LibraryAgentDiffResponseUio
24
+ */
25
+ from: LibraryAgentDiffVersionRefUio;
26
+ /**
27
+ *
28
+ * @type {LibraryAgentDiffVersionRefUio}
29
+ * @memberof LibraryAgentDiffResponseUio
30
+ */
31
+ to: LibraryAgentDiffVersionRefUio;
32
+ /**
33
+ *
34
+ * @type {AgentBundleDiffUio}
35
+ * @memberof LibraryAgentDiffResponseUio
36
+ */
37
+ diff: AgentBundleDiffUio;
38
+ }
39
+ /**
40
+ * Check if a given object implements the LibraryAgentDiffResponseUio interface.
41
+ */
42
+ export declare function instanceOfLibraryAgentDiffResponseUio(value: object): value is LibraryAgentDiffResponseUio;
43
+ export declare function LibraryAgentDiffResponseUioFromJSON(json: any): LibraryAgentDiffResponseUio;
44
+ export declare function LibraryAgentDiffResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): LibraryAgentDiffResponseUio;
45
+ export declare function LibraryAgentDiffResponseUioToJSON(json: any): LibraryAgentDiffResponseUio;
46
+ export declare function LibraryAgentDiffResponseUioToJSONTyped(value?: LibraryAgentDiffResponseUio | null, ignoreDiscriminator?: boolean): any;