@sparkvault/sdk-js 16.4.1 → 16.5.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/README.md +21 -13
- package/dist/index.cjs +1038 -408
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +31 -4
- package/dist/index.mjs +1038 -408
- package/dist/index.mjs.map +1 -1
- package/dist/products/help-desk/form-attachments.d.ts +23 -6
- package/dist/products/help-desk/form-composer.d.ts +34 -0
- package/dist/products/help-desk/form-draft.d.ts +11 -2
- package/dist/products/help-desk/form-types.d.ts +29 -4
- package/dist/products/help-desk/form.d.ts +32 -9
- package/dist/products/help-desk/icons.d.ts +21 -0
- package/dist/products/help-desk/support-types.d.ts +2 -0
- package/dist/products/help-desk/support-view.d.ts +8 -2
- package/dist/products/identity/renderer.d.ts +0 -7
- package/dist/sparkvault.js +1 -1
- package/dist/sparkvault.js.map +1 -1
- package/dist/ui/live-region.d.ts +15 -0
- package/package.json +1 -1
- package/dist/products/help-desk/support-subject.d.ts +0 -7
package/dist/index.d.ts
CHANGED
|
@@ -3989,22 +3989,39 @@ declare class HelpDeskClient {
|
|
|
3989
3989
|
private releaseSession;
|
|
3990
3990
|
}
|
|
3991
3991
|
|
|
3992
|
-
/** Internal adapter used by the KB-first widget;
|
|
3992
|
+
/** Internal adapter used by the KB-first support widget; a standalone form verifies the customer itself. */
|
|
3993
3993
|
interface HelpDeskWidgetFormIdentity {
|
|
3994
3994
|
customer: HelpDeskCustomer | null;
|
|
3995
|
+
/** A desk that signs in with SparkVault Identity sends the email alone: its sign-in window asks a missing name itself. */
|
|
3995
3996
|
signIn(input: {
|
|
3996
3997
|
email: string;
|
|
3997
|
-
givenName
|
|
3998
|
-
familyName
|
|
3998
|
+
givenName?: string;
|
|
3999
|
+
familyName?: string;
|
|
3999
4000
|
}): Promise<HelpDeskSession>;
|
|
4000
4001
|
switchAccount(composition: {
|
|
4001
4002
|
subject: string;
|
|
4002
4003
|
body: string;
|
|
4003
4004
|
} | null): void;
|
|
4005
|
+
/**
|
|
4006
|
+
* Present when the host bridges its website account: sign in with it again,
|
|
4007
|
+
* carrying the request, or, `recovering`, a website-account customer's
|
|
4008
|
+
* hidden saved request, which the next form keeps hidden while the website
|
|
4009
|
+
* gives no account back.
|
|
4010
|
+
*/
|
|
4004
4011
|
useWebsiteAccount?: (composition: {
|
|
4005
4012
|
subject: string;
|
|
4006
4013
|
body: string;
|
|
4007
|
-
} | null) => void;
|
|
4014
|
+
} | null, recovering?: boolean) => void;
|
|
4015
|
+
/** Keep a website-account customer's saved request hidden from the start, as the form this one replaces did; `websiteSignedOut` when the website just gave no account back. */
|
|
4016
|
+
recovering?: {
|
|
4017
|
+
websiteSignedOut: boolean;
|
|
4018
|
+
};
|
|
4019
|
+
/** Offer Use website account beside the request: the customer switched away from the website's account. */
|
|
4020
|
+
offerWebsiteAccount: boolean;
|
|
4021
|
+
/** A previous customer's request left the form: forget their question, in view and in storage. */
|
|
4022
|
+
forgetIssue(): void;
|
|
4023
|
+
/** The form left a hidden saved request for a new one: fill it from the question as the customer last wrote it. */
|
|
4024
|
+
followIssue(): void;
|
|
4008
4025
|
}
|
|
4009
4026
|
/** The injected form's state; uncertain sends keep an exact snapshot until recovered. */
|
|
4010
4027
|
type HelpDeskFormState = 'authenticating' | 'editing' | 'verifying' | 'submitting' | 'uncertain' | 'success' | 'destroyed';
|
|
@@ -4019,8 +4036,16 @@ interface HelpDeskFormOptions {
|
|
|
4019
4036
|
attachments?: boolean;
|
|
4020
4037
|
/** Keep this tab's verified requester's draft for 30 minutes, including uncertain-send recovery. Defaults to false. */
|
|
4021
4038
|
persist?: boolean;
|
|
4039
|
+
/** @internal The issue the support wizard fills the form from, in place of `subject` and `body`; a field holding it stays free for a rewritten issue. */
|
|
4040
|
+
issue?: string;
|
|
4022
4041
|
/** @internal The support controller owns account transitions and native Identity. */
|
|
4023
4042
|
widgetIdentity?: HelpDeskWidgetFormIdentity;
|
|
4043
|
+
/** @internal The support wizard is inline on the host's page (any `target`): that page asks before it unloads while the request holds unsent work. */
|
|
4044
|
+
pageLayout?: boolean;
|
|
4045
|
+
/** @internal The form's controls changed in place: it moved between its steps, or its actions changed as it left a hidden saved request. */
|
|
4046
|
+
onScreenChange?: () => void;
|
|
4047
|
+
/** @internal The host page already shows "Secured by SparkVault", so the form leaves its own out. */
|
|
4048
|
+
hostShowsAttribution?: boolean;
|
|
4024
4049
|
/** @internal Server-minted, content-free assistance correlation. */
|
|
4025
4050
|
assistanceContext?: () => {
|
|
4026
4051
|
assistance_attempt_id: string;
|
|
@@ -4065,6 +4090,8 @@ interface HelpDeskSupportLauncherOptions {
|
|
|
4065
4090
|
interface HelpDeskSupportOptions extends HelpDeskConnectOptions {
|
|
4066
4091
|
/** Render the same support journey in this page element. Omit for the floating widget. */
|
|
4067
4092
|
target?: string | HTMLElement;
|
|
4093
|
+
/** @internal The host page already shows "Secured by SparkVault", so the contact form leaves its own out. */
|
|
4094
|
+
hostShowsAttribution?: boolean;
|
|
4068
4095
|
/** Keep recoverable composition in this browser tab through navigation and reload. Defaults to false. */
|
|
4069
4096
|
persist?: boolean;
|
|
4070
4097
|
/** Observe the customer session the journey proves or clears. */
|