@sparkvault/sdk-js 11.1.11 → 11.1.12

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
@@ -114,42 +114,9 @@ interface RequestOptions {
114
114
  vat?: string;
115
115
  timeout?: number;
116
116
  }
117
- /** Capacity state for a pool, driving low-capacity nudges in the UI. */
118
- type PoolState = 'ok' | 'notice' | 'warning' | 'exhausted';
119
- /** Shared storage-pool capacity snapshot carried on `meta.pools`. */
120
- interface StoragePool {
121
- used_gb: number;
122
- limit_gb: number;
123
- pct: number;
124
- state: PoolState;
125
- }
126
- /** Shared bandwidth-pool capacity snapshot carried on `meta.pools`. */
127
- interface BandwidthPool {
128
- used_gb: number;
129
- limit_gb: number;
130
- pct: number;
131
- state: PoolState;
132
- /** ISO timestamp when the bandwidth cycle resets. */
133
- cycle_resets_at: string;
134
- }
135
- /** Pooled-capacity snapshot that rides on every response's `meta`. */
136
- interface PoolsMeta {
137
- storage: StoragePool;
138
- bandwidth: BandwidthPool;
139
- }
140
- /**
141
- * Response envelope metadata. `pools` rides on responses so clients can render
142
- * low-capacity nudges without a separate fetch. Unknown fields are preserved.
143
- */
144
- interface ResponseMeta {
145
- pools?: PoolsMeta;
146
- [key: string]: unknown;
147
- }
117
+ /** A successful answer: its `data`, unwrapped from the `{ data, meta }` envelope. */
148
118
  interface ApiResponse<T = unknown> {
149
119
  data: T;
150
- meta?: ResponseMeta;
151
- status: number;
152
- headers: Headers;
153
120
  }
