@breign/client 1.0.109 → 1.0.111
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apis/AppApi.d.ts +92 -18
- package/dist/apis/AppApi.js +196 -32
- package/dist/apis/KnowledgeApi.d.ts +120 -8
- package/dist/apis/KnowledgeApi.js +268 -30
- package/dist/apis/PromptsApi.d.ts +3 -3
- package/dist/apis/PromptsApi.js +3 -2
- package/dist/apis/SkillsApi.d.ts +46 -1
- package/dist/apis/SkillsApi.js +109 -0
- package/dist/apis/ToolsApi.d.ts +42 -1
- package/dist/apis/ToolsApi.js +87 -0
- package/dist/models/AddCustomFiller201ResponseFillerUio.d.ts +50 -0
- package/dist/models/AddCustomFiller201ResponseFillerUio.js +62 -0
- package/dist/models/AddCustomFiller201ResponseUio.d.ts +39 -0
- package/dist/models/AddCustomFiller201ResponseUio.js +55 -0
- package/dist/models/AddCustomFillerRequestUio.d.ts +32 -0
- package/dist/models/AddCustomFillerRequestUio.js +50 -0
- package/dist/models/AgentPatchUio.d.ts +1 -1
- package/dist/models/AgentUio.d.ts +1 -1
- package/dist/models/FileCreationRequestUio.d.ts +6 -0
- package/dist/models/FileCreationRequestUio.js +2 -0
- package/dist/models/FileCreationResponseUio.d.ts +38 -0
- package/dist/models/FileCreationResponseUio.js +18 -0
- package/dist/models/FileUio.d.ts +38 -0
- package/dist/models/FileUio.js +18 -0
- package/dist/models/FileWithDownloadUrlUio.d.ts +38 -0
- package/dist/models/FileWithDownloadUrlUio.js +18 -0
- package/dist/models/KnowledgeSitePageUio.d.ts +129 -0
- package/dist/models/KnowledgeSitePageUio.js +101 -0
- package/dist/models/LibrarySkillEntryUio.d.ts +87 -0
- package/dist/models/LibrarySkillEntryUio.js +83 -0
- package/dist/models/LibrarySkillInstallRequestUio.d.ts +38 -0
- package/dist/models/LibrarySkillInstallRequestUio.js +52 -0
- package/dist/models/LibrarySkillSyncRequestUio.d.ts +32 -0
- package/dist/models/LibrarySkillSyncRequestUio.js +48 -0
- package/dist/models/LibrarySkillVersionFilesInnerUio.d.ts +38 -0
- package/dist/models/LibrarySkillVersionFilesInnerUio.js +54 -0
- package/dist/models/LibrarySkillVersionUio.d.ts +105 -0
- package/dist/models/LibrarySkillVersionUio.js +89 -0
- package/dist/models/LibrarySkillsPageUio.d.ts +63 -0
- package/dist/models/LibrarySkillsPageUio.js +71 -0
- package/dist/models/MessageStatusErrorUio.d.ts +38 -0
- package/dist/models/MessageStatusErrorUio.js +50 -0
- package/dist/models/MessageStatusToolCallUio.d.ts +38 -0
- package/dist/models/MessageStatusToolCallUio.js +54 -0
- package/dist/models/MessageStatusUio.d.ts +79 -0
- package/dist/models/MessageStatusUio.js +73 -0
- package/dist/models/PatchKnowledgeBaseRequestUio.d.ts +38 -0
- package/dist/models/PatchKnowledgeBaseRequestUio.js +54 -0
- package/dist/models/PatchKnowledgeFileRequestUio.d.ts +32 -0
- package/dist/models/PatchKnowledgeFileRequestUio.js +50 -0
- package/dist/models/SearchKnowledgeBase200ResponseInnerUio.d.ts +52 -0
- package/dist/models/SearchKnowledgeBase200ResponseInnerUio.js +60 -0
- package/dist/models/SearchKnowledgeBaseRequestUio.d.ts +38 -0
- package/dist/models/SearchKnowledgeBaseRequestUio.js +52 -0
- package/dist/models/SkillAssignRequestUio.js +2 -2
- package/dist/models/SkillUio.d.ts +12 -0
- package/dist/models/SkillUio.js +4 -0
- package/dist/models/SkillUpdateRequestUio.d.ts +12 -0
- package/dist/models/SkillUpdateRequestUio.js +4 -0
- package/dist/models/StartKnowledgeBaseScrappingRequestUio.d.ts +88 -0
- package/dist/models/StartKnowledgeBaseScrappingRequestUio.js +74 -0
- package/dist/models/UpdateSelectedFillers200ResponseUio.d.ts +39 -0
- package/dist/models/UpdateSelectedFillers200ResponseUio.js +55 -0
- package/dist/models/UpdateSelectedFillersRequestDataInnerUio.d.ts +38 -0
- package/dist/models/UpdateSelectedFillersRequestDataInnerUio.js +54 -0
- package/dist/models/UpdateSelectedFillersRequestUio.d.ts +33 -0
- package/dist/models/UpdateSelectedFillersRequestUio.js +51 -0
- package/dist/models/UpdateToolStaticCredentialsRequestUio.d.ts +38 -0
- package/dist/models/UpdateToolStaticCredentialsRequestUio.js +50 -0
- package/dist/models/UploadImageToKnowledgeBaseLibrary200ResponseUio.d.ts +41 -0
- package/dist/models/UploadImageToKnowledgeBaseLibrary200ResponseUio.js +55 -0
- package/dist/models/UploadImageToKnowledgeBaseLibraryRequestUio.d.ts +50 -0
- package/dist/models/UploadImageToKnowledgeBaseLibraryRequestUio.js +62 -0
- package/dist/models/index.d.ts +24 -1
- package/dist/models/index.js +24 -1
- package/dist/openapi.json +1711 -267
- package/package.json +1 -1
- package/dist/models/AudioFillerExistsResponseUio.d.ts +0 -32
- package/dist/models/AudioFillerExistsResponseUio.js +0 -50
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { BodyWithIdUio, ChatMessageUio, Conversation1Uio, MessageUio, PromptCreateRequestUio, PromptCreateResponseUio, PromptFlowCreateRequestUio, PromptFlowCreateResponseUio, SetMessageReaction200ResponseUio, SetMessageReactionRequestUio } from '../models/index';
|
|
13
|
+
import type { BodyWithIdUio, ChatMessageUio, Conversation1Uio, MessageStatusUio, MessageUio, PromptCreateRequestUio, PromptCreateResponseUio, PromptFlowCreateRequestUio, PromptFlowCreateResponseUio, SetMessageReaction200ResponseUio, SetMessageReactionRequestUio } from '../models/index';
|
|
14
14
|
export interface CreateConversationRequest {
|
|
15
15
|
agentId: string;
|
|
16
16
|
promptFlowCreateRequestUio: PromptFlowCreateRequestUio;
|
|
@@ -106,12 +106,12 @@ export declare class PromptsApi extends runtime.BaseAPI {
|
|
|
106
106
|
* Get the status of a message
|
|
107
107
|
* Get the status of a message
|
|
108
108
|
*/
|
|
109
|
-
getMessageStatusRaw(requestParameters: GetMessageStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
109
|
+
getMessageStatusRaw(requestParameters: GetMessageStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MessageStatusUio>>;
|
|
110
110
|
/**
|
|
111
111
|
* Get the status of a message
|
|
112
112
|
* Get the status of a message
|
|
113
113
|
*/
|
|
114
|
-
getMessageStatus(conversationId: string, messageId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
114
|
+
getMessageStatus(conversationId: string, messageId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MessageStatusUio>;
|
|
115
115
|
/**
|
|
116
116
|
* Adds a new message to an existing conversation and gets the AI response
|
|
117
117
|
* Send a message to an existing conversation
|
package/dist/apis/PromptsApi.js
CHANGED
|
@@ -250,14 +250,15 @@ class PromptsApi extends runtime.BaseAPI {
|
|
|
250
250
|
headers: headerParameters,
|
|
251
251
|
query: queryParameters,
|
|
252
252
|
}, initOverrides);
|
|
253
|
-
return new runtime.
|
|
253
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.MessageStatusUioFromJSON)(jsonValue));
|
|
254
254
|
}
|
|
255
255
|
/**
|
|
256
256
|
* Get the status of a message
|
|
257
257
|
* Get the status of a message
|
|
258
258
|
*/
|
|
259
259
|
async getMessageStatus(conversationId, messageId, initOverrides) {
|
|
260
|
-
await this.getMessageStatusRaw({ conversationId: conversationId, messageId: messageId }, initOverrides);
|
|
260
|
+
const response = await this.getMessageStatusRaw({ conversationId: conversationId, messageId: messageId }, initOverrides);
|
|
261
|
+
return await response.value();
|
|
261
262
|
}
|
|
262
263
|
/**
|
|
263
264
|
* Adds a new message to an existing conversation and gets the AI response
|
package/dist/apis/SkillsApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AvailableCommandUio, SkillAssignRequestUio, SkillCreateRequestUio, SkillFileCreateRequestUio, SkillFileSummaryUio, SkillFileUio, SkillFileUpdateRequestUio, SkillUio, SkillUpdateRequestUio } from '../models/index';
|
|
13
|
+
import type { AvailableCommandUio, LibrarySkillInstallRequestUio, LibrarySkillSyncRequestUio, LibrarySkillsPageUio, SkillAssignRequestUio, SkillCreateRequestUio, SkillFileCreateRequestUio, SkillFileSummaryUio, SkillFileUio, SkillFileUpdateRequestUio, SkillUio, SkillUpdateRequestUio } from '../models/index';
|
|
14
14
|
export interface AssignSkillToAgentRequest {
|
|
15
15
|
agentId: string;
|
|
16
16
|
skillAssignRequestUio: SkillAssignRequestUio;
|
|
@@ -42,6 +42,17 @@ export interface GetSkillFileRequest {
|
|
|
42
42
|
skillId: string;
|
|
43
43
|
fileId: string;
|
|
44
44
|
}
|
|
45
|
+
export interface InstallLibrarySkillRequest {
|
|
46
|
+
slug: string;
|
|
47
|
+
librarySkillInstallRequestUio: LibrarySkillInstallRequestUio;
|
|
48
|
+
}
|
|
49
|
+
export interface ListLibrarySkillsRequest {
|
|
50
|
+
organizationId: string;
|
|
51
|
+
page?: number;
|
|
52
|
+
limit?: number;
|
|
53
|
+
search?: string;
|
|
54
|
+
category?: string;
|
|
55
|
+
}
|
|
45
56
|
export interface ListSkillFilesRequest {
|
|
46
57
|
skillId: string;
|
|
47
58
|
}
|
|
@@ -50,6 +61,10 @@ export interface ListSkillsRequest {
|
|
|
50
61
|
page?: number;
|
|
51
62
|
limit?: number;
|
|
52
63
|
}
|
|
64
|
+
export interface SyncSkillToLibraryRequest {
|
|
65
|
+
skillId: string;
|
|
66
|
+
librarySkillSyncRequestUio?: LibrarySkillSyncRequestUio;
|
|
67
|
+
}
|
|
53
68
|
export interface UnassignSkillFromAgentRequest {
|
|
54
69
|
agentId: string;
|
|
55
70
|
skillId: string;
|
|
@@ -141,6 +156,26 @@ export declare class SkillsApi extends runtime.BaseAPI {
|
|
|
141
156
|
* Get a skill file with content
|
|
142
157
|
*/
|
|
143
158
|
getSkillFile(skillId: string, fileId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SkillFileUio>;
|
|
159
|
+
/**
|
|
160
|
+
* Creates a new skill in the organization from the specified library skill version (defaults to latest)
|
|
161
|
+
* Install a library skill into an organization
|
|
162
|
+
*/
|
|
163
|
+
installLibrarySkillRaw(requestParameters: InstallLibrarySkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SkillUio>>;
|
|
164
|
+
/**
|
|
165
|
+
* Creates a new skill in the organization from the specified library skill version (defaults to latest)
|
|
166
|
+
* Install a library skill into an organization
|
|
167
|
+
*/
|
|
168
|
+
installLibrarySkill(slug: string, librarySkillInstallRequestUio: LibrarySkillInstallRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SkillUio>;
|
|
169
|
+
/**
|
|
170
|
+
* Returns a paginated, searchable, filterable list of library skills with their versions. Requires organizationId for install status context.
|
|
171
|
+
* List all library skills
|
|
172
|
+
*/
|
|
173
|
+
listLibrarySkillsRaw(requestParameters: ListLibrarySkillsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LibrarySkillsPageUio>>;
|
|
174
|
+
/**
|
|
175
|
+
* Returns a paginated, searchable, filterable list of library skills with their versions. Requires organizationId for install status context.
|
|
176
|
+
* List all library skills
|
|
177
|
+
*/
|
|
178
|
+
listLibrarySkills(organizationId: string, page?: number, limit?: number, search?: string, category?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LibrarySkillsPageUio>;
|
|
144
179
|
/**
|
|
145
180
|
* Returns all files attached to the skill — all metadata fields, no content
|
|
146
181
|
* List skill files
|
|
@@ -161,6 +196,16 @@ export declare class SkillsApi extends runtime.BaseAPI {
|
|
|
161
196
|
* List skills in an organization
|
|
162
197
|
*/
|
|
163
198
|
listSkills(organizationId: string, page?: number, limit?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SkillUio>>;
|
|
199
|
+
/**
|
|
200
|
+
* Updates the skill content from the specified library version (defaults to latest)
|
|
201
|
+
* Sync an installed skill to a library version
|
|
202
|
+
*/
|
|
203
|
+
syncSkillToLibraryRaw(requestParameters: SyncSkillToLibraryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SkillUio>>;
|
|
204
|
+
/**
|
|
205
|
+
* Updates the skill content from the specified library version (defaults to latest)
|
|
206
|
+
* Sync an installed skill to a library version
|
|
207
|
+
*/
|
|
208
|
+
syncSkillToLibrary(skillId: string, librarySkillSyncRequestUio?: LibrarySkillSyncRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SkillUio>;
|
|
164
209
|
/**
|
|
165
210
|
* Unassign a skill from an agent
|
|
166
211
|
*/
|
package/dist/apis/SkillsApi.js
CHANGED
|
@@ -313,6 +313,84 @@ class SkillsApi extends runtime.BaseAPI {
|
|
|
313
313
|
const response = await this.getSkillFileRaw({ skillId: skillId, fileId: fileId }, initOverrides);
|
|
314
314
|
return await response.value();
|
|
315
315
|
}
|
|
316
|
+
/**
|
|
317
|
+
* Creates a new skill in the organization from the specified library skill version (defaults to latest)
|
|
318
|
+
* Install a library skill into an organization
|
|
319
|
+
*/
|
|
320
|
+
async installLibrarySkillRaw(requestParameters, initOverrides) {
|
|
321
|
+
if (requestParameters['slug'] == null) {
|
|
322
|
+
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling installLibrarySkill().');
|
|
323
|
+
}
|
|
324
|
+
if (requestParameters['librarySkillInstallRequestUio'] == null) {
|
|
325
|
+
throw new runtime.RequiredError('librarySkillInstallRequestUio', 'Required parameter "librarySkillInstallRequestUio" was null or undefined when calling installLibrarySkill().');
|
|
326
|
+
}
|
|
327
|
+
const queryParameters = {};
|
|
328
|
+
const headerParameters = {};
|
|
329
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
330
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
331
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
332
|
+
}
|
|
333
|
+
const response = await this.request({
|
|
334
|
+
path: `/library-skills/{slug}/install`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
335
|
+
method: 'POST',
|
|
336
|
+
headers: headerParameters,
|
|
337
|
+
query: queryParameters,
|
|
338
|
+
body: (0, index_1.LibrarySkillInstallRequestUioToJSON)(requestParameters['librarySkillInstallRequestUio']),
|
|
339
|
+
}, initOverrides);
|
|
340
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SkillUioFromJSON)(jsonValue));
|
|
341
|
+
}
|
|
342
|
+
/**
|
|
343
|
+
* Creates a new skill in the organization from the specified library skill version (defaults to latest)
|
|
344
|
+
* Install a library skill into an organization
|
|
345
|
+
*/
|
|
346
|
+
async installLibrarySkill(slug, librarySkillInstallRequestUio, initOverrides) {
|
|
347
|
+
const response = await this.installLibrarySkillRaw({ slug: slug, librarySkillInstallRequestUio: librarySkillInstallRequestUio }, initOverrides);
|
|
348
|
+
return await response.value();
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* Returns a paginated, searchable, filterable list of library skills with their versions. Requires organizationId for install status context.
|
|
352
|
+
* List all library skills
|
|
353
|
+
*/
|
|
354
|
+
async listLibrarySkillsRaw(requestParameters, initOverrides) {
|
|
355
|
+
if (requestParameters['organizationId'] == null) {
|
|
356
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling listLibrarySkills().');
|
|
357
|
+
}
|
|
358
|
+
const queryParameters = {};
|
|
359
|
+
if (requestParameters['organizationId'] != null) {
|
|
360
|
+
queryParameters['organizationId'] = requestParameters['organizationId'];
|
|
361
|
+
}
|
|
362
|
+
if (requestParameters['page'] != null) {
|
|
363
|
+
queryParameters['page'] = requestParameters['page'];
|
|
364
|
+
}
|
|
365
|
+
if (requestParameters['limit'] != null) {
|
|
366
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
367
|
+
}
|
|
368
|
+
if (requestParameters['search'] != null) {
|
|
369
|
+
queryParameters['search'] = requestParameters['search'];
|
|
370
|
+
}
|
|
371
|
+
if (requestParameters['category'] != null) {
|
|
372
|
+
queryParameters['category'] = requestParameters['category'];
|
|
373
|
+
}
|
|
374
|
+
const headerParameters = {};
|
|
375
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
376
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
377
|
+
}
|
|
378
|
+
const response = await this.request({
|
|
379
|
+
path: `/library-skills`,
|
|
380
|
+
method: 'GET',
|
|
381
|
+
headers: headerParameters,
|
|
382
|
+
query: queryParameters,
|
|
383
|
+
}, initOverrides);
|
|
384
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.LibrarySkillsPageUioFromJSON)(jsonValue));
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* Returns a paginated, searchable, filterable list of library skills with their versions. Requires organizationId for install status context.
|
|
388
|
+
* List all library skills
|
|
389
|
+
*/
|
|
390
|
+
async listLibrarySkills(organizationId, page, limit, search, category, initOverrides) {
|
|
391
|
+
const response = await this.listLibrarySkillsRaw({ organizationId: organizationId, page: page, limit: limit, search: search, category: category }, initOverrides);
|
|
392
|
+
return await response.value();
|
|
393
|
+
}
|
|
316
394
|
/**
|
|
317
395
|
* Returns all files attached to the skill — all metadata fields, no content
|
|
318
396
|
* List skill files
|
|
@@ -380,6 +458,37 @@ class SkillsApi extends runtime.BaseAPI {
|
|
|
380
458
|
const response = await this.listSkillsRaw({ organizationId: organizationId, page: page, limit: limit }, initOverrides);
|
|
381
459
|
return await response.value();
|
|
382
460
|
}
|
|
461
|
+
/**
|
|
462
|
+
* Updates the skill content from the specified library version (defaults to latest)
|
|
463
|
+
* Sync an installed skill to a library version
|
|
464
|
+
*/
|
|
465
|
+
async syncSkillToLibraryRaw(requestParameters, initOverrides) {
|
|
466
|
+
if (requestParameters['skillId'] == null) {
|
|
467
|
+
throw new runtime.RequiredError('skillId', 'Required parameter "skillId" was null or undefined when calling syncSkillToLibrary().');
|
|
468
|
+
}
|
|
469
|
+
const queryParameters = {};
|
|
470
|
+
const headerParameters = {};
|
|
471
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
472
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
473
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
474
|
+
}
|
|
475
|
+
const response = await this.request({
|
|
476
|
+
path: `/skills/{skillId}/sync-library`.replace(`{${"skillId"}}`, encodeURIComponent(String(requestParameters['skillId']))),
|
|
477
|
+
method: 'POST',
|
|
478
|
+
headers: headerParameters,
|
|
479
|
+
query: queryParameters,
|
|
480
|
+
body: (0, index_1.LibrarySkillSyncRequestUioToJSON)(requestParameters['librarySkillSyncRequestUio']),
|
|
481
|
+
}, initOverrides);
|
|
482
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SkillUioFromJSON)(jsonValue));
|
|
483
|
+
}
|
|
484
|
+
/**
|
|
485
|
+
* Updates the skill content from the specified library version (defaults to latest)
|
|
486
|
+
* Sync an installed skill to a library version
|
|
487
|
+
*/
|
|
488
|
+
async syncSkillToLibrary(skillId, librarySkillSyncRequestUio, initOverrides) {
|
|
489
|
+
const response = await this.syncSkillToLibraryRaw({ skillId: skillId, librarySkillSyncRequestUio: librarySkillSyncRequestUio }, initOverrides);
|
|
490
|
+
return await response.value();
|
|
491
|
+
}
|
|
383
492
|
/**
|
|
384
493
|
* Unassign a skill from an agent
|
|
385
494
|
*/
|
package/dist/apis/ToolsApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AgentToolUio, ConnectOAuth2Tool200ResponseUio, IntrospectMcpTool200ResponseUio, RevealTokenRequestUio, RevealTokenResponseUio, STTResponseUio, SetTokenRequestUio, SetupToolRequestUio, TTSRequestUio, TTSResponseUio, ToolAllowedToolsRequestUio, ToolAllowedToolsResponseUio, ToolConnectionStatusResponseUio, ToolCreateRequestUio, ToolSecureUio, ToolUpdateRequestUio } from '../models/index';
|
|
13
|
+
import type { AgentToolUio, ConnectOAuth2Tool200ResponseUio, IntrospectMcpTool200ResponseUio, RevealTokenRequestUio, RevealTokenResponseUio, STTResponseUio, SetTokenRequestUio, SetupToolRequestUio, TTSRequestUio, TTSResponseUio, ToolAllowedToolsRequestUio, ToolAllowedToolsResponseUio, ToolConnectionStatusResponseUio, ToolCreateRequestUio, ToolSecureUio, ToolUpdateRequestUio, UpdateToolStaticCredentialsRequestUio } from '../models/index';
|
|
14
14
|
export interface ConnectOAuth2ToolRequest {
|
|
15
15
|
toolId: string;
|
|
16
16
|
}
|
|
@@ -30,6 +30,9 @@ export interface CreateToolRequest {
|
|
|
30
30
|
export interface DeleteToolRequest {
|
|
31
31
|
toolId: string;
|
|
32
32
|
}
|
|
33
|
+
export interface DeleteToolStaticCredentialsRequest {
|
|
34
|
+
toolId: string;
|
|
35
|
+
}
|
|
33
36
|
export interface DisconnectOAuth2ToolRequest {
|
|
34
37
|
toolId: string;
|
|
35
38
|
}
|
|
@@ -69,6 +72,10 @@ export interface UpdateToolRequest {
|
|
|
69
72
|
toolId: string;
|
|
70
73
|
toolUpdateRequestUio: ToolUpdateRequestUio;
|
|
71
74
|
}
|
|
75
|
+
export interface UpdateToolStaticCredentialsRequest {
|
|
76
|
+
toolId: string;
|
|
77
|
+
updateToolStaticCredentialsRequestUio: UpdateToolStaticCredentialsRequestUio;
|
|
78
|
+
}
|
|
72
79
|
/**
|
|
73
80
|
*
|
|
74
81
|
*/
|
|
@@ -119,6 +126,16 @@ export declare class ToolsApi extends runtime.BaseAPI {
|
|
|
119
126
|
* Delete a tool
|
|
120
127
|
*/
|
|
121
128
|
deleteTool(toolId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
129
|
+
/**
|
|
130
|
+
* Remove the stored static credentials of the current user on a user-scoped tool
|
|
131
|
+
* Clear user static credentials for a tool
|
|
132
|
+
*/
|
|
133
|
+
deleteToolStaticCredentialsRaw(requestParameters: DeleteToolStaticCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
134
|
+
/**
|
|
135
|
+
* Remove the stored static credentials of the current user on a user-scoped tool
|
|
136
|
+
* Clear user static credentials for a tool
|
|
137
|
+
*/
|
|
138
|
+
deleteToolStaticCredentials(toolId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
122
139
|
/**
|
|
123
140
|
* Removes OAuth2 tokens/credentials from the specified tool
|
|
124
141
|
* Disconnect OAuth2 from a tool
|
|
@@ -139,6 +156,20 @@ export declare class ToolsApi extends runtime.BaseAPI {
|
|
|
139
156
|
* Get the current user\'s connection status for a tool
|
|
140
157
|
*/
|
|
141
158
|
getToolConnectionStatus(toolId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ToolConnectionStatusResponseUio>;
|
|
159
|
+
/**
|
|
160
|
+
* Get the list of active tool presets
|
|
161
|
+
* Get tool presets
|
|
162
|
+
*/
|
|
163
|
+
getToolPresetsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<{
|
|
164
|
+
[key: string]: any;
|
|
165
|
+
}>>>;
|
|
166
|
+
/**
|
|
167
|
+
* Get the list of active tool presets
|
|
168
|
+
* Get tool presets
|
|
169
|
+
*/
|
|
170
|
+
getToolPresets(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<{
|
|
171
|
+
[key: string]: any;
|
|
172
|
+
}>>;
|
|
142
173
|
/**
|
|
143
174
|
* Get a specific tool (UI-safe)
|
|
144
175
|
*/
|
|
@@ -209,4 +240,14 @@ export declare class ToolsApi extends runtime.BaseAPI {
|
|
|
209
240
|
* Update a tool
|
|
210
241
|
*/
|
|
211
242
|
updateTool(toolId: string, toolUpdateRequestUio: ToolUpdateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
243
|
+
/**
|
|
244
|
+
* Validate and store encrypted static credentials (bearer token or header value) for the current user on a user-scoped tool
|
|
245
|
+
* Set user static credentials for a tool
|
|
246
|
+
*/
|
|
247
|
+
updateToolStaticCredentialsRaw(requestParameters: UpdateToolStaticCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
248
|
+
/**
|
|
249
|
+
* Validate and store encrypted static credentials (bearer token or header value) for the current user on a user-scoped tool
|
|
250
|
+
* Set user static credentials for a tool
|
|
251
|
+
*/
|
|
252
|
+
updateToolStaticCredentials(toolId: string, updateToolStaticCredentialsRequestUio: UpdateToolStaticCredentialsRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
212
253
|
}
|
package/dist/apis/ToolsApi.js
CHANGED
|
@@ -211,6 +211,34 @@ class ToolsApi extends runtime.BaseAPI {
|
|
|
211
211
|
async deleteTool(toolId, initOverrides) {
|
|
212
212
|
await this.deleteToolRaw({ toolId: toolId }, initOverrides);
|
|
213
213
|
}
|
|
214
|
+
/**
|
|
215
|
+
* Remove the stored static credentials of the current user on a user-scoped tool
|
|
216
|
+
* Clear user static credentials for a tool
|
|
217
|
+
*/
|
|
218
|
+
async deleteToolStaticCredentialsRaw(requestParameters, initOverrides) {
|
|
219
|
+
if (requestParameters['toolId'] == null) {
|
|
220
|
+
throw new runtime.RequiredError('toolId', 'Required parameter "toolId" was null or undefined when calling deleteToolStaticCredentials().');
|
|
221
|
+
}
|
|
222
|
+
const queryParameters = {};
|
|
223
|
+
const headerParameters = {};
|
|
224
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
225
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
226
|
+
}
|
|
227
|
+
const response = await this.request({
|
|
228
|
+
path: `/tools/{toolId}/credentials/static`.replace(`{${"toolId"}}`, encodeURIComponent(String(requestParameters['toolId']))),
|
|
229
|
+
method: 'DELETE',
|
|
230
|
+
headers: headerParameters,
|
|
231
|
+
query: queryParameters,
|
|
232
|
+
}, initOverrides);
|
|
233
|
+
return new runtime.VoidApiResponse(response);
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* Remove the stored static credentials of the current user on a user-scoped tool
|
|
237
|
+
* Clear user static credentials for a tool
|
|
238
|
+
*/
|
|
239
|
+
async deleteToolStaticCredentials(toolId, initOverrides) {
|
|
240
|
+
await this.deleteToolStaticCredentialsRaw({ toolId: toolId }, initOverrides);
|
|
241
|
+
}
|
|
214
242
|
/**
|
|
215
243
|
* Removes OAuth2 tokens/credentials from the specified tool
|
|
216
244
|
* Disconnect OAuth2 from a tool
|
|
@@ -268,6 +296,32 @@ class ToolsApi extends runtime.BaseAPI {
|
|
|
268
296
|
const response = await this.getToolConnectionStatusRaw({ toolId: toolId }, initOverrides);
|
|
269
297
|
return await response.value();
|
|
270
298
|
}
|
|
299
|
+
/**
|
|
300
|
+
* Get the list of active tool presets
|
|
301
|
+
* Get tool presets
|
|
302
|
+
*/
|
|
303
|
+
async getToolPresetsRaw(initOverrides) {
|
|
304
|
+
const queryParameters = {};
|
|
305
|
+
const headerParameters = {};
|
|
306
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
307
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
308
|
+
}
|
|
309
|
+
const response = await this.request({
|
|
310
|
+
path: `/tool-presets`,
|
|
311
|
+
method: 'GET',
|
|
312
|
+
headers: headerParameters,
|
|
313
|
+
query: queryParameters,
|
|
314
|
+
}, initOverrides);
|
|
315
|
+
return new runtime.JSONApiResponse(response);
|
|
316
|
+
}
|
|
317
|
+
/**
|
|
318
|
+
* Get the list of active tool presets
|
|
319
|
+
* Get tool presets
|
|
320
|
+
*/
|
|
321
|
+
async getToolPresets(initOverrides) {
|
|
322
|
+
const response = await this.getToolPresetsRaw(initOverrides);
|
|
323
|
+
return await response.value();
|
|
324
|
+
}
|
|
271
325
|
/**
|
|
272
326
|
* Get a specific tool (UI-safe)
|
|
273
327
|
*/
|
|
@@ -524,5 +578,38 @@ class ToolsApi extends runtime.BaseAPI {
|
|
|
524
578
|
async updateTool(toolId, toolUpdateRequestUio, initOverrides) {
|
|
525
579
|
await this.updateToolRaw({ toolId: toolId, toolUpdateRequestUio: toolUpdateRequestUio }, initOverrides);
|
|
526
580
|
}
|
|
581
|
+
/**
|
|
582
|
+
* Validate and store encrypted static credentials (bearer token or header value) for the current user on a user-scoped tool
|
|
583
|
+
* Set user static credentials for a tool
|
|
584
|
+
*/
|
|
585
|
+
async updateToolStaticCredentialsRaw(requestParameters, initOverrides) {
|
|
586
|
+
if (requestParameters['toolId'] == null) {
|
|
587
|
+
throw new runtime.RequiredError('toolId', 'Required parameter "toolId" was null or undefined when calling updateToolStaticCredentials().');
|
|
588
|
+
}
|
|
589
|
+
if (requestParameters['updateToolStaticCredentialsRequestUio'] == null) {
|
|
590
|
+
throw new runtime.RequiredError('updateToolStaticCredentialsRequestUio', 'Required parameter "updateToolStaticCredentialsRequestUio" was null or undefined when calling updateToolStaticCredentials().');
|
|
591
|
+
}
|
|
592
|
+
const queryParameters = {};
|
|
593
|
+
const headerParameters = {};
|
|
594
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
595
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
596
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
597
|
+
}
|
|
598
|
+
const response = await this.request({
|
|
599
|
+
path: `/tools/{toolId}/credentials/static`.replace(`{${"toolId"}}`, encodeURIComponent(String(requestParameters['toolId']))),
|
|
600
|
+
method: 'PUT',
|
|
601
|
+
headers: headerParameters,
|
|
602
|
+
query: queryParameters,
|
|
603
|
+
body: (0, index_1.UpdateToolStaticCredentialsRequestUioToJSON)(requestParameters['updateToolStaticCredentialsRequestUio']),
|
|
604
|
+
}, initOverrides);
|
|
605
|
+
return new runtime.VoidApiResponse(response);
|
|
606
|
+
}
|
|
607
|
+
/**
|
|
608
|
+
* Validate and store encrypted static credentials (bearer token or header value) for the current user on a user-scoped tool
|
|
609
|
+
* Set user static credentials for a tool
|
|
610
|
+
*/
|
|
611
|
+
async updateToolStaticCredentials(toolId, updateToolStaticCredentialsRequestUio, initOverrides) {
|
|
612
|
+
await this.updateToolStaticCredentialsRaw({ toolId: toolId, updateToolStaticCredentialsRequestUio: updateToolStaticCredentialsRequestUio }, initOverrides);
|
|
613
|
+
}
|
|
527
614
|
}
|
|
528
615
|
exports.ToolsApi = ToolsApi;
|
|
@@ -0,0 +1,50 @@
|
|
|
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 AddCustomFiller201ResponseFillerUio
|
|
16
|
+
*/
|
|
17
|
+
export interface AddCustomFiller201ResponseFillerUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AddCustomFiller201ResponseFillerUio
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AddCustomFiller201ResponseFillerUio
|
|
28
|
+
*/
|
|
29
|
+
text: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof AddCustomFiller201ResponseFillerUio
|
|
34
|
+
*/
|
|
35
|
+
checked: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof AddCustomFiller201ResponseFillerUio
|
|
40
|
+
*/
|
|
41
|
+
isCustom: boolean;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the AddCustomFiller201ResponseFillerUio interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfAddCustomFiller201ResponseFillerUio(value: object): value is AddCustomFiller201ResponseFillerUio;
|
|
47
|
+
export declare function AddCustomFiller201ResponseFillerUioFromJSON(json: any): AddCustomFiller201ResponseFillerUio;
|
|
48
|
+
export declare function AddCustomFiller201ResponseFillerUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddCustomFiller201ResponseFillerUio;
|
|
49
|
+
export declare function AddCustomFiller201ResponseFillerUioToJSON(json: any): AddCustomFiller201ResponseFillerUio;
|
|
50
|
+
export declare function AddCustomFiller201ResponseFillerUioToJSONTyped(value?: AddCustomFiller201ResponseFillerUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
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.instanceOfAddCustomFiller201ResponseFillerUio = instanceOfAddCustomFiller201ResponseFillerUio;
|
|
17
|
+
exports.AddCustomFiller201ResponseFillerUioFromJSON = AddCustomFiller201ResponseFillerUioFromJSON;
|
|
18
|
+
exports.AddCustomFiller201ResponseFillerUioFromJSONTyped = AddCustomFiller201ResponseFillerUioFromJSONTyped;
|
|
19
|
+
exports.AddCustomFiller201ResponseFillerUioToJSON = AddCustomFiller201ResponseFillerUioToJSON;
|
|
20
|
+
exports.AddCustomFiller201ResponseFillerUioToJSONTyped = AddCustomFiller201ResponseFillerUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AddCustomFiller201ResponseFillerUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAddCustomFiller201ResponseFillerUio(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('text' in value) || value['text'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('checked' in value) || value['checked'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('isCustom' in value) || value['isCustom'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function AddCustomFiller201ResponseFillerUioFromJSON(json) {
|
|
36
|
+
return AddCustomFiller201ResponseFillerUioFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function AddCustomFiller201ResponseFillerUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'id': json['id'],
|
|
44
|
+
'text': json['text'],
|
|
45
|
+
'checked': json['checked'],
|
|
46
|
+
'isCustom': json['isCustom'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function AddCustomFiller201ResponseFillerUioToJSON(json) {
|
|
50
|
+
return AddCustomFiller201ResponseFillerUioToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function AddCustomFiller201ResponseFillerUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'id': value['id'],
|
|
58
|
+
'text': value['text'],
|
|
59
|
+
'checked': value['checked'],
|
|
60
|
+
'isCustom': value['isCustom'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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 { AddCustomFiller201ResponseFillerUio } from './AddCustomFiller201ResponseFillerUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AddCustomFiller201ResponseUio
|
|
17
|
+
*/
|
|
18
|
+
export interface AddCustomFiller201ResponseUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AddCustomFiller201ResponseUio
|
|
23
|
+
*/
|
|
24
|
+
message: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {AddCustomFiller201ResponseFillerUio}
|
|
28
|
+
* @memberof AddCustomFiller201ResponseUio
|
|
29
|
+
*/
|
|
30
|
+
filler: AddCustomFiller201ResponseFillerUio;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the AddCustomFiller201ResponseUio interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfAddCustomFiller201ResponseUio(value: object): value is AddCustomFiller201ResponseUio;
|
|
36
|
+
export declare function AddCustomFiller201ResponseUioFromJSON(json: any): AddCustomFiller201ResponseUio;
|
|
37
|
+
export declare function AddCustomFiller201ResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddCustomFiller201ResponseUio;
|
|
38
|
+
export declare function AddCustomFiller201ResponseUioToJSON(json: any): AddCustomFiller201ResponseUio;
|
|
39
|
+
export declare function AddCustomFiller201ResponseUioToJSONTyped(value?: AddCustomFiller201ResponseUio | 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.instanceOfAddCustomFiller201ResponseUio = instanceOfAddCustomFiller201ResponseUio;
|
|
17
|
+
exports.AddCustomFiller201ResponseUioFromJSON = AddCustomFiller201ResponseUioFromJSON;
|
|
18
|
+
exports.AddCustomFiller201ResponseUioFromJSONTyped = AddCustomFiller201ResponseUioFromJSONTyped;
|
|
19
|
+
exports.AddCustomFiller201ResponseUioToJSON = AddCustomFiller201ResponseUioToJSON;
|
|
20
|
+
exports.AddCustomFiller201ResponseUioToJSONTyped = AddCustomFiller201ResponseUioToJSONTyped;
|
|
21
|
+
const AddCustomFiller201ResponseFillerUio_1 = require("./AddCustomFiller201ResponseFillerUio");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AddCustomFiller201ResponseUio interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAddCustomFiller201ResponseUio(value) {
|
|
26
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('filler' in value) || value['filler'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function AddCustomFiller201ResponseUioFromJSON(json) {
|
|
33
|
+
return AddCustomFiller201ResponseUioFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function AddCustomFiller201ResponseUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'message': json['message'],
|
|
41
|
+
'filler': (0, AddCustomFiller201ResponseFillerUio_1.AddCustomFiller201ResponseFillerUioFromJSON)(json['filler']),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function AddCustomFiller201ResponseUioToJSON(json) {
|
|
45
|
+
return AddCustomFiller201ResponseUioToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function AddCustomFiller201ResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'message': value['message'],
|
|
53
|
+
'filler': (0, AddCustomFiller201ResponseFillerUio_1.AddCustomFiller201ResponseFillerUioToJSON)(value['filler']),
|
|
54
|
+
};
|
|
55
|
+
}
|