@breign/client 1.0.108 → 1.0.110

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 (64) hide show
  1. package/dist/apis/AppApi.d.ts +92 -18
  2. package/dist/apis/AppApi.js +196 -32
  3. package/dist/apis/KnowledgeApi.d.ts +120 -8
  4. package/dist/apis/KnowledgeApi.js +268 -30
  5. package/dist/apis/PromptsApi.d.ts +3 -3
  6. package/dist/apis/PromptsApi.js +3 -2
  7. package/dist/apis/SkillsApi.d.ts +12 -1
  8. package/dist/apis/SkillsApi.js +27 -0
  9. package/dist/apis/ToolsApi.d.ts +42 -1
  10. package/dist/apis/ToolsApi.js +87 -0
  11. package/dist/models/AddCustomFiller201ResponseFillerUio.d.ts +50 -0
  12. package/dist/models/AddCustomFiller201ResponseFillerUio.js +62 -0
  13. package/dist/models/AddCustomFiller201ResponseUio.d.ts +39 -0
  14. package/dist/models/AddCustomFiller201ResponseUio.js +55 -0
  15. package/dist/models/AddCustomFillerRequestUio.d.ts +32 -0
  16. package/dist/models/AddCustomFillerRequestUio.js +50 -0
  17. package/dist/models/AgentPatchUio.d.ts +1 -1
  18. package/dist/models/AgentUio.d.ts +1 -1
  19. package/dist/models/AvailableCommandUio.d.ts +52 -0
  20. package/dist/models/AvailableCommandUio.js +66 -0
  21. package/dist/models/FileCreationRequestUio.d.ts +6 -0
  22. package/dist/models/FileCreationRequestUio.js +2 -0
  23. package/dist/models/FileCreationResponseUio.d.ts +38 -0
  24. package/dist/models/FileCreationResponseUio.js +18 -0
  25. package/dist/models/FileUio.d.ts +38 -0
  26. package/dist/models/FileUio.js +18 -0
  27. package/dist/models/FileWithDownloadUrlUio.d.ts +38 -0
  28. package/dist/models/FileWithDownloadUrlUio.js +18 -0
  29. package/dist/models/KnowledgeSitePageUio.d.ts +129 -0
  30. package/dist/models/KnowledgeSitePageUio.js +101 -0
  31. package/dist/models/MessageStatusErrorUio.d.ts +38 -0
  32. package/dist/models/MessageStatusErrorUio.js +50 -0
  33. package/dist/models/MessageStatusToolCallUio.d.ts +38 -0
  34. package/dist/models/MessageStatusToolCallUio.js +54 -0
  35. package/dist/models/MessageStatusUio.d.ts +79 -0
  36. package/dist/models/MessageStatusUio.js +73 -0
  37. package/dist/models/PatchKnowledgeBaseRequestUio.d.ts +38 -0
  38. package/dist/models/PatchKnowledgeBaseRequestUio.js +54 -0
  39. package/dist/models/PatchKnowledgeFileRequestUio.d.ts +32 -0
  40. package/dist/models/PatchKnowledgeFileRequestUio.js +50 -0
  41. package/dist/models/SearchKnowledgeBase200ResponseInnerUio.d.ts +52 -0
  42. package/dist/models/SearchKnowledgeBase200ResponseInnerUio.js +60 -0
  43. package/dist/models/SearchKnowledgeBaseRequestUio.d.ts +38 -0
  44. package/dist/models/SearchKnowledgeBaseRequestUio.js +52 -0
  45. package/dist/models/StartKnowledgeBaseScrappingRequestUio.d.ts +88 -0
  46. package/dist/models/StartKnowledgeBaseScrappingRequestUio.js +74 -0
  47. package/dist/models/UpdateSelectedFillers200ResponseUio.d.ts +39 -0
  48. package/dist/models/UpdateSelectedFillers200ResponseUio.js +55 -0
  49. package/dist/models/UpdateSelectedFillersRequestDataInnerUio.d.ts +38 -0
  50. package/dist/models/UpdateSelectedFillersRequestDataInnerUio.js +54 -0
  51. package/dist/models/UpdateSelectedFillersRequestUio.d.ts +33 -0
  52. package/dist/models/UpdateSelectedFillersRequestUio.js +51 -0
  53. package/dist/models/UpdateToolStaticCredentialsRequestUio.d.ts +38 -0
  54. package/dist/models/UpdateToolStaticCredentialsRequestUio.js +50 -0
  55. package/dist/models/UploadImageToKnowledgeBaseLibrary200ResponseUio.d.ts +41 -0
  56. package/dist/models/UploadImageToKnowledgeBaseLibrary200ResponseUio.js +55 -0
  57. package/dist/models/UploadImageToKnowledgeBaseLibraryRequestUio.d.ts +50 -0
  58. package/dist/models/UploadImageToKnowledgeBaseLibraryRequestUio.js +62 -0
  59. package/dist/models/index.d.ts +19 -1
  60. package/dist/models/index.js +19 -1
  61. package/dist/openapi.json +1454 -314
  62. package/package.json +1 -1
  63. package/dist/models/AudioFillerExistsResponseUio.d.ts +0 -32
  64. package/dist/models/AudioFillerExistsResponseUio.js +0 -50
