@breign/client 1.0.36 → 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 CreateCustomVariableRequest {
22
22
  }
23
23
  export interface DeleteAllConversationsRequest {
24
24
  organizationId: string;
25
+ providerSource?: DeleteAllConversationsProviderSourceEnum;
25
26
  }
26
27
  export interface DeleteAttachmentRequest {
27
28
  conversationId: string;
@@ -88,7 +89,7 @@ export declare class ConversationsApi extends runtime.BaseAPI {
88
89
  * Delete all conversations created by the authenticated user in the specified organization.
89
90
  * Delete all conversations
90
91
  */
91
- deleteAllConversations(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
92
+ deleteAllConversations(organizationId: string, providerSource?: DeleteAllConversationsProviderSourceEnum, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
92
93
  /**
93
94
  * Remove a specific attachment by its ID from the context of a conversation.
94
95
  * Delete an attachment from a conversation context
@@ -174,6 +175,14 @@ export declare class ConversationsApi extends runtime.BaseAPI {
174
175
  */
175
176
  uploadAttachment(conversationId: string, attachmentCreateRequestUio: AttachmentCreateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
176
177
  }
178
+ /**
179
+ * @export
180
+ */
181
+ export declare const DeleteAllConversationsProviderSourceEnum: {
182
+ readonly External: "EXTERNAL";
183
+ readonly Internal: "INTERNAL";
184
+ };
185
+ export type DeleteAllConversationsProviderSourceEnum = typeof DeleteAllConversationsProviderSourceEnum[keyof typeof DeleteAllConversationsProviderSourceEnum];
177
186
  /**
178
187
  * @export
179
188
  */
@@ -46,7 +46,7 @@ var __importStar = (this && this.__importStar) || (function () {
46
46
  };
47
47
  })();
48
48
  Object.defineProperty(exports, "__esModule", { value: true });
49
- exports.GetConversationsProviderSourceEnum = exports.ConversationsApi = void 0;
49
+ exports.GetConversationsProviderSourceEnum = exports.DeleteAllConversationsProviderSourceEnum = exports.ConversationsApi = void 0;
50
50
  const runtime = __importStar(require("../runtime"));
51
51
  const index_1 = require("../models/index");
52
52
  /**
@@ -126,6 +126,9 @@ class ConversationsApi extends runtime.BaseAPI {
126
126
  if (requestParameters['organizationId'] != null) {
127
127
  queryParameters['organizationId'] = requestParameters['organizationId'];
128
128
  }
129
+ if (requestParameters['providerSource'] != null) {
130
+ queryParameters['providerSource'] = requestParameters['providerSource'];
131
+ }
129
132
  const headerParameters = {};
130
133
  if (this.configuration && this.configuration.apiKey) {
131
134
  headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
@@ -142,8 +145,8 @@ class ConversationsApi extends runtime.BaseAPI {
142
145
  * Delete all conversations created by the authenticated user in the specified organization.
143
146
  * Delete all conversations
144
147
  */
145
- async deleteAllConversations(organizationId, initOverrides) {
146
- await this.deleteAllConversationsRaw({ organizationId: organizationId }, initOverrides);
148
+ async deleteAllConversations(organizationId, providerSource, initOverrides) {
149
+ await this.deleteAllConversationsRaw({ organizationId: organizationId, providerSource: providerSource }, initOverrides);
147
150
  }
148
151
  /**
149
152
  * Remove a specific attachment by its ID from the context of a conversation.
@@ -396,6 +399,13 @@ class ConversationsApi extends runtime.BaseAPI {
396
399
  }
397
400
  }
398
401
  exports.ConversationsApi = ConversationsApi;
402
+ /**
403
+ * @export
404
+ */
405
+ exports.DeleteAllConversationsProviderSourceEnum = {
406
+ External: 'EXTERNAL',
407
+ Internal: 'INTERNAL'
408
+ };
399
409
  /**
400
410
  * @export
401
411
  */
@@ -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
@@ -2842,6 +2842,15 @@
2842
2842
  "schema" : {
2843
2843
  "type" : "string"
2844
2844
  }
2845
+ }, {
2846
+ "description" : "Filter conversations by provider source",
2847
+ "in" : "query",
2848
+ "name" : "providerSource",
2849
+ "required" : false,
2850
+ "schema" : {
2851
+ "enum" : [ "EXTERNAL", "INTERNAL" ],
2852
+ "type" : "string"
2853
+ }
2845
2854
  } ],
2846
2855
  "responses" : {
2847
2856
  "204" : {
@@ -5458,6 +5467,14 @@
5458
5467
  "format" : "uuid",
5459
5468
  "type" : "string"
5460
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
+ }
5461
5478
  } ],
5462
5479
  "requestBody" : {
5463
5480
  "content" : {
@@ -5582,6 +5599,14 @@
5582
5599
  "schema" : {
5583
5600
  "type" : "string"
5584
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
+ }
5585
5610
  } ],
5586
5611
  "requestBody" : {
5587
5612
  "content" : {
@@ -5951,6 +5976,15 @@
5951
5976
  "type" : "string"
5952
5977
  }
5953
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
+ },
5954
5988
  "messageIdPath" : {
5955
5989
  "description" : "The ID of the message",
5956
5990
  "in" : "path",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breign/client",
3
- "version": "1.0.36",
3
+ "version": "1.0.38",
4
4
  "main": "dist/index.js",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",