@sparkvault/sdk-js 17.0.2 → 18.0.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.
@@ -125,10 +125,6 @@ export declare class HelpDeskClient {
125
125
  }): Promise<HelpDeskSession>;
126
126
  startPin(email: string): Promise<HelpDeskPinChallenge>;
127
127
  verifyPin(options: HelpDeskVerifyPinOptions): Promise<HelpDeskSession>;
128
- /** Identity completion still requires a server-approved desk portal origin. */
129
- completeIdentity(options: {
130
- token: string;
131
- }): Promise<HelpDeskSession>;
132
128
  /** Uninstalled result: the owning form/controller decides when the new requester becomes current. */
133
129
  signInWidgetIdentity(options?: HelpDeskWidgetIdentityOptions): Promise<HelpDeskWidgetIdentitySession>;
134
130
  /**
@@ -54,7 +54,6 @@ export interface KbMediaHydration {
54
54
  }
55
55
  export interface KbUnlockOptions {
56
56
  password?: string;
57
- identity_token?: string;
58
- /** Opaque auth.sv proof, issued through the built-in SDK Identity handoff. */
57
+ /** The Help Desk sign-in's opaque employee-gate proof (`identity_grant.token` of signInWidgetIdentity's answer). */
59
58
  identity_grant?: string;
60
59
  }
@@ -77,11 +77,7 @@ export interface HelpDeskDesk {
77
77
  logo_dark_url: string | null;
78
78
  icon_url?: string | null;
79
79
  };
80
- auth_mode: 'email_pin' | 'identity' | 'identity_unavailable' | 'external_sso' | 'external_unavailable';
81
- identity: {
82
- issuer_account_id: string;
83
- client_id: string;
84
- } | null;
80
+ auth_mode: 'email_pin' | 'external_sso' | 'external_unavailable';
85
81
  external_identity?: HelpDeskExternalIdentity | null;
86
82
  customer_can_mark_resolved: boolean;
87
83
  /** Optional plain-text note shown only after a request is confirmed sent. */
@@ -4,14 +4,14 @@ export interface HelpDeskWidgetIdentityOptions {
4
4
  givenName?: string;
5
5
  familyName?: string;
6
6
  selectAccount?: boolean;
7
- /** The current employee gate's company. Its own Identity methods and MFA must also complete. */
7
+ /** The current employee gate's company, whose membership Core checks for the person this sign-in proves. */
8
8
  employeeCompanyId?: string;
9
9
  signal?: AbortSignal;
10
10
  }
11
11
  export interface HelpDeskWidgetIdentityChallenge {
12
12
  challenge_id: string;
13
13
  verifier: string;
14
- /** Private to this window, like the verifier: handed only to the first-party page it opened, which Core requires it from. */
14
+ /** Private to this window, like the verifier: handed only to the sign-in window it opened, which Core requires it from. */
15
15
  state: string;
16
16
  sign_in_url: string;
17
17
  expires_at: number;