@deepdesk/deepdesk-sdk 19.6.2-beta.5 → 19.6.2-beta.7

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/index.d.mts CHANGED
@@ -1199,6 +1199,10 @@ declare class DeepdeskAPI {
1199
1199
  * Request autocomplete suggestions based on the agent text input
1200
1200
  */
1201
1201
  getAutocompleteSuggestions(conversationId: string, params: CamelCaseKeys<Server.GetAutocompleteSuggestionsParams>): Promise<TextSuggestion[]>;
1202
+ /**
1203
+ * Replace in-engine personal collection for the agent with items scoped to the conversation profile.
1204
+ */
1205
+ syncPersonalCollection(conversationId: string | number): Promise<void>;
1202
1206
  /**
1203
1207
  * Request pinned messages
1204
1208
  */
@@ -1251,6 +1255,14 @@ declare class DeepdeskAPI {
1251
1255
  sessionId?: string;
1252
1256
  externalConversationId?: string;
1253
1257
  }): Promise<CamelCaseKeys<Server.EvaluationResponse>>;
1258
+ /**
1259
+ * Clears the conversation of one assistant in a session, so the next `interactWithAssistant`
1260
+ * call starts fresh. Other assistants in the same session keep their conversation.
1261
+ */
1262
+ resetAssistantThread(init: {
1263
+ assistantCode: string;
1264
+ sessionId: string;
1265
+ }): Promise<void>;
1254
1266
  /**
1255
1267
  * @deprecated Prefer `interactWithAssistant` for widget chat. Kept for existing SDK consumers.
1256
1268
  */
@@ -3501,6 +3513,8 @@ declare class DeepdeskSDK {
3501
3513
  private handleError;
3502
3514
  private loadProfileConfigPromise;
3503
3515
  private loadProfileConfigPromiseKey;
3516
+ private personalCollectionSyncPendingKey;
3517
+ private personalCollectionSyncDrainPromise;
3504
3518
  /**
3505
3519
  * Subscription/dedupe key for conversation + profile. Admin validates profile codes as
3506
3520
  * `[a-z0-9-]+` (no colon), so the last `:` separates conversation id from profileCode
@@ -3511,6 +3525,9 @@ declare class DeepdeskSDK {
3511
3525
  private isCurrentProfileLoadKey;
3512
3526
  private getConversationLoadedKey;
3513
3527
  private resetProfileDerivedSettings;
3528
+ private syncPersonalCollectionForConversation;
3529
+ private ensurePersonalCollectionSyncDrain;
3530
+ private drainPersonalCollectionSync;
3514
3531
  private loadProfileConfig;
3515
3532
  /**
3516
3533
  * Authenticates user via popup window.
package/dist/index.d.ts CHANGED
@@ -1199,6 +1199,10 @@ declare class DeepdeskAPI {
1199
1199
  * Request autocomplete suggestions based on the agent text input
1200
1200
  */
1201
1201
  getAutocompleteSuggestions(conversationId: string, params: CamelCaseKeys<Server.GetAutocompleteSuggestionsParams>): Promise<TextSuggestion[]>;
1202
+ /**
1203
+ * Replace in-engine personal collection for the agent with items scoped to the conversation profile.
1204
+ */
1205
+ syncPersonalCollection(conversationId: string | number): Promise<void>;
1202
1206
  /**
1203
1207
  * Request pinned messages
1204
1208
  */
@@ -1251,6 +1255,14 @@ declare class DeepdeskAPI {
1251
1255
  sessionId?: string;
1252
1256
  externalConversationId?: string;
1253
1257
  }): Promise<CamelCaseKeys<Server.EvaluationResponse>>;
1258
+ /**
1259
+ * Clears the conversation of one assistant in a session, so the next `interactWithAssistant`
1260
+ * call starts fresh. Other assistants in the same session keep their conversation.
1261
+ */
1262
+ resetAssistantThread(init: {
1263
+ assistantCode: string;
1264
+ sessionId: string;
1265
+ }): Promise<void>;
1254
1266
  /**
1255
1267
  * @deprecated Prefer `interactWithAssistant` for widget chat. Kept for existing SDK consumers.
1256
1268
  */
@@ -3501,6 +3513,8 @@ declare class DeepdeskSDK {
3501
3513
  private handleError;
3502
3514
  private loadProfileConfigPromise;
3503
3515
  private loadProfileConfigPromiseKey;
3516
+ private personalCollectionSyncPendingKey;
3517
+ private personalCollectionSyncDrainPromise;
3504
3518
  /**
3505
3519
  * Subscription/dedupe key for conversation + profile. Admin validates profile codes as
3506
3520
  * `[a-z0-9-]+` (no colon), so the last `:` separates conversation id from profileCode
@@ -3511,6 +3525,9 @@ declare class DeepdeskSDK {
3511
3525
  private isCurrentProfileLoadKey;
3512
3526
  private getConversationLoadedKey;
3513
3527
  private resetProfileDerivedSettings;
3528
+ private syncPersonalCollectionForConversation;
3529
+ private ensurePersonalCollectionSyncDrain;
3530
+ private drainPersonalCollectionSync;
3514
3531
  private loadProfileConfig;
3515
3532
  /**
3516
3533
  * Authenticates user via popup window.