@breign/client 1.0.75 → 1.0.77

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 (104) hide show
  1. package/dist/apis/AgentApi.d.ts +95 -3
  2. package/dist/apis/AgentApi.js +218 -5
  3. package/dist/apis/AppApi.d.ts +75 -4
  4. package/dist/apis/AppApi.js +174 -7
  5. package/dist/apis/KnowledgeApi.d.ts +27 -1
  6. package/dist/apis/KnowledgeApi.js +60 -0
  7. package/dist/apis/OrganizationsApi.d.ts +67 -1
  8. package/dist/apis/OrganizationsApi.js +156 -0
  9. package/dist/apis/PromptsApi.d.ts +3 -3
  10. package/dist/apis/PromptsApi.js +1 -1
  11. package/dist/apis/ToolsApi.d.ts +26 -1
  12. package/dist/apis/ToolsApi.js +59 -0
  13. package/dist/models/AdvancedFlowEditorEdgeUio.d.ts +56 -0
  14. package/dist/models/AdvancedFlowEditorEdgeUio.js +62 -0
  15. package/dist/models/AdvancedFlowEditorNodePositionUio.d.ts +38 -0
  16. package/dist/models/AdvancedFlowEditorNodePositionUio.js +54 -0
  17. package/dist/models/AdvancedFlowEditorNodeUio.d.ts +53 -0
  18. package/dist/models/AdvancedFlowEditorNodeUio.js +63 -0
  19. package/dist/models/AdvancedFlowEditorUio.d.ts +46 -0
  20. package/dist/models/AdvancedFlowEditorUio.js +60 -0
  21. package/dist/models/AdvancedFlowEditorUpdateRequestUio.d.ts +40 -0
  22. package/dist/models/AdvancedFlowEditorUpdateRequestUio.js +56 -0
  23. package/dist/models/AgentFlowCreateUio.d.ts +6 -0
  24. package/dist/models/AgentFlowCreateUio.js +2 -0
  25. package/dist/models/AgentFlowUio.d.ts +6 -0
  26. package/dist/models/AgentFlowUio.js +2 -0
  27. package/dist/models/AnimationCreateRequestUio.d.ts +56 -0
  28. package/dist/models/AnimationCreateRequestUio.js +64 -0
  29. package/dist/models/AnimationUio.d.ts +56 -0
  30. package/dist/models/AnimationUio.js +64 -0
  31. package/dist/models/AppCommandsInnerUio.d.ts +46 -0
  32. package/dist/models/AppCommandsInnerUio.js +56 -0
  33. package/dist/models/AppConfigurationColorsUio.d.ts +68 -0
  34. package/dist/models/AppConfigurationColorsUio.js +60 -0
  35. package/dist/models/AppConfigurationLanguageInnerUio.d.ts +38 -0
  36. package/dist/models/AppConfigurationLanguageInnerUio.js +50 -0
  37. package/dist/models/AppConfigurationTextIntroIOSViewUio.d.ts +90 -0
  38. package/dist/models/AppConfigurationTextIntroIOSViewUio.js +62 -0
  39. package/dist/models/AppConfigurationTextSpeakIOSViewUio.d.ts +82 -0
  40. package/dist/models/AppConfigurationTextSpeakIOSViewUio.js +60 -0
  41. package/dist/models/AppConfigurationTextUio.d.ts +40 -0
  42. package/dist/models/AppConfigurationTextUio.js +52 -0
  43. package/dist/models/AppConfigurationUio.d.ts +40 -2
  44. package/dist/models/AppConfigurationUio.js +17 -6
  45. package/dist/models/AppUio.d.ts +17 -3
  46. package/dist/models/AppUio.js +9 -3
  47. package/dist/models/AppUpdateRequestUio.d.ts +8 -0
  48. package/dist/models/AppUpdateRequestUio.js +2 -0
  49. package/dist/models/Conversation1Uio.d.ts +46 -0
  50. package/dist/models/Conversation1Uio.js +60 -0
  51. package/dist/models/ConversationMessagesInnerFlowNodeEntrypointsUio.d.ts +32 -0
  52. package/dist/models/ConversationMessagesInnerFlowNodeEntrypointsUio.js +48 -0
  53. package/dist/models/ConversationMessagesInnerFlowNodeUio.d.ts +51 -0
  54. package/dist/models/ConversationMessagesInnerFlowNodeUio.js +55 -0
  55. package/dist/models/ConversationMessagesInnerSuggestionsInnerUio.d.ts +38 -0
  56. package/dist/models/ConversationMessagesInnerSuggestionsInnerUio.js +54 -0
  57. package/dist/models/ConversationMessagesInnerUio.d.ts +79 -0
  58. package/dist/models/ConversationMessagesInnerUio.js +73 -0
  59. package/dist/models/ConversationMetricsInnerSourceUio.d.ts +51 -0
  60. package/dist/models/ConversationMetricsInnerSourceUio.js +65 -0
  61. package/dist/models/ConversationMetricsInnerUio.d.ts +46 -0
  62. package/dist/models/ConversationMetricsInnerUio.js +60 -0
  63. package/dist/models/ConversationMetricsInnerValueInnerCostUio.d.ts +38 -0
  64. package/dist/models/ConversationMetricsInnerValueInnerCostUio.js +54 -0
  65. package/dist/models/ConversationMetricsInnerValueInnerUio.d.ts +63 -0
  66. package/dist/models/ConversationMetricsInnerValueInnerUio.js +69 -0
  67. package/dist/models/ConversationUio.d.ts +56 -6
  68. package/dist/models/ConversationUio.js +27 -7
  69. package/dist/models/FlowContentsUio.d.ts +6 -0
  70. package/dist/models/FlowContentsUio.js +2 -0
  71. package/dist/models/FlowEditorNodeUio.d.ts +39 -0
  72. package/dist/models/FlowEditorNodeUio.js +55 -0
  73. package/dist/models/FlowEditorUio.d.ts +39 -0
  74. package/dist/models/FlowEditorUio.js +55 -0
  75. package/dist/models/FlowEditorUpdateRequestUio.d.ts +33 -0
  76. package/dist/models/FlowEditorUpdateRequestUio.js +51 -0
  77. package/dist/models/KnowledgeFilesByIdsRequestUio.d.ts +32 -0
  78. package/dist/models/KnowledgeFilesByIdsRequestUio.js +50 -0
  79. package/dist/models/OrganizationUio.d.ts +20 -0
  80. package/dist/models/OrganizationUio.js +10 -0
  81. package/dist/models/OrganizationUserUio.d.ts +38 -0
  82. package/dist/models/OrganizationUserUio.js +54 -0
  83. package/dist/models/RoleCreateRequestUio.d.ts +44 -0
  84. package/dist/models/RoleCreateRequestUio.js +56 -0
  85. package/dist/models/SequenceContentsUio.d.ts +38 -0
  86. package/dist/models/SequenceContentsUio.js +50 -0
  87. package/dist/models/SequenceCreateRequestUio.d.ts +45 -0
  88. package/dist/models/SequenceCreateRequestUio.js +59 -0
  89. package/dist/models/SequenceUio.d.ts +45 -0
  90. package/dist/models/SequenceUio.js +59 -0
  91. package/dist/models/ToolUpdateRequestUio.d.ts +62 -0
  92. package/dist/models/ToolUpdateRequestUio.js +56 -0
  93. package/dist/models/index.d.ts +32 -4
  94. package/dist/models/index.js +32 -4
  95. package/dist/openapi.json +1725 -214
  96. package/package.json +1 -1
  97. package/dist/models/AppConfigurationUpdateRequestUio.d.ts +0 -33
  98. package/dist/models/AppConfigurationUpdateRequestUio.js +0 -50
  99. package/dist/models/AppSequencesInnerUio.d.ts +0 -38
  100. package/dist/models/AppSequencesInnerUio.js +0 -50
  101. package/dist/models/ConversationFlowNodeEntrypointsUio.d.ts +0 -32
  102. package/dist/models/ConversationFlowNodeEntrypointsUio.js +0 -48
  103. package/dist/models/ConversationFlowNodeUio.d.ts +0 -51
  104. package/dist/models/ConversationFlowNodeUio.js +0 -55
