@deepdesk/deepdesk-sdk 19.7.2 → 19.7.3-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.cjs.js +11 -11
- package/dist/index.d.mts +22 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.esm.js +11 -11
- package/dist/index.iife.js +37 -37
- package/package.json +1 -1
- package/styles/index.js +1 -1
- package/styles.css +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -541,6 +541,11 @@ declare class HTTPClient {
|
|
|
541
541
|
constructor(baseUrl?: string, options?: HTTPClientOptions);
|
|
542
542
|
patchFetch(patch: (fetchFn: Fetch) => Fetch): void;
|
|
543
543
|
setCsrfToken(token: string): void;
|
|
544
|
+
/**
|
|
545
|
+
* Abort the latest request to `path` that was sent with `abortLatest`: it rejects
|
|
546
|
+
* with "Aborted" and a retry it is waiting to send does not go out.
|
|
547
|
+
*/
|
|
548
|
+
abort(path: string): void;
|
|
544
549
|
request<TResponse>(path: string, init?: ExtendedRequestInit): Promise<TResponse>;
|
|
545
550
|
/**
|
|
546
551
|
* Validates both admin session and backend token authentication using the /apis/admin/session/validate/ endpoint.
|
|
@@ -1223,6 +1228,11 @@ declare class DeepdeskAPI {
|
|
|
1223
1228
|
* Validate authentication
|
|
1224
1229
|
*/
|
|
1225
1230
|
isLoggedIn(): Promise<boolean>;
|
|
1231
|
+
/**
|
|
1232
|
+
* Abort the autocomplete request in flight for the conversation, including a
|
|
1233
|
+
* retry it is still waiting to send (DD-10244): the agent emptied the box.
|
|
1234
|
+
*/
|
|
1235
|
+
abortAutocompleteSuggestions(conversationId: string): void;
|
|
1226
1236
|
/**
|
|
1227
1237
|
* Request autocomplete suggestions based on the agent text input
|
|
1228
1238
|
*/
|
|
@@ -1695,6 +1705,17 @@ type Store = ReturnType<typeof createStore>;
|
|
|
1695
1705
|
type SuggestionState = {
|
|
1696
1706
|
suggestions: TextSuggestion[];
|
|
1697
1707
|
fetchState: FetchState;
|
|
1708
|
+
/**
|
|
1709
|
+
* The last request failed on the server (5xx, for example 503 "Recommendations
|
|
1710
|
+
* unavailable"). The overlay shows a paused notice until a request succeeds (DD-10244).
|
|
1711
|
+
*/
|
|
1712
|
+
unavailable?: boolean;
|
|
1713
|
+
/**
|
|
1714
|
+
* Bumped when the conversation is reset or its answers cleared. A request that
|
|
1715
|
+
* started under an older generation is dropped when it comes back, so a late
|
|
1716
|
+
* failure cannot mark the fresh conversation unavailable (DD-10244).
|
|
1717
|
+
*/
|
|
1718
|
+
generation?: number;
|
|
1698
1719
|
};
|
|
1699
1720
|
interface TextSuggestionState {
|
|
1700
1721
|
[type: string]: SuggestionState;
|
|
@@ -1890,6 +1911,7 @@ declare const styles$5: {
|
|
|
1890
1911
|
readonly "loginError": string;
|
|
1891
1912
|
readonly "loginErrorDismiss": string;
|
|
1892
1913
|
readonly "loginErrorMessage": string;
|
|
1914
|
+
readonly "paused": string;
|
|
1893
1915
|
readonly "root": string;
|
|
1894
1916
|
readonly "toggleButton": string;
|
|
1895
1917
|
readonly "toggleButtonWrapper": string;
|
package/dist/index.d.ts
CHANGED
|
@@ -541,6 +541,11 @@ declare class HTTPClient {
|
|
|
541
541
|
constructor(baseUrl?: string, options?: HTTPClientOptions);
|
|
542
542
|
patchFetch(patch: (fetchFn: Fetch) => Fetch): void;
|
|
543
543
|
setCsrfToken(token: string): void;
|
|
544
|
+
/**
|
|
545
|
+
* Abort the latest request to `path` that was sent with `abortLatest`: it rejects
|
|
546
|
+
* with "Aborted" and a retry it is waiting to send does not go out.
|
|
547
|
+
*/
|
|
548
|
+
abort(path: string): void;
|
|
544
549
|
request<TResponse>(path: string, init?: ExtendedRequestInit): Promise<TResponse>;
|
|
545
550
|
/**
|
|
546
551
|
* Validates both admin session and backend token authentication using the /apis/admin/session/validate/ endpoint.
|
|
@@ -1223,6 +1228,11 @@ declare class DeepdeskAPI {
|
|
|
1223
1228
|
* Validate authentication
|
|
1224
1229
|
*/
|
|
1225
1230
|
isLoggedIn(): Promise<boolean>;
|
|
1231
|
+
/**
|
|
1232
|
+
* Abort the autocomplete request in flight for the conversation, including a
|
|
1233
|
+
* retry it is still waiting to send (DD-10244): the agent emptied the box.
|
|
1234
|
+
*/
|
|
1235
|
+
abortAutocompleteSuggestions(conversationId: string): void;
|
|
1226
1236
|
/**
|
|
1227
1237
|
* Request autocomplete suggestions based on the agent text input
|
|
1228
1238
|
*/
|
|
@@ -1695,6 +1705,17 @@ type Store = ReturnType<typeof createStore>;
|
|
|
1695
1705
|
type SuggestionState = {
|
|
1696
1706
|
suggestions: TextSuggestion[];
|
|
1697
1707
|
fetchState: FetchState;
|
|
1708
|
+
/**
|
|
1709
|
+
* The last request failed on the server (5xx, for example 503 "Recommendations
|
|
1710
|
+
* unavailable"). The overlay shows a paused notice until a request succeeds (DD-10244).
|
|
1711
|
+
*/
|
|
1712
|
+
unavailable?: boolean;
|
|
1713
|
+
/**
|
|
1714
|
+
* Bumped when the conversation is reset or its answers cleared. A request that
|
|
1715
|
+
* started under an older generation is dropped when it comes back, so a late
|
|
1716
|
+
* failure cannot mark the fresh conversation unavailable (DD-10244).
|
|
1717
|
+
*/
|
|
1718
|
+
generation?: number;
|
|
1698
1719
|
};
|
|
1699
1720
|
interface TextSuggestionState {
|
|
1700
1721
|
[type: string]: SuggestionState;
|
|
@@ -1890,6 +1911,7 @@ declare const styles$5: {
|
|
|
1890
1911
|
readonly "loginError": string;
|
|
1891
1912
|
readonly "loginErrorDismiss": string;
|
|
1892
1913
|
readonly "loginErrorMessage": string;
|
|
1914
|
+
readonly "paused": string;
|
|
1893
1915
|
readonly "root": string;
|
|
1894
1916
|
readonly "toggleButton": string;
|
|
1895
1917
|
readonly "toggleButtonWrapper": string;
|