154
121
  declare class HttpClient {
155
122
  private readonly config;
@@ -168,11 +135,6 @@ declare class HttpClient {
168
135
  */
169
136
  private createErrorFromResponse;
170
137
  private unwrapApiResponse;
171
- /**
172
- * Pull the `meta` envelope (carrying `pools` capacity snapshots) off a
173
- * standard `{ data, meta }` response. Returns undefined for bare responses.
174
- */
175
- private extractResponseMeta;
176
138
  get<T = unknown>(path: ApiPath, options?: Omit<RequestOptions, 'method' | 'body'>): Promise<ApiResponse<T>>;
177
139
  post<T = unknown>(path: ApiPath, body?: unknown, options?: Omit<RequestOptions, 'method'>): Promise<ApiResponse<T>>;
178
140
  put<T = unknown>(path: ApiPath, body?: unknown, options?: Omit<RequestOptions, 'method'>): Promise<ApiResponse<T>>;
@@ -183,8 +145,6 @@ declare class HttpClient {
183
145
  /**
184
146
  * Identity Module Types
185
147
  */
186
- type AuthMethod = 'passkey' | 'otp_email' | 'otp_sms' | 'otp_voice' | 'sparklink' | 'social_google' | 'social_apple' | 'social_microsoft' | 'social_github' | 'social_facebook' | 'social_linkedin';
187
- type Theme = 'light' | 'dark';
188
148
  type VerifiedIdentityType = 'email' | 'phone' | 'social';
189
149
  /**
190
150
  * Auth context for OIDC or simple redirect flows.
@@ -2503,11 +2463,6 @@ interface UpdateIngotSharingOptions {
2503
2463
  /** Visibility mode */
2504
2464
  visibility?: 'invite_only' | 'authenticated' | 'public';
2505
2465
  }
2506
- /** Options for addInvite. */
2507
- interface AddInviteOptions {
2508
- /** Invite lifetime in seconds. Omit to inherit the link's existing expiry. */
2509
- expiresInSeconds?: number;
2510
- }
2511
2466
  /** A sharing invite on an ingot. */
2512
2467
  interface IngotInvite {
2513
2468
  /** Invite ID */
@@ -2515,7 +2470,7 @@ interface IngotInvite {
2515
2470
  /** Invited identity (email/phone) */
2516
2471
  identity: string;
2517
2472
  /** Identity type */
2518
- identityType: string;
2473
+ identityType: 'email' | 'phone';
2519
2474
  }
2520
2475
  /**
2521
2476
  * An ingot access-log entry: a download that delivered the file, a SparkLink
@@ -2819,9 +2774,8 @@ declare class IngotsModule {
2819
2774
  *
2820
2775
  * @example
2821
2776
  * await sv.ingots.addInvite(unsealed, 'ing_abc', 'user@example.com');
2822
- * await sv.ingots.addInvite(unsealed, 'ing_abc', 'user@example.com', { expiresInSeconds: 86400 });
2823
2777
  */
2824
- addInvite(vault: UnsealedVault, ingotId: string, identity: string, options?: AddInviteOptions): Promise<IngotInvite>;
2778
+ addInvite(vault: UnsealedVault, ingotId: string, identity: string): Promise<IngotInvite>;
2825
2779
  /**
2826
2780
  * Revoke an ingot sharing invite.
2827
2781
  *
@@ -3334,14 +3288,6 @@ declare const logger: {
3334
3288
  * Error level - always logged regardless of debug mode
3335
3289
  */
3336
3290
  error: (message: string, ...args: unknown[]) => void;
3337
- /**
3338
- * Group related logs together (only in debug mode)
3339
- */
3340
- group: (label: string) => void;
3341
- /**
3342
- * End a log group
3343
- */
3344
- groupEnd: () => void;
3345
3291
  };
3346
3292
 
3347
3293
  /**
@@ -3498,4 +3444,4 @@ declare global {
3498
3444
  }
3499
3445
 
3500
3446
  export { AuthenticationError, AuthorizationError, EntropyModule, FoldersModule, IdentityModule, IngotsModule, NAME_CONFLICT_POLICIES, NOTIFY_PRESETS, NetworkError, NotifyModule, NotifyProductModule, NotifySubscriptionRequiredError, PlanRequiredError, PopupBlockedError, ProductsModule, QuotaExceededError, SparkVault, SparkVaultError, SparksModule, TimeoutError, UserCancelledError, ValidationError, VaultsModule, buildNotifyPresetSend, SparkVault as default, fetchDownload, logger, setDebugMode };
3501
- export type { AccessLogRetention, AccessLogsOptions, ApiResponse, AuthMethod, BandwidthPool, CreateFolderOptions, CreateNotifySendOptions, CreateSparkOptions, CreateUploadOptions, CreateVaultOptions, CreatedIngot, CreatedSpark, EntropyFormat, EntropyResult, FetchDownloadOptions, FetchedDownload, Folder, FolderBreadcrumbItem, FolderContents, GenerateEntropyOptions, HealthCheckOptions, HealthCheckResult, AttachOptions as IdentityAttachOptions, Ingot, IngotAccessLog, IngotAccessLogPage, IngotDownloadLink, IngotInvite, IngotPage, IngotSharingConfig, IngotUpload, ListContentsOptions, ListIngotsOptions, ListNotificationsOptions, ListNotificationsResponse, ListNotifyInboxOptions, ListNotifyInboxResponse, ListNotifyReceiptsOptions, ListNotifyReceiptsResponse, ListNotifySendsOptions, ListNotifySendsResponse, ListSparksOptions, MarkAllNotificationsStateOptions, MarkAllNotificationsStateResponse, MarkAllReadResult, MarkNotificationStateOptions, MarkNotificationStateResponse, MarkNotifyInboxAllOptions, MarkNotifyInboxAllResponse, MarkNotifyInboxStateOptions, MarkNotifyInboxStateResponse, NameConflictPolicy, NotificationBulkMarkState, NotificationInboxState, NotificationMarkState, NotificationRow, NotifyCategory, NotifyChannel, NotifyConfig, NotifyConfigCategory, NotifyConfigDelivery, NotifyConfigEvents, NotifyConfigEventsRead, NotifyConfigHistory, NotifyConfigOverrides, NotifyConfigPatch, NotifyConfigRealtimeFallbackDelay, NotifyConfigReliability, NotifyConfigResponse, NotifyConfigSecurity, NotifyDeliveryMode, NotifyEscalation, NotifyInboxBulkMarkState, NotifyInboxMarkState, NotifyInboxRow, NotifyInboxView, NotifyIngotRef, NotifyInteraction, NotifyPreset, NotifyPresetCategory, NotifyPresetName, NotifyPresetSendOptions, NotifyRecallMode, NotifyReceipt, NotifyReceiptEventType, NotifyRecipient, NotifyRecipientRef, NotifySendContent, NotifySendPolicy, NotifySendReceipt, NotifySendReceiptsResponse, NotifySendResult, NotifySendState, NotifySendStatus, NotifySendStatusCounts, NotifySendStatusRecipient, NotifySendSummary, NotifyVerificationLevel, PoolState, PoolsMeta, QuotaResource, RecallNotifySendOptions, RecallNotifySendResponse, RegisterWebPushResponse, ReplaceIngotOptions, ResponseMeta, SearchIngotsOptions, SendUploadOptions, ShareSparkOptions, Spark, SparkPage, SparkShare, SparkSummary, SparkVaultConfig, SparkVisibility, StoragePool, SubscribeWebPushOptions, SubscribeWebPushResult, SubscribeWebPushStatus, Theme, TokenClaims, UnreadCountResponse, UnsealedVault, UnsubscribeWebPushResponse, UpdateFolderOptions, UpdateIngotSharingOptions, UpdateVaultUploadOptions, UpdatedVault, UploadAttachOptions, UploadBranding, UploadIngotOptions, UploadOptions, UploadProgress, UploadResult, Vault, VaultDetail, VaultSharingConfig, VaultSharingOptions, VaultSummary, VaultUploadConfig, VaultUploadSettings, VerifyOptions, VerifyResult, WebPushKeyResponse, WebPushSubscriptionInput };
3447
+ export type { AccessLogRetention, AccessLogsOptions, CreateFolderOptions, CreateNotifySendOptions, CreateSparkOptions, CreateUploadOptions, CreateVaultOptions, CreatedIngot, CreatedSpark, EntropyFormat, EntropyResult, FetchDownloadOptions, FetchedDownload, Folder, FolderBreadcrumbItem, FolderContents, GenerateEntropyOptions, HealthCheckOptions, HealthCheckResult, AttachOptions as IdentityAttachOptions, Ingot, IngotAccessLog, IngotAccessLogPage, IngotDownloadLink, IngotInvite, IngotPage, IngotSharingConfig, IngotUpload, ListContentsOptions, ListIngotsOptions, ListNotificationsOptions, ListNotificationsResponse, ListNotifyInboxOptions, ListNotifyInboxResponse, ListNotifyReceiptsOptions, ListNotifyReceiptsResponse, ListNotifySendsOptions, ListNotifySendsResponse, ListSparksOptions, MarkAllNotificationsStateOptions, MarkAllNotificationsStateResponse, MarkAllReadResult, MarkNotificationStateOptions, MarkNotificationStateResponse, MarkNotifyInboxAllOptions, MarkNotifyInboxAllResponse, MarkNotifyInboxStateOptions, MarkNotifyInboxStateResponse, NameConflictPolicy, NotificationBulkMarkState, NotificationInboxState, NotificationMarkState, NotificationRow, NotifyCategory, NotifyChannel, NotifyConfig, NotifyConfigCategory, NotifyConfigDelivery, NotifyConfigEvents, NotifyConfigEventsRead, NotifyConfigHistory, NotifyConfigOverrides, NotifyConfigPatch, NotifyConfigRealtimeFallbackDelay, NotifyConfigReliability, NotifyConfigResponse, NotifyConfigSecurity, NotifyDeliveryMode, NotifyEscalation, NotifyInboxBulkMarkState, NotifyInboxMarkState, NotifyInboxRow, NotifyInboxView, NotifyIngotRef, NotifyInteraction, NotifyPreset, NotifyPresetCategory, NotifyPresetName, NotifyPresetSendOptions, NotifyRecallMode, NotifyReceipt, NotifyReceiptEventType, NotifyRecipient, NotifyRecipientRef, NotifySendContent, NotifySendPolicy, NotifySendReceipt, NotifySendReceiptsResponse, NotifySendResult, NotifySendState, NotifySendStatus, NotifySendStatusCounts, NotifySendStatusRecipient, NotifySendSummary, NotifyVerificationLevel, QuotaResource, RecallNotifySendOptions, RecallNotifySendResponse, RegisterWebPushResponse, ReplaceIngotOptions, SearchIngotsOptions, SendUploadOptions, ShareSparkOptions, Spark, SparkPage, SparkShare, SparkSummary, SparkVaultConfig, SparkVisibility, SubscribeWebPushOptions, SubscribeWebPushResult, SubscribeWebPushStatus, TokenClaims, UnreadCountResponse, UnsealedVault, UnsubscribeWebPushResponse, UpdateFolderOptions, UpdateIngotSharingOptions, UpdateVaultUploadOptions, UpdatedVault, UploadAttachOptions, UploadBranding, UploadIngotOptions, UploadOptions, UploadProgress, UploadResult, Vault, VaultDetail, VaultSharingConfig, VaultSharingOptions, VaultSummary, VaultUploadConfig, VaultUploadSettings, VerifyOptions, VerifyResult, WebPushKeyResponse, WebPushSubscriptionInput };
package/dist/index.mjs CHANGED
@@ -1363,13 +1363,7 @@ class HttpClient {
1363
1363
  if (!response.ok) {
1364
1364
  throw this.createErrorFromResponse(await readApiFailure(response));
1365
1365
  }
1366
- const parsed = await this.parseResponse(response);
1367
- return {
1368
- data: this.unwrapApiResponse(parsed),
1369
- meta: this.extractResponseMeta(parsed),
1370
- status: response.status,
1371
- headers: response.headers,
1372
- };
1366
+ return { data: this.unwrapApiResponse(await this.parseResponse(response)) };
1373
1367
  },
1374
1368
  fail: (failure, cause) => {
1375
1369
  switch (failure) {
@@ -1438,19 +1432,6 @@ class HttpClient {
1438
1432
  }
1439
1433
  return data;
1440
1434
  }
1441
- /**
1442
- * Pull the `meta` envelope (carrying `pools` capacity snapshots) off a
1443
- * standard `{ data, meta }` response. Returns undefined for bare responses.
1444
- */
1445
- extractResponseMeta(data) {
1446
- if (typeof data === 'object' && data !== null) {
1447
- const record = data;
1448
- if (typeof record.meta === 'object' && record.meta !== null) {
1449
- return record.meta;
1450
- }
1451
- }
1452
- return undefined;
1453
- }
1454
1435
  get(path, options) {
1455
1436
  return this.request(path, { ...options, method: 'GET' });
1456
1437
  }
@@ -2314,17 +2295,20 @@ class IdentityApi extends SparkVaultApi {
2314
2295
  });
2315
2296
  }
