@breign/client 1.0.6 → 1.0.8

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 (48) hide show
  1. package/dist/models/AgentRequestUio.d.ts +9 -0
  2. package/dist/models/AgentRequestUio.js +4 -0
  3. package/dist/models/AgentUio.d.ts +10 -3
  4. package/dist/models/AgentUio.js +4 -3
  5. package/dist/models/AppCreateRequestUio.d.ts +6 -0
  6. package/dist/models/AppCreateRequestUio.js +2 -0
  7. package/dist/models/AppSequencesInnerUio.d.ts +38 -0
  8. package/dist/models/AppSequencesInnerUio.js +50 -0
  9. package/dist/models/AppUio.d.ts +47 -3
  10. package/dist/models/AppUio.js +18 -10
  11. package/dist/models/ChatMessageUio.d.ts +3 -2
  12. package/dist/models/ChatMessageUio.js +3 -2
  13. package/dist/models/ChatUio.d.ts +6 -0
  14. package/dist/models/ChatUio.js +2 -0
  15. package/dist/models/ConversationFlowNodeEntrypointsUio.d.ts +32 -0
  16. package/dist/models/ConversationFlowNodeEntrypointsUio.js +48 -0
  17. package/dist/models/ConversationFlowNodeUio.d.ts +51 -0
  18. package/dist/models/ConversationFlowNodeUio.js +55 -0
  19. package/dist/models/ConversationUio.d.ts +7 -0
  20. package/dist/models/ConversationUio.js +5 -0
  21. package/dist/models/FileCreationRequestUio.d.ts +1 -1
  22. package/dist/models/FileCreationRequestUio.js +1 -3
  23. package/dist/models/FileCreationResponseUio.d.ts +18 -12
  24. package/dist/models/FileCreationResponseUio.js +10 -20
  25. package/dist/models/FileFormDataUio.d.ts +38 -0
  26. package/dist/models/FileFormDataUio.js +50 -0
  27. package/dist/models/FileUio.d.ts +25 -6
  28. package/dist/models/FileUio.js +13 -18
  29. package/dist/models/FileWithDownloadUrlUio.d.ts +25 -6
  30. package/dist/models/FileWithDownloadUrlUio.js +13 -18
  31. package/dist/models/KnowledgeBaseFilesInnerUio.d.ts +44 -0
  32. package/dist/models/KnowledgeBaseFilesInnerUio.js +58 -0
  33. package/dist/models/KnowledgeBaseUio.d.ts +132 -0
  34. package/dist/models/KnowledgeBaseUio.js +90 -0
  35. package/dist/models/ModelAgentUio.d.ts +159 -0
  36. package/dist/models/ModelAgentUio.js +112 -0
  37. package/dist/models/OrganizationUio.d.ts +0 -9
  38. package/dist/models/OrganizationUio.js +0 -6
  39. package/dist/models/UserUio.d.ts +56 -1
  40. package/dist/models/UserUio.js +21 -4
  41. package/dist/models/UserUserUio.d.ts +32 -0
  42. package/dist/models/UserUserUio.js +50 -0
  43. package/dist/models/index.d.ts +8 -1
  44. package/dist/models/index.js +8 -1
  45. package/dist/openapi.json +357 -44
  46. package/package.json +1 -1
  47. package/dist/models/AgentKnowledgeBaseUio.d.ts +0 -57
  48. package/dist/models/AgentKnowledgeBaseUio.js +0 -67