@@ -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.instanceOfMessageStatusErrorUio = instanceOfMessageStatusErrorUio;
17
+ exports.MessageStatusErrorUioFromJSON = MessageStatusErrorUioFromJSON;
18
+ exports.MessageStatusErrorUioFromJSONTyped = MessageStatusErrorUioFromJSONTyped;
19
+ exports.MessageStatusErrorUioToJSON = MessageStatusErrorUioToJSON;
20
+ exports.MessageStatusErrorUioToJSONTyped = MessageStatusErrorUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the MessageStatusErrorUio interface.
23
+ */
24
+ function instanceOfMessageStatusErrorUio(value) {
25
+ return true;
26
+ }
27
+ function MessageStatusErrorUioFromJSON(json) {
28
+ return MessageStatusErrorUioFromJSONTyped(json, false);
29
+ }
30
+ function MessageStatusErrorUioFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'code': json['code'] == null ? undefined : json['code'],
36
+ 'message': json['message'] == null ? undefined : json['message'],
37
+ };
38
+ }
39
+ function MessageStatusErrorUioToJSON(json) {
40
+ return MessageStatusErrorUioToJSONTyped(json, false);
41
+ }
42
+ function MessageStatusErrorUioToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'code': value['code'],
48
+ 'message': value['message'],
49
+ };
50
+ }
@@ -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 MessageStatusToolCallUio
16
+ */
17
+ export interface MessageStatusToolCallUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof MessageStatusToolCallUio
22
+ */
23
+ name: string;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof MessageStatusToolCallUio
28
+ */
29
+ stepIndex: number;
30
+ }
31
+ /**
32
+ * Check if a given object implements the MessageStatusToolCallUio interface.
33
+ */
34
+ export declare function instanceOfMessageStatusToolCallUio(value: object): value is MessageStatusToolCallUio;
35
+ export declare function MessageStatusToolCallUioFromJSON(json: any): MessageStatusToolCallUio;
36
+ export declare function MessageStatusToolCallUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): MessageStatusToolCallUio;
37
+ export declare function MessageStatusToolCallUioToJSON(json: any): MessageStatusToolCallUio;
38
+ export declare function MessageStatusToolCallUioToJSONTyped(value?: MessageStatusToolCallUio | 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.instanceOfMessageStatusToolCallUio = instanceOfMessageStatusToolCallUio;
17
+ exports.MessageStatusToolCallUioFromJSON = MessageStatusToolCallUioFromJSON;
18
+ exports.MessageStatusToolCallUioFromJSONTyped = MessageStatusToolCallUioFromJSONTyped;
19
+ exports.MessageStatusToolCallUioToJSON = MessageStatusToolCallUioToJSON;
20
+ exports.MessageStatusToolCallUioToJSONTyped = MessageStatusToolCallUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the MessageStatusToolCallUio interface.
23
+ */
24
+ function instanceOfMessageStatusToolCallUio(value) {
25
+ if (!('name' in value) || value['name'] === undefined)
26
+ return false;
27
+ if (!('stepIndex' in value) || value['stepIndex'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function MessageStatusToolCallUioFromJSON(json) {
32
+ return MessageStatusToolCallUioFromJSONTyped(json, false);
33
+ }
34
+ function MessageStatusToolCallUioFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'name': json['name'],
40
+ 'stepIndex': json['stepIndex'],
41
+ };
42
+ }
43
+ function MessageStatusToolCallUioToJSON(json) {
44
+ return MessageStatusToolCallUioToJSONTyped(json, false);
45
+ }
46
+ function MessageStatusToolCallUioToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'name': value['name'],
52
+ 'stepIndex': value['stepIndex'],
53
+ };
54
+ }
@@ -0,0 +1,79 @@
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 { MessageStatusErrorUio } from './MessageStatusErrorUio';
13
+ import type { MessageStatusToolCallUio } from './MessageStatusToolCallUio';
14
+ import type { ToolUsedUio } from './ToolUsedUio';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface MessageStatusUio
19
+ */
20
+ export interface MessageStatusUio {
21
+ /**
22
+ *
23
+ * @type {string}
24
+ * @memberof MessageStatusUio
25
+ */
26
+ status: string;
27
+ /**
28
+ *
29
+ * @type {string}
30
+ * @memberof MessageStatusUio
31
+ */
32
+ content?: string;
33
+ /**
34
+ *
35
+ * @type {string}
36
+ * @memberof MessageStatusUio
37
+ */
38
+ reasoning?: string;
39
+ /**
40
+ *
41
+ * @type {string}
42
+ * @memberof MessageStatusUio
43
+ */
44
+ reaction?: MessageStatusUioReactionEnum;
45
+ /**
46
+ *
47
+ * @type {MessageStatusErrorUio}
48
+ * @memberof MessageStatusUio
49
+ */
50
+ error?: MessageStatusErrorUio;
51
+ /**
52
+ *
53
+ * @type {MessageStatusToolCallUio}
54
+ * @memberof MessageStatusUio
55
+ */
56
+ toolCall?: MessageStatusToolCallUio;
57
+ /**
58
+ *
59
+ * @type {Array<ToolUsedUio>}
60
+ * @memberof MessageStatusUio
61
+ */
62
+ toolsUsed?: Array<ToolUsedUio>;
63
+ }
64
+ /**
65
+ * @export
66
+ */
67
+ export declare const MessageStatusUioReactionEnum: {
68
+ readonly Positive: "positive";
69
+ readonly Negative: "negative";
70
+ };
71
+ export type MessageStatusUioReactionEnum = typeof MessageStatusUioReactionEnum[keyof typeof MessageStatusUioReactionEnum];
72
+ /**
73
+ * Check if a given object implements the MessageStatusUio interface.
74
+ */
75
+ export declare function instanceOfMessageStatusUio(value: object): value is MessageStatusUio;
76
+ export declare function MessageStatusUioFromJSON(json: any): MessageStatusUio;
77
+ export declare function MessageStatusUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): MessageStatusUio;
78
+ export declare function MessageStatusUioToJSON(json: any): MessageStatusUio;
79
+ export declare function MessageStatusUioToJSONTyped(value?: MessageStatusUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,73 @@
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.MessageStatusUioReactionEnum = void 0;
17
+ exports.instanceOfMessageStatusUio = instanceOfMessageStatusUio;
18
+ exports.MessageStatusUioFromJSON = MessageStatusUioFromJSON;
19
+ exports.MessageStatusUioFromJSONTyped = MessageStatusUioFromJSONTyped;
20
+ exports.MessageStatusUioToJSON = MessageStatusUioToJSON;
21
+ exports.MessageStatusUioToJSONTyped = MessageStatusUioToJSONTyped;
22
+ const MessageStatusErrorUio_1 = require("./MessageStatusErrorUio");
23
+ const MessageStatusToolCallUio_1 = require("./MessageStatusToolCallUio");
24
+ const ToolUsedUio_1 = require("./ToolUsedUio");
25
+ /**
26
+ * @export
27
+ */
28
+ exports.MessageStatusUioReactionEnum = {
29
+ Positive: 'positive',
30
+ Negative: 'negative'
31
+ };
32
+ /**
33
+ * Check if a given object implements the MessageStatusUio interface.
34
+ */
35
+ function instanceOfMessageStatusUio(value) {
36
+ if (!('status' in value) || value['status'] === undefined)
37
+ return false;
38
+ return true;
39
+ }
40
+ function MessageStatusUioFromJSON(json) {
41
+ return MessageStatusUioFromJSONTyped(json, false);
42
+ }
43
+ function MessageStatusUioFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ 'status': json['status'],
49
+ 'content': json['content'] == null ? undefined : json['content'],
50
+ 'reasoning': json['reasoning'] == null ? undefined : json['reasoning'],
51
+ 'reaction': json['reaction'] == null ? undefined : json['reaction'],
52
+ 'error': json['error'] == null ? undefined : (0, MessageStatusErrorUio_1.MessageStatusErrorUioFromJSON)(json['error']),
53
+ 'toolCall': json['toolCall'] == null ? undefined : (0, MessageStatusToolCallUio_1.MessageStatusToolCallUioFromJSON)(json['toolCall']),
54
+ 'toolsUsed': json['toolsUsed'] == null ? undefined : (json['toolsUsed'].map(ToolUsedUio_1.ToolUsedUioFromJSON)),
55
+ };
56
+ }
57
+ function MessageStatusUioToJSON(json) {
58
+ return MessageStatusUioToJSONTyped(json, false);
59
+ }
60
+ function MessageStatusUioToJSONTyped(value, ignoreDiscriminator = false) {
61
+ if (value == null) {
62
+ return value;
63
+ }
64
+ return {
65
+ 'status': value['status'],
66
+ 'content': value['content'],
67
+ 'reasoning': value['reasoning'],
68
+ 'reaction': value['reaction'],
69
+ 'error': (0, MessageStatusErrorUio_1.MessageStatusErrorUioToJSON)(value['error']),
70
+ 'toolCall': (0, MessageStatusToolCallUio_1.MessageStatusToolCallUioToJSON)(value['toolCall']),
71
+ 'toolsUsed': value['toolsUsed'] == null ? undefined : (value['toolsUsed'].map(ToolUsedUio_1.ToolUsedUioToJSON)),
72
+ };
73
+ }
@@ -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 PatchKnowledgeBaseRequestUio
16
+ */
17
+ export interface PatchKnowledgeBaseRequestUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PatchKnowledgeBaseRequestUio
22
+ */
23
+ name: string;
24
+ /**
25
+ *
26
+ * @type {Array<string>}
27
+ * @memberof PatchKnowledgeBaseRequestUio
28
+ */
29
+ authorizedAgents: Array<string>;
30
+ }
31
+ /**
32
+ * Check if a given object implements the PatchKnowledgeBaseRequestUio interface.
33
+ */
34
+ export declare function instanceOfPatchKnowledgeBaseRequestUio(value: object): value is PatchKnowledgeBaseRequestUio;
35
+ export declare function PatchKnowledgeBaseRequestUioFromJSON(json: any): PatchKnowledgeBaseRequestUio;
36
+ export declare function PatchKnowledgeBaseRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchKnowledgeBaseRequestUio;
37
+ export declare function PatchKnowledgeBaseRequestUioToJSON(json: any): PatchKnowledgeBaseRequestUio;
38
+ export declare function PatchKnowledgeBaseRequestUioToJSONTyped(value?: PatchKnowledgeBaseRequestUio | 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.instanceOfPatchKnowledgeBaseRequestUio = instanceOfPatchKnowledgeBaseRequestUio;
17
+ exports.PatchKnowledgeBaseRequestUioFromJSON = PatchKnowledgeBaseRequestUioFromJSON;
18
+ exports.PatchKnowledgeBaseRequestUioFromJSONTyped = PatchKnowledgeBaseRequestUioFromJSONTyped;
19
+ exports.PatchKnowledgeBaseRequestUioToJSON = PatchKnowledgeBaseRequestUioToJSON;
20
+ exports.PatchKnowledgeBaseRequestUioToJSONTyped = PatchKnowledgeBaseRequestUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the PatchKnowledgeBaseRequestUio interface.
23
+ */
24
+ function instanceOfPatchKnowledgeBaseRequestUio(value) {
25
+ if (!('name' in value) || value['name'] === undefined)
26
+ return false;
27
+ if (!('authorizedAgents' in value) || value['authorizedAgents'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function PatchKnowledgeBaseRequestUioFromJSON(json) {
32
+ return PatchKnowledgeBaseRequestUioFromJSONTyped(json, false);
33
+ }
34
+ function PatchKnowledgeBaseRequestUioFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'name': json['name'],
40
+ 'authorizedAgents': json['authorizedAgents'],
41
+ };
42
+ }
43
+ function PatchKnowledgeBaseRequestUioToJSON(json) {
44
+ return PatchKnowledgeBaseRequestUioToJSONTyped(json, false);
45
+ }
46
+ function PatchKnowledgeBaseRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'name': value['name'],
52
+ 'authorizedAgents': value['authorizedAgents'],
53
+ };
54
+ }
@@ -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 PatchKnowledgeFileRequestUio
16
+ */
17
+ export interface PatchKnowledgeFileRequestUio {
18
+ /**
19
+ *
20
+ * @type {boolean}
21
+ * @memberof PatchKnowledgeFileRequestUio
22
+ */
23
+ isActive: boolean;
24
+ }
25
+ /**
26
+ * Check if a given object implements the PatchKnowledgeFileRequestUio interface.
27
+ */
28
+ export declare function instanceOfPatchKnowledgeFileRequestUio(value: object): value is PatchKnowledgeFileRequestUio;
29
+ export declare function PatchKnowledgeFileRequestUioFromJSON(json: any): PatchKnowledgeFileRequestUio;
30
+ export declare function PatchKnowledgeFileRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchKnowledgeFileRequestUio;
31
+ export declare function PatchKnowledgeFileRequestUioToJSON(json: any): PatchKnowledgeFileRequestUio;
32
+ export declare function PatchKnowledgeFileRequestUioToJSONTyped(value?: PatchKnowledgeFileRequestUio | 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.instanceOfPatchKnowledgeFileRequestUio = instanceOfPatchKnowledgeFileRequestUio;
17
+ exports.PatchKnowledgeFileRequestUioFromJSON = PatchKnowledgeFileRequestUioFromJSON;
18
+ exports.PatchKnowledgeFileRequestUioFromJSONTyped = PatchKnowledgeFileRequestUioFromJSONTyped;
19
+ exports.PatchKnowledgeFileRequestUioToJSON = PatchKnowledgeFileRequestUioToJSON;
20
+ exports.PatchKnowledgeFileRequestUioToJSONTyped = PatchKnowledgeFileRequestUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the PatchKnowledgeFileRequestUio interface.
23
+ */
24
+ function instanceOfPatchKnowledgeFileRequestUio(value) {
25
+ if (!('isActive' in value) || value['isActive'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function PatchKnowledgeFileRequestUioFromJSON(json) {
30
+ return PatchKnowledgeFileRequestUioFromJSONTyped(json, false);
31
+ }
32
+ function PatchKnowledgeFileRequestUioFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'isActive': json['isActive'],
38
+ };
39
+ }
40
+ function PatchKnowledgeFileRequestUioToJSON(json) {
41
+ return PatchKnowledgeFileRequestUioToJSONTyped(json, false);
42
+ }
43
+ function PatchKnowledgeFileRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'isActive': value['isActive'],
49
+ };
50
+ }
@@ -0,0 +1,52 @@
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 SearchKnowledgeBase200ResponseInnerUio
16
+ */
17
+ export interface SearchKnowledgeBase200ResponseInnerUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SearchKnowledgeBase200ResponseInnerUio
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof SearchKnowledgeBase200ResponseInnerUio
28
+ */
29
+ content: string;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof SearchKnowledgeBase200ResponseInnerUio
34
+ */
35
+ score: number;
36
+ /**
37
+ *
38
+ * @type {{ [key: string]: any; }}
39
+ * @memberof SearchKnowledgeBase200ResponseInnerUio
40
+ */
41
+ file?: {
42
+ [key: string]: any;
43
+ };
44
+ }
45
+ /**
46
+ * Check if a given object implements the SearchKnowledgeBase200ResponseInnerUio interface.
47
+ */
48
+ export declare function instanceOfSearchKnowledgeBase200ResponseInnerUio(value: object): value is SearchKnowledgeBase200ResponseInnerUio;
49
+ export declare function SearchKnowledgeBase200ResponseInnerUioFromJSON(json: any): SearchKnowledgeBase200ResponseInnerUio;
50
+ export declare function SearchKnowledgeBase200ResponseInnerUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchKnowledgeBase200ResponseInnerUio;
51
+ export declare function SearchKnowledgeBase200ResponseInnerUioToJSON(json: any): SearchKnowledgeBase200ResponseInnerUio;
52
+ export declare function SearchKnowledgeBase200ResponseInnerUioToJSONTyped(value?: SearchKnowledgeBase200ResponseInnerUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,60 @@
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.instanceOfSearchKnowledgeBase200ResponseInnerUio = instanceOfSearchKnowledgeBase200ResponseInnerUio;
17
+ exports.SearchKnowledgeBase200ResponseInnerUioFromJSON = SearchKnowledgeBase200ResponseInnerUioFromJSON;
18
+ exports.SearchKnowledgeBase200ResponseInnerUioFromJSONTyped = SearchKnowledgeBase200ResponseInnerUioFromJSONTyped;
19
+ exports.SearchKnowledgeBase200ResponseInnerUioToJSON = SearchKnowledgeBase200ResponseInnerUioToJSON;
20
+ exports.SearchKnowledgeBase200ResponseInnerUioToJSONTyped = SearchKnowledgeBase200ResponseInnerUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the SearchKnowledgeBase200ResponseInnerUio interface.
23
+ */
24
+ function instanceOfSearchKnowledgeBase200ResponseInnerUio(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('content' in value) || value['content'] === undefined)
28
+ return false;
29
+ if (!('score' in value) || value['score'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function SearchKnowledgeBase200ResponseInnerUioFromJSON(json) {
34
+ return SearchKnowledgeBase200ResponseInnerUioFromJSONTyped(json, false);
35
+ }
36
+ function SearchKnowledgeBase200ResponseInnerUioFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'id': json['id'],
42
+ 'content': json['content'],
43
+ 'score': json['score'],
44
+ 'file': json['file'] == null ? undefined : json['file'],
45
+ };
46
+ }
47
+ function SearchKnowledgeBase200ResponseInnerUioToJSON(json) {
48
+ return SearchKnowledgeBase200ResponseInnerUioToJSONTyped(json, false);
49
+ }
50
+ function SearchKnowledgeBase200ResponseInnerUioToJSONTyped(value, ignoreDiscriminator = false) {
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'id': value['id'],
56
+ 'content': value['content'],
57
+ 'score': value['score'],
58
+ 'file': value['file'],
59
+ };
60
+ }
@@ -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 SearchKnowledgeBaseRequestUio
16
+ */
17
+ export interface SearchKnowledgeBaseRequestUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SearchKnowledgeBaseRequestUio
22
+ */
23
+ query: string;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof SearchKnowledgeBaseRequestUio
28
+ */
29
+ maxResults?: number;
30
+ }
31
+ /**
32
+ * Check if a given object implements the SearchKnowledgeBaseRequestUio interface.
33
+ */
34
+ export declare function instanceOfSearchKnowledgeBaseRequestUio(value: object): value is SearchKnowledgeBaseRequestUio;
35
+ export declare function SearchKnowledgeBaseRequestUioFromJSON(json: any): SearchKnowledgeBaseRequestUio;
36
+ export declare function SearchKnowledgeBaseRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchKnowledgeBaseRequestUio;
37
+ export declare function SearchKnowledgeBaseRequestUioToJSON(json: any): SearchKnowledgeBaseRequestUio;
38
+ export declare function SearchKnowledgeBaseRequestUioToJSONTyped(value?: SearchKnowledgeBaseRequestUio | 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.instanceOfSearchKnowledgeBaseRequestUio = instanceOfSearchKnowledgeBaseRequestUio;
17
+ exports.SearchKnowledgeBaseRequestUioFromJSON = SearchKnowledgeBaseRequestUioFromJSON;
18
+ exports.SearchKnowledgeBaseRequestUioFromJSONTyped = SearchKnowledgeBaseRequestUioFromJSONTyped;
19
+ exports.SearchKnowledgeBaseRequestUioToJSON = SearchKnowledgeBaseRequestUioToJSON;
20
+ exports.SearchKnowledgeBaseRequestUioToJSONTyped = SearchKnowledgeBaseRequestUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the SearchKnowledgeBaseRequestUio interface.
23
+ */
24
+ function instanceOfSearchKnowledgeBaseRequestUio(value) {
25
+ if (!('query' in value) || value['query'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function SearchKnowledgeBaseRequestUioFromJSON(json) {
30
+ return SearchKnowledgeBaseRequestUioFromJSONTyped(json, false);
31
+ }
32
+ function SearchKnowledgeBaseRequestUioFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'query': json['query'],
38
+ 'maxResults': json['maxResults'] == null ? undefined : json['maxResults'],
39
+ };
40
+ }
41
+ function SearchKnowledgeBaseRequestUioToJSON(json) {
42
+ return SearchKnowledgeBaseRequestUioToJSONTyped(json, false);
43
+ }
44
+ function SearchKnowledgeBaseRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'query': value['query'],
50
+ 'maxResults': value['maxResults'],
51
+ };
52
+ }