@breign/client 1.0.37 → 1.0.38

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.
@@ -22,6 +22,7 @@ export interface CreateConversationWithFlowManagementRequest {
22
22
  export interface CreatePromptRequest {
23
23
  agentId: string;
24
24
  promptCreateRequestUio: PromptCreateRequestUio;
25
+ async?: boolean;
25
26
  }
26
27
  export interface GetConversationByIdRequest {
27
28
  conversationId: string;
@@ -33,6 +34,7 @@ export interface GetMessageByIdRequest {
33
34
  export interface SendMessageToConversationRequest {
34
35
  conversationId: string;
35
36
  messageUio: MessageUio;
37
+ async?: boolean;
36
38
  }
37
39
  /**
38
40
  *
@@ -67,7 +69,7 @@ export declare class PromptsApi extends runtime.BaseAPI {
67
69
  * Starts a new conversation session for the specified agent
68
70
  * Create a new prompt
69
71
  */
70
- createPrompt(agentId: string, promptCreateRequestUio: PromptCreateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PromptCreateResponseUio>;
72
+ createPrompt(agentId: string, promptCreateRequestUio: PromptCreateRequestUio, async?: boolean, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PromptCreateResponseUio>;
71
73
  /**
72
74
  * Retrieves details of a specific conversation including all messages
73
75
  * Get a conversation by ID
@@ -97,5 +99,5 @@ export declare class PromptsApi extends runtime.BaseAPI {
97
99
  * Adds a new message to an existing conversation and gets the AI response
98
100
  * Send a message to an existing conversation
99
101
  */
100
- sendMessageToConversation(conversationId: string, messageUio: MessageUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PromptCreateResponseUio>;
102
+ sendMessageToConversation(conversationId: string, messageUio: MessageUio, async?: boolean, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PromptCreateResponseUio>;
101
103
  }
@@ -133,6 +133,9 @@ class PromptsApi extends runtime.BaseAPI {
133
133
  throw new runtime.RequiredError('promptCreateRequestUio', 'Required parameter "promptCreateRequestUio" was null or undefined when calling createPrompt().');
134
134
  }
135
135
  const queryParameters = {};
136
+ if (requestParameters['async'] != null) {
137
+ queryParameters['async'] = requestParameters['async'];
138
+ }
136
139
  const headerParameters = {};
137
140
  headerParameters['Content-Type'] = 'application/json';
138
141
  if (this.configuration && this.configuration.apiKey) {
@@ -151,8 +154,8 @@ class PromptsApi extends runtime.BaseAPI {
151
154
  * Starts a new conversation session for the specified agent
152
155
  * Create a new prompt
153
156
  */
154
- async createPrompt(agentId, promptCreateRequestUio, initOverrides) {
155
- const response = await this.createPromptRaw({ agentId: agentId, promptCreateRequestUio: promptCreateRequestUio }, initOverrides);
157
+ async createPrompt(agentId, promptCreateRequestUio, async, initOverrides) {
158
+ const response = await this.createPromptRaw({ agentId: agentId, promptCreateRequestUio: promptCreateRequestUio, async: async }, initOverrides);
156
159
  return await response.value();
157
160
  }
158
161
  /**
@@ -228,6 +231,9 @@ class PromptsApi extends runtime.BaseAPI {
228
231
  throw new runtime.RequiredError('messageUio', 'Required parameter "messageUio" was null or undefined when calling sendMessageToConversation().');
229
232
  }
230
233
  const queryParameters = {};
234
+ if (requestParameters['async'] != null) {
235
+ queryParameters['async'] = requestParameters['async'];
236
+ }
231
237
  const headerParameters = {};
232
238
  headerParameters['Content-Type'] = 'application/json';
233
239
  if (this.configuration && this.configuration.apiKey) {
@@ -246,8 +252,8 @@ class PromptsApi extends runtime.BaseAPI {
246
252
  * Adds a new message to an existing conversation and gets the AI response
247
253
  * Send a message to an existing conversation
248
254
  */
249
- async sendMessageToConversation(conversationId, messageUio, initOverrides) {
250
- const response = await this.sendMessageToConversationRaw({ conversationId: conversationId, messageUio: messageUio }, initOverrides);
255
+ async sendMessageToConversation(conversationId, messageUio, async, initOverrides) {
256
+ const response = await this.sendMessageToConversationRaw({ conversationId: conversationId, messageUio: messageUio, async: async }, initOverrides);
251
257
  return await response.value();
252
258
  }
253
259
  }
package/dist/openapi.json CHANGED
@@ -5467,6 +5467,14 @@
5467
5467
  "format" : "uuid",
5468
5468
  "type" : "string"
5469
5469
  }
5470
+ }, {
5471
+ "description" : "If true, run the operation in async mode (poll the ressource then).",
5472
+ "in" : "query",
5473
+ "name" : "async",
5474
+ "required" : false,
5475
+ "schema" : {
5476
+ "type" : "boolean"
5477
+ }
5470
5478
  } ],
5471
5479
  "requestBody" : {
5472
5480
  "content" : {
@@ -5591,6 +5599,14 @@
5591
5599
  "schema" : {
5592
5600
  "type" : "string"
5593
5601
  }
5602
+ }, {
5603
+ "description" : "If true, run the operation in async mode (poll the ressource then).",
5604
+ "in" : "query",
5605
+ "name" : "async",
5606
+ "required" : false,
5607
+ "schema" : {
5608
+ "type" : "boolean"
5609
+ }
5594
5610
  } ],
5595
5611
  "requestBody" : {
5596
5612
  "content" : {
@@ -5960,6 +5976,15 @@
5960
5976
  "type" : "string"
5961
5977
  }
5962
5978
  },
5979
+ "async" : {
5980
+ "description" : "If true, run the operation in async mode (poll the ressource then).",
5981
+ "in" : "query",
5982
+ "name" : "async",
5983
+ "required" : false,
5984
+ "schema" : {
5985
+ "type" : "boolean"
5986
+ }
5987
+ },
5963
5988
  "messageIdPath" : {
5964
5989
  "description" : "The ID of the message",
5965
5990
  "in" : "path",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breign/client",
3
- "version": "1.0.37",
3
+ "version": "1.0.38",
4
4
  "main": "dist/index.js",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",