@deepdesk/deepdesk-sdk 17.2.1-beta.3 → 17.3.1-beta.0

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
@@ -1954,7 +1954,9 @@ declare class WebsocketClient {
1954
1954
  private maxReconnectAttempts;
1955
1955
  private reconnectInterval;
1956
1956
  private shouldReconnect;
1957
+ private cleanupCallbacks;
1957
1958
  constructor(options: WebsocketOptions);
1959
+ connect(): void;
1958
1960
  private setupListeners;
1959
1961
  private reconnect;
1960
1962
  send(event: string, data: any): void;
@@ -2174,6 +2176,16 @@ declare class DeepdeskSDK {
2174
2176
  conversationId(): string;
2175
2177
  private externalId;
2176
2178
  private shouldAbort;
2179
+ /**
2180
+ * Will call the callback when the user is logged in.
2181
+ * @param callback - The callback to call when the user is logged in.
2182
+ */
2183
+ private whenLoggedIn;
2184
+ /**
2185
+ * This method checks if the user has a valid access token cookie or valid refresh token.
2186
+ *
2187
+ * @returns Return a promise that resolves when the user is logged in.
2188
+ */
2177
2189
  login(): Promise<void>;
2178
2190
  isLoggedIn(): Promise<boolean>;
2179
2191
  /**
package/dist/index.d.ts CHANGED
@@ -1954,7 +1954,9 @@ declare class WebsocketClient {
1954
1954
  private maxReconnectAttempts;
1955
1955
  private reconnectInterval;
1956
1956
  private shouldReconnect;
1957
+ private cleanupCallbacks;
1957
1958
  constructor(options: WebsocketOptions);
1959
+ connect(): void;
1958
1960
  private setupListeners;
1959
1961
  private reconnect;
1960
1962
  send(event: string, data: any): void;
@@ -2174,6 +2176,16 @@ declare class DeepdeskSDK {
2174
2176
  conversationId(): string;
2175
2177
  private externalId;
2176
2178
  private shouldAbort;
2179
+ /**
2180
+ * Will call the callback when the user is logged in.
2181
+ * @param callback - The callback to call when the user is logged in.
2182
+ */
2183
+ private whenLoggedIn;
2184
+ /**
2185
+ * This method checks if the user has a valid access token cookie or valid refresh token.
2186
+ *
2187
+ * @returns Return a promise that resolves when the user is logged in.
2188
+ */
2177
2189
  login(): Promise<void>;
2178
2190
  isLoggedIn(): Promise<boolean>;
2179
2191
  /**