@breign/client 1.0.109 → 1.0.111

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 (79) 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 +46 -1
  8. package/dist/apis/SkillsApi.js +109 -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/FileCreationRequestUio.d.ts +6 -0
  20. package/dist/models/FileCreationRequestUio.js +2 -0
  21. package/dist/models/FileCreationResponseUio.d.ts +38 -0
  22. package/dist/models/FileCreationResponseUio.js +18 -0
  23. package/dist/models/FileUio.d.ts +38 -0
  24. package/dist/models/FileUio.js +18 -0
  25. package/dist/models/FileWithDownloadUrlUio.d.ts +38 -0
  26. package/dist/models/FileWithDownloadUrlUio.js +18 -0
  27. package/dist/models/KnowledgeSitePageUio.d.ts +129 -0
  28. package/dist/models/KnowledgeSitePageUio.js +101 -0
  29. package/dist/models/LibrarySkillEntryUio.d.ts +87 -0
  30. package/dist/models/LibrarySkillEntryUio.js +83 -0
  31. package/dist/models/LibrarySkillInstallRequestUio.d.ts +38 -0
  32. package/dist/models/LibrarySkillInstallRequestUio.js +52 -0
  33. package/dist/models/LibrarySkillSyncRequestUio.d.ts +32 -0
  34. package/dist/models/LibrarySkillSyncRequestUio.js +48 -0
  35. package/dist/models/LibrarySkillVersionFilesInnerUio.d.ts +38 -0
  36. package/dist/models/LibrarySkillVersionFilesInnerUio.js +54 -0
  37. package/dist/models/LibrarySkillVersionUio.d.ts +105 -0
  38. package/dist/models/LibrarySkillVersionUio.js +89 -0
  39. package/dist/models/LibrarySkillsPageUio.d.ts +63 -0
  40. package/dist/models/LibrarySkillsPageUio.js +71 -0
  41. package/dist/models/MessageStatusErrorUio.d.ts +38 -0
  42. package/dist/models/MessageStatusErrorUio.js +50 -0
  43. package/dist/models/MessageStatusToolCallUio.d.ts +38 -0
  44. package/dist/models/MessageStatusToolCallUio.js +54 -0
  45. package/dist/models/MessageStatusUio.d.ts +79 -0
  46. package/dist/models/MessageStatusUio.js +73 -0
  47. package/dist/models/PatchKnowledgeBaseRequestUio.d.ts +38 -0
  48. package/dist/models/PatchKnowledgeBaseRequestUio.js +54 -0
  49. package/dist/models/PatchKnowledgeFileRequestUio.d.ts +32 -0
  50. package/dist/models/PatchKnowledgeFileRequestUio.js +50 -0
  51. package/dist/models/SearchKnowledgeBase200ResponseInnerUio.d.ts +52 -0
  52. package/dist/models/SearchKnowledgeBase200ResponseInnerUio.js +60 -0
  53. package/dist/models/SearchKnowledgeBaseRequestUio.d.ts +38 -0
  54. package/dist/models/SearchKnowledgeBaseRequestUio.js +52 -0
  55. package/dist/models/SkillAssignRequestUio.js +2 -2
  56. package/dist/models/SkillUio.d.ts +12 -0
  57. package/dist/models/SkillUio.js +4 -0
  58. package/dist/models/SkillUpdateRequestUio.d.ts +12 -0
  59. package/dist/models/SkillUpdateRequestUio.js +4 -0
  60. package/dist/models/StartKnowledgeBaseScrappingRequestUio.d.ts +88 -0
  61. package/dist/models/StartKnowledgeBaseScrappingRequestUio.js +74 -0
  62. package/dist/models/UpdateSelectedFillers200ResponseUio.d.ts +39 -0
  63. package/dist/models/UpdateSelectedFillers200ResponseUio.js +55 -0
  64. package/dist/models/UpdateSelectedFillersRequestDataInnerUio.d.ts +38 -0
  65. package/dist/models/UpdateSelectedFillersRequestDataInnerUio.js +54 -0
  66. package/dist/models/UpdateSelectedFillersRequestUio.d.ts +33 -0
  67. package/dist/models/UpdateSelectedFillersRequestUio.js +51 -0
  68. package/dist/models/UpdateToolStaticCredentialsRequestUio.d.ts +38 -0
  69. package/dist/models/UpdateToolStaticCredentialsRequestUio.js +50 -0
  70. package/dist/models/UploadImageToKnowledgeBaseLibrary200ResponseUio.d.ts +41 -0
  71. package/dist/models/UploadImageToKnowledgeBaseLibrary200ResponseUio.js +55 -0
  72. package/dist/models/UploadImageToKnowledgeBaseLibraryRequestUio.d.ts +50 -0
  73. package/dist/models/UploadImageToKnowledgeBaseLibraryRequestUio.js +62 -0
  74. package/dist/models/index.d.ts +24 -1
  75. package/dist/models/index.js +24 -1
  76. package/dist/openapi.json +1711 -267
  77. package/package.json +1 -1
  78. package/dist/models/AudioFillerExistsResponseUio.d.ts +0 -32
  79. package/dist/models/AudioFillerExistsResponseUio.js +0 -50
