@sparkvault/sdk-js 15.14.1 → 15.14.2

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.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;