@sparkvault/sdk-js 17.0.2 → 18.0.1

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
@@ -3692,11 +3692,7 @@ interface HelpDeskDesk {
3692
3692
  logo_dark_url: string | null;
3693
3693
  icon_url?: string | null;
3694
3694
  };
3695
- auth_mode: 'email_pin' | 'identity' | 'identity_unavailable' | 'external_sso' | 'external_unavailable';
3696
- identity: {
3697
- issuer_account_id: string;
3698
- client_id: string;
3699
- } | null;
3695
+ auth_mode: 'email_pin' | 'external_sso' | 'external_unavailable';
3700
3696
  external_identity?: HelpDeskExternalIdentity | null;
3701
3697
  customer_can_mark_resolved: boolean;
3702
3698
  /** Optional plain-text note shown only after a request is confirmed sent. */
@@ -3900,14 +3896,14 @@ interface HelpDeskWidgetIdentityOptions {
3900
3896
  givenName?: string;
3901
3897
  familyName?: string;
3902
3898
  selectAccount?: boolean;
3903
- /** The current employee gate's company. Its own Identity methods and MFA must also complete. */
3899
+ /** The current employee gate's company, whose membership Core checks for the person this sign-in proves. */
3904
3900
  employeeCompanyId?: string;
3905
3901
  signal?: AbortSignal;
3906
3902
  }
3907
3903
  interface HelpDeskWidgetIdentityChallenge {
3908
3904
  challenge_id: string;
3909
3905
  verifier: string;
3910
- /** Private to this window, like the verifier: handed only to the first-party page it opened, which Core requires it from. */
3906
+ /** Private to this window, like the verifier: handed only to the sign-in window it opened, which Core requires it from. */
3911
3907
  state: string;
3912
3908
  sign_in_url: string;
3913
3909
  expires_at: number;
@@ -4044,10 +4040,6 @@ declare class HelpDeskClient {
4044
4040
  }): Promise<HelpDeskSession>;
4045
4041
  startPin(email: string): Promise<HelpDeskPinChallenge>;
4046
4042
  verifyPin(options: HelpDeskVerifyPinOptions): Promise<HelpDeskSession>;
4047
- /** Identity completion still requires a server-approved desk portal origin. */
4048
- completeIdentity(options: {
4049
- token: string;
4050
- }): Promise<HelpDeskSession>;
4051
4043
  /** Uninstalled result: the owning form/controller decides when the new requester becomes current. */
4052
4044
  signInWidgetIdentity(options?: HelpDeskWidgetIdentityOptions): Promise<HelpDeskWidgetIdentitySession>;
4053
4045
  /**
@@ -4120,6 +4112,17 @@ declare class HelpDeskClient {
4120
4112
  private revoke;
4121
4113
  }
4122
4114
 
4115
+ /**
4116
+ * A desk's brand color as its carriers paint it: the color (`#rrggbb`, null
4117
+ * for none) and both of its pairings as the custom properties each carrier
4118
+ * sets on itself, null for none, which leaves the stylesheet's default
4119
+ * pairings (DEFAULT_PAIRING_DECLARATIONS).
4120
+ */
4121
+ interface SupportBrand {
4122
+ readonly color: string | null;
4123
+ readonly properties: Readonly<Record<string, string>> | null;
4124
+ }
4125
+
4123
4126
  /**
4124
4127
  * @internal The unsent text a widget form hands on with an account change, and
4125
4128
  * `hadFiles` when its composer held files then: files never go on to another form.
@@ -4209,6 +4212,8 @@ interface HelpDeskFormOptions {
4209
4212
  onScreenChange?: () => void;
4210
4213
  /** @internal The host page already shows "Secured by SparkVault", so the form leaves its own out. */
4211
4214
  hostShowsAttribution?: boolean;
4215
+ /** @internal The desk's brand its opener already paired (supportBrand), so the form pairs it no second time. */
4216
+ brand?: SupportBrand;
4212
4217
  /** @internal Server-minted, content-free assistance correlation. */
4213
4218
  assistanceContext?: () => {
4214
4219
  assistance_attempt_id: string;