@sparkvault/sdk-js 5.0.2 → 6.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/dist/index.d.ts +4 -3
- package/dist/products/identity/index.d.ts +3 -2
- package/dist/products/identity/types.d.ts +1 -1
- package/dist/sparkvault.cjs.js +4 -3
- package/dist/sparkvault.cjs.js.map +1 -1
- package/dist/sparkvault.esm.js +4 -3
- package/dist/sparkvault.esm.js.map +1 -1
- package/dist/sparkvault.js +1 -1
- package/dist/sparkvault.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -158,7 +158,7 @@ type Recommendation = {
|
|
|
158
158
|
missingType: 'email' | 'phone';
|
|
159
159
|
};
|
|
160
160
|
/** A self-service screen in the auth.sv Identity portal. */
|
|
161
|
-
type PortalSection = 'home' | '
|
|
161
|
+
type PortalSection = 'home' | 'identity' | 'security' | 'sessions' | 'sites';
|
|
162
162
|
/** Options for building an auth.sv portal deep link (`portalUrl()`). */
|
|
163
163
|
interface PortalUrlOptions {
|
|
164
164
|
/** Which portal screen to open. Defaults to `'home'`. */
|
|
@@ -293,8 +293,9 @@ declare class IdentityModule {
|
|
|
293
293
|
constructor(config: ResolvedConfig);
|
|
294
294
|
/**
|
|
295
295
|
* Build a deep link into the person's auth.sv Identity portal — where they
|
|
296
|
-
* manage verified
|
|
297
|
-
* every SparkVault-integrated site. Send a signed-in user here to
|
|
296
|
+
* manage their verified identity, passkeys, sessions, and connected sites
|
|
297
|
+
* across every SparkVault-integrated site. Send a signed-in user here to
|
|
298
|
+
* self-serve;
|
|
298
299
|
* the portal authenticates them with their own SparkVault Identity.
|
|
299
300
|
*
|
|
300
301
|
* @example Manage this site (block/notifications/etc.)
|
|
@@ -23,8 +23,9 @@ export declare class IdentityModule {
|
|
|
23
23
|
constructor(config: ResolvedConfig);
|
|
24
24
|
/**
|
|
25
25
|
* Build a deep link into the person's auth.sv Identity portal — where they
|
|
26
|
-
* manage verified
|
|
27
|
-
* every SparkVault-integrated site. Send a signed-in user here to
|
|
26
|
+
* manage their verified identity, passkeys, sessions, and connected sites
|
|
27
|
+
* across every SparkVault-integrated site. Send a signed-in user here to
|
|
28
|
+
* self-serve;
|
|
28
29
|
* the portal authenticates them with their own SparkVault Identity.
|
|
29
30
|
*
|
|
30
31
|
* @example Manage this site (block/notifications/etc.)
|
|
@@ -92,7 +92,7 @@ export type Recommendation = {
|
|
|
92
92
|
/** Canonical dismiss key for a recommendation (suppresses it server-side 30d). */
|
|
93
93
|
export type RecommendationKey = 'passkey' | 'backup_email' | 'backup_phone';
|
|
94
94
|
/** A self-service screen in the auth.sv Identity portal. */
|
|
95
|
-
export type PortalSection = 'home' | '
|
|
95
|
+
export type PortalSection = 'home' | 'identity' | 'security' | 'sessions' | 'sites';
|
|
96
96
|
/** Options for building an auth.sv portal deep link (`portalUrl()`). */
|
|
97
97
|
export interface PortalUrlOptions {
|
|
98
98
|
/** Which portal screen to open. Defaults to `'home'`. */
|
package/dist/sparkvault.cjs.js
CHANGED
|
@@ -7715,7 +7715,7 @@ function attachClickHandler(selector, onClick) {
|
|
|
7715
7715
|
* @example Inline mode
|
|
7716
7716
|
* const result = await sv.products.identity.verify({ target: '#auth-container' });
|
|
7717
7717
|
*/
|
|
7718
|
-
const PORTAL_SECTIONS = ['home', '
|
|
7718
|
+
const PORTAL_SECTIONS = ['home', 'identity', 'security', 'sessions', 'sites'];
|
|
7719
7719
|
function isTokenClaims(payload) {
|
|
7720
7720
|
if (typeof payload !== 'object' || payload === null) {
|
|
7721
7721
|
return false;
|
|
@@ -7744,8 +7744,9 @@ class IdentityModule {
|
|
|
7744
7744
|
}
|
|
7745
7745
|
/**
|
|
7746
7746
|
* Build a deep link into the person's auth.sv Identity portal — where they
|
|
7747
|
-
* manage verified
|
|
7748
|
-
* every SparkVault-integrated site. Send a signed-in user here to
|
|
7747
|
+
* manage their verified identity, passkeys, sessions, and connected sites
|
|
7748
|
+
* across every SparkVault-integrated site. Send a signed-in user here to
|
|
7749
|
+
* self-serve;
|
|
7749
7750
|
* the portal authenticates them with their own SparkVault Identity.
|
|
7750
7751
|
*
|
|
7751
7752
|
* @example Manage this site (block/notifications/etc.)
|