@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.
- package/README.md +5 -5
- package/dist/index.cjs +59 -41
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -11
- package/dist/index.mjs +59 -41
- package/dist/index.mjs.map +1 -1
- package/dist/products/help-desk/client.d.ts +0 -4
- package/dist/products/help-desk/kb-types.d.ts +1 -2
- package/dist/products/help-desk/types.d.ts +1 -5
- package/dist/products/help-desk/widget-identity.d.ts +2 -2
- package/dist/sparkvault.js +1 -1
- package/dist/sparkvault.js.map +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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' | '
|
|
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
|
|
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
|
|
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;
|