@@ -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
+ import type { LibrarySkillEntryUio } from './LibrarySkillEntryUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface LibrarySkillsPageUio
17
+ */
18
+ export interface LibrarySkillsPageUio {
19
+ /**
20
+ *
21
+ * @type {Array<LibrarySkillEntryUio>}
22
+ * @memberof LibrarySkillsPageUio
23
+ */
24
+ data: Array<LibrarySkillEntryUio>;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof LibrarySkillsPageUio
29
+ */
30
+ total: number;
31
+ /**
32
+ *
33
+ * @type {number}
34
+ * @memberof LibrarySkillsPageUio
35
+ */
36
+ page: number;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof LibrarySkillsPageUio
41
+ */
42
+ limit: number;
43
+ /**
44
+ *
45
+ * @type {number}
46
+ * @memberof LibrarySkillsPageUio
47
+ */
48
+ totalPages: number;
49
+ /**
50
+ *
51
+ * @type {Array<string>}
52
+ * @memberof LibrarySkillsPageUio
53
+ */
54
+ allCategories: Array<string>;
55
+ }
56
+ /**
57
+ * Check if a given object implements the LibrarySkillsPageUio interface.
58
+ */
59
+ export declare function instanceOfLibrarySkillsPageUio(value: object): value is LibrarySkillsPageUio;
60
+ export declare function LibrarySkillsPageUioFromJSON(json: any): LibrarySkillsPageUio;
61
+ export declare function LibrarySkillsPageUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): LibrarySkillsPageUio;
62
+ export declare function LibrarySkillsPageUioToJSON(json: any): LibrarySkillsPageUio;
63
+ export declare function LibrarySkillsPageUioToJSONTyped(value?: LibrarySkillsPageUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,71 @@
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.instanceOfLibrarySkillsPageUio = instanceOfLibrarySkillsPageUio;
17
+ exports.LibrarySkillsPageUioFromJSON = LibrarySkillsPageUioFromJSON;
18
+ exports.LibrarySkillsPageUioFromJSONTyped = LibrarySkillsPageUioFromJSONTyped;
19
+ exports.LibrarySkillsPageUioToJSON = LibrarySkillsPageUioToJSON;
20
+ exports.LibrarySkillsPageUioToJSONTyped = LibrarySkillsPageUioToJSONTyped;
21
+ const LibrarySkillEntryUio_1 = require("./LibrarySkillEntryUio");
22
+ /**
23
+ * Check if a given object implements the LibrarySkillsPageUio interface.
24
+ */
25
+ function instanceOfLibrarySkillsPageUio(value) {
26
+ if (!('data' in value) || value['data'] === undefined)
27
+ return false;
28
+ if (!('total' in value) || value['total'] === undefined)
29
+ return false;
30
+ if (!('page' in value) || value['page'] === undefined)
31
+ return false;
32
+ if (!('limit' in value) || value['limit'] === undefined)
33
+ return false;
34
+ if (!('totalPages' in value) || value['totalPages'] === undefined)
35
+ return false;
36
+ if (!('allCategories' in value) || value['allCategories'] === undefined)
37
+ return false;
38
+ return true;
39
+ }
40
+ function LibrarySkillsPageUioFromJSON(json) {
41
+ return LibrarySkillsPageUioFromJSONTyped(json, false);
42
+ }
43
+ function LibrarySkillsPageUioFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ 'data': (json['data'].map(LibrarySkillEntryUio_1.LibrarySkillEntryUioFromJSON)),
49
+ 'total': json['total'],
50
+ 'page': json['page'],
51
+ 'limit': json['limit'],
52
+ 'totalPages': json['totalPages'],
53
+ 'allCategories': json['allCategories'],
54
+ };
55
+ }
56
+ function LibrarySkillsPageUioToJSON(json) {
57
+ return LibrarySkillsPageUioToJSONTyped(json, false);
58
+ }
59
+ function LibrarySkillsPageUioToJSONTyped(value, ignoreDiscriminator = false) {
60
+ if (value == null) {
61
+ return value;
62
+ }
63
+ return {
64
+ 'data': (value['data'].map(LibrarySkillEntryUio_1.LibrarySkillEntryUioToJSON)),
65
+ 'total': value['total'],
66
+ 'page': value['page'],
67
+ 'limit': value['limit'],
68
+ 'totalPages': value['totalPages'],
69
+ 'allCategories': value['allCategories'],
70
+ };
71
+ }
@@ -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 MessageStatusErrorUio
16
+ */
17
+ export interface MessageStatusErrorUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof MessageStatusErrorUio
22
+ */
23
+ code?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof MessageStatusErrorUio
28
+ */
29
+ message?: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the MessageStatusErrorUio interface.
33
+ */
34
+ export declare function instanceOfMessageStatusErrorUio(value: object): value is MessageStatusErrorUio;
35
+ export declare function MessageStatusErrorUioFromJSON(json: any): MessageStatusErrorUio;
36
+ export declare function MessageStatusErrorUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): MessageStatusErrorUio;
37
+ export declare function MessageStatusErrorUioToJSON(json: any): MessageStatusErrorUio;
38
+ export declare function MessageStatusErrorUioToJSONTyped(value?: MessageStatusErrorUio | 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.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
+ }