@sparkvault/sdk-js 15.14.1 → 15.14.3
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/README.md +9 -0
- package/dist/index.cjs +503 -84
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +8 -2
- package/dist/index.mjs +503 -84
- package/dist/index.mjs.map +1 -1
- package/dist/products/help-desk/form-draft.d.ts +1 -0
- package/dist/products/help-desk/form-types.d.ts +2 -0
- package/dist/products/help-desk/kb-client.d.ts +11 -2
- package/dist/products/help-desk/kb-types.d.ts +6 -0
- package/dist/products/help-desk/support-brand.d.ts +2 -0
- package/dist/products/help-desk/support-types.d.ts +3 -1
- package/dist/products/help-desk/support-view.d.ts +17 -1
- package/dist/products/help-desk/types.d.ts +2 -0
- package/dist/sparkvault.js +1 -1
- package/dist/sparkvault.js.map +1 -1
- package/dist/vaults/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3537,6 +3537,8 @@ interface HelpDeskCreateTicketOptions {
|
|
|
3537
3537
|
/** Optional server-minted support-assistance correlation; never includes the customer's question. */
|
|
3538
3538
|
assistance_attempt_id?: string;
|
|
3539
3539
|
assistance_visitor_id?: string;
|
|
3540
|
+
/** Optional published article ID; Core resolves its metadata for the support operator. */
|
|
3541
|
+
source_article_id?: string;
|
|
3540
3542
|
}
|
|
3541
3543
|
interface HelpDeskTicket {
|
|
3542
3544
|
number: number;
|
|
@@ -3841,6 +3843,8 @@ interface HelpDeskFormOptions {
|
|
|
3841
3843
|
assistance_attempt_id: string;
|
|
3842
3844
|
assistance_visitor_id: string;
|
|
3843
3845
|
} | undefined;
|
|
3846
|
+
/** @internal Optional article reference, captured once with the submitted composition. */
|
|
3847
|
+
sourceArticleId?: () => string | undefined;
|
|
3844
3848
|
/**
|
|
3845
3849
|
* Ask host code for a server-issued help desk session. This callback must
|
|
3846
3850
|
* not construct a session from a browser-supplied user ID or email address.
|
|
@@ -3865,7 +3869,7 @@ interface HelpDeskFormHandle {
|
|
|
3865
3869
|
getState(): HelpDeskFormState;
|
|
3866
3870
|
}
|
|
3867
3871
|
|
|
3868
|
-
type HelpDeskSupportStage = 'issue' | 'results' | 'article' | 'feedback' | 'contact' | 'receipt';
|
|
3872
|
+
type HelpDeskSupportStage = 'issue' | 'results' | 'article' | 'feedback' | 'resolved' | 'contact' | 'receipt';
|
|
3869
3873
|
interface HelpDeskSupportLauncherOptions {
|
|
3870
3874
|
/** HTTPS image URL. Omit to use the accessible question-mark icon. */
|
|
3871
3875
|
imageUrl?: string;
|
|
@@ -3897,6 +3901,8 @@ interface HelpDeskSupportOptions extends HelpDeskConnectOptions {
|
|
|
3897
3901
|
interface HelpDeskSupportOpenOptions {
|
|
3898
3902
|
/** Prefill the initial question only when starting a new support conversation. */
|
|
3899
3903
|
issue?: string;
|
|
3904
|
+
/** Continue directly from a published article that did not resolve the question. */
|
|
3905
|
+
articleId?: string;
|
|
3900
3906
|
}
|
|
3901
3907
|
interface HelpDeskSupportState {
|
|
3902
3908
|
visible: boolean;
|
|
@@ -4904,7 +4910,7 @@ declare class VaultsModule {
|
|
|
4904
4910
|
* Update a vault's upload settings (max size, notification email).
|
|
4905
4911
|
*
|
|
4906
4912
|
* @example
|
|
4907
|
-
* await sv.vaults.updateUploadConfig('vlt_abc', { maxSizeBytes:
|
|
4913
|
+
* await sv.vaults.updateUploadConfig('vlt_abc', { maxSizeBytes: 5 * 1024 ** 4 });
|
|
4908
4914
|
*/
|
|
4909
4915
|
updateUploadConfig(vaultId: string, config: UpdateVaultUploadOptions): Promise<VaultUploadSettings>;
|
|
4910
4916
|
private toggleUploadChannel;
|