@sparkvault/sdk-js 11.1.1 → 11.1.3
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 +2 -37
- package/dist/index.cjs +18 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +72 -72
- package/dist/index.mjs +18 -5
- package/dist/index.mjs.map +1 -1
- package/dist/ingots/index.d.ts +1 -1
- package/dist/logger.d.ts +0 -5
- package/dist/products/identity/container.d.ts +0 -8
- package/dist/products/identity/index.d.ts +1 -3
- package/dist/products/identity/methods.d.ts +0 -6
- package/dist/products/identity/utils.d.ts +1 -27
- package/dist/products/identity/views/icons.d.ts +0 -4
- package/dist/products/index.d.ts +1 -3
- package/dist/sparkvault.js +1 -1
- package/dist/sparkvault.js.map +1 -1
- package/dist/vaults/index.d.ts +1 -1
- package/dist/vaults/upload/container.d.ts +0 -8
- package/dist/vaults/upload/index.d.ts +1 -2
- package/package.json +1 -1
- package/dist/products/identity/handlers/index.d.ts +0 -9
- package/dist/products/identity/utils/index.d.ts +0 -5
package/dist/ingots/index.d.ts
CHANGED
|
@@ -240,4 +240,4 @@ export declare class IngotsModule {
|
|
|
240
240
|
export { NAME_CONFLICT_POLICIES } from './types';
|
|
241
241
|
export { fetchDownload } from './fetch-download';
|
|
242
242
|
export type { FetchDownloadOptions, FetchedDownload } from './fetch-download';
|
|
243
|
-
export type { NameConflictPolicy, UnsealedVault, Ingot, IngotUpload, CreatedIngot, IngotDownloadLink, CreateUploadOptions, UploadIngotOptions, SendUploadOptions, ReplaceIngotOptions, ListIngotsOptions, ListContentsOptions, FolderContents, SearchIngotsOptions, IngotPage, IngotSharingConfig, UpdateIngotSharingOptions, IngotInvite, AddInviteOptions, IngotAccessLog, IngotAccessLogPage, AccessLogsOptions,
|
|
243
|
+
export type { NameConflictPolicy, UnsealedVault, Ingot, IngotUpload, CreatedIngot, IngotDownloadLink, CreateUploadOptions, UploadIngotOptions, SendUploadOptions, ReplaceIngotOptions, ListIngotsOptions, ListContentsOptions, FolderContents, SearchIngotsOptions, IngotPage, IngotSharingConfig, UpdateIngotSharingOptions, IngotInvite, AddInviteOptions, IngotAccessLog, IngotAccessLogPage, AccessLogsOptions, HashCheckResponse, } from './types';
|
package/dist/logger.d.ts
CHANGED
|
@@ -9,10 +9,6 @@
|
|
|
9
9
|
* Enable or disable debug logging
|
|
10
10
|
*/
|
|
11
11
|
export declare function setDebugMode(enabled: boolean): void;
|
|
12
|
-
/**
|
|
13
|
-
* Check if debug mode is enabled
|
|
14
|
-
*/
|
|
15
|
-
export declare function isDebugEnabled(): boolean;
|
|
16
12
|
/**
|
|
17
13
|
* Logger object for convenient access
|
|
18
14
|
*/
|
|
@@ -42,4 +38,3 @@ export declare const logger: {
|
|
|
42
38
|
*/
|
|
43
39
|
groupEnd: () => void;
|
|
44
40
|
};
|
|
45
|
-
export default logger;
|
|
@@ -6,14 +6,6 @@
|
|
|
6
6
|
* while reusing all view logic, state management, and handlers.
|
|
7
7
|
*/
|
|
8
8
|
import type { SdkConfigBranding } from './types';
|
|
9
|
-
/**
|
|
10
|
-
* Container options for initialization.
|
|
11
|
-
*/
|
|
12
|
-
export interface ContainerOptions {
|
|
13
|
-
branding?: SdkConfigBranding;
|
|
14
|
-
/** Enable backdrop blur (modal only) */
|
|
15
|
-
backdropBlur?: boolean;
|
|
16
|
-
}
|
|
17
9
|
/**
|
|
18
10
|
* Container interface that both ModalContainer and InlineContainer implement.
|
|
19
11
|
* The renderer interacts with containers through this interface.
|
|
@@ -251,6 +251,4 @@ export declare class IdentityModule {
|
|
|
251
251
|
target: string | HTMLElement;
|
|
252
252
|
}): Promise<VerifyResult>;
|
|
253
253
|
}
|
|
254
|
-
export type { SignInOptions, SignInResult, AttachOptions, VerifyResult, VerifyOptions, TokenClaims, AuthMethod,
|
|
255
|
-
export { METHOD_REGISTRY, getMethodMetadata, enrichMethods } from './methods';
|
|
256
|
-
export { IdentityApi, IdentityApiError } from './api';
|
|
254
|
+
export type { SignInOptions, SignInResult, AttachOptions, VerifyResult, VerifyOptions, TokenClaims, AuthMethod, Theme, } from './types';
|
|
@@ -9,12 +9,6 @@ import type { MethodId, MethodMetadata } from './types';
|
|
|
9
9
|
* Static method metadata registry
|
|
10
10
|
*/
|
|
11
11
|
export declare const METHOD_REGISTRY: Record<MethodId, MethodMetadata>;
|
|
12
|
-
/**
|
|
13
|
-
* Get method metadata by ID
|
|
14
|
-
* @param id - Method ID from config
|
|
15
|
-
* @returns Method metadata or undefined if not found
|
|
16
|
-
*/
|
|
17
|
-
export declare function getMethodMetadata(id: MethodId): MethodMetadata | undefined;
|
|
18
12
|
/**
|
|
19
13
|
* Enrich method IDs with full metadata
|
|
20
14
|
* @param ids - Array of method IDs from config
|
|
@@ -1,40 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Identity Module Utilities
|
|
3
3
|
*
|
|
4
|
-
* The encoding
|
|
4
|
+
* The encoding and validation helpers the identity renderer, API
|
|
5
5
|
* client and module share.
|
|
6
6
|
*/
|
|
7
7
|
export { CooldownTimer, ExpirationTimer } from './utils/cooldown-timer';
|
|
8
|
-
export type { CooldownTimerConfig, ExpirationTimerConfig } from './utils/cooldown-timer';
|
|
9
8
|
import type { ResolvedConfig } from '../../config';
|
|
10
9
|
import type { VerifyOptions } from './types';
|
|
11
10
|
/** base64url of an ArrayBuffer: the shape WebAuthn and WebCrypto hand back. */
|
|
12
11
|
export declare function arrayBufferToBase64url(buffer: ArrayBuffer): string;
|
|
13
|
-
/**
|
|
14
|
-
* Extract the root (registrable) domain from a hostname for cross-subdomain cookies.
|
|
15
|
-
* Returns the domain prefixed with a dot (e.g., ".client.com") or null when
|
|
16
|
-
* the domain attribute should not be set (loopback hosts, IP addresses).
|
|
17
|
-
*
|
|
18
|
-
* @param hostname - The hostname to extract the root domain from
|
|
19
|
-
* @returns Root domain with leading dot, or null
|
|
20
|
-
*/
|
|
21
|
-
export declare function getRootDomain(hostname: string): string | null;
|
|
22
|
-
/**
|
|
23
|
-
* Get cookie value by name
|
|
24
|
-
* @param name - Cookie name
|
|
25
|
-
* @returns Cookie value or null if not found
|
|
26
|
-
*/
|
|
27
|
-
export declare function getCookie(name: string): string | null;
|
|
28
|
-
/**
|
|
29
|
-
* Set cookie with expiration on the root domain for cross-subdomain access.
|
|
30
|
-
* The domain is automatically extracted from the current hostname and prefixed
|
|
31
|
-
* with a dot (e.g., ".client.com") so the cookie is shared across all subdomains.
|
|
32
|
-
*
|
|
33
|
-
* @param name - Cookie name
|
|
34
|
-
* @param value - Cookie value
|
|
35
|
-
* @param days - Days until expiration
|
|
36
|
-
*/
|
|
37
|
-
export declare function setCookie(name: string, value: string, days: number): void;
|
|
38
12
|
/**
|
|
39
13
|
* This page as a navigation return target: origin, path, and query — the query
|
|
40
14
|
* carries the page's own state (app routing, or the sign-in page's validated
|
|
@@ -17,10 +17,6 @@ export declare function createBackArrowIcon(): SVGSVGElement;
|
|
|
17
17
|
* Close (X) icon
|
|
18
18
|
*/
|
|
19
19
|
export declare function createCloseIcon(): SVGSVGElement;
|
|
20
|
-
/**
|
|
21
|
-
* Auth shield icon - bare outline shield with checkmark
|
|
22
|
-
*/
|
|
23
|
-
export declare function createAuthShieldIcon(): SVGSVGElement;
|
|
24
20
|
/**
|
|
25
21
|
* Passkey icon - bare outline key design
|
|
26
22
|
*/
|
package/dist/products/index.d.ts
CHANGED
|
@@ -26,7 +26,5 @@ export declare class ProductsModule {
|
|
|
26
26
|
}
|
|
27
27
|
export { IdentityModule } from './identity';
|
|
28
28
|
export { NotifyProductModule, NOTIFY_PRESETS, buildNotifyPresetSend } from './notify';
|
|
29
|
-
export type { VerifyOptions, AttachOptions, VerifyResult, TokenClaims, AuthMethod,
|
|
30
|
-
export { METHOD_REGISTRY, getMethodMetadata, enrichMethods } from './identity';
|
|
31
|
-
export { IdentityApi, IdentityApiError } from './identity';
|
|
29
|
+
export type { VerifyOptions, AttachOptions, VerifyResult, TokenClaims, AuthMethod, Theme, } from './identity';
|
|
32
30
|
export type { NotifyChannel, NotifyDeliveryMode, NotifyVerificationLevel, NotifyInteraction, NotifyPresetCategory, NotifyCategory, NotifyPresetName, NotifyPresetSendOptions, NotifyPreset, NotifyRecipient, NotifyRecipientRef, NotifySendContent, NotifyIngotRef, NotifySendPolicy, NotifyEscalation, CreateNotifySendOptions, NotifySendResult, NotifyInboxView, NotifyInboxMarkState, NotifyInboxBulkMarkState, NotifyInboxRow, ListNotifyInboxOptions, ListNotifyInboxResponse, MarkNotifyInboxStateOptions, MarkNotifyInboxStateResponse, MarkNotifyInboxAllOptions, MarkNotifyInboxAllResponse, NotifySendStatus, NotifySendStatusRecipient, NotifySendStatusCounts, NotifySendState, NotifySendSummary, ListNotifySendsOptions, ListNotifySendsResponse, NotifyRecallMode, RecallNotifySendOptions, RecallNotifySendResponse, NotifyReceipt, NotifyReceiptEventType, NotifySendReceipt, ListNotifyReceiptsOptions, ListNotifyReceiptsResponse, NotifySendReceiptsResponse, NotifyConfig, NotifyConfigCategory, NotifyConfigDelivery, NotifyConfigRealtimeFallbackDelay, NotifyConfigReliability, NotifyConfigHistory, NotifyConfigSecurity, NotifyConfigEvents, NotifyConfigEventsRead, NotifyConfigPatch, NotifyConfigOverrides, NotifyConfigResponse, } from './notify';
|