@breign/client 1.0.82 → 1.0.83

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.
@@ -0,0 +1,115 @@
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 * as runtime from '../runtime';
13
+ import type { SkillAssignRequestUio, SkillCreateRequestUio, SkillUio, SkillUpdateRequestUio } from '../models/index';
14
+ export interface AssignSkillToAgentRequest {
15
+ agentId: string;
16
+ skillAssignRequestUio: SkillAssignRequestUio;
17
+ }
18
+ export interface CreateSkillRequest {
19
+ skillCreateRequestUio: SkillCreateRequestUio;
20
+ }
21
+ export interface DeleteSkillRequest {
22
+ skillId: string;
23
+ }
24
+ export interface GetAgentSkillsRequest {
25
+ agentId: string;
26
+ }
27
+ export interface GetSkillRequest {
28
+ skillId: string;
29
+ }
30
+ export interface ListSkillsRequest {
31
+ organizationId: string;
32
+ page?: number;
33
+ limit?: number;
34
+ }
35
+ export interface UnassignSkillFromAgentRequest {
36
+ agentId: string;
37
+ skillId: string;
38
+ }
39
+ export interface UpdateSkillRequest {
40
+ skillId: string;
41
+ skillUpdateRequestUio: SkillUpdateRequestUio;
42
+ }
43
+ /**
44
+ *
45
+ */
46
+ export declare class SkillsApi extends runtime.BaseAPI {
47
+ /**
48
+ * Assign a skill to an agent
49
+ */
50
+ assignSkillToAgentRaw(requestParameters: AssignSkillToAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
51
+ /**
52
+ * Assign a skill to an agent
53
+ */
54
+ assignSkillToAgent(agentId: string, skillAssignRequestUio: SkillAssignRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
55
+ /**
56
+ * Creates a new skill in an organization
57
+ * Create a skill
58
+ */
59
+ createSkillRaw(requestParameters: CreateSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SkillUio>>;
60
+ /**
61
+ * Creates a new skill in an organization
62
+ * Create a skill
63
+ */
64
+ createSkill(skillCreateRequestUio: SkillCreateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SkillUio>;
65
+ /**
66
+ * Delete a skill
67
+ */
68
+ deleteSkillRaw(requestParameters: DeleteSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
69
+ /**
70
+ * Delete a skill
71
+ */
72
+ deleteSkill(skillId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
73
+ /**
74
+ * Get skills assigned to an agent
75
+ */
76
+ getAgentSkillsRaw(requestParameters: GetAgentSkillsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SkillUio>>>;
77
+ /**
78
+ * Get skills assigned to an agent
79
+ */
80
+ getAgentSkills(agentId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SkillUio>>;
81
+ /**
82
+ * Get a skill by ID
83
+ */
84
+ getSkillRaw(requestParameters: GetSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SkillUio>>;
85
+ /**
86
+ * Get a skill by ID
87
+ */
88
+ getSkill(skillId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SkillUio>;
89
+ /**
90
+ * Returns a paginated list of skills scoped to an organization
91
+ * List skills in an organization
92
+ */
93
+ listSkillsRaw(requestParameters: ListSkillsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SkillUio>>>;
94
+ /**
95
+ * Returns a paginated list of skills scoped to an organization
96
+ * List skills in an organization
97
+ */
98
+ listSkills(organizationId: string, page?: number, limit?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SkillUio>>;
99
+ /**
100
+ * Unassign a skill from an agent
101
+ */
102
+ unassignSkillFromAgentRaw(requestParameters: UnassignSkillFromAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
103
+ /**
104
+ * Unassign a skill from an agent
105
+ */
106
+ unassignSkillFromAgent(agentId: string, skillId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
107
+ /**
108
+ * Update a skill
109
+ */
110
+ updateSkillRaw(requestParameters: UpdateSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SkillUio>>;
111
+ /**
112
+ * Update a skill
113
+ */
114
+ updateSkill(skillId: string, skillUpdateRequestUio: SkillUpdateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SkillUio>;
115
+ }
@@ -0,0 +1,298 @@
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
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ var desc = Object.getOwnPropertyDescriptor(m, k);
18
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19
+ desc = { enumerable: true, get: function() { return m[k]; } };
20
+ }
21
+ Object.defineProperty(o, k2, desc);
22
+ }) : (function(o, m, k, k2) {
23
+ if (k2 === undefined) k2 = k;
24
+ o[k2] = m[k];
25
+ }));
26
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
27
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
28
+ }) : function(o, v) {
29
+ o["default"] = v;
30
+ });
31
+ var __importStar = (this && this.__importStar) || (function () {
32
+ var ownKeys = function(o) {
33
+ ownKeys = Object.getOwnPropertyNames || function (o) {
34
+ var ar = [];
35
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
36
+ return ar;
37
+ };
38
+ return ownKeys(o);
39
+ };
40
+ return function (mod) {
41
+ if (mod && mod.__esModule) return mod;
42
+ var result = {};
43
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
44
+ __setModuleDefault(result, mod);
45
+ return result;
46
+ };
47
+ })();
48
+ Object.defineProperty(exports, "__esModule", { value: true });
49
+ exports.SkillsApi = void 0;
50
+ const runtime = __importStar(require("../runtime"));
51
+ const index_1 = require("../models/index");
52
+ /**
53
+ *
54
+ */
55
+ class SkillsApi extends runtime.BaseAPI {
56
+ /**
57
+ * Assign a skill to an agent
58
+ */
59
+ async assignSkillToAgentRaw(requestParameters, initOverrides) {
60
+ if (requestParameters['agentId'] == null) {
61
+ throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling assignSkillToAgent().');
62
+ }
63
+ if (requestParameters['skillAssignRequestUio'] == null) {
64
+ throw new runtime.RequiredError('skillAssignRequestUio', 'Required parameter "skillAssignRequestUio" was null or undefined when calling assignSkillToAgent().');
65
+ }
66
+ const queryParameters = {};
67
+ const headerParameters = {};
68
+ headerParameters['Content-Type'] = 'application/json';
69
+ if (this.configuration && this.configuration.apiKey) {
70
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
71
+ }
72
+ const response = await this.request({
73
+ path: `/agents/{agentId}/skills`.replace(`{${"agentId"}}`, encodeURIComponent(String(requestParameters['agentId']))),
74
+ method: 'POST',
75
+ headers: headerParameters,
76
+ query: queryParameters,
77
+ body: (0, index_1.SkillAssignRequestUioToJSON)(requestParameters['skillAssignRequestUio']),
78
+ }, initOverrides);
79
+ return new runtime.VoidApiResponse(response);
80
+ }
81
+ /**
82
+ * Assign a skill to an agent
83
+ */
84
+ async assignSkillToAgent(agentId, skillAssignRequestUio, initOverrides) {
85
+ await this.assignSkillToAgentRaw({ agentId: agentId, skillAssignRequestUio: skillAssignRequestUio }, initOverrides);
86
+ }
87
+ /**
88
+ * Creates a new skill in an organization
89
+ * Create a skill
90
+ */
91
+ async createSkillRaw(requestParameters, initOverrides) {
92
+ if (requestParameters['skillCreateRequestUio'] == null) {
93
+ throw new runtime.RequiredError('skillCreateRequestUio', 'Required parameter "skillCreateRequestUio" was null or undefined when calling createSkill().');
94
+ }
95
+ const queryParameters = {};
96
+ const headerParameters = {};
97
+ headerParameters['Content-Type'] = 'application/json';
98
+ if (this.configuration && this.configuration.apiKey) {
99
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
100
+ }
101
+ const response = await this.request({
102
+ path: `/skills`,
103
+ method: 'POST',
104
+ headers: headerParameters,
105
+ query: queryParameters,
106
+ body: (0, index_1.SkillCreateRequestUioToJSON)(requestParameters['skillCreateRequestUio']),
107
+ }, initOverrides);
108
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SkillUioFromJSON)(jsonValue));
109
+ }
110
+ /**
111
+ * Creates a new skill in an organization
112
+ * Create a skill
113
+ */
114
+ async createSkill(skillCreateRequestUio, initOverrides) {
115
+ const response = await this.createSkillRaw({ skillCreateRequestUio: skillCreateRequestUio }, initOverrides);
116
+ return await response.value();
117
+ }
118
+ /**
119
+ * Delete a skill
120
+ */
121
+ async deleteSkillRaw(requestParameters, initOverrides) {
122
+ if (requestParameters['skillId'] == null) {
123
+ throw new runtime.RequiredError('skillId', 'Required parameter "skillId" was null or undefined when calling deleteSkill().');
124
+ }
125
+ const queryParameters = {};
126
+ const headerParameters = {};
127
+ if (this.configuration && this.configuration.apiKey) {
128
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
129
+ }
130
+ const response = await this.request({
131
+ path: `/skills/{skillId}`.replace(`{${"skillId"}}`, encodeURIComponent(String(requestParameters['skillId']))),
132
+ method: 'DELETE',
133
+ headers: headerParameters,
134
+ query: queryParameters,
135
+ }, initOverrides);
136
+ return new runtime.VoidApiResponse(response);
137
+ }
138
+ /**
139
+ * Delete a skill
140
+ */
141
+ async deleteSkill(skillId, initOverrides) {
142
+ await this.deleteSkillRaw({ skillId: skillId }, initOverrides);
143
+ }
144
+ /**
145
+ * Get skills assigned to an agent
146
+ */
147
+ async getAgentSkillsRaw(requestParameters, initOverrides) {
148
+ if (requestParameters['agentId'] == null) {
149
+ throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling getAgentSkills().');
150
+ }
151
+ const queryParameters = {};
152
+ const headerParameters = {};
153
+ if (this.configuration && this.configuration.apiKey) {
154
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
155
+ }
156
+ const response = await this.request({
157
+ path: `/agents/{agentId}/skills`.replace(`{${"agentId"}}`, encodeURIComponent(String(requestParameters['agentId']))),
158
+ method: 'GET',
159
+ headers: headerParameters,
160
+ query: queryParameters,
161
+ }, initOverrides);
162
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.SkillUioFromJSON));
163
+ }
164
+ /**
165
+ * Get skills assigned to an agent
166
+ */
167
+ async getAgentSkills(agentId, initOverrides) {
168
+ const response = await this.getAgentSkillsRaw({ agentId: agentId }, initOverrides);
169
+ return await response.value();
170
+ }
171
+ /**
172
+ * Get a skill by ID
173
+ */
174
+ async getSkillRaw(requestParameters, initOverrides) {
175
+ if (requestParameters['skillId'] == null) {
176
+ throw new runtime.RequiredError('skillId', 'Required parameter "skillId" was null or undefined when calling getSkill().');
177
+ }
178
+ const queryParameters = {};
179
+ const headerParameters = {};
180
+ if (this.configuration && this.configuration.apiKey) {
181
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
182
+ }
183
+ const response = await this.request({
184
+ path: `/skills/{skillId}`.replace(`{${"skillId"}}`, encodeURIComponent(String(requestParameters['skillId']))),
185
+ method: 'GET',
186
+ headers: headerParameters,
187
+ query: queryParameters,
188
+ }, initOverrides);
189
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SkillUioFromJSON)(jsonValue));
190
+ }
191
+ /**
192
+ * Get a skill by ID
193
+ */
194
+ async getSkill(skillId, initOverrides) {
195
+ const response = await this.getSkillRaw({ skillId: skillId }, initOverrides);
196
+ return await response.value();
197
+ }
198
+ /**
199
+ * Returns a paginated list of skills scoped to an organization
200
+ * List skills in an organization
201
+ */
202
+ async listSkillsRaw(requestParameters, initOverrides) {
203
+ if (requestParameters['organizationId'] == null) {
204
+ throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling listSkills().');
205
+ }
206
+ const queryParameters = {};
207
+ if (requestParameters['organizationId'] != null) {
208
+ queryParameters['organizationId'] = requestParameters['organizationId'];
209
+ }
210
+ if (requestParameters['page'] != null) {
211
+ queryParameters['page'] = requestParameters['page'];
212
+ }
213
+ if (requestParameters['limit'] != null) {
214
+ queryParameters['limit'] = requestParameters['limit'];
215
+ }
216
+ const headerParameters = {};
217
+ if (this.configuration && this.configuration.apiKey) {
218
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
219
+ }
220
+ const response = await this.request({
221
+ path: `/skills`,
222
+ method: 'GET',
223
+ headers: headerParameters,
224
+ query: queryParameters,
225
+ }, initOverrides);
226
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.SkillUioFromJSON));
227
+ }
228
+ /**
229
+ * Returns a paginated list of skills scoped to an organization
230
+ * List skills in an organization
231
+ */
232
+ async listSkills(organizationId, page, limit, initOverrides) {
233
+ const response = await this.listSkillsRaw({ organizationId: organizationId, page: page, limit: limit }, initOverrides);
234
+ return await response.value();
235
+ }
236
+ /**
237
+ * Unassign a skill from an agent
238
+ */
239
+ async unassignSkillFromAgentRaw(requestParameters, initOverrides) {
240
+ if (requestParameters['agentId'] == null) {
241
+ throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling unassignSkillFromAgent().');
242
+ }
243
+ if (requestParameters['skillId'] == null) {
244
+ throw new runtime.RequiredError('skillId', 'Required parameter "skillId" was null or undefined when calling unassignSkillFromAgent().');
245
+ }
246
+ const queryParameters = {};
247
+ const headerParameters = {};
248
+ if (this.configuration && this.configuration.apiKey) {
249
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
250
+ }
251
+ const response = await this.request({
252
+ path: `/agents/{agentId}/skills/{skillId}`.replace(`{${"agentId"}}`, encodeURIComponent(String(requestParameters['agentId']))).replace(`{${"skillId"}}`, encodeURIComponent(String(requestParameters['skillId']))),
253
+ method: 'DELETE',
254
+ headers: headerParameters,
255
+ query: queryParameters,
256
+ }, initOverrides);
257
+ return new runtime.VoidApiResponse(response);
258
+ }
259
+ /**
260
+ * Unassign a skill from an agent
261
+ */
262
+ async unassignSkillFromAgent(agentId, skillId, initOverrides) {
263
+ await this.unassignSkillFromAgentRaw({ agentId: agentId, skillId: skillId }, initOverrides);
264
+ }
265
+ /**
266
+ * Update a skill
267
+ */
268
+ async updateSkillRaw(requestParameters, initOverrides) {
269
+ if (requestParameters['skillId'] == null) {
270
+ throw new runtime.RequiredError('skillId', 'Required parameter "skillId" was null or undefined when calling updateSkill().');
271
+ }
272
+ if (requestParameters['skillUpdateRequestUio'] == null) {
273
+ throw new runtime.RequiredError('skillUpdateRequestUio', 'Required parameter "skillUpdateRequestUio" was null or undefined when calling updateSkill().');
274
+ }
275
+ const queryParameters = {};
276
+ const headerParameters = {};
277
+ headerParameters['Content-Type'] = 'application/json';
278
+ if (this.configuration && this.configuration.apiKey) {
279
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
280
+ }
281
+ const response = await this.request({
282
+ path: `/skills/{skillId}`.replace(`{${"skillId"}}`, encodeURIComponent(String(requestParameters['skillId']))),
283
+ method: 'PATCH',
284
+ headers: headerParameters,
285
+ query: queryParameters,
286
+ body: (0, index_1.SkillUpdateRequestUioToJSON)(requestParameters['skillUpdateRequestUio']),
287
+ }, initOverrides);
288
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SkillUioFromJSON)(jsonValue));
289
+ }
290
+ /**
291
+ * Update a skill
292
+ */
293
+ async updateSkill(skillId, skillUpdateRequestUio, initOverrides) {
294
+ const response = await this.updateSkillRaw({ skillId: skillId, skillUpdateRequestUio: skillUpdateRequestUio }, initOverrides);
295
+ return await response.value();
296
+ }
297
+ }
298
+ exports.SkillsApi = SkillsApi;
@@ -15,4 +15,5 @@ export * from './MetricsApi';
15
15
  export * from './OrganizationsApi';
