@breign/client 1.0.91 → 1.0.93

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.
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { SkillAssignRequestUio, SkillCreateRequestUio, SkillUio, SkillUpdateRequestUio } from '../models/index';
13
+ import type { SkillAssignRequestUio, SkillCreateRequestUio, SkillFileCreateRequestUio, SkillFileSummaryUio, SkillFileUio, SkillFileUpdateRequestUio, SkillUio, SkillUpdateRequestUio } from '../models/index';
14
14
  export interface AssignSkillToAgentRequest {
15
15
  agentId: string;
16
16
  skillAssignRequestUio: SkillAssignRequestUio;
@@ -18,15 +18,30 @@ export interface AssignSkillToAgentRequest {
18
18
  export interface CreateSkillRequest {
19
19
  skillCreateRequestUio: SkillCreateRequestUio;
20
20
  }
21
+ export interface CreateSkillFileRequest {
22
+ skillId: string;
23
+ skillFileCreateRequestUio: SkillFileCreateRequestUio;
24
+ }
21
25
  export interface DeleteSkillRequest {
22
26
  skillId: string;
23
27
  }
28
+ export interface DeleteSkillFileRequest {
29
+ skillId: string;
30
+ fileId: string;
31
+ }
24
32
  export interface GetAgentSkillsRequest {
25
33
  agentId: string;
26
34
  }
27
35
  export interface GetSkillRequest {
28
36
  skillId: string;
29
37
  }
38
+ export interface GetSkillFileRequest {
39
+ skillId: string;
40
+ fileId: string;
41
+ }
42
+ export interface ListSkillFilesRequest {
43
+ skillId: string;
44
+ }
30
45
  export interface ListSkillsRequest {
31
46
  organizationId: string;
32
47
  page?: number;
@@ -40,6 +55,11 @@ export interface UpdateSkillRequest {
40
55
  skillId: string;
41
56
  skillUpdateRequestUio: SkillUpdateRequestUio;
42
57
  }
58
+ export interface UpdateSkillFileRequest {
59
+ skillId: string;
60
+ fileId: string;
61
+ skillFileUpdateRequestUio: SkillFileUpdateRequestUio;
62
+ }
43
63
  /**
44
64
  *
45
65
  */
@@ -62,6 +82,14 @@ export declare class SkillsApi extends runtime.BaseAPI {
62
82
  * Create a skill
63
83
  */
64
84
  createSkill(skillCreateRequestUio: SkillCreateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SkillUio>;
85
+ /**
86
+ * Create a skill file
87
+ */
88
+ createSkillFileRaw(requestParameters: CreateSkillFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SkillFileUio>>;
89
+ /**
90
+ * Create a skill file
91
+ */
92
+ createSkillFile(skillId: string, skillFileCreateRequestUio: SkillFileCreateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SkillFileUio>;
65
93
  /**
66
94
  * Delete a skill
67
95
  */
@@ -70,6 +98,14 @@ export declare class SkillsApi extends runtime.BaseAPI {
70
98
  * Delete a skill
71
99
  */
72
100
  deleteSkill(skillId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
101
+ /**
102
+ * Delete a skill file
103
+ */
104
+ deleteSkillFileRaw(requestParameters: DeleteSkillFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
105
+ /**
106
+ * Delete a skill file
107
+ */
108
+ deleteSkillFile(skillId: string, fileId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
73
109
  /**
74
110
  * Get skills assigned to an agent
75
111
  */
@@ -86,6 +122,24 @@ export declare class SkillsApi extends runtime.BaseAPI {
86
122
  * Get a skill by ID
87
123
  */
88
124
  getSkill(skillId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SkillUio>;
125
+ /**
126
+ * Get a skill file with content
127
+ */
128
+ getSkillFileRaw(requestParameters: GetSkillFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SkillFileUio>>;
129
+ /**
130
+ * Get a skill file with content
131
+ */
132
+ getSkillFile(skillId: string, fileId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SkillFileUio>;
133
+ /**
134
+ * Returns all files attached to the skill — all metadata fields, no content
135
+ * List skill files
136
+ */
137
+ listSkillFilesRaw(requestParameters: ListSkillFilesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SkillFileSummaryUio>>>;
138
+ /**
139
+ * Returns all files attached to the skill — all metadata fields, no content
140
+ * List skill files
141
+ */
142
+ listSkillFiles(skillId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SkillFileSummaryUio>>;
89
143
  /**
90
144
  * Returns a paginated list of skills scoped to an organization
91
145
  * List skills in an organization
@@ -112,4 +166,12 @@ export declare class SkillsApi extends runtime.BaseAPI {
112
166
  * Update a skill
113
167
  */
114
168
  updateSkill(skillId: string, skillUpdateRequestUio: SkillUpdateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SkillUio>;
169
+ /**
170
+ * Update a skill file
171
+ */
172
+ updateSkillFileRaw(requestParameters: UpdateSkillFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SkillFileUio>>;
173
+ /**
174
+ * Update a skill file
175
+ */
176
+ updateSkillFile(skillId: string, fileId: string, skillFileUpdateRequestUio: SkillFileUpdateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SkillFileUio>;
115
177
  }
@@ -115,6 +115,38 @@ class SkillsApi extends runtime.BaseAPI {
115
115
  const response = await this.createSkillRaw({ skillCreateRequestUio: skillCreateRequestUio }, initOverrides);
116
116
  return await response.value();
117
117
  }
118
+ /**
119
+ * Create a skill file
120
+ */
121
+ async createSkillFileRaw(requestParameters, initOverrides) {
122
+ if (requestParameters['skillId'] == null) {
123
+ throw new runtime.RequiredError('skillId', 'Required parameter "skillId" was null or undefined when calling createSkillFile().');
124
+ }
125
+ if (requestParameters['skillFileCreateRequestUio'] == null) {
126
+ throw new runtime.RequiredError('skillFileCreateRequestUio', 'Required parameter "skillFileCreateRequestUio" was null or undefined when calling createSkillFile().');
127
+ }
128
+ const queryParameters = {};
129
+ const headerParameters = {};
130
+ headerParameters['Content-Type'] = 'application/json';
131
+ if (this.configuration && this.configuration.apiKey) {
132
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
133
+ }
134
+ const response = await this.request({
135
+ path: `/skills/{skillId}/files`.replace(`{${"skillId"}}`, encodeURIComponent(String(requestParameters['skillId']))),
136
+ method: 'POST',
137
+ headers: headerParameters,
138
+ query: queryParameters,
139
+ body: (0, index_1.SkillFileCreateRequestUioToJSON)(requestParameters['skillFileCreateRequestUio']),
140
+ }, initOverrides);
141
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SkillFileUioFromJSON)(jsonValue));
142
+ }
143
+ /**
144
+ * Create a skill file
145
+ */
146
+ async createSkillFile(skillId, skillFileCreateRequestUio, initOverrides) {
147
+ const response = await this.createSkillFileRaw({ skillId: skillId, skillFileCreateRequestUio: skillFileCreateRequestUio }, initOverrides);
148
+ return await response.value();
149
+ }
118
150
  /**
119
151
  * Delete a skill
120
152
  */
@@ -141,6 +173,35 @@ class SkillsApi extends runtime.BaseAPI {
141
173
  async deleteSkill(skillId, initOverrides) {
142
174
  await this.deleteSkillRaw({ skillId: skillId }, initOverrides);
143
175
  }
176
+ /**
177
+ * Delete a skill file
178
+ */
179
+ async deleteSkillFileRaw(requestParameters, initOverrides) {
180
+ if (requestParameters['skillId'] == null) {
181
+ throw new runtime.RequiredError('skillId', 'Required parameter "skillId" was null or undefined when calling deleteSkillFile().');
182
+ }
183
+ if (requestParameters['fileId'] == null) {
184
+ throw new runtime.RequiredError('fileId', 'Required parameter "fileId" was null or undefined when calling deleteSkillFile().');
185
+ }
186
+ const queryParameters = {};
187
+ const headerParameters = {};
188
+ if (this.configuration && this.configuration.apiKey) {
189
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
190
+ }
191
+ const response = await this.request({
192
+ path: `/skills/{skillId}/files/{fileId}`.replace(`{${"skillId"}}`, encodeURIComponent(String(requestParameters['skillId']))).replace(`{${"fileId"}}`, encodeURIComponent(String(requestParameters['fileId']))),
193
+ method: 'DELETE',
194
+ headers: headerParameters,
195
+ query: queryParameters,
196
+ }, initOverrides);
197
+ return new runtime.VoidApiResponse(response);
198
+ }
199
+ /**
200
+ * Delete a skill file
201
+ */
202
+ async deleteSkillFile(skillId, fileId, initOverrides) {
203
+ await this.deleteSkillFileRaw({ skillId: skillId, fileId: fileId }, initOverrides);
204
+ }
144
205
  /**
145
206
  * Get skills assigned to an agent
146
207
  */
@@ -195,6 +256,65 @@ class SkillsApi extends runtime.BaseAPI {
195
256
  const response = await this.getSkillRaw({ skillId: skillId }, initOverrides);
196
257
  return await response.value();
197
258
  }
259
+ /**
260
+ * Get a skill file with content
261
+ */
262
+ async getSkillFileRaw(requestParameters, initOverrides) {
263
+ if (requestParameters['skillId'] == null) {
264
+ throw new runtime.RequiredError('skillId', 'Required parameter "skillId" was null or undefined when calling getSkillFile().');
265
+ }
266
+ if (requestParameters['fileId'] == null) {
267
+ throw new runtime.RequiredError('fileId', 'Required parameter "fileId" was null or undefined when calling getSkillFile().');
268
+ }
269
+ const queryParameters = {};
270
+ const headerParameters = {};
271
+ if (this.configuration && this.configuration.apiKey) {
272
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
273
+ }
274
+ const response = await this.request({
275
+ path: `/skills/{skillId}/files/{fileId}`.replace(`{${"skillId"}}`, encodeURIComponent(String(requestParameters['skillId']))).replace(`{${"fileId"}}`, encodeURIComponent(String(requestParameters['fileId']))),
276
+ method: 'GET',
277
+ headers: headerParameters,
278
+ query: queryParameters,
279
+ }, initOverrides);
280
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SkillFileUioFromJSON)(jsonValue));
281
+ }
282
+ /**
283
+ * Get a skill file with content
284
+ */
285
+ async getSkillFile(skillId, fileId, initOverrides) {
286
+ const response = await this.getSkillFileRaw({ skillId: skillId, fileId: fileId }, initOverrides);
287
+ return await response.value();
288
+ }
289
+ /**
290
+ * Returns all files attached to the skill — all metadata fields, no content
291
+ * List skill files
292
+ */
293
+ async listSkillFilesRaw(requestParameters, initOverrides) {
294
+ if (requestParameters['skillId'] == null) {
295
+ throw new runtime.RequiredError('skillId', 'Required parameter "skillId" was null or undefined when calling listSkillFiles().');
296
+ }
297
+ const queryParameters = {};
298
+ const headerParameters = {};
299
+ if (this.configuration && this.configuration.apiKey) {
300
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
301
+ }
302
+ const response = await this.request({
303
+ path: `/skills/{skillId}/files`.replace(`{${"skillId"}}`, encodeURIComponent(String(requestParameters['skillId']))),
304
+ method: 'GET',
305
+ headers: headerParameters,
306
+ query: queryParameters,
307
+ }, initOverrides);
308
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.SkillFileSummaryUioFromJSON));
309
+ }
310
+ /**
311
+ * Returns all files attached to the skill — all metadata fields, no content
312
+ * List skill files
313
+ */
314
+ async listSkillFiles(skillId, initOverrides) {
315
+ const response = await this.listSkillFilesRaw({ skillId: skillId }, initOverrides);
316
+ return await response.value();
317
+ }
198
318
  /**
199
319
  * Returns a paginated list of skills scoped to an organization
200
320
  * List skills in an organization
@@ -294,5 +414,40 @@ class SkillsApi extends runtime.BaseAPI {
294
414
  const response = await this.updateSkillRaw({ skillId: skillId, skillUpdateRequestUio: skillUpdateRequestUio }, initOverrides);
295
415
  return await response.value();
296
416
  }
417
+ /**
418
+ * Update a skill file
419
+ */
420
+ async updateSkillFileRaw(requestParameters, initOverrides) {
421
+ if (requestParameters['skillId'] == null) {
422
+ throw new runtime.RequiredError('skillId', 'Required parameter "skillId" was null or undefined when calling updateSkillFile().');
423
+ }
424
+ if (requestParameters['fileId'] == null) {
425
+ throw new runtime.RequiredError('fileId', 'Required parameter "fileId" was null or undefined when calling updateSkillFile().');
426
+ }
427
+ if (requestParameters['skillFileUpdateRequestUio'] == null) {
428
+ throw new runtime.RequiredError('skillFileUpdateRequestUio', 'Required parameter "skillFileUpdateRequestUio" was null or undefined when calling updateSkillFile().');
429
+ }
430
+ const queryParameters = {};
431
+ const headerParameters = {};
432
+ headerParameters['Content-Type'] = 'application/json';
433
+ if (this.configuration && this.configuration.apiKey) {
434
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
435
+ }
436
+ const response = await this.request({
437
+ path: `/skills/{skillId}/files/{fileId}`.replace(`{${"skillId"}}`, encodeURIComponent(String(requestParameters['skillId']))).replace(`{${"fileId"}}`, encodeURIComponent(String(requestParameters['fileId']))),
438
+ method: 'PATCH',
439
+ headers: headerParameters,
440
+ query: queryParameters,
441
+ body: (0, index_1.SkillFileUpdateRequestUioToJSON)(requestParameters['skillFileUpdateRequestUio']),
442
+ }, initOverrides);
443
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SkillFileUioFromJSON)(jsonValue));
444
+ }
445
+ /**
446
+ * Update a skill file
447
+ */
448
+ async updateSkillFile(skillId, fileId, skillFileUpdateRequestUio, initOverrides) {
449
+ const response = await this.updateSkillFileRaw({ skillId: skillId, fileId: fileId, skillFileUpdateRequestUio: skillFileUpdateRequestUio }, initOverrides);
450
+ return await response.value();
451
+ }
297
452
  }
298
453
  exports.SkillsApi = SkillsApi;
@@ -12,6 +12,7 @@
12
12
  import type { ConversationMessagesInnerSuggestionsInnerUio } from './ConversationMessagesInnerSuggestionsInnerUio';
13
13
  import type { ChatMessageAudioInnerUio } from './ChatMessageAudioInnerUio';
14
14
  import type { ConversationMessagesInnerFlowNodeUio } from './ConversationMessagesInnerFlowNodeUio';
15
+ import type { ToolResultsUio } from './ToolResultsUio';
15
16
  import type { TokenUsageUio } from './TokenUsageUio';
16
17
  /**
17
18
  *
@@ -75,6 +76,12 @@ export interface ConversationMessagesInnerUio {
75
76
  * @memberof ConversationMessagesInnerUio
76
77
  */
77
78
  usage?: TokenUsageUio;
79
+ /**
80
+ *
81
+ * @type {Array<ToolResultsUio>}
82
+ * @memberof ConversationMessagesInnerUio
83
+ */
84
+ toolResults?: Array<ToolResultsUio>;
78
85
  }
79
86
  /**
80
87
  * Check if a given object implements the ConversationMessagesInnerUio interface.
@@ -21,6 +21,7 @@ exports.ConversationMessagesInnerUioToJSONTyped = ConversationMessagesInnerUioTo
21
21
  const ConversationMessagesInnerSuggestionsInnerUio_1 = require("./ConversationMessagesInnerSuggestionsInnerUio");
22
22
  const ChatMessageAudioInnerUio_1 = require("./ChatMessageAudioInnerUio");
23
23
  const ConversationMessagesInnerFlowNodeUio_1 = require("./ConversationMessagesInnerFlowNodeUio");
24
+ const ToolResultsUio_1 = require("./ToolResultsUio");
24
25
  const TokenUsageUio_1 = require("./TokenUsageUio");
25
26
  /**
26
27
  * Check if a given object implements the ConversationMessagesInnerUio interface.
@@ -53,6 +54,7 @@ function ConversationMessagesInnerUioFromJSONTyped(json, ignoreDiscriminator) {
53
54
  'flowNode': json['flowNode'] == null ? undefined : (0, ConversationMessagesInnerFlowNodeUio_1.ConversationMessagesInnerFlowNodeUioFromJSON)(json['flowNode']),
54
55
  'audio': json['audio'] == null ? undefined : (json['audio'].map(ChatMessageAudioInnerUio_1.ChatMessageAudioInnerUioFromJSON)),
55
56
  'usage': json['usage'] == null ? undefined : (0, TokenUsageUio_1.TokenUsageUioFromJSON)(json['usage']),
57
+ 'toolResults': json['toolResults'] == null ? undefined : (json['toolResults'].map(ToolResultsUio_1.ToolResultsUioFromJSON)),
56
58
  };
57
59
  }
58
60
  function ConversationMessagesInnerUioToJSON(json) {
@@ -72,5 +74,6 @@ function ConversationMessagesInnerUioToJSONTyped(value, ignoreDiscriminator = fa
72
74
  'flowNode': (0, ConversationMessagesInnerFlowNodeUio_1.ConversationMessagesInnerFlowNodeUioToJSON)(value['flowNode']),
73
75
  'audio': value['audio'] == null ? undefined : (value['audio'].map(ChatMessageAudioInnerUio_1.ChatMessageAudioInnerUioToJSON)),
74
76
  'usage': (0, TokenUsageUio_1.TokenUsageUioToJSON)(value['usage']),
77
+ 'toolResults': value['toolResults'] == null ? undefined : (value['toolResults'].map(ToolResultsUio_1.ToolResultsUioToJSON)),
75
78
  };
76
79
  }
@@ -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 SkillFileCreateRequestUio
16
+ */
17
+ export interface SkillFileCreateRequestUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SkillFileCreateRequestUio
22
+ */
23
+ filename: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof SkillFileCreateRequestUio
28
+ */
29
+ content: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof SkillFileCreateRequestUio
34
+ */
35
+ mimeType?: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the SkillFileCreateRequestUio interface.
39
+ */
40
+ export declare function instanceOfSkillFileCreateRequestUio(value: object): value is SkillFileCreateRequestUio;
41
+ export declare function SkillFileCreateRequestUioFromJSON(json: any): SkillFileCreateRequestUio;
42
+ export declare function SkillFileCreateRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): SkillFileCreateRequestUio;
43
+ export declare function SkillFileCreateRequestUioToJSON(json: any): SkillFileCreateRequestUio;
44
+ export declare function SkillFileCreateRequestUioToJSONTyped(value?: SkillFileCreateRequestUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,56 @@
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.instanceOfSkillFileCreateRequestUio = instanceOfSkillFileCreateRequestUio;
17
+ exports.SkillFileCreateRequestUioFromJSON = SkillFileCreateRequestUioFromJSON;
18
+ exports.SkillFileCreateRequestUioFromJSONTyped = SkillFileCreateRequestUioFromJSONTyped;
19
+ exports.SkillFileCreateRequestUioToJSON = SkillFileCreateRequestUioToJSON;
20
+ exports.SkillFileCreateRequestUioToJSONTyped = SkillFileCreateRequestUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the SkillFileCreateRequestUio interface.
23
+ */
24
+ function instanceOfSkillFileCreateRequestUio(value) {
25
+ if (!('filename' in value) || value['filename'] === undefined)
26
+ return false;
27
+ if (!('content' in value) || value['content'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function SkillFileCreateRequestUioFromJSON(json) {
32
+ return SkillFileCreateRequestUioFromJSONTyped(json, false);
33
+ }
34
+ function SkillFileCreateRequestUioFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'filename': json['filename'],
40
+ 'content': json['content'],
41
+ 'mimeType': json['mimeType'] == null ? undefined : json['mimeType'],
42
+ };
43
+ }
44
+ function SkillFileCreateRequestUioToJSON(json) {
45
+ return SkillFileCreateRequestUioToJSONTyped(json, false);
46
+ }
47
+ function SkillFileCreateRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'filename': value['filename'],
53
+ 'content': value['content'],
54
+ 'mimeType': value['mimeType'],
55
+ };
56
+ }
@@ -0,0 +1,62 @@
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 SkillFileSummaryUio
16
+ */
17
+ export interface SkillFileSummaryUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SkillFileSummaryUio
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof SkillFileSummaryUio
28
+ */
29
+ skillId: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof SkillFileSummaryUio
34
+ */
35
+ filename: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof SkillFileSummaryUio
40
+ */
41
+ mimeType: string;
42
+ /**
43
+ *
44
+ * @type {Date}
45
+ * @memberof SkillFileSummaryUio
46
+ */
47
+ createdAt: Date;
48
+ /**
49
+ *
50
+ * @type {Date}
51
+ * @memberof SkillFileSummaryUio
52
+ */
53
+ updatedAt: Date;
54
+ }
55
+ /**
56
+ * Check if a given object implements the SkillFileSummaryUio interface.
57
+ */
58
+ export declare function instanceOfSkillFileSummaryUio(value: object): value is SkillFileSummaryUio;
59
+ export declare function SkillFileSummaryUioFromJSON(json: any): SkillFileSummaryUio;
60
+ export declare function SkillFileSummaryUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): SkillFileSummaryUio;
61
+ export declare function SkillFileSummaryUioToJSON(json: any): SkillFileSummaryUio;
62
+ export declare function SkillFileSummaryUioToJSONTyped(value?: SkillFileSummaryUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,70 @@
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.instanceOfSkillFileSummaryUio = instanceOfSkillFileSummaryUio;
17
+ exports.SkillFileSummaryUioFromJSON = SkillFileSummaryUioFromJSON;
18
+ exports.SkillFileSummaryUioFromJSONTyped = SkillFileSummaryUioFromJSONTyped;
19
+ exports.SkillFileSummaryUioToJSON = SkillFileSummaryUioToJSON;
20
+ exports.SkillFileSummaryUioToJSONTyped = SkillFileSummaryUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the SkillFileSummaryUio interface.
23
+ */
24
+ function instanceOfSkillFileSummaryUio(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('skillId' in value) || value['skillId'] === undefined)
28
+ return false;
29
+ if (!('filename' in value) || value['filename'] === undefined)
30
+ return false;
31
+ if (!('mimeType' in value) || value['mimeType'] === undefined)
32
+ return false;
33
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
34
+ return false;
35
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ function SkillFileSummaryUioFromJSON(json) {
40
+ return SkillFileSummaryUioFromJSONTyped(json, false);
41
+ }
42
+ function SkillFileSummaryUioFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'id': json['id'],
48
+ 'skillId': json['skillId'],
49
+ 'filename': json['filename'],
50
+ 'mimeType': json['mimeType'],
51
+ 'createdAt': (new Date(json['createdAt'])),
52
+ 'updatedAt': (new Date(json['updatedAt'])),
53
+ };
54
+ }
55
+ function SkillFileSummaryUioToJSON(json) {
56
+ return SkillFileSummaryUioToJSONTyped(json, false);
57
+ }
58
+ function SkillFileSummaryUioToJSONTyped(value, ignoreDiscriminator = false) {
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+ return {
63
+ 'id': value['id'],
64
+ 'skillId': value['skillId'],
65
+ 'filename': value['filename'],
66
+ 'mimeType': value['mimeType'],
67
+ 'createdAt': ((value['createdAt']).toISOString()),
68
+ 'updatedAt': ((value['updatedAt']).toISOString()),
69
+ };
70
+ }
@@ -0,0 +1,68 @@
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 SkillFileUio
16
+ */
17
+ export interface SkillFileUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SkillFileUio
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof SkillFileUio
28
+ */
29
+ skillId: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof SkillFileUio
34
+ */
35
+ filename: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof SkillFileUio
40
+ */
41
+ mimeType: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof SkillFileUio
46
+ */
47
+ content: string;
48
+ /**
49
+ *
50
+ * @type {Date}
51
+ * @memberof SkillFileUio
52
+ */
53
+ createdAt: Date;
54
+ /**
55
+ *
56
+ * @type {Date}
57
+ * @memberof SkillFileUio
58
+ */
59
+ updatedAt: Date;
60
+ }
61
+ /**
62
+ * Check if a given object implements the SkillFileUio interface.
63
+ */
64
+ export declare function instanceOfSkillFileUio(value: object): value is SkillFileUio;
65
+ export declare function SkillFileUioFromJSON(json: any): SkillFileUio;
66
+ export declare function SkillFileUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): SkillFileUio;
67
+ export declare function SkillFileUioToJSON(json: any): SkillFileUio;
68
+ export declare function SkillFileUioToJSONTyped(value?: SkillFileUio | null, ignoreDiscriminator?: boolean): any;