@breign/client 1.0.36 → 1.0.37

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
  */
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" : {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breign/client",
3
- "version": "1.0.36",
3
+ "version": "1.0.37",
4
4
  "main": "dist/index.js",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",