@breign/client 1.0.133 → 1.0.135
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/ConversationsApi.d.ts +74 -1
- package/dist/apis/ConversationsApi.js +174 -0
- package/dist/models/AgentPatchUio.d.ts +7 -0
- package/dist/models/AgentPatchUio.js +3 -0
- package/dist/models/AgentPendingToolsConfigurationUio.d.ts +38 -0
- package/dist/models/AgentPendingToolsConfigurationUio.js +50 -0
- package/dist/models/AgentUio.d.ts +11 -4
- package/dist/models/AgentUio.js +7 -4
- package/dist/models/SetUserAgentConversationRequestUio.d.ts +32 -0
- package/dist/models/SetUserAgentConversationRequestUio.js +50 -0
- package/dist/models/ToolCallAttachmentUio.d.ts +87 -0
- package/dist/models/ToolCallAttachmentUio.js +71 -0
- package/dist/models/ToolCallResultRequestUio.d.ts +60 -0
- package/dist/models/ToolCallResultRequestUio.js +66 -0
- package/dist/models/ToolCallResultResponseUio.d.ts +65 -0
- package/dist/models/ToolCallResultResponseUio.js +75 -0
- package/dist/models/ToolCallUio.d.ts +93 -0
- package/dist/models/ToolCallUio.js +83 -0
- package/dist/models/ToolCallsResponseUio.d.ts +33 -0
- package/dist/models/ToolCallsResponseUio.js +51 -0
- package/dist/models/UpdateUserChatPreferencesRequestUio.d.ts +38 -0
- package/dist/models/UpdateUserChatPreferencesRequestUio.js +50 -0
- package/dist/models/UserAgentConversationUio.d.ts +38 -0
- package/dist/models/UserAgentConversationUio.js +54 -0
- package/dist/models/UserChatPreferencesUio.d.ts +45 -0
- package/dist/models/UserChatPreferencesUio.js +59 -0
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +10 -0
- package/dist/openapi.json +510 -0
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AgentChatOverviewEntryUio, AttachmentCreateRequestUio, AttachmentCreateResponseUio, AttachmentDetailsResponseUio, AttachmentProcessedRequestUio, BodyWithMessageUio, ContextLocationRequestUio, ContextUio, ConversationSummaryUio, CreateCustomVariable200ResponseUio, MarkConversationReadRequestUio, MessageAnonymizationUio, UpdateConversationTitleRequestUio, WorkspaceFileContentUio, WorkspaceFileEntryUio } from '../models/index';
|
|
13
|
+
import type { AgentChatOverviewEntryUio, AttachmentCreateRequestUio, AttachmentCreateResponseUio, AttachmentDetailsResponseUio, AttachmentProcessedRequestUio, BodyWithMessageUio, ContextLocationRequestUio, ContextUio, ConversationSummaryUio, CreateCustomVariable200ResponseUio, MarkConversationReadRequestUio, MessageAnonymizationUio, SetUserAgentConversationRequestUio, ToolCallResultRequestUio, ToolCallResultResponseUio, ToolCallsResponseUio, UpdateConversationTitleRequestUio, UpdateUserChatPreferencesRequestUio, UserChatPreferencesUio, WorkspaceFileContentUio, WorkspaceFileEntryUio } from '../models/index';
|
|
14
14
|
export interface ArchiveConversationByIdRequest {
|
|
15
15
|
conversationId: string;
|
|
16
16
|
}
|
|
@@ -67,9 +67,17 @@ export interface GetConversationsRequest {
|
|
|
67
67
|
period?: GetConversationsPeriodEnum;
|
|
68
68
|
messageReaction?: GetConversationsMessageReactionEnum;
|
|
69
69
|
}
|
|
70
|
+
export interface GetUserChatPreferencesRequest {
|
|
71
|
+
organizationId: string;
|
|
72
|
+
}
|
|
70
73
|
export interface ListConversationWorkspaceFilesRequest {
|
|
71
74
|
conversationId: string;
|
|
72
75
|
}
|
|
76
|
+
export interface ListMessageToolCallsRequest {
|
|
77
|
+
conversationId: string;
|
|
78
|
+
messageId: string;
|
|
79
|
+
pending?: boolean;
|
|
80
|
+
}
|
|
73
81
|
export interface MarkAttachmentProcessedRequest {
|
|
74
82
|
conversationId: string;
|
|
75
83
|
attachmentId: string;
|
|
@@ -83,6 +91,17 @@ export interface SetContextLocationRequest {
|
|
|
83
91
|
conversationId: string;
|
|
84
92
|
contextLocationRequestUio: ContextLocationRequestUio;
|
|
85
93
|
}
|
|
94
|
+
export interface SetUserAgentConversationRequest {
|
|
95
|
+
organizationId: string;
|
|
96
|
+
agentId: string;
|
|
97
|
+
setUserAgentConversationRequestUio: SetUserAgentConversationRequestUio;
|
|
98
|
+
}
|
|
99
|
+
export interface SubmitMessageToolCallResultRequest {
|
|
100
|
+
conversationId: string;
|
|
101
|
+
messageId: string;
|
|
102
|
+
callId: string;
|
|
103
|
+
toolCallResultRequestUio: ToolCallResultRequestUio;
|
|
104
|
+
}
|
|
86
105
|
export interface UpdateAttachmentStatusRequest {
|
|
87
106
|
conversationId: string;
|
|
88
107
|
attachmentId: string;
|
|
@@ -91,6 +110,10 @@ export interface UpdateConversationTitleRequest {
|
|
|
91
110
|
conversationId: string;
|
|
92
111
|
updateConversationTitleRequestUio: UpdateConversationTitleRequestUio;
|
|
93
112
|
}
|
|
113
|
+
export interface UpdateUserChatPreferencesRequest {
|
|
114
|
+
organizationId: string;
|
|
115
|
+
updateUserChatPreferencesRequestUio: UpdateUserChatPreferencesRequestUio;
|
|
116
|
+
}
|
|
94
117
|
export interface UploadAttachmentRequest {
|
|
95
118
|
conversationId: string;
|
|
96
119
|
attachmentCreateRequestUio: AttachmentCreateRequestUio;
|
|
@@ -245,6 +268,16 @@ export declare class ConversationsApi extends runtime.BaseAPI {
|
|
|
245
268
|
* List conversations
|
|
246
269
|
*/
|
|
247
270
|
getConversations(providerSource: GetConversationsProviderSourceEnum, organizationId?: string, page?: number, limit?: number, period?: GetConversationsPeriodEnum, messageReaction?: GetConversationsMessageReactionEnum, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ConversationSummaryUio>>;
|
|
271
|
+
/**
|
|
272
|
+
* Agents épinglés, état du rail et conversation en cours avec chaque agent de l\'organisation, pour l\'utilisateur courant.
|
|
273
|
+
* Get the user\'s chat preferences
|
|
274
|
+
*/
|
|
275
|
+
getUserChatPreferencesRaw(requestParameters: GetUserChatPreferencesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserChatPreferencesUio>>;
|
|
276
|
+
/**
|
|
277
|
+
* Agents épinglés, état du rail et conversation en cours avec chaque agent de l\'organisation, pour l\'utilisateur courant.
|
|
278
|
+
* Get the user\'s chat preferences
|
|
279
|
+
*/
|
|
280
|
+
getUserChatPreferences(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserChatPreferencesUio>;
|
|
248
281
|
/**
|
|
249
282
|
* Reads the persisted workspace of the conversation directly from the store — no sandbox is started. The content is never returned here; use the content endpoint for that. Files whose name starts with a dot are persisted but hidden from this listing. The current usage is returned in the X-Workspace-File-Count and X-Workspace-Total-Bytes headers.
|
|
250
283
|
* List the files of a conversation workspace
|
|
@@ -255,6 +288,16 @@ export declare class ConversationsApi extends runtime.BaseAPI {
|
|
|
255
288
|
* List the files of a conversation workspace
|
|
256
289
|
*/
|
|
257
290
|
listConversationWorkspaceFiles(conversationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<WorkspaceFileEntryUio>>;
|
|
291
|
+
/**
|
|
292
|
+
* Returns the tool calls issued by one assistant message, newest first. Use pending=true while waiting: it keeps only the calls that still need a result. Without the filter, calls already answered are returned too, so a client can replay what it sent.
|
|
293
|
+
* List the tool calls of a message
|
|
294
|
+
*/
|
|
295
|
+
listMessageToolCallsRaw(requestParameters: ListMessageToolCallsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ToolCallsResponseUio>>;
|
|
296
|
+
/**
|
|
297
|
+
* Returns the tool calls issued by one assistant message, newest first. Use pending=true while waiting: it keeps only the calls that still need a result. Without the filter, calls already answered are returned too, so a client can replay what it sent.
|
|
298
|
+
* List the tool calls of a message
|
|
299
|
+
*/
|
|
300
|
+
listMessageToolCalls(conversationId: string, messageId: string, pending?: boolean, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ToolCallsResponseUio>;
|
|
258
301
|
/**
|
|
259
302
|
* Internal callback endpoint called when attachment processing is complete. Réservé au service de documents : tout autre appelant reçoit un 403. L\'attachment doit être en état `PROCESSING`.
|
|
260
303
|
* Mark a conversation attachment as processed
|
|
@@ -285,6 +328,26 @@ export declare class ConversationsApi extends runtime.BaseAPI {
|
|
|
285
328
|
* Set the conversation location context
|
|
286
329
|
*/
|
|
287
330
|
setContextLocation(conversationId: string, contextLocationRequestUio: ContextLocationRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BodyWithMessageUio>;
|
|
331
|
+
/**
|
|
332
|
+
* Mémorise la conversation que l\'utilisateur a en cours avec cet agent. Elle prime ensuite sur la conversation la plus récente dans l\'aperçu du chat.
|
|
333
|
+
* Set the conversation in progress with an agent
|
|
334
|
+
*/
|
|
335
|
+
setUserAgentConversationRaw(requestParameters: SetUserAgentConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
336
|
+
/**
|
|
337
|
+
* Mémorise la conversation que l\'utilisateur a en cours avec cet agent. Elle prime ensuite sur la conversation la plus récente dans l\'aperçu du chat.
|
|
338
|
+
* Set the conversation in progress with an agent
|
|
339
|
+
*/
|
|
340
|
+
setUserAgentConversation(organizationId: string, agentId: string, setUserAgentConversationRequestUio: SetUserAgentConversationRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
341
|
+
/**
|
|
342
|
+
* Submits the result of one tool call, which releases the suspended conversation turn. Works for any tool: output becomes the tool result handed to the model, and attachments are stored, added to the conversation context and to the last user message. A call can only be answered once — answering an already resolved or expired call returns 409. A message may carry several calls, each answered independently and in any order.
|
|
343
|
+
* Post the result of a tool call
|
|
344
|
+
*/
|
|
345
|
+
submitMessageToolCallResultRaw(requestParameters: SubmitMessageToolCallResultRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ToolCallResultResponseUio>>;
|
|
346
|
+
/**
|
|
347
|
+
* Submits the result of one tool call, which releases the suspended conversation turn. Works for any tool: output becomes the tool result handed to the model, and attachments are stored, added to the conversation context and to the last user message. A call can only be answered once — answering an already resolved or expired call returns 409. A message may carry several calls, each answered independently and in any order.
|
|
348
|
+
* Post the result of a tool call
|
|
349
|
+
*/
|
|
350
|
+
submitMessageToolCallResult(conversationId: string, messageId: string, callId: string, toolCallResultRequestUio: ToolCallResultRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ToolCallResultResponseUio>;
|
|
288
351
|
/**
|
|
289
352
|
* Change the status of an attachment to \'PROCESSING\' after it has been uploaded.
|
|
290
353
|
* Update the status of an uploaded attachment
|
|
@@ -303,6 +366,16 @@ export declare class ConversationsApi extends runtime.BaseAPI {
|
|
|
303
366
|
* Update conversation title
|
|
304
367
|
*/
|
|
305
368
|
updateConversationTitle(conversationId: string, updateConversationTitleRequestUio: UpdateConversationTitleRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationSummaryUio>;
|
|
369
|
+
/**
|
|
370
|
+
* Mise à jour partielle — une propriété absente reste inchangée.
|
|
371
|
+
* Update the user\'s chat preferences
|
|
372
|
+
*/
|
|
373
|
+
updateUserChatPreferencesRaw(requestParameters: UpdateUserChatPreferencesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserChatPreferencesUio>>;
|
|
374
|
+
/**
|
|
375
|
+
* Mise à jour partielle — une propriété absente reste inchangée.
|
|
376
|
+
* Update the user\'s chat preferences
|
|
377
|
+
*/
|
|
378
|
+
updateUserChatPreferences(organizationId: string, updateUserChatPreferencesRequestUio: UpdateUserChatPreferencesRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserChatPreferencesUio>;
|
|
306
379
|
/**
|
|
307
380
|
* Upload one file attachment to the context of a specific conversation.
|
|
308
381
|
* Upload attachment to a conversation context.
|
|
@@ -503,6 +503,35 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
503
503
|
const response = await this.getConversationsRaw({ providerSource: providerSource, organizationId: organizationId, page: page, limit: limit, period: period, messageReaction: messageReaction }, initOverrides);
|
|
504
504
|
return await response.value();
|
|
505
505
|
}
|
|
506
|
+
/**
|
|
507
|
+
* Agents épinglés, état du rail et conversation en cours avec chaque agent de l\'organisation, pour l\'utilisateur courant.
|
|
508
|
+
* Get the user\'s chat preferences
|
|
509
|
+
*/
|
|
510
|
+
async getUserChatPreferencesRaw(requestParameters, initOverrides) {
|
|
511
|
+
if (requestParameters['organizationId'] == null) {
|
|
512
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling getUserChatPreferences().');
|
|
513
|
+
}
|
|
514
|
+
const queryParameters = {};
|
|
515
|
+
const headerParameters = {};
|
|
516
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
517
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
518
|
+
}
|
|
519
|
+
const response = await this.request({
|
|
520
|
+
path: `/organizations/{organizationId}/chat/preferences`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
521
|
+
method: 'GET',
|
|
522
|
+
headers: headerParameters,
|
|
523
|
+
query: queryParameters,
|
|
524
|
+
}, initOverrides);
|
|
525
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UserChatPreferencesUioFromJSON)(jsonValue));
|
|
526
|
+
}
|
|
527
|
+
/**
|
|
528
|
+
* Agents épinglés, état du rail et conversation en cours avec chaque agent de l\'organisation, pour l\'utilisateur courant.
|
|
529
|
+
* Get the user\'s chat preferences
|
|
530
|
+
*/
|
|
531
|
+
async getUserChatPreferences(organizationId, initOverrides) {
|
|
532
|
+
const response = await this.getUserChatPreferencesRaw({ organizationId: organizationId }, initOverrides);
|
|
533
|
+
return await response.value();
|
|
534
|
+
}
|
|
506
535
|
/**
|
|
507
536
|
* Reads the persisted workspace of the conversation directly from the store — no sandbox is started. The content is never returned here; use the content endpoint for that. Files whose name starts with a dot are persisted but hidden from this listing. The current usage is returned in the X-Workspace-File-Count and X-Workspace-Total-Bytes headers.
|
|
508
537
|
* List the files of a conversation workspace
|
|
@@ -532,6 +561,41 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
532
561
|
const response = await this.listConversationWorkspaceFilesRaw({ conversationId: conversationId }, initOverrides);
|
|
533
562
|
return await response.value();
|
|
534
563
|
}
|
|
564
|
+
/**
|
|
565
|
+
* Returns the tool calls issued by one assistant message, newest first. Use pending=true while waiting: it keeps only the calls that still need a result. Without the filter, calls already answered are returned too, so a client can replay what it sent.
|
|
566
|
+
* List the tool calls of a message
|
|
567
|
+
*/
|
|
568
|
+
async listMessageToolCallsRaw(requestParameters, initOverrides) {
|
|
569
|
+
if (requestParameters['conversationId'] == null) {
|
|
570
|
+
throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling listMessageToolCalls().');
|
|
571
|
+
}
|
|
572
|
+
if (requestParameters['messageId'] == null) {
|
|
573
|
+
throw new runtime.RequiredError('messageId', 'Required parameter "messageId" was null or undefined when calling listMessageToolCalls().');
|
|
574
|
+
}
|
|
575
|
+
const queryParameters = {};
|
|
576
|
+
if (requestParameters['pending'] != null) {
|
|
577
|
+
queryParameters['pending'] = requestParameters['pending'];
|
|
578
|
+
}
|
|
579
|
+
const headerParameters = {};
|
|
580
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
581
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
582
|
+
}
|
|
583
|
+
const response = await this.request({
|
|
584
|
+
path: `/conversations/{conversationId}/messages/{messageId}/tool-calls`.replace(`{${"conversationId"}}`, encodeURIComponent(String(requestParameters['conversationId']))).replace(`{${"messageId"}}`, encodeURIComponent(String(requestParameters['messageId']))),
|
|
585
|
+
method: 'GET',
|
|
586
|
+
headers: headerParameters,
|
|
587
|
+
query: queryParameters,
|
|
588
|
+
}, initOverrides);
|
|
589
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ToolCallsResponseUioFromJSON)(jsonValue));
|
|
590
|
+
}
|
|
591
|
+
/**
|
|
592
|
+
* Returns the tool calls issued by one assistant message, newest first. Use pending=true while waiting: it keeps only the calls that still need a result. Without the filter, calls already answered are returned too, so a client can replay what it sent.
|
|
593
|
+
* List the tool calls of a message
|
|
594
|
+
*/
|
|
595
|
+
async listMessageToolCalls(conversationId, messageId, pending, initOverrides) {
|
|
596
|
+
const response = await this.listMessageToolCallsRaw({ conversationId: conversationId, messageId: messageId, pending: pending }, initOverrides);
|
|
597
|
+
return await response.value();
|
|
598
|
+
}
|
|
535
599
|
/**
|
|
536
600
|
* Internal callback endpoint called when attachment processing is complete. Réservé au service de documents : tout autre appelant reçoit un 403. L\'attachment doit être en état `PROCESSING`.
|
|
537
601
|
* Mark a conversation attachment as processed
|
|
@@ -633,6 +697,82 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
633
697
|
const response = await this.setContextLocationRaw({ conversationId: conversationId, contextLocationRequestUio: contextLocationRequestUio }, initOverrides);
|
|
634
698
|
return await response.value();
|
|
635
699
|
}
|
|
700
|
+
/**
|
|
701
|
+
* Mémorise la conversation que l\'utilisateur a en cours avec cet agent. Elle prime ensuite sur la conversation la plus récente dans l\'aperçu du chat.
|
|
702
|
+
* Set the conversation in progress with an agent
|
|
703
|
+
*/
|
|
704
|
+
async setUserAgentConversationRaw(requestParameters, initOverrides) {
|
|
705
|
+
if (requestParameters['organizationId'] == null) {
|
|
706
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling setUserAgentConversation().');
|
|
707
|
+
}
|
|
708
|
+
if (requestParameters['agentId'] == null) {
|
|
709
|
+
throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling setUserAgentConversation().');
|
|
710
|
+
}
|
|
711
|
+
if (requestParameters['setUserAgentConversationRequestUio'] == null) {
|
|
712
|
+
throw new runtime.RequiredError('setUserAgentConversationRequestUio', 'Required parameter "setUserAgentConversationRequestUio" was null or undefined when calling setUserAgentConversation().');
|
|
713
|
+
}
|
|
714
|
+
const queryParameters = {};
|
|
715
|
+
const headerParameters = {};
|
|
716
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
717
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
718
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
719
|
+
}
|
|
720
|
+
const response = await this.request({
|
|
721
|
+
path: `/organizations/{organizationId}/chat/agents/{agentId}/conversation`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"agentId"}}`, encodeURIComponent(String(requestParameters['agentId']))),
|
|
722
|
+
method: 'PUT',
|
|
723
|
+
headers: headerParameters,
|
|
724
|
+
query: queryParameters,
|
|
725
|
+
body: (0, index_1.SetUserAgentConversationRequestUioToJSON)(requestParameters['setUserAgentConversationRequestUio']),
|
|
726
|
+
}, initOverrides);
|
|
727
|
+
return new runtime.VoidApiResponse(response);
|
|
728
|
+
}
|
|
729
|
+
/**
|
|
730
|
+
* Mémorise la conversation que l\'utilisateur a en cours avec cet agent. Elle prime ensuite sur la conversation la plus récente dans l\'aperçu du chat.
|
|
731
|
+
* Set the conversation in progress with an agent
|
|
732
|
+
*/
|
|
733
|
+
async setUserAgentConversation(organizationId, agentId, setUserAgentConversationRequestUio, initOverrides) {
|
|
734
|
+
await this.setUserAgentConversationRaw({ organizationId: organizationId, agentId: agentId, setUserAgentConversationRequestUio: setUserAgentConversationRequestUio }, initOverrides);
|
|
735
|
+
}
|
|
736
|
+
/**
|
|
737
|
+
* Submits the result of one tool call, which releases the suspended conversation turn. Works for any tool: output becomes the tool result handed to the model, and attachments are stored, added to the conversation context and to the last user message. A call can only be answered once — answering an already resolved or expired call returns 409. A message may carry several calls, each answered independently and in any order.
|
|
738
|
+
* Post the result of a tool call
|
|
739
|
+
*/
|
|
740
|
+
async submitMessageToolCallResultRaw(requestParameters, initOverrides) {
|
|
741
|
+
if (requestParameters['conversationId'] == null) {
|
|
742
|
+
throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling submitMessageToolCallResult().');
|
|
743
|
+
}
|
|
744
|
+
if (requestParameters['messageId'] == null) {
|
|
745
|
+
throw new runtime.RequiredError('messageId', 'Required parameter "messageId" was null or undefined when calling submitMessageToolCallResult().');
|
|
746
|
+
}
|
|
747
|
+
if (requestParameters['callId'] == null) {
|
|
748
|
+
throw new runtime.RequiredError('callId', 'Required parameter "callId" was null or undefined when calling submitMessageToolCallResult().');
|
|
749
|
+
}
|
|
750
|
+
if (requestParameters['toolCallResultRequestUio'] == null) {
|
|
751
|
+
throw new runtime.RequiredError('toolCallResultRequestUio', 'Required parameter "toolCallResultRequestUio" was null or undefined when calling submitMessageToolCallResult().');
|
|
752
|
+
}
|
|
753
|
+
const queryParameters = {};
|
|
754
|
+
const headerParameters = {};
|
|
755
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
756
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
757
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
758
|
+
}
|
|
759
|
+
const response = await this.request({
|
|
760
|
+
path: `/conversations/{conversationId}/messages/{messageId}/tool-calls/{callId}`.replace(`{${"conversationId"}}`, encodeURIComponent(String(requestParameters['conversationId']))).replace(`{${"messageId"}}`, encodeURIComponent(String(requestParameters['messageId']))).replace(`{${"callId"}}`, encodeURIComponent(String(requestParameters['callId']))),
|
|
761
|
+
method: 'POST',
|
|
762
|
+
headers: headerParameters,
|
|
763
|
+
query: queryParameters,
|
|
764
|
+
body: (0, index_1.ToolCallResultRequestUioToJSON)(requestParameters['toolCallResultRequestUio']),
|
|
765
|
+
}, initOverrides);
|
|
766
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ToolCallResultResponseUioFromJSON)(jsonValue));
|
|
767
|
+
}
|
|
768
|
+
/**
|
|
769
|
+
* Submits the result of one tool call, which releases the suspended conversation turn. Works for any tool: output becomes the tool result handed to the model, and attachments are stored, added to the conversation context and to the last user message. A call can only be answered once — answering an already resolved or expired call returns 409. A message may carry several calls, each answered independently and in any order.
|
|
770
|
+
* Post the result of a tool call
|
|
771
|
+
*/
|
|
772
|
+
async submitMessageToolCallResult(conversationId, messageId, callId, toolCallResultRequestUio, initOverrides) {
|
|
773
|
+
const response = await this.submitMessageToolCallResultRaw({ conversationId: conversationId, messageId: messageId, callId: callId, toolCallResultRequestUio: toolCallResultRequestUio }, initOverrides);
|
|
774
|
+
return await response.value();
|
|
775
|
+
}
|
|
636
776
|
/**
|
|
637
777
|
* Change the status of an attachment to \'PROCESSING\' after it has been uploaded.
|
|
638
778
|
* Update the status of an uploaded attachment
|
|
@@ -697,6 +837,40 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
697
837
|
const response = await this.updateConversationTitleRaw({ conversationId: conversationId, updateConversationTitleRequestUio: updateConversationTitleRequestUio }, initOverrides);
|
|
698
838
|
return await response.value();
|
|
699
839
|
}
|
|
840
|
+
/**
|
|
841
|
+
* Mise à jour partielle — une propriété absente reste inchangée.
|
|
842
|
+
* Update the user\'s chat preferences
|
|
843
|
+
*/
|
|
844
|
+
async updateUserChatPreferencesRaw(requestParameters, initOverrides) {
|
|
845
|
+
if (requestParameters['organizationId'] == null) {
|
|
846
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling updateUserChatPreferences().');
|
|
847
|
+
}
|
|
848
|
+
if (requestParameters['updateUserChatPreferencesRequestUio'] == null) {
|
|
849
|
+
throw new runtime.RequiredError('updateUserChatPreferencesRequestUio', 'Required parameter "updateUserChatPreferencesRequestUio" was null or undefined when calling updateUserChatPreferences().');
|
|
850
|
+
}
|
|
851
|
+
const queryParameters = {};
|
|
852
|
+
const headerParameters = {};
|
|
853
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
854
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
855
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
856
|
+
}
|
|
857
|
+
const response = await this.request({
|
|
858
|
+
path: `/organizations/{organizationId}/chat/preferences`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
859
|
+
method: 'PUT',
|
|
860
|
+
headers: headerParameters,
|
|
861
|
+
query: queryParameters,
|
|
862
|
+
body: (0, index_1.UpdateUserChatPreferencesRequestUioToJSON)(requestParameters['updateUserChatPreferencesRequestUio']),
|
|
863
|
+
}, initOverrides);
|
|
864
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UserChatPreferencesUioFromJSON)(jsonValue));
|
|
865
|
+
}
|
|
866
|
+
/**
|
|
867
|
+
* Mise à jour partielle — une propriété absente reste inchangée.
|
|
868
|
+
* Update the user\'s chat preferences
|
|
869
|
+
*/
|
|
870
|
+
async updateUserChatPreferences(organizationId, updateUserChatPreferencesRequestUio, initOverrides) {
|
|
871
|
+
const response = await this.updateUserChatPreferencesRaw({ organizationId: organizationId, updateUserChatPreferencesRequestUio: updateUserChatPreferencesRequestUio }, initOverrides);
|
|
872
|
+
return await response.value();
|
|
873
|
+
}
|
|
700
874
|
/**
|
|
701
875
|
* Upload one file attachment to the context of a specific conversation.
|
|
702
876
|
* Upload attachment to a conversation context.
|
|
@@ -18,6 +18,7 @@ import type { AgentMemoryConfigurationUio } from './AgentMemoryConfigurationUio'
|
|
|
18
18
|
import type { AgentPatchEngineUio } from './AgentPatchEngineUio';
|
|
19
19
|
import type { AgentSandboxConfigurationUio } from './AgentSandboxConfigurationUio';
|
|
20
20
|
import type { AgentTypeUio } from './AgentTypeUio';
|
|
21
|
+
import type { AgentPendingToolsConfigurationUio } from './AgentPendingToolsConfigurationUio';
|
|
21
22
|
/**
|
|
22
23
|
*
|
|
23
24
|
* @export
|
|
@@ -178,6 +179,12 @@ export interface AgentPatchUio {
|
|
|
178
179
|
* @memberof AgentPatchUio
|
|
179
180
|
*/
|
|
180
181
|
sandboxConfiguration?: AgentSandboxConfigurationUio | null;
|
|
182
|
+
/**
|
|
183
|
+
*
|
|
184
|
+
* @type {AgentPendingToolsConfigurationUio}
|
|
185
|
+
* @memberof AgentPatchUio
|
|
186
|
+
*/
|
|
187
|
+
pendingToolsConfiguration?: AgentPendingToolsConfigurationUio | null;
|
|
181
188
|
}
|
|
182
189
|
/**
|
|
183
190
|
* Check if a given object implements the AgentPatchUio interface.
|
|
@@ -27,6 +27,7 @@ const AgentMemoryConfigurationUio_1 = require("./AgentMemoryConfigurationUio");
|
|
|
27
27
|
const AgentPatchEngineUio_1 = require("./AgentPatchEngineUio");
|
|
28
28
|
const AgentSandboxConfigurationUio_1 = require("./AgentSandboxConfigurationUio");
|
|
29
29
|
const AgentTypeUio_1 = require("./AgentTypeUio");
|
|
30
|
+
const AgentPendingToolsConfigurationUio_1 = require("./AgentPendingToolsConfigurationUio");
|
|
30
31
|
/**
|
|
31
32
|
* Check if a given object implements the AgentPatchUio interface.
|
|
32
33
|
*/
|
|
@@ -66,6 +67,7 @@ function AgentPatchUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
66
67
|
'contextualKnowledgeConversation': json['contextualKnowledgeConversation'] == null ? undefined : (0, ContextualKnowledgeConversationUio_1.ContextualKnowledgeConversationUioFromJSON)(json['contextualKnowledgeConversation']),
|
|
67
68
|
'speechToText': json['speechToText'] == null ? undefined : (0, SpeechToTextConfigUio_1.SpeechToTextConfigUioFromJSON)(json['speechToText']),
|
|
68
69
|
'sandboxConfiguration': json['sandboxConfiguration'] == null ? undefined : (0, AgentSandboxConfigurationUio_1.AgentSandboxConfigurationUioFromJSON)(json['sandboxConfiguration']),
|
|
70
|
+
'pendingToolsConfiguration': json['pendingToolsConfiguration'] == null ? undefined : (0, AgentPendingToolsConfigurationUio_1.AgentPendingToolsConfigurationUioFromJSON)(json['pendingToolsConfiguration']),
|
|
69
71
|
};
|
|
70
72
|
}
|
|
71
73
|
function AgentPatchUioToJSON(json) {
|
|
@@ -101,5 +103,6 @@ function AgentPatchUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
101
103
|
'contextualKnowledgeConversation': (0, ContextualKnowledgeConversationUio_1.ContextualKnowledgeConversationUioToJSON)(value['contextualKnowledgeConversation']),
|
|
102
104
|
'speechToText': (0, SpeechToTextConfigUio_1.SpeechToTextConfigUioToJSON)(value['speechToText']),
|
|
103
105
|
'sandboxConfiguration': (0, AgentSandboxConfigurationUio_1.AgentSandboxConfigurationUioToJSON)(value['sandboxConfiguration']),
|
|
106
|
+
'pendingToolsConfiguration': (0, AgentPendingToolsConfigurationUio_1.AgentPendingToolsConfigurationUioToJSON)(value['pendingToolsConfiguration']),
|
|
104
107
|
};
|
|
105
108
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brain-client
|
|
3
|
+
* Api ands models for brain-app and brain-app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Per-agent activation of deferred tools: those that suspend the chat turn until a client answers. Opt-in, because an agent whose client never answers would hang its turns. A tool is available only when the general switch is on AND the tool is listed.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AgentPendingToolsConfigurationUio
|
|
16
|
+
*/
|
|
17
|
+
export interface AgentPendingToolsConfigurationUio {
|
|
18
|
+
/**
|
|
19
|
+
* General switch for deferred tools on this agent.
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof AgentPendingToolsConfigurationUio
|
|
22
|
+
*/
|
|
23
|
+
enabled?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Names of the allowed deferred tools, for instance take_screenshot. Listing tools here is what makes them available, so a new deferred tool needs no schema change.
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof AgentPendingToolsConfigurationUio
|
|
28
|
+
*/
|
|
29
|
+
tools?: Array<string>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the AgentPendingToolsConfigurationUio interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfAgentPendingToolsConfigurationUio(value: object): value is AgentPendingToolsConfigurationUio;
|
|
35
|
+
export declare function AgentPendingToolsConfigurationUioFromJSON(json: any): AgentPendingToolsConfigurationUio;
|
|
36
|
+
export declare function AgentPendingToolsConfigurationUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentPendingToolsConfigurationUio;
|
|
37
|
+
export declare function AgentPendingToolsConfigurationUioToJSON(json: any): AgentPendingToolsConfigurationUio;
|
|
38
|
+
export declare function AgentPendingToolsConfigurationUioToJSONTyped(value?: AgentPendingToolsConfigurationUio | 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.instanceOfAgentPendingToolsConfigurationUio = instanceOfAgentPendingToolsConfigurationUio;
|
|
17
|
+
exports.AgentPendingToolsConfigurationUioFromJSON = AgentPendingToolsConfigurationUioFromJSON;
|
|
18
|
+
exports.AgentPendingToolsConfigurationUioFromJSONTyped = AgentPendingToolsConfigurationUioFromJSONTyped;
|
|
19
|
+
exports.AgentPendingToolsConfigurationUioToJSON = AgentPendingToolsConfigurationUioToJSON;
|
|
20
|
+
exports.AgentPendingToolsConfigurationUioToJSONTyped = AgentPendingToolsConfigurationUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AgentPendingToolsConfigurationUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAgentPendingToolsConfigurationUio(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function AgentPendingToolsConfigurationUioFromJSON(json) {
|
|
28
|
+
return AgentPendingToolsConfigurationUioFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function AgentPendingToolsConfigurationUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
36
|
+
'tools': json['tools'] == null ? undefined : json['tools'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function AgentPendingToolsConfigurationUioToJSON(json) {
|
|
40
|
+
return AgentPendingToolsConfigurationUioToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function AgentPendingToolsConfigurationUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'enabled': value['enabled'],
|
|
48
|
+
'tools': value['tools'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -10,17 +10,18 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { AgentRoleDetailsUio } from './AgentRoleDetailsUio';
|
|
13
|
-
import type { AgentSubscriptionUio } from './AgentSubscriptionUio';
|
|
14
|
-
import type { AgentToolUio } from './AgentToolUio';
|
|
15
13
|
import type { ContextualKnowledgeConversationUio } from './ContextualKnowledgeConversationUio';
|
|
16
14
|
import type { PersonaUio } from './PersonaUio';
|
|
17
|
-
import type { AgentCreatorUio } from './AgentCreatorUio';
|
|
18
15
|
import type { EngineUio } from './EngineUio';
|
|
19
16
|
import type { PromptInitUio } from './PromptInitUio';
|
|
17
|
+
import type { AgentSandboxConfigurationUio } from './AgentSandboxConfigurationUio';
|
|
18
|
+
import type { AgentSubscriptionUio } from './AgentSubscriptionUio';
|
|
19
|
+
import type { AgentToolUio } from './AgentToolUio';
|
|
20
|
+
import type { AgentCreatorUio } from './AgentCreatorUio';
|
|
20
21
|
import type { SpeechToTextConfigUio } from './SpeechToTextConfigUio';
|
|
21
22
|
import type { AgentMemoryConfigurationUio } from './AgentMemoryConfigurationUio';
|
|
22
|
-
import type { AgentSandboxConfigurationUio } from './AgentSandboxConfigurationUio';
|
|
23
23
|
import type { AgentTypeUio } from './AgentTypeUio';
|
|
24
|
+
import type { AgentPendingToolsConfigurationUio } from './AgentPendingToolsConfigurationUio';
|
|
24
25
|
/**
|
|
25
26
|
*
|
|
26
27
|
* @export
|
|
@@ -199,6 +200,12 @@ export interface AgentUio {
|
|
|
199
200
|
* @memberof AgentUio
|
|
200
201
|
*/
|
|
201
202
|
sandboxConfiguration?: AgentSandboxConfigurationUio | null;
|
|
203
|
+
/**
|
|
204
|
+
*
|
|
205
|
+
* @type {AgentPendingToolsConfigurationUio}
|
|
206
|
+
* @memberof AgentUio
|
|
207
|
+
*/
|
|
208
|
+
pendingToolsConfiguration?: AgentPendingToolsConfigurationUio | null;
|
|
202
209
|
/**
|
|
203
210
|
*
|
|
204
211
|
* @type {AgentCreatorUio}
|
package/dist/models/AgentUio.js
CHANGED
|
@@ -20,17 +20,18 @@ exports.AgentUioFromJSONTyped = AgentUioFromJSONTyped;
|
|
|
20
20
|
exports.AgentUioToJSON = AgentUioToJSON;
|
|
21
21
|
exports.AgentUioToJSONTyped = AgentUioToJSONTyped;
|
|
22
22
|
const AgentRoleDetailsUio_1 = require("./AgentRoleDetailsUio");
|
|
23
|
-
const AgentSubscriptionUio_1 = require("./AgentSubscriptionUio");
|
|
24
|
-
const AgentToolUio_1 = require("./AgentToolUio");
|
|
25
23
|
const ContextualKnowledgeConversationUio_1 = require("./ContextualKnowledgeConversationUio");
|
|
26
24
|
const PersonaUio_1 = require("./PersonaUio");
|
|
27
|
-
const AgentCreatorUio_1 = require("./AgentCreatorUio");
|
|
28
25
|
const EngineUio_1 = require("./EngineUio");
|
|
29
26
|
const PromptInitUio_1 = require("./PromptInitUio");
|
|
27
|
+
const AgentSandboxConfigurationUio_1 = require("./AgentSandboxConfigurationUio");
|
|
28
|
+
const AgentSubscriptionUio_1 = require("./AgentSubscriptionUio");
|
|
29
|
+
const AgentToolUio_1 = require("./AgentToolUio");
|
|
30
|
+
const AgentCreatorUio_1 = require("./AgentCreatorUio");
|
|
30
31
|
const SpeechToTextConfigUio_1 = require("./SpeechToTextConfigUio");
|
|
31
32
|
const AgentMemoryConfigurationUio_1 = require("./AgentMemoryConfigurationUio");
|
|
32
|
-
const AgentSandboxConfigurationUio_1 = require("./AgentSandboxConfigurationUio");
|
|
33
33
|
const AgentTypeUio_1 = require("./AgentTypeUio");
|
|
34
|
+
const AgentPendingToolsConfigurationUio_1 = require("./AgentPendingToolsConfigurationUio");
|
|
34
35
|
/**
|
|
35
36
|
* @export
|
|
36
37
|
*/
|
|
@@ -99,6 +100,7 @@ function AgentUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
99
100
|
'contextualKnowledgeConversation': json['contextualKnowledgeConversation'] == null ? undefined : (0, ContextualKnowledgeConversationUio_1.ContextualKnowledgeConversationUioFromJSON)(json['contextualKnowledgeConversation']),
|
|
100
101
|
'speechToText': json['speechToText'] == null ? undefined : (0, SpeechToTextConfigUio_1.SpeechToTextConfigUioFromJSON)(json['speechToText']),
|
|
101
102
|
'sandboxConfiguration': json['sandboxConfiguration'] == null ? undefined : (0, AgentSandboxConfigurationUio_1.AgentSandboxConfigurationUioFromJSON)(json['sandboxConfiguration']),
|
|
103
|
+
'pendingToolsConfiguration': json['pendingToolsConfiguration'] == null ? undefined : (0, AgentPendingToolsConfigurationUio_1.AgentPendingToolsConfigurationUioFromJSON)(json['pendingToolsConfiguration']),
|
|
102
104
|
'creator': json['creator'] == null ? undefined : (0, AgentCreatorUio_1.AgentCreatorUioFromJSON)(json['creator']),
|
|
103
105
|
'engineSource': json['engineSource'] == null ? undefined : json['engineSource'],
|
|
104
106
|
'providerSource': json['providerSource'] == null ? undefined : json['providerSource'],
|
|
@@ -141,6 +143,7 @@ function AgentUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
141
143
|
'contextualKnowledgeConversation': (0, ContextualKnowledgeConversationUio_1.ContextualKnowledgeConversationUioToJSON)(value['contextualKnowledgeConversation']),
|
|
142
144
|
'speechToText': (0, SpeechToTextConfigUio_1.SpeechToTextConfigUioToJSON)(value['speechToText']),
|
|
143
145
|
'sandboxConfiguration': (0, AgentSandboxConfigurationUio_1.AgentSandboxConfigurationUioToJSON)(value['sandboxConfiguration']),
|
|
146
|
+
'pendingToolsConfiguration': (0, AgentPendingToolsConfigurationUio_1.AgentPendingToolsConfigurationUioToJSON)(value['pendingToolsConfiguration']),
|
|
144
147
|
'creator': (0, AgentCreatorUio_1.AgentCreatorUioToJSON)(value['creator']),
|
|
145
148
|
'engineSource': value['engineSource'],
|
|
146
149
|
'providerSource': value['providerSource'],
|
|
@@ -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 SetUserAgentConversationRequestUio
|
|
16
|
+
*/
|
|
17
|
+
export interface SetUserAgentConversationRequestUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SetUserAgentConversationRequestUio
|
|
22
|
+
*/
|
|
23
|
+
conversationId: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the SetUserAgentConversationRequestUio interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfSetUserAgentConversationRequestUio(value: object): value is SetUserAgentConversationRequestUio;
|
|
29
|
+
export declare function SetUserAgentConversationRequestUioFromJSON(json: any): SetUserAgentConversationRequestUio;
|
|
30
|
+
export declare function SetUserAgentConversationRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): SetUserAgentConversationRequestUio;
|
|
31
|
+
export declare function SetUserAgentConversationRequestUioToJSON(json: any): SetUserAgentConversationRequestUio;
|
|
32
|
+
export declare function SetUserAgentConversationRequestUioToJSONTyped(value?: SetUserAgentConversationRequestUio | 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.instanceOfSetUserAgentConversationRequestUio = instanceOfSetUserAgentConversationRequestUio;
|
|
17
|
+
exports.SetUserAgentConversationRequestUioFromJSON = SetUserAgentConversationRequestUioFromJSON;
|
|
18
|
+
exports.SetUserAgentConversationRequestUioFromJSONTyped = SetUserAgentConversationRequestUioFromJSONTyped;
|
|
19
|
+
exports.SetUserAgentConversationRequestUioToJSON = SetUserAgentConversationRequestUioToJSON;
|
|
20
|
+
exports.SetUserAgentConversationRequestUioToJSONTyped = SetUserAgentConversationRequestUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SetUserAgentConversationRequestUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfSetUserAgentConversationRequestUio(value) {
|
|
25
|
+
if (!('conversationId' in value) || value['conversationId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function SetUserAgentConversationRequestUioFromJSON(json) {
|
|
30
|
+
return SetUserAgentConversationRequestUioFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function SetUserAgentConversationRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'conversationId': json['conversationId'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function SetUserAgentConversationRequestUioToJSON(json) {
|
|
41
|
+
return SetUserAgentConversationRequestUioToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function SetUserAgentConversationRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'conversationId': value['conversationId'],
|
|
49
|
+
};
|
|
50
|
+
}
|