@@ -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.instanceOfConversation1Uio = instanceOfConversation1Uio;
17
+ exports.Conversation1UioFromJSON = Conversation1UioFromJSON;
18
+ exports.Conversation1UioFromJSONTyped = Conversation1UioFromJSONTyped;
19
+ exports.Conversation1UioToJSON = Conversation1UioToJSON;
20
+ exports.Conversation1UioToJSONTyped = Conversation1UioToJSONTyped;
21
+ const ConversationMessagesInnerFlowNodeUio_1 = require("./ConversationMessagesInnerFlowNodeUio");
22
+ const ChatMessageUio_1 = require("./ChatMessageUio");
23
+ /**
24
+ * Check if a given object implements the Conversation1Uio interface.
25
+ */
26
+ function instanceOfConversation1Uio(value) {
27
+ if (!('id' in value) || value['id'] === undefined)
28
+ return false;
29
+ if (!('flowNode' in value) || value['flowNode'] === undefined)
30
+ return false;
31
+ if (!('messages' in value) || value['messages'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function Conversation1UioFromJSON(json) {
36
+ return Conversation1UioFromJSONTyped(json, false);
37
+ }
38
+ function Conversation1UioFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'id': json['id'],
44
+ 'flowNode': (0, ConversationMessagesInnerFlowNodeUio_1.ConversationMessagesInnerFlowNodeUioFromJSON)(json['flowNode']),
45
+ 'messages': (json['messages'].map(ChatMessageUio_1.ChatMessageUioFromJSON)),
46
+ };
47
+ }
48
+ function Conversation1UioToJSON(json) {
49
+ return Conversation1UioToJSONTyped(json, false);
50
+ }
51
+ function Conversation1UioToJSONTyped(value, ignoreDiscriminator = false) {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'id': value['id'],
57
+ 'flowNode': (0, ConversationMessagesInnerFlowNodeUio_1.ConversationMessagesInnerFlowNodeUioToJSON)(value['flowNode']),
58
+ 'messages': (value['messages'].map(ChatMessageUio_1.ChatMessageUioToJSON)),
59
+ };
60
+ }
@@ -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 ConversationMessagesInnerFlowNodeEntrypointsUio
16
+ */
17
+ export interface ConversationMessagesInnerFlowNodeEntrypointsUio {
18
+ /**
19
+ *
20
+ * @type {Array<string>}
21
+ * @memberof ConversationMessagesInnerFlowNodeEntrypointsUio
22
+ */
23
+ intents?: Array<string>;
24
+ }
25
+ /**
26
+ * Check if a given object implements the ConversationMessagesInnerFlowNodeEntrypointsUio interface.
27
+ */
28
+ export declare function instanceOfConversationMessagesInnerFlowNodeEntrypointsUio(value: object): value is ConversationMessagesInnerFlowNodeEntrypointsUio;
29
+ export declare function ConversationMessagesInnerFlowNodeEntrypointsUioFromJSON(json: any): ConversationMessagesInnerFlowNodeEntrypointsUio;
30
+ export declare function ConversationMessagesInnerFlowNodeEntrypointsUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationMessagesInnerFlowNodeEntrypointsUio;
31
+ export declare function ConversationMessagesInnerFlowNodeEntrypointsUioToJSON(json: any): ConversationMessagesInnerFlowNodeEntrypointsUio;
32
+ export declare function ConversationMessagesInnerFlowNodeEntrypointsUioToJSONTyped(value?: ConversationMessagesInnerFlowNodeEntrypointsUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,48 @@
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.instanceOfConversationMessagesInnerFlowNodeEntrypointsUio = instanceOfConversationMessagesInnerFlowNodeEntrypointsUio;
17
+ exports.ConversationMessagesInnerFlowNodeEntrypointsUioFromJSON = ConversationMessagesInnerFlowNodeEntrypointsUioFromJSON;
18
+ exports.ConversationMessagesInnerFlowNodeEntrypointsUioFromJSONTyped = ConversationMessagesInnerFlowNodeEntrypointsUioFromJSONTyped;
19
+ exports.ConversationMessagesInnerFlowNodeEntrypointsUioToJSON = ConversationMessagesInnerFlowNodeEntrypointsUioToJSON;
20
+ exports.ConversationMessagesInnerFlowNodeEntrypointsUioToJSONTyped = ConversationMessagesInnerFlowNodeEntrypointsUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ConversationMessagesInnerFlowNodeEntrypointsUio interface.
23
+ */
24
+ function instanceOfConversationMessagesInnerFlowNodeEntrypointsUio(value) {
25
+ return true;
26
+ }
27
+ function ConversationMessagesInnerFlowNodeEntrypointsUioFromJSON(json) {
28
+ return ConversationMessagesInnerFlowNodeEntrypointsUioFromJSONTyped(json, false);
29
+ }
30
+ function ConversationMessagesInnerFlowNodeEntrypointsUioFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'intents': json['intents'] == null ? undefined : json['intents'],
36
+ };
37
+ }
38
+ function ConversationMessagesInnerFlowNodeEntrypointsUioToJSON(json) {
39
+ return ConversationMessagesInnerFlowNodeEntrypointsUioToJSONTyped(json, false);
40
+ }
41
+ function ConversationMessagesInnerFlowNodeEntrypointsUioToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'intents': value['intents'],
47
+ };
48
+ }
@@ -0,0 +1,51 @@
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 { ConversationMessagesInnerFlowNodeEntrypointsUio } from './ConversationMessagesInnerFlowNodeEntrypointsUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ConversationMessagesInnerFlowNodeUio
17
+ */
18
+ export interface ConversationMessagesInnerFlowNodeUio {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof ConversationMessagesInnerFlowNodeUio
23
+ */
24
+ id?: string;
25
+ /**
26
+ *
27
+ * @type {any}
28
+ * @memberof ConversationMessagesInnerFlowNodeUio
29
+ */
30
+ contents?: any | null;
31
+ /**
32
+ *
33
+ * @type {ConversationMessagesInnerFlowNodeEntrypointsUio}
34
+ * @memberof ConversationMessagesInnerFlowNodeUio
35
+ */
36
+ entrypoints?: ConversationMessagesInnerFlowNodeEntrypointsUio;
37
+ /**
38
+ *
39
+ * @type {any}
40
+ * @memberof ConversationMessagesInnerFlowNodeUio
41
+ */
42
+ exits?: any | null;
43
+ }
44
+ /**
45
+ * Check if a given object implements the ConversationMessagesInnerFlowNodeUio interface.
46
+ */
47
+ export declare function instanceOfConversationMessagesInnerFlowNodeUio(value: object): value is ConversationMessagesInnerFlowNodeUio;
48
+ export declare function ConversationMessagesInnerFlowNodeUioFromJSON(json: any): ConversationMessagesInnerFlowNodeUio;
49
+ export declare function ConversationMessagesInnerFlowNodeUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationMessagesInnerFlowNodeUio;
50
+ export declare function ConversationMessagesInnerFlowNodeUioToJSON(json: any): ConversationMessagesInnerFlowNodeUio;
51
+ export declare function ConversationMessagesInnerFlowNodeUioToJSONTyped(value?: ConversationMessagesInnerFlowNodeUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfConversationMessagesInnerFlowNodeUio = instanceOfConversationMessagesInnerFlowNodeUio;
17
+ exports.ConversationMessagesInnerFlowNodeUioFromJSON = ConversationMessagesInnerFlowNodeUioFromJSON;
18
+ exports.ConversationMessagesInnerFlowNodeUioFromJSONTyped = ConversationMessagesInnerFlowNodeUioFromJSONTyped;
19
+ exports.ConversationMessagesInnerFlowNodeUioToJSON = ConversationMessagesInnerFlowNodeUioToJSON;
20
+ exports.ConversationMessagesInnerFlowNodeUioToJSONTyped = ConversationMessagesInnerFlowNodeUioToJSONTyped;
21
+ const ConversationMessagesInnerFlowNodeEntrypointsUio_1 = require("./ConversationMessagesInnerFlowNodeEntrypointsUio");
22
+ /**
23
+ * Check if a given object implements the ConversationMessagesInnerFlowNodeUio interface.
24
+ */
25
+ function instanceOfConversationMessagesInnerFlowNodeUio(value) {
26
+ return true;
27
+ }
28
+ function ConversationMessagesInnerFlowNodeUioFromJSON(json) {
29
+ return ConversationMessagesInnerFlowNodeUioFromJSONTyped(json, false);
30
+ }
31
+ function ConversationMessagesInnerFlowNodeUioFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'id': json['id'] == null ? undefined : json['id'],
37
+ 'contents': json['contents'] == null ? undefined : json['contents'],
38
+ 'entrypoints': json['entrypoints'] == null ? undefined : (0, ConversationMessagesInnerFlowNodeEntrypointsUio_1.ConversationMessagesInnerFlowNodeEntrypointsUioFromJSON)(json['entrypoints']),
39
+ 'exits': json['exits'] == null ? undefined : json['exits'],
40
+ };
41
+ }
42
+ function ConversationMessagesInnerFlowNodeUioToJSON(json) {
43
+ return ConversationMessagesInnerFlowNodeUioToJSONTyped(json, false);
44
+ }
45
+ function ConversationMessagesInnerFlowNodeUioToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'id': value['id'],
51
+ 'contents': value['contents'],
52
+ 'entrypoints': (0, ConversationMessagesInnerFlowNodeEntrypointsUio_1.ConversationMessagesInnerFlowNodeEntrypointsUioToJSON)(value['entrypoints']),
53
+ 'exits': value['exits'],
54
+ };
55
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ConversationMessagesInnerSuggestionsInnerUio
16
+ */
17
+ export interface ConversationMessagesInnerSuggestionsInnerUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ConversationMessagesInnerSuggestionsInnerUio
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ConversationMessagesInnerSuggestionsInnerUio
28
+ */
29
+ text: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the ConversationMessagesInnerSuggestionsInnerUio interface.
33
+ */
34
+ export declare function instanceOfConversationMessagesInnerSuggestionsInnerUio(value: object): value is ConversationMessagesInnerSuggestionsInnerUio;
35
+ export declare function ConversationMessagesInnerSuggestionsInnerUioFromJSON(json: any): ConversationMessagesInnerSuggestionsInnerUio;
36
+ export declare function ConversationMessagesInnerSuggestionsInnerUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationMessagesInnerSuggestionsInnerUio;
37
+ export declare function ConversationMessagesInnerSuggestionsInnerUioToJSON(json: any): ConversationMessagesInnerSuggestionsInnerUio;
38
+ export declare function ConversationMessagesInnerSuggestionsInnerUioToJSONTyped(value?: ConversationMessagesInnerSuggestionsInnerUio | 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.instanceOfConversationMessagesInnerSuggestionsInnerUio = instanceOfConversationMessagesInnerSuggestionsInnerUio;
17
+ exports.ConversationMessagesInnerSuggestionsInnerUioFromJSON = ConversationMessagesInnerSuggestionsInnerUioFromJSON;
18
+ exports.ConversationMessagesInnerSuggestionsInnerUioFromJSONTyped = ConversationMessagesInnerSuggestionsInnerUioFromJSONTyped;
19
+ exports.ConversationMessagesInnerSuggestionsInnerUioToJSON = ConversationMessagesInnerSuggestionsInnerUioToJSON;
20
+ exports.ConversationMessagesInnerSuggestionsInnerUioToJSONTyped = ConversationMessagesInnerSuggestionsInnerUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ConversationMessagesInnerSuggestionsInnerUio interface.
23
+ */
24
+ function instanceOfConversationMessagesInnerSuggestionsInnerUio(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('text' in value) || value['text'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function ConversationMessagesInnerSuggestionsInnerUioFromJSON(json) {
32
+ return ConversationMessagesInnerSuggestionsInnerUioFromJSONTyped(json, false);
33
+ }
34
+ function ConversationMessagesInnerSuggestionsInnerUioFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'id': json['id'],
40
+ 'text': json['text'],
41
+ };
42
+ }
43
+ function ConversationMessagesInnerSuggestionsInnerUioToJSON(json) {
44
+ return ConversationMessagesInnerSuggestionsInnerUioToJSONTyped(json, false);
45
+ }
46
+ function ConversationMessagesInnerSuggestionsInnerUioToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'id': value['id'],
52
+ 'text': value['text'],
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 { ConversationMessagesInnerSuggestionsInnerUio } from './ConversationMessagesInnerSuggestionsInnerUio';
13
+ import type { ChatMessageAudioInnerUio } from './ChatMessageAudioInnerUio';
14
+ import type { ConversationMessagesInnerFlowNodeUio } from './ConversationMessagesInnerFlowNodeUio';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface ConversationMessagesInnerUio
19
+ */
20
+ export interface ConversationMessagesInnerUio {
21
+ /**
22
+ *
23
+ * @type {string}
24
+ * @memberof ConversationMessagesInnerUio
25
+ */
26
+ id: string;
27
+ /**
28
+ *
29
+ * @type {string}
30
+ * @memberof ConversationMessagesInnerUio
31
+ */
32
+ role: string;
33
+ /**
34
+ *
35
+ * @type {string}
36
+ * @memberof ConversationMessagesInnerUio
37
+ */
38
+ content: string;
39
+ /**
40
+ *
41
+ * @type {string}
42
+ * @memberof ConversationMessagesInnerUio
43
+ */
44
+ timestamp: string;
45
+ /**
46
+ *
47
+ * @type {{ [key: string]: number; }}
48
+ * @memberof ConversationMessagesInnerUio
49
+ */
50
+ cost?: {
51
+ [key: string]: number;
52
+ };
53
+ /**
54
+ *
55
+ * @type {Array<ConversationMessagesInnerSuggestionsInnerUio>}
56
+ * @memberof ConversationMessagesInnerUio
57
+ */
58
+ suggestions?: Array<ConversationMessagesInnerSuggestionsInnerUio>;
59
+ /**
60
+ *
61
+ * @type {ConversationMessagesInnerFlowNodeUio}
62
+ * @memberof ConversationMessagesInnerUio
63
+ */
64
+ flowNode?: ConversationMessagesInnerFlowNodeUio;
65
+ /**
66
+ *
67
+ * @type {Array<ChatMessageAudioInnerUio>}
68
+ * @memberof ConversationMessagesInnerUio
69
+ */
70
+ audio?: Array<ChatMessageAudioInnerUio>;
71
+ }
72
+ /**
73
+ * Check if a given object implements the ConversationMessagesInnerUio interface.
74
+ */
75
+ export declare function instanceOfConversationMessagesInnerUio(value: object): value is ConversationMessagesInnerUio;
76
+ export declare function ConversationMessagesInnerUioFromJSON(json: any): ConversationMessagesInnerUio;
77
+ export declare function ConversationMessagesInnerUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationMessagesInnerUio;
78
+ export declare function ConversationMessagesInnerUioToJSON(json: any): ConversationMessagesInnerUio;
79
+ export declare function ConversationMessagesInnerUioToJSONTyped(value?: ConversationMessagesInnerUio | 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.instanceOfConversationMessagesInnerUio = instanceOfConversationMessagesInnerUio;
17
+ exports.ConversationMessagesInnerUioFromJSON = ConversationMessagesInnerUioFromJSON;
18
+ exports.ConversationMessagesInnerUioFromJSONTyped = ConversationMessagesInnerUioFromJSONTyped;
19
+ exports.ConversationMessagesInnerUioToJSON = ConversationMessagesInnerUioToJSON;
20
+ exports.ConversationMessagesInnerUioToJSONTyped = ConversationMessagesInnerUioToJSONTyped;
21
+ const ConversationMessagesInnerSuggestionsInnerUio_1 = require("./ConversationMessagesInnerSuggestionsInnerUio");
22
+ const ChatMessageAudioInnerUio_1 = require("./ChatMessageAudioInnerUio");
23
+ const ConversationMessagesInnerFlowNodeUio_1 = require("./ConversationMessagesInnerFlowNodeUio");
24
+ /**
25
+ * Check if a given object implements the ConversationMessagesInnerUio interface.
26
+ */
27
+ function instanceOfConversationMessagesInnerUio(value) {
28
+ if (!('id' in value) || value['id'] === undefined)
29
+ return false;
30
+ if (!('role' in value) || value['role'] === undefined)
31
+ return false;
32
+ if (!('content' in value) || value['content'] === undefined)
33
+ return false;
34
+ if (!('timestamp' in value) || value['timestamp'] === undefined)
35
+ return false;
36
+ return true;
37
+ }
38
+ function ConversationMessagesInnerUioFromJSON(json) {
39
+ return ConversationMessagesInnerUioFromJSONTyped(json, false);
40
+ }
41
+ function ConversationMessagesInnerUioFromJSONTyped(json, ignoreDiscriminator) {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+ 'id': json['id'],
47
+ 'role': json['role'],
48
+ 'content': json['content'],
49
+ 'timestamp': json['timestamp'],
50
+ 'cost': json['cost'] == null ? undefined : json['cost'],
51
+ 'suggestions': json['suggestions'] == null ? undefined : (json['suggestions'].map(ConversationMessagesInnerSuggestionsInnerUio_1.ConversationMessagesInnerSuggestionsInnerUioFromJSON)),
52
+ 'flowNode': json['flowNode'] == null ? undefined : (0, ConversationMessagesInnerFlowNodeUio_1.ConversationMessagesInnerFlowNodeUioFromJSON)(json['flowNode']),
53
+ 'audio': json['audio'] == null ? undefined : (json['audio'].map(ChatMessageAudioInnerUio_1.ChatMessageAudioInnerUioFromJSON)),
54
+ };
55
+ }
56
+ function ConversationMessagesInnerUioToJSON(json) {
57
+ return ConversationMessagesInnerUioToJSONTyped(json, false);
58
+ }
59
+ function ConversationMessagesInnerUioToJSONTyped(value, ignoreDiscriminator = false) {
60
+ if (value == null) {
61
+ return value;
62
+ }
63
+ return {
64
+ 'id': value['id'],
65
+ 'role': value['role'],
66
+ 'content': value['content'],
67
+ 'timestamp': value['timestamp'],
68
+ 'cost': value['cost'],
69
+ 'suggestions': value['suggestions'] == null ? undefined : (value['suggestions'].map(ConversationMessagesInnerSuggestionsInnerUio_1.ConversationMessagesInnerSuggestionsInnerUioToJSON)),
70
+ 'flowNode': (0, ConversationMessagesInnerFlowNodeUio_1.ConversationMessagesInnerFlowNodeUioToJSON)(value['flowNode']),
71
+ 'audio': value['audio'] == null ? undefined : (value['audio'].map(ChatMessageAudioInnerUio_1.ChatMessageAudioInnerUioToJSON)),
72
+ };
73
+ }
@@ -0,0 +1,51 @@
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 ConversationMetricsInnerSourceUio
16
+ */
17
+ export interface ConversationMetricsInnerSourceUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ConversationMetricsInnerSourceUio
22
+ */
23
+ type: ConversationMetricsInnerSourceUioTypeEnum;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ConversationMetricsInnerSourceUio
28
+ */
29
+ conversationId: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ConversationMetricsInnerSourceUio
34
+ */
35
+ messageId: string;
36
+ }
37
+ /**
38
+ * @export
39
+ */
40
+ export declare const ConversationMetricsInnerSourceUioTypeEnum: {
41
+ readonly Conversation: "CONVERSATION";
42
+ };
43
+ export type ConversationMetricsInnerSourceUioTypeEnum = typeof ConversationMetricsInnerSourceUioTypeEnum[keyof typeof ConversationMetricsInnerSourceUioTypeEnum];
44
+ /**
45
+ * Check if a given object implements the ConversationMetricsInnerSourceUio interface.
46
+ */
47
+ export declare function instanceOfConversationMetricsInnerSourceUio(value: object): value is ConversationMetricsInnerSourceUio;
48
+ export declare function ConversationMetricsInnerSourceUioFromJSON(json: any): ConversationMetricsInnerSourceUio;
49
+ export declare function ConversationMetricsInnerSourceUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationMetricsInnerSourceUio;
50
+ export declare function ConversationMetricsInnerSourceUioToJSON(json: any): ConversationMetricsInnerSourceUio;
51
+ export declare function ConversationMetricsInnerSourceUioToJSONTyped(value?: ConversationMetricsInnerSourceUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,65 @@
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.ConversationMetricsInnerSourceUioTypeEnum = void 0;
17
+ exports.instanceOfConversationMetricsInnerSourceUio = instanceOfConversationMetricsInnerSourceUio;
18
+ exports.ConversationMetricsInnerSourceUioFromJSON = ConversationMetricsInnerSourceUioFromJSON;
19
+ exports.ConversationMetricsInnerSourceUioFromJSONTyped = ConversationMetricsInnerSourceUioFromJSONTyped;
20
+ exports.ConversationMetricsInnerSourceUioToJSON = ConversationMetricsInnerSourceUioToJSON;
21
+ exports.ConversationMetricsInnerSourceUioToJSONTyped = ConversationMetricsInnerSourceUioToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.ConversationMetricsInnerSourceUioTypeEnum = {
26
+ Conversation: 'CONVERSATION'
27
+ };
28
+ /**
29
+ * Check if a given object implements the ConversationMetricsInnerSourceUio interface.
30
+ */
31
+ function instanceOfConversationMetricsInnerSourceUio(value) {
32
+ if (!('type' in value) || value['type'] === undefined)
33
+ return false;
34
+ if (!('conversationId' in value) || value['conversationId'] === undefined)
35
+ return false;
36
+ if (!('messageId' in value) || value['messageId'] === undefined)
37
+ return false;
38
+ return true;
39
+ }
40
+ function ConversationMetricsInnerSourceUioFromJSON(json) {
41
+ return ConversationMetricsInnerSourceUioFromJSONTyped(json, false);
42
+ }
43
+ function ConversationMetricsInnerSourceUioFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ 'type': json['type'],
49
+ 'conversationId': json['conversationId'],
50
+ 'messageId': json['messageId'],
51
+ };
52
+ }
53
+ function ConversationMetricsInnerSourceUioToJSON(json) {
54
+ return ConversationMetricsInnerSourceUioToJSONTyped(json, false);
55
+ }
56
+ function ConversationMetricsInnerSourceUioToJSONTyped(value, ignoreDiscriminator = false) {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+ return {
61
+ 'type': value['type'],
62
+ 'conversationId': value['conversationId'],
63
+ 'messageId': value['messageId'],
64
+ };
65
+ }
@@ -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 { ConversationMetricsInnerSourceUio } from './ConversationMetricsInnerSourceUio';
13
+ import type { ConversationMetricsInnerValueInnerUio } from './ConversationMetricsInnerValueInnerUio';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface ConversationMetricsInnerUio
18
+ */
19
+ export interface ConversationMetricsInnerUio {
20
+ /**
21
+ *
22
+ * @type {ConversationMetricsInnerSourceUio}
23
+ * @memberof ConversationMetricsInnerUio
24
+ */
25
+ source: ConversationMetricsInnerSourceUio;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof ConversationMetricsInnerUio
30
+ */
31
+ task: string;
32
+ /**
33
+ *
34
+ * @type {Array<ConversationMetricsInnerValueInnerUio>}
35
+ * @memberof ConversationMetricsInnerUio
36
+ */
37
+ value: Array<ConversationMetricsInnerValueInnerUio>;
38
+ }
39
+ /**
40
+ * Check if a given object implements the ConversationMetricsInnerUio interface.
41
+ */
42
+ export declare function instanceOfConversationMetricsInnerUio(value: object): value is ConversationMetricsInnerUio;
43
+ export declare function ConversationMetricsInnerUioFromJSON(json: any): ConversationMetricsInnerUio;
44
+ export declare function ConversationMetricsInnerUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationMetricsInnerUio;
45
+ export declare function ConversationMetricsInnerUioToJSON(json: any): ConversationMetricsInnerUio;
46
+ export declare function ConversationMetricsInnerUioToJSONTyped(value?: ConversationMetricsInnerUio | null, ignoreDiscriminator?: boolean): any;