2316
2297
  /**
2317
- * Build auth context params for API requests (OIDC/simple mode).
2298
+ * The auth context a code or magic-link send carries: only its OIDC
2299
+ * `auth_request_id`. Simple mode is read where a login completes
2300
+ * (verifyOtp, completePasskeyVerify), never by a send.
2301
+ */
2302
+ buildAuthRequestParam(authContext) {
2303
+ return authContext?.authRequestId ? { auth_request_id: authContext.authRequestId } : {};
2304
+ }
2305
+ /**
2306
+ * Build auth context params for the completing requests (OIDC/simple mode).
2318
2307
  * Converts AuthContext to snake_case params expected by backend.
2319
2308
  */
2320
2309
  buildAuthContextParams(authContext) {
2321
- if (!authContext)
2322
- return {};
2323
- const params = {};
2324
- if (authContext.authRequestId) {
2325
- params.auth_request_id = authContext.authRequestId;
2326
- }
2327
- if (authContext.simpleMode) {
2310
+ const params = this.buildAuthRequestParam(authContext);
2311
+ if (authContext?.simpleMode) {
2328
2312
  params.simple_mode = {
2329
2313
  success_url: authContext.simpleMode.successUrl,
2330
2314
  failure_url: authContext.simpleMode.failureUrl,
@@ -2341,7 +2325,7 @@ class IdentityApi extends SparkVaultApi {
2341
2325
  return this.request('POST', apiPath `/otp/send`, {
2342
2326
  recipient: params.recipient,
2343
2327
  method: params.method,
2344
- ...this.buildAuthContextParams(params.authContext),
2328
+ ...this.buildAuthRequestParam(params.authContext),
2345
2329
  });
2346
2330
  }
2347
2331
  /**
@@ -2367,59 +2351,20 @@ class IdentityApi extends SparkVaultApi {
2367
2351
  code: params.code,
2368
2352
  });
2369
2353
  }
2370
- /**
2371
- * Start passkey registration from a freshly verified identifier.
2372
- */
2373
- async startPasskeyRegister(identity, identityType = 'email', registrationToken) {
2374
- const body = identityType === 'phone'
2375
- ? { phone: identity, registration_token: registrationToken }
2376
- : { email: identity, registration_token: registrationToken };
2377
- // Backend returns { options: PublicKeyCredentialCreationOptions, session: {...} }
2378
- // Extract and flatten to match PasskeyChallengeResponse
2379
- const response = await this.request('POST', apiPath `/passkey/register`, body);
2380
- return {
2381
- challenge: response.options.challenge,
2382
- rpId: response.options.rp.id,
2383
- rpName: response.options.rp.name,
2384
- userId: response.options.user.id,
2385
- userName: response.options.user.name,
2386
- timeout: response.options.timeout,
2387
- session: response.session,
2388
- };
2389
- }
2390
- /**
2391
- * Complete passkey registration
2392
- */
2393
- async completePasskeyRegister(params) {
2394
- const attestation = params.credential.response;
2395
- return this.request('POST', apiPath `/passkey/register/complete`, {
2396
- session: params.session,
2397
- credential: {
2398
- id: params.credential.id,
2399
- rawId: arrayBufferToBase64url(params.credential.rawId),
2400
- type: params.credential.type,
2401
- response: {
2402
- clientDataJSON: arrayBufferToBase64url(attestation.clientDataJSON),
2403
- attestationObject: arrayBufferToBase64url(attestation.attestationObject),
2404
- },
2405
- },
2406
- });
2407
- }
2408
2354
  /**
2409
2355
  * Start passkey verification. An optional identifier scopes the ceremony to
2410
2356
  * that person's credentials (`allowCredentials`) so the authenticator offers
2411
2357
  * only the matching passkey; omit it for a discoverable ceremony. Completion
2412
2358
  * always routes via the credential userHandle, so scoping is purely a hint.
2413
2359
  */
2414
- async startPasskeyVerify(identity, identityType = 'email', authContext) {
2360
+ async startPasskeyVerify(identity, identityType = 'email') {
2415
2361
  const identityParam = identity ? { [identityType]: identity } : {};
2416
2362
  // Backend returns { options: PublicKeyCredentialRequestOptions, session: {...} }
2417
2363
  // Extract and flatten to match PasskeyChallengeResponse
2418
- const response = await this.request('POST', apiPath `/passkey/verify`, { ...identityParam, ...this.buildAuthContextParams(authContext) });
2364
+ const response = await this.request('POST', apiPath `/passkey/verify`, identityParam);
2419
2365
  return {
2420
2366
  challenge: response.options.challenge,
2421
2367
  rpId: response.options.rpId,
2422
- rpName: 'SparkVault Identity', // Not returned by verify endpoint
2423
2368
  timeout: response.options.timeout,
2424
2369
  ...(response.options.allowCredentials ? { allowCredentials: response.options.allowCredentials } : {}),
2425
2370
  session: response.session,
@@ -2514,9 +2459,8 @@ class IdentityApi extends SparkVaultApi {
2514
2459
  async sendSparkLink(email, connectionId, authContext) {
2515
2460
  return this.request('POST', apiPath `/sparklink/send`, {
2516
2461
  email,
2517
- type: 'verify_identity',
2518
2462
  connection_id: connectionId,
2519
- ...this.buildAuthContextParams(authContext),
2463
+ ...this.buildAuthRequestParam(authContext),
2520
2464
  });
2521
2465
  }
2522
2466
  /**
@@ -3201,7 +3145,7 @@ class PasskeyHandler {
3201
3145
  // passkeys so the authenticator offers only the matching credential;
3202
3146
  // without one it falls back to a discoverable ceremony.
3203
3147
  const identityType = this.state.identityType === 'phone' ? 'phone' : 'email';
3204
- const challenge = await this.api.startPasskeyVerify(this.state.recipient, identityType, this.state.authContext);
3148
+ const challenge = await this.api.startPasskeyVerify(this.state.recipient, identityType);
3205
3149
  const credential = await navigator.credentials.get({
3206
3150
  ...(signal ? { signal } : {}),
3207
3151
  publicKey: {
@@ -3213,7 +3157,6 @@ class PasskeyHandler {
3213
3157
  allowCredentials: challenge.allowCredentials.map((c) => ({
3214
3158
  type: c.type,
3215
3159
  id: webauthnBuffer(c.id),
3216
- ...(c.transports ? { transports: c.transports } : {}),
3217
3160
  })),
3218
3161
  } : {}),
3219
3162
  },
@@ -5058,8 +5001,9 @@ class PasskeyAutoView {
5058
5001
  /**
5059
5002
  * Passkey Registration Prompt View
5060
5003
  *
5061
- * Shown after successful PIN verification to encourage users to add a passkey.
5062
- * Includes benefits list and skip option with 30-day cookie suppression.
5004
+ * Shown after a login whose recommendations name a passkey, to encourage the
5005
+ * person to add one. Includes a benefits list and a skip option, which the
5006
+ * server suppresses for 30 days (POST /recommendations/dismiss).
5063
5007
  */
5064
5008
  class PasskeyPromptView {
5065
5009
  constructor(props) {
@@ -6231,13 +6175,6 @@ class IdentityRenderer {
6231
6175
  if (config.branding) {
6232
6176
  this.container.updateBranding(config.branding);
6233
6177
  }
6234
- // Update backdrop blur: client override > server config (branding.backdrop_blur) > default (true)
6235
- const resolvedBackdropBlur = this.options.backdropBlur !== undefined
6236
- ? this.options.backdropBlur
6237
- : config.branding?.backdrop_blur !== undefined
6238
- ? config.branding.backdrop_blur
6239
- : true;
6240
- this.container.updateBackdropBlur(resolvedBackdropBlur);
6241
6178
  await this.showInitialAuthStep();
6242
6179
  }
6243
6180
  catch (error) {
@@ -6320,12 +6257,6 @@ class IdentityRenderer {
6320
6257
  if (config.branding) {
6321
6258
  this.container.updateBranding(config.branding);
6322
6259
  }
6323
- const resolvedBackdropBlur = this.options.backdropBlur !== undefined
6324
- ? this.options.backdropBlur
6325
- : config.branding?.backdrop_blur !== undefined
6326
- ? config.branding.backdrop_blur
6327
- : true;
6328
- this.container.updateBackdropBlur(resolvedBackdropBlur);
6329
6260
  await this.showInitialAuthStep();
6330
6261
  }
6331
6262
  catch (error) {
@@ -9328,12 +9259,11 @@ function unlockPageScroll() {
9328
9259
  class ModalShell {
9329
9260
  constructor(options) {
9330
9261
  this.open = true;
9331
- this.blurClass = `${options.classPrefix}-blur`;
9332
9262
  this.opener = document.activeElement instanceof HTMLElement ? document.activeElement : null;
9333
9263
  this.overlay = document.createElement('div');
9334
9264
  this.overlay.id = options.overlayId;
9335
9265
  this.overlay.className = `${options.classPrefix}-overlay`;
9336
- this.overlay.classList.toggle(this.blurClass, options.backdropBlur);
9266
+ this.overlay.classList.toggle(`${options.classPrefix}-blur`, options.backdropBlur);
9337
9267
  this.overlay.setAttribute('role', 'dialog');
9338
9268
  this.overlay.setAttribute('aria-modal', 'true');
9339
9269
  this.overlay.setAttribute('aria-labelledby', options.titleId);
@@ -9356,9 +9286,6 @@ class ModalShell {
9356
9286
  lockPageScroll();
9357
9287
  this.modal.focus({ preventScroll: true });
9358
9288
  }
9359
- setBackdropBlur(enabled) {
9360
- this.overlay.classList.toggle(this.blurClass, enabled);
9361
- }
9362
9289
  /** Remove the dialog, release the scroll lock, and return focus to the opener. */
9363
9290
  destroy() {
9364
9291
  if (!this.open)
@@ -9497,13 +9424,6 @@ class ModalContainer {
9497
9424
  this.floatingCloseBtn = null;
9498
9425
  }
9499
9426
  }
9500
- /**
9501
- * Update the backdrop blur setting with the resolved value (client
9502
- * override > server config > default).
9503
- */
9504
- updateBackdropBlur(enabled) {
9505
- this.shell?.setBackdropBlur(enabled);
9506
- }
9507
9427
  createHeader(branding) {
9508
9428
  const header = document.createElement('div');
9509
9429
  header.className = 'sv-header';
@@ -9926,12 +9846,6 @@ class InlineContainer {
9926
9846
  return;
9927
9847
  applyBrandingTheme(branding);
9928
9848
  }
9929
- /**
9930
- * Update backdrop blur setting (no-op for inline container).
9931
- */
9932
- updateBackdropBlur(_enabled) {
9933
- // No-op - inline containers don't have backdrop blur
9934
- }
9935
9849
  /**
9936
9850
  * Minimal-chrome toggle (no-op for inline container).
9937
9851
  * Inline containers don't own page-level chrome to hide.
@@ -13910,12 +13824,6 @@ class UploadModalContainer {
13910
13824
  this.branding = branding;
13911
13825
  this.refreshHeader();
13912
13826
  }
13913
- /**
13914
- * Update backdrop blur setting.
13915
- */
13916
- updateBackdropBlur(enabled) {
13917
- this.shell?.setBackdropBlur(enabled);
13918
- }
13919
13827
  /**
13920
13828
  * Set dark mode for uploading/ceremony states.
13921
13829
  */
@@ -14014,12 +13922,6 @@ class UploadInlineContainer {
14014
13922
  updateBranding(_branding) {
14015
13923
  // No-op
14016
13924
  }
14017
- /**
14018
- * Update backdrop blur setting (no-op for inline container).
14019
- */
14020
- updateBackdropBlur(_enabled) {
14021
- // No-op - inline containers don't have backdrop blur
14022
- }
14023
13925
  /**
14024
13926
  * Get the body element for content rendering.
14025
13927
  */
@@ -16429,15 +16331,14 @@ class IngotsModule {
16429
16331
  *
16430
16332
  * @example
16431
16333
  * await sv.ingots.addInvite(unsealed, 'ing_abc', 'user@example.com');
16432
- * await sv.ingots.addInvite(unsealed, 'ing_abc', 'user@example.com', { expiresInSeconds: 86400 });
16433
16334
  */
16434
- async addInvite(vault, ingotId, identity, options = {}) {
16335
+ async addInvite(vault, ingotId, identity) {
16435
16336
  if (!identity?.trim()) {
16436
16337
  throw new ValidationError('Invite identity is required');
16437
16338
  }
16438
16339
  const vaultId = requireVaultId(vault);
16439
16340
  const id = requireResourceId(ingotId, 'ingotId');
16440
- const response = await this.http.post(apiPath `/v1/vaults/${vaultId}/ingots/${id}/sharing/invite`, { identity, expires_in_seconds: options.expiresInSeconds }, { vat: vault.vatToken });
16341
+ const response = await this.http.post(apiPath `/v1/vaults/${vaultId}/ingots/${id}/sharing/invite`, { identity }, { vat: vault.vatToken });
16441
16342
  return mapInvite(response.data);
16442
16343
  }
16443
16344
  /**
@@ -16597,9 +16498,9 @@ function mapSharingConfig(wire) {
16597
16498
  }
16598
16499
  function mapInvite(wire) {
16599
16500
  return {
16600
- id: wire.id ?? wire.invite_id ?? '',
16501
+ id: wire.invite_id,
16601
16502
  identity: wire.identity,
16602
- identityType: wire.identity_type ?? 'email',
16503
+ identityType: wire.identity_type,
16603
16504
  };
16604
16505
  }
16605
16506
 
@@ -17159,22 +17060,6 @@ const logger = {
17159
17060
  * Error level - always logged regardless of debug mode
17160
17061
  */
17161
17062
  error: (message, ...args) => log('error', message, ...args),
17162
- /**
17163
- * Group related logs together (only in debug mode)
17164
- */
17165
- group: (label) => {
17166
- if (debugEnabled) {
17167
- console.group(`[SparkVault] ${label}`);
17168
- }
17169
- },
17170
- /**
17171
- * End a log group
17172
- */
17173
- groupEnd: () => {
17174
- if (debugEnabled) {
17175
- console.groupEnd();
17176
- }
17177
- },
17178
17063
  };
17179
17064
 
17180
17065
  /**
@@ -17311,7 +17196,7 @@ class SparkVault {
17311
17196
  }
17312
17197
  /** Get the SDK version */
17313
17198
  static get version() {
17314
- return '11.1.11';
17199
+ return '11.1.12';
17315
17200
  }
17316
17201
  }
17317
17202
  if (typeof window !== 'undefined') {