@@ -0,0 +1,44 @@
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 KnowledgeBaseFilesInnerUio
16
+ */
17
+ export interface KnowledgeBaseFilesInnerUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof KnowledgeBaseFilesInnerUio
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof KnowledgeBaseFilesInnerUio
28
+ */
29
+ name: string;
30
+ /**
31
+ *
32
+ * @type {Array<string>}
33
+ * @memberof KnowledgeBaseFilesInnerUio
34
+ */
35
+ knowledgeBaseId: Array<string>;
36
+ }
37
+ /**
38
+ * Check if a given object implements the KnowledgeBaseFilesInnerUio interface.
39
+ */
40
+ export declare function instanceOfKnowledgeBaseFilesInnerUio(value: object): value is KnowledgeBaseFilesInnerUio;
41
+ export declare function KnowledgeBaseFilesInnerUioFromJSON(json: any): KnowledgeBaseFilesInnerUio;
42
+ export declare function KnowledgeBaseFilesInnerUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): KnowledgeBaseFilesInnerUio;
43
+ export declare function KnowledgeBaseFilesInnerUioToJSON(json: any): KnowledgeBaseFilesInnerUio;
44
+ export declare function KnowledgeBaseFilesInnerUioToJSONTyped(value?: KnowledgeBaseFilesInnerUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,58 @@
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.instanceOfKnowledgeBaseFilesInnerUio = instanceOfKnowledgeBaseFilesInnerUio;
17
+ exports.KnowledgeBaseFilesInnerUioFromJSON = KnowledgeBaseFilesInnerUioFromJSON;
18
+ exports.KnowledgeBaseFilesInnerUioFromJSONTyped = KnowledgeBaseFilesInnerUioFromJSONTyped;
19
+ exports.KnowledgeBaseFilesInnerUioToJSON = KnowledgeBaseFilesInnerUioToJSON;
20
+ exports.KnowledgeBaseFilesInnerUioToJSONTyped = KnowledgeBaseFilesInnerUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the KnowledgeBaseFilesInnerUio interface.
23
+ */
24
+ function instanceOfKnowledgeBaseFilesInnerUio(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('name' in value) || value['name'] === undefined)
28
+ return false;
29
+ if (!('knowledgeBaseId' in value) || value['knowledgeBaseId'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function KnowledgeBaseFilesInnerUioFromJSON(json) {
34
+ return KnowledgeBaseFilesInnerUioFromJSONTyped(json, false);
35
+ }
36
+ function KnowledgeBaseFilesInnerUioFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'id': json['id'],
42
+ 'name': json['name'],
43
+ 'knowledgeBaseId': json['knowledgeBaseId'],
44
+ };
45
+ }
46
+ function KnowledgeBaseFilesInnerUioToJSON(json) {
47
+ return KnowledgeBaseFilesInnerUioToJSONTyped(json, false);
48
+ }
49
+ function KnowledgeBaseFilesInnerUioToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'id': value['id'],
55
+ 'name': value['name'],
56
+ 'knowledgeBaseId': value['knowledgeBaseId'],
57
+ };
58
+ }
@@ -0,0 +1,132 @@
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 { KnowledgeBasePrivacyUio } from './KnowledgeBasePrivacyUio';
13
+ import type { KnowledgeBaseFilesInnerUio } from './KnowledgeBaseFilesInnerUio';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface KnowledgeBaseUio
18
+ */
19
+ export interface KnowledgeBaseUio {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof KnowledgeBaseUio
24
+ */
25
+ id: string;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof KnowledgeBaseUio
30
+ */
31
+ name: string;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof KnowledgeBaseUio
36
+ */
37
+ createdAt: string;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof KnowledgeBaseUio
42
+ */
43
+ updatedAt?: string;
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof KnowledgeBaseUio
48
+ */
49
+ organisationId?: string;
50
+ /**
51
+ *
52
+ * @type {Array<string>}
53
+ * @memberof KnowledgeBaseUio
54
+ */
55
+ authorizedAgents: Array<string>;
56
+ /**
57
+ * DEPRECATED
58
+ * @type {boolean}
59
+ * @memberof KnowledgeBaseUio
60
+ */
61
+ isTemplate?: boolean;
62
+ /**
63
+ *
64
+ * @type {KnowledgeBasePrivacyUio}
65
+ * @memberof KnowledgeBaseUio
66
+ */
67
+ privacy?: KnowledgeBasePrivacyUio;
68
+ /**
69
+ *
70
+ * @type {string}
71
+ * @memberof KnowledgeBaseUio
72
+ */
73
+ role?: string;
74
+ /**
75
+ *
76
+ * @type {string}
77
+ * @memberof KnowledgeBaseUio
78
+ */
79
+ description?: string;
80
+ /**
81
+ *
82
+ * @type {string}
83
+ * @memberof KnowledgeBaseUio
84
+ */
85
+ picture?: string;
86
+ /**
87
+ *
88
+ * @type {string}
89
+ * @memberof KnowledgeBaseUio
90
+ */
91
+ template?: string;
92
+ /**
93
+ *
94
+ * @type {string}
95
+ * @memberof KnowledgeBaseUio
96
+ */
97
+ agentType?: string;
98
+ /**
99
+ *
100
+ * @type {{ [key: string]: any; }}
101
+ * @memberof KnowledgeBaseUio
102
+ */
103
+ modules?: {
104
+ [key: string]: any;
105
+ };
106
+ /**
107
+ *
108
+ * @type {Array<KnowledgeBaseFilesInnerUio>}
109
+ * @memberof KnowledgeBaseUio
110
+ */
111
+ files?: Array<KnowledgeBaseFilesInnerUio>;
112
+ /**
113
+ *
114
+ * @type {string}
115
+ * @memberof KnowledgeBaseUio
116
+ */
117
+ status?: string;
118
+ /**
119
+ *
120
+ * @type {boolean}
121
+ * @memberof KnowledgeBaseUio
122
+ */
123
+ indexed?: boolean;
124
+ }
125
+ /**
126
+ * Check if a given object implements the KnowledgeBaseUio interface.
127
+ */
128
+ export declare function instanceOfKnowledgeBaseUio(value: object): value is KnowledgeBaseUio;
129
+ export declare function KnowledgeBaseUioFromJSON(json: any): KnowledgeBaseUio;
130
+ export declare function KnowledgeBaseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): KnowledgeBaseUio;
131
+ export declare function KnowledgeBaseUioToJSON(json: any): KnowledgeBaseUio;
132
+ export declare function KnowledgeBaseUioToJSONTyped(value?: KnowledgeBaseUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,90 @@
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.instanceOfKnowledgeBaseUio = instanceOfKnowledgeBaseUio;
17
+ exports.KnowledgeBaseUioFromJSON = KnowledgeBaseUioFromJSON;
18
+ exports.KnowledgeBaseUioFromJSONTyped = KnowledgeBaseUioFromJSONTyped;
19
+ exports.KnowledgeBaseUioToJSON = KnowledgeBaseUioToJSON;
20
+ exports.KnowledgeBaseUioToJSONTyped = KnowledgeBaseUioToJSONTyped;
21
+ const KnowledgeBasePrivacyUio_1 = require("./KnowledgeBasePrivacyUio");
22
+ const KnowledgeBaseFilesInnerUio_1 = require("./KnowledgeBaseFilesInnerUio");
23
+ /**
24
+ * Check if a given object implements the KnowledgeBaseUio interface.
25
+ */
26
+ function instanceOfKnowledgeBaseUio(value) {
27
+ if (!('id' in value) || value['id'] === undefined)
28
+ return false;
29
+ if (!('name' in value) || value['name'] === undefined)
30
+ return false;
31
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
32
+ return false;
33
+ if (!('authorizedAgents' in value) || value['authorizedAgents'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function KnowledgeBaseUioFromJSON(json) {
38
+ return KnowledgeBaseUioFromJSONTyped(json, false);
39
+ }
40
+ function KnowledgeBaseUioFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'id': json['id'],
46
+ 'name': json['name'],
47
+ 'createdAt': json['createdAt'],
48
+ 'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
49
+ 'organisationId': json['organisationId'] == null ? undefined : json['organisationId'],
50
+ 'authorizedAgents': json['authorizedAgents'],
51
+ 'isTemplate': json['isTemplate'] == null ? undefined : json['isTemplate'],
52
+ 'privacy': json['privacy'] == null ? undefined : (0, KnowledgeBasePrivacyUio_1.KnowledgeBasePrivacyUioFromJSON)(json['privacy']),
53
+ 'role': json['role'] == null ? undefined : json['role'],
54
+ 'description': json['description'] == null ? undefined : json['description'],
55
+ 'picture': json['picture'] == null ? undefined : json['picture'],
56
+ 'template': json['template'] == null ? undefined : json['template'],
57
+ 'agentType': json['agentType'] == null ? undefined : json['agentType'],
58
+ 'modules': json['modules'] == null ? undefined : json['modules'],
59
+ 'files': json['files'] == null ? undefined : (json['files'].map(KnowledgeBaseFilesInnerUio_1.KnowledgeBaseFilesInnerUioFromJSON)),
60
+ 'status': json['status'] == null ? undefined : json['status'],
61
+ 'indexed': json['indexed'] == null ? undefined : json['indexed'],
62
+ };
63
+ }
64
+ function KnowledgeBaseUioToJSON(json) {
65
+ return KnowledgeBaseUioToJSONTyped(json, false);
66
+ }
67
+ function KnowledgeBaseUioToJSONTyped(value, ignoreDiscriminator = false) {
68
+ if (value == null) {
69
+ return value;
70
+ }
71
+ return {
72
+ 'id': value['id'],
73
+ 'name': value['name'],
74
+ 'createdAt': value['createdAt'],
75
+ 'updatedAt': value['updatedAt'],
76
+ 'organisationId': value['organisationId'],
77
+ 'authorizedAgents': value['authorizedAgents'],
78
+ 'isTemplate': value['isTemplate'],
79
+ 'privacy': (0, KnowledgeBasePrivacyUio_1.KnowledgeBasePrivacyUioToJSON)(value['privacy']),
80
+ 'role': value['role'],
81
+ 'description': value['description'],
82
+ 'picture': value['picture'],
83
+ 'template': value['template'],
84
+ 'agentType': value['agentType'],
85
+ 'modules': value['modules'],
86
+ 'files': value['files'] == null ? undefined : (value['files'].map(KnowledgeBaseFilesInnerUio_1.KnowledgeBaseFilesInnerUioToJSON)),
87
+ 'status': value['status'],
88
+ 'indexed': value['indexed'],
89
+ };
90
+ }
@@ -0,0 +1,159 @@
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 { AgentModuleUio } from './AgentModuleUio';
13
+ import type { PersonaUio } from './PersonaUio';
14
+ import type { EngineUio } from './EngineUio';
15
+ import type { PromptInitUio } from './PromptInitUio';
16
+ import type { AgentTypeUio } from './AgentTypeUio';
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface ModelAgentUio
21
+ */
22
+ export interface ModelAgentUio {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof ModelAgentUio
27
+ */
28
+ id: string;
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof ModelAgentUio
33
+ */
34
+ organisationId: string;
35
+ /**
36
+ *
37
+ * @type {EngineUio}
38
+ * @memberof ModelAgentUio
39
+ */
40
+ engine: EngineUio;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof ModelAgentUio
45
+ */
46
+ name: string;
47
+ /**
48
+ *
49
+ * @type {PersonaUio}
50
+ * @memberof ModelAgentUio
51
+ */
52
+ persona: PersonaUio;
53
+ /**
54
+ *
55
+ * @type {string}
56
+ * @memberof ModelAgentUio
57
+ */
58
+ description: string;
59
+ /**
60
+ *
61
+ * @type {string}
62
+ * @memberof ModelAgentUio
63
+ */
64
+ role: string;
65
+ /**
66
+ *
67
+ * @type {string}
68
+ * @memberof ModelAgentUio
69
+ */
70
+ defaultLanguage: string;
71
+ /**
72
+ *
73
+ * @type {boolean}
74
+ * @memberof ModelAgentUio
75
+ */
76
+ isParent: boolean;
77
+ /**
78
+ *
79
+ * @type {string}
80
+ * @memberof ModelAgentUio
81
+ */
82
+ template?: string;
83
+ /**
84
+ *
85
+ * @type {string}
86
+ * @memberof ModelAgentUio
87
+ */
88
+ createdAt?: string;
89
+ /**
90
+ *
91
+ * @type {PromptInitUio}
92
+ * @memberof ModelAgentUio
93
+ */
94
+ promptInit?: PromptInitUio;
95
+ /**
96
+ *
97
+ * @type {string}
98
+ * @memberof ModelAgentUio
99
+ */
100
+ updatedAt?: string;
101
+ /**
102
+ *
103
+ * @type {AgentTypeUio}
104
+ * @memberof ModelAgentUio
105
+ */
106
+ agentType?: AgentTypeUio;
107
+ /**
108
+ *
109
+ * @type {string}
110
+ * @memberof ModelAgentUio
111
+ */
112
+ color?: string;
113
+ /**
114
+ *
115
+ * @type {string}
116
+ * @memberof ModelAgentUio
117
+ */
118
+ picture?: string;
119
+ /**
120
+ *
121
+ * @type {string}
122
+ * @memberof ModelAgentUio
123
+ */
124
+ profilePicture?: string;
125
+ /**
126
+ *
127
+ * @type {boolean}
128
+ * @memberof ModelAgentUio
129
+ */
130
+ isActivated?: boolean;
131
+ /**
132
+ *
133
+ * @type {boolean}
134
+ * @memberof ModelAgentUio
135
+ */
136
+ isTemplate?: boolean;
137
+ /**
138
+ *
139
+ * @type {Array<string>}
140
+ * @memberof ModelAgentUio
141
+ */
142
+ knowledgeBaseId?: Array<string>;
143
+ /**
144
+ *
145
+ * @type {{ [key: string]: AgentModuleUio; }}
146
+ * @memberof ModelAgentUio
147
+ */
148
+ modules?: {
149
+ [key: string]: AgentModuleUio;
150
+ };
151
+ }
152
+ /**
153
+ * Check if a given object implements the ModelAgentUio interface.
154
+ */
155
+ export declare function instanceOfModelAgentUio(value: object): value is ModelAgentUio;
156
+ export declare function ModelAgentUioFromJSON(json: any): ModelAgentUio;
157
+ export declare function ModelAgentUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelAgentUio;
158
+ export declare function ModelAgentUioToJSON(json: any): ModelAgentUio;
159
+ export declare function ModelAgentUioToJSONTyped(value?: ModelAgentUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,112 @@
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.instanceOfModelAgentUio = instanceOfModelAgentUio;
17
+ exports.ModelAgentUioFromJSON = ModelAgentUioFromJSON;
18
+ exports.ModelAgentUioFromJSONTyped = ModelAgentUioFromJSONTyped;
19
+ exports.ModelAgentUioToJSON = ModelAgentUioToJSON;
20
+ exports.ModelAgentUioToJSONTyped = ModelAgentUioToJSONTyped;
21
+ const runtime_1 = require("../runtime");
22
+ const AgentModuleUio_1 = require("./AgentModuleUio");
23
+ const PersonaUio_1 = require("./PersonaUio");
24
+ const EngineUio_1 = require("./EngineUio");
25
+ const PromptInitUio_1 = require("./PromptInitUio");
26
+ const AgentTypeUio_1 = require("./AgentTypeUio");
27
+ /**
28
+ * Check if a given object implements the ModelAgentUio interface.
29
+ */
30
+ function instanceOfModelAgentUio(value) {
31
+ if (!('id' in value) || value['id'] === undefined)
32
+ return false;
33
+ if (!('organisationId' in value) || value['organisationId'] === undefined)
34
+ return false;
35
+ if (!('engine' in value) || value['engine'] === undefined)
36
+ return false;
37
+ if (!('name' in value) || value['name'] === undefined)
38
+ return false;
39
+ if (!('persona' in value) || value['persona'] === undefined)
40
+ return false;
41
+ if (!('description' in value) || value['description'] === undefined)
42
+ return false;
43
+ if (!('role' in value) || value['role'] === undefined)
44
+ return false;
45
+ if (!('defaultLanguage' in value) || value['defaultLanguage'] === undefined)
46
+ return false;
47
+ if (!('isParent' in value) || value['isParent'] === undefined)
48
+ return false;
49
+ return true;
50
+ }
51
+ function ModelAgentUioFromJSON(json) {
52
+ return ModelAgentUioFromJSONTyped(json, false);
53
+ }
54
+ function ModelAgentUioFromJSONTyped(json, ignoreDiscriminator) {
55
+ if (json == null) {
56
+ return json;
57
+ }
58
+ return {
59
+ 'id': json['id'],
60
+ 'organisationId': json['organisationId'],
61
+ 'engine': (0, EngineUio_1.EngineUioFromJSON)(json['engine']),
62
+ 'name': json['name'],
63
+ 'persona': (0, PersonaUio_1.PersonaUioFromJSON)(json['persona']),
64
+ 'description': json['description'],
65
+ 'role': json['role'],
66
+ 'defaultLanguage': json['defaultLanguage'],
67
+ 'isParent': json['isParent'],
68
+ 'template': json['template'] == null ? undefined : json['template'],
69
+ 'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
70
+ 'promptInit': json['promptInit'] == null ? undefined : (0, PromptInitUio_1.PromptInitUioFromJSON)(json['promptInit']),
71
+ 'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
72
+ 'agentType': json['agentType'] == null ? undefined : (0, AgentTypeUio_1.AgentTypeUioFromJSON)(json['agentType']),
73
+ 'color': json['color'] == null ? undefined : json['color'],
74
+ 'picture': json['picture'] == null ? undefined : json['picture'],
75
+ 'profilePicture': json['profilePicture'] == null ? undefined : json['profilePicture'],
76
+ 'isActivated': json['isActivated'] == null ? undefined : json['isActivated'],
77
+ 'isTemplate': json['isTemplate'] == null ? undefined : json['isTemplate'],
78
+ 'knowledgeBaseId': json['knowledgeBaseId'] == null ? undefined : json['knowledgeBaseId'],
79
+ 'modules': json['modules'] == null ? undefined : ((0, runtime_1.mapValues)(json['modules'], AgentModuleUio_1.AgentModuleUioFromJSON)),
80
+ };
81
+ }
82
+ function ModelAgentUioToJSON(json) {
83
+ return ModelAgentUioToJSONTyped(json, false);
84
+ }
85
+ function ModelAgentUioToJSONTyped(value, ignoreDiscriminator = false) {
86
+ if (value == null) {
87
+ return value;
88
+ }
89
+ return {
90
+ 'id': value['id'],
91
+ 'organisationId': value['organisationId'],
92
+ 'engine': (0, EngineUio_1.EngineUioToJSON)(value['engine']),
93
+ 'name': value['name'],
94
+ 'persona': (0, PersonaUio_1.PersonaUioToJSON)(value['persona']),
95
+ 'description': value['description'],
96
+ 'role': value['role'],
97
+ 'defaultLanguage': value['defaultLanguage'],
98
+ 'isParent': value['isParent'],
99
+ 'template': value['template'],
100
+ 'createdAt': value['createdAt'],
101
+ 'promptInit': (0, PromptInitUio_1.PromptInitUioToJSON)(value['promptInit']),
102
+ 'updatedAt': value['updatedAt'],
103
+ 'agentType': (0, AgentTypeUio_1.AgentTypeUioToJSON)(value['agentType']),
104
+ 'color': value['color'],
105
+ 'picture': value['picture'],
106
+ 'profilePicture': value['profilePicture'],
107
+ 'isActivated': value['isActivated'],
108
+ 'isTemplate': value['isTemplate'],
109
+ 'knowledgeBaseId': value['knowledgeBaseId'],
110
+ 'modules': value['modules'] == null ? undefined : ((0, runtime_1.mapValues)(value['modules'], AgentModuleUio_1.AgentModuleUioToJSON)),
111
+ };
112
+ }
@@ -9,7 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { AgentModuleUio } from './AgentModuleUio';
13
12
  /**
14
13
  *
15
14
  * @export
@@ -28,14 +27,6 @@ export interface OrganizationUio {
28
27
  * @memberof OrganizationUio
29
28
  */
30
29
  name: string;
31
- /**
32
- *
33
- * @type {{ [key: string]: AgentModuleUio; }}
34
- * @memberof OrganizationUio
35
- */
36
- modules: {
37
- [key: string]: AgentModuleUio;
38
- };
39
30
  }
40
31
  /**
41
32
  * Check if a given object implements the OrganizationUio interface.
@@ -18,8 +18,6 @@ exports.OrganizationUioFromJSON = OrganizationUioFromJSON;
18
18
  exports.OrganizationUioFromJSONTyped = OrganizationUioFromJSONTyped;
19
19
  exports.OrganizationUioToJSON = OrganizationUioToJSON;
20
20
  exports.OrganizationUioToJSONTyped = OrganizationUioToJSONTyped;
21
- const runtime_1 = require("../runtime");
22
- const AgentModuleUio_1 = require("./AgentModuleUio");
23
21
  /**
24
22
  * Check if a given object implements the OrganizationUio interface.
25
23
  */
@@ -28,8 +26,6 @@ function instanceOfOrganizationUio(value) {
28
26
  return false;
29
27
  if (!('name' in value) || value['name'] === undefined)
30
28
  return false;
31
- if (!('modules' in value) || value['modules'] === undefined)
32
- return false;
33
29
  return true;
34
30
  }
35
31
  function OrganizationUioFromJSON(json) {
@@ -42,7 +38,6 @@ function OrganizationUioFromJSONTyped(json, ignoreDiscriminator) {
42
38
  return {
43
39
  'id': json['id'],
44
40
  'name': json['name'],
45
- 'modules': ((0, runtime_1.mapValues)(json['modules'], AgentModuleUio_1.AgentModuleUioFromJSON)),
46
41
  };
47
42
  }
48
43
  function OrganizationUioToJSON(json) {
@@ -55,6 +50,5 @@ function OrganizationUioToJSONTyped(value, ignoreDiscriminator = false) {
55
50
  return {
56
51
  'id': value['id'],
57
52
  'name': value['name'],
58
- 'modules': ((0, runtime_1.mapValues)(value['modules'], AgentModuleUio_1.AgentModuleUioToJSON)),
59
53
  };
60
54
  }