16
16
  export * from './PromptsApi';
17
17
  export * from './RemotesApi';
18
+ export * from './SkillsApi';
18
19
  export * from './ToolsApi';
@@ -33,4 +33,5 @@ __exportStar(require("./MetricsApi"), exports);
33
33
  __exportStar(require("./OrganizationsApi"), exports);
34
34
  __exportStar(require("./PromptsApi"), exports);
35
35
  __exportStar(require("./RemotesApi"), exports);
36
+ __exportStar(require("./SkillsApi"), exports);
36
37
  __exportStar(require("./ToolsApi"), exports);
@@ -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 SkillAssignRequestUio
16
+ */
17
+ export interface SkillAssignRequestUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SkillAssignRequestUio
22
+ */
23
+ skillId: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the SkillAssignRequestUio interface.
27
+ */
28
+ export declare function instanceOfSkillAssignRequestUio(value: object): value is SkillAssignRequestUio;
29
+ export declare function SkillAssignRequestUioFromJSON(json: any): SkillAssignRequestUio;
30
+ export declare function SkillAssignRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): SkillAssignRequestUio;
31
+ export declare function SkillAssignRequestUioToJSON(json: any): SkillAssignRequestUio;
32
+ export declare function SkillAssignRequestUioToJSONTyped(value?: SkillAssignRequestUio | 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.instanceOfSkillAssignRequestUio = instanceOfSkillAssignRequestUio;
17
+ exports.SkillAssignRequestUioFromJSON = SkillAssignRequestUioFromJSON;
18
+ exports.SkillAssignRequestUioFromJSONTyped = SkillAssignRequestUioFromJSONTyped;
19
+ exports.SkillAssignRequestUioToJSON = SkillAssignRequestUioToJSON;
20
+ exports.SkillAssignRequestUioToJSONTyped = SkillAssignRequestUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the SkillAssignRequestUio interface.
23
+ */
24
+ function instanceOfSkillAssignRequestUio(value) {
25
+ if (!('skillId' in value) || value['skillId'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function SkillAssignRequestUioFromJSON(json) {
30
+ return SkillAssignRequestUioFromJSONTyped(json, false);
31
+ }
32
+ function SkillAssignRequestUioFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'skillId': json['skill_id'],
38
+ };
39
+ }
40
+ function SkillAssignRequestUioToJSON(json) {
41
+ return SkillAssignRequestUioToJSONTyped(json, false);
42
+ }
43
+ function SkillAssignRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'skill_id': value['skillId'],
49
+ };
50
+ }
@@ -0,0 +1,56 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface SkillCreateRequestUio
16
+ */
17
+ export interface SkillCreateRequestUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SkillCreateRequestUio
22
+ */
23
+ orgId: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof SkillCreateRequestUio
28
+ */
29
+ name: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof SkillCreateRequestUio
34
+ */
35
+ slug: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof SkillCreateRequestUio
40
+ */
41
+ description: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof SkillCreateRequestUio
46
+ */
47
+ content: string;
48
+ }
49
+ /**
50
+ * Check if a given object implements the SkillCreateRequestUio interface.
51
+ */
52
+ export declare function instanceOfSkillCreateRequestUio(value: object): value is SkillCreateRequestUio;
53
+ export declare function SkillCreateRequestUioFromJSON(json: any): SkillCreateRequestUio;
54
+ export declare function SkillCreateRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): SkillCreateRequestUio;
55
+ export declare function SkillCreateRequestUioToJSON(json: any): SkillCreateRequestUio;
56
+ export declare function SkillCreateRequestUioToJSONTyped(value?: SkillCreateRequestUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfSkillCreateRequestUio = instanceOfSkillCreateRequestUio;
17
+ exports.SkillCreateRequestUioFromJSON = SkillCreateRequestUioFromJSON;
18
+ exports.SkillCreateRequestUioFromJSONTyped = SkillCreateRequestUioFromJSONTyped;
19
+ exports.SkillCreateRequestUioToJSON = SkillCreateRequestUioToJSON;
20
+ exports.SkillCreateRequestUioToJSONTyped = SkillCreateRequestUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the SkillCreateRequestUio interface.
23
+ */
24
+ function instanceOfSkillCreateRequestUio(value) {
25
+ if (!('orgId' in value) || value['orgId'] === undefined)
26
+ return false;
27
+ if (!('name' in value) || value['name'] === undefined)
28
+ return false;
29
+ if (!('slug' in value) || value['slug'] === undefined)
30
+ return false;
31
+ if (!('description' in value) || value['description'] === undefined)
32
+ return false;
33
+ if (!('content' in value) || value['content'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function SkillCreateRequestUioFromJSON(json) {
38
+ return SkillCreateRequestUioFromJSONTyped(json, false);
39
+ }
40
+ function SkillCreateRequestUioFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'orgId': json['orgId'],
46
+ 'name': json['name'],
47
+ 'slug': json['slug'],
48
+ 'description': json['description'],
49
+ 'content': json['content'],
50
+ };
51
+ }
52
+ function SkillCreateRequestUioToJSON(json) {
53
+ return SkillCreateRequestUioToJSONTyped(json, false);
54
+ }
55
+ function SkillCreateRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'orgId': value['orgId'],
61
+ 'name': value['name'],
62
+ 'slug': value['slug'],
63
+ 'description': value['description'],
64
+ 'content': value['content'],
65
+ };
66
+ }