@deepdesk/deepdesk-sdk 19.6.2-beta.2 → 19.6.2-beta.4

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
@@ -469,6 +469,14 @@ interface EvaluateInput {
469
469
  skipState?: boolean;
470
470
  }
471
471
 
472
+ type QueueMicrotaskErrorEventData = {
473
+ message: string;
474
+ stack: string | null;
475
+ typeofQueueMicrotask: string;
476
+ typeofWindowQueueMicrotask: string;
477
+ typeofGlobalThisQueueMicrotask: string;
478
+ };
479
+
472
480
  type Fetch = typeof window.fetch;
473
481
  type HTTPClientOptions = {
474
482
  fetch?: typeof window.fetch;
@@ -1085,6 +1093,7 @@ type SendEventArgumentMap = {
1085
1093
  'trigger on demand assistant': Event$1<{
1086
1094
  assistantCode: string;
1087
1095
  }>;
1096
+ 'queueMicrotask error': Event$1<QueueMicrotaskErrorEventData>;
1088
1097
  };
1089
1098
  /**
1090
1099
  * Request retry options
@@ -1248,6 +1257,9 @@ interface State$8 {
1248
1257
  type State$7 = {
1249
1258
  data: Profile | null;
1250
1259
  fetchState: FetchState;
1260
+ /** Bumped on reset/clear so in-flight getProfile cannot repopulate profile. */
1261
+ generation: number;
1262
+ inFlightRequestId: string | null;
1251
1263
  };
1252
1264
 
1253
1265
  /**
@@ -3458,6 +3470,17 @@ declare class DeepdeskSDK {
3458
3470
  private setupHandlingTime;
3459
3471
  private handleError;
3460
3472
  private loadProfileConfigPromise;
3473
+ private loadProfileConfigPromiseKey;
3474
+ /**
3475
+ * Subscription/dedupe key for conversation + profile. Admin validates profile codes as
3476
+ * `[a-z0-9-]+` (no colon), so the last `:` separates conversation id from profileCode
3477
+ * even when the id contains `:`.
3478
+ */
3479
+ private getConversationProfileKey;
3480
+ private getProfileLoadKey;
3481
+ private isCurrentProfileLoadKey;
3482
+ private getConversationLoadedKey;
3483
+ private resetProfileDerivedSettings;
3461
3484
  private loadProfileConfig;
3462
3485
  /**
3463
3486
  * Authenticates user via popup window.
package/dist/index.d.ts CHANGED
@@ -469,6 +469,14 @@ interface EvaluateInput {
469
469
  skipState?: boolean;
470
470
  }
471
471
 
472
+ type QueueMicrotaskErrorEventData = {
473
+ message: string;
474
+ stack: string | null;
475
+ typeofQueueMicrotask: string;
476
+ typeofWindowQueueMicrotask: string;
477
+ typeofGlobalThisQueueMicrotask: string;
478
+ };
479
+
472
480
  type Fetch = typeof window.fetch;
473
481
  type HTTPClientOptions = {
474
482
  fetch?: typeof window.fetch;
@@ -1085,6 +1093,7 @@ type SendEventArgumentMap = {
1085
1093
  'trigger on demand assistant': Event$1<{
1086
1094
  assistantCode: string;
1087
1095
  }>;
1096
+ 'queueMicrotask error': Event$1<QueueMicrotaskErrorEventData>;
1088
1097
  };
1089
1098
  /**
1090
1099
  * Request retry options
@@ -1248,6 +1257,9 @@ interface State$8 {
1248
1257
  type State$7 = {
1249
1258
  data: Profile | null;
1250
1259
  fetchState: FetchState;
1260
+ /** Bumped on reset/clear so in-flight getProfile cannot repopulate profile. */
1261
+ generation: number;
1262
+ inFlightRequestId: string | null;
1251
1263
  };
1252
1264
 
1253
1265
  /**
@@ -3458,6 +3470,17 @@ declare class DeepdeskSDK {
3458
3470
  private setupHandlingTime;
3459
3471
  private handleError;
3460
3472
  private loadProfileConfigPromise;
3473
+ private loadProfileConfigPromiseKey;
3474
+ /**
3475
+ * Subscription/dedupe key for conversation + profile. Admin validates profile codes as
3476
+ * `[a-z0-9-]+` (no colon), so the last `:` separates conversation id from profileCode
3477
+ * even when the id contains `:`.
3478
+ */
3479
+ private getConversationProfileKey;
3480
+ private getProfileLoadKey;
3481
+ private isCurrentProfileLoadKey;
3482
+ private getConversationLoadedKey;
3483
+ private resetProfileDerivedSettings;
3461
3484
  private loadProfileConfig;
3462
3485
  /**
3463
3486
  * Authenticates